pdap-design-system 3.0.0-beta.1 → 3.0.0-beta.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/Form/PdapForm.vue.d.ts +3 -0
- package/dist/components/Form/types.d.ts +1 -0
- package/dist/components/Input/Checkbox/InputCheckbox.vue.d.ts +2 -2
- package/dist/components/Input/Text/InputText.vue.d.ts +0 -2
- package/dist/config/index.d.ts +57 -5
- package/dist/demo/pages/SignupFormDemo.vue.d.ts +2 -0
- package/dist/index.cjs +3 -3
- package/dist/index.js +513 -461
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { RouterLink as oe, useRouter as
|
1
|
+
import { defineComponent as C, reactive as q, openBlock as j, createElementBlock as h, normalizeClass as le, renderSlot as H, ref as N, onErrorCaptured as it, createBlock as S, resolveDynamicComponent as lt, withCtx as D, createElementVNode as f, createTextVNode as T, inject as ae, resolveComponent as Ve, Fragment as B, renderList as ce, unref as L, toDisplayString as E, createCommentVNode as k, getCurrentInstance as ct, onBeforeMount as Be, watch as J, isRef as ye, onBeforeUnmount as he, computed as v, isReactive as dt, isReadonly as Lt, provide as xe, nextTick as ne, mergeProps as F, normalizeProps as Mt, watchEffect as Ie, withModifiers as me, withKeys as je, createVNode as P, Transition as se, withDirectives as fe, vShow as Fe, pushScopeId as gt, popScopeId as pt, onMounted as We, toHandlers as yt, TransitionGroup as mt } from "vue";
|
2
|
+
import { RouterLink as oe, useRouter as jt, useRoute as ft } from "vue-router";
|
3
3
|
const wt = {
|
4
4
|
name: "PdapButton"
|
5
|
-
}, Ge = /* @__PURE__ */
|
5
|
+
}, Ge = /* @__PURE__ */ C({
|
6
6
|
...wt,
|
7
7
|
props: {
|
8
8
|
intent: { default: "primary" },
|
@@ -14,10 +14,10 @@ const wt = {
|
|
14
14
|
[`pdap-button-${t.intent}`]: !!t.intent,
|
15
15
|
"pdap-button-loading": t.isLoading
|
16
16
|
});
|
17
|
-
return (
|
17
|
+
return (a, n) => (j(), h("button", {
|
18
18
|
class: le(r)
|
19
19
|
}, [
|
20
|
-
H(
|
20
|
+
H(a.$slots, "default")
|
21
21
|
], 2));
|
22
22
|
}
|
23
23
|
});
|
@@ -25,12 +25,12 @@ const ht = /* @__PURE__ */ f("h1", null, "Oops, something went wrong!", -1), vt
|
|
25
25
|
class: "max-w-full",
|
26
26
|
"data-test": "error-boundary-message"
|
27
27
|
}, [
|
28
|
-
/* @__PURE__ */
|
28
|
+
/* @__PURE__ */ T(" If you keep seeing this message, please email "),
|
29
29
|
/* @__PURE__ */ f("a", { href: "mailto:contact@pdap.io" }, "contact@pdap.io"),
|
30
|
-
/* @__PURE__ */
|
30
|
+
/* @__PURE__ */ T(" for assistance. ")
|
31
31
|
], -1), $t = {
|
32
32
|
name: "ErrorBoundary"
|
33
|
-
},
|
33
|
+
}, rn = /* @__PURE__ */ C({
|
34
34
|
...$t,
|
35
35
|
props: {
|
36
36
|
component: { default: "div" },
|
@@ -39,14 +39,14 @@ const ht = /* @__PURE__ */ f("h1", null, "Oops, something went wrong!", -1), vt
|
|
39
39
|
},
|
40
40
|
emits: ["onError"],
|
41
41
|
setup(e, { emit: t }) {
|
42
|
-
const r = e,
|
42
|
+
const r = e, a = t, n = N(), s = N("");
|
43
43
|
function i(u, c, l) {
|
44
44
|
var M;
|
45
|
-
|
45
|
+
n.value = u, s.value = l, (M = r.onError) == null || M.call(r, u, c, l), a("onError", { error: u, vm: c, info: l });
|
46
46
|
}
|
47
47
|
return it((u, c, l) => {
|
48
48
|
i(u, c, l);
|
49
|
-
}), (u, c) =>
|
49
|
+
}), (u, c) => n.value ? (j(), S(lt(u.component), {
|
50
50
|
key: 1,
|
51
51
|
class: "pdap-flex-container-center h-[full]",
|
52
52
|
"v-bind": u.params
|
@@ -58,20 +58,20 @@ const ht = /* @__PURE__ */ f("h1", null, "Oops, something went wrong!", -1), vt
|
|
58
58
|
_: 1
|
59
59
|
}, 8, ["v-bind"])) : H(u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S44aC01LjNsOC4yLTIyLjloNC44bDguMywyMi45aC01LjVWODAuMXogTTg0LDY0LjZjLTAuMi0wLjctMC41LTEuNi0wLjUtMS44CgljMCwwLjEtMC4yLDEtMC41LDEuOGwtMS43LDUuNmg0LjRMODQsNjQuNnoiLz4KPHBhdGggZD0iTTEwNC43LDcxLjFoLTIuNnY5LjFoLTVWNTcuM2g3LjZjNS4xLDAsOC40LDIuNCw4LjQsNi43UzEwOS44LDcxLjEsMTA0LjcsNzEuMXogTTEwNC43LDYxLjVoLTIuNnY1LjNoMi42CgljMi4zLDAsMy4zLTAuOSwzLjMtMi43UzEwNi45LDYxLjUsMTA0LjcsNjEuNXoiLz4KPC9zdmc+Cg==", Dt = { class: "pdap-footer" }, Tt = { class: "pdap-flex-container-center" }, Ct = { class: "pdap-footer-social-links" }, xt = ["href"], It = { class: "pdap-footer-copyright" }, bt = /* @__PURE__ */ f("br", null, null, -1), St = /* @__PURE__ */ f("p", { class: "pdap-footer-copyright" }, [
|
62
|
+
/* @__PURE__ */ T(" PDAP is a non-profit. EIN: 85-4207132. "),
|
63
63
|
/* @__PURE__ */ f("a", {
|
64
64
|
href: "https://docs.pdap.io/meta/policy/pdap-privacy-policy",
|
65
65
|
alt: "Privacy Policy",
|
66
66
|
target: "_blank"
|
67
67
|
}, [
|
68
68
|
/* @__PURE__ */ f("br"),
|
69
|
-
/* @__PURE__ */
|
69
|
+
/* @__PURE__ */ T(" Privacy Policy "),
|
70
70
|
/* @__PURE__ */ f("i", { class: "fa fa-external-link" })
|
71
71
|
]),
|
72
72
|
/* @__PURE__ */ f("br"),
|
73
73
|
/* @__PURE__ */ f("a", { href: "mailto:contact@pdap.io" }, "contact@pdap.io")
|
74
|
-
], -1),
|
74
|
+
], -1), Et = { class: "pdap-footer-widget-links" }, Ot = /* @__PURE__ */ f("a", {
|
75
75
|
href: "https://www.guidestar.org/profile/85-4207132",
|
76
76
|
target: "_blank"
|
77
77
|
}, [
|
@@ -79,16 +79,16 @@ const ht = /* @__PURE__ */ f("h1", null, "Oops, something went wrong!", -1), vt
|
|
79
79
|
alt: "platinum transparency",
|
80
80
|
src: "https://widgets.guidestar.org/gximage2?o=9973356&l=v4"
|
81
81
|
})
|
82
|
-
], -1),
|
82
|
+
], -1), zt = ["href"], _t = ["src"], At = ["src"], kt = {
|
83
83
|
name: "PdapFooter"
|
84
|
-
},
|
84
|
+
}, an = /* @__PURE__ */ C({
|
85
85
|
...kt,
|
86
86
|
props: {
|
87
87
|
logoImageSrc: { default: Nt },
|
88
88
|
logoImageAnchorPath: { default: "/" }
|
89
89
|
},
|
90
90
|
setup(e) {
|
91
|
-
const t = e, r =
|
91
|
+
const t = e, r = ae("footerLinks", [
|
92
92
|
{
|
93
93
|
href: "https://github.com/orgs/Police-Data-Accessibility-Project",
|
94
94
|
text: "Github"
|
@@ -105,12 +105,12 @@ const ht = /* @__PURE__ */ f("h1", null, "Oops, something went wrong!", -1), vt
|
|
105
105
|
path: "/jobs",
|
106
106
|
text: "Jobs"
|
107
107
|
}
|
108
|
-
]),
|
109
|
-
return (
|
108
|
+
]), a = t.logoImageAnchorPath.startsWith("/");
|
109
|
+
return (n, s) => {
|
110
110
|
const i = Ve("router-link");
|
111
111
|
return j(), h("footer", Dt, [
|
112
|
-
f("div",
|
113
|
-
f("ul",
|
112
|
+
f("div", Tt, [
|
113
|
+
f("ul", Ct, [
|
114
114
|
(j(!0), h(B, null, ce(L(r), (u) => (j(), h("li", {
|
115
115
|
key: u.text,
|
116
116
|
class: "pdap-footer-link-container"
|
@@ -121,8 +121,8 @@ const ht = /* @__PURE__ */ f("h1", null, "Oops, something went wrong!", -1), vt
|
|
121
121
|
href: u.href,
|
122
122
|
target: "_blank",
|
123
123
|
referrerpolicy: "no-referrer"
|
124
|
-
},
|
125
|
-
u.path ? (j(),
|
124
|
+
}, E(u.text), 9, xt)) : k("", !0),
|
125
|
+
u.path ? (j(), S(i, {
|
126
126
|
key: 1,
|
127
127
|
"active-class": "pdap-footer-social-link-current",
|
128
128
|
"exact-active-class": "pdap-footer-social-link-current-exact",
|
@@ -130,27 +130,27 @@ const ht = /* @__PURE__ */ f("h1", null, "Oops, something went wrong!", -1), vt
|
|
130
130
|
to: u.path
|
131
131
|
}, {
|
132
132
|
default: D(() => [
|
133
|
-
|
133
|
+
T(E(u.text), 1)
|
134
134
|
]),
|
135
135
|
_: 2
|
136
136
|
}, 1032, ["to"])) : k("", !0)
|
137
137
|
]))), 128))
|
138
138
|
]),
|
139
139
|
f("p", It, [
|
140
|
-
|
141
|
-
|
140
|
+
T(" © " + E((/* @__PURE__ */ new Date()).getFullYear()) + " Police Data Accessibility Project", 1),
|
141
|
+
bt
|
142
142
|
]),
|
143
|
-
|
144
|
-
f("div",
|
143
|
+
St,
|
144
|
+
f("div", Et, [
|
145
145
|
Ot,
|
146
|
-
L(
|
146
|
+
L(a) ? (j(), S(i, {
|
147
147
|
key: 1,
|
148
|
-
to:
|
148
|
+
to: n.logoImageAnchorPath,
|
149
149
|
class: "pdap-footer-logo"
|
150
150
|
}, {
|
151
151
|
default: D(() => [
|
152
152
|
f("img", {
|
153
|
-
src:
|
153
|
+
src: n.logoImageSrc,
|
154
154
|
loading: "lazy",
|
155
155
|
width: "250",
|
156
156
|
alt: "Police Data Accessibility Project Logo"
|
@@ -159,39 +159,39 @@ const ht = /* @__PURE__ */ f("h1", null, "Oops, something went wrong!", -1), vt
|
|
159
159
|
_: 1
|
160
160
|
}, 8, ["to"])) : (j(), h("a", {
|
161
161
|
key: 0,
|
162
|
-
href:
|
162
|
+
href: n.logoImageAnchorPath,
|
163
163
|
class: "pdap-footer-logo"
|
164
164
|
}, [
|
165
165
|
f("img", {
|
166
|
-
src:
|
166
|
+
src: n.logoImageSrc,
|
167
167
|
loading: "lazy",
|
168
168
|
width: "250",
|
169
169
|
alt: "Police Data Accessibility Project Logo"
|
170
|
-
}, null, 8,
|
171
|
-
], 8,
|
170
|
+
}, null, 8, _t)
|
171
|
+
], 8, zt))
|
172
172
|
])
|
173
173
|
])
|
174
174
|
]);
|
175
175
|
};
|
176
176
|
}
|
177
177
|
});
|
178
|
-
function
|
178
|
+
function be(e, t) {
|
179
179
|
var r = Object.keys(e);
|
180
180
|
if (Object.getOwnPropertySymbols) {
|
181
|
-
var
|
182
|
-
t && (
|
183
|
-
return Object.getOwnPropertyDescriptor(e,
|
184
|
-
})), r.push.apply(r,
|
181
|
+
var a = Object.getOwnPropertySymbols(e);
|
182
|
+
t && (a = a.filter(function(n) {
|
183
|
+
return Object.getOwnPropertyDescriptor(e, n).enumerable;
|
184
|
+
})), r.push.apply(r, a);
|
185
185
|
}
|
186
186
|
return r;
|
187
187
|
}
|
188
188
|
function A(e) {
|
189
189
|
for (var t = 1; t < arguments.length; t++) {
|
190
190
|
var r = arguments[t] != null ? arguments[t] : {};
|
191
|
-
t % 2 ?
|
192
|
-
Pt(e,
|
193
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) :
|
194
|
-
Object.defineProperty(e,
|
191
|
+
t % 2 ? be(Object(r), !0).forEach(function(a) {
|
192
|
+
Pt(e, a, r[a]);
|
193
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : be(Object(r)).forEach(function(a) {
|
194
|
+
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(r, a));
|
195
195
|
});
|
196
196
|
}
|
197
197
|
return e;
|
@@ -204,9 +204,9 @@ function Pt(e, t, r) {
|
|
204
204
|
writable: !0
|
205
205
|
}) : e[t] = r, e;
|
206
206
|
}
|
207
|
-
function
|
207
|
+
function Se(e) {
|
208
208
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
209
|
-
return Object.keys(e).reduce((r,
|
209
|
+
return Object.keys(e).reduce((r, a) => (t.includes(a) || (r[a] = L(e[a])), r), {});
|
210
210
|
}
|
211
211
|
function ue(e) {
|
212
212
|
return typeof e == "function";
|
@@ -215,43 +215,43 @@ function Yt(e) {
|
|
215
215
|
return dt(e) || Lt(e);
|
216
216
|
}
|
217
217
|
function Ze(e, t, r) {
|
218
|
-
let
|
219
|
-
const
|
220
|
-
for (let s = 0; s <
|
221
|
-
if (!n[
|
218
|
+
let a = e;
|
219
|
+
const n = t.split(".");
|
220
|
+
for (let s = 0; s < n.length; s++) {
|
221
|
+
if (!a[n[s]])
|
222
222
|
return r;
|
223
|
-
|
223
|
+
a = a[n[s]];
|
224
224
|
}
|
225
|
-
return
|
225
|
+
return a;
|
226
226
|
}
|
227
227
|
function pe(e, t, r) {
|
228
|
-
return v(() => e.some((
|
228
|
+
return v(() => e.some((a) => Ze(t, a, {
|
229
229
|
[r]: !1
|
230
230
|
})[r]));
|
231
231
|
}
|
232
|
-
function
|
233
|
-
return v(() => e.reduce((
|
234
|
-
const s = Ze(t,
|
232
|
+
function Ee(e, t, r) {
|
233
|
+
return v(() => e.reduce((a, n) => {
|
234
|
+
const s = Ze(t, n, {
|
235
235
|
[r]: !1
|
236
236
|
})[r] || [];
|
237
|
-
return
|
237
|
+
return a.concat(s);
|
238
238
|
}, []));
|
239
239
|
}
|
240
|
-
function He(e, t, r,
|
241
|
-
return e.call(
|
240
|
+
function He(e, t, r, a) {
|
241
|
+
return e.call(a, L(t), L(r), a);
|
242
242
|
}
|
243
243
|
function Je(e) {
|
244
244
|
return e.$valid !== void 0 ? !e.$valid : !e;
|
245
245
|
}
|
246
|
-
function Qt(e, t, r,
|
246
|
+
function Qt(e, t, r, a, n, s, i) {
|
247
247
|
let {
|
248
248
|
$lazy: u,
|
249
249
|
$rewardEarly: c
|
250
|
-
} =
|
251
|
-
const p = N(!!
|
250
|
+
} = n, l = arguments.length > 7 && arguments[7] !== void 0 ? arguments[7] : [], M = arguments.length > 8 ? arguments[8] : void 0, y = arguments.length > 9 ? arguments[9] : void 0, m = arguments.length > 10 ? arguments[10] : void 0;
|
251
|
+
const p = N(!!a.value), o = N(0);
|
252
252
|
r.value = !1;
|
253
|
-
const d = J([t,
|
254
|
-
if (u && !
|
253
|
+
const d = J([t, a].concat(l, m), () => {
|
254
|
+
if (u && !a.value || c && !y.value && !r.value)
|
255
255
|
return;
|
256
256
|
let g;
|
257
257
|
try {
|
@@ -273,20 +273,20 @@ function Qt(e, t, r, n, a, s, i) {
|
|
273
273
|
$unwatch: d
|
274
274
|
};
|
275
275
|
}
|
276
|
-
function Rt(e, t, r,
|
276
|
+
function Rt(e, t, r, a, n, s, i, u) {
|
277
277
|
let {
|
278
278
|
$lazy: c,
|
279
279
|
$rewardEarly: l
|
280
|
-
} =
|
280
|
+
} = a;
|
281
281
|
const M = () => ({}), y = v(() => {
|
282
282
|
if (c && !r.value || l && !u.value)
|
283
283
|
return !1;
|
284
284
|
let m = !0;
|
285
285
|
try {
|
286
286
|
const p = He(e, t, i, s);
|
287
|
-
|
287
|
+
n.value = p, m = Je(p);
|
288
288
|
} catch (p) {
|
289
|
-
|
289
|
+
n.value = p;
|
290
290
|
}
|
291
291
|
return m;
|
292
292
|
});
|
@@ -295,22 +295,22 @@ function Rt(e, t, r, n, a, s, i, u) {
|
|
295
295
|
$invalid: y
|
296
296
|
};
|
297
297
|
}
|
298
|
-
function Ut(e, t, r,
|
298
|
+
function Ut(e, t, r, a, n, s, i, u, c, l, M) {
|
299
299
|
const y = N(!1), m = e.$params || {}, p = N(null);
|
300
300
|
let o, d;
|
301
301
|
e.$async ? {
|
302
302
|
$invalid: o,
|
303
303
|
$unwatch: d
|
304
|
-
} = Qt(e.$validator, t, y, r,
|
304
|
+
} = Qt(e.$validator, t, y, r, a, p, n, e.$watchTargets, c, l, M) : {
|
305
305
|
$invalid: o,
|
306
306
|
$unwatch: d
|
307
|
-
} = Rt(e.$validator, t, r,
|
307
|
+
} = Rt(e.$validator, t, r, a, p, n, c, l);
|
308
308
|
const g = e.$message;
|
309
309
|
return {
|
310
|
-
$message: ue(g) ? v(() => g(
|
310
|
+
$message: ue(g) ? v(() => g(Se({
|
311
311
|
$pending: y,
|
312
312
|
$invalid: o,
|
313
|
-
$params:
|
313
|
+
$params: Se(m),
|
314
314
|
$model: t,
|
315
315
|
$response: p,
|
316
316
|
$validator: s,
|
@@ -326,16 +326,16 @@ function Ut(e, t, r, n, a, s, i, u, c, l, M) {
|
|
326
326
|
}
|
327
327
|
function Vt() {
|
328
328
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
329
|
-
const t = L(e), r = Object.keys(t),
|
329
|
+
const t = L(e), r = Object.keys(t), a = {}, n = {}, s = {};
|
330
330
|
let i = null;
|
331
331
|
return r.forEach((u) => {
|
332
332
|
const c = t[u];
|
333
333
|
switch (!0) {
|
334
334
|
case ue(c.$validator):
|
335
|
-
|
335
|
+
a[u] = c;
|
336
336
|
break;
|
337
337
|
case ue(c):
|
338
|
-
|
338
|
+
a[u] = {
|
339
339
|
$validator: c
|
340
340
|
};
|
341
341
|
break;
|
@@ -346,18 +346,18 @@ function Vt() {
|
|
346
346
|
s[u] = c;
|
347
347
|
break;
|
348
348
|
default:
|
349
|
-
|
349
|
+
n[u] = c;
|
350
350
|
}
|
351
351
|
}), {
|
352
|
-
rules:
|
353
|
-
nestedValidators:
|
352
|
+
rules: a,
|
353
|
+
nestedValidators: n,
|
354
354
|
config: s,
|
355
355
|
validationGroups: i
|
356
356
|
};
|
357
357
|
}
|
358
358
|
const Bt = "__root";
|
359
|
-
function
|
360
|
-
const l = Object.keys(e), M =
|
359
|
+
function Ft(e, t, r, a, n, s, i, u, c) {
|
360
|
+
const l = Object.keys(e), M = a.get(n, e), y = N(!1), m = N(!1), p = N(0);
|
361
361
|
if (M) {
|
362
362
|
if (!M.$partial)
|
363
363
|
return M;
|
@@ -365,7 +365,7 @@ function Wt(e, t, r, n, a, s, i, u, c) {
|
|
365
365
|
}
|
366
366
|
const o = {
|
367
367
|
$dirty: y,
|
368
|
-
$path:
|
368
|
+
$path: n,
|
369
369
|
$touch: () => {
|
370
370
|
y.value || (y.value = !0);
|
371
371
|
},
|
@@ -376,12 +376,12 @@ function Wt(e, t, r, n, a, s, i, u, c) {
|
|
376
376
|
}
|
377
377
|
};
|
378
378
|
return l.length ? (l.forEach((d) => {
|
379
|
-
o[d] = Ut(e[d], t, o.$dirty, s, i, d, r,
|
379
|
+
o[d] = Ut(e[d], t, o.$dirty, s, i, d, r, n, c, m, p);
|
380
380
|
}), o.$externalResults = v(() => u.value ? [].concat(u.value).map((d, g) => ({
|
381
|
-
$propertyPath:
|
381
|
+
$propertyPath: n,
|
382
382
|
$property: r,
|
383
383
|
$validator: "$externalResults",
|
384
|
-
$uid: `${
|
384
|
+
$uid: `${n}-externalResult-${g}`,
|
385
385
|
$message: d,
|
386
386
|
$params: {},
|
387
387
|
$response: null,
|
@@ -392,10 +392,10 @@ function Wt(e, t, r, n, a, s, i, u, c) {
|
|
392
392
|
}), o.$pending = v(() => l.some((d) => L(o[d].$pending))), o.$error = v(() => o.$dirty.value ? o.$pending.value || o.$invalid.value : !1), o.$silentErrors = v(() => l.filter((d) => L(o[d].$invalid)).map((d) => {
|
393
393
|
const g = o[d];
|
394
394
|
return q({
|
395
|
-
$propertyPath:
|
395
|
+
$propertyPath: n,
|
396
396
|
$property: r,
|
397
397
|
$validator: d,
|
398
|
-
$uid: `${
|
398
|
+
$uid: `${n}-${d}`,
|
399
399
|
$message: g.$message,
|
400
400
|
$params: g.$params,
|
401
401
|
$response: g.$response,
|
@@ -405,50 +405,50 @@ function Wt(e, t, r, n, a, s, i, u, c) {
|
|
405
405
|
o[d].$unwatch();
|
406
406
|
}), o.$commit = () => {
|
407
407
|
m.value = !0, p.value = Date.now();
|
408
|
-
},
|
408
|
+
}, a.set(n, e, o), o) : (M && a.set(n, e, o), o);
|
409
409
|
}
|
410
|
-
function
|
410
|
+
function Wt(e, t, r, a, n, s, i) {
|
411
411
|
const u = Object.keys(e);
|
412
412
|
return u.length ? u.reduce((c, l) => (c[l] = we({
|
413
413
|
validations: e[l],
|
414
414
|
state: t,
|
415
415
|
key: l,
|
416
416
|
parentKey: r,
|
417
|
-
resultsCache:
|
418
|
-
globalConfig:
|
417
|
+
resultsCache: a,
|
418
|
+
globalConfig: n,
|
419
419
|
instance: s,
|
420
420
|
externalResults: i
|
421
421
|
}), c), {}) : {};
|
422
422
|
}
|
423
423
|
function Gt(e, t, r) {
|
424
|
-
const
|
424
|
+
const a = v(() => [t, r].filter((o) => o).reduce((o, d) => o.concat(Object.values(L(d))), [])), n = v({
|
425
425
|
get() {
|
426
|
-
return e.$dirty.value || (
|
426
|
+
return e.$dirty.value || (a.value.length ? a.value.every((o) => o.$dirty) : !1);
|
427
427
|
},
|
428
428
|
set(o) {
|
429
429
|
e.$dirty.value = o;
|
430
430
|
}
|
431
431
|
}), s = v(() => {
|
432
|
-
const o = L(e.$silentErrors) || [], d =
|
432
|
+
const o = L(e.$silentErrors) || [], d = a.value.filter((g) => (L(g).$silentErrors || []).length).reduce((g, w) => g.concat(...w.$silentErrors), []);
|
433
433
|
return o.concat(d);
|
434
434
|
}), i = v(() => {
|
435
|
-
const o = L(e.$errors) || [], d =
|
435
|
+
const o = L(e.$errors) || [], d = a.value.filter((g) => (L(g).$errors || []).length).reduce((g, w) => g.concat(...w.$errors), []);
|
436
436
|
return o.concat(d);
|
437
|
-
}), u = v(() =>
|
438
|
-
e.$touch(),
|
437
|
+
}), u = v(() => a.value.some((o) => o.$invalid) || L(e.$invalid) || !1), c = v(() => a.value.some((o) => L(o.$pending)) || L(e.$pending) || !1), l = v(() => a.value.some((o) => o.$dirty) || a.value.some((o) => o.$anyDirty) || n.value), M = v(() => n.value ? c.value || u.value : !1), y = () => {
|
438
|
+
e.$touch(), a.value.forEach((o) => {
|
439
439
|
o.$touch();
|
440
440
|
});
|
441
441
|
}, m = () => {
|
442
|
-
e.$commit(),
|
442
|
+
e.$commit(), a.value.forEach((o) => {
|
443
443
|
o.$commit();
|
444
444
|
});
|
445
445
|
}, p = () => {
|
446
|
-
e.$reset(),
|
446
|
+
e.$reset(), a.value.forEach((o) => {
|
447
447
|
o.$reset();
|
448
448
|
});
|
449
449
|
};
|
450
|
-
return
|
451
|
-
$dirty:
|
450
|
+
return a.value.length && a.value.every((o) => o.$dirty) && y(), {
|
451
|
+
$dirty: n,
|
452
452
|
$errors: i,
|
453
453
|
$invalid: u,
|
454
454
|
$anyDirty: l,
|
@@ -464,38 +464,38 @@ function we(e) {
|
|
464
464
|
let {
|
465
465
|
validations: t,
|
466
466
|
state: r,
|
467
|
-
key:
|
468
|
-
parentKey:
|
467
|
+
key: a,
|
468
|
+
parentKey: n,
|
469
469
|
childResults: s,
|
470
470
|
resultsCache: i,
|
471
471
|
globalConfig: u = {},
|
472
472
|
instance: c,
|
473
473
|
externalResults: l
|
474
474
|
} = e;
|
475
|
-
const M =
|
475
|
+
const M = n ? `${n}.${a}` : a, {
|
476
476
|
rules: y,
|
477
477
|
nestedValidators: m,
|
478
478
|
config: p,
|
479
479
|
validationGroups: o
|
480
|
-
} = Vt(t), d = A(A({}, u), p), g =
|
480
|
+
} = Vt(t), d = A(A({}, u), p), g = a ? v(() => {
|
481
481
|
const $ = L(r);
|
482
|
-
return $ ? L($[
|
482
|
+
return $ ? L($[a]) : void 0;
|
483
483
|
}) : r, w = A({}, L(l) || {}), I = v(() => {
|
484
484
|
const $ = L(l);
|
485
|
-
return
|
486
|
-
}), Z =
|
485
|
+
return a ? $ ? L($[a]) : void 0 : $;
|
486
|
+
}), Z = Ft(y, g, a, i, M, d, c, I, r), b = Wt(m, g, M, i, d, c, I), R = {};
|
487
487
|
o && Object.entries(o).forEach(($) => {
|
488
|
-
let [U,
|
488
|
+
let [U, _] = $;
|
489
489
|
R[U] = {
|
490
|
-
$invalid: pe(
|
491
|
-
$error: pe(
|
492
|
-
$pending: pe(
|
493
|
-
$errors:
|
494
|
-
$silentErrors:
|
490
|
+
$invalid: pe(_, b, "$invalid"),
|
491
|
+
$error: pe(_, b, "$error"),
|
492
|
+
$pending: pe(_, b, "$pending"),
|
493
|
+
$errors: Ee(_, b, "$errors"),
|
494
|
+
$silentErrors: Ee(_, b, "$silentErrors")
|
495
495
|
};
|
496
496
|
});
|
497
497
|
const {
|
498
|
-
$dirty:
|
498
|
+
$dirty: z,
|
499
499
|
$errors: ee,
|
500
500
|
$invalid: Le,
|
501
501
|
$anyDirty: et,
|
@@ -503,25 +503,25 @@ function we(e) {
|
|
503
503
|
$pending: Me,
|
504
504
|
$touch: ge,
|
505
505
|
$reset: rt,
|
506
|
-
$silentErrors:
|
507
|
-
$commit:
|
508
|
-
} = Gt(Z,
|
506
|
+
$silentErrors: at,
|
507
|
+
$commit: Ce
|
508
|
+
} = Gt(Z, b, s), nt = a ? v({
|
509
509
|
get: () => L(g),
|
510
510
|
set: ($) => {
|
511
|
-
|
512
|
-
const U = L(r),
|
513
|
-
|
511
|
+
z.value = !0;
|
512
|
+
const U = L(r), _ = L(l);
|
513
|
+
_ && (_[a] = w[a]), ye(U[a]) ? U[a].value = $ : U[a] = $;
|
514
514
|
}
|
515
515
|
}) : null;
|
516
|
-
|
517
|
-
|
516
|
+
a && d.$autoDirty && J(g, () => {
|
517
|
+
z.value || ge();
|
518
518
|
const $ = L(l);
|
519
|
-
$ && ($[
|
519
|
+
$ && ($[a] = w[a]);
|
520
520
|
}, {
|
521
521
|
flush: "sync"
|
522
522
|
});
|
523
523
|
async function st() {
|
524
|
-
return ge(), d.$rewardEarly && (
|
524
|
+
return ge(), d.$rewardEarly && (Ce(), await ne()), await ne(), new Promise(($) => {
|
525
525
|
if (!Me.value)
|
526
526
|
return $(!Le.value);
|
527
527
|
const U = J(Me, () => {
|
@@ -538,8 +538,8 @@ function we(e) {
|
|
538
538
|
}) : Object.assign(l, w);
|
539
539
|
}
|
540
540
|
return q(A(A(A({}, Z), {}, {
|
541
|
-
$model:
|
542
|
-
$dirty:
|
541
|
+
$model: nt,
|
542
|
+
$dirty: z,
|
543
543
|
$error: tt,
|
544
544
|
$errors: ee,
|
545
545
|
$invalid: Le,
|
@@ -548,37 +548,37 @@ function we(e) {
|
|
548
548
|
$touch: ge,
|
549
549
|
$reset: rt,
|
550
550
|
$path: M || Bt,
|
551
|
-
$silentErrors:
|
551
|
+
$silentErrors: at,
|
552
552
|
$validate: st,
|
553
|
-
$commit:
|
553
|
+
$commit: Ce
|
554
554
|
}, s && {
|
555
555
|
$getResultsForChild: ot,
|
556
556
|
$clearExternalResults: ut,
|
557
557
|
$validationGroups: R
|
558
|
-
}),
|
558
|
+
}), b));
|
559
559
|
}
|
560
560
|
class Zt {
|
561
561
|
constructor() {
|
562
562
|
this.storage = /* @__PURE__ */ new Map();
|
563
563
|
}
|
564
|
-
set(t, r,
|
564
|
+
set(t, r, a) {
|
565
565
|
this.storage.set(t, {
|
566
566
|
rules: r,
|
567
|
-
result:
|
567
|
+
result: a
|
568
568
|
});
|
569
569
|
}
|
570
|
-
checkRulesValidity(t, r,
|
571
|
-
const
|
572
|
-
return s.length !==
|
570
|
+
checkRulesValidity(t, r, a) {
|
571
|
+
const n = Object.keys(a), s = Object.keys(r);
|
572
|
+
return s.length !== n.length || !s.every((u) => n.includes(u)) ? !1 : s.every((u) => r[u].$params ? Object.keys(r[u].$params).every((c) => L(a[u].$params[c]) === L(r[u].$params[c])) : !0);
|
573
573
|
}
|
574
574
|
get(t, r) {
|
575
|
-
const
|
576
|
-
if (!
|
575
|
+
const a = this.storage.get(t);
|
576
|
+
if (!a)
|
577
577
|
return;
|
578
578
|
const {
|
579
|
-
rules:
|
579
|
+
rules: n,
|
580
580
|
result: s
|
581
|
-
} =
|
581
|
+
} = a, i = this.checkRulesValidity(t, r, n), u = s.$unwatch ? s.$unwatch : () => ({});
|
582
582
|
return i ? s : {
|
583
583
|
$dirty: s.$dirty,
|
584
584
|
$partial: !0,
|
@@ -589,30 +589,30 @@ class Zt {
|
|
589
589
|
const te = {
|
590
590
|
COLLECT_ALL: !0,
|
591
591
|
COLLECT_NONE: !1
|
592
|
-
}, Oe = Symbol("vuelidate#injectChildResults"),
|
592
|
+
}, Oe = Symbol("vuelidate#injectChildResults"), ze = Symbol("vuelidate#removeChildResults");
|
593
593
|
function Ht(e) {
|
594
594
|
let {
|
595
595
|
$scope: t,
|
596
596
|
instance: r
|
597
597
|
} = e;
|
598
|
-
const
|
598
|
+
const a = {}, n = N([]), s = v(() => n.value.reduce((M, y) => (M[y] = L(a[y]), M), {}));
|
599
599
|
function i(M, y) {
|
600
600
|
let {
|
601
601
|
$registerAs: m,
|
602
602
|
$scope: p,
|
603
603
|
$stopPropagation: o
|
604
604
|
} = y;
|
605
|
-
o || t === te.COLLECT_NONE || p === te.COLLECT_NONE || t !== te.COLLECT_ALL && t !== p || (
|
605
|
+
o || t === te.COLLECT_NONE || p === te.COLLECT_NONE || t !== te.COLLECT_ALL && t !== p || (a[m] = M, n.value.push(m));
|
606
606
|
}
|
607
607
|
r.__vuelidateInjectInstances = [].concat(r.__vuelidateInjectInstances || [], i);
|
608
608
|
function u(M) {
|
609
|
-
|
609
|
+
n.value = n.value.filter((y) => y !== M), delete a[M];
|
610
610
|
}
|
611
611
|
r.__vuelidateRemoveInstances = [].concat(r.__vuelidateRemoveInstances || [], u);
|
612
|
-
const c =
|
612
|
+
const c = ae(Oe, []);
|
613
613
|
xe(Oe, r.__vuelidateInjectInstances);
|
614
|
-
const l =
|
615
|
-
return xe(
|
614
|
+
const l = ae(ze, []);
|
615
|
+
return xe(ze, r.__vuelidateRemoveInstances), {
|
616
616
|
childResults: s,
|
617
617
|
sendValidationResultsToParent: c,
|
618
618
|
removeValidationResultsFromParent: l
|
@@ -625,20 +625,20 @@ function Xe(e) {
|
|
625
625
|
}
|
626
626
|
});
|
627
627
|
}
|
628
|
-
let
|
628
|
+
let _e = 0;
|
629
629
|
function Jt(e, t) {
|
630
630
|
var r;
|
631
|
-
let
|
632
|
-
arguments.length === 1 && (
|
631
|
+
let a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
632
|
+
arguments.length === 1 && (a = e, e = void 0, t = void 0);
|
633
633
|
let {
|
634
|
-
$registerAs:
|
634
|
+
$registerAs: n,
|
635
635
|
$scope: s = te.COLLECT_ALL,
|
636
636
|
$stopPropagation: i,
|
637
637
|
$externalResults: u,
|
638
638
|
currentVueInstance: c
|
639
|
-
} =
|
639
|
+
} = a;
|
640
640
|
const l = c || ((r = ct()) === null || r === void 0 ? void 0 : r.proxy), M = l ? l.$options : {};
|
641
|
-
|
641
|
+
n || (_e += 1, n = `_vuelidate_${_e}`);
|
642
642
|
const y = N({}), m = new Zt(), {
|
643
643
|
childResults: p,
|
644
644
|
sendValidationResultsToParent: o,
|
@@ -658,14 +658,14 @@ function Jt(e, t) {
|
|
658
658
|
state: t,
|
659
659
|
childResults: p,
|
660
660
|
resultsCache: m,
|
661
|
-
globalConfig:
|
661
|
+
globalConfig: a,
|
662
662
|
instance: l,
|
663
663
|
externalResults: u || l.vuelidateExternalResults
|
664
664
|
});
|
665
665
|
}, {
|
666
666
|
immediate: !0
|
667
667
|
});
|
668
|
-
}),
|
668
|
+
}), a = M.validationsConfig || a;
|
669
669
|
} else {
|
670
670
|
const g = ye(e) || Yt(e) ? e : q(e || {});
|
671
671
|
J(g, (w) => {
|
@@ -674,7 +674,7 @@ function Jt(e, t) {
|
|
674
674
|
state: t,
|
675
675
|
childResults: p,
|
676
676
|
resultsCache: m,
|
677
|
-
globalConfig:
|
677
|
+
globalConfig: a,
|
678
678
|
instance: l ?? {},
|
679
679
|
externalResults: u
|
680
680
|
});
|
@@ -683,13 +683,13 @@ function Jt(e, t) {
|
|
683
683
|
});
|
684
684
|
}
|
685
685
|
return l && (o.forEach((g) => g(y, {
|
686
|
-
$registerAs:
|
686
|
+
$registerAs: n,
|
687
687
|
$scope: s,
|
688
688
|
$stopPropagation: i
|
689
|
-
})), he(() => d.forEach((g) => g(
|
689
|
+
})), he(() => d.forEach((g) => g(n)))), v(() => A(A({}, L(y.value)), p.value));
|
690
690
|
}
|
691
691
|
var O = /* @__PURE__ */ ((e) => (e.CHECKBOX = "checkbox", e.TEXT = "text", e.PASSWORD = "password", e))(O || {});
|
692
|
-
const Xt = ["id", "type", "name", "placeholder", "value"], Kt = /* @__PURE__ */
|
692
|
+
const Xt = ["id", "type", "name", "placeholder", "value"], Kt = /* @__PURE__ */ C({
|
693
693
|
__name: "InputText",
|
694
694
|
props: {
|
695
695
|
type: {},
|
@@ -700,25 +700,20 @@ const Xt = ["id", "type", "name", "placeholder", "value"], Kt = /* @__PURE__ */
|
|
700
700
|
placeholder: {},
|
701
701
|
value: {}
|
702
702
|
},
|
703
|
-
emits: ["
|
703
|
+
emits: ["input"],
|
704
704
|
setup(e, { emit: t }) {
|
705
|
-
const r = t,
|
706
|
-
r("
|
707
|
-
}, a = (s) => {
|
708
|
-
r("input", s);
|
705
|
+
const r = t, a = (n) => {
|
706
|
+
r("input", n);
|
709
707
|
};
|
710
|
-
return (
|
711
|
-
id:
|
712
|
-
type:
|
713
|
-
name:
|
714
|
-
placeholder:
|
715
|
-
value:
|
716
|
-
},
|
717
|
-
onChange: n,
|
718
|
-
onInput: a
|
719
|
-
}), null, 16, Xt));
|
708
|
+
return (n, s) => (j(), h("input", F({
|
709
|
+
id: n.id,
|
710
|
+
type: n.type,
|
711
|
+
name: n.name,
|
712
|
+
placeholder: n.placeholder,
|
713
|
+
value: n.value
|
714
|
+
}, n.$attrs, { onInput: a }), null, 16, Xt));
|
720
715
|
}
|
721
|
-
}), qt = ["id", "name", "checked", "value"], er = /* @__PURE__ */
|
716
|
+
}), qt = ["id", "name", "checked", "value"], er = /* @__PURE__ */ C({
|
722
717
|
__name: "InputCheckbox",
|
723
718
|
props: {
|
724
719
|
defaultChecked: { type: Boolean },
|
@@ -730,21 +725,21 @@ const Xt = ["id", "type", "name", "placeholder", "value"], Kt = /* @__PURE__ */
|
|
730
725
|
placeholder: {},
|
731
726
|
value: {}
|
732
727
|
},
|
733
|
-
emits: ["
|
728
|
+
emits: ["input"],
|
734
729
|
setup(e, { emit: t }) {
|
735
|
-
const r = t,
|
736
|
-
r("
|
730
|
+
const r = t, a = (n) => {
|
731
|
+
r("input", n);
|
737
732
|
};
|
738
|
-
return (
|
739
|
-
id:
|
740
|
-
name:
|
741
|
-
checked:
|
742
|
-
value:
|
733
|
+
return (n, s) => (j(), h("input", F({
|
734
|
+
id: n.id,
|
735
|
+
name: n.name,
|
736
|
+
checked: n.value === "true",
|
737
|
+
value: n.value,
|
743
738
|
class: "pdap-input-checkbox",
|
744
739
|
type: "checkbox"
|
745
|
-
},
|
740
|
+
}, n.$attrs, { onInput: a }), null, 16, qt));
|
746
741
|
}
|
747
|
-
}), tr = ["id"], rr = ["for"],
|
742
|
+
}), tr = ["id"], rr = ["for"], ar = /* @__PURE__ */ C({
|
748
743
|
__name: "PdapInput",
|
749
744
|
props: {
|
750
745
|
type: {},
|
@@ -758,29 +753,29 @@ const Xt = ["id", "type", "name", "placeholder", "value"], Kt = /* @__PURE__ */
|
|
758
753
|
},
|
759
754
|
setup(e) {
|
760
755
|
const t = e, r = v(() => `pdap-${t.name}-input-error`);
|
761
|
-
return (
|
756
|
+
return (a, n) => {
|
762
757
|
var s;
|
763
758
|
return j(), h("div", {
|
764
759
|
class: le({
|
765
760
|
"pdap-input": !0,
|
766
|
-
[`pdap-input-${
|
767
|
-
[`pdap-input-${
|
768
|
-
"pdap-input-error": Number((s =
|
761
|
+
[`pdap-input-${a.type}`]: !0,
|
762
|
+
[`pdap-input-${a.type}-checked`]: a.type === L(O).CHECKBOX && a.value === "true",
|
763
|
+
"pdap-input-error": Number((s = a.error) == null ? void 0 : s.length) >= 1
|
769
764
|
})
|
770
765
|
}, [
|
771
|
-
|
766
|
+
a.type === L(O).CHECKBOX ? (j(), S(er, F({
|
772
767
|
key: 0,
|
773
768
|
class: "pdap-input-checkbox"
|
774
|
-
}, { ...
|
775
|
-
|
769
|
+
}, { ...a.$attrs, ...t }), null, 16)) : (j(), S(Kt, Mt(F({ key: 1 }, { ...a.$attrs, ...a.$props })), null, 16)),
|
770
|
+
a.error ? (j(), h("div", {
|
776
771
|
key: 2,
|
777
772
|
id: r.value,
|
778
773
|
class: "pdap-input-error-message"
|
779
|
-
},
|
774
|
+
}, E(a.error), 9, tr)) : k("", !0),
|
780
775
|
f("label", {
|
781
776
|
class: "pdap-input-label",
|
782
|
-
for:
|
783
|
-
},
|
777
|
+
for: a.id
|
778
|
+
}, E(a.label), 9, rr)
|
784
779
|
], 2);
|
785
780
|
};
|
786
781
|
}
|
@@ -788,25 +783,25 @@ const Xt = ["id", "type", "name", "placeholder", "value"], Kt = /* @__PURE__ */
|
|
788
783
|
function Ae(e, t) {
|
789
784
|
var r = Object.keys(e);
|
790
785
|
if (Object.getOwnPropertySymbols) {
|
791
|
-
var
|
792
|
-
t && (
|
793
|
-
return Object.getOwnPropertyDescriptor(e,
|
794
|
-
})), r.push.apply(r,
|
786
|
+
var a = Object.getOwnPropertySymbols(e);
|
787
|
+
t && (a = a.filter(function(n) {
|
788
|
+
return Object.getOwnPropertyDescriptor(e, n).enumerable;
|
789
|
+
})), r.push.apply(r, a);
|
795
790
|
}
|
796
791
|
return r;
|
797
792
|
}
|
798
|
-
function
|
793
|
+
function W(e) {
|
799
794
|
for (var t = 1; t < arguments.length; t++) {
|
800
795
|
var r = arguments[t] != null ? arguments[t] : {};
|
801
|
-
t % 2 ? Ae(Object(r), !0).forEach(function(
|
802
|
-
|
803
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Ae(Object(r)).forEach(function(
|
804
|
-
Object.defineProperty(e,
|
796
|
+
t % 2 ? Ae(Object(r), !0).forEach(function(a) {
|
797
|
+
nr(e, a, r[a]);
|
798
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Ae(Object(r)).forEach(function(a) {
|
799
|
+
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(r, a));
|
805
800
|
});
|
806
801
|
}
|
807
802
|
return e;
|
808
803
|
}
|
809
|
-
function
|
804
|
+
function nr(e, t, r) {
|
810
805
|
return t in e ? Object.defineProperty(e, t, {
|
811
806
|
value: r,
|
812
807
|
enumerable: !0,
|
@@ -821,7 +816,7 @@ function ie(e) {
|
|
821
816
|
return e !== null && typeof e == "object" && !Array.isArray(e);
|
822
817
|
}
|
823
818
|
function de(e) {
|
824
|
-
return X(e.$validator) ?
|
819
|
+
return X(e.$validator) ? W({}, e) : {
|
825
820
|
$validator: e
|
826
821
|
};
|
827
822
|
}
|
@@ -840,7 +835,7 @@ function ve(e, t) {
|
|
840
835
|
if (!ie(t) && !X(t))
|
841
836
|
throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");
|
842
837
|
const r = de(t);
|
843
|
-
return r.$params =
|
838
|
+
return r.$params = W(W({}, r.$params || {}), e), r;
|
844
839
|
}
|
845
840
|
function K(e, t) {
|
846
841
|
if (!X(e) && typeof L(e) != "string")
|
@@ -853,7 +848,7 @@ function K(e, t) {
|
|
853
848
|
function or(e) {
|
854
849
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
855
850
|
const r = de(e);
|
856
|
-
return
|
851
|
+
return W(W({}, r), {}, {
|
857
852
|
$async: !0,
|
858
853
|
$watchTargets: t
|
859
854
|
});
|
@@ -861,28 +856,28 @@ function or(e) {
|
|
861
856
|
function ur(e) {
|
862
857
|
return {
|
863
858
|
$validator(t) {
|
864
|
-
for (var r = arguments.length,
|
865
|
-
n
|
859
|
+
for (var r = arguments.length, a = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
860
|
+
a[n - 1] = arguments[n];
|
866
861
|
return L(t).reduce((s, i, u) => {
|
867
862
|
const c = Object.entries(i).reduce((l, M) => {
|
868
863
|
let [y, m] = M;
|
869
864
|
const p = e[y] || {}, o = Object.entries(p).reduce((d, g) => {
|
870
865
|
let [w, I] = g;
|
871
|
-
const
|
872
|
-
if (d.$data[w] =
|
873
|
-
let
|
866
|
+
const b = V(I).call(this, m, i, u, ...a), R = Y(b);
|
867
|
+
if (d.$data[w] = b, d.$data.$invalid = !R || !!d.$data.$invalid, d.$data.$error = d.$data.$invalid, !R) {
|
868
|
+
let z = I.$message || "";
|
874
869
|
const ee = I.$params || {};
|
875
|
-
typeof
|
870
|
+
typeof z == "function" && (z = z({
|
876
871
|
$pending: !1,
|
877
872
|
$invalid: !R,
|
878
873
|
$params: ee,
|
879
874
|
$model: m,
|
880
|
-
$response:
|
875
|
+
$response: b
|
881
876
|
})), d.$errors.push({
|
882
877
|
$property: y,
|
883
|
-
$message:
|
878
|
+
$message: z,
|
884
879
|
$params: ee,
|
885
|
-
$response:
|
880
|
+
$response: b,
|
886
881
|
$model: m,
|
887
882
|
$pending: !1,
|
888
883
|
$validator: w
|
@@ -923,7 +918,7 @@ function ur(e) {
|
|
923
918
|
let {
|
924
919
|
$response: r
|
925
920
|
} = t;
|
926
|
-
return r ? r.$errors.map((
|
921
|
+
return r ? r.$errors.map((a) => Object.values(a).map((n) => n.map((s) => s.$message)).reduce((n, s) => n.concat(s), [])) : [];
|
927
922
|
}
|
928
923
|
};
|
929
924
|
}
|
@@ -946,7 +941,7 @@ const x = (e) => {
|
|
946
941
|
function Q() {
|
947
942
|
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
948
943
|
t[r] = arguments[r];
|
949
|
-
return (
|
944
|
+
return (a) => (a = L(a), !x(a) || t.every((n) => (n.lastIndex = 0, n.test(a))));
|
950
945
|
}
|
951
946
|
var G = /* @__PURE__ */ Object.freeze({
|
952
947
|
__proto__: null,
|
@@ -988,9 +983,9 @@ function pr(e, t) {
|
|
988
983
|
$validator: gr(e, t),
|
989
984
|
$message: (r) => {
|
990
985
|
let {
|
991
|
-
$params:
|
986
|
+
$params: a
|
992
987
|
} = r;
|
993
|
-
return `The value must be between ${
|
988
|
+
return `The value must be between ${a.min} and ${a.max}`;
|
994
989
|
},
|
995
990
|
$params: {
|
996
991
|
min: e,
|
@@ -1000,14 +995,14 @@ function pr(e, t) {
|
|
1000
995
|
};
|
1001
996
|
}
|
1002
997
|
const yr = /^(?:[A-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]{2,}(?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i;
|
1003
|
-
var
|
1004
|
-
$validator:
|
998
|
+
var mr = Q(yr), Ne = {
|
999
|
+
$validator: mr,
|
1005
1000
|
$message: "Value is not a valid email address",
|
1006
1001
|
$params: {
|
1007
1002
|
type: "email"
|
1008
1003
|
}
|
1009
1004
|
};
|
1010
|
-
function
|
1005
|
+
function jr(e) {
|
1011
1006
|
if (!x(e))
|
1012
1007
|
return !0;
|
1013
1008
|
if (typeof e != "string")
|
@@ -1022,7 +1017,7 @@ const fr = (e) => {
|
|
1022
1017
|
return t >= 0 && t <= 255;
|
1023
1018
|
};
|
1024
1019
|
var wr = {
|
1025
|
-
$validator:
|
1020
|
+
$validator: jr,
|
1026
1021
|
$message: "The value is not a valid IP address",
|
1027
1022
|
$params: {
|
1028
1023
|
type: "ipAddress"
|
@@ -1067,12 +1062,12 @@ function Dr(e) {
|
|
1067
1062
|
}
|
1068
1063
|
};
|
1069
1064
|
}
|
1070
|
-
function
|
1065
|
+
function Tr(e) {
|
1071
1066
|
return (t) => !x(t) || $e(t) >= L(e);
|
1072
1067
|
}
|
1073
|
-
function
|
1068
|
+
function Cr(e) {
|
1074
1069
|
return {
|
1075
|
-
$validator:
|
1070
|
+
$validator: Tr(e),
|
1076
1071
|
$message: (t) => {
|
1077
1072
|
let {
|
1078
1073
|
$params: r
|
@@ -1100,11 +1095,11 @@ function Ir(e) {
|
|
1100
1095
|
return function(t, r) {
|
1101
1096
|
if (typeof e != "function")
|
1102
1097
|
return ke(L(e), t);
|
1103
|
-
const
|
1104
|
-
return ke(
|
1098
|
+
const a = e.call(this, t, r);
|
1099
|
+
return ke(a, t);
|
1105
1100
|
};
|
1106
1101
|
}
|
1107
|
-
function
|
1102
|
+
function br(e) {
|
1108
1103
|
return {
|
1109
1104
|
$validator: Ir(e),
|
1110
1105
|
$message: "The value is required",
|
@@ -1115,17 +1110,17 @@ function Sr(e) {
|
|
1115
1110
|
};
|
1116
1111
|
}
|
1117
1112
|
const Pe = (e, t) => e ? !0 : x(typeof t == "string" ? t.trim() : t);
|
1118
|
-
function
|
1113
|
+
function Sr(e) {
|
1119
1114
|
return function(t, r) {
|
1120
1115
|
if (typeof e != "function")
|
1121
1116
|
return Pe(L(e), t);
|
1122
|
-
const
|
1123
|
-
return Pe(
|
1117
|
+
const a = e.call(this, t, r);
|
1118
|
+
return Pe(a, t);
|
1124
1119
|
};
|
1125
1120
|
}
|
1126
|
-
function
|
1121
|
+
function Er(e) {
|
1127
1122
|
return {
|
1128
|
-
$validator:
|
1123
|
+
$validator: Sr(e),
|
1129
1124
|
$message: "The value is required",
|
1130
1125
|
$params: {
|
1131
1126
|
type: "requiredUnless",
|
@@ -1136,7 +1131,7 @@ function zr(e) {
|
|
1136
1131
|
function Or(e) {
|
1137
1132
|
return (t) => L(t) === L(e);
|
1138
1133
|
}
|
1139
|
-
function
|
1134
|
+
function zr(e) {
|
1140
1135
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "other";
|
1141
1136
|
return {
|
1142
1137
|
$validator: Or(e),
|
@@ -1148,8 +1143,8 @@ function _r(e) {
|
|
1148
1143
|
}
|
1149
1144
|
};
|
1150
1145
|
}
|
1151
|
-
const
|
1152
|
-
var Ar = Q(
|
1146
|
+
const _r = /^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i;
|
1147
|
+
var Ar = Q(_r), kr = {
|
1153
1148
|
$validator: Ar,
|
1154
1149
|
$message: "The value is not a valid URL address",
|
1155
1150
|
$params: {
|
@@ -1158,17 +1153,17 @@ var Ar = Q(br), kr = {
|
|
1158
1153
|
};
|
1159
1154
|
function Pr(e) {
|
1160
1155
|
return function() {
|
1161
|
-
for (var t = arguments.length, r = new Array(t),
|
1162
|
-
r[
|
1163
|
-
return e.reduce((
|
1156
|
+
for (var t = arguments.length, r = new Array(t), a = 0; a < t; a++)
|
1157
|
+
r[a] = arguments[a];
|
1158
|
+
return e.reduce((n, s) => Y(n) ? n : V(s).apply(this, r), !1);
|
1164
1159
|
};
|
1165
1160
|
}
|
1166
1161
|
function Yr(e) {
|
1167
1162
|
return function() {
|
1168
|
-
for (var t = arguments.length, r = new Array(t),
|
1169
|
-
r[
|
1170
|
-
return e.reduce(async (
|
1171
|
-
const i = await
|
1163
|
+
for (var t = arguments.length, r = new Array(t), a = 0; a < t; a++)
|
1164
|
+
r[a] = arguments[a];
|
1165
|
+
return e.reduce(async (n, s) => {
|
1166
|
+
const i = await n;
|
1172
1167
|
return Y(i) ? i : V(s).apply(this, r);
|
1173
1168
|
}, Promise.resolve(!1));
|
1174
1169
|
};
|
@@ -1176,12 +1171,12 @@ function Yr(e) {
|
|
1176
1171
|
function Qr() {
|
1177
1172
|
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
1178
1173
|
t[r] = arguments[r];
|
1179
|
-
const
|
1174
|
+
const a = t.some((i) => i.$async), n = t.reduce((i, u) => u.$watchTargets ? i.concat(u.$watchTargets) : i, []);
|
1180
1175
|
let s = () => !1;
|
1181
|
-
return t.length && (s =
|
1182
|
-
$async:
|
1176
|
+
return t.length && (s = a ? Yr(t) : Pr(t)), {
|
1177
|
+
$async: a,
|
1183
1178
|
$validator: s,
|
1184
|
-
$watchTargets:
|
1179
|
+
$watchTargets: n
|
1185
1180
|
};
|
1186
1181
|
}
|
1187
1182
|
function Rr() {
|
@@ -1191,17 +1186,17 @@ function Rr() {
|
|
1191
1186
|
}
|
1192
1187
|
function Ur(e) {
|
1193
1188
|
return function() {
|
1194
|
-
for (var t = arguments.length, r = new Array(t),
|
1195
|
-
r[
|
1196
|
-
return e.reduce((
|
1189
|
+
for (var t = arguments.length, r = new Array(t), a = 0; a < t; a++)
|
1190
|
+
r[a] = arguments[a];
|
1191
|
+
return e.reduce((n, s) => Y(n) ? V(s).apply(this, r) : n, !0);
|
1197
1192
|
};
|
1198
1193
|
}
|
1199
1194
|
function Vr(e) {
|
1200
1195
|
return function() {
|
1201
|
-
for (var t = arguments.length, r = new Array(t),
|
1202
|
-
r[
|
1203
|
-
return e.reduce(async (
|
1204
|
-
const i = await
|
1196
|
+
for (var t = arguments.length, r = new Array(t), a = 0; a < t; a++)
|
1197
|
+
r[a] = arguments[a];
|
1198
|
+
return e.reduce(async (n, s) => {
|
1199
|
+
const i = await n;
|
1205
1200
|
return Y(i) ? V(s).apply(this, r) : i;
|
1206
1201
|
}, Promise.resolve(!0));
|
1207
1202
|
};
|
@@ -1209,30 +1204,30 @@ function Vr(e) {
|
|
1209
1204
|
function Br() {
|
1210
1205
|
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
1211
1206
|
t[r] = arguments[r];
|
1212
|
-
const
|
1207
|
+
const a = t.some((i) => i.$async), n = t.reduce((i, u) => u.$watchTargets ? i.concat(u.$watchTargets) : i, []);
|
1213
1208
|
let s = () => !1;
|
1214
|
-
return t.length && (s =
|
1215
|
-
$async:
|
1209
|
+
return t.length && (s = a ? Vr(t) : Ur(t)), {
|
1210
|
+
$async: a,
|
1216
1211
|
$validator: s,
|
1217
|
-
$watchTargets:
|
1212
|
+
$watchTargets: n
|
1218
1213
|
};
|
1219
1214
|
}
|
1220
|
-
function
|
1215
|
+
function Fr() {
|
1221
1216
|
return ve({
|
1222
1217
|
type: "and"
|
1223
1218
|
}, K("The value does not match all of the provided validators", Br(...arguments)));
|
1224
1219
|
}
|
1225
|
-
function
|
1220
|
+
function Wr(e) {
|
1226
1221
|
return function(t, r) {
|
1227
1222
|
if (!x(t))
|
1228
1223
|
return !0;
|
1229
|
-
const
|
1230
|
-
return sr(
|
1224
|
+
const a = V(e).call(this, t, r);
|
1225
|
+
return sr(a) ? a.then((n) => !Y(n)) : !Y(a);
|
1231
1226
|
};
|
1232
1227
|
}
|
1233
1228
|
function Gr(e) {
|
1234
1229
|
return {
|
1235
|
-
$validator:
|
1230
|
+
$validator: Wr(e),
|
1236
1231
|
$message: "The value does not match the provided validator",
|
1237
1232
|
$params: {
|
1238
1233
|
type: "not"
|
@@ -1278,32 +1273,32 @@ var Xr = (e) => ({
|
|
1278
1273
|
$params: {
|
1279
1274
|
type: "integer"
|
1280
1275
|
}
|
1281
|
-
},
|
1282
|
-
$validator:
|
1276
|
+
}, ea = Q(/^[-]?\d*(\.\d+)?$/), ta = {
|
1277
|
+
$validator: ea,
|
1283
1278
|
$message: "Value must be decimal",
|
1284
1279
|
$params: {
|
1285
1280
|
type: "decimal"
|
1286
1281
|
}
|
1287
1282
|
};
|
1288
|
-
function
|
1283
|
+
function ra(e) {
|
1289
1284
|
let {
|
1290
1285
|
t,
|
1291
|
-
messagePath: r = (
|
1286
|
+
messagePath: r = (n) => {
|
1292
1287
|
let {
|
1293
1288
|
$validator: s
|
1294
|
-
} =
|
1289
|
+
} = n;
|
1295
1290
|
return `validations.${s}`;
|
1296
1291
|
},
|
1297
|
-
messageParams:
|
1292
|
+
messageParams: a = (n) => n
|
1298
1293
|
} = e;
|
1299
1294
|
return function(s) {
|
1300
1295
|
let {
|
1301
1296
|
withArguments: i = !1,
|
1302
1297
|
messagePath: u = r,
|
1303
|
-
messageParams: c =
|
1298
|
+
messageParams: c = a
|
1304
1299
|
} = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
1305
1300
|
function l(M) {
|
1306
|
-
return t(u(M), c(
|
1301
|
+
return t(u(M), c(W({
|
1307
1302
|
model: M.$model,
|
1308
1303
|
property: M.$property,
|
1309
1304
|
pending: M.$pending,
|
@@ -1322,10 +1317,10 @@ const Ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1322
1317
|
__proto__: null,
|
1323
1318
|
alpha: lr,
|
1324
1319
|
alphaNum: dr,
|
1325
|
-
and:
|
1320
|
+
and: Fr,
|
1326
1321
|
between: pr,
|
1327
|
-
createI18nMessage:
|
1328
|
-
decimal:
|
1322
|
+
createI18nMessage: ra,
|
1323
|
+
decimal: ta,
|
1329
1324
|
email: Ne,
|
1330
1325
|
helpers: G,
|
1331
1326
|
integer: qr,
|
@@ -1333,15 +1328,15 @@ const Ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1333
1328
|
macAddress: $r,
|
1334
1329
|
maxLength: Dr,
|
1335
1330
|
maxValue: Xr,
|
1336
|
-
minLength:
|
1331
|
+
minLength: Cr,
|
1337
1332
|
minValue: Hr,
|
1338
1333
|
not: Gr,
|
1339
1334
|
numeric: Mr,
|
1340
1335
|
or: Rr,
|
1341
1336
|
required: De,
|
1342
|
-
requiredIf:
|
1343
|
-
requiredUnless:
|
1344
|
-
sameAs:
|
1337
|
+
requiredIf: br,
|
1338
|
+
requiredUnless: Er,
|
1339
|
+
sameAs: zr,
|
1345
1340
|
url: kr
|
1346
1341
|
}, Symbol.toStringTag, { value: "Module" })), qe = G.regex(
|
1347
1342
|
/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$ %^&*-]).{8,}$/
|
@@ -1358,85 +1353,86 @@ function Re(e) {
|
|
1358
1353
|
function Ue(e) {
|
1359
1354
|
return e === "password";
|
1360
1355
|
}
|
1361
|
-
function
|
1356
|
+
function aa(e, t) {
|
1362
1357
|
return {
|
1363
1358
|
[e]: Ke[e](t)
|
1364
1359
|
};
|
1365
1360
|
}
|
1366
|
-
function
|
1361
|
+
function na(e, t, r) {
|
1367
1362
|
return {
|
1368
1363
|
[e]: G.withMessage(r, Ke[e](t))
|
1369
1364
|
};
|
1370
1365
|
}
|
1371
|
-
function
|
1366
|
+
function sa() {
|
1372
1367
|
return { required: De };
|
1373
1368
|
}
|
1374
|
-
function
|
1369
|
+
function oa(e) {
|
1375
1370
|
return {
|
1376
1371
|
required: G.withMessage(e, De)
|
1377
1372
|
};
|
1378
1373
|
}
|
1379
|
-
function
|
1374
|
+
function ua() {
|
1380
1375
|
return { email: Ne };
|
1381
1376
|
}
|
1382
|
-
function
|
1377
|
+
function ia(e) {
|
1383
1378
|
return {
|
1384
1379
|
email: G.withMessage(e, Ne)
|
1385
1380
|
};
|
1386
1381
|
}
|
1387
|
-
function
|
1382
|
+
function la() {
|
1388
1383
|
return { password: qe };
|
1389
1384
|
}
|
1390
|
-
function
|
1385
|
+
function ca(e) {
|
1391
1386
|
return {
|
1392
1387
|
password: G.withMessage(e, qe)
|
1393
1388
|
};
|
1394
1389
|
}
|
1395
|
-
function
|
1390
|
+
function da(e, t) {
|
1396
1391
|
if (Ye(e) && typeof t.message == "string" && typeof t.value == "number")
|
1397
|
-
return
|
1392
|
+
return na(
|
1398
1393
|
e,
|
1399
1394
|
t.value,
|
1400
1395
|
t.message
|
1401
1396
|
);
|
1402
1397
|
if (Ye(e) && typeof t.message > "u" && typeof t.value == "number")
|
1403
|
-
return
|
1398
|
+
return aa(e, t.value);
|
1404
1399
|
if (Re(e) && typeof t.message == "string")
|
1405
|
-
return
|
1400
|
+
return ia(t.message);
|
1406
1401
|
if (Re(e) && typeof t.message > "u")
|
1407
|
-
return
|
1402
|
+
return ua();
|
1408
1403
|
if (Ue(e) && typeof t.message == "string")
|
1409
|
-
return
|
1404
|
+
return ca(t.message);
|
1410
1405
|
if (Ue(e) && typeof t.message > "u")
|
1411
|
-
return
|
1406
|
+
return la();
|
1412
1407
|
if (Qe(e) && typeof t.message == "string")
|
1413
|
-
return
|
1408
|
+
return oa(t.message);
|
1414
1409
|
if (Qe(e) && typeof t.message > "u")
|
1415
|
-
return
|
1410
|
+
return sa();
|
1416
1411
|
throw new Error("No valid rule detected");
|
1417
1412
|
}
|
1418
|
-
const
|
1413
|
+
const La = ["id", "name", "onSubmit"], Ma = {
|
1419
1414
|
key: 0,
|
1420
1415
|
class: "pdap-form-error-message"
|
1421
|
-
},
|
1416
|
+
}, ga = {
|
1422
1417
|
name: "PdapForm"
|
1423
|
-
},
|
1424
|
-
...
|
1418
|
+
}, pa = /* @__PURE__ */ C({
|
1419
|
+
...ga,
|
1425
1420
|
props: {
|
1426
1421
|
error: { default: null },
|
1427
1422
|
id: {},
|
1428
1423
|
name: {},
|
1429
|
-
schema: {}
|
1424
|
+
schema: {},
|
1425
|
+
resetOn: { type: [String, Boolean], default: "submit" }
|
1430
1426
|
},
|
1431
1427
|
emits: ["submit", "change"],
|
1432
1428
|
setup(e, { emit: t }) {
|
1433
|
-
const r = e,
|
1429
|
+
const r = e, a = t, n = v(
|
1434
1430
|
() => r.schema.map((m) => {
|
1435
1431
|
const p = { ...m };
|
1436
1432
|
return delete p.validators, p;
|
1437
1433
|
})
|
1438
1434
|
), s = N(
|
1439
|
-
|
1435
|
+
n.value.reduce((m, p) => {
|
1440
1436
|
switch (p.type) {
|
1441
1437
|
case O.CHECKBOX:
|
1442
1438
|
return { ...m, [p.name]: String(p.defaultChecked) };
|
@@ -1450,7 +1446,7 @@ const Mn = ["id", "name"], gn = {
|
|
1450
1446
|
const o = Object.entries(p.validators ?? {}).reduce(
|
1451
1447
|
(d, [g, w]) => ({
|
1452
1448
|
...d,
|
1453
|
-
...
|
1449
|
+
...da(g, w)
|
1454
1450
|
}),
|
1455
1451
|
{}
|
1456
1452
|
);
|
@@ -1462,57 +1458,61 @@ const Mn = ["id", "name"], gn = {
|
|
1462
1458
|
};
|
1463
1459
|
}, {}), u = Jt(i, s, { $autoDirty: !1, $lazy: !0 }), c = N(r.error);
|
1464
1460
|
function l(m, p) {
|
1465
|
-
const o = p.target, d =
|
1466
|
-
|
1461
|
+
const o = p.target, d = (() => {
|
1462
|
+
switch (m.type) {
|
1463
|
+
case O.CHECKBOX:
|
1464
|
+
return o.checked ? "true" : "false";
|
1465
|
+
default:
|
1466
|
+
return o.value;
|
1467
|
+
}
|
1468
|
+
})();
|
1469
|
+
s.value[m.name] = d, a("change", s.value);
|
1467
1470
|
}
|
1468
1471
|
Ie(() => {
|
1469
1472
|
r.error ? c.value = r.error : c.value && u.value.$errors.length === 0 ? c.value = null : !c.value && u.value.$errors.length > 0 && (c.value = "Please update this form to correct the errors");
|
1470
1473
|
}), Ie(() => {
|
1474
|
+
r.resetOn && r.resetOn !== "submit" && M();
|
1471
1475
|
});
|
1472
1476
|
function M() {
|
1473
|
-
|
1477
|
+
u.value.$reset(), s.value = Object.entries(s).reduce((m, [p]) => ({ ...m, [p]: "" }), {});
|
1474
1478
|
}
|
1475
|
-
async function y(
|
1476
|
-
|
1477
|
-
n("submit", { ...s.value }), u.value.$reset(), m.target.reset(), s.value = Object.entries(s).reduce((d, [g]) => ({ ...d, [g]: "" }), {});
|
1478
|
-
return;
|
1479
|
-
}
|
1479
|
+
async function y() {
|
1480
|
+
await u.value.$validate() && (a("submit", { ...s.value }), r.resetOn === "submit" && M());
|
1480
1481
|
}
|
1481
1482
|
return (m, p) => (j(), h("form", {
|
1482
1483
|
id: m.id,
|
1483
1484
|
name: m.name,
|
1484
1485
|
class: "pdap-form",
|
1485
|
-
|
1486
|
-
onSubmit: p[0] || (p[0] = je((o) => y(o), ["prevent"]))
|
1486
|
+
onSubmit: me(y, ["prevent"])
|
1487
1487
|
}, [
|
1488
|
-
typeof c.value == "string" ? (j(), h("div",
|
1489
|
-
(j(!0), h(B, null, ce(
|
1488
|
+
typeof c.value == "string" ? (j(), h("div", Ma, E(c.value), 1)) : k("", !0),
|
1489
|
+
(j(!0), h(B, null, ce(n.value, (o) => {
|
1490
1490
|
var d, g, w, I;
|
1491
|
-
return j(),
|
1491
|
+
return j(), S(ar, F(o, {
|
1492
1492
|
key: o.name,
|
1493
1493
|
error: (d = L(u)[o.name]) != null && d.$error ? (I = (w = (g = L(u)[o.name]) == null ? void 0 : g.$errors) == null ? void 0 : w[0]) == null ? void 0 : I.$message : "",
|
1494
1494
|
value: s.value[o.name],
|
1495
|
-
|
1496
|
-
}), null, 16, ["error", "value", "
|
1495
|
+
onInput: (Z) => l(o, Z)
|
1496
|
+
}), null, 16, ["error", "value", "onInput"]);
|
1497
1497
|
}), 128)),
|
1498
1498
|
H(m.$slots, "default")
|
1499
|
-
], 40,
|
1499
|
+
], 40, La));
|
1500
1500
|
}
|
1501
1501
|
});
|
1502
|
-
const
|
1502
|
+
const ya = (e) => (gt("data-v-3158c5fc"), e = e(), pt(), e), ma = ["aria-label", "aria-expanded", "onKeyup"], ja = /* @__PURE__ */ ya(() => /* @__PURE__ */ f("svg", {
|
1503
1503
|
"aria-label": "Menu",
|
1504
1504
|
xmlns: "http://www.w3.org/2000/svg",
|
1505
1505
|
viewBox: "0 0 448 512"
|
1506
1506
|
}, [
|
1507
1507
|
/* @__PURE__ */ f("path", { d: "M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z" })
|
1508
|
-
], -1)),
|
1509
|
-
|
1510
|
-
],
|
1508
|
+
], -1)), fa = [
|
1509
|
+
ja
|
1510
|
+
], wa = ["aria-hidden"], ha = ["href"], va = {
|
1511
1511
|
name: "PdapHeader"
|
1512
|
-
},
|
1513
|
-
|
1512
|
+
}, $a = /* @__PURE__ */ C({
|
1513
|
+
...va,
|
1514
1514
|
setup(e) {
|
1515
|
-
let t =
|
1515
|
+
let t = ae("navLinks");
|
1516
1516
|
typeof t > "u" && (t = [], console.error(
|
1517
1517
|
`Hey, PDAP developer
|
1518
1518
|
`,
|
@@ -1523,17 +1523,17 @@ const jn = (e) => (gt("data-v-3158c5fc"), e = e(), pt(), e), mn = ["aria-label",
|
|
1523
1523
|
isMobile: !0
|
1524
1524
|
});
|
1525
1525
|
Be(() => {
|
1526
|
-
|
1526
|
+
a(), window.addEventListener("resize", a);
|
1527
1527
|
}), he(() => {
|
1528
|
-
window.removeEventListener("resize",
|
1528
|
+
window.removeEventListener("resize", a);
|
1529
1529
|
});
|
1530
|
-
async function n() {
|
1531
|
-
window.innerWidth <= 1024 ? r.isMobile = !0 : r.isMobile = !1, await ae();
|
1532
|
-
}
|
1533
1530
|
async function a() {
|
1531
|
+
window.innerWidth <= 1024 ? r.isMobile = !0 : r.isMobile = !1, await ne();
|
1532
|
+
}
|
1533
|
+
async function n() {
|
1534
1534
|
var i, u;
|
1535
1535
|
const s = document.querySelector("body");
|
1536
|
-
!r.isExpanded && r.isMobile ? (r.isExpanded = !0, s != null && s.classList.contains("lock-scroll") || (i = document.querySelector("body")) == null || i.classList.add("lock-scroll")) : r.isExpanded && r.isMobile && (r.isExpanded = !1, (u = document.querySelector("body")) == null || u.classList.remove("lock-scroll")), await
|
1536
|
+
!r.isExpanded && r.isMobile ? (r.isExpanded = !0, s != null && s.classList.contains("lock-scroll") || (i = document.querySelector("body")) == null || i.classList.add("lock-scroll")) : r.isExpanded && r.isMobile && (r.isExpanded = !1, (u = document.querySelector("body")) == null || u.classList.remove("lock-scroll")), await ne();
|
1537
1537
|
}
|
1538
1538
|
return (s, i) => (j(), h(B, null, [
|
1539
1539
|
f("div", {
|
@@ -1543,9 +1543,9 @@ const jn = (e) => (gt("data-v-3158c5fc"), e = e(), pt(), e), mn = ["aria-label",
|
|
1543
1543
|
class: "pdap-nav-open-button",
|
1544
1544
|
role: "button",
|
1545
1545
|
tabindex: 0,
|
1546
|
-
onClick:
|
1547
|
-
onKeyup:
|
1548
|
-
},
|
1546
|
+
onClick: n,
|
1547
|
+
onKeyup: je(n, ["enter"])
|
1548
|
+
}, fa, 40, ma),
|
1549
1549
|
P(se, null, {
|
1550
1550
|
default: D(() => [
|
1551
1551
|
fe(f("nav", {
|
@@ -1563,24 +1563,24 @@ const jn = (e) => (gt("data-v-3158c5fc"), e = e(), pt(), e), mn = ["aria-label",
|
|
1563
1563
|
href: u.href,
|
1564
1564
|
target: "_blank",
|
1565
1565
|
referrerpolicy: "no-referrer",
|
1566
|
-
onClick:
|
1567
|
-
},
|
1568
|
-
u.path ? (j(),
|
1566
|
+
onClick: n
|
1567
|
+
}, E(u.text), 9, ha)) : k("", !0),
|
1568
|
+
u.path ? (j(), S(L(oe), {
|
1569
1569
|
key: 1,
|
1570
1570
|
"active-class": "pdap-nav-link-current",
|
1571
1571
|
"exact-active-class": "pdap-nav-link-current-exact",
|
1572
1572
|
class: "pdap-nav-link",
|
1573
1573
|
to: u.path,
|
1574
|
-
onClick:
|
1574
|
+
onClick: n
|
1575
1575
|
}, {
|
1576
1576
|
default: D(() => [
|
1577
|
-
|
1577
|
+
T(E(u.text), 1)
|
1578
1578
|
]),
|
1579
1579
|
_: 2
|
1580
1580
|
}, 1032, ["to"])) : k("", !0)
|
1581
1581
|
]))), 128))
|
1582
|
-
], 8,
|
1583
|
-
[
|
1582
|
+
], 8, wa), [
|
1583
|
+
[Fe, r.isMobile && r.isExpanded || !r.isMobile]
|
1584
1584
|
])
|
1585
1585
|
]),
|
1586
1586
|
_: 1
|
@@ -1588,27 +1588,27 @@ const jn = (e) => (gt("data-v-3158c5fc"), e = e(), pt(), e), mn = ["aria-label",
|
|
1588
1588
|
], 64));
|
1589
1589
|
}
|
1590
1590
|
});
|
1591
|
-
const
|
1591
|
+
const Te = (e, t) => {
|
1592
1592
|
const r = e.__vccOpts || e;
|
1593
|
-
for (const [
|
1594
|
-
r[
|
1593
|
+
for (const [a, n] of t)
|
1594
|
+
r[a] = n;
|
1595
1595
|
return r;
|
1596
|
-
},
|
1596
|
+
}, Na = /* @__PURE__ */ Te($a, [["__scopeId", "data-v-3158c5fc"]]), Da = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI0LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA1MDkuNCAxMTEuNyIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNTA5LjQgMTExLjc7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHBhdGggZD0iTTAsMTAwLjhMMjYuOCwzLjJoOS4zTDkuNCwxMDAuOEgweiIvPgo8cGF0aCBkPSJNMTIzLjIsMjdoLTQuN3YxNi42aC05LjFWMS45aDEzLjhjOS4zLDAsMTUuMiw0LjUsMTUuMiwxMi4zUzEzMi43LDI3LDEyMy4yLDI3eiBNMTIzLjIsOS42aC00Ljd2OS43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OHoKCSIvPgo8cG9seWdvbiBwb2ludHM9IjkxLjcsMjAuMiA3Ni4yLDIwLjIgODguNCw4IDgzLjEsMi43IDcxLjUsMTQuMyA3MS41LDAgNjQsMCA2NCwxNC4zIDUyLjMsMi43IDQ3LDggNTkuMiwyMC4yIDQzLjcsMjAuMiA0My43LDI3LjggCgk1OC4xLDI3LjggNDcsMzguOCA1Mi4zLDQ0LjEgNjQsMzIuNSA2NCw0OCA3MS41LDQ4IDcxLjUsMzIuNSA4My4xLDQ0LjEgODguNCwzOC44IDc3LjQsMjcuOCA5MS43LDI3LjggIi8+Cjwvc3ZnPgo=", Ta = ["href"], Ca = ["src"], xa = ["src"], Ia = {
|
1597
1597
|
name: "PdapHeader"
|
1598
|
-
},
|
1599
|
-
...
|
1598
|
+
}, nn = /* @__PURE__ */ C({
|
1599
|
+
...Ia,
|
1600
1600
|
props: {
|
1601
|
-
logoImageSrc: { default:
|
1601
|
+
logoImageSrc: { default: Da },
|
1602
1602
|
logoImageAnchorPath: { default: "/" }
|
1603
1603
|
},
|
1604
1604
|
setup(e) {
|
1605
|
-
const t = e, r = N(null),
|
1606
|
-
|
1607
|
-
|
1605
|
+
const t = e, r = N(null), a = t.logoImageAnchorPath.startsWith("/");
|
1606
|
+
We(() => {
|
1607
|
+
n(), window.addEventListener("resize", n);
|
1608
1608
|
}), he(() => {
|
1609
|
-
window.removeEventListener("resize",
|
1609
|
+
window.removeEventListener("resize", n);
|
1610
1610
|
});
|
1611
|
-
function
|
1611
|
+
function n() {
|
1612
1612
|
var s;
|
1613
1613
|
r.value && ((s = document.querySelector(":root")) == null || s.style.setProperty(
|
1614
1614
|
"--header-height",
|
@@ -1620,7 +1620,7 @@ const Ce = (e, t) => {
|
|
1620
1620
|
ref: r,
|
1621
1621
|
class: "pdap-header"
|
1622
1622
|
}, [
|
1623
|
-
L(
|
1623
|
+
L(a) ? (j(), S(L(oe), {
|
1624
1624
|
key: 1,
|
1625
1625
|
to: s.logoImageAnchorPath,
|
1626
1626
|
class: "logo"
|
@@ -1631,7 +1631,7 @@ const Ce = (e, t) => {
|
|
1631
1631
|
loading: "lazy",
|
1632
1632
|
width: "250",
|
1633
1633
|
alt: "Police Data Accessibility Project Logo"
|
1634
|
-
}, null, 8,
|
1634
|
+
}, null, 8, xa)
|
1635
1635
|
]),
|
1636
1636
|
_: 1
|
1637
1637
|
}, 8, ["to"])) : (j(), h("a", {
|
@@ -1644,27 +1644,27 @@ const Ce = (e, t) => {
|
|
1644
1644
|
loading: "lazy",
|
1645
1645
|
width: "250",
|
1646
1646
|
alt: "Police Data Accessibility Project Logo"
|
1647
|
-
}, null, 8,
|
1648
|
-
], 8,
|
1649
|
-
P(
|
1647
|
+
}, null, 8, Ca)
|
1648
|
+
], 8, Ta)),
|
1649
|
+
P(Na)
|
1650
1650
|
], 512));
|
1651
1651
|
}
|
1652
1652
|
});
|
1653
|
-
const
|
1653
|
+
const ba = /* @__PURE__ */ f("div", { class: "pdap-flex-container" }, [
|
1654
1654
|
/* @__PURE__ */ f("h2", { class: "mt-0" }, "Search our database"),
|
1655
1655
|
/* @__PURE__ */ f("p", { class: "pb-4 md:pb-8" }, [
|
1656
|
-
/* @__PURE__ */
|
1656
|
+
/* @__PURE__ */ T(" If you are looking for something specific, we may already be tracking it. "),
|
1657
1657
|
/* @__PURE__ */ f("a", { href: "https://pdap.io/data" }, "Learn more about the data here.")
|
1658
1658
|
])
|
1659
|
-
], -1),
|
1659
|
+
], -1), Sa = { class: "pdap-quick-search-form h-full max-h-[75-vh] justify-start p-0" }, Ea = { class: "max-w-[unset] text-med" }, Oa = ["href"], za = ["href"], _a = {
|
1660
1660
|
name: "QuickSearchForm"
|
1661
|
-
},
|
1662
|
-
...
|
1661
|
+
}, sn = /* @__PURE__ */ C({
|
1662
|
+
..._a,
|
1663
1663
|
props: {
|
1664
1664
|
baseUrlForRedirect: { default: "https://data-sources.pdap.io" }
|
1665
1665
|
},
|
1666
1666
|
setup(e) {
|
1667
|
-
const t =
|
1667
|
+
const t = jt(), r = e, a = [
|
1668
1668
|
{
|
1669
1669
|
id: "search-term",
|
1670
1670
|
name: "searchTerm",
|
@@ -1681,13 +1681,13 @@ const En = /* @__PURE__ */ f("div", { class: "pdap-flex-container" }, [
|
|
1681
1681
|
placeholder: "Enter a place, or 'all'",
|
1682
1682
|
value: ""
|
1683
1683
|
}
|
1684
|
-
],
|
1684
|
+
], n = N(void 0), s = t.getRoutes().some((c) => c.path.includes("/search/"));
|
1685
1685
|
function i(c) {
|
1686
|
-
|
1686
|
+
n.value && Object.values(c).some(Boolean) && (n.value = void 0);
|
1687
1687
|
}
|
1688
1688
|
function u(c) {
|
1689
1689
|
if (Object.values(c).every((y) => !y)) {
|
1690
|
-
|
1690
|
+
n.value = "Either a search term or a location is required.";
|
1691
1691
|
return;
|
1692
1692
|
}
|
1693
1693
|
let { location: l, searchTerm: M } = c;
|
@@ -1696,13 +1696,13 @@ const En = /* @__PURE__ */ f("div", { class: "pdap-flex-container" }, [
|
|
1696
1696
|
);
|
1697
1697
|
}
|
1698
1698
|
return (c, l) => (j(), h(B, null, [
|
1699
|
-
|
1700
|
-
f("div",
|
1701
|
-
P(
|
1699
|
+
ba,
|
1700
|
+
f("div", Sa, [
|
1701
|
+
P(pa, {
|
1702
1702
|
id: "quick-search-form",
|
1703
1703
|
class: "flex flex-wrap gap-x-4",
|
1704
|
-
error:
|
1705
|
-
schema:
|
1704
|
+
error: n.value,
|
1705
|
+
schema: a,
|
1706
1706
|
name: "quickSearchForm",
|
1707
1707
|
onChange: i,
|
1708
1708
|
onSubmit: u
|
@@ -1713,21 +1713,21 @@ const En = /* @__PURE__ */ f("div", { class: "pdap-flex-container" }, [
|
|
1713
1713
|
class: "flex-grow-0 flex-shrink-0 basis-full max-w-[unset] mt-4"
|
1714
1714
|
}, {
|
1715
1715
|
default: D(() => [
|
1716
|
-
|
1716
|
+
T("Search Data Sources")
|
1717
1717
|
]),
|
1718
1718
|
_: 1
|
1719
1719
|
})
|
1720
1720
|
]),
|
1721
1721
|
_: 1
|
1722
1722
|
}, 8, ["error"]),
|
1723
|
-
f("p",
|
1724
|
-
|
1725
|
-
L(s) ? (j(),
|
1723
|
+
f("p", Ea, [
|
1724
|
+
T(" For example, you could search for "),
|
1725
|
+
L(s) ? (j(), S(L(oe), {
|
1726
1726
|
key: 0,
|
1727
1727
|
to: "/search/stops/pittsburgh"
|
1728
1728
|
}, {
|
1729
1729
|
default: D(() => [
|
1730
|
-
|
1730
|
+
T(" stops in Pittsburgh ")
|
1731
1731
|
]),
|
1732
1732
|
_: 1
|
1733
1733
|
})) : (j(), h("a", {
|
@@ -1735,14 +1735,14 @@ const En = /* @__PURE__ */ f("div", { class: "pdap-flex-container" }, [
|
|
1735
1735
|
target: "_blank",
|
1736
1736
|
rel: "noreferrer",
|
1737
1737
|
href: `${r.baseUrlForRedirect}/search/stops/pittsburgh`
|
1738
|
-
}, " stops in Pittsburgh ", 8,
|
1739
|
-
|
1740
|
-
L(s) ? (j(),
|
1738
|
+
}, " stops in Pittsburgh ", 8, Oa)),
|
1739
|
+
T(" or "),
|
1740
|
+
L(s) ? (j(), S(L(oe), {
|
1741
1741
|
key: 2,
|
1742
1742
|
to: "/search/complaints/all"
|
1743
1743
|
}, {
|
1744
1744
|
default: D(() => [
|
1745
|
-
|
1745
|
+
T(" complaints everywhere ")
|
1746
1746
|
]),
|
1747
1747
|
_: 1
|
1748
1748
|
})) : (j(), h("a", {
|
@@ -1750,17 +1750,17 @@ const En = /* @__PURE__ */ f("div", { class: "pdap-flex-container" }, [
|
|
1750
1750
|
target: "_blank",
|
1751
1751
|
rel: "noreferrer",
|
1752
1752
|
href: `${r.baseUrlForRedirect}/search/complaints/all`
|
1753
|
-
}, " complaints everywhere ", 8,
|
1754
|
-
|
1753
|
+
}, " complaints everywhere ", 8, za)),
|
1754
|
+
T(" . ")
|
1755
1755
|
])
|
1756
1756
|
])
|
1757
1757
|
], 64));
|
1758
1758
|
}
|
1759
1759
|
});
|
1760
|
-
const
|
1760
|
+
const Aa = ["alt", "src"], ka = {
|
1761
1761
|
name: "TileIcon"
|
1762
|
-
},
|
1763
|
-
...
|
1762
|
+
}, on = /* @__PURE__ */ C({
|
1763
|
+
...ka,
|
1764
1764
|
props: {
|
1765
1765
|
imgAltText: {},
|
1766
1766
|
imgSrc: {}
|
@@ -1770,24 +1770,24 @@ const kn = ["alt", "src"], Pn = {
|
|
1770
1770
|
class: "pdap-tile-icon",
|
1771
1771
|
alt: t.imgAltText,
|
1772
1772
|
src: t.imgSrc
|
1773
|
-
}, null, 8,
|
1773
|
+
}, null, 8, Aa));
|
1774
1774
|
}
|
1775
1775
|
});
|
1776
1776
|
var re = /* @__PURE__ */ ((e) => (e.PRESS = "press", e.HOVER = "hover", e))(re || {});
|
1777
|
-
const
|
1777
|
+
const Pa = {
|
1778
1778
|
beforeMount(e, t) {
|
1779
1779
|
const r = e;
|
1780
|
-
r.clickOutsideEvent = function(
|
1781
|
-
e ===
|
1780
|
+
r.clickOutsideEvent = function(n) {
|
1781
|
+
e === n.target || r.contains(n.target) || t.value(n);
|
1782
1782
|
}, document.addEventListener("click", r.clickOutsideEvent), document.addEventListener("keyup", r.clickOutsideEvent);
|
1783
1783
|
},
|
1784
1784
|
unmounted(e) {
|
1785
1785
|
e.clickOutsideEvent && (document.removeEventListener("click", e.clickOutsideEvent), document.removeEventListener("keyup", e.clickOutsideEvent));
|
1786
1786
|
}
|
1787
|
-
},
|
1787
|
+
}, Ya = ["onKeydown"], Qa = ["id", "aria-hidden"], Ra = {
|
1788
1788
|
name: "PdapButton"
|
1789
|
-
},
|
1790
|
-
...
|
1789
|
+
}, un = /* @__PURE__ */ C({
|
1790
|
+
...Ra,
|
1791
1791
|
props: {
|
1792
1792
|
defaultOpen: { type: Boolean, default: !1 },
|
1793
1793
|
disabled: { type: Boolean, default: !1 },
|
@@ -1796,32 +1796,32 @@ const Yn = {
|
|
1796
1796
|
},
|
1797
1797
|
emits: ["update:open", "press"],
|
1798
1798
|
setup(e, { emit: t }) {
|
1799
|
-
const r = e,
|
1799
|
+
const r = e, a = t, n = N(null), s = N(null), i = N(r.defaultOpen), u = v(
|
1800
1800
|
() => r.triggerOn === re.HOVER
|
1801
1801
|
);
|
1802
1802
|
function c(o) {
|
1803
|
-
|
1803
|
+
a("press", o), r.triggerOn === re.PRESS && l();
|
1804
1804
|
}
|
1805
1805
|
const l = () => {
|
1806
|
-
r.disabled || (i.value = !i.value,
|
1806
|
+
r.disabled || (i.value = !i.value, a("update:open", i.value));
|
1807
1807
|
};
|
1808
1808
|
function M() {
|
1809
|
-
i.value = !0,
|
1809
|
+
i.value = !0, a("update:open", !0);
|
1810
1810
|
}
|
1811
1811
|
function y() {
|
1812
|
-
i.value = !1,
|
1812
|
+
i.value = !1, a("update:open", !1);
|
1813
1813
|
}
|
1814
1814
|
function m() {
|
1815
1815
|
var w, I;
|
1816
|
-
if (!
|
1816
|
+
if (!n.value)
|
1817
1817
|
return;
|
1818
|
-
|
1819
|
-
const o =
|
1820
|
-
|
1818
|
+
n.value.style.display = "flex", n.value.style.setProperty("max-height", "max-content");
|
1819
|
+
const o = n.value.scrollHeight;
|
1820
|
+
n.value.style.display = "none", n.value.style.removeProperty("max-height");
|
1821
1821
|
const d = document == null ? void 0 : document.querySelector(":root"), g = (w = d == null ? void 0 : d.style) == null ? void 0 : w.getPropertyValue(
|
1822
1822
|
"--dropdown-content-max-height"
|
1823
1823
|
);
|
1824
|
-
Number((I = g == null ? void 0 : g.match(/\d+/)) == null ? void 0 : I.join("")) >= o ||
|
1824
|
+
Number((I = g == null ? void 0 : g.match(/\d+/)) == null ? void 0 : I.join("")) >= o || n.value && d && d.style.setProperty("--dropdown-content-max-height", `${o + 16}px`);
|
1825
1825
|
}
|
1826
1826
|
const p = {
|
1827
1827
|
mouseenter: u.value ? M : void 0,
|
@@ -1831,14 +1831,14 @@ const Yn = {
|
|
1831
1831
|
mouseleave: u.value ? y : void 0,
|
1832
1832
|
blur: u.value ? y : void 0
|
1833
1833
|
};
|
1834
|
-
return
|
1834
|
+
return We(() => {
|
1835
1835
|
m();
|
1836
|
-
}), (o, d) => fe((j(), h("div",
|
1836
|
+
}), (o, d) => fe((j(), h("div", F({
|
1837
1837
|
ref_key: "dropdownRef",
|
1838
1838
|
ref: s,
|
1839
1839
|
class: "pdap-dropdown",
|
1840
1840
|
role: "presentation",
|
1841
|
-
onKeydown:
|
1841
|
+
onKeydown: je(y, ["escape"])
|
1842
1842
|
}, yt(p, !0)), [
|
1843
1843
|
P(L(Ge), {
|
1844
1844
|
"aria-controls": o.dropdownId,
|
@@ -1852,8 +1852,8 @@ const Yn = {
|
|
1852
1852
|
"cursor-not-allowed": o.disabled
|
1853
1853
|
}),
|
1854
1854
|
"data-test": "dropdown-trigger",
|
1855
|
-
onClick:
|
1856
|
-
onKeydown: me(
|
1855
|
+
onClick: me(c, ["prevent", "stop"]),
|
1856
|
+
onKeydown: je(me(c, ["prevent", "stop"]), ["enter", "space"])
|
1857
1857
|
}, {
|
1858
1858
|
default: D(() => [
|
1859
1859
|
H(o.$slots, "trigger")
|
@@ -1868,46 +1868,46 @@ const Yn = {
|
|
1868
1868
|
fe(f("div", {
|
1869
1869
|
id: o.dropdownId,
|
1870
1870
|
ref_key: "contentRef",
|
1871
|
-
ref:
|
1871
|
+
ref: n,
|
1872
1872
|
"aria-hidden": !i.value,
|
1873
1873
|
class: "pdap-dropdown-content",
|
1874
1874
|
"data-test": "dropdown-content",
|
1875
1875
|
role: "menu"
|
1876
1876
|
}, [
|
1877
1877
|
H(o.$slots, "content")
|
1878
|
-
], 8,
|
1879
|
-
[
|
1878
|
+
], 8, Qa), [
|
1879
|
+
[Fe, i.value]
|
1880
1880
|
])
|
1881
1881
|
]),
|
1882
1882
|
_: 3
|
1883
1883
|
})
|
1884
|
-
], 16,
|
1885
|
-
[L(
|
1884
|
+
], 16, Ya)), [
|
1885
|
+
[L(Pa), y]
|
1886
1886
|
]);
|
1887
1887
|
}
|
1888
1888
|
});
|
1889
|
-
function
|
1889
|
+
function Ua(e) {
|
1890
1890
|
const t = [];
|
1891
1891
|
for (const r of e.matched) {
|
1892
|
-
const { name:
|
1892
|
+
const { name: a, path: n, meta: s } = r, i = s.breadcrumbText ?? a;
|
1893
1893
|
i && t.push({
|
1894
1894
|
text: i,
|
1895
|
-
path:
|
1895
|
+
path: n,
|
1896
1896
|
active: !1
|
1897
1897
|
});
|
1898
1898
|
}
|
1899
1899
|
return t.length > 0 && (t[t.length - 1].active = !0), t;
|
1900
1900
|
}
|
1901
|
-
const
|
1901
|
+
const Va = { "aria-label": "Breadcrumb" }, Ba = { key: 1 }, Fa = {
|
1902
1902
|
name: "PdapBreadcrumbs"
|
1903
|
-
},
|
1904
|
-
...
|
1903
|
+
}, Wa = /* @__PURE__ */ C({
|
1904
|
+
...Fa,
|
1905
1905
|
setup(e) {
|
1906
|
-
const t = ft(), r = v(() =>
|
1907
|
-
return (
|
1906
|
+
const t = ft(), r = v(() => Ua(t));
|
1907
|
+
return (a, n) => {
|
1908
1908
|
const s = Ve("router-link");
|
1909
|
-
return j(), h("nav",
|
1910
|
-
P(
|
1909
|
+
return j(), h("nav", Va, [
|
1910
|
+
P(mt, {
|
1911
1911
|
class: "pdap-breadcrumbs",
|
1912
1912
|
tag: "ul"
|
1913
1913
|
}, {
|
@@ -1916,12 +1916,12 @@ const Bn = { "aria-label": "Breadcrumb" }, Wn = { key: 1 }, Fn = {
|
|
1916
1916
|
key: i.text,
|
1917
1917
|
class: le({ "is-active": i.active })
|
1918
1918
|
}, [
|
1919
|
-
i.active ? (j(), h("span",
|
1919
|
+
i.active ? (j(), h("span", Ba, E(i.text), 1)) : (j(), S(s, {
|
1920
1920
|
key: 0,
|
1921
1921
|
to: i.path
|
1922
1922
|
}, {
|
1923
1923
|
default: D(() => [
|
1924
|
-
|
1924
|
+
T(E(i.text), 1)
|
1925
1925
|
]),
|
1926
1926
|
_: 2
|
1927
1927
|
}, 1032, ["to"]))
|
@@ -1933,7 +1933,7 @@ const Bn = { "aria-label": "Breadcrumb" }, Wn = { key: 1 }, Fn = {
|
|
1933
1933
|
};
|
1934
1934
|
}
|
1935
1935
|
});
|
1936
|
-
const
|
1936
|
+
const ln = /* @__PURE__ */ Te(Wa, [["__scopeId", "data-v-e8d76c0f"]]), Ga = { class: "pdap-spinner" }, Za = ["width", "height"], Ha = ["stroke", "fill"], Ja = ["stroke", "fill"], Xa = {
|
1937
1937
|
key: 0,
|
1938
1938
|
"aria-live": "polite"
|
1939
1939
|
};
|
@@ -1943,10 +1943,10 @@ const la = /* @__PURE__ */ Ce(Gn, [["__scopeId", "data-v-e8d76c0f"]]), Zn = { cl
|
|
1943
1943
|
*
|
1944
1944
|
* @preserve
|
1945
1945
|
*/
|
1946
|
-
const
|
1946
|
+
const Ka = {
|
1947
1947
|
name: "PdapSpinner"
|
1948
|
-
},
|
1949
|
-
...
|
1948
|
+
}, qa = /* @__PURE__ */ C({
|
1949
|
+
...Ka,
|
1950
1950
|
props: {
|
1951
1951
|
color: { default: "currentColor" },
|
1952
1952
|
size: { default: 24 },
|
@@ -1954,7 +1954,7 @@ const qn = {
|
|
1954
1954
|
show: { type: Boolean, default: !1 }
|
1955
1955
|
},
|
1956
1956
|
setup(e) {
|
1957
|
-
return (t, r) => (j(), h("div",
|
1957
|
+
return (t, r) => (j(), h("div", Ga, [
|
1958
1958
|
P(se, { appear: "" }, {
|
1959
1959
|
default: D(() => [
|
1960
1960
|
t.show ? (j(), h("svg", {
|
@@ -1970,44 +1970,66 @@ const qn = {
|
|
1970
1970
|
opacity: ".25",
|
1971
1971
|
stroke: t.color,
|
1972
1972
|
fill: t.color
|
1973
|
-
}, null, 8,
|
1973
|
+
}, null, 8, Ha),
|
1974
1974
|
f("path", {
|
1975
1975
|
d: "M12,4a8,8,0,0,1,7.89,6.7A1.53,1.53,0,0,0,21.38,12h0a1.5,1.5,0,0,0,1.48-1.75,11,11,0,0,0-21.72,0A1.5,1.5,0,0,0,2.62,12h0a1.53,1.53,0,0,0,1.49-1.3A8,8,0,0,1,12,4Z",
|
1976
1976
|
class: "pdap-spinner-innards",
|
1977
1977
|
stroke: t.color,
|
1978
1978
|
fill: t.color
|
1979
|
-
}, null, 8,
|
1980
|
-
], 8,
|
1979
|
+
}, null, 8, Ja)
|
1980
|
+
], 8, Za)) : k("", !0)
|
1981
1981
|
]),
|
1982
1982
|
_: 1
|
1983
1983
|
}),
|
1984
|
-
(j(),
|
1984
|
+
(j(), S(se, {
|
1985
1985
|
key: t.text,
|
1986
1986
|
appear: "",
|
1987
1987
|
mode: "out-in"
|
1988
1988
|
}, {
|
1989
1989
|
default: D(() => [
|
1990
|
-
t.text && t.show ? (j(), h("p",
|
1990
|
+
t.text && t.show ? (j(), h("p", Xa, E(t.text), 1)) : k("", !0)
|
1991
1991
|
]),
|
1992
1992
|
_: 1
|
1993
1993
|
}))
|
1994
1994
|
]));
|
1995
1995
|
}
|
1996
1996
|
});
|
1997
|
-
const
|
1998
|
-
const
|
1997
|
+
const cn = /* @__PURE__ */ Te(qa, [["__scopeId", "data-v-079c81b7"]]);
|
1998
|
+
const dn = {
|
1999
1999
|
content: ["./src/**/*.vue", "./src/**/*.css"],
|
2000
2000
|
theme: {
|
2001
2001
|
// Nested within "extend" - extends tailwind theme defaults, only overrides properties named here
|
2002
2002
|
extend: {
|
2003
2003
|
colors: {
|
2004
2004
|
brand: {
|
2005
|
-
|
2006
|
-
|
2007
|
-
|
2005
|
+
gold: {
|
2006
|
+
DEFAULT: "rgba(var(--color-brand-gold-600) / <alpha-value>)",
|
2007
|
+
50: "rgba(var(--color-brand-gold-50) / <alpha-value>)",
|
2008
|
+
100: "rgba(var(--color-brand-gold-100) / <alpha-value>)",
|
2009
|
+
200: "rgba(var(--color-brand-gold-200) / <alpha-value>)",
|
2010
|
+
300: "rgba(var(--color-brand-gold-300) / <alpha-value>)",
|
2011
|
+
400: "rgba(var(--color-brand-gold-400) / <alpha-value>)",
|
2012
|
+
500: "rgba(var(--color-brand-gold-500) / <alpha-value>)",
|
2013
|
+
600: "rgba(var(--color-brand-gold-600) / <alpha-value>)",
|
2014
|
+
700: "rgba(var(--color-brand-gold-700) / <alpha-value>)",
|
2015
|
+
800: "rgba(var(--color-brand-gold-800) / <alpha-value>)",
|
2016
|
+
900: "rgba(var(--color-brand-gold-900) / <alpha-value>)",
|
2017
|
+
950: "rgba(var(--color-brand-gold-950) / <alpha-value>)"
|
2008
2018
|
},
|
2009
|
-
|
2010
|
-
|
2019
|
+
wine: {
|
2020
|
+
DEFAULT: "rgba(var(--color-brand-wine-500) / <alpha-value>)",
|
2021
|
+
50: "rgba(var(--color-brand-wine-50) / <alpha-value>)",
|
2022
|
+
100: "rgba(var(--color-brand-wine-100) / <alpha-value>)",
|
2023
|
+
200: "rgba(var(--color-brand-wine-200) / <alpha-value>)",
|
2024
|
+
300: "rgba(var(--color-brand-wine-300) / <alpha-value>)",
|
2025
|
+
400: "rgba(var(--color-brand-wine-400) / <alpha-value>)",
|
2026
|
+
500: "rgba(var(--color-brand-wine-500) / <alpha-value>)",
|
2027
|
+
600: "rgba(var(--color-brand-wine-600) / <alpha-value>)",
|
2028
|
+
700: "rgba(var(--color-brand-wine-700) / <alpha-value>)",
|
2029
|
+
800: "rgba(var(--color-brand-wine-800) / <alpha-value>)",
|
2030
|
+
900: "rgba(var(--color-brand-wine-900) / <alpha-value>)",
|
2031
|
+
950: "rgba(var(--color-brand-wine-950) / <alpha-value>)"
|
2032
|
+
}
|
2011
2033
|
},
|
2012
2034
|
neutral: {
|
2013
2035
|
50: "rgba(var(--color-neutral-50)/<alpha-value>)",
|
@@ -2021,6 +2043,36 @@ const da = {
|
|
2021
2043
|
800: "rgba(var(--color-neutral-800)/<alpha-value>)",
|
2022
2044
|
900: "rgba(var(--color-neutral-900)/<alpha-value>)",
|
2023
2045
|
950: "rgba(var(--color-neutral-950)/<alpha-value>)"
|
2046
|
+
},
|
2047
|
+
goldneutral: {
|
2048
|
+
50: "rgba(var(--color-gold-neutral-50)/<alpha-value>)",
|
2049
|
+
100: "rgba(var(--color-gold-neutral-100)/<alpha-value>)",
|
2050
|
+
200: "rgba(var(--color-gold-neutral-200)/<alpha-value>)",
|
2051
|
+
300: "rgba(var(--color-gold-neutral-300)/<alpha-value>)",
|
2052
|
+
400: "rgba(var(--color-gold-neutral-400)/<alpha-value>)",
|
2053
|
+
500: "rgba(var(--color-gold-neutral-500)/<alpha-value>)",
|
2054
|
+
600: "rgba(var(--color-gold-neutral-600)/<alpha-value>)",
|
2055
|
+
700: "rgba(var(--color-gold-neutral-700)/<alpha-value>)",
|
2056
|
+
800: "rgba(var(--color-gold-neutral-800)/<alpha-value>)",
|
2057
|
+
900: "rgba(var(--color-gold-neutral-900)/<alpha-value>)",
|
2058
|
+
950: "rgba(var(--color-gold-neutral-950)/<alpha-value>)"
|
2059
|
+
},
|
2060
|
+
wineneutral: {
|
2061
|
+
50: "rgba(var(--color-wine-neutral-50)/<alpha-value>)",
|
2062
|
+
100: "rgba(var(--color-wine-neutral-100)/<alpha-value>)",
|
2063
|
+
200: "rgba(var(--color-wine-neutral-200)/<alpha-value>)",
|
2064
|
+
300: "rgba(var(--color-wine-neutral-300)/<alpha-value>)",
|
2065
|
+
400: "rgba(var(--color-wine-neutral-400)/<alpha-value>)",
|
2066
|
+
500: "rgba(var(--color-wine-neutral-500)/<alpha-value>)",
|
2067
|
+
600: "rgba(var(--color-wine-neutral-600)/<alpha-value>)",
|
2068
|
+
700: "rgba(var(--color-wine-neutral-700)/<alpha-value>)",
|
2069
|
+
800: "rgba(var(--color-wine-neutral-800)/<alpha-value>)",
|
2070
|
+
900: "rgba(var(--color-wine-neutral-900)/<alpha-value>)",
|
2071
|
+
950: "rgba(var(--color-wine-neutral-950)/<alpha-value>)"
|
2072
|
+
},
|
2073
|
+
blue: {
|
2074
|
+
light: "rgba(var(--color-blue-light)/<alpha-value>)",
|
2075
|
+
medium: "rgba(var(--color-blue-medium)/<alpha-value>)"
|
2024
2076
|
}
|
2025
2077
|
},
|
2026
2078
|
brightness: {
|
@@ -2072,7 +2124,7 @@ const da = {
|
|
2072
2124
|
"6xl": "3rem"
|
2073
2125
|
}
|
2074
2126
|
}
|
2075
|
-
},
|
2127
|
+
}, Ln = {
|
2076
2128
|
extends: [
|
2077
2129
|
"stylelint-config-standard",
|
2078
2130
|
"@ronilaukkarinen/stylelint-a11y/recommended"
|
@@ -2110,21 +2162,21 @@ const da = {
|
|
2110
2162
|
]
|
2111
2163
|
};
|
2112
2164
|
export {
|
2113
|
-
|
2165
|
+
ln as Breadcrumbs,
|
2114
2166
|
Ge as Button,
|
2115
|
-
|
2116
|
-
|
2117
|
-
|
2118
|
-
|
2119
|
-
|
2120
|
-
|
2121
|
-
|
2167
|
+
un as Dropdown,
|
2168
|
+
rn as ErrorBoundary,
|
2169
|
+
an as Footer,
|
2170
|
+
pa as Form,
|
2171
|
+
nn as Header,
|
2172
|
+
ar as Input,
|
2173
|
+
Na as Nav,
|
2122
2174
|
re as PdapDropdownTriggerType,
|
2123
2175
|
O as PdapInputTypes,
|
2124
|
-
|
2125
|
-
|
2126
|
-
|
2127
|
-
|
2128
|
-
|
2129
|
-
|
2176
|
+
sn as QuickSearchForm,
|
2177
|
+
cn as Spinner,
|
2178
|
+
on as TileIcon,
|
2179
|
+
Ln as stylelintConfig,
|
2180
|
+
dn as tailwindConfig,
|
2181
|
+
Pa as vOnClickOutside
|
2130
2182
|
};
|