UNPKG

devextreme-vue

Version:

DevExtreme UI and Visualization Components for Vue

145 lines (143 loc) 5.07 kB
/*! * devextreme-vue * Version: 25.2.7 * Build date: Tue May 05 2026 * * Copyright (c) 2012 - 2026 Developer Express Inc. ALL RIGHTS RESERVED * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file in the root of the project for details. * * https://github.com/DevExpress/DevExtreme */ "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.DxSpeechRecognitionConfig = exports.DxCustomSpeechRecognizer = exports.DxSpeechToText = void 0; const vue_1 = require("vue"); const index_1 = require("./core/index"); const speech_to_text_1 = __importDefault(require("devextreme/ui/speech_to_text")); const index_2 = require("./core/index"); const componentConfig = { props: { accessKey: String, activeStateEnabled: Boolean, customSpeechRecognizer: Object, disabled: Boolean, elementAttr: Object, focusStateEnabled: Boolean, height: [Number, String], hint: String, hoverStateEnabled: Boolean, onContentReady: Function, onDisposing: Function, onEnd: Function, onError: Function, onInitialized: Function, onOptionChanged: Function, onResult: Function, onStartClick: Function, onStopClick: Function, rtlEnabled: Boolean, speechRecognitionConfig: Object, startIcon: String, startText: String, stopIcon: String, stopText: String, stylingMode: String, tabIndex: Number, type: String, visible: Boolean, width: [Number, String] }, emits: { "update:isActive": null, "update:hoveredElement": null, "update:accessKey": null, "update:activeStateEnabled": null, "update:customSpeechRecognizer": null, "update:disabled": null, "update:elementAttr": null, "update:focusStateEnabled": null, "update:height": null, "update:hint": null, "update:hoverStateEnabled": null, "update:onContentReady": null, "update:onDisposing": null, "update:onEnd": null, "update:onError": null, "update:onInitialized": null, "update:onOptionChanged": null, "update:onResult": null, "update:onStartClick": null, "update:onStopClick": null, "update:rtlEnabled": null, "update:speechRecognitionConfig": null, "update:startIcon": null, "update:startText": null, "update:stopIcon": null, "update:stopText": null, "update:stylingMode": null, "update:tabIndex": null, "update:type": null, "update:visible": null, "update:width": null, }, computed: { instance() { return this.$_instance; } }, beforeCreate() { this.$_WidgetClass = speech_to_text_1.default; this.$_hasAsyncTemplate = true; this.$_expectedChildren = { customSpeechRecognizer: { isCollectionItem: false, optionName: "customSpeechRecognizer" }, speechRecognitionConfig: { isCollectionItem: false, optionName: "speechRecognitionConfig" } }; } }; (0, index_1.prepareComponentConfig)(componentConfig); const DxSpeechToText = (0, vue_1.defineComponent)(componentConfig); exports.DxSpeechToText = DxSpeechToText; const DxCustomSpeechRecognizerConfig = { emits: { "update:isActive": null, "update:hoveredElement": null, "update:enabled": null, "update:isListening": null, }, props: { enabled: Boolean, isListening: Boolean } }; (0, index_2.prepareConfigurationComponentConfig)(DxCustomSpeechRecognizerConfig); const DxCustomSpeechRecognizer = (0, vue_1.defineComponent)(DxCustomSpeechRecognizerConfig); exports.DxCustomSpeechRecognizer = DxCustomSpeechRecognizer; DxCustomSpeechRecognizer.$_optionName = "customSpeechRecognizer"; const DxSpeechRecognitionConfigConfig = { emits: { "update:isActive": null, "update:hoveredElement": null, "update:continuous": null, "update:grammars": null, "update:interimResults": null, "update:lang": null, "update:maxAlternatives": null, }, props: { continuous: Boolean, grammars: Array, interimResults: Boolean, lang: String, maxAlternatives: Number } }; (0, index_2.prepareConfigurationComponentConfig)(DxSpeechRecognitionConfigConfig); const DxSpeechRecognitionConfig = (0, vue_1.defineComponent)(DxSpeechRecognitionConfigConfig); exports.DxSpeechRecognitionConfig = DxSpeechRecognitionConfig; DxSpeechRecognitionConfig.$_optionName = "speechRecognitionConfig"; exports.default = DxSpeechToText;