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.
- package/dist/_internal/icons/add-circle.d.ts +2 -0
- package/dist/_internal/icons/check.d.ts +2 -0
- package/dist/_internal/icons/close.d.ts +2 -0
- package/dist/_internal/icons/index.d.ts +12 -0
- package/dist/_internal/icons/lang.d.ts +2 -0
- package/dist/_internal/icons/logout.d.ts +2 -0
- package/dist/_internal/icons/right.d.ts +2 -0
- package/dist/_internal/icons/switch-user.d.ts +2 -0
- package/dist/_internal/icons/theme-dark.d.ts +2 -0
- package/dist/_internal/icons/theme-light.d.ts +2 -0
- package/dist/_internal/icons/user-center.d.ts +2 -0
- package/dist/_internal/icons/user-dark.d.ts +2 -0
- package/dist/_internal/icons/user-light.d.ts +2 -0
- package/{es/hooks/useNaiveConfigProvideContext.d.ts → dist/_mixins/use-boden-config-provide-context.d.ts} +1 -1
- package/dist/components/business-ui/index.d.ts +0 -0
- package/dist/components/business-ui/tenant-dialog/index.d.ts +1 -0
- package/dist/components/business-ui/tenant-dialog/join-tenant-dialog/index.d.ts +1 -0
- package/dist/components/business-ui/tenant-dialog/join-tenant-dialog/src/index.d.ts +46 -0
- package/dist/components/business-ui/tenant-dialog/join-tenant-dialog/src/interface.d.ts +16 -0
- package/dist/components/business-ui/tenant-dialog/join-tenant-dialog/src/styles/index.cssr.d.ts +2 -0
- package/dist/components/business-ui/tenant-dialog/switch-tenant-dialog/index.d.ts +1 -0
- package/dist/components/business-ui/tenant-dialog/switch-tenant-dialog/src/index.d.ts +77 -0
- package/dist/components/business-ui/tenant-dialog/switch-tenant-dialog/src/interface.d.ts +32 -0
- package/dist/components/business-ui/tenant-dialog/switch-tenant-dialog/src/styles/index.cssr.d.ts +2 -0
- package/dist/components/business-ui/tenant-dialog/switch-tenant-dialog/src/tenant-item.d.ts +32 -0
- package/dist/components/cascader/src/cascader.d.ts +5 -5
- package/dist/components/global-header/index.vue.d.ts +4 -0
- package/dist/components/layout/aside-menu/aside-menu.d.ts +6 -6
- package/dist/components/select/src/select.d.ts +5 -5
- package/dist/components/slider/src/slider.vue.d.ts +1 -1
- package/dist/components/system-actions/index.vue.d.ts +4 -0
- package/dist/components/system-actions/interface.d.ts +16 -0
- package/dist/components/tabs/src/tabs.d.ts +2 -2
- package/dist/config/themes/index.d.ts +0 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.umd.js +8 -8
- package/dist/locale/lang/en-us.d.ts +2 -0
- package/es/_constant/base.mjs +4 -2
- package/es/_internal/icons/add-circle.d.ts +2 -0
- package/es/_internal/icons/add-circle.mjs +19 -0
- package/es/_internal/icons/check.d.ts +2 -0
- package/es/_internal/icons/check.mjs +19 -0
- package/es/_internal/icons/close.d.ts +2 -0
- package/es/_internal/icons/close.mjs +22 -0
- package/es/_internal/icons/index.d.ts +12 -0
- package/es/_internal/icons/lang.d.ts +2 -0
- package/es/_internal/icons/lang.mjs +19 -0
- package/es/_internal/icons/logout.d.ts +2 -0
- package/es/_internal/icons/logout.mjs +30 -0
- package/es/_internal/icons/right.d.ts +2 -0
- package/es/_internal/icons/{arrow-right.mjs → right.mjs} +6 -6
- package/es/_internal/icons/switch-user.d.ts +2 -0
- package/es/_internal/icons/switch-user.mjs +46 -0
- package/es/_internal/icons/theme-dark.d.ts +2 -0
- package/es/_internal/icons/theme-dark.mjs +23 -0
- package/es/_internal/icons/theme-light.d.ts +2 -0
- package/es/_internal/icons/theme-light.mjs +25 -0
- package/es/_internal/icons/user-center.d.ts +2 -0
- package/es/_internal/icons/user-center.mjs +26 -0
- package/es/_internal/icons/user-dark.d.ts +2 -0
- package/es/_internal/icons/user-dark.mjs +29 -0
- package/es/_internal/icons/user-light.d.ts +2 -0
- package/es/_internal/icons/user-light.mjs +27 -0
- package/{lib/hooks/useNaiveConfigProvideContext.d.ts → es/_mixins/use-boden-config-provide-context.d.ts} +1 -1
- package/es/_mixins/use-boden-config-provide-context.mjs +8 -0
- package/es/_virtual/virtual_svg-icons-register.mjs +1 -1
- package/es/components/business-ui/index.d.ts +0 -0
- package/es/components/business-ui/tenant-dialog/index.d.ts +1 -0
- package/es/components/business-ui/tenant-dialog/join-tenant-dialog/index.d.ts +1 -0
- package/es/components/business-ui/tenant-dialog/join-tenant-dialog/src/index.d.ts +46 -0
- package/es/components/business-ui/tenant-dialog/join-tenant-dialog/src/index.mjs +95 -0
- package/es/components/business-ui/tenant-dialog/join-tenant-dialog/src/interface.d.ts +16 -0
- package/es/components/business-ui/tenant-dialog/join-tenant-dialog/src/interface.mjs +16 -0
- package/es/components/business-ui/tenant-dialog/join-tenant-dialog/src/styles/index.cssr.d.ts +2 -0
- package/es/components/business-ui/tenant-dialog/join-tenant-dialog/src/styles/index.cssr.mjs +45 -0
- package/es/components/business-ui/tenant-dialog/switch-tenant-dialog/index.d.ts +1 -0
- package/es/components/business-ui/tenant-dialog/switch-tenant-dialog/src/index.d.ts +77 -0
- package/es/components/business-ui/tenant-dialog/switch-tenant-dialog/src/index.mjs +118 -0
- package/es/components/business-ui/tenant-dialog/switch-tenant-dialog/src/interface.d.ts +32 -0
- package/es/components/business-ui/tenant-dialog/switch-tenant-dialog/src/interface.mjs +29 -0
- package/es/components/business-ui/tenant-dialog/switch-tenant-dialog/src/styles/index.cssr.d.ts +2 -0
- package/es/components/business-ui/tenant-dialog/switch-tenant-dialog/src/styles/index.cssr.mjs +80 -0
- package/es/components/business-ui/tenant-dialog/switch-tenant-dialog/src/tenant-item.d.ts +32 -0
- package/es/components/business-ui/tenant-dialog/switch-tenant-dialog/src/tenant-item.mjs +46 -0
- package/es/components/cascader/src/cascader.d.ts +5 -5
- package/es/components/cascader/src/cascader.mjs +1 -1
- package/es/components/dialog/src/index.vue.mjs +30 -28
- package/es/components/global-header/index.vue.d.ts +4 -0
- package/es/components/global-header/index.vue.mjs +37 -95
- package/es/components/global-header/title.vue.mjs +2 -2
- package/es/components/global-header/title.vue2.mjs +1 -1
- package/es/components/input-number/src/input-number.vue.mjs +2 -2
- package/es/components/input-number/src/input-number.vue2.mjs +1 -1
- package/es/components/layout/aside/index.vue.mjs +2 -2
- package/es/components/layout/aside/index.vue2.mjs +1 -1
- package/es/components/layout/aside-menu/aside-menu.d.ts +6 -6
- package/es/components/layout/components/{WrapHeader.vue2.mjs → WrapHeader.vue.mjs} +1 -1
- package/es/components/layout/index.vue2.mjs +1 -1
- package/es/components/nav-icon/index.vue.mjs +3 -3
- package/es/components/nav-icon/index.vue2.mjs +1 -1
- package/es/components/platform-header-navigation/src/platform-header-navigation.mjs +10 -10
- package/es/components/platform-navigation/index.vue.mjs +2 -2
- package/es/components/platform-navigation/index.vue2.mjs +60 -59
- package/es/components/progress/src/progress.mjs +2 -2
- package/es/components/radio/src/radio.vue.mjs +2 -2
- package/es/components/radio/src/radio.vue2.mjs +1 -1
- package/es/components/select/src/select.d.ts +5 -5
- package/es/components/select/src/select.mjs +1 -1
- package/es/components/shape-button/src/shape-button.mjs +1 -1
- package/es/components/slider/src/slider.vue.d.ts +1 -1
- package/es/components/slider/src/slider.vue.mjs +1 -1
- package/es/components/slider/src/slider.vue2.mjs +1 -1
- package/es/components/switch/src/switch.vue.mjs +2 -2
- package/es/components/switch/src/switch.vue2.mjs +2 -2
- package/es/components/system-actions/index.vue.d.ts +4 -0
- package/es/components/system-actions/index.vue.mjs +2 -2
- package/es/components/system-actions/index.vue2.mjs +129 -57
- package/es/components/system-actions/interface.d.ts +16 -0
- package/es/components/system-actions/interface.mjs +4 -0
- package/es/components/tabs/src/tabs.d.ts +2 -2
- package/es/components/tabs/src/tabs.mjs +1 -1
- package/es/config/themes/index.d.ts +0 -1
- package/es/index.css +1 -1
- package/es/index.d.ts +1 -0
- package/es/index.mjs +118 -116
- package/es/locale/lang/en-us.d.ts +2 -0
- package/es/locale/lang/en-us.mjs +3 -1
- package/es/locale/lang/zh-cn.mjs +3 -1
- 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
- package/lib/_constant/base.js +1 -1
- package/lib/_internal/icons/add-circle.d.ts +2 -0
- package/lib/_internal/icons/add-circle.js +1 -0
- package/lib/_internal/icons/check.d.ts +2 -0
- package/lib/_internal/icons/check.js +1 -0
- package/lib/_internal/icons/close.d.ts +2 -0
- package/lib/_internal/icons/close.js +1 -0
- package/lib/_internal/icons/index.d.ts +12 -0
- package/lib/_internal/icons/lang.d.ts +2 -0
- package/lib/_internal/icons/lang.js +1 -0
- package/lib/_internal/icons/logout.d.ts +2 -0
- package/lib/_internal/icons/logout.js +1 -0
- package/lib/_internal/icons/right.d.ts +2 -0
- package/lib/_internal/icons/right.js +1 -0
- package/lib/_internal/icons/switch-user.d.ts +2 -0
- package/lib/_internal/icons/switch-user.js +1 -0
- package/lib/_internal/icons/theme-dark.d.ts +2 -0
- package/lib/_internal/icons/theme-dark.js +1 -0
- package/lib/_internal/icons/theme-light.d.ts +2 -0
- package/lib/_internal/icons/theme-light.js +1 -0
- package/lib/_internal/icons/user-center.d.ts +2 -0
- package/lib/_internal/icons/user-center.js +1 -0
- package/lib/_internal/icons/user-dark.d.ts +2 -0
- package/lib/_internal/icons/user-dark.js +1 -0
- package/lib/_internal/icons/user-light.d.ts +2 -0
- package/lib/_internal/icons/user-light.js +1 -0
- package/{dist/hooks/useNaiveConfigProvideContext.d.ts → lib/_mixins/use-boden-config-provide-context.d.ts} +1 -1
- package/lib/_mixins/use-boden-config-provide-context.js +1 -0
- package/lib/_virtual/virtual_svg-icons-register.js +1 -1
- package/lib/components/business-ui/index.d.ts +0 -0
- package/lib/components/business-ui/tenant-dialog/index.d.ts +1 -0
- package/lib/components/business-ui/tenant-dialog/join-tenant-dialog/index.d.ts +1 -0
- package/lib/components/business-ui/tenant-dialog/join-tenant-dialog/src/index.d.ts +46 -0
- package/lib/components/business-ui/tenant-dialog/join-tenant-dialog/src/index.js +1 -0
- package/lib/components/business-ui/tenant-dialog/join-tenant-dialog/src/interface.d.ts +16 -0
- package/lib/components/business-ui/tenant-dialog/join-tenant-dialog/src/interface.js +1 -0
- package/lib/components/business-ui/tenant-dialog/join-tenant-dialog/src/styles/index.cssr.d.ts +2 -0
- package/lib/components/business-ui/tenant-dialog/join-tenant-dialog/src/styles/index.cssr.js +1 -0
- package/lib/components/business-ui/tenant-dialog/switch-tenant-dialog/index.d.ts +1 -0
- package/lib/components/business-ui/tenant-dialog/switch-tenant-dialog/src/index.d.ts +77 -0
- package/lib/components/business-ui/tenant-dialog/switch-tenant-dialog/src/index.js +1 -0
- package/lib/components/business-ui/tenant-dialog/switch-tenant-dialog/src/interface.d.ts +32 -0
- package/lib/components/business-ui/tenant-dialog/switch-tenant-dialog/src/interface.js +1 -0
- package/lib/components/business-ui/tenant-dialog/switch-tenant-dialog/src/styles/index.cssr.d.ts +2 -0
- package/lib/components/business-ui/tenant-dialog/switch-tenant-dialog/src/styles/index.cssr.js +1 -0
- package/lib/components/business-ui/tenant-dialog/switch-tenant-dialog/src/tenant-item.d.ts +32 -0
- package/lib/components/business-ui/tenant-dialog/switch-tenant-dialog/src/tenant-item.js +1 -0
- package/lib/components/cascader/src/cascader.d.ts +5 -5
- package/lib/components/cascader/src/cascader.js +1 -1
- package/lib/components/dialog/src/index.vue.js +1 -1
- package/lib/components/global-header/index.vue.d.ts +4 -0
- package/lib/components/global-header/index.vue.js +1 -1
- package/lib/components/global-header/title.vue.js +1 -1
- package/lib/components/global-header/title.vue2.js +1 -1
- package/lib/components/input-number/src/input-number.vue.js +1 -1
- package/lib/components/input-number/src/input-number.vue2.js +1 -1
- package/lib/components/layout/aside/index.vue.js +1 -1
- package/lib/components/layout/aside/index.vue2.js +1 -1
- package/lib/components/layout/aside-menu/aside-menu.d.ts +6 -6
- package/lib/components/layout/components/WrapHeader.vue.js +1 -0
- package/lib/components/layout/index.vue2.js +1 -1
- package/lib/components/nav-icon/index.vue.js +1 -1
- package/lib/components/nav-icon/index.vue2.js +1 -1
- package/lib/components/platform-header-navigation/src/platform-header-navigation.js +1 -1
- package/lib/components/platform-navigation/index.vue.js +1 -1
- package/lib/components/platform-navigation/index.vue2.js +1 -1
- package/lib/components/progress/src/progress.js +1 -1
- package/lib/components/radio/src/radio.vue.js +1 -1
- package/lib/components/radio/src/radio.vue2.js +1 -1
- package/lib/components/select/src/select.d.ts +5 -5
- package/lib/components/select/src/select.js +1 -1
- package/lib/components/shape-button/src/shape-button.js +1 -1
- package/lib/components/slider/src/slider.vue.d.ts +1 -1
- package/lib/components/slider/src/slider.vue.js +1 -1
- package/lib/components/slider/src/slider.vue2.js +1 -1
- package/lib/components/switch/src/switch.vue.js +1 -1
- package/lib/components/switch/src/switch.vue2.js +1 -1
- package/lib/components/system-actions/index.vue.d.ts +4 -0
- package/lib/components/system-actions/index.vue.js +1 -1
- package/lib/components/system-actions/index.vue2.js +1 -1
- package/lib/components/system-actions/interface.d.ts +16 -0
- package/lib/components/system-actions/interface.js +1 -0
- package/lib/components/tabs/src/tabs.d.ts +2 -2
- package/lib/components/tabs/src/tabs.js +1 -1
- package/lib/config/themes/index.d.ts +0 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -1
- package/lib/locale/lang/en-us.d.ts +2 -0
- package/lib/locale/lang/en-us.js +1 -1
- package/lib/locale/lang/zh-cn.js +1 -1
- 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
- package/package.json +1 -1
- package/dist/hooks/useBoolean.d.ts +0 -7
- package/dist/hooks/useContext.d.ts +0 -6
- package/es/config/themes/index.mjs +0 -67
- package/es/hooks/useBoolean.d.ts +0 -7
- package/es/hooks/useContext.d.ts +0 -6
- package/es/hooks/useNaiveConfigProvideContext.mjs +0 -8
- package/lib/_internal/icons/arrow-right.js +0 -1
- package/lib/components/layout/components/WrapHeader.vue2.js +0 -1
- package/lib/config/themes/index.js +0 -1
- package/lib/hooks/useBoolean.d.ts +0 -7
- package/lib/hooks/useContext.d.ts +0 -6
- package/lib/hooks/useNaiveConfigProvideContext.js +0 -1
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { NModal as
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import
|
|
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
|
|
7
|
-
const
|
|
7
|
+
import { useLocale as D } from "../../../_mixins/use-locale.mjs";
|
|
8
|
+
const F = {
|
|
8
9
|
key: 1,
|
|
9
10
|
style: { margin: "0 auto" }
|
|
10
|
-
},
|
|
11
|
+
}, J = /* @__PURE__ */ E({
|
|
11
12
|
__name: "index",
|
|
12
|
-
props: /* @__PURE__ */
|
|
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
|
-
},
|
|
42
|
+
}, R),
|
|
42
43
|
emits: ["update:visible", "cancel", "confirm"],
|
|
43
44
|
setup(e, { emit: g }) {
|
|
44
|
-
const { t: m } =
|
|
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
|
-
})),
|
|
51
|
+
})), x = c(() => ({
|
|
51
52
|
lineHeight: "28px",
|
|
52
53
|
textAlign: `${n.center ? "center" : "left"}`
|
|
53
|
-
})),
|
|
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 $ =
|
|
65
|
-
return
|
|
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(
|
|
73
|
-
"header-style":
|
|
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
|
-
|
|
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 ?
|
|
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"] ?
|
|
99
|
+
o.$slots["header-extra"] ? i(o.$slots, "header-extra", { key: 0 }) : (a(), y($, {
|
|
99
100
|
key: 1,
|
|
100
|
-
|
|
101
|
-
|
|
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 ?
|
|
112
|
+
o.$slots.footer ? i(o.$slots, "footer", { key: 0 }) : (a(), C("div", {
|
|
111
113
|
key: 1,
|
|
112
|
-
class: L(["gap-[8px]",
|
|
114
|
+
class: L(["gap-[8px]", v.value])
|
|
113
115
|
}, [
|
|
114
|
-
d(
|
|
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 ||
|
|
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(
|
|
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 ||
|
|
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
|
-
|
|
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
|
|
2
|
-
import
|
|
3
|
-
import
|
|
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
|
|
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
|
|
11
|
+
import P from "../layout/aside-menu/aside-menu.mjs";
|
|
73
12
|
import "../layout/aside-menu/props.mjs";
|
|
74
|
-
const
|
|
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:
|
|
89
|
-
const
|
|
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
|
-
]),
|
|
50
|
+
]), p = () => {
|
|
109
51
|
}, y = () => {
|
|
110
|
-
|
|
111
|
-
}, h = (
|
|
112
|
-
|
|
52
|
+
i("toggleLogo");
|
|
53
|
+
}, h = (e) => {
|
|
54
|
+
i("togglePlatform", e);
|
|
113
55
|
};
|
|
114
|
-
return (
|
|
115
|
-
title:
|
|
116
|
-
u(
|
|
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
|
-
|
|
67
|
+
e.$slots.logo ? {
|
|
126
68
|
name: "logo",
|
|
127
|
-
fn:
|
|
128
|
-
|
|
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:
|
|
135
|
-
|
|
136
|
-
o.isShowPlatformMenus ? (
|
|
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:
|
|
81
|
+
value: s.value,
|
|
140
82
|
"onUpdate:value": [
|
|
141
|
-
|
|
142
|
-
|
|
83
|
+
t[0] || (t[0] = (n) => s.value = n),
|
|
84
|
+
p
|
|
143
85
|
],
|
|
144
|
-
options:
|
|
86
|
+
options: f.value,
|
|
145
87
|
indent: 18,
|
|
146
88
|
responsive: ""
|
|
147
|
-
}, null, 8, ["value", "options"])) :
|
|
89
|
+
}, null, 8, ["value", "options"])) : I("", !0)
|
|
148
90
|
])
|
|
149
91
|
]),
|
|
150
|
-
actions:
|
|
151
|
-
u(
|
|
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:
|
|
157
|
-
onToggleSystemLang:
|
|
158
|
-
onToggleUserItem:
|
|
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
|
-
|
|
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
|
|
4
|
+
const d = /* @__PURE__ */ t(o, [["__scopeId", "data-v-7555507d"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
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 "../../
|
|
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
|
|
4
|
+
const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d3e72563"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
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 "../../../
|
|
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
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-800fa035"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
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 "../../../
|
|
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
|
|
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 { 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.
|
|
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
|
|
4
|
-
const
|
|
3
|
+
import a from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const p = /* @__PURE__ */ a(o, [["__scopeId", "data-v-bab3d845"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
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 "../../
|
|
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 "../../../
|
|
6
|
-
import $ from "
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import x from "
|
|
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:
|
|
13
|
+
props: L,
|
|
14
14
|
setup(d) {
|
|
15
|
-
M("-platform-header-navigation",
|
|
16
|
-
const i =
|
|
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(() =>
|
|
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:
|
|
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
|
|
5
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-07d8ccb0"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
p as default
|
|
8
8
|
};
|