@voicenter-team/voicenter-ui-plus 1.1.21 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/library/{entry-EvdwF4XL.mjs → core/index.mjs} +18563 -10397
- package/library/core/index.mjs.br +0 -0
- package/library/core/index.mjs.gz +0 -0
- package/library/core/index.umd.js +15 -0
- package/library/core/index.umd.js.br +0 -0
- package/library/core/index.umd.js.gz +0 -0
- package/library/core/style.css +1 -0
- package/library/core/style.css.br +0 -0
- package/library/core/style.css.gz +0 -0
- package/library/{types → core/types}/components/VcButton/index.d.ts +78 -78
- package/library/{types → core/types}/components/VcDropdown/VcDropdown.vue.d.ts +8 -8
- package/library/{types → core/types}/components/VcMeterGroup/VcMeterGroup.vue.d.ts +3 -3
- package/library/{types → core/types}/components/VcMeterGroup/VcMeterGroupLabel.vue.d.ts +1 -1
- package/library/{types → core/types}/components/VcSparkline/VcBarLine.vue.d.ts +25 -1
- package/library/{types → core/types}/components/VcSparkline/VcSparkline.vue.d.ts +1 -1
- package/library/{types → core/types}/components/VcSparkline/VcTrendLine.vue.d.ts +1 -1
- package/library/{types → core/types}/components/VcSparkline/helper.d.ts +1 -1
- package/library/{types → core/types}/components/VcTransfer/VcTransfer.vue.d.ts +1 -1
- package/library/{types → core/types}/components/VcTree/VcTreeSelect.vue.d.ts +20 -19
- package/library/{types/components/index.d.ts → core/types/components/exports.d.ts} +92 -105
- package/library/{types/entity/composable → core/types/composables}/useConfirmPopup.d.ts +5 -5
- package/library/core/types/entry.d.ts +32 -0
- package/library/core/types/localization/locales/en.json.d.ts +165 -0
- package/library/{types → core/types}/services/index.d.ts +2 -2
- package/library/core/types/theme/themes.json.d.ts +185 -0
- package/library/core/types/tokens/tokens.d.ts +6 -0
- package/library/{types → core/types}/types/VcDropdown.types.d.ts +2 -1
- package/library/{types → core/types}/types/VcTabs.types.d.ts +0 -4
- package/library/{types → core/types}/types/VcTree.types.d.ts +2 -2
- package/library/core/types/types/basic.types.d.ts +20 -0
- package/library/{types → core/types}/types/index.d.ts +2 -8
- package/package.json +33 -26
- package/src/{theme → core/theme}/themes.json +8 -0
- package/tailwind.config.js +1 -1
- package/library/VcExcelFileUploader-DdT4JMP3.mjs +0 -28203
- package/library/VcExcelFileUploader-DdT4JMP3.mjs.br +0 -0
- package/library/VcExcelFileUploader-DdT4JMP3.mjs.gz +0 -0
- package/library/VcHtmlEditor-C3zXhk2H.mjs +0 -691
- package/library/VcHtmlEditor-C3zXhk2H.mjs.br +0 -0
- package/library/VcHtmlEditor-C3zXhk2H.mjs.gz +0 -0
- package/library/VcImageUploader-Db8XF_ZV.mjs +0 -1772
- package/library/VcImageUploader-Db8XF_ZV.mjs.br +0 -0
- package/library/VcImageUploader-Db8XF_ZV.mjs.gz +0 -0
- package/library/VcJsonSchema-B4EM6LcW.mjs +0 -2216
- package/library/VcJsonSchema-B4EM6LcW.mjs.br +0 -0
- package/library/VcJsonSchema-B4EM6LcW.mjs.gz +0 -0
- package/library/VcMdEditor-CMlNJcLY.mjs +0 -4
- package/library/VcMdEditor.vue_vue_type_script_setup_true_lang-DOX1NBnx.mjs +0 -27376
- package/library/VcMdEditor.vue_vue_type_script_setup_true_lang-DOX1NBnx.mjs.br +0 -0
- package/library/VcMdEditor.vue_vue_type_script_setup_true_lang-DOX1NBnx.mjs.gz +0 -0
- package/library/VcPdfDocument-Cf7CB2iK.mjs +0 -33131
- package/library/VcPdfDocument-Cf7CB2iK.mjs.br +0 -0
- package/library/VcPdfDocument-Cf7CB2iK.mjs.gz +0 -0
- package/library/VcSoundPlayer-Bc4GDrHh.mjs +0 -258
- package/library/VcSoundPlayer-Bc4GDrHh.mjs.br +0 -0
- package/library/VcSoundPlayer-Bc4GDrHh.mjs.gz +0 -0
- package/library/VcSparkline-CwjaA-i6.mjs +0 -561
- package/library/VcSparkline-CwjaA-i6.mjs.br +0 -0
- package/library/VcSparkline-CwjaA-i6.mjs.gz +0 -0
- package/library/VcSystemUserPrompt-WxIPI7kS.mjs +0 -145
- package/library/VcSystemUserPrompt-WxIPI7kS.mjs.br +0 -0
- package/library/VcSystemUserPrompt-WxIPI7kS.mjs.gz +0 -0
- package/library/VcTour-DE5ioKMo.mjs +0 -1068
- package/library/VcTour-DE5ioKMo.mjs.br +0 -0
- package/library/VcTour-DE5ioKMo.mjs.gz +0 -0
- package/library/VcTransfer-CG4j9PzS.mjs +0 -567
- package/library/VcTransfer-CG4j9PzS.mjs.br +0 -0
- package/library/VcTransfer-CG4j9PzS.mjs.gz +0 -0
- package/library/VcTree-C2VshYQH.mjs +0 -4
- package/library/VcTree.vue_vue_type_style_index_0_lang-DqIT64MT.mjs +0 -2219
- package/library/VcTree.vue_vue_type_style_index_0_lang-DqIT64MT.mjs.br +0 -0
- package/library/VcTree.vue_vue_type_style_index_0_lang-DqIT64MT.mjs.gz +0 -0
- package/library/VcTreeSelect-CwsiIyeG.mjs +0 -339
- package/library/VcTreeSelect-CwsiIyeG.mjs.br +0 -0
- package/library/VcTreeSelect-CwsiIyeG.mjs.gz +0 -0
- package/library/_isIterateeCall-jrkoht6u.mjs +0 -16
- package/library/apl-fqmucPXA.mjs +0 -140
- package/library/apl-fqmucPXA.mjs.br +0 -0
- package/library/apl-fqmucPXA.mjs.gz +0 -0
- package/library/asciiarmor-DucZyvP0.mjs +0 -56
- package/library/asciiarmor-DucZyvP0.mjs.br +0 -0
- package/library/asciiarmor-DucZyvP0.mjs.gz +0 -0
- package/library/asn1-BnOEsgAm.mjs +0 -144
- package/library/asn1-BnOEsgAm.mjs.br +0 -0
- package/library/asn1-BnOEsgAm.mjs.gz +0 -0
- package/library/asterisk-QAlztEwS.mjs +0 -345
- package/library/asterisk-QAlztEwS.mjs.br +0 -0
- package/library/asterisk-QAlztEwS.mjs.gz +0 -0
- package/library/brainfuck-DZVCuF_t.mjs +0 -53
- package/library/brainfuck-DZVCuF_t.mjs.br +0 -0
- package/library/brainfuck-DZVCuF_t.mjs.gz +0 -0
- package/library/clike-DaICHkS3.mjs +0 -805
- package/library/clike-DaICHkS3.mjs.br +0 -0
- package/library/clike-DaICHkS3.mjs.gz +0 -0
- package/library/clojure-BhXMqnxz.mjs +0 -849
- package/library/clojure-BhXMqnxz.mjs.br +0 -0
- package/library/clojure-BhXMqnxz.mjs.gz +0 -0
- package/library/cmake-BGaNd9E7.mjs +0 -71
- package/library/cmake-BGaNd9E7.mjs.br +0 -0
- package/library/cmake-BGaNd9E7.mjs.gz +0 -0
- package/library/cobol-4yqQntpt.mjs +0 -120
- package/library/cobol-4yqQntpt.mjs.br +0 -0
- package/library/cobol-4yqQntpt.mjs.gz +0 -0
- package/library/coffeescript-D2dXvhEc.mjs +0 -308
- package/library/coffeescript-D2dXvhEc.mjs.br +0 -0
- package/library/coffeescript-D2dXvhEc.mjs.gz +0 -0
- package/library/commonlisp-CF_VNHQR.mjs +0 -130
- package/library/commonlisp-CF_VNHQR.mjs.br +0 -0
- package/library/commonlisp-CF_VNHQR.mjs.gz +0 -0
- package/library/crystal-DyuLTqLs.mjs +0 -398
- package/library/crystal-DyuLTqLs.mjs.br +0 -0
- package/library/crystal-DyuLTqLs.mjs.gz +0 -0
- package/library/css-c-jst79C.mjs +0 -1783
- package/library/css-c-jst79C.mjs.br +0 -0
- package/library/css-c-jst79C.mjs.gz +0 -0
- package/library/cypher-Dlu_3r4V.mjs +0 -121
- package/library/cypher-Dlu_3r4V.mjs.br +0 -0
- package/library/cypher-Dlu_3r4V.mjs.gz +0 -0
- package/library/d-UURgV0Ux.mjs +0 -179
- package/library/d-UURgV0Ux.mjs.br +0 -0
- package/library/d-UURgV0Ux.mjs.gz +0 -0
- package/library/diff-B_Bi2Crb.mjs +0 -25
- package/library/dockerfile-D1TIj5jA.mjs +0 -201
- package/library/dockerfile-D1TIj5jA.mjs.br +0 -0
- package/library/dockerfile-D1TIj5jA.mjs.gz +0 -0
- package/library/dtd-Dy74G54E.mjs +0 -114
- package/library/dtd-Dy74G54E.mjs.br +0 -0
- package/library/dtd-Dy74G54E.mjs.gz +0 -0
- package/library/dylan-TSb-Nfix.mjs +0 -314
- package/library/dylan-TSb-Nfix.mjs.br +0 -0
- package/library/dylan-TSb-Nfix.mjs.gz +0 -0
- package/library/ebnf-DAomQUbD.mjs +0 -139
- package/library/ebnf-DAomQUbD.mjs.br +0 -0
- package/library/ebnf-DAomQUbD.mjs.gz +0 -0
- package/library/ecl-B59qGGVg.mjs +0 -178
- package/library/ecl-B59qGGVg.mjs.br +0 -0
- package/library/ecl-B59qGGVg.mjs.gz +0 -0
- package/library/eiffel-Dze7nlu3.mjs +0 -134
- package/library/eiffel-Dze7nlu3.mjs.br +0 -0
- package/library/eiffel-Dze7nlu3.mjs.gz +0 -0
- package/library/elm-DG7jkhNZ.mjs +0 -176
- package/library/elm-DG7jkhNZ.mjs.br +0 -0
- package/library/elm-DG7jkhNZ.mjs.gz +0 -0
- package/library/entry-EvdwF4XL.mjs.br +0 -0
- package/library/entry-EvdwF4XL.mjs.gz +0 -0
- package/library/erlang-BO6gOnGA.mjs +0 -674
- package/library/erlang-BO6gOnGA.mjs.br +0 -0
- package/library/erlang-BO6gOnGA.mjs.gz +0 -0
- package/library/factor-ne7PWKF0.mjs +0 -65
- package/library/factor-ne7PWKF0.mjs.br +0 -0
- package/library/factor-ne7PWKF0.mjs.gz +0 -0
- package/library/fcl-CDDUNjTj.mjs +0 -141
- package/library/fcl-CDDUNjTj.mjs.br +0 -0
- package/library/fcl-CDDUNjTj.mjs.gz +0 -0
- package/library/floating-ui.dom-CfpJisRd.mjs +0 -1401
- package/library/floating-ui.dom-CfpJisRd.mjs.br +0 -0
- package/library/floating-ui.dom-CfpJisRd.mjs.gz +0 -0
- package/library/forth-B9D2JCeE.mjs +0 -116
- package/library/forth-B9D2JCeE.mjs.br +0 -0
- package/library/forth-B9D2JCeE.mjs.gz +0 -0
- package/library/fortran-CAG2BFbe.mjs +0 -467
- package/library/fortran-CAG2BFbe.mjs.br +0 -0
- package/library/fortran-CAG2BFbe.mjs.gz +0 -0
- package/library/gas-d3KEcW3x.mjs +0 -294
- package/library/gas-d3KEcW3x.mjs.br +0 -0
- package/library/gas-d3KEcW3x.mjs.gz +0 -0
- package/library/gherkin-DhZlEZiy.mjs +0 -115
- package/library/gherkin-DhZlEZiy.mjs.br +0 -0
- package/library/gherkin-DhZlEZiy.mjs.gz +0 -0
- package/library/groovy-CpwJiBl7.mjs +0 -223
- package/library/groovy-CpwJiBl7.mjs.br +0 -0
- package/library/groovy-CpwJiBl7.mjs.gz +0 -0
- package/library/haskell-BlGBCCe3.mjs +0 -459
- package/library/haskell-BlGBCCe3.mjs.br +0 -0
- package/library/haskell-BlGBCCe3.mjs.gz +0 -0
- package/library/haxe-7MlzfeYV.mjs +0 -514
- package/library/haxe-7MlzfeYV.mjs.br +0 -0
- package/library/haxe-7MlzfeYV.mjs.gz +0 -0
- package/library/http-BqypyemW.mjs +0 -79
- package/library/http-BqypyemW.mjs.br +0 -0
- package/library/http-BqypyemW.mjs.gz +0 -0
- package/library/idl-4HIGJlDI.mjs +0 -985
- package/library/idl-4HIGJlDI.mjs.br +0 -0
- package/library/idl-4HIGJlDI.mjs.gz +0 -0
- package/library/index-4jX79S-P.mjs +0 -150
- package/library/index-4jX79S-P.mjs.br +0 -0
- package/library/index-4jX79S-P.mjs.gz +0 -0
- package/library/index-9LYQtr4h.mjs +0 -328
- package/library/index-9LYQtr4h.mjs.br +0 -0
- package/library/index-9LYQtr4h.mjs.gz +0 -0
- package/library/index-BAAqkdMI.mjs +0 -96
- package/library/index-BAAqkdMI.mjs.br +0 -0
- package/library/index-BAAqkdMI.mjs.gz +0 -0
- package/library/index-Ba4OKxCw.mjs +0 -323
- package/library/index-Ba4OKxCw.mjs.br +0 -0
- package/library/index-Ba4OKxCw.mjs.gz +0 -0
- package/library/index-Bs6_pkvd.mjs +0 -688
- package/library/index-Bs6_pkvd.mjs.br +0 -0
- package/library/index-Bs6_pkvd.mjs.gz +0 -0
- package/library/index-BulKMlHH.mjs +0 -79
- package/library/index-BulKMlHH.mjs.br +0 -0
- package/library/index-BulKMlHH.mjs.gz +0 -0
- package/library/index-CWRhvk2r.mjs +0 -156
- package/library/index-CWRhvk2r.mjs.br +0 -0
- package/library/index-CWRhvk2r.mjs.gz +0 -0
- package/library/index-CkrjnzoC.mjs +0 -384
- package/library/index-CkrjnzoC.mjs.br +0 -0
- package/library/index-CkrjnzoC.mjs.gz +0 -0
- package/library/index-DLB9KgZi.mjs +0 -301
- package/library/index-DLB9KgZi.mjs.br +0 -0
- package/library/index-DLB9KgZi.mjs.gz +0 -0
- package/library/index-DQ5kp4Rw.mjs +0 -114
- package/library/index-DQ5kp4Rw.mjs.br +0 -0
- package/library/index-DQ5kp4Rw.mjs.gz +0 -0
- package/library/index-DZkxoGn3.mjs +0 -81
- package/library/index-DZkxoGn3.mjs.br +0 -0
- package/library/index-DZkxoGn3.mjs.gz +0 -0
- package/library/index-EVu8jdcY.mjs +0 -405
- package/library/index-EVu8jdcY.mjs.br +0 -0
- package/library/index-EVu8jdcY.mjs.gz +0 -0
- package/library/index-Ftvywh65.mjs +0 -177
- package/library/index-Ftvywh65.mjs.br +0 -0
- package/library/index-Ftvywh65.mjs.gz +0 -0
- package/library/index-PFn9GZaw.mjs +0 -60
- package/library/index-PFn9GZaw.mjs.br +0 -0
- package/library/index-PFn9GZaw.mjs.gz +0 -0
- package/library/index-ef4WGzk3.mjs +0 -678
- package/library/index-ef4WGzk3.mjs.br +0 -0
- package/library/index-ef4WGzk3.mjs.gz +0 -0
- package/library/index-emKs9XKV.mjs +0 -35242
- package/library/index-emKs9XKV.mjs.br +0 -0
- package/library/index-emKs9XKV.mjs.gz +0 -0
- package/library/index-kYmjso4n.mjs +0 -311
- package/library/index-kYmjso4n.mjs.br +0 -0
- package/library/index-kYmjso4n.mjs.gz +0 -0
- package/library/index.es-DQ0tvEe9.mjs +0 -25486
- package/library/index.es-DQ0tvEe9.mjs.br +0 -0
- package/library/index.es-DQ0tvEe9.mjs.gz +0 -0
- package/library/javascript-C3MnDRiU.mjs +0 -994
- package/library/javascript-C3MnDRiU.mjs.br +0 -0
- package/library/javascript-C3MnDRiU.mjs.gz +0 -0
- package/library/jinja2-2Vo2sGef.mjs +0 -208
- package/library/jinja2-2Vo2sGef.mjs.br +0 -0
- package/library/jinja2-2Vo2sGef.mjs.gz +0 -0
- package/library/julia-Bs6JJhYG.mjs +0 -407
- package/library/julia-Bs6JJhYG.mjs.br +0 -0
- package/library/julia-Bs6JJhYG.mjs.gz +0 -0
- package/library/livescript-DmzgM3Yt.mjs +0 -296
- package/library/livescript-DmzgM3Yt.mjs.br +0 -0
- package/library/livescript-DmzgM3Yt.mjs.gz +0 -0
- package/library/lua-8cJgIlqe.mjs +0 -256
- package/library/lua-8cJgIlqe.mjs.br +0 -0
- package/library/lua-8cJgIlqe.mjs.gz +0 -0
- package/library/mathematica-DNLOL9PQ.mjs +0 -110
- package/library/mathematica-DNLOL9PQ.mjs.br +0 -0
- package/library/mathematica-DNLOL9PQ.mjs.gz +0 -0
- package/library/mbox-Ga7d4MMN.mjs +0 -117
- package/library/mbox-Ga7d4MMN.mjs.br +0 -0
- package/library/mbox-Ga7d4MMN.mjs.gz +0 -0
- package/library/mirc-Dma3B8rS.mjs +0 -107
- package/library/mirc-Dma3B8rS.mjs.br +0 -0
- package/library/mirc-Dma3B8rS.mjs.gz +0 -0
- package/library/mllike-DHn7xckP.mjs +0 -334
- package/library/mllike-DHn7xckP.mjs.br +0 -0
- package/library/mllike-DHn7xckP.mjs.gz +0 -0
- package/library/modelica-0d55jYY0.mjs +0 -147
- package/library/modelica-0d55jYY0.mjs.br +0 -0
- package/library/modelica-0d55jYY0.mjs.gz +0 -0
- package/library/mscgen-DdqZYINH.mjs +0 -135
- package/library/mscgen-DdqZYINH.mjs.br +0 -0
- package/library/mscgen-DdqZYINH.mjs.gz +0 -0
- package/library/mumps-Btr8VblO.mjs +0 -93
- package/library/mumps-Btr8VblO.mjs.br +0 -0
- package/library/mumps-Btr8VblO.mjs.gz +0 -0
- package/library/nginx-DTDtBDVN.mjs +0 -141
- package/library/nginx-DTDtBDVN.mjs.br +0 -0
- package/library/nginx-DTDtBDVN.mjs.gz +0 -0
- package/library/nsis-BnYeX9pP.mjs +0 -62
- package/library/nsis-BnYeX9pP.mjs.br +0 -0
- package/library/nsis-BnYeX9pP.mjs.gz +0 -0
- package/library/ntriples-CvgOYMpL.mjs +0 -153
- package/library/ntriples-CvgOYMpL.mjs.br +0 -0
- package/library/ntriples-CvgOYMpL.mjs.gz +0 -0
- package/library/octave-DYBj3-tl.mjs +0 -200
- package/library/octave-DYBj3-tl.mjs.br +0 -0
- package/library/octave-DYBj3-tl.mjs.gz +0 -0
- package/library/oz-R_e8WMIi.mjs +0 -231
- package/library/oz-R_e8WMIi.mjs.br +0 -0
- package/library/oz-R_e8WMIi.mjs.gz +0 -0
- package/library/pascal-GD8iposT.mjs +0 -105
- package/library/pascal-GD8iposT.mjs.br +0 -0
- package/library/pascal-GD8iposT.mjs.gz +0 -0
- package/library/perl-DL9mHpoi.mjs +0 -1105
- package/library/perl-DL9mHpoi.mjs.br +0 -0
- package/library/perl-DL9mHpoi.mjs.gz +0 -0
- package/library/pig-C_4T4YIV.mjs +0 -101
- package/library/pig-C_4T4YIV.mjs.br +0 -0
- package/library/pig-C_4T4YIV.mjs.gz +0 -0
- package/library/powershell-B0suO7Vd.mjs +0 -328
- package/library/powershell-B0suO7Vd.mjs.br +0 -0
- package/library/powershell-B0suO7Vd.mjs.gz +0 -0
- package/library/properties-BR-vP1aU.mjs +0 -58
- package/library/properties-BR-vP1aU.mjs.br +0 -0
- package/library/properties-BR-vP1aU.mjs.gz +0 -0
- package/library/protobuf-BxgpyhoW.mjs +0 -77
- package/library/protobuf-BxgpyhoW.mjs.br +0 -0
- package/library/protobuf-BxgpyhoW.mjs.gz +0 -0
- package/library/pug-DGCLwxp4.mjs +0 -405
- package/library/pug-DGCLwxp4.mjs.br +0 -0
- package/library/pug-DGCLwxp4.mjs.gz +0 -0
- package/library/puppet-Bdao66PW.mjs +0 -137
- package/library/puppet-Bdao66PW.mjs.br +0 -0
- package/library/puppet-Bdao66PW.mjs.gz +0 -0
- package/library/python-CvWbmiX4.mjs +0 -427
- package/library/python-CvWbmiX4.mjs.br +0 -0
- package/library/python-CvWbmiX4.mjs.gz +0 -0
- package/library/q-819KmTeu.mjs +0 -128
- package/library/q-819KmTeu.mjs.br +0 -0
- package/library/q-819KmTeu.mjs.gz +0 -0
- package/library/r-V7nswm59.mjs +0 -170
- package/library/r-V7nswm59.mjs.br +0 -0
- package/library/r-V7nswm59.mjs.gz +0 -0
- package/library/rpm-C-DLY-If.mjs +0 -109
- package/library/rpm-C-DLY-If.mjs.br +0 -0
- package/library/rpm-C-DLY-If.mjs.gz +0 -0
- package/library/ruby-JDKLJNK0.mjs +0 -330
- package/library/ruby-JDKLJNK0.mjs.br +0 -0
- package/library/ruby-JDKLJNK0.mjs.gz +0 -0
- package/library/sas-D2UG-yhZ.mjs +0 -207
- package/library/sas-D2UG-yhZ.mjs.br +0 -0
- package/library/sas-D2UG-yhZ.mjs.gz +0 -0
- package/library/scheme-BKzrkGJD.mjs +0 -222
- package/library/scheme-BKzrkGJD.mjs.br +0 -0
- package/library/scheme-BKzrkGJD.mjs.gz +0 -0
- package/library/shell-BlsXDxCn.mjs +0 -222
- package/library/shell-BlsXDxCn.mjs.br +0 -0
- package/library/shell-BlsXDxCn.mjs.gz +0 -0
- package/library/sieve-CjwBwOY5.mjs +0 -135
- package/library/sieve-CjwBwOY5.mjs.br +0 -0
- package/library/sieve-CjwBwOY5.mjs.gz +0 -0
- package/library/simple-mode-zrLq6ojR.mjs +0 -129
- package/library/simple-mode-zrLq6ojR.mjs.br +0 -0
- package/library/simple-mode-zrLq6ojR.mjs.gz +0 -0
- package/library/smalltalk-BOIGQuhN.mjs +0 -121
- package/library/smalltalk-BOIGQuhN.mjs.br +0 -0
- package/library/smalltalk-BOIGQuhN.mjs.gz +0 -0
- package/library/solr-CwD7U71z.mjs +0 -69
- package/library/solr-CwD7U71z.mjs.br +0 -0
- package/library/solr-CwD7U71z.mjs.gz +0 -0
- package/library/sparql-DYskk2vE.mjs +0 -249
- package/library/sparql-DYskk2vE.mjs.br +0 -0
- package/library/sparql-DYskk2vE.mjs.gz +0 -0
- package/library/spreadsheet-Bgtt3oLP.mjs +0 -87
- package/library/spreadsheet-Bgtt3oLP.mjs.br +0 -0
- package/library/spreadsheet-Bgtt3oLP.mjs.gz +0 -0
- package/library/sql-BSrOzCRI.mjs +0 -354
- package/library/sql-BSrOzCRI.mjs.br +0 -0
- package/library/sql-BSrOzCRI.mjs.gz +0 -0
- package/library/stex-B6LNC55o.mjs +0 -231
- package/library/stex-B6LNC55o.mjs.br +0 -0
- package/library/stex-B6LNC55o.mjs.gz +0 -0
- package/library/style.css +0 -1
- package/library/style.css.br +0 -0
- package/library/style.css.gz +0 -0
- package/library/stylus-BkS-boTH.mjs +0 -565
- package/library/stylus-BkS-boTH.mjs.br +0 -0
- package/library/stylus-BkS-boTH.mjs.gz +0 -0
- package/library/super.mjs +0 -168
- package/library/super.mjs.br +0 -0
- package/library/super.mjs.gz +0 -0
- package/library/super.umd.js +0 -48
- package/library/super.umd.js.br +0 -0
- package/library/super.umd.js.gz +0 -0
- package/library/swift-FRZi1uvB.mjs +0 -291
- package/library/swift-FRZi1uvB.mjs.br +0 -0
- package/library/swift-FRZi1uvB.mjs.gz +0 -0
- package/library/tcl-CUcaCdmq.mjs +0 -114
- package/library/tcl-CUcaCdmq.mjs.br +0 -0
- package/library/tcl-CUcaCdmq.mjs.gz +0 -0
- package/library/textile-BnFpjsrl.mjs +0 -414
- package/library/textile-BnFpjsrl.mjs.br +0 -0
- package/library/textile-BnFpjsrl.mjs.gz +0 -0
- package/library/tiddlywiki-CjprD-Qp.mjs +0 -218
- package/library/tiddlywiki-CjprD-Qp.mjs.br +0 -0
- package/library/tiddlywiki-CjprD-Qp.mjs.gz +0 -0
- package/library/tiki-B4EPSQ1G.mjs +0 -265
- package/library/tiki-B4EPSQ1G.mjs.br +0 -0
- package/library/tiki-B4EPSQ1G.mjs.gz +0 -0
- package/library/toml-CrLTxh7K.mjs +0 -75
- package/library/toml-CrLTxh7K.mjs.br +0 -0
- package/library/toml-CrLTxh7K.mjs.gz +0 -0
- package/library/troff-E1bJ0PPL.mjs +0 -61
- package/library/troff-E1bJ0PPL.mjs.br +0 -0
- package/library/troff-E1bJ0PPL.mjs.gz +0 -0
- package/library/ttcn-cfg-Dc39-fIP.mjs +0 -133
- package/library/ttcn-cfg-Dc39-fIP.mjs.br +0 -0
- package/library/ttcn-cfg-Dc39-fIP.mjs.gz +0 -0
- package/library/ttcn-tKd4HLu4.mjs +0 -192
- package/library/ttcn-tKd4HLu4.mjs.br +0 -0
- package/library/ttcn-tKd4HLu4.mjs.gz +0 -0
- package/library/turtle-Dq7-1WAf.mjs +0 -124
- package/library/turtle-Dq7-1WAf.mjs.br +0 -0
- package/library/turtle-Dq7-1WAf.mjs.gz +0 -0
- package/library/types/components/VcExcelUploader/VcExcelFileProcessLoader.vue.d.ts +0 -68
- package/library/types/components/VcExcelUploader/VcExcelFileUploadBlock.vue.d.ts +0 -70
- package/library/types/components/VcExcelUploader/VcExcelFileUploader.vue.d.ts +0 -179
- package/library/types/components/VcExcelUploader/VcFileImportErrorsCard.vue.d.ts +0 -31
- package/library/types/components/VcExcelUploader/VcFileImportParseResultBlock.vue.d.ts +0 -69
- package/library/types/components/VcExcelUploader/VcFileImportResultBindData.vue.d.ts +0 -60
- package/library/types/components/VcExcelUploader/VcFileImportResultBindDataTable.vue.d.ts +0 -40
- package/library/types/components/VcHtmlEditor/VcHtmlEditor.vue.d.ts +0 -63
- package/library/types/components/VcHtmlEditor/VcHtmlEditorToolbar.vue.d.ts +0 -43
- package/library/types/components/VcHtmlEditor/htmlEditor.config.d.ts +0 -19
- package/library/types/components/VcImageUploader/VcImageUploader.vue.d.ts +0 -74
- package/library/types/components/VcImageUploader/index.d.ts +0 -2
- package/library/types/components/VcJsonSchema/Components/ImportJsonSchemaModal.vue.d.ts +0 -25
- package/library/types/components/VcJsonSchema/Components/JsonCodeMirror.vue.d.ts +0 -24
- package/library/types/components/VcJsonSchema/Components/JsonSchemaEditor.vue.d.ts +0 -86
- package/library/types/components/VcJsonSchema/Components/JsonSchemaManageModal.vue.d.ts +0 -28
- package/library/types/components/VcJsonSchema/PropertySetup/JsonSchemaPropertyModal.vue.d.ts +0 -39
- package/library/types/components/VcJsonSchema/VcJsonSchema.vue.d.ts +0 -49
- package/library/types/components/VcJsonSchema/helpers/jsonSchema.enum.d.ts +0 -9
- package/library/types/components/VcJsonSchema/helpers/jsonSchema.helper.d.ts +0 -3
- package/library/types/components/VcMdEditor/ParameterNode.vue.d.ts +0 -6
- package/library/types/components/VcMdEditor/VcMdEditor.vue.d.ts +0 -30
- package/library/types/components/VcMdEditor/VcMdEditorContent.vue.d.ts +0 -82
- package/library/types/components/VcMdEditor/VcMdEditorToolbar.vue.d.ts +0 -27
- package/library/types/components/VcMdEditor/mdEditor.config.d.ts +0 -91
- package/library/types/components/VcMdEditor/rtlCursorPlugin.d.ts +0 -8
- package/library/types/components/VcPdfViewer/VcPdfDocument.vue.d.ts +0 -40
- package/library/types/components/VcPdfViewer/VcPdfDocumentCard.vue.d.ts +0 -47
- package/library/types/components/VcPdfViewer/VcPdfDocumentPage.vue.d.ts +0 -55
- package/library/types/components/VcPdfViewer/VcPdfDocumentViewerFooter.vue.d.ts +0 -63
- package/library/types/components/VcPdfViewer/VcPdfDocumentViewerToolbar.vue.d.ts +0 -28
- package/library/types/components/VcPdfViewer/pdfjslib.d.ts +0 -4
- package/library/types/components/VcPdfViewer/utils.d.ts +0 -7
- package/library/types/components/VcSipFlow/VcSipFlow.vue.d.ts +0 -97
- package/library/types/components/VcSipFlow/index.d.ts +0 -3
- package/library/types/components/VcSipFlow/sip-flow.options.d.ts +0 -77
- package/library/types/components/VcSoundplayer/VcPlayerPlayStopButton.vue.d.ts +0 -55
- package/library/types/components/VcSoundplayer/VcPlayerPlaybackRate.vue.d.ts +0 -35
- package/library/types/components/VcSoundplayer/VcPlayerPlaybackRatePopup.vue.d.ts +0 -40
- package/library/types/components/VcSoundplayer/VcPlayerSkipButtons.vue.d.ts +0 -52
- package/library/types/components/VcSoundplayer/VcSoundCurrentTime.vue.d.ts +0 -2
- package/library/types/components/VcSoundplayer/VcSoundDuration.vue.d.ts +0 -2
- package/library/types/components/VcSoundplayer/VcSoundPlayer.vue.d.ts +0 -96
- package/library/types/components/VcSoundplayer/VcSoundPlayerError.vue.d.ts +0 -21
- package/library/types/components/VcSoundplayer/VcSoundPlayerProgress.vue.d.ts +0 -15
- package/library/types/components/VcSoundplayer/VcSoundPlayerWrapper.vue.d.ts +0 -208
- package/library/types/components/VcSoundplayer/VcSoundVolume.vue.d.ts +0 -44
- package/library/types/components/VcSoundplayer/player.options.d.ts +0 -10
- package/library/types/components/VcSoundplayer/soundPlayerParts.d.ts +0 -11
- package/library/types/components/VcSoundplayer/useSoundPlayerProvideInject.d.ts +0 -3
- package/library/types/components/VcSystemUserPrompt/VcSystemUserPrompt.vue.d.ts +0 -41
- package/library/types/components/VcSystemUserPrompt/enum.d.ts +0 -13
- package/library/types/components/VcTour/VcTour.vue.d.ts +0 -70
- package/library/types/components/exports.d.ts +0 -64
- package/library/types/components/heavy-components.d.ts +0 -41
- package/library/types/composables/useCopyButton.d.ts +0 -5
- package/library/types/composables/useVModel.d.ts +0 -1
- package/library/types/entity/components/Button/VcEntityAddButton.vue.d.ts +0 -41
- package/library/types/entity/components/Button/VcEntityCancelButton.vue.d.ts +0 -54
- package/library/types/entity/components/Button/VcEntityDeleteIconButton.vue.d.ts +0 -48
- package/library/types/entity/components/Button/VcEntityEditIconButton.vue.d.ts +0 -36
- package/library/types/entity/components/Button/VcEntityRestoreButton.vue.d.ts +0 -54
- package/library/types/entity/components/Button/VcEntityStatusButton.vue.d.ts +0 -48
- package/library/types/entity/components/Form/VcBaseVerticalForm.vue.d.ts +0 -55
- package/library/types/entity/components/Form/VcEntityEditPageForm.vue.d.ts +0 -59
- package/library/types/entity/components/Form/VcEntityVerticalCreateForm.vue.d.ts +0 -50
- package/library/types/entity/components/Form/VcEntityVerticalEditForm.vue.d.ts +0 -62
- package/library/types/entity/components/Table/VcEntityListTable.vue.d.ts +0 -146
- package/library/types/entity/components/Tabs/VcEntityEditableTabs.vue.d.ts +0 -165
- package/library/types/entity/components/index.d.ts +0 -29
- package/library/types/entity/composable/useEditableTabs.d.ts +0 -12
- package/library/types/entity/composable/useEntityListTableExternalPaginate.d.ts +0 -17
- package/library/types/entity/composable/useEntityProvideInject.d.ts +0 -24
- package/library/types/entity/composable/useEntityTabsProviseInject.d.ts +0 -3
- package/library/types/entity/index.d.ts +0 -1
- package/library/types/entity/services/BaseEntityService.d.ts +0 -105
- package/library/types/entity/services/index.d.ts +0 -1
- package/library/types/entry.d.ts +0 -27
- package/library/types/tokens/tokens.d.ts +0 -13
- package/library/types/types/Entity.types.d.ts +0 -5
- package/library/types/types/Tabs.d.ts +0 -23
- package/library/types/types/VcSipFlow.types.d.ts +0 -85
- package/library/types/types/VcSoundPlayer.types.d.ts +0 -34
- package/library/types/types/VcSystemUserPrompt.types.d.ts +0 -4
- package/library/types/types/VcTour.types.d.ts +0 -53
- package/library/types/types/basic.types.d.ts +0 -49
- package/library/types/types/heavy-components.types.d.ts +0 -54
- package/library/types/utils/excelParser/configs.d.ts +0 -5
- package/library/types/utils/excelParser/helper.d.ts +0 -20
- package/library/types/utils/excelParser/parser.d.ts +0 -244
- package/library/types/utils/excelParser/validations.d.ts +0 -27
- package/library/types/utils/isValidTime.d.ts +0 -2
- package/library/types/utils/mime-types.d.ts +0 -12
- package/library/vb-Dp90gtsv.mjs +0 -196
- package/library/vb-Dp90gtsv.mjs.br +0 -0
- package/library/vb-Dp90gtsv.mjs.gz +0 -0
- package/library/vbscript-CI6_mxxU.mjs +0 -479
- package/library/vbscript-CI6_mxxU.mjs.br +0 -0
- package/library/vbscript-CI6_mxxU.mjs.gz +0 -0
- package/library/velocity-BwIZK1TH.mjs +0 -149
- package/library/velocity-BwIZK1TH.mjs.br +0 -0
- package/library/velocity-BwIZK1TH.mjs.gz +0 -0
- package/library/verilog-DDCYnHN8.mjs +0 -430
- package/library/verilog-DDCYnHN8.mjs.br +0 -0
- package/library/verilog-DDCYnHN8.mjs.gz +0 -0
- package/library/vhdl-DCkMIyT9.mjs +0 -158
- package/library/vhdl-DCkMIyT9.mjs.br +0 -0
- package/library/vhdl-DCkMIyT9.mjs.gz +0 -0
- package/library/webidl-BTLTThCm.mjs +0 -204
- package/library/webidl-BTLTThCm.mjs.br +0 -0
- package/library/webidl-BTLTThCm.mjs.gz +0 -0
- package/library/xquery-BgiOC5Ce.mjs +0 -525
- package/library/xquery-BgiOC5Ce.mjs.br +0 -0
- package/library/xquery-BgiOC5Ce.mjs.gz +0 -0
- package/library/yacas-b5lAVEIl.mjs +0 -130
- package/library/yacas-b5lAVEIl.mjs.br +0 -0
- package/library/yacas-b5lAVEIl.mjs.gz +0 -0
- package/library/z80-BZV19vqv.mjs +0 -93
- package/library/z80-BZV19vqv.mjs.br +0 -0
- package/library/z80-BZV19vqv.mjs.gz +0 -0
- package/src/assets/sass/main/_icons.scss +0 -36
- package/src/components/VcButton/VcButton.scss +0 -191
- package/src/components/VcButton/VcButtonIcon.scss +0 -179
- package/src/components/VcInput/VcInput.scss +0 -100
- package/src/components/VcModal/VcModal.scss +0 -232
- package/src/components/VcPopover/VcPopover.scss +0 -10
- package/src/components/VcSelect/VcSelect.scss +0 -96
- package/src/components/VcSelect/VcSelectMixin.scss +0 -39
- package/src/components/VcSelect/VcSelectOption.scss +0 -29
- package/src/components/VcSelect/VcSelectVariables.scss +0 -1
- package/src/enum/constants.ts +0 -50
- package/src/enum/countries.ts +0 -1277
- package/src/enum/dataTestAttributes.ts +0 -9
- package/src/enum/icons.ts +0 -8919
- package/src/enum/inputDefaults.ts +0 -8
- package/src/utils/makeDataTestAttributeValue.ts +0 -5
- package/library/{types → core/types}/components/VcAutocomplete/VcAutocomplete.vue.d.ts +77 -77
- package/library/{types → core/types}/components/VcButton/VcButton.vue.d.ts +2 -2
- package/library/{types → core/types}/components/VcButton/VcButtonIcon.vue.d.ts +1 -1
- package/library/{types → core/types}/components/VcButton/VcToggleButton.vue.d.ts +3 -3
- package/library/{types → core/types}/components/VcCard/VcCard.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcCheckbox/VcCheckbox.vue.d.ts +15 -15
- package/library/{types → core/types}/components/VcCheckbox/VcCheckboxGroupEl.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcCheckboxGroup/VcCheckboxGroup.vue.d.ts +9 -9
- package/library/{types → core/types}/components/VcCollapse/VcCollapse.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcCollapse/VcCollapseItem.vue.d.ts +1 -1
- package/library/{types → core/types}/components/VcCollapse/VcCollapseTransition.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcColorPicker/VcColorPicker.vue.d.ts +2 -2
- package/library/{types → core/types}/components/VcDatePicker/VcDatePicker.vue.d.ts +18 -18
- package/library/{types → core/types}/components/VcDatePickerPanel/VcDatePickerPanel.vue.d.ts +6 -6
- package/library/{types → core/types}/components/VcDatetimeRangePicker/VcDatetimeRangePicker.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcDelimitedList/VcDelimitedList.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcDropdown/VcDropdownItem.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcExtendedDatetimeRangePicker/ExtendedDatetimeRangePickerPart.vue.d.ts +1 -1
- package/library/{types → core/types}/components/VcExtendedDatetimeRangePicker/ExtendedDatetimeRangePickerRelative.vue.d.ts +1 -1
- package/library/{types → core/types}/components/VcExtendedDatetimeRangePicker/VcExtendedDatetimeRangePicker.vue.d.ts +4 -4
- package/library/{types → core/types}/components/VcExtendedDatetimeRangePicker/VcExtendedDatetimeRangePickerQuickOptionsSelection.vue.d.ts +1 -1
- package/library/{types → core/types}/components/VcExtendedDatetimeRangePicker/composable.d.ts +0 -0
- package/library/{types → core/types}/components/VcExtendedDatetimeRangePicker/enum.d.ts +0 -0
- package/library/{types → core/types}/components/VcFileUploader/VcFileUploader.vue.d.ts +2 -2
- package/library/{types → core/types}/components/VcForm/UiComponents/VcInputError.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcForm/UiComponents/VcInputLabel.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcForm/VcForm.vue.d.ts +1 -1
- package/library/{types → core/types}/components/VcForm/VcFormItem.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcHyperLink/VcHyperLink.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcIconPicker/VcIconPicker.vue.d.ts +3 -3
- package/library/{types → core/types}/components/VcInput/VcInput.vue.d.ts +5 -5
- package/library/{types → core/types}/components/VcInputNumber/VcInputNumber.vue.d.ts +3 -3
- package/library/{types → core/types}/components/VcLoading/Loaders/Circles.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcLoading/Loaders/DotSpinner.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcLoading/Loaders/LdsSpinner.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcLoading/Loaders/LoadIcon.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcLoading/Loaders/Stretch.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcLoading/Loaders/index.d.ts +0 -0
- package/library/{types → core/types}/components/VcLoading/VcLoading.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcLoading/enum.d.ts +0 -0
- package/library/{types → core/types}/components/VcModal/VcConfirmModal.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcModal/VcModal.vue.d.ts +2 -2
- package/library/{types → core/types}/components/VcNotification/VcNotification.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcNotification/VcNotificationMessage.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcOtpInput/VcOtpInput.vue.d.ts +6 -6
- package/library/{types → core/types}/components/VcPagination/VcPagination.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcPagination/VcPaginationButton.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcPhoneInput/VcFlagLabel.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcPhoneInput/VcPhoneInput.vue.d.ts +3 -3
- package/library/{types → core/types}/components/VcPopover/VcConfirmPopover.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcPopover/VcPopover.vue.d.ts +1 -1
- package/library/{types → core/types}/components/VcPopover/VcSelectPopover.vue.d.ts +6 -6
- package/library/{types → core/types}/components/VcProgress/VcProgress.vue.d.ts +1 -1
- package/library/{types → core/types}/components/VcProgress/VcProgressCircular.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcProgress/progress.options.d.ts +0 -0
- package/library/{types → core/types}/components/VcRadio/VcRadio.vue.d.ts +6 -6
- package/library/{types → core/types}/components/VcRadioButtons/VcRadioButtonsGroup.vue.d.ts +3 -3
- package/library/{types → core/types}/components/VcRadioGroup/VcRadioGroup.vue.d.ts +3 -3
- package/library/{types → core/types}/components/VcRadioTabs/UiComponents/VcRadioTabsNav.vue.d.ts +3 -3
- package/library/{types → core/types}/components/VcSegmented/VcSegmented.vue.d.ts +9 -9
- package/library/{types → core/types}/components/VcSelect/VcInfiniteScrollSelect.vue.d.ts +18 -18
- package/library/{types → core/types}/components/VcSelect/VcSelect.vue.d.ts +30 -30
- package/library/{types → core/types}/components/VcSelect/VcSelectGrouped.vue.d.ts +27 -27
- package/library/{types → core/types}/components/VcSelect/VcSelectOption.vue.d.ts +3 -3
- package/library/{types → core/types}/components/VcSkeletonLoader/Loaders/Card.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcSkeletonLoader/Loaders/Circle.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcSkeletonLoader/Loaders/Row.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcSkeletonLoader/Loaders/Square.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcSkeletonLoader/Loaders/Text.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcSkeletonLoader/VcSkeletonLoader.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcSlider/VcSlider.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcSplitButton/VcSplitButton.vue.d.ts +3 -3
- package/library/{types → core/types}/components/VcSwitch/VcSwitch.vue.d.ts +18 -18
- package/library/{types → core/types}/components/VcTable/VcTable.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcTable/tableOptions.d.ts +0 -0
- package/library/{types → core/types}/components/VcTabs/VcTabNav.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcTabs/VcTabPane.vue.d.ts +1 -1
- package/library/{types → core/types}/components/VcTabs/VcTabs.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcTag/VcTag.vue.d.ts +2 -2
- package/library/{types → core/types}/components/VcTagInput/VcTagInput.vue.d.ts +3 -3
- package/library/{types → core/types}/components/VcTimeInput/VcTimeInput.vue.d.ts +2 -2
- package/library/{types → core/types}/components/VcTree/VcTree.vue.d.ts +3 -3
- package/library/{types → core/types}/components/VcVerticalTabs/VcVerticalTabs.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcVerticalTabs/VerticalTabNav.vue.d.ts +0 -0
- package/library/{types → core/types}/components/VcViewSwitcher/VcViewSwitcher.vue.d.ts +6 -6
- /package/library/{types → core/types}/components/VcWizard/VcSummaryProgress.vue.d.ts +0 -0
- /package/library/{types → core/types}/components/VcWizard/VcSummaryStep.vue.d.ts +0 -0
- /package/library/{types → core/types}/components/VcWizard/VcWizard.vue.d.ts +0 -0
- /package/library/{types → core/types}/components/VcWizard/VcWizardNavigation.vue.d.ts +0 -0
- /package/library/{types → core/types}/components/VcWizard/VcWizardSummary.vue.d.ts +0 -0
- /package/library/{types → core/types}/composables/input/useInputBase.d.ts +0 -0
- /package/library/{types → core/types}/composables/input/useInputColor.d.ts +0 -0
- /package/library/{types → core/types}/composables/input/useInputError.d.ts +0 -0
- /package/library/{types → core/types}/composables/input/useInputLabel.d.ts +0 -0
- /package/library/{types → core/types}/composables/option/useOptionMethods.d.ts +0 -0
- /package/library/{types/entity/composable → core/types/composables}/useConfirmModal.d.ts +0 -0
- /package/library/{types → core/types}/composables/useRTL.d.ts +0 -0
- /package/library/{types → core/types}/directives/click-outside.d.ts +0 -0
- /package/library/{types → core/types}/directives/index.d.ts +0 -0
- /package/library/{types → core/types}/directives/input-mask.d.ts +0 -0
- /package/library/{types → core/types}/directives/long-press.d.ts +0 -0
- /package/library/{types → core/types}/directives/resize.d.ts +0 -0
- /package/library/{types → core/types}/enum/constants.d.ts +0 -0
- /package/library/{types → core/types}/enum/countries.d.ts +0 -0
- /package/library/{types → core/types}/enum/dataTestAttributes.d.ts +0 -0
- /package/library/{types → core/types}/enum/icons.d.ts +0 -0
- /package/library/{types → core/types}/enum/inputDefaults.d.ts +0 -0
- /package/library/{types → core/types}/font/FontLoader.d.ts +0 -0
- /package/library/{types → core/types}/font/index.d.ts +0 -0
- /package/library/{types → core/types}/localization/Localization.types.d.ts +0 -0
- /package/library/{types → core/types}/localization/index.d.ts +0 -0
- /package/library/{types/utils → core/types/services}/VcNotifyService.d.ts +0 -0
- /package/library/{types → core/types}/theme/index.d.ts +0 -0
- /package/library/{types → core/types}/theme/theme.types.d.ts +0 -0
- /package/library/{types → core/types}/tokens/element-plus.tokens.d.ts +0 -0
- /package/library/{types → core/types}/tokens/index.d.ts +0 -0
- /package/library/{types → core/types}/types/AppendToTarget.types.d.ts +0 -0
- /package/library/{types → core/types}/types/Dropdown.types.d.ts +0 -0
- /package/library/{types → core/types}/types/Entry.types.d.ts +0 -0
- /package/library/{types → core/types}/types/ExcelParser.types.d.ts +0 -0
- /package/library/{types → core/types}/types/OptionAndConfig.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcButton.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcCollapse.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcDatePicker.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcDatetimeRangePicker.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcDelimitedList.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcExtendedDatetimeRangePicker.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcFileUploader.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcForm.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcHyperLink.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcIconPicker.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcInput.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcLoading.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcMeterGroup.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcModal.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcNotification.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcOtpInput.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcPagination.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcPopover.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcProgress.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcRTL.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcRadioTabs.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcSelect.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcSkeletonLoader.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcSparkline.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcSplitButton.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcSwitch.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcTable.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcTag.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcTagInput.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VcWizard.types.d.ts +0 -0
- /package/library/{types → core/types}/types/VueGeneric.types.d.ts +0 -0
- /package/library/{types → core/types}/types/generic.types.d.ts +0 -0
- /package/library/{types → core/types}/types/icons.types.d.ts +0 -0
- /package/library/{types → core/types}/utils/DomHandler.d.ts +0 -0
- /package/library/{types → core/types}/utils/ToastEventBus.d.ts +0 -0
- /package/library/{types → core/types}/utils/UniqueComponentId.d.ts +0 -0
- /package/library/{types → core/types}/utils/ZIndexUtils.d.ts +0 -0
- /package/library/{types → core/types}/utils/dateTime.d.ts +0 -0
- /package/library/{types → core/types}/utils/element-plus-imports.d.ts +0 -0
- /package/library/{types → core/types}/utils/helpers.d.ts +0 -0
- /package/library/{types → core/types}/utils/makeDataTestAttributeValue.d.ts +0 -0
- /package/src/{theme → core/theme}/index.ts +0 -0
- /package/src/{theme → core/theme}/tailwindScheme.js +0 -0
- /package/src/{theme → core/theme}/theme.types.ts +0 -0
|
@@ -1,1401 +0,0 @@
|
|
|
1
|
-
import { g as isObjectLike, bH as baseGetTag, bI as getPrototype } from "./entry-EvdwF4XL.mjs";
|
|
2
|
-
var objectTag = "[object Object]";
|
|
3
|
-
var funcProto = Function.prototype, objectProto = Object.prototype;
|
|
4
|
-
var funcToString = funcProto.toString;
|
|
5
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
6
|
-
var objectCtorString = funcToString.call(Object);
|
|
7
|
-
function isPlainObject(value) {
|
|
8
|
-
if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
|
|
9
|
-
return false;
|
|
10
|
-
}
|
|
11
|
-
var proto = getPrototype(value);
|
|
12
|
-
if (proto === null) {
|
|
13
|
-
return true;
|
|
14
|
-
}
|
|
15
|
-
var Ctor = hasOwnProperty.call(proto, "constructor") && proto.constructor;
|
|
16
|
-
return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
|
|
17
|
-
}
|
|
18
|
-
const min = Math.min;
|
|
19
|
-
const max = Math.max;
|
|
20
|
-
const round = Math.round;
|
|
21
|
-
const floor = Math.floor;
|
|
22
|
-
const createCoords = (v) => ({
|
|
23
|
-
x: v,
|
|
24
|
-
y: v
|
|
25
|
-
});
|
|
26
|
-
const oppositeSideMap = {
|
|
27
|
-
left: "right",
|
|
28
|
-
right: "left",
|
|
29
|
-
bottom: "top",
|
|
30
|
-
top: "bottom"
|
|
31
|
-
};
|
|
32
|
-
const oppositeAlignmentMap = {
|
|
33
|
-
start: "end",
|
|
34
|
-
end: "start"
|
|
35
|
-
};
|
|
36
|
-
function clamp(start, value, end) {
|
|
37
|
-
return max(start, min(value, end));
|
|
38
|
-
}
|
|
39
|
-
function evaluate(value, param) {
|
|
40
|
-
return typeof value === "function" ? value(param) : value;
|
|
41
|
-
}
|
|
42
|
-
function getSide(placement) {
|
|
43
|
-
return placement.split("-")[0];
|
|
44
|
-
}
|
|
45
|
-
function getAlignment(placement) {
|
|
46
|
-
return placement.split("-")[1];
|
|
47
|
-
}
|
|
48
|
-
function getOppositeAxis(axis) {
|
|
49
|
-
return axis === "x" ? "y" : "x";
|
|
50
|
-
}
|
|
51
|
-
function getAxisLength(axis) {
|
|
52
|
-
return axis === "y" ? "height" : "width";
|
|
53
|
-
}
|
|
54
|
-
function getSideAxis(placement) {
|
|
55
|
-
return ["top", "bottom"].includes(getSide(placement)) ? "y" : "x";
|
|
56
|
-
}
|
|
57
|
-
function getAlignmentAxis(placement) {
|
|
58
|
-
return getOppositeAxis(getSideAxis(placement));
|
|
59
|
-
}
|
|
60
|
-
function getAlignmentSides(placement, rects, rtl) {
|
|
61
|
-
if (rtl === void 0) {
|
|
62
|
-
rtl = false;
|
|
63
|
-
}
|
|
64
|
-
const alignment = getAlignment(placement);
|
|
65
|
-
const alignmentAxis = getAlignmentAxis(placement);
|
|
66
|
-
const length = getAxisLength(alignmentAxis);
|
|
67
|
-
let mainAlignmentSide = alignmentAxis === "x" ? alignment === (rtl ? "end" : "start") ? "right" : "left" : alignment === "start" ? "bottom" : "top";
|
|
68
|
-
if (rects.reference[length] > rects.floating[length]) {
|
|
69
|
-
mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
|
|
70
|
-
}
|
|
71
|
-
return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];
|
|
72
|
-
}
|
|
73
|
-
function getExpandedPlacements(placement) {
|
|
74
|
-
const oppositePlacement = getOppositePlacement(placement);
|
|
75
|
-
return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
|
|
76
|
-
}
|
|
77
|
-
function getOppositeAlignmentPlacement(placement) {
|
|
78
|
-
return placement.replace(/start|end/g, (alignment) => oppositeAlignmentMap[alignment]);
|
|
79
|
-
}
|
|
80
|
-
function getSideList(side, isStart, rtl) {
|
|
81
|
-
const lr = ["left", "right"];
|
|
82
|
-
const rl = ["right", "left"];
|
|
83
|
-
const tb = ["top", "bottom"];
|
|
84
|
-
const bt = ["bottom", "top"];
|
|
85
|
-
switch (side) {
|
|
86
|
-
case "top":
|
|
87
|
-
case "bottom":
|
|
88
|
-
if (rtl) return isStart ? rl : lr;
|
|
89
|
-
return isStart ? lr : rl;
|
|
90
|
-
case "left":
|
|
91
|
-
case "right":
|
|
92
|
-
return isStart ? tb : bt;
|
|
93
|
-
default:
|
|
94
|
-
return [];
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
|
|
98
|
-
const alignment = getAlignment(placement);
|
|
99
|
-
let list = getSideList(getSide(placement), direction === "start", rtl);
|
|
100
|
-
if (alignment) {
|
|
101
|
-
list = list.map((side) => side + "-" + alignment);
|
|
102
|
-
if (flipAlignment) {
|
|
103
|
-
list = list.concat(list.map(getOppositeAlignmentPlacement));
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
return list;
|
|
107
|
-
}
|
|
108
|
-
function getOppositePlacement(placement) {
|
|
109
|
-
return placement.replace(/left|right|bottom|top/g, (side) => oppositeSideMap[side]);
|
|
110
|
-
}
|
|
111
|
-
function expandPaddingObject(padding) {
|
|
112
|
-
return {
|
|
113
|
-
top: 0,
|
|
114
|
-
right: 0,
|
|
115
|
-
bottom: 0,
|
|
116
|
-
left: 0,
|
|
117
|
-
...padding
|
|
118
|
-
};
|
|
119
|
-
}
|
|
120
|
-
function getPaddingObject(padding) {
|
|
121
|
-
return typeof padding !== "number" ? expandPaddingObject(padding) : {
|
|
122
|
-
top: padding,
|
|
123
|
-
right: padding,
|
|
124
|
-
bottom: padding,
|
|
125
|
-
left: padding
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
function rectToClientRect(rect) {
|
|
129
|
-
const {
|
|
130
|
-
x,
|
|
131
|
-
y,
|
|
132
|
-
width,
|
|
133
|
-
height
|
|
134
|
-
} = rect;
|
|
135
|
-
return {
|
|
136
|
-
width,
|
|
137
|
-
height,
|
|
138
|
-
top: y,
|
|
139
|
-
left: x,
|
|
140
|
-
right: x + width,
|
|
141
|
-
bottom: y + height,
|
|
142
|
-
x,
|
|
143
|
-
y
|
|
144
|
-
};
|
|
145
|
-
}
|
|
146
|
-
function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
147
|
-
let {
|
|
148
|
-
reference,
|
|
149
|
-
floating
|
|
150
|
-
} = _ref;
|
|
151
|
-
const sideAxis = getSideAxis(placement);
|
|
152
|
-
const alignmentAxis = getAlignmentAxis(placement);
|
|
153
|
-
const alignLength = getAxisLength(alignmentAxis);
|
|
154
|
-
const side = getSide(placement);
|
|
155
|
-
const isVertical = sideAxis === "y";
|
|
156
|
-
const commonX = reference.x + reference.width / 2 - floating.width / 2;
|
|
157
|
-
const commonY = reference.y + reference.height / 2 - floating.height / 2;
|
|
158
|
-
const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;
|
|
159
|
-
let coords;
|
|
160
|
-
switch (side) {
|
|
161
|
-
case "top":
|
|
162
|
-
coords = {
|
|
163
|
-
x: commonX,
|
|
164
|
-
y: reference.y - floating.height
|
|
165
|
-
};
|
|
166
|
-
break;
|
|
167
|
-
case "bottom":
|
|
168
|
-
coords = {
|
|
169
|
-
x: commonX,
|
|
170
|
-
y: reference.y + reference.height
|
|
171
|
-
};
|
|
172
|
-
break;
|
|
173
|
-
case "right":
|
|
174
|
-
coords = {
|
|
175
|
-
x: reference.x + reference.width,
|
|
176
|
-
y: commonY
|
|
177
|
-
};
|
|
178
|
-
break;
|
|
179
|
-
case "left":
|
|
180
|
-
coords = {
|
|
181
|
-
x: reference.x - floating.width,
|
|
182
|
-
y: commonY
|
|
183
|
-
};
|
|
184
|
-
break;
|
|
185
|
-
default:
|
|
186
|
-
coords = {
|
|
187
|
-
x: reference.x,
|
|
188
|
-
y: reference.y
|
|
189
|
-
};
|
|
190
|
-
}
|
|
191
|
-
switch (getAlignment(placement)) {
|
|
192
|
-
case "start":
|
|
193
|
-
coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
|
|
194
|
-
break;
|
|
195
|
-
case "end":
|
|
196
|
-
coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
|
|
197
|
-
break;
|
|
198
|
-
}
|
|
199
|
-
return coords;
|
|
200
|
-
}
|
|
201
|
-
const computePosition$1 = async (reference, floating, config) => {
|
|
202
|
-
const {
|
|
203
|
-
placement = "bottom",
|
|
204
|
-
strategy = "absolute",
|
|
205
|
-
middleware = [],
|
|
206
|
-
platform: platform2
|
|
207
|
-
} = config;
|
|
208
|
-
const validMiddleware = middleware.filter(Boolean);
|
|
209
|
-
const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(floating));
|
|
210
|
-
let rects = await platform2.getElementRects({
|
|
211
|
-
reference,
|
|
212
|
-
floating,
|
|
213
|
-
strategy
|
|
214
|
-
});
|
|
215
|
-
let {
|
|
216
|
-
x,
|
|
217
|
-
y
|
|
218
|
-
} = computeCoordsFromPlacement(rects, placement, rtl);
|
|
219
|
-
let statefulPlacement = placement;
|
|
220
|
-
let middlewareData = {};
|
|
221
|
-
let resetCount = 0;
|
|
222
|
-
for (let i = 0; i < validMiddleware.length; i++) {
|
|
223
|
-
const {
|
|
224
|
-
name,
|
|
225
|
-
fn
|
|
226
|
-
} = validMiddleware[i];
|
|
227
|
-
const {
|
|
228
|
-
x: nextX,
|
|
229
|
-
y: nextY,
|
|
230
|
-
data,
|
|
231
|
-
reset
|
|
232
|
-
} = await fn({
|
|
233
|
-
x,
|
|
234
|
-
y,
|
|
235
|
-
initialPlacement: placement,
|
|
236
|
-
placement: statefulPlacement,
|
|
237
|
-
strategy,
|
|
238
|
-
middlewareData,
|
|
239
|
-
rects,
|
|
240
|
-
platform: platform2,
|
|
241
|
-
elements: {
|
|
242
|
-
reference,
|
|
243
|
-
floating
|
|
244
|
-
}
|
|
245
|
-
});
|
|
246
|
-
x = nextX != null ? nextX : x;
|
|
247
|
-
y = nextY != null ? nextY : y;
|
|
248
|
-
middlewareData = {
|
|
249
|
-
...middlewareData,
|
|
250
|
-
[name]: {
|
|
251
|
-
...middlewareData[name],
|
|
252
|
-
...data
|
|
253
|
-
}
|
|
254
|
-
};
|
|
255
|
-
if (reset && resetCount <= 50) {
|
|
256
|
-
resetCount++;
|
|
257
|
-
if (typeof reset === "object") {
|
|
258
|
-
if (reset.placement) {
|
|
259
|
-
statefulPlacement = reset.placement;
|
|
260
|
-
}
|
|
261
|
-
if (reset.rects) {
|
|
262
|
-
rects = reset.rects === true ? await platform2.getElementRects({
|
|
263
|
-
reference,
|
|
264
|
-
floating,
|
|
265
|
-
strategy
|
|
266
|
-
}) : reset.rects;
|
|
267
|
-
}
|
|
268
|
-
({
|
|
269
|
-
x,
|
|
270
|
-
y
|
|
271
|
-
} = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
|
|
272
|
-
}
|
|
273
|
-
i = -1;
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
return {
|
|
277
|
-
x,
|
|
278
|
-
y,
|
|
279
|
-
placement: statefulPlacement,
|
|
280
|
-
strategy,
|
|
281
|
-
middlewareData
|
|
282
|
-
};
|
|
283
|
-
};
|
|
284
|
-
async function detectOverflow$1(state, options) {
|
|
285
|
-
var _await$platform$isEle;
|
|
286
|
-
if (options === void 0) {
|
|
287
|
-
options = {};
|
|
288
|
-
}
|
|
289
|
-
const {
|
|
290
|
-
x,
|
|
291
|
-
y,
|
|
292
|
-
platform: platform2,
|
|
293
|
-
rects,
|
|
294
|
-
elements,
|
|
295
|
-
strategy
|
|
296
|
-
} = state;
|
|
297
|
-
const {
|
|
298
|
-
boundary = "clippingAncestors",
|
|
299
|
-
rootBoundary = "viewport",
|
|
300
|
-
elementContext = "floating",
|
|
301
|
-
altBoundary = false,
|
|
302
|
-
padding = 0
|
|
303
|
-
} = evaluate(options, state);
|
|
304
|
-
const paddingObject = getPaddingObject(padding);
|
|
305
|
-
const altContext = elementContext === "floating" ? "reference" : "floating";
|
|
306
|
-
const element = elements[altBoundary ? altContext : elementContext];
|
|
307
|
-
const clippingClientRect = rectToClientRect(await platform2.getClippingRect({
|
|
308
|
-
element: ((_await$platform$isEle = await (platform2.isElement == null ? void 0 : platform2.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || await (platform2.getDocumentElement == null ? void 0 : platform2.getDocumentElement(elements.floating)),
|
|
309
|
-
boundary,
|
|
310
|
-
rootBoundary,
|
|
311
|
-
strategy
|
|
312
|
-
}));
|
|
313
|
-
const rect = elementContext === "floating" ? {
|
|
314
|
-
x,
|
|
315
|
-
y,
|
|
316
|
-
width: rects.floating.width,
|
|
317
|
-
height: rects.floating.height
|
|
318
|
-
} : rects.reference;
|
|
319
|
-
const offsetParent = await (platform2.getOffsetParent == null ? void 0 : platform2.getOffsetParent(elements.floating));
|
|
320
|
-
const offsetScale = await (platform2.isElement == null ? void 0 : platform2.isElement(offsetParent)) ? await (platform2.getScale == null ? void 0 : platform2.getScale(offsetParent)) || {
|
|
321
|
-
x: 1,
|
|
322
|
-
y: 1
|
|
323
|
-
} : {
|
|
324
|
-
x: 1,
|
|
325
|
-
y: 1
|
|
326
|
-
};
|
|
327
|
-
const elementClientRect = rectToClientRect(platform2.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform2.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
328
|
-
elements,
|
|
329
|
-
rect,
|
|
330
|
-
offsetParent,
|
|
331
|
-
strategy
|
|
332
|
-
}) : rect);
|
|
333
|
-
return {
|
|
334
|
-
top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
|
|
335
|
-
bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
|
|
336
|
-
left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
|
|
337
|
-
right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
|
|
338
|
-
};
|
|
339
|
-
}
|
|
340
|
-
const arrow$1 = (options) => ({
|
|
341
|
-
name: "arrow",
|
|
342
|
-
options,
|
|
343
|
-
async fn(state) {
|
|
344
|
-
const {
|
|
345
|
-
x,
|
|
346
|
-
y,
|
|
347
|
-
placement,
|
|
348
|
-
rects,
|
|
349
|
-
platform: platform2,
|
|
350
|
-
elements,
|
|
351
|
-
middlewareData
|
|
352
|
-
} = state;
|
|
353
|
-
const {
|
|
354
|
-
element,
|
|
355
|
-
padding = 0
|
|
356
|
-
} = evaluate(options, state) || {};
|
|
357
|
-
if (element == null) {
|
|
358
|
-
return {};
|
|
359
|
-
}
|
|
360
|
-
const paddingObject = getPaddingObject(padding);
|
|
361
|
-
const coords = {
|
|
362
|
-
x,
|
|
363
|
-
y
|
|
364
|
-
};
|
|
365
|
-
const axis = getAlignmentAxis(placement);
|
|
366
|
-
const length = getAxisLength(axis);
|
|
367
|
-
const arrowDimensions = await platform2.getDimensions(element);
|
|
368
|
-
const isYAxis = axis === "y";
|
|
369
|
-
const minProp = isYAxis ? "top" : "left";
|
|
370
|
-
const maxProp = isYAxis ? "bottom" : "right";
|
|
371
|
-
const clientProp = isYAxis ? "clientHeight" : "clientWidth";
|
|
372
|
-
const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
|
|
373
|
-
const startDiff = coords[axis] - rects.reference[axis];
|
|
374
|
-
const arrowOffsetParent = await (platform2.getOffsetParent == null ? void 0 : platform2.getOffsetParent(element));
|
|
375
|
-
let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
|
|
376
|
-
if (!clientSize || !await (platform2.isElement == null ? void 0 : platform2.isElement(arrowOffsetParent))) {
|
|
377
|
-
clientSize = elements.floating[clientProp] || rects.floating[length];
|
|
378
|
-
}
|
|
379
|
-
const centerToReference = endDiff / 2 - startDiff / 2;
|
|
380
|
-
const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;
|
|
381
|
-
const minPadding = min(paddingObject[minProp], largestPossiblePadding);
|
|
382
|
-
const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);
|
|
383
|
-
const min$1 = minPadding;
|
|
384
|
-
const max2 = clientSize - arrowDimensions[length] - maxPadding;
|
|
385
|
-
const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
|
|
386
|
-
const offset2 = clamp(min$1, center, max2);
|
|
387
|
-
const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset2 && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
|
|
388
|
-
const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max2 : 0;
|
|
389
|
-
return {
|
|
390
|
-
[axis]: coords[axis] + alignmentOffset,
|
|
391
|
-
data: {
|
|
392
|
-
[axis]: offset2,
|
|
393
|
-
centerOffset: center - offset2 - alignmentOffset,
|
|
394
|
-
...shouldAddOffset && {
|
|
395
|
-
alignmentOffset
|
|
396
|
-
}
|
|
397
|
-
},
|
|
398
|
-
reset: shouldAddOffset
|
|
399
|
-
};
|
|
400
|
-
}
|
|
401
|
-
});
|
|
402
|
-
const flip$1 = function(options) {
|
|
403
|
-
if (options === void 0) {
|
|
404
|
-
options = {};
|
|
405
|
-
}
|
|
406
|
-
return {
|
|
407
|
-
name: "flip",
|
|
408
|
-
options,
|
|
409
|
-
async fn(state) {
|
|
410
|
-
var _middlewareData$arrow, _middlewareData$flip;
|
|
411
|
-
const {
|
|
412
|
-
placement,
|
|
413
|
-
middlewareData,
|
|
414
|
-
rects,
|
|
415
|
-
initialPlacement,
|
|
416
|
-
platform: platform2,
|
|
417
|
-
elements
|
|
418
|
-
} = state;
|
|
419
|
-
const {
|
|
420
|
-
mainAxis: checkMainAxis = true,
|
|
421
|
-
crossAxis: checkCrossAxis = true,
|
|
422
|
-
fallbackPlacements: specifiedFallbackPlacements,
|
|
423
|
-
fallbackStrategy = "bestFit",
|
|
424
|
-
fallbackAxisSideDirection = "none",
|
|
425
|
-
flipAlignment = true,
|
|
426
|
-
...detectOverflowOptions
|
|
427
|
-
} = evaluate(options, state);
|
|
428
|
-
if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
|
429
|
-
return {};
|
|
430
|
-
}
|
|
431
|
-
const side = getSide(placement);
|
|
432
|
-
const initialSideAxis = getSideAxis(initialPlacement);
|
|
433
|
-
const isBasePlacement = getSide(initialPlacement) === initialPlacement;
|
|
434
|
-
const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating));
|
|
435
|
-
const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
|
|
436
|
-
const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== "none";
|
|
437
|
-
if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
|
|
438
|
-
fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
|
|
439
|
-
}
|
|
440
|
-
const placements = [initialPlacement, ...fallbackPlacements];
|
|
441
|
-
const overflow = await detectOverflow$1(state, detectOverflowOptions);
|
|
442
|
-
const overflows = [];
|
|
443
|
-
let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
|
|
444
|
-
if (checkMainAxis) {
|
|
445
|
-
overflows.push(overflow[side]);
|
|
446
|
-
}
|
|
447
|
-
if (checkCrossAxis) {
|
|
448
|
-
const sides = getAlignmentSides(placement, rects, rtl);
|
|
449
|
-
overflows.push(overflow[sides[0]], overflow[sides[1]]);
|
|
450
|
-
}
|
|
451
|
-
overflowsData = [...overflowsData, {
|
|
452
|
-
placement,
|
|
453
|
-
overflows
|
|
454
|
-
}];
|
|
455
|
-
if (!overflows.every((side2) => side2 <= 0)) {
|
|
456
|
-
var _middlewareData$flip2, _overflowsData$filter;
|
|
457
|
-
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
|
|
458
|
-
const nextPlacement = placements[nextIndex];
|
|
459
|
-
if (nextPlacement) {
|
|
460
|
-
var _overflowsData$;
|
|
461
|
-
const ignoreCrossAxisOverflow = checkCrossAxis === "alignment" ? initialSideAxis !== getSideAxis(nextPlacement) : false;
|
|
462
|
-
const hasInitialMainAxisOverflow = ((_overflowsData$ = overflowsData[0]) == null ? void 0 : _overflowsData$.overflows[0]) > 0;
|
|
463
|
-
if (!ignoreCrossAxisOverflow || hasInitialMainAxisOverflow) {
|
|
464
|
-
return {
|
|
465
|
-
data: {
|
|
466
|
-
index: nextIndex,
|
|
467
|
-
overflows: overflowsData
|
|
468
|
-
},
|
|
469
|
-
reset: {
|
|
470
|
-
placement: nextPlacement
|
|
471
|
-
}
|
|
472
|
-
};
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
let resetPlacement = (_overflowsData$filter = overflowsData.filter((d) => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
|
|
476
|
-
if (!resetPlacement) {
|
|
477
|
-
switch (fallbackStrategy) {
|
|
478
|
-
case "bestFit": {
|
|
479
|
-
var _overflowsData$filter2;
|
|
480
|
-
const placement2 = (_overflowsData$filter2 = overflowsData.filter((d) => {
|
|
481
|
-
if (hasFallbackAxisSideDirection) {
|
|
482
|
-
const currentSideAxis = getSideAxis(d.placement);
|
|
483
|
-
return currentSideAxis === initialSideAxis || // Create a bias to the `y` side axis due to horizontal
|
|
484
|
-
// reading directions favoring greater width.
|
|
485
|
-
currentSideAxis === "y";
|
|
486
|
-
}
|
|
487
|
-
return true;
|
|
488
|
-
}).map((d) => [d.placement, d.overflows.filter((overflow2) => overflow2 > 0).reduce((acc, overflow2) => acc + overflow2, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$filter2[0];
|
|
489
|
-
if (placement2) {
|
|
490
|
-
resetPlacement = placement2;
|
|
491
|
-
}
|
|
492
|
-
break;
|
|
493
|
-
}
|
|
494
|
-
case "initialPlacement":
|
|
495
|
-
resetPlacement = initialPlacement;
|
|
496
|
-
break;
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
if (placement !== resetPlacement) {
|
|
500
|
-
return {
|
|
501
|
-
reset: {
|
|
502
|
-
placement: resetPlacement
|
|
503
|
-
}
|
|
504
|
-
};
|
|
505
|
-
}
|
|
506
|
-
}
|
|
507
|
-
return {};
|
|
508
|
-
}
|
|
509
|
-
};
|
|
510
|
-
};
|
|
511
|
-
async function convertValueToCoords(state, options) {
|
|
512
|
-
const {
|
|
513
|
-
placement,
|
|
514
|
-
platform: platform2,
|
|
515
|
-
elements
|
|
516
|
-
} = state;
|
|
517
|
-
const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating));
|
|
518
|
-
const side = getSide(placement);
|
|
519
|
-
const alignment = getAlignment(placement);
|
|
520
|
-
const isVertical = getSideAxis(placement) === "y";
|
|
521
|
-
const mainAxisMulti = ["left", "top"].includes(side) ? -1 : 1;
|
|
522
|
-
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
|
523
|
-
const rawValue = evaluate(options, state);
|
|
524
|
-
let {
|
|
525
|
-
mainAxis,
|
|
526
|
-
crossAxis,
|
|
527
|
-
alignmentAxis
|
|
528
|
-
} = typeof rawValue === "number" ? {
|
|
529
|
-
mainAxis: rawValue,
|
|
530
|
-
crossAxis: 0,
|
|
531
|
-
alignmentAxis: null
|
|
532
|
-
} : {
|
|
533
|
-
mainAxis: rawValue.mainAxis || 0,
|
|
534
|
-
crossAxis: rawValue.crossAxis || 0,
|
|
535
|
-
alignmentAxis: rawValue.alignmentAxis
|
|
536
|
-
};
|
|
537
|
-
if (alignment && typeof alignmentAxis === "number") {
|
|
538
|
-
crossAxis = alignment === "end" ? alignmentAxis * -1 : alignmentAxis;
|
|
539
|
-
}
|
|
540
|
-
return isVertical ? {
|
|
541
|
-
x: crossAxis * crossAxisMulti,
|
|
542
|
-
y: mainAxis * mainAxisMulti
|
|
543
|
-
} : {
|
|
544
|
-
x: mainAxis * mainAxisMulti,
|
|
545
|
-
y: crossAxis * crossAxisMulti
|
|
546
|
-
};
|
|
547
|
-
}
|
|
548
|
-
const offset$1 = function(options) {
|
|
549
|
-
if (options === void 0) {
|
|
550
|
-
options = 0;
|
|
551
|
-
}
|
|
552
|
-
return {
|
|
553
|
-
name: "offset",
|
|
554
|
-
options,
|
|
555
|
-
async fn(state) {
|
|
556
|
-
var _middlewareData$offse, _middlewareData$arrow;
|
|
557
|
-
const {
|
|
558
|
-
x,
|
|
559
|
-
y,
|
|
560
|
-
placement,
|
|
561
|
-
middlewareData
|
|
562
|
-
} = state;
|
|
563
|
-
const diffCoords = await convertValueToCoords(state, options);
|
|
564
|
-
if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
|
565
|
-
return {};
|
|
566
|
-
}
|
|
567
|
-
return {
|
|
568
|
-
x: x + diffCoords.x,
|
|
569
|
-
y: y + diffCoords.y,
|
|
570
|
-
data: {
|
|
571
|
-
...diffCoords,
|
|
572
|
-
placement
|
|
573
|
-
}
|
|
574
|
-
};
|
|
575
|
-
}
|
|
576
|
-
};
|
|
577
|
-
};
|
|
578
|
-
const shift$1 = function(options) {
|
|
579
|
-
if (options === void 0) {
|
|
580
|
-
options = {};
|
|
581
|
-
}
|
|
582
|
-
return {
|
|
583
|
-
name: "shift",
|
|
584
|
-
options,
|
|
585
|
-
async fn(state) {
|
|
586
|
-
const {
|
|
587
|
-
x,
|
|
588
|
-
y,
|
|
589
|
-
placement
|
|
590
|
-
} = state;
|
|
591
|
-
const {
|
|
592
|
-
mainAxis: checkMainAxis = true,
|
|
593
|
-
crossAxis: checkCrossAxis = false,
|
|
594
|
-
limiter = {
|
|
595
|
-
fn: (_ref) => {
|
|
596
|
-
let {
|
|
597
|
-
x: x2,
|
|
598
|
-
y: y2
|
|
599
|
-
} = _ref;
|
|
600
|
-
return {
|
|
601
|
-
x: x2,
|
|
602
|
-
y: y2
|
|
603
|
-
};
|
|
604
|
-
}
|
|
605
|
-
},
|
|
606
|
-
...detectOverflowOptions
|
|
607
|
-
} = evaluate(options, state);
|
|
608
|
-
const coords = {
|
|
609
|
-
x,
|
|
610
|
-
y
|
|
611
|
-
};
|
|
612
|
-
const overflow = await detectOverflow$1(state, detectOverflowOptions);
|
|
613
|
-
const crossAxis = getSideAxis(getSide(placement));
|
|
614
|
-
const mainAxis = getOppositeAxis(crossAxis);
|
|
615
|
-
let mainAxisCoord = coords[mainAxis];
|
|
616
|
-
let crossAxisCoord = coords[crossAxis];
|
|
617
|
-
if (checkMainAxis) {
|
|
618
|
-
const minSide = mainAxis === "y" ? "top" : "left";
|
|
619
|
-
const maxSide = mainAxis === "y" ? "bottom" : "right";
|
|
620
|
-
const min2 = mainAxisCoord + overflow[minSide];
|
|
621
|
-
const max2 = mainAxisCoord - overflow[maxSide];
|
|
622
|
-
mainAxisCoord = clamp(min2, mainAxisCoord, max2);
|
|
623
|
-
}
|
|
624
|
-
if (checkCrossAxis) {
|
|
625
|
-
const minSide = crossAxis === "y" ? "top" : "left";
|
|
626
|
-
const maxSide = crossAxis === "y" ? "bottom" : "right";
|
|
627
|
-
const min2 = crossAxisCoord + overflow[minSide];
|
|
628
|
-
const max2 = crossAxisCoord - overflow[maxSide];
|
|
629
|
-
crossAxisCoord = clamp(min2, crossAxisCoord, max2);
|
|
630
|
-
}
|
|
631
|
-
const limitedCoords = limiter.fn({
|
|
632
|
-
...state,
|
|
633
|
-
[mainAxis]: mainAxisCoord,
|
|
634
|
-
[crossAxis]: crossAxisCoord
|
|
635
|
-
});
|
|
636
|
-
return {
|
|
637
|
-
...limitedCoords,
|
|
638
|
-
data: {
|
|
639
|
-
x: limitedCoords.x - x,
|
|
640
|
-
y: limitedCoords.y - y,
|
|
641
|
-
enabled: {
|
|
642
|
-
[mainAxis]: checkMainAxis,
|
|
643
|
-
[crossAxis]: checkCrossAxis
|
|
644
|
-
}
|
|
645
|
-
}
|
|
646
|
-
};
|
|
647
|
-
}
|
|
648
|
-
};
|
|
649
|
-
};
|
|
650
|
-
function hasWindow() {
|
|
651
|
-
return typeof window !== "undefined";
|
|
652
|
-
}
|
|
653
|
-
function getNodeName(node) {
|
|
654
|
-
if (isNode(node)) {
|
|
655
|
-
return (node.nodeName || "").toLowerCase();
|
|
656
|
-
}
|
|
657
|
-
return "#document";
|
|
658
|
-
}
|
|
659
|
-
function getWindow(node) {
|
|
660
|
-
var _node$ownerDocument;
|
|
661
|
-
return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
|
662
|
-
}
|
|
663
|
-
function getDocumentElement(node) {
|
|
664
|
-
var _ref;
|
|
665
|
-
return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
|
|
666
|
-
}
|
|
667
|
-
function isNode(value) {
|
|
668
|
-
if (!hasWindow()) {
|
|
669
|
-
return false;
|
|
670
|
-
}
|
|
671
|
-
return value instanceof Node || value instanceof getWindow(value).Node;
|
|
672
|
-
}
|
|
673
|
-
function isElement(value) {
|
|
674
|
-
if (!hasWindow()) {
|
|
675
|
-
return false;
|
|
676
|
-
}
|
|
677
|
-
return value instanceof Element || value instanceof getWindow(value).Element;
|
|
678
|
-
}
|
|
679
|
-
function isHTMLElement(value) {
|
|
680
|
-
if (!hasWindow()) {
|
|
681
|
-
return false;
|
|
682
|
-
}
|
|
683
|
-
return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
|
|
684
|
-
}
|
|
685
|
-
function isShadowRoot(value) {
|
|
686
|
-
if (!hasWindow() || typeof ShadowRoot === "undefined") {
|
|
687
|
-
return false;
|
|
688
|
-
}
|
|
689
|
-
return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
|
|
690
|
-
}
|
|
691
|
-
function isOverflowElement(element) {
|
|
692
|
-
const {
|
|
693
|
-
overflow,
|
|
694
|
-
overflowX,
|
|
695
|
-
overflowY,
|
|
696
|
-
display
|
|
697
|
-
} = getComputedStyle(element);
|
|
698
|
-
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !["inline", "contents"].includes(display);
|
|
699
|
-
}
|
|
700
|
-
function isTableElement(element) {
|
|
701
|
-
return ["table", "td", "th"].includes(getNodeName(element));
|
|
702
|
-
}
|
|
703
|
-
function isTopLayer(element) {
|
|
704
|
-
return [":popover-open", ":modal"].some((selector) => {
|
|
705
|
-
try {
|
|
706
|
-
return element.matches(selector);
|
|
707
|
-
} catch (e) {
|
|
708
|
-
return false;
|
|
709
|
-
}
|
|
710
|
-
});
|
|
711
|
-
}
|
|
712
|
-
function isContainingBlock(elementOrCss) {
|
|
713
|
-
const webkit = isWebKit();
|
|
714
|
-
const css = isElement(elementOrCss) ? getComputedStyle(elementOrCss) : elementOrCss;
|
|
715
|
-
return ["transform", "translate", "scale", "rotate", "perspective"].some((value) => css[value] ? css[value] !== "none" : false) || (css.containerType ? css.containerType !== "normal" : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== "none" : false) || !webkit && (css.filter ? css.filter !== "none" : false) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((value) => (css.willChange || "").includes(value)) || ["paint", "layout", "strict", "content"].some((value) => (css.contain || "").includes(value));
|
|
716
|
-
}
|
|
717
|
-
function getContainingBlock(element) {
|
|
718
|
-
let currentNode = getParentNode(element);
|
|
719
|
-
while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
720
|
-
if (isContainingBlock(currentNode)) {
|
|
721
|
-
return currentNode;
|
|
722
|
-
} else if (isTopLayer(currentNode)) {
|
|
723
|
-
return null;
|
|
724
|
-
}
|
|
725
|
-
currentNode = getParentNode(currentNode);
|
|
726
|
-
}
|
|
727
|
-
return null;
|
|
728
|
-
}
|
|
729
|
-
function isWebKit() {
|
|
730
|
-
if (typeof CSS === "undefined" || !CSS.supports) return false;
|
|
731
|
-
return CSS.supports("-webkit-backdrop-filter", "none");
|
|
732
|
-
}
|
|
733
|
-
function isLastTraversableNode(node) {
|
|
734
|
-
return ["html", "body", "#document"].includes(getNodeName(node));
|
|
735
|
-
}
|
|
736
|
-
function getComputedStyle(element) {
|
|
737
|
-
return getWindow(element).getComputedStyle(element);
|
|
738
|
-
}
|
|
739
|
-
function getNodeScroll(element) {
|
|
740
|
-
if (isElement(element)) {
|
|
741
|
-
return {
|
|
742
|
-
scrollLeft: element.scrollLeft,
|
|
743
|
-
scrollTop: element.scrollTop
|
|
744
|
-
};
|
|
745
|
-
}
|
|
746
|
-
return {
|
|
747
|
-
scrollLeft: element.scrollX,
|
|
748
|
-
scrollTop: element.scrollY
|
|
749
|
-
};
|
|
750
|
-
}
|
|
751
|
-
function getParentNode(node) {
|
|
752
|
-
if (getNodeName(node) === "html") {
|
|
753
|
-
return node;
|
|
754
|
-
}
|
|
755
|
-
const result = (
|
|
756
|
-
// Step into the shadow DOM of the parent of a slotted node.
|
|
757
|
-
node.assignedSlot || // DOM Element detected.
|
|
758
|
-
node.parentNode || // ShadowRoot detected.
|
|
759
|
-
isShadowRoot(node) && node.host || // Fallback.
|
|
760
|
-
getDocumentElement(node)
|
|
761
|
-
);
|
|
762
|
-
return isShadowRoot(result) ? result.host : result;
|
|
763
|
-
}
|
|
764
|
-
function getNearestOverflowAncestor(node) {
|
|
765
|
-
const parentNode = getParentNode(node);
|
|
766
|
-
if (isLastTraversableNode(parentNode)) {
|
|
767
|
-
return node.ownerDocument ? node.ownerDocument.body : node.body;
|
|
768
|
-
}
|
|
769
|
-
if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
|
|
770
|
-
return parentNode;
|
|
771
|
-
}
|
|
772
|
-
return getNearestOverflowAncestor(parentNode);
|
|
773
|
-
}
|
|
774
|
-
function getOverflowAncestors(node, list, traverseIframes) {
|
|
775
|
-
var _node$ownerDocument2;
|
|
776
|
-
if (list === void 0) {
|
|
777
|
-
list = [];
|
|
778
|
-
}
|
|
779
|
-
if (traverseIframes === void 0) {
|
|
780
|
-
traverseIframes = true;
|
|
781
|
-
}
|
|
782
|
-
const scrollableAncestor = getNearestOverflowAncestor(node);
|
|
783
|
-
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
|
|
784
|
-
const win = getWindow(scrollableAncestor);
|
|
785
|
-
if (isBody) {
|
|
786
|
-
const frameElement = getFrameElement(win);
|
|
787
|
-
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
|
|
788
|
-
}
|
|
789
|
-
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
|
|
790
|
-
}
|
|
791
|
-
function getFrameElement(win) {
|
|
792
|
-
return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
|
|
793
|
-
}
|
|
794
|
-
function getCssDimensions(element) {
|
|
795
|
-
const css = getComputedStyle(element);
|
|
796
|
-
let width = parseFloat(css.width) || 0;
|
|
797
|
-
let height = parseFloat(css.height) || 0;
|
|
798
|
-
const hasOffset = isHTMLElement(element);
|
|
799
|
-
const offsetWidth = hasOffset ? element.offsetWidth : width;
|
|
800
|
-
const offsetHeight = hasOffset ? element.offsetHeight : height;
|
|
801
|
-
const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
|
|
802
|
-
if (shouldFallback) {
|
|
803
|
-
width = offsetWidth;
|
|
804
|
-
height = offsetHeight;
|
|
805
|
-
}
|
|
806
|
-
return {
|
|
807
|
-
width,
|
|
808
|
-
height,
|
|
809
|
-
$: shouldFallback
|
|
810
|
-
};
|
|
811
|
-
}
|
|
812
|
-
function unwrapElement(element) {
|
|
813
|
-
return !isElement(element) ? element.contextElement : element;
|
|
814
|
-
}
|
|
815
|
-
function getScale(element) {
|
|
816
|
-
const domElement = unwrapElement(element);
|
|
817
|
-
if (!isHTMLElement(domElement)) {
|
|
818
|
-
return createCoords(1);
|
|
819
|
-
}
|
|
820
|
-
const rect = domElement.getBoundingClientRect();
|
|
821
|
-
const {
|
|
822
|
-
width,
|
|
823
|
-
height,
|
|
824
|
-
$
|
|
825
|
-
} = getCssDimensions(domElement);
|
|
826
|
-
let x = ($ ? round(rect.width) : rect.width) / width;
|
|
827
|
-
let y = ($ ? round(rect.height) : rect.height) / height;
|
|
828
|
-
if (!x || !Number.isFinite(x)) {
|
|
829
|
-
x = 1;
|
|
830
|
-
}
|
|
831
|
-
if (!y || !Number.isFinite(y)) {
|
|
832
|
-
y = 1;
|
|
833
|
-
}
|
|
834
|
-
return {
|
|
835
|
-
x,
|
|
836
|
-
y
|
|
837
|
-
};
|
|
838
|
-
}
|
|
839
|
-
const noOffsets = /* @__PURE__ */ createCoords(0);
|
|
840
|
-
function getVisualOffsets(element) {
|
|
841
|
-
const win = getWindow(element);
|
|
842
|
-
if (!isWebKit() || !win.visualViewport) {
|
|
843
|
-
return noOffsets;
|
|
844
|
-
}
|
|
845
|
-
return {
|
|
846
|
-
x: win.visualViewport.offsetLeft,
|
|
847
|
-
y: win.visualViewport.offsetTop
|
|
848
|
-
};
|
|
849
|
-
}
|
|
850
|
-
function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
|
|
851
|
-
if (isFixed === void 0) {
|
|
852
|
-
isFixed = false;
|
|
853
|
-
}
|
|
854
|
-
if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
|
|
855
|
-
return false;
|
|
856
|
-
}
|
|
857
|
-
return isFixed;
|
|
858
|
-
}
|
|
859
|
-
function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
|
|
860
|
-
if (includeScale === void 0) {
|
|
861
|
-
includeScale = false;
|
|
862
|
-
}
|
|
863
|
-
if (isFixedStrategy === void 0) {
|
|
864
|
-
isFixedStrategy = false;
|
|
865
|
-
}
|
|
866
|
-
const clientRect = element.getBoundingClientRect();
|
|
867
|
-
const domElement = unwrapElement(element);
|
|
868
|
-
let scale = createCoords(1);
|
|
869
|
-
if (includeScale) {
|
|
870
|
-
if (offsetParent) {
|
|
871
|
-
if (isElement(offsetParent)) {
|
|
872
|
-
scale = getScale(offsetParent);
|
|
873
|
-
}
|
|
874
|
-
} else {
|
|
875
|
-
scale = getScale(element);
|
|
876
|
-
}
|
|
877
|
-
}
|
|
878
|
-
const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
|
|
879
|
-
let x = (clientRect.left + visualOffsets.x) / scale.x;
|
|
880
|
-
let y = (clientRect.top + visualOffsets.y) / scale.y;
|
|
881
|
-
let width = clientRect.width / scale.x;
|
|
882
|
-
let height = clientRect.height / scale.y;
|
|
883
|
-
if (domElement) {
|
|
884
|
-
const win = getWindow(domElement);
|
|
885
|
-
const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
|
|
886
|
-
let currentWin = win;
|
|
887
|
-
let currentIFrame = getFrameElement(currentWin);
|
|
888
|
-
while (currentIFrame && offsetParent && offsetWin !== currentWin) {
|
|
889
|
-
const iframeScale = getScale(currentIFrame);
|
|
890
|
-
const iframeRect = currentIFrame.getBoundingClientRect();
|
|
891
|
-
const css = getComputedStyle(currentIFrame);
|
|
892
|
-
const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
|
|
893
|
-
const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
|
|
894
|
-
x *= iframeScale.x;
|
|
895
|
-
y *= iframeScale.y;
|
|
896
|
-
width *= iframeScale.x;
|
|
897
|
-
height *= iframeScale.y;
|
|
898
|
-
x += left;
|
|
899
|
-
y += top;
|
|
900
|
-
currentWin = getWindow(currentIFrame);
|
|
901
|
-
currentIFrame = getFrameElement(currentWin);
|
|
902
|
-
}
|
|
903
|
-
}
|
|
904
|
-
return rectToClientRect({
|
|
905
|
-
width,
|
|
906
|
-
height,
|
|
907
|
-
x,
|
|
908
|
-
y
|
|
909
|
-
});
|
|
910
|
-
}
|
|
911
|
-
function getWindowScrollBarX(element, rect) {
|
|
912
|
-
const leftScroll = getNodeScroll(element).scrollLeft;
|
|
913
|
-
if (!rect) {
|
|
914
|
-
return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;
|
|
915
|
-
}
|
|
916
|
-
return rect.left + leftScroll;
|
|
917
|
-
}
|
|
918
|
-
function getHTMLOffset(documentElement, scroll, ignoreScrollbarX) {
|
|
919
|
-
if (ignoreScrollbarX === void 0) {
|
|
920
|
-
ignoreScrollbarX = false;
|
|
921
|
-
}
|
|
922
|
-
const htmlRect = documentElement.getBoundingClientRect();
|
|
923
|
-
const x = htmlRect.left + scroll.scrollLeft - (ignoreScrollbarX ? 0 : (
|
|
924
|
-
// RTL <body> scrollbar.
|
|
925
|
-
getWindowScrollBarX(documentElement, htmlRect)
|
|
926
|
-
));
|
|
927
|
-
const y = htmlRect.top + scroll.scrollTop;
|
|
928
|
-
return {
|
|
929
|
-
x,
|
|
930
|
-
y
|
|
931
|
-
};
|
|
932
|
-
}
|
|
933
|
-
function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
934
|
-
let {
|
|
935
|
-
elements,
|
|
936
|
-
rect,
|
|
937
|
-
offsetParent,
|
|
938
|
-
strategy
|
|
939
|
-
} = _ref;
|
|
940
|
-
const isFixed = strategy === "fixed";
|
|
941
|
-
const documentElement = getDocumentElement(offsetParent);
|
|
942
|
-
const topLayer = elements ? isTopLayer(elements.floating) : false;
|
|
943
|
-
if (offsetParent === documentElement || topLayer && isFixed) {
|
|
944
|
-
return rect;
|
|
945
|
-
}
|
|
946
|
-
let scroll = {
|
|
947
|
-
scrollLeft: 0,
|
|
948
|
-
scrollTop: 0
|
|
949
|
-
};
|
|
950
|
-
let scale = createCoords(1);
|
|
951
|
-
const offsets = createCoords(0);
|
|
952
|
-
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
953
|
-
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
954
|
-
if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) {
|
|
955
|
-
scroll = getNodeScroll(offsetParent);
|
|
956
|
-
}
|
|
957
|
-
if (isHTMLElement(offsetParent)) {
|
|
958
|
-
const offsetRect = getBoundingClientRect(offsetParent);
|
|
959
|
-
scale = getScale(offsetParent);
|
|
960
|
-
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
961
|
-
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
962
|
-
}
|
|
963
|
-
}
|
|
964
|
-
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll, true) : createCoords(0);
|
|
965
|
-
return {
|
|
966
|
-
width: rect.width * scale.x,
|
|
967
|
-
height: rect.height * scale.y,
|
|
968
|
-
x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x + htmlOffset.x,
|
|
969
|
-
y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y + htmlOffset.y
|
|
970
|
-
};
|
|
971
|
-
}
|
|
972
|
-
function getClientRects(element) {
|
|
973
|
-
return Array.from(element.getClientRects());
|
|
974
|
-
}
|
|
975
|
-
function getDocumentRect(element) {
|
|
976
|
-
const html = getDocumentElement(element);
|
|
977
|
-
const scroll = getNodeScroll(element);
|
|
978
|
-
const body = element.ownerDocument.body;
|
|
979
|
-
const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
|
|
980
|
-
const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
|
|
981
|
-
let x = -scroll.scrollLeft + getWindowScrollBarX(element);
|
|
982
|
-
const y = -scroll.scrollTop;
|
|
983
|
-
if (getComputedStyle(body).direction === "rtl") {
|
|
984
|
-
x += max(html.clientWidth, body.clientWidth) - width;
|
|
985
|
-
}
|
|
986
|
-
return {
|
|
987
|
-
width,
|
|
988
|
-
height,
|
|
989
|
-
x,
|
|
990
|
-
y
|
|
991
|
-
};
|
|
992
|
-
}
|
|
993
|
-
function getViewportRect(element, strategy) {
|
|
994
|
-
const win = getWindow(element);
|
|
995
|
-
const html = getDocumentElement(element);
|
|
996
|
-
const visualViewport = win.visualViewport;
|
|
997
|
-
let width = html.clientWidth;
|
|
998
|
-
let height = html.clientHeight;
|
|
999
|
-
let x = 0;
|
|
1000
|
-
let y = 0;
|
|
1001
|
-
if (visualViewport) {
|
|
1002
|
-
width = visualViewport.width;
|
|
1003
|
-
height = visualViewport.height;
|
|
1004
|
-
const visualViewportBased = isWebKit();
|
|
1005
|
-
if (!visualViewportBased || visualViewportBased && strategy === "fixed") {
|
|
1006
|
-
x = visualViewport.offsetLeft;
|
|
1007
|
-
y = visualViewport.offsetTop;
|
|
1008
|
-
}
|
|
1009
|
-
}
|
|
1010
|
-
return {
|
|
1011
|
-
width,
|
|
1012
|
-
height,
|
|
1013
|
-
x,
|
|
1014
|
-
y
|
|
1015
|
-
};
|
|
1016
|
-
}
|
|
1017
|
-
function getInnerBoundingClientRect(element, strategy) {
|
|
1018
|
-
const clientRect = getBoundingClientRect(element, true, strategy === "fixed");
|
|
1019
|
-
const top = clientRect.top + element.clientTop;
|
|
1020
|
-
const left = clientRect.left + element.clientLeft;
|
|
1021
|
-
const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);
|
|
1022
|
-
const width = element.clientWidth * scale.x;
|
|
1023
|
-
const height = element.clientHeight * scale.y;
|
|
1024
|
-
const x = left * scale.x;
|
|
1025
|
-
const y = top * scale.y;
|
|
1026
|
-
return {
|
|
1027
|
-
width,
|
|
1028
|
-
height,
|
|
1029
|
-
x,
|
|
1030
|
-
y
|
|
1031
|
-
};
|
|
1032
|
-
}
|
|
1033
|
-
function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
|
|
1034
|
-
let rect;
|
|
1035
|
-
if (clippingAncestor === "viewport") {
|
|
1036
|
-
rect = getViewportRect(element, strategy);
|
|
1037
|
-
} else if (clippingAncestor === "document") {
|
|
1038
|
-
rect = getDocumentRect(getDocumentElement(element));
|
|
1039
|
-
} else if (isElement(clippingAncestor)) {
|
|
1040
|
-
rect = getInnerBoundingClientRect(clippingAncestor, strategy);
|
|
1041
|
-
} else {
|
|
1042
|
-
const visualOffsets = getVisualOffsets(element);
|
|
1043
|
-
rect = {
|
|
1044
|
-
x: clippingAncestor.x - visualOffsets.x,
|
|
1045
|
-
y: clippingAncestor.y - visualOffsets.y,
|
|
1046
|
-
width: clippingAncestor.width,
|
|
1047
|
-
height: clippingAncestor.height
|
|
1048
|
-
};
|
|
1049
|
-
}
|
|
1050
|
-
return rectToClientRect(rect);
|
|
1051
|
-
}
|
|
1052
|
-
function hasFixedPositionAncestor(element, stopNode) {
|
|
1053
|
-
const parentNode = getParentNode(element);
|
|
1054
|
-
if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
|
|
1055
|
-
return false;
|
|
1056
|
-
}
|
|
1057
|
-
return getComputedStyle(parentNode).position === "fixed" || hasFixedPositionAncestor(parentNode, stopNode);
|
|
1058
|
-
}
|
|
1059
|
-
function getClippingElementAncestors(element, cache) {
|
|
1060
|
-
const cachedResult = cache.get(element);
|
|
1061
|
-
if (cachedResult) {
|
|
1062
|
-
return cachedResult;
|
|
1063
|
-
}
|
|
1064
|
-
let result = getOverflowAncestors(element, [], false).filter((el) => isElement(el) && getNodeName(el) !== "body");
|
|
1065
|
-
let currentContainingBlockComputedStyle = null;
|
|
1066
|
-
const elementIsFixed = getComputedStyle(element).position === "fixed";
|
|
1067
|
-
let currentNode = elementIsFixed ? getParentNode(element) : element;
|
|
1068
|
-
while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
1069
|
-
const computedStyle = getComputedStyle(currentNode);
|
|
1070
|
-
const currentNodeIsContaining = isContainingBlock(currentNode);
|
|
1071
|
-
if (!currentNodeIsContaining && computedStyle.position === "fixed") {
|
|
1072
|
-
currentContainingBlockComputedStyle = null;
|
|
1073
|
-
}
|
|
1074
|
-
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === "static" && !!currentContainingBlockComputedStyle && ["absolute", "fixed"].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
|
|
1075
|
-
if (shouldDropCurrentNode) {
|
|
1076
|
-
result = result.filter((ancestor) => ancestor !== currentNode);
|
|
1077
|
-
} else {
|
|
1078
|
-
currentContainingBlockComputedStyle = computedStyle;
|
|
1079
|
-
}
|
|
1080
|
-
currentNode = getParentNode(currentNode);
|
|
1081
|
-
}
|
|
1082
|
-
cache.set(element, result);
|
|
1083
|
-
return result;
|
|
1084
|
-
}
|
|
1085
|
-
function getClippingRect(_ref) {
|
|
1086
|
-
let {
|
|
1087
|
-
element,
|
|
1088
|
-
boundary,
|
|
1089
|
-
rootBoundary,
|
|
1090
|
-
strategy
|
|
1091
|
-
} = _ref;
|
|
1092
|
-
const elementClippingAncestors = boundary === "clippingAncestors" ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);
|
|
1093
|
-
const clippingAncestors = [...elementClippingAncestors, rootBoundary];
|
|
1094
|
-
const firstClippingAncestor = clippingAncestors[0];
|
|
1095
|
-
const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
|
|
1096
|
-
const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);
|
|
1097
|
-
accRect.top = max(rect.top, accRect.top);
|
|
1098
|
-
accRect.right = min(rect.right, accRect.right);
|
|
1099
|
-
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
1100
|
-
accRect.left = max(rect.left, accRect.left);
|
|
1101
|
-
return accRect;
|
|
1102
|
-
}, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));
|
|
1103
|
-
return {
|
|
1104
|
-
width: clippingRect.right - clippingRect.left,
|
|
1105
|
-
height: clippingRect.bottom - clippingRect.top,
|
|
1106
|
-
x: clippingRect.left,
|
|
1107
|
-
y: clippingRect.top
|
|
1108
|
-
};
|
|
1109
|
-
}
|
|
1110
|
-
function getDimensions(element) {
|
|
1111
|
-
const {
|
|
1112
|
-
width,
|
|
1113
|
-
height
|
|
1114
|
-
} = getCssDimensions(element);
|
|
1115
|
-
return {
|
|
1116
|
-
width,
|
|
1117
|
-
height
|
|
1118
|
-
};
|
|
1119
|
-
}
|
|
1120
|
-
function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
1121
|
-
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
1122
|
-
const documentElement = getDocumentElement(offsetParent);
|
|
1123
|
-
const isFixed = strategy === "fixed";
|
|
1124
|
-
const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
|
|
1125
|
-
let scroll = {
|
|
1126
|
-
scrollLeft: 0,
|
|
1127
|
-
scrollTop: 0
|
|
1128
|
-
};
|
|
1129
|
-
const offsets = createCoords(0);
|
|
1130
|
-
function setLeftRTLScrollbarOffset() {
|
|
1131
|
-
offsets.x = getWindowScrollBarX(documentElement);
|
|
1132
|
-
}
|
|
1133
|
-
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
1134
|
-
if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) {
|
|
1135
|
-
scroll = getNodeScroll(offsetParent);
|
|
1136
|
-
}
|
|
1137
|
-
if (isOffsetParentAnElement) {
|
|
1138
|
-
const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
|
|
1139
|
-
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
1140
|
-
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
1141
|
-
} else if (documentElement) {
|
|
1142
|
-
setLeftRTLScrollbarOffset();
|
|
1143
|
-
}
|
|
1144
|
-
}
|
|
1145
|
-
if (isFixed && !isOffsetParentAnElement && documentElement) {
|
|
1146
|
-
setLeftRTLScrollbarOffset();
|
|
1147
|
-
}
|
|
1148
|
-
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
1149
|
-
const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
|
|
1150
|
-
const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
|
|
1151
|
-
return {
|
|
1152
|
-
x,
|
|
1153
|
-
y,
|
|
1154
|
-
width: rect.width,
|
|
1155
|
-
height: rect.height
|
|
1156
|
-
};
|
|
1157
|
-
}
|
|
1158
|
-
function isStaticPositioned(element) {
|
|
1159
|
-
return getComputedStyle(element).position === "static";
|
|
1160
|
-
}
|
|
1161
|
-
function getTrueOffsetParent(element, polyfill) {
|
|
1162
|
-
if (!isHTMLElement(element) || getComputedStyle(element).position === "fixed") {
|
|
1163
|
-
return null;
|
|
1164
|
-
}
|
|
1165
|
-
if (polyfill) {
|
|
1166
|
-
return polyfill(element);
|
|
1167
|
-
}
|
|
1168
|
-
let rawOffsetParent = element.offsetParent;
|
|
1169
|
-
if (getDocumentElement(element) === rawOffsetParent) {
|
|
1170
|
-
rawOffsetParent = rawOffsetParent.ownerDocument.body;
|
|
1171
|
-
}
|
|
1172
|
-
return rawOffsetParent;
|
|
1173
|
-
}
|
|
1174
|
-
function getOffsetParent(element, polyfill) {
|
|
1175
|
-
const win = getWindow(element);
|
|
1176
|
-
if (isTopLayer(element)) {
|
|
1177
|
-
return win;
|
|
1178
|
-
}
|
|
1179
|
-
if (!isHTMLElement(element)) {
|
|
1180
|
-
let svgOffsetParent = getParentNode(element);
|
|
1181
|
-
while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {
|
|
1182
|
-
if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {
|
|
1183
|
-
return svgOffsetParent;
|
|
1184
|
-
}
|
|
1185
|
-
svgOffsetParent = getParentNode(svgOffsetParent);
|
|
1186
|
-
}
|
|
1187
|
-
return win;
|
|
1188
|
-
}
|
|
1189
|
-
let offsetParent = getTrueOffsetParent(element, polyfill);
|
|
1190
|
-
while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {
|
|
1191
|
-
offsetParent = getTrueOffsetParent(offsetParent, polyfill);
|
|
1192
|
-
}
|
|
1193
|
-
if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {
|
|
1194
|
-
return win;
|
|
1195
|
-
}
|
|
1196
|
-
return offsetParent || getContainingBlock(element) || win;
|
|
1197
|
-
}
|
|
1198
|
-
const getElementRects = async function(data) {
|
|
1199
|
-
const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
|
|
1200
|
-
const getDimensionsFn = this.getDimensions;
|
|
1201
|
-
const floatingDimensions = await getDimensionsFn(data.floating);
|
|
1202
|
-
return {
|
|
1203
|
-
reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),
|
|
1204
|
-
floating: {
|
|
1205
|
-
x: 0,
|
|
1206
|
-
y: 0,
|
|
1207
|
-
width: floatingDimensions.width,
|
|
1208
|
-
height: floatingDimensions.height
|
|
1209
|
-
}
|
|
1210
|
-
};
|
|
1211
|
-
};
|
|
1212
|
-
function isRTL(element) {
|
|
1213
|
-
return getComputedStyle(element).direction === "rtl";
|
|
1214
|
-
}
|
|
1215
|
-
const platform = {
|
|
1216
|
-
convertOffsetParentRelativeRectToViewportRelativeRect,
|
|
1217
|
-
getDocumentElement,
|
|
1218
|
-
getClippingRect,
|
|
1219
|
-
getOffsetParent,
|
|
1220
|
-
getElementRects,
|
|
1221
|
-
getClientRects,
|
|
1222
|
-
getDimensions,
|
|
1223
|
-
getScale,
|
|
1224
|
-
isElement,
|
|
1225
|
-
isRTL
|
|
1226
|
-
};
|
|
1227
|
-
function rectsAreEqual(a, b) {
|
|
1228
|
-
return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;
|
|
1229
|
-
}
|
|
1230
|
-
function observeMove(element, onMove) {
|
|
1231
|
-
let io = null;
|
|
1232
|
-
let timeoutId;
|
|
1233
|
-
const root = getDocumentElement(element);
|
|
1234
|
-
function cleanup() {
|
|
1235
|
-
var _io;
|
|
1236
|
-
clearTimeout(timeoutId);
|
|
1237
|
-
(_io = io) == null || _io.disconnect();
|
|
1238
|
-
io = null;
|
|
1239
|
-
}
|
|
1240
|
-
function refresh(skip, threshold) {
|
|
1241
|
-
if (skip === void 0) {
|
|
1242
|
-
skip = false;
|
|
1243
|
-
}
|
|
1244
|
-
if (threshold === void 0) {
|
|
1245
|
-
threshold = 1;
|
|
1246
|
-
}
|
|
1247
|
-
cleanup();
|
|
1248
|
-
const elementRectForRootMargin = element.getBoundingClientRect();
|
|
1249
|
-
const {
|
|
1250
|
-
left,
|
|
1251
|
-
top,
|
|
1252
|
-
width,
|
|
1253
|
-
height
|
|
1254
|
-
} = elementRectForRootMargin;
|
|
1255
|
-
if (!skip) {
|
|
1256
|
-
onMove();
|
|
1257
|
-
}
|
|
1258
|
-
if (!width || !height) {
|
|
1259
|
-
return;
|
|
1260
|
-
}
|
|
1261
|
-
const insetTop = floor(top);
|
|
1262
|
-
const insetRight = floor(root.clientWidth - (left + width));
|
|
1263
|
-
const insetBottom = floor(root.clientHeight - (top + height));
|
|
1264
|
-
const insetLeft = floor(left);
|
|
1265
|
-
const rootMargin = -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px";
|
|
1266
|
-
const options = {
|
|
1267
|
-
rootMargin,
|
|
1268
|
-
threshold: max(0, min(1, threshold)) || 1
|
|
1269
|
-
};
|
|
1270
|
-
let isFirstUpdate = true;
|
|
1271
|
-
function handleObserve(entries) {
|
|
1272
|
-
const ratio = entries[0].intersectionRatio;
|
|
1273
|
-
if (ratio !== threshold) {
|
|
1274
|
-
if (!isFirstUpdate) {
|
|
1275
|
-
return refresh();
|
|
1276
|
-
}
|
|
1277
|
-
if (!ratio) {
|
|
1278
|
-
timeoutId = setTimeout(() => {
|
|
1279
|
-
refresh(false, 1e-7);
|
|
1280
|
-
}, 1e3);
|
|
1281
|
-
} else {
|
|
1282
|
-
refresh(false, ratio);
|
|
1283
|
-
}
|
|
1284
|
-
}
|
|
1285
|
-
if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
|
|
1286
|
-
refresh();
|
|
1287
|
-
}
|
|
1288
|
-
isFirstUpdate = false;
|
|
1289
|
-
}
|
|
1290
|
-
try {
|
|
1291
|
-
io = new IntersectionObserver(handleObserve, {
|
|
1292
|
-
...options,
|
|
1293
|
-
// Handle <iframe>s
|
|
1294
|
-
root: root.ownerDocument
|
|
1295
|
-
});
|
|
1296
|
-
} catch (_e) {
|
|
1297
|
-
io = new IntersectionObserver(handleObserve, options);
|
|
1298
|
-
}
|
|
1299
|
-
io.observe(element);
|
|
1300
|
-
}
|
|
1301
|
-
refresh(true);
|
|
1302
|
-
return cleanup;
|
|
1303
|
-
}
|
|
1304
|
-
function autoUpdate(reference, floating, update, options) {
|
|
1305
|
-
if (options === void 0) {
|
|
1306
|
-
options = {};
|
|
1307
|
-
}
|
|
1308
|
-
const {
|
|
1309
|
-
ancestorScroll = true,
|
|
1310
|
-
ancestorResize = true,
|
|
1311
|
-
elementResize = typeof ResizeObserver === "function",
|
|
1312
|
-
layoutShift = typeof IntersectionObserver === "function",
|
|
1313
|
-
animationFrame = false
|
|
1314
|
-
} = options;
|
|
1315
|
-
const referenceEl = unwrapElement(reference);
|
|
1316
|
-
const ancestors = ancestorScroll || ancestorResize ? [...referenceEl ? getOverflowAncestors(referenceEl) : [], ...getOverflowAncestors(floating)] : [];
|
|
1317
|
-
ancestors.forEach((ancestor) => {
|
|
1318
|
-
ancestorScroll && ancestor.addEventListener("scroll", update, {
|
|
1319
|
-
passive: true
|
|
1320
|
-
});
|
|
1321
|
-
ancestorResize && ancestor.addEventListener("resize", update);
|
|
1322
|
-
});
|
|
1323
|
-
const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;
|
|
1324
|
-
let reobserveFrame = -1;
|
|
1325
|
-
let resizeObserver = null;
|
|
1326
|
-
if (elementResize) {
|
|
1327
|
-
resizeObserver = new ResizeObserver((_ref) => {
|
|
1328
|
-
let [firstEntry] = _ref;
|
|
1329
|
-
if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {
|
|
1330
|
-
resizeObserver.unobserve(floating);
|
|
1331
|
-
cancelAnimationFrame(reobserveFrame);
|
|
1332
|
-
reobserveFrame = requestAnimationFrame(() => {
|
|
1333
|
-
var _resizeObserver;
|
|
1334
|
-
(_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);
|
|
1335
|
-
});
|
|
1336
|
-
}
|
|
1337
|
-
update();
|
|
1338
|
-
});
|
|
1339
|
-
if (referenceEl && !animationFrame) {
|
|
1340
|
-
resizeObserver.observe(referenceEl);
|
|
1341
|
-
}
|
|
1342
|
-
resizeObserver.observe(floating);
|
|
1343
|
-
}
|
|
1344
|
-
let frameId;
|
|
1345
|
-
let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
|
|
1346
|
-
if (animationFrame) {
|
|
1347
|
-
frameLoop();
|
|
1348
|
-
}
|
|
1349
|
-
function frameLoop() {
|
|
1350
|
-
const nextRefRect = getBoundingClientRect(reference);
|
|
1351
|
-
if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) {
|
|
1352
|
-
update();
|
|
1353
|
-
}
|
|
1354
|
-
prevRefRect = nextRefRect;
|
|
1355
|
-
frameId = requestAnimationFrame(frameLoop);
|
|
1356
|
-
}
|
|
1357
|
-
update();
|
|
1358
|
-
return () => {
|
|
1359
|
-
var _resizeObserver2;
|
|
1360
|
-
ancestors.forEach((ancestor) => {
|
|
1361
|
-
ancestorScroll && ancestor.removeEventListener("scroll", update);
|
|
1362
|
-
ancestorResize && ancestor.removeEventListener("resize", update);
|
|
1363
|
-
});
|
|
1364
|
-
cleanupIo == null || cleanupIo();
|
|
1365
|
-
(_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();
|
|
1366
|
-
resizeObserver = null;
|
|
1367
|
-
if (animationFrame) {
|
|
1368
|
-
cancelAnimationFrame(frameId);
|
|
1369
|
-
}
|
|
1370
|
-
};
|
|
1371
|
-
}
|
|
1372
|
-
const detectOverflow = detectOverflow$1;
|
|
1373
|
-
const offset = offset$1;
|
|
1374
|
-
const shift = shift$1;
|
|
1375
|
-
const flip = flip$1;
|
|
1376
|
-
const arrow = arrow$1;
|
|
1377
|
-
const computePosition = (reference, floating, options) => {
|
|
1378
|
-
const cache = /* @__PURE__ */ new Map();
|
|
1379
|
-
const mergedOptions = {
|
|
1380
|
-
platform,
|
|
1381
|
-
...options
|
|
1382
|
-
};
|
|
1383
|
-
const platformWithCache = {
|
|
1384
|
-
...mergedOptions.platform,
|
|
1385
|
-
_c: cache
|
|
1386
|
-
};
|
|
1387
|
-
return computePosition$1(reference, floating, {
|
|
1388
|
-
...mergedOptions,
|
|
1389
|
-
platform: platformWithCache
|
|
1390
|
-
});
|
|
1391
|
-
};
|
|
1392
|
-
export {
|
|
1393
|
-
arrow as a,
|
|
1394
|
-
autoUpdate as b,
|
|
1395
|
-
computePosition as c,
|
|
1396
|
-
detectOverflow as d,
|
|
1397
|
-
flip as f,
|
|
1398
|
-
isPlainObject as i,
|
|
1399
|
-
offset as o,
|
|
1400
|
-
shift as s
|
|
1401
|
-
};
|