@syncfusion/ej2-inputs 28.2.11 → 29.1.34

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 (252) hide show
  1. package/README.md +26 -2
  2. package/aceconfig.js +17 -0
  3. package/dist/ej2-inputs.min.js +2 -2
  4. package/dist/ej2-inputs.umd.min.js +2 -2
  5. package/dist/ej2-inputs.umd.min.js.map +1 -1
  6. package/dist/es6/ej2-inputs.es2015.js +652 -25
  7. package/dist/es6/ej2-inputs.es2015.js.map +1 -1
  8. package/dist/es6/ej2-inputs.es5.js +681 -25
  9. package/dist/es6/ej2-inputs.es5.js.map +1 -1
  10. package/dist/global/ej2-inputs.min.js +2 -2
  11. package/dist/global/ej2-inputs.min.js.map +1 -1
  12. package/dist/global/index.d.ts +1 -1
  13. package/package.json +18 -26
  14. package/speech-to-text.d.ts +4 -0
  15. package/speech-to-text.js +4 -0
  16. package/src/index.d.ts +1 -0
  17. package/src/index.js +1 -0
  18. package/src/rating/rating.js +3 -0
  19. package/src/slider/slider.d.ts +0 -2
  20. package/src/slider/slider.js +14 -19
  21. package/src/speech-to-text/index.d.ts +5 -0
  22. package/src/speech-to-text/index.js +4 -0
  23. package/src/speech-to-text/speech-to-text-model.d.ts +270 -0
  24. package/src/speech-to-text/speech-to-text.d.ts +487 -0
  25. package/src/speech-to-text/speech-to-text.js +660 -0
  26. package/src/uploader/uploader.js +7 -5
  27. package/styles/bds-lite.css +81 -0
  28. package/styles/bds-lite.scss +3 -0
  29. package/styles/bds.css +111 -0
  30. package/styles/bds.scss +4 -0
  31. package/styles/bootstrap-dark-lite.css +98 -17
  32. package/styles/bootstrap-dark-lite.scss +3 -0
  33. package/styles/bootstrap-dark.css +128 -17
  34. package/styles/bootstrap-dark.scss +4 -0
  35. package/styles/bootstrap-lite.css +81 -0
  36. package/styles/bootstrap-lite.scss +3 -0
  37. package/styles/bootstrap.css +111 -0
  38. package/styles/bootstrap.scss +4 -0
  39. package/styles/bootstrap4-lite.css +102 -25
  40. package/styles/bootstrap4-lite.scss +3 -0
  41. package/styles/bootstrap4.css +132 -25
  42. package/styles/bootstrap4.scss +4 -0
  43. package/styles/bootstrap5-dark-lite.css +151 -73
  44. package/styles/bootstrap5-dark-lite.scss +3 -0
  45. package/styles/bootstrap5-dark.css +192 -83
  46. package/styles/bootstrap5-dark.scss +4 -0
  47. package/styles/bootstrap5-lite.css +106 -28
  48. package/styles/bootstrap5-lite.scss +3 -0
  49. package/styles/bootstrap5.3-lite.css +78 -0
  50. package/styles/bootstrap5.3-lite.scss +3 -0
  51. package/styles/bootstrap5.3.css +109 -0
  52. package/styles/bootstrap5.3.scss +4 -0
  53. package/styles/bootstrap5.css +137 -28
  54. package/styles/bootstrap5.scss +4 -0
  55. package/styles/color-picker/_theme.scss +4 -2
  56. package/styles/color-picker/bootstrap4.css +4 -4
  57. package/styles/color-picker/bootstrap5-dark.css +12 -12
  58. package/styles/color-picker/bootstrap5.css +7 -7
  59. package/styles/data-form/_bootstrap-dark-definition.scss +4 -2
  60. package/styles/data-form/_bootstrap4-definition.scss +4 -2
  61. package/styles/data-form/_fabric-dark-definition.scss +4 -2
  62. package/styles/data-form/_material-dark-definition.scss +4 -2
  63. package/styles/data-form/_material-definition.scss +4 -2
  64. package/styles/data-form/bootstrap-dark.css +6 -6
  65. package/styles/data-form/bootstrap4.css +6 -6
  66. package/styles/data-form/bootstrap5-dark.css +6 -6
  67. package/styles/data-form/bootstrap5.css +4 -4
  68. package/styles/data-form/fabric-dark.css +6 -6
  69. package/styles/data-form/material-dark.css +6 -6
  70. package/styles/data-form/material.css +6 -6
  71. package/styles/fabric-dark-lite.css +104 -22
  72. package/styles/fabric-dark-lite.scss +3 -0
  73. package/styles/fabric-dark.css +135 -22
  74. package/styles/fabric-dark.scss +4 -0
  75. package/styles/fabric-lite.css +100 -18
  76. package/styles/fabric-lite.scss +3 -0
  77. package/styles/fabric.css +131 -18
  78. package/styles/fabric.scss +4 -0
  79. package/styles/fluent-dark-lite.css +96 -14
  80. package/styles/fluent-dark-lite.scss +3 -0
  81. package/styles/fluent-dark.css +127 -14
  82. package/styles/fluent-dark.scss +4 -0
  83. package/styles/fluent-lite.css +96 -14
  84. package/styles/fluent-lite.scss +3 -0
  85. package/styles/fluent.css +127 -14
  86. package/styles/fluent.scss +4 -0
  87. package/styles/fluent2-lite.css +82 -0
  88. package/styles/fluent2-lite.scss +3 -0
  89. package/styles/fluent2.css +115 -2
  90. package/styles/fluent2.scss +4 -0
  91. package/styles/highcontrast-light-lite.css +81 -0
  92. package/styles/highcontrast-light-lite.scss +3 -0
  93. package/styles/highcontrast-light.css +111 -0
  94. package/styles/highcontrast-light.scss +4 -0
  95. package/styles/highcontrast-lite.css +81 -0
  96. package/styles/highcontrast-lite.scss +3 -0
  97. package/styles/highcontrast.css +111 -0
  98. package/styles/highcontrast.scss +4 -0
  99. package/styles/input/_bootstrap4-definition.scss +8 -6
  100. package/styles/input/_layout.scss +8 -1
  101. package/styles/input/_theme.scss +5 -1
  102. package/styles/input/bootstrap4.css +9 -9
  103. package/styles/input/bootstrap5-dark.css +25 -25
  104. package/styles/input/bootstrap5.css +7 -7
  105. package/styles/input/fabric-dark.css +6 -6
  106. package/styles/input/tailwind-dark.css +2 -2
  107. package/styles/input/tailwind3.css +2 -2
  108. package/styles/maskedtextbox/bootstrap5-dark.css +1 -1
  109. package/styles/material-dark-lite.css +89 -6
  110. package/styles/material-dark-lite.scss +3 -0
  111. package/styles/material-dark.css +121 -6
  112. package/styles/material-dark.scss +4 -0
  113. package/styles/material-lite.css +89 -6
  114. package/styles/material-lite.scss +3 -0
  115. package/styles/material.css +121 -6
  116. package/styles/material.scss +4 -0
  117. package/styles/material3-dark-lite.css +81 -0
  118. package/styles/material3-dark-lite.scss +3 -0
  119. package/styles/material3-dark.css +111 -0
  120. package/styles/material3-dark.scss +4 -0
  121. package/styles/material3-lite.css +81 -0
  122. package/styles/material3-lite.scss +3 -0
  123. package/styles/material3.css +111 -0
  124. package/styles/material3.scss +4 -0
  125. package/styles/otp-input/bootstrap5-dark.css +3 -3
  126. package/styles/rating/bootstrap-dark.css +11 -11
  127. package/styles/rating/bootstrap5-dark.css +5 -5
  128. package/styles/rating/bootstrap5.css +5 -5
  129. package/styles/rating/fabric-dark.css +5 -5
  130. package/styles/rating/fabric.css +12 -12
  131. package/styles/rating/fluent-dark.css +11 -11
  132. package/styles/rating/fluent.css +11 -11
  133. package/styles/rating/tailwind-dark.css +5 -5
  134. package/styles/rating/tailwind.css +5 -5
  135. package/styles/signature/bootstrap5-dark.css +1 -1
  136. package/styles/slider/_bootstrap4-definition.scss +4 -2
  137. package/styles/slider/_fluent2-definition.scss +2 -2
  138. package/styles/slider/_fusionnew-definition.scss +3 -0
  139. package/styles/slider/_layout.scss +4 -2
  140. package/styles/slider/bootstrap4.css +6 -6
  141. package/styles/slider/bootstrap5-dark.css +5 -5
  142. package/styles/slider/bootstrap5.css +5 -5
  143. package/styles/slider/fabric-dark.css +5 -5
  144. package/styles/slider/fabric.css +6 -6
  145. package/styles/slider/fluent-dark.css +3 -3
  146. package/styles/slider/fluent.css +3 -3
  147. package/styles/slider/fluent2.css +2 -2
  148. package/styles/smart-textarea/tailwind-dark.css +1 -1
  149. package/styles/speech-to-text/_all.scss +2 -0
  150. package/styles/speech-to-text/_bds-definition.scss +25 -0
  151. package/styles/speech-to-text/_bigger.scss +45 -0
  152. package/styles/speech-to-text/_bootstrap-dark-definition.scss +24 -0
  153. package/styles/speech-to-text/_bootstrap-definition.scss +24 -0
  154. package/styles/speech-to-text/_bootstrap4-definition.scss +24 -0
  155. package/styles/speech-to-text/_bootstrap5-dark-definition.scss +1 -0
  156. package/styles/speech-to-text/_bootstrap5-definition.scss +24 -0
  157. package/styles/speech-to-text/_bootstrap5.3-definition.scss +24 -0
  158. package/styles/speech-to-text/_fabric-dark-definition.scss +24 -0
  159. package/styles/speech-to-text/_fabric-definition.scss +24 -0
  160. package/styles/speech-to-text/_fluent-dark-definition.scss +1 -0
  161. package/styles/speech-to-text/_fluent-definition.scss +24 -0
  162. package/styles/speech-to-text/_fluent2-definition.scss +25 -0
  163. package/styles/speech-to-text/_fusionnew-definition.scss +24 -0
  164. package/styles/speech-to-text/_highcontrast-definition.scss +24 -0
  165. package/styles/speech-to-text/_highcontrast-light-definition.scss +24 -0
  166. package/styles/speech-to-text/_layout.scss +59 -0
  167. package/styles/speech-to-text/_material-dark-definition.scss +24 -0
  168. package/styles/speech-to-text/_material-definition.scss +24 -0
  169. package/styles/speech-to-text/_material3-dark-definition.scss +1 -0
  170. package/styles/speech-to-text/_material3-definition.scss +24 -0
  171. package/styles/speech-to-text/_tailwind-dark-definition.scss +1 -0
  172. package/styles/speech-to-text/_tailwind-definition.scss +25 -0
  173. package/styles/speech-to-text/_tailwind3-definition.scss +25 -0
  174. package/styles/speech-to-text/_theme.scss +30 -0
  175. package/styles/speech-to-text/bds.css +173 -0
  176. package/styles/speech-to-text/bds.scss +7 -0
  177. package/styles/speech-to-text/bootstrap-dark.css +110 -0
  178. package/styles/speech-to-text/bootstrap-dark.scss +7 -0
  179. package/styles/speech-to-text/bootstrap.css +110 -0
  180. package/styles/speech-to-text/bootstrap.scss +7 -0
  181. package/styles/speech-to-text/bootstrap4.css +106 -0
  182. package/styles/speech-to-text/bootstrap4.scss +7 -0
  183. package/styles/speech-to-text/bootstrap5-dark.css +108 -0
  184. package/styles/speech-to-text/bootstrap5-dark.scss +7 -0
  185. package/styles/speech-to-text/bootstrap5.3.css +112 -0
  186. package/styles/speech-to-text/bootstrap5.3.scss +7 -0
  187. package/styles/speech-to-text/bootstrap5.css +108 -0
  188. package/styles/speech-to-text/bootstrap5.scss +7 -0
  189. package/styles/speech-to-text/fabric-dark.css +112 -0
  190. package/styles/speech-to-text/fabric-dark.scss +7 -0
  191. package/styles/speech-to-text/fabric.css +112 -0
  192. package/styles/speech-to-text/fabric.scss +7 -0
  193. package/styles/speech-to-text/fluent-dark.css +112 -0
  194. package/styles/speech-to-text/fluent-dark.scss +7 -0
  195. package/styles/speech-to-text/fluent.css +112 -0
  196. package/styles/speech-to-text/fluent.scss +7 -0
  197. package/styles/speech-to-text/fluent2.css +118 -0
  198. package/styles/speech-to-text/fluent2.scss +7 -0
  199. package/styles/speech-to-text/highcontrast-light.css +110 -0
  200. package/styles/speech-to-text/highcontrast-light.scss +7 -0
  201. package/styles/speech-to-text/highcontrast.css +110 -0
  202. package/styles/speech-to-text/highcontrast.scss +7 -0
  203. package/styles/speech-to-text/icons/_bds.scss +8 -0
  204. package/styles/speech-to-text/icons/_bootstrap-dark.scss +8 -0
  205. package/styles/speech-to-text/icons/_bootstrap.scss +8 -0
  206. package/styles/speech-to-text/icons/_bootstrap4.scss +8 -0
  207. package/styles/speech-to-text/icons/_bootstrap5-dark.scss +1 -0
  208. package/styles/speech-to-text/icons/_bootstrap5.3.scss +8 -0
  209. package/styles/speech-to-text/icons/_bootstrap5.scss +8 -0
  210. package/styles/speech-to-text/icons/_fabric-dark.scss +8 -0
  211. package/styles/speech-to-text/icons/_fabric.scss +8 -0
  212. package/styles/speech-to-text/icons/_fluent-dark.scss +1 -0
  213. package/styles/speech-to-text/icons/_fluent.scss +8 -0
  214. package/styles/speech-to-text/icons/_fluent2.scss +8 -0
  215. package/styles/speech-to-text/icons/_fusionnew.scss +8 -0
  216. package/styles/speech-to-text/icons/_highcontrast-light.scss +8 -0
  217. package/styles/speech-to-text/icons/_highcontrast.scss +8 -0
  218. package/styles/speech-to-text/icons/_material-dark.scss +8 -0
  219. package/styles/speech-to-text/icons/_material.scss +8 -0
  220. package/styles/speech-to-text/icons/_material3-dark.scss +1 -0
  221. package/styles/speech-to-text/icons/_material3.scss +8 -0
  222. package/styles/speech-to-text/icons/_tailwind-dark.scss +1 -0
  223. package/styles/speech-to-text/icons/_tailwind.scss +8 -0
  224. package/styles/speech-to-text/icons/_tailwind3.scss +8 -0
  225. package/styles/speech-to-text/material-dark.css +114 -0
  226. package/styles/speech-to-text/material-dark.scss +7 -0
  227. package/styles/speech-to-text/material.css +114 -0
  228. package/styles/speech-to-text/material.scss +7 -0
  229. package/styles/speech-to-text/material3-dark.css +112 -0
  230. package/styles/speech-to-text/material3-dark.scss +8 -0
  231. package/styles/speech-to-text/material3.css +114 -0
  232. package/styles/speech-to-text/material3.scss +8 -0
  233. package/styles/speech-to-text/tailwind-dark.css +110 -0
  234. package/styles/speech-to-text/tailwind-dark.scss +7 -0
  235. package/styles/speech-to-text/tailwind.css +110 -0
  236. package/styles/speech-to-text/tailwind.scss +7 -0
  237. package/styles/speech-to-text/tailwind3.css +114 -0
  238. package/styles/speech-to-text/tailwind3.scss +7 -0
  239. package/styles/tailwind-dark-lite.css +93 -12
  240. package/styles/tailwind-dark-lite.scss +3 -0
  241. package/styles/tailwind-dark.css +126 -15
  242. package/styles/tailwind-dark.scss +4 -0
  243. package/styles/tailwind-lite.css +86 -5
  244. package/styles/tailwind-lite.scss +3 -0
  245. package/styles/tailwind.css +116 -5
  246. package/styles/tailwind.scss +4 -0
  247. package/styles/tailwind3-lite.css +83 -2
  248. package/styles/tailwind3-lite.scss +3 -0
  249. package/styles/tailwind3.css +113 -2
  250. package/styles/tailwind3.scss +4 -0
  251. package/styles/uploader/bootstrap5-dark.css +25 -25
  252. package/styles/uploader/tailwind-dark.css +7 -7
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 28.2.11
3
+ * version : 29.1.33
4
4
  * Copyright Syncfusion Inc. 2001 - 2024. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,63 +1,56 @@
