@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,185 @@
|
|
|
1
|
+
declare namespace componyx
|
|
2
|
+
{
|
|
3
|
+
namespace UI
|
|
4
|
+
{
|
|
5
|
+
/**
|
|
6
|
+
* <p>Namespace for tabstrip modules.</p>
|
|
7
|
+
*/
|
|
8
|
+
namespace tabStrip_modules
|
|
9
|
+
{
|
|
10
|
+
/**
|
|
11
|
+
* <p>Promise that resolves when all form modules are loaded asynchronously.</p>
|
|
12
|
+
*/
|
|
13
|
+
var loaded: Promise<void>;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
interface TabStrip extends componyx.UI.base.methods { }
|
|
17
|
+
/**
|
|
18
|
+
* <p>TabStrip class.</p>
|
|
19
|
+
*/
|
|
20
|
+
class TabStrip extends componyx.UI.base.Component implements componyx.UI.base.methods
|
|
21
|
+
{
|
|
22
|
+
/**
|
|
23
|
+
* Creates a new TabStrip instance.
|
|
24
|
+
* @param id - <p>The id of the component.</p>
|
|
25
|
+
* @param properties - <p>The properties used to initialize the component or the container element.</p>
|
|
26
|
+
*/
|
|
27
|
+
constructor(id: string, properties: Partial<TabStrip> | HTMLElement);
|
|
28
|
+
/**
|
|
29
|
+
* <p>TabStrip events</p>
|
|
30
|
+
*/
|
|
31
|
+
events: componyx.UI.TabStrip.TabStripEvents;
|
|
32
|
+
/**
|
|
33
|
+
* <p>Renders the component</p>
|
|
34
|
+
*/
|
|
35
|
+
render(): void;
|
|
36
|
+
/**
|
|
37
|
+
* <p>Gets or sets a value indicating whether the PostBack event is automatically fired</p>
|
|
38
|
+
*/
|
|
39
|
+
cssClassStrip: string;
|
|
40
|
+
/**
|
|
41
|
+
* <p>Gets or sets the default css class of an tab item button.</p>
|
|
42
|
+
*/
|
|
43
|
+
cssClassItem: string;
|
|
44
|
+
/**
|
|
45
|
+
* <p>Gets or sets the default css class of the tab item button icon.</p>
|
|
46
|
+
*/
|
|
47
|
+
cssClassItemIcon: string;
|
|
48
|
+
/**
|
|
49
|
+
* <p>Gets or sets the selected item id.</p>
|
|
50
|
+
*/
|
|
51
|
+
selectedItemId: string;
|
|
52
|
+
/**
|
|
53
|
+
* <p>Gets or sets the tab alignment.</p>
|
|
54
|
+
*/
|
|
55
|
+
alignment: componyx.UI.TabStrip.AlignmentOption;
|
|
56
|
+
/**
|
|
57
|
+
* <p>Gets or sets the id of the component from which the settings are cloned.</p>
|
|
58
|
+
*/
|
|
59
|
+
buttonId: string | null;
|
|
60
|
+
/**
|
|
61
|
+
* <p>Gets or sets the list of items.</p>
|
|
62
|
+
*/
|
|
63
|
+
itemList: componyx.UI.TabStrip.Item[];
|
|
64
|
+
}
|
|
65
|
+
namespace TabStrip
|
|
66
|
+
{
|
|
67
|
+
/**
|
|
68
|
+
* @property onItemSelect - <p>Event which fires when a tab item is selected.</p>
|
|
69
|
+
* @property onItemDeselect - <p>Event which fires when a tab item is deselected.</p>
|
|
70
|
+
*/
|
|
71
|
+
class TabStripEvents extends componyx.UI.base.Events<componyx.UI.TabStrip>
|
|
72
|
+
{
|
|
73
|
+
constructor();
|
|
74
|
+
/**
|
|
75
|
+
* <p>Event which fires when a tab item is selected.</p>
|
|
76
|
+
*/
|
|
77
|
+
onItemSelect: componyx.UI.base.Event<componyx.UI.TabStrip, componyx.UI.TabStrip.ItemEventArgs>;
|
|
78
|
+
/**
|
|
79
|
+
* <p>Event which fires when a tab item is deselected.</p>
|
|
80
|
+
*/
|
|
81
|
+
onItemDeselect: componyx.UI.base.Event<componyx.UI.TabStrip, componyx.UI.TabStrip.ItemEventArgs>;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* <p>TabStrip item event arguments.</p>
|
|
85
|
+
*/
|
|
86
|
+
type ItemEventArgs = {
|
|
87
|
+
/** <p>The tab button.</p> */
|
|
88
|
+
button: componyx.UI.Button;
|
|
89
|
+
/** <p>The tab item.</p> */
|
|
90
|
+
item: componyx.UI.TabStrip.Item;
|
|
91
|
+
/** <p>The original event object.</p> */
|
|
92
|
+
event: Event;
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* <p>AlignmentOption</p>
|
|
96
|
+
*/
|
|
97
|
+
enum AlignmentOption
|
|
98
|
+
{
|
|
99
|
+
TOP = 0,
|
|
100
|
+
BOTTOM = 1
|
|
101
|
+
}
|
|
102
|
+
namespace AlignmentOption
|
|
103
|
+
{
|
|
104
|
+
/**
|
|
105
|
+
* <p>Gets the lowercase name of the option value.</p>
|
|
106
|
+
* @param value - <p>The enum value.</p>
|
|
107
|
+
*/
|
|
108
|
+
function getName(value: componyx.UI.TabStrip.AlignmentOption): string;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* <p>Creates an instance of the TabStrip item.</p>
|
|
112
|
+
* @property content - <p>Gets or sets the content template of the item.</p>
|
|
113
|
+
* @property hasIcon - <p>Gets or sets a value indicating if the item has an icon.</p>
|
|
114
|
+
* @property cssClassIcon - <p>Gets or sets the css class of the icon.</p>
|
|
115
|
+
* @property iconURL - <p>Gets or sets the URL of the icon.</p>
|
|
116
|
+
* @property split - <p>Gets or sets a value indicating if the button has two actions.</p>
|
|
117
|
+
* @property transparent - <p>Gets or sets a value indicating if the button's default background color is transparent.</p>
|
|
118
|
+
* @property transparentBorder - <p>Gets or sets a value indicating if the button's default border color is transparent.</p>
|
|
119
|
+
* @property primary - <p>Gets or sets a value indicating if the button is a primary button. When disabled the button's default style will be less prominent (basic) unless styled otherwise.</p>
|
|
120
|
+
* @property decoration - <p>Gets or sets the decoration type used when the button is hovered/selected.</p>
|
|
121
|
+
* @property menuId - <p>Gets or sets the id of the menu component.</p>
|
|
122
|
+
* @property menuItemId - <p>Gets or sets the id of the menu item.</p>
|
|
123
|
+
* @property boxId - <p>Gets or sets the id of the box component.</p>
|
|
124
|
+
* @property buttonId - <p>Gets or sets the id of the button component.</p>
|
|
125
|
+
* @param properties - <p>The properties used to initialize the object.</p>
|
|
126
|
+
*/
|
|
127
|
+
class Item extends componyx.UI.base.static.Item
|
|
128
|
+
{
|
|
129
|
+
constructor(properties: any);
|
|
130
|
+
/**
|
|
131
|
+
* <p>Gets or sets the content template of the item.</p>
|
|
132
|
+
*/
|
|
133
|
+
content: HTMLElement[] | HTMLElement;
|
|
134
|
+
/**
|
|
135
|
+
* <p>Gets or sets a value indicating if the item has an icon.</p>
|
|
136
|
+
*/
|
|
137
|
+
hasIcon: boolean;
|
|
138
|
+
/**
|
|
139
|
+
* <p>Gets or sets the css class of the icon.</p>
|
|
140
|
+
*/
|
|
141
|
+
cssClassIcon: string;
|
|
142
|
+
/**
|
|
143
|
+
* <p>Gets or sets the URL of the icon.</p>
|
|
144
|
+
*/
|
|
145
|
+
iconURL: string;
|
|
146
|
+
/**
|
|
147
|
+
* <p>Gets or sets a value indicating if the button has two actions.</p>
|
|
148
|
+
*/
|
|
149
|
+
split: boolean;
|
|
150
|
+
/**
|
|
151
|
+
* <p>Gets or sets a value indicating if the button's default background color is transparent.</p>
|
|
152
|
+
*/
|
|
153
|
+
transparent: boolean;
|
|
154
|
+
/**
|
|
155
|
+
* <p>Gets or sets a value indicating if the button's default border color is transparent.</p>
|
|
156
|
+
*/
|
|
157
|
+
transparentBorder: boolean;
|
|
158
|
+
/**
|
|
159
|
+
* <p>Gets or sets a value indicating if the button is a primary button. When disabled the button's default style will be less prominent (basic) unless styled otherwise.</p>
|
|
160
|
+
*/
|
|
161
|
+
primary: boolean;
|
|
162
|
+
/**
|
|
163
|
+
* <p>Gets or sets the decoration type used when the button is hovered/selected.</p>
|
|
164
|
+
*/
|
|
165
|
+
decoration: Button.DecorationOption;
|
|
166
|
+
/**
|
|
167
|
+
* <p>Gets or sets the id of the menu component.</p>
|
|
168
|
+
*/
|
|
169
|
+
menuId: string;
|
|
170
|
+
/**
|
|
171
|
+
* <p>Gets or sets the id of the menu item.</p>
|
|
172
|
+
*/
|
|
173
|
+
menuItemId: string;
|
|
174
|
+
/**
|
|
175
|
+
* <p>Gets or sets the id of the box component.</p>
|
|
176
|
+
*/
|
|
177
|
+
boxId: string;
|
|
178
|
+
/**
|
|
179
|
+
* <p>Gets or sets the id of the button component.</p>
|
|
180
|
+
*/
|
|
181
|
+
buttonId: string;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
declare namespace componyx
|
|
2
|
+
{
|
|
3
|
+
namespace UI
|
|
4
|
+
{
|
|
5
|
+
interface TimePicker extends componyx.UI.base.methods { }
|
|
6
|
+
/**
|
|
7
|
+
* <p>TimePicker class.</p>
|
|
8
|
+
* @property cssClassNumericBox - <p>Gets or sets the css class of the numericbox.</p>
|
|
9
|
+
* @property cssClassHour - <p>Gets or sets the css class of the hour input.</p>
|
|
10
|
+
* @property cssClassMinute - <p>Gets or sets the css class of the minute input.</p>
|
|
11
|
+
* @property hourPlaceholder - <p>Gets or sets the placeholder which is visible when the hour input box has no value. Default: HH.</p>
|
|
12
|
+
* @property minutePlaceholder - <p>Gets or sets the placeholder which is visible when the minute input box has no value. Default: MM.</p>
|
|
13
|
+
* @property readOnly - <p>Gets or sets a value indicating whether the timepicker is readonly.</p>
|
|
14
|
+
* @property disabled - <p>Gets or sets a value indicating whether the timepicker is disabled.</p>
|
|
15
|
+
* @property autoFocus - <p>Gets or sets a value indicating whether focus on an input field is automaticly moved to the next field while typing.</p>
|
|
16
|
+
* @property hourLeadingZero - <p>Gets or sets a value indicating whether a leading zero is added to the hour input box if it is not provided. Default: true.</p>
|
|
17
|
+
* @property is24HourClock - <p>Gets or sets a value indicating whether a 12 or 24 hour clock is used.</p>
|
|
18
|
+
* @property meridiemValue - <p>Gets or sets the meridiem value if its not set to a 24 hour clock.</p>
|
|
19
|
+
* @property name - <p>Gets or sets the hidden input field name which contains the selected time value.</p>
|
|
20
|
+
* @property value - <p>Gets or sets the the selected time value in format 'HH:MM'.</p>
|
|
21
|
+
* @property minValue - <p>Gets or sets the minimum allowed time in format 'HH:MM'. Minutes must be divisible by 5.</p>
|
|
22
|
+
* @property maxValue - <p>Gets or sets the maximum allowed time in format 'HH:MM'. Minutes must be divisible by 5.</p>
|
|
23
|
+
* @property incrementalValue - <p>Gets or sets the incremental value in minutes. Minutes must be divisible by 5.</p>
|
|
24
|
+
* @property allowedTimes - <p>Gets or sets a list of allowed clock times (format 'HH:MM'). Separate two date strings with a space to specify allowed range. When allowed times are set, date input fields are rendered in readonly mode.</p>
|
|
25
|
+
* @property disallowTimes - <p>Gets or sets a value indicating if the times specified in the times property are disallowed instead of the default allowed.</p>
|
|
26
|
+
* @property viewMode - <p>Gets or sets the view mode in which the time picker is rendered.</p>
|
|
27
|
+
* @property hourNumericBoxId - <p>Gets or sets the id of the hour numeric box from which the settings are cloned.</p>
|
|
28
|
+
* @property minuteNumericBoxId - <p>Gets or sets the id of the minute numeric box from which the settings are cloned.</p>
|
|
29
|
+
* @property clockDialogId - <p>Gets or sets the id of the clock dialog from which the settings are cloned.</p>
|
|
30
|
+
* @property pmButtonId - <p>Gets or sets the id of the post meridiem (PM) button from which the settings are cloned.</p>
|
|
31
|
+
* @property amButtonId - <p>Gets or sets the id of the ante meridiem (AM) button from which the settings are cloned.</p>
|
|
32
|
+
* @property pickerButtonId - <p>Gets or sets the id of the picker button from which the settings are cloned.</p>
|
|
33
|
+
* @property hiddenInputId - <p>Gets or sets the id of the hidden input from which the settings are cloned.</p>
|
|
34
|
+
* @param id - <p>The id of the component.</p>
|
|
35
|
+
* @param properties - <p>The properties used to initialize the component or the container element.</p>
|
|
36
|
+
*/
|
|
37
|
+
class TimePicker extends componyx.UI.base.Component implements componyx.UI.base.methods
|
|
38
|
+
{
|
|
39
|
+
constructor(id: string, properties: any | HTMLElement);
|
|
40
|
+
/**
|
|
41
|
+
* <p>TimePicker events</p>
|
|
42
|
+
*/
|
|
43
|
+
events: componyx.UI.TimePicker.TimePickerEvents;
|
|
44
|
+
/**
|
|
45
|
+
* <p>Resets the inputs to the initial value.</p>
|
|
46
|
+
* @param [fireEvent = false] - <p>A value indicating if the onChanged event is fired.</p>
|
|
47
|
+
*/
|
|
48
|
+
reset(fireEvent?: boolean): void;
|
|
49
|
+
/**
|
|
50
|
+
* <p>Clears the input values.</p>
|
|
51
|
+
* @param [fireEvent = false] - <p>A value indicating if the onChanged event is fired.</p>
|
|
52
|
+
*/
|
|
53
|
+
clear(fireEvent?: boolean): void;
|
|
54
|
+
/**
|
|
55
|
+
* <p>Selects the text of the first input field of the timepicker.</p>
|
|
56
|
+
*/
|
|
57
|
+
select(): void;
|
|
58
|
+
/**
|
|
59
|
+
* <p>Gets the hour value from the timepicker.</p>
|
|
60
|
+
* @returns <p>Hour value.</p>
|
|
61
|
+
*/
|
|
62
|
+
getHour(): number;
|
|
63
|
+
/**
|
|
64
|
+
* @returns <p>Minute value.</p>
|
|
65
|
+
*/
|
|
66
|
+
getMinute(): number;
|
|
67
|
+
/**
|
|
68
|
+
* <p>Gets the time value in string format.</p>
|
|
69
|
+
* @returns <p>Time value in the format 'hour:minute'.</p>
|
|
70
|
+
*/
|
|
71
|
+
getValue(): string;
|
|
72
|
+
/**
|
|
73
|
+
* <p>Sets the time value.</p>
|
|
74
|
+
* @param value - <p>The time value in the format hour:minute.</p>
|
|
75
|
+
* @param [fireEvent = false] - <p>A value indicating if the onChanged event is fired.</p>
|
|
76
|
+
*/
|
|
77
|
+
setValue(value: string, fireEvent?: boolean): void;
|
|
78
|
+
/**
|
|
79
|
+
* <p>Gets a value indicating if the time is before or after noon.</p>
|
|
80
|
+
* @returns <p>PM or AM.</p>
|
|
81
|
+
*/
|
|
82
|
+
getMeridiemValue(): string;
|
|
83
|
+
/**
|
|
84
|
+
* <p>Sets a value indicating if the time is before or after noon.</p>
|
|
85
|
+
* @param value - <p>PM or AM.</p>
|
|
86
|
+
*/
|
|
87
|
+
setMeridiemValue(value: string): void;
|
|
88
|
+
/**
|
|
89
|
+
* <p>Shows the clock.</p>
|
|
90
|
+
*/
|
|
91
|
+
showClock(): void;
|
|
92
|
+
/**
|
|
93
|
+
* <p>Hides the clock.</p>
|
|
94
|
+
*/
|
|
95
|
+
hideClock(): void;
|
|
96
|
+
/**
|
|
97
|
+
* <p>Selects the hour clock.</p>
|
|
98
|
+
*/
|
|
99
|
+
selectHourClock(): void;
|
|
100
|
+
/**
|
|
101
|
+
* <p>Selects the minute clock.</p>
|
|
102
|
+
*/
|
|
103
|
+
selectMinuteClock(): void;
|
|
104
|
+
/**
|
|
105
|
+
* <p>Renders the component</p>
|
|
106
|
+
*/
|
|
107
|
+
render(): void;
|
|
108
|
+
/**
|
|
109
|
+
* <p>Handles the post render procedure.</p>
|
|
110
|
+
*/
|
|
111
|
+
postRender(): void;
|
|
112
|
+
/**
|
|
113
|
+
* <p>Destroys the component.</p>
|
|
114
|
+
* @param keepEvents - <p>A value indicating if the events must be kept.</p>
|
|
115
|
+
* @param [removeElement = true] - <p>A value indicating if the element must be removed.</p>
|
|
116
|
+
*/
|
|
117
|
+
destroy(keepEvents: boolean, removeElement?: boolean): void;
|
|
118
|
+
/**
|
|
119
|
+
* <p>Gets or sets the css class of the numericbox.</p>
|
|
120
|
+
*/
|
|
121
|
+
cssClassNumericBox: string;
|
|
122
|
+
/**
|
|
123
|
+
* <p>Gets or sets the css class of the hour input.</p>
|
|
124
|
+
*/
|
|
125
|
+
cssClassHour: string;
|
|
126
|
+
/**
|
|
127
|
+
* <p>Gets or sets the css class of the minute input.</p>
|
|
128
|
+
*/
|
|
129
|
+
cssClassMinute: string;
|
|
130
|
+
/**
|
|
131
|
+
* <p>Gets or sets the placeholder which is visible when the hour input box has no value. Default: HH.</p>
|
|
132
|
+
*/
|
|
133
|
+
hourPlaceholder: string;
|
|
134
|
+
/**
|
|
135
|
+
* <p>Gets or sets the placeholder which is visible when the minute input box has no value. Default: MM.</p>
|
|
136
|
+
*/
|
|
137
|
+
minutePlaceholder: string;
|
|
138
|
+
/**
|
|
139
|
+
* <p>Gets or sets a value indicating whether the timepicker is readonly.</p>
|
|
140
|
+
*/
|
|
141
|
+
readOnly: boolean;
|
|
142
|
+
/**
|
|
143
|
+
* <p>Gets or sets a value indicating whether the timepicker is disabled.</p>
|
|
144
|
+
*/
|
|
145
|
+
disabled: boolean;
|
|
146
|
+
/**
|
|
147
|
+
* <p>Gets or sets a value indicating whether focus on an input field is automaticly moved to the next field while typing.</p>
|
|
148
|
+
*/
|
|
149
|
+
autoFocus: boolean;
|
|
150
|
+
/**
|
|
151
|
+
* <p>Gets or sets a value indicating whether a leading zero is added to the hour input box if it is not provided. Default: true.</p>
|
|
152
|
+
*/
|
|
153
|
+
hourLeadingZero: boolean;
|
|
154
|
+
/**
|
|
155
|
+
* <p>Gets or sets a value indicating whether a 12 or 24 hour clock is used.</p>
|
|
156
|
+
*/
|
|
157
|
+
is24HourClock: boolean;
|
|
158
|
+
/**
|
|
159
|
+
* <p>Gets or sets the meridiem value if its not set to a 24 hour clock.</p>
|
|
160
|
+
*/
|
|
161
|
+
meridiemValue: string;
|
|
162
|
+
/**
|
|
163
|
+
* <p>Gets or sets the hidden input field name which contains the selected time value.</p>
|
|
164
|
+
*/
|
|
165
|
+
name: string;
|
|
166
|
+
/**
|
|
167
|
+
* <p>Gets or sets the the selected time value in format 'HH:MM'.</p>
|
|
168
|
+
*/
|
|
169
|
+
value: string | null;
|
|
170
|
+
/**
|
|
171
|
+
* <p>Gets or sets the minimum allowed time in format 'HH:MM'. Minutes must be divisible by 5.</p>
|
|
172
|
+
*/
|
|
173
|
+
minValue: string | null;
|
|
174
|
+
/**
|
|
175
|
+
* <p>Gets or sets the maximum allowed time in format 'HH:MM'. Minutes must be divisible by 5.</p>
|
|
176
|
+
*/
|
|
177
|
+
maxValue: string | null;
|
|
178
|
+
/**
|
|
179
|
+
* <p>Gets or sets the incremental value in minutes. Minutes must be divisible by 5.</p>
|
|
180
|
+
*/
|
|
181
|
+
incrementalValue: number | null;
|
|
182
|
+
/**
|
|
183
|
+
* <p>Gets or sets a list of allowed clock times (format 'HH:MM'). Separate two date strings with a space to specify allowed range. When allowed times are set, date input fields are rendered in readonly mode.</p>
|
|
184
|
+
*/
|
|
185
|
+
allowedTimes: String[];
|
|
186
|
+
/**
|
|
187
|
+
* <p>Gets or sets a value indicating if the times specified in the times property are disallowed instead of the default allowed.</p>
|
|
188
|
+
*/
|
|
189
|
+
disallowTimes: boolean;
|
|
190
|
+
/**
|
|
191
|
+
* <p>Gets or sets the view mode in which the time picker is rendered.</p>
|
|
192
|
+
*/
|
|
193
|
+
viewMode: componyx.UI.TimePicker.ViewModeOption;
|
|
194
|
+
/**
|
|
195
|
+
* <p>Gets or sets the id of the hour numeric box from which the settings are cloned.</p>
|
|
196
|
+
*/
|
|
197
|
+
hourNumericBoxId: string | null;
|
|
198
|
+
/**
|
|
199
|
+
* <p>Gets or sets the id of the minute numeric box from which the settings are cloned.</p>
|
|
200
|
+
*/
|
|
201
|
+
minuteNumericBoxId: string | null;
|
|
202
|
+
/**
|
|
203
|
+
* <p>Gets or sets the id of the clock dialog from which the settings are cloned.</p>
|
|
204
|
+
*/
|
|
205
|
+
clockDialogId: string | null;
|
|
206
|
+
/**
|
|
207
|
+
* <p>Gets or sets the id of the post meridiem (PM) button from which the settings are cloned.</p>
|
|
208
|
+
*/
|
|
209
|
+
pmButtonId: string | null;
|
|
210
|
+
/**
|
|
211
|
+
* <p>Gets or sets the id of the ante meridiem (AM) button from which the settings are cloned.</p>
|
|
212
|
+
*/
|
|
213
|
+
amButtonId: string | null;
|
|
214
|
+
/**
|
|
215
|
+
* <p>Gets or sets the id of the picker button from which the settings are cloned.</p>
|
|
216
|
+
*/
|
|
217
|
+
pickerButtonId: string | null;
|
|
218
|
+
/**
|
|
219
|
+
* <p>Gets or sets the id of the hidden input from which the settings are cloned.</p>
|
|
220
|
+
*/
|
|
221
|
+
hiddenInputId: string | null;
|
|
222
|
+
}
|
|
223
|
+
namespace TimePicker
|
|
224
|
+
{
|
|
225
|
+
/**
|
|
226
|
+
* @property onFocus - <p>Event which fires when the time picker is focused.</p>
|
|
227
|
+
* @property onBlur - <p>Event which fires when the time picker is blurred.</p>
|
|
228
|
+
* @property onChanged - <p>Event which fires when the value has changed.</p>
|
|
229
|
+
*/
|
|
230
|
+
class TimePickerEvents extends componyx.UI.base.Events<componyx.UI.TimePicker>
|
|
231
|
+
{
|
|
232
|
+
constructor();
|
|
233
|
+
/**
|
|
234
|
+
* <p>Event which fires when the time picker is focused.</p>
|
|
235
|
+
*/
|
|
236
|
+
onFocus: componyx.UI.base.Event<componyx.UI.TimePicker, undefined>;
|
|
237
|
+
/**
|
|
238
|
+
* <p>Event which fires when the time picker is blurred.</p>
|
|
239
|
+
*/
|
|
240
|
+
onBlur: componyx.UI.base.Event<componyx.UI.TimePicker, undefined>;
|
|
241
|
+
/**
|
|
242
|
+
* <p>Event which fires when the value has changed.</p>
|
|
243
|
+
*/
|
|
244
|
+
onChanged: componyx.UI.base.Event<componyx.UI.TimePicker, componyx.UI.TimePicker.ChangedEventArgs>;
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* <p>TimePicker changed event arguments.</p>
|
|
248
|
+
*/
|
|
249
|
+
type ChangedEventArgs = {
|
|
250
|
+
/** <p>The time value in the format 'HH:MM'.</p> */
|
|
251
|
+
value: string;
|
|
252
|
+
};
|
|
253
|
+
/**
|
|
254
|
+
* <p>ViewModeOption</p>
|
|
255
|
+
*/
|
|
256
|
+
enum ViewModeOption
|
|
257
|
+
{
|
|
258
|
+
INPUT_CLOCK_POPUP = 0,
|
|
259
|
+
INPUT_CLOCK_STATIC = 1,
|
|
260
|
+
INPUT = 2,
|
|
261
|
+
CLOCK = 3
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
declare namespace componyx
|
|
2
|
+
{
|
|
3
|
+
namespace UI
|
|
4
|
+
{
|
|
5
|
+
interface TooltipManager extends componyx.UI.base.methods { }
|
|
6
|
+
/**
|
|
7
|
+
* <p>TooltipManager class.</p>
|
|
8
|
+
*/
|
|
9
|
+
class TooltipManager extends componyx.UI.base.Component implements componyx.UI.base.methods
|
|
10
|
+
{
|
|
11
|
+
/**
|
|
12
|
+
* Creates a new TooltipManager 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<TooltipManager> | HTMLElement);
|
|
17
|
+
/**
|
|
18
|
+
* <p>Gets the instance of the Box component used to display the tooltips.</p>
|
|
19
|
+
* @param [tooltipId] - <p>Id of the tooltip template.</p>
|
|
20
|
+
* @returns <p>The Box component used to display the tooltips.</p>
|
|
21
|
+
*/
|
|
22
|
+
getBox(tooltipId?: string): componyx.UI.Box;
|
|
23
|
+
/**
|
|
24
|
+
* <p>Gets the active trigger id.</p>
|
|
25
|
+
* @param [tooltipId] - <p>Id of the tooltip template.</p>
|
|
26
|
+
* @returns <p>The active trigger id.</p>
|
|
27
|
+
*/
|
|
28
|
+
activeTriggerId(tooltipId?: string): string | HTMLElement;
|
|
29
|
+
/**
|
|
30
|
+
* <p>Adds a tooltip template.</p>
|
|
31
|
+
* @param id - <p>Id of the tooltip template.</p>
|
|
32
|
+
* @param content - <p>Template content.</p>
|
|
33
|
+
* @param [cloneable] - <p>Defines if the template can be cloned for multiple views. Defaults to true.</p>
|
|
34
|
+
*/
|
|
35
|
+
addTooltip(id: string, content: HTMLElement | HTMLElement[] | DocumentFragment | string, cloneable?: boolean): void;
|
|
36
|
+
/**
|
|
37
|
+
* <p>Removes a tooltip template.</p>
|
|
38
|
+
* @param id - <p>Id of the tooltip template.</p>
|
|
39
|
+
* @param [keepTriggers = false] - <p>A value indicating if the tooltip triggers should be kept.</p>
|
|
40
|
+
*/
|
|
41
|
+
removeTooltip(id: string, keepTriggers?: boolean): void;
|
|
42
|
+
/**
|
|
43
|
+
* <p>Adds a tooltip trigger.</p>
|
|
44
|
+
* @param triggerId - <p>The trigger element or element id that triggers the tooltip display.</p>
|
|
45
|
+
* @param tooltipId - <p>The id of the tooltip template.</p>
|
|
46
|
+
* @param [showOnPointerEvent] - <p>Gets or sets a value which defines on which pointer event the tooltip is shown.</p>
|
|
47
|
+
* @param [showOnFocus] - <p>Sets a value indicating if the tooltip is shown on a focus event.</p>
|
|
48
|
+
* @param [showOnBlur] - <p>Sets a value indicating if the tooltip is shown on a blur event.</p>
|
|
49
|
+
*/
|
|
50
|
+
addTrigger(triggerId: string | HTMLElement, tooltipId: string, showOnPointerEvent?: componyx.UI.TooltipManager.PointerEventOption, showOnFocus?: boolean, showOnBlur?: boolean): void;
|
|
51
|
+
/**
|
|
52
|
+
* <p>Removes a tooltip trigger.</p>
|
|
53
|
+
* @param triggerId - <p>The trigger element or element id that triggers the tooltip display.</p>
|
|
54
|
+
*/
|
|
55
|
+
removeTrigger(triggerId: string | HTMLElement): void;
|
|
56
|
+
/**
|
|
57
|
+
* <p>Shows the tooltip with the specified triggerId.</p>
|
|
58
|
+
* @param triggerId - <p>The trigger element or element id that triggers the tooltip display.</p>
|
|
59
|
+
* @param [fromPointerDown] - <p>Set to true when called from a pointerdown handler, so the tooltip is not hidden by the pointerdown on the document that follows. Defaults to false.</p>
|
|
60
|
+
*/
|
|
61
|
+
showTooltip(triggerId: string | HTMLElement, fromPointerDown?: boolean): void;
|
|
62
|
+
/**
|
|
63
|
+
* <p>Hides the tooltip with the specified triggerId.</p>
|
|
64
|
+
* @param [triggerId] - <p>The trigger element or element id that triggered the tooltip. When a value is provided the tooltip is hidden only if current trigger id matches the specified value.</p>
|
|
65
|
+
* @param [instant] - <p>A value indicating if the tooltip should be hidden instantly without animation.</p>
|
|
66
|
+
*/
|
|
67
|
+
hideTooltip(triggerId?: string, instant?: boolean): void;
|
|
68
|
+
/**
|
|
69
|
+
* <p>Hides all tooltips.</p>
|
|
70
|
+
* @param [instant] - <p>A value indicating if the tooltip should be hidden instantly without animation.</p>
|
|
71
|
+
*/
|
|
72
|
+
hideAllTooltips(instant?: boolean): void;
|
|
73
|
+
/**
|
|
74
|
+
* <p>Sets a value indicating if tooltip hiding is allowed.</p>
|
|
75
|
+
* @param [value] - <p>A value indicating if tooltip hiding is allowed.</p>
|
|
76
|
+
*/
|
|
77
|
+
allowHide(value?: boolean): void;
|
|
78
|
+
/**
|
|
79
|
+
* <p>Renders the component.</p>
|
|
80
|
+
*/
|
|
81
|
+
render(): void;
|
|
82
|
+
/**
|
|
83
|
+
* <p>Destroys the component.</p>
|
|
84
|
+
* @param keepEvents - <p>A value indicating if component events should be kept.</p>
|
|
85
|
+
* @param [removeElement = true] - <p>A value indicating if the corresponding HTML Element should be removed.</p>
|
|
86
|
+
*/
|
|
87
|
+
destroy(keepEvents: boolean, removeElement?: boolean): void;
|
|
88
|
+
/**
|
|
89
|
+
* <p>Gets or sets the css class of the tooltip box.</p>
|
|
90
|
+
*/
|
|
91
|
+
cssClassBox: string;
|
|
92
|
+
/**
|
|
93
|
+
* <p>Gets or sets the time in ms that tooltips remains visible (0 to keep visible).</p>
|
|
94
|
+
*/
|
|
95
|
+
visibleDuration: number | null;
|
|
96
|
+
/**
|
|
97
|
+
* <p>Gets or sets a value which defines on which pointer event the tooltip is shown.</p>
|
|
98
|
+
*/
|
|
99
|
+
showOnPointerEvent: componyx.UI.TooltipManager.PointerEventOption;
|
|
100
|
+
/**
|
|
101
|
+
* <p>Gets or sets a value indicating if the tooltip is shown on a focus event.</p>
|
|
102
|
+
*/
|
|
103
|
+
showOnFocus: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* <p>Gets or sets a value indicating if the tooltip is shown on a blur event.</p>
|
|
106
|
+
*/
|
|
107
|
+
showOnBlur: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* <p>Gets or sets a value indicating if tooltip content is selectable, which means that the tooltip will remain visible on a pointer enter/click event.</p>
|
|
110
|
+
*/
|
|
111
|
+
selectableTooltipContent: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* <p>Gets or sets the time in ms before the tooltip is displayed.</p>
|
|
114
|
+
*/
|
|
115
|
+
showDelay: number;
|
|
116
|
+
/**
|
|
117
|
+
* <p>Gets or sets the time in ms before the tooltip is hidden.</p>
|
|
118
|
+
*/
|
|
119
|
+
hideDelay: number;
|
|
120
|
+
/**
|
|
121
|
+
* <p>Gets or sets a value indicating if the direction arrow styles should be applied.</p>
|
|
122
|
+
*/
|
|
123
|
+
arrowless: boolean;
|
|
124
|
+
/**
|
|
125
|
+
* <p>Gets or sets a value indicating if a single box instance is used to display tooltips (defaults to true). When set to false multiple tooltips can be visible at the same time. Only set to false when required because a single instance has less overhead.</p>
|
|
126
|
+
*/
|
|
127
|
+
singleBoxInstance: boolean;
|
|
128
|
+
/**
|
|
129
|
+
* <p>Gets or sets the list of tooltip triggers.</p>
|
|
130
|
+
*/
|
|
131
|
+
triggers: componyx.UI.TooltipManager.Trigger[];
|
|
132
|
+
/**
|
|
133
|
+
* <p>Gets or sets the clientid of the tooltip box.</p>
|
|
134
|
+
*/
|
|
135
|
+
boxId: string | null;
|
|
136
|
+
}
|
|
137
|
+
namespace TooltipManager
|
|
138
|
+
{
|
|
139
|
+
/**
|
|
140
|
+
* <p>PointerEventOption</p>
|
|
141
|
+
*/
|
|
142
|
+
enum PointerEventOption
|
|
143
|
+
{
|
|
144
|
+
NONE = 0,
|
|
145
|
+
ENTER = 1,
|
|
146
|
+
DOWN = 2,
|
|
147
|
+
CONTEXT = 3
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* <p>Creates an instance of the Trigger.</p>
|
|
151
|
+
*/
|
|
152
|
+
class Trigger
|
|
153
|
+
{
|
|
154
|
+
constructor();
|
|
155
|
+
/**
|
|
156
|
+
* <p>Gets or sets the id of the trigger element.</p>
|
|
157
|
+
*/
|
|
158
|
+
triggerId: string;
|
|
159
|
+
/**
|
|
160
|
+
* <p>Gets or sets the id of the tooltip template.</p>
|
|
161
|
+
*/
|
|
162
|
+
tooltipId: string;
|
|
163
|
+
/**
|
|
164
|
+
* <p>Gets or sets a value which defines on which pointer event the tooltip is shown.</p>
|
|
165
|
+
*/
|
|
166
|
+
showOnPointerEvent: PointerEventOption;
|
|
167
|
+
/**
|
|
168
|
+
* <p>Gets or sets a value indicating if the tooltip is shown on a focus event.</p>
|
|
169
|
+
*/
|
|
170
|
+
showOnFocus: boolean;
|
|
171
|
+
/**
|
|
172
|
+
* <p>Gets or sets a value indicating if the tooltip is shown on a blur event.</p>
|
|
173
|
+
*/
|
|
174
|
+
showOnBlur: boolean;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
package/types/UI.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/// <reference path="Library.d.ts" />
|
|
2
|
+
/// <reference path="Bindary.d.ts" />
|
|
3
|
+
/// <reference path="Base.d.ts" />
|
|
4
|
+
/// <reference path="AppSkin.d.ts" />
|
|
5
|
+
/// <reference path="BookmarkSpy.d.ts" />
|
|
6
|
+
/// <reference path="Box.d.ts" />
|
|
7
|
+
/// <reference path="Button.d.ts" />
|
|
8
|
+
/// <reference path="Carousel.d.ts" />
|
|
9
|
+
/// <reference path="ColorButton.d.ts" />
|
|
10
|
+
/// <reference path="ColorPicker.d.ts" />
|
|
11
|
+
/// <reference path="ComboBox.d.ts" />
|
|
12
|
+
/// <reference path="DataPager.d.ts" />
|
|
13
|
+
/// <reference path="DatePicker.d.ts" />
|
|
14
|
+
/// <reference path="Dialog.d.ts" />
|
|
15
|
+
/// <reference path="Editor.d.ts" />
|
|
16
|
+
/// <reference path="FileUpload.d.ts" />
|
|
17
|
+
/// <reference path="Form.d.ts" />
|
|
18
|
+
/// <reference path="FormField.d.ts" />
|
|
19
|
+
/// <reference path="Grid.d.ts" />
|
|
20
|
+
/// <reference path="MaskedTextBox.d.ts" />
|
|
21
|
+
/// <reference path="Menu.d.ts" />
|
|
22
|
+
/// <reference path="NumericBox.d.ts" />
|
|
23
|
+
/// <reference path="PanelBar.d.ts" />
|
|
24
|
+
/// <reference path="PieChart.d.ts" />
|
|
25
|
+
/// <reference path="Slider.d.ts" />
|
|
26
|
+
/// <reference path="TabStrip.d.ts" />
|
|
27
|
+
/// <reference path="TimePicker.d.ts" />
|
|
28
|
+
/// <reference path="TooltipManager.d.ts" />
|
|
29
|
+
/// <reference path="Validator.d.ts" />
|