rappel-ui 1.0.8 → 1.0.11
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/cjs/_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/defineProperty.js +1 -0
- package/cjs/_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/toPrimitive.js +1 -0
- package/cjs/_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/toPropertyKey.js +1 -0
- package/cjs/_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/typeof.js +1 -0
- package/cjs/_virtual/_plugin-vue_export-helper.js +1 -1
- package/cjs/_virtual/_rolldown/runtime.js +1 -0
- package/cjs/components/button/index.d.ts +38 -12
- package/cjs/components/button/index.js +1 -1
- package/cjs/components/button/src/button-group.js +1 -0
- package/cjs/components/button/src/button-group.vue_vue_type_script_setup_true_lang.js +1 -0
- package/cjs/components/button/src/button.js +1 -0
- package/cjs/components/button/src/button.vue_vue_type_script_setup_true_lang.js +1 -0
- package/cjs/components/button/src/constants.d.ts +4 -4
- package/cjs/components/button/src/constants.js +1 -1
- package/cjs/components/button/src/types.d.ts +20 -4
- package/cjs/components/button/style/index.js +1 -0
- package/cjs/components/button-group/style/css.d.ts +0 -0
- package/cjs/components/button-group/style/index.d.ts +0 -0
- package/cjs/components/button-group/style/index.js +1 -0
- package/cjs/components/colors/index.js +1 -1
- package/cjs/components/colors/src/colors.js +1 -0
- package/cjs/components/colors/src/colors.vue_vue_type_script_setup_true_lang.js +1 -0
- package/cjs/components/colors/src/neutral-color.js +1 -0
- package/cjs/components/colors/src/neutral-color.vue_vue_type_script_setup_true_lang.js +1 -0
- package/cjs/components/colors/src/primary-color.js +1 -0
- package/cjs/components/colors/src/primary-color.vue_vue_type_script_setup_true_lang.js +1 -0
- package/cjs/components/colors/src/secondary-color.js +1 -0
- package/cjs/components/colors/src/secondary-color.vue_vue_type_script_setup_true_lang.js +1 -0
- package/cjs/components/colors/style/index.js +1 -0
- package/cjs/components/filter-panel/index.d.ts +25 -29
- package/cjs/components/filter-panel/index.js +1 -1
- package/cjs/components/filter-panel/src/filter-panel.js +1 -0
- package/cjs/components/filter-panel/src/filter-panel.vue_vue_type_script_setup_true_lang.js +1 -0
- package/cjs/components/filter-panel/src/types.d.ts +1 -2
- package/cjs/components/filter-panel/style/index.js +1 -0
- package/cjs/components/index.d.ts +2 -0
- package/cjs/components/index.js +1 -1
- package/cjs/components/input/index.d.ts +1 -1
- package/cjs/components/input/index.js +1 -1
- package/cjs/components/input/src/input.js +1 -0
- package/cjs/components/input/src/input.vue_vue_type_script_setup_true_lang.js +1 -0
- package/cjs/components/package.js +1 -0
- package/cjs/components/popover/index.d.ts +21 -0
- package/cjs/components/popover/index.js +1 -0
- package/cjs/components/popover/src/popover.js +1 -0
- package/cjs/components/popover/src/popover.vue_vue_type_script_setup_true_lang.js +1 -0
- package/cjs/components/popover/src/types.d.ts +4 -0
- package/cjs/components/popover/style/css.d.ts +0 -0
- package/cjs/components/popover/style/index.d.ts +0 -0
- package/cjs/components/svg-icon/index.d.ts +1 -1
- package/cjs/components/svg-icon/index.js +1 -1
- package/cjs/components/svg-icon/src/svg-icon.js +1 -0
- package/cjs/components/svg-icon/src/svg-icon.vue_vue_type_script_setup_true_lang.js +1 -0
- package/cjs/components/svg-icon/src/types.d.ts +3 -2
- package/cjs/components/svg-icon/style/index.js +1 -0
- package/cjs/components/tabs/index.d.ts +2 -2
- package/cjs/components/tabs/index.js +1 -1
- package/cjs/components/tabs/src/tabs.js +1 -0
- package/cjs/components/tooltip/index.d.ts +106 -0
- package/cjs/components/tooltip/index.js +1 -0
- package/cjs/components/tooltip/src/constants.d.ts +7 -0
- package/cjs/components/tooltip/src/constants.js +1 -0
- package/cjs/components/tooltip/src/content.js +1 -0
- package/cjs/components/tooltip/src/content.vue_vue_type_script_setup_true_lang.js +1 -0
- package/cjs/components/tooltip/src/tooltip.js +1 -0
- package/cjs/components/tooltip/src/tooltip.vue_vue_type_script_setup_true_lang.js +1 -0
- package/cjs/components/tooltip/src/types.d.ts +98 -0
- package/cjs/components/tooltip/src/use-emit.d.ts +14 -0
- package/cjs/components/tooltip/src/use-emit.js +1 -0
- package/cjs/components/tooltip/src/use-tooltip.d.ts +9 -0
- package/cjs/components/tooltip/src/use-tooltip.js +1 -0
- package/cjs/components/tooltip/style/css.d.ts +0 -0
- package/cjs/components/tooltip/style/index.d.ts +0 -0
- package/cjs/composables/index.d.ts +7 -5
- package/cjs/composables/index.js +1 -0
- package/cjs/composables/use-date-format/index.js +1 -0
- package/cjs/composables/use-draggable/index.js +1 -0
- package/cjs/composables/use-namespace/index.d.ts +8 -7
- package/cjs/composables/use-namespace/index.js +1 -1
- package/cjs/composables/{useOnceFn.d.ts → use-once-fn/index.d.ts} +1 -1
- package/cjs/composables/use-once-fn/index.js +1 -0
- package/cjs/composables/use-theme/index.d.ts +7 -0
- package/cjs/composables/use-theme/index.js +1 -0
- package/cjs/composables/use-time-nodes/index.js +1 -0
- package/cjs/composables/use-waterfall-layout/index.js +1 -0
- package/cjs/composables/use-z-index/index.d.ts +11 -0
- package/cjs/composables/use-z-index/index.js +1 -0
- package/cjs/constants/svgLoading.js +2 -2
- package/cjs/directives/index.js +1 -0
- package/cjs/directives/vDraggable.js +1 -1
- package/cjs/directives/vResizable.js +7 -7
- package/cjs/directives/vSvgLoading.js +1 -1
- package/cjs/index.d.ts +1207 -47
- package/cjs/index.js +1 -1
- package/cjs/node_modules/.pnpm/@floating-ui_core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.js +1 -0
- package/cjs/node_modules/.pnpm/@floating-ui_dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +1 -0
- package/cjs/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +1 -0
- package/cjs/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +1 -0
- package/cjs/node_modules/.pnpm/@floating-ui_vue@2.0.1_vue@3.5.26_typescript@5.9.3_/node_modules/@floating-ui/vue/dist/floating-ui.vue.js +1 -0
- package/cjs/node_modules/.pnpm/@vueuse_core@14.0.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.js +1 -1
- package/cjs/node_modules/.pnpm/@vueuse_shared@14.0.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.js +1 -1
- package/cjs/rappel-ui/resolver.d.ts +3 -1
- package/cjs/rappel-ui/resolver.js +1 -1
- package/cjs/svg-icons/constants.d.ts +3 -0
- package/cjs/svg-icons/constants.js +1 -0
- package/cjs/svg-icons/index.d.ts +1010 -0
- package/cjs/svg-icons/index.js +1 -0
- package/cjs/svg-icons/types.d.ts +5 -0
- package/cjs/theme-chalk/src/base.css +1 -1
- package/cjs/theme-chalk/src/button-group.css +1 -0
- package/cjs/theme-chalk/src/button.css +1 -1
- package/cjs/theme-chalk/src/colors.css +1 -1
- package/cjs/theme-chalk/src/filter-panel.css +1 -1
- package/cjs/theme-chalk/src/svg-icon.css +1 -1
- package/cjs/types/common.d.ts +1 -0
- package/cjs/types/component.d.ts +1 -0
- package/cjs/types/event.d.ts +1 -0
- package/cjs/types/index.d.ts +4 -0
- package/cjs/types/theme.d.ts +1 -0
- package/cjs/utils/index.js +1 -0
- package/cjs/utils/util.d.ts +33 -6
- package/cjs/utils/util.js +3 -3
- package/cjs/utils/vue/index.d.ts +4 -0
- package/cjs/utils/vue/index.js +1 -1
- package/es/_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/defineProperty.mjs +12 -0
- package/es/_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/toPrimitive.mjs +14 -0
- package/es/_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/toPropertyKey.mjs +9 -0
- package/es/_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/typeof.mjs +11 -0
- package/es/_virtual/_plugin-vue_export-helper.mjs +7 -8
- package/es/_virtual/_rolldown/runtime.mjs +11 -0
- package/es/components/button/index.d.ts +38 -12
- package/es/components/button/index.mjs +9 -7
- package/es/components/button/src/button-group.mjs +5 -0
- package/es/components/button/src/button-group.vue_vue_type_script_setup_true_lang.mjs +25 -0
- package/es/components/button/src/button.mjs +5 -0
- package/es/components/button/src/button.vue_vue_type_script_setup_true_lang.mjs +140 -0
- package/es/components/button/src/constants.d.ts +4 -4
- package/es/components/button/src/constants.mjs +20 -5
- package/es/components/button/src/types.d.ts +20 -4
- package/es/components/button/style/index.mjs +2 -0
- package/es/components/button-group/style/css.d.ts +0 -0
- package/es/components/button-group/style/index.d.ts +0 -0
- package/es/components/button-group/style/index.mjs +2 -0
- package/es/components/colors/index.mjs +13 -16
- package/es/components/colors/src/colors.mjs +5 -0
- package/es/components/colors/src/colors.vue_vue_type_script_setup_true_lang.mjs +21 -0
- package/es/components/colors/src/neutral-color.mjs +5 -0
- package/es/components/colors/src/neutral-color.vue_vue_type_script_setup_true_lang.mjs +103 -0
- package/es/components/colors/src/primary-color.mjs +5 -0
- package/es/components/colors/src/primary-color.vue_vue_type_script_setup_true_lang.mjs +38 -0
- package/es/components/colors/src/secondary-color.mjs +5 -0
- package/es/components/colors/src/secondary-color.vue_vue_type_script_setup_true_lang.mjs +56 -0
- package/es/components/colors/style/index.mjs +2 -0
- package/es/components/filter-panel/index.d.ts +25 -29
- package/es/components/filter-panel/index.mjs +7 -7
- package/es/components/filter-panel/src/filter-panel.mjs +5 -0
- package/es/components/filter-panel/src/filter-panel.vue_vue_type_script_setup_true_lang.mjs +130 -0
- package/es/components/filter-panel/src/types.d.ts +1 -2
- package/es/components/filter-panel/style/index.mjs +2 -0
- package/es/components/index.d.ts +2 -0
- package/es/components/index.mjs +32 -18
- package/es/components/input/index.d.ts +1 -1
- package/es/components/input/index.mjs +7 -7
- package/es/components/input/src/input.mjs +5 -0
- package/es/components/input/src/input.vue_vue_type_script_setup_true_lang.mjs +21 -0
- package/es/components/package.mjs +4 -0
- package/es/components/popover/index.d.ts +21 -0
- package/es/components/popover/index.mjs +7 -0
- package/es/components/popover/src/popover.mjs +5 -0
- package/es/components/popover/src/popover.vue_vue_type_script_setup_true_lang.mjs +164 -0
- package/es/components/popover/src/types.d.ts +4 -0
- package/es/components/popover/style/css.d.ts +0 -0
- package/es/components/popover/style/index.d.ts +0 -0
- package/es/components/svg-icon/index.d.ts +1 -1
- package/es/components/svg-icon/index.mjs +7 -7
- package/es/components/svg-icon/src/svg-icon.mjs +5 -0
- package/es/components/svg-icon/src/svg-icon.vue_vue_type_script_setup_true_lang.mjs +52 -0
- package/es/components/svg-icon/src/types.d.ts +3 -2
- package/es/components/svg-icon/style/index.mjs +2 -0
- package/es/components/tabs/index.d.ts +2 -2
- package/es/components/tabs/index.mjs +7 -7
- package/es/components/tabs/src/tabs.mjs +11 -0
- package/es/components/tooltip/index.d.ts +106 -0
- package/es/components/tooltip/index.mjs +7 -0
- package/es/components/tooltip/src/constants.d.ts +7 -0
- package/es/components/tooltip/src/constants.mjs +13 -0
- package/es/components/tooltip/src/content.mjs +5 -0
- package/es/components/tooltip/src/content.vue_vue_type_script_setup_true_lang.mjs +158 -0
- package/es/components/tooltip/src/tooltip.mjs +5 -0
- package/es/components/tooltip/src/tooltip.vue_vue_type_script_setup_true_lang.mjs +258 -0
- package/es/components/tooltip/src/types.d.ts +98 -0
- package/es/components/tooltip/src/use-emit.d.ts +14 -0
- package/es/components/tooltip/src/use-emit.mjs +17 -0
- package/es/components/tooltip/src/use-tooltip.d.ts +9 -0
- package/es/components/tooltip/src/use-tooltip.mjs +103 -0
- package/es/components/tooltip/style/css.d.ts +0 -0
- package/es/components/tooltip/style/index.d.ts +0 -0
- package/es/composables/index.d.ts +7 -5
- package/es/composables/index.mjs +9 -0
- package/es/composables/use-date-format/index.mjs +20 -0
- package/es/composables/use-draggable/index.mjs +61 -0
- package/es/composables/use-namespace/index.d.ts +8 -7
- package/es/composables/use-namespace/index.mjs +21 -20
- package/es/composables/{useOnceFn.d.ts → use-once-fn/index.d.ts} +1 -1
- package/es/composables/use-once-fn/index.mjs +30 -0
- package/es/composables/use-theme/index.d.ts +7 -0
- package/es/composables/use-theme/index.mjs +23 -0
- package/es/composables/use-time-nodes/index.mjs +25 -0
- package/es/composables/use-waterfall-layout/index.mjs +46 -0
- package/es/composables/use-z-index/index.d.ts +11 -0
- package/es/composables/use-z-index/index.mjs +17 -0
- package/es/constants/svgLoading.mjs +4 -39
- package/es/directives/index.mjs +4 -0
- package/es/directives/vDraggable.mjs +13 -12
- package/es/directives/vResizable.mjs +115 -115
- package/es/directives/vSvgLoading.mjs +46 -47
- package/es/index.d.ts +1207 -47
- package/es/index.mjs +44 -78
- package/es/node_modules/.pnpm/@floating-ui_core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +276 -0
- package/es/node_modules/.pnpm/@floating-ui_dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +322 -0
- package/es/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +99 -0
- package/es/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +101 -0
- package/es/node_modules/.pnpm/@floating-ui_vue@2.0.1_vue@3.5.26_typescript@5.9.3_/node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs +111 -0
- package/es/node_modules/.pnpm/@vueuse_core@14.0.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.mjs +450 -119
- package/es/node_modules/.pnpm/@vueuse_shared@14.0.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.mjs +119 -22
- package/es/rappel-ui/resolver.d.ts +3 -1
- package/es/rappel-ui/resolver.mjs +16 -17
- package/es/svg-icons/constants.d.ts +3 -0
- package/es/svg-icons/constants.mjs +114 -0
- package/es/svg-icons/index.d.ts +1010 -0
- package/es/svg-icons/index.mjs +72 -0
- package/es/svg-icons/types.d.ts +5 -0
- package/es/theme-chalk/src/base.css +1 -1
- package/es/theme-chalk/src/button-group.css +1 -0
- package/es/theme-chalk/src/button.css +1 -1
- package/es/theme-chalk/src/colors.css +1 -1
- package/es/theme-chalk/src/filter-panel.css +1 -1
- package/es/theme-chalk/src/svg-icon.css +1 -1
- package/es/types/common.d.ts +1 -0
- package/es/types/component.d.ts +1 -0
- package/es/types/event.d.ts +1 -0
- package/es/types/index.d.ts +4 -0
- package/es/types/theme.d.ts +1 -0
- package/es/utils/index.mjs +3 -0
- package/es/utils/util.d.ts +33 -6
- package/es/utils/util.mjs +198 -151
- package/es/utils/vue/index.d.ts +4 -0
- package/es/utils/vue/index.mjs +33 -32
- package/package.json +2 -2
- package/theme-chalk/base.css +131 -54
- package/theme-chalk/css-vars/_button-group.css +15 -0
- package/theme-chalk/css-vars/_button.css +6 -26
- package/theme-chalk/css-vars/_colors.css +9 -27
- package/theme-chalk/css-vars/_tooltip.css +15 -0
- package/theme-chalk/function/_button.css +6 -26
- package/theme-chalk/function/index.css +6 -26
- package/theme-chalk/index.css +795 -222
- package/theme-chalk/mixins/_base.css +15 -0
- package/theme-chalk/mixins/_button.css +7 -24
- package/theme-chalk/mixins/_tooltip.css +18 -0
- package/theme-chalk/mixins/index.css +7 -24
- package/theme-chalk/re-button-group.css +68 -0
- package/theme-chalk/re-button.css +556 -192
- package/theme-chalk/re-colors.css +10 -23
- package/theme-chalk/re-filter-panel.css +7 -24
- package/theme-chalk/re-popover.css +30 -0
- package/theme-chalk/re-svg-icon.css +7 -24
- package/theme-chalk/re-tooltip.css +62 -0
- package/theme-chalk/root-vars.css +121 -52
- package/theme-chalk/src/base.scss +16 -14
- package/theme-chalk/src/button-group.scss +63 -0
- package/theme-chalk/src/button.scss +50 -21
- package/theme-chalk/src/colors.scss +9 -1
- package/theme-chalk/src/css-vars/_button-group.scss +12 -0
- package/theme-chalk/src/css-vars/_button.scss +44 -3
- package/theme-chalk/src/css-vars/_colors.scss +55 -12
- package/theme-chalk/src/css-vars/_namespace.scss +3 -1
- package/theme-chalk/src/css-vars/_tooltip.scss +23 -0
- package/theme-chalk/src/filter-panel.scss +1 -1
- package/theme-chalk/src/function/index.scss +55 -47
- package/theme-chalk/src/index.scss +8 -5
- package/theme-chalk/src/mixins/_base.scss +14 -0
- package/theme-chalk/src/mixins/_button.scss +135 -55
- package/theme-chalk/src/mixins/_tooltip.scss +37 -0
- package/theme-chalk/src/mixins/index.scss +27 -3
- package/theme-chalk/src/popover.scss +17 -0
- package/theme-chalk/src/root-vars.scss +7 -0
- package/theme-chalk/src/svg-icon.scss +1 -1
- package/theme-chalk/src/tooltip.scss +61 -0
- package/umd/index.js +10 -11
- package/cjs/components/button/src/button.d.ts +0 -3
- package/cjs/components/button/src/button.vue.js +0 -1
- package/cjs/components/button/src/button.vue2.js +0 -1
- package/cjs/components/colors/src/colors.vue.js +0 -1
- package/cjs/components/colors/src/colors.vue2.js +0 -1
- package/cjs/components/colors/src/neutral-color.vue.js +0 -1
- package/cjs/components/colors/src/neutral-color.vue2.js +0 -1
- package/cjs/components/colors/src/primary-color.vue.js +0 -1
- package/cjs/components/colors/src/primary-color.vue2.js +0 -1
- package/cjs/components/colors/src/secondary-color.vue.js +0 -1
- package/cjs/components/colors/src/secondary-color.vue2.js +0 -1
- package/cjs/components/filter-panel/src/filter-panel.vue.js +0 -1
- package/cjs/components/filter-panel/src/filter-panel.vue2.js +0 -1
- package/cjs/components/input/src/input.vue.js +0 -1
- package/cjs/components/input/src/input.vue2.js +0 -1
- package/cjs/components/svg-icon/src/svg-icon.vue.js +0 -1
- package/cjs/components/svg-icon/src/svg-icon.vue2.js +0 -1
- package/cjs/components/tabs/src/tabs.vue.js +0 -1
- package/cjs/composables/useDateFormat.js +0 -1
- package/cjs/composables/useDraggable.js +0 -1
- package/cjs/composables/useOnceFn.js +0 -1
- package/cjs/composables/useTimeNodes.js +0 -1
- package/cjs/composables/useWaterFallLayout.js +0 -1
- package/cjs/package.json.js +0 -1
- package/es/components/button/src/button.d.ts +0 -3
- package/es/components/button/src/button.vue.mjs +0 -74
- package/es/components/button/src/button.vue2.mjs +0 -4
- package/es/components/colors/src/colors.vue.mjs +0 -21
- package/es/components/colors/src/colors.vue2.mjs +0 -4
- package/es/components/colors/src/neutral-color.vue.mjs +0 -199
- package/es/components/colors/src/neutral-color.vue2.mjs +0 -4
- package/es/components/colors/src/primary-color.vue.mjs +0 -38
- package/es/components/colors/src/primary-color.vue2.mjs +0 -4
- package/es/components/colors/src/secondary-color.vue.mjs +0 -61
- package/es/components/colors/src/secondary-color.vue2.mjs +0 -4
- package/es/components/filter-panel/src/filter-panel.vue.mjs +0 -158
- package/es/components/filter-panel/src/filter-panel.vue2.mjs +0 -4
- package/es/components/input/src/input.vue.mjs +0 -15
- package/es/components/input/src/input.vue2.mjs +0 -4
- package/es/components/svg-icon/src/svg-icon.vue.mjs +0 -33
- package/es/components/svg-icon/src/svg-icon.vue2.mjs +0 -4
- package/es/components/tabs/src/tabs.vue.mjs +0 -17
- package/es/composables/useDateFormat.mjs +0 -20
- package/es/composables/useDraggable.mjs +0 -55
- package/es/composables/useOnceFn.mjs +0 -32
- package/es/composables/useTimeNodes.mjs +0 -24
- package/es/composables/useWaterFallLayout.mjs +0 -51
- package/es/package.json.mjs +0 -4
- package/global.d.ts +0 -7
- package/theme-chalk/pu-button.css +0 -446
- package/theme-chalk/src/common/_function.scss +0 -46
- /package/cjs/composables/{useDateFormat.d.ts → use-date-format/index.d.ts} +0 -0
- /package/cjs/composables/{useDraggable.d.ts → use-draggable/index.d.ts} +0 -0
- /package/cjs/composables/{useTimeNodes.d.ts → use-time-nodes/index.d.ts} +0 -0
- /package/cjs/composables/{useWaterFallLayout.d.ts → use-waterfall-layout/index.d.ts} +0 -0
- /package/es/composables/{useDateFormat.d.ts → use-date-format/index.d.ts} +0 -0
- /package/es/composables/{useDraggable.d.ts → use-draggable/index.d.ts} +0 -0
- /package/es/composables/{useTimeNodes.d.ts → use-time-nodes/index.d.ts} +0 -0
- /package/es/composables/{useWaterFallLayout.d.ts → use-waterfall-layout/index.d.ts} +0 -0
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
import { createCoords as e, floor as t, max as n, min as r, rectToClientRect as i, round as a } from "../../../../../@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs";
|
|
2
|
+
import { arrow as o, computePosition as s, flip as c, inline as l, offset as u } from "../../../../../@floating-ui_core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs";
|
|
3
|
+
import { getComputedStyle as d, getContainingBlock as f, getDocumentElement as p, getFrameElement as m, getNodeName as h, getNodeScroll as g, getOverflowAncestors as _, getParentNode as v, getWindow as y, isContainingBlock as b, isElement as x, isHTMLElement as S, isLastTraversableNode as C, isOverflowElement as w, isTableElement as T, isTopLayer as E, isWebKit as D } from "../../../../../@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs";
|
|
4
|
+
//#region node_modules/.pnpm/@floating-ui+dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
5
|
+
function O(e) {
|
|
6
|
+
let t = d(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = S(e), o = i ? e.offsetWidth : n, s = i ? e.offsetHeight : r, c = a(n) !== o || a(r) !== s;
|
|
7
|
+
return c && (n = o, r = s), {
|
|
8
|
+
width: n,
|
|
9
|
+
height: r,
|
|
10
|
+
$: c
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
function k(e) {
|
|
14
|
+
return x(e) ? e : e.contextElement;
|
|
15
|
+
}
|
|
16
|
+
function A(t) {
|
|
17
|
+
let n = k(t);
|
|
18
|
+
if (!S(n)) return e(1);
|
|
19
|
+
let r = n.getBoundingClientRect(), { width: i, height: o, $: s } = O(n), c = (s ? a(r.width) : r.width) / i, l = (s ? a(r.height) : r.height) / o;
|
|
20
|
+
return (!c || !Number.isFinite(c)) && (c = 1), (!l || !Number.isFinite(l)) && (l = 1), {
|
|
21
|
+
x: c,
|
|
22
|
+
y: l
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
var j = /*#__PURE__*/ e(0);
|
|
26
|
+
function M(e) {
|
|
27
|
+
let t = y(e);
|
|
28
|
+
return !D() || !t.visualViewport ? j : {
|
|
29
|
+
x: t.visualViewport.offsetLeft,
|
|
30
|
+
y: t.visualViewport.offsetTop
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
function N(e, t, n) {
|
|
34
|
+
return t === void 0 && (t = !1), !!n && t && n === y(e);
|
|
35
|
+
}
|
|
36
|
+
function P(t, n, r, a) {
|
|
37
|
+
n === void 0 && (n = !1), r === void 0 && (r = !1);
|
|
38
|
+
let o = t.getBoundingClientRect(), s = k(t), c = e(1);
|
|
39
|
+
n && (a ? x(a) && (c = A(a)) : c = A(t));
|
|
40
|
+
let l = N(s, r, a) ? M(s) : e(0), u = (o.left + l.x) / c.x, f = (o.top + l.y) / c.y, p = o.width / c.x, h = o.height / c.y;
|
|
41
|
+
if (s && a) {
|
|
42
|
+
let e = y(s), t = x(a) ? y(a) : a, n = e, r = m(n);
|
|
43
|
+
for (; r && t !== n;) {
|
|
44
|
+
let e = A(r), t = r.getBoundingClientRect(), i = d(r), a = t.left + (r.clientLeft + parseFloat(i.paddingLeft)) * e.x, o = t.top + (r.clientTop + parseFloat(i.paddingTop)) * e.y;
|
|
45
|
+
u *= e.x, f *= e.y, p *= e.x, h *= e.y, u += a, f += o, n = y(r), r = m(n);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
return i({
|
|
49
|
+
width: p,
|
|
50
|
+
height: h,
|
|
51
|
+
x: u,
|
|
52
|
+
y: f
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
function F(e, t) {
|
|
56
|
+
let n = g(e).scrollLeft;
|
|
57
|
+
return t ? t.left + n : P(p(e)).left + n;
|
|
58
|
+
}
|
|
59
|
+
function I(e, t) {
|
|
60
|
+
let n = e.getBoundingClientRect();
|
|
61
|
+
return {
|
|
62
|
+
x: n.left + t.scrollLeft - F(e, n),
|
|
63
|
+
y: n.top + t.scrollTop
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
function L(t) {
|
|
67
|
+
let { elements: n, rect: r, offsetParent: i, strategy: a } = t, o = a === "fixed", s = p(i), c = n ? E(n.floating) : !1;
|
|
68
|
+
if (i === s || c && o) return r;
|
|
69
|
+
let l = {
|
|
70
|
+
scrollLeft: 0,
|
|
71
|
+
scrollTop: 0
|
|
72
|
+
}, u = e(1), d = e(0), f = S(i);
|
|
73
|
+
if ((f || !o) && ((h(i) !== "body" || w(s)) && (l = g(i)), f)) {
|
|
74
|
+
let e = P(i);
|
|
75
|
+
u = A(i), d.x = e.x + i.clientLeft, d.y = e.y + i.clientTop;
|
|
76
|
+
}
|
|
77
|
+
let m = s && !f && !o ? I(s, l) : e(0);
|
|
78
|
+
return {
|
|
79
|
+
width: r.width * u.x,
|
|
80
|
+
height: r.height * u.y,
|
|
81
|
+
x: r.x * u.x - l.scrollLeft * u.x + d.x + m.x,
|
|
82
|
+
y: r.y * u.y - l.scrollTop * u.y + d.y + m.y
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
function R(e) {
|
|
86
|
+
return e.getClientRects ? Array.from(e.getClientRects()) : [];
|
|
87
|
+
}
|
|
88
|
+
function z(e) {
|
|
89
|
+
let t = g(e), r = e.ownerDocument.body, i = n(e.scrollWidth, e.clientWidth, r.scrollWidth, r.clientWidth), a = n(e.scrollHeight, e.clientHeight, r.scrollHeight, r.clientHeight), o = -t.scrollLeft + F(e), s = -t.scrollTop;
|
|
90
|
+
return d(r).direction === "rtl" && (o += n(e.clientWidth, r.clientWidth) - i), {
|
|
91
|
+
width: i,
|
|
92
|
+
height: a,
|
|
93
|
+
x: o,
|
|
94
|
+
y: s
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
var B = 25;
|
|
98
|
+
function V(e, t, n) {
|
|
99
|
+
n === void 0 && (n = "viewport");
|
|
100
|
+
let r = n === "layoutViewport", i = y(e), a = p(e), o = i.visualViewport, s = a.clientWidth, c = a.clientHeight, l = 0, u = 0;
|
|
101
|
+
if (o) {
|
|
102
|
+
let e = !D() || t === "fixed";
|
|
103
|
+
r ? e || (l = -o.offsetLeft, u = -o.offsetTop) : (s = o.width, c = o.height, e && (l = o.offsetLeft, u = o.offsetTop));
|
|
104
|
+
}
|
|
105
|
+
if (F(a) <= 0) {
|
|
106
|
+
let e = a.ownerDocument, t = e.body, n = getComputedStyle(t), r = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, i = Math.abs(a.clientWidth - t.clientWidth - r), o = getComputedStyle(a).scrollbarGutter === "stable both-edges" ? i / 2 : i;
|
|
107
|
+
o <= B && (s -= o);
|
|
108
|
+
}
|
|
109
|
+
return {
|
|
110
|
+
width: s,
|
|
111
|
+
height: c,
|
|
112
|
+
x: l,
|
|
113
|
+
y: u
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
function H(e, t) {
|
|
117
|
+
let n = P(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = A(e);
|
|
118
|
+
return {
|
|
119
|
+
width: e.clientWidth * a.x,
|
|
120
|
+
height: e.clientHeight * a.y,
|
|
121
|
+
x: i * a.x,
|
|
122
|
+
y: r * a.y
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
function U(e, t, n) {
|
|
126
|
+
let r;
|
|
127
|
+
if (t === "viewport" || t === "layoutViewport") r = V(e, n, t);
|
|
128
|
+
else if (t === "document") r = z(p(e));
|
|
129
|
+
else if (x(t)) r = H(t, n);
|
|
130
|
+
else {
|
|
131
|
+
let n = M(e);
|
|
132
|
+
r = {
|
|
133
|
+
x: t.x - n.x,
|
|
134
|
+
y: t.y - n.y,
|
|
135
|
+
width: t.width,
|
|
136
|
+
height: t.height
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
return i(r);
|
|
140
|
+
}
|
|
141
|
+
function W(e, t) {
|
|
142
|
+
let n = t.get(e);
|
|
143
|
+
if (n) return n;
|
|
144
|
+
let r = _(e, [], !1).filter((e) => x(e) && h(e) !== "body"), i = null, a = d(e).position === "fixed", o = a ? v(e) : e;
|
|
145
|
+
for (; x(o) && !C(o);) {
|
|
146
|
+
let e = d(o), t = b(o), n = i ? i.position : a ? "fixed" : "";
|
|
147
|
+
!t && (n === "fixed" || n === "absolute" && e.position === "static") ? r = r.filter((e) => e !== o) : i = e, o = v(o);
|
|
148
|
+
}
|
|
149
|
+
return t.set(e, r), r;
|
|
150
|
+
}
|
|
151
|
+
function G(e) {
|
|
152
|
+
let { element: t, boundary: i, rootBoundary: a, strategy: o } = e, s = [...i === "clippingAncestors" ? E(t) ? [] : W(t, this._c) : [].concat(i), a], c = U(t, s[0], o), l = c.top, u = c.right, d = c.bottom, f = c.left;
|
|
153
|
+
for (let e = 1; e < s.length; e++) {
|
|
154
|
+
let i = U(t, s[e], o);
|
|
155
|
+
l = n(i.top, l), u = r(i.right, u), d = r(i.bottom, d), f = n(i.left, f);
|
|
156
|
+
}
|
|
157
|
+
return {
|
|
158
|
+
width: u - f,
|
|
159
|
+
height: d - l,
|
|
160
|
+
x: f,
|
|
161
|
+
y: l
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
function K(e) {
|
|
165
|
+
let { width: t, height: n } = O(e);
|
|
166
|
+
return {
|
|
167
|
+
width: t,
|
|
168
|
+
height: n
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
function q(t, n, r) {
|
|
172
|
+
let i = S(n), a = p(n), o = r === "fixed", s = P(t, !0, o, n), c = {
|
|
173
|
+
scrollLeft: 0,
|
|
174
|
+
scrollTop: 0
|
|
175
|
+
}, l = e(0);
|
|
176
|
+
if ((i || !o) && ((h(n) !== "body" || w(a)) && (c = g(n)), i)) {
|
|
177
|
+
let e = P(n, !0, o, n);
|
|
178
|
+
l.x = e.x + n.clientLeft, l.y = e.y + n.clientTop;
|
|
179
|
+
}
|
|
180
|
+
!i && a && (l.x = F(a));
|
|
181
|
+
let u = a && !i && !o ? I(a, c) : e(0);
|
|
182
|
+
return {
|
|
183
|
+
x: s.left + c.scrollLeft - l.x - u.x,
|
|
184
|
+
y: s.top + c.scrollTop - l.y - u.y,
|
|
185
|
+
width: s.width,
|
|
186
|
+
height: s.height
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
function J(e) {
|
|
190
|
+
return d(e).position === "static";
|
|
191
|
+
}
|
|
192
|
+
function Y(e, t) {
|
|
193
|
+
if (!S(e) || d(e).position === "fixed") return null;
|
|
194
|
+
if (t) return t(e);
|
|
195
|
+
let n = e.offsetParent;
|
|
196
|
+
return p(e) === n && (n = n.ownerDocument.body), n;
|
|
197
|
+
}
|
|
198
|
+
function X(e, t) {
|
|
199
|
+
let n = y(e);
|
|
200
|
+
if (E(e)) return n;
|
|
201
|
+
if (!S(e)) {
|
|
202
|
+
let t = v(e);
|
|
203
|
+
for (; t && !C(t);) {
|
|
204
|
+
if (x(t) && !J(t)) return t;
|
|
205
|
+
t = v(t);
|
|
206
|
+
}
|
|
207
|
+
return n;
|
|
208
|
+
}
|
|
209
|
+
let r = Y(e, t);
|
|
210
|
+
for (; r && T(r) && J(r);) r = Y(r, t);
|
|
211
|
+
return r && C(r) && J(r) && !b(r) ? n : r || f(e) || n;
|
|
212
|
+
}
|
|
213
|
+
var Z = async function(e) {
|
|
214
|
+
let t = this.getOffsetParent || X, n = this.getDimensions, r = await n(e.floating);
|
|
215
|
+
return {
|
|
216
|
+
reference: q(e.reference, await t(e.floating), e.strategy),
|
|
217
|
+
floating: {
|
|
218
|
+
x: 0,
|
|
219
|
+
y: 0,
|
|
220
|
+
width: r.width,
|
|
221
|
+
height: r.height
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
};
|
|
225
|
+
function ee(e) {
|
|
226
|
+
return d(e).direction === "rtl";
|
|
227
|
+
}
|
|
228
|
+
var Q = {
|
|
229
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: L,
|
|
230
|
+
getDocumentElement: p,
|
|
231
|
+
getClippingRect: G,
|
|
232
|
+
getOffsetParent: X,
|
|
233
|
+
getElementRects: Z,
|
|
234
|
+
getClientRects: R,
|
|
235
|
+
getDimensions: K,
|
|
236
|
+
getScale: A,
|
|
237
|
+
isElement: x,
|
|
238
|
+
isRTL: ee
|
|
239
|
+
};
|
|
240
|
+
function $(e, t) {
|
|
241
|
+
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
242
|
+
}
|
|
243
|
+
function te(e, i, a) {
|
|
244
|
+
let o = null, s, c = p(e);
|
|
245
|
+
function l() {
|
|
246
|
+
var e;
|
|
247
|
+
clearTimeout(s), (e = o) == null || e.disconnect(), o = null;
|
|
248
|
+
}
|
|
249
|
+
function u(a, d) {
|
|
250
|
+
a === void 0 && (a = !1), d === void 0 && (d = 1), l();
|
|
251
|
+
let f = e.getBoundingClientRect(), { left: p, top: m, width: h, height: g } = f;
|
|
252
|
+
if (a || i(), !h || !g) return;
|
|
253
|
+
let _ = t(m), v = t(c.clientWidth - (p + h)), y = t(c.clientHeight - (m + g)), b = t(p), x = {
|
|
254
|
+
rootMargin: -_ + "px " + -v + "px " + -y + "px " + -b + "px",
|
|
255
|
+
threshold: n(0, r(1, d)) || 1
|
|
256
|
+
}, S = !0;
|
|
257
|
+
function C(t) {
|
|
258
|
+
let n = t[0].intersectionRatio;
|
|
259
|
+
if (!$(f, e.getBoundingClientRect())) return u();
|
|
260
|
+
if (n !== d) {
|
|
261
|
+
if (!S) return u();
|
|
262
|
+
n ? u(!1, n) : s = setTimeout(() => {
|
|
263
|
+
u(!1, 1e-7);
|
|
264
|
+
}, 1e3);
|
|
265
|
+
}
|
|
266
|
+
S = !1;
|
|
267
|
+
}
|
|
268
|
+
try {
|
|
269
|
+
o = new IntersectionObserver(C, {
|
|
270
|
+
...x,
|
|
271
|
+
root: c.ownerDocument
|
|
272
|
+
});
|
|
273
|
+
} catch {
|
|
274
|
+
o = new IntersectionObserver(C, x);
|
|
275
|
+
}
|
|
276
|
+
o.observe(e);
|
|
277
|
+
}
|
|
278
|
+
let d = y(e), f = () => u(a);
|
|
279
|
+
return d.addEventListener("resize", f), u(!0), () => {
|
|
280
|
+
d.removeEventListener("resize", f), l();
|
|
281
|
+
};
|
|
282
|
+
}
|
|
283
|
+
function ne(e, t, n, r) {
|
|
284
|
+
r === void 0 && (r = {});
|
|
285
|
+
let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = k(e), u = i || a ? [...l ? _(l) : [], ...t ? _(t) : []] : [];
|
|
286
|
+
u.forEach((e) => {
|
|
287
|
+
i && e.addEventListener("scroll", n), a && e.addEventListener("resize", n);
|
|
288
|
+
});
|
|
289
|
+
let d = l && s ? te(l, n, a) : null, f = -1, p = null;
|
|
290
|
+
o && (p = new ResizeObserver((e) => {
|
|
291
|
+
let [r] = e;
|
|
292
|
+
r && r.target === l && p && t && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
293
|
+
var e;
|
|
294
|
+
(e = p) == null || e.observe(t);
|
|
295
|
+
})), n();
|
|
296
|
+
}), l && !c && p.observe(l), t && p.observe(t));
|
|
297
|
+
let m, h = c ? P(e) : null;
|
|
298
|
+
c && g();
|
|
299
|
+
function g() {
|
|
300
|
+
let t = P(e);
|
|
301
|
+
h && !$(h, t) && n(), h = t, m = requestAnimationFrame(g);
|
|
302
|
+
}
|
|
303
|
+
return n(), () => {
|
|
304
|
+
var e;
|
|
305
|
+
u.forEach((e) => {
|
|
306
|
+
i && e.removeEventListener("scroll", n), a && e.removeEventListener("resize", n);
|
|
307
|
+
}), d == null || d(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
|
|
308
|
+
};
|
|
309
|
+
}
|
|
310
|
+
var re = u, ie = c, ae = o, oe = l, se = (e, t, n) => {
|
|
311
|
+
let r = /* @__PURE__ */ new Map(), i = n == null ? {} : n, a = {
|
|
312
|
+
...Q,
|
|
313
|
+
...i.platform,
|
|
314
|
+
_c: r
|
|
315
|
+
};
|
|
316
|
+
return s(e, t, {
|
|
317
|
+
...i,
|
|
318
|
+
platform: a
|
|
319
|
+
});
|
|
320
|
+
};
|
|
321
|
+
//#endregion
|
|
322
|
+
export { ae as arrow, ne as autoUpdate, se as computePosition, ie as flip, oe as inline, re as offset, Q as platform };
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
2
|
+
function e() {
|
|
3
|
+
return typeof window < "u";
|
|
4
|
+
}
|
|
5
|
+
function t(e) {
|
|
6
|
+
return i(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
7
|
+
}
|
|
8
|
+
function n(e) {
|
|
9
|
+
var t;
|
|
10
|
+
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
11
|
+
}
|
|
12
|
+
function r(e) {
|
|
13
|
+
var t;
|
|
14
|
+
return (t = (i(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
15
|
+
}
|
|
16
|
+
function i(t) {
|
|
17
|
+
return e() ? t instanceof Node || t instanceof n(t).Node : !1;
|
|
18
|
+
}
|
|
19
|
+
function a(t) {
|
|
20
|
+
return e() ? t instanceof Element || t instanceof n(t).Element : !1;
|
|
21
|
+
}
|
|
22
|
+
function o(t) {
|
|
23
|
+
return e() ? t instanceof HTMLElement || t instanceof n(t).HTMLElement : !1;
|
|
24
|
+
}
|
|
25
|
+
function s(t) {
|
|
26
|
+
return !e() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof n(t).ShadowRoot;
|
|
27
|
+
}
|
|
28
|
+
function c(e) {
|
|
29
|
+
let { overflow: t, overflowX: n, overflowY: r, display: i } = y(e);
|
|
30
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
31
|
+
}
|
|
32
|
+
function l(e) {
|
|
33
|
+
return /^(table|td|th)$/.test(t(e));
|
|
34
|
+
}
|
|
35
|
+
function u(e) {
|
|
36
|
+
try {
|
|
37
|
+
if (e.matches(":popover-open")) return !0;
|
|
38
|
+
} catch {}
|
|
39
|
+
try {
|
|
40
|
+
return e.matches(":modal");
|
|
41
|
+
} catch {
|
|
42
|
+
return !1;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
var d = /transform|translate|scale|rotate|perspective|filter/, f = /paint|layout|strict|content/, p = (e) => !!e && e !== "none", m;
|
|
46
|
+
function h(e) {
|
|
47
|
+
let t = a(e) ? y(e) : e;
|
|
48
|
+
return p(t.transform) || p(t.translate) || p(t.scale) || p(t.rotate) || p(t.perspective) || !_() && (p(t.backdropFilter) || p(t.filter)) || d.test(t.willChange || "") || f.test(t.contain || "");
|
|
49
|
+
}
|
|
50
|
+
function g(e) {
|
|
51
|
+
let t = x(e);
|
|
52
|
+
for (; o(t) && !v(t);) {
|
|
53
|
+
if (h(t)) return t;
|
|
54
|
+
if (u(t)) return null;
|
|
55
|
+
t = x(t);
|
|
56
|
+
}
|
|
57
|
+
return null;
|
|
58
|
+
}
|
|
59
|
+
function _() {
|
|
60
|
+
return m == null && (m = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), m;
|
|
61
|
+
}
|
|
62
|
+
function v(e) {
|
|
63
|
+
return /^(html|body|#document)$/.test(t(e));
|
|
64
|
+
}
|
|
65
|
+
function y(e) {
|
|
66
|
+
return n(e).getComputedStyle(e);
|
|
67
|
+
}
|
|
68
|
+
function b(e) {
|
|
69
|
+
return a(e) ? {
|
|
70
|
+
scrollLeft: e.scrollLeft,
|
|
71
|
+
scrollTop: e.scrollTop
|
|
72
|
+
} : {
|
|
73
|
+
scrollLeft: e.scrollX,
|
|
74
|
+
scrollTop: e.scrollY
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
function x(e) {
|
|
78
|
+
if (t(e) === "html") return e;
|
|
79
|
+
let n = e.assignedSlot || e.parentNode || s(e) && e.host || r(e);
|
|
80
|
+
return s(n) ? n.host : n;
|
|
81
|
+
}
|
|
82
|
+
function S(e) {
|
|
83
|
+
let t = x(e);
|
|
84
|
+
return v(t) ? (e.ownerDocument || e).body : o(t) && c(t) ? t : S(t);
|
|
85
|
+
}
|
|
86
|
+
function C(e, t, r) {
|
|
87
|
+
var i;
|
|
88
|
+
t === void 0 && (t = []), r === void 0 && (r = !0);
|
|
89
|
+
let a = S(e), o = a === ((i = e.ownerDocument) == null ? void 0 : i.body), s = n(a);
|
|
90
|
+
if (o) {
|
|
91
|
+
let e = w(s);
|
|
92
|
+
return t.concat(s, s.visualViewport || [], c(a) ? a : [], e && r ? C(e) : []);
|
|
93
|
+
} else return t.concat(a, C(a, [], r));
|
|
94
|
+
}
|
|
95
|
+
function w(e) {
|
|
96
|
+
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
97
|
+
}
|
|
98
|
+
//#endregion
|
|
99
|
+
export { y as getComputedStyle, g as getContainingBlock, r as getDocumentElement, w as getFrameElement, S as getNearestOverflowAncestor, t as getNodeName, b as getNodeScroll, C as getOverflowAncestors, x as getParentNode, n as getWindow, h as isContainingBlock, a as isElement, o as isHTMLElement, v as isLastTraversableNode, i as isNode, c as isOverflowElement, s as isShadowRoot, l as isTableElement, u as isTopLayer, _ as isWebKit };
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
2
|
+
var e = Math.min, t = Math.max, n = Math.round, r = Math.floor, i = (e) => ({
|
|
3
|
+
x: e,
|
|
4
|
+
y: e
|
|
5
|
+
}), a = {
|
|
6
|
+
left: "right",
|
|
7
|
+
right: "left",
|
|
8
|
+
bottom: "top",
|
|
9
|
+
top: "bottom"
|
|
10
|
+
};
|
|
11
|
+
function o(n, r, i) {
|
|
12
|
+
return t(n, e(r, i));
|
|
13
|
+
}
|
|
14
|
+
function s(e, t) {
|
|
15
|
+
return typeof e == "function" ? e(t) : e;
|
|
16
|
+
}
|
|
17
|
+
function c(e) {
|
|
18
|
+
return e.split("-")[0];
|
|
19
|
+
}
|
|
20
|
+
function l(e) {
|
|
21
|
+
return e.split("-")[1];
|
|
22
|
+
}
|
|
23
|
+
function u(e) {
|
|
24
|
+
return e === "x" ? "y" : "x";
|
|
25
|
+
}
|
|
26
|
+
function d(e) {
|
|
27
|
+
return e === "y" ? "height" : "width";
|
|
28
|
+
}
|
|
29
|
+
function f(e) {
|
|
30
|
+
let t = e[0];
|
|
31
|
+
return t === "t" || t === "b" ? "y" : "x";
|
|
32
|
+
}
|
|
33
|
+
function p(e) {
|
|
34
|
+
return u(f(e));
|
|
35
|
+
}
|
|
36
|
+
function m(e, t, n) {
|
|
37
|
+
n === void 0 && (n = !1);
|
|
38
|
+
let r = l(e), i = p(e), a = d(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
39
|
+
return t.reference[a] > t.floating[a] && (o = C(o)), [o, C(o)];
|
|
40
|
+
}
|
|
41
|
+
function h(e) {
|
|
42
|
+
let t = C(e);
|
|
43
|
+
return [
|
|
44
|
+
g(e),
|
|
45
|
+
t,
|
|
46
|
+
g(t)
|
|
47
|
+
];
|
|
48
|
+
}
|
|
49
|
+
function g(e) {
|
|
50
|
+
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
|
|
51
|
+
}
|
|
52
|
+
var _ = ["left", "right"], v = ["right", "left"], y = ["top", "bottom"], b = ["bottom", "top"];
|
|
53
|
+
function x(e, t, n) {
|
|
54
|
+
switch (e) {
|
|
55
|
+
case "top":
|
|
56
|
+
case "bottom": return n ? t ? v : _ : t ? _ : v;
|
|
57
|
+
case "left":
|
|
58
|
+
case "right": return t ? y : b;
|
|
59
|
+
default: return [];
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
function S(e, t, n, r) {
|
|
63
|
+
let i = l(e), a = x(c(e), n === "start", r);
|
|
64
|
+
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(g)))), a;
|
|
65
|
+
}
|
|
66
|
+
function C(e) {
|
|
67
|
+
let t = c(e);
|
|
68
|
+
return a[t] + e.slice(t.length);
|
|
69
|
+
}
|
|
70
|
+
function w(e) {
|
|
71
|
+
var t, n, r, i;
|
|
72
|
+
return {
|
|
73
|
+
top: (t = e.top) == null ? 0 : t,
|
|
74
|
+
right: (n = e.right) == null ? 0 : n,
|
|
75
|
+
bottom: (r = e.bottom) == null ? 0 : r,
|
|
76
|
+
left: (i = e.left) == null ? 0 : i
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
function T(e) {
|
|
80
|
+
return typeof e == "number" ? {
|
|
81
|
+
top: e,
|
|
82
|
+
right: e,
|
|
83
|
+
bottom: e,
|
|
84
|
+
left: e
|
|
85
|
+
} : w(e);
|
|
86
|
+
}
|
|
87
|
+
function E(e) {
|
|
88
|
+
let { x: t, y: n, width: r, height: i } = e;
|
|
89
|
+
return {
|
|
90
|
+
width: r,
|
|
91
|
+
height: i,
|
|
92
|
+
top: n,
|
|
93
|
+
left: t,
|
|
94
|
+
right: t + r,
|
|
95
|
+
bottom: n + i,
|
|
96
|
+
x: t,
|
|
97
|
+
y: n
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
//#endregion
|
|
101
|
+
export { o as clamp, i as createCoords, s as evaluate, w as expandPaddingObject, r as floor, l as getAlignment, p as getAlignmentAxis, m as getAlignmentSides, d as getAxisLength, h as getExpandedPlacements, g as getOppositeAlignmentPlacement, u as getOppositeAxis, S as getOppositeAxisPlacements, C as getOppositePlacement, T as getPaddingObject, c as getSide, f as getSideAxis, t as max, e as min, E as rectToClientRect, n as round };
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { getNodeName as e, isNode as t } from "../../../../../@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs";
|
|
2
|
+
import { arrow as n, autoUpdate as r, computePosition as i, flip as a, inline as o, offset as s } from "../../../../../@floating-ui_dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs";
|
|
3
|
+
import { computed as c, getCurrentScope as l, onScopeDispose as u, ref as d, shallowReadonly as f, shallowRef as p, toValue as m, watch as h } from "vue";
|
|
4
|
+
//#region node_modules/.pnpm/@floating-ui+vue@2.0.1_vue@3.5.26_typescript@5.9.3_/node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs
|
|
5
|
+
function g(e) {
|
|
6
|
+
return typeof e == "object" && !!e && "$el" in e;
|
|
7
|
+
}
|
|
8
|
+
function _(n) {
|
|
9
|
+
if (g(n)) {
|
|
10
|
+
let r = n.$el;
|
|
11
|
+
return t(r) && e(r) === "#comment" ? null : r;
|
|
12
|
+
}
|
|
13
|
+
return n;
|
|
14
|
+
}
|
|
15
|
+
function v(e) {
|
|
16
|
+
return {
|
|
17
|
+
name: "arrow",
|
|
18
|
+
options: e,
|
|
19
|
+
fn(t) {
|
|
20
|
+
let r = _(m(e.element));
|
|
21
|
+
return r == null ? {} : n({
|
|
22
|
+
element: r,
|
|
23
|
+
padding: e.padding
|
|
24
|
+
}).fn(t);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
function y(e) {
|
|
29
|
+
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
30
|
+
}
|
|
31
|
+
function b(e, t) {
|
|
32
|
+
let n = y(e);
|
|
33
|
+
return Math.round(t * n) / n;
|
|
34
|
+
}
|
|
35
|
+
function x(e, t, n) {
|
|
36
|
+
n === void 0 && (n = {});
|
|
37
|
+
let r = n.whileElementsMounted, a = c(() => {
|
|
38
|
+
var e;
|
|
39
|
+
return (e = m(n.open)) == null || e;
|
|
40
|
+
}), o = c(() => m(n.middleware)), s = c(() => {
|
|
41
|
+
var e;
|
|
42
|
+
return (e = m(n.placement)) == null ? "bottom" : e;
|
|
43
|
+
}), g = c(() => {
|
|
44
|
+
var e;
|
|
45
|
+
return (e = m(n.strategy)) == null ? "absolute" : e;
|
|
46
|
+
}), v = c(() => {
|
|
47
|
+
var e;
|
|
48
|
+
return (e = m(n.transform)) == null || e;
|
|
49
|
+
}), x = c(() => _(e.value)), S = c(() => _(t.value)), C = d(0), w = d(0), T = d(g.value), E = d(s.value), D = p({}), O = d(!1), k = c(() => {
|
|
50
|
+
let e = {
|
|
51
|
+
position: T.value,
|
|
52
|
+
left: "0",
|
|
53
|
+
top: "0"
|
|
54
|
+
};
|
|
55
|
+
if (!S.value) return e;
|
|
56
|
+
let t = b(S.value, C.value), n = b(S.value, w.value);
|
|
57
|
+
return v.value ? {
|
|
58
|
+
...e,
|
|
59
|
+
transform: "translate(" + t + "px, " + n + "px)",
|
|
60
|
+
...y(S.value) >= 1.5 && { willChange: "transform" }
|
|
61
|
+
} : {
|
|
62
|
+
position: T.value,
|
|
63
|
+
left: t + "px",
|
|
64
|
+
top: n + "px"
|
|
65
|
+
};
|
|
66
|
+
}), A;
|
|
67
|
+
function j() {
|
|
68
|
+
if (x.value == null || S.value == null) return;
|
|
69
|
+
let e = a.value;
|
|
70
|
+
i(x.value, S.value, {
|
|
71
|
+
middleware: o.value,
|
|
72
|
+
placement: s.value,
|
|
73
|
+
strategy: g.value
|
|
74
|
+
}).then((t) => {
|
|
75
|
+
C.value = t.x, w.value = t.y, T.value = t.strategy, E.value = t.placement, D.value = t.middlewareData, O.value = e !== !1;
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
function M() {
|
|
79
|
+
typeof A == "function" && (A(), A = void 0);
|
|
80
|
+
}
|
|
81
|
+
function N() {
|
|
82
|
+
if (M(), r === void 0) {
|
|
83
|
+
j();
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
if (x.value != null && S.value != null) {
|
|
87
|
+
A = r(x.value, S.value, j);
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
function P() {
|
|
92
|
+
a.value || (O.value = !1);
|
|
93
|
+
}
|
|
94
|
+
return h([
|
|
95
|
+
o,
|
|
96
|
+
s,
|
|
97
|
+
g,
|
|
98
|
+
a
|
|
99
|
+
], j, { flush: "sync" }), h([x, S], N, { flush: "sync" }), h(a, P, { flush: "sync" }), l() && u(M), {
|
|
100
|
+
x: f(C),
|
|
101
|
+
y: f(w),
|
|
102
|
+
strategy: f(T),
|
|
103
|
+
placement: f(E),
|
|
104
|
+
middlewareData: f(D),
|
|
105
|
+
isPositioned: f(O),
|
|
106
|
+
floatingStyles: k,
|
|
107
|
+
update: j
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
//#endregion
|
|
111
|
+
export { v as arrow, r as autoUpdate, a as flip, o as inline, s as offset, x as useFloating };
|