1
1
  {
2
- "_from": "@syncfusion/ej2-inputs@*",
3
- "_id": "@syncfusion/ej2-inputs@28.2.9",
2
+ "_from": "@syncfusion/ej2-inputs@~29.1.33",
3
+ "_id": "@syncfusion/ej2-inputs@29.1.33",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-xj35YxvDZhv+PSMY4XF9MgfOoE426xNBXJ4qmK19XbFd4UGthjUb8KJryfaIDnbkRlRusD13j9lPgALJhjpP/g==",
5
+ "_integrity": "sha512-Uxkn8CUwWFFwt5dh6btctMg1fxMl+kmHQJ1EP3GljGUvXXlUCWVAmtasNyGHAQHRZeaFr3jje/eQ9qyO6Ws4dA==",
6
6
  "_location": "/@syncfusion/ej2-inputs",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
9
9
  "type": "range",
10
10
  "registry": true,
11
- "raw": "@syncfusion/ej2-inputs@*",
11
+ "raw": "@syncfusion/ej2-inputs@~29.1.33",
12
12
  "name": "@syncfusion/ej2-inputs",
13
13
  "escapedName": "@syncfusion%2fej2-inputs",
14
14
  "scope": "@syncfusion",
15
- "rawSpec": "*",
15
+ "rawSpec": "~29.1.33",
16
16
  "saveSpec": null,
17
- "fetchSpec": "*"
17
+ "fetchSpec": "~29.1.33"
18
18
  },
