@8wave/ai-elements 0.84.0 → 0.85.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +109 -0
- package/dist/_chunks/Media-Cu3QLEp0.js +120 -0
- package/dist/_chunks/Media-Cu3QLEp0.js.map +1 -0
- package/dist/_chunks/{PkStreamingMarkdown-SVWv4Oye.js → PkStreamingMarkdown-C_fNNe9O.js} +307 -295
- package/dist/_chunks/PkStreamingMarkdown-C_fNNe9O.js.map +1 -0
- package/dist/_chunks/PkToolRequestConfirm-DfRFlvE0.js +48 -0
- package/dist/_chunks/PkToolRequestConfirm-DfRFlvE0.js.map +1 -0
- package/dist/_chunks/PkToolRequestGeolocation-BpH3Ev71.js +67 -0
- package/dist/_chunks/PkToolRequestGeolocation-BpH3Ev71.js.map +1 -0
- package/dist/_chunks/PkToolRequestOAuthConnection-Ctz50teF.js +63 -0
- package/dist/_chunks/PkToolRequestOAuthConnection-Ctz50teF.js.map +1 -0
- package/dist/_chunks/{PkToolShowArtifact-Ddz3DsWl.js → PkToolShowArtifact-Drp_zW-3.js} +33 -33
- package/dist/_chunks/{PkToolShowArtifact-Ddz3DsWl.js.map → PkToolShowArtifact-Drp_zW-3.js.map} +1 -1
- package/dist/_chunks/{PkToolShowCalendarEvent-Kl7HolAK.js → PkToolShowCalendarEvent-D1XYExcQ.js} +40 -40
- package/dist/_chunks/{PkToolShowCalendarEvent-Kl7HolAK.js.map → PkToolShowCalendarEvent-D1XYExcQ.js.map} +1 -1
- package/dist/_chunks/PkToolShowComparison-DjK4sXS0.js +64 -0
- package/dist/_chunks/{PkToolShowComparison-BzyqEIMV.js.map → PkToolShowComparison-DjK4sXS0.js.map} +1 -1
- package/dist/_chunks/PkToolShowContactForm-DresTyBD.js +119 -0
- package/dist/_chunks/PkToolShowContactForm-DresTyBD.js.map +1 -0
- package/dist/_chunks/PkToolShowDiagram-Bg6gQn7r.js +228 -0
- package/dist/_chunks/PkToolShowDiagram-Bg6gQn7r.js.map +1 -0
- package/dist/_chunks/{PkToolShowEmail-DsmUAss-.js → PkToolShowEmail-DGCKzD3s.js} +31 -31
- package/dist/_chunks/{PkToolShowEmail-DsmUAss-.js.map → PkToolShowEmail-DGCKzD3s.js.map} +1 -1
- package/dist/_chunks/{PkToolShowImageGallery-BDKm1kSX.js → PkToolShowImageGallery-BhyAMaes.js} +19 -19
- package/dist/_chunks/{PkToolShowImageGallery-BDKm1kSX.js.map → PkToolShowImageGallery-BhyAMaes.js.map} +1 -1
- package/dist/_chunks/PkToolShowLocation-BDVFw7qK.js +1140 -0
- package/dist/_chunks/PkToolShowLocation-BDVFw7qK.js.map +1 -0
- package/dist/_chunks/{PkToolShowMessage-xy09z85p.js → PkToolShowMessage-BqH-tE8K.js} +27 -27
- package/dist/_chunks/{PkToolShowMessage-xy09z85p.js.map → PkToolShowMessage-BqH-tE8K.js.map} +1 -1
- package/dist/_chunks/PkToolShowMultipleChoice-DNfjzGxI.js +81 -0
- package/dist/_chunks/PkToolShowMultipleChoice-DNfjzGxI.js.map +1 -0
- package/dist/_chunks/{PkToolShowProductList-Al_csZaz.js → PkToolShowProductList-DeU4qyZp.js} +26 -26
- package/dist/_chunks/{PkToolShowProductList-Al_csZaz.js.map → PkToolShowProductList-DeU4qyZp.js.map} +1 -1
- package/dist/_chunks/{PkToolShowQrCode-RUJ3enlC.js → PkToolShowQrCode-BrljSubk.js} +22 -22
- package/dist/_chunks/{PkToolShowQrCode-RUJ3enlC.js.map → PkToolShowQrCode-BrljSubk.js.map} +1 -1
- package/dist/_chunks/PkToolShowSources-Ca36N91a.js +396 -0
- package/dist/_chunks/PkToolShowSources-Ca36N91a.js.map +1 -0
- package/dist/_chunks/PkToolShowSuggestedReply-2lyEikVx.js +47 -0
- package/dist/_chunks/PkToolShowSuggestedReply-2lyEikVx.js.map +1 -0
- package/dist/_chunks/{PkToolShowWeather-CSua0gHs.js → PkToolShowWeather-CnTyMQTT.js} +63 -63
- package/dist/_chunks/{PkToolShowWeather-CSua0gHs.js.map → PkToolShowWeather-CnTyMQTT.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWebPages-8GWslqfY.js → PkToolShowWebPages-X0tkNJhc.js} +19 -19
- package/dist/_chunks/{PkToolShowWebPages-8GWslqfY.js.map → PkToolShowWebPages-X0tkNJhc.js.map} +1 -1
- package/dist/_chunks/{PkUrl-CeYapZ9E.js → PkUrl-ChRoceUn.js} +12 -12
- package/dist/_chunks/{PkUrl-CeYapZ9E.js.map → PkUrl-ChRoceUn.js.map} +1 -1
- package/dist/_chunks/{VvCheckbox.es-kAXSBkfn.js → VvCheckbox.es-CjtdGRKd.js} +63 -63
- package/dist/_chunks/{VvCheckbox.es-kAXSBkfn.js.map → VvCheckbox.es-CjtdGRKd.js.map} +1 -1
- package/dist/_chunks/{VvCheckboxGroup.es-Db-bLs2D.js → VvCheckboxGroup.es-DYHTVBaF.js} +91 -91
- package/dist/_chunks/{VvCheckboxGroup.es-Db-bLs2D.js.map → VvCheckboxGroup.es-DYHTVBaF.js.map} +1 -1
- package/dist/_chunks/VvCombobox.es-BxxQaz48.js +1998 -0
- package/dist/_chunks/{VvCombobox.es-CUUNtqyJ.js.map → VvCombobox.es-BxxQaz48.js.map} +1 -1
- package/dist/_chunks/{VvInputText.es-DeAexenB.js → VvInputText.es-B13qbrJj.js} +420 -420
- package/dist/_chunks/{VvInputText.es-DeAexenB.js.map → VvInputText.es-B13qbrJj.js.map} +1 -1
- package/dist/_chunks/{VvRadio.es-lb_BYfq5.js → VvRadio.es-DuSk75Cl.js} +117 -117
- package/dist/_chunks/{VvRadio.es-lb_BYfq5.js.map → VvRadio.es-DuSk75Cl.js.map} +1 -1
- package/dist/_chunks/{VvRadioGroup.es-BjvxDtU_.js → VvRadioGroup.es-BjPz7xfR.js} +91 -91
- package/dist/_chunks/{VvRadioGroup.es-BjvxDtU_.js.map → VvRadioGroup.es-BjPz7xfR.js.map} +1 -1
- package/dist/_chunks/{VvSelect.es-C9hkmhJf.js → VvSelect.es-CKFBoQN-.js} +119 -119
- package/dist/_chunks/{VvSelect.es-C9hkmhJf.js.map → VvSelect.es-CKFBoQN-.js.map} +1 -1
- package/dist/_chunks/VvTextarea.es-CICFo2Rh.js +1110 -0
- package/dist/_chunks/{VvTextarea.es-B5txwRRm.js.map → VvTextarea.es-CICFo2Rh.js.map} +1 -1
- package/dist/_chunks/dist-Dplp2WfI.js +799 -0
- package/dist/_chunks/{dist-DHG50RNO.js.map → dist-Dplp2WfI.js.map} +1 -1
- package/dist/_chunks/{esm-8uCGyZon.js → esm-CtL6xvv9.js} +19 -19
- package/dist/_chunks/{esm-8uCGyZon.js.map → esm-CtL6xvv9.js.map} +1 -1
- package/dist/_chunks/{floating-ui.vue-bC-fUl9J.js → floating-ui.vue-BWkka9Fn.js} +6 -6
- package/dist/_chunks/{floating-ui.vue-bC-fUl9J.js.map → floating-ui.vue-BWkka9Fn.js.map} +1 -1
- package/dist/_chunks/{iconify-B2ZQHsNr.js → iconify-DlYsYC8z.js} +5 -5
- package/dist/_chunks/{iconify-B2ZQHsNr.js.map → iconify-DlYsYC8z.js.map} +1 -1
- package/dist/_chunks/{index.es-CusxIi0s.js → index.es-9_Td6lnP.js} +2306 -2306
- package/dist/_chunks/{index.es-CusxIi0s.js.map → index.es-9_Td6lnP.js.map} +1 -1
- package/dist/_chunks/index.es-BC4SxvmK.js +994 -0
- package/dist/_chunks/index.es-BC4SxvmK.js.map +1 -0
- package/dist/_chunks/{src-RaVs-PqK.js → src-L9Jq1dyr.js} +11 -11
- package/dist/_chunks/{src-RaVs-PqK.js.map → src-L9Jq1dyr.js.map} +1 -1
- package/dist/_chunks/{useLightbox-C7JFztx4.js → useLightbox-kKLPhYUx.js} +9 -7
- package/dist/_chunks/{useLightbox-C7JFztx4.js.map → useLightbox-kKLPhYUx.js.map} +1 -1
- package/dist/_chunks/{vue-i18n-fHp3k8qw.js → vue-i18n-BjaFxqmH.js} +40 -40
- package/dist/_chunks/{vue-i18n-fHp3k8qw.js.map → vue-i18n-BjaFxqmH.js.map} +1 -1
- package/dist/_chunks/{vue.runtime.esm-bundler-7_kt7y9A.js → vue.runtime.esm-bundler-B-iHWsf4.js} +702 -702
- package/dist/_chunks/{vue.runtime.esm-bundler-7_kt7y9A.js.map → vue.runtime.esm-bundler-B-iHWsf4.js.map} +1 -1
- package/dist/ai-elements.es.js +4016 -10669
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotFeedbackForm.js +1 -1
- package/dist-vue/PkChatbotFilePreview.js +1 -1
- package/dist-vue/PkChatbotInput.js +1 -1
- package/dist-vue/PkChatbotMessages.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/PkChatbotViewConversations.js +1 -1
- package/dist-vue/PkChatbotViewProfile.js +1 -1
- package/dist-vue/_chunks/Media-D5pFbMNh.js +120 -0
- package/dist-vue/_chunks/Media-D5pFbMNh.js.map +1 -0
- package/dist-vue/_chunks/PkChatbot-UDExD81D.js +190 -0
- package/dist-vue/_chunks/PkChatbot-UDExD81D.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotFeedbackForm-BiVUo4kv.js → PkChatbotFeedbackForm-Dy2ojy2E.js} +1 -1
- package/dist-vue/_chunks/{PkChatbotFeedbackForm-BiVUo4kv.js.map → PkChatbotFeedbackForm-Dy2ojy2E.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotFilePreview-0N9ASbIp.js → PkChatbotFilePreview-7hRouK9o.js} +5 -3
- package/dist-vue/_chunks/PkChatbotFilePreview-7hRouK9o.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotInput-CsazCkTA.js → PkChatbotInput-Dn4KFNfx.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotInput-CsazCkTA.js.map → PkChatbotInput-Dn4KFNfx.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-BDziUgck.js → PkChatbotMessages-DUOrit9Y.js} +47 -33
- package/dist-vue/_chunks/PkChatbotMessages-DUOrit9Y.js.map +1 -0
- package/dist-vue/_chunks/PkChatbotViewChat-BgH9Op_G.js +225 -0
- package/dist-vue/_chunks/PkChatbotViewChat-BgH9Op_G.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewConversations-kIc1reZT.js → PkChatbotViewConversations-B9KC-0ir.js} +13 -13
- package/dist-vue/_chunks/{PkChatbotViewConversations-kIc1reZT.js.map → PkChatbotViewConversations-B9KC-0ir.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-pSKOgtIR.js → PkChatbotViewProfile-C0q898hz.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-pSKOgtIR.js.map → PkChatbotViewProfile-C0q898hz.js.map} +1 -1
- package/dist-vue/_chunks/{PkStreamingMarkdown-BUiAi-qv.js → PkStreamingMarkdown-BDtjktHX.js} +296 -284
- package/dist-vue/_chunks/PkStreamingMarkdown-BDtjktHX.js.map +1 -0
- package/dist-vue/_chunks/PkSvgViewer-DoClMDnF.js +125 -0
- package/dist-vue/_chunks/PkSvgViewer-DoClMDnF.js.map +1 -0
- package/dist-vue/_chunks/PkToolRequestConfirm-BcZ10rMb.js +48 -0
- package/dist-vue/_chunks/{PkToolRequestConfirm-BsHpoI-c.js.map → PkToolRequestConfirm-BcZ10rMb.js.map} +1 -1
- package/dist-vue/_chunks/PkToolRequestGeolocation-DXSqWFTR.js +67 -0
- package/dist-vue/_chunks/PkToolRequestGeolocation-DXSqWFTR.js.map +1 -0
- package/dist-vue/_chunks/PkToolRequestOAuthConnection-CIrFBhxL.js +63 -0
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-shcJXxtk.js.map → PkToolRequestOAuthConnection-CIrFBhxL.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowArtifact-D4BVWuMi.js → PkToolShowArtifact-BVFPfZT8.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowArtifact-D4BVWuMi.js.map → PkToolShowArtifact-BVFPfZT8.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowCalendarEvent-Q_2-tXmC.js → PkToolShowCalendarEvent-9jaBqWBJ.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowCalendarEvent-Q_2-tXmC.js.map → PkToolShowCalendarEvent-9jaBqWBJ.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowComparison-BpYZb-z5.js → PkToolShowComparison-D1YHzvyy.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowComparison-BpYZb-z5.js.map → PkToolShowComparison-D1YHzvyy.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-DuOeYoCU.js → PkToolShowContactForm-BVtuQVGs.js} +5 -5
- package/dist-vue/_chunks/{PkToolShowContactForm-DuOeYoCU.js.map → PkToolShowContactForm-BVtuQVGs.js.map} +1 -1
- package/dist-vue/_chunks/PkToolShowDiagram-CLyYku9I.js +112 -0
- package/dist-vue/_chunks/PkToolShowDiagram-CLyYku9I.js.map +1 -0
- package/dist-vue/_chunks/{PkToolShowEmail-CDR-Cw-s.js → PkToolShowEmail-BZzv2-6y.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowEmail-CDR-Cw-s.js.map → PkToolShowEmail-BZzv2-6y.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowImageGallery-DhGmTPMP.js → PkToolShowImageGallery-Bt7QNtGe.js} +4 -4
- package/dist-vue/_chunks/{PkToolShowImageGallery-DhGmTPMP.js.map → PkToolShowImageGallery-Bt7QNtGe.js.map} +1 -1
- package/dist-vue/_chunks/PkToolShowLocation-DAg9HeYq.js +143 -0
- package/dist-vue/_chunks/PkToolShowLocation-DAg9HeYq.js.map +1 -0
- package/dist-vue/_chunks/{PkToolShowMessage-Cqb0WP-x.js → PkToolShowMessage-DvnO4DDb.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowMessage-Cqb0WP-x.js.map → PkToolShowMessage-DvnO4DDb.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowMultipleChoice-x7hNm6I2.js → PkToolShowMultipleChoice-BEWDze3p.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowMultipleChoice-x7hNm6I2.js.map → PkToolShowMultipleChoice-BEWDze3p.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowProductList-CMFBvHAY.js → PkToolShowProductList-Cyh_fdTh.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowProductList-CMFBvHAY.js.map → PkToolShowProductList-Cyh_fdTh.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowQrCode-LFCfdWyu.js → PkToolShowQrCode-Dz3HlJGs.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowQrCode-LFCfdWyu.js.map → PkToolShowQrCode-Dz3HlJGs.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-D0wbYpTR.js → PkToolShowSources-cFvwqgDz.js} +21 -21
- package/dist-vue/_chunks/{PkToolShowSources-D0wbYpTR.js.map → PkToolShowSources-cFvwqgDz.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-CIP1xfB1.js → PkToolShowSuggestedReply-DIrmkOUq.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-CIP1xfB1.js.map → PkToolShowSuggestedReply-DIrmkOUq.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWeather-zT-4E-aX.js → PkToolShowWeather-CKFmoP6M.js} +1 -1
- package/dist-vue/_chunks/{PkToolShowWeather-zT-4E-aX.js.map → PkToolShowWeather-CKFmoP6M.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWebPages-DLc-5nE0.js → PkToolShowWebPages-DDsErkru.js} +4 -4
- package/dist-vue/_chunks/{PkToolShowWebPages-DLc-5nE0.js.map → PkToolShowWebPages-DDsErkru.js.map} +1 -1
- package/dist-vue/_chunks/{PkUrl-Da1k1VEM.js → PkUrl-DdRprvPJ.js} +1 -1
- package/dist-vue/_chunks/{PkUrl-Da1k1VEM.js.map → PkUrl-DdRprvPJ.js.map} +1 -1
- package/dist-vue/_chunks/{apl-gZJv8aE0.js → apl-CiKuf38q.js} +1 -1
- package/dist-vue/_chunks/{apl-gZJv8aE0.js.map → apl-CiKuf38q.js.map} +1 -1
- package/dist-vue/_chunks/{asciiarmor-BKzT2CxY.js → asciiarmor-Cv_figT_.js} +1 -1
- package/dist-vue/_chunks/{asciiarmor-BKzT2CxY.js.map → asciiarmor-Cv_figT_.js.map} +1 -1
- package/dist-vue/_chunks/{asn1-CUOx9oeT.js → asn1-o22T4Rhb.js} +1 -1
- package/dist-vue/_chunks/{asn1-CUOx9oeT.js.map → asn1-o22T4Rhb.js.map} +1 -1
- package/dist-vue/_chunks/{asterisk-CtQouKe4.js → asterisk-BVQJUqvD.js} +1 -1
- package/dist-vue/_chunks/{asterisk-CtQouKe4.js.map → asterisk-BVQJUqvD.js.map} +1 -1
- package/dist-vue/_chunks/{brainfuck-C6v-NuzS.js → brainfuck-BUjoLd18.js} +1 -1
- package/dist-vue/_chunks/{brainfuck-C6v-NuzS.js.map → brainfuck-BUjoLd18.js.map} +1 -1
- package/dist-vue/_chunks/{clike-DBPD1mz3.js → clike-DnfYdh2t.js} +1 -1
- package/dist-vue/_chunks/{clike-DBPD1mz3.js.map → clike-DnfYdh2t.js.map} +1 -1
- package/dist-vue/_chunks/{clojure-xtczAEDV.js → clojure-Spy-VDMe.js} +1 -1
- package/dist-vue/_chunks/{clojure-xtczAEDV.js.map → clojure-Spy-VDMe.js.map} +1 -1
- package/dist-vue/_chunks/{cmake-DdDZ3JWF.js → cmake-Ctp7rWzy.js} +1 -1
- package/dist-vue/_chunks/{cmake-DdDZ3JWF.js.map → cmake-Ctp7rWzy.js.map} +1 -1
- package/dist-vue/_chunks/{cobol-BAMxIfCa.js → cobol-DX59jXra.js} +1 -1
- package/dist-vue/_chunks/{cobol-BAMxIfCa.js.map → cobol-DX59jXra.js.map} +1 -1
- package/dist-vue/_chunks/{coffeescript-CGTuQQp6.js → coffeescript-Bq4R3kBT.js} +1 -1
- package/dist-vue/_chunks/{coffeescript-CGTuQQp6.js.map → coffeescript-Bq4R3kBT.js.map} +1 -1
- package/dist-vue/_chunks/{commonlisp-Ccb03OgK.js → commonlisp-qnCvPlJb.js} +1 -1
- package/dist-vue/_chunks/{commonlisp-Ccb03OgK.js.map → commonlisp-qnCvPlJb.js.map} +1 -1
- package/dist-vue/_chunks/{createChatbotApiClient-C_E35aQf.js → createChatbotApiClient-C-jT5hE0.js} +96 -95
- package/dist-vue/_chunks/createChatbotApiClient-C-jT5hE0.js.map +1 -0
- package/dist-vue/_chunks/{crystal-DdoSQSAv.js → crystal-B02ya4cQ.js} +1 -1
- package/dist-vue/_chunks/{crystal-DdoSQSAv.js.map → crystal-B02ya4cQ.js.map} +1 -1
- package/dist-vue/_chunks/{css-TU14Ca1R.js → css-CzWlO-Xb.js} +1 -1
- package/dist-vue/_chunks/{css-TU14Ca1R.js.map → css-CzWlO-Xb.js.map} +1 -1
- package/dist-vue/_chunks/{cypher-CXLa4pI5.js → cypher-CLyYkG2-.js} +1 -1
- package/dist-vue/_chunks/{cypher-CXLa4pI5.js.map → cypher-CLyYkG2-.js.map} +1 -1
- package/dist-vue/_chunks/{d-BArAGMlp.js → d-DGUXRLLi.js} +1 -1
- package/dist-vue/_chunks/{d-BArAGMlp.js.map → d-DGUXRLLi.js.map} +1 -1
- package/dist-vue/_chunks/{diff-C3LIbTwG.js → diff-DRe8JdWk.js} +1 -1
- package/dist-vue/_chunks/{diff-C3LIbTwG.js.map → diff-DRe8JdWk.js.map} +1 -1
- package/dist-vue/_chunks/{dist-CUYb2Ykk.js → dist-7BKkikZw.js} +2 -2
- package/dist-vue/_chunks/{dist-CUYb2Ykk.js.map → dist-7BKkikZw.js.map} +1 -1
- package/dist-vue/_chunks/{dist-DlMrwhCk.js → dist-7u7jBD-H.js} +1 -1
- package/dist-vue/_chunks/{dist-DlMrwhCk.js.map → dist-7u7jBD-H.js.map} +1 -1
- package/dist-vue/_chunks/{dist-Bj32YA2b.js → dist-8BVnK6QW.js} +4 -4
- package/dist-vue/_chunks/{dist-Bj32YA2b.js.map → dist-8BVnK6QW.js.map} +1 -1
- package/dist-vue/_chunks/{dist-BtzPY8uU.js → dist-9IwNDEHQ.js} +2 -2
- package/dist-vue/_chunks/{dist-BtzPY8uU.js.map → dist-9IwNDEHQ.js.map} +1 -1
- package/dist-vue/_chunks/{dist-BMTTRExI.js → dist-BGTESNxJ.js} +1 -1
- package/dist-vue/_chunks/{dist-BMTTRExI.js.map → dist-BGTESNxJ.js.map} +1 -1
- package/dist-vue/_chunks/{dist-BUm8Nt7d.js → dist-BWdaSTBW.js} +2 -2
- package/dist-vue/_chunks/{dist-BUm8Nt7d.js.map → dist-BWdaSTBW.js.map} +1 -1
- package/dist-vue/_chunks/{dist-tDt7-5Hh.js → dist-BtFxPYCM.js} +1 -1
- package/dist-vue/_chunks/{dist-tDt7-5Hh.js.map → dist-BtFxPYCM.js.map} +1 -1
- package/dist-vue/_chunks/{dist-BM3i3wHC.js → dist-BwrhMmQA.js} +1 -1
- package/dist-vue/_chunks/{dist-BM3i3wHC.js.map → dist-BwrhMmQA.js.map} +1 -1
- package/dist-vue/_chunks/{dist-B_3TGJwf.js → dist-Cm-J5l4S2.js} +1 -1
- package/dist-vue/_chunks/dist-Cm-J5l4S2.js.map +1 -0
- package/dist-vue/_chunks/{dist-CUah0Xys.js → dist-CnmeOb2N.js} +3 -3
- package/dist-vue/_chunks/{dist-CUah0Xys.js.map → dist-CnmeOb2N.js.map} +1 -1
- package/dist-vue/_chunks/{dist-DI-XHVdE.js → dist-D34LRAfv.js} +2 -2
- package/dist-vue/_chunks/{dist-DI-XHVdE.js.map → dist-D34LRAfv.js.map} +1 -1
- package/dist-vue/_chunks/{dist-DACzskoy2.js → dist-D35h9xud2.js} +3 -3
- package/dist-vue/_chunks/{dist-DACzskoy2.js.map → dist-D35h9xud2.js.map} +1 -1
- package/dist-vue/_chunks/dist-DMKuVADK2.js +441 -0
- package/dist-vue/_chunks/dist-DMKuVADK2.js.map +1 -0
- package/dist-vue/_chunks/{dist-CwWFe7zF.js → dist-Dg1nGvwP.js} +1 -1
- package/dist-vue/_chunks/{dist-CwWFe7zF.js.map → dist-Dg1nGvwP.js.map} +1 -1
- package/dist-vue/_chunks/{dist-B2nNrire.js → dist-YcwJuFBx.js} +2 -2
- package/dist-vue/_chunks/{dist-B2nNrire.js.map → dist-YcwJuFBx.js.map} +1 -1
- package/dist-vue/_chunks/{dist-2JsKACZj.js → dist-b5CbbjSp.js} +1 -1
- package/dist-vue/_chunks/{dist-2JsKACZj.js.map → dist-b5CbbjSp.js.map} +1 -1
- package/dist-vue/_chunks/{dist-Cr5fwgdD.js → dist-kywGQjza.js} +2 -2
- package/dist-vue/_chunks/{dist-Cr5fwgdD.js.map → dist-kywGQjza.js.map} +1 -1
- package/dist-vue/_chunks/{dist-Df_bnb-v.js → dist-l6sREGf7.js} +1 -1
- package/dist-vue/_chunks/{dist-Df_bnb-v.js.map → dist-l6sREGf7.js.map} +1 -1
- package/dist-vue/_chunks/{dist-B1Xwe66S.js → dist-x5C6fPIQ.js} +2 -2
- package/dist-vue/_chunks/{dist-B1Xwe66S.js.map → dist-x5C6fPIQ.js.map} +1 -1
- package/dist-vue/_chunks/{dist-BgntOJ9J.js → dist-x73cXb-w.js} +3 -3
- package/dist-vue/_chunks/{dist-BgntOJ9J.js.map → dist-x73cXb-w.js.map} +1 -1
- package/dist-vue/_chunks/{dockerfile-DzujQve1.js → dockerfile-BpKVodrd.js} +2 -2
- package/dist-vue/_chunks/{dockerfile-DzujQve1.js.map → dockerfile-BpKVodrd.js.map} +1 -1
- package/dist-vue/_chunks/{dtd-B1f0YqWO.js → dtd-q9vHTxZ1.js} +1 -1
- package/dist-vue/_chunks/{dtd-B1f0YqWO.js.map → dtd-q9vHTxZ1.js.map} +1 -1
- package/dist-vue/_chunks/{dylan-bedk9ukf.js → dylan-CTRyD_yN.js} +1 -1
- package/dist-vue/_chunks/{dylan-bedk9ukf.js.map → dylan-CTRyD_yN.js.map} +1 -1
- package/dist-vue/_chunks/{ebnf-Cs5X8R8U.js → ebnf-DPw9AGDC.js} +1 -1
- package/dist-vue/_chunks/{ebnf-Cs5X8R8U.js.map → ebnf-DPw9AGDC.js.map} +1 -1
- package/dist-vue/_chunks/{ecl-CXPqOJjc.js → ecl-CuLlc0XE.js} +1 -1
- package/dist-vue/_chunks/{ecl-CXPqOJjc.js.map → ecl-CuLlc0XE.js.map} +1 -1
- package/dist-vue/_chunks/{eiffel-Oa4yGKHO.js → eiffel-DYyjt7F3.js} +1 -1
- package/dist-vue/_chunks/{eiffel-Oa4yGKHO.js.map → eiffel-DYyjt7F3.js.map} +1 -1
- package/dist-vue/_chunks/{elm-CEbGa4zC.js → elm-DcYv6ZJY.js} +1 -1
- package/dist-vue/_chunks/{elm-CEbGa4zC.js.map → elm-DcYv6ZJY.js.map} +1 -1
- package/dist-vue/_chunks/{erlang-BNnTSw8C.js → erlang-nipePvRg.js} +1 -1
- package/dist-vue/_chunks/{erlang-BNnTSw8C.js.map → erlang-nipePvRg.js.map} +1 -1
- package/dist-vue/_chunks/{factor-BIER3ncI.js → factor-C_jm0Hi8.js} +2 -2
- package/dist-vue/_chunks/{factor-BIER3ncI.js.map → factor-C_jm0Hi8.js.map} +1 -1
- package/dist-vue/_chunks/{fcl-HxmGK-W5.js → fcl-CqmPhDgo.js} +1 -1
- package/dist-vue/_chunks/{fcl-HxmGK-W5.js.map → fcl-CqmPhDgo.js.map} +1 -1
- package/dist-vue/_chunks/{forth-BoRU1oYL.js → forth-GAg6IwF6.js} +1 -1
- package/dist-vue/_chunks/{forth-BoRU1oYL.js.map → forth-GAg6IwF6.js.map} +1 -1
- package/dist-vue/_chunks/{fortran-8E8eLx-x.js → fortran-DyrSTiy7.js} +1 -1
- package/dist-vue/_chunks/{fortran-8E8eLx-x.js.map → fortran-DyrSTiy7.js.map} +1 -1
- package/dist-vue/_chunks/{gas-DzrG9cIr.js → gas-CBY6LBUu.js} +1 -1
- package/dist-vue/_chunks/{gas-DzrG9cIr.js.map → gas-CBY6LBUu.js.map} +1 -1
- package/dist-vue/_chunks/{gherkin-d-xjbPN9.js → gherkin-F6vIWaV0.js} +1 -1
- package/dist-vue/_chunks/{gherkin-d-xjbPN9.js.map → gherkin-F6vIWaV0.js.map} +1 -1
- package/dist-vue/_chunks/{groovy-DluoS5pg.js → groovy-DBvpslJE.js} +1 -1
- package/dist-vue/_chunks/{groovy-DluoS5pg.js.map → groovy-DBvpslJE.js.map} +1 -1
- package/dist-vue/_chunks/{haskell-DWzSrwGO.js → haskell-CzcXTuY3.js} +1 -1
- package/dist-vue/_chunks/{haskell-DWzSrwGO.js.map → haskell-CzcXTuY3.js.map} +1 -1
- package/dist-vue/_chunks/{haxe-nucWqdAl.js → haxe-C0K87vd-.js} +1 -1
- package/dist-vue/_chunks/{haxe-nucWqdAl.js.map → haxe-C0K87vd-.js.map} +1 -1
- package/dist-vue/_chunks/{http-wcQY3fv1.js → http-lhCYiIUK.js} +1 -1
- package/dist-vue/_chunks/{http-wcQY3fv1.js.map → http-lhCYiIUK.js.map} +1 -1
- package/dist-vue/_chunks/{idl-BZjtu2uP.js → idl-DiwlVJ2e.js} +1 -1
- package/dist-vue/_chunks/{idl-BZjtu2uP.js.map → idl-DiwlVJ2e.js.map} +1 -1
- package/dist-vue/_chunks/{javascript-D-DeSYfi.js → javascript-DoLQ_01m.js} +1 -1
- package/dist-vue/_chunks/{javascript-D-DeSYfi.js.map → javascript-DoLQ_01m.js.map} +1 -1
- package/dist-vue/_chunks/{julia-BdkHYLKN.js → julia-D-9kev9I.js} +1 -1
- package/dist-vue/_chunks/{julia-BdkHYLKN.js.map → julia-D-9kev9I.js.map} +1 -1
- package/dist-vue/_chunks/{livescript-B-rE2yGH.js → livescript-BXKPrYL1.js} +1 -1
- package/dist-vue/_chunks/{livescript-B-rE2yGH.js.map → livescript-BXKPrYL1.js.map} +1 -1
- package/dist-vue/_chunks/{lua-8MR4kmO6.js → lua-CmoiUImJ.js} +1 -1
- package/dist-vue/_chunks/{lua-8MR4kmO6.js.map → lua-CmoiUImJ.js.map} +1 -1
- package/dist-vue/_chunks/{mathematica-DsQZ56s1.js → mathematica-C0zVH3hb.js} +1 -1
- package/dist-vue/_chunks/{mathematica-DsQZ56s1.js.map → mathematica-C0zVH3hb.js.map} +1 -1
- package/dist-vue/_chunks/{mbox-BlqAOSZk.js → mbox-BQjArxBt.js} +1 -1
- package/dist-vue/_chunks/{mbox-BlqAOSZk.js.map → mbox-BQjArxBt.js.map} +1 -1
- package/dist-vue/_chunks/{mirc-CeWiL7Xj.js → mirc-CH7vSjBP.js} +1 -1
- package/dist-vue/_chunks/{mirc-CeWiL7Xj.js.map → mirc-CH7vSjBP.js.map} +1 -1
- package/dist-vue/_chunks/{mllike-B4w9rV72.js → mllike-BtNDtwtH.js} +1 -1
- package/dist-vue/_chunks/{mllike-B4w9rV72.js.map → mllike-BtNDtwtH.js.map} +1 -1
- package/dist-vue/_chunks/{modelica-BeZSjbWb.js → modelica-D0D4gw71.js} +1 -1
- package/dist-vue/_chunks/{modelica-BeZSjbWb.js.map → modelica-D0D4gw71.js.map} +1 -1
- package/dist-vue/_chunks/{mscgen-Diy4rp5E.js → mscgen-BREuUTcQ.js} +1 -1
- package/dist-vue/_chunks/{mscgen-Diy4rp5E.js.map → mscgen-BREuUTcQ.js.map} +1 -1
- package/dist-vue/_chunks/{mumps-DHp_hepw.js → mumps-Cj1f6cBa.js} +1 -1
- package/dist-vue/_chunks/{mumps-DHp_hepw.js.map → mumps-Cj1f6cBa.js.map} +1 -1
- package/dist-vue/_chunks/{nginx-ZUseZ3KV.js → nginx-CTa-DOcs.js} +1 -1
- package/dist-vue/_chunks/{nginx-ZUseZ3KV.js.map → nginx-CTa-DOcs.js.map} +1 -1
- package/dist-vue/_chunks/{nsis-g-2nkKRi.js → nsis-BWAOyRUP.js} +2 -2
- package/dist-vue/_chunks/{nsis-g-2nkKRi.js.map → nsis-BWAOyRUP.js.map} +1 -1
- package/dist-vue/_chunks/{ntriples-COZl-CW9.js → ntriples-zIN_qrIe.js} +1 -1
- package/dist-vue/_chunks/{ntriples-COZl-CW9.js.map → ntriples-zIN_qrIe.js.map} +1 -1
- package/dist-vue/_chunks/{octave-qefefCKI.js → octave-DIV6S7Pt.js} +1 -1
- package/dist-vue/_chunks/{octave-qefefCKI.js.map → octave-DIV6S7Pt.js.map} +1 -1
- package/dist-vue/_chunks/{oz-B7xBKeTb.js → oz-5rNpxapS.js} +1 -1
- package/dist-vue/_chunks/{oz-B7xBKeTb.js.map → oz-5rNpxapS.js.map} +1 -1
- package/dist-vue/_chunks/{pascal-B0deIU4R.js → pascal-7C5712Nh.js} +1 -1
- package/dist-vue/_chunks/{pascal-B0deIU4R.js.map → pascal-7C5712Nh.js.map} +1 -1
- package/dist-vue/_chunks/{perl-CrEeHa0-.js → perl-eAVlqDxG.js} +1 -1
- package/dist-vue/_chunks/{perl-CrEeHa0-.js.map → perl-eAVlqDxG.js.map} +1 -1
- package/dist-vue/_chunks/{pig-CQcAmjLr.js → pig-C6AL_r8r.js} +1 -1
- package/dist-vue/_chunks/{pig-CQcAmjLr.js.map → pig-C6AL_r8r.js.map} +1 -1
- package/dist-vue/_chunks/{powershell-CEOsLn17.js → powershell-DsA9A7ee.js} +1 -1
- package/dist-vue/_chunks/{powershell-CEOsLn17.js.map → powershell-DsA9A7ee.js.map} +1 -1
- package/dist-vue/_chunks/{properties-CIZ3QFxD.js → properties-DuF6jBwF.js} +1 -1
- package/dist-vue/_chunks/{properties-CIZ3QFxD.js.map → properties-DuF6jBwF.js.map} +1 -1
- package/dist-vue/_chunks/{protobuf-B9FrV1JK.js → protobuf-nlPU8ZM-.js} +1 -1
- package/dist-vue/_chunks/{protobuf-B9FrV1JK.js.map → protobuf-nlPU8ZM-.js.map} +1 -1
- package/dist-vue/_chunks/{pug-Dn8VvwH3.js → pug-C1RwTStM.js} +2 -2
- package/dist-vue/_chunks/{pug-Dn8VvwH3.js.map → pug-C1RwTStM.js.map} +1 -1
- package/dist-vue/_chunks/{puppet-C6TXtx4p.js → puppet-DFYbyNW2.js} +1 -1
- package/dist-vue/_chunks/{puppet-C6TXtx4p.js.map → puppet-DFYbyNW2.js.map} +1 -1
- package/dist-vue/_chunks/{python-DcAJJ0JG.js → python-Dv1DGCiz.js} +1 -1
- package/dist-vue/_chunks/{python-DcAJJ0JG.js.map → python-Dv1DGCiz.js.map} +1 -1
- package/dist-vue/_chunks/{q-WbmgnnmF.js → q-X1HLKyVv.js} +1 -1
- package/dist-vue/_chunks/{q-WbmgnnmF.js.map → q-X1HLKyVv.js.map} +1 -1
- package/dist-vue/_chunks/{r-C22XZ_AN.js → r-BZGUCY-c.js} +1 -1
- package/dist-vue/_chunks/{r-C22XZ_AN.js.map → r-BZGUCY-c.js.map} +1 -1
- package/dist-vue/_chunks/{rpm-B9APie5d.js → rpm-CDLCwfOD.js} +1 -1
- package/dist-vue/_chunks/{rpm-B9APie5d.js.map → rpm-CDLCwfOD.js.map} +1 -1
- package/dist-vue/_chunks/{ruby-D24Ax8EE.js → ruby-cVyKV-zg.js} +1 -1
- package/dist-vue/_chunks/{ruby-D24Ax8EE.js.map → ruby-cVyKV-zg.js.map} +1 -1
- package/dist-vue/_chunks/{sas-D4-twsz3.js → sas-BDPIwc3L.js} +1 -1
- package/dist-vue/_chunks/{sas-D4-twsz3.js.map → sas-BDPIwc3L.js.map} +1 -1
- package/dist-vue/_chunks/{scheme-CCmbAfjG.js → scheme-6m6S6r1m.js} +1 -1
- package/dist-vue/_chunks/{scheme-CCmbAfjG.js.map → scheme-6m6S6r1m.js.map} +1 -1
- package/dist-vue/_chunks/{shell-oVzTSWfo.js → shell-Dcuubvcg.js} +1 -1
- package/dist-vue/_chunks/{shell-oVzTSWfo.js.map → shell-Dcuubvcg.js.map} +1 -1
- package/dist-vue/_chunks/{sieve-DUlxvKqS.js → sieve-C0Ec4mOZ.js} +1 -1
- package/dist-vue/_chunks/{sieve-DUlxvKqS.js.map → sieve-C0Ec4mOZ.js.map} +1 -1
- package/dist-vue/_chunks/{simple-mode-B6svE9zR.js → simple-mode-CaO_UoX6.js} +1 -1
- package/dist-vue/_chunks/{simple-mode-B6svE9zR.js.map → simple-mode-CaO_UoX6.js.map} +1 -1
- package/dist-vue/_chunks/{smalltalk-9-Xd93Rn.js → smalltalk-C8mY0f87.js} +1 -1
- package/dist-vue/_chunks/{smalltalk-9-Xd93Rn.js.map → smalltalk-C8mY0f87.js.map} +1 -1
- package/dist-vue/_chunks/{solr-DzeE5sFM.js → solr-jbM7m8s0.js} +1 -1
- package/dist-vue/_chunks/{solr-DzeE5sFM.js.map → solr-jbM7m8s0.js.map} +1 -1
- package/dist-vue/_chunks/{sparql-GFDxBmFa.js → sparql-DJZXdQFZ.js} +1 -1
- package/dist-vue/_chunks/{sparql-GFDxBmFa.js.map → sparql-DJZXdQFZ.js.map} +1 -1
- package/dist-vue/_chunks/{spreadsheet-BD6sBFg8.js → spreadsheet-iKWvNdRt.js} +1 -1
- package/dist-vue/_chunks/{spreadsheet-BD6sBFg8.js.map → spreadsheet-iKWvNdRt.js.map} +1 -1
- package/dist-vue/_chunks/{sql-JuMmsoSB.js → sql-BQ2tj9MP.js} +1 -1
- package/dist-vue/_chunks/{sql-JuMmsoSB.js.map → sql-BQ2tj9MP.js.map} +1 -1
- package/dist-vue/_chunks/{src-EtGd6cRz.js → src-DW4YojFN.js} +10 -10
- package/dist-vue/_chunks/{src-EtGd6cRz.js.map → src-DW4YojFN.js.map} +1 -1
- package/dist-vue/_chunks/{stex-Cy057UFl.js → stex-BEcrdSPS.js} +1 -1
- package/dist-vue/_chunks/{stex-Cy057UFl.js.map → stex-BEcrdSPS.js.map} +1 -1
- package/dist-vue/_chunks/{stylus-0KIe3uMX.js → stylus-b5gEI930.js} +1 -1
- package/dist-vue/_chunks/{stylus-0KIe3uMX.js.map → stylus-b5gEI930.js.map} +1 -1
- package/dist-vue/_chunks/{swift-tYMDqvYT.js → swift-RNJNWQs6.js} +1 -1
- package/dist-vue/_chunks/{swift-tYMDqvYT.js.map → swift-RNJNWQs6.js.map} +1 -1
- package/dist-vue/_chunks/{tcl-CSbjfJ81.js → tcl-BbY3AuDS.js} +1 -1
- package/dist-vue/_chunks/{tcl-CSbjfJ81.js.map → tcl-BbY3AuDS.js.map} +1 -1
- package/dist-vue/_chunks/{textile-Qe0pFxF7.js → textile-BM2q07iw.js} +1 -1
- package/dist-vue/_chunks/{textile-Qe0pFxF7.js.map → textile-BM2q07iw.js.map} +1 -1
- package/dist-vue/_chunks/{tiddlywiki-CYhUSC90.js → tiddlywiki-Bu7ffwvE.js} +1 -1
- package/dist-vue/_chunks/{tiddlywiki-CYhUSC90.js.map → tiddlywiki-Bu7ffwvE.js.map} +1 -1
- package/dist-vue/_chunks/{tiki-jtNVir5w.js → tiki-BSMiLiXp.js} +1 -1
- package/dist-vue/_chunks/{tiki-jtNVir5w.js.map → tiki-BSMiLiXp.js.map} +1 -1
- package/dist-vue/_chunks/{toml-C3FMZ9FE.js → toml-D3U9uI6V.js} +1 -1
- package/dist-vue/_chunks/{toml-C3FMZ9FE.js.map → toml-D3U9uI6V.js.map} +1 -1
- package/dist-vue/_chunks/{troff-FdVM_sPB.js → troff-DK_RaQh-.js} +1 -1
- package/dist-vue/_chunks/{troff-FdVM_sPB.js.map → troff-DK_RaQh-.js.map} +1 -1
- package/dist-vue/_chunks/{ttcn-Tmx7e7xS.js → ttcn-DVxr7ZdN.js} +1 -1
- package/dist-vue/_chunks/{ttcn-Tmx7e7xS.js.map → ttcn-DVxr7ZdN.js.map} +1 -1
- package/dist-vue/_chunks/{ttcn-cfg-BP7MXn1J.js → ttcn-cfg-CJG9xdrY.js} +1 -1
- package/dist-vue/_chunks/{ttcn-cfg-BP7MXn1J.js.map → ttcn-cfg-CJG9xdrY.js.map} +1 -1
- package/dist-vue/_chunks/{turtle-BtDXIrpF.js → turtle-Cj5kMy4D.js} +1 -1
- package/dist-vue/_chunks/{turtle-BtDXIrpF.js.map → turtle-Cj5kMy4D.js.map} +1 -1
- package/dist-vue/_chunks/{useChatbotStore-BXi-Gx7b.js → useChatbotStore-DCCWlutT.js} +1244 -1217
- package/dist-vue/_chunks/useChatbotStore-DCCWlutT.js.map +1 -0
- package/dist-vue/_chunks/{useSafeLocalStorage-BL5mqfb7.js → useSafeLocalStorage-DmA2eEi6.js} +2 -2
- package/dist-vue/_chunks/{useSafeLocalStorage-BL5mqfb7.js.map → useSafeLocalStorage-DmA2eEi6.js.map} +1 -1
- package/dist-vue/_chunks/{utils-CRojvghU.js → utils-UX35fb5C.js} +13 -13
- package/dist-vue/_chunks/{utils-CRojvghU.js.map → utils-UX35fb5C.js.map} +1 -1
- package/dist-vue/_chunks/{vb-DZ7E2F9i.js → vb-RlGsZALV.js} +1 -1
- package/dist-vue/_chunks/{vb-DZ7E2F9i.js.map → vb-RlGsZALV.js.map} +1 -1
- package/dist-vue/_chunks/{vbscript-DmYal433.js → vbscript-C6LN5bsX.js} +1 -1
- package/dist-vue/_chunks/{vbscript-DmYal433.js.map → vbscript-C6LN5bsX.js.map} +1 -1
- package/dist-vue/_chunks/{velocity-Dwi9C1bZ.js → velocity-7A5nvZTA.js} +1 -1
- package/dist-vue/_chunks/{velocity-Dwi9C1bZ.js.map → velocity-7A5nvZTA.js.map} +1 -1
- package/dist-vue/_chunks/{verilog-6XMMKLGD.js → verilog-CoPTkjsM.js} +1 -1
- package/dist-vue/_chunks/{verilog-6XMMKLGD.js.map → verilog-CoPTkjsM.js.map} +1 -1
- package/dist-vue/_chunks/{vhdl-BczymJF3.js → vhdl-BRtaeCKx.js} +1 -1
- package/dist-vue/_chunks/{vhdl-BczymJF3.js.map → vhdl-BRtaeCKx.js.map} +1 -1
- package/dist-vue/_chunks/{webidl-CaC70GJ2.js → webidl-BVwPXw7k.js} +1 -1
- package/dist-vue/_chunks/{webidl-CaC70GJ2.js.map → webidl-BVwPXw7k.js.map} +1 -1
- package/dist-vue/_chunks/{xquery-JS07XjNe.js → xquery-CXV9KVdL.js} +1 -1
- package/dist-vue/_chunks/{xquery-JS07XjNe.js.map → xquery-CXV9KVdL.js.map} +1 -1
- package/dist-vue/_chunks/{yacas-BXZNhOsZ.js → yacas-5ByKKRqf.js} +1 -1
- package/dist-vue/_chunks/{yacas-BXZNhOsZ.js.map → yacas-5ByKKRqf.js.map} +1 -1
- package/dist-vue/_chunks/{z80-Dtc8Q5vA.js → z80-wbH4fW7-.js} +1 -1
- package/dist-vue/_chunks/{z80-Dtc8Q5vA.js.map → z80-wbH4fW7-.js.map} +1 -1
- package/dist-vue/api.js +1 -1
- package/dist-vue/apps/web-component/src/components/EmbeddedChatWidget.ce.d.ts +8 -5
- package/dist-vue/apps/web-component/src/components/FloatingChatWidget.ce.d.ts +8 -1
- package/dist-vue/apps/web-component/src/composables/useChatbotAuth.d.ts +4 -0
- package/dist-vue/apps/web-component/src/lib.d.ts +34 -0
- package/dist-vue/apps/web-component/src/utils/emitWidgetEvent.d.ts +10 -0
- package/dist-vue/composables.js +4 -4
- package/dist-vue/index.js +8628 -4422
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/locales.js +106 -62
- package/dist-vue/packages/auth/src/index.d.ts +12 -12
- package/dist-vue/packages/components/src/PkEditorJsonSchema.d.ts +36 -0
- package/dist-vue/packages/components/src/PkSchemaField.d.ts +17 -0
- package/dist-vue/packages/components/src/PkSvgViewer.d.ts +8 -0
- package/dist-vue/packages/components/src/chat/PkAgentSettingsPanel.d.ts +5 -2
- package/dist-vue/packages/components/src/chat/PkChatbot.d.ts +2 -0
- package/dist-vue/packages/components/src/chat/PkChatbotMessages.d.ts +1 -0
- package/dist-vue/packages/components/src/chat/PkMessageParts.d.ts +6 -6
- package/dist-vue/packages/components/src/chat/PkStreamingMarkdown.d.ts +2 -0
- package/dist-vue/packages/components/src/chat/PkStreamingMarkdownAutoscroll.d.ts +1 -0
- package/dist-vue/packages/components/src/chat/PkToolShowDiagram.d.ts +8 -0
- package/dist-vue/packages/components/src/chat/PkToolShowLocation.d.ts +2 -0
- package/dist-vue/packages/components/src/chat/constants.d.ts +1 -1
- package/dist-vue/packages/components/src/index.d.ts +4 -1
- package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +21 -3
- package/dist-vue/packages/composable/src/index.d.ts +1 -0
- package/dist-vue/packages/composable/src/useJsonSchemaEditor.d.ts +45 -0
- package/dist-vue/packages/models/src/schema/Agent.d.ts +4 -0
- package/dist-vue/packages/models/src/schema/Chat.d.ts +3 -0
- package/dist-vue/packages/models/src/schema/Notification.d.ts +6 -0
- package/dist-vue/packages/models/src/schema/ReasoningChat.d.ts +2 -0
- package/dist-vue/packages/models/src/schema/SubAgent.d.ts +2 -0
- package/dist-vue/packages/models/src/schema/constants.d.ts +2 -0
- package/dist-vue/packages/models/src/utils.d.ts +2 -0
- package/dist-vue/style.css +1 -1
- package/package.json +7 -7
- package/dist/_chunks/PkStreamingMarkdown-SVWv4Oye.js.map +0 -1
- package/dist/_chunks/PkToolShowComparison-BzyqEIMV.js +0 -64
- package/dist/_chunks/VvCombobox.es-CUUNtqyJ.js +0 -1998
- package/dist/_chunks/VvTextarea.es-B5txwRRm.js +0 -1110
- package/dist/_chunks/dist-DHG50RNO.js +0 -768
- package/dist/_chunks/marker-icon-2x-Df3ovzYv.js +0 -7
- package/dist/_chunks/marker-icon-2x-Df3ovzYv.js.map +0 -1
- package/dist/_chunks/marker-icon-CCYFvBsS.js +0 -7
- package/dist/_chunks/marker-icon-CCYFvBsS.js.map +0 -1
- package/dist/_chunks/marker-shadow-CHjnGkIt.js +0 -7
- package/dist/_chunks/marker-shadow-CHjnGkIt.js.map +0 -1
- package/dist-vue/_chunks/Media-Dq8UU7iQ.js +0 -120
- package/dist-vue/_chunks/Media-Dq8UU7iQ.js.map +0 -1
- package/dist-vue/_chunks/PkChatbot-CoXx7Rul.js +0 -191
- package/dist-vue/_chunks/PkChatbot-CoXx7Rul.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotFilePreview-0N9ASbIp.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotMessages-BDziUgck.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotViewChat-DMnMkELX.js +0 -278
- package/dist-vue/_chunks/PkChatbotViewChat-DMnMkELX.js.map +0 -1
- package/dist-vue/_chunks/PkStreamingMarkdown-BUiAi-qv.js.map +0 -1
- package/dist-vue/_chunks/PkToolRequestConfirm-BsHpoI-c.js +0 -49
- package/dist-vue/_chunks/PkToolRequestOAuthConnection-shcJXxtk.js +0 -64
- package/dist-vue/_chunks/PkToolShowLocation-DBHdxOFr.js +0 -149
- package/dist-vue/_chunks/PkToolShowLocation-DBHdxOFr.js.map +0 -1
- package/dist-vue/_chunks/createChatbotApiClient-C_E35aQf.js.map +0 -1
- package/dist-vue/_chunks/dist-B_3TGJwf.js.map +0 -1
- package/dist-vue/_chunks/dist-sx4PacBp2.js +0 -440
- package/dist-vue/_chunks/dist-sx4PacBp2.js.map +0 -1
- package/dist-vue/_chunks/useChatbotStore-BXi-Gx7b.js.map +0 -1
- /package/dist/_chunks/{_plugin-vue_export-helper-BWIS0o4o.js → _plugin-vue_export-helper-5qR9iAls.js} +0 -0
|
@@ -0,0 +1,1998 @@
|
|
|
1
|
+
import { B as e, C as t, D as n, E as r, F as i, G as a, H as o, Ht as s, J as c, K as l, Kt as u, L as d, M as f, N as p, O as m, P as h, Q as g, S as _, U as v, Ut as y, V as b, Vt as ee, W as x, Y as te, _ as S, _t as ne, b as C, bt as w, ct as T, d as re, et as E, f as ie, j as D, k as O, l as k, m as A, n as ae, p as oe, pt as j, q as M, tt as se, u as ce, v as N, vt as P, w as le, x as F, y as I, z as L } from "./vue.runtime.esm-bundler-B-iHWsf4.js";
|
|
2
|
+
import { a as ue, i as de, t as R } from "./iconify-DlYsYC8z.js";
|
|
3
|
+
import { c as z, d as fe, h as B, l as pe, m as V, n as me, o as he, r as ge, s as _e, t as ve } from "./dist-Dplp2WfI.js";
|
|
4
|
+
import { a as ye, c as H, i as be, l as U, n as xe, o as Se, r as Ce, s as we, t as Te } from "./floating-ui.vue-BWkka9Fn.js";
|
|
5
|
+
import { t as Ee } from "./dot-prop-DBnEiG9k.js";
|
|
6
|
+
//#region ../../node_modules/.pnpm/@volverjs+ui-vue@0.0.13-beta.9_@volverjs+style@0.1.24-beta.3_@vueuse+core@14.3.0_vue@3._b9ef174e3f050b2d4a9af91f3bdfd9e5/node_modules/@volverjs/ui-vue/dist/components/VvCombobox/VvCombobox.es.js
|
|
7
|
+
var De = {
|
|
8
|
+
showPassword: "eye-on",
|
|
9
|
+
hidePassword: "eye-off",
|
|
10
|
+
showDatePicker: "calendar",
|
|
11
|
+
showTimePicker: "time",
|
|
12
|
+
showColorPicker: "color",
|
|
13
|
+
clear: "close",
|
|
14
|
+
add: "add",
|
|
15
|
+
remove: "trash",
|
|
16
|
+
edit: "edit",
|
|
17
|
+
download: "download"
|
|
18
|
+
}, Oe = { prefix: (/* @__PURE__ */ (function(e) {
|
|
19
|
+
return e.simple = "simple", e.normal = "normal", e.detailed = "detailed", e;
|
|
20
|
+
})({})).normal }, ke = /* @__PURE__ */ (function(e) {
|
|
21
|
+
return e.local = "local", e.session = "session", e;
|
|
22
|
+
})({}), W = /* @__PURE__ */ (function(e) {
|
|
23
|
+
return e.absolute = "absolute", e.fixed = "fixed", e;
|
|
24
|
+
})({}), G = /* @__PURE__ */ (function(e) {
|
|
25
|
+
return e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e;
|
|
26
|
+
})({}), K = /* @__PURE__ */ (function(e) {
|
|
27
|
+
return e.topStart = "top-start", e.topEnd = "top-end", e.bottomStart = "bottom-start", e.bottomEnd = "bottom-end", e.leftStart = "left-start", e.leftEnd = "left-end", e.rightStart = "right-start", e.rightEnd = "right-end", e;
|
|
28
|
+
})({}), q = /* @__PURE__ */ (function(e) {
|
|
29
|
+
return e.before = "before", e.after = "after", e;
|
|
30
|
+
})({}), Ae = /* @__PURE__ */ (function(e) {
|
|
31
|
+
return e.button = "button", e.submit = "submit", e.reset = "reset", e;
|
|
32
|
+
})({}), J = /* @__PURE__ */ (function(e) {
|
|
33
|
+
return e.nuxtLink = "nuxt-link", e.routerLink = "router-link", e.a = "a", e.button = "button", e;
|
|
34
|
+
})({}), Y = /* @__PURE__ */ (function(e) {
|
|
35
|
+
return e.button = "button", e.link = "link", e.menuitem = "menuitem", e;
|
|
36
|
+
})({}), je = /* @__PURE__ */ (function(e) {
|
|
37
|
+
return e.listbox = "listbox", e.menu = "menu", e;
|
|
38
|
+
})({}), Me = /* @__PURE__ */ (function(e) {
|
|
39
|
+
return e.option = "option", e.presentation = "presentation", e;
|
|
40
|
+
})({}), Ne = /* @__PURE__ */ Symbol.for("volver"), Pe = /* @__PURE__ */ Symbol.for("buttonGroup"), Fe = /* @__PURE__ */ Symbol.for("dropdownTrigger"), Ie = /* @__PURE__ */ Symbol.for("dropdownItem"), Le = /* @__PURE__ */ Symbol.for("dropdownAction"), Re = {
|
|
41
|
+
to: { type: [String, Object] },
|
|
42
|
+
href: String,
|
|
43
|
+
target: String,
|
|
44
|
+
rel: {
|
|
45
|
+
type: String,
|
|
46
|
+
default: "noopener noreferrer"
|
|
47
|
+
}
|
|
48
|
+
}, X = {
|
|
49
|
+
valid: {
|
|
50
|
+
type: Boolean,
|
|
51
|
+
default: !1
|
|
52
|
+
},
|
|
53
|
+
validLabel: {
|
|
54
|
+
type: [String, Array],
|
|
55
|
+
default: void 0
|
|
56
|
+
}
|
|
57
|
+
}, ze = {
|
|
58
|
+
invalid: {
|
|
59
|
+
type: Boolean,
|
|
60
|
+
default: !1
|
|
61
|
+
},
|
|
62
|
+
invalidLabel: {
|
|
63
|
+
type: [String, Array],
|
|
64
|
+
default: void 0
|
|
65
|
+
}
|
|
66
|
+
}, Z = {
|
|
67
|
+
loading: {
|
|
68
|
+
type: Boolean,
|
|
69
|
+
default: !1
|
|
70
|
+
},
|
|
71
|
+
loadingLabel: {
|
|
72
|
+
type: String,
|
|
73
|
+
default: "Loading..."
|
|
74
|
+
}
|
|
75
|
+
}, Be = { disabled: {
|
|
76
|
+
type: Boolean,
|
|
77
|
+
default: !1
|
|
78
|
+
} }, Ve = { required: {
|
|
79
|
+
type: Boolean,
|
|
80
|
+
default: !1
|
|
81
|
+
} }, He = { selected: {
|
|
82
|
+
type: Boolean,
|
|
83
|
+
default: !1
|
|
84
|
+
} }, Ue = { active: {
|
|
85
|
+
type: Boolean,
|
|
86
|
+
default: !1
|
|
87
|
+
} }, We = { current: {
|
|
88
|
+
type: Boolean,
|
|
89
|
+
default: !1
|
|
90
|
+
} }, Q = {
|
|
91
|
+
showClearAction: {
|
|
92
|
+
type: Boolean,
|
|
93
|
+
default: !1
|
|
94
|
+
},
|
|
95
|
+
iconClear: {
|
|
96
|
+
type: [String, Object],
|
|
97
|
+
default: De.clear
|
|
98
|
+
},
|
|
99
|
+
labelClear: {
|
|
100
|
+
type: String,
|
|
101
|
+
default: "Clear"
|
|
102
|
+
}
|
|
103
|
+
}, Ge = { pressed: {
|
|
104
|
+
type: Boolean,
|
|
105
|
+
default: !1
|
|
106
|
+
} }, Ke = { label: {
|
|
107
|
+
type: [String, Number],
|
|
108
|
+
default: void 0
|
|
109
|
+
} }, qe = { readonly: {
|
|
110
|
+
type: Boolean,
|
|
111
|
+
default: !1
|
|
112
|
+
} }, $ = { modifiers: {
|
|
113
|
+
type: [String, Array],
|
|
114
|
+
default: void 0
|
|
115
|
+
} }, Je = { hintLabel: {
|
|
116
|
+
type: String,
|
|
117
|
+
default: ""
|
|
118
|
+
} }, Ye = {
|
|
119
|
+
options: {
|
|
120
|
+
type: Array,
|
|
121
|
+
default: () => []
|
|
122
|
+
},
|
|
123
|
+
labelKey: {
|
|
124
|
+
type: [String, Function],
|
|
125
|
+
default: "label"
|
|
126
|
+
},
|
|
127
|
+
valueKey: {
|
|
128
|
+
type: [String, Function],
|
|
129
|
+
default: "value"
|
|
130
|
+
},
|
|
131
|
+
disabledKey: {
|
|
132
|
+
type: [String, Function],
|
|
133
|
+
default: "disabled"
|
|
134
|
+
}
|
|
135
|
+
}, Xe = { count: {
|
|
136
|
+
type: [Boolean, String],
|
|
137
|
+
default: !1,
|
|
138
|
+
validator: (e) => [
|
|
139
|
+
!0,
|
|
140
|
+
!1,
|
|
141
|
+
"limit",
|
|
142
|
+
"countdown"
|
|
143
|
+
].includes(e)
|
|
144
|
+
} }, Ze = { debounce: {
|
|
145
|
+
type: [Number, String],
|
|
146
|
+
default: void 0
|
|
147
|
+
} }, Qe = {
|
|
148
|
+
icon: {
|
|
149
|
+
type: [String, Object],
|
|
150
|
+
default: void 0
|
|
151
|
+
},
|
|
152
|
+
iconPosition: {
|
|
153
|
+
type: String,
|
|
154
|
+
default: q.before,
|
|
155
|
+
validation: (e) => Object.values(q).includes(e)
|
|
156
|
+
}
|
|
157
|
+
}, $e = { tabindex: {
|
|
158
|
+
type: [String, Number],
|
|
159
|
+
default: 0
|
|
160
|
+
} }, et = { floating: {
|
|
161
|
+
type: Boolean,
|
|
162
|
+
default: !1
|
|
163
|
+
} }, tt = { unselectable: {
|
|
164
|
+
type: Boolean,
|
|
165
|
+
default: !0
|
|
166
|
+
} }, nt = { id: [String, Number] }, rt = {
|
|
167
|
+
placement: {
|
|
168
|
+
type: String,
|
|
169
|
+
default: G.bottom,
|
|
170
|
+
validator: (e) => Object.values(G).includes(e) || Object.values(K).includes(e)
|
|
171
|
+
},
|
|
172
|
+
strategy: {
|
|
173
|
+
type: String,
|
|
174
|
+
default: void 0,
|
|
175
|
+
validator: (e) => Object.values(W).includes(e)
|
|
176
|
+
},
|
|
177
|
+
transitionName: {
|
|
178
|
+
type: String,
|
|
179
|
+
default: void 0
|
|
180
|
+
},
|
|
181
|
+
offset: {
|
|
182
|
+
type: [
|
|
183
|
+
Number,
|
|
184
|
+
String,
|
|
185
|
+
Object
|
|
186
|
+
],
|
|
187
|
+
default: 0
|
|
188
|
+
},
|
|
189
|
+
shift: {
|
|
190
|
+
type: [Boolean, Object],
|
|
191
|
+
default: !1
|
|
192
|
+
},
|
|
193
|
+
flip: {
|
|
194
|
+
type: [Boolean, Object],
|
|
195
|
+
default: !0
|
|
196
|
+
},
|
|
197
|
+
size: {
|
|
198
|
+
type: [Boolean, Object],
|
|
199
|
+
default: () => ({ padding: 10 })
|
|
200
|
+
},
|
|
201
|
+
autoPlacement: {
|
|
202
|
+
type: [Boolean, Object],
|
|
203
|
+
default: !1
|
|
204
|
+
},
|
|
205
|
+
arrow: {
|
|
206
|
+
type: Boolean,
|
|
207
|
+
default: !1
|
|
208
|
+
},
|
|
209
|
+
keepOpen: {
|
|
210
|
+
type: Boolean,
|
|
211
|
+
default: !1
|
|
212
|
+
},
|
|
213
|
+
autofocusFirst: {
|
|
214
|
+
type: Boolean,
|
|
215
|
+
default: !0
|
|
216
|
+
},
|
|
217
|
+
triggerWidth: {
|
|
218
|
+
type: Boolean,
|
|
219
|
+
default: !1
|
|
220
|
+
}
|
|
221
|
+
}, it = {
|
|
222
|
+
...nt,
|
|
223
|
+
name: {
|
|
224
|
+
type: String,
|
|
225
|
+
required: !0
|
|
226
|
+
}
|
|
227
|
+
}, at = { autofocus: {
|
|
228
|
+
type: Boolean,
|
|
229
|
+
default: !1
|
|
230
|
+
} }, ot = { autocomplete: {
|
|
231
|
+
type: String,
|
|
232
|
+
default: "off"
|
|
233
|
+
} };
|
|
234
|
+
({
|
|
235
|
+
...it,
|
|
236
|
+
...at,
|
|
237
|
+
...ot,
|
|
238
|
+
...$e,
|
|
239
|
+
...Be,
|
|
240
|
+
...qe,
|
|
241
|
+
...X,
|
|
242
|
+
...ze,
|
|
243
|
+
...Je,
|
|
244
|
+
...Z,
|
|
245
|
+
...$,
|
|
246
|
+
...Xe,
|
|
247
|
+
...Ze,
|
|
248
|
+
...Qe,
|
|
249
|
+
...et,
|
|
250
|
+
...Ke
|
|
251
|
+
}), { ...Ve }, {
|
|
252
|
+
...it,
|
|
253
|
+
...$e,
|
|
254
|
+
...X,
|
|
255
|
+
...ze,
|
|
256
|
+
...Je,
|
|
257
|
+
...Be,
|
|
258
|
+
...qe,
|
|
259
|
+
...$,
|
|
260
|
+
...Ke,
|
|
261
|
+
...Z
|
|
262
|
+
}, {
|
|
263
|
+
...X,
|
|
264
|
+
...ze,
|
|
265
|
+
...Ye,
|
|
266
|
+
...Je,
|
|
267
|
+
...Be,
|
|
268
|
+
...qe,
|
|
269
|
+
...$,
|
|
270
|
+
...Ke,
|
|
271
|
+
...Z,
|
|
272
|
+
...Ve
|
|
273
|
+
};
|
|
274
|
+
var st = {
|
|
275
|
+
...Be,
|
|
276
|
+
...Ke,
|
|
277
|
+
...Ge,
|
|
278
|
+
...Ue,
|
|
279
|
+
...We,
|
|
280
|
+
...Re,
|
|
281
|
+
type: {
|
|
282
|
+
type: String,
|
|
283
|
+
default: Ae.button,
|
|
284
|
+
validator: (e) => Object.values(Ae).includes(e)
|
|
285
|
+
},
|
|
286
|
+
ariaLabel: {
|
|
287
|
+
type: String,
|
|
288
|
+
default: void 0
|
|
289
|
+
},
|
|
290
|
+
defaultTag: {
|
|
291
|
+
type: String,
|
|
292
|
+
default: J.button
|
|
293
|
+
}
|
|
294
|
+
};
|
|
295
|
+
ke.local;
|
|
296
|
+
var ct = {
|
|
297
|
+
...it,
|
|
298
|
+
...$e,
|
|
299
|
+
...X,
|
|
300
|
+
...ze,
|
|
301
|
+
...Je,
|
|
302
|
+
...Z,
|
|
303
|
+
...Be,
|
|
304
|
+
...qe,
|
|
305
|
+
...$,
|
|
306
|
+
...Ye,
|
|
307
|
+
...Qe,
|
|
308
|
+
...et,
|
|
309
|
+
...rt,
|
|
310
|
+
...Ke,
|
|
311
|
+
...Ve,
|
|
312
|
+
...Q,
|
|
313
|
+
transitionName: {
|
|
314
|
+
type: String,
|
|
315
|
+
default: "vv-dropdown--mobile-fade-block"
|
|
316
|
+
},
|
|
317
|
+
modelValue: {
|
|
318
|
+
type: [
|
|
319
|
+
String,
|
|
320
|
+
Number,
|
|
321
|
+
Boolean,
|
|
322
|
+
Object,
|
|
323
|
+
Array
|
|
324
|
+
],
|
|
325
|
+
default: void 0
|
|
326
|
+
},
|
|
327
|
+
noResultsLabel: {
|
|
328
|
+
type: String,
|
|
329
|
+
default: "No results"
|
|
330
|
+
},
|
|
331
|
+
noOptionsLabel: {
|
|
332
|
+
type: String,
|
|
333
|
+
default: "No options available"
|
|
334
|
+
},
|
|
335
|
+
selectedOptionNotFoundLabel: {
|
|
336
|
+
type: String,
|
|
337
|
+
default: "Selected option not found"
|
|
338
|
+
},
|
|
339
|
+
selectedHintLabel: {
|
|
340
|
+
type: String,
|
|
341
|
+
default: "Selected"
|
|
342
|
+
},
|
|
343
|
+
deselectActionLabel: {
|
|
344
|
+
type: String,
|
|
345
|
+
default: "Deselect"
|
|
346
|
+
},
|
|
347
|
+
selectHintLabel: {
|
|
348
|
+
type: String,
|
|
349
|
+
default: "Press enter to select"
|
|
350
|
+
},
|
|
351
|
+
deselectHintLabel: {
|
|
352
|
+
type: String,
|
|
353
|
+
default: "Press enter to remove"
|
|
354
|
+
},
|
|
355
|
+
addOptionHintLabel: {
|
|
356
|
+
type: String,
|
|
357
|
+
default: "Press enter to add"
|
|
358
|
+
},
|
|
359
|
+
closeLabel: {
|
|
360
|
+
type: String,
|
|
361
|
+
default: "Close"
|
|
362
|
+
},
|
|
363
|
+
placeholder: String,
|
|
364
|
+
addable: Boolean,
|
|
365
|
+
searchable: Boolean,
|
|
366
|
+
keepSearch: Boolean,
|
|
367
|
+
searchFunction: {
|
|
368
|
+
type: Function,
|
|
369
|
+
default: void 0
|
|
370
|
+
},
|
|
371
|
+
searchPlaceholder: {
|
|
372
|
+
type: String,
|
|
373
|
+
default: "Search..."
|
|
374
|
+
},
|
|
375
|
+
debounceSearch: {
|
|
376
|
+
type: [Number, String],
|
|
377
|
+
default: 0
|
|
378
|
+
},
|
|
379
|
+
multiple: Boolean,
|
|
380
|
+
minValues: {
|
|
381
|
+
type: [Number, String],
|
|
382
|
+
default: 0
|
|
383
|
+
},
|
|
384
|
+
maxValues: [Number, String],
|
|
385
|
+
unselectable: {
|
|
386
|
+
type: Boolean,
|
|
387
|
+
default: !0
|
|
388
|
+
},
|
|
389
|
+
separator: {
|
|
390
|
+
type: String,
|
|
391
|
+
default: ", "
|
|
392
|
+
},
|
|
393
|
+
native: Boolean,
|
|
394
|
+
badges: Boolean,
|
|
395
|
+
badgeModifiers: {
|
|
396
|
+
type: [String, Array],
|
|
397
|
+
default: "action sm"
|
|
398
|
+
},
|
|
399
|
+
triggerWidth: {
|
|
400
|
+
...rt.triggerWidth,
|
|
401
|
+
default: !0
|
|
402
|
+
},
|
|
403
|
+
dropdownModifiers: {
|
|
404
|
+
type: [String, Array],
|
|
405
|
+
default: "mobile"
|
|
406
|
+
},
|
|
407
|
+
autoOpen: {
|
|
408
|
+
type: Boolean,
|
|
409
|
+
default: !1
|
|
410
|
+
},
|
|
411
|
+
autoselectFirst: {
|
|
412
|
+
type: Boolean,
|
|
413
|
+
default: !1
|
|
414
|
+
},
|
|
415
|
+
keepOpen: {
|
|
416
|
+
type: Boolean,
|
|
417
|
+
default: !1
|
|
418
|
+
},
|
|
419
|
+
focusOnHover: {
|
|
420
|
+
type: Boolean,
|
|
421
|
+
default: !0
|
|
422
|
+
}
|
|
423
|
+
};
|
|
424
|
+
function lt() {
|
|
425
|
+
return {
|
|
426
|
+
...ct,
|
|
427
|
+
options: {
|
|
428
|
+
...ct.options,
|
|
429
|
+
type: Array
|
|
430
|
+
},
|
|
431
|
+
searchFunction: {
|
|
432
|
+
...ct.searchFunction,
|
|
433
|
+
type: Function
|
|
434
|
+
}
|
|
435
|
+
};
|
|
436
|
+
}
|
|
437
|
+
function ut(e, t, n) {
|
|
438
|
+
return n ? ft(e, n) === ft(t, n) : dt(e, t);
|
|
439
|
+
}
|
|
440
|
+
function dt(e, t) {
|
|
441
|
+
if (e === t) return !0;
|
|
442
|
+
if (e && t && typeof e == "object" && typeof t == "object") {
|
|
443
|
+
let n = Array.isArray(e), r = Array.isArray(t), i, a, o;
|
|
444
|
+
if (n && r) {
|
|
445
|
+
if (a = e.length, a !== t.length) return !1;
|
|
446
|
+
for (i = a; i-- !== 0;) if (!dt(e[i], t[i])) return !1;
|
|
447
|
+
return !0;
|
|
448
|
+
}
|
|
449
|
+
if (n !== r) return !1;
|
|
450
|
+
let s = e instanceof Date, c = t instanceof Date;
|
|
451
|
+
if (s !== c) return !1;
|
|
452
|
+
if (s && c) return e.getTime() === t.getTime();
|
|
453
|
+
let l = e instanceof RegExp, u = t instanceof RegExp;
|
|
454
|
+
if (l !== u) return !1;
|
|
455
|
+
if (l && u) return e.toString() === t.toString();
|
|
456
|
+
let d = Object.keys(e);
|
|
457
|
+
if (a = d.length, a !== Object.keys(t).length) return !1;
|
|
458
|
+
for (i = a; i-- !== 0;) if (!Object.hasOwn(t, d[i])) return !1;
|
|
459
|
+
for (i = a; i-- !== 0;) if (o = d[i], !dt(e[o], t[o])) return !1;
|
|
460
|
+
return !0;
|
|
461
|
+
}
|
|
462
|
+
return Number.isNaN(e) && Number.isNaN(t);
|
|
463
|
+
}
|
|
464
|
+
function ft(e, t) {
|
|
465
|
+
if (e && Object.keys(e).length && t) if (t.includes(".")) {
|
|
466
|
+
let n = t.split("."), r = e;
|
|
467
|
+
for (let t = 0, i = n.length; t < i; ++t) {
|
|
468
|
+
if (e == null) return null;
|
|
469
|
+
r = r[n[t]];
|
|
470
|
+
}
|
|
471
|
+
return r;
|
|
472
|
+
} else return e[t];
|
|
473
|
+
else return null;
|
|
474
|
+
}
|
|
475
|
+
function pt(e, t) {
|
|
476
|
+
if (e != null && t && t.length) {
|
|
477
|
+
for (let n of t) if (ut(e, n)) return !0;
|
|
478
|
+
}
|
|
479
|
+
return !1;
|
|
480
|
+
}
|
|
481
|
+
function mt(e) {
|
|
482
|
+
return typeof e == "string";
|
|
483
|
+
}
|
|
484
|
+
function ht(e) {
|
|
485
|
+
return Array.isArray(e) ? e.filter((e) => mt(e)).join(" ") : e;
|
|
486
|
+
}
|
|
487
|
+
function gt(e, t) {
|
|
488
|
+
let n = S(() => T(e) ? e.value : e), i = S(() => ht(n.value.invalidLabel)), a = S(() => ht(n.value.validLabel)), o = S(() => n.value.loadingLabel), s = S(() => n.value.hintLabel), c = S(() => !!(n.value.loading && (t.loading || o.value))), l = S(() => !c.value && !!(n.value.invalid && (t.invalid || i.value))), u = S(() => !c.value && !l.value && !!(n.value.valid && (t.valid || a.value))), d = S(() => !c.value && !l.value && !u.value && !!(t.hint || s.value)), f = S(() => l.value || u.value || c.value || d.value);
|
|
489
|
+
return {
|
|
490
|
+
hasInvalidLabelOrSlot: l,
|
|
491
|
+
hasHintLabelOrSlot: d,
|
|
492
|
+
hasValidLabelOrSlot: u,
|
|
493
|
+
hasLoadingLabelOrSlot: c,
|
|
494
|
+
hintSlotScope: S(() => ({
|
|
495
|
+
modelValue: n.value.modelValue,
|
|
496
|
+
valid: n.value.valid,
|
|
497
|
+
invalid: n.value.invalid,
|
|
498
|
+
loading: n.value.loading
|
|
499
|
+
})),
|
|
500
|
+
HintSlot: r({
|
|
501
|
+
name: "HintSlot",
|
|
502
|
+
props: { tag: {
|
|
503
|
+
type: String,
|
|
504
|
+
default: "small"
|
|
505
|
+
} },
|
|
506
|
+
setup() {
|
|
507
|
+
return {
|
|
508
|
+
isVisible: f,
|
|
509
|
+
invalidLabel: i,
|
|
510
|
+
validLabel: a,
|
|
511
|
+
loadingLabel: o,
|
|
512
|
+
hintLabel: s,
|
|
513
|
+
hasInvalidLabelOrSlot: l,
|
|
514
|
+
hasValidLabelOrSlot: u,
|
|
515
|
+
hasLoadingLabelOrSlot: c,
|
|
516
|
+
hasHintLabelOrSlot: d
|
|
517
|
+
};
|
|
518
|
+
},
|
|
519
|
+
render() {
|
|
520
|
+
if (this.isVisible) {
|
|
521
|
+
let e;
|
|
522
|
+
return this.hasInvalidLabelOrSlot && (e = "alert"), this.hasValidLabelOrSlot && (e = "status"), this.hasLoadingLabelOrSlot ? O(this.tag, { role: e }, this.$slots.loading?.() ?? this.loadingLabel) : this.hasInvalidLabelOrSlot ? O(this.tag, { role: e }, this.$slots.invalid?.() ?? this.$slots.invalid ?? this.invalidLabel) : this.hasValidLabelOrSlot ? O(this.tag, { role: e }, this.$slots.valid?.() ?? this.validLabel) : O(this.tag, { role: e }, this.$slots.hint?.() ?? this.$slots.hint ?? this.hintLabel);
|
|
523
|
+
}
|
|
524
|
+
return null;
|
|
525
|
+
}
|
|
526
|
+
})
|
|
527
|
+
};
|
|
528
|
+
}
|
|
529
|
+
function _t() {
|
|
530
|
+
return D(Ne, void 0);
|
|
531
|
+
}
|
|
532
|
+
function vt(e, t, n) {
|
|
533
|
+
return S(() => {
|
|
534
|
+
let r = { [e]: !0 }, i = typeof t?.value == "string" ? t.value.split(" ") : t?.value;
|
|
535
|
+
return i && Array.isArray(i) && i.forEach((t) => {
|
|
536
|
+
t && (r[`${e}--${t}`] = !0);
|
|
537
|
+
}), n && Object.keys(n.value).forEach((t) => {
|
|
538
|
+
r[`${e}--${t}`] = w(n.value[t]);
|
|
539
|
+
}), r;
|
|
540
|
+
});
|
|
541
|
+
}
|
|
542
|
+
var yt = /* @__PURE__ */ r({
|
|
543
|
+
name: "VvIcon",
|
|
544
|
+
props: /* @__PURE__ */ f({
|
|
545
|
+
name: {},
|
|
546
|
+
color: {},
|
|
547
|
+
width: {},
|
|
548
|
+
height: {},
|
|
549
|
+
provider: {},
|
|
550
|
+
prefix: {},
|
|
551
|
+
src: {},
|
|
552
|
+
horizontalFlip: { type: Boolean },
|
|
553
|
+
verticalFlip: { type: Boolean },
|
|
554
|
+
flip: {},
|
|
555
|
+
mode: {},
|
|
556
|
+
inline: { type: Boolean },
|
|
557
|
+
rotate: {},
|
|
558
|
+
onLoad: { type: Function },
|
|
559
|
+
svg: {},
|
|
560
|
+
modifiers: {}
|
|
561
|
+
}, Oe),
|
|
562
|
+
setup(e) {
|
|
563
|
+
let t = e, n = S(() => typeof t.rotate == "string" ? Number.parseFloat(t.rotate) : t.rotate), r = j(!0), i = _t(), { modifiers: a } = P(t), o = vt("vv-icon", a), s = S(() => t.provider || i?.iconsProvider), c = S(() => {
|
|
564
|
+
let e = t.name ?? "", n = `@${s.value}:${t.prefix}:${e}`;
|
|
565
|
+
if (ue(n)) return n;
|
|
566
|
+
let r = i?.iconsCollections.find((t) => ue(`@${s.value}:${t.prefix}:${e}`));
|
|
567
|
+
return r ? `@${s.value}:${r.prefix}:${e}` : e;
|
|
568
|
+
});
|
|
569
|
+
function l(e) {
|
|
570
|
+
let t = typeof window < "u" ? new window.DOMParser() : null;
|
|
571
|
+
return t ? t.parseFromString(e, "text/html").querySelector("svg") : null;
|
|
572
|
+
}
|
|
573
|
+
function u(e) {
|
|
574
|
+
let n = l(e), r = n?.innerHTML.trim() || "";
|
|
575
|
+
n && r && de(`@${s.value}:${t.prefix}:${t.name}`, {
|
|
576
|
+
body: r,
|
|
577
|
+
height: n.viewBox.baseVal.height,
|
|
578
|
+
width: n.viewBox.baseVal.width
|
|
579
|
+
});
|
|
580
|
+
}
|
|
581
|
+
return i && t.src && !ue(`@${s.value}:${t.prefix}:${t.name}`) && (r.value = !1, i.fetchIcon(t.src).then((e) => {
|
|
582
|
+
e && u(e), r.value = !0;
|
|
583
|
+
}).catch((e) => {
|
|
584
|
+
throw r.value = !0, /* @__PURE__ */ Error(`Error during fetch icon: ${e?.message}`);
|
|
585
|
+
})), t.svg && u(t.svg), (t, i) => w(r) ? (L(), I(w(R), h({
|
|
586
|
+
key: 0,
|
|
587
|
+
class: w(o)
|
|
588
|
+
}, {
|
|
589
|
+
inline: e.inline,
|
|
590
|
+
width: e.width,
|
|
591
|
+
height: e.height,
|
|
592
|
+
horizontalFlip: e.horizontalFlip,
|
|
593
|
+
verticalFlip: e.verticalFlip,
|
|
594
|
+
flip: e.flip,
|
|
595
|
+
rotate: w(n),
|
|
596
|
+
color: e.color,
|
|
597
|
+
icon: w(c)
|
|
598
|
+
}, { onLoad: e.onLoad }), null, 16, ["class", "onLoad"])) : C("v-if", !0);
|
|
599
|
+
}
|
|
600
|
+
});
|
|
601
|
+
function bt(e, t) {
|
|
602
|
+
let n = S(() => typeof e?.value == "string" ? { name: e?.value } : e?.value), r = S(() => t?.value === q.before ? n.value : void 0), i = S(() => t?.value === q.after ? n.value : void 0);
|
|
603
|
+
return {
|
|
604
|
+
hasIcon: n,
|
|
605
|
+
hasIconLeft: S(() => t?.value === G.left ? n.value : void 0),
|
|
606
|
+
hasIconRight: S(() => t?.value === G.right ? n.value : void 0),
|
|
607
|
+
hasIconTop: S(() => t?.value === G.top ? n.value : void 0),
|
|
608
|
+
hasIconBottom: S(() => t?.value === G.bottom ? n.value : void 0),
|
|
609
|
+
hasIconBefore: r,
|
|
610
|
+
hasIconAfter: i
|
|
611
|
+
};
|
|
612
|
+
}
|
|
613
|
+
var xt = r({
|
|
614
|
+
components: { VvIcon: yt },
|
|
615
|
+
props: {
|
|
616
|
+
inputType: {
|
|
617
|
+
type: String,
|
|
618
|
+
default: "input-text"
|
|
619
|
+
},
|
|
620
|
+
disabled: {
|
|
621
|
+
type: Boolean,
|
|
622
|
+
default: !1
|
|
623
|
+
},
|
|
624
|
+
label: {
|
|
625
|
+
type: String,
|
|
626
|
+
default: "Clear"
|
|
627
|
+
},
|
|
628
|
+
icon: {
|
|
629
|
+
type: [String, Object],
|
|
630
|
+
default: "close"
|
|
631
|
+
}
|
|
632
|
+
},
|
|
633
|
+
emits: ["clear"],
|
|
634
|
+
setup(e, { emit: t }) {
|
|
635
|
+
let { hasIcon: n } = bt(S(() => e.icon));
|
|
636
|
+
function r(n) {
|
|
637
|
+
n?.stopPropagation(), e.disabled || t("clear");
|
|
638
|
+
}
|
|
639
|
+
return {
|
|
640
|
+
hasIcon: n,
|
|
641
|
+
onClick: r
|
|
642
|
+
};
|
|
643
|
+
},
|
|
644
|
+
render() {
|
|
645
|
+
let e = this.hasIcon ? O(yt, {
|
|
646
|
+
...this.hasIcon,
|
|
647
|
+
class: `vv-${this.inputType}__icon`
|
|
648
|
+
}) : void 0;
|
|
649
|
+
return O("button", {
|
|
650
|
+
disabled: this.disabled,
|
|
651
|
+
class: `vv-${this.inputType}__action`,
|
|
652
|
+
ariaLabel: this.label,
|
|
653
|
+
type: "button",
|
|
654
|
+
onClick: this.onClick
|
|
655
|
+
}, e);
|
|
656
|
+
}
|
|
657
|
+
}), St = /* @__PURE__ */ r({
|
|
658
|
+
name: "VvBadge",
|
|
659
|
+
props: {
|
|
660
|
+
...$,
|
|
661
|
+
value: [String, Number]
|
|
662
|
+
},
|
|
663
|
+
setup(e) {
|
|
664
|
+
let { modifiers: n } = P(e), r = vt("vv-badge", n);
|
|
665
|
+
return (e, n) => (L(), F("span", { class: ee(w(r)) }, [o(e.$slots, "default", {}, () => [t(u(e.value), 1)])], 2));
|
|
666
|
+
}
|
|
667
|
+
});
|
|
668
|
+
function Ct(e) {
|
|
669
|
+
let t = D(e, void 0), n = S(() => t !== void 0);
|
|
670
|
+
function r(e, n, r) {
|
|
671
|
+
let i = t?.[e];
|
|
672
|
+
if (i) return S({
|
|
673
|
+
get() {
|
|
674
|
+
return i.value;
|
|
675
|
+
},
|
|
676
|
+
set(e) {
|
|
677
|
+
i.value = e;
|
|
678
|
+
}
|
|
679
|
+
});
|
|
680
|
+
let a = ne(n, e);
|
|
681
|
+
return S({
|
|
682
|
+
get() {
|
|
683
|
+
return a.value;
|
|
684
|
+
},
|
|
685
|
+
set(t) {
|
|
686
|
+
r && r(`update:${e}`, t);
|
|
687
|
+
}
|
|
688
|
+
});
|
|
689
|
+
}
|
|
690
|
+
return {
|
|
691
|
+
group: t,
|
|
692
|
+
isInGroup: n,
|
|
693
|
+
getGroupOrLocalRef: r
|
|
694
|
+
};
|
|
695
|
+
}
|
|
696
|
+
var wt = ["update:modelValue"], Tt = {
|
|
697
|
+
...st,
|
|
698
|
+
...nt,
|
|
699
|
+
...$,
|
|
700
|
+
...tt,
|
|
701
|
+
...Z,
|
|
702
|
+
...Qe,
|
|
703
|
+
iconPosition: {
|
|
704
|
+
type: String,
|
|
705
|
+
default: G.left,
|
|
706
|
+
validator: (e) => Object.values(G).includes(e)
|
|
707
|
+
},
|
|
708
|
+
loadingIcon: {
|
|
709
|
+
type: String,
|
|
710
|
+
default: "eos-icons:bubble-loading"
|
|
711
|
+
},
|
|
712
|
+
toggle: {
|
|
713
|
+
type: Boolean,
|
|
714
|
+
default: !1
|
|
715
|
+
},
|
|
716
|
+
value: {
|
|
717
|
+
type: [
|
|
718
|
+
String,
|
|
719
|
+
Number,
|
|
720
|
+
Boolean
|
|
721
|
+
],
|
|
722
|
+
default: void 0
|
|
723
|
+
},
|
|
724
|
+
uncheckedValue: {
|
|
725
|
+
type: [
|
|
726
|
+
String,
|
|
727
|
+
Number,
|
|
728
|
+
Boolean
|
|
729
|
+
],
|
|
730
|
+
default: void 0
|
|
731
|
+
},
|
|
732
|
+
modelValue: {
|
|
733
|
+
type: [
|
|
734
|
+
String,
|
|
735
|
+
Number,
|
|
736
|
+
Boolean
|
|
737
|
+
],
|
|
738
|
+
default: void 0
|
|
739
|
+
}
|
|
740
|
+
};
|
|
741
|
+
function Et(e, t) {
|
|
742
|
+
let { group: n, isInGroup: r, getGroupOrLocalRef: i } = Ct(Pe), { id: a, iconPosition: o, icon: s, label: c, pressed: l } = P(e);
|
|
743
|
+
return {
|
|
744
|
+
group: n,
|
|
745
|
+
isInGroup: r,
|
|
746
|
+
modelValue: i("modelValue", e, t),
|
|
747
|
+
toggle: i("toggle", e),
|
|
748
|
+
unselectable: i("unselectable", e),
|
|
749
|
+
multiple: S(() => n?.multiple.value ?? !1),
|
|
750
|
+
modifiers: S(() => {
|
|
751
|
+
let t = e.modifiers, r = n?.modifiers.value, i = /* @__PURE__ */ new Set();
|
|
752
|
+
return t && (Array.isArray(t) || (t = t.split(" ")), t.forEach((e) => i.add(e))), r && (Array.isArray(r) || (r = r.split(" ")), r.forEach((e) => i.add(e))), [...i];
|
|
753
|
+
}),
|
|
754
|
+
disabled: S(() => !!(e.disabled || n?.disabled.value)),
|
|
755
|
+
id: a,
|
|
756
|
+
pressed: l,
|
|
757
|
+
iconPosition: o,
|
|
758
|
+
icon: s,
|
|
759
|
+
label: c
|
|
760
|
+
};
|
|
761
|
+
}
|
|
762
|
+
var Dt = [
|
|
763
|
+
"click",
|
|
764
|
+
"mouseover",
|
|
765
|
+
"mouseleave"
|
|
766
|
+
], Ot = st;
|
|
767
|
+
function kt() {
|
|
768
|
+
return D(Fe, {});
|
|
769
|
+
}
|
|
770
|
+
function At() {
|
|
771
|
+
return D(Ie, {});
|
|
772
|
+
}
|
|
773
|
+
function jt() {
|
|
774
|
+
return D(Le, {});
|
|
775
|
+
}
|
|
776
|
+
var Mt = /* @__PURE__ */ r({
|
|
777
|
+
name: "VvAction",
|
|
778
|
+
props: Ot,
|
|
779
|
+
emits: Dt,
|
|
780
|
+
setup(e, { expose: r, emit: i }) {
|
|
781
|
+
let a = e, s = i, c = n(), l = _t(), d = j(null);
|
|
782
|
+
r({ $el: d });
|
|
783
|
+
let { reference: f, bus: p, aria: m, expanded: _ } = kt();
|
|
784
|
+
g(() => d.value, (e) => {
|
|
785
|
+
f && (f.value = e);
|
|
786
|
+
});
|
|
787
|
+
let y = S(() => a.pressed || _?.value), { role: b } = jt(), ee = S(() => {
|
|
788
|
+
switch (!0) {
|
|
789
|
+
case a.disabled: return J.button;
|
|
790
|
+
case a.to !== void 0: return l?.nuxt ? v(J.nuxtLink) : J.routerLink;
|
|
791
|
+
case a.href !== void 0: return J.a;
|
|
792
|
+
default: return a.defaultTag;
|
|
793
|
+
}
|
|
794
|
+
}), te = S(() => {
|
|
795
|
+
let e = {
|
|
796
|
+
...m?.value,
|
|
797
|
+
ariaPressed: y.value ? !0 : void 0,
|
|
798
|
+
ariaLabel: a.ariaLabel,
|
|
799
|
+
role: b?.value
|
|
800
|
+
};
|
|
801
|
+
switch (ee.value) {
|
|
802
|
+
case J.a: return {
|
|
803
|
+
...e,
|
|
804
|
+
href: a.href,
|
|
805
|
+
target: a.target,
|
|
806
|
+
rel: a.rel
|
|
807
|
+
};
|
|
808
|
+
case J.routerLink:
|
|
809
|
+
case J.nuxtLink: return {
|
|
810
|
+
...e,
|
|
811
|
+
to: a.to,
|
|
812
|
+
target: a.target
|
|
813
|
+
};
|
|
814
|
+
case J.button: return {
|
|
815
|
+
...e,
|
|
816
|
+
type: a.type,
|
|
817
|
+
disabled: a.disabled
|
|
818
|
+
};
|
|
819
|
+
default: return e;
|
|
820
|
+
}
|
|
821
|
+
});
|
|
822
|
+
function ne(e) {
|
|
823
|
+
if (a.disabled) {
|
|
824
|
+
e.preventDefault();
|
|
825
|
+
return;
|
|
826
|
+
}
|
|
827
|
+
if (c?.vnode.props?.onClick) {
|
|
828
|
+
s("click", e);
|
|
829
|
+
return;
|
|
830
|
+
}
|
|
831
|
+
p?.emit("click", e);
|
|
832
|
+
}
|
|
833
|
+
function C(e) {
|
|
834
|
+
if (c?.vnode.props?.onMouseover) {
|
|
835
|
+
s("mouseover", e);
|
|
836
|
+
return;
|
|
837
|
+
}
|
|
838
|
+
p?.emit("mouseover", e);
|
|
839
|
+
}
|
|
840
|
+
function T(e) {
|
|
841
|
+
if (c?.vnode.props?.onMouseleave) {
|
|
842
|
+
s("mouseleave", e);
|
|
843
|
+
return;
|
|
844
|
+
}
|
|
845
|
+
p?.emit("mouseleave", e);
|
|
846
|
+
}
|
|
847
|
+
return (e, n) => (L(), I(x(w(ee)), h(w(te), {
|
|
848
|
+
ref_key: "rootEl",
|
|
849
|
+
ref: d,
|
|
850
|
+
class: {
|
|
851
|
+
active: e.active,
|
|
852
|
+
pressed: w(y),
|
|
853
|
+
disabled: e.disabled,
|
|
854
|
+
current: e.current
|
|
855
|
+
},
|
|
856
|
+
onClickPassive: ne,
|
|
857
|
+
onMouseoverPassive: C,
|
|
858
|
+
onMouseleavePassive: T
|
|
859
|
+
}), {
|
|
860
|
+
default: E(() => [o(e.$slots, "default", {}, () => [t(u(e.label), 1)])]),
|
|
861
|
+
_: 3
|
|
862
|
+
}, 16, ["class"]));
|
|
863
|
+
}
|
|
864
|
+
});
|
|
865
|
+
function Nt(e) {
|
|
866
|
+
return S(() => String(e?.value || M()));
|
|
867
|
+
}
|
|
868
|
+
var Pt = {
|
|
869
|
+
key: 1,
|
|
870
|
+
class: "vv-button__label"
|
|
871
|
+
}, Ft = {
|
|
872
|
+
key: 1,
|
|
873
|
+
class: "vv-button__label"
|
|
874
|
+
}, It = /* @__PURE__ */ r({
|
|
875
|
+
name: "VvButton",
|
|
876
|
+
inheritAttrs: !1,
|
|
877
|
+
props: Tt,
|
|
878
|
+
emits: wt,
|
|
879
|
+
setup(e, { expose: n, emit: r }) {
|
|
880
|
+
let i = e, a = r, s = l(), c = te(), { id: d, modifiers: f, iconPosition: p, icon: m, label: g, modelValue: _, disabled: v, toggle: y, unselectable: b } = Et(i, a), ee = Nt(d), x = S(() => s?.name || ee.value), ne = j(null);
|
|
881
|
+
n({ $el: S(() => ne.value?.$el) });
|
|
882
|
+
let T = S(() => y.value ? Array.isArray(_.value) ? pt(x.value, _.value) : ut(x.value, _.value) : i.pressed), re = vt("vv-button", f, S(() => ({
|
|
883
|
+
reverse: [G.right, G.bottom].includes(p.value),
|
|
884
|
+
column: [G.top, G.bottom].includes(p.value),
|
|
885
|
+
"icon-only": !!(m?.value && !g?.value && !c.default)
|
|
886
|
+
}))), { hasIcon: ie } = bt(m), D = S(() => i.value === void 0 ? x.value : i.value), O = S(() => {
|
|
887
|
+
if (y.value) return { onClick: k };
|
|
888
|
+
});
|
|
889
|
+
function k() {
|
|
890
|
+
if (y.value) {
|
|
891
|
+
if (Array.isArray(_.value)) {
|
|
892
|
+
if (pt(D.value, _.value)) {
|
|
893
|
+
b.value && (_.value = _.value.filter((e) => e !== D.value));
|
|
894
|
+
return;
|
|
895
|
+
}
|
|
896
|
+
_.value.push(D.value);
|
|
897
|
+
return;
|
|
898
|
+
}
|
|
899
|
+
if (D.value === _.value && b.value) {
|
|
900
|
+
_.value = i.uncheckedValue;
|
|
901
|
+
return;
|
|
902
|
+
}
|
|
903
|
+
_.value = D.value;
|
|
904
|
+
}
|
|
905
|
+
}
|
|
906
|
+
return (e, n) => (L(), I(Mt, h({
|
|
907
|
+
...w(s),
|
|
908
|
+
...w(O),
|
|
909
|
+
disabled: w(v),
|
|
910
|
+
pressed: w(T),
|
|
911
|
+
active: e.active,
|
|
912
|
+
type: e.type,
|
|
913
|
+
to: e.to,
|
|
914
|
+
href: e.href,
|
|
915
|
+
target: e.target,
|
|
916
|
+
rel: e.rel,
|
|
917
|
+
ariaLabel: e.ariaLabel
|
|
918
|
+
}, {
|
|
919
|
+
id: w(ee),
|
|
920
|
+
ref_key: "rootEl",
|
|
921
|
+
ref: ne,
|
|
922
|
+
class: w(re)
|
|
923
|
+
}), {
|
|
924
|
+
default: E(() => [o(e.$slots, "default", {}, () => [e.loading ? o(e.$slots, "loading", { key: 0 }, () => [e.loadingIcon ? (L(), I(yt, {
|
|
925
|
+
key: 0,
|
|
926
|
+
class: "vv-button__loading-icon",
|
|
927
|
+
name: e.loadingIcon
|
|
928
|
+
}, null, 8, ["name"])) : C("v-if", !0), e.loadingLabel ? (L(), F("span", Pt, u(e.loadingLabel), 1)) : C("v-if", !0)]) : (L(), F(A, { key: 1 }, [
|
|
929
|
+
o(e.$slots, "before"),
|
|
930
|
+
w(ie) ? (L(), I(yt, h({ key: 0 }, w(ie), { class: "vv-button__icon" }), null, 16)) : C("v-if", !0),
|
|
931
|
+
w(g) ? (L(), F("span", Ft, [o(e.$slots, "label", {}, () => [t(u(w(g)), 1)])])) : C("v-if", !0),
|
|
932
|
+
o(e.$slots, "after")
|
|
933
|
+
], 64))])]),
|
|
934
|
+
_: 3
|
|
935
|
+
}, 16, ["id", "class"]));
|
|
936
|
+
}
|
|
937
|
+
}), Lt = {
|
|
938
|
+
...nt,
|
|
939
|
+
...rt,
|
|
940
|
+
...$,
|
|
941
|
+
modelValue: {
|
|
942
|
+
type: Boolean,
|
|
943
|
+
default: void 0
|
|
944
|
+
},
|
|
945
|
+
reference: {
|
|
946
|
+
type: Object,
|
|
947
|
+
default: null
|
|
948
|
+
},
|
|
949
|
+
role: {
|
|
950
|
+
type: String,
|
|
951
|
+
default: je.menu,
|
|
952
|
+
validator: (e) => Object.values(je).includes(e)
|
|
953
|
+
}
|
|
954
|
+
}, Rt = { focusOnHover: {
|
|
955
|
+
type: Boolean,
|
|
956
|
+
default: !1
|
|
957
|
+
} }, zt = {
|
|
958
|
+
...Be,
|
|
959
|
+
...He,
|
|
960
|
+
...tt,
|
|
961
|
+
...$,
|
|
962
|
+
deselectHintLabel: { type: String },
|
|
963
|
+
selectHintLabel: { type: String },
|
|
964
|
+
selectedHintLabel: { type: String },
|
|
965
|
+
focusOnHover: {
|
|
966
|
+
type: Boolean,
|
|
967
|
+
default: !1
|
|
968
|
+
}
|
|
969
|
+
};
|
|
970
|
+
function Bt({ reference: t, id: n, expanded: i, aria: a }) {
|
|
971
|
+
let o = U();
|
|
972
|
+
return {
|
|
973
|
+
bus: o,
|
|
974
|
+
component: r({
|
|
975
|
+
name: "VvDropdownTriggerProvider",
|
|
976
|
+
setup() {
|
|
977
|
+
e(Fe, {
|
|
978
|
+
reference: t,
|
|
979
|
+
id: n,
|
|
980
|
+
expanded: i,
|
|
981
|
+
aria: a,
|
|
982
|
+
bus: o
|
|
983
|
+
});
|
|
984
|
+
},
|
|
985
|
+
render() {
|
|
986
|
+
return O(A, {}, this.$slots.default?.());
|
|
987
|
+
}
|
|
988
|
+
})
|
|
989
|
+
};
|
|
990
|
+
}
|
|
991
|
+
function Vt({ role: t, ...n }) {
|
|
992
|
+
let r = S(() => t.value === je.listbox ? Me.option : Me.presentation);
|
|
993
|
+
return e(Ie, {
|
|
994
|
+
role: r,
|
|
995
|
+
...n
|
|
996
|
+
}), { itemRole: r };
|
|
997
|
+
}
|
|
998
|
+
function Ht({ expanded: t }) {
|
|
999
|
+
e(Le, {
|
|
1000
|
+
role: j(Y.menuitem),
|
|
1001
|
+
expanded: t
|
|
1002
|
+
});
|
|
1003
|
+
}
|
|
1004
|
+
var Ut = [
|
|
1005
|
+
"id",
|
|
1006
|
+
"tabindex",
|
|
1007
|
+
"role",
|
|
1008
|
+
"aria-labelledby"
|
|
1009
|
+
], Wt = /* @__PURE__ */ r({
|
|
1010
|
+
name: "VvDropdown",
|
|
1011
|
+
inheritAttrs: !1,
|
|
1012
|
+
props: Lt,
|
|
1013
|
+
emits: [
|
|
1014
|
+
"update:modelValue",
|
|
1015
|
+
"beforeEnter",
|
|
1016
|
+
"afterLeave",
|
|
1017
|
+
"beforeExpand",
|
|
1018
|
+
"beforeCollapse",
|
|
1019
|
+
"afterExpand",
|
|
1020
|
+
"afterCollapse",
|
|
1021
|
+
"before-enter",
|
|
1022
|
+
"after-leave",
|
|
1023
|
+
"enter",
|
|
1024
|
+
"afterEnter",
|
|
1025
|
+
"enterCancelled",
|
|
1026
|
+
"beforeLeave",
|
|
1027
|
+
"leave",
|
|
1028
|
+
"leaveCancelled"
|
|
1029
|
+
],
|
|
1030
|
+
setup(e, { expose: t, emit: n }) {
|
|
1031
|
+
let r = e, c = n, { id: u } = P(r), f = Nt(u), p = l(), _ = j("auto"), v = j("auto"), b = j(), x = j(), te = j(), ne = j(), T = S({
|
|
1032
|
+
get: () => r.reference ?? b.value,
|
|
1033
|
+
set: (e) => {
|
|
1034
|
+
b.value = e;
|
|
1035
|
+
}
|
|
1036
|
+
}), ie = j(!1);
|
|
1037
|
+
d(() => {
|
|
1038
|
+
fe(x.value, () => {
|
|
1039
|
+
ie.value = window.getComputedStyle(x.value).getPropertyValue("--dropdown-custom-position")?.trim() === "true";
|
|
1040
|
+
}, {
|
|
1041
|
+
attributeFilter: ["style"],
|
|
1042
|
+
window
|
|
1043
|
+
});
|
|
1044
|
+
});
|
|
1045
|
+
let D = S(() => {
|
|
1046
|
+
let e = [];
|
|
1047
|
+
if (r.autoPlacement ? typeof r.autoPlacement == "boolean" ? e.push(Ce()) : e.push(Ce(r.autoPlacement)) : r.flip && (typeof r.flip == "boolean" ? e.push(ye({ fallbackStrategy: "initialPlacement" })) : e.push(ye(r.flip))), r.shift && (typeof r.shift == "boolean" ? e.push(we()) : e.push(we(r.shift))), r.size) {
|
|
1048
|
+
let t = ({ availableWidth: e, availableHeight: t }) => {
|
|
1049
|
+
_.value = `${e}px`, v.value = `${t}px`;
|
|
1050
|
+
};
|
|
1051
|
+
typeof r.size == "boolean" ? e.push(H({ apply: t })) : e.push(H({
|
|
1052
|
+
...r.size,
|
|
1053
|
+
apply: t
|
|
1054
|
+
}));
|
|
1055
|
+
}
|
|
1056
|
+
return r.offset && (e.push(Se(Number(r.offset))), ["string", "number"].includes(typeof r.offset) ? e.push(Se(Number(r.offset))) : e.push(Se(r.offset))), r.arrow && e.push(Te({ element: te })), e;
|
|
1057
|
+
}), { x: O, y: k, middlewareData: oe, placement: M, strategy: ce } = xe(T, x, {
|
|
1058
|
+
whileElementsMounted: (...e) => be(...e, { animationFrame: r.strategy === W.fixed }),
|
|
1059
|
+
placement: S(() => r.placement),
|
|
1060
|
+
strategy: S(() => r.strategy),
|
|
1061
|
+
middleware: D
|
|
1062
|
+
}), I = S(() => {
|
|
1063
|
+
if (ie.value) return;
|
|
1064
|
+
let e = r.triggerWidth && T.value ? `${T.value?.offsetWidth}px` : void 0;
|
|
1065
|
+
return {
|
|
1066
|
+
position: ce.value,
|
|
1067
|
+
top: `${k.value ?? 0}px`,
|
|
1068
|
+
left: `${O.value ?? 0}px`,
|
|
1069
|
+
maxWidth: e ? void 0 : _.value,
|
|
1070
|
+
maxHeight: v.value,
|
|
1071
|
+
width: e
|
|
1072
|
+
};
|
|
1073
|
+
}), ue = S(() => M.value.split("-")[0]), de = S(() => {
|
|
1074
|
+
if (ie.value) return;
|
|
1075
|
+
let e = {
|
|
1076
|
+
[G.top]: G.bottom,
|
|
1077
|
+
[G.right]: G.left,
|
|
1078
|
+
[G.bottom]: G.top,
|
|
1079
|
+
[G.left]: G.right
|
|
1080
|
+
}[ue.value];
|
|
1081
|
+
return {
|
|
1082
|
+
left: oe.value.arrow?.x === void 0 ? void 0 : `${oe.value.arrow?.x}px`,
|
|
1083
|
+
top: oe.value.arrow?.y === void 0 ? void 0 : `${oe.value.arrow?.y}px`,
|
|
1084
|
+
[e]: `${-(te.value?.offsetWidth ?? 0) / 2}px`
|
|
1085
|
+
};
|
|
1086
|
+
}), R = V(r, "modelValue", c), z = j(!1), B = S({
|
|
1087
|
+
get: () => R.value ?? z.value,
|
|
1088
|
+
set: (e) => {
|
|
1089
|
+
if (R.value === void 0) {
|
|
1090
|
+
z.value = e;
|
|
1091
|
+
return;
|
|
1092
|
+
}
|
|
1093
|
+
R.value = e;
|
|
1094
|
+
}
|
|
1095
|
+
});
|
|
1096
|
+
function _e() {
|
|
1097
|
+
B.value = !0;
|
|
1098
|
+
}
|
|
1099
|
+
function ve() {
|
|
1100
|
+
B.value = !1;
|
|
1101
|
+
}
|
|
1102
|
+
function U() {
|
|
1103
|
+
B.value = !B.value;
|
|
1104
|
+
}
|
|
1105
|
+
function Ee(e) {
|
|
1106
|
+
T.value = e;
|
|
1107
|
+
}
|
|
1108
|
+
me(x, () => {
|
|
1109
|
+
!r.keepOpen && B.value && (B.value = !1);
|
|
1110
|
+
}, { ignore: [T] });
|
|
1111
|
+
let De = S(() => T.value?.getAttribute?.("id") ?? void 0), Oe = S(() => ({
|
|
1112
|
+
"aria-controls": f.value,
|
|
1113
|
+
"aria-haspopup": !0,
|
|
1114
|
+
"aria-expanded": B.value
|
|
1115
|
+
})), { component: ke, bus: K } = Bt({
|
|
1116
|
+
reference: T,
|
|
1117
|
+
id: f,
|
|
1118
|
+
expanded: B,
|
|
1119
|
+
aria: Oe
|
|
1120
|
+
});
|
|
1121
|
+
K.on("click", U);
|
|
1122
|
+
let { role: q, modifiers: Ae } = P(r), J = vt("vv-dropdown", Ae, S(() => ({ arrow: r.arrow }))), { focused: Y } = pe(x);
|
|
1123
|
+
function je(e) {
|
|
1124
|
+
return e ? [...e.querySelectorAll("a[href], button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"])")].filter((e) => !e.hasAttribute("disabled") && !e.getAttribute("aria-hidden")) : [];
|
|
1125
|
+
}
|
|
1126
|
+
function Me() {
|
|
1127
|
+
i(() => {
|
|
1128
|
+
let e = je(x.value);
|
|
1129
|
+
e.length > 0 && e[0].focus({ preventScroll: !0 });
|
|
1130
|
+
});
|
|
1131
|
+
}
|
|
1132
|
+
function Ne() {
|
|
1133
|
+
i(() => {
|
|
1134
|
+
let e = je(ne.value);
|
|
1135
|
+
e.length > 0 && e[0].focus({ preventScroll: !0 });
|
|
1136
|
+
});
|
|
1137
|
+
}
|
|
1138
|
+
function Pe() {
|
|
1139
|
+
i(() => {
|
|
1140
|
+
if (Y.value) {
|
|
1141
|
+
let e = je(x.value);
|
|
1142
|
+
if (e.length === 0 || !document.activeElement) return;
|
|
1143
|
+
let t = e.indexOf(document.activeElement);
|
|
1144
|
+
t < e.length - 1 ? e[t + 1].focus({ preventScroll: !0 }) : e[0].focus({ preventScroll: !0 });
|
|
1145
|
+
}
|
|
1146
|
+
});
|
|
1147
|
+
}
|
|
1148
|
+
function Fe() {
|
|
1149
|
+
i(() => {
|
|
1150
|
+
if (Y.value) {
|
|
1151
|
+
let e = je(x.value);
|
|
1152
|
+
if (e.length === 0 || !document.activeElement) return;
|
|
1153
|
+
let t = e.indexOf(document.activeElement);
|
|
1154
|
+
if (t > 0) {
|
|
1155
|
+
e[t - 1].focus({ preventScroll: !0 });
|
|
1156
|
+
return;
|
|
1157
|
+
}
|
|
1158
|
+
e.at(-1)?.focus({ preventScroll: !0 });
|
|
1159
|
+
}
|
|
1160
|
+
});
|
|
1161
|
+
}
|
|
1162
|
+
g(B, (e) => {
|
|
1163
|
+
e && r.autofocusFirst && Me();
|
|
1164
|
+
}), t({
|
|
1165
|
+
toggle: U,
|
|
1166
|
+
show: _e,
|
|
1167
|
+
hide: ve,
|
|
1168
|
+
init: Ee,
|
|
1169
|
+
focusFirst: Me,
|
|
1170
|
+
focusFirstListElement: Ne,
|
|
1171
|
+
focusNext: Pe,
|
|
1172
|
+
focusPrev: Fe,
|
|
1173
|
+
customPosition: ie
|
|
1174
|
+
});
|
|
1175
|
+
let { itemRole: Ie } = Vt({
|
|
1176
|
+
role: q,
|
|
1177
|
+
expanded: B,
|
|
1178
|
+
focused: Y,
|
|
1179
|
+
hovered: he(x)
|
|
1180
|
+
});
|
|
1181
|
+
ge("Escape", (e) => {
|
|
1182
|
+
B.value && (e.preventDefault(), ve());
|
|
1183
|
+
}), ge("ArrowDown", (e) => {
|
|
1184
|
+
B.value && Y.value && (e.preventDefault(), Pe());
|
|
1185
|
+
}), ge("ArrowUp", (e) => {
|
|
1186
|
+
B.value && Y.value && (e.preventDefault(), Fe());
|
|
1187
|
+
}), ge([" ", "Enter"], (e) => {
|
|
1188
|
+
let t = e.target;
|
|
1189
|
+
B.value && Y.value && t && t?.click();
|
|
1190
|
+
});
|
|
1191
|
+
let Le = {
|
|
1192
|
+
"before-enter": () => {
|
|
1193
|
+
c(B.value ? "beforeExpand" : "beforeCollapse"), c("beforeEnter");
|
|
1194
|
+
},
|
|
1195
|
+
"after-leave": () => {
|
|
1196
|
+
c(B.value ? "afterExpand" : "afterCollapse"), c("afterLeave");
|
|
1197
|
+
},
|
|
1198
|
+
enter: () => {
|
|
1199
|
+
c("enter");
|
|
1200
|
+
},
|
|
1201
|
+
"after-enter": () => {
|
|
1202
|
+
c("afterEnter");
|
|
1203
|
+
},
|
|
1204
|
+
"enter-cancelled": () => {
|
|
1205
|
+
c("enterCancelled");
|
|
1206
|
+
},
|
|
1207
|
+
"before-leave": () => {
|
|
1208
|
+
c("beforeLeave");
|
|
1209
|
+
},
|
|
1210
|
+
leave: () => {
|
|
1211
|
+
c("leave");
|
|
1212
|
+
},
|
|
1213
|
+
"leave-cancelled": () => {
|
|
1214
|
+
c("leaveCancelled");
|
|
1215
|
+
}
|
|
1216
|
+
};
|
|
1217
|
+
return (e, t) => (L(), F(A, null, [le(w(ke), null, {
|
|
1218
|
+
default: E(() => [o(e.$slots, "default", s(m({
|
|
1219
|
+
init: Ee,
|
|
1220
|
+
show: _e,
|
|
1221
|
+
hide: ve,
|
|
1222
|
+
toggle: U,
|
|
1223
|
+
expanded: w(B),
|
|
1224
|
+
aria: w(Oe)
|
|
1225
|
+
})))]),
|
|
1226
|
+
_: 3
|
|
1227
|
+
}), le(ae, h({ name: e.transitionName }, a(Le), { persisted: "" }), {
|
|
1228
|
+
default: E(() => [se(N("div", {
|
|
1229
|
+
ref_key: "floatingEl",
|
|
1230
|
+
ref: x,
|
|
1231
|
+
style: y(w(I)),
|
|
1232
|
+
class: ee(w(J))
|
|
1233
|
+
}, [
|
|
1234
|
+
r.arrow ? (L(), F("div", {
|
|
1235
|
+
key: 0,
|
|
1236
|
+
ref_key: "arrowEl",
|
|
1237
|
+
ref: te,
|
|
1238
|
+
style: y(w(de)),
|
|
1239
|
+
class: "vv-dropdown__arrow"
|
|
1240
|
+
}, null, 4)) : C("v-if", !0),
|
|
1241
|
+
o(e.$slots, "before", s(m({
|
|
1242
|
+
show: _e,
|
|
1243
|
+
hide: ve,
|
|
1244
|
+
toggle: U,
|
|
1245
|
+
expanded: w(B)
|
|
1246
|
+
}))),
|
|
1247
|
+
N("div", h(w(p), {
|
|
1248
|
+
id: w(f),
|
|
1249
|
+
ref_key: "listEl",
|
|
1250
|
+
ref: ne,
|
|
1251
|
+
tabindex: w(B) ? void 0 : -1,
|
|
1252
|
+
role: w(q),
|
|
1253
|
+
"aria-labelledby": w(De),
|
|
1254
|
+
class: "vv-dropdown__list"
|
|
1255
|
+
}), [o(e.$slots, "items", s(m({
|
|
1256
|
+
show: _e,
|
|
1257
|
+
hide: ve,
|
|
1258
|
+
toggle: U,
|
|
1259
|
+
expanded: w(B),
|
|
1260
|
+
role: w(Ie)
|
|
1261
|
+
})))], 16, Ut),
|
|
1262
|
+
o(e.$slots, "after", s(m({
|
|
1263
|
+
show: _e,
|
|
1264
|
+
hide: ve,
|
|
1265
|
+
toggle: U,
|
|
1266
|
+
expanded: w(B)
|
|
1267
|
+
})))
|
|
1268
|
+
], 6), [[re, w(B)]])]),
|
|
1269
|
+
_: 3
|
|
1270
|
+
}, 16, ["name"])], 64));
|
|
1271
|
+
}
|
|
1272
|
+
}), Gt = {
|
|
1273
|
+
class: "vv-dropdown-optgroup",
|
|
1274
|
+
role: "presentation",
|
|
1275
|
+
tabindex: "-1"
|
|
1276
|
+
}, Kt = /* @__PURE__ */ r({
|
|
1277
|
+
name: "VvDropdownOptgroup",
|
|
1278
|
+
props: { ...Ke },
|
|
1279
|
+
setup(e) {
|
|
1280
|
+
let n = e;
|
|
1281
|
+
return (e, r) => (L(), F("li", Gt, [o(e.$slots, "default", {}, () => [t(u(n.label), 1)])]));
|
|
1282
|
+
}
|
|
1283
|
+
}), qt = /* @__PURE__ */ r({
|
|
1284
|
+
name: "VvDropdownItem",
|
|
1285
|
+
props: Rt,
|
|
1286
|
+
setup(e) {
|
|
1287
|
+
let t = e, { role: n, expanded: r } = At(), i = j(null);
|
|
1288
|
+
Ht({ expanded: r });
|
|
1289
|
+
let a = he(i), { focused: s } = z(i), { focused: c } = pe(i);
|
|
1290
|
+
return g(a, (e) => {
|
|
1291
|
+
e && t.focusOnHover && (s.value = !0);
|
|
1292
|
+
}), (e, t) => (L(), F("div", h({ role: w(n) }, {
|
|
1293
|
+
ref_key: "element",
|
|
1294
|
+
ref: i,
|
|
1295
|
+
class: ["vv-dropdown__item", { "focus-visible": w(s) || w(c) }]
|
|
1296
|
+
}), [o(e.$slots, "default")], 16));
|
|
1297
|
+
}
|
|
1298
|
+
}), Jt = ["title"], Yt = /* @__PURE__ */ r({
|
|
1299
|
+
name: "VvDropdownOption",
|
|
1300
|
+
props: zt,
|
|
1301
|
+
setup(e) {
|
|
1302
|
+
let n = e, { modifiers: r } = P(n), i = vt("vv-dropdown-option", r, S(() => ({
|
|
1303
|
+
disabled: n.disabled,
|
|
1304
|
+
selected: n.selected,
|
|
1305
|
+
unselectable: n.unselectable && n.selected
|
|
1306
|
+
}))), a = S(() => n.selected ? n.unselectable ? n.deselectHintLabel : n.selectedHintLabel : n.disabled ? "" : n.selectHintLabel);
|
|
1307
|
+
return (e, n) => (L(), I(qt, {
|
|
1308
|
+
class: ee(w(i)),
|
|
1309
|
+
tabindex: e.disabled ? -1 : 0,
|
|
1310
|
+
"aria-selected": e.selected,
|
|
1311
|
+
"aria-disabled": e.disabled,
|
|
1312
|
+
"focus-on-hover": e.focusOnHover
|
|
1313
|
+
}, {
|
|
1314
|
+
default: E(() => [o(e.$slots, "default"), N("span", {
|
|
1315
|
+
class: "vv-dropdown-option__hint",
|
|
1316
|
+
title: w(a)
|
|
1317
|
+
}, [o(e.$slots, "hint", s(m({
|
|
1318
|
+
disabled: e.disabled,
|
|
1319
|
+
selected: e.selected,
|
|
1320
|
+
unselectable: e.unselectable
|
|
1321
|
+
})), () => [t(u(w(a)), 1)])], 8, Jt)]),
|
|
1322
|
+
_: 3
|
|
1323
|
+
}, 8, [
|
|
1324
|
+
"class",
|
|
1325
|
+
"tabindex",
|
|
1326
|
+
"aria-selected",
|
|
1327
|
+
"aria-disabled",
|
|
1328
|
+
"focus-on-hover"
|
|
1329
|
+
]));
|
|
1330
|
+
}
|
|
1331
|
+
}), Xt = {
|
|
1332
|
+
...it,
|
|
1333
|
+
...at,
|
|
1334
|
+
...ot,
|
|
1335
|
+
...$e,
|
|
1336
|
+
...X,
|
|
1337
|
+
...ze,
|
|
1338
|
+
...Je,
|
|
1339
|
+
...Z,
|
|
1340
|
+
...Be,
|
|
1341
|
+
...qe,
|
|
1342
|
+
...$,
|
|
1343
|
+
...Ye,
|
|
1344
|
+
...Qe,
|
|
1345
|
+
...et,
|
|
1346
|
+
...tt,
|
|
1347
|
+
...Ke,
|
|
1348
|
+
...Q,
|
|
1349
|
+
multiple: Boolean,
|
|
1350
|
+
required: Boolean,
|
|
1351
|
+
size: [String, Number],
|
|
1352
|
+
modelValue: {
|
|
1353
|
+
type: [
|
|
1354
|
+
String,
|
|
1355
|
+
Number,
|
|
1356
|
+
Boolean,
|
|
1357
|
+
Object,
|
|
1358
|
+
Array
|
|
1359
|
+
],
|
|
1360
|
+
default: void 0
|
|
1361
|
+
},
|
|
1362
|
+
autoselectFirst: {
|
|
1363
|
+
type: Boolean,
|
|
1364
|
+
default: !1
|
|
1365
|
+
},
|
|
1366
|
+
placeholder: String
|
|
1367
|
+
};
|
|
1368
|
+
function Zt() {
|
|
1369
|
+
return {
|
|
1370
|
+
...Xt,
|
|
1371
|
+
options: {
|
|
1372
|
+
...Xt.options,
|
|
1373
|
+
type: Array,
|
|
1374
|
+
default: () => []
|
|
1375
|
+
}
|
|
1376
|
+
};
|
|
1377
|
+
}
|
|
1378
|
+
function Qt(e, t, n) {
|
|
1379
|
+
let r = _t(), i = S(() => {
|
|
1380
|
+
if (!(!r || !r.defaults.value?.[e])) return r.defaults.value[e];
|
|
1381
|
+
});
|
|
1382
|
+
return S(() => {
|
|
1383
|
+
if (i.value === void 0) return n;
|
|
1384
|
+
let e = i.value, r = t, a = n;
|
|
1385
|
+
return Object.keys(r).reduce((t, n) => {
|
|
1386
|
+
let i = a[n];
|
|
1387
|
+
if (t[n] = i, n in e) {
|
|
1388
|
+
if (Array.isArray(r[n])) {
|
|
1389
|
+
let a = r[n];
|
|
1390
|
+
a.length && a[0] === i && (t[n] = e[n]);
|
|
1391
|
+
}
|
|
1392
|
+
if (typeof r[n] == "function") {
|
|
1393
|
+
let a = r[n];
|
|
1394
|
+
a() === i && (t[n] = e[n]);
|
|
1395
|
+
}
|
|
1396
|
+
if (typeof r[n] == "object") {
|
|
1397
|
+
let a = r[n].default;
|
|
1398
|
+
typeof a == "function" && (a = a()), typeof a == "object" ? JSON.stringify(a) === JSON.stringify(i) && (t[n] = e[n]) : a === i && (t[n] = e[n]);
|
|
1399
|
+
}
|
|
1400
|
+
}
|
|
1401
|
+
return t;
|
|
1402
|
+
}, {});
|
|
1403
|
+
});
|
|
1404
|
+
}
|
|
1405
|
+
function $t(e, t) {
|
|
1406
|
+
let { focused: n } = z(e);
|
|
1407
|
+
return g(n, (n) => {
|
|
1408
|
+
t(n ? "focus" : "blur", w(e));
|
|
1409
|
+
}), { focused: n };
|
|
1410
|
+
}
|
|
1411
|
+
function en(e) {
|
|
1412
|
+
let { options: t, labelKey: n, valueKey: r, disabledKey: i } = P(e);
|
|
1413
|
+
return {
|
|
1414
|
+
options: t,
|
|
1415
|
+
getOptionLabel: (e) => typeof e == "string" ? e : typeof n.value == "function" ? n.value(e) : String(n.value ? Ee(e, n.value) : e),
|
|
1416
|
+
getOptionValue: (e) => typeof e == "string" ? e : typeof r.value == "function" ? r.value(e) : r.value ? Ee(e, r.value) : e,
|
|
1417
|
+
isOptionDisabled: (e) => typeof e == "string" ? !1 : typeof i.value == "function" ? i.value(e) : i.value ? !!Ee(e, i.value) : !1,
|
|
1418
|
+
getOptionGrouped: (e) => typeof e == "string" ? [] : typeof e == "object" && e && "options" in e ? e.options : []
|
|
1419
|
+
};
|
|
1420
|
+
}
|
|
1421
|
+
var tn = ["for"], nn = { class: "vv-select__wrapper" }, rn = {
|
|
1422
|
+
key: 0,
|
|
1423
|
+
class: "vv-select__input-before"
|
|
1424
|
+
}, an = { class: "vv-select__inner" }, on = ["id"], sn = ["disabled", "hidden"], cn = ["disabled", "value"], ln = ["disabled", "label"], un = ["disabled", "value"], dn = {
|
|
1425
|
+
key: 2,
|
|
1426
|
+
class: "vv-select__input-after"
|
|
1427
|
+
}, fn = /* @__PURE__ */ r({
|
|
1428
|
+
name: "VvSelect",
|
|
1429
|
+
props: Zt(),
|
|
1430
|
+
emits: [
|
|
1431
|
+
"update:modelValue",
|
|
1432
|
+
"focus",
|
|
1433
|
+
"blur",
|
|
1434
|
+
"clear"
|
|
1435
|
+
],
|
|
1436
|
+
setup(e, { emit: t }) {
|
|
1437
|
+
let n = e, r = t, i = te(), a = Qt("VvSelect", Zt(), n), c = j(), { HintSlot: l, hasHintLabelOrSlot: d, hasInvalidLabelOrSlot: f, hintSlotScope: p } = gt(a, i), { focused: v } = $t(c, r);
|
|
1438
|
+
function y(e) {
|
|
1439
|
+
return typeof e == "string" ? !1 : e.options?.length;
|
|
1440
|
+
}
|
|
1441
|
+
let { id: x, modifiers: ne, disabled: re, readonly: ie, loading: D, icon: O, iconPosition: ae, invalid: oe, valid: M, floating: ce, multiple: ue } = P(n), de = Nt(x), R = S(() => `${de.value}-hint`), z = S(() => n.disabled || n.readonly), fe = S(() => z.value ? -1 : n.tabindex), B = S({
|
|
1442
|
+
get: () => n.modelValue,
|
|
1443
|
+
set: (e) => {
|
|
1444
|
+
if (Array.isArray(e) && (e = e.filter((e) => e !== void 0), e.length === 0 && !n.unselectable && c.value)) {
|
|
1445
|
+
c.value.value = String(n.modelValue);
|
|
1446
|
+
return;
|
|
1447
|
+
}
|
|
1448
|
+
r("update:modelValue", e);
|
|
1449
|
+
}
|
|
1450
|
+
}), pe = S(() => Array.isArray(B.value) ? B.value.length > 0 : B.value !== void 0 && B.value !== null), V = S(() => z.value ? !1 : n.unselectable);
|
|
1451
|
+
g(_e(c), (e) => {
|
|
1452
|
+
e && n.autofocus && (v.value = !0);
|
|
1453
|
+
});
|
|
1454
|
+
let { hasIconBefore: me, hasIconAfter: he } = bt(O, ae), ge = S(() => {
|
|
1455
|
+
if (n.invalid === !0) return !0;
|
|
1456
|
+
if (n.valid === !0) return !1;
|
|
1457
|
+
}), ve = vt("vv-select", ne, S(() => ({
|
|
1458
|
+
valid: M.value,
|
|
1459
|
+
invalid: oe.value,
|
|
1460
|
+
loading: D.value,
|
|
1461
|
+
disabled: re.value,
|
|
1462
|
+
readonly: ie.value,
|
|
1463
|
+
"icon-before": me.value !== void 0,
|
|
1464
|
+
"icon-after": he.value !== void 0,
|
|
1465
|
+
dirty: pe.value,
|
|
1466
|
+
focus: v.value && !z.value,
|
|
1467
|
+
floating: ce.value,
|
|
1468
|
+
multiple: ue.value
|
|
1469
|
+
}))), { getOptionLabel: ye, getOptionValue: H, isOptionDisabled: be, getOptionGrouped: U } = en(n);
|
|
1470
|
+
g(() => n.options, (e) => {
|
|
1471
|
+
if (e?.length && n.autoselectFirst && !pe.value) {
|
|
1472
|
+
let t = H(e[0]);
|
|
1473
|
+
B.value = n.multiple ? [t] : t;
|
|
1474
|
+
}
|
|
1475
|
+
}, { immediate: !0 });
|
|
1476
|
+
function xe() {
|
|
1477
|
+
Array.isArray(B.value) ? B.value = [] : B.value = void 0, r("clear");
|
|
1478
|
+
}
|
|
1479
|
+
let Se = S(() => ({
|
|
1480
|
+
name: n.name,
|
|
1481
|
+
tabindex: fe.value,
|
|
1482
|
+
disabled: z.value,
|
|
1483
|
+
required: n.required,
|
|
1484
|
+
size: n.size,
|
|
1485
|
+
autocomplete: n.autocomplete,
|
|
1486
|
+
multiple: n.multiple,
|
|
1487
|
+
"aria-invalid": ge.value,
|
|
1488
|
+
"aria-describedby": d.value ? R.value : void 0,
|
|
1489
|
+
"aria-errormessage": f.value ? R.value : void 0
|
|
1490
|
+
})), Ce = S(() => ({
|
|
1491
|
+
valid: n.valid,
|
|
1492
|
+
invalid: n.invalid,
|
|
1493
|
+
modelValue: n.modelValue
|
|
1494
|
+
}));
|
|
1495
|
+
return (e, t) => (L(), F("div", { class: ee(w(ve)) }, [
|
|
1496
|
+
e.label ? (L(), F("label", {
|
|
1497
|
+
key: 0,
|
|
1498
|
+
for: w(de)
|
|
1499
|
+
}, u(e.label), 9, tn)) : C("v-if", !0),
|
|
1500
|
+
N("div", nn, [
|
|
1501
|
+
e.$slots.before ? (L(), F("div", rn, [o(e.$slots, "before", s(m(w(Ce))))])) : C("v-if", !0),
|
|
1502
|
+
N("div", an, [
|
|
1503
|
+
w(me) ? (L(), I(yt, h({ key: 0 }, w(me), { class: "vv-select__icon" }), null, 16)) : C("v-if", !0),
|
|
1504
|
+
se(N("select", h({
|
|
1505
|
+
id: w(de),
|
|
1506
|
+
ref_key: "selectEl",
|
|
1507
|
+
ref: c
|
|
1508
|
+
}, w(Se), { "onUpdate:modelValue": t[0] ||= (e) => T(B) ? B.value = e : null }), [e.placeholder ? (L(), F("option", {
|
|
1509
|
+
key: 0,
|
|
1510
|
+
value: void 0,
|
|
1511
|
+
disabled: !w(V),
|
|
1512
|
+
hidden: !w(V)
|
|
1513
|
+
}, u(e.placeholder), 9, sn)) : C("v-if", !0), (L(!0), F(A, null, b(e.options, (e, t) => (L(), F(A, null, [y(e) ? (L(), F("optgroup", {
|
|
1514
|
+
key: `group-${t}`,
|
|
1515
|
+
disabled: w(be)(e),
|
|
1516
|
+
label: w(ye)(e)
|
|
1517
|
+
}, [(L(!0), F(A, null, b(w(U)(e), (e, n) => (L(), F("option", {
|
|
1518
|
+
key: `group-${t}-item-${n}`,
|
|
1519
|
+
disabled: w(be)(e),
|
|
1520
|
+
value: w(H)(e)
|
|
1521
|
+
}, u(w(ye)(e)), 9, un))), 128))], 8, ln)) : (L(), F("option", {
|
|
1522
|
+
key: t,
|
|
1523
|
+
disabled: w(be)(e),
|
|
1524
|
+
value: w(H)(e)
|
|
1525
|
+
}, u(w(ye)(e)), 9, cn))], 64))), 256))], 16, on), [[k, w(B)]]),
|
|
1526
|
+
w(he) ? (L(), I(yt, h({ key: 1 }, w(he), { class: "vv-select__icon vv-select__icon-after" }), null, 16)) : C("v-if", !0)
|
|
1527
|
+
]),
|
|
1528
|
+
w(V) && w(a).showClearAction ? (L(), I(w(xt), {
|
|
1529
|
+
key: 1,
|
|
1530
|
+
"input-type": "select",
|
|
1531
|
+
label: e.labelClear,
|
|
1532
|
+
icon: e.iconClear,
|
|
1533
|
+
disabled: !w(pe),
|
|
1534
|
+
onClear: xe
|
|
1535
|
+
}, null, 8, [
|
|
1536
|
+
"label",
|
|
1537
|
+
"icon",
|
|
1538
|
+
"disabled"
|
|
1539
|
+
])) : C("v-if", !0),
|
|
1540
|
+
e.$slots.after ? (L(), F("div", dn, [o(e.$slots, "after", s(m(w(Ce))))])) : C("v-if", !0)
|
|
1541
|
+
]),
|
|
1542
|
+
le(w(l), {
|
|
1543
|
+
id: w(R),
|
|
1544
|
+
class: "vv-select__hint"
|
|
1545
|
+
}, _({ _: 2 }, [
|
|
1546
|
+
e.$slots.hint ? {
|
|
1547
|
+
name: "hint",
|
|
1548
|
+
fn: E(() => [o(e.$slots, "hint", s(m(w(p))))]),
|
|
1549
|
+
key: "0"
|
|
1550
|
+
} : void 0,
|
|
1551
|
+
e.$slots.loading ? {
|
|
1552
|
+
name: "loading",
|
|
1553
|
+
fn: E(() => [o(e.$slots, "loading", s(m(w(p))))]),
|
|
1554
|
+
key: "1"
|
|
1555
|
+
} : void 0,
|
|
1556
|
+
e.$slots.valid ? {
|
|
1557
|
+
name: "valid",
|
|
1558
|
+
fn: E(() => [o(e.$slots, "valid", s(m(w(p))))]),
|
|
1559
|
+
key: "2"
|
|
1560
|
+
} : void 0,
|
|
1561
|
+
e.$slots.invalid ? {
|
|
1562
|
+
name: "invalid",
|
|
1563
|
+
fn: E(() => [o(e.$slots, "invalid", s(m(w(p))))]),
|
|
1564
|
+
key: "3"
|
|
1565
|
+
} : void 0
|
|
1566
|
+
]), 1032, ["id"])
|
|
1567
|
+
], 2));
|
|
1568
|
+
}
|
|
1569
|
+
}), pn = ["id"], mn = ["id", "for"], hn = [
|
|
1570
|
+
"id",
|
|
1571
|
+
"aria-controls",
|
|
1572
|
+
"placeholder"
|
|
1573
|
+
], gn = {
|
|
1574
|
+
key: 0,
|
|
1575
|
+
class: "vv-select__input-before"
|
|
1576
|
+
}, _n = { class: "vv-select__inner" }, vn = [
|
|
1577
|
+
"aria-controls",
|
|
1578
|
+
"aria-expanded",
|
|
1579
|
+
"aria-labelledby",
|
|
1580
|
+
"aria-describedby",
|
|
1581
|
+
"aria-errormessage",
|
|
1582
|
+
"tabindex"
|
|
1583
|
+
], yn = {
|
|
1584
|
+
key: 0,
|
|
1585
|
+
class: "vv-select__value"
|
|
1586
|
+
}, bn = ["aria-label", "onClick"], xn = {
|
|
1587
|
+
key: 2,
|
|
1588
|
+
class: "vv-select__input-after"
|
|
1589
|
+
}, Sn = /* @__PURE__ */ r({
|
|
1590
|
+
name: "VvCombobox",
|
|
1591
|
+
components: {
|
|
1592
|
+
VvDropdown: Wt,
|
|
1593
|
+
VvDropdownOption: Yt,
|
|
1594
|
+
VvDropdownOptgroup: Kt,
|
|
1595
|
+
VvButton: It
|
|
1596
|
+
},
|
|
1597
|
+
props: /* @__PURE__ */ p(lt(), {
|
|
1598
|
+
search: {
|
|
1599
|
+
type: String,
|
|
1600
|
+
default: "",
|
|
1601
|
+
required: !1
|
|
1602
|
+
},
|
|
1603
|
+
searchModifiers: {}
|
|
1604
|
+
}),
|
|
1605
|
+
emits: /* @__PURE__ */ p([
|
|
1606
|
+
"update:modelValue",
|
|
1607
|
+
"update:search",
|
|
1608
|
+
"update:options",
|
|
1609
|
+
"focus",
|
|
1610
|
+
"blur",
|
|
1611
|
+
"clear",
|
|
1612
|
+
"change:search"
|
|
1613
|
+
], ["update:search"]),
|
|
1614
|
+
setup(e, { emit: n }) {
|
|
1615
|
+
let r = e, i = n, a = te(), l = Qt("VvCombobox", lt(), r), d = j(null), f = j(null), p = j(null), v = j(), { HintSlot: y, hasHintLabelOrSlot: x, hasInvalidLabelOrSlot: ne, hintSlotScope: re } = gt(l, a), { focused: D } = $t(d, i), { focused: O } = pe(p);
|
|
1616
|
+
g(D, (e) => {
|
|
1617
|
+
if (r.autoOpen) {
|
|
1618
|
+
if (e && !M.value) {
|
|
1619
|
+
de();
|
|
1620
|
+
return;
|
|
1621
|
+
}
|
|
1622
|
+
!e && M.value && !O.value && R();
|
|
1623
|
+
}
|
|
1624
|
+
}), g(O, (e) => {
|
|
1625
|
+
!D.value && !e && M.value && R();
|
|
1626
|
+
});
|
|
1627
|
+
let k = c(e, "search"), ae = B(k, S(() => Number(r.debounceSearch)));
|
|
1628
|
+
g(ae, () => {
|
|
1629
|
+
i("update:search", ae.value), i("change:search", ae.value);
|
|
1630
|
+
});
|
|
1631
|
+
let M = j(!1);
|
|
1632
|
+
function ue() {
|
|
1633
|
+
W.value || (M.value = !M.value);
|
|
1634
|
+
}
|
|
1635
|
+
function de() {
|
|
1636
|
+
W.value || M.value || (M.value = !0);
|
|
1637
|
+
}
|
|
1638
|
+
function R() {
|
|
1639
|
+
W.value || !M.value || (M.value = !1);
|
|
1640
|
+
}
|
|
1641
|
+
function z() {
|
|
1642
|
+
l.value.searchable && f.value && f.value.focus({ preventScroll: !0 });
|
|
1643
|
+
}
|
|
1644
|
+
function fe() {
|
|
1645
|
+
l.value.keepSearch || (k.value = "");
|
|
1646
|
+
}
|
|
1647
|
+
function V(e) {
|
|
1648
|
+
return typeof e == "string" ? !1 : e.options?.length;
|
|
1649
|
+
}
|
|
1650
|
+
let { id: me, icon: he, iconPosition: _e, modifiers: ye, disabled: H, required: be, readonly: U, loading: xe, valid: Se, invalid: Ce, floating: we } = P(r), Te = Nt(me), Ee = S(() => `${Te.value}-hint`), De = S(() => `${Te.value}-dropdown`), Oe = S(() => `${Te.value}-search`), ke = S(() => `${Te.value}-label`), W = S(() => r.disabled || r.readonly), G = S(() => W.value ? -1 : r.tabindex), K = S({
|
|
1651
|
+
get: () => Array.isArray(r.modelValue) ? r.modelValue : r.modelValue !== void 0 && r.modelValue !== null ? [r.modelValue] : [],
|
|
1652
|
+
set: (e) => {
|
|
1653
|
+
i("update:modelValue", r.multiple || Array.isArray(r.modelValue) ? e : e.pop());
|
|
1654
|
+
}
|
|
1655
|
+
}), q = S(() => K.value.length), Ae = S(() => q.value > 0), J = S(() => r.multiple ? r.maxValues === void 0 ? Infinity : Number(r.maxValues) : 1), Y = S(() => W.value || !r.unselectable ? !1 : Number(r.minValues) === 0 || q.value > Number(r.minValues)), Me = S(() => W.value ? !1 : r.multiple ? q.value < J.value : !0), Ne = j(!1), Pe = S(() => Ne.value || xe.value), { hasIconBefore: Fe, hasIconAfter: Ie } = bt(he, _e), Le = vt("vv-select", ye, S(() => ({
|
|
1656
|
+
disabled: H.value,
|
|
1657
|
+
required: be.value,
|
|
1658
|
+
loading: Pe.value,
|
|
1659
|
+
readonly: U.value,
|
|
1660
|
+
"icon-before": Fe.value !== void 0,
|
|
1661
|
+
"icon-after": Ie.value !== void 0,
|
|
1662
|
+
valid: Se.value,
|
|
1663
|
+
invalid: Ce.value,
|
|
1664
|
+
dirty: Ae.value,
|
|
1665
|
+
focus: (D.value || O.value || M.value) && !W.value,
|
|
1666
|
+
floating: we.value,
|
|
1667
|
+
badges: r.badges
|
|
1668
|
+
}))), Re = j(/* @__PURE__ */ new Set()), { getOptionLabel: X, getOptionValue: ze, getOptionGrouped: Z, isOptionDisabled: Be } = en(r), Ve = S(() => {
|
|
1669
|
+
let e = [...Re.value];
|
|
1670
|
+
for (let t of r.options) V(t) ? e.push(...Z(t)) : e.push(t);
|
|
1671
|
+
return e;
|
|
1672
|
+
}), He = S(() => {
|
|
1673
|
+
let e = [...r.options, ...Re.value];
|
|
1674
|
+
for (let t of K.value) Ve.value.some((e) => {
|
|
1675
|
+
let n = ze(e);
|
|
1676
|
+
return typeof n == "object" && typeof t == "object" ? JSON.stringify(n) === JSON.stringify(t) : n === t;
|
|
1677
|
+
}) || e.push(t);
|
|
1678
|
+
return e;
|
|
1679
|
+
});
|
|
1680
|
+
g(Re, (e) => {
|
|
1681
|
+
e.size > 0 && i("update:options", He.value);
|
|
1682
|
+
});
|
|
1683
|
+
function Ue(e) {
|
|
1684
|
+
return Be(e) || !Me.value && !Q(e);
|
|
1685
|
+
}
|
|
1686
|
+
let We = ve(async () => {
|
|
1687
|
+
if (l.value.searchFunction) {
|
|
1688
|
+
Ne.value = !0;
|
|
1689
|
+
let e = await Promise.resolve(l.value.searchFunction(ae.value, He.value));
|
|
1690
|
+
return Ne.value = !1, e;
|
|
1691
|
+
}
|
|
1692
|
+
let e = ae.value.toLowerCase().trim();
|
|
1693
|
+
return e ? He.value?.reduce((t, n) => {
|
|
1694
|
+
if (V(n)) {
|
|
1695
|
+
let r = X(n).toLowerCase(), i = Z(n).filter((t) => X(t).toLowerCase().includes(e));
|
|
1696
|
+
if (r.includes(e)) t.push(n);
|
|
1697
|
+
else if (i.length > 0) {
|
|
1698
|
+
let e = typeof n == "object" ? {
|
|
1699
|
+
...n,
|
|
1700
|
+
options: i
|
|
1701
|
+
} : n;
|
|
1702
|
+
t.push(e);
|
|
1703
|
+
}
|
|
1704
|
+
return t;
|
|
1705
|
+
}
|
|
1706
|
+
return X(n).toLowerCase().includes(e) && t.push(n), t;
|
|
1707
|
+
}, []) : He.value;
|
|
1708
|
+
});
|
|
1709
|
+
function Q(e) {
|
|
1710
|
+
let t = ze(e);
|
|
1711
|
+
return typeof t == "object" ? K.value.some((e) => typeof e == "object" ? JSON.stringify(e) === JSON.stringify(t) : !1) : K.value.includes(t);
|
|
1712
|
+
}
|
|
1713
|
+
let Ge = S(() => He.value.reduce((e, t) => V(t) ? [...e, ...Z(t)] : [...e, t], []).filter((e) => Q(e))), Ke = S(() => Ge.value.map((e) => X(e)).join(r.separator));
|
|
1714
|
+
function qe() {
|
|
1715
|
+
r.autoOpen ? de() : ue();
|
|
1716
|
+
}
|
|
1717
|
+
function $(e) {
|
|
1718
|
+
let t = Q(e), n = ze(e);
|
|
1719
|
+
t && Y.value ? K.value = K.value.filter((e) => typeof n == "object" && typeof e == "object" ? JSON.stringify(e) !== JSON.stringify(n) : e !== n) : !t && Me.value && (r.multiple ? K.value = [...K.value, n] : K.value = [n]), !r.multiple && !r.keepOpen && R();
|
|
1720
|
+
}
|
|
1721
|
+
function Je() {
|
|
1722
|
+
K.value = [], i("update:search", ""), i("clear");
|
|
1723
|
+
}
|
|
1724
|
+
g(He, (e) => {
|
|
1725
|
+
if (e?.length && r.autoselectFirst && !Ae.value) {
|
|
1726
|
+
let t = e.find((e) => !V(e));
|
|
1727
|
+
if (t) {
|
|
1728
|
+
$(t);
|
|
1729
|
+
return;
|
|
1730
|
+
}
|
|
1731
|
+
let n = e.find((e) => V(e));
|
|
1732
|
+
if (n) {
|
|
1733
|
+
let e = Z(n);
|
|
1734
|
+
e.length && $(e[0]);
|
|
1735
|
+
}
|
|
1736
|
+
}
|
|
1737
|
+
}, { immediate: !0 });
|
|
1738
|
+
let Ye = S(() => ({
|
|
1739
|
+
id: Te.value,
|
|
1740
|
+
name: r.name,
|
|
1741
|
+
tabindex: G.value,
|
|
1742
|
+
valid: Se.value,
|
|
1743
|
+
validLabel: l.value.validLabel,
|
|
1744
|
+
invalid: Ce.value,
|
|
1745
|
+
invalidLabel: l.value.invalidLabel,
|
|
1746
|
+
hintLabel: l.value.hintLabel,
|
|
1747
|
+
loading: Pe.value,
|
|
1748
|
+
loadingLabel: l.value.loadingLabel,
|
|
1749
|
+
disabled: H.value,
|
|
1750
|
+
readonly: U.value,
|
|
1751
|
+
modifiers: l.value.modifiers,
|
|
1752
|
+
options: l.value.options,
|
|
1753
|
+
labelKey: l.value.labelKey,
|
|
1754
|
+
valueKey: l.value.valueKey,
|
|
1755
|
+
icon: l.value.icon,
|
|
1756
|
+
iconPosition: l.value.iconPosition,
|
|
1757
|
+
floating: l.value.floating,
|
|
1758
|
+
unselectable: Y.value,
|
|
1759
|
+
autoselectFirst: l.value.autoselectFirst,
|
|
1760
|
+
multiple: l.value.multiple,
|
|
1761
|
+
label: l.value.label,
|
|
1762
|
+
placeholder: l.value.placeholder,
|
|
1763
|
+
modelValue: r.modelValue
|
|
1764
|
+
})), Xe = S(() => ({
|
|
1765
|
+
id: De.value,
|
|
1766
|
+
reference: p.value,
|
|
1767
|
+
placement: l.value.placement,
|
|
1768
|
+
strategy: l.value.strategy,
|
|
1769
|
+
transitionName: l.value.transitionName,
|
|
1770
|
+
offset: l.value.offset,
|
|
1771
|
+
shift: l.value.shift,
|
|
1772
|
+
flip: l.value.flip,
|
|
1773
|
+
autoPlacement: l.value.autoPlacement,
|
|
1774
|
+
arrow: l.value.arrow,
|
|
1775
|
+
autofocusFirst: l.value.searchable ? !0 : l.value.autofocusFirst,
|
|
1776
|
+
triggerWidth: l.value.triggerWidth,
|
|
1777
|
+
modifiers: l.value.dropdownModifiers
|
|
1778
|
+
})), Ze = S(() => ({
|
|
1779
|
+
valid: r.valid,
|
|
1780
|
+
invalid: r.invalid,
|
|
1781
|
+
modelValue: r.modelValue
|
|
1782
|
+
}));
|
|
1783
|
+
ge([" ", "Enter"], (e) => {
|
|
1784
|
+
r.autoOpen || !M.value && D.value && (e.preventDefault(), e.stopImmediatePropagation(), ue());
|
|
1785
|
+
}, { target: d });
|
|
1786
|
+
function Qe() {
|
|
1787
|
+
if (We.value?.length) {
|
|
1788
|
+
if (We.value.length === 1) {
|
|
1789
|
+
let e = We.value[0];
|
|
1790
|
+
if (V(e)) {
|
|
1791
|
+
let t = Z(e);
|
|
1792
|
+
t.length && $(t[0]);
|
|
1793
|
+
return;
|
|
1794
|
+
}
|
|
1795
|
+
$(e);
|
|
1796
|
+
return;
|
|
1797
|
+
}
|
|
1798
|
+
v.value?.focusFirstListElement();
|
|
1799
|
+
return;
|
|
1800
|
+
}
|
|
1801
|
+
if (l.value.addable) {
|
|
1802
|
+
let e = k.value.trim();
|
|
1803
|
+
if (!e || Ve.value.some((t) => X(t).toLowerCase() === e.toLowerCase())) return;
|
|
1804
|
+
Re.value.add(e), $(e);
|
|
1805
|
+
}
|
|
1806
|
+
}
|
|
1807
|
+
return (e, n) => e.native ? (L(), I(fn, h({ key: 1 }, w(Ye), { "onUpdate:modelValue": n[3] ||= (e) => i("update:modelValue", e) }), null, 16)) : (L(), F("div", {
|
|
1808
|
+
key: 0,
|
|
1809
|
+
id: w(Te),
|
|
1810
|
+
class: ee(w(Le))
|
|
1811
|
+
}, [
|
|
1812
|
+
e.label ? (L(), F("label", {
|
|
1813
|
+
key: 0,
|
|
1814
|
+
id: w(ke),
|
|
1815
|
+
for: w(l).searchable ? w(Oe) : void 0
|
|
1816
|
+
}, u(e.label), 9, mn)) : C("v-if", !0),
|
|
1817
|
+
N("div", {
|
|
1818
|
+
ref_key: "wrapperEl",
|
|
1819
|
+
ref: p,
|
|
1820
|
+
class: "vv-select__wrapper"
|
|
1821
|
+
}, [le(Wt, h({
|
|
1822
|
+
ref_key: "dropdownEl",
|
|
1823
|
+
ref: v,
|
|
1824
|
+
modelValue: w(M),
|
|
1825
|
+
"onUpdate:modelValue": n[2] ||= (e) => T(M) ? M.value = e : null
|
|
1826
|
+
}, w(Xe), {
|
|
1827
|
+
role: w(je).listbox,
|
|
1828
|
+
onAfterExpand: z,
|
|
1829
|
+
onAfterCollapse: fe
|
|
1830
|
+
}), _({
|
|
1831
|
+
default: E(({ aria: n }) => [
|
|
1832
|
+
e.$slots.before ? (L(), F("div", gn, [o(e.$slots, "before", s(m(w(Ze))))])) : C("v-if", !0),
|
|
1833
|
+
N("div", _n, [
|
|
1834
|
+
w(Fe) ? (L(), I(yt, h({ key: 0 }, w(Fe), { class: "vv-select__icon" }), null, 16)) : C("v-if", !0),
|
|
1835
|
+
N("div", h({
|
|
1836
|
+
ref_key: "inputEl",
|
|
1837
|
+
ref: d
|
|
1838
|
+
}, n, {
|
|
1839
|
+
class: "vv-select__input",
|
|
1840
|
+
role: "combobox",
|
|
1841
|
+
"aria-controls": w(De),
|
|
1842
|
+
"aria-expanded": w(M),
|
|
1843
|
+
"aria-labelledby": w(ke),
|
|
1844
|
+
"aria-describedby": w(x) ? w(Ee) : void 0,
|
|
1845
|
+
"aria-errormessage": w(ne) ? w(Ee) : void 0,
|
|
1846
|
+
tabindex: w(G),
|
|
1847
|
+
onClickPassive: qe
|
|
1848
|
+
}), [w(Ke) ? o(e.$slots, "value", s(h({ key: 0 }, {
|
|
1849
|
+
selectedOptions: w(Ge),
|
|
1850
|
+
onInput: $
|
|
1851
|
+
})), () => [e.badges ? (L(!0), F(A, { key: 1 }, b(w(Ge), (n, r) => (L(), I(St, {
|
|
1852
|
+
key: r,
|
|
1853
|
+
modifiers: e.badgeModifiers,
|
|
1854
|
+
class: "vv-select__badge"
|
|
1855
|
+
}, {
|
|
1856
|
+
default: E(() => [t(u(w(X)(n)) + " ", 1), w(Y) ? (L(), F("button", {
|
|
1857
|
+
key: 0,
|
|
1858
|
+
"aria-label": w(l).deselectActionLabel,
|
|
1859
|
+
type: "button",
|
|
1860
|
+
onClick: oe((e) => $(n), ["stop"])
|
|
1861
|
+
}, [le(yt, { name: "close" })], 8, bn)) : C("v-if", !0)]),
|
|
1862
|
+
_: 2
|
|
1863
|
+
}, 1032, ["modifiers"]))), 128)) : (L(), F("div", yn, u(w(Ke)), 1))]) : o(e.$slots, "placeholder", { key: 1 }, () => [t(u(e.placeholder), 1)])], 16, vn),
|
|
1864
|
+
w(Ie) ? (L(), I(yt, h({ key: 1 }, w(Ie), { class: "vv-select__icon vv-select__icon-after" }), null, 16)) : C("v-if", !0)
|
|
1865
|
+
]),
|
|
1866
|
+
w(Y) && w(l).showClearAction ? (L(), I(w(xt), {
|
|
1867
|
+
key: 1,
|
|
1868
|
+
"input-type": "select",
|
|
1869
|
+
label: e.labelClear,
|
|
1870
|
+
icon: e.iconClear,
|
|
1871
|
+
disabled: !w(Ae),
|
|
1872
|
+
onClear: Je
|
|
1873
|
+
}, null, 8, [
|
|
1874
|
+
"label",
|
|
1875
|
+
"icon",
|
|
1876
|
+
"disabled"
|
|
1877
|
+
])) : C("v-if", !0),
|
|
1878
|
+
e.$slots.after ? (L(), F("div", xn, [o(e.$slots, "after", s(m(w(Ze))))])) : C("v-if", !0)
|
|
1879
|
+
]),
|
|
1880
|
+
items: E(() => [!w(H) && w(We)?.length ? (L(!0), F(A, { key: 0 }, b(w(We), (n, r) => (L(), F(A, { key: r }, [V(n) ? (L(), F(A, { key: 0 }, [le(Kt, { label: w(X)(n) }, {
|
|
1881
|
+
default: E(() => [o(e.$slots, "option-group", h({ ref_for: !0 }, {
|
|
1882
|
+
option: n,
|
|
1883
|
+
selectedOptions: w(Ge)
|
|
1884
|
+
}), () => [t(u(w(X)(n)), 1)])]),
|
|
1885
|
+
_: 2
|
|
1886
|
+
}, 1032, ["label"]), (L(!0), F(A, null, b(w(Z)(n), (n, r) => (L(), I(Yt, h({ ref_for: !0 }, {
|
|
1887
|
+
selected: Q(n),
|
|
1888
|
+
disabled: Ue(n),
|
|
1889
|
+
unselectable: w(Y),
|
|
1890
|
+
deselectHintLabel: w(l).deselectHintLabel,
|
|
1891
|
+
selectHintLabel: w(l).selectHintLabel,
|
|
1892
|
+
selectedHintLabel: w(l).selectedHintLabel,
|
|
1893
|
+
focusOnHover: e.focusOnHover
|
|
1894
|
+
}, {
|
|
1895
|
+
key: r,
|
|
1896
|
+
class: "vv-dropdown-option",
|
|
1897
|
+
onClickPassive: (e) => $(n)
|
|
1898
|
+
}), {
|
|
1899
|
+
default: E(() => [o(e.$slots, "option", h({ ref_for: !0 }, {
|
|
1900
|
+
option: n,
|
|
1901
|
+
selectedOptions: w(Ge),
|
|
1902
|
+
selected: Q(n),
|
|
1903
|
+
disabled: Ue(n)
|
|
1904
|
+
}), () => [t(u(w(X)(n)), 1)])]),
|
|
1905
|
+
_: 2
|
|
1906
|
+
}, 1040, ["onClickPassive"]))), 128))], 64)) : (L(), I(Yt, h({
|
|
1907
|
+
key: 1,
|
|
1908
|
+
ref_for: !0
|
|
1909
|
+
}, {
|
|
1910
|
+
selected: Q(n),
|
|
1911
|
+
disabled: Ue(n),
|
|
1912
|
+
unselectable: w(Y),
|
|
1913
|
+
deselectHintLabel: w(l).deselectHintLabel,
|
|
1914
|
+
selectHintLabel: w(l).selectHintLabel,
|
|
1915
|
+
selectedHintLabel: w(l).selectedHintLabel,
|
|
1916
|
+
focusOnHover: e.focusOnHover
|
|
1917
|
+
}, {
|
|
1918
|
+
class: "vv-dropdown-option",
|
|
1919
|
+
onClickPassive: (e) => $(n)
|
|
1920
|
+
}), {
|
|
1921
|
+
default: E(() => [o(e.$slots, "option", h({ ref_for: !0 }, {
|
|
1922
|
+
option: n,
|
|
1923
|
+
selectedOptions: w(Ge),
|
|
1924
|
+
selected: Q(n),
|
|
1925
|
+
disabled: Ue(n)
|
|
1926
|
+
}), () => [t(u(w(X)(n)), 1)])]),
|
|
1927
|
+
_: 2
|
|
1928
|
+
}, 1040, ["onClickPassive"]))], 64))), 128)) : e.options.length ? (L(), I(Yt, {
|
|
1929
|
+
key: 2,
|
|
1930
|
+
modifiers: "inert"
|
|
1931
|
+
}, {
|
|
1932
|
+
default: E(() => [o(e.$slots, "no-results", {}, () => [t(u(w(l).addable ? w(l).addOptionHintLabel : w(l).noResultsLabel), 1)])]),
|
|
1933
|
+
_: 3
|
|
1934
|
+
})) : (L(), I(Yt, {
|
|
1935
|
+
key: 1,
|
|
1936
|
+
modifiers: "inert"
|
|
1937
|
+
}, {
|
|
1938
|
+
default: E(() => [o(e.$slots, "no-options", {}, () => [t(u(w(l).addable && k.value.length ? w(l).addOptionHintLabel : w(l).noOptionsLabel), 1)])]),
|
|
1939
|
+
_: 3
|
|
1940
|
+
}))]),
|
|
1941
|
+
after: E(() => [o(e.$slots, "dropdown::after", {}, () => [w(v)?.customPosition ? (L(), I(It, {
|
|
1942
|
+
key: 0,
|
|
1943
|
+
label: w(l).closeLabel,
|
|
1944
|
+
modifiers: "secondary",
|
|
1945
|
+
onClick: n[1] ||= (e) => w(v).hide()
|
|
1946
|
+
}, null, 8, ["label"])) : C("v-if", !0)])]),
|
|
1947
|
+
_: 2
|
|
1948
|
+
}, [w(l).searchable || e.$slots["dropdown::before"] ? {
|
|
1949
|
+
name: "before",
|
|
1950
|
+
fn: E(() => [o(e.$slots, "dropdown::before"), w(l).searchable && !w(H) ? se((L(), F("input", {
|
|
1951
|
+
key: 0,
|
|
1952
|
+
id: w(Oe),
|
|
1953
|
+
ref_key: "inputSearchEl",
|
|
1954
|
+
ref: f,
|
|
1955
|
+
"onUpdate:modelValue": n[0] ||= (e) => k.value = e,
|
|
1956
|
+
"aria-autocomplete": "list",
|
|
1957
|
+
"aria-controls": w(De),
|
|
1958
|
+
autocomplete: "off",
|
|
1959
|
+
spellcheck: "false",
|
|
1960
|
+
type: "search",
|
|
1961
|
+
class: "vv-dropdown__search",
|
|
1962
|
+
placeholder: w(l).searchPlaceholder,
|
|
1963
|
+
onKeyup: ie(Qe, ["enter"])
|
|
1964
|
+
}, null, 40, hn)), [[ce, k.value]]) : C("v-if", !0)]),
|
|
1965
|
+
key: "0"
|
|
1966
|
+
} : void 0]), 1040, ["modelValue", "role"])], 512),
|
|
1967
|
+
le(w(y), {
|
|
1968
|
+
id: w(Ee),
|
|
1969
|
+
class: "vv-select__hint"
|
|
1970
|
+
}, _({ _: 2 }, [
|
|
1971
|
+
e.$slots.hint ? {
|
|
1972
|
+
name: "hint",
|
|
1973
|
+
fn: E(() => [o(e.$slots, "hint", s(m(w(re))))]),
|
|
1974
|
+
key: "0"
|
|
1975
|
+
} : void 0,
|
|
1976
|
+
e.$slots.loading ? {
|
|
1977
|
+
name: "loading",
|
|
1978
|
+
fn: E(() => [o(e.$slots, "loading", s(m(w(re))))]),
|
|
1979
|
+
key: "1"
|
|
1980
|
+
} : void 0,
|
|
1981
|
+
e.$slots.valid ? {
|
|
1982
|
+
name: "valid",
|
|
1983
|
+
fn: E(() => [o(e.$slots, "valid", s(m(w(re))))]),
|
|
1984
|
+
key: "2"
|
|
1985
|
+
} : void 0,
|
|
1986
|
+
e.$slots.invalid ? {
|
|
1987
|
+
name: "invalid",
|
|
1988
|
+
fn: E(() => [o(e.$slots, "invalid", s(m(w(re))))]),
|
|
1989
|
+
key: "3"
|
|
1990
|
+
} : void 0
|
|
1991
|
+
]), 1032, ["id"])
|
|
1992
|
+
], 10, pn));
|
|
1993
|
+
}
|
|
1994
|
+
});
|
|
1995
|
+
//#endregion
|
|
1996
|
+
export { Sn as default };
|
|
1997
|
+
|
|
1998
|
+
//# sourceMappingURL=VvCombobox.es-BxxQaz48.js.map
|