@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.
- package/AppSkin/AppSkin.css +1268 -0
- package/AppSkin/AppSkin.js +2748 -0
- package/AppSkin/Themes/Default.css +241 -0
- package/Base/Base.js +3407 -0
- package/Base/ComponentIcons.css +66 -0
- package/Base/Font/ComponentIcons.woff +0 -0
- package/Base/Font/UI.woff +0 -0
- package/Base/Library.js +8432 -0
- package/Base/NavigationManager.js +462 -0
- package/Base/ResponsiveTemplates.js +371 -0
- package/Base/Sanitizer.js +288 -0
- package/Base/Themes/Default.css +255 -0
- package/Base/UI.css +618 -0
- package/Base/UIResourcePath.js +6 -0
- package/Bindary/Bindary.js +2011 -0
- package/Bindary/Modules/Connection.js +216 -0
- package/Bindary/Modules/Core.js +854 -0
- package/Bindary/Modules/DataUpdater.js +351 -0
- package/Bindary/Modules/ExpressionEngine.js +347 -0
- package/Bindary/Modules/ProxyManager.js +482 -0
- package/Bindary/Modules/Renderer.js +605 -0
- package/Bindary/Modules/Router.js +291 -0
- package/Bindary/Modules/Scroller.js +89 -0
- package/Bindary/Modules/Template.js +1273 -0
- package/BookmarkSpy/BookmarkSpy.js +430 -0
- package/Box/Box.css +36 -0
- package/Box/Box.js +1685 -0
- package/Button/Button.css +470 -0
- package/Button/Button.js +1398 -0
- package/Button/Themes/Default.css +200 -0
- package/Carousel/Carousel.css +273 -0
- package/Carousel/Carousel.js +607 -0
- package/ColorButton/ColorButton.css +39 -0
- package/ColorButton/ColorButton.js +336 -0
- package/ColorPicker/ColorPicker.css +359 -0
- package/ColorPicker/ColorPicker.js +972 -0
- package/ComboBox/ComboBox.css +357 -0
- package/ComboBox/ComboBox.js +2342 -0
- package/ComboBox/Themes/Default.css +23 -0
- package/DataPager/DataPager.css +72 -0
- package/DataPager/DataPager.js +674 -0
- package/DatePicker/DatePicker.css +227 -0
- package/DatePicker/DatePicker.js +1531 -0
- package/DatePicker/Themes/Default.css +26 -0
- package/Dialog/Dialog.css +106 -0
- package/Dialog/Dialog.js +572 -0
- package/Dialog/Themes/Default.css +10 -0
- package/Editor/Data/Emoji.json +8285 -0
- package/Editor/Data/Special.json +1042 -0
- package/Editor/Editor.css +1562 -0
- package/Editor/Editor.js +4058 -0
- package/Editor/Font/Editor.woff +0 -0
- package/Editor/Modules/ComponentFactory.js +565 -0
- package/Editor/Modules/ContentManager.js +748 -0
- package/Editor/Modules/DialogManager.js +1234 -0
- package/Editor/Modules/EventManager.js +458 -0
- package/Editor/Modules/Format.js +950 -0
- package/Editor/Modules/History.js +191 -0
- package/Editor/Modules/LayoutState.js +379 -0
- package/Editor/Modules/ListManager.js +296 -0
- package/Editor/Modules/MenuManager.js +388 -0
- package/Editor/Modules/NodeManager.js +681 -0
- package/Editor/Modules/ParagraphButtons.js +122 -0
- package/Editor/Modules/Resizer.js +176 -0
- package/Editor/Modules/SelectionRange.js +564 -0
- package/Editor/Modules/SourceViewBuilder.js +212 -0
- package/Editor/Modules/SymbolPicker.js +208 -0
- package/Editor/Modules/Table.js +2327 -0
- package/Editor/Modules/TableDialog.js +757 -0
- package/Editor/Modules/Toolbar.js +375 -0
- package/Editor/Modules/TooltipMenu.js +125 -0
- package/Editor/Modules/Utility.js +131 -0
- package/Editor/Themes/Default.css +204 -0
- package/FileUpload/FileUpload.css +156 -0
- package/FileUpload/FileUpload.js +898 -0
- package/FileUpload/Themes/Default.css +17 -0
- package/Form/Form.css +1934 -0
- package/Form/Form.js +4943 -0
- package/Form/Modules/ActionManager.js +368 -0
- package/Form/Modules/BuildPanelManager.js +319 -0
- package/Form/Modules/ComponentFactory.js +468 -0
- package/Form/Modules/ComponentPanel.js +265 -0
- package/Form/Modules/ConfigPanelManager.js +685 -0
- package/Form/Modules/DataObserver.js +717 -0
- package/Form/Modules/Databinder.js +602 -0
- package/Form/Modules/Draggable.js +756 -0
- package/Form/Modules/OptionsPanel.js +342 -0
- package/Form/Modules/Renderer.js +1889 -0
- package/Form/Modules/RuleEngine.js +585 -0
- package/Form/Modules/RulesPanel.js +1158 -0
- package/Form/Modules/Types.js +1709 -0
- package/Form/Modules/ValidationManager.js +194 -0
- package/Form/Themes/Default.css +216 -0
- package/FormField/FormField.css +468 -0
- package/FormField/FormField.js +576 -0
- package/FormField/Themes/Default.css +99 -0
- package/Grid/Grid.css +544 -0
- package/Grid/Grid.js +3761 -0
- package/Grid/Themes/Default.css +43 -0
- package/LICENSE +126 -0
- package/MaskedTextBox/MaskedTextBox.css +28 -0
- package/MaskedTextBox/MaskedTextBox.js +642 -0
- package/MaskedTextBox/Themes/Default.css +6 -0
- package/Menu/Menu.css +328 -0
- package/Menu/Menu.js +2386 -0
- package/Menu/Themes/Default.css +24 -0
- package/NumericBox/NumericBox.css +120 -0
- package/NumericBox/NumericBox.js +984 -0
- package/PanelBar/PanelBar.css +123 -0
- package/PanelBar/PanelBar.js +505 -0
- package/PanelBar/Themes/Default.css +51 -0
- package/PieChart/PieChart.css +95 -0
- package/PieChart/PieChart.js +820 -0
- package/PieChart/Themes/Default.css +9 -0
- package/README.md +178 -3
- package/Slider/Slider.css +348 -0
- package/Slider/Slider.js +1306 -0
- package/Slider/Themes/Default.css +44 -0
- package/TabStrip/TabStrip.css +52 -0
- package/TabStrip/TabStrip.js +362 -0
- package/TabStrip/Themes/Default.css +35 -0
- package/TimePicker/Themes/Default.css +30 -0
- package/TimePicker/TimePicker.css +253 -0
- package/TimePicker/TimePicker.js +1485 -0
- package/TooltipManager/Themes/Default.css +21 -0
- package/TooltipManager/TooltipManager.css +227 -0
- package/TooltipManager/TooltipManager.js +791 -0
- package/Validator/Validator.css +54 -0
- package/Validator/Validator.js +2508 -0
- package/componyx.html-data.json +619 -0
- package/index.js +27 -0
- package/package.json +43 -4
- package/types/AppSkin.d.ts +842 -0
- package/types/Base.d.ts +1034 -0
- package/types/Bindary.d.ts +1196 -0
- package/types/BookmarkSpy.d.ts +112 -0
- package/types/Box.d.ts +374 -0
- package/types/Button.d.ts +455 -0
- package/types/Carousel.d.ts +136 -0
- package/types/ColorButton.d.ts +120 -0
- package/types/ColorPicker.d.ts +225 -0
- package/types/ComboBox.d.ts +507 -0
- package/types/DataPager.d.ts +152 -0
- package/types/DatePicker.d.ts +354 -0
- package/types/Dialog.d.ts +160 -0
- package/types/Editor.d.ts +1289 -0
- package/types/FileUpload.d.ts +206 -0
- package/types/Form.d.ts +3078 -0
- package/types/FormField.d.ts +204 -0
- package/types/Grid.d.ts +911 -0
- package/types/Library.d.ts +1899 -0
- package/types/MaskedTextBox.d.ts +91 -0
- package/types/Menu.d.ts +577 -0
- package/types/NumericBox.d.ts +310 -0
- package/types/PanelBar.d.ts +223 -0
- package/types/PieChart.d.ts +224 -0
- package/types/ResponsiveTemplates.d.ts +108 -0
- package/types/Slider.d.ts +227 -0
- package/types/TabStrip.d.ts +185 -0
- package/types/TimePicker.d.ts +265 -0
- package/types/TooltipManager.d.ts +178 -0
- package/types/UI.d.ts +29 -0
- package/types/Validator.d.ts +653 -0
- package/types/index.d.ts +59 -0
- package/ui.css +11783 -0
- package/ui.js +79477 -0
- package/ui.min.css +138 -0
- package/ui.min.js +264 -0
- package/ui.min.js.map +1 -0
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
declare namespace componyx
|
|
2
|
+
{
|
|
3
|
+
namespace UI
|
|
4
|
+
{
|
|
5
|
+
interface NumericBox extends componyx.UI.base.methods { }
|
|
6
|
+
/**
|
|
7
|
+
* <p>NumericBox class.</p>
|
|
8
|
+
*/
|
|
9
|
+
class NumericBox extends componyx.UI.base.Component implements componyx.UI.base.methods
|
|
10
|
+
{
|
|
11
|
+
/**
|
|
12
|
+
* Creates a new NumericBox 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<NumericBox> | HTMLElement);
|
|
17
|
+
/**
|
|
18
|
+
* <p>NumericBox events</p>
|
|
19
|
+
*/
|
|
20
|
+
events: componyx.UI.NumericBox.NumericBoxEvents;
|
|
21
|
+
/**
|
|
22
|
+
* <p>Sets the placeholder text.</p>
|
|
23
|
+
* @param text - <p>The placeholder text.</p>
|
|
24
|
+
*/
|
|
25
|
+
setPlaceholder(text: string): void;
|
|
26
|
+
/**
|
|
27
|
+
* <p>Selects the text of the input box.</p>
|
|
28
|
+
*/
|
|
29
|
+
select(): void;
|
|
30
|
+
/**
|
|
31
|
+
* <p>Sets focus on the input element.</p>
|
|
32
|
+
*/
|
|
33
|
+
focus(): void;
|
|
34
|
+
/**
|
|
35
|
+
* <p>Gets the input element.</p>
|
|
36
|
+
*/
|
|
37
|
+
getInput(): HTMLElement;
|
|
38
|
+
/**
|
|
39
|
+
* <p>Gets the input value.</p>
|
|
40
|
+
* @returns <p>The value as formatted string.</p>
|
|
41
|
+
*/
|
|
42
|
+
getValue(): string;
|
|
43
|
+
/**
|
|
44
|
+
* <p>Gets the value.</p>
|
|
45
|
+
* @returns <p>The value as number.</p>
|
|
46
|
+
*/
|
|
47
|
+
getNumberValue(): number | null;
|
|
48
|
+
/**
|
|
49
|
+
* <p>Sets the input value.</p>
|
|
50
|
+
* @param value - <p>The value to set.</p>
|
|
51
|
+
* @param [fireChange = true] - <p>A value indicating if the change event is fired.</p>
|
|
52
|
+
*/
|
|
53
|
+
setValue(value: string, fireChange?: boolean): void;
|
|
54
|
+
/**
|
|
55
|
+
* <p>Resets the input to the initial value.</p>
|
|
56
|
+
* @param [fireChange = true] - <p>A value indicating if the change event is fired.</p>
|
|
57
|
+
*/
|
|
58
|
+
reset(fireChange?: boolean): void;
|
|
59
|
+
/**
|
|
60
|
+
* <p>Clears the input value.</p>
|
|
61
|
+
* @param [fireChange = true] - <p>A value indicating if the change event is fired.</p>
|
|
62
|
+
*/
|
|
63
|
+
clear(fireChange?: boolean): void;
|
|
64
|
+
/**
|
|
65
|
+
* <p>Increments the value with one step.</p>
|
|
66
|
+
*/
|
|
67
|
+
increment(): void;
|
|
68
|
+
/**
|
|
69
|
+
* <p>Decrements the value with one step.</p>
|
|
70
|
+
*/
|
|
71
|
+
decrement(): void;
|
|
72
|
+
/**
|
|
73
|
+
* <p>Renders the component</p>
|
|
74
|
+
*/
|
|
75
|
+
render(): void;
|
|
76
|
+
/**
|
|
77
|
+
* <p>Destroys the component.</p>
|
|
78
|
+
*/
|
|
79
|
+
destroy(): void;
|
|
80
|
+
/**
|
|
81
|
+
* <p>Gets or sets the css class of the numeric box when it is disabled.</p>
|
|
82
|
+
*/
|
|
83
|
+
cssClassDisabled: string | null;
|
|
84
|
+
/**
|
|
85
|
+
* <p>Gets or sets the css class of the numeric box when it is readonly.</p>
|
|
86
|
+
*/
|
|
87
|
+
cssClassReadOnly: string | null;
|
|
88
|
+
/**
|
|
89
|
+
* <p>Gets or sets the css class of the button holder.</p>
|
|
90
|
+
*/
|
|
91
|
+
cssClassButtonHolder: string | null;
|
|
92
|
+
/**
|
|
93
|
+
* <p>Gets or sets the css class of the buttons.</p>
|
|
94
|
+
*/
|
|
95
|
+
cssClassButton: string | null;
|
|
96
|
+
/**
|
|
97
|
+
* <p>Gets or sets the css class of the plus button.</p>
|
|
98
|
+
*/
|
|
99
|
+
cssClassPlus: string | null;
|
|
100
|
+
/**
|
|
101
|
+
* <p>Gets or sets the css class of the minus button.</p>
|
|
102
|
+
*/
|
|
103
|
+
cssClassMinus: string | null;
|
|
104
|
+
/**
|
|
105
|
+
* <p>Gets or sets if the numeric box is disabled.</p>
|
|
106
|
+
*/
|
|
107
|
+
disabled: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* <p>Gets or sets if the numeric box is readonly.</p>
|
|
110
|
+
*/
|
|
111
|
+
readOnly: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* <p>Gets or sets if keyboard navigation is allowed.</p>
|
|
114
|
+
*/
|
|
115
|
+
keyboardNavigation: boolean;
|
|
116
|
+
/**
|
|
117
|
+
* <p>Gets or sets if the plus and minus buttons are visible.</p>
|
|
118
|
+
*/
|
|
119
|
+
showButtons: boolean;
|
|
120
|
+
/**
|
|
121
|
+
* <p>Gets or sets a value indicating if the buttons are displayed vertically instead of horizontally.</p>
|
|
122
|
+
*/
|
|
123
|
+
verticalButtons: boolean;
|
|
124
|
+
/**
|
|
125
|
+
* <p>Gets or sets a value indicating if the buttons are focusable.</p>
|
|
126
|
+
*/
|
|
127
|
+
focusableButtons: boolean;
|
|
128
|
+
/**
|
|
129
|
+
* <p>Gets or sets the minimium allowed value.</p>
|
|
130
|
+
*/
|
|
131
|
+
minValue: number | null;
|
|
132
|
+
/**
|
|
133
|
+
* <p>Gets or sets the maximum allowed value.</p>
|
|
134
|
+
*/
|
|
135
|
+
maxValue: number | null;
|
|
136
|
+
/**
|
|
137
|
+
* <p>Gets or sets the width of the component in the specified CSS unit (e.g., px, %, or ch).</p>
|
|
138
|
+
*/
|
|
139
|
+
width: string;
|
|
140
|
+
/**
|
|
141
|
+
* <p>Gets or sets the incremental value when using plus or minus.</p>
|
|
142
|
+
*/
|
|
143
|
+
incrementalValue: number;
|
|
144
|
+
/**
|
|
145
|
+
* <p>Gets or sets the placeholder which is visible when the input box has no value.</p>
|
|
146
|
+
*/
|
|
147
|
+
placeholder: string | null;
|
|
148
|
+
/**
|
|
149
|
+
* <p>Gets or sets the decimal separator. Default: '.'</p>
|
|
150
|
+
*/
|
|
151
|
+
decimalSeparator: string;
|
|
152
|
+
/**
|
|
153
|
+
* <p>Gets or sets the group separator.</p>
|
|
154
|
+
*/
|
|
155
|
+
groupSeparator?: string | null;
|
|
156
|
+
/**
|
|
157
|
+
* <p>Gets or sets the amount of decimal places.</p>
|
|
158
|
+
*/
|
|
159
|
+
precision: number;
|
|
160
|
+
/**
|
|
161
|
+
* <p>Gets or sets the decimal rounding type that should be applied.</p>
|
|
162
|
+
*/
|
|
163
|
+
rounding: componyx.UI.NumericBox.RoundingOption;
|
|
164
|
+
/**
|
|
165
|
+
* <p>Gets or sets if the input value can hold leading zeros.</p>
|
|
166
|
+
*/
|
|
167
|
+
leadingZeros: boolean;
|
|
168
|
+
/**
|
|
169
|
+
* <p>Gets or sets if the input value can hold trailing zeros at the decimal side.</p>
|
|
170
|
+
*/
|
|
171
|
+
trailingZeros: boolean;
|
|
172
|
+
/**
|
|
173
|
+
* <p>Gets or sets the value to right-align the digits by padding this value to the left.</p>
|
|
174
|
+
*/
|
|
175
|
+
digitPadLeftValue: string | null;
|
|
176
|
+
/**
|
|
177
|
+
* <p>Gets or sets if the input value is selected when the input gets focus.</p>
|
|
178
|
+
*/
|
|
179
|
+
selectOnFocus: boolean;
|
|
180
|
+
/**
|
|
181
|
+
* <p>Gets or sets the id of the focus group to which this control belongs.</p>
|
|
182
|
+
*/
|
|
183
|
+
focusGroupId: string | null;
|
|
184
|
+
/**
|
|
185
|
+
* <p>Gets or sets the value which indicates whether this control should get focus when there is no control focused in the focus group.</p>
|
|
186
|
+
*/
|
|
187
|
+
focusGroupFirst: boolean;
|
|
188
|
+
/**
|
|
189
|
+
* <p>Gets or sets the input field name of the control.</p>
|
|
190
|
+
*/
|
|
191
|
+
name: string;
|
|
192
|
+
/**
|
|
193
|
+
* <p>Gets or sets the initial value of the numeric box and holds the selected value on a postback.</p>
|
|
194
|
+
*/
|
|
195
|
+
value: number | null;
|
|
196
|
+
/**
|
|
197
|
+
* <p>Gets or sets the id of the base button.</p>
|
|
198
|
+
*/
|
|
199
|
+
buttonId: string | null;
|
|
200
|
+
/**
|
|
201
|
+
* <p>Gets or sets the tooltip manager used to display tooltips.</p>
|
|
202
|
+
*/
|
|
203
|
+
tooltipManagerId: string | null;
|
|
204
|
+
/**
|
|
205
|
+
* <p>Gets or sets the id of the tooltip to show.</p>
|
|
206
|
+
*/
|
|
207
|
+
tooltipId: string | null;
|
|
208
|
+
/**
|
|
209
|
+
* <p>Gets or sets the clientid of the HTML input.</p>
|
|
210
|
+
*/
|
|
211
|
+
inputId: string | null;
|
|
212
|
+
}
|
|
213
|
+
namespace NumericBox
|
|
214
|
+
{
|
|
215
|
+
/**
|
|
216
|
+
* @property onFocus - <p>Event which fires when the component is focused.</p>
|
|
217
|
+
* @property onBlur - <p>Event which fires when the component is blurred.</p>
|
|
218
|
+
* @property onInputFocus - <p>Event which fires when the input is focused.</p>
|
|
219
|
+
* @property onInputBlur - <p>Event which fires when the input is blurred.</p>
|
|
220
|
+
* @property onChange - <p>Event which fires when the input changes.</p>
|
|
221
|
+
* @property onChanged - <p>Event which fires when the input is changed (onblur or onpointerup).</p>
|
|
222
|
+
* @property onIncrement - <p>Event which fires when the value is incremented.</p>
|
|
223
|
+
* @property onDecrement - <p>Event which fires when the value is decremented.</p>
|
|
224
|
+
*/
|
|
225
|
+
class NumericBoxEvents extends componyx.UI.base.Events<componyx.UI.NumericBox>
|
|
226
|
+
{
|
|
227
|
+
constructor();
|
|
228
|
+
/**
|
|
229
|
+
* <p>Event which fires when the component is focused.</p>
|
|
230
|
+
*/
|
|
231
|
+
onFocus: componyx.UI.base.Event<componyx.UI.NumericBox, undefined>;
|
|
232
|
+
/**
|
|
233
|
+
* <p>Event which fires when the component is blurred.</p>
|
|
234
|
+
*/
|
|
235
|
+
onBlur: componyx.UI.base.Event<componyx.UI.NumericBox, undefined>;
|
|
236
|
+
/**
|
|
237
|
+
* <p>Event which fires when the input is focused.</p>
|
|
238
|
+
*/
|
|
239
|
+
onInputFocus: componyx.UI.base.Event<componyx.UI.NumericBox, componyx.UI.NumericBox.InputEventArgs>;
|
|
240
|
+
/**
|
|
241
|
+
* <p>Event which fires when the input is blurred.</p>
|
|
242
|
+
*/
|
|
243
|
+
onInputBlur: componyx.UI.base.Event<componyx.UI.NumericBox, componyx.UI.NumericBox.InputEventArgs>;
|
|
244
|
+
/**
|
|
245
|
+
* <p>Event which fires when the input changes.</p>
|
|
246
|
+
*/
|
|
247
|
+
onChange: componyx.UI.base.Event<componyx.UI.NumericBox, componyx.UI.NumericBox.ChangeEventArgs>;
|
|
248
|
+
/**
|
|
249
|
+
* <p>Event which fires when the input is changed (onblur or onpointerup).</p>
|
|
250
|
+
*/
|
|
251
|
+
onChanged: componyx.UI.base.Event<componyx.UI.NumericBox, componyx.UI.NumericBox.ChangeEventArgs>;
|
|
252
|
+
/**
|
|
253
|
+
* <p>Event which fires when the value is incremented.</p>
|
|
254
|
+
*/
|
|
255
|
+
onIncrement: componyx.UI.base.Event<componyx.UI.NumericBox, componyx.UI.NumericBox.StepEventArgs>;
|
|
256
|
+
/**
|
|
257
|
+
* <p>Event which fires when the value is decremented.</p>
|
|
258
|
+
*/
|
|
259
|
+
onDecrement: componyx.UI.base.Event<componyx.UI.NumericBox, componyx.UI.NumericBox.StepEventArgs>;
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* <p>NumericBox input focus/blur event arguments.</p>
|
|
263
|
+
*/
|
|
264
|
+
type InputEventArgs = {
|
|
265
|
+
/** <p>The original event object.</p> */
|
|
266
|
+
event: Event;
|
|
267
|
+
};
|
|
268
|
+
/**
|
|
269
|
+
* <p>NumericBox change event arguments.</p>
|
|
270
|
+
*/
|
|
271
|
+
type ChangeEventArgs = {
|
|
272
|
+
/** <p>The input value without group separators and with '.' as decimal separator.</p> */
|
|
273
|
+
value: string;
|
|
274
|
+
/** <p>The original event object.</p> */
|
|
275
|
+
event: Event;
|
|
276
|
+
/** <p>A value indicating if the change was caused by an increment or decrement (onChange only).</p> */
|
|
277
|
+
incremental?: boolean;
|
|
278
|
+
};
|
|
279
|
+
/**
|
|
280
|
+
* <p>NumericBox increment/decrement event arguments.</p>
|
|
281
|
+
*/
|
|
282
|
+
type StepEventArgs = {
|
|
283
|
+
/** <p>The new value without group separators and with '.' as decimal separator.</p> */
|
|
284
|
+
value: string;
|
|
285
|
+
/** <p>The previous value without group separators and with '.' as decimal separator.</p> */
|
|
286
|
+
previousValue: string;
|
|
287
|
+
/** <p>The original event object.</p> */
|
|
288
|
+
event: Event;
|
|
289
|
+
};
|
|
290
|
+
/**
|
|
291
|
+
* <p>RoundingOption</p>
|
|
292
|
+
*/
|
|
293
|
+
enum RoundingOption
|
|
294
|
+
{
|
|
295
|
+
NONE = 0,
|
|
296
|
+
ROUND = 1,
|
|
297
|
+
FLOOR = 2,
|
|
298
|
+
CEIL = 3
|
|
299
|
+
}
|
|
300
|
+
namespace RoundingOption
|
|
301
|
+
{
|
|
302
|
+
/**
|
|
303
|
+
* <p>Gets the lowercase name of the option value.</p>
|
|
304
|
+
* @param value - <p>The enum value.</p>
|
|
305
|
+
*/
|
|
306
|
+
function getName(value: componyx.UI.NumericBox.RoundingOption): string;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
}
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
declare namespace componyx
|
|
2
|
+
{
|
|
3
|
+
namespace UI
|
|
4
|
+
{
|
|
5
|
+
interface PanelBar extends Omit<componyx.UI.base.methods, 'render' | 'destroy' | 'cloneProperties' | 'postRender'> { }
|
|
6
|
+
/**
|
|
7
|
+
* <p>PanelBar class.</p>
|
|
8
|
+
*/
|
|
9
|
+
class PanelBar extends componyx.UI.base.WebComponent
|
|
10
|
+
{
|
|
11
|
+
/**
|
|
12
|
+
* Creates a new PanelBar 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<PanelBar> | HTMLElement);
|
|
17
|
+
/**
|
|
18
|
+
* <p>Internal CSS class name constants.
|
|
19
|
+
* You can override any of these classes on the Component instance by defining a property named
|
|
20
|
+
* <code>cssClass<Key></code> where <Key> is the PascalCase key from this object.
|
|
21
|
+
* Example:
|
|
22
|
+
* 'PANEL' -> 'cssClassPanel'
|
|
23
|
+
* Be cautious: overriding these classes without including the default names may break styling and functionality.</p>
|
|
24
|
+
*/
|
|
25
|
+
readonly classOption: Readonly<{
|
|
26
|
+
PANEL: 'panel';
|
|
27
|
+
ICON: 'icon';
|
|
28
|
+
TITLE: 'title';
|
|
29
|
+
CONTENT: 'content';
|
|
30
|
+
EXPANDED: 'expanded';
|
|
31
|
+
DISABLED: 'disabled';
|
|
32
|
+
}>;
|
|
33
|
+
/**
|
|
34
|
+
* <p>Gets or sets a value indicating if a panel is expanded on the pointer enter event.</p>
|
|
35
|
+
*/
|
|
36
|
+
expandOnPointerEnter: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* <p>Gets or sets a value indicating if one panel or multiple panels can be expanded simultaneously.</p>
|
|
39
|
+
*/
|
|
40
|
+
multiExpand: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* <p>Gets or sets the panels to render inside the panel-bar.</p>
|
|
43
|
+
*/
|
|
44
|
+
panels: PanelBar.Panel[];
|
|
45
|
+
/**
|
|
46
|
+
* <p>PanelBar events</p>
|
|
47
|
+
*/
|
|
48
|
+
events: componyx.UI.PanelBar.PanelBarEvents;
|
|
49
|
+
/**
|
|
50
|
+
* <p>Gets the Panel class instance by the specified panel element.</p>
|
|
51
|
+
* @param element - <p>The panel element.</p>
|
|
52
|
+
*/
|
|
53
|
+
getPanelByElement(element: HTMLElement): PanelBar.Panel;
|
|
54
|
+
/**
|
|
55
|
+
* <p>Gets the Panel class instance by the specified id.</p>
|
|
56
|
+
* @param id - <p>The panel identifier.</p>
|
|
57
|
+
*/
|
|
58
|
+
getPanelById(id: string): PanelBar.Panel;
|
|
59
|
+
/**
|
|
60
|
+
* <p>Updates the title of the specified panel.</p>
|
|
61
|
+
* @param panel - <p>The Panel instance, element, or identifier.</p>
|
|
62
|
+
* @param title - <p>The title presented in the panel header.</p>
|
|
63
|
+
*/
|
|
64
|
+
updatePanelTitle(panel: componyx.UI.PanelBar.Panel | HTMLElement | string, title: HTMLElement | DocumentFragment | string): void;
|
|
65
|
+
/**
|
|
66
|
+
* <p>Shows the specified panel.</p>
|
|
67
|
+
* @param panel - <p>The Panel instance, element, or identifier.</p>
|
|
68
|
+
*/
|
|
69
|
+
showPanel(panel: componyx.UI.PanelBar.Panel | HTMLElement | string): void;
|
|
70
|
+
/**
|
|
71
|
+
* <p>Hides the specified panel.</p>
|
|
72
|
+
* @param panel - <p>The Panel instance, element, or identifier.</p>
|
|
73
|
+
*/
|
|
74
|
+
hidePanel(panel: componyx.UI.PanelBar.Panel | HTMLElement | string): void;
|
|
75
|
+
/**
|
|
76
|
+
* <p>Toggles the expand/collapse state of the specified panel element.
|
|
77
|
+
* If multiExpand is false, collapses all panels before expanding the selected one.</p>
|
|
78
|
+
* @param panel - <p>The Panel instance, element, or identifier.</p>
|
|
79
|
+
*/
|
|
80
|
+
toggleExpandPanel(panel: componyx.UI.PanelBar.Panel | HTMLElement | string): void;
|
|
81
|
+
/**
|
|
82
|
+
* <p>Expands the specified panel element by adding the expand CSS class.
|
|
83
|
+
* Fires an event indicating the panel has expanded.</p>
|
|
84
|
+
* @param panel - <p>The Panel instance, element, or identifier.</p>
|
|
85
|
+
* @param instant - <p>A value indicating if the default CSS animation should be skipped.</p>
|
|
86
|
+
*/
|
|
87
|
+
expandPanel(panel: componyx.UI.PanelBar.Panel | HTMLElement | string, instant: boolean): void;
|
|
88
|
+
/**
|
|
89
|
+
* <p>Collapses the specified panel element by removing the expand CSS class.
|
|
90
|
+
* Fires an event indicating the panel has collapsed.</p>
|
|
91
|
+
* @param panel - <p>The Panel instance, element, or identifier.</p>
|
|
92
|
+
* @param instant - <p>A value indicating if the default CSS animation should be skipped.</p>
|
|
93
|
+
*/
|
|
94
|
+
collapsePanel(panel: componyx.UI.PanelBar.Panel | HTMLElement | string, instant: boolean): void;
|
|
95
|
+
/**
|
|
96
|
+
* <p>Disables the specified panel.</p>
|
|
97
|
+
* @param panel - <p>The Panel instance, element, or identifier.</p>
|
|
98
|
+
*/
|
|
99
|
+
disablePanel(panel: componyx.UI.PanelBar.Panel | HTMLElement | string): void;
|
|
100
|
+
/**
|
|
101
|
+
* <p>Enables the specified panel.</p>
|
|
102
|
+
* @param panel - <p>The Panel instance, element, or identifier.</p>
|
|
103
|
+
*/
|
|
104
|
+
enablePanel(panel: componyx.UI.PanelBar.Panel | HTMLElement | string): void;
|
|
105
|
+
/**
|
|
106
|
+
* <p>Collapses all panels by removing the expand CSS class from all expanded panels.</p>
|
|
107
|
+
* @param instant - <p>A value indicating if the default CSS animation should be skipped.</p>
|
|
108
|
+
*/
|
|
109
|
+
collapseAllPanels(instant: boolean): void;
|
|
110
|
+
/**
|
|
111
|
+
* <p>Enables all panels.</p>
|
|
112
|
+
*/
|
|
113
|
+
enableAllPanels(): void;
|
|
114
|
+
/**
|
|
115
|
+
* <p>Disables all panels.</p>
|
|
116
|
+
*/
|
|
117
|
+
disableAllPanels(): void;
|
|
118
|
+
/**
|
|
119
|
+
* <p>Shows all panels.</p>
|
|
120
|
+
*/
|
|
121
|
+
showAllPanels(): void;
|
|
122
|
+
/**
|
|
123
|
+
* <p>Hides all panels.</p>
|
|
124
|
+
*/
|
|
125
|
+
hideAllPanels(): void;
|
|
126
|
+
/**
|
|
127
|
+
* <p>Renders the component.</p>
|
|
128
|
+
*/
|
|
129
|
+
render(): void;
|
|
130
|
+
}
|
|
131
|
+
namespace PanelBar
|
|
132
|
+
{
|
|
133
|
+
/**
|
|
134
|
+
* @property onPanelExpand - <p>Fires when a panel expands.</p>
|
|
135
|
+
* @property onPanelCollapse - <p>Fires when a panel collapses.</p>
|
|
136
|
+
*/
|
|
137
|
+
class PanelBarEvents extends componyx.UI.base.Events<componyx.UI.PanelBar>
|
|
138
|
+
{
|
|
139
|
+
constructor();
|
|
140
|
+
/**
|
|
141
|
+
* <p>Fires when a panel expands.</p>
|
|
142
|
+
*/
|
|
143
|
+
onPanelExpand: componyx.UI.base.Event<componyx.UI.PanelBar>;
|
|
144
|
+
/**
|
|
145
|
+
* <p>Fires when a panel collapses.</p>
|
|
146
|
+
*/
|
|
147
|
+
onPanelCollapse: componyx.UI.base.Event<componyx.UI.PanelBar>;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* <p>The Panel class.</p>
|
|
151
|
+
* @property [id] - <p>Gets or sets the identifier of the panel.</p>
|
|
152
|
+
* @property [expanded] - <p>Gets or sets a value indicating if this panel is expanded.</p>
|
|
153
|
+
* @property [hasIcon] - <p>Gets or sets a value indicating if there is an icon in the panel header.</p>
|
|
154
|
+
* @property [cssClass] - <p>Gets or sets the css class of the panel. This class is combined with the default class set on the PanelBar component.</p>
|
|
155
|
+
* @property [cssClassIcon] - <p>Gets or sets the css class of the panel header icon. This class is combined with the default icon class set on the PanelBar component.</p>
|
|
156
|
+
* @property [style] - <p>Gets or sets the css style of the panel.</p>
|
|
157
|
+
* @property [maxHeight] - <p>Gets or sets the maximum height of the panel in the desired CSS units.</p>
|
|
158
|
+
* @property [minHeight] - <p>Gets or sets the minimum height of the panel in the desired CSS units.</p>
|
|
159
|
+
* @property title - <p>Gets or sets the title presented in the panel header.</p>
|
|
160
|
+
* @property content - <p>Gets or sets the content of the panel.</p>
|
|
161
|
+
* @property element - <p>Gets the rendered panel element.</p>
|
|
162
|
+
* @property contentElement - <p>Gets the rendered panel content element.</p>
|
|
163
|
+
* @param properties - <p>The properties used to initialize the object.</p>
|
|
164
|
+
*/
|
|
165
|
+
class Panel
|
|
166
|
+
{
|
|
167
|
+
constructor(properties: any);
|
|
168
|
+
/**
|
|
169
|
+
* <p>Gets or sets the identifier of the panel.</p>
|
|
170
|
+
*/
|
|
171
|
+
id?: string;
|
|
172
|
+
/**
|
|
173
|
+
* <p>Gets or sets a value indicating if this panel is expanded.</p>
|
|
174
|
+
*/
|
|
175
|
+
expanded?: boolean;
|
|
176
|
+
/**
|
|
177
|
+
* <p>Gets or sets a value indicating if there is an icon in the panel header.</p>
|
|
178
|
+
*/
|
|
179
|
+
hasIcon?: boolean;
|
|
180
|
+
/**
|
|
181
|
+
* <p>Gets or sets the css class of the panel. This class is combined with the default class set on the PanelBar component.</p>
|
|
182
|
+
*/
|
|
183
|
+
cssClass?: string;
|
|
184
|
+
/**
|
|
185
|
+
* <p>Gets or sets the css class of the panel header icon. This class is combined with the default icon class set on the PanelBar component.</p>
|
|
186
|
+
*/
|
|
187
|
+
cssClassIcon?: string;
|
|
188
|
+
/**
|
|
189
|
+
* <p>Gets or sets the css style of the panel.</p>
|
|
190
|
+
*/
|
|
191
|
+
style?: string;
|
|
192
|
+
/**
|
|
193
|
+
* <p>Gets or sets the minimum height of the panel in the desired CSS units.</p>
|
|
194
|
+
*/
|
|
195
|
+
minHeight?: string;
|
|
196
|
+
/**
|
|
197
|
+
* <p>Gets or sets the maximum height of the panel in the desired CSS units.</p>
|
|
198
|
+
*/
|
|
199
|
+
maxHeight?: string;
|
|
200
|
+
/**
|
|
201
|
+
* <p>Gets or sets the id of the template used for the panel content.</p>
|
|
202
|
+
*/
|
|
203
|
+
templateId?: string;
|
|
204
|
+
/**
|
|
205
|
+
* <p>Gets or sets the title presented in the panel header.</p>
|
|
206
|
+
*/
|
|
207
|
+
title: HTMLElement | DocumentFragment | string;
|
|
208
|
+
/**
|
|
209
|
+
* <p>Gets or sets the content of the panel.</p>
|
|
210
|
+
*/
|
|
211
|
+
content: HTMLElement | DocumentFragment | string;
|
|
212
|
+
/**
|
|
213
|
+
* <p>Gets the rendered panel element.</p>
|
|
214
|
+
*/
|
|
215
|
+
element: HTMLElement;
|
|
216
|
+
/**
|
|
217
|
+
* <p>Gets the rendered panel content element.</p>
|
|
218
|
+
*/
|
|
219
|
+
contentElement: HTMLElement;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|