base6-ui 2.0.26 → 2.0.27

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.
Files changed (84) hide show
  1. package/dist/_utils/composable/use-omit-props.d.ts +2 -0
  2. package/dist/_utils/simply-omit.d.ts +1 -0
  3. package/dist/components/button-list/index.d.ts +2 -0
  4. package/dist/components/button-list/src/button-list.d.ts +35 -0
  5. package/dist/components/button-list/src/interface.d.ts +48 -0
  6. package/dist/components/data-table/data-table.d.ts +2 -7094
  7. package/dist/components/data-table/interface.d.ts +26 -2
  8. package/dist/components/index.d.ts +2 -0
  9. package/dist/components/shape-button/index.d.ts +2 -0
  10. package/dist/components/shape-button/src/cssVar.d.ts +7 -0
  11. package/dist/components/shape-button/src/interface.d.ts +667 -0
  12. package/dist/components/shape-button/src/shape-button.d.ts +4 -0
  13. package/dist/index.css +1 -1
  14. package/dist/index.umd.js +3 -3
  15. package/es/_utils/composable/use-omit-props.d.ts +2 -0
  16. package/es/_utils/composable/use-omit-props.mjs +12 -0
  17. package/es/_utils/simply-omit.d.ts +1 -0
  18. package/es/_utils/simply-omit.mjs +9 -0
  19. package/es/_virtual/virtual_svg-icons-register.mjs +1 -1
  20. package/es/components/button-list/index.d.ts +2 -0
  21. package/es/components/button-list/src/button-list.d.ts +35 -0
  22. package/es/components/button-list/src/button-list.mjs +63 -0
  23. package/es/components/button-list/src/interface.d.ts +48 -0
  24. package/es/components/button-list/src/interface.mjs +12 -0
  25. package/es/components/data-table/data-table.d.ts +2 -7094
  26. package/es/components/data-table/data-table.mjs +34 -29
  27. package/es/components/data-table/interface.d.ts +26 -2
  28. package/es/components/data-table/interface.mjs +17 -7
  29. package/es/components/global-header/index.vue.mjs +1 -1
  30. package/es/components/index.d.ts +2 -0
  31. package/es/components/layout/components/{WrapHeader.vue2.mjs → WrapHeader.vue.mjs} +1 -1
  32. package/es/components/layout/index.vue2.mjs +1 -1
  33. package/es/components/shape-button/index.d.ts +2 -0
  34. package/es/components/shape-button/src/cssVar.d.ts +7 -0
  35. package/es/components/shape-button/src/cssVar.mjs +65 -0
  36. package/es/components/shape-button/src/interface.d.ts +667 -0
  37. package/es/components/shape-button/src/interface.mjs +30 -0
  38. package/es/components/shape-button/src/shape-button.d.ts +4 -0
  39. package/es/components/shape-button/src/shape-button.mjs +52 -0
  40. package/es/components/system-actions/index.vue.mjs +2 -2
  41. package/es/components/system-actions/index.vue2.mjs +43 -48
  42. package/es/config/themes/components/card/dark.mjs +1 -1
  43. package/es/config/themes/components/dataTable/dark.mjs +3 -3
  44. package/es/config/themes/components/inputNumber/light.mjs +7 -5
  45. package/es/index.css +1 -1
  46. package/es/index.mjs +104 -96
  47. package/es/node_modules/.pnpm/naive-ui@2.43.1_vue@3.5.22_typescript@5.7.2_/node_modules/naive-ui/es/_utils/css/format-length.mjs +22 -0
  48. package/lib/_utils/composable/use-omit-props.d.ts +2 -0
  49. package/lib/_utils/composable/use-omit-props.js +1 -0
  50. package/lib/_utils/simply-omit.d.ts +1 -0
  51. package/lib/_utils/simply-omit.js +1 -0
  52. package/lib/_virtual/virtual_svg-icons-register.js +1 -1
  53. package/lib/components/button-list/index.d.ts +2 -0
  54. package/lib/components/button-list/src/button-list.d.ts +35 -0
  55. package/lib/components/button-list/src/button-list.js +1 -0
  56. package/lib/components/button-list/src/interface.d.ts +48 -0
  57. package/lib/components/button-list/src/interface.js +1 -0
  58. package/lib/components/data-table/data-table.d.ts +2 -7094
  59. package/lib/components/data-table/data-table.js +1 -1
  60. package/lib/components/data-table/interface.d.ts +26 -2
  61. package/lib/components/data-table/interface.js +1 -1
  62. package/lib/components/global-header/index.vue.js +1 -1
  63. package/lib/components/index.d.ts +2 -0
  64. package/lib/components/layout/components/WrapHeader.vue.js +1 -0
  65. package/lib/components/layout/index.vue2.js +1 -1
  66. package/lib/components/shape-button/index.d.ts +2 -0
  67. package/lib/components/shape-button/src/cssVar.d.ts +7 -0
  68. package/lib/components/shape-button/src/cssVar.js +1 -0
  69. package/lib/components/shape-button/src/interface.d.ts +667 -0
  70. package/lib/components/shape-button/src/interface.js +1 -0
  71. package/lib/components/shape-button/src/shape-button.d.ts +4 -0
  72. package/lib/components/shape-button/src/shape-button.js +1 -0
  73. package/lib/components/system-actions/index.vue.js +1 -1
  74. package/lib/components/system-actions/index.vue2.js +1 -1
  75. package/lib/config/themes/components/card/dark.js +1 -1
  76. package/lib/config/themes/components/dataTable/dark.js +1 -1
  77. package/lib/config/themes/components/inputNumber/light.js +1 -1
  78. package/lib/index.css +1 -1
  79. package/lib/index.js +1 -1
  80. package/lib/node_modules/.pnpm/naive-ui@2.43.1_vue@3.5.22_typescript@5.7.2_/node_modules/naive-ui/es/_utils/css/format-length.js +1 -0
  81. package/package.json +1 -1
  82. package/es/components/system-actions/cssVar.mjs +0 -65
  83. package/lib/components/layout/components/WrapHeader.vue2.js +0 -1
  84. package/lib/components/system-actions/cssVar.js +0 -1
package/es/index.mjs CHANGED
@@ -4,104 +4,112 @@ import "./_virtual/virtual_svg-icons-register.mjs";
4
4
  import { default as f } from "./components/app-provider/index.vue.mjs";
5
5
  import { default as s } from "./components/button/button.mjs";
6
6
  import { bodenButtonProps as m } from "./components/button/interface.mjs";
