@syncfusion/ej2-vue-inputs 28.2.11 → 29.1.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -1
- package/dist/ej2-vue-inputs.umd.min.js +2 -2
- package/dist/ej2-vue-inputs.umd.min.js.map +1 -1
- package/dist/es6/ej2-vue-inputs.es2015.js +154 -2
- package/dist/es6/ej2-vue-inputs.es2015.js.map +1 -1
- package/dist/es6/ej2-vue-inputs.es5.js +158 -2
- package/dist/es6/ej2-vue-inputs.es5.js.map +1 -1
- package/package.json +9 -9
- package/speech-to-text.d.ts +4 -0
- package/speech-to-text.js +4 -0
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
- package/src/speech-to-text/index.d.ts +1 -0
- package/src/speech-to-text/index.js +1 -0
- package/src/speech-to-text/speechtotext.component.d.ts +37 -0
- package/src/speech-to-text/speechtotext.component.js +159 -0
- package/styles/bds.scss +1 -0
- package/styles/bootstrap-dark.scss +1 -0
- package/styles/bootstrap.scss +1 -0
- package/styles/bootstrap4.scss +1 -0
- package/styles/bootstrap5-dark.scss +1 -0
- package/styles/bootstrap5.3.scss +1 -0
- package/styles/bootstrap5.scss +1 -0
- package/styles/fabric-dark.scss +1 -0
- package/styles/fabric.scss +1 -0
- package/styles/fluent-dark.scss +1 -0
- package/styles/fluent.scss +1 -0
- package/styles/fluent2.scss +1 -0
- package/styles/highcontrast-light.scss +1 -0
- package/styles/highcontrast.scss +1 -0
- package/styles/material-dark.scss +1 -0
- package/styles/material.scss +1 -0
- package/styles/material3-dark.scss +1 -0
- package/styles/material3.scss +1 -0
- package/styles/speech-to-text/bds.css +1 -0
- package/styles/speech-to-text/bds.scss +1 -0
- package/styles/speech-to-text/bootstrap-dark.css +1 -0
- package/styles/speech-to-text/bootstrap-dark.scss +1 -0
- package/styles/speech-to-text/bootstrap.css +1 -0
- package/styles/speech-to-text/bootstrap.scss +1 -0
- package/styles/speech-to-text/bootstrap4.css +1 -0
- package/styles/speech-to-text/bootstrap4.scss +1 -0
- package/styles/speech-to-text/bootstrap5-dark.css +1 -0
- package/styles/speech-to-text/bootstrap5-dark.scss +1 -0
- package/styles/speech-to-text/bootstrap5.3.css +1 -0
- package/styles/speech-to-text/bootstrap5.3.scss +1 -0
- package/styles/speech-to-text/bootstrap5.css +1 -0
- package/styles/speech-to-text/bootstrap5.scss +1 -0
- package/styles/speech-to-text/fabric-dark.css +1 -0
- package/styles/speech-to-text/fabric-dark.scss +1 -0
- package/styles/speech-to-text/fabric.css +1 -0
- package/styles/speech-to-text/fabric.scss +1 -0
- package/styles/speech-to-text/fluent-dark.css +1 -0
- package/styles/speech-to-text/fluent-dark.scss +1 -0
- package/styles/speech-to-text/fluent.css +1 -0
- package/styles/speech-to-text/fluent.scss +1 -0
- package/styles/speech-to-text/fluent2.css +1 -0
- package/styles/speech-to-text/fluent2.scss +1 -0
- package/styles/speech-to-text/highcontrast-light.css +1 -0
- package/styles/speech-to-text/highcontrast-light.scss +1 -0
- package/styles/speech-to-text/highcontrast.css +1 -0
- package/styles/speech-to-text/highcontrast.scss +1 -0
- package/styles/speech-to-text/material-dark.css +1 -0
- package/styles/speech-to-text/material-dark.scss +1 -0
- package/styles/speech-to-text/material.css +1 -0
- package/styles/speech-to-text/material.scss +1 -0
- package/styles/speech-to-text/material3-dark.css +1 -0
- package/styles/speech-to-text/material3-dark.scss +2 -0
- package/styles/speech-to-text/material3.css +1 -0
- package/styles/speech-to-text/material3.scss +2 -0
- package/styles/speech-to-text/tailwind-dark.css +1 -0
- package/styles/speech-to-text/tailwind-dark.scss +1 -0
- package/styles/speech-to-text/tailwind.css +1 -0
- package/styles/speech-to-text/tailwind.scss +1 -0
- package/styles/speech-to-text/tailwind3.css +1 -0
- package/styles/speech-to-text/tailwind3.scss +1 -0
- package/styles/tailwind-dark.scss +1 -0
- package/styles/tailwind.scss +1 -0
- 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';
|
|
@@ -1751,5 +1751,157 @@ const SmartTextAreaPlugin = {
|
|
|
1751
1751
|
}
|
|
1752
1752
|
};
|
|
1753
1753
|
|
|
1754
|
-
|
|
1754
|
+
const properties$b = ['isLazyUpdate', 'plugins', 'allowInterimResults', 'buttonSettings', 'cssClass', 'disabled', 'enablePersistence', 'enableRtl', 'htmlAttributes', 'lang', 'listeningState', 'locale', 'showTooltip', 'tooltipSettings', 'transcript', 'created', 'onError', 'onStart', 'onStop', 'transcriptChanged'];
|
|
1755
|
+
const modelProps$b = ['transcript'];
|
|
1756
|
+
const testProp$b = getProps({ props: properties$b });
|
|
1757
|
+
const props$b = testProp$b[0], watch$b = testProp$b[1], emitProbs$b = Object.keys(watch$b);
|
|
1758
|
+
emitProbs$b.push('modelchanged', 'update:modelValue');
|
|
1759
|
+
for (let props of modelProps$b) {
|
|
1760
|
+
emitProbs$b.push('update:' + props);
|
|
1761
|
+
}
|
|
1762
|
+
/**
|
|
1763
|
+
* Represents the Essential JS 2 VueJS SpeechToText Component
|
|
1764
|
+
* ```html
|
|
1765
|
+
* <ejs-speechtotext></ejs-speechtotext>
|
|
1766
|
+
* ```
|
|
1767
|
+
*/
|
|
1768
|
+
let SpeechToTextComponent = vueDefineComponent({
|
|
1769
|
+
name: 'SpeechToTextComponent',
|
|
1770
|
+
mixins: [ComponentBase],
|
|
1771
|
+
props: props$b,
|
|
1772
|
+
watch: watch$b,
|
|
1773
|
+
emits: emitProbs$b,
|
|
1774
|
+
model: { event: 'modelchanged' },
|
|
1775
|
+
provide() { return { custom: this.custom }; },
|
|
1776
|
+
data() {
|
|
1777
|
+
return {
|
|
1778
|
+
ej2Instances: new SpeechToText({}),
|
|
1779
|
+
propKeys: properties$b,
|
|
1780
|
+
models: modelProps$b,
|
|
1781
|
+
hasChildDirective: false,
|
|
1782
|
+
hasInjectedModules: false,
|
|
1783
|
+
tagMapper: {},
|
|
1784
|
+
tagNameMapper: {},
|
|
1785
|
+
isVue3: !isExecute,
|
|
1786
|
+
templateCollection: {},
|
|
1787
|
+
};
|
|
1788
|
+
},
|
|
1789
|
+
created() {
|
|
1790
|
+
this.ej2Instances._trigger = this.ej2Instances.trigger;
|
|
1791
|
+
this.ej2Instances.trigger = this.trigger;
|
|
1792
|
+
this.bindProperties();
|
|
1793
|
+
this.ej2Instances._setProperties = this.ej2Instances.setProperties;
|
|
1794
|
+
this.ej2Instances.setProperties = this.setProperties;
|
|
1795
|
+
this.ej2Instances.clearTemplate = this.clearTemplate;
|
|
1796
|
+
this.updated = this.updated;
|
|
1797
|
+
},
|
|
1798
|
+
render(createElement) {
|
|
1799
|
+
let h = !isExecute ? gh : createElement;
|
|
1800
|
+
let slots = null;
|
|
1801
|
+
if (!isNullOrUndefined(this.$slots.default)) {
|
|
1802
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
1803
|
+
}
|
|
1804
|
+
return h('button', slots);
|
|
1805
|
+
},
|
|
1806
|
+
methods: {
|
|
1807
|
+
clearTemplate(templateNames) {
|
|
1808
|
+
if (!templateNames) {
|
|
1809
|
+
templateNames = Object.keys(this.templateCollection || {});
|
|
1810
|
+
}
|
|
1811
|
+
if (templateNames.length && this.templateCollection) {
|
|
1812
|
+
for (let tempName of templateNames) {
|
|
1813
|
+
let elementCollection = this.templateCollection[tempName];
|
|
1814
|
+
if (elementCollection && elementCollection.length) {
|
|
1815
|
+
for (let ele of elementCollection) {
|
|
1816
|
+
this.destroyPortals(ele);
|
|
1817
|
+
}
|
|
1818
|
+
delete this.templateCollection[tempName];
|
|
1819
|
+
}
|
|
1820
|
+
}
|
|
1821
|
+
}
|
|
1822
|
+
},
|
|
1823
|
+
setProperties(prop, muteOnChange) {
|
|
1824
|
+
if (this.isVue3) {
|
|
1825
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
1826
|
+
}
|
|
1827
|
+
if (this.ej2Instances && this.ej2Instances._setProperties) {
|
|
1828
|
+
this.ej2Instances._setProperties(prop, muteOnChange);
|
|
1829
|
+
}
|
|
1830
|
+
if (prop && this.models && this.models.length) {
|
|
1831
|
+
Object.keys(prop).map((key) => {
|
|
1832
|
+
this.models.map((model) => {
|
|
1833
|
+
if ((key === model) && !(/datasource/i.test(key))) {
|
|
1834
|
+
if (this.isVue3) {
|
|
1835
|
+
this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
|
|
1836
|
+
}
|
|
1837
|
+
else {
|
|
1838
|
+
this.$emit('update:' + key, prop[key]);
|
|
1839
|
+
this.$emit('modelchanged', prop[key]);
|
|
1840
|
+
}
|
|
1841
|
+
}
|
|
1842
|
+
});
|
|
1843
|
+
});
|
|
1844
|
+
}
|
|
1845
|
+
},
|
|
1846
|
+
trigger(eventName, eventProp, successHandler) {
|
|
1847
|
+
if (!isExecute) {
|
|
1848
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
1849
|
+
}
|
|
1850
|
+
if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
|
|
1851
|
+
let key = this.models.toString().match(/checked|value/) || [];
|
|
1852
|
+
let propKey = key[0];
|
|
1853
|
+
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
1854
|
+
if (!isExecute) {
|
|
1855
|
+
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
1856
|
+
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
1857
|
+
this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
|
|
1858
|
+
}
|
|
1859
|
+
else {
|
|
1860
|
+
if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
|
|
1861
|
+
this.$emit('update:' + propKey, eventProp[propKey]);
|
|
1862
|
+
this.$emit('modelchanged', eventProp[propKey]);
|
|
1863
|
+
}
|
|
1864
|
+
}
|
|
1865
|
+
}
|
|
1866
|
+
}
|
|
1867
|
+
else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
|
|
1868
|
+
let key = this.models.toString().match(/currentView|selectedDate/) || [];
|
|
1869
|
+
let propKey = key[0];
|
|
1870
|
+
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
1871
|
+
if (!isExecute) {
|
|
1872
|
+
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
1873
|
+
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
1874
|
+
}
|
|
1875
|
+
else {
|
|
1876
|
+
this.$emit('update:' + propKey, eventProp[propKey]);
|
|
1877
|
+
this.$emit('modelchanged', eventProp[propKey]);
|
|
1878
|
+
}
|
|
1879
|
+
}
|
|
1880
|
+
}
|
|
1881
|
+
if ((this.ej2Instances && this.ej2Instances._trigger)) {
|
|
1882
|
+
this.ej2Instances._trigger(eventName, eventProp, successHandler);
|
|
1883
|
+
}
|
|
1884
|
+
},
|
|
1885
|
+
custom() {
|
|
1886
|
+
this.updated();
|
|
1887
|
+
},
|
|
1888
|
+
destroy() {
|
|
1889
|
+
return this.ej2Instances.destroy();
|
|
1890
|
+
},
|
|
1891
|
+
startListening() {
|
|
1892
|
+
return this.ej2Instances.startListening();
|
|
1893
|
+
},
|
|
1894
|
+
stopListening() {
|
|
1895
|
+
return this.ej2Instances.stopListening();
|
|
1896
|
+
},
|
|
1897
|
+
}
|
|
1898
|
+
});
|
|
1899
|
+
const SpeechToTextPlugin = {
|
|
1900
|
+
name: 'ejs-speechtotext',
|
|
1901
|
+
install(Vue) {
|
|
1902
|
+
Vue.component(SpeechToTextPlugin.name, SpeechToTextComponent);
|
|
1903
|
+
}
|
|
1904
|
+
};
|
|
1905
|
+
|
|
1906
|
+
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 };
|
|
1755
1907
|
//# sourceMappingURL=ej2-vue-inputs.es2015.js.map
|