@done-coding/admin-plugin-theme 0.11.2-alpha.0 → 0.11.3-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.
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as A, computed as s, openBlock as i, createBlock as I, Teleport as T, unref as o, createElementBlock as u, normalizeStyle as N, createElementVNode as a, Fragment as f, renderList as _, createCommentVNode as O, renderSlot as y, createVNode as v, withCtx as k, markRaw as V } from "vue";
2
- import { CORE_VIEWPORT_DECOR_ZINDEX_BELOW as z, AppFooter as P, AppSidebar as X, AppAside as Y, AppHeader as G, AppTheme as S } from "@done-coding/admin-core";
2
+ import { CORE_VIEWPORT_DECOR_ZINDEX_BELOW as z, AppFooter as X, AppSidebar as Y, AppAside as G, AppHeader as P, AppTheme as S } from "@done-coding/admin-core";
3
3
  import { u as Z } from "../chunks/use-frame-geometry-CMHrr_gA.mjs";
4
4
  import { _ as j } from "../chunks/_plugin-vue_export-helper-CHgC5LLL.mjs";
5
5
  const q = ["width", "height", "viewBox"], J = { id: "ssRingMask" }, K = ["width", "height"], Q = ["x", "y", "width", "height"], U = { mask: "url(#ssRingMask)" }, ee = ["x", "y", "width", "fill", "opacity"], oe = ["stroke", "opacity"], te = ["x1", "y1", "x2", "y2"], ae = ["x1", "y1", "x2", "y2"], le = ["x1", "y1", "x2", "y2"], re = ["x1", "y1", "x2", "y2"], se = ["x", "y", "fill", "opacity"], ie = ["x", "y", "width", "fill", "opacity"], ne = ["stroke", "opacity"], de = ["x1", "y1", "x2", "y2"], ue = /* @__PURE__ */ A({
@@ -158,20 +158,20 @@ const q = ["width", "height", "viewBox"], J = { id: "ssRingMask" }, K = ["width"
158
158
  },
159
159
  setup(l) {
160
160
  return (t, g) => (i(), u(f, null, [
161
- y(t.$slots, "default", { Footer: o(P) }),
162
- v(o(X), {
161
+ y(t.$slots, "default", { Footer: o(X) }),
162
+ v(o(Y), {
163
163
  show: l.showSidebar,
164
164
  aboveHeader: l.sidebarAboveHeader,
165
165
  menus: l.sidebarMenus,
166
166
  menuFlatList: l.menuFlatList
167
167
  }, null, 8, ["show", "aboveHeader", "menus", "menuFlatList"]),
168
- v(o(Y), { show: l.showAside }, {
168
+ v(o(G), { show: l.showAside }, {
169
169
  default: k(() => [
170
170
  y(t.$slots, "aside")
171
171
  ]),
172
172
  _: 3
173
173
  }, 8, ["show"]),
174
- v(o(G), {
174
+ v(o(P), {
175
175
  show: l.showHeader,
176
176
  menus: l.headerMenus,
177
177
  activeMenu: l.activeMenu,
@@ -270,7 +270,6 @@ const q = ["width", "height", "viewBox"], J = { id: "ssRingMask" }, K = ["width"
270
270
  background: "var(--dc-core-surface, var(--el-bg-color-overlay))",
271
271
  style: { borderRadius: "8px" }
272
272
  },
273
- body: { shimPadding: 28 },
274
273
  shell: V(he)
275
274
  }
276
275
  };
@@ -15,7 +15,7 @@ const p = /* @__PURE__ */ t({
15
15
  sidebarAboveHeader: { type: Boolean }
16
16
  },
17
17
  setup(e) {
18
- return (o, g) => (i(), n(u, null, [
18
+ return (o, v) => (i(), n(u, null, [
19
19
  r(o.$slots, "default", { Footer: a(b) }),
20
20
  s(a(f), {
21
21
  show: e.showSidebar,
@@ -50,7 +50,7 @@ const p = /* @__PURE__ */ t({
50
50
  }, 8, ["show", "menus", "activeMenu", "activeModuleMenu", "menuFlatList"])
51
51
  ], 64));
52
52
  }
53
- }), C = {
53
+ }), g = {
54
54
  id: "studio-triptych",
55
55
  label: "三联工作室",
56
56
  description: {
@@ -106,10 +106,9 @@ const p = /* @__PURE__ */ t({
106
106
  background: "var(--dc-core-surface, var(--el-bg-color-overlay))",
107
107
  style: { borderRadius: "10px" }
108
108
  },
109
- body: { shimPadding: 16 },
110
109
  shell: c(p)
111
110
  }
112
111
  };
113
112
  export {
114
- C as default
113
+ g as default
115
114
  };
@@ -52,8 +52,7 @@ const r = {
52
52
  collapseWidth: 64,
53
53
  background: "var(--dc-core-surface, var(--el-bg-color-overlay))",
54
54
  style: { borderRadius: "10px" }
55
- },
56
- body: { shimPadding: 22 }
55
+ }
57
56
  }
58
57
  };
59
58
  export {
@@ -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 O, renderSlot as m, markRaw as z } from "vue";
1
+ import { defineComponent as k, computed as v, openBlock as n, createBlock as E, Teleport as R, unref as r, createElementBlock as i, 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
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-CMHrr_gA.mjs";
5
- import { _ as A } from "../chunks/_plugin-vue_export-helper-CHgC5LLL.mjs";
3
+ import { CORE_VIEWPORT_DECOR_ZINDEX_BELOW as V } from "@done-coding/admin-core";
4
+ import { u as A } from "../chunks/use-frame-geometry-CMHrr_gA.mjs";
5
+ import { _ as P } 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 } = V(), b = v(
9
+ const { vp: u, isDark: o, animated: f, vw: l, vh: g, hasFrame: B } = A(), b = v(
10
10
  () => Math.min(
11
11
  u.value.paddingTop,
12
12
  u.value.paddingRight,
@@ -33,8 +33,8 @@ const W = ["width", "height", "viewBox"], H = { "stroke-width": 1.2 }, X = ["x1"
33
33
  ];
34
34
  function D(p, d) {
35
35
  const { w: e, h: t, ins: a } = d, G = 2 * (e + t);
36
- let i = p * G;
37
- return i <= e ? { x: a + i, y: a } : (i -= e, i <= t ? { x: a + e, y: a + i } : (i -= t, i <= e ? { x: a + e - i, y: a + t } : (i -= e, { x: a, y: a + t - i })));
36
+ let s = p * G;
37
+ return s <= e ? { x: a + s, y: a } : (s -= e, s <= t ? { x: a + e, y: a + s } : (s -= t, s <= e ? { x: a + e - s, y: a + t } : (s -= e, { x: a, y: a + t - s })));
38
38
  }
39
39
  const x = v(() => {
40
40
  const p = {
@@ -75,7 +75,7 @@ const W = ["width", "height", "viewBox"], H = { "stroke-width": 1.2 }, X = ["x1"
75
75
  })
76
76
  );
77
77
  return (p, d) => (n(), E(R, { to: "body" }, [
78
- r(B) ? (n(), s("svg", {
78
+ r(B) ? (n(), i("svg", {
79
79
  key: 0,
80
80
  class: "synapse-grid-decor",
81
81
  style: N({
@@ -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(P),
86
+ zIndex: r(V),
87
87
  opacity: r(o) ? 0.4 : 0.16
88
88
  }),
89
89
  width: r(l),
@@ -103,7 +103,7 @@ const W = ["width", "height", "viewBox"], H = { "stroke-width": 1.2 }, X = ["x1"
103
103
  ])
104
104
  ], -1)),
105
105
  y("g", H, [
106
- (n(!0), s(_, null, w($.value, (e, t) => (n(), s("line", {
106
+ (n(!0), i(_, null, w($.value, (e, t) => (n(), i("line", {
107
107
  key: `l${t}`,
108
108
  x1: e.x1,
109
109
  y1: e.y1,
@@ -112,7 +112,7 @@ const W = ["width", "height", "viewBox"], H = { "stroke-width": 1.2 }, X = ["x1"
112
112
  stroke: r(o) ? t % 2 ? "#a3e635" : "#3ddc97" : "#128a5e",
113
113
  "stroke-opacity": r(f) ? 0.25 : 0.5
114
114
  }, [
115
- r(f) ? (n(), s("animate", {
115
+ r(f) ? (n(), i("animate", {
116
116
  key: 0,
117
117
  attributeName: "stroke-opacity",
118
118
  values: "0.2;0.9;0.2",
@@ -122,7 +122,7 @@ const W = ["width", "height", "viewBox"], H = { "stroke-width": 1.2 }, X = ["x1"
122
122
  }, null, 8, Z)) : h("", !0)
123
123
  ], 8, X))), 128))
124
124
  ]),
125
- r(f) ? (n(!0), s(_, { key: 0 }, w($.value, (e, t) => (n(), s("circle", {
125
+ r(f) ? (n(!0), i(_, { key: 0 }, w($.value, (e, t) => (n(), i("circle", {
126
126
  key: `p${t}`,
127
127
  r: "3",
128
128
  fill: "#5ee88f",
@@ -135,14 +135,14 @@ const W = ["width", "height", "viewBox"], H = { "stroke-width": 1.2 }, X = ["x1"
135
135
  path: `M${e.x1},${e.y1} L${e.x2},${e.y2}`
136
136
  }, null, 8, j)
137
137
  ]))), 128)) : h("", !0),
138
- (n(!0), s(_, null, w(x.value, (e, t) => (n(), s("circle", {
138
+ (n(!0), i(_, null, w(x.value, (e, t) => (n(), i("circle", {
139
139
  key: `n${t}`,
140
140
  cx: e.x,
141
141
  cy: e.y,
142
142
  r: "2.5",
143
143
  fill: r(o) ? "#5ee88f" : "#128a5e"
144
144
  }, [
145
- r(f) ? (n(), s("animate", {
145
+ r(f) ? (n(), i("animate", {
146
146
  key: 0,
147
147
  attributeName: "opacity",
148
148
  values: "0.3;0.8;0.3",
@@ -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__ */ A(K, [["__scopeId", "data-v-c67da4cc"]]), U = /* @__PURE__ */ k({
157
+ }), Q = /* @__PURE__ */ P(K, [["__scopeId", "data-v-c67da4cc"]]), U = /* @__PURE__ */ k({
158
158
  __name: "SynapseGridShell",
159
159
  props: {
160
160
  menus: {},
@@ -266,7 +266,6 @@ const W = ["width", "height", "viewBox"], H = { "stroke-width": 1.2 }, X = ["x1"
266
266
  gap: { size: 0 },
267
267
  header: { height: 52 },
268
268
  sidebar: { width: 240, collapseWidth: 60 },
269
- body: { shimPadding: 16 },
270
269
  shell: z(U)
271
270
  }
272
271
  };
@@ -1,9 +1,9 @@
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";
1
+ import { defineComponent as v, computed as h, openBlock as a, createBlock as y, 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
2
  import { _ as R } from "../chunks/FrameShellBase.vue_vue_type_script_setup_true_lang-sr56H_8-.mjs";
3
3
  import { CORE_VIEWPORT_DECOR_ZINDEX_BELOW as D } from "@done-coding/admin-core";
4
4
  import { u as M } from "../chunks/use-frame-geometry-CMHrr_gA.mjs";
5
5
  import { _ as G } from "../chunks/_plugin-vue_export-helper-CHgC5LLL.mjs";
6
- const P = ["width", "height", "viewBox"], N = {
6
+ const N = ["width", "height", "viewBox"], P = {
7
7
  id: "scanlinePattern",
8
8
  width: "3",
9
9
  height: "3",
@@ -14,19 +14,19 @@ const P = ["width", "height", "viewBox"], N = {
14
14
  values: "0.5;1;0.5",
15
15
  dur: "3s",
16
16
  repeatCount: "indefinite"
17
- }, L = ["width"], O = ["values"], z = { key: 2 }, V = /* @__PURE__ */ y({
17
+ }, L = ["width"], O = ["values"], z = { key: 2 }, V = /* @__PURE__ */ v({
18
18
  __name: "ScanlineDecor",
19
19
  setup(m) {
20
- const { vp: i, isDark: t, animated: c, vw: r, vh: n, hasFrame: b } = M(), g = f(() => t.value ? "#39ff14" : "#0f8a4f"), h = f(
20
+ const { vp: i, isDark: t, animated: c, vw: r, vh: n, hasFrame: w } = M(), g = h(() => t.value ? "#39ff14" : "#0f8a4f"), u = h(
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 = f(() => Math.max(0, r.value - h.value * 2)), _ = f(() => Math.max(0, n.value - h.value * 2));
28
- return (U, u) => (a(), v(C, { to: "body" }, [
29
- e(b) ? (a(), l("svg", {
27
+ ), b = h(() => Math.max(0, r.value - u.value * 2)), _ = h(() => Math.max(0, n.value - u.value * 2));
28
+ return (U, f) => (a(), y(C, { to: "body" }, [
29
+ e(w) ? (a(), l("svg", {
30
30
  key: 0,
31
31
  class: "scanline-decor",
32
32
  style: x({
@@ -42,14 +42,14 @@ const P = ["width", "height", "viewBox"], N = {
42
42
  "aria-hidden": "true"
43
43
  }, [
44
44
  o("defs", null, [
45
- o("pattern", N, [
45
+ o("pattern", P, [
46
46
  o("rect", {
47
47
  width: "3",
48
48
  height: "1",
49
49
  fill: g.value
50
50
  }, null, 8, T)
51
51
  ]),
52
- u[0] || (u[0] = o("filter", {
52
+ f[0] || (f[0] = o("filter", {
53
53
  id: "scanlineGlow",
54
54
  x: "-20%",
55
55
  y: "-20%",
@@ -67,9 +67,9 @@ const P = ["width", "height", "viewBox"], N = {
67
67
  opacity: "0.06"
68
68
  }, null, 8, W)) : d("", !0),
69
69
  o("rect", {
70
- x: h.value,
71
- y: h.value,
72
- width: w.value,
70
+ x: u.value,
71
+ y: u.value,
72
+ width: b.value,
73
73
  height: _.value,
74
74
  fill: "none",
75
75
  stroke: g.value,
@@ -93,7 +93,7 @@ const P = ["width", "height", "viewBox"], N = {
93
93
  repeatCount: "indefinite"
94
94
  }, null, 8, O)
95
95
  ], 8, L)) : d("", !0),
96
- e(c) ? (a(), l("defs", z, [...u[1] || (u[1] = [
96
+ e(c) ? (a(), l("defs", z, [...f[1] || (f[1] = [
97
97
  o("linearGradient", {
98
98
  id: "scanBandGrad",
99
99
  x1: "0",
@@ -118,10 +118,10 @@ const P = ["width", "height", "viewBox"], N = {
118
118
  })
119
119
  ], -1)
120
120
  ])])) : d("", !0)
121
- ], 12, P)) : d("", !0)
121
+ ], 12, N)) : d("", !0)
122
122
  ]));
123
123
  }
124
- }), H = /* @__PURE__ */ G(V, [["__scopeId", "data-v-1c87c0b4"]]), A = /* @__PURE__ */ y({
124
+ }), H = /* @__PURE__ */ G(V, [["__scopeId", "data-v-1c87c0b4"]]), A = /* @__PURE__ */ v({
125
125
  __name: "ScanlineShell",
126
126
  props: {
127
127
  menus: {},
@@ -137,7 +137,7 @@ const P = ["width", "height", "viewBox"], N = {
137
137
  },
138
138
  setup(m) {
139
139
  const i = m;
140
- return (t, c) => (a(), v(R, k(B(i)), $({
140
+ return (t, c) => (a(), y(R, k(B(i)), $({
141
141
  default: s((r) => [
142
142
  p(t.$slots, "default", {
143
143
  Footer: r.Footer
@@ -231,7 +231,6 @@ const P = ["width", "height", "viewBox"], N = {
231
231
  gap: { size: 0 },
232
232
  header: { height: 44 },
233
233
  sidebar: { width: 220, collapseWidth: 52 },
234
- body: { shimPadding: 14 },
235
234
  shell: E(A)
236
235
  }
237
236
  };
@@ -51,8 +51,7 @@ const r = {
51
51
  collapseWidth: 64,
52
52
  background: "var(--dc-core-surface, var(--el-bg-color-overlay))",
53
53
  style: { borderRadius: "8px" }
54
- },
55
- body: { shimPadding: 24 }
54
+ }
56
55
  }
57
56
  };
58
57
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@done-coding/admin-plugin-theme",
3
- "version": "0.11.2-alpha.0",
3
+ "version": "0.11.3-alpha.0",
4
4
  "description": "内部前端库",
5
5
  "private": false,
6
6
  "main": "es/index.mjs",
@@ -50,7 +50,7 @@
50
50
  "license": "MIT",
51
51
  "sideEffects": false,
52
52
  "devDependencies": {
53
- "@done-coding/admin-core": "^0.30.1-alpha.0",
53
+ "@done-coding/admin-core": "^0.31.1-alpha.0",
54
54
  "@done-coding/cli-inject": "^0.6.2",
55
55
  "@types/node": "^18.0.0",
56
56
  "@vitejs/plugin-vue": "^5.0.4",
@@ -72,5 +72,5 @@
72
72
  "engines": {
73
73
  "node": ">=18.0.0"
74
74
  },
75
- "gitHead": "ce4ef5042019885e7557f09a8e03f09836c66ec8"
75
+ "gitHead": "56d3873297ddb41aadc8ec41d3a222f038f8d2f7"
76
76
  }