@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.
Files changed (106) 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 +4 -3
  5. package/dist/es6/ej2-inputs.es2015.js.map +1 -1
  6. package/dist/es6/ej2-inputs.es5.js +4 -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 +10 -60
  12. package/src/color-picker/color-picker.js +4 -3
  13. package/styles/bootstrap4-lite.css +2 -2
  14. package/styles/bootstrap4.css +2 -2
  15. package/styles/bootstrap5-dark-lite.css +2 -2
  16. package/styles/bootstrap5-dark.css +2 -2
  17. package/styles/bootstrap5-lite.css +2 -2
  18. package/styles/bootstrap5.css +2 -2
  19. package/styles/input/_bootstrap4-definition.scss +1 -1
  20. package/styles/input/_bootstrap5-definition.scss +1 -1
  21. package/styles/input/bootstrap4.css +2 -2
  22. package/styles/input/bootstrap5-dark.css +2 -2
  23. package/styles/input/bootstrap5.css +2 -2
  24. package/dist/ts/color-picker/color-picker-model.d.ts +0 -186
  25. package/dist/ts/color-picker/color-picker.d.ts +0 -398
  26. package/dist/ts/color-picker/color-picker.ts +0 -2209
  27. package/dist/ts/color-picker/index.d.ts +0 -5
  28. package/dist/ts/color-picker/index.ts +0 -5
  29. package/dist/ts/common/index.d.ts +0 -4
  30. package/dist/ts/common/index.ts +0 -4
  31. package/dist/ts/common/signature-base.d.ts +0 -340
  32. package/dist/ts/common/signature-base.ts +0 -1170
  33. package/dist/ts/form-validator/form-validator-model.d.ts +0 -121
  34. package/dist/ts/form-validator/form-validator.d.ts +0 -312
  35. package/dist/ts/form-validator/form-validator.ts +0 -1068
  36. package/dist/ts/form-validator/index.d.ts +0 -5
  37. package/dist/ts/form-validator/index.ts +0 -5
  38. package/dist/ts/index.d.ts +0 -18
  39. package/dist/ts/index.ts +0 -18
  40. package/dist/ts/input/index.d.ts +0 -4
  41. package/dist/ts/input/index.ts +0 -4
  42. package/dist/ts/input/input.d.ts +0 -345
  43. package/dist/ts/input/input.ts +0 -1277
  44. package/dist/ts/maskedtextbox/base/index.d.ts +0 -4
  45. package/dist/ts/maskedtextbox/base/index.ts +0 -4
  46. package/dist/ts/maskedtextbox/base/mask-base.d.ts +0 -134
  47. package/dist/ts/maskedtextbox/base/mask-base.ts +0 -1207
  48. package/dist/ts/maskedtextbox/index.d.ts +0 -5
  49. package/dist/ts/maskedtextbox/index.ts +0 -5
  50. package/dist/ts/maskedtextbox/maskedtextbox/index.d.ts +0 -5
  51. package/dist/ts/maskedtextbox/maskedtextbox/index.ts +0 -5
  52. package/dist/ts/maskedtextbox/maskedtextbox/maskedtextbox-model.d.ts +0 -167
  53. package/dist/ts/maskedtextbox/maskedtextbox/maskedtextbox.d.ts +0 -307
  54. package/dist/ts/maskedtextbox/maskedtextbox/maskedtextbox.ts +0 -709
  55. package/dist/ts/numerictextbox/index.d.ts +0 -5
  56. package/dist/ts/numerictextbox/index.ts +0 -5
  57. package/dist/ts/numerictextbox/numerictextbox-model.d.ts +0 -228
  58. package/dist/ts/numerictextbox/numerictextbox.d.ts +0 -431
  59. package/dist/ts/numerictextbox/numerictextbox.ts +0 -1672
  60. package/dist/ts/otp-input/index.d.ts +0 -5
  61. package/dist/ts/otp-input/index.ts +0 -5
  62. package/dist/ts/otp-input/otp-input-model.d.ts +0 -165
  63. package/dist/ts/otp-input/otp-input.d.ts +0 -365
  64. package/dist/ts/otp-input/otp-input.ts +0 -924
  65. package/dist/ts/rating/index.d.ts +0 -5
  66. package/dist/ts/rating/index.ts +0 -5
  67. package/dist/ts/rating/rating-model.d.ts +0 -239
  68. package/dist/ts/rating/rating.d.ts +0 -416
  69. package/dist/ts/rating/rating.ts +0 -1101
  70. package/dist/ts/signature/index.d.ts +0 -5
  71. package/dist/ts/signature/index.ts +0 -5
  72. package/dist/ts/signature/signature-model.d.ts +0 -131
  73. package/dist/ts/signature/signature.d.ts +0 -167
  74. package/dist/ts/signature/signature.ts +0 -266
  75. package/dist/ts/slider/index.d.ts +0 -5
  76. package/dist/ts/slider/index.ts +0 -5
  77. package/dist/ts/slider/slider-model.d.ts +0 -401
  78. package/dist/ts/slider/slider.d.ts +0 -721
  79. package/dist/ts/slider/slider.ts +0 -3497
  80. package/dist/ts/smart-textarea/caret-helper.d.ts +0 -17
  81. package/dist/ts/smart-textarea/caret-helper.ts +0 -95
  82. package/dist/ts/smart-textarea/index.d.ts +0 -5
  83. package/dist/ts/smart-textarea/index.ts +0 -5
  84. package/dist/ts/smart-textarea/smart-textarea-model.d.ts +0 -44
  85. package/dist/ts/smart-textarea/smart-textarea.d.ts +0 -80
  86. package/dist/ts/smart-textarea/smart-textarea.ts +0 -518
  87. package/dist/ts/speech-to-text/index.d.ts +0 -5
  88. package/dist/ts/speech-to-text/index.ts +0 -5
  89. package/dist/ts/speech-to-text/speech-to-text-model.d.ts +0 -270
  90. package/dist/ts/speech-to-text/speech-to-text.d.ts +0 -487
  91. package/dist/ts/speech-to-text/speech-to-text.ts +0 -1008
  92. package/dist/ts/textarea/index.d.ts +0 -5
  93. package/dist/ts/textarea/index.ts +0 -5
  94. package/dist/ts/textarea/textarea-model.d.ts +0 -161
  95. package/dist/ts/textarea/textarea.d.ts +0 -237
  96. package/dist/ts/textarea/textarea.ts +0 -812
  97. package/dist/ts/textbox/index.d.ts +0 -5
  98. package/dist/ts/textbox/index.ts +0 -5
  99. package/dist/ts/textbox/textbox-model.d.ts +0 -155
  100. package/dist/ts/textbox/textbox.d.ts +0 -288
  101. package/dist/ts/textbox/textbox.ts +0 -872
  102. package/dist/ts/uploader/index.d.ts +0 -5
  103. package/dist/ts/uploader/index.ts +0 -5
  104. package/dist/ts/uploader/uploader-model.d.ts +0 -555
  105. package/dist/ts/uploader/uploader.d.ts +0 -1216
  106. package/dist/ts/uploader/uploader.ts +0 -4391
