@done-coding/admin-plugin-theme 0.1.1-alpha.0 → 0.2.1-alpha.0

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 (153) hide show
  1. package/es/assets/applied-intelligence-frame.mjs +315 -0
  2. package/es/assets/applied-intelligence-nebula.mjs +400 -0
  3. package/es/assets/aurora-mesh.mjs +350 -0
  4. package/es/assets/botanical-paper.mjs +60 -0
  5. package/es/assets/brutal-concrete.mjs +51 -0
  6. package/es/assets/cockpit-brutal-steel.mjs +300 -0
  7. package/es/assets/cockpit-liquid-ink.mjs +329 -0
  8. package/es/assets/cockpit-mono-paper.mjs +238 -0
  9. package/es/assets/cockpit-neural-field.mjs +339 -0
  10. package/es/assets/compact-rail.mjs +105 -0
  11. package/es/assets/console-horizon.mjs +98 -0
  12. package/es/assets/contrast.mjs +3 -1
  13. package/es/assets/copilot-calm.mjs +59 -0
  14. package/es/assets/copilot-stage.mjs +110 -0
  15. package/es/assets/coral-reef.mjs +60 -0
  16. package/es/assets/cyber.mjs +3 -1
  17. package/es/assets/dragon-vermilion.mjs +450 -0
  18. package/es/assets/film-grade.mjs +252 -0
  19. package/es/assets/glass.mjs +3 -1
  20. package/es/assets/graphite-mono.mjs +51 -0
  21. package/es/assets/gugong.mjs +3 -1
  22. package/es/assets/ink.mjs +3 -1
  23. package/es/assets/neon-set.mjs +316 -0
  24. package/es/assets/nordic-fjord.mjs +58 -0
  25. package/es/assets/perspective-deck.mjs +229 -0
  26. package/es/assets/quantum-ai.mjs +255 -0
  27. package/es/assets/sandstone-editorial.mjs +60 -0
  28. package/es/assets/starfield-cosmos.mjs +352 -0
  29. package/es/assets/studio-ink.mjs +308 -0
  30. package/es/assets/studio-triptych.mjs +115 -0
  31. package/es/assets/sunset-amber.mjs +61 -0
  32. package/es/assets/synapse-grid.mjs +275 -0
  33. package/es/assets/terminal-phosphor.mjs +240 -0
  34. package/es/assets/velvet-noir.mjs +60 -0
  35. package/es/chunks/CockpitShellBase.vue_vue_type_script_setup_true_lang-B6k0Utzz.mjs +238 -0
  36. package/es/chunks/FrameShellBase.vue_vue_type_script_setup_true_lang-sr56H_8-.mjs +57 -0
  37. package/es/chunks/HeaderNavMenu.vue_vue_type_script_setup_true_lang-Dfv8_Muy.mjs +31 -0
  38. package/es/chunks/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
  39. package/es/chunks/use-frame-geometry-DPWBVziK.mjs +45 -0
  40. package/es/style.css +1 -0
  41. package/lib/assets/applied-intelligence-frame.cjs +1 -0
  42. package/lib/assets/applied-intelligence-nebula.cjs +1 -0
  43. package/lib/assets/aurora-mesh.cjs +1 -0
  44. package/lib/assets/botanical-paper.cjs +1 -0
  45. package/lib/assets/brutal-concrete.cjs +1 -0
  46. package/lib/assets/cockpit-brutal-steel.cjs +4 -0
  47. package/lib/assets/cockpit-liquid-ink.cjs +1 -0
  48. package/lib/assets/cockpit-mono-paper.cjs +1 -0
  49. package/lib/assets/cockpit-neural-field.cjs +1 -0
  50. package/lib/assets/compact-rail.cjs +1 -0
  51. package/lib/assets/console-horizon.cjs +1 -0
  52. package/lib/assets/contrast.cjs +1 -1
  53. package/lib/assets/copilot-calm.cjs +1 -0
  54. package/lib/assets/copilot-stage.cjs +1 -0
  55. package/lib/assets/coral-reef.cjs +1 -0
  56. package/lib/assets/cyber.cjs +1 -1
  57. package/lib/assets/dragon-vermilion.cjs +1 -0
  58. package/lib/assets/film-grade.cjs +1 -0
  59. package/lib/assets/glass.cjs +1 -1
  60. package/lib/assets/graphite-mono.cjs +1 -0
  61. package/lib/assets/gugong.cjs +1 -1
  62. package/lib/assets/ink.cjs +1 -1
  63. package/lib/assets/neon-set.cjs +1 -0
  64. package/lib/assets/nordic-fjord.cjs +1 -0
  65. package/lib/assets/perspective-deck.cjs +1 -0
  66. package/lib/assets/quantum-ai.cjs +1 -0
  67. package/lib/assets/sandstone-editorial.cjs +1 -0
  68. package/lib/assets/starfield-cosmos.cjs +1 -0
  69. package/lib/assets/studio-ink.cjs +1 -0
  70. package/lib/assets/studio-triptych.cjs +1 -0
  71. package/lib/assets/sunset-amber.cjs +1 -0
  72. package/lib/assets/synapse-grid.cjs +1 -0
  73. package/lib/assets/terminal-phosphor.cjs +1 -0
  74. package/lib/assets/velvet-noir.cjs +1 -0
  75. package/lib/chunks/CockpitShellBase.vue_vue_type_script_setup_true_lang-D2LEvqm8.cjs +1 -0
  76. package/lib/chunks/FrameShellBase.vue_vue_type_script_setup_true_lang-C-mttf00.cjs +1 -0
  77. package/lib/chunks/HeaderNavMenu.vue_vue_type_script_setup_true_lang-LJ3mDZkH.cjs +1 -0
  78. package/lib/chunks/_plugin-vue_export-helper-BHFhmbuH.cjs +1 -0
  79. package/lib/chunks/use-frame-geometry-5WRLC-WU.cjs +1 -0
  80. package/lib/style.css +1 -0
  81. package/package.json +3 -3
  82. package/types/assets/applied-intelligence-frame.d.ts +15 -0
  83. package/types/assets/applied-intelligence-nebula.d.ts +14 -0
  84. package/types/assets/aurora-mesh.d.ts +9 -0
  85. package/types/assets/botanical-paper.d.ts +10 -0
  86. package/types/assets/brutal-concrete.d.ts +10 -0
  87. package/types/assets/cockpit-brutal-steel.d.ts +3 -0
  88. package/types/assets/cockpit-liquid-ink.d.ts +14 -0
  89. package/types/assets/cockpit-mono-paper.d.ts +12 -0
  90. package/types/assets/cockpit-neural-field.d.ts +11 -0
  91. package/types/assets/compact-rail.d.ts +9 -0
  92. package/types/assets/console-horizon.d.ts +9 -0
  93. package/types/assets/copilot-calm.d.ts +10 -0
  94. package/types/assets/copilot-stage.d.ts +9 -0
  95. package/types/assets/coral-reef.d.ts +10 -0
  96. package/types/assets/dragon-vermilion.d.ts +9 -0
  97. package/types/assets/film-grade.d.ts +12 -0
  98. package/types/assets/graphite-mono.d.ts +10 -0
  99. package/types/assets/neon-set.d.ts +12 -0
  100. package/types/assets/nordic-fjord.d.ts +9 -0
  101. package/types/assets/perspective-deck.d.ts +10 -0
  102. package/types/assets/quantum-ai.d.ts +9 -0
  103. package/types/assets/sandstone-editorial.d.ts +10 -0
  104. package/types/assets/starfield-cosmos.d.ts +10 -0
  105. package/types/assets/studio-ink.d.ts +12 -0
  106. package/types/assets/studio-triptych.d.ts +9 -0
  107. package/types/assets/sunset-amber.d.ts +10 -0
  108. package/types/assets/synapse-grid.d.ts +9 -0
  109. package/types/assets/terminal-phosphor.d.ts +9 -0
  110. package/types/assets/velvet-noir.d.ts +10 -0
  111. package/types/shells/AppliedIntelligenceFrameShell.vue.d.ts +27 -0
  112. package/types/shells/AppliedIntelligenceNebulaShell.vue.d.ts +27 -0
  113. package/types/shells/AuroraMeshShell.vue.d.ts +26 -0
  114. package/types/shells/BrutalSteelCockpitShell.vue.d.ts +27 -0
  115. package/types/shells/CockpitShellBase.vue.d.ts +28 -0
  116. package/types/shells/CockpitStatusBar.vue.d.ts +2 -0
  117. package/types/shells/CoilingDragonShell.vue.d.ts +26 -0
  118. package/types/shells/CosmosShell.vue.d.ts +26 -0
  119. package/types/shells/FilmGradeShell.vue.d.ts +26 -0
  120. package/types/shells/FrameShellBase.vue.d.ts +28 -0
  121. package/types/shells/HeaderNavMenu.vue.d.ts +4 -0
  122. package/types/shells/IconRailShell.vue.d.ts +26 -0
  123. package/types/shells/LiquidInkCockpitShell.vue.d.ts +27 -0
  124. package/types/shells/MonoPaperCockpitShell.vue.d.ts +27 -0
  125. package/types/shells/NeonSetShell.vue.d.ts +27 -0
  126. package/types/shells/NeuralFieldCockpitShell.vue.d.ts +27 -0
  127. package/types/shells/PerspectiveDeckShell.vue.d.ts +26 -0
  128. package/types/shells/QuantumOrbitShell.vue.d.ts +26 -0
  129. package/types/shells/ScanlineShell.vue.d.ts +26 -0
  130. package/types/shells/StageChatShell.vue.d.ts +27 -0
  131. package/types/shells/StudioInkShell.vue.d.ts +27 -0
  132. package/types/shells/SynapseGridShell.vue.d.ts +26 -0
  133. package/types/shells/TopNavShell.vue.d.ts +26 -0
  134. package/types/shells/TriColumnShell.vue.d.ts +27 -0
  135. package/types/shells/decor/AuroraFrameDecor.vue.d.ts +2 -0
  136. package/types/shells/decor/AuroraMeshDecor.vue.d.ts +2 -0
  137. package/types/shells/decor/AuroraNebulaDecor.vue.d.ts +2 -0
  138. package/types/shells/decor/BrutalSteelCockpitDecor.vue.d.ts +2 -0
  139. package/types/shells/decor/CockpitFrameMatte.vue.d.ts +2 -0
  140. package/types/shells/decor/CoilingDragonDecor.vue.d.ts +2 -0
  141. package/types/shells/decor/FilmGradeDecor.vue.d.ts +2 -0
  142. package/types/shells/decor/LiquidInkCockpitDecor.vue.d.ts +2 -0
  143. package/types/shells/decor/MonoPaperCockpitDecor.vue.d.ts +2 -0
  144. package/types/shells/decor/NeonStageDecor.vue.d.ts +2 -0
  145. package/types/shells/decor/NeuralFieldCockpitDecor.vue.d.ts +2 -0
  146. package/types/shells/decor/PerspectiveDeckDecor.vue.d.ts +4 -0
  147. package/types/shells/decor/QuantumOrbitDecor.vue.d.ts +2 -0
  148. package/types/shells/decor/ScanlineDecor.vue.d.ts +2 -0
  149. package/types/shells/decor/StarfieldDecor.vue.d.ts +2 -0
  150. package/types/shells/decor/StudioGlowDecor.vue.d.ts +2 -0
  151. package/types/shells/decor/SynapseGridDecor.vue.d.ts +2 -0
  152. package/types/shells/decor/use-frame-geometry.d.ts +31 -0
  153. package/types/types.d.ts +33 -11
