@done-coding/admin-plugin-theme 0.4.0 → 0.4.1

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 (122) hide show
  1. package/README.md +1 -131
  2. package/es/assets/applied-intelligence-frame.mjs +13 -13
  3. package/es/assets/applied-intelligence-nebula.mjs +31 -31
  4. package/es/assets/aurora-mesh.mjs +30 -30
  5. package/es/assets/botanical-paper.mjs +2 -2
  6. package/es/assets/cockpit-brutal-steel.mjs +20 -20
  7. package/es/assets/cockpit-liquid-ink.mjs +52 -52
  8. package/es/assets/cockpit-mono-paper.mjs +21 -21
  9. package/es/assets/cockpit-neural-field.mjs +36 -36
  10. package/es/assets/compact-rail.mjs +5 -5
  11. package/es/assets/console-horizon.mjs +1 -1
  12. package/es/assets/copilot-calm.mjs +2 -2
  13. package/es/assets/copilot-stage.mjs +8 -8
  14. package/es/assets/coral-reef.mjs +2 -2
  15. package/es/assets/dragon-vermilion.mjs +27 -27
  16. package/es/assets/film-grade.mjs +26 -26
  17. package/es/assets/kitchen-foundry.mjs +84 -84
  18. package/es/assets/neon-set.mjs +17 -17
  19. package/es/assets/nordic-fjord.mjs +2 -2
  20. package/es/assets/perspective-deck.mjs +21 -21
  21. package/es/assets/quantum-ai.mjs +16 -16
  22. package/es/assets/sandstone-editorial.mjs +2 -2
  23. package/es/assets/starfield-cosmos.mjs +14 -14
  24. package/es/assets/studio-ink.mjs +27 -27
  25. package/es/assets/studio-stage.mjs +12 -12
  26. package/es/assets/studio-triptych.mjs +14 -14
  27. package/es/assets/sunset-amber.mjs +2 -2
  28. package/es/assets/synapse-grid.mjs +11 -11
  29. package/es/assets/terminal-phosphor.mjs +21 -21
  30. package/es/assets/velvet-noir.mjs +2 -2
  31. package/es/chunks/CockpitFrameMatte-BbTtd3J2.mjs +52 -0
  32. package/es/chunks/{CockpitShellBase.vue_vue_type_script_setup_true_lang-CoSsDjcF.mjs → CockpitShellBase.vue_vue_type_script_setup_true_lang-8OC_BxwQ.mjs} +41 -41
  33. package/es/index.mjs +5 -5
  34. package/es/style.css +1 -1
  35. package/package.json +7 -8
  36. package/types/assets/applied-intelligence-frame.d.ts +2 -14
  37. package/types/assets/applied-intelligence-nebula.d.ts +2 -13
  38. package/types/assets/aurora-mesh.d.ts +2 -8
  39. package/types/assets/botanical-paper.d.ts +2 -9
  40. package/types/assets/brutal-concrete.d.ts +2 -9
  41. package/types/assets/cockpit-brutal-steel.d.ts +2 -2
  42. package/types/assets/cockpit-liquid-ink.d.ts +2 -13
  43. package/types/assets/cockpit-mono-paper.d.ts +2 -11
  44. package/types/assets/cockpit-neural-field.d.ts +2 -10
  45. package/types/assets/compact-rail.d.ts +2 -8
  46. package/types/assets/console-horizon.d.ts +2 -8
  47. package/types/assets/contrast.d.ts +2 -9
  48. package/types/assets/copilot-calm.d.ts +2 -9
  49. package/types/assets/copilot-stage.d.ts +2 -8
  50. package/types/assets/coral-reef.d.ts +2 -9
  51. package/types/assets/cyber.d.ts +2 -8
  52. package/types/assets/dragon-vermilion.d.ts +2 -8
  53. package/types/assets/film-grade.d.ts +2 -11
  54. package/types/assets/glass.d.ts +2 -8
  55. package/types/assets/graphite-mono.d.ts +2 -9
  56. package/types/assets/gugong.d.ts +2 -8
  57. package/types/assets/ink.d.ts +2 -8
  58. package/types/assets/kitchen-foundry.d.ts +2 -2
  59. package/types/assets/neon-set.d.ts +2 -11
  60. package/types/assets/nordic-fjord.d.ts +2 -8
  61. package/types/assets/perspective-deck.d.ts +2 -9
  62. package/types/assets/quantum-ai.d.ts +2 -8
  63. package/types/assets/sandstone-editorial.d.ts +2 -9
  64. package/types/assets/soft.d.ts +2 -8
  65. package/types/assets/starfield-cosmos.d.ts +2 -9
  66. package/types/assets/studio-ink.d.ts +2 -11
  67. package/types/assets/studio-stage.d.ts +2 -16
  68. package/types/assets/studio-triptych.d.ts +2 -8
  69. package/types/assets/sunset-amber.d.ts +2 -9
  70. package/types/assets/synapse-grid.d.ts +2 -8
  71. package/types/assets/terminal-phosphor.d.ts +2 -8
  72. package/types/assets/velvet-noir.d.ts +2 -9
  73. package/types/index.d.ts +1 -1
  74. package/types/plugin.d.ts +3 -21
  75. package/types/shells/decor/use-frame-geometry.d.ts +0 -13
  76. package/types/types.d.ts +10 -77
  77. package/es/chunks/CockpitFrameMatte-DGQRZk-I.mjs +0 -52
  78. package/lib/assets/applied-intelligence-frame.cjs +0 -1
  79. package/lib/assets/applied-intelligence-nebula.cjs +0 -1
  80. package/lib/assets/aurora-mesh.cjs +0 -1
  81. package/lib/assets/botanical-paper.cjs +0 -1
  82. package/lib/assets/brutal-concrete.cjs +0 -1
  83. package/lib/assets/cockpit-brutal-steel.cjs +0 -4
  84. package/lib/assets/cockpit-liquid-ink.cjs +0 -1
  85. package/lib/assets/cockpit-mono-paper.cjs +0 -1
  86. package/lib/assets/cockpit-neural-field.cjs +0 -1
  87. package/lib/assets/compact-rail.cjs +0 -1
  88. package/lib/assets/console-horizon.cjs +0 -1
  89. package/lib/assets/contrast.cjs +0 -1
  90. package/lib/assets/copilot-calm.cjs +0 -1
  91. package/lib/assets/copilot-stage.cjs +0 -1
  92. package/lib/assets/coral-reef.cjs +0 -1
  93. package/lib/assets/cyber.cjs +0 -1
  94. package/lib/assets/dragon-vermilion.cjs +0 -1
  95. package/lib/assets/film-grade.cjs +0 -1
  96. package/lib/assets/glass.cjs +0 -1
  97. package/lib/assets/graphite-mono.cjs +0 -1
  98. package/lib/assets/gugong.cjs +0 -1
  99. package/lib/assets/ink.cjs +0 -1
  100. package/lib/assets/kitchen-foundry.cjs +0 -7
  101. package/lib/assets/neon-set.cjs +0 -1
  102. package/lib/assets/nordic-fjord.cjs +0 -1
  103. package/lib/assets/perspective-deck.cjs +0 -1
  104. package/lib/assets/quantum-ai.cjs +0 -1
  105. package/lib/assets/sandstone-editorial.cjs +0 -1
  106. package/lib/assets/soft.cjs +0 -1
  107. package/lib/assets/starfield-cosmos.cjs +0 -1
  108. package/lib/assets/studio-ink.cjs +0 -1
  109. package/lib/assets/studio-stage.cjs +0 -1
  110. package/lib/assets/studio-triptych.cjs +0 -1
  111. package/lib/assets/sunset-amber.cjs +0 -1
  112. package/lib/assets/synapse-grid.cjs +0 -1
  113. package/lib/assets/terminal-phosphor.cjs +0 -1
  114. package/lib/assets/velvet-noir.cjs +0 -1
  115. package/lib/chunks/CockpitFrameMatte-pWBt5o2E.cjs +0 -1
  116. package/lib/chunks/CockpitShellBase.vue_vue_type_script_setup_true_lang-CgiZq-kW.cjs +0 -1
  117. package/lib/chunks/FrameShellBase.vue_vue_type_script_setup_true_lang-C-mttf00.cjs +0 -1
  118. package/lib/chunks/HeaderNavMenu.vue_vue_type_script_setup_true_lang-LJ3mDZkH.cjs +0 -1
  119. package/lib/chunks/_plugin-vue_export-helper-BHFhmbuH.cjs +0 -1
  120. package/lib/chunks/use-frame-geometry-5WRLC-WU.cjs +0 -1
  121. package/lib/index.cjs +0 -1
  122. package/lib/style.css +0 -1
