@zealsolutions/zeal-ui 1.0.0-alpha.100
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 +29 -0
- package/dist/BaseDropdownButton-D4GSZKdk.js +43 -0
- package/dist/BaseOverlay-aTh6_ssu.js +21 -0
- package/dist/BaseTooltip-CcnCHpL4.js +53 -0
- package/dist/ChevronDownIcon-De0Ga7A4.js +23 -0
- package/dist/ChevronRightIcon-Be-vxVtQ.js +95 -0
- package/dist/CircleExclamationIcon-CVpIK7Mu.js +23 -0
- package/dist/CircleStatusIcon-CRoBchKs.js +46 -0
- package/dist/CloseButton-BsjhPDWi.js +19 -0
- package/dist/DropdownMenuTextItem-BYGt1jLy.js +1813 -0
- package/dist/InfiniteScroll-CgeGewSV.js +498 -0
- package/dist/InputField-CxSec0eW.js +59 -0
- package/dist/NavigationMenuNotification-C_z9naik.js +452 -0
- package/dist/NotificationIcon-CxO6DGyQ.js +191 -0
- package/dist/OpacityScaleTransition-CtMzqccC.js +26 -0
- package/dist/OpacityTransition-D4EuhJnX.js +26 -0
- package/dist/OpacityTranslateTransition-fF3EnRwC.js +32 -0
- package/dist/ProclusLogo-BAHzwRvI.js +81 -0
- package/dist/TranslateTransition-iGQAQ66h.js +32 -0
- package/dist/TruncateText-BOyOYUV6.js +61 -0
- package/dist/XMarkIcon-Ba-nxo3h.js +23 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/components/buttons/index.js +68 -0
- package/dist/components/forms/index.js +118 -0
- package/dist/components/icons/index.js +1416 -0
- package/dist/components/inputs/index.js +360 -0
- package/dist/components/layouts/index.js +118 -0
- package/dist/components/logos/index.js +468 -0
- package/dist/components/menus/index.js +304 -0
- package/dist/components/modals/index.js +212 -0
- package/dist/components/navigation/index.js +9 -0
- package/dist/components/overlays/index.js +4 -0
- package/dist/components/tooltips/index.js +4 -0
- package/dist/components/transitions/index.js +10 -0
- package/dist/components/utils/index.js +6 -0
- package/dist/config/tailwind/index.js +354 -0
- package/dist/css/base.css +185 -0
- package/dist/css/typography.css +43 -0
- package/dist/favicon.ico +0 -0
- package/dist/fonts/montserrat/JTUQjIg1_i6t8kCHKm459WxRxC7mw9c.woff2 +0 -0
- package/dist/fonts/montserrat/JTUQjIg1_i6t8kCHKm459WxRxi7mw9c.woff2 +0 -0
- package/dist/fonts/montserrat/JTUQjIg1_i6t8kCHKm459WxRxy7mw9c.woff2 +0 -0
- package/dist/fonts/montserrat/JTUQjIg1_i6t8kCHKm459WxRyS7m.woff2 +0 -0
- package/dist/fonts/montserrat/JTUQjIg1_i6t8kCHKm459WxRzS7mw9c.woff2 +0 -0
- package/dist/fonts/montserrat/JTUSjIg1_i6t8kCHKm459W1hyzbi.woff2 +0 -0
- package/dist/fonts/montserrat/JTUSjIg1_i6t8kCHKm459WRhyzbi.woff2 +0 -0
- package/dist/fonts/montserrat/JTUSjIg1_i6t8kCHKm459WZhyzbi.woff2 +0 -0
- package/dist/fonts/montserrat/JTUSjIg1_i6t8kCHKm459Wdhyzbi.woff2 +0 -0
- package/dist/fonts/montserrat/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2 +0 -0
- package/dist/fonts/unna/AYCEpXzofN0NOp8LlQ.woff2 +0 -0
- package/dist/fonts/unna/AYCEpXzofN0NOpELlVHC.woff2 +0 -0
- package/dist/fonts/unna/AYCJpXzofN0NOpozLGzTR3Jv.woff2 +0 -0
- package/dist/fonts/unna/AYCJpXzofN0NOpozLGzTSXJv_vc.woff2 +0 -0
- package/dist/fonts/unna/AYCKpXzofN0NOpo7l0nG.woff2 +0 -0
- package/dist/fonts/unna/AYCKpXzofN0NOpo7mUnGeFM.woff2 +0 -0
- package/dist/fonts/unna/AYCLpXzofN0NMiQugG7jRQ.woff2 +0 -0
- package/dist/fonts/unna/AYCLpXzofN0NMiQugGDjRWpr.woff2 +0 -0
- package/package.json +83 -0
|
@@ -0,0 +1,360 @@
|
|
|
1
|
+
import { computed as L, openBlock as o, createElementBlock as i, normalizeClass as D, toDisplayString as b, Fragment as v, createElementVNode as a, renderList as $, createVNode as x, unref as g, mergeModels as y, useModel as k, ref as _, renderSlot as V, createCommentVNode as C, onMounted as N, createBlock as w, withCtx as B } from "vue";
|
|
2
|
+
import { C as M, a as F, b as I, U as q, F as E } from "../../ChevronRightIcon-Be-vxVtQ.js";
|
|
3
|
+
import { C as U } from "../../CircleExclamationIcon-CVpIK7Mu.js";
|
|
4
|
+
import { _ as de } from "../../InputField-CxSec0eW.js";
|
|
5
|
+
const T = {
|
|
6
|
+
__name: "DateCell",
|
|
7
|
+
props: {
|
|
8
|
+
cellNumber: {
|
|
9
|
+
type: Number,
|
|
10
|
+
required: !0
|
|
11
|
+
},
|
|
12
|
+
disabled: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
default: !1
|
|
15
|
+
},
|
|
16
|
+
isCurrentDay: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: !1
|
|
19
|
+
},
|
|
20
|
+
isSelected: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: !1
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
emits: ["selectDay"],
|
|
26
|
+
setup(t, { emit: s }) {
|
|
27
|
+
const e = t, p = L(() => e.isSelected ? "bg-app-950 text-white cursor-pointer" : e.isCurrentDay ? "bg-black-950 text-white cursor-pointer hover:bg-app-300 hover:text-black-950" : e.disabled ? "bg-steel-200 text-steel-800 cursor-not-allowed" : "bg-white text-black-950 cursor-pointer hover:bg-app-300 hover:text-black-950"), n = s;
|
|
28
|
+
return (r, c) => (o(), i("div", {
|
|
29
|
+
class: D(["flex flex-wrap justify-center content-center text-style-label-small size-[40px] p-[5px] border-steel-400 border-l-[1px] first-of-type:border-none", p.value]),
|
|
30
|
+
onClick: c[0] || (c[0] = (d) => t.disabled ? null : n("selectDay"))
|
|
31
|
+
}, b(t.cellNumber), 3));
|
|
32
|
+
}
|
|
33
|
+
}, z = { class: "flex flex-row" }, J = { class: "text-steel-800 text-center h-4 text-style-label-small mb-[15px] w-[40px]" }, O = { class: "rounded-[10px] bg-white w-fit" }, Y = { class: "flex flex-row border-t-[1px] border-steel-400 border-l-[1px] border-r-[1px] first-of-type:rounded-t-[10px] last-of-type:border-b-[1px] last-of-type:rounded-b-[10px] overflow-hidden" }, j = {
|
|
34
|
+
__name: "DateGrid",
|
|
35
|
+
props: {
|
|
36
|
+
year: {
|
|
37
|
+
type: Number,
|
|
38
|
+
required: !0
|
|
39
|
+
},
|
|
40
|
+
month: {
|
|
41
|
+
type: Number,
|
|
42
|
+
required: !0
|
|
43
|
+
},
|
|
44
|
+
rows: {
|
|
45
|
+
type: Number,
|
|
46
|
+
required: !1,
|
|
47
|
+
default: 6
|
|
48
|
+
},
|
|
49
|
+
selectedDate: {
|
|
50
|
+
type: Date,
|
|
51
|
+
required: !1,
|
|
52
|
+
default: null
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
emits: ["selectDay"],
|
|
56
|
+
setup(t, { emit: s }) {
|
|
57
|
+
const e = t, p = ["M", "T", "W", "T", "F", "S", "S"], n = new Date(e.year, e.month, 1).getDay() - 1 == -1 ? 6 : new Date(e.year, e.month, 1).getDay() - 1, r = new Date(e.year, e.month + 1, 0).getDate(), c = new Date(e.year, e.month, 0).getDate(), d = (f, m) => (f - 1) * 7 + m - n, h = (f, m) => {
|
|
58
|
+
var l = (f - 1) * 7 + m - n;
|
|
59
|
+
return l < 1 ? c + l : l > r ? l - r : l;
|
|
60
|
+
};
|
|
61
|
+
return (f, m) => (o(), i(v, null, [
|
|
62
|
+
a("div", z, [
|
|
63
|
+
(o(), i(v, null, $(p, (l) => a("div", J, b(l), 1)), 64))
|
|
64
|
+
]),
|
|
65
|
+
a("div", O, [
|
|
66
|
+
(o(!0), i(v, null, $(t.rows, (l) => (o(), i("div", Y, [
|
|
67
|
+
(o(), i(v, null, $(7, (u) => x(T, {
|
|
68
|
+
cellNumber: h(l, u),
|
|
69
|
+
disabled: d(l, u) < 1 || d(l, u) > g(r),
|
|
70
|
+
onSelectDay: (S) => f.$emit("selectDay", new Date(e.year, e.month, h(l, u))),
|
|
71
|
+
isCurrentDay: d(l, u) == (/* @__PURE__ */ new Date()).getDate() && e.month == (/* @__PURE__ */ new Date()).getMonth() && e.year == (/* @__PURE__ */ new Date()).getFullYear(),
|
|
72
|
+
isSelected: t.selectedDate && t.selectedDate.getDate() == h(l, u) && t.selectedDate.getMonth() == e.month && t.selectedDate.getFullYear() == e.year && d(l, u) > 0 && d(l, u) <= g(r)
|
|
73
|
+
}, null, 8, ["cellNumber", "disabled", "onSelectDay", "isCurrentDay", "isSelected"])), 64))
|
|
74
|
+
]))), 256))
|
|
75
|
+
])
|
|
76
|
+
], 64));
|
|
77
|
+
}
|
|
78
|
+
}, A = { class: "flex flex-col w-full" }, P = { class: "flex flex-row mb-[15px] justify-between items-center" }, Z = { class: "text-style-label" }, G = {
|
|
79
|
+
__name: "DatePicker",
|
|
80
|
+
props: /* @__PURE__ */ y({
|
|
81
|
+
year: {
|
|
82
|
+
type: Number,
|
|
83
|
+
required: !1,
|
|
84
|
+
default: (/* @__PURE__ */ new Date()).getFullYear()
|
|
85
|
+
},
|
|
86
|
+
month: {
|
|
87
|
+
type: Number,
|
|
88
|
+
required: !1,
|
|
89
|
+
default: (/* @__PURE__ */ new Date()).getMonth()
|
|
90
|
+
}
|
|
91
|
+
}, {
|
|
92
|
+
modelValue: {},
|
|
93
|
+
modelModifiers: {}
|
|
94
|
+
}),
|
|
95
|
+
emits: ["update:modelValue"],
|
|
96
|
+
setup(t) {
|
|
97
|
+
const s = t, e = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], p = k(t, "modelValue"), n = (l) => {
|
|
98
|
+
p.value = l;
|
|
99
|
+
};
|
|
100
|
+
var r = s.month, c = s.year;
|
|
101
|
+
const d = _(!1), h = _(0), f = (l) => {
|
|
102
|
+
r += l, r < 0 && (r = 11, c -= 1), r > 11 && (r = 0, c += 1), h.value++;
|
|
103
|
+
}, m = () => {
|
|
104
|
+
d.value = !d.value;
|
|
105
|
+
};
|
|
106
|
+
return (l, u) => (o(), i("div", A, [
|
|
107
|
+
V(l.$slots, "button", { openCalendar: m }, () => [
|
|
108
|
+
x(M, {
|
|
109
|
+
class: "text-steel-950 cursor-pointer",
|
|
110
|
+
onClick: m
|
|
111
|
+
})
|
|
112
|
+
]),
|
|
113
|
+
d.value ? (o(), i("div", {
|
|
114
|
+
class: "w-[310px] p-[15px] rounded-[20px] shadow-[0_2px_4px_0_rgba(0,0,0,0.12),0_2px_10px_0_rgba(0,0,0,0.12)] mt-12 absolute z-50 bg-white",
|
|
115
|
+
key: h.value
|
|
116
|
+
}, [
|
|
117
|
+
a("div", P, [
|
|
118
|
+
x(F, {
|
|
119
|
+
class: "text-steel-800 cursor-pointer",
|
|
120
|
+
onClick: u[0] || (u[0] = (S) => f(-1))
|
|
121
|
+
}),
|
|
122
|
+
a("p", Z, b(e[g(r)]) + " " + b(g(c)), 1),
|
|
123
|
+
x(I, {
|
|
124
|
+
class: "text-steel-800 cursor-pointer",
|
|
125
|
+
onClick: u[1] || (u[1] = (S) => f(1))
|
|
126
|
+
})
|
|
127
|
+
]),
|
|
128
|
+
x(j, {
|
|
129
|
+
year: g(c),
|
|
130
|
+
month: g(r),
|
|
131
|
+
onSelectDay: n,
|
|
132
|
+
selectedDate: p.value
|
|
133
|
+
}, null, 8, ["year", "month", "selectedDate"])
|
|
134
|
+
])) : C("", !0)
|
|
135
|
+
]));
|
|
136
|
+
}
|
|
137
|
+
}, H = { class: "relative flex flex-1 shrink-0 gap-x-2 px-4 text-style-input items-center h-10 rounded-[20px] ring-1 ring-inset focus-within:ring-2 focus-within:outline-none ring-steel-500 focus-within:bg-app-100 focus-within:ring-app-950 text-black-950 w-full p-2" }, K = ["onClick"], oe = {
|
|
138
|
+
__name: "DateInput",
|
|
139
|
+
props: /* @__PURE__ */ y({
|
|
140
|
+
disabled: {
|
|
141
|
+
type: Boolean,
|
|
142
|
+
default: !1
|
|
143
|
+
},
|
|
144
|
+
date: {
|
|
145
|
+
type: Date,
|
|
146
|
+
default: null
|
|
147
|
+
}
|
|
148
|
+
}, {
|
|
149
|
+
modelValue: {},
|
|
150
|
+
modelModifiers: {}
|
|
151
|
+
}),
|
|
152
|
+
emits: ["update:modelValue"],
|
|
153
|
+
setup(t) {
|
|
154
|
+
const s = t, e = k(t, "modelValue");
|
|
155
|
+
return N(() => {
|
|
156
|
+
s.date && (e.value = s.date);
|
|
157
|
+
}), (p, n) => (o(), w(G, {
|
|
158
|
+
modelValue: e.value,
|
|
159
|
+
"onUpdate:modelValue": n[0] || (n[0] = (r) => e.value = r)
|
|
160
|
+
}, {
|
|
161
|
+
button: B(({ openCalendar: r }) => [
|
|
162
|
+
a("div", H, [
|
|
163
|
+
x(M, {
|
|
164
|
+
class: "text-steel-950 cursor-pointer",
|
|
165
|
+
onClick: r
|
|
166
|
+
}, null, 8, ["onClick"]),
|
|
167
|
+
a("button", {
|
|
168
|
+
type: "button",
|
|
169
|
+
onClick: r,
|
|
170
|
+
class: D(["flex-1 shrink-0 text-nowrap border-0 bg-transparent pl-0 ring-0 focus:ring-0 outline-none focus:outline-none text-left", t.disabled ? "cursor-not-allowed text-steel-800 pointer-events-none" : "text-steel-950"])
|
|
171
|
+
}, b(e.value ? e.value.toDateString() : "Select a date"), 11, K)
|
|
172
|
+
])
|
|
173
|
+
]),
|
|
174
|
+
_: 1
|
|
175
|
+
}, 8, ["modelValue"]));
|
|
176
|
+
}
|
|
177
|
+
}, R = ["id", "multiple", "accept"], W = ["for"], Q = ["name"], se = {
|
|
178
|
+
__name: "FileUpload",
|
|
179
|
+
props: /* @__PURE__ */ y({
|
|
180
|
+
hasError: {
|
|
181
|
+
type: Boolean,
|
|
182
|
+
default: !1
|
|
183
|
+
},
|
|
184
|
+
label: {
|
|
185
|
+
type: String,
|
|
186
|
+
default: ""
|
|
187
|
+
},
|
|
188
|
+
placeholder: {
|
|
189
|
+
type: String,
|
|
190
|
+
default: "Upload file"
|
|
191
|
+
},
|
|
192
|
+
disabled: {
|
|
193
|
+
type: Boolean,
|
|
194
|
+
default: !1
|
|
195
|
+
},
|
|
196
|
+
multiple: {
|
|
197
|
+
type: Boolean,
|
|
198
|
+
default: !1
|
|
199
|
+
},
|
|
200
|
+
image: {
|
|
201
|
+
type: Boolean,
|
|
202
|
+
default: !1
|
|
203
|
+
}
|
|
204
|
+
}, {
|
|
205
|
+
modelValue: {},
|
|
206
|
+
modelModifiers: {}
|
|
207
|
+
}),
|
|
208
|
+
emits: /* @__PURE__ */ y(["blur"], ["update:modelValue"]),
|
|
209
|
+
setup(t, { emit: s }) {
|
|
210
|
+
const e = t, p = s, n = k(t, "modelValue"), r = () => {
|
|
211
|
+
p("blur");
|
|
212
|
+
}, c = Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15), d = (m) => {
|
|
213
|
+
n.value = m.target.files;
|
|
214
|
+
}, h = L(() => e.multiple && n.value && n.value.length > 1 ? `${n.value.length} files selected` : n.value ? n.value[0].name : e.placeholder), f = L(() => e.hasError && !e.disabled ? "ring-error-950 focus-within:bg-error-100 focus-within:ring-error-950 text-error-950" : e.disabled ? "ring-steel-500 bg-steel-100 cursor-not-allowed" : "ring-steel-500 focus-within:bg-app-100 focus-within:ring-app-950 text-black-950");
|
|
215
|
+
return (m, l) => (o(), i("div", {
|
|
216
|
+
class: D(["relative flex flex-1 gap-x-2 px-4 text-style-input items-center h-10 rounded-[20px] ring-1 ring-inset focus-within:ring-2 focus-within:outline-none", f.value])
|
|
217
|
+
}, [
|
|
218
|
+
h.value == e.placeholder ? (o(), w(q, {
|
|
219
|
+
key: 0,
|
|
220
|
+
class: "text-steel-950"
|
|
221
|
+
})) : (o(), w(E, {
|
|
222
|
+
key: 1,
|
|
223
|
+
class: "text-steel-950"
|
|
224
|
+
})),
|
|
225
|
+
a("input", {
|
|
226
|
+
type: "file",
|
|
227
|
+
id: "file-upload" + c,
|
|
228
|
+
hidden: "",
|
|
229
|
+
multiple: t.multiple,
|
|
230
|
+
accept: t.image ? "image/*" : "",
|
|
231
|
+
onChange: d
|
|
232
|
+
}, null, 40, R),
|
|
233
|
+
a("label", {
|
|
234
|
+
for: "file-upload" + c,
|
|
235
|
+
class: "cursor-pointer"
|
|
236
|
+
}, [
|
|
237
|
+
a("button", {
|
|
238
|
+
type: "button",
|
|
239
|
+
name: t.label,
|
|
240
|
+
onBlur: r,
|
|
241
|
+
class: D(["flex-1 border-0 bg-transparent pl-0 ring-0 focus:ring-0 outline-none focus:outline-none pointer-events-none", t.disabled ? "cursor-not-allowed text-steel-800 pointer-events-none" : "text-steel-950"])
|
|
242
|
+
}, b(h.value), 43, Q)
|
|
243
|
+
], 8, W),
|
|
244
|
+
t.hasError ? (o(), w(U, {
|
|
245
|
+
key: 2,
|
|
246
|
+
class: "absolute top-1/2 -translate-y-1/2 right-3 scale-[0.8182] pointer-events-none text-error-950"
|
|
247
|
+
})) : C("", !0)
|
|
248
|
+
], 2));
|
|
249
|
+
}
|
|
250
|
+
}, X = { class: "flex items-center gap-x-2" }, ee = {
|
|
251
|
+
key: 0,
|
|
252
|
+
class: "text-style-label"
|
|
253
|
+
}, te = { class: "text-app-950" }, le = {
|
|
254
|
+
key: 1,
|
|
255
|
+
class: "text-style-label"
|
|
256
|
+
}, ie = {
|
|
257
|
+
__name: "ToggleSwitch",
|
|
258
|
+
props: /* @__PURE__ */ y({
|
|
259
|
+
useLabels: {
|
|
260
|
+
type: Boolean,
|
|
261
|
+
default: !1
|
|
262
|
+
},
|
|
263
|
+
leftLabel: {
|
|
264
|
+
type: String,
|
|
265
|
+
default: "Off"
|
|
266
|
+
},
|
|
267
|
+
rightLabel: {
|
|
268
|
+
type: String,
|
|
269
|
+
default: "On"
|
|
270
|
+
}
|
|
271
|
+
}, {
|
|
272
|
+
modelValue: {},
|
|
273
|
+
modelModifiers: {}
|
|
274
|
+
}),
|
|
275
|
+
emits: ["update:modelValue"],
|
|
276
|
+
setup(t) {
|
|
277
|
+
const s = k(t, "modelValue");
|
|
278
|
+
function e() {
|
|
279
|
+
s.value = !s.value;
|
|
280
|
+
}
|
|
281
|
+
return (p, n) => (o(), i("div", X, [
|
|
282
|
+
t.useLabels && t.leftLabel != "" ? (o(), i("div", ee, b(t.leftLabel), 1)) : C("", !0),
|
|
283
|
+
a("div", te, [
|
|
284
|
+
s.value ? (o(), i("svg", {
|
|
285
|
+
key: 1,
|
|
286
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
287
|
+
width: "64",
|
|
288
|
+
height: "32",
|
|
289
|
+
viewBox: "0 0 64 32",
|
|
290
|
+
fill: "none",
|
|
291
|
+
class: "cursor-pointer",
|
|
292
|
+
onClick: e
|
|
293
|
+
}, n[1] || (n[1] = [
|
|
294
|
+
a("rect", {
|
|
295
|
+
x: "4",
|
|
296
|
+
y: "4",
|
|
297
|
+
width: "56",
|
|
298
|
+
height: "24",
|
|
299
|
+
rx: "12",
|
|
300
|
+
fill: "currentColor"
|
|
301
|
+
}, null, -1),
|
|
302
|
+
a("rect", {
|
|
303
|
+
x: "1",
|
|
304
|
+
y: "1",
|
|
305
|
+
width: "62",
|
|
306
|
+
height: "30",
|
|
307
|
+
rx: "15",
|
|
308
|
+
stroke: "currentColor",
|
|
309
|
+
"stroke-width": "2"
|
|
310
|
+
}, null, -1),
|
|
311
|
+
a("circle", {
|
|
312
|
+
cx: "48",
|
|
313
|
+
cy: "15.88",
|
|
314
|
+
r: "10",
|
|
315
|
+
fill: "white"
|
|
316
|
+
}, null, -1),
|
|
317
|
+
a("path", {
|
|
318
|
+
d: "M52.8427 12.1807C53.0524 12.4217 53.0524 12.8113 52.8427 13.0497L46.9511 19.8193C46.7414 20.0602 46.4021 20.0602 46.1946 19.8193L43.1573 16.3332C42.9476 16.0923 42.9476 15.7027 43.1573 15.4643C43.3671 15.2259 43.7063 15.2233 43.9139 15.4643L46.5695 18.5146L52.0839 12.1807C52.2937 11.9398 52.6329 11.9398 52.8404 12.1807H52.8427Z",
|
|
319
|
+
fill: "currentColor"
|
|
320
|
+
}, null, -1)
|
|
321
|
+
]))) : (o(), i("svg", {
|
|
322
|
+
key: 0,
|
|
323
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
324
|
+
width: "64",
|
|
325
|
+
height: "32",
|
|
326
|
+
viewBox: "0 0 64 32",
|
|
327
|
+
fill: "none",
|
|
328
|
+
class: "cursor-pointer",
|
|
329
|
+
onClick: e
|
|
330
|
+
}, n[0] || (n[0] = [
|
|
331
|
+
a("rect", {
|
|
332
|
+
x: "4",
|
|
333
|
+
y: "4",
|
|
334
|
+
width: "56",
|
|
335
|
+
height: "24",
|
|
336
|
+
rx: "12",
|
|
337
|
+
fill: "#C8CDD1"
|
|
338
|
+
}, null, -1),
|
|
339
|
+
a("circle", {
|
|
340
|
+
cx: "16",
|
|
341
|
+
cy: "15.88",
|
|
342
|
+
r: "10",
|
|
343
|
+
fill: "white"
|
|
344
|
+
}, null, -1),
|
|
345
|
+
a("path", {
|
|
346
|
+
d: "M19.8238 13.0259C20.0587 12.791 20.0587 12.4111 19.8238 12.1787C19.5889 11.9463 19.209 11.9438 18.9766 12.1787L16.0025 15.1528L13.0259 12.1762C12.791 11.9413 12.4111 11.9413 12.1787 12.1762C11.9463 12.4111 11.9438 12.791 12.1787 13.0234L15.1528 15.9975L12.1762 18.9741C11.9413 19.209 11.9413 19.5889 12.1762 19.8213C12.4111 20.0537 12.791 20.0562 13.0234 19.8213L15.9975 16.8472L18.9741 19.8238C19.209 20.0587 19.5889 20.0587 19.8213 19.8238C20.0537 19.5889 20.0562 19.209 19.8213 18.9766L16.8472 16.0025L19.8238 13.0259Z",
|
|
347
|
+
fill: "#76838D"
|
|
348
|
+
}, null, -1)
|
|
349
|
+
])))
|
|
350
|
+
]),
|
|
351
|
+
t.useLabels && t.rightLabel != "" ? (o(), i("div", le, b(t.rightLabel), 1)) : C("", !0)
|
|
352
|
+
]));
|
|
353
|
+
}
|
|
354
|
+
};
|
|
355
|
+
export {
|
|
356
|
+
oe as DateInput,
|
|
357
|
+
se as FileUpload,
|
|
358
|
+
de as InputField,
|
|
359
|
+
ie as ToggleSwitch
|
|
360
|
+
};
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { ref as p, openBlock as l, createElementBlock as c, renderSlot as n, createBlock as u, createCommentVNode as s, createVNode as i, withCtx as d, unref as x, createElementVNode as t, normalizeStyle as b } from "vue";
|
|
2
|
+
import { B as k } from "../../NotificationIcon-CxO6DGyQ.js";
|
|
3
|
+
import { e as g, _ as y, c as w, d as B } from "../../NavigationMenuNotification-C_z9naik.js";
|
|
4
|
+
import { _ as C } from "../../BaseOverlay-aTh6_ssu.js";
|
|
5
|
+
import { _ as $ } from "../../OpacityTransition-D4EuhJnX.js";
|
|
6
|
+
import { u as N, b as S } from "../../InfiniteScroll-CgeGewSV.js";
|
|
7
|
+
const q = { class: "relative flex flex-col-reverse sm:flex-row w-screen h-screen sm:min-h-screen bg-app-950" }, A = { class: "flex flex-col w-full h-[calc(100%-60px)] overflow-x-hidden bg-white sm:h-screen" }, I = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "flex h-[60px] sm:h-20 xl:h-[105px] bg-white border-b border-steel-500 w-full justify-between select-none"
|
|
10
|
+
}, V = { class: "flex flex-1 justify-between" }, _ = { class: "flex-1 overflow-y-scroll" }, z = {
|
|
11
|
+
__name: "AppLayout",
|
|
12
|
+
props: {
|
|
13
|
+
menuItems: {
|
|
14
|
+
type: Array,
|
|
15
|
+
required: !0
|
|
16
|
+
},
|
|
17
|
+
navActiveItemBackgroundColour: {
|
|
18
|
+
type: String,
|
|
19
|
+
required: !1
|
|
20
|
+
},
|
|
21
|
+
navActiveItemTextColour: {
|
|
22
|
+
type: String,
|
|
23
|
+
required: !1
|
|
24
|
+
},
|
|
25
|
+
navBackgroundColour: {
|
|
26
|
+
type: String,
|
|
27
|
+
required: !1
|
|
28
|
+
},
|
|
29
|
+
currentPath: {
|
|
30
|
+
type: String,
|
|
31
|
+
default: "/"
|
|
32
|
+
},
|
|
33
|
+
hideSideNavigation: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
required: !1,
|
|
36
|
+
default: !1
|
|
37
|
+
},
|
|
38
|
+
hideHeader: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
required: !1,
|
|
41
|
+
default: !1
|
|
42
|
+
},
|
|
43
|
+
hideMenubar: {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
required: !1,
|
|
46
|
+
default: !1
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
setup(e) {
|
|
50
|
+
const m = N(S).between("sm", "xl"), a = p(!1), f = () => {
|
|
51
|
+
a.value = !0;
|
|
52
|
+
}, v = () => {
|
|
53
|
+
a.value = !1;
|
|
54
|
+
};
|
|
55
|
+
return (o, r) => (l(), c("div", q, [
|
|
56
|
+
n(o.$slots, "side-navigation", {}, () => [
|
|
57
|
+
e.hideSideNavigation ? s("", !0) : (l(), u(g, {
|
|
58
|
+
key: 0,
|
|
59
|
+
modelValue: a.value,
|
|
60
|
+
"onUpdate:modelValue": r[0] || (r[0] = (h) => a.value = h),
|
|
61
|
+
"menu-items": e.menuItems,
|
|
62
|
+
"nav-active-item-background-colour": e.navActiveItemBackgroundColour,
|
|
63
|
+
"nav-active-item-text-colour": e.navActiveItemTextColour,
|
|
64
|
+
"nav-background-colour": e.navBackgroundColour,
|
|
65
|
+
"current-path": e.currentPath
|
|
66
|
+
}, null, 8, ["modelValue", "menu-items", "nav-active-item-background-colour", "nav-active-item-text-colour", "nav-background-colour", "current-path"]))
|
|
67
|
+
]),
|
|
68
|
+
i($, null, {
|
|
69
|
+
default: d(() => [
|
|
70
|
+
x(m) && a.value ? (l(), u(C, {
|
|
71
|
+
key: 0,
|
|
72
|
+
onClose: v
|
|
73
|
+
})) : s("", !0)
|
|
74
|
+
]),
|
|
75
|
+
_: 1
|
|
76
|
+
}),
|
|
77
|
+
t("div", A, [
|
|
78
|
+
e.hideHeader ? s("", !0) : (l(), c("header", I, [
|
|
79
|
+
t("div", {
|
|
80
|
+
class: "hidden pb-8 pt-4 px-4 w-[80px] sm:flex xl:hidden bg-app-950",
|
|
81
|
+
style: b(e.navBackgroundColour ? `background: ${e.navBackgroundColour}` : "")
|
|
82
|
+
}, [
|
|
83
|
+
t("button", {
|
|
84
|
+
type: "button",
|
|
85
|
+
class: "flex w-12 h-12 rounded-md items-center justify-center",
|
|
86
|
+
onClick: f
|
|
87
|
+
}, [
|
|
88
|
+
i(k, { class: "scale-[0.8182] text-white" })
|
|
89
|
+
])
|
|
90
|
+
], 4),
|
|
91
|
+
t("div", V, [
|
|
92
|
+
n(o.$slots, "header", {}, () => [
|
|
93
|
+
r[1] || (r[1] = t("div", null, null, -1))
|
|
94
|
+
]),
|
|
95
|
+
e.hideMenubar ? s("", !0) : (l(), u(y, {
|
|
96
|
+
key: 0,
|
|
97
|
+
role: "menubar",
|
|
98
|
+
menuClasses: "flex h-full items-center space-x-2 px-4"
|
|
99
|
+
}, {
|
|
100
|
+
default: d(() => [
|
|
101
|
+
i(w, { class: "text-steel-900 hover:text-app-950" }),
|
|
102
|
+
n(o.$slots, "header-menu"),
|
|
103
|
+
i(B, { class: "text-steel-900 hover:text-app-950" })
|
|
104
|
+
]),
|
|
105
|
+
_: 3
|
|
106
|
+
}))
|
|
107
|
+
])
|
|
108
|
+
])),
|
|
109
|
+
t("main", _, [
|
|
110
|
+
n(o.$slots, "default")
|
|
111
|
+
])
|
|
112
|
+
])
|
|
113
|
+
]));
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
export {
|
|
117
|
+
z as AppLayout
|
|
118
|
+
};
|