@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,204 @@
|
|
|
1
|
+
declare namespace componyx
|
|
2
|
+
{
|
|
3
|
+
namespace UI
|
|
4
|
+
{
|
|
5
|
+
interface FormField extends componyx.UI.base.methods { }
|
|
6
|
+
/**
|
|
7
|
+
* <p>FormField class.</p>
|
|
8
|
+
* @param id - <p>The id of the component.</p>
|
|
9
|
+
* @param properties - <p>The properties used to initialize the component or the container element.</p>
|
|
10
|
+
*/
|
|
11
|
+
class FormField extends componyx.UI.base.Component implements componyx.UI.base.methods
|
|
12
|
+
{
|
|
13
|
+
constructor(id: string, properties: any | HTMLElement);
|
|
14
|
+
/**
|
|
15
|
+
* <p>Enables or disables the inline state of the form field.</p>
|
|
16
|
+
* @param enable - <p>A value indicating if the option should be enabled or disabled.</p>
|
|
17
|
+
*/
|
|
18
|
+
setInline(enable: boolean): void;
|
|
19
|
+
/**
|
|
20
|
+
* <p>Enables or disables the required state of the form field.</p>
|
|
21
|
+
* @param enable - <p>A value indicating if the option should be enabled or disabled.</p>
|
|
22
|
+
*/
|
|
23
|
+
setRequired(enable: boolean): void;
|
|
24
|
+
/**
|
|
25
|
+
* <p>Enables or disables the borderless field style.</p>
|
|
26
|
+
* @param enable - <p>A value indicating if the option should be enabled or disabled.</p>
|
|
27
|
+
*/
|
|
28
|
+
setBorderless(enable: boolean): void;
|
|
29
|
+
/**
|
|
30
|
+
* <p>Enables or disables the transparent field style.</p>
|
|
31
|
+
* @param enable - <p>A value indicating if the option should be enabled or disabled.</p>
|
|
32
|
+
*/
|
|
33
|
+
setTransparent(enable: boolean): void;
|
|
34
|
+
/**
|
|
35
|
+
* <p>Enables or disables the switch field style.</p>
|
|
36
|
+
* @param enable - <p>A value indicating if the option should be enabled or disabled.</p>
|
|
37
|
+
*/
|
|
38
|
+
setSwitch(enable: boolean): void;
|
|
39
|
+
/**
|
|
40
|
+
* <p>Sets the label display type (inside above before after).</p>
|
|
41
|
+
* @param display - <p>The label display option.</p>
|
|
42
|
+
*/
|
|
43
|
+
setLabelDisplay(display: componyx.UI.FormField.LabelDisplayOption): void;
|
|
44
|
+
/**
|
|
45
|
+
* <p>Adds the content template for the label.</p>
|
|
46
|
+
* @param content - <p>The label template content.</p>
|
|
47
|
+
*/
|
|
48
|
+
setLabelTemplate(content: HTMLElement | HTMLElement[] | DocumentFragment | string): void;
|
|
49
|
+
/**
|
|
50
|
+
* <p>Adds the content template for the field.</p>
|
|
51
|
+
* @param content - <p>The field template content.</p>
|
|
52
|
+
*/
|
|
53
|
+
setFieldTemplate(content: HTMLElement | HTMLElement[] | DocumentFragment | string): void;
|
|
54
|
+
/**
|
|
55
|
+
* <p>Updates the label.</p>
|
|
56
|
+
* @param content - <p>The label template content.</p>
|
|
57
|
+
*/
|
|
58
|
+
updateLabel(content: HTMLElement | HTMLElement[] | DocumentFragment | string): void;
|
|
59
|
+
/**
|
|
60
|
+
* <p>Links the label to the nested input by setting htmlFor and, if necessary, assigning an ID to the input.
|
|
61
|
+
* Adds a placeholder attribute if missing to support CSS styling.</p>
|
|
62
|
+
*/
|
|
63
|
+
linkLabelToInput(): void;
|
|
64
|
+
/**
|
|
65
|
+
* <p>Recreates the tooltip icon for the element and updates its trigger in the tooltip manager.</p>
|
|
66
|
+
*/
|
|
67
|
+
updateTooltip(): void;
|
|
68
|
+
/**
|
|
69
|
+
* <p>Disables the form field.</p>
|
|
70
|
+
*/
|
|
71
|
+
disable(): void;
|
|
72
|
+
/**
|
|
73
|
+
* <p>Enables the form field.</p>
|
|
74
|
+
*/
|
|
75
|
+
enable(): void;
|
|
76
|
+
/**
|
|
77
|
+
* <p>Renders the component</p>
|
|
78
|
+
*/
|
|
79
|
+
render(): void;
|
|
80
|
+
/**
|
|
81
|
+
* <p>Handles the post render procedure.</p>
|
|
82
|
+
*/
|
|
83
|
+
postRender(): void;
|
|
84
|
+
/**
|
|
85
|
+
* <p>Gets or sets the css class which is appended to the formfield class when inline is enabled.</p>
|
|
86
|
+
*/
|
|
87
|
+
cssClassInline: string;
|
|
88
|
+
/**
|
|
89
|
+
* <p>Gets or sets the css class which is appended to the formfield class when required is enabled.</p>
|
|
90
|
+
*/
|
|
91
|
+
cssClassRequired: string;
|
|
92
|
+
/**
|
|
93
|
+
* <p>Gets or sets the css class which is appended to the formfield class when borderless is enabled.</p>
|
|
94
|
+
*/
|
|
95
|
+
cssClassBorderless: string;
|
|
96
|
+
/**
|
|
97
|
+
* <p>Gets or sets the css class which is appended to the formfield class when transparent is enabled.</p>
|
|
98
|
+
*/
|
|
99
|
+
cssClassTransparent: string;
|
|
100
|
+
/**
|
|
101
|
+
* <p>Gets or sets the css class which is appended to the formfield class when switch is enabled.</p>
|
|
102
|
+
*/
|
|
103
|
+
cssClassSwitch: string;
|
|
104
|
+
/**
|
|
105
|
+
* <p>Gets or sets the css class of the form field label element.</p>
|
|
106
|
+
*/
|
|
107
|
+
cssClassLabel: string;
|
|
108
|
+
/**
|
|
109
|
+
* <p>Gets or sets the css class of the form field tooltip icon element.</p>
|
|
110
|
+
*/
|
|
111
|
+
cssClassTooltipIcon: string;
|
|
112
|
+
/**
|
|
113
|
+
* <p>Gets or sets the css class of the form field content wrapper element when wrapFieldContent is set to true or the field root element is not an input field and the label display is set to above/floating/inside.</p>
|
|
114
|
+
*/
|
|
115
|
+
cssClassContentWrapper: string;
|
|
116
|
+
/**
|
|
117
|
+
* <p>Gets or sets the text label.</p>
|
|
118
|
+
*/
|
|
119
|
+
label: string;
|
|
120
|
+
/**
|
|
121
|
+
* <p>Gets or sets a value indicating whether the formfield is displayed as inline or block element.</p>
|
|
122
|
+
*/
|
|
123
|
+
inline: boolean;
|
|
124
|
+
/**
|
|
125
|
+
* <p>Gets or sets a value indicating if the form field is required.</p>
|
|
126
|
+
*/
|
|
127
|
+
required: boolean;
|
|
128
|
+
/**
|
|
129
|
+
* <p>Gets or sets a value indicating if the form field is rendered without the top, left and right borders.</p>
|
|
130
|
+
*/
|
|
131
|
+
borderless: boolean;
|
|
132
|
+
/**
|
|
133
|
+
* <p>Gets or sets a value indicating if the checkbox or radio field must be rendered transparent.</p>
|
|
134
|
+
*/
|
|
135
|
+
transparent: boolean;
|
|
136
|
+
/**
|
|
137
|
+
* <p>Gets or sets a value indicating if the form field must be rendered as switch control. This option has effect only when the field is an input of type checkbox.</p>
|
|
138
|
+
*/
|
|
139
|
+
switch: boolean;
|
|
140
|
+
/**
|
|
141
|
+
* <p>Gets or sets a value indicating if the form field content is placed inside a wrapper element.</p>
|
|
142
|
+
*/
|
|
143
|
+
wrapFieldContent: boolean;
|
|
144
|
+
/**
|
|
145
|
+
* <p>Gets or sets a value indicating if the form field is disabled.</p>
|
|
146
|
+
*/
|
|
147
|
+
disabled: boolean;
|
|
148
|
+
/**
|
|
149
|
+
* <p>Gets or sets a value indicating whether the label is displayed automatically, inside, above, before or after the form input field.</p>
|
|
150
|
+
*/
|
|
151
|
+
labelDisplay: componyx.UI.FormField.LabelDisplayOption;
|
|
152
|
+
/**
|
|
153
|
+
* <p>Gets or sets the tooltip manager used to display tooltips.</p>
|
|
154
|
+
*/
|
|
155
|
+
tooltipManagerId: string | null;
|
|
156
|
+
/**
|
|
157
|
+
* <p>Gets or sets the id of the tooltip to show.</p>
|
|
158
|
+
*/
|
|
159
|
+
tooltipId: string | null;
|
|
160
|
+
}
|
|
161
|
+
namespace FormField
|
|
162
|
+
{
|
|
163
|
+
/**
|
|
164
|
+
* <p>LabelDisplayOption</p>
|
|
165
|
+
*/
|
|
166
|
+
enum LabelDisplayOption
|
|
167
|
+
{
|
|
168
|
+
/**
|
|
169
|
+
* <p>The label display depends on the field type: displayed after when the field is a checkbox or radiobutton,
|
|
170
|
+
* displayed floating when the field is a basic textual input and displayed above for all other field types.</p>
|
|
171
|
+
*/
|
|
172
|
+
AUTO = 0,
|
|
173
|
+
/**
|
|
174
|
+
* <p>the label is displayed inside the field when empty and not focused otherwise it will be displayed above the field.</p>
|
|
175
|
+
*/
|
|
176
|
+
FLOATING = 1,
|
|
177
|
+
/**
|
|
178
|
+
* <p>the label is displayed inside the field and will be cleared when the input field gets focus, allowing placeholder to become visible.</p>
|
|
179
|
+
*/
|
|
180
|
+
INSIDE = 2,
|
|
181
|
+
/**
|
|
182
|
+
* <p>the label is displayed above the field.</p>
|
|
183
|
+
*/
|
|
184
|
+
ABOVE = 3,
|
|
185
|
+
/**
|
|
186
|
+
* <p>the label is displayed before the field.</p>
|
|
187
|
+
*/
|
|
188
|
+
BEFORE = 4,
|
|
189
|
+
/**
|
|
190
|
+
* <p>the label is displayed after the field.</p>
|
|
191
|
+
*/
|
|
192
|
+
AFTER = 5
|
|
193
|
+
}
|
|
194
|
+
namespace LabelDisplayOption
|
|
195
|
+
{
|
|
196
|
+
/**
|
|
197
|
+
* <p>Gets the name of the specified value.</p>
|
|
198
|
+
* @param value - <p>The enum value.</p>
|
|
199
|
+
*/
|
|
200
|
+
function getName(value: componyx.UI.FormField.LabelDisplayOption): string;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|