@done-coding/admin-core 0.14.1-alpha.0 → 0.15.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 (33) hide show
  1. package/es/components/app-layout/AppBody.vue.mjs +2 -2
  2. package/es/components/app-layout/AppBody.vue2.mjs +47 -44
  3. package/es/components/app-layout/AppPage.vue.mjs +1 -1
  4. package/es/components/app-layout/AppPage.vue2.mjs +146 -90
  5. package/es/components/app-layout/app-page-geometry.mjs +42 -15
  6. package/es/components/display/TabsMain.vue.mjs +114 -59
  7. package/es/components/display/TabsTile.vue.mjs +7 -0
  8. package/es/components/display/TabsTile.vue2.mjs +182 -0
  9. package/es/components/display/use-tabs-query-sync.mjs +26 -0
  10. package/es/components/form/FormSearch.vue.mjs +2 -2
  11. package/es/components/form/FormSearch.vue2.mjs +84 -75
  12. package/es/components/form/form-search-utils.mjs +58 -29
  13. package/es/components/panel/PanelMain.vue.mjs +1 -1
  14. package/es/components/panel/PanelMain.vue2.mjs +15 -15
  15. package/es/hooks/use-channel-viewport-height.mjs +1 -4
  16. package/es/hooks/use-theme-apply.mjs +65 -54
  17. package/es/index.mjs +203 -196
  18. package/es/inject/key.mjs +19 -13
  19. package/es/store/app.mjs +77 -68
  20. package/es/style.css +1 -1
  21. package/es/utils/dom.mjs +12 -0
  22. package/package.json +2 -2
  23. package/types/components/app-layout/app-page-geometry.d.ts +15 -0
  24. package/types/components/display/TabsTile.vue.d.ts +208 -0
  25. package/types/components/display/types.d.ts +7 -0
  26. package/types/components/display/use-tabs-query-sync.d.ts +16 -0
  27. package/types/components/form/form-search-utils.d.ts +13 -6
  28. package/types/components/modal/ConfirmModal.vue.d.ts +1 -1
  29. package/types/inject/key.d.ts +13 -1
  30. package/types/injectInfo.json.d.ts +1 -1
  31. package/types/store/app.d.ts +19 -1
  32. package/types/utils/dom.d.ts +1 -0
  33. package/types/utils/index.d.ts +1 -0
@@ -1,7 +1,7 @@
1
1
  import o from "./AppBody.vue2.mjs";
2
2
  /* empty css */
3
3
  import p from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const _ = /* @__PURE__ */ p(o, [["__scopeId", "data-v-dce40682"]]);
4
+ const m = /* @__PURE__ */ p(o, [["__scopeId", "data-v-c593275f"]]);
5
5
  export {
6
- _ as default
6
+ m as default
7
7
  };
@@ -1,87 +1,90 @@
1
- import { defineComponent as L, useCssVars as N, inject as _, ref as b, computed as o, provide as g, watch as H, resolveComponent as F, openBlock as i, createElementBlock as I, normalizeStyle as E, createElementVNode as Y, createBlock as l, unref as S, withCtx as w, createVNode as A, createCommentVNode as d, KeepAlive as $, resolveDynamicComponent as P, renderSlot as k } from "vue";
1
+ import { defineComponent as N, useCssVars as I, inject as E, ref as b, computed as o, provide as d, readonly as L, watch as H, resolveComponent as F, openBlock as i, createElementBlock as Y, normalizeStyle as g, createElementVNode as $, createBlock as a, unref as S, withCtx as T, createVNode as w, createCommentVNode as s, KeepAlive as k, resolveDynamicComponent as A, renderSlot as D } from "vue";
2
2
  import { ElAffix as U } from "element-plus";
