@autoafleveren/ui 0.1.2 → 0.1.4
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/dist/config/eslint.cjs +2 -0
- package/dist/config/tailwind/config.cjs +11 -0
- package/dist/types/components/AppButton/AppButton.vue.d.ts +8 -5
- package/dist/types/components/AppButton/ButtonIconSlot.vue.d.ts +1 -1
- package/dist/types/components/AppCard/AppCard.vue.d.ts +55 -0
- package/dist/types/components/AppCard/CardAction.vue.d.ts +16 -0
- package/dist/types/components/AppCard/CardIconSlot.vue.d.ts +23 -0
- package/dist/types/components/AppLicensePlate/AppLicensePlate.vue.d.ts +41 -0
- package/dist/types/components/AppLoader/AppLoader.vue.d.ts +5 -2
- package/dist/types/components/index.d.ts +2 -0
- package/dist/types/composables/useNavigation/index.d.ts +1 -1
- package/dist/types/layouts/Auth/Auth.vue.d.ts +1 -1
- package/dist/types/layouts/Base/Base.vue.d.ts +11 -0
- package/dist/types/layouts/index.d.ts +2 -1
- package/dist/ui-library.css +1 -1
- package/dist/ui.cjs +2 -2
- package/dist/ui.css +1 -1
- package/dist/ui.js +366 -207
- package/package.json +37 -37
package/dist/ui.js
CHANGED
|
@@ -1,57 +1,58 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { TransitionRoot as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as p, openBlock as a, createElementBlock as c, normalizeClass as b, unref as n, createElementVNode as l, createBlock as y, renderSlot as d, withCtx as v, createCommentVNode as x, resolveDynamicComponent as $, ref as h, shallowRef as E, isRef as D, computed as I, createTextVNode as z, toDisplayString as C, Fragment as L, renderList as B, createVNode as m } from "vue";
|
|
2
|
+
import { TransitionRoot as H, Dialog as R, TransitionChild as V } from "@headlessui/vue";
|
|
3
|
+
const F = {
|
|
4
|
+
"extra-small": ["h-4", "w-4"],
|
|
4
5
|
small: ["h-5", "w-5"],
|
|
5
6
|
medium: ["h-7", "w-7"],
|
|
6
7
|
large: ["h-10", "w-10"]
|
|
7
|
-
},
|
|
8
|
+
}, q = /* @__PURE__ */ l("circle", {
|
|
8
9
|
stroke: "currentColor",
|
|
9
10
|
class: "opacity-25",
|
|
10
11
|
"stroke-width": "4",
|
|
11
12
|
cx: "12",
|
|
12
13
|
cy: "12",
|
|
13
14
|
r: "10"
|
|
14
|
-
}, null, -1),
|
|
15
|
+
}, null, -1), G = /* @__PURE__ */ l("path", {
|
|
15
16
|
class: "opacity-75",
|
|
16
17
|
fill: "currentColor",
|
|
17
18
|
d: `M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962
|
|
18
19
|
7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z`
|
|
19
|
-
}, null, -1),
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
],
|
|
20
|
+
}, null, -1), J = [
|
|
21
|
+
q,
|
|
22
|
+
G
|
|
23
|
+
], S = /* @__PURE__ */ p({
|
|
23
24
|
__name: "AppLoader",
|
|
24
25
|
props: {
|
|
25
26
|
size: { default: "medium" }
|
|
26
27
|
},
|
|
27
|
-
setup(
|
|
28
|
-
return (
|
|
29
|
-
class:
|
|
28
|
+
setup(t) {
|
|
29
|
+
return (e, s) => (a(), c("svg", {
|
|
30
|
+
class: b([n(F)[t.size], "animate-spin"]),
|
|
30
31
|
xmlns: "http://www.w3.org/2000/svg",
|
|
31
32
|
viewBox: "0 0 24 24",
|
|
32
33
|
fill: "none"
|
|
33
|
-
},
|
|
34
|
+
}, J, 2));
|
|
34
35
|
}
|
|
35
|
-
}),
|
|
36
|
+
}), K = { class: "app-button__icon h-4" }, Q = /* @__PURE__ */ p({
|
|
36
37
|
__name: "ButtonIconSlot",
|
|
37
38
|
props: {
|
|
38
39
|
loading: { type: Boolean }
|
|
39
40
|
},
|
|
40
|
-
setup(
|
|
41
|
-
return (
|
|
42
|
-
|
|
41
|
+
setup(t) {
|
|
42
|
+
return (e, s) => (a(), c("span", K, [
|
|
43
|
+
t.loading ? (a(), y(S, {
|
|
43
44
|
key: 0,
|
|
44
45
|
class: "w-4"
|
|
45
|
-
})) :
|
|
46
|
+
})) : d(e.$slots, "default", { key: 1 }, void 0, !0)
|
|
46
47
|
]));
|
|
47
48
|
}
|
|
48
49
|
});
|
|
49
|
-
const
|
|
50
|
-
const
|
|
51
|
-
for (const [
|
|
52
|
-
|
|
53
|
-
return
|
|
54
|
-
},
|
|
50
|
+
const N = (t, e) => {
|
|
51
|
+
const s = t.__vccOpts || t;
|
|
52
|
+
for (const [o, r] of e)
|
|
53
|
+
s[o] = r;
|
|
54
|
+
return s;
|
|
55
|
+
}, j = /* @__PURE__ */ N(Q, [["__scopeId", "data-v-04d5f165"]]), U = {
|
|
55
56
|
plain: [
|
|
56
57
|
"text-primary",
|
|
57
58
|
"border-0"
|
|
@@ -69,11 +70,11 @@ const J = (e, t) => {
|
|
|
69
70
|
"enabled:hover:text-white",
|
|
70
71
|
"enabled:hover:bg-primary"
|
|
71
72
|
]
|
|
72
|
-
},
|
|
73
|
+
}, W = {
|
|
73
74
|
small: ["px-5", "py-2"],
|
|
74
75
|
medium: ["px-5", "py-3"],
|
|
75
76
|
large: ["px-5", "py-4"]
|
|
76
|
-
},
|
|
77
|
+
}, X = ["type", "disabled"], Se = /* @__PURE__ */ p({
|
|
77
78
|
__name: "AppButton",
|
|
78
79
|
props: {
|
|
79
80
|
size: { default: "medium" },
|
|
@@ -82,116 +83,222 @@ const J = (e, t) => {
|
|
|
82
83
|
disabled: { type: Boolean, default: !1 },
|
|
83
84
|
loading: { type: Boolean, default: !1 }
|
|
84
85
|
},
|
|
85
|
-
setup(
|
|
86
|
-
return (
|
|
87
|
-
type:
|
|
88
|
-
disabled:
|
|
89
|
-
class:
|
|
90
|
-
...n(
|
|
91
|
-
...n(
|
|
86
|
+
setup(t) {
|
|
87
|
+
return (e, s) => (a(), c("button", {
|
|
88
|
+
type: t.type,
|
|
89
|
+
disabled: t.disabled || t.loading,
|
|
90
|
+
class: b([[
|
|
91
|
+
...n(U)[t.colorType],
|
|
92
|
+
...n(W)[t.size]
|
|
92
93
|
], "app-button inline-flex items-center whitespace-nowrap rounded-lg border text-sm font-semibold transition-colors focus:outline-none disabled:cursor-not-allowed disabled:select-none disabled:opacity-50"])
|
|
93
94
|
}, [
|
|
94
|
-
|
|
95
|
+
e.$slots.leadingIcon || t.loading ? (a(), y(j, {
|
|
95
96
|
key: 0,
|
|
96
|
-
loading:
|
|
97
|
+
loading: t.loading,
|
|
97
98
|
class: "mr-3",
|
|
98
99
|
"data-test-leading-icon": ""
|
|
99
100
|
}, {
|
|
100
|
-
default:
|
|
101
|
-
|
|
101
|
+
default: v(() => [
|
|
102
|
+
d(e.$slots, "leadingIcon")
|
|
102
103
|
]),
|
|
103
104
|
_: 3
|
|
104
|
-
}, 8, ["loading"])) :
|
|
105
|
-
|
|
106
|
-
|
|
105
|
+
}, 8, ["loading"])) : x("", !0),
|
|
106
|
+
d(e.$slots, "default"),
|
|
107
|
+
e.$slots.trailingIcon ? (a(), y(j, {
|
|
107
108
|
key: 1,
|
|
108
109
|
class: "ml-3",
|
|
109
110
|
"data-test-trailing-icon": ""
|
|
110
111
|
}, {
|
|
111
|
-
default:
|
|
112
|
-
|
|
112
|
+
default: v(() => [
|
|
113
|
+
d(e.$slots, "trailingIcon")
|
|
113
114
|
]),
|
|
114
115
|
_: 3
|
|
115
|
-
})) :
|
|
116
|
-
], 10,
|
|
116
|
+
})) : x("", !0)
|
|
117
|
+
], 10, X));
|
|
117
118
|
}
|
|
118
|
-
}),
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
119
|
+
}), Y = {
|
|
120
|
+
key: 0,
|
|
121
|
+
class: "app-card__icon absolute right-5 top-5 h-5 text-primary"
|
|
122
|
+
}, Z = /* @__PURE__ */ p({
|
|
123
|
+
__name: "CardIconSlot",
|
|
124
|
+
props: {
|
|
125
|
+
icon: null
|
|
126
|
+
},
|
|
127
|
+
setup(t) {
|
|
128
|
+
const e = t;
|
|
129
|
+
return (s, o) => s.$slots.default || t.icon ? (a(), c("div", Y, [
|
|
130
|
+
d(s.$slots, "default", {}, () => [
|
|
131
|
+
e.icon ? (a(), y($(typeof e.icon == "string" ? "span" : e.icon), {
|
|
132
|
+
key: 0,
|
|
133
|
+
"data-test-icon-component": "",
|
|
134
|
+
innerHTML: e.icon
|
|
135
|
+
}, null, 8, ["innerHTML"])) : x("", !0)
|
|
136
|
+
], !0)
|
|
137
|
+
])) : x("", !0);
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
const ee = /* @__PURE__ */ N(Z, [["__scopeId", "data-v-14ba04ea"]]), _ = {
|
|
141
|
+
navigationItems: h([]),
|
|
142
|
+
mainMenuOpen: h(!1),
|
|
143
|
+
mobileMenuOpen: h(!1),
|
|
144
|
+
navigationComponent: E("a"),
|
|
145
|
+
logo: h(null),
|
|
146
|
+
contactRoute: h()
|
|
125
147
|
};
|
|
126
|
-
function
|
|
127
|
-
function
|
|
128
|
-
|
|
148
|
+
function A() {
|
|
149
|
+
function t(i) {
|
|
150
|
+
_.navigationItems.value = D(i) ? i == null ? void 0 : i.value : i;
|
|
129
151
|
}
|
|
130
|
-
function
|
|
131
|
-
|
|
152
|
+
function e(i) {
|
|
153
|
+
_.navigationComponent.value = i;
|
|
132
154
|
}
|
|
133
|
-
function
|
|
134
|
-
|
|
155
|
+
function s(i) {
|
|
156
|
+
_.logo.value = i;
|
|
135
157
|
}
|
|
136
|
-
function
|
|
137
|
-
|
|
158
|
+
function o() {
|
|
159
|
+
_.mainMenuOpen.value = !0;
|
|
138
160
|
}
|
|
139
|
-
function
|
|
140
|
-
|
|
161
|
+
function r() {
|
|
162
|
+
_.mainMenuOpen.value = !1;
|
|
141
163
|
}
|
|
142
|
-
function
|
|
143
|
-
|
|
164
|
+
function u() {
|
|
165
|
+
_.mainMenuOpen.value = !_.mainMenuOpen.value;
|
|
144
166
|
}
|
|
145
|
-
function
|
|
146
|
-
|
|
167
|
+
function w() {
|
|
168
|
+
_.mobileMenuOpen.value = !0;
|
|
147
169
|
}
|
|
148
|
-
function
|
|
149
|
-
|
|
170
|
+
function g() {
|
|
171
|
+
_.mobileMenuOpen.value = !1;
|
|
150
172
|
}
|
|
151
|
-
function
|
|
152
|
-
|
|
173
|
+
function f() {
|
|
174
|
+
_.mobileMenuOpen.value = !_.mobileMenuOpen.value;
|
|
153
175
|
}
|
|
154
176
|
return {
|
|
155
|
-
...
|
|
156
|
-
setNavigationItems:
|
|
157
|
-
setNavigationComponent:
|
|
158
|
-
setLogo:
|
|
159
|
-
openMainMenu:
|
|
160
|
-
closeMainMenu:
|
|
161
|
-
toggleMainMenu:
|
|
162
|
-
openMobileMenu:
|
|
163
|
-
closeMobileMenu:
|
|
164
|
-
toggleMobileMenu:
|
|
177
|
+
..._,
|
|
178
|
+
setNavigationItems: t,
|
|
179
|
+
setNavigationComponent: e,
|
|
180
|
+
setLogo: s,
|
|
181
|
+
openMainMenu: o,
|
|
182
|
+
closeMainMenu: r,
|
|
183
|
+
toggleMainMenu: u,
|
|
184
|
+
openMobileMenu: w,
|
|
185
|
+
closeMobileMenu: g,
|
|
186
|
+
toggleMobileMenu: f
|
|
165
187
|
};
|
|
166
188
|
}
|
|
167
|
-
const
|
|
168
|
-
layoutImage:
|
|
189
|
+
const k = {
|
|
190
|
+
layoutImage: h(null),
|
|
169
191
|
colors: {
|
|
170
|
-
primaryColor:
|
|
171
|
-
primaryColorActive:
|
|
172
|
-
secondaryColor:
|
|
173
|
-
secondaryColorActive:
|
|
192
|
+
primaryColor: h(null),
|
|
193
|
+
primaryColorActive: h(null),
|
|
194
|
+
secondaryColor: h(null),
|
|
195
|
+
secondaryColorActive: h(null)
|
|
174
196
|
}
|
|
175
197
|
};
|
|
176
|
-
function
|
|
177
|
-
function
|
|
178
|
-
|
|
198
|
+
function te() {
|
|
199
|
+
function t(o) {
|
|
200
|
+
k.layoutImage.value = o;
|
|
179
201
|
}
|
|
180
|
-
function
|
|
181
|
-
|
|
202
|
+
function e(o, r) {
|
|
203
|
+
k.colors.primaryColor.value = o, k.colors.primaryColorActive.value = r, document.documentElement.style.setProperty("--color-primary", o), document.documentElement.style.setProperty("--color-primary-active", r);
|
|
182
204
|
}
|
|
183
|
-
function
|
|
184
|
-
|
|
205
|
+
function s(o, r) {
|
|
206
|
+
k.colors.secondaryColor.value = o, k.colors.secondaryColorActive.value = r, document.documentElement.style.setProperty("--color-secondary", o), document.documentElement.style.setProperty("--color-secondary-active", r);
|
|
185
207
|
}
|
|
186
208
|
return {
|
|
187
|
-
...
|
|
188
|
-
setLayoutImage:
|
|
189
|
-
setPrimaryColors:
|
|
190
|
-
setSecondaryColors:
|
|
209
|
+
...k,
|
|
210
|
+
setLayoutImage: t,
|
|
211
|
+
setPrimaryColors: e,
|
|
212
|
+
setSecondaryColors: s
|
|
191
213
|
};
|
|
192
214
|
}
|
|
193
|
-
|
|
194
|
-
|
|
215
|
+
const ne = /* @__PURE__ */ p({
|
|
216
|
+
__name: "CardAction",
|
|
217
|
+
props: {
|
|
218
|
+
item: null
|
|
219
|
+
},
|
|
220
|
+
setup(t) {
|
|
221
|
+
const e = t, { navigationComponent: s } = A(), o = h(!1), r = I(() => o.value || typeof e.item.icon != "string"), u = I(() => o.value ? S : e.item.icon);
|
|
222
|
+
async function w(g) {
|
|
223
|
+
var f, i, M;
|
|
224
|
+
(f = e.item) != null && f.onClick && (g.preventDefault(), o.value = !0, await Promise.resolve((M = (i = e.item) == null ? void 0 : i.onClick) == null ? void 0 : M.call(i)), o.value = !1);
|
|
225
|
+
}
|
|
226
|
+
return (g, f) => (a(), y($(n(s)), {
|
|
227
|
+
to: t.item.to,
|
|
228
|
+
href: t.item.href,
|
|
229
|
+
class: "app-card__action ml-auto flex justify-center text-zinc-600",
|
|
230
|
+
onClick: w
|
|
231
|
+
}, {
|
|
232
|
+
default: v(() => [
|
|
233
|
+
(a(), y($(n(r) ? n(u) : "span"), {
|
|
234
|
+
class: b([{ "!h-6": !n(r) }, "h-4 w-4"]),
|
|
235
|
+
size: o.value ? "extra-small" : void 0,
|
|
236
|
+
"data-test-icon": ""
|
|
237
|
+
}, {
|
|
238
|
+
default: v(() => [
|
|
239
|
+
z(C(n(r) ? "" : t.item.icon), 1)
|
|
240
|
+
]),
|
|
241
|
+
_: 1
|
|
242
|
+
}, 8, ["class", "size"])),
|
|
243
|
+
l("span", {
|
|
244
|
+
class: b([{ "pl-4": t.item.icon }, "text-sm"]),
|
|
245
|
+
"data-test-name": ""
|
|
246
|
+
}, C(t.item.name), 3)
|
|
247
|
+
]),
|
|
248
|
+
_: 1
|
|
249
|
+
}, 8, ["to", "href"]));
|
|
250
|
+
}
|
|
251
|
+
});
|
|
252
|
+
const oe = /* @__PURE__ */ N(ne, [["__scopeId", "data-v-0e561723"]]), ae = {
|
|
253
|
+
key: 1,
|
|
254
|
+
class: "text-2xl font-bold text-zinc-900",
|
|
255
|
+
"data-test-title": ""
|
|
256
|
+
}, se = {
|
|
257
|
+
class: "mt-2",
|
|
258
|
+
"data-test-content": ""
|
|
259
|
+
}, Ne = /* @__PURE__ */ p({
|
|
260
|
+
__name: "AppCard",
|
|
261
|
+
props: {
|
|
262
|
+
bordered: { type: Boolean, default: !1 },
|
|
263
|
+
title: { default: void 0 },
|
|
264
|
+
icon: { default: void 0 },
|
|
265
|
+
actions: { default: void 0 }
|
|
266
|
+
},
|
|
267
|
+
setup(t) {
|
|
268
|
+
return (e, s) => (a(), c("div", {
|
|
269
|
+
class: b([{ "before:hidden": !t.bordered }, "relative w-full overflow-hidden rounded-xl bg-white p-5 text-sm text-zinc-600 shadow shadow-zinc-200 before:absolute before:left-0 before:top-0 before:h-full before:w-1 before:bg-primary"])
|
|
270
|
+
}, [
|
|
271
|
+
e.$slots.icon || t.icon ? (a(), y(ee, {
|
|
272
|
+
key: 0,
|
|
273
|
+
icon: t.icon,
|
|
274
|
+
"data-test-icon": ""
|
|
275
|
+
}, {
|
|
276
|
+
default: v(() => [
|
|
277
|
+
d(e.$slots, "icon")
|
|
278
|
+
]),
|
|
279
|
+
_: 3
|
|
280
|
+
}, 8, ["icon"])) : x("", !0),
|
|
281
|
+
t.title || e.$slots.title ? (a(), c("h3", ae, [
|
|
282
|
+
d(e.$slots, "title", {}, () => [
|
|
283
|
+
z(C(t.title), 1)
|
|
284
|
+
])
|
|
285
|
+
])) : x("", !0),
|
|
286
|
+
l("div", se, [
|
|
287
|
+
d(e.$slots, "default")
|
|
288
|
+
]),
|
|
289
|
+
d(e.$slots, "actions", {}, () => [
|
|
290
|
+
(a(!0), c(L, null, B(t.actions, (o) => (a(), c("div", {
|
|
291
|
+
key: o.name,
|
|
292
|
+
class: "flex w-full"
|
|
293
|
+
}, [
|
|
294
|
+
m(oe, { item: o }, null, 8, ["item"])
|
|
295
|
+
]))), 128))
|
|
296
|
+
])
|
|
297
|
+
], 2));
|
|
298
|
+
}
|
|
299
|
+
});
|
|
300
|
+
function le(t, e) {
|
|
301
|
+
return a(), c("svg", {
|
|
195
302
|
xmlns: "http://www.w3.org/2000/svg",
|
|
196
303
|
fill: "none",
|
|
197
304
|
viewBox: "0 0 24 24",
|
|
@@ -199,15 +306,15 @@ function X(e, t) {
|
|
|
199
306
|
stroke: "currentColor",
|
|
200
307
|
"aria-hidden": "true"
|
|
201
308
|
}, [
|
|
202
|
-
|
|
309
|
+
l("path", {
|
|
203
310
|
"stroke-linecap": "round",
|
|
204
311
|
"stroke-linejoin": "round",
|
|
205
312
|
d: "M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"
|
|
206
313
|
})
|
|
207
314
|
]);
|
|
208
315
|
}
|
|
209
|
-
function
|
|
210
|
-
return
|
|
316
|
+
function ie(t, e) {
|
|
317
|
+
return a(), c("svg", {
|
|
211
318
|
xmlns: "http://www.w3.org/2000/svg",
|
|
212
319
|
fill: "none",
|
|
213
320
|
viewBox: "0 0 24 24",
|
|
@@ -215,115 +322,120 @@ function Y(e, t) {
|
|
|
215
322
|
stroke: "currentColor",
|
|
216
323
|
"aria-hidden": "true"
|
|
217
324
|
}, [
|
|
218
|
-
|
|
325
|
+
l("path", {
|
|
219
326
|
"stroke-linecap": "round",
|
|
220
327
|
"stroke-linejoin": "round",
|
|
221
328
|
d: "M6 18L18 6M6 6l12 12"
|
|
222
329
|
})
|
|
223
330
|
]);
|
|
224
331
|
}
|
|
225
|
-
const
|
|
332
|
+
const re = {
|
|
226
333
|
class: "pl-7 text-lg font-semibold text-zinc-900 md:hidden",
|
|
227
334
|
"data-test-name": ""
|
|
228
|
-
},
|
|
335
|
+
}, O = /* @__PURE__ */ p({
|
|
229
336
|
__name: "NavigationItem",
|
|
230
337
|
props: {
|
|
231
338
|
item: null
|
|
232
339
|
},
|
|
233
|
-
setup(
|
|
234
|
-
const
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
340
|
+
setup(t) {
|
|
341
|
+
const e = t, { navigationComponent: s } = A(), o = h(!1), r = I(() => o.value || typeof e.item.icon != "string"), u = I(() => o.value ? S : e.item.icon);
|
|
342
|
+
async function w(g) {
|
|
343
|
+
var f, i, M;
|
|
344
|
+
(f = e.item) != null && f.onClick && (g.preventDefault(), o.value = !0, await Promise.resolve((M = (i = e.item) == null ? void 0 : i.onClick) == null ? void 0 : M.call(i)), o.value = !1);
|
|
345
|
+
}
|
|
346
|
+
return (g, f) => (a(), y($(n(s)), {
|
|
347
|
+
to: t.item.to,
|
|
348
|
+
href: t.item.href,
|
|
349
|
+
class: b([{
|
|
350
|
+
"md:bg-primary": t.item.active ?? !1,
|
|
351
|
+
"!rounded-full": t.item.rounded ?? !1,
|
|
352
|
+
"mb-2": !t.item.bottom,
|
|
353
|
+
"mt-2": t.item.bottom ?? !1
|
|
243
354
|
}, "flex h-10 w-full cursor-pointer items-center rounded-lg text-center transition-colors md:w-10 md:justify-center md:hover:bg-primary-active"]),
|
|
244
|
-
onClick:
|
|
355
|
+
onClick: w
|
|
245
356
|
}, {
|
|
246
|
-
default:
|
|
247
|
-
(
|
|
248
|
-
class:
|
|
357
|
+
default: v(() => [
|
|
358
|
+
(a(), y($(n(r) ? n(u) : "span"), {
|
|
359
|
+
class: b([{ "!h-6": !n(r) }, "h-4 w-4 text-zinc-900 md:text-white"]),
|
|
360
|
+
size: o.value ? "extra-small" : void 0,
|
|
249
361
|
"data-test-icon": ""
|
|
250
362
|
}, {
|
|
251
|
-
default:
|
|
252
|
-
|
|
363
|
+
default: v(() => [
|
|
364
|
+
z(C(n(r) ? "" : t.item.icon), 1)
|
|
253
365
|
]),
|
|
254
366
|
_: 1
|
|
255
|
-
}, 8, ["class"])),
|
|
256
|
-
|
|
367
|
+
}, 8, ["class", "size"])),
|
|
368
|
+
l("span", re, C(t.item.name), 1)
|
|
257
369
|
]),
|
|
258
370
|
_: 1
|
|
259
|
-
}, 8, ["to", "href", "class"
|
|
371
|
+
}, 8, ["to", "href", "class"]));
|
|
260
372
|
}
|
|
261
|
-
}),
|
|
373
|
+
}), P = /* @__PURE__ */ p({
|
|
262
374
|
__name: "SupportItem",
|
|
263
|
-
setup(
|
|
264
|
-
const { contactRoute:
|
|
265
|
-
return (
|
|
375
|
+
setup(t) {
|
|
376
|
+
const { contactRoute: e, navigationComponent: s } = A();
|
|
377
|
+
return (o, r) => n(e) ? (a(), y($(n(s)), {
|
|
266
378
|
key: 0,
|
|
267
|
-
to: n(
|
|
268
|
-
href: n(
|
|
269
|
-
class: "fixed bottom-5 right-5 z-50 flex h-10 w-10 justify-center rounded-full bg-primary py-2 text-white transition-colors hover:bg-primary-active",
|
|
379
|
+
to: n(s) !== "a" ? n(e) : void 0,
|
|
380
|
+
href: n(s) ? n(e) : void 0,
|
|
381
|
+
class: "fixed bottom-5 right-5 z-50 mt-2 flex h-10 w-10 justify-center rounded-full bg-primary py-2 text-white transition-colors hover:bg-primary-active",
|
|
270
382
|
"data-test-help-icon": ""
|
|
271
383
|
}, {
|
|
272
|
-
default:
|
|
273
|
-
|
|
384
|
+
default: v(() => [
|
|
385
|
+
z(" ? ")
|
|
274
386
|
]),
|
|
275
387
|
_: 1
|
|
276
|
-
}, 8, ["to", "href"])) :
|
|
388
|
+
}, 8, ["to", "href"])) : x("", !0);
|
|
277
389
|
}
|
|
278
|
-
}),
|
|
390
|
+
}), ce = { class: "flex items-center justify-between bg-zinc-50 px-2 py-4 text-black md:hidden" }, ue = ["innerHTML"], de = /* @__PURE__ */ l("div", { class: "w-1/3" }, null, -1), me = {
|
|
279
391
|
class: "relative flex h-full w-full flex-1 flex-col bg-white focus:outline-none",
|
|
280
392
|
"data-test-navigation-wrapper": ""
|
|
281
|
-
},
|
|
393
|
+
}, pe = {
|
|
282
394
|
class: "h-0 flex-1 overflow-y-auto p-4",
|
|
283
395
|
"data-test-navigation-links-wrapper": ""
|
|
284
|
-
},
|
|
396
|
+
}, fe = {
|
|
285
397
|
"aria-label": "MainMenu",
|
|
286
398
|
class: "mt-5"
|
|
287
|
-
},
|
|
399
|
+
}, _e = { class: "mb-auto" }, he = /* @__PURE__ */ p({
|
|
288
400
|
__name: "Mobile",
|
|
289
|
-
setup(
|
|
401
|
+
setup(t) {
|
|
290
402
|
const {
|
|
291
|
-
logo:
|
|
292
|
-
navigationItems:
|
|
293
|
-
mobileMenuOpen:
|
|
294
|
-
toggleMobileMenu:
|
|
295
|
-
closeMobileMenu:
|
|
296
|
-
} =
|
|
297
|
-
return (
|
|
298
|
-
|
|
403
|
+
logo: e,
|
|
404
|
+
navigationItems: s,
|
|
405
|
+
mobileMenuOpen: o,
|
|
406
|
+
toggleMobileMenu: r,
|
|
407
|
+
closeMobileMenu: u
|
|
408
|
+
} = A(), w = I(() => o.value ? ie : le);
|
|
409
|
+
return (g, f) => (a(), c("div", ce, [
|
|
410
|
+
l("div", {
|
|
299
411
|
class: "inline-flex w-1/3 cursor-pointer items-center justify-start rounded-sm !p-2 hover:text-primary focus:outline-none",
|
|
300
412
|
"data-test-menu-icon-wrapper": "",
|
|
301
|
-
onClick:
|
|
302
|
-
(...
|
|
413
|
+
onClick: f[0] || (f[0] = //@ts-ignore
|
|
414
|
+
(...i) => n(r) && n(r)(...i))
|
|
303
415
|
}, [
|
|
304
|
-
(
|
|
416
|
+
(a(), y($(n(w)), {
|
|
305
417
|
class: "block h-6 w-6 text-black",
|
|
306
418
|
"aria-hidden": "true"
|
|
307
419
|
}))
|
|
308
420
|
]),
|
|
309
|
-
|
|
421
|
+
l("div", {
|
|
310
422
|
class: "w-1/3",
|
|
311
423
|
"data-test-logo-wrapper": "",
|
|
312
|
-
innerHTML: n(
|
|
313
|
-
}, null, 8,
|
|
314
|
-
|
|
315
|
-
m(n(
|
|
316
|
-
show: n(
|
|
424
|
+
innerHTML: n(e)
|
|
425
|
+
}, null, 8, ue),
|
|
426
|
+
de,
|
|
427
|
+
m(n(H), {
|
|
428
|
+
show: n(o),
|
|
317
429
|
as: "template"
|
|
318
430
|
}, {
|
|
319
|
-
default:
|
|
320
|
-
m(n(
|
|
431
|
+
default: v(() => [
|
|
432
|
+
m(n(R), {
|
|
321
433
|
as: "div",
|
|
322
434
|
class: "fixed inset-0 top-20 z-50 flex -translate-y-2 lg:hidden",
|
|
323
|
-
onClose: n(
|
|
435
|
+
onClose: n(u)
|
|
324
436
|
}, {
|
|
325
|
-
default:
|
|
326
|
-
m(n(
|
|
437
|
+
default: v(() => [
|
|
438
|
+
m(n(V), {
|
|
327
439
|
as: "template",
|
|
328
440
|
enter: "transition ease-in-out duration-300 transform",
|
|
329
441
|
"enter-from": "translate-y-full",
|
|
@@ -332,20 +444,20 @@ const Z = {
|
|
|
332
444
|
"leave-from": "translate-y-0",
|
|
333
445
|
"leave-to": "translate-y-full"
|
|
334
446
|
}, {
|
|
335
|
-
default:
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
(
|
|
341
|
-
key:
|
|
447
|
+
default: v(() => [
|
|
448
|
+
l("div", me, [
|
|
449
|
+
l("div", pe, [
|
|
450
|
+
l("nav", fe, [
|
|
451
|
+
l("ul", _e, [
|
|
452
|
+
(a(!0), c(L, null, B(n(s), (i) => (a(), c("li", {
|
|
453
|
+
key: i.name,
|
|
342
454
|
"data-test-navigation-item": ""
|
|
343
455
|
}, [
|
|
344
|
-
m(
|
|
456
|
+
m(O, { item: i }, null, 8, ["item"])
|
|
345
457
|
]))), 128))
|
|
346
458
|
])
|
|
347
459
|
]),
|
|
348
|
-
m(
|
|
460
|
+
m(P)
|
|
349
461
|
])
|
|
350
462
|
])
|
|
351
463
|
]),
|
|
@@ -357,70 +469,117 @@ const Z = {
|
|
|
357
469
|
]),
|
|
358
470
|
_: 1
|
|
359
471
|
}, 8, ["show"]),
|
|
360
|
-
m(
|
|
472
|
+
m(P)
|
|
361
473
|
]));
|
|
362
474
|
}
|
|
363
|
-
}),
|
|
475
|
+
}), ve = { class: "mx-auto mb-auto" }, ye = { class: "mx-auto mt-auto" }, T = /* @__PURE__ */ p({
|
|
364
476
|
__name: "AppNavigationMenu",
|
|
365
|
-
setup(
|
|
366
|
-
const { navigationItems:
|
|
367
|
-
return (
|
|
368
|
-
|
|
369
|
-
class:
|
|
477
|
+
setup(t) {
|
|
478
|
+
const { navigationItems: e, mainMenuOpen: s } = A();
|
|
479
|
+
return (o, r) => (a(), c("div", null, [
|
|
480
|
+
l("aside", {
|
|
481
|
+
class: b([{ "px-3 md:!w-20": n(s) }, "sticky top-0 hidden h-screen w-0 flex-col justify-center overflow-hidden py-5 transition-all duration-500 md:flex"]),
|
|
370
482
|
"data-test-main-menu": ""
|
|
371
483
|
}, [
|
|
372
|
-
|
|
373
|
-
(
|
|
374
|
-
key:
|
|
484
|
+
l("ul", ve, [
|
|
485
|
+
(a(!0), c(L, null, B(n(e).filter((u) => u.bottom !== !0), (u) => (a(), c("li", {
|
|
486
|
+
key: u.name,
|
|
375
487
|
"data-test-top-navigation-item": ""
|
|
376
488
|
}, [
|
|
377
|
-
m(
|
|
489
|
+
m(O, { item: u }, null, 8, ["item"])
|
|
378
490
|
]))), 128))
|
|
379
491
|
]),
|
|
380
|
-
|
|
381
|
-
(
|
|
382
|
-
key:
|
|
492
|
+
l("ul", ye, [
|
|
493
|
+
(a(!0), c(L, null, B(n(e).filter((u) => u.bottom), (u) => (a(), c("li", {
|
|
494
|
+
key: u.name,
|
|
383
495
|
"data-test-bottom-navigation-item": ""
|
|
384
496
|
}, [
|
|
385
|
-
m(
|
|
497
|
+
m(O, { item: u }, null, 8, ["item"])
|
|
386
498
|
]))), 128)),
|
|
387
|
-
|
|
388
|
-
m(
|
|
499
|
+
l("li", null, [
|
|
500
|
+
m(P, { class: "!static" })
|
|
389
501
|
])
|
|
390
502
|
])
|
|
391
503
|
], 2),
|
|
392
|
-
m(
|
|
504
|
+
m(he)
|
|
393
505
|
]));
|
|
394
506
|
}
|
|
395
|
-
}),
|
|
507
|
+
}), ge = { class: "flex text-sm font-bold" }, be = {
|
|
508
|
+
class: "rounded-l-lg bg-indigo-900 px-2 py-1.5 text-white",
|
|
509
|
+
"data-test-country-code": ""
|
|
510
|
+
}, xe = {
|
|
511
|
+
class: "rounded-r-lg bg-yellow-400 px-2 py-1.5 uppercase text-zinc-900",
|
|
512
|
+
"data-test-license-plate": ""
|
|
513
|
+
}, je = /* @__PURE__ */ p({
|
|
514
|
+
__name: "AppLicensePlate",
|
|
515
|
+
props: {
|
|
516
|
+
license: { default: void 0 },
|
|
517
|
+
country: { default: "NL" }
|
|
518
|
+
},
|
|
519
|
+
setup(t) {
|
|
520
|
+
return (e, s) => (a(), c("div", ge, [
|
|
521
|
+
l("span", be, C(t.country), 1),
|
|
522
|
+
l("span", xe, [
|
|
523
|
+
d(e.$slots, "default", {}, () => [
|
|
524
|
+
z(C(t.license), 1)
|
|
525
|
+
])
|
|
526
|
+
])
|
|
527
|
+
]));
|
|
528
|
+
}
|
|
529
|
+
}), we = { class: "flex min-h-screen flex-col md:flex-row md:bg-secondary" }, $e = { class: "flex h-full grow items-center justify-center bg-white px-10 transition-all md:h-auto md:w-1/2 md:grow-0 md:rounded-l-2xl md:px-24" }, Ce = { class: "mx-auto md:max-w-lg" }, ke = {
|
|
396
530
|
class: "hidden w-1/2 md:block",
|
|
397
531
|
"data-test-layout-image-wrapper": ""
|
|
398
|
-
},
|
|
532
|
+
}, Me = ["src"], Te = /* @__PURE__ */ p({
|
|
399
533
|
__name: "Auth",
|
|
400
|
-
setup(
|
|
401
|
-
const { layoutImage:
|
|
402
|
-
return (
|
|
403
|
-
m(n(
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
534
|
+
setup(t) {
|
|
535
|
+
const { layoutImage: e } = te();
|
|
536
|
+
return (s, o) => (a(), c("div", we, [
|
|
537
|
+
m(n(T)),
|
|
538
|
+
l("main", $e, [
|
|
539
|
+
l("div", Ce, [
|
|
540
|
+
d(s.$slots, "default")
|
|
407
541
|
])
|
|
408
542
|
]),
|
|
409
|
-
|
|
410
|
-
n(
|
|
543
|
+
l("div", ke, [
|
|
544
|
+
n(e) ? (a(), c("img", {
|
|
411
545
|
key: 0,
|
|
412
|
-
src: n(
|
|
546
|
+
src: n(e),
|
|
413
547
|
class: "h-screen w-full object-fill"
|
|
414
|
-
}, null, 8,
|
|
548
|
+
}, null, 8, Me)) : x("", !0)
|
|
549
|
+
])
|
|
550
|
+
]));
|
|
551
|
+
}
|
|
552
|
+
}), Ie = { class: "flex min-h-screen flex-col md:flex-row md:bg-secondary" }, ze = /* @__PURE__ */ l("div", { id: "top order-2" }, null, -1), Ae = { class: "order-4 flex h-full grow bg-zinc-100 px-2 py-8 transition-all md:order-3 md:h-auto md:rounded-l-2xl md:px-6 md:pr-12" }, Le = { class: "w-full" }, Be = {
|
|
553
|
+
id: "sidebar-wrapper",
|
|
554
|
+
class: "order-3 w-141 max-w-full shrink-0 grow-0 rounded-l-2xl bg-white px-4 py-8 md:sticky md:top-0 md:order-4 md:-ml-5 md:max-h-screen",
|
|
555
|
+
"data-test-layout-sidebar-wrapper": ""
|
|
556
|
+
}, Ee = /* @__PURE__ */ p({
|
|
557
|
+
__name: "Base",
|
|
558
|
+
setup(t) {
|
|
559
|
+
return (e, s) => (a(), c("div", Ie, [
|
|
560
|
+
m(n(T), { class: "order-1" }),
|
|
561
|
+
d(e.$slots, "top", {}, () => [
|
|
562
|
+
ze
|
|
563
|
+
]),
|
|
564
|
+
l("main", Ae, [
|
|
565
|
+
l("div", Le, [
|
|
566
|
+
d(e.$slots, "default")
|
|
567
|
+
])
|
|
568
|
+
]),
|
|
569
|
+
l("div", Be, [
|
|
570
|
+
d(e.$slots, "sidebar")
|
|
415
571
|
])
|
|
416
572
|
]));
|
|
417
573
|
}
|
|
418
574
|
});
|
|
419
575
|
export {
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
576
|
+
Se as AppButton,
|
|
577
|
+
Ne as AppCard,
|
|
578
|
+
je as AppLicensePlate,
|
|
579
|
+
S as AppLoader,
|
|
580
|
+
T as AppNavigationMenu,
|
|
581
|
+
Te as AuthLayout,
|
|
582
|
+
Ee as BaseLayout,
|
|
583
|
+
te as useLayout,
|
|
584
|
+
A as useNavigation
|
|
426
585
|
};
|