base6-ui 2.0.11 → 2.0.13

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.
@@ -5,7 +5,7 @@ declare const enUS: {
5
5
  userCenter: string;
6
6
  logout: string;
7
7
  };
8
- productIntroduction: {
8
+ platformNavigation: {
9
9
  allProducts: string;
10
10
  BasePlatform: string;
11
11
  BasePlatformDescription: string;
@@ -17,8 +17,8 @@ declare const enUS: {
17
17
  OmniPlatformDescription: string;
18
18
  BlinkPlatform: string;
19
19
  BlinkPlatformDescription: string;
20
- SourcePlatform: string;
21
- SourcePlatformDescription: string;
20
+ BricPlatform: string;
21
+ BricPlatformDescription: string;
22
22
  RobotPlatform: string;
23
23
  RobotPlatformDescription: string;
24
24
  };
@@ -2,7 +2,7 @@ import o from "./index.vue2.mjs";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import t from "../../_virtual/_plugin-vue_export-helper.mjs";
5
- const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5775127f"]]);
5
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1b2deb36"]]);
6
6
  export {
7
- i as default
7
+ p as default
8
8
  };
@@ -1,5 +1,5 @@
1
1
  import { NPopover as z, NCard as E, NButton as $ } from "naive-ui";
2
- import { defineComponent as F, ref as h, computed as v, resolveComponent as U, createElementBlock as c, openBlock as r, createVNode as a, createBlock as y, withModifiers as _, normalizeStyle as K, withCtx as m, createElementVNode as t, toDisplayString as p, unref as j, Fragment as I, renderList as P, createCommentVNode as C, createTextVNode as S, Teleport as q, withDirectives as G, vShow as H } from "vue";
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
3
  import J from "../nav-icon/index.vue.mjs";
4
4
  import { useLocale as Q } from "../../hooks/useLocale.mjs";
5
5
  import W from "../../hooks/useNaiveConfigProvideContext.mjs";
@@ -8,14 +8,14 @@ import Y from "../../assets/cover/base-studio.png.mjs";
8
8
  import Z from "../../assets/cover/base-multimodal.png.mjs";
9
9
  import ee from "../../assets/cover/source-robot.png.mjs";
10
10
  import { createCardThemeOverrides as oe, createPopoverCssVar as te } from "./cssVar.mjs";
11
- import { PLATFORM_ENUM as f } from "./interface.mjs";
12
- const ne = { class: "header" }, ie = { class: "platform-wrap" }, re = { class: "platform-item-header" }, se = { class: "icon" }, de = ["onClick"], le = { class: "description" }, ce = {
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 = {
13
13
  key: 0,
14
14
  class: "platform-child-wrap"
15
- }, ae = ["src"], ue = {
15
+ }, ce = ["src"], me = {
16
16
  key: 0,
17
17
  class: "to-use"
18
- }, me = { class: "boden-platform-navigation-panel-mask" }, Se = /* @__PURE__ */ F({
18
+ }, pe = { class: "boden-platform-navigation-panel-mask" }, Be = /* @__PURE__ */ F({
19
19
  __name: "index",
20
20
  props: {
21
21
  platformCode: { default: () => [] },
@@ -24,148 +24,148 @@ const ne = { class: "header" }, ie = { class: "platform-wrap" }, re = { class: "
24
24
  y: { default: 0 }
25
25
  },
26
26
  emits: ["togglePlatform"],
27
- setup(l, { emit: B }) {
28
- const w = l, D = B, N = W(), { t: e } = Q(), u = h(null), n = h(!1), g = v(() => {
27
+ setup(s, { emit: S }) {
28
+ const w = s, D = S, x = W(), { t: e } = Q(), m = h(null), i = h(!1), g = f(() => {
29
29
  const {
30
- name: s = "light"
31
- } = N?.mergedThemeRef.value || {};
32
- return s !== "light";
33
- }), x = [
30
+ name: a = "light"
31
+ } = x?.mergedThemeRef.value || {};
32
+ return a !== "light";
33
+ }), R = [
34
34
  {
35
- id: f.BASE,
35
+ id: u.BASE,
36
36
  key: "base",
37
- title: e("boden.productIntroduction.BasePlatform"),
38
- description: e("boden.productIntroduction.BasePlatformDescription"),
37
+ title: e("boden.platformNavigation.BasePlatform"),
38
+ description: e("boden.platformNavigation.BasePlatformDescription"),
39
39
  svgIcon: "logo-base",
40
40
  children: [
41
41
  {
42
42
  key: "ads",
43
- title: e("boden.productIntroduction.AdsPlatform"),
44
- description: e("boden.productIntroduction.AdsPlatformDescription"),
43
+ title: e("boden.platformNavigation.AdsPlatform"),
44
+ description: e("boden.platformNavigation.AdsPlatformDescription"),
45
45
  imageSrc: X
46
46
  },
47
47
  {
48
48
  key: "studio",
49
- title: e("boden.productIntroduction.StudioPlatform"),
50
- description: e("boden.productIntroduction.StudioPlatformDescription"),
49
+ title: e("boden.platformNavigation.StudioPlatform"),
50
+ description: e("boden.platformNavigation.StudioPlatformDescription"),
51
51
  imageSrc: Y
52
52
  },
53
53
  {
54
54
  key: "omni",
55
- title: e("boden.productIntroduction.OmniPlatform"),
56
- description: e("boden.productIntroduction.OmniPlatformDescription"),
55
+ title: e("boden.platformNavigation.OmniPlatform"),
56
+ description: e("boden.platformNavigation.OmniPlatformDescription"),
57
57
  imageSrc: Z
58
58
  }
59
59
  ]
60
60
  },
61
61
  {
62
- id: f.BLINK,
62
+ id: u.BLINK,
63
63
  key: "blink",
64
- title: e("boden.productIntroduction.BlinkPlatform"),
65
- description: e("boden.productIntroduction.BlinkPlatformDescription"),
64
+ title: e("boden.platformNavigation.BlinkPlatform"),
65
+ description: e("boden.platformNavigation.BlinkPlatformDescription"),
66
66
  svgIcon: "logo-base"
67
67
  },
68
68
  {
69
- id: f.VLA,
70
- key: "source",
71
- title: e("boden.productIntroduction.SourcePlatform"),
72
- description: e("boden.productIntroduction.SourcePlatformDescription"),
69
+ id: u.VLA,
70
+ key: "bric",
71
+ title: e("boden.platformNavigation.BricPlatform"),
72
+ description: e("boden.platformNavigation.BricPlatformDescription"),
73
73
  svgIcon: "logo-base",
74
74
  children: [
75
75
  {
76
76
  key: "robot",
77
- title: e("boden.productIntroduction.RobotPlatform"),
78
- description: e("boden.productIntroduction.RobotPlatformDescription"),
77
+ title: e("boden.platformNavigation.RobotPlatform"),
78
+ description: e("boden.platformNavigation.RobotPlatformDescription"),
79
79
  imageSrc: ee
80
80
  }
81
81
  ]
82
82
  }
83
- ], R = v(() => oe(g.value)), A = v(() => te(g.value)), L = () => {
84
- w.triggerDisabled || (n.value = !n.value);
85
- }, b = (s) => {
86
- D("togglePlatform", s);
87
- }, O = (s) => {
88
- u.value && u.value.instRef && u.value.instRef.contains(s.target) || (n.value = !1);
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);
89
89
  };
90
- return (s, i) => {
90
+ return (a, n) => {
91
91
  const k = U("svg-icon"), T = $, V = E, M = z;
92
- return r(), c("div", null, [
93
- a(J, {
92
+ return r(), d("div", null, [
93
+ c(J, {
94
94
  ref_key: "triggerInstRef",
95
- ref: u,
96
- active: n.value,
97
- disabled: l.triggerDisabled,
98
- onClick: _(L, ["stop"])
95
+ ref: m,
96
+ active: i.value,
97
+ disabled: s.triggerDisabled,
98
+ onClick: N(L, ["stop"])
99
99
  }, null, 8, ["active", "disabled"]),
100
- a(M, {
100
+ c(M, {
101
101
  "content-class": "boden-platform-navigation-panel-popover",
102
102
  trigger: "manual",
103
- show: n.value,
104
- "onUpdate:show": i[2] || (i[2] = (o) => n.value = o),
103
+ show: i.value,
104
+ "onUpdate:show": n[2] || (n[2] = (o) => i.value = o),
105
105
  style: K(A.value),
106
106
  "show-arrow": !1,
107
107
  width: 1058,
108
108
  scrollable: "",
109
- x: l.x,
110
- y: l.y,
109
+ x: s.x,
110
+ y: s.y,
111
111
  "theme-overrides": { padding: "0", space: "0", borderRadius: "3px" },
112
112
  onClickoutside: O
113
113
  }, {
114
- default: m(() => [
114
+ default: p(() => [
115
115
  t("div", {
116
116
  class: "boden-platform-navigation-panel",
117
- onClick: i[1] || (i[1] = _(() => {
117
+ onClick: n[1] || (n[1] = N(() => {
118
118
  }, ["stop"]))
119
119
  }, [
120
- t("div", ne, [
121
- t("div", null, p(j(e)("boden.productIntroduction.allProducts")), 1),
122
- a(k, {
120
+ t("div", ie, [
121
+ t("div", null, v(j(e)("boden.platformNavigation.allProducts")), 1),
122
+ c(k, {
123
123
  icon: "operate-close",
124
124
  size: "16",
125
- onClick: i[0] || (i[0] = (o) => n.value = !1)
125
+ onClick: n[0] || (n[0] = (o) => i.value = !1)
126
126
  })
127
127
  ]),
128
- t("div", ie, [
129
- (r(), c(I, null, P(x, (o) => t("div", {
128
+ t("div", ne, [
129
+ (r(), d(_, null, P(R, (o) => t("div", {
130
130
  key: o.key,
131
131
  class: "platform-item"
132
132
  }, [
133
133
  t("div", re, [
134
- t("div", se, [
135
- a(k, {
134
+ t("div", ae, [
135
+ c(k, {
136
136
  icon: o.svgIcon,
137
137
  size: "32"
138
138
  }, null, 8, ["icon"])
139
139
  ]),
140
140
  t("div", {
141
141
  class: "title",
142
- onClick: (d) => b(o.key)
143
- }, p(o.title), 9, de),
144
- t("div", le, p(o.description), 1)
142
+ onClick: (l) => b(o.key)
143
+ }, v(o.title), 9, le),
144
+ t("div", se, v(o.description), 1)
145
145
  ]),
146
- o.children && o.children.length ? (r(), c("div", ce, [
147
- (r(!0), c(I, null, P(o.children, (d) => (r(), y(V, {
148
- key: d.key,
149
- title: d.title,
150
- "theme-overrides": R.value
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
151
  }, {
152
- cover: m(() => [
152
+ cover: p(() => [
153
153
  t("img", {
154
- src: d.imageSrc,
154
+ src: l.imageSrc,
155
155
  alt: ""
156
- }, null, 8, ae)
156
+ }, null, 8, ce)
157
157
  ]),
158
- default: m(() => [
159
- S(" " + p(d.description) + " ", 1),
160
- l.platformCode?.includes(o.id) ? (r(), c("div", ue, [
161
- a(T, {
158
+ default: p(() => [
159
+ B(" " + v(l.description) + " ", 1),
160
+ s.platformCode?.includes(o.id) ? (r(), d("div", me, [
161
+ c(T, {
162
162
  round: "",
163
163
  size: "tiny",
164
164
  type: "primary",
165
- onClick: (pe) => b(d.key)
165
+ onClick: (ve) => b(l.key)
166
166
  }, {
167
- default: m(() => [...i[3] || (i[3] = [
168
- S("开始使用", -1)
167
+ default: p(() => [...n[3] || (n[3] = [
168
+ B("开始使用", -1)
169
169
  ])]),
170
170
  _: 1
171
171
  }, 8, ["onClick"])
@@ -181,8 +181,8 @@ const ne = { class: "header" }, ie = { class: "platform-wrap" }, re = { class: "
181
181
  _: 1
182
182
  }, 8, ["show", "style", "x", "y"]),
183
183
  (r(), y(q, { to: "body" }, [
184
- G(t("div", me, null, 512), [
185
- [H, n.value]
184
+ G(t("div", pe, null, 512), [
185
+ [H, i.value]
186
186
  ])
187
187
  ]))
188
188
  ]);
@@ -190,5 +190,5 @@ const ne = { class: "header" }, ie = { class: "platform-wrap" }, re = { class: "
190
190
  }
191
191
  });
192
192
  export {
193
- Se as default
193
+ Be as default
194
194
  };
@@ -1,7 +1,7 @@
1
1
  import o from "../../color/dark.mjs";
2
2
  import r from "../../token/dark.mjs";
3
3
  import { ButtonThemeCommon as e } from "./common.mjs";
4
- const t = {
4
+ const c = {
5
5
  ...e,
6
6
  opacityDisabled: "0.4",
7
7
  border: `1px solid ${r["fill-color-2"]}`,
@@ -55,17 +55,16 @@ const t = {
55
55
  colorPressedPrimary: o["color-primary-7"],
56
56
  colorPressedSuccess: o["color-green-7"],
57
57
  colorPressedWarning: o["color-origin-7"],
58
- textColor: o["color-gray-8"],
58
+ textColor: r["color-text-2"],
59
59
  textColorError: r["color-text-5"],
60
60
  textColorPrimary: r["color-text-5"],
61
61
  textColorSuccess: r["color-text-5"],
62
62
  textColorWarning: r["color-text-5"],
63
- textColorText: "#FFFFFF",
64
- textColorDisabled: "rgba(255, 255, 255, 0.75)",
65
- textColorDisabledError: "rgba(255, 255, 255, 0.75)",
66
- textColorDisabledPrimary: "rgba(255, 255, 255, 0.75)",
67
- textColorDisabledSuccess: "rgba(255, 255, 255, 0.75)",
68
- textColorDisabledWarning: "rgba(255, 255, 255, 0.75)",
63
+ textColorDisabled: r["color-text-2"],
64
+ textColorDisabledError: r["color-text-5"],
65
+ textColorDisabledPrimary: r["color-text-5"],
66
+ textColorDisabledSuccess: r["color-text-5"],
67
+ textColorDisabledWarning: r["color-text-5"],
69
68
  textColorFocus: o["color-gray-8"],
70
69
  textColorFocusError: r["color-text-5"],
71
70
  textColorFocusPrimary: r["color-text-5"],
@@ -81,6 +80,14 @@ const t = {
81
80
  textColorPressedPrimary: r["color-text-5"],
82
81
  textColorPressedSuccess: r["color-text-5"],
83
82
  textColorPressedWarning: r["color-text-5"],
83
+ textColorText: r["color-text-2"],
84
+ textColorTextHover: o["color-primary-6"],
85
+ textColorTextFocus: o["color-primary-6"],
86
+ textColorTextDisabled: "rgba(255, 255, 255, 0.5)",
87
+ textColorTextDisabledError: r["color-error-disabled"],
88
+ textColorTextDisabledPrimary: r["color-primary-disabled"],
89
+ textColorTextDisabledSuccess: r["color-success-disabled"],
90
+ textColorTextDisabledWarning: r["color-warning-disabled"],
84
91
  textColorGhost: o["color-gray-8"],
85
92
  textColorGhostError: o["color-red-6"],
86
93
  textColorGhostPrimary: o["color-primary-6"],
@@ -108,5 +115,5 @@ const t = {
108
115
  textColorGhostPressedWarning: o["color-origin-7"]
109
116
  };
110
117
  export {
111
- t as ButtonThemeDark
118
+ c as ButtonThemeDark
112
119
  };
@@ -58,7 +58,14 @@ const c = {
58
58
  textColorFocus: o["color-gray-8"],
59
59
  textColorHover: o["color-gray-8"],
60
60
  textColorPressed: o["color-gray-8"],
61
- textColorText: o["color-gray-10"],
61
+ textColorText: o["color-gray-8"],
62
+ textColorTextHover: o["color-primary-6"],
63
+ textColorTextFocus: o["color-primary-6"],
64
+ textColorTextDisabled: o["color-gray-5"],
65
+ textColorTextDisabledError: o["color-red-3"],
66
+ textColorTextDisabledPrimary: o["color-primary-3"],
67
+ textColorTextDisabledSuccess: o["color-green-3"],
68
+ textColorTextDisabledWarning: o["color-origin-3"],
62
69
  textColorGhost: o["color-gray-8"],
63
70
  textColorGhostError: o["color-red-6"],
64
71
  textColorGhostPrimary: o["color-primary-6"],