@voicenter-team/voicenter-ui-plus 1.1.21 → 2.0.2
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/library/{entry-EvdwF4XL.mjs → core/index.mjs} +18563 -10397
- package/library/core/index.mjs.br +0 -0
- package/library/core/index.mjs.gz +0 -0
- package/library/core/index.umd.js +15 -0
- package/library/core/index.umd.js.br +0 -0
- package/library/core/index.umd.js.gz +0 -0
- package/library/core/style.css +1 -0
- package/library/core/style.css.br +0 -0
- package/library/core/style.css.gz +0 -0
- package/library/{types → core/types}/components/VcButton/index.d.ts +78 -78
- package/library/{types → core/types}/components/VcDropdown/VcDropdown.vue.d.ts +8 -8
- package/library/{types → core/types}/components/VcMeterGroup/VcMeterGroup.vue.d.ts +3 -3
- package/library/{types → core/types}/components/VcMeterGroup/VcMeterGroupLabel.vue.d.ts +1 -1
- package/library/{types → core/types}/components/VcSparkline/VcBarLine.vue.d.ts +25 -1
- package/library/{types → core/types}/components/VcSparkline/VcSparkline.vue.d.ts +1 -1
- package/library/{types → core/types}/components/VcSparkline/VcTrendLine.vue.d.ts +1 -1
- package/library/{types → core/types}/components/VcSparkline/helper.d.ts +1 -1
- package/library/{types → core/types}/components/VcTransfer/VcTransfer.vue.d.ts +1 -1
- package/library/{types → core/types}/components/VcTree/VcTreeSelect.vue.d.ts +20 -19
- package/library/{types/components/index.d.ts → core/types/components/exports.d.ts} +92 -105
- package/library/{types/entity/composable → core/types/composables}/useConfirmPopup.d.ts +5 -5
- package/library/core/types/entry.d.ts +32 -0
- package/library/core/types/localization/locales/en.json.d.ts +165 -0
- package/library/{types → core/types}/services/index.d.ts +2 -2
- package/library/core/types/theme/themes.json.d.ts +185 -0
- package/library/core/types/tokens/tokens.d.ts +6 -0
- package/library/{types → core/types}/types/VcDropdown.types.d.ts +2 -1
- package/library/{types → core/types}/types/VcTabs.types.d.ts +0 -4
- package/library/{types → core/types}/types/VcTree.types.d.ts +2 -2
- package/library/core/types/types/basic.types.d.ts +20 -0
- package/library/{types → core/types}/types/index.d.ts +2 -8
- package/package.json +33 -26
- package/src/{theme → core/theme}/themes.json +8 -0
- package/tailwind.config.js +1 -1
- package/library/VcExcelFileUploader-DdT4JMP3.mjs +0 -28203
- package/library/VcExcelFileUploader-DdT4JMP3.mjs.br +0 -0
- package/library/VcExcelFileUploader-DdT4JMP3.mjs.gz +0 -0
- package/library/VcHtmlEditor-C3zXhk2H.mjs +0 -691
- package/library/VcHtmlEditor-C3zXhk2H.mjs.br +0 -0
- package/library/VcHtmlEditor-C3zXhk2H.mjs.gz +0 -0
- package/library/VcImageUploader-Db8XF_ZV.mjs +0 -1772
- package/library/VcImageUploader-Db8XF_ZV.mjs.br +0 -0
- package/library/VcImageUploader-Db8XF_ZV.mjs.gz +0 -0
- package/library/VcJsonSchema-B4EM6LcW.mjs +0 -2216
- package/library/VcJsonSchema-B4EM6LcW.mjs.br +0 -0
- package/library/VcJsonSchema-B4EM6LcW.mjs.gz +0 -0
- package/library/VcMdEditor-CMlNJcLY.mjs +0 -4
- package/library/VcMdEditor.vue_vue_type_script_setup_true_lang-DOX1NBnx.mjs +0 -27376
- package/library/VcMdEditor.vue_vue_type_script_setup_true_lang-DOX1NBnx.mjs.br +0 -0
- package/library/VcMdEditor.vue_vue_type_script_setup_true_lang-DOX1NBnx.mjs.gz +0 -0
- package/library/VcPdfDocument-Cf7CB2iK.mjs +0 -33131
- package/library/VcPdfDocument-Cf7CB2iK.mjs.br +0 -0
- package/library/VcPdfDocument-Cf7CB2iK.mjs.gz +0 -0
- package/library/VcSoundPlayer-Bc4GDrHh.mjs +0 -258
- package/library/VcSoundPlayer-Bc4GDrHh.mjs.br +0 -0
- package/library/VcSoundPlayer-Bc4GDrHh.mjs.gz +0 -0
- package/library/VcSparkline-CwjaA-i6.mjs +0 -561
- package/library/VcSparkline-CwjaA-i6.mjs.br +0 -0
- package/library/VcSparkline-CwjaA-i6.mjs.gz +0 -0
- package/library/VcSystemUserPrompt-WxIPI7kS.mjs +0 -145
- package/library/VcSystemUserPrompt-WxIPI7kS.mjs.br +0 -0
- package/library/VcSystemUserPrompt-WxIPI7kS.mjs.gz +0 -0
- package/library/VcTour-DE5ioKMo.mjs +0 -1068
- package/library/VcTour-DE5ioKMo.mjs.br +0 -0
- package/library/VcTour-DE5ioKMo.mjs.gz +0 -0
- package/library/VcTransfer-CG4j9PzS.mjs +0 -567
- package/library/VcTransfer-CG4j9PzS.mjs.br +0 -0
- package/library/VcTransfer-CG4j9PzS.mjs.gz +0 -0
- package/library/VcTree-C2VshYQH.mjs +0 -4
- package/library/VcTree.vue_vue_type_style_index_0_lang-DqIT64MT.mjs +0 -2219
- package/library/VcTree.vue_vue_type_style_index_0_lang-DqIT64MT.mjs.br +0 -0
- package/library/VcTree.vue_vue_type_style_index_0_lang-DqIT64MT.mjs.gz +0 -0
- package/library/VcTreeSelect-CwsiIyeG.mjs +0 -339
- package/library/VcTreeSelect-CwsiIyeG.mjs.br +0 -0
- package/library/VcTreeSelect-CwsiIyeG.mjs.gz +0 -0
- package/library/_isIterateeCall-jrkoht6u.mjs +0 -16
- package/library/apl-fqmucPXA.mjs +0 -140
- package/library/apl-fqmucPXA.mjs.br +0 -0
- package/library/apl-fqmucPXA.mjs.gz +0 -0
- package/library/asciiarmor-DucZyvP0.mjs +0 -56
- package/library/asciiarmor-DucZyvP0.mjs.br +0 -0
- package/library/asciiarmor-DucZyvP0.mjs.gz +0 -0
- package/library/asn1-BnOEsgAm.mjs +0 -144
- package/library/asn1-BnOEsgAm.mjs.br +0 -0
- package/library/asn1-BnOEsgAm.mjs.gz +0 -0
- package/library/asterisk-QAlztEwS.mjs +0 -345
- package/library/asterisk-QAlztEwS.mjs.br +0 -0
- package/library/asterisk-QAlztEwS.mjs.gz +0 -0
- package/library/brainfuck-DZVCuF_t.mjs +0 -53
- package/library/brainfuck-DZVCuF_t.mjs.br +0 -0
- package/library/brainfuck-DZVCuF_t.mjs.gz +0 -0
- package/library/clike-DaICHkS3.mjs +0 -805
- package/library/clike-DaICHkS3.mjs.br +0 -0
- package/library/clike-DaICHkS3.mjs.gz +0 -0
- package/library/clojure-BhXMqnxz.mjs +0 -849
- package/library/clojure-BhXMqnxz.mjs.br +0 -0
- package/library/clojure-BhXMqnxz.mjs.gz +0 -0
- package/library/cmake-BGaNd9E7.mjs +0 -71
- package/library/cmake-BGaNd9E7.mjs.br +0 -0
- package/library/cmake-BGaNd9E7.mjs.gz +0 -0
- package/library/cobol-4yqQntpt.mjs +0 -120
- package/library/cobol-4yqQntpt.mjs.br +0 -0
- package/library/cobol-4yqQntpt.mjs.gz +0 -0
- package/library/coffeescript-D2dXvhEc.mjs +0 -308
- package/library/coffeescript-D2dXvhEc.mjs.br +0 -0
- package/library/coffeescript-D2dXvhEc.mjs.gz +0 -0
- package/library/commonlisp-CF_VNHQR.mjs +0 -130
- package/library/commonlisp-CF_VNHQR.mjs.br +0 -0
- package/library/commonlisp-CF_VNHQR.mjs.gz +0 -0
- package/library/crystal-DyuLTqLs.mjs +0 -398
- package/library/crystal-DyuLTqLs.mjs.br +0 -0
- package/library/crystal-DyuLTqLs.mjs.gz +0 -0
- package/library/css-c-jst79C.mjs +0 -1783
- package/library/css-c-jst79C.mjs.br +0 -0
- package/library/css-c-jst79C.mjs.gz +0 -0
- package/library/cypher-Dlu_3r4V.mjs +0 -121
- package/library/cypher-Dlu_3r4V.mjs.br +0 -0
- package/library/cypher-Dlu_3r4V.mjs.gz +0 -0
- package/library/d-UURgV0Ux.mjs +0 -179
- package/library/d-UURgV0Ux.mjs.br +0 -0
- package/library/d-UURgV0Ux.mjs.gz +0 -0
- package/library/diff-B_Bi2Crb.mjs +0 -25
- package/library/dockerfile-D1TIj5jA.mjs +0 -201
- package/library/dockerfile-D1TIj5jA.mjs.br +0 -0
- package/library/dockerfile-D1TIj5jA.mjs.gz +0 -0
- package/library/dtd-Dy74G54E.mjs +0 -114
- package/library/dtd-Dy74G54E.mjs.br +0 -0
- package/library/dtd-Dy74G54E.mjs.gz +0 -0
- package/library/dylan-TSb-Nfix.mjs +0 -314
- package/library/dylan-TSb-Nfix.mjs.br +0 -0
- package/library/dylan-TSb-Nfix.mjs.gz +0 -0
- package/library/ebnf-DAomQUbD.mjs +0 -139
- package/library/ebnf-DAomQUbD.mjs.br +0 -0
- package/library/ebnf-DAomQUbD.mjs.gz +0 -0
- package/library/ecl-B59qGGVg.mjs +0 -178
- package/library/ecl-B59qGGVg.mjs.br +0 -0
- package/library/ecl-B59qGGVg.mjs.gz +0 -0
- package/library/eiffel-Dze7nlu3.mjs +0 -134
- package/library/eiffel-Dze7nlu3.mjs.br +0 -0
- package/library/eiffel-Dze7nlu3.mjs.gz +0 -0
- package/library/elm-DG7jkhNZ.mjs +0 -176
- package/library/elm-DG7jkhNZ.mjs.br +0 -0
- package/library/elm-DG7jkhNZ.mjs.gz +0 -0
- package/library/entry-EvdwF4XL.mjs.br +0 -0
- package/library/entry-EvdwF4XL.mjs.gz +0 -0
- package/library/erlang-BO6gOnGA.mjs +0 -674
- package/library/erlang-BO6gOnGA.mjs.br +0 -0
- package/library/erlang-BO6gOnGA.mjs.gz +0 -0
- package/library/factor-ne7PWKF0.mjs +0 -65
- package/library/factor-ne7PWKF0.mjs.br +0 -0
- package/library/factor-ne7PWKF0.mjs.gz +0 -0
- package/library/fcl-CDDUNjTj.mjs +0 -141
- package/library/fcl-CDDUNjTj.mjs.br +0 -0
- package/library/fcl-CDDUNjTj.mjs.gz +0 -0
- package/library/floating-ui.dom-CfpJisRd.mjs +0 -1401
- package/library/floating-ui.dom-CfpJisRd.mjs.br +0 -0
- package/library/floating-ui.dom-CfpJisRd.mjs.gz +0 -0
- package/library/forth-B9D2JCeE.mjs +0 -116
- package/library/forth-B9D2JCeE.mjs.br +0 -0
- package/library/forth-B9D2JCeE.mjs.gz +0 -0
- package/library/fortran-CAG2BFbe.mjs +0 -467
- package/library/fortran-CAG2BFbe.mjs.br +0 -0
- package/library/fortran-CAG2BFbe.mjs.gz +0 -0
- package/library/gas-d3KEcW3x.mjs +0 -294
- package/library/gas-d3KEcW3x.mjs.br +0 -0
- package/library/gas-d3KEcW3x.mjs.gz +0 -0
- package/library/gherkin-DhZlEZiy.mjs +0 -115
- package/library/gherkin-DhZlEZiy.mjs.br +0 -0
- package/library/gherkin-DhZlEZiy.mjs.gz +0 -0
- package/library/groovy-CpwJiBl7.mjs +0 -223
- package/library/groovy-CpwJiBl7.mjs.br +0 -0
- package/library/groovy-CpwJiBl7.mjs.gz +0 -0
- package/library/haskell-BlGBCCe3.mjs +0 -459
- package/library/haskell-BlGBCCe3.mjs.br +0 -0
- package/library/haskell-BlGBCCe3.mjs.gz +0 -0
- package/library/haxe-7MlzfeYV.mjs +0 -514
- package/library/haxe-7MlzfeYV.mjs.br +0 -0
- package/library/haxe-7MlzfeYV.mjs.gz +0 -0
- package/library/http-BqypyemW.mjs +0 -79
- package/library/http-BqypyemW.mjs.br +0 -0
- package/library/http-BqypyemW.mjs.gz +0 -0
- package/library/idl-4HIGJlDI.mjs +0 -985
- package/library/idl-4HIGJlDI.mjs.br +0 -0
- package/library/idl-4HIGJlDI.mjs.gz +0 -0
- package/library/index-4jX79S-P.mjs +0 -150
- package/library/index-4jX79S-P.mjs.br +0 -0
- package/library/index-4jX79S-P.mjs.gz +0 -0
- package/library/index-9LYQtr4h.mjs +0 -328
- package/library/index-9LYQtr4h.mjs.br +0 -0
- package/library/index-9LYQtr4h.mjs.gz +0 -0
- package/library/index-BAAqkdMI.mjs +0 -96
- package/library/index-BAAqkdMI.mjs.br +0 -0
- package/library/index-BAAqkdMI.mjs.gz +0 -0
- package/library/index-Ba4OKxCw.mjs +0 -323
- package/library/index-Ba4OKxCw.mjs.br +0 -0
- package/library/index-Ba4OKxCw.mjs.gz +0 -0
- package/library/index-Bs6_pkvd.mjs +0 -688
- package/library/index-Bs6_pkvd.mjs.br +0 -0
- package/library/index-Bs6_pkvd.mjs.gz +0 -0
- package/library/index-BulKMlHH.mjs +0 -79
- package/library/index-BulKMlHH.mjs.br +0 -0
- package/library/index-BulKMlHH.mjs.gz +0 -0
- package/library/index-CWRhvk2r.mjs +0 -156
- package/library/index-CWRhvk2r.mjs.br +0 -0
- package/library/index-CWRhvk2r.mjs.gz +0 -0
- package/library/index-CkrjnzoC.mjs +0 -384
- package/library/index-CkrjnzoC.mjs.br +0 -0
- package/library/index-CkrjnzoC.mjs.gz +0 -0
- package/library/index-DLB9KgZi.mjs +0 -301
- package/library/index-DLB9KgZi.mjs.br +0 -0
- package/library/index-DLB9KgZi.mjs.gz +0 -0
- package/library/index-DQ5kp4Rw.mjs +0 -114
- package/library/index-DQ5kp4Rw.mjs.br +0 -0
- package/library/index-DQ5kp4Rw.mjs.gz +0 -0
- package/library/index-DZkxoGn3.mjs +0 -81
- package/library/index-DZkxoGn3.mjs.br +0 -0
- package/library/index-DZkxoGn3.mjs.gz +0 -0
- package/library/index-EVu8jdcY.mjs +0 -405
- package/library/index-EVu8jdcY.mjs.br +0 -0
- package/library/index-EVu8jdcY.mjs.gz +0 -0
- package/library/index-Ftvywh65.mjs +0 -177
- package/library/index-Ftvywh65.mjs.br +0 -0
- package/library/index-Ftvywh65.mjs.gz +0 -0
- package/library/index-PFn9GZaw.mjs +0 -60
- package/library/index-PFn9GZaw.mjs.br +0 -0
- package/library/index-PFn9GZaw.mjs.gz +0 -0
- package/library/index-ef4WGzk3.mjs +0 -678
- package/library/index-ef4WGzk3.mjs.br +0 -0
- package/library/index-ef4WGzk3.mjs.gz +0 -0
- package/library/index-emKs9XKV.mjs +0 -35242
- package/library/index-emKs9XKV.mjs.br +0 -0
- package/library/index-emKs9XKV.mjs.gz +0 -0
- package/library/index-kYmjso4n.mjs +0 -311
- package/library/index-kYmjso4n.mjs.br +0 -0
- package/library/index-kYmjso4n.mjs.gz +0 -0
- package/library/index.es-DQ0tvEe9.mjs +0 -25486
- package/library/index.es-DQ0tvEe9.mjs.br +0 -0
- package/library/index.es-DQ0tvEe9.mjs.gz +0 -0
- package/library/javascript-C3MnDRiU.mjs +0 -994
- package/library/javascript-C3MnDRiU.mjs.br +0 -0
- package/library/javascript-C3MnDRiU.mjs.gz +0 -0
- package/library/jinja2-2Vo2sGef.mjs +0 -208
- package/library/jinja2-2Vo2sGef.mjs.br +0 -0
- package/library/jinja2-2Vo2sGef.mjs.gz +0 -0
- package/library/julia-Bs6JJhYG.mjs +0 -407
- package/library/julia-Bs6JJhYG.mjs.br +0 -0
- package/library/julia-Bs6JJhYG.mjs.gz +0 -0
- package/library/livescript-DmzgM3Yt.mjs +0 -296
- package/library/livescript-DmzgM3Yt.mjs.br +0 -0
- package/library/livescript-DmzgM3Yt.mjs.gz +0 -0
- package/library/lua-8cJgIlqe.mjs +0 -256
- package/library/lua-8cJgIlqe.mjs.br +0 -0
- package/library/lua-8cJgIlqe.mjs.gz +0 -0
- package/library/mathematica-DNLOL9PQ.mjs +0 -110
- package/library/mathematica-DNLOL9PQ.mjs.br +0 -0
- package/library/mathematica-DNLOL9PQ.mjs.gz +0 -0
- package/library/mbox-Ga7d4MMN.mjs +0 -117
- package/library/mbox-Ga7d4MMN.mjs.br +0 -0
- package/library/mbox-Ga7d4MMN.mjs.gz +0 -0
- package/library/mirc-Dma3B8rS.mjs +0 -107
- package/library/mirc-Dma3B8rS.mjs.br +0 -0
- package/library/mirc-Dma3B8rS.mjs.gz +0 -0
- package/library/mllike-DHn7xckP.mjs +0 -334
- package/library/mllike-DHn7xckP.mjs.br +0 -0
- package/library/mllike-DHn7xckP.mjs.gz +0 -0
- package/library/modelica-0d55jYY0.mjs +0 -147
- package/library/modelica-0d55jYY0.mjs.br +0 -0
- package/library/modelica-0d55jYY0.mjs.gz +0 -0
- package/library/mscgen-DdqZYINH.mjs +0 -135
- package/library/mscgen-DdqZYINH.mjs.br +0 -0
- package/library/mscgen-DdqZYINH.mjs.gz +0 -0
- package/library/mumps-Btr8VblO.mjs +0 -93
- package/library/mumps-Btr8VblO.mjs.br +0 -0
- package/library/mumps-Btr8VblO.mjs.gz +0 -0
- package/library/nginx-DTDtBDVN.mjs +0 -141
- package/library/nginx-DTDtBDVN.mjs.br +0 -0
- package/library/nginx-DTDtBDVN.mjs.gz +0 -0
- package/library/nsis-BnYeX9pP.mjs +0 -62
- package/library/nsis-BnYeX9pP.mjs.br +0 -0
- package/library/nsis-BnYeX9pP.mjs.gz +0 -0
- package/library/ntriples-CvgOYMpL.mjs +0 -153
- package/library/ntriples-CvgOYMpL.mjs.br +0 -0
- package/library/ntriples-CvgOYMpL.mjs.gz +0 -0
- package/library/octave-DYBj3-tl.mjs +0 -200
- package/library/octave-DYBj3-tl.mjs.br +0 -0
- package/library/octave-DYBj3-tl.mjs.gz +0 -0
- package/library/oz-R_e8WMIi.mjs +0 -231
- package/library/oz-R_e8WMIi.mjs.br +0 -0
- package/library/oz-R_e8WMIi.mjs.gz +0 -0
- package/library/pascal-GD8iposT.mjs +0 -105
- package/library/pascal-GD8iposT.mjs.br +0 -0
- package/library/pascal-GD8iposT.mjs.gz +0 -0
- package/library/perl-DL9mHpoi.mjs +0 -1105
- package/library/perl-DL9mHpoi.mjs.br +0 -0
- package/library/perl-DL9mHpoi.mjs.gz +0 -0
- package/library/pig-C_4T4YIV.mjs +0 -101
- package/library/pig-C_4T4YIV.mjs.br +0 -0
- package/library/pig-C_4T4YIV.mjs.gz +0 -0
- package/library/powershell-B0suO7Vd.mjs +0 -328
- package/library/powershell-B0suO7Vd.mjs.br +0 -0
- package/library/powershell-B0suO7Vd.mjs.gz +0 -0
- package/library/properties-BR-vP1aU.mjs +0 -58
- package/library/properties-BR-vP1aU.mjs.br +0 -0
- package/library/properties-BR-vP1aU.mjs.gz +0 -0
- package/library/protobuf-BxgpyhoW.mjs +0 -77
- package/library/protobuf-BxgpyhoW.mjs.br +0 -0
- package/library/protobuf-BxgpyhoW.mjs.gz +0 -0
- package/library/pug-DGCLwxp4.mjs +0 -405
- package/library/pug-DGCLwxp4.mjs.br +0 -0
- package/library/pug-DGCLwxp4.mjs.gz +0 -0
- package/library/puppet-Bdao66PW.mjs +0 -137
- package/library/puppet-Bdao66PW.mjs.br +0 -0
- package/library/puppet-Bdao66PW.mjs.gz +0 -0
- package/library/python-CvWbmiX4.mjs +0 -427
- package/library/python-CvWbmiX4.mjs.br +0 -0
- package/library/python-CvWbmiX4.mjs.gz +0 -0
- package/library/q-819KmTeu.mjs +0 -128
- package/library/q-819KmTeu.mjs.br +0 -0
- package/library/q-819KmTeu.mjs.gz +0 -0
- package/library/r-V7nswm59.mjs +0 -170
- package/library/r-V7nswm59.mjs.br +0 -0
- package/library/r-V7nswm59.mjs.gz +0 -0
- package/library/rpm-C-DLY-If.mjs +0 -109
- package/library/rpm-C-DLY-If.mjs.br +0 -0
- package/library/rpm-C-DLY-If.mjs.gz +0 -0
- package/library/ruby-JDKLJNK0.mjs +0 -330
- package/library/ruby-JDKLJNK0.mjs.br +0 -0
- package/library/ruby-JDKLJNK0.mjs.gz +0 -0
- package/library/sas-D2UG-yhZ.mjs +0 -207
- package/library/sas-D2UG-yhZ.mjs.br +0 -0
- package/library/sas-D2UG-yhZ.mjs.gz +0 -0
- package/library/scheme-BKzrkGJD.mjs +0 -222
- package/library/scheme-BKzrkGJD.mjs.br +0 -0
- package/library/scheme-BKzrkGJD.mjs.gz +0 -0
- package/library/shell-BlsXDxCn.mjs +0 -222
- package/library/shell-BlsXDxCn.mjs.br +0 -0
- package/library/shell-BlsXDxCn.mjs.gz +0 -0
- package/library/sieve-CjwBwOY5.mjs +0 -135
- package/library/sieve-CjwBwOY5.mjs.br +0 -0
- package/library/sieve-CjwBwOY5.mjs.gz +0 -0
- package/library/simple-mode-zrLq6ojR.mjs +0 -129
- package/library/simple-mode-zrLq6ojR.mjs.br +0 -0
- package/library/simple-mode-zrLq6ojR.mjs.gz +0 -0
- package/library/smalltalk-BOIGQuhN.mjs +0 -121
- package/library/smalltalk-BOIGQuhN.mjs.br +0 -0
- package/library/smalltalk-BOIGQuhN.mjs.gz +0 -0
- package/library/solr-CwD7U71z.mjs +0 -69
- package/library/solr-CwD7U71z.mjs.br +0 -0
- package/library/solr-CwD7U71z.mjs.gz +0 -0
- package/library/sparql-DYskk2vE.mjs +0 -249
- package/library/sparql-DYskk2vE.mjs.br +0 -0
- package/library/sparql-DYskk2vE.mjs.gz +0 -0
- package/library/spreadsheet-Bgtt3oLP.mjs +0 -87
- package/library/spreadsheet-Bgtt3oLP.mjs.br +0 -0
- package/library/spreadsheet-Bgtt3oLP.mjs.gz +0 -0
- package/library/sql-BSrOzCRI.mjs +0 -354
- package/library/sql-BSrOzCRI.mjs.br +0 -0
- package/library/sql-BSrOzCRI.mjs.gz +0 -0
- package/library/stex-B6LNC55o.mjs +0 -231
- package/library/stex-B6LNC55o.mjs.br +0 -0
- package/library/stex-B6LNC55o.mjs.gz +0 -0
- package/library/style.css +0 -1
- package/library/style.css.br +0 -0
- package/library/style.css.gz +0 -0
- package/library/stylus-BkS-boTH.mjs +0 -565
- package/library/stylus-BkS-boTH.mjs.br +0 -0
- package/library/stylus-BkS-boTH.mjs.gz +0 -0
- package/library/super.mjs +0 -168
- package/library/super.mjs.br +0 -0
- package/library/super.mjs.gz +0 -0
- package/library/super.umd.js +0 -48
- package/library/super.umd.js.br +0 -0
- package/library/super.umd.js.gz +0 -0
- package/library/swift-FRZi1uvB.mjs +0 -291
- package/library/swift-FRZi1uvB.mjs.br +0 -0
- package/library/swift-FRZi1uvB.mjs.gz +0 -0
- package/library/tcl-CUcaCdmq.mjs +0 -114
- package/library/tcl-CUcaCdmq.mjs.br +0 -0
- package/library/tcl-CUcaCdmq.mjs.gz +0 -0
- package/library/textile-BnFpjsrl.mjs +0 -414
- package/library/textile-BnFpjsrl.mjs.br +0 -0
- package/library/textile-BnFpjsrl.mjs.gz +0 -0
- package/library/tiddlywiki-CjprD-Qp.mjs +0 -218
- package/library/tiddlywiki-CjprD-Qp.mjs.br +0 -0
- package/library/tiddlywiki-CjprD-Qp.mjs.gz +0 -0
- package/library/tiki-B4EPSQ1G.mjs +0 -265
- package/library/tiki-B4EPSQ1G.mjs.br +0 -0
- package/library/tiki-B4EPSQ1G.mjs.gz +0 -0
- package/library/toml-CrLTxh7K.mjs +0 -75
- package/library/toml-CrLTxh7K.mjs.br +0 -0
- package/library/toml-CrLTxh7K.mjs.gz +0 -0
- package/library/troff-E1bJ0PPL.mjs +0 -61
- package/library/troff-E1bJ0PPL.mjs.br +0 -0
- package/library/troff-E1bJ0PPL.mjs.gz +0 -0
- package/library/ttcn-cfg-Dc39-fIP.mjs +0 -133
- package/library/ttcn-cfg-Dc39-fIP.mjs.br +0 -0
- package/library/ttcn-cfg-Dc39-fIP.mjs.gz +0 -0
- package/library/ttcn-tKd4HLu4.mjs +0 -192
- package/library/ttcn-tKd4HLu4.mjs.br +0 -0
- package/library/ttcn-tKd4HLu4.mjs.gz +0 -0
- package/library/turtle-Dq7-1WAf.mjs +0 -124
- package/library/turtle-Dq7-1WAf.mjs.br +0 -0
- package/library/turtle-Dq7-1WAf.mjs.gz +0 -0
- package/library/types/components/VcExcelUploader/VcExcelFileProcessLoader.vue.d.ts +0 -68
- package/library/types/components/VcExcelUploader/VcExcelFileUploadBlock.vue.d.ts +0 -70
- package/library/types/components/VcExcelUploader/VcExcelFileUploader.vue.d.ts +0 -179
- package/library/types/components/VcExcelUploader/VcFileImportErrorsCard.vue.d.ts +0 -31
- package/library/types/components/VcExcelUploader/VcFileImportParseResultBlock.vue.d.ts +0 -69
- package/library/types/components/VcExcelUploader/VcFileImportResultBindData.vue.d.ts +0 -60
- package/library/types/components/VcExcelUploader/VcFileImportResultBindDataTable.vue.d.ts +0 -40
- package/library/types/components/VcHtmlEditor/VcHtmlEditor.vue.d.ts +0 -63
- package/library/types/components/VcHtmlEditor/VcHtmlEditorToolbar.vue.d.ts +0 -43
- package/library/types/components/VcHtmlEditor/htmlEditor.config.d.ts +0 -19
- package/library/types/components/VcImageUploader/VcImageUploader.vue.d.ts +0 -74
- package/library/types/components/VcImageUploader/index.d.ts +0 -2
- package/library/types/components/VcJsonSchema/Components/ImportJsonSchemaModal.vue.d.ts +0 -25
- package/library/types/components/VcJsonSchema/Components/JsonCodeMirror.vue.d.ts +0 -24
- package/library/types/components/VcJsonSchema/Components/JsonSchemaEditor.vue.d.ts +0 -86
- package/library/types/components/VcJsonSchema/Components/JsonSchemaManageModal.vue.d.ts +0 -28
- package/library/types/components/VcJsonSchema/PropertySetup/JsonSchemaPropertyModal.vue.d.ts +0 -39
- package/library/types/components/VcJsonSchema/VcJsonSchema.vue.d.ts +0 -49
- package/library/types/components/VcJsonSchema/helpers/jsonSchema.enum.d.ts +0 -9
- package/library/types/components/VcJsonSchema/helpers/jsonSchema.helper.d.ts +0 -3
- package/library/types/components/VcMdEditor/ParameterNode.vue.d.ts +0 -6
- package/library/types/components/VcMdEditor/VcMdEditor.vue.d.ts +0 -30
- package/library/types/components/VcMdEditor/VcMdEditorContent.vue.d.ts +0 -82
- package/library/types/components/VcMdEditor/VcMdEditorToolbar.vue.d.ts +0 -27
- package/library/types/components/VcMdEditor/mdEditor.config.d.ts +0 -91
- package/library/types/components/VcMdEditor/rtlCursorPlugin.d.ts +0 -8
- package/library/types/components/VcPdfViewer/VcPdfDocument.vue.d.ts +0 -40
- package/library/types/components/VcPdfViewer/VcPdfDocumentCard.vue.d.ts +0 -47
- package/library/types/components/VcPdfViewer/VcPdfDocumentPage.vue.d.ts +0 -55
- package/library/types/components/VcPdfViewer/VcPdfDocumentViewerFooter.vue.d.ts +0 -63
- package/library/types/components/VcPdfViewer/VcPdfDocumentViewerToolbar.vue.d.ts +0 -28
- package/library/types/components/VcPdfViewer/pdfjslib.d.ts +0 -4
- package/library/types/components/VcPdfViewer/utils.d.ts +0 -7
- package/library/types/components/VcSipFlow/VcSipFlow.vue.d.ts +0 -97
- package/library/types/components/VcSipFlow/index.d.ts +0 -3
- package/library/types/components/VcSipFlow/sip-flow.options.d.ts +0 -77
- package/library/types/components/VcSoundplayer/VcPlayerPlayStopButton.vue.d.ts +0 -55
- package/library/types/components/VcSoundplayer/VcPlayerPlaybackRate.vue.d.ts +0 -35
- package/library/types/components/VcSoundplayer/VcPlayerPlaybackRatePopup.vue.d.ts +0 -40
- package/library/types/components/VcSoundplayer/VcPlayerSkipButtons.vue.d.ts +0 -52
- package/library/types/components/VcSoundplayer/VcSoundCurrentTime.vue.d.ts +0 -2
- package/library/types/components/VcSoundplayer/VcSoundDuration.vue.d.ts +0 -2
- package/library/types/components/VcSoundplayer/VcSoundPlayer.vue.d.ts +0 -96
- package/library/types/components/VcSoundplayer/VcSoundPlayerError.vue.d.ts +0 -21
- package/library/types/components/VcSoundplayer/VcSoundPlayerProgress.vue.d.ts +0 -15
- package/library/types/components/VcSoundplayer/VcSoundPlayerWrapper.vue.d.ts +0 -208
- package/library/types/components/VcSoundplayer/VcSoundVolume.vue.d.ts +0 -44
- package/library/types/components/VcSoundplayer/player.options.d.ts +0 -10
- package/library/types/components/VcSoundplayer/soundPlayerParts.d.ts +0 -11
- package/library/types/components/VcSoundplayer/useSoundPlayerProvideInject.d.ts +0 -3
- package/library/types/components/VcSystemUserPrompt/VcSystemUserPrompt.vue.d.ts +0 -41
- package/library/types/components/VcSystemUserPrompt/enum.d.ts +0 -13
- package/library/types/components/VcTour/VcTour.vue.d.ts +0 -70
- package/library/types/components/exports.d.ts +0 -64
- package/library/types/components/heavy-components.d.ts +0 -41
- package/library/types/composables/useCopyButton.d.ts +0 -5
- package/library/types/composables/useVModel.d.ts +0 -1
- package/library/types/entity/components/Button/VcEntityAddButton.vue.d.ts +0 -41
- package/library/types/entity/components/Button/VcEntityCancelButton.vue.d.ts +0 -54
- package/library/types/entity/components/Button/VcEntityDeleteIconButton.vue.d.ts +0 -48
- package/library/types/entity/components/Button/VcEntityEditIconButton.vue.d.ts +0 -36
- package/library/types/entity/components/Button/VcEntityRestoreButton.vue.d.ts +0 -54
- package/library/types/entity/components/Button/VcEntityStatusButton.vue.d.ts +0 -48
- package/library/types/entity/components/Form/VcBaseVerticalForm.vue.d.ts +0 -55
- package/library/types/entity/components/Form/VcEntityEditPageForm.vue.d.ts +0 -59
- package/library/types/entity/components/Form/VcEntityVerticalCreateForm.vue.d.ts +0 -50
- package/library/types/entity/components/Form/VcEntityVerticalEditForm.vue.d.ts +0 -62
- package/library/types/entity/components/Table/VcEntityListTable.vue.d.ts +0 -146
- package/library/types/entity/components/Tabs/VcEntityEditableTabs.vue.d.ts +0 -165
- package/library/types/entity/components/index.d.ts +0 -29
- package/library/types/entity/composable/useEditableTabs.d.ts +0 -12
- package/library/types/entity/composable/useEntityListTableExternalPaginate.d.ts +0 -17
- package/library/types/entity/composable/useEntityProvideInject.d.ts +0 -24
- package/library/types/entity/composable/useEntityTabsProviseInject.d.ts +0 -3
- package/library/types/entity/index.d.ts +0 -1
- package/library/types/entity/services/BaseEntityService.d.ts +0 -105
- package/library/types/entity/services/index.d.ts +0 -1
- package/library/types/entry.d.ts +0 -27
- package/library/types/tokens/tokens.d.ts +0 -13
- package/library/types/types/Entity.types.d.ts +0 -5
- package/library/types/types/Tabs.d.ts +0 -23
- package/library/types/types/VcSipFlow.types.d.ts +0 -85
- package/library/types/types/VcSoundPlayer.types.d.ts +0 -34
- package/library/types/types/VcSystemUserPrompt.types.d.ts +0 -4
- package/library/types/types/VcTour.types.d.ts +0 -53
- package/library/types/types/basic.types.d.ts +0 -49
- package/library/types/types/heavy-components.types.d.ts +0 -54
- package/library/types/utils/excelParser/configs.d.ts +0 -5
- package/library/types/utils/excelParser/helper.d.ts +0 -20
- package/library/types/utils/excelParser/parser.d.ts +0 -244
- package/library/types/utils/excelParser/validations.d.ts +0 -27
- package/library/types/utils/isValidTime.d.ts +0 -2
- package/library/types/utils/mime-types.d.ts +0 -12
- package/library/vb-Dp90gtsv.mjs +0 -196
- package/library/vb-Dp90gtsv.mjs.br +0 -0
- package/library/vb-Dp90gtsv.mjs.gz +0 -0
- package/library/vbscript-CI6_mxxU.mjs +0 -479
- package/library/vbscript-CI6_mxxU.mjs.br +0 -0
- package/library/vbscript-CI6_mxxU.mjs.gz +0 -0
- package/library/velocity-BwIZK1TH.mjs +0 -149
- package/library/velocity-BwIZK1TH.mjs.br +0 -0
- package/library/velocity-BwIZK1TH.mjs.gz +0 -0
- package/library/verilog-DDCYnHN8.mjs +0 -430
- package/library/verilog-DDCYnHN8.mjs.br +0 -0
- package/library/verilog-DDCYnHN8.mjs.gz +0 -0
- package/library/vhdl-DCkMIyT9.mjs +0 -158
- package/library/vhdl-DCkMIyT9.mjs.br +0 -0
- package/library/vhdl-DCkMIyT9.mjs.gz +0 -0
- package/library/webidl-BTLTThCm.mjs +0 -204
- package/library/webidl-BTLTThCm.mjs.br +0 -0
- package/library/webidl-BTLTThCm.mjs.gz +0 -0
- package/library/xquery-BgiOC5Ce.mjs +0 -525
- package/library/xquery-BgiOC5Ce.mjs.br +0 -0
- package/library/xquery-BgiOC5Ce.mjs.gz +0 -0
- package/library/yacas-b5lAVEIl.mjs +0 -130
- package/library/yacas-b5lAVEIl.mjs.br +0 -0
- package/library/yacas-b5lAVEIl.mjs.gz +0 -0
- package/library/z80-BZV19vqv.mjs +0 -93
- package/library/z80-BZV19vqv.mjs.br +0 -0
- package/library/z80-BZV19vqv.mjs.gz +0 -0
- package/src/assets/sass/main/_icons.scss +0 -36
- package/src/components/VcButton/VcButton.scss +0 -191
- package/src/components/VcButton/VcButtonIcon.scss +0 -179
- package/src/components/VcInput/VcInput.scss +0 -100
- package/src/components/VcModal/VcModal.scss +0 -232
- package/src/components/VcPopover/VcPopover.scss +0 -10
- package/src/components/VcSelect/VcSelect.scss +0 -96
- package/src/components/VcSelect/VcSelectMixin.scss +0 -39
- package/src/components/VcSelect/VcSelectOption.scss +0 -29
- package/src/components/VcSelect/VcSelectVariables.scss +0 -1
- package/src/enum/constants.ts +0 -50
- package/src/enum/countries.ts +0 -1277
- package/src/enum/dataTestAttributes.ts +0 -9
- package/src/enum/icons.ts +0 -8919
- package/src/enum/inputDefaults.ts +0 -8
- package/src/utils/makeDataTestAttributeValue.ts +0 -5
- package/library/{types → core/types}/components/VcAutocomplete/VcAutocomplete.vue.d.ts +77 -77
- package/library/{types → core/types}/components/VcButton/VcButton.vue.d.ts +2 -2
- package/library/{types → core/types}/components/VcButton/VcButtonIcon.vue.d.ts +1 -1
- package/library/{types → core/types}/components/VcButton/VcToggleButton.vue.d.ts +3 -3
- package/library/{types → core/types}/components/VcCard/VcCard.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcCheckbox/VcCheckbox.vue.d.ts +15 -15
- package/library/{types → core/types}/components/VcCheckbox/VcCheckboxGroupEl.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcCheckboxGroup/VcCheckboxGroup.vue.d.ts +9 -9
- package/library/{types → core/types}/components/VcCollapse/VcCollapse.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcCollapse/VcCollapseItem.vue.d.ts +1 -1
- package/library/{types → core/types}/components/VcCollapse/VcCollapseTransition.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcColorPicker/VcColorPicker.vue.d.ts +2 -2
- package/library/{types → core/types}/components/VcDatePicker/VcDatePicker.vue.d.ts +18 -18
- package/library/{types → core/types}/components/VcDatePickerPanel/VcDatePickerPanel.vue.d.ts +6 -6
- package/library/{types → core/types}/components/VcDatetimeRangePicker/VcDatetimeRangePicker.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcDelimitedList/VcDelimitedList.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcDropdown/VcDropdownItem.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcExtendedDatetimeRangePicker/ExtendedDatetimeRangePickerPart.vue.d.ts +1 -1
- package/library/{types → core/types}/components/VcExtendedDatetimeRangePicker/ExtendedDatetimeRangePickerRelative.vue.d.ts +1 -1
- package/library/{types → core/types}/components/VcExtendedDatetimeRangePicker/VcExtendedDatetimeRangePicker.vue.d.ts +4 -4
- package/library/{types → core/types}/components/VcExtendedDatetimeRangePicker/VcExtendedDatetimeRangePickerQuickOptionsSelection.vue.d.ts +1 -1
- package/library/{types → core/types}/components/VcExtendedDatetimeRangePicker/composable.d.ts +0 -0
- package/library/{types → core/types}/components/VcExtendedDatetimeRangePicker/enum.d.ts +0 -0
- package/library/{types → core/types}/components/VcFileUploader/VcFileUploader.vue.d.ts +2 -2
- package/library/{types → core/types}/components/VcForm/UiComponents/VcInputError.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcForm/UiComponents/VcInputLabel.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcForm/VcForm.vue.d.ts +1 -1
- package/library/{types → core/types}/components/VcForm/VcFormItem.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcHyperLink/VcHyperLink.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcIconPicker/VcIconPicker.vue.d.ts +3 -3
- package/library/{types → core/types}/components/VcInput/VcInput.vue.d.ts +5 -5
- package/library/{types → core/types}/components/VcInputNumber/VcInputNumber.vue.d.ts +3 -3
- package/library/{types → core/types}/components/VcLoading/Loaders/Circles.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcLoading/Loaders/DotSpinner.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcLoading/Loaders/LdsSpinner.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcLoading/Loaders/LoadIcon.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcLoading/Loaders/Stretch.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcLoading/Loaders/index.d.ts +0 -0
- package/library/{types → core/types}/components/VcLoading/VcLoading.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcLoading/enum.d.ts +0 -0
- package/library/{types → core/types}/components/VcModal/VcConfirmModal.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcModal/VcModal.vue.d.ts +2 -2
- package/library/{types → core/types}/components/VcNotification/VcNotification.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcNotification/VcNotificationMessage.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcOtpInput/VcOtpInput.vue.d.ts +6 -6
- package/library/{types → core/types}/components/VcPagination/VcPagination.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcPagination/VcPaginationButton.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcPhoneInput/VcFlagLabel.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcPhoneInput/VcPhoneInput.vue.d.ts +3 -3
- package/library/{types → core/types}/components/VcPopover/VcConfirmPopover.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcPopover/VcPopover.vue.d.ts +1 -1
- package/library/{types → core/types}/components/VcPopover/VcSelectPopover.vue.d.ts +6 -6
- package/library/{types → core/types}/components/VcProgress/VcProgress.vue.d.ts +1 -1
- package/library/{types → core/types}/components/VcProgress/VcProgressCircular.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcProgress/progress.options.d.ts +0 -0
- package/library/{types → core/types}/components/VcRadio/VcRadio.vue.d.ts +6 -6
- package/library/{types → core/types}/components/VcRadioButtons/VcRadioButtonsGroup.vue.d.ts +3 -3
- package/library/{types → core/types}/components/VcRadioGroup/VcRadioGroup.vue.d.ts +3 -3
- package/library/{types → core/types}/components/VcRadioTabs/UiComponents/VcRadioTabsNav.vue.d.ts +3 -3
- package/library/{types → core/types}/components/VcSegmented/VcSegmented.vue.d.ts +9 -9
- package/library/{types → core/types}/components/VcSelect/VcInfiniteScrollSelect.vue.d.ts +18 -18
- package/library/{types → core/types}/components/VcSelect/VcSelect.vue.d.ts +30 -30
- package/library/{types → core/types}/components/VcSelect/VcSelectGrouped.vue.d.ts +27 -27
- package/library/{types → core/types}/components/VcSelect/VcSelectOption.vue.d.ts +3 -3
- package/library/{types → core/types}/components/VcSkeletonLoader/Loaders/Card.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcSkeletonLoader/Loaders/Circle.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcSkeletonLoader/Loaders/Row.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcSkeletonLoader/Loaders/Square.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcSkeletonLoader/Loaders/Text.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcSkeletonLoader/VcSkeletonLoader.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcSlider/VcSlider.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcSplitButton/VcSplitButton.vue.d.ts +3 -3
- package/library/{types → core/types}/components/VcSwitch/VcSwitch.vue.d.ts +18 -18
- package/library/{types → core/types}/components/VcTable/VcTable.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcTable/tableOptions.d.ts +0 -0
- package/library/{types → core/types}/components/VcTabs/VcTabNav.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcTabs/VcTabPane.vue.d.ts +1 -1
- package/library/{types → core/types}/components/VcTabs/VcTabs.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcTag/VcTag.vue.d.ts +2 -2
- package/library/{types → core/types}/components/VcTagInput/VcTagInput.vue.d.ts +3 -3
- package/library/{types → core/types}/components/VcTimeInput/VcTimeInput.vue.d.ts +2 -2
- package/library/{types → core/types}/components/VcTree/VcTree.vue.d.ts +3 -3
- package/library/{types → core/types}/components/VcVerticalTabs/VcVerticalTabs.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcVerticalTabs/VerticalTabNav.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcViewSwitcher/VcViewSwitcher.vue.d.ts +6 -6
- /package/library/{types → core/types}/components/VcWizard/VcSummaryProgress.vue.d.ts +0 -0
- /package/library/{types → core/types}/components/VcWizard/VcSummaryStep.vue.d.ts +0 -0
- /package/library/{types → core/types}/components/VcWizard/VcWizard.vue.d.ts +0 -0
- /package/library/{types → core/types}/components/VcWizard/VcWizardNavigation.vue.d.ts +0 -0
- /package/library/{types → core/types}/components/VcWizard/VcWizardSummary.vue.d.ts +0 -0
- /package/library/{types → core/types}/composables/input/useInputBase.d.ts +0 -0
- /package/library/{types → core/types}/composables/input/useInputColor.d.ts +0 -0
- /package/library/{types → core/types}/composables/input/useInputError.d.ts +0 -0
- /package/library/{types → core/types}/composables/input/useInputLabel.d.ts +0 -0
- /package/library/{types → core/types}/composables/option/useOptionMethods.d.ts +0 -0
- /package/library/{types/entity/composable → core/types/composables}/useConfirmModal.d.ts +0 -0
- /package/library/{types → core/types}/composables/useRTL.d.ts +0 -0
- /package/library/{types → core/types}/directives/click-outside.d.ts +0 -0
- /package/library/{types → core/types}/directives/index.d.ts +0 -0
- /package/library/{types → core/types}/directives/input-mask.d.ts +0 -0
- /package/library/{types → core/types}/directives/long-press.d.ts +0 -0
- /package/library/{types → core/types}/directives/resize.d.ts +0 -0
- /package/library/{types → core/types}/enum/constants.d.ts +0 -0
- /package/library/{types → core/types}/enum/countries.d.ts +0 -0
- /package/library/{types → core/types}/enum/dataTestAttributes.d.ts +0 -0
- /package/library/{types → core/types}/enum/icons.d.ts +0 -0
- /package/library/{types → core/types}/enum/inputDefaults.d.ts +0 -0
- /package/library/{types → core/types}/font/FontLoader.d.ts +0 -0
- /package/library/{types → core/types}/font/index.d.ts +0 -0
- /package/library/{types → core/types}/localization/Localization.types.d.ts +0 -0
- /package/library/{types → core/types}/localization/index.d.ts +0 -0
- /package/library/{types/utils → core/types/services}/VcNotifyService.d.ts +0 -0
- /package/library/{types → core/types}/theme/index.d.ts +0 -0
- /package/library/{types → core/types}/theme/theme.types.d.ts +0 -0
- /package/library/{types → core/types}/tokens/element-plus.tokens.d.ts +0 -0
- /package/library/{types → core/types}/tokens/index.d.ts +0 -0
- /package/library/{types → core/types}/types/AppendToTarget.types.d.ts +0 -0
- /package/library/{types → core/types}/types/Dropdown.types.d.ts +0 -0
- /package/library/{types → core/types}/types/Entry.types.d.ts +0 -0
- /package/library/{types → core/types}/types/ExcelParser.types.d.ts +0 -0
- /package/library/{types → core/types}/types/OptionAndConfig.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcButton.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcCollapse.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcDatePicker.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcDatetimeRangePicker.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcDelimitedList.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcExtendedDatetimeRangePicker.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcFileUploader.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcForm.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcHyperLink.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcIconPicker.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcInput.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcLoading.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcMeterGroup.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcModal.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcNotification.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcOtpInput.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcPagination.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcPopover.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcProgress.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcRTL.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcRadioTabs.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcSelect.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcSkeletonLoader.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcSparkline.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcSplitButton.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcSwitch.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcTable.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcTag.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcTagInput.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcWizard.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VueGeneric.types.d.ts +0 -0
- /package/library/{types → core/types}/types/generic.types.d.ts +0 -0
- /package/library/{types → core/types}/types/icons.types.d.ts +0 -0
- /package/library/{types → core/types}/utils/DomHandler.d.ts +0 -0
- /package/library/{types → core/types}/utils/ToastEventBus.d.ts +0 -0
- /package/library/{types → core/types}/utils/UniqueComponentId.d.ts +0 -0
- /package/library/{types → core/types}/utils/ZIndexUtils.d.ts +0 -0
- /package/library/{types → core/types}/utils/dateTime.d.ts +0 -0
- /package/library/{types → core/types}/utils/element-plus-imports.d.ts +0 -0
- /package/library/{types → core/types}/utils/helpers.d.ts +0 -0
- /package/library/{types → core/types}/utils/makeDataTestAttributeValue.d.ts +0 -0
- /package/src/{theme → core/theme}/index.ts +0 -0
- /package/src/{theme → core/theme}/tailwindScheme.js +0 -0
- /package/src/{theme → core/theme}/theme.types.ts +0 -0
|
@@ -1,2216 +0,0 @@
|
|
|
1
|
-
import { ref, defineComponent, computed, watch, resolveComponent, createElementBlock, openBlock, createVNode, unref, withCtx, createTextVNode, toDisplayString, reactive, createBlock, createElementVNode, createCommentVNode, Fragment, renderList, normalizeClass, resolveDynamicComponent, mergeProps, nextTick, useCssVars, renderSlot, normalizeStyle } from "vue";
|
|
2
|
-
import { t as tVU, U as _sfc_main$6, V as _sfc_main$7, W as _sfc_main$8, X as _sfc_main$9, Y as _sfc_main$a, Z as cloneDeep, $ as _sfc_main$b, u as useVModel, a0 as _defineProperty, a1 as _arrayMap, a2 as _SetCache, a3 as _baseUnary, a4 as _cacheHas, a5 as _Symbol, a6 as isArray_1, a7 as isArguments_1, a8 as _arrayPush, a9 as _setToArray, aa as _Set, ab as isObjectLike_1, ac as isArrayLike_1, A as getDefaultExportFromCjs, ad as _arrayFilter, ae as eq_1, af as _baseAssignValue, ag as _baseGetTag, ah as _getPrototype, ai as _copyObject, aj as keysIn_1, ak as isBufferExports, al as isTypedArray_1, am as _copyArray, an as _cloneBufferExports, ao as _cloneTypedArray, ap as isObject_1, aq as isFunction_1, ar as _initCloneObject, as as _Stack, at as keys, au as isEqual, c as convertToUnit } from "./entry-EvdwF4XL.mjs";
|
|
3
|
-
import { jsonParseLinter, json } from "./index-DZkxoGn3.mjs";
|
|
4
|
-
import { o as oe } from "./index.es-DQ0tvEe9.mjs";
|
|
5
|
-
import { _ as _isIterateeCall } from "./_isIterateeCall-jrkoht6u.mjs";
|
|
6
|
-
function useCopyButton() {
|
|
7
|
-
const copyTextAction = ref(tVU.t("voicenterUi.general.copy"));
|
|
8
|
-
const copyDisabled = ref(false);
|
|
9
|
-
function onCopyHandler(data) {
|
|
10
|
-
if (navigator.clipboard && data) {
|
|
11
|
-
navigator.clipboard.writeText(data).then(() => {
|
|
12
|
-
copyTextAction.value = tVU.t("voicenterUi.general.copied");
|
|
13
|
-
copyDisabled.value = true;
|
|
14
|
-
setTimeout(() => {
|
|
15
|
-
copyTextAction.value = tVU.t("voicenterUi.general.copy");
|
|
16
|
-
copyDisabled.value = false;
|
|
17
|
-
}, 2e3);
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
return {
|
|
22
|
-
copyTextAction,
|
|
23
|
-
copyDisabled,
|
|
24
|
-
onCopyHandler
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
const _hoisted_1$5 = { class: "vc-json-code-mirror w-full" };
|
|
28
|
-
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
29
|
-
__name: "JsonCodeMirror",
|
|
30
|
-
props: {
|
|
31
|
-
modelValue: {}
|
|
32
|
-
},
|
|
33
|
-
emits: ["update:errorState", "update:modelValue"],
|
|
34
|
-
setup(__props, { expose: __expose, emit: __emit }) {
|
|
35
|
-
const { copyTextAction, copyDisabled, onCopyHandler } = useCopyButton();
|
|
36
|
-
const props = __props;
|
|
37
|
-
const isError = ref(false);
|
|
38
|
-
const emit = __emit;
|
|
39
|
-
const jsonCodeMirrorModel = computed({
|
|
40
|
-
get: () => JSON.stringify(props.modelValue, void 0, 2),
|
|
41
|
-
set: (value) => {
|
|
42
|
-
try {
|
|
43
|
-
isError.value = false;
|
|
44
|
-
const _data = JSON.parse(value);
|
|
45
|
-
emit("update:modelValue", _data);
|
|
46
|
-
} catch (e) {
|
|
47
|
-
isError.value = true;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
function onCopySchema() {
|
|
52
|
-
onCopyHandler(jsonCodeMirrorModel.value);
|
|
53
|
-
}
|
|
54
|
-
watch(
|
|
55
|
-
isError,
|
|
56
|
-
(val) => {
|
|
57
|
-
emit("update:errorState", val);
|
|
58
|
-
}
|
|
59
|
-
);
|
|
60
|
-
__expose({
|
|
61
|
-
hasError: () => isError.value
|
|
62
|
-
});
|
|
63
|
-
return (_ctx, _cache) => {
|
|
64
|
-
const _component_VcButton = resolveComponent("VcButton");
|
|
65
|
-
return openBlock(), createElementBlock("div", _hoisted_1$5, [
|
|
66
|
-
createVNode(unref(oe), {
|
|
67
|
-
ref: "codeMirrorRef",
|
|
68
|
-
modelValue: jsonCodeMirrorModel.value,
|
|
69
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => jsonCodeMirrorModel.value = $event),
|
|
70
|
-
lang: unref(json)(),
|
|
71
|
-
linter: unref(jsonParseLinter)(),
|
|
72
|
-
basic: "",
|
|
73
|
-
class: "h-full w-full text-xs"
|
|
74
|
-
}, null, 8, ["modelValue", "lang", "linter"]),
|
|
75
|
-
createVNode(_component_VcButton, {
|
|
76
|
-
disabled: unref(copyDisabled),
|
|
77
|
-
color: "primary",
|
|
78
|
-
size: "small",
|
|
79
|
-
type: "borderless",
|
|
80
|
-
class: "vc-json-code-mirror__copy",
|
|
81
|
-
onClick: onCopySchema
|
|
82
|
-
}, {
|
|
83
|
-
default: withCtx(() => [
|
|
84
|
-
createTextVNode(toDisplayString(unref(copyTextAction)), 1)
|
|
85
|
-
]),
|
|
86
|
-
_: 1
|
|
87
|
-
}, 8, ["disabled"])
|
|
88
|
-
]);
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
});
|
|
92
|
-
const mainProperties = ["title", "description", "$schema", "$id", "type", "properties", "items", "required"];
|
|
93
|
-
const schemaTypeOptions = [
|
|
94
|
-
{
|
|
95
|
-
label: tVU.t("voicenterUi.general.string"),
|
|
96
|
-
value: "string"
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
label: tVU.t("voicenterUi.general.number"),
|
|
100
|
-
value: "number"
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
label: tVU.t("voicenterUi.general.integer"),
|
|
104
|
-
value: "integer"
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
label: tVU.t("voicenterUi.general.object"),
|
|
108
|
-
value: "object"
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
label: tVU.t("voicenterUi.general.array"),
|
|
112
|
-
value: "array"
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
label: tVU.t("voicenterUi.general.boolean"),
|
|
116
|
-
value: "boolean"
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
label: tVU.t("voicenterUi.general.null"),
|
|
120
|
-
value: "null"
|
|
121
|
-
}
|
|
122
|
-
];
|
|
123
|
-
const schemaTypeSetupData = {
|
|
124
|
-
boolean: {},
|
|
125
|
-
string: {
|
|
126
|
-
minLength: {
|
|
127
|
-
name: tVU.t("voicenterUi.jsonSchema.minimumLength"),
|
|
128
|
-
type: "integer",
|
|
129
|
-
component: () => _sfc_main$7,
|
|
130
|
-
attributes: {
|
|
131
|
-
minValue: 0,
|
|
132
|
-
step: 1,
|
|
133
|
-
controlsRight: true,
|
|
134
|
-
size: "small"
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
maxLength: {
|
|
138
|
-
name: tVU.t("voicenterUi.jsonSchema.maximumLength"),
|
|
139
|
-
type: "integer",
|
|
140
|
-
component: () => _sfc_main$7,
|
|
141
|
-
attributes: {
|
|
142
|
-
minValue: 0,
|
|
143
|
-
step: 1,
|
|
144
|
-
controlsRight: true,
|
|
145
|
-
size: "small"
|
|
146
|
-
}
|
|
147
|
-
},
|
|
148
|
-
pattern: {
|
|
149
|
-
name: tVU.t("voicenterUi.jsonSchema.pattern"),
|
|
150
|
-
type: "string",
|
|
151
|
-
component: () => _sfc_main$a,
|
|
152
|
-
attributes: {
|
|
153
|
-
size: "small"
|
|
154
|
-
}
|
|
155
|
-
},
|
|
156
|
-
format: {
|
|
157
|
-
name: tVU.t("voicenterUi.jsonSchema.format"),
|
|
158
|
-
type: "array",
|
|
159
|
-
component: () => _sfc_main$9,
|
|
160
|
-
attributes: {
|
|
161
|
-
options: ["date", "date-time", "email", "hostname", "ipv4", "ipv6", "uri"],
|
|
162
|
-
fullWidth: true,
|
|
163
|
-
size: "small",
|
|
164
|
-
clearable: true
|
|
165
|
-
}
|
|
166
|
-
},
|
|
167
|
-
enum: {
|
|
168
|
-
name: tVU.t("voicenterUi.jsonSchema.enum"),
|
|
169
|
-
type: "array",
|
|
170
|
-
component: () => _sfc_main$8,
|
|
171
|
-
class: "lg:col-span-2",
|
|
172
|
-
attributes: {
|
|
173
|
-
compact: true,
|
|
174
|
-
tagSquare: true,
|
|
175
|
-
allowDuplicate: false,
|
|
176
|
-
tagMaxContent: 60,
|
|
177
|
-
size: "small"
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
},
|
|
181
|
-
object: {
|
|
182
|
-
minProperties: {
|
|
183
|
-
name: tVU.t("voicenterUi.jsonSchema.minimumProperties"),
|
|
184
|
-
type: "integer",
|
|
185
|
-
component: () => _sfc_main$7,
|
|
186
|
-
attributes: {
|
|
187
|
-
minValue: 0,
|
|
188
|
-
step: 1,
|
|
189
|
-
controlsRight: true,
|
|
190
|
-
size: "small"
|
|
191
|
-
}
|
|
192
|
-
},
|
|
193
|
-
maxProperties: {
|
|
194
|
-
name: tVU.t("voicenterUi.jsonSchema.maximumProperties"),
|
|
195
|
-
type: "integer",
|
|
196
|
-
component: () => _sfc_main$7,
|
|
197
|
-
attributes: {
|
|
198
|
-
minValue: 0,
|
|
199
|
-
step: 1,
|
|
200
|
-
controlsRight: true,
|
|
201
|
-
size: "small"
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
},
|
|
205
|
-
integer: {
|
|
206
|
-
minimum: {
|
|
207
|
-
name: tVU.t("voicenterUi.jsonSchema.minimum"),
|
|
208
|
-
type: "integer",
|
|
209
|
-
component: () => _sfc_main$7,
|
|
210
|
-
attributes: {
|
|
211
|
-
minValue: 0,
|
|
212
|
-
step: 1,
|
|
213
|
-
controlsRight: true,
|
|
214
|
-
size: "small"
|
|
215
|
-
}
|
|
216
|
-
},
|
|
217
|
-
maximum: {
|
|
218
|
-
name: tVU.t("voicenterUi.jsonSchema.maximum"),
|
|
219
|
-
type: "integer",
|
|
220
|
-
component: () => _sfc_main$7,
|
|
221
|
-
attributes: {
|
|
222
|
-
minValue: 0,
|
|
223
|
-
step: 1,
|
|
224
|
-
controlsRight: true,
|
|
225
|
-
size: "small"
|
|
226
|
-
}
|
|
227
|
-
},
|
|
228
|
-
exclusiveMinimum: {
|
|
229
|
-
name: tVU.t("voicenterUi.jsonSchema.exclusiveMinimum"),
|
|
230
|
-
type: "boolean",
|
|
231
|
-
component: () => _sfc_main$6,
|
|
232
|
-
attributes: {
|
|
233
|
-
values: [1, 0]
|
|
234
|
-
}
|
|
235
|
-
},
|
|
236
|
-
exclusiveMaximum: {
|
|
237
|
-
name: tVU.t("voicenterUi.jsonSchema.exclusiveMaximum"),
|
|
238
|
-
type: "boolean",
|
|
239
|
-
component: () => _sfc_main$6,
|
|
240
|
-
attributes: {
|
|
241
|
-
values: [1, 0]
|
|
242
|
-
}
|
|
243
|
-
},
|
|
244
|
-
enum: {
|
|
245
|
-
name: tVU.t("voicenterUi.jsonSchema.enum"),
|
|
246
|
-
type: "array",
|
|
247
|
-
component: () => _sfc_main$8,
|
|
248
|
-
class: "lg:col-span-2",
|
|
249
|
-
attributes: {
|
|
250
|
-
compact: true,
|
|
251
|
-
tagSquare: true,
|
|
252
|
-
allowDuplicate: false,
|
|
253
|
-
tagMaxContent: 60,
|
|
254
|
-
valueType: "number",
|
|
255
|
-
size: "small"
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
},
|
|
259
|
-
number: {
|
|
260
|
-
minimum: {
|
|
261
|
-
name: tVU.t("voicenterUi.jsonSchema.minimum"),
|
|
262
|
-
type: "number",
|
|
263
|
-
component: () => _sfc_main$7,
|
|
264
|
-
attributes: {
|
|
265
|
-
minValue: 0,
|
|
266
|
-
controlsRight: true,
|
|
267
|
-
size: "small"
|
|
268
|
-
}
|
|
269
|
-
},
|
|
270
|
-
maximum: {
|
|
271
|
-
name: tVU.t("voicenterUi.jsonSchema.maximum"),
|
|
272
|
-
type: "number",
|
|
273
|
-
component: () => _sfc_main$7,
|
|
274
|
-
attributes: {
|
|
275
|
-
minValue: 0,
|
|
276
|
-
controlsRight: true,
|
|
277
|
-
size: "small"
|
|
278
|
-
}
|
|
279
|
-
},
|
|
280
|
-
enum: {
|
|
281
|
-
name: tVU.t("voicenterUi.jsonSchema.enum"),
|
|
282
|
-
type: "array",
|
|
283
|
-
component: () => _sfc_main$8,
|
|
284
|
-
class: "lg:col-span-2",
|
|
285
|
-
attributes: {
|
|
286
|
-
compact: true,
|
|
287
|
-
tagSquare: true,
|
|
288
|
-
allowDuplicate: false,
|
|
289
|
-
tagMaxContent: 60,
|
|
290
|
-
valueType: "number",
|
|
291
|
-
size: "small"
|
|
292
|
-
}
|
|
293
|
-
},
|
|
294
|
-
exclusiveMinimum: {
|
|
295
|
-
name: tVU.t("voicenterUi.jsonSchema.exclusiveMinimum"),
|
|
296
|
-
type: "boolean",
|
|
297
|
-
component: () => _sfc_main$6,
|
|
298
|
-
attributes: {
|
|
299
|
-
values: [1, 0]
|
|
300
|
-
}
|
|
301
|
-
},
|
|
302
|
-
exclusiveMaximum: {
|
|
303
|
-
name: tVU.t("voicenterUi.jsonSchema.exclusiveMaximum"),
|
|
304
|
-
type: "boolean",
|
|
305
|
-
attributes: {
|
|
306
|
-
values: [1, 0]
|
|
307
|
-
},
|
|
308
|
-
component: () => _sfc_main$6
|
|
309
|
-
}
|
|
310
|
-
},
|
|
311
|
-
array: {
|
|
312
|
-
minItems: {
|
|
313
|
-
name: tVU.t("voicenterUi.jsonSchema.minItems"),
|
|
314
|
-
type: "integer",
|
|
315
|
-
component: () => _sfc_main$7,
|
|
316
|
-
attributes: {
|
|
317
|
-
minValue: 0,
|
|
318
|
-
step: 1,
|
|
319
|
-
controlsRight: true,
|
|
320
|
-
size: "small"
|
|
321
|
-
}
|
|
322
|
-
},
|
|
323
|
-
maxItems: {
|
|
324
|
-
name: tVU.t("voicenterUi.jsonSchema.maxItems"),
|
|
325
|
-
type: "integer",
|
|
326
|
-
component: () => _sfc_main$7,
|
|
327
|
-
attributes: {
|
|
328
|
-
minValue: 0,
|
|
329
|
-
step: 1,
|
|
330
|
-
controlsRight: true,
|
|
331
|
-
size: "small"
|
|
332
|
-
}
|
|
333
|
-
},
|
|
334
|
-
uniqueItems: {
|
|
335
|
-
name: tVU.t("voicenterUi.jsonSchema.uniqueItems"),
|
|
336
|
-
type: "boolean",
|
|
337
|
-
component: () => _sfc_main$6,
|
|
338
|
-
attributes: {
|
|
339
|
-
values: [1, 0]
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
};
|
|
344
|
-
const schemaTypeDefaultData = {
|
|
345
|
-
object: {
|
|
346
|
-
description: "",
|
|
347
|
-
maxProperties: void 0,
|
|
348
|
-
minProperties: void 0
|
|
349
|
-
}
|
|
350
|
-
};
|
|
351
|
-
function getMainProperties(propertyType) {
|
|
352
|
-
const additionalProperties = schemaTypeSetupData[propertyType] || {};
|
|
353
|
-
return [.../* @__PURE__ */ new Set([...mainProperties, ...Object.keys(additionalProperties)])];
|
|
354
|
-
}
|
|
355
|
-
const TOP_LEVEL_PROPERTIES = ["$schema", "$id"];
|
|
356
|
-
function getPropertyData(dataProperty) {
|
|
357
|
-
const predefinedData = dataProperty.type ? schemaTypeDefaultData[dataProperty.type] || {} : {};
|
|
358
|
-
const result = {};
|
|
359
|
-
TOP_LEVEL_PROPERTIES.forEach((key) => {
|
|
360
|
-
if (dataProperty[key] !== void 0) {
|
|
361
|
-
result[key] = dataProperty[key];
|
|
362
|
-
} else if (predefinedData[key] !== void 0) {
|
|
363
|
-
result[key] = predefinedData[key];
|
|
364
|
-
}
|
|
365
|
-
});
|
|
366
|
-
Object.keys(predefinedData).forEach((key) => {
|
|
367
|
-
if (!Object.prototype.hasOwnProperty.call(result, key)) {
|
|
368
|
-
result[key] = predefinedData[key];
|
|
369
|
-
}
|
|
370
|
-
});
|
|
371
|
-
Object.keys(dataProperty).forEach((key) => {
|
|
372
|
-
if (!Object.prototype.hasOwnProperty.call(result, key)) {
|
|
373
|
-
result[key] = dataProperty[key];
|
|
374
|
-
}
|
|
375
|
-
});
|
|
376
|
-
return cloneDeep(result);
|
|
377
|
-
}
|
|
378
|
-
function renamePropertyAndKeepKeyPrecedence(obj, oldKey, newKey) {
|
|
379
|
-
const descriptors = Object.getOwnPropertyDescriptors(obj);
|
|
380
|
-
if (Object.prototype.hasOwnProperty.call(descriptors, oldKey)) {
|
|
381
|
-
Object.entries(descriptors).reduce((target, [key, descriptor]) => {
|
|
382
|
-
Reflect.deleteProperty(target, key);
|
|
383
|
-
if (key === oldKey) {
|
|
384
|
-
key = newKey;
|
|
385
|
-
}
|
|
386
|
-
Reflect.defineProperty(target, key, descriptor);
|
|
387
|
-
return target;
|
|
388
|
-
}, obj);
|
|
389
|
-
}
|
|
390
|
-
return obj;
|
|
391
|
-
}
|
|
392
|
-
const _hoisted_1$4 = { class: "w-full text-sm direction-ltr" };
|
|
393
|
-
const _hoisted_2$3 = { class: "font-medium mb-3 flex gap-4 items-center capitalize border-l-2 border-primary px-2" };
|
|
394
|
-
const _hoisted_3$3 = {
|
|
395
|
-
key: 0,
|
|
396
|
-
class: "grid grid-cols-1 md:grid-cols-2 gap-3 max-w-"
|
|
397
|
-
};
|
|
398
|
-
const _hoisted_4$2 = { class: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3" };
|
|
399
|
-
const _hoisted_5$1 = { class: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3" };
|
|
400
|
-
const _hoisted_6$1 = { class: "font-medium mb-2 border-l-2 border-primary px-2" };
|
|
401
|
-
const _hoisted_7$1 = { class: "mb-5" };
|
|
402
|
-
const _hoisted_8$1 = { class: "w-full flex flex-wrap items-center gap-2 mb-3" };
|
|
403
|
-
const _hoisted_9$1 = { class: "w-32" };
|
|
404
|
-
const _hoisted_10$1 = {
|
|
405
|
-
key: 1,
|
|
406
|
-
class: "flex items-center"
|
|
407
|
-
};
|
|
408
|
-
const _hoisted_11$1 = { class: "px-2" };
|
|
409
|
-
const _hoisted_12$1 = { class: "flex items-center gap-2" };
|
|
410
|
-
const _hoisted_13$1 = { class: "font-medium mb-2 border-l-2 border-primary px-2" };
|
|
411
|
-
const _hoisted_14$1 = { class: "max-h-90 overflow-auto w-full h-full text-xxs border border-ui-lines rounded p-1" };
|
|
412
|
-
const _hoisted_15$1 = { class: "w-full flex items-center justify-end gap-3" };
|
|
413
|
-
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
414
|
-
__name: "JsonSchemaPropertyModal",
|
|
415
|
-
props: {
|
|
416
|
-
modalAppendTo: {},
|
|
417
|
-
root: { type: Boolean },
|
|
418
|
-
deepLevel: {},
|
|
419
|
-
teleported: { type: Boolean }
|
|
420
|
-
},
|
|
421
|
-
emits: ["save"],
|
|
422
|
-
setup(__props, { expose: __expose, emit: __emit }) {
|
|
423
|
-
const props = __props;
|
|
424
|
-
const emit = __emit;
|
|
425
|
-
const isOpenModal = ref(false);
|
|
426
|
-
const addPropertyState = ref(false);
|
|
427
|
-
const addPropertyModel = reactive({
|
|
428
|
-
name: "",
|
|
429
|
-
value: ""
|
|
430
|
-
});
|
|
431
|
-
const propertyName = ref("");
|
|
432
|
-
const dataPropertyModel = ref({});
|
|
433
|
-
const additionalSetupProperties = computed(() => {
|
|
434
|
-
return schemaTypeSetupData[dataPropertyModel.value.type] || {};
|
|
435
|
-
});
|
|
436
|
-
const customSetupProperties = computed(() => {
|
|
437
|
-
const allProperties = Object.keys(dataPropertyModel.value);
|
|
438
|
-
const mainProperties2 = getMainProperties(dataPropertyModel.value.type);
|
|
439
|
-
return allProperties.filter((i) => !mainProperties2.includes(i));
|
|
440
|
-
});
|
|
441
|
-
function closeModal() {
|
|
442
|
-
isOpenModal.value = false;
|
|
443
|
-
resetModal();
|
|
444
|
-
}
|
|
445
|
-
function resetModal() {
|
|
446
|
-
dataPropertyModel.value = {};
|
|
447
|
-
addPropertyState.value = false;
|
|
448
|
-
addPropertyModel.name = "";
|
|
449
|
-
addPropertyModel.value = "";
|
|
450
|
-
propertyName.value = "";
|
|
451
|
-
}
|
|
452
|
-
function openModal(dataProperty, property = "root") {
|
|
453
|
-
dataPropertyModel.value = getPropertyData(dataProperty);
|
|
454
|
-
propertyName.value = property;
|
|
455
|
-
isOpenModal.value = true;
|
|
456
|
-
}
|
|
457
|
-
function addCustomProperty() {
|
|
458
|
-
const level = props.deepLevel ?? 0;
|
|
459
|
-
addPropertyModel.name = `field_${level + 1}_${Object.keys(dataPropertyModel.value).length + 1}`;
|
|
460
|
-
addPropertyModel.value = "";
|
|
461
|
-
addPropertyState.value = true;
|
|
462
|
-
}
|
|
463
|
-
function onClear(key) {
|
|
464
|
-
dataPropertyModel.value[key] = void 0;
|
|
465
|
-
}
|
|
466
|
-
function cancelAddCustomField() {
|
|
467
|
-
addPropertyState.value = false;
|
|
468
|
-
addPropertyModel.name = "";
|
|
469
|
-
addPropertyModel.value = "";
|
|
470
|
-
}
|
|
471
|
-
function addCustomPropertyConfirm() {
|
|
472
|
-
dataPropertyModel.value[addPropertyModel.name] = addPropertyModel.value;
|
|
473
|
-
cancelAddCustomField();
|
|
474
|
-
}
|
|
475
|
-
function removeCustomProperty(key) {
|
|
476
|
-
delete dataPropertyModel.value[key];
|
|
477
|
-
}
|
|
478
|
-
function saveModal() {
|
|
479
|
-
emit("save", {
|
|
480
|
-
property: propertyName.value,
|
|
481
|
-
data: getPropertyData({ ...dataPropertyModel.value })
|
|
482
|
-
});
|
|
483
|
-
nextTick(() => {
|
|
484
|
-
closeModal();
|
|
485
|
-
});
|
|
486
|
-
}
|
|
487
|
-
__expose({
|
|
488
|
-
closeModal,
|
|
489
|
-
openModal,
|
|
490
|
-
resetModal
|
|
491
|
-
});
|
|
492
|
-
return (_ctx, _cache) => {
|
|
493
|
-
const _component_VcInput = resolveComponent("VcInput");
|
|
494
|
-
const _component_VcFormItem = resolveComponent("VcFormItem");
|
|
495
|
-
const _component_VcButtonIcon = resolveComponent("VcButtonIcon");
|
|
496
|
-
const _component_VcForm = resolveComponent("VcForm");
|
|
497
|
-
const _component_VcButton = resolveComponent("VcButton");
|
|
498
|
-
return openBlock(), createBlock(_sfc_main$b, {
|
|
499
|
-
visible: isOpenModal.value,
|
|
500
|
-
breakpoints: {
|
|
501
|
-
"620px": "98vw"
|
|
502
|
-
},
|
|
503
|
-
"append-to": _ctx.modalAppendTo,
|
|
504
|
-
header: _ctx.$tVU.t("voicenterUi.jsonSchema.schemaProperty"),
|
|
505
|
-
maximizable: "",
|
|
506
|
-
"data-test-name": "json-schema-modal",
|
|
507
|
-
class: "vc-json-schema-modal",
|
|
508
|
-
width: "620px",
|
|
509
|
-
onClose: closeModal
|
|
510
|
-
}, {
|
|
511
|
-
footer: withCtx(() => [
|
|
512
|
-
createElementVNode("div", _hoisted_15$1, [
|
|
513
|
-
createVNode(_component_VcButton, {
|
|
514
|
-
icon: "vc-icon-cancel",
|
|
515
|
-
type: "outline",
|
|
516
|
-
color: "secondary",
|
|
517
|
-
onClick: closeModal
|
|
518
|
-
}, {
|
|
519
|
-
default: withCtx(() => [
|
|
520
|
-
createTextVNode(toDisplayString(_ctx.$tVU.t("voicenterUi.general.cancel")), 1)
|
|
521
|
-
]),
|
|
522
|
-
_: 1
|
|
523
|
-
}),
|
|
524
|
-
createVNode(_component_VcButton, {
|
|
525
|
-
icon: "vc-icon-save",
|
|
526
|
-
color: "primary",
|
|
527
|
-
onClick: saveModal
|
|
528
|
-
}, {
|
|
529
|
-
default: withCtx(() => [
|
|
530
|
-
createTextVNode(toDisplayString(_ctx.$tVU.t("voicenterUi.general.save")), 1)
|
|
531
|
-
]),
|
|
532
|
-
_: 1
|
|
533
|
-
})
|
|
534
|
-
])
|
|
535
|
-
]),
|
|
536
|
-
default: withCtx(() => [
|
|
537
|
-
createElementVNode("div", _hoisted_1$4, [
|
|
538
|
-
createElementVNode("div", _hoisted_2$3, [
|
|
539
|
-
createElementVNode("div", null, toDisplayString(_ctx.$tVU.t("voicenterUi.general.property")) + ": " + toDisplayString(propertyName.value), 1),
|
|
540
|
-
createElementVNode("div", null, toDisplayString(_ctx.$tVU.t("voicenterUi.general.type")) + ": " + toDisplayString(dataPropertyModel.value.type), 1)
|
|
541
|
-
]),
|
|
542
|
-
createVNode(_component_VcForm, {
|
|
543
|
-
ref: "propertyForm",
|
|
544
|
-
model: dataPropertyModel.value,
|
|
545
|
-
class: "w-full",
|
|
546
|
-
size: "small"
|
|
547
|
-
}, {
|
|
548
|
-
default: withCtx(() => [
|
|
549
|
-
_ctx.root ? (openBlock(), createElementBlock("div", _hoisted_3$3, [
|
|
550
|
-
createVNode(_component_VcFormItem, { label: "Schema" }, {
|
|
551
|
-
default: withCtx(() => [
|
|
552
|
-
createVNode(_component_VcInput, {
|
|
553
|
-
modelValue: dataPropertyModel.value.$schema,
|
|
554
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dataPropertyModel.value.$schema = $event),
|
|
555
|
-
placeholder: "Schema",
|
|
556
|
-
size: "small"
|
|
557
|
-
}, null, 8, ["modelValue"])
|
|
558
|
-
]),
|
|
559
|
-
_: 1
|
|
560
|
-
}),
|
|
561
|
-
createVNode(_component_VcFormItem, {
|
|
562
|
-
label: "ID",
|
|
563
|
-
class: ""
|
|
564
|
-
}, {
|
|
565
|
-
default: withCtx(() => [
|
|
566
|
-
createVNode(_component_VcInput, {
|
|
567
|
-
modelValue: dataPropertyModel.value.$id,
|
|
568
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => dataPropertyModel.value.$id = $event),
|
|
569
|
-
placeholder: "Id",
|
|
570
|
-
size: "small"
|
|
571
|
-
}, null, 8, ["modelValue"])
|
|
572
|
-
]),
|
|
573
|
-
_: 1
|
|
574
|
-
})
|
|
575
|
-
])) : createCommentVNode("", true),
|
|
576
|
-
createElementVNode("div", _hoisted_4$2, [
|
|
577
|
-
createVNode(_component_VcFormItem, { label: "Title" }, {
|
|
578
|
-
default: withCtx(() => [
|
|
579
|
-
createVNode(_component_VcInput, {
|
|
580
|
-
modelValue: dataPropertyModel.value.title,
|
|
581
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => dataPropertyModel.value.title = $event),
|
|
582
|
-
placeholder: "Title",
|
|
583
|
-
size: "small"
|
|
584
|
-
}, null, 8, ["modelValue"])
|
|
585
|
-
]),
|
|
586
|
-
_: 1
|
|
587
|
-
}),
|
|
588
|
-
createVNode(_component_VcFormItem, {
|
|
589
|
-
label: "Description",
|
|
590
|
-
class: "lg:col-span-2"
|
|
591
|
-
}, {
|
|
592
|
-
default: withCtx(() => [
|
|
593
|
-
createVNode(_component_VcInput, {
|
|
594
|
-
modelValue: dataPropertyModel.value.description,
|
|
595
|
-
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => dataPropertyModel.value.description = $event),
|
|
596
|
-
placeholder: "Description",
|
|
597
|
-
size: "small"
|
|
598
|
-
}, null, 8, ["modelValue"])
|
|
599
|
-
]),
|
|
600
|
-
_: 1
|
|
601
|
-
})
|
|
602
|
-
]),
|
|
603
|
-
createElementVNode("div", _hoisted_5$1, [
|
|
604
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(additionalSetupProperties.value, (item, key, index) => {
|
|
605
|
-
return openBlock(), createBlock(_component_VcFormItem, {
|
|
606
|
-
key: `${key}-${index}`,
|
|
607
|
-
label: item.name,
|
|
608
|
-
class: normalizeClass(item.class)
|
|
609
|
-
}, {
|
|
610
|
-
default: withCtx(() => [
|
|
611
|
-
(openBlock(), createBlock(resolveDynamicComponent(item.component()), mergeProps({
|
|
612
|
-
modelValue: dataPropertyModel.value[key],
|
|
613
|
-
"onUpdate:modelValue": ($event) => dataPropertyModel.value[key] = $event,
|
|
614
|
-
item,
|
|
615
|
-
teleported: _ctx.teleported,
|
|
616
|
-
"full-width": ""
|
|
617
|
-
}, { ref_for: true }, item.attributes, {
|
|
618
|
-
onClear: ($event) => onClear(key)
|
|
619
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "item", "teleported", "onClear"]))
|
|
620
|
-
]),
|
|
621
|
-
_: 2
|
|
622
|
-
}, 1032, ["label", "class"]);
|
|
623
|
-
}), 128))
|
|
624
|
-
]),
|
|
625
|
-
createElementVNode("div", _hoisted_6$1, toDisplayString(_ctx.$tVU.t("voicenterUi.jsonSchema.otherProperties")), 1),
|
|
626
|
-
createElementVNode("div", _hoisted_7$1, [
|
|
627
|
-
createElementVNode("div", _hoisted_8$1, [
|
|
628
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(customSetupProperties.value, (field, index) => {
|
|
629
|
-
return openBlock(), createElementBlock("div", {
|
|
630
|
-
key: `custom-${index}`,
|
|
631
|
-
class: "flex items-center gap-1"
|
|
632
|
-
}, [
|
|
633
|
-
createElementVNode("div", null, toDisplayString(field) + ":", 1),
|
|
634
|
-
createElementVNode("div", _hoisted_9$1, [
|
|
635
|
-
createVNode(_component_VcInput, {
|
|
636
|
-
modelValue: dataPropertyModel.value[field],
|
|
637
|
-
"onUpdate:modelValue": ($event) => dataPropertyModel.value[field] = $event,
|
|
638
|
-
size: "small"
|
|
639
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
640
|
-
]),
|
|
641
|
-
createVNode(_component_VcButtonIcon, {
|
|
642
|
-
icon: "vc-lc-x",
|
|
643
|
-
small: "",
|
|
644
|
-
color: "destructive",
|
|
645
|
-
onClick: ($event) => removeCustomProperty(field)
|
|
646
|
-
}, null, 8, ["onClick"])
|
|
647
|
-
]);
|
|
648
|
-
}), 128))
|
|
649
|
-
]),
|
|
650
|
-
!addPropertyState.value ? (openBlock(), createBlock(_component_VcButtonIcon, {
|
|
651
|
-
key: 0,
|
|
652
|
-
icon: "vc-lc-plus",
|
|
653
|
-
small: "",
|
|
654
|
-
type: "outline",
|
|
655
|
-
color: "primary-alternative",
|
|
656
|
-
onClick: addCustomProperty
|
|
657
|
-
})) : (openBlock(), createElementBlock("div", _hoisted_10$1, [
|
|
658
|
-
createElementVNode("div", null, [
|
|
659
|
-
createVNode(_component_VcInput, {
|
|
660
|
-
modelValue: addPropertyModel.name,
|
|
661
|
-
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => addPropertyModel.name = $event),
|
|
662
|
-
size: "small"
|
|
663
|
-
}, null, 8, ["modelValue"])
|
|
664
|
-
]),
|
|
665
|
-
_cache[6] || (_cache[6] = createElementVNode("span", null, ":", -1)),
|
|
666
|
-
createElementVNode("div", _hoisted_11$1, [
|
|
667
|
-
createVNode(_component_VcInput, {
|
|
668
|
-
modelValue: addPropertyModel.value,
|
|
669
|
-
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => addPropertyModel.value = $event),
|
|
670
|
-
size: "small"
|
|
671
|
-
}, null, 8, ["modelValue"])
|
|
672
|
-
]),
|
|
673
|
-
createElementVNode("div", _hoisted_12$1, [
|
|
674
|
-
createVNode(_component_VcButtonIcon, {
|
|
675
|
-
icon: "vc-lc-check",
|
|
676
|
-
small: "",
|
|
677
|
-
color: "success",
|
|
678
|
-
onClick: addCustomPropertyConfirm
|
|
679
|
-
}),
|
|
680
|
-
createVNode(_component_VcButtonIcon, {
|
|
681
|
-
icon: "vc-lc-x",
|
|
682
|
-
small: "",
|
|
683
|
-
color: "destructive",
|
|
684
|
-
onClick: cancelAddCustomField
|
|
685
|
-
})
|
|
686
|
-
])
|
|
687
|
-
]))
|
|
688
|
-
]),
|
|
689
|
-
createElementVNode("div", _hoisted_13$1, toDisplayString(_ctx.$tVU.t("voicenterUi.general.preview")), 1),
|
|
690
|
-
createElementVNode("div", _hoisted_14$1, [
|
|
691
|
-
createElementVNode("pre", null, toDisplayString(dataPropertyModel.value), 1)
|
|
692
|
-
])
|
|
693
|
-
]),
|
|
694
|
-
_: 1
|
|
695
|
-
}, 8, ["model"])
|
|
696
|
-
])
|
|
697
|
-
]),
|
|
698
|
-
_: 1
|
|
699
|
-
}, 8, ["visible", "append-to", "header"]);
|
|
700
|
-
};
|
|
701
|
-
}
|
|
702
|
-
});
|
|
703
|
-
const _hoisted_1$3 = { class: "w-full vc-json-schema-editor" };
|
|
704
|
-
const _hoisted_2$2 = { class: "vc-json-schema-editor__row" };
|
|
705
|
-
const _hoisted_3$2 = { class: "flex-shrink-0 flex items-center gap-2 h-full" };
|
|
706
|
-
const _hoisted_4$1 = { class: "flex-center flex-shrink-0 h-6" };
|
|
707
|
-
const _hoisted_5 = { class: "flex gap-2 vc-json-schema-editor__row-content" };
|
|
708
|
-
const _hoisted_6 = { class: "flex flex-col" };
|
|
709
|
-
const _hoisted_7 = { class: "flex items-center gap-1" };
|
|
710
|
-
const _hoisted_8 = { class: "flex-shrink-0 flex-grow" };
|
|
711
|
-
const _hoisted_9 = {
|
|
712
|
-
key: 0,
|
|
713
|
-
class: "pt-0.5"
|
|
714
|
-
};
|
|
715
|
-
const _hoisted_10 = { class: "flex justify-end flex-shrink-0 h-full" };
|
|
716
|
-
const _hoisted_11 = { class: "h-6 flex items-center justify-end" };
|
|
717
|
-
const _hoisted_12 = {
|
|
718
|
-
key: 0,
|
|
719
|
-
class: "flex-center flex-shrink-0"
|
|
720
|
-
};
|
|
721
|
-
const _hoisted_13 = {
|
|
722
|
-
key: 1,
|
|
723
|
-
class: "flex-center flex-shrink-0"
|
|
724
|
-
};
|
|
725
|
-
const _hoisted_14 = { class: "flex items-center px-1" };
|
|
726
|
-
const _hoisted_15 = {
|
|
727
|
-
key: 1,
|
|
728
|
-
class: ""
|
|
729
|
-
};
|
|
730
|
-
const DEEP_OFFSET = 16;
|
|
731
|
-
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
732
|
-
__name: "JsonSchemaEditor",
|
|
733
|
-
props: {
|
|
734
|
-
modelValue: {},
|
|
735
|
-
disabledType: { type: Boolean },
|
|
736
|
-
root: { type: Boolean, default: true },
|
|
737
|
-
disabled: { type: Boolean },
|
|
738
|
-
custom: { type: Boolean, default: false },
|
|
739
|
-
isItem: { type: Boolean, default: false },
|
|
740
|
-
typeDisabled: { type: Boolean },
|
|
741
|
-
deep: { default: 0 },
|
|
742
|
-
property: { default: void 0 },
|
|
743
|
-
parent: { default: void 0 },
|
|
744
|
-
modalAppendTo: { default: void 0 }
|
|
745
|
-
},
|
|
746
|
-
emits: ["update:modelValue", "update:required", "update:propertyType", "remove:property", "change:propertyName"],
|
|
747
|
-
setup(__props, { emit: __emit }) {
|
|
748
|
-
useCssVars((_ctx) => ({
|
|
749
|
-
"f6222510": spacingRow.value
|
|
750
|
-
}));
|
|
751
|
-
const props = __props;
|
|
752
|
-
const emit = __emit;
|
|
753
|
-
const hidden = ref(false);
|
|
754
|
-
const jsonSchemaModel = useVModel(props, "modelValue", emit);
|
|
755
|
-
const jsonSchemaPropertyModalRef = ref();
|
|
756
|
-
const jsonPropertyNameModel = ref(props.property || "Root");
|
|
757
|
-
const jsonSchemeType = computed({
|
|
758
|
-
get() {
|
|
759
|
-
var _a;
|
|
760
|
-
return (_a = jsonSchemaModel.value) == null ? void 0 : _a.type;
|
|
761
|
-
},
|
|
762
|
-
set(val) {
|
|
763
|
-
jsonSchemaModel.value = {
|
|
764
|
-
...jsonSchemaModel.value,
|
|
765
|
-
type: val
|
|
766
|
-
};
|
|
767
|
-
}
|
|
768
|
-
});
|
|
769
|
-
const isJsonSchemaTypeDisabled = computed(() => {
|
|
770
|
-
return props.disabledType;
|
|
771
|
-
});
|
|
772
|
-
const showProperties = computed(() => {
|
|
773
|
-
var _a;
|
|
774
|
-
return !hidden.value && ((_a = jsonSchemaModel.value) == null ? void 0 : _a.properties) && !isArray2.value;
|
|
775
|
-
});
|
|
776
|
-
const isRequiredField = computed(() => {
|
|
777
|
-
var _a;
|
|
778
|
-
if (props.root) {
|
|
779
|
-
return false;
|
|
780
|
-
}
|
|
781
|
-
const requiredFields = ((_a = props.parent) == null ? void 0 : _a.required) || [];
|
|
782
|
-
return requiredFields.includes(props.property || "");
|
|
783
|
-
});
|
|
784
|
-
const isArray2 = computed(() => {
|
|
785
|
-
return jsonSchemeType.value === "array";
|
|
786
|
-
});
|
|
787
|
-
const isObject2 = computed(() => {
|
|
788
|
-
return jsonSchemeType.value === "object";
|
|
789
|
-
});
|
|
790
|
-
const spacingRow = computed(() => {
|
|
791
|
-
return `${props.deep * DEEP_OFFSET}px`;
|
|
792
|
-
});
|
|
793
|
-
const teleported = computed(() => {
|
|
794
|
-
return !(props.modalAppendTo && props.modalAppendTo !== "body");
|
|
795
|
-
});
|
|
796
|
-
function onUpdateProperty(data, keyProperty) {
|
|
797
|
-
jsonSchemaModel.value.properties[keyProperty] = {
|
|
798
|
-
...data
|
|
799
|
-
};
|
|
800
|
-
}
|
|
801
|
-
function onUpdateItemsProperty(data) {
|
|
802
|
-
jsonSchemaModel.value.items = { ...data };
|
|
803
|
-
}
|
|
804
|
-
function setRequiredField(val) {
|
|
805
|
-
var _a;
|
|
806
|
-
if (props.root || !props.property) {
|
|
807
|
-
return;
|
|
808
|
-
}
|
|
809
|
-
const requiredFields = ((_a = props.parent) == null ? void 0 : _a.required) || [];
|
|
810
|
-
if (val) {
|
|
811
|
-
emit("update:required", [
|
|
812
|
-
...requiredFields,
|
|
813
|
-
props.property
|
|
814
|
-
]);
|
|
815
|
-
} else {
|
|
816
|
-
emit("update:required", [...requiredFields].filter((i) => i !== props.property));
|
|
817
|
-
}
|
|
818
|
-
}
|
|
819
|
-
function onUpdateRequiredProperties(data) {
|
|
820
|
-
jsonSchemaModel.value.required = [...data];
|
|
821
|
-
}
|
|
822
|
-
function openPropertyEditModal() {
|
|
823
|
-
var _a;
|
|
824
|
-
const property = props.root ? "root" : props.property;
|
|
825
|
-
(_a = jsonSchemaPropertyModalRef.value) == null ? void 0 : _a.openModal(jsonSchemaModel.value, property);
|
|
826
|
-
}
|
|
827
|
-
function onPropertyModalSave({ property, data }) {
|
|
828
|
-
if (property === "items") {
|
|
829
|
-
jsonSchemaModel.value = {
|
|
830
|
-
...jsonSchemaModel.value,
|
|
831
|
-
items: { ...data }
|
|
832
|
-
};
|
|
833
|
-
} else {
|
|
834
|
-
jsonSchemaModel.value = {
|
|
835
|
-
...data
|
|
836
|
-
};
|
|
837
|
-
}
|
|
838
|
-
jsonSchemaModel.value = {
|
|
839
|
-
...data
|
|
840
|
-
};
|
|
841
|
-
}
|
|
842
|
-
function setJsonSchemeType(newType) {
|
|
843
|
-
if (props.isItem) {
|
|
844
|
-
emit("update:propertyType", newType);
|
|
845
|
-
}
|
|
846
|
-
}
|
|
847
|
-
function onUpdateItemsType(newType) {
|
|
848
|
-
const data = { ...jsonSchemaModel.value.items };
|
|
849
|
-
data.type = newType;
|
|
850
|
-
delete data.items;
|
|
851
|
-
if (newType === "array") {
|
|
852
|
-
data.items = {
|
|
853
|
-
type: "string"
|
|
854
|
-
};
|
|
855
|
-
}
|
|
856
|
-
jsonSchemaModel.value.items = { ...data };
|
|
857
|
-
}
|
|
858
|
-
function removeProperty() {
|
|
859
|
-
if (props.property) {
|
|
860
|
-
emit("remove:property", props.property);
|
|
861
|
-
}
|
|
862
|
-
}
|
|
863
|
-
function onRemoveProperty(propertyName) {
|
|
864
|
-
var _a;
|
|
865
|
-
delete jsonSchemaModel.value.properties[propertyName];
|
|
866
|
-
if ((_a = jsonSchemaModel.value.required) == null ? void 0 : _a.length) {
|
|
867
|
-
jsonSchemaModel.value.required = jsonSchemaModel.value.required.filter((i) => i !== propertyName);
|
|
868
|
-
}
|
|
869
|
-
}
|
|
870
|
-
function addNewProperty() {
|
|
871
|
-
const properties = jsonSchemaModel.value.properties ? { ...jsonSchemaModel.value.properties } : {};
|
|
872
|
-
const newFieldName = `field_${props.deep}_${Object.keys(properties).length + 1}`;
|
|
873
|
-
properties[newFieldName] = {
|
|
874
|
-
type: "string",
|
|
875
|
-
title: ""
|
|
876
|
-
};
|
|
877
|
-
jsonSchemaModel.value.properties = {
|
|
878
|
-
...properties
|
|
879
|
-
};
|
|
880
|
-
}
|
|
881
|
-
function onJsonPropertyNameChange() {
|
|
882
|
-
if (jsonPropertyNameModel.value === props.property || props.root || props.isItem) {
|
|
883
|
-
return;
|
|
884
|
-
}
|
|
885
|
-
emit("change:propertyName", {
|
|
886
|
-
newValue: jsonPropertyNameModel.value,
|
|
887
|
-
oldValue: props.property || "Root"
|
|
888
|
-
});
|
|
889
|
-
}
|
|
890
|
-
function onPropertyNameChange({ newValue, oldValue }) {
|
|
891
|
-
if (!jsonSchemaModel.value.properties) {
|
|
892
|
-
return;
|
|
893
|
-
}
|
|
894
|
-
jsonSchemaModel.value.properties = renamePropertyAndKeepKeyPrecedence(jsonSchemaModel.value.properties, oldValue, newValue);
|
|
895
|
-
const requiredFields = jsonSchemaModel.value.required || [];
|
|
896
|
-
if (requiredFields.includes(oldValue)) {
|
|
897
|
-
jsonSchemaModel.value.required = requiredFields.map((i) => {
|
|
898
|
-
if (i === oldValue) {
|
|
899
|
-
return newValue;
|
|
900
|
-
}
|
|
901
|
-
return i;
|
|
902
|
-
});
|
|
903
|
-
}
|
|
904
|
-
}
|
|
905
|
-
watch(
|
|
906
|
-
jsonSchemeType,
|
|
907
|
-
(val, oldVal) => {
|
|
908
|
-
if (oldVal === "array") {
|
|
909
|
-
delete jsonSchemaModel.value.items;
|
|
910
|
-
}
|
|
911
|
-
if (oldVal === "object") {
|
|
912
|
-
delete jsonSchemaModel.value.properties;
|
|
913
|
-
delete jsonSchemaModel.value.required;
|
|
914
|
-
}
|
|
915
|
-
if (val === "object" && !jsonSchemaModel.value.properties) {
|
|
916
|
-
jsonSchemaModel.value = {
|
|
917
|
-
...jsonSchemaModel.value,
|
|
918
|
-
properties: {}
|
|
919
|
-
};
|
|
920
|
-
}
|
|
921
|
-
if (val === "array" && !jsonSchemaModel.value.items) {
|
|
922
|
-
jsonSchemaModel.value = {
|
|
923
|
-
...jsonSchemaModel.value,
|
|
924
|
-
items: {
|
|
925
|
-
type: "string"
|
|
926
|
-
}
|
|
927
|
-
};
|
|
928
|
-
}
|
|
929
|
-
jsonSchemeType.value = val;
|
|
930
|
-
}
|
|
931
|
-
);
|
|
932
|
-
return (_ctx, _cache) => {
|
|
933
|
-
const _component_VcInput = resolveComponent("VcInput");
|
|
934
|
-
const _component_VcSelect = resolveComponent("VcSelect");
|
|
935
|
-
const _component_VcCheckbox = resolveComponent("VcCheckbox");
|
|
936
|
-
const _component_VcButtonIcon = resolveComponent("VcButtonIcon");
|
|
937
|
-
const _component_JsonSchemaEditor = resolveComponent("JsonSchemaEditor", true);
|
|
938
|
-
return openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
939
|
-
createElementVNode("div", _hoisted_2$2, [
|
|
940
|
-
createElementVNode("div", _hoisted_3$2, [
|
|
941
|
-
createElementVNode("div", _hoisted_4$1, [
|
|
942
|
-
isObject2.value ? (openBlock(), createElementBlock("span", {
|
|
943
|
-
key: 0,
|
|
944
|
-
class: "cursor-pointer",
|
|
945
|
-
onClick: _cache[0] || (_cache[0] = ($event) => hidden.value = !hidden.value)
|
|
946
|
-
}, [
|
|
947
|
-
createElementVNode("i", {
|
|
948
|
-
class: normalizeClass([!hidden.value ? "vc-lc-chevron-down" : "vc-lc-chevron-right", "icon-base"])
|
|
949
|
-
}, null, 2)
|
|
950
|
-
])) : createCommentVNode("", true)
|
|
951
|
-
])
|
|
952
|
-
]),
|
|
953
|
-
createElementVNode("div", _hoisted_5, [
|
|
954
|
-
createElementVNode("div", _hoisted_6, [
|
|
955
|
-
createElementVNode("div", _hoisted_7, [
|
|
956
|
-
createElementVNode("div", _hoisted_8, [
|
|
957
|
-
createVNode(_component_VcInput, {
|
|
958
|
-
modelValue: jsonPropertyNameModel.value,
|
|
959
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => jsonPropertyNameModel.value = $event),
|
|
960
|
-
disabled: _ctx.root || _ctx.disabled,
|
|
961
|
-
size: "small",
|
|
962
|
-
class: "sm:max-w-32",
|
|
963
|
-
onBlur: onJsonPropertyNameChange
|
|
964
|
-
}, null, 8, ["modelValue", "disabled"])
|
|
965
|
-
]),
|
|
966
|
-
createElementVNode("div", null, [
|
|
967
|
-
createVNode(_component_VcSelect, {
|
|
968
|
-
modelValue: jsonSchemeType.value,
|
|
969
|
-
"onUpdate:modelValue": [
|
|
970
|
-
_cache[2] || (_cache[2] = ($event) => jsonSchemeType.value = $event),
|
|
971
|
-
setJsonSchemeType
|
|
972
|
-
],
|
|
973
|
-
disabled: isJsonSchemaTypeDisabled.value,
|
|
974
|
-
options: unref(schemaTypeOptions),
|
|
975
|
-
config: {
|
|
976
|
-
labelKey: "label",
|
|
977
|
-
valueKey: "value"
|
|
978
|
-
},
|
|
979
|
-
teleported: teleported.value,
|
|
980
|
-
size: "small",
|
|
981
|
-
class: "w-full min-w-24"
|
|
982
|
-
}, null, 8, ["modelValue", "disabled", "options", "teleported"])
|
|
983
|
-
])
|
|
984
|
-
]),
|
|
985
|
-
!_ctx.isItem ? (openBlock(), createElementBlock("div", _hoisted_9, [
|
|
986
|
-
createVNode(_component_VcInput, {
|
|
987
|
-
modelValue: unref(jsonSchemaModel).description,
|
|
988
|
-
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => unref(jsonSchemaModel).description = $event),
|
|
989
|
-
size: "small",
|
|
990
|
-
class: "sm:max-w-64"
|
|
991
|
-
}, null, 8, ["modelValue"])
|
|
992
|
-
])) : createCommentVNode("", true)
|
|
993
|
-
]),
|
|
994
|
-
createElementVNode("div", _hoisted_10, [
|
|
995
|
-
createElementVNode("div", _hoisted_11, [
|
|
996
|
-
_ctx.root || _ctx.isItem ? (openBlock(), createElementBlock("div", _hoisted_12, [
|
|
997
|
-
createVNode(_component_VcCheckbox, {
|
|
998
|
-
"model-value": false,
|
|
999
|
-
title: _ctx.$tVU.t("voicenterUi.jsonSchema.isRequiredProperty"),
|
|
1000
|
-
disabled: "",
|
|
1001
|
-
"hand-update": "",
|
|
1002
|
-
class: "mx-auto"
|
|
1003
|
-
}, null, 8, ["title"])
|
|
1004
|
-
])) : (openBlock(), createElementBlock("div", _hoisted_13, [
|
|
1005
|
-
createVNode(_component_VcCheckbox, {
|
|
1006
|
-
"model-value": isRequiredField.value,
|
|
1007
|
-
title: _ctx.$tVU.t("voicenterUi.jsonSchema.isRequiredProperty"),
|
|
1008
|
-
class: "mx-auto",
|
|
1009
|
-
"onUpdate:modelValue": setRequiredField
|
|
1010
|
-
}, null, 8, ["model-value", "title"])
|
|
1011
|
-
])),
|
|
1012
|
-
createElementVNode("div", _hoisted_14, [
|
|
1013
|
-
createVNode(_component_VcButtonIcon, {
|
|
1014
|
-
color: "primary-alternative",
|
|
1015
|
-
icon: "vc-lc-settings",
|
|
1016
|
-
onClick: openPropertyEditModal
|
|
1017
|
-
}),
|
|
1018
|
-
isObject2.value ? (openBlock(), createBlock(_component_VcButtonIcon, {
|
|
1019
|
-
key: 0,
|
|
1020
|
-
icon: "vc-lc-plus",
|
|
1021
|
-
onClick: addNewProperty
|
|
1022
|
-
})) : createCommentVNode("", true),
|
|
1023
|
-
!_ctx.root && !_ctx.isItem ? (openBlock(), createBlock(_component_VcButtonIcon, {
|
|
1024
|
-
key: 1,
|
|
1025
|
-
color: "destructive",
|
|
1026
|
-
icon: "vc-lc-x",
|
|
1027
|
-
onClick: removeProperty
|
|
1028
|
-
})) : createCommentVNode("", true)
|
|
1029
|
-
])
|
|
1030
|
-
])
|
|
1031
|
-
])
|
|
1032
|
-
])
|
|
1033
|
-
]),
|
|
1034
|
-
showProperties.value ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(jsonSchemaModel).properties, (item, key, index) => {
|
|
1035
|
-
return openBlock(), createBlock(_component_JsonSchemaEditor, {
|
|
1036
|
-
key: `${key}-${index}`,
|
|
1037
|
-
"model-value": item,
|
|
1038
|
-
deep: _ctx.deep + 1,
|
|
1039
|
-
root: false,
|
|
1040
|
-
custom: _ctx.custom,
|
|
1041
|
-
parent: unref(jsonSchemaModel),
|
|
1042
|
-
property: `${key}`,
|
|
1043
|
-
"modal-append-to": _ctx.modalAppendTo,
|
|
1044
|
-
class: "is--children",
|
|
1045
|
-
"onRemove:property": onRemoveProperty,
|
|
1046
|
-
"onUpdate:required": onUpdateRequiredProperties,
|
|
1047
|
-
"onUpdate:modelValue": ($evt) => onUpdateProperty($evt, key),
|
|
1048
|
-
"onChange:propertyName": onPropertyNameChange
|
|
1049
|
-
}, null, 8, ["model-value", "deep", "custom", "parent", "property", "modal-append-to", "onUpdate:modelValue"]);
|
|
1050
|
-
}), 128)) : createCommentVNode("", true),
|
|
1051
|
-
isArray2.value ? (openBlock(), createElementBlock("div", _hoisted_15, [
|
|
1052
|
-
createVNode(_component_JsonSchemaEditor, {
|
|
1053
|
-
"model-value": unref(jsonSchemaModel).items,
|
|
1054
|
-
deep: _ctx.deep + 1,
|
|
1055
|
-
custom: _ctx.custom,
|
|
1056
|
-
root: false,
|
|
1057
|
-
"modal-append-to": _ctx.modalAppendTo,
|
|
1058
|
-
property: "items",
|
|
1059
|
-
disabled: "",
|
|
1060
|
-
"is-item": "",
|
|
1061
|
-
class: "is--children pt-1",
|
|
1062
|
-
"onUpdate:propertyType": onUpdateItemsType,
|
|
1063
|
-
"onUpdate:modelValue": onUpdateItemsProperty
|
|
1064
|
-
}, null, 8, ["model-value", "deep", "custom", "modal-append-to"])
|
|
1065
|
-
])) : createCommentVNode("", true),
|
|
1066
|
-
createVNode(_sfc_main$4, {
|
|
1067
|
-
ref_key: "jsonSchemaPropertyModalRef",
|
|
1068
|
-
ref: jsonSchemaPropertyModalRef,
|
|
1069
|
-
"modal-append-to": _ctx.modalAppendTo,
|
|
1070
|
-
root: _ctx.root,
|
|
1071
|
-
"deep-level": _ctx.deep,
|
|
1072
|
-
teleported: teleported.value,
|
|
1073
|
-
onSave: onPropertyModalSave
|
|
1074
|
-
}, null, 8, ["modal-append-to", "root", "deep-level", "teleported"])
|
|
1075
|
-
]);
|
|
1076
|
-
};
|
|
1077
|
-
}
|
|
1078
|
-
});
|
|
1079
|
-
function identity$2(value) {
|
|
1080
|
-
return value;
|
|
1081
|
-
}
|
|
1082
|
-
var identity_1 = identity$2;
|
|
1083
|
-
function apply$1(func, thisArg, args) {
|
|
1084
|
-
switch (args.length) {
|
|
1085
|
-
case 0:
|
|
1086
|
-
return func.call(thisArg);
|
|
1087
|
-
case 1:
|
|
1088
|
-
return func.call(thisArg, args[0]);
|
|
1089
|
-
case 2:
|
|
1090
|
-
return func.call(thisArg, args[0], args[1]);
|
|
1091
|
-
case 3:
|
|
1092
|
-
return func.call(thisArg, args[0], args[1], args[2]);
|
|
1093
|
-
}
|
|
1094
|
-
return func.apply(thisArg, args);
|
|
1095
|
-
}
|
|
1096
|
-
var _apply = apply$1;
|
|
1097
|
-
var apply = _apply;
|
|
1098
|
-
var nativeMax = Math.max;
|
|
1099
|
-
function overRest$1(func, start, transform) {
|
|
1100
|
-
start = nativeMax(start === void 0 ? func.length - 1 : start, 0);
|
|
1101
|
-
return function() {
|
|
1102
|
-
var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length);
|
|
1103
|
-
while (++index < length) {
|
|
1104
|
-
array[index] = args[start + index];
|
|
1105
|
-
}
|
|
1106
|
-
index = -1;
|
|
1107
|
-
var otherArgs = Array(start + 1);
|
|
1108
|
-
while (++index < start) {
|
|
1109
|
-
otherArgs[index] = args[index];
|
|
1110
|
-
}
|
|
1111
|
-
otherArgs[start] = transform(array);
|
|
1112
|
-
return apply(func, this, otherArgs);
|
|
1113
|
-
};
|
|
1114
|
-
}
|
|
1115
|
-
var _overRest = overRest$1;
|
|
1116
|
-
function constant$1(value) {
|
|
1117
|
-
return function() {
|
|
1118
|
-
return value;
|
|
1119
|
-
};
|
|
1120
|
-
}
|
|
1121
|
-
var constant_1 = constant$1;
|
|
1122
|
-
var constant = constant_1, defineProperty = _defineProperty, identity$1 = identity_1;
|
|
1123
|
-
var baseSetToString$1 = !defineProperty ? identity$1 : function(func, string) {
|
|
1124
|
-
return defineProperty(func, "toString", {
|
|
1125
|
-
"configurable": true,
|
|
1126
|
-
"enumerable": false,
|
|
1127
|
-
"value": constant(string),
|
|
1128
|
-
"writable": true
|
|
1129
|
-
});
|
|
1130
|
-
};
|
|
1131
|
-
var _baseSetToString = baseSetToString$1;
|
|
1132
|
-
var HOT_COUNT = 800, HOT_SPAN = 16;
|
|
1133
|
-
var nativeNow = Date.now;
|
|
1134
|
-
function shortOut$1(func) {
|
|
1135
|
-
var count = 0, lastCalled = 0;
|
|
1136
|
-
return function() {
|
|
1137
|
-
var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
|
|
1138
|
-
lastCalled = stamp;
|
|
1139
|
-
if (remaining > 0) {
|
|
1140
|
-
if (++count >= HOT_COUNT) {
|
|
1141
|
-
return arguments[0];
|
|
1142
|
-
}
|
|
1143
|
-
} else {
|
|
1144
|
-
count = 0;
|
|
1145
|
-
}
|
|
1146
|
-
return func.apply(void 0, arguments);
|
|
1147
|
-
};
|
|
1148
|
-
}
|
|
1149
|
-
var _shortOut = shortOut$1;
|
|
1150
|
-
var baseSetToString = _baseSetToString, shortOut = _shortOut;
|
|
1151
|
-
var setToString$1 = shortOut(baseSetToString);
|
|
1152
|
-
var _setToString = setToString$1;
|
|
1153
|
-
var identity = identity_1, overRest = _overRest, setToString = _setToString;
|
|
1154
|
-
function baseRest$2(func, start) {
|
|
1155
|
-
return setToString(overRest(func, start, identity), func + "");
|
|
1156
|
-
}
|
|
1157
|
-
var _baseRest = baseRest$2;
|
|
1158
|
-
function baseFindIndex$1(array, predicate, fromIndex, fromRight) {
|
|
1159
|
-
var length = array.length, index = fromIndex + (fromRight ? 1 : -1);
|
|
1160
|
-
while (fromRight ? index-- : ++index < length) {
|
|
1161
|
-
if (predicate(array[index], index, array)) {
|
|
1162
|
-
return index;
|
|
1163
|
-
}
|
|
1164
|
-
}
|
|
1165
|
-
return -1;
|
|
1166
|
-
}
|
|
1167
|
-
var _baseFindIndex = baseFindIndex$1;
|
|
1168
|
-
function baseIsNaN$1(value) {
|
|
1169
|
-
return value !== value;
|
|
1170
|
-
}
|
|
1171
|
-
var _baseIsNaN = baseIsNaN$1;
|
|
1172
|
-
function strictIndexOf$1(array, value, fromIndex) {
|
|
1173
|
-
var index = fromIndex - 1, length = array.length;
|
|
1174
|
-
while (++index < length) {
|
|
1175
|
-
if (array[index] === value) {
|
|
1176
|
-
return index;
|
|
1177
|
-
}
|
|
1178
|
-
}
|
|
1179
|
-
return -1;
|
|
1180
|
-
}
|
|
1181
|
-
var _strictIndexOf = strictIndexOf$1;
|
|
1182
|
-
var baseFindIndex = _baseFindIndex, baseIsNaN = _baseIsNaN, strictIndexOf = _strictIndexOf;
|
|
1183
|
-
function baseIndexOf$1(array, value, fromIndex) {
|
|
1184
|
-
return value === value ? strictIndexOf(array, value, fromIndex) : baseFindIndex(array, baseIsNaN, fromIndex);
|
|
1185
|
-
}
|
|
1186
|
-
var _baseIndexOf = baseIndexOf$1;
|
|
1187
|
-
var baseIndexOf = _baseIndexOf;
|
|
1188
|
-
function arrayIncludes$2(array, value) {
|
|
1189
|
-
var length = array == null ? 0 : array.length;
|
|
1190
|
-
return !!length && baseIndexOf(array, value, 0) > -1;
|
|
1191
|
-
}
|
|
1192
|
-
var _arrayIncludes = arrayIncludes$2;
|
|
1193
|
-
function arrayIncludesWith$2(array, value, comparator) {
|
|
1194
|
-
var index = -1, length = array == null ? 0 : array.length;
|
|
1195
|
-
while (++index < length) {
|
|
1196
|
-
if (comparator(value, array[index])) {
|
|
1197
|
-
return true;
|
|
1198
|
-
}
|
|
1199
|
-
}
|
|
1200
|
-
return false;
|
|
1201
|
-
}
|
|
1202
|
-
var _arrayIncludesWith = arrayIncludesWith$2;
|
|
1203
|
-
var SetCache$1 = _SetCache, arrayIncludes$1 = _arrayIncludes, arrayIncludesWith$1 = _arrayIncludesWith, arrayMap = _arrayMap, baseUnary = _baseUnary, cacheHas$1 = _cacheHas;
|
|
1204
|
-
var LARGE_ARRAY_SIZE$1 = 200;
|
|
1205
|
-
function baseDifference$1(array, values, iteratee, comparator) {
|
|
1206
|
-
var index = -1, includes = arrayIncludes$1, isCommon = true, length = array.length, result = [], valuesLength = values.length;
|
|
1207
|
-
if (!length) {
|
|
1208
|
-
return result;
|
|
1209
|
-
}
|
|
1210
|
-
if (iteratee) {
|
|
1211
|
-
values = arrayMap(values, baseUnary(iteratee));
|
|
1212
|
-
}
|
|
1213
|
-
if (comparator) {
|
|
1214
|
-
includes = arrayIncludesWith$1;
|
|
1215
|
-
isCommon = false;
|
|
1216
|
-
} else if (values.length >= LARGE_ARRAY_SIZE$1) {
|
|
1217
|
-
includes = cacheHas$1;
|
|
1218
|
-
isCommon = false;
|
|
1219
|
-
values = new SetCache$1(values);
|
|
1220
|
-
}
|
|
1221
|
-
outer:
|
|
1222
|
-
while (++index < length) {
|
|
1223
|
-
var value = array[index], computed2 = iteratee == null ? value : iteratee(value);
|
|
1224
|
-
value = comparator || value !== 0 ? value : 0;
|
|
1225
|
-
if (isCommon && computed2 === computed2) {
|
|
1226
|
-
var valuesIndex = valuesLength;
|
|
1227
|
-
while (valuesIndex--) {
|
|
1228
|
-
if (values[valuesIndex] === computed2) {
|
|
1229
|
-
continue outer;
|
|
1230
|
-
}
|
|
1231
|
-
}
|
|
1232
|
-
result.push(value);
|
|
1233
|
-
} else if (!includes(values, computed2, comparator)) {
|
|
1234
|
-
result.push(value);
|
|
1235
|
-
}
|
|
1236
|
-
}
|
|
1237
|
-
return result;
|
|
1238
|
-
}
|
|
1239
|
-
var _baseDifference = baseDifference$1;
|
|
1240
|
-
var Symbol$1 = _Symbol, isArguments$1 = isArguments_1, isArray$1 = isArray_1;
|
|
1241
|
-
var spreadableSymbol = Symbol$1 ? Symbol$1.isConcatSpreadable : void 0;
|
|
1242
|
-
function isFlattenable$1(value) {
|
|
1243
|
-
return isArray$1(value) || isArguments$1(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
|
|
1244
|
-
}
|
|
1245
|
-
var _isFlattenable = isFlattenable$1;
|
|
1246
|
-
var arrayPush = _arrayPush, isFlattenable = _isFlattenable;
|
|
1247
|
-
function baseFlatten$1(array, depth, predicate, isStrict, result) {
|
|
1248
|
-
var index = -1, length = array.length;
|
|
1249
|
-
predicate || (predicate = isFlattenable);
|
|
1250
|
-
result || (result = []);
|
|
1251
|
-
while (++index < length) {
|
|
1252
|
-
var value = array[index];
|
|
1253
|
-
if (depth > 0 && predicate(value)) {
|
|
1254
|
-
if (depth > 1) {
|
|
1255
|
-
baseFlatten$1(value, depth - 1, predicate, isStrict, result);
|
|
1256
|
-
} else {
|
|
1257
|
-
arrayPush(result, value);
|
|
1258
|
-
}
|
|
1259
|
-
} else if (!isStrict) {
|
|
1260
|
-
result[result.length] = value;
|
|
1261
|
-
}
|
|
1262
|
-
}
|
|
1263
|
-
return result;
|
|
1264
|
-
}
|
|
1265
|
-
var _baseFlatten = baseFlatten$1;
|
|
1266
|
-
function noop$1() {
|
|
1267
|
-
}
|
|
1268
|
-
var noop_1 = noop$1;
|
|
1269
|
-
var Set$1 = _Set, noop = noop_1, setToArray$1 = _setToArray;
|
|
1270
|
-
var INFINITY = 1 / 0;
|
|
1271
|
-
var createSet$1 = !(Set$1 && 1 / setToArray$1(new Set$1([, -0]))[1] == INFINITY) ? noop : function(values) {
|
|
1272
|
-
return new Set$1(values);
|
|
1273
|
-
};
|
|
1274
|
-
var _createSet = createSet$1;
|
|
1275
|
-
var SetCache = _SetCache, arrayIncludes = _arrayIncludes, arrayIncludesWith = _arrayIncludesWith, cacheHas = _cacheHas, createSet = _createSet, setToArray = _setToArray;
|
|
1276
|
-
var LARGE_ARRAY_SIZE = 200;
|
|
1277
|
-
function baseUniq$1(array, iteratee, comparator) {
|
|
1278
|
-
var index = -1, includes = arrayIncludes, length = array.length, isCommon = true, result = [], seen = result;
|
|
1279
|
-
if (comparator) {
|
|
1280
|
-
isCommon = false;
|
|
1281
|
-
includes = arrayIncludesWith;
|
|
1282
|
-
} else if (length >= LARGE_ARRAY_SIZE) {
|
|
1283
|
-
var set = iteratee ? null : createSet(array);
|
|
1284
|
-
if (set) {
|
|
1285
|
-
return setToArray(set);
|
|
1286
|
-
}
|
|
1287
|
-
isCommon = false;
|
|
1288
|
-
includes = cacheHas;
|
|
1289
|
-
seen = new SetCache();
|
|
1290
|
-
} else {
|
|
1291
|
-
seen = iteratee ? [] : result;
|
|
1292
|
-
}
|
|
1293
|
-
outer:
|
|
1294
|
-
while (++index < length) {
|
|
1295
|
-
var value = array[index], computed2 = iteratee ? iteratee(value) : value;
|
|
1296
|
-
value = comparator || value !== 0 ? value : 0;
|
|
1297
|
-
if (isCommon && computed2 === computed2) {
|
|
1298
|
-
var seenIndex = seen.length;
|
|
1299
|
-
while (seenIndex--) {
|
|
1300
|
-
if (seen[seenIndex] === computed2) {
|
|
1301
|
-
continue outer;
|
|
1302
|
-
}
|
|
1303
|
-
}
|
|
1304
|
-
if (iteratee) {
|
|
1305
|
-
seen.push(computed2);
|
|
1306
|
-
}
|
|
1307
|
-
result.push(value);
|
|
1308
|
-
} else if (!includes(seen, computed2, comparator)) {
|
|
1309
|
-
if (seen !== result) {
|
|
1310
|
-
seen.push(computed2);
|
|
1311
|
-
}
|
|
1312
|
-
result.push(value);
|
|
1313
|
-
}
|
|
1314
|
-
}
|
|
1315
|
-
return result;
|
|
1316
|
-
}
|
|
1317
|
-
var _baseUniq = baseUniq$1;
|
|
1318
|
-
var baseDifference = _baseDifference, baseFlatten = _baseFlatten, baseUniq = _baseUniq;
|
|
1319
|
-
function baseXor$1(arrays, iteratee, comparator) {
|
|
1320
|
-
var length = arrays.length;
|
|
1321
|
-
if (length < 2) {
|
|
1322
|
-
return length ? baseUniq(arrays[0]) : [];
|
|
1323
|
-
}
|
|
1324
|
-
var index = -1, result = Array(length);
|
|
1325
|
-
while (++index < length) {
|
|
1326
|
-
var array = arrays[index], othIndex = -1;
|
|
1327
|
-
while (++othIndex < length) {
|
|
1328
|
-
if (othIndex != index) {
|
|
1329
|
-
result[index] = baseDifference(result[index] || array, arrays[othIndex], iteratee, comparator);
|
|
1330
|
-
}
|
|
1331
|
-
}
|
|
1332
|
-
}
|
|
1333
|
-
return baseUniq(baseFlatten(result, 1), iteratee, comparator);
|
|
1334
|
-
}
|
|
1335
|
-
var _baseXor = baseXor$1;
|
|
1336
|
-
var isArrayLike = isArrayLike_1, isObjectLike$1 = isObjectLike_1;
|
|
1337
|
-
function isArrayLikeObject$2(value) {
|
|
1338
|
-
return isObjectLike$1(value) && isArrayLike(value);
|
|
1339
|
-
}
|
|
1340
|
-
var isArrayLikeObject_1 = isArrayLikeObject$2;
|
|
1341
|
-
var arrayFilter = _arrayFilter, baseRest$1 = _baseRest, baseXor = _baseXor, isArrayLikeObject$1 = isArrayLikeObject_1;
|
|
1342
|
-
var xor = baseRest$1(function(arrays) {
|
|
1343
|
-
return baseXor(arrayFilter(arrays, isArrayLikeObject$1));
|
|
1344
|
-
});
|
|
1345
|
-
var xor_1 = xor;
|
|
1346
|
-
const xor$1 = /* @__PURE__ */ getDefaultExportFromCjs(xor_1);
|
|
1347
|
-
var baseAssignValue = _baseAssignValue, eq = eq_1;
|
|
1348
|
-
function assignMergeValue$2(object, key, value) {
|
|
1349
|
-
if (value !== void 0 && !eq(object[key], value) || value === void 0 && !(key in object)) {
|
|
1350
|
-
baseAssignValue(object, key, value);
|
|
1351
|
-
}
|
|
1352
|
-
}
|
|
1353
|
-
var _assignMergeValue = assignMergeValue$2;
|
|
1354
|
-
function createBaseFor$1(fromRight) {
|
|
1355
|
-
return function(object, iteratee, keysFunc) {
|
|
1356
|
-
var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length;
|
|
1357
|
-
while (length--) {
|
|
1358
|
-
var key = props[fromRight ? length : ++index];
|
|
1359
|
-
if (iteratee(iterable[key], key, iterable) === false) {
|
|
1360
|
-
break;
|
|
1361
|
-
}
|
|
1362
|
-
}
|
|
1363
|
-
return object;
|
|
1364
|
-
};
|
|
1365
|
-
}
|
|
1366
|
-
var _createBaseFor = createBaseFor$1;
|
|
1367
|
-
var createBaseFor = _createBaseFor;
|
|
1368
|
-
var baseFor$1 = createBaseFor();
|
|
1369
|
-
var _baseFor = baseFor$1;
|
|
1370
|
-
var baseGetTag = _baseGetTag, getPrototype = _getPrototype, isObjectLike = isObjectLike_1;
|
|
1371
|
-
var objectTag = "[object Object]";
|
|
1372
|
-
var funcProto = Function.prototype, objectProto = Object.prototype;
|
|
1373
|
-
var funcToString = funcProto.toString;
|
|
1374
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
1375
|
-
var objectCtorString = funcToString.call(Object);
|
|
1376
|
-
function isPlainObject$1(value) {
|
|
1377
|
-
if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
|
|
1378
|
-
return false;
|
|
1379
|
-
}
|
|
1380
|
-
var proto = getPrototype(value);
|
|
1381
|
-
if (proto === null) {
|
|
1382
|
-
return true;
|
|
1383
|
-
}
|
|
1384
|
-
var Ctor = hasOwnProperty.call(proto, "constructor") && proto.constructor;
|
|
1385
|
-
return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
|
|
1386
|
-
}
|
|
1387
|
-
var isPlainObject_1 = isPlainObject$1;
|
|
1388
|
-
function safeGet$2(object, key) {
|
|
1389
|
-
if (key === "constructor" && typeof object[key] === "function") {
|
|
1390
|
-
return;
|
|
1391
|
-
}
|
|
1392
|
-
if (key == "__proto__") {
|
|
1393
|
-
return;
|
|
1394
|
-
}
|
|
1395
|
-
return object[key];
|
|
1396
|
-
}
|
|
1397
|
-
var _safeGet = safeGet$2;
|
|
1398
|
-
var copyObject = _copyObject, keysIn$1 = keysIn_1;
|
|
1399
|
-
function toPlainObject$1(value) {
|
|
1400
|
-
return copyObject(value, keysIn$1(value));
|
|
1401
|
-
}
|
|
1402
|
-
var toPlainObject_1 = toPlainObject$1;
|
|
1403
|
-
var assignMergeValue$1 = _assignMergeValue, cloneBuffer = _cloneBufferExports, cloneTypedArray = _cloneTypedArray, copyArray = _copyArray, initCloneObject = _initCloneObject, isArguments = isArguments_1, isArray = isArray_1, isArrayLikeObject = isArrayLikeObject_1, isBuffer = isBufferExports, isFunction = isFunction_1, isObject$1 = isObject_1, isPlainObject = isPlainObject_1, isTypedArray = isTypedArray_1, safeGet$1 = _safeGet, toPlainObject = toPlainObject_1;
|
|
1404
|
-
function baseMergeDeep$1(object, source, key, srcIndex, mergeFunc, customizer, stack) {
|
|
1405
|
-
var objValue = safeGet$1(object, key), srcValue = safeGet$1(source, key), stacked = stack.get(srcValue);
|
|
1406
|
-
if (stacked) {
|
|
1407
|
-
assignMergeValue$1(object, key, stacked);
|
|
1408
|
-
return;
|
|
1409
|
-
}
|
|
1410
|
-
var newValue = customizer ? customizer(objValue, srcValue, key + "", object, source, stack) : void 0;
|
|
1411
|
-
var isCommon = newValue === void 0;
|
|
1412
|
-
if (isCommon) {
|
|
1413
|
-
var isArr = isArray(srcValue), isBuff = !isArr && isBuffer(srcValue), isTyped = !isArr && !isBuff && isTypedArray(srcValue);
|
|
1414
|
-
newValue = srcValue;
|
|
1415
|
-
if (isArr || isBuff || isTyped) {
|
|
1416
|
-
if (isArray(objValue)) {
|
|
1417
|
-
newValue = objValue;
|
|
1418
|
-
} else if (isArrayLikeObject(objValue)) {
|
|
1419
|
-
newValue = copyArray(objValue);
|
|
1420
|
-
} else if (isBuff) {
|
|
1421
|
-
isCommon = false;
|
|
1422
|
-
newValue = cloneBuffer(srcValue, true);
|
|
1423
|
-
} else if (isTyped) {
|
|
1424
|
-
isCommon = false;
|
|
1425
|
-
newValue = cloneTypedArray(srcValue, true);
|
|
1426
|
-
} else {
|
|
1427
|
-
newValue = [];
|
|
1428
|
-
}
|
|
1429
|
-
} else if (isPlainObject(srcValue) || isArguments(srcValue)) {
|
|
1430
|
-
newValue = objValue;
|
|
1431
|
-
if (isArguments(objValue)) {
|
|
1432
|
-
newValue = toPlainObject(objValue);
|
|
1433
|
-
} else if (!isObject$1(objValue) || isFunction(objValue)) {
|
|
1434
|
-
newValue = initCloneObject(srcValue);
|
|
1435
|
-
}
|
|
1436
|
-
} else {
|
|
1437
|
-
isCommon = false;
|
|
1438
|
-
}
|
|
1439
|
-
}
|
|
1440
|
-
if (isCommon) {
|
|
1441
|
-
stack.set(srcValue, newValue);
|
|
1442
|
-
mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
|
|
1443
|
-
stack["delete"](srcValue);
|
|
1444
|
-
}
|
|
1445
|
-
assignMergeValue$1(object, key, newValue);
|
|
1446
|
-
}
|
|
1447
|
-
var _baseMergeDeep = baseMergeDeep$1;
|
|
1448
|
-
var Stack = _Stack, assignMergeValue = _assignMergeValue, baseFor = _baseFor, baseMergeDeep = _baseMergeDeep, isObject = isObject_1, keysIn = keysIn_1, safeGet = _safeGet;
|
|
1449
|
-
function baseMerge$1(object, source, srcIndex, customizer, stack) {
|
|
1450
|
-
if (object === source) {
|
|
1451
|
-
return;
|
|
1452
|
-
}
|
|
1453
|
-
baseFor(source, function(srcValue, key) {
|
|
1454
|
-
stack || (stack = new Stack());
|
|
1455
|
-
if (isObject(srcValue)) {
|
|
1456
|
-
baseMergeDeep(object, source, key, srcIndex, baseMerge$1, customizer, stack);
|
|
1457
|
-
} else {
|
|
1458
|
-
var newValue = customizer ? customizer(safeGet(object, key), srcValue, key + "", object, source, stack) : void 0;
|
|
1459
|
-
if (newValue === void 0) {
|
|
1460
|
-
newValue = srcValue;
|
|
1461
|
-
}
|
|
1462
|
-
assignMergeValue(object, key, newValue);
|
|
1463
|
-
}
|
|
1464
|
-
}, keysIn);
|
|
1465
|
-
}
|
|
1466
|
-
var _baseMerge = baseMerge$1;
|
|
1467
|
-
var baseRest = _baseRest, isIterateeCall = _isIterateeCall;
|
|
1468
|
-
function createAssigner$1(assigner) {
|
|
1469
|
-
return baseRest(function(object, sources) {
|
|
1470
|
-
var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : void 0, guard = length > 2 ? sources[2] : void 0;
|
|
1471
|
-
customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : void 0;
|
|
1472
|
-
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
|
|
1473
|
-
customizer = length < 3 ? void 0 : customizer;
|
|
1474
|
-
length = 1;
|
|
1475
|
-
}
|
|
1476
|
-
object = Object(object);
|
|
1477
|
-
while (++index < length) {
|
|
1478
|
-
var source = sources[index];
|
|
1479
|
-
if (source) {
|
|
1480
|
-
assigner(object, source, index, customizer);
|
|
1481
|
-
}
|
|
1482
|
-
}
|
|
1483
|
-
return object;
|
|
1484
|
-
});
|
|
1485
|
-
}
|
|
1486
|
-
var _createAssigner = createAssigner$1;
|
|
1487
|
-
var baseMerge = _baseMerge, createAssigner = _createAssigner;
|
|
1488
|
-
var merge = createAssigner(function(object, source, srcIndex) {
|
|
1489
|
-
baseMerge(object, source, srcIndex);
|
|
1490
|
-
});
|
|
1491
|
-
var merge_1 = merge;
|
|
1492
|
-
const merge$1 = /* @__PURE__ */ getDefaultExportFromCjs(merge_1);
|
|
1493
|
-
const types = {
|
|
1494
|
-
string: function testString(instance) {
|
|
1495
|
-
return typeof instance === "string";
|
|
1496
|
-
},
|
|
1497
|
-
number: function testNumber(instance) {
|
|
1498
|
-
return typeof instance === "number" && isFinite(instance);
|
|
1499
|
-
},
|
|
1500
|
-
integer: function testInteger(instance) {
|
|
1501
|
-
return typeof instance === "number" && instance % 1 === 0;
|
|
1502
|
-
},
|
|
1503
|
-
boolean: function testBoolean(instance) {
|
|
1504
|
-
return typeof instance === "boolean";
|
|
1505
|
-
},
|
|
1506
|
-
array: function testArray(instance) {
|
|
1507
|
-
return instance instanceof Array;
|
|
1508
|
-
},
|
|
1509
|
-
null: function testNull(instance) {
|
|
1510
|
-
return instance === null;
|
|
1511
|
-
},
|
|
1512
|
-
date: function testDate(instance) {
|
|
1513
|
-
return instance instanceof Date;
|
|
1514
|
-
},
|
|
1515
|
-
any: (
|
|
1516
|
-
/* istanbul ignore next: not using this but keeping it here for sake of completeness */
|
|
1517
|
-
function testAny() {
|
|
1518
|
-
return true;
|
|
1519
|
-
}
|
|
1520
|
-
),
|
|
1521
|
-
object: function testObject(instance) {
|
|
1522
|
-
return instance && typeof instance === "object" && !(instance instanceof Array) && !(instance instanceof Date);
|
|
1523
|
-
}
|
|
1524
|
-
};
|
|
1525
|
-
const FORMAT_REGEXPS = {
|
|
1526
|
-
"date-time": /^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\.\d+)?([zZ]|[+-]([0-5][0-9]):(60|[0-5][0-9]))$/,
|
|
1527
|
-
date: /^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])$/,
|
|
1528
|
-
time: /^(2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])$/,
|
|
1529
|
-
email: /^(?:[\w!#$%&'*+-/=?^`{|}~]+\.)*[\w!#$%&'*+-/=?^`{|}~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/,
|
|
1530
|
-
"ip-address": /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,
|
|
1531
|
-
ipv6: /^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,
|
|
1532
|
-
uri: /^[a-zA-Z][a-zA-Z0-9+-.]*:[^\s]*$/,
|
|
1533
|
-
color: /^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,
|
|
1534
|
-
// hostname regex from: http://stackoverflow.com/a/1420225/5628
|
|
1535
|
-
hostname: /^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,
|
|
1536
|
-
"host-name": /^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,
|
|
1537
|
-
alpha: /^[a-zA-Z]+$/,
|
|
1538
|
-
alphanumeric: /^[a-zA-Z0-9]+$/,
|
|
1539
|
-
"utc-millisec": (input) => typeof input === "string" && parseFloat(input) === parseInt(input, 10) && !isNaN(input),
|
|
1540
|
-
// eslint-disable-line no-restricted-globals
|
|
1541
|
-
regex(input) {
|
|
1542
|
-
let result = true;
|
|
1543
|
-
try {
|
|
1544
|
-
new RegExp(input);
|
|
1545
|
-
} catch (e) {
|
|
1546
|
-
result = false;
|
|
1547
|
-
}
|
|
1548
|
-
return result;
|
|
1549
|
-
},
|
|
1550
|
-
style: /\s*(.+?):\s*([^;]+);?/g,
|
|
1551
|
-
phone: /^\+(?:[0-9] ?){6,14}[0-9]$/
|
|
1552
|
-
};
|
|
1553
|
-
FORMAT_REGEXPS.regexp = FORMAT_REGEXPS.regex;
|
|
1554
|
-
FORMAT_REGEXPS.pattern = FORMAT_REGEXPS.regex;
|
|
1555
|
-
FORMAT_REGEXPS.ipv4 = FORMAT_REGEXPS["ip-address"];
|
|
1556
|
-
const isFormat = function isFormat2(input, format) {
|
|
1557
|
-
if (typeof input === "string" && FORMAT_REGEXPS[format] !== void 0) {
|
|
1558
|
-
if (FORMAT_REGEXPS[format] instanceof RegExp) {
|
|
1559
|
-
return FORMAT_REGEXPS[format].test(input);
|
|
1560
|
-
}
|
|
1561
|
-
if (typeof FORMAT_REGEXPS[format] === "function") {
|
|
1562
|
-
return FORMAT_REGEXPS[format](input);
|
|
1563
|
-
}
|
|
1564
|
-
}
|
|
1565
|
-
return true;
|
|
1566
|
-
};
|
|
1567
|
-
const helpers = {
|
|
1568
|
-
stringFormats: keys(FORMAT_REGEXPS),
|
|
1569
|
-
isFormat,
|
|
1570
|
-
typeNames: [
|
|
1571
|
-
"integer",
|
|
1572
|
-
"number",
|
|
1573
|
-
// make sure number is after integer (for proper type detection)
|
|
1574
|
-
"string",
|
|
1575
|
-
"array",
|
|
1576
|
-
"object",
|
|
1577
|
-
"boolean",
|
|
1578
|
-
"null",
|
|
1579
|
-
"date"
|
|
1580
|
-
],
|
|
1581
|
-
getType(val) {
|
|
1582
|
-
return helpers.typeNames.find((typeName) => types[typeName](val));
|
|
1583
|
-
},
|
|
1584
|
-
/**
|
|
1585
|
-
* Tries to find the least common schema from two supplied JSON schemas. If it is unable to find
|
|
1586
|
-
* such a schema, it returns null. Incompatibility in structure/types leads to returning null,
|
|
1587
|
-
* except when the difference is only integer/number. Than the 'number' is used instead 'int'.
|
|
1588
|
-
* Types/Structure incompatibility in array items only leads to schema that doesn't specify
|
|
1589
|
-
* items structure/type.
|
|
1590
|
-
* @param {object} schema1 - JSON schema
|
|
1591
|
-
* @param {object} schema2 - JSON schema
|
|
1592
|
-
* @returns {object|null}
|
|
1593
|
-
*/
|
|
1594
|
-
mergeSchemaObjs(schema1, schema2) {
|
|
1595
|
-
const schema1Keys = keys(schema1);
|
|
1596
|
-
const schema2Keys = keys(schema2);
|
|
1597
|
-
if (!isEqual(schema1Keys, schema2Keys)) {
|
|
1598
|
-
if (schema1.type === "array" && schema2.type === "array") {
|
|
1599
|
-
if (isEqual(xor$1(schema1Keys, schema2Keys), ["items"])) {
|
|
1600
|
-
const schemaWithoutItems = schema1Keys.length > schema2Keys.length ? schema2 : schema1;
|
|
1601
|
-
const schemaWithItems = schema1Keys.length > schema2Keys.length ? schema1 : schema2;
|
|
1602
|
-
const isSame = keys(schemaWithoutItems).reduce((acc, current) => isEqual(schemaWithoutItems[current], schemaWithItems[current]) && acc, true);
|
|
1603
|
-
if (isSame) {
|
|
1604
|
-
return schemaWithoutItems;
|
|
1605
|
-
}
|
|
1606
|
-
}
|
|
1607
|
-
}
|
|
1608
|
-
if (schema1.type !== "object" || schema2.type !== "object") {
|
|
1609
|
-
return null;
|
|
1610
|
-
}
|
|
1611
|
-
}
|
|
1612
|
-
const retObj = {};
|
|
1613
|
-
for (let i = 0, { length } = schema1Keys; i < length; i++) {
|
|
1614
|
-
const key = schema1Keys[i];
|
|
1615
|
-
if (helpers.getType(schema1[key]) === "object") {
|
|
1616
|
-
const x = helpers.mergeSchemaObjs(schema1[key], schema2[key]);
|
|
1617
|
-
if (!x) {
|
|
1618
|
-
if (schema1.type === "object" || schema2.type === "object") {
|
|
1619
|
-
return { type: "object" };
|
|
1620
|
-
}
|
|
1621
|
-
if (key !== "items" || schema1.type !== "array" || schema2.type !== "array") {
|
|
1622
|
-
return null;
|
|
1623
|
-
}
|
|
1624
|
-
} else {
|
|
1625
|
-
retObj[key] = x;
|
|
1626
|
-
}
|
|
1627
|
-
} else {
|
|
1628
|
-
if (key === "type") {
|
|
1629
|
-
if (schema1[key] !== schema2[key]) {
|
|
1630
|
-
if (schema1[key] === "integer" && schema2[key] === "number" || schema1[key] === "number" && schema2[key] === "integer") {
|
|
1631
|
-
retObj[key] = "number";
|
|
1632
|
-
} else {
|
|
1633
|
-
return null;
|
|
1634
|
-
}
|
|
1635
|
-
} else {
|
|
1636
|
-
retObj[key] = schema1[key];
|
|
1637
|
-
}
|
|
1638
|
-
} else {
|
|
1639
|
-
if (!isEqual(schema1[key], schema2[key])) {
|
|
1640
|
-
return null;
|
|
1641
|
-
}
|
|
1642
|
-
retObj[key] = schema1[key];
|
|
1643
|
-
}
|
|
1644
|
-
}
|
|
1645
|
-
}
|
|
1646
|
-
return retObj;
|
|
1647
|
-
}
|
|
1648
|
-
};
|
|
1649
|
-
const defaultOptions = {
|
|
1650
|
-
required: false,
|
|
1651
|
-
postProcessFnc: null,
|
|
1652
|
-
strings: {
|
|
1653
|
-
detectFormat: true,
|
|
1654
|
-
preProcessFnc: null
|
|
1655
|
-
},
|
|
1656
|
-
arrays: {
|
|
1657
|
-
mode: "all"
|
|
1658
|
-
},
|
|
1659
|
-
objects: {
|
|
1660
|
-
preProcessFnc: null,
|
|
1661
|
-
postProcessFnc: null,
|
|
1662
|
-
additionalProperties: true
|
|
1663
|
-
}
|
|
1664
|
-
};
|
|
1665
|
-
const skipReverseFind = ["hostname", "host-name", "alpha", "alphanumeric", "regex", "regexp", "pattern"];
|
|
1666
|
-
const filteredFormats = helpers.stringFormats.filter((item) => skipReverseFind.indexOf(item) < 0);
|
|
1667
|
-
function getCommonTypeFromArrayOfTypes(arrOfTypes) {
|
|
1668
|
-
let lastVal;
|
|
1669
|
-
for (let i = 0, { length } = arrOfTypes; i < length; i++) {
|
|
1670
|
-
let currentType = arrOfTypes[i];
|
|
1671
|
-
if (i > 0) {
|
|
1672
|
-
if (currentType === "integer" && lastVal === "number") {
|
|
1673
|
-
currentType = "number";
|
|
1674
|
-
} else if (currentType === "number" && lastVal === "integer") {
|
|
1675
|
-
lastVal = "number";
|
|
1676
|
-
}
|
|
1677
|
-
if (lastVal !== currentType) return null;
|
|
1678
|
-
}
|
|
1679
|
-
lastVal = currentType;
|
|
1680
|
-
}
|
|
1681
|
-
return lastVal;
|
|
1682
|
-
}
|
|
1683
|
-
function getCommonArrayItemsType(arr) {
|
|
1684
|
-
return getCommonTypeFromArrayOfTypes(arr.map((item) => helpers.getType(item)));
|
|
1685
|
-
}
|
|
1686
|
-
class ToJsonSchema {
|
|
1687
|
-
constructor(options) {
|
|
1688
|
-
this.options = merge$1({}, defaultOptions, options);
|
|
1689
|
-
this.getObjectSchemaDefault = this.getObjectSchemaDefault.bind(this);
|
|
1690
|
-
this.getStringSchemaDefault = this.getStringSchemaDefault.bind(this);
|
|
1691
|
-
this.objectPostProcessDefault = this.objectPostProcessDefault.bind(this);
|
|
1692
|
-
this.commmonPostProcessDefault = this.commmonPostProcessDefault.bind(this);
|
|
1693
|
-
this.objectPostProcessDefault = this.objectPostProcessDefault.bind(this);
|
|
1694
|
-
}
|
|
1695
|
-
/**
|
|
1696
|
-
* Tries to find the least common schema that would validate all items in the array. More details
|
|
1697
|
-
* helpers.mergeSchemaObjs description
|
|
1698
|
-
* @param {array} arr
|
|
1699
|
-
* @returns {object|null}
|
|
1700
|
-
*/
|
|
1701
|
-
getCommonArrayItemSchema(arr) {
|
|
1702
|
-
const schemas = arr.map((item) => this.getSchema(item));
|
|
1703
|
-
return schemas.reduce((acc, current) => helpers.mergeSchemaObjs(acc, current), schemas.pop());
|
|
1704
|
-
}
|
|
1705
|
-
getObjectSchemaDefault(obj) {
|
|
1706
|
-
const schema = { type: "object" };
|
|
1707
|
-
const objKeys = Object.keys(obj);
|
|
1708
|
-
if (objKeys.length > 0) {
|
|
1709
|
-
schema.properties = objKeys.reduce((acc, propertyName) => {
|
|
1710
|
-
acc[propertyName] = this.getSchema(obj[propertyName]);
|
|
1711
|
-
return acc;
|
|
1712
|
-
}, {});
|
|
1713
|
-
}
|
|
1714
|
-
return schema;
|
|
1715
|
-
}
|
|
1716
|
-
getObjectSchema(obj) {
|
|
1717
|
-
if (this.options.objects.preProcessFnc) {
|
|
1718
|
-
return this.options.objects.preProcessFnc(obj, this.getObjectSchemaDefault);
|
|
1719
|
-
}
|
|
1720
|
-
return this.getObjectSchemaDefault(obj);
|
|
1721
|
-
}
|
|
1722
|
-
getArraySchemaMerging(arr) {
|
|
1723
|
-
const schema = { type: "array" };
|
|
1724
|
-
const commonType = getCommonArrayItemsType(arr);
|
|
1725
|
-
if (commonType) {
|
|
1726
|
-
schema.items = { type: commonType };
|
|
1727
|
-
if (commonType !== "integer" && commonType !== "number") {
|
|
1728
|
-
const itemSchema = this.getCommonArrayItemSchema(arr);
|
|
1729
|
-
if (itemSchema) {
|
|
1730
|
-
schema.items = itemSchema;
|
|
1731
|
-
}
|
|
1732
|
-
} else if (this.options.required) {
|
|
1733
|
-
schema.items.required = true;
|
|
1734
|
-
}
|
|
1735
|
-
}
|
|
1736
|
-
return schema;
|
|
1737
|
-
}
|
|
1738
|
-
getArraySchemaNoMerging(arr) {
|
|
1739
|
-
const schema = { type: "array" };
|
|
1740
|
-
if (arr.length > 0) {
|
|
1741
|
-
schema.items = this.getSchema(arr[0]);
|
|
1742
|
-
}
|
|
1743
|
-
return schema;
|
|
1744
|
-
}
|
|
1745
|
-
getArraySchemaTuple(arr) {
|
|
1746
|
-
const schema = { type: "array" };
|
|
1747
|
-
if (arr.length > 0) {
|
|
1748
|
-
schema.items = arr.map((item) => this.getSchema(item));
|
|
1749
|
-
}
|
|
1750
|
-
return schema;
|
|
1751
|
-
}
|
|
1752
|
-
getArraySchemaUniform(arr) {
|
|
1753
|
-
const schema = this.getArraySchemaNoMerging(arr);
|
|
1754
|
-
if (arr.length > 1) {
|
|
1755
|
-
for (let i = 1; i < arr.length; i++) {
|
|
1756
|
-
if (!isEqual(schema.items, this.getSchema(arr[i]))) {
|
|
1757
|
-
throw new Error("Invalid schema, incompatible array items");
|
|
1758
|
-
}
|
|
1759
|
-
}
|
|
1760
|
-
}
|
|
1761
|
-
return schema;
|
|
1762
|
-
}
|
|
1763
|
-
getArraySchema(arr) {
|
|
1764
|
-
if (arr.length === 0) {
|
|
1765
|
-
return { type: "array" };
|
|
1766
|
-
}
|
|
1767
|
-
switch (this.options.arrays.mode) {
|
|
1768
|
-
case "all":
|
|
1769
|
-
return this.getArraySchemaMerging(arr);
|
|
1770
|
-
case "first":
|
|
1771
|
-
return this.getArraySchemaNoMerging(arr);
|
|
1772
|
-
case "uniform":
|
|
1773
|
-
return this.getArraySchemaUniform(arr);
|
|
1774
|
-
case "tuple":
|
|
1775
|
-
return this.getArraySchemaTuple(arr);
|
|
1776
|
-
default:
|
|
1777
|
-
throw new Error(`Unknown array mode option '${this.options.arrays.mode}'`);
|
|
1778
|
-
}
|
|
1779
|
-
}
|
|
1780
|
-
getStringSchemaDefault(value) {
|
|
1781
|
-
const schema = { type: "string" };
|
|
1782
|
-
if (!this.options.strings.detectFormat) {
|
|
1783
|
-
return schema;
|
|
1784
|
-
}
|
|
1785
|
-
const index = filteredFormats.findIndex((item) => helpers.isFormat(value, item));
|
|
1786
|
-
if (index >= 0) {
|
|
1787
|
-
schema.format = filteredFormats[index];
|
|
1788
|
-
}
|
|
1789
|
-
return schema;
|
|
1790
|
-
}
|
|
1791
|
-
getStringSchema(value) {
|
|
1792
|
-
if (this.options.strings.preProcessFnc) {
|
|
1793
|
-
return this.options.strings.preProcessFnc(value, this.getStringSchemaDefault);
|
|
1794
|
-
}
|
|
1795
|
-
return this.getStringSchemaDefault(value);
|
|
1796
|
-
}
|
|
1797
|
-
commmonPostProcessDefault(type, schema) {
|
|
1798
|
-
if (this.options.required) {
|
|
1799
|
-
return merge$1({}, schema, { required: true });
|
|
1800
|
-
}
|
|
1801
|
-
return schema;
|
|
1802
|
-
}
|
|
1803
|
-
objectPostProcessDefault(schema, obj) {
|
|
1804
|
-
if (this.options.objects.additionalProperties === false && Object.getOwnPropertyNames(obj).length > 0) {
|
|
1805
|
-
return merge$1({}, schema, { additionalProperties: false });
|
|
1806
|
-
}
|
|
1807
|
-
return schema;
|
|
1808
|
-
}
|
|
1809
|
-
/**
|
|
1810
|
-
* Gets JSON schema for provided value
|
|
1811
|
-
* @param value
|
|
1812
|
-
* @returns {object}
|
|
1813
|
-
*/
|
|
1814
|
-
getSchema(value) {
|
|
1815
|
-
const type = helpers.getType(value);
|
|
1816
|
-
if (!type) {
|
|
1817
|
-
throw new Error("Type of value couldn't be determined");
|
|
1818
|
-
}
|
|
1819
|
-
let schema;
|
|
1820
|
-
switch (type) {
|
|
1821
|
-
case "object":
|
|
1822
|
-
schema = this.getObjectSchema(value);
|
|
1823
|
-
break;
|
|
1824
|
-
case "array":
|
|
1825
|
-
schema = this.getArraySchema(value);
|
|
1826
|
-
break;
|
|
1827
|
-
case "string":
|
|
1828
|
-
schema = this.getStringSchema(value);
|
|
1829
|
-
break;
|
|
1830
|
-
default:
|
|
1831
|
-
schema = { type };
|
|
1832
|
-
}
|
|
1833
|
-
if (this.options.postProcessFnc) {
|
|
1834
|
-
schema = this.options.postProcessFnc(type, schema, value, this.commmonPostProcessDefault);
|
|
1835
|
-
} else {
|
|
1836
|
-
schema = this.commmonPostProcessDefault(type, schema, value);
|
|
1837
|
-
}
|
|
1838
|
-
if (type === "object") {
|
|
1839
|
-
if (this.options.objects.postProcessFnc) {
|
|
1840
|
-
schema = this.options.objects.postProcessFnc(schema, value, this.objectPostProcessDefault);
|
|
1841
|
-
} else {
|
|
1842
|
-
schema = this.objectPostProcessDefault(schema, value);
|
|
1843
|
-
}
|
|
1844
|
-
}
|
|
1845
|
-
return schema;
|
|
1846
|
-
}
|
|
1847
|
-
}
|
|
1848
|
-
function toJsonSchema(value, options) {
|
|
1849
|
-
const tjs = new ToJsonSchema(options);
|
|
1850
|
-
return tjs.getSchema(value);
|
|
1851
|
-
}
|
|
1852
|
-
const _hoisted_1$2 = { class: "w-full flex items-center gap-3 justify-end" };
|
|
1853
|
-
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
1854
|
-
__name: "ImportJsonSchemaModal",
|
|
1855
|
-
props: {
|
|
1856
|
-
modalAppendTo: {}
|
|
1857
|
-
},
|
|
1858
|
-
emits: ["save"],
|
|
1859
|
-
setup(__props, { expose: __expose, emit: __emit }) {
|
|
1860
|
-
const emit = __emit;
|
|
1861
|
-
const isOpenModal = ref(false);
|
|
1862
|
-
const jsonDataModel = ref({});
|
|
1863
|
-
const jsonSchemaRef = ref();
|
|
1864
|
-
const jsonSchemaErrorState = ref(false);
|
|
1865
|
-
function closeModal() {
|
|
1866
|
-
isOpenModal.value = false;
|
|
1867
|
-
}
|
|
1868
|
-
function openModal() {
|
|
1869
|
-
jsonDataModel.value = {};
|
|
1870
|
-
isOpenModal.value = true;
|
|
1871
|
-
}
|
|
1872
|
-
function saveModal() {
|
|
1873
|
-
if (!jsonSchemaErrorState.value) {
|
|
1874
|
-
try {
|
|
1875
|
-
const result = toJsonSchema(jsonDataModel.value);
|
|
1876
|
-
emit("save", result);
|
|
1877
|
-
closeModal();
|
|
1878
|
-
} catch (e) {
|
|
1879
|
-
}
|
|
1880
|
-
}
|
|
1881
|
-
}
|
|
1882
|
-
function onUpdateErrorState(val) {
|
|
1883
|
-
jsonSchemaErrorState.value = val;
|
|
1884
|
-
}
|
|
1885
|
-
__expose({
|
|
1886
|
-
open: openModal,
|
|
1887
|
-
close: closeModal
|
|
1888
|
-
});
|
|
1889
|
-
return (_ctx, _cache) => {
|
|
1890
|
-
const _component_VcButton = resolveComponent("VcButton");
|
|
1891
|
-
return openBlock(), createBlock(_sfc_main$b, {
|
|
1892
|
-
visible: isOpenModal.value,
|
|
1893
|
-
breakpoints: {
|
|
1894
|
-
"680px": "90vw"
|
|
1895
|
-
},
|
|
1896
|
-
"append-to": _ctx.modalAppendTo,
|
|
1897
|
-
header: _ctx.$tVU.t("voicenterUi.jsonSchema.importJson"),
|
|
1898
|
-
width: "580px",
|
|
1899
|
-
"data-test-name": "json-schema-modal",
|
|
1900
|
-
"modal-class": "vc-import-json-schema-modal",
|
|
1901
|
-
"content-class": "direction-ltr",
|
|
1902
|
-
onClose: closeModal
|
|
1903
|
-
}, {
|
|
1904
|
-
footer: withCtx(() => [
|
|
1905
|
-
createElementVNode("div", _hoisted_1$2, [
|
|
1906
|
-
createVNode(_component_VcButton, {
|
|
1907
|
-
icon: "vc-icon-cancel",
|
|
1908
|
-
type: "outline",
|
|
1909
|
-
color: "secondary",
|
|
1910
|
-
onClick: closeModal
|
|
1911
|
-
}, {
|
|
1912
|
-
default: withCtx(() => [
|
|
1913
|
-
createTextVNode(toDisplayString(_ctx.$tVU.t("voicenterUi.general.cancel")), 1)
|
|
1914
|
-
]),
|
|
1915
|
-
_: 1
|
|
1916
|
-
}),
|
|
1917
|
-
createVNode(_component_VcButton, {
|
|
1918
|
-
disabled: jsonSchemaErrorState.value,
|
|
1919
|
-
icon: "vc-icon-save",
|
|
1920
|
-
color: "primary",
|
|
1921
|
-
onClick: saveModal
|
|
1922
|
-
}, {
|
|
1923
|
-
default: withCtx(() => [
|
|
1924
|
-
createTextVNode(toDisplayString(_ctx.$tVU.t("voicenterUi.general.save")), 1)
|
|
1925
|
-
]),
|
|
1926
|
-
_: 1
|
|
1927
|
-
}, 8, ["disabled"])
|
|
1928
|
-
])
|
|
1929
|
-
]),
|
|
1930
|
-
default: withCtx(() => [
|
|
1931
|
-
createElementVNode("div", null, [
|
|
1932
|
-
createVNode(_sfc_main$5, {
|
|
1933
|
-
ref_key: "jsonSchemaRef",
|
|
1934
|
-
ref: jsonSchemaRef,
|
|
1935
|
-
modelValue: jsonDataModel.value,
|
|
1936
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => jsonDataModel.value = $event),
|
|
1937
|
-
"onUpdate:errorState": onUpdateErrorState
|
|
1938
|
-
}, null, 8, ["modelValue"])
|
|
1939
|
-
])
|
|
1940
|
-
]),
|
|
1941
|
-
_: 1
|
|
1942
|
-
}, 8, ["visible", "append-to", "header"]);
|
|
1943
|
-
};
|
|
1944
|
-
}
|
|
1945
|
-
});
|
|
1946
|
-
const _hoisted_1$1 = { class: "vc-json-schema-modal__content" };
|
|
1947
|
-
const _hoisted_2$1 = { class: "flex items-center justify-end gap-3 pb-4" };
|
|
1948
|
-
const _hoisted_3$1 = { class: "direction-ltr flex flex-wrap md:flex-nowrap border border-ui-lines rounded divide-y md:divide-x md:divide-y-0 divide-ui-lines min-h-80" };
|
|
1949
|
-
const _hoisted_4 = { class: "w-full flex items-center gap-3 justify-end" };
|
|
1950
|
-
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
1951
|
-
__name: "JsonSchemaManageModal",
|
|
1952
|
-
props: {
|
|
1953
|
-
modalAppendTo: {},
|
|
1954
|
-
rootType: {}
|
|
1955
|
-
},
|
|
1956
|
-
emits: ["save"],
|
|
1957
|
-
setup(__props, { expose: __expose, emit: __emit }) {
|
|
1958
|
-
const props = __props;
|
|
1959
|
-
const emit = __emit;
|
|
1960
|
-
const isOpenModal = ref(false);
|
|
1961
|
-
const jsonSchemaLocal = ref({});
|
|
1962
|
-
const isCodeVisible = ref(true);
|
|
1963
|
-
const isEditorVisible = ref(true);
|
|
1964
|
-
const importSchemaModalRef = ref();
|
|
1965
|
-
const jsonSchemaErrorState = ref(false);
|
|
1966
|
-
function closeModal() {
|
|
1967
|
-
isOpenModal.value = false;
|
|
1968
|
-
}
|
|
1969
|
-
function openModal(jsonSchema) {
|
|
1970
|
-
if (typeof jsonSchema !== "object" || !jsonSchema) {
|
|
1971
|
-
jsonSchemaLocal.value = {};
|
|
1972
|
-
} else {
|
|
1973
|
-
jsonSchemaLocal.value = cloneDeep(jsonSchema);
|
|
1974
|
-
}
|
|
1975
|
-
if (!jsonSchemaLocal.value.type && props.rootType) {
|
|
1976
|
-
jsonSchemaLocal.value.type = props.rootType;
|
|
1977
|
-
if (props.rootType === "object") {
|
|
1978
|
-
jsonSchemaLocal.value.properties = {};
|
|
1979
|
-
} else if (props.rootType === "array") {
|
|
1980
|
-
jsonSchemaLocal.value.items = { type: "string" };
|
|
1981
|
-
}
|
|
1982
|
-
}
|
|
1983
|
-
nextTick(() => {
|
|
1984
|
-
isOpenModal.value = true;
|
|
1985
|
-
});
|
|
1986
|
-
}
|
|
1987
|
-
function saveModal() {
|
|
1988
|
-
emit("save", { ...jsonSchemaLocal.value });
|
|
1989
|
-
closeModal();
|
|
1990
|
-
}
|
|
1991
|
-
function openImportJsonSchema() {
|
|
1992
|
-
var _a;
|
|
1993
|
-
(_a = importSchemaModalRef.value) == null ? void 0 : _a.open();
|
|
1994
|
-
}
|
|
1995
|
-
function onImportJsonSave(jsonSchema) {
|
|
1996
|
-
jsonSchemaLocal.value = cloneDeep(jsonSchema);
|
|
1997
|
-
}
|
|
1998
|
-
function onUpdateErrorState(val) {
|
|
1999
|
-
jsonSchemaErrorState.value = val;
|
|
2000
|
-
}
|
|
2001
|
-
__expose({
|
|
2002
|
-
open: openModal,
|
|
2003
|
-
close: closeModal
|
|
2004
|
-
});
|
|
2005
|
-
return (_ctx, _cache) => {
|
|
2006
|
-
const _component_VcButton = resolveComponent("VcButton");
|
|
2007
|
-
return openBlock(), createBlock(_sfc_main$b, {
|
|
2008
|
-
visible: isOpenModal.value,
|
|
2009
|
-
breakpoints: {
|
|
2010
|
-
"680px": "98vw"
|
|
2011
|
-
},
|
|
2012
|
-
"append-to": _ctx.modalAppendTo,
|
|
2013
|
-
header: _ctx.$tVU.t("voicenterUi.jsonSchema.editModalTitle"),
|
|
2014
|
-
"data-test-name": "json-schema-modal",
|
|
2015
|
-
"modal-class": "vc-json-schema-modal",
|
|
2016
|
-
"content-class": "direction-ltr",
|
|
2017
|
-
maximizable: "",
|
|
2018
|
-
onClose: closeModal
|
|
2019
|
-
}, {
|
|
2020
|
-
footer: withCtx(() => [
|
|
2021
|
-
createElementVNode("div", _hoisted_4, [
|
|
2022
|
-
createVNode(_component_VcButton, {
|
|
2023
|
-
icon: "vc-icon-cancel",
|
|
2024
|
-
type: "outline",
|
|
2025
|
-
color: "secondary",
|
|
2026
|
-
onClick: closeModal
|
|
2027
|
-
}, {
|
|
2028
|
-
default: withCtx(() => [
|
|
2029
|
-
createTextVNode(toDisplayString(_ctx.$tVU.t("voicenterUi.general.cancel")), 1)
|
|
2030
|
-
]),
|
|
2031
|
-
_: 1
|
|
2032
|
-
}),
|
|
2033
|
-
createVNode(_component_VcButton, {
|
|
2034
|
-
disabled: jsonSchemaErrorState.value,
|
|
2035
|
-
icon: "vc-icon-save",
|
|
2036
|
-
color: "primary",
|
|
2037
|
-
onClick: saveModal
|
|
2038
|
-
}, {
|
|
2039
|
-
default: withCtx(() => [
|
|
2040
|
-
createTextVNode(toDisplayString(_ctx.$tVU.t("voicenterUi.general.save")), 1)
|
|
2041
|
-
]),
|
|
2042
|
-
_: 1
|
|
2043
|
-
}, 8, ["disabled"])
|
|
2044
|
-
])
|
|
2045
|
-
]),
|
|
2046
|
-
default: withCtx(() => [
|
|
2047
|
-
createElementVNode("div", _hoisted_1$1, [
|
|
2048
|
-
createElementVNode("div", _hoisted_2$1, [
|
|
2049
|
-
createVNode(_component_VcButton, {
|
|
2050
|
-
icon: "vc-lc-braces",
|
|
2051
|
-
size: "small",
|
|
2052
|
-
type: "outline",
|
|
2053
|
-
color: "primary-alternative",
|
|
2054
|
-
onClick: openImportJsonSchema
|
|
2055
|
-
}, {
|
|
2056
|
-
default: withCtx(() => [
|
|
2057
|
-
createTextVNode(toDisplayString(_ctx.$tVU.t("voicenterUi.jsonSchema.importJson")), 1)
|
|
2058
|
-
]),
|
|
2059
|
-
_: 1
|
|
2060
|
-
}),
|
|
2061
|
-
createVNode(_component_VcButton, {
|
|
2062
|
-
icon: isCodeVisible.value ? "vc-lc-eye" : "vc-lc-eye-off",
|
|
2063
|
-
size: "small",
|
|
2064
|
-
type: "outline",
|
|
2065
|
-
color: "primary-alternative",
|
|
2066
|
-
onClick: _cache[0] || (_cache[0] = ($event) => isCodeVisible.value = !isCodeVisible.value)
|
|
2067
|
-
}, {
|
|
2068
|
-
default: withCtx(() => [
|
|
2069
|
-
createTextVNode(toDisplayString(_ctx.$tVU.t("voicenterUi.jsonSchema.code")), 1)
|
|
2070
|
-
]),
|
|
2071
|
-
_: 1
|
|
2072
|
-
}, 8, ["icon"]),
|
|
2073
|
-
createVNode(_component_VcButton, {
|
|
2074
|
-
icon: isEditorVisible.value ? "vc-lc-eye" : "vc-lc-eye-off",
|
|
2075
|
-
size: "small",
|
|
2076
|
-
type: "outline",
|
|
2077
|
-
color: "primary-alternative",
|
|
2078
|
-
onClick: _cache[1] || (_cache[1] = ($event) => isEditorVisible.value = !isEditorVisible.value)
|
|
2079
|
-
}, {
|
|
2080
|
-
default: withCtx(() => [
|
|
2081
|
-
createTextVNode(toDisplayString(_ctx.$tVU.t("voicenterUi.jsonSchema.schema")), 1)
|
|
2082
|
-
]),
|
|
2083
|
-
_: 1
|
|
2084
|
-
}, 8, ["icon"])
|
|
2085
|
-
]),
|
|
2086
|
-
createElementVNode("div", _hoisted_3$1, [
|
|
2087
|
-
isCodeVisible.value ? (openBlock(), createElementBlock("div", {
|
|
2088
|
-
key: 0,
|
|
2089
|
-
class: normalizeClass([isEditorVisible.value ? "w-full md:w-1/2 lg:w-2/5" : "w-full", "p-1 overflow-y-auto h-full"])
|
|
2090
|
-
}, [
|
|
2091
|
-
createVNode(_sfc_main$5, {
|
|
2092
|
-
modelValue: jsonSchemaLocal.value,
|
|
2093
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => jsonSchemaLocal.value = $event),
|
|
2094
|
-
"onUpdate:errorState": onUpdateErrorState
|
|
2095
|
-
}, null, 8, ["modelValue"])
|
|
2096
|
-
], 2)) : createCommentVNode("", true),
|
|
2097
|
-
isEditorVisible.value ? (openBlock(), createElementBlock("div", {
|
|
2098
|
-
key: 1,
|
|
2099
|
-
class: normalizeClass([isCodeVisible.value ? "w-full md:w-1/2 lg:w-3/5" : "w-full", "p-2 overflow-x-auto"])
|
|
2100
|
-
}, [
|
|
2101
|
-
createVNode(_sfc_main$3, {
|
|
2102
|
-
modelValue: jsonSchemaLocal.value,
|
|
2103
|
-
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => jsonSchemaLocal.value = $event),
|
|
2104
|
-
"modal-append-to": _ctx.modalAppendTo
|
|
2105
|
-
}, null, 8, ["modelValue", "modal-append-to"])
|
|
2106
|
-
], 2)) : createCommentVNode("", true)
|
|
2107
|
-
])
|
|
2108
|
-
]),
|
|
2109
|
-
createVNode(_sfc_main$2, {
|
|
2110
|
-
ref_key: "importSchemaModalRef",
|
|
2111
|
-
ref: importSchemaModalRef,
|
|
2112
|
-
"modal-append-to": _ctx.modalAppendTo,
|
|
2113
|
-
onSave: onImportJsonSave
|
|
2114
|
-
}, null, 8, ["modal-append-to"])
|
|
2115
|
-
]),
|
|
2116
|
-
_: 1
|
|
2117
|
-
}, 8, ["visible", "append-to", "header"]);
|
|
2118
|
-
};
|
|
2119
|
-
}
|
|
2120
|
-
});
|
|
2121
|
-
const _hoisted_1 = { class: "vc-json-schema" };
|
|
2122
|
-
const _hoisted_2 = { class: "code" };
|
|
2123
|
-
const _hoisted_3 = { class: "vc-json-schema__actions" };
|
|
2124
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
2125
|
-
__name: "VcJsonSchema",
|
|
2126
|
-
props: {
|
|
2127
|
-
modalAppendTo: {},
|
|
2128
|
-
modelValue: {},
|
|
2129
|
-
hidePreview: { type: Boolean },
|
|
2130
|
-
actionsText: {},
|
|
2131
|
-
rootType: {},
|
|
2132
|
-
actionIcon: {},
|
|
2133
|
-
maxHeight: {},
|
|
2134
|
-
showOverflow: { type: Boolean },
|
|
2135
|
-
disabled: { type: Boolean }
|
|
2136
|
-
},
|
|
2137
|
-
emits: ["update:modelValue"],
|
|
2138
|
-
setup(__props, { expose: __expose, emit: __emit }) {
|
|
2139
|
-
const props = __props;
|
|
2140
|
-
const emit = __emit;
|
|
2141
|
-
const jsonManageModalRef = ref();
|
|
2142
|
-
const jsonSchemaModel = useVModel(props, "modelValue", emit);
|
|
2143
|
-
const { copyTextAction, copyDisabled, onCopyHandler } = useCopyButton();
|
|
2144
|
-
function openEditSchemaModal() {
|
|
2145
|
-
var _a;
|
|
2146
|
-
if (props.disabled) {
|
|
2147
|
-
return;
|
|
2148
|
-
}
|
|
2149
|
-
(_a = jsonManageModalRef.value) == null ? void 0 : _a.open(jsonSchemaModel.value);
|
|
2150
|
-
}
|
|
2151
|
-
function onUpdateJsonSchema(data) {
|
|
2152
|
-
jsonSchemaModel.value = data ? { ...data } : void 0;
|
|
2153
|
-
}
|
|
2154
|
-
function onCopySchema() {
|
|
2155
|
-
const data = JSON.stringify(jsonSchemaModel.value, null, 2);
|
|
2156
|
-
onCopyHandler(data);
|
|
2157
|
-
}
|
|
2158
|
-
__expose({
|
|
2159
|
-
openModal: openEditSchemaModal
|
|
2160
|
-
});
|
|
2161
|
-
return (_ctx, _cache) => {
|
|
2162
|
-
const _component_VcButton = resolveComponent("VcButton");
|
|
2163
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
2164
|
-
renderSlot(_ctx.$slots, "default", { handler: openEditSchemaModal }, () => [
|
|
2165
|
-
!_ctx.hidePreview ? (openBlock(), createElementBlock("div", {
|
|
2166
|
-
key: 0,
|
|
2167
|
-
style: normalizeStyle({
|
|
2168
|
-
"--maxHeight": unref(convertToUnit)(_ctx.maxHeight)
|
|
2169
|
-
}),
|
|
2170
|
-
class: normalizeClass([_ctx.showOverflow ? "overflow-auto" : "overflow-hidden", "vc-json-schema__preview"])
|
|
2171
|
-
}, [
|
|
2172
|
-
createElementVNode("pre", _hoisted_2, toDisplayString(unref(jsonSchemaModel)), 1)
|
|
2173
|
-
], 6)) : createCommentVNode("", true),
|
|
2174
|
-
createElementVNode("div", _hoisted_3, [
|
|
2175
|
-
createVNode(_component_VcButton, {
|
|
2176
|
-
disabled: unref(copyDisabled),
|
|
2177
|
-
color: "primary-alternative",
|
|
2178
|
-
size: "small",
|
|
2179
|
-
type: "borderless",
|
|
2180
|
-
class: "vc-json-schema__copy-action",
|
|
2181
|
-
onClick: onCopySchema
|
|
2182
|
-
}, {
|
|
2183
|
-
default: withCtx(() => [
|
|
2184
|
-
createTextVNode(toDisplayString(unref(copyTextAction)), 1)
|
|
2185
|
-
]),
|
|
2186
|
-
_: 1
|
|
2187
|
-
}, 8, ["disabled"]),
|
|
2188
|
-
createVNode(_component_VcButton, {
|
|
2189
|
-
icon: _ctx.actionIcon,
|
|
2190
|
-
disabled: _ctx.disabled,
|
|
2191
|
-
size: "small",
|
|
2192
|
-
type: "outline",
|
|
2193
|
-
class: "vc-json-schema__edit-action",
|
|
2194
|
-
onClick: openEditSchemaModal
|
|
2195
|
-
}, {
|
|
2196
|
-
default: withCtx(() => [
|
|
2197
|
-
createTextVNode(toDisplayString(_ctx.actionsText || _ctx.$tVU.t("voicenterUi.jsonSchema.mainAction")), 1)
|
|
2198
|
-
]),
|
|
2199
|
-
_: 1
|
|
2200
|
-
}, 8, ["icon", "disabled"])
|
|
2201
|
-
])
|
|
2202
|
-
]),
|
|
2203
|
-
createVNode(_sfc_main$1, {
|
|
2204
|
-
ref_key: "jsonManageModalRef",
|
|
2205
|
-
ref: jsonManageModalRef,
|
|
2206
|
-
"root-type": _ctx.rootType,
|
|
2207
|
-
"modal-append-to": _ctx.modalAppendTo,
|
|
2208
|
-
onSave: onUpdateJsonSchema
|
|
2209
|
-
}, null, 8, ["root-type", "modal-append-to"])
|
|
2210
|
-
]);
|
|
2211
|
-
};
|
|
2212
|
-
}
|
|
2213
|
-
});
|
|
2214
|
-
export {
|
|
2215
|
-
_sfc_main as default
|
|
2216
|
-
};
|