base6-ui 2.0.30 → 2.0.32

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 (37) hide show
  1. package/dist/components/platform-header-navigation/src/constant.d.ts +2 -0
  2. package/dist/components/platform-header-navigation/src/interface.d.ts +28 -10
  3. package/dist/components/platform-header-navigation/src/platform-header-navigation.d.ts +21 -20
  4. package/dist/components/platform-header-navigation/src/utils.d.ts +2 -0
  5. package/dist/index.umd.js +8 -8
  6. package/es/components/global-header/index.vue.mjs +1 -1
  7. package/es/components/layout/components/{WrapHeader.vue2.mjs → WrapHeader.vue.mjs} +1 -1
  8. package/es/components/layout/index.vue2.mjs +1 -1
  9. package/es/components/platform-header-navigation/src/constant.d.ts +2 -0
  10. package/es/components/platform-header-navigation/src/constant.mjs +80 -4
  11. package/es/components/platform-header-navigation/src/interface.d.ts +28 -10
  12. package/es/components/platform-header-navigation/src/interface.mjs +5 -3
  13. package/es/components/platform-header-navigation/src/platform-header-navigation.d.ts +21 -20
  14. package/es/components/platform-header-navigation/src/platform-header-navigation.mjs +91 -148
  15. package/es/components/platform-header-navigation/src/styles/index.cssr.mjs +7 -3
  16. package/es/components/platform-header-navigation/src/utils.d.ts +2 -0
  17. package/es/components/platform-header-navigation/src/utils.mjs +6 -0
  18. package/es/config/themes/components/baseComponent/light.mjs +4 -4
  19. package/es/config/themes/components/checkbox/light.mjs +1 -1
  20. package/es/index.mjs +69 -68
  21. package/lib/components/global-header/index.vue.js +1 -1
  22. package/lib/components/layout/components/WrapHeader.vue.js +1 -0
  23. package/lib/components/layout/index.vue2.js +1 -1
  24. package/lib/components/platform-header-navigation/src/constant.d.ts +2 -0
  25. package/lib/components/platform-header-navigation/src/constant.js +1 -1
  26. package/lib/components/platform-header-navigation/src/interface.d.ts +28 -10
  27. package/lib/components/platform-header-navigation/src/interface.js +1 -1
  28. package/lib/components/platform-header-navigation/src/platform-header-navigation.d.ts +21 -20
  29. package/lib/components/platform-header-navigation/src/platform-header-navigation.js +1 -1
  30. package/lib/components/platform-header-navigation/src/styles/index.cssr.js +1 -1
  31. package/lib/components/platform-header-navigation/src/utils.d.ts +2 -0
  32. package/lib/components/platform-header-navigation/src/utils.js +1 -0
  33. package/lib/config/themes/components/baseComponent/light.js +1 -1
  34. package/lib/config/themes/components/checkbox/light.js +1 -1
  35. package/lib/index.js +1 -1
  36. package/package.json +1 -1
  37. package/lib/components/layout/components/WrapHeader.vue2.js +0 -1
@@ -1,7 +1,7 @@
1
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
2
  import B from "./title.vue.mjs";
3
3
  import L from "../system-actions/index.vue.mjs";
4
- /* empty css */
4
+ /* empty css */
5
5
  import "../layout/options.mjs";
6
6
  /* empty css */
7
7
  import P from "../layout/header/index.vue.mjs";
