@componyx/ui 0.0.0-stage → 1.0.4
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/DataBinder.js +602 -0
- package/Form/Modules/DataObserver.js +717 -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,653 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <p>Root namespace for componyx components and utilities (shorthand: CMP).</p>
|
|
3
|
+
*/
|
|
4
|
+
declare namespace componyx
|
|
5
|
+
{
|
|
6
|
+
namespace UI
|
|
7
|
+
{
|
|
8
|
+
namespace Validator
|
|
9
|
+
{
|
|
10
|
+
/**
|
|
11
|
+
* @property onPreInit - <p>Event which fires before the initialization but after loading resources.</p>
|
|
12
|
+
* @property onPostInit - <p>Event which fires after the initialization of the validator.</p>
|
|
13
|
+
* @property onValidField - <p>Event which fires when validation for a field passes.</p>
|
|
14
|
+
* @property onInvalidField - <p>Event which fires when validation for a field fails.</p>
|
|
15
|
+
* @property onValid - <p>Event which fires when validation passes.</p>
|
|
16
|
+
* @property onInvalid - <p>Event which fires when validation fails.</p>
|
|
17
|
+
* @property onFieldFeedback - <p>Event which fires when feedback for a field is set.</p>
|
|
18
|
+
*/
|
|
19
|
+
class ValidatorEvents extends componyx.UI.base.Events<componyx.UI.Validator>
|
|
20
|
+
{
|
|
21
|
+
constructor();
|
|
22
|
+
/**
|
|
23
|
+
* <p>Event which fires before the initialization but after loading resources.</p>
|
|
24
|
+
*/
|
|
25
|
+
onPreInit: componyx.UI.base.Event<componyx.UI.Validator, undefined>;
|
|
26
|
+
/**
|
|
27
|
+
* <p>Event which fires after the initialization of the validator.</p>
|
|
28
|
+
*/
|
|
29
|
+
onPostInit: componyx.UI.base.Event<componyx.UI.Validator, undefined>;
|
|
30
|
+
/**
|
|
31
|
+
* <p>Event which fires when validation for a field passes.</p>
|
|
32
|
+
*/
|
|
33
|
+
onValidField: componyx.UI.base.Event<componyx.UI.Validator, componyx.UI.Validator.FieldEventArgs>;
|
|
34
|
+
/**
|
|
35
|
+
* <p>Event which fires when validation for a field fails.</p>
|
|
36
|
+
*/
|
|
37
|
+
onInvalidField: componyx.UI.base.Event<componyx.UI.Validator, componyx.UI.Validator.FieldEventArgs>;
|
|
38
|
+
/**
|
|
39
|
+
* <p>Event which fires when validation passes.</p>
|
|
40
|
+
*/
|
|
41
|
+
onValid: componyx.UI.base.Event<componyx.UI.Validator, undefined>;
|
|
42
|
+
/**
|
|
43
|
+
* <p>Event which fires when validation fails.</p>
|
|
44
|
+
*/
|
|
45
|
+
onInvalid: componyx.UI.base.Event<componyx.UI.Validator, undefined>;
|
|
46
|
+
/**
|
|
47
|
+
* <p>Event which fires when feedback for a field is set.</p>
|
|
48
|
+
*/
|
|
49
|
+
onFieldFeedback: componyx.UI.base.Event<componyx.UI.Validator, componyx.UI.Validator.FieldEventArgs>;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* <p>Validator field event arguments.</p>
|
|
53
|
+
*/
|
|
54
|
+
type FieldEventArgs = {
|
|
55
|
+
/** <p>The validated field element.</p> */
|
|
56
|
+
fieldElement: HTMLElement;
|
|
57
|
+
/** <p>The name of the field.</p> */
|
|
58
|
+
fieldName: string;
|
|
59
|
+
/** <p>The value of the field.</p> */
|
|
60
|
+
fieldValue: string;
|
|
61
|
+
/** <p>The internal validation data of the field (validation settings and state).</p> */
|
|
62
|
+
fieldData: any;
|
|
63
|
+
/** <p>The validation messages.</p> */
|
|
64
|
+
msg: string[];
|
|
65
|
+
/** <p>The feedback list element (onFieldFeedback only, when feedback is displayed).</p> */
|
|
66
|
+
feedbackElement?: HTMLUListElement;
|
|
67
|
+
/** <p>The summary list element (onFieldFeedback only, when the field is summarised).</p> */
|
|
68
|
+
summaryElement?: HTMLUListElement;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* <p>TypeOption</p>
|
|
72
|
+
*/
|
|
73
|
+
enum TypeOption
|
|
74
|
+
{
|
|
75
|
+
REQUIRED = 0,
|
|
76
|
+
DATATYPE = 1,
|
|
77
|
+
LENGTH = 2,
|
|
78
|
+
RANGE = 3,
|
|
79
|
+
REGEX = 4,
|
|
80
|
+
COMPARE = 5,
|
|
81
|
+
CUSTOM = 6,
|
|
82
|
+
AJAX = 7
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* <p>DataTypeOption</p>
|
|
86
|
+
*/
|
|
87
|
+
enum DataTypeOption
|
|
88
|
+
{
|
|
89
|
+
INTEGER = 0,
|
|
90
|
+
FLOAT = 1,
|
|
91
|
+
DATETIME = 2,
|
|
92
|
+
EMAIL = 3,
|
|
93
|
+
URL = 4,
|
|
94
|
+
SOURCE = 5
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* <p>ShowValidFieldsOption</p>
|
|
98
|
+
*/
|
|
99
|
+
enum ShowValidFieldsOption
|
|
100
|
+
{
|
|
101
|
+
NONE = 0,
|
|
102
|
+
REQUIRED = 1,
|
|
103
|
+
FILLED = 2,
|
|
104
|
+
ALL = 3
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* <p>MessageDisplayOption</p>
|
|
108
|
+
*/
|
|
109
|
+
enum MessageDisplayOption
|
|
110
|
+
{
|
|
111
|
+
NONE = 0,
|
|
112
|
+
FEEDBACKFIRST = 1,
|
|
113
|
+
FEEDBACKALL = 2,
|
|
114
|
+
FEEDBACKFIRST_TOOLTIPALL = 3,
|
|
115
|
+
TOOLTIPFIRST = 4,
|
|
116
|
+
TOOLTIPALL = 5
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* @property fieldName - <p>The name of the field to validate.</p>
|
|
120
|
+
* @property value - <p>The value of the field to validate.</p>
|
|
121
|
+
*/
|
|
122
|
+
type ValidationData = {
|
|
123
|
+
fieldName: string;
|
|
124
|
+
value: string;
|
|
125
|
+
};
|
|
126
|
+
/**
|
|
127
|
+
* @property [field] - <p>The field.</p>
|
|
128
|
+
* @property [fieldName] - <p>The field name.</p>
|
|
129
|
+
* @property [fieldValue] - <p>The field value.</p>
|
|
130
|
+
* @property [feedbackId] - <p>The field feedback identifier.</p>
|
|
131
|
+
* @property [settings] - <p>The validation settings of the field.</p>
|
|
132
|
+
*/
|
|
133
|
+
type ValidationArgs = {
|
|
134
|
+
field?: HTMLElement;
|
|
135
|
+
fieldName?: string;
|
|
136
|
+
fieldValue?: string;
|
|
137
|
+
feedbackId?: string;
|
|
138
|
+
settings?: any;
|
|
139
|
+
};
|
|
140
|
+
type OnValidation = (sender: componyx.UI.Validator, args: ValidationArgs) => boolean;
|
|
141
|
+
type OnBeforeValidation = (sender: componyx.UI.Validator, args: ValidationArgs) => ValidationData[];
|
|
142
|
+
type OnAfterValidation = (sender: componyx.UI.Validator, args: ValidationArgs) => void;
|
|
143
|
+
/**
|
|
144
|
+
* <p>Creates a Rule object instance.</p>
|
|
145
|
+
* @property fieldName - <p>Gets or sets the field name to which the rule applies.</p>
|
|
146
|
+
* @property type - <p>Gets or sets the validation type of the rule.</p>
|
|
147
|
+
* @param feedbackId - <p>Gets or sets the identifier of the element used by the Validator to display validation result feedback.</p>
|
|
148
|
+
* @param autoValidate - <p>Gets or sets a value indicating if the field is validated when the field value changes.</p>
|
|
149
|
+
* @param live - <p>Gets or sets a value indicating if the field validation is done while typing.</p>
|
|
150
|
+
* @param getValue - <p>A custom method to return the value for this field. Passes in the field element and expects the field value as result.</p>
|
|
151
|
+
* @param msg - <p>Gets or sets the message to display if validation fails.</p>
|
|
152
|
+
* @param min - <p>Gets or sets the minimum value. (LENGTH and RANGE type validation).</p>
|
|
153
|
+
* @param max - <p>Gets or sets the maximum value. (LENGTH and RANGE type validation).</p>
|
|
154
|
+
* @param pattern - <p>Gets or sets the Regular expression pattern (REGEX type validation).</p>
|
|
155
|
+
* @param field - <p>Gets or sets the element or element id (COMPARE type validation).</p>
|
|
156
|
+
* @param dataType - <p>Gets or sets the data type (DATATYPE type validation).</p>
|
|
157
|
+
* @param onValidation - <p>Gets or sets a function invoked when the field is validated (CUSTOM type validation).</p>
|
|
158
|
+
* @param onBeforeValidation - <p>Gets or sets a function invoked before the field is validated (AJAX type validation).</p>
|
|
159
|
+
* @param onAfterValidation - <p>Gets or sets a function invoked after the field is validated (AJAX type validation).</p>
|
|
160
|
+
* @param data - <p>Gets or sets the data query for the AJAX type validation.</p>
|
|
161
|
+
*/
|
|
162
|
+
class Rule
|
|
163
|
+
{
|
|
164
|
+
constructor();
|
|
165
|
+
/** <p>Gets or sets the field name to which the rule applies.</p> */
|
|
166
|
+
fieldName: string | null;
|
|
167
|
+
/** <p>Gets or sets the validation type of the rule.</p> */
|
|
168
|
+
type: componyx.UI.Validator.TypeOption | null;
|
|
169
|
+
/** <p>Gets or sets the id of the feedback element.</p> */
|
|
170
|
+
feedbackId: string | null;
|
|
171
|
+
/** <p>Gets or sets a value indicating if the field is validated automatically.</p> */
|
|
172
|
+
autoValidate: boolean | null;
|
|
173
|
+
/** <p>Gets or sets a function returning the value to validate.</p> */
|
|
174
|
+
getValue: ((...params: any[]) => any) | null;
|
|
175
|
+
/** <p>Gets or sets a value indicating if the field is validated while typing.</p> */
|
|
176
|
+
live: boolean | null;
|
|
177
|
+
/** <p>Gets or sets the validation message.</p> */
|
|
178
|
+
msg: string | null;
|
|
179
|
+
/** <p>Gets or sets the minimum value (LENGTH and RANGE type validation).</p> */
|
|
180
|
+
min: number | string | null;
|
|
181
|
+
/** <p>Gets or sets the maximum value (LENGTH and RANGE type validation).</p> */
|
|
182
|
+
max: number | string | null;
|
|
183
|
+
/** <p>Gets or sets the Regular expression pattern (REGEX type validation).</p> */
|
|
184
|
+
pattern: RegExp | null;
|
|
185
|
+
/** <p>Gets or sets the element or element id (COMPARE type validation).</p> */
|
|
186
|
+
field: HTMLElement | string | null;
|
|
187
|
+
/** <p>Gets or sets the data type (DATATYPE type validation).</p> */
|
|
188
|
+
dataType: componyx.UI.Validator.DataTypeOption | null;
|
|
189
|
+
/** <p>Gets or sets a function invoked when the field is validated (CUSTOM type validation).</p> */
|
|
190
|
+
onValidation: componyx.UI.Validator.OnValidation | null;
|
|
191
|
+
/** <p>Gets or sets a function invoked before the field is validated (AJAX type validation).</p> */
|
|
192
|
+
onBeforeValidation: componyx.UI.Validator.OnBeforeValidation | null;
|
|
193
|
+
/** <p>Gets or sets a function invoked after the field is validated (AJAX type validation).</p> */
|
|
194
|
+
onAfterValidation: componyx.UI.Validator.OnAfterValidation | null;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
interface Validator extends Omit<componyx.UI.base.methods, 'hide'> { }
|
|
199
|
+
/**
|
|
200
|
+
* <p>Validator class.</p>
|
|
201
|
+
* @property cssClassFeedback - <p>Gets or sets the css class of a feedback ul element.</p>
|
|
202
|
+
* @property cssClassSummary - <p>Gets or sets the css class of a summary ul element.</p>
|
|
203
|
+
* @property cssClassValidating - <p>Gets or sets the css class of the feedback message when server-side validation is processing.</p>
|
|
204
|
+
* @property cssClassValid - <p>Gets or sets the css class of the feedback/summary message when the input field passes validation.</p>
|
|
205
|
+
* @property cssClassInvalid - <p>Gets or sets the css class of the feedback/summary message when the input field fails validation.</p>
|
|
206
|
+
* @property cssClassIcon - <p>Gets or sets the css class of the icon in a feedback or summary message.</p>
|
|
207
|
+
* @property cssClassTooltipTrigger - <p>Gets or sets the css class of the tooltip trigger.</p>
|
|
208
|
+
* @property validatingFieldMessage - <p>Gets or sets the message which is shown when ajax validation is processing.</p>
|
|
209
|
+
* @property validFieldMessage - <p>Gets or sets the message which is shown when a field passes validation.</p>
|
|
210
|
+
* @property invalidFieldMessage - <p>Gets or sets the message which is shown when a field fails validation. Message is not shown when the ErrorMessage is defined on the model property.</p>
|
|
211
|
+
* @property ajaxErrorMessage - <p>Gets or sets the message which is shown when ajax validation throws an error.</p>
|
|
212
|
+
* @property validatingFieldMessageDelay - <p>Gets or sets the delay for the validating field message which is shown when ajax validation is processing.</p>
|
|
213
|
+
* @property showValidFields - <p>Gets or sets when valid fields are displayed.</p>
|
|
214
|
+
* @property messageDisplay - <p>Gets or sets a value indicating how validation messages are being displayed.</p>
|
|
215
|
+
* @property summaryMessageDisplay - <p>Gets or sets a value indicating how validation messages are being displayed in the summary container.</p>
|
|
216
|
+
* @property showValidFieldsInSummary - <p>Gets or sets a value indicating whether valid fields are also displayed in the summary container.</p>
|
|
217
|
+
* @property feedbackIdentifyingCssClass - <p>Gets or sets the identifying css class of the field feedback container.</p>
|
|
218
|
+
* @property [summaryContainerId] - <p>Gets or sets the container id of the validation message summary.</p>
|
|
219
|
+
* @property [formId] - <p>Gets or sets the form id of the form that holds the input fields when using multiple forms on a single page.</p>
|
|
220
|
+
* @property dateFormat - <p>Gets or sets the input format for dates. Default: MM/dd/yyyy</p>
|
|
221
|
+
* @property decimalSeparator - <p>Gets or sets the input decimal separator for numbers. Default: '.'</p>
|
|
222
|
+
* @property groupSeparator - <p>Gets or sets the input group separator for numbers. Default: ','</p>
|
|
223
|
+
* @property rules - <p>Gets or sets the initial validator rules (Array or JSON string).</p>
|
|
224
|
+
* @property validFields - <p>Gets or sets the fields which passed validation on postback.</p>
|
|
225
|
+
* @property invalidFields - <p>Gets or sets the fields which failed validation on postback.</p>
|
|
226
|
+
* @property friendlyFieldNames - <p>List containing the friendly field names.</p>
|
|
227
|
+
* @property staticASPNETFieldNames - <p>Gets or sets a value indicating whether auto generated field names should be corrected to static names.</p>
|
|
228
|
+
* @property validationCssOnField - <p>Gets or sets a value indicating whether the validation status css classes are applied to the (input/textarea/select/contenteditable) field (defaults to true).</p>
|
|
229
|
+
* @property live - <p>Gets or sets a value indicating whether field validation should be performed while typing (defaults to false).</p>
|
|
230
|
+
* @property liveDelay - <p>Gets or sets the delay in milliseconds before the live field validation is performed.</p>
|
|
231
|
+
* @property detectFields - <p>Gets or sets a value indicating if fields are being detected when the component initializes.</p>
|
|
232
|
+
* @property tooltipTriggerTabIndex - <p>Gets or sets the tabindex of the tooltip trigger element.</p>
|
|
233
|
+
* @property tooltipManagerId - <p>Gets or sets the tooltip manager used to display tooltips.</p>
|
|
234
|
+
* @param id - <p>The id of the component.</p>
|
|
235
|
+
* @param properties - <p>The properties used to initialize the component or the container element.</p>
|
|
236
|
+
*/
|
|
237
|
+
class Validator extends componyx.UI.base.Component
|
|
238
|
+
{
|
|
239
|
+
constructor(id: string, properties: any | HTMLElement);
|
|
240
|
+
ajax: componyx.UI.base.Component['ajax'] & {
|
|
241
|
+
/**
|
|
242
|
+
* <p>AJAX method used to validate field values on the server.</p>
|
|
243
|
+
*/
|
|
244
|
+
validate: componyx.UI.base.AjaxMethod;
|
|
245
|
+
};
|
|
246
|
+
/**
|
|
247
|
+
* <p>BookmarkSpy events</p>
|
|
248
|
+
*/
|
|
249
|
+
events: componyx.UI.Validator.ValidatorEvents;
|
|
250
|
+
/**
|
|
251
|
+
* <p>Returns true if the current validation state is valid, otherwise false</p>
|
|
252
|
+
*/
|
|
253
|
+
isValid(): boolean;
|
|
254
|
+
/**
|
|
255
|
+
* <p>Validates the required field using the specified settings.</p>
|
|
256
|
+
* @param settings - <p>The validation rule settings.</p>
|
|
257
|
+
* @param field - <p>The field or fields in case of a Radio Button.</p>
|
|
258
|
+
* @returns <p>A value indicating if the field is valid (true) or invalid (false).</p>
|
|
259
|
+
*/
|
|
260
|
+
validateRequired(settings: any, field: HTMLElement[]): boolean;
|
|
261
|
+
/**
|
|
262
|
+
* <p>Validates the field by value comparison using the specified settings.</p>
|
|
263
|
+
* @param settings - <p>Validation rule settings (includes fields and operators).</p>
|
|
264
|
+
* @param value - <p>The field value.</p>
|
|
265
|
+
* @param [dataType] - <p>Field value data type (default: string).</p>
|
|
266
|
+
* @returns <p>A value indicating if the field is valid (true) or invalid (false).</p>
|
|
267
|
+
*/
|
|
268
|
+
validateCompare(settings: any, value: string, dataType?: componyx.UI.Validator.DataTypeOption | null): boolean;
|
|
269
|
+
/**
|
|
270
|
+
* <p>Validates the field value range using the specified settings.</p>
|
|
271
|
+
* @param settings - <p>The validation rule settings.</p>
|
|
272
|
+
* @param value - <p>The field value.</p>
|
|
273
|
+
* @param dataType - <p>The data type of the value.</p>
|
|
274
|
+
* @returns <p>A value indicating if the field is valid (true) or invalid (false).</p>
|
|
275
|
+
*/
|
|
276
|
+
validateRange(settings: any, value: string, dataType?: componyx.UI.Validator.DataTypeOption): boolean;
|
|
277
|
+
/**
|
|
278
|
+
* <p>Validates the field value length using the specified settings.</p>
|
|
279
|
+
* @param settings - <p>The validation rule settings.</p>
|
|
280
|
+
* @param value - <p>The field value.</p>
|
|
281
|
+
* @returns <p>A value indicating if the field is valid (true) or invalid (false).</p>
|
|
282
|
+
*/
|
|
283
|
+
validateLength(settings: any, value: string): boolean;
|
|
284
|
+
/**
|
|
285
|
+
* <p>Validates the field value data-type using the specified settings.</p>
|
|
286
|
+
* @param settings - <p>The validation rule settings.</p>
|
|
287
|
+
* @param value - <p>The field value.</p>
|
|
288
|
+
* @returns <p>A value indicating if the field is valid (true) or invalid (false).</p>
|
|
289
|
+
*/
|
|
290
|
+
validateType(settings: any, value: string): boolean;
|
|
291
|
+
/**
|
|
292
|
+
* <p>Validates the field value by the configured regex pattern using the specified settings.</p>
|
|
293
|
+
* @param settings - <p>The validation rule settings.</p>
|
|
294
|
+
* @param value - <p>The field value.</p>
|
|
295
|
+
* @returns <p>A value indicating if the field is valid (true) or invalid (false).</p>
|
|
296
|
+
*/
|
|
297
|
+
validateRegEx(settings: any, value: string): boolean;
|
|
298
|
+
/**
|
|
299
|
+
* <p>Gets all the validation fields with there defined rules.</p>
|
|
300
|
+
* @returns <p>An object with field-name as key and the validation rules as value.</p>
|
|
301
|
+
*/
|
|
302
|
+
getFields(): any;
|
|
303
|
+
/**
|
|
304
|
+
* <p>Defines the template for a validating field in the feedback container. The template supports the below listed interpolations. Default value: {icon}{message}</p>
|
|
305
|
+
* <ul>
|
|
306
|
+
* <li>{icon} This value will be replaced validation state icon.</li>
|
|
307
|
+
* <li>{fieldName} This value will be replaced with the name of the validation field.</li>
|
|
308
|
+
* <li>{message} This value will be replaced with the validation message.</li>
|
|
309
|
+
* </ul>
|
|
310
|
+
* @param content - <p>The content of the template</p>
|
|
311
|
+
*/
|
|
312
|
+
setValidatingFieldFeedbackTemplate(content: HTMLElement | HTMLElement[] | DocumentFragment | string): void;
|
|
313
|
+
/**
|
|
314
|
+
* <p>Defines the template for a valid field in the feedback container. The template supports the below listed interpolations. Default value: {icon}{message}</p>
|
|
315
|
+
* <ul>
|
|
316
|
+
* <li>{icon} This value will be replaced validation state icon.</li>
|
|
317
|
+
* <li>{fieldName} This value will be replaced with the name of the validation field.</li>
|
|
318
|
+
* <li>{message} This value will be replaced with the validation message.</li>
|
|
319
|
+
* </ul>
|
|
320
|
+
* @param content - <p>The content of the template</p>
|
|
321
|
+
*/
|
|
322
|
+
setValidFieldFeedbackTemplate(content: HTMLElement | HTMLElement[] | DocumentFragment | string): void;
|
|
323
|
+
/**
|
|
324
|
+
* <p>Defines the template for an invalid field in the feedback container. The template supports the below listed interpolations. Default value: {icon}{tooltipTrigger}{multiple}[ 1-{messageCount} ]{/multiple}{/tooltipTrigger} {message}</p>
|
|
325
|
+
* <ul>
|
|
326
|
+
* <li>{icon} This value will be replaced validation state icon.</li>
|
|
327
|
+
* <li>{fieldName} This value will be replaced with the name of the validation field.</li>
|
|
328
|
+
* <li>{message} This value will be replaced with the validation message.</li>
|
|
329
|
+
* <li>{tooltipTrigger} This value will be replaced with the opening trigger element tag.</li>
|
|
330
|
+
* <li>{/tooltipTrigger} This value will be replaced with the closing trigger element tag.</li>
|
|
331
|
+
* <li>{multiple} This value will be replaced with the opening multiple element tag.</li>
|
|
332
|
+
* <li>{/multiple} This value will be replaced with the closing multiple element tag.</li>
|
|
333
|
+
* <li>{messageCount} This value will be replaced with the validation message count.</li>
|
|
334
|
+
* </ul>
|
|
335
|
+
* @param content - <p>The content of the template</p>
|
|
336
|
+
*/
|
|
337
|
+
setInvalidFieldFeedbackTemplate(content: HTMLElement | HTMLElement[] | DocumentFragment | string): void;
|
|
338
|
+
/**
|
|
339
|
+
* <p>Defines the template for a valid field in the summary container. The template supports the below listed interpolations. Default value: {icon}{fieldName} {message</p>
|
|
340
|
+
* <ul>
|
|
341
|
+
* <li>{icon} This value will be replaced validation state icon.</li>
|
|
342
|
+
* <li>{fieldName} This value will be replaced with the name of the validation field.</li>
|
|
343
|
+
* <li>{message} This value will be replaced with the validation message.</li>
|
|
344
|
+
* </ul>
|
|
345
|
+
* @param content - <p>The content of the template</p>
|
|
346
|
+
*/
|
|
347
|
+
setValidFieldSummaryTemplate(content: HTMLElement | HTMLElement[] | DocumentFragment | string): void;
|
|
348
|
+
/**
|
|
349
|
+
* <p>Defines the template for an invalid field in the summary container. The template supports the below listed interpolations. Default value: {icon}{fieldName}: {tooltipTrigger}{multiple}[ 1-{messageCount} ]{/multiple}{/tooltipTrigger} {message}</p>
|
|
350
|
+
* <ul>
|
|
351
|
+
* <li>{icon} This value will be replaced validation state icon.</li>
|
|
352
|
+
* <li>{fieldName} This value will be replaced with the name of the validation field.</li>
|
|
353
|
+
* <li>{message} This value will be replaced with the validation message.</li>
|
|
354
|
+
* <li>{tooltipTrigger} This value will be replaced with the opening trigger element tag.</li>
|
|
355
|
+
* <li>{/tooltipTrigger} This value will be replaced with the closing trigger element tag.</li>
|
|
356
|
+
* <li>{multiple} This value will be replaced with the opening multiple element tag.</li>
|
|
357
|
+
* <li>{/multiple} This value will be replaced with the closing multiple element tag.</li>
|
|
358
|
+
* <li>{messageCount} This value will be replaced with the validation message count.</li>
|
|
359
|
+
* </ul>
|
|
360
|
+
* @param content - <p>The content of the template</p>
|
|
361
|
+
*/
|
|
362
|
+
setInvalidFieldSummaryTemplate(content: HTMLElement | HTMLElement[] | DocumentFragment | string): void;
|
|
363
|
+
/**
|
|
364
|
+
* <p>Defines the template for an invalid field in the popup. The template supports the below listed interpolations. Default value: {icon}{fieldName}: {tooltipTrigger}{multiple}[ 1-{messageCount} ]{/multiple}{/tooltipTrigger} {message}</p>
|
|
365
|
+
* <ul>
|
|
366
|
+
* <li>{message} This value will be replaced with the validation message.</li>
|
|
367
|
+
* </ul>
|
|
368
|
+
* @param content - <p>The content of the template</p>
|
|
369
|
+
*/
|
|
370
|
+
setInvalidFieldPopupTemplate(content: HTMLElement | HTMLElement[] | DocumentFragment | string): void;
|
|
371
|
+
/**
|
|
372
|
+
* <p>Initializes the Validator component if this has not yet been done.</p>
|
|
373
|
+
*/
|
|
374
|
+
show(): void;
|
|
375
|
+
/**
|
|
376
|
+
* <p>Initializes the Validator component.</p>
|
|
377
|
+
*/
|
|
378
|
+
init(): void;
|
|
379
|
+
/**
|
|
380
|
+
* <p>Initializes the Validator component. Both init and render are the same for this component.</p>
|
|
381
|
+
*/
|
|
382
|
+
render(): void;
|
|
383
|
+
/**
|
|
384
|
+
* <p>Detects validation rules specified through data-attributes on input elements.</p>
|
|
385
|
+
* @param [container] - <p>A container element to restrict detection to fields within the container.</p>
|
|
386
|
+
* @param [ignoreHidden] - <p>A value indicating whether hidden fields should be excluded from detection.</p>
|
|
387
|
+
*/
|
|
388
|
+
detect(container?: HTMLElement, ignoreHidden?: boolean): void;
|
|
389
|
+
/**
|
|
390
|
+
* <p>Adds a validation rule of the specified type for the given field name(s).</p>
|
|
391
|
+
* @param fieldName - <p>The name of the form field(s).</p>
|
|
392
|
+
* @param settings - <p>The validation rule settings.</p>
|
|
393
|
+
* @param settings.feedbackId - <p>The identifier of the element used by the Validator to display validation result feedback.</p>
|
|
394
|
+
* @param settings.autoValidate - <p>A value indicating if the field is validated when the field value changes.</p>
|
|
395
|
+
* @param settings.live - <p>A value indicating if the field validation is done while typing.</p>
|
|
396
|
+
* @param settings.getValue - <p>A custom method to return the value for this field. Passes in the field element and expects the field value as result.</p>
|
|
397
|
+
* @param settings.msg - <p>The message to display if validation fails.</p>
|
|
398
|
+
* @param [settings.when] - <p>The name of the method that returns a boolean value to determines whether the field is required (true) or not (false). (REQUIRED type validation).</p>
|
|
399
|
+
* @param [settings.min] - <p>The minimum value. (LENGTH and RANGE type validation).</p>
|
|
400
|
+
* @param [settings.max] - <p>The maximum value. (LENGTH and RANGE type validation).</p>
|
|
401
|
+
* @param settings.pattern - <p>The Regular expression pattern. (REGEX type validation).</p>
|
|
402
|
+
* @param settings.fields - <p>The HTML element(s), element name(s) or values to compare against.</p>
|
|
403
|
+
* @param settings.operators - <p>The operator(s) to use for comparison: < 'LessThan', <= 'LessThanOrEqualTo', > 'GreaterThan', >= 'GreaterThanOrEqualTo', or == 'EqualTo' (default). Can be a single entry (applied to all fields) or an array aligned with <code>fields</code>.</p>
|
|
404
|
+
* @param settings.dataType - <p>The data-type to which the field value must comply. (DATATYPE type validation).</p>
|
|
405
|
+
* @param settings.alwaysCheck - <p>A value indicating if the validation rule should always be checked even if the field validation has already failed (only applies to type CUSTOM).</p>
|
|
406
|
+
* @param settings.onValidation - <p>A function(sender, args) invoked when the field is validated. (CUSTOM type validation).</p>
|
|
407
|
+
* @param settings.onBeforeValidation - <p>A function(sender, args) invoked before the field is validated. (AJAX type validation).</p>
|
|
408
|
+
* @param settings.onAfterValidation - <p>A function function(sender, args) invoked after the field is validated. (AJAX type validation).</p>
|
|
409
|
+
* @param [type] - <p>The type of the validation. May be omitted to apply a global field setting only (feedbackId, autoValidate or live).</p>
|
|
410
|
+
* <ul>
|
|
411
|
+
* <li>0 REQUIRED</li>
|
|
412
|
+
* <li>1 DATATYPE</li>
|
|
413
|
+
* <li>2 LENGTH</li>
|
|
414
|
+
* <li>3 RANGE</li>
|
|
415
|
+
* <li>4 REGEX</li>
|
|
416
|
+
* <li>5 COMPARE</li>
|
|
417
|
+
* <li>6 CUSTOM</li>
|
|
418
|
+
* <li>7 AJAX</li>
|
|
419
|
+
* </ul>
|
|
420
|
+
*/
|
|
421
|
+
addRule(fieldName: string | String[], settings: {
|
|
422
|
+
feedbackId: string;
|
|
423
|
+
autoValidate: boolean;
|
|
424
|
+
live: boolean;
|
|
425
|
+
getValue: (...params: any[]) => any;
|
|
426
|
+
msg: string;
|
|
427
|
+
when?: string;
|
|
428
|
+
min?: number | string;
|
|
429
|
+
max?: number | string;
|
|
430
|
+
pattern: RegExp;
|
|
431
|
+
fields: HTMLElement[] | String[];
|
|
432
|
+
operators: String[];
|
|
433
|
+
dataType: componyx.UI.Validator.DataTypeOption;
|
|
434
|
+
alwaysCheck: boolean;
|
|
435
|
+
onValidation: componyx.UI.Validator.OnValidation;
|
|
436
|
+
onBeforeValidation: componyx.UI.Validator.OnBeforeValidation;
|
|
437
|
+
onAfterValidation: componyx.UI.Validator.OnAfterValidation;
|
|
438
|
+
}, type?: componyx.UI.Validator.TypeOption): void;
|
|
439
|
+
/**
|
|
440
|
+
* <p>Resets the field's validation state.</p>
|
|
441
|
+
* @param fieldName - <p>The name of the form field (or array of field names).</p>
|
|
442
|
+
*/
|
|
443
|
+
resetState(fieldName: string | String[]): void;
|
|
444
|
+
/**
|
|
445
|
+
* <p>Resets the validation state for all fields.</p>
|
|
446
|
+
* @param [container] - <p>A container element to restrict the state reset to fields within the container.</p>
|
|
447
|
+
*/
|
|
448
|
+
resetStates(container?: HTMLElement): void;
|
|
449
|
+
/**
|
|
450
|
+
* <p>Returns true if there are validation rules for this field, otherwise false.</p>
|
|
451
|
+
* @param fieldName - <p>The name of the form field.</p>
|
|
452
|
+
*/
|
|
453
|
+
hasRules(fieldName: string): boolean;
|
|
454
|
+
/**
|
|
455
|
+
* <p>Returns true if the validation rule is set for this field, otherwise false.</p>
|
|
456
|
+
* @param fieldName - <p>The name of the form field.</p>
|
|
457
|
+
* @param type - <p>The type of the validation.</p>
|
|
458
|
+
*/
|
|
459
|
+
hasRule(fieldName: string, type: componyx.UI.Validator.TypeOption): boolean;
|
|
460
|
+
/**
|
|
461
|
+
* <p>Returns the validation rules for the specified field.</p>
|
|
462
|
+
* @param fieldName - <p>The name of the form field.</p>
|
|
463
|
+
*/
|
|
464
|
+
getRules(fieldName: string): any | null;
|
|
465
|
+
/**
|
|
466
|
+
* <p>Removes the validation rule of the specified type for the given field name(s).</p>
|
|
467
|
+
* @param fieldName - <p>The name of the form field (or array of field names).</p>
|
|
468
|
+
* @param type - <p>The type of the validation</p>
|
|
469
|
+
*/
|
|
470
|
+
removeRule(fieldName: string | String[], type: componyx.UI.Validator.TypeOption): void;
|
|
471
|
+
/**
|
|
472
|
+
* <p>Removes the validation rules for the given field name(s).</p>
|
|
473
|
+
* @param fieldName - <p>The name of the form field (or array of field names).</p>
|
|
474
|
+
*/
|
|
475
|
+
removeRules(fieldName: string | String[]): void;
|
|
476
|
+
/**
|
|
477
|
+
* <p>Removes the validation rules for all fields.</p>
|
|
478
|
+
* @param [container] - <p>A container element to restrict clearance to fields within the container.</p>
|
|
479
|
+
* @param [keepForRemovedField] - <p>A value indicating to keep (instead of clearing) validation rules for field elements removed from the document.</p>
|
|
480
|
+
*/
|
|
481
|
+
clear(container?: HTMLElement, keepForRemovedField?: boolean): void;
|
|
482
|
+
/**
|
|
483
|
+
* <p>Removes the feedback messages for all fields.</p>
|
|
484
|
+
* @param [container] - <p>A container element to restrict clearance to fields within the container.</p>
|
|
485
|
+
* @param [keepForRemovedField] - <p>A value indicating to keep (instead of clearing) validation rules for field elements removed from the document.</p>
|
|
486
|
+
*/
|
|
487
|
+
clearFeedback(container?: HTMLElement, keepForRemovedField?: boolean): void;
|
|
488
|
+
/**
|
|
489
|
+
* <p>Removes the feedback messages for the specified field name.</p>
|
|
490
|
+
* @param fieldName - <p>The name of the form field.</p>
|
|
491
|
+
*/
|
|
492
|
+
clearFieldFeedback(fieldName: string): void;
|
|
493
|
+
/**
|
|
494
|
+
* <p>Validates all fields or the fields within the specified container element.</p>
|
|
495
|
+
* @param [container] - <p>A container element to restrict validation to fields within the container.</p>
|
|
496
|
+
* @param [filledOnly] - <p>A value indicating to only validate filled out fields.</p>
|
|
497
|
+
*/
|
|
498
|
+
validate(container?: HTMLElement, filledOnly?: boolean): boolean;
|
|
499
|
+
/**
|
|
500
|
+
* <p>Validates a specific field</p>
|
|
501
|
+
* @param fieldName - <p>The name of the form field.</p>
|
|
502
|
+
* @returns <p>A value indicating if the field is valid, works only for simple non async validations.</p>
|
|
503
|
+
*/
|
|
504
|
+
validateField(fieldName: string): boolean;
|
|
505
|
+
/**
|
|
506
|
+
* <p>Destroys the component.</p>
|
|
507
|
+
* @param keepEvents - <p>A value indicating if the events must be kept.</p>
|
|
508
|
+
* @param [removeElement = true] - <p>A value indicating if the element must be removed.</p>
|
|
509
|
+
*/
|
|
510
|
+
destroy(keepEvents: boolean, removeElement?: boolean): void;
|
|
511
|
+
/**
|
|
512
|
+
* <p>The validator does not render HTML output, so it has no hide behavior of its own; this is always <code>null</code>.</p>
|
|
513
|
+
*/
|
|
514
|
+
hide: null;
|
|
515
|
+
/**
|
|
516
|
+
* <p>Gets or sets the css class of a feedback ul element.</p>
|
|
517
|
+
*/
|
|
518
|
+
cssClassFeedback: string;
|
|
519
|
+
/**
|
|
520
|
+
* <p>Gets or sets the css class of a summary ul element.</p>
|
|
521
|
+
*/
|
|
522
|
+
cssClassSummary: string;
|
|
523
|
+
/**
|
|
524
|
+
* <p>Gets or sets the css class of the feedback message when server-side validation is processing.</p>
|
|
525
|
+
*/
|
|
526
|
+
cssClassValidating: string;
|
|
527
|
+
/**
|
|
528
|
+
* <p>Gets or sets the css class of the feedback/summary message when the input field passes validation.</p>
|
|
529
|
+
*/
|
|
530
|
+
cssClassValid: string;
|
|
531
|
+
/**
|
|
532
|
+
* <p>Gets or sets the css class of the feedback/summary message when the input field fails validation.</p>
|
|
533
|
+
*/
|
|
534
|
+
cssClassInvalid: string;
|
|
535
|
+
/**
|
|
536
|
+
* <p>Gets or sets the css class of the element wrapping multiple validation messages (default: 'multiple').</p>
|
|
537
|
+
*/
|
|
538
|
+
cssClassMultiple: string;
|
|
539
|
+
/**
|
|
540
|
+
* <p>Gets or sets the css class of the icon in a feedback or summary message.</p>
|
|
541
|
+
*/
|
|
542
|
+
cssClassIcon: string;
|
|
543
|
+
/**
|
|
544
|
+
* <p>Gets or sets the css class of the tooltip trigger.</p>
|
|
545
|
+
*/
|
|
546
|
+
cssClassTooltipTrigger: string;
|
|
547
|
+
/**
|
|
548
|
+
* <p>Gets or sets the message which is shown when ajax validation is processing.</p>
|
|
549
|
+
*/
|
|
550
|
+
validatingFieldMessage: string;
|
|
551
|
+
/**
|
|
552
|
+
* <p>Gets or sets the message which is shown when a field passes validation.</p>
|
|
553
|
+
*/
|
|
554
|
+
validFieldMessage: string;
|
|
555
|
+
/**
|
|
556
|
+
* <p>Gets or sets the message which is shown when a field fails validation. Message is not shown when the ErrorMessage is defined on the model property.</p>
|
|
557
|
+
*/
|
|
558
|
+
invalidFieldMessage: string;
|
|
559
|
+
/**
|
|
560
|
+
* <p>Gets or sets the message which is shown when ajax validation throws an error.</p>
|
|
561
|
+
*/
|
|
562
|
+
ajaxErrorMessage: string;
|
|
563
|
+
/**
|
|
564
|
+
* <p>Gets or sets the delay for the validating field message which is shown when ajax validation is processing.</p>
|
|
565
|
+
*/
|
|
566
|
+
validatingFieldMessageDelay: number;
|
|
567
|
+
/**
|
|
568
|
+
* <p>Gets or sets when valid fields are displayed.</p>
|
|
569
|
+
*/
|
|
570
|
+
showValidFields: componyx.UI.Validator.ShowValidFieldsOption;
|
|
571
|
+
/**
|
|
572
|
+
* <p>Gets or sets a value indicating how validation messages are being displayed.</p>
|
|
573
|
+
*/
|
|
574
|
+
messageDisplay: componyx.UI.Validator.MessageDisplayOption;
|
|
575
|
+
/**
|
|
576
|
+
* <p>Gets or sets a value indicating how validation messages are being displayed in the summary container.</p>
|
|
577
|
+
*/
|
|
578
|
+
summaryMessageDisplay: componyx.UI.Validator.MessageDisplayOption;
|
|
579
|
+
/**
|
|
580
|
+
* <p>Gets or sets a value indicating whether valid fields are also displayed in the summary container.</p>
|
|
581
|
+
*/
|
|
582
|
+
showValidFieldsInSummary: boolean;
|
|
583
|
+
/**
|
|
584
|
+
* <p>Gets or sets the identifying css class of the field feedback container.</p>
|
|
585
|
+
*/
|
|
586
|
+
feedbackIdentifyingCssClass: string;
|
|
587
|
+
/**
|
|
588
|
+
* <p>Gets or sets the container id of the validation message summary.</p>
|
|
589
|
+
*/
|
|
590
|
+
summaryContainerId?: string;
|
|
591
|
+
/**
|
|
592
|
+
* <p>Gets or sets the form id of the form that holds the input fields when using multiple forms on a single page.</p>
|
|
593
|
+
*/
|
|
594
|
+
formId?: string | null;
|
|
595
|
+
/**
|
|
596
|
+
* <p>Gets or sets the input format for dates. Default: MM/dd/yyyy</p>
|
|
597
|
+
*/
|
|
598
|
+
dateFormat: string;
|
|
599
|
+
/**
|
|
600
|
+
* <p>Gets or sets the input decimal separator for numbers. Default: '.'</p>
|
|
601
|
+
*/
|
|
602
|
+
decimalSeparator: string;
|
|
603
|
+
/**
|
|
604
|
+
* <p>Gets or sets the input group separator for numbers. Default: ','</p>
|
|
605
|
+
*/
|
|
606
|
+
groupSeparator: string;
|
|
607
|
+
/**
|
|
608
|
+
* <p>Gets or sets the initial validator rules (Array or JSON string).</p>
|
|
609
|
+
*/
|
|
610
|
+
rules: componyx.UI.Validator.Rule[] | string | null;
|
|
611
|
+
/**
|
|
612
|
+
* <p>Gets or sets the fields which passed validation on postback.</p>
|
|
613
|
+
*/
|
|
614
|
+
validFields: String[];
|
|
615
|
+
/**
|
|
616
|
+
* <p>Gets or sets the fields which failed validation on postback.</p>
|
|
617
|
+
*/
|
|
618
|
+
invalidFields: String[];
|
|
619
|
+
/**
|
|
620
|
+
* <p>List containing the friendly field names.</p>
|
|
621
|
+
*/
|
|
622
|
+
friendlyFieldNames: { [fieldName: string]: string };
|
|
623
|
+
/**
|
|
624
|
+
* <p>Gets or sets a value indicating whether auto generated field names should be corrected to static names.</p>
|
|
625
|
+
*/
|
|
626
|
+
staticASPNETFieldNames: boolean;
|
|
627
|
+
/**
|
|
628
|
+
* <p>Gets or sets a value indicating whether the validation status css classes are applied to the (input/textarea/select/contenteditable) field (defaults to true).</p>
|
|
629
|
+
*/
|
|
630
|
+
validationCssOnField: boolean;
|
|
631
|
+
/**
|
|
632
|
+
* <p>Gets or sets a value indicating whether field validation should be performed while typing (defaults to false).</p>
|
|
633
|
+
*/
|
|
634
|
+
live: boolean;
|
|
635
|
+
/**
|
|
636
|
+
* <p>Gets or sets the delay in milliseconds before the live field validation is performed.</p>
|
|
637
|
+
*/
|
|
638
|
+
liveDelay: number;
|
|
639
|
+
/**
|
|
640
|
+
* <p>Gets or sets a value indicating if fields are being detected when the component initializes.</p>
|
|
641
|
+
*/
|
|
642
|
+
detectFields: boolean;
|
|
643
|
+
/**
|
|
644
|
+
* <p>Gets or sets the tabindex of the tooltip trigger element.</p>
|
|
645
|
+
*/
|
|
646
|
+
tooltipTriggerTabIndex: string;
|
|
647
|
+
/**
|
|
648
|
+
* <p>Gets or sets the tooltip manager used to display tooltips.</p>
|
|
649
|
+
*/
|
|
650
|
+
tooltipManagerId: string | null;
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
}
|