rappel-ui 1.0.8 → 1.0.12
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/dist/README.md +41 -0
- package/dist/cjs/_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/defineProperty.js +1 -0
- package/dist/cjs/_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/toPrimitive.js +1 -0
- package/dist/cjs/_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/toPropertyKey.js +1 -0
- package/dist/cjs/_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/typeof.js +1 -0
- package/dist/cjs/_virtual/_plugin-vue_export-helper.js +1 -0
- package/dist/cjs/_virtual/_rolldown/runtime.js +1 -0
- package/dist/cjs/components/button/index.d.ts +57 -0
- package/dist/cjs/components/button/index.js +1 -0
- package/dist/cjs/components/button/src/button-group.js +1 -0
- package/dist/cjs/components/button/src/button-group.vue.d.ts +14 -0
- package/dist/cjs/components/button/src/button-group.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/cjs/components/button/src/button.js +1 -0
- package/dist/cjs/components/button/src/button.vue.d.ts +24 -0
- package/dist/cjs/components/button/src/button.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/cjs/components/button/src/constants.d.ts +4 -0
- package/dist/cjs/components/button/src/constants.js +1 -0
- package/dist/cjs/components/button/src/types.d.ts +32 -0
- package/dist/cjs/components/button/style/index.js +1 -0
- package/dist/cjs/components/button-group/style/index.js +1 -0
- package/dist/cjs/components/colors/index.js +1 -0
- package/dist/cjs/components/colors/src/colors.js +1 -0
- package/dist/cjs/components/colors/src/colors.vue.d.ts +3 -0
- package/dist/cjs/components/colors/src/colors.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/cjs/components/colors/src/neutral-color.js +1 -0
- package/dist/cjs/components/colors/src/neutral-color.vue.d.ts +3 -0
- package/dist/cjs/components/colors/src/neutral-color.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/cjs/components/colors/src/primary-color.js +1 -0
- package/dist/cjs/components/colors/src/primary-color.vue.d.ts +3 -0
- package/dist/cjs/components/colors/src/primary-color.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/cjs/components/colors/src/secondary-color.js +1 -0
- package/dist/cjs/components/colors/src/secondary-color.vue.d.ts +3 -0
- package/dist/cjs/components/colors/src/secondary-color.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/cjs/components/colors/style/index.js +1 -0
- package/{cjs → dist/cjs}/components/filter-panel/index.d.ts +25 -29
- package/dist/cjs/components/filter-panel/index.js +1 -0
- package/dist/cjs/components/filter-panel/src/filter-panel.js +1 -0
- package/dist/cjs/components/filter-panel/src/filter-panel.vue.d.ts +46 -0
- package/dist/cjs/components/filter-panel/src/filter-panel.vue_vue_type_script_setup_true_lang.js +1 -0
- package/{es → dist/cjs}/components/filter-panel/src/types.d.ts +1 -2
- package/dist/cjs/components/filter-panel/style/index.js +1 -0
- package/{cjs → dist/cjs}/components/index.d.ts +3 -0
- package/dist/cjs/components/index.js +1 -0
- package/{es → dist/cjs}/components/input/index.d.ts +1 -1
- package/dist/cjs/components/input/index.js +1 -0
- package/dist/cjs/components/input/src/input.js +1 -0
- package/dist/cjs/components/input/src/input.vue.d.ts +24 -0
- package/dist/cjs/components/input/src/input.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/cjs/components/package.js +1 -0
- package/dist/cjs/components/popconfirm/index.d.ts +79 -0
- package/dist/cjs/components/popconfirm/index.js +1 -0
- package/dist/cjs/components/popconfirm/src/popconfirm.js +1 -0
- package/dist/cjs/components/popconfirm/src/popconfirm.vue.d.ts +61 -0
- package/dist/cjs/components/popconfirm/src/popconfirm.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/cjs/components/popconfirm/src/types.d.ts +18 -0
- package/dist/cjs/components/popover/index.d.ts +21 -0
- package/dist/cjs/components/popover/index.js +1 -0
- package/dist/cjs/components/popover/src/popover.js +1 -0
- package/dist/cjs/components/popover/src/popover.vue.d.ts +16 -0
- package/dist/cjs/components/popover/src/popover.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/cjs/components/popover/src/types.d.ts +4 -0
- package/{cjs → dist/cjs}/components/svg-icon/index.d.ts +1 -1
- package/dist/cjs/components/svg-icon/index.js +1 -0
- package/dist/cjs/components/svg-icon/src/svg-icon.js +1 -0
- package/dist/cjs/components/svg-icon/src/svg-icon.vue.d.ts +4 -0
- package/dist/cjs/components/svg-icon/src/svg-icon.vue_vue_type_script_setup_true_lang.js +1 -0
- package/{es → dist/cjs}/components/svg-icon/src/types.d.ts +3 -2
- package/dist/cjs/components/svg-icon/style/index.js +1 -0
- package/{es → dist/cjs}/components/tabs/index.d.ts +2 -2
- package/dist/cjs/components/tabs/index.js +1 -0
- package/dist/cjs/components/tabs/src/tabs.js +1 -0
- package/dist/cjs/components/tabs/src/tabs.vue.d.ts +13 -0
- package/dist/cjs/components/tooltip/index.d.ts +112 -0
- package/dist/cjs/components/tooltip/index.js +1 -0
- package/dist/cjs/components/tooltip/src/constants.d.ts +7 -0
- package/dist/cjs/components/tooltip/src/constants.js +1 -0
- package/dist/cjs/components/tooltip/src/content.js +1 -0
- package/dist/cjs/components/tooltip/src/content.vue.d.ts +47 -0
- package/dist/cjs/components/tooltip/src/content.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/cjs/components/tooltip/src/tooltip.js +1 -0
- package/dist/cjs/components/tooltip/src/tooltip.vue.d.ts +52 -0
- package/dist/cjs/components/tooltip/src/tooltip.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/cjs/components/tooltip/src/types.d.ts +98 -0
- package/dist/cjs/components/tooltip/src/use-emit.d.ts +14 -0
- package/dist/cjs/components/tooltip/src/use-emit.js +1 -0
- package/dist/cjs/components/tooltip/src/use-tooltip.d.ts +11 -0
- package/dist/cjs/components/tooltip/src/use-tooltip.js +1 -0
- package/dist/cjs/composables/index.d.ts +8 -0
- package/dist/cjs/composables/index.js +1 -0
- package/dist/cjs/composables/use-date-format/index.js +1 -0
- package/dist/cjs/composables/use-draggable/index.js +1 -0
- package/dist/cjs/composables/use-namespace/index.d.ts +13 -0
- package/dist/cjs/composables/use-namespace/index.js +1 -0
- package/{cjs/composables/useOnceFn.d.ts → dist/cjs/composables/use-once-fn/index.d.ts} +1 -1
- package/dist/cjs/composables/use-once-fn/index.js +1 -0
- package/dist/cjs/composables/use-theme/index.d.ts +7 -0
- package/dist/cjs/composables/use-theme/index.js +1 -0
- package/dist/cjs/composables/use-time-nodes/index.js +1 -0
- package/dist/cjs/composables/use-waterfall-layout/index.js +1 -0
- package/dist/cjs/composables/use-z-index/index.d.ts +11 -0
- package/dist/cjs/composables/use-z-index/index.js +1 -0
- package/{es/constants/svgLoading.mjs → dist/cjs/constants/svgLoading.js} +2 -5
- package/dist/cjs/directives/index.js +1 -0
- package/dist/cjs/directives/vDraggable.js +1 -0
- package/dist/cjs/directives/vResizable.js +21 -0
- package/dist/cjs/directives/vSvgLoading.js +1 -0
- package/dist/cjs/index.d.ts +1574 -0
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@floating-ui_core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@floating-ui_dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +1 -0
- package/dist/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/dist/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 -0
- package/dist/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 -0
- package/dist/cjs/rappel-ui/resolver.d.ts +4 -0
- package/dist/cjs/svg-icons/constants.d.ts +3 -0
- package/dist/cjs/svg-icons/dist/es/constants.js +1 -0
- package/dist/cjs/svg-icons/dist/es/index.js +1 -0
- package/dist/cjs/svg-icons/dist/es/node_modules/.pnpm/@vueuse_core@14.0.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.js +1 -0
- package/dist/cjs/svg-icons/dist/es/node_modules/.pnpm/@vueuse_shared@14.0.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.js +1 -0
- package/dist/cjs/svg-icons/dist/es/packages/components/svg-icon/index.js +1 -0
- package/dist/cjs/svg-icons/dist/es/packages/components/svg-icon/src/svg-icon.js +1 -0
- package/dist/cjs/svg-icons/dist/es/packages/components/svg-icon/src/svg-icon.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/cjs/svg-icons/dist/es/packages/composables/index.js +1 -0
- package/dist/cjs/svg-icons/dist/es/packages/composables/use-namespace/index.js +1 -0
- package/dist/cjs/svg-icons/dist/es/packages/composables/use-theme/index.js +1 -0
- package/dist/cjs/svg-icons/dist/es/packages/composables/use-waterfall-layout/index.js +1 -0
- package/dist/cjs/svg-icons/dist/es/packages/utils/index.js +1 -0
- package/dist/cjs/svg-icons/dist/es/packages/utils/util.js +1 -0
- package/dist/cjs/svg-icons/dist/es/packages/utils/vue/index.js +1 -0
- package/dist/cjs/svg-icons/index.d.ts +1180 -0
- package/dist/cjs/svg-icons/types.d.ts +5 -0
- package/dist/cjs/theme-chalk/src/base.css +1 -0
- package/dist/cjs/theme-chalk/src/button-group.css +1 -0
- package/dist/cjs/theme-chalk/src/button.css +1 -0
- package/dist/cjs/theme-chalk/src/colors.css +1 -0
- package/dist/cjs/theme-chalk/src/filter-panel.css +1 -0
- package/dist/cjs/theme-chalk/src/svg-icon.css +1 -0
- package/dist/cjs/types/common.d.ts +1 -0
- package/dist/cjs/types/event.d.ts +1 -0
- package/dist/cjs/types/index.d.ts +4 -0
- package/dist/cjs/types/theme.d.ts +1 -0
- package/dist/cjs/utils/index.js +1 -0
- package/{es → dist/cjs}/utils/util.d.ts +33 -6
- package/dist/cjs/utils/util.js +3 -0
- package/{cjs → dist/cjs}/utils/vue/index.d.ts +4 -0
- package/dist/cjs/utils/vue/index.js +1 -0
- package/dist/es/_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/defineProperty.mjs +12 -0
- package/dist/es/_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/toPrimitive.mjs +14 -0
- package/dist/es/_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/toPropertyKey.mjs +9 -0
- package/dist/es/_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/typeof.mjs +11 -0
- package/dist/es/_virtual/_plugin-vue_export-helper.mjs +8 -0
- package/dist/es/_virtual/_rolldown/runtime.mjs +11 -0
- package/dist/es/components/button/index.d.ts +57 -0
- package/dist/es/components/button/index.mjs +9 -0
- package/dist/es/components/button/src/button-group.mjs +5 -0
- package/dist/es/components/button/src/button-group.vue.d.ts +14 -0
- package/dist/es/components/button/src/button-group.vue_vue_type_script_setup_true_lang.mjs +25 -0
- package/dist/es/components/button/src/button.mjs +5 -0
- package/dist/es/components/button/src/button.vue.d.ts +24 -0
- package/dist/es/components/button/src/button.vue_vue_type_script_setup_true_lang.mjs +139 -0
- package/dist/es/components/button/src/constants.d.ts +4 -0
- package/dist/es/components/button/src/constants.mjs +20 -0
- package/dist/es/components/button/src/types.d.ts +32 -0
- package/dist/es/components/button/style/css.d.ts +0 -0
- package/dist/es/components/button/style/index.d.ts +0 -0
- package/dist/es/components/button/style/index.mjs +2 -0
- package/dist/es/components/button-group/style/index.mjs +2 -0
- package/dist/es/components/colors/index.mjs +14 -0
- package/dist/es/components/colors/src/colors.mjs +5 -0
- package/dist/es/components/colors/src/colors.vue.d.ts +3 -0
- package/dist/es/components/colors/src/colors.vue_vue_type_script_setup_true_lang.mjs +21 -0
- package/dist/es/components/colors/src/neutral-color.mjs +5 -0
- package/dist/es/components/colors/src/neutral-color.vue.d.ts +3 -0
- package/dist/es/components/colors/src/neutral-color.vue_vue_type_script_setup_true_lang.mjs +105 -0
- package/dist/es/components/colors/src/primary-color.mjs +5 -0
- package/dist/es/components/colors/src/primary-color.vue.d.ts +3 -0
- package/dist/es/components/colors/src/primary-color.vue_vue_type_script_setup_true_lang.mjs +38 -0
- package/dist/es/components/colors/src/secondary-color.mjs +5 -0
- package/dist/es/components/colors/src/secondary-color.vue.d.ts +3 -0
- package/dist/es/components/colors/src/secondary-color.vue_vue_type_script_setup_true_lang.mjs +56 -0
- package/dist/es/components/colors/style/css.d.ts +0 -0
- package/dist/es/components/colors/style/index.d.ts +0 -0
- package/dist/es/components/colors/style/index.mjs +2 -0
- package/{es → dist/es}/components/filter-panel/index.d.ts +25 -29
- package/dist/es/components/filter-panel/index.mjs +7 -0
- package/dist/es/components/filter-panel/src/constants.d.ts +1 -0
- package/dist/es/components/filter-panel/src/filter-panel.mjs +5 -0
- package/dist/es/components/filter-panel/src/filter-panel.vue.d.ts +46 -0
- package/dist/es/components/filter-panel/src/filter-panel.vue_vue_type_script_setup_true_lang.mjs +130 -0
- package/{cjs → dist/es}/components/filter-panel/src/types.d.ts +1 -2
- package/dist/es/components/filter-panel/style/css.d.ts +0 -0
- package/dist/es/components/filter-panel/style/index.d.ts +0 -0
- package/dist/es/components/filter-panel/style/index.mjs +2 -0
- package/{es → dist/es}/components/index.d.ts +3 -0
- package/dist/es/components/index.mjs +36 -0
- package/{cjs → dist/es}/components/input/index.d.ts +1 -1
- package/dist/es/components/input/index.mjs +7 -0
- package/dist/es/components/input/src/input.mjs +5 -0
- package/dist/es/components/input/src/input.vue.d.ts +24 -0
- package/dist/es/components/input/src/input.vue_vue_type_script_setup_true_lang.mjs +21 -0
- package/dist/es/components/package.mjs +4 -0
- package/dist/es/components/popconfirm/index.d.ts +79 -0
- package/dist/es/components/popconfirm/index.mjs +7 -0
- package/dist/es/components/popconfirm/src/popconfirm.mjs +5 -0
- package/dist/es/components/popconfirm/src/popconfirm.vue.d.ts +61 -0
- package/dist/es/components/popconfirm/src/popconfirm.vue_vue_type_script_setup_true_lang.mjs +234 -0
- package/dist/es/components/popconfirm/src/types.d.ts +18 -0
- package/dist/es/components/popconfirm/style/css.d.ts +0 -0
- package/dist/es/components/popconfirm/style/index.d.ts +0 -0
- package/dist/es/components/popover/index.d.ts +21 -0
- package/dist/es/components/popover/index.mjs +7 -0
- package/dist/es/components/popover/src/popover.mjs +5 -0
- package/dist/es/components/popover/src/popover.vue.d.ts +16 -0
- package/dist/es/components/popover/src/popover.vue_vue_type_script_setup_true_lang.mjs +164 -0
- package/dist/es/components/popover/src/types.d.ts +4 -0
- package/dist/es/components/popover/style/css.d.ts +0 -0
- package/dist/es/components/popover/style/index.d.ts +0 -0
- package/{es → dist/es}/components/svg-icon/index.d.ts +1 -1
- package/dist/es/components/svg-icon/index.mjs +7 -0
- package/dist/es/components/svg-icon/src/svg-icon.mjs +5 -0
- package/dist/es/components/svg-icon/src/svg-icon.vue.d.ts +4 -0
- package/dist/es/components/svg-icon/src/svg-icon.vue_vue_type_script_setup_true_lang.mjs +52 -0
- package/{cjs → dist/es}/components/svg-icon/src/types.d.ts +3 -2
- package/dist/es/components/svg-icon/style/css.d.ts +0 -0
- package/dist/es/components/svg-icon/style/index.d.ts +0 -0
- package/dist/es/components/svg-icon/style/index.mjs +2 -0
- package/{cjs → dist/es}/components/tabs/index.d.ts +2 -2
- package/dist/es/components/tabs/index.mjs +7 -0
- package/dist/es/components/tabs/src/tabs.mjs +11 -0
- package/dist/es/components/tabs/src/tabs.vue.d.ts +13 -0
- package/dist/es/components/tooltip/index.d.ts +112 -0
- package/dist/es/components/tooltip/index.mjs +7 -0
- package/dist/es/components/tooltip/src/constants.d.ts +7 -0
- package/dist/es/components/tooltip/src/constants.mjs +13 -0
- package/dist/es/components/tooltip/src/content.mjs +5 -0
- package/dist/es/components/tooltip/src/content.vue.d.ts +47 -0
- package/dist/es/components/tooltip/src/content.vue_vue_type_script_setup_true_lang.mjs +158 -0
- package/dist/es/components/tooltip/src/tooltip.mjs +5 -0
- package/dist/es/components/tooltip/src/tooltip.vue.d.ts +52 -0
- package/dist/es/components/tooltip/src/tooltip.vue_vue_type_script_setup_true_lang.mjs +260 -0
- package/dist/es/components/tooltip/src/types.d.ts +98 -0
- package/dist/es/components/tooltip/src/use-emit.d.ts +14 -0
- package/dist/es/components/tooltip/src/use-emit.mjs +17 -0
- package/dist/es/components/tooltip/src/use-tooltip.d.ts +11 -0
- package/dist/es/components/tooltip/src/use-tooltip.mjs +105 -0
- package/dist/es/components/tooltip/style/css.d.ts +0 -0
- package/dist/es/components/tooltip/style/index.d.ts +0 -0
- package/dist/es/composables/index.d.ts +8 -0
- package/dist/es/composables/index.mjs +9 -0
- package/dist/es/composables/use-date-format/index.mjs +20 -0
- package/dist/es/composables/use-draggable/index.mjs +61 -0
- package/dist/es/composables/use-namespace/index.d.ts +13 -0
- package/dist/es/composables/use-namespace/index.mjs +22 -0
- package/{es/composables/useOnceFn.d.ts → dist/es/composables/use-once-fn/index.d.ts} +1 -1
- package/dist/es/composables/use-once-fn/index.mjs +30 -0
- package/dist/es/composables/use-theme/index.d.ts +7 -0
- package/dist/es/composables/use-theme/index.mjs +23 -0
- package/dist/es/composables/use-time-nodes/index.mjs +25 -0
- package/dist/es/composables/use-waterfall-layout/index.mjs +46 -0
- package/dist/es/composables/use-z-index/index.d.ts +11 -0
- package/dist/es/composables/use-z-index/index.mjs +17 -0
- package/dist/es/constants/svgLoading.mjs +4 -0
- package/dist/es/directives/index.mjs +4 -0
- package/dist/es/directives/vDraggable.mjs +14 -0
- package/dist/es/directives/vResizable.mjs +136 -0
- package/dist/es/directives/vSvgLoading.mjs +47 -0
- package/dist/es/index.d.ts +1574 -0
- package/dist/es/index.mjs +45 -0
- package/dist/es/node_modules/.pnpm/@floating-ui_core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +276 -0
- package/dist/es/node_modules/.pnpm/@floating-ui_dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +322 -0
- package/dist/es/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +99 -0
- package/dist/es/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +101 -0
- package/dist/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/dist/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 -0
- package/dist/es/node_modules/.pnpm/@vueuse_shared@14.0.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.mjs +121 -0
- package/dist/es/rappel-ui/resolver.d.ts +4 -0
- package/dist/es/svg-icons/constants.d.ts +3 -0
- package/dist/es/svg-icons/dist/es/constants.mjs +114 -0
- package/dist/es/svg-icons/dist/es/index.mjs +77 -0
- package/dist/es/svg-icons/dist/es/node_modules/.pnpm/@vueuse_core@14.0.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.mjs +275 -0
- package/dist/es/svg-icons/dist/es/node_modules/.pnpm/@vueuse_shared@14.0.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.mjs +88 -0
- package/dist/es/svg-icons/dist/es/packages/components/svg-icon/index.mjs +7 -0
- package/dist/es/svg-icons/dist/es/packages/components/svg-icon/src/svg-icon.mjs +5 -0
- package/dist/es/svg-icons/dist/es/packages/components/svg-icon/src/svg-icon.vue_vue_type_script_setup_true_lang.mjs +51 -0
- package/dist/es/svg-icons/dist/es/packages/composables/index.mjs +3 -0
- package/dist/es/svg-icons/dist/es/packages/composables/use-namespace/index.mjs +22 -0
- package/dist/es/svg-icons/dist/es/packages/composables/use-theme/index.mjs +14 -0
- package/dist/es/svg-icons/dist/es/packages/composables/use-waterfall-layout/index.mjs +1 -0
- package/dist/es/svg-icons/dist/es/packages/utils/index.mjs +2 -0
- package/dist/es/svg-icons/dist/es/packages/utils/util.mjs +6 -0
- package/dist/es/svg-icons/dist/es/packages/utils/vue/index.mjs +16 -0
- package/dist/es/svg-icons/index.d.ts +1180 -0
- package/dist/es/svg-icons/types.d.ts +5 -0
- package/dist/es/theme-chalk/src/base.css +1 -0
- package/dist/es/theme-chalk/src/button-group.css +1 -0
- package/dist/es/theme-chalk/src/button.css +1 -0
- package/dist/es/theme-chalk/src/colors.css +1 -0
- package/dist/es/theme-chalk/src/filter-panel.css +1 -0
- package/dist/es/theme-chalk/src/svg-icon.css +1 -0
- package/dist/es/types/common.d.ts +1 -0
- package/dist/es/types/component.d.ts +1 -0
- package/dist/es/types/event.d.ts +1 -0
- package/dist/es/types/index.d.ts +4 -0
- package/dist/es/types/theme.d.ts +1 -0
- package/dist/es/utils/index.mjs +3 -0
- package/{cjs → dist/es}/utils/util.d.ts +33 -6
- package/dist/es/utils/util.mjs +198 -0
- package/{es → dist/es}/utils/vue/index.d.ts +4 -0
- package/dist/es/utils/vue/index.mjs +37 -0
- package/dist/package.json +68 -0
- package/dist/theme-chalk/base.css +231 -0
- package/dist/theme-chalk/css-vars/_button-group.css +15 -0
- package/dist/theme-chalk/css-vars/_button.css +15 -0
- package/dist/theme-chalk/css-vars/_colors.css +33 -0
- package/dist/theme-chalk/css-vars/_popconfirm.css +15 -0
- package/dist/theme-chalk/css-vars/_tooltip.css +15 -0
- package/dist/theme-chalk/function/_button.css +15 -0
- package/dist/theme-chalk/function/index.css +15 -0
- package/dist/theme-chalk/index.css +1271 -0
- package/dist/theme-chalk/mixins/_base.css +15 -0
- package/dist/theme-chalk/mixins/_button.css +18 -0
- package/dist/theme-chalk/mixins/_popconfirm.css +18 -0
- package/dist/theme-chalk/mixins/_tooltip.css +18 -0
- package/dist/theme-chalk/mixins/index.css +18 -0
- package/dist/theme-chalk/re-button-group.css +68 -0
- package/dist/theme-chalk/re-button.css +810 -0
- package/{theme-chalk → dist/theme-chalk}/re-colors.css +10 -23
- package/dist/theme-chalk/re-filter-panel.css +36 -0
- package/dist/theme-chalk/re-popconfirm.css +47 -0
- package/dist/theme-chalk/re-popover.css +31 -0
- package/dist/theme-chalk/re-svg-icon.css +33 -0
- package/dist/theme-chalk/re-tooltip.css +62 -0
- package/dist/theme-chalk/root-vars.css +201 -0
- package/dist/theme-chalk/src/base.scss +32 -0
- package/dist/theme-chalk/src/button-group.scss +63 -0
- package/{theme-chalk → dist/theme-chalk}/src/button.scss +50 -21
- package/{theme-chalk → dist/theme-chalk}/src/colors.scss +9 -1
- package/dist/theme-chalk/src/css-vars/_button-group.scss +12 -0
- package/{theme-chalk → dist/theme-chalk}/src/css-vars/_button.scss +44 -3
- package/{theme-chalk → dist/theme-chalk}/src/css-vars/_colors.scss +56 -13
- package/{theme-chalk → dist/theme-chalk}/src/css-vars/_namespace.scss +3 -1
- package/dist/theme-chalk/src/css-vars/_popconfirm.scss +12 -0
- package/dist/theme-chalk/src/css-vars/_tooltip.scss +23 -0
- package/{theme-chalk → dist/theme-chalk}/src/filter-panel.scss +1 -1
- package/{theme-chalk → dist/theme-chalk}/src/function/index.scss +55 -47
- package/dist/theme-chalk/src/index.scss +9 -0
- package/dist/theme-chalk/src/mixins/_base.scss +14 -0
- package/dist/theme-chalk/src/mixins/_button.scss +220 -0
- package/dist/theme-chalk/src/mixins/_popconfirm.scss +12 -0
- package/dist/theme-chalk/src/mixins/_tooltip.scss +37 -0
- package/{theme-chalk → dist/theme-chalk}/src/mixins/index.scss +27 -3
- package/dist/theme-chalk/src/popconfirm.scss +35 -0
- package/dist/theme-chalk/src/popover.scss +18 -0
- package/{theme-chalk → dist/theme-chalk}/src/root-vars.scss +7 -0
- package/{theme-chalk → dist/theme-chalk}/src/svg-icon.scss +1 -1
- package/dist/theme-chalk/src/tooltip.scss +61 -0
- package/dist/umd/index.js +58 -0
- package/package.json +11 -10
- package/cjs/_virtual/_plugin-vue_export-helper.js +0 -1
- package/cjs/components/button/index.d.ts +0 -31
- package/cjs/components/button/index.js +0 -1
- 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/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 -16
- package/cjs/components/colors/index.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/index.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/index.js +0 -1
- package/cjs/components/input/index.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/index.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/index.js +0 -1
- package/cjs/components/tabs/src/tabs.vue.js +0 -1
- package/cjs/composables/index.d.ts +0 -6
- package/cjs/composables/use-namespace/index.d.ts +0 -12
- package/cjs/composables/use-namespace/index.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/constants/svgLoading.js +0 -36
- package/cjs/directives/vDraggable.js +0 -1
- package/cjs/directives/vResizable.js +0 -21
- package/cjs/directives/vSvgLoading.js +0 -1
- package/cjs/index.d.ts +0 -163
- package/cjs/index.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/package.json.js +0 -1
- package/cjs/rappel-ui/index.d.ts +0 -1
- package/cjs/rappel-ui/resolver.d.ts +0 -2
- package/cjs/rappel-ui/resolver.js +0 -1
- package/cjs/theme-chalk/src/base.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/utils/util.js +0 -3
- package/cjs/utils/vue/index.js +0 -1
- package/es/_virtual/_plugin-vue_export-helper.mjs +0 -9
- package/es/components/button/index.d.ts +0 -31
- package/es/components/button/index.mjs +0 -7
- 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/button/src/constants.d.ts +0 -4
- package/es/components/button/src/constants.mjs +0 -5
- package/es/components/button/src/types.d.ts +0 -16
- package/es/components/colors/index.mjs +0 -17
- 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/index.mjs +0 -7
- 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/index.mjs +0 -20
- package/es/components/input/index.mjs +0 -7
- 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/index.mjs +0 -7
- 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/index.mjs +0 -7
- package/es/components/tabs/src/tabs.vue.mjs +0 -17
- package/es/composables/index.d.ts +0 -6
- package/es/composables/use-namespace/index.d.ts +0 -12
- package/es/composables/use-namespace/index.mjs +0 -21
- 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/directives/vDraggable.mjs +0 -13
- package/es/directives/vResizable.mjs +0 -136
- package/es/directives/vSvgLoading.mjs +0 -48
- package/es/index.d.ts +0 -163
- package/es/index.mjs +0 -79
- 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 -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 +0 -24
- package/es/package.json.mjs +0 -4
- package/es/rappel-ui/index.d.ts +0 -1
- package/es/rappel-ui/resolver.d.ts +0 -2
- package/es/rappel-ui/resolver.mjs +0 -18
- package/es/theme-chalk/src/base.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/utils/util.mjs +0 -151
- package/es/utils/vue/index.mjs +0 -36
- package/global.d.ts +0 -7
- package/theme-chalk/base.css +0 -148
- package/theme-chalk/css-vars/_button.css +0 -35
- package/theme-chalk/css-vars/_colors.css +0 -51
- package/theme-chalk/function/_button.css +0 -35
- package/theme-chalk/function/index.css +0 -35
- package/theme-chalk/index.css +0 -661
- package/theme-chalk/mixins/_button.css +0 -35
- package/theme-chalk/mixins/index.css +0 -35
- package/theme-chalk/pu-button.css +0 -446
- package/theme-chalk/re-button.css +0 -446
- package/theme-chalk/re-filter-panel.css +0 -53
- package/theme-chalk/re-svg-icon.css +0 -50
- package/theme-chalk/root-vars.css +0 -132
- package/theme-chalk/src/base.scss +0 -30
- package/theme-chalk/src/common/_function.scss +0 -46
- package/theme-chalk/src/index.scss +0 -5
- package/theme-chalk/src/mixins/_button.scss +0 -140
- package/umd/index.js +0 -59
- /package/{cjs/components/colors → dist/cjs/components/button}/style/css.d.ts +0 -0
- /package/{cjs/components/colors → dist/cjs/components/button}/style/index.d.ts +0 -0
- /package/{cjs/components/button → dist/cjs/components/button-group}/style/css.d.ts +0 -0
- /package/{cjs/components/button → dist/cjs/components/button-group}/style/index.d.ts +0 -0
- /package/{cjs → dist/cjs}/components/colors/index.d.ts +0 -0
- /package/{cjs/components/filter-panel → dist/cjs/components/colors}/style/css.d.ts +0 -0
- /package/{cjs/components/filter-panel → dist/cjs/components/colors}/style/index.d.ts +0 -0
- /package/{cjs → dist/cjs}/components/filter-panel/src/constants.d.ts +0 -0
- /package/{cjs/components/svg-icon → dist/cjs/components/filter-panel}/style/css.d.ts +0 -0
- /package/{cjs/components/svg-icon → dist/cjs/components/filter-panel}/style/index.d.ts +0 -0
- /package/{es/components/button → dist/cjs/components/popconfirm}/style/css.d.ts +0 -0
- /package/{cjs/svg-icons → dist/cjs/components/popconfirm/style}/index.d.ts +0 -0
- /package/{es/components/colors → dist/cjs/components/popover}/style/css.d.ts +0 -0
- /package/{es/components/button → dist/cjs/components/popover}/style/index.d.ts +0 -0
- /package/{es/components/filter-panel → dist/cjs/components/svg-icon}/style/css.d.ts +0 -0
- /package/{es/components/colors → dist/cjs/components/svg-icon}/style/index.d.ts +0 -0
- /package/{es/components/svg-icon → dist/cjs/components/tooltip}/style/css.d.ts +0 -0
- /package/{es/components/filter-panel → dist/cjs/components/tooltip}/style/index.d.ts +0 -0
- /package/{cjs/composables/useDateFormat.d.ts → dist/cjs/composables/use-date-format/index.d.ts} +0 -0
- /package/{cjs/composables/useDraggable.d.ts → dist/cjs/composables/use-draggable/index.d.ts} +0 -0
- /package/{cjs/composables/useTimeNodes.d.ts → dist/cjs/composables/use-time-nodes/index.d.ts} +0 -0
- /package/{cjs/composables/useWaterFallLayout.d.ts → dist/cjs/composables/use-waterfall-layout/index.d.ts} +0 -0
- /package/{cjs → dist/cjs}/constants/index.d.ts +0 -0
- /package/{cjs → dist/cjs}/constants/svgLoading.d.ts +0 -0
- /package/{cjs → dist/cjs}/directives/index.d.ts +0 -0
- /package/{cjs → dist/cjs}/directives/vDraggable.d.ts +0 -0
- /package/{cjs → dist/cjs}/directives/vResizable.d.ts +0 -0
- /package/{cjs → dist/cjs}/directives/vSvgLoading.d.ts +0 -0
- /package/{es/components/filter-panel/src/constants.d.ts → dist/cjs/types/component.d.ts} +0 -0
- /package/{cjs → dist/cjs}/utils/index.d.ts +0 -0
- /package/{es/components/svg-icon/style/index.d.ts → dist/es/components/button-group/style/css.d.ts} +0 -0
- /package/{es/svg-icons → dist/es/components/button-group/style}/index.d.ts +0 -0
- /package/{es → dist/es}/components/colors/index.d.ts +0 -0
- /package/{es/composables/useDateFormat.d.ts → dist/es/composables/use-date-format/index.d.ts} +0 -0
- /package/{es/composables/useDraggable.d.ts → dist/es/composables/use-draggable/index.d.ts} +0 -0
- /package/{es/composables/useTimeNodes.d.ts → dist/es/composables/use-time-nodes/index.d.ts} +0 -0
- /package/{es/composables/useWaterFallLayout.d.ts → dist/es/composables/use-waterfall-layout/index.d.ts} +0 -0
- /package/{es → dist/es}/constants/index.d.ts +0 -0
- /package/{es → dist/es}/constants/svgLoading.d.ts +0 -0
- /package/{es → dist/es}/directives/index.d.ts +0 -0
- /package/{es → dist/es}/directives/vDraggable.d.ts +0 -0
- /package/{es → dist/es}/directives/vResizable.d.ts +0 -0
- /package/{es → dist/es}/directives/vSvgLoading.d.ts +0 -0
- /package/{es → dist/es}/utils/index.d.ts +0 -0
- /package/{theme-chalk → dist/theme-chalk}/src/function/_button.scss +0 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
import { Theme } from '@rappel-ui/types';
|
|
3
|
+
import { buttonTypes, buttonSizes, buttonNativeTypes } from './constants';
|
|
4
|
+
export interface ButtonProps {
|
|
5
|
+
type?: (typeof buttonTypes)[number];
|
|
6
|
+
size?: (typeof buttonSizes)[number];
|
|
7
|
+
plain?: boolean;
|
|
8
|
+
round?: boolean;
|
|
9
|
+
circle?: boolean;
|
|
10
|
+
dashed?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
icon?: string | Component;
|
|
13
|
+
loading?: boolean;
|
|
14
|
+
loadingIcon?: string | Component;
|
|
15
|
+
text?: boolean;
|
|
16
|
+
padding?: boolean;
|
|
17
|
+
bg?: boolean;
|
|
18
|
+
link?: boolean;
|
|
19
|
+
theme?: Theme;
|
|
20
|
+
reverseTheme?: boolean;
|
|
21
|
+
autofocus?: boolean;
|
|
22
|
+
nativeType?: (typeof buttonNativeTypes)[number];
|
|
23
|
+
}
|
|
24
|
+
export interface ButtonGroupProps {
|
|
25
|
+
size?: ButtonProps['size'];
|
|
26
|
+
type?: ButtonProps['type'];
|
|
27
|
+
direction?: 'horizontal' | 'vertical';
|
|
28
|
+
}
|
|
29
|
+
export interface ButtonEmits {
|
|
30
|
+
click: [e: MouseEvent];
|
|
31
|
+
}
|
|
32
|
+
export type { buttonTypes, buttonSizes, buttonNativeTypes };
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { withInstall as e } from "../../utils/vue/index.mjs";
|
|
2
|
+
import "../../utils/index.mjs";
|
|
3
|
+
import t from "./src/primary-color.mjs";
|
|
4
|
+
import n from "./src/secondary-color.mjs";
|
|
5
|
+
import r from "./src/neutral-color.mjs";
|
|
6
|
+
import i from "./src/colors.mjs";
|
|
7
|
+
//#region packages/components/colors/index.ts
|
|
8
|
+
var a = e(i, {
|
|
9
|
+
RePrimaryColor: t,
|
|
10
|
+
ReSecondaryColor: n,
|
|
11
|
+
ReNeutralColor: r
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
export { a as ReColors, a as default, r as ReNeutralColor, t as RePrimaryColor, n as ReSecondaryColor };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import e from "./primary-color.mjs";
|
|
2
|
+
import t from "./secondary-color.mjs";
|
|
3
|
+
import n from "./neutral-color.mjs";
|
|
4
|
+
import { Fragment as r, createElementBlock as i, createElementVNode as a, createVNode as o, defineComponent as s, openBlock as c } from "vue";
|
|
5
|
+
//#region packages/components/colors/src/colors.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var l = /*@__PURE__*/ s({
|
|
7
|
+
name: "ReColors",
|
|
8
|
+
__name: "colors",
|
|
9
|
+
setup(s) {
|
|
10
|
+
return (s, l) => (c(), i(r, null, [
|
|
11
|
+
l[0] || (l[0] = a("h2", null, "Primary 主色", -1)),
|
|
12
|
+
o(e),
|
|
13
|
+
l[1] || (l[1] = a("h2", null, "Secondary 状态色", -1)),
|
|
14
|
+
o(t),
|
|
15
|
+
l[2] || (l[2] = a("h2", null, "Neutral 文本、边框、背景色", -1)),
|
|
16
|
+
o(n)
|
|
17
|
+
], 64));
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
//#endregion
|
|
21
|
+
export { l as default };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { toPascalCase as e } from "../../../utils/vue/index.mjs";
|
|
2
|
+
import { getCssVarsByPrefix as t, getEqualOpacityColor as n } from "../../../utils/util.mjs";
|
|
3
|
+
import "../../../utils/index.mjs";
|
|
4
|
+
import { useNamespace as r } from "../../../composables/use-namespace/index.mjs";
|
|
5
|
+
import { useTheme as i } from "../../../composables/use-theme/index.mjs";
|
|
6
|
+
import "../../../composables/index.mjs";
|
|
7
|
+
import "../style/index.mjs";
|
|
8
|
+
import { Fragment as a, createElementBlock as o, createElementVNode as s, defineComponent as c, nextTick as l, normalizeClass as u, normalizeStyle as d, onMounted as f, openBlock as p, ref as m, renderList as h, toDisplayString as g, unref as _, watch as v } from "vue";
|
|
9
|
+
//#region packages/components/colors/src/neutral-color.vue?vue&type=script&setup=true&lang.ts
|
|
10
|
+
var y = /*@__PURE__*/ c({
|
|
11
|
+
name: "ReNeutralColor",
|
|
12
|
+
__name: "neutral-color",
|
|
13
|
+
setup(c) {
|
|
14
|
+
let { nm: y, ns: b } = r("colors"), { isDark: x } = i(), S = (r, i) => Object.entries(t(r)).reduce((a, [o, s]) => {
|
|
15
|
+
let c = {}, l = o.replace(`--${r}-`, ""), u = `${e(l)} ${e(i)}`;
|
|
16
|
+
switch (i) {
|
|
17
|
+
case "text":
|
|
18
|
+
c = {
|
|
19
|
+
color: s == null ? void 0 : s.toString().toUpperCase(),
|
|
20
|
+
text: u,
|
|
21
|
+
textcolor: x.value ? "#000" : "#fff"
|
|
22
|
+
};
|
|
23
|
+
break;
|
|
24
|
+
case "border":
|
|
25
|
+
c = {
|
|
26
|
+
color: s == null ? void 0 : s.toString().toUpperCase(),
|
|
27
|
+
text: u
|
|
28
|
+
};
|
|
29
|
+
break;
|
|
30
|
+
case "fill":
|
|
31
|
+
c = {
|
|
32
|
+
color: s == null ? void 0 : s.toString().toUpperCase(),
|
|
33
|
+
text: u,
|
|
34
|
+
extraclass: l === "transparent" ? x.value ? b("grids is-dark") : b("grids") : void 0,
|
|
35
|
+
bordercolor: l === "blank" ? n(Object.values(t("re-color-primary-base"))[0], .4, x.value) : void 0
|
|
36
|
+
};
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
return a[o.replace(`--${r}-`, "")] = c, a;
|
|
40
|
+
}, {}), C = (e, t = "text", n = [
|
|
41
|
+
"darkest",
|
|
42
|
+
"darker",
|
|
43
|
+
"base",
|
|
44
|
+
"dark",
|
|
45
|
+
"light",
|
|
46
|
+
"lighter"
|
|
47
|
+
]) => {
|
|
48
|
+
let r = S(e, t);
|
|
49
|
+
return n.reduce((e, t) => (e.push(r[t]), e), []);
|
|
50
|
+
}, w = m([]), T = (e) => {
|
|
51
|
+
l(() => {
|
|
52
|
+
w.value = [
|
|
53
|
+
{ shades: C("re-color-text", "text") },
|
|
54
|
+
{ shades: C("re-color-border", "border", [
|
|
55
|
+
"darker",
|
|
56
|
+
"dark",
|
|
57
|
+
"base",
|
|
58
|
+
"light",
|
|
59
|
+
"lighter",
|
|
60
|
+
"lightest"
|
|
61
|
+
]) },
|
|
62
|
+
{ shades: C("re-color-fill", "fill", [
|
|
63
|
+
"darker",
|
|
64
|
+
"dark",
|
|
65
|
+
"base",
|
|
66
|
+
"light",
|
|
67
|
+
"lighter",
|
|
68
|
+
"lightest",
|
|
69
|
+
"blank",
|
|
70
|
+
"transparent"
|
|
71
|
+
]) },
|
|
72
|
+
{ shades: [
|
|
73
|
+
.9,
|
|
74
|
+
.8,
|
|
75
|
+
.7,
|
|
76
|
+
.6,
|
|
77
|
+
.5,
|
|
78
|
+
.4,
|
|
79
|
+
.3,
|
|
80
|
+
.2,
|
|
81
|
+
.1
|
|
82
|
+
].map((r) => ({
|
|
83
|
+
color: n(Object.values(t("re-color-primary-base"))[0], r, e),
|
|
84
|
+
text: `Primary Alpha ${r * 100}% Fill`
|
|
85
|
+
})) }
|
|
86
|
+
];
|
|
87
|
+
});
|
|
88
|
+
};
|
|
89
|
+
return v(x, (e) => {
|
|
90
|
+
T(e);
|
|
91
|
+
}), f(() => {
|
|
92
|
+
T(x.value);
|
|
93
|
+
}), (e, t) => (p(), o("div", { class: u([_(y)("neutral")]) }, [(p(!0), o(a, null, h(w.value, (e) => (p(), o("div", { key: e.shades[0].color }, [(p(!0), o(a, null, h(e.shades, (e) => (p(), o("div", {
|
|
94
|
+
key: e.text,
|
|
95
|
+
class: u([_(b)("collects"), e == null ? void 0 : e.extraclass]),
|
|
96
|
+
style: d({
|
|
97
|
+
"background-color": e.color,
|
|
98
|
+
color: e == null ? void 0 : e.textcolor,
|
|
99
|
+
border: e != null && e.bordercolor ? "1px solid " + e.bordercolor : "none"
|
|
100
|
+
})
|
|
101
|
+
}, [s("div", null, [s("div", null, g(e.text), 1), s("div", null, g(e.color.toUpperCase()), 1)])], 6))), 128))]))), 128))], 2));
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
//#endregion
|
|
105
|
+
export { y as default };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { createColors as e, getCssVarsByPrefix as t } from "../../../utils/util.mjs";
|
|
2
|
+
import "../../../utils/index.mjs";
|
|
3
|
+
import { useNamespace as n } from "../../../composables/use-namespace/index.mjs";
|
|
4
|
+
import { useTheme as r } from "../../../composables/use-theme/index.mjs";
|
|
5
|
+
import "../../../composables/index.mjs";
|
|
6
|
+
import "../style/index.mjs";
|
|
7
|
+
import { Fragment as i, createElementBlock as a, createElementVNode as o, defineComponent as s, normalizeClass as c, normalizeStyle as l, onMounted as u, openBlock as d, ref as f, renderList as p, toDisplayString as m, unref as h, watch as g } from "vue";
|
|
8
|
+
//#region packages/components/colors/src/primary-color.vue?vue&type=script&setup=true&lang.ts
|
|
9
|
+
var _ = /*@__PURE__*/ s({
|
|
10
|
+
name: "RePrimaryColor",
|
|
11
|
+
__name: "primary-color",
|
|
12
|
+
setup(s) {
|
|
13
|
+
let { nm: _, ns: v } = n("colors"), { isDark: y } = r(), b = f([]), x = (n) => {
|
|
14
|
+
let r = Object.values(t("re-color-primary-base"))[0];
|
|
15
|
+
b.value = [{
|
|
16
|
+
base: r,
|
|
17
|
+
shades: e(r, n)
|
|
18
|
+
}];
|
|
19
|
+
};
|
|
20
|
+
return g(y, (e) => {
|
|
21
|
+
x(e);
|
|
22
|
+
}), u(() => {
|
|
23
|
+
x(y.value);
|
|
24
|
+
}), (e, t) => (d(!0), a(i, null, p(b.value, (e) => (d(), a("div", {
|
|
25
|
+
key: e.base,
|
|
26
|
+
class: c([h(_)("primary")])
|
|
27
|
+
}, [o("div", {
|
|
28
|
+
class: c([h(v)("base")]),
|
|
29
|
+
style: l({ "background-color": e.base })
|
|
30
|
+
}, m(e.base.toUpperCase()), 7), o("div", { class: c([h(v)("shades")]) }, [(d(!0), a(i, null, p(e.shades, (e) => (d(), a("div", {
|
|
31
|
+
key: e,
|
|
32
|
+
class: c([h(v)("shade")]),
|
|
33
|
+
style: l({ "background-color": e })
|
|
34
|
+
}, null, 6))), 128))], 2)], 2))), 128));
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
//#endregion
|
|
38
|
+
export { _ as default };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { createColors as e, getCssVarsByPrefix as t } from "../../../utils/util.mjs";
|
|
2
|
+
import "../../../utils/index.mjs";
|
|
3
|
+
import { useNamespace as n } from "../../../composables/use-namespace/index.mjs";
|
|
4
|
+
import { useTheme as r } from "../../../composables/use-theme/index.mjs";
|
|
5
|
+
import "../../../composables/index.mjs";
|
|
6
|
+
import "../style/index.mjs";
|
|
7
|
+
import { Fragment as i, createElementBlock as a, createElementVNode as o, defineComponent as s, normalizeClass as c, normalizeStyle as l, onMounted as u, openBlock as d, ref as f, renderList as p, toDisplayString as m, unref as h, watch as g } from "vue";
|
|
8
|
+
//#region packages/components/colors/src/secondary-color.vue?vue&type=script&setup=true&lang.ts
|
|
9
|
+
var _ = /*@__PURE__*/ s({
|
|
10
|
+
name: "ReSecondaryColor",
|
|
11
|
+
__name: "secondary-color",
|
|
12
|
+
setup(s) {
|
|
13
|
+
let { nm: _, ns: v } = n("colors"), { isDark: y } = r(), b = f([]), x = (n) => {
|
|
14
|
+
let r = Object.values(t("re-color-success-base"))[0], i = Object.values(t("re-color-warning-base"))[0], a = Object.values(t("re-color-danger-base"))[0], o = Object.values(t("re-color-info-base"))[0];
|
|
15
|
+
b.value = [
|
|
16
|
+
{
|
|
17
|
+
base: r,
|
|
18
|
+
text: "Success",
|
|
19
|
+
shades: e(r, n)
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
base: i,
|
|
23
|
+
text: "Danger/Error ",
|
|
24
|
+
shades: e(i, n)
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
base: a,
|
|
28
|
+
text: "Warning",
|
|
29
|
+
shades: e(a, n)
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
base: o,
|
|
33
|
+
text: "Info",
|
|
34
|
+
shades: e(o, n)
|
|
35
|
+
}
|
|
36
|
+
];
|
|
37
|
+
};
|
|
38
|
+
return g(y, (e) => {
|
|
39
|
+
x(e);
|
|
40
|
+
}), u(() => {
|
|
41
|
+
x(y.value);
|
|
42
|
+
}), (e, t) => (d(), a("div", { class: c([h(_)("secondary")]) }, [(d(!0), a(i, null, p(b.value, (e) => (d(), a("div", {
|
|
43
|
+
key: e.base,
|
|
44
|
+
class: c([h(v)("panel")])
|
|
45
|
+
}, [o("div", {
|
|
46
|
+
class: c([h(v)("base")]),
|
|
47
|
+
style: l({ "background-color": e.base })
|
|
48
|
+
}, [o("div", null, m(e.text), 1), o("div", null, m(e.base.toUpperCase()), 1)], 6), o("div", { class: c([h(v)("shades")]) }, [(d(!0), a(i, null, p(e.shades, (e) => (d(), a("div", {
|
|
49
|
+
key: e,
|
|
50
|
+
class: c([h(v)("shade")]),
|
|
51
|
+
style: l({ "background-color": e })
|
|
52
|
+
}, null, 6))), 128))], 2)], 2))), 128))], 2));
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
//#endregion
|
|
56
|
+
export { _ as default };
|
|
File without changes
|
|
File without changes
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
export * from './src/types.ts';
|
|
2
2
|
export declare const ReFilterPanel: {
|
|
3
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
3
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./index.ts').FilterPanelProps & {
|
|
4
4
|
isExpand?: boolean;
|
|
5
|
-
}
|
|
6
|
-
onSearch?: ((...args: any[]) => any) | undefined;
|
|
7
|
-
onReset?: ((...args: any[]) => any) | undefined;
|
|
5
|
+
}> & Readonly<{
|
|
8
6
|
"onUpdate:isExpand"?: ((value: boolean) => any) | undefined;
|
|
9
7
|
}>, {
|
|
10
8
|
toggle: () => void;
|
|
@@ -15,25 +13,17 @@ export declare const ReFilterPanel: {
|
|
|
15
13
|
wrapperW: import('vue').ShallowRef<number, number>;
|
|
16
14
|
maxH: import('vue').ComputedRef<number>;
|
|
17
15
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"update:isExpand": (value: boolean) => void;
|
|
21
|
-
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
22
|
-
wrapper: HTMLDivElement;
|
|
23
|
-
inner: HTMLDivElement;
|
|
24
|
-
main: HTMLDivElement;
|
|
25
|
-
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
16
|
+
"update:isExpand": (value: boolean) => any;
|
|
17
|
+
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
26
18
|
P: {};
|
|
27
19
|
B: {};
|
|
28
20
|
D: {};
|
|
29
21
|
C: {};
|
|
30
22
|
M: {};
|
|
31
23
|
Defaults: {};
|
|
32
|
-
}, Readonly<{
|
|
24
|
+
}, Readonly<import('./index.ts').FilterPanelProps & {
|
|
33
25
|
isExpand?: boolean;
|
|
34
|
-
}
|
|
35
|
-
onSearch?: ((...args: any[]) => any) | undefined;
|
|
36
|
-
onReset?: ((...args: any[]) => any) | undefined;
|
|
26
|
+
}> & Readonly<{
|
|
37
27
|
"onUpdate:isExpand"?: ((value: boolean) => any) | undefined;
|
|
38
28
|
}>, {
|
|
39
29
|
toggle: () => void;
|
|
@@ -47,11 +37,9 @@ export declare const ReFilterPanel: {
|
|
|
47
37
|
__isFragment?: never;
|
|
48
38
|
__isTeleport?: never;
|
|
49
39
|
__isSuspense?: never;
|
|
50
|
-
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
40
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./index.ts').FilterPanelProps & {
|
|
51
41
|
isExpand?: boolean;
|
|
52
|
-
}
|
|
53
|
-
onSearch?: ((...args: any[]) => any) | undefined;
|
|
54
|
-
onReset?: ((...args: any[]) => any) | undefined;
|
|
42
|
+
}> & Readonly<{
|
|
55
43
|
"onUpdate:isExpand"?: ((value: boolean) => any) | undefined;
|
|
56
44
|
}>, {
|
|
57
45
|
toggle: () => void;
|
|
@@ -62,17 +50,25 @@ export declare const ReFilterPanel: {
|
|
|
62
50
|
wrapperW: import('vue').ShallowRef<number, number>;
|
|
63
51
|
maxH: import('vue').ComputedRef<number>;
|
|
64
52
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
65
|
-
|
|
66
|
-
reset: (...args: any[]) => void;
|
|
67
|
-
"update:isExpand": (value: boolean) => void;
|
|
53
|
+
"update:isExpand": (value: boolean) => any;
|
|
68
54
|
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
69
55
|
$slots: {
|
|
70
|
-
default
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
56
|
+
default?: (props: {}) => any;
|
|
57
|
+
} & {
|
|
58
|
+
main?: (props: {}) => any;
|
|
59
|
+
} & {
|
|
60
|
+
expand?: (props: {
|
|
61
|
+
showExpand: boolean;
|
|
62
|
+
isExpand: boolean;
|
|
63
|
+
}) => any;
|
|
64
|
+
} & {
|
|
65
|
+
'expand-icon'?: (props: {}) => any;
|
|
66
|
+
} & {
|
|
67
|
+
reset?: (props: {}) => any;
|
|
68
|
+
} & {
|
|
69
|
+
search?: (props: {}) => any;
|
|
70
|
+
} & {
|
|
71
|
+
extra?: (props: {}) => any;
|
|
76
72
|
};
|
|
77
73
|
});
|
|
78
74
|
export default ReFilterPanel;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { withInstall as e } from "../../utils/vue/index.mjs";
|
|
2
|
+
import "../../utils/index.mjs";
|
|
3
|
+
import t from "./src/filter-panel.mjs";
|
|
4
|
+
//#region packages/components/filter-panel/index.ts
|
|
5
|
+
var n = e(t);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { n as ReFilterPanel, n as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { FilterPanelProps } from './types';
|
|
2
|
+
type __VLS_Props = FilterPanelProps;
|
|
3
|
+
type __VLS_ModelProps = {
|
|
4
|
+
'isExpand'?: boolean;
|
|
5
|
+
};
|
|
6
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
7
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {
|
|
8
|
+
showExpand: boolean;
|
|
9
|
+
isExpand: boolean;
|
|
10
|
+
}, __VLS_15: {}, __VLS_27: {}, __VLS_37: {}, __VLS_47: {};
|
|
11
|
+
type __VLS_Slots = {} & {
|
|
12
|
+
default?: (props: typeof __VLS_1) => any;
|
|
13
|
+
} & {
|
|
14
|
+
main?: (props: typeof __VLS_3) => any;
|
|
15
|
+
} & {
|
|
16
|
+
expand?: (props: typeof __VLS_5) => any;
|
|
17
|
+
} & {
|
|
18
|
+
'expand-icon'?: (props: typeof __VLS_15) => any;
|
|
19
|
+
} & {
|
|
20
|
+
reset?: (props: typeof __VLS_27) => any;
|
|
21
|
+
} & {
|
|
22
|
+
search?: (props: typeof __VLS_37) => any;
|
|
23
|
+
} & {
|
|
24
|
+
extra?: (props: typeof __VLS_47) => any;
|
|
25
|
+
};
|
|
26
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
27
|
+
toggle: () => void;
|
|
28
|
+
update: () => void;
|
|
29
|
+
isExpand: import('vue').ModelRef<boolean, string, boolean, boolean>;
|
|
30
|
+
innerH: import('vue').ShallowRef<number, number>;
|
|
31
|
+
innerW: import('vue').ShallowRef<number, number>;
|
|
32
|
+
wrapperW: import('vue').ShallowRef<number, number>;
|
|
33
|
+
maxH: import('vue').ComputedRef<number>;
|
|
34
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
35
|
+
"update:isExpand": (value: boolean) => any;
|
|
36
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
37
|
+
"onUpdate:isExpand"?: ((value: boolean) => any) | undefined;
|
|
38
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
39
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
40
|
+
declare const _default: typeof __VLS_export;
|
|
41
|
+
export default _default;
|
|
42
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
43
|
+
new (): {
|
|
44
|
+
$slots: S;
|
|
45
|
+
};
|
|
46
|
+
};
|
package/dist/es/components/filter-panel/src/filter-panel.vue_vue_type_script_setup_true_lang.mjs
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { ArrowDownward as e, ArrowUpward as t } from "../../../svg-icons/dist/es/index.mjs";
|
|
2
|
+
import { useNamespace as n } from "../../../composables/use-namespace/index.mjs";
|
|
3
|
+
import { useElementSize as r, useMutationObserver as i } 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 "../../../composables/index.mjs";
|
|
5
|
+
import { ReButton as a } from "../../button/index.mjs";
|
|
6
|
+
import "../style/index.mjs";
|
|
7
|
+
import "../../index.mjs";
|
|
8
|
+
import { computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, effectScope as m, mergeModels as h, normalizeClass as g, normalizeStyle as _, onMounted as v, onUnmounted as y, openBlock as b, renderSlot as x, unref as S, useModel as C, useTemplateRef as w, watch as T, watchEffect as E, withCtx as D, withModifiers as O } from "vue";
|
|
9
|
+
//#region packages/components/filter-panel/src/filter-panel.vue?vue&type=script&setup=true&lang.ts
|
|
10
|
+
var k = /*@__PURE__*/ p({
|
|
11
|
+
name: "ReFilterPanel",
|
|
12
|
+
__name: "filter-panel",
|
|
13
|
+
props: /*@__PURE__*/ h({
|
|
14
|
+
selector: { default: "> *" },
|
|
15
|
+
maxHeight: { default: 0 },
|
|
16
|
+
itemMinw: { default: 240 },
|
|
17
|
+
exclude: { default: "[exclude]" },
|
|
18
|
+
loading: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: !1
|
|
21
|
+
},
|
|
22
|
+
enableObserver: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: !1
|
|
25
|
+
},
|
|
26
|
+
observerOptions: { default: () => ({}) }
|
|
27
|
+
}, {
|
|
28
|
+
isExpand: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: !1
|
|
31
|
+
},
|
|
32
|
+
isExpandModifiers: {}
|
|
33
|
+
}),
|
|
34
|
+
emits: /*@__PURE__*/ h(["reset", "search"], ["update:isExpand"]),
|
|
35
|
+
setup(p, { expose: h, emit: k }) {
|
|
36
|
+
let { n: A, ns: j } = n("filter-panel"), M = w("main"), { height: N } = r(M), P = o(() => p.maxHeight || N.value), F = k, I = w("wrapper"), L = w("inner"), R = C(p, "isExpand"), z = o(() => V.value > P.value), B = () => {
|
|
37
|
+
R.value = !R.value;
|
|
38
|
+
}, { height: V, width: H } = r(L, {
|
|
39
|
+
width: 0,
|
|
40
|
+
height: P.value
|
|
41
|
+
}), { width: U } = r(I, {
|
|
42
|
+
width: 0,
|
|
43
|
+
height: P.value
|
|
44
|
+
}), W = () => {
|
|
45
|
+
if (!L.value) return;
|
|
46
|
+
let e = L.value.querySelectorAll(`.${j("inner")} ${p.selector}:not(${p.exclude})`), t = Math.floor(H.value / p.itemMinw);
|
|
47
|
+
e.forEach((e) => {
|
|
48
|
+
e.style.width = `${100 / t}%`;
|
|
49
|
+
});
|
|
50
|
+
}, G = m();
|
|
51
|
+
G.run(() => {
|
|
52
|
+
E(() => {
|
|
53
|
+
H.value && U.value && W();
|
|
54
|
+
}), T(() => V.value, (e) => {
|
|
55
|
+
e > P.value && (R.value = !1);
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
let K = () => {
|
|
59
|
+
let { stop: e } = i(L, () => {
|
|
60
|
+
W();
|
|
61
|
+
}, Object.assign({
|
|
62
|
+
childList: !0,
|
|
63
|
+
subtree: !0,
|
|
64
|
+
attributes: !0,
|
|
65
|
+
characterData: !0
|
|
66
|
+
}, p.observerOptions || {}));
|
|
67
|
+
return { stop: e };
|
|
68
|
+
}, q;
|
|
69
|
+
return p.enableObserver && (q = K().stop), y(() => {
|
|
70
|
+
G.stop(), q == null || q();
|
|
71
|
+
}), v(() => {
|
|
72
|
+
W();
|
|
73
|
+
}), h({
|
|
74
|
+
toggle: B,
|
|
75
|
+
update: W,
|
|
76
|
+
isExpand: R,
|
|
77
|
+
innerH: V,
|
|
78
|
+
innerW: H,
|
|
79
|
+
wrapperW: U,
|
|
80
|
+
maxH: P
|
|
81
|
+
}), (n, r) => (b(), l("div", {
|
|
82
|
+
ref_key: "wrapper",
|
|
83
|
+
ref: I,
|
|
84
|
+
class: g([S(A)()]),
|
|
85
|
+
style: _({ "max-height": `${R.value ? S(V) : P.value}px` })
|
|
86
|
+
}, [u("div", {
|
|
87
|
+
ref_key: "inner",
|
|
88
|
+
ref: L,
|
|
89
|
+
class: g([S(j)("inner")])
|
|
90
|
+
}, [x(n.$slots, "default")], 2), u("div", { class: g([S(j)("operator")]) }, [u("div", {
|
|
91
|
+
ref_key: "main",
|
|
92
|
+
ref: M,
|
|
93
|
+
class: g([S(j)("main")])
|
|
94
|
+
}, [x(n.$slots, "main", {}, () => [
|
|
95
|
+
x(n.$slots, "expand", {
|
|
96
|
+
showExpand: z.value,
|
|
97
|
+
isExpand: R.value
|
|
98
|
+
}, () => [z.value ? (b(), s(S(a), {
|
|
99
|
+
key: 0,
|
|
100
|
+
type: "primary",
|
|
101
|
+
title: R.value ? "收起" : "展开",
|
|
102
|
+
text: "",
|
|
103
|
+
onClick: O(B, ["stop"])
|
|
104
|
+
}, {
|
|
105
|
+
default: D(() => [x(n.$slots, "expand-icon", {}, () => [R.value ? (b(), s(S(t), { key: 0 })) : (b(), s(S(e), { key: 1 }))])]),
|
|
106
|
+
_: 3
|
|
107
|
+
}, 8, ["title"])) : c("", !0)]),
|
|
108
|
+
x(n.$slots, "reset", {}, () => [f(S(a), {
|
|
109
|
+
disabled: p.loading,
|
|
110
|
+
onClick: r[0] || (r[0] = O((e) => F("reset"), ["stop"]))
|
|
111
|
+
}, {
|
|
112
|
+
default: D(() => [...r[2] || (r[2] = [d("重置", -1)])]),
|
|
113
|
+
_: 1
|
|
114
|
+
}, 8, ["disabled"])]),
|
|
115
|
+
x(n.$slots, "search", {}, () => [f(S(a), {
|
|
116
|
+
type: "primary",
|
|
117
|
+
disabled: p.loading,
|
|
118
|
+
onClick: r[1] || (r[1] = O((e) => F("search"), ["stop"]))
|
|
119
|
+
}, {
|
|
120
|
+
default: D(() => [...r[3] || (r[3] = [d(" 查询 ", -1)])]),
|
|
121
|
+
_: 1
|
|
122
|
+
}, 8, ["disabled"])])
|
|
123
|
+
])], 2), n.$slots.extra ? (b(), l("div", {
|
|
124
|
+
key: 0,
|
|
125
|
+
class: g([S(j)("extra")])
|
|
126
|
+
}, [x(n.$slots, "extra")], 2)) : c("", !0)], 2)], 6));
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
//#endregion
|
|
130
|
+
export { k as default };
|
|
File without changes
|
|
File without changes
|