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 @@
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,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,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
+ };