7
- import { default as l } from "./components/cascader/cascader.mjs";
8
- import { bodenCascaderProps as u } from "./components/cascader/types.mjs";
9
- import { default as B } from "./components/config-provider/config-provider.mjs";
10
- import { default as b } from "./components/data-table/data-table.mjs";
11
- import { bodenDataTableProps as g } from "./components/data-table/interface.mjs";
12
- import { default as A } from "./components/dialog/index.vue.mjs";
13
- import { default as c } from "./components/input-number/index.vue.mjs";
14
- import { default as M } from "./components/global-header/index.vue.mjs";
15
- import { default as S } from "./components/global-header/title.vue.mjs";
16
- import { default as v } from "./components/layout/index.vue.mjs";
17
- import { default as H } from "./components/layout/header/index.vue.mjs";
18
- import { default as D } from "./components/layout/aside/index.vue.mjs";
19
- import { default as y } from "./components/layout/aside-menu/aside-menu.mjs";
20
- import { bodenAsideMenuProps as I } from "./components/layout/aside-menu/props.mjs";
21
- import { default as F } from "./components/logo/index.vue.mjs";
22
- import { default as j } from "./components/nav-icon/index.vue.mjs";
23
- import { default as z } from "./components/radio/index.vue.mjs";
24
- import { default as Z } from "./components/platform-navigation/index.vue.mjs";
25
- import { BODEN_PLATFORM_ENUM as J, BODEN_PLATFORM_NAME_ENUM as Q } from "./components/platform-navigation/interface.mjs";
26
- import { default as W } from "./components/progress/index.mjs";
27
- import { default as Y } from "./components/select/src/select.mjs";
28
- import { bodenSelectProps as ee } from "./components/select/src/interface.mjs";
29
- import { default as re } from "./components/slider/index.vue.mjs";
30
- import { default as ae } from "./components/steps/steps.mjs";
31
- import { default as de } from "./components/switch/index.vue.mjs";
32
- import { default as pe } from "./components/system-actions/index.vue.mjs";
33
- import { default as ne, bodenTabsProps as le } from "./components/tabs/tabs.mjs";
34
- import { configProviderInjectionKey as ue } from "./config/themes/index.mjs";
35
- import { LOCALE_LANG as Be } from "./enum/locale.mjs";
36
- import { useAnimationHook as be } from "./hooks/useAnimationHook.mjs";
37
- import { useBodenHttpMessage as ge } from "./hooks/useBodenHttpMessage.mjs";
38
- import { default as Ae } from "./locale/lang/en-us.mjs";
39
- import { default as ce } from "./locale/lang/zh-cn.mjs";
40
- import { default as Me } from "./locale/http/en-us.mjs";
41
- import { default as Se } from "./locale/http/zh-cn.mjs";
42
- import { default as ve } from "./globalMethods/index.mjs";
43
- import { renderStepsFinishIcon as He } from "./utils/render.mjs";
44
- import { default as De } from "./config/themes/token/dark.mjs";
45
- import { default as ye } from "./config/themes/token/light.mjs";
46
- import { default as Ie } from "./config/themes/color/dark.mjs";
47
- import { default as Fe } from "./config/themes/color/light.mjs";
48
- import { default as je } from "./globalMethods/modules/message.mjs";
49
- import { default as ze } from "./globalMethods/modules/confirmTip.mjs";
50
- import { lightThemeOverrides as Ze } from "./config/themes/light.mjs";
51
- import { darkThemeOverrides as Je } from "./config/themes/dark.mjs";
52
- import { ChartsThemeDark as Ve } from "./config/themes/components/charts/dark.mjs";
53
- import { ChartsThemeLight as Xe } from "./config/themes/components/charts/light.mjs";
7
+ import { default as l } from "./components/button-list/src/button-list.mjs";
8
+ import { bodenButtonListProps as x } from "./components/button-list/src/interface.mjs";
9
+ import { default as i } from "./components/cascader/cascader.mjs";
10
+ import { bodenCascaderProps as b } from "./components/cascader/types.mjs";
11
+ import { default as T } from "./components/config-provider/config-provider.mjs";
12
+ import { default as L } from "./components/data-table/data-table.mjs";
13
+ import { bodenDataTableProps as N } from "./components/data-table/interface.mjs";
14
+ import { default as c } from "./components/dialog/index.vue.mjs";
15
+ import { default as C } from "./components/input-number/index.vue.mjs";
16
+ import { default as v } from "./components/global-header/index.vue.mjs";
17
+ import { default as H } from "./components/global-header/title.vue.mjs";
18
+ import { default as D } from "./components/layout/index.vue.mjs";
19
+ import { default as y } from "./components/layout/header/index.vue.mjs";
20
+ import { default as I } from "./components/layout/aside/index.vue.mjs";
21
+ import { default as F } from "./components/layout/aside-menu/aside-menu.mjs";
22
+ import { bodenAsideMenuProps as j } from "./components/layout/aside-menu/props.mjs";
23
+ import { default as z } from "./components/logo/index.vue.mjs";
24
+ import { default as Z } from "./components/nav-icon/index.vue.mjs";
25
+ import { default as J } from "./components/radio/index.vue.mjs";
26
+ import { default as V } from "./components/platform-navigation/index.vue.mjs";
27
+ import { BODEN_PLATFORM_ENUM as X, BODEN_PLATFORM_NAME_ENUM as Y } from "./components/platform-navigation/interface.mjs";
28
+ import { default as ee } from "./components/progress/index.mjs";
29
+ import { default as re } from "./components/select/src/select.mjs";
30
+ import { bodenSelectProps as ae } from "./components/select/src/interface.mjs";
31
+ import { default as de } from "./components/shape-button/src/shape-button.mjs";
32
+ import { bodenShapeButtonProps as pe } from "./components/shape-button/src/interface.mjs";
33
+ import { default as ne } from "./components/slider/index.vue.mjs";
34
+ import { default as ue } from "./components/steps/steps.mjs";
35
+ import { default as Be } from "./components/switch/index.vue.mjs";
36
+ import { default as he } from "./components/system-actions/index.vue.mjs";
37
+ import { default as Pe, bodenTabsProps as Te } from "./components/tabs/tabs.mjs";
38
+ import { configProviderInjectionKey as Le } from "./config/themes/index.mjs";
39
+ import { LOCALE_LANG as Ne } from "./enum/locale.mjs";
40
+ import { useAnimationHook as ce } from "./hooks/useAnimationHook.mjs";
41
+ import { useBodenHttpMessage as Ce } from "./hooks/useBodenHttpMessage.mjs";
42
+ import { default as ve } from "./locale/lang/en-us.mjs";
43
+ import { default as He } from "./locale/lang/zh-cn.mjs";
44
+ import { default as De } from "./locale/http/en-us.mjs";
45
+ import { default as ye } from "./locale/http/zh-cn.mjs";
46
+ import { default as Ie } from "./globalMethods/index.mjs";
47
+ import { renderStepsFinishIcon as Fe } from "./utils/render.mjs";
48
+ import { default as je } from "./config/themes/token/dark.mjs";
49
+ import { default as ze } from "./config/themes/token/light.mjs";
50
+ import { default as Ze } from "./config/themes/color/dark.mjs";
51
+ import { default as Je } from "./config/themes/color/light.mjs";
52
+ import { default as Ve } from "./globalMethods/modules/message.mjs";
53
+ import { default as Xe } from "./globalMethods/modules/confirmTip.mjs";
54
+ import { lightThemeOverrides as $e } from "./config/themes/light.mjs";
55
+ import { darkThemeOverrides as oo } from "./config/themes/dark.mjs";
56
+ import { ChartsThemeDark as to } from "./config/themes/components/charts/dark.mjs";
57
+ import { ChartsThemeLight as fo } from "./config/themes/components/charts/light.mjs";
54
58
  export {
55
- J as BODEN_PLATFORM_ENUM,
56
- Q as BODEN_PLATFORM_NAME_ENUM,
59
+ X as BODEN_PLATFORM_ENUM,
60
+ Y as BODEN_PLATFORM_NAME_ENUM,
57
61
  f as BodenAppProvider,
58
- y as BodenAsideMenu,
62
+ F as BodenAsideMenu,
59
63
  s as BodenButton,
60
- l as BodenCascader,
61
- B as BodenConfigProvider,
62
- b as BodenDataTable,
63
- A as BodenDialog,
64
- M as BodenGlobalHeader,
65
- S as BodenGlobalHeaderTitle,
66
- c as BodenInputNumber,
67
- v as BodenLayout,
68
- D as BodenLayoutAside,
69
- H as BodenLayoutHeader,
70
- F as BodenLogo,
71
- j as BodenNavIcon,
72
- Z as BodenPlatformNavigation,
73
- W as BodenProgress,
74
- z as BodenRadio,
75
- Y as BodenSelect,
76
- re as BodenSlider,
77
- ae as BodenSteps,
78
- de as BodenSwitch,
79
- pe as BodenSystemActions,
80
- ne as BodenTabs,
81
- Ve as ChartsThemeDark,
82
- Xe as ChartsThemeLight,
83
- Me as HttpEnUS,
84
- Se as HttpZhCN,
85
- Be as LOCALE_LANG,
86
- I as bodenAsideMenuProps,
64
+ l as BodenButtonList,
65
+ i as BodenCascader,
66
+ T as BodenConfigProvider,
67
+ L as BodenDataTable,
68
+ c as BodenDialog,
69
+ v as BodenGlobalHeader,
70
+ H as BodenGlobalHeaderTitle,
71
+ C as BodenInputNumber,
72
+ D as BodenLayout,
73
+ I as BodenLayoutAside,
74
+ y as BodenLayoutHeader,
75
+ z as BodenLogo,
76
+ Z as BodenNavIcon,
77
+ V as BodenPlatformNavigation,
78
+ ee as BodenProgress,
79
+ J as BodenRadio,
80
+ re as BodenSelect,
81
+ de as BodenShapeButton,
82
+ ne as BodenSlider,
83
+ ue as BodenSteps,
84
+ Be as BodenSwitch,
85
+ he as BodenSystemActions,
86
+ Pe as BodenTabs,
87
+ to as ChartsThemeDark,
88
+ fo as ChartsThemeLight,
89
+ De as HttpEnUS,
90
+ ye as HttpZhCN,
91
+ Ne as LOCALE_LANG,
92
+ j as bodenAsideMenuProps,
93
+ x as bodenButtonListProps,
87
94
  m as bodenButtonProps,
88
- u as bodenCascaderProps,
89
- g as bodenDataTableProps,
90
- ee as bodenSelectProps,
91
- le as bodenTabsProps,
92
- ue as configProviderInjectionKey,
93
- Ie as darkBase,
94
- Je as darkThemeOverrides,
95
- De as darkToken,
96
- Ae as enUS,
97
- Fe as lightBase,
98
- Ze as lightThemeOverrides,
99
- ye as lightToken,
100
- ve as registerBodenGlobalMethods,
101
- He as renderStepsFinishIcon,
102
- be as useAnimationHook,
103
- ge as useBodenHttpMessage,
104
- ze as useConfirmTip,
105
- je as useMessage,
106
- ce as zhCN
95
+ b as bodenCascaderProps,
96
+ N as bodenDataTableProps,
97
+ ae as bodenSelectProps,
98
+ pe as bodenShapeButtonProps,
99
+ Te as bodenTabsProps,
100
+ Le as configProviderInjectionKey,
101
+ Ze as darkBase,
102
+ oo as darkThemeOverrides,
103
+ je as darkToken,
104
+ ve as enUS,
105
+ Je as lightBase,
106
+ $e as lightThemeOverrides,
107
+ ze as lightToken,
108
+ Ie as registerBodenGlobalMethods,
109
+ Fe as renderStepsFinishIcon,
110
+ ce as useAnimationHook,
111
+ Ce as useBodenHttpMessage,
112
+ Xe as useConfirmTip,
113
+ Ve as useMessage,
114
+ He as zhCN
107
115
  };
