base6-ui 2.0.25 → 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 (138) 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/config/themes/token/dark.d.ts +4 -0
  14. package/dist/config/themes/token/light.d.ts +5 -0
  15. package/dist/index.css +1 -1
  16. package/dist/index.umd.js +3 -3
  17. package/es/_utils/composable/use-omit-props.d.ts +2 -0
  18. package/es/_utils/composable/use-omit-props.mjs +12 -0
  19. package/es/_utils/simply-omit.d.ts +1 -0
  20. package/es/_utils/simply-omit.mjs +9 -0
  21. package/es/_virtual/virtual_svg-icons-register.mjs +1 -1
  22. package/es/components/button-list/index.d.ts +2 -0
  23. package/es/components/button-list/src/button-list.d.ts +35 -0
  24. package/es/components/button-list/src/button-list.mjs +63 -0
  25. package/es/components/button-list/src/interface.d.ts +48 -0
  26. package/es/components/button-list/src/interface.mjs +12 -0
  27. package/es/components/data-table/data-table.d.ts +2 -7094
  28. package/es/components/data-table/data-table.mjs +34 -29
  29. package/es/components/data-table/interface.d.ts +26 -2
  30. package/es/components/data-table/interface.mjs +17 -7
  31. package/es/components/dialog/index.vue.mjs +3 -3
  32. package/es/components/dialog/options.mjs +1 -1
  33. package/es/components/global-header/index.vue.mjs +4 -3
  34. package/es/components/index.d.ts +2 -0
  35. package/es/components/layout/components/{WrapHeader.vue2.mjs → WrapHeader.vue.mjs} +1 -1
  36. package/es/components/layout/index.vue2.mjs +1 -1
  37. package/es/components/shape-button/index.d.ts +2 -0
  38. package/es/components/shape-button/src/cssVar.d.ts +7 -0
  39. package/es/components/shape-button/src/cssVar.mjs +65 -0
  40. package/es/components/shape-button/src/interface.d.ts +667 -0
  41. package/es/components/shape-button/src/interface.mjs +30 -0
  42. package/es/components/shape-button/src/shape-button.d.ts +4 -0
  43. package/es/components/shape-button/src/shape-button.mjs +52 -0
  44. package/es/components/system-actions/index.vue.mjs +2 -2
  45. package/es/components/system-actions/index.vue2.mjs +43 -48
  46. package/es/config/themes/components/baseComponent/light.mjs +15 -14
  47. package/es/config/themes/components/card/dark.mjs +1 -1
  48. package/es/config/themes/components/card/light.mjs +3 -2
  49. package/es/config/themes/components/checkbox/light.mjs +3 -2
  50. package/es/config/themes/components/dataTable/dark.mjs +3 -3
  51. package/es/config/themes/components/dataTable/light.mjs +3 -2
  52. package/es/config/themes/components/divider/light.mjs +4 -3
  53. package/es/config/themes/components/inputNumber/light.mjs +7 -5
  54. package/es/config/themes/components/layout/light.mjs +3 -2
  55. package/es/config/themes/components/popover/light.mjs +3 -2
  56. package/es/config/themes/components/radio/light.mjs +3 -2
  57. package/es/config/themes/components/switch/light.mjs +5 -4
  58. package/es/config/themes/index.mjs +8 -6
  59. package/es/config/themes/token/dark.d.ts +4 -0
  60. package/es/config/themes/token/dark.mjs +8 -3
  61. package/es/config/themes/token/light.d.ts +5 -0
  62. package/es/config/themes/token/light.mjs +10 -5
  63. package/es/globalMethods/modules/confirmTip.mjs +12 -11
  64. package/es/index.css +1 -1
  65. package/es/index.mjs +104 -96
  66. package/es/locale/lang/en-us.mjs +1 -1
  67. package/es/locale/lang/zh-cn.mjs +1 -1
  68. package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs +6 -0
  69. package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/_internal/getTag.mjs +6 -0
  70. package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/_internal/tags.mjs +25 -0
  71. package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/object/cloneDeep.mjs +7 -0
  72. package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/object/cloneDeepWith.mjs +127 -0
  73. package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/predicate/isPrimitive.mjs +6 -0
  74. package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/predicate/isTypedArray.mjs +6 -0
  75. 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
  76. package/lib/_utils/composable/use-omit-props.d.ts +2 -0
  77. package/lib/_utils/composable/use-omit-props.js +1 -0
  78. package/lib/_utils/simply-omit.d.ts +1 -0
  79. package/lib/_utils/simply-omit.js +1 -0
  80. package/lib/_virtual/virtual_svg-icons-register.js +1 -1
  81. package/lib/components/button-list/index.d.ts +2 -0
  82. package/lib/components/button-list/src/button-list.d.ts +35 -0
  83. package/lib/components/button-list/src/button-list.js +1 -0
  84. package/lib/components/button-list/src/interface.d.ts +48 -0
  85. package/lib/components/button-list/src/interface.js +1 -0
  86. package/lib/components/data-table/data-table.d.ts +2 -7094
  87. package/lib/components/data-table/data-table.js +1 -1
  88. package/lib/components/data-table/interface.d.ts +26 -2
  89. package/lib/components/data-table/interface.js +1 -1
  90. package/lib/components/dialog/index.vue.js +1 -1
  91. package/lib/components/dialog/options.js +1 -1
  92. package/lib/components/global-header/index.vue.js +1 -1
  93. package/lib/components/index.d.ts +2 -0
  94. package/lib/components/layout/components/WrapHeader.vue.js +1 -0
  95. package/lib/components/layout/index.vue2.js +1 -1
  96. package/lib/components/shape-button/index.d.ts +2 -0
  97. package/lib/components/shape-button/src/cssVar.d.ts +7 -0
  98. package/lib/components/shape-button/src/cssVar.js +1 -0
  99. package/lib/components/shape-button/src/interface.d.ts +667 -0
  100. package/lib/components/shape-button/src/interface.js +1 -0
  101. package/lib/components/shape-button/src/shape-button.d.ts +4 -0
  102. package/lib/components/shape-button/src/shape-button.js +1 -0
  103. package/lib/components/system-actions/index.vue.js +1 -1
  104. package/lib/components/system-actions/index.vue2.js +1 -1
  105. package/lib/config/themes/components/baseComponent/light.js +1 -1
  106. package/lib/config/themes/components/card/dark.js +1 -1
  107. package/lib/config/themes/components/card/light.js +1 -1
  108. package/lib/config/themes/components/checkbox/light.js +1 -1
  109. package/lib/config/themes/components/dataTable/dark.js +1 -1
  110. package/lib/config/themes/components/dataTable/light.js +1 -1
  111. package/lib/config/themes/components/divider/light.js +1 -1
  112. package/lib/config/themes/components/inputNumber/light.js +1 -1
  113. package/lib/config/themes/components/layout/light.js +1 -1
  114. package/lib/config/themes/components/popover/light.js +1 -1
  115. package/lib/config/themes/components/radio/light.js +1 -1
  116. package/lib/config/themes/components/switch/light.js +1 -1
  117. package/lib/config/themes/index.js +1 -1
  118. package/lib/config/themes/token/dark.d.ts +4 -0
  119. package/lib/config/themes/token/dark.js +1 -1
  120. package/lib/config/themes/token/light.d.ts +5 -0
  121. package/lib/config/themes/token/light.js +1 -1
  122. package/lib/globalMethods/modules/confirmTip.js +1 -1
  123. package/lib/index.css +1 -1
  124. package/lib/index.js +1 -1
  125. package/lib/locale/lang/en-us.js +1 -1
  126. package/lib/locale/lang/zh-cn.js +1 -1
  127. package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/_internal/getSymbols.js +1 -0
  128. package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/_internal/getTag.js +1 -0
  129. package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/_internal/tags.js +1 -0
  130. package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/object/cloneDeep.js +1 -0
  131. package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/object/cloneDeepWith.js +1 -0
  132. package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/predicate/isPrimitive.js +1 -0
  133. package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/predicate/isTypedArray.js +1 -0
  134. 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
  135. package/package.json +1 -1
  136. package/es/components/system-actions/cssVar.mjs +0 -65
  137. package/lib/components/layout/components/WrapHeader.vue2.js +0 -1
  138. package/lib/components/system-actions/cssVar.js +0 -1
