@syncfusion/ej2-inputs 31.1.17 → 31.1.20
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 +4 -3
- package/dist/es6/ej2-inputs.es2015.js.map +1 -1
- package/dist/es6/ej2-inputs.es5.js +4 -3
- 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/package.json +10 -60
- package/src/color-picker/color-picker.js +4 -3
- package/styles/bootstrap4-lite.css +2 -2
- package/styles/bootstrap4.css +2 -2
- package/styles/bootstrap5-dark-lite.css +2 -2
- package/styles/bootstrap5-dark.css +2 -2
- package/styles/bootstrap5-lite.css +2 -2
- package/styles/bootstrap5.css +2 -2
- package/styles/input/_bootstrap4-definition.scss +1 -1
- package/styles/input/_bootstrap5-definition.scss +1 -1
- package/styles/input/bootstrap4.css +2 -2
- package/styles/input/bootstrap5-dark.css +2 -2
- package/styles/input/bootstrap5.css +2 -2
- package/dist/ts/color-picker/color-picker-model.d.ts +0 -186
- package/dist/ts/color-picker/color-picker.d.ts +0 -398
- package/dist/ts/color-picker/color-picker.ts +0 -2209
- package/dist/ts/color-picker/index.d.ts +0 -5
- package/dist/ts/color-picker/index.ts +0 -5
- package/dist/ts/common/index.d.ts +0 -4
- package/dist/ts/common/index.ts +0 -4
- package/dist/ts/common/signature-base.d.ts +0 -340
- package/dist/ts/common/signature-base.ts +0 -1170
- package/dist/ts/form-validator/form-validator-model.d.ts +0 -121
- package/dist/ts/form-validator/form-validator.d.ts +0 -312
- package/dist/ts/form-validator/form-validator.ts +0 -1068
- package/dist/ts/form-validator/index.d.ts +0 -5
- package/dist/ts/form-validator/index.ts +0 -5
- package/dist/ts/index.d.ts +0 -18
- package/dist/ts/index.ts +0 -18
- package/dist/ts/input/index.d.ts +0 -4
- package/dist/ts/input/index.ts +0 -4
- package/dist/ts/input/input.d.ts +0 -345
- package/dist/ts/input/input.ts +0 -1277
- package/dist/ts/maskedtextbox/base/index.d.ts +0 -4
- package/dist/ts/maskedtextbox/base/index.ts +0 -4
- package/dist/ts/maskedtextbox/base/mask-base.d.ts +0 -134
- package/dist/ts/maskedtextbox/base/mask-base.ts +0 -1207
- package/dist/ts/maskedtextbox/index.d.ts +0 -5
- package/dist/ts/maskedtextbox/index.ts +0 -5
- package/dist/ts/maskedtextbox/maskedtextbox/index.d.ts +0 -5
- package/dist/ts/maskedtextbox/maskedtextbox/index.ts +0 -5
- package/dist/ts/maskedtextbox/maskedtextbox/maskedtextbox-model.d.ts +0 -167
- package/dist/ts/maskedtextbox/maskedtextbox/maskedtextbox.d.ts +0 -307
- package/dist/ts/maskedtextbox/maskedtextbox/maskedtextbox.ts +0 -709
- package/dist/ts/numerictextbox/index.d.ts +0 -5
- package/dist/ts/numerictextbox/index.ts +0 -5
- package/dist/ts/numerictextbox/numerictextbox-model.d.ts +0 -228
- package/dist/ts/numerictextbox/numerictextbox.d.ts +0 -431
- package/dist/ts/numerictextbox/numerictextbox.ts +0 -1672
- package/dist/ts/otp-input/index.d.ts +0 -5
- package/dist/ts/otp-input/index.ts +0 -5
- package/dist/ts/otp-input/otp-input-model.d.ts +0 -165
- package/dist/ts/otp-input/otp-input.d.ts +0 -365
- package/dist/ts/otp-input/otp-input.ts +0 -924
- package/dist/ts/rating/index.d.ts +0 -5
- package/dist/ts/rating/index.ts +0 -5
- package/dist/ts/rating/rating-model.d.ts +0 -239
- package/dist/ts/rating/rating.d.ts +0 -416
- package/dist/ts/rating/rating.ts +0 -1101
- package/dist/ts/signature/index.d.ts +0 -5
- package/dist/ts/signature/index.ts +0 -5
- package/dist/ts/signature/signature-model.d.ts +0 -131
- package/dist/ts/signature/signature.d.ts +0 -167
- package/dist/ts/signature/signature.ts +0 -266
- package/dist/ts/slider/index.d.ts +0 -5
- package/dist/ts/slider/index.ts +0 -5
- package/dist/ts/slider/slider-model.d.ts +0 -401
- package/dist/ts/slider/slider.d.ts +0 -721
- package/dist/ts/slider/slider.ts +0 -3497
- package/dist/ts/smart-textarea/caret-helper.d.ts +0 -17
- package/dist/ts/smart-textarea/caret-helper.ts +0 -95
- package/dist/ts/smart-textarea/index.d.ts +0 -5
- package/dist/ts/smart-textarea/index.ts +0 -5
- package/dist/ts/smart-textarea/smart-textarea-model.d.ts +0 -44
- package/dist/ts/smart-textarea/smart-textarea.d.ts +0 -80
- package/dist/ts/smart-textarea/smart-textarea.ts +0 -518
- package/dist/ts/speech-to-text/index.d.ts +0 -5
- package/dist/ts/speech-to-text/index.ts +0 -5
- package/dist/ts/speech-to-text/speech-to-text-model.d.ts +0 -270
- package/dist/ts/speech-to-text/speech-to-text.d.ts +0 -487
- package/dist/ts/speech-to-text/speech-to-text.ts +0 -1008
- package/dist/ts/textarea/index.d.ts +0 -5
- package/dist/ts/textarea/index.ts +0 -5
- package/dist/ts/textarea/textarea-model.d.ts +0 -161
- package/dist/ts/textarea/textarea.d.ts +0 -237
- package/dist/ts/textarea/textarea.ts +0 -812
- package/dist/ts/textbox/index.d.ts +0 -5
- package/dist/ts/textbox/index.ts +0 -5
- package/dist/ts/textbox/textbox-model.d.ts +0 -155
- package/dist/ts/textbox/textbox.d.ts +0 -288
- package/dist/ts/textbox/textbox.ts +0 -872
- package/dist/ts/uploader/index.d.ts +0 -5
- package/dist/ts/uploader/index.ts +0 -5
- package/dist/ts/uploader/uploader-model.d.ts +0 -555
- package/dist/ts/uploader/uploader.d.ts +0 -1216
- package/dist/ts/uploader/uploader.ts +0 -4391
|
@@ -1,228 +0,0 @@
|
|
|
1
|
-
import { Component, EventHandler, Property, Event, Browser, L10n, EmitType, getUniqueID } from '@syncfusion/ej2-base';import { NotifyPropertyChanges, INotifyPropertyChanged, BaseEventArgs } from '@syncfusion/ej2-base';import { attributes, addClass, removeClass, detach, closest } from '@syncfusion/ej2-base';import { isNullOrUndefined, getValue, formatUnit, setValue, merge } from '@syncfusion/ej2-base';import { Internationalization, NumberFormatOptions, getNumericObject } from '@syncfusion/ej2-base';import { Input, InputObject, FloatLabelType } from '../input/input';
|
|
2
|
-
import {ChangeEventArgs,NumericFocusEventArgs,NumericBlurEventArgs} from "./numerictextbox";
|
|
3
|
-
import {ComponentModel} from '@syncfusion/ej2-base';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Interface for a class NumericTextBox
|
|
7
|
-
*/
|
|
8
|
-
export interface NumericTextBoxModel extends ComponentModel{
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Gets or Sets the CSS classes to root element of the NumericTextBox which helps to customize the
|
|
12
|
-
* complete UI styles for the NumericTextBox component.
|
|
13
|
-
*
|
|
14
|
-
* @default null
|
|
15
|
-
*/
|
|
16
|
-
cssClass?: string;
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Sets the value of the NumericTextBox.
|
|
20
|
-
*
|
|
21
|
-
* @default null
|
|
22
|
-
* @aspType object
|
|
23
|
-
* @isGenericType true
|
|
24
|
-
*/
|
|
25
|
-
value?: number;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Specifies a minimum value that is allowed a user can enter.
|
|
29
|
-
* For more information on min, refer to
|
|
30
|
-
* [min](../../numerictextbox/getting-started/#range-validation).
|
|
31
|
-
*
|
|
32
|
-
* @default null
|
|
33
|
-
* @aspType object
|
|
34
|
-
* @isGenericType true
|
|
35
|
-
* @deprecated
|
|
36
|
-
*/
|
|
37
|
-
min?: number;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Specifies a maximum value that is allowed a user can enter.
|
|
41
|
-
* For more information on max, refer to
|
|
42
|
-
* [max](../../numerictextbox/getting-started/#range-validation).
|
|
43
|
-
*
|
|
44
|
-
* @default null
|
|
45
|
-
* @aspType object
|
|
46
|
-
* @isGenericType true
|
|
47
|
-
* @deprecated
|
|
48
|
-
*/
|
|
49
|
-
max?: number;
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Specifies the incremental or decremental step size for the NumericTextBox.
|
|
53
|
-
* For more information on step, refer to
|
|
54
|
-
* [step](../../numerictextbox/getting-started/#range-validation).
|
|
55
|
-
*
|
|
56
|
-
* @default 1
|
|
57
|
-
* @isGenericType true
|
|
58
|
-
*/
|
|
59
|
-
step?: number;
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Specifies the width of the NumericTextBox.
|
|
63
|
-
*
|
|
64
|
-
* @default null
|
|
65
|
-
*/
|
|
66
|
-
width?: number | string;
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Gets or sets the string shown as a hint/placeholder when the NumericTextBox is empty.
|
|
70
|
-
* It acts as a label and floats above the NumericTextBox based on the
|
|
71
|
-
* <b><a href="#floatlabeltype" target="_blank">floatLabelType.</a></b>
|
|
72
|
-
*
|
|
73
|
-
* @default null
|
|
74
|
-
*/
|
|
75
|
-
placeholder?: string;
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* You can add the additional html attributes such as disabled, value etc., to the element.
|
|
79
|
-
* If you configured both property and equivalent html attribute then the component considers the property value.
|
|
80
|
-
* {% codeBlock src='numerictextbox/htmlAttributes/index.md' %}{% endcodeBlock %}
|
|
81
|
-
*
|
|
82
|
-
* @default {}
|
|
83
|
-
*/
|
|
84
|
-
htmlAttributes?: { [key: string]: string };
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* Specifies whether the up and down spin buttons should be displayed in NumericTextBox.
|
|
88
|
-
*
|
|
89
|
-
* @default true
|
|
90
|
-
*/
|
|
91
|
-
showSpinButton?: boolean;
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* Sets a value that enables or disables the readonly state on the NumericTextBox. If it is true,
|
|
95
|
-
* NumericTextBox will not allow your input.
|
|
96
|
-
*
|
|
97
|
-
* @default false
|
|
98
|
-
*/
|
|
99
|
-
readonly?: boolean;
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* Sets a value that enables or disables the NumericTextBox control.
|
|
103
|
-
*
|
|
104
|
-
* @default true
|
|
105
|
-
*/
|
|
106
|
-
enabled?: boolean;
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* Specifies whether to show or hide the clear icon.
|
|
110
|
-
*
|
|
111
|
-
* @default false
|
|
112
|
-
*/
|
|
113
|
-
showClearButton?: boolean;
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* Enable or disable persisting NumericTextBox state between page reloads. If enabled, the `value` state will be persisted.
|
|
117
|
-
*
|
|
118
|
-
* @default false
|
|
119
|
-
*/
|
|
120
|
-
enablePersistence?: boolean;
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* Specifies the number format that indicates the display format for the value of the NumericTextBox.
|
|
124
|
-
* For more information on formats, refer to
|
|
125
|
-
* [formats](../../numerictextbox/formats/#standard-formats).
|
|
126
|
-
*
|
|
127
|
-
* @default 'n2'
|
|
128
|
-
*/
|
|
129
|
-
format?: string;
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* Specifies the number precision applied to the textbox value when the NumericTextBox is focused.
|
|
133
|
-
* For more information on decimals, refer to
|
|
134
|
-
* [decimals](../../numerictextbox/formats/#precision-of-numbers).
|
|
135
|
-
*
|
|
136
|
-
* @default null
|
|
137
|
-
*/
|
|
138
|
-
decimals?: number;
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* Specifies the currency code to use in currency formatting.
|
|
142
|
-
* Possible values are the ISO 4217 currency codes, such as 'USD' for the US dollar,'EUR' for the euro.
|
|
143
|
-
*
|
|
144
|
-
* @default null
|
|
145
|
-
*/
|
|
146
|
-
currency?: string;
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* Specifies the currency code to use in currency formatting.
|
|
150
|
-
* Possible values are the ISO 4217 currency codes, such as 'USD' for the US dollar,'EUR' for the euro.
|
|
151
|
-
*
|
|
152
|
-
* @default null
|
|
153
|
-
* @private
|
|
154
|
-
*/
|
|
155
|
-
currencyCode?: string;
|
|
156
|
-
|
|
157
|
-
/**
|
|
158
|
-
* Specifies a value that indicates whether the NumericTextBox control allows the value for the specified range.
|
|
159
|
-
* If it is true, the input value will be restricted between the min and max range.
|
|
160
|
-
* The typed value gets modified to fit the range on focused out state.
|
|
161
|
-
* Else, it allows any value even out of range value,
|
|
162
|
-
* At that time of wrong value entered, the error class will be added to the component to highlight the error.
|
|
163
|
-
* {% codeBlock src='numerictextbox/strictMode/index.md' %}{% endcodeBlock %}
|
|
164
|
-
*
|
|
165
|
-
* @default true
|
|
166
|
-
*/
|
|
167
|
-
strictMode?: boolean;
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* Specifies whether the decimals length should be restricted during typing.
|
|
171
|
-
*
|
|
172
|
-
* @default false
|
|
173
|
-
*/
|
|
174
|
-
validateDecimalOnType?: boolean;
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* The <b><a href="#placeholder" target="_blank">placeholder</a></b> acts as a label
|
|
178
|
-
* and floats above the NumericTextBox based on the below values.
|
|
179
|
-
* Possible values are:
|
|
180
|
-
* * `Never` - Never floats the label in the NumericTextBox when the placeholder is available.
|
|
181
|
-
* * `Always` - The floating label always floats above the NumericTextBox.
|
|
182
|
-
* * `Auto` - The floating label floats above the NumericTextBox after focusing it or when enters the value in it.
|
|
183
|
-
*
|
|
184
|
-
* @default Never
|
|
185
|
-
*/
|
|
186
|
-
floatLabelType?: FloatLabelType;
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* Triggers when the NumericTextBox component is created.
|
|
190
|
-
*
|
|
191
|
-
* @event created
|
|
192
|
-
*/
|
|
193
|
-
created?: EmitType<Object>;
|
|
194
|
-
|
|
195
|
-
/**
|
|
196
|
-
* Triggers when the NumericTextBox component is destroyed.
|
|
197
|
-
*
|
|
198
|
-
* @event destroyed
|
|
199
|
-
*/
|
|
200
|
-
destroyed?: EmitType<Object>;
|
|
201
|
-
|
|
202
|
-
/**
|
|
203
|
-
* Triggers when the value of the NumericTextBox changes.
|
|
204
|
-
* The change event of the NumericTextBox component will be triggered in the following scenarios:
|
|
205
|
-
* * Changing the previous value using keyboard interaction and then focusing out of the component.
|
|
206
|
-
* * Focusing on the component and scrolling within the input.
|
|
207
|
-
* * Changing the value using the spin buttons.
|
|
208
|
-
* * Programmatically changing the value using the value property.
|
|
209
|
-
*
|
|
210
|
-
* @event change
|
|
211
|
-
*/
|
|
212
|
-
change?: EmitType<ChangeEventArgs>;
|
|
213
|
-
|
|
214
|
-
/**
|
|
215
|
-
* Triggers when the NumericTextBox got focus in.
|
|
216
|
-
*
|
|
217
|
-
* @event focus
|
|
218
|
-
*/
|
|
219
|
-
focus?: EmitType<NumericFocusEventArgs>;
|
|
220
|
-
|
|
221
|
-
/**
|
|
222
|
-
* Triggers when the NumericTextBox got focus out.
|
|
223
|
-
*
|
|
224
|
-
* @event blur
|
|
225
|
-
*/
|
|
226
|
-
blur?: EmitType<NumericBlurEventArgs>;
|
|
227
|
-
|
|
228
|
-
}
|
|
@@ -1,431 +0,0 @@
|
|
|
1
|
-
import { Component, EmitType } from '@syncfusion/ej2-base';
|
|
2
|
-
import { INotifyPropertyChanged, BaseEventArgs } from '@syncfusion/ej2-base';
|
|
3
|
-
import { NumericTextBoxModel } from './numerictextbox-model';
|
|
4
|
-
import { FloatLabelType } from '../input/input';
|
|
5
|
-
/**
|
|
6
|
-
* Represents the NumericTextBox component that allows the user to enter only numeric values.
|
|
7
|
-
* ```html
|
|
8
|
-
* <input type='text' id="numeric"/>
|
|
9
|
-
* ```
|
|
10
|
-
* ```typescript
|
|
11
|
-
* <script>
|
|
12
|
-
* var numericObj = new NumericTextBox({ value: 10 });
|
|
13
|
-
* numericObj.appendTo("#numeric");
|
|
14
|
-
* </script>
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
|
-
export declare class NumericTextBox extends Component<HTMLInputElement> implements INotifyPropertyChanged {
|
|
18
|
-
private container;
|
|
19
|
-
private inputWrapper;
|
|
20
|
-
private cloneElement;
|
|
21
|
-
private hiddenInput;
|
|
22
|
-
private spinUp;
|
|
23
|
-
private spinDown;
|
|
24
|
-
private formEle;
|
|
25
|
-
private inputEleValue;
|
|
26
|
-
private timeOut;
|
|
27
|
-
private prevValue;
|
|
28
|
-
private isValidState;
|
|
29
|
-
private isFocused;
|
|
30
|
-
private isPrevFocused;
|
|
31
|
-
private instance;
|
|
32
|
-
private cultureInfo;
|
|
33
|
-
private inputStyle;
|
|
34
|
-
private inputName;
|
|
35
|
-
private decimalSeparator;
|
|
36
|
-
private angularTagName;
|
|
37
|
-
private intRegExp;
|
|
38
|
-
private l10n;
|
|
39
|
-
private isCalled;
|
|
40
|
-
private prevVal;
|
|
41
|
-
private nextEle;
|
|
42
|
-
private cursorPosChanged;
|
|
43
|
-
private changeEventArgs;
|
|
44
|
-
private focusEventArgs;
|
|
45
|
-
private blurEventArgs;
|
|
46
|
-
private numericOptions;
|
|
47
|
-
private isInteract;
|
|
48
|
-
private serverDecimalSeparator;
|
|
49
|
-
private preventChange;
|
|
50
|
-
private elementPrevValue;
|
|
51
|
-
private isDynamicChange;
|
|
52
|
-
private inputValue;
|
|
53
|
-
private clearButton;
|
|
54
|
-
/**
|
|
55
|
-
* Gets or Sets the CSS classes to root element of the NumericTextBox which helps to customize the
|
|
56
|
-
* complete UI styles for the NumericTextBox component.
|
|
57
|
-
*
|
|
58
|
-
* @default null
|
|
59
|
-
*/
|
|
60
|
-
cssClass: string;
|
|
61
|
-
/**
|
|
62
|
-
* Sets the value of the NumericTextBox.
|
|
63
|
-
*
|
|
64
|
-
* @default null
|
|
65
|
-
* @aspType object
|
|
66
|
-
* @isGenericType true
|
|
67
|
-
*/
|
|
68
|
-
value: number;
|
|
69
|
-
/**
|
|
70
|
-
* Specifies a minimum value that is allowed a user can enter.
|
|
71
|
-
* For more information on min, refer to
|
|
72
|
-
* [min](../../numerictextbox/getting-started/#range-validation).
|
|
73
|
-
*
|
|
74
|
-
* @default null
|
|
75
|
-
* @aspType object
|
|
76
|
-
* @isGenericType true
|
|
77
|
-
* @deprecated
|
|
78
|
-
*/
|
|
79
|
-
min: number;
|
|
80
|
-
/**
|
|
81
|
-
* Specifies a maximum value that is allowed a user can enter.
|
|
82
|
-
* For more information on max, refer to
|
|
83
|
-
* [max](../../numerictextbox/getting-started/#range-validation).
|
|
84
|
-
*
|
|
85
|
-
* @default null
|
|
86
|
-
* @aspType object
|
|
87
|
-
* @isGenericType true
|
|
88
|
-
* @deprecated
|
|
89
|
-
*/
|
|
90
|
-
max: number;
|
|
91
|
-
/**
|
|
92
|
-
* Specifies the incremental or decremental step size for the NumericTextBox.
|
|
93
|
-
* For more information on step, refer to
|
|
94
|
-
* [step](../../numerictextbox/getting-started/#range-validation).
|
|
95
|
-
*
|
|
96
|
-
* @default 1
|
|
97
|
-
* @isGenericType true
|
|
98
|
-
*/
|
|
99
|
-
step: number;
|
|
100
|
-
/**
|
|
101
|
-
* Specifies the width of the NumericTextBox.
|
|
102
|
-
*
|
|
103
|
-
* @default null
|
|
104
|
-
*/
|
|
105
|
-
width: number | string;
|
|
106
|
-
/**
|
|
107
|
-
* Gets or sets the string shown as a hint/placeholder when the NumericTextBox is empty.
|
|
108
|
-
* It acts as a label and floats above the NumericTextBox based on the
|
|
109
|
-
* <b><a href="#floatlabeltype" target="_blank">floatLabelType.</a></b>
|
|
110
|
-
*
|
|
111
|
-
* @default null
|
|
112
|
-
*/
|
|
113
|
-
placeholder: string;
|
|
114
|
-
/**
|
|
115
|
-
* You can add the additional html attributes such as disabled, value etc., to the element.
|
|
116
|
-
* If you configured both property and equivalent html attribute then the component considers the property value.
|
|
117
|
-
* {% codeBlock src='numerictextbox/htmlAttributes/index.md' %}{% endcodeBlock %}
|
|
118
|
-
*
|
|
119
|
-
* @default {}
|
|
120
|
-
*/
|
|
121
|
-
htmlAttributes: {
|
|
122
|
-
[key: string]: string;
|
|
123
|
-
};
|
|
124
|
-
/**
|
|
125
|
-
* Specifies whether the up and down spin buttons should be displayed in NumericTextBox.
|
|
126
|
-
*
|
|
127
|
-
* @default true
|
|
128
|
-
*/
|
|
129
|
-
showSpinButton: boolean;
|
|
130
|
-
/**
|
|
131
|
-
* Sets a value that enables or disables the readonly state on the NumericTextBox. If it is true,
|
|
132
|
-
* NumericTextBox will not allow your input.
|
|
133
|
-
*
|
|
134
|
-
* @default false
|
|
135
|
-
*/
|
|
136
|
-
readonly: boolean;
|
|
137
|
-
/**
|
|
138
|
-
* Sets a value that enables or disables the NumericTextBox control.
|
|
139
|
-
*
|
|
140
|
-
* @default true
|
|
141
|
-
*/
|
|
142
|
-
enabled: boolean;
|
|
143
|
-
/**
|
|
144
|
-
* Specifies whether to show or hide the clear icon.
|
|
145
|
-
*
|
|
146
|
-
* @default false
|
|
147
|
-
*/
|
|
148
|
-
showClearButton: boolean;
|
|
149
|
-
/**
|
|
150
|
-
* Enable or disable persisting NumericTextBox state between page reloads. If enabled, the `value` state will be persisted.
|
|
151
|
-
*
|
|
152
|
-
* @default false
|
|
153
|
-
*/
|
|
154
|
-
enablePersistence: boolean;
|
|
155
|
-
/**
|
|
156
|
-
* Specifies the number format that indicates the display format for the value of the NumericTextBox.
|
|
157
|
-
* For more information on formats, refer to
|
|
158
|
-
* [formats](../../numerictextbox/formats/#standard-formats).
|
|
159
|
-
*
|
|
160
|
-
* @default 'n2'
|
|
161
|
-
*/
|
|
162
|
-
format: string;
|
|
163
|
-
/**
|
|
164
|
-
* Specifies the number precision applied to the textbox value when the NumericTextBox is focused.
|
|
165
|
-
* For more information on decimals, refer to
|
|
166
|
-
* [decimals](../../numerictextbox/formats/#precision-of-numbers).
|
|
167
|
-
*
|
|
168
|
-
* @default null
|
|
169
|
-
*/
|
|
170
|
-
decimals: number;
|
|
171
|
-
/**
|
|
172
|
-
* Specifies the currency code to use in currency formatting.
|
|
173
|
-
* Possible values are the ISO 4217 currency codes, such as 'USD' for the US dollar,'EUR' for the euro.
|
|
174
|
-
*
|
|
175
|
-
* @default null
|
|
176
|
-
*/
|
|
177
|
-
currency: string;
|
|
178
|
-
/**
|
|
179
|
-
* Specifies the currency code to use in currency formatting.
|
|
180
|
-
* Possible values are the ISO 4217 currency codes, such as 'USD' for the US dollar,'EUR' for the euro.
|
|
181
|
-
*
|
|
182
|
-
* @default null
|
|
183
|
-
* @private
|
|
184
|
-
*/
|
|
185
|
-
private currencyCode;
|
|
186
|
-
/**
|
|
187
|
-
* Specifies a value that indicates whether the NumericTextBox control allows the value for the specified range.
|
|
188
|
-
* If it is true, the input value will be restricted between the min and max range.
|
|
189
|
-
* The typed value gets modified to fit the range on focused out state.
|
|
190
|
-
* Else, it allows any value even out of range value,
|
|
191
|
-
* At that time of wrong value entered, the error class will be added to the component to highlight the error.
|
|
192
|
-
* {% codeBlock src='numerictextbox/strictMode/index.md' %}{% endcodeBlock %}
|
|
193
|
-
*
|
|
194
|
-
* @default true
|
|
195
|
-
*/
|
|
196
|
-
strictMode: boolean;
|
|
197
|
-
/**
|
|
198
|
-
* Specifies whether the decimals length should be restricted during typing.
|
|
199
|
-
*
|
|
200
|
-
* @default false
|
|
201
|
-
*/
|
|
202
|
-
validateDecimalOnType: boolean;
|
|
203
|
-
/**
|
|
204
|
-
* The <b><a href="#placeholder" target="_blank">placeholder</a></b> acts as a label
|
|
205
|
-
* and floats above the NumericTextBox based on the below values.
|
|
206
|
-
* Possible values are:
|
|
207
|
-
* * `Never` - Never floats the label in the NumericTextBox when the placeholder is available.
|
|
208
|
-
* * `Always` - The floating label always floats above the NumericTextBox.
|
|
209
|
-
* * `Auto` - The floating label floats above the NumericTextBox after focusing it or when enters the value in it.
|
|
210
|
-
*
|
|
211
|
-
* @default Never
|
|
212
|
-
*/
|
|
213
|
-
floatLabelType: FloatLabelType;
|
|
214
|
-
/**
|
|
215
|
-
* Triggers when the NumericTextBox component is created.
|
|
216
|
-
*
|
|
217
|
-
* @event created
|
|
218
|
-
*/
|
|
219
|
-
created: EmitType<Object>;
|
|
220
|
-
/**
|
|
221
|
-
* Triggers when the NumericTextBox component is destroyed.
|
|
222
|
-
*
|
|
223
|
-
* @event destroyed
|
|
224
|
-
*/
|
|
225
|
-
destroyed: EmitType<Object>;
|
|
226
|
-
/**
|
|
227
|
-
* Triggers when the value of the NumericTextBox changes.
|
|
228
|
-
* The change event of the NumericTextBox component will be triggered in the following scenarios:
|
|
229
|
-
* * Changing the previous value using keyboard interaction and then focusing out of the component.
|
|
230
|
-
* * Focusing on the component and scrolling within the input.
|
|
231
|
-
* * Changing the value using the spin buttons.
|
|
232
|
-
* * Programmatically changing the value using the value property.
|
|
233
|
-
*
|
|
234
|
-
* @event change
|
|
235
|
-
*/
|
|
236
|
-
change: EmitType<ChangeEventArgs>;
|
|
237
|
-
/**
|
|
238
|
-
* Triggers when the NumericTextBox got focus in.
|
|
239
|
-
*
|
|
240
|
-
* @event focus
|
|
241
|
-
*/
|
|
242
|
-
focus: EmitType<NumericFocusEventArgs>;
|
|
243
|
-
/**
|
|
244
|
-
* Triggers when the NumericTextBox got focus out.
|
|
245
|
-
*
|
|
246
|
-
* @event blur
|
|
247
|
-
*/
|
|
248
|
-
blur: EmitType<NumericBlurEventArgs>;
|
|
249
|
-
/**
|
|
250
|
-
*
|
|
251
|
-
* @param {NumericTextBoxModel} options - Specifies the NumericTextBox model.
|
|
252
|
-
* @param {string | HTMLInputElement} element - Specifies the element to render as component.
|
|
253
|
-
* @private
|
|
254
|
-
*/
|
|
255
|
-
constructor(options?: NumericTextBoxModel, element?: string | HTMLInputElement);
|
|
256
|
-
protected preRender(): void;
|
|
257
|
-
/**
|
|
258
|
-
* To Initialize the control rendering
|
|
259
|
-
*
|
|
260
|
-
* @returns {void}
|
|
261
|
-
* @private
|
|
262
|
-
*/
|
|
263
|
-
render(): void;
|
|
264
|
-
private checkAttributes;
|
|
265
|
-
private updatePlaceholder;
|
|
266
|
-
private initCultureFunc;
|
|
267
|
-
private initCultureInfo;
|
|
268
|
-
private createWrapper;
|
|
269
|
-
private updateDataAttribute;
|
|
270
|
-
private updateHTMLAttrToElement;
|
|
271
|
-
private updateCssClass;
|
|
272
|
-
private getNumericValidClassList;
|
|
273
|
-
private updateHTMLAttrToWrapper;
|
|
274
|
-
private setElementWidth;
|
|
275
|
-
private spinBtnCreation;
|
|
276
|
-
private validateMinMax;
|
|
277
|
-
private formattedValue;
|
|
278
|
-
private validateStep;
|
|
279
|
-
private action;
|
|
280
|
-
private checkErrorClass;
|
|
281
|
-
private bindClearEvent;
|
|
282
|
-
protected resetHandler(e?: MouseEvent): void;
|
|
283
|
-
private clear;
|
|
284
|
-
protected resetFormHandler(): void;
|
|
285
|
-
private setSpinButton;
|
|
286
|
-
private wireEvents;
|
|
287
|
-
private wireSpinBtnEvents;
|
|
288
|
-
private unwireEvents;
|
|
289
|
-
private unwireSpinBtnEvents;
|
|
290
|
-
private changeHandler;
|
|
291
|
-
private raiseChangeEvent;
|
|
292
|
-
private pasteHandler;
|
|
293
|
-
private preventHandler;
|
|
294
|
-
private keyUpHandler;
|
|
295
|
-
private inputHandler;
|
|
296
|
-
private keyDownHandler;
|
|
297
|
-
private performAction;
|
|
298
|
-
private correctRounding;
|
|
299
|
-
private roundValue;
|
|
300
|
-
private updateValue;
|
|
301
|
-
private updateCurrency;
|
|
302
|
-
private changeValue;
|
|
303
|
-
private modifyText;
|
|
304
|
-
private setElementValue;
|
|
305
|
-
private validateState;
|
|
306
|
-
private getNumberOfDecimals;
|
|
307
|
-
private formatNumber;
|
|
308
|
-
private trimValue;
|
|
309
|
-
private roundNumber;
|
|
310
|
-
private cancelEvent;
|
|
311
|
-
private keyPressHandler;
|
|
312
|
-
private numericRegex;
|
|
313
|
-
private mouseWheel;
|
|
314
|
-
private focusHandler;
|
|
315
|
-
private focusOutHandler;
|
|
316
|
-
private mouseDownOnSpinner;
|
|
317
|
-
private touchMoveOnSpinner;
|
|
318
|
-
private mouseUpOnSpinner;
|
|
319
|
-
private getElementData;
|
|
320
|
-
private floatLabelTypeUpdate;
|
|
321
|
-
private mouseUpClick;
|
|
322
|
-
/**
|
|
323
|
-
* Increments the NumericTextBox value with the specified step value.
|
|
324
|
-
*
|
|
325
|
-
* @param {number} step - Specifies the value used to increment the NumericTextBox value.
|
|
326
|
-
* if its not given then numeric value will be incremented based on the step property value.
|
|
327
|
-
* @returns {void}
|
|
328
|
-
*/
|
|
329
|
-
increment(step?: number): void;
|
|
330
|
-
/**
|
|
331
|
-
* Decrements the NumericTextBox value with specified step value.
|
|
332
|
-
*
|
|
333
|
-
* @param {number} step - Specifies the value used to decrement the NumericTextBox value.
|
|
334
|
-
* if its not given then numeric value will be decremented based on the step property value.
|
|
335
|
-
* @returns {void}
|
|
336
|
-
*/
|
|
337
|
-
decrement(step?: number): void;
|
|
338
|
-
/**
|
|
339
|
-
* Removes the component from the DOM and detaches all its related event handlers.
|
|
340
|
-
* Also it maintains the initial input element from the DOM.
|
|
341
|
-
*
|
|
342
|
-
* @method destroy
|
|
343
|
-
* @returns {void}
|
|
344
|
-
*/
|
|
345
|
-
destroy(): void;
|
|
346
|
-
/**
|
|
347
|
-
* Returns the value of NumericTextBox with the format applied to the NumericTextBox.
|
|
348
|
-
*
|
|
349
|
-
* @returns {string} - Returns the formatted value of the NumericTextBox.
|
|
350
|
-
*/
|
|
351
|
-
getText(): string;
|
|
352
|
-
/**
|
|
353
|
-
* Sets the focus to widget for interaction.
|
|
354
|
-
*
|
|
355
|
-
* @returns {void}
|
|
356
|
-
*/
|
|
357
|
-
focusIn(): void;
|
|
358
|
-
/**
|
|
359
|
-
* Remove the focus from widget, if the widget is in focus state.
|
|
360
|
-
*
|
|
361
|
-
* @returns {void}
|
|
362
|
-
*/
|
|
363
|
-
focusOut(): void;
|
|
364
|
-
/**
|
|
365
|
-
* Gets the properties to be maintained in the persisted state.
|
|
366
|
-
*
|
|
367
|
-
* @returns {string} - Returns the persisted data.
|
|
368
|
-
*/
|
|
369
|
-
getPersistData(): string;
|
|
370
|
-
/**
|
|
371
|
-
* Calls internally if any of the property value is changed.
|
|
372
|
-
*
|
|
373
|
-
* @param {NumericTextBoxModel} newProp - Returns the dynamic property value of the component.
|
|
374
|
-
* @param {NumericTextBoxModel} oldProp - Returns the previous property value of the component.
|
|
375
|
-
* @returns {void}
|
|
376
|
-
* @private
|
|
377
|
-
*/
|
|
378
|
-
onPropertyChanged(newProp: NumericTextBoxModel, oldProp: NumericTextBoxModel): void;
|
|
379
|
-
private updateClearButton;
|
|
380
|
-
private updateSpinButton;
|
|
381
|
-
/**
|
|
382
|
-
* Gets the component name
|
|
383
|
-
*
|
|
384
|
-
* @returns {string} Returns the component name.
|
|
385
|
-
* @private
|
|
386
|
-
*/
|
|
387
|
-
getModuleName(): string;
|
|
388
|
-
}
|
|
389
|
-
export interface ChangeEventArgs extends BaseEventArgs {
|
|
390
|
-
/** Returns the entered value of the NumericTextBox.
|
|
391
|
-
*
|
|
392
|
-
* @isGenericType true
|
|
393
|
-
*/
|
|
394
|
-
value?: number;
|
|
395
|
-
/** Returns the previously entered value of the NumericTextBox.
|
|
396
|
-
*
|
|
397
|
-
* @isGenericType true
|
|
398
|
-
*/
|
|
399
|
-
previousValue?: number;
|
|
400
|
-
/** Returns the event parameters from NumericTextBox. */
|
|
401
|
-
event?: Event;
|
|
402
|
-
/** Returns true when the value of NumericTextBox is changed by user interaction. Otherwise, it returns false
|
|
403
|
-
*
|
|
404
|
-
* @private
|
|
405
|
-
*/
|
|
406
|
-
isInteraction?: boolean;
|
|
407
|
-
/** Returns true when the value of NumericTextBox is changed by user interaction. Otherwise, it returns false */
|
|
408
|
-
isInteracted?: boolean;
|
|
409
|
-
}
|
|
410
|
-
export interface NumericFocusEventArgs extends BaseEventArgs {
|
|
411
|
-
/** Returns the original event arguments. */
|
|
412
|
-
event?: MouseEvent | FocusEvent | TouchEvent | KeyboardEvent;
|
|
413
|
-
/** Returns the value of the NumericTextBox.
|
|
414
|
-
*
|
|
415
|
-
* @isGenericType true
|
|
416
|
-
*/
|
|
417
|
-
value: number;
|
|
418
|
-
/** Returns the NumericTextBox container element */
|
|
419
|
-
container?: HTMLElement;
|
|
420
|
-
}
|
|
421
|
-
export interface NumericBlurEventArgs extends BaseEventArgs {
|
|
422
|
-
/** Returns the original event arguments. */
|
|
423
|
-
event?: MouseEvent | FocusEvent | TouchEvent | KeyboardEvent;
|
|
424
|
-
/** Returns the value of the NumericTextBox.
|
|
425
|
-
*
|
|
426
|
-
* @isGenericType true
|
|
427
|
-
*/
|
|
428
|
-
value: number;
|
|
429
|
-
/** Returns the NumericTextBox container element */
|
|
430
|
-
container?: HTMLElement;
|
|
431
|
-
}
|