rappel-ui 1.0.32 → 1.0.34
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 +7 -1
- 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/button/src/types.d.ts +1 -0
- package/cjs/components/dropdown/index.d.ts +157 -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 +21 -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 +17 -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 +51 -0
- package/cjs/components/dropdown/src/dropdown.vue_vue_type_script_setup_true_lang.js +1 -0
- package/cjs/components/dropdown/src/types.d.ts +30 -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 +1 -0
- package/cjs/components/index.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/use-popover-emit.d.ts +8 -8
- package/cjs/components/svg-icon/src/svg-icon.vue_vue_type_script_setup_true_lang.js +1 -1
- package/cjs/components/svg-icon/src/types.d.ts +1 -1
- package/cjs/components/tooltip/index.d.ts +8 -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 +2 -0
- package/cjs/components/tooltip/src/use-tooltip-emit.d.ts +8 -8
- 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/use-namespace/index.d.ts +2 -0
- package/cjs/composables/use-namespace/index.js +1 -1
- package/cjs/index.d.ts +473 -454
- package/cjs/index.js +1 -1
- package/cjs/svg-icons/create-icon.d.ts +3 -12
- package/cjs/svg-icons/create-icon.js +1 -1
- 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 +3 -12
- package/cjs/svg-icons/src/arrow-backward.js +1 -1
- package/cjs/svg-icons/src/arrow-down.d.ts +3 -12
- package/cjs/svg-icons/src/arrow-down.js +1 -1
- package/cjs/svg-icons/src/arrow-downward.d.ts +3 -12
- package/cjs/svg-icons/src/arrow-downward.js +1 -1
- package/cjs/svg-icons/src/arrow-forward.d.ts +3 -12
- package/cjs/svg-icons/src/arrow-forward.js +1 -1
- package/cjs/svg-icons/src/arrow-left.d.ts +3 -12
- package/cjs/svg-icons/src/arrow-left.js +1 -1
- package/cjs/svg-icons/src/arrow-right.d.ts +3 -12
- package/cjs/svg-icons/src/arrow-right.js +1 -1
- package/cjs/svg-icons/src/arrow-up.d.ts +3 -12
- package/cjs/svg-icons/src/arrow-up.js +1 -1
- package/cjs/svg-icons/src/arrow-upward.d.ts +3 -12
- package/cjs/svg-icons/src/arrow-upward.js +1 -1
- package/cjs/svg-icons/src/check-circle.d.ts +3 -12
- package/cjs/svg-icons/src/check-circle.js +1 -1
- package/cjs/svg-icons/src/check-fill.d.ts +3 -12
- package/cjs/svg-icons/src/check-fill.js +1 -1
- package/cjs/svg-icons/src/check.d.ts +3 -12
- package/cjs/svg-icons/src/check.js +1 -1
- package/cjs/svg-icons/src/close-circle.d.ts +3 -12
- package/cjs/svg-icons/src/close-circle.js +1 -1
- package/cjs/svg-icons/src/close-fill.d.ts +3 -12
- package/cjs/svg-icons/src/close-short.d.ts +3 -12
- package/cjs/svg-icons/src/close-short.js +1 -1
- package/cjs/svg-icons/src/close.d.ts +3 -12
- package/cjs/svg-icons/src/close.js +1 -1
- package/cjs/svg-icons/src/copy-closure.d.ts +3 -12
- package/cjs/svg-icons/src/copy-closure.js +1 -1
- package/cjs/svg-icons/src/copy.d.ts +3 -12
- package/cjs/svg-icons/src/copy.js +1 -1
- package/cjs/svg-icons/src/delete.d.ts +3 -12
- package/cjs/svg-icons/src/delete.js +1 -1
- package/cjs/svg-icons/src/exclam-fill.d.ts +3 -12
- package/cjs/svg-icons/src/exclam.d.ts +3 -12
- package/cjs/svg-icons/src/exclam.js +1 -1
- package/cjs/svg-icons/src/help.d.ts +3 -12
- package/cjs/svg-icons/src/help.js +1 -1
- package/cjs/svg-icons/src/info-circle.d.ts +3 -12
- package/cjs/svg-icons/src/info-circle.js +1 -1
- package/cjs/svg-icons/src/info-fill.d.ts +3 -12
- package/cjs/svg-icons/src/loading.d.ts +3 -12
- package/cjs/svg-icons/src/loading.js +1 -1
- package/cjs/svg-icons/src/more-dot-circle-horizontal.d.ts +3 -12
- package/cjs/svg-icons/src/more-dot-circle-horizontal.js +1 -1
- package/cjs/svg-icons/src/more-dot-circle-outline-horizontal.d.ts +3 -12
- package/cjs/svg-icons/src/more-dot-circle-outline-horizontal.js +1 -1
- package/cjs/svg-icons/src/more-dot-circle-outline-vertical.d.ts +3 -12
- package/cjs/svg-icons/src/more-dot-circle-outline-vertical.js +1 -1
- package/cjs/svg-icons/src/more-dot-circle.d.ts +3 -12
- package/cjs/svg-icons/src/more-dot-circle.js +1 -1
- package/cjs/svg-icons/src/more-dot-square-horizontal.d.ts +3 -12
- package/cjs/svg-icons/src/more-dot-square-horizontal.js +1 -1
- package/cjs/svg-icons/src/more-dot-square.d.ts +3 -12
- package/cjs/svg-icons/src/more-dot-square.js +1 -1
- package/cjs/svg-icons/src/more-line.d.ts +3 -12
- package/cjs/svg-icons/src/more-line.js +1 -1
- 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 +3 -12
- package/cjs/svg-icons/src/search-bold.js +1 -1
- package/cjs/svg-icons/src/search.d.ts +3 -12
- package/cjs/svg-icons/src/search.js +1 -1
- package/cjs/svg-icons/src/star-fill.d.ts +3 -12
- package/cjs/svg-icons/src/star.d.ts +3 -12
- package/cjs/svg-icons/src/star.js +1 -1
- 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/svg-icons/types.d.ts +1 -1
- package/cjs/utils/index.js +1 -1
- package/cjs/utils/util.d.ts +76 -94
- 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 +9 -11
- package/es/components/button/index.mjs +2 -2
- package/es/components/button/src/button-group.vue_vue_type_script_setup_true_lang.mjs +23 -12
- package/es/components/button/src/button.vue_vue_type_script_setup_true_lang.mjs +50 -46
- package/es/components/button/src/constants.d.ts +1 -1
- package/es/components/button/src/constants.mjs +2 -2
- package/es/components/button/src/types.d.ts +1 -0
- package/es/components/dropdown/index.d.ts +157 -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 +21 -0
- package/es/components/dropdown/src/dropdown-item.vue_vue_type_script_setup_true_lang.mjs +70 -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 +17 -0
- package/es/components/dropdown/src/dropdown-submenu.vue_vue_type_script_setup_true_lang.mjs +43 -0
- package/es/components/dropdown/src/dropdown.mjs +5 -0
- package/es/components/dropdown/src/dropdown.vue.d.ts +51 -0
- package/es/components/dropdown/src/dropdown.vue_vue_type_script_setup_true_lang.mjs +226 -0
- package/es/components/dropdown/src/types.d.ts +30 -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 +1 -0
- package/es/components/index.mjs +11 -4
- 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 +6 -4
- 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 +4 -2
- package/es/components/popover/src/use-popover-emit.d.ts +8 -8
- package/es/components/svg-icon/src/svg-icon.vue_vue_type_script_setup_true_lang.mjs +2 -2
- package/es/components/svg-icon/src/types.d.ts +1 -1
- package/es/components/tooltip/index.d.ts +8 -1
- 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 +123 -111
- package/es/components/tooltip/src/types.d.ts +2 -0
- package/es/components/tooltip/src/use-tooltip-emit.d.ts +8 -8
- 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/use-namespace/index.d.ts +2 -0
- package/es/composables/use-namespace/index.mjs +2 -0
- package/es/index.d.ts +473 -454
- package/es/index.mjs +77 -71
- package/es/svg-icons/create-icon.d.ts +3 -12
- package/es/svg-icons/create-icon.mjs +3 -7
- 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 +3 -12
- package/es/svg-icons/src/arrow-backward.mjs +3 -1
- package/es/svg-icons/src/arrow-down.d.ts +3 -12
- package/es/svg-icons/src/arrow-down.mjs +3 -1
- package/es/svg-icons/src/arrow-downward.d.ts +3 -12
- package/es/svg-icons/src/arrow-downward.mjs +3 -1
- package/es/svg-icons/src/arrow-forward.d.ts +3 -12
- package/es/svg-icons/src/arrow-forward.mjs +3 -1
- package/es/svg-icons/src/arrow-left.d.ts +3 -12
- package/es/svg-icons/src/arrow-left.mjs +3 -1
- package/es/svg-icons/src/arrow-right.d.ts +3 -12
- package/es/svg-icons/src/arrow-right.mjs +3 -1
- package/es/svg-icons/src/arrow-up.d.ts +3 -12
- package/es/svg-icons/src/arrow-up.mjs +3 -1
- package/es/svg-icons/src/arrow-upward.d.ts +3 -12
- package/es/svg-icons/src/arrow-upward.mjs +3 -1
- package/es/svg-icons/src/check-circle.d.ts +3 -12
- package/es/svg-icons/src/check-circle.mjs +3 -1
- package/es/svg-icons/src/check-fill.d.ts +3 -12
- package/es/svg-icons/src/check-fill.mjs +4 -2
- package/es/svg-icons/src/check.d.ts +3 -12
- package/es/svg-icons/src/check.mjs +3 -1
- package/es/svg-icons/src/close-circle.d.ts +3 -12
- package/es/svg-icons/src/close-circle.mjs +3 -1
- package/es/svg-icons/src/close-fill.d.ts +3 -12
- package/es/svg-icons/src/close-fill.mjs +1 -0
- package/es/svg-icons/src/close-short.d.ts +3 -12
- package/es/svg-icons/src/close-short.mjs +3 -1
- package/es/svg-icons/src/close.d.ts +3 -12
- package/es/svg-icons/src/close.mjs +3 -1
- package/es/svg-icons/src/copy-closure.d.ts +3 -12
- package/es/svg-icons/src/copy-closure.mjs +3 -1
- package/es/svg-icons/src/copy.d.ts +3 -12
- package/es/svg-icons/src/copy.mjs +3 -1
- package/es/svg-icons/src/delete.d.ts +3 -12
- package/es/svg-icons/src/delete.mjs +3 -1
- package/es/svg-icons/src/exclam-fill.d.ts +3 -12
- package/es/svg-icons/src/exclam-fill.mjs +1 -0
- package/es/svg-icons/src/exclam.d.ts +3 -12
- package/es/svg-icons/src/exclam.mjs +3 -1
- package/es/svg-icons/src/help.d.ts +3 -12
- package/es/svg-icons/src/help.mjs +3 -1
- package/es/svg-icons/src/info-circle.d.ts +3 -12
- package/es/svg-icons/src/info-circle.mjs +3 -1
- package/es/svg-icons/src/info-fill.d.ts +3 -12
- package/es/svg-icons/src/info-fill.mjs +1 -0
- package/es/svg-icons/src/loading.d.ts +3 -12
- package/es/svg-icons/src/loading.mjs +3 -1
- package/es/svg-icons/src/more-dot-circle-horizontal.d.ts +3 -12
- package/es/svg-icons/src/more-dot-circle-horizontal.mjs +3 -1
- package/es/svg-icons/src/more-dot-circle-outline-horizontal.d.ts +3 -12
- package/es/svg-icons/src/more-dot-circle-outline-horizontal.mjs +3 -1
- package/es/svg-icons/src/more-dot-circle-outline-vertical.d.ts +3 -12
- package/es/svg-icons/src/more-dot-circle-outline-vertical.mjs +3 -1
- package/es/svg-icons/src/more-dot-circle.d.ts +3 -12
- package/es/svg-icons/src/more-dot-circle.mjs +3 -1
- package/es/svg-icons/src/more-dot-square-horizontal.d.ts +3 -12
- package/es/svg-icons/src/more-dot-square-horizontal.mjs +3 -1
- package/es/svg-icons/src/more-dot-square.d.ts +3 -12
- package/es/svg-icons/src/more-dot-square.mjs +3 -1
- package/es/svg-icons/src/more-line.d.ts +3 -12
- package/es/svg-icons/src/more-line.mjs +3 -1
- 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 +3 -12
- package/es/svg-icons/src/search-bold.mjs +3 -1
- package/es/svg-icons/src/search.d.ts +3 -12
- package/es/svg-icons/src/search.mjs +3 -1
- package/es/svg-icons/src/star-fill.d.ts +3 -12
- package/es/svg-icons/src/star-fill.mjs +1 -0
- package/es/svg-icons/src/star.d.ts +3 -12
- package/es/svg-icons/src/star.mjs +3 -1
- 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/svg-icons/types.d.ts +1 -1
- package/es/utils/index.mjs +2 -2
- package/es/utils/util.d.ts +76 -94
- package/es/utils/util.mjs +41 -74
- package/es/utils/vue/index.mjs +4 -1
- package/package.json +3 -2
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/re-button-group.css +1 -1
- package/theme-chalk/re-button.css +1 -1
- package/theme-chalk/re-dropdown.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/button-group.scss +32 -8
- package/theme-chalk/src/dropdown.scss +97 -0
- package/theme-chalk/src/function/index.scss +1 -1
- package/theme-chalk/src/index.scss +1 -0
- package/theme-chalk/src/message.scss +2 -28
- package/theme-chalk/src/mixins/_button.scss +1 -1
- package/theme-chalk/src/mixins/_dropdown.scss +17 -0
- package/theme-chalk/src/mixins/_transition.scss +29 -0
- package/theme-chalk/src/mixins/index.scss +6 -0
- package/theme-chalk/src/popconfirm.scss +3 -0
- package/theme-chalk/src/popover.scss +3 -0
- package/theme-chalk/src/tooltip.scss +3 -10
- 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
|
@@ -6,11 +6,7 @@ export declare const Search: DefineComponent<ExtractPropTypes<{
|
|
|
6
6
|
};
|
|
7
7
|
color: {
|
|
8
8
|
type: StringConstructor;
|
|
9
|
-
default: string
|
|
10
|
-
};
|
|
11
|
-
fill: {
|
|
12
|
-
type: StringConstructor;
|
|
13
|
-
default: string | undefined;
|
|
9
|
+
default: string;
|
|
14
10
|
};
|
|
15
11
|
spin: {
|
|
16
12
|
type: BooleanConstructor;
|
|
@@ -25,11 +21,7 @@ export declare const Search: DefineComponent<ExtractPropTypes<{
|
|
|
25
21
|
};
|
|
26
22
|
color: {
|
|
27
23
|
type: StringConstructor;
|
|
28
|
-
default: string
|
|
29
|
-
};
|
|
30
|
-
fill: {
|
|
31
|
-
type: StringConstructor;
|
|
32
|
-
default: string | undefined;
|
|
24
|
+
default: string;
|
|
33
25
|
};
|
|
34
26
|
spin: {
|
|
35
27
|
type: BooleanConstructor;
|
|
@@ -37,7 +29,6 @@ export declare const Search: DefineComponent<ExtractPropTypes<{
|
|
|
37
29
|
};
|
|
38
30
|
}>> & Readonly<{}>, {
|
|
39
31
|
size: string | number;
|
|
40
|
-
fill: string;
|
|
41
|
-
color: string;
|
|
42
32
|
spin: boolean;
|
|
33
|
+
color: string;
|
|
43
34
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any> | undefined;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { createIcon as e } from "../create-icon.mjs";
|
|
2
|
+
//#region packages/svg-icons/src/search.ts
|
|
2
3
|
var t = e({
|
|
3
4
|
name: "search",
|
|
4
|
-
path: "M4 10A6 6 0 1 0 16 10 A6 6 0 1 0 4 10M20 20 L14.5 14.5"
|
|
5
|
+
path: "M4 10A6 6 0 1 0 16 10 A6 6 0 1 0 4 10M20 20 L14.5 14.5",
|
|
6
|
+
stroke: "currentColor"
|
|
5
7
|
});
|
|
6
8
|
//#endregion
|
|
7
9
|
export { t as Search };
|
|
@@ -6,11 +6,7 @@ export declare const StarFill: DefineComponent<ExtractPropTypes<{
|
|
|
6
6
|
};
|
|
7
7
|
color: {
|
|
8
8
|
type: StringConstructor;
|
|
9
|
-
default: string
|
|
10
|
-
};
|
|
11
|
-
fill: {
|
|
12
|
-
type: StringConstructor;
|
|
13
|
-
default: string | undefined;
|
|
9
|
+
default: string;
|
|
14
10
|
};
|
|
15
11
|
spin: {
|
|
16
12
|
type: BooleanConstructor;
|
|
@@ -25,11 +21,7 @@ export declare const StarFill: DefineComponent<ExtractPropTypes<{
|
|
|
25
21
|
};
|
|
26
22
|
color: {
|
|
27
23
|
type: StringConstructor;
|
|
28
|
-
default: string
|
|
29
|
-
};
|
|
30
|
-
fill: {
|
|
31
|
-
type: StringConstructor;
|
|
32
|
-
default: string | undefined;
|
|
24
|
+
default: string;
|
|
33
25
|
};
|
|
34
26
|
spin: {
|
|
35
27
|
type: BooleanConstructor;
|
|
@@ -37,7 +29,6 @@ export declare const StarFill: DefineComponent<ExtractPropTypes<{
|
|
|
37
29
|
};
|
|
38
30
|
}>> & Readonly<{}>, {
|
|
39
31
|
size: string | number;
|
|
40
|
-
fill: string;
|
|
41
|
-
color: string;
|
|
42
32
|
spin: boolean;
|
|
33
|
+
color: string;
|
|
43
34
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any> | undefined;
|
|
@@ -6,11 +6,7 @@ export declare const Star: DefineComponent<ExtractPropTypes<{
|
|
|
6
6
|
};
|
|
7
7
|
color: {
|
|
8
8
|
type: StringConstructor;
|
|
9
|
-
default: string
|
|
10
|
-
};
|
|
11
|
-
fill: {
|
|
12
|
-
type: StringConstructor;
|
|
13
|
-
default: string | undefined;
|
|
9
|
+
default: string;
|
|
14
10
|
};
|
|
15
11
|
spin: {
|
|
16
12
|
type: BooleanConstructor;
|
|
@@ -25,11 +21,7 @@ export declare const Star: DefineComponent<ExtractPropTypes<{
|
|
|
25
21
|
};
|
|
26
22
|
color: {
|
|
27
23
|
type: StringConstructor;
|
|
28
|
-
default: string
|
|
29
|
-
};
|
|
30
|
-
fill: {
|
|
31
|
-
type: StringConstructor;
|
|
32
|
-
default: string | undefined;
|
|
24
|
+
default: string;
|
|
33
25
|
};
|
|
34
26
|
spin: {
|
|
35
27
|
type: BooleanConstructor;
|
|
@@ -37,7 +29,6 @@ export declare const Star: DefineComponent<ExtractPropTypes<{
|
|
|
37
29
|
};
|
|
38
30
|
}>> & Readonly<{}>, {
|
|
39
31
|
size: string | number;
|
|
40
|
-
fill: string;
|
|
41
|
-
color: string;
|
|
42
32
|
spin: boolean;
|
|
33
|
+
color: string;
|
|
43
34
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any> | undefined;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { createIcon as e } from "../create-icon.mjs";
|
|
2
|
+
//#region packages/svg-icons/src/star.ts
|
|
2
3
|
var t = e({
|
|
3
4
|
name: "star",
|
|
4
|
-
path: "M12 2L14.63 9.25L22 9.64L16.26 14.51L18.18 22L12 17.77L5.82 22L7.74 14.51L2 9.64L9.37 9.25L12 2"
|
|
5
|
+
path: "M12 2L14.63 9.25L22 9.64L16.26 14.51L18.18 22L12 17.77L5.82 22L7.74 14.51L2 9.64L9.37 9.25L12 2",
|
|
6
|
+
stroke: "currentColor"
|
|
5
7
|
});
|
|
6
8
|
//#endregion
|
|
7
9
|
export { t as Star };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, VNode, RendererNode, RendererElement, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
export declare const TriangleBackwardFill: DefineComponent<ExtractPropTypes<{
|
|
3
|
+
size: {
|
|
4
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
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: (StringConstructor | NumberConstructor)[];
|
|
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-backward-fill.ts
|
|
3
|
+
var t = e({
|
|
4
|
+
name: "triangle-backward-fill",
|
|
5
|
+
path: "M8 5L15 12L8 19L8 5Z",
|
|
6
|
+
fill: "currentColor"
|
|
7
|
+
});
|
|
8
|
+
//#endregion
|
|
9
|
+
export { t as TriangleBackwardFill };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, VNode, RendererNode, RendererElement, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
export declare const TriangleDownwardFill: DefineComponent<ExtractPropTypes<{
|
|
3
|
+
size: {
|
|
4
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
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: (StringConstructor | NumberConstructor)[];
|
|
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-downward-fill.ts
|
|
3
|
+
var t = e({
|
|
4
|
+
name: "triangle-downward-fill",
|
|
5
|
+
path: "M5 9L12 16L19 9L5 9Z",
|
|
6
|
+
fill: "currentColor"
|
|
7
|
+
});
|
|
8
|
+
//#endregion
|
|
9
|
+
export { t as TriangleDownwardFill };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, VNode, RendererNode, RendererElement, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
export declare const TriangleForwardFill: DefineComponent<ExtractPropTypes<{
|
|
3
|
+
size: {
|
|
4
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
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: (StringConstructor | NumberConstructor)[];
|
|
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-forward-fill.ts
|
|
3
|
+
var t = e({
|
|
4
|
+
name: "triangle-forward-fill",
|
|
5
|
+
path: "M15 5L8 12L15 19L15 5Z",
|
|
6
|
+
fill: "currentColor"
|
|
7
|
+
});
|
|
8
|
+
//#endregion
|
|
9
|
+
export { t as TriangleForwardFill };
|
|
@@ -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: (StringConstructor | NumberConstructor)[];
|
|
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: (StringConstructor | NumberConstructor)[];
|
|
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/svg-icons/types.d.ts
CHANGED
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 _, isPlainObject as v, joinURLs as y, mixedColor as b, omitEmptyKeys as x, paramsToFormData as S, rgbToHex as C, setURLSearchParams as w, toKebabCase as T, toPx as E, transitionSize as D } 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 isPlainObject, y as joinURLs, b as mixedColor, x as omitEmptyKeys, S as paramsToFormData, C as rgbToHex, w as setURLSearchParams, T as toKebabCase, n as toLowerCase, r as toPascalCase, E as toPx, D as transitionSize, i as withInstall, a as withMultiInstall };
|
package/es/utils/util.d.ts
CHANGED
|
@@ -1,75 +1,39 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* @param { Object } params
|
|
4
|
-
* @returns
|
|
2
|
+
* Convert objects to FormData objects
|
|
3
|
+
* @param { Object } params - objects to convert
|
|
4
|
+
* @returns - converted FormData object
|
|
5
5
|
*/
|
|
6
6
|
export declare function paramsToFormData(params: Record<string, any>): FormData;
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
* @param { string } urlString - URL
|
|
10
|
-
* @param { Object } params -
|
|
11
|
-
* @returns { string }
|
|
8
|
+
* Set URLSearchParams object and return a new URL string
|
|
9
|
+
* @param { string } urlString - URL string
|
|
10
|
+
* @param { Object } params - parameters to set in the URLSearchParams object
|
|
11
|
+
* @returns { string } - new URL string with updated search parameters
|
|
12
12
|
*/
|
|
13
13
|
export declare function setURLSearchParams(urlString: string, params: Record<string, any>): string;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
16
|
-
* @param { string[] } ...urls
|
|
17
|
-
* @returns { string }
|
|
15
|
+
* Merge URL strings
|
|
16
|
+
* @param { string[] } ...urls -Variable parameters: URL string parameters
|
|
17
|
+
* @returns { string } -merged URL string
|
|
18
18
|
*/
|
|
19
19
|
export declare function joinURLs(...urls: string[]): string;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* deep clone
|
|
22
22
|
* @param arr
|
|
23
23
|
* @returns
|
|
24
24
|
*/
|
|
25
25
|
export declare function deepClone(arr: any[]): any[] | null;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
28
|
-
* @param byte {number} -
|
|
27
|
+
* Automatically convert file size to a suitable unit size
|
|
28
|
+
* @param byte {number} - file size(B)
|
|
29
29
|
* @returns
|
|
30
30
|
*/
|
|
31
31
|
export declare function autoCalcFileSize(byte: number): string;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
34
|
-
* @param
|
|
35
|
-
* @param
|
|
36
|
-
* @returns
|
|
37
|
-
*/
|
|
38
|
-
export declare function readTxtFile(file: File, encode: string): Promise<string>;
|
|
39
|
-
/**
|
|
40
|
-
* 用不同编码读取txt文件
|
|
41
|
-
* @param file {File} - 文件对象
|
|
42
|
-
* @param encodes {string[]} - 编码格式数组
|
|
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
|
-
* 单例模式函数
|
|
53
|
-
* @param {Function} fn - 要执行的函数 / class类
|
|
54
|
-
*/
|
|
55
|
-
export declare function singleton(fn: (...args: unknown[]) => unknown): unknown;
|
|
56
|
-
/**
|
|
57
|
-
* 函数重载
|
|
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} 重载函数
|
|
63
|
-
*/
|
|
64
|
-
export declare function createOverload(): {
|
|
65
|
-
(...args: any[]): any;
|
|
66
|
-
add(...args: any[]): void;
|
|
67
|
-
};
|
|
68
|
-
/**
|
|
69
|
-
* 平铺数据构建树结构
|
|
70
|
-
* @param data {Array} - 数据源
|
|
71
|
-
* @param props {Object} - 属性映射
|
|
72
|
-
* @returns {Array} - 树结构
|
|
33
|
+
* flat to tree
|
|
34
|
+
* @param data {Array} - original data
|
|
35
|
+
* @param props {Object} - props map
|
|
36
|
+
* @returns {Array} - tree data
|
|
73
37
|
*/
|
|
74
38
|
export declare function buildTree(data: any[], props?: {
|
|
75
39
|
label: string;
|
|
@@ -83,80 +47,95 @@ export declare function hexToRGB(hexColor: string): {
|
|
|
83
47
|
b: number;
|
|
84
48
|
};
|
|
85
49
|
/**
|
|
86
|
-
*
|
|
50
|
+
* Input can be float number, and the final output: #rrggbb
|
|
87
51
|
* @param r 0‑255
|
|
88
52
|
* @param g 0‑255
|
|
89
53
|
* @param b 0‑255
|
|
90
54
|
*/
|
|
91
55
|
export declare function rgbToHex(r: number, g: number, b: number): string;
|
|
92
56
|
/**
|
|
93
|
-
*
|
|
94
|
-
* @param hexColor
|
|
95
|
-
* @param opacity
|
|
96
|
-
* @returns
|
|
57
|
+
* Calculate the equivalent color value of transparency
|
|
58
|
+
* @param hexColor - (e.g., '#a895ff')
|
|
59
|
+
* @param opacity - (between 0-1, default is 1)
|
|
60
|
+
* @returns the equivalent opaque color value (hexadecimal format)
|
|
97
61
|
*/
|
|
98
62
|
export declare function getEqualOpacityColor(hexColor: string, bgcolor?: string, opacity?: number): string;
|
|
99
63
|
/**
|
|
100
64
|
* Mixed color(Hexadecimal)
|
|
101
|
-
* @param
|
|
102
|
-
* @param mixColor
|
|
103
|
-
* @param ratio
|
|
104
|
-
* @returns
|
|
65
|
+
* @param originColor -original color(Hexadecimal, eg: '#a895ff')
|
|
66
|
+
* @param mixColor -mixed color(Hexadecimal, eg: '#000000')
|
|
67
|
+
* @param ratio -Mixing ratio (0-1, 0 means no change at all, 1 means completely mixed color)
|
|
68
|
+
* @returns -mixed color value
|
|
105
69
|
*/
|
|
106
|
-
export declare function mixedColor(
|
|
70
|
+
export declare function mixedColor(originColor: string, mixColor: string, ratio?: number): string;
|
|
107
71
|
/**
|
|
108
72
|
* @description 创建层次颜色数组,包含一个变暗的颜色(hover/active)和多个透明度的等值颜色值
|
|
109
73
|
* @param baseColor - 基础颜色的十六进制字符串 (例如 '#a895ff')
|
|
110
|
-
* @param
|
|
111
|
-
* @param
|
|
74
|
+
* @param bgcolor - 背景颜色的十六进制字符串,默认为 '#ffffff'
|
|
75
|
+
* @param mixColor - 混入颜色的十六进制字符串
|
|
76
|
+
* @param mixRatio - 混入颜色比率,取值范围为0-1,0表示不变,1表示完全变为混入颜色
|
|
112
77
|
* @param opacityLevels - 透明度数组,默认为 [0.9, 0.8, 0.7, 0.6, 0.5, 0.4, 0.3, 0.2, 0.1]
|
|
113
78
|
* @returns 层次颜色数组
|
|
114
79
|
*/
|
|
115
80
|
export declare function createColors(baseColor: string, bgcolor: string | undefined, mixColor: string, mixRatio?: number, opacityLevels?: number[]): string[];
|
|
116
81
|
/**
|
|
117
|
-
* @description
|
|
82
|
+
* @description Whether the object has the specified key
|
|
118
83
|
*
|
|
119
|
-
* @param { Record<string, unknown> } obj -
|
|
120
|
-
* @param { string } key -
|
|
121
|
-
* @returns { boolean } -
|
|
84
|
+
* @param { Record<string, unknown> } obj - the object to be judged.
|
|
85
|
+
* @param { string } key - the key to check.
|
|
86
|
+
* @returns { boolean } - true or false
|
|
122
87
|
*/
|
|
123
88
|
export declare function hasOwnProperty(obj: Record<string, unknown>, key: string): boolean;
|
|
124
89
|
/**
|
|
125
|
-
* @description
|
|
90
|
+
* @description whether the object is a plain object.
|
|
126
91
|
*
|
|
127
|
-
* @param { unknown } obj -
|
|
128
|
-
* @returns { boolean } -
|
|
92
|
+
* @param { unknown } obj - the object to be judged.
|
|
93
|
+
* @returns { boolean } - true or false
|
|
129
94
|
*/
|
|
130
95
|
export declare function isPlainObject(obj: unknown): boolean;
|
|
131
96
|
/**
|
|
132
|
-
* @description
|
|
97
|
+
* @description delete object keys.
|
|
133
98
|
*
|
|
134
|
-
* @param { Record<string, unknown> } obj -
|
|
135
|
-
* @param { string[] } keys -
|
|
136
|
-
* @returns { Record<string, unknown> } -
|
|
99
|
+
* @param { Record<string, unknown> } obj - target object.
|
|
100
|
+
* @param { string[] } keys - keys to delete.
|
|
101
|
+
* @returns { Record<string, unknown> } - new object after deleting keys
|
|
137
102
|
*/
|
|
138
103
|
export declare function deleteKeys<T extends Record<string, unknown>, K extends keyof T>(obj: T, keys: K[] | K): Omit<T, K>;
|
|
139
104
|
/**
|
|
140
|
-
* @description
|
|
105
|
+
* @description Recursive array flattening, supporting array sub-elements as basic types, objects, and arrays.
|
|
141
106
|
*
|
|
142
|
-
* @param { Record<string, unknown>[] } arr -
|
|
143
|
-
* @param { string } key -
|
|
144
|
-
* @returns { Record<string, unknown>[] } -
|
|
107
|
+
* @param { Record<string, unknown>[] } arr - original array.
|
|
108
|
+
* @param { string } key - flattened key.
|
|
109
|
+
* @returns { Record<string, unknown>[] } - flattened array
|
|
145
110
|
*/
|
|
146
111
|
export declare function flatArr<T extends Record<string, unknown>, K extends keyof T>(arr: T[], key?: K): T[];
|
|
147
112
|
/**
|
|
148
|
-
* @description
|
|
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
|
+
}[];
|
|
126
|
+
/**
|
|
127
|
+
* @description remove object empty keys.
|
|
149
128
|
*
|
|
150
|
-
* @param { Record<string, unknown> } obj -
|
|
151
|
-
* @param { unknown[] } emptyValues -
|
|
152
|
-
* null, {}, [], false, 0]
|
|
153
|
-
* @returns { Partial<T> | T } -
|
|
129
|
+
* @param { Record<string, unknown> } obj - target object.
|
|
130
|
+
* @param { unknown[] } emptyValues - empty value array (default is ['', undefined, null], supports empty value judgment for arrays and objects ['',
|
|
131
|
+
* null, {}, [], false, 0])
|
|
132
|
+
* @returns { Partial<T> | T } - new object after removing empty values
|
|
154
133
|
*/
|
|
155
134
|
export declare function omitEmptyKeys<T extends Record<string, unknown> & {
|
|
156
135
|
length?: never;
|
|
157
136
|
}>(obj: T, emptyValues?: unknown[]): Partial<T> | T;
|
|
158
137
|
/**
|
|
159
|
-
*
|
|
138
|
+
* element sizes transition
|
|
160
139
|
* @param dom
|
|
161
140
|
* @param property
|
|
162
141
|
* @param show
|
|
@@ -164,26 +143,29 @@ export declare function omitEmptyKeys<T extends Record<string, unknown> & {
|
|
|
164
143
|
*/
|
|
165
144
|
export declare function transitionSize(dom: HTMLElement | undefined, property: "height" | "width" | undefined, show: boolean, transition?: string): void;
|
|
166
145
|
/**
|
|
167
|
-
*
|
|
168
|
-
* @param {string} text -
|
|
146
|
+
* copy text to clipboard
|
|
147
|
+
* @param {string} text - text to copy
|
|
169
148
|
* @returns {Promise<any>}
|
|
170
149
|
*/
|
|
171
150
|
export declare function copyText(text: string): Promise<any>;
|
|
172
151
|
/**
|
|
173
|
-
*
|
|
174
|
-
* @param value
|
|
175
|
-
* @returns
|
|
152
|
+
* Convert to a size value with px unit
|
|
153
|
+
* @param value number / pure number string / string with unit
|
|
154
|
+
* @returns CSS value with unit
|
|
176
155
|
*/
|
|
177
156
|
export declare function toPx(val?: string | number): string | undefined;
|
|
178
157
|
/**
|
|
179
|
-
*
|
|
158
|
+
* Get CSS variables by prefix
|
|
180
159
|
* @param prefix
|
|
181
160
|
* @param element
|
|
182
161
|
* @returns
|
|
183
162
|
*/
|
|
184
163
|
export declare function getCssVarsByPrefix(prefix: string, element?: HTMLElement): {};
|
|
185
164
|
/**
|
|
186
|
-
*
|
|
187
|
-
*
|
|
165
|
+
* Convert PascalCase to kebab-case
|
|
166
|
+
* @param str {string} - PascalCase string
|
|
167
|
+
* @returns {string} - kebab-case string
|
|
168
|
+
* @example
|
|
169
|
+
* ReFilterPanel -> re-filter-panel
|
|
188
170
|
*/
|
|
189
171
|
export declare function toKebabCase(str: string): string;
|