base6-ui 1.1.14 → 1.1.15

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 (170) hide show
  1. package/dist/components/BaseConfigProvider/constants.d.ts +3 -0
  2. package/dist/components/BaseConfigProvider/index.d.ts +2 -0
  3. package/dist/components/BaseConfigProvider/index.vue.d.ts +18 -0
  4. package/dist/components/BaseConfigProvider/locale-base.d.ts +3 -0
  5. package/dist/components/BaseConfigProvider/locale-naive.d.ts +4 -0
  6. package/dist/components/BaseConfigProvider/type.d.ts +16 -0
  7. package/dist/components/BaseLayout/Default/index.vue.d.ts +7 -5
  8. package/dist/components/BaseLayout/Default/type.d.ts +6 -8
  9. package/dist/components/BaseProductIntroduction/cssVar.d.ts +3 -0
  10. package/dist/components/BaseProgress/cssVar.d.ts +8 -0
  11. package/dist/components/BaseProgress/index.d.ts +128 -3
  12. package/dist/components/BaseRadio/cssVar.d.ts +5 -0
  13. package/dist/components/BaseSwitch/cssVar.d.ts +7 -0
  14. package/dist/components/BaseSystemActions/cssVar.d.ts +7 -0
  15. package/dist/components/BaseSystemActions/index.d.ts +2 -0
  16. package/dist/components/BaseSystemActions/index.vue.d.ts +13 -0
  17. package/dist/components/BaseSystemActions/type.d.ts +9 -0
  18. package/dist/components/index.d.ts +2 -0
  19. package/dist/config/themes/components/progress/dark.d.ts +2 -3
  20. package/dist/config/themes/components/progress/light.d.ts +2 -3
  21. package/dist/config/themes/components/radio/dark.d.ts +2 -3
  22. package/dist/config/themes/components/radio/light.d.ts +2 -3
  23. package/dist/config/themes/components/switch/common.d.ts +2 -3
  24. package/dist/config/themes/components/switch/dark.d.ts +2 -3
  25. package/dist/config/themes/components/switch/light.d.ts +2 -3
  26. package/dist/enum/locale.d.ts +4 -0
  27. package/dist/hooks/useLocale.d.ts +17 -0
  28. package/dist/index.css +1 -1
  29. package/dist/index.d.ts +1 -0
  30. package/dist/index.umd.js +1 -1
  31. package/dist/locale/index.d.ts +3 -0
  32. package/dist/locale/lang/en-us.d.ts +26 -0
  33. package/dist/locale/lang/zh-cn.d.ts +3 -0
  34. package/dist/types/themes/components.d.ts +5 -0
  35. package/dist/utils/typescript.d.ts +61 -0
  36. package/es/components/BaseConfigProvider/constants.d.ts +3 -0
  37. package/es/components/BaseConfigProvider/constants.mjs +4 -0
  38. package/es/components/BaseConfigProvider/index.d.ts +2 -0
  39. package/es/components/BaseConfigProvider/index.vue.d.ts +18 -0
  40. package/es/components/BaseConfigProvider/index.vue.mjs +54 -0
  41. package/es/components/BaseConfigProvider/index.vue2.mjs +4 -0
  42. package/es/components/BaseConfigProvider/locale-base.d.ts +3 -0
  43. package/es/components/BaseConfigProvider/locale-base.mjs +9 -0
  44. package/es/components/BaseConfigProvider/locale-naive.d.ts +4 -0
  45. package/es/components/BaseConfigProvider/locale-naive.mjs +12 -0
  46. package/es/components/BaseConfigProvider/type.d.ts +16 -0
  47. package/es/components/BaseLayout/Default/index.vue.d.ts +7 -5
  48. package/es/components/BaseLayout/Default/index.vue.mjs +2 -2
  49. package/es/components/BaseLayout/Default/index.vue2.mjs +42 -38
  50. package/es/components/BaseLayout/Default/layoutHeader/index.vue.mjs +26 -19
  51. package/es/components/BaseLayout/Default/type.d.ts +6 -8
  52. package/es/components/BaseProductIntroduction/cssVar.d.ts +3 -0
  53. package/es/components/BaseProductIntroduction/cssVar.mjs +29 -24
  54. package/es/components/BaseProductIntroduction/index.vue.mjs +1 -1
  55. package/es/components/BaseProductIntroduction/index.vue2.mjs +86 -80
  56. package/es/components/BaseProgress/cssVar.d.ts +8 -0
  57. package/es/components/BaseProgress/cssVar.mjs +14 -0
  58. package/es/components/BaseProgress/index.d.ts +128 -3
  59. package/es/components/BaseProgress/index.mjs +22 -34
  60. package/es/components/BaseRadio/cssVar.d.ts +5 -0
  61. package/es/components/BaseRadio/cssVar.mjs +8 -0
  62. package/es/components/BaseRadio/index.vue.mjs +2 -2
  63. package/es/components/BaseRadio/index.vue2.mjs +16 -26
  64. package/es/components/BaseSwitch/cssVar.d.ts +7 -0
  65. package/es/components/BaseSwitch/cssVar.mjs +10 -0
  66. package/es/components/BaseSwitch/index.vue.mjs +2 -2
  67. package/es/components/BaseSwitch/index.vue2.mjs +17 -29
  68. package/es/components/BaseSystemActions/cssVar.d.ts +7 -0
  69. package/es/components/BaseSystemActions/cssVar.mjs +63 -0
  70. package/es/components/BaseSystemActions/index.d.ts +2 -0
  71. package/es/components/BaseSystemActions/index.vue.d.ts +13 -0
  72. package/es/components/BaseSystemActions/index.vue.mjs +7 -0
  73. package/es/components/BaseSystemActions/index.vue2.mjs +102 -0
  74. package/es/components/BaseSystemActions/type.d.ts +9 -0
  75. package/es/components/index.d.ts +2 -0
  76. package/es/config/themes/components/progress/dark.d.ts +2 -3
  77. package/es/config/themes/components/progress/light.d.ts +2 -3
  78. package/es/config/themes/components/radio/dark.d.ts +2 -3
  79. package/es/config/themes/components/radio/light.d.ts +2 -3
  80. package/es/config/themes/components/switch/common.d.ts +2 -3
  81. package/es/config/themes/components/switch/dark.d.ts +2 -3
  82. package/es/config/themes/components/switch/light.d.ts +2 -3
  83. package/es/enum/locale.d.ts +4 -0
  84. package/es/hooks/useLocale.d.ts +17 -0
  85. package/es/hooks/useLocale.mjs +24 -0
  86. package/es/index.css +1 -1
  87. package/es/index.d.ts +1 -0
  88. package/es/index.mjs +62 -54
  89. package/es/locale/index.d.ts +3 -0
  90. package/es/locale/lang/en-us.d.ts +26 -0
  91. package/es/locale/lang/en-us.mjs +27 -0
  92. package/es/locale/lang/zh-cn.d.ts +3 -0
  93. package/es/locale/lang/zh-cn.mjs +27 -0
  94. package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/_internal/isDeepKey.mjs +12 -0
  95. package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/_internal/toKey.mjs +6 -0
  96. package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/object/get.mjs +44 -0
  97. package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/util/toPath.mjs +21 -0
  98. package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/util/toString.mjs +13 -0
  99. package/es/types/themes/components.d.ts +5 -0
  100. package/es/utils/typescript.d.ts +61 -0
  101. package/lib/components/BaseConfigProvider/constants.d.ts +3 -0
  102. package/lib/components/BaseConfigProvider/constants.js +1 -0
  103. package/lib/components/BaseConfigProvider/index.d.ts +2 -0
  104. package/lib/components/BaseConfigProvider/index.vue.d.ts +18 -0
  105. package/lib/components/BaseConfigProvider/index.vue.js +1 -0
  106. package/lib/components/BaseConfigProvider/index.vue2.js +1 -0
  107. package/lib/components/BaseConfigProvider/locale-base.d.ts +3 -0
  108. package/lib/components/BaseConfigProvider/locale-base.js +1 -0
  109. package/lib/components/BaseConfigProvider/locale-naive.d.ts +4 -0
  110. package/lib/components/BaseConfigProvider/locale-naive.js +1 -0
  111. package/lib/components/BaseConfigProvider/type.d.ts +16 -0
  112. package/lib/components/BaseLayout/Default/index.vue.d.ts +7 -5
  113. package/lib/components/BaseLayout/Default/index.vue.js +1 -1
  114. package/lib/components/BaseLayout/Default/index.vue2.js +1 -1
  115. package/lib/components/BaseLayout/Default/layoutHeader/index.vue.js +1 -1
  116. package/lib/components/BaseLayout/Default/type.d.ts +6 -8
  117. package/lib/components/BaseProductIntroduction/cssVar.d.ts +3 -0
  118. package/lib/components/BaseProductIntroduction/cssVar.js +1 -1
  119. package/lib/components/BaseProductIntroduction/index.vue.js +1 -1
  120. package/lib/components/BaseProductIntroduction/index.vue2.js +1 -1
  121. package/lib/components/BaseProgress/cssVar.d.ts +8 -0
  122. package/lib/components/BaseProgress/cssVar.js +1 -0
  123. package/lib/components/BaseProgress/index.d.ts +128 -3
  124. package/lib/components/BaseProgress/index.js +1 -1
  125. package/lib/components/BaseRadio/cssVar.d.ts +5 -0
  126. package/lib/components/BaseRadio/cssVar.js +1 -0
  127. package/lib/components/BaseRadio/index.vue.js +1 -1
  128. package/lib/components/BaseRadio/index.vue2.js +1 -1
  129. package/lib/components/BaseSwitch/cssVar.d.ts +7 -0
  130. package/lib/components/BaseSwitch/cssVar.js +1 -0
  131. package/lib/components/BaseSwitch/index.vue.js +1 -1
  132. package/lib/components/BaseSwitch/index.vue2.js +1 -1
  133. package/lib/components/BaseSystemActions/cssVar.d.ts +7 -0
  134. package/lib/components/BaseSystemActions/cssVar.js +1 -0
  135. package/lib/components/BaseSystemActions/index.d.ts +2 -0
  136. package/lib/components/BaseSystemActions/index.vue.d.ts +13 -0
  137. package/lib/components/BaseSystemActions/index.vue.js +1 -0
  138. package/lib/components/BaseSystemActions/index.vue2.js +1 -0
  139. package/lib/components/BaseSystemActions/type.d.ts +9 -0
  140. package/lib/components/index.d.ts +2 -0
  141. package/lib/config/themes/components/progress/dark.d.ts +2 -3
  142. package/lib/config/themes/components/progress/light.d.ts +2 -3
  143. package/lib/config/themes/components/radio/dark.d.ts +2 -3
  144. package/lib/config/themes/components/radio/light.d.ts +2 -3
  145. package/lib/config/themes/components/switch/common.d.ts +2 -3
  146. package/lib/config/themes/components/switch/dark.d.ts +2 -3
  147. package/lib/config/themes/components/switch/light.d.ts +2 -3
  148. package/lib/enum/locale.d.ts +4 -0
  149. package/lib/hooks/useLocale.d.ts +17 -0
  150. package/lib/hooks/useLocale.js +1 -0
  151. package/lib/index.css +1 -1
  152. package/lib/index.d.ts +1 -0
  153. package/lib/index.js +1 -1
  154. package/lib/locale/index.d.ts +3 -0
  155. package/lib/locale/lang/en-us.d.ts +26 -0
  156. package/lib/locale/lang/en-us.js +1 -0
  157. package/lib/locale/lang/zh-cn.d.ts +3 -0
  158. package/lib/locale/lang/zh-cn.js +1 -0
  159. package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/_internal/isDeepKey.js +1 -0
  160. package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/_internal/toKey.js +1 -0
  161. package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/object/get.js +1 -0
  162. package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/util/toPath.js +1 -0
  163. package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/util/toString.js +1 -0
  164. package/lib/types/themes/components.d.ts +5 -0
  165. package/lib/utils/typescript.d.ts +61 -0
  166. package/package.json +1 -1
  167. package/es/components/BaseLayout/Default/layoutHeader/action.vue.mjs +0 -7
  168. package/es/components/BaseLayout/Default/layoutHeader/action.vue2.mjs +0 -85
  169. package/lib/components/BaseLayout/Default/layoutHeader/action.vue.js +0 -1
  170. package/lib/components/BaseLayout/Default/layoutHeader/action.vue2.js +0 -1
