igniteui-webcomponents-grids 1.4.2 → 3.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (217) hide show
  1. package/bundles/igniteui-webcomponents-grids.umd.js +16049 -15259
  2. package/bundles/igniteui-webcomponents-grids.umd.min.js +1 -1
  3. package/esm2015/lib/BrowserExecutionContext.js +3 -1
  4. package/esm2015/lib/CanvasGridCellBase.js +6 -6
  5. package/esm2015/lib/CanvasSummaryCell.js +4 -4
  6. package/esm2015/lib/CanvasTemplateCellPresenter.js +1 -1
  7. package/esm2015/lib/CanvasTextHeaderCellPresenter.js +1 -1
  8. package/esm2015/lib/CellPresenterBase.js +1 -1
  9. package/esm2015/lib/CheckboxListView_combined.js +31 -31
  10. package/esm2015/lib/ColumnChooserView_combined.js +10 -10
  11. package/esm2015/lib/ColumnFilterCondition_combined.js +5546 -4404
  12. package/esm2015/lib/ColumnGroupingView_combined.js +186 -168
  13. package/esm2015/lib/ColumnPinningView_combined.js +6 -6
  14. package/esm2015/lib/ComparisonOperatorSelectorView_combined.js +13 -13
  15. package/esm2015/lib/DataGridAccessibilityLayoutPanel.js +5 -5
  16. package/esm2015/lib/DataGridCellLayoutPanel.js +25 -25
  17. package/esm2015/lib/DataGridLocaleEn.js +1 -0
  18. package/esm2015/lib/DataGridScrollerKeyboardListener.js +15 -15
  19. package/esm2015/lib/DataGridToolbarView_combined.js +294 -223
  20. package/esm2015/lib/DraggerView.js +8 -8
  21. package/esm2015/lib/GridColumnFilterOptionsView_combined.js +45 -26
  22. package/esm2015/lib/GridColumnGroupOptionsView_combined.js +5 -5
  23. package/esm2015/lib/GridColumnHideOptionsView_combined.js +3 -3
  24. package/esm2015/lib/GridColumnMoveOptionsView_combined.js +5 -5
  25. package/esm2015/lib/GridColumnOptionsViewBase_combined.js +2 -2
  26. package/esm2015/lib/GridColumnOptionsView_combined.js +2 -2
  27. package/esm2015/lib/GridColumnPinOptionsView_combined.js +2 -2
  28. package/esm2015/lib/GridColumnSummaryOptionsView_combined.js +8 -11
  29. package/esm2015/lib/GridExternalWrapper.js +6 -6
  30. package/esm2015/lib/GridFilterDialogView_combined.js +2 -2
  31. package/esm2015/lib/GridStyleRepository.js +5 -5
  32. package/esm2015/lib/HorizontalPropertyEditorDataSource.js +2 -2
  33. package/esm2015/lib/{PropertyEditorDescriptionObjectCollection.js → IDataGridComponent.js} +5 -1
  34. package/esm2015/lib/IToolbarVisualModelExport.js +11 -0
  35. package/esm2015/lib/MultiColumnComboBoxView_combined.js +314 -302
  36. package/esm2015/lib/MultiColumnComboVisualModelExport.js +2 -2
  37. package/esm2015/lib/PageChangedEventArgs.js +33 -0
  38. package/esm2015/lib/{PropertyEditorDataSource.js → PagedDataProvider.js} +1 -1
  39. package/{esm5/lib/PropertyEditorDataSource.js → esm2015/lib/Pager.js} +1 -1
  40. package/esm2015/lib/{PropertyEditorDescriptionObject.js → PagerDataSourceNotificationBridge.js} +1 -1
  41. package/{esm5/lib/PropertyEditorDescriptionObject.js → esm2015/lib/PagerGridDataSourceNotificationBridge.js} +1 -1
  42. package/esm2015/lib/PagerView.js +7 -0
  43. package/esm2015/lib/PagerVisualModelExport.js +82 -0
  44. package/esm2015/lib/PropertyEditorView_combined.js +145 -145
  45. package/esm2015/lib/TemplateCell.js +1 -1
  46. package/esm2015/lib/TemplateCellPresenter.js +1 -1
  47. package/esm2015/lib/TemplateHeader.js +2 -2
  48. package/esm2015/lib/{PropertyEditorPropertyDescriptionChangedEventArgs.js → ToolbarVisualModelExport.js} +9 -5
  49. package/esm2015/lib/VisualModelExport.js +77 -69
  50. package/esm2015/lib/igc-column-component.js +133 -113
  51. package/esm2015/lib/igc-column-grouping-component.js +33 -23
  52. package/esm2015/lib/igc-combo-box-column-component.js +10 -10
  53. package/esm2015/lib/igc-data-grid-component.js +588 -413
  54. package/esm2015/lib/igc-data-grid-module.js +4 -0
  55. package/esm2015/lib/igc-data-grid-pager-component.js +368 -0
  56. package/esm2015/lib/{igc-property-editor-property-description-module.js → igc-data-grid-pager-module.js} +6 -6
  57. package/esm2015/lib/igc-data-grid-toolbar-component.js +94 -35
  58. package/esm2015/lib/igc-date-time-column-component.js +23 -23
  59. package/esm2015/lib/igc-horizontal-property-editor-data-source.js +2 -2
  60. package/esm2015/lib/igc-image-column-component.js +12 -12
  61. package/esm2015/lib/igc-multi-column-combo-box-component.js +146 -140
  62. package/esm2015/lib/igc-numeric-column-component.js +35 -35
  63. package/esm2015/lib/igc-page-changed-event-args.js +46 -0
  64. package/esm2015/lib/igc-property-editor-component.js +7 -7
  65. package/esm2015/lib/igc-property-editor-module.js +1 -1
  66. package/esm2015/lib/igc-text-column-component.js +9 -9
  67. package/esm2015/public_api.js +14 -20
  68. package/esm5/lib/BrowserExecutionContext.js +3 -1
  69. package/esm5/lib/CanvasGridCellBase.js +6 -6
  70. package/esm5/lib/CanvasSummaryCell.js +4 -4
  71. package/esm5/lib/CanvasTemplateCellPresenter.js +1 -1
  72. package/esm5/lib/CanvasTextHeaderCellPresenter.js +1 -1
  73. package/esm5/lib/CellPresenterBase.js +1 -1
  74. package/esm5/lib/CheckboxListView_combined.js +31 -31
  75. package/esm5/lib/ColumnChooserView_combined.js +10 -10
  76. package/esm5/lib/ColumnFilterCondition_combined.js +5514 -4226
  77. package/esm5/lib/ColumnGroupingView_combined.js +188 -162
  78. package/esm5/lib/ColumnPinningView_combined.js +6 -6
  79. package/esm5/lib/ComparisonOperatorSelectorView_combined.js +13 -13
  80. package/esm5/lib/DataGridAccessibilityLayoutPanel.js +5 -5
  81. package/esm5/lib/DataGridCellLayoutPanel.js +25 -25
  82. package/esm5/lib/DataGridLocaleEn.js +1 -0
  83. package/esm5/lib/DataGridScrollerKeyboardListener.js +15 -15
  84. package/esm5/lib/DataGridToolbarView_combined.js +295 -220
  85. package/esm5/lib/DraggerView.js +8 -8
  86. package/esm5/lib/GridColumnFilterOptionsView_combined.js +45 -26
  87. package/esm5/lib/GridColumnGroupOptionsView_combined.js +5 -5
  88. package/esm5/lib/GridColumnHideOptionsView_combined.js +3 -3
  89. package/esm5/lib/GridColumnMoveOptionsView_combined.js +5 -5
  90. package/esm5/lib/GridColumnOptionsViewBase_combined.js +2 -2
  91. package/esm5/lib/GridColumnOptionsView_combined.js +2 -2
  92. package/esm5/lib/GridColumnPinOptionsView_combined.js +2 -2
  93. package/esm5/lib/GridColumnSummaryOptionsView_combined.js +8 -11
  94. package/esm5/lib/GridExternalWrapper.js +6 -6
  95. package/esm5/lib/GridFilterDialogView_combined.js +2 -2
  96. package/esm5/lib/GridStyleRepository.js +5 -5
  97. package/esm5/lib/HorizontalPropertyEditorDataSource.js +2 -2
  98. package/{esm2015/lib/PropertyEditorPropertyDescription.js → esm5/lib/IDataGridComponent.js} +5 -1
  99. package/esm5/lib/IToolbarVisualModelExport.js +11 -0
  100. package/esm5/lib/MultiColumnComboBoxView_combined.js +297 -285
  101. package/esm5/lib/MultiColumnComboVisualModelExport.js +2 -2
  102. package/esm5/lib/PageChangedEventArgs.js +43 -0
  103. package/esm5/lib/PagedDataProvider.js +7 -0
  104. package/esm5/lib/Pager.js +7 -0
  105. package/esm5/lib/PagerDataSourceNotificationBridge.js +7 -0
  106. package/esm5/lib/PagerGridDataSourceNotificationBridge.js +7 -0
  107. package/esm5/lib/PagerView.js +7 -0
  108. package/esm5/lib/PagerVisualModelExport.js +84 -0
  109. package/esm5/lib/PropertyEditorView_combined.js +144 -144
  110. package/esm5/lib/TemplateCell.js +1 -1
  111. package/esm5/lib/TemplateCellPresenter.js +1 -1
  112. package/esm5/lib/TemplateHeader.js +2 -2
  113. package/esm5/lib/ToolbarVisualModelExport.js +24 -0
  114. package/esm5/lib/VisualModelExport.js +77 -69
  115. package/esm5/lib/igc-column-component.js +141 -113
  116. package/esm5/lib/igc-column-grouping-component.js +35 -21
  117. package/esm5/lib/igc-combo-box-column-component.js +10 -10
  118. package/esm5/lib/igc-data-grid-component.js +636 -413
  119. package/esm5/lib/igc-data-grid-module.js +4 -0
  120. package/esm5/lib/igc-data-grid-pager-component.js +435 -0
  121. package/esm5/lib/igc-data-grid-pager-module.js +20 -0
  122. package/esm5/lib/igc-data-grid-toolbar-component.js +110 -35
  123. package/esm5/lib/igc-date-time-column-component.js +23 -23
  124. package/esm5/lib/igc-horizontal-property-editor-data-source.js +2 -2
  125. package/esm5/lib/igc-image-column-component.js +12 -12
  126. package/esm5/lib/igc-multi-column-combo-box-component.js +147 -141
  127. package/esm5/lib/igc-numeric-column-component.js +35 -35
  128. package/esm5/lib/igc-page-changed-event-args.js +60 -0
  129. package/esm5/lib/igc-property-editor-component.js +7 -7
  130. package/esm5/lib/igc-property-editor-module.js +1 -1
  131. package/esm5/lib/igc-text-column-component.js +9 -9
  132. package/esm5/public_api.js +14 -20
  133. package/fesm2015/igniteui-webcomponents-grids.js +17478 -16796
  134. package/fesm5/igniteui-webcomponents-grids.js +16939 -16142
  135. package/lib/ColumnFilterCondition_combined.d.ts +1025 -824
  136. package/lib/ColumnGroupingView_combined.d.ts +44 -41
  137. package/lib/DataGridLocaleEn.d.ts +1 -0
  138. package/lib/DataGridToolbarView_combined.d.ts +50 -41
  139. package/lib/GridColumnGroupOptionsView_combined.d.ts +1 -1
  140. package/lib/HorizontalPropertyEditorDataSource.d.ts +1 -1
  141. package/lib/IDataGridComponent.d.ts +12 -0
  142. package/lib/IToolbarVisualModelExport.d.ts +11 -0
  143. package/lib/MultiColumnComboBoxView_combined.d.ts +78 -76
  144. package/lib/PageChangedEventArgs.d.ts +11 -0
  145. package/lib/PagedDataProvider.d.ts +1 -0
  146. package/lib/Pager.d.ts +1 -0
  147. package/lib/PagerDataSourceNotificationBridge.d.ts +1 -0
  148. package/lib/PagerGridDataSourceNotificationBridge.d.ts +1 -0
  149. package/lib/PagerView.d.ts +1 -0
  150. package/lib/PagerVisualModelExport.d.ts +25 -0
  151. package/lib/PropertyEditorView_combined.d.ts +10 -10
  152. package/lib/ToolbarVisualModelExport.d.ts +9 -0
  153. package/lib/VisualModelExport.d.ts +21 -17
  154. package/lib/igc-column-component.d.ts +9 -1
  155. package/lib/igc-column-grouping-component.d.ts +8 -4
  156. package/lib/igc-data-grid-component.d.ts +56 -0
  157. package/lib/igc-data-grid-pager-component.d.ts +101 -0
  158. package/lib/igc-data-grid-pager-module.d.ts +3 -0
  159. package/lib/igc-data-grid-toolbar-component.d.ts +15 -0
  160. package/lib/igc-horizontal-property-editor-data-source.d.ts +2 -2
  161. package/lib/igc-multi-column-combo-box-component.d.ts +1 -0
  162. package/lib/igc-page-changed-event-args.d.ts +20 -0
  163. package/lib/igc-property-editor-component.d.ts +2 -2
  164. package/package.json +5 -5
  165. package/public_api.d.ts +14 -20
  166. package/esm2015/lib/PropertyEditorPropertyDescriptionButtonClickEventArgs.js +0 -16
  167. package/esm2015/lib/PropertyEditorPropertyDescriptionCollection.js +0 -7
  168. package/esm2015/lib/PropertyEditorPropertyDescriptionTargetPropertyUpdatingEventArgs.js +0 -40
  169. package/esm2015/lib/PropertyEditorPropertyDescription_combined.js +0 -463
  170. package/esm2015/lib/PropertyEditorTreeTransformer.js +0 -207
  171. package/esm2015/lib/PropertyEditorValueType.js +0 -35
  172. package/esm2015/lib/igc-property-editor-data-source.js +0 -39
  173. package/esm2015/lib/igc-property-editor-description-object-collection.js +0 -48
  174. package/esm2015/lib/igc-property-editor-description-object.js +0 -70
  175. package/esm2015/lib/igc-property-editor-property-description-button-click-event-args.js +0 -24
  176. package/esm2015/lib/igc-property-editor-property-description-changed-event-args.js +0 -24
  177. package/esm2015/lib/igc-property-editor-property-description-collection.js +0 -48
  178. package/esm2015/lib/igc-property-editor-property-description-component.js +0 -372
  179. package/esm2015/lib/igc-property-editor-property-description-target-property-updating-event-args.js +0 -42
  180. package/esm5/lib/PropertyEditorDescriptionObjectCollection.js +0 -7
  181. package/esm5/lib/PropertyEditorPropertyDescription.js +0 -7
  182. package/esm5/lib/PropertyEditorPropertyDescriptionButtonClickEventArgs.js +0 -20
  183. package/esm5/lib/PropertyEditorPropertyDescriptionChangedEventArgs.js +0 -20
  184. package/esm5/lib/PropertyEditorPropertyDescriptionCollection.js +0 -7
  185. package/esm5/lib/PropertyEditorPropertyDescriptionTargetPropertyUpdatingEventArgs.js +0 -54
  186. package/esm5/lib/PropertyEditorPropertyDescription_combined.js +0 -525
  187. package/esm5/lib/PropertyEditorTreeTransformer.js +0 -209
  188. package/esm5/lib/PropertyEditorValueType.js +0 -35
  189. package/esm5/lib/igc-property-editor-data-source.js +0 -53
  190. package/esm5/lib/igc-property-editor-description-object-collection.js +0 -53
  191. package/esm5/lib/igc-property-editor-description-object.js +0 -84
  192. package/esm5/lib/igc-property-editor-property-description-button-click-event-args.js +0 -30
  193. package/esm5/lib/igc-property-editor-property-description-changed-event-args.js +0 -30
  194. package/esm5/lib/igc-property-editor-property-description-collection.js +0 -53
  195. package/esm5/lib/igc-property-editor-property-description-component.js +0 -445
  196. package/esm5/lib/igc-property-editor-property-description-module.js +0 -20
  197. package/esm5/lib/igc-property-editor-property-description-target-property-updating-event-args.js +0 -60
  198. package/lib/PropertyEditorDataSource.d.ts +0 -1
  199. package/lib/PropertyEditorDescriptionObject.d.ts +0 -1
  200. package/lib/PropertyEditorDescriptionObjectCollection.d.ts +0 -1
  201. package/lib/PropertyEditorPropertyDescription.d.ts +0 -1
  202. package/lib/PropertyEditorPropertyDescriptionButtonClickEventArgs.d.ts +0 -7
  203. package/lib/PropertyEditorPropertyDescriptionChangedEventArgs.d.ts +0 -7
  204. package/lib/PropertyEditorPropertyDescriptionCollection.d.ts +0 -1
  205. package/lib/PropertyEditorPropertyDescriptionTargetPropertyUpdatingEventArgs.d.ts +0 -13
  206. package/lib/PropertyEditorPropertyDescription_combined.d.ts +0 -88
  207. package/lib/PropertyEditorTreeTransformer.d.ts +0 -17
  208. package/lib/PropertyEditorValueType.d.ts +0 -28
  209. package/lib/igc-property-editor-data-source.d.ts +0 -16
  210. package/lib/igc-property-editor-description-object-collection.d.ts +0 -8
  211. package/lib/igc-property-editor-description-object.d.ts +0 -17
  212. package/lib/igc-property-editor-property-description-button-click-event-args.d.ts +0 -12
  213. package/lib/igc-property-editor-property-description-changed-event-args.d.ts +0 -12
  214. package/lib/igc-property-editor-property-description-collection.d.ts +0 -8
  215. package/lib/igc-property-editor-property-description-component.d.ts +0 -65
  216. package/lib/igc-property-editor-property-description-module.d.ts +0 -3
  217. package/lib/igc-property-editor-property-description-target-property-updating-event-args.d.ts +0 -15
