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
  var IgcDataGridModule = /** @class */ /*@__PURE__*/ (function () {
15
17
  function IgcDataGridModule() {
16
18
  }
@@ -22,6 +24,8 @@ var IgcDataGridModule = /** @class */ /*@__PURE__*/ (function () {
22
24
  IgcMultiColumnComboBoxModule.register();
23
25
  IgcFilterOperandModule.register();
24
26
  IgcColumnGroupingModule.register();
27
+ IgcDataGridPagerModule.register();
28
+ IgcDataGridToolbarModule.register();
25
29
  };
26
30
  return IgcDataGridModule;
27
31
  }());
@@ -0,0 +1,435 @@
1
+ import * as tslib_1 from "tslib";
2
+ import { delegateCombine, delegateRemove } from "igniteui-webcomponents-core";
3
+ import { getAllPropertyNames, fromSpinal, toSpinal, brushToString, stringToBrush, initializePropertiesFromCss, NamePatcher } from "igniteui-webcomponents-core";
4
+ import { WebComponentRenderer } from "igniteui-webcomponents-core";
5
+ import { RegisterElementHelper } from "igniteui-webcomponents-core";
6
+ import { FontInfo } from "igniteui-webcomponents-core";
7
+ import { BrowserExecutionContext } from "./BrowserExecutionContext";
8
+ import { Pager } from "./Pager";
9
+ import { IgcHTMLElement } from "igniteui-webcomponents-core";
10
+ import { IgcPageChangedEventArgs } from "./igc-page-changed-event-args";
11
+ var PagerStylingDefaults = {};
12
+ var IgcDataGridPagerComponent = /** @class */ /*@__PURE__*/ (function (_super) {
13
+ tslib_1.__extends(IgcDataGridPagerComponent, _super);
14
+ function IgcDataGridPagerComponent() {
15
+ var _this = _super.call(this) || this;
16
+ _this._contentInitialized = false;
17
+ _this._renderer = null;
18
+ _this._disconnected = false;
19
+ _this.containerResized = function () {
20
+ //var width = this._container.getNativeElement().clientWidth;
21
+ //var height = this._container.getNativeElement().clientHeight;
22
+ };
23
+ _this._dataSource = null;
24
+ _this._settingAttributes = false;
25
+ _this._attached = false;
26
+ _this._queuedSetAttributes = [];
27
+ _this._updatingFromAttribute = false;
28
+ _this.__p = null;
29
+ _this._hasUserValues = new Set();
30
+ _this._stylingContainer = null;
31
+ _this._stylingParent = null;
32
+ _this._inStyling = false;
33
+ _this._pageChanged = null;
34
+ _this._pageChanged_wrapped = null;
35
+ if (_this._styling) {
36
+ NamePatcher.ensureStylablePatched(Object.getPrototypeOf(_this));
37
+ }
38
+ _this._renderer = new WebComponentRenderer(_this, document, true, PagerStylingDefaults, null);
39
+ _this._implementation = new Pager();
40
+ _this._implementation.executionContext = new BrowserExecutionContext(null);
41
+ _this._implementation.externalObject = _this;
42
+ _this._renderer.addSizeWatcher(function () {
43
+ _this.containerResized();
44
+ });
45
+ return _this;
46
+ }
47
+ Object.defineProperty(IgcDataGridPagerComponent.prototype, "height", {
48
+ get: function () {
49
+ return this._height;
50
+ },
51
+ set: function (value) {
52
+ this._height = value;
53
+ this.style.height = value;
54
+ this.containerResized();
55
+ },
56
+ enumerable: true,
57
+ configurable: true
58
+ });
59
+ Object.defineProperty(IgcDataGridPagerComponent.prototype, "width", {
60
+ get: function () {
61
+ return this._width;
62
+ },
63
+ set: function (value) {
64
+ this._width = value;
65
+ this.style.width = value;
66
+ this.containerResized();
67
+ },
68
+ enumerable: true,
69
+ configurable: true
70
+ });
71
+ IgcDataGridPagerComponent.prototype.createImplementation = function () {
72
+ return new Pager();
73
+ };
74
+ Object.defineProperty(IgcDataGridPagerComponent.prototype, "i", {
75
+ get: function () {
76
+ return this._implementation;
77
+ },
78
+ enumerable: true,
79
+ configurable: true
80
+ });
81
+ IgcDataGridPagerComponent.prototype.onImplementationCreated = function () {
82
+ };
83
+ IgcDataGridPagerComponent.prototype.disconnectedCallback = function () {
84
+ this._disconnected = true;
85
+ this._attached = false;
86
+ };
87
+ IgcDataGridPagerComponent.prototype.connectedCallback = function () {
88
+ if (this._disconnected) {
89
+ this._disconnected = false;
90
+ return;
91
+ }
92
+ // Apparently if you read or write the DOM in the constructor of the WebComponent the browser will error. We're supposed to do that
93
+ // stuff in the connectedCallback.
94
+ if (!this._contentInitialized) {
95
+ this._implementation.provideContainer(this._renderer);
96
+ this._contentInitialized = true;
97
+ }
98
+ this.classList.add("ig-data-grid-pager");
99
+ this.classList.add("igc-data-grid-pager");
100
+ this._attached = true;
101
+ this.style.height = this._height;
102
+ this.style.width = this._width;
103
+ this._flushQueuedAttributes();
104
+ // supports themes or custom properties set in CSS
105
+ this._styling(this, this);
106
+ this.afterContentInit();
107
+ };
108
+ IgcDataGridPagerComponent.prototype.afterContentInit = function () {
109
+ this.i.targetGrid = this.targetGrid.i;
110
+ if (!this.targetGrid) {
111
+ this.i.itemsSource = this._dataSource;
112
+ }
113
+ };
114
+ Object.defineProperty(IgcDataGridPagerComponent.prototype, "actualDataSource", {
115
+ get: function () {
116
+ return this.i.actualDataSource;
117
+ },
118
+ enumerable: true,
119
+ configurable: true
120
+ });
121
+ Object.defineProperty(IgcDataGridPagerComponent.prototype, "dataSource", {
122
+ get: function () {
123
+ return this._dataSource;
124
+ },
125
+ /**
126
+ * Gets or sets the data used by the pager.
127
+ * */
128
+ set: function (value) {
129
+ this._dataSource = value;
130
+ if (this.i != null) {
131
+ this.i.itemsSource = this._dataSource;
132
+ }
133
+ },
134
+ enumerable: true,
135
+ configurable: true
136
+ });
137
+ Object.defineProperty(IgcDataGridPagerComponent.prototype, "targetGrid", {
138
+ get: function () {
139
+ if (this.i.targetGrid == null) {
140
+ return null;
141
+ }
142
+ return this.i.targetGrid.externalObject;
143
+ },
144
+ /**
145
+ * Gets or sets the target grid for the pager.
146
+ * */
147
+ set: function (value) {
148
+ value == null ? this.i.targetGrid = null : this.i.targetGrid = value.i;
149
+ },
150
+ enumerable: true,
151
+ configurable: true
152
+ });
153
+ IgcDataGridPagerComponent.prototype._enqueueSetAttribute = function (attrName, attrValue) {
154
+ this._queuedSetAttributes.push({ attrName: attrName, attrValue: attrValue });
155
+ };
156
+ IgcDataGridPagerComponent.prototype._flushQueuedAttributes = function () {
157
+ this._settingAttributes = true;
158
+ for (var i = 0; i < this._queuedSetAttributes.length; i++) {
159
+ this.setAttribute(this._queuedSetAttributes[i].attrName, this._queuedSetAttributes[i].attrValue);
160
+ }
161
+ this._settingAttributes = false;
162
+ this._queuedSetAttributes.length = 0;
163
+ };
164
+ IgcDataGridPagerComponent.prototype._a = function (attrName, attrValue) {
165
+ if (this._updatingFromAttribute) {
166
+ return;
167
+ }
168
+ if (attrValue) {
169
+ attrValue = attrValue.toString();
170
+ }
171
+ this._settingAttributes = true;
172
+ attrName = toSpinal(attrName);
173
+ if (this._attached) {
174
+ this.setAttribute(attrName, attrValue);
175
+ }
176
+ else {
177
+ this._enqueueSetAttribute(attrName, attrValue);
178
+ }
179
+ this._settingAttributes = false;
180
+ };
181
+ Object.defineProperty(IgcDataGridPagerComponent, "observedAttributes", {
182
+ get: function () {
183
+ if (IgcDataGridPagerComponent._observedAttributesIgcDataGridPagerComponent == null) {
184
+ var names = getAllPropertyNames(IgcDataGridPagerComponent);
185
+ for (var i = 0; i < names.length; i++) {
186
+ names[i] = toSpinal(names[i]);
187
+ }
188
+ IgcDataGridPagerComponent._observedAttributesIgcDataGridPagerComponent = names;
189
+ }
190
+ return IgcDataGridPagerComponent._observedAttributesIgcDataGridPagerComponent;
191
+ },
192
+ enumerable: true,
193
+ configurable: true
194
+ });
195
+ IgcDataGridPagerComponent.prototype.attributeChangedCallback = function (name, oldValue, newValue) {
196
+ if (this._settingAttributes) {
197
+ return;
198
+ }
199
+ var setName = fromSpinal(name);
200
+ this._updatingFromAttribute = true;
201
+ this[setName] = newValue;
202
+ this._updatingFromAttribute = false;
203
+ };
204
+ IgcDataGridPagerComponent.register = function () {
205
+ if (!IgcDataGridPagerComponent._isElementRegistered) {
206
+ IgcDataGridPagerComponent._isElementRegistered = true;
207
+ RegisterElementHelper.registerElement(IgcDataGridPagerComponent.htmlTagName, IgcDataGridPagerComponent);
208
+ }
209
+ };
210
+ Object.defineProperty(IgcDataGridPagerComponent.prototype, "pagerText", {
211
+ get: function () {
212
+ return this.i.a9;
213
+ },
214
+ set: function (v) {
215
+ this.i.a9 = v;
216
+ },
217
+ enumerable: true,
218
+ configurable: true
219
+ });
220
+ Object.defineProperty(IgcDataGridPagerComponent.prototype, "pageSize", {
221
+ /**
222
+ * Gets or sets the page size.
223
+ */
224
+ get: function () {
225
+ return this.i.ao;
226
+ },
227
+ set: function (v) {
228
+ this.i.ao = +v;
229
+ this._a("pageSize", this.i.ao);
230
+ },
231
+ enumerable: true,
232
+ configurable: true
233
+ });
234
+ Object.defineProperty(IgcDataGridPagerComponent.prototype, "pageCount", {
235
+ /**
236
+ * Gets the page count.
237
+ */
238
+ get: function () {
239
+ return this.i.an;
240
+ },
241
+ set: function (v) {
242
+ this.i.an = +v;
243
+ this._a("pageCount", this.i.an);
244
+ },
245
+ enumerable: true,
246
+ configurable: true
247
+ });
248
+ Object.defineProperty(IgcDataGridPagerComponent.prototype, "currentPage", {
249
+ /**
250
+ * Gets or sets the current page for the pager.
251
+ */
252
+ get: function () {
253
+ return this.i.ak;
254
+ },
255
+ set: function (v) {
256
+ this.i.ak = +v;
257
+ this._a("currentPage", this.i.ak);
258
+ },
259
+ enumerable: true,
260
+ configurable: true
261
+ });
262
+ Object.defineProperty(IgcDataGridPagerComponent.prototype, "textStyle", {
263
+ /**
264
+ * Gets or sets the font to use for content cells
265
+ */
266
+ get: function () {
267
+ if (this.i.s == null) {
268
+ return null;
269
+ }
270
+ return this.i.s.fontString;
271
+ },
272
+ set: function (v) {
273
+ var fi = new FontInfo();
274
+ fi.fontString = v;
275
+ this.i.s = fi;
276
+ this._a("textStyle", this.i.s != null ? this.i.s.fontString : "");
277
+ },
278
+ enumerable: true,
279
+ configurable: true
280
+ });
281
+ Object.defineProperty(IgcDataGridPagerComponent.prototype, "background", {
282
+ /**
283
+ * Gets or sets the background color to use.
284
+ */
285
+ get: function () {
286
+ return brushToString(this.i.ca);
287
+ },
288
+ set: function (v) {
289
+ this.i.ca = stringToBrush(v);
290
+ this._a("background", brushToString(this.i.ca));
291
+ },
292
+ enumerable: true,
293
+ configurable: true
294
+ });
295
+ Object.defineProperty(IgcDataGridPagerComponent.prototype, "border", {
296
+ /**
297
+ * Gets or sets the border color around the grid.
298
+ */
299
+ get: function () {
300
+ return brushToString(this.i.border);
301
+ },
302
+ set: function (v) {
303
+ this.i.border = stringToBrush(v);
304
+ this._a("border", brushToString(this.i.border));
305
+ },
306
+ enumerable: true,
307
+ configurable: true
308
+ });
309
+ IgcDataGridPagerComponent.prototype.findByName = function (name) {
310
+ return null;
311
+ };
312
+ Object.defineProperty(IgcDataGridPagerComponent.prototype, "hasUserValues", {
313
+ get: function () {
314
+ return this._hasUserValues;
315
+ },
316
+ enumerable: true,
317
+ configurable: true
318
+ });
319
+ IgcDataGridPagerComponent.prototype.__m = function (propertyName) {
320
+ if (!this._inStyling) {
321
+ this._hasUserValues.add(propertyName);
322
+ }
323
+ };
324
+ IgcDataGridPagerComponent.prototype._styling = function (container, component, parent) {
325
+ if (this._inStyling) {
326
+ return;
327
+ }
328
+ this._inStyling = true;
329
+ this._stylingContainer = container;
330
+ this._stylingParent = component;
331
+ var genericPrefix = "";
332
+ var typeName = this.i.$type.name;
333
+ if (typeName.indexOf("Xam") === 0) {
334
+ typeName = typeName.substring(3);
335
+ }
336
+ genericPrefix = toSpinal("DataGridPagerComponent");
337
+ var additionalPrefixes = [];
338
+ var prefix = toSpinal(typeName);
339
+ additionalPrefixes.push(prefix + "-");
340
+ var b = this.i.$type.baseType;
341
+ while (b && b.name != "Object" &&
342
+ b.name != "Base" &&
343
+ b.name != "Control" &&
344
+ b.Name != "DependencyObject" &&
345
+ b.Name != "FrameworkElement") {
346
+ typeName = b.name;
347
+ if (typeName.indexOf("Xam") === 0) {
348
+ typeName = typeName.substring(3);
349
+ }
350
+ var basePrefix = toSpinal(typeName);
351
+ additionalPrefixes.push(basePrefix + "-");
352
+ b = b.baseType;
353
+ }
354
+ if (parent) {
355
+ var parentTypeName = parent.i.$type.name;
356
+ if (parentTypeName.indexOf("Xam") === 0) {
357
+ parentTypeName = parentTypeName.substring(3);
358
+ }
359
+ var parentPrefix = toSpinal(parentTypeName);
360
+ additionalPrefixes.push(parentPrefix + "-" + genericPrefix + "-");
361
+ additionalPrefixes.push(parentPrefix + "-" + prefix + "-");
362
+ }
363
+ initializePropertiesFromCss(container, this, genericPrefix + "-", this.hasUserValues, false, additionalPrefixes);
364
+ if (this._otherStyling) {
365
+ this._otherStyling(container, component, parent);
366
+ }
367
+ this._inStyling = false;
368
+ };
369
+ IgcDataGridPagerComponent.prototype.nextPage = function () {
370
+ this.i.bn();
371
+ };
372
+ IgcDataGridPagerComponent.prototype.previousPage = function () {
373
+ this.i.by();
374
+ };
375
+ IgcDataGridPagerComponent.prototype.firstPage = function () {
376
+ this.i.bk();
377
+ };
378
+ IgcDataGridPagerComponent.prototype.lastPage = function () {
379
+ this.i.bm();
380
+ };
381
+ IgcDataGridPagerComponent.prototype.provideContainer = function (container) {
382
+ this.i.provideContainer(container);
383
+ };
384
+ /**
385
+ * Exports visual information about the current state of the grid.
386
+
387
+ */
388
+ IgcDataGridPagerComponent.prototype.exportVisualModel = function () {
389
+ var iv = this.i.as();
390
+ return (iv);
391
+ };
392
+ /**
393
+ * Returns a serialized copy of the exported visual model
394
+
395
+ */
396
+ IgcDataGridPagerComponent.prototype.exportSerializedVisualModel = function () {
397
+ var iv = this.i.az();
398
+ return (iv);
399
+ };
400
+ Object.defineProperty(IgcDataGridPagerComponent.prototype, "pageChanged", {
401
+ /**
402
+ * Event called when the page has changed.
403
+ */
404
+ get: function () {
405
+ return this._pageChanged;
406
+ },
407
+ set: function (ev) {
408
+ var _this = this;
409
+ if (this._pageChanged_wrapped !== null) {
410
+ this.i.pageChanged = delegateRemove(this.i.pageChanged, this._pageChanged_wrapped);
411
+ this._pageChanged_wrapped = null;
412
+ this._pageChanged = null;
413
+ }
414
+ this._pageChanged = ev;
415
+ this._pageChanged_wrapped = function (o, e) {
416
+ var outerArgs = new IgcPageChangedEventArgs();
417
+ outerArgs._provideImplementation(e);
418
+ if (_this.beforePageChanged) {
419
+ _this.beforePageChanged(_this, outerArgs);
420
+ }
421
+ if (_this._pageChanged) {
422
+ _this._pageChanged(_this, outerArgs);
423
+ }
424
+ };
425
+ this.i.pageChanged = delegateCombine(this.i.pageChanged, this._pageChanged_wrapped);
426
+ },
427
+ enumerable: true,
428
+ configurable: true
429
+ });
430
+ IgcDataGridPagerComponent._observedAttributesIgcDataGridPagerComponent = null;
431
+ IgcDataGridPagerComponent.htmlTagName = "igc-data-grid-pager";
432
+ IgcDataGridPagerComponent._isElementRegistered = false;
433
+ return IgcDataGridPagerComponent;
434
+ }(IgcHTMLElement));
435
+ export { IgcDataGridPagerComponent };
@@ -0,0 +1,20 @@
1
+ /*
2
+ THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
3
+ https://www.infragistics.com/legal/license/igultimate-la
4
+ https://www.infragistics.com/legal/license/igultimate-eula
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
+ */
7
+ import { IgcXButtonModule } from "igniteui-webcomponents-inputs";
8
+ import { IgcDataGridPagerComponent } from './igc-data-grid-pager-component';
9
+ import { TypeRegistrar } from "igniteui-webcomponents-core";
10
+ var IgcDataGridPagerModule = /** @class */ /*@__PURE__*/ (function () {
11
+ function IgcDataGridPagerModule() {
12
+ }
13
+ IgcDataGridPagerModule.register = function () {
14
+ IgcXButtonModule.register();
15
+ IgcDataGridPagerComponent.register();
16
+ TypeRegistrar.registerCons('IgcDataGridPagerComponent', IgcDataGridPagerComponent);
17
+ };
18
+ return IgcDataGridPagerModule;
19
+ }());
20
+ export { IgcDataGridPagerModule };