19
19
  "_requiredBy": [
20
- "/",
21
- "/@syncfusion/ej2",
22
20
  "/@syncfusion/ej2-angular-inputs",
23
21
  "/@syncfusion/ej2-calendars",
24
22
  "/@syncfusion/ej2-diagrams",
25
- "/@syncfusion/ej2-documenteditor",
26
23
  "/@syncfusion/ej2-dropdowns",
27
24
  "/@syncfusion/ej2-filemanager",
28
25
  "/@syncfusion/ej2-gantt",
29
26
  "/@syncfusion/ej2-grids",
30
- "/@syncfusion/ej2-image-editor",
31
- "/@syncfusion/ej2-inplace-editor",
32
27
  "/@syncfusion/ej2-interactive-chat",
33
- "/@syncfusion/ej2-kanban",
34
28
  "/@syncfusion/ej2-navigations",
35
- "/@syncfusion/ej2-pdfviewer",
36
29
  "/@syncfusion/ej2-pivotview",
37
- "/@syncfusion/ej2-querybuilder",
38
30
  "/@syncfusion/ej2-react-inputs",
39
31
  "/@syncfusion/ej2-richtexteditor",
40
32
  "/@syncfusion/ej2-schedule",
41
33
  "/@syncfusion/ej2-vue-inputs"
42
34
  ],