@@ -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,12 @@
1
+ import { computed as o, unref as m } from "vue";
2
+ import { simplyOmit as p } from "../simply-omit.mjs";
3
+ function n(r, e) {
4
+ const t = Object.keys(e);
5
+ return o(() => p(
6
+ m(r),
7
+ t
8
+ ));
9
+ }
10
+ export {
11
+ n as useOmitProps
12
+ };
@@ -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,9 @@
1
+ function o(e, n = [], c) {
2
+ const s = {};
3
+ return Object.getOwnPropertyNames(e).forEach((t) => {
4
+ n.includes(t) || (s[t] = e[t]);
5
+ }), Object.assign(s, c);
6
+ }
7
+ export {
8
+ o as simplyOmit
9
+ };
@@ -1,7 +1,7 @@
1
1
  if (typeof window < "u") {
2
2
  let l = function() {
3
3
  var a = document.body, o = document.getElementById("__BASE6_UI_SVG_ICON_LOCAL__");
4
- 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);
4
+ 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);
5
5
  };
6
6
  document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", l) : l();
7
7
  }
@@ -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,63 @@
1
+ import { defineComponent as s, createVNode as i, computed as g, mergeProps as l } from "vue";
2
+ import { NDropdown as d, NTooltip as m } from "naive-ui";
3
+ import { bodenButtonListProps as a } from "./interface.mjs";
4
+ import f from "../../button/button.mjs";
5
+ import "../../button/interface.mjs";
6
+ import k from "../../shape-button/src/shape-button.mjs";
7
+ import "../../shape-button/src/interface.mjs";
8
+ /* empty css */
9
+ import { formatLength as y } from "../../../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";
10
+ const C = "BodenButtonList", u = /* @__PURE__ */ s({
11
+ name: C,
12
+ props: a,
13
+ setup(r) {
14
+ return {
15
+ cssVarStyle: g(() => ({
16
+ "--boden-gap": y(r.gap)
17
+ })),
18
+ toggleClick: (e, o, n) => {
19
+ r.onToggleClick && r.onToggleClick(e, o, n);
20
+ },
21
+ toggleSelect: (e, o, n) => {
22
+ r.onToggleSelect && r.onToggleSelect(e, o, n);
23
+ }
24
+ };
25
+ },
26
+ render() {
27
+ const {
28
+ $props: r
29
+ } = this, t = (e) => e.type === "boden-shape-button" ? i(k, l({
30
+ key: e.key
31
+ }, e.buttonProps, {
32
+ content: e.content,
33
+ icon: e.icon,
34
+ onClick: (o) => this.toggleClick(o, e.key, e)
35
+ }), null) : i(f, l({
36
+ key: e.key
37
+ }, e.buttonProps, {
38
+ content: e.content,
39
+ icon: e.icon,
40
+ onClick: (o) => this.toggleClick(o, e.key, e)
41
+ }), null), c = (e) => e.dropdown ? i(d, l({
42
+ key: e.key,
43
+ placement: "bottom"
44
+ }, e.dropdown, {
45
+ onSelect: (o, n) => this.toggleSelect(e, o, n)
46
+ }), {
47
+ default: () => t(e)
48
+ }) : t(e), p = (e) => e.tooltip ? i(m, l({
49
+ key: e.key,
50
+ placement: "top"
51
+ }, e.tooltip), {
52
+ trigger: () => t(e),
53
+ default: () => e.tooltipContent ?? t(e)
54
+ }) : t(e);
55
+ return i("div", {
56
+ class: "boden-button-list",
57
+ style: this.cssVarStyle
58
+ }, [r.buttonOptions.map((e) => e.dropdown ? c(e) : e.tooltip ? p(e) : t(e))]);
59
+ }
60
+ });
61
+ export {
62
+ u as default
63
+ };
@@ -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,12 @@
1
+ const t = {
2
+ gap: { type: [Number, String], default: 12 },
3
+ buttonOptions: {
4
+ type: Array,
5
+ default: () => []
6
+ },
7
+ onToggleClick: Function,
8
+ onToggleSelect: Function
9
+ };
10
+ export {
11
+ t as bodenButtonListProps
12
+ };