base6-ui 1.1.1
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/CHANGELOG.md +13 -0
- package/build/plugins.ts +31 -0
- package/build/unPlugin.ts +37 -0
- package/dist/components/AppProvider/index.d.ts +1 -0
- package/dist/components/AppProvider/index.vue.d.ts +17 -0
- package/dist/components/BaseButton/index.d.ts +1 -0
- package/dist/components/BaseButton/index.vue.d.ts +24 -0
- package/dist/components/BaseDataTable/index.d.ts +1 -0
- package/dist/components/BaseDataTable/index.vue.d.ts +22 -0
- package/dist/components/BaseDialog/index.d.ts +2 -0
- package/dist/components/BaseDialog/index.vue.d.ts +56 -0
- package/dist/components/BaseDialog/options.d.ts +2 -0
- package/dist/components/BaseDialog/type.d.ts +29 -0
- package/dist/components/BaseInputNumber/index.d.ts +1 -0
- package/dist/components/BaseInputNumber/index.vue.d.ts +5368 -0
- package/dist/components/BaseLayout/ASide/index.vue.d.ts +20 -0
- package/dist/components/BaseLayout/ASide/type.d.ts +7 -0
- package/dist/components/BaseLayout/index.d.ts +1 -0
- package/dist/components/BaseProgress/index.d.ts +264 -0
- package/dist/components/BaseRadio/index.d.ts +1 -0
- package/dist/components/BaseRadio/index.vue.d.ts +23 -0
- package/dist/components/BaseSelect/index.d.ts +1 -0
- package/dist/components/BaseSelect/index.vue.d.ts +20 -0
- package/dist/components/BaseSlider/index.d.ts +1 -0
- package/dist/components/BaseSlider/index.vue.d.ts +27 -0
- package/dist/components/BaseSwitch/index.d.ts +1 -0
- package/dist/components/BaseSwitch/index.vue.d.ts +23 -0
- package/dist/components/index.d.ts +11 -0
- package/dist/components/types/themes/extendThemes.d.ts +44 -0
- package/dist/config/index.d.ts +1 -0
- package/dist/config/themes/color/dark.d.ts +54 -0
- package/dist/config/themes/color/index.d.ts +2 -0
- package/dist/config/themes/color/light.d.ts +53 -0
- package/dist/config/themes/common.d.ts +41 -0
- package/dist/config/themes/components/alert/common.d.ts +2 -0
- package/dist/config/themes/components/alert/dark.d.ts +2 -0
- package/dist/config/themes/components/alert/light.d.ts +2 -0
- package/dist/config/themes/components/baseComponent/dark.d.ts +8 -0
- package/dist/config/themes/components/baseComponent/light.d.ts +8 -0
- package/dist/config/themes/components/button/common.d.ts +2 -0
- package/dist/config/themes/components/button/dark.d.ts +2 -0
- package/dist/config/themes/components/button/light.d.ts +2 -0
- package/dist/config/themes/components/card/dark.d.ts +2 -0
- package/dist/config/themes/components/card/light.d.ts +2 -0
- package/dist/config/themes/components/charts/dark.d.ts +398 -0
- package/dist/config/themes/components/charts/light.d.ts +396 -0
- package/dist/config/themes/components/checkbox/common.d.ts +2 -0
- package/dist/config/themes/components/checkbox/dark.d.ts +2 -0
- package/dist/config/themes/components/checkbox/light.d.ts +2 -0
- package/dist/config/themes/components/dataTable/dark.d.ts +2 -0
- package/dist/config/themes/components/dataTable/light.d.ts +2 -0
- package/dist/config/themes/components/datePicker/dark.d.ts +2 -0
- package/dist/config/themes/components/datePicker/light.d.ts +2 -0
- package/dist/config/themes/components/dialog/common.d.ts +8 -0
- package/dist/config/themes/components/dialog/dark.d.ts +15 -0
- package/dist/config/themes/components/dialog/light.d.ts +15 -0
- package/dist/config/themes/components/dropdown/dark.d.ts +2 -0
- package/dist/config/themes/components/dropdown/light.d.ts +2 -0
- package/dist/config/themes/components/form/dark.d.ts +2 -0
- package/dist/config/themes/components/form/light.d.ts +2 -0
- package/dist/config/themes/components/input/common.d.ts +2 -0
- package/dist/config/themes/components/input/dark.d.ts +2 -0
- package/dist/config/themes/components/input/light.d.ts +2 -0
- package/dist/config/themes/components/inputNumber/common.d.ts +3 -0
- package/dist/config/themes/components/inputNumber/dark.d.ts +3 -0
- package/dist/config/themes/components/inputNumber/light.d.ts +3 -0
- package/dist/config/themes/components/layout/dark.d.ts +5 -0
- package/dist/config/themes/components/layout/light.d.ts +5 -0
- package/dist/config/themes/components/menu/dark.d.ts +2 -0
- package/dist/config/themes/components/menu/light.d.ts +2 -0
- package/dist/config/themes/components/progress/dark.d.ts +3 -0
- package/dist/config/themes/components/progress/light.d.ts +3 -0
- package/dist/config/themes/components/radio/dark.d.ts +3 -0
- package/dist/config/themes/components/radio/light.d.ts +3 -0
- package/dist/config/themes/components/select/dark.d.ts +2 -0
- package/dist/config/themes/components/select/light.d.ts +2 -0
- package/dist/config/themes/components/slider/dark.d.ts +3 -0
- package/dist/config/themes/components/slider/light.d.ts +3 -0
- package/dist/config/themes/components/switch/common.d.ts +3 -0
- package/dist/config/themes/components/switch/dark.d.ts +3 -0
- package/dist/config/themes/components/switch/light.d.ts +3 -0
- package/dist/config/themes/components/tag/dark.d.ts +2 -0
- package/dist/config/themes/components/tag/light.d.ts +2 -0
- package/dist/config/themes/components/transfer/dark.d.ts +2 -0
- package/dist/config/themes/components/transfer/light.d.ts +2 -0
- package/dist/config/themes/dark.d.ts +2 -0
- package/dist/config/themes/index.d.ts +7 -0
- package/dist/config/themes/light.d.ts +2 -0
- package/dist/config/themes/token/dark.d.ts +28 -0
- package/dist/config/themes/token/index.d.ts +2 -0
- package/dist/config/themes/token/light.d.ts +9 -0
- package/dist/globalMethods/index.d.ts +2 -0
- package/dist/globalMethods/modules/confirmTip.d.ts +2 -0
- package/dist/globalMethods/modules/message.d.ts +4 -0
- package/dist/hooks/useNaiveConfigProvideContext.d.ts +2 -0
- package/dist/index.d.ts +3 -0
- package/dist/types/themes/extendThemes.d.ts +44 -0
- package/es/_virtual/_plugin-vue_export-helper.mjs +9 -0
- package/es/_virtual/virtual_svg-icons-register.mjs +7 -0
- package/es/components/AppProvider/index.d.ts +1 -0
- package/es/components/AppProvider/index.vue.d.ts +17 -0
- package/es/components/AppProvider/index.vue.mjs +45 -0
- package/es/components/AppProvider/index.vue2.mjs +4 -0
- package/es/components/BaseButton/index.d.ts +1 -0
- package/es/components/BaseButton/index.vue.d.ts +24 -0
- package/es/components/BaseButton/index.vue.mjs +36 -0
- package/es/components/BaseButton/index.vue2.mjs +4 -0
- package/es/components/BaseDataTable/index.d.ts +1 -0
- package/es/components/BaseDataTable/index.vue.d.ts +22 -0
- package/es/components/BaseDataTable/index.vue.mjs +7 -0
- package/es/components/BaseDataTable/index.vue2.mjs +70 -0
- package/es/components/BaseDialog/index.d.ts +2 -0
- package/es/components/BaseDialog/index.vue.d.ts +56 -0
- package/es/components/BaseDialog/index.vue.mjs +141 -0
- package/es/components/BaseDialog/index.vue2.mjs +4 -0
- package/es/components/BaseDialog/options.d.ts +2 -0
- package/es/components/BaseDialog/options.mjs +27 -0
- package/es/components/BaseDialog/type.d.ts +29 -0
- package/es/components/BaseInputNumber/index.d.ts +1 -0
- package/es/components/BaseInputNumber/index.vue.d.ts +5368 -0
- package/es/components/BaseInputNumber/index.vue.mjs +7 -0
- package/es/components/BaseInputNumber/index.vue2.mjs +155 -0
- package/es/components/BaseLayout/ASide/index.vue.d.ts +20 -0
- package/es/components/BaseLayout/ASide/index.vue.mjs +7 -0
- package/es/components/BaseLayout/ASide/index.vue2.mjs +56 -0
- package/es/components/BaseLayout/ASide/type.d.ts +7 -0
- package/es/components/BaseLayout/index.d.ts +1 -0
- package/es/components/BaseProgress/index.d.ts +264 -0
- package/es/components/BaseProgress/index.mjs +81 -0
- package/es/components/BaseRadio/index.d.ts +1 -0
- package/es/components/BaseRadio/index.vue.d.ts +23 -0
- package/es/components/BaseRadio/index.vue.mjs +7 -0
- package/es/components/BaseRadio/index.vue2.mjs +42 -0
- package/es/components/BaseSelect/index.d.ts +1 -0
- package/es/components/BaseSelect/index.vue.d.ts +20 -0
- package/es/components/BaseSelect/index.vue.mjs +56 -0
- package/es/components/BaseSelect/index.vue2.mjs +4 -0
- package/es/components/BaseSlider/index.d.ts +1 -0
- package/es/components/BaseSlider/index.vue.d.ts +27 -0
- package/es/components/BaseSlider/index.vue.mjs +7 -0
- package/es/components/BaseSlider/index.vue2.mjs +107 -0
- package/es/components/BaseSwitch/index.d.ts +1 -0
- package/es/components/BaseSwitch/index.vue.d.ts +23 -0
- package/es/components/BaseSwitch/index.vue.mjs +7 -0
- package/es/components/BaseSwitch/index.vue2.mjs +44 -0
- package/es/components/index.d.ts +11 -0
- package/es/components/types/themes/extendThemes.d.ts +44 -0
- package/es/config/index.d.ts +1 -0
- package/es/config/themes/color/dark.d.ts +54 -0
- package/es/config/themes/color/dark.mjs +61 -0
- package/es/config/themes/color/index.d.ts +2 -0
- package/es/config/themes/color/light.d.ts +53 -0
- package/es/config/themes/color/light.mjs +60 -0
- package/es/config/themes/common.d.ts +41 -0
- package/es/config/themes/common.mjs +39 -0
- package/es/config/themes/components/alert/common.d.ts +2 -0
- package/es/config/themes/components/alert/common.mjs +10 -0
- package/es/config/themes/components/alert/dark.d.ts +2 -0
- package/es/config/themes/components/alert/dark.mjs +21 -0
- package/es/config/themes/components/alert/light.d.ts +2 -0
- package/es/config/themes/components/alert/light.mjs +17 -0
- package/es/config/themes/components/baseComponent/dark.d.ts +8 -0
- package/es/config/themes/components/baseComponent/dark.mjs +249 -0
- package/es/config/themes/components/baseComponent/light.d.ts +8 -0
- package/es/config/themes/components/baseComponent/light.mjs +350 -0
- package/es/config/themes/components/button/common.d.ts +2 -0
- package/es/config/themes/components/button/common.mjs +17 -0
- package/es/config/themes/components/button/dark.d.ts +2 -0
- package/es/config/themes/components/button/dark.mjs +109 -0
- package/es/config/themes/components/button/light.d.ts +2 -0
- package/es/config/themes/components/button/light.mjs +88 -0
- package/es/config/themes/components/card/dark.d.ts +2 -0
- package/es/config/themes/components/card/dark.mjs +14 -0
- package/es/config/themes/components/card/light.d.ts +2 -0
- package/es/config/themes/components/card/light.mjs +14 -0
- package/es/config/themes/components/charts/dark.d.ts +398 -0
- package/es/config/themes/components/charts/dark.mjs +428 -0
- package/es/config/themes/components/charts/light.d.ts +396 -0
- package/es/config/themes/components/charts/light.mjs +426 -0
- package/es/config/themes/components/checkbox/common.d.ts +2 -0
- package/es/config/themes/components/checkbox/common.mjs +7 -0
- package/es/config/themes/components/checkbox/dark.d.ts +2 -0
- package/es/config/themes/components/checkbox/dark.mjs +21 -0
- package/es/config/themes/components/checkbox/light.d.ts +2 -0
- package/es/config/themes/components/checkbox/light.mjs +20 -0
- package/es/config/themes/components/dataTable/dark.d.ts +2 -0
- package/es/config/themes/components/dataTable/dark.mjs +14 -0
- package/es/config/themes/components/dataTable/light.d.ts +2 -0
- package/es/config/themes/components/dataTable/light.mjs +14 -0
- package/es/config/themes/components/datePicker/dark.d.ts +2 -0
- package/es/config/themes/components/datePicker/dark.mjs +11 -0
- package/es/config/themes/components/datePicker/light.d.ts +2 -0
- package/es/config/themes/components/datePicker/light.mjs +11 -0
- package/es/config/themes/components/dialog/common.d.ts +8 -0
- package/es/config/themes/components/dialog/common.mjs +11 -0
- package/es/config/themes/components/dialog/dark.d.ts +15 -0
- package/es/config/themes/components/dialog/dark.mjs +16 -0
- package/es/config/themes/components/dialog/light.d.ts +15 -0
- package/es/config/themes/components/dialog/light.mjs +15 -0
- package/es/config/themes/components/dropdown/dark.d.ts +2 -0
- package/es/config/themes/components/dropdown/dark.mjs +8 -0
- package/es/config/themes/components/dropdown/light.d.ts +2 -0
- package/es/config/themes/components/dropdown/light.mjs +8 -0
- package/es/config/themes/components/form/dark.d.ts +2 -0
- package/es/config/themes/components/form/dark.mjs +8 -0
- package/es/config/themes/components/form/light.d.ts +2 -0
- package/es/config/themes/components/form/light.mjs +8 -0
- package/es/config/themes/components/input/common.d.ts +2 -0
- package/es/config/themes/components/input/common.mjs +11 -0
- package/es/config/themes/components/input/dark.d.ts +2 -0
- package/es/config/themes/components/input/dark.mjs +22 -0
- package/es/config/themes/components/input/light.d.ts +2 -0
- package/es/config/themes/components/input/light.mjs +21 -0
- package/es/config/themes/components/inputNumber/common.d.ts +3 -0
- package/es/config/themes/components/inputNumber/common.mjs +14 -0
- package/es/config/themes/components/inputNumber/dark.d.ts +3 -0
- package/es/config/themes/components/inputNumber/dark.mjs +21 -0
- package/es/config/themes/components/inputNumber/light.d.ts +3 -0
- package/es/config/themes/components/inputNumber/light.mjs +17 -0
- package/es/config/themes/components/layout/dark.d.ts +5 -0
- package/es/config/themes/components/layout/dark.mjs +10 -0
- package/es/config/themes/components/layout/light.d.ts +5 -0
- package/es/config/themes/components/layout/light.mjs +11 -0
- package/es/config/themes/components/menu/dark.d.ts +2 -0
- package/es/config/themes/components/menu/dark.mjs +17 -0
- package/es/config/themes/components/menu/light.d.ts +2 -0
- package/es/config/themes/components/menu/light.mjs +16 -0
- package/es/config/themes/components/progress/dark.d.ts +3 -0
- package/es/config/themes/components/progress/dark.mjs +21 -0
- package/es/config/themes/components/progress/light.d.ts +3 -0
- package/es/config/themes/components/progress/light.mjs +20 -0
- package/es/config/themes/components/radio/dark.d.ts +3 -0
- package/es/config/themes/components/radio/dark.mjs +20 -0
- package/es/config/themes/components/radio/light.d.ts +3 -0
- package/es/config/themes/components/radio/light.mjs +18 -0
- package/es/config/themes/components/select/dark.d.ts +2 -0
- package/es/config/themes/components/select/dark.mjs +40 -0
- package/es/config/themes/components/select/light.d.ts +2 -0
- package/es/config/themes/components/select/light.mjs +36 -0
- package/es/config/themes/components/slider/dark.d.ts +3 -0
- package/es/config/themes/components/slider/dark.mjs +15 -0
- package/es/config/themes/components/slider/light.d.ts +3 -0
- package/es/config/themes/components/slider/light.mjs +15 -0
- package/es/config/themes/components/switch/common.d.ts +3 -0
- package/es/config/themes/components/switch/common.mjs +14 -0
- package/es/config/themes/components/switch/dark.d.ts +3 -0
- package/es/config/themes/components/switch/dark.mjs +15 -0
- package/es/config/themes/components/switch/light.d.ts +3 -0
- package/es/config/themes/components/switch/light.mjs +15 -0
- package/es/config/themes/components/tag/dark.d.ts +2 -0
- package/es/config/themes/components/tag/dark.mjs +34 -0
- package/es/config/themes/components/tag/light.d.ts +2 -0
- package/es/config/themes/components/tag/light.mjs +33 -0
- package/es/config/themes/components/transfer/dark.d.ts +2 -0
- package/es/config/themes/components/transfer/dark.mjs +9 -0
- package/es/config/themes/components/transfer/light.d.ts +2 -0
- package/es/config/themes/components/transfer/light.mjs +9 -0
- package/es/config/themes/dark.d.ts +2 -0
- package/es/config/themes/dark.mjs +53 -0
- package/es/config/themes/index.d.ts +7 -0
- package/es/config/themes/index.mjs +50 -0
- package/es/config/themes/light.d.ts +2 -0
- package/es/config/themes/light.mjs +53 -0
- package/es/config/themes/token/dark.d.ts +28 -0
- package/es/config/themes/token/dark.mjs +31 -0
- package/es/config/themes/token/index.d.ts +2 -0
- package/es/config/themes/token/light.d.ts +9 -0
- package/es/config/themes/token/light.mjs +11 -0
- package/es/globalMethods/index.d.ts +2 -0
- package/es/globalMethods/index.mjs +8 -0
- package/es/globalMethods/modules/confirmTip.d.ts +2 -0
- package/es/globalMethods/modules/confirmTip.mjs +45 -0
- package/es/globalMethods/modules/message.d.ts +4 -0
- package/es/globalMethods/modules/message.mjs +15 -0
- package/es/hooks/useNaiveConfigProvideContext.d.ts +2 -0
- package/es/hooks/useNaiveConfigProvideContext.mjs +8 -0
- package/es/index.css +1 -0
- package/es/index.d.ts +3 -0
- package/es/index.mjs +47 -0
- package/es/node_modules/.pnpm/lib-materials@0.0.8_typescript@5.7.2/node_modules/lib-materials/dist/lib-materials.mjs +750 -0
- package/es/types/themes/extendThemes.d.ts +44 -0
- package/eslint.config.js +114 -0
- package/lib/_virtual/_plugin-vue_export-helper.js +1 -0
- package/lib/_virtual/virtual_svg-icons-register.js +1 -0
- package/lib/components/AppProvider/index.d.ts +1 -0
- package/lib/components/AppProvider/index.vue.d.ts +17 -0
- package/lib/components/AppProvider/index.vue.js +1 -0
- package/lib/components/AppProvider/index.vue2.js +1 -0
- package/lib/components/BaseButton/index.d.ts +1 -0
- package/lib/components/BaseButton/index.vue.d.ts +24 -0
- package/lib/components/BaseButton/index.vue.js +1 -0
- package/lib/components/BaseButton/index.vue2.js +1 -0
- package/lib/components/BaseDataTable/index.d.ts +1 -0
- package/lib/components/BaseDataTable/index.vue.d.ts +22 -0
- package/lib/components/BaseDataTable/index.vue.js +1 -0
- package/lib/components/BaseDataTable/index.vue2.js +1 -0
- package/lib/components/BaseDialog/index.d.ts +2 -0
- package/lib/components/BaseDialog/index.vue.d.ts +56 -0
- package/lib/components/BaseDialog/index.vue.js +1 -0
- package/lib/components/BaseDialog/index.vue2.js +1 -0
- package/lib/components/BaseDialog/options.d.ts +2 -0
- package/lib/components/BaseDialog/options.js +1 -0
- package/lib/components/BaseDialog/type.d.ts +29 -0
- package/lib/components/BaseInputNumber/index.d.ts +1 -0
- package/lib/components/BaseInputNumber/index.vue.d.ts +5368 -0
- package/lib/components/BaseInputNumber/index.vue.js +1 -0
- package/lib/components/BaseInputNumber/index.vue2.js +1 -0
- package/lib/components/BaseLayout/ASide/index.vue.d.ts +20 -0
- package/lib/components/BaseLayout/ASide/index.vue.js +1 -0
- package/lib/components/BaseLayout/ASide/index.vue2.js +1 -0
- package/lib/components/BaseLayout/ASide/type.d.ts +7 -0
- package/lib/components/BaseLayout/index.d.ts +1 -0
- package/lib/components/BaseProgress/index.d.ts +264 -0
- package/lib/components/BaseProgress/index.js +1 -0
- package/lib/components/BaseRadio/index.d.ts +1 -0
- package/lib/components/BaseRadio/index.vue.d.ts +23 -0
- package/lib/components/BaseRadio/index.vue.js +1 -0
- package/lib/components/BaseRadio/index.vue2.js +1 -0
- package/lib/components/BaseSelect/index.d.ts +1 -0
- package/lib/components/BaseSelect/index.vue.d.ts +20 -0
- package/lib/components/BaseSelect/index.vue.js +1 -0
- package/lib/components/BaseSelect/index.vue2.js +1 -0
- package/lib/components/BaseSlider/index.d.ts +1 -0
- package/lib/components/BaseSlider/index.vue.d.ts +27 -0
- package/lib/components/BaseSlider/index.vue.js +1 -0
- package/lib/components/BaseSlider/index.vue2.js +1 -0
- package/lib/components/BaseSwitch/index.d.ts +1 -0
- package/lib/components/BaseSwitch/index.vue.d.ts +23 -0
- package/lib/components/BaseSwitch/index.vue.js +1 -0
- package/lib/components/BaseSwitch/index.vue2.js +1 -0
- package/lib/components/index.d.ts +11 -0
- package/lib/components/types/themes/extendThemes.d.ts +44 -0
- package/lib/config/index.d.ts +1 -0
- package/lib/config/themes/color/dark.d.ts +54 -0
- package/lib/config/themes/color/dark.js +1 -0
- package/lib/config/themes/color/index.d.ts +2 -0
- package/lib/config/themes/color/light.d.ts +53 -0
- package/lib/config/themes/color/light.js +1 -0
- package/lib/config/themes/common.d.ts +41 -0
- package/lib/config/themes/common.js +1 -0
- package/lib/config/themes/components/alert/common.d.ts +2 -0
- package/lib/config/themes/components/alert/common.js +1 -0
- package/lib/config/themes/components/alert/dark.d.ts +2 -0
- package/lib/config/themes/components/alert/dark.js +1 -0
- package/lib/config/themes/components/alert/light.d.ts +2 -0
- package/lib/config/themes/components/alert/light.js +1 -0
- package/lib/config/themes/components/baseComponent/dark.d.ts +8 -0
- package/lib/config/themes/components/baseComponent/dark.js +1 -0
- package/lib/config/themes/components/baseComponent/light.d.ts +8 -0
- package/lib/config/themes/components/baseComponent/light.js +1 -0
- package/lib/config/themes/components/button/common.d.ts +2 -0
- package/lib/config/themes/components/button/common.js +1 -0
- package/lib/config/themes/components/button/dark.d.ts +2 -0
- package/lib/config/themes/components/button/dark.js +1 -0
- package/lib/config/themes/components/button/light.d.ts +2 -0
- package/lib/config/themes/components/button/light.js +1 -0
- package/lib/config/themes/components/card/dark.d.ts +2 -0
- package/lib/config/themes/components/card/dark.js +1 -0
- package/lib/config/themes/components/card/light.d.ts +2 -0
- package/lib/config/themes/components/card/light.js +1 -0
- package/lib/config/themes/components/charts/dark.d.ts +398 -0
- package/lib/config/themes/components/charts/dark.js +1 -0
- package/lib/config/themes/components/charts/light.d.ts +396 -0
- package/lib/config/themes/components/charts/light.js +1 -0
- package/lib/config/themes/components/checkbox/common.d.ts +2 -0
- package/lib/config/themes/components/checkbox/common.js +1 -0
- package/lib/config/themes/components/checkbox/dark.d.ts +2 -0
- package/lib/config/themes/components/checkbox/dark.js +1 -0
- package/lib/config/themes/components/checkbox/light.d.ts +2 -0
- package/lib/config/themes/components/checkbox/light.js +1 -0
- package/lib/config/themes/components/dataTable/dark.d.ts +2 -0
- package/lib/config/themes/components/dataTable/dark.js +1 -0
- package/lib/config/themes/components/dataTable/light.d.ts +2 -0
- package/lib/config/themes/components/dataTable/light.js +1 -0
- package/lib/config/themes/components/datePicker/dark.d.ts +2 -0
- package/lib/config/themes/components/datePicker/dark.js +1 -0
- package/lib/config/themes/components/datePicker/light.d.ts +2 -0
- package/lib/config/themes/components/datePicker/light.js +1 -0
- package/lib/config/themes/components/dialog/common.d.ts +8 -0
- package/lib/config/themes/components/dialog/common.js +1 -0
- package/lib/config/themes/components/dialog/dark.d.ts +15 -0
- package/lib/config/themes/components/dialog/dark.js +1 -0
- package/lib/config/themes/components/dialog/light.d.ts +15 -0
- package/lib/config/themes/components/dialog/light.js +1 -0
- package/lib/config/themes/components/dropdown/dark.d.ts +2 -0
- package/lib/config/themes/components/dropdown/dark.js +1 -0
- package/lib/config/themes/components/dropdown/light.d.ts +2 -0
- package/lib/config/themes/components/dropdown/light.js +1 -0
- package/lib/config/themes/components/form/dark.d.ts +2 -0
- package/lib/config/themes/components/form/dark.js +1 -0
- package/lib/config/themes/components/form/light.d.ts +2 -0
- package/lib/config/themes/components/form/light.js +1 -0
- package/lib/config/themes/components/input/common.d.ts +2 -0
- package/lib/config/themes/components/input/common.js +1 -0
- package/lib/config/themes/components/input/dark.d.ts +2 -0
- package/lib/config/themes/components/input/dark.js +1 -0
- package/lib/config/themes/components/input/light.d.ts +2 -0
- package/lib/config/themes/components/input/light.js +1 -0
- package/lib/config/themes/components/inputNumber/common.d.ts +3 -0
- package/lib/config/themes/components/inputNumber/common.js +1 -0
- package/lib/config/themes/components/inputNumber/dark.d.ts +3 -0
- package/lib/config/themes/components/inputNumber/dark.js +1 -0
- package/lib/config/themes/components/inputNumber/light.d.ts +3 -0
- package/lib/config/themes/components/inputNumber/light.js +1 -0
- package/lib/config/themes/components/layout/dark.d.ts +5 -0
- package/lib/config/themes/components/layout/dark.js +1 -0
- package/lib/config/themes/components/layout/light.d.ts +5 -0
- package/lib/config/themes/components/layout/light.js +1 -0
- package/lib/config/themes/components/menu/dark.d.ts +2 -0
- package/lib/config/themes/components/menu/dark.js +1 -0
- package/lib/config/themes/components/menu/light.d.ts +2 -0
- package/lib/config/themes/components/menu/light.js +1 -0
- package/lib/config/themes/components/progress/dark.d.ts +3 -0
- package/lib/config/themes/components/progress/dark.js +1 -0
- package/lib/config/themes/components/progress/light.d.ts +3 -0
- package/lib/config/themes/components/progress/light.js +1 -0
- package/lib/config/themes/components/radio/dark.d.ts +3 -0
- package/lib/config/themes/components/radio/dark.js +1 -0
- package/lib/config/themes/components/radio/light.d.ts +3 -0
- package/lib/config/themes/components/radio/light.js +1 -0
- package/lib/config/themes/components/select/dark.d.ts +2 -0
- package/lib/config/themes/components/select/dark.js +1 -0
- package/lib/config/themes/components/select/light.d.ts +2 -0
- package/lib/config/themes/components/select/light.js +1 -0
- package/lib/config/themes/components/slider/dark.d.ts +3 -0
- package/lib/config/themes/components/slider/dark.js +1 -0
- package/lib/config/themes/components/slider/light.d.ts +3 -0
- package/lib/config/themes/components/slider/light.js +1 -0
- package/lib/config/themes/components/switch/common.d.ts +3 -0
- package/lib/config/themes/components/switch/common.js +1 -0
- package/lib/config/themes/components/switch/dark.d.ts +3 -0
- package/lib/config/themes/components/switch/dark.js +1 -0
- package/lib/config/themes/components/switch/light.d.ts +3 -0
- package/lib/config/themes/components/switch/light.js +1 -0
- package/lib/config/themes/components/tag/dark.d.ts +2 -0
- package/lib/config/themes/components/tag/dark.js +1 -0
- package/lib/config/themes/components/tag/light.d.ts +2 -0
- package/lib/config/themes/components/tag/light.js +1 -0
- package/lib/config/themes/components/transfer/dark.d.ts +2 -0
- package/lib/config/themes/components/transfer/dark.js +1 -0
- package/lib/config/themes/components/transfer/light.d.ts +2 -0
- package/lib/config/themes/components/transfer/light.js +1 -0
- package/lib/config/themes/dark.d.ts +2 -0
- package/lib/config/themes/dark.js +1 -0
- package/lib/config/themes/index.d.ts +7 -0
- package/lib/config/themes/index.js +1 -0
- package/lib/config/themes/light.d.ts +2 -0
- package/lib/config/themes/light.js +1 -0
- package/lib/config/themes/token/dark.d.ts +28 -0
- package/lib/config/themes/token/dark.js +1 -0
- package/lib/config/themes/token/index.d.ts +2 -0
- package/lib/config/themes/token/light.d.ts +9 -0
- package/lib/config/themes/token/light.js +1 -0
- package/lib/globalMethods/index.d.ts +2 -0
- package/lib/globalMethods/index.js +1 -0
- package/lib/globalMethods/modules/confirmTip.d.ts +2 -0
- package/lib/globalMethods/modules/confirmTip.js +1 -0
- package/lib/globalMethods/modules/message.d.ts +4 -0
- package/lib/globalMethods/modules/message.js +1 -0
- package/lib/hooks/useNaiveConfigProvideContext.d.ts +2 -0
- package/lib/hooks/useNaiveConfigProvideContext.js +1 -0
- package/lib/index.css +1 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +1 -0
- package/lib/node_modules/.pnpm/lib-materials@0.0.8_typescript@5.7.2/node_modules/lib-materials/dist/lib-materials.js +1 -0
- package/lib/types/themes/extendThemes.d.ts +44 -0
- package/package.json +43 -0
- package/readme.md +83 -0
- package/src/components/AppProvider/index.ts +1 -0
- package/src/components/AppProvider/index.vue +38 -0
- package/src/components/BaseButton/index.ts +1 -0
- package/src/components/BaseButton/index.vue +21 -0
- package/src/components/BaseDataTable/index.ts +1 -0
- package/src/components/BaseDataTable/index.vue +120 -0
- package/src/components/BaseDialog/index.ts +2 -0
- package/src/components/BaseDialog/index.vue +104 -0
- package/src/components/BaseDialog/options.ts +25 -0
- package/src/components/BaseDialog/type.ts +30 -0
- package/src/components/BaseInputNumber/index.ts +1 -0
- package/src/components/BaseInputNumber/index.vue +188 -0
- package/src/components/BaseLayout/ASide/index.vue +104 -0
- package/src/components/BaseLayout/ASide/type.ts +11 -0
- package/src/components/BaseLayout/index.ts +1 -0
- package/src/components/BaseProgress/index.ts +99 -0
- package/src/components/BaseRadio/index.ts +1 -0
- package/src/components/BaseRadio/index.vue +45 -0
- package/src/components/BaseSelect/index.ts +1 -0
- package/src/components/BaseSelect/index.vue +59 -0
- package/src/components/BaseSlider/index.ts +1 -0
- package/src/components/BaseSlider/index.vue +114 -0
- package/src/components/BaseSwitch/index.ts +1 -0
- package/src/components/BaseSwitch/index.vue +69 -0
- package/src/components/index.ts +11 -0
- package/src/components/types/themes/extendThemes.ts +50 -0
- package/src/config/index.ts +1 -0
- package/src/config/themes/color/dark.ts +60 -0
- package/src/config/themes/color/index.ts +2 -0
- package/src/config/themes/color/light.ts +59 -0
- package/src/config/themes/common.ts +50 -0
- package/src/config/themes/components/alert/common.ts +13 -0
- package/src/config/themes/components/alert/dark.ts +23 -0
- package/src/config/themes/components/alert/light.ts +18 -0
- package/src/config/themes/components/baseComponent/dark.ts +189 -0
- package/src/config/themes/components/baseComponent/light.ts +297 -0
- package/src/config/themes/components/button/common.ts +20 -0
- package/src/config/themes/components/button/dark.ts +127 -0
- package/src/config/themes/components/button/light.ts +102 -0
- package/src/config/themes/components/card/dark.ts +13 -0
- package/src/config/themes/components/card/light.ts +13 -0
- package/src/config/themes/components/charts/dark.ts +425 -0
- package/src/config/themes/components/charts/light.ts +424 -0
- package/src/config/themes/components/checkbox/common.ts +7 -0
- package/src/config/themes/components/checkbox/dark.ts +23 -0
- package/src/config/themes/components/checkbox/light.ts +22 -0
- package/src/config/themes/components/dataTable/dark.ts +14 -0
- package/src/config/themes/components/dataTable/light.ts +14 -0
- package/src/config/themes/components/datePicker/dark.ts +10 -0
- package/src/config/themes/components/datePicker/light.ts +10 -0
- package/src/config/themes/components/dialog/common.ts +8 -0
- package/src/config/themes/components/dialog/dark.ts +14 -0
- package/src/config/themes/components/dialog/light.ts +13 -0
- package/src/config/themes/components/dropdown/dark.ts +7 -0
- package/src/config/themes/components/dropdown/light.ts +7 -0
- package/src/config/themes/components/form/dark.ts +7 -0
- package/src/config/themes/components/form/light.ts +7 -0
- package/src/config/themes/components/input/common.ts +13 -0
- package/src/config/themes/components/input/dark.ts +25 -0
- package/src/config/themes/components/input/light.ts +24 -0
- package/src/config/themes/components/inputNumber/common.ts +14 -0
- package/src/config/themes/components/inputNumber/dark.ts +24 -0
- package/src/config/themes/components/inputNumber/light.ts +20 -0
- package/src/config/themes/components/layout/dark.ts +8 -0
- package/src/config/themes/components/layout/light.ts +9 -0
- package/src/config/themes/components/menu/dark.ts +18 -0
- package/src/config/themes/components/menu/light.ts +17 -0
- package/src/config/themes/components/progress/dark.ts +25 -0
- package/src/config/themes/components/progress/light.ts +25 -0
- package/src/config/themes/components/radio/dark.ts +20 -0
- package/src/config/themes/components/radio/light.ts +21 -0
- package/src/config/themes/components/select/dark.ts +42 -0
- package/src/config/themes/components/select/light.ts +38 -0
- package/src/config/themes/components/slider/dark.ts +16 -0
- package/src/config/themes/components/slider/light.ts +16 -0
- package/src/config/themes/components/switch/common.ts +17 -0
- package/src/config/themes/components/switch/dark.ts +17 -0
- package/src/config/themes/components/switch/light.ts +17 -0
- package/src/config/themes/components/tag/dark.ts +40 -0
- package/src/config/themes/components/tag/light.ts +39 -0
- package/src/config/themes/components/transfer/dark.ts +8 -0
- package/src/config/themes/components/transfer/light.ts +8 -0
- package/src/config/themes/dark.ts +61 -0
- package/src/config/themes/index.ts +12 -0
- package/src/config/themes/light.ts +61 -0
- package/src/config/themes/token/dark.ts +32 -0
- package/src/config/themes/token/index.ts +2 -0
- package/src/config/themes/token/light.ts +11 -0
- package/src/globalMethods/index.ts +8 -0
- package/src/globalMethods/modules/confirmTip.ts +49 -0
- package/src/globalMethods/modules/message.ts +20 -0
- package/src/hooks/useNaiveConfigProvideContext.ts +10 -0
- package/src/index.ts +8 -0
- package/src/style/index.scss +63 -0
- package/src/svg-icons/add.svg +1 -0
- package/src/svg-icons/arrow/down.svg +1 -0
- package/src/svg-icons/arrow/top.svg +1 -0
- package/src/svg-icons/logo.svg +4 -0
- package/src/svg-icons/operate/add.svg +1 -0
- package/src/svg-icons/operate/close.svg +1 -0
- package/src/svg-icons/operate/minus.svg +1 -0
- package/src/svg-icons/progress-default.svg +3 -0
- package/src/types/themes/extendThemes.ts +50 -0
- package/tsconfig.json +38 -0
- package/typing/components.d.ts +38 -0
- package/typing/global.d.ts +19 -0
- package/vite.config.ts +61 -0
|
@@ -0,0 +1,750 @@
|
|
|
1
|
+
import { defineComponent as Oe, h as De, computed as oe, createElementBlock as He, openBlock as je, normalizeStyle as Pe, normalizeClass as Ie, createElementVNode as Xe } from "vue";
|
|
2
|
+
const _e = ["xlink:href", "fill"], Ye = /* @__PURE__ */ Oe({
|
|
3
|
+
name: "SvgIcon",
|
|
4
|
+
__name: "index",
|
|
5
|
+
props: {
|
|
6
|
+
icon: {},
|
|
7
|
+
size: { default: "1em" },
|
|
8
|
+
color: { default: "currentColor" },
|
|
9
|
+
className: { default: "" }
|
|
10
|
+
},
|
|
11
|
+
setup(s) {
|
|
12
|
+
const t = s, i = oe(() => `#icon-${t.icon}`), e = oe(() => t.className ? `svg-icon ${t.className}` : "svg-icon");
|
|
13
|
+
return (r, l) => (je(), He("svg", {
|
|
14
|
+
class: Ie(e.value),
|
|
15
|
+
style: Pe({ width: r.size, height: r.size, color: r.color }),
|
|
16
|
+
"aria-hidden": "true"
|
|
17
|
+
}, [
|
|
18
|
+
Xe("use", {
|
|
19
|
+
"xlink:href": i.value,
|
|
20
|
+
fill: r.color
|
|
21
|
+
}, null, 8, _e)
|
|
22
|
+
], 6));
|
|
23
|
+
}
|
|
24
|
+
}), qe = (s, t) => {
|
|
25
|
+
const i = s.__vccOpts || s;
|
|
26
|
+
for (const [e, r] of t)
|
|
27
|
+
i[e] = r;
|
|
28
|
+
return i;
|
|
29
|
+
}, ht = /* @__PURE__ */ qe(Ye, [["__scopeId", "data-v-8261a8a1"]]);
|
|
30
|
+
var B = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
31
|
+
function ke(s) {
|
|
32
|
+
return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
|
|
33
|
+
}
|
|
34
|
+
var j, ne;
|
|
35
|
+
function ie() {
|
|
36
|
+
if (ne) return j;
|
|
37
|
+
ne = 1;
|
|
38
|
+
function s(t) {
|
|
39
|
+
var i = typeof t;
|
|
40
|
+
return t != null && (i == "object" || i == "function");
|
|
41
|
+
}
|
|
42
|
+
return j = s, j;
|
|
43
|
+
}
|
|
44
|
+
var P, ae;
|
|
45
|
+
function Fe() {
|
|
46
|
+
if (ae) return P;
|
|
47
|
+
ae = 1;
|
|
48
|
+
var s = typeof B == "object" && B && B.Object === Object && B;
|
|
49
|
+
return P = s, P;
|
|
50
|
+
}
|
|
51
|
+
var I, ce;
|
|
52
|
+
function Ae() {
|
|
53
|
+
if (ce) return I;
|
|
54
|
+
ce = 1;
|
|
55
|
+
var s = Fe(), t = typeof self == "object" && self && self.Object === Object && self, i = s || t || Function("return this")();
|
|
56
|
+
return I = i, I;
|
|
57
|
+
}
|
|
58
|
+
var X, ue;
|
|
59
|
+
function $e() {
|
|
60
|
+
if (ue) return X;
|
|
61
|
+
ue = 1;
|
|
62
|
+
var s = Ae(), t = function() {
|
|
63
|
+
return s.Date.now();
|
|
64
|
+
};
|
|
65
|
+
return X = t, X;
|
|
66
|
+
}
|
|
67
|
+
var _, he;
|
|
68
|
+
function Ue() {
|
|
69
|
+
if (he) return _;
|
|
70
|
+
he = 1;
|
|
71
|
+
var s = /\s/;
|
|
72
|
+
function t(i) {
|
|
73
|
+
for (var e = i.length; e-- && s.test(i.charAt(e)); )
|
|
74
|
+
;
|
|
75
|
+
return e;
|
|
76
|
+
}
|
|
77
|
+
return _ = t, _;
|
|
78
|
+
}
|
|
79
|
+
var Y, fe;
|
|
80
|
+
function Ze() {
|
|
81
|
+
if (fe) return Y;
|
|
82
|
+
fe = 1;
|
|
83
|
+
var s = Ue(), t = /^\s+/;
|
|
84
|
+
function i(e) {
|
|
85
|
+
return e && e.slice(0, s(e) + 1).replace(t, "");
|
|
86
|
+
}
|
|
87
|
+
return Y = i, Y;
|
|
88
|
+
}
|
|
89
|
+
var q, de;
|
|
90
|
+
function ze() {
|
|
91
|
+
if (de) return q;
|
|
92
|
+
de = 1;
|
|
93
|
+
var s = Ae(), t = s.Symbol;
|
|
94
|
+
return q = t, q;
|
|
95
|
+
}
|
|
96
|
+
var F, ve;
|
|
97
|
+
function Ge() {
|
|
98
|
+
if (ve) return F;
|
|
99
|
+
ve = 1;
|
|
100
|
+
var s = ze(), t = Object.prototype, i = t.hasOwnProperty, e = t.toString, r = s ? s.toStringTag : void 0;
|
|
101
|
+
function l(n) {
|
|
102
|
+
var o = i.call(n, r), c = n[r];
|
|
103
|
+
try {
|
|
104
|
+
n[r] = void 0;
|
|
105
|
+
var a = !0;
|
|
106
|
+
} catch {
|
|
107
|
+
}
|
|
108
|
+
var u = e.call(n);
|
|
109
|
+
return a && (o ? n[r] = c : delete n[r]), u;
|
|
110
|
+
}
|
|
111
|
+
return F = l, F;
|
|
112
|
+
}
|
|
113
|
+
var $, pe;
|
|
114
|
+
function Qe() {
|
|
115
|
+
if (pe) return $;
|
|
116
|
+
pe = 1;
|
|
117
|
+
var s = Object.prototype, t = s.toString;
|
|
118
|
+
function i(e) {
|
|
119
|
+
return t.call(e);
|
|
120
|
+
}
|
|
121
|
+
return $ = i, $;
|
|
122
|
+
}
|
|
123
|
+
var U, ge;
|
|
124
|
+
function Ke() {
|
|
125
|
+
if (ge) return U;
|
|
126
|
+
ge = 1;
|
|
127
|
+
var s = ze(), t = Ge(), i = Qe(), e = "[object Null]", r = "[object Undefined]", l = s ? s.toStringTag : void 0;
|
|
128
|
+
function n(o) {
|
|
129
|
+
return o == null ? o === void 0 ? r : e : l && l in Object(o) ? t(o) : i(o);
|
|
130
|
+
}
|
|
131
|
+
return U = n, U;
|
|
132
|
+
}
|
|
133
|
+
var Z, me;
|
|
134
|
+
function Je() {
|
|
135
|
+
if (me) return Z;
|
|
136
|
+
me = 1;
|
|
137
|
+
function s(t) {
|
|
138
|
+
return t != null && typeof t == "object";
|
|
139
|
+
}
|
|
140
|
+
return Z = s, Z;
|
|
141
|
+
}
|
|
142
|
+
var G, be;
|
|
143
|
+
function et() {
|
|
144
|
+
if (be) return G;
|
|
145
|
+
be = 1;
|
|
146
|
+
var s = Ke(), t = Je(), i = "[object Symbol]";
|
|
147
|
+
function e(r) {
|
|
148
|
+
return typeof r == "symbol" || t(r) && s(r) == i;
|
|
149
|
+
}
|
|
150
|
+
return G = e, G;
|
|
151
|
+
}
|
|
152
|
+
var Q, xe;
|
|
153
|
+
function tt() {
|
|
154
|
+
if (xe) return Q;
|
|
155
|
+
xe = 1;
|
|
156
|
+
var s = Ze(), t = ie(), i = et(), e = NaN, r = /^[-+]0x[0-9a-f]+$/i, l = /^0b[01]+$/i, n = /^0o[0-7]+$/i, o = parseInt;
|
|
157
|
+
function c(a) {
|
|
158
|
+
if (typeof a == "number")
|
|
159
|
+
return a;
|
|
160
|
+
if (i(a))
|
|
161
|
+
return e;
|
|
162
|
+
if (t(a)) {
|
|
163
|
+
var u = typeof a.valueOf == "function" ? a.valueOf() : a;
|
|
164
|
+
a = t(u) ? u + "" : u;
|
|
165
|
+
}
|
|
166
|
+
if (typeof a != "string")
|
|
167
|
+
return a === 0 ? a : +a;
|
|
168
|
+
a = s(a);
|
|
169
|
+
var h = l.test(a);
|
|
170
|
+
return h || n.test(a) ? o(a.slice(2), h ? 2 : 8) : r.test(a) ? e : +a;
|
|
171
|
+
}
|
|
172
|
+
return Q = c, Q;
|
|
173
|
+
}
|
|
174
|
+
var K, ye;
|
|
175
|
+
function We() {
|
|
176
|
+
if (ye) return K;
|
|
177
|
+
ye = 1;
|
|
178
|
+
var s = ie(), t = $e(), i = tt(), e = "Expected a function", r = Math.max, l = Math.min;
|
|
179
|
+
function n(o, c, a) {
|
|
180
|
+
var u, h, m, f, v, p, b = 0, y = !1, x = !1, z = !0;
|
|
181
|
+
if (typeof o != "function")
|
|
182
|
+
throw new TypeError(e);
|
|
183
|
+
c = i(c) || 0, s(a) && (y = !!a.leading, x = "maxWait" in a, m = x ? r(i(a.maxWait) || 0, c) : m, z = "trailing" in a ? !!a.trailing : z);
|
|
184
|
+
function L(d) {
|
|
185
|
+
var S = u, C = h;
|
|
186
|
+
return u = h = void 0, b = d, f = o.apply(C, S), f;
|
|
187
|
+
}
|
|
188
|
+
function D(d) {
|
|
189
|
+
return b = d, v = setTimeout(E, c), y ? L(d) : f;
|
|
190
|
+
}
|
|
191
|
+
function W(d) {
|
|
192
|
+
var S = d - p, C = d - b, le = c - S;
|
|
193
|
+
return x ? l(le, m - C) : le;
|
|
194
|
+
}
|
|
195
|
+
function V(d) {
|
|
196
|
+
var S = d - p, C = d - b;
|
|
197
|
+
return p === void 0 || S >= c || S < 0 || x && C >= m;
|
|
198
|
+
}
|
|
199
|
+
function E() {
|
|
200
|
+
var d = t();
|
|
201
|
+
if (V(d))
|
|
202
|
+
return re(d);
|
|
203
|
+
v = setTimeout(E, W(d));
|
|
204
|
+
}
|
|
205
|
+
function re(d) {
|
|
206
|
+
return v = void 0, z && u ? L(d) : (u = h = void 0, f);
|
|
207
|
+
}
|
|
208
|
+
function Ve() {
|
|
209
|
+
v !== void 0 && clearTimeout(v), b = 0, u = p = h = v = void 0;
|
|
210
|
+
}
|
|
211
|
+
function Be() {
|
|
212
|
+
return v === void 0 ? f : re(t());
|
|
213
|
+
}
|
|
214
|
+
function H() {
|
|
215
|
+
var d = t(), S = V(d);
|
|
216
|
+
if (u = arguments, h = this, p = d, S) {
|
|
217
|
+
if (v === void 0)
|
|
218
|
+
return D(p);
|
|
219
|
+
if (x)
|
|
220
|
+
return clearTimeout(v), v = setTimeout(E, c), L(p);
|
|
221
|
+
}
|
|
222
|
+
return v === void 0 && (v = setTimeout(E, c)), f;
|
|
223
|
+
}
|
|
224
|
+
return H.cancel = Ve, H.flush = Be, H;
|
|
225
|
+
}
|
|
226
|
+
return K = n, K;
|
|
227
|
+
}
|
|
228
|
+
var it = We();
|
|
229
|
+
const J = /* @__PURE__ */ ke(it);
|
|
230
|
+
var ee, Ee;
|
|
231
|
+
function st() {
|
|
232
|
+
if (Ee) return ee;
|
|
233
|
+
Ee = 1;
|
|
234
|
+
var s = We(), t = ie(), i = "Expected a function";
|
|
235
|
+
function e(r, l, n) {
|
|
236
|
+
var o = !0, c = !0;
|
|
237
|
+
if (typeof r != "function")
|
|
238
|
+
throw new TypeError(i);
|
|
239
|
+
return t(n) && (o = "leading" in n ? !!n.leading : o, c = "trailing" in n ? !!n.trailing : c), s(r, l, {
|
|
240
|
+
leading: o,
|
|
241
|
+
maxWait: l,
|
|
242
|
+
trailing: c
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
return ee = e, ee;
|
|
246
|
+
}
|
|
247
|
+
var rt = st();
|
|
248
|
+
const lt = /* @__PURE__ */ ke(rt);
|
|
249
|
+
var N = function() {
|
|
250
|
+
return N = Object.assign || function(s) {
|
|
251
|
+
for (var t, i = 1, e = arguments.length; i < e; i++) {
|
|
252
|
+
t = arguments[i];
|
|
253
|
+
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && (s[r] = t[r]);
|
|
254
|
+
}
|
|
255
|
+
return s;
|
|
256
|
+
}, N.apply(this, arguments);
|
|
257
|
+
};
|
|
258
|
+
function Me(s) {
|
|
259
|
+
return !s || !s.ownerDocument || !s.ownerDocument.defaultView ? window : s.ownerDocument.defaultView;
|
|
260
|
+
}
|
|
261
|
+
function Ne(s) {
|
|
262
|
+
return !s || !s.ownerDocument ? document : s.ownerDocument;
|
|
263
|
+
}
|
|
264
|
+
var Le = function(s) {
|
|
265
|
+
var t = {}, i = Array.prototype.reduce.call(s, function(e, r) {
|
|
266
|
+
var l = r.name.match(/data-simplebar-(.+)/);
|
|
267
|
+
if (l) {
|
|
268
|
+
var n = l[1].replace(/\W+(.)/g, function(o, c) {
|
|
269
|
+
return c.toUpperCase();
|
|
270
|
+
});
|
|
271
|
+
switch (r.value) {
|
|
272
|
+
case "true":
|
|
273
|
+
e[n] = !0;
|
|
274
|
+
break;
|
|
275
|
+
case "false":
|
|
276
|
+
e[n] = !1;
|
|
277
|
+
break;
|
|
278
|
+
case void 0:
|
|
279
|
+
e[n] = !0;
|
|
280
|
+
break;
|
|
281
|
+
default:
|
|
282
|
+
e[n] = r.value;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
return e;
|
|
286
|
+
}, t);
|
|
287
|
+
return i;
|
|
288
|
+
};
|
|
289
|
+
function Ce(s, t) {
|
|
290
|
+
var i;
|
|
291
|
+
s && (i = s.classList).add.apply(i, t.split(" "));
|
|
292
|
+
}
|
|
293
|
+
function Te(s, t) {
|
|
294
|
+
s && t.split(" ").forEach(function(i) {
|
|
295
|
+
s.classList.remove(i);
|
|
296
|
+
});
|
|
297
|
+
}
|
|
298
|
+
function Re(s) {
|
|
299
|
+
return ".".concat(s.split(" ").join("."));
|
|
300
|
+
}
|
|
301
|
+
var se = !!(typeof window < "u" && window.document && window.document.createElement), ot = /* @__PURE__ */ Object.freeze({
|
|
302
|
+
__proto__: null,
|
|
303
|
+
addClasses: Ce,
|
|
304
|
+
canUseDOM: se,
|
|
305
|
+
classNamesToQuery: Re,
|
|
306
|
+
getElementDocument: Ne,
|
|
307
|
+
getElementWindow: Me,
|
|
308
|
+
getOptions: Le,
|
|
309
|
+
removeClasses: Te
|
|
310
|
+
}), M = null, Se = null;
|
|
311
|
+
se && window.addEventListener("resize", function() {
|
|
312
|
+
Se !== window.devicePixelRatio && (Se = window.devicePixelRatio, M = null);
|
|
313
|
+
});
|
|
314
|
+
function we() {
|
|
315
|
+
if (M === null) {
|
|
316
|
+
if (typeof document > "u")
|
|
317
|
+
return M = 0, M;
|
|
318
|
+
var s = document.body, t = document.createElement("div");
|
|
319
|
+
t.classList.add("simplebar-hide-scrollbar"), s.appendChild(t);
|
|
320
|
+
var i = t.getBoundingClientRect().right;
|
|
321
|
+
s.removeChild(t), M = i;
|
|
322
|
+
}
|
|
323
|
+
return M;
|
|
324
|
+
}
|
|
325
|
+
var w = Me, te = Ne, nt = Le, O = Ce, k = Te, g = Re, R = (
|
|
326
|
+
/** @class */
|
|
327
|
+
(function() {
|
|
328
|
+
function s(t, i) {
|
|
329
|
+
i === void 0 && (i = {});
|
|
330
|
+
var e = this;
|
|
331
|
+
if (this.removePreventClickId = null, this.minScrollbarWidth = 20, this.stopScrollDelay = 175, this.isScrolling = !1, this.isMouseEntering = !1, this.isDragging = !1, this.scrollXTicking = !1, this.scrollYTicking = !1, this.wrapperEl = null, this.contentWrapperEl = null, this.contentEl = null, this.offsetEl = null, this.maskEl = null, this.placeholderEl = null, this.heightAutoObserverWrapperEl = null, this.heightAutoObserverEl = null, this.rtlHelpers = null, this.scrollbarWidth = 0, this.resizeObserver = null, this.mutationObserver = null, this.elStyles = null, this.isRtl = null, this.mouseX = 0, this.mouseY = 0, this.onMouseMove = function() {
|
|
332
|
+
}, this.onWindowResize = function() {
|
|
333
|
+
}, this.onStopScrolling = function() {
|
|
334
|
+
}, this.onMouseEntered = function() {
|
|
335
|
+
}, this.onScroll = function() {
|
|
336
|
+
var r = w(e.el);
|
|
337
|
+
e.scrollXTicking || (r.requestAnimationFrame(e.scrollX), e.scrollXTicking = !0), e.scrollYTicking || (r.requestAnimationFrame(e.scrollY), e.scrollYTicking = !0), e.isScrolling || (e.isScrolling = !0, O(e.el, e.classNames.scrolling)), e.showScrollbar("x"), e.showScrollbar("y"), e.onStopScrolling();
|
|
338
|
+
}, this.scrollX = function() {
|
|
339
|
+
e.axis.x.isOverflowing && e.positionScrollbar("x"), e.scrollXTicking = !1;
|
|
340
|
+
}, this.scrollY = function() {
|
|
341
|
+
e.axis.y.isOverflowing && e.positionScrollbar("y"), e.scrollYTicking = !1;
|
|
342
|
+
}, this._onStopScrolling = function() {
|
|
343
|
+
k(e.el, e.classNames.scrolling), e.options.autoHide && (e.hideScrollbar("x"), e.hideScrollbar("y")), e.isScrolling = !1;
|
|
344
|
+
}, this.onMouseEnter = function() {
|
|
345
|
+
e.isMouseEntering || (O(e.el, e.classNames.mouseEntered), e.showScrollbar("x"), e.showScrollbar("y"), e.isMouseEntering = !0), e.onMouseEntered();
|
|
346
|
+
}, this._onMouseEntered = function() {
|
|
347
|
+
k(e.el, e.classNames.mouseEntered), e.options.autoHide && (e.hideScrollbar("x"), e.hideScrollbar("y")), e.isMouseEntering = !1;
|
|
348
|
+
}, this._onMouseMove = function(r) {
|
|
349
|
+
e.mouseX = r.clientX, e.mouseY = r.clientY, (e.axis.x.isOverflowing || e.axis.x.forceVisible) && e.onMouseMoveForAxis("x"), (e.axis.y.isOverflowing || e.axis.y.forceVisible) && e.onMouseMoveForAxis("y");
|
|
350
|
+
}, this.onMouseLeave = function() {
|
|
351
|
+
e.onMouseMove.cancel(), (e.axis.x.isOverflowing || e.axis.x.forceVisible) && e.onMouseLeaveForAxis("x"), (e.axis.y.isOverflowing || e.axis.y.forceVisible) && e.onMouseLeaveForAxis("y"), e.mouseX = -1, e.mouseY = -1;
|
|
352
|
+
}, this._onWindowResize = function() {
|
|
353
|
+
e.scrollbarWidth = e.getScrollbarWidth(), e.hideNativeScrollbar();
|
|
354
|
+
}, this.onPointerEvent = function(r) {
|
|
355
|
+
if (!(!e.axis.x.track.el || !e.axis.y.track.el || !e.axis.x.scrollbar.el || !e.axis.y.scrollbar.el)) {
|
|
356
|
+
var l, n;
|
|
357
|
+
e.axis.x.track.rect = e.axis.x.track.el.getBoundingClientRect(), e.axis.y.track.rect = e.axis.y.track.el.getBoundingClientRect(), (e.axis.x.isOverflowing || e.axis.x.forceVisible) && (l = e.isWithinBounds(e.axis.x.track.rect)), (e.axis.y.isOverflowing || e.axis.y.forceVisible) && (n = e.isWithinBounds(e.axis.y.track.rect)), (l || n) && (r.stopPropagation(), r.type === "pointerdown" && r.pointerType !== "touch" && (l && (e.axis.x.scrollbar.rect = e.axis.x.scrollbar.el.getBoundingClientRect(), e.isWithinBounds(e.axis.x.scrollbar.rect) ? e.onDragStart(r, "x") : e.onTrackClick(r, "x")), n && (e.axis.y.scrollbar.rect = e.axis.y.scrollbar.el.getBoundingClientRect(), e.isWithinBounds(e.axis.y.scrollbar.rect) ? e.onDragStart(r, "y") : e.onTrackClick(r, "y"))));
|
|
358
|
+
}
|
|
359
|
+
}, this.drag = function(r) {
|
|
360
|
+
var l, n, o, c, a, u, h, m, f, v, p;
|
|
361
|
+
if (!(!e.draggedAxis || !e.contentWrapperEl)) {
|
|
362
|
+
var b, y = e.axis[e.draggedAxis].track, x = (n = (l = y.rect) === null || l === void 0 ? void 0 : l[e.axis[e.draggedAxis].sizeAttr]) !== null && n !== void 0 ? n : 0, z = e.axis[e.draggedAxis].scrollbar, L = (c = (o = e.contentWrapperEl) === null || o === void 0 ? void 0 : o[e.axis[e.draggedAxis].scrollSizeAttr]) !== null && c !== void 0 ? c : 0, D = parseInt((u = (a = e.elStyles) === null || a === void 0 ? void 0 : a[e.axis[e.draggedAxis].sizeAttr]) !== null && u !== void 0 ? u : "0px", 10);
|
|
363
|
+
r.preventDefault(), r.stopPropagation(), e.draggedAxis === "y" ? b = r.pageY : b = r.pageX;
|
|
364
|
+
var W = b - ((m = (h = y.rect) === null || h === void 0 ? void 0 : h[e.axis[e.draggedAxis].offsetAttr]) !== null && m !== void 0 ? m : 0) - e.axis[e.draggedAxis].dragOffset;
|
|
365
|
+
W = e.draggedAxis === "x" && e.isRtl ? ((v = (f = y.rect) === null || f === void 0 ? void 0 : f[e.axis[e.draggedAxis].sizeAttr]) !== null && v !== void 0 ? v : 0) - z.size - W : W;
|
|
366
|
+
var V = W / (x - z.size), E = V * (L - D);
|
|
367
|
+
e.draggedAxis === "x" && e.isRtl && (E = !((p = s.getRtlHelpers()) === null || p === void 0) && p.isScrollingToNegative ? -E : E), e.contentWrapperEl[e.axis[e.draggedAxis].scrollOffsetAttr] = E;
|
|
368
|
+
}
|
|
369
|
+
}, this.onEndDrag = function(r) {
|
|
370
|
+
e.isDragging = !1;
|
|
371
|
+
var l = te(e.el), n = w(e.el);
|
|
372
|
+
r.preventDefault(), r.stopPropagation(), k(e.el, e.classNames.dragging), e.onStopScrolling(), l.removeEventListener("mousemove", e.drag, !0), l.removeEventListener("mouseup", e.onEndDrag, !0), e.removePreventClickId = n.setTimeout(function() {
|
|
373
|
+
l.removeEventListener("click", e.preventClick, !0), l.removeEventListener("dblclick", e.preventClick, !0), e.removePreventClickId = null;
|
|
374
|
+
});
|
|
375
|
+
}, this.preventClick = function(r) {
|
|
376
|
+
r.preventDefault(), r.stopPropagation();
|
|
377
|
+
}, this.el = t, this.options = N(N({}, s.defaultOptions), i), this.classNames = N(N({}, s.defaultOptions.classNames), i.classNames), this.axis = {
|
|
378
|
+
x: {
|
|
379
|
+
scrollOffsetAttr: "scrollLeft",
|
|
380
|
+
sizeAttr: "width",
|
|
381
|
+
scrollSizeAttr: "scrollWidth",
|
|
382
|
+
offsetSizeAttr: "offsetWidth",
|
|
383
|
+
offsetAttr: "left",
|
|
384
|
+
overflowAttr: "overflowX",
|
|
385
|
+
dragOffset: 0,
|
|
386
|
+
isOverflowing: !0,
|
|
387
|
+
forceVisible: !1,
|
|
388
|
+
track: { size: null, el: null, rect: null, isVisible: !1 },
|
|
389
|
+
scrollbar: { size: null, el: null, rect: null, isVisible: !1 }
|
|
390
|
+
},
|
|
391
|
+
y: {
|
|
392
|
+
scrollOffsetAttr: "scrollTop",
|
|
393
|
+
sizeAttr: "height",
|
|
394
|
+
scrollSizeAttr: "scrollHeight",
|
|
395
|
+
offsetSizeAttr: "offsetHeight",
|
|
396
|
+
offsetAttr: "top",
|
|
397
|
+
overflowAttr: "overflowY",
|
|
398
|
+
dragOffset: 0,
|
|
399
|
+
isOverflowing: !0,
|
|
400
|
+
forceVisible: !1,
|
|
401
|
+
track: { size: null, el: null, rect: null, isVisible: !1 },
|
|
402
|
+
scrollbar: { size: null, el: null, rect: null, isVisible: !1 }
|
|
403
|
+
}
|
|
404
|
+
}, typeof this.el != "object" || !this.el.nodeName)
|
|
405
|
+
throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));
|
|
406
|
+
this.onMouseMove = lt(this._onMouseMove, 64), this.onWindowResize = J(this._onWindowResize, 64, { leading: !0 }), this.onStopScrolling = J(this._onStopScrolling, this.stopScrollDelay), this.onMouseEntered = J(this._onMouseEntered, this.stopScrollDelay), this.init();
|
|
407
|
+
}
|
|
408
|
+
return s.getRtlHelpers = function() {
|
|
409
|
+
if (s.rtlHelpers)
|
|
410
|
+
return s.rtlHelpers;
|
|
411
|
+
var t = document.createElement("div");
|
|
412
|
+
t.innerHTML = '<div class="simplebar-dummy-scrollbar-size"><div></div></div>';
|
|
413
|
+
var i = t.firstElementChild, e = i?.firstElementChild;
|
|
414
|
+
if (!e)
|
|
415
|
+
return null;
|
|
416
|
+
document.body.appendChild(i), i.scrollLeft = 0;
|
|
417
|
+
var r = s.getOffset(i), l = s.getOffset(e);
|
|
418
|
+
i.scrollLeft = -999;
|
|
419
|
+
var n = s.getOffset(e);
|
|
420
|
+
return document.body.removeChild(i), s.rtlHelpers = {
|
|
421
|
+
// determines if the scrolling is responding with negative values
|
|
422
|
+
isScrollOriginAtZero: r.left !== l.left,
|
|
423
|
+
// determines if the origin scrollbar position is inverted or not (positioned on left or right)
|
|
424
|
+
isScrollingToNegative: l.left !== n.left
|
|
425
|
+
}, s.rtlHelpers;
|
|
426
|
+
}, s.prototype.getScrollbarWidth = function() {
|
|
427
|
+
try {
|
|
428
|
+
return this.contentWrapperEl && getComputedStyle(this.contentWrapperEl, "::-webkit-scrollbar").display === "none" || "scrollbarWidth" in document.documentElement.style || "-ms-overflow-style" in document.documentElement.style ? 0 : we();
|
|
429
|
+
} catch {
|
|
430
|
+
return we();
|
|
431
|
+
}
|
|
432
|
+
}, s.getOffset = function(t) {
|
|
433
|
+
var i = t.getBoundingClientRect(), e = te(t), r = w(t);
|
|
434
|
+
return {
|
|
435
|
+
top: i.top + (r.pageYOffset || e.documentElement.scrollTop),
|
|
436
|
+
left: i.left + (r.pageXOffset || e.documentElement.scrollLeft)
|
|
437
|
+
};
|
|
438
|
+
}, s.prototype.init = function() {
|
|
439
|
+
se && (this.initDOM(), this.rtlHelpers = s.getRtlHelpers(), this.scrollbarWidth = this.getScrollbarWidth(), this.recalculate(), this.initListeners());
|
|
440
|
+
}, s.prototype.initDOM = function() {
|
|
441
|
+
var t, i;
|
|
442
|
+
this.wrapperEl = this.el.querySelector(g(this.classNames.wrapper)), this.contentWrapperEl = this.options.scrollableNode || this.el.querySelector(g(this.classNames.contentWrapper)), this.contentEl = this.options.contentNode || this.el.querySelector(g(this.classNames.contentEl)), this.offsetEl = this.el.querySelector(g(this.classNames.offset)), this.maskEl = this.el.querySelector(g(this.classNames.mask)), this.placeholderEl = this.findChild(this.wrapperEl, g(this.classNames.placeholder)), this.heightAutoObserverWrapperEl = this.el.querySelector(g(this.classNames.heightAutoObserverWrapperEl)), this.heightAutoObserverEl = this.el.querySelector(g(this.classNames.heightAutoObserverEl)), this.axis.x.track.el = this.findChild(this.el, "".concat(g(this.classNames.track)).concat(g(this.classNames.horizontal))), this.axis.y.track.el = this.findChild(this.el, "".concat(g(this.classNames.track)).concat(g(this.classNames.vertical))), this.axis.x.scrollbar.el = ((t = this.axis.x.track.el) === null || t === void 0 ? void 0 : t.querySelector(g(this.classNames.scrollbar))) || null, this.axis.y.scrollbar.el = ((i = this.axis.y.track.el) === null || i === void 0 ? void 0 : i.querySelector(g(this.classNames.scrollbar))) || null, this.options.autoHide || (O(this.axis.x.scrollbar.el, this.classNames.visible), O(this.axis.y.scrollbar.el, this.classNames.visible));
|
|
443
|
+
}, s.prototype.initListeners = function() {
|
|
444
|
+
var t = this, i, e = w(this.el);
|
|
445
|
+
if (this.el.addEventListener("mouseenter", this.onMouseEnter), this.el.addEventListener("pointerdown", this.onPointerEvent, !0), this.el.addEventListener("mousemove", this.onMouseMove), this.el.addEventListener("mouseleave", this.onMouseLeave), (i = this.contentWrapperEl) === null || i === void 0 || i.addEventListener("scroll", this.onScroll), e.addEventListener("resize", this.onWindowResize), !!this.contentEl) {
|
|
446
|
+
if (window.ResizeObserver) {
|
|
447
|
+
var r = !1, l = e.ResizeObserver || ResizeObserver;
|
|
448
|
+
this.resizeObserver = new l(function() {
|
|
449
|
+
r && e.requestAnimationFrame(function() {
|
|
450
|
+
t.recalculate();
|
|
451
|
+
});
|
|
452
|
+
}), this.resizeObserver.observe(this.el), this.resizeObserver.observe(this.contentEl), e.requestAnimationFrame(function() {
|
|
453
|
+
r = !0;
|
|
454
|
+
});
|
|
455
|
+
}
|
|
456
|
+
this.mutationObserver = new e.MutationObserver(function() {
|
|
457
|
+
e.requestAnimationFrame(function() {
|
|
458
|
+
t.recalculate();
|
|
459
|
+
});
|
|
460
|
+
}), this.mutationObserver.observe(this.contentEl, {
|
|
461
|
+
childList: !0,
|
|
462
|
+
subtree: !0,
|
|
463
|
+
characterData: !0
|
|
464
|
+
});
|
|
465
|
+
}
|
|
466
|
+
}, s.prototype.recalculate = function() {
|
|
467
|
+
if (!(!this.heightAutoObserverEl || !this.contentEl || !this.contentWrapperEl || !this.wrapperEl || !this.placeholderEl)) {
|
|
468
|
+
var t = w(this.el);
|
|
469
|
+
this.elStyles = t.getComputedStyle(this.el), this.isRtl = this.elStyles.direction === "rtl";
|
|
470
|
+
var i = this.contentEl.offsetWidth, e = this.heightAutoObserverEl.offsetHeight <= 1, r = this.heightAutoObserverEl.offsetWidth <= 1 || i > 0, l = this.contentWrapperEl.offsetWidth, n = this.elStyles.overflowX, o = this.elStyles.overflowY;
|
|
471
|
+
this.contentEl.style.padding = "".concat(this.elStyles.paddingTop, " ").concat(this.elStyles.paddingRight, " ").concat(this.elStyles.paddingBottom, " ").concat(this.elStyles.paddingLeft), this.wrapperEl.style.margin = "-".concat(this.elStyles.paddingTop, " -").concat(this.elStyles.paddingRight, " -").concat(this.elStyles.paddingBottom, " -").concat(this.elStyles.paddingLeft);
|
|
472
|
+
var c = this.contentEl.scrollHeight, a = this.contentEl.scrollWidth;
|
|
473
|
+
this.contentWrapperEl.style.height = e ? "auto" : "100%", this.placeholderEl.style.width = r ? "".concat(i || a, "px") : "auto", this.placeholderEl.style.height = "".concat(c, "px");
|
|
474
|
+
var u = this.contentWrapperEl.offsetHeight;
|
|
475
|
+
this.axis.x.isOverflowing = i !== 0 && a > i, this.axis.y.isOverflowing = c > u, this.axis.x.isOverflowing = n === "hidden" ? !1 : this.axis.x.isOverflowing, this.axis.y.isOverflowing = o === "hidden" ? !1 : this.axis.y.isOverflowing, this.axis.x.forceVisible = this.options.forceVisible === "x" || this.options.forceVisible === !0, this.axis.y.forceVisible = this.options.forceVisible === "y" || this.options.forceVisible === !0, this.hideNativeScrollbar();
|
|
476
|
+
var h = this.axis.x.isOverflowing ? this.scrollbarWidth : 0, m = this.axis.y.isOverflowing ? this.scrollbarWidth : 0;
|
|
477
|
+
this.axis.x.isOverflowing = this.axis.x.isOverflowing && a > l - m, this.axis.y.isOverflowing = this.axis.y.isOverflowing && c > u - h, this.axis.x.scrollbar.size = this.getScrollbarSize("x"), this.axis.y.scrollbar.size = this.getScrollbarSize("y"), this.axis.x.scrollbar.el && (this.axis.x.scrollbar.el.style.width = "".concat(this.axis.x.scrollbar.size, "px")), this.axis.y.scrollbar.el && (this.axis.y.scrollbar.el.style.height = "".concat(this.axis.y.scrollbar.size, "px")), this.positionScrollbar("x"), this.positionScrollbar("y"), this.toggleTrackVisibility("x"), this.toggleTrackVisibility("y");
|
|
478
|
+
}
|
|
479
|
+
}, s.prototype.getScrollbarSize = function(t) {
|
|
480
|
+
var i, e;
|
|
481
|
+
if (t === void 0 && (t = "y"), !this.axis[t].isOverflowing || !this.contentEl)
|
|
482
|
+
return 0;
|
|
483
|
+
var r = this.contentEl[this.axis[t].scrollSizeAttr], l = (e = (i = this.axis[t].track.el) === null || i === void 0 ? void 0 : i[this.axis[t].offsetSizeAttr]) !== null && e !== void 0 ? e : 0, n = l / r, o;
|
|
484
|
+
return o = Math.max(~~(n * l), this.options.scrollbarMinSize), this.options.scrollbarMaxSize && (o = Math.min(o, this.options.scrollbarMaxSize)), o;
|
|
485
|
+
}, s.prototype.positionScrollbar = function(t) {
|
|
486
|
+
var i, e, r;
|
|
487
|
+
t === void 0 && (t = "y");
|
|
488
|
+
var l = this.axis[t].scrollbar;
|
|
489
|
+
if (!(!this.axis[t].isOverflowing || !this.contentWrapperEl || !l.el || !this.elStyles)) {
|
|
490
|
+
var n = this.contentWrapperEl[this.axis[t].scrollSizeAttr], o = ((i = this.axis[t].track.el) === null || i === void 0 ? void 0 : i[this.axis[t].offsetSizeAttr]) || 0, c = parseInt(this.elStyles[this.axis[t].sizeAttr], 10), a = this.contentWrapperEl[this.axis[t].scrollOffsetAttr];
|
|
491
|
+
a = t === "x" && this.isRtl && !((e = s.getRtlHelpers()) === null || e === void 0) && e.isScrollOriginAtZero ? -a : a, t === "x" && this.isRtl && (a = !((r = s.getRtlHelpers()) === null || r === void 0) && r.isScrollingToNegative ? a : -a);
|
|
492
|
+
var u = a / (n - c), h = ~~((o - l.size) * u);
|
|
493
|
+
h = t === "x" && this.isRtl ? -h + (o - l.size) : h, l.el.style.transform = t === "x" ? "translate3d(".concat(h, "px, 0, 0)") : "translate3d(0, ".concat(h, "px, 0)");
|
|
494
|
+
}
|
|
495
|
+
}, s.prototype.toggleTrackVisibility = function(t) {
|
|
496
|
+
t === void 0 && (t = "y");
|
|
497
|
+
var i = this.axis[t].track.el, e = this.axis[t].scrollbar.el;
|
|
498
|
+
!i || !e || !this.contentWrapperEl || (this.axis[t].isOverflowing || this.axis[t].forceVisible ? (i.style.visibility = "visible", this.contentWrapperEl.style[this.axis[t].overflowAttr] = "scroll", this.el.classList.add("".concat(this.classNames.scrollable, "-").concat(t))) : (i.style.visibility = "hidden", this.contentWrapperEl.style[this.axis[t].overflowAttr] = "hidden", this.el.classList.remove("".concat(this.classNames.scrollable, "-").concat(t))), this.axis[t].isOverflowing ? e.style.display = "block" : e.style.display = "none");
|
|
499
|
+
}, s.prototype.showScrollbar = function(t) {
|
|
500
|
+
t === void 0 && (t = "y"), this.axis[t].isOverflowing && !this.axis[t].scrollbar.isVisible && (O(this.axis[t].scrollbar.el, this.classNames.visible), this.axis[t].scrollbar.isVisible = !0);
|
|
501
|
+
}, s.prototype.hideScrollbar = function(t) {
|
|
502
|
+
t === void 0 && (t = "y"), !this.isDragging && this.axis[t].isOverflowing && this.axis[t].scrollbar.isVisible && (k(this.axis[t].scrollbar.el, this.classNames.visible), this.axis[t].scrollbar.isVisible = !1);
|
|
503
|
+
}, s.prototype.hideNativeScrollbar = function() {
|
|
504
|
+
this.offsetEl && (this.offsetEl.style[this.isRtl ? "left" : "right"] = this.axis.y.isOverflowing || this.axis.y.forceVisible ? "-".concat(this.scrollbarWidth, "px") : "0px", this.offsetEl.style.bottom = this.axis.x.isOverflowing || this.axis.x.forceVisible ? "-".concat(this.scrollbarWidth, "px") : "0px");
|
|
505
|
+
}, s.prototype.onMouseMoveForAxis = function(t) {
|
|
506
|
+
t === void 0 && (t = "y");
|
|
507
|
+
var i = this.axis[t];
|
|
508
|
+
!i.track.el || !i.scrollbar.el || (i.track.rect = i.track.el.getBoundingClientRect(), i.scrollbar.rect = i.scrollbar.el.getBoundingClientRect(), this.isWithinBounds(i.track.rect) ? (this.showScrollbar(t), O(i.track.el, this.classNames.hover), this.isWithinBounds(i.scrollbar.rect) ? O(i.scrollbar.el, this.classNames.hover) : k(i.scrollbar.el, this.classNames.hover)) : (k(i.track.el, this.classNames.hover), this.options.autoHide && this.hideScrollbar(t)));
|
|
509
|
+
}, s.prototype.onMouseLeaveForAxis = function(t) {
|
|
510
|
+
t === void 0 && (t = "y"), k(this.axis[t].track.el, this.classNames.hover), k(this.axis[t].scrollbar.el, this.classNames.hover), this.options.autoHide && this.hideScrollbar(t);
|
|
511
|
+
}, s.prototype.onDragStart = function(t, i) {
|
|
512
|
+
var e;
|
|
513
|
+
i === void 0 && (i = "y"), this.isDragging = !0;
|
|
514
|
+
var r = te(this.el), l = w(this.el), n = this.axis[i].scrollbar, o = i === "y" ? t.pageY : t.pageX;
|
|
515
|
+
this.axis[i].dragOffset = o - (((e = n.rect) === null || e === void 0 ? void 0 : e[this.axis[i].offsetAttr]) || 0), this.draggedAxis = i, O(this.el, this.classNames.dragging), r.addEventListener("mousemove", this.drag, !0), r.addEventListener("mouseup", this.onEndDrag, !0), this.removePreventClickId === null ? (r.addEventListener("click", this.preventClick, !0), r.addEventListener("dblclick", this.preventClick, !0)) : (l.clearTimeout(this.removePreventClickId), this.removePreventClickId = null);
|
|
516
|
+
}, s.prototype.onTrackClick = function(t, i) {
|
|
517
|
+
var e = this, r, l, n, o;
|
|
518
|
+
i === void 0 && (i = "y");
|
|
519
|
+
var c = this.axis[i];
|
|
520
|
+
if (!(!this.options.clickOnTrack || !c.scrollbar.el || !this.contentWrapperEl)) {
|
|
521
|
+
t.preventDefault();
|
|
522
|
+
var a = w(this.el);
|
|
523
|
+
this.axis[i].scrollbar.rect = c.scrollbar.el.getBoundingClientRect();
|
|
524
|
+
var u = this.axis[i].scrollbar, h = (l = (r = u.rect) === null || r === void 0 ? void 0 : r[this.axis[i].offsetAttr]) !== null && l !== void 0 ? l : 0, m = parseInt((o = (n = this.elStyles) === null || n === void 0 ? void 0 : n[this.axis[i].sizeAttr]) !== null && o !== void 0 ? o : "0px", 10), f = this.contentWrapperEl[this.axis[i].scrollOffsetAttr], v = i === "y" ? this.mouseY - h : this.mouseX - h, p = v < 0 ? -1 : 1, b = p === -1 ? f - m : f + m, y = 40, x = function() {
|
|
525
|
+
e.contentWrapperEl && (p === -1 ? f > b && (f -= y, e.contentWrapperEl[e.axis[i].scrollOffsetAttr] = f, a.requestAnimationFrame(x)) : f < b && (f += y, e.contentWrapperEl[e.axis[i].scrollOffsetAttr] = f, a.requestAnimationFrame(x)));
|
|
526
|
+
};
|
|
527
|
+
x();
|
|
528
|
+
}
|
|
529
|
+
}, s.prototype.getContentElement = function() {
|
|
530
|
+
return this.contentEl;
|
|
531
|
+
}, s.prototype.getScrollElement = function() {
|
|
532
|
+
return this.contentWrapperEl;
|
|
533
|
+
}, s.prototype.removeListeners = function() {
|
|
534
|
+
var t = w(this.el);
|
|
535
|
+
this.el.removeEventListener("mouseenter", this.onMouseEnter), this.el.removeEventListener("pointerdown", this.onPointerEvent, !0), this.el.removeEventListener("mousemove", this.onMouseMove), this.el.removeEventListener("mouseleave", this.onMouseLeave), this.contentWrapperEl && this.contentWrapperEl.removeEventListener("scroll", this.onScroll), t.removeEventListener("resize", this.onWindowResize), this.mutationObserver && this.mutationObserver.disconnect(), this.resizeObserver && this.resizeObserver.disconnect(), this.onMouseMove.cancel(), this.onWindowResize.cancel(), this.onStopScrolling.cancel(), this.onMouseEntered.cancel();
|
|
536
|
+
}, s.prototype.unMount = function() {
|
|
537
|
+
this.removeListeners();
|
|
538
|
+
}, s.prototype.isWithinBounds = function(t) {
|
|
539
|
+
return this.mouseX >= t.left && this.mouseX <= t.left + t.width && this.mouseY >= t.top && this.mouseY <= t.top + t.height;
|
|
540
|
+
}, s.prototype.findChild = function(t, i) {
|
|
541
|
+
var e = t.matches || t.webkitMatchesSelector || t.mozMatchesSelector || t.msMatchesSelector;
|
|
542
|
+
return Array.prototype.filter.call(t.children, function(r) {
|
|
543
|
+
return e.call(r, i);
|
|
544
|
+
})[0];
|
|
545
|
+
}, s.rtlHelpers = null, s.defaultOptions = {
|
|
546
|
+
forceVisible: !1,
|
|
547
|
+
clickOnTrack: !0,
|
|
548
|
+
scrollbarMinSize: 25,
|
|
549
|
+
scrollbarMaxSize: 0,
|
|
550
|
+
ariaLabel: "scrollable content",
|
|
551
|
+
tabIndex: 0,
|
|
552
|
+
classNames: {
|
|
553
|
+
contentEl: "simplebar-content",
|
|
554
|
+
contentWrapper: "simplebar-content-wrapper",
|
|
555
|
+
offset: "simplebar-offset",
|
|
556
|
+
mask: "simplebar-mask",
|
|
557
|
+
wrapper: "simplebar-wrapper",
|
|
558
|
+
placeholder: "simplebar-placeholder",
|
|
559
|
+
scrollbar: "simplebar-scrollbar",
|
|
560
|
+
track: "simplebar-track",
|
|
561
|
+
heightAutoObserverWrapperEl: "simplebar-height-auto-observer-wrapper",
|
|
562
|
+
heightAutoObserverEl: "simplebar-height-auto-observer",
|
|
563
|
+
visible: "simplebar-visible",
|
|
564
|
+
horizontal: "simplebar-horizontal",
|
|
565
|
+
vertical: "simplebar-vertical",
|
|
566
|
+
hover: "simplebar-hover",
|
|
567
|
+
dragging: "simplebar-dragging",
|
|
568
|
+
scrolling: "simplebar-scrolling",
|
|
569
|
+
scrollable: "simplebar-scrollable",
|
|
570
|
+
mouseEntered: "simplebar-mouse-entered"
|
|
571
|
+
},
|
|
572
|
+
scrollableNode: null,
|
|
573
|
+
contentNode: null,
|
|
574
|
+
autoHide: !0
|
|
575
|
+
}, s.getOptions = nt, s.helpers = ot, s;
|
|
576
|
+
})()
|
|
577
|
+
), A = function() {
|
|
578
|
+
return A = Object.assign || function(s) {
|
|
579
|
+
for (var t, i = 1, e = arguments.length; i < e; i++) {
|
|
580
|
+
t = arguments[i];
|
|
581
|
+
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && (s[r] = t[r]);
|
|
582
|
+
}
|
|
583
|
+
return s;
|
|
584
|
+
}, A.apply(this, arguments);
|
|
585
|
+
}, at = {
|
|
586
|
+
beforeUnmount: "beforeUnmount"
|
|
587
|
+
}, T;
|
|
588
|
+
function ct(s) {
|
|
589
|
+
var t, i = s.h, e = s.emit, r = s.slots, l = s.props, n = function(c) {
|
|
590
|
+
return e("scroll", c);
|
|
591
|
+
}, o = A(A({}, R.defaultOptions.classNames), l.classNames);
|
|
592
|
+
return i("div", A({ ref: "element" }, {
|
|
593
|
+
"data-simplebar": "init"
|
|
594
|
+
}), [
|
|
595
|
+
i("div", {
|
|
596
|
+
class: o.wrapper
|
|
597
|
+
}, [
|
|
598
|
+
i("div", { class: o.heightAutoObserverWrapperEl }, [
|
|
599
|
+
i("div", { class: o.heightAutoObserverEl })
|
|
600
|
+
]),
|
|
601
|
+
i("div", { class: o.mask }, [
|
|
602
|
+
i("div", { class: o.offset }, [
|
|
603
|
+
i("div", A(A({}, {
|
|
604
|
+
onScroll: n,
|
|
605
|
+
class: o.contentWrapper,
|
|
606
|
+
tabIndex: l.tabIndex || R.defaultOptions.tabIndex,
|
|
607
|
+
role: "region",
|
|
608
|
+
"aria-label": l.ariaLabel || R.defaultOptions.ariaLabel
|
|
609
|
+
}), { ref: "scrollElement" }), [
|
|
610
|
+
i("div", { class: o.contentEl, ref: "contentElement" }, (t = r.default) === null || t === void 0 ? void 0 : t.call(r))
|
|
611
|
+
])
|
|
612
|
+
])
|
|
613
|
+
]),
|
|
614
|
+
i("div", { class: o.placeholder })
|
|
615
|
+
]),
|
|
616
|
+
i("div", { class: "".concat(o.track, " simplebar-horizontal") }, [
|
|
617
|
+
i("div", { class: o.scrollbar })
|
|
618
|
+
]),
|
|
619
|
+
i("div", { class: "".concat(o.track, " simplebar-vertical") }, [
|
|
620
|
+
i("div", { class: o.scrollbar })
|
|
621
|
+
])
|
|
622
|
+
]);
|
|
623
|
+
}
|
|
624
|
+
Oe((T = {
|
|
625
|
+
name: "simplebar-vue",
|
|
626
|
+
props: {
|
|
627
|
+
/**
|
|
628
|
+
* By default SimpleBar automatically hides the scrollbar if the user is not scrolling
|
|
629
|
+
* (it emulates Mac OSX Lion's scrollbar). You can make the scrollbar always visible
|
|
630
|
+
* by passing `false`.
|
|
631
|
+
*
|
|
632
|
+
* Default value is `true`.
|
|
633
|
+
*
|
|
634
|
+
* You can also control the animation via CSS as it's a simple CSS opacity transition.
|
|
635
|
+
*/
|
|
636
|
+
autoHide: { type: Boolean, default: void 0 },
|
|
637
|
+
/**
|
|
638
|
+
* It is possible to change the default class names that SimpleBar uses.
|
|
639
|
+
* To get your own styles to work refer to simplebar.css to get an idea how to setup your css.
|
|
640
|
+
* - `content` represents the wrapper for the content being scrolled.
|
|
641
|
+
* - `scrollContent` represents the container containing the elements being scrolled.
|
|
642
|
+
* - `scrollbar` defines the style of the scrollbar with which the user can interact to scroll the content.
|
|
643
|
+
* - `track` styles the area surrounding the `scrollbar`.
|
|
644
|
+
*
|
|
645
|
+
* ```js
|
|
646
|
+
* classNames: {
|
|
647
|
+
* // defaults
|
|
648
|
+
* content: 'simplebar-content',
|
|
649
|
+
* scrollContent: 'simplebar-scroll-content',
|
|
650
|
+
* scrollbar: 'simplebar-scrollbar',
|
|
651
|
+
* track: 'simplebar-track'
|
|
652
|
+
* }
|
|
653
|
+
* ```
|
|
654
|
+
*/
|
|
655
|
+
classNames: Object,
|
|
656
|
+
/**
|
|
657
|
+
* Force the track to be visible (same behaviour as `overflow: scroll`).
|
|
658
|
+
* Can be `boolean | 'x' | 'y'`, defaults to `false`, which behaves like `overflow: auto`.
|
|
659
|
+
*/
|
|
660
|
+
forceVisible: {
|
|
661
|
+
type: [Boolean, String],
|
|
662
|
+
validator: function(s) {
|
|
663
|
+
return typeof s == "boolean" || s === "x" || s === "y";
|
|
664
|
+
},
|
|
665
|
+
default: void 0
|
|
666
|
+
},
|
|
667
|
+
/**
|
|
668
|
+
* Set custom aria-label attribute for users with screen reader.
|
|
669
|
+
*/
|
|
670
|
+
ariaLabel: String,
|
|
671
|
+
/**
|
|
672
|
+
* Set custom tabIndex attribute.
|
|
673
|
+
*/
|
|
674
|
+
tabIndex: Number,
|
|
675
|
+
/**
|
|
676
|
+
* Activate RTL support by passing `'rtl'`.
|
|
677
|
+
* You will also need a css rule with `direction: rtl`.
|
|
678
|
+
*/
|
|
679
|
+
direction: {
|
|
680
|
+
type: String,
|
|
681
|
+
validator: function(s) {
|
|
682
|
+
return s === "ltr" || s === "rtl";
|
|
683
|
+
}
|
|
684
|
+
},
|
|
685
|
+
/**
|
|
686
|
+
* Define the delay until the scrollbar hides. Has no effect if `autoHide` is `false`.
|
|
687
|
+
* Default value is `1000`.
|
|
688
|
+
*/
|
|
689
|
+
timeout: Number,
|
|
690
|
+
/**
|
|
691
|
+
* Controls the click on track behaviour.
|
|
692
|
+
* Default to `true`.
|
|
693
|
+
*/
|
|
694
|
+
clickOnTrack: { type: Boolean, default: void 0 },
|
|
695
|
+
/**
|
|
696
|
+
* Controls the min size of the scrollbar in `px`.
|
|
697
|
+
* Default is `25`.
|
|
698
|
+
*/
|
|
699
|
+
scrollbarMinSize: Number,
|
|
700
|
+
/**
|
|
701
|
+
* Controls the max size of the scrollbar in `px`.
|
|
702
|
+
* Default is `0` (no max size).
|
|
703
|
+
*/
|
|
704
|
+
scrollbarMaxSize: Number
|
|
705
|
+
},
|
|
706
|
+
// @ts-ignore
|
|
707
|
+
emits: ["scroll"],
|
|
708
|
+
/**
|
|
709
|
+
* @returns {{ SimpleBar?: SimpleBar; scrollElement?: HTMLDivElement; contentElement?: HTMLDivElement }}
|
|
710
|
+
*/
|
|
711
|
+
data: function() {
|
|
712
|
+
return {};
|
|
713
|
+
},
|
|
714
|
+
mounted: function() {
|
|
715
|
+
for (var s = R.getOptions(this.$refs.element.attributes), t = 0, i = Object.entries(this.$props); t < i.length; t++) {
|
|
716
|
+
var e = i[t], r = e[0], l = e[1];
|
|
717
|
+
l != null && typeof l != "function" && (s[r] = l);
|
|
718
|
+
}
|
|
719
|
+
this.SimpleBar = new R(this.$refs.element, s), this.scrollElement = this.$refs.scrollElement, this.contentElement = this.$refs.contentElement;
|
|
720
|
+
}
|
|
721
|
+
}, T[at.beforeUnmount] = function() {
|
|
722
|
+
var s;
|
|
723
|
+
(s = this.SimpleBar) === null || s === void 0 || s.unMount(), this.SimpleBar = void 0;
|
|
724
|
+
}, T.methods = {
|
|
725
|
+
recalculate: function() {
|
|
726
|
+
var s;
|
|
727
|
+
(s = this.SimpleBar) === null || s === void 0 || s.recalculate();
|
|
728
|
+
}
|
|
729
|
+
}, /**
|
|
730
|
+
* Note that createElement argument is only provided in <=vue@2.7.x,
|
|
731
|
+
* in other versions it's a context object that we do not use.
|
|
732
|
+
*/
|
|
733
|
+
T.render = function(s) {
|
|
734
|
+
var t = this;
|
|
735
|
+
return ct({
|
|
736
|
+
h: typeof s == "function" ? s : De,
|
|
737
|
+
// @ts-ignore
|
|
738
|
+
emit: function() {
|
|
739
|
+
for (var i = [], e = 0; e < arguments.length; e++)
|
|
740
|
+
i[e] = arguments[e];
|
|
741
|
+
return t.$emit.apply(t, i);
|
|
742
|
+
},
|
|
743
|
+
// @ts-ignore
|
|
744
|
+
slots: this.$slots,
|
|
745
|
+
props: this.$props
|
|
746
|
+
});
|
|
747
|
+
}, T));
|
|
748
|
+
export {
|
|
749
|
+
ht as SvgIcon
|
|
750
|
+
};
|