@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,354 @@
|
|
|
1
|
+
declare namespace componyx
|
|
2
|
+
{
|
|
3
|
+
namespace UI
|
|
4
|
+
{
|
|
5
|
+
interface DatePicker extends componyx.UI.base.methods { }
|
|
6
|
+
/**
|
|
7
|
+
* <p>DatePicker class.</p>
|
|
8
|
+
*/
|
|
9
|
+
class DatePicker extends componyx.UI.base.Component implements componyx.UI.base.methods
|
|
10
|
+
{
|
|
11
|
+
/**
|
|
12
|
+
* Creates a new DatePicker 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<DatePicker> | HTMLElement);
|
|
17
|
+
/**
|
|
18
|
+
* <p>DatePicker events</p>
|
|
19
|
+
*/
|
|
20
|
+
events: componyx.UI.DatePicker.DatePickerEvents;
|
|
21
|
+
/**
|
|
22
|
+
* <p>Resets all inputs to the initial value.</p>
|
|
23
|
+
* @param [fireEvent = false] - <p>A value indicating if the onChanged event is fired.</p>
|
|
24
|
+
*/
|
|
25
|
+
reset(fireEvent?: boolean): void;
|
|
26
|
+
/**
|
|
27
|
+
* <p>Clears all input values.</p>
|
|
28
|
+
* @param [fireEvent = false] - <p>A value indicating if the onChanged event is fired.</p>
|
|
29
|
+
*/
|
|
30
|
+
clear(fireEvent?: boolean): void;
|
|
31
|
+
/**
|
|
32
|
+
* <p>Selects the text of the first input field of the datepicker.</p>
|
|
33
|
+
*/
|
|
34
|
+
select(): void;
|
|
35
|
+
/**
|
|
36
|
+
* <p>Gets the day numeric box.</p>
|
|
37
|
+
* @returns <p>The numeric box instance.</p>
|
|
38
|
+
*/
|
|
39
|
+
getDayNumericBox(): componyx.UI.NumericBox;
|
|
40
|
+
/**
|
|
41
|
+
* <p>Gets the month numeric box.</p>
|
|
42
|
+
* @returns <p>The numeric box instance.</p>
|
|
43
|
+
*/
|
|
44
|
+
getMonthNumericBox(): componyx.UI.NumericBox;
|
|
45
|
+
/**
|
|
46
|
+
* <p>Gets the year numeric box.</p>
|
|
47
|
+
* @returns <p>The numeric box instance.</p>
|
|
48
|
+
*/
|
|
49
|
+
getYearNumericBox(): componyx.UI.NumericBox;
|
|
50
|
+
/**
|
|
51
|
+
* <p>Gets the calendar month numeric box.</p>
|
|
52
|
+
* @returns <p>The numeric box instance.</p>
|
|
53
|
+
*/
|
|
54
|
+
getCalendarMonthNumericBox(): componyx.UI.NumericBox;
|
|
55
|
+
/**
|
|
56
|
+
* <p>Gets the calendar year numeric box.</p>
|
|
57
|
+
* @returns <p>The numeric box instance.</p>
|
|
58
|
+
*/
|
|
59
|
+
getCalendarYearNumericBox(): componyx.UI.NumericBox;
|
|
60
|
+
/**
|
|
61
|
+
* <p>Shows the calendar.</p>
|
|
62
|
+
*/
|
|
63
|
+
showCalendar(): void;
|
|
64
|
+
/**
|
|
65
|
+
* <p>Hides the calendar.</p>
|
|
66
|
+
*/
|
|
67
|
+
hideCalendar(): void;
|
|
68
|
+
/**
|
|
69
|
+
* <p>Gets the selected date.</p>
|
|
70
|
+
* @returns <p>The selected date.</p>
|
|
71
|
+
*/
|
|
72
|
+
getDate(): Date;
|
|
73
|
+
/**
|
|
74
|
+
* <p>Sets the date.</p>
|
|
75
|
+
* @param date - <p>The date object.</p>
|
|
76
|
+
* @param [fireEvent = false] - <p>A value indicating if the onChanged event is fired.</p>
|
|
77
|
+
*/
|
|
78
|
+
setDate(date: Date, fireEvent?: boolean): void;
|
|
79
|
+
/**
|
|
80
|
+
* <p>Sets the date.</p>
|
|
81
|
+
* @param value - <p>The date value in the specified date format.</p>
|
|
82
|
+
* @param [fireEvent = false] - <p>A value indicating if the onChanged event is fired.</p>
|
|
83
|
+
*/
|
|
84
|
+
setValue(value: string, fireEvent?: boolean): void;
|
|
85
|
+
/**
|
|
86
|
+
* <p>Gets the input field value which holds the date in the specified date format.</p>
|
|
87
|
+
* @returns <p>The selected date value in the specified date format.</p>
|
|
88
|
+
*/
|
|
89
|
+
getValue(): string;
|
|
90
|
+
/**
|
|
91
|
+
* <p>Gets the input field value as ISO8601 string.</p>
|
|
92
|
+
* @returns <p>The selected date value as ISO8601 string.</p>
|
|
93
|
+
*/
|
|
94
|
+
getISOValue(): string;
|
|
95
|
+
/**
|
|
96
|
+
* <p>Defines the template for the input separator.</p>
|
|
97
|
+
* @param content - <p>The content of the template.</p>
|
|
98
|
+
*/
|
|
99
|
+
setSeparatorTemplate(content: HTMLElement | HTMLElement[] | DocumentFragment | string): void;
|
|
100
|
+
/**
|
|
101
|
+
* <p>Gets a value indicating if the specified date is allowed.</p>
|
|
102
|
+
* @param date - <p>The date to check.</p>
|
|
103
|
+
* @returns <p>A value indicating if the date is allowed.</p>
|
|
104
|
+
*/
|
|
105
|
+
isAllowedDate(date: Date | string): boolean;
|
|
106
|
+
/**
|
|
107
|
+
* <p>Renders the component</p>
|
|
108
|
+
*/
|
|
109
|
+
render(): void;
|
|
110
|
+
/**
|
|
111
|
+
* <p>Destroys the component.</p>
|
|
112
|
+
*/
|
|
113
|
+
destroy(): void;
|
|
114
|
+
/**
|
|
115
|
+
* <p>Gets or sets the css class of the numericbox.</p>
|
|
116
|
+
*/
|
|
117
|
+
cssClassNumericBox: string;
|
|
118
|
+
/**
|
|
119
|
+
* <p>Gets or sets the css class of the day input.</p>
|
|
120
|
+
*/
|
|
121
|
+
cssClassDay: string;
|
|
122
|
+
/**
|
|
123
|
+
* <p>Gets or sets the css class of the month input.</p>
|
|
124
|
+
*/
|
|
125
|
+
cssClassMonth: string;
|
|
126
|
+
/**
|
|
127
|
+
* <p>Gets or sets the css class of the year input.</p>
|
|
128
|
+
*/
|
|
129
|
+
cssClassYear: string;
|
|
130
|
+
/**
|
|
131
|
+
* <p>Gets or sets the css class of the picker button.</p>
|
|
132
|
+
*/
|
|
133
|
+
cssClassPicker: string;
|
|
134
|
+
/**
|
|
135
|
+
* <p>Gets or sets the css class of the calendar dialog.</p>
|
|
136
|
+
*/
|
|
137
|
+
cssClassCalendar: string;
|
|
138
|
+
/**
|
|
139
|
+
* <p>Gets or sets the css class of the prev month button.</p>
|
|
140
|
+
*/
|
|
141
|
+
cssClassPrevMonth: string;
|
|
142
|
+
/**
|
|
143
|
+
* <p>Gets or sets the css class of the next month button.</p>
|
|
144
|
+
*/
|
|
145
|
+
cssClassNextMonth: string;
|
|
146
|
+
/**
|
|
147
|
+
* <p>Gets or sets the css class of the calendar header label.</p>
|
|
148
|
+
*/
|
|
149
|
+
cssClassHeaderLabel: string;
|
|
150
|
+
/**
|
|
151
|
+
* <p>Gets or sets the css class of the week number cell in the calendar.</p>
|
|
152
|
+
*/
|
|
153
|
+
cssClassWeekNumber: string;
|
|
154
|
+
/**
|
|
155
|
+
* <p>Gets or sets the css class of the current week row in the calendar.</p>
|
|
156
|
+
*/
|
|
157
|
+
cssClassCurrentWeek: string;
|
|
158
|
+
/**
|
|
159
|
+
* <p>Gets or sets the css class of the current day cell in the calendar.</p>
|
|
160
|
+
*/
|
|
161
|
+
cssClassToday: string;
|
|
162
|
+
/**
|
|
163
|
+
* <p>Gets or sets the css class of an inactive day cell in the calendar.</p>
|
|
164
|
+
*/
|
|
165
|
+
cssClassInactive: string;
|
|
166
|
+
/**
|
|
167
|
+
* <p>Gets or sets the input format for dates. Default: MM/dd/yyyy.</p>
|
|
168
|
+
*/
|
|
169
|
+
dateFormat: string;
|
|
170
|
+
/**
|
|
171
|
+
* <p>Gets or sets the first day of the week.</p>
|
|
172
|
+
*/
|
|
173
|
+
firstDayOfWeek: componyx.UI.DatePicker.FirstDayOfWeekOption;
|
|
174
|
+
/**
|
|
175
|
+
* <p>Gets or sets a value indicating whether today should be used as initial selected date.</p>
|
|
176
|
+
*/
|
|
177
|
+
today: boolean;
|
|
178
|
+
/**
|
|
179
|
+
* <p>Gets or sets the placeholder which is visible when the day input box has no value. Default: DD.</p>
|
|
180
|
+
*/
|
|
181
|
+
dayPlaceholder: string;
|
|
182
|
+
/**
|
|
183
|
+
* <p>Gets or sets the placeholder which is visible when the month input box has no value. Default: MM.</p>
|
|
184
|
+
*/
|
|
185
|
+
monthPlaceholder: string;
|
|
186
|
+
/**
|
|
187
|
+
* <p>Gets or sets the placeholder which is visible when the year input box has no value. Default: YYYY.</p>
|
|
188
|
+
*/
|
|
189
|
+
yearPlaceholder: string;
|
|
190
|
+
/**
|
|
191
|
+
* <p>Gets or sets the view mode in which the date picker is rendered.</p>
|
|
192
|
+
*/
|
|
193
|
+
viewMode: componyx.UI.DatePicker.ViewModeOption;
|
|
194
|
+
/**
|
|
195
|
+
* <p>Gets or sets a value indicating if week numbers are displayed in the calendar.</p>
|
|
196
|
+
*/
|
|
197
|
+
weekNumbers: boolean;
|
|
198
|
+
/**
|
|
199
|
+
* <p>Gets or sets a value indicating whether the date picker is readonly.</p>
|
|
200
|
+
*/
|
|
201
|
+
readOnly: boolean;
|
|
202
|
+
/**
|
|
203
|
+
* <p>Gets or sets a value indicating whether the date picker is disabled.</p>
|
|
204
|
+
*/
|
|
205
|
+
disabled: boolean;
|
|
206
|
+
/**
|
|
207
|
+
* <p>Gets or sets a value indicating whether a calendar day has a leading zero.</p>
|
|
208
|
+
*/
|
|
209
|
+
calendarDayLeadingZero: boolean;
|
|
210
|
+
/**
|
|
211
|
+
* <p>Gets or sets a value indicating whether focus on an input field is automaticly moved to the next field while typing.</p>
|
|
212
|
+
*/
|
|
213
|
+
autoFocus: boolean;
|
|
214
|
+
/**
|
|
215
|
+
* <p>Gets or sets the month names as List of StringValue objects.</p>
|
|
216
|
+
*/
|
|
217
|
+
months: String[];
|
|
218
|
+
/**
|
|
219
|
+
* <p>Gets or sets the day names as List of StringValue objects.</p>
|
|
220
|
+
*/
|
|
221
|
+
days: String[];
|
|
222
|
+
/**
|
|
223
|
+
* <p>Gets or sets the hidden input field name which contains the selected date in the specified date format.</p>
|
|
224
|
+
*/
|
|
225
|
+
name: string;
|
|
226
|
+
/**
|
|
227
|
+
* <p>Gets or sets the initial date value.</p>
|
|
228
|
+
*/
|
|
229
|
+
value: string | Date;
|
|
230
|
+
/**
|
|
231
|
+
* <p>Gets or sets the minimum allowed date value.</p>
|
|
232
|
+
*/
|
|
233
|
+
minValue: string | Date;
|
|
234
|
+
/**
|
|
235
|
+
* <p>Gets or sets the maximum allowed date value.</p>
|
|
236
|
+
*/
|
|
237
|
+
maxValue: string | Date;
|
|
238
|
+
/**
|
|
239
|
+
* <p>Gets or sets a list of allowed calendar dates. Separate two date strings with a space to specify allowed range. When allowed dates are set, date input fields are rendered in readonly mode.</p>
|
|
240
|
+
*/
|
|
241
|
+
allowedDates: String[] | Date[];
|
|
242
|
+
/**
|
|
243
|
+
* <p>Gets or sets a value indicating if the dates specified in the dates property are disallowed instead of the default allowed.</p>
|
|
244
|
+
*/
|
|
245
|
+
disallowDates: boolean;
|
|
246
|
+
/**
|
|
247
|
+
* <p>Gets or sets the id of the picker button from which the settings are cloned.</p>
|
|
248
|
+
*/
|
|
249
|
+
pickerButtonId: string;
|
|
250
|
+
/**
|
|
251
|
+
* <p>Gets or sets the id of the day numeric box from which the settings are cloned.</p>
|
|
252
|
+
*/
|
|
253
|
+
dayNumericBoxId: string;
|
|
254
|
+
/**
|
|
255
|
+
* <p>Gets or sets the id of the month numeric box from which the settings are cloned.</p>
|
|
256
|
+
*/
|
|
257
|
+
monthNumericBoxId: string;
|
|
258
|
+
/**
|
|
259
|
+
* <p>Gets or sets the id of the year numeric box from which the settings are cloned.</p>
|
|
260
|
+
*/
|
|
261
|
+
yearNumericBoxId: string;
|
|
262
|
+
/**
|
|
263
|
+
* <p>Gets or sets the id of the month numeric box in the calendar from which the settings are cloned.</p>
|
|
264
|
+
*/
|
|
265
|
+
calendarMonthNumericBoxId: string;
|
|
266
|
+
/**
|
|
267
|
+
* <p>Gets or sets the id of the year numeric box in the calendar from which the settings are cloned.</p>
|
|
268
|
+
*/
|
|
269
|
+
calendarYearNumericBoxId: string;
|
|
270
|
+
/**
|
|
271
|
+
* <p>Gets or sets the id of the dialog from which the settings are cloned.</p>
|
|
272
|
+
*/
|
|
273
|
+
dialogId: string;
|
|
274
|
+
/**
|
|
275
|
+
* <p>Gets or sets the id of the hidden input from which the settings are cloned. The hidden input contains the date in the configured date-format when a valid date is given.</p>
|
|
276
|
+
*/
|
|
277
|
+
hiddenInputId: string;
|
|
278
|
+
}
|
|
279
|
+
namespace DatePicker
|
|
280
|
+
{
|
|
281
|
+
/**
|
|
282
|
+
* @property onFocus - <p>Event which fires when the date picker is focused.</p>
|
|
283
|
+
* @property onBlur - <p>Event which fires when the date picker is blurred.</p>
|
|
284
|
+
* @property onChanged - <p>Event which fires when the date has changed.</p>
|
|
285
|
+
* @property onCalendarWeekRender - <p>Event which fires when a calendar week is rendered.</p>
|
|
286
|
+
* @property onCalendarDayRender - <p>Event which fires when a calendar day is rendered.</p>
|
|
287
|
+
*/
|
|
288
|
+
class DatePickerEvents extends componyx.UI.base.Events<componyx.UI.DatePicker>
|
|
289
|
+
{
|
|
290
|
+
constructor();
|
|
291
|
+
/**
|
|
292
|
+
* <p>Event which fires when the date picker is focused.</p>
|
|
293
|
+
*/
|
|
294
|
+
onFocus: componyx.UI.base.Event<componyx.UI.DatePicker, undefined>;
|
|
295
|
+
/**
|
|
296
|
+
* <p>Event which fires when the date picker is blurred.</p>
|
|
297
|
+
*/
|
|
298
|
+
onBlur: componyx.UI.base.Event<componyx.UI.DatePicker, undefined>;
|
|
299
|
+
/**
|
|
300
|
+
* <p>Event which fires when the date has changed.</p>
|
|
301
|
+
*/
|
|
302
|
+
onChanged: componyx.UI.base.Event<componyx.UI.DatePicker, componyx.UI.DatePicker.ChangedEventArgs>;
|
|
303
|
+
/**
|
|
304
|
+
* <p>Event which fires when a calendar week is rendered.</p>
|
|
305
|
+
*/
|
|
306
|
+
onCalendarWeekRender: componyx.UI.base.Event<componyx.UI.DatePicker, componyx.UI.DatePicker.CalendarRenderEventArgs>;
|
|
307
|
+
/**
|
|
308
|
+
* <p>Event which fires when a calendar day is rendered.</p>
|
|
309
|
+
*/
|
|
310
|
+
onCalendarDayRender: componyx.UI.base.Event<componyx.UI.DatePicker, componyx.UI.DatePicker.CalendarRenderEventArgs>;
|
|
311
|
+
}
|
|
312
|
+
/**
|
|
313
|
+
* <p>DatePicker changed event arguments.</p>
|
|
314
|
+
*/
|
|
315
|
+
type ChangedEventArgs = {
|
|
316
|
+
/** <p>The selected date, or null when the date was cleared.</p> */
|
|
317
|
+
date: Date | null;
|
|
318
|
+
};
|
|
319
|
+
/**
|
|
320
|
+
* <p>DatePicker calendar render event arguments (week and day).</p>
|
|
321
|
+
*/
|
|
322
|
+
type CalendarRenderEventArgs = {
|
|
323
|
+
/** <p>The table row of the calendar week.</p> */
|
|
324
|
+
row: HTMLTableRowElement;
|
|
325
|
+
/** <p>The table cell of the calendar day (onCalendarDayRender only).</p> */
|
|
326
|
+
cell?: HTMLTableCellElement;
|
|
327
|
+
/** <p>The button of the calendar day (onCalendarDayRender only).</p> */
|
|
328
|
+
button?: componyx.UI.Button;
|
|
329
|
+
/** <p>The date of the first day shown in the week row (week render) or the date of the day (day render).</p> */
|
|
330
|
+
date: Date;
|
|
331
|
+
};
|
|
332
|
+
/**
|
|
333
|
+
* <p>FirstDayOfWeekOption</p>
|
|
334
|
+
*/
|
|
335
|
+
enum FirstDayOfWeekOption
|
|
336
|
+
{
|
|
337
|
+
SUNDAY = 0,
|
|
338
|
+
MONDAY = 1,
|
|
339
|
+
SATURDAY = 6
|
|
340
|
+
}
|
|
341
|
+
/**
|
|
342
|
+
* <p>ViewModeOption</p>
|
|
343
|
+
*/
|
|
344
|
+
enum ViewModeOption
|
|
345
|
+
{
|
|
346
|
+
INPUT_CALENDAR_POPUP = 0,
|
|
347
|
+
INPUT_CALENDAR_STATIC = 1,
|
|
348
|
+
INPUT = 2,
|
|
349
|
+
CALENDAR = 3,
|
|
350
|
+
CALENDAR_POPUP = 4
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
declare namespace componyx
|
|
2
|
+
{
|
|
3
|
+
namespace UI
|
|
4
|
+
{
|
|
5
|
+
interface Dialog extends componyx.UI.base.methods { }
|
|
6
|
+
/**
|
|
7
|
+
* <p>Dialog class.</p>
|
|
8
|
+
*/
|
|
9
|
+
class Dialog extends componyx.UI.base.Component implements componyx.UI.base.methods
|
|
10
|
+
{
|
|
11
|
+
/**
|
|
12
|
+
* Creates a new Dialog 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<Dialog> | HTMLElement);
|
|
17
|
+
/**
|
|
18
|
+
* <p>Dialog events</p>
|
|
19
|
+
*/
|
|
20
|
+
events: componyx.UI.Dialog.DialogEvents;
|
|
21
|
+
/**
|
|
22
|
+
* <p>Sets the header 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
|
+
setHeaderTemplate(content: HTMLElement | HTMLElement[] | DocumentFragment | string): void;
|
|
26
|
+
/**
|
|
27
|
+
* <p>Sets the footer 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
|
+
setFooterTemplate(content: HTMLElement | HTMLElement[] | DocumentFragment | string): void;
|
|
31
|
+
/**
|
|
32
|
+
* <p>Sets the content template</p>
|
|
33
|
+
* @param content - <p>HTML string or element node as content. Pass null or empty string to remove the existing template.</p>
|
|
34
|
+
*/
|
|
35
|
+
setContentTemplate(content: HTMLElement | HTMLElement[] | DocumentFragment | string): void;
|
|
36
|
+
/**
|
|
37
|
+
* <p>Gets the underlaying box component.</p>
|
|
38
|
+
*/
|
|
39
|
+
getBox(): componyx.UI.Box;
|
|
40
|
+
/**
|
|
41
|
+
* <p>Shows the component.</p>
|
|
42
|
+
*/
|
|
43
|
+
show(): void;
|
|
44
|
+
/**
|
|
45
|
+
* <p>Shows the dialog in confirmation mode.</p>
|
|
46
|
+
* @param callBack - <p>A callback function to invoke after confirmation.</p>
|
|
47
|
+
* @param [header] - <p>HTML string or element node as content.</p>
|
|
48
|
+
* @param [content] - <p>HTML string or element node as content.</p>
|
|
49
|
+
* @param [footer] - <p>HTML string or element node as content.</p>
|
|
50
|
+
* @param [confirmText] - <p>The text of the confirmation button.</p>
|
|
51
|
+
* @param [denyText] - <p>The text of the deny button.</p>
|
|
52
|
+
*/
|
|
53
|
+
confirm(callBack: (...params: any[]) => any, header?: HTMLElement | HTMLElement[] | DocumentFragment | string, content?: HTMLElement | HTMLElement[] | DocumentFragment | string, footer?: HTMLElement | HTMLElement[] | DocumentFragment | string, confirmText?: string, denyText?: string): void;
|
|
54
|
+
/**
|
|
55
|
+
* <p>Shows the dialog in alert mode.</p>
|
|
56
|
+
* @param callBack - <p>A callback function to invoke after confirmation.</p>
|
|
57
|
+
* @param [header] - <p>HTML string or element node as content.</p>
|
|
58
|
+
* @param [content] - <p>HTML string or element node as content.</p>
|
|
59
|
+
* @param [footer] - <p>HTML string or element node as content.</p>
|
|
60
|
+
* @param [confirmText] - <p>The text of the confirmation button.</p>
|
|
61
|
+
*/
|
|
62
|
+
alert(callBack: (...params: any[]) => any, header?: HTMLElement | HTMLElement[] | DocumentFragment | string, content?: HTMLElement | HTMLElement[] | DocumentFragment | string, footer?: HTMLElement | HTMLElement[] | DocumentFragment | string, confirmText?: string): void;
|
|
63
|
+
/**
|
|
64
|
+
* <p>Hides the component</p>
|
|
65
|
+
*/
|
|
66
|
+
hide(): void;
|
|
67
|
+
/**
|
|
68
|
+
* <p>Renders the component</p>
|
|
69
|
+
*/
|
|
70
|
+
render(): void;
|
|
71
|
+
/**
|
|
72
|
+
* <p>Destroys the component.</p>
|
|
73
|
+
*/
|
|
74
|
+
destroy(): void;
|
|
75
|
+
/**
|
|
76
|
+
* <p>Gets or sets the css class of the box, which is used for the dialog layout.</p>
|
|
77
|
+
*/
|
|
78
|
+
cssClassBox: string;
|
|
79
|
+
/**
|
|
80
|
+
* <p>Gets or sets the css class of the content header.</p>
|
|
81
|
+
*/
|
|
82
|
+
cssClassContentHeader: string;
|
|
83
|
+
/**
|
|
84
|
+
* <p>Gets or sets the css class of the content footer.</p>
|
|
85
|
+
*/
|
|
86
|
+
cssClassContentFooter: string;
|
|
87
|
+
/**
|
|
88
|
+
* <p>Gets or sets the css class of the content holder.</p>
|
|
89
|
+
*/
|
|
90
|
+
cssClassContentHolder: string;
|
|
91
|
+
/**
|
|
92
|
+
* <p>Gets or sets the css class of the button holder for both the header and footer of the dialog.</p>
|
|
93
|
+
*/
|
|
94
|
+
cssClassButtonHolder: string;
|
|
95
|
+
/**
|
|
96
|
+
* <p>Gets or sets a value indicating whether the dialog will be automatically closed on a button event.</p>
|
|
97
|
+
*/
|
|
98
|
+
autoClose: boolean;
|
|
99
|
+
/**
|
|
100
|
+
* <p>Gets or sets a value indicating whether the dialog confirm action is executed when the enter-key is pressed within a field inside the box element.</p>
|
|
101
|
+
*/
|
|
102
|
+
confirmOnEnterKey: boolean;
|
|
103
|
+
/**
|
|
104
|
+
* <p>Gets or sets the button settings.</p>
|
|
105
|
+
*/
|
|
106
|
+
buttons: {
|
|
107
|
+
close: boolean;
|
|
108
|
+
confirm: boolean;
|
|
109
|
+
deny: boolean;
|
|
110
|
+
cancel: boolean;
|
|
111
|
+
confirmText: string;
|
|
112
|
+
denyText: string;
|
|
113
|
+
cancelText: string;
|
|
114
|
+
closeButtonId: string | null;
|
|
115
|
+
confirmButtonId: string | null;
|
|
116
|
+
denyButtonId: string | null;
|
|
117
|
+
cancelButtonId: string | null;
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
namespace Dialog
|
|
121
|
+
{
|
|
122
|
+
/**
|
|
123
|
+
* @property onConfirm - <p>Event which fires when the dialog is confirmed.</p>
|
|
124
|
+
* @property onDeny - <p>Event which fires when the dialog is denied.</p>
|
|
125
|
+
* @property onCancel - <p>Event which fires when the dialog is cancelled.</p>
|
|
126
|
+
* @property onClose - <p>Event which fires when the dialog is closed.</p>
|
|
127
|
+
* @property onShowComplete - <p>Event which fires when the show animation has completed. Also called when animation type is 'none'.</p>
|
|
128
|
+
* @property onHideComplete - <p>Event which fires when the hide animation has completed. Also called when animation type is 'none'.</p>
|
|
129
|
+
*/
|
|
130
|
+
class DialogEvents extends componyx.UI.base.Events<componyx.UI.Dialog>
|
|
131
|
+
{
|
|
132
|
+
constructor();
|
|
133
|
+
/**
|
|
134
|
+
* <p>Event which fires when the dialog is confirmed.</p>
|
|
135
|
+
*/
|
|
136
|
+
onConfirm: componyx.UI.base.Event<componyx.UI.Dialog, undefined>;
|
|
137
|
+
/**
|
|
138
|
+
* <p>Event which fires when the dialog is denied.</p>
|
|
139
|
+
*/
|
|
140
|
+
onDeny: componyx.UI.base.Event<componyx.UI.Dialog, undefined>;
|
|
141
|
+
/**
|
|
142
|
+
* <p>Event which fires when the dialog is cancelled.</p>
|
|
143
|
+
*/
|
|
144
|
+
onCancel: componyx.UI.base.Event<componyx.UI.Dialog, undefined>;
|
|
145
|
+
/**
|
|
146
|
+
* <p>Event which fires when the dialog is closed.</p>
|
|
147
|
+
*/
|
|
148
|
+
onClose: componyx.UI.base.Event<componyx.UI.Dialog, undefined>;
|
|
149
|
+
/**
|
|
150
|
+
* <p>Event which fires when the show animation has completed. Also called when animation type is 'none'.</p>
|
|
151
|
+
*/
|
|
152
|
+
onShowComplete: componyx.UI.base.Event<componyx.UI.Dialog, undefined>;
|
|
153
|
+
/**
|
|
154
|
+
* <p>Event which fires when the hide animation has completed. Also called when animation type is 'none'.</p>
|
|
155
|
+
*/
|
|
156
|
+
onHideComplete: componyx.UI.base.Event<componyx.UI.Dialog, undefined>;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|