@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,224 @@
1
+ declare namespace componyx
2
+ {
3
+ namespace UI
4
+ {
5
+ interface PieChart extends Omit<componyx.UI.base.methods, 'render' | 'destroy' | 'cloneProperties' | 'postRender'> { }
6
+ /**
7
+ * <p>PieChart 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 PieChart extends componyx.UI.base.WebComponent
12
+ {
13
+ constructor(id?: string, properties?: any | HTMLElement);
14
+ /**
15
+ * <p>Internal CSS class name constants. You can override any of these classes on the Component
16
+ * instance by defining a property named <code>cssClass&lt;Key&gt;</code> where &lt;Key&gt; is the
17
+ * PascalCase key from this object. Be cautious: overriding these classes without including the
18
+ * default names may break styling and functionality.</p>
19
+ */
20
+ readonly classOption: {
21
+ readonly CHART: string;
22
+ readonly HALF: string;
23
+ readonly DONUT: string;
24
+ readonly LEGEND: string;
25
+ readonly LEGEND_ITEM: string;
26
+ readonly LEGEND_ITEM_COLOR: string;
27
+ readonly LEGEND_ITEM_LABEL: string;
28
+ readonly SEGMENT_LABEL: string;
29
+ readonly SEGMENT_OVERLAY: string;
30
+ readonly SEGMENT_HOVER: string;
31
+ };
32
+ /**
33
+ * <p>PieChart events</p>
34
+ */
35
+ events: componyx.UI.PieChart.PieChartEvents;
36
+ /**
37
+ * <p>Renders the component.</p>
38
+ */
39
+ render(): void;
40
+ /**
41
+ * <p>Destroys the component.</p>
42
+ * @param keepEvents - <p>A value indicating if component events should be kept.</p>
43
+ * @param [removeElement = true] - <p>A value indicating if the corresponding HTML Element should be removed.</p>
44
+ */
45
+ destroy(keepEvents: boolean, removeElement?: boolean): void;
46
+ /**
47
+ * <p>Gets the css class if it exists and otherwise the default css class.</p>
48
+ * @param cssClassValue - <p>The class option key to look up.</p>
49
+ * @returns <p>The css class.</p>
50
+ */
51
+ getCssClass(cssClassValue: string): string;
52
+ /**
53
+ * <p>Gets or sets the shape of the pie chart (PIE or DONUT).</p>
54
+ */
55
+ shape: componyx.UI.PieChart.ShapeOption;
56
+ /**
57
+ * <p>Gets or sets where the segment labels are displayed (NONE, INNER, or OUTER).</p>
58
+ */
59
+ segmentLabelDisplay: componyx.UI.PieChart.SegmentLabelDisplayOption;
60
+ /**
61
+ * <p>Gets or sets the content of the segment labels (VALUE, LABEL, LABEL_VALUE).</p>
62
+ */
63
+ segmentLabelContent: componyx.UI.PieChart.SegmentLabelContentOption;
64
+ /**
65
+ * <p>Gets or sets a value indicating whether the chart spans half a circle.</p>
66
+ */
67
+ isHalf: boolean;
68
+ /**
69
+ * <p>Gets or sets a value indicating whether the legend is displayed.</p>
70
+ */
71
+ showLegend: boolean;
72
+ /**
73
+ * <p>Gets or sets a value indicating whether segment values are shown in the legend labels.</p>
74
+ */
75
+ showValuesInLegend: boolean;
76
+ /**
77
+ * <p>Gets or sets the start angle in degrees (0 = top, clockwise). Only applies to the full (non-half) variant.</p>
78
+ */
79
+ startAngle: number;
80
+ /**
81
+ * <p>Gets or sets the inner hole size for the donut variant as a ratio (0-1, where 0.6 = 60% hole).</p>
82
+ */
83
+ donutInnerRatio: number;
84
+ /**
85
+ * <p>Gets or sets the base color used for segments without a specified color. The colors of such segments are generated by shifting the hue of the base color.</p>
86
+ */
87
+ baseColor: string;
88
+ /**
89
+ * <p>Gets or sets the segment label positioning offset. For OUTER labels: distance in pixels from chart edge (default: 20). For INNER labels: position ratio from 0 (inner edge) to 1 (outer edge) (default: 0.5).</p>
90
+ */
91
+ segmentLabelOffset: number | null;
92
+ /**
93
+ * <p>Gets or sets the list of segments.</p>
94
+ */
95
+ segments: componyx.UI.PieChart.Segment[];
96
+ /**
97
+ * <p>Gets or sets the id of the component from which the settings are cloned for the tooltip manager used by the PieChart component.</p>
98
+ */
99
+ tooltipManagerId: string;
100
+ }
101
+ namespace PieChart
102
+ {
103
+ /**
104
+ * @property onSegmentEnter - <p>Fires when the pointer enters a segment.</p>
105
+ * @property onSegmentLeave - <p>Fires when the pointer leaves a segment.</p>
106
+ * @property onSegmentClick - <p>Fires when a segment is clicked.</p>
107
+ * @property onRenderSegmentLabel - <p>Fires when a segment label is rendered.</p>
108
+ * @property onRenderLegendLabel - <p>Fires when a legend label is rendered.</p>
109
+ */
110
+ class PieChartEvents extends componyx.UI.base.Events<componyx.UI.PieChart>
111
+ {
112
+ constructor();
113
+ /**
114
+ * <p>Fires when the pointer enters a segment.</p>
115
+ */
116
+ onSegmentEnter: componyx.UI.base.Event<componyx.UI.PieChart, componyx.UI.PieChart.PieChartEventArgs>;
117
+ /**
118
+ * <p>Fires when the pointer leaves a segment.</p>
119
+ */
120
+ onSegmentLeave: componyx.UI.base.Event<componyx.UI.PieChart, componyx.UI.PieChart.PieChartEventArgs>;
121
+ /**
122
+ * <p>Fires when a segment is clicked.</p>
123
+ */
124
+ onSegmentClick: componyx.UI.base.Event<componyx.UI.PieChart, componyx.UI.PieChart.PieChartEventArgs>;
125
+ /**
126
+ * <p>Fires when a segment label is rendered.</p>
127
+ */
128
+ onRenderSegmentLabel: componyx.UI.base.Event<componyx.UI.PieChart, componyx.UI.PieChart.PieChartLabelRenderEventArgs>;
129
+ /**
130
+ * <p>Fires when a legend label is rendered.</p>
131
+ */
132
+ onRenderLegendLabel: componyx.UI.base.Event<componyx.UI.PieChart, componyx.UI.PieChart.PieChartLabelRenderEventArgs>;
133
+ }
134
+ /**
135
+ * <p>PieChart segment event arguments.</p>
136
+ */
137
+ type PieChartEventArgs = {
138
+ /** <p>The data segment.</p> */
139
+ segment: componyx.UI.PieChart.Segment;
140
+ /** <p>The original event object.</p> */
141
+ event: Event;
142
+ };
143
+ /**
144
+ * <p>PieChart label render event arguments.</p>
145
+ */
146
+ type PieChartLabelRenderEventArgs = {
147
+ /** <p>The data segment.</p> */
148
+ segment: componyx.UI.PieChart.Segment;
149
+ /** <p>The label DOM element (segment label or legend label) that can be customized.</p> */
150
+ element: HTMLElement;
151
+ };
152
+ /**
153
+ * <p>Represents a chart segment.</p>
154
+ * @param [properties] - <p>The properties used to initialize the object.</p>
155
+ */
156
+ class Segment
157
+ {
158
+ constructor(properties?: {
159
+ id?: string;
160
+ label?: string;
161
+ tooltip?: string;
162
+ color?: string;
163
+ value?: number;
164
+ valueSuffix?: string;
165
+ endColor?: string;
166
+ });
167
+ /**
168
+ * <p>Gets or sets the id of the segment.</p>
169
+ */
170
+ id: string;
171
+ /**
172
+ * <p>Gets or sets the label of the segment</p>
173
+ */
174
+ label: string;
175
+ /**
176
+ * <p>Gets or sets the tooltip of the segment</p>
177
+ */
178
+ tooltip: string;
179
+ /**
180
+ * <p>Gets or sets the CSS color value of the segment.</p>
181
+ */
182
+ color: string;
183
+ /**
184
+ * <p>Gets or sets the value of the segment.</p>
185
+ */
186
+ value: number;
187
+ /**
188
+ * <p>Gets or sets the value suffix (e.g. %) of the segment.</p>
189
+ */
190
+ valueSuffix: string;
191
+ /**
192
+ * <p>Gets or sets the optional CSS end color value of the segment.</p>
193
+ */
194
+ endColor: string | null;
195
+ }
196
+ /**
197
+ * <p>ShapeOption</p>
198
+ */
199
+ enum ShapeOption
200
+ {
201
+ PIE = "pie",
202
+ DONUT = "donut"
203
+ }
204
+ /**
205
+ * <p>SegmentLabelDisplayOption</p>
206
+ */
207
+ enum SegmentLabelDisplayOption
208
+ {
209
+ NONE = "none",
210
+ INNER = "inner",
211
+ OUTER = "outer"
212
+ }
213
+ /**
214
+ * <p>SegmentLabelContentOption</p>
215
+ */
216
+ enum SegmentLabelContentOption
217
+ {
218
+ VALUE = "value",
219
+ LABEL = "label",
220
+ LABEL_VALUE = "label_value"
221
+ }
222
+ }
223
+ }
224
+ }
@@ -0,0 +1,108 @@
1
+ declare namespace componyx
2
+ {
3
+ /**
4
+ * <p>Enables responsive templates based on media-queries defined through HTML data-attributes.</p>
5
+ */
6
+ namespace responsiveTemplates
7
+ {
8
+ /**
9
+ * <p>A registered responsive template. Passed to the template events and callbacks.</p>
10
+ */
11
+ type Template = {
12
+ /** <p>The template element.</p> */
13
+ element: HTMLElement;
14
+ /** <p>The place-holder elements inside the template.</p> */
15
+ placeHolders: HTMLElement[];
16
+ /** <p>Space separated list of css sources loaded when the template is active.</p> */
17
+ css: string;
18
+ /** <p>Space separated list of javascript sources loaded when the template is active.</p> */
19
+ js: string;
20
+ /** <p>The callbacks specified when the template was added.</p> */
21
+ callbacks: componyx.responsiveTemplates.TemplateCallbacks;
22
+ /** <p>The media query list linked to the template, when a media query was specified.</p> */
23
+ mediaQuery?: MediaQueryList;
24
+ /** <p>A value indicating if all template sources have been loaded.</p> */
25
+ sourcesLoaded?: boolean;
26
+ /** <p>The script and link tags added for the template sources.</p> */
27
+ tags?: HTMLElement[];
28
+ };
29
+ /**
30
+ * <p>Optional template callbacks. The template is passed as first argument to all callbacks.</p>
31
+ */
32
+ type TemplateCallbacks = {
33
+ /** <p>Called when a template is activated.</p> */
34
+ onActivate?: (template: componyx.responsiveTemplates.Template) => any;
35
+ /** <p>Called when a template is deactivated.</p> */
36
+ onDeactivate?: (template: componyx.responsiveTemplates.Template) => any;
37
+ /** <p>Called when a JS or CSS source is loaded. The source is passed as second argument.</p> */
38
+ onLoadSrc?: (template: componyx.responsiveTemplates.Template, src: string) => any;
39
+ /** <p>Called when all JS and CSS sources have been loaded.</p> */
40
+ onLoadComplete?: (template: componyx.responsiveTemplates.Template) => any;
41
+ /** <p>Called when the media query of the template changes its match state, before the template is activated or deactivated.</p> */
42
+ onMatchMediaChange?: (template: componyx.responsiveTemplates.Template) => any;
43
+ };
44
+ /**
45
+ * <p>Defines if responsive design templates are automatically detected when the DOM is ready.</p>
46
+ */
47
+ var autoDetect: boolean;
48
+ /**
49
+ * <p>The id of the template to load at startup.</p>
50
+ */
51
+ var launchTemplateId: string | null;
52
+ /**
53
+ * <p>The id of the template to load when media queries are not supported/used.</p>
54
+ */
55
+ var fallbackTemplateId: string | null;
56
+ /**
57
+ * <p>Current active template.</p>
58
+ */
59
+ var activeTemplate: componyx.responsiveTemplates.Template | null;
60
+ /**
61
+ * <p>Event which fires when the view templates have been detected and initialized. Handlers receive no arguments.</p>
62
+ */
63
+ var onPostDetect: componyx.library.Event<() => any>;
64
+ /**
65
+ * <p>Event which fires when a <code>matchMedia</code> query changes its match state (e.g., from matching to non-matching or vice versa), before the template is activated or deactivated. Handlers receive the template of the media query.</p>
66
+ */
67
+ var onMatchMediaChange: componyx.library.Event<(template: componyx.responsiveTemplates.Template) => any>;
68
+ /**
69
+ * <p>Event which fires when a view template is activated. Handlers receive the activated template.</p>
70
+ */
71
+ var onActivate: componyx.library.Event<(template: componyx.responsiveTemplates.Template) => any>;
72
+ /**
73
+ * <p>Event which fires when a view template is deactivated. Handlers receive the deactivated template.</p>
74
+ */
75
+ var onDeactivate: componyx.library.Event<(template: componyx.responsiveTemplates.Template) => any>;
76
+ /**
77
+ * <p>Event which fires when a single template resource is loaded. Handlers receive the loaded source.</p>
78
+ */
79
+ var onLoadSrc: componyx.library.Event<(src: string) => any>;
80
+ /**
81
+ * <p>Event which fires when all template resources have been loaded. Handlers receive no arguments.</p>
82
+ */
83
+ var onLoadComplete: componyx.library.Event<() => any>;
84
+ /**
85
+ * <p>Detects and initializes responsive design templates on the page.</p>
86
+ */
87
+ function detect(): Promise<void>;
88
+ /**
89
+ * <p>Adds a responsive template which can be linked to the specified media query.</p>
90
+ * @param templateId - <p>The id of the DOM Element which will act as responsive design template.</p>
91
+ * @param mediaQuery - <p>The media query (or comma separated list) which is linked to the responsive design template.</p>
92
+ * @param css - <p>Space separated list of css sources to load when the responsive design template is active.</p>
93
+ * @param js - <p>Space separated list of javascript sources to load when the responsive design template is active.</p>
94
+ * @param callbacks - <p>An object containing optional callback functions. The template is passed as first argument to all callbacks.</p>
95
+ */
96
+ function add(templateId: string, mediaQuery: string, css: string, js: string, callbacks: componyx.responsiveTemplates.TemplateCallbacks): Promise<void>;
97
+ /**
98
+ * <p>Activates the responsive template with the specified id.</p>
99
+ * @param templateId - <p>The id of the DOM Element which will act as responsive design template.</p>
100
+ */
101
+ function activate(templateId: string): Promise<void>;
102
+ /**
103
+ * <p>Deactivates the responsive template with the specified id.</p>
104
+ * @param templateId - <p>The id of the DOM Element which will act as responsive design template.</p>
105
+ */
106
+ function deactivate(templateId: string): Promise<void>;
107
+ }
108
+ }
@@ -0,0 +1,227 @@
1
+ declare namespace componyx
2
+ {
3
+ namespace UI
4
+ {
5
+ interface Slider extends componyx.UI.base.methods { }
6
+ /**
7
+ * <p>Slider class.</p>
8
+ */
9
+ class Slider extends componyx.UI.base.Component implements componyx.UI.base.methods
10
+ {
11
+ /**
12
+ * Creates a new Slider 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<Slider> | HTMLElement);
17
+ /**
18
+ * <p>Slider events</p>
19
+ */
20
+ events: componyx.UI.Slider.SliderEvents;
21
+ /**
22
+ * <p>Sets the value template. The template supports the below listed interpolations.</p>
23
+ * <ul>
24
+ * <li>{value} This value will be replaced with the selected value or label text.</li>
25
+ * </ul>
26
+ * @param content - <p>The HTML template.</p>
27
+ */
28
+ setValueTemplate(content: HTMLElement | HTMLElement[] | DocumentFragment | string): void;
29
+ /**
30
+ * <p>Sets the start value template. The template supports the below listed interpolations.</p>
31
+ * <ul>
32
+ * <li>{value} This value will be replaced with the selected value or label text.</li>
33
+ * </ul>
34
+ * @param content - <p>The HTML template.</p>
35
+ */
36
+ setStartValueTemplate(content: HTMLElement | HTMLElement[] | DocumentFragment | string): void;
37
+ /**
38
+ * <p>Gets the selected slider value(s).</p>
39
+ * @returns <p>The value for a slider or the range start and end values for a range slider.</p>
40
+ */
41
+ getValue(): number | Number[];
42
+ /**
43
+ * <p>Sets the (end) value.</p>
44
+ * @param value - <p>The value to set.</p>
45
+ */
46
+ setValue(value: number): void;
47
+ /**
48
+ * <p>Sets the start value in a range slider.</p>
49
+ * @param value - <p>The start value to set.</p>
50
+ */
51
+ setStartValue(value: number): void;
52
+ /**
53
+ * <p>Renders the component</p>
54
+ */
55
+ render(): void;
56
+ /**
57
+ * <p>Handles the post render procedure.</p>
58
+ */
59
+ postRender(): void;
60
+ /**
61
+ * <p>Destroys the component.</p>
62
+ */
63
+ destroy(): void;
64
+ /**
65
+ * <p>Gets or sets a value indicating if the slider is rendered vertically.</p>
66
+ */
67
+ vertical: boolean;
68
+ /**
69
+ * <p>Gets or sets a value indicating if the slider has a start- and end-handle to set a range.</p>
70
+ */
71
+ range: boolean;
72
+ /**
73
+ * <p>Gets or sets a value indicating if the increase and decrease buttons are displayed.</p>
74
+ */
75
+ showButtons: boolean;
76
+ /**
77
+ * <p>Gets or sets a value indicating if tooltips are displayed when there are value changes.</p>
78
+ */
79
+ showTooltips: boolean;
80
+ /**
81
+ * <p>Gets or sets a value indicating if the slider is rendered in reverse direction.</p>
82
+ */
83
+ reversed: boolean;
84
+ /**
85
+ * <p>Gets or sets a value indicating if the css animation is activated when the track is selected.</p>
86
+ */
87
+ animation: boolean;
88
+ /**
89
+ * <p>Gets or sets a value indicating if the slider is disabled.</p>
90
+ */
91
+ disabled: boolean;
92
+ /**
93
+ * <p>Gets or sets a value indicating where the tickmark side is rendered.</p>
94
+ */
95
+ tickMarkSide: componyx.UI.Slider.TickMarkSideOption;
96
+ /**
97
+ * <p>Gets or sets a value indicating where the tickmark values are rendered.</p>
98
+ */
99
+ tickMarkValueSide: componyx.UI.Slider.TickMarkSideOption;
100
+ /**
101
+ * <p>Gets or sets the track size. If a track size is defined the CSS class 'fixed-track-size' is appended to the root element. You can also control the slider’s dimensions via CSS, either on the track or the root element.</p>
102
+ */
103
+ trackSize: string | number;
104
+ /**
105
+ * <p>Gets or sets the decimal separator used when displaying tickmark values.</p>
106
+ */
107
+ decimalSeparator: string;
108
+ /**
109
+ * <p>Gets or sets the decimal places used when displaying tickmark values.</p>
110
+ */
111
+ decimalPlaces: number;
112
+ /**
113
+ * <p>Gets or sets the minimum value.</p>
114
+ */
115
+ minValue: number;
116
+ /**
117
+ * <p>Gets or sets the maximum value.</p>
118
+ */
119
+ maxValue: number;
120
+ /**
121
+ * <p>Gets or sets the minimum change in value.</p>
122
+ */
123
+ minChange: number;
124
+ /**
125
+ * <p>Gets or sets the maximum change in value. If a maximum value is not set the handle can move to any clicked position in the track.</p>
126
+ */
127
+ maxChange: number;
128
+ /**
129
+ * <p>Gets or sets the start value of the range slider.</p>
130
+ */
131
+ startValue: number;
132
+ /**
133
+ * <p>Gets or sets the value (end value in range) of the slider. If range is set to true and this value is not set it will take the maxValue by default, otherwise it defaults to the minValue or 0.</p>
134
+ */
135
+ value: number | null;
136
+ /**
137
+ * <p>Gets or sets the amount of rendered tickmarks.</p>
138
+ */
139
+ tickMarks: number;
140
+ /**
141
+ * <p>Gets or sets the tickmark step on which a value is rendered. 0 means never, 1 means every item, 2 means every 2nd item.</p>
142
+ */
143
+ tickMarkValueStep: number;
144
+ /**
145
+ * <p>Gets or sets the tickmark step on which a minor tick is rendered. 0 means never, 1 means every item, 2 means every 2nd item and so on.</p>
146
+ */
147
+ minorTickMarkStep: number;
148
+ /**
149
+ * <p>Gets or sets the tickmark step on which a major tick is rendered. 0 means never, 1 means every item, 2 means every 2nd item and so on.</p>
150
+ */
151
+ majorTickMarkStep: number;
152
+ /**
153
+ * <p>Gets or sets the tickmark labels when text instead of a numeric value is desired.</p>
154
+ */
155
+ tickMarkLabels: {
156
+ [key: number]: string;
157
+ };
158
+ /**
159
+ * <p>Gets or sets the id of the decrease button from which the settings are cloned.</p>
160
+ */
161
+ decreaseButtonId: string | null;
162
+ /**
163
+ * <p>Gets or sets the id of the increase button from which the settings are cloned.</p>
164
+ */
165
+ increaseButtonId: string | null;
166
+ /**
167
+ * <p>Gets or sets the id of the tooltip manager from which the settings are cloned.</p>
168
+ */
169
+ tooltipManagerId: string | null;
170
+ /**
171
+ * <p>Gets or sets the id of the hidden input from which the attributes and properties are cloned. The hidden input contains the selected value.</p>
172
+ */
173
+ hiddenInputId: string | null;
174
+ /**
175
+ * <p>Gets or sets the id of the range-start hidden input from which the attributes and properties are cloned. The hidden input contains the selected range start value.</p>
176
+ */
177
+ startHiddenInputId: string | null;
178
+ /**
179
+ * <p>Gets or sets the id of the range hidden input from which the attributes and properties are cloned. The hidden input contains both the selected range start and end value.</p>
180
+ */
181
+ rangeHiddenInputId: string | null;
182
+ }
183
+ namespace Slider
184
+ {
185
+ /**
186
+ * @property onFocus - <p>Event which fires when the component is focused.</p>
187
+ * @property onBlur - <p>Event which fires when the component is blurred.</p>
188
+ * @property onChange - <p>Event which fires when the value or start value is changed.</p>
189
+ */
190
+ class SliderEvents extends componyx.UI.base.Events<componyx.UI.Slider>
191
+ {
192
+ constructor();
193
+ /**
194
+ * <p>Event which fires when the component is focused.</p>
195
+ */
196
+ onFocus: componyx.UI.base.Event<componyx.UI.Slider, undefined>;
197
+ /**
198
+ * <p>Event which fires when the component is blurred.</p>
199
+ */
200
+ onBlur: componyx.UI.base.Event<componyx.UI.Slider, undefined>;
201
+ /**
202
+ * <p>Event which fires when the value or start value is changed.</p>
203
+ */
204
+ onChange: componyx.UI.base.Event<componyx.UI.Slider, componyx.UI.Slider.ChangeEventArgs>;
205
+ }
206
+ /**
207
+ * <p>Slider change event arguments.</p>
208
+ */
209
+ type ChangeEventArgs = {
210
+ /** <p>A value indicating if the range start value changed instead of the (end) value.</p> */
211
+ isStart: boolean;
212
+ /** <p>The new value.</p> */
213
+ value: number | null;
214
+ };
215
+ /**
216
+ * <p>TickMarkSideOption</p>
217
+ */
218
+ enum TickMarkSideOption
219
+ {
220
+ NONE = 0,
221
+ BEFORE = 1,
222
+ AFTER = 2,
223
+ BOTH = 3
224
+ }
225
+ }
226
+ }
227
+ }