@quoreadmin/ui 1.10.23 → 1.10.25
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.
- package/README.md +30 -24
- package/dist/index.css +1 -1
- package/dist/index131.js +172 -158
- package/dist/index147.js +1 -1
- package/dist/index16.js +52 -50
- package/dist/index186.js +4 -4
- package/dist/index193.js +8 -8
- package/dist/index195.js +8 -8
- package/dist/index198.js +17 -17
- package/dist/index201.js +26 -26
- package/dist/index202.js +1 -1
- package/dist/index203.js +1 -1
- package/dist/index206.js +2 -2
- package/dist/index208.js +14 -14
- package/dist/index209.js +1 -1
- package/dist/index210.js +1 -1
- package/dist/index211.js +3 -3
- package/dist/index212.js +14 -12
- package/dist/index213.js +2 -2
- package/dist/index214.js +2 -2
- package/dist/index215.js +1 -1
- package/dist/index219.js +2 -2
- package/dist/index220.js +1 -1
- package/dist/index222.js +4 -4
- package/dist/index224.js +1 -1
- package/dist/index225.js +1 -1
- package/dist/index226.js +1 -1
- package/dist/index227.js +4 -4
- package/dist/index229.js +1 -1
- package/dist/index230.js +159 -159
- package/dist/index231.js +20 -228
- package/dist/index232.js +19 -36
- package/dist/index233.js +22 -10
- package/dist/index234.js +167 -129
- package/dist/index235.js +69 -19
- package/dist/index236.js +34 -20
- package/dist/index237.js +39 -21
- package/dist/index238.js +21 -198
- package/dist/index239.js +21 -69
- package/dist/index240.js +20 -34
- package/dist/index241.js +823 -27
- package/dist/index242.js +657 -3591
- package/dist/index243.js +174 -53
- package/dist/index244.js +20 -77
- package/dist/index245.js +20 -52
- package/dist/index246.js +22 -215
- package/dist/index247.js +20 -10
- package/dist/index248.js +20 -57
- package/dist/index249.js +3 -61
- package/dist/index250.js +182 -49
- package/dist/index251.js +128 -70
- package/dist/index252.js +1193 -696
- package/dist/index253.js +122 -37
- package/dist/index254.js +20 -64
- package/dist/index255.js +22 -11
- package/dist/index256.js +22 -705
- package/dist/index257.js +34 -816
- package/dist/index258.js +28 -126
- package/dist/index259.js +19 -37
- package/dist/index260.js +20 -80
- package/dist/index261.js +2 -20
- package/dist/index262.js +2 -20
- package/dist/index263.js +3709 -20
- package/dist/index264.js +60 -20
- package/dist/index265.js +83 -22
- package/dist/index266.js +52 -22
- package/dist/index267.js +215 -20
- package/dist/index268.js +10 -836
- package/dist/index269.js +50 -695
- package/dist/index270.js +59 -174
- package/dist/index271.js +54 -22
- package/dist/index272.js +81 -20
- package/dist/index273.js +727 -19
- package/dist/index274.js +47 -3
- package/dist/index275.js +58 -181
- package/dist/index276.js +11 -133
- package/dist/index277.js +671 -1189
- package/dist/index278.js +820 -20
- package/dist/index279.js +253 -22
- package/dist/index280.js +7 -21
- package/dist/index281.js +138 -29
- package/dist/index282.js +83 -20
- package/dist/index283.js +53 -19
- package/dist/index284.js +79 -2
- package/dist/index285.js +26 -2
- package/dist/index286.js +22 -253
- package/dist/index287.js +22 -8
- package/dist/index288.js +15 -137
- package/dist/index289.js +17 -83
- package/dist/index290.js +21 -52
- package/dist/index291.js +79 -78
- package/dist/index292.js +13 -19
- package/dist/index293.js +13 -15
- package/dist/index294.js +160 -21
- package/dist/index295.js +227 -15
- package/dist/index296.js +37 -17
- package/dist/index297.js +10 -23
- package/dist/index298.js +3 -1534
- package/dist/index299.js +23 -382
- package/dist/index300.js +249 -2715
- package/dist/index301.js +4 -84
- package/dist/index302.js +145 -3787
- package/dist/index303.js +66 -57
- package/dist/index304.js +90 -14
- package/dist/index305.js +27 -82
- package/dist/index306.js +13 -199
- package/dist/index307.js +66 -237
- package/dist/index308.js +4 -2
- package/dist/index309.js +2 -79
- package/dist/index310.js +83 -21
- package/dist/index311.js +52 -929
- package/dist/index312.js +5 -21
- package/dist/index313.js +4 -19
- package/dist/index314.js +185 -19
- package/dist/index315.js +61 -67
- package/dist/index316.js +74 -18
- package/dist/index317.js +1534 -19
- package/dist/index318.js +386 -22
- package/dist/index319.js +2731 -22
- package/dist/index320.js +86 -63
- package/dist/index321.js +3779 -243
- package/dist/index322.js +58 -4
- package/dist/index323.js +15 -140
- package/dist/index324.js +77 -66
- package/dist/index325.js +195 -80
- package/dist/index326.js +245 -28
- package/dist/index327.js +77 -14
- package/dist/index328.js +21 -74
- package/dist/index329.js +934 -3
- package/dist/index330.js +22 -2
- package/dist/index331.js +19 -82
- package/dist/index332.js +19 -52
- package/dist/index333.js +68 -5
- package/dist/index334.js +19 -5
- package/dist/index335.js +18 -178
- package/dist/index336.js +21 -62
- package/dist/index337.js +22 -75
- package/dist/index338.js +63 -3
- package/dist/index339.js +2 -27
- package/dist/index340.js +1 -1
- package/dist/index341.js +8 -19
- package/dist/index342.js +12 -19
- package/dist/index343.js +51 -60
- package/dist/index344.js +12 -37
- package/dist/index345.js +13 -18
- package/dist/index346.js +55 -54
- package/dist/index347.js +50 -27
- package/dist/index348.js +30 -6
- package/dist/index349.js +2 -52
- package/dist/index350.js +4 -6
- package/dist/index351.js +2 -12
- package/dist/index352.js +22 -6
- package/dist/index353.js +40 -27
- package/dist/index354.js +2 -2
- package/dist/index355.js +10 -69
- package/dist/index356.js +18 -165
- package/dist/index357.js +10 -9
- package/dist/index358.js +10 -13
- package/dist/index359.js +15 -53
- package/dist/index360.js +2 -12
- package/dist/index361.js +9 -14
- package/dist/index362.js +9 -57
- package/dist/index363.js +14 -52
- package/dist/index364.js +16 -28
- package/dist/index365.js +57 -2
- package/dist/index366.js +25 -5
- package/dist/index367.js +7 -2
- package/dist/index368.js +53 -21
- package/dist/index369.js +6 -40
- package/dist/index370.js +12 -2
- package/dist/index371.js +6 -10
- package/dist/index372.js +28 -20
- package/dist/index373.js +2 -10
- package/dist/index374.js +81 -9
- package/dist/index375.js +178 -15
- package/dist/index376.js +20 -2
- package/dist/index377.js +20 -9
- package/dist/index378.js +63 -9
- package/dist/index379.js +37 -14
- package/dist/index38.js +1 -1
- package/dist/index380.js +28 -98
- package/dist/index381.js +10 -90
- package/dist/index382.js +4 -98
- package/dist/index383.js +4 -17
- package/dist/index384.js +12 -30
- package/dist/index385.js +7 -11
- package/dist/index386.js +13 -3
- package/dist/index387.js +4 -3
- package/dist/index388.js +36 -13
- package/dist/index389.js +37 -7
- package/dist/index390.js +30 -12
- package/dist/index391.js +64 -5
- package/dist/index392.js +98 -33
- package/dist/index393.js +16 -30
- package/dist/index394.js +99 -26
- package/dist/index395.js +91 -61
- package/dist/index396.js +1 -1
- package/dist/index401.js +1 -1
- package/dist/index402.js +2 -2
- package/dist/src/components/avatar/avatar.stories.d.ts +1 -0
- package/dist/src/components/comment-section/comment-section.stories.d.ts +1 -0
- package/dist/src/components/data-filter/data-filter.d.ts +1 -1
- package/dist/src/components/data-list/data-list.d.ts +1 -1
- package/dist/src/components/grid/grid.stories.d.ts +1 -1
- package/dist/src/components/image-gallery/image-gallery.stories.d.ts +2 -0
- package/dist/src/components/page-layout/page-layout.stories.d.ts +319 -0
- package/dist/src/components/page-layout/page-layout.vue.d.ts +2 -0
- package/dist/src/components/pdf-viewer/pdf-viewer.stories.d.ts +1 -0
- package/dist/src/components/table/table.d.ts +1 -1
- package/dist/src/views/lists.vue.d.ts +2 -2
- package/dist/src/views/tables.vue.d.ts +1 -1
- package/package.json +137 -120
- package/dist/src/components/tour/tour.d.ts +0 -364
package/dist/index131.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as ae, useSlots as re, ref as n, computed as c, watch as se, nextTick as q, onMounted as ne, onUnmounted as de, resolveComponent as ie, openBlock as C, createElementBlock as x, normalizeClass as s, createElementVNode as d, normalizeStyle as z, unref as B, renderSlot as m, createCommentVNode as L, createVNode as ue } from "vue";
|
|
2
2
|
import u from "./index57.js";
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import ce from "./index58.js";
|
|
4
|
+
const ve = { class: "flex-grow m-0 font-bold sm-down:text-md md:text-lg leading-none text-left" }, me = 100, fe = "4.5rem", he = "4.8125rem", A = 80, ge = 24, ye = /* @__PURE__ */ ae({
|
|
5
5
|
__name: "page-layout",
|
|
6
6
|
props: {
|
|
7
7
|
headerBackgroundColor: { default: "green-20" },
|
|
@@ -27,288 +27,302 @@ const ie = { class: "flex-grow m-0 font-bold sm-down:text-md md:text-lg leading-
|
|
|
27
27
|
adjustForKeyboard: { type: Boolean, default: !1 }
|
|
28
28
|
},
|
|
29
29
|
emits: ["update:sidebarCollapsed"],
|
|
30
|
-
setup(
|
|
31
|
-
const
|
|
30
|
+
setup(o, { expose: P, emit: U }) {
|
|
31
|
+
const a = o, G = U, { deviceType: J } = ce(), Q = re(), $ = n(null), T = n(null), M = n(null), h = n(null), H = n(null), g = n(!0), v = n(!1), w = n(!1), V = n(!1), S = n(0), F = n(0), I = n({
|
|
32
32
|
top: "50vh",
|
|
33
33
|
left: "24px",
|
|
34
34
|
transform: "translate(-50%, -50%)"
|
|
35
35
|
});
|
|
36
|
-
let
|
|
37
|
-
const
|
|
38
|
-
get: () =>
|
|
39
|
-
set: (e) =>
|
|
40
|
-
}),
|
|
41
|
-
() =>
|
|
42
|
-
),
|
|
43
|
-
() => `${
|
|
44
|
-
),
|
|
45
|
-
() => `calc(100vh - ${
|
|
46
|
-
),
|
|
47
|
-
() =>
|
|
48
|
-
),
|
|
49
|
-
const e =
|
|
50
|
-
return `${Math.min(
|
|
36
|
+
let p = 0, k = !1, Y = 0, O = 0, W = null;
|
|
37
|
+
const f = c(() => !!Q.sidebar), b = c(() => a.headerFixed !== void 0 ? a.headerFixed : f.value), t = c({
|
|
38
|
+
get: () => a.sidebarCollapsed,
|
|
39
|
+
set: (e) => G("update:sidebarCollapsed", e)
|
|
40
|
+
}), X = c(() => J.value === "desktop"), Z = c(
|
|
41
|
+
() => f.value && a.sidebarCollapsible && u.md
|
|
42
|
+
), ee = c(
|
|
43
|
+
() => `${a.headerTop + A}px`
|
|
44
|
+
), oe = c(
|
|
45
|
+
() => `calc(100vh - ${a.headerTop + A}px)`
|
|
46
|
+
), D = c(
|
|
47
|
+
() => t.value ? a.sidebarCollapsedWidth : a.sidebarWidth
|
|
48
|
+
), te = c(() => {
|
|
49
|
+
const e = a.headerTop + A, l = window.innerHeight / 2 + 97, i = e + 16 + F.value / 2;
|
|
50
|
+
return `${Math.min(l, i)}px`;
|
|
51
51
|
}), j = () => {
|
|
52
|
-
const e =
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
52
|
+
const e = T.value;
|
|
53
|
+
if (!u.md && e)
|
|
54
|
+
return {
|
|
55
|
+
scrollY: e.scrollTop,
|
|
56
|
+
atTop: e.scrollTop <= 0,
|
|
57
|
+
atBottom: e.scrollTop + e.clientHeight >= e.scrollHeight
|
|
58
|
+
};
|
|
59
|
+
const r = window.scrollY;
|
|
60
|
+
let i = 0;
|
|
61
|
+
f.value && u.md && !t.value && h.value && (i = h.value.scrollTop);
|
|
62
|
+
const E = Math.max(r, i), R = r <= 0 && i <= 0, le = r + window.innerHeight >= document.documentElement.scrollHeight;
|
|
63
|
+
return { scrollY: E, atTop: R, atBottom: le };
|
|
64
|
+
}, y = () => {
|
|
65
|
+
k || (k = !0, window.requestAnimationFrame(() => {
|
|
66
|
+
const { scrollY: e, atTop: l, atBottom: r } = j();
|
|
67
|
+
if (g.value = l, v.value = r, a.headerHideOnScroll && (b.value || !u.md)) {
|
|
68
|
+
if (e <= a.headerHideScrollThreshold) {
|
|
69
|
+
w.value = !1, p = e, k = !1;
|
|
64
70
|
return;
|
|
65
71
|
}
|
|
66
|
-
if (
|
|
67
|
-
|
|
72
|
+
if (r) {
|
|
73
|
+
p = e, k = !1;
|
|
68
74
|
return;
|
|
69
75
|
}
|
|
70
|
-
const
|
|
71
|
-
Math.abs(
|
|
76
|
+
const E = Math.max(0, e), R = E - p;
|
|
77
|
+
Math.abs(R) > 15 && (w.value = R > 0, p = E);
|
|
72
78
|
} else
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
})
|
|
76
|
-
},
|
|
77
|
-
|
|
78
|
-
},
|
|
79
|
-
if (!
|
|
80
|
-
const e =
|
|
81
|
-
|
|
82
|
-
top: `${(
|
|
83
|
-
left: `${e.left +
|
|
79
|
+
w.value = !1;
|
|
80
|
+
_(), k = !1;
|
|
81
|
+
}));
|
|
82
|
+
}, K = () => {
|
|
83
|
+
t.value = !t.value, q(_);
|
|
84
|
+
}, _ = () => {
|
|
85
|
+
if (!t.value || !M.value) return;
|
|
86
|
+
const e = M.value.getBoundingClientRect(), l = Math.max(0, e.top), r = Math.min(window.innerHeight, e.bottom);
|
|
87
|
+
r <= l || (I.value = {
|
|
88
|
+
top: `${(l + r) / 2}px`,
|
|
89
|
+
left: `${e.left + ge}px`,
|
|
84
90
|
transform: "translate(-50%, -50%)"
|
|
85
91
|
});
|
|
86
|
-
},
|
|
87
|
-
if (!
|
|
88
|
-
const e = window.visualViewport?.height ?? window.innerHeight,
|
|
89
|
-
if (
|
|
90
|
-
|
|
92
|
+
}, N = () => {
|
|
93
|
+
if (!a.adjustForKeyboard || u.md) return;
|
|
94
|
+
const e = window.visualViewport?.height ?? window.innerHeight, l = Y - e;
|
|
95
|
+
if (l <= me)
|
|
96
|
+
Y = window.innerHeight, O = $.value?.clientHeight ?? window.innerHeight, S.value = 0;
|
|
91
97
|
else {
|
|
92
|
-
const
|
|
93
|
-
|
|
98
|
+
const r = $.value?.clientHeight ?? window.innerHeight, i = Math.max(0, O - r);
|
|
99
|
+
S.value = Math.max(0, l - i);
|
|
94
100
|
}
|
|
95
101
|
};
|
|
96
|
-
return
|
|
97
|
-
|
|
102
|
+
return se(t, () => {
|
|
103
|
+
q(() => {
|
|
104
|
+
p = j().scrollY;
|
|
105
|
+
});
|
|
106
|
+
}), ne(() => {
|
|
107
|
+
Y = window.innerHeight, O = $.value?.clientHeight ?? window.innerHeight, window.addEventListener("scroll", y, { passive: !0 }), T.value && T.value.addEventListener("scroll", y, {
|
|
108
|
+
passive: !0
|
|
109
|
+
}), h.value && h.value.addEventListener("scroll", y, {
|
|
98
110
|
passive: !0
|
|
99
111
|
});
|
|
100
|
-
const { scrollY: e, atTop:
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}),
|
|
104
|
-
}),
|
|
105
|
-
window.removeEventListener("scroll",
|
|
106
|
-
}),
|
|
107
|
-
const
|
|
108
|
-
return
|
|
112
|
+
const { scrollY: e, atTop: l, atBottom: r } = j();
|
|
113
|
+
p = e, g.value = l, v.value = r, a.adjustForKeyboard && window.visualViewport?.addEventListener("resize", N), q(_), H.value && (W = new ResizeObserver(() => {
|
|
114
|
+
F.value = H.value?.offsetHeight ?? 0;
|
|
115
|
+
}), W.observe(H.value), F.value = H.value.offsetHeight);
|
|
116
|
+
}), de(() => {
|
|
117
|
+
window.removeEventListener("scroll", y), T.value?.removeEventListener("scroll", y), h.value?.removeEventListener("scroll", y), window.visualViewport?.removeEventListener("resize", N), W?.disconnect();
|
|
118
|
+
}), P({ scrolledToTop: g, scrolledToBottom: v, headerHidden: w, keyboardOffset: S }), (e, l) => {
|
|
119
|
+
const r = ie("q-icon");
|
|
120
|
+
return C(), x("div", {
|
|
109
121
|
ref_key: "rootRef",
|
|
110
|
-
ref:
|
|
111
|
-
class:
|
|
122
|
+
ref: $,
|
|
123
|
+
class: s([
|
|
112
124
|
"page-layout",
|
|
113
|
-
`bg-${
|
|
125
|
+
`bg-${o.containerBackgroundColor}`,
|
|
114
126
|
"sm-down:absolute sm-down:inset-x-0 sm-down:top-0 sm-down:bottom-0"
|
|
115
127
|
])
|
|
116
128
|
}, [
|
|
117
129
|
d("div", {
|
|
118
|
-
class:
|
|
130
|
+
class: s([
|
|
119
131
|
"page-layout__header",
|
|
120
132
|
"flex items-center justify-center",
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
{ "page-layout__header--hidden":
|
|
133
|
+
B(u).md ? `bg-${o.containerBackgroundColor}` : "",
|
|
134
|
+
b.value ? "fixed left-0 w-full sm-down:z-50 md:z-[45] md:pt-6 md:px-6" : "md:mb-4 relative sm-down:absolute sm-down:top-0 sm-down:inset-x-0 sm-down:z-50",
|
|
135
|
+
{ "page-layout__header--hidden": w.value }
|
|
124
136
|
]),
|
|
125
|
-
style:
|
|
137
|
+
style: z(b.value ? { top: `${o.headerTop}px` } : void 0)
|
|
126
138
|
}, [
|
|
127
139
|
d("div", {
|
|
128
|
-
class:
|
|
140
|
+
class: s([
|
|
129
141
|
"page-layout__header-bar",
|
|
130
142
|
"flex items-center text-left md:rounded-lg",
|
|
131
|
-
`md:h-[3.5rem] ${
|
|
143
|
+
`md:h-[3.5rem] ${o.maxContentWidth} w-full p-4 md:pl-6`,
|
|
132
144
|
"sm-down:py-6 sm-down:h-[4.5rem]",
|
|
133
|
-
`bg-${
|
|
134
|
-
`text-${
|
|
135
|
-
|
|
145
|
+
`bg-${o.headerBackgroundColor}`,
|
|
146
|
+
`text-${o.headerColor}`,
|
|
147
|
+
o.headerBarClass,
|
|
136
148
|
{
|
|
137
|
-
"md:shadow-[0_0.375rem_0.5rem_0_rgba(0,0,0,0.05)] md:shadow-gray-20":
|
|
149
|
+
"md:shadow-[0_0.375rem_0.5rem_0_rgba(0,0,0,0.05)] md:shadow-gray-20": b.value && (!g.value || o.headerShowShadow)
|
|
138
150
|
}
|
|
139
151
|
])
|
|
140
152
|
}, [
|
|
141
|
-
d("h1",
|
|
142
|
-
|
|
143
|
-
scrolledToTop:
|
|
144
|
-
scrolledToBottom:
|
|
153
|
+
d("h1", ve, [
|
|
154
|
+
m(e.$slots, "header", {
|
|
155
|
+
scrolledToTop: g.value,
|
|
156
|
+
scrolledToBottom: v.value
|
|
145
157
|
}, void 0, !0)
|
|
146
158
|
]),
|
|
147
|
-
|
|
159
|
+
m(e.$slots, "header-actions", {}, void 0, !0)
|
|
148
160
|
], 2)
|
|
149
161
|
], 6),
|
|
150
162
|
d("div", {
|
|
151
163
|
ref_key: "contentRef",
|
|
152
|
-
ref:
|
|
153
|
-
class:
|
|
164
|
+
ref: T,
|
|
165
|
+
class: s([
|
|
154
166
|
"page-layout__content",
|
|
155
167
|
"sm-down:absolute sm-down:left-0 sm-down:right-0",
|
|
156
168
|
"sm-down:overflow-y-auto sm-down:scroll-smooth sm-down:overscroll-none",
|
|
157
|
-
{ "md:pt-[4.5rem]":
|
|
158
|
-
{ "md:mb-[0.5rem]":
|
|
159
|
-
|
|
169
|
+
{ "md:pt-[4.5rem]": b.value },
|
|
170
|
+
{ "md:mb-[0.5rem]": b.value && a.footerVisible },
|
|
171
|
+
o.contentClass
|
|
160
172
|
]),
|
|
161
|
-
style:
|
|
162
|
-
"--sm-top":
|
|
163
|
-
"--sm-bottom":
|
|
164
|
-
"--keyboard-offset": `${
|
|
173
|
+
style: z({
|
|
174
|
+
"--sm-top": w.value ? "0px" : fe,
|
|
175
|
+
"--sm-bottom": a.footerVisible ? he : "0px",
|
|
176
|
+
"--keyboard-offset": `${S.value}px`
|
|
165
177
|
})
|
|
166
178
|
}, [
|
|
167
179
|
d("div", {
|
|
168
|
-
class:
|
|
180
|
+
class: s([
|
|
169
181
|
"page-layout__content-inner",
|
|
170
|
-
{ "md:flex md:gap-4":
|
|
182
|
+
{ "md:flex md:gap-4": f.value }
|
|
171
183
|
])
|
|
172
184
|
}, [
|
|
173
|
-
|
|
185
|
+
f.value && B(u).md ? (C(), x("div", {
|
|
174
186
|
key: 0,
|
|
175
187
|
ref_key: "sidebarRef",
|
|
176
|
-
ref:
|
|
177
|
-
class:
|
|
188
|
+
ref: M,
|
|
189
|
+
class: s([
|
|
178
190
|
"page-layout__sidebar",
|
|
179
191
|
"relative shrink-0 flex flex-col gap-4",
|
|
180
192
|
"md:transition-[width] md:duration-300",
|
|
181
|
-
|
|
182
|
-
{ "!overflow-hidden":
|
|
183
|
-
|
|
193
|
+
D.value,
|
|
194
|
+
{ "!overflow-hidden": t.value },
|
|
195
|
+
o.sidebarClass
|
|
184
196
|
]),
|
|
185
|
-
onMouseenter:
|
|
186
|
-
onMouseleave:
|
|
197
|
+
onMouseenter: l[0] || (l[0] = (i) => V.value = !0),
|
|
198
|
+
onMouseleave: l[1] || (l[1] = (i) => V.value = !1)
|
|
187
199
|
}, [
|
|
188
200
|
d("div", {
|
|
189
|
-
|
|
201
|
+
ref_key: "sidebarInnerRef",
|
|
202
|
+
ref: h,
|
|
203
|
+
class: s([
|
|
190
204
|
"page-layout__sidebar-inner",
|
|
191
|
-
|
|
205
|
+
t.value ? "absolute inset-0 !overflow-hidden" : "fixed overflow-y-auto",
|
|
192
206
|
"z-10 md:pb-6 md:pt-4",
|
|
193
|
-
`bg-${
|
|
194
|
-
!
|
|
207
|
+
`bg-${o.containerBackgroundColor}`,
|
|
208
|
+
!t.value && D.value
|
|
195
209
|
]),
|
|
196
|
-
style:
|
|
197
|
-
top:
|
|
198
|
-
height:
|
|
210
|
+
style: z(t.value ? void 0 : {
|
|
211
|
+
top: ee.value,
|
|
212
|
+
height: oe.value
|
|
199
213
|
})
|
|
200
214
|
}, [
|
|
201
215
|
d("div", {
|
|
202
216
|
ref_key: "sidebarContentRef",
|
|
203
|
-
ref:
|
|
217
|
+
ref: H
|
|
204
218
|
}, [
|
|
205
|
-
|
|
219
|
+
m(e.$slots, "sidebar", {}, void 0, !0)
|
|
206
220
|
], 512)
|
|
207
221
|
], 6),
|
|
208
|
-
|
|
222
|
+
t.value ? (C(), x("div", {
|
|
209
223
|
key: 0,
|
|
210
224
|
class: "absolute inset-0 cursor-pointer rounded-lg bg-white z-10",
|
|
211
|
-
onClick:
|
|
212
|
-
})) :
|
|
213
|
-
|
|
225
|
+
onClick: K
|
|
226
|
+
})) : L("", !0),
|
|
227
|
+
Z.value && (!X.value || V.value || t.value) ? (C(), x("div", {
|
|
214
228
|
key: 1,
|
|
215
|
-
class:
|
|
229
|
+
class: s([
|
|
216
230
|
"page-layout__sidebar-toggle",
|
|
217
231
|
"cursor-pointer fixed z-30",
|
|
218
232
|
"bg-white rounded",
|
|
219
|
-
!
|
|
220
|
-
{ "border border-gray-10": !
|
|
233
|
+
!t.value && "transition-all duration-300 ease-in-out",
|
|
234
|
+
{ "border border-gray-10": !t.value }
|
|
221
235
|
]),
|
|
222
|
-
style:
|
|
223
|
-
|
|
224
|
-
top:
|
|
225
|
-
marginLeft:
|
|
236
|
+
style: z(
|
|
237
|
+
t.value ? I.value : {
|
|
238
|
+
top: te.value,
|
|
239
|
+
marginLeft: B(u).lg ? "22.125rem" : "18.125rem"
|
|
226
240
|
}
|
|
227
241
|
),
|
|
228
|
-
onClick:
|
|
242
|
+
onClick: K
|
|
229
243
|
}, [
|
|
230
|
-
|
|
231
|
-
|
|
244
|
+
m(e.$slots, "sidebar-toggle", { collapsed: t.value }, () => [
|
|
245
|
+
ue(r, {
|
|
232
246
|
icon: "double-chevron-right",
|
|
233
247
|
color: "inkwell-30",
|
|
234
248
|
type: "",
|
|
235
|
-
class:
|
|
249
|
+
class: s([
|
|
236
250
|
"page-layout__sidebar-toggle-icon",
|
|
237
251
|
"w-6 h-6 p-1 text-inkwell-30",
|
|
238
|
-
{ "rotate-180":
|
|
252
|
+
{ "rotate-180": t.value }
|
|
239
253
|
])
|
|
240
254
|
}, null, 8, ["class"])
|
|
241
255
|
], !0)
|
|
242
|
-
], 6)) :
|
|
243
|
-
], 34)) :
|
|
256
|
+
], 6)) : L("", !0)
|
|
257
|
+
], 34)) : L("", !0),
|
|
244
258
|
d("div", {
|
|
245
|
-
class:
|
|
259
|
+
class: s([
|
|
246
260
|
"page-layout__main",
|
|
247
261
|
"block w-full grow leading-normal",
|
|
248
|
-
{ "md:mb-4":
|
|
249
|
-
|
|
262
|
+
{ "md:mb-4": f.value },
|
|
263
|
+
o.mainClass
|
|
250
264
|
])
|
|
251
265
|
}, [
|
|
252
|
-
|
|
253
|
-
sidebarCollapsed:
|
|
254
|
-
scrolledToTop:
|
|
255
|
-
scrolledToBottom:
|
|
266
|
+
m(e.$slots, "default", {
|
|
267
|
+
sidebarCollapsed: t.value,
|
|
268
|
+
scrolledToTop: g.value,
|
|
269
|
+
scrolledToBottom: v.value
|
|
256
270
|
}, void 0, !0)
|
|
257
271
|
], 2)
|
|
258
272
|
], 2)
|
|
259
273
|
], 6),
|
|
260
|
-
|
|
261
|
-
|
|
274
|
+
m(e.$slots, "overlay", {}, void 0, !0),
|
|
275
|
+
a.footerVisible ? (C(), x("div", {
|
|
262
276
|
key: 0,
|
|
263
|
-
class:
|
|
277
|
+
class: s([
|
|
264
278
|
"page-layout__footer",
|
|
265
279
|
"fixed bottom-0 left-0 right-0 z-20 justify-center",
|
|
266
|
-
`bg-${
|
|
267
|
-
|
|
280
|
+
`bg-${o.footerBackgroundColor}`,
|
|
281
|
+
B(u).md ? "overflow-visible h-0 w-full px-6 flex" : "py-6 px-4 bg-white border-t border-gray-20 flex gap-4 sm-down:absolute sm-down:!py-4"
|
|
268
282
|
])
|
|
269
283
|
}, [
|
|
270
|
-
|
|
284
|
+
B(u).md ? (C(), x("div", {
|
|
271
285
|
key: 0,
|
|
272
|
-
class:
|
|
286
|
+
class: s([
|
|
273
287
|
"flex gap-4 items-end h-0 overflow-visible margin-x-auto w-full",
|
|
274
|
-
|
|
288
|
+
o.maxContentWidth
|
|
275
289
|
])
|
|
276
290
|
}, [
|
|
277
291
|
d("div", {
|
|
278
|
-
class:
|
|
292
|
+
class: s([
|
|
279
293
|
"shrink-0 w-0 transition-[width] duration-300",
|
|
280
|
-
|
|
294
|
+
f.value ? D.value : "hidden"
|
|
281
295
|
])
|
|
282
296
|
}, null, 2),
|
|
283
297
|
d("div", {
|
|
284
|
-
class:
|
|
298
|
+
class: s([
|
|
285
299
|
"grow pb-6 rounded-t-lg",
|
|
286
|
-
`bg-${
|
|
300
|
+
`bg-${o.containerBackgroundColor}`
|
|
287
301
|
])
|
|
288
302
|
}, [
|
|
289
303
|
d("div", {
|
|
290
|
-
class:
|
|
304
|
+
class: s([
|
|
291
305
|
"page-layout__footer-bar",
|
|
292
306
|
"flex items-center justify-center gap-4",
|
|
293
307
|
"left-auto right-auto py-4",
|
|
294
308
|
"rounded-lg shadow-[0_-2px_5px_0_rgba(0,0,0,0.05)] shadow-gray-10",
|
|
295
|
-
`bg-${
|
|
296
|
-
{ "shadow-none":
|
|
297
|
-
|
|
309
|
+
`bg-${o.footerBackgroundColor}`,
|
|
310
|
+
{ "shadow-none": v.value },
|
|
311
|
+
o.footerBarClass
|
|
298
312
|
])
|
|
299
313
|
}, [
|
|
300
|
-
|
|
314
|
+
m(e.$slots, "footer", { scrolledToBottom: v.value }, void 0, !0)
|
|
301
315
|
], 2)
|
|
302
316
|
], 2)
|
|
303
|
-
], 2)) :
|
|
317
|
+
], 2)) : m(e.$slots, "footer", {
|
|
304
318
|
key: 1,
|
|
305
|
-
scrolledToBottom:
|
|
319
|
+
scrolledToBottom: v.value
|
|
306
320
|
}, void 0, !0)
|
|
307
|
-
], 2)) :
|
|
321
|
+
], 2)) : L("", !0)
|
|
308
322
|
], 2);
|
|
309
323
|
};
|
|
310
324
|
}
|
|
311
325
|
});
|
|
312
326
|
export {
|
|
313
|
-
|
|
327
|
+
ye as default
|
|
314
328
|
};
|
package/dist/index147.js
CHANGED
|
@@ -175,7 +175,7 @@ const Pt = 996, Zt = It({
|
|
|
175
175
|
const { t: c } = Ot(), Te = () => {
|
|
176
176
|
const e = /* @__PURE__ */ new Date(), t = e.getHours() * 60 + e.getMinutes(), a = Math.round(t / 15) * 15, o = Math.floor(a / 60) % 24, n = a % 60, r = o >= 12 ? "PM" : "AM";
|
|
177
177
|
return `${o % 12 || 12}:${String(n).padStart(2, "0")} ${r}`;
|
|
178
|
-
}, De = "11:59 PM", l = i(
|
|
178
|
+
}, De = "11:59 PM", l = i(s.room), ie = i(!1), ue = i("left"), Z = i([
|
|
179
179
|
{
|
|
180
180
|
id: 1,
|
|
181
181
|
label: c("HC_DEPARTMENT")
|