@syncfusion/ej2-vue-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 (79) hide show
  1. package/README.md +27 -1
  2. package/dist/ej2-vue-inputs.umd.min.js +2 -2
  3. package/dist/ej2-vue-inputs.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-vue-inputs.es2015.js +154 -2
  5. package/dist/es6/ej2-vue-inputs.es2015.js.map +1 -1
  6. package/dist/es6/ej2-vue-inputs.es5.js +158 -2
  7. package/dist/es6/ej2-vue-inputs.es5.js.map +1 -1
  8. package/package.json +11 -11
  9. package/speech-to-text.d.ts +4 -0
  10. package/speech-to-text.js +4 -0
  11. package/src/index.d.ts +1 -0
  12. package/src/index.js +1 -0
  13. package/src/speech-to-text/index.d.ts +1 -0
  14. package/src/speech-to-text/index.js +1 -0
  15. package/src/speech-to-text/speechtotext.component.d.ts +37 -0
  16. package/src/speech-to-text/speechtotext.component.js +159 -0
  17. package/styles/bds.scss +1 -0
  18. package/styles/bootstrap-dark.scss +1 -0
  19. package/styles/bootstrap.scss +1 -0
  20. package/styles/bootstrap4.scss +1 -0
  21. package/styles/bootstrap5-dark.scss +1 -0
  22. package/styles/bootstrap5.3.scss +1 -0
  23. package/styles/bootstrap5.scss +1 -0
  24. package/styles/fabric-dark.scss +1 -0
  25. package/styles/fabric.scss +1 -0
  26. package/styles/fluent-dark.scss +1 -0
  27. package/styles/fluent.scss +1 -0
  28. package/styles/fluent2.scss +1 -0
  29. package/styles/highcontrast-light.scss +1 -0
  30. package/styles/highcontrast.scss +1 -0
  31. package/styles/material-dark.scss +1 -0
  32. package/styles/material.scss +1 -0
  33. package/styles/material3-dark.scss +1 -0
  34. package/styles/material3.scss +1 -0
  35. package/styles/speech-to-text/bds.css +1 -0
  36. package/styles/speech-to-text/bds.scss +1 -0
  37. package/styles/speech-to-text/bootstrap-dark.css +1 -0
  38. package/styles/speech-to-text/bootstrap-dark.scss +1 -0
  39. package/styles/speech-to-text/bootstrap.css +1 -0
  40. package/styles/speech-to-text/bootstrap.scss +1 -0
  41. package/styles/speech-to-text/bootstrap4.css +1 -0
  42. package/styles/speech-to-text/bootstrap4.scss +1 -0
  43. package/styles/speech-to-text/bootstrap5-dark.css +1 -0
  44. package/styles/speech-to-text/bootstrap5-dark.scss +1 -0
  45. package/styles/speech-to-text/bootstrap5.3.css +1 -0
  46. package/styles/speech-to-text/bootstrap5.3.scss +1 -0
  47. package/styles/speech-to-text/bootstrap5.css +1 -0
  48. package/styles/speech-to-text/bootstrap5.scss +1 -0
  49. package/styles/speech-to-text/fabric-dark.css +1 -0
  50. package/styles/speech-to-text/fabric-dark.scss +1 -0
  51. package/styles/speech-to-text/fabric.css +1 -0
  52. package/styles/speech-to-text/fabric.scss +1 -0
  53. package/styles/speech-to-text/fluent-dark.css +1 -0
  54. package/styles/speech-to-text/fluent-dark.scss +1 -0
  55. package/styles/speech-to-text/fluent.css +1 -0
  56. package/styles/speech-to-text/fluent.scss +1 -0
  57. package/styles/speech-to-text/fluent2.css +1 -0
  58. package/styles/speech-to-text/fluent2.scss +1 -0
  59. package/styles/speech-to-text/highcontrast-light.css +1 -0
  60. package/styles/speech-to-text/highcontrast-light.scss +1 -0
  61. package/styles/speech-to-text/highcontrast.css +1 -0
  62. package/styles/speech-to-text/highcontrast.scss +1 -0
  63. package/styles/speech-to-text/material-dark.css +1 -0
  64. package/styles/speech-to-text/material-dark.scss +1 -0
  65. package/styles/speech-to-text/material.css +1 -0
  66. package/styles/speech-to-text/material.scss +1 -0
  67. package/styles/speech-to-text/material3-dark.css +1 -0
  68. package/styles/speech-to-text/material3-dark.scss +2 -0
  69. package/styles/speech-to-text/material3.css +1 -0
  70. package/styles/speech-to-text/material3.scss +2 -0
  71. package/styles/speech-to-text/tailwind-dark.css +1 -0
  72. package/styles/speech-to-text/tailwind-dark.scss +1 -0
  73. package/styles/speech-to-text/tailwind.css +1 -0
  74. package/styles/speech-to-text/tailwind.scss +1 -0
  75. package/styles/speech-to-text/tailwind3.css +1 -0
  76. package/styles/speech-to-text/tailwind3.scss +1 -0
  77. package/styles/tailwind-dark.scss +1 -0
  78. package/styles/tailwind.scss +1 -0
  79. package/styles/tailwind3.scss +1 -0
