@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,120 @@
1
+ declare namespace componyx
2
+ {
3
+ namespace UI
4
+ {
5
+ interface ColorButton extends componyx.UI.base.methods { }
6
+ /**
7
+ * <p>ColorButton class.</p>
8
+ */
9
+ class ColorButton extends componyx.UI.base.Component implements componyx.UI.base.methods
10
+ {
11
+ /**
12
+ * Creates a new ColorButton 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<ColorButton> | HTMLElement);
17
+ /**
18
+ * <p>ColorButton events</p>
19
+ */
20
+ events: componyx.UI.ColorButton.ColorButtonEvents;
21
+ /**
22
+ * <p>Gets the RGBA color value.</p>
23
+ * @returns <p>The RGBA string value as in 'r,g,b,a' or '' if no color was set.</p>
24
+ */
25
+ getValue(): string;
26
+ /**
27
+ * <p>Sets the RGBA color value.</p>
28
+ * @param rgbaValue - <p>The RGBA string value as in 'r,g,b,a'</p>
29
+ */
30
+ setValue(rgbaValue: string): void;
31
+ /**
32
+ * <p>Gets the RGBA color value</p>
33
+ * @returns <p>The RGBA color value as array of numbers.</p>
34
+ */
35
+ getRGBA(): Number[];
36
+ /**
37
+ * <p>Sets the selected color to the specified RGBA color value.</p>
38
+ * @param r - <p>Red value (0-255).</p>
39
+ * @param g - <p>Green value (0-255).</p>
40
+ * @param b - <p>Blue value (0-255).</p>
41
+ * @param a - <p>Alpha value (0-1).</p>
42
+ */
43
+ setRGBA(r: string, g: string, b: string, a?: string): void;
44
+ /**
45
+ * <p>Returns the current selected hex color value.</p>
46
+ */
47
+ getHex(): string;
48
+ /**
49
+ * <p>Sets the selected color to the specified hex color value.</p>
50
+ * @param value - <p>Hex color value.</p>
51
+ */
52
+ setHex(value: string): void;
53
+ /**
54
+ * <p>Returns the underlying Button component instance.</p>
55
+ */
56
+ getButton(): componyx.UI.Button;
57
+ /**
58
+ * <p>Renders the component</p>
59
+ */
60
+ render(): void;
61
+ /**
62
+ * <p>Handles the post render procedure.</p>
63
+ */
64
+ postRender(): void;
65
+ /**
66
+ * <p>Gets or sets the css class of the color box.</p>
67
+ */
68
+ cssClassColorBox: string;
69
+ /**
70
+ * <p>Gets or sets the color in the format Hue, Saturation, Brightness, Alpha.</p>
71
+ */
72
+ hsba: string | null;
73
+ /**
74
+ * <p>Gets or sets the color in the format Red, Green, Blue, Alpha.</p>
75
+ */
76
+ rgba: string | null;
77
+ /**
78
+ * <p>Gets or sets the color in the hexadecimal format.</p>
79
+ */
80
+ hex: string;
81
+ /**
82
+ * <p>Gets or sets the color in the either hexadecimal or RGBA format.</p>
83
+ */
84
+ value: string;
85
+ /**
86
+ * <p>Gets or sets the id of the hidden input from which the settings are cloned.</p>
87
+ */
88
+ hiddenInputId: string | null;
89
+ /**
90
+ * <p>Gets or sets the clientid of the button.</p>
91
+ */
92
+ buttonId: string | null;
93
+ /**
94
+ * <p>Gets or sets the id of the corresponding colorpicker.</p>
95
+ */
96
+ colorPickerId: string | null;
97
+ }
98
+ namespace ColorButton
99
+ {
100
+ /**
101
+ * @property onConfirm - <p>Event which fires on a color change confirmation.</p>
102
+ */
103
+ class ColorButtonEvents extends componyx.UI.base.Events<componyx.UI.ColorButton>
104
+ {
105
+ constructor();
106
+ /**
107
+ * <p>Event which fires on a color change confirmation.</p>
108
+ */
109
+ onConfirm: componyx.UI.base.Event<componyx.UI.ColorButton, componyx.UI.ColorButton.ConfirmEventArgs>;
110
+ }
111
+ /**
112
+ * <p>ColorButton confirm event arguments.</p>
113
+ */
114
+ type ConfirmEventArgs = {
115
+ /** <p>The confirmed RGBA color value as [r, g, b, a].</p> */
116
+ rgba: number[];
117
+ };
118
+ }
119
+ }
120
+ }
@@ -0,0 +1,225 @@
1
+ declare namespace componyx
2
+ {
3
+ namespace UI
4
+ {
5
+ interface ColorPicker extends componyx.UI.base.methods { }
6
+ /**
7
+ * <p>ColorPicker class.</p>
8
+ */
9
+ class ColorPicker extends componyx.UI.base.Component implements componyx.UI.base.methods
10
+ {
11
+ /**
12
+ * Creates a new ColorPicker 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<ColorPicker> | HTMLElement);
17
+ /**
18
+ * <p>ColorPicker events</p>
19
+ */
20
+ events: componyx.UI.ColorPicker.ColorPickerEvents;
21
+ /**
22
+ * <p>Gets the corresponding box component.</p>
23
+ * @returns <p>The box component.</p>
24
+ */
25
+ getBox(): componyx.UI.Box;
26
+ /**
27
+ * <p>Expands the colorpicker popup box.</p>
28
+ * @param [expander] - <p>The expander element or id of the expander element.</p>
29
+ * @param [rgba] - <p>RGBA color value.</p>
30
+ * @param [confirmCallback] - <p>The callback function to call when the color is confirmed through the confirm button.</p>
31
+ * @param [boxPosition] - <p>The popup box autoPosition.</p>
32
+ * @param [modal] - <p>A value indicating if the colorpicker popup is shown as modal.</p>
33
+ * @param [toggle] - <p>A value indicating if the colorpicker popup hides when already showing.</p>
34
+ */
35
+ expand(expander?: HTMLElement | string, rgba?: String[], confirmCallback?: (...params: any[]) => any, boxPosition?: componyx.UI.Box.AutoPositionOption, modal?: boolean, toggle?: boolean): void;
36
+ /**
37
+ * <p>Returns the current selected HSBA color value.</p>
38
+ */
39
+ getHSBA(): Number[];
40
+ /**
41
+ * <p>Sets the selected color to the specified HSBA color value.</p>
42
+ * @param h - <p>Hue value (0-1).</p>
43
+ * @param s - <p>Saturation value (0-1).</p>
44
+ * @param b - <p>Brightness value (0-1).</p>
45
+ * @param a - <p>Alpha value (0-1).</p>
46
+ */
47
+ setHSBA(h: number, s: number, b: number, a: number): void;
48
+ /**
49
+ * <p>Returns the current selected RGBA color value.</p>
50
+ */
51
+ getRGBA(): Number[];
52
+ /**
53
+ * <p>Sets the selected color to the specified RGBA color value.</p>
54
+ * @param r - <p>Red value (0-255).</p>
55
+ * @param g - <p>Green value (0-255).</p>
56
+ * @param b - <p>Blue value (0-255).</p>
57
+ * @param a - <p>Alpha value (0-1).</p>
58
+ */
59
+ setRGBA(r: number, g: number, b: number, a: number): void;
60
+ /**
61
+ * <p>Returns the current selected hex color value.</p>
62
+ */
63
+ getHex(): string;
64
+ /**
65
+ * <p>Sets the selected color to the specified hex color value.</p>
66
+ * @param value - <p>Hex color value.</p>
67
+ */
68
+ setHex(value: string): void;
69
+ /**
70
+ * <p>Renders the component</p>
71
+ */
72
+ render(): void;
73
+ /**
74
+ * <p>Handles the post render procedure.</p>
75
+ */
76
+ postRender(): void;
77
+ /**
78
+ * <p>Destroys the component.</p>
79
+ */
80
+ destroy(): void;
81
+ /**
82
+ * <p>Converts the rgb value to hsv.</p>
83
+ * @param r - <p>The red value 0-255.</p>
84
+ * @param g - <p>The green value 0-255.</p>
85
+ * @param b - <p>The blue value 0-255.</p>
86
+ * @returns <p>The hue saturation value.</p>
87
+ */
88
+ static rgbToHsv(r: number, g: number, b: number): Number[];
89
+ /**
90
+ * <p>Converts the hsv value to rgb.</p>
91
+ * @param h - <p>The hue value 0-1.</p>
92
+ * @param s - <p>The saturation value 0-1.</p>
93
+ * @param v - <p>The lightness value 0-1.</p>
94
+ * @returns <p>The rgb value.</p>
95
+ */
96
+ static hsvToRgb(h: number, s: number, v: number): Number[];
97
+ /**
98
+ * <p>Gets or sets the css class of the preview color box.</p>
99
+ */
100
+ cssClassPreview: string;
101
+ /**
102
+ * <p>Gets or sets the css class of the saturation palette.</p>
103
+ */
104
+ cssClassSaturation: string;
105
+ /**
106
+ * <p>Gets or sets the css class of the hue palette.</p>
107
+ */
108
+ cssClassHue: string;
109
+ /**
110
+ * <p>Gets or sets the css class of the input container.</p>
111
+ */
112
+ cssClassInputContainer: string;
113
+ /**
114
+ * <p>Gets or sets the css class of the saturation and hue picker.</p>
115
+ */
116
+ cssClassPicker: string;
117
+ /**
118
+ * <p>Gets or sets the css class of the hue-saturation-brightness(value) input container.</p>
119
+ */
120
+ cssClassHSB: string;
121
+ /**
122
+ * <p>Gets or sets the css class of the red-green-blue input container.</p>
123
+ */
124
+ cssClassRGB: string;
125
+ /**
126
+ * <p>Gets or sets the css class of the alpha input container.</p>
127
+ */
128
+ cssClassAlpha: string;
129
+ /**
130
+ * <p>Gets or sets the css class of the hex input container.</p>
131
+ */
132
+ cssClassHex: string;
133
+ /**
134
+ * <p>Gets or sets the css class appended to the confirm button.</p>
135
+ */
136
+ cssClassConfirmButton: string;
137
+ /**
138
+ * <p>Gets or sets the css class appended to the cancel button.</p>
139
+ */
140
+ cssClassCancelButton: string;
141
+ /**
142
+ * <p>Gets or sets the css class appended to the clear button.</p>
143
+ */
144
+ cssClassClearButton: string;
145
+ /**
146
+ * <p>Gets or sets the css class of the popup box.</p>
147
+ */
148
+ cssClassPopupBox: string;
149
+ /**
150
+ * <p>Gets or sets the text label of the confirm button.</p>
151
+ */
152
+ confirmButtonLabel: string;
153
+ /**
154
+ * <p>Gets or sets the text label of the cancel button.</p>
155
+ */
156
+ cancelButtonLabel: string;
157
+ /**
158
+ * <p>Gets or sets the text label of the clear button.</p>
159
+ */
160
+ clearButtonLabel: string;
161
+ /**
162
+ * <p>Gets or sets the color in the format Hue, Saturation, Brightness, Alpha.</p>
163
+ */
164
+ hsba: string | null;
165
+ /**
166
+ * <p>Gets or sets the color in the format Red, Green, Blue, Alpha.</p>
167
+ */
168
+ rgba: string | null;
169
+ /**
170
+ * <p>Gets or sets the color in the hexadecimal format.</p>
171
+ */
172
+ hex: string;
173
+ /**
174
+ * <p>Gets or sets a value indicating if the color picker is displayed within a popup with a color box as popup trigger.</p>
175
+ */
176
+ popupView: boolean;
177
+ /**
178
+ * <p>Gets or sets the clientid of the numeric box.</p>
179
+ */
180
+ numericBoxId: string | null;
181
+ /**
182
+ * <p>Gets or sets the clientid of the popup box.</p>
183
+ */
184
+ boxId: string | null;
185
+ /**
186
+ * <p>Gets or sets the id of the component from which the settings are cloned for the confirm button.</p>
187
+ */
188
+ confirmButtonId: string | null;
189
+ /**
190
+ * <p>Gets or sets the id of the component from which the settings are cloned for the cancel button.</p>
191
+ */
192
+ cancelButtonId: string | null;
193
+ /**
194
+ * <p>Gets or sets the id of the component from which the settings are cloned for the clear button.</p>
195
+ */
196
+ clearButtonId: string | null;
197
+ }
198
+ namespace ColorPicker
199
+ {
200
+ /**
201
+ * @property onChange - <p>Event which fires on a color change.</p>
202
+ * @property onConfirm - <p>Event which fires on a color change confirmation.</p>
203
+ */
204
+ class ColorPickerEvents extends componyx.UI.base.Events<componyx.UI.ColorPicker>
205
+ {
206
+ constructor();
207
+ /**
208
+ * <p>Event which fires on a color change.</p>
209
+ */
210
+ onChange: componyx.UI.base.Event<componyx.UI.ColorPicker, componyx.UI.ColorPicker.ColorPickerEventArgs>;
211
+ /**
212
+ * <p>Event which fires on a color change confirmation.</p>
213
+ */
214
+ onConfirm: componyx.UI.base.Event<componyx.UI.ColorPicker, componyx.UI.ColorPicker.ColorPickerEventArgs>;
215
+ }
216
+ /**
217
+ * <p>ColorPicker event arguments.</p>
218
+ */
219
+ type ColorPickerEventArgs = {
220
+ /** <p>The RGBA color value as [r, g, b, a].</p> */
221
+ rgba: number[];
222
+ };
223
+ }
224
+ }
225
+ }