@@ -1,144 +1,145 @@
1
- import { NPopover as R, NCard as T, NButton as A } from "naive-ui";
2
- import { defineComponent as D, mergeDefaults as E, ref as _, computed as p, resolveComponent as O, createElementBlock as c, openBlock as s, createVNode as r, withModifiers as f, normalizeStyle as I, withCtx as d, createElementVNode as e, Fragment as h, renderList as y, createCommentVNode as M, toDisplayString as u, createBlock as V, createTextVNode as g } from "vue";
3
- import z from "../BaseNavIcon/index.vue.mjs";
4
- import L from "../../hooks/useNaiveConfigProvideContext.mjs";
5
- import U from "../../assets/cover/base-ads.png.mjs";
6
- import F from "../../assets/cover/base-studio.png.mjs";
7
- import $ from "../../assets/cover/base-multimodal.png.mjs";
8
- import { createCardThemeOverrides as j, createPopoverCssVar as q } from "./cssVar.mjs";
9
- import { DEFAULT_PRODUCT_INTRODUCTION_PROPS as G } from "./constants.mjs";
10
- const H = { class: "header" }, J = { class: "content-wrap" }, K = { class: "content-item-header" }, Q = { class: "icon" }, W = { class: "title" }, X = { class: "description" }, Y = {
1
+ import { NPopover as x, NCard as R, NButton as M } from "naive-ui";
2
+ import { defineComponent as O, mergeDefaults as V, ref as _, computed as m, resolveComponent as z, createElementBlock as d, openBlock as s, createVNode as l, createBlock as h, withModifiers as b, normalizeStyle as A, withCtx as u, createElementVNode as t, toDisplayString as p, unref as L, Fragment as y, renderList as k, createCommentVNode as U, createTextVNode as g, Teleport as E, withDirectives as F, vShow as $ } from "vue";
3
+ import j from "../BaseNavIcon/index.vue.mjs";
4
+ import { useLocale as q } from "../../hooks/useLocale.mjs";
5
+ import G from "../../hooks/useNaiveConfigProvideContext.mjs";
6
+ import H from "../../assets/cover/base-ads.png.mjs";
7
+ import J from "../../assets/cover/base-studio.png.mjs";
8
+ import K from "../../assets/cover/base-multimodal.png.mjs";
9
+ import { createCardThemeOverrides as Q, createPopoverCssVar as W } from "./cssVar.mjs";
10
+ import { DEFAULT_PRODUCT_INTRODUCTION_PROPS as X } from "./constants.mjs";
11
+ const Y = { class: "header" }, Z = { class: "content-wrap" }, ee = { class: "content-item-header" }, te = { class: "icon" }, oe = { class: "title" }, ne = { class: "description" }, ie = {
11
12
  key: 0,
12
13
  class: "content-child-wrap"
13
- }, Z = ["src"], ee = { class: "to-use" }, pe = /* @__PURE__ */ D({
14
+ }, re = ["src"], se = { class: "to-use" }, le = { class: "base-product-introduction-panel-mask" }, ye = /* @__PURE__ */ O({
14
15
  __name: "index",
15
- props: /* @__PURE__ */ E({
16
+ props: /* @__PURE__ */ V({
16
17
  x: {},
17
18
  y: {}
18
- }, G),
19
- setup(te) {
20
- const k = L(), l = _(null), i = _(!1), C = [
19
+ }, X),
20
+ setup(ce) {
21
+ const P = G(), { t: e } = q(), c = _(null), n = _(!1), I = [
21
22
  {
22
23
  key: "base1",
23
- title: "BASE 数据标注平台",
24
- description: "专业标注服务,打造精准数据,驱动智能变革",
24
+ title: e("base.productIntroduction.BasePlatform"),
25
+ description: e("base.productIntroduction.BasePlatformDescription"),
25
26
  icon: "logo-base",
26
27
  children: [
27
28
  {
28
29
  key: "base1-1",
29
- title: "自动驾驶标注平台 - BASE ADS",
30
- description: "自动驾驶标注平台支持点云、图像等连续的数据的标注与质检,提供可编排工作流与智能辅助工具,帮助团队高效构建自动驾驶训练数据集。",
31
- icon: U
30
+ title: e("base.productIntroduction.AdsPlatform"),
31
+ description: e("base.productIntroduction.AdsPlatformDescription"),
32
+ icon: H
32
33
  },
33
34
  {
34
35
  key: "base1-2",
35
- title: "通用标注平台 - BASE Studio",
36
- description: "通用标注平台,支持图像、音频、文本、视频等多类型数据的标注与质检。具备灵活的可编排工作流能力,提供丰富的标注工具模板和算法辅助能力,适用于计算机视觉、语音识别、NLP 等多种场景,帮助团队快速构建高质量训练数据集。",
37
- icon: F
36
+ title: e("base.productIntroduction.StudioPlatform"),
37
+ description: e("base.productIntroduction.StudioPlatformDescription"),
38
+ icon: J
38
39
  },
39
40
  {
40
41
  key: "base1-2",
41
- title: "多模态标注平台 - BASE MultiModal",
42
- description: "多模态标注平台是一套支持多源异构数据协同标注的智能系统,覆盖图像、视频、音频、文本、点云等多种模态数据类型,支持模态间时间同步与语义关联标注。帮助团队高效构建多模态融合训练数据集",
43
- icon: $
42
+ title: e("base.productIntroduction.MultiModalPlatform"),
43
+ description: e("base.productIntroduction.MultiModalPlatformDescription"),
44
+ icon: K
44
45
  }
45
46
  ]
46
47
  },
47
48
  {
48
49
  key: "base2",
49
- title: "Blink 数据管理平台",
50
- description: "集成数据资产的管理、交付、检索等全链路管理",
50
+ title: e("base.productIntroduction.BlinkPlatform"),
51
+ description: e("base.productIntroduction.BasePlatformDescription"),
51
52
  icon: "logo-blink"
52
53
  },
53
54
  {
54
55
  key: "base3",
55
- title: "Bcollection 数据采集平台",
56
- description: "全场景数据采集,全链路价值护航",
56
+ title: e("base.productIntroduction.BcollectionPlatform"),
57
+ description: e("base.productIntroduction.BcollectionPlatformDescription"),
57
58
  icon: "logo-bcollection"
58
59
  }
59
- ], v = p(() => {
60
+ ], v = m(() => {
60
61
  const {
61
- name: n = "light"
62
- } = k?.mergedThemeRef.value || {};
63
- return n !== "light";
64
- }), B = p(() => j(v.value)), b = p(() => q(v.value)), N = () => {
65
- i.value = !i.value;
66
- }, S = (n) => {
67
- l.value && l.value.instRef && l.value.instRef.contains(n.target) || (i.value = !1);
62
+ name: r = "light"
63
+ } = P?.mergedThemeRef.value || {};
64
+ return r !== "light";
65
+ }), C = m(() => Q(v.value)), B = m(() => W(v.value)), w = () => {
66
+ n.value = !n.value;
67
+ }, D = (r) => {
68
+ c.value && c.value.instRef && c.value.instRef.contains(r.target) || (n.value = !1);
68
69
  };
69
- return (n, t) => {
70
- const m = O("svg-icon"), w = A, x = T, P = R;
71
- return s(), c("div", null, [
72
- r(z, {
70
+ return (r, i) => {
71
+ const f = z("svg-icon"), N = M, S = R, T = x;
72
+ return s(), d("div", null, [
73
+ l(j, {
73
74
  ref_key: "triggerInstRef",
74
- ref: l,
75
- active: i.value,
76
- onClick: f(N, ["stop"])
75
+ ref: c,
76
+ active: n.value,
77
+ onClick: b(w, ["stop"])
77
78
  }, null, 8, ["active"]),
78
- r(P, {
79
+ l(T, {
79
80
  "content-class": "base-product-introduction-panel-popover",
80
81
  trigger: "manual",
81
- show: i.value,
82
- "onUpdate:show": t[2] || (t[2] = (o) => i.value = o),
83
- style: I(b.value),
82
+ show: n.value,
83
+ "onUpdate:show": i[2] || (i[2] = (o) => n.value = o),
84
+ style: A(B.value),
84
85
  "show-arrow": !1,
85
86
  width: 1058,
86
87
  scrollable: "",
87
- x: n.x,
88
- y: n.y,
88
+ x: r.x,
89
+ y: r.y,
89
90
  "theme-overrides": { padding: "0", space: "0" },
90
- onClickoutside: S
91
+ onClickoutside: D
91
92
  }, {
92
- default: d(() => [
93
- e("div", {
93
+ default: u(() => [
94
+ t("div", {
94
95
  class: "base-product-introduction-panel",
95
- onClick: t[1] || (t[1] = f(() => {
96
+ onClick: i[1] || (i[1] = b(() => {
96
97
  }, ["stop"]))
97
98
  }, [
98
- e("div", H, [
99
- t[3] || (t[3] = e("div", null, "全部产品", -1)),
100
- r(m, {
99
+ t("div", Y, [
100
+ t("div", null, p(L(e)("base.productIntroduction.allProducts")), 1),
101
+ l(f, {
101
102
  icon: "operate-close",
102
103
  size: "16",
103
- onClick: t[0] || (t[0] = (o) => i.value = !1)
104
+ onClick: i[0] || (i[0] = (o) => n.value = !1)
104
105
  })
105
106
  ]),
106
- e("div", J, [
107
- (s(), c(h, null, y(C, (o) => e("div", {
107
+ t("div", Z, [
108
+ (s(), d(y, null, k(I, (o) => t("div", {
108
109
  key: o.key,
109
110
  class: "content-item"
110
111
  }, [
111
- e("div", K, [
112
- e("div", Q, [
113
- r(m, {
112
+ t("div", ee, [
113
+ t("div", te, [
114
+ l(f, {
114
115
  icon: o.icon,
115
116
  size: "32"
116
117
  }, null, 8, ["icon"])
117
118
  ]),
118
- e("div", W, u(o.title), 1),
119
- e("div", X, u(o.description), 1)
119
+ t("div", oe, p(o.title), 1),
120
+ t("div", ne, p(o.description), 1)
120
121
  ]),
121
- o.children && o.children.length ? (s(), c("div", Y, [
122
- (s(!0), c(h, null, y(o.children, (a) => (s(), V(x, {
122
+ o.children && o.children.length ? (s(), d("div", ie, [
123
+ (s(!0), d(y, null, k(o.children, (a) => (s(), h(S, {
123
124
  key: a.key,
124
125
  title: a.title,
125
- "theme-overrides": B.value
126
+ "theme-overrides": C.value
126
127
  }, {
127
- cover: d(() => [
128
- e("img", {
128
+ cover: u(() => [
129
+ t("img", {
129
130
  src: a.icon,
130
131
  alt: ""
131
- }, null, 8, Z)
132
+ }, null, 8, re)
132
133
  ]),
133
- default: d(() => [
134
- g(" " + u(a.description) + " ", 1),
135
- e("div", ee, [
136
- r(w, {
134
+ default: u(() => [
135
+ g(" " + p(a.description) + " ", 1),
136
+ t("div", se, [
137
+ l(N, {
137
138
  round: "",
138
139
  size: "tiny",
139
140
  type: "primary"
140
141
  }, {
141
- default: d(() => t[4] || (t[4] = [
142
+ default: u(() => i[3] || (i[3] = [
142
143
  g("开始使用")
143
144
  ])),
144
145
  _: 1
@@ -147,17 +148,22 @@ const H = { class: "header" }, J = { class: "content-wrap" }, K = { class: "cont
147
148
  ]),
148
149
  _: 2
149
150
  }, 1032, ["title", "theme-overrides"]))), 128))
150
- ])) : M("", !0)
151
+ ])) : U("", !0)
151
152
  ])), 64))
152
153
  ])
153
154
  ])
154
155
  ]),
155
156
  _: 1
156
- }, 8, ["show", "style", "x", "y"])
157
+ }, 8, ["show", "style", "x", "y"]),
158
+ (s(), h(E, { to: "body" }, [
159
+ F(t("div", le, null, 512), [
160
+ [$, n.value]
161
+ ])
162
+ ]))
157
163
  ]);
158
164
  };
159
165
  }
160
166
  });
161
167
  export {
162
- pe as default
168
+ ye as default
163
169
  };
@@ -0,0 +1,8 @@
1
+ import { BaseProgressThemeOverrides } from '../../types/themes/components';
2
+ import { BaseProgressProps } from './index';
3
+ export declare const getStyleCssVar: (circleSize: BaseProgressProps["circleSize"], themeOverrides?: BaseProgressThemeOverrides) => {
4
+ '--n-tip-color-circle': string;
5
+ '--n-tip-font-size-circle': string;
6
+ '--n-content-font-size': string;
7
+ '--n-circle-width': string;
8
+ };
@@ -0,0 +1,14 @@
1
+ import { ProgressThemeLight as o } from "../../config/themes/components/progress/light.mjs";
2
+ import n from "../../config/themes/color/light.mjs";
3
+ const p = (t, i) => {
4
+ const r = t === "medium" ? i?.fontSizeCircleMedium : o.fontSizeCircleLarge, c = t === "medium" ? i?.circleWidthMedium : o.circleWidthLarge;
5
+ return {
6
+ "--n-tip-color-circle": i?.tipColorCircle || n["color-gray-8"],
7
+ "--n-tip-font-size-circle": i?.tipFontSizeCircle || "14px",
8
+ "--n-content-font-size": r || "var(--n-font-size)",
9
+ "--n-circle-width": c || "120px"
10
+ };
11
+ };
12
+ export {
13
+ p as getStyleCssVar
14
+ };
@@ -1,6 +1,131 @@
1
- import { PropType } from 'vue';
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
2
  export type Size = 'medium' | 'large';
3
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
3
+ export declare const baseProgressProps: {
4
+ readonly circleSize: {
5
+ readonly type: PropType<Size>;
6
+ readonly default: "medium";
7
+ };
8
+ readonly tip: StringConstructor;
9
+ readonly processing: BooleanConstructor;
10
+ readonly type: {
11
+ readonly type: PropType<"line" | "circle" | "multiple-circle" | "dashboard">;
12
+ readonly default: "line";
13
+ };
14
+ readonly gapDegree: NumberConstructor;
15
+ readonly gapOffsetDegree: NumberConstructor;
16
+ readonly status: {
17
+ readonly type: PropType<import('naive-ui').ProgressStatus>;
18
+ readonly default: "default";
19
+ };
20
+ readonly railColor: PropType<string | string[]>;
21
+ readonly railStyle: PropType<string | import('vue').CSSProperties | Array<string | import('vue').CSSProperties>>;
22
+ readonly color: PropType<string | string[] | import('naive-ui').ProgressGradient | import('naive-ui').ProgressGradient[]>;
23
+ readonly viewBoxWidth: {
24
+ readonly type: NumberConstructor;
25
+ readonly default: 100;
26
+ };
27
+ readonly strokeWidth: {
28
+ readonly type: NumberConstructor;
29
+ readonly default: 7;
30
+ };
31
+ readonly percentage: PropType<number | number[]>;
32
+ readonly unit: {
33
+ readonly type: StringConstructor;
34
+ readonly default: "%";
35
+ };
36
+ readonly showIndicator: {
37
+ readonly type: BooleanConstructor;
38
+ readonly default: true;
39
+ };
40
+ readonly indicatorPosition: {
41
+ readonly type: PropType<"inside" | "outside">;
42
+ readonly default: "outside";
43
+ };
44
+ readonly indicatorPlacement: {
45
+ readonly type: PropType<"inside" | "outside">;
46
+ readonly default: "outside";
47
+ };
48
+ readonly indicatorTextColor: StringConstructor;
49
+ readonly circleGap: {
50
+ readonly type: NumberConstructor;
51
+ readonly default: 1;
52
+ };
53
+ readonly height: NumberConstructor;
54
+ readonly borderRadius: PropType<string | number>;
55
+ readonly fillBorderRadius: PropType<string | number>;
56
+ readonly offsetDegree: NumberConstructor;
57
+ readonly theme: PropType<import('naive-ui/es/_mixins').Theme<"Progress", {
58
+ fontSize: string;
59
+ fontSizeCircle: string;
60
+ fontWeightCircle: string;
61
+ railColor: string;
62
+ railHeight: string;
63
+ iconSizeCircle: string;
64
+ iconSizeLine: string;
65
+ iconColor: string;
66
+ iconColorInfo: string;
67
+ iconColorSuccess: string;
68
+ iconColorWarning: string;
69
+ iconColorError: string;
70
+ textColorCircle: string;
71
+ textColorLineInner: string;
72
+ textColorLineOuter: string;
73
+ fillColor: string;
74
+ fillColorInfo: string;
75
+ fillColorSuccess: string;
76
+ fillColorWarning: string;
77
+ fillColorError: string;
78
+ lineBgProcessing: string;
79
+ }, any>>;
80
+ readonly themeOverrides: PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins').Theme<"Progress", {
81
+ fontSize: string;
82
+ fontSizeCircle: string;
83
+ fontWeightCircle: string;
84
+ railColor: string;
85
+ railHeight: string;
86
+ iconSizeCircle: string;
87
+ iconSizeLine: string;
88
+ iconColor: string;
89
+ iconColorInfo: string;
90
+ iconColorSuccess: string;
91
+ iconColorWarning: string;
92
+ iconColorError: string;
93
+ textColorCircle: string;
94
+ textColorLineInner: string;
95
+ textColorLineOuter: string;
96
+ fillColor: string;
97
+ fillColorInfo: string;
98
+ fillColorSuccess: string;
99
+ fillColorWarning: string;
100
+ fillColorError: string;
101
+ lineBgProcessing: string;
102
+ }, any>>>;
103
+ readonly builtinThemeOverrides: PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins').Theme<"Progress", {
104
+ fontSize: string;
105
+ fontSizeCircle: string;
106
+ fontWeightCircle: string;
107
+ railColor: string;
108
+ railHeight: string;
109
+ iconSizeCircle: string;
110
+ iconSizeLine: string;
111
+ iconColor: string;
112
+ iconColorInfo: string;
113
+ iconColorSuccess: string;
114
+ iconColorWarning: string;
115
+ iconColorError: string;
116
+ textColorCircle: string;
117
+ textColorLineInner: string;
118
+ textColorLineOuter: string;
119
+ fillColor: string;
120
+ fillColorInfo: string;
121
+ fillColorSuccess: string;
122
+ fillColorWarning: string;
123
+ fillColorError: string;
124
+ lineBgProcessing: string;
125
+ }, any>>>;
126
+ };
127
+ export type BaseProgressProps = ExtractPropTypes<typeof baseProgressProps>;
128
+ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
4
129
  readonly circleSize: {
5
130
  readonly type: PropType<Size>;
6
131
  readonly default: "medium";
@@ -125,7 +250,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
125
250
  }, any>>>;
126
251
  }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
127
252
  [key: string]: any;
128
- }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
253
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
129
254
  readonly circleSize: {
130
255
  readonly type: PropType<Size>;
131
256
  readonly default: "medium";
@@ -1,36 +1,37 @@
1
- import { defineComponent as f, shallowRef as m, watch as p, h as e } from "vue";
2
- import { progressProps as g, NProgress as h } from "naive-ui";
3
- import { SvgIcon as u } from "../../node_modules/.pnpm/lib-materials@0.0.8_typescript@5.7.2/node_modules/lib-materials/dist/lib-materials.mjs";
4
- import v from "../../hooks/useNaiveConfigProvideContext.mjs";
5
- const z = {
6
- ...g,
1
+ import { defineComponent as d, computed as c, h as e } from "vue";
2
+ import { progressProps as l, NProgress as f } from "naive-ui";
3
+ import { SvgIcon as p } from "../../node_modules/.pnpm/lib-materials@0.0.8_typescript@5.7.2/node_modules/lib-materials/dist/lib-materials.mjs";
4
+ import g from "../../hooks/useNaiveConfigProvideContext.mjs";
5
+ import { getStyleCssVar as m } from "./cssVar.mjs";
6
+ const u = {
7
+ ...l,
7
8
  circleSize: {
8
9
  type: String,
9
10
  default: "medium"
10
11
  },
11
12
  tip: String
12
- }, P = f({
13
+ }, S = d({
13
14
  name: "BaseProgress",
14
- props: z,
15
+ props: u,
15
16
  setup(t, { slots: r }) {
16
- const o = "base-progress-", { mergedThemeOverridesRef: s } = v(), n = m({}), c = () => e(
17
+ const s = "base-progress-", { mergedThemeOverridesRef: o } = g(), n = c(() => m(t.circleSize), o?.value?.Progress), a = () => e(
17
18
  "div",
18
19
  {
19
- class: `${o}dashboard-content`
20
+ class: `${s}dashboard-content`
20
21
  },
21
22
  [
22
23
  e(
23
24
  "div",
24
25
  {
25
- class: `${o}dashboard-content-logo`,
26
+ class: `${s}dashboard-content-logo`,
26
27
  style: "height:24px;width:24px"
27
28
  },
28
- r.icon ? r.icon() : e(u, { icon: "progress-default", size: "18" })
29
+ r.icon ? r.icon() : e(p, { icon: "progress-default", size: "18" })
29
30
  ),
30
31
  e(
31
32
  "div",
32
33
  {
33
- class: `${o}dashboard-content-title`
34
+ class: `${s}dashboard-content-title`
34
35
  },
35
36
  [
36
37
  e("span", {}, `${t.percentage}`),
@@ -40,42 +41,29 @@ const z = {
40
41
  t.tip ? e(
41
42
  "div",
42
43
  {
43
- class: `${o}dashboard-content-tip`
44
+ class: `${s}dashboard-content-tip`
44
45
  },
45
46
  t.tip
46
47
  ) : void 0
47
48
  ]
48
- ), d = () => {
49
+ ), i = () => {
49
50
  if (r.default) return () => r.default();
50
- if (t.type === "dashboard") return c;
51
+ if (t.type === "dashboard") return a;
51
52
  };
52
- return p(
53
- () => s?.value?.Progress,
54
- (i) => {
55
- const a = t.circleSize === "medium" ? i.fontSizeCircleMedium : i.fontSizeCircleLarge, l = t.circleSize === "medium" ? i.circleWidthMedium : i.circleWidthLarge;
56
- n.value = {
57
- "--n-tip-color-circle": i.tipColorCircle || "#56647A",
58
- "--n-tip-font-size-circle": i.tipFontSizeCircle || "14px",
59
- "--n-content-font-size": a || "var(--n-font-size)",
60
- "--n-circle-width": l || "120px"
61
- };
62
- },
63
- {
64
- immediate: !0
65
- }
66
- ), () => e(
67
- h,
53
+ return () => e(
54
+ f,
68
55
  {
69
56
  ...t,
70
57
  class: "base-progress",
71
58
  style: n.value
72
59
  },
73
60
  {
74
- default: d()
61
+ default: i()
75
62
  }
76
63
  );
77
64
  }
78
65
  });
79
66
  export {
80
- P as default
67
+ u as baseProgressProps,
68
+ S as default
81
69
  };
@@ -0,0 +1,5 @@
1
+ import { BaseRadioThemeOverrides } from '../../types/themes/components';
2
+ export declare const getStyleCssVar: (themeOverrides?: BaseRadioThemeOverrides) => {
3
+ '--n-box-shadow-active-disabled': string | undefined;
4
+ '--n-color-active-disabled': string | undefined;
5
+ };
@@ -0,0 +1,8 @@
1
+ import { RadioThemeLight as a } from "../../config/themes/components/radio/light.mjs";
2
+ const e = (o) => ({
3
+ "--n-box-shadow-active-disabled": o?.boxShadowActiveDisabled || a.boxShadowDisabled,
4
+ "--n-color-active-disabled": o?.colorActiveDisabled || a.boxShadowDisabled
5
+ });
6
+ export {
7
+ e as getStyleCssVar
8
+ };
@@ -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 m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2b3eac12"]]);
4
+ const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-11776497"]]);
5
5
  export {
6
- m as default
6
+ _ as default
7
7
  };
@@ -1,36 +1,26 @@
1
- import { NRadio as i } from "naive-ui";
2
- import { defineComponent as r, shallowRef as d, watch as n, createBlock as l, openBlock as m, mergeProps as c, createSlots as f, renderList as p, withCtx as b, renderSlot as v } from "vue";
3
- import u from "../../hooks/useNaiveConfigProvideContext.mjs";
4
- const y = /* @__PURE__ */ r({
1
+ import { NRadio as a } from "naive-ui";
2
+ import { defineComponent as n, computed as l, createBlock as m, openBlock as i, mergeProps as d, createSlots as p, renderList as c, withCtx as f, renderSlot as u } from "vue";
3
+ import _ from "../../hooks/useNaiveConfigProvideContext.mjs";
4
+ import { getStyleCssVar as v } from "./cssVar.mjs";
5
+ const B = /* @__PURE__ */ n({
5
6
  name: "BaseRadio",
6
7
  __name: "index",
7
8
  props: {
8
9
  className: { default: "" },
9
10
  style: { default: () => ({}) }
10
11
  },
11
- setup(h) {
12
- const { mergedThemeOverridesRef: a } = u(), o = d({});
13
- return n(
14
- () => a?.value?.Radio,
15
- (e) => {
16
- e && (o.value = {
17
- "--n-box-shadow-active-disabled": e.boxShadowActiveDisabled || e.boxShadowDisabled,
18
- "--n-color-active-disabled": e.colorActiveDisabled || e.boxShadowDisabled
19
- });
20
- },
21
- {
22
- immediate: !0
23
- }
24
- ), (e, w) => {
25
- const s = i;
26
- return m(), l(s, c(e.$attrs, {
12
+ setup(y) {
13
+ const { mergedThemeOverridesRef: o } = _(), r = l(() => v(o?.value?.Radio));
14
+ return (e, C) => {
15
+ const s = a;
16
+ return i(), m(s, d(e.$attrs, {
27
17
  class: ["base-radio", e.className],
28
- style: [o.value, e.style]
29
- }), f({ _: 2 }, [
30
- p(e.$slots, (_, t) => ({
18
+ style: [r.value, e.style]
19
+ }), p({ _: 2 }, [
20
+ c(e.$slots, (g, t) => ({
31
21
  name: t,
32
- fn: b(() => [
33
- v(e.$slots, t, {}, void 0, !0)
22
+ fn: f(() => [
23
+ u(e.$slots, t, {}, void 0, !0)
34
24
  ])
35
25
  }))
36
26
  ]), 1040, ["class", "style"]);
@@ -38,5 +28,5 @@ const y = /* @__PURE__ */ r({
38
28
  }
39
29
  });
40
30
  export {
41
- y as default
31
+ B as default
42
32
  };
@@ -0,0 +1,7 @@
1
+ import { BaseSwitchThemeOverrides } from '../../types/themes/components';
2
+ export declare const getStyleCssVar: (themeOverrides?: BaseSwitchThemeOverrides) => {
3
+ '--n-rail-color-active-disabled': string | undefined;
4
+ '--n-rail-color-disabled': string | undefined;
5
+ '--n-button-color-disabled': string | undefined;
6
+ '--n-button-color-active-disabled': string | undefined;
7
+ };
@@ -0,0 +1,10 @@
1
+ import { SwitchThemeLight as l } from "../../config/themes/components/switch/light.mjs";
2
+ const t = (o) => ({
3
+ "--n-rail-color-active-disabled": o?.railColorActiveDisabled || l.railColorActiveDisabled,
4
+ "--n-rail-color-disabled": o?.railColorDisabled || l.railColorDisabled,
5
+ "--n-button-color-disabled": o?.buttonColorDisabled || l.buttonColorDisabled,
6
+ "--n-button-color-active-disabled": o?.buttonColorActiveDisabled || l.buttonColorActiveDisabled
7
+ });
8
+ export {
9
+ t as getStyleCssVar
10
+ };
@@ -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 m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b0c0e5fe"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ee1b1c3d"]]);
5
5
  export {
6
- m as default
6
+ p as default
7
7
  };