@@ -11,6 +11,8 @@ import { IgcXInputGroupModule } from "igniteui-webcomponents-inputs";
11
11
  import { IgcMultiColumnComboBoxModule } from './igc-multi-column-combo-box-module';
12
12
  import { IgcFilterOperandModule } from './igc-filter-operand-module';
13
13
  import { IgcColumnGroupingModule } from './igc-column-grouping-module';
14
+ import { IgcDataGridPagerModule } from './igc-data-grid-pager-module';
15
+ import { IgcDataGridToolbarModule } from './igc-data-grid-toolbar-module';
14
16
  export class IgcDataGridModule {
15
17
  static register() {
16
18
  IgcDataGridAllColumnsModule.register();
@@ -20,5 +22,7 @@ export class IgcDataGridModule {
20
22
  IgcMultiColumnComboBoxModule.register();
21
23
  IgcFilterOperandModule.register();
22
24
  IgcColumnGroupingModule.register();
25
+ IgcDataGridPagerModule.register();
26
+ IgcDataGridToolbarModule.register();
23
27
  }
24
28
  }
@@ -0,0 +1,368 @@
1
+ import { delegateCombine, delegateRemove } from "igniteui-webcomponents-core";
2
+ import { getAllPropertyNames, fromSpinal, toSpinal, brushToString, stringToBrush, initializePropertiesFromCss, NamePatcher } from "igniteui-webcomponents-core";
3
+ import { WebComponentRenderer } from "igniteui-webcomponents-core";
4
+ import { RegisterElementHelper } from "igniteui-webcomponents-core";
5
+ import { FontInfo } from "igniteui-webcomponents-core";
6
+ import { BrowserExecutionContext } from "./BrowserExecutionContext";
7
+ import { Pager } from "./Pager";
8
+ import { IgcHTMLElement } from "igniteui-webcomponents-core";
9
+ import { IgcPageChangedEventArgs } from "./igc-page-changed-event-args";
10
+ let PagerStylingDefaults = {};
11
+ export let IgcDataGridPagerComponent = /*@__PURE__*/ (() => {
12
+ class IgcDataGridPagerComponent extends IgcHTMLElement {
13
+ constructor() {
14
+ super();
15
+ this._contentInitialized = false;
16
+ this._renderer = null;
17
+ this._disconnected = false;
18
+ this.containerResized = function () {
19
+ //var width = this._container.getNativeElement().clientWidth;
20
+ //var height = this._container.getNativeElement().clientHeight;
21
+ };
22
+ this._dataSource = null;
23
+ this._settingAttributes = false;
24
+ this._attached = false;
25
+ this._queuedSetAttributes = [];
26
+ this._updatingFromAttribute = false;
27
+ this.__p = null;
28
+ this._hasUserValues = new Set();
29
+ this._stylingContainer = null;
30
+ this._stylingParent = null;
31
+ this._inStyling = false;
32
+ this._pageChanged = null;
33
+ this._pageChanged_wrapped = null;
34
+ if (this._styling) {
35
+ NamePatcher.ensureStylablePatched(Object.getPrototypeOf(this));
36
+ }
37
+ this._renderer = new WebComponentRenderer(this, document, true, PagerStylingDefaults, null);
38
+ this._implementation = new Pager();
39
+ this._implementation.executionContext = new BrowserExecutionContext(null);
40
+ this._implementation.externalObject = this;
41
+ this._renderer.addSizeWatcher(() => {
42
+ this.containerResized();
43
+ });
44
+ }
45
+ set height(value) {
46
+ this._height = value;
47
+ this.style.height = value;
48
+ this.containerResized();
49
+ }
50
+ get height() {
51
+ return this._height;
52
+ }
53
+ set width(value) {
54
+ this._width = value;
55
+ this.style.width = value;
56
+ this.containerResized();
57
+ }
58
+ get width() {
59
+ return this._width;
60
+ }
61
+ createImplementation() {
62
+ return new Pager();
63
+ }
64
+ get i() {
65
+ return this._implementation;
66
+ }
67
+ onImplementationCreated() {
68
+ }
69
+ disconnectedCallback() {
70
+ this._disconnected = true;
71
+ this._attached = false;
72
+ }
73
+ connectedCallback() {
74
+ if (this._disconnected) {
75
+ this._disconnected = false;
76
+ return;
77
+ }
78
+ // Apparently if you read or write the DOM in the constructor of the WebComponent the browser will error. We're supposed to do that
79
+ // stuff in the connectedCallback.
80
+ if (!this._contentInitialized) {
81
+ this._implementation.provideContainer(this._renderer);
82
+ this._contentInitialized = true;
83
+ }
84
+ this.classList.add("ig-data-grid-pager");
85
+ this.classList.add("igc-data-grid-pager");
86
+ this._attached = true;
87
+ this.style.height = this._height;
88
+ this.style.width = this._width;
89
+ this._flushQueuedAttributes();
90
+ // supports themes or custom properties set in CSS
91
+ this._styling(this, this);
92
+ this.afterContentInit();
93
+ }
94
+ afterContentInit() {
95
+ this.i.targetGrid = this.targetGrid.i;
96
+ if (!this.targetGrid) {
97
+ this.i.itemsSource = this._dataSource;
98
+ }
99
+ }
100
+ get actualDataSource() {
101
+ return this.i.actualDataSource;
102
+ }
103
+ /**
104
+ * Gets or sets the data used by the pager.
105
+ * */
106
+ set dataSource(value) {
107
+ this._dataSource = value;
108
+ if (this.i != null) {
109
+ this.i.itemsSource = this._dataSource;
110
+ }
111
+ }
112
+ get dataSource() {
113
+ return this._dataSource;
114
+ }
115
+ /**
116
+ * Gets or sets the target grid for the pager.
117
+ * */
118
+ set targetGrid(value) {
119
+ value == null ? this.i.targetGrid = null : this.i.targetGrid = value.i;
120
+ }
121
+ get targetGrid() {
122
+ if (this.i.targetGrid == null) {
123
+ return null;
124
+ }
125
+ return this.i.targetGrid.externalObject;
126
+ }
127
+ _enqueueSetAttribute(attrName, attrValue) {
128
+ this._queuedSetAttributes.push({ attrName: attrName, attrValue: attrValue });
129
+ }
130
+ _flushQueuedAttributes() {
131
+ this._settingAttributes = true;
132
+ for (let i = 0; i < this._queuedSetAttributes.length; i++) {
133
+ this.setAttribute(this._queuedSetAttributes[i].attrName, this._queuedSetAttributes[i].attrValue);
134
+ }
135
+ this._settingAttributes = false;
136
+ this._queuedSetAttributes.length = 0;
137
+ }
138
+ _a(attrName, attrValue) {
139
+ if (this._updatingFromAttribute) {
140
+ return;
141
+ }
142
+ if (attrValue) {
143
+ attrValue = attrValue.toString();
144
+ }
145
+ this._settingAttributes = true;
146
+ attrName = toSpinal(attrName);
147
+ if (this._attached) {
148
+ this.setAttribute(attrName, attrValue);
149
+ }
150
+ else {
151
+ this._enqueueSetAttribute(attrName, attrValue);
152
+ }
153
+ this._settingAttributes = false;
154
+ }
155
+ static get observedAttributes() {
156
+ if (IgcDataGridPagerComponent._observedAttributesIgcDataGridPagerComponent == null) {
157
+ let names = getAllPropertyNames(IgcDataGridPagerComponent);
158
+ for (let i = 0; i < names.length; i++) {
159
+ names[i] = toSpinal(names[i]);
160
+ }
161
+ IgcDataGridPagerComponent._observedAttributesIgcDataGridPagerComponent = names;
162
+ }
163
+ return IgcDataGridPagerComponent._observedAttributesIgcDataGridPagerComponent;
164
+ }
165
+ attributeChangedCallback(name, oldValue, newValue) {
166
+ if (this._settingAttributes) {
167
+ return;
168
+ }
169
+ let setName = fromSpinal(name);
170
+ this._updatingFromAttribute = true;
171
+ this[setName] = newValue;
172
+ this._updatingFromAttribute = false;
173
+ }
174
+ static register() {
175
+ if (!IgcDataGridPagerComponent._isElementRegistered) {
176
+ IgcDataGridPagerComponent._isElementRegistered = true;
177
+ RegisterElementHelper.registerElement(IgcDataGridPagerComponent.htmlTagName, IgcDataGridPagerComponent);
178
+ }
179
+ }
180
+ get pagerText() {
181
+ return this.i.a9;
182
+ }
183
+ set pagerText(v) {
184
+ this.i.a9 = v;
185
+ }
186
+ /**
187
+ * Gets or sets the page size.
188
+ */
189
+ get pageSize() {
190
+ return this.i.ao;
191
+ }
192
+ set pageSize(v) {
193
+ this.i.ao = +v;
194
+ this._a("pageSize", this.i.ao);
195
+ }
196
+ /**
197
+ * Gets the page count.
198
+ */
199
+ get pageCount() {
200
+ return this.i.an;
201
+ }
202
+ set pageCount(v) {
203
+ this.i.an = +v;
204
+ this._a("pageCount", this.i.an);
205
+ }
206
+ /**
207
+ * Gets or sets the current page for the pager.
208
+ */
209
+ get currentPage() {
210
+ return this.i.ak;
211
+ }
212
+ set currentPage(v) {
213
+ this.i.ak = +v;
214
+ this._a("currentPage", this.i.ak);
215
+ }
216
+ /**
217
+ * Gets or sets the font to use for content cells
218
+ */
219
+ get textStyle() {
220
+ if (this.i.s == null) {
221
+ return null;
222
+ }
223
+ return this.i.s.fontString;
224
+ }
225
+ set textStyle(v) {
226
+ let fi = new FontInfo();
227
+ fi.fontString = v;
228
+ this.i.s = fi;
229
+ this._a("textStyle", this.i.s != null ? this.i.s.fontString : "");
230
+ }
231
+ /**
232
+ * Gets or sets the background color to use.
233
+ */
234
+ get background() {
235
+ return brushToString(this.i.ca);
236
+ }
237
+ set background(v) {
238
+ this.i.ca = stringToBrush(v);
239
+ this._a("background", brushToString(this.i.ca));
240
+ }
241
+ /**
242
+ * Gets or sets the border color around the grid.
243
+ */
244
+ get border() {
245
+ return brushToString(this.i.border);
246
+ }
247
+ set border(v) {
248
+ this.i.border = stringToBrush(v);
249
+ this._a("border", brushToString(this.i.border));
250
+ }
251
+ findByName(name) {
252
+ return null;
253
+ }
254
+ get hasUserValues() {
255
+ return this._hasUserValues;
256
+ }
257
+ __m(propertyName) {
258
+ if (!this._inStyling) {
259
+ this._hasUserValues.add(propertyName);
260
+ }
261
+ }
262
+ _styling(container, component, parent) {
263
+ if (this._inStyling) {
264
+ return;
265
+ }
266
+ this._inStyling = true;
267
+ this._stylingContainer = container;
268
+ this._stylingParent = component;
269
+ let genericPrefix = "";
270
+ let typeName = this.i.$type.name;
271
+ if (typeName.indexOf("Xam") === 0) {
272
+ typeName = typeName.substring(3);
273
+ }
274
+ genericPrefix = toSpinal("DataGridPagerComponent");
275
+ let additionalPrefixes = [];
276
+ let prefix = toSpinal(typeName);
277
+ additionalPrefixes.push(prefix + "-");
278
+ let b = this.i.$type.baseType;
279
+ while (b && b.name != "Object" &&
280
+ b.name != "Base" &&
281
+ b.name != "Control" &&
282
+ b.Name != "DependencyObject" &&
283
+ b.Name != "FrameworkElement") {
284
+ typeName = b.name;
285
+ if (typeName.indexOf("Xam") === 0) {
286
+ typeName = typeName.substring(3);
287
+ }
288
+ let basePrefix = toSpinal(typeName);
289
+ additionalPrefixes.push(basePrefix + "-");
290
+ b = b.baseType;
291
+ }
292
+ if (parent) {
293
+ let parentTypeName = parent.i.$type.name;
294
+ if (parentTypeName.indexOf("Xam") === 0) {
295
+ parentTypeName = parentTypeName.substring(3);
296
+ }
297
+ let parentPrefix = toSpinal(parentTypeName);
298
+ additionalPrefixes.push(parentPrefix + "-" + genericPrefix + "-");
299
+ additionalPrefixes.push(parentPrefix + "-" + prefix + "-");
300
+ }
301
+ initializePropertiesFromCss(container, this, genericPrefix + "-", this.hasUserValues, false, additionalPrefixes);
302
+ if (this._otherStyling) {
303
+ this._otherStyling(container, component, parent);
304
+ }
305
+ this._inStyling = false;
306
+ }
307
+ nextPage() {
308
+ this.i.bn();
309
+ }
310
+ previousPage() {
311
+ this.i.by();
312
+ }
313
+ firstPage() {
314
+ this.i.bk();
315
+ }
316
+ lastPage() {
317
+ this.i.bm();
318
+ }
319
+ provideContainer(container) {
320
+ this.i.provideContainer(container);
321
+ }
322
+ /**
323
+ * Exports visual information about the current state of the grid.
324
+
325
+ */
326
+ exportVisualModel() {
327
+ let iv = this.i.as();
328
+ return (iv);
329
+ }
330
+ /**
331
+ * Returns a serialized copy of the exported visual model
332
+
333
+ */
334
+ exportSerializedVisualModel() {
335
+ let iv = this.i.az();
336
+ return (iv);
337
+ }
338
+ /**
339
+ * Event called when the page has changed.
340
+ */
341
+ get pageChanged() {
342
+ return this._pageChanged;
343
+ }
344
+ set pageChanged(ev) {
345
+ if (this._pageChanged_wrapped !== null) {
346
+ this.i.pageChanged = delegateRemove(this.i.pageChanged, this._pageChanged_wrapped);
347
+ this._pageChanged_wrapped = null;
348
+ this._pageChanged = null;
349
+ }
350
+ this._pageChanged = ev;
351
+ this._pageChanged_wrapped = (o, e) => {
352
+ let outerArgs = new IgcPageChangedEventArgs();
353
+ outerArgs._provideImplementation(e);
354
+ if (this.beforePageChanged) {
355
+ this.beforePageChanged(this, outerArgs);
356
+ }
357
+ if (this._pageChanged) {
358
+ this._pageChanged(this, outerArgs);
359
+ }
360
+ };
361
+ this.i.pageChanged = delegateCombine(this.i.pageChanged, this._pageChanged_wrapped);
362
+ }
363
+ }
364
+ IgcDataGridPagerComponent._observedAttributesIgcDataGridPagerComponent = null;
365
+ IgcDataGridPagerComponent.htmlTagName = "igc-data-grid-pager";
366
+ IgcDataGridPagerComponent._isElementRegistered = false;
367
+ return IgcDataGridPagerComponent;
368
+ })();
@@ -4,13 +4,13 @@ https://www.infragistics.com/legal/license/igultimate-la
4
4
  https://www.infragistics.com/legal/license/igultimate-eula
5
5
  GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
6
6
  */
7
- import { IgcPropertyEditorPropertyDescriptionComponent } from './igc-property-editor-property-description-component';
8
- import { PropertyEditorPropertyDescription } from './PropertyEditorPropertyDescription';
7
+ import { IgcXButtonModule } from "igniteui-webcomponents-inputs";
8
+ import { IgcDataGridPagerComponent } from './igc-data-grid-pager-component';
9
9
  import { TypeRegistrar } from "igniteui-webcomponents-core";
10
- export class IgcPropertyEditorPropertyDescriptionModule {
10
+ export class IgcDataGridPagerModule {
11
11
  static register() {
12
- IgcPropertyEditorPropertyDescriptionComponent.register();
13
- TypeRegistrar.registerCons("IgcPropertyEditorPropertyDescriptionComponent", IgcPropertyEditorPropertyDescriptionComponent);
14
- TypeRegistrar.register("PropertyEditorPropertyDescription", PropertyEditorPropertyDescription.$type);
12
+ IgcXButtonModule.register();
13
+ IgcDataGridPagerComponent.register();
14
+ TypeRegistrar.registerCons('IgcDataGridPagerComponent', IgcDataGridPagerComponent);
15
15
  }
16
16
  }
@@ -7,6 +7,7 @@ import { DataGridToolbar } from './DataGridToolbar';
7
7
  import { ControlDisplayDensity_$type } from "igniteui-webcomponents-core";
8
8
  import { BaseControlTheme_$type } from "igniteui-webcomponents-core";
9
9
  import { IgcHTMLElement } from "igniteui-webcomponents-core";
10
+ import { Thickness } from "igniteui-webcomponents-core";
10
11
  export let IgcDataGridToolbarComponent = /*@__PURE__*/ (() => {
11
12
  class IgcDataGridToolbarComponent extends IgcHTMLElement {
12
13
  constructor() {
@@ -199,131 +200,173 @@ export let IgcDataGridToolbarComponent = /*@__PURE__*/ (() => {
199
200
  * Gets or Sets the property name that contains the values.
200
201
  */
201
202
  get toolbarTitle() {
202
- return this.i.ap;
203
+ return this.i.ar;
203
204
  }
204
205
  set toolbarTitle(v) {
205
- this.i.ap = v;
206
+ this.i.ar = v;
206
207
  }
207
208
  /**
208
209
  * Gets or Sets the property name that contains the values.
209
210
  */
210
211
  get toolbarTitleStyle() {
211
- if (this.i.m == null) {
212
+ if (this.i.n == null) {
212
213
  return null;
213
214
  }
214
- return this.i.m.fontString;
215
+ return this.i.n.fontString;
215
216
  }
216
217
  set toolbarTitleStyle(v) {
217
218
  let fi = new FontInfo();
218
219
  fi.fontString = v;
219
- this.i.m = fi;
220
- this._a("toolbarTitleStyle", this.i.m != null ? this.i.m.fontString : "");
220
+ this.i.n = fi;
221
+ this._a("toolbarTitleStyle", this.i.n != null ? this.i.n.fontString : "");
221
222
  }
222
223
  /**
223
224
  * Gets or Sets the property name that contains the values.
224
225
  */
225
226
  get toolbarTitleColor() {
226
- return brushToString(this.i.bd);
227
+ return brushToString(this.i.bg);
227
228
  }
228
229
  set toolbarTitleColor(v) {
229
- this.i.bd = stringToBrush(v);
230
- this._a("toolbarTitleColor", brushToString(this.i.bd));
230
+ this.i.bg = stringToBrush(v);
231
+ this._a("toolbarTitleColor", brushToString(this.i.bg));
231
232
  }
232
233
  /**
233
234
  * Gets or Sets the property name that contains the values.
234
235
  */
235
236
  get backgroundColor() {
236
- return brushToString(this.i.bb);
237
+ return brushToString(this.i.be);
237
238
  }
238
239
  set backgroundColor(v) {
239
- this.i.bb = stringToBrush(v);
240
- this._a("backgroundColor", brushToString(this.i.bb));
240
+ this.i.be = stringToBrush(v);
241
+ this._a("backgroundColor", brushToString(this.i.be));
241
242
  }
242
243
  /**
243
244
  * Gets or Sets the property name that contains the values.
244
245
  */
245
246
  get dialogBackgroundColor() {
246
- return brushToString(this.i.bc);
247
+ return brushToString(this.i.bf);
247
248
  }
248
249
  set dialogBackgroundColor(v) {
249
- this.i.bc = stringToBrush(v);
250
- this._a("dialogBackgroundColor", brushToString(this.i.bc));
250
+ this.i.bf = stringToBrush(v);
251
+ this._a("dialogBackgroundColor", brushToString(this.i.bf));
251
252
  }
252
253
  /**
253
254
  * Gets or Sets the property name that contains the values.
254
255
  */
255
256
  get columnChooser() {
256
- return this.i.p;
257
+ return this.i.q;
257
258
  }
258
259
  set columnChooser(v) {
259
- this.i.p = ensureBool(v);
260
- this._a("columnChooser", this.i.p);
260
+ this.i.q = ensureBool(v);
261
+ this._a("columnChooser", this.i.q);
261
262
  }
262
263
  /**
263
264
  * Gets or Sets the property name that contains the values.
264
265
  */
265
266
  get columnChooserText() {
266
- return this.i.ab;
267
+ return this.i.ad;
267
268
  }
268
269
  set columnChooserText(v) {
269
- this.i.ab = v;
270
+ this.i.ad = v;
270
271
  }
271
272
  /**
272
273
  * Gets or Sets the property name that contains the values.
273
274
  */
274
275
  get columnChooserTitle() {
275
- return this.i.ad;
276
+ return this.i.af;
276
277
  }
277
278
  set columnChooserTitle(v) {
278
- this.i.ad = v;
279
+ this.i.af = v;
279
280
  }
280
281
  /**
281
282
  * Gets or Sets the property name that contains the values.
282
283
  */
283
284
  get columnPinning() {
284
- return this.i.q;
285
+ return this.i.r;
285
286
  }
286
287
  set columnPinning(v) {
287
- this.i.q = ensureBool(v);
288
- this._a("columnPinning", this.i.q);
288
+ this.i.r = ensureBool(v);
289
+ this._a("columnPinning", this.i.r);
289
290
  }
290
291
  /**
291
292
  * Gets or Sets the property name that contains the values.
292
293
  */
293
294
  get columnPinningText() {
294
- return this.i.ag;
295
+ return this.i.ai;
295
296
  }
296
297
  set columnPinningText(v) {
297
- this.i.ag = v;
298
+ this.i.ai = v;
298
299
  }
299
300
  /**
300
301
  * Gets or Sets the property name that contains the values.
301
302
  */
302
303
  get columnPinningTitle() {
303
- return this.i.ai;
304
+ return this.i.ak;
304
305
  }
305
306
  set columnPinningTitle(v) {
306
- this.i.ai = v;
307
+ this.i.ak = v;
308
+ }
309
+ get borderWidthBottom() {
310
+ return this.i.bi ? this.i.bi.bottom : NaN;
311
+ }
312
+ set borderWidthBottom(v) {
313
+ this.ensureBorderWidth();
314
+ this.i.bi.bottom = +v;
315
+ this._a("borderWidthBottom", this.i.bi.bottom);
316
+ this.i.bi = this.i.bi;
317
+ }
318
+ get borderWidthLeft() {
319
+ return this.i.bi ? this.i.bi.left : NaN;
320
+ }
321
+ set borderWidthLeft(v) {
322
+ this.ensureBorderWidth();
323
+ this.i.bi.left = +v;
324
+ this._a("borderWidthLeft", this.i.bi.left);
325
+ this.i.bi = this.i.bi;
326
+ }
327
+ get borderWidthRight() {
328
+ return this.i.bi ? this.i.bi.right : NaN;
329
+ }
330
+ set borderWidthRight(v) {
331
+ this.ensureBorderWidth();
332
+ this.i.bi.right = +v;
333
+ this._a("borderWidthRight", this.i.bi.right);
334
+ this.i.bi = this.i.bi;
335
+ }
336
+ get borderWidthTop() {
337
+ return this.i.bi ? this.i.bi.top : NaN;
338
+ }
339
+ set borderWidthTop(v) {
340
+ this.ensureBorderWidth();
341
+ this.i.bi.top = +v;
342
+ this._a("borderWidthTop", this.i.bi.top);
343
+ this.i.bi = this.i.bi;
344
+ }
345
+ ensureBorderWidth() {
346
+ if (this.i.bi) {
347
+ return;
348
+ }
349
+ this.i.bi = new Thickness(2);
307
350
  }
308
351
  /**
309
352
  * Gets or Sets the property name that contains the values.
310
353
  */
311
354
  get density() {
312
- return this.i.k;
355
+ return this.i.l;
313
356
  }
314
357
  set density(v) {
315
- this.i.k = ensureEnum(ControlDisplayDensity_$type, v);
316
- this._a("density", enumToString(ControlDisplayDensity_$type, this.i.k));
358
+ this.i.l = ensureEnum(ControlDisplayDensity_$type, v);
359
+ this._a("density", enumToString(ControlDisplayDensity_$type, this.i.l));
317
360
  }
318
361
  /**
319
362
  * Gets or Sets the property name that contains the values.
320
363
  */
321
364
  get baseTheme() {
322
- return this.i.i;
365
+ return this.i.j;
323
366
  }
324
367
  set baseTheme(v) {
325
- this.i.i = ensureEnum(BaseControlTheme_$type, v);
326
- this._a("baseTheme", enumToString(BaseControlTheme_$type, this.i.i));
368
+ this.i.j = ensureEnum(BaseControlTheme_$type, v);
369
+ this._a("baseTheme", enumToString(BaseControlTheme_$type, this.i.j));
327
370
  }
328
371
  findByName(name) {
329
372
  if (this.targetGrid && this.targetGrid.name && this.targetGrid.name == name) {
@@ -387,6 +430,22 @@ export let IgcDataGridToolbarComponent = /*@__PURE__*/ (() => {
387
430
  }
388
431
  this._inStyling = false;
389
432
  }
433
+ /**
434
+ * Exports visual information about the current state of the toolbar.
435
+
436
+ */
437
+ exportVisualModel() {
438
+ let iv = this.i.exportVisualModel();
439
+ return (iv);
440
+ }
441
+ /**
442
+ * Returns a serialized copy of the exported visual model
443
+
444
+ */
445
+ exportSerializedVisualModel() {
446
+ let iv = this.i.exportSerializedVisualModel();
447
+ return (iv);
448
+ }
390
449
  }
391
450
  IgcDataGridToolbarComponent._observedAttributesIgcDataGridToolbarComponent = null;
392
451
  IgcDataGridToolbarComponent.htmlTagName = "igc-data-grid-toolbar";