@@ -1,4 +1,4 @@
1
- import { TextBox, TextArea, NumericTextBox, MaskedTextBox, Slider, Uploader, ColorPicker, Signature, Rating, OtpInput, SmartTextArea } from '@syncfusion/ej2-inputs';
1
+ import { TextBox, TextArea, NumericTextBox, MaskedTextBox, Slider, Uploader, ColorPicker, Signature, Rating, OtpInput, SmartTextArea, SpeechToText } from '@syncfusion/ej2-inputs';
2
2
  export * from '@syncfusion/ej2-inputs';
3
3
  import { getProps, vueDefineComponent, ComponentBase, isExecute, gh } from '@syncfusion/ej2-vue-base';
4
4
  import { isNullOrUndefined, isUndefined } from '@syncfusion/ej2-base';
@@ -1795,5 +1795,161 @@ var SmartTextAreaPlugin = {
1795
1795
  }
1796
1796
  };
1797
1797
 
1798
- export { ColorPickerComponent, ColorPickerPlugin, FilesDirective, FilesPlugin, MaskedTextBoxComponent, MaskedTextBoxPlugin, NumericTextBoxComponent, NumericTextBoxPlugin, OtpInputComponent, OtpInputPlugin, RatingComponent, RatingPlugin, SignatureComponent, SignaturePlugin, SliderComponent, SliderPlugin, SmartTextAreaComponent, SmartTextAreaPlugin, TextAreaComponent, TextAreaPlugin, TextBoxComponent, TextBoxPlugin, UploadedFilesDirective, UploadedFilesPlugin, UploaderComponent, UploaderPlugin };
1798
+ var properties$b = ['isLazyUpdate', 'plugins', 'allowInterimResults', 'buttonSettings', 'cssClass', 'disabled', 'enablePersistence', 'enableRtl', 'htmlAttributes', 'lang', 'listeningState', 'locale', 'showTooltip', 'tooltipSettings', 'transcript', 'created', 'onError', 'onStart', 'onStop', 'transcriptChanged'];
1799
+ var modelProps$b = ['transcript'];
1800
+ var testProp$b = getProps({ props: properties$b });
1801
+ var props$b = testProp$b[0], watch$b = testProp$b[1], emitProbs$b = Object.keys(watch$b);
1802
+ emitProbs$b.push('modelchanged', 'update:modelValue');
1803
+ for (var _i$b = 0, modelProps_1$b = modelProps$b; _i$b < modelProps_1$b.length; _i$b++) {
1804
+ var props_1$b = modelProps_1$b[_i$b];
1805
+ emitProbs$b.push('update:' + props_1$b);
1806
+ }
1807
+ /**
1808
+ * Represents the Essential JS 2 VueJS SpeechToText Component
1809
+ * ```html
1810
+ * <ejs-speechtotext></ejs-speechtotext>
1811
+ * ```
1812
+ */
1813
+ var SpeechToTextComponent = vueDefineComponent({
1814
+ name: 'SpeechToTextComponent',
1815
+ mixins: [ComponentBase],
1816
+ props: props$b,
1817
+ watch: watch$b,
1818
+ emits: emitProbs$b,
1819
+ model: { event: 'modelchanged' },
1820
+ provide: function () { return { custom: this.custom }; },
1821
+ data: function () {
1822
+ return {
1823
+ ej2Instances: new SpeechToText({}),
1824
+ propKeys: properties$b,
1825
+ models: modelProps$b,
1826
+ hasChildDirective: false,
1827
+ hasInjectedModules: false,
1828
+ tagMapper: {},
1829
+ tagNameMapper: {},
1830
+ isVue3: !isExecute,
1831
+ templateCollection: {},
1832
+ };
1833
+ },
1834
+ created: function () {
1835
+ this.ej2Instances._trigger = this.ej2Instances.trigger;
1836
+ this.ej2Instances.trigger = this.trigger;
1837
+ this.bindProperties();
1838
+ this.ej2Instances._setProperties = this.ej2Instances.setProperties;
1839
+ this.ej2Instances.setProperties = this.setProperties;
1840
+ this.ej2Instances.clearTemplate = this.clearTemplate;
1841
+ this.updated = this.updated;
1842
+ },
1843
+ render: function (createElement) {
1844
+ var h = !isExecute ? gh : createElement;
1845
+ var slots = null;
1846
+ if (!isNullOrUndefined(this.$slots.default)) {
1847
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
1848
+ }
1849
+ return h('button', slots);
1850
+ },
1851
+ methods: {
1852
+ clearTemplate: function (templateNames) {
1853
+ if (!templateNames) {
1854
+ templateNames = Object.keys(this.templateCollection || {});
1855
+ }
1856
+ if (templateNames.length && this.templateCollection) {
1857
+ for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
1858
+ var tempName = templateNames_1[_i];
1859
+ var elementCollection = this.templateCollection[tempName];
1860
+ if (elementCollection && elementCollection.length) {
1861
+ for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
1862
+ var ele = elementCollection_1[_a];
1863
+ this.destroyPortals(ele);
1864
+ }
1865
+ delete this.templateCollection[tempName];
1866
+ }
1867
+ }
1868
+ }
1869
+ },
1870
+ setProperties: function (prop, muteOnChange) {
1871
+ var _this = this;
1872
+ if (this.isVue3) {
1873
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
1874
+ }
1875
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
1876
+ this.ej2Instances._setProperties(prop, muteOnChange);
1877
+ }
1878
+ if (prop && this.models && this.models.length) {
1879
+ Object.keys(prop).map(function (key) {
1880
+ _this.models.map(function (model) {
1881
+ if ((key === model) && !(/datasource/i.test(key))) {
1882
+ if (_this.isVue3) {
1883
+ _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
1884
+ }
1885
+ else {
1886
+ _this.$emit('update:' + key, prop[key]);
1887
+ _this.$emit('modelchanged', prop[key]);
1888
+ }
1889
+ }
1890
+ });
1891
+ });
1892
+ }
1893
+ },
1894
+ trigger: function (eventName, eventProp, successHandler) {
1895
+ if (!isExecute) {
1896
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
1897
+ }
1898
+ if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
1899
+ var key = this.models.toString().match(/checked|value/) || [];
1900
+ var propKey = key[0];
1901
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
1902
+ if (!isExecute) {
1903
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
1904
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
1905
+ this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
1906
+ }
1907
+ else {
1908
+ if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
1909
+ this.$emit('update:' + propKey, eventProp[propKey]);
1910
+ this.$emit('modelchanged', eventProp[propKey]);
1911
+ }
1912
+ }
1913
+ }
1914
+ }
1915
+ else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
1916
+ var key = this.models.toString().match(/currentView|selectedDate/) || [];
1917
+ var propKey = key[0];
1918
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
1919
+ if (!isExecute) {
1920
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
1921
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
1922
+ }
1923
+ else {
1924
+ this.$emit('update:' + propKey, eventProp[propKey]);
1925
+ this.$emit('modelchanged', eventProp[propKey]);
1926
+ }
1927
+ }
1928
+ }
1929
+ if ((this.ej2Instances && this.ej2Instances._trigger)) {
1930
+ this.ej2Instances._trigger(eventName, eventProp, successHandler);
1931
+ }
1932
+ },
1933
+ custom: function () {
1934
+ this.updated();
1935
+ },
1936
+ destroy: function () {
1937
+ return this.ej2Instances.destroy();
1938
+ },
1939
+ startListening: function () {
1940
+ return this.ej2Instances.startListening();
1941
+ },
1942
+ stopListening: function () {
1943
+ return this.ej2Instances.stopListening();
1944
+ },
1945
+ }
1946
+ });
1947
+ var SpeechToTextPlugin = {
1948
+ name: 'ejs-speechtotext',
1949
+ install: function (Vue) {
1950
+ Vue.component(SpeechToTextPlugin.name, SpeechToTextComponent);
1951
+ }
1952
+ };
1953
+
1954
+ export { ColorPickerComponent, ColorPickerPlugin, FilesDirective, FilesPlugin, MaskedTextBoxComponent, MaskedTextBoxPlugin, NumericTextBoxComponent, NumericTextBoxPlugin, OtpInputComponent, OtpInputPlugin, RatingComponent, RatingPlugin, SignatureComponent, SignaturePlugin, SliderComponent, SliderPlugin, SmartTextAreaComponent, SmartTextAreaPlugin, SpeechToTextComponent, SpeechToTextPlugin, TextAreaComponent, TextAreaPlugin, TextBoxComponent, TextBoxPlugin, UploadedFilesDirective, UploadedFilesPlugin, UploaderComponent, UploaderPlugin };
1799
1955
  //# sourceMappingURL=ej2-vue-inputs.es5.js.map