rappel-ui 1.0.11 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +41 -0
- package/README.zh.md +41 -0
- package/cjs/index.js +1 -1
- package/package.json +12 -10
- package/cjs/_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/defineProperty.js +0 -1
- package/cjs/_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/toPrimitive.js +0 -1
- package/cjs/_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/toPropertyKey.js +0 -1
- package/cjs/_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/typeof.js +0 -1
- package/cjs/_virtual/_plugin-vue_export-helper.js +0 -1
- package/cjs/_virtual/_rolldown/runtime.js +0 -1
- package/cjs/components/button/index.d.ts +0 -57
- package/cjs/components/button/index.js +0 -1
- package/cjs/components/button/src/button-group.js +0 -1
- package/cjs/components/button/src/button-group.vue_vue_type_script_setup_true_lang.js +0 -1
- package/cjs/components/button/src/button.js +0 -1
- package/cjs/components/button/src/button.vue_vue_type_script_setup_true_lang.js +0 -1
- package/cjs/components/button/src/constants.d.ts +0 -4
- package/cjs/components/button/src/constants.js +0 -1
- package/cjs/components/button/src/types.d.ts +0 -32
- package/cjs/components/button/style/css.d.ts +0 -0
- package/cjs/components/button/style/index.d.ts +0 -0
- package/cjs/components/button/style/index.js +0 -1
- 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 +0 -1
- package/cjs/components/colors/index.d.ts +0 -6
- package/cjs/components/colors/index.js +0 -1
- package/cjs/components/colors/src/colors.js +0 -1
- package/cjs/components/colors/src/colors.vue_vue_type_script_setup_true_lang.js +0 -1
- package/cjs/components/colors/src/neutral-color.js +0 -1
- package/cjs/components/colors/src/neutral-color.vue_vue_type_script_setup_true_lang.js +0 -1
- package/cjs/components/colors/src/primary-color.js +0 -1
- package/cjs/components/colors/src/primary-color.vue_vue_type_script_setup_true_lang.js +0 -1
- package/cjs/components/colors/src/secondary-color.js +0 -1
- package/cjs/components/colors/src/secondary-color.vue_vue_type_script_setup_true_lang.js +0 -1
- package/cjs/components/colors/style/css.d.ts +0 -0
- package/cjs/components/colors/style/index.d.ts +0 -0
- package/cjs/components/colors/style/index.js +0 -1
- package/cjs/components/filter-panel/index.d.ts +0 -74
- package/cjs/components/filter-panel/index.js +0 -1
- package/cjs/components/filter-panel/src/constants.d.ts +0 -1
- package/cjs/components/filter-panel/src/filter-panel.js +0 -1
- package/cjs/components/filter-panel/src/filter-panel.vue_vue_type_script_setup_true_lang.js +0 -1
- package/cjs/components/filter-panel/src/types.d.ts +0 -17
- package/cjs/components/filter-panel/style/css.d.ts +0 -0
- package/cjs/components/filter-panel/style/index.d.ts +0 -0
- package/cjs/components/filter-panel/style/index.js +0 -1
- package/cjs/components/index.d.ts +0 -8
- package/cjs/components/index.js +0 -1
- package/cjs/components/input/index.d.ts +0 -23
- package/cjs/components/input/index.js +0 -1
- package/cjs/components/input/src/input.js +0 -1
- package/cjs/components/input/src/input.vue_vue_type_script_setup_true_lang.js +0 -1
- package/cjs/components/package.js +0 -1
- package/cjs/components/popover/index.d.ts +0 -21
- package/cjs/components/popover/index.js +0 -1
- package/cjs/components/popover/src/popover.js +0 -1
- package/cjs/components/popover/src/popover.vue_vue_type_script_setup_true_lang.js +0 -1
- package/cjs/components/popover/src/types.d.ts +0 -4
- 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 +0 -3
- package/cjs/components/svg-icon/index.js +0 -1
- package/cjs/components/svg-icon/src/svg-icon.js +0 -1
- package/cjs/components/svg-icon/src/svg-icon.vue_vue_type_script_setup_true_lang.js +0 -1
- package/cjs/components/svg-icon/src/types.d.ts +0 -8
- package/cjs/components/svg-icon/style/css.d.ts +0 -0
- package/cjs/components/svg-icon/style/index.d.ts +0 -0
- package/cjs/components/svg-icon/style/index.js +0 -1
- package/cjs/components/tabs/index.d.ts +0 -18
- package/cjs/components/tabs/index.js +0 -1
- package/cjs/components/tabs/src/tabs.js +0 -1
- package/cjs/components/tooltip/index.d.ts +0 -106
- package/cjs/components/tooltip/index.js +0 -1
- package/cjs/components/tooltip/src/constants.d.ts +0 -7
- package/cjs/components/tooltip/src/constants.js +0 -1
- package/cjs/components/tooltip/src/content.js +0 -1
- package/cjs/components/tooltip/src/content.vue_vue_type_script_setup_true_lang.js +0 -1
- package/cjs/components/tooltip/src/tooltip.js +0 -1
- package/cjs/components/tooltip/src/tooltip.vue_vue_type_script_setup_true_lang.js +0 -1
- package/cjs/components/tooltip/src/types.d.ts +0 -98
- package/cjs/components/tooltip/src/use-emit.d.ts +0 -14
- package/cjs/components/tooltip/src/use-emit.js +0 -1
- package/cjs/components/tooltip/src/use-tooltip.d.ts +0 -9
- package/cjs/components/tooltip/src/use-tooltip.js +0 -1
- 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 +0 -8
- package/cjs/composables/index.js +0 -1
- package/cjs/composables/use-date-format/index.d.ts +0 -7
- package/cjs/composables/use-date-format/index.js +0 -1
- package/cjs/composables/use-draggable/index.d.ts +0 -10
- package/cjs/composables/use-draggable/index.js +0 -1
- package/cjs/composables/use-namespace/index.d.ts +0 -13
- package/cjs/composables/use-namespace/index.js +0 -1
- package/cjs/composables/use-once-fn/index.d.ts +0 -24
- package/cjs/composables/use-once-fn/index.js +0 -1
- package/cjs/composables/use-theme/index.d.ts +0 -7
- package/cjs/composables/use-theme/index.js +0 -1
- package/cjs/composables/use-time-nodes/index.d.ts +0 -3
- package/cjs/composables/use-time-nodes/index.js +0 -1
- package/cjs/composables/use-waterfall-layout/index.d.ts +0 -10
- package/cjs/composables/use-waterfall-layout/index.js +0 -1
- package/cjs/composables/use-z-index/index.d.ts +0 -11
- package/cjs/composables/use-z-index/index.js +0 -1
- package/cjs/constants/index.d.ts +0 -1
- package/cjs/constants/svgLoading.d.ts +0 -2
- package/cjs/constants/svgLoading.js +0 -36
- package/cjs/directives/index.d.ts +0 -3
- package/cjs/directives/index.js +0 -1
- package/cjs/directives/vDraggable.d.ts +0 -2
- package/cjs/directives/vDraggable.js +0 -1
- package/cjs/directives/vResizable.d.ts +0 -14
- package/cjs/directives/vResizable.js +0 -21
- package/cjs/directives/vSvgLoading.d.ts +0 -4
- package/cjs/directives/vSvgLoading.js +0 -1
- package/cjs/index.d.ts +0 -1323
- package/cjs/node_modules/.pnpm/@floating-ui_core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -1
- package/cjs/node_modules/.pnpm/@floating-ui_dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -1
- package/cjs/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -1
- package/cjs/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -1
- 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 +0 -1
- 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 +0 -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 +0 -1
- package/cjs/rappel-ui/index.d.ts +0 -1
- package/cjs/rappel-ui/resolver.d.ts +0 -4
- package/cjs/rappel-ui/resolver.js +0 -1
- package/cjs/svg-icons/constants.d.ts +0 -3
- package/cjs/svg-icons/constants.js +0 -1
- package/cjs/svg-icons/index.d.ts +0 -1010
- package/cjs/svg-icons/index.js +0 -1
- package/cjs/svg-icons/types.d.ts +0 -5
- package/cjs/theme-chalk/src/base.css +0 -1
- package/cjs/theme-chalk/src/button-group.css +0 -1
- package/cjs/theme-chalk/src/button.css +0 -1
- package/cjs/theme-chalk/src/colors.css +0 -1
- package/cjs/theme-chalk/src/filter-panel.css +0 -1
- package/cjs/theme-chalk/src/svg-icon.css +0 -1
- package/cjs/types/common.d.ts +0 -1
- package/cjs/types/component.d.ts +0 -1
- package/cjs/types/event.d.ts +0 -1
- package/cjs/types/index.d.ts +0 -4
- package/cjs/types/theme.d.ts +0 -1
- package/cjs/utils/index.d.ts +0 -2
- package/cjs/utils/index.js +0 -1
- package/cjs/utils/util.d.ts +0 -170
- package/cjs/utils/util.js +0 -3
- package/cjs/utils/vue/index.d.ts +0 -21
- package/cjs/utils/vue/index.js +0 -1
- package/es/_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/defineProperty.mjs +0 -12
- package/es/_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/toPrimitive.mjs +0 -14
- package/es/_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/toPropertyKey.mjs +0 -9
- package/es/_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/typeof.mjs +0 -11
- package/es/_virtual/_plugin-vue_export-helper.mjs +0 -8
- package/es/_virtual/_rolldown/runtime.mjs +0 -11
- package/es/components/button/index.d.ts +0 -57
- package/es/components/button/index.mjs +0 -9
- package/es/components/button/src/button-group.mjs +0 -5
- package/es/components/button/src/button-group.vue_vue_type_script_setup_true_lang.mjs +0 -25
- package/es/components/button/src/button.mjs +0 -5
- package/es/components/button/src/button.vue_vue_type_script_setup_true_lang.mjs +0 -140
- package/es/components/button/src/constants.d.ts +0 -4
- package/es/components/button/src/constants.mjs +0 -20
- package/es/components/button/src/types.d.ts +0 -32
- package/es/components/button/style/css.d.ts +0 -0
- package/es/components/button/style/index.d.ts +0 -0
- package/es/components/button/style/index.mjs +0 -2
- 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 +0 -2
- package/es/components/colors/index.d.ts +0 -6
- package/es/components/colors/index.mjs +0 -14
- package/es/components/colors/src/colors.mjs +0 -5
- package/es/components/colors/src/colors.vue_vue_type_script_setup_true_lang.mjs +0 -21
- package/es/components/colors/src/neutral-color.mjs +0 -5
- package/es/components/colors/src/neutral-color.vue_vue_type_script_setup_true_lang.mjs +0 -103
- package/es/components/colors/src/primary-color.mjs +0 -5
- package/es/components/colors/src/primary-color.vue_vue_type_script_setup_true_lang.mjs +0 -38
- package/es/components/colors/src/secondary-color.mjs +0 -5
- package/es/components/colors/src/secondary-color.vue_vue_type_script_setup_true_lang.mjs +0 -56
- package/es/components/colors/style/css.d.ts +0 -0
- package/es/components/colors/style/index.d.ts +0 -0
- package/es/components/colors/style/index.mjs +0 -2
- package/es/components/filter-panel/index.d.ts +0 -74
- package/es/components/filter-panel/index.mjs +0 -7
- package/es/components/filter-panel/src/constants.d.ts +0 -1
- package/es/components/filter-panel/src/filter-panel.mjs +0 -5
- package/es/components/filter-panel/src/filter-panel.vue_vue_type_script_setup_true_lang.mjs +0 -130
- package/es/components/filter-panel/src/types.d.ts +0 -17
- package/es/components/filter-panel/style/css.d.ts +0 -0
- package/es/components/filter-panel/style/index.d.ts +0 -0
- package/es/components/filter-panel/style/index.mjs +0 -2
- package/es/components/index.d.ts +0 -8
- package/es/components/index.mjs +0 -34
- package/es/components/input/index.d.ts +0 -23
- package/es/components/input/index.mjs +0 -7
- package/es/components/input/src/input.mjs +0 -5
- package/es/components/input/src/input.vue_vue_type_script_setup_true_lang.mjs +0 -21
- package/es/components/package.mjs +0 -4
- package/es/components/popover/index.d.ts +0 -21
- package/es/components/popover/index.mjs +0 -7
- package/es/components/popover/src/popover.mjs +0 -5
- package/es/components/popover/src/popover.vue_vue_type_script_setup_true_lang.mjs +0 -164
- package/es/components/popover/src/types.d.ts +0 -4
- 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 +0 -3
- package/es/components/svg-icon/index.mjs +0 -7
- package/es/components/svg-icon/src/svg-icon.mjs +0 -5
- package/es/components/svg-icon/src/svg-icon.vue_vue_type_script_setup_true_lang.mjs +0 -52
- package/es/components/svg-icon/src/types.d.ts +0 -8
- package/es/components/svg-icon/style/css.d.ts +0 -0
- package/es/components/svg-icon/style/index.d.ts +0 -0
- package/es/components/svg-icon/style/index.mjs +0 -2
- package/es/components/tabs/index.d.ts +0 -18
- package/es/components/tabs/index.mjs +0 -7
- package/es/components/tabs/src/tabs.mjs +0 -11
- package/es/components/tooltip/index.d.ts +0 -106
- package/es/components/tooltip/index.mjs +0 -7
- package/es/components/tooltip/src/constants.d.ts +0 -7
- package/es/components/tooltip/src/constants.mjs +0 -13
- package/es/components/tooltip/src/content.mjs +0 -5
- package/es/components/tooltip/src/content.vue_vue_type_script_setup_true_lang.mjs +0 -158
- package/es/components/tooltip/src/tooltip.mjs +0 -5
- package/es/components/tooltip/src/tooltip.vue_vue_type_script_setup_true_lang.mjs +0 -258
- package/es/components/tooltip/src/types.d.ts +0 -98
- package/es/components/tooltip/src/use-emit.d.ts +0 -14
- package/es/components/tooltip/src/use-emit.mjs +0 -17
- package/es/components/tooltip/src/use-tooltip.d.ts +0 -9
- package/es/components/tooltip/src/use-tooltip.mjs +0 -103
- 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 +0 -8
- package/es/composables/index.mjs +0 -9
- package/es/composables/use-date-format/index.d.ts +0 -7
- package/es/composables/use-date-format/index.mjs +0 -20
- package/es/composables/use-draggable/index.d.ts +0 -10
- package/es/composables/use-draggable/index.mjs +0 -61
- package/es/composables/use-namespace/index.d.ts +0 -13
- package/es/composables/use-namespace/index.mjs +0 -22
- package/es/composables/use-once-fn/index.d.ts +0 -24
- package/es/composables/use-once-fn/index.mjs +0 -30
- package/es/composables/use-theme/index.d.ts +0 -7
- package/es/composables/use-theme/index.mjs +0 -23
- package/es/composables/use-time-nodes/index.d.ts +0 -3
- package/es/composables/use-time-nodes/index.mjs +0 -25
- package/es/composables/use-waterfall-layout/index.d.ts +0 -10
- package/es/composables/use-waterfall-layout/index.mjs +0 -46
- package/es/composables/use-z-index/index.d.ts +0 -11
- package/es/composables/use-z-index/index.mjs +0 -17
- package/es/constants/index.d.ts +0 -1
- package/es/constants/svgLoading.d.ts +0 -2
- package/es/constants/svgLoading.mjs +0 -4
- package/es/directives/index.d.ts +0 -3
- package/es/directives/index.mjs +0 -4
- package/es/directives/vDraggable.d.ts +0 -2
- package/es/directives/vDraggable.mjs +0 -14
- package/es/directives/vResizable.d.ts +0 -14
- package/es/directives/vResizable.mjs +0 -136
- package/es/directives/vSvgLoading.d.ts +0 -4
- package/es/directives/vSvgLoading.mjs +0 -47
- package/es/index.d.ts +0 -1323
- package/es/index.mjs +0 -45
- package/es/node_modules/.pnpm/@floating-ui_core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +0 -276
- package/es/node_modules/.pnpm/@floating-ui_dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +0 -322
- package/es/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +0 -99
- package/es/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +0 -101
- 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 +0 -111
- 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 +0 -450
- 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 +0 -121
- package/es/rappel-ui/index.d.ts +0 -1
- package/es/rappel-ui/resolver.d.ts +0 -4
- package/es/rappel-ui/resolver.mjs +0 -17
- package/es/svg-icons/constants.d.ts +0 -3
- package/es/svg-icons/constants.mjs +0 -114
- package/es/svg-icons/index.d.ts +0 -1010
- package/es/svg-icons/index.mjs +0 -72
- package/es/svg-icons/types.d.ts +0 -5
- package/es/theme-chalk/src/base.css +0 -1
- package/es/theme-chalk/src/button-group.css +0 -1
- package/es/theme-chalk/src/button.css +0 -1
- package/es/theme-chalk/src/colors.css +0 -1
- package/es/theme-chalk/src/filter-panel.css +0 -1
- package/es/theme-chalk/src/svg-icon.css +0 -1
- package/es/types/common.d.ts +0 -1
- package/es/types/component.d.ts +0 -1
- package/es/types/event.d.ts +0 -1
- package/es/types/index.d.ts +0 -4
- package/es/types/theme.d.ts +0 -1
- package/es/utils/index.d.ts +0 -2
- package/es/utils/index.mjs +0 -3
- package/es/utils/util.d.ts +0 -170
- package/es/utils/util.mjs +0 -198
- package/es/utils/vue/index.d.ts +0 -21
- package/es/utils/vue/index.mjs +0 -37
- package/theme-chalk/base.css +0 -225
- package/theme-chalk/css-vars/_button-group.css +0 -15
- package/theme-chalk/css-vars/_button.css +0 -15
- package/theme-chalk/css-vars/_colors.css +0 -33
- package/theme-chalk/css-vars/_tooltip.css +0 -15
- package/theme-chalk/function/_button.css +0 -15
- package/theme-chalk/function/index.css +0 -15
- package/theme-chalk/index.css +0 -1234
- package/theme-chalk/mixins/_base.css +0 -15
- package/theme-chalk/mixins/_button.css +0 -18
- package/theme-chalk/mixins/_tooltip.css +0 -18
- package/theme-chalk/mixins/index.css +0 -18
- package/theme-chalk/re-button-group.css +0 -68
- package/theme-chalk/re-button.css +0 -810
- package/theme-chalk/re-colors.css +0 -87
- package/theme-chalk/re-filter-panel.css +0 -36
- package/theme-chalk/re-popover.css +0 -30
- package/theme-chalk/re-svg-icon.css +0 -33
- package/theme-chalk/re-tooltip.css +0 -62
- package/theme-chalk/root-vars.css +0 -201
- package/theme-chalk/src/base.scss +0 -32
- package/theme-chalk/src/button-group.scss +0 -63
- package/theme-chalk/src/button.scss +0 -133
- package/theme-chalk/src/colors.scss +0 -85
- package/theme-chalk/src/css-vars/_button-group.scss +0 -12
- package/theme-chalk/src/css-vars/_button.scss +0 -88
- package/theme-chalk/src/css-vars/_colors.scss +0 -125
- package/theme-chalk/src/css-vars/_namespace.scss +0 -14
- package/theme-chalk/src/css-vars/_tooltip.scss +0 -23
- package/theme-chalk/src/filter-panel.scss +0 -21
- package/theme-chalk/src/function/_button.scss +0 -2
- package/theme-chalk/src/function/index.scss +0 -163
- package/theme-chalk/src/index.scss +0 -8
- package/theme-chalk/src/mixins/_base.scss +0 -14
- package/theme-chalk/src/mixins/_button.scss +0 -220
- package/theme-chalk/src/mixins/_tooltip.scss +0 -37
- package/theme-chalk/src/mixins/index.scss +0 -60
- package/theme-chalk/src/popover.scss +0 -17
- package/theme-chalk/src/root-vars.scss +0 -20
- package/theme-chalk/src/svg-icon.scss +0 -19
- package/theme-chalk/src/tooltip.scss +0 -61
- package/umd/index.js +0 -58
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
//#region packages/components/tooltip/src/use-emit.ts
|
|
2
|
-
function e(e) {
|
|
3
|
-
return {
|
|
4
|
-
beforeShow: (t) => e("beforeShow", t),
|
|
5
|
-
show: (t) => e("show", t),
|
|
6
|
-
beforeHide: (t) => e("beforeHide", t),
|
|
7
|
-
hide: (t) => e("hide", t),
|
|
8
|
-
beforeEnter: (t) => e("beforeEnter", t),
|
|
9
|
-
beforeLeave: (t) => e("beforeLeave", t),
|
|
10
|
-
enter: (t, n) => e("enter", t, n),
|
|
11
|
-
leave: (t, n) => e("leave", t, n),
|
|
12
|
-
afterEnter: (t) => e("afterEnter", t),
|
|
13
|
-
afterLeave: (t) => e("afterLeave", t)
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
//#endregion
|
|
17
|
-
export { e as useEmits };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { EffectScope } from 'vue';
|
|
2
|
-
import { TriggerOptions } from './types';
|
|
3
|
-
export declare function useTooltip({ triggerRef, isExternal, externalActiveRef, externalRef, trigger, floatingRef, open, showDelay, hideDelay, disabled }: TriggerOptions): {
|
|
4
|
-
start: () => void;
|
|
5
|
-
stop: () => void;
|
|
6
|
-
setup: () => {
|
|
7
|
-
scope: EffectScope;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { useDebounceFn as e } from "../../../node_modules/.pnpm/@vueuse_shared@14.0.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.mjs";
|
|
2
|
-
import { onClickOutside as t, useElementHover as n, useEventListener as r } from "../../../node_modules/.pnpm/@vueuse_core@14.0.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.mjs";
|
|
3
|
-
import { effectScope as i, unref as a, watch as o } from "vue";
|
|
4
|
-
//#region packages/components/tooltip/src/use-tooltip.ts
|
|
5
|
-
function s({ triggerRef: s, isExternal: c, externalActiveRef: l, externalRef: u, trigger: d, floatingRef: f, open: p, showDelay: m = 0, hideDelay: h = 0, disabled: g }) {
|
|
6
|
-
let _ = [], v = e(() => {
|
|
7
|
-
p.value = !0;
|
|
8
|
-
}, c ? 0 : m), y = e((e) => {
|
|
9
|
-
p.value = !1, typeof e == "function" && e();
|
|
10
|
-
}, c ? 0 : h), b = () => {
|
|
11
|
-
if (s.value) switch (d) {
|
|
12
|
-
case "click": {
|
|
13
|
-
let e = r(s, "click", v), i = n(f, {
|
|
14
|
-
delayEnter: 0,
|
|
15
|
-
delayLeave: 0,
|
|
16
|
-
triggerOnRemoval: !0
|
|
17
|
-
}), a = t(s, () => {
|
|
18
|
-
!i.value && y();
|
|
19
|
-
});
|
|
20
|
-
_.push(e, a);
|
|
21
|
-
break;
|
|
22
|
-
}
|
|
23
|
-
case "hover": {
|
|
24
|
-
let e = {
|
|
25
|
-
delayEnter: c ? 0 : m,
|
|
26
|
-
delayLeave: c ? 0 : h,
|
|
27
|
-
triggerOnRemoval: !0
|
|
28
|
-
}, t = n(s, e);
|
|
29
|
-
c && p.value && (t.value = !0);
|
|
30
|
-
let r, { stop: i } = o(t, (e) => {
|
|
31
|
-
p.value = e || (r == null ? void 0 : r.value);
|
|
32
|
-
}), { stop: a } = o(f, (i) => {
|
|
33
|
-
if (!i) return;
|
|
34
|
-
r = n(f, e);
|
|
35
|
-
let { stop: a } = o(r, (e) => {
|
|
36
|
-
p.value = e || t.value;
|
|
37
|
-
});
|
|
38
|
-
_.push(a);
|
|
39
|
-
});
|
|
40
|
-
_.push(i, a);
|
|
41
|
-
break;
|
|
42
|
-
}
|
|
43
|
-
case "focus": {
|
|
44
|
-
let e = r(s, "focus", v), i = n(f, {
|
|
45
|
-
delayEnter: 0,
|
|
46
|
-
delayLeave: 0,
|
|
47
|
-
triggerOnRemoval: !0
|
|
48
|
-
}), a = r(s, "blur", () => !i.value && y()), o = t(s, () => !i.value && y());
|
|
49
|
-
_.push(e, a, o);
|
|
50
|
-
break;
|
|
51
|
-
}
|
|
52
|
-
case "contextmenu": {
|
|
53
|
-
let e = r(s, "contextmenu", (e) => {
|
|
54
|
-
e.preventDefault(), v();
|
|
55
|
-
}), i = n(f, {
|
|
56
|
-
delayEnter: 0,
|
|
57
|
-
delayLeave: 0,
|
|
58
|
-
triggerOnRemoval: !0
|
|
59
|
-
}), a = t(s, () => !i.value && y());
|
|
60
|
-
_.push(e, a);
|
|
61
|
-
break;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}, x = () => {
|
|
65
|
-
_.forEach((e) => e());
|
|
66
|
-
}, S = () => {
|
|
67
|
-
p.value = !1, x();
|
|
68
|
-
};
|
|
69
|
-
return c && o(() => u == null ? void 0 : u.value, (e) => {
|
|
70
|
-
if (!(["click", "contextmenu"].includes(d) && l.value === e)) {
|
|
71
|
-
if (!l.value || !p.value) {
|
|
72
|
-
l.value = e, v();
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
y(() => {
|
|
76
|
-
l.value = e, v();
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
}), {
|
|
80
|
-
start: b,
|
|
81
|
-
stop: S,
|
|
82
|
-
setup: () => {
|
|
83
|
-
let e = i();
|
|
84
|
-
return e.run(() => {
|
|
85
|
-
if (p.value) {
|
|
86
|
-
x();
|
|
87
|
-
return;
|
|
88
|
-
}
|
|
89
|
-
if (a(g)) {
|
|
90
|
-
S();
|
|
91
|
-
return;
|
|
92
|
-
}
|
|
93
|
-
b(), o(() => a(g), (e) => {
|
|
94
|
-
e ? S() : b();
|
|
95
|
-
}), o(s, (e) => {
|
|
96
|
-
e && (x(), b());
|
|
97
|
-
});
|
|
98
|
-
}), { scope: e };
|
|
99
|
-
}
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
//#endregion
|
|
103
|
-
export { s as useTooltip };
|
|
File without changes
|
|
File without changes
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from './use-draggable';
|
|
2
|
-
export * from './use-date-format';
|
|
3
|
-
export * from './use-once-fn';
|
|
4
|
-
export * from './use-time-nodes';
|
|
5
|
-
export * from './use-waterfall-layout';
|
|
6
|
-
export * from './use-namespace';
|
|
7
|
-
export * from './use-z-index';
|
|
8
|
-
export * from './use-theme';
|
package/es/composables/index.mjs
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { useDraggable as e } from "./use-draggable/index.mjs";
|
|
2
|
-
import { useDateFormat as t } from "./use-date-format/index.mjs";
|
|
3
|
-
import { useOnceFn as n } from "./use-once-fn/index.mjs";
|
|
4
|
-
import { useTimeNodes as r } from "./use-time-nodes/index.mjs";
|
|
5
|
-
import { useWaterFallLayout as i } from "./use-waterfall-layout/index.mjs";
|
|
6
|
-
import { useNamespace as a } from "./use-namespace/index.mjs";
|
|
7
|
-
import { useZIndex as o } from "./use-z-index/index.mjs";
|
|
8
|
-
import { useTheme as s } from "./use-theme/index.mjs";
|
|
9
|
-
export { t as useDateFormat, e as useDraggable, a as useNamespace, n as useOnceFn, s as useTheme, r as useTimeNodes, i as useWaterFallLayout, o as useZIndex };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
//#region packages/composables/use-date-format/index.ts
|
|
2
|
-
function e(e, t) {
|
|
3
|
-
let n = e.getFullYear(), r = e.getMonth() + 1, i = e.getDate(), a = e.getHours(), o = e.getMinutes(), s = e.getSeconds(), c = {
|
|
4
|
-
YYYY: String(n),
|
|
5
|
-
YY: String(n).substring(2),
|
|
6
|
-
MM: String(r).padStart(2, "0"),
|
|
7
|
-
M: String(r),
|
|
8
|
-
DD: String(i).padStart(2, "0"),
|
|
9
|
-
D: String(i),
|
|
10
|
-
HH: String(a).padStart(2, "0"),
|
|
11
|
-
H: String(a),
|
|
12
|
-
mm: String(o).padStart(2, "0"),
|
|
13
|
-
m: String(o),
|
|
14
|
-
ss: String(s).padStart(2, "0"),
|
|
15
|
-
s: String(s)
|
|
16
|
-
};
|
|
17
|
-
return t.replace(/(YYYY|YY|MM|M|DD|D|HH|H|mm|m|ss|s)/g, (e) => c[e]);
|
|
18
|
-
}
|
|
19
|
-
//#endregion
|
|
20
|
-
export { e as useDateFormat };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare function useDraggable(el: HTMLElement, options?: {
|
|
2
|
-
preventDefault?: boolean;
|
|
3
|
-
customHandler?: HTMLElement | null;
|
|
4
|
-
autoTopHandler?: boolean;
|
|
5
|
-
topHandlerHeight?: number;
|
|
6
|
-
isAllHandler?: boolean;
|
|
7
|
-
}): {
|
|
8
|
-
updatePos: () => void;
|
|
9
|
-
cleanup: () => void;
|
|
10
|
-
};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
//#region packages/composables/use-draggable/index.ts
|
|
2
|
-
function e(e, t) {
|
|
3
|
-
if (!e) return {
|
|
4
|
-
updatePos: () => {},
|
|
5
|
-
cleanup: () => {}
|
|
6
|
-
};
|
|
7
|
-
let n = Object.assign({}, {
|
|
8
|
-
preventDefault: !0,
|
|
9
|
-
customHandler: null,
|
|
10
|
-
autoTopHandler: !1,
|
|
11
|
-
topHandlerHeight: 20,
|
|
12
|
-
isAllHandler: !0
|
|
13
|
-
}, t || {}), r = n.customHandler ? n.customHandler : n.autoTopHandler ? (() => {
|
|
14
|
-
let t = document.createElement("div");
|
|
15
|
-
return t.style.cssText = `user-select:none;height: ${n.topHandlerHeight}px; z-index:3000;cursor: move; position: absolute; top: 0; left: 0;right:0;background-color: transparent;opacity: 1;`, t.classList.add("v-draggable-top-handler"), e.appendChild(t), t;
|
|
16
|
-
})() : e, i = !1, a = 0, o = 0, s = 0, c = 0, l = 0, u = 0, d = 0, f = 0, p = (e) => window.getComputedStyle(e).transform, m = (e) => {
|
|
17
|
-
let t = p(e);
|
|
18
|
-
if (t && t !== "none") {
|
|
19
|
-
let { e, f: n, m41: r, m42: i } = new DOMMatrix(t);
|
|
20
|
-
return {
|
|
21
|
-
x: e || r || 0,
|
|
22
|
-
y: n || i || 0
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
return {
|
|
26
|
-
x: 0,
|
|
27
|
-
y: 0
|
|
28
|
-
};
|
|
29
|
-
}, h = () => {
|
|
30
|
-
let t = e.getBoundingClientRect(), { x: n, y: r } = m(e);
|
|
31
|
-
s = n, c = r, l = -t.left + n, u = -t.top + r, d = window.innerWidth - t.right + n, f = window.innerHeight - t.bottom + r;
|
|
32
|
-
}, g = (e) => {
|
|
33
|
-
let t = e.target;
|
|
34
|
-
return !t || t.isContentEditable || t.closest("input, textarea, button, select, a,[contenteditable], [contenteditable=\"true\"]") || [
|
|
35
|
-
"TEXTAREA",
|
|
36
|
-
"INPUT",
|
|
37
|
-
"BUTTON",
|
|
38
|
-
"A",
|
|
39
|
-
"SELECT"
|
|
40
|
-
].includes(t == null ? void 0 : t.tagName) ? !1 : !!n.isAllHandler || t === r;
|
|
41
|
-
}, _ = (e) => {
|
|
42
|
-
g(e) && (i = !0, n.preventDefault && e.preventDefault(), h(), a = e.clientX - s, o = e.clientY - c, document.removeEventListener("pointermove", v), document.removeEventListener("pointerup", y), document.removeEventListener("pointercancel", y), document.addEventListener("pointermove", v), document.addEventListener("pointerup", y), document.addEventListener("pointercancel", y));
|
|
43
|
-
}, v = (t) => {
|
|
44
|
-
if (!i) return;
|
|
45
|
-
let n = t.clientX - a, r = t.clientY - o;
|
|
46
|
-
n = n < s ? Math.max(n, l) : Math.min(n, d), r = r < c ? Math.max(r, u) : Math.min(r, f), e.style.transform = `translate(${n}px, ${r}px)`, s = n, c = r;
|
|
47
|
-
}, y = () => {
|
|
48
|
-
i = !1, document.removeEventListener("pointermove", v), document.removeEventListener("pointerup", y), document.removeEventListener("pointercancel", y);
|
|
49
|
-
};
|
|
50
|
-
return h(), r.removeEventListener("pointerdown", _), r.addEventListener("pointerdown", _), window.removeEventListener("resize", h), window.addEventListener("resize", h), {
|
|
51
|
-
updatePos: h,
|
|
52
|
-
cleanup: e._cleanup = () => {
|
|
53
|
-
if (y(), r.removeEventListener("pointerdown", _), window.removeEventListener("resize", h), n.autoTopHandler && !n.customHandler) {
|
|
54
|
-
let t = e.querySelector(".v-draggable-top-handler");
|
|
55
|
-
t && t.remove();
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
//#endregion
|
|
61
|
-
export { e as useDraggable };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare function useNamespace(compName: string): {
|
|
2
|
-
libName: string;
|
|
3
|
-
prefix: string;
|
|
4
|
-
statePrefix: string;
|
|
5
|
-
n: (name?: string) => string;
|
|
6
|
-
ng: (groupName: string) => string;
|
|
7
|
-
nm: (modifier: string) => string;
|
|
8
|
-
ngm: (groupName: string, modifier: string) => string;
|
|
9
|
-
ns: (subName: string) => string;
|
|
10
|
-
ngs: (groupName: string, subName: string) => string;
|
|
11
|
-
cls: (name: string, groupName?: string, modifier?: string, subName?: string) => string;
|
|
12
|
-
is: (state: string, bool?: boolean | undefined) => string;
|
|
13
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
//#region packages/composables/use-namespace/index.ts
|
|
2
|
-
function e(e) {
|
|
3
|
-
let t = (t, n, r, i) => {
|
|
4
|
-
let a = `re-${t || e}`;
|
|
5
|
-
return n && (a += `-${n}`), r && (a += `--${r}`), i && (a += `__${i}`), a.toLowerCase();
|
|
6
|
-
};
|
|
7
|
-
return {
|
|
8
|
-
libName: "rappel-ui",
|
|
9
|
-
prefix: "re",
|
|
10
|
-
statePrefix: "is",
|
|
11
|
-
n: (e = "") => t(e),
|
|
12
|
-
ng: (e) => t("", e),
|
|
13
|
-
nm: (e) => t("", "", e),
|
|
14
|
-
ngm: (e, n) => t("", e, n),
|
|
15
|
-
ns: (e) => t("", "", "", e),
|
|
16
|
-
ngs: (e, n) => t("", e, "", n),
|
|
17
|
-
cls: t,
|
|
18
|
-
is: (e, t = void 0) => t ? `is-${e}` : ""
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
//#endregion
|
|
22
|
-
export { e as useNamespace };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 防止接口重复请求的方法<需保证方法名全局唯一>
|
|
3
|
-
* @param {Function} funcName 方法名
|
|
4
|
-
* @param {...Array<any>} funcParams 方法参数(剩余参数),原方法怎么传,这里就怎么传
|
|
5
|
-
* @description 适用于返回Promise的所有方法,支持多个方法
|
|
6
|
-
* @example
|
|
7
|
-
* 1、基本用法:
|
|
8
|
-
* import {getUserList} from "@/api/user"
|
|
9
|
-
* const res = await useOnceFn(getUserList, params, data)
|
|
10
|
-
*
|
|
11
|
-
* 2、多个方法
|
|
12
|
-
* import {getUserList} from "@/api/user"
|
|
13
|
-
* import {getOrgTree} from "@/api/org"
|
|
14
|
-
*
|
|
15
|
-
* const res1 = await useOnceFn(getUserList, params, data)
|
|
16
|
-
* const res2 = await useOnceFn(getOrgTree)
|
|
17
|
-
*
|
|
18
|
-
* 3、用于async方法
|
|
19
|
-
* async function demo(){...}
|
|
20
|
-
* const res = await useOnceFn(demo)
|
|
21
|
-
*
|
|
22
|
-
* @returns {Promise<any>}
|
|
23
|
-
*/
|
|
24
|
-
export declare function useOnceFn(funcName: (...args: any[]) => void, ...funcParams: any[]): Promise<any>;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import e from "../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/defineProperty.mjs";
|
|
2
|
-
//#region packages/composables/use-once-fn/index.ts
|
|
3
|
-
var t = class {
|
|
4
|
-
constructor() {
|
|
5
|
-
e(this, "res", void 0), e(this, "isFetching", void 0), e(this, "isSuccess", void 0), e(this, "queues", void 0), this.res = null, this.isFetching = !1, this.isSuccess = !1, this.queues = [];
|
|
6
|
-
}
|
|
7
|
-
useOnceFn(e, ...t) {
|
|
8
|
-
return new Promise((n) => {
|
|
9
|
-
if (this.isSuccess) {
|
|
10
|
-
n(this.res);
|
|
11
|
-
return;
|
|
12
|
-
}
|
|
13
|
-
this.queues.push(n), this.isFetching || (this.isFetching = !0, Promise.resolve(e(...t)).then((e) => {
|
|
14
|
-
this.res = e, this.loopQueues(), this.isSuccess = !0;
|
|
15
|
-
}));
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
loopQueues() {
|
|
19
|
-
for (; this.queues.length > 0;) {
|
|
20
|
-
let e = this.queues.shift();
|
|
21
|
-
e == null || e(this.res);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}, n = {};
|
|
25
|
-
function r(e, ...r) {
|
|
26
|
-
let i = e.toString().replace(/[^a-zA-Z]/g, "");
|
|
27
|
-
return n[i] || (n[i] = new t()), n[i].useOnceFn(e, ...r);
|
|
28
|
-
}
|
|
29
|
-
//#endregion
|
|
30
|
-
export { r as useOnceFn };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { WritableComputedRef, ComputedRef } from 'vue';
|
|
2
|
-
import { Theme } from '@rappel-ui/types';
|
|
3
|
-
export declare function useTheme(theme?: Theme, reverseTheme?: boolean): {
|
|
4
|
-
isDark: WritableComputedRef<boolean>;
|
|
5
|
-
currentTheme: ComputedRef<Theme>;
|
|
6
|
-
toggle: () => void;
|
|
7
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { useNamespace as e } from "../use-namespace/index.mjs";
|
|
2
|
-
import { useToggle as t } from "../../node_modules/.pnpm/@vueuse_shared@14.0.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.mjs";
|
|
3
|
-
import { useDark as n } from "../../node_modules/.pnpm/@vueuse_core@14.0.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.mjs";
|
|
4
|
-
import "../index.mjs";
|
|
5
|
-
import { computed as r } from "vue";
|
|
6
|
-
//#region packages/composables/use-theme/index.ts
|
|
7
|
-
var { libName: i } = e(""), a = n({
|
|
8
|
-
storageKey: `${i}-color-scheme`,
|
|
9
|
-
selector: "html",
|
|
10
|
-
attribute: "class",
|
|
11
|
-
valueDark: "dark",
|
|
12
|
-
valueLight: "light"
|
|
13
|
-
});
|
|
14
|
-
function o(e = "light", n = !1) {
|
|
15
|
-
let i = t(a);
|
|
16
|
-
return {
|
|
17
|
-
isDark: a,
|
|
18
|
-
currentTheme: r(() => n ? e === "dark" ? "light" : "dark" : e),
|
|
19
|
-
toggle: i
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
//#endregion
|
|
23
|
-
export { o as useTheme };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { useDateFormat as e } from "../use-date-format/index.mjs";
|
|
2
|
-
import "../index.mjs";
|
|
3
|
-
//#region packages/composables/use-time-nodes/index.ts
|
|
4
|
-
function t(t = "00:00", n = "23:00", r = "02:00", i = "HH:mm") {
|
|
5
|
-
let a = (e) => {
|
|
6
|
-
let [t, n, r] = e.split(":").map(Number);
|
|
7
|
-
return [
|
|
8
|
-
t || 0,
|
|
9
|
-
n || 0,
|
|
10
|
-
r || 0
|
|
11
|
-
];
|
|
12
|
-
}, o = (e) => {
|
|
13
|
-
let [t, n, r] = a(e), i = /* @__PURE__ */ new Date();
|
|
14
|
-
return new Date(i.getFullYear(), i.getMonth() + 1, i.getDate(), t, n, r);
|
|
15
|
-
}, s = (t) => e(t, i), c = (e) => {
|
|
16
|
-
let [t, n, i] = a(r);
|
|
17
|
-
return new Date(e.getTime() + t * 36e5 + n * 6e4 + i * 1e3);
|
|
18
|
-
}, l = [], [u, d, f] = a(r);
|
|
19
|
-
if (u === 0 && d === 0 && f === 0) throw Error("时间步长不能为0");
|
|
20
|
-
let p = o(t), m = o(n);
|
|
21
|
-
for (; p <= m;) l.push(s(p)), p = c(p);
|
|
22
|
-
return { timeNodes: l };
|
|
23
|
-
}
|
|
24
|
-
//#endregion
|
|
25
|
-
export { t as useTimeNodes };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
export declare function useWaterFallLayout(containerRef: Ref<HTMLElement | null>, itemSelector: string): {
|
|
3
|
-
init: (isRearrange?: boolean) => void;
|
|
4
|
-
column: Ref<number, number>;
|
|
5
|
-
rowSpacing: Ref<number, number>;
|
|
6
|
-
columnSpacing: Ref<number, number>;
|
|
7
|
-
oddColumnBgColor: Ref<string, string>;
|
|
8
|
-
evenColumnBgColor: Ref<string, string>;
|
|
9
|
-
getItems: (selector?: string) => any;
|
|
10
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { nextTick as e, ref as t, watch as n } from "vue";
|
|
2
|
-
//#region packages/composables/use-waterfall-layout/index.ts
|
|
3
|
-
function r(r, i) {
|
|
4
|
-
let a = t(3), o = t(2), s = t(2), c = t("#F5F8F8"), l = t("#FFFFFF"), u = t("top 300ms ease-in-out, left 300ms ease-in-out"), d = t(0), f = t(0), p = t(0), m = (e) => document.querySelectorAll(e || i), h = () => {
|
|
5
|
-
r.value.style.position = "relative";
|
|
6
|
-
}, g = () => {
|
|
7
|
-
h(), d.value = r.value.clientWidth;
|
|
8
|
-
}, _ = () => {
|
|
9
|
-
p.value = (d.value - s.value * (a.value - 1)) / a.value;
|
|
10
|
-
}, v = (e) => {
|
|
11
|
-
let t = e % a.value;
|
|
12
|
-
return t === 0 ? 0 : t * (p.value + s.value);
|
|
13
|
-
}, y = (e) => {
|
|
14
|
-
let { style: t, offsetHeight: n } = e;
|
|
15
|
-
return parseFloat(t.top) + n + o.value;
|
|
16
|
-
}, b = (e, t) => e >= a.value ? y(t[e - a.value]) : 0, x = (e) => {
|
|
17
|
-
let t = y(e);
|
|
18
|
-
t > f.value && (f.value = t, r.value.style.height = `${t}px`);
|
|
19
|
-
}, S = t("is-dealed"), C = (e = !1) => {
|
|
20
|
-
let t = m(), n = m(`.${S.value}`), r = 0;
|
|
21
|
-
n.length > 0 && (r = n.length), e && (r = 0, f.value = 0);
|
|
22
|
-
for (let e = r; e < t.length; e++) t[e].style.position = "absolute", t[e].style.transition = u.value, t[e].style.width = `${p.value}px`, t[e].style.backgroundColor = w(e), t[e].style.left = `${v(e)}px`, t[e].style.top = `${b(e, t)}px`, t[e].classList.add(S.value), x(t[e]);
|
|
23
|
-
}, w = (e) => {
|
|
24
|
-
let t = e + 1;
|
|
25
|
-
return a.value % 2 == 0 ? t % 2 == 0 ? l.value : c.value : t % a.value !== 0 && t % a.value % 2 == 0 ? l.value : c.value;
|
|
26
|
-
}, T = (t = !1) => {
|
|
27
|
-
g(), _(), e(() => {
|
|
28
|
-
C(t);
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
return n(() => a.value, () => {
|
|
32
|
-
e(() => {
|
|
33
|
-
T(!0);
|
|
34
|
-
});
|
|
35
|
-
}), {
|
|
36
|
-
init: T,
|
|
37
|
-
column: a,
|
|
38
|
-
rowSpacing: o,
|
|
39
|
-
columnSpacing: s,
|
|
40
|
-
oddColumnBgColor: c,
|
|
41
|
-
evenColumnBgColor: l,
|
|
42
|
-
getItems: m
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
//#endregion
|
|
46
|
-
export { r as useWaterFallLayout };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
//#region packages/composables/use-z-index/index.ts
|
|
2
|
-
var e = {
|
|
3
|
-
_i: 2e3,
|
|
4
|
-
get value() {
|
|
5
|
-
return this._i++;
|
|
6
|
-
}
|
|
7
|
-
};
|
|
8
|
-
function t() {
|
|
9
|
-
return {
|
|
10
|
-
zIndex: e,
|
|
11
|
-
reset: (t) => {
|
|
12
|
-
e._i = t;
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
//#endregion
|
|
17
|
-
export { t as useZIndex };
|
package/es/constants/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './svgLoading';
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const svgLoadingContent = "<svg viewBox=\"0 0 800 800\" xmlns=\"http://www.w3.org/2000/svg\">\n<style>\n @keyframes spin {\n to {\n transform: rotate(360deg);\n }\n}\n\n@keyframes spin2 {\n 0% {\n stroke-dasharray: 1, 800;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 200, 200;\n stroke-dashoffset: 100px;\n }\n 100% {\n stroke-dasharray: 800, 1;\n stroke-dashoffset: -800px;\n }\n}\n\n.spin2 {\n transform-origin: center;\n animation: spin2 1.5s ease-in-out infinite,\n spin 2s linear infinite;\n animation-direction: alternate;\n}\n</style>\n <circle class=\"spin2\" cx=\"400\" cy=\"400\" fill=\"none\"\n r=\"200\" stroke-width=\"40\" stroke=\"#E387FF\"\n stroke-dasharray=\"800 1400\"\n stroke-linecap=\"round\"\n />\n</svg>";
|
|
2
|
-
export { svgLoadingContent };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
//#region packages/constants/svgLoading.ts
|
|
2
|
-
var e = "<svg viewBox=\"0 0 800 800\" xmlns=\"http://www.w3.org/2000/svg\">\n<style>\n @keyframes spin {\n to {\n transform: rotate(360deg);\n }\n}\n\n@keyframes spin2 {\n 0% {\n stroke-dasharray: 1, 800;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 200, 200;\n stroke-dashoffset: 100px;\n }\n 100% {\n stroke-dasharray: 800, 1;\n stroke-dashoffset: -800px;\n }\n}\n\n.spin2 {\n transform-origin: center;\n animation: spin2 1.5s ease-in-out infinite,\n spin 2s linear infinite;\n animation-direction: alternate;\n}\n</style>\n <circle class=\"spin2\" cx=\"400\" cy=\"400\" fill=\"none\"\n r=\"200\" stroke-width=\"40\" stroke=\"#E387FF\"\n stroke-dasharray=\"800 1400\"\n stroke-linecap=\"round\"\n />\n</svg>";
|
|
3
|
-
//#endregion
|
|
4
|
-
export { e as svgLoadingContent };
|
package/es/directives/index.d.ts
DELETED
package/es/directives/index.mjs
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { useDraggable as e } from "../composables/use-draggable/index.mjs";
|
|
2
|
-
import "../composables/index.mjs";
|
|
3
|
-
//#region packages/directives/vDraggable.ts
|
|
4
|
-
var t = {
|
|
5
|
-
mounted(t, n) {
|
|
6
|
-
e(t, n.value || {});
|
|
7
|
-
},
|
|
8
|
-
unmounted(e) {
|
|
9
|
-
var t;
|
|
10
|
-
(t = e._cleanup) == null || t.call(e);
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
//#endregion
|
|
14
|
-
export { t as vDraggable };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { DirectiveBinding } from 'vue';
|
|
2
|
-
interface ResizeOptions {
|
|
3
|
-
minWidth?: number;
|
|
4
|
-
minHeight?: number;
|
|
5
|
-
maxWidth?: number;
|
|
6
|
-
maxHeight?: number;
|
|
7
|
-
}
|
|
8
|
-
/** main directive */
|
|
9
|
-
declare const vResizable: {
|
|
10
|
-
mounted(el: HTMLElement, binding: DirectiveBinding): void;
|
|
11
|
-
beforeUnmount(el: HTMLElement): void;
|
|
12
|
-
};
|
|
13
|
-
declare function applyResizable(el: HTMLElement, options?: ResizeOptions): () => void;
|
|
14
|
-
export { vResizable, applyResizable };
|