43
- "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-inputs/-/ej2-inputs-28.2.9.tgz",
44
- "_shasum": "63d5bd57b7fa7f87b3af6b85409292933e501674",
45
- "_spec": "@syncfusion/ej2-inputs@*",
46
- "_where": "/jenkins/workspace/elease-automation_release_28.1.1/packages/included",
35
+ "_resolved": "https://registry.npmjs.org/@syncfusion/ej2-inputs/-/ej2-inputs-29.1.33.tgz",
36
+ "_shasum": "085a23c286ff56ae1bcfe4c5406251e35878dad7",
37
+ "_spec": "@syncfusion/ej2-inputs@~29.1.33",
38
+ "_where": "E:\\march2025\\memory-leaks\\node_modules\\@syncfusion\\ej2-diagrams",
47
39
  "author": {
48
40
  "name": "Syncfusion Inc."
49
41
  },
50
42
  "bundleDependencies": false,
51
43
  "dependencies": {
52
- "@syncfusion/ej2-base": "~28.2.9",
53
- "@syncfusion/ej2-buttons": "~28.2.7",
54
- "@syncfusion/ej2-popups": "~28.2.9",
55
- "@syncfusion/ej2-splitbuttons": "~28.2.3"
44
+ "@syncfusion/ej2-base": "~29.1.33",
45
+ "@syncfusion/ej2-buttons": "~29.1.33",
46
+ "@syncfusion/ej2-popups": "~29.1.33",
47
+ "@syncfusion/ej2-splitbuttons": "~29.1.33"
56
48
  },
