@componyx/ui 0.0.0-stage → 1.0.3

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 (169) hide show
  1. package/AppSkin/AppSkin.css +1268 -0
  2. package/AppSkin/AppSkin.js +2748 -0
  3. package/AppSkin/Themes/Default.css +241 -0
  4. package/Base/Base.js +3407 -0
  5. package/Base/ComponentIcons.css +66 -0
  6. package/Base/Font/ComponentIcons.woff +0 -0
  7. package/Base/Font/UI.woff +0 -0
  8. package/Base/Library.js +8432 -0
  9. package/Base/NavigationManager.js +462 -0
  10. package/Base/ResponsiveTemplates.js +371 -0
  11. package/Base/Sanitizer.js +288 -0
  12. package/Base/Themes/Default.css +255 -0
  13. package/Base/UI.css +618 -0
  14. package/Base/UIResourcePath.js +6 -0
  15. package/Bindary/Bindary.js +2011 -0
  16. package/Bindary/Modules/Connection.js +216 -0
  17. package/Bindary/Modules/Core.js +854 -0
  18. package/Bindary/Modules/DataUpdater.js +351 -0
  19. package/Bindary/Modules/ExpressionEngine.js +347 -0
  20. package/Bindary/Modules/ProxyManager.js +482 -0
  21. package/Bindary/Modules/Renderer.js +605 -0
  22. package/Bindary/Modules/Router.js +291 -0
  23. package/Bindary/Modules/Scroller.js +89 -0
  24. package/Bindary/Modules/Template.js +1273 -0
  25. package/BookmarkSpy/BookmarkSpy.js +430 -0
  26. package/Box/Box.css +36 -0
  27. package/Box/Box.js +1685 -0
  28. package/Button/Button.css +470 -0
  29. package/Button/Button.js +1398 -0
  30. package/Button/Themes/Default.css +200 -0
  31. package/Carousel/Carousel.css +273 -0
  32. package/Carousel/Carousel.js +607 -0
  33. package/ColorButton/ColorButton.css +39 -0
  34. package/ColorButton/ColorButton.js +336 -0
  35. package/ColorPicker/ColorPicker.css +359 -0
  36. package/ColorPicker/ColorPicker.js +972 -0
  37. package/ComboBox/ComboBox.css +357 -0
  38. package/ComboBox/ComboBox.js +2342 -0
  39. package/ComboBox/Themes/Default.css +23 -0
  40. package/DataPager/DataPager.css +72 -0
  41. package/DataPager/DataPager.js +674 -0
  42. package/DatePicker/DatePicker.css +227 -0
  43. package/DatePicker/DatePicker.js +1531 -0
  44. package/DatePicker/Themes/Default.css +26 -0
  45. package/Dialog/Dialog.css +106 -0
  46. package/Dialog/Dialog.js +572 -0
  47. package/Dialog/Themes/Default.css +10 -0
  48. package/Editor/Data/Emoji.json +8285 -0
  49. package/Editor/Data/Special.json +1042 -0
  50. package/Editor/Editor.css +1562 -0
  51. package/Editor/Editor.js +4058 -0
  52. package/Editor/Font/Editor.woff +0 -0
  53. package/Editor/Modules/ComponentFactory.js +565 -0
  54. package/Editor/Modules/ContentManager.js +748 -0
  55. package/Editor/Modules/DialogManager.js +1234 -0
  56. package/Editor/Modules/EventManager.js +458 -0
  57. package/Editor/Modules/Format.js +950 -0
  58. package/Editor/Modules/History.js +191 -0
  59. package/Editor/Modules/LayoutState.js +379 -0
  60. package/Editor/Modules/ListManager.js +296 -0
  61. package/Editor/Modules/MenuManager.js +388 -0
  62. package/Editor/Modules/NodeManager.js +681 -0
  63. package/Editor/Modules/ParagraphButtons.js +122 -0
  64. package/Editor/Modules/Resizer.js +176 -0
  65. package/Editor/Modules/SelectionRange.js +564 -0
  66. package/Editor/Modules/SourceViewBuilder.js +212 -0
  67. package/Editor/Modules/SymbolPicker.js +208 -0
  68. package/Editor/Modules/Table.js +2327 -0
  69. package/Editor/Modules/TableDialog.js +757 -0
  70. package/Editor/Modules/Toolbar.js +375 -0
  71. package/Editor/Modules/TooltipMenu.js +125 -0
  72. package/Editor/Modules/Utility.js +131 -0
  73. package/Editor/Themes/Default.css +204 -0
  74. package/FileUpload/FileUpload.css +156 -0
  75. package/FileUpload/FileUpload.js +898 -0
  76. package/FileUpload/Themes/Default.css +17 -0
  77. package/Form/Form.css +1934 -0
  78. package/Form/Form.js +4943 -0
  79. package/Form/Modules/ActionManager.js +368 -0
  80. package/Form/Modules/BuildPanelManager.js +319 -0
  81. package/Form/Modules/ComponentFactory.js +468 -0
  82. package/Form/Modules/ComponentPanel.js +265 -0
  83. package/Form/Modules/ConfigPanelManager.js +685 -0
  84. package/Form/Modules/DataObserver.js +717 -0
  85. package/Form/Modules/Databinder.js +602 -0
  86. package/Form/Modules/Draggable.js +756 -0
  87. package/Form/Modules/OptionsPanel.js +342 -0
  88. package/Form/Modules/Renderer.js +1889 -0
  89. package/Form/Modules/RuleEngine.js +585 -0
  90. package/Form/Modules/RulesPanel.js +1158 -0
  91. package/Form/Modules/Types.js +1709 -0
  92. package/Form/Modules/ValidationManager.js +194 -0
  93. package/Form/Themes/Default.css +216 -0
  94. package/FormField/FormField.css +468 -0
  95. package/FormField/FormField.js +576 -0
  96. package/FormField/Themes/Default.css +99 -0
  97. package/Grid/Grid.css +544 -0
  98. package/Grid/Grid.js +3761 -0
  99. package/Grid/Themes/Default.css +43 -0
  100. package/LICENSE +126 -0
  101. package/MaskedTextBox/MaskedTextBox.css +28 -0
  102. package/MaskedTextBox/MaskedTextBox.js +642 -0
  103. package/MaskedTextBox/Themes/Default.css +6 -0
  104. package/Menu/Menu.css +328 -0
  105. package/Menu/Menu.js +2386 -0
  106. package/Menu/Themes/Default.css +24 -0
  107. package/NumericBox/NumericBox.css +120 -0
  108. package/NumericBox/NumericBox.js +984 -0
  109. package/PanelBar/PanelBar.css +123 -0
  110. package/PanelBar/PanelBar.js +505 -0
  111. package/PanelBar/Themes/Default.css +51 -0
  112. package/PieChart/PieChart.css +95 -0
  113. package/PieChart/PieChart.js +820 -0
  114. package/PieChart/Themes/Default.css +9 -0
  115. package/README.md +178 -3
  116. package/Slider/Slider.css +348 -0
  117. package/Slider/Slider.js +1306 -0
  118. package/Slider/Themes/Default.css +44 -0
  119. package/TabStrip/TabStrip.css +52 -0
  120. package/TabStrip/TabStrip.js +362 -0
  121. package/TabStrip/Themes/Default.css +35 -0
  122. package/TimePicker/Themes/Default.css +30 -0
  123. package/TimePicker/TimePicker.css +253 -0
  124. package/TimePicker/TimePicker.js +1485 -0
  125. package/TooltipManager/Themes/Default.css +21 -0
  126. package/TooltipManager/TooltipManager.css +227 -0
  127. package/TooltipManager/TooltipManager.js +791 -0
  128. package/Validator/Validator.css +54 -0
  129. package/Validator/Validator.js +2508 -0
  130. package/componyx.html-data.json +619 -0
  131. package/index.js +27 -0
  132. package/package.json +43 -4
  133. package/types/AppSkin.d.ts +842 -0
  134. package/types/Base.d.ts +1034 -0
  135. package/types/Bindary.d.ts +1196 -0
  136. package/types/BookmarkSpy.d.ts +112 -0
  137. package/types/Box.d.ts +374 -0
  138. package/types/Button.d.ts +455 -0
  139. package/types/Carousel.d.ts +136 -0
  140. package/types/ColorButton.d.ts +120 -0
  141. package/types/ColorPicker.d.ts +225 -0
  142. package/types/ComboBox.d.ts +507 -0
  143. package/types/DataPager.d.ts +152 -0
  144. package/types/DatePicker.d.ts +354 -0
  145. package/types/Dialog.d.ts +160 -0
  146. package/types/Editor.d.ts +1289 -0
  147. package/types/FileUpload.d.ts +206 -0
  148. package/types/Form.d.ts +3078 -0
  149. package/types/FormField.d.ts +204 -0
  150. package/types/Grid.d.ts +911 -0
  151. package/types/Library.d.ts +1899 -0
  152. package/types/MaskedTextBox.d.ts +91 -0
  153. package/types/Menu.d.ts +577 -0
  154. package/types/NumericBox.d.ts +310 -0
  155. package/types/PanelBar.d.ts +223 -0
  156. package/types/PieChart.d.ts +224 -0
  157. package/types/ResponsiveTemplates.d.ts +108 -0
  158. package/types/Slider.d.ts +227 -0
  159. package/types/TabStrip.d.ts +185 -0
  160. package/types/TimePicker.d.ts +265 -0
  161. package/types/TooltipManager.d.ts +178 -0
  162. package/types/UI.d.ts +29 -0
  163. package/types/Validator.d.ts +653 -0
  164. package/types/index.d.ts +59 -0
  165. package/ui.css +11783 -0
  166. package/ui.js +79477 -0
  167. package/ui.min.css +138 -0
  168. package/ui.min.js +264 -0
  169. package/ui.min.js.map +1 -0
