base6-ui 2.0.34 → 2.0.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (235) hide show
  1. package/dist/_internal/icons/add-circle.d.ts +2 -0
  2. package/dist/_internal/icons/check.d.ts +2 -0
  3. package/dist/_internal/icons/close.d.ts +2 -0
  4. package/dist/_internal/icons/index.d.ts +12 -0
  5. package/dist/_internal/icons/lang.d.ts +2 -0
  6. package/dist/_internal/icons/logout.d.ts +2 -0
  7. package/dist/_internal/icons/right.d.ts +2 -0
  8. package/dist/_internal/icons/switch-user.d.ts +2 -0
  9. package/dist/_internal/icons/theme-dark.d.ts +2 -0
  10. package/dist/_internal/icons/theme-light.d.ts +2 -0
  11. package/dist/_internal/icons/user-center.d.ts +2 -0
  12. package/dist/_internal/icons/user-dark.d.ts +2 -0
  13. package/dist/_internal/icons/user-light.d.ts +2 -0
  14. package/{es/hooks/useNaiveConfigProvideContext.d.ts → dist/_mixins/use-boden-config-provide-context.d.ts} +1 -1
  15. package/dist/components/business-ui/index.d.ts +0 -0
  16. package/dist/components/business-ui/tenant-dialog/index.d.ts +1 -0
  17. package/dist/components/business-ui/tenant-dialog/join-tenant-dialog/index.d.ts +1 -0
  18. package/dist/components/business-ui/tenant-dialog/join-tenant-dialog/src/index.d.ts +46 -0
  19. package/dist/components/business-ui/tenant-dialog/join-tenant-dialog/src/interface.d.ts +16 -0
  20. package/dist/components/business-ui/tenant-dialog/join-tenant-dialog/src/styles/index.cssr.d.ts +2 -0
  21. package/dist/components/business-ui/tenant-dialog/switch-tenant-dialog/index.d.ts +1 -0
  22. package/dist/components/business-ui/tenant-dialog/switch-tenant-dialog/src/index.d.ts +77 -0
  23. package/dist/components/business-ui/tenant-dialog/switch-tenant-dialog/src/interface.d.ts +32 -0
  24. package/dist/components/business-ui/tenant-dialog/switch-tenant-dialog/src/styles/index.cssr.d.ts +2 -0
  25. package/dist/components/business-ui/tenant-dialog/switch-tenant-dialog/src/tenant-item.d.ts +32 -0
  26. package/dist/components/cascader/src/cascader.d.ts +5 -5
  27. package/dist/components/global-header/index.vue.d.ts +4 -0
  28. package/dist/components/layout/aside-menu/aside-menu.d.ts +6 -6
  29. package/dist/components/select/src/select.d.ts +5 -5
  30. package/dist/components/slider/src/slider.vue.d.ts +1 -1
  31. package/dist/components/system-actions/index.vue.d.ts +4 -0
  32. package/dist/components/system-actions/interface.d.ts +16 -0
  33. package/dist/components/tabs/src/tabs.d.ts +2 -2
  34. package/dist/config/themes/index.d.ts +0 -1
  35. package/dist/index.css +1 -1
  36. package/dist/index.d.ts +1 -0
  37. package/dist/index.umd.js +8 -8
  38. package/dist/locale/lang/en-us.d.ts +2 -0
  39. package/es/_constant/base.mjs +4 -2
  40. package/es/_internal/icons/add-circle.d.ts +2 -0
  41. package/es/_internal/icons/add-circle.mjs +19 -0
  42. package/es/_internal/icons/check.d.ts +2 -0
  43. package/es/_internal/icons/check.mjs +19 -0
  44. package/es/_internal/icons/close.d.ts +2 -0
  45. package/es/_internal/icons/close.mjs +22 -0
  46. package/es/_internal/icons/index.d.ts +12 -0
  47. package/es/_internal/icons/lang.d.ts +2 -0
  48. package/es/_internal/icons/lang.mjs +19 -0
  49. package/es/_internal/icons/logout.d.ts +2 -0
  50. package/es/_internal/icons/logout.mjs +30 -0
  51. package/es/_internal/icons/right.d.ts +2 -0
  52. package/es/_internal/icons/{arrow-right.mjs → right.mjs} +6 -6
  53. package/es/_internal/icons/switch-user.d.ts +2 -0
  54. package/es/_internal/icons/switch-user.mjs +46 -0
  55. package/es/_internal/icons/theme-dark.d.ts +2 -0
  56. package/es/_internal/icons/theme-dark.mjs +23 -0
  57. package/es/_internal/icons/theme-light.d.ts +2 -0
  58. package/es/_internal/icons/theme-light.mjs +25 -0
  59. package/es/_internal/icons/user-center.d.ts +2 -0
  60. package/es/_internal/icons/user-center.mjs +26 -0
  61. package/es/_internal/icons/user-dark.d.ts +2 -0
  62. package/es/_internal/icons/user-dark.mjs +29 -0
  63. package/es/_internal/icons/user-light.d.ts +2 -0
  64. package/es/_internal/icons/user-light.mjs +27 -0
  65. package/{lib/hooks/useNaiveConfigProvideContext.d.ts → es/_mixins/use-boden-config-provide-context.d.ts} +1 -1
  66. package/es/_mixins/use-boden-config-provide-context.mjs +8 -0
  67. package/es/_virtual/virtual_svg-icons-register.mjs +1 -1
  68. package/es/components/business-ui/index.d.ts +0 -0
  69. package/es/components/business-ui/tenant-dialog/index.d.ts +1 -0
  70. package/es/components/business-ui/tenant-dialog/join-tenant-dialog/index.d.ts +1 -0
  71. package/es/components/business-ui/tenant-dialog/join-tenant-dialog/src/index.d.ts +46 -0
  72. package/es/components/business-ui/tenant-dialog/join-tenant-dialog/src/index.mjs +95 -0
  73. package/es/components/business-ui/tenant-dialog/join-tenant-dialog/src/interface.d.ts +16 -0
  74. package/es/components/business-ui/tenant-dialog/join-tenant-dialog/src/interface.mjs +16 -0
  75. package/es/components/business-ui/tenant-dialog/join-tenant-dialog/src/styles/index.cssr.d.ts +2 -0
  76. package/es/components/business-ui/tenant-dialog/join-tenant-dialog/src/styles/index.cssr.mjs +45 -0
  77. package/es/components/business-ui/tenant-dialog/switch-tenant-dialog/index.d.ts +1 -0
  78. package/es/components/business-ui/tenant-dialog/switch-tenant-dialog/src/index.d.ts +77 -0
  79. package/es/components/business-ui/tenant-dialog/switch-tenant-dialog/src/index.mjs +118 -0
  80. package/es/components/business-ui/tenant-dialog/switch-tenant-dialog/src/interface.d.ts +32 -0
  81. package/es/components/business-ui/tenant-dialog/switch-tenant-dialog/src/interface.mjs +29 -0
  82. package/es/components/business-ui/tenant-dialog/switch-tenant-dialog/src/styles/index.cssr.d.ts +2 -0
  83. package/es/components/business-ui/tenant-dialog/switch-tenant-dialog/src/styles/index.cssr.mjs +80 -0
  84. package/es/components/business-ui/tenant-dialog/switch-tenant-dialog/src/tenant-item.d.ts +32 -0
  85. package/es/components/business-ui/tenant-dialog/switch-tenant-dialog/src/tenant-item.mjs +46 -0
  86. package/es/components/cascader/src/cascader.d.ts +5 -5
  87. package/es/components/cascader/src/cascader.mjs +1 -1
  88. package/es/components/dialog/src/index.vue.mjs +30 -28
  89. package/es/components/global-header/index.vue.d.ts +4 -0
  90. package/es/components/global-header/index.vue.mjs +37 -95
  91. package/es/components/global-header/title.vue.mjs +2 -2
  92. package/es/components/global-header/title.vue2.mjs +1 -1
  93. package/es/components/input-number/src/input-number.vue.mjs +2 -2
  94. package/es/components/input-number/src/input-number.vue2.mjs +1 -1
  95. package/es/components/layout/aside/index.vue.mjs +2 -2
  96. package/es/components/layout/aside/index.vue2.mjs +1 -1
  97. package/es/components/layout/aside-menu/aside-menu.d.ts +6 -6
  98. package/es/components/layout/components/{WrapHeader.vue2.mjs → WrapHeader.vue.mjs} +1 -1
  99. package/es/components/layout/index.vue2.mjs +1 -1
  100. package/es/components/nav-icon/index.vue.mjs +3 -3
  101. package/es/components/nav-icon/index.vue2.mjs +1 -1
  102. package/es/components/platform-header-navigation/src/platform-header-navigation.mjs +10 -10
  103. package/es/components/platform-navigation/index.vue.mjs +2 -2
  104. package/es/components/platform-navigation/index.vue2.mjs +60 -59
  105. package/es/components/progress/src/progress.mjs +2 -2
  106. package/es/components/radio/src/radio.vue.mjs +2 -2
  107. package/es/components/radio/src/radio.vue2.mjs +1 -1
  108. package/es/components/select/src/select.d.ts +5 -5
  109. package/es/components/select/src/select.mjs +1 -1
  110. package/es/components/shape-button/src/shape-button.mjs +1 -1
  111. package/es/components/slider/src/slider.vue.d.ts +1 -1
  112. package/es/components/slider/src/slider.vue.mjs +1 -1
  113. package/es/components/slider/src/slider.vue2.mjs +1 -1
  114. package/es/components/switch/src/switch.vue.mjs +2 -2
  115. package/es/components/switch/src/switch.vue2.mjs +2 -2
  116. package/es/components/system-actions/index.vue.d.ts +4 -0
  117. package/es/components/system-actions/index.vue.mjs +2 -2
  118. package/es/components/system-actions/index.vue2.mjs +129 -57
  119. package/es/components/system-actions/interface.d.ts +16 -0
  120. package/es/components/system-actions/interface.mjs +4 -0
  121. package/es/components/tabs/src/tabs.d.ts +2 -2
  122. package/es/components/tabs/src/tabs.mjs +1 -1
  123. package/es/config/themes/index.d.ts +0 -1
  124. package/es/index.css +1 -1
  125. package/es/index.d.ts +1 -0
  126. package/es/index.mjs +118 -116
  127. package/es/locale/lang/en-us.d.ts +2 -0
  128. package/es/locale/lang/en-us.mjs +3 -1
  129. package/es/locale/lang/zh-cn.mjs +3 -1
  130. package/es/node_modules/.pnpm/naive-ui@2.43.1_vue@3.5.22_typescript@5.7.2_/node_modules/naive-ui/es/_utils/vue/call.mjs +9 -0
  131. package/lib/_constant/base.js +1 -1
  132. package/lib/_internal/icons/add-circle.d.ts +2 -0
  133. package/lib/_internal/icons/add-circle.js +1 -0
  134. package/lib/_internal/icons/check.d.ts +2 -0
  135. package/lib/_internal/icons/check.js +1 -0
  136. package/lib/_internal/icons/close.d.ts +2 -0
  137. package/lib/_internal/icons/close.js +1 -0
  138. package/lib/_internal/icons/index.d.ts +12 -0
  139. package/lib/_internal/icons/lang.d.ts +2 -0
  140. package/lib/_internal/icons/lang.js +1 -0
  141. package/lib/_internal/icons/logout.d.ts +2 -0
  142. package/lib/_internal/icons/logout.js +1 -0
  143. package/lib/_internal/icons/right.d.ts +2 -0
  144. package/lib/_internal/icons/right.js +1 -0
  145. package/lib/_internal/icons/switch-user.d.ts +2 -0
  146. package/lib/_internal/icons/switch-user.js +1 -0
  147. package/lib/_internal/icons/theme-dark.d.ts +2 -0
  148. package/lib/_internal/icons/theme-dark.js +1 -0
  149. package/lib/_internal/icons/theme-light.d.ts +2 -0
  150. package/lib/_internal/icons/theme-light.js +1 -0
  151. package/lib/_internal/icons/user-center.d.ts +2 -0
  152. package/lib/_internal/icons/user-center.js +1 -0
  153. package/lib/_internal/icons/user-dark.d.ts +2 -0
  154. package/lib/_internal/icons/user-dark.js +1 -0
  155. package/lib/_internal/icons/user-light.d.ts +2 -0
  156. package/lib/_internal/icons/user-light.js +1 -0
  157. package/{dist/hooks/useNaiveConfigProvideContext.d.ts → lib/_mixins/use-boden-config-provide-context.d.ts} +1 -1
  158. package/lib/_mixins/use-boden-config-provide-context.js +1 -0
  159. package/lib/_virtual/virtual_svg-icons-register.js +1 -1
  160. package/lib/components/business-ui/index.d.ts +0 -0
  161. package/lib/components/business-ui/tenant-dialog/index.d.ts +1 -0
  162. package/lib/components/business-ui/tenant-dialog/join-tenant-dialog/index.d.ts +1 -0
  163. package/lib/components/business-ui/tenant-dialog/join-tenant-dialog/src/index.d.ts +46 -0
  164. package/lib/components/business-ui/tenant-dialog/join-tenant-dialog/src/index.js +1 -0
  165. package/lib/components/business-ui/tenant-dialog/join-tenant-dialog/src/interface.d.ts +16 -0
  166. package/lib/components/business-ui/tenant-dialog/join-tenant-dialog/src/interface.js +1 -0
  167. package/lib/components/business-ui/tenant-dialog/join-tenant-dialog/src/styles/index.cssr.d.ts +2 -0
  168. package/lib/components/business-ui/tenant-dialog/join-tenant-dialog/src/styles/index.cssr.js +1 -0
  169. package/lib/components/business-ui/tenant-dialog/switch-tenant-dialog/index.d.ts +1 -0
  170. package/lib/components/business-ui/tenant-dialog/switch-tenant-dialog/src/index.d.ts +77 -0
  171. package/lib/components/business-ui/tenant-dialog/switch-tenant-dialog/src/index.js +1 -0
  172. package/lib/components/business-ui/tenant-dialog/switch-tenant-dialog/src/interface.d.ts +32 -0
  173. package/lib/components/business-ui/tenant-dialog/switch-tenant-dialog/src/interface.js +1 -0
  174. package/lib/components/business-ui/tenant-dialog/switch-tenant-dialog/src/styles/index.cssr.d.ts +2 -0
  175. package/lib/components/business-ui/tenant-dialog/switch-tenant-dialog/src/styles/index.cssr.js +1 -0
  176. package/lib/components/business-ui/tenant-dialog/switch-tenant-dialog/src/tenant-item.d.ts +32 -0
  177. package/lib/components/business-ui/tenant-dialog/switch-tenant-dialog/src/tenant-item.js +1 -0
  178. package/lib/components/cascader/src/cascader.d.ts +5 -5
  179. package/lib/components/cascader/src/cascader.js +1 -1
  180. package/lib/components/dialog/src/index.vue.js +1 -1
  181. package/lib/components/global-header/index.vue.d.ts +4 -0
  182. package/lib/components/global-header/index.vue.js +1 -1
  183. package/lib/components/global-header/title.vue.js +1 -1
  184. package/lib/components/global-header/title.vue2.js +1 -1
  185. package/lib/components/input-number/src/input-number.vue.js +1 -1
  186. package/lib/components/input-number/src/input-number.vue2.js +1 -1
  187. package/lib/components/layout/aside/index.vue.js +1 -1
  188. package/lib/components/layout/aside/index.vue2.js +1 -1
  189. package/lib/components/layout/aside-menu/aside-menu.d.ts +6 -6
  190. package/lib/components/layout/components/WrapHeader.vue.js +1 -0
  191. package/lib/components/layout/index.vue2.js +1 -1
  192. package/lib/components/nav-icon/index.vue.js +1 -1
  193. package/lib/components/nav-icon/index.vue2.js +1 -1
  194. package/lib/components/platform-header-navigation/src/platform-header-navigation.js +1 -1
  195. package/lib/components/platform-navigation/index.vue.js +1 -1
  196. package/lib/components/platform-navigation/index.vue2.js +1 -1
  197. package/lib/components/progress/src/progress.js +1 -1
  198. package/lib/components/radio/src/radio.vue.js +1 -1
  199. package/lib/components/radio/src/radio.vue2.js +1 -1
  200. package/lib/components/select/src/select.d.ts +5 -5
  201. package/lib/components/select/src/select.js +1 -1
  202. package/lib/components/shape-button/src/shape-button.js +1 -1
  203. package/lib/components/slider/src/slider.vue.d.ts +1 -1
  204. package/lib/components/slider/src/slider.vue.js +1 -1
  205. package/lib/components/slider/src/slider.vue2.js +1 -1
  206. package/lib/components/switch/src/switch.vue.js +1 -1
  207. package/lib/components/switch/src/switch.vue2.js +1 -1
  208. package/lib/components/system-actions/index.vue.d.ts +4 -0
  209. package/lib/components/system-actions/index.vue.js +1 -1
  210. package/lib/components/system-actions/index.vue2.js +1 -1
  211. package/lib/components/system-actions/interface.d.ts +16 -0
  212. package/lib/components/system-actions/interface.js +1 -0
  213. package/lib/components/tabs/src/tabs.d.ts +2 -2
  214. package/lib/components/tabs/src/tabs.js +1 -1
  215. package/lib/config/themes/index.d.ts +0 -1
  216. package/lib/index.css +1 -1
  217. package/lib/index.d.ts +1 -0
  218. package/lib/index.js +1 -1
  219. package/lib/locale/lang/en-us.d.ts +2 -0
  220. package/lib/locale/lang/en-us.js +1 -1
  221. package/lib/locale/lang/zh-cn.js +1 -1
  222. package/lib/node_modules/.pnpm/naive-ui@2.43.1_vue@3.5.22_typescript@5.7.2_/node_modules/naive-ui/es/_utils/vue/call.js +1 -0
  223. package/package.json +1 -1
  224. package/dist/hooks/useBoolean.d.ts +0 -7
  225. package/dist/hooks/useContext.d.ts +0 -6
  226. package/es/config/themes/index.mjs +0 -67
  227. package/es/hooks/useBoolean.d.ts +0 -7
  228. package/es/hooks/useContext.d.ts +0 -6
  229. package/es/hooks/useNaiveConfigProvideContext.mjs +0 -8
  230. package/lib/_internal/icons/arrow-right.js +0 -1
  231. package/lib/components/layout/components/WrapHeader.vue2.js +0 -1
  232. package/lib/config/themes/index.js +0 -1
  233. package/lib/hooks/useBoolean.d.ts +0 -7
  234. package/lib/hooks/useContext.d.ts +0 -6
  235. package/lib/hooks/useNaiveConfigProvideContext.js +0 -1
