rappel-ui 1.0.33 → 1.0.35
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 +1 -0
- package/cjs/components/button/index.js +1 -1
- package/cjs/components/button/src/button-group.vue_vue_type_script_setup_true_lang.js +1 -1
- package/cjs/components/button/src/button.vue_vue_type_script_setup_true_lang.js +1 -1
- package/cjs/components/button/src/constants.d.ts +1 -1
- package/cjs/components/button/src/constants.js +1 -1
- package/cjs/components/dropdown/index.d.ts +70 -0
- package/cjs/components/dropdown/index.js +1 -0
- package/cjs/components/dropdown/src/constants.d.ts +15 -0
- package/cjs/components/dropdown/src/constants.js +1 -0
- package/cjs/components/dropdown/src/dropdown-item.js +1 -0
- package/cjs/components/dropdown/src/dropdown-item.vue.d.ts +23 -0
- package/cjs/components/dropdown/src/dropdown-item.vue_vue_type_script_setup_true_lang.js +1 -0
- package/cjs/components/dropdown/src/dropdown-menu.js +1 -0
- package/cjs/components/dropdown/src/dropdown-menu.vue.d.ts +14 -0
- package/cjs/components/dropdown/src/dropdown-menu.vue_vue_type_script_setup_true_lang.js +1 -0
- package/cjs/components/dropdown/src/dropdown-submenu.js +1 -0
- package/cjs/components/dropdown/src/dropdown-submenu.vue.d.ts +19 -0
- package/cjs/components/dropdown/src/dropdown-submenu.vue_vue_type_script_setup_true_lang.js +1 -0
- package/cjs/components/dropdown/src/dropdown.js +1 -0
- package/cjs/components/dropdown/src/dropdown.vue.d.ts +383 -0
- package/cjs/components/dropdown/src/dropdown.vue_vue_type_script_setup_true_lang.js +1 -0
- package/cjs/components/dropdown/src/loop.js +1 -0
- package/cjs/components/dropdown/src/loop.vue.d.ts +18 -0
- package/cjs/components/dropdown/src/loop.vue_vue_type_script_setup_true_lang.js +1 -0
- package/cjs/components/dropdown/src/types.d.ts +37 -0
- package/cjs/components/dropdown/src/use-dropdown-emit.d.ts +13 -0
- package/cjs/components/dropdown/src/use-dropdown-emit.js +1 -0
- package/cjs/components/dropdown/style/css.d.ts +0 -0
- package/cjs/components/dropdown/style/css.js +2 -0
- package/cjs/components/dropdown/style/index.d.ts +0 -0
- package/cjs/components/dropdown/style/index.js +2 -0
- package/cjs/components/index.d.ts +2 -0
- package/cjs/components/index.js +1 -1
- package/cjs/components/menu/index.d.ts +86 -0
- package/cjs/components/menu/index.js +1 -0
- package/cjs/components/menu/src/constants.d.ts +1 -0
- package/cjs/components/menu/src/constants.js +1 -0
- package/cjs/components/menu/src/loop.js +1 -0
- package/cjs/components/menu/src/loop.vue.d.ts +18 -0
- package/cjs/components/menu/src/loop.vue_vue_type_script_setup_true_lang.js +1 -0
- package/cjs/components/menu/src/menu-item.js +1 -0
- package/cjs/components/menu/src/menu-item.vue.d.ts +25 -0
- package/cjs/components/menu/src/menu-item.vue_vue_type_script_setup_true_lang.js +1 -0
- package/cjs/components/menu/src/menu.js +1 -0
- package/cjs/components/menu/src/menu.vue.d.ts +21 -0
- package/cjs/components/menu/src/menu.vue_vue_type_script_setup_true_lang.js +1 -0
- package/cjs/components/menu/src/submenu.js +1 -0
- package/cjs/components/menu/src/submenu.vue.d.ts +19 -0
- package/cjs/components/menu/src/submenu.vue_vue_type_script_setup_true_lang.js +1 -0
- package/cjs/components/menu/src/types.d.ts +79 -0
- package/cjs/components/menu/src/use-menu-emit.d.ts +5 -0
- package/cjs/components/menu/src/use-menu-emit.js +1 -0
- package/cjs/components/menu/style/css.d.ts +0 -0
- package/cjs/components/menu/style/css.js +2 -0
- package/cjs/components/menu/style/index.d.ts +0 -0
- package/cjs/components/menu/style/index.js +2 -0
- package/cjs/components/message/src/create-message.js +1 -1
- package/cjs/components/message/src/use-message-emit.d.ts +8 -8
- package/cjs/components/popconfirm/src/popconfirm.vue_vue_type_script_setup_true_lang.js +1 -1
- package/cjs/components/popconfirm/src/use-popconfirm-emit.d.ts +8 -8
- package/cjs/components/popover/src/popover.vue_vue_type_script_setup_true_lang.js +1 -1
- package/cjs/components/popover/src/types.d.ts +1 -0
- package/cjs/components/popover/src/use-popover-emit.d.ts +8 -8
- package/cjs/components/tooltip/index.d.ts +8 -1
- package/cjs/components/tooltip/src/constants.d.ts +0 -1
- package/cjs/components/tooltip/src/constants.js +1 -1
- package/cjs/components/tooltip/src/tooltip.vue.d.ts +4 -1
- package/cjs/components/tooltip/src/tooltip.vue_vue_type_script_setup_true_lang.js +1 -1
- package/cjs/components/tooltip/src/types.d.ts +3 -0
- package/cjs/components/tooltip/src/use-tooltip-emit.d.ts +8 -8
- package/cjs/components/tooltip/src/use-tooltip.js +1 -1
- package/cjs/components/transition/src/transition.vue_vue_type_script_setup_true_lang.js +1 -1
- package/cjs/components/transition/src/use-transition-emit.d.ts +8 -8
- package/cjs/composables/index.d.ts +1 -0
- package/cjs/composables/index.js +1 -1
- package/cjs/composables/use-slot-node/index.d.ts +2 -0
- package/cjs/composables/use-slot-node/index.js +1 -0
- package/cjs/composables/use-theme/index.js +1 -1
- package/cjs/constants/index.d.ts +1 -0
- package/cjs/constants/index.js +1 -0
- package/cjs/index.d.ts +429 -98
- package/cjs/index.js +1 -1
- package/cjs/svg-icons/create-icon.d.ts +2 -2
- package/cjs/svg-icons/get-async-icon.js +1 -1
- package/cjs/svg-icons/icon-names.d.ts +1 -1
- package/cjs/svg-icons/icon-names.js +1 -1
- package/cjs/svg-icons/index.d.ts +5 -0
- package/cjs/svg-icons/index.js +1 -1
- package/cjs/svg-icons/src/arrow-backward.d.ts +2 -2
- package/cjs/svg-icons/src/arrow-down.d.ts +2 -2
- package/cjs/svg-icons/src/arrow-downward.d.ts +2 -2
- package/cjs/svg-icons/src/arrow-forward.d.ts +2 -2
- package/cjs/svg-icons/src/arrow-left.d.ts +2 -2
- package/cjs/svg-icons/src/arrow-right.d.ts +2 -2
- package/cjs/svg-icons/src/arrow-up.d.ts +2 -2
- package/cjs/svg-icons/src/arrow-upward.d.ts +2 -2
- package/cjs/svg-icons/src/check-circle.d.ts +2 -2
- package/cjs/svg-icons/src/check-fill.d.ts +2 -2
- package/cjs/svg-icons/src/check-fill.js +1 -1
- package/cjs/svg-icons/src/check.d.ts +2 -2
- package/cjs/svg-icons/src/close-circle.d.ts +2 -2
- package/cjs/svg-icons/src/close-fill.d.ts +2 -2
- package/cjs/svg-icons/src/close-short.d.ts +2 -2
- package/cjs/svg-icons/src/close.d.ts +2 -2
- package/cjs/svg-icons/src/copy-closure.d.ts +2 -2
- package/cjs/svg-icons/src/copy.d.ts +2 -2
- package/cjs/svg-icons/src/delete.d.ts +2 -2
- package/cjs/svg-icons/src/exclam-fill.d.ts +2 -2
- package/cjs/svg-icons/src/exclam.d.ts +2 -2
- package/cjs/svg-icons/src/help.d.ts +2 -2
- package/cjs/svg-icons/src/info-circle.d.ts +2 -2
- package/cjs/svg-icons/src/info-fill.d.ts +2 -2
- package/cjs/svg-icons/src/loading.d.ts +2 -2
- package/cjs/svg-icons/src/more-dot-circle-horizontal.d.ts +2 -2
- package/cjs/svg-icons/src/more-dot-circle-outline-horizontal.d.ts +2 -2
- package/cjs/svg-icons/src/more-dot-circle-outline-vertical.d.ts +2 -2
- package/cjs/svg-icons/src/more-dot-circle.d.ts +2 -2
- package/cjs/svg-icons/src/more-dot-square-horizontal.d.ts +2 -2
- package/cjs/svg-icons/src/more-dot-square.d.ts +2 -2
- package/cjs/svg-icons/src/more-line.d.ts +2 -2
- package/cjs/svg-icons/src/play.d.ts +34 -0
- package/cjs/svg-icons/src/play.js +1 -0
- package/cjs/svg-icons/src/search-bold.d.ts +2 -2
- package/cjs/svg-icons/src/search.d.ts +2 -2
- package/cjs/svg-icons/src/star-fill.d.ts +2 -2
- package/cjs/svg-icons/src/star.d.ts +2 -2
- package/cjs/svg-icons/src/triangle-backward-fill.d.ts +34 -0
- package/cjs/svg-icons/src/triangle-backward-fill.js +1 -0
- package/cjs/svg-icons/src/triangle-downward-fill.d.ts +34 -0
- package/cjs/svg-icons/src/triangle-downward-fill.js +1 -0
- package/cjs/svg-icons/src/triangle-forward-fill.d.ts +34 -0
- package/cjs/svg-icons/src/triangle-forward-fill.js +1 -0
- package/cjs/svg-icons/src/triangle-upward-fill.d.ts +34 -0
- package/cjs/svg-icons/src/triangle-upward-fill.js +1 -0
- package/cjs/types/common.d.ts +16 -0
- package/cjs/types/component.d.ts +2 -1
- package/cjs/types/theme.d.ts +1 -1
- package/cjs/utils/index.js +1 -1
- package/cjs/utils/util.d.ts +29 -36
- package/cjs/utils/util.js +1 -3
- package/cjs/utils/vue/index.js +1 -1
- package/dist/index.css +1 -1
- package/dist/index.umd.js +13 -15
- package/es/components/button/index.mjs +2 -2
- package/es/components/button/src/button-group.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/components/button/src/button.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/components/button/src/constants.d.ts +1 -1
- package/es/components/button/src/constants.mjs +2 -2
- package/es/components/dropdown/index.d.ts +70 -0
- package/es/components/dropdown/index.mjs +15 -0
- package/es/components/dropdown/src/constants.d.ts +15 -0
- package/es/components/dropdown/src/constants.mjs +17 -0
- package/es/components/dropdown/src/dropdown-item.mjs +5 -0
- package/es/components/dropdown/src/dropdown-item.vue.d.ts +23 -0
- package/es/components/dropdown/src/dropdown-item.vue_vue_type_script_setup_true_lang.mjs +130 -0
- package/es/components/dropdown/src/dropdown-menu.mjs +5 -0
- package/es/components/dropdown/src/dropdown-menu.vue.d.ts +14 -0
- package/es/components/dropdown/src/dropdown-menu.vue_vue_type_script_setup_true_lang.mjs +14 -0
- package/es/components/dropdown/src/dropdown-submenu.mjs +5 -0
- package/es/components/dropdown/src/dropdown-submenu.vue.d.ts +19 -0
- package/es/components/dropdown/src/dropdown-submenu.vue_vue_type_script_setup_true_lang.mjs +53 -0
- package/es/components/dropdown/src/dropdown.mjs +5 -0
- package/es/components/dropdown/src/dropdown.vue.d.ts +383 -0
- package/es/components/dropdown/src/dropdown.vue_vue_type_script_setup_true_lang.mjs +224 -0
- package/es/components/dropdown/src/loop.mjs +5 -0
- package/es/components/dropdown/src/loop.vue.d.ts +18 -0
- package/es/components/dropdown/src/loop.vue_vue_type_script_setup_true_lang.mjs +26 -0
- package/es/components/dropdown/src/types.d.ts +37 -0
- package/es/components/dropdown/src/use-dropdown-emit.d.ts +13 -0
- package/es/components/dropdown/src/use-dropdown-emit.mjs +11 -0
- package/es/components/dropdown/style/css.d.ts +0 -0
- package/es/components/dropdown/style/css.mjs +2 -0
- package/es/components/dropdown/style/index.d.ts +0 -0
- package/es/components/dropdown/style/index.mjs +2 -0
- package/es/components/index.d.ts +2 -0
- package/es/components/index.mjs +17 -4
- package/es/components/menu/index.d.ts +86 -0
- package/es/components/menu/index.mjs +13 -0
- package/es/components/menu/src/constants.d.ts +1 -0
- package/es/components/menu/src/constants.mjs +4 -0
- package/es/components/menu/src/loop.mjs +5 -0
- package/es/components/menu/src/loop.vue.d.ts +18 -0
- package/es/components/menu/src/loop.vue_vue_type_script_setup_true_lang.mjs +22 -0
- package/es/components/menu/src/menu-item.mjs +5 -0
- package/es/components/menu/src/menu-item.vue.d.ts +25 -0
- package/es/components/menu/src/menu-item.vue_vue_type_script_setup_true_lang.mjs +232 -0
- package/es/components/menu/src/menu.mjs +5 -0
- package/es/components/menu/src/menu.vue.d.ts +21 -0
- package/es/components/menu/src/menu.vue_vue_type_script_setup_true_lang.mjs +119 -0
- package/es/components/menu/src/submenu.mjs +5 -0
- package/es/components/menu/src/submenu.vue.d.ts +19 -0
- package/es/components/menu/src/submenu.vue_vue_type_script_setup_true_lang.mjs +176 -0
- package/es/components/menu/src/types.d.ts +79 -0
- package/es/components/menu/src/use-menu-emit.d.ts +5 -0
- package/es/components/menu/src/use-menu-emit.mjs +6 -0
- package/es/components/menu/style/css.d.ts +0 -0
- package/es/components/menu/style/css.mjs +2 -0
- package/es/components/menu/style/index.d.ts +0 -0
- package/es/components/menu/style/index.mjs +2 -0
- package/es/components/message/src/create-message.mjs +44 -43
- package/es/components/message/src/use-message-emit.d.ts +8 -8
- package/es/components/popconfirm/src/popconfirm.vue_vue_type_script_setup_true_lang.mjs +66 -67
- package/es/components/popconfirm/src/use-popconfirm-emit.d.ts +8 -8
- package/es/components/popover/src/popover.vue_vue_type_script_setup_true_lang.mjs +40 -34
- package/es/components/popover/src/types.d.ts +1 -0
- package/es/components/popover/src/use-popover-emit.d.ts +8 -8
- package/es/components/tooltip/index.d.ts +8 -1
- package/es/components/tooltip/src/constants.d.ts +0 -1
- package/es/components/tooltip/src/constants.mjs +2 -6
- package/es/components/tooltip/src/tooltip.vue.d.ts +4 -1
- package/es/components/tooltip/src/tooltip.vue_vue_type_script_setup_true_lang.mjs +131 -117
- package/es/components/tooltip/src/types.d.ts +3 -0
- package/es/components/tooltip/src/use-tooltip-emit.d.ts +8 -8
- package/es/components/tooltip/src/use-tooltip.mjs +5 -5
- package/es/components/transition/src/transition.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/components/transition/src/use-transition-emit.d.ts +8 -8
- package/es/composables/index.d.ts +1 -0
- package/es/composables/index.mjs +2 -1
- package/es/composables/use-slot-node/index.d.ts +2 -0
- package/es/composables/use-slot-node/index.mjs +10 -0
- package/es/composables/use-theme/index.mjs +1 -1
- package/es/constants/index.d.ts +1 -0
- package/es/constants/index.mjs +9 -0
- package/es/index.d.ts +429 -98
- package/es/index.mjs +81 -71
- package/es/svg-icons/create-icon.d.ts +2 -2
- package/es/svg-icons/get-async-icon.mjs +48 -42
- package/es/svg-icons/icon-names.d.ts +1 -1
- package/es/svg-icons/icon-names.mjs +1 -1
- package/es/svg-icons/index.d.ts +5 -0
- package/es/svg-icons/index.mjs +12 -2
- package/es/svg-icons/src/arrow-backward.d.ts +2 -2
- package/es/svg-icons/src/arrow-down.d.ts +2 -2
- package/es/svg-icons/src/arrow-downward.d.ts +2 -2
- package/es/svg-icons/src/arrow-forward.d.ts +2 -2
- package/es/svg-icons/src/arrow-left.d.ts +2 -2
- package/es/svg-icons/src/arrow-right.d.ts +2 -2
- package/es/svg-icons/src/arrow-up.d.ts +2 -2
- package/es/svg-icons/src/arrow-upward.d.ts +2 -2
- package/es/svg-icons/src/check-circle.d.ts +2 -2
- package/es/svg-icons/src/check-fill.d.ts +2 -2
- package/es/svg-icons/src/check-fill.mjs +4 -2
- package/es/svg-icons/src/check.d.ts +2 -2
- package/es/svg-icons/src/close-circle.d.ts +2 -2
- package/es/svg-icons/src/close-fill.d.ts +2 -2
- package/es/svg-icons/src/close-fill.mjs +1 -0
- package/es/svg-icons/src/close-short.d.ts +2 -2
- package/es/svg-icons/src/close.d.ts +2 -2
- package/es/svg-icons/src/copy-closure.d.ts +2 -2
- package/es/svg-icons/src/copy.d.ts +2 -2
- package/es/svg-icons/src/delete.d.ts +2 -2
- package/es/svg-icons/src/exclam-fill.d.ts +2 -2
- package/es/svg-icons/src/exclam-fill.mjs +1 -0
- package/es/svg-icons/src/exclam.d.ts +2 -2
- package/es/svg-icons/src/help.d.ts +2 -2
- package/es/svg-icons/src/info-circle.d.ts +2 -2
- package/es/svg-icons/src/info-fill.d.ts +2 -2
- package/es/svg-icons/src/info-fill.mjs +1 -0
- package/es/svg-icons/src/loading.d.ts +2 -2
- package/es/svg-icons/src/more-dot-circle-horizontal.d.ts +2 -2
- package/es/svg-icons/src/more-dot-circle-outline-horizontal.d.ts +2 -2
- package/es/svg-icons/src/more-dot-circle-outline-vertical.d.ts +2 -2
- package/es/svg-icons/src/more-dot-circle.d.ts +2 -2
- package/es/svg-icons/src/more-dot-square-horizontal.d.ts +2 -2
- package/es/svg-icons/src/more-dot-square.d.ts +2 -2
- package/es/svg-icons/src/more-line.d.ts +2 -2
- package/es/svg-icons/src/play.d.ts +34 -0
- package/es/svg-icons/src/play.mjs +9 -0
- package/es/svg-icons/src/search-bold.d.ts +2 -2
- package/es/svg-icons/src/search.d.ts +2 -2
- package/es/svg-icons/src/star-fill.d.ts +2 -2
- package/es/svg-icons/src/star-fill.mjs +1 -0
- package/es/svg-icons/src/star.d.ts +2 -2
- package/es/svg-icons/src/triangle-backward-fill.d.ts +34 -0
- package/es/svg-icons/src/triangle-backward-fill.mjs +9 -0
- package/es/svg-icons/src/triangle-downward-fill.d.ts +34 -0
- package/es/svg-icons/src/triangle-downward-fill.mjs +9 -0
- package/es/svg-icons/src/triangle-forward-fill.d.ts +34 -0
- package/es/svg-icons/src/triangle-forward-fill.mjs +9 -0
- package/es/svg-icons/src/triangle-upward-fill.d.ts +34 -0
- package/es/svg-icons/src/triangle-upward-fill.mjs +9 -0
- package/es/types/common.d.ts +16 -0
- package/es/types/component.d.ts +2 -1
- package/es/types/theme.d.ts +1 -1
- package/es/utils/index.mjs +2 -2
- package/es/utils/util.d.ts +29 -36
- package/es/utils/util.mjs +53 -76
- package/es/utils/vue/index.mjs +4 -1
- package/package.json +3 -2
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/re-dropdown.css +1 -0
- package/theme-chalk/re-menu.css +1 -0
- package/theme-chalk/re-message.css +1 -1
- package/theme-chalk/re-popconfirm.css +1 -1
- package/theme-chalk/re-popover.css +1 -1
- package/theme-chalk/re-tooltip.css +1 -1
- package/theme-chalk/src/css-vars/_dropdown.scss +44 -0
- package/theme-chalk/src/css-vars/_menu.scss +44 -0
- package/theme-chalk/src/css-vars/_popconfirm.scss +15 -0
- package/theme-chalk/src/css-vars/_popover.scss +24 -0
- package/theme-chalk/src/css-vars/_tooltip.scss +10 -5
- package/theme-chalk/src/dropdown.scss +113 -0
- package/theme-chalk/src/index.scss +2 -0
- package/theme-chalk/src/menu.scss +215 -0
- package/theme-chalk/src/message.scss +2 -27
- package/theme-chalk/src/mixins/_dropdown.scss +95 -0
- package/theme-chalk/src/mixins/_menu.scss +99 -0
- package/theme-chalk/src/mixins/_popconfirm.scss +21 -2
- package/theme-chalk/src/mixins/_popover.scss +26 -0
- package/theme-chalk/src/mixins/_transition.scss +29 -0
- package/theme-chalk/src/mixins/index.scss +15 -0
- package/theme-chalk/src/popconfirm.scss +9 -16
- package/theme-chalk/src/popover.scss +10 -15
- package/theme-chalk/src/tooltip.scss +3 -15
- package/cjs/_virtual/_rolldown_dynamic_import_helper.js +0 -1
- package/cjs/rappel-ui/resolvers.js +0 -1
- package/es/_virtual/_rolldown_dynamic_import_helper.mjs +0 -9
- package/es/rappel-ui/resolvers.mjs +0 -18
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, VNode, RendererNode, RendererElement, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
export declare const TriangleUpwardFill: DefineComponent<ExtractPropTypes<{
|
|
3
|
+
size: {
|
|
4
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
color: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
spin: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
}>, () => VNode<RendererNode, RendererElement, {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
18
|
+
size: {
|
|
19
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
color: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
spin: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
}>> & Readonly<{}>, {
|
|
31
|
+
size: string | number;
|
|
32
|
+
spin: boolean;
|
|
33
|
+
color: string;
|
|
34
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any> | undefined;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { createIcon as e } from "../create-icon.mjs";
|
|
2
|
+
//#region packages/svg-icons/src/triangle-upward-fill.ts
|
|
3
|
+
var t = e({
|
|
4
|
+
name: "triangle-upward-fill",
|
|
5
|
+
path: "M5 16L12 9L19 16L5 16Z",
|
|
6
|
+
fill: "currentColor"
|
|
7
|
+
});
|
|
8
|
+
//#endregion
|
|
9
|
+
export { t as TriangleUpwardFill };
|
package/es/types/common.d.ts
CHANGED
|
@@ -1 +1,17 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
export type MaybeArray<T> = T | T[];
|
|
1
3
|
export type MaybeClass = string | string[] | Record<string, boolean> | Record<string, boolean>[] | MaybeClass[];
|
|
4
|
+
export type PrimitiveValue = string | number | boolean | symbol;
|
|
5
|
+
export interface BaseOption {
|
|
6
|
+
value: any;
|
|
7
|
+
label?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
hasChildren?: boolean;
|
|
10
|
+
icon?: string | Component;
|
|
11
|
+
}
|
|
12
|
+
export interface BaseMapper {
|
|
13
|
+
label: string;
|
|
14
|
+
value: string;
|
|
15
|
+
disabled?: string;
|
|
16
|
+
children?: string;
|
|
17
|
+
}
|
package/es/types/component.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { Plugin } from 'vue';
|
|
2
|
+
export type SFCWithInstall<T> = T & Plugin;
|
package/es/types/theme.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export type Theme = 'light' | 'dark';
|
|
1
|
+
export type Theme = 'auto' | 'light' | 'dark';
|
package/es/utils/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { INSTALLED_KEY as e, createGlobalInstaller as t, toLowerCase as n, toPascalCase as r, withInstall as i, withMultiInstall as a } from "./vue/index.mjs";
|
|
2
|
-
import { autoCalcFileSize as o, buildTree as s, copyText as c, createColors as l,
|
|
3
|
-
export { e as INSTALLED_KEY, o as autoCalcFileSize, s as buildTree, c as copyText, l as createColors, t as createGlobalInstaller, u as
|
|
2
|
+
import { autoCalcFileSize as o, buildTree as s, copyText as c, createColors as l, deepClone as u, deepLoopOptions as d, deleteKeys as f, flatArr as p, getCssVarsByPrefix as m, getEqualOpacityColor as h, hasOwnProperty as g, hexToRGB as _, isAnum as v, isPlainObject as y, joinURLs as b, mixedColor as x, normalizeOptions as S, omitEmptyKeys as C, paramsToFormData as w, rgbToHex as T, setURLSearchParams as E, toKebabCase as D, toPx as O, transitionSize as k } from "./util.mjs";
|
|
3
|
+
export { e as INSTALLED_KEY, o as autoCalcFileSize, s as buildTree, c as copyText, l as createColors, t as createGlobalInstaller, u as deepClone, d as deepLoopOptions, f as deleteKeys, p as flatArr, m as getCssVarsByPrefix, h as getEqualOpacityColor, g as hasOwnProperty, _ as hexToRGB, v as isAnum, y as isPlainObject, b as joinURLs, x as mixedColor, S as normalizeOptions, C as omitEmptyKeys, w as paramsToFormData, T as rgbToHex, E as setURLSearchParams, D as toKebabCase, n as toLowerCase, r as toPascalCase, O as toPx, k as transitionSize, i as withInstall, a as withMultiInstall };
|
package/es/utils/util.d.ts
CHANGED
|
@@ -29,42 +29,6 @@ export declare function deepClone(arr: any[]): any[] | null;
|
|
|
29
29
|
* @returns
|
|
30
30
|
*/
|
|
31
31
|
export declare function autoCalcFileSize(byte: number): string;
|
|
32
|
-
/**
|
|
33
|
-
* Read txt files based on encoding
|
|
34
|
-
* @param file {File} - File Object
|
|
35
|
-
* @param encode {string} - Encoding type
|
|
36
|
-
* @returns
|
|
37
|
-
*/
|
|
38
|
-
export declare function readTxtFile(file: File, encode: string): Promise<string>;
|
|
39
|
-
/**
|
|
40
|
-
* Read txt file with different encodings
|
|
41
|
-
* @param file {File} - File Object
|
|
42
|
-
* @param encodes {string[]} - Encodings array
|
|
43
|
-
* @returns
|
|
44
|
-
*/
|
|
45
|
-
export declare function readTxtByEncodes(file: File, encodes?: string[]): Promise<string>;
|
|
46
|
-
/**
|
|
47
|
-
* 将以逗号或者换行符分隔的字符串转为只用逗号分隔的字符串――去除空格和重复逗号
|
|
48
|
-
* @param str {string} - 以逗号或者换行符分隔的字符串
|
|
49
|
-
*/
|
|
50
|
-
export declare function lineBreakToComma(str: string): string;
|
|
51
|
-
/**
|
|
52
|
-
* singleton mode
|
|
53
|
-
* @param {Function} fn - function to run / class to construct
|
|
54
|
-
*/
|
|
55
|
-
export declare function singleton(fn: (...args: unknown[]) => unknown): unknown;
|
|
56
|
-
/**
|
|
57
|
-
* function overload
|
|
58
|
-
* @example
|
|
59
|
-
* const overload = createOverload()
|
|
60
|
-
* overload.add('string', (arg: string) => { console.log('string', arg) })
|
|
61
|
-
* overload.add('number','string', (arg1: number, arg2: string) => { console.log('number,string', arg1, arg2) })
|
|
62
|
-
* @returns {Function} overload function
|
|
63
|
-
*/
|
|
64
|
-
export declare function createOverload(): {
|
|
65
|
-
(...args: any[]): any;
|
|
66
|
-
add(...args: any[]): void;
|
|
67
|
-
};
|
|
68
32
|
/**
|
|
69
33
|
* flat to tree
|
|
70
34
|
* @param data {Array} - original data
|
|
@@ -145,6 +109,20 @@ export declare function deleteKeys<T extends Record<string, unknown>, K extends
|
|
|
145
109
|
* @returns { Record<string, unknown>[] } - flattened array
|
|
146
110
|
*/
|
|
147
111
|
export declare function flatArr<T extends Record<string, unknown>, K extends keyof T>(arr: T[], key?: K): T[];
|
|
112
|
+
/**
|
|
113
|
+
* @description 递归处理选项数组为常规的 label、value、children 结构,支持自定义字段和是否保留原字段.
|
|
114
|
+
*
|
|
115
|
+
* @param { Record<string, unknown>[] } arr - 选项数组.
|
|
116
|
+
* @param { [{ label?: string; value?: string; children?: string }?, boolean?] } args - 配置参数.
|
|
117
|
+
* @returns { Record<string, unknown>[] } - 处理后的选项数组
|
|
118
|
+
*/
|
|
119
|
+
export declare function deepLoopOptions(arr: Record<string, unknown>[], ...args: [{
|
|
120
|
+
label?: string;
|
|
121
|
+
value?: string;
|
|
122
|
+
children?: string;
|
|
123
|
+
}?, boolean?]): {
|
|
124
|
+
[x: string]: unknown;
|
|
125
|
+
}[];
|
|
148
126
|
/**
|
|
149
127
|
* @description remove object empty keys.
|
|
150
128
|
*
|
|
@@ -191,3 +169,18 @@ export declare function getCssVarsByPrefix(prefix: string, element?: HTMLElement
|
|
|
191
169
|
* ReFilterPanel -> re-filter-panel
|
|
192
170
|
*/
|
|
193
171
|
export declare function toKebabCase(str: string): string;
|
|
172
|
+
/**
|
|
173
|
+
* normalize tree data
|
|
174
|
+
* @param options
|
|
175
|
+
* @param mapper
|
|
176
|
+
* @param childrenKey
|
|
177
|
+
* @returns
|
|
178
|
+
*/
|
|
179
|
+
export declare function normalizeOptions<T extends Record<string, any>>(options: T[] | undefined, mapper?: (raw: T) => T, childrenKey?: keyof T): (T & {
|
|
180
|
+
depth: number;
|
|
181
|
+
})[] | undefined;
|
|
182
|
+
/**
|
|
183
|
+
* Check if the value is a valid number type(typeof number,not NaN、not Infinity)
|
|
184
|
+
* @param val
|
|
185
|
+
*/
|
|
186
|
+
export declare function isAnum(val: unknown): boolean;
|
package/es/utils/util.mjs
CHANGED
|
@@ -37,54 +37,7 @@ function i(e) {
|
|
|
37
37
|
let i = e.toString(), a = i.indexOf(".");
|
|
38
38
|
return e = a === -1 ? e : parseFloat(i.substring(0, a + 3)), `${e}${r}}`;
|
|
39
39
|
}
|
|
40
|
-
function a(e, t
|
|
41
|
-
return new Promise((n, r) => {
|
|
42
|
-
let i = new FileReader();
|
|
43
|
-
i.onload = (e) => {
|
|
44
|
-
var t;
|
|
45
|
-
n((t = e.target) == null ? void 0 : t.result);
|
|
46
|
-
}, i.onerror = (e) => {
|
|
47
|
-
r(e);
|
|
48
|
-
}, i.readAsText(e, t);
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
async function o(e, t = [
|
|
52
|
-
"UTF-8",
|
|
53
|
-
"GBK",
|
|
54
|
-
"GB2312"
|
|
55
|
-
]) {
|
|
56
|
-
for (let n of t) {
|
|
57
|
-
let t = await a(e, n);
|
|
58
|
-
if (!(t && t.indexOf("�") > -1)) return t;
|
|
59
|
-
}
|
|
60
|
-
return "";
|
|
61
|
-
}
|
|
62
|
-
function s(e) {
|
|
63
|
-
if (!e) return "";
|
|
64
|
-
let t = "";
|
|
65
|
-
return e.includes(",") ? t = e.replace(/,/g, ",") : e.includes("\r\n") ? t = e.replace(/\r\n/g, ",") : e.includes("\n") ? t = e.replace(/\n/g, ",") : e.includes("\r") ? t = e.replace(/\r/g, ",") : e.includes("↵") && (t = e.replace(/↵/g, ",")), t.replace(/,+/g, ",").replace(/^,|,$/g, "").replace(/\s+/g, "");
|
|
66
|
-
}
|
|
67
|
-
function c(e) {
|
|
68
|
-
let t, n = new Proxy(e, { construct(e, n) {
|
|
69
|
-
return t || (t = Reflect.construct(e, n), t);
|
|
70
|
-
} });
|
|
71
|
-
return n.prototype.constructor = n, n;
|
|
72
|
-
}
|
|
73
|
-
function l() {
|
|
74
|
-
let e = new Map();
|
|
75
|
-
function t(...t) {
|
|
76
|
-
let n = t.map((e) => typeof e).join(","), r = e.get(n);
|
|
77
|
-
if (!r) throw Error("no overload function found");
|
|
78
|
-
return r.apply(this, t);
|
|
79
|
-
}
|
|
80
|
-
return t.add = function(...t) {
|
|
81
|
-
let n = t.pop();
|
|
82
|
-
if (typeof n != "function") throw Error("the last parameter must be a function");
|
|
83
|
-
let r = t.join(",");
|
|
84
|
-
e.set(r, n);
|
|
85
|
-
}, t;
|
|
86
|
-
}
|
|
87
|
-
function u(e, t = {
|
|
40
|
+
function a(e, t = {
|
|
88
41
|
label: "label",
|
|
89
42
|
value: "value",
|
|
90
43
|
children: "children",
|
|
@@ -98,26 +51,26 @@ function u(e, t = {
|
|
|
98
51
|
i ? i.children.push(e) : n.push(e);
|
|
99
52
|
}), n;
|
|
100
53
|
}
|
|
101
|
-
function
|
|
54
|
+
function o(e) {
|
|
102
55
|
return e = e.replace("#", ""), e.length === 3 && (e = e.split("").map((e) => e + e).join("")), {
|
|
103
56
|
r: parseInt(e.substring(0, 2), 16),
|
|
104
57
|
g: parseInt(e.substring(2, 4), 16),
|
|
105
58
|
b: parseInt(e.substring(4, 6), 16)
|
|
106
59
|
};
|
|
107
60
|
}
|
|
108
|
-
function
|
|
61
|
+
function s(e, t, n) {
|
|
109
62
|
let r = (e) => Math.max(0, Math.min(255, Math.round(e))).toString(16).padStart(2, "0");
|
|
110
63
|
return `#${r(e)}${r(t)}${r(n)}`;
|
|
111
64
|
}
|
|
112
|
-
function
|
|
113
|
-
let { r, g: i, b: a } =
|
|
114
|
-
return
|
|
65
|
+
function c(e, t = "#ffffff", n = 1) {
|
|
66
|
+
let { r, g: i, b: a } = o(e), { r: c, g: l, b: u } = o(t);
|
|
67
|
+
return s(Math.round(r * n + c * (1 - n)), Math.round(i * n + l * (1 - n)), Math.round(a * n + u * (1 - n)));
|
|
115
68
|
}
|
|
116
|
-
function
|
|
117
|
-
let { r, g: i, b: a } =
|
|
118
|
-
return n = Math.max(0, Math.min(1, n)),
|
|
69
|
+
function l(e, t, n = .12) {
|
|
70
|
+
let { r, g: i, b: a } = o(e), { r: c, g: l, b: u } = o(t);
|
|
71
|
+
return n = Math.max(0, Math.min(1, n)), s(Math.round(r * (1 - n) + c * n), Math.round(i * (1 - n) + l * n), Math.round(a * (1 - n) + u * n));
|
|
119
72
|
}
|
|
120
|
-
function
|
|
73
|
+
function u(e, t = "#ffffff", n, r = .12, i = [
|
|
121
74
|
.9,
|
|
122
75
|
.8,
|
|
123
76
|
.7,
|
|
@@ -128,39 +81,53 @@ function h(e, t = "#ffffff", n, r = .12, i = [
|
|
|
128
81
|
.2,
|
|
129
82
|
.1
|
|
130
83
|
]) {
|
|
131
|
-
return [
|
|
84
|
+
return [l(e, n, r), l(e, n, r / 2)].concat(i.map((n) => c(e, t, n)));
|
|
132
85
|
}
|
|
133
|
-
function
|
|
86
|
+
function d(e, t) {
|
|
134
87
|
return Object.prototype.hasOwnProperty.call(e, t);
|
|
135
88
|
}
|
|
136
|
-
function
|
|
89
|
+
function f(e) {
|
|
137
90
|
return typeof e == "object" && !!e && Object.getPrototypeOf(e) === Object.prototype;
|
|
138
91
|
}
|
|
139
|
-
function
|
|
140
|
-
if (!e || !t || !
|
|
92
|
+
function p(e, t) {
|
|
93
|
+
if (!e || !t || !f(e)) return e;
|
|
141
94
|
let n = { ...e };
|
|
142
95
|
return (Array.isArray(t) ? t : [t]).forEach((e) => {
|
|
143
96
|
Reflect.deleteProperty(n, e);
|
|
144
97
|
}), n;
|
|
145
98
|
}
|
|
146
|
-
function
|
|
147
|
-
return !e || !Array.isArray(e) ? [] : e.reduce((e, n) => Array.isArray(n) ? e.concat(
|
|
99
|
+
function m(e, t = "children") {
|
|
100
|
+
return !e || !Array.isArray(e) ? [] : e.reduce((e, n) => Array.isArray(n) ? e.concat(m(n, t)) : n && f(n) && n[t] ? e.concat(p(n, [t]), m(n[t], t)) : e.concat(n), []);
|
|
101
|
+
}
|
|
102
|
+
function h(e, ...t) {
|
|
103
|
+
if (!e || !Array.isArray(e)) return [];
|
|
104
|
+
let n, r = !0;
|
|
105
|
+
t.length === 1 ? typeof t[0] == "boolean" ? r = t[0] : n = t[0] : t.length === 2 && (n = t[0], r = t[1]);
|
|
106
|
+
let { label: i, value: a, children: o } = Object.assign({}, {
|
|
107
|
+
label: "label",
|
|
108
|
+
value: "value",
|
|
109
|
+
children: "children"
|
|
110
|
+
}, n || {});
|
|
111
|
+
return e.map((e) => {
|
|
112
|
+
let t = r ? { ...e } : {};
|
|
113
|
+
return t.label = e[i], t.value = e[a], e[o] && Array.isArray(e[o]) && e[o].length > 0 && (t.children = h(e[o], n, r)), r && o !== "children" && Reflect.deleteProperty(t, o), t;
|
|
114
|
+
});
|
|
148
115
|
}
|
|
149
|
-
function
|
|
116
|
+
function g(e, t = [
|
|
150
117
|
"",
|
|
151
118
|
void 0,
|
|
152
119
|
null
|
|
153
120
|
]) {
|
|
154
|
-
if (!e || !
|
|
155
|
-
let n = {}, r = (e) => t.some((t) => Array.isArray(t) && Array.isArray(e) ? t.length === 0 && e.length === 0 :
|
|
156
|
-
for (let t in e)
|
|
121
|
+
if (!e || !f(e)) return e;
|
|
122
|
+
let n = {}, r = (e) => t.some((t) => Array.isArray(t) && Array.isArray(e) ? t.length === 0 && e.length === 0 : f(t) && f(e) ? Object.keys(t).length === 0 && Object.keys(e).length === 0 : t === e);
|
|
123
|
+
for (let t in e) d(e, t) && (r(e[t]) || (n[t] = e[t]));
|
|
157
124
|
return n;
|
|
158
125
|
}
|
|
159
|
-
function
|
|
126
|
+
function _(e, t = "height", n, r = "all 0.3s ease-in-out") {
|
|
160
127
|
if (!e) return;
|
|
161
128
|
let i = {
|
|
162
|
-
height: () => e.
|
|
163
|
-
width: () => e.
|
|
129
|
+
height: () => e.scrollHeight,
|
|
130
|
+
width: () => e.scrollWidth
|
|
164
131
|
};
|
|
165
132
|
if (Object.keys(i).includes(t)) {
|
|
166
133
|
if (n) {
|
|
@@ -170,7 +137,7 @@ function x(e, t = "height", n, r = "all 0.3s ease-in-out") {
|
|
|
170
137
|
} else e.style.transition = r, e.style[t] = "0px";
|
|
171
138
|
}
|
|
172
139
|
}
|
|
173
|
-
function
|
|
140
|
+
function v(e) {
|
|
174
141
|
return new Promise((t) => {
|
|
175
142
|
var n;
|
|
176
143
|
if ((n = navigator) != null && (n = n.clipboard) != null && n.writeText && window.isSecureContext) {
|
|
@@ -190,10 +157,10 @@ function S(e) {
|
|
|
190
157
|
}
|
|
191
158
|
});
|
|
192
159
|
}
|
|
193
|
-
function
|
|
160
|
+
function y(e) {
|
|
194
161
|
return parseFloat(e) == e ? `${e}px` : e;
|
|
195
162
|
}
|
|
196
|
-
function
|
|
163
|
+
function b(e, t = document.documentElement) {
|
|
197
164
|
let n = getComputedStyle(t), r = {};
|
|
198
165
|
for (let t = 0; t < n.length; t++) {
|
|
199
166
|
let i = n[t];
|
|
@@ -201,8 +168,18 @@ function w(e, t = document.documentElement) {
|
|
|
201
168
|
}
|
|
202
169
|
return r;
|
|
203
170
|
}
|
|
204
|
-
function
|
|
171
|
+
function x(e) {
|
|
205
172
|
return e.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
|
|
206
173
|
}
|
|
174
|
+
function S(e, t = (e) => e, n = "children") {
|
|
175
|
+
let r = (e, i = 0) => e == null ? void 0 : e.map((e) => {
|
|
176
|
+
let a = t(e), o = a[n];
|
|
177
|
+
return Array.isArray(o) && o.length > 0 && (a[n] = r(o, i + 1)), a.depth = i, a;
|
|
178
|
+
});
|
|
179
|
+
return r(e);
|
|
180
|
+
}
|
|
181
|
+
function C(e) {
|
|
182
|
+
return typeof e == "number" && !Number.isNaN(e) && Number.isFinite(e);
|
|
183
|
+
}
|
|
207
184
|
//#endregion
|
|
208
|
-
export { i as autoCalcFileSize,
|
|
185
|
+
export { i as autoCalcFileSize, a as buildTree, v as copyText, u as createColors, r as deepClone, h as deepLoopOptions, p as deleteKeys, m as flatArr, b as getCssVarsByPrefix, c as getEqualOpacityColor, d as hasOwnProperty, o as hexToRGB, C as isAnum, f as isPlainObject, n as joinURLs, l as mixedColor, S as normalizeOptions, g as omitEmptyKeys, e as paramsToFormData, s as rgbToHex, t as setURLSearchParams, x as toKebabCase, y as toPx, _ as transitionSize };
|
package/es/utils/vue/index.mjs
CHANGED
|
@@ -4,7 +4,10 @@ import { warn as t } from "vue";
|
|
|
4
4
|
var n = Symbol("INSTALLED_KEY"), r = (e, n) => {
|
|
5
5
|
if (!e) return e;
|
|
6
6
|
if (e.install = (n) => {
|
|
7
|
-
|
|
7
|
+
if (e.name) {
|
|
8
|
+
if (n.component(e.name)) return;
|
|
9
|
+
n.component(e.name, e);
|
|
10
|
+
} else t("can't find the component name, use defineOptions() to configure it", e);
|
|
8
11
|
}, n) for (let [t, r] of Object.entries(n)) e[t] = r, r.install = (e) => {
|
|
9
12
|
e.component(r.name, r);
|
|
10
13
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rappel-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.35",
|
|
4
4
|
"description": "A Vue3 Component Library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vue",
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
"require": "./cjs/*.js"
|
|
56
56
|
},
|
|
57
57
|
"./theme-chalk/*": "./theme-chalk/*",
|
|
58
|
+
"./resolvers": "./es/rappel-ui/resolvers.mjs",
|
|
58
59
|
"./*": "./*"
|
|
59
60
|
},
|
|
60
61
|
"main": "./cjs/index.js",
|
|
@@ -73,7 +74,7 @@
|
|
|
73
74
|
"vue": "^3.2.0"
|
|
74
75
|
},
|
|
75
76
|
"dependencies": {
|
|
76
|
-
"@rappel-ui/svg-icons": "^1.0.
|
|
77
|
+
"@rappel-ui/svg-icons": "^1.0.26",
|
|
77
78
|
"@vueuse/core": "^14.4.0",
|
|
78
79
|
"dayjs": "^1.11.18",
|
|
79
80
|
"@floating-ui/vue": "^2.0.1"
|