@@ -1,270 +0,0 @@
1
- import { NotifyPropertyChanges, INotifyPropertyChanged, Component, getUniqueID, Property, isNullOrUndefined as isNOU, EmitType, Event, EventHandler, ChildProperty, BaseEventArgs, Complex, removeClass, addClass, L10n } from '@syncfusion/ej2-base';import { Button, IconPosition } from '@syncfusion/ej2-buttons';import { Tooltip } from '@syncfusion/ej2-popups';
2
- import {TooltipPosition,SpeechToTextState,StartListeningEventArgs,StopListeningEventArgs,ErrorEventArgs,TranscriptChangedEventArgs} from "./speech-to-text";
3
- import {ComponentModel} from '@syncfusion/ej2-base';
4
-
5
- /**
6
- * Interface for a class ButtonSettings
7
- */
8
- export interface ButtonSettingsModel {
9
-
10
- /**
11
- * Specifies the text content to be displayed when the SpeechToText button is in the "start" state.
12
- * This content appears alongside the icon or as standalone text based on the configuration.
13
- *
14
- * @type {string}
15
- * @default ""
16
- */
17
- content?: string;
18
-
19
- /**
20
- * Specifies the text content to be displayed when the SpeechToText button is in the "stop" state.
21
- * This content appears alongside the icon or as standalone text based on the configuration.
22
- *
23
- * @type {string}
24
- * @default ""
25
- */
26
- stopContent?: string;
27
-
28
- /**
29
- * Specifies the CSS classes for the icon displayed on the SpeechToText button.
30
- * This class determines the appearance of the button icon in "start" state.
31
- *
32
- * @type {string}
33
- * @default ""
34
- */
35
- iconCss?: string;
36
-
37
- /**
38
- * Specifies the CSS classes for the icon displayed when the SpeechToText button is in the "stop" state.
39
- * This class determines the styling of the button icon in the stop state, allowing for clear visual feedback.
40
- *
41
- * @type {string}
42
- * @default ""
43
- */
44
- stopIconCss?: string;
45
-
46
- /**
47
- * Specifies the position of the icon relative to the button text content in the SpeechToText component.
48
- * This property can accept either a string or an IconPosition enum to determine the position of the icon.
49
- *
50
- * @type {string | IconPosition}
51
- * @default "Left"
52
- */
53
- iconPosition?: string | IconPosition;
54
-
55
- /**
56
- * Specifies whether the button should be styled as a primary action button in the SpeechToText component.
57
- * When set to `true`, the button applies primary styling.
58
- *
59
- * @type {boolean}
60
- * @default false
61
- */
62
- isPrimary?: boolean;
63
-
64
- }
65
-
66
- /**
67
- * Interface for a class TooltipSettings
68
- */
69
- export interface TooltipSettingsModel {
70
-
71
- /**
72
- * The text displayed when the user hovers over the button while it is in the listening state,
73
- * showing the start listening option.
74
- * @type {string}
75
- * @default 'Start listening'
76
- */
77
- content?: string;
78
-
79
- /**
80
- * The text displayed when the user hovers over the button while listening is in progress,
81
- * and the button shows the stop icon.
82
- * @type {string}
83
- * @default 'Stop listening'
84
- */
85
- stopContent?: string;
86
-
87
- /**
88
- * Specifies the position of the tooltip in the UI, indicating where the tooltip should appear.
89
- *
90
- * @isenumeration true
91
- * @asptype TooltipPosition
92
- * @default 'TopCenter'
93
- */
94
- position?: TooltipPosition;
95
-
96
- }
97
-
98
- /**
99
- * Interface for a class SpeechToText
100
- */
101
- export interface SpeechToTextModel extends ComponentModel{
102
-
103
- /**
104
- * The transcribed text from the speech-to-text process.
105
- * This property updates dynamically during speech recognition, providing both interim and final results.
106
- * It can be used to display or process the transcribed speech.
107
- *
108
- * @type {string}
109
- * @default ''
110
- */
111
- transcript?: string;
112
-
113
- /**
114
- * The language and locale used for speech recognition.
115
- * This ensures proper transcription by selecting the correct language model.
116
- * Common formats: 'en-US' (English, United States), 'es-ES' (Spanish, Spain), 'fr-FR' (French, France).
117
- *
118
- * @type {string}
119
- * @default ''
120
- */
121
- lang?: string;
122
-
123
- /**
124
- * Determines whether interim results should be provided during speech recognition.
125
- * If true, partial results are delivered in real-time, allowing for a dynamic user experience.
126
- * If false, only final results will be provided after the recognition process is complete.
127
- *
128
- * @type {boolean}
129
- * @default true
130
- */
131
- allowInterimResults?: boolean;
132
-
133
- /**
134
- * Determines whether the tooltip should be displayed on hover over the SpeechToText button.
135
- * If true, the tooltip will be shown to provide additional information about the current state or action.
136
- *
137
- * @type {boolean}
138
- * @default true
139
- */
140
- showTooltip?: boolean;
141
-
142
- /**
143
- * Represents the current operational state of the component.
144
- * This state helps manage transitions and control the component's behavior.
145
- * Possible values:
146
- * - 'Inactive': Component is idle.
147
- * - 'Listening': The component is actively listening for speech input.
148
- * - 'Stopped': Listening has stopped.
149
- *
150
- * @isenumeration true
151
- * @asptype SpeechToTextState
152
- * @default 'Inactive'
153
- */
154
- listeningState?: SpeechToTextState;
155
-
156
- /**
157
- * Customizes the appearance and functionality of the record button.
158
- * This allows for customization of button content, icons, and positions.
159
- * Use it to adjust the button's visual and functional properties according to your needs.
160
- *
161
- * @default null
162
- * @type {ButtonSettingsModel}
163
- */
164
- buttonSettings?: ButtonSettingsModel;
165
-
166
- /**
167
- * Defines tooltip content and positioning for guiding user interactions.
168
- * Tooltip provides helpful instructions or descriptions for button actions, improving user experience.
169
- *
170
- * @default null
171
- * @type {TooltipSettingsModel}
172
- */
173
- tooltipSettings?: TooltipSettingsModel;
174
-
175
- /**
176
- * Indicates whether the component is disabled.
177
- * When true, all interactions with the component (e.g., clicking, listening) are disabled.
178
- * Useful for preventing user interaction in specific states, such as during processing or error handling.
179
- *
180
- * @type {boolean}
181
- * @default false
182
- */
183
- disabled?: boolean;
184
-
185
- /**
186
- * Specifies additional CSS classes for customizing the component's appearance.
187
- * Allows applying custom styles to match application requirements
188
- * This property can be used to extend the component's default style.
189
- *
190
- * @type {string}
191
- * @default ''
192
- */
193
- cssClass?: string;
194
-
195
- /**
196
- * Allows additional HTML attributes to be added to the root element of the SpeechToText button.
197
- * This property accepts a key-value pair format for attributes such as name, aria-label, and others.
198
- * This helps to make the button more accessible and adaptable to specific requirements.
199
- *
200
- * @type {Object}
201
- * @default null
202
- */
203
- htmlAttributes?: { [key: string]: string };
204
-
205
- /**
206
- * Triggered when the SpeechToText component is initialized and ready for interaction.
207
- * This event indicates that the component is fully loaded and can start processing user input.
208
- * Use this event to execute initialization logic or show the component's ready state.
209
- *
210
- * @event created
211
- */
212
- created?: EmitType<Event>;
213
-
214
- /**
215
- * Triggered when speech recognition begins listening for audio input.
216
- * This event fires when the user starts the speech-to-text process.
217
- * Use this event to execute logic or display feedback (e.g., a "Listening..." message).
218
- *
219
- * @param {StartListeningEventArgs} args - The event arguments containing the state and context information for the start of the listening process.
220
- * @event onStart
221
- */
222
- onStart?: EmitType<StartListeningEventArgs>;
223
-
224
- /**
225
- * Triggered when speech recognition stops listening for audio input.
226
- * This event marks the end of the listening session, either due to user action or completion of recognition.
227
- * Use this event to trigger post-processing logic or indicate that listening has ended (e.g., show "Listening stopped").
228
- *
229
- * @param {StopListeningEventArgs} args - The event arguments containing the state and context information for the stop action.
230
- * @event onStop
231
- */
232
- onStop?: EmitType<StopListeningEventArgs>;
233
-
234
- /**
235
- * Triggered when an error occurs during speech recognition or listening, this event provides details to handle exceptions, display messages, and troubleshoot issues like microphone failures, network errors, or unsupported browsers and language models.
236
- *
237
- * Common error strings may include:
238
- * - `no-speech`: No speech detected. Please speak into the microphone.
239
- * - `aborted`: Speech recognition was aborted.
240
- * - `audio-capture`: No microphone detected. Ensure your microphone is connected.
241
- * - `not-allowed`: Microphone access denied. Allow microphone permissions.
242
- * - `service-not-allowed`: Speech recognition service is not allowed in this context.
243
- * - `network`: Network error occurred. Check your internet connection.
244
- * - `unsupported-browser`: The browser does not support the SpeechRecognition API.
245
- *
246
- * In addition to handling common speech recognition errors, it is essential to handle unsupported browser errors. For example, if the browser does not support the `SpeechRecognition` API, the `unsupported-browser` error string will be triggered. This can help notify users to switch to a compatible browser.
247
- *
248
- * For more details on the error strings and how to handle them, refer to the documentation:
249
- * [SpeechRecognitionErrorEvent error](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionErrorEvent/error)
250
- *
251
- * @param {ErrorEventArgs} args - The event arguments containing the error details:
252
- * - `error`: The error string representing the specific issue that occurred.
253
- * - `message`: A brief message describing the error.
254
- * - `event`: The event object that triggered the error (contains details like the type of error event).
255
- *
256
- * @event onError
257
- */
258
- onError?: EmitType<ErrorEventArgs>;
259
-
260
- /**
261
- * Triggered when the transcript is updated during the speech recognition process.
262
- * This event delivers updated text as the user speaks. It can be used to update the UI with real-time transcription.
263
- * The event provides both interim and final transcript results, depending on the configuration.
264
- *
265
- * @param {TranscriptChangedEventArgs} args - The event arguments containing the latest transcript text.
266
- * @event transcriptChanged
267
- */
268
- transcriptChanged?: EmitType<TranscriptChangedEventArgs>;
269
-
270
- }