base6-ui 2.0.21 → 2.0.22

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 (109) hide show
  1. package/dist/components/global-header/interface.d.ts +3 -3
  2. package/dist/components/global-header/title.vue.d.ts +1 -1
  3. package/dist/components/platform-navigation/cssVar.d.ts +10 -0
  4. package/dist/components/platform-navigation/index.d.ts +1 -1
  5. package/dist/components/platform-navigation/index.vue.d.ts +2 -2
  6. package/dist/components/platform-navigation/interface.d.ts +16 -5
  7. package/dist/config/themes/token/light.d.ts +2 -0
  8. package/dist/index.css +1 -1
  9. package/dist/index.umd.js +5 -1
  10. package/dist/locale/lang/en-us.d.ts +6 -2
  11. package/es/_virtual/virtual_svg-icons-register.mjs +2 -2
  12. package/es/assets/cover/base-studio.png.mjs +2 -2
  13. package/es/assets/cover/blink.png.mjs +4 -0
  14. package/es/assets/cover/ps.png.mjs +4 -0
  15. package/es/assets/cover/robo.png.mjs +4 -0
  16. package/es/components/dialog/index.vue.mjs +8 -4
  17. package/es/components/global-header/index.vue.mjs +3 -2
  18. package/es/components/global-header/interface.d.ts +3 -3
  19. package/es/components/global-header/title.vue.d.ts +1 -1
  20. package/es/components/nav-icon/cssVar.mjs +3 -2
  21. package/es/components/platform-navigation/cssVar.d.ts +10 -0
  22. package/es/components/platform-navigation/cssVar.mjs +38 -31
  23. package/es/components/platform-navigation/index.d.ts +1 -1
  24. package/es/components/platform-navigation/index.vue.d.ts +2 -2
  25. package/es/components/platform-navigation/index.vue.mjs +2 -2
  26. package/es/components/platform-navigation/index.vue2.mjs +144 -120
  27. package/es/components/platform-navigation/interface.d.ts +16 -5
  28. package/es/components/platform-navigation/interface.mjs +3 -2
  29. package/es/components/select/src/cssVar.mjs +3 -2
  30. package/es/config/themes/components/baseComponent/dark.mjs +15 -14
  31. package/es/config/themes/components/button/dark.mjs +3 -2
  32. package/es/config/themes/components/card/dark.mjs +3 -2
  33. package/es/config/themes/components/cascader/dark.mjs +3 -2
  34. package/es/config/themes/components/charts/dark.mjs +3 -2
  35. package/es/config/themes/components/checkbox/dark.mjs +3 -2
  36. package/es/config/themes/components/dataTable/common.mjs +1 -0
  37. package/es/config/themes/components/dataTable/dark.mjs +4 -2
  38. package/es/config/themes/components/dataTable/light.mjs +1 -2
  39. package/es/config/themes/components/dialog/dark.mjs +3 -2
  40. package/es/config/themes/components/dropdown/dark.mjs +1 -0
  41. package/es/config/themes/components/input/dark.mjs +1 -0
  42. package/es/config/themes/components/inputNumber/dark.mjs +3 -2
  43. package/es/config/themes/components/layout/dark.mjs +1 -0
  44. package/es/config/themes/components/menu/dark.mjs +3 -2
  45. package/es/config/themes/components/popover/dark.mjs +3 -2
  46. package/es/config/themes/components/progress/dark.mjs +3 -2
  47. package/es/config/themes/components/radio/dark.mjs +3 -2
  48. package/es/config/themes/components/select/dark.mjs +3 -2
  49. package/es/config/themes/components/switch/dark.mjs +3 -2
  50. package/es/config/themes/components/tag/dark.mjs +3 -2
  51. package/es/config/themes/components/transfer/dark.mjs +3 -2
  52. package/es/config/themes/index.mjs +7 -5
  53. package/es/config/themes/token/light.d.ts +2 -0
  54. package/es/config/themes/token/light.mjs +5 -2
  55. package/es/index.css +1 -1
  56. package/es/locale/lang/en-us.d.ts +6 -2
  57. package/es/locale/lang/en-us.mjs +8 -2
  58. package/es/locale/lang/zh-cn.mjs +8 -2
  59. package/lib/_virtual/virtual_svg-icons-register.js +1 -1
  60. package/lib/assets/cover/base-studio.png.js +1 -1
  61. package/lib/assets/cover/blink.png.js +1 -0
  62. package/lib/assets/cover/ps.png.js +1 -0
  63. package/lib/assets/cover/robo.png.js +1 -0
  64. package/lib/components/dialog/index.vue.js +1 -1
  65. package/lib/components/global-header/index.vue.js +1 -1
  66. package/lib/components/global-header/interface.d.ts +3 -3
  67. package/lib/components/global-header/title.vue.d.ts +1 -1
  68. package/lib/components/nav-icon/cssVar.js +1 -1
  69. package/lib/components/platform-navigation/cssVar.d.ts +10 -0
  70. package/lib/components/platform-navigation/cssVar.js +1 -1
  71. package/lib/components/platform-navigation/index.d.ts +1 -1
  72. package/lib/components/platform-navigation/index.vue.d.ts +2 -2
  73. package/lib/components/platform-navigation/index.vue.js +1 -1
  74. package/lib/components/platform-navigation/index.vue2.js +1 -1
  75. package/lib/components/platform-navigation/interface.d.ts +16 -5
  76. package/lib/components/platform-navigation/interface.js +1 -1
  77. package/lib/components/select/src/cssVar.js +1 -1
  78. package/lib/config/themes/components/baseComponent/dark.js +1 -1
  79. package/lib/config/themes/components/button/dark.js +1 -1
  80. package/lib/config/themes/components/card/dark.js +1 -1
  81. package/lib/config/themes/components/cascader/dark.js +1 -1
  82. package/lib/config/themes/components/charts/dark.js +1 -1
  83. package/lib/config/themes/components/checkbox/dark.js +1 -1
  84. package/lib/config/themes/components/dataTable/common.js +1 -1
  85. package/lib/config/themes/components/dataTable/dark.js +1 -1
  86. package/lib/config/themes/components/dataTable/light.js +1 -1
  87. package/lib/config/themes/components/dialog/dark.js +1 -1
  88. package/lib/config/themes/components/dropdown/dark.js +1 -1
  89. package/lib/config/themes/components/input/dark.js +1 -1
  90. package/lib/config/themes/components/inputNumber/dark.js +1 -1
  91. package/lib/config/themes/components/layout/dark.js +1 -1
  92. package/lib/config/themes/components/menu/dark.js +1 -1
  93. package/lib/config/themes/components/popover/dark.js +1 -1
  94. package/lib/config/themes/components/progress/dark.js +1 -1
  95. package/lib/config/themes/components/radio/dark.js +1 -1
  96. package/lib/config/themes/components/select/dark.js +1 -1
  97. package/lib/config/themes/components/switch/dark.js +1 -1
  98. package/lib/config/themes/components/tag/dark.js +1 -1
  99. package/lib/config/themes/components/transfer/dark.js +1 -1
  100. package/lib/config/themes/index.js +1 -1
  101. package/lib/config/themes/token/light.d.ts +2 -0
  102. package/lib/config/themes/token/light.js +1 -1
  103. package/lib/index.css +1 -1
  104. package/lib/locale/lang/en-us.d.ts +6 -2
  105. package/lib/locale/lang/en-us.js +3 -1
  106. package/lib/locale/lang/zh-cn.js +3 -1
  107. package/package.json +1 -1
  108. package/es/assets/cover/source-robot.png.mjs +0 -4
  109. package/lib/assets/cover/source-robot.png.js +0 -1
