pdap-design-system 2.2.0 → 2.2.2
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +16 -2
- package/dist/{src/components → components}/Button/PdapButton.vue.d.ts +1 -1
- package/dist/{src/components → components}/Button/types.d.ts +1 -1
- package/dist/config/index.d.ts +56 -2
- package/dist/index.cjs +3 -3
- package/dist/{src/index.d.ts → index.d.ts} +1 -1
- package/dist/index.js +219 -222
- package/dist/styles.css +1 -1
- package/package.json +9 -4
- package/dist/tailwind.config.d.ts +0 -2
- /package/dist/{src/components → components}/Button/index.d.ts +0 -0
- /package/dist/{src/components → components}/FlexContainer/FlexContainer.vue.d.ts +0 -0
- /package/dist/{src/components → components}/FlexContainer/index.d.ts +0 -0
- /package/dist/{src/components → components}/FlexContainer/types.d.ts +0 -0
- /package/dist/{src/components → components}/Footer/PdapFooter.vue.d.ts +0 -0
- /package/dist/{src/components → components}/Footer/index.d.ts +0 -0
- /package/dist/{src/components → components}/Footer/types.d.ts +0 -0
- /package/dist/{src/components → components}/Form/PdapForm.vue.d.ts +0 -0
- /package/dist/{src/components → components}/Form/index.d.ts +0 -0
- /package/dist/{src/components → components}/Form/types.d.ts +0 -0
- /package/dist/{src/components → components}/GridContainer/GridContainer.vue.d.ts +0 -0
- /package/dist/{src/components → components}/GridContainer/index.d.ts +0 -0
- /package/dist/{src/components → components}/GridContainer/types.d.ts +0 -0
- /package/dist/{src/components → components}/GridItem/GridItem.vue.d.ts +0 -0
- /package/dist/{src/components → components}/GridItem/index.d.ts +0 -0
- /package/dist/{src/components → components}/GridItem/types.d.ts +0 -0
- /package/dist/{src/components → components}/Header/PdapHeader.vue.d.ts +0 -0
- /package/dist/{src/components → components}/Header/index.d.ts +0 -0
- /package/dist/{src/components → components}/Header/types.d.ts +0 -0
- /package/dist/{src/components → components}/Input/PdapInput.vue.d.ts +0 -0
- /package/dist/{src/components → components}/Input/index.d.ts +0 -0
- /package/dist/{src/components → components}/Input/types.d.ts +0 -0
- /package/dist/{src/components → components}/Input/utils.d.ts +0 -0
- /package/dist/{src/components → components}/Nav/PdapNav.vue.d.ts +0 -0
- /package/dist/{src/components → components}/Nav/index.d.ts +0 -0
- /package/dist/{src/components → components}/Nav/types.d.ts +0 -0
- /package/dist/{src/components → components}/QuickSearchForm/QuickSearchForm.vue.d.ts +0 -0
- /package/dist/{src/components → components}/QuickSearchForm/index.d.ts +0 -0
- /package/dist/{src/components → components}/TileIcon/TileIcon.vue.d.ts +0 -0
- /package/dist/{src/components → components}/TileIcon/index.d.ts +0 -0
- /package/dist/{src/components → components}/TileIcon/types.d.ts +0 -0
- /package/dist/{src/components → components}/index.d.ts +0 -0
- /package/dist/{src/utils → utils}/vuelidate.d.ts +0 -0
- /package/dist/{src/utils → utils}/vuelidate.test.d.ts +0 -0
package/dist/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent as j, reactive as C, openBlock as v, createElementBlock as x, normalizeClass as X, renderSlot as Z, createBlock as
|
1
|
+
import { defineComponent as j, reactive as C, openBlock as v, createElementBlock as x, normalizeClass as X, renderSlot as Z, createBlock as I, resolveDynamicComponent as fe, withCtx as R, inject as ee, resolveComponent as Qe, createVNode as H, createElementVNode as b, Fragment as U, renderList as ge, unref as d, toDisplayString as k, createCommentVNode as q, createTextVNode as N, getCurrentInstance as Ze, ref as P, onBeforeMount as Ve, watch as W, isRef as ce, onBeforeUnmount as $e, computed as _, isReactive as Je, isReadonly as Ye, provide as xe, nextTick as te, mergeProps as de, watchEffect as Pe, withModifiers as et, normalizeStyle as he, onMounted as tt } from "vue";
|
2
2
|
import { RouterLink as ke, useRouter as rt } from "vue-router";
|
3
3
|
const at = /* @__PURE__ */ j({
|
4
4
|
__name: "PdapButton",
|
@@ -30,7 +30,7 @@ const pe = /* @__PURE__ */ j({
|
|
30
30
|
"pdap-flex-container": !0,
|
31
31
|
[`pdap-flex-container-${e.alignment}`]: !0
|
32
32
|
});
|
33
|
-
return (a, n) => (v(),
|
33
|
+
return (a, n) => (v(), I(fe(a.component), {
|
34
34
|
class: X(r)
|
35
35
|
}, {
|
36
36
|
default: R(() => [
|
@@ -40,10 +40,7 @@ const pe = /* @__PURE__ */ j({
|
|
40
40
|
}, 8, ["class"]));
|
41
41
|
}
|
42
42
|
});
|
43
|
-
const nt = { class: "pdap-footer" }, st = { class: "pdap-footer-social-links" }, ot = ["href"], it = /* @__PURE__ */ b("p", { class: "pdap-footer-copyright" }, [
|
44
|
-
/* @__PURE__ */ N(" © 2023 Police Data Accessibility Project"),
|
45
|
-
/* @__PURE__ */ b("br")
|
46
|
-
], -1), lt = /* @__PURE__ */ b("p", { class: "pdap-footer-copyright" }, [
|
43
|
+
const nt = { class: "pdap-footer" }, st = { class: "pdap-footer-social-links" }, ot = ["href"], it = { class: "pdap-footer-copyright" }, lt = /* @__PURE__ */ b("br", null, null, -1), ut = /* @__PURE__ */ b("p", { class: "pdap-footer-copyright" }, [
|
47
44
|
/* @__PURE__ */ N(" PDAP is a non-profit. EIN: 85-4207132. "),
|
48
45
|
/* @__PURE__ */ b("a", {
|
49
46
|
href: "https://docs.pdap.io/meta/policy/pdap-privacy-policy",
|
@@ -56,12 +53,12 @@ const nt = { class: "pdap-footer" }, st = { class: "pdap-footer-social-links" },
|
|
56
53
|
]),
|
57
54
|
/* @__PURE__ */ b("br"),
|
58
55
|
/* @__PURE__ */ b("a", { href: "mailto:contact@pdap.io" }, "contact@pdap.io")
|
59
|
-
], -1),
|
56
|
+
], -1), ct = { class: "pdap-footer-widget-links" }, dt = /* @__PURE__ */ b("a", {
|
60
57
|
href: "https://www.guidestar.org/profile/85-4207132",
|
61
58
|
target: "_blank"
|
62
59
|
}, [
|
63
60
|
/* @__PURE__ */ b("img", { src: "https://widgets.guidestar.org/gximage2?o=9973356&l=v4" })
|
64
|
-
], -1),
|
61
|
+
], -1), pt = ["href"], mt = ["src"], ft = ["src"], ea = /* @__PURE__ */ j({
|
65
62
|
__name: "PdapFooter",
|
66
63
|
props: {
|
67
64
|
logoImageSrc: { default: "node_modules/pdap-design-system/dist/images/acronym.svg" },
|
@@ -102,8 +99,8 @@ const nt = { class: "pdap-footer" }, st = { class: "pdap-footer-social-links" },
|
|
102
99
|
href: l.href,
|
103
100
|
target: "_blank",
|
104
101
|
referrerpolicy: "no-referrer"
|
105
|
-
},
|
106
|
-
l.path ? (v(),
|
102
|
+
}, k(l.text), 9, ot)) : q("", !0),
|
103
|
+
l.path ? (v(), I(u, {
|
107
104
|
key: 1,
|
108
105
|
"active-class": "pdap-footer-social-link-current",
|
109
106
|
"exact-active-class": "pdap-footer-social-link-current-exact",
|
@@ -111,17 +108,20 @@ const nt = { class: "pdap-footer" }, st = { class: "pdap-footer-social-links" },
|
|
111
108
|
to: l.path
|
112
109
|
}, {
|
113
110
|
default: R(() => [
|
114
|
-
N(
|
111
|
+
N(k(l.text), 1)
|
115
112
|
]),
|
116
113
|
_: 2
|
117
114
|
}, 1032, ["to"])) : q("", !0)
|
118
115
|
]))), 128))
|
119
116
|
]),
|
120
|
-
it,
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
117
|
+
b("p", it, [
|
118
|
+
N(" © " + k((/* @__PURE__ */ new Date()).getFullYear()) + " Police Data Accessibility Project", 1),
|
119
|
+
lt
|
120
|
+
]),
|
121
|
+
ut,
|
122
|
+
b("div", ct, [
|
123
|
+
dt,
|
124
|
+
d(a) ? (v(), I(u, {
|
125
125
|
key: 1,
|
126
126
|
to: n.logoImageAnchorPath,
|
127
127
|
class: "pdap-footer-logo"
|
@@ -132,7 +132,7 @@ const nt = { class: "pdap-footer" }, st = { class: "pdap-footer-social-links" },
|
|
132
132
|
loading: "lazy",
|
133
133
|
width: "250",
|
134
134
|
alt: "Police Data Accessibility Project Logo"
|
135
|
-
}, null, 8,
|
135
|
+
}, null, 8, ft)
|
136
136
|
]),
|
137
137
|
_: 1
|
138
138
|
}, 8, ["to"])) : (v(), x("a", {
|
@@ -145,8 +145,8 @@ const nt = { class: "pdap-footer" }, st = { class: "pdap-footer-social-links" },
|
|
145
145
|
loading: "lazy",
|
146
146
|
width: "250",
|
147
147
|
alt: "Police Data Accessibility Project Logo"
|
148
|
-
}, null, 8,
|
149
|
-
], 8,
|
148
|
+
}, null, 8, mt)
|
149
|
+
], 8, pt))
|
150
150
|
])
|
151
151
|
]),
|
152
152
|
_: 1
|
@@ -169,14 +169,14 @@ function V(e) {
|
|
169
169
|
for (var t = 1; t < arguments.length; t++) {
|
170
170
|
var r = arguments[t] != null ? arguments[t] : {};
|
171
171
|
t % 2 ? Re(Object(r), !0).forEach(function(a) {
|
172
|
-
|
172
|
+
gt(e, a, r[a]);
|
173
173
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Re(Object(r)).forEach(function(a) {
|
174
174
|
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(r, a));
|
175
175
|
});
|
176
176
|
}
|
177
177
|
return e;
|
178
178
|
}
|
179
|
-
function
|
179
|
+
function gt(e, t, r) {
|
180
180
|
return t in e ? Object.defineProperty(e, t, {
|
181
181
|
value: r,
|
182
182
|
enumerable: !0,
|
@@ -191,7 +191,7 @@ function Oe(e) {
|
|
191
191
|
function re(e) {
|
192
192
|
return typeof e == "function";
|
193
193
|
}
|
194
|
-
function
|
194
|
+
function $t(e) {
|
195
195
|
return Je(e) || Ye(e);
|
196
196
|
}
|
197
197
|
function ze(e, t, r) {
|
@@ -223,7 +223,7 @@ function Me(e, t, r, a) {
|
|
223
223
|
function De(e) {
|
224
224
|
return e.$valid !== void 0 ? !e.$valid : !e;
|
225
225
|
}
|
226
|
-
function
|
226
|
+
function ht(e, t, r, a, n, s, u) {
|
227
227
|
let {
|
228
228
|
$lazy: l,
|
229
229
|
$rewardEarly: o
|
@@ -253,7 +253,7 @@ function $t(e, t, r, a, n, s, u) {
|
|
253
253
|
$unwatch: p
|
254
254
|
};
|
255
255
|
}
|
256
|
-
function
|
256
|
+
function vt(e, t, r, a, n, s, u, l) {
|
257
257
|
let {
|
258
258
|
$lazy: o,
|
259
259
|
$rewardEarly: c
|
@@ -275,16 +275,16 @@ function ht(e, t, r, a, n, s, u, l) {
|
|
275
275
|
$invalid: m
|
276
276
|
};
|
277
277
|
}
|
278
|
-
function
|
278
|
+
function yt(e, t, r, a, n, s, u, l, o, c, g) {
|
279
279
|
const m = P(!1), h = e.$params || {}, $ = P(null);
|
280
280
|
let i, p;
|
281
281
|
e.$async ? {
|
282
282
|
$invalid: i,
|
283
283
|
$unwatch: p
|
284
|
-
} =
|
284
|
+
} = ht(e.$validator, t, m, r, a, $, n, e.$watchTargets, o, c, g) : {
|
285
285
|
$invalid: i,
|
286
286
|
$unwatch: p
|
287
|
-
} =
|
287
|
+
} = vt(e.$validator, t, r, a, $, n, o, c);
|
288
288
|
const f = e.$message;
|
289
289
|
return {
|
290
290
|
$message: re(f) ? _(() => f(Oe({
|
@@ -304,7 +304,7 @@ function vt(e, t, r, a, n, s, u, l, o, c, g) {
|
|
304
304
|
$unwatch: p
|
305
305
|
};
|
306
306
|
}
|
307
|
-
function
|
307
|
+
function _t() {
|
308
308
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
309
309
|
const t = d(e), r = Object.keys(t), a = {}, n = {}, s = {};
|
310
310
|
let u = null;
|
@@ -335,8 +335,8 @@ function yt() {
|
|
335
335
|
validationGroups: u
|
336
336
|
};
|
337
337
|
}
|
338
|
-
const
|
339
|
-
function
|
338
|
+
const bt = "__root";
|
339
|
+
function wt(e, t, r, a, n, s, u, l, o) {
|
340
340
|
const c = Object.keys(e), g = a.get(n, e), m = P(!1), h = P(!1), $ = P(0);
|
341
341
|
if (g) {
|
342
342
|
if (!g.$partial)
|
@@ -356,7 +356,7 @@ function bt(e, t, r, a, n, s, u, l, o) {
|
|
356
356
|
}
|
357
357
|
};
|
358
358
|
return c.length ? (c.forEach((p) => {
|
359
|
-
i[p] =
|
359
|
+
i[p] = yt(e[p], t, i.$dirty, s, u, p, r, n, o, h, $);
|
360
360
|
}), i.$externalResults = _(() => l.value ? [].concat(l.value).map((p, f) => ({
|
361
361
|
$propertyPath: n,
|
362
362
|
$property: r,
|
@@ -387,7 +387,7 @@ function bt(e, t, r, a, n, s, u, l, o) {
|
|
387
387
|
h.value = !0, $.value = Date.now();
|
388
388
|
}, a.set(n, e, i), i) : (g && a.set(n, e, i), i);
|
389
389
|
}
|
390
|
-
function
|
390
|
+
function xt(e, t, r, a, n, s, u) {
|
391
391
|
const l = Object.keys(e);
|
392
392
|
return l.length ? l.reduce((o, c) => (o[c] = me({
|
393
393
|
validations: e[c],
|
@@ -400,7 +400,7 @@ function wt(e, t, r, a, n, s, u) {
|
|
400
400
|
externalResults: u
|
401
401
|
}), o), {}) : {};
|
402
402
|
}
|
403
|
-
function
|
403
|
+
function Pt(e, t, r) {
|
404
404
|
const a = _(() => [t, r].filter((i) => i).reduce((i, p) => i.concat(Object.values(d(p))), [])), n = _({
|
405
405
|
get() {
|
406
406
|
return e.$dirty.value || (a.value.length ? a.value.every((i) => i.$dirty) : !1);
|
@@ -457,16 +457,16 @@ function me(e) {
|
|
457
457
|
nestedValidators: h,
|
458
458
|
config: $,
|
459
459
|
validationGroups: i
|
460
|
-
} =
|
460
|
+
} = _t(t), p = V(V({}, l), $), f = a ? _(() => {
|
461
461
|
const w = d(r);
|
462
462
|
return w ? d(w[a]) : void 0;
|
463
463
|
}) : r, y = V({}, d(c) || {}), A = _(() => {
|
464
464
|
const w = d(c);
|
465
465
|
return a ? w ? d(w[a]) : void 0 : w;
|
466
|
-
}), se =
|
466
|
+
}), se = wt(m, f, a, u, g, p, o, A, r), E = xt(h, f, g, u, p, o, A), D = {};
|
467
467
|
i && Object.entries(i).forEach((w) => {
|
468
|
-
let [
|
469
|
-
|
468
|
+
let [F, L] = w;
|
469
|
+
D[F] = {
|
470
470
|
$invalid: ue(L, E, "$invalid"),
|
471
471
|
$error: ue(L, E, "$error"),
|
472
472
|
$pending: ue(L, E, "$pending"),
|
@@ -475,7 +475,7 @@ function me(e) {
|
|
475
475
|
};
|
476
476
|
});
|
477
477
|
const {
|
478
|
-
$dirty:
|
478
|
+
$dirty: S,
|
479
479
|
$errors: J,
|
480
480
|
$invalid: oe,
|
481
481
|
$anyDirty: Ne,
|
@@ -485,16 +485,16 @@ function me(e) {
|
|
485
485
|
$reset: He,
|
486
486
|
$silentErrors: Ge,
|
487
487
|
$commit: we
|
488
|
-
} =
|
488
|
+
} = Pt(se, E, s), Xe = a ? _({
|
489
489
|
get: () => d(f),
|
490
490
|
set: (w) => {
|
491
|
-
|
492
|
-
const
|
493
|
-
L && (L[a] = y[a]), ce(
|
491
|
+
S.value = !0;
|
492
|
+
const F = d(r), L = d(c);
|
493
|
+
L && (L[a] = y[a]), ce(F[a]) ? F[a].value = w : F[a] = w;
|
494
494
|
}
|
495
495
|
}) : null;
|
496
496
|
a && p.$autoDirty && W(f, () => {
|
497
|
-
|
497
|
+
S.value || le();
|
498
498
|
const w = d(c);
|
499
499
|
w && (w[a] = y[a]);
|
500
500
|
}, {
|
@@ -504,8 +504,8 @@ function me(e) {
|
|
504
504
|
return le(), p.$rewardEarly && (we(), await te()), await te(), new Promise((w) => {
|
505
505
|
if (!ie.value)
|
506
506
|
return w(!oe.value);
|
507
|
-
const
|
508
|
-
w(!oe.value),
|
507
|
+
const F = W(ie, () => {
|
508
|
+
w(!oe.value), F();
|
509
509
|
});
|
510
510
|
});
|
511
511
|
}
|
@@ -519,7 +519,7 @@ function me(e) {
|
|
519
519
|
}
|
520
520
|
return C(V(V(V({}, se), {}, {
|
521
521
|
$model: Xe,
|
522
|
-
$dirty:
|
522
|
+
$dirty: S,
|
523
523
|
$error: Be,
|
524
524
|
$errors: J,
|
525
525
|
$invalid: oe,
|
@@ -527,17 +527,17 @@ function me(e) {
|
|
527
527
|
$pending: ie,
|
528
528
|
$touch: le,
|
529
529
|
$reset: He,
|
530
|
-
$path: g ||
|
530
|
+
$path: g || bt,
|
531
531
|
$silentErrors: Ge,
|
532
532
|
$validate: Ue,
|
533
533
|
$commit: we
|
534
534
|
}, s && {
|
535
535
|
$getResultsForChild: We,
|
536
536
|
$clearExternalResults: Ke,
|
537
|
-
$validationGroups:
|
537
|
+
$validationGroups: D
|
538
538
|
}), E));
|
539
539
|
}
|
540
|
-
class
|
540
|
+
class Rt {
|
541
541
|
constructor() {
|
542
542
|
this.storage = /* @__PURE__ */ new Map();
|
543
543
|
}
|
@@ -570,7 +570,7 @@ const Y = {
|
|
570
570
|
COLLECT_ALL: !0,
|
571
571
|
COLLECT_NONE: !1
|
572
572
|
}, Ce = Symbol("vuelidate#injectChildResults"), je = Symbol("vuelidate#removeChildResults");
|
573
|
-
function
|
573
|
+
function Ot(e) {
|
574
574
|
let {
|
575
575
|
$scope: t,
|
576
576
|
instance: r
|
@@ -606,7 +606,7 @@ function Fe(e) {
|
|
606
606
|
});
|
607
607
|
}
|
608
608
|
let Ae = 0;
|
609
|
-
function
|
609
|
+
function Et(e, t) {
|
610
610
|
var r;
|
611
611
|
let a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
612
612
|
arguments.length === 1 && (a = e, e = void 0, t = void 0);
|
@@ -619,11 +619,11 @@ function Ot(e, t) {
|
|
619
619
|
} = a;
|
620
620
|
const c = o || ((r = Ze()) === null || r === void 0 ? void 0 : r.proxy), g = c ? c.$options : {};
|
621
621
|
n || (Ae += 1, n = `_vuelidate_${Ae}`);
|
622
|
-
const m = P({}), h = new
|
622
|
+
const m = P({}), h = new Rt(), {
|
623
623
|
childResults: $,
|
624
624
|
sendValidationResultsToParent: i,
|
625
625
|
removeValidationResultsFromParent: p
|
626
|
-
} = c ?
|
626
|
+
} = c ? Ot({
|
627
627
|
$scope: s,
|
628
628
|
instance: c
|
629
629
|
}) : {
|
@@ -647,7 +647,7 @@ function Ot(e, t) {
|
|
647
647
|
});
|
648
648
|
}), a = g.validationsConfig || a;
|
649
649
|
} else {
|
650
|
-
const f = ce(e) ||
|
650
|
+
const f = ce(e) || $t(e) ? e : C(e || {});
|
651
651
|
W(f, (y) => {
|
652
652
|
m.value = me({
|
653
653
|
validations: y,
|
@@ -669,7 +669,7 @@ function Ot(e, t) {
|
|
669
669
|
})), $e(() => p.forEach((f) => f(n)))), _(() => V(V({}, d(m.value)), $.value));
|
670
670
|
}
|
671
671
|
var T = /* @__PURE__ */ ((e) => (e.CHECKBOX = "checkbox", e.TEXT = "text", e))(T || {});
|
672
|
-
const
|
672
|
+
const Ct = ["id", "name", "placeholder", "value"], jt = ["id", "name", "checked", "value"], At = ["id"], Tt = ["for"], It = /* @__PURE__ */ j({
|
673
673
|
__name: "PdapInput",
|
674
674
|
props: {
|
675
675
|
error: {},
|
@@ -690,7 +690,7 @@ const Et = ["id", "name", "placeholder", "value"], Ct = ["id", "name", "checked"
|
|
690
690
|
}, u = P(r.defaultChecked), l = _(() => `pdap-${r.name}-input-error`);
|
691
691
|
return (o, c) => {
|
692
692
|
var g;
|
693
|
-
return v(),
|
693
|
+
return v(), I(d(Fr), {
|
694
694
|
class: X({
|
695
695
|
"pdap-input": !0,
|
696
696
|
"pdap-input-error": Number((g = o.error) == null ? void 0 : g.length) >= 1
|
@@ -704,7 +704,7 @@ const Et = ["id", "name", "placeholder", "value"], Ct = ["id", "name", "checked"
|
|
704
704
|
name: o.name,
|
705
705
|
placeholder: o.placeholder,
|
706
706
|
value: o.value
|
707
|
-
}, o.$attrs, { onInput: s }), null, 16,
|
707
|
+
}, o.$attrs, { onInput: s }), null, 16, Ct)) : o.type === d(T).CHECKBOX ? (v(), x("input", de({
|
708
708
|
key: 1,
|
709
709
|
id: o.id,
|
710
710
|
class: "pdap-input-checkbox",
|
@@ -712,16 +712,16 @@ const Et = ["id", "name", "placeholder", "value"], Ct = ["id", "name", "checked"
|
|
712
712
|
checked: u.value,
|
713
713
|
type: "checkbox",
|
714
714
|
value: o.value
|
715
|
-
}, o.$attrs, { onChange: n }), null, 16,
|
715
|
+
}, o.$attrs, { onChange: n }), null, 16, jt)) : q("", !0),
|
716
716
|
o.error ? (v(), x("div", {
|
717
717
|
key: 2,
|
718
718
|
id: l.value,
|
719
719
|
class: "pdap-input-error-message"
|
720
|
-
},
|
720
|
+
}, k(o.error), 9, At)) : q("", !0),
|
721
721
|
b("label", {
|
722
722
|
class: "pdap-input-label",
|
723
723
|
for: o.id
|
724
|
-
},
|
724
|
+
}, k(o.label), 9, Tt)
|
725
725
|
]),
|
726
726
|
_: 1
|
727
727
|
}, 8, ["class"]);
|
@@ -768,10 +768,10 @@ function ne(e) {
|
|
768
768
|
$validator: e
|
769
769
|
};
|
770
770
|
}
|
771
|
-
function
|
771
|
+
function Lt(e) {
|
772
772
|
return ae(e) && K(e.then);
|
773
773
|
}
|
774
|
-
function
|
774
|
+
function z(e) {
|
775
775
|
return typeof e == "object" ? e.$valid : e;
|
776
776
|
}
|
777
777
|
function B(e) {
|
@@ -793,7 +793,7 @@ function Q(e, t) {
|
|
793
793
|
const r = ne(t);
|
794
794
|
return r.$message = e, r;
|
795
795
|
}
|
796
|
-
function
|
796
|
+
function Vt(e) {
|
797
797
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
798
798
|
const r = ne(e);
|
799
799
|
return G(G({}, r), {}, {
|
@@ -801,7 +801,7 @@ function Lt(e) {
|
|
801
801
|
$watchTargets: t
|
802
802
|
});
|
803
803
|
}
|
804
|
-
function
|
804
|
+
function kt(e) {
|
805
805
|
return {
|
806
806
|
$validator(t) {
|
807
807
|
for (var r = arguments.length, a = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
@@ -811,19 +811,19 @@ function Vt(e) {
|
|
811
811
|
let [m, h] = g;
|
812
812
|
const $ = e[m] || {}, i = Object.entries($).reduce((p, f) => {
|
813
813
|
let [y, A] = f;
|
814
|
-
const E = B(A).call(this, h, u, l, ...a),
|
815
|
-
if (p.$data[y] = E, p.$data.$invalid = !
|
816
|
-
let
|
814
|
+
const E = B(A).call(this, h, u, l, ...a), D = z(E);
|
815
|
+
if (p.$data[y] = E, p.$data.$invalid = !D || !!p.$data.$invalid, p.$data.$error = p.$data.$invalid, !D) {
|
816
|
+
let S = A.$message || "";
|
817
817
|
const J = A.$params || {};
|
818
|
-
typeof
|
818
|
+
typeof S == "function" && (S = S({
|
819
819
|
$pending: !1,
|
820
|
-
$invalid: !
|
820
|
+
$invalid: !D,
|
821
821
|
$params: J,
|
822
822
|
$model: h,
|
823
823
|
$response: E
|
824
824
|
})), p.$errors.push({
|
825
825
|
$property: m,
|
826
|
-
$message:
|
826
|
+
$message: S,
|
827
827
|
$params: J,
|
828
828
|
$response: E,
|
829
829
|
$model: h,
|
@@ -832,7 +832,7 @@ function Vt(e) {
|
|
832
832
|
});
|
833
833
|
}
|
834
834
|
return {
|
835
|
-
$valid: p.$valid &&
|
835
|
+
$valid: p.$valid && D,
|
836
836
|
$data: p.$data,
|
837
837
|
$errors: p.$errors
|
838
838
|
};
|
@@ -886,49 +886,49 @@ const O = (e) => {
|
|
886
886
|
}
|
887
887
|
return !!String(e).length;
|
888
888
|
}, ye = (e) => (e = d(e), Array.isArray(e) ? e.length : typeof e == "object" ? Object.keys(e).length : String(e).length);
|
889
|
-
function
|
889
|
+
function M() {
|
890
890
|
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
891
891
|
t[r] = arguments[r];
|
892
892
|
return (a) => (a = d(a), !O(a) || t.every((n) => (n.lastIndex = 0, n.test(a))));
|
893
893
|
}
|
894
894
|
var _e = /* @__PURE__ */ Object.freeze({
|
895
895
|
__proto__: null,
|
896
|
-
forEach:
|
896
|
+
forEach: kt,
|
897
897
|
len: ye,
|
898
898
|
normalizeValidatorObject: ne,
|
899
|
-
regex:
|
899
|
+
regex: M,
|
900
900
|
req: O,
|
901
901
|
unwrap: d,
|
902
902
|
unwrapNormalizedValidator: B,
|
903
|
-
unwrapValidatorResponse:
|
904
|
-
withAsync:
|
903
|
+
unwrapValidatorResponse: z,
|
904
|
+
withAsync: Vt,
|
905
905
|
withMessage: Q,
|
906
906
|
withParams: ve
|
907
|
-
}),
|
908
|
-
$validator:
|
907
|
+
}), zt = M(/^[a-zA-Z]*$/), Mt = {
|
908
|
+
$validator: zt,
|
909
909
|
$message: "The value is not alphabetical",
|
910
910
|
$params: {
|
911
911
|
type: "alpha"
|
912
912
|
}
|
913
|
-
},
|
914
|
-
$validator:
|
913
|
+
}, Dt = M(/^[a-zA-Z0-9]*$/), Ft = {
|
914
|
+
$validator: Dt,
|
915
915
|
$message: "The value must be alpha-numeric",
|
916
916
|
$params: {
|
917
917
|
type: "alphaNum"
|
918
918
|
}
|
919
|
-
},
|
920
|
-
$validator:
|
919
|
+
}, qt = M(/^\d*(\.\d+)?$/), Nt = {
|
920
|
+
$validator: qt,
|
921
921
|
$message: "Value must be numeric",
|
922
922
|
$params: {
|
923
923
|
type: "numeric"
|
924
924
|
}
|
925
925
|
};
|
926
|
-
function
|
926
|
+
function Bt(e, t) {
|
927
927
|
return (r) => !O(r) || (!/\s/.test(r) || r instanceof Date) && +d(e) <= +r && +d(t) >= +r;
|
928
928
|
}
|
929
|
-
function
|
929
|
+
function Ht(e, t) {
|
930
930
|
return {
|
931
|
-
$validator:
|
931
|
+
$validator: Bt(e, t),
|
932
932
|
$message: (r) => {
|
933
933
|
let {
|
934
934
|
$params: a
|
@@ -942,36 +942,36 @@ function Bt(e, t) {
|
|
942
942
|
}
|
943
943
|
};
|
944
944
|
}
|
945
|
-
const
|
946
|
-
var
|
947
|
-
$validator:
|
945
|
+
const Gt = /^(?:[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;
|
946
|
+
var Xt = M(Gt), Ut = {
|
947
|
+
$validator: Xt,
|
948
948
|
$message: "Value is not a valid email address",
|
949
949
|
$params: {
|
950
950
|
type: "email"
|
951
951
|
}
|
952
952
|
};
|
953
|
-
function
|
953
|
+
function Wt(e) {
|
954
954
|
if (!O(e))
|
955
955
|
return !0;
|
956
956
|
if (typeof e != "string")
|
957
957
|
return !1;
|
958
958
|
const t = e.split(".");
|
959
|
-
return t.length === 4 && t.every(
|
959
|
+
return t.length === 4 && t.every(Kt);
|
960
960
|
}
|
961
|
-
const
|
961
|
+
const Kt = (e) => {
|
962
962
|
if (e.length > 3 || e.length === 0 || e[0] === "0" && e !== "0" || !e.match(/^\d+$/))
|
963
963
|
return !1;
|
964
964
|
const t = +e | 0;
|
965
965
|
return t >= 0 && t <= 255;
|
966
966
|
};
|
967
|
-
var
|
968
|
-
$validator:
|
967
|
+
var Qt = {
|
968
|
+
$validator: Wt,
|
969
969
|
$message: "The value is not a valid IP address",
|
970
970
|
$params: {
|
971
971
|
type: "ipAddress"
|
972
972
|
}
|
973
973
|
};
|
974
|
-
function
|
974
|
+
function Zt() {
|
975
975
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ":";
|
976
976
|
return (t) => {
|
977
977
|
if (e = d(e), !O(t))
|
@@ -979,25 +979,25 @@ function Qt() {
|
|
979
979
|
if (typeof t != "string")
|
980
980
|
return !1;
|
981
981
|
const r = typeof e == "string" && e !== "" ? t.split(e) : t.length === 12 || t.length === 16 ? t.match(/.{2}/g) : null;
|
982
|
-
return r !== null && (r.length === 6 || r.length === 8) && r.every(
|
982
|
+
return r !== null && (r.length === 6 || r.length === 8) && r.every(Jt);
|
983
983
|
};
|
984
984
|
}
|
985
|
-
const
|
986
|
-
function
|
985
|
+
const Jt = (e) => e.toLowerCase().match(/^[0-9a-f]{2}$/);
|
986
|
+
function Yt(e) {
|
987
987
|
return {
|
988
|
-
$validator:
|
988
|
+
$validator: Zt(e),
|
989
989
|
$message: "The value is not a valid MAC Address",
|
990
990
|
$params: {
|
991
991
|
type: "macAddress"
|
992
992
|
}
|
993
993
|
};
|
994
994
|
}
|
995
|
-
function
|
995
|
+
function er(e) {
|
996
996
|
return (t) => !O(t) || ye(t) <= d(e);
|
997
997
|
}
|
998
|
-
function
|
998
|
+
function tr(e) {
|
999
999
|
return {
|
1000
|
-
$validator:
|
1000
|
+
$validator: er(e),
|
1001
1001
|
$message: (t) => {
|
1002
1002
|
let {
|
1003
1003
|
$params: r
|
@@ -1010,12 +1010,12 @@ function er(e) {
|
|
1010
1010
|
}
|
1011
1011
|
};
|
1012
1012
|
}
|
1013
|
-
function
|
1013
|
+
function rr(e) {
|
1014
1014
|
return (t) => !O(t) || ye(t) >= d(e);
|
1015
1015
|
}
|
1016
|
-
function
|
1016
|
+
function ar(e) {
|
1017
1017
|
return {
|
1018
|
-
$validator:
|
1018
|
+
$validator: rr(e),
|
1019
1019
|
$message: (t) => {
|
1020
1020
|
let {
|
1021
1021
|
$params: r
|
@@ -1028,28 +1028,28 @@ function rr(e) {
|
|
1028
1028
|
}
|
1029
1029
|
};
|
1030
1030
|
}
|
1031
|
-
function
|
1031
|
+
function nr(e) {
|
1032
1032
|
return typeof e == "string" && (e = e.trim()), O(e);
|
1033
1033
|
}
|
1034
1034
|
var be = {
|
1035
|
-
$validator:
|
1035
|
+
$validator: nr,
|
1036
1036
|
$message: "Value is required",
|
1037
1037
|
$params: {
|
1038
1038
|
type: "required"
|
1039
1039
|
}
|
1040
1040
|
};
|
1041
|
-
const
|
1042
|
-
function
|
1041
|
+
const Ie = (e, t) => e ? O(typeof t == "string" ? t.trim() : t) : !0;
|
1042
|
+
function sr(e) {
|
1043
1043
|
return function(t, r) {
|
1044
1044
|
if (typeof e != "function")
|
1045
|
-
return
|
1045
|
+
return Ie(d(e), t);
|
1046
1046
|
const a = e.call(this, t, r);
|
1047
|
-
return
|
1047
|
+
return Ie(a, t);
|
1048
1048
|
};
|
1049
1049
|
}
|
1050
|
-
function
|
1050
|
+
function or(e) {
|
1051
1051
|
return {
|
1052
|
-
$validator:
|
1052
|
+
$validator: sr(e),
|
1053
1053
|
$message: "The value is required",
|
1054
1054
|
$params: {
|
1055
1055
|
type: "requiredIf",
|
@@ -1057,18 +1057,18 @@ function sr(e) {
|
|
1057
1057
|
}
|
1058
1058
|
};
|
1059
1059
|
}
|
1060
|
-
const
|
1061
|
-
function
|
1060
|
+
const Se = (e, t) => e ? !0 : O(typeof t == "string" ? t.trim() : t);
|
1061
|
+
function ir(e) {
|
1062
1062
|
return function(t, r) {
|
1063
1063
|
if (typeof e != "function")
|
1064
|
-
return
|
1064
|
+
return Se(d(e), t);
|
1065
1065
|
const a = e.call(this, t, r);
|
1066
|
-
return
|
1066
|
+
return Se(a, t);
|
1067
1067
|
};
|
1068
1068
|
}
|
1069
|
-
function
|
1069
|
+
function lr(e) {
|
1070
1070
|
return {
|
1071
|
-
$validator:
|
1071
|
+
$validator: ir(e),
|
1072
1072
|
$message: "The value is required",
|
1073
1073
|
$params: {
|
1074
1074
|
type: "requiredUnless",
|
@@ -1076,13 +1076,13 @@ function ir(e) {
|
|
1076
1076
|
}
|
1077
1077
|
};
|
1078
1078
|
}
|
1079
|
-
function
|
1079
|
+
function ur(e) {
|
1080
1080
|
return (t) => d(t) === d(e);
|
1081
1081
|
}
|
1082
|
-
function
|
1082
|
+
function cr(e) {
|
1083
1083
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "other";
|
1084
1084
|
return {
|
1085
|
-
$validator:
|
1085
|
+
$validator: ur(e),
|
1086
1086
|
$message: (r) => `The value must be equal to the ${t} value`,
|
1087
1087
|
$params: {
|
1088
1088
|
equalTo: e,
|
@@ -1091,103 +1091,103 @@ function ur(e) {
|
|
1091
1091
|
}
|
1092
1092
|
};
|
1093
1093
|
}
|
1094
|
-
const
|
1095
|
-
var
|
1096
|
-
$validator:
|
1094
|
+
const dr = /^(?:(?:(?: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;
|
1095
|
+
var pr = M(dr), mr = {
|
1096
|
+
$validator: pr,
|
1097
1097
|
$message: "The value is not a valid URL address",
|
1098
1098
|
$params: {
|
1099
1099
|
type: "url"
|
1100
1100
|
}
|
1101
1101
|
};
|
1102
|
-
function
|
1102
|
+
function fr(e) {
|
1103
1103
|
return function() {
|
1104
1104
|
for (var t = arguments.length, r = new Array(t), a = 0; a < t; a++)
|
1105
1105
|
r[a] = arguments[a];
|
1106
|
-
return e.reduce((n, s) =>
|
1106
|
+
return e.reduce((n, s) => z(n) ? n : B(s).apply(this, r), !1);
|
1107
1107
|
};
|
1108
1108
|
}
|
1109
|
-
function
|
1109
|
+
function gr(e) {
|
1110
1110
|
return function() {
|
1111
1111
|
for (var t = arguments.length, r = new Array(t), a = 0; a < t; a++)
|
1112
1112
|
r[a] = arguments[a];
|
1113
1113
|
return e.reduce(async (n, s) => {
|
1114
1114
|
const u = await n;
|
1115
|
-
return
|
1115
|
+
return z(u) ? u : B(s).apply(this, r);
|
1116
1116
|
}, Promise.resolve(!1));
|
1117
1117
|
};
|
1118
1118
|
}
|
1119
|
-
function
|
1119
|
+
function $r() {
|
1120
1120
|
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
1121
1121
|
t[r] = arguments[r];
|
1122
1122
|
const a = t.some((u) => u.$async), n = t.reduce((u, l) => l.$watchTargets ? u.concat(l.$watchTargets) : u, []);
|
1123
1123
|
let s = () => !1;
|
1124
|
-
return t.length && (s = a ?
|
1124
|
+
return t.length && (s = a ? gr(t) : fr(t)), {
|
1125
1125
|
$async: a,
|
1126
1126
|
$validator: s,
|
1127
1127
|
$watchTargets: n
|
1128
1128
|
};
|
1129
1129
|
}
|
1130
|
-
function
|
1130
|
+
function hr() {
|
1131
1131
|
return ve({
|
1132
1132
|
type: "or"
|
1133
|
-
}, Q("The value does not match any of the provided validators",
|
1133
|
+
}, Q("The value does not match any of the provided validators", $r(...arguments)));
|
1134
1134
|
}
|
1135
|
-
function
|
1135
|
+
function vr(e) {
|
1136
1136
|
return function() {
|
1137
1137
|
for (var t = arguments.length, r = new Array(t), a = 0; a < t; a++)
|
1138
1138
|
r[a] = arguments[a];
|
1139
|
-
return e.reduce((n, s) =>
|
1139
|
+
return e.reduce((n, s) => z(n) ? B(s).apply(this, r) : n, !0);
|
1140
1140
|
};
|
1141
1141
|
}
|
1142
|
-
function
|
1142
|
+
function yr(e) {
|
1143
1143
|
return function() {
|
1144
1144
|
for (var t = arguments.length, r = new Array(t), a = 0; a < t; a++)
|
1145
1145
|
r[a] = arguments[a];
|
1146
1146
|
return e.reduce(async (n, s) => {
|
1147
1147
|
const u = await n;
|
1148
|
-
return
|
1148
|
+
return z(u) ? B(s).apply(this, r) : u;
|
1149
1149
|
}, Promise.resolve(!0));
|
1150
1150
|
};
|
1151
1151
|
}
|
1152
|
-
function
|
1152
|
+
function _r() {
|
1153
1153
|
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
1154
1154
|
t[r] = arguments[r];
|
1155
1155
|
const a = t.some((u) => u.$async), n = t.reduce((u, l) => l.$watchTargets ? u.concat(l.$watchTargets) : u, []);
|
1156
1156
|
let s = () => !1;
|
1157
|
-
return t.length && (s = a ?
|
1157
|
+
return t.length && (s = a ? yr(t) : vr(t)), {
|
1158
1158
|
$async: a,
|
1159
1159
|
$validator: s,
|
1160
1160
|
$watchTargets: n
|
1161
1161
|
};
|
1162
1162
|
}
|
1163
|
-
function
|
1163
|
+
function br() {
|
1164
1164
|
return ve({
|
1165
1165
|
type: "and"
|
1166
|
-
}, Q("The value does not match all of the provided validators",
|
1166
|
+
}, Q("The value does not match all of the provided validators", _r(...arguments)));
|
1167
1167
|
}
|
1168
|
-
function
|
1168
|
+
function wr(e) {
|
1169
1169
|
return function(t, r) {
|
1170
1170
|
if (!O(t))
|
1171
1171
|
return !0;
|
1172
1172
|
const a = B(e).call(this, t, r);
|
1173
|
-
return
|
1173
|
+
return Lt(a) ? a.then((n) => !z(n)) : !z(a);
|
1174
1174
|
};
|
1175
1175
|
}
|
1176
|
-
function
|
1176
|
+
function xr(e) {
|
1177
1177
|
return {
|
1178
|
-
$validator:
|
1178
|
+
$validator: wr(e),
|
1179
1179
|
$message: "The value does not match the provided validator",
|
1180
1180
|
$params: {
|
1181
1181
|
type: "not"
|
1182
1182
|
}
|
1183
1183
|
};
|
1184
1184
|
}
|
1185
|
-
function
|
1185
|
+
function Pr(e) {
|
1186
1186
|
return (t) => !O(t) || (!/\s/.test(t) || t instanceof Date) && +t >= +d(e);
|
1187
1187
|
}
|
1188
|
-
function
|
1188
|
+
function Rr(e) {
|
1189
1189
|
return {
|
1190
|
-
$validator:
|
1190
|
+
$validator: Pr(e),
|
1191
1191
|
$message: (t) => {
|
1192
1192
|
let {
|
1193
1193
|
$params: r
|
@@ -1200,11 +1200,11 @@ function Pr(e) {
|
|
1200
1200
|
}
|
1201
1201
|
};
|
1202
1202
|
}
|
1203
|
-
function
|
1203
|
+
function Or(e) {
|
1204
1204
|
return (t) => !O(t) || (!/\s/.test(t) || t instanceof Date) && +t <= +d(e);
|
1205
1205
|
}
|
1206
|
-
var
|
1207
|
-
$validator:
|
1206
|
+
var Er = (e) => ({
|
1207
|
+
$validator: Or(e),
|
1208
1208
|
$message: (t) => {
|
1209
1209
|
let {
|
1210
1210
|
$params: r
|
@@ -1215,20 +1215,20 @@ var Or = (e) => ({
|
|
1215
1215
|
max: e,
|
1216
1216
|
type: "maxValue"
|
1217
1217
|
}
|
1218
|
-
}),
|
1219
|
-
$validator:
|
1218
|
+
}), Cr = M(/(^[0-9]*$)|(^-[0-9]+$)/), jr = {
|
1219
|
+
$validator: Cr,
|
1220
1220
|
$message: "Value is not an integer",
|
1221
1221
|
$params: {
|
1222
1222
|
type: "integer"
|
1223
1223
|
}
|
1224
|
-
},
|
1225
|
-
$validator:
|
1224
|
+
}, Ar = M(/^[-]?\d*(\.\d+)?$/), Tr = {
|
1225
|
+
$validator: Ar,
|
1226
1226
|
$message: "Value must be decimal",
|
1227
1227
|
$params: {
|
1228
1228
|
type: "decimal"
|
1229
1229
|
}
|
1230
1230
|
};
|
1231
|
-
function
|
1231
|
+
function Ir(e) {
|
1232
1232
|
let {
|
1233
1233
|
t,
|
1234
1234
|
messagePath: r = (n) => {
|
@@ -1263,29 +1263,29 @@ function Tr(e) {
|
|
1263
1263
|
}
|
1264
1264
|
const qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1265
1265
|
__proto__: null,
|
1266
|
-
alpha:
|
1267
|
-
alphaNum:
|
1268
|
-
and:
|
1269
|
-
between:
|
1270
|
-
createI18nMessage:
|
1271
|
-
decimal:
|
1272
|
-
email:
|
1266
|
+
alpha: Mt,
|
1267
|
+
alphaNum: Ft,
|
1268
|
+
and: br,
|
1269
|
+
between: Ht,
|
1270
|
+
createI18nMessage: Ir,
|
1271
|
+
decimal: Tr,
|
1272
|
+
email: Ut,
|
1273
1273
|
helpers: _e,
|
1274
|
-
integer:
|
1275
|
-
ipAddress:
|
1276
|
-
macAddress:
|
1277
|
-
maxLength:
|
1278
|
-
maxValue:
|
1279
|
-
minLength:
|
1280
|
-
minValue:
|
1281
|
-
not:
|
1282
|
-
numeric:
|
1283
|
-
or:
|
1274
|
+
integer: jr,
|
1275
|
+
ipAddress: Qt,
|
1276
|
+
macAddress: Yt,
|
1277
|
+
maxLength: tr,
|
1278
|
+
maxValue: Er,
|
1279
|
+
minLength: ar,
|
1280
|
+
minValue: Rr,
|
1281
|
+
not: xr,
|
1282
|
+
numeric: Nt,
|
1283
|
+
or: hr,
|
1284
1284
|
required: be,
|
1285
|
-
requiredIf:
|
1286
|
-
requiredUnless:
|
1287
|
-
sameAs:
|
1288
|
-
url:
|
1285
|
+
requiredIf: or,
|
1286
|
+
requiredUnless: lr,
|
1287
|
+
sameAs: cr,
|
1288
|
+
url: mr
|
1289
1289
|
}, Symbol.toStringTag, { value: "Module" }));
|
1290
1290
|
function Le(e) {
|
1291
1291
|
return ["maxLength", "minLength"].includes(e);
|
@@ -1295,22 +1295,22 @@ function Sr(e, t) {
|
|
1295
1295
|
[e]: qe[e](t)
|
1296
1296
|
};
|
1297
1297
|
}
|
1298
|
-
function
|
1298
|
+
function Lr(e, t, r) {
|
1299
1299
|
return {
|
1300
1300
|
[e]: _e.withMessage(r, qe[e](t))
|
1301
1301
|
};
|
1302
1302
|
}
|
1303
|
-
function
|
1303
|
+
function Vr() {
|
1304
1304
|
return { required: be };
|
1305
1305
|
}
|
1306
|
-
function
|
1306
|
+
function kr(e) {
|
1307
1307
|
return {
|
1308
1308
|
required: _e.withMessage(e, be)
|
1309
1309
|
};
|
1310
1310
|
}
|
1311
|
-
function
|
1311
|
+
function zr(e, t) {
|
1312
1312
|
if (Le(e) && typeof t.message == "string" && typeof t.value == "number")
|
1313
|
-
return
|
1313
|
+
return Lr(
|
1314
1314
|
e,
|
1315
1315
|
t.value,
|
1316
1316
|
t.message
|
@@ -1318,15 +1318,15 @@ function kr(e, t) {
|
|
1318
1318
|
if (Le(e) && typeof t.message > "u" && typeof t.value == "number")
|
1319
1319
|
return Sr(e, t.value);
|
1320
1320
|
if (e === "required" && typeof t.message == "string")
|
1321
|
-
return
|
1321
|
+
return kr(t.message);
|
1322
1322
|
if (e === "required" && typeof t.message > "u")
|
1323
|
-
return
|
1323
|
+
return Vr();
|
1324
1324
|
throw new Error("No valid rule detected");
|
1325
1325
|
}
|
1326
|
-
const
|
1326
|
+
const Mr = {
|
1327
1327
|
key: 0,
|
1328
1328
|
class: "pdap-form-error-message"
|
1329
|
-
},
|
1329
|
+
}, Dr = /* @__PURE__ */ j({
|
1330
1330
|
__name: "PdapForm",
|
1331
1331
|
props: {
|
1332
1332
|
error: { default: null },
|
@@ -1355,7 +1355,7 @@ const zr = {
|
|
1355
1355
|
const $ = Object.entries(h.validators ?? {}).reduce(
|
1356
1356
|
(i, [p, f]) => ({
|
1357
1357
|
...i,
|
1358
|
-
...
|
1358
|
+
...zr(p, f)
|
1359
1359
|
}),
|
1360
1360
|
{}
|
1361
1361
|
);
|
@@ -1365,7 +1365,7 @@ const zr = {
|
|
1365
1365
|
...$
|
1366
1366
|
}
|
1367
1367
|
};
|
1368
|
-
}, {}), l =
|
1368
|
+
}, {}), l = Et(u, s, { $autoDirty: !1, $lazy: !0 }), o = P(r.error);
|
1369
1369
|
function c(m, h) {
|
1370
1370
|
s.value[m] = h;
|
1371
1371
|
}
|
@@ -1393,10 +1393,10 @@ const zr = {
|
|
1393
1393
|
class: "pdap-form",
|
1394
1394
|
onSubmit: h[0] || (h[0] = et(($) => g($), ["prevent"]))
|
1395
1395
|
}, [
|
1396
|
-
typeof o.value == "string" ? (v(), x("div",
|
1396
|
+
typeof o.value == "string" ? (v(), x("div", Mr, k(o.value), 1)) : q("", !0),
|
1397
1397
|
(v(!0), x(U, null, ge(n.value, ($) => {
|
1398
1398
|
var i, p, f, y;
|
1399
|
-
return v(),
|
1399
|
+
return v(), I(It, de($, {
|
1400
1400
|
key: $.name,
|
1401
1401
|
error: (i = d(l)[$.name]) != null && i.$error ? (y = (f = (p = d(l)[$.name]) == null ? void 0 : p.$errors) == null ? void 0 : f[0]) == null ? void 0 : y.$message : "",
|
1402
1402
|
value: s.value[$.name],
|
@@ -1408,7 +1408,7 @@ const zr = {
|
|
1408
1408
|
], 32));
|
1409
1409
|
}
|
1410
1410
|
});
|
1411
|
-
const
|
1411
|
+
const Fr = /* @__PURE__ */ j({
|
1412
1412
|
__name: "GridContainer",
|
1413
1413
|
props: {
|
1414
1414
|
columns: { default: "auto" },
|
@@ -1427,7 +1427,7 @@ const Dr = /* @__PURE__ */ j({
|
|
1427
1427
|
},
|
1428
1428
|
...t.templateColumns && { gridTemplateColumns: t.templateColumns }
|
1429
1429
|
});
|
1430
|
-
return (u, l) => (v(),
|
1430
|
+
return (u, l) => (v(), I(fe(u.component), {
|
1431
1431
|
class: X(r),
|
1432
1432
|
style: he(s)
|
1433
1433
|
}, {
|
@@ -1455,7 +1455,7 @@ const ta = /* @__PURE__ */ j({
|
|
1455
1455
|
gridRow: `span ${t.spanRow} / span ${t.spanRow}`
|
1456
1456
|
}
|
1457
1457
|
});
|
1458
|
-
return (n, s) => (v(),
|
1458
|
+
return (n, s) => (v(), I(fe(n.component), {
|
1459
1459
|
class: X(r),
|
1460
1460
|
style: he(a)
|
1461
1461
|
}, {
|
@@ -1466,14 +1466,14 @@ const ta = /* @__PURE__ */ j({
|
|
1466
1466
|
}, 8, ["class", "style"]));
|
1467
1467
|
}
|
1468
1468
|
});
|
1469
|
-
const
|
1469
|
+
const qr = /* @__PURE__ */ b("svg", {
|
1470
1470
|
xmlns: "http://www.w3.org/2000/svg",
|
1471
1471
|
viewBox: "0 0 448 512"
|
1472
1472
|
}, [
|
1473
1473
|
/* @__PURE__ */ b("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" })
|
1474
|
-
], -1),
|
1475
|
-
|
1476
|
-
],
|
1474
|
+
], -1), Nr = [
|
1475
|
+
qr
|
1476
|
+
], Br = ["aria-expanded"], Hr = ["href"], Gr = /* @__PURE__ */ j({
|
1477
1477
|
__name: "PdapNav",
|
1478
1478
|
props: {
|
1479
1479
|
topPosition: {}
|
@@ -1510,7 +1510,7 @@ const Fr = /* @__PURE__ */ b("svg", {
|
|
1510
1510
|
class: "pdap-nav-open-button",
|
1511
1511
|
role: "button",
|
1512
1512
|
onClick: s
|
1513
|
-
},
|
1513
|
+
}, Nr),
|
1514
1514
|
b("nav", {
|
1515
1515
|
id: "nav",
|
1516
1516
|
"aria-expanded": r.isMobile && r.isExpanded || !r.isMobile,
|
@@ -1528,8 +1528,8 @@ const Fr = /* @__PURE__ */ b("svg", {
|
|
1528
1528
|
target: "_blank",
|
1529
1529
|
referrerpolicy: "no-referrer",
|
1530
1530
|
onClick: s
|
1531
|
-
},
|
1532
|
-
o.path ? (v(),
|
1531
|
+
}, k(o.text), 9, Hr)) : q("", !0),
|
1532
|
+
o.path ? (v(), I(d(ke), {
|
1533
1533
|
key: 1,
|
1534
1534
|
"active-class": "pdap-nav-link-current",
|
1535
1535
|
"exact-active-class": "pdap-nav-link-current-exact",
|
@@ -1538,16 +1538,16 @@ const Fr = /* @__PURE__ */ b("svg", {
|
|
1538
1538
|
onClick: s
|
1539
1539
|
}, {
|
1540
1540
|
default: R(() => [
|
1541
|
-
N(
|
1541
|
+
N(k(o.text), 1)
|
1542
1542
|
]),
|
1543
1543
|
_: 2
|
1544
1544
|
}, 1032, ["to"])) : q("", !0)
|
1545
1545
|
]))), 128))
|
1546
|
-
], 14,
|
1546
|
+
], 14, Br)
|
1547
1547
|
], 64));
|
1548
1548
|
}
|
1549
1549
|
});
|
1550
|
-
const
|
1550
|
+
const Xr = ["href"], Ur = ["src"], Wr = ["src"], ra = /* @__PURE__ */ j({
|
1551
1551
|
__name: "PdapHeader",
|
1552
1552
|
props: {
|
1553
1553
|
logoImageSrc: { default: "node_modules/pdap-design-system/dist/images/lockup.svg" },
|
@@ -1568,7 +1568,7 @@ const Gr = ["href"], Xr = ["src"], Ur = ["src"], ra = /* @__PURE__ */ j({
|
|
1568
1568
|
ref: a,
|
1569
1569
|
class: "pdap-header"
|
1570
1570
|
}, [
|
1571
|
-
d(n) ? (v(),
|
1571
|
+
d(n) ? (v(), I(d(ke), {
|
1572
1572
|
key: 1,
|
1573
1573
|
to: u.logoImageAnchorPath,
|
1574
1574
|
class: "logo"
|
@@ -1579,7 +1579,7 @@ const Gr = ["href"], Xr = ["src"], Ur = ["src"], ra = /* @__PURE__ */ j({
|
|
1579
1579
|
loading: "lazy",
|
1580
1580
|
width: "250",
|
1581
1581
|
alt: "Police Data Accessibility Project Logo"
|
1582
|
-
}, null, 8,
|
1582
|
+
}, null, 8, Wr)
|
1583
1583
|
]),
|
1584
1584
|
_: 1
|
1585
1585
|
}, 8, ["to"])) : (v(), x("a", {
|
@@ -1592,13 +1592,13 @@ const Gr = ["href"], Xr = ["src"], Ur = ["src"], ra = /* @__PURE__ */ j({
|
|
1592
1592
|
loading: "lazy",
|
1593
1593
|
width: "250",
|
1594
1594
|
alt: "Police Data Accessibility Project Logo"
|
1595
|
-
}, null, 8,
|
1596
|
-
], 8,
|
1597
|
-
H(
|
1595
|
+
}, null, 8, Ur)
|
1596
|
+
], 8, Xr)),
|
1597
|
+
H(Gr, { "top-position": r.value }, null, 8, ["top-position"])
|
1598
1598
|
], 512));
|
1599
1599
|
}
|
1600
1600
|
});
|
1601
|
-
const
|
1601
|
+
const Kr = /* @__PURE__ */ b("h2", { class: "mt-0" }, "Search our database", -1), Qr = /* @__PURE__ */ b("p", { class: "pb-4 md:pb-8" }, [
|
1602
1602
|
/* @__PURE__ */ N(" If you have a question to answer, we may already know about helpful data in your area. "),
|
1603
1603
|
/* @__PURE__ */ b("a", { href: "https://pdap.io/data" }, "Learn more about the data here.")
|
1604
1604
|
], -1), aa = /* @__PURE__ */ j({
|
@@ -1638,8 +1638,8 @@ const Wr = /* @__PURE__ */ b("h2", { class: "mt-0" }, "Search our database", -1)
|
|
1638
1638
|
return (u, l) => (v(), x(U, null, [
|
1639
1639
|
H(pe, { class: "p-0" }, {
|
1640
1640
|
default: R(() => [
|
1641
|
-
|
1642
|
-
|
1641
|
+
Kr,
|
1642
|
+
Qr
|
1643
1643
|
]),
|
1644
1644
|
_: 1
|
1645
1645
|
}),
|
@@ -1648,7 +1648,7 @@ const Wr = /* @__PURE__ */ b("h2", { class: "mt-0" }, "Search our database", -1)
|
|
1648
1648
|
class: "pdap-quick-search-form h-full max-h-[75-vh] justify-start p-0"
|
1649
1649
|
}, {
|
1650
1650
|
default: R(() => [
|
1651
|
-
H(
|
1651
|
+
H(Dr, {
|
1652
1652
|
id: "quick-search-form",
|
1653
1653
|
class: "flex flex-wrap gap-x-4",
|
1654
1654
|
error: n.value,
|
@@ -1675,7 +1675,7 @@ const Wr = /* @__PURE__ */ b("h2", { class: "mt-0" }, "Search our database", -1)
|
|
1675
1675
|
], 64));
|
1676
1676
|
}
|
1677
1677
|
});
|
1678
|
-
const
|
1678
|
+
const Zr = ["alt", "src"], na = /* @__PURE__ */ j({
|
1679
1679
|
__name: "TileIcon",
|
1680
1680
|
props: {
|
1681
1681
|
imgAltText: {},
|
@@ -1686,10 +1686,10 @@ const Qr = ["alt", "src"], na = /* @__PURE__ */ j({
|
|
1686
1686
|
class: "pdap-tile-icon",
|
1687
1687
|
alt: t.imgAltText,
|
1688
1688
|
src: t.imgSrc
|
1689
|
-
}, null, 8,
|
1689
|
+
}, null, 8, Zr));
|
1690
1690
|
}
|
1691
1691
|
});
|
1692
|
-
const
|
1692
|
+
const sa = {
|
1693
1693
|
content: ["./src/**/*.vue", "./src/**/*.css"],
|
1694
1694
|
theme: {
|
1695
1695
|
// Nested within "extend" - extends tailwind theme defaults, only overrides properties named here
|
@@ -1766,20 +1766,17 @@ const Zr = {
|
|
1766
1766
|
"6xl": "3rem"
|
1767
1767
|
}
|
1768
1768
|
}
|
1769
|
-
}
|
1770
|
-
__proto__: null,
|
1771
|
-
default: Zr
|
1772
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
1769
|
+
};
|
1773
1770
|
export {
|
1774
1771
|
at as Button,
|
1775
1772
|
pe as FlexContainer,
|
1776
1773
|
ea as Footer,
|
1777
|
-
|
1778
|
-
|
1774
|
+
Dr as Form,
|
1775
|
+
Fr as GridContainer,
|
1779
1776
|
ta as GridItem,
|
1780
1777
|
ra as Header,
|
1781
|
-
|
1782
|
-
|
1778
|
+
It as Input,
|
1779
|
+
Gr as Nav,
|
1783
1780
|
T as PdapInputTypes,
|
1784
1781
|
aa as QuickSearchForm,
|
1785
1782
|
na as TileIcon,
|