@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,167 +0,0 @@
|
|
|
1
|
-
import { Component, Event, Property, EmitType, NotifyPropertyChanges, INotifyPropertyChanged, BaseEventArgs } from '@syncfusion/ej2-base';import { isNullOrUndefined, formatUnit, getValue, setValue, addClass, detach } from '@syncfusion/ej2-base';import { removeClass , Browser, closest} from '@syncfusion/ej2-base';import { Input, InputObject, FloatLabelType } from '../../input/input';import { regularExpressions, createMask, applyMask, wireEvents, unwireEvents, unstrippedValue, strippedValue } from '../base/index';import { setMaskValue, MaskUndo, setElementValue, bindClearEvent } from '../base/index';
|
|
2
|
-
import {MaskChangeEventArgs,MaskFocusEventArgs,MaskBlurEventArgs} from "./maskedtextbox";
|
|
3
|
-
import {ComponentModel} from '@syncfusion/ej2-base';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Interface for a class MaskedTextBox
|
|
7
|
-
*/
|
|
8
|
-
export interface MaskedTextBoxModel extends ComponentModel{
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Gets or sets the CSS classes to root element of the MaskedTextBox which helps to customize the
|
|
12
|
-
* complete UI styles for the MaskedTextBox component.
|
|
13
|
-
*
|
|
14
|
-
* @default null
|
|
15
|
-
*/
|
|
16
|
-
cssClass?: string;
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Sets the width of the MaskedTextBox.
|
|
20
|
-
*
|
|
21
|
-
* @default null
|
|
22
|
-
*/
|
|
23
|
-
width?: number | string;
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Gets or sets the string shown as a hint/placeholder when the MaskedTextBox is empty.
|
|
27
|
-
* It acts as a label and floats above the MaskedTextBox based on the
|
|
28
|
-
* <b><a href="#floatlabeltype" target="_blank">floatLabelType.</a></b>
|
|
29
|
-
*
|
|
30
|
-
* @default null
|
|
31
|
-
*/
|
|
32
|
-
placeholder?: string;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* The <b><a href="#placeholder" target="_blank">placeholder</a></b> acts as a label
|
|
36
|
-
* and floats above the MaskedTextBox based on the below values.
|
|
37
|
-
* Possible values are:
|
|
38
|
-
* * Never - The floating label will not be enable when the placeholder is available.
|
|
39
|
-
* * Always - The floating label always floats above the MaskedTextBox.
|
|
40
|
-
* * Auto - The floating label floats above the MaskedTextBox after focusing it or when enters the value in it.
|
|
41
|
-
*
|
|
42
|
-
* @default Never
|
|
43
|
-
*/
|
|
44
|
-
floatLabelType?: FloatLabelType;
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* You can add the additional html attributes such as disabled, value etc., to the element.
|
|
48
|
-
* If you configured both property and equivalent html attribute then the component considers the property value.
|
|
49
|
-
* {% codeBlock src='maskedtextbox/htmlAttributes/index.md' %}{% endcodeBlock %}
|
|
50
|
-
*
|
|
51
|
-
* @default {}
|
|
52
|
-
*/
|
|
53
|
-
htmlAttributes?: { [key: string]: string };
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Sets a value that enables or disables the MaskedTextBox component.
|
|
57
|
-
*
|
|
58
|
-
* @default true
|
|
59
|
-
*/
|
|
60
|
-
enabled?: boolean;
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Specifies the boolean value whether the Masked TextBox allows the user to change the text.
|
|
64
|
-
*
|
|
65
|
-
* @default false
|
|
66
|
-
*/
|
|
67
|
-
readonly?: boolean;
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Specifies whether to show or hide the clear icon.
|
|
71
|
-
*
|
|
72
|
-
* @default false
|
|
73
|
-
*/
|
|
74
|
-
showClearButton?: boolean;
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* Sets a value that enables or disables the persisting state of the MaskedTextBox after reloading the page.
|
|
78
|
-
* If enabled, the 'value' state will be persisted.
|
|
79
|
-
*
|
|
80
|
-
* @default false
|
|
81
|
-
*/
|
|
82
|
-
enablePersistence?: boolean;
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* Sets a value that masks the MaskedTextBox to allow/validate the user input.
|
|
86
|
-
* * Mask allows [`standard mask elements`](../../maskedtextbox/mask-configuration/#standard-mask-elements)
|
|
87
|
-
* </b>, <b>[`custom characters`](../../maskedtextbox/mask-configuration/#custom-characters)</b> and
|
|
88
|
-
* <b>[`regular expression`](../../maskedtextbox/mask-configuration/#regular-expression)</b> as mask
|
|
89
|
-
* elements.
|
|
90
|
-
* For more information on mask, refer to
|
|
91
|
-
* [mask](../../maskedtextbox/mask-configuration/#standard-mask-elements).
|
|
92
|
-
* * If the mask value is empty, the MaskedTextBox will behave as an input element with text type.
|
|
93
|
-
*
|
|
94
|
-
* {% codeBlock src='maskedtextbox/mask/index.md' %}{% endcodeBlock %}
|
|
95
|
-
*
|
|
96
|
-
* @default null
|
|
97
|
-
*/
|
|
98
|
-
mask?: string;
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* Gets or sets a value that will be shown as a prompting symbol for the masked value.
|
|
102
|
-
* The symbol used to show input positions in the MaskedTextBox.
|
|
103
|
-
* For more information on prompt-character, refer to
|
|
104
|
-
* [prompt-character](../../maskedtextbox/mask-configuration/#prompt-character).
|
|
105
|
-
*
|
|
106
|
-
* @default '_'
|
|
107
|
-
*/
|
|
108
|
-
promptChar?: string;
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* Gets or sets the value of the MaskedTextBox. It is a raw value of the MaskedTextBox excluding literals
|
|
112
|
-
* and prompt characters. By using `getMaskedValue` property, you can get the value of MaskedTextBox with the masked format.
|
|
113
|
-
* {% codeBlock src='maskedtextbox/value/index.md' %}{% endcodeBlock %}
|
|
114
|
-
*
|
|
115
|
-
* @default null
|
|
116
|
-
*/
|
|
117
|
-
value?: string;
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* Sets the collection of values to be mapped for non-mask elements(literals)
|
|
121
|
-
* which have been set in the mask of MaskedTextBox.
|
|
122
|
-
* In the below example, non-mask elements "P" accepts values
|
|
123
|
-
* "P" , "A" , "p" , "a" and "M" accepts values "M", "m" mentioned in the custom characters collection.
|
|
124
|
-
* > For more information on customCharacters, refer to
|
|
125
|
-
* [customCharacters](../../maskedtextbox/mask-configuration/#custom-characters).
|
|
126
|
-
* {% codeBlock src='maskedtextbox/customCharacters/index.md' %}{% endcodeBlock %}
|
|
127
|
-
*
|
|
128
|
-
* @default null
|
|
129
|
-
*/
|
|
130
|
-
customCharacters?: { [x: string]: Object };
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* Triggers when the MaskedTextBox component is created.
|
|
134
|
-
*
|
|
135
|
-
* @event created
|
|
136
|
-
*/
|
|
137
|
-
created?: EmitType<Object>;
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* Triggers when the MaskedTextBox component is destroyed.
|
|
141
|
-
*
|
|
142
|
-
* @event destroyed
|
|
143
|
-
*/
|
|
144
|
-
destroyed?: EmitType<Object>;
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* Triggers when the value of the MaskedTextBox changes.
|
|
148
|
-
*
|
|
149
|
-
* @event change
|
|
150
|
-
*/
|
|
151
|
-
change?: EmitType <MaskChangeEventArgs>;
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* Triggers when the MaskedTextBox got focus in.
|
|
155
|
-
*
|
|
156
|
-
* @event focus
|
|
157
|
-
*/
|
|
158
|
-
focus?: EmitType<MaskFocusEventArgs>;
|
|
159
|
-
|
|
160
|
-
/**
|
|
161
|
-
* Triggers when the MaskedTextBox got focus out.
|
|
162
|
-
*
|
|
163
|
-
* @event blur
|
|
164
|
-
*/
|
|
165
|
-
blur?: EmitType<MaskBlurEventArgs>;
|
|
166
|
-
|
|
167
|
-
}
|
|
@@ -1,307 +0,0 @@
|
|
|
1
|
-
import { Component, EmitType, INotifyPropertyChanged, BaseEventArgs } from '@syncfusion/ej2-base';
|
|
2
|
-
import { FloatLabelType } from '../../input/input';
|
|
3
|
-
import { MaskedTextBoxModel } from './maskedtextbox-model';
|
|
4
|
-
/**
|
|
5
|
-
* The MaskedTextBox allows the user to enter the valid input only based on the provided mask.
|
|
6
|
-
* ```html
|
|
7
|
-
* <input id="mask" type="text" />
|
|
8
|
-
* ```
|
|
9
|
-
* ```typescript
|
|
10
|
-
* <script>
|
|
11
|
-
* var maskObj = new MaskedTextBox({ mask: "(999) 9999-999" });
|
|
12
|
-
* maskObj.appendTo('#mask');
|
|
13
|
-
* </script>
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
export declare class MaskedTextBox extends Component<HTMLInputElement> implements INotifyPropertyChanged {
|
|
17
|
-
private cloneElement;
|
|
18
|
-
private promptMask;
|
|
19
|
-
private hiddenMask;
|
|
20
|
-
private escapeMaskValue;
|
|
21
|
-
private regExpCollec;
|
|
22
|
-
private customRegExpCollec;
|
|
23
|
-
private maskedRegExp;
|
|
24
|
-
private inputObj;
|
|
25
|
-
private undoCollec;
|
|
26
|
-
private redoCollec;
|
|
27
|
-
private changeEventArgs;
|
|
28
|
-
private focusEventArgs;
|
|
29
|
-
private blurEventArgs;
|
|
30
|
-
private maskKeyPress;
|
|
31
|
-
private angularTagName;
|
|
32
|
-
private prevValue;
|
|
33
|
-
private isFocus;
|
|
34
|
-
private isInitial;
|
|
35
|
-
private isIosInvalid;
|
|
36
|
-
private preEleVal;
|
|
37
|
-
private formElement;
|
|
38
|
-
private initInputValue;
|
|
39
|
-
private maskOptions;
|
|
40
|
-
private preventChange;
|
|
41
|
-
private isClicked;
|
|
42
|
-
private clearButton;
|
|
43
|
-
/**
|
|
44
|
-
* Gets or sets the CSS classes to root element of the MaskedTextBox which helps to customize the
|
|
45
|
-
* complete UI styles for the MaskedTextBox component.
|
|
46
|
-
*
|
|
47
|
-
* @default null
|
|
48
|
-
*/
|
|
49
|
-
cssClass: string;
|
|
50
|
-
/**
|
|
51
|
-
* Sets the width of the MaskedTextBox.
|
|
52
|
-
*
|
|
53
|
-
* @default null
|
|
54
|
-
*/
|
|
55
|
-
width: number | string;
|
|
56
|
-
/**
|
|
57
|
-
* Gets or sets the string shown as a hint/placeholder when the MaskedTextBox is empty.
|
|
58
|
-
* It acts as a label and floats above the MaskedTextBox based on the
|
|
59
|
-
* <b><a href="#floatlabeltype" target="_blank">floatLabelType.</a></b>
|
|
60
|
-
*
|
|
61
|
-
* @default null
|
|
62
|
-
*/
|
|
63
|
-
placeholder: string;
|
|
64
|
-
/**
|
|
65
|
-
* The <b><a href="#placeholder" target="_blank">placeholder</a></b> acts as a label
|
|
66
|
-
* and floats above the MaskedTextBox based on the below values.
|
|
67
|
-
* Possible values are:
|
|
68
|
-
* * Never - The floating label will not be enable when the placeholder is available.
|
|
69
|
-
* * Always - The floating label always floats above the MaskedTextBox.
|
|
70
|
-
* * Auto - The floating label floats above the MaskedTextBox after focusing it or when enters the value in it.
|
|
71
|
-
*
|
|
72
|
-
* @default Never
|
|
73
|
-
*/
|
|
74
|
-
floatLabelType: FloatLabelType;
|
|
75
|
-
/**
|
|
76
|
-
* You can add the additional html attributes such as disabled, value etc., to the element.
|
|
77
|
-
* If you configured both property and equivalent html attribute then the component considers the property value.
|
|
78
|
-
* {% codeBlock src='maskedtextbox/htmlAttributes/index.md' %}{% endcodeBlock %}
|
|
79
|
-
*
|
|
80
|
-
* @default {}
|
|
81
|
-
*/
|
|
82
|
-
htmlAttributes: {
|
|
83
|
-
[key: string]: string;
|
|
84
|
-
};
|
|
85
|
-
/**
|
|
86
|
-
* Sets a value that enables or disables the MaskedTextBox component.
|
|
87
|
-
*
|
|
88
|
-
* @default true
|
|
89
|
-
*/
|
|
90
|
-
enabled: boolean;
|
|
91
|
-
/**
|
|
92
|
-
* Specifies the boolean value whether the Masked TextBox allows the user to change the text.
|
|
93
|
-
*
|
|
94
|
-
* @default false
|
|
95
|
-
*/
|
|
96
|
-
readonly: boolean;
|
|
97
|
-
/**
|
|
98
|
-
* Specifies whether to show or hide the clear icon.
|
|
99
|
-
*
|
|
100
|
-
* @default false
|
|
101
|
-
*/
|
|
102
|
-
showClearButton: boolean;
|
|
103
|
-
/**
|
|
104
|
-
* Sets a value that enables or disables the persisting state of the MaskedTextBox after reloading the page.
|
|
105
|
-
* If enabled, the 'value' state will be persisted.
|
|
106
|
-
*
|
|
107
|
-
* @default false
|
|
108
|
-
*/
|
|
109
|
-
enablePersistence: boolean;
|
|
110
|
-
/**
|
|
111
|
-
* Sets a value that masks the MaskedTextBox to allow/validate the user input.
|
|
112
|
-
* * Mask allows [`standard mask elements`](../../maskedtextbox/mask-configuration/#standard-mask-elements)
|
|
113
|
-
* </b>, <b>[`custom characters`](../../maskedtextbox/mask-configuration/#custom-characters)</b> and
|
|
114
|
-
* <b>[`regular expression`](../../maskedtextbox/mask-configuration/#regular-expression)</b> as mask
|
|
115
|
-
* elements.
|
|
116
|
-
* For more information on mask, refer to
|
|
117
|
-
* [mask](../../maskedtextbox/mask-configuration/#standard-mask-elements).
|
|
118
|
-
* * If the mask value is empty, the MaskedTextBox will behave as an input element with text type.
|
|
119
|
-
*
|
|
120
|
-
* {% codeBlock src='maskedtextbox/mask/index.md' %}{% endcodeBlock %}
|
|
121
|
-
*
|
|
122
|
-
* @default null
|
|
123
|
-
*/
|
|
124
|
-
mask: string;
|
|
125
|
-
/**
|
|
126
|
-
* Gets or sets a value that will be shown as a prompting symbol for the masked value.
|
|
127
|
-
* The symbol used to show input positions in the MaskedTextBox.
|
|
128
|
-
* For more information on prompt-character, refer to
|
|
129
|
-
* [prompt-character](../../maskedtextbox/mask-configuration/#prompt-character).
|
|
130
|
-
*
|
|
131
|
-
* @default '_'
|
|
132
|
-
*/
|
|
133
|
-
promptChar: string;
|
|
134
|
-
/**
|
|
135
|
-
* Gets or sets the value of the MaskedTextBox. It is a raw value of the MaskedTextBox excluding literals
|
|
136
|
-
* and prompt characters. By using `getMaskedValue` property, you can get the value of MaskedTextBox with the masked format.
|
|
137
|
-
* {% codeBlock src='maskedtextbox/value/index.md' %}{% endcodeBlock %}
|
|
138
|
-
*
|
|
139
|
-
* @default null
|
|
140
|
-
*/
|
|
141
|
-
value: string;
|
|
142
|
-
/**
|
|
143
|
-
* Sets the collection of values to be mapped for non-mask elements(literals)
|
|
144
|
-
* which have been set in the mask of MaskedTextBox.
|
|
145
|
-
* In the below example, non-mask elements "P" accepts values
|
|
146
|
-
* "P" , "A" , "p" , "a" and "M" accepts values "M", "m" mentioned in the custom characters collection.
|
|
147
|
-
* > For more information on customCharacters, refer to
|
|
148
|
-
* [customCharacters](../../maskedtextbox/mask-configuration/#custom-characters).
|
|
149
|
-
* {% codeBlock src='maskedtextbox/customCharacters/index.md' %}{% endcodeBlock %}
|
|
150
|
-
*
|
|
151
|
-
* @default null
|
|
152
|
-
*/
|
|
153
|
-
customCharacters: {
|
|
154
|
-
[x: string]: Object;
|
|
155
|
-
};
|
|
156
|
-
/**
|
|
157
|
-
* Triggers when the MaskedTextBox component is created.
|
|
158
|
-
*
|
|
159
|
-
* @event created
|
|
160
|
-
*/
|
|
161
|
-
created: EmitType<Object>;
|
|
162
|
-
/**
|
|
163
|
-
* Triggers when the MaskedTextBox component is destroyed.
|
|
164
|
-
*
|
|
165
|
-
* @event destroyed
|
|
166
|
-
*/
|
|
167
|
-
destroyed: EmitType<Object>;
|
|
168
|
-
/**
|
|
169
|
-
* Triggers when the value of the MaskedTextBox changes.
|
|
170
|
-
*
|
|
171
|
-
* @event change
|
|
172
|
-
*/
|
|
173
|
-
change: EmitType<MaskChangeEventArgs>;
|
|
174
|
-
/**
|
|
175
|
-
* Triggers when the MaskedTextBox got focus in.
|
|
176
|
-
*
|
|
177
|
-
* @event focus
|
|
178
|
-
*/
|
|
179
|
-
focus: EmitType<MaskFocusEventArgs>;
|
|
180
|
-
/**
|
|
181
|
-
* Triggers when the MaskedTextBox got focus out.
|
|
182
|
-
*
|
|
183
|
-
* @event blur
|
|
184
|
-
*/
|
|
185
|
-
blur: EmitType<MaskBlurEventArgs>;
|
|
186
|
-
/**
|
|
187
|
-
*
|
|
188
|
-
* @param {MaskedTextBoxModel} options - Specifies the MaskedTextBox model.
|
|
189
|
-
* @param {string | HTMLElement | HTMLInputElement} element - Specifies the element to render as component.
|
|
190
|
-
* @private
|
|
191
|
-
*/
|
|
192
|
-
constructor(options?: MaskedTextBoxModel, element?: string | HTMLElement | HTMLInputElement);
|
|
193
|
-
/**
|
|
194
|
-
* Gets the component name.
|
|
195
|
-
*
|
|
196
|
-
* @returns {string} Returns the component name.
|
|
197
|
-
* @private
|
|
198
|
-
*/
|
|
199
|
-
protected getModuleName(): string;
|
|
200
|
-
/**
|
|
201
|
-
* Initializes the event handler
|
|
202
|
-
*
|
|
203
|
-
* @returns {void}
|
|
204
|
-
* @private
|
|
205
|
-
*/
|
|
206
|
-
protected preRender(): void;
|
|
207
|
-
/**
|
|
208
|
-
* Gets the properties to be maintained in the persisted state.
|
|
209
|
-
*
|
|
210
|
-
* @returns {string}
|
|
211
|
-
*/
|
|
212
|
-
getPersistData(): string;
|
|
213
|
-
/**
|
|
214
|
-
* Initializes the component rendering.
|
|
215
|
-
*
|
|
216
|
-
* @returns {void}
|
|
217
|
-
* @private
|
|
218
|
-
*/
|
|
219
|
-
render(): void;
|
|
220
|
-
private updateHTMLAttrToElement;
|
|
221
|
-
private updateCssClass;
|
|
222
|
-
private getValidClassList;
|
|
223
|
-
private updateHTMLAttrToWrapper;
|
|
224
|
-
private resetMaskedTextBox;
|
|
225
|
-
private setMaskPlaceholder;
|
|
226
|
-
private setWidth;
|
|
227
|
-
private checkHtmlAttributes;
|
|
228
|
-
private createWrapper;
|
|
229
|
-
/**
|
|
230
|
-
* Calls internally if any of the property value is changed.
|
|
231
|
-
*
|
|
232
|
-
* @param {MaskedTextBoxModel} newProp - Returns the dynamic property value of the component.
|
|
233
|
-
* @param {MaskedTextBoxModel} oldProp - Returns the previous property value of the component.
|
|
234
|
-
* @returns {void}
|
|
235
|
-
* @hidden
|
|
236
|
-
*/
|
|
237
|
-
onPropertyChanged(newProp: MaskedTextBoxModel, oldProp: MaskedTextBoxModel): void;
|
|
238
|
-
private updateValue;
|
|
239
|
-
/**
|
|
240
|
-
* Gets the value of the MaskedTextBox with the masked format.
|
|
241
|
-
* By using `value` property, you can get the raw value of maskedtextbox without literals and prompt characters.
|
|
242
|
-
*
|
|
243
|
-
* @returns {string} Returns the value with the masked format.
|
|
244
|
-
*/
|
|
245
|
-
getMaskedValue(): string;
|
|
246
|
-
/**
|
|
247
|
-
* Sets the focus to widget for interaction.
|
|
248
|
-
*
|
|
249
|
-
* @returns {void}
|
|
250
|
-
*/
|
|
251
|
-
focusIn(): void;
|
|
252
|
-
/**
|
|
253
|
-
* Remove the focus from widget, if the widget is in focus state.
|
|
254
|
-
*
|
|
255
|
-
* @returns {void}
|
|
256
|
-
*/
|
|
257
|
-
focusOut(): void;
|
|
258
|
-
/**
|
|
259
|
-
* Removes the component from the DOM and detaches all its related event handlers.
|
|
260
|
-
* Also it maintains the initial input element from the DOM.
|
|
261
|
-
*
|
|
262
|
-
* @method destroy
|
|
263
|
-
* @returns {void}
|
|
264
|
-
*/
|
|
265
|
-
destroy(): void;
|
|
266
|
-
}
|
|
267
|
-
export interface MaskChangeEventArgs extends BaseEventArgs {
|
|
268
|
-
/** Returns the value of the MaskedTextBox with the masked format. */
|
|
269
|
-
maskedValue?: string;
|
|
270
|
-
/** Returns the raw value of MaskedTextBox by removing the prompt characters and literals(non-mask elements)
|
|
271
|
-
* which have been set in the mask of MaskedTextBox.
|
|
272
|
-
*/
|
|
273
|
-
value?: string;
|
|
274
|
-
/** Returns true when the value of MaskedTextBox is changed by user interaction. Otherwise, it returns false.
|
|
275
|
-
*
|
|
276
|
-
* @private
|
|
277
|
-
*/
|
|
278
|
-
isInteraction?: boolean;
|
|
279
|
-
/** Returns true when the value of MaskedTextBox is changed by user interaction. Otherwise, it returns false */
|
|
280
|
-
isInteracted?: boolean;
|
|
281
|
-
/** Returns the original event arguments. */
|
|
282
|
-
event?: Event;
|
|
283
|
-
}
|
|
284
|
-
export interface MaskFocusEventArgs extends BaseEventArgs {
|
|
285
|
-
/** Returns selectionStart value as zero by default */
|
|
286
|
-
selectionStart?: number;
|
|
287
|
-
/** Returns selectionEnd value depends on mask length */
|
|
288
|
-
selectionEnd?: number;
|
|
289
|
-
/** Returns the original event arguments. */
|
|
290
|
-
event?: MouseEvent | FocusEvent | TouchEvent | KeyboardEvent;
|
|
291
|
-
/** Returns the value of MaskedTextBox. */
|
|
292
|
-
value?: string;
|
|
293
|
-
/** Returns the maskedValue of MaskedTextBox. */
|
|
294
|
-
maskedValue?: string;
|
|
295
|
-
/** Returns the MaskedTextBox container element */
|
|
296
|
-
container?: HTMLElement;
|
|
297
|
-
}
|
|
298
|
-
export interface MaskBlurEventArgs extends BaseEventArgs {
|
|
299
|
-
/** Returns the original event arguments. */
|
|
300
|
-
event?: MouseEvent | FocusEvent | TouchEvent | KeyboardEvent;
|
|
301
|
-
/** Returns the value of MaskedTextBox. */
|
|
302
|
-
value?: string;
|
|
303
|
-
/** Returns the maskedValue of MaskedTextBox. */
|
|
304
|
-
maskedValue?: string;
|
|
305
|
-
/** Returns the MaskedTextBox container element */
|
|
306
|
-
container?: HTMLElement;
|
|
307
|
-
}
|