@syncfusion/ej2-inputs 30.2.4 → 31.1.17
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/dist/ej2-inputs.min.js +2 -2
- package/dist/ej2-inputs.umd.min.js +2 -2
- package/dist/ej2-inputs.umd.min.js.map +1 -1
- package/dist/es6/ej2-inputs.es2015.js +1 -1
- package/dist/es6/ej2-inputs.es2015.js.map +1 -1
- package/dist/es6/ej2-inputs.es5.js +1 -1
- package/dist/es6/ej2-inputs.es5.js.map +1 -1
- package/dist/global/ej2-inputs.min.js +2 -2
- package/dist/global/ej2-inputs.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/dist/ts/color-picker/color-picker-model.d.ts +186 -0
- package/dist/ts/color-picker/color-picker.d.ts +398 -0
- package/dist/ts/color-picker/color-picker.ts +2209 -0
- package/dist/ts/color-picker/index.d.ts +5 -0
- package/dist/ts/color-picker/index.ts +5 -0
- package/dist/ts/common/index.d.ts +4 -0
- package/dist/ts/common/index.ts +4 -0
- package/dist/ts/common/signature-base.d.ts +340 -0
- package/dist/ts/common/signature-base.ts +1170 -0
- package/dist/ts/form-validator/form-validator-model.d.ts +121 -0
- package/dist/ts/form-validator/form-validator.d.ts +312 -0
- package/dist/ts/form-validator/form-validator.ts +1068 -0
- package/dist/ts/form-validator/index.d.ts +5 -0
- package/dist/ts/form-validator/index.ts +5 -0
- package/dist/ts/index.d.ts +18 -0
- package/dist/ts/index.ts +18 -0
- package/dist/ts/input/index.d.ts +4 -0
- package/dist/ts/input/index.ts +4 -0
- package/dist/ts/input/input.d.ts +345 -0
- package/dist/ts/input/input.ts +1277 -0
- package/dist/ts/maskedtextbox/base/index.d.ts +4 -0
- package/dist/ts/maskedtextbox/base/index.ts +4 -0
- package/dist/ts/maskedtextbox/base/mask-base.d.ts +134 -0
- package/dist/ts/maskedtextbox/base/mask-base.ts +1207 -0
- package/dist/ts/maskedtextbox/index.d.ts +5 -0
- package/dist/ts/maskedtextbox/index.ts +5 -0
- package/dist/ts/maskedtextbox/maskedtextbox/index.d.ts +5 -0
- package/dist/ts/maskedtextbox/maskedtextbox/index.ts +5 -0
- package/dist/ts/maskedtextbox/maskedtextbox/maskedtextbox-model.d.ts +167 -0
- package/dist/ts/maskedtextbox/maskedtextbox/maskedtextbox.d.ts +307 -0
- package/dist/ts/maskedtextbox/maskedtextbox/maskedtextbox.ts +709 -0
- package/dist/ts/numerictextbox/index.d.ts +5 -0
- package/dist/ts/numerictextbox/index.ts +5 -0
- package/dist/ts/numerictextbox/numerictextbox-model.d.ts +228 -0
- package/dist/ts/numerictextbox/numerictextbox.d.ts +431 -0
- package/dist/ts/numerictextbox/numerictextbox.ts +1672 -0
- package/dist/ts/otp-input/index.d.ts +5 -0
- package/dist/ts/otp-input/index.ts +5 -0
- package/dist/ts/otp-input/otp-input-model.d.ts +165 -0
- package/dist/ts/otp-input/otp-input.d.ts +365 -0
- package/dist/ts/otp-input/otp-input.ts +924 -0
- package/dist/ts/rating/index.d.ts +5 -0
- package/dist/ts/rating/index.ts +5 -0
- package/dist/ts/rating/rating-model.d.ts +239 -0
- package/dist/ts/rating/rating.d.ts +416 -0
- package/dist/ts/rating/rating.ts +1101 -0
- package/dist/ts/signature/index.d.ts +5 -0
- package/dist/ts/signature/index.ts +5 -0
- package/dist/ts/signature/signature-model.d.ts +131 -0
- package/dist/ts/signature/signature.d.ts +167 -0
- package/dist/ts/signature/signature.ts +266 -0
- package/dist/ts/slider/index.d.ts +5 -0
- package/dist/ts/slider/index.ts +5 -0
- package/dist/ts/slider/slider-model.d.ts +401 -0
- package/dist/ts/slider/slider.d.ts +721 -0
- package/dist/ts/slider/slider.ts +3497 -0
- package/dist/ts/smart-textarea/caret-helper.d.ts +17 -0
- package/dist/ts/smart-textarea/caret-helper.ts +95 -0
- package/dist/ts/smart-textarea/index.d.ts +5 -0
- package/dist/ts/smart-textarea/index.ts +5 -0
- package/dist/ts/smart-textarea/smart-textarea-model.d.ts +44 -0
- package/dist/ts/smart-textarea/smart-textarea.d.ts +80 -0
- package/dist/ts/smart-textarea/smart-textarea.ts +518 -0
- package/dist/ts/speech-to-text/index.d.ts +5 -0
- package/dist/ts/speech-to-text/index.ts +5 -0
- package/dist/ts/speech-to-text/speech-to-text-model.d.ts +270 -0
- package/dist/ts/speech-to-text/speech-to-text.d.ts +487 -0
- package/dist/ts/speech-to-text/speech-to-text.ts +1008 -0
- package/dist/ts/textarea/index.d.ts +5 -0
- package/dist/ts/textarea/index.ts +5 -0
- package/dist/ts/textarea/textarea-model.d.ts +161 -0
- package/dist/ts/textarea/textarea.d.ts +237 -0
- package/dist/ts/textarea/textarea.ts +812 -0
- package/dist/ts/textbox/index.d.ts +5 -0
- package/dist/ts/textbox/index.ts +5 -0
- package/dist/ts/textbox/textbox-model.d.ts +155 -0
- package/dist/ts/textbox/textbox.d.ts +288 -0
- package/dist/ts/textbox/textbox.ts +872 -0
- package/dist/ts/uploader/index.d.ts +5 -0
- package/dist/ts/uploader/index.ts +5 -0
- package/dist/ts/uploader/uploader-model.d.ts +555 -0
- package/dist/ts/uploader/uploader.d.ts +1216 -0
- package/dist/ts/uploader/uploader.ts +4391 -0
- package/package.json +62 -12
- package/src/input/input.js +1 -1
- package/styles/bootstrap5.3-lite.css +3 -3
- package/styles/bootstrap5.3.css +5 -5
- package/styles/input/_layout.scss +0 -1
- package/styles/input/tailwind3.css +0 -1
- package/styles/tailwind-dark-lite.css +3 -3
- package/styles/tailwind-dark.css +5 -5
- package/styles/tailwind-lite.css +3 -3
- package/styles/tailwind.css +5 -5
- package/styles/tailwind3-lite.css +0 -1
- package/styles/tailwind3.css +0 -1
- package/styles/uploader/_bootstrap5.3-definition.scss +1 -1
- package/styles/uploader/_tailwind-definition.scss +1 -1
- package/styles/uploader/bootstrap5.3.css +5 -5
- package/styles/uploader/tailwind-dark.css +5 -5
- package/styles/uploader/tailwind.css +5 -5
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NumericTextBox all modules
|
|
3
|
+
*/
|
|
4
|
+
export * from './numerictextbox/index';
|
|
5
|
+
export * from './maskedtextbox/index';
|
|
6
|
+
export * from './input/index';
|
|
7
|
+
export * from './slider/index';
|
|
8
|
+
export * from './form-validator/index';
|
|
9
|
+
export * from './uploader/index';
|
|
10
|
+
export * from './color-picker/index';
|
|
11
|
+
export * from './textbox/index';
|
|
12
|
+
export * from './textarea/index';
|
|
13
|
+
export * from './smart-textarea/index';
|
|
14
|
+
export * from './signature/index';
|
|
15
|
+
export * from './rating/index';
|
|
16
|
+
export * from './otp-input/index';
|
|
17
|
+
export * from './common/index';
|
|
18
|
+
export * from './speech-to-text/index';
|
package/dist/ts/index.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NumericTextBox all modules
|
|
3
|
+
*/
|
|
4
|
+
export * from './numerictextbox/index';
|
|
5
|
+
export * from './maskedtextbox/index';
|
|
6
|
+
export * from './input/index';
|
|
7
|
+
export * from './slider/index';
|
|
8
|
+
export * from './form-validator/index';
|
|
9
|
+
export * from './uploader/index';
|
|
10
|
+
export * from './color-picker/index';
|
|
11
|
+
export * from './textbox/index';
|
|
12
|
+
export * from './textarea/index';
|
|
13
|
+
export * from './smart-textarea/index';
|
|
14
|
+
export * from './signature/index';
|
|
15
|
+
export * from './rating/index';
|
|
16
|
+
export * from './otp-input/index';
|
|
17
|
+
export * from './common/index';
|
|
18
|
+
export * from './speech-to-text/index';
|
|
@@ -0,0 +1,345 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Defines floating label type of the input and decides how the label should float on the input.
|
|
3
|
+
*/
|
|
4
|
+
export declare type FloatLabelType = 'Never' | 'Always' | 'Auto';
|
|
5
|
+
/**
|
|
6
|
+
* Defines the constant attributes for the input element container.
|
|
7
|
+
*/
|
|
8
|
+
export declare const containerAttributes: string[];
|
|
9
|
+
/**
|
|
10
|
+
* Defines the constant focus class for the input element.
|
|
11
|
+
*/
|
|
12
|
+
export declare const TEXTBOX_FOCUS: string;
|
|
13
|
+
/**
|
|
14
|
+
* Base for Input creation through util methods.
|
|
15
|
+
*/
|
|
16
|
+
export declare namespace Input {
|
|
17
|
+
/**
|
|
18
|
+
* Create a wrapper to input element with multiple span elements and set the basic properties to input based components.
|
|
19
|
+
* ```
|
|
20
|
+
* E.g : Input.createInput({ element: element, floatLabelType : "Auto", properties: { placeholder: 'Search' } });
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
function createInput(args: InputArgs, internalCreateElement?: createElementParams): InputObject;
|
|
25
|
+
function bindInitialEvent(args: InputArgs): void;
|
|
26
|
+
function wireFloatingEvents(element: HTMLInputElement | HTMLTextAreaElement): void;
|
|
27
|
+
function wireClearBtnEvents(element: HTMLInputElement | HTMLTextAreaElement, button: HTMLElement, container: HTMLElement): void;
|
|
28
|
+
function destroy(args: InputArgs, button?: HTMLElement): void;
|
|
29
|
+
/**
|
|
30
|
+
* Sets the value to the input element.
|
|
31
|
+
* ```
|
|
32
|
+
* E.g : Input.setValue('content', element, "Auto", true );
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* @param {string} value - Specify the value of the input element.
|
|
36
|
+
* @param {HTMLInputElement | HTMLTextAreaElement} element - The element on which the specified value is updated.
|
|
37
|
+
* @param {string} floatLabelType - Specify the float label type of the input element.
|
|
38
|
+
* @param {boolean} clearButton - Boolean value to specify whether the clear icon is enabled / disabled on the input.
|
|
39
|
+
*/
|
|
40
|
+
function setValue(value: string, element: HTMLInputElement | HTMLTextAreaElement, floatLabelType?: string, clearButton?: boolean): void;
|
|
41
|
+
/**
|
|
42
|
+
* Sets the single or multiple cssClass to wrapper of input element.
|
|
43
|
+
* ```
|
|
44
|
+
* E.g : Input.setCssClass('e-custom-class', [element]);
|
|
45
|
+
* ```
|
|
46
|
+
*
|
|
47
|
+
* @param {string} cssClass - Css class names which are needed to add.
|
|
48
|
+
* @param {Element[] | NodeList} elements - The elements which are needed to add / remove classes.
|
|
49
|
+
* @param {string} oldClass
|
|
50
|
+
* - Css class names which are needed to remove. If old classes are need to remove, can give this optional parameter.
|
|
51
|
+
*/
|
|
52
|
+
function setCssClass(cssClass: string, elements: Element[] | NodeList, oldClass?: string): void;
|
|
53
|
+
/**
|
|
54
|
+
* Set the width to the placeholder when it overflows on the button such as spinbutton, clearbutton, icon etc
|
|
55
|
+
* ```
|
|
56
|
+
* E.g : Input.calculateWidth(element, container);
|
|
57
|
+
* ```
|
|
58
|
+
*
|
|
59
|
+
* @param {any} element - Input element which is need to add.
|
|
60
|
+
* @param {HTMLElement} container - The parent element which is need to get the label span to calculate width
|
|
61
|
+
*/
|
|
62
|
+
function calculateWidth(element: any, container: HTMLElement, moduleName?: string): void;
|
|
63
|
+
/**
|
|
64
|
+
* Set the width to the wrapper of input element.
|
|
65
|
+
* ```
|
|
66
|
+
* E.g : Input.setWidth('200px', container);
|
|
67
|
+
* ```
|
|
68
|
+
*
|
|
69
|
+
* @param {number | string} width - Width value which is need to add.
|
|
70
|
+
* @param {HTMLElement} container - The element on which the width is need to add.
|
|
71
|
+
*/
|
|
72
|
+
function setWidth(width: number | string, container: HTMLElement): void;
|
|
73
|
+
/**
|
|
74
|
+
* Set the placeholder attribute to the input element.
|
|
75
|
+
* ```
|
|
76
|
+
* E.g : Input.setPlaceholder('Search here', element);
|
|
77
|
+
* ```
|
|
78
|
+
*
|
|
79
|
+
* @param {string} placeholder - Placeholder value which is need to add.
|
|
80
|
+
* @param {HTMLInputElement | HTMLTextAreaElement} element - The element on which the placeholder is need to add.
|
|
81
|
+
*/
|
|
82
|
+
function setPlaceholder(placeholder: string, element: HTMLInputElement | HTMLTextAreaElement): void;
|
|
83
|
+
/**
|
|
84
|
+
* Set the read only attribute to the input element
|
|
85
|
+
* ```
|
|
86
|
+
* E.g : Input.setReadonly(true, element);
|
|
87
|
+
* ```
|
|
88
|
+
*
|
|
89
|
+
* @param {boolean} isReadonly
|
|
90
|
+
* - Boolean value to specify whether to set read only. Setting "True" value enables read only.
|
|
91
|
+
* @param {HTMLInputElement | HTMLTextAreaElement} element
|
|
92
|
+
* - The element which is need to enable read only.
|
|
93
|
+
*/
|
|
94
|
+
function setReadonly(isReadonly: boolean, element: HTMLInputElement | HTMLTextAreaElement, floatLabelType?: string): void;
|
|
95
|
+
/**
|
|
96
|
+
* Displays the element direction from right to left when its enabled.
|
|
97
|
+
* ```
|
|
98
|
+
* E.g : Input.setEnableRtl(true, [inputObj.container]);
|
|
99
|
+
* ```
|
|
100
|
+
*
|
|
101
|
+
* @param {boolean} isRtl
|
|
102
|
+
* - Boolean value to specify whether to set RTL. Setting "True" value enables the RTL mode.
|
|
103
|
+
* @param {Element[] | NodeList} elements
|
|
104
|
+
* - The elements that are needed to enable/disable RTL.
|
|
105
|
+
*/
|
|
106
|
+
function setEnableRtl(isRtl: boolean, elements: Element[] | NodeList): void;
|
|
107
|
+
/**
|
|
108
|
+
* Enables or disables the given input element.
|
|
109
|
+
* ```
|
|
110
|
+
* E.g : Input.setEnabled(false, element);
|
|
111
|
+
* ```
|
|
112
|
+
*
|
|
113
|
+
* @param {boolean} isEnable
|
|
114
|
+
* - Boolean value to specify whether to enable or disable.
|
|
115
|
+
* @param {HTMLInputElement | HTMLTextAreaElement} element
|
|
116
|
+
* - Element to be enabled or disabled.
|
|
117
|
+
*/
|
|
118
|
+
function setEnabled(isEnable: boolean, element: HTMLInputElement | HTMLTextAreaElement, floatLabelType?: string, inputContainer?: HTMLElement): void;
|
|
119
|
+
function setClearButton(isClear: boolean, element: HTMLInputElement | HTMLTextAreaElement, inputObject: InputObject, initial?: boolean, internalCreateElement?: createElementParams): void;
|
|
120
|
+
/**
|
|
121
|
+
* Removing the multiple attributes from the given element such as "disabled","id" , etc.
|
|
122
|
+
* ```
|
|
123
|
+
* E.g : Input.removeAttributes({ 'disabled': 'disabled', 'aria-disabled': 'true' }, element);
|
|
124
|
+
* ```
|
|
125
|
+
*
|
|
126
|
+
* @param {string} attrs
|
|
127
|
+
* - Array of attributes which are need to removed from the element.
|
|
128
|
+
* @param {HTMLInputElement | HTMLElement} element
|
|
129
|
+
* - Element on which the attributes are needed to be removed.
|
|
130
|
+
*/
|
|
131
|
+
function removeAttributes(attrs: {
|
|
132
|
+
[key: string]: string;
|
|
133
|
+
}, element: HTMLInputElement | HTMLElement): void;
|
|
134
|
+
/**
|
|
135
|
+
* Adding the multiple attributes to the given element such as "disabled","id" , etc.
|
|
136
|
+
* ```
|
|
137
|
+
* E.g : Input.addAttributes({ 'id': 'inputpopup' }, element);
|
|
138
|
+
* ```
|
|
139
|
+
*
|
|
140
|
+
* @param {string} attrs
|
|
141
|
+
* - Array of attributes which is added to element.
|
|
142
|
+
* @param {HTMLInputElement | HTMLElement} element
|
|
143
|
+
* - Element on which the attributes are needed to be added.
|
|
144
|
+
*/
|
|
145
|
+
function addAttributes(attrs: {
|
|
146
|
+
[key: string]: string;
|
|
147
|
+
}, element: HTMLInputElement | HTMLElement): void;
|
|
148
|
+
function removeFloating(input: InputObject): void;
|
|
149
|
+
function addFloating(input: HTMLInputElement | HTMLTextAreaElement, type: FloatLabelType | string, placeholder: string, internalCreateElement?: createElementParams): void;
|
|
150
|
+
/**
|
|
151
|
+
* Create the span inside the label and add the label text into the span textcontent
|
|
152
|
+
* ```
|
|
153
|
+
* E.g : Input.createSpanElement(inputObject, makeElement);
|
|
154
|
+
* ```
|
|
155
|
+
*
|
|
156
|
+
* @param {Element} inputObject
|
|
157
|
+
* - Element which is need to get the label
|
|
158
|
+
* @param {createElementParams} makeElement
|
|
159
|
+
* - Element which is need to create the span
|
|
160
|
+
*/
|
|
161
|
+
function createSpanElement(inputObject: Element, makeElement: createElementParams): void;
|
|
162
|
+
/**
|
|
163
|
+
* Enable or Disable the ripple effect on the icons inside the Input. Ripple effect is only applicable for material theme.
|
|
164
|
+
* ```
|
|
165
|
+
* E.g : Input.setRipple(true, [inputObjects]);
|
|
166
|
+
* ```
|
|
167
|
+
*
|
|
168
|
+
* @param {boolean} isRipple
|
|
169
|
+
* - Boolean value to specify whether to enable the ripple effect.
|
|
170
|
+
* @param {InputObject[]} inputObj
|
|
171
|
+
* - Specify the collection of input objects.
|
|
172
|
+
*/
|
|
173
|
+
function setRipple(isRipple: boolean, inputObj: InputObject[]): void;
|
|
174
|
+
/**
|
|
175
|
+
* Creates a new span element with the given icons added and append it in container element.
|
|
176
|
+
* ```
|
|
177
|
+
* E.g : Input.addIcon('append', 'e-icon-spin', inputObj.container, inputElement);
|
|
178
|
+
* ```
|
|
179
|
+
*
|
|
180
|
+
* @param {string} position - Specify the icon placement on the input.Possible values are append and prepend.
|
|
181
|
+
* @param {string | string[]} icons - Icon classes which are need to add to the span element which is going to created.
|
|
182
|
+
* Span element acts as icon or button element for input.
|
|
183
|
+
* @param {HTMLElement} container - The container on which created span element is going to append.
|
|
184
|
+
* @param {HTMLElement} input - The inputElement on which created span element is going to prepend.
|
|
185
|
+
*/
|
|
186
|
+
function addIcon(position: string, icons: string | string[], container: HTMLElement, input: HTMLElement, internalCreate?: createElementParams): void;
|
|
187
|
+
/**
|
|
188
|
+
* Creates a new span element with the given icons added and prepend it in input element.
|
|
189
|
+
* ```
|
|
190
|
+
* E.g : Input.prependSpan('e-icon-spin', inputObj.container, inputElement);
|
|
191
|
+
* ```
|
|
192
|
+
*
|
|
193
|
+
* @param {string} iconClass - Icon classes which are need to add to the span element which is going to created.
|
|
194
|
+
* Span element acts as icon or button element for input.
|
|
195
|
+
* @param {HTMLElement} container - The container on which created span element is going to append.
|
|
196
|
+
* @param {HTMLElement} inputElement - The inputElement on which created span element is going to prepend.
|
|
197
|
+
*/
|
|
198
|
+
function prependSpan(iconClass: string, container: HTMLElement, inputElement: HTMLElement, internalCreateElement?: createElementParams): HTMLElement;
|
|
199
|
+
/**
|
|
200
|
+
* Creates a new span element with the given icons added and append it in container element.
|
|
201
|
+
* ```
|
|
202
|
+
* E.g : Input.appendSpan('e-icon-spin', inputObj.container);
|
|
203
|
+
* ```
|
|
204
|
+
*
|
|
205
|
+
* @param {string} iconClass - Icon classes which are need to add to the span element which is going to created.
|
|
206
|
+
* Span element acts as icon or button element for input.
|
|
207
|
+
* @param {HTMLElement} container - The container on which created span element is going to append.
|
|
208
|
+
*/
|
|
209
|
+
function appendSpan(iconClass: string, container: HTMLElement, internalCreateElement?: createElementParams): HTMLElement;
|
|
210
|
+
function validateInputType(containerElement: HTMLElement, input: HTMLInputElement | HTMLTextAreaElement): void;
|
|
211
|
+
function updateHTMLAttributesToElement(htmlAttributes: {
|
|
212
|
+
[key: string]: string;
|
|
213
|
+
}, element: HTMLInputElement | HTMLTextAreaElement): void;
|
|
214
|
+
function updateCssClass(newClass: string, oldClass: string, container: HTMLElement): void;
|
|
215
|
+
function getInputValidClassList(inputClassName: string): string;
|
|
216
|
+
function updateHTMLAttributesToWrapper(htmlAttributes: {
|
|
217
|
+
[key: string]: string;
|
|
218
|
+
}, container: HTMLElement): void;
|
|
219
|
+
function isBlank(inputString: string): boolean;
|
|
220
|
+
}
|
|
221
|
+
export interface InputObject {
|
|
222
|
+
container?: HTMLElement;
|
|
223
|
+
buttons?: HTMLElement[];
|
|
224
|
+
clearButton?: HTMLElement;
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Arguments to create input element for input text boxes utility.These properties are optional.
|
|
228
|
+
*/
|
|
229
|
+
export interface InputArgs {
|
|
230
|
+
/**
|
|
231
|
+
* Element which is needed to add to the container.
|
|
232
|
+
* ```
|
|
233
|
+
* E.g : Input.createInput({ element: element });
|
|
234
|
+
* ```
|
|
235
|
+
*/
|
|
236
|
+
element: HTMLInputElement | HTMLTextAreaElement;
|
|
237
|
+
/**
|
|
238
|
+
* ```
|
|
239
|
+
* E.g : Input.createInput({ element: element, buttons: ['e-icon-up', 'e-icon-down'] });
|
|
240
|
+
* ```
|
|
241
|
+
* Specifies the icon classes for span element which will be append to the container.
|
|
242
|
+
*/
|
|
243
|
+
buttons?: string[];
|
|
244
|
+
/**
|
|
245
|
+
* ```
|
|
246
|
+
* E.g : Input.createInput({ element: element, customTag: 'ej2-custom-input' });
|
|
247
|
+
* ```
|
|
248
|
+
* Specifies the custom tag which is acts as container to the input.
|
|
249
|
+
*/
|
|
250
|
+
customTag?: string;
|
|
251
|
+
/**
|
|
252
|
+
* ```
|
|
253
|
+
* E.g : Input.createInput({ element: element, floatLabelType : "Always" });
|
|
254
|
+
* ```
|
|
255
|
+
* Specifies how the floating label works.
|
|
256
|
+
* Possible values are:
|
|
257
|
+
* * Never - Never float the label in the input when the placeholder is available.
|
|
258
|
+
* * Always - The floating label will always float above the input.
|
|
259
|
+
* * Auto - The floating label will float above the input after focusing or entering a value in the input.
|
|
260
|
+
*/
|
|
261
|
+
floatLabelType?: FloatLabelType | string;
|
|
262
|
+
/**
|
|
263
|
+
* ```
|
|
264
|
+
* E.g : Input.createInput({ element: element, customTag: 'ej2-custom-input' ,bindClearAction: false });
|
|
265
|
+
* ```
|
|
266
|
+
* Specifies whether to bind the clear button action in input base or not.
|
|
267
|
+
*/
|
|
268
|
+
bindClearAction?: boolean;
|
|
269
|
+
/**
|
|
270
|
+
* ```
|
|
271
|
+
* E.g : Input.createInput({ element: element, properties: { readonly: true, placeholder: 'Search here' } });
|
|
272
|
+
* ```
|
|
273
|
+
* To specifies the properties such as readonly,enable rtl,etc.
|
|
274
|
+
*/
|
|
275
|
+
properties?: {
|
|
276
|
+
readonly?: boolean;
|
|
277
|
+
placeholder?: string;
|
|
278
|
+
cssClass?: string;
|
|
279
|
+
enableRtl?: boolean;
|
|
280
|
+
enabled?: boolean;
|
|
281
|
+
showClearButton?: boolean;
|
|
282
|
+
};
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* Default required properties for input components.
|
|
286
|
+
*/
|
|
287
|
+
export interface IInput {
|
|
288
|
+
/**
|
|
289
|
+
* Sets the placeholder value to input.
|
|
290
|
+
*/
|
|
291
|
+
placeholder: string;
|
|
292
|
+
/**
|
|
293
|
+
* Sets the css class value to input.
|
|
294
|
+
*/
|
|
295
|
+
cssClass: string;
|
|
296
|
+
/**
|
|
297
|
+
* Sets the enabled value to input.
|
|
298
|
+
*/
|
|
299
|
+
enabled?: boolean;
|
|
300
|
+
/**
|
|
301
|
+
* Sets the readonly value to input.
|
|
302
|
+
*/
|
|
303
|
+
readonly: boolean;
|
|
304
|
+
/**
|
|
305
|
+
* Sets the enable rtl value to input.
|
|
306
|
+
*/
|
|
307
|
+
enableRtl: boolean;
|
|
308
|
+
/**
|
|
309
|
+
* Specifies whether to display the Clear button in the input.
|
|
310
|
+
*/
|
|
311
|
+
showClearButton?: boolean;
|
|
312
|
+
/**
|
|
313
|
+
* Specifies how the floating label works.
|
|
314
|
+
* Possible values are:
|
|
315
|
+
* * Never - Never float the label in the input when the placeholder is available.
|
|
316
|
+
* * Always - The floating label will always float above the input.
|
|
317
|
+
* * Auto - The floating label will float above the input after focusing or entering a value in the input.
|
|
318
|
+
*/
|
|
319
|
+
floatLabelType?: FloatLabelType | string;
|
|
320
|
+
/**
|
|
321
|
+
* Sets the change event mapping function to input.
|
|
322
|
+
*/
|
|
323
|
+
change: Function;
|
|
324
|
+
}
|
|
325
|
+
export declare type createElementParams = (tag: string, prop?: {
|
|
326
|
+
id?: string;
|
|
327
|
+
className?: string;
|
|
328
|
+
innerHTML?: string;
|
|
329
|
+
styles?: string;
|
|
330
|
+
attrs?: {
|
|
331
|
+
[key: string]: string;
|
|
332
|
+
};
|
|
333
|
+
}) => HTMLElement;
|
|
334
|
+
/**
|
|
335
|
+
* Defines the argument for the focus event.
|
|
336
|
+
*/
|
|
337
|
+
export interface FocusEventArgs {
|
|
338
|
+
model?: Object;
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
* Defines the argument for the blur event.
|
|
342
|
+
*/
|
|
343
|
+
export interface BlurEventArgs {
|
|
344
|
+
model?: Object;
|
|
345
|
+
}
|