@syncfusion/ej2-inputs 31.1.17 → 31.1.21

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.
Files changed (107) hide show
  1. package/dist/ej2-inputs.min.js +2 -2
  2. package/dist/ej2-inputs.umd.min.js +2 -2
  3. package/dist/ej2-inputs.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-inputs.es2015.js +11 -3
  5. package/dist/es6/ej2-inputs.es2015.js.map +1 -1
  6. package/dist/es6/ej2-inputs.es5.js +11 -3
  7. package/dist/es6/ej2-inputs.es5.js.map +1 -1
  8. package/dist/global/ej2-inputs.min.js +2 -2
  9. package/dist/global/ej2-inputs.min.js.map +1 -1
  10. package/dist/global/index.d.ts +1 -1
  11. package/package.json +11 -61
  12. package/src/color-picker/color-picker.js +4 -3
  13. package/src/textbox/textbox.js +7 -0
  14. package/styles/bootstrap4-lite.css +2 -2
  15. package/styles/bootstrap4.css +2 -2
  16. package/styles/bootstrap5-dark-lite.css +2 -2
  17. package/styles/bootstrap5-dark.css +2 -2
  18. package/styles/bootstrap5-lite.css +2 -2
  19. package/styles/bootstrap5.css +2 -2
  20. package/styles/input/_bootstrap4-definition.scss +1 -1
  21. package/styles/input/_bootstrap5-definition.scss +1 -1
  22. package/styles/input/bootstrap4.css +2 -2
  23. package/styles/input/bootstrap5-dark.css +2 -2
  24. package/styles/input/bootstrap5.css +2 -2
  25. package/dist/ts/color-picker/color-picker-model.d.ts +0 -186
  26. package/dist/ts/color-picker/color-picker.d.ts +0 -398
  27. package/dist/ts/color-picker/color-picker.ts +0 -2209
  28. package/dist/ts/color-picker/index.d.ts +0 -5
  29. package/dist/ts/color-picker/index.ts +0 -5
  30. package/dist/ts/common/index.d.ts +0 -4
  31. package/dist/ts/common/index.ts +0 -4
  32. package/dist/ts/common/signature-base.d.ts +0 -340
  33. package/dist/ts/common/signature-base.ts +0 -1170
  34. package/dist/ts/form-validator/form-validator-model.d.ts +0 -121
  35. package/dist/ts/form-validator/form-validator.d.ts +0 -312
  36. package/dist/ts/form-validator/form-validator.ts +0 -1068
  37. package/dist/ts/form-validator/index.d.ts +0 -5
  38. package/dist/ts/form-validator/index.ts +0 -5
  39. package/dist/ts/index.d.ts +0 -18
  40. package/dist/ts/index.ts +0 -18
  41. package/dist/ts/input/index.d.ts +0 -4
  42. package/dist/ts/input/index.ts +0 -4
  43. package/dist/ts/input/input.d.ts +0 -345
  44. package/dist/ts/input/input.ts +0 -1277
  45. package/dist/ts/maskedtextbox/base/index.d.ts +0 -4
  46. package/dist/ts/maskedtextbox/base/index.ts +0 -4
  47. package/dist/ts/maskedtextbox/base/mask-base.d.ts +0 -134
  48. package/dist/ts/maskedtextbox/base/mask-base.ts +0 -1207
  49. package/dist/ts/maskedtextbox/index.d.ts +0 -5
  50. package/dist/ts/maskedtextbox/index.ts +0 -5
  51. package/dist/ts/maskedtextbox/maskedtextbox/index.d.ts +0 -5
  52. package/dist/ts/maskedtextbox/maskedtextbox/index.ts +0 -5
  53. package/dist/ts/maskedtextbox/maskedtextbox/maskedtextbox-model.d.ts +0 -167
  54. package/dist/ts/maskedtextbox/maskedtextbox/maskedtextbox.d.ts +0 -307
  55. package/dist/ts/maskedtextbox/maskedtextbox/maskedtextbox.ts +0 -709
  56. package/dist/ts/numerictextbox/index.d.ts +0 -5
  57. package/dist/ts/numerictextbox/index.ts +0 -5
  58. package/dist/ts/numerictextbox/numerictextbox-model.d.ts +0 -228
  59. package/dist/ts/numerictextbox/numerictextbox.d.ts +0 -431
  60. package/dist/ts/numerictextbox/numerictextbox.ts +0 -1672
  61. package/dist/ts/otp-input/index.d.ts +0 -5
  62. package/dist/ts/otp-input/index.ts +0 -5
  63. package/dist/ts/otp-input/otp-input-model.d.ts +0 -165
  64. package/dist/ts/otp-input/otp-input.d.ts +0 -365
  65. package/dist/ts/otp-input/otp-input.ts +0 -924
  66. package/dist/ts/rating/index.d.ts +0 -5
  67. package/dist/ts/rating/index.ts +0 -5
  68. package/dist/ts/rating/rating-model.d.ts +0 -239
  69. package/dist/ts/rating/rating.d.ts +0 -416
  70. package/dist/ts/rating/rating.ts +0 -1101
  71. package/dist/ts/signature/index.d.ts +0 -5
  72. package/dist/ts/signature/index.ts +0 -5
  73. package/dist/ts/signature/signature-model.d.ts +0 -131
  74. package/dist/ts/signature/signature.d.ts +0 -167
  75. package/dist/ts/signature/signature.ts +0 -266
  76. package/dist/ts/slider/index.d.ts +0 -5
  77. package/dist/ts/slider/index.ts +0 -5
  78. package/dist/ts/slider/slider-model.d.ts +0 -401
  79. package/dist/ts/slider/slider.d.ts +0 -721
  80. package/dist/ts/slider/slider.ts +0 -3497
  81. package/dist/ts/smart-textarea/caret-helper.d.ts +0 -17
  82. package/dist/ts/smart-textarea/caret-helper.ts +0 -95
  83. package/dist/ts/smart-textarea/index.d.ts +0 -5
  84. package/dist/ts/smart-textarea/index.ts +0 -5
  85. package/dist/ts/smart-textarea/smart-textarea-model.d.ts +0 -44
  86. package/dist/ts/smart-textarea/smart-textarea.d.ts +0 -80
  87. package/dist/ts/smart-textarea/smart-textarea.ts +0 -518
  88. package/dist/ts/speech-to-text/index.d.ts +0 -5
  89. package/dist/ts/speech-to-text/index.ts +0 -5
  90. package/dist/ts/speech-to-text/speech-to-text-model.d.ts +0 -270
  91. package/dist/ts/speech-to-text/speech-to-text.d.ts +0 -487
  92. package/dist/ts/speech-to-text/speech-to-text.ts +0 -1008
  93. package/dist/ts/textarea/index.d.ts +0 -5
  94. package/dist/ts/textarea/index.ts +0 -5
  95. package/dist/ts/textarea/textarea-model.d.ts +0 -161
  96. package/dist/ts/textarea/textarea.d.ts +0 -237
  97. package/dist/ts/textarea/textarea.ts +0 -812
  98. package/dist/ts/textbox/index.d.ts +0 -5
  99. package/dist/ts/textbox/index.ts +0 -5
  100. package/dist/ts/textbox/textbox-model.d.ts +0 -155
  101. package/dist/ts/textbox/textbox.d.ts +0 -288
  102. package/dist/ts/textbox/textbox.ts +0 -872
  103. package/dist/ts/uploader/index.d.ts +0 -5
  104. package/dist/ts/uploader/index.ts +0 -5
  105. package/dist/ts/uploader/uploader-model.d.ts +0 -555
  106. package/dist/ts/uploader/uploader.d.ts +0 -1216
  107. package/dist/ts/uploader/uploader.ts +0 -4391
