@syncfusion/ej2-inputs 24.2.9 → 25.1.35-579988
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/CHANGELOG.md +0 -38
- 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 +1095 -271
- package/dist/es6/ej2-inputs.es2015.js.map +1 -1
- package/dist/es6/ej2-inputs.es5.js +1121 -276
- 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 -10
- package/src/common/signature-base.d.ts +1 -0
- package/src/common/signature-base.js +4 -3
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
- package/src/input/input.d.ts +18 -1
- package/src/input/input.js +234 -69
- package/src/maskedtextbox/base/mask-base.js +1 -0
- package/src/maskedtextbox/maskedtextbox/maskedtextbox.d.ts +1 -0
- package/src/maskedtextbox/maskedtextbox/maskedtextbox.js +8 -1
- package/src/numerictextbox/numerictextbox.d.ts +1 -0
- package/src/numerictextbox/numerictextbox.js +8 -1
- package/src/rating/rating.js +1 -0
- package/src/signature/signature.js +2 -0
- package/src/slider/slider-model.d.ts +3 -2
- package/src/slider/slider.d.ts +3 -2
- package/src/slider/slider.js +1 -1
- package/src/textarea/index.d.ts +5 -0
- package/src/textarea/index.js +4 -0
- package/src/textarea/textarea-model.d.ts +155 -0
- package/src/textarea/textarea.d.ts +231 -0
- package/src/textarea/textarea.js +696 -0
- package/src/textbox/textbox-model.d.ts +1 -1
- package/src/textbox/textbox.d.ts +3 -5
- package/src/textbox/textbox.js +21 -57
- package/styles/bootstrap-dark.css +69 -8
- package/styles/bootstrap-dark.scss +1 -0
- package/styles/bootstrap.css +69 -8
- package/styles/bootstrap.scss +1 -0
- package/styles/bootstrap4.css +69 -8
- package/styles/bootstrap4.scss +1 -0
- package/styles/bootstrap5-dark.css +69 -8
- package/styles/bootstrap5-dark.scss +1 -0
- package/styles/bootstrap5.css +69 -8
- package/styles/bootstrap5.scss +1 -0
- package/styles/color-picker/_bds-definition.scss +133 -0
- package/styles/color-picker/icons/_bds.scss +9 -0
- package/styles/data-form/_bds-definition.scss +41 -0
- package/styles/data-form/_layout.scss +3 -3
- package/styles/data-form/bootstrap-dark.css +8 -8
- package/styles/data-form/bootstrap.css +8 -8
- package/styles/data-form/bootstrap4.css +8 -8
- package/styles/data-form/bootstrap5-dark.css +8 -8
- package/styles/data-form/bootstrap5.css +8 -8
- package/styles/data-form/fabric-dark.css +8 -8
- package/styles/data-form/fabric.css +8 -8
- package/styles/data-form/fluent-dark.css +8 -8
- package/styles/data-form/fluent.css +8 -8
- package/styles/data-form/highcontrast-light.css +8 -8
- package/styles/data-form/highcontrast.css +8 -8
- package/styles/data-form/material-dark.css +8 -8
- package/styles/data-form/material.css +8 -8
- package/styles/data-form/material3-dark.css +8 -8
- package/styles/data-form/material3.css +8 -8
- package/styles/data-form/tailwind-dark.css +8 -8
- package/styles/data-form/tailwind.css +8 -8
- package/styles/fabric-dark.css +69 -8
- package/styles/fabric-dark.scss +1 -0
- package/styles/fabric.css +69 -8
- package/styles/fabric.scss +1 -0
- package/styles/fluent-dark.css +69 -8
- package/styles/fluent-dark.scss +1 -0
- package/styles/fluent.css +69 -8
- package/styles/fluent.scss +1 -0
- package/styles/highcontrast-light.css +69 -8
- package/styles/highcontrast-light.scss +1 -0
- package/styles/highcontrast.css +69 -8
- package/styles/highcontrast.scss +1 -0
- package/styles/input/_bds-definition.scss +482 -0
- package/styles/input/icons/_bds.scss +17 -0
- package/styles/maskedtextbox/_bds-definition.scss +7 -0
- package/styles/material-dark.css +75 -8
- package/styles/material-dark.scss +1 -0
- package/styles/material.css +83 -8
- package/styles/material.scss +1 -0
- package/styles/material3-dark.css +83 -8
- package/styles/material3-dark.scss +1 -0
- package/styles/material3.css +83 -8
- package/styles/material3.scss +1 -0
- package/styles/numerictextbox/_bds-definition.scss +3 -0
- package/styles/numerictextbox/icons/_bds.scss +11 -0
- package/styles/rating/_bds-definition.scss +47 -0
- package/styles/signature/_bds-definition.scss +3 -0
- package/styles/slider/_bds-definition.scss +88 -0
- package/styles/tailwind-dark.css +69 -8
- package/styles/tailwind-dark.scss +1 -0
- package/styles/tailwind.css +69 -8
- package/styles/tailwind.scss +1 -0
- package/styles/textarea/_all.scss +1 -0
- package/styles/textarea/_bds-definition.scss +1 -0
- package/styles/textarea/_bootstrap-dark-definition.scss +1 -0
- package/styles/textarea/_bootstrap-definition.scss +1 -0
- package/styles/textarea/_bootstrap4-definition.scss +1 -0
- package/styles/textarea/_bootstrap5-dark-definition.scss +1 -0
- package/styles/textarea/_bootstrap5-definition.scss +1 -0
- package/styles/textarea/_fabric-dark-definition.scss +1 -0
- package/styles/textarea/_fabric-definition.scss +1 -0
- package/styles/textarea/_fluent-dark-definition.scss +1 -0
- package/styles/textarea/_fluent-definition.scss +1 -0
- package/styles/textarea/_fusionnew-definition.scss +1 -0
- package/styles/textarea/_highcontrast-definition.scss +1 -0
- package/styles/textarea/_highcontrast-light-definition.scss +1 -0
- package/styles/textarea/_layout.scss +36 -0
- package/styles/textarea/_material-dark-definition.scss +1 -0
- package/styles/textarea/_material-definition.scss +1 -0
- package/styles/textarea/_material3-dark-definition.scss +1 -0
- package/styles/textarea/_material3-definition.scss +1 -0
- package/styles/textarea/_tailwind-dark-definition.scss +1 -0
- package/styles/textarea/_tailwind-definition.scss +1 -0
- package/styles/textarea/_theme.scss +1 -0
- package/styles/textarea/bootstrap-dark.css +33 -0
- package/styles/textarea/bootstrap-dark.scss +5 -0
- package/styles/textarea/bootstrap.css +33 -0
- package/styles/textarea/bootstrap.scss +5 -0
- package/styles/textarea/bootstrap4.css +33 -0
- package/styles/textarea/bootstrap4.scss +5 -0
- package/styles/textarea/bootstrap5-dark.css +33 -0
- package/styles/textarea/bootstrap5-dark.scss +5 -0
- package/styles/textarea/bootstrap5.css +33 -0
- package/styles/textarea/bootstrap5.scss +5 -0
- package/styles/textarea/fabric-dark.css +33 -0
- package/styles/textarea/fabric-dark.scss +5 -0
- package/styles/textarea/fabric.css +33 -0
- package/styles/textarea/fabric.scss +5 -0
- package/styles/textarea/fluent-dark.css +33 -0
- package/styles/textarea/fluent-dark.scss +5 -0
- package/styles/textarea/fluent.css +33 -0
- package/styles/textarea/fluent.scss +5 -0
- package/styles/textarea/highcontrast-light.css +33 -0
- package/styles/textarea/highcontrast-light.scss +5 -0
- package/styles/textarea/highcontrast.css +33 -0
- package/styles/textarea/highcontrast.scss +5 -0
- package/styles/textarea/material-dark.css +39 -0
- package/styles/textarea/material-dark.scss +5 -0
- package/styles/textarea/material.css +47 -0
- package/styles/textarea/material.scss +5 -0
- package/styles/textarea/material3-dark.css +102 -0
- package/styles/textarea/material3-dark.scss +6 -0
- package/styles/textarea/material3.css +158 -0
- package/styles/textarea/material3.scss +6 -0
- package/styles/textarea/tailwind-dark.css +33 -0
- package/styles/textarea/tailwind-dark.scss +5 -0
- package/styles/textarea/tailwind.css +33 -0
- package/styles/textarea/tailwind.scss +5 -0
- package/styles/textbox/_all.scss +1 -1
- package/styles/textbox/_bds-definition.scss +4 -0
- package/styles/textbox/_layout.scss +0 -11
- package/styles/textbox/bootstrap-dark.css +27 -1
- package/styles/textbox/bootstrap.css +27 -1
- package/styles/textbox/bootstrap4.css +27 -1
- package/styles/textbox/bootstrap5-dark.css +27 -1
- package/styles/textbox/bootstrap5.css +27 -1
- package/styles/textbox/fabric-dark.css +27 -1
- package/styles/textbox/fabric.css +27 -1
- package/styles/textbox/fluent-dark.css +27 -1
- package/styles/textbox/fluent.css +27 -1
- package/styles/textbox/highcontrast-light.css +27 -1
- package/styles/textbox/highcontrast.css +27 -1
- package/styles/textbox/material-dark.css +27 -1
- package/styles/textbox/material.css +27 -1
- package/styles/textbox/material3-dark.css +27 -1
- package/styles/textbox/material3.css +27 -1
- package/styles/textbox/tailwind-dark.css +27 -1
- package/styles/textbox/tailwind.css +27 -1
- package/styles/uploader/_bds-definition.scss +232 -0
- package/styles/uploader/icons/_bds.scss +34 -0
- package/textarea.d.ts +4 -0
- package/textarea.js +4 -0
package/src/slider/slider.d.ts
CHANGED
|
@@ -490,9 +490,10 @@ export declare class Slider extends Component<HTMLElement> implements INotifyPro
|
|
|
490
490
|
*/
|
|
491
491
|
cssClass: string;
|
|
492
492
|
/**
|
|
493
|
-
*
|
|
493
|
+
* Specifies whether to display or remove the untrusted HTML values in the Slider component.
|
|
494
|
+
* If 'enableHtmlSanitizer' set to true, the component will sanitize any suspected untrusted strings and scripts before rendering them.
|
|
494
495
|
*
|
|
495
|
-
* @default
|
|
496
|
+
* @default true
|
|
496
497
|
*/
|
|
497
498
|
enableHtmlSanitizer: boolean;
|
|
498
499
|
/**
|
package/src/slider/slider.js
CHANGED
|
@@ -2991,7 +2991,7 @@ var Slider = /** @class */ (function (_super) {
|
|
|
2991
2991
|
Property('')
|
|
2992
2992
|
], Slider.prototype, "cssClass", void 0);
|
|
2993
2993
|
__decorate([
|
|
2994
|
-
Property(
|
|
2994
|
+
Property(true)
|
|
2995
2995
|
], Slider.prototype, "enableHtmlSanitizer", void 0);
|
|
2996
2996
|
__decorate([
|
|
2997
2997
|
Event()
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { Component, Property, NotifyPropertyChanges, INotifyPropertyChanged, isNullOrUndefined, setValue, getValue } from '@syncfusion/ej2-base';import { detach, getUniqueID, Event, EventHandler, EmitType, Internationalization, L10n, addClass, removeClass, closest, formatUnit } from '@syncfusion/ej2-base';import { FloatLabelType, Input, InputObject, TEXTBOX_FOCUS } from '../input/input';import { FocusInEventArgs, FocusOutEventArgs, InputEventArgs, ChangedEventArgs } from '../textbox/textbox';
|
|
2
|
+
import {Resize} from "./textarea";
|
|
3
|
+
import {ComponentModel} from '@syncfusion/ej2-base';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Interface for a class TextArea
|
|
7
|
+
*/
|
|
8
|
+
export interface TextAreaModel extends ComponentModel{
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Specifies the boolean value whether the TextArea allows user to change the text.
|
|
12
|
+
*
|
|
13
|
+
* @default false
|
|
14
|
+
*/
|
|
15
|
+
readonly?: boolean;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Sets the content of the TextArea.
|
|
19
|
+
*
|
|
20
|
+
* @default null
|
|
21
|
+
*/
|
|
22
|
+
value?: string;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Specifies the floating label behavior of the TextArea that the placeholder text floats above the TextArea based on the below values.
|
|
26
|
+
* Possible values are:
|
|
27
|
+
* * `Never` - The placeholder text should not be float ever.
|
|
28
|
+
* * `Always` - The placeholder text floats above the TextArea always.
|
|
29
|
+
* * `Auto` - The placeholder text floats above the TextArea while focusing or enter a value in TextArea.
|
|
30
|
+
*
|
|
31
|
+
* @default Never
|
|
32
|
+
*/
|
|
33
|
+
floatLabelType?: FloatLabelType;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Specifies the CSS class value that is appended to wrapper of Textbox.
|
|
37
|
+
*
|
|
38
|
+
* @default ''
|
|
39
|
+
*/
|
|
40
|
+
cssClass?: string;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Specifies the text that is shown as a hint/placeholder until the user focus or enter a value in TextArea.
|
|
44
|
+
* The property is depending on the floatLabelType property.
|
|
45
|
+
*
|
|
46
|
+
* @default null
|
|
47
|
+
*/
|
|
48
|
+
placeholder?: string;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* You can add the additional html attributes such as disabled, value etc., to the element.
|
|
52
|
+
* If you configured both property and equivalent html attribute then the component considers the property value.
|
|
53
|
+
*
|
|
54
|
+
* @default {}
|
|
55
|
+
*/
|
|
56
|
+
htmlAttributes?: { [key: string]: string };
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Specifies a Boolean value that indicates whether the TextArea allow user to interact with it.
|
|
60
|
+
*
|
|
61
|
+
* @default true
|
|
62
|
+
*/
|
|
63
|
+
enabled?: boolean;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Specifies a Boolean value that indicates whether the clear button is displayed in TextArea.
|
|
67
|
+
*
|
|
68
|
+
* @default false
|
|
69
|
+
*/
|
|
70
|
+
showClearButton?: boolean;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Enable or disable persisting TextArea state between page reloads. If enabled, the `value` state will be persisted.
|
|
74
|
+
*
|
|
75
|
+
* @default false
|
|
76
|
+
*/
|
|
77
|
+
enablePersistence?: boolean;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Specifies the width of the TextArea component.
|
|
81
|
+
*
|
|
82
|
+
* @default null
|
|
83
|
+
*/
|
|
84
|
+
width?: number | string;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Specifies the resize mode of textarea.
|
|
88
|
+
* possible values are:
|
|
89
|
+
* * `Vertical` - The textarea element can be resized vertically.
|
|
90
|
+
* * `Horizontal` - The textarea element can be resized horizontally.
|
|
91
|
+
* * `Both` - The textarea element can be resized both vertically and horizontally.
|
|
92
|
+
* * `None` - The textarea element cannot be resized.
|
|
93
|
+
*
|
|
94
|
+
* @default None
|
|
95
|
+
*/
|
|
96
|
+
resizeMode?: Resize;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Specifies the maximum number of characters allowed in TextArea.
|
|
100
|
+
*/
|
|
101
|
+
maxLength?: number;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* specifies the visible width of the textarea, measured in average character widths.
|
|
105
|
+
*/
|
|
106
|
+
columnsCount?: number;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* specifies the visible height of the textarea, measured in lines
|
|
110
|
+
*/
|
|
111
|
+
rowsCount?: number;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Triggers when the TextArea component is created.
|
|
115
|
+
*
|
|
116
|
+
* @event created
|
|
117
|
+
*/
|
|
118
|
+
created?: EmitType<Object>;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Triggers when the TextArea component is destroyed.
|
|
122
|
+
*
|
|
123
|
+
* @event destroyed
|
|
124
|
+
*/
|
|
125
|
+
destroyed?: EmitType<Object>;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Triggers when the content of TextArea has changed and gets focus-out.
|
|
129
|
+
*
|
|
130
|
+
* @event change
|
|
131
|
+
*/
|
|
132
|
+
change?: EmitType<ChangedEventArgs>;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Triggers when the TextArea has focus-out.
|
|
136
|
+
*
|
|
137
|
+
* @event blur
|
|
138
|
+
*/
|
|
139
|
+
blur?: EmitType<FocusOutEventArgs>;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Triggers when the TextArea gets focus.
|
|
143
|
+
*
|
|
144
|
+
* @event focus
|
|
145
|
+
*/
|
|
146
|
+
focus?: EmitType<FocusInEventArgs>;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Triggers each time when the value of TextArea has changed.
|
|
150
|
+
*
|
|
151
|
+
* @event input
|
|
152
|
+
*/
|
|
153
|
+
input?: EmitType<InputEventArgs>;
|
|
154
|
+
|
|
155
|
+
}
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import { Component, INotifyPropertyChanged } from '@syncfusion/ej2-base';
|
|
2
|
+
import { EmitType } from '@syncfusion/ej2-base';
|
|
3
|
+
import { FloatLabelType } from '../input/input';
|
|
4
|
+
import { FocusInEventArgs, FocusOutEventArgs, InputEventArgs, ChangedEventArgs } from '../textbox/textbox';
|
|
5
|
+
import { TextAreaModel } from './textarea-model';
|
|
6
|
+
export declare type Resize = 'Vertical' | 'Horizontal' | 'Both' | 'None';
|
|
7
|
+
export declare class TextArea extends Component<HTMLTextAreaElement> implements INotifyPropertyChanged {
|
|
8
|
+
private textareaWrapper;
|
|
9
|
+
private textareaOptions;
|
|
10
|
+
private globalize;
|
|
11
|
+
private l10n;
|
|
12
|
+
private previousValue;
|
|
13
|
+
private formElement;
|
|
14
|
+
private isForm;
|
|
15
|
+
private initialValue;
|
|
16
|
+
private inputPreviousValue;
|
|
17
|
+
private isAngular;
|
|
18
|
+
private isVue;
|
|
19
|
+
private preventChange;
|
|
20
|
+
private clearButton;
|
|
21
|
+
/**
|
|
22
|
+
* Specifies the boolean value whether the TextArea allows user to change the text.
|
|
23
|
+
*
|
|
24
|
+
* @default false
|
|
25
|
+
*/
|
|
26
|
+
readonly: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Sets the content of the TextArea.
|
|
29
|
+
*
|
|
30
|
+
* @default null
|
|
31
|
+
*/
|
|
32
|
+
value: string;
|
|
33
|
+
/**
|
|
34
|
+
* Specifies the floating label behavior of the TextArea that the placeholder text floats above the TextArea based on the below values.
|
|
35
|
+
* Possible values are:
|
|
36
|
+
* * `Never` - The placeholder text should not be float ever.
|
|
37
|
+
* * `Always` - The placeholder text floats above the TextArea always.
|
|
38
|
+
* * `Auto` - The placeholder text floats above the TextArea while focusing or enter a value in TextArea.
|
|
39
|
+
*
|
|
40
|
+
* @default Never
|
|
41
|
+
*/
|
|
42
|
+
floatLabelType: FloatLabelType;
|
|
43
|
+
/**
|
|
44
|
+
* Specifies the CSS class value that is appended to wrapper of Textbox.
|
|
45
|
+
*
|
|
46
|
+
* @default ''
|
|
47
|
+
*/
|
|
48
|
+
cssClass: string;
|
|
49
|
+
/**
|
|
50
|
+
* Specifies the text that is shown as a hint/placeholder until the user focus or enter a value in TextArea.
|
|
51
|
+
* The property is depending on the floatLabelType property.
|
|
52
|
+
*
|
|
53
|
+
* @default null
|
|
54
|
+
*/
|
|
55
|
+
placeholder: string;
|
|
56
|
+
/**
|
|
57
|
+
* You can add the additional html attributes such as disabled, value etc., to the element.
|
|
58
|
+
* If you configured both property and equivalent html attribute then the component considers the property value.
|
|
59
|
+
*
|
|
60
|
+
* @default {}
|
|
61
|
+
*/
|
|
62
|
+
htmlAttributes: {
|
|
63
|
+
[key: string]: string;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* Specifies a Boolean value that indicates whether the TextArea allow user to interact with it.
|
|
67
|
+
*
|
|
68
|
+
* @default true
|
|
69
|
+
*/
|
|
70
|
+
enabled: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Specifies a Boolean value that indicates whether the clear button is displayed in TextArea.
|
|
73
|
+
*
|
|
74
|
+
* @default false
|
|
75
|
+
*/
|
|
76
|
+
showClearButton: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Enable or disable persisting TextArea state between page reloads. If enabled, the `value` state will be persisted.
|
|
79
|
+
*
|
|
80
|
+
* @default false
|
|
81
|
+
*/
|
|
82
|
+
enablePersistence: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Specifies the width of the TextArea component.
|
|
85
|
+
*
|
|
86
|
+
* @default null
|
|
87
|
+
*/
|
|
88
|
+
width: number | string;
|
|
89
|
+
/**
|
|
90
|
+
* Specifies the resize mode of textarea.
|
|
91
|
+
* possible values are:
|
|
92
|
+
* * `Vertical` - The textarea element can be resized vertically.
|
|
93
|
+
* * `Horizontal` - The textarea element can be resized horizontally.
|
|
94
|
+
* * `Both` - The textarea element can be resized both vertically and horizontally.
|
|
95
|
+
* * `None` - The textarea element cannot be resized.
|
|
96
|
+
*
|
|
97
|
+
* @default None
|
|
98
|
+
*/
|
|
99
|
+
resizeMode: Resize;
|
|
100
|
+
/**
|
|
101
|
+
* Specifies the maximum number of characters allowed in TextArea.
|
|
102
|
+
*/
|
|
103
|
+
maxLength: number;
|
|
104
|
+
/**
|
|
105
|
+
* specifies the visible width of the textarea, measured in average character widths.
|
|
106
|
+
*/
|
|
107
|
+
columnsCount: number;
|
|
108
|
+
/**
|
|
109
|
+
* specifies the visible height of the textarea, measured in lines
|
|
110
|
+
*/
|
|
111
|
+
rowsCount: number;
|
|
112
|
+
/**
|
|
113
|
+
* Triggers when the TextArea component is created.
|
|
114
|
+
*
|
|
115
|
+
* @event created
|
|
116
|
+
*/
|
|
117
|
+
created: EmitType<Object>;
|
|
118
|
+
/**
|
|
119
|
+
* Triggers when the TextArea component is destroyed.
|
|
120
|
+
*
|
|
121
|
+
* @event destroyed
|
|
122
|
+
*/
|
|
123
|
+
destroyed: EmitType<Object>;
|
|
124
|
+
/**
|
|
125
|
+
* Triggers when the content of TextArea has changed and gets focus-out.
|
|
126
|
+
*
|
|
127
|
+
* @event change
|
|
128
|
+
*/
|
|
129
|
+
change: EmitType<ChangedEventArgs>;
|
|
130
|
+
/**
|
|
131
|
+
* Triggers when the TextArea has focus-out.
|
|
132
|
+
*
|
|
133
|
+
* @event blur
|
|
134
|
+
*/
|
|
135
|
+
blur: EmitType<FocusOutEventArgs>;
|
|
136
|
+
/**
|
|
137
|
+
* Triggers when the TextArea gets focus.
|
|
138
|
+
*
|
|
139
|
+
* @event focus
|
|
140
|
+
*/
|
|
141
|
+
focus: EmitType<FocusInEventArgs>;
|
|
142
|
+
/**
|
|
143
|
+
* Triggers each time when the value of TextArea has changed.
|
|
144
|
+
*
|
|
145
|
+
* @event input
|
|
146
|
+
*/
|
|
147
|
+
input: EmitType<InputEventArgs>;
|
|
148
|
+
constructor(options?: TextAreaModel, element?: string | HTMLTextAreaElement);
|
|
149
|
+
/**
|
|
150
|
+
* Calls internally if any of the property value is changed.
|
|
151
|
+
*
|
|
152
|
+
* @param {TextAreaModel} newProp - Returns the dynamic property value of the component.
|
|
153
|
+
* @param {TextAreaModel} oldProp - Returns the previous property value of the component.
|
|
154
|
+
* @returns {void}
|
|
155
|
+
* @private
|
|
156
|
+
*/
|
|
157
|
+
onPropertyChanged(newProp: TextAreaModel, oldProp: TextAreaModel): void;
|
|
158
|
+
protected preRender(): void;
|
|
159
|
+
/**
|
|
160
|
+
* To Initialize the control rendering
|
|
161
|
+
*
|
|
162
|
+
* @returns {void}
|
|
163
|
+
* @private
|
|
164
|
+
*/
|
|
165
|
+
render(): void;
|
|
166
|
+
getModuleName(): string;
|
|
167
|
+
/**
|
|
168
|
+
* Gets the properties to be maintained in the persisted state.
|
|
169
|
+
*
|
|
170
|
+
*/
|
|
171
|
+
getPersistData(): string;
|
|
172
|
+
private checkAttributes;
|
|
173
|
+
private wireEvents;
|
|
174
|
+
private unWireEvents;
|
|
175
|
+
/**
|
|
176
|
+
* Removes the component from the DOM and detaches all its related event handlers.
|
|
177
|
+
* Also, it maintains the initial TextArea element from the DOM.
|
|
178
|
+
*
|
|
179
|
+
* @method destroy
|
|
180
|
+
* @returns {void}
|
|
181
|
+
*/
|
|
182
|
+
destroy(): void;
|
|
183
|
+
private focusHandler;
|
|
184
|
+
private focusOutHandler;
|
|
185
|
+
private keydownHandler;
|
|
186
|
+
private inputHandler;
|
|
187
|
+
private changeHandler;
|
|
188
|
+
private raiseChangeEvent;
|
|
189
|
+
private updateHTMLAttributesToWrapper;
|
|
190
|
+
private updateHTMLAttributesToElement;
|
|
191
|
+
private bindClearEvent;
|
|
192
|
+
private resetInputHandler;
|
|
193
|
+
/**
|
|
194
|
+
* Adding the multiple attributes as key-value pair to the TextArea element.
|
|
195
|
+
*
|
|
196
|
+
* @param {string} attributes - Specifies the attributes to be add to TextArea element.
|
|
197
|
+
* @returns {void}
|
|
198
|
+
*/
|
|
199
|
+
addAttributes(attributes: {
|
|
200
|
+
[key: string]: string;
|
|
201
|
+
}): void;
|
|
202
|
+
/**
|
|
203
|
+
* Removing the multiple attributes as key-value pair to the TextArea element.
|
|
204
|
+
*
|
|
205
|
+
* @param { string[] } attributes - Specifies the attributes name to be removed from TextArea element.
|
|
206
|
+
* @returns {void}
|
|
207
|
+
*/
|
|
208
|
+
removeAttributes(attributes: string[]): void;
|
|
209
|
+
/**
|
|
210
|
+
* Sets the focus to widget for interaction.
|
|
211
|
+
*
|
|
212
|
+
* @returns {void}
|
|
213
|
+
*/
|
|
214
|
+
focusIn(): void;
|
|
215
|
+
/**
|
|
216
|
+
* Remove the focus from widget, if the widget is in focus state.
|
|
217
|
+
*
|
|
218
|
+
* @returns {void}
|
|
219
|
+
*/
|
|
220
|
+
focusOut(): void;
|
|
221
|
+
/**
|
|
222
|
+
* Sets up the width for the textarea wrapper.
|
|
223
|
+
*
|
|
224
|
+
* @returns {void}
|
|
225
|
+
*/
|
|
226
|
+
private setWrapperWidth;
|
|
227
|
+
private resetForm;
|
|
228
|
+
private resetValue;
|
|
229
|
+
private setElementWidth;
|
|
230
|
+
private getCurrentResizeClass;
|
|
231
|
+
}
|