@@ -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,3 +1,4 @@
1
+ import { PlatformNavigationItem } from './interface';
1
2
  export declare const enum BODEN_PLATFORM_ENUM {
2
3
  BASE = 1,// 标注
3
4
  BLINK = 2,// Blink
@@ -19,3 +20,4 @@ export declare const enum BODEN_PLATFORM_FEATURE {
19
20
  Data_Annotation = 2,
20
21
  Data_Management = 3
21
22
  }
23
+ export declare const bodenPlatformNavigation: PlatformNavigationItem[];
@@ -1,6 +1,82 @@
1
- var t = /* @__PURE__ */ ((a) => (a[a.BASE = 1] = "BASE", a[a.BLINK = 2] = "BLINK", a[a.ACCOUNT = 3] = "ACCOUNT", a[a.ROBO = 4] = "ROBO", a[a.FORGE = 5] = "FORGE", a))(t || {}), n = /* @__PURE__ */ ((a) => (a.ADS = "ADS", a.STUDIO = "STUDIO", a.OMNI = "OMNI", a.BLINK = "BLINK", a.ACCOUNT = "ACCOUNT", a.ROBO = "ROBO", a.FORGE = "PS", a))(n || {}), e = /* @__PURE__ */ ((a) => (a[a.Data_Collection = 1] = "Data_Collection", a[a.Data_Annotation = 2] = "Data_Annotation", a[a.Data_Management = 3] = "Data_Management", a))(e || {});
1
+ import { h as t } from "vue";
2
+ import e from "../../../_internal/icons/ads.mjs";
3
+ import n from "../../../_internal/icons/blink.mjs";
4
+ import i from "../../../_internal/icons/forge.mjs";
5
+ import a from "../../../_internal/icons/omni.mjs";
6
+ import r from "../../../_internal/icons/robo.mjs";
7
+ import m from "../../../_internal/icons/studio.mjs";
8
+ var l = /* @__PURE__ */ ((o) => (o[o.BASE = 1] = "BASE", o[o.BLINK = 2] = "BLINK", o[o.ACCOUNT = 3] = "ACCOUNT", o[o.ROBO = 4] = "ROBO", o[o.FORGE = 5] = "FORGE", o))(l || {}), I = /* @__PURE__ */ ((o) => (o.ADS = "ADS", o.STUDIO = "STUDIO", o.OMNI = "OMNI", o.BLINK = "BLINK", o.ACCOUNT = "ACCOUNT", o.ROBO = "ROBO", o.FORGE = "PS", o))(I || {}), p = /* @__PURE__ */ ((o) => (o[o.Data_Collection = 1] = "Data_Collection", o[o.Data_Annotation = 2] = "Data_Annotation", o[o.Data_Management = 3] = "Data_Management", o))(p || {});
9
+ const k = [
10
+ {
11
+ key: 1,
12
+ label: "数据采集",
13
+ option: [
14
+ {
15
+ key: 4,
16
+ platformId: 4,
17
+ moduleName: "ROBO",
18
+ title: "具身智能采集 BRIC Robo",
19
+ description: "专为具身智能研发打造,支持道场场景管理与多类型机器人组网(机器臂/人形)。",
20
+ svgIcon: () => t(r)
21
+ },
22
+ {
23
+ key: 5,
24
+ platformId: 5,
25
+ moduleName: "PS",
26
+ title: "图片采集 BRIC Forge",
27
+ description: "一站式数据采集与编辑平台,支持源图下发与任务化管理,采集人员可基于源图按规范完成图像编辑与蒙版制作。",
28
+ svgIcon: () => t(i)
29
+ }
30
+ ]
31
+ },
32
+ {
33
+ key: 2,
34
+ label: "数据标注",
35
+ option: [
36
+ {
37
+ key: 1,
38
+ platformId: 1,
39
+ moduleName: "ADS",
40
+ title: "自动驾驶标注平台 BASE ADS",
41
+ description: "自动驾驶标注平台支持点云、图像等连续的数据的标注与质检。",
42
+ svgIcon: () => t(e)
43
+ },
44
+ {
45
+ key: 2,
46
+ platformId: 1,
47
+ moduleName: "STUDIO",
48
+ title: "通用标注平台 BASE Studio",
49
+ description: "通用标注平台,支持图像、音频、文本、视频等多类型数据的标注与质检。",
50
+ svgIcon: () => t(m)
51
+ },
52
+ {
53
+ key: 3,
54
+ platformId: 1,
55
+ moduleName: "OMNI",
56
+ title: "多模态标注平台 BASE Omni",
57
+ description: "支持多源异构数据协同标注的智能系统,覆盖图像、视频、音频、文本、点云等多种模态数据类型。",
58
+ svgIcon: () => t(a)
59
+ }
60
+ ]
61
+ },
62
+ {
63
+ key: 3,
64
+ label: "数据管理",
65
+ option: [
66
+ {
67
+ key: 6,
68
+ platformId: 2,
69
+ moduleName: "BLINK",
70
+ title: "数据管理平台 Blink",
71
+ description: "一站式数据资产运营与服务中枢,集三大核心能力于一体:数据流转管理、数据集市与智能检索,三者有机协同,打通“管—用—找”关键环节,助力组织高效释放数据价值。",
72
+ svgIcon: () => t(n)
73
+ }
74
+ ]
75
+ }
76
+ ];
2
77
  export {
3
- t as BODEN_PLATFORM_ENUM,
4
- e as BODEN_PLATFORM_FEATURE,
5
- n as BODEN_PLATFORM_NAME_ENUM
78
+ l as BODEN_PLATFORM_ENUM,
79
+ p as BODEN_PLATFORM_FEATURE,
80
+ I as BODEN_PLATFORM_NAME_ENUM,
81
+ k as bodenPlatformNavigation
6
82
  };
@@ -1,18 +1,32 @@
1
- import { Component, ExtractPublicPropTypes, PropType } from 'vue';
2
- import { BODEN_PLATFORM_ENUM, BODEN_PLATFORM_NAME_ENUM, BODEN_PLATFORM_FEATURE } from './constant';
3
- export type PlatformItem = {
4
- id: string | number;
5
- featureType: BODEN_PLATFORM_FEATURE;
1
+ import { ExtractPublicPropTypes, PropType, VNode, VNodeChild } from 'vue';
2
+ import { BODEN_PLATFORM_ENUM, BODEN_PLATFORM_NAME_ENUM } from './constant';
3
+ export type PlatformRenderOption = {
4
+ key: string | number;
5
+ type: 'render';
6
+ render: () => VNodeChild;
7
+ [key: string]: unknown;
8
+ };
9
+ export type PlatformOption = {
10
+ key: string | number;
6
11
  platformId: BODEN_PLATFORM_ENUM;
7
12
  moduleName: BODEN_PLATFORM_NAME_ENUM;
8
13
  title: string;
9
14
  description: string;
10
- svgIcon: Component | undefined;
15
+ disabled?: boolean;
16
+ svgIcon?: () => VNode;
17
+ [key: string]: unknown;
18
+ };
19
+ export type PlatformNavigationItem = {
20
+ key: string | number;
21
+ label: string;
22
+ i18nKey?: string;
23
+ option?: Array<PlatformMixedOption>;
11
24
  };
25
+ export type PlatformMixedOption = PlatformOption | PlatformRenderOption;
12
26
  export declare const bodenPlatformHeaderNavigationProps: {
13
- readonly platformUrlMap: {
14
- readonly type: PropType<Partial<Record<BODEN_PLATFORM_ENUM, string>>>;
15
- readonly default: undefined;
27
+ readonly platformNavigation: {
28
+ readonly type: PropType<PlatformNavigationItem[]>;
29
+ readonly default: () => PlatformNavigationItem[];
16
30
  };
17
31
  readonly popoverX: {
18
32
  readonly type: NumberConstructor;
@@ -22,6 +36,10 @@ export declare const bodenPlatformHeaderNavigationProps: {
22
36
  readonly type: NumberConstructor;
23
37
  readonly default: 0;
24
38
  };
25
- readonly onTogglePlatform: PropType<(code: BODEN_PLATFORM_ENUM, name: BODEN_PLATFORM_NAME_ENUM) => void>;
39
+ readonly renderOption: PropType<(params: {
40
+ node: VNode;
41
+ option: PlatformOption;
42
+ }) => VNodeChild>;
43
+ readonly onTogglePlatform: PropType<(code: BODEN_PLATFORM_ENUM, name: BODEN_PLATFORM_NAME_ENUM, option: PlatformOption) => void>;
26
44
  };
27
45
  export type BodenPlatformHeaderNavigationProps = ExtractPublicPropTypes<typeof bodenPlatformHeaderNavigationProps>;
@@ -1,7 +1,8 @@
1
+ import { bodenPlatformNavigation as o } from "./constant.mjs";
1
2
  const e = {
2
- platformUrlMap: {
3
- type: Object,
4
- default: void 0
3
+ platformNavigation: {
4
+ type: Array,
5
+ default: () => o
5
6
  },
6
7
  popoverX: {
7
8
  type: Number,
@@ -11,6 +12,7 @@ const e = {
11
12
  type: Number,
12
13
  default: 0
13
14
  },
15
+ renderOption: Function,
14
16
  onTogglePlatform: Function
15
17
  };
16
18
  export {
@@ -1,9 +1,8 @@
1
- import { BODEN_PLATFORM_ENUM, BODEN_PLATFORM_NAME_ENUM, BODEN_PLATFORM_FEATURE } from './constant';
2
- import { PlatformItem } from './interface';
1
+ import { PlatformOption } from './interface';
3
2
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
- readonly platformUrlMap: {
5
- readonly type: import('vue').PropType<Partial<Record<BODEN_PLATFORM_ENUM, string>>>;
6
- readonly default: undefined;
3
+ readonly platformNavigation: {
4
+ readonly type: import('vue').PropType<import('./interface').PlatformNavigationItem[]>;
5
+ readonly default: () => import('./interface').PlatformNavigationItem[];
7
6
  };
8
7
  readonly popoverX: {
9
8
  readonly type: NumberConstructor;
@@ -13,9 +12,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
13
12
  readonly type: NumberConstructor;
14
13
  readonly default: 0;
15
14
  };
16
- readonly onTogglePlatform: import('vue').PropType<(code: BODEN_PLATFORM_ENUM, name: BODEN_PLATFORM_NAME_ENUM) => void>;
15
+ readonly renderOption: import('vue').PropType<(params: {
16
+ node: import('vue').VNode;
17
+ option: PlatformOption;
18
+ }) => import('vue').VNodeChild>;
19
+ readonly onTogglePlatform: import('vue').PropType<(code: import('./constant').BODEN_PLATFORM_ENUM, name: import('./constant').BODEN_PLATFORM_NAME_ENUM, option: PlatformOption) => void>;
17
20
  }>, {
18
- tabValue: import('vue').Ref<"" | BODEN_PLATFORM_FEATURE, "" | BODEN_PLATFORM_FEATURE>;
21
+ tabValue: import('vue').Ref<string | number, string | number>;
19
22
  dropDownVisible: import('vue').ComputedRef<boolean>;
20
23
  navStyleCssVar: import('vue').ComputedRef<{
21
24
  '--boden-platform-navigation-option-title-color': string;
@@ -27,11 +30,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
27
30
  '--boden-platform-navigation-option-icon-hover': string;
28
31
  '--boden-platform-navigation-option-icon-disabled-opacity': number;
29
32
  }>;
30
- platformFeatures: {
31
- value: BODEN_PLATFORM_FEATURE;
32
- label: string;
33
- }[];
34
- platformNav: PlatformItem[];
35
33
  tabThemeOverrides: import('vue').ComputedRef<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins').Theme<"Tabs", {
36
34
  colorSegment: string;
37
35
  tabFontSizeCard: string;
@@ -123,16 +121,15 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
123
121
  closeSize: string;
124
122
  closeIconSize: string;
125
123
  }, any>> | undefined>;
126
- isDisabled: (platformCode: BODEN_PLATFORM_ENUM) => boolean;
127
- onClick: (platform: PlatformItem) => void;
124
+ onClick: (platform: PlatformOption) => void;
128
125
  onMouseLeave: () => void;
129
126
  onPopoverMouseenter: () => void;
130
127
  onBeforeLeave: () => boolean;
131
- setTabValue: (value: BODEN_PLATFORM_FEATURE) => void;
128
+ setTabValue: (value: string | number) => void;
132
129
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
133
- readonly platformUrlMap: {
134
- readonly type: import('vue').PropType<Partial<Record<BODEN_PLATFORM_ENUM, string>>>;
135
- readonly default: undefined;
130
+ readonly platformNavigation: {
131
+ readonly type: import('vue').PropType<import('./interface').PlatformNavigationItem[]>;
132
+ readonly default: () => import('./interface').PlatformNavigationItem[];
136
133
  };
137
134
  readonly popoverX: {
138
135
  readonly type: NumberConstructor;
@@ -142,9 +139,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
142
139
  readonly type: NumberConstructor;
143
140
  readonly default: 0;
144
141
  };
145
- readonly onTogglePlatform: import('vue').PropType<(code: BODEN_PLATFORM_ENUM, name: BODEN_PLATFORM_NAME_ENUM) => void>;
142
+ readonly renderOption: import('vue').PropType<(params: {
143
+ node: import('vue').VNode;
144
+ option: PlatformOption;
145
+ }) => import('vue').VNodeChild>;
146
+ readonly onTogglePlatform: import('vue').PropType<(code: import('./constant').BODEN_PLATFORM_ENUM, name: import('./constant').BODEN_PLATFORM_NAME_ENUM, option: PlatformOption) => void>;
146
147
  }>> & Readonly<{}>, {
147
- readonly platformUrlMap: Partial<Record<BODEN_PLATFORM_ENUM, string>>;
148
+ readonly platformNavigation: import('./interface').PlatformNavigationItem[];
148
149
  readonly popoverX: number;
149
150
  readonly popoverY: number;
150
151
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -1,156 +1,118 @@
1
- import { defineComponent as M, createVNode as o, mergeProps as g, ref as D, computed as d } from "vue";
2
- import { NTabs as O, NTab as A, NPopover as L, NIcon as T, NEllipsis as E } from "naive-ui";
3
- import { prefix as i } from "../../../_constant/base.mjs";
4
- import y from "../../../_mixins/use-theme.mjs";
5
- import C from "../../../_internal/icons/ads.mjs";
1
+ import { defineComponent as N, createVNode as o, mergeProps as v, ref as y, computed as p } from "vue";
2
+ import { NTabs as T, NTab as k, NPopover as C, NIcon as f, NEllipsis as V } from "naive-ui";
3
+ import { prefix as n } from "../../../_constant/base.mjs";
4
+ import M from "../../../_mixins/use-theme.mjs";
6
5
  import P from "../../../_internal/icons/arrow-right.mjs";
7
- import R from "../../../_internal/icons/blink.mjs";
8
- import S from "../../../_internal/icons/forge.mjs";
9
- import V from "../../../_internal/icons/omni.mjs";
10
- import F from "../../../_internal/icons/robo.mjs";
11
- import k from "../../../_internal/icons/studio.mjs";
12
- import w from "./styles/index.cssr.mjs";
13
- import { BODEN_PLATFORM_FEATURE as t, BODEN_PLATFORM_NAME_ENUM as n, BODEN_PLATFORM_ENUM as l } from "./constant.mjs";
14
- import { bodenPlatformHeaderNavigationProps as $ } from "./interface.mjs";
15
- import { createNavCssVar as U, createTabThemeOverrides as x } from "./useCssVars.mjs";
16
- import H from "../../../hooks/useNaiveConfigProvideContext.mjs";
17
- const me = /* @__PURE__ */ M({
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";
10
+ import { isRenderNode as _ } from "./utils.mjs";
11
+ const F = /* @__PURE__ */ N({
18
12
  name: "BodenPlatformHeaderNavigation",
19
- props: $,
20
- setup(s) {
21
- y("-platform-header-navigation", w);
22
- const c = H(), a = D(""), m = d(() => {
13
+ props: w,
14
+ setup(d) {
15
+ M("-platform-header-navigation", $);
16
+ const i = x(), a = y(""), l = p(() => {
23
17
  const {
24
- name: r = "light"
25
- } = c?.mergedThemeRef.value || {};
26
- return r !== "light";
27
- }), f = d(() => U(m.value)), p = d(() => x(m.value)), u = d(() => a.value !== "");
18
+ name: s = "light"
19
+ } = i?.mergedThemeRef.value || {};
20
+ return s !== "light";
21
+ }), r = p(() => L(l.value)), m = p(() => O(l.value)), u = p(() => a.value !== "");
28
22
  let e;
29
- const h = [{
30
- value: t.Data_Collection,
31
- label: "数据采集"
32
- }, {
33
- value: t.Data_Annotation,
34
- label: "数据标注"
35
- }, {
36
- value: t.Data_Management,
37
- label: "数据管理"
38
- }], b = [{
39
- id: 1,
40
- featureType: t.Data_Annotation,
41
- platformId: l.BASE,
42
- moduleName: n.ADS,
43
- title: "自动驾驶标注平台 BASE ADS",
44
- description: "自动驾驶标注平台支持点云、图像等连续的数据的标注与质检。",
45
- svgIcon: C
46
- }, {
47
- id: 2,
48
- featureType: t.Data_Annotation,
49
- platformId: l.BASE,
50
- moduleName: n.STUDIO,
51
- title: "通用标注平台 BASE Studio",
52
- description: "通用标注平台,支持图像、音频、文本、视频等多类型数据的标注与质检。",
53
- svgIcon: k
54
- }, {
55
- id: 3,
56
- featureType: t.Data_Annotation,
57
- platformId: l.BASE,
58
- moduleName: n.OMNI,
59
- title: "多模态标注平台 BASE Omni",
60
- description: "支持多源异构数据协同标注的智能系统,覆盖图像、视频、音频、文本、点云等多种模态数据类型。",
61
- svgIcon: V
62
- }, {
63
- id: 4,
64
- featureType: t.Data_Collection,
65
- platformId: l.ROBO,
66
- moduleName: n.ROBO,
67
- title: "具身智能采集 BRIC Robo",
68
- description: "专为具身智能研发打造,支持道场场景管理与多类型机器人组网(机器臂/人形)。",
69
- svgIcon: F
70
- }, {
71
- id: 5,
72
- featureType: t.Data_Collection,
73
- platformId: l.FORGE,
74
- moduleName: n.FORGE,
75
- title: "图片采集 BRIC Forge",
76
- description: "一站式数据采集与编辑平台,支持源图下发与任务化管理,采集人员可基于源图按规范完成图像编辑与蒙版制作。",
77
- svgIcon: S
78
- }, {
79
- id: 6,
80
- featureType: t.Data_Management,
81
- platformId: l.BLINK,
82
- moduleName: n.BLINK,
83
- title: "数据管理平台 Blink",
84
- description: "一站式数据资产运营与服务中枢,集三大核心能力于一体:数据流转管理、数据集市与智能检索,三者有机协同,打通“管—用—找”关键环节,助力组织高效释放数据价值。",
85
- svgIcon: R
86
- }], B = (r) => {
87
- a.value = r;
88
- }, v = () => {
23
+ const t = (s) => {
24
+ a.value = s;
25
+ }, c = () => {
89
26
  e && clearTimeout(e);
90
- }, N = (r) => !s.platformUrlMap || !s.platformUrlMap[r];
27
+ };
91
28
  return {
92
29
  tabValue: a,
93
30
  dropDownVisible: u,
94
- navStyleCssVar: f,
95
- platformFeatures: h,
96
- platformNav: b,
97
- tabThemeOverrides: p,
98
- isDisabled: N,
99
- onClick: (r) => {
31
+ navStyleCssVar: r,
32
+ tabThemeOverrides: m,
33
+ onClick: (s) => {
100
34
  const {
101
- platformId: I,
102
- moduleName: _
103
- } = r;
104
- N(I) || s.onTogglePlatform?.(I, _);
35
+ platformId: h,
36
+ moduleName: g,
37
+ disabled: b
38
+ } = s;
39
+ b || d.onTogglePlatform?.(h, g, s);
105
40
  },
106
41
  onMouseLeave: () => {
107
- v(), e = setTimeout(() => {
42
+ c(), e = setTimeout(() => {
108
43
  a.value = "", e = void 0;
109
44
  }, 300);
110
45
  },
111
46
  onPopoverMouseenter: () => {
112
- v();
47
+ c();
113
48
  },
114
- onBeforeLeave: () => (v(), !0),
115
- setTabValue: B
49
+ onBeforeLeave: () => (c(), !0),
50
+ setTabValue: t
116
51
  };
117
52
  },
118
53
  render() {
119
54
  const {
120
- dropDownVisible: s,
121
- platformFeatures: c,
122
- tabValue: a,
123
- onMouseLeave: m,
124
- onBeforeLeave: f,
125
- $props: p,
126
- $attrs: u
127
- } = this;
128
- return o("div", g({
129
- class: [`${i}-platform-header-navigation`]
130
- }, u), [o(O, g({
131
- value: a,
55
+ dropDownVisible: d,
56
+ tabValue: i,
57
+ onMouseLeave: a,
58
+ onBeforeLeave: l,
59
+ $props: r,
60
+ $attrs: m
61
+ } = this, u = (e) => {
62
+ const t = o("div", {
63
+ class: [`${n}-platform-option`, e.disabled && `${n}-platform-option--disabled`],
64
+ key: e.key,
65
+ onClick: () => this.onClick(e)
66
+ }, [o(f, {
67
+ class: `${n}-platform-option__logo`,
68
+ size: 46,
69
+ component: e.svgIcon?.()
70
+ }, null), o("div", {
71
+ class: `${n}-platform-option__content`
72
+ }, [o("div", {
73
+ class: "title"
74
+ }, [e.title]), o(V, {
75
+ class: "description",
76
+ tooltip: !1
77
+ }, {
78
+ default: () => [e.description]
79
+ })]), o("span", {
80
+ class: `${n}-platform-option__arrow`
81
+ }, [o(f, {
82
+ size: 24,
83
+ component: P
84
+ }, null)])]);
85
+ return r.renderOption ? r.renderOption({
86
+ node: t,
87
+ option: e
88
+ }) : t;
89
+ };
90
+ return o("div", v({
91
+ class: [`${n}-platform-header-navigation`]
92
+ }, m), [o(T, v({
93
+ value: i,
132
94
  trigger: "hover",
133
95
  onUpdateValue: this.setTabValue,
134
- onBeforeLeave: f,
96
+ onBeforeLeave: l,
135
97
  themeOverrides: this.tabThemeOverrides
136
98
  }, {
137
- onMouseleave: m
99
+ onMouseleave: a
138
100
  }), {
139
- default: () => c.map((e) => o(A, {
140
- key: e.value,
141
- name: e.value
101
+ default: () => r.platformNavigation.map((e) => o(k, {
102
+ key: e.key,
103
+ name: e.key
142
104
  }, {
143
105
  default: () => e.label
144
106
  }))
145
- }), o(L, g({
146
- class: [`${i}-platform-header-dropdown`],
107
+ }), o(C, v({
108
+ class: [`${n}-platform-header-dropdown`],
147
109
  trigger: "manual",
148
110
  placement: "bottom",
149
- show: s,
111
+ show: d,
150
112
  "show-arrow": !1,
151
113
  width: 666,
152
- x: p.popoverX,
153
- y: p.popoverY,
114
+ x: r.popoverX,
115
+ y: r.popoverY,
154
116
  "theme-overrides": {
155
117
  padding: "32px",
156
118
  space: "0",
@@ -158,39 +120,20 @@ const me = /* @__PURE__ */ M({
158
120
  }
159
121
  }, {
160
122
  onMouseenter: this.onPopoverMouseenter,
161
- onMouseleave: m
123
+ onMouseleave: a
162
124
  }), {
163
125
  default: () => o("div", {
164
126
  style: this.navStyleCssVar
165
- }, [this.platformNav.map((e) => o("div", {
166
- class: [`${i}-platform-option`, this.isDisabled(e.platformId) && `${i}-platform-option--disabled`],
127
+ }, [r.platformNavigation.map((e) => o("div", {
128
+ key: e.key,
129
+ class: `${n}-platform-panel`,
167
130
  style: {
168
- display: a !== e.featureType ? "none" : ""
169
- },
170
- key: e.id,
171
- onClick: () => this.onClick(e)
172
- }, [o(T, {
173
- class: `${i}-platform-option__logo`,
174
- size: 46,
175
- component: e.svgIcon
176
- }, null), o("div", {
177
- class: `${i}-platform-option__content`
178
- }, [o("div", {
179
- class: "title"
180
- }, [e.title]), o(E, {
181
- class: "description",
182
- tooltip: !1
183
- }, {
184
- default: () => [e.description]
185
- })]), o("span", {
186
- class: `${i}-platform-option__arrow`
187
- }, [o(T, {
188
- size: 24,
189
- component: P
190
- }, null)])]))])
131
+ display: i !== e.key ? "none" : ""
132
+ }
133
+ }, [e.option?.map((t) => _(t) ? t.render() : u(t))]))])
191
134
  })]);
192
135
  }
193
136
  });
194
137
  export {
195
- me as default
138
+ F as default
196
139
  };
@@ -1,4 +1,4 @@
1
- import { c as o, cB as t, cM as a, cNotM as r, cE as i } from "../../../../_utils/cssr.mjs";
1
+ import { c as o, cB as t, cM as a, cNotM as n, cE as i } from "../../../../_utils/cssr.mjs";
2
2
  const e = o([
3
3
  t(
4
4
  "platform-header-navigation",
@@ -21,11 +21,15 @@ const e = o([
21
21
  t("platform-header-dropdown", {
22
22
  height: "auto"
23
23
  }, [
24
+ t("platform-panel", {
25
+ display: "flex",
26
+ flexDirection: "column",
27
+ gap: "16px"
28
+ }),
24
29
  t("platform-option", {
25
30
  display: "flex",
26
31
  alignItems: "center",
27
32
  padding: "0px 12px",
28
- margin: "8px 0",
29
33
  borderRadius: "5px",
30
34
  overflow: "hidden"
31
35
  }, [
@@ -36,7 +40,7 @@ const e = o([
36
40
  o(".title", { color: "var(--boden-platform-navigation-option-title-color-disabled)" }),
37
41
  o(".description", { color: "var(--boden-platform-navigation-option-description-color-disabled)" })
38
42
  ]),
39
- r("disabled", [
43
+ n("disabled", [
40
44
  o("&:hover", {
41
45
  backgroundColor: "var(--boden-platform-navigation-option-color-hover)",
42
46
  cursor: "pointer"
@@ -0,0 +1,2 @@
1
+ import { PlatformRenderOption, PlatformMixedOption } from './interface';
2
+ export declare function isRenderNode(rawNode: PlatformMixedOption): rawNode is PlatformRenderOption;
@@ -0,0 +1,6 @@
1
+ function r(e) {
2
+ return e.type === "render";
3
+ }
4
+ export {
5
+ r as isRenderNode
6
+ };
@@ -8,7 +8,7 @@ const c = {
8
8
  peers: {
9
9
  Popover: {
10
10
  color: o["color-gray-10"],
11
- textColor: e["color-text-1"]
11
+ textColor: e["color-text-5"]
12
12
  }
13
13
  }
14
14
  }, d = {
@@ -54,7 +54,7 @@ const c = {
54
54
  /* 文字颜色 */
55
55
  itemTextColor: o["color-gray-10"],
56
56
  // itemTextColorPressed: 'red', /* 按下页码文字颜色 */
57
- itemTextColorActive: e["color-text-1"],
57
+ itemTextColorActive: e["color-text-5"],
58
58
  /* 当前页码文字颜色 */
59
59
  /* 背景颜色 */
60
60
  itemColorActive: o["color-primary-6"],
@@ -235,7 +235,7 @@ const c = {
235
235
  tabGapSmallSegment: "12px",
236
236
  tabGapMediumSegment: "12px ",
237
237
  tabGapLargeSegment: "12px ",
238
- colorSegment: e["color-text-1"],
238
+ colorSegment: e["color-text-5"],
239
239
  /* Segment 类型背景色 */
240
240
  tabColorSegment: o["color-primary-2"],
241
241
  /* Segment 类型标签背景色 */
@@ -295,7 +295,7 @@ const c = {
295
295
  /* 进行状态指示器背景色 */
296
296
  indicatorTextColorWait: o["color-gray-6"],
297
297
  /* 等待状态指示器文字颜色 */
298
- indicatorTextColorProcess: e["color-text-1"],
298
+ indicatorTextColorProcess: e["color-text-5"],
299
299
  /* 进行状态指示器文字颜色 */
300
300
  indicatorTextColorFinish: o["color-primary-6"],
301
301
  /* 完成状态指示器文字颜色 */
@@ -12,7 +12,7 @@ const a = {
12
12
  colorChecked: o["color-primary-6"],
13
13
  colorDisabled: o["color-gray-3"],
14
14
  colorDisabledChecked: o["color-primary-3"],
15
- checkMarkColorDisabledChecked: r["color-text-1"],
15
+ checkMarkColorDisabledChecked: r["color-text-5"],
16
16
  textColor: o["color-gray-10"],
17
17
  textColorDisabled: o["color-gray-4"]
18
18
  };