reneco-advanced-input-module 0.0.2 → 0.0.4
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/dist/cjs/app-globals-V2Kpy_OQ.js +8 -0
- package/dist/cjs/app-globals-V2Kpy_OQ.js.map +1 -0
- package/dist/cjs/index-BTSzTkSZ.js +1494 -0
- package/dist/cjs/index-BTSzTkSZ.js.map +1 -0
- package/dist/cjs/index.cjs.js +5 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +16 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/ocr-file-uploader.voice-input-module.entry.cjs.js.map +1 -0
- package/dist/cjs/ocr-file-uploader_2.cjs.entry.js +4486 -0
- package/dist/cjs/ocr-file-uploader_2.cjs.entry.js.map +1 -0
- package/dist/cjs/voice-input-module.cjs.js +28 -0
- package/dist/cjs/voice-input-module.cjs.js.map +1 -0
- package/dist/collection/collection-manifest.json +19 -0
- package/dist/collection/components/voice-input-module/voice-input-module.css +327 -0
- package/dist/collection/components/voice-input-module/voice-input-module.js +1021 -0
- package/dist/collection/components/voice-input-module/voice-input-module.js.map +1 -0
- package/dist/collection/index.js +12 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/services/audio-recorder.service.js +66 -0
- package/dist/collection/services/audio-recorder.service.js.map +1 -0
- package/dist/collection/services/llm.service.js +193 -0
- package/dist/collection/services/llm.service.js.map +1 -0
- package/dist/collection/services/speech-to-text.service.js +60 -0
- package/dist/collection/services/speech-to-text.service.js.map +1 -0
- package/dist/collection/types/form-schema.types.js +2 -0
- package/dist/collection/types/form-schema.types.js.map +1 -0
- package/dist/collection/types/service-providers.types.js +2 -0
- package/dist/collection/types/service-providers.types.js.map +1 -0
- package/dist/collection/utils/schema-converter.js +422 -0
- package/dist/collection/utils/schema-converter.js.map +1 -0
- package/dist/components/index.js +4 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/ocr-file-uploader.js +9 -0
- package/dist/components/ocr-file-uploader.js.map +1 -0
- package/{www/build/ocr-file-uploader.entry.js → dist/components/ocr-file-uploader2.js} +28 -9
- package/dist/components/ocr-file-uploader2.js.map +1 -0
- package/{www/build/voice-input-module.entry.js → dist/components/voice-input-module.js} +67 -78
- package/dist/components/voice-input-module.js.map +1 -0
- package/dist/esm/app-globals-DQuL1Twl.js +6 -0
- package/dist/esm/app-globals-DQuL1Twl.js.map +1 -0
- package/dist/esm/index-jmc2yzBp.js +1487 -0
- package/dist/esm/index-jmc2yzBp.js.map +1 -0
- package/dist/esm/index.js +4 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +14 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/ocr-file-uploader.voice-input-module.entry.js.map +1 -0
- package/dist/{voice-input-module/voice-input-module.entry.js → esm/ocr-file-uploader_2.entry.js} +92 -76
- package/dist/esm/ocr-file-uploader_2.entry.js.map +1 -0
- package/dist/esm/voice-input-module.js +24 -0
- package/dist/esm/voice-input-module.js.map +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/voice-input-module/index.esm.js +0 -12
- package/dist/voice-input-module/index.esm.js.map +1 -1
- package/dist/voice-input-module/loader.esm.js.map +1 -1
- package/dist/voice-input-module/ocr-file-uploader.voice-input-module.entry.esm.js.map +1 -0
- package/dist/voice-input-module/p-21d2e52b.entry.js +3 -0
- package/dist/voice-input-module/p-21d2e52b.entry.js.map +1 -0
- package/dist/voice-input-module/p-DQuL1Twl.js +2 -0
- package/dist/voice-input-module/p-DQuL1Twl.js.map +1 -0
- package/dist/voice-input-module/p-jmc2yzBp.js +3 -0
- package/dist/voice-input-module/p-jmc2yzBp.js.map +1 -0
- package/dist/voice-input-module/voice-input-module.esm.js +1 -49
- package/dist/voice-input-module/voice-input-module.esm.js.map +1 -1
- package/package.json +1 -1
- package/www/build/index.esm.js +0 -12
- package/www/build/index.esm.js.map +1 -1
- package/www/build/loader.esm.js.map +1 -1
- package/www/build/ocr-file-uploader.voice-input-module.entry.esm.js.map +1 -0
- package/www/build/p-21d2e52b.entry.js +3 -0
- package/www/build/p-21d2e52b.entry.js.map +1 -0
- package/www/build/p-DQuL1Twl.js +2 -0
- package/www/build/p-DQuL1Twl.js.map +1 -0
- package/www/build/p-b680b1be.js +2 -0
- package/www/build/p-jmc2yzBp.js +3 -0
- package/www/build/p-jmc2yzBp.js.map +1 -0
- package/www/build/voice-input-module.esm.js +1 -49
- package/www/build/voice-input-module.esm.js.map +1 -1
- package/www/index.html +7 -16
- package/dist/voice-input-module/index-Lt4F-TYq.js +0 -4334
- package/dist/voice-input-module/index-Lt4F-TYq.js.map +0 -1
- package/dist/voice-input-module/ocr-file-uploader.entry.esm.js.map +0 -1
- package/dist/voice-input-module/ocr-file-uploader.entry.js +0 -83
- package/dist/voice-input-module/ocr-file-uploader.entry.js.map +0 -1
- package/dist/voice-input-module/voice-input-module.entry.esm.js.map +0 -1
- package/dist/voice-input-module/voice-input-module.entry.js.map +0 -1
- package/www/build/index-Lt4F-TYq.js +0 -4334
- package/www/build/index-Lt4F-TYq.js.map +0 -1
- package/www/build/ocr-file-uploader.entry.esm.js.map +0 -1
- package/www/build/ocr-file-uploader.entry.js.map +0 -1
- package/www/build/voice-input-module.entry.esm.js.map +0 -1
- package/www/build/voice-input-module.entry.js.map +0 -1
|
@@ -1,50 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export { s as setNonce } from './index-Lt4F-TYq.js';
|
|
3
|
-
|
|
4
|
-
/*
|
|
5
|
-
Stencil Client Patch Browser v4.36.2 | MIT Licensed | https://stenciljs.com
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
var patchBrowser = () => {
|
|
9
|
-
if (BUILD.isDev && !BUILD.isTesting) {
|
|
10
|
-
consoleDevInfo("Running in development mode.");
|
|
11
|
-
}
|
|
12
|
-
if (BUILD.cloneNodeFix) {
|
|
13
|
-
patchCloneNodeFix(H.prototype);
|
|
14
|
-
}
|
|
15
|
-
const scriptElm = BUILD.scriptDataOpts ? win.document && Array.from(win.document.querySelectorAll("script")).find(
|
|
16
|
-
(s) => new RegExp(`/${NAMESPACE}(\\.esm)?\\.js($|\\?|#)`).test(s.src) || s.getAttribute("data-stencil-namespace") === NAMESPACE
|
|
17
|
-
) : null;
|
|
18
|
-
const importMeta = import.meta.url;
|
|
19
|
-
const opts = BUILD.scriptDataOpts ? (scriptElm || {})["data-opts"] || {} : {};
|
|
20
|
-
if (importMeta !== "") {
|
|
21
|
-
opts.resourcesUrl = new URL(".", importMeta).href;
|
|
22
|
-
}
|
|
23
|
-
return promiseResolve(opts);
|
|
24
|
-
};
|
|
25
|
-
var patchCloneNodeFix = (HTMLElementPrototype) => {
|
|
26
|
-
const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;
|
|
27
|
-
HTMLElementPrototype.cloneNode = function(deep) {
|
|
28
|
-
if (this.nodeName === "TEMPLATE") {
|
|
29
|
-
return nativeCloneNodeFn.call(this, deep);
|
|
30
|
-
}
|
|
31
|
-
const clonedNode = nativeCloneNodeFn.call(this, false);
|
|
32
|
-
const srcChildNodes = this.childNodes;
|
|
33
|
-
if (deep) {
|
|
34
|
-
for (let i = 0; i < srcChildNodes.length; i++) {
|
|
35
|
-
if (srcChildNodes[i].nodeType !== 2) {
|
|
36
|
-
clonedNode.appendChild(srcChildNodes[i].cloneNode(true));
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
return clonedNode;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
patchBrowser().then(async (options) => {
|
|
45
|
-
await globalScripts();
|
|
46
|
-
return bootstrapLazy([["ocr-file-uploader",[[257,"ocr-file-uploader",{"batch":[4],"callback":[16],"jsonSchema":[1,"json-schema"]}]]],["voice-input-module",[[257,"voice-input-module",{"formJson":[1,"form-json"],"serviceConfig":[1,"service-config"],"apiKey":[1,"api-key"],"context":[1],"classificationRootUrl":[1,"classification-root-url"],"language":[1],"inputTypes":[1,"input-types"],"debug":[4],"renderForm":[4,"render-form"],"displayStatus":[4,"display-status"],"isRecording":[32],"isProcessing":[32],"statusMessage":[32],"hasError":[32],"transcription":[32],"filledData":[32],"debugInfo":[32],"isReadonlyMode":[32],"convertXmlToJson":[64],"convertJsonToXml":[64],"convertXmlToJsonLegacy":[64],"convertJsonToXmlLegacy":[64]},null,{"formJson":["initializeServices"],"serviceConfig":["initializeServices"]}]]]], options);
|
|
47
|
-
});
|
|
48
|
-
//# sourceMappingURL=voice-input-module.esm.js.map
|
|
49
|
-
|
|
1
|
+
import{p as o,b as e}from"./p-jmc2yzBp.js";export{s as setNonce}from"./p-jmc2yzBp.js";import{g as i}from"./p-DQuL1Twl.js";var r=()=>{const e=import.meta.url;const s={};if(e!==""){s.resourcesUrl=new URL(".",e).href}return o(s)};r().then((async o=>{await i();return e([["p-21d2e52b",[[257,"voice-input-module",{formJson:[1,"form-json"],serviceConfig:[1,"service-config"],apiKey:[1,"api-key"],context:[1],classificationRootUrl:[1,"classification-root-url"],language:[1],inputTypes:[1,"input-types"],debug:[4],renderForm:[4,"render-form"],displayStatus:[4,"display-status"],isRecording:[32],isProcessing:[32],statusMessage:[32],hasError:[32],transcription:[32],filledData:[32],debugInfo:[32],isReadonlyMode:[32],convertXmlToJson:[64],convertJsonToXml:[64],convertXmlToJsonLegacy:[64],convertJsonToXmlLegacy:[64]},null,{formJson:["initializeServices"],serviceConfig:["initializeServices"]}],[257,"ocr-file-uploader",{batch:[4],callback:[16],jsonSchema:[1,"json-schema"]}]]]],o)}));
|
|
50
2
|
//# sourceMappingURL=voice-input-module.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voice-input-module.esm.js","sources":["node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.36.2 | MIT Licensed | https://stenciljs.com\n */\n\n// src/client/client-patch-browser.ts\nimport { BUILD, NAMESPACE } from \"@stencil/core/internal/app-data\";\nimport { consoleDevInfo, H, promiseResolve, win } from \"@stencil/core\";\nvar patchBrowser = () => {\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo(\"Running in development mode.\");\n }\n if (BUILD.cloneNodeFix) {\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts ? win.document && Array.from(win.document.querySelectorAll(\"script\")).find(\n (s) => new RegExp(`/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) || s.getAttribute(\"data-stencil-namespace\") === NAMESPACE\n ) : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})[\"data-opts\"] || {} : {};\n if (importMeta !== \"\") {\n opts.resourcesUrl = new URL(\".\", importMeta).href;\n }\n return promiseResolve(opts);\n};\nvar patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function(deep) {\n if (this.nodeName === \"TEMPLATE\") {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport {\n patchBrowser\n};\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(async (options) => {\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"voice-input-module.esm.js","sources":["node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.36.2 | MIT Licensed | https://stenciljs.com\n */\n\n// src/client/client-patch-browser.ts\nimport { BUILD, NAMESPACE } from \"@stencil/core/internal/app-data\";\nimport { consoleDevInfo, H, promiseResolve, win } from \"@stencil/core\";\nvar patchBrowser = () => {\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo(\"Running in development mode.\");\n }\n if (BUILD.cloneNodeFix) {\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts ? win.document && Array.from(win.document.querySelectorAll(\"script\")).find(\n (s) => new RegExp(`/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) || s.getAttribute(\"data-stencil-namespace\") === NAMESPACE\n ) : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})[\"data-opts\"] || {} : {};\n if (importMeta !== \"\") {\n opts.resourcesUrl = new URL(\".\", importMeta).href;\n }\n return promiseResolve(opts);\n};\nvar patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function(deep) {\n if (this.nodeName === \"TEMPLATE\") {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport {\n patchBrowser\n};\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(async (options) => {\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"names":[],"mappings":";;;;AAAA;AACA;AACA;;AAKA,IAAI,YAAY,GAAG,MAAM;AAUzB,EAAE,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG;AACpC,EAAE,MAAM,IAAI,GAAiE,EAAE;AAC/E,EAAE,IAAI,UAAU,KAAK,EAAE,EAAE;AACzB,IAAI,IAAI,CAAC,YAAY,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,IAAI;AACrD;AACA,EAAE,OAAO,cAAc,CAAC,IAAI,CAAC;AAC7B,CAAC;;ACnBD,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,OAAO,KAAK;AACvC,EAAE,MAAM,aAAa,EAAE;AACvB,EAAE,OAAO,aAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC;AAC7D,CAAC,CAAC","x_google_ignoreList":[0]}
|
package/www/index.html
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!doctype html><html dir="ltr" lang="en"><head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0"> <title>Voice Input Module Demo</title> <script type="module" src="/build/
|
|
1
|
+
<!doctype html><html dir="ltr" lang="en"><head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0"> <title>Voice Input Module Demo</title> <link rel="modulepreload" href="/build/p-b680b1be.js"><link rel="modulepreload" href="/build/p-jmc2yzBp.js"><script type="module" src="/build/p-b680b1be.js" data-stencil data-resources-url="/build/" data-stencil-namespace="voice-input-module"></script> <script nomodule="" src="/build/voice-input-module.js" data-stencil></script> <style>body {
|
|
2
2
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
3
3
|
margin: 0;
|
|
4
4
|
padding: 2rem;
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
font-size: 0.875rem;
|
|
133
133
|
overflow-x: auto;
|
|
134
134
|
white-space: pre-wrap;
|
|
135
|
-
}</style> </head> <body> <div class="container"> <h1>Voice Input Module Component</h1> <div class="setup-note"> <strong>Setup Required:</strong> This component requires OpenAI API key to be passed in options. </div> <div class="demo-section"> <div class="demo-title">NG component</div> <voice-input-module id="demo3" form-json="{"ID":1003,"System_Name":"Adoption_End","Type":"Container","Settings":{"ID":1003,"Flex_Direction":"row","Flex_Wrap":"wrap","Align_Items":"flex-start","Field_Width":8,"Label_Translation_ID":{"fr":"Adoption_End","en":"Adoption_End"},"Description_Translation_ID":{"fr":"Adoption_End","en":"Adoption_End"},"Label":"Root"},"Children":[{"ID":2016,"System_Name":"Individual_ID","Type":"InputAutocomplete","Settings":{"Autocomplete_Start":0,"Operator":"contains","Field_Width":4,"Source_View":"Individuals","Source_Field":["Adult_ID","Egg_ID"],"Trigger_Min_Length":3,"Label_Translation_ID":{"fr":"Individual_ID","en":"Individual_ID"},"Description_Translation_ID":{"fr":"Individual_ID","en":"Individual_ID"},"Label":"Individual_ID"},"Children":[],"Is_Virtual":false,"Required":true},{"ID":2017,"System_Name":"ID","Type":"InputInteger","Settings":{"ID":1005,"Min":null,"Max":null,"Default_Value":null,"Unit":null,"Field_Width":4,"Label_Translation_ID":{"fr":"ID","en":"ID"},"Description_Translation_ID":{"fr":"ID","en":"ID"},"Label":"ID"},"Children":[],"Is_Virtual":false,"Required":true},{"ID":2018,"System_Name":"End_Of_Adoption_Cause","Type":"InputInteger","Settings":{"ID":1006,"Min":null,"Max":null,"Default_Value":null,"Unit":null,"Field_Width":4,"Label_Translation_ID":{"fr":"End_Of_Adoption_Cause","en":"End_Of_Adoption_Cause"},"Description_Translation_ID":{"fr":"End_Of_Adoption_Cause","en":"End_Of_Adoption_Cause"},"Label":"End_Of_Adoption_Cause"},"Children":[],"Is_Virtual":false,"Required":false},{"ID":2019,"System_Name":"New_Position","Type":"InputInteger","Settings":{"ID":1007,"Min":null,"Max":null,"Default_Value":null,"Unit":null,"Field_Width":4,"Label_Translation_ID":{"fr":"New_Position","en":"New_Position"},"Description_Translation_ID":{"fr":"New_Position","en":"New_Position"},"Label":"New_Position"},"Children":[],"Is_Virtual":false,"Required":true},{"ID":2020,"System_Name":"Comment","Type":"InputTextArea","Settings":{"ID":1005,"Min_Length":null,"Max_Length":null,"Default_Value":null,"Field_Width":4,"Label_Translation_ID":{"fr":"Comment","en":"Comment"},"Description_Translation_ID":{"fr":"Comment","en":"Comment"},"Label":"Comment"},"Children":[],"Is_Virtual":false,"Required":false},{"ID":2021,"System_Name":"Former_Adoptive_Father","Type":"InputTextArea","Settings":{"ID":1006,"Min_Length":null,"Max_Length":null,"Default_Value":null,"Field_Width":4,"Label_Translation_ID":{"fr":"Former Adoptive Father","en":"Former_Adoptive_Father"},"Description_Translation_ID":{"fr":"Former_Adoptive_Father","en":"Former_Adoptive_Father"},"Label":"Former_Adoptive_Father"},"Children":[],"Is_Virtual":false,"Required":false},{"ID":2022,"System_Name":"Former_Adoptive_Mother","Type":"InputTextArea","Settings":{"ID":1007,"Min_Length":null,"Max_Length":null,"Default_Value":null,"Field_Width":4,"Label_Translation_ID":{"fr":"Former_Adoptive_Mother","en":"Former_Adoptive_Mother"},"Description_Translation_ID":{"fr":"Former_Adoptive_Mother","en":"Former_Adoptive_Mother"},"Label":"Former_Adoptive_Mother"},"Children":[],"Is_Virtual":false,"Required":false},{"ID":2023,"System_Name":"Start_Date","Type":"InputDateTimePicker","Settings":{"ID":1003,"Format":null,"Default_Value":null,"Field_Width":4,"Is_Default_Value_Now":null,"Has_Future_Date":null,"Label_Translation_ID":{"fr":"Start Date","en":"Start Date"},"Description_Translation_ID":{"fr":"Start Date","en":"Start Date"},"Label":"Start_Date"},"Children":[],"Is_Virtual":false,"Required":true},{"ID":2024,"System_Name":"Test_Decimal","Type":"InputDecimal","Settings":{"ID":1003,"Min":null,"Max":null,"Default_Value":null,"Unit":null,"Field_Width":4,"Number_Of_Decimal":3,"Label_Translation_ID":{"fr":"Test_Decimal","en":"Test_Decimal"},"Description_Translation_ID":{"fr":"Test_Decimal","en":"Test_Decimal"},"Label":"Test_Decimal"},"Children":[],"Is_Virtual":false,"Required":false},{"ID":2025,"System_Name":"Test_Classap","Type":"InputClassification","Settings":{"ID":1003,"Start_Node_ID":222957,"Default_Value":null,"Is_Fullpath_Used":null,"Is_Multiple":null,"Field_Width":4,"Type":"thesaurus","Label_Translation_ID":{"fr":"Test_Classap","en":"Test_Classap"},"Description_Translation_ID":{"fr":"Test_Classap","en":"Test_Classap"},"Label":"Test_Classap"},"Children":["hello","world"],"Is_Virtual":false,"Required":false},{"ID":2026,"System_Name":"Test_Checkbox","Type":"InputCheckbox","Settings":{"ID":2,"Default_Value":null,"Field_Width":4,"Label_Translation_ID":{"fr":"Test_Checkbox","en":"Test_Checkbox"},"Description_Translation_ID":{"fr":"Test_Checkbox","en":"Test_Checkbox"},"Label":"Test_Checkbox"},"Children":[],"Is_Virtual":false,"Required":true},{"ID":2027,"System_Name":"Test_Translation_ID","Type":"InputTextTranslation","Settings":{"ID":2,"Min_Length":null,"Max_Length":null,"Default_Value":null,"Field_Width":4,"Label_Translation_ID":{"fr":"Test_Translation_ID","en":"Test_Translation_ID"},"Description_Translation_ID":{"fr":"Test_Translation_ID","en":"Test_Translation_ID"},"Label":"Test_Translation_ID"},"Children":[],"Is_Virtual":false,"Required":false},{"ID":2028,"System_Name":"Test_MultiSelect","Type":"InputMultiSelect","Settings":{"ID":3,"Default_Value":null,"Field_Width":4,"Label_Translation_ID":{"fr":"Test_MultiSelect","en":"Test_MultiSelect"},"Description_Translation_ID":{"fr":"Test_MultiSelect","en":"Test_MultiSelect"},"Label":"Test_MultiSelect"},"Children":["Option A","Option B","Option C","Option D"],"Is_Virtual":false,"Required":false}],"Is_Virtual":false,"Required":false,"Meta":{"ID":3,"System_Name":"Protocol"},"Object_Type":{"ID":81,"System_Name":"Adoption_End"}}" api-key="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" render-form="true" display-status="true" debug="true" context="ng" classification-root-url="http://localhost:8888" input-types="['voice', 'ocr', 'audio']"></voice-input-module> </div> <!-- <div class="demo-section">
|
|
135
|
+
}</style> </head> <body> <div class="container"> <h1>Voice Input Module Component</h1> <div class="setup-note"> <strong>Setup Required:</strong> This component requires OpenAI API key to be passed in options. </div> <div class="demo-section"> <div class="demo-title">NG component</div> <voice-input-module id="demo3" form-json="{"ID":1003,"System_Name":"Adoption_End","Type":"Container","Settings":{"ID":1003,"Flex_Direction":"row","Flex_Wrap":"wrap","Align_Items":"flex-start","Field_Width":8,"Label_Translation_ID":{"fr":"Adoption_End","en":"Adoption_End"},"Description_Translation_ID":{"fr":"Adoption_End","en":"Adoption_End"},"Label":"Root"},"Children":[{"ID":2016,"System_Name":"Individual_ID","Type":"InputAutocomplete","Settings":{"Autocomplete_Start":0,"Operator":"contains","Field_Width":4,"Source_View":"Individuals","Source_Field":["Adult_ID","Egg_ID"],"Trigger_Min_Length":3,"Label_Translation_ID":{"fr":"Individual_ID","en":"Individual_ID"},"Description_Translation_ID":{"fr":"Individual_ID","en":"Individual_ID"},"Label":"Individual_ID"},"Children":[],"Is_Virtual":false,"Required":true},{"ID":2017,"System_Name":"ID","Type":"InputInteger","Settings":{"ID":1005,"Min":null,"Max":null,"Default_Value":null,"Unit":null,"Field_Width":4,"Label_Translation_ID":{"fr":"ID","en":"ID"},"Description_Translation_ID":{"fr":"ID","en":"ID"},"Label":"ID"},"Children":[],"Is_Virtual":false,"Required":true},{"ID":2018,"System_Name":"End_Of_Adoption_Cause","Type":"InputInteger","Settings":{"ID":1006,"Min":null,"Max":null,"Default_Value":null,"Unit":null,"Field_Width":4,"Label_Translation_ID":{"fr":"End_Of_Adoption_Cause","en":"End_Of_Adoption_Cause"},"Description_Translation_ID":{"fr":"End_Of_Adoption_Cause","en":"End_Of_Adoption_Cause"},"Label":"End_Of_Adoption_Cause"},"Children":[],"Is_Virtual":false,"Required":false},{"ID":2019,"System_Name":"New_Position","Type":"InputInteger","Settings":{"ID":1007,"Min":null,"Max":null,"Default_Value":null,"Unit":null,"Field_Width":4,"Label_Translation_ID":{"fr":"New_Position","en":"New_Position"},"Description_Translation_ID":{"fr":"New_Position","en":"New_Position"},"Label":"New_Position"},"Children":[],"Is_Virtual":false,"Required":true},{"ID":2020,"System_Name":"Comment","Type":"InputTextArea","Settings":{"ID":1005,"Min_Length":null,"Max_Length":null,"Default_Value":null,"Field_Width":4,"Label_Translation_ID":{"fr":"Comment","en":"Comment"},"Description_Translation_ID":{"fr":"Comment","en":"Comment"},"Label":"Comment"},"Children":[],"Is_Virtual":false,"Required":false},{"ID":2021,"System_Name":"Former_Adoptive_Father","Type":"InputTextArea","Settings":{"ID":1006,"Min_Length":null,"Max_Length":null,"Default_Value":null,"Field_Width":4,"Label_Translation_ID":{"fr":"Former Adoptive Father","en":"Former_Adoptive_Father"},"Description_Translation_ID":{"fr":"Former_Adoptive_Father","en":"Former_Adoptive_Father"},"Label":"Former_Adoptive_Father"},"Children":[],"Is_Virtual":false,"Required":false},{"ID":2022,"System_Name":"Former_Adoptive_Mother","Type":"InputTextArea","Settings":{"ID":1007,"Min_Length":null,"Max_Length":null,"Default_Value":null,"Field_Width":4,"Label_Translation_ID":{"fr":"Former_Adoptive_Mother","en":"Former_Adoptive_Mother"},"Description_Translation_ID":{"fr":"Former_Adoptive_Mother","en":"Former_Adoptive_Mother"},"Label":"Former_Adoptive_Mother"},"Children":[],"Is_Virtual":false,"Required":false},{"ID":2023,"System_Name":"Start_Date","Type":"InputDateTimePicker","Settings":{"ID":1003,"Format":null,"Default_Value":null,"Field_Width":4,"Is_Default_Value_Now":null,"Has_Future_Date":null,"Label_Translation_ID":{"fr":"Start Date","en":"Start Date"},"Description_Translation_ID":{"fr":"Start Date","en":"Start Date"},"Label":"Start_Date"},"Children":[],"Is_Virtual":false,"Required":true},{"ID":2024,"System_Name":"Test_Decimal","Type":"InputDecimal","Settings":{"ID":1003,"Min":null,"Max":null,"Default_Value":null,"Unit":null,"Field_Width":4,"Number_Of_Decimal":3,"Label_Translation_ID":{"fr":"Test_Decimal","en":"Test_Decimal"},"Description_Translation_ID":{"fr":"Test_Decimal","en":"Test_Decimal"},"Label":"Test_Decimal"},"Children":[],"Is_Virtual":false,"Required":false},{"ID":2025,"System_Name":"Test_Classap","Type":"InputClassification","Settings":{"ID":1003,"Start_Node_ID":222957,"Default_Value":null,"Is_Fullpath_Used":null,"Is_Multiple":null,"Field_Width":4,"Type":"thesaurus","Label_Translation_ID":{"fr":"Test_Classap","en":"Test_Classap"},"Description_Translation_ID":{"fr":"Test_Classap","en":"Test_Classap"},"Label":"Test_Classap"},"Children":["hello","world"],"Is_Virtual":false,"Required":false},{"ID":2026,"System_Name":"Test_Checkbox","Type":"InputCheckbox","Settings":{"ID":2,"Default_Value":null,"Field_Width":4,"Label_Translation_ID":{"fr":"Test_Checkbox","en":"Test_Checkbox"},"Description_Translation_ID":{"fr":"Test_Checkbox","en":"Test_Checkbox"},"Label":"Test_Checkbox"},"Children":[],"Is_Virtual":false,"Required":true},{"ID":2027,"System_Name":"Test_Translation_ID","Type":"InputTextTranslation","Settings":{"ID":2,"Min_Length":null,"Max_Length":null,"Default_Value":null,"Field_Width":4,"Label_Translation_ID":{"fr":"Test_Translation_ID","en":"Test_Translation_ID"},"Description_Translation_ID":{"fr":"Test_Translation_ID","en":"Test_Translation_ID"},"Label":"Test_Translation_ID"},"Children":[],"Is_Virtual":false,"Required":false},{"ID":2028,"System_Name":"Test_MultiSelect","Type":"InputMultiSelect","Settings":{"ID":3,"Default_Value":null,"Field_Width":4,"Label_Translation_ID":{"fr":"Test_MultiSelect","en":"Test_MultiSelect"},"Description_Translation_ID":{"fr":"Test_MultiSelect","en":"Test_MultiSelect"},"Label":"Test_MultiSelect"},"Children":["Option A","Option B","Option C","Option D"],"Is_Virtual":false,"Required":false}],"Is_Virtual":false,"Required":false,"Meta":{"ID":3,"System_Name":"Protocol"},"Object_Type":{"ID":81,"System_Name":"Adoption_End"}}" api-key="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" render-form="true" display-status="true" debug="true" context="ng" classification-root-url="http://localhost:8888" input-types="['voice', 'ocr', 'audio']"></voice-input-module> </div> <!-- <div class="demo-section">
|
|
136
136
|
<div class="demo-title">Ecoll component</div>
|
|
137
137
|
<voice-input-module
|
|
138
138
|
id="demo2"
|
|
@@ -850,7 +850,7 @@
|
|
|
850
850
|
"FTA_Card_Code": ""
|
|
851
851
|
}
|
|
852
852
|
]'
|
|
853
|
-
api-key="sk-proj-
|
|
853
|
+
api-key="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"
|
|
854
854
|
render-form="true"
|
|
855
855
|
display-status="true"
|
|
856
856
|
debug="true"
|
|
@@ -1197,7 +1197,7 @@
|
|
|
1197
1197
|
}
|
|
1198
1198
|
]
|
|
1199
1199
|
}'
|
|
1200
|
-
api-key="sk-proj-
|
|
1200
|
+
api-key="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"
|
|
1201
1201
|
render-form="true"
|
|
1202
1202
|
display-status="true"
|
|
1203
1203
|
debug="true"
|
|
@@ -1279,7 +1279,7 @@
|
|
|
1279
1279
|
<voice-input-module
|
|
1280
1280
|
id="fromxml"
|
|
1281
1281
|
form-json='${JSON.stringify(jsonresult, null, 2)}'
|
|
1282
|
-
api-key="sk-proj-
|
|
1282
|
+
api-key="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"
|
|
1283
1283
|
render-form="true"
|
|
1284
1284
|
display-status="true"
|
|
1285
1285
|
debug="true"
|
|
@@ -1623,7 +1623,7 @@
|
|
|
1623
1623
|
<voice-input-module
|
|
1624
1624
|
id="fromxml"
|
|
1625
1625
|
form-json='${jsonresultSTR}'
|
|
1626
|
-
api-key="sk-proj-
|
|
1626
|
+
api-key="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"
|
|
1627
1627
|
render-form="true"
|
|
1628
1628
|
display-status="true"
|
|
1629
1629
|
debug="true"
|
|
@@ -1659,13 +1659,4 @@
|
|
|
1659
1659
|
}
|
|
1660
1660
|
}
|
|
1661
1661
|
|
|
1662
|
-
</script>
|
|
1663
|
-
if ('serviceWorker' in navigator && location.protocol !== 'file:') {
|
|
1664
|
-
// auto-unregister service worker during dev mode
|
|
1665
|
-
navigator.serviceWorker.getRegistration().then(function(registration) {
|
|
1666
|
-
if (registration) {
|
|
1667
|
-
registration.unregister().then(function() { location.reload(true) });
|
|
1668
|
-
}
|
|
1669
|
-
});
|
|
1670
|
-
}
|
|
1671
|
-
</script></body></html>
|
|
1662
|
+
</script> </body></html>
|