@@ -0,0 +1,22 @@
1
+ const i = /^(\d|\.)+$/, n = /(\d|\.)+/;
2
+ function o(r, {
3
+ c: u = 1,
4
+ offset: t = 0,
5
+ attachPx: s = !0
6
+ } = {}) {
7
+ if (typeof r == "number") {
8
+ const e = (r + t) * u;
9
+ return e === 0 ? "0" : `${e}px`;
10
+ } else if (typeof r == "string")
11
+ if (i.test(r)) {
12
+ const e = (Number(r) + t) * u;
13
+ return s ? e === 0 ? "0" : `${e}px` : `${e}`;
14
+ } else {
15
+ const e = n.exec(r);
16
+ return e ? r.replace(n, String((Number(e[0]) + t) * u)) : r;
17
+ }
18
+ return r;
19
+ }
20
+ export {
21
+ o as formatLength
22
+ };
@@ -0,0 +1,2 @@
1
+ import { UnwrapRef } from 'vue';
2
+ export declare function useOmitProps<T extends object, K extends keyof UnwrapRef<T>>(props: T, excludeProps: Record<K, any>): import('vue').ComputedRef<Omit<T, keyof T> & Record<string, any>>;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("../simply-omit.js");function i(t,r){const u=Object.keys(r);return e.computed(()=>s.simplyOmit(e.unref(t),u))}exports.useOmitProps=i;
@@ -0,0 +1 @@
1
+ export declare function simplyOmit<T, K extends keyof T, R extends Record<string, any>>(object: T, keys?: K[], rest?: R): Omit<T, K> & (R extends undefined ? Record<string, unknown> : R);
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function c(e,s=[],n){const i={};return Object.getOwnPropertyNames(e).forEach(t=>{s.includes(t)||(i[t]=e[t])}),Object.assign(i,n)}exports.simplyOmit=c;
@@ -1 +1 @@
1
- "use strict";if(typeof window<"u"){let l=function(){var a=document.body,o=document.getElementById("__BASE6_UI_SVG_ICON_LOCAL__");o||(o=document.createElementNS("http://www.w3.org/2000/svg","svg"),o.style.position="absolute",o.style.width="0",o.style.height="0",o.id="__BASE6_UI_SVG_ICON_LOCAL__",o.setAttribute("xmlns","http://www.w3.org/2000/svg"),o.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),o.innerHTML='<symbol class="icon" viewBox="0 0 1024 1024" id="icon-add"><path d="M480 544v288h64V544h288v-64H544V192h-64v288H192v64h288z" /></symbol><symbol fill="none" viewBox="0 0 48 48" id="icon-logo"><rect width="48" height="48" rx="13.333" fill="currentColor" /><path d="M33.6 35.228a.6.6 0 0 1-.497.262h-3.97a.6.6 0 0 1-.497-.937l4.91-7.232a.6.6 0 0 0-.497-.937H10.6a.6.6 0 0 1-.6-.6v-3.347a.6.6 0 0 1 .6-.6h22.6a.6.6 0 0 0 .497-.937l-5.061-7.453a.6.6 0 0 1 .496-.937h3.971a.6.6 0 0 1 .496.263l7.398 10.89a.6.6 0 0 1 0 .674l-7.398 10.89Zm-9.842-16.215a.6.6 0 0 1-.49-.256l-1.001-1.426a.6.6 0 0 0-.491-.255H10.6a.6.6 0 0 1-.6-.6V13.11a.6.6 0 0 1 .6-.6h13.402a.6.6 0 0 1 .491.256l3.713 5.303a.6.6 0 0 1-.491.944h-3.957Zm-.49 10.23a.6.6 0 0 1 .49-.256h3.957a.6.6 0 0 1 .491.945l-3.713 5.303a.6.6 0 0 1-.491.255H10.6a.6.6 0 0 1-.6-.6v-3.366a.6.6 0 0 1 .6-.6h11.176a.6.6 0 0 0 .491-.255l1-1.426Z" fill="#fff" /></symbol><symbol fill="none" viewBox="0 0 25 25" id="icon-progress-default"><path d="M4.69 21.109v-5.845a.819.819 0 0 1 1.636 0v5.845a.818.818 0 1 1-1.636 0Zm4.675 0v-9.351a.819.819 0 0 1 1.637 0v9.35a.818.818 0 0 1-1.637 0Zm4.675 0v-5.845a.818.818 0 0 1 1.637 0v5.845a.818.818 0 0 1-1.636 0Zm4.676 0v-9.351a.818.818 0 0 1 1.636 0v9.35a.818.818 0 0 1-1.636 0ZM20.19 4.106a.819.819 0 0 1 1.023 1.278L15.37 10.06a.818.818 0 0 1-1.002.014l-4.235-3.176-5.373 3.225a.819.819 0 0 1-.841-1.404l5.843-3.506.11-.056a.819.819 0 0 1 .802.102l4.168 3.126 5.35-4.28Z" fill="#fff" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-arrow-down"><path d="m512 594.752 233.344-233.408 45.312 45.312L512 685.248 233.344 406.656l45.312-45.312L512 594.752z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-arrow-top"><path d="m512 429.248 233.344 233.408 45.248-45.312L512 338.752 233.344 617.344l45.312 45.312L512 429.248z" /></symbol><symbol fill="none" viewBox="0 0 20 20" id="icon-layout-lang"><path d="M10 1.041a8.958 8.958 0 0 1 2.18 17.648v.001h-.003A8.96 8.96 0 1 1 10 1.041ZM7.719 2.635a7.716 7.716 0 0 0-5.35 6.288c.525.385 1.165.676 1.874.676.554 0 1.032.025 1.433.1.403.076.773.208 1.074.454.625.512.716 1.314.716 2.139 0 .849.003 1.207.048 1.512.044.292.13.543.352 1.18.251.722.42 1.6.018 2.426a7.708 7.708 0 0 0 3.535.165c.422-.674.61-1.188.678-1.584a1.953 1.953 0 0 0-.117-1.103c-.065-.164-.142-.318-.23-.492-.084-.164-.184-.36-.258-.563-.165-.45-.214-.965.09-1.549.218-.416.532-.658.91-.777.32-.1.683-.108.947-.12.562-.026 1.174-.072 1.925-.612.81-.582 1.623-.657 2.337-.488.003-.096.009-.192.009-.288a7.672 7.672 0 0 0-1.492-4.554c-.542.123-1.107.4-1.524.939-.677.876-1.404 1.416-2.14 1.633-.752.22-1.46.089-2.026-.278-.889-.575-.957-1.392-1.03-1.884-.039-.258-.074-.415-.143-.543-.058-.108-.165-.237-.428-.365-.688-.334-1.064-.957-1.178-1.617a2.798 2.798 0 0 1-.03-.695Zm9.835 8.904c-.464-.148-.954-.112-1.46.252-1.045.751-1.952.815-2.597.845-.34.015-.504.023-.63.062-.067.021-.115.048-.176.165-.106.203-.098.34-.024.54.044.122.11.252.199.429.084.167.187.372.276.599.186.472.312 1.047.189 1.772a4.394 4.394 0 0 1-.246.86 7.719 7.719 0 0 0 4.47-5.524ZM2.3 10.354a7.71 7.71 0 0 0 4.403 6.613c.247-.406.216-.898-.019-1.57-.21-.605-.343-.976-.408-1.408-.063-.42-.06-.89-.06-1.697 0-.83-.126-1.063-.258-1.172-.08-.064-.225-.138-.512-.192-.289-.054-.677-.08-1.204-.08-.73 0-1.384-.204-1.942-.495ZM10 2.292c-.327 0-.649.022-.965.062a1.717 1.717 0 0 0-.056.762c.058.335.227.577.494.706.47.229.784.531.98.895.185.341.242.696.28.954.08.544.112.786.473 1.02.266.172.6.242.994.126.408-.12.932-.457 1.504-1.197a3.746 3.746 0 0 1 1.61-1.202 7.68 7.68 0 0 0-5.313-2.126Z" fill="currentColor" /></symbol><symbol fill="none" viewBox="0 0 16 16" id="icon-layout-logout"><path d="M2.667 4v8" stroke="currentColor" stroke-linecap="round" /><path d="M5.333 8h8M8 5.333S5.333 7.297 5.333 8C5.333 8.703 8 10.667 8 10.667" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" /></symbol><symbol fill="none" viewBox="0 0 20 20" id="icon-layout-theme"><path d="M14.166 10a4.167 4.167 0 1 1-8.333 0 4.167 4.167 0 0 1 8.333 0Z" stroke="currentColor" stroke-width="1.25" /><path d="M10 1.666v1.25m0 14.167v1.25m5.892-2.44-.884-.885M4.991 4.99l-.884-.883m14.226 5.892h-1.25M2.917 10h-1.25m14.226-5.892-.884.883M4.99 15.008l-.884.884" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" /></symbol><symbol fill="none" viewBox="0 0 16 16" id="icon-layout-user-center"><path fill-rule="evenodd" clip-rule="evenodd" d="M8 .833a3.167 3.167 0 1 0 0 6.334A3.167 3.167 0 0 0 8 .833ZM5.833 4a2.167 2.167 0 1 1 4.334 0 2.167 2.167 0 0 1-4.334 0ZM8 8.167c-1.36 0-2.615.314-3.548.847-.919.525-1.619 1.326-1.619 2.32 0 .993.7 1.794 1.619 2.32.933.532 2.188.846 3.548.846 1.36 0 2.615-.314 3.548-.847.919-.525 1.619-1.326 1.619-2.32 0-.993-.7-1.794-1.62-2.32-.932-.532-2.188-.846-3.547-.846Zm-4.167 3.167c0-.48.345-1.012 1.115-1.452.756-.432 1.834-.715 3.052-.715s2.296.283 3.052.715c.77.44 1.115.972 1.115 1.452 0 .479-.345 1.01-1.115 1.451-.756.432-1.834.715-3.052.715s-2.296-.283-3.052-.715c-.77-.44-1.115-.972-1.115-1.451Z" fill="currentColor" /></symbol><symbol fill="none" viewBox="0 0 32 32" id="icon-layout-user-dark"><rect width="32" height="32" rx="16" fill="#4C4C4F" /><path d="M16 16a4 4 0 1 0 0-8 4 4 0 0 0 0 8ZM16 17.332a6.007 6.007 0 0 0-6 6c0 .369.299.667.667.667h10.666a.667.667 0 0 0 .667-.666 6.007 6.007 0 0 0-6-6Z" fill="#fff" fill-opacity=".7" /></symbol><symbol fill="none" viewBox="0 0 32 32" id="icon-layout-user-light"><rect width="32" height="32" rx="16" fill="#CAD3E2" /><path d="M16 16a4 4 0 1 0 0-8 4 4 0 0 0 0 8ZM16 17.332a6.007 6.007 0 0 0-6 6c0 .369.299.667.667.667h10.666a.667.667 0 0 0 .667-.666 6.007 6.007 0 0 0-6-6Z" fill="#56647A" /></symbol><symbol fill="none" viewBox="0 0 32 32" id="icon-logo-base-dark"><rect width="32" height="32" rx="8.889" fill="#3693FF" /><path d="M22.399 23.485a.4.4 0 0 1-.33.175H19.42a.4.4 0 0 1-.331-.624l3.273-4.822a.4.4 0 0 0-.33-.625H7.065a.4.4 0 0 1-.4-.4v-2.231a.4.4 0 0 1 .4-.4h15.067a.4.4 0 0 0 .33-.625L19.09 8.965a.4.4 0 0 1 .33-.625h2.648a.4.4 0 0 1 .331.175l4.932 7.26a.4.4 0 0 1 0 .45l-4.932 7.26Zm-6.56-10.81a.4.4 0 0 1-.328-.17l-.667-.95a.4.4 0 0 0-.327-.171H7.066a.4.4 0 0 1-.4-.4V8.74c0-.221.18-.4.4-.4h8.935a.4.4 0 0 1 .327.17l2.476 3.536a.4.4 0 0 1-.328.63h-2.638Zm-.328 6.82a.4.4 0 0 1 .327-.17h2.638a.4.4 0 0 1 .328.63l-2.476 3.535a.4.4 0 0 1-.327.17H7.066a.4.4 0 0 1-.4-.4v-2.244c0-.22.18-.4.4-.4h7.45a.4.4 0 0 0 .328-.17l.667-.95Z" fill="#fff" fill-opacity=".9" /></symbol><symbol fill="none" viewBox="0 0 32 32" id="icon-logo-base"><rect width="32" height="32" rx="8.889" fill="#0151FF" /><path d="M22.4 23.485a.4.4 0 0 1-.331.175h-2.647a.4.4 0 0 1-.331-.624l3.273-4.822a.4.4 0 0 0-.331-.625H7.067a.4.4 0 0 1-.4-.4v-2.231a.4.4 0 0 1 .4-.4h15.067a.4.4 0 0 0 .33-.625l-3.373-4.968a.4.4 0 0 1 .33-.625h2.648a.4.4 0 0 1 .33.175l4.932 7.26a.4.4 0 0 1 0 .45l-4.931 7.26Zm-6.561-10.81a.4.4 0 0 1-.328-.17l-.666-.95a.4.4 0 0 0-.328-.171h-7.45a.4.4 0 0 1-.4-.4V8.74c0-.221.179-.4.4-.4H16a.4.4 0 0 1 .328.17l2.475 3.536a.4.4 0 0 1-.327.63h-2.638Zm-.328 6.82a.4.4 0 0 1 .328-.17h2.638a.4.4 0 0 1 .327.63L16.33 23.49a.4.4 0 0 1-.328.17H7.067a.4.4 0 0 1-.4-.4v-2.244c0-.22.179-.4.4-.4h7.45a.4.4 0 0 0 .328-.17l.666-.95Z" fill="#fff" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-operate-add"><path d="M480 544v288h64V544h288v-64H544V192h-64v288H192v64h288z" /></symbol><symbol fill="none" viewBox="0 0 12 10" id="icon-operate-checked"><path d="M4.5 9.414.086 5 1.5 3.586l3 3 6-6L11.914 2 4.5 9.414Z" fill="currentColor" /></symbol><symbol fill="none" viewBox="0 0 40 40" id="icon-operate-close-large"><path d="M29.9 29.9 10.1 10.1M10.1 29.899l19.8-19.8" stroke="currentColor" stroke-width="2.4" stroke-linejoin="round" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-operate-close"><path d="m300.8 240.448 211.2 211.2 211.2-211.2 60.352 60.352-211.2 211.2 211.2 211.2-60.352 60.352-211.2-211.2-211.2 211.2-60.288-60.352 211.2-211.2-211.2-211.2 60.352-60.352z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-operate-minus"><path d="M832 544H192v-64h640v64z" /></symbol><symbol fill="none" viewBox="0 0 26 22" id="icon-operate-more-bar"><path d="M.2 1.4h25.6M.2 11h25.6M.2 20.6h25.6" stroke="currentColor" stroke-width="2.4" stroke-linejoin="round" /></symbol>',a.insertBefore(o,a.lastChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",l):l()}
1
+ "use strict";if(typeof window<"u"){let l=function(){var a=document.body,o=document.getElementById("__BASE6_UI_SVG_ICON_LOCAL__");o||(o=document.createElementNS("http://www.w3.org/2000/svg","svg"),o.style.position="absolute",o.style.width="0",o.style.height="0",o.id="__BASE6_UI_SVG_ICON_LOCAL__",o.setAttribute("xmlns","http://www.w3.org/2000/svg"),o.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),o.innerHTML='<symbol class="icon" viewBox="0 0 1024 1024" id="icon-add"><path d="M480 544v288h64V544h288v-64H544V192h-64v288H192v64h288z" /></symbol><symbol fill="none" viewBox="0 0 48 48" id="icon-logo"><rect width="48" height="48" rx="13.333" fill="currentColor" /><path d="M33.6 35.228a.6.6 0 0 1-.497.262h-3.97a.6.6 0 0 1-.497-.937l4.91-7.232a.6.6 0 0 0-.497-.937H10.6a.6.6 0 0 1-.6-.6v-3.347a.6.6 0 0 1 .6-.6h22.6a.6.6 0 0 0 .497-.937l-5.061-7.453a.6.6 0 0 1 .496-.937h3.971a.6.6 0 0 1 .496.263l7.398 10.89a.6.6 0 0 1 0 .674l-7.398 10.89Zm-9.842-16.215a.6.6 0 0 1-.49-.256l-1.001-1.426a.6.6 0 0 0-.491-.255H10.6a.6.6 0 0 1-.6-.6V13.11a.6.6 0 0 1 .6-.6h13.402a.6.6 0 0 1 .491.256l3.713 5.303a.6.6 0 0 1-.491.944h-3.957Zm-.49 10.23a.6.6 0 0 1 .49-.256h3.957a.6.6 0 0 1 .491.945l-3.713 5.303a.6.6 0 0 1-.491.255H10.6a.6.6 0 0 1-.6-.6v-3.366a.6.6 0 0 1 .6-.6h11.176a.6.6 0 0 0 .491-.255l1-1.426Z" fill="#fff" /></symbol><symbol fill="none" viewBox="0 0 25 25" id="icon-progress-default"><path d="M4.69 21.109v-5.845a.819.819 0 0 1 1.636 0v5.845a.818.818 0 1 1-1.636 0Zm4.675 0v-9.351a.819.819 0 0 1 1.637 0v9.35a.818.818 0 0 1-1.637 0Zm4.675 0v-5.845a.818.818 0 0 1 1.637 0v5.845a.818.818 0 0 1-1.636 0Zm4.676 0v-9.351a.818.818 0 0 1 1.636 0v9.35a.818.818 0 0 1-1.636 0ZM20.19 4.106a.819.819 0 0 1 1.023 1.278L15.37 10.06a.818.818 0 0 1-1.002.014l-4.235-3.176-5.373 3.225a.819.819 0 0 1-.841-1.404l5.843-3.506.11-.056a.819.819 0 0 1 .802.102l4.168 3.126 5.35-4.28Z" fill="#fff" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-arrow-down"><path d="m512 594.752 233.344-233.408 45.312 45.312L512 685.248 233.344 406.656l45.312-45.312L512 594.752z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-arrow-top"><path d="m512 429.248 233.344 233.408 45.248-45.312L512 338.752 233.344 617.344l45.312 45.312L512 429.248z" /></symbol><symbol fill="none" viewBox="0 0 20 20" id="icon-layout-lang"><path d="M10 1.041a8.958 8.958 0 0 1 2.18 17.648v.001h-.003A8.96 8.96 0 1 1 10 1.041ZM7.719 2.635a7.716 7.716 0 0 0-5.35 6.288c.525.385 1.165.676 1.874.676.554 0 1.032.025 1.433.1.403.076.773.208 1.074.454.625.512.716 1.314.716 2.139 0 .849.003 1.207.048 1.512.044.292.13.543.352 1.18.251.722.42 1.6.018 2.426a7.708 7.708 0 0 0 3.535.165c.422-.674.61-1.188.678-1.584a1.953 1.953 0 0 0-.117-1.103c-.065-.164-.142-.318-.23-.492-.084-.164-.184-.36-.258-.563-.165-.45-.214-.965.09-1.549.218-.416.532-.658.91-.777.32-.1.683-.108.947-.12.562-.026 1.174-.072 1.925-.612.81-.582 1.623-.657 2.337-.488.003-.096.009-.192.009-.288a7.672 7.672 0 0 0-1.492-4.554c-.542.123-1.107.4-1.524.939-.677.876-1.404 1.416-2.14 1.633-.752.22-1.46.089-2.026-.278-.889-.575-.957-1.392-1.03-1.884-.039-.258-.074-.415-.143-.543-.058-.108-.165-.237-.428-.365-.688-.334-1.064-.957-1.178-1.617a2.798 2.798 0 0 1-.03-.695Zm9.835 8.904c-.464-.148-.954-.112-1.46.252-1.045.751-1.952.815-2.597.845-.34.015-.504.023-.63.062-.067.021-.115.048-.176.165-.106.203-.098.34-.024.54.044.122.11.252.199.429.084.167.187.372.276.599.186.472.312 1.047.189 1.772a4.394 4.394 0 0 1-.246.86 7.719 7.719 0 0 0 4.47-5.524ZM2.3 10.354a7.71 7.71 0 0 0 4.403 6.613c.247-.406.216-.898-.019-1.57-.21-.605-.343-.976-.408-1.408-.063-.42-.06-.89-.06-1.697 0-.83-.126-1.063-.258-1.172-.08-.064-.225-.138-.512-.192-.289-.054-.677-.08-1.204-.08-.73 0-1.384-.204-1.942-.495ZM10 2.292c-.327 0-.649.022-.965.062a1.717 1.717 0 0 0-.056.762c.058.335.227.577.494.706.47.229.784.531.98.895.185.341.242.696.28.954.08.544.112.786.473 1.02.266.172.6.242.994.126.408-.12.932-.457 1.504-1.197a3.746 3.746 0 0 1 1.61-1.202 7.68 7.68 0 0 0-5.313-2.126Z" fill="currentColor" /></symbol><symbol fill="none" viewBox="0 0 16 16" id="icon-layout-logout"><path d="M2.667 4v8" stroke="currentColor" stroke-linecap="round" /><path d="M5.333 8h8M8 5.333S5.333 7.297 5.333 8C5.333 8.703 8 10.667 8 10.667" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" /></symbol><symbol fill="none" viewBox="0 0 20 20" id="icon-layout-theme-dark"><path d="M17.917 11.733a7.131 7.131 0 0 1-9.649-9.649 8.022 8.022 0 1 0 9.649 9.649Z" stroke="currentColor" stroke-opacity=".7" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round" /></symbol><symbol fill="none" viewBox="0 0 20 20" id="icon-layout-theme"><path d="M14.166 10a4.167 4.167 0 1 1-8.333 0 4.167 4.167 0 0 1 8.333 0Z" stroke="currentColor" stroke-width="1.25" /><path d="M10 1.666v1.25m0 14.167v1.25m5.892-2.44-.884-.885M4.991 4.99l-.884-.883m14.226 5.892h-1.25M2.917 10h-1.25m14.226-5.892-.884.883M4.99 15.008l-.884.884" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" /></symbol><symbol fill="none" viewBox="0 0 16 16" id="icon-layout-user-center"><path fill-rule="evenodd" clip-rule="evenodd" d="M8 .833a3.167 3.167 0 1 0 0 6.334A3.167 3.167 0 0 0 8 .833ZM5.833 4a2.167 2.167 0 1 1 4.334 0 2.167 2.167 0 0 1-4.334 0ZM8 8.167c-1.36 0-2.615.314-3.548.847-.919.525-1.619 1.326-1.619 2.32 0 .993.7 1.794 1.619 2.32.933.532 2.188.846 3.548.846 1.36 0 2.615-.314 3.548-.847.919-.525 1.619-1.326 1.619-2.32 0-.993-.7-1.794-1.62-2.32-.932-.532-2.188-.846-3.547-.846Zm-4.167 3.167c0-.48.345-1.012 1.115-1.452.756-.432 1.834-.715 3.052-.715s2.296.283 3.052.715c.77.44 1.115.972 1.115 1.452 0 .479-.345 1.01-1.115 1.451-.756.432-1.834.715-3.052.715s-2.296-.283-3.052-.715c-.77-.44-1.115-.972-1.115-1.451Z" fill="currentColor" /></symbol><symbol fill="none" viewBox="0 0 32 32" id="icon-layout-user-dark"><rect width="32" height="32" rx="16" fill="#4C4C4F" /><path d="M16 16a4 4 0 1 0 0-8 4 4 0 0 0 0 8ZM16 17.332a6.007 6.007 0 0 0-6 6c0 .369.299.667.667.667h10.666a.667.667 0 0 0 .667-.666 6.007 6.007 0 0 0-6-6Z" fill="#fff" fill-opacity=".7" /></symbol><symbol fill="none" viewBox="0 0 32 32" id="icon-layout-user-light"><rect width="32" height="32" rx="16" fill="#CAD3E2" /><path d="M16 16a4 4 0 1 0 0-8 4 4 0 0 0 0 8ZM16 17.332a6.007 6.007 0 0 0-6 6c0 .369.299.667.667.667h10.666a.667.667 0 0 0 .667-.666 6.007 6.007 0 0 0-6-6Z" fill="#56647A" /></symbol><symbol fill="none" viewBox="0 0 32 32" id="icon-logo-base-dark"><rect width="32" height="32" rx="8.889" fill="#3693FF" /><path d="M22.399 23.485a.4.4 0 0 1-.33.175H19.42a.4.4 0 0 1-.331-.624l3.273-4.822a.4.4 0 0 0-.33-.625H7.065a.4.4 0 0 1-.4-.4v-2.231a.4.4 0 0 1 .4-.4h15.067a.4.4 0 0 0 .33-.625L19.09 8.965a.4.4 0 0 1 .33-.625h2.648a.4.4 0 0 1 .331.175l4.932 7.26a.4.4 0 0 1 0 .45l-4.932 7.26Zm-6.56-10.81a.4.4 0 0 1-.328-.17l-.667-.95a.4.4 0 0 0-.327-.171H7.066a.4.4 0 0 1-.4-.4V8.74c0-.221.18-.4.4-.4h8.935a.4.4 0 0 1 .327.17l2.476 3.536a.4.4 0 0 1-.328.63h-2.638Zm-.328 6.82a.4.4 0 0 1 .327-.17h2.638a.4.4 0 0 1 .328.63l-2.476 3.535a.4.4 0 0 1-.327.17H7.066a.4.4 0 0 1-.4-.4v-2.244c0-.22.18-.4.4-.4h7.45a.4.4 0 0 0 .328-.17l.667-.95Z" fill="#fff" fill-opacity=".9" /></symbol><symbol fill="none" viewBox="0 0 32 32" id="icon-logo-base"><rect width="32" height="32" rx="8.889" fill="#0151FF" /><path d="M22.4 23.485a.4.4 0 0 1-.331.175h-2.647a.4.4 0 0 1-.331-.624l3.273-4.822a.4.4 0 0 0-.331-.625H7.067a.4.4 0 0 1-.4-.4v-2.231a.4.4 0 0 1 .4-.4h15.067a.4.4 0 0 0 .33-.625l-3.373-4.968a.4.4 0 0 1 .33-.625h2.648a.4.4 0 0 1 .33.175l4.932 7.26a.4.4 0 0 1 0 .45l-4.931 7.26Zm-6.561-10.81a.4.4 0 0 1-.328-.17l-.666-.95a.4.4 0 0 0-.328-.171h-7.45a.4.4 0 0 1-.4-.4V8.74c0-.221.179-.4.4-.4H16a.4.4 0 0 1 .328.17l2.475 3.536a.4.4 0 0 1-.327.63h-2.638Zm-.328 6.82a.4.4 0 0 1 .328-.17h2.638a.4.4 0 0 1 .327.63L16.33 23.49a.4.4 0 0 1-.328.17H7.067a.4.4 0 0 1-.4-.4v-2.244c0-.22.179-.4.4-.4h7.45a.4.4 0 0 0 .328-.17l.666-.95Z" fill="#fff" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-operate-add"><path d="M480 544v288h64V544h288v-64H544V192h-64v288H192v64h288z" /></symbol><symbol fill="none" viewBox="0 0 12 10" id="icon-operate-checked"><path d="M4.5 9.414.086 5 1.5 3.586l3 3 6-6L11.914 2 4.5 9.414Z" fill="currentColor" /></symbol><symbol fill="none" viewBox="0 0 40 40" id="icon-operate-close-large"><path d="M29.9 29.9 10.1 10.1M10.1 29.899l19.8-19.8" stroke="currentColor" stroke-width="2.4" stroke-linejoin="round" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-operate-close"><path d="m300.8 240.448 211.2 211.2 211.2-211.2 60.352 60.352-211.2 211.2 211.2 211.2-60.352 60.352-211.2-211.2-211.2 211.2-60.288-60.352 211.2-211.2-211.2-211.2 60.352-60.352z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-operate-minus"><path d="M832 544H192v-64h640v64z" /></symbol><symbol fill="none" viewBox="0 0 26 22" id="icon-operate-more-bar"><path d="M.2 1.4h25.6M.2 11h25.6M.2 20.6h25.6" stroke="currentColor" stroke-width="2.4" stroke-linejoin="round" /></symbol>',a.insertBefore(o,a.lastChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",l):l()}
@@ -0,0 +1,2 @@
1
+ export { default as BodenButtonList } from './src/button-list';
2
+ export { bodenButtonListProps, type BodenButtonListProps, type ButtonOption } from './src/interface';
@@ -0,0 +1,35 @@
1
+ import { DropdownOption } from 'naive-ui';
2
+ import { ButtonOption } from './interface';
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ readonly gap: {
5
+ readonly type: import('vue').PropType<string | number>;
6
+ readonly default: 12;
7
+ };
8
+ readonly buttonOptions: {
9
+ readonly type: import('vue').PropType<ButtonOption[]>;
10
+ readonly default: () => never[];
11
+ };
12
+ readonly onToggleClick: import('vue').PropType<import('./interface').bodenButtonListEmits["toggleClick"]>;
13
+ readonly onToggleSelect: import('vue').PropType<import('./interface').bodenButtonListEmits["toggleSelect"]>;
14
+ }>, {
15
+ cssVarStyle: import('vue').ComputedRef<{
16
+ '--boden-gap': string;
17
+ }>;
18
+ toggleClick: (e: Event, key: string, option: ButtonOption) => void;
19
+ toggleSelect: (option: ButtonOption, dropdownKey: string | number, dropdownOption: DropdownOption) => void;
20
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
21
+ readonly gap: {
22
+ readonly type: import('vue').PropType<string | number>;
23
+ readonly default: 12;
24
+ };
25
+ readonly buttonOptions: {
26
+ readonly type: import('vue').PropType<ButtonOption[]>;
27
+ readonly default: () => never[];
28
+ };
29
+ readonly onToggleClick: import('vue').PropType<import('./interface').bodenButtonListEmits["toggleClick"]>;
30
+ readonly onToggleSelect: import('vue').PropType<import('./interface').bodenButtonListEmits["toggleSelect"]>;
31
+ }>> & Readonly<{}>, {
32
+ readonly gap: string | number;
33
+ readonly buttonOptions: ButtonOption[];
34
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
35
+ export default _default;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("vue"),s=require("naive-ui"),g=require("./interface.js"),d=require("../../button/button.js");require("../../button/interface.js");const a=require("../../shape-button/src/shape-button.js");require("../../shape-button/src/interface.js");;/* empty css */const p=require("../../../node_modules/.pnpm/naive-ui@2.43.1_vue@3.5.22_typescript@5.7.2_/node_modules/naive-ui/es/_utils/css/format-length.js"),u="BodenButtonList",k=r.defineComponent({name:u,props:g.bodenButtonListProps,setup(t){return{cssVarStyle:r.computed(()=>({"--boden-gap":p.formatLength(t.gap)})),toggleClick:(e,o,i)=>{t.onToggleClick&&t.onToggleClick(e,o,i)},toggleSelect:(e,o,i)=>{t.onToggleSelect&&t.onToggleSelect(e,o,i)}}},render(){const{$props:t}=this,n=e=>e.type==="boden-shape-button"?r.createVNode(a.default,r.mergeProps({key:e.key},e.buttonProps,{content:e.content,icon:e.icon,onClick:o=>this.toggleClick(o,e.key,e)}),null):r.createVNode(d.default,r.mergeProps({key:e.key},e.buttonProps,{content:e.content,icon:e.icon,onClick:o=>this.toggleClick(o,e.key,e)}),null),l=e=>e.dropdown?r.createVNode(s.NDropdown,r.mergeProps({key:e.key,placement:"bottom"},e.dropdown,{onSelect:(o,i)=>this.toggleSelect(e,o,i)}),{default:()=>n(e)}):n(e),c=e=>e.tooltip?r.createVNode(s.NTooltip,r.mergeProps({key:e.key,placement:"top"},e.tooltip),{trigger:()=>n(e),default:()=>e.tooltipContent??n(e)}):n(e);return r.createVNode("div",{class:"boden-button-list",style:this.cssVarStyle},[t.buttonOptions.map(e=>e.dropdown?l(e):e.tooltip?c(e):n(e))])}});exports.default=k;
@@ -0,0 +1,48 @@
1
+ import { ExtractPublicPropTypes, PropType, VNode } from 'vue';
2
+ import { DropdownOption, DropdownProps, TooltipProps } from 'naive-ui';
3
+ import { BodenButtonProps } from '../../button';
4
+ import { BodenShapeButtonProps } from '../../shape-button';
5
+ export declare const enum BUTTON_TYPE {
6
+ BODEN_BUTTON = "boden-button",
7
+ BODEN_SHAPE_BUTTON = "boden-shape-button"
8
+ }
9
+ export type CommonButtonOption = {
10
+ key: string;
11
+ type: BUTTON_TYPE.BODEN_BUTTON;
12
+ content?: string;
13
+ icon?: string;
14
+ dropdown?: DropdownProps | boolean;
15
+ tooltip?: TooltipProps | boolean;
16
+ tooltipContent?: string;
17
+ buttonProps?: BodenButtonProps;
18
+ render?: () => VNode;
19
+ };
20
+ export type ShapeButtonOption = {
21
+ key: string;
22
+ type: BUTTON_TYPE.BODEN_SHAPE_BUTTON;
23
+ content?: string;
24
+ icon?: string;
25
+ dropdown?: DropdownProps | boolean;
26
+ tooltip?: TooltipProps | boolean;
27
+ tooltipContent?: string;
28
+ buttonProps?: BodenShapeButtonProps;
29
+ render?: () => VNode;
30
+ };
31
+ export type ButtonOption = ShapeButtonOption | CommonButtonOption;
32
+ export declare const bodenButtonListProps: {
33
+ readonly gap: {
34
+ readonly type: PropType<string | number>;
35
+ readonly default: 12;
36
+ };
37
+ readonly buttonOptions: {
38
+ readonly type: PropType<ButtonOption[]>;
39
+ readonly default: () => never[];
40
+ };
41
+ readonly onToggleClick: PropType<bodenButtonListEmits["toggleClick"]>;
42
+ readonly onToggleSelect: PropType<bodenButtonListEmits["toggleSelect"]>;
43
+ };
44
+ export type BodenButtonListProps = ExtractPublicPropTypes<typeof bodenButtonListProps>;
45
+ export type bodenButtonListEmits = {
46
+ 'toggleClick': (event: Event, key: string, option: ButtonOption) => void;
47
+ 'toggleSelect': (option: ButtonOption, key: string | number, dropdownOption: DropdownOption) => void;
48
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t={gap:{type:[Number,String],default:12},buttonOptions:{type:Array,default:()=>[]},onToggleClick:Function,onToggleSelect:Function};exports.bodenButtonListProps=t;