57
49
  "deprecated": false,
58
50
  "description": "A package of Essential JS 2 input components such as Textbox, Color-picker, Masked-textbox, Numeric-textbox, Slider, Upload, and Form-validator that is used to get input from the users.",
59
51
  "devDependencies": {},
60
52
  "es2015": "./dist/es6/ej2-inputs.es5.js",
53
+ "homepage": "https://www.syncfusion.com/javascript-ui-controls",
61
54
  "keywords": [
62
55
  "ej2",
63
56
  "syncfusion",
@@ -119,8 +112,7 @@
119
112
  "type": "git",
120
113
  "url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/inputs"
121
114
  },
122
- "typings": "index.d.ts",
123
- "version": "28.2.11",
124
115
  "sideEffects": false,
125
- "homepage": "https://www.syncfusion.com/javascript-ui-controls"
126
- }
116
+ "typings": "index.d.ts",
117
+ "version": "29.1.34"
118
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * speech-to-text
3
+ */
4
+ export * from './src/speech-to-text/index';
@@ -0,0 +1,4 @@
1
+ /**
2
+ * speech-to-text
3
+ */
4
+ export * from './src/speech-to-text/index';
package/src/index.d.ts CHANGED
@@ -15,3 +15,4 @@ export * from './signature/index';
15
15
  export * from './rating/index';