@@ -44,13 +44,13 @@ const r = {
44
44
  gap: { size: 8 },
45
45
  header: {
46
46
  height: 56,
47
- background: "var(--admin-core-surface, var(--el-bg-color-overlay))",
47
+ background: "var(--dc-core-surface, var(--el-bg-color-overlay))",
48
48
  style: { borderRadius: "10px" }
49
49
  },
50
50
  sidebar: {
51
51
  width: 244,
52
52
  collapseWidth: 64,
53
- background: "var(--admin-core-surface, var(--el-bg-color-overlay))",
53
+ background: "var(--dc-core-surface, var(--el-bg-color-overlay))",
54
54
  style: { borderRadius: "10px" }
55
55
  },
56
56
  body: { shimPadding: 22 }
@@ -1,12 +1,12 @@
1
- import { defineComponent as k, computed as v, openBlock as n, createBlock as E, Teleport as R, unref as r, createElementBlock as s, normalizeStyle as N, createElementVNode as y, Fragment as _, renderList as w, createCommentVNode as h, normalizeProps as F, guardReactiveProps as L, createSlots as T, withCtx as c, createVNode as I, renderSlot as m, markRaw as O } from "vue";
2
- import { _ as z } from "../chunks/FrameShellBase.vue_vue_type_script_setup_true_lang-sr56H_8-.mjs";
3
- import { ADMIN_CORE_VIEWPORT_DECOR_ZINDEX_BELOW as A } from "@done-coding/admin-core";
4
- import { u as P } from "../chunks/use-frame-geometry-DPWBVziK.mjs";
5
- import { _ as V } from "../chunks/_plugin-vue_export-helper-CHgC5LLL.mjs";
1
+ import { defineComponent as k, computed as v, openBlock as n, createBlock as E, Teleport as R, unref as r, createElementBlock as s, normalizeStyle as N, createElementVNode as y, Fragment as _, renderList as w, createCommentVNode as h, normalizeProps as F, guardReactiveProps as L, createSlots as T, withCtx as c, createVNode as O, renderSlot as m, markRaw as z } from "vue";
2
+ import { _ as I } from "../chunks/FrameShellBase.vue_vue_type_script_setup_true_lang-sr56H_8-.mjs";
3
+ import { CORE_VIEWPORT_DECOR_ZINDEX_BELOW as P } from "@done-coding/admin-core";
4
+ import { u as V } from "../chunks/use-frame-geometry-DPWBVziK.mjs";
5
+ import { _ as A } from "../chunks/_plugin-vue_export-helper-CHgC5LLL.mjs";
6
6
  const W = ["width", "height", "viewBox"], H = { "stroke-width": 1.2 }, X = ["x1", "y1", "x2", "y2", "stroke", "stroke-opacity"], Z = ["dur", "begin"], j = ["dur", "begin", "path"], q = ["cx", "cy", "fill"], J = ["begin"], K = /* @__PURE__ */ k({
7
7
  __name: "SynapseGridDecor",
8
8
  setup(C) {
9
- const { vp: u, isDark: o, animated: f, vw: l, vh: g, hasFrame: B } = P(), b = v(
9
+ const { vp: u, isDark: o, animated: f, vw: l, vh: g, hasFrame: B } = V(), b = v(
10
10
  () => Math.min(
11
11
  u.value.paddingTop,
12
12
  u.value.paddingRight,
@@ -83,7 +83,7 @@ const W = ["width", "height", "viewBox"], H = { "stroke-width": 1.2 }, X = ["x1"
83
83
  left: 0,
84
84
  top: 0,
85
85
  pointerEvents: "none",
86
- zIndex: r(A),
86
+ zIndex: r(P),
87
87
  opacity: r(o) ? 0.4 : 0.16
88
88
  }),
89
89
  width: r(l),
@@ -154,7 +154,7 @@ const W = ["width", "height", "viewBox"], H = { "stroke-width": 1.2 }, X = ["x1"
154
154
  ], 12, W)) : h("", !0)
155
155
  ]));
156
156
  }