@@ -1,15 +1,16 @@
1
- import { NModal as S, NCard as I } from "naive-ui";
2
- import { defineComponent as P, mergeDefaults as E, computed as l, resolveComponent as O, createBlock as y, openBlock as c, mergeProps as h, withCtx as t, createVNode as d, createSlots as p, renderSlot as a, createElementBlock as C, toDisplayString as H, normalizeClass as L, unref as i } from "vue";
3
- import { defaultProps as N } from "./options.mjs";
1
+ import { NModal as I, NCard as S, NIcon as P } from "naive-ui";
2
+ import { defineComponent as E, mergeDefaults as O, computed as c, createBlock as y, openBlock as a, mergeProps as h, withCtx as t, createVNode as d, createSlots as p, renderSlot as i, createElementBlock as C, toDisplayString as H, unref as l, normalizeClass as L } from "vue";
3
+ import N from "../../../_internal/icons/close.mjs";
4
+ import { defaultProps as R } from "./options.mjs";
4
5
  import b from "../../button/src/button.mjs";
5
6
  import "../../button/src/interface.mjs";
6
- import { useLocale as R } from "../../../_mixins/use-locale.mjs";
7
- const D = {
7
+ import { useLocale as D } from "../../../_mixins/use-locale.mjs";
8
+ const F = {
8
9
  key: 1,
9
10
  style: { margin: "0 auto" }
10
- }, q = /* @__PURE__ */ P({
11
+ }, J = /* @__PURE__ */ E({
11
12
  __name: "index",
12
- props: /* @__PURE__ */ E({
13
+ props: /* @__PURE__ */ O({
13
14
  visible: { type: Boolean },
14
15
  width: {},
15
16
  top: {},
@@ -38,19 +39,19 @@ const D = {
38
39
  btnPlacement: {},
39
40
  btnRound: { type: Boolean },
40
41
  btnSize: {}
41
- }, N),
42
+ }, R),
42
43
  emits: ["update:visible", "cancel", "confirm"],
43
44
  setup(e, { emit: g }) {
44
- const { t: m } = R(), r = g, n = e, k = l(() => ({
45
+ const { t: m } = D(), r = g, n = e, k = c(() => ({
45
46
  width: `${n.width}`,
46
47
  position: "fixed",
47
48
  left: "50%",
48
49
  top: `${n.top}`,
49
50
  transform: "translate(-50%, -50%)"
50
- })), v = l(() => ({
51
+ })), x = c(() => ({
51
52
  lineHeight: "28px",
52
53
  textAlign: `${n.center ? "center" : "left"}`
53
- })), x = l(() => n.btnPlacement === "center" ? "flex-c" : "flex justify-end"), s = l({
54
+ })), v = c(() => n.btnPlacement === "center" ? "flex-c" : "flex justify-end"), s = c({
54
55
  get: () => n.visible,
55
56
  set: (o) => {
56
57
  r("update:visible", o);
@@ -61,16 +62,16 @@ const D = {
61
62
  r("confirm");
62
63
  };
63
64
  return (o, u) => {
64
- const $ = O("svg-icon"), w = I, z = S;
65
- return c(), y(z, h({
65
+ const $ = P, z = S, w = I;
66
+ return a(), y(w, h({
66
67
  show: s.value,
67
68
  "onUpdate:show": u[0] || (u[0] = (T) => s.value = T),
68
69
  maskClosable: e.maskClosable,
69
70
  closeOnEsc: e.closeOnEsc
70
71
  }, o.$attrs), {
71
72
  default: t(() => [
72
- d(w, h({
73
- "header-style": v.value,
73
+ d(z, h({
74
+ "header-style": x.value,
74
75
  "header-extra-style": {
75
76
  position: "absolute",
76
77
  right: "var(--n-padding-left)"
@@ -81,54 +82,55 @@ const D = {
81
82
  segmented: { content: !0 }
82
83
  }, o.$attrs), p({
83
84
  default: t(() => [
84
- a(o.$slots, "default")
85
+ i(o.$slots, "default")
85
86
  ]),
86
87
  _: 2
87
88
  }, [
88
89
  o.$slots.header || e.title ? {
89
90
  name: "header",
90
91
  fn: t(() => [
91
- o.$slots.header ? a(o.$slots, "header", { key: 0 }) : (c(), C("span", D, H(e.title), 1))
92
+ o.$slots.header ? i(o.$slots, "header", { key: 0 }) : (a(), C("span", F, H(e.title), 1))
92
93
  ]),
93
94
  key: "0"
94
95
  } : void 0,
95
96
  o.$slots["header-extra"] || e.showHeaderExtra ? {
96
97
  name: "header-extra",
97
98
  fn: t(() => [
98
- o.$slots["header-extra"] ? a(o.$slots, "header-extra", { key: 0 }) : (c(), y($, {
99
+ o.$slots["header-extra"] ? i(o.$slots, "header-extra", { key: 0 }) : (a(), y($, {
99
100
  key: 1,
100
- icon: "operate-close",
101
- class: "cursor-pointer active:scale-[0.95] text-[18px]",
101
+ class: "cursor-pointer active:scale-[0.95]",
102
+ size: 18,
103
+ component: l(N),
102
104
  onClick: f
103
- }))
105
+ }, null, 8, ["component"]))
104
106
  ]),
105
107
  key: "1"
106
108
  } : void 0,
107
109
  o.$slots.footer || e.showFooter ? {
108
110
  name: "footer",
109
111
  fn: t(() => [
110
- o.$slots.footer ? a(o.$slots, "footer", { key: 0 }) : (c(), C("div", {
112
+ o.$slots.footer ? i(o.$slots, "footer", { key: 0 }) : (a(), C("div", {
111
113
  key: 1,
112
- class: L(["gap-[8px]", x.value])
114
+ class: L(["gap-[8px]", v.value])
113
115
  }, [
114
- d(i(b), {
116
+ d(l(b), {
115
117
  icon: e.cancelIcon,
116
118
  "icon-placement": e.cancelIconPlacement,
117
119
  color: e.cancelColor,
118
120
  "text-color": e.cancelTextColor,
119
- content: e.cancelBtnText || i(m)("boden.dialog.cancel"),
121
+ content: e.cancelBtnText || l(m)("boden.dialog.cancel"),
120
122
  loading: e.isLoading,
121
123
  round: e.btnRound,
122
124
  size: e.btnSize,
123
125
  type: e.cancelType,
124
126
  onClick: f
125
127
  }, null, 8, ["icon", "icon-placement", "color", "text-color", "content", "loading", "round", "size", "type"]),
126
- d(i(b), {
128
+ d(l(b), {
127
129
  icon: e.confirmIcon,
128
130
  "icon-placement": e.confirmIconPlacement,
129
131
  color: e.confirmColor,
130
132
  "text-color": e.confirmTextColor,
131
- content: e.confirmBtnText || i(m)("boden.dialog.confirm"),
133
+ content: e.confirmBtnText || l(m)("boden.dialog.confirm"),
132
134
  loading: e.isLoading,
133
135
  round: e.btnRound,
134
136
  size: e.btnSize,
@@ -147,5 +149,5 @@ const D = {
147
149
  }
148
150
  });
149
151
  export {
150
- q as default
152
+ J as default
151
153
  };
@@ -12,12 +12,16 @@ declare const __VLS_component: import('vue').DefineComponent<BodenGlobalHeaderPr
12
12
  toggleSystemTheme: (event: MouseEvent) => any;
13
13
  toggleSystemLang: () => any;
14
14
  toggleUserItem: (key: string | number, option: import('naive-ui').MenuOption) => any;
15
+ toggleTenantChange: (id: string | number, successCb: () => void) => any;
16
+ toggleTenantJoin: (code: string, successCb: () => void) => any;
15
17
  }, string, import('vue').PublicProps, Readonly<BodenGlobalHeaderProps> & Readonly<{
16
18
  onTogglePlatform?: ((key: string) => any) | undefined;
17
19
  onToggleLogo?: (() => any) | undefined;
18
20
  onToggleSystemTheme?: ((event: MouseEvent) => any) | undefined;
19
21
  onToggleSystemLang?: (() => any) | undefined;
20
22
  onToggleUserItem?: ((key: string | number, option: import('naive-ui').MenuOption) => any) | undefined;
23
+ onToggleTenantChange?: ((id: string | number, successCb: () => void) => any) | undefined;
24
+ onToggleTenantJoin?: ((code: string, successCb: () => void) => any) | undefined;
21
25
  }>, {
22
26
  isShowProductIntroduction: boolean;
23
27
  productIntroductionTriggerDisabled: boolean;
@@ -1,77 +1,16 @@
1
- import { defineComponent as S, ref as c, computed as I, createBlock as p, openBlock as s, unref as m, withCtx as i, createVNode as u, renderSlot as g, createCommentVNode as T, createSlots as w } from "vue";
2
- import B from "./title.vue.mjs";
3
- import L from "../system-actions/index.vue.mjs";
4
- /* empty css */
1
+ import { defineComponent as c, ref as S, computed as T, createBlock as g, openBlock as a, unref as l, withCtx as r, createVNode as u, renderSlot as m, createCommentVNode as I, createSlots as w } from "vue";
2
+ import A from "./title.vue.mjs";
3
+ import B from "../system-actions/index.vue.mjs";
4
+ /* empty css */
5
5
  import "../layout/options.mjs";
6
6
  /* empty css */
7
- import P from "../layout/header/index.vue.mjs";
8
- import "../alert/styles/light.mjs";
9
- import "../alert/styles/dark.mjs";
10
- import "../breadcrumb/styles/dark.mjs";
11
- import "../breadcrumb/styles/light.mjs";
12
- import "../button/styles/light.mjs";
13
- import "../button/styles/dark.mjs";
14
- import "../card/styles/light.mjs";
15
- import "../card/styles/dark.mjs";
16
- import "../cascader/styles/dark.mjs";
17
- import "../cascader/styles/light.mjs";
18
- import "../data-table/styles/dark.mjs";
19
- import "../data-table/styles/light.mjs";
20
- import "../date-picker/styles/dark.mjs";
21
- import "../date-picker/styles/light.mjs";
22
- import "../checkbox/styles/dark.mjs";
23
- import "../checkbox/styles/light.mjs";
24
- import "../divider/styles/light.mjs";
25
- import "../dialog/styles/dark.mjs";
26
- import "../dialog/styles/light.mjs";
27
- import "../dropdown/styles/dark.mjs";
28
- import "../dropdown/styles/light.mjs";
29
- import "../form/styles/dark.mjs";
30
- import "../form/styles/light.mjs";
31
- import "../input/styles/dark.mjs";
32
- import "../input/styles/light.mjs";
33
- import "../input-number/styles/dark.mjs";
34
- import "../input-number/styles/light.mjs";
7
+ import L from "../layout/header/index.vue.mjs";
35
8
  import "../layout/styles/dark.mjs";
36
9
  import "../layout/styles/light.mjs";
37
- import "../menu/styles/dark.mjs";
38
- import "../menu/styles/light.mjs";
39
- import "../pagination/styles/dark.mjs";
40
- import "../pagination/styles/light.mjs";
41
- import "../popconfirm/styles/dark.mjs";
42
- import "../popconfirm/styles/light.mjs";
43
- import "../popover/styles/dark.mjs";
44
- import "../popover/styles/light.mjs";
45
- import "../progress/styles/dark.mjs";
46
- import "../progress/styles/light.mjs";
47
- import "../radio/styles/dark.mjs";
48
- import "../radio/styles/light.mjs";
49
- import "../../_internal/select-menu/styles/dark.mjs";
50
- import "../../_internal/select-menu/styles/light.mjs";
51
- import "../../_internal/selection/styles/light.mjs";
52
- import "../../_internal/selection/styles/dark.mjs";
53
- import "../slider/styles/dark.mjs";
54
- import "../slider/styles/light.mjs";
55
- import "../steps/styles/dark.mjs";
56
- import "../steps/styles/light.mjs";
57
- import "../switch/styles/dark.mjs";
58
- import "../switch/styles/light.mjs";
59
- import "../tabs/styles/dark.mjs";
60
- import "../tabs/styles/light.mjs";
61
- import "../tag/styles/dark.mjs";
62
- import "../tag/styles/light.mjs";
63
- import "../tooltip/styles/dark.mjs";
64
- import "../tooltip/styles/light.mjs";
65
- import "../transfer/styles/dark.mjs";
66
- import "../transfer/styles/light.mjs";
67
- import "../tree/styles/dark.mjs";
68
- import "../tree/styles/light.mjs";
69
- import "../../config/themes/common/light.mjs";
70
- import "../../config/themes/common/dark.mjs";
71
10
  /* empty css */
72
- import b from "../layout/aside-menu/aside-menu.mjs";
11
+ import P from "../layout/aside-menu/aside-menu.mjs";
73
12
  import "../layout/aside-menu/props.mjs";
74
- const Qo = /* @__PURE__ */ S({
13
+ const G = /* @__PURE__ */ c({
75
14
  name: "BodenGlobalHeader",
76
15
  __name: "index",
77
16
  props: {
@@ -79,14 +18,17 @@ const Qo = /* @__PURE__ */ S({
79
18
  platformCode: {},
80
19
  productIntroductionTriggerDisabled: { type: Boolean, default: !1 },
81
20
  userActionOption: {},
21
+ userActionDisabledMap: {},
22
+ userActionHideMap: {},
23
+ tenantOptions: {},
82
24
  userInfo: {},
83
25
  headerHeight: {},
84
26
  isShowProductIntroduction: { type: Boolean, default: !0 },
85
27
  isShowLogo: { type: Boolean }
86
28
  },
87
- emits: ["toggleSystemTheme", "toggleSystemLang", "toggleUserItem", "toggleLogo", "togglePlatform"],
88
- setup(o, { emit: a }) {
89
- const l = a, n = c("ADS"), d = I(() => [
29
+ emits: ["toggleSystemTheme", "toggleSystemLang", "toggleUserItem", "toggleTenantChange", "toggleTenantJoin", "toggleLogo", "togglePlatform"],
30
+ setup(o, { emit: d }) {
31
+ const i = d, s = S("ADS"), f = T(() => [
90
32
  {
91
33
  key: "ADS",
92
34
  label: "ADS",
@@ -105,15 +47,15 @@ const Qo = /* @__PURE__ */ S({
105
47
  routeKey: "",
106
48
  routePath: ""
107
49
  }
108
- ]), f = () => {
50
+ ]), p = () => {
109
51
  }, y = () => {
110
- l("toggleLogo");
111
- }, h = (t) => {
112
- l("togglePlatform", t);
52
+ i("toggleLogo");
53
+ }, h = (e) => {
54
+ i("togglePlatform", e);
113
55
  };
114
- return (t, e) => (s(), p(m(P), null, {
115
- title: i(() => [
116
- u(B, {
56
+ return (e, t) => (a(), g(l(L), null, {
57
+ title: r(() => [
58
+ u(A, {
117
59
  "is-show-logo": o.isShowLogo,
118
60
  "is-show-product-introduction": o.isShowProductIntroduction,
119
61
  "header-height": o.headerHeight,
@@ -122,40 +64,40 @@ const Qo = /* @__PURE__ */ S({
122
64
  onToggleLogo: y,
123
65
  onTogglePlatform: h
124
66
  }, w({ _: 2 }, [
125
- t.$slots.logo ? {
67
+ e.$slots.logo ? {
126
68
  name: "logo",
127
- fn: i(() => [
128
- g(t.$slots, "logo")
69
+ fn: r(() => [
70
+ m(e.$slots, "logo")
129
71
  ]),
130
72
  key: "0"
131
73
  } : void 0
132
74
  ]), 1032, ["is-show-logo", "is-show-product-introduction", "header-height", "platformCode", "productIntroductionTriggerDisabled"])
133
75
  ]),
134
- default: i(() => [
135
- g(t.$slots, "default", {}, () => [
136
- o.isShowPlatformMenus ? (s(), p(m(b), {
76
+ default: r(() => [
77
+ m(e.$slots, "default", {}, () => [
78
+ o.isShowPlatformMenus ? (a(), g(l(P), {
137
79
  key: 0,
138
80
  mode: "horizontal",
139
- value: n.value,
81
+ value: s.value,
140
82
  "onUpdate:value": [
141
- e[0] || (e[0] = (r) => n.value = r),
142
- f
83
+ t[0] || (t[0] = (n) => s.value = n),
84
+ p
143
85
  ],
144
- options: d.value,
86
+ options: f.value,
145
87
  indent: 18,
146
88
  responsive: ""
147
- }, null, 8, ["value", "options"])) : T("", !0)
89
+ }, null, 8, ["value", "options"])) : I("", !0)
148
90
  ])
149
91
  ]),
150
- actions: i(() => [
151
- u(m(L), {
92
+ actions: r(() => [
93
+ u(l(B), {
152
94
  style: { "margin-left": "auto" },
153
95
  mode: "horizontal",
154
96
  userActionOption: o.userActionOption,
155
97
  userInfo: o.userInfo,
156
- onToggleSystemTheme: e[1] || (e[1] = (r) => t.$emit("toggleSystemTheme", r)),
157
- onToggleSystemLang: e[2] || (e[2] = (r) => t.$emit("toggleSystemLang")),
158
- onToggleUserItem: e[3] || (e[3] = (...r) => t.$emit("toggleUserItem", ...r))
98
+ onToggleSystemTheme: t[1] || (t[1] = (n) => e.$emit("toggleSystemTheme", n)),
99
+ onToggleSystemLang: t[2] || (t[2] = (n) => e.$emit("toggleSystemLang")),
100
+ onToggleUserItem: t[3] || (t[3] = (...n) => e.$emit("toggleUserItem", ...n))
159
101
  }, null, 8, ["userActionOption", "userInfo"])
160
102
  ]),
161
103
  _: 3
@@ -163,5 +105,5 @@ const Qo = /* @__PURE__ */ S({
163
105
  }
164
106
  });
165
107
  export {
166
- Qo as default
108
+ G as default
167
109
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./title.vue2.mjs";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-4ba88c64"]]);
4
+ const d = /* @__PURE__ */ t(o, [["__scopeId", "data-v-7555507d"]]);
5
5
  export {
6
- m as default
6
+ d as default
7
7
  };
@@ -2,7 +2,7 @@ import { NDivider as h } from "naive-ui";
2
2
  import { defineComponent as v, computed as a, createElementBlock as d, createCommentVNode as t, openBlock as r, createBlock as k, Fragment as C, createVNode as g, unref as P, createSlots as y, withCtx as D, renderSlot as S } from "vue";
3
3
  import b from "../platform-navigation/index.vue.mjs";
4
4
  import w from "../logo/index.vue.mjs";
5
- import B from "../../hooks/useNaiveConfigProvideContext.mjs";
5
+ import { useNaiveConfigProvideContext as B } from "../../_mixins/use-boden-config-provide-context.mjs";
6
6
  const L = {
7
7
  key: 0,
8
8
  class: "boden-global-header-title-container"
@@ -1,7 +1,7 @@
1
1
  import o from "./input-number.vue2.mjs";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.mjs";
4
- const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-bd8b5b04"]]);
4
+ const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d3e72563"]]);
5
5
  export {
6
- _ as default
6
+ e as default
7
7
  };
@@ -1,6 +1,6 @@
1
1
  import { NButton as w, NInputNumber as N } from "naive-ui";
2
2
  import { defineComponent as S, shallowRef as k, ref as $, computed as p, watch as R, resolveComponent as D, createElementBlock as c, openBlock as t, normalizeStyle as M, normalizeClass as b, createBlock as d, createCommentVNode as u, createVNode as r, mergeProps as f, withCtx as a, createSlots as F, Fragment as A, renderSlot as x, createElementVNode as B } from "vue";
3
- import H from "../../../hooks/useNaiveConfigProvideContext.mjs";
3
+ import { useNaiveConfigProvideContext as H } from "../../../_mixins/use-boden-config-provide-context.mjs";
4
4
  const L = {
5
5
  key: 1,
6
6
  class: "inner-controls"
@@ -1,7 +1,7 @@
1
1
  import o from "./index.vue2.mjs";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.mjs";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-7be67e29"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-800fa035"]]);
5
5
  export {
6
- p as default
6
+ m as default
7
7
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as u, computed as r, createElementBlock as m, openBlock as f, mergeProps as c, createElementVNode as s, renderSlot as t, normalizeStyle as a, normalizeClass as d } from "vue";
2
- import y from "../../../hooks/useNaiveConfigProvideContext.mjs";
2
+ import { useNaiveConfigProvideContext as y } from "../../../_mixins/use-boden-config-provide-context.mjs";
3
3
  import "../styles/dark.mjs";
4
4
  import { BodenLayoutLight as g } from "../styles/light.mjs";
5
5
  const k = /* @__PURE__ */ u({
@@ -1378,21 +1378,21 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
1378
1378
  }>> & Readonly<{}>, {
1379
1379
  readonly iconSize: number;
1380
1380
  readonly disabled: boolean;
1381
+ readonly inverted: boolean;
1381
1382
  readonly options: import('naive-ui/es/menu/src/interface').MenuMixedOption[];
1382
- readonly defaultValue: import('treemate').Key | null;
1383
- readonly disabledField: string;
1384
- readonly show: boolean;
1385
1383
  readonly labelField: string;
1384
+ readonly keyField: string;
1386
1385
  readonly childrenField: string;
1386
+ readonly show: boolean;
1387
+ readonly defaultValue: import('treemate').Key | null;
1388
+ readonly disabledField: string;
1387
1389
  readonly responsive: boolean;
1388
1390
  readonly defaultExpandAll: boolean;
1389
1391
  readonly indent: number;
1390
- readonly inverted: boolean;
1391
- readonly keyField: string;
1392
+ readonly mode: "horizontal" | "vertical";
1392
1393
  readonly collapsed: boolean | undefined;
1393
1394
  readonly collapsedWidth: number;
1394
1395
  readonly collapsedIconSize: number;
1395
- readonly mode: "vertical" | "horizontal";
1396
1396
  readonly watchProps: ("defaultValue" | "defaultExpandedKeys")[];
1397
1397
  readonly accordion: boolean;
1398
1398
  readonly dropdownPlacement: import('naive-ui').PopoverPlacement;
@@ -1,5 +1,5 @@
1
1
  import a from "./WrapHeader.vue3.mjs";
2
- /* empty css */
2
+ /* empty css */
3
3
  import o from "../../../_virtual/_plugin-vue_export-helper.mjs";
4
4
  const d = /* @__PURE__ */ o(a, [["__scopeId", "data-v-a43da04d"]]);
5
5
  export {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as I, mergeDefaults as _, useSlots as E, computed as o, createElementBlock as T, openBlock as u, normalizeStyle as j, createElementVNode as z, normalizeClass as G, unref as M, createBlock as p, createCommentVNode as l, createVNode as P, withCtx as d, renderSlot as c } from "vue";
2
- import A from "./components/WrapHeader.vue2.mjs";
2
+ import A from "./components/WrapHeader.vue.mjs";
3
3
  import N from "./components/WrapTab.vue.mjs";
4
4
  import D from "./components/WrapContent.vue.mjs";
5
5
  import O from "./components/WrapSlider.vue.mjs";
@@ -1,7 +1,7 @@
1
1
  import o from "./index.vue2.mjs";
2
2
  /* empty css */
3
- import t from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b2c44205"]]);
3
+ import a from "../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const p = /* @__PURE__ */ a(o, [["__scopeId", "data-v-bab3d845"]]);
5
5
  export {
6
- m as default
6
+ p as default
7
7
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as v, ref as g, computed as s, createElementBlock as n, openBlock as o, normalizeStyle as k, normalizeClass as y, Fragment as C, renderList as b } from "vue";
2
- import h from "../../hooks/useNaiveConfigProvideContext.mjs";
2
+ import { useNaiveConfigProvideContext as h } from "../../_mixins/use-boden-config-provide-context.mjs";
3
3
  import { getNavIconStyleCssVar as x } from "./cssVar.mjs";
4
4
  const z = /* @__PURE__ */ v({
5
5
  __name: "index",
@@ -2,23 +2,23 @@ import { defineComponent as N, createVNode as o, mergeProps as v, ref as y, comp
2
2
  import { NTabs as T, NTab as k, NPopover as C, NIcon as f, NEllipsis as V } from "naive-ui";
3
3
  import { prefix as n } from "../../../_constant/base.mjs";
4
4
  import M from "../../../_mixins/use-theme.mjs";
5
- import P from "../../../_internal/icons/arrow-right.mjs";
6
- import $ from "./styles/index.cssr.mjs";
7
- import { bodenPlatformHeaderNavigationProps as w } from "./interface.mjs";
8
- import { createNavCssVar as L, createTabThemeOverrides as O } from "./useCssVars.mjs";
9
- import x from "../../../hooks/useNaiveConfigProvideContext.mjs";
5
+ import { useNaiveConfigProvideContext as P } from "../../../_mixins/use-boden-config-provide-context.mjs";
6
+ import $ from "../../../_internal/icons/right.mjs";
7
+ import w from "./styles/index.cssr.mjs";
8
+ import { bodenPlatformHeaderNavigationProps as L } from "./interface.mjs";
9
+ import { createNavCssVar as O, createTabThemeOverrides as x } from "./useCssVars.mjs";
10
10
  import { isRenderNode as _ } from "./utils.mjs";
11
11
  const F = /* @__PURE__ */ N({
12
12
  name: "BodenPlatformHeaderNavigation",
13
- props: w,
13
+ props: L,
14
14
  setup(d) {
15
- M("-platform-header-navigation", $);
16
- const i = x(), a = y(""), l = p(() => {
15
+ M("-platform-header-navigation", w);
16
+ const i = P(), a = y(""), l = p(() => {
17
17
  const {
18
18
  name: s = "light"
19
19
  } = i?.mergedThemeRef.value || {};
20
20
  return s !== "light";
21
- }), r = p(() => L(l.value)), m = p(() => O(l.value)), u = p(() => a.value !== "");
21
+ }), r = p(() => O(l.value)), m = p(() => x(l.value)), u = p(() => a.value !== "");
22
22
  let e;
23
23
  const t = (s) => {
24
24
  a.value = s;
@@ -80,7 +80,7 @@ const F = /* @__PURE__ */ N({
80
80
  class: `${n}-platform-option__arrow`
81
81
  }, [o(f, {
82
82
  size: 24,
83
- component: P
83
+ component: $
84
84
  }, null)])]);
85
85
  return r.renderOption ? r.renderOption({
86
86
  node: t,
@@ -2,7 +2,7 @@ import o from "./index.vue2.mjs";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import t from "../../_virtual/_plugin-vue_export-helper.mjs";
5
- const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-58e0f46c"]]);
5
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-07d8ccb0"]]);
6
6
  export {
7
- i as default
7
+ p as default
8
8
  };