@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,507 @@
|
|
|
1
|
+
declare namespace componyx
|
|
2
|
+
{
|
|
3
|
+
namespace UI
|
|
4
|
+
{
|
|
5
|
+
interface ComboBox extends componyx.UI.base.methods { }
|
|
6
|
+
/**
|
|
7
|
+
* <p>ComboBox class.</p>
|
|
8
|
+
*/
|
|
9
|
+
class ComboBox extends componyx.UI.base.Component implements componyx.UI.base.methods
|
|
10
|
+
{
|
|
11
|
+
/**
|
|
12
|
+
* Creates a new ComboBox 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<ComboBox> | HTMLElement);
|
|
17
|
+
ajax: componyx.UI.base.Component['ajax'] & {
|
|
18
|
+
/**
|
|
19
|
+
* <p>AJAX method used to load items on demand.</p>
|
|
20
|
+
*/
|
|
21
|
+
load: componyx.UI.base.AjaxMethod;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* <p>ComboBox events</p>
|
|
25
|
+
*/
|
|
26
|
+
events: componyx.UI.ComboBox.ComboBoxEvents;
|
|
27
|
+
/**
|
|
28
|
+
* <p>Sets the header template.</p>
|
|
29
|
+
* @param content - <p>HTML string or element node as content. Pass null or empty string to remove the existing template.</p>
|
|
30
|
+
*/
|
|
31
|
+
setHeaderTemplate(content: HTMLElement | HTMLElement[] | DocumentFragment | string): void;
|
|
32
|
+
/**
|
|
33
|
+
* <p>Sets the footer template.</p>
|
|
34
|
+
* @param content - <p>HTML string or element node as content. Pass null or empty string to remove the existing template.</p>
|
|
35
|
+
*/
|
|
36
|
+
setFooterTemplate(content: HTMLElement | HTMLElement[] | DocumentFragment | string): void;
|
|
37
|
+
/**
|
|
38
|
+
* <p>Sets the select all checkbox template. The template supports the below listed interpolations.</p>
|
|
39
|
+
* <ul>
|
|
40
|
+
* <li>{checkBox} This value will be replaced with the checkbox element to select all items.</li>
|
|
41
|
+
* </ul>
|
|
42
|
+
* @param content - <p>HTML string or element node as content. Pass null or empty string to remove the existing template.</p>
|
|
43
|
+
*/
|
|
44
|
+
setSelectAllTemplate(content: HTMLElement | HTMLElement[] | DocumentFragment | string): void;
|
|
45
|
+
/**
|
|
46
|
+
* <p>Sets the multiselect input template. The template supports the below listed interpolations. Default value: {count} items selected</p>
|
|
47
|
+
* <ul>
|
|
48
|
+
* <li>{count} This value will be replaced with the selected item count.</li>
|
|
49
|
+
* </ul>
|
|
50
|
+
* @param content - <p>HTML string or element node as content. Pass null or empty string to remove the existing template.</p>
|
|
51
|
+
*/
|
|
52
|
+
setMultiSelectInputTemplate(content: HTMLElement | HTMLElement[] | DocumentFragment | string): void;
|
|
53
|
+
/**
|
|
54
|
+
* <p>Sets the preloader template.</p>
|
|
55
|
+
* @param content - <p>HTML string or element node as content. Pass null or empty string to remove the existing template.</p>
|
|
56
|
+
*/
|
|
57
|
+
setPreloaderTemplate(content: HTMLElement | HTMLElement[] | DocumentFragment | string): void;
|
|
58
|
+
/**
|
|
59
|
+
* <p>Sets the no result template.</p>
|
|
60
|
+
* @param content - <p>Text string. Pass null or empty string to remove the existing template.</p>
|
|
61
|
+
*/
|
|
62
|
+
setNoResultTemplate(content: HTMLElement | HTMLElement[] | DocumentFragment | string): void;
|
|
63
|
+
/**
|
|
64
|
+
* <p>Sets the multi-select item tag template. The template supports all data-item interpolations (view Base method comment). Default value: {text}.</p>
|
|
65
|
+
* @param content - <p>HTML string or element node as content. Pass null or empty string to remove the existing template.</p>
|
|
66
|
+
*/
|
|
67
|
+
setItemTagTemplate(content: HTMLElement | HTMLElement[] | DocumentFragment | string): void;
|
|
68
|
+
/**
|
|
69
|
+
* <p>Sets the placeholder text.</p>
|
|
70
|
+
* @param text - <p>The placeholder text.</p>
|
|
71
|
+
*/
|
|
72
|
+
setPlaceholder(text: string): void;
|
|
73
|
+
/**
|
|
74
|
+
* <p>Selects/deselects the item with the specified id.</p>
|
|
75
|
+
* @param id - <p>The item identifier.</p>
|
|
76
|
+
*/
|
|
77
|
+
toggleSelectItem(id: string): void;
|
|
78
|
+
/**
|
|
79
|
+
* <p>Selects the items with the specified id.</p>
|
|
80
|
+
* @param ids - <p>The list of item ids.</p>
|
|
81
|
+
*/
|
|
82
|
+
selectItems(ids: any[]): void;
|
|
83
|
+
/**
|
|
84
|
+
* <p>Deselects the items with the specified id.</p>
|
|
85
|
+
* @param ids - <p>The list of item ids.</p>
|
|
86
|
+
*/
|
|
87
|
+
deselectItems(ids: any[]): void;
|
|
88
|
+
/**
|
|
89
|
+
* <p>Selects the item with the specified id.</p>
|
|
90
|
+
* @param id - <p>The item identifier.</p>
|
|
91
|
+
*/
|
|
92
|
+
selectItem(id: string): void;
|
|
93
|
+
/**
|
|
94
|
+
* <p>Deselects the item with the specified id.</p>
|
|
95
|
+
* @param id - <p>The item identifier.</p>
|
|
96
|
+
*/
|
|
97
|
+
deselectItem(id: string): void;
|
|
98
|
+
/**
|
|
99
|
+
* <p>Enables the item with the specified id.</p>
|
|
100
|
+
* @param id - <p>The item identifier.</p>
|
|
101
|
+
*/
|
|
102
|
+
enableItem(id: string): void;
|
|
103
|
+
/**
|
|
104
|
+
* <p>Disables the item with the specified id.</p>
|
|
105
|
+
* @param id - <p>The item identifier.</p>
|
|
106
|
+
*/
|
|
107
|
+
disableItem(id: string): void;
|
|
108
|
+
/**
|
|
109
|
+
* <p>Gets the list-item element for the specified item id.</p>
|
|
110
|
+
* @param id - <p>The item identifier.</p>
|
|
111
|
+
* @returns <p>The list item element.</p>
|
|
112
|
+
*/
|
|
113
|
+
getItemElement(id: string): HTMLElement;
|
|
114
|
+
/**
|
|
115
|
+
* <p>Gets the box component which serves as item list container.</p>
|
|
116
|
+
* @returns <p>The Box component.</p>
|
|
117
|
+
*/
|
|
118
|
+
getListBox(): componyx.UI.Box;
|
|
119
|
+
/**
|
|
120
|
+
* <p>Shows the listbox.</p>
|
|
121
|
+
*/
|
|
122
|
+
showListBox(): void;
|
|
123
|
+
/**
|
|
124
|
+
* <p>Hides the listbox.</p>
|
|
125
|
+
*/
|
|
126
|
+
hideListBox(): void;
|
|
127
|
+
/**
|
|
128
|
+
* <p>Gets the selected item.</p>
|
|
129
|
+
* @returns <p>The selected item.</p>
|
|
130
|
+
*/
|
|
131
|
+
getSelectedItem(): componyx.UI.ComboBox.Item;
|
|
132
|
+
/**
|
|
133
|
+
* <p>Gets the selected items in a multiselect combobox.</p>
|
|
134
|
+
* @returns <p>The selected items.</p>
|
|
135
|
+
*/
|
|
136
|
+
getSelectedItems(): componyx.UI.ComboBox.Item[];
|
|
137
|
+
/**
|
|
138
|
+
* <p>Gets the selected value.</p>
|
|
139
|
+
* @returns <p>The selected value;</p>
|
|
140
|
+
*/
|
|
141
|
+
getValue(): string;
|
|
142
|
+
/**
|
|
143
|
+
* <p>Clears the input value and the selected item(s).</p>
|
|
144
|
+
*/
|
|
145
|
+
clear(): void;
|
|
146
|
+
/**
|
|
147
|
+
* <p>Clears the selected item(s).</p>
|
|
148
|
+
*/
|
|
149
|
+
clearSelection(): void;
|
|
150
|
+
/**
|
|
151
|
+
* <p>Clears the input.</p>
|
|
152
|
+
*/
|
|
153
|
+
clearInput(): void;
|
|
154
|
+
/**
|
|
155
|
+
* <p>Clears the item list.</p>
|
|
156
|
+
*/
|
|
157
|
+
clearList(): void;
|
|
158
|
+
/**
|
|
159
|
+
* <p>Gets the input element.</p>
|
|
160
|
+
* @returns <p>The input element.</p>
|
|
161
|
+
*/
|
|
162
|
+
getInput(): HTMLElement;
|
|
163
|
+
/**
|
|
164
|
+
* <p>Disables the combo-box</p>
|
|
165
|
+
*/
|
|
166
|
+
disable(): void;
|
|
167
|
+
/**
|
|
168
|
+
* <p>Enables the combo-box</p>
|
|
169
|
+
*/
|
|
170
|
+
enable(): void;
|
|
171
|
+
/**
|
|
172
|
+
* <p>Sets the input to the specified value. With multi-select enabled, a comma separated list of item values can be specified.</p>
|
|
173
|
+
* @param value - <p>The value(s) to set.</p>
|
|
174
|
+
* @param [focus] - <p>A value indicating if the input should get focus.</p>
|
|
175
|
+
*/
|
|
176
|
+
setValue(value: string | String[], focus?: boolean): void;
|
|
177
|
+
/**
|
|
178
|
+
* <p>Sets the focus on the input element.</p>
|
|
179
|
+
*/
|
|
180
|
+
focus(): void;
|
|
181
|
+
/**
|
|
182
|
+
* <p>Triggers a data load.</p>
|
|
183
|
+
* @param [clear] - <p>Defines if the current selection and input value should be cleared.</p>
|
|
184
|
+
* @param [pageIndex] - <p>Defines which page index to load.</p>
|
|
185
|
+
* @param [showListBox = true] - <p>Defines if the list box is shown.</p>
|
|
186
|
+
*/
|
|
187
|
+
load(clear?: boolean, pageIndex?: number, showListBox?: boolean): void;
|
|
188
|
+
/**
|
|
189
|
+
* <p>Renders the component.</p>
|
|
190
|
+
*/
|
|
191
|
+
render(): void;
|
|
192
|
+
/**
|
|
193
|
+
* <p>Destroys the component.</p>
|
|
194
|
+
*/
|
|
195
|
+
destroy(): void;
|
|
196
|
+
/**
|
|
197
|
+
* <p>Gets or sets the css class of the expand button component.</p>
|
|
198
|
+
*/
|
|
199
|
+
cssClassExpandButton: string;
|
|
200
|
+
/**
|
|
201
|
+
* <p>Gets or sets the css class of the expand icon.</p>
|
|
202
|
+
*/
|
|
203
|
+
cssClassExpandIcon: string;
|
|
204
|
+
/**
|
|
205
|
+
* <p>Gets or sets the css class of the clear button component.</p>
|
|
206
|
+
*/
|
|
207
|
+
cssClassClearButton: string;
|
|
208
|
+
/**
|
|
209
|
+
* <p>Gets or sets the css class of the datapager component.</p>
|
|
210
|
+
*/
|
|
211
|
+
cssClassDataPager: string;
|
|
212
|
+
/**
|
|
213
|
+
* <p>Gets or sets the css class of the list box component.</p>
|
|
214
|
+
*/
|
|
215
|
+
cssClassListBox: string;
|
|
216
|
+
/**
|
|
217
|
+
* <p>Gets or sets the css class of the unordered list.</p>
|
|
218
|
+
*/
|
|
219
|
+
cssClassList: string;
|
|
220
|
+
/**
|
|
221
|
+
* <p>Gets or sets the css class of the list box header (default: 'header header-label').</p>
|
|
222
|
+
*/
|
|
223
|
+
cssClassHeader: string;
|
|
224
|
+
/**
|
|
225
|
+
* <p>Gets or sets the css class of the list box footer (default: 'footer').</p>
|
|
226
|
+
*/
|
|
227
|
+
cssClassFooter: string;
|
|
228
|
+
/**
|
|
229
|
+
* <p>Gets or sets the default css class of an item.</p>
|
|
230
|
+
*/
|
|
231
|
+
cssClassItem: string;
|
|
232
|
+
/**
|
|
233
|
+
* <p>Gets or sets the css class of an item icon.</p>
|
|
234
|
+
*/
|
|
235
|
+
cssClassItemIcon: string;
|
|
236
|
+
/**
|
|
237
|
+
* <p>Gets or sets the css class of an item checkbox.</p>
|
|
238
|
+
*/
|
|
239
|
+
cssClassItemCheckBox: string;
|
|
240
|
+
/**
|
|
241
|
+
* <p>Gets or sets the css class of the 'select all' checkbox item.</p>
|
|
242
|
+
*/
|
|
243
|
+
cssClassItemSelectAll: string;
|
|
244
|
+
/**
|
|
245
|
+
* <p>Gets or sets the css class of the preloader container.</p>
|
|
246
|
+
*/
|
|
247
|
+
cssClassPreloader: string;
|
|
248
|
+
/**
|
|
249
|
+
* <p>Gets or sets the css class of the noresult container.</p>
|
|
250
|
+
*/
|
|
251
|
+
cssClassNoResult: string;
|
|
252
|
+
/**
|
|
253
|
+
* <p>Gets or sets the identifying css class of a column.</p>
|
|
254
|
+
*/
|
|
255
|
+
columnIdentifyingCssClass: string;
|
|
256
|
+
/**
|
|
257
|
+
* <p>Gets or sets the default template id of an item.</p>
|
|
258
|
+
*/
|
|
259
|
+
itemTemplateId: string | null;
|
|
260
|
+
/**
|
|
261
|
+
* <p>Gets or sets a value indicating whether textual input is allowed.</p>
|
|
262
|
+
*/
|
|
263
|
+
allowInput: boolean;
|
|
264
|
+
/**
|
|
265
|
+
* <p>Gets or sets a value indicating whether users can enter values not in the option list.</p>
|
|
266
|
+
*/
|
|
267
|
+
allowCustomValue: boolean;
|
|
268
|
+
/**
|
|
269
|
+
* <p>Gets or sets a value indicating whether multiple items can be selected through checkboxes.</p>
|
|
270
|
+
*/
|
|
271
|
+
multiSelect: boolean;
|
|
272
|
+
/**
|
|
273
|
+
* <p>Gets or sets a value indicating whether the combo box uses a split button.</p>
|
|
274
|
+
*/
|
|
275
|
+
splitButton: boolean;
|
|
276
|
+
/**
|
|
277
|
+
* <p>Gets or sets a value indicating whether selected items are displayed as tags.</p>
|
|
278
|
+
*/
|
|
279
|
+
multiSelectTagging: boolean;
|
|
280
|
+
/**
|
|
281
|
+
* <p>Gets or sets a value indicating if the input box will increase width automatically based on the size of the text.</p>
|
|
282
|
+
*/
|
|
283
|
+
autoGrow: boolean;
|
|
284
|
+
/**
|
|
285
|
+
* <p>Gets or sets a value indicating whether keyboard navigation is allowed.</p>
|
|
286
|
+
*/
|
|
287
|
+
keyboardNavigation: boolean;
|
|
288
|
+
/**
|
|
289
|
+
* <p>Gets or sets a value indicating whether the list box is collapsed on an item select.</p>
|
|
290
|
+
*/
|
|
291
|
+
collapseOnItemSelect: boolean;
|
|
292
|
+
/**
|
|
293
|
+
* <p>Gets or sets a value indicating whether the data is loaded (through AJAX or by custom handling of the onPreLoadItemList event) when the component is rendering.</p>
|
|
294
|
+
*/
|
|
295
|
+
loadOnRender: boolean;
|
|
296
|
+
/**
|
|
297
|
+
* <p>Gets or sets a value indicating whether the data is loaded (through AJAX or by custom handling of the onPreLoadItemList) when the text input is changed or the list box is expanded.</p>
|
|
298
|
+
*/
|
|
299
|
+
loadOnDemand: boolean;
|
|
300
|
+
/**
|
|
301
|
+
* <p>Gets or sets a value indicating whether the data is reloaded when the list box is expanded.</p>
|
|
302
|
+
*/
|
|
303
|
+
reloadOnExpand: boolean;
|
|
304
|
+
/**
|
|
305
|
+
* <p>Gets or sets the amount of characters required before a load on demand is performed.</p>
|
|
306
|
+
*/
|
|
307
|
+
loadOnDemandCharStart: number;
|
|
308
|
+
/**
|
|
309
|
+
* <p>Gets or sets the delay in milliseconds on a keydown event before a load on demand is performed.</p>
|
|
310
|
+
*/
|
|
311
|
+
loadOnDemandDelay: number;
|
|
312
|
+
/**
|
|
313
|
+
* <p>Gets or sets a value indicating whether the clear button is disabled.</p>
|
|
314
|
+
*/
|
|
315
|
+
disableClearButton: boolean;
|
|
316
|
+
/**
|
|
317
|
+
* <p>Gets or sets a value indicating whether the datapager is enabled.</p>
|
|
318
|
+
*/
|
|
319
|
+
enableDataPager: boolean;
|
|
320
|
+
/**
|
|
321
|
+
* <p>Gets or sets a value indicating whether the combobox is disabled.</p>
|
|
322
|
+
*/
|
|
323
|
+
disabled: boolean;
|
|
324
|
+
/**
|
|
325
|
+
* <p>Gets or sets a value indicating whether the current selection must be kept when reloading data.</p>
|
|
326
|
+
*/
|
|
327
|
+
keepSelectionOnReload: boolean;
|
|
328
|
+
/**
|
|
329
|
+
* <p>Gets or sets a value indicating whether the list box can only be expanded by typing, not by clicking the expand button.</p>
|
|
330
|
+
*/
|
|
331
|
+
disableExpandOnClick: boolean;
|
|
332
|
+
/**
|
|
333
|
+
* <p>Gets or sets the placeholder which is visible when the input box has no value.</p>
|
|
334
|
+
*/
|
|
335
|
+
placeholder: string;
|
|
336
|
+
/**
|
|
337
|
+
* <p>Gets or sets the input width in the specified unit.</p>
|
|
338
|
+
*/
|
|
339
|
+
width: string;
|
|
340
|
+
/**
|
|
341
|
+
* <p>Gets or sets the name of the hidden input field which contains the selected value(s).</p>
|
|
342
|
+
*/
|
|
343
|
+
name: string;
|
|
344
|
+
/**
|
|
345
|
+
* <p>Gets or sets the initial selected value.</p>
|
|
346
|
+
*/
|
|
347
|
+
value: string;
|
|
348
|
+
/**
|
|
349
|
+
* <p>Gets or sets the list of items.</p>
|
|
350
|
+
*/
|
|
351
|
+
itemList: ComboBox.Item[] | null;
|
|
352
|
+
/**
|
|
353
|
+
* <p>Gets or sets the tooltip manager used to display tooltips.</p>
|
|
354
|
+
*/
|
|
355
|
+
tooltipManagerId: string | null;
|
|
356
|
+
/**
|
|
357
|
+
* <p>Gets or sets the id of the tooltip to show.</p>
|
|
358
|
+
*/
|
|
359
|
+
tooltipId: string | null;
|
|
360
|
+
/**
|
|
361
|
+
* <p>Gets or sets the id of the expand button from which the settings are cloned.</p>
|
|
362
|
+
*/
|
|
363
|
+
expandButtonId: string | null;
|
|
364
|
+
/**
|
|
365
|
+
* <p>Gets or sets the id of the clear button from which the settings are cloned.</p>
|
|
366
|
+
*/
|
|
367
|
+
clearButtonId: string | null;
|
|
368
|
+
/**
|
|
369
|
+
* <p>Gets or sets the id of the tag button from which the settings are cloned.</p>
|
|
370
|
+
*/
|
|
371
|
+
tagButtonId: string | null;
|
|
372
|
+
/**
|
|
373
|
+
* <p>Gets or sets the id of the list box from which the settings are cloned.</p>
|
|
374
|
+
*/
|
|
375
|
+
listBoxId: string | null;
|
|
376
|
+
/**
|
|
377
|
+
* <p>Gets or sets the id of the list datapager from which the settings are cloned.</p>
|
|
378
|
+
*/
|
|
379
|
+
dataPagerId: string | null;
|
|
380
|
+
/**
|
|
381
|
+
* <p>Gets or sets or sets the id of the HTML hidden input.</p>
|
|
382
|
+
*/
|
|
383
|
+
hiddenInputId: string | null;
|
|
384
|
+
}
|
|
385
|
+
namespace ComboBox {
|
|
386
|
+
/**
|
|
387
|
+
* @property onFocus - <p>Event which fires when the combobox is focused.</p>
|
|
388
|
+
* @property onBlur - <p>Event which fires when the combobox is blurred.</p>
|
|
389
|
+
* @property onInputFocus - <p>Event which fires on the focus event of the input textbox.</p>
|
|
390
|
+
* @property onInputBlur - <p>Event which fires on the blur event of the input textbox.</p>
|
|
391
|
+
* @property onItemClick - <p>Event which fires on an item click.</p>
|
|
392
|
+
* @property onItemSelect - <p>Event which fires on an item select.</p>
|
|
393
|
+
* @property onItemDeselect - <p>Event which fires on an item deselect.</p>
|
|
394
|
+
* @property onClear - <p>Event which fires when the clear button is clicked.</p>
|
|
395
|
+
* @property onPreLoadItemList - <p>Event which fires before the item-list data is loaded.</p>
|
|
396
|
+
* @property onPostLoadItemList - <p>Event which fires when the item-list data is loaded.</p>
|
|
397
|
+
* @property onPostRenderItemList - <p>Event which fires when the item-list is rendered.</p>
|
|
398
|
+
* @property onPreRenderItem - <p>Event which fires when an item is rendered.</p>
|
|
399
|
+
* @property onPostRenderItem - <p>Event which fires when an item is rendered.</p>
|
|
400
|
+
*/
|
|
401
|
+
class ComboBoxEvents extends componyx.UI.base.Events<componyx.UI.ComboBox> {
|
|
402
|
+
constructor();
|
|
403
|
+
/**
|
|
404
|
+
* <p>Event which fires when the combobox is focused.</p>
|
|
405
|
+
*/
|
|
406
|
+
onFocus: componyx.UI.base.Event<componyx.UI.ComboBox, undefined>;
|
|
407
|
+
/**
|
|
408
|
+
* <p>Event which fires when the combobox is blurred.</p>
|
|
409
|
+
*/
|
|
410
|
+
onBlur: componyx.UI.base.Event<componyx.UI.ComboBox, undefined>;
|
|
411
|
+
/**
|
|
412
|
+
* <p>Event which fires on the focus event of the input textbox.</p>
|
|
413
|
+
*/
|
|
414
|
+
onInputFocus: componyx.UI.base.Event<componyx.UI.ComboBox, componyx.UI.ComboBox.ComboBoxItemEventArgs>;
|
|
415
|
+
/**
|
|
416
|
+
* <p>Event which fires on the blur event of the input textbox.</p>
|
|
417
|
+
*/
|
|
418
|
+
onInputBlur: componyx.UI.base.Event<componyx.UI.ComboBox, componyx.UI.ComboBox.ComboBoxItemEventArgs>;
|
|
419
|
+
/**
|
|
420
|
+
* <p>Event which fires on an item click.</p>
|
|
421
|
+
*/
|
|
422
|
+
onItemClick: componyx.UI.base.Event<componyx.UI.ComboBox, componyx.UI.ComboBox.ComboBoxItemEventArgs>;
|
|
423
|
+
/**
|
|
424
|
+
* <p>Event which fires on an item select.</p>
|
|
425
|
+
*/
|
|
426
|
+
onItemSelect: componyx.UI.base.Event<componyx.UI.ComboBox, componyx.UI.ComboBox.ComboBoxItemEventArgs>;
|
|
427
|
+
/**
|
|
428
|
+
* <p>Event which fires on an item deselect.</p>
|
|
429
|
+
*/
|
|
430
|
+
onItemDeselect: componyx.UI.base.Event<componyx.UI.ComboBox, componyx.UI.ComboBox.ComboBoxItemEventArgs>;
|
|
431
|
+
/**
|
|
432
|
+
* <p>Event which fires when the clear button is clicked.</p>
|
|
433
|
+
*/
|
|
434
|
+
onClear: componyx.UI.base.Event<componyx.UI.ComboBox, null>;
|
|
435
|
+
/**
|
|
436
|
+
* <p>Event which fires before the item-list data is loaded.</p>
|
|
437
|
+
*/
|
|
438
|
+
onPreLoadItemList: componyx.UI.base.Event<componyx.UI.ComboBox, componyx.UI.ComboBox.ComboBoxQueryEventArgs>;
|
|
439
|
+
/**
|
|
440
|
+
* <p>Event which fires when the item-list data is loaded.</p>
|
|
441
|
+
*/
|
|
442
|
+
onPostLoadItemList: componyx.UI.base.Event<componyx.UI.ComboBox, null>;
|
|
443
|
+
/**
|
|
444
|
+
* <p>Event which fires when the item-list is rendered.</p>
|
|
445
|
+
*/
|
|
446
|
+
onPostRenderItemList: componyx.UI.base.Event<componyx.UI.ComboBox, null>;
|
|
447
|
+
/**
|
|
448
|
+
* <p>Event which fires when an item is rendered.</p>
|
|
449
|
+
*/
|
|
450
|
+
onPreRenderItem: componyx.UI.base.Event<componyx.UI.ComboBox, componyx.UI.ComboBox.ComboBoxItemEventArgs>;
|
|
451
|
+
/**
|
|
452
|
+
* <p>Event which fires when an item is rendered.</p>
|
|
453
|
+
*/
|
|
454
|
+
onPostRenderItem: componyx.UI.base.Event<componyx.UI.ComboBox, componyx.UI.ComboBox.ComboBoxItemEventArgs>;
|
|
455
|
+
}
|
|
456
|
+
/**
|
|
457
|
+
* <p>ComboBox item event arguments.</p>
|
|
458
|
+
*/
|
|
459
|
+
type ComboBoxItemEventArgs = {
|
|
460
|
+
/** <p>The combobox item, null for the input focus/blur events.</p> */
|
|
461
|
+
item: componyx.UI.ComboBox.Item | null;
|
|
462
|
+
/** <p>The original event object.</p> */
|
|
463
|
+
event: Event;
|
|
464
|
+
};
|
|
465
|
+
/**
|
|
466
|
+
* <p>ComboBox load query event arguments.</p>
|
|
467
|
+
*/
|
|
468
|
+
type ComboBoxQueryEventArgs = {
|
|
469
|
+
/** <p>The search text.</p> */
|
|
470
|
+
text: string;
|
|
471
|
+
/** <p>The page index (1-based).</p> */
|
|
472
|
+
pageIndex: number;
|
|
473
|
+
};
|
|
474
|
+
/**
|
|
475
|
+
* <p>FilterOption</p>
|
|
476
|
+
*/
|
|
477
|
+
enum FilterOption {
|
|
478
|
+
STARTSWITH = 0,
|
|
479
|
+
CONTAINS = 1,
|
|
480
|
+
EQUALS = 2,
|
|
481
|
+
ENDSWITH = 3
|
|
482
|
+
}
|
|
483
|
+
/**
|
|
484
|
+
* <p>Creates an instance of the ComboBox item.</p>
|
|
485
|
+
* @param properties - <p>The properties used to initialize the object.</p>
|
|
486
|
+
* @param properties.hasIcon - <p>Gets or sets a value indicating if the icon is displayed.</p>
|
|
487
|
+
* @param properties.cssClassIcon - <p>Gets or sets the css class of the icon.</p>
|
|
488
|
+
* @param properties.cssClassCheckBox - <p>Gets or sets the css class of the checkbox.</p>
|
|
489
|
+
* @param properties.iconURL - <p>Gets or sets the icon URL.</p>
|
|
490
|
+
* @param properties.tooltip - <p>Gets or sets the tooltip.</p>
|
|
491
|
+
*/
|
|
492
|
+
class Item extends componyx.UI.base.static.Item {
|
|
493
|
+
constructor(properties?: Partial<componyx.UI.ComboBox.Item>);
|
|
494
|
+
/** <p>Gets or sets a value indicating if the icon is displayed.</p> */
|
|
495
|
+
hasIcon: boolean;
|
|
496
|
+
/** <p>Gets or sets the css class of the icon.</p> */
|
|
497
|
+
cssClassIcon: string | null;
|
|
498
|
+
/** <p>Gets or sets the css class of the checkbox.</p> */
|
|
499
|
+
cssClassCheckBox: string | null;
|
|
500
|
+
/** <p>Gets or sets the icon URL.</p> */
|
|
501
|
+
iconURL: string;
|
|
502
|
+
/** <p>Gets or sets the tooltip.</p> */
|
|
503
|
+
tooltip: string;
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
declare namespace componyx
|
|
2
|
+
{
|
|
3
|
+
namespace UI
|
|
4
|
+
{
|
|
5
|
+
interface DataPager extends componyx.UI.base.methods { }
|
|
6
|
+
/**
|
|
7
|
+
* <p>DataPager class.</p>
|
|
8
|
+
*/
|
|
9
|
+
class DataPager extends componyx.UI.base.Component implements componyx.UI.base.methods
|
|
10
|
+
{
|
|
11
|
+
/**
|
|
12
|
+
* Creates a new DataPager 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<DataPager> | HTMLElement);
|
|
17
|
+
/**
|
|
18
|
+
* <p>DataPager events</p>
|
|
19
|
+
*/
|
|
20
|
+
events: componyx.UI.DataPager.DataPagerEvents;
|
|
21
|
+
/**
|
|
22
|
+
* <p>Sets buttons template.</p>
|
|
23
|
+
* @param content - <p>HTML string or element node as content. Pass null or empty string to remove the existing template.</p>
|
|
24
|
+
*/
|
|
25
|
+
setButtonTemplate(content: HTMLElement | HTMLElement[] | DocumentFragment | string): void;
|
|
26
|
+
/**
|
|
27
|
+
* <p>Sets paging info template.</p>
|
|
28
|
+
* @param content - <p>HTML string or element node as content. Pass null or empty string to remove the existing template.</p>
|
|
29
|
+
*/
|
|
30
|
+
setInfoTemplate(content: HTMLElement | HTMLElement[] | DocumentFragment | string): void;
|
|
31
|
+
/**
|
|
32
|
+
* <p>Gets the index of the current page.</p>
|
|
33
|
+
*/
|
|
34
|
+
getPageIndex(): number;
|
|
35
|
+
/**
|
|
36
|
+
* <p>Sets the page index to the specified number.</p>
|
|
37
|
+
* @param pageIndex - <p>The page index.</p>
|
|
38
|
+
*/
|
|
39
|
+
setPageIndex(pageIndex: number): void;
|
|
40
|
+
/**
|
|
41
|
+
* <p>Gets the page count.</p>
|
|
42
|
+
*/
|
|
43
|
+
getPageCount(): number;
|
|
44
|
+
/**
|
|
45
|
+
* <p>Gets the first item index of the current page.</p>
|
|
46
|
+
*/
|
|
47
|
+
getPageFirst(): number;
|
|
48
|
+
/**
|
|
49
|
+
* <p>Gets the last item index of the current page.</p>
|
|
50
|
+
*/
|
|
51
|
+
getPageLast(): number;
|
|
52
|
+
/**
|
|
53
|
+
* <p>Renders the component.</p>
|
|
54
|
+
*/
|
|
55
|
+
render(): void;
|
|
56
|
+
/**
|
|
57
|
+
* <p>Gets or sets the css class of the button container.</p>
|
|
58
|
+
*/
|
|
59
|
+
cssClassButtonHolder: string;
|
|
60
|
+
/**
|
|
61
|
+
* <p>Gets or sets the css class of the info container.</p>
|
|
62
|
+
*/
|
|
63
|
+
cssClassInfoHolder: string;
|
|
64
|
+
/**
|
|
65
|
+
* <p>Gets or sets the css class of the page container.</p>
|
|
66
|
+
*/
|
|
67
|
+
cssClassPageHolder: string;
|
|
68
|
+
/**
|
|
69
|
+
* <p>Gets or sets the item count.</p>
|
|
70
|
+
*/
|
|
71
|
+
itemCount: number;
|
|
72
|
+
/**
|
|
73
|
+
* <p>Gets or sets the items per page.</p>
|
|
74
|
+
*/
|
|
75
|
+
pageSize: number;
|
|
76
|
+
/**
|
|
77
|
+
* <p>Gets or sets the number of visible pages.</p>
|
|
78
|
+
*/
|
|
79
|
+
visiblePages: number;
|
|
80
|
+
/**
|
|
81
|
+
* <p>Gets or sets the initial page index.</p>
|
|
82
|
+
*/
|
|
83
|
+
pageIndex: number;
|
|
84
|
+
/**
|
|
85
|
+
* <p>Gets or sets a value indicating whether the index change event is fired when the component is rendered.</p>
|
|
86
|
+
*/
|
|
87
|
+
initialIndexChange: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* <p>Gets or sets the name.</p>
|
|
90
|
+
*/
|
|
91
|
+
name: string;
|
|
92
|
+
/**
|
|
93
|
+
* <p>Gets or sets the IDs of the pager buttons.</p>
|
|
94
|
+
*/
|
|
95
|
+
buttons: {
|
|
96
|
+
/** <p>Gets or sets the ID of the first page button.</p> */
|
|
97
|
+
firstPageButtonId: string | null;
|
|
98
|
+
/** <p>Gets or sets the ID of the last page button.</p> */
|
|
99
|
+
lastPageButtonId: string | null;
|
|
100
|
+
/** <p>Gets or sets the ID of the previous page button.</p> */
|
|
101
|
+
previousPageButtonId: string | null;
|
|
102
|
+
/** <p>Gets or sets the ID of the next page button.</p> */
|
|
103
|
+
nextPageButtonId: string | null;
|
|
104
|
+
/** <p>Gets or sets the ID of the previous page group button.</p> */
|
|
105
|
+
previousPageGroupButtonId: string | null;
|
|
106
|
+
/** <p>Gets or sets the ID of the next page group button.</p> */
|
|
107
|
+
nextPageGroupButtonId: string | null;
|
|
108
|
+
/** <p>Gets or sets the ID of the page button.</p> */
|
|
109
|
+
pageButtonId: string | null;
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
* <p>Gets or sets the id of the numeric box from which the settings are cloned.</p>
|
|
113
|
+
*/
|
|
114
|
+
numericBoxId: string | null;
|
|
115
|
+
/**
|
|
116
|
+
* <p>Gets or sets the id of the hidden input from which the settings are cloned. The hidden input contains the current page index.</p>
|
|
117
|
+
*/
|
|
118
|
+
hiddenInputId: string | null;
|
|
119
|
+
}
|
|
120
|
+
namespace DataPager
|
|
121
|
+
{
|
|
122
|
+
/**
|
|
123
|
+
* @property onFocus - <p>Event which fires when the datapager is focused.</p>
|
|
124
|
+
* @property onBlur - <p>Event which fires when the datapager is blurred.</p>
|
|
125
|
+
* @property onIndexChange - <p>Event which fires on a page index change.</p>
|
|
126
|
+
*/
|
|
127
|
+
class DataPagerEvents extends componyx.UI.base.Events<componyx.UI.DataPager>
|
|
128
|
+
{
|
|
129
|
+
constructor();
|
|
130
|
+
/**
|
|
131
|
+
* <p>Event which fires when the datapager is focused.</p>
|
|
132
|
+
*/
|
|
133
|
+
onFocus: componyx.UI.base.Event<componyx.UI.DataPager, undefined>;
|
|
134
|
+
/**
|
|
135
|
+
* <p>Event which fires when the datapager is blurred.</p>
|
|
136
|
+
*/
|
|
137
|
+
onBlur: componyx.UI.base.Event<componyx.UI.DataPager, undefined>;
|
|
138
|
+
/**
|
|
139
|
+
* <p>Event which fires on a page index change.</p>
|
|
140
|
+
*/
|
|
141
|
+
onIndexChange: componyx.UI.base.Event<componyx.UI.DataPager, componyx.UI.DataPager.IndexChangeEventArgs>;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* <p>DataPager index change event arguments.</p>
|
|
145
|
+
*/
|
|
146
|
+
type IndexChangeEventArgs = {
|
|
147
|
+
/** <p>The new page index (1-based).</p> */
|
|
148
|
+
pageIndex: number;
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|