@@ -0,0 +1,238 @@
1
+ import { defineComponent as m, computed as y, openBlock as d, createBlock as f, Teleport as g, unref as e, createElementBlock as u, normalizeStyle as v, createElementVNode as t, createCommentVNode as h, normalizeProps as _, guardReactiveProps as k, createSlots as C, withCtx as s, createVNode as w, renderSlot as n, markRaw as $ } from "vue";
2
+ import { _ as M } from "../chunks/CockpitShellBase.vue_vue_type_script_setup_true_lang-B6k0Utzz.mjs";
3
+ import { ADMIN_CORE_VIEWPORT_DECOR_ZINDEX_BELOW as x } from "@done-coding/admin-core";
4
+ import { u as R } from "../chunks/use-frame-geometry-DPWBVziK.mjs";
5
+ import { _ as B } from "../chunks/_plugin-vue_export-helper-CHgC5LLL.mjs";
6
+ const E = ["width", "height", "viewBox"], S = {
7
+ id: "monoGrid",
8
+ width: "32",
9
+ height: "32",
10
+ patternUnits: "userSpaceOnUse"
11
+ }, V = ["stroke", "opacity"], D = ["width", "height"], H = ["stroke", "opacity"], P = ["d"], N = ["d"], I = ["d"], F = ["y2", "stroke"], O = ["values"], W = ["values"], z = /* @__PURE__ */ m({
12
+ __name: "MonoPaperCockpitDecor",
13
+ setup(c) {
14
+ const { isDark: i, animated: o, vw: a, vh: r, hasFrame: b } = R(), l = y(() => i.value ? "#aeb6c2" : "#3a3f47");
15
+ return (T, p) => (d(), f(g, { to: "body" }, [
16
+ e(b) ? (d(), u("svg", {
17
+ key: 0,
18
+ class: "cockpit-mono-paper-decor",
19
+ style: v({
20
+ position: "fixed",
21
+ left: 0,
22
+ top: 0,
23
+ pointerEvents: "none",
24
+ zIndex: e(x),
25
+ opacity: e(i) ? 0.5 : 0.4
26
+ }),
27
+ width: e(a),
28
+ height: e(r),
29
+ viewBox: `0 0 ${e(a)} ${e(r)}`,
30
+ "aria-hidden": "true"
31
+ }, [
32
+ t("defs", null, [
33
+ t("pattern", S, [
34
+ t("path", {
35
+ d: "M32 0 H0 V32",
36
+ fill: "none",
37
+ stroke: l.value,
38
+ "stroke-width": "0.5",
39
+ opacity: e(i) ? 0.5 : 0.6
40
+ }, null, 8, V)
41
+ ])
42
+ ]),
43
+ t("rect", {
44
+ x: 0,
45
+ y: 0,
46
+ width: e(a),
47
+ height: e(r),
48
+ fill: "url(#monoGrid)",
49
+ opacity: 0.5
50
+ }, null, 8, D),
51
+ t("g", {
52
+ stroke: l.value,
53
+ "stroke-width": "1",
54
+ fill: "none",
55
+ opacity: e(i) ? 0.7 : 0.8
56
+ }, [
57
+ p[0] || (p[0] = t("path", { d: "M16 28 V16 H28" }, null, -1)),
58
+ t("path", {
59
+ d: `M${e(a) - 16} 28 V16 H${e(a) - 28}`
60
+ }, null, 8, P),
61
+ t("path", {
62
+ d: `M16 ${e(r) - 28} V${e(r) - 16} H28`
63
+ }, null, 8, N),
64
+ t("path", {
65
+ d: `M${e(a) - 16} ${e(r) - 28} V${e(r) - 16} H${e(a) - 28}`
66
+ }, null, 8, I)
67
+ ], 8, H),
68
+ e(o) ? (d(), u("line", {
69
+ key: 0,
70
+ x1: 0,
71
+ y1: 0,
72
+ x2: 0,
73
+ y2: e(r),
74
+ stroke: l.value,
75
+ "stroke-width": "1",
76
+ opacity: "0.5"
77
+ }, [
78
+ t("animate", {
79
+ attributeName: "x1",
80
+ values: `0;${e(a)}`,
81
+ dur: "14s",
82
+ repeatCount: "indefinite"
83
+ }, null, 8, O),
84
+ t("animate", {
85
+ attributeName: "x2",
86
+ values: `0;${e(a)}`,
87
+ dur: "14s",
88
+ repeatCount: "indefinite"
89
+ }, null, 8, W)
90
+ ], 8, F)) : h("", !0)
91
+ ], 12, E)) : h("", !0)
92
+ ]));
93
+ }
94
+ }), A = /* @__PURE__ */ B(z, [["__scopeId", "data-v-a518c8db"]]), L = /* @__PURE__ */ m({
95
+ __name: "MonoPaperCockpitShell",
96
+ props: {
97
+ menus: {},
98
+ menuFlatList: {},
99
+ sidebarMenus: {},
100
+ headerMenus: {},
101
+ activeMenu: {},
102
+ activeModuleMenu: {},
103
+ showHeader: { type: Boolean },
104
+ showSidebar: { type: Boolean },
105
+ showAside: { type: Boolean },
106
+ sidebarAboveHeader: { type: Boolean }
107
+ },
108
+ setup(c) {
109
+ const i = c;
110
+ return (o, a) => (d(), f(M, _(k(i)), C({
111
+ default: s((r) => [
112
+ n(o.$slots, "default", {
113
+ Footer: r.Footer
114
+ })
115
+ ]),
116
+ decor: s(() => [
117
+ w(A)
118
+ ]),
119
+ _: 2
120
+ }, [
121
+ o.$slots.brand ? {
122
+ name: "brand",
123
+ fn: s(() => [
124
+ n(o.$slots, "brand")
125
+ ]),
126
+ key: "0"
127
+ } : void 0,
128
+ o.$slots.themeSwitcher ? {
129
+ name: "themeSwitcher",
130
+ fn: s((r) => [
131
+ n(o.$slots, "themeSwitcher", {
132
+ Default: r.Default
133
+ })
134
+ ]),
135
+ key: "1"
136
+ } : void 0,
137
+ o.$slots.userEntry ? {
138
+ name: "userEntry",
139
+ fn: s(() => [
140
+ n(o.$slots, "userEntry")
141
+ ]),
142
+ key: "2"
143
+ } : void 0,
144
+ o.$slots.settings ? {
145
+ name: "settings",
146
+ fn: s(() => [
147
+ n(o.$slots, "settings")
148
+ ]),
149
+ key: "3"
150
+ } : void 0,
151
+ o.$slots.aside ? {
152
+ name: "aside",
153
+ fn: s(() => [
154
+ n(o.$slots, "aside")
155
+ ]),
156
+ key: "4"
157
+ } : void 0
158
+ ]), 1040));
159
+ }
160
+ }), q = {
161
+ id: "cockpit-mono-paper",
162
+ label: "座舱·墨纸",
163
+ description: {
164
+ suitable: "偏文档化/编辑器密集的 AI 工作台:要座舱系统能力但视觉极简克制、低负载、长时间停留;亮暗皆宜。",
165
+ unsuitable: "需强视觉冲击/营销大屏;想要沉浸辉光科技感的场景(请用座舱·液墨 / 神经)。"
166
+ },
167
+ config: {
168
+ light: {
169
+ bodyColor: "#f2f1ec",
170
+ baseColor: "#2b2e33",
171
+ primaryColor: "#4f5d6e",
172
+ successColor: "#4f8a63",
173
+ warningColor: "#a87f3c",
174
+ dangerColor: "#b15b54",
175
+ errorColor: "#b15b54",
176
+ infoColor: "#6b7480",
177
+ radius: "4px",
178
+ borderColor: "#dcdad2",
179
+ borderWidth: "1px",
180
+ shadow: "none",
181
+ focusRing: "0 0 0 2px rgba(79, 93, 110, 0.28)",
182
+ surface: "#fbfbf8"
183
+ },
184
+ dark: {
185
+ bodyColor: "#16181c",
186
+ baseColor: "#d8dce2",
187
+ primaryColor: "#9fb0c4",
188
+ successColor: "#6b9e7a",
189
+ warningColor: "#c2a15a",
190
+ dangerColor: "#c77a72",
191
+ errorColor: "#c77a72",
192
+ infoColor: "#8a93a0",
193
+ radius: "4px",
194
+ borderColor: "#2a2e35",
195
+ borderWidth: "1px",
196
+ shadow: "none",
197
+ focusRing: "0 0 0 2px rgba(159, 176, 196, 0.4)",
198
+ surface: "#1d2025"
199
+ }
200
+ },
201
+ layout: {
202
+ viewport: {
203
+ paddingTop: 14,
204
+ paddingRight: 14,
205
+ paddingBottom: 14,
206
+ paddingLeft: 14
207
+ },
208
+ gap: { size: 10 },
209
+ extractLevel1ToHeader: !0,
210
+ header: {
211
+ height: 54,
212
+ background: "var(--admin-core-surface, var(--el-bg-color-overlay))",
213
+ style: { borderRadius: "4px" }
214
+ },
215
+ sidebar: {
216
+ width: 240,
217
+ collapseWidth: 64,
218
+ background: "var(--admin-core-surface, var(--el-bg-color-overlay))",
219
+ style: { borderRadius: "4px" }
220
+ },
221
+ aside: {
222
+ width: 320,
223
+ background: "var(--admin-core-surface, var(--el-bg-color-overlay))",
224
+ style: { borderRadius: "4px" }
225
+ },
226
+ footer: {
227
+ height: 34,
228
+ background: "var(--admin-core-surface, var(--el-bg-color-overlay))",
229
+ style: { borderRadius: "4px" }
230
+ },
231
+ breadcrumb: { height: 42 },
232
+ body: { shimPadding: 20 },
233
+ shell: $(L)
234
+ }
235
+ };
236
+ export {
237
+ q as default
238
+ };
@@ -0,0 +1,339 @@
1
+ import { defineComponent as $, computed as y, openBlock as a, createBlock as w, Teleport as D, unref as e, createElementBlock as l, normalizeStyle as S, createElementVNode as r, createCommentVNode as m, Fragment as _, renderList as g, normalizeProps as M, guardReactiveProps as I, createSlots as G, withCtx as f, createVNode as A, renderSlot as h, markRaw as L } from "vue";
2
+ import { _ as O } from "../chunks/CockpitShellBase.vue_vue_type_script_setup_true_lang-B6k0Utzz.mjs";
3
+ import { ADMIN_CORE_VIEWPORT_DECOR_ZINDEX_BELOW as z } from "@done-coding/admin-core";
4
+ import { u as P } from "../chunks/use-frame-geometry-DPWBVziK.mjs";
5
+ import { _ as T } from "../chunks/_plugin-vue_export-helper-CHgC5LLL.mjs";
6
+ const W = ["width", "height", "viewBox"], V = {
7
+ id: "neuGlow",
8
+ cx: "50%",
9
+ cy: "50%",
10
+ r: "50%"
11
+ }, H = ["stop-color", "stop-opacity"], X = ["stop-color"], Z = {
12
+ id: "neuNode",
13
+ cx: "50%",
14
+ cy: "50%",
15
+ r: "50%"
16
+ }, j = ["stop-color"], q = ["stop-color"], J = ["cx", "cy", "rx", "ry"], K = ["values"], Q = ["cx", "cy", "rx", "ry"], U = ["values"], Y = ["stroke", "opacity"], ee = ["x1", "y1", "x2", "y2"], oe = ["cx", "cy", "r", "fill", "opacity"], te = ["values", "dur", "begin"], re = { key: 0 }, ae = ["fill"], se = ["dur", "path"], le = ["dur"], ie = /* @__PURE__ */ $({
17
+ __name: "NeuralFieldCockpitDecor",
18
+ setup(x) {
19
+ const { isDark: s, animated: o, vw: c, vh: i, hasFrame: N } = P(), v = y(() => s.value ? "#34e0c0" : "#0fae93"), k = y(() => s.value ? "#8b7bff" : "#6357e0"), E = y(() => s.value ? "#5b8cff" : "#3f6fe6");
20
+ function n(u) {
21
+ return Number((Math.min(c.value, i.value) * u).toFixed(1));
22
+ }
23
+ const R = [
24
+ [0.08, 0.18, 3],
25
+ [0.2, 0.5, 2.4],
26
+ [0.12, 0.82, 3.2],
27
+ [0.5, 0.1, 2.6],
28
+ [0.5, 0.9, 2.8],
29
+ [0.88, 0.2, 3],
30
+ [0.8, 0.52, 2.4],
31
+ [0.92, 0.84, 3.2],
32
+ [0.66, 0.28, 2.2],
33
+ [0.34, 0.72, 2.6]
34
+ ], b = y(
35
+ () => R.map(([u, p, t]) => ({
36
+ x: c.value * u,
37
+ y: i.value * p,
38
+ s: t
39
+ }))
40
+ ), F = [
41
+ [0, 1],
42
+ [1, 2],
43
+ [0, 3],
44
+ [3, 8],
45
+ [8, 5],
46
+ [5, 6],
47
+ [6, 7],
48
+ [1, 9],
49
+ [9, 4],
50
+ [4, 7],
51
+ [3, 6]
52
+ ], C = y(
53
+ () => F.map(([u, p]) => ({
54
+ x1: b.value[u].x,
55
+ y1: b.value[u].y,
56
+ x2: b.value[p].x,
57
+ y2: b.value[p].y
58
+ }))
59
+ ), B = y(() => C.value.filter((u, p) => p % 3 === 0));
60
+ return (u, p) => (a(), w(D, { to: "body" }, [
61
+ e(N) ? (a(), l("svg", {
62
+ key: 0,
63
+ class: "cockpit-neural-field-decor",
64
+ style: S({
65
+ position: "fixed",
66
+ left: 0,
67
+ top: 0,
68
+ pointerEvents: "none",
69
+ zIndex: e(z),
70
+ opacity: e(s) ? 1 : 0.5
71
+ }),
72
+ width: e(c),
73
+ height: e(i),
74
+ viewBox: `0 0 ${e(c)} ${e(i)}`,
75
+ "aria-hidden": "true"
76
+ }, [
77
+ r("defs", null, [
78
+ r("radialGradient", V, [
79
+ r("stop", {
80
+ offset: "0%",
81
+ "stop-color": k.value,
82
+ "stop-opacity": e(s) ? 0.34 : 0.13
83
+ }, null, 8, H),
84
+ r("stop", {
85
+ offset: "100%",
86
+ "stop-color": k.value,
87
+ "stop-opacity": "0"
88
+ }, null, 8, X)
89
+ ]),
90
+ r("radialGradient", Z, [
91
+ r("stop", {
92
+ offset: "0%",
93
+ "stop-color": v.value,
94
+ "stop-opacity": "1"
95
+ }, null, 8, j),
96
+ r("stop", {
97
+ offset: "100%",
98
+ "stop-color": v.value,
99
+ "stop-opacity": "0"
100
+ }, null, 8, q)
101
+ ])
102
+ ]),
103
+ r("ellipse", {
104
+ cx: e(c) * 0.3,
105
+ cy: e(i) * 0.32,
106
+ rx: n(0.4),
107
+ ry: n(0.34),
108
+ fill: "url(#neuGlow)"
109
+ }, [
110
+ e(o) ? (a(), l("animate", {
111
+ key: 0,
112
+ attributeName: "rx",
113
+ values: `${n(0.4)};${n(0.47)};${n(0.4)}`,
114
+ dur: "19s",
115
+ repeatCount: "indefinite"
116
+ }, null, 8, K)) : m("", !0)
117
+ ], 8, J),
118
+ r("ellipse", {
119
+ cx: e(c) * 0.74,
120
+ cy: e(i) * 0.7,
121
+ rx: n(0.34),
122
+ ry: n(0.3),
123
+ fill: "url(#neuGlow)"
124
+ }, [
125
+ e(o) ? (a(), l("animate", {
126
+ key: 0,
127
+ attributeName: "ry",
128
+ values: `${n(0.3)};${n(0.37)};${n(0.3)}`,
129
+ dur: "23s",
130
+ begin: "6s",
131
+ repeatCount: "indefinite"
132
+ }, null, 8, U)) : m("", !0)
133
+ ], 8, Q),
134
+ r("g", {
135
+ stroke: v.value,
136
+ "stroke-width": "1",
137
+ fill: "none",
138
+ opacity: e(s) ? 0.28 : 0.2
139
+ }, [
140
+ (a(!0), l(_, null, g(C.value, (t, d) => (a(), l("line", {
141
+ key: d,
142
+ x1: t.x1,
143
+ y1: t.y1,
144
+ x2: t.x2,
145
+ y2: t.y2
146
+ }, null, 8, ee))), 128))
147
+ ], 8, Y),
148
+ r("g", null, [
149
+ (a(!0), l(_, null, g(b.value, (t, d) => (a(), l("circle", {
150
+ key: d,
151
+ cx: t.x,
152
+ cy: t.y,
153
+ r: t.s,
154
+ fill: v.value,
155
+ opacity: e(s) ? 0.85 : 0.6
156
+ }, [
157
+ e(o) ? (a(), l("animate", {
158
+ key: 0,
159
+ attributeName: "opacity",
160
+ values: `${e(s) ? 0.85 : 0.6};0.25;${e(s) ? 0.85 : 0.6}`,
161
+ dur: `${3 + d % 4}s`,
162
+ begin: `${d * 0.5}s`,
163
+ repeatCount: "indefinite"
164
+ }, null, 8, te)) : m("", !0)
165
+ ], 8, oe))), 128))
166
+ ]),
167
+ e(o) ? (a(), l("g", re, [
168
+ (a(!0), l(_, null, g(B.value, (t, d) => (a(), l("circle", {
169
+ key: `p${d}`,
170
+ r: 2.5,
171
+ fill: E.value
172
+ }, [
173
+ r("animateMotion", {
174
+ dur: `${4 + d % 3}s`,
175
+ repeatCount: "indefinite",
176
+ path: `M${t.x1} ${t.y1} L${t.x2} ${t.y2}`
177
+ }, null, 8, se),
178
+ r("animate", {
179
+ attributeName: "opacity",
180
+ values: "0;1;1;0",
181
+ dur: `${4 + d % 3}s`,
182
+ repeatCount: "indefinite"
183
+ }, null, 8, le)
184
+ ], 8, ae))), 128))
185
+ ])) : m("", !0)
186
+ ], 12, W)) : m("", !0)
187
+ ]));
188
+ }
189
+ }), ne = /* @__PURE__ */ T(ie, [["__scopeId", "data-v-81008f21"]]), de = /* @__PURE__ */ $({
190
+ __name: "NeuralFieldCockpitShell",
191
+ props: {
192
+ menus: {},
193
+ menuFlatList: {},
194
+ sidebarMenus: {},
195
+ headerMenus: {},
196
+ activeMenu: {},
197
+ activeModuleMenu: {},
198
+ showHeader: { type: Boolean },
199
+ showSidebar: { type: Boolean },
200
+ showAside: { type: Boolean },
201
+ sidebarAboveHeader: { type: Boolean }
202
+ },
203
+ setup(x) {
204
+ const s = x;
205
+ return (o, c) => (a(), w(O, M(I(s)), G({
206
+ default: f((i) => [
207
+ h(o.$slots, "default", {
208
+ Footer: i.Footer
209
+ })
210
+ ]),
211
+ decor: f(() => [
212
+ A(ne)
213
+ ]),
214
+ _: 2
215
+ }, [
216
+ o.$slots.brand ? {
217
+ name: "brand",
218
+ fn: f(() => [
219
+ h(o.$slots, "brand")
220
+ ]),
221
+ key: "0"
222
+ } : void 0,
223
+ o.$slots.themeSwitcher ? {
224
+ name: "themeSwitcher",
225
+ fn: f((i) => [
226
+ h(o.$slots, "themeSwitcher", {
227
+ Default: i.Default
228
+ })
229
+ ]),
230
+ key: "1"
231
+ } : void 0,
232
+ o.$slots.userEntry ? {
233
+ name: "userEntry",
234
+ fn: f(() => [
235
+ h(o.$slots, "userEntry")
236
+ ]),
237
+ key: "2"
238
+ } : void 0,
239
+ o.$slots.settings ? {
240
+ name: "settings",
241
+ fn: f(() => [
242
+ h(o.$slots, "settings")
243
+ ]),
244
+ key: "3"
245
+ } : void 0,
246
+ o.$slots.aside ? {
247
+ name: "aside",
248
+ fn: f(() => [
249
+ h(o.$slots, "aside")
250
+ ]),
251
+ key: "4"
252
+ } : void 0
253
+ ]), 1040));
254
+ }
255
+ }), he = {
256
+ id: "cockpit-neural-field",
257
+ label: "座舱·神经",
258
+ description: {
259
+ suitable: "要「AI 在思考」氛围感的智能应用旗舰台:神经流光场动效 + 辉光沉浸 + 座舱系统能力;暗场尤佳。",
260
+ unsuitable: "动效敏感/低视觉负载诉求;纯静态报表台;偏好极简无装饰的场景(请用座舱·墨纸)。"
261
+ },
262
+ config: {
263
+ light: {
264
+ bodyColor: "#eef5f3",
265
+ baseColor: "#122019",
266
+ primaryColor: "#0fae93",
267
+ successColor: "#16a34a",
268
+ warningColor: "#d99a2b",
269
+ dangerColor: "#e34d63",
270
+ errorColor: "#e34d63",
271
+ infoColor: "#5b6b7d",
272
+ radius: "16px",
273
+ borderColor: "#d6e6e0",
274
+ borderWidth: "1px",
275
+ accent: "#6357e0",
276
+ glow: "0 0 0 1px rgba(15, 174, 147, 0.12)",
277
+ blur: "8px",
278
+ shadow: "0 10px 30px -18px rgba(18, 32, 25, 0.18)",
279
+ focusRing: "0 0 0 3px rgba(15, 174, 147, 0.22)",
280
+ surface: "#ffffff"
281
+ },
282
+ dark: {
283
+ bodyColor: "#0b0f14",
284
+ baseColor: "#dfe9f0",
285
+ primaryColor: "#34e0c0",
286
+ successColor: "#34d399",
287
+ warningColor: "#f5b942",
288
+ dangerColor: "#f2647a",
289
+ errorColor: "#f2647a",
290
+ infoColor: "#7d8aa0",
291
+ radius: "16px",
292
+ borderColor: "rgba(52, 224, 192, 0.18)",
293
+ borderWidth: "1px",
294
+ accent: "#8b7bff",
295
+ glow: "0 0 28px rgba(52, 224, 192, 0.4)",
296
+ blur: "10px",
297
+ shadow: "0 0 0 1px rgba(52, 224, 192, 0.08), 0 18px 48px -22px rgba(0, 0, 0, 0.85)",
298
+ focusRing: "0 0 0 3px rgba(139, 123, 255, 0.45)",
299
+ surface: "#111722"
300
+ }
301
+ },
302
+ layout: {
303
+ viewport: {
304
+ paddingTop: 18,
305
+ paddingRight: 18,
306
+ paddingBottom: 18,
307
+ paddingLeft: 18
308
+ },
309
+ gap: { size: 12 },
310
+ extractLevel1ToHeader: !0,
311
+ header: {
312
+ height: 58,
313
+ background: "var(--admin-core-surface, var(--el-bg-color-overlay))",
314
+ style: { borderRadius: "16px" }
315
+ },
316
+ sidebar: {
317
+ width: 248,
318
+ collapseWidth: 68,
319
+ background: "var(--admin-core-surface, var(--el-bg-color-overlay))",
320
+ style: { borderRadius: "16px" }
321
+ },
322
+ aside: {
323
+ width: 340,
324
+ background: "var(--admin-core-surface, var(--el-bg-color-overlay))",
325
+ style: { borderRadius: "16px" }
326
+ },
327
+ footer: {
328
+ height: 36,
329
+ background: "var(--admin-core-surface, var(--el-bg-color-overlay))",
330
+ style: { borderRadius: "16px" }
331
+ },
332
+ breadcrumb: { height: 44 },
333
+ body: { shimPadding: 18 },
334
+ shell: L(de)
335
+ }
336
+ };
337
+ export {
338
+ he as default
339
+ };
@@ -0,0 +1,105 @@
1
+ import { defineComponent as d, inject as i, onMounted as u, onBeforeUnmount as c, openBlock as b, createElementBlock as m, Fragment as f, renderSlot as a, unref as r, createVNode as l, withCtx as s, markRaw as h } from "vue";
2
+ import { APP_LAYOUT_APP_STORE_KEY as p, AppFooter as C, AppSidebar as g, AppHeader as v, AppTheme as n } from "@done-coding/admin-core";
3
+ const w = /* @__PURE__ */ d({
4
+ __name: "IconRailShell",
5
+ props: {
6
+ menus: {},
7
+ menuFlatList: {},
8
+ sidebarMenus: {},
9
+ headerMenus: {},
10
+ activeMenu: {},
11
+ activeModuleMenu: {},
12
+ showHeader: { type: Boolean },
13
+ showSidebar: { type: Boolean },
14
+ showAside: { type: Boolean },
15
+ sidebarAboveHeader: { type: Boolean }
16
+ },
17
+ setup(e) {
18
+ const t = i(p);
19
+ return u(() => t.changeSidebarCollapseStatus(!0)), c(() => t.changeSidebarCollapseStatus(!1)), (o, M) => (b(), m(f, null, [
20
+ a(o.$slots, "default", { Footer: r(C) }),
21
+ l(r(g), {
22
+ show: e.showSidebar,
23
+ aboveHeader: e.sidebarAboveHeader,
24
+ menus: e.sidebarMenus,
25
+ menuFlatList: e.menuFlatList
26
+ }, null, 8, ["show", "aboveHeader", "menus", "menuFlatList"]),
27
+ l(r(v), {
28
+ show: e.showHeader,
29
+ menus: e.headerMenus,
30
+ activeMenu: e.activeMenu,
31
+ activeModuleMenu: e.activeModuleMenu,
32
+ menuFlatList: e.menuFlatList
33
+ }, {
34
+ left: s(() => [
35
+ a(o.$slots, "brand")
36
+ ]),
37
+ right: s(() => [
38
+ a(o.$slots, "themeSwitcher", { Default: r(n) }, () => [
39
+ l(r(n))
40
+ ]),
41
+ a(o.$slots, "userEntry"),
42
+ a(o.$slots, "settings")
43
+ ]),
44
+ _: 3
45
+ }, 8, ["show", "menus", "activeMenu", "activeModuleMenu", "menuFlatList"])
46
+ ], 64));
47
+ }
48
+ }), A = {
49
+ id: "compact-rail",
50
+ label: "致密轨道",
51
+ description: {
52
+ suitable: "高密度监控 / 多模块密集后台 / 运维台;模块多、想要最大化内容区,靠图标轨 + tooltip 导航。",
53
+ unsuitable: "菜单文案需常驻可读的场景(图标轨默认只显图标);导航层级深需要展开浏览时。"
54
+ },
55
+ config: {
56
+ light: {
57
+ bodyColor: "#eaf2f5",
58
+ baseColor: "#16252e",
59
+ primaryColor: "#0e84a8",
60
+ successColor: "#0d9f6e",
61
+ warningColor: "#d97706",
62
+ dangerColor: "#dc2626",
63
+ errorColor: "#dc2626",
64
+ infoColor: "#0ea5e9",
65
+ radius: "8px",
66
+ surface: "#ffffff",
67
+ borderColor: "#dbe5ea",
68
+ shadow: "0 8px 22px -16px rgba(8,145,178,0.22)"
69
+ },
70
+ dark: {
71
+ bodyColor: "#06121a",
72
+ baseColor: "#cfe5ee",
73
+ primaryColor: "#1ec8e6",
74
+ successColor: "#34d399",
75
+ warningColor: "#f0b541",
76
+ dangerColor: "#f0656a",
77
+ errorColor: "#f0656a",
78
+ infoColor: "#38bdf8",
79
+ radius: "8px",
80
+ surface: "#0c1a22",
81
+ borderColor: "rgba(34,211,238,0.22)",
82
+ shadow: "0 18px 44px -22px rgba(0,0,0,0.9)"
83
+ }
84
+ },
85
+ layout: {
86
+ gap: { size: 8 },
87
+ header: {
88
+ height: 52,
89
+ background: "var(--admin-core-surface, var(--el-bg-color-overlay))",
90
+ style: { borderRadius: "8px" }
91
+ },
92
+ // 图标轨:collapseWidth 64(IconRailShell 强制 collapse);width 给手动展开态兜底。
93
+ sidebar: {
94
+ width: 220,
95
+ collapseWidth: 64,
96
+ background: "var(--admin-core-surface, var(--el-bg-color-overlay))",
97
+ style: { borderRadius: "8px" }
98
+ },
99
+ body: { shimPadding: 16 },
100
+ shell: h(w)
101
+ }
102
+ };
103
+ export {
104
+ A as default
105
+ };