@componyx/ui 0.0.0-stage → 1.0.4

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/DataBinder.js +602 -0
  85. package/Form/Modules/DataObserver.js +717 -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,455 @@
1
+ declare namespace componyx
2
+ {
3
+ namespace UI
4
+ {
5
+ interface Button extends componyx.UI.base.methods { }
6
+ /**
7
+ * <p>Button class.</p>
8
+ * @param id - <p>The id of the component.</p>
9
+ * @param properties - <p>The properties used to initialize the component or the container element.</p>
10
+ */
11
+ class Button extends componyx.UI.base.Component implements componyx.UI.base.methods {
12
+ constructor(id: string, properties: any | HTMLElement);
13
+ /**
14
+ * <p>Button events</p>
15
+ */
16
+ events: componyx.UI.Button.ButtonEvents;
17
+ /**
18
+ * <p>A value indicating if the last action was triggered via keyboard navigation.</p>
19
+ */
20
+ isKeyboardNavigation(): boolean;
21
+ /**
22
+ * <p>Selects the button</p>
23
+ */
24
+ toggleSelect(): void;
25
+ /**
26
+ * <p>Selects the button</p>
27
+ */
28
+ select(): void;
29
+ /**
30
+ * <p>Deselects the button</p>
31
+ */
32
+ deselect(): void;
33
+ /**
34
+ * <p>Enables the button</p>
35
+ */
36
+ enable(): void;
37
+ /**
38
+ * <p>Disables the button</p>
39
+ * @param [keepSelected = false] - <p>A value indicating if the button must remain selected.</p>
40
+ */
41
+ disable(keepSelected?: boolean): void;
42
+ /**
43
+ * <p>Sets focus on the button.</p>
44
+ */
45
+ focus(): void;
46
+ /**
47
+ * <p>Removes focus from the button.</p>
48
+ */
49
+ blur(): void;
50
+ /**
51
+ * <p>Executes the command click event.</p>
52
+ */
53
+ commandClick(): void;
54
+ /**
55
+ * <p>Executes the command click event.</p>
56
+ */
57
+ expandClick(): void;
58
+ /**
59
+ * <p>Gets the command button element.</p>
60
+ */
61
+ getCommandButton(): HTMLElement;
62
+ /**
63
+ * <p>Gets the expand button element.</p>
64
+ */
65
+ getExpandButton(): HTMLElement | null;
66
+ /**
67
+ * <p>Updates the button content with the specified template or text</p>
68
+ */
69
+ updateContent(): void;
70
+ /**
71
+ * <p>Sets the content template.</p>
72
+ * @param content - <p>The content template.</p>
73
+ */
74
+ setContentTemplate(content: HTMLElement | HTMLElement[] | DocumentFragment | string): void;
75
+ /**
76
+ * <p>Renders the component</p>
77
+ */
78
+ render(): void;
79
+ /**
80
+ * <p>Handles the post render procedure.</p>
81
+ */
82
+ postRender(): void;
83
+ /**
84
+ * <p>Destroys the component.</p>
85
+ * @param keepEvents - <p>A value indicating if the events must be kept.</p>
86
+ * @param [removeElement = true] - <p>A value indicating if the element must be removed.</p>
87
+ */
88
+ destroy(keepEvents: boolean, removeElement?: boolean): void;
89
+ /**
90
+ * <p>The currently selected button per radio group id.</p>
91
+ */
92
+ static readonly RadioGroups: {
93
+ readonly [radioGroupId: string]: componyx.UI.Button;
94
+ };
95
+ /**
96
+ * <p>Gets the selected button for the specified radio group.</p>
97
+ * @param radioGroupId - <p>The radio group id.</p>
98
+ * @returns <p>The selected button, or undefined if no button in the group is selected.</p>
99
+ */
100
+ static getSelected(radioGroupId: string): componyx.UI.Button | undefined;
101
+ /**
102
+ * <p>Gets or sets the content align class. This class is followed by a hyphen (-) with the current align option and is appended to the button class. Default: content-left</p>
103
+ */
104
+ cssClassContentAlign: string;
105
+ /**
106
+ * <p>Gets or sets the icon align class. This class is followed by a hyphen (-) with the current align option and is appended to the button class. Default: icon-left</p>
107
+ */
108
+ cssClassIconAlign: string;
109
+ /**
110
+ * <p>Gets or sets the css class for a split button.</p>
111
+ */
112
+ cssClassSplit: string;
113
+ /**
114
+ * <p>Gets or sets the css class of the command button in a split button.</p>
115
+ */
116
+ cssClassCommand: string;
117
+ /**
118
+ * <p>Gets or sets the css class of the expand button in a split button.</p>
119
+ */
120
+ cssClassExpand: string;
121
+ /**
122
+ * <p>Gets or sets the css class of the expand icon in a split button.</p>
123
+ */
124
+ cssClassExpandIcon: string;
125
+ /**
126
+ * <p>Gets or sets the css class of the button icon.</p>
127
+ */
128
+ cssClassIcon: string;
129
+ /**
130
+ * <p>Gets or sets the css class of the content holder within the button.</p>
131
+ */
132
+ cssClassContentHolder: string;
133
+ /**
134
+ * <p>Gets or sets the shortcut key to trigger this button e.g. 'z', 'ctrl+z', 'alt+s'. If no modifier is provided, <code>ctrl</code> is assumed by default.</p>
135
+ */
136
+ shortcutKey: string | null;
137
+ /**
138
+ * <p>Gets or sets the DOM element (or its identifier, or a function returning it) within which this shortcut is active. If <code>null</code>, the shortcut is globally active (i.e., it works anywhere).</p>
139
+ */
140
+ shortcutScope: HTMLElement | string | ((...params: any[]) => any) | null;
141
+ /**
142
+ * <p>Gets or sets a value indicating if the button keyboard navigation for expanding/collapsing is enabled when it has an expandable feature (menuId, boxId or expandCommand).</p>
143
+ */
144
+ keyboardExpand: boolean;
145
+ /**
146
+ * <p>Gets or sets the href (hypertext reference) of the button. Applies to non-split buttons only.</p>
147
+ */
148
+ href: string | null;
149
+ /**
150
+ * <p>Gets or sets the href target of the button. Applies to non-split buttons only.</p>
151
+ */
152
+ target: string | null;
153
+ /**
154
+ * <p>Gets or sets the command action of the button.</p>
155
+ */
156
+ command: ((...params: any[]) => any) | string | null;
157
+ /**
158
+ * <p>Gets or sets an expand command action.</p>
159
+ */
160
+ expandCommand: ((...params: any[]) => any) | string | null;
161
+ /**
162
+ * <p>Gets or sets a collapse command action.</p>
163
+ */
164
+ collapseCommand: ((...params: any[]) => any) | string | null;
165
+ /**
166
+ * <p>Gets or sets the text of the button.</p>
167
+ */
168
+ text: string | null;
169
+ /**
170
+ * <p>Gets or sets if the icon span tag should be rendered.</p>
171
+ */
172
+ hasIcon: boolean;
173
+ /**
174
+ * <p>Gets or sets the URL of the icon.</p>
175
+ */
176
+ iconUrl: string | null;
177
+ /**
178
+ * <p>Gets or sets the size option.</p>
179
+ */
180
+ size: componyx.UI.Button.SizeOption;
181
+ /**
182
+ * <p>Gets or sets the content alignment option.</p>
183
+ */
184
+ contentAlign: componyx.UI.Button.AlignOption;
185
+ /**
186
+ * <p>Gets or sets the icon alignment option.</p>
187
+ */
188
+ iconAlign: componyx.UI.Button.AlignOption;
189
+ /**
190
+ * <p>Gets or sets the type of the button.</p>
191
+ */
192
+ type: componyx.UI.Button.TypeOption;
193
+ /**
194
+ * <p>Gets or sets the expand direction of the button.</p>
195
+ */
196
+ expandDirection: componyx.UI.Button.ExpandDirectionOption;
197
+ /**
198
+ * <p>Gets or sets the decoration type used when the button is hovered/selected.</p>
199
+ */
200
+ decoration: componyx.UI.Button.DecorationOption;
201
+ /**
202
+ * <p>Gets or sets the radio group id.</p>
203
+ */
204
+ radioGroupId: string | null;
205
+ /**
206
+ * <p>Gets or sets a value indicating if the identifier of the component is rendered in the HTML output of the root element.</p>
207
+ */
208
+ renderId: boolean;
209
+ /**
210
+ * <p>Gets or sets a value indicating whether the PostBack event is automatically fired.</p>
211
+ */
212
+ autoPostBack: boolean;
213
+ /**
214
+ * <p>Gets or sets a value indicating whether the button is disabled.</p>
215
+ */
216
+ disabled: boolean;
217
+ /**
218
+ * <p>Gets or sets a value indicating whether the button is selected.</p>
219
+ */
220
+ selected: boolean;
221
+ /**
222
+ * <p>Gets or sets a value indicating whether the button is in expanded state.</p>
223
+ */
224
+ expanded: boolean;
225
+ /**
226
+ * <p>Gets or sets a value indicating if the button has two actions.</p>
227
+ */
228
+ split: boolean;
229
+ /**
230
+ * <p>Gets or sets a value indicating if the button's default background color is transparent.</p>
231
+ */
232
+ transparent: boolean;
233
+ /**
234
+ * <p>Gets or sets a value indicating if the button's default border color is transparent.</p>
235
+ */
236
+ transparentBorder: boolean;
237
+ /**
238
+ * <p>Gets or sets a value indicating if the button is a primary button. When disabled the button's default style will be less prominent (basic) unless styled otherwise.</p>
239
+ */
240
+ primary: boolean;
241
+ /**
242
+ * <p>Gets or sets a value indicating if the ripple animation is activated on a command/expand click event.</p>
243
+ */
244
+ rippleAnimation: boolean;
245
+ /**
246
+ * <p>Gets or sets which menu to expand when the expand button is clicked.</p>
247
+ */
248
+ menuId: string | null;
249
+ /**
250
+ * <p>Gets or sets a menu root item to expand on the corresponding menu when the expand button is clicked.</p>
251
+ */
252
+ menuItemId: string | null;
253
+ /**
254
+ * <p>Gets or sets which box to expand when the expand button is clicked.</p>
255
+ */
256
+ boxId: string | null;
257
+ /**
258
+ * <p>Gets or sets the tooltip manager used to display tooltips.</p>
259
+ */
260
+ tooltipManagerId: string | null;
261
+ /**
262
+ * <p>Gets or sets the id of the tooltip to show.</p>
263
+ */
264
+ tooltipId: string | null;
265
+ /**
266
+ * <p>Gets the element which contains the button content.</p>
267
+ */
268
+ readonly contentElement: HTMLElement;
269
+ }
270
+ namespace Button {
271
+ /**
272
+ * @property onFocus - <p>Fires when the button is focused.</p>
273
+ * @property onBlur - <p>Fires when the button is blurred.</p>
274
+ * @property onPointerEnter - <p>Fires on pointerenter.</p>
275
+ * @property onPointerLeave - <p>Fires on pointerleave.</p>
276
+ * @property onPointerDown - <p>Fires on pointerdown.</p>
277
+ * @property onPointerUp - <p>Fires on pointerup.</p>
278
+ * @property onDblClick - <p>Fires on double click.</p>
279
+ * @property onSelect - <p>Fires on select.</p>
280
+ * @property onDeselect - <p>Fires on deselect.</p>
281
+ * @property onCommandClick - <p>Fires on command click.</p>
282
+ * @property onCommandPointerEnter - <p>Fires on command pointerenter.</p>
283
+ * @property onCommandPointerLeave - <p>Fires on command pointerleave.</p>
284
+ * @property onCommandPointerDown - <p>Fires on command pointerdown.</p>
285
+ * @property onCommandPointerUp - <p>Fires on command pointerup.</p>
286
+ * @property onCommandDblClick - <p>Fires on command double click.</p>
287
+ * @property onExpandClick - <p>Fires on expand click.</p>
288
+ * @property onExpandPointerEnter - <p>Fires on expand pointerenter.</p>
289
+ * @property onExpandPointerLeave - <p>Fires on expand pointerleave.</p>
290
+ * @property onExpandPointerDown - <p>Fires on expand pointerdown.</p>
291
+ * @property onExpandPointerUp - <p>Fires on expand pointerup.</p>
292
+ * @property onExpandDblClick - <p>Fires on expand double click.</p>
293
+ */
294
+ class ButtonEvents extends componyx.UI.base.Events<componyx.UI.Button> {
295
+ constructor();
296
+ /**
297
+ * <p>Fires when the button is focused.</p>
298
+ */
299
+ onFocus: componyx.UI.base.Event<componyx.UI.Button, undefined>;
300
+ /**
301
+ * <p>Fires when the button is blurred.</p>
302
+ */
303
+ onBlur: componyx.UI.base.Event<componyx.UI.Button, undefined>;
304
+ /**
305
+ * <p>Fires on pointerenter.</p>
306
+ */
307
+ onPointerEnter: componyx.UI.base.Event<componyx.UI.Button, componyx.UI.Button.ButtonEventArgs>;
308
+ /**
309
+ * <p>Fires on pointerleave.</p>
310
+ */
311
+ onPointerLeave: componyx.UI.base.Event<componyx.UI.Button, componyx.UI.Button.ButtonEventArgs>;
312
+ /**
313
+ * <p>Fires on pointerdown.</p>
314
+ */
315
+ onPointerDown: componyx.UI.base.Event<componyx.UI.Button, componyx.UI.Button.ButtonEventArgs>;
316
+ /**
317
+ * <p>Fires on pointerup.</p>
318
+ */
319
+ onPointerUp: componyx.UI.base.Event<componyx.UI.Button, componyx.UI.Button.ButtonEventArgs>;
320
+ /**
321
+ * <p>Fires on double click.</p>
322
+ */
323
+ onDblClick: componyx.UI.base.Event<componyx.UI.Button, componyx.UI.Button.ButtonEventArgs>;
324
+ /**
325
+ * <p>Fires on select.</p>
326
+ */
327
+ onSelect: componyx.UI.base.Event<componyx.UI.Button, componyx.UI.Button.ButtonEventArgs>;
328
+ /**
329
+ * <p>Fires on deselect.</p>
330
+ */
331
+ onDeselect: componyx.UI.base.Event<componyx.UI.Button, componyx.UI.Button.ButtonEventArgs>;
332
+ /**
333
+ * <p>Fires on command click.</p>
334
+ */
335
+ onCommandClick: componyx.UI.base.Event<componyx.UI.Button, componyx.UI.Button.ButtonEventArgs>;
336
+ /**
337
+ * <p>Fires on command pointerenter.</p>
338
+ */
339
+ onCommandPointerEnter: componyx.UI.base.Event<componyx.UI.Button, componyx.UI.Button.ButtonEventArgs>;
340
+ /**
341
+ * <p>Fires on command pointerleave.</p>
342
+ */
343
+ onCommandPointerLeave: componyx.UI.base.Event<componyx.UI.Button, componyx.UI.Button.ButtonEventArgs>;
344
+ /**
345
+ * <p>Fires on command pointerdown.</p>
346
+ */
347
+ onCommandPointerDown: componyx.UI.base.Event<componyx.UI.Button, componyx.UI.Button.ButtonEventArgs>;
348
+ /**
349
+ * <p>Fires on command pointerup.</p>
350
+ */
351
+ onCommandPointerUp: componyx.UI.base.Event<componyx.UI.Button, componyx.UI.Button.ButtonEventArgs>;
352
+ /**
353
+ * <p>Fires on command double click.</p>
354
+ */
355
+ onCommandDblClick: componyx.UI.base.Event<componyx.UI.Button, componyx.UI.Button.ButtonEventArgs>;
356
+ /**
357
+ * <p>Fires on expand click.</p>
358
+ */
359
+ onExpandClick: componyx.UI.base.Event<componyx.UI.Button, componyx.UI.Button.ButtonEventArgs>;
360
+ /**
361
+ * <p>Fires on expand pointerenter.</p>
362
+ */
363
+ onExpandPointerEnter: componyx.UI.base.Event<componyx.UI.Button, componyx.UI.Button.ButtonEventArgs>;
364
+ /**
365
+ * <p>Fires on expand pointerleave.</p>
366
+ */
367
+ onExpandPointerLeave: componyx.UI.base.Event<componyx.UI.Button, componyx.UI.Button.ButtonEventArgs>;
368
+ /**
369
+ * <p>Fires on expand pointerdown.</p>
370
+ */
371
+ onExpandPointerDown: componyx.UI.base.Event<componyx.UI.Button, componyx.UI.Button.ButtonEventArgs>;
372
+ /**
373
+ * <p>Fires on expand pointerup.</p>
374
+ */
375
+ onExpandPointerUp: componyx.UI.base.Event<componyx.UI.Button, componyx.UI.Button.ButtonEventArgs>;
376
+ /**
377
+ * <p>Fires on expand double click.</p>
378
+ */
379
+ onExpandDblClick: componyx.UI.base.Event<componyx.UI.Button, componyx.UI.Button.ButtonEventArgs>;
380
+ }
381
+ /**
382
+ * <p>Button event arguments.</p>
383
+ */
384
+ type ButtonEventArgs = {
385
+ /** <p>The original event object.</p> */
386
+ event: Event;
387
+ };
388
+ /**
389
+ * <p>SizeOption</p>
390
+ */
391
+ enum SizeOption {
392
+ SMALL = "s",
393
+ MEDIUM = "m",
394
+ LARGE = "l",
395
+ XLARGE = "xl"
396
+ }
397
+ /**
398
+ * <p>TypeOption</p>
399
+ */
400
+ enum TypeOption {
401
+ COMMANDBUTTON = 0,
402
+ CHECKBUTTON = 1,
403
+ RADIOBUTTON = 2
404
+ }
405
+ /**
406
+ * <p>ExpandDirectionOption</p>
407
+ */
408
+ enum ExpandDirectionOption {
409
+ DOWN = 0,
410
+ RIGHT = 1,
411
+ UP = 2,
412
+ LEFT = 3
413
+ }
414
+ namespace ExpandDirectionOption {
415
+ /**
416
+ * <p>Gets the name of the specified value.</p>
417
+ * @param value - <p>The enum value.</p>
418
+ */
419
+ function getName(value: componyx.UI.Button.ExpandDirectionOption): string;
420
+ }
421
+ /**
422
+ * <p>AlignOption</p>
423
+ */
424
+ enum AlignOption {
425
+ LEFT = 0,
426
+ CENTER = 1,
427
+ RIGHT = 2
428
+ }
429
+ namespace AlignOption {
430
+ /**
431
+ * <p>Gets the name of the specified value.</p>
432
+ * @param value - <p>The enum value.</p>
433
+ */
434
+ function getName(value: componyx.UI.Button.AlignOption): string;
435
+ }
436
+ /**
437
+ * <p>DecorationOption</p>
438
+ */
439
+ enum DecorationOption {
440
+ BACKGROUND = 0,
441
+ UNDERLINE = 1,
442
+ OVERLINE = 2,
443
+ FRONTLINE = 3,
444
+ BACKLINE = 4
445
+ }
446
+ namespace DecorationOption {
447
+ /**
448
+ * <p>Gets the name of the specified value.</p>
449
+ * @param value - <p>The enum value.</p>
450
+ */
451
+ function getName(value: componyx.UI.Button.DecorationOption): string;
452
+ }
453
+ }
454
+ }
455
+ }
@@ -0,0 +1,136 @@
1
+ declare namespace componyx
2
+ {
3
+ namespace UI
4
+ {
5
+ interface Carousel extends componyx.UI.base.methods { }
6
+ /**
7
+ * <p>Carousel class.</p>
8
+ */
9
+ class Carousel extends componyx.UI.base.Component implements componyx.UI.base.methods
10
+ {
11
+ /**
12
+ * Creates a new Carousel 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<Carousel> | HTMLElement);
17
+ /**
18
+ * <p>Carousel slide animation.</p>
19
+ * @property cssClass - <p>Gets or sets the css class that is applied to the element to provide the slide animation/transition.</p>
20
+ */
21
+ animation: componyx.UI.Carousel.Animation;
22
+ /**
23
+ * <p>Carousel events</p>
24
+ */
25
+ events: componyx.UI.Carousel.CarouselEvents;
26
+ /**
27
+ * <p>Starts rotating the slide items automatically.</p>
28
+ * @param [interval] - <p>The interval in milliseconds before moving to the next item.</p>
29
+ */
30
+ start(interval?: number): void;
31
+ /**
32
+ * <p>Stops rotating the slide items automatically.</p>
33
+ */
34
+ stop(): void;
35
+ /**
36
+ * <p>Gets the index of the selected item.</p>
37
+ * @returns <p>The index of the selected item.</p>
38
+ */
39
+ getSelectedIndex(): number;
40
+ /**
41
+ * <p>Selects the item with the specified index.</p>
42
+ * @param index - <p>The index of the item.</p>
43
+ * @param [instant] - <p>A value indicating if the item must be selected instantly (without transition animation).</p>
44
+ */
45
+ selectItem(index: number, instant?: boolean): void;
46
+ /**
47
+ * <p>Renders the component</p>
48
+ */
49
+ render(): void;
50
+ /**
51
+ * <p>Handles the post render procedure.</p>
52
+ */
53
+ postRender(): void;
54
+ /**
55
+ * <p>Destroys the component.</p>
56
+ * @param keepEvents - <p>A value indicating if component events should be kept.</p>
57
+ */
58
+ destroy(keepEvents: boolean): void;
59
+ /**
60
+ * <p>Gets or sets a value indicating if the carousel is rendered horizontal.</p>
61
+ */
62
+ horizontal: boolean;
63
+ /**
64
+ * <p>Gets or sets a value indicating if the carousel takes the full screen size.</p>
65
+ */
66
+ fullscreen: boolean;
67
+ /**
68
+ * <p>Gets or sets a value indicating if items can be selected by dragging.</p>
69
+ */
70
+ dragNavigation: boolean;
71
+ /**
72
+ * <p>Gets or sets a value indicating if items can be selected with the mouse wheel.</p>
73
+ */
74
+ wheelNavigation: boolean;
75
+ /**
76
+ * <p>Gets or sets a value indicating if items can be selected with the keyboard. With the option horizontal enabled only the left/right arrow keys can be used. When rendered vertically the up/down arrows, page up/down, home (first item) and end (last item) keys can be used.</p>
77
+ */
78
+ keyboardNavigation: boolean;
79
+ /**
80
+ * <p>Gets or sets a value indicating if there is a transition animation on initial item select.</p>
81
+ */
82
+ initialTransition: boolean;
83
+ /**
84
+ * <p>Gets or sets the percentage of the item to be visible before the item is selected.</p>
85
+ */
86
+ dragRevealPercentage: number;
87
+ /**
88
+ * <p>Gets or sets the drag speed (moved pixels relative to the elapsed time) required to select the designated item when the reveal percentage has not been matched.</p>
89
+ */
90
+ dragSelectSpeed: number;
91
+ /**
92
+ * <p>Gets or sets the interval in milliseconds for automatic carousel rotation.</p>
93
+ */
94
+ rotateInterval: number;
95
+ /**
96
+ * <p>Gets or sets the initial selected item index.</p>
97
+ */
98
+ selectedIndex: number;
99
+ }
100
+ namespace Carousel
101
+ {
102
+ /**
103
+ * <p>Carousel slide animation settings.</p>
104
+ */
105
+ type Animation = {
106
+ /** <p>Gets or sets the css class that is applied to the element to provide the slide animation/transition. Default: 'slide-animation'.</p> */
107
+ cssClass: string;
108
+ };
109
+ /**
110
+ * @property onItemSelect - <p>Event which fires on an item select.</p>
111
+ * @property onTransitionComplete - <p>Event which fires when the item-select transition animation has completed.</p>
112
+ */
113
+ class CarouselEvents extends componyx.UI.base.Events<componyx.UI.Carousel>
114
+ {
115
+ constructor();
116
+ /**
117
+ * <p>Event which fires on an item select.</p>
118
+ */
119
+ onItemSelect: componyx.UI.base.Event<componyx.UI.Carousel, componyx.UI.Carousel.CarouselEventArgs>;
120
+ /**
121
+ * <p>Event which fires when the item-select transition animation has completed.</p>
122
+ */
123
+ onTransitionComplete: componyx.UI.base.Event<componyx.UI.Carousel, componyx.UI.Carousel.CarouselEventArgs>;
124
+ }
125
+ /**
126
+ * <p>Carousel event arguments.</p>
127
+ */
128
+ type CarouselEventArgs = {
129
+ /** <p>The index of the selected item.</p> */
130
+ index: number;
131
+ /** <p>The index of the previously selected item (onItemSelect only; undefined on the first select).</p> */
132
+ previousIndex?: number;
133
+ };
134
+ }
135
+ }
136
+ }