@@ -1,5 +1,5 @@
1
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 H, renderSlot as a, createElementBlock as C, toDisplayString as L, normalizeClass as p, unref as i } from "vue";
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
3
  import { defaultProps as N } from "./options.mjs";
4
4
  import b from "../button/button.mjs";
5
5
  import "../button/interface.mjs";
@@ -71,11 +71,15 @@ const D = {
71
71
  default: t(() => [
72
72
  d(w, h({
73
73
  "header-style": v.value,
74
+ "header-extra-style": {
75
+ position: "absolute",
76
+ right: "var(--n-padding-left)"
77
+ },
74
78
  style: k.value,
75
79
  size: e.cardSize,
76
80
  closable: e.closable,
77
81
  segmented: { content: !0 }
78
- }, o.$attrs), H({
82
+ }, o.$attrs), p({
79
83
  default: t(() => [
80
84
  a(o.$slots, "default")
81
85
  ]),
@@ -84,7 +88,7 @@ const D = {
84
88
  o.$slots.header || e.title ? {
85
89
  name: "header",
86
90
  fn: t(() => [
87
- o.$slots.header ? a(o.$slots, "header", { key: 0 }) : (c(), C("span", D, L(e.title), 1))
91
+ o.$slots.header ? a(o.$slots, "header", { key: 0 }) : (c(), C("span", D, H(e.title), 1))
88
92
  ]),
89
93
  key: "0"
90
94
  } : void 0,
@@ -105,7 +109,7 @@ const D = {
105
109
  fn: t(() => [
106
110
  o.$slots.footer ? a(o.$slots, "footer", { key: 0 }) : (c(), C("div", {
107
111
  key: 1,
108
- class: p(["gap-[8px]", x.value])
112
+ class: L(["gap-[8px]", x.value])
109
113
  }, [
110
114
  d(i(b), {
111
115
  icon: e.cancelIcon,
@@ -5,6 +5,7 @@ import L from "../system-actions/index.vue.mjs";
5
5
  import "../layout/options.mjs";
6
6
  /* empty css */
7
7
  import P from "../layout/header/index.vue.mjs";
8
+ import "../../config/themes/token/light.mjs";
8
9
  import "../../config/themes/components/alert/light.mjs";
9
10
  import "../../config/themes/components/button/light.mjs";
10
11
  import "../../config/themes/components/card/light.mjs";
@@ -59,7 +60,7 @@ import "../../config/themes/components/charts/light.mjs";
59
60
  /* empty css */
60
61
  import b from "../layout/aside-menu/aside-menu.mjs";
61
62
  import "../layout/aside-menu/props.mjs";
62
- const Ko = /* @__PURE__ */ S({
63
+ const Oo = /* @__PURE__ */ S({
63
64
  name: "BodenGlobalHeader",
64
65
  __name: "index",
65
66
  props: {
@@ -151,5 +152,5 @@ const Ko = /* @__PURE__ */ S({
151
152
  }
152
153
  });
153
154
  export {
154
- Ko as default
155
+ Oo as default
155
156
  };
@@ -1,9 +1,9 @@
1
1
  import { VNode } from 'vue';
2
- import { PLATFORM_ENUM } from '../platform-navigation/interface';
2
+ import { BODEN_PLATFORM_ENUM } from '../platform-navigation/interface';
3
3
  import { BodenSystemActionsProps, BodenSystemActionsEmits } from '../system-actions';
4
4
  export type BodenGlobalHeaderProps = {
5
5
  isShowPlatformMenus?: boolean;
6
- platformCode?: Array<PLATFORM_ENUM>;
6
+ platformCode?: Array<BODEN_PLATFORM_ENUM>;
7
7
  productIntroductionTriggerDisabled?: boolean;
8
8
  } & Omit<BodenSystemActionsProps, 'mode'> & BodenGlobalHeaderTitleProps;
9
9
  export type BodenGlobalHeaderSlots = {
@@ -30,7 +30,7 @@ export type BodenGlobalHeaderTitleProps = {
30
30
  isShowProductIntroduction?: boolean;
31
31
  isShowLogo?: boolean;
32
32
  productIntroductionTriggerDisabled?: boolean;
33
- platformCode?: Array<PLATFORM_ENUM>;
33
+ platformCode?: Array<BODEN_PLATFORM_ENUM>;
34
34
  };
35
35
  export type BodenGlobalHeaderTitleSlots = {
36
36
  logo?: () => VNode;
@@ -15,7 +15,7 @@ declare const __VLS_component: import('vue').DefineComponent<BodenGlobalHeaderTi
15
15
  onTogglePlatform?: ((...args: any[]) => any) | undefined;
16
16
  onToggleLogo?: ((...args: any[]) => any) | undefined;
17
17
  }>, {
18
- platformCode: Array<import('../platform-navigation/interface').PLATFORM_ENUM>;
18
+ platformCode: Array<import('../platform-navigation').BODEN_PLATFORM_ENUM>;
19
19
  isShowProductIntroduction: boolean;
20
20
  isShowLogo: boolean;
21
21
  productIntroductionTriggerDisabled: boolean;
@@ -1,4 +1,5 @@
1
1
  import r from "../../config/themes/token/dark.mjs";
2
+ import "../../config/themes/token/light.mjs";
2
3
  import t from "../../config/themes/color/light.mjs";
3
4
  import "../../config/themes/components/alert/light.mjs";
4
5
  import "../../config/themes/components/button/light.mjs";
@@ -51,9 +52,9 @@ import "../../config/themes/components/baseComponent/dark.mjs";
51
52
  import "../../config/themes/common/dark.mjs";
52
53
  import "../../config/themes/components/charts/dark.mjs";
53
54
  import "../../config/themes/components/charts/light.mjs";
54
- const to = (o) => ({
55
+ const io = (o) => ({
55
56
  "--base-icon-color": o ? r["color-text-2"] : t["color-gray-8"]
56
57
  });
57
58
  export {
58
- to as getNavIconStyleCssVar
59
+ io as getNavIconStyleCssVar
59
60
  };
@@ -5,6 +5,16 @@ export declare const createCardThemeOverrides: (isDarkMode: boolean) => {
5
5
  color: string;
6
6
  textColor: string;
7
7
  titleTextColor: string;
8
+ paddingMedium: string;
9
+ };
10
+ export declare const createHorizontalCardThemeOverrides: (isDarkMode: boolean) => {
11
+ fontSizeMedium: string;
12
+ titleFontSizeMedium: string;
13
+ borderColor: string;
14
+ color: string;
15
+ textColor: string;
16
+ titleTextColor: string;
17
+ paddingMedium: string;
8
18
  };
9
19
  export declare const createPopoverCssVar: (isDarkMode: boolean) => {
10
20
  '--base-title-color': string;
@@ -1,7 +1,7 @@
1
- import t from "../../config/themes/token/dark.mjs";
2
- import l from "../../config/themes/token/light.mjs";
3
- import p from "../../config/themes/color/dark.mjs";
4
- import o from "../../config/themes/color/light.mjs";
1
+ import r from "../../config/themes/token/dark.mjs";
2
+ import i from "../../config/themes/token/light.mjs";
3
+ import l from "../../config/themes/color/dark.mjs";
4
+ import m from "../../config/themes/color/light.mjs";
5
5
  import "../../config/themes/components/alert/light.mjs";
6
6
  import "../../config/themes/components/button/light.mjs";
7
7
  import "../../config/themes/components/card/light.mjs";
@@ -53,38 +53,45 @@ import "../../config/themes/components/baseComponent/dark.mjs";
53
53
  import "../../config/themes/common/dark.mjs";
54
54
  import "../../config/themes/components/charts/dark.mjs";
55
55
  import "../../config/themes/components/charts/light.mjs";
56
- const i = {
57
- "light-1": o["color-gray-10"],
58
- "light-3": o["color-gray-6"],
59
- "dark-1": t["color-text-1"],
60
- "dark-3": t["color-text-3"]
56
+ const t = {
57
+ "light-1": m["color-gray-10"],
58
+ "light-3": m["color-gray-6"],
59
+ "dark-1": r["color-text-1"],
60
+ "dark-3": r["color-text-3"]
61
61
  }, e = {
62
- "light-1": o["color-gray-2"],
63
- "dark-1": t["fill-color-1"]
64
- }, a = {
65
- "light-2": l["bg-color-2"],
66
- "dark-2": t["bg-color-2"]
67
- }, m = {
68
- "light-1": o["color-gray-3"],
69
- "dark-1": p["color-gray-3"]
70
- }, gr = (r) => ({
62
+ "light-2": i["bg-color-2"],
63
+ "dark-2": r["bg-color-2"]
64
+ }, p = {
65
+ "light-1": m["color-gray-3"],
66
+ "dark-1": l["color-gray-3"]
67
+ }, ao = (o) => ({
71
68
  fontSizeMedium: "12px",
72
69
  titleFontSizeMedium: "14px",
73
- borderColor: m[r ? "dark-1" : "light-1"],
74
- color: e[r ? "dark-1" : "light-1"],
75
- textColor: i[r ? "dark-3" : "light-3"],
76
- titleTextColor: i[r ? "dark-1" : "light-1"]
77
- }), dr = (r) => ({
78
- "--base-title-color": i[r ? "dark-1" : "light-1"],
79
- "--base-text-color": i[r ? "dark-3" : "light-3"],
80
- "--base-color": a[r ? "dark-2" : "light-2"],
81
- "--base-card-border-hover-color": r ? p["color-primary-6"] : o["color-primary-6"],
70
+ borderColor: p[o ? "dark-1" : "light-1"],
71
+ color: o ? r["fill-color-1"] : i["fill-color-1"],
72
+ textColor: t[o ? "dark-3" : "light-3"],
73
+ titleTextColor: t[o ? "dark-1" : "light-1"],
74
+ paddingMedium: "0"
75
+ }), go = (o) => ({
76
+ fontSizeMedium: "12px",
77
+ titleFontSizeMedium: "14px",
78
+ borderColor: p[o ? "dark-1" : "light-1"],
79
+ color: o ? r["fill-color-1"] : i["fill-color-1"],
80
+ textColor: t[o ? "dark-3" : "light-3"],
81
+ titleTextColor: o ? r["color-text-2"] : i["color-text-2"],
82
+ paddingMedium: "0"
83
+ }), ho = (o) => ({
84
+ "--base-title-color": t[o ? "dark-1" : "light-1"],
85
+ "--base-text-color": t[o ? "dark-3" : "light-3"],
86
+ "--base-color": e[o ? "dark-2" : "light-2"],
87
+ "--base-card-border-hover-color": o ? l["color-primary-6"] : m["color-primary-6"],
82
88
  height: "620px",
83
- borderRight: `1px solid ${m[r ? "dark-1" : "light-1"]}`,
84
- borderBottom: `1px solid ${m[r ? "dark-1" : "light-1"]}`,
89
+ borderRight: `1px solid ${p[o ? "dark-1" : "light-1"]}`,
90
+ borderBottom: `1px solid ${p[o ? "dark-1" : "light-1"]}`,
85
91
  overflow: "hidden"
86
92
  });
87
93
  export {
88
- gr as createCardThemeOverrides,
89
- dr as createPopoverCssVar
94
+ ao as createCardThemeOverrides,
95
+ go as createHorizontalCardThemeOverrides,
96
+ ho as createPopoverCssVar
90
97
  };
@@ -1,2 +1,2 @@
1
1
  export { default as BodenPlatformNavigation } from './index.vue';
2
- export type { BodenPlatformNavigationProps } from './interface';
2
+ export type { BodenPlatformNavigationProps, BODEN_PLATFORM_ENUM, BODEN_PLATFORM_NAME_ENUM } from './interface';
@@ -1,4 +1,4 @@
1
- import { BodenPlatformNavigationProps, PLATFORM_ENUM } from './interface';
1
+ import { BodenPlatformNavigationProps, BODEN_PLATFORM_ENUM } from './interface';
2
2
  declare const _default: import('vue').DefineComponent<BodenPlatformNavigationProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
3
3
  togglePlatform: (...args: any[]) => void;
4
4
  }, string, import('vue').PublicProps, Readonly<BodenPlatformNavigationProps> & Readonly<{
@@ -6,7 +6,7 @@ declare const _default: import('vue').DefineComponent<BodenPlatformNavigationPro
6
6
  }>, {
7
7
  x: number;
8
8
  y: number;
9
- platformCode: PLATFORM_ENUM[];
9
+ platformCode: BODEN_PLATFORM_ENUM[];
10
10
  triggerDisabled: boolean;
11
11
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
12
12
  triggerInstRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('..').BodenNavIconProps> & Readonly<{
@@ -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 p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1b2deb36"]]);
5
+ const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-952f1733"]]);
6
6
  export {
7
- p as default
7
+ i as default
8
8
  };
@@ -1,21 +1,20 @@
1
- import { NPopover as z, NCard as E, NButton as $ } from "naive-ui";
2
- import { defineComponent as F, ref as h, computed as f, resolveComponent as U, createElementBlock as d, openBlock as r, createVNode as c, createBlock as y, withModifiers as N, normalizeStyle as K, withCtx as p, createElementVNode as t, toDisplayString as v, unref as j, Fragment as _, renderList as P, createCommentVNode as C, createTextVNode as B, Teleport as q, withDirectives as G, vShow as H } from "vue";
3
- import J from "../nav-icon/index.vue.mjs";
4
- import { useLocale as Q } from "../../hooks/useLocale.mjs";
5
- import W from "../../hooks/useNaiveConfigProvideContext.mjs";
6
- import X from "../../assets/cover/base-ads.png.mjs";
7
- import Y from "../../assets/cover/base-studio.png.mjs";
8
- import Z from "../../assets/cover/base-multimodal.png.mjs";
9
- import ee from "../../assets/cover/source-robot.png.mjs";
10
- import { createCardThemeOverrides as oe, createPopoverCssVar as te } from "./cssVar.mjs";
11
- import { PLATFORM_ENUM as u } from "./interface.mjs";
12
- const ie = { class: "header" }, ne = { class: "platform-wrap" }, re = { class: "platform-item-header" }, ae = { class: "icon" }, le = ["onClick"], se = { class: "description" }, de = {
1
+ import { NPopover as U, NGrid as G, NGi as K, NCard as $, NButton as H } from "naive-ui";
2
+ import { defineComponent as j, ref as b, computed as g, resolveComponent as q, createElementBlock as u, openBlock as a, createVNode as p, createBlock as _, withModifiers as N, normalizeStyle as J, withCtx as s, createElementVNode as o, toDisplayString as f, unref as Q, Fragment as k, renderList as y, createCommentVNode as P, normalizeClass as W, createTextVNode as X, Teleport as Y, withDirectives as Z, vShow as ee } from "vue";
3
+ import oe from "../nav-icon/index.vue.mjs";
4
+ import { useLocale as te } from "../../hooks/useLocale.mjs";
5
+ import ie from "../../hooks/useNaiveConfigProvideContext.mjs";
6
+ import ne from "../../assets/cover/base-ads.png.mjs";
7
+ import re from "../../assets/cover/base-studio.png.mjs";
8
+ import ae from "../../assets/cover/base-multimodal.png.mjs";
9
+ import le from "../../assets/cover/robo.png.mjs";
10
+ import se from "../../assets/cover/ps.png.mjs";
11
+ import de from "../../assets/cover/blink.png.mjs";
12
+ import { createCardThemeOverrides as ce, createHorizontalCardThemeOverrides as me, createPopoverCssVar as pe } from "./cssVar.mjs";
13
+ import { BODEN_PLATFORM_NAME_ENUM as d, BODEN_PLATFORM_ENUM as c } from "./interface.mjs";
14
+ const fe = { class: "header" }, ve = { class: "content-wrapper" }, ge = { class: "platform-type-item-header" }, ue = { class: "title" }, he = { class: "description" }, _e = ["src"], be = { class: "platform-card_content" }, Ne = { class: "title" }, ke = { class: "description" }, ye = {
13
15
  key: 0,
14
- class: "platform-child-wrap"
15
- }, ce = ["src"], me = {
16
- key: 0,
17
- class: "to-use"
18
- }, pe = { class: "boden-platform-navigation-panel-mask" }, Be = /* @__PURE__ */ F({
16
+ class: "navigation"
17
+ }, Pe = { class: "boden-platform-navigation-panel-mask" }, ze = /* @__PURE__ */ j({
19
18
  __name: "index",
20
19
  props: {
21
20
  platformCode: { default: () => [] },
@@ -24,165 +23,190 @@ const ie = { class: "header" }, ne = { class: "platform-wrap" }, re = { class: "
24
23
  y: { default: 0 }
25
24
  },
26
25
  emits: ["togglePlatform"],
27
- setup(s, { emit: S }) {
28
- const w = s, D = S, x = W(), { t: e } = Q(), m = h(null), i = h(!1), g = f(() => {
26
+ setup(m, { emit: B }) {
27
+ const C = m, S = B, D = ie(), { t: e } = te(), v = b(null), n = b(!1), h = g(() => {
29
28
  const {
30
- name: a = "light"
31
- } = x?.mergedThemeRef.value || {};
32
- return a !== "light";
33
- }), R = [
29
+ name: l = "light"
30
+ } = D?.mergedThemeRef.value || {};
31
+ return l !== "light";
32
+ }), O = [
33
+ {
34
+ key: "bric",
35
+ title: e("boden.platformNavigation.BricPlatform"),
36
+ description: e("boden.platformNavigation.BricPlatformDescription"),
37
+ svgIcon: "logo-base",
38
+ children: [
39
+ {
40
+ id: c.VLA,
41
+ key: d.ROBO,
42
+ title: e("boden.platformNavigation.RoboPlatform"),
43
+ description: e("boden.platformNavigation.RoboPlatformDescription"),
44
+ imageSrc: le
45
+ },
46
+ {
47
+ id: c.PS,
48
+ key: d.PS,
49
+ title: e("boden.platformNavigation.PsPlatform"),
50
+ description: e("boden.platformNavigation.PsPlatformDescription"),
51
+ imageSrc: se
52
+ }
53
+ ]
54
+ },
34
55
  {
35
- id: u.BASE,
36
56
  key: "base",
37
57
  title: e("boden.platformNavigation.BasePlatform"),
38
58
  description: e("boden.platformNavigation.BasePlatformDescription"),
39
59
  svgIcon: "logo-base",
40
60
  children: [
41
61
  {
42
- key: "ads",
62
+ id: c.BASE,
63
+ key: d.ADS,
43
64
  title: e("boden.platformNavigation.AdsPlatform"),
44
65
  description: e("boden.platformNavigation.AdsPlatformDescription"),
45
- imageSrc: X
66
+ imageSrc: ne
46
67
  },
47
68
  {
48
- key: "studio",
69
+ id: c.BASE,
70
+ key: d.BASE,
49
71
  title: e("boden.platformNavigation.StudioPlatform"),
50
72
  description: e("boden.platformNavigation.StudioPlatformDescription"),
51
- imageSrc: Y
73
+ imageSrc: re
52
74
  },
53
75
  {
54
- key: "omni",
76
+ id: c.BASE,
77
+ key: d.OMNI,
55
78
  title: e("boden.platformNavigation.OmniPlatform"),
56
79
  description: e("boden.platformNavigation.OmniPlatformDescription"),
57
- imageSrc: Z
80
+ imageSrc: ae
58
81
  }
59
82
  ]
60
83
  },
61
84
  {
62
- id: u.BLINK,
63
85
  key: "blink",
64
86
  title: e("boden.platformNavigation.BlinkPlatform"),
65
87
  description: e("boden.platformNavigation.BlinkPlatformDescription"),
66
- svgIcon: "logo-base"
67
- },
68
- {
69
- id: u.VLA,
70
- key: "bric",
71
- title: e("boden.platformNavigation.BricPlatform"),
72
- description: e("boden.platformNavigation.BricPlatformDescription"),
73
88
  svgIcon: "logo-base",
74
89
  children: [
75
90
  {
76
- key: "robot",
77
- title: e("boden.platformNavigation.RobotPlatform"),
78
- description: e("boden.platformNavigation.RobotPlatformDescription"),
79
- imageSrc: ee
91
+ id: c.BLINK,
92
+ key: d.BLINK,
93
+ title: e("boden.platformNavigation.BlinkPlatformSpecific"),
94
+ description: e("boden.platformNavigation.BlinkPlatformSpecificDescription"),
95
+ imageSrc: de
80
96
  }
81
97
  ]
82
98
  }
83
- ], I = f(() => oe(g.value)), A = f(() => te(g.value)), L = () => {
84
- w.triggerDisabled || (i.value = !i.value);
85
- }, b = (a) => {
86
- D("togglePlatform", a);
87
- }, O = (a) => {
88
- m.value && m.value.instRef && m.value.instRef.contains(a.target) || (i.value = !1);
99
+ ], x = g(() => ce(h.value)), w = g(() => me(h.value)), A = g(() => pe(h.value)), R = () => {
100
+ C.triggerDisabled || (n.value = !n.value);
101
+ }, E = (l, i) => {
102
+ S("togglePlatform", l, i);
103
+ }, I = (l) => {
104
+ v.value && v.value.instRef && v.value.instRef.contains(l.target) || (n.value = !1);
89
105
  };
90
- return (a, n) => {
91
- const k = U("svg-icon"), T = $, V = E, M = z;
92
- return r(), d("div", null, [
93
- c(J, {
106
+ return (l, i) => {
107
+ const M = q("svg-icon"), T = H, L = $, z = K, V = G, F = U;
108
+ return a(), u("div", null, [
109
+ p(oe, {
94
110
  ref_key: "triggerInstRef",
95
- ref: m,
96
- active: i.value,
97
- disabled: s.triggerDisabled,
98
- onClick: N(L, ["stop"])
111
+ ref: v,
112
+ active: n.value,
113
+ disabled: m.triggerDisabled,
114
+ onClick: N(R, ["stop"])
99
115
  }, null, 8, ["active", "disabled"]),
100
- c(M, {
116
+ p(F, {
101
117
  "content-class": "boden-platform-navigation-panel-popover",
102
118
  trigger: "manual",
103
- show: i.value,
104
- "onUpdate:show": n[2] || (n[2] = (o) => i.value = o),
105
- style: K(A.value),
119
+ show: n.value,
120
+ "onUpdate:show": i[2] || (i[2] = (t) => n.value = t),
121
+ style: J(A.value),
106
122
  "show-arrow": !1,
107
123
  width: 1058,
108
124
  scrollable: "",
109
- x: s.x,
110
- y: s.y,
125
+ x: m.x,
126
+ y: m.y,
111
127
  "theme-overrides": { padding: "0", space: "0", borderRadius: "3px" },
112
- onClickoutside: O
128
+ onClickoutside: I
113
129
  }, {
114
- default: p(() => [
115
- t("div", {
130
+ default: s(() => [
131
+ o("div", {
116
132
  class: "boden-platform-navigation-panel",
117
- onClick: n[1] || (n[1] = N(() => {
133
+ onClick: i[1] || (i[1] = N(() => {
118
134
  }, ["stop"]))
119
135
  }, [
120
- t("div", ie, [
121
- t("div", null, v(j(e)("boden.platformNavigation.allProducts")), 1),
122
- c(k, {
136
+ o("div", fe, [
137
+ o("div", null, f(Q(e)("boden.platformNavigation.allProducts")), 1),
138
+ p(M, {
123
139
  icon: "operate-close",
124
140
  size: "16",
125
- onClick: n[0] || (n[0] = (o) => i.value = !1)
141
+ onClick: i[0] || (i[0] = (t) => n.value = !1)
126
142
  })
127
143
  ]),
128
- t("div", ne, [
129
- (r(), d(_, null, P(R, (o) => t("div", {
130
- key: o.key,
131
- class: "platform-item"
144
+ o("div", ve, [
145
+ (a(), u(k, null, y(O, (t) => o("div", {
146
+ key: t.key,
147
+ class: "platform-type-item"
132
148
  }, [
133
- t("div", re, [
134
- t("div", ae, [
135
- c(k, {
136
- icon: o.svgIcon,
137
- size: "32"
138
- }, null, 8, ["icon"])
139
- ]),
140
- t("div", {
141
- class: "title",
142
- onClick: (l) => b(o.key)
143
- }, v(o.title), 9, le),
144
- t("div", se, v(o.description), 1)
149
+ o("div", ge, [
150
+ o("div", ue, f(t.title), 1),
151
+ o("div", he, f(t.description), 1)
145
152
  ]),
146
- o.children && o.children.length ? (r(), d("div", de, [
147
- (r(!0), d(_, null, P(o.children, (l) => (r(), y(V, {
148
- key: l.key,
149
- title: l.title,
150
- "theme-overrides": I.value
151
- }, {
152
- cover: p(() => [
153
- t("img", {
154
- src: l.imageSrc,
155
- alt: ""
156
- }, null, 8, ce)
157
- ]),
158
- default: p(() => [
159
- B(" " + v(l.description) + " ", 1),
160
- s.platformCode?.includes(o.id) ? (r(), d("div", me, [
161
- c(T, {
162
- round: "",
163
- size: "tiny",
164
- type: "primary",
165
- onClick: (ve) => b(l.key)
153
+ t.children && t.children.length ? (a(), _(V, {
154
+ key: 0,
155
+ "x-gap": "12",
156
+ cols: t.children.length === 1 ? 1 : 3,
157
+ style: { "margin-top": "12px" }
158
+ }, {
159
+ default: s(() => [
160
+ (a(!0), u(k, null, y(t.children, (r) => (a(), _(z, {
161
+ key: r.key
162
+ }, {
163
+ default: s(() => [
164
+ p(L, {
165
+ class: W(["platform-card", { "is-horizontal": t.children.length === 1 }]),
166
+ "theme-overrides": t.children.length === 1 ? w.value : x.value
166
167
  }, {
167
- default: p(() => [...n[3] || (n[3] = [
168
- B("开始使用", -1)
169
- ])]),
170
- _: 1
171
- }, 8, ["onClick"])
172
- ])) : C("", !0)
173
- ]),
174
- _: 2
175
- }, 1032, ["title", "theme-overrides"]))), 128))
176
- ])) : C("", !0)
168
+ cover: s(() => [
169
+ o("img", {
170
+ src: r.imageSrc,
171
+ alt: ""
172
+ }, null, 8, _e)
173
+ ]),
174
+ default: s(() => [
175
+ o("div", be, [
176
+ o("div", Ne, f(r.title), 1),
177
+ o("div", ke, f(r.description), 1)
178
+ ]),
179
+ m.platformCode?.includes(r.id) ? (a(), u("div", ye, [
180
+ p(T, {
181
+ round: "",
182
+ size: "tiny",
183
+ type: "primary",
184
+ onClick: (Be) => E(r.id, r.key)
185
+ }, {
186
+ default: s(() => [...i[3] || (i[3] = [
187
+ X("开始使用", -1)
188
+ ])]),
189
+ _: 1
190
+ }, 8, ["onClick"])
191
+ ])) : P("", !0)
192
+ ]),
193
+ _: 2
194
+ }, 1032, ["class", "theme-overrides"])
195
+ ]),
196
+ _: 2
197
+ }, 1024))), 128))
198
+ ]),
199
+ _: 2
200
+ }, 1032, ["cols"])) : P("", !0)
177
201
  ])), 64))
178
202
  ])
179
203
  ])
180
204
  ]),
181
205
  _: 1
182
206
  }, 8, ["show", "style", "x", "y"]),
183
- (r(), y(q, { to: "body" }, [
184
- G(t("div", pe, null, 512), [
185
- [H, i.value]
207
+ (a(), _(Y, { to: "body" }, [
208
+ Z(o("div", Pe, null, 512), [
209
+ [ee, n.value]
186
210
  ])
187
211
  ]))
188
212
  ]);
@@ -190,5 +214,5 @@ const ie = { class: "header" }, ne = { class: "platform-wrap" }, re = { class: "
190
214
  }
191
215
  });
192
216
  export {
193
- Be as default
217
+ ze as default
194
218
  };
@@ -1,25 +1,36 @@
1
1
  import { PopoverProps } from 'naive-ui';
2
- export declare const enum PLATFORM_ENUM {
2
+ export declare const enum BODEN_PLATFORM_ENUM {
3
3
  BASE = 1,// 标注
4
4
  BLINK = 2,// Blink
5
5
  ACCOUNT = 3,// 账号管理平台
6
- VLA = 4
6
+ VLA = 4,// 具身智能采集
7
+ PS = 5
8
+ }
9
+ export declare const enum BODEN_PLATFORM_NAME_ENUM {
10
+ BASE = "BASE",// 标注
11
+ ADS = "ADS",
12
+ STUDIO = "STUDIO",
13
+ OMNI = "OMNI",
14
+ BLINK = "BLINK",// Blink
15
+ ACCOUNT = "ACCOUNT",// 账号管理平台
16
+ ROBO = "ROBO",// 具身智能采集
17
+ PS = "PS"
7
18
  }
8
19
  export type BodenPlatformNavigationProps = {
9
- platformCode?: PLATFORM_ENUM[];
20
+ platformCode?: BODEN_PLATFORM_ENUM[];
10
21
  triggerDisabled?: boolean;
11
22
  x?: PopoverProps['x'];
12
23
  y?: PopoverProps['y'];
13
24
  };
14
25
  export type SubPlatformItem = {
15
- key: string;
26
+ id: BODEN_PLATFORM_ENUM;
27
+ key: BODEN_PLATFORM_NAME_ENUM;
16
28
  title: string;
17
29
  description: string;
18
30
  imageSrc: string;
19
31
  href?: string;
20
32
  };
21
33
  export type PlatformItem = {
22
- id: PLATFORM_ENUM;
23
34
  key: string;
24
35
  title: string;
25
36
  description: string;