157
- }), Q = /* @__PURE__ */ V(K, [["__scopeId", "data-v-66a77bb9"]]), U = /* @__PURE__ */ k({
157
+ }), Q = /* @__PURE__ */ A(K, [["__scopeId", "data-v-c67da4cc"]]), U = /* @__PURE__ */ k({
158
158
  __name: "SynapseGridShell",
159
159
  props: {
160
160
  menus: {},
@@ -170,14 +170,14 @@ const W = ["width", "height", "viewBox"], H = { "stroke-width": 1.2 }, X = ["x1"
170
170
  },
171
171
  setup(C) {
172
172
  const u = C;
173
- return (o, f) => (n(), E(z, F(L(u)), T({
173
+ return (o, f) => (n(), E(I, F(L(u)), T({
174
174
  default: c((l) => [
175
175
  m(o.$slots, "default", {
176
176
  Footer: l.Footer
177
177
  })
178
178
  ]),
179
179
  decor: c(() => [
180
- I(Q)
180
+ O(Q)
181
181
  ]),
182
182
  _: 2
183
183
  }, [
@@ -267,7 +267,7 @@ const W = ["width", "height", "viewBox"], H = { "stroke-width": 1.2 }, X = ["x1"
267
267
  header: { height: 52 },
268
268
  sidebar: { width: 240, collapseWidth: 60 },
269
269
  body: { shimPadding: 16 },
270
- shell: O(U)
270
+ shell: z(U)
271
271
  }
272
272
  };
273
273
  export {
@@ -1,14 +1,14 @@
1
- import { defineComponent as y, computed as c, openBlock as a, createBlock as v, Teleport as C, unref as e, createElementBlock as l, normalizeStyle as x, createElementVNode as o, createCommentVNode as d, normalizeProps as k, guardReactiveProps as B, createSlots as $, withCtx as s, createVNode as S, renderSlot as p, markRaw as E } from "vue";
2
- import { _ as D } from "../chunks/FrameShellBase.vue_vue_type_script_setup_true_lang-sr56H_8-.mjs";
3
- import { ADMIN_CORE_VIEWPORT_DECOR_ZINDEX_BELOW as M } from "@done-coding/admin-core";
4
- import { u as R } from "../chunks/use-frame-geometry-DPWBVziK.mjs";
1
+ import { defineComponent as y, computed as f, openBlock as a, createBlock as v, Teleport as C, unref as e, createElementBlock as l, normalizeStyle as x, createElementVNode as o, createCommentVNode as d, normalizeProps as k, guardReactiveProps as B, createSlots as $, withCtx as s, createVNode as S, renderSlot as p, markRaw as E } from "vue";
2
+ import { _ as R } from "../chunks/FrameShellBase.vue_vue_type_script_setup_true_lang-sr56H_8-.mjs";
3
+ import { CORE_VIEWPORT_DECOR_ZINDEX_BELOW as D } from "@done-coding/admin-core";
4
+ import { u as M } from "../chunks/use-frame-geometry-DPWBVziK.mjs";
5
5
  import { _ as G } from "../chunks/_plugin-vue_export-helper-CHgC5LLL.mjs";
6
- const N = ["width", "height", "viewBox"], P = {
6
+ const P = ["width", "height", "viewBox"], N = {
7
7
  id: "scanlinePattern",
8
8
  width: "3",
9
9
  height: "3",
10
10
  patternUnits: "userSpaceOnUse"
11
- }, I = ["fill"], T = ["width", "height"], W = ["x", "y", "width", "height", "stroke", "stroke-width", "filter"], F = {
11
+ }, T = ["fill"], W = ["width", "height"], F = ["x", "y", "width", "height", "stroke", "stroke-width", "filter"], I = {
12
12
  key: 0,
13
13
  attributeName: "stroke-opacity",
14
14
  values: "0.5;1;0.5",
@@ -17,14 +17,14 @@ const N = ["width", "height", "viewBox"], P = {
17
17
  }, L = ["width"], O = ["values"], z = { key: 2 }, V = /* @__PURE__ */ y({
18
18
  __name: "ScanlineDecor",
19
19
  setup(m) {
20
- const { vp: i, isDark: t, animated: f, vw: r, vh: n, hasFrame: b } = R(), g = c(() => t.value ? "#39ff14" : "#0f8a4f"), h = c(
20
+ const { vp: i, isDark: t, animated: c, vw: r, vh: n, hasFrame: b } = M(), g = f(() => t.value ? "#39ff14" : "#0f8a4f"), h = f(
21
21
  () => Math.min(
22
22
  i.value.paddingTop,
23
23
  i.value.paddingRight,
24
24
  i.value.paddingBottom,
25
25
  i.value.paddingLeft
26
26
  ) / 2
27
- ), w = c(() => Math.max(0, r.value - h.value * 2)), _ = c(() => Math.max(0, n.value - h.value * 2));
27
+ ), w = f(() => Math.max(0, r.value - h.value * 2)), _ = f(() => Math.max(0, n.value - h.value * 2));
28
28
  return (U, u) => (a(), v(C, { to: "body" }, [
29
29
  e(b) ? (a(), l("svg", {
30
30
  key: 0,
@@ -34,7 +34,7 @@ const N = ["width", "height", "viewBox"], P = {
34
34
  left: 0,
35
35
  top: 0,
36
36
  pointerEvents: "none",
37
- zIndex: e(M)
37
+ zIndex: e(D)
38
38
  }),
39
39
  width: e(r),
40
40
  height: e(n),
@@ -42,12 +42,12 @@ const N = ["width", "height", "viewBox"], P = {
42
42
  "aria-hidden": "true"
43
43
  }, [
44
44
  o("defs", null, [
45
- o("pattern", P, [
45
+ o("pattern", N, [
46
46
  o("rect", {
47
47
  width: "3",
48
48
  height: "1",
49
49
  fill: g.value
50
- }, null, 8, I)
50
+ }, null, 8, T)
51
51
  ]),
52
52
  u[0] || (u[0] = o("filter", {
53
53
  id: "scanlineGlow",
@@ -65,7 +65,7 @@ const N = ["width", "height", "viewBox"], P = {
65
65
  height: e(n),
66
66
  fill: "url(#scanlinePattern)",
67
67
  opacity: "0.06"
68
- }, null, 8, T)) : d("", !0),
68
+ }, null, 8, W)) : d("", !0),
69
69
  o("rect", {
70
70
  x: h.value,
71
71
  y: h.value,
@@ -76,9 +76,9 @@ const N = ["width", "height", "viewBox"], P = {
76
76
  "stroke-width": e(t) ? 1.5 : 1,
77
77
  filter: e(t) ? "url(#scanlineGlow)" : void 0
78
78
  }, [
79
- e(f) ? (a(), l("animate", F)) : d("", !0)
80
- ], 8, W),
81
- e(f) ? (a(), l("rect", {
79
+ e(c) ? (a(), l("animate", I)) : d("", !0)
80
+ ], 8, F),
81
+ e(c) ? (a(), l("rect", {
82
82
  key: 1,
83
83
  width: e(r),
84
84
  height: "60",
@@ -93,7 +93,7 @@ const N = ["width", "height", "viewBox"], P = {
93
93
  repeatCount: "indefinite"
94
94
  }, null, 8, O)
95
95
  ], 8, L)) : d("", !0),
96
- e(f) ? (a(), l("defs", z, [...u[1] || (u[1] = [
96
+ e(c) ? (a(), l("defs", z, [...u[1] || (u[1] = [
97
97
  o("linearGradient", {
98
98
  id: "scanBandGrad",
99
99
  x1: "0",
@@ -118,10 +118,10 @@ const N = ["width", "height", "viewBox"], P = {
118
118
  })
119
119
  ], -1)
120
120
  ])])) : d("", !0)
121
- ], 12, N)) : d("", !0)
121
+ ], 12, P)) : d("", !0)
122
122
  ]));
123
123
  }
124
- }), A = /* @__PURE__ */ G(V, [["__scopeId", "data-v-cf9db83e"]]), H = /* @__PURE__ */ y({
124
+ }), H = /* @__PURE__ */ G(V, [["__scopeId", "data-v-1c87c0b4"]]), A = /* @__PURE__ */ y({
125
125
  __name: "ScanlineShell",
126
126
  props: {
127
127
  menus: {},
@@ -137,14 +137,14 @@ const N = ["width", "height", "viewBox"], P = {
137
137
  },
138
138
  setup(m) {
139
139
  const i = m;
140
- return (t, f) => (a(), v(D, k(B(i)), $({
140
+ return (t, c) => (a(), v(R, k(B(i)), $({
141
141
  default: s((r) => [
142
142
  p(t.$slots, "default", {
143
143
  Footer: r.Footer
144
144
  })
145
145
  ]),
146
146
  decor: s(() => [
147
- S(A)
147
+ S(H)
148
148
  ]),
149
149
  _: 2
150
150
  }, [
@@ -232,7 +232,7 @@ const N = ["width", "height", "viewBox"], P = {
232
232
  header: { height: 44 },
233
233
  sidebar: { width: 220, collapseWidth: 52 },
234
234
  body: { shimPadding: 14 },
235
- shell: E(H)
235
+ shell: E(A)
236
236
  }
237
237
  };
238
238
  export {
@@ -43,13 +43,13 @@ const r = {
43
43
  gap: { size: 10 },
44
44
  header: {
45
45
  height: 58,
46
- background: "var(--admin-core-surface, var(--el-bg-color-overlay))",
46
+ background: "var(--dc-core-surface, var(--el-bg-color-overlay))",
47
47
  style: { borderRadius: "8px" }
48
48
  },
49
49
  sidebar: {
50
50
  width: 252,
51
51
  collapseWidth: 64,
52
- background: "var(--admin-core-surface, var(--el-bg-color-overlay))",
52
+ background: "var(--dc-core-surface, var(--el-bg-color-overlay))",
53
53
  style: { borderRadius: "8px" }
54
54
  },
55
55
  body: { shimPadding: 24 }
@@ -0,0 +1,52 @@
1
+ import { defineComponent as p, computed as v, openBlock as c, createBlock as w, Teleport as x, unref as r, createElementBlock as s, normalizeStyle as y, createElementVNode as f, Fragment as g, renderList as k, createCommentVNode as E } from "vue";
2
+ import { CORE_VIEWPORT_DECOR_ZINDEX_BELOW as C } from "@done-coding/admin-core";
3
+ import { u as b } from "./use-frame-geometry-DPWBVziK.mjs";
4
+ import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
5
+ const F = ["width", "height", "viewBox"], I = { fill: "var(--dc-core-body-color, var(--el-bg-color-page, var(--el-bg-color)))" }, M = ["x", "y", "width", "height"], O = /* @__PURE__ */ p({
6
+ __name: "CockpitFrameMatte",
7
+ setup(R) {
8
+ const { vw: a, vh: n, hasFrame: i, hollowX: h, hollowY: m, hollowW: u, hollowH: _ } = b(), d = v(() => {
9
+ const l = h.value, t = m.value, e = u.value, o = _.value;
10
+ return [
11
+ { x: 0, y: 0, w: a.value, h: t },
12
+ // 顶带
13
+ { x: 0, y: t + o, w: a.value, h: Math.max(0, n.value - t - o) },
14
+ // 底带
15
+ { x: 0, y: t, w: l, h: o },
16
+ // 左带
17
+ { x: l + e, y: t, w: Math.max(0, a.value - l - e), h: o }
18
+ // 右带
19
+ ];
20
+ });
21
+ return (l, t) => (c(), w(x, { to: "body" }, [
22
+ r(i) ? (c(), s("svg", {
23
+ key: 0,
24
+ class: "cockpit-frame-matte",
25
+ style: y({
26
+ position: "fixed",
27
+ left: 0,
28
+ top: 0,
29
+ pointerEvents: "none",
30
+ zIndex: r(C)
31
+ }),
32
+ width: r(a),
33
+ height: r(n),
34
+ viewBox: `0 0 ${r(a)} ${r(n)}`,
35
+ "aria-hidden": "true"
36
+ }, [
37
+ f("g", I, [
38
+ (c(!0), s(g, null, k(d.value, (e, o) => (c(), s("rect", {
39
+ key: o,
40
+ x: e.x,
41
+ y: e.y,
42
+ width: e.w,
43
+ height: e.h
44
+ }, null, 8, M))), 128))
45
+ ])
46
+ ], 12, F)) : E("", !0)
47
+ ]));
48
+ }
49
+ }), D = /* @__PURE__ */ B(O, [["__scopeId", "data-v-7bb70153"]]);
50
+ export {
51
+ D as C
52
+ };
@@ -1,34 +1,34 @@
1
- import { defineComponent as h, inject as $, computed as p, openBlock as c, createElementBlock as u, normalizeStyle as H, createElementVNode as e, unref as i, Fragment as f, createCommentVNode as N, toDisplayString as y, renderList as E, createTextVNode as O, renderSlot as l, createVNode as d, withCtx as v } from "vue";
1
+ import { defineComponent as h, inject as $, computed as m, openBlock as d, createElementBlock as u, normalizeStyle as H, createElementVNode as e, unref as s, Fragment as f, createCommentVNode as N, toDisplayString as y, renderList as E, createTextVNode as O, renderSlot as l, createVNode as c, withCtx as v } from "vue";
2
2
  import { APP_LAYOUT_BRIDGE_KEY as R, AppSidebar as z, AppAside as T, AppHeader as j, AppTheme as b } from "@done-coding/admin-core";
3
3
  import { u as P } from "./use-frame-geometry-DPWBVziK.mjs";
4
- import { C as V } from "./CockpitFrameMatte-DGQRZk-I.mjs";
4
+ import { C as V } from "./CockpitFrameMatte-BbTtd3J2.mjs";
5
5
  const D = {
6
6
  cx: "5",
7
7
  cy: "5",
8
8
  r: "3",
9
- fill: "var(--admin-core-accent, var(--admin-core-primary-color, var(--el-color-primary)))"
9
+ fill: "var(--dc-core-accent, var(--dc-core-primary-color, var(--el-color-primary)))"
10
10
  }, G = /* @__PURE__ */ h({
11
11
  __name: "CockpitStatusBar",
12
12
  setup(t) {
13
- const { animated: r } = P(), a = $(R), g = p(() => {
14
- const n = (a == null ? void 0 : a.themeStyle.value) ?? "";
15
- return (a == null ? void 0 : a.theme.labelOf(n)) || n || "意图座舱";
16
- }), m = p(() => a == null ? void 0 : a.APP_LAYOUT_FOOTER_CONFIG), x = ["思考", "检索", "编排", "执行"], S = p(() => {
17
- var n, o, s;
13
+ const { animated: a } = P(), r = $(R), g = m(() => {
14
+ const n = (r == null ? void 0 : r.themeStyle.value) ?? "";
15
+ return (r == null ? void 0 : r.theme.labelOf(n)) || n || "意图座舱";
16
+ }), p = m(() => r == null ? void 0 : r.APP_LAYOUT_FOOTER_CONFIG), x = ["思考", "检索", "编排", "执行"], S = m(() => {
17
+ var n, o, i;
18
18
  return {
19
- ...((n = m.value) == null ? void 0 : n.style) ?? {},
19
+ ...((n = p.value) == null ? void 0 : n.style) ?? {},
20
20
  display: "flex",
21
21
  alignItems: "center",
22
22
  justifyContent: "space-between",
23
23
  gap: "16px",
24
24
  width: "100%",
25
- height: `${((o = m.value) == null ? void 0 : o.height) ?? 36}px`,
25
+ height: `${((o = p.value) == null ? void 0 : o.height) ?? 36}px`,
26
26
  padding: "0 16px",
27
27
  fontSize: "12px",
28
28
  lineHeight: "1",
29
- color: "var(--admin-core-base-color, var(--el-text-color-regular))",
29
+ color: "var(--dc-core-base-color, var(--el-text-color-regular))",
30
30
  // 不透明实底(缺则退 el overlay)——挡住身后 decor,不透出。
31
- background: ((s = m.value) == null ? void 0 : s.background) ?? "var(--admin-core-surface, var(--el-bg-color-overlay))",
31
+ background: ((i = p.value) == null ? void 0 : i.background) ?? "var(--dc-core-surface, var(--el-bg-color-overlay))",
32
32
  userSelect: "none",
33
33
  overflow: "hidden",
34
34
  whiteSpace: "nowrap",
@@ -43,9 +43,9 @@ const D = {
43
43
  }, M = {
44
44
  flex: "0 0 auto",
45
45
  // active 辉光:主色派生 drop-shadow(随主题/亮暗自适配)。
46
- filter: "drop-shadow(0 0 4px var(--admin-core-primary-color, var(--el-color-primary)))"
46
+ filter: "drop-shadow(0 0 4px var(--dc-core-primary-color, var(--el-color-primary)))"
47
47
  }, k = {
48
- color: "var(--admin-core-primary-color, var(--el-color-primary))"
48
+ color: "var(--dc-core-primary-color, var(--el-color-primary))"
49
49
  }, C = {
50
50
  display: "flex",
51
51
  alignItems: "center",
@@ -59,10 +59,10 @@ const D = {
59
59
  alignItems: "center",
60
60
  gap: "5px",
61
61
  padding: "3px 10px",
62
- borderRadius: "var(--admin-core-radius, var(--el-border-radius-base))",
63
- // surface 玻璃面板底(缺则退 el overlay);榨干 --admin-core-surface。
64
- background: "var(--admin-core-surface, var(--el-bg-color-overlay))",
65
- border: "1px solid var(--admin-core-border-color, var(--el-border-color-lighter))",
62
+ borderRadius: "var(--dc-core-radius, var(--el-border-radius-base))",
63
+ // surface 玻璃面板底(缺则退 el overlay);榨干 --dc-core-surface。
64
+ background: "var(--dc-core-surface, var(--el-bg-color-overlay))",
65
+ border: "1px solid var(--dc-core-border-color, var(--el-border-color-lighter))",
66
66
  opacity: 0.85
67
67
  }, A = {
68
68
  display: "inline-flex",
@@ -73,8 +73,8 @@ const D = {
73
73
  borderRadius: "50%",
74
74
  fontSize: "10px",
75
75
  fontWeight: 700,
76
- color: "var(--admin-core-body-color, var(--el-bg-color))",
77
- background: "var(--admin-core-primary-color, var(--el-color-primary))"
76
+ color: "var(--dc-core-body-color, var(--el-bg-color))",
77
+ background: "var(--dc-core-primary-color, var(--el-color-primary))"
78
78
  }, L = {
79
79
  display: "flex",
80
80
  alignItems: "center",
@@ -86,15 +86,15 @@ const D = {
86
86
  borderRadius: "4px",
87
87
  fontSize: "11px",
88
88
  fontFamily: "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace",
89
- background: "var(--admin-core-surface, var(--el-fill-color-light))",
90
- border: "1px solid var(--admin-core-border-color, var(--el-border-color))"
89
+ background: "var(--dc-core-surface, var(--el-fill-color-light))",
90
+ border: "1px solid var(--dc-core-border-color, var(--el-border-color))"
91
91
  };
92
- return (n, o) => (c(), u("div", {
92
+ return (n, o) => (d(), u("div", {
93
93
  class: "cockpit-statusbar",
94
94
  style: H(S.value)
95
95
  }, [
96
96
  e("div", { style: w }, [
97
- (c(), u("svg", {
97
+ (d(), u("svg", {
98
98
  width: "10",
99
99
  height: "10",
100
100
  viewBox: "0 0 10 10",
@@ -102,7 +102,7 @@ const D = {
102
102
  "aria-hidden": "true"
103
103
  }, [
104
104
  e("circle", D, [
105
- i(r) ? (c(), u(f, { key: 0 }, [
105
+ s(a) ? (d(), u(f, { key: 0 }, [
106
106
  o[0] || (o[0] = e("animate", {
107
107
  attributeName: "opacity",
108
108
  values: "1;0.3;1",
@@ -122,12 +122,12 @@ const D = {
122
122
  o[2] || (o[2] = e("span", { style: { opacity: 0.66 } }, "Agent 待命", -1))
123
123
  ]),
124
124
  e("div", { style: C }, [
125
- (c(), u(f, null, E(x, (s, I) => e("span", {
126
- key: s,
125
+ (d(), u(f, null, E(x, (i, I) => e("span", {
126
+ key: i,
127
127
  style: F
128
128
  }, [
129
129
  e("span", { style: A }, y(I + 1), 1),
130
- O(" " + y(s), 1)
130
+ O(" " + y(i), 1)
131
131
  ])), 64))
132
132
  ]),
133
133
  e("div", { style: L }, [
@@ -151,21 +151,21 @@ const D = {
151
151
  sidebarAboveHeader: { type: Boolean }
152
152
  },
153
153
  setup(t) {
154
- return (r, a) => (c(), u(f, null, [
155
- l(r.$slots, "default", { Footer: G }),
156
- d(i(z), {
154
+ return (a, r) => (d(), u(f, null, [
155
+ l(a.$slots, "default", { Footer: G }),
156
+ c(s(z), {
157
157
  show: t.showSidebar,
158
158
  aboveHeader: t.sidebarAboveHeader,
159
159
  menus: t.sidebarMenus,
160
160
  menuFlatList: t.menuFlatList
161
161
  }, null, 8, ["show", "aboveHeader", "menus", "menuFlatList"]),
162
- d(i(T), { show: t.showAside }, {
162
+ c(s(T), { show: t.showAside }, {
163
163
  default: v(() => [
164
- l(r.$slots, "aside")
164
+ l(a.$slots, "aside")
165
165
  ]),
166
166
  _: 3
167
167
  }, 8, ["show"]),
168
- d(i(j), {
168
+ c(s(j), {
169
169
  show: t.showHeader,
170
170
  menus: t.headerMenus,
171
171
  activeMenu: t.activeMenu,
@@ -173,19 +173,19 @@ const D = {
173
173
  menuFlatList: t.menuFlatList
174
174
  }, {
175
175
  left: v(() => [
176
- l(r.$slots, "brand")
176
+ l(a.$slots, "brand")
177
177
  ]),
178
178
  right: v(() => [
179
- l(r.$slots, "themeSwitcher", { Default: i(b) }, () => [
180
- d(i(b))
179
+ l(a.$slots, "themeSwitcher", { Default: s(b) }, () => [
180
+ c(s(b))
181
181
  ]),
182
- l(r.$slots, "userEntry"),
183
- l(r.$slots, "settings")
182
+ l(a.$slots, "userEntry"),
183
+ l(a.$slots, "settings")
184
184
  ]),
185
185
  _: 3
186
186
  }, 8, ["show", "menus", "activeMenu", "activeModuleMenu", "menuFlatList"]),
187
- d(V),
188
- l(r.$slots, "decor")
187
+ c(V),
188
+ l(a.$slots, "decor")
189
189
  ], 64));
190
190
  }
191
191
  });
package/es/index.mjs CHANGED
@@ -1,13 +1,13 @@
1
1
  const n = {
2
- name: "admin-plugin-theme",
3
- install(t, e) {
2
+ name: "dc-plugin-theme",
3
+ install(m, e) {
4
4
  var h;
5
5
  if (!e || !((h = e.themes) != null && h.length))
6
6
  throw new Error(
7
- "admin-plugin-theme: 安装需要 options.themes(至少 1 个风格)"
7
+ "dc-plugin-theme: 安装需要 options.themes(至少 1 个风格)"
8
8
  );
9
- e.themes.forEach((m) => {
10
- t.bridge.theme.add(m.id, m);
9
+ e.themes.forEach((t) => {
10
+ m.bridge.theme.add(t.id, t);
11
11
  });
12
12
  }
13
13
  };
package/es/style.css CHANGED
@@ -1 +1 @@
1
- .aurora-frame-decor[data-v-99584d50],.aurora-nebula-decor[data-v-bd06edd0],.aurora-mesh-decor[data-v-30bd1904],.cockpit-frame-matte[data-v-a8c0e509],.cockpit-brutal-steel-decor[data-v-d5f290cf],.cockpit-liquid-ink-decor[data-v-122f9ed8],.cockpit-mono-paper-decor[data-v-a518c8db],.cockpit-neural-field-decor[data-v-81008f21],.film-grade-decor[data-v-dedf7df3],.kitchen-foundry-decor[data-v-d39e914e],.neon-stage-decor[data-v-9a7212b2],.quantum-orbit-decor[data-v-b17094ed],.studio-glow-decor[data-v-31ae78d7],.studio-stage-decor[data-v-ae0e9545],.synapse-grid-decor[data-v-66a77bb9],.scanline-decor[data-v-cf9db83e]{position:fixed;left:0;top:0;pointer-events:none}
1
+ .aurora-frame-decor[data-v-438b8ad5],.aurora-nebula-decor[data-v-81c1057c],.aurora-mesh-decor[data-v-6300c635],.cockpit-frame-matte[data-v-7bb70153],.cockpit-brutal-steel-decor[data-v-6f91319d],.cockpit-liquid-ink-decor[data-v-5dc0dc3c],.cockpit-mono-paper-decor[data-v-2abf82a1],.cockpit-neural-field-decor[data-v-bea71267],.film-grade-decor[data-v-96196e59],.kitchen-foundry-decor[data-v-ffd374dc],.neon-stage-decor[data-v-633685c8],.quantum-orbit-decor[data-v-9b390c67],.studio-glow-decor[data-v-f95652f3],.studio-stage-decor[data-v-62460651],.synapse-grid-decor[data-v-c67da4cc],.scanline-decor[data-v-1c87c0b4]{position:fixed;left:0;top:0;pointer-events:none}
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@done-coding/admin-plugin-theme",
3
- "version": "0.4.0",
4
- "description": "admin 主题风格插件",
3
+ "version": "0.4.1",
4
+ "description": "内部前端库",
5
5
  "private": false,
6
- "main": "lib/index.cjs",
6
+ "main": "es/index.mjs",
7
7
  "module": "es/index.mjs",
8
8
  "types": "types/index.d.ts",
9
9
  "type": "module",
10
10
  "exports": {
11
11
  ".": {
12
12
  "import": "./es/index.mjs",
13
- "require": "./lib/index.cjs",
13
+ "require": "./es/index.mjs",
14
14
  "types": "./types/index.d.ts"
15
15
  },
16
16
  "./assets/*": {
@@ -20,7 +20,6 @@
20
20
  },
21
21
  "files": [
22
22
  "es",
23
- "lib",
24
23
  "types"
25
24
  ],
26
25
  "scripts": {
@@ -29,7 +28,7 @@
29
28
  "dev": "vite build -w -m hotBuild",
30
29
  "prehotBuild": "dc-inject",
31
30
  "hotBuild": "vite build -w",
32
- "prebuild": "rimraf types && dc-inject",
31
+ "prebuild": "rimraf types lib && dc-inject",
33
32
  "build": "vue-tsc && vite build",
34
33
  "build:test": "pnpm run build",
35
34
  "prepack": "pnpm build",
@@ -51,7 +50,7 @@
51
50
  "license": "MIT",
52
51
  "sideEffects": false,
53
52
  "devDependencies": {
54
- "@done-coding/admin-core": "0.12.1",
53
+ "@done-coding/admin-core": "0.12.2",
55
54
  "@done-coding/cli-inject": "^0.6.2",
56
55
  "@types/node": "^18.0.0",
57
56
  "@vitejs/plugin-vue": "^5.0.4",
@@ -73,5 +72,5 @@
73
72
  "engines": {
74
73
  "node": ">=18.0.0"
75
74
  },
76
- "gitHead": "2dfa1ccfcf8d005a1949648ec916ea65235c40ad"
75
+ "gitHead": "96bf729b0f58d35828f655277a5af87680b821f2"
77
76
  }
@@ -1,15 +1,3 @@
1
- import { AdminThemePreset } from '@done-coding/admin-plugin-theme';
2
- /**
3
- * 应用智能·框光(applied-intelligence-frame)—— 现代 AI 产品气质的智能签名主题(框边亮带)。
4
- *
5
- * 设计主旨:
6
- * - 智能签名 = viewport 套框边圈一圈缓慢呼吸的「靛蓝辉光带」聚焦 + 框内节点明灭(全幅极淡雾打底,
7
- * AppliedIntelligenceFrameShell teleport SVG);辉光晕住内容、中间内容区更净,克制不抢内容。
8
- * - 智能感 = 电光靛蓝主色(蓝偏靛、避「紫渐变」AI 套路色)。
9
- * - premium 产品感 = 套框沉浸(viewport 四边留白)+ 模块分离悬浮(gap)+ 10px 圆角。
10
- * - 暗色为主场:深空藏蓝底 + 框边靛蓝辉光;亮场降为极淡静态。
11
- * 与同族「应用智能·星雾」共用同一套靛蓝 config + 套框 layout,仅装饰形态不同(框边亮带 vs 光雾)。
12
- * 同族 sibling 共色:辨识靠名字 +装饰,配色刻意保持一致(presets 测试对同族共色豁免唯一性安全网)。
13
- */
14
- declare const appliedIntelligenceFrameTheme: AdminThemePreset;
1
+ import { CoreThemePreset } from '@done-coding/admin-plugin-theme';
2
+ declare const appliedIntelligenceFrameTheme: CoreThemePreset;
15
3
  export default appliedIntelligenceFrameTheme;
@@ -1,14 +1,3 @@
1
- import { AdminThemePreset } from '@done-coding/admin-plugin-theme';
2
- /**
3
- * 应用智能·星雾(applied-intelligence-nebula)—— 现代 AI 产品气质的智能签名主题(光雾呼吸)。
4
- *
5
- * 设计主旨:
6
- * - 智能签名 = viewport 套框内缓慢呼吸漂移的「靛蓝光雾星云」(节点在雾里明灭 + 偶发推理脉冲,
7
- * AppliedIntelligenceNebulaShell teleport SVG);靠「光的纵深」而非「线」,克制不抢内容。
8
- * - 智能感 = 电光靛蓝主色(蓝偏靛、避「紫渐变」AI 套路色)。
9
- * - premium 产品感 = 套框沉浸(viewport 四边留白)+ 模块分离悬浮(gap)+ 10px 圆角。
10
- * - 暗色为主场:深空藏蓝底 + 靛蓝光雾发光;亮场降为极淡静态雾。
11
- * 与同族「应用智能·框光」共用靛蓝 config + 套框 layout,仅装饰形态不同(光雾 vs 框边亮带)。
12
- */
13
- declare const appliedIntelligenceNebulaTheme: AdminThemePreset;
1
+ import { CoreThemePreset } from '@done-coding/admin-plugin-theme';
2
+ declare const appliedIntelligenceNebulaTheme: CoreThemePreset;
14
3
  export default appliedIntelligenceNebulaTheme;
@@ -1,9 +1,3 @@
1
- import { AdminThemePreset } from '@done-coding/admin-plugin-theme';
2
- /**
3
- * aurora-mesh —— 极光网格(AI 控制台·电蓝渐紫极光网格在暗场流动)。
4
- *
5
- * 主场 dark:深空底靠低饱和渐变 mesh 帘幕在 viewport 16px 边框圈缓慢漂移(AuroraMeshShell
6
- * teleport SVG),冷静呼吸感的 AI 旗舰气质;light 去极光化为静态浅科技。
7
- */
8
- declare const auroraMeshTheme: AdminThemePreset;
1
+ import { CoreThemePreset } from '@done-coding/admin-plugin-theme';
2
+ declare const auroraMeshTheme: CoreThemePreset;
9
3
  export default auroraMeshTheme;
@@ -1,10 +1,3 @@
1
- import { AdminThemePreset } from '@done-coding/admin-plugin-theme';
2
- /**
3
- * botanical-paper —— 草木纸本(暖调有机自然)。
4
- *
5
- * 米纸底 + 苔藓绿 primary + 树皮棕 accent,大圆角(16px)、柔边、纸纹意象。区别于 nordic-fjord
6
- * (冷雾绿):暖米底 + 暖绿 + 棕,手作温度;区别于 sandstone(编辑砂岩赭墨):更圆润有机、绿主。
7
- * surface 接近纸白,整体松弛亲和。无 shell。
8
- */
9
- declare const botanicalPaperTheme: AdminThemePreset;
1
+ import { CoreThemePreset } from '@done-coding/admin-plugin-theme';
2
+ declare const botanicalPaperTheme: CoreThemePreset;
10
3
  export default botanicalPaperTheme;
@@ -1,10 +1,3 @@
1
- import { AdminThemePreset } from '@done-coding/admin-plugin-theme';
2
- /**
3
- * brutal-concrete —— 粗野混凝土(Brutalism = 透明性)。
4
- *
5
- * 清水混凝土灰底 + 纯黑正文 + 安全橙唯一强调;radius=0、borderWidth=2px 粗边、shadow=none——
6
- * 零修饰、可见结构、未完成的诚实感。区别于 contrast(纯黑白无障碍):保留混凝土灰 + 安全橙单点 +
7
- * 工业涂装感功能色。在一众柔光圆角中后台里极度反差、过目不忘。无 shell。
8
- */
9
- declare const brutalConcreteTheme: AdminThemePreset;
1
+ import { CoreThemePreset } from '@done-coding/admin-plugin-theme';
2
+ declare const brutalConcreteTheme: CoreThemePreset;
10
3
  export default brutalConcreteTheme;
@@ -1,3 +1,3 @@
1
- import { AdminThemePreset } from '@done-coding/admin-plugin-theme';
2
- declare const cockpitBrutalSteel: AdminThemePreset;
1
+ import { CoreThemePreset } from '@done-coding/admin-plugin-theme';
2
+ declare const cockpitBrutalSteel: CoreThemePreset;
3
3
  export default cockpitBrutalSteel;
@@ -1,14 +1,3 @@
1
- import { AdminThemePreset } from '@done-coding/admin-plugin-theme';
2
- /**
3
- * 座舱·液墨(cockpit-liquid-ink)—— 意图座舱旗舰家族·主推皮肤。
4
- *
5
- * 设计主旨(集众家所长,碾压靠系统非配色):
6
- * - 「意图座舱」拓扑:顶栏=任务域切换条(extractLevel1ToHeader)/ 侧栏=技能栏 /
7
- * 主区=文档画布 / 右侧=常驻副驾 dock(aside)/ 底部=行动状态条(footer,31 套 0 用)。
8
- * - 深墨底(介于明暗之间,premium)+ 半透玻璃面板(blur+surface)+ 单道电光 azure accent +
9
- * active 辉光(glow);液态玻璃的纵深,克制不喧宾(对齐 webagent「可信工具感」)。
10
- * - 17 色全字段 + viewport 套框 + 全 layout 旋钮榨干;本主题的 --admin-core-* 同时刷新
11
- * admin 骨架 + webagent 气泡/推理轨 + Monaco + X6 流程画布(一个 token 源统治整条 AI 工作链)。
12
- */
13
- declare const cockpitLiquidInk: AdminThemePreset;
1
+ import { CoreThemePreset } from '@done-coding/admin-plugin-theme';
2
+ declare const cockpitLiquidInk: CoreThemePreset;
14
3
  export default cockpitLiquidInk;