@@ -1,5 +0,0 @@
1
- /**
2
- * Rating modules
3
- */
4
- export * from './rating';
5
- export * from './rating-model';
@@ -1,5 +0,0 @@
1
- /**
2
- * Rating modules
3
- */
4
- export * from './rating';
5
- export * from './rating-model';
@@ -1,239 +0,0 @@
1
- import { addClass, Event, attributes, BaseEventArgs, compile, Component, EmitType, EventHandler, getUniqueID, INotifyPropertyChanged, select, Browser, append } from '@syncfusion/ej2-base';import { isNullOrUndefined, KeyboardEventArgs, KeyboardEvents, MouseEventArgs, NotifyPropertyChanges, Property, remove, removeClass, initializeCSPTemplate, closest } from '@syncfusion/ej2-base';import { Tooltip } from '@syncfusion/ej2-popups';
2
- import {LabelPosition,PrecisionType,RatingItemEventArgs,RatingHoverEventArgs,RatingChangedEventArgs} from "./rating";
3
- import {ComponentModel} from '@syncfusion/ej2-base';
4
-
5
- /**
6
- * Interface for a class Rating
7
- */
8
- export interface RatingModel extends ComponentModel{
9
-
10
- /**
11
- * Defines whether to show or hide the reset button in a rating component.
12
- * When set to "true", the reset button will be visible to the user, and they will be able to click it to reset the rating value to its default value.
13
- *
14
- * {% codeBlock src='rating/allowReset/index.md' %}{% endcodeBlock %}
15
- *
16
- * @default false
17
- */
18
- allowReset?: boolean;
19
-
20
- /**
21
- * Defines one or more CSS classes that can be used to customize the appearance of a rating component.
22
- * One or more CSS classes to customize the appearance of the rating component, such as by changing its colors, fonts, sizes, or other visual aspects.
23
- *
24
- * @default ''
25
- */
26
- cssClass?: string;
27
-
28
- /**
29
- * Defines whether a rating component is enabled or disabled.
30
- * A disabled rating component may have a different visual appearance than an enabled one.
31
- * When set to "true", the rating component will be disabled, and the user will not be able to interact with it.
32
- *
33
- * @default false
34
- */
35
- disabled?: boolean;
36
-
37
- /**
38
- * Defines the template that defines the appearance of each un-rated item in a rating component.
39
- *
40
- * @default ''
41
- * @angularType string | object
42
- * @reactType string | function | JSX.Element
43
- * @vueType string | function
44
- * @aspType string
45
- */
46
- emptyTemplate?: string | Function;
47
-
48
- /**
49
- * Defines whether to add animation (to provide visual feedback to the user) when an item in a rating component is hovered.
50
- * When set to "true", an animation will be added when the user hovers their cursor over an item in the rating component.
51
- *
52
- * @default true
53
- */
54
- enableAnimation?: boolean;
55
-
56
- /**
57
- * Defines whether to select all the items before the selected item should be in selected state in a rating component.
58
- * When set to "true", only the selected item will be in the selected state, and all other items will be un-selected.
59
- * When set to "false", all items before the selected one will be in the selected state.
60
- *
61
- * @default false
62
- */
63
- enableSingleSelection?: boolean;
64
-
65
- /**
66
- * Defines the template that defines the appearance of each rated item in a rating component.
67
- *
68
- * {% codeBlock src='rating/fullTemplate/index.md' %}{% endcodeBlock %}
69
- *
70
- * @default ''
71
- * @angularType string | object
72
- * @reactType string | function | JSX.Element
73
- * @vueType string | function
74
- * @aspType string
75
- */
76
- fullTemplate?: string | Function;
77
-
78
- /**
79
- * Defines the specific number of items (symbols) in rating component.
80
- * The rating component typically consists of a number of items, such as stars or other symbols, that represent the rating value.
81
- *
82
- * @default 5
83
- * @aspType int
84
- */
85
- itemsCount?: number;
86
-
87
- /**
88
- * Defines the position of the label in rating component.
89
- *
90
- * The possible values are:
91
- * * Top
92
- * * Bottom
93
- * * Left
94
- * * Right
95
- *
96
- * {% codeBlock src='rating/labelPosition/index.md' %}{% endcodeBlock %}
97
- *
98
- * @isenumeration true
99
- * @default LabelPosition.Right
100
- * @asptype LabelPosition
101
- */
102
- labelPosition?: string | LabelPosition;
103
-
104
- /**
105
- * Defines the template that used as label over default label of the rating. The current value of rating passed as context to build the content.
106
- *
107
- * {% codeBlock src='rating/labelTemplate/index.md' %}{% endcodeBlock %}
108
- *
109
- * @default ''
110
- * @angularType string | object
111
- * @reactType string | function | JSX.Element
112
- * @vueType string | function
113
- * @aspType string
114
- */
115
- labelTemplate?: string | Function;
116
-
117
- /**
118
- * Defines the value that specifies minimum rating that a user can select.
119
- * The value is set to 0, which means that the minimum possible rating is 0.
120
- *
121
- * @default 0.0
122
- * @aspType double
123
- */
124
- min?: number;
125
-
126
- /**
127
- * Defines the precision type of the rating which used to component the granularity of the rating,
128
- * allowing users to provide ratings with varying levels of precision.
129
- *
130
- * The possible values are:
131
- * * Full
132
- * * Half
133
- * * Quarter
134
- * * Exact
135
- *
136
- * {% codeBlock src='rating/precision/index.md' %}{% endcodeBlock %}
137
- *
138
- * @isenumeration true
139
- * @default PrecisionType.Full
140
- * @asptype PrecisionType
141
- */
142
- precision?: string | PrecisionType;
143
-
144
- /**
145
- * Defines a boolean value that specifies whether the read-only mode is enabled for a rating component,
146
- * which prevents the user from modifying or interacting with the rating value but allows them to read it.
147
- *
148
- * @default false
149
- */
150
- readOnly?: boolean;
151
-
152
- /**
153
- * Defines a value that specifies whether to display a label that shows the current value of a rating.
154
- * When set to "true", a label will be displayed that shows the current value of the rating; otherwise false.
155
- *
156
- * {% codeBlock src='rating/showLabel/index.md' %}{% endcodeBlock %}
157
- *
158
- * @default false
159
- */
160
- showLabel?: boolean;
161
-
162
- /**
163
- * Defines a value that defines whether to show tooltip for the items.
164
- * When set to "true", show tooltip for the items.
165
- *
166
- * @default true
167
- */
168
- showTooltip?: boolean;
169
-
170
- /**
171
- * Defines the template that used as tooltip content over default tooltip content of the rating.
172
- * The current value of rating passed as context to build the content.
173
- *
174
- * {% codeBlock src='rating/tooltipTemplate/index.md' %}{% endcodeBlock %}
175
- *
176
- * @default ''
177
- * @angularType string | object
178
- * @reactType string | function | JSX.Element
179
- * @vueType string | function
180
- * @aspType string
181
- */
182
- tooltipTemplate?: string | Function;
183
-
184
- /**
185
- * Defines the current rating value which used to display and update the rating selected by the user.
186
- * Based on "PrecisionType", users can select ratings with varying levels of precision.
187
- * The "value" is a decimal value that ranges from the minimum value to the items count,
188
- * as specified by the "min" and "itemsCount" properties of the rating.
189
- *
190
- * {% codeBlock src='rating/value/index.md' %}{% endcodeBlock %}
191
- *
192
- * @default 0.0
193
- * @aspType double
194
- */
195
- value?: number;
196
-
197
- /**
198
- * Defines a value that indicates whether the rating component is visible or hidden.
199
- * When set to "true", if the rating component is visible.
200
- *
201
- * @default true
202
- */
203
- visible?: boolean;
204
-
205
- /**
206
- * Event callback that is raised before rendering each item.
207
- *
208
- * {% codeBlock src='rating/beforeItemRenderEvent/index.md' %}{% endcodeBlock %}
209
- *
210
- * @event beforeItemRender
211
- */
212
- beforeItemRender?: EmitType<RatingItemEventArgs>;
213
-
214
- /**
215
- * Event callback that is raised after rendering the rating.
216
- *
217
- * @event created
218
- */
219
- created?: EmitType<Event>;
220
-
221
- /**
222
- * Event callback that is raised when a user hovers over an item.
223
- *
224
- * {% codeBlock src='rating/onItemHoverEvent/index.md' %}{% endcodeBlock %}
225
- *
226
- * @event onItemHover
227
- */
228
- onItemHover?: EmitType<RatingHoverEventArgs>;
229
-
230
- /**
231
- * Event callback that is raised when the value is changed.
232
- *
233
- * {% codeBlock src='rating/valueChangedEvent/index.md' %}{% endcodeBlock %}
234
- *
235
- * @event valueChanged
236
- */
237
- valueChanged?: EmitType<RatingChangedEventArgs>;
238
-
239
- }
@@ -1,416 +0,0 @@
1
- import { BaseEventArgs, Component, EmitType, INotifyPropertyChanged } from '@syncfusion/ej2-base';
2
- import { RatingModel } from './rating-model';
3
- /**
4
- * Defines where to position the label in rating
5
- */
6
- export declare enum LabelPosition {
7
- /**
8
- * The label is positioned at the top center of the rating component.
9
- */
10
- Top = "Top",
11
- /**
12
- * The label is positioned at the bottom center of the rating component.
13
- */
14
- Bottom = "Bottom",
15
- /**
16
- * The label is positioned at the left side of the rating component.
17
- */
18
- Left = "Left",
19
- /**
20
- * The label is positioned at the right side of the rating component.
21
- */
22
- Right = "Right"
23
- }
24
- /**
25
- * Defines the precision type of the rating.
26
- * It is used to component the granularity of the rating, allowing users to provide ratings with varying levels of precision.
27
- */
28
- export declare enum PrecisionType {
29
- /**
30
- * The rating is increased in whole number increments.
31
- */
32
- Full = "Full",
33
- /**
34
- * The rating is increased in increments of 0.5 (half).
35
- */
36
- Half = "Half",
37
- /**
38
- * The rating is increased in increments of 0.25 (quarter).
39
- */
40
- Quarter = "Quarter",
41
- /**
42
- * The rating is increased in increments of 0.1.
43
- */
44
- Exact = "Exact"
45
- }
46
- /**
47
- * Provides information about valueChanged event callback
48
- */
49
- export interface RatingChangedEventArgs extends BaseEventArgs {
50
- /**
51
- * Provides the original event
52
- */
53
- event: Event;
54
- /**
55
- * Provides whether the change is triggered by user interaction.
56
- */
57
- isInteracted: boolean;
58
- /**
59
- * Provides the previous value.
60
- */
61
- previousValue: number;
62
- /**
63
- * Provides the current value.
64
- */
65
- value: number;
66
- }
67
- /**
68
- * Provides information about onItemHover event callback.
69
- */
70
- export interface RatingHoverEventArgs extends BaseEventArgs {
71
- /**
72
- * Provides the rating item element reference.
73
- */
74
- element: HTMLElement;
75
- /**
76
- * Provides the original event.
77
- */
78
- event: Event;
79
- /**
80
- * Provides the hover value at hovered point of rating.
81
- */
82
- value: number;
83
- }
84
- /**
85
- * Provides information about beforeItemRender event callback.
86
- */
87
- export interface RatingItemEventArgs extends BaseEventArgs {
88
- /**
89
- * Provides the rating item element reference.
90
- */
91
- element: HTMLElement;
92
- /**
93
- * Provides the place value of the item.
94
- */
95
- value: number;
96
- }
97
- /**
98
- * The Rating component allows the user to rate something by clicking on a set of symbols on a numeric scale.
99
- * This allows users to provide feedback or ratings for products, services, or content.
100
- *
101
- * ```html
102
- * <input id="rating">
103
- * ```
104
- * ```typescript
105
- * <script>
106
- * let ratingObj: Rating = new Rating();
107
- * ratingObj.appendTo('#rating');
108
- * </script>
109
- * ```
110
- */
111
- export declare class Rating extends Component<HTMLElement> implements INotifyPropertyChanged {
112
- /**
113
- * Defines whether to show or hide the reset button in a rating component.
114
- * When set to "true", the reset button will be visible to the user, and they will be able to click it to reset the rating value to its default value.
115
- *
116
- * {% codeBlock src='rating/allowReset/index.md' %}{% endcodeBlock %}
117
- *
118
- * @default false
119
- */
120
- allowReset: boolean;
121
- /**
122
- * Defines one or more CSS classes that can be used to customize the appearance of a rating component.
123
- * One or more CSS classes to customize the appearance of the rating component, such as by changing its colors, fonts, sizes, or other visual aspects.
124
- *
125
- * @default ''
126
- */
127
- cssClass: string;
128
- /**
129
- * Defines whether a rating component is enabled or disabled.
130
- * A disabled rating component may have a different visual appearance than an enabled one.
131
- * When set to "true", the rating component will be disabled, and the user will not be able to interact with it.
132
- *
133
- * @default false
134
- */
135
- disabled: boolean;
136
- /**
137
- * Defines the template that defines the appearance of each un-rated item in a rating component.
138
- *
139
- * @default ''
140
- * @angularType string | object
141
- * @reactType string | function | JSX.Element
142
- * @vueType string | function
143
- * @aspType string
144
- */
145
- emptyTemplate: string | Function;
146
- /**
147
- * Defines whether to add animation (to provide visual feedback to the user) when an item in a rating component is hovered.
148
- * When set to "true", an animation will be added when the user hovers their cursor over an item in the rating component.
149
- *
150
- * @default true
151
- */
152
- enableAnimation: boolean;
153
- /**
154
- * Defines whether to select all the items before the selected item should be in selected state in a rating component.
155
- * When set to "true", only the selected item will be in the selected state, and all other items will be un-selected.
156
- * When set to "false", all items before the selected one will be in the selected state.
157
- *
158
- * @default false
159
- */
160
- enableSingleSelection: boolean;
161
- /**
162
- * Defines the template that defines the appearance of each rated item in a rating component.
163
- *
164
- * {% codeBlock src='rating/fullTemplate/index.md' %}{% endcodeBlock %}
165
- *
166
- * @default ''
167
- * @angularType string | object
168
- * @reactType string | function | JSX.Element
169
- * @vueType string | function
170
- * @aspType string
171
- */
172
- fullTemplate: string | Function;
173
- /**
174
- * Defines the specific number of items (symbols) in rating component.
175
- * The rating component typically consists of a number of items, such as stars or other symbols, that represent the rating value.
176
- *
177
- * @default 5
178
- * @aspType int
179
- */
180
- itemsCount: number;
181
- /**
182
- * Defines the position of the label in rating component.
183
- *
184
- * The possible values are:
185
- * * Top
186
- * * Bottom
187
- * * Left
188
- * * Right
189
- *
190
- * {% codeBlock src='rating/labelPosition/index.md' %}{% endcodeBlock %}
191
- *
192
- * @isenumeration true
193
- * @default LabelPosition.Right
194
- * @asptype LabelPosition
195
- */
196
- labelPosition: string | LabelPosition;
197
- /**
198
- * Defines the template that used as label over default label of the rating. The current value of rating passed as context to build the content.
199
- *
200
- * {% codeBlock src='rating/labelTemplate/index.md' %}{% endcodeBlock %}
201
- *
202
- * @default ''
203
- * @angularType string | object
204
- * @reactType string | function | JSX.Element
205
- * @vueType string | function
206
- * @aspType string
207
- */
208
- labelTemplate: string | Function;
209
- /**
210
- * Defines the value that specifies minimum rating that a user can select.
211
- * The value is set to 0, which means that the minimum possible rating is 0.
212
- *
213
- * @default 0.0
214
- * @aspType double
215
- */
216
- min: number;
217
- /**
218
- * Defines the precision type of the rating which used to component the granularity of the rating,
219
- * allowing users to provide ratings with varying levels of precision.
220
- *
221
- * The possible values are:
222
- * * Full
223
- * * Half
224
- * * Quarter
225
- * * Exact
226
- *
227
- * {% codeBlock src='rating/precision/index.md' %}{% endcodeBlock %}
228
- *
229
- * @isenumeration true
230
- * @default PrecisionType.Full
231
- * @asptype PrecisionType
232
- */
233
- precision: string | PrecisionType;
234
- /**
235
- * Defines a boolean value that specifies whether the read-only mode is enabled for a rating component,
236
- * which prevents the user from modifying or interacting with the rating value but allows them to read it.
237
- *
238
- * @default false
239
- */
240
- readOnly: boolean;
241
- /**
242
- * Defines a value that specifies whether to display a label that shows the current value of a rating.
243
- * When set to "true", a label will be displayed that shows the current value of the rating; otherwise false.
244
- *
245
- * {% codeBlock src='rating/showLabel/index.md' %}{% endcodeBlock %}
246
- *
247
- * @default false
248
- */
249
- showLabel: boolean;
250
- /**
251
- * Defines a value that defines whether to show tooltip for the items.
252
- * When set to "true", show tooltip for the items.
253
- *
254
- * @default true
255
- */
256
- showTooltip: boolean;
257
- /**
258
- * Defines the template that used as tooltip content over default tooltip content of the rating.
259
- * The current value of rating passed as context to build the content.
260
- *
261
- * {% codeBlock src='rating/tooltipTemplate/index.md' %}{% endcodeBlock %}
262
- *
263
- * @default ''
264
- * @angularType string | object
265
- * @reactType string | function | JSX.Element
266
- * @vueType string | function
267
- * @aspType string
268
- */
269
- tooltipTemplate: string | Function;
270
- /**
271
- * Defines the current rating value which used to display and update the rating selected by the user.
272
- * Based on "PrecisionType", users can select ratings with varying levels of precision.
273
- * The "value" is a decimal value that ranges from the minimum value to the items count,
274
- * as specified by the "min" and "itemsCount" properties of the rating.
275
- *
276
- * {% codeBlock src='rating/value/index.md' %}{% endcodeBlock %}
277
- *
278
- * @default 0.0
279
- * @aspType double
280
- */
281
- value: number;
282
- /**
283
- * Defines a value that indicates whether the rating component is visible or hidden.
284
- * When set to "true", if the rating component is visible.
285
- *
286
- * @default true
287
- */
288
- visible: boolean;
289
- /**
290
- * Event callback that is raised before rendering each item.
291
- *
292
- * {% codeBlock src='rating/beforeItemRenderEvent/index.md' %}{% endcodeBlock %}
293
- *
294
- * @event beforeItemRender
295
- */
296
- beforeItemRender: EmitType<RatingItemEventArgs>;
297
- /**
298
- * Event callback that is raised after rendering the rating.
299
- *
300
- * @event created
301
- */
302
- created: EmitType<Event>;
303
- /**
304
- * Event callback that is raised when a user hovers over an item.
305
- *
306
- * {% codeBlock src='rating/onItemHoverEvent/index.md' %}{% endcodeBlock %}
307
- *
308
- * @event onItemHover
309
- */
310
- onItemHover: EmitType<RatingHoverEventArgs>;
311
- /**
312
- * Event callback that is raised when the value is changed.
313
- *
314
- * {% codeBlock src='rating/valueChangedEvent/index.md' %}{% endcodeBlock %}
315
- *
316
- * @event valueChanged
317
- */
318
- valueChanged: EmitType<RatingChangedEventArgs>;
319
- private wrapper;
320
- private ratingItemList;
321
- private spanLabel;
322
- private itemElements;
323
- private resetElement;
324
- private keyboardModuleRating;
325
- private keyConfigs;
326
- private tooltipObj;
327
- private currentValue;
328
- private emptyTemplateFunction;
329
- private fullTemplateFunction;
330
- private tooltipOpen;
331
- private isTouchSelected;
332
- /**
333
- * Constructor for creating the widget
334
- *
335
- * @param {RatingModel} options - Specifies the rating model
336
- * @param {string|HTMLButtonElement} element - Specifies the target element
337
- */
338
- constructor(options?: RatingModel, element?: string | HTMLInputElement);
339
- protected preRender(): void;
340
- render(): void;
341
- private initialize;
342
- private updateDisabled;
343
- private updateResetButton;
344
- private renderItemList;
345
- private touchMoveHandler;
346
- private touchEndHandler;
347
- private updateTemplateFunction;
348
- private renderItems;
349
- private renderItemContent;
350
- private removeItemContent;
351
- private updateTooltip;
352
- private updateMinValue;
353
- private validateValue;
354
- private getRatingValue;
355
- private updateItemValue;
356
- private updateItemContent;
357
- private updateTooltipContent;
358
- private getTemplateString;
359
- private displayLabel;
360
- private updateLabel;
361
- private updateReset;
362
- private updateLabelPosition;
363
- private clearLabelPosition;
364
- private wireItemsEvents;
365
- private clickHandler;
366
- private updateValueChange;
367
- private triggerChange;
368
- private mouseMoveHandler;
369
- private openRatingTooltip;
370
- private closeRatingTooltip;
371
- private updateCurrentValue;
372
- private mouseLeaveHandler;
373
- private calculateCurrentValue;
374
- /**
375
- * Reset’s the value to minimum.
376
- *
377
- * {% codeBlock src='rating/reset/index.md' %}{% endcodeBlock %}
378
- *
379
- * @returns {void}
380
- */
381
- reset(): void;
382
- private resetClicked;
383
- private wireKeyboardEvent;
384
- private keyActionHandler;
385
- private handleNavigation;
386
- private updateContent;
387
- /**
388
- * To get component name.
389
- *
390
- * @returns {string} - Module Name
391
- * @private
392
- */
393
- getModuleName(): string;
394
- /**
395
- * To get the properties to be maintained in the persisted state.
396
- *
397
- * @returns {string} - Persist data
398
- */
399
- protected getPersistData(): string;
400
- private removeItemElements;
401
- /**
402
- * Destroys the Rating instance.
403
- *
404
- * @returns {void}
405
- */
406
- destroy(): void;
407
- /**
408
- * Called internally if any of the property value changed.
409
- *
410
- * @param {RatingModel} newProp - Specifies new properties
411
- * @param {RatingModel} oldProp - Specifies old properties
412
- * @returns {void}
413
- * @private
414
- */
415
- onPropertyChanged(newProp: RatingModel, oldProp?: RatingModel): void;
416
- }