Skip to content

Commit 73f1ee4

Browse files
authored
Merge pull request #160 from dkamburov/master
Add igSpreadsheet and igScheduler to Angular Components
2 parents e9363ca + 1ff0636 commit 73f1ee4

File tree

2 files changed

+90782
-79103
lines changed

2 files changed

+90782
-79103
lines changed

src/igniteui.angular2.ts

Lines changed: 137 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ var NODES = {
4444
"ig-dialog": "div",
4545
"ig-splitter": "div",
4646
"ig-layout-manager": "div",
47-
"ig-tile-manager": "div"
47+
"ig-tile-manager": "div",
48+
"ig-spreadsheet": "div",
49+
"ig-scheduler": "div"
4850
};
4951

5052
@Directive({
@@ -5259,7 +5261,7 @@ export class IgPopoverComponent extends IgControlBase<IgPopover> {
52595261
outputs: ["showing","shown","hiding","hidden"]
52605262
})
52615263
//TODO: change the model from any to IgNotifier when added to igniteui typescript definitions
5262-
export class IgNotifierComponent extends IgControlBase<any> {
5264+
export class IgNotifierComponent extends IgControlBase<IgNotifier> {
52635265
constructor(el: ElementRef, renderer: Renderer, differs: IterableDiffers) {
52645266
super(el, renderer, differs);
52655267
}
@@ -5541,8 +5543,139 @@ export class IgSplitButtonComponent extends IgControlBase<IgSplitButton> {
55415543
public widget(): void { return; } ;
55425544
}
55435545

5546+
@Component({
5547+
selector: "ig-scheduler",
5548+
template: "<ng-content></ng-content>",
5549+
inputs:["widgetId","options","changeDetectionInterval","disabled","create","views","viewMode","selectedDate","enableTodayButton","width","height","agendaViewSettings","monthViewSettings","appointmentDialogSuppress"],
5550+
outputs:["agendaRangeChanging","agendaRangeChanged","daySelected","monthChanging","monthChanged","rendering","rendered","viewChanging","viewChanged","appointmentDialogOpening","appointmentDialogOpened","appointmentDialogClosing","appointmentDialogClosed","appointmentCreating","appointmentCreated","appointmentDeleting","appointmentDeleted","appointmentEditing","appointmentEdited"]
5551+
})
5552+
export class IgSchedulerComponent extends IgControlBase<IgScheduler> {
5553+
constructor(el: ElementRef, renderer: Renderer, differs: IterableDiffers) { super(el, renderer, differs); }
5554+
5555+
/**
5556+
* Gets reference to appointment by id
5557+
*
5558+
* @param id
5559+
*/
5560+
public getAppointmentById(id: Object): Object { return; };
5561+
5562+
/**
5563+
* Creates a new appointment and renders it to the scheduler
5564+
*
5565+
* @param appointment
5566+
*/
5567+
public createAppointment(appointment: Object): Object { return; };
5568+
5569+
/**
5570+
* Deletes appointment from the appointment collection
5571+
*
5572+
* @param appointment appointment
5573+
*/
5574+
public deleteAppointment(appointment: Object): Object { return; };
5575+
5576+
/**
5577+
* Deletes appointment from the appointment collection
5578+
*
5579+
* @param appointment appointment
5580+
* @param updateAppoinment updateAppoinment
5581+
*/
5582+
public editAppointment(appointment: Object, updateAppoinment: Object): Object { return; };
5583+
5584+
/**
5585+
* Destroys the widget
5586+
*/
5587+
public destroy(): void { return; };
5588+
5589+
/**
5590+
* Gets reference to the today UI button.
5591+
*/
5592+
public todayButton(): string { return; };
5593+
5594+
/**
5595+
* Gets reference to the previous UI button.
5596+
*/
5597+
public previousButton(): string { return; };
5598+
5599+
/**
5600+
* Gets reference to the date range UI button.
5601+
*/
5602+
public dateRangeButton(): string { return; };
5603+
5604+
/**
5605+
* Gets reference to the next UI button.
5606+
*/
5607+
public nextButton(): string { return; };
5608+
5609+
/**
5610+
* Gets reference to the jQuery calendar UI control.
5611+
*/
5612+
public getCalendar(): string { return; };
5613+
}
5614+
5615+
@Component({
5616+
selector: "ig-spreadsheet",
5617+
template: "<ng-content></ng-content>",
5618+
inputs:["widgetId","options","changeDetectionInterval","disabled","create","width","height","activeCell","isScrollLocked","activeWorksheet","allowAddWorksheet","allowDeleteWorksheet","areGridlinesVisible","areHeadersVisible","enterKeyNavigationDirection","isEnterKeyNavigationEnabled","isFormulaBarVisible","isInEndMode","isUndoEnabled","nameBoxWidth","selectionMode","selectedWorksheets","validationInputMessagePosition","workbook","zoomLevel"],
5619+
outputs:["actionExecuted","actionExecuting","activeCellChanged","activePaneChanged","activeWorksheetChanged","editRangePasswordNeeded","hyperlinkExecuting","selectionChanged","userPromptDisplaying","workbookDirtied"]
5620+
})
5621+
export class IgSpreadsheetComponent extends IgControlBase<IgSpreadsheet> {
5622+
constructor(el: ElementRef, renderer: Renderer, differs: IterableDiffers) { super(el, renderer, differs); }
5623+
/**
5624+
* Returns an object that represents the pane with the focus.
5625+
*/
5626+
public getActivePane(): Object { return; } ;
5627+
5628+
/**
5629+
* Returns an object that represents the current selection of the active pane.
5630+
*/
5631+
public getActiveSelection(): Object { return; } ;
5632+
5633+
/**
5634+
* Returns an object used to get the formatting of the activeCell and where modifications are applied to the entire active selection.
5635+
* Any changes made to this object will affect all the objects in the selection. So for example, the
5636+
* Font.Name may return "Arial" because the active cell has that as its resolved font name even though the other
5637+
* cells are using a different font but if you set the Font.Name of this object to "Arial" then all the objects
5638+
* affected by the selection will have their Font.Name updated to that value.
5639+
*/
5640+
public getActiveSelectionCellRangeFormat(): Object { return; } ;
5641+
5642+
/**
5643+
* Returns a boolean indicating if the user is currently editing the name of the active worksheet.
5644+
*/
5645+
public getIsRenamingWorksheet(): boolean { return; } ;
5646+
5647+
/**
5648+
* Returns an array of the panes for the activeWorksheet.
5649+
*
5650+
* returnType="ig.spreadsheet.SpreadsheetPane[]"
5651+
*/
5652+
public getPanes(): void { return; } ;
5653+
5654+
/**
5655+
* Executes the action associated with the specified id.
5656+
*
5657+
* @param action An [enumeration](ig.spreadsheet.SpreadsheetAction) or string that identifies the action to execute.
5658+
*/
5659+
public executeAction(action: Object): boolean { return; } ;
5660+
5661+
/**
5662+
* Forces any pending deferred work to render on the spreadsheet before continuing
5663+
*/
5664+
public flush(): void { return; } ;
5665+
5666+
/**
5667+
* Destroys the widget.
5668+
*/
5669+
public destroy(): void { return; } ;
5670+
5671+
/**
5672+
* Notify the spreadsheet that style information used for rendering the spreadsheet may have been updated.
5673+
*/
5674+
public styleUpdated(): void { return; } ;
5675+
}
5676+
55445677
@NgModule({
5545-
declarations: [Column,IgGridSortingFeature,IgGridFilteringFeature,IgGridPagingFeature,IgGridUpdatingFeature,IgGridGroupByFeature,IgGridColumnMovingFeature,IgGridHidingFeature,IgGridCellMergingFeature,IgGridResponsiveFeature,IgGridResizingFeature,IgGridSelectionFeature,IgGridRowSelectorsFeature,IgGridSummariesFeature,IgGridColumnFixingFeature,IgGridTooltipsFeature,Features,IgGridComponent,IgTreeGridComponent,IgHierarchicalGridComponent,IgComboComponent,IgCheckboxEditorComponent,IgCurrencyEditorComponent,IgDateEditorComponent,IgDatePickerComponent,IgMaskEditorComponent,IgNumericEditorComponent,IgPercentEditorComponent,IgTextEditorComponent,IgTreeComponent,IgDialogComponent,IgSplitterComponent,IgLayoutManagerComponent,IgTileManagerComponent,IgHtmlEditorComponent,IgValidatorComponent,IgPivotDataSelectorComponent,IgPivotGridComponent,IgDataChartComponent,IgPieChartComponent,IgDoughnutChartComponent,IgFunnelChartComponent,IgRadialGaugeComponent,IgZoombarComponent,IgMapComponent,IgSparklineComponent,IgBulletGraphComponent,IgLinearGaugeComponent,IgQRCodeBarcodeComponent,IgUploadComponent,IgPopoverComponent,IgNotifierComponent,IgRatingComponent,IgVideoPlayerComponent,IgRadialMenuComponent,IgSplitButtonComponent],
5546-
exports: [Column,IgGridSortingFeature,IgGridFilteringFeature,IgGridPagingFeature,IgGridUpdatingFeature,IgGridGroupByFeature,IgGridColumnMovingFeature,IgGridHidingFeature,IgGridCellMergingFeature,IgGridResponsiveFeature,IgGridResizingFeature,IgGridSelectionFeature,IgGridRowSelectorsFeature,IgGridSummariesFeature,IgGridColumnFixingFeature,IgGridTooltipsFeature,Features,IgGridComponent,IgTreeGridComponent,IgHierarchicalGridComponent,IgComboComponent,IgCheckboxEditorComponent,IgCurrencyEditorComponent,IgDateEditorComponent,IgDatePickerComponent,IgMaskEditorComponent,IgNumericEditorComponent,IgPercentEditorComponent,IgTextEditorComponent,IgTreeComponent,IgDialogComponent,IgSplitterComponent,IgLayoutManagerComponent,IgTileManagerComponent,IgHtmlEditorComponent,IgValidatorComponent,IgPivotDataSelectorComponent,IgPivotGridComponent,IgDataChartComponent,IgPieChartComponent,IgDoughnutChartComponent,IgFunnelChartComponent,IgRadialGaugeComponent,IgZoombarComponent,IgMapComponent,IgSparklineComponent,IgBulletGraphComponent,IgLinearGaugeComponent,IgQRCodeBarcodeComponent,IgUploadComponent,IgPopoverComponent,IgNotifierComponent,IgRatingComponent,IgVideoPlayerComponent,IgRadialMenuComponent,IgSplitButtonComponent]
5678+
declarations: [Column,IgGridSortingFeature,IgGridFilteringFeature,IgGridPagingFeature,IgGridUpdatingFeature,IgGridGroupByFeature,IgGridColumnMovingFeature,IgGridHidingFeature,IgGridCellMergingFeature,IgGridResponsiveFeature,IgGridResizingFeature,IgGridSelectionFeature,IgGridRowSelectorsFeature,IgGridSummariesFeature,IgGridColumnFixingFeature,IgGridTooltipsFeature,Features,IgGridComponent,IgTreeGridComponent,IgHierarchicalGridComponent,IgComboComponent,IgCheckboxEditorComponent,IgCurrencyEditorComponent,IgDateEditorComponent,IgDatePickerComponent,IgMaskEditorComponent,IgNumericEditorComponent,IgPercentEditorComponent,IgTextEditorComponent,IgTreeComponent,IgDialogComponent,IgSplitterComponent,IgLayoutManagerComponent,IgTileManagerComponent,IgHtmlEditorComponent,IgValidatorComponent,IgPivotDataSelectorComponent,IgPivotGridComponent,IgDataChartComponent,IgPieChartComponent,IgDoughnutChartComponent,IgFunnelChartComponent,IgRadialGaugeComponent,IgZoombarComponent,IgMapComponent,IgSparklineComponent,IgBulletGraphComponent,IgLinearGaugeComponent,IgQRCodeBarcodeComponent,IgUploadComponent,IgPopoverComponent,IgNotifierComponent,IgRatingComponent,IgVideoPlayerComponent,IgRadialMenuComponent,IgSplitButtonComponent, IgSpreadsheetComponent, IgSchedulerComponent],
5679+
exports: [Column,IgGridSortingFeature,IgGridFilteringFeature,IgGridPagingFeature,IgGridUpdatingFeature,IgGridGroupByFeature,IgGridColumnMovingFeature,IgGridHidingFeature,IgGridCellMergingFeature,IgGridResponsiveFeature,IgGridResizingFeature,IgGridSelectionFeature,IgGridRowSelectorsFeature,IgGridSummariesFeature,IgGridColumnFixingFeature,IgGridTooltipsFeature,Features,IgGridComponent,IgTreeGridComponent,IgHierarchicalGridComponent,IgComboComponent,IgCheckboxEditorComponent,IgCurrencyEditorComponent,IgDateEditorComponent,IgDatePickerComponent,IgMaskEditorComponent,IgNumericEditorComponent,IgPercentEditorComponent,IgTextEditorComponent,IgTreeComponent,IgDialogComponent,IgSplitterComponent,IgLayoutManagerComponent,IgTileManagerComponent,IgHtmlEditorComponent,IgValidatorComponent,IgPivotDataSelectorComponent,IgPivotGridComponent,IgDataChartComponent,IgPieChartComponent,IgDoughnutChartComponent,IgFunnelChartComponent,IgRadialGaugeComponent,IgZoombarComponent,IgMapComponent,IgSparklineComponent,IgBulletGraphComponent,IgLinearGaugeComponent,IgQRCodeBarcodeComponent,IgUploadComponent,IgPopoverComponent,IgNotifierComponent,IgRatingComponent,IgVideoPlayerComponent,IgRadialMenuComponent,IgSplitButtonComponent, IgSpreadsheetComponent, IgSchedulerComponent]
55475680
})
55485681
export class IgniteUIModule {}

0 commit comments

Comments
 (0)