3
- import D from "./AppBreadcrumb.vue.mjs";
4
- import G from "lodash/debounce";
5
- import { APP_LAYOUT_APP_STORE_KEY as z, APP_LAYOUT_BRIDGE_KEY as K, BODY_CONTENT_VIEWPORT_HEIGHT as M, BODY_CONTENT_VIEWPORT_RECT as W } from "../../inject/key.mjs";
6
- import { useActivated as j } from "../../hooks/activated.mjs";
7
- const oe = /* @__PURE__ */ L({
3
+ import G from "./AppBreadcrumb.vue.mjs";
4
+ import z from "lodash/debounce";
5
+ import { APP_LAYOUT_APP_STORE_KEY as K, APP_LAYOUT_BRIDGE_KEY as W, BODY_CONTENT_VIEWPORT_HEIGHT as M, BODY_CONTENT_VIEWPORT_RECT as j, BODY_CONTENT_VIEWPORT_INSET as q } from "../../inject/key.mjs";
6
+ import { useActivated as J } from "../../hooks/activated.mjs";
7
+ const ie = /* @__PURE__ */ N({
8
8
  __name: "AppBody",
9
9
  props: {
10
10
  menuFlatList: { default: () => [] }
11
11
  },
12
- setup(T) {
13
- N((e) => ({
14
- v65702a61: r.value
12
+ setup(O) {
13
+ I((e) => ({
14
+ v513aac26: r.value
15
15
  }));
16
- const t = _(z), s = _(K), C = s.APP_ROUTER_CONFIG, c = b(!1), u = o(() => s.APP_LAYOUT_BREADCRUMB_CONFIG.height), p = b(0);
17
- g(M, p);
18
- const m = o(() => t.bodyShimPadding), a = o(() => t.bodyShimStyle), O = o(() => t.bodyStyle), y = o(() => t.showBreadcrumb), R = o(() => parseFloat(`${t.bodyStyle.paddingTop ?? 0}`) || 0), x = o(() => ({
16
+ const t = E(K), c = E(W), P = c.APP_ROUTER_CONFIG, u = b(!1), p = o(() => c.APP_LAYOUT_BREADCRUMB_CONFIG.height), m = b(0);
17
+ d(M, L(m));
18
+ const y = o(() => t.bodyShimPadding), l = o(() => t.bodyShimStyle), C = o(() => t.bodyStyle), f = o(() => t.showBreadcrumb), R = o(() => parseFloat(`${t.bodyStyle.paddingTop ?? 0}`) || 0), V = o(() => ({
19
19
  top: t.bodyStyle.paddingTop,
20
20
  left: t.bodyStyle.paddingLeft,
21
21
  right: t.bodyStyle.paddingRight,
22
- bottom: `calc(100vh - ${t.bodyStyle.paddingTop} - ${a.value.minHeight})`,
22
+ bottom: `calc(100vh - ${t.bodyStyle.paddingTop} - ${l.value.minHeight})`,
23
23
  // app-body-shim 内边距:供 AppPage 各插槽 shim 朝 chrome 侧留呼吸
24
- shimPadding: m.value
24
+ shimPadding: y.value
25
25
  }));
26
- g(W, x);
26
+ d(j, V), d(
27
+ q,
28
+ o(() => t.contentViewportInset)
29
+ );
27
30
  const r = o(
28
- () => `calc(${a.value.minHeight} - ${y.value && c.value ? u.value : 0}px - ${m.value * 2}px)`
29
- ), B = (e) => {
30
- c.value = e;
31
- }, n = G(() => {
31
+ () => `calc(${l.value.minHeight} - ${f.value && u.value ? p.value : 0}px - ${y.value * 2}px)`
32
+ ), x = (e) => {
33
+ u.value = e;
34
+ }, n = z(() => {
32
35
  const e = document.createElement("div");
33
- e.style.height = r.value, e.style.position = "fixed", e.style.left = "100%", e.style.top = "100%", e.style.opacity = "0", e.style.pointerEvents = "none", document.body.appendChild(e), p.value = e.clientHeight, e.remove();
36
+ e.style.height = r.value, e.style.position = "fixed", e.style.left = "100%", e.style.top = "100%", e.style.opacity = "0", e.style.pointerEvents = "none", document.body.appendChild(e), m.value = e.clientHeight, e.remove();
34
37
  }, 16);
35
38
  return H(r, () => {
36
39
  n();
37
- }), j((e) => {
40
+ }), J((e) => {
38
41
  typeof window > "u" || (e.isActivated ? (n(), window.addEventListener("resize", n)) : (window.removeEventListener("resize", n), n.cancel()));
39
- }), (e, q) => {
40
- const V = F("RouterView");
41
- return i(), I("div", {
42
+ }), (e, Q) => {
43
+ const B = F("RouterView");
44
+ return i(), Y("div", {
42
45
  class: "app-body",
43
- style: E(O.value)
46
+ style: g(C.value)
44
47
  }, [
45
- Y("div", {
48
+ $("div", {
46
49
  class: "app-body-shim",
47
- style: E(a.value)
50
+ style: g(l.value)
48
51
  }, [
49
- y.value ? (i(), l(S(U), {
52
+ f.value ? (i(), a(S(U), {
50
53
  key: 0,
51
54
  offset: R.value
52
55
  }, {
53
- default: w(() => [
54
- A(D, {
55
- height: u.value,
56
- menuFlatList: T.menuFlatList,
57
- onShow: B
56
+ default: T(() => [
57
+ w(G, {
58
+ height: p.value,
59
+ menuFlatList: O.menuFlatList,
60
+ onShow: x
58
61
  }, null, 8, ["height", "menuFlatList"])
59
62
  ]),
60
63
  _: 1
61
- }, 8, ["offset"])) : d("", !0),
62
- A(V, null, {
63
- default: w(({
64
- Component: f,
64
+ }, 8, ["offset"])) : s("", !0),
65
+ w(B, null, {
66
+ default: T(({
67
+ Component: v,
65
68
  route: {
66
- path: v,
69
+ path: _,
67
70
  meta: { keepAlive: h }
68
71
  }
69
72
  }) => [
70
- (i(), l($, {
71
- max: S(C).keepAliveMaxCount
73
+ (i(), a(k, {
74
+ max: S(P).keepAliveMaxCount
72
75
  }, [
73
- h ? (i(), l(P(f), { key: v })) : d("", !0)
76
+ h ? (i(), a(A(v), { key: _ })) : s("", !0)
74
77
  ], 1032, ["max"])),
75
- h ? d("", !0) : (i(), l(P(f), { key: v }))
78
+ h ? s("", !0) : (i(), a(A(v), { key: _ }))
76
79
  ]),
77
80
  _: 1
78
81
  })
79
82
  ], 4),
80
- k(e.$slots, "footer", {}, void 0, !0)
83
+ D(e.$slots, "footer", {}, void 0, !0)
81
84
  ], 4);
82
85
  };
83
86
  }
84
87
  });
85
88
  export {
86
- oe as default
89
+ ie as default
87
90
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./AppPage.vue2.mjs";
2
2
  /* empty css */
3
3
  import p from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const e = /* @__PURE__ */ p(o, [["__scopeId", "data-v-da6e4bf1"]]);
4
+ const e = /* @__PURE__ */ p(o, [["__scopeId", "data-v-6ba4ec25"]]);
5
5
  export {
6
6
  e as default
7
7
  };
@@ -1,11 +1,11 @@
1
- import { defineComponent as O, useCssVars as F, computed as o, useSlots as D, ref as n, shallowRef as I, inject as Y, openBlock as i, createElementBlock as q, normalizeStyle as a, createElementVNode as r, createVNode as G, unref as u, withCtx as c, renderSlot as g, createBlock as v, createCommentVNode as b } from "vue";
2
- import J from "lodash/debounce";
3
- import K from "../modal/ModalShelf.vue.mjs";
4
- import y from "../display/WatchSize.vue.mjs";
5
- import { computeAppPageSlotStyles as Q, computeAppPageSlotShimStyles as U } from "./app-page-geometry.mjs";
6
- import { BODY_CONTENT_VIEWPORT_RECT as X } from "../../inject/key.mjs";
7
- import { useActivated as Z } from "../../hooks/activated.mjs";
8
- const j = "--app-viewport-max-height", ie = /* @__PURE__ */ O({
1
+ import { defineComponent as oe, useCssVars as ae, computed as t, useSlots as se, ref as i, shallowRef as le, inject as $, provide as R, openBlock as u, createElementBlock as pe, normalizeStyle as s, createElementVNode as c, createVNode as ie, unref as d, withCtx as v, renderSlot as g, createBlock as x, createCommentVNode as P } from "vue";
2
+ import S from "lodash/debounce";
3
+ import ne from "../modal/ModalShelf.vue.mjs";
4
+ import k from "../display/WatchSize.vue.mjs";
5
+ import { computeAppPageReducedViewportHeight as re, computeAppPageContentInset as ue, computeAppPageReducedViewportWidth as ce, computeAppPageSlotStyles as de, computeAppPageSlotShimStyles as ve } from "./app-page-geometry.mjs";
6
+ import { BODY_CONTENT_VIEWPORT_RECT as ge, BODY_CONTENT_VIEWPORT_HEIGHT as A, BODY_CONTENT_VIEWPORT_INSET as fe, APP_PAGE_CONTENT_INSET as he } from "../../inject/key.mjs";
7
+ import { useActivated as I } from "../../hooks/activated.mjs";
8
+ const me = "--app-viewport-max-height", Ee = /* @__PURE__ */ oe({
9
9
  name: "AppPage",
10
10
  __name: "AppPage",
11
11
  props: {
@@ -19,158 +19,214 @@ const j = "--app-viewport-max-height", ie = /* @__PURE__ */ O({
19
19
  leftBg: {},
20
20
  rightBg: {}
21
21
  },
22
- setup(S) {
23
- F((e) => ({
24
- v36c22f8e: s.nextViewportMaxHeight
22
+ setup(z) {
23
+ ae((e) => ({
24
+ v0f6d6f31: n.value.top,
25
+ v314acecf: n.value.bottom,
26
+ v4386a4aa: n.value.left,
27
+ v2ca12e10: n.value.right,
28
+ v2c1456bc: n.value.width,
29
+ v3af5c5cb: n.value.height,
30
+ v1911457e: a.nextViewportMaxHeight
25
31
  }));
26
- const s = S, V = o(() => ({
27
- background: s.background,
28
- ...s.fullViewport ? {
29
- [s.fullMode]: `var(${j})`
32
+ const a = z, L = t(() => ({
33
+ background: a.background,
34
+ ...a.fullViewport ? {
35
+ [a.fullMode]: `var(${me})`
30
36
  } : {}
31
- })), d = D(), H = o(() => !!d.top), P = o(() => !!d.bottom), R = o(() => !!d.left), W = o(() => !!d.right), w = n(0), k = n(0), B = n(0), _ = n(0), E = (e) => {
32
- w.value = e;
33
- }, T = (e) => {
34
- k.value = e;
35
- }, A = (e) => {
37
+ })), f = se(), M = t(() => !!f.top), D = t(() => !!f.bottom), F = t(() => !!f.left), Y = t(() => !!f.right), h = i(0), m = i(0), B = i(0), E = i(0), G = (e) => {
38
+ h.value = e;
39
+ }, q = (e) => {
40
+ m.value = e;
41
+ }, J = (e) => {
36
42
  B.value = e;
37
- }, z = (e) => {
38
- _.value = e;
39
- }, m = I(), x = n({
43
+ }, K = (e) => {
44
+ E.value = e;
45
+ }, l = le(), V = i({
40
46
  top: "0px",
41
47
  left: "0px",
42
48
  right: "0px",
43
49
  bottom: "0px"
44
- }), l = Y(X, void 0), L = !l, p = J(() => {
45
- const e = m.value;
50
+ }), p = $(ge, void 0), Q = !p, r = S(() => {
51
+ const e = l.value;
46
52
  if (!e || typeof window > "u") return;
47
- const t = e.getBoundingClientRect();
48
- x.value = {
49
- top: `${t.top}px`,
50
- left: `${t.left}px`,
51
- right: `${window.innerWidth - t.right}px`,
52
- bottom: `${window.innerHeight - t.bottom}px`
53
+ const o = e.getBoundingClientRect();
54
+ V.value = {
55
+ top: `${o.top}px`,
56
+ left: `${o.left}px`,
57
+ right: `${window.innerWidth - o.right}px`,
58
+ bottom: `${window.innerHeight - o.bottom}px`
53
59
  };
54
60
  }, 16);
55
- if (L && typeof window < "u") {
56
- const e = typeof ResizeObserver < "u" ? new ResizeObserver(() => p()) : void 0;
57
- Z((t) => {
58
- t.isActivated ? (p(), e && m.value && e.observe(m.value), window.addEventListener("resize", p)) : (e == null || e.disconnect(), window.removeEventListener("resize", p), p.cancel());
61
+ if (Q && typeof window < "u") {
62
+ const e = typeof ResizeObserver < "u" ? new ResizeObserver(() => r()) : void 0;
63
+ I((o) => {
64
+ o.isActivated ? (r(), e && l.value && e.observe(l.value), window.addEventListener("resize", r)) : (e == null || e.disconnect(), window.removeEventListener("resize", r), r.cancel());
59
65
  });
60
66
  }
61
- const M = o(() => {
62
- const e = l == null ? void 0 : l.value;
63
- return e ? { top: e.top, left: e.left, right: e.right, bottom: e.bottom } : x.value;
64
- }), $ = o(() => {
67
+ const U = t(() => {
68
+ const e = p == null ? void 0 : p.value;
69
+ return e ? { top: e.top, left: e.left, right: e.right, bottom: e.bottom } : V.value;
70
+ }), b = t(() => {
65
71
  var e;
66
- return ((e = l == null ? void 0 : l.value) == null ? void 0 : e.shimPadding) ?? 0;
67
- }), f = o(
68
- () => Q(M.value, w.value, k.value)
69
- ), h = o(() => {
70
- const e = U($.value, s.gap);
72
+ return ((e = p == null ? void 0 : p.value) == null ? void 0 : e.shimPadding) ?? 0;
73
+ }), T = t(() => ({
74
+ topH: h.value,
75
+ bottomH: m.value,
76
+ leftW: B.value,
77
+ rightW: E.value
78
+ })), X = $(A, i(0)), W = t(
79
+ () => re(
80
+ X.value,
81
+ T.value,
82
+ b.value
83
+ )
84
+ );
85
+ R(A, W);
86
+ const Z = {
87
+ top: 0,
88
+ bottom: 0,
89
+ left: 0,
90
+ right: 0
91
+ }, j = $(
92
+ fe,
93
+ t(() => Z)
94
+ ), C = t(
95
+ () => ue(j.value, T.value, a.gap)
96
+ );
97
+ R(he, C);
98
+ const H = i(0), O = () => {
99
+ l.value && (H.value = l.value.clientWidth);
100
+ }, w = S(O, 16);
101
+ if (typeof window < "u") {
102
+ const e = typeof ResizeObserver < "u" ? new ResizeObserver(() => w()) : void 0;
103
+ I((o) => {
104
+ o.isActivated ? (O(), e && l.value ? e.observe(l.value) : window.addEventListener("resize", w)) : (e == null || e.disconnect(), window.removeEventListener("resize", w), w.cancel());
105
+ });
106
+ }
107
+ const ee = t(
108
+ () => ce(
109
+ H.value,
110
+ T.value,
111
+ b.value
112
+ )
113
+ ), n = t(() => {
114
+ const e = C.value;
115
+ return {
116
+ top: `${e.top}px`,
117
+ bottom: `${e.bottom}px`,
118
+ left: `${e.left}px`,
119
+ right: `${e.right}px`,
120
+ width: `${ee.value}px`,
121
+ height: `${W.value}px`
122
+ };
123
+ }), y = t(
124
+ () => de(U.value, h.value, m.value)
125
+ ), _ = t(() => {
126
+ const e = ve(b.value, a.gap);
71
127
  return {
72
- top: { ...e.top, background: s.topBg },
73
- bottom: { ...e.bottom, background: s.bottomBg },
74
- left: { ...e.left, background: s.leftBg },
75
- right: { ...e.right, background: s.rightBg }
128
+ top: { ...e.top, background: a.topBg },
129
+ bottom: { ...e.bottom, background: a.bottomBg },
130
+ left: { ...e.left, background: a.leftBg },
131
+ right: { ...e.right, background: a.rightBg }
76
132
  };
77
- }), N = o(() => {
78
- const e = $.value, t = (C) => `${Math.max(0, C ? C - e : 0)}px`;
133
+ }), te = t(() => {
134
+ const e = b.value, o = (N) => `${Math.max(0, N ? N - e : 0)}px`;
79
135
  return {
80
- paddingTop: t(w.value),
81
- paddingBottom: t(k.value),
82
- paddingLeft: t(B.value),
83
- paddingRight: t(_.value)
136
+ paddingTop: o(h.value),
137
+ paddingBottom: o(m.value),
138
+ paddingLeft: o(B.value),
139
+ paddingRight: o(E.value)
84
140
  };
85
141
  });
86
- return (e, t) => (i(), q("div", {
142
+ return (e, o) => (u(), pe("div", {
87
143
  ref_key: "appPageRef",
88
- ref: m,
144
+ ref: l,
89
145
  class: "dc-app-page app-page",
90
- style: a(V.value)
146
+ style: s(L.value)
91
147
  }, [
92
- r("div", {
148
+ c("div", {
93
149
  class: "app-page-shim",
94
- style: a(N.value)
150
+ style: s(te.value)
95
151
  }, [
96
- G(u(K), { level: "page" }, {
97
- default: c(() => [
152
+ ie(d(ne), { level: "page" }, {
153
+ default: v(() => [
98
154
  g(e.$slots, "default", {}, void 0, !0)
99
155
  ]),
100
156
  _: 3
101
157
  })
102
158
  ], 4),
103
- H.value ? (i(), v(u(y), {
159
+ M.value ? (u(), x(d(k), {
104
160
  key: 0,
105
161
  mode: "height",
106
162
  class: "app-page-slot app-page-slot--top",
107
- style: a(f.value.top),
108
- onHeightChange: E
163
+ style: s(y.value.top),
164
+ onHeightChange: G
109
165
  }, {
110
- default: c(() => [
111
- r("div", {
166
+ default: v(() => [
167
+ c("div", {
112
168
  class: "app-page-slot-shim",
113
- style: a(h.value.top)
169
+ style: s(_.value.top)
114
170
  }, [
115
171
  g(e.$slots, "top", {}, void 0, !0)
116
172
  ], 4)
117
173
  ]),
118
174
  _: 3
119
- }, 8, ["style"])) : b("", !0),
120
- P.value ? (i(), v(u(y), {
175
+ }, 8, ["style"])) : P("", !0),
176
+ D.value ? (u(), x(d(k), {
121
177
  key: 1,
122
178
  mode: "height",
123
179
  class: "app-page-slot app-page-slot--bottom",
124
- style: a(f.value.bottom),
125
- onHeightChange: T
180
+ style: s(y.value.bottom),
181
+ onHeightChange: q
126
182
  }, {
127
- default: c(() => [
128
- r("div", {
183
+ default: v(() => [
184
+ c("div", {
129
185
  class: "app-page-slot-shim",
130
- style: a(h.value.bottom)
186
+ style: s(_.value.bottom)
131
187
  }, [
132
188
  g(e.$slots, "bottom", {}, void 0, !0)
133
189
  ], 4)
134
190
  ]),
135
191
  _: 3
136
- }, 8, ["style"])) : b("", !0),
137
- R.value ? (i(), v(u(y), {
192
+ }, 8, ["style"])) : P("", !0),
193
+ F.value ? (u(), x(d(k), {
138
194
  key: 2,
139
195
  mode: "width",
140
196
  class: "app-page-slot app-page-slot--left",
141
- style: a(f.value.left),
142
- onWidthChange: A
197
+ style: s(y.value.left),
198
+ onWidthChange: J
143
199
  }, {
144
- default: c(() => [
145
- r("div", {
200
+ default: v(() => [
201
+ c("div", {
146
202
  class: "app-page-slot-shim",
147
- style: a(h.value.left)
203
+ style: s(_.value.left)
148
204
  }, [
149
205
  g(e.$slots, "left", {}, void 0, !0)
150
206
  ], 4)
151
207
  ]),
152
208
  _: 3
153
- }, 8, ["style"])) : b("", !0),
154
- W.value ? (i(), v(u(y), {
209
+ }, 8, ["style"])) : P("", !0),
210
+ Y.value ? (u(), x(d(k), {
155
211
  key: 3,
156
212
  mode: "width",
157
213
  class: "app-page-slot app-page-slot--right",
158
- style: a(f.value.right),
159
- onWidthChange: z
214
+ style: s(y.value.right),
215
+ onWidthChange: K
160
216
  }, {
161
- default: c(() => [
162
- r("div", {
217
+ default: v(() => [
218
+ c("div", {
163
219
  class: "app-page-slot-shim",
164
- style: a(h.value.right)
220
+ style: s(_.value.right)
165
221
  }, [
166
222
  g(e.$slots, "right", {}, void 0, !0)
167
223
  ], 4)
168
224
  ]),
169
225
  _: 3
170
- }, 8, ["style"])) : b("", !0)
226
+ }, 8, ["style"])) : P("", !0)
171
227
  ], 4));
172
228
  }
173
229
  });
174
230
  export {
175
- ie as default
231
+ Ee as default
176
232
  };
@@ -1,38 +1,62 @@
1
- const d = 1;
2
- function e(t, o, x) {
3
- const i = `calc(${t.top} + ${o}px)`, p = `calc(${t.bottom} + ${x}px)`;
1
+ function x(t, o) {
2
+ return t ? Math.max(0, t - o) : 0;
3
+ }
4
+ function d(t, o, e) {
5
+ return Math.max(
6
+ 0,
7
+ t - x(o.topH, e) - x(o.bottomH, e)
8
+ );
9
+ }
10
+ function u(t, o, e) {
11
+ return Math.max(
12
+ 0,
13
+ t - x(o.leftW, e) - x(o.rightW, e)
14
+ );
15
+ }
16
+ function r(t, o, e) {
17
+ const { topH: i, bottomH: p, leftW: n, rightW: f } = o;
18
+ return {
19
+ top: t.top + i + (i ? e : 0),
20
+ bottom: t.bottom + p + (p ? e : 0),
21
+ left: t.left + n + (n ? e : 0),
22
+ right: t.right + f + (f ? e : 0)
23
+ };
24
+ }
25
+ const m = 1;
26
+ function l(t, o, e) {
27
+ const i = m, p = `calc(${t.top} + ${o}px)`, n = `calc(${t.bottom} + ${e}px)`;
4
28
  return {
5
29
  top: {
6
30
  position: "fixed",
7
31
  top: t.top,
8
32
  left: t.left,
9
33
  right: t.right,
10
- zIndex: 1
34
+ zIndex: i
11
35
  },
12
36
  bottom: {
13
37
  position: "fixed",
14
38
  bottom: t.bottom,
15
39
  left: t.left,
16
40
  right: t.right,
17
- zIndex: 1
41
+ zIndex: i
18
42
  },
19
43
  left: {
20
44
  position: "fixed",
21
45
  left: t.left,
22
- top: i,
23
- bottom: p,
24
- zIndex: 1
46
+ top: p,
47
+ bottom: n,
48
+ zIndex: i
25
49
  },
26
50
  right: {
27
51
  position: "fixed",
28
52
  right: t.right,
29
- top: i,
30
- bottom: p,
31
- zIndex: 1
53
+ top: p,
54
+ bottom: n,
55
+ zIndex: i
32
56
  }
33
57
  };
34
58
  }
35
- function $(t, o) {
59
+ function h(t, o) {
36
60
  return {
37
61
  top: { padding: `${t}px ${t}px ${o}px ${t}px` },
38
62
  bottom: { padding: `${o}px ${t}px ${t}px ${t}px` },
@@ -41,7 +65,10 @@ function $(t, o) {
41
65
  };
42
66
  }
43
67
  export {
44
- d as APP_PAGE_SLOT_Z_INDEX,
45
- $ as computeAppPageSlotShimStyles,
46
- e as computeAppPageSlotStyles
68
+ m as APP_PAGE_SLOT_Z_INDEX,
69
+ r as computeAppPageContentInset,
70
+ d as computeAppPageReducedViewportHeight,
71
+ u as computeAppPageReducedViewportWidth,
72
+ h as computeAppPageSlotShimStyles,
73
+ l as computeAppPageSlotStyles
47
74
  };