@@ -0,0 +1,911 @@
1
+ declare namespace componyx
2
+ {
3
+ namespace UI
4
+ {
5
+ interface Grid extends componyx.UI.base.methods { }
6
+ /**
7
+ * <p>Grid class.</p>
8
+ */
9
+ class Grid extends componyx.UI.base.Component implements componyx.UI.base.methods
10
+ {
11
+ /**
12
+ * Creates a new Grid instance.
13
+ * @param id - <p>The id of the component.</p>
14
+ * @param properties - <p>The properties used to initialize the component or the container element.</p>
15
+ */
16
+ constructor(id: string, properties: Partial<Grid> | HTMLElement);
17
+ ajax: componyx.UI.base.Component['ajax'] & {
18
+ /**
19
+ * <p>AJAX method used to load the grid's items.</p>
20
+ */
21
+ load: componyx.UI.base.AjaxMethod;
22
+
23
+ /**
24
+ * <p>AJAX method used to load an item's detail data when a row is expanded.</p>
25
+ */
26
+ loadItem: componyx.UI.base.AjaxMethod;
27
+ };
28
+ /**
29
+ * <p>Gets or sets the css class of the header container.</p>
30
+ */
31
+ cssClassHeader: string;
32
+ /**
33
+ * <p>Gets or sets the css class of the content container.</p>
34
+ */
35
+ cssClassContent: string;
36
+ /**
37
+ * <p>Gets or sets the css class of the datapager.</p>
38
+ */
39
+ cssClassDataPager: string;
40
+ /**
41
+ * <p>Gets or sets the css class of the filter button.</p>
42
+ */
43
+ cssClassFilterButton: string;
44
+ /**
45
+ * <p>Gets or sets the css class of the filter menu.</p>
46
+ */
47
+ cssClassFilterMenu: string;
48
+ /**
49
+ * <p>Gets or sets the css class of the filter from label.</p>
50
+ */
51
+ cssClassFilterFrom: string;
52
+ /**
53
+ * <p>Gets or sets the css class of the filter to label.</p>
54
+ */
55
+ cssClassFilterTo: string;
56
+ /**
57
+ * <p>Gets or sets the css class of the filter row (default: 'filter').</p>
58
+ */
59
+ cssClassFilterRow: string;
60
+ /**
61
+ * <p>Gets or sets the css class of the filter text boxes (default: 'textbox').</p>
62
+ */
63
+ cssClassTextBox: string;
64
+ /**
65
+ * <p>Gets or sets the css class of the header label.</p>
66
+ */
67
+ cssClassHeaderLabel: string;
68
+ /**
69
+ * <p>Gets or sets the css class of the resize handle.</p>
70
+ */
71
+ cssClassResizeHandle: string;
72
+ /**
73
+ * <p>Gets or sets the css class of the drag ghost.</p>
74
+ */
75
+ cssClassDragGhost: string;
76
+ /**
77
+ * <p>Gets or sets the css class of the preloader.</p>
78
+ */
79
+ cssClassPreloader: string;
80
+ /**
81
+ * <p>Gets or sets the css class of the no result container.</p>
82
+ */
83
+ cssClassNoResult: string;
84
+ /**
85
+ * <p>Gets or sets the css class of the check box.</p>
86
+ */
87
+ cssClassCheckBox: string;
88
+ /**
89
+ * <p>Gets or sets the css class of the expand cell.</p>
90
+ */
91
+ cssClassExpand: string;
92
+ /**
93
+ * <p>Gets or sets the css class of the expand icon.</p>
94
+ */
95
+ cssClassExpandIcon: string;
96
+ /**
97
+ * <p>Gets or sets the css class of the item.</p>
98
+ */
99
+ cssClassItem: string;
100
+ /**
101
+ * <p>Gets or sets the css class of a group-item.</p>
102
+ */
103
+ cssClassGroupItem: string;
104
+ /**
105
+ * <p>Gets or sets the css class of a group-item head.</p>
106
+ */
107
+ cssClassGroupHead: string;
108
+ /**
109
+ * <p>Gets or sets the css class of a fixed column.</p>
110
+ */
111
+ cssClassFixedColumn: string;
112
+ /**
113
+ * <p>Gets or sets the css class of a hidden column.</p>
114
+ */
115
+ cssClassHiddenColumn: string;
116
+ /**
117
+ * <p>Gets or sets the default template id of an item.</p>
118
+ */
119
+ itemTemplateId: string | null;
120
+ /**
121
+ * <p>Gets or sets the indent value of an item-group in pixels (defaults to 10).</p>
122
+ */
123
+ groupIndent: number;
124
+ /**
125
+ * <p>Gets or sets the amount of fixed columns at the left side of the grid which remain visible while scrolling horizontally.</p>
126
+ */
127
+ fixedColumns: number;
128
+ /**
129
+ * <p>Gets or sets the time in milliseconds between a horizontal scrolling action and updating the position of fixed columns accordingly (defaults to 100).</p>
130
+ */
131
+ fixedColumnScrollUpdate: number;
132
+ /**
133
+ * <p>Gets or sets the bottom offset in pixels for the viewport height. Only applicable when useViewportHeight is enabled.</p>
134
+ */
135
+ viewportBottomOffset: number;
136
+ /**
137
+ * <p>Gets or sets the height of the content container.</p>
138
+ */
139
+ contentHeight: string;
140
+ /**
141
+ * <p>Gets or sets the style of the content container.</p>
142
+ */
143
+ contentStyle: string;
144
+ /**
145
+ * <p>Gets or sets a value indicating whether column headers are draggable.</p>
146
+ */
147
+ draggableHeaders: boolean;
148
+ /**
149
+ * <p>Gets or sets a value indicating whether column headers are resizable.</p>
150
+ */
151
+ resizableHeaders: boolean;
152
+ /**
153
+ * <p>Gets or sets a value indicating whether data items are draggable.</p>
154
+ */
155
+ draggableItems: boolean;
156
+ /**
157
+ * <p>Gets or sets a value indicating if the total width of the grid view is preserved when resizing a column. When enabled, resizing a column header will not change the total width of the grid, instead the change in width will be distributed over all resizable columns.</p>
158
+ */
159
+ preserveTotalWidth: boolean;
160
+ /**
161
+ * <p>Gets or sets a value indicating whether the data pager is enabled.</p>
162
+ */
163
+ enableDataPager: boolean;
164
+ /**
165
+ * <p>Gets or sets a value indicating whether the tooltip manager is enabled.</p>
166
+ */
167
+ enableTooltipManager: boolean;
168
+ /**
169
+ * <p>Gets or sets a value indicating whether the filter row is enabled.</p>
170
+ */
171
+ enableFilterRow: boolean;
172
+ /**
173
+ * <p>Gets or sets a value indicating whether the expand column is enabled.</p>
174
+ */
175
+ enableExpandColumn: boolean;
176
+ /**
177
+ * <p>Gets or sets a value indicating whether the selection should be cleared on a click outside the grid.</p>
178
+ */
179
+ clearSelectionOnOutsideClick: boolean;
180
+ /**
181
+ * <p>Gets or sets a value indicating whether the viewport height is utilized for the content container. The height calculation respects a possible bottom margin of the grid element.</p>
182
+ */
183
+ useViewportHeight: boolean;
184
+ /**
185
+ * <p>Gets or sets the column sorting option.</p>
186
+ */
187
+ columnSorting: componyx.UI.Grid.ColumnSortingOption;
188
+ /**
189
+ * <p>Gets or sets the row selection option.</p>
190
+ */
191
+ rowSelection: componyx.UI.Grid.RowSelectionOption;
192
+ /**
193
+ * <p>Gets or sets the row expansion option.</p>
194
+ */
195
+ rowExpansion: componyx.UI.Grid.RowExpansionOption;
196
+ /**
197
+ * <p>Gets or sets the item-group expansion option.</p>
198
+ */
199
+ groupExpansion: componyx.UI.Grid.GroupExpansionOption;
200
+ /**
201
+ * <p>Gets or sets friendly labels for filter menu options (EQUALTO, NOTEQUALTO, GREATERTHAN, GREATERTHANOREQUALTO, LESSTHAN, LESSTHANOREQUALTO, STARTSWITH, NOTSTARTSWITH, ENDSWITH, NOTENDSWITH, CONTAINS, NOTCONTAINS, BETWEEN, NOTBETWEEN, IN, NOTIN, EMPTY, NOTEMPTY)</p>
202
+ */
203
+ filterMenuLabels: {
204
+ [key: string]: String;
205
+ };
206
+ /**
207
+ * <p>Gets or sets the filter from and to labels (0: FROM, 1: TO).</p>
208
+ */
209
+ filterBetweenLabels: String[];
210
+ /**
211
+ * <p>Gets or sets the list of items.</p>
212
+ */
213
+ itemList: componyx.UI.Grid.Item[] | null;
214
+ /**
215
+ * <p>Gets or sets the column groups.</p>
216
+ */
217
+ columnGroups: componyx.UI.Grid.ColumnGroup[];
218
+ /**
219
+ * <p>Gets or sets the columns.</p>
220
+ */
221
+ columns: componyx.UI.Grid.Column[];
222
+ /**
223
+ * <p>Gets or sets the id of the filter menu.</p>
224
+ */
225
+ filterMenuId: string | null;
226
+ /**
227
+ * <p>Gets or sets the id of the datapager.</p>
228
+ */
229
+ dataPagerId: string | null;
230
+ /**
231
+ * <p>Gets or sets the id of the tooltip manager used to display tooltips.</p>
232
+ */
233
+ tooltipManagerId: string | null;
234
+ /**
235
+ * <p>Gets or sets the drag settings for the draggable headers.</p>
236
+ */
237
+ headerDragSettings: componyx.library.DraggableSettings;
238
+ /**
239
+ * <p>Gets or sets the drag settings for the draggable items.</p>
240
+ */
241
+ itemDragSettings: componyx.library.DraggableSettings;
242
+ /**
243
+ * <p>Gets or sets the resize settings for the resizable headers.</p>
244
+ */
245
+ headerResizeSettings: componyx.library.ResizableSettings;
246
+ /**
247
+ * <p>Gets or sets the select settings for the selectable items.</p>
248
+ */
249
+ selectSettings: componyx.library.SelectableSettings;
250
+ /**
251
+ * <p>Grid events</p>
252
+ */
253
+ events: componyx.UI.Grid.GridEvents;
254
+ /**
255
+ * <p>Sets the preloader template.</p>
256
+ * @param content - <p>The content template. Pass null or empty string to remove the existing template.</p>
257
+ */
258
+ setPreloaderTemplate(content: HTMLElement | HTMLElement[] | DocumentFragment | string): void;
259
+ /**
260
+ * <p>Sets the item preloader template.</p>
261
+ * @param content - <p>The content template. Pass null or empty string to remove the existing template.</p>
262
+ */
263
+ setItemPreloaderTemplate(content: HTMLElement | HTMLElement[] | DocumentFragment | string): void;
264
+ /**
265
+ * <p>Sets the no result template.</p>
266
+ * @param content - <p>The content template. Pass null or empty string to remove the existing template.</p>
267
+ */
268
+ setNoResultTemplate(content: HTMLElement | HTMLElement[] | DocumentFragment | string): void;
269
+ /**
270
+ * <p>Selects/deselects the item with the specified id.</p>
271
+ * @param id - <p>Item id</p>
272
+ */
273
+ toggleSelectItem(id: string): void;
274
+ /**
275
+ * <p>Selects the items with the specified id.</p>
276
+ * @param ids - <p>The list of item ids.</p>
277
+ */
278
+ selectItems(ids: any[]): void;
279
+ /**
280
+ * <p>Deselects the items with the specified id.</p>
281
+ * @param ids - <p>The list of item ids.</p>
282
+ */
283
+ deselectItems(ids: any[]): void;
284
+ /**
285
+ * <p>Selects the item with the specified id.</p>
286
+ * @param id - <p>Item id</p>
287
+ */
288
+ selectItem(id: string): void;
289
+ /**
290
+ * <p>Deselects the item with the specified id.</p>
291
+ * @param id - <p>Item id</p>
292
+ */
293
+ deselectItem(id: string): void;
294
+ /**
295
+ * <p>Expands/collapses the item with the specified id.</p>
296
+ * @param id - <p>Item id</p>
297
+ */
298
+ toggleExpandItem(id: string): void;
299
+ /**
300
+ * <p>Expands the item with the specified id.</p>
301
+ * @param id - <p>Item id</p>
302
+ */
303
+ expandItem(id: string): void;
304
+ /**
305
+ * <p>Collapses the item with the specified id.</p>
306
+ * @param id - <p>Item id</p>
307
+ */
308
+ collapseItem(id: string): void;
309
+ /**
310
+ * <p>Expands/collapses the item-group with the specified id.</p>
311
+ * @param id - <p>Item id</p>
312
+ */
313
+ toggleExpandItemGroup(id: string): void;
314
+ /**
315
+ * <p>Expands the item-group with the specified id.</p>
316
+ * @param id - <p>Item id</p>
317
+ */
318
+ expandItemGroup(id: string): void;
319
+ /**
320
+ * <p>Collapses the item-group with the specified id.</p>
321
+ * @param id - <p>Item id</p>
322
+ */
323
+ collapseItemGroup(id: string): void;
324
+ /**
325
+ * <p>Enables the item with the specified id.</p>
326
+ * @param id - <p>Item id</p>
327
+ */
328
+ enableItem(id: string): void;
329
+ /**
330
+ * <p>Disables the item with the specified id.</p>
331
+ * @param id - <p>Item id</p>
332
+ */
333
+ disableItem(id: string): void;
334
+ /**
335
+ * <p>Returns the grid column group index with the specified id.</p>
336
+ * @param id - <p>The column id.</p>
337
+ */
338
+ getColumnGroupIndex(id: string): number;
339
+ /**
340
+ * <p>Returns the grid column group with the specified id.</p>
341
+ * @param id - <p>The column id.</p>
342
+ */
343
+ getColumnGroup(id: string): componyx.UI.Grid.ColumnGroup;
344
+ /**
345
+ * <p>Removes a column group header from the grid.</p>
346
+ * @param id - <p>The id of the column group.</p>
347
+ */
348
+ removeColumnGroup(id: string): void;
349
+ /**
350
+ * <p>Returns the grid column index with the specified id.</p>
351
+ * @param id - <p>The column id.</p>
352
+ */
353
+ getColumnIndex(id: string): number;
354
+ /**
355
+ * <p>Returns the grid column with the specified id.</p>
356
+ * @param id - <p>The column id.</p>
357
+ */
358
+ getColumn(id: string): componyx.UI.Grid.Column;
359
+ /**
360
+ * <p>Removes a column from the grid.</p>
361
+ * @param id - <p>The id of the column.</p>
362
+ */
363
+ removeColumn(id: string): void;
364
+ /**
365
+ * <p>Shows a columnGroup in the grid.</p>
366
+ * @param id - <p>The id of the columnGroup.</p>
367
+ */
368
+ showColumnGroup(id: string): void;
369
+ /**
370
+ * <p>Hides a columnGroup in the grid.</p>
371
+ * @param id - <p>The id of the columnGroup.</p>
372
+ */
373
+ hideColumnGroup(id: string): void;
374
+ /**
375
+ * <p>Shows a column in the grid.</p>
376
+ * @param id - <p>The id of the column.</p>
377
+ */
378
+ showColumn(id: string): void;
379
+ /**
380
+ * <p>Hides a column in the grid.</p>
381
+ * @param id - <p>The id of the column.</p>
382
+ */
383
+ hideColumn(id: string): void;
384
+ /**
385
+ * <p>Returns the selectable object which enables grid table elements to be selectable.</p>
386
+ */
387
+ selectable(): any;
388
+ /**
389
+ * <p>Disables selection on elements for the current click event. Selection is automatically re-enabled when the current event bubbles to the document click.</p>
390
+ */
391
+ cancelSelectClick(): void;
392
+ /**
393
+ * <p>Filters the grid.</p>
394
+ * @param columns - <p>Plain Object with column id as key and a Plain Object as value.
395
+ * The value Object properties:
396
+ * value (String): The filter value.
397
+ * [type] (FilterMenuOptions): One or more of the options.
398
+ * [updateInput] (Boolean): Value indicating if the corresponding filter input value should be updated (default true).</p>
399
+ * @param [autoLoad] - <p>Defines if the grid should reload data.</p>
400
+ * @param [clear] - <p>Defines if the current selection should be cleared.</p>
401
+ */
402
+ filter(columns: any, autoLoad?: boolean, clear?: boolean): void;
403
+ /**
404
+ * <p>Sorts the grid.</p>
405
+ * @param columns - <p>Object with column id as key and one of the options from componyx.UI.Grid.SortOrderOption as value.</p>
406
+ * @param [autoLoad] - <p>Defines if the grid should reload data.</p>
407
+ * @param [clear] - <p>Defines if the current selection should be cleared.</p>
408
+ */
409
+ sort(columns: any, autoLoad?: boolean, clear?: boolean): void;
410
+ /**
411
+ * <p>Triggers a data load.</p>
412
+ * @param [clear] - <p>Defines if the current selection should be cleared.</p>
413
+ * @param [pageIndex] - <p>Defines which page index to load.</p>
414
+ */
415
+ load(clear?: boolean, pageIndex?: number): void;
416
+ /**
417
+ * <p>Returns the grid item with the specified id.</p>
418
+ * @param id - <p>The item id.</p>
419
+ */
420
+ getItem(id: string): componyx.UI.Grid.Item;
421
+ /**
422
+ * <p>Removes the grid item with the specified id.</p>
423
+ * @param id - <p>The item id.</p>
424
+ */
425
+ removeItem(id: string): void;
426
+ /**
427
+ * <p>Renders the specified item by creating a new table record or overwriting the existing table record in the grid.
428
+ * The item must exist in the item list and the item's position in the item group will equal the item's position within the item list.</p>
429
+ * @param item - <p>The item to render.</p>
430
+ */
431
+ renderItem(item: componyx.UI.Grid.Item): void;
432
+ /**
433
+ * <p>Renders the component.</p>
434
+ */
435
+ render(): void;
436
+ /**
437
+ * <p>Handles the post render procedure.</p>
438
+ */
439
+ postRender(): void;
440
+ /**
441
+ * <p>Destroys the component.</p>
442
+ */
443
+ destroy(): void;
444
+ }
445
+ namespace Grid
446
+ {
447
+ /**
448
+ * @property onItemClick - <p>Event which fires on an item click.</p>
449
+ * @property onItemSelect - <p>Event which fires on an item select.</p>
450
+ * @property onItemDeselect - <p>Event which fires on an item deselect.</p>
451
+ * @property onItemExpand - <p>Event which fires on an item expand.</p>
452
+ * @property onItemCollapse - <p>Event which fires on an item collapse.</p>
453
+ * @property onItemGroupExpand - <p>Event which fires on an item-group expand.</p>
454
+ * @property onItemGroupCollapse - <p>Event which fires on an item-group collapse.</p>
455
+ * @property onPreRenderItem - <p>Event which fires when an item is rendered.</p>
456
+ * @property onPostRenderItem - <p>Event which fires when an item is rendered.</p>
457
+ * @property onPreLoadItemList - <p>Event which fires before the item-list data is loaded.</p>
458
+ * @property onPostLoadItemList - <p>Event which fires when the item-list data is loaded.</p>
459
+ * @property onPostRenderItemList - <p>Event which fires when the item-list is rendered.</p>
460
+ * @property onPreLoadItem - <p>Event which fires before the item data is loaded.</p>
461
+ * @property onPostLoadItem - <p>Event which fires when the item data is loaded.</p>
462
+ * @property onColumnOrderChange - <p>Event which fires when the column order is changed.</p>
463
+ * @property onColumnResize - <p>Event which fires when a column is resized.</p>
464
+ * @property onColumnSort - <p>Event which fires when the list is sorted.</p>
465
+ * @property onItemOrderChange - <p>Event which fires when the item order is changed.</p>
466
+ */
467
+ class GridEvents extends componyx.UI.base.Events<componyx.UI.Grid>
468
+ {
469
+ constructor();
470
+ /**
471
+ * <p>Event which fires on an item click.</p>
472
+ */
473
+ onItemClick: componyx.UI.base.Event<componyx.UI.Grid, componyx.UI.Grid.GridItemEventArgs>;
474
+ /**
475
+ * <p>Event which fires on an item select.</p>
476
+ */
477
+ onItemSelect: componyx.UI.base.Event<componyx.UI.Grid, componyx.UI.Grid.GridItemEventArgs>;
478
+ /**
479
+ * <p>Event which fires on an item deselect.</p>
480
+ */
481
+ onItemDeselect: componyx.UI.base.Event<componyx.UI.Grid, componyx.UI.Grid.GridItemEventArgs>;
482
+ /**
483
+ * <p>Event which fires on an item expand.</p>
484
+ */
485
+ onItemExpand: componyx.UI.base.Event<componyx.UI.Grid, componyx.UI.Grid.GridItemEventArgs>;
486
+ /**
487
+ * <p>Event which fires on an item collapse.</p>
488
+ */
489
+ onItemCollapse: componyx.UI.base.Event<componyx.UI.Grid, componyx.UI.Grid.GridItemEventArgs>;
490
+ /**
491
+ * <p>Event which fires on an item-group expand.</p>
492
+ */
493
+ onItemGroupExpand: componyx.UI.base.Event<componyx.UI.Grid, componyx.UI.Grid.GridItemEventArgs>;
494
+ /**
495
+ * <p>Event which fires on an item-group collapse.</p>
496
+ */
497
+ onItemGroupCollapse: componyx.UI.base.Event<componyx.UI.Grid, componyx.UI.Grid.GridItemEventArgs>;
498
+ /**
499
+ * <p>Event which fires when an item is rendered.</p>
500
+ */
501
+ onPreRenderItem: componyx.UI.base.Event<componyx.UI.Grid, componyx.UI.Grid.GridItemEventArgs>;
502
+ /**
503
+ * <p>Event which fires when an item is rendered.</p>
504
+ */
505
+ onPostRenderItem: componyx.UI.base.Event<componyx.UI.Grid, componyx.UI.Grid.GridItemEventArgs>;
506
+ /**
507
+ * <p>Event which fires before the item-list data is loaded.</p>
508
+ */
509
+ onPreLoadItemList: componyx.UI.base.Event<componyx.UI.Grid, componyx.UI.Grid.GridQueryEventArgs>;
510
+ /**
511
+ * <p>Event which fires when the item-list data is loaded.</p>
512
+ */
513
+ onPostLoadItemList: componyx.UI.base.Event<componyx.UI.Grid, componyx.UI.Grid.GridAjaxEventArgs | undefined>;
514
+ /**
515
+ * <p>Event which fires when the item-list is rendered.</p>
516
+ */
517
+ onPostRenderItemList: componyx.UI.base.Event<componyx.UI.Grid, componyx.UI.Grid.GridAjaxEventArgs | undefined>;
518
+ /**
519
+ * <p>Event which fires before the item data is loaded.</p>
520
+ */
521
+ onPreLoadItem: componyx.UI.base.Event<componyx.UI.Grid, undefined>;
522
+ /**
523
+ * <p>Event which fires when the item data is loaded.</p>
524
+ */
525
+ onPostLoadItem: componyx.UI.base.Event<componyx.UI.Grid, componyx.UI.Grid.GridAjaxEventArgs>;
526
+ /**
527
+ * <p>Event which fires when the column order is changed.</p>
528
+ */
529
+ onColumnOrderChange: componyx.UI.base.Event<componyx.UI.Grid, componyx.UI.Grid.GridColumnOrderEventArgs>;
530
+ /**
531
+ * <p>Event which fires when a column is resized.</p>
532
+ */
533
+ onColumnResize: componyx.UI.base.Event<componyx.UI.Grid, componyx.UI.Grid.GridColumnResizeEventArgs>;
534
+ /**
535
+ * <p>Event which fires when the list is sorted.</p>
536
+ */
537
+ onColumnSort: componyx.UI.base.Event<componyx.UI.Grid, componyx.UI.Grid.GridColumnSortEventArgs>;
538
+ /**
539
+ * <p>Event which fires when the item order is changed.</p>
540
+ */
541
+ onItemOrderChange: componyx.UI.base.Event<componyx.UI.Grid, componyx.UI.Grid.GridItemOrderEventArgs>;
542
+ }
543
+ /**
544
+ * <p>Grid item event arguments.</p>
545
+ */
546
+ type GridItemEventArgs = {
547
+ /** <p>The grid item.</p> */
548
+ item: componyx.UI.Grid.Item;
549
+ /** <p>The table row of the item.</p> */
550
+ tr: HTMLTableRowElement;
551
+ /** <p>The group-head cell (item-group expand/collapse) or the expand content cell (item expand), otherwise null.</p> */
552
+ td: HTMLTableCellElement | null;
553
+ /** <p>The original event object.</p> */
554
+ event: Event;
555
+ };
556
+ /**
557
+ * <p>Grid load query event arguments.</p>
558
+ */
559
+ type GridQueryEventArgs = {
560
+ /** <p>The sort order per column id.</p> */
561
+ sortOrder: { [columnId: string]: componyx.UI.Grid.SortOrderOption };
562
+ /** <p>The active filter.</p> */
563
+ filter: object;
564
+ /** <p>The page index (1-based).</p> */
565
+ pageIndex: number;
566
+ };
567
+ /**
568
+ * <p>Grid ajax result arguments. For the item-list events these are undefined when no ajax load method is defined.</p>
569
+ */
570
+ type GridAjaxEventArgs = {
571
+ /** <p>The response data.</p> */
572
+ data: string | object;
573
+ };
574
+ /**
575
+ * <p>Grid column sort event arguments.</p>
576
+ */
577
+ type GridColumnSortEventArgs = {
578
+ /** <p>The column id.</p> */
579
+ columnId: string;
580
+ /** <p>The new sort order, undefined when sorting was removed.</p> */
581
+ order: componyx.UI.Grid.SortOrderOption | undefined;
582
+ };
583
+ /**
584
+ * <p>Grid column order event arguments.</p>
585
+ */
586
+ type GridColumnOrderEventArgs = {
587
+ /** <p>The original column index.</p> */
588
+ sourceIndex: number;
589
+ /** <p>The new column index.</p> */
590
+ targetIndex: number;
591
+ };
592
+ /**
593
+ * <p>Grid column resize event arguments.</p>
594
+ */
595
+ type GridColumnResizeEventArgs = {
596
+ /** <p>The column index.</p> */
597
+ columnIndex: number;
598
+ /** <p>The resized header element.</p> */
599
+ element: HTMLElement;
600
+ };
601
+ /**
602
+ * <p>Grid item order event arguments.</p>
603
+ */
604
+ type GridItemOrderEventArgs = {
605
+ /** <p>The moved items (a group item includes its child items).</p> */
606
+ items: componyx.UI.Grid.Item[];
607
+ /** <p>The original item index.</p> */
608
+ fromIndex: number;
609
+ /** <p>The target item index.</p> */
610
+ toIndex: number;
611
+ /** <p>The resulting index after the move.</p> */
612
+ resultIndex: number;
613
+ /** <p>The drop zone (table row) the items were dropped on.</p> */
614
+ dropZone: HTMLElement;
615
+ /** <p>The row before which the items were inserted, null when appended at the end.</p> */
616
+ nextRow: HTMLElement | null;
617
+ };
618
+ /**
619
+ * <p>RowSelectionOption</p>
620
+ */
621
+ enum RowSelectionOption
622
+ {
623
+ NONE = 0,
624
+ SINGLE = 1,
625
+ MULTI = 2
626
+ }
627
+ /**
628
+ * <p>RowExpansionOption</p>
629
+ */
630
+ enum RowExpansionOption
631
+ {
632
+ NONE = 0,
633
+ SINGLE = 1,
634
+ MULTI = 2
635
+ }
636
+ /**
637
+ * <p>GroupExpansionOption</p>
638
+ */
639
+ enum GroupExpansionOption
640
+ {
641
+ NONE = 0,
642
+ ICON = 1,
643
+ ITEM = 2
644
+ }
645
+ /**
646
+ * <p>ColumnSortingOption</p>
647
+ */
648
+ enum ColumnSortingOption
649
+ {
650
+ NONE = 0,
651
+ SINGLE = 1,
652
+ MULTI = 2
653
+ }
654
+ /**
655
+ * <p>SortOrderOption</p>
656
+ */
657
+ enum SortOrderOption
658
+ {
659
+ ASC = 0,
660
+ DESC = 1
661
+ }
662
+ /**
663
+ * <p>FilterMenuOptions</p>
664
+ */
665
+ enum FilterMenuOptions
666
+ {
667
+ EQUALTO = 1,
668
+ NOTEQUALTO = 2,
669
+ GREATERTHAN = 4,
670
+ GREATERTHANOREQUALTO = 8,
671
+ LESSTHAN = 16,
672
+ LESSTHANOREQUALTO = 32,
673
+ STARTSWITH = 64,
674
+ NOTSTARTSWITH = 128,
675
+ ENDSWITH = 256,
676
+ NOTENDSWITH = 512,
677
+ CONTAINS = 1024,
678
+ NOTCONTAINS = 2048,
679
+ BETWEEN = 4096,
680
+ NOTBETWEEN = 8192,
681
+ IN = 16384,
682
+ NOTIN = 32768,
683
+ EMPTY = 65536,
684
+ NOTEMPTY = 131072
685
+ }
686
+ namespace FilterMenuOptions
687
+ {
688
+ /**
689
+ * <p>Gets the lowercase name of the option value.</p>
690
+ */
691
+ function getName(value: componyx.UI.Grid.FilterMenuOptions): string;
692
+ }
693
+ /**
694
+ * <p>FilterInputTypeOption</p>
695
+ */
696
+ enum FilterInputTypeOption
697
+ {
698
+ TEXTBOX = 0,
699
+ NUMERICBOX = 1,
700
+ COMBOBOX = 2,
701
+ DATEPICKER = 3,
702
+ TIMEPICKER = 4,
703
+ SLIDER = 5
704
+ }
705
+ /**
706
+ * <p>Creates an instance of the Grid Item.</p>
707
+ * @property cssClassCheckBox - <p>Gets or sets the css class of a check box cell.</p>
708
+ * @property cssClassExpand - <p>Gets or sets the css class of an expand cell.</p>
709
+ * @property draggable - <p>Gets or sets a value indicating if the row is draggable.</p>
710
+ * @property expandable - <p>Gets or sets a value indicating if the row is expandable and collapsible.</p>
711
+ * @property expanded - <p>Gets or sets a value indicating if the row is (initially) expanded.</p>
712
+ * @property isGroup - <p>Gets or sets a value indicating if the item holds a group of child-items.</p>
713
+ * @property groupExpandable - <p>Gets or sets a value indicating if the group is expandable and collapsible.</p>
714
+ * @property groupExpanded - <p>Gets or sets a value indicating if the group is (initially) expanded.</p>
715
+ * @property groupIndent - <p>Gets or sets the indent value of the group in pixels.</p>
716
+ * @property parentId - <p>Gets or sets the id of the parent group-item to which this item belongs (IsGroup on parent item must be enabled).</p>
717
+ * @param properties - <p>The properties used to initialize the object.</p>
718
+ */
719
+ class Item extends componyx.UI.base.static.Item
720
+ {
721
+ constructor(properties: any);
722
+ /**
723
+ * <p>Gets or sets the css class of a check box cell.</p>
724
+ */
725
+ cssClassCheckBox: string;
726
+ /**
727
+ * <p>Gets or sets the css class of an expand cell.</p>
728
+ */
729
+ cssClassExpand: string;
730
+ /**
731
+ * <p>Gets or sets a value indicating if the row is draggable.</p>
732
+ */
733
+ draggable: boolean;
734
+ /**
735
+ * <p>Gets or sets a value indicating if the row is expandable and collapsible.</p>
736
+ */
737
+ expandable: boolean;
738
+ /**
739
+ * <p>Gets or sets a value indicating if the row is (initially) expanded.</p>
740
+ */
741
+ expanded: boolean;
742
+ /**
743
+ * <p>Gets or sets a value indicating if the item holds a group of child-items.</p>
744
+ */
745
+ isGroup: boolean;
746
+ /**
747
+ * <p>Gets or sets a value indicating if the group is expandable and collapsible.</p>
748
+ */
749
+ groupExpandable: boolean;
750
+ /**
751
+ * <p>Gets or sets a value indicating if the group is (initially) expanded.</p>
752
+ */
753
+ groupExpanded: boolean;
754
+ /**
755
+ * <p>Gets or sets the indent value of the group in pixels.</p>
756
+ */
757
+ groupIndent: number;
758
+ /**
759
+ * <p>Gets or sets the id of the parent group-item to which this item belongs (IsGroup on parent item must be enabled).</p>
760
+ */
761
+ parentId: string;
762
+ }
763
+ /**
764
+ * <p>Creates an instance of the Grid ColumnGroup.</p>
765
+ * @property id - <p>Gets or sets the id of the column group.</p>
766
+ * @property parentId - <p>Gets or sets the parent group id for nesting column groups.</p>
767
+ * @property headerText - <p>Gets or sets the header text of the column group.</p>
768
+ * @property cssClass - <p>Gets or sets the css class of the column group.</p>
769
+ * @property style - <p>Gets or sets the css style of the column group.</p>
770
+ * @param properties - <p>The properties used to initialize the object.</p>
771
+ */
772
+ class ColumnGroup
773
+ {
774
+ constructor(properties: any);
775
+ /**
776
+ * <p>Gets or sets the id of the column group.</p>
777
+ */
778
+ id: string;
779
+ /**
780
+ * <p>Gets or sets the parent group id for nesting column groups.</p>
781
+ */
782
+ parentId: string;
783
+ /**
784
+ * <p>Gets or sets the header text of the column group.</p>
785
+ */
786
+ headerText: string;
787
+ /**
788
+ * <p>Gets or sets the css class of the column group.</p>
789
+ */
790
+ cssClass: string;
791
+ /**
792
+ * <p>Gets or sets the css style of the column group.</p>
793
+ */
794
+ style: string;
795
+ }
796
+ /**
797
+ * <p>Creates an instance of the Grid Column.</p>
798
+ * @property id - <p>Gets or sets the id of the column.</p>
799
+ * @property columnGroupId - <p>Gets or sets the column group id.</p>
800
+ * @property headerText - <p>Gets or sets the header text of the column.</p>
801
+ * @property cssClassHeader - <p>Gets or sets the css class of the header column.</p>
802
+ * @property cssClass - <p>Gets or sets the css class of the column.</p>
803
+ * @property style - <p>Gets or sets the css style of the column header.</p>
804
+ * @property width - <p>Gets or sets the width of the column.</p>
805
+ * @property resizable - <p>Gets or sets a value indicating if the column can be resized (defaults to true).</p>
806
+ * @property checkBox - <p>Gets or sets a value indicating if the column is a checkbox column.</p>
807
+ * @property visible - <p>Gets or sets a value indicating if the column is visible.</p>
808
+ * @property disableFilter - <p>Gets or sets a value indicating if the filter is disabled for this column when enableFilterRow is set to true.</p>
809
+ * @property filterMenuOptions - <p>Gets or sets one or more FilterMenuOptions options.</p>
810
+ * @property filterMenuSelectedOption - <p>Gets or sets which filter-menu option is initially selected.</p>
811
+ * @property filterInputType - <p>Gets or sets one of the FilterInputTypeOption.</p>
812
+ * @property headerTooltipTemplate - <p>Gets or sets the header tooltip template.</p>
813
+ * @property columnTemplate - <p>Gets or sets the column template. All item properties can be used in the template as interpolations via '{propertyName}'.</p>
814
+ * @property filterTemplate - <p>Gets or sets the filter template.</p>
815
+ * @property rangeFilterTemplate - <p>Gets or sets the range filter template.</p>
816
+ * @property filterButtonId - <p>Gets or sets the id of the filter Button component from which the settings are cloned.</p>
817
+ * @property filterInputId - <p>Gets or sets the id of the UI component (NumericBox, ComboBox, DatePicker, TimePicker, Slider) from which the settings are cloned.</p>
818
+ * @param properties - <p>The properties used to initialize the object.</p>
819
+ */
820
+ class Column
821
+ {
822
+ constructor(properties: any);
823
+ /**
824
+ * <p>Gets or sets the id of the column.</p>
825
+ */
826
+ id: string;
827
+ /**
828
+ * <p>Gets or sets the column group id.</p>
829
+ */
830
+ columnGroupId: string;
831
+ /**
832
+ * <p>Gets or sets the header text of the column.</p>
833
+ */
834
+ headerText: string;
835
+ /**
836
+ * <p>Gets or sets the css class of the header column.</p>
837
+ */
838
+ cssClassHeader: string;
839
+ /**
840
+ * <p>Gets or sets the css class of the column.</p>
841
+ */
842
+ cssClass: string;
843
+ /**
844
+ * <p>Gets or sets the css style of the column header.</p>
845
+ */
846
+ style: string;
847
+ /**
848
+ * <p>Gets or sets the width of the column.</p>
849
+ */
850
+ width: string;
851
+ /**
852
+ * <p>Gets or sets a value indicating if the column can be resized (defaults to true).</p>
853
+ */
854
+ resizable: boolean;
855
+ /**
856
+ * <p>Gets or sets a value indicating if the column is a checkbox column.</p>
857
+ */
858
+ checkBox: boolean;
859
+ /**
860
+ * <p>Gets or sets a value indicating if the column is visible.</p>
861
+ */
862
+ visible: boolean;
863
+ /**
864
+ * <p>Gets or sets a value indicating if the sorting is disabled for this column.</p>
865
+ */
866
+ disableSorting: boolean;
867
+ /**
868
+ * <p>Gets or sets a value indicating if the filter is disabled for this column when enableFilterRow is set to true.</p>
869
+ */
870
+ disableFilter: boolean;
871
+ /**
872
+ * <p>Gets or sets one or more FilterMenuOptions options.</p>
873
+ */
874
+ filterMenuOptions: FilterMenuOptions;
875
+ /**
876
+ * <p>Gets or sets which filter-menu option is initially selected.</p>
877
+ */
878
+ filterMenuSelectedOption: FilterMenuOptions | null;
879
+ /**
880
+ * <p>Gets or sets one of the FilterInputTypeOption.</p>
881
+ */
882
+ filterInputType: FilterInputTypeOption;
883
+ /**
884
+ * <p>Gets or sets the header tooltip template.</p>
885
+ */
886
+ headerTooltipTemplate: HTMLElement | HTMLElement[] | DocumentFragment | string;
887
+ /**
888
+ * <p>Gets or sets the column template. All item properties can be used in the template as interpolations via '{propertyName}'.</p>
889
+ */
890
+ columnTemplate: HTMLElement | HTMLElement[] | DocumentFragment | string;
891
+ /**
892
+ * <p>Gets or sets the filter template.</p>
893
+ */
894
+ filterTemplate: HTMLElement | HTMLElement[] | DocumentFragment | string;
895
+ /**
896
+ * <p>Gets or sets the range filter template.</p>
897
+ */
898
+ rangeFilterTemplate: HTMLElement | HTMLElement[] | DocumentFragment | string;
899
+ /**
900
+ * <p>Gets or sets the id of the filter Button component from which the settings are cloned.</p>
901
+ */
902
+ filterButtonId: string;
903
+ /**
904
+ * <p>Gets or sets the id of the UI component (NumericBox, ComboBox, DatePicker, TimePicker, Slider) from which the settings are cloned.</p>
905
+ */
906
+ filterInputId: string;
907
+ }
908
+ }
909
+
910
+ }
911
+ }