16
16
  export * from './otp-input/index';
17
17
  export * from './common/index';
18
+ export * from './speech-to-text/index';
package/src/index.js CHANGED
@@ -15,3 +15,4 @@ export * from './signature/index';
15
15
  export * from './rating/index';
16
16
  export * from './otp-input/index';
17
17
  export * from './common/index';
18
+ export * from './speech-to-text/index';
@@ -169,6 +169,9 @@ var Rating = /** @class */ (function (_super) {
169
169
  };
170
170
  Rating.prototype.updateResetButton = function () {
171
171
  if (this.allowReset) {
172
+ if (this.resetElement) {
173
+ this.resetElement.blur();
174
+ }
172
175
  var isDisabled = (this.value <= this.min) || this.disabled;
173
176
  this.resetElement.classList[isDisabled ? 'add' : 'remove'](DISABLED);
174
177
  attributes(this.resetElement, { 'tabindex': (isDisabled ? '-1' : '0'), 'aria-hidden': isDisabled.toString() });
@@ -341,7 +341,6 @@ export declare class Slider extends Component<HTMLElement> implements INotifyPro
341
341
  private tooltipFormatInfo;
342
342
  private ticksFormatInfo;
343
343
  private customAriaText;
344
- private noOfDecimals;
345
344
  private tickElementCollection;
346
345
  private limitBarFirst;
347
346
  private limitBarSecond;
@@ -551,7 +550,6 @@ export declare class Slider extends Component<HTMLElement> implements INotifyPro
551
550
  private formatNumber;
552
551
  private numberOfDecimals;
553
552
  private makeRoundNumber;
554
- private fractionalToInteger;
555
553
  /**
556
554
  * To Initialize the control rendering
557
555
  *
@@ -131,6 +131,7 @@ var TooltipData = /** @class */ (function (_super) {
131
131
  export { TooltipData };
132
132
  var bootstrapTooltipOffset = 6;
133
133
  var bootstrap4TooltipOffset = 3;
134
+ var tolerance = 1e-10;
134
135
  var classNames = {
135
136
  root: 'e-slider',
136
137
  rtl: 'e-rtl',
@@ -293,15 +294,6 @@ var Slider = /** @class */ (function (_super) {
293
294
  var decimals = precision || 0;
294
295
  return Number(value.toFixed(decimals));
295
296
  };
296
- Slider.prototype.fractionalToInteger = function (value) {
297
- value = (this.numberOfDecimals(value) === 0) ? Number(value).toFixed(this.noOfDecimals) : value;
298
- var tens = 1;
299
- for (var i = 0; i < this.noOfDecimals; i++) {
300
- tens *= 10;
301
- }
302
- value = Number((value * tens).toFixed(0));
303
- return value;
304
- };
305
297
  /**
306
298
  * To Initialize the control rendering
307
299
  *
@@ -1105,7 +1097,6 @@ var Slider = /** @class */ (function (_super) {
1105
1097
  };
1106
1098
  Slider.prototype.renderScale = function () {
1107
1099
  var orien = this.orientation === 'Vertical' ? 'v' : 'h';
1108
- this.noOfDecimals = this.numberOfDecimals(this.step);
1109
1100
  this.ul = this.createElement('ul', {
1110
1101
  className: classNames.scale + ' ' + 'e-' + orien + '-scale ' + classNames.tick + '-' + this.ticks.placement.toLowerCase(),
1111
1102
  attrs: { role: 'presentation', 'aria-hidden': 'true' }
@@ -1126,9 +1117,9 @@ var Slider = /** @class */ (function (_super) {
1126
1117
  else if (smallStep <= 0) {
1127
1118
  smallStep = parseFloat(formatUnit(this.step));
1128
1119
  }
1129
- var min = this.fractionalToInteger(this.min);
1130
- var max = this.fractionalToInteger(this.max);
1131
- var steps = this.fractionalToInteger(smallStep);
1120
+ var min = parseFloat(formatUnit(this.min));
1121
+ var max = parseFloat(formatUnit(this.max));
1122
+ var steps = parseFloat(formatUnit(smallStep));
1132
1123
  var bigNum = !isNullOrUndefined(this.customValues) && this.customValues.length > 0 && this.customValues.length - 1;
1133
1124
  var customStep = this.customTickCounter(bigNum);
1134
1125
  var count = !isNullOrUndefined(this.customValues) && this.customValues.length > 0 ?
@@ -1172,20 +1163,24 @@ var Slider = /** @class */ (function (_super) {
1172
1163
  if (this.numberOfDecimals(this.max) === 0 && this.numberOfDecimals(this.min) === 0 &&
1173
1164
  this.numberOfDecimals(this.step) === 0) {
1174
1165
  if (orien === 'h') {
1175
- islargeTick = ((start - parseFloat(this.min.toString())) % this.ticks.largeStep === 0) ? true : false;
1166
+ var reminder = (start - parseFloat(this.min.toString())) % this.ticks.largeStep;
1167
+ islargeTick = (Math.abs(reminder) < tolerance || Math.abs(this.ticks.largeStep - reminder) < tolerance);
1176
1168
  }
1177
1169
  else {
1178
- islargeTick = (Math.abs(start - parseFloat(this.max.toString())) % this.ticks.largeStep === 0) ? true : false;
1170
+ var reminder = Math.abs(start - parseFloat(this.max.toString())) % this.ticks.largeStep;
1171
+ islargeTick = (Math.abs(reminder) < tolerance || Math.abs(this.ticks.largeStep - reminder) < tolerance);
1179
1172
  }
1180
1173
  }
1181
1174
  else {
1182
- var largestep = this.fractionalToInteger(this.ticks.largeStep);
1183
- var startValue = this.fractionalToInteger(start);
1175
+ var largestep = this.ticks.largeStep;
1176
+ var startValue = start;
1184
1177
  if (orien === 'h') {
1185
- islargeTick = ((startValue - min) % largestep === 0) ? true : false;
1178
+ var reminder = ((startValue - min) % largestep);
1179
+ islargeTick = Math.abs(reminder) < tolerance || Math.abs(largestep - reminder) < tolerance;
1186
1180
  }
1187
1181
  else {
1188
- islargeTick = (Math.abs(startValue - parseFloat(max.toString())) % largestep === 0) ? true : false;
1182
+ var reminder = Math.abs(startValue - parseFloat(max.toString())) % largestep;
1183
+ islargeTick = Math.abs(reminder) < tolerance || Math.abs(largestep - reminder) < tolerance;
1189
1184
  }
1190
1185
  }
1191
1186
  }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Speech To Text
3
+ */
4
+ export * from './speech-to-text';
5
+ export * from './speech-to-text-model';
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Speech To Text
3
+ */
4
+ export * from './speech-to-text';
@@ -0,0 +1,270 @@
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
+ * Tooltips provide 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
+ }