pdap-design-system 2.7.0-beta.1 → 2.7.0-beta.3
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +38 -47
- package/dist/components/Breadcrumbs/PdapBreadcrumbs.vue.d.ts +2 -0
- package/dist/components/Breadcrumbs/index.d.ts +2 -0
- package/dist/components/Dropdown/PdapDropdown.vue.d.ts +46 -0
- package/dist/components/Dropdown/index.d.ts +1 -0
- package/dist/components/Dropdown/types.d.ts +9 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/directives/click-outside.d.ts +16 -0
- package/dist/directives/index.d.ts +1 -0
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1021 -856
- package/dist/styles.css +1 -1
- package/dist/utils/breadcrumbs.d.ts +7 -0
- package/dist/utils/breadcrumbs.test.d.ts +1 -0
- package/docs/components.md +118 -146
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -1,72 +1,72 @@
|
|
1
|
-
import { defineComponent as C, reactive as
|
2
|
-
import { RouterLink as
|
3
|
-
const
|
1
|
+
import { defineComponent as C, reactive as O, openBlock as y, createElementBlock as v, normalizeClass as P, renderSlot as V, createBlock as x, resolveDynamicComponent as ye, withCtx as D, inject as ae, resolveComponent as Be, createElementVNode as w, Fragment as G, renderList as le, unref as L, toDisplayString as z, createCommentVNode as F, createTextVNode as T, getCurrentInstance as it, ref as N, onBeforeMount as Ge, watch as K, isRef as pe, onBeforeUnmount as fe, computed as h, isReactive as lt, isReadonly as ct, provide as Ce, nextTick as se, mergeProps as W, normalizeProps as dt, watchEffect as Te, withModifiers as me, normalizeStyle as we, onMounted as Fe, createVNode as H, withDirectives as xe, withKeys as Ie, toHandlers as Lt, Transition as Mt, vShow as gt, TransitionGroup as pt } from "vue";
|
2
|
+
import { RouterLink as oe, useRouter as mt, useRoute as jt } from "vue-router";
|
3
|
+
const We = /* @__PURE__ */ C({
|
4
4
|
__name: "PdapButton",
|
5
5
|
props: {
|
6
6
|
intent: { default: "primary" },
|
7
7
|
isLoading: { type: Boolean, default: !1 }
|
8
8
|
},
|
9
9
|
setup(e) {
|
10
|
-
const t = e, r =
|
10
|
+
const t = e, r = O({
|
11
11
|
"pdap-button": !0,
|
12
12
|
[`pdap-button-${t.intent}`]: !!t.intent,
|
13
13
|
"pdap-button-loading": t.isLoading
|
14
14
|
});
|
15
|
-
return (
|
16
|
-
class:
|
15
|
+
return (n, a) => (y(), v("button", {
|
16
|
+
class: P(r)
|
17
17
|
}, [
|
18
|
-
|
18
|
+
V(n.$slots, "default")
|
19
19
|
], 2));
|
20
20
|
}
|
21
21
|
});
|
22
|
-
const
|
22
|
+
const yt = {
|
23
23
|
name: "FlexContainer"
|
24
|
-
},
|
25
|
-
...
|
24
|
+
}, kn = /* @__PURE__ */ C({
|
25
|
+
...yt,
|
26
26
|
props: {
|
27
27
|
alignment: { default: "start" },
|
28
28
|
component: { default: "div" }
|
29
29
|
},
|
30
30
|
setup(e) {
|
31
|
-
const r =
|
31
|
+
const r = O({
|
32
32
|
"pdap-flex-container": !0,
|
33
33
|
[`pdap-flex-container-${e.alignment}`]: !0
|
34
34
|
});
|
35
|
-
return (
|
36
|
-
class:
|
35
|
+
return (n, a) => (y(), x(ye(n.component), {
|
36
|
+
class: P(r)
|
37
37
|
}, {
|
38
|
-
default:
|
39
|
-
|
38
|
+
default: D(() => [
|
39
|
+
V(n.$slots, "default")
|
40
40
|
]),
|
41
41
|
_: 3
|
42
42
|
}, 8, ["class"]));
|
43
43
|
}
|
44
|
-
}),
|
45
|
-
/* @__PURE__ */
|
46
|
-
/* @__PURE__ */
|
44
|
+
}), ft = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI0LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIga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Sw2MS41LDYwLjUsNjEuNXoiLz4KPHBhdGggZD0iTTg4LjcsODAuMUw4Nyw3NC40aC03bC0xLjgsNS44aC01LjNsOC4yLTIyLjloNC44bDguMywyMi45aC01LjVWODAuMXogTTg0LDY0LjZjLTAuMi0wLjctMC41LTEuNi0wLjUtMS44CgljMCwwLjEtMC4yLDEtMC41LDEuOGwtMS43LDUuNmg0LjRMODQsNjQuNnoiLz4KPHBhdGggZD0iTTEwNC43LDcxLjFoLTIuNnY5LjFoLTVWNTcuM2g3LjZjNS4xLDAsOC40LDIuNCw4LjQsNi43UzEwOS44LDcxLjEsMTA0LjcsNzEuMXogTTEwNC43LDYxLjVoLTIuNnY1LjNoMi42CgljMi4zLDAsMy4zLTAuOSwzLjMtMi43UzEwNi45LDYxLjUsMTA0LjcsNjEuNXoiLz4KPC9zdmc+Cg==", wt = { class: "pdap-footer" }, ht = { class: "pdap-flex-container-center" }, vt = { class: "pdap-footer-social-links" }, $t = ["href"], Nt = { class: "pdap-footer-copyright" }, Dt = /* @__PURE__ */ w("br", null, null, -1), Ct = /* @__PURE__ */ w("p", { class: "pdap-footer-copyright" }, [
|
45
|
+
/* @__PURE__ */ T(" PDAP is a non-profit. EIN: 85-4207132. "),
|
46
|
+
/* @__PURE__ */ w("a", {
|
47
47
|
href: "https://docs.pdap.io/meta/policy/pdap-privacy-policy",
|
48
48
|
alt: "Privacy Policy",
|
49
49
|
target: "_blank"
|
50
50
|
}, [
|
51
|
-
/* @__PURE__ */
|
52
|
-
/* @__PURE__ */
|
53
|
-
/* @__PURE__ */
|
51
|
+
/* @__PURE__ */ w("br"),
|
52
|
+
/* @__PURE__ */ T(" Privacy Policy "),
|
53
|
+
/* @__PURE__ */ w("i", { class: "fa fa-external-link" })
|
54
54
|
]),
|
55
|
-
/* @__PURE__ */
|
56
|
-
/* @__PURE__ */
|
57
|
-
], -1),
|
55
|
+
/* @__PURE__ */ w("br"),
|
56
|
+
/* @__PURE__ */ w("a", { href: "mailto:contact@pdap.io" }, "contact@pdap.io")
|
57
|
+
], -1), Tt = { class: "pdap-footer-widget-links" }, xt = /* @__PURE__ */ w("a", {
|
58
58
|
href: "https://www.guidestar.org/profile/85-4207132",
|
59
59
|
target: "_blank"
|
60
60
|
}, [
|
61
|
-
/* @__PURE__ */
|
62
|
-
], -1),
|
61
|
+
/* @__PURE__ */ w("img", { src: "https://widgets.guidestar.org/gximage2?o=9973356&l=v4" })
|
62
|
+
], -1), It = ["href"], St = ["src"], Et = ["src"], Yn = /* @__PURE__ */ C({
|
63
63
|
__name: "PdapFooter",
|
64
64
|
props: {
|
65
|
-
logoImageSrc: { default:
|
65
|
+
logoImageSrc: { default: ft },
|
66
66
|
logoImageAnchorPath: { default: "/" }
|
67
67
|
},
|
68
68
|
setup(e) {
|
69
|
-
const t = e, r =
|
69
|
+
const t = e, r = ae("footerLinks", [
|
70
70
|
{
|
71
71
|
href: "https://github.com/orgs/Police-Data-Accessibility-Project",
|
72
72
|
text: "Github"
|
@@ -83,98 +83,98 @@ const lt = {
|
|
83
83
|
path: "/jobs",
|
84
84
|
text: "Jobs"
|
85
85
|
}
|
86
|
-
]),
|
87
|
-
return (
|
88
|
-
const
|
89
|
-
return y(),
|
90
|
-
|
91
|
-
|
92
|
-
(y(!0),
|
93
|
-
key:
|
86
|
+
]), n = t.logoImageAnchorPath.startsWith("/");
|
87
|
+
return (a, s) => {
|
88
|
+
const u = Be("router-link");
|
89
|
+
return y(), v("footer", wt, [
|
90
|
+
w("div", ht, [
|
91
|
+
w("ul", vt, [
|
92
|
+
(y(!0), v(G, null, le(L(r), (i) => (y(), v("li", {
|
93
|
+
key: i.text,
|
94
94
|
class: "pdap-footer-link-container"
|
95
95
|
}, [
|
96
|
-
|
96
|
+
i.href ? (y(), v("a", {
|
97
97
|
key: 0,
|
98
98
|
class: "pdap-footer-social-link",
|
99
|
-
href:
|
99
|
+
href: i.href,
|
100
100
|
target: "_blank",
|
101
101
|
referrerpolicy: "no-referrer"
|
102
|
-
},
|
103
|
-
|
102
|
+
}, z(i.text), 9, $t)) : F("", !0),
|
103
|
+
i.path ? (y(), x(u, {
|
104
104
|
key: 1,
|
105
105
|
"active-class": "pdap-footer-social-link-current",
|
106
106
|
"exact-active-class": "pdap-footer-social-link-current-exact",
|
107
107
|
class: "pdap-footer-social-link",
|
108
|
-
to:
|
108
|
+
to: i.path
|
109
109
|
}, {
|
110
|
-
default:
|
111
|
-
|
110
|
+
default: D(() => [
|
111
|
+
T(z(i.text), 1)
|
112
112
|
]),
|
113
113
|
_: 2
|
114
|
-
}, 1032, ["to"])) :
|
114
|
+
}, 1032, ["to"])) : F("", !0)
|
115
115
|
]))), 128))
|
116
116
|
]),
|
117
|
-
|
118
|
-
|
119
|
-
|
117
|
+
w("p", Nt, [
|
118
|
+
T(" © " + z((/* @__PURE__ */ new Date()).getFullYear()) + " Police Data Accessibility Project", 1),
|
119
|
+
Dt
|
120
120
|
]),
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
L(
|
121
|
+
Ct,
|
122
|
+
w("div", Tt, [
|
123
|
+
xt,
|
124
|
+
L(n) ? (y(), x(u, {
|
125
125
|
key: 1,
|
126
|
-
to:
|
126
|
+
to: a.logoImageAnchorPath,
|
127
127
|
class: "pdap-footer-logo"
|
128
128
|
}, {
|
129
|
-
default:
|
130
|
-
|
131
|
-
src:
|
129
|
+
default: D(() => [
|
130
|
+
w("img", {
|
131
|
+
src: a.logoImageSrc,
|
132
132
|
loading: "lazy",
|
133
133
|
width: "250",
|
134
134
|
alt: "Police Data Accessibility Project Logo"
|
135
|
-
}, null, 8,
|
135
|
+
}, null, 8, Et)
|
136
136
|
]),
|
137
137
|
_: 1
|
138
|
-
}, 8, ["to"])) : (y(),
|
138
|
+
}, 8, ["to"])) : (y(), v("a", {
|
139
139
|
key: 0,
|
140
|
-
href:
|
140
|
+
href: a.logoImageAnchorPath,
|
141
141
|
class: "pdap-footer-logo"
|
142
142
|
}, [
|
143
|
-
|
144
|
-
src:
|
143
|
+
w("img", {
|
144
|
+
src: a.logoImageSrc,
|
145
145
|
loading: "lazy",
|
146
146
|
width: "250",
|
147
147
|
alt: "Police Data Accessibility Project Logo"
|
148
|
-
}, null, 8,
|
149
|
-
], 8,
|
148
|
+
}, null, 8, St)
|
149
|
+
], 8, It))
|
150
150
|
])
|
151
151
|
])
|
152
152
|
]);
|
153
153
|
};
|
154
154
|
}
|
155
155
|
});
|
156
|
-
function
|
156
|
+
function Se(e, t) {
|
157
157
|
var r = Object.keys(e);
|
158
158
|
if (Object.getOwnPropertySymbols) {
|
159
|
-
var
|
160
|
-
t && (
|
161
|
-
return Object.getOwnPropertyDescriptor(e,
|
162
|
-
})), r.push.apply(r,
|
159
|
+
var n = Object.getOwnPropertySymbols(e);
|
160
|
+
t && (n = n.filter(function(a) {
|
161
|
+
return Object.getOwnPropertyDescriptor(e, a).enumerable;
|
162
|
+
})), r.push.apply(r, n);
|
163
163
|
}
|
164
164
|
return r;
|
165
165
|
}
|
166
|
-
function
|
166
|
+
function k(e) {
|
167
167
|
for (var t = 1; t < arguments.length; t++) {
|
168
168
|
var r = arguments[t] != null ? arguments[t] : {};
|
169
|
-
t % 2 ?
|
170
|
-
|
171
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) :
|
172
|
-
Object.defineProperty(e,
|
169
|
+
t % 2 ? Se(Object(r), !0).forEach(function(n) {
|
170
|
+
Ot(e, n, r[n]);
|
171
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Se(Object(r)).forEach(function(n) {
|
172
|
+
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
173
173
|
});
|
174
174
|
}
|
175
175
|
return e;
|
176
176
|
}
|
177
|
-
function
|
177
|
+
function Ot(e, t, r) {
|
178
178
|
return t in e ? Object.defineProperty(e, t, {
|
179
179
|
value: r,
|
180
180
|
enumerable: !0,
|
@@ -182,492 +182,492 @@ function $t(e, t, r) {
|
|
182
182
|
writable: !0
|
183
183
|
}) : e[t] = r, e;
|
184
184
|
}
|
185
|
-
function
|
185
|
+
function Ee(e) {
|
186
186
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
187
|
-
return Object.keys(e).reduce((r,
|
187
|
+
return Object.keys(e).reduce((r, n) => (t.includes(n) || (r[n] = L(e[n])), r), {});
|
188
188
|
}
|
189
|
-
function
|
189
|
+
function ue(e) {
|
190
190
|
return typeof e == "function";
|
191
191
|
}
|
192
|
-
function
|
193
|
-
return
|
192
|
+
function zt(e) {
|
193
|
+
return lt(e) || ct(e);
|
194
194
|
}
|
195
|
-
function
|
196
|
-
let
|
197
|
-
const
|
198
|
-
for (let s = 0; s <
|
199
|
-
if (!a[
|
195
|
+
function He(e, t, r) {
|
196
|
+
let n = e;
|
197
|
+
const a = t.split(".");
|
198
|
+
for (let s = 0; s < a.length; s++) {
|
199
|
+
if (!n[a[s]])
|
200
200
|
return r;
|
201
|
-
|
201
|
+
n = n[a[s]];
|
202
202
|
}
|
203
|
-
return
|
203
|
+
return n;
|
204
204
|
}
|
205
|
-
function
|
206
|
-
return h(() => e.some((
|
205
|
+
function ge(e, t, r) {
|
206
|
+
return h(() => e.some((n) => He(t, n, {
|
207
207
|
[r]: !1
|
208
208
|
})[r]));
|
209
209
|
}
|
210
|
-
function
|
211
|
-
return h(() => e.reduce((
|
212
|
-
const s =
|
210
|
+
function Oe(e, t, r) {
|
211
|
+
return h(() => e.reduce((n, a) => {
|
212
|
+
const s = He(t, a, {
|
213
213
|
[r]: !1
|
214
214
|
})[r] || [];
|
215
|
-
return
|
215
|
+
return n.concat(s);
|
216
216
|
}, []));
|
217
217
|
}
|
218
|
-
function
|
219
|
-
return e.call(
|
218
|
+
function Ze(e, t, r, n) {
|
219
|
+
return e.call(n, L(t), L(r), n);
|
220
220
|
}
|
221
|
-
function
|
221
|
+
function Je(e) {
|
222
222
|
return e.$valid !== void 0 ? !e.$valid : !e;
|
223
223
|
}
|
224
|
-
function
|
224
|
+
function bt(e, t, r, n, a, s, u) {
|
225
225
|
let {
|
226
|
-
$lazy:
|
226
|
+
$lazy: i,
|
227
227
|
$rewardEarly: l
|
228
|
-
} =
|
229
|
-
const
|
228
|
+
} = a, c = arguments.length > 7 && arguments[7] !== void 0 ? arguments[7] : [], M = arguments.length > 8 ? arguments[8] : void 0, m = arguments.length > 9 ? arguments[9] : void 0, j = arguments.length > 10 ? arguments[10] : void 0;
|
229
|
+
const p = N(!!n.value), o = N(0);
|
230
230
|
r.value = !1;
|
231
|
-
const
|
232
|
-
if (
|
231
|
+
const d = K([t, n].concat(c, j), () => {
|
232
|
+
if (i && !n.value || l && !m.value && !r.value)
|
233
233
|
return;
|
234
|
-
let
|
234
|
+
let g;
|
235
235
|
try {
|
236
|
-
|
237
|
-
} catch (
|
238
|
-
|
236
|
+
g = Ze(e, t, M, u);
|
237
|
+
} catch (f) {
|
238
|
+
g = Promise.reject(f);
|
239
239
|
}
|
240
|
-
|
241
|
-
|
242
|
-
}).catch((
|
243
|
-
|
240
|
+
o.value++, r.value = !!o.value, p.value = !1, Promise.resolve(g).then((f) => {
|
241
|
+
o.value--, r.value = !!o.value, s.value = f, p.value = Je(f);
|
242
|
+
}).catch((f) => {
|
243
|
+
o.value--, r.value = !!o.value, s.value = f, p.value = !0;
|
244
244
|
});
|
245
245
|
}, {
|
246
246
|
immediate: !0,
|
247
247
|
deep: typeof t == "object"
|
248
248
|
});
|
249
249
|
return {
|
250
|
-
$invalid:
|
251
|
-
$unwatch:
|
250
|
+
$invalid: p,
|
251
|
+
$unwatch: d
|
252
252
|
};
|
253
253
|
}
|
254
|
-
function
|
254
|
+
function _t(e, t, r, n, a, s, u, i) {
|
255
255
|
let {
|
256
256
|
$lazy: l,
|
257
257
|
$rewardEarly: c
|
258
|
-
} =
|
259
|
-
const
|
260
|
-
if (l && !r.value || c && !
|
258
|
+
} = n;
|
259
|
+
const M = () => ({}), m = h(() => {
|
260
|
+
if (l && !r.value || c && !i.value)
|
261
261
|
return !1;
|
262
|
-
let
|
262
|
+
let j = !0;
|
263
263
|
try {
|
264
|
-
const
|
265
|
-
|
266
|
-
} catch (
|
267
|
-
|
264
|
+
const p = Ze(e, t, u, s);
|
265
|
+
a.value = p, j = Je(p);
|
266
|
+
} catch (p) {
|
267
|
+
a.value = p;
|
268
268
|
}
|
269
|
-
return
|
269
|
+
return j;
|
270
270
|
});
|
271
271
|
return {
|
272
|
-
$unwatch:
|
273
|
-
$invalid:
|
272
|
+
$unwatch: M,
|
273
|
+
$invalid: m
|
274
274
|
};
|
275
275
|
}
|
276
|
-
function
|
277
|
-
const
|
278
|
-
let
|
276
|
+
function At(e, t, r, n, a, s, u, i, l, c, M) {
|
277
|
+
const m = N(!1), j = e.$params || {}, p = N(null);
|
278
|
+
let o, d;
|
279
279
|
e.$async ? {
|
280
|
-
$invalid:
|
281
|
-
$unwatch:
|
282
|
-
} =
|
283
|
-
$invalid:
|
284
|
-
$unwatch:
|
285
|
-
} =
|
286
|
-
const
|
280
|
+
$invalid: o,
|
281
|
+
$unwatch: d
|
282
|
+
} = bt(e.$validator, t, m, r, n, p, a, e.$watchTargets, l, c, M) : {
|
283
|
+
$invalid: o,
|
284
|
+
$unwatch: d
|
285
|
+
} = _t(e.$validator, t, r, n, p, a, l, c);
|
286
|
+
const g = e.$message;
|
287
287
|
return {
|
288
|
-
$message:
|
289
|
-
$pending:
|
290
|
-
$invalid:
|
291
|
-
$params:
|
288
|
+
$message: ue(g) ? h(() => g(Ee({
|
289
|
+
$pending: m,
|
290
|
+
$invalid: o,
|
291
|
+
$params: Ee(j),
|
292
292
|
$model: t,
|
293
|
-
$response:
|
293
|
+
$response: p,
|
294
294
|
$validator: s,
|
295
|
-
$propertyPath:
|
296
|
-
$property:
|
297
|
-
}))) :
|
298
|
-
$params:
|
299
|
-
$pending:
|
300
|
-
$invalid:
|
301
|
-
$response:
|
302
|
-
$unwatch:
|
295
|
+
$propertyPath: i,
|
296
|
+
$property: u
|
297
|
+
}))) : g || "",
|
298
|
+
$params: j,
|
299
|
+
$pending: m,
|
300
|
+
$invalid: o,
|
301
|
+
$response: p,
|
302
|
+
$unwatch: d
|
303
303
|
};
|
304
304
|
}
|
305
|
-
function
|
305
|
+
function kt() {
|
306
306
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
307
|
-
const t = L(e), r = Object.keys(t),
|
308
|
-
let
|
309
|
-
return r.forEach((
|
310
|
-
const l = t[
|
307
|
+
const t = L(e), r = Object.keys(t), n = {}, a = {}, s = {};
|
308
|
+
let u = null;
|
309
|
+
return r.forEach((i) => {
|
310
|
+
const l = t[i];
|
311
311
|
switch (!0) {
|
312
|
-
case
|
313
|
-
|
312
|
+
case ue(l.$validator):
|
313
|
+
n[i] = l;
|
314
314
|
break;
|
315
|
-
case
|
316
|
-
|
315
|
+
case ue(l):
|
316
|
+
n[i] = {
|
317
317
|
$validator: l
|
318
318
|
};
|
319
319
|
break;
|
320
|
-
case
|
321
|
-
|
320
|
+
case i === "$validationGroups":
|
321
|
+
u = l;
|
322
322
|
break;
|
323
|
-
case
|
324
|
-
s[
|
323
|
+
case i.startsWith("$"):
|
324
|
+
s[i] = l;
|
325
325
|
break;
|
326
326
|
default:
|
327
|
-
|
327
|
+
a[i] = l;
|
328
328
|
}
|
329
329
|
}), {
|
330
|
-
rules:
|
331
|
-
nestedValidators:
|
330
|
+
rules: n,
|
331
|
+
nestedValidators: a,
|
332
332
|
config: s,
|
333
|
-
validationGroups:
|
333
|
+
validationGroups: u
|
334
334
|
};
|
335
335
|
}
|
336
|
-
const
|
337
|
-
function
|
338
|
-
const c = Object.keys(e),
|
339
|
-
if (
|
340
|
-
if (!
|
341
|
-
return
|
342
|
-
|
336
|
+
const Yt = "__root";
|
337
|
+
function Pt(e, t, r, n, a, s, u, i, l) {
|
338
|
+
const c = Object.keys(e), M = n.get(a, e), m = N(!1), j = N(!1), p = N(0);
|
339
|
+
if (M) {
|
340
|
+
if (!M.$partial)
|
341
|
+
return M;
|
342
|
+
M.$unwatch(), m.value = M.$dirty.value;
|
343
343
|
}
|
344
|
-
const
|
345
|
-
$dirty:
|
346
|
-
$path:
|
344
|
+
const o = {
|
345
|
+
$dirty: m,
|
346
|
+
$path: a,
|
347
347
|
$touch: () => {
|
348
|
-
|
348
|
+
m.value || (m.value = !0);
|
349
349
|
},
|
350
350
|
$reset: () => {
|
351
|
-
|
351
|
+
m.value && (m.value = !1);
|
352
352
|
},
|
353
353
|
$commit: () => {
|
354
354
|
}
|
355
355
|
};
|
356
|
-
return c.length ? (c.forEach((
|
357
|
-
|
358
|
-
}),
|
359
|
-
$propertyPath:
|
356
|
+
return c.length ? (c.forEach((d) => {
|
357
|
+
o[d] = At(e[d], t, o.$dirty, s, u, d, r, a, l, j, p);
|
358
|
+
}), o.$externalResults = h(() => i.value ? [].concat(i.value).map((d, g) => ({
|
359
|
+
$propertyPath: a,
|
360
360
|
$property: r,
|
361
361
|
$validator: "$externalResults",
|
362
|
-
$uid: `${
|
363
|
-
$message:
|
362
|
+
$uid: `${a}-externalResult-${g}`,
|
363
|
+
$message: d,
|
364
364
|
$params: {},
|
365
365
|
$response: null,
|
366
366
|
$pending: !1
|
367
|
-
})) : []),
|
368
|
-
const
|
369
|
-
return
|
370
|
-
}),
|
371
|
-
const
|
372
|
-
return
|
373
|
-
$propertyPath:
|
367
|
+
})) : []), o.$invalid = h(() => {
|
368
|
+
const d = c.some((g) => L(o[g].$invalid));
|
369
|
+
return j.value = d, !!o.$externalResults.value.length || d;
|
370
|
+
}), o.$pending = h(() => c.some((d) => L(o[d].$pending))), o.$error = h(() => o.$dirty.value ? o.$pending.value || o.$invalid.value : !1), o.$silentErrors = h(() => c.filter((d) => L(o[d].$invalid)).map((d) => {
|
371
|
+
const g = o[d];
|
372
|
+
return O({
|
373
|
+
$propertyPath: a,
|
374
374
|
$property: r,
|
375
|
-
$validator:
|
376
|
-
$uid: `${
|
377
|
-
$message:
|
378
|
-
$params:
|
379
|
-
$response:
|
380
|
-
$pending:
|
375
|
+
$validator: d,
|
376
|
+
$uid: `${a}-${d}`,
|
377
|
+
$message: g.$message,
|
378
|
+
$params: g.$params,
|
379
|
+
$response: g.$response,
|
380
|
+
$pending: g.$pending
|
381
381
|
});
|
382
|
-
}).concat(
|
383
|
-
|
384
|
-
}),
|
385
|
-
|
386
|
-
},
|
387
|
-
}
|
388
|
-
function
|
389
|
-
const
|
390
|
-
return
|
382
|
+
}).concat(o.$externalResults.value)), o.$errors = h(() => o.$dirty.value ? o.$silentErrors.value : []), o.$unwatch = () => c.forEach((d) => {
|
383
|
+
o[d].$unwatch();
|
384
|
+
}), o.$commit = () => {
|
385
|
+
j.value = !0, p.value = Date.now();
|
386
|
+
}, n.set(a, e, o), o) : (M && n.set(a, e, o), o);
|
387
|
+
}
|
388
|
+
function Qt(e, t, r, n, a, s, u) {
|
389
|
+
const i = Object.keys(e);
|
390
|
+
return i.length ? i.reduce((l, c) => (l[c] = je({
|
391
391
|
validations: e[c],
|
392
392
|
state: t,
|
393
393
|
key: c,
|
394
394
|
parentKey: r,
|
395
|
-
resultsCache:
|
396
|
-
globalConfig:
|
395
|
+
resultsCache: n,
|
396
|
+
globalConfig: a,
|
397
397
|
instance: s,
|
398
|
-
externalResults:
|
398
|
+
externalResults: u
|
399
399
|
}), l), {}) : {};
|
400
400
|
}
|
401
|
-
function
|
402
|
-
const
|
401
|
+
function Rt(e, t, r) {
|
402
|
+
const n = h(() => [t, r].filter((o) => o).reduce((o, d) => o.concat(Object.values(L(d))), [])), a = h({
|
403
403
|
get() {
|
404
|
-
return e.$dirty.value || (
|
404
|
+
return e.$dirty.value || (n.value.length ? n.value.every((o) => o.$dirty) : !1);
|
405
405
|
},
|
406
|
-
set(
|
407
|
-
e.$dirty.value =
|
406
|
+
set(o) {
|
407
|
+
e.$dirty.value = o;
|
408
408
|
}
|
409
409
|
}), s = h(() => {
|
410
|
-
const
|
411
|
-
return
|
412
|
-
}),
|
413
|
-
const
|
414
|
-
return
|
415
|
-
}),
|
416
|
-
e.$touch(),
|
417
|
-
|
410
|
+
const o = L(e.$silentErrors) || [], d = n.value.filter((g) => (L(g).$silentErrors || []).length).reduce((g, f) => g.concat(...f.$silentErrors), []);
|
411
|
+
return o.concat(d);
|
412
|
+
}), u = h(() => {
|
413
|
+
const o = L(e.$errors) || [], d = n.value.filter((g) => (L(g).$errors || []).length).reduce((g, f) => g.concat(...f.$errors), []);
|
414
|
+
return o.concat(d);
|
415
|
+
}), i = h(() => n.value.some((o) => o.$invalid) || L(e.$invalid) || !1), l = h(() => n.value.some((o) => L(o.$pending)) || L(e.$pending) || !1), c = h(() => n.value.some((o) => o.$dirty) || n.value.some((o) => o.$anyDirty) || a.value), M = h(() => a.value ? l.value || i.value : !1), m = () => {
|
416
|
+
e.$touch(), n.value.forEach((o) => {
|
417
|
+
o.$touch();
|
418
418
|
});
|
419
|
-
},
|
420
|
-
e.$commit(),
|
421
|
-
|
419
|
+
}, j = () => {
|
420
|
+
e.$commit(), n.value.forEach((o) => {
|
421
|
+
o.$commit();
|
422
422
|
});
|
423
|
-
},
|
424
|
-
e.$reset(),
|
425
|
-
|
423
|
+
}, p = () => {
|
424
|
+
e.$reset(), n.value.forEach((o) => {
|
425
|
+
o.$reset();
|
426
426
|
});
|
427
427
|
};
|
428
|
-
return
|
429
|
-
$dirty:
|
430
|
-
$errors:
|
431
|
-
$invalid:
|
428
|
+
return n.value.length && n.value.every((o) => o.$dirty) && m(), {
|
429
|
+
$dirty: a,
|
430
|
+
$errors: u,
|
431
|
+
$invalid: i,
|
432
432
|
$anyDirty: c,
|
433
|
-
$error:
|
433
|
+
$error: M,
|
434
434
|
$pending: l,
|
435
|
-
$touch:
|
436
|
-
$reset:
|
435
|
+
$touch: m,
|
436
|
+
$reset: p,
|
437
437
|
$silentErrors: s,
|
438
|
-
$commit:
|
438
|
+
$commit: j
|
439
439
|
};
|
440
440
|
}
|
441
|
-
function
|
441
|
+
function je(e) {
|
442
442
|
let {
|
443
443
|
validations: t,
|
444
444
|
state: r,
|
445
|
-
key:
|
446
|
-
parentKey:
|
445
|
+
key: n,
|
446
|
+
parentKey: a,
|
447
447
|
childResults: s,
|
448
|
-
resultsCache:
|
449
|
-
globalConfig:
|
448
|
+
resultsCache: u,
|
449
|
+
globalConfig: i = {},
|
450
450
|
instance: l,
|
451
451
|
externalResults: c
|
452
452
|
} = e;
|
453
|
-
const
|
454
|
-
rules:
|
455
|
-
nestedValidators:
|
456
|
-
config:
|
457
|
-
validationGroups:
|
458
|
-
} =
|
453
|
+
const M = a ? `${a}.${n}` : n, {
|
454
|
+
rules: m,
|
455
|
+
nestedValidators: j,
|
456
|
+
config: p,
|
457
|
+
validationGroups: o
|
458
|
+
} = kt(t), d = k(k({}, i), p), g = n ? h(() => {
|
459
459
|
const $ = L(r);
|
460
|
-
return $ ? L($[
|
461
|
-
}) : r,
|
460
|
+
return $ ? L($[n]) : void 0;
|
461
|
+
}) : r, f = k({}, L(c) || {}), S = h(() => {
|
462
462
|
const $ = L(c);
|
463
|
-
return
|
464
|
-
}),
|
465
|
-
|
466
|
-
let [
|
467
|
-
|
468
|
-
$invalid:
|
469
|
-
$error:
|
470
|
-
$pending:
|
471
|
-
$errors:
|
472
|
-
$silentErrors:
|
463
|
+
return n ? $ ? L($[n]) : void 0 : $;
|
464
|
+
}), X = Pt(m, g, n, u, M, d, l, S, r), E = Qt(j, g, M, u, d, l, S), R = {};
|
465
|
+
o && Object.entries(o).forEach(($) => {
|
466
|
+
let [U, A] = $;
|
467
|
+
R[U] = {
|
468
|
+
$invalid: ge(A, E, "$invalid"),
|
469
|
+
$error: ge(A, E, "$error"),
|
470
|
+
$pending: ge(A, E, "$pending"),
|
471
|
+
$errors: Oe(A, E, "$errors"),
|
472
|
+
$silentErrors: Oe(A, E, "$silentErrors")
|
473
473
|
};
|
474
474
|
});
|
475
475
|
const {
|
476
|
-
$dirty:
|
477
|
-
$errors:
|
478
|
-
$invalid:
|
479
|
-
$anyDirty:
|
480
|
-
$error:
|
481
|
-
$pending:
|
482
|
-
$touch:
|
483
|
-
$reset:
|
484
|
-
$silentErrors:
|
485
|
-
$commit:
|
486
|
-
} =
|
487
|
-
get: () => L(
|
476
|
+
$dirty: _,
|
477
|
+
$errors: te,
|
478
|
+
$invalid: de,
|
479
|
+
$anyDirty: et,
|
480
|
+
$error: tt,
|
481
|
+
$pending: Le,
|
482
|
+
$touch: Me,
|
483
|
+
$reset: rt,
|
484
|
+
$silentErrors: nt,
|
485
|
+
$commit: De
|
486
|
+
} = Rt(X, E, s), at = n ? h({
|
487
|
+
get: () => L(g),
|
488
488
|
set: ($) => {
|
489
|
-
|
490
|
-
const
|
491
|
-
|
489
|
+
_.value = !0;
|
490
|
+
const U = L(r), A = L(c);
|
491
|
+
A && (A[n] = f[n]), pe(U[n]) ? U[n].value = $ : U[n] = $;
|
492
492
|
}
|
493
493
|
}) : null;
|
494
|
-
|
495
|
-
|
494
|
+
n && d.$autoDirty && K(g, () => {
|
495
|
+
_.value || Me();
|
496
496
|
const $ = L(c);
|
497
|
-
$ && ($[
|
497
|
+
$ && ($[n] = f[n]);
|
498
498
|
}, {
|
499
499
|
flush: "sync"
|
500
500
|
});
|
501
|
-
async function
|
502
|
-
return
|
503
|
-
if (!
|
504
|
-
return $(!
|
505
|
-
const
|
506
|
-
$(!
|
501
|
+
async function st() {
|
502
|
+
return Me(), d.$rewardEarly && (De(), await se()), await se(), new Promise(($) => {
|
503
|
+
if (!Le.value)
|
504
|
+
return $(!de.value);
|
505
|
+
const U = K(Le, () => {
|
506
|
+
$(!de.value), U();
|
507
507
|
});
|
508
508
|
});
|
509
509
|
}
|
510
|
-
function
|
510
|
+
function ot($) {
|
511
511
|
return (s.value || {})[$];
|
512
512
|
}
|
513
|
-
function
|
514
|
-
|
513
|
+
function ut() {
|
514
|
+
pe(c) ? c.value = f : Object.keys(f).length === 0 ? Object.keys(c).forEach(($) => {
|
515
515
|
delete c[$];
|
516
|
-
}) : Object.assign(c,
|
516
|
+
}) : Object.assign(c, f);
|
517
517
|
}
|
518
|
-
return
|
519
|
-
$model:
|
520
|
-
$dirty:
|
521
|
-
$error:
|
522
|
-
$errors:
|
523
|
-
$invalid:
|
524
|
-
$anyDirty:
|
525
|
-
$pending:
|
526
|
-
$touch:
|
527
|
-
$reset:
|
528
|
-
$path:
|
529
|
-
$silentErrors:
|
530
|
-
$validate:
|
531
|
-
$commit:
|
518
|
+
return O(k(k(k({}, X), {}, {
|
519
|
+
$model: at,
|
520
|
+
$dirty: _,
|
521
|
+
$error: tt,
|
522
|
+
$errors: te,
|
523
|
+
$invalid: de,
|
524
|
+
$anyDirty: et,
|
525
|
+
$pending: Le,
|
526
|
+
$touch: Me,
|
527
|
+
$reset: rt,
|
528
|
+
$path: M || Yt,
|
529
|
+
$silentErrors: nt,
|
530
|
+
$validate: st,
|
531
|
+
$commit: De
|
532
532
|
}, s && {
|
533
|
-
$getResultsForChild:
|
534
|
-
$clearExternalResults:
|
535
|
-
$validationGroups:
|
536
|
-
}),
|
533
|
+
$getResultsForChild: ot,
|
534
|
+
$clearExternalResults: ut,
|
535
|
+
$validationGroups: R
|
536
|
+
}), E));
|
537
537
|
}
|
538
|
-
class
|
538
|
+
class Ut {
|
539
539
|
constructor() {
|
540
540
|
this.storage = /* @__PURE__ */ new Map();
|
541
541
|
}
|
542
|
-
set(t, r,
|
542
|
+
set(t, r, n) {
|
543
543
|
this.storage.set(t, {
|
544
544
|
rules: r,
|
545
|
-
result:
|
545
|
+
result: n
|
546
546
|
});
|
547
547
|
}
|
548
|
-
checkRulesValidity(t, r,
|
549
|
-
const
|
550
|
-
return s.length !==
|
548
|
+
checkRulesValidity(t, r, n) {
|
549
|
+
const a = Object.keys(n), s = Object.keys(r);
|
550
|
+
return s.length !== a.length || !s.every((i) => a.includes(i)) ? !1 : s.every((i) => r[i].$params ? Object.keys(r[i].$params).every((l) => L(n[i].$params[l]) === L(r[i].$params[l])) : !0);
|
551
551
|
}
|
552
552
|
get(t, r) {
|
553
|
-
const
|
554
|
-
if (!
|
553
|
+
const n = this.storage.get(t);
|
554
|
+
if (!n)
|
555
555
|
return;
|
556
556
|
const {
|
557
|
-
rules:
|
557
|
+
rules: a,
|
558
558
|
result: s
|
559
|
-
} =
|
560
|
-
return
|
559
|
+
} = n, u = this.checkRulesValidity(t, r, a), i = s.$unwatch ? s.$unwatch : () => ({});
|
560
|
+
return u ? s : {
|
561
561
|
$dirty: s.$dirty,
|
562
562
|
$partial: !0,
|
563
|
-
$unwatch:
|
563
|
+
$unwatch: i
|
564
564
|
};
|
565
565
|
}
|
566
566
|
}
|
567
|
-
const
|
567
|
+
const re = {
|
568
568
|
COLLECT_ALL: !0,
|
569
569
|
COLLECT_NONE: !1
|
570
|
-
},
|
571
|
-
function
|
570
|
+
}, ze = Symbol("vuelidate#injectChildResults"), be = Symbol("vuelidate#removeChildResults");
|
571
|
+
function Vt(e) {
|
572
572
|
let {
|
573
573
|
$scope: t,
|
574
574
|
instance: r
|
575
575
|
} = e;
|
576
|
-
const
|
577
|
-
function
|
576
|
+
const n = {}, a = N([]), s = h(() => a.value.reduce((M, m) => (M[m] = L(n[m]), M), {}));
|
577
|
+
function u(M, m) {
|
578
578
|
let {
|
579
|
-
$registerAs:
|
580
|
-
$scope:
|
581
|
-
$stopPropagation:
|
582
|
-
} =
|
583
|
-
|
579
|
+
$registerAs: j,
|
580
|
+
$scope: p,
|
581
|
+
$stopPropagation: o
|
582
|
+
} = m;
|
583
|
+
o || t === re.COLLECT_NONE || p === re.COLLECT_NONE || t !== re.COLLECT_ALL && t !== p || (n[j] = M, a.value.push(j));
|
584
584
|
}
|
585
|
-
r.__vuelidateInjectInstances = [].concat(r.__vuelidateInjectInstances || [],
|
586
|
-
function
|
587
|
-
|
585
|
+
r.__vuelidateInjectInstances = [].concat(r.__vuelidateInjectInstances || [], u);
|
586
|
+
function i(M) {
|
587
|
+
a.value = a.value.filter((m) => m !== M), delete n[M];
|
588
588
|
}
|
589
|
-
r.__vuelidateRemoveInstances = [].concat(r.__vuelidateRemoveInstances || [],
|
590
|
-
const l =
|
591
|
-
|
592
|
-
const c =
|
593
|
-
return
|
589
|
+
r.__vuelidateRemoveInstances = [].concat(r.__vuelidateRemoveInstances || [], i);
|
590
|
+
const l = ae(ze, []);
|
591
|
+
Ce(ze, r.__vuelidateInjectInstances);
|
592
|
+
const c = ae(be, []);
|
593
|
+
return Ce(be, r.__vuelidateRemoveInstances), {
|
594
594
|
childResults: s,
|
595
595
|
sendValidationResultsToParent: l,
|
596
596
|
removeValidationResultsFromParent: c
|
597
597
|
};
|
598
598
|
}
|
599
|
-
function
|
599
|
+
function Xe(e) {
|
600
600
|
return new Proxy(e, {
|
601
601
|
get(t, r) {
|
602
|
-
return typeof t[r] == "object" ?
|
602
|
+
return typeof t[r] == "object" ? Xe(t[r]) : h(() => t[r]);
|
603
603
|
}
|
604
604
|
});
|
605
605
|
}
|
606
|
-
let
|
607
|
-
function
|
606
|
+
let _e = 0;
|
607
|
+
function Bt(e, t) {
|
608
608
|
var r;
|
609
|
-
let
|
610
|
-
arguments.length === 1 && (
|
609
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
610
|
+
arguments.length === 1 && (n = e, e = void 0, t = void 0);
|
611
611
|
let {
|
612
|
-
$registerAs:
|
613
|
-
$scope: s =
|
614
|
-
$stopPropagation:
|
615
|
-
$externalResults:
|
612
|
+
$registerAs: a,
|
613
|
+
$scope: s = re.COLLECT_ALL,
|
614
|
+
$stopPropagation: u,
|
615
|
+
$externalResults: i,
|
616
616
|
currentVueInstance: l
|
617
|
-
} =
|
618
|
-
const c = l || ((r =
|
619
|
-
|
620
|
-
const
|
621
|
-
childResults:
|
622
|
-
sendValidationResultsToParent:
|
623
|
-
removeValidationResultsFromParent:
|
624
|
-
} = c ?
|
617
|
+
} = n;
|
618
|
+
const c = l || ((r = it()) === null || r === void 0 ? void 0 : r.proxy), M = c ? c.$options : {};
|
619
|
+
a || (_e += 1, a = `_vuelidate_${_e}`);
|
620
|
+
const m = N({}), j = new Ut(), {
|
621
|
+
childResults: p,
|
622
|
+
sendValidationResultsToParent: o,
|
623
|
+
removeValidationResultsFromParent: d
|
624
|
+
} = c ? Vt({
|
625
625
|
$scope: s,
|
626
626
|
instance: c
|
627
627
|
}) : {
|
628
|
-
childResults:
|
628
|
+
childResults: N({})
|
629
629
|
};
|
630
|
-
if (!e &&
|
631
|
-
const
|
632
|
-
t =
|
633
|
-
t.value = c,
|
634
|
-
|
635
|
-
validations:
|
630
|
+
if (!e && M.validations) {
|
631
|
+
const g = M.validations;
|
632
|
+
t = N({}), Ge(() => {
|
633
|
+
t.value = c, K(() => ue(g) ? g.call(t.value, new Xe(t.value)) : g, (f) => {
|
634
|
+
m.value = je({
|
635
|
+
validations: f,
|
636
636
|
state: t,
|
637
|
-
childResults:
|
638
|
-
resultsCache:
|
639
|
-
globalConfig:
|
637
|
+
childResults: p,
|
638
|
+
resultsCache: j,
|
639
|
+
globalConfig: n,
|
640
640
|
instance: c,
|
641
|
-
externalResults:
|
641
|
+
externalResults: i || c.vuelidateExternalResults
|
642
642
|
});
|
643
643
|
}, {
|
644
644
|
immediate: !0
|
645
645
|
});
|
646
|
-
}),
|
646
|
+
}), n = M.validationsConfig || n;
|
647
647
|
} else {
|
648
|
-
const
|
649
|
-
|
650
|
-
|
651
|
-
validations:
|
648
|
+
const g = pe(e) || zt(e) ? e : O(e || {});
|
649
|
+
K(g, (f) => {
|
650
|
+
m.value = je({
|
651
|
+
validations: f,
|
652
652
|
state: t,
|
653
|
-
childResults:
|
654
|
-
resultsCache:
|
655
|
-
globalConfig:
|
653
|
+
childResults: p,
|
654
|
+
resultsCache: j,
|
655
|
+
globalConfig: n,
|
656
656
|
instance: c ?? {},
|
657
|
-
externalResults:
|
657
|
+
externalResults: i
|
658
658
|
});
|
659
659
|
}, {
|
660
660
|
immediate: !0
|
661
661
|
});
|
662
662
|
}
|
663
|
-
return c && (
|
664
|
-
$registerAs:
|
663
|
+
return c && (o.forEach((g) => g(m, {
|
664
|
+
$registerAs: a,
|
665
665
|
$scope: s,
|
666
|
-
$stopPropagation:
|
667
|
-
})),
|
666
|
+
$stopPropagation: u
|
667
|
+
})), fe(() => d.forEach((g) => g(a)))), h(() => k(k({}, L(m.value)), p.value));
|
668
668
|
}
|
669
|
-
var
|
670
|
-
const
|
669
|
+
var b = /* @__PURE__ */ ((e) => (e.CHECKBOX = "checkbox", e.TEXT = "text", e.PASSWORD = "password", e))(b || {});
|
670
|
+
const Gt = ["id", "type", "name", "placeholder", "value"], Ft = /* @__PURE__ */ C({
|
671
671
|
__name: "InputText",
|
672
672
|
props: {
|
673
673
|
type: {},
|
@@ -680,23 +680,23 @@ const At = ["id", "type", "name", "placeholder", "value"], Yt = /* @__PURE__ */
|
|
680
680
|
},
|
681
681
|
emits: ["change", "input"],
|
682
682
|
setup(e, { emit: t }) {
|
683
|
-
const r = t,
|
683
|
+
const r = t, n = (s) => {
|
684
684
|
r("change", s);
|
685
|
-
},
|
685
|
+
}, a = (s) => {
|
686
686
|
r("input", s);
|
687
687
|
};
|
688
|
-
return (s,
|
688
|
+
return (s, u) => (y(), v("input", W({
|
689
689
|
id: s.id,
|
690
690
|
type: s.type,
|
691
691
|
name: s.name,
|
692
692
|
placeholder: s.placeholder,
|
693
693
|
value: s.value
|
694
694
|
}, s.$attrs, {
|
695
|
-
onChange:
|
696
|
-
onInput:
|
697
|
-
}), null, 16,
|
695
|
+
onChange: n,
|
696
|
+
onInput: a
|
697
|
+
}), null, 16, Gt));
|
698
698
|
}
|
699
|
-
}),
|
699
|
+
}), Wt = ["id", "name", "checked", "value"], Ht = /* @__PURE__ */ C({
|
700
700
|
__name: "InputCheckbox",
|
701
701
|
props: {
|
702
702
|
defaultChecked: { type: Boolean },
|
@@ -710,19 +710,19 @@ const At = ["id", "type", "name", "placeholder", "value"], Yt = /* @__PURE__ */
|
|
710
710
|
},
|
711
711
|
emits: ["change"],
|
712
712
|
setup(e, { emit: t }) {
|
713
|
-
const r = t,
|
714
|
-
r("change",
|
713
|
+
const r = t, n = (a) => {
|
714
|
+
r("change", a);
|
715
715
|
};
|
716
|
-
return (
|
717
|
-
id:
|
718
|
-
name:
|
719
|
-
checked:
|
720
|
-
value:
|
716
|
+
return (a, s) => (y(), v("input", W({
|
717
|
+
id: a.id,
|
718
|
+
name: a.name,
|
719
|
+
checked: a.value === "true",
|
720
|
+
value: a.value,
|
721
721
|
class: "pdap-input-checkbox",
|
722
722
|
type: "checkbox"
|
723
|
-
},
|
723
|
+
}, a.$attrs, { onChange: n }), null, 16, Wt));
|
724
724
|
}
|
725
|
-
}),
|
725
|
+
}), Zt = ["id"], Jt = ["for"], Xt = /* @__PURE__ */ C({
|
726
726
|
__name: "PdapInput",
|
727
727
|
props: {
|
728
728
|
type: {},
|
@@ -736,55 +736,55 @@ const At = ["id", "type", "name", "placeholder", "value"], Yt = /* @__PURE__ */
|
|
736
736
|
},
|
737
737
|
setup(e) {
|
738
738
|
const t = e, r = h(() => `pdap-${t.name}-input-error`);
|
739
|
-
return (
|
739
|
+
return (n, a) => {
|
740
740
|
var s;
|
741
|
-
return y(),
|
742
|
-
class:
|
741
|
+
return y(), v("div", {
|
742
|
+
class: P({
|
743
743
|
"pdap-input": !0,
|
744
|
-
[`pdap-input-${
|
745
|
-
[`pdap-input-${
|
746
|
-
"pdap-input-error": Number((s =
|
744
|
+
[`pdap-input-${n.type}`]: !0,
|
745
|
+
[`pdap-input-${n.type}-checked`]: n.type === L(b).CHECKBOX && n.value === "true",
|
746
|
+
"pdap-input-error": Number((s = n.error) == null ? void 0 : s.length) >= 1
|
747
747
|
})
|
748
748
|
}, [
|
749
|
-
|
749
|
+
n.type === L(b).CHECKBOX ? (y(), x(Ht, W({
|
750
750
|
key: 0,
|
751
751
|
class: "pdap-input-checkbox"
|
752
|
-
}, { ...
|
753
|
-
|
752
|
+
}, { ...n.$attrs, ...t }), null, 16)) : (y(), x(Ft, dt(W({ key: 1 }, { ...n.$attrs, ...n.$props })), null, 16)),
|
753
|
+
n.error ? (y(), v("div", {
|
754
754
|
key: 2,
|
755
755
|
id: r.value,
|
756
756
|
class: "pdap-input-error-message"
|
757
|
-
},
|
758
|
-
|
757
|
+
}, z(n.error), 9, Zt)) : F("", !0),
|
758
|
+
w("label", {
|
759
759
|
class: "pdap-input-label",
|
760
|
-
for:
|
761
|
-
},
|
760
|
+
for: n.id
|
761
|
+
}, z(n.label), 9, Jt)
|
762
762
|
], 2);
|
763
763
|
};
|
764
764
|
}
|
765
765
|
});
|
766
|
-
function
|
766
|
+
function Ae(e, t) {
|
767
767
|
var r = Object.keys(e);
|
768
768
|
if (Object.getOwnPropertySymbols) {
|
769
|
-
var
|
770
|
-
t && (
|
771
|
-
return Object.getOwnPropertyDescriptor(e,
|
772
|
-
})), r.push.apply(r,
|
769
|
+
var n = Object.getOwnPropertySymbols(e);
|
770
|
+
t && (n = n.filter(function(a) {
|
771
|
+
return Object.getOwnPropertyDescriptor(e, a).enumerable;
|
772
|
+
})), r.push.apply(r, n);
|
773
773
|
}
|
774
774
|
return r;
|
775
775
|
}
|
776
|
-
function
|
776
|
+
function Z(e) {
|
777
777
|
for (var t = 1; t < arguments.length; t++) {
|
778
778
|
var r = arguments[t] != null ? arguments[t] : {};
|
779
|
-
t % 2 ?
|
780
|
-
|
781
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) :
|
782
|
-
Object.defineProperty(e,
|
779
|
+
t % 2 ? Ae(Object(r), !0).forEach(function(n) {
|
780
|
+
Kt(e, n, r[n]);
|
781
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Ae(Object(r)).forEach(function(n) {
|
782
|
+
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
783
783
|
});
|
784
784
|
}
|
785
785
|
return e;
|
786
786
|
}
|
787
|
-
function
|
787
|
+
function Kt(e, t, r) {
|
788
788
|
return t in e ? Object.defineProperty(e, t, {
|
789
789
|
value: r,
|
790
790
|
enumerable: !0,
|
@@ -792,92 +792,92 @@ function Vt(e, t, r) {
|
|
792
792
|
writable: !0
|
793
793
|
}) : e[t] = r, e;
|
794
794
|
}
|
795
|
-
function
|
795
|
+
function q(e) {
|
796
796
|
return typeof e == "function";
|
797
797
|
}
|
798
|
-
function
|
798
|
+
function ie(e) {
|
799
799
|
return e !== null && typeof e == "object" && !Array.isArray(e);
|
800
800
|
}
|
801
|
-
function
|
802
|
-
return
|
801
|
+
function ce(e) {
|
802
|
+
return q(e.$validator) ? Z({}, e) : {
|
803
803
|
$validator: e
|
804
804
|
};
|
805
805
|
}
|
806
|
-
function
|
807
|
-
return
|
806
|
+
function qt(e) {
|
807
|
+
return ie(e) && q(e.then);
|
808
808
|
}
|
809
|
-
function
|
809
|
+
function Y(e) {
|
810
810
|
return typeof e == "object" ? e.$valid : e;
|
811
811
|
}
|
812
|
-
function
|
812
|
+
function B(e) {
|
813
813
|
return e.$validator || e;
|
814
814
|
}
|
815
|
-
function
|
816
|
-
if (!
|
815
|
+
function he(e, t) {
|
816
|
+
if (!ie(e))
|
817
817
|
throw new Error(`[@vuelidate/validators]: First parameter to "withParams" should be an object, provided ${typeof e}`);
|
818
|
-
if (!
|
818
|
+
if (!ie(t) && !q(t))
|
819
819
|
throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");
|
820
|
-
const r =
|
821
|
-
return r.$params =
|
820
|
+
const r = ce(t);
|
821
|
+
return r.$params = Z(Z({}, r.$params || {}), e), r;
|
822
822
|
}
|
823
|
-
function
|
824
|
-
if (!
|
823
|
+
function ee(e, t) {
|
824
|
+
if (!q(e) && typeof L(e) != "string")
|
825
825
|
throw new Error(`[@vuelidate/validators]: First parameter to "withMessage" should be string or a function returning a string, provided ${typeof e}`);
|
826
|
-
if (!
|
826
|
+
if (!ie(t) && !q(t))
|
827
827
|
throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");
|
828
|
-
const r =
|
828
|
+
const r = ce(t);
|
829
829
|
return r.$message = e, r;
|
830
830
|
}
|
831
|
-
function
|
831
|
+
function er(e) {
|
832
832
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
833
|
-
const r =
|
834
|
-
return
|
833
|
+
const r = ce(e);
|
834
|
+
return Z(Z({}, r), {}, {
|
835
835
|
$async: !0,
|
836
836
|
$watchTargets: t
|
837
837
|
});
|
838
838
|
}
|
839
|
-
function
|
839
|
+
function tr(e) {
|
840
840
|
return {
|
841
841
|
$validator(t) {
|
842
|
-
for (var r = arguments.length,
|
843
|
-
a
|
844
|
-
return L(t).reduce((s,
|
845
|
-
const l = Object.entries(
|
846
|
-
let [
|
847
|
-
const
|
848
|
-
let [
|
849
|
-
const
|
850
|
-
if (
|
851
|
-
let
|
852
|
-
const
|
853
|
-
typeof
|
842
|
+
for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
|
843
|
+
n[a - 1] = arguments[a];
|
844
|
+
return L(t).reduce((s, u, i) => {
|
845
|
+
const l = Object.entries(u).reduce((c, M) => {
|
846
|
+
let [m, j] = M;
|
847
|
+
const p = e[m] || {}, o = Object.entries(p).reduce((d, g) => {
|
848
|
+
let [f, S] = g;
|
849
|
+
const E = B(S).call(this, j, u, i, ...n), R = Y(E);
|
850
|
+
if (d.$data[f] = E, d.$data.$invalid = !R || !!d.$data.$invalid, d.$data.$error = d.$data.$invalid, !R) {
|
851
|
+
let _ = S.$message || "";
|
852
|
+
const te = S.$params || {};
|
853
|
+
typeof _ == "function" && (_ = _({
|
854
854
|
$pending: !1,
|
855
|
-
$invalid: !
|
856
|
-
$params:
|
857
|
-
$model:
|
858
|
-
$response:
|
859
|
-
})),
|
860
|
-
$property:
|
861
|
-
$message:
|
862
|
-
$params:
|
863
|
-
$response:
|
864
|
-
$model:
|
855
|
+
$invalid: !R,
|
856
|
+
$params: te,
|
857
|
+
$model: j,
|
858
|
+
$response: E
|
859
|
+
})), d.$errors.push({
|
860
|
+
$property: m,
|
861
|
+
$message: _,
|
862
|
+
$params: te,
|
863
|
+
$response: E,
|
864
|
+
$model: j,
|
865
865
|
$pending: !1,
|
866
|
-
$validator:
|
866
|
+
$validator: f
|
867
867
|
});
|
868
868
|
}
|
869
869
|
return {
|
870
|
-
$valid:
|
871
|
-
$data:
|
872
|
-
$errors:
|
870
|
+
$valid: d.$valid && R,
|
871
|
+
$data: d.$data,
|
872
|
+
$errors: d.$errors
|
873
873
|
};
|
874
874
|
}, {
|
875
875
|
$valid: !0,
|
876
876
|
$data: {},
|
877
877
|
$errors: []
|
878
878
|
});
|
879
|
-
return c.$data[
|
880
|
-
$valid: c.$valid &&
|
879
|
+
return c.$data[m] = o.$data, c.$errors[m] = o.$errors, {
|
880
|
+
$valid: c.$valid && o.$valid,
|
881
881
|
$data: c.$data,
|
882
882
|
$errors: c.$errors
|
883
883
|
};
|
@@ -901,11 +901,11 @@ function Wt(e) {
|
|
901
901
|
let {
|
902
902
|
$response: r
|
903
903
|
} = t;
|
904
|
-
return r ? r.$errors.map((
|
904
|
+
return r ? r.$errors.map((n) => Object.values(n).map((a) => a.map((s) => s.$message)).reduce((a, s) => a.concat(s), [])) : [];
|
905
905
|
}
|
906
906
|
};
|
907
907
|
}
|
908
|
-
const
|
908
|
+
const I = (e) => {
|
909
909
|
if (e = L(e), Array.isArray(e))
|
910
910
|
return !!e.length;
|
911
911
|
if (e == null)
|
@@ -920,55 +920,55 @@ const T = (e) => {
|
|
920
920
|
return !1;
|
921
921
|
}
|
922
922
|
return !!String(e).length;
|
923
|
-
},
|
924
|
-
function
|
923
|
+
}, ve = (e) => (e = L(e), Array.isArray(e) ? e.length : typeof e == "object" ? Object.keys(e).length : String(e).length);
|
924
|
+
function Q() {
|
925
925
|
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
926
926
|
t[r] = arguments[r];
|
927
|
-
return (
|
927
|
+
return (n) => (n = L(n), !I(n) || t.every((a) => (a.lastIndex = 0, a.test(n))));
|
928
928
|
}
|
929
|
-
var
|
929
|
+
var J = /* @__PURE__ */ Object.freeze({
|
930
930
|
__proto__: null,
|
931
|
-
forEach:
|
932
|
-
len:
|
933
|
-
normalizeValidatorObject:
|
934
|
-
regex:
|
935
|
-
req:
|
931
|
+
forEach: tr,
|
932
|
+
len: ve,
|
933
|
+
normalizeValidatorObject: ce,
|
934
|
+
regex: Q,
|
935
|
+
req: I,
|
936
936
|
unwrap: L,
|
937
|
-
unwrapNormalizedValidator:
|
938
|
-
unwrapValidatorResponse:
|
939
|
-
withAsync:
|
940
|
-
withMessage:
|
941
|
-
withParams:
|
942
|
-
}),
|
943
|
-
$validator:
|
937
|
+
unwrapNormalizedValidator: B,
|
938
|
+
unwrapValidatorResponse: Y,
|
939
|
+
withAsync: er,
|
940
|
+
withMessage: ee,
|
941
|
+
withParams: he
|
942
|
+
}), rr = Q(/^[a-zA-Z]*$/), nr = {
|
943
|
+
$validator: rr,
|
944
944
|
$message: "The value is not alphabetical",
|
945
945
|
$params: {
|
946
946
|
type: "alpha"
|
947
947
|
}
|
948
|
-
},
|
949
|
-
$validator:
|
948
|
+
}, ar = Q(/^[a-zA-Z0-9]*$/), sr = {
|
949
|
+
$validator: ar,
|
950
950
|
$message: "The value must be alpha-numeric",
|
951
951
|
$params: {
|
952
952
|
type: "alphaNum"
|
953
953
|
}
|
954
|
-
},
|
955
|
-
$validator:
|
954
|
+
}, or = Q(/^\d*(\.\d+)?$/), ur = {
|
955
|
+
$validator: or,
|
956
956
|
$message: "Value must be numeric",
|
957
957
|
$params: {
|
958
958
|
type: "numeric"
|
959
959
|
}
|
960
960
|
};
|
961
|
-
function
|
962
|
-
return (r) => !
|
961
|
+
function ir(e, t) {
|
962
|
+
return (r) => !I(r) || (!/\s/.test(r) || r instanceof Date) && +L(e) <= +r && +L(t) >= +r;
|
963
963
|
}
|
964
|
-
function
|
964
|
+
function lr(e, t) {
|
965
965
|
return {
|
966
|
-
$validator:
|
966
|
+
$validator: ir(e, t),
|
967
967
|
$message: (r) => {
|
968
968
|
let {
|
969
|
-
$params:
|
969
|
+
$params: n
|
970
970
|
} = r;
|
971
|
-
return `The value must be between ${
|
971
|
+
return `The value must be between ${n.min} and ${n.max}`;
|
972
972
|
},
|
973
973
|
$params: {
|
974
974
|
min: e,
|
@@ -977,62 +977,62 @@ function er(e, t) {
|
|
977
977
|
}
|
978
978
|
};
|
979
979
|
}
|
980
|
-
const
|
981
|
-
var
|
982
|
-
$validator:
|
980
|
+
const cr = /^(?:[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;
|
981
|
+
var dr = Q(cr), $e = {
|
982
|
+
$validator: dr,
|
983
983
|
$message: "Value is not a valid email address",
|
984
984
|
$params: {
|
985
985
|
type: "email"
|
986
986
|
}
|
987
987
|
};
|
988
|
-
function
|
989
|
-
if (!
|
988
|
+
function Lr(e) {
|
989
|
+
if (!I(e))
|
990
990
|
return !0;
|
991
991
|
if (typeof e != "string")
|
992
992
|
return !1;
|
993
993
|
const t = e.split(".");
|
994
|
-
return t.length === 4 && t.every(
|
994
|
+
return t.length === 4 && t.every(Mr);
|
995
995
|
}
|
996
|
-
const
|
996
|
+
const Mr = (e) => {
|
997
997
|
if (e.length > 3 || e.length === 0 || e[0] === "0" && e !== "0" || !e.match(/^\d+$/))
|
998
998
|
return !1;
|
999
999
|
const t = +e | 0;
|
1000
1000
|
return t >= 0 && t <= 255;
|
1001
1001
|
};
|
1002
|
-
var
|
1003
|
-
$validator:
|
1002
|
+
var gr = {
|
1003
|
+
$validator: Lr,
|
1004
1004
|
$message: "The value is not a valid IP address",
|
1005
1005
|
$params: {
|
1006
1006
|
type: "ipAddress"
|
1007
1007
|
}
|
1008
1008
|
};
|
1009
|
-
function
|
1009
|
+
function pr() {
|
1010
1010
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ":";
|
1011
1011
|
return (t) => {
|
1012
|
-
if (e = L(e), !
|
1012
|
+
if (e = L(e), !I(t))
|
1013
1013
|
return !0;
|
1014
1014
|
if (typeof t != "string")
|
1015
1015
|
return !1;
|
1016
1016
|
const r = typeof e == "string" && e !== "" ? t.split(e) : t.length === 12 || t.length === 16 ? t.match(/.{2}/g) : null;
|
1017
|
-
return r !== null && (r.length === 6 || r.length === 8) && r.every(
|
1017
|
+
return r !== null && (r.length === 6 || r.length === 8) && r.every(mr);
|
1018
1018
|
};
|
1019
1019
|
}
|
1020
|
-
const
|
1021
|
-
function
|
1020
|
+
const mr = (e) => e.toLowerCase().match(/^[0-9a-f]{2}$/);
|
1021
|
+
function jr(e) {
|
1022
1022
|
return {
|
1023
|
-
$validator:
|
1023
|
+
$validator: pr(e),
|
1024
1024
|
$message: "The value is not a valid MAC Address",
|
1025
1025
|
$params: {
|
1026
1026
|
type: "macAddress"
|
1027
1027
|
}
|
1028
1028
|
};
|
1029
1029
|
}
|
1030
|
-
function
|
1031
|
-
return (t) => !
|
1030
|
+
function yr(e) {
|
1031
|
+
return (t) => !I(t) || ve(t) <= L(e);
|
1032
1032
|
}
|
1033
|
-
function
|
1033
|
+
function fr(e) {
|
1034
1034
|
return {
|
1035
|
-
$validator:
|
1035
|
+
$validator: yr(e),
|
1036
1036
|
$message: (t) => {
|
1037
1037
|
let {
|
1038
1038
|
$params: r
|
@@ -1045,12 +1045,12 @@ function cr(e) {
|
|
1045
1045
|
}
|
1046
1046
|
};
|
1047
1047
|
}
|
1048
|
-
function
|
1049
|
-
return (t) => !
|
1048
|
+
function wr(e) {
|
1049
|
+
return (t) => !I(t) || ve(t) >= L(e);
|
1050
1050
|
}
|
1051
|
-
function
|
1051
|
+
function hr(e) {
|
1052
1052
|
return {
|
1053
|
-
$validator:
|
1053
|
+
$validator: wr(e),
|
1054
1054
|
$message: (t) => {
|
1055
1055
|
let {
|
1056
1056
|
$params: r
|
@@ -1063,28 +1063,28 @@ function Mr(e) {
|
|
1063
1063
|
}
|
1064
1064
|
};
|
1065
1065
|
}
|
1066
|
-
function
|
1067
|
-
return typeof e == "string" && (e = e.trim()),
|
1066
|
+
function vr(e) {
|
1067
|
+
return typeof e == "string" && (e = e.trim()), I(e);
|
1068
1068
|
}
|
1069
1069
|
var Ne = {
|
1070
|
-
$validator:
|
1070
|
+
$validator: vr,
|
1071
1071
|
$message: "Value is required",
|
1072
1072
|
$params: {
|
1073
1073
|
type: "required"
|
1074
1074
|
}
|
1075
1075
|
};
|
1076
|
-
const
|
1077
|
-
function
|
1076
|
+
const ke = (e, t) => e ? I(typeof t == "string" ? t.trim() : t) : !0;
|
1077
|
+
function $r(e) {
|
1078
1078
|
return function(t, r) {
|
1079
1079
|
if (typeof e != "function")
|
1080
|
-
return
|
1081
|
-
const
|
1082
|
-
return
|
1080
|
+
return ke(L(e), t);
|
1081
|
+
const n = e.call(this, t, r);
|
1082
|
+
return ke(n, t);
|
1083
1083
|
};
|
1084
1084
|
}
|
1085
|
-
function
|
1085
|
+
function Nr(e) {
|
1086
1086
|
return {
|
1087
|
-
$validator:
|
1087
|
+
$validator: $r(e),
|
1088
1088
|
$message: "The value is required",
|
1089
1089
|
$params: {
|
1090
1090
|
type: "requiredIf",
|
@@ -1092,18 +1092,18 @@ function jr(e) {
|
|
1092
1092
|
}
|
1093
1093
|
};
|
1094
1094
|
}
|
1095
|
-
const
|
1096
|
-
function
|
1095
|
+
const Ye = (e, t) => e ? !0 : I(typeof t == "string" ? t.trim() : t);
|
1096
|
+
function Dr(e) {
|
1097
1097
|
return function(t, r) {
|
1098
1098
|
if (typeof e != "function")
|
1099
|
-
return
|
1100
|
-
const
|
1101
|
-
return
|
1099
|
+
return Ye(L(e), t);
|
1100
|
+
const n = e.call(this, t, r);
|
1101
|
+
return Ye(n, t);
|
1102
1102
|
};
|
1103
1103
|
}
|
1104
|
-
function
|
1104
|
+
function Cr(e) {
|
1105
1105
|
return {
|
1106
|
-
$validator:
|
1106
|
+
$validator: Dr(e),
|
1107
1107
|
$message: "The value is required",
|
1108
1108
|
$params: {
|
1109
1109
|
type: "requiredUnless",
|
@@ -1111,13 +1111,13 @@ function mr(e) {
|
|
1111
1111
|
}
|
1112
1112
|
};
|
1113
1113
|
}
|
1114
|
-
function
|
1114
|
+
function Tr(e) {
|
1115
1115
|
return (t) => L(t) === L(e);
|
1116
1116
|
}
|
1117
|
-
function
|
1117
|
+
function xr(e) {
|
1118
1118
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "other";
|
1119
1119
|
return {
|
1120
|
-
$validator:
|
1120
|
+
$validator: Tr(e),
|
1121
1121
|
$message: (r) => `The value must be equal to the ${t} value`,
|
1122
1122
|
$params: {
|
1123
1123
|
equalTo: e,
|
@@ -1126,103 +1126,103 @@ function wr(e) {
|
|
1126
1126
|
}
|
1127
1127
|
};
|
1128
1128
|
}
|
1129
|
-
const
|
1130
|
-
var
|
1131
|
-
$validator:
|
1129
|
+
const Ir = /^(?:(?:(?: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;
|
1130
|
+
var Sr = Q(Ir), Er = {
|
1131
|
+
$validator: Sr,
|
1132
1132
|
$message: "The value is not a valid URL address",
|
1133
1133
|
$params: {
|
1134
1134
|
type: "url"
|
1135
1135
|
}
|
1136
1136
|
};
|
1137
|
-
function
|
1137
|
+
function Or(e) {
|
1138
1138
|
return function() {
|
1139
|
-
for (var t = arguments.length, r = new Array(t),
|
1140
|
-
r[
|
1141
|
-
return e.reduce((
|
1139
|
+
for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++)
|
1140
|
+
r[n] = arguments[n];
|
1141
|
+
return e.reduce((a, s) => Y(a) ? a : B(s).apply(this, r), !1);
|
1142
1142
|
};
|
1143
1143
|
}
|
1144
|
-
function
|
1144
|
+
function zr(e) {
|
1145
1145
|
return function() {
|
1146
|
-
for (var t = arguments.length, r = new Array(t),
|
1147
|
-
r[
|
1148
|
-
return e.reduce(async (
|
1149
|
-
const
|
1150
|
-
return
|
1146
|
+
for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++)
|
1147
|
+
r[n] = arguments[n];
|
1148
|
+
return e.reduce(async (a, s) => {
|
1149
|
+
const u = await a;
|
1150
|
+
return Y(u) ? u : B(s).apply(this, r);
|
1151
1151
|
}, Promise.resolve(!1));
|
1152
1152
|
};
|
1153
1153
|
}
|
1154
|
-
function
|
1154
|
+
function br() {
|
1155
1155
|
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
1156
1156
|
t[r] = arguments[r];
|
1157
|
-
const
|
1157
|
+
const n = t.some((u) => u.$async), a = t.reduce((u, i) => i.$watchTargets ? u.concat(i.$watchTargets) : u, []);
|
1158
1158
|
let s = () => !1;
|
1159
|
-
return t.length && (s =
|
1160
|
-
$async:
|
1159
|
+
return t.length && (s = n ? zr(t) : Or(t)), {
|
1160
|
+
$async: n,
|
1161
1161
|
$validator: s,
|
1162
|
-
$watchTargets:
|
1162
|
+
$watchTargets: a
|
1163
1163
|
};
|
1164
1164
|
}
|
1165
|
-
function
|
1166
|
-
return
|
1165
|
+
function _r() {
|
1166
|
+
return he({
|
1167
1167
|
type: "or"
|
1168
|
-
},
|
1168
|
+
}, ee("The value does not match any of the provided validators", br(...arguments)));
|
1169
1169
|
}
|
1170
|
-
function
|
1170
|
+
function Ar(e) {
|
1171
1171
|
return function() {
|
1172
|
-
for (var t = arguments.length, r = new Array(t),
|
1173
|
-
r[
|
1174
|
-
return e.reduce((
|
1172
|
+
for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++)
|
1173
|
+
r[n] = arguments[n];
|
1174
|
+
return e.reduce((a, s) => Y(a) ? B(s).apply(this, r) : a, !0);
|
1175
1175
|
};
|
1176
1176
|
}
|
1177
|
-
function
|
1177
|
+
function kr(e) {
|
1178
1178
|
return function() {
|
1179
|
-
for (var t = arguments.length, r = new Array(t),
|
1180
|
-
r[
|
1181
|
-
return e.reduce(async (
|
1182
|
-
const
|
1183
|
-
return
|
1179
|
+
for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++)
|
1180
|
+
r[n] = arguments[n];
|
1181
|
+
return e.reduce(async (a, s) => {
|
1182
|
+
const u = await a;
|
1183
|
+
return Y(u) ? B(s).apply(this, r) : u;
|
1184
1184
|
}, Promise.resolve(!0));
|
1185
1185
|
};
|
1186
1186
|
}
|
1187
|
-
function
|
1187
|
+
function Yr() {
|
1188
1188
|
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
1189
1189
|
t[r] = arguments[r];
|
1190
|
-
const
|
1190
|
+
const n = t.some((u) => u.$async), a = t.reduce((u, i) => i.$watchTargets ? u.concat(i.$watchTargets) : u, []);
|
1191
1191
|
let s = () => !1;
|
1192
|
-
return t.length && (s =
|
1193
|
-
$async:
|
1192
|
+
return t.length && (s = n ? kr(t) : Ar(t)), {
|
1193
|
+
$async: n,
|
1194
1194
|
$validator: s,
|
1195
|
-
$watchTargets:
|
1195
|
+
$watchTargets: a
|
1196
1196
|
};
|
1197
1197
|
}
|
1198
|
-
function
|
1199
|
-
return
|
1198
|
+
function Pr() {
|
1199
|
+
return he({
|
1200
1200
|
type: "and"
|
1201
|
-
},
|
1201
|
+
}, ee("The value does not match all of the provided validators", Yr(...arguments)));
|
1202
1202
|
}
|
1203
|
-
function
|
1203
|
+
function Qr(e) {
|
1204
1204
|
return function(t, r) {
|
1205
|
-
if (!
|
1205
|
+
if (!I(t))
|
1206
1206
|
return !0;
|
1207
|
-
const
|
1208
|
-
return
|
1207
|
+
const n = B(e).call(this, t, r);
|
1208
|
+
return qt(n) ? n.then((a) => !Y(a)) : !Y(n);
|
1209
1209
|
};
|
1210
1210
|
}
|
1211
|
-
function
|
1211
|
+
function Rr(e) {
|
1212
1212
|
return {
|
1213
|
-
$validator:
|
1213
|
+
$validator: Qr(e),
|
1214
1214
|
$message: "The value does not match the provided validator",
|
1215
1215
|
$params: {
|
1216
1216
|
type: "not"
|
1217
1217
|
}
|
1218
1218
|
};
|
1219
1219
|
}
|
1220
|
-
function
|
1221
|
-
return (t) => !
|
1220
|
+
function Ur(e) {
|
1221
|
+
return (t) => !I(t) || (!/\s/.test(t) || t instanceof Date) && +t >= +L(e);
|
1222
1222
|
}
|
1223
|
-
function
|
1223
|
+
function Vr(e) {
|
1224
1224
|
return {
|
1225
|
-
$validator:
|
1225
|
+
$validator: Ur(e),
|
1226
1226
|
$message: (t) => {
|
1227
1227
|
let {
|
1228
1228
|
$params: r
|
@@ -1235,11 +1235,11 @@ function br(e) {
|
|
1235
1235
|
}
|
1236
1236
|
};
|
1237
1237
|
}
|
1238
|
-
function
|
1239
|
-
return (t) => !
|
1238
|
+
function Br(e) {
|
1239
|
+
return (t) => !I(t) || (!/\s/.test(t) || t instanceof Date) && +t <= +L(e);
|
1240
1240
|
}
|
1241
|
-
var
|
1242
|
-
$validator:
|
1241
|
+
var Gr = (e) => ({
|
1242
|
+
$validator: Br(e),
|
1243
1243
|
$message: (t) => {
|
1244
1244
|
let {
|
1245
1245
|
$params: r
|
@@ -1250,153 +1250,153 @@ var Ar = (e) => ({
|
|
1250
1250
|
max: e,
|
1251
1251
|
type: "maxValue"
|
1252
1252
|
}
|
1253
|
-
}),
|
1254
|
-
$validator:
|
1253
|
+
}), Fr = Q(/(^[0-9]*$)|(^-[0-9]+$)/), Wr = {
|
1254
|
+
$validator: Fr,
|
1255
1255
|
$message: "Value is not an integer",
|
1256
1256
|
$params: {
|
1257
1257
|
type: "integer"
|
1258
1258
|
}
|
1259
|
-
},
|
1260
|
-
$validator:
|
1259
|
+
}, Hr = Q(/^[-]?\d*(\.\d+)?$/), Zr = {
|
1260
|
+
$validator: Hr,
|
1261
1261
|
$message: "Value must be decimal",
|
1262
1262
|
$params: {
|
1263
1263
|
type: "decimal"
|
1264
1264
|
}
|
1265
1265
|
};
|
1266
|
-
function
|
1266
|
+
function Jr(e) {
|
1267
1267
|
let {
|
1268
1268
|
t,
|
1269
|
-
messagePath: r = (
|
1269
|
+
messagePath: r = (a) => {
|
1270
1270
|
let {
|
1271
1271
|
$validator: s
|
1272
|
-
} =
|
1272
|
+
} = a;
|
1273
1273
|
return `validations.${s}`;
|
1274
1274
|
},
|
1275
|
-
messageParams:
|
1275
|
+
messageParams: n = (a) => a
|
1276
1276
|
} = e;
|
1277
1277
|
return function(s) {
|
1278
1278
|
let {
|
1279
|
-
withArguments:
|
1280
|
-
messagePath:
|
1281
|
-
messageParams: l =
|
1279
|
+
withArguments: u = !1,
|
1280
|
+
messagePath: i = r,
|
1281
|
+
messageParams: l = n
|
1282
1282
|
} = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
1283
|
-
function c(
|
1284
|
-
return t(
|
1285
|
-
model:
|
1286
|
-
property:
|
1287
|
-
pending:
|
1288
|
-
invalid:
|
1289
|
-
response:
|
1290
|
-
validator:
|
1291
|
-
propertyPath:
|
1292
|
-
},
|
1283
|
+
function c(M) {
|
1284
|
+
return t(i(M), l(Z({
|
1285
|
+
model: M.$model,
|
1286
|
+
property: M.$property,
|
1287
|
+
pending: M.$pending,
|
1288
|
+
invalid: M.$invalid,
|
1289
|
+
response: M.$response,
|
1290
|
+
validator: M.$validator,
|
1291
|
+
propertyPath: M.$propertyPath
|
1292
|
+
}, M.$params)));
|
1293
1293
|
}
|
1294
|
-
return
|
1295
|
-
return
|
1296
|
-
} :
|
1294
|
+
return u && typeof s == "function" ? function() {
|
1295
|
+
return ee(c, s(...arguments));
|
1296
|
+
} : ee(c, s);
|
1297
1297
|
};
|
1298
1298
|
}
|
1299
|
-
const
|
1299
|
+
const Ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1300
1300
|
__proto__: null,
|
1301
|
-
alpha:
|
1302
|
-
alphaNum:
|
1303
|
-
and:
|
1304
|
-
between:
|
1305
|
-
createI18nMessage:
|
1306
|
-
decimal:
|
1307
|
-
email:
|
1308
|
-
helpers:
|
1309
|
-
integer:
|
1310
|
-
ipAddress:
|
1311
|
-
macAddress:
|
1312
|
-
maxLength:
|
1313
|
-
maxValue:
|
1314
|
-
minLength:
|
1315
|
-
minValue:
|
1316
|
-
not:
|
1317
|
-
numeric:
|
1318
|
-
or:
|
1301
|
+
alpha: nr,
|
1302
|
+
alphaNum: sr,
|
1303
|
+
and: Pr,
|
1304
|
+
between: lr,
|
1305
|
+
createI18nMessage: Jr,
|
1306
|
+
decimal: Zr,
|
1307
|
+
email: $e,
|
1308
|
+
helpers: J,
|
1309
|
+
integer: Wr,
|
1310
|
+
ipAddress: gr,
|
1311
|
+
macAddress: jr,
|
1312
|
+
maxLength: fr,
|
1313
|
+
maxValue: Gr,
|
1314
|
+
minLength: hr,
|
1315
|
+
minValue: Vr,
|
1316
|
+
not: Rr,
|
1317
|
+
numeric: ur,
|
1318
|
+
or: _r,
|
1319
1319
|
required: Ne,
|
1320
|
-
requiredIf:
|
1321
|
-
requiredUnless:
|
1322
|
-
sameAs:
|
1323
|
-
url:
|
1324
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
1320
|
+
requiredIf: Nr,
|
1321
|
+
requiredUnless: Cr,
|
1322
|
+
sameAs: xr,
|
1323
|
+
url: Er
|
1324
|
+
}, Symbol.toStringTag, { value: "Module" })), qe = J.regex(
|
1325
1325
|
/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$ %^&*-]).{8,}$/
|
1326
1326
|
);
|
1327
|
-
function
|
1327
|
+
function Pe(e) {
|
1328
1328
|
return ["maxLength", "minLength"].includes(e);
|
1329
1329
|
}
|
1330
|
-
function
|
1330
|
+
function Qe(e) {
|
1331
1331
|
return e === "required";
|
1332
1332
|
}
|
1333
|
-
function
|
1333
|
+
function Re(e) {
|
1334
1334
|
return e === "email";
|
1335
1335
|
}
|
1336
|
-
function
|
1336
|
+
function Ue(e) {
|
1337
1337
|
return e === "password";
|
1338
1338
|
}
|
1339
|
-
function
|
1339
|
+
function Xr(e, t) {
|
1340
1340
|
return {
|
1341
|
-
[e]:
|
1341
|
+
[e]: Ke[e](t)
|
1342
1342
|
};
|
1343
1343
|
}
|
1344
|
-
function
|
1344
|
+
function Kr(e, t, r) {
|
1345
1345
|
return {
|
1346
|
-
[e]:
|
1346
|
+
[e]: J.withMessage(r, Ke[e](t))
|
1347
1347
|
};
|
1348
1348
|
}
|
1349
|
-
function
|
1349
|
+
function qr() {
|
1350
1350
|
return { required: Ne };
|
1351
1351
|
}
|
1352
|
-
function
|
1352
|
+
function en(e) {
|
1353
1353
|
return {
|
1354
|
-
required:
|
1354
|
+
required: J.withMessage(e, Ne)
|
1355
1355
|
};
|
1356
1356
|
}
|
1357
|
-
function
|
1358
|
-
return { email:
|
1357
|
+
function tn() {
|
1358
|
+
return { email: $e };
|
1359
1359
|
}
|
1360
|
-
function
|
1360
|
+
function rn(e) {
|
1361
1361
|
return {
|
1362
|
-
email:
|
1362
|
+
email: J.withMessage(e, $e)
|
1363
1363
|
};
|
1364
1364
|
}
|
1365
|
-
function
|
1366
|
-
return { password:
|
1365
|
+
function nn() {
|
1366
|
+
return { password: qe };
|
1367
1367
|
}
|
1368
|
-
function
|
1368
|
+
function an(e) {
|
1369
1369
|
return {
|
1370
|
-
password:
|
1370
|
+
password: J.withMessage(e, qe)
|
1371
1371
|
};
|
1372
1372
|
}
|
1373
|
-
function
|
1374
|
-
if (
|
1375
|
-
return
|
1373
|
+
function sn(e, t) {
|
1374
|
+
if (Pe(e) && typeof t.message == "string" && typeof t.value == "number")
|
1375
|
+
return Kr(
|
1376
1376
|
e,
|
1377
1377
|
t.value,
|
1378
1378
|
t.message
|
1379
1379
|
);
|
1380
|
-
if (
|
1381
|
-
return
|
1382
|
-
if (
|
1383
|
-
return
|
1384
|
-
if (
|
1385
|
-
return
|
1386
|
-
if (
|
1387
|
-
return
|
1388
|
-
if (
|
1389
|
-
return
|
1390
|
-
if (
|
1391
|
-
return
|
1392
|
-
if (
|
1393
|
-
return
|
1380
|
+
if (Pe(e) && typeof t.message > "u" && typeof t.value == "number")
|
1381
|
+
return Xr(e, t.value);
|
1382
|
+
if (Re(e) && typeof t.message == "string")
|
1383
|
+
return rn(t.message);
|
1384
|
+
if (Re(e) && typeof t.message > "u")
|
1385
|
+
return tn();
|
1386
|
+
if (Ue(e) && typeof t.message == "string")
|
1387
|
+
return an(t.message);
|
1388
|
+
if (Ue(e) && typeof t.message > "u")
|
1389
|
+
return nn();
|
1390
|
+
if (Qe(e) && typeof t.message == "string")
|
1391
|
+
return en(t.message);
|
1392
|
+
if (Qe(e) && typeof t.message > "u")
|
1393
|
+
return qr();
|
1394
1394
|
throw new Error("No valid rule detected");
|
1395
1395
|
}
|
1396
|
-
const
|
1396
|
+
const on = ["id", "name"], un = {
|
1397
1397
|
key: 0,
|
1398
1398
|
class: "pdap-form-error-message"
|
1399
|
-
},
|
1399
|
+
}, ln = /* @__PURE__ */ C({
|
1400
1400
|
__name: "PdapForm",
|
1401
1401
|
props: {
|
1402
1402
|
error: { default: null },
|
@@ -1406,79 +1406,79 @@ const Xr = ["id", "name"], Kr = {
|
|
1406
1406
|
},
|
1407
1407
|
emits: ["submit", "change"],
|
1408
1408
|
setup(e, { emit: t }) {
|
1409
|
-
const r = e,
|
1410
|
-
() => r.schema.map((
|
1411
|
-
const
|
1412
|
-
return delete
|
1409
|
+
const r = e, n = t, a = h(
|
1410
|
+
() => r.schema.map((j) => {
|
1411
|
+
const p = { ...j };
|
1412
|
+
return delete p.validators, p;
|
1413
1413
|
})
|
1414
|
-
), s =
|
1415
|
-
|
1416
|
-
switch (
|
1417
|
-
case
|
1418
|
-
return { ...
|
1419
|
-
case
|
1420
|
-
case
|
1414
|
+
), s = N(
|
1415
|
+
a.value.reduce((j, p) => {
|
1416
|
+
switch (p.type) {
|
1417
|
+
case b.CHECKBOX:
|
1418
|
+
return { ...j, [p.name]: String(p.defaultChecked) };
|
1419
|
+
case b.TEXT:
|
1420
|
+
case b.PASSWORD:
|
1421
1421
|
default:
|
1422
|
-
return { ...
|
1422
|
+
return { ...j, [p.name]: p.value };
|
1423
1423
|
}
|
1424
1424
|
}, {})
|
1425
|
-
),
|
1426
|
-
const
|
1427
|
-
(
|
1428
|
-
...
|
1429
|
-
...
|
1425
|
+
), u = r.schema.reduce((j, p) => {
|
1426
|
+
const o = Object.entries(p.validators ?? {}).reduce(
|
1427
|
+
(d, [g, f]) => ({
|
1428
|
+
...d,
|
1429
|
+
...sn(g, f)
|
1430
1430
|
}),
|
1431
1431
|
{}
|
1432
1432
|
);
|
1433
1433
|
return {
|
1434
|
-
...
|
1435
|
-
[
|
1436
|
-
...
|
1434
|
+
...j,
|
1435
|
+
[p.name]: {
|
1436
|
+
...o
|
1437
1437
|
}
|
1438
1438
|
};
|
1439
|
-
}, {}),
|
1440
|
-
function c(
|
1441
|
-
const
|
1442
|
-
s.value[
|
1439
|
+
}, {}), i = Bt(u, s, { $autoDirty: !1, $lazy: !0 }), l = N(r.error);
|
1440
|
+
function c(j, p) {
|
1441
|
+
const o = p.target, d = o.type === b.CHECKBOX && typeof o.checked == "boolean" ? o.checked.toString() : o.value;
|
1442
|
+
s.value[j] = d, M();
|
1443
1443
|
}
|
1444
|
-
|
1445
|
-
r.error ? l.value = r.error : l.value &&
|
1446
|
-
}),
|
1444
|
+
Te(() => {
|
1445
|
+
r.error ? l.value = r.error : l.value && i.value.$errors.length === 0 ? l.value = null : !l.value && i.value.$errors.length > 0 && (l.value = "Please update this form to correct the errors");
|
1446
|
+
}), Te(() => {
|
1447
1447
|
});
|
1448
|
-
function
|
1449
|
-
|
1448
|
+
function M() {
|
1449
|
+
n("change", { ...s.value });
|
1450
1450
|
}
|
1451
|
-
async function
|
1452
|
-
if (await
|
1453
|
-
|
1451
|
+
async function m(j) {
|
1452
|
+
if (await i.value.$validate()) {
|
1453
|
+
n("submit", { ...s.value }), i.value.$reset(), j.target.reset(), s.value = Object.entries(s).reduce((d, [g]) => ({ ...d, [g]: "" }), {});
|
1454
1454
|
return;
|
1455
1455
|
}
|
1456
1456
|
}
|
1457
|
-
return (
|
1458
|
-
id:
|
1459
|
-
name:
|
1457
|
+
return (j, p) => (y(), v("form", {
|
1458
|
+
id: j.id,
|
1459
|
+
name: j.name,
|
1460
1460
|
class: "pdap-form",
|
1461
|
-
onChange:
|
1462
|
-
onSubmit:
|
1461
|
+
onChange: M,
|
1462
|
+
onSubmit: p[0] || (p[0] = me((o) => m(o), ["prevent"]))
|
1463
1463
|
}, [
|
1464
|
-
typeof l.value == "string" ? (y(),
|
1465
|
-
(y(!0),
|
1466
|
-
var
|
1467
|
-
return y(),
|
1468
|
-
key:
|
1469
|
-
error: (
|
1470
|
-
value: s.value[
|
1471
|
-
onChange: (
|
1464
|
+
typeof l.value == "string" ? (y(), v("div", un, z(l.value), 1)) : F("", !0),
|
1465
|
+
(y(!0), v(G, null, le(a.value, (o) => {
|
1466
|
+
var d, g, f, S;
|
1467
|
+
return y(), x(Xt, W(o, {
|
1468
|
+
key: o.name,
|
1469
|
+
error: (d = L(i)[o.name]) != null && d.$error ? (S = (f = (g = L(i)[o.name]) == null ? void 0 : g.$errors) == null ? void 0 : f[0]) == null ? void 0 : S.$message : "",
|
1470
|
+
value: s.value[o.name],
|
1471
|
+
onChange: (X) => c(o.name, X)
|
1472
1472
|
}), null, 16, ["error", "value", "onChange"]);
|
1473
1473
|
}), 128)),
|
1474
|
-
|
1475
|
-
], 40,
|
1474
|
+
V(j.$slots, "default")
|
1475
|
+
], 40, on));
|
1476
1476
|
}
|
1477
1477
|
});
|
1478
|
-
const
|
1478
|
+
const cn = {
|
1479
1479
|
name: "GridContainer"
|
1480
|
-
},
|
1481
|
-
...
|
1480
|
+
}, Pn = /* @__PURE__ */ C({
|
1481
|
+
...cn,
|
1482
1482
|
props: {
|
1483
1483
|
columns: { default: "auto" },
|
1484
1484
|
component: { default: "div" },
|
@@ -1487,119 +1487,119 @@ const ea = {
|
|
1487
1487
|
templateRows: {}
|
1488
1488
|
},
|
1489
1489
|
setup(e) {
|
1490
|
-
const t = e, r =
|
1490
|
+
const t = e, r = O({
|
1491
1491
|
"pdap-grid-container": !0,
|
1492
1492
|
[`pdap-grid-container-column-${t.columns}`]: t.columns !== "auto"
|
1493
|
-
}),
|
1494
|
-
...
|
1495
|
-
gridTemplateRows:
|
1493
|
+
}), n = t.templateRows || typeof t.rows == "number", a = t.templateRows ?? `repeat(${t.rows}, minmax(0, 1fr))`, s = O({
|
1494
|
+
...n && {
|
1495
|
+
gridTemplateRows: a
|
1496
1496
|
},
|
1497
1497
|
...t.templateColumns && { gridTemplateColumns: t.templateColumns }
|
1498
1498
|
});
|
1499
|
-
return (
|
1500
|
-
class:
|
1501
|
-
style:
|
1499
|
+
return (u, i) => (y(), x(ye(u.component), {
|
1500
|
+
class: P(r),
|
1501
|
+
style: we(s)
|
1502
1502
|
}, {
|
1503
|
-
default:
|
1504
|
-
|
1503
|
+
default: D(() => [
|
1504
|
+
V(u.$slots, "default")
|
1505
1505
|
]),
|
1506
1506
|
_: 3
|
1507
1507
|
}, 8, ["class", "style"]));
|
1508
1508
|
}
|
1509
|
-
}),
|
1509
|
+
}), dn = {
|
1510
1510
|
name: "GridItem"
|
1511
|
-
},
|
1512
|
-
...
|
1511
|
+
}, Qn = /* @__PURE__ */ C({
|
1512
|
+
...dn,
|
1513
1513
|
props: {
|
1514
1514
|
component: { default: "div" },
|
1515
1515
|
spanColumn: { default: 1 },
|
1516
1516
|
spanRow: { default: 1 }
|
1517
1517
|
},
|
1518
1518
|
setup(e) {
|
1519
|
-
const t = e, r =
|
1519
|
+
const t = e, r = O({
|
1520
1520
|
"pdap-grid-item": !0,
|
1521
1521
|
[`pdap-grid-item-span-column-${t.spanColumn}`]: t.spanColumn > 1
|
1522
|
-
}),
|
1522
|
+
}), n = O({
|
1523
1523
|
// Only add inline property if it is passed and exceeds the default
|
1524
1524
|
...t.spanRow > 1 && {
|
1525
1525
|
gridRow: `span ${t.spanRow} / span ${t.spanRow}`
|
1526
1526
|
}
|
1527
1527
|
});
|
1528
|
-
return (
|
1529
|
-
class:
|
1530
|
-
style:
|
1528
|
+
return (a, s) => (y(), x(ye(a.component), {
|
1529
|
+
class: P(r),
|
1530
|
+
style: we(n)
|
1531
1531
|
}, {
|
1532
|
-
default:
|
1533
|
-
|
1532
|
+
default: D(() => [
|
1533
|
+
V(a.$slots, "default")
|
1534
1534
|
]),
|
1535
1535
|
_: 3
|
1536
1536
|
}, 8, ["class", "style"]));
|
1537
1537
|
}
|
1538
1538
|
});
|
1539
|
-
const
|
1539
|
+
const Ln = /* @__PURE__ */ w("svg", {
|
1540
1540
|
xmlns: "http://www.w3.org/2000/svg",
|
1541
1541
|
viewBox: "0 0 448 512"
|
1542
1542
|
}, [
|
1543
|
-
/* @__PURE__ */
|
1544
|
-
], -1),
|
1545
|
-
|
1546
|
-
],
|
1543
|
+
/* @__PURE__ */ w("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" })
|
1544
|
+
], -1), Mn = [
|
1545
|
+
Ln
|
1546
|
+
], gn = ["aria-expanded"], pn = ["href"], mn = /* @__PURE__ */ C({
|
1547
1547
|
__name: "PdapNav",
|
1548
1548
|
props: {
|
1549
1549
|
topPosition: {}
|
1550
1550
|
},
|
1551
1551
|
setup(e) {
|
1552
|
-
let t =
|
1552
|
+
let t = ae("navLinks");
|
1553
1553
|
typeof t > "u" && (t = [], console.error(
|
1554
1554
|
`Hey, PDAP developer
|
1555
1555
|
`,
|
1556
1556
|
"Did you forget to inject some linkData for the Nav component?"
|
1557
1557
|
));
|
1558
|
-
const r =
|
1558
|
+
const r = O({
|
1559
1559
|
isExpanded: !1,
|
1560
1560
|
isMobile: !0
|
1561
|
-
}),
|
1561
|
+
}), n = O({
|
1562
1562
|
"pdap-nav": !0
|
1563
1563
|
});
|
1564
|
-
|
1565
|
-
|
1566
|
-
}),
|
1567
|
-
window.removeEventListener("resize",
|
1564
|
+
Ge(() => {
|
1565
|
+
a(), window.addEventListener("resize", a);
|
1566
|
+
}), fe(() => {
|
1567
|
+
window.removeEventListener("resize", a);
|
1568
1568
|
});
|
1569
|
-
async function
|
1570
|
-
window.innerWidth <= 1024 ? r.isMobile = !0 : r.isMobile = !1, await
|
1569
|
+
async function a() {
|
1570
|
+
window.innerWidth <= 1024 ? r.isMobile = !0 : r.isMobile = !1, await se();
|
1571
1571
|
}
|
1572
1572
|
async function s() {
|
1573
|
-
var
|
1574
|
-
const
|
1575
|
-
!r.isExpanded && r.isMobile ? (r.isExpanded = !0,
|
1573
|
+
var i, l;
|
1574
|
+
const u = document.querySelector("body");
|
1575
|
+
!r.isExpanded && r.isMobile ? (r.isExpanded = !0, u != null && u.classList.contains("lock-scroll") || (i = document.querySelector("body")) == null || i.classList.add("lock-scroll")) : r.isExpanded && r.isMobile && (r.isExpanded = !1, (l = document.querySelector("body")) == null || l.classList.remove("lock-scroll")), await se();
|
1576
1576
|
}
|
1577
|
-
return (
|
1578
|
-
|
1577
|
+
return (u, i) => (y(), v(G, null, [
|
1578
|
+
w("div", {
|
1579
1579
|
"aria-controls": "nav",
|
1580
1580
|
class: "pdap-nav-open-button",
|
1581
1581
|
role: "button",
|
1582
1582
|
onClick: s
|
1583
|
-
},
|
1584
|
-
|
1583
|
+
}, Mn),
|
1584
|
+
w("nav", {
|
1585
1585
|
id: "nav",
|
1586
1586
|
"aria-expanded": r.isMobile && r.isExpanded || !r.isMobile,
|
1587
|
-
class:
|
1588
|
-
style:
|
1587
|
+
class: P(n),
|
1588
|
+
style: we(r.isMobile ? { top: `${u.topPosition}px` } : {})
|
1589
1589
|
}, [
|
1590
|
-
(y(!0),
|
1590
|
+
(y(!0), v(G, null, le(L(t), (l) => (y(), v("li", {
|
1591
1591
|
key: l.text,
|
1592
1592
|
class: "pdap-nav-link-container"
|
1593
1593
|
}, [
|
1594
|
-
l.href ? (y(),
|
1594
|
+
l.href ? (y(), v("a", {
|
1595
1595
|
key: 0,
|
1596
1596
|
class: "pdap-nav-link",
|
1597
1597
|
href: l.href,
|
1598
1598
|
target: "_blank",
|
1599
1599
|
referrerpolicy: "no-referrer",
|
1600
1600
|
onClick: s
|
1601
|
-
},
|
1602
|
-
l.path ? (y(),
|
1601
|
+
}, z(l.text), 9, pn)) : F("", !0),
|
1602
|
+
l.path ? (y(), x(L(oe), {
|
1603
1603
|
key: 1,
|
1604
1604
|
"active-class": "pdap-nav-link-current",
|
1605
1605
|
"exact-active-class": "pdap-nav-link-current-exact",
|
@@ -1607,85 +1607,85 @@ const ra = /* @__PURE__ */ f("svg", {
|
|
1607
1607
|
to: l.path,
|
1608
1608
|
onClick: s
|
1609
1609
|
}, {
|
1610
|
-
default:
|
1611
|
-
|
1610
|
+
default: D(() => [
|
1611
|
+
T(z(l.text), 1)
|
1612
1612
|
]),
|
1613
1613
|
_: 2
|
1614
|
-
}, 1032, ["to"])) :
|
1614
|
+
}, 1032, ["to"])) : F("", !0)
|
1615
1615
|
]))), 128))
|
1616
|
-
], 14,
|
1616
|
+
], 14, gn)
|
1617
1617
|
], 64));
|
1618
1618
|
}
|
1619
1619
|
});
|
1620
|
-
const
|
1620
|
+
const jn = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI0LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA1MDkuNCAxMTEuNyIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNTA5LjQgMTExLjc7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHBhdGggZD0iTTAsMTAwLjhMMjYuOCwzLjJoOS4zTDkuNCwxMDAuOEgweiIvPgo8cGF0aCBkPSJNMTIzLjIsMjdoLTQuN3YxNi42aC05LjFWMS45aDEzLjhjOS4zLDAsMTUuMiw0LjUsMTUuMiwxMi4zUzEzMi43LDI3LDEyMy4yLDI3eiBNMTIzLjIsOS42aC00Ljd2OS43aDQuNwoJYzQuMSwwLDYuMS0xLjYsNi4xLTVTMTI3LjMsOS42LDEyMy4yLDkuNkwxMjMuMiw5LjZ6Ii8+CjxwYXRoIGQ9Ik0xNTEuNCw0NC4zYy03LjIsM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LjMsMi43IDQ3LDggNTkuMiwyMC4yIDQzLjcsMjAuMiA0My43LDI3LjggCgk1OC4xLDI3LjggNDcsMzguOCA1Mi4zLDQ0LjEgNjQsMzIuNSA2NCw0OCA3MS41LDQ4IDcxLjUsMzIuNSA4My4xLDQ0LjEgODguNCwzOC44IDc3LjQsMjcuOCA5MS43LDI3LjggIi8+Cjwvc3ZnPgo=", yn = ["href"], fn = ["src"], wn = ["src"], Rn = /* @__PURE__ */ C({
|
1621
1621
|
__name: "PdapHeader",
|
1622
1622
|
props: {
|
1623
|
-
logoImageSrc: { default:
|
1623
|
+
logoImageSrc: { default: jn },
|
1624
1624
|
logoImageAnchorPath: { default: "/" }
|
1625
1625
|
},
|
1626
1626
|
setup(e) {
|
1627
|
-
const t = e, r =
|
1628
|
-
|
1627
|
+
const t = e, r = N(), n = N(null), a = t.logoImageAnchorPath.startsWith("/");
|
1628
|
+
Fe(() => {
|
1629
1629
|
s(), window.addEventListener("resize", s);
|
1630
|
-
}),
|
1630
|
+
}), fe(() => {
|
1631
1631
|
window.removeEventListener("resize", s);
|
1632
1632
|
});
|
1633
1633
|
function s() {
|
1634
|
-
|
1634
|
+
n.value && (r.value = n.value.offsetHeight);
|
1635
1635
|
}
|
1636
|
-
return (
|
1636
|
+
return (u, i) => (y(), v("header", {
|
1637
1637
|
ref_key: "el",
|
1638
|
-
ref:
|
1638
|
+
ref: n,
|
1639
1639
|
class: "pdap-header"
|
1640
1640
|
}, [
|
1641
|
-
L(
|
1641
|
+
L(a) ? (y(), x(L(oe), {
|
1642
1642
|
key: 1,
|
1643
|
-
to:
|
1643
|
+
to: u.logoImageAnchorPath,
|
1644
1644
|
class: "logo"
|
1645
1645
|
}, {
|
1646
|
-
default:
|
1647
|
-
|
1648
|
-
src:
|
1646
|
+
default: D(() => [
|
1647
|
+
w("img", {
|
1648
|
+
src: u.logoImageSrc,
|
1649
1649
|
loading: "lazy",
|
1650
1650
|
width: "250",
|
1651
1651
|
alt: "Police Data Accessibility Project Logo"
|
1652
|
-
}, null, 8,
|
1652
|
+
}, null, 8, wn)
|
1653
1653
|
]),
|
1654
1654
|
_: 1
|
1655
|
-
}, 8, ["to"])) : (y(),
|
1655
|
+
}, 8, ["to"])) : (y(), v("a", {
|
1656
1656
|
key: 0,
|
1657
|
-
href:
|
1657
|
+
href: u.logoImageAnchorPath,
|
1658
1658
|
class: "logo"
|
1659
1659
|
}, [
|
1660
|
-
|
1661
|
-
src:
|
1660
|
+
w("img", {
|
1661
|
+
src: u.logoImageSrc,
|
1662
1662
|
loading: "lazy",
|
1663
1663
|
width: "250",
|
1664
1664
|
alt: "Police Data Accessibility Project Logo"
|
1665
|
-
}, null, 8,
|
1666
|
-
], 8,
|
1667
|
-
|
1665
|
+
}, null, 8, fn)
|
1666
|
+
], 8, yn)),
|
1667
|
+
H(mn, { "top-position": r.value }, null, 8, ["top-position"])
|
1668
1668
|
], 512));
|
1669
1669
|
}
|
1670
1670
|
});
|
1671
|
-
const
|
1672
|
-
/* @__PURE__ */
|
1673
|
-
/* @__PURE__ */
|
1674
|
-
/* @__PURE__ */
|
1675
|
-
/* @__PURE__ */
|
1671
|
+
const hn = /* @__PURE__ */ w("div", { class: "pdap-flex-container" }, [
|
1672
|
+
/* @__PURE__ */ w("h2", { class: "mt-0" }, "Search our database"),
|
1673
|
+
/* @__PURE__ */ w("p", { class: "pb-4 md:pb-8" }, [
|
1674
|
+
/* @__PURE__ */ T(" If you are looking for something specific, we may already be tracking it. "),
|
1675
|
+
/* @__PURE__ */ w("a", { href: "https://pdap.io/data" }, "Learn more about the data here.")
|
1676
1676
|
])
|
1677
|
-
], -1),
|
1677
|
+
], -1), vn = { class: "pdap-quick-search-form h-full max-h-[75-vh] justify-start p-0" }, $n = { class: "max-w-[unset] text-med" }, Nn = ["href"], Dn = ["href"], Un = /* @__PURE__ */ C({
|
1678
1678
|
__name: "QuickSearchForm",
|
1679
1679
|
props: {
|
1680
1680
|
baseUrlForRedirect: { default: "https://data-sources.pdap.io" }
|
1681
1681
|
},
|
1682
1682
|
setup(e) {
|
1683
|
-
const t =
|
1683
|
+
const t = mt(), r = e, n = [
|
1684
1684
|
{
|
1685
1685
|
id: "search-term",
|
1686
1686
|
name: "searchTerm",
|
1687
1687
|
label: "What are you looking for?",
|
1688
|
-
type:
|
1688
|
+
type: b.TEXT,
|
1689
1689
|
placeholder: "Enter a keyword, or 'all'",
|
1690
1690
|
value: ""
|
1691
1691
|
},
|
@@ -1693,101 +1693,262 @@ const La = /* @__PURE__ */ f("div", { class: "pdap-flex-container" }, [
|
|
1693
1693
|
id: "location",
|
1694
1694
|
name: "location",
|
1695
1695
|
label: "From where?",
|
1696
|
-
type:
|
1696
|
+
type: b.TEXT,
|
1697
1697
|
placeholder: "Enter a place, or 'all'",
|
1698
1698
|
value: ""
|
1699
1699
|
}
|
1700
|
-
],
|
1701
|
-
function
|
1702
|
-
|
1700
|
+
], a = N(void 0), s = t.getRoutes().some((l) => l.path.includes("/search/"));
|
1701
|
+
function u(l) {
|
1702
|
+
a.value && Object.values(l).some(Boolean) && (a.value = void 0);
|
1703
1703
|
}
|
1704
|
-
function
|
1705
|
-
if (Object.values(l).every((
|
1706
|
-
|
1704
|
+
function i(l) {
|
1705
|
+
if (Object.values(l).every((m) => !m)) {
|
1706
|
+
a.value = "Either a search term or a location is required.";
|
1707
1707
|
return;
|
1708
1708
|
}
|
1709
|
-
let { location: c, searchTerm:
|
1710
|
-
c = c && c.length > 0 ? c : "all",
|
1711
|
-
`${r.baseUrlForRedirect}/search/${
|
1709
|
+
let { location: c, searchTerm: M } = l;
|
1710
|
+
c = c && c.length > 0 ? c : "all", M = M && M.length > 0 ? M : "all", s ? t.push(`/search/${M}/${c}`) : window.location.assign(
|
1711
|
+
`${r.baseUrlForRedirect}/search/${M}/${c}`
|
1712
1712
|
);
|
1713
1713
|
}
|
1714
|
-
return (l, c) => (y(),
|
1715
|
-
|
1716
|
-
|
1717
|
-
|
1714
|
+
return (l, c) => (y(), v(G, null, [
|
1715
|
+
hn,
|
1716
|
+
w("div", vn, [
|
1717
|
+
H(ln, {
|
1718
1718
|
id: "quick-search-form",
|
1719
1719
|
class: "flex flex-wrap gap-x-4",
|
1720
|
-
error:
|
1721
|
-
schema:
|
1720
|
+
error: a.value,
|
1721
|
+
schema: n,
|
1722
1722
|
name: "quickSearchForm",
|
1723
|
-
onChange:
|
1724
|
-
onSubmit:
|
1723
|
+
onChange: u,
|
1724
|
+
onSubmit: i
|
1725
1725
|
}, {
|
1726
|
-
default:
|
1727
|
-
|
1726
|
+
default: D(() => [
|
1727
|
+
H(We, {
|
1728
1728
|
type: "submit",
|
1729
1729
|
class: "flex-grow-0 flex-shrink-0 basis-full max-w-[unset] mt-4"
|
1730
1730
|
}, {
|
1731
|
-
default:
|
1732
|
-
|
1731
|
+
default: D(() => [
|
1732
|
+
T("Search Data Sources")
|
1733
1733
|
]),
|
1734
1734
|
_: 1
|
1735
1735
|
})
|
1736
1736
|
]),
|
1737
1737
|
_: 1
|
1738
1738
|
}, 8, ["error"]),
|
1739
|
-
|
1740
|
-
|
1741
|
-
L(s) ? (y(),
|
1739
|
+
w("p", $n, [
|
1740
|
+
T(" For example, you could search for "),
|
1741
|
+
L(s) ? (y(), x(L(oe), {
|
1742
1742
|
key: 0,
|
1743
1743
|
to: "/search/stops/pittsburgh"
|
1744
1744
|
}, {
|
1745
|
-
default:
|
1746
|
-
|
1745
|
+
default: D(() => [
|
1746
|
+
T(" stops in Pittsburgh ")
|
1747
1747
|
]),
|
1748
1748
|
_: 1
|
1749
|
-
})) : (y(),
|
1749
|
+
})) : (y(), v("a", {
|
1750
1750
|
key: 1,
|
1751
1751
|
target: "_blank",
|
1752
1752
|
rel: "noreferrer",
|
1753
1753
|
href: `${r.baseUrlForRedirect}/search/stops/pittsburgh`
|
1754
|
-
}, " stops in Pittsburgh ", 8,
|
1755
|
-
|
1756
|
-
L(s) ? (y(),
|
1754
|
+
}, " stops in Pittsburgh ", 8, Nn)),
|
1755
|
+
T(" or "),
|
1756
|
+
L(s) ? (y(), x(L(oe), {
|
1757
1757
|
key: 2,
|
1758
1758
|
to: "/search/complaints/all"
|
1759
1759
|
}, {
|
1760
|
-
default:
|
1761
|
-
|
1760
|
+
default: D(() => [
|
1761
|
+
T(" complaints everywhere ")
|
1762
1762
|
]),
|
1763
1763
|
_: 1
|
1764
|
-
})) : (y(),
|
1764
|
+
})) : (y(), v("a", {
|
1765
1765
|
key: 3,
|
1766
1766
|
target: "_blank",
|
1767
1767
|
rel: "noreferrer",
|
1768
1768
|
href: `${r.baseUrlForRedirect}/search/complaints/all`
|
1769
|
-
}, " complaints everywhere ", 8,
|
1770
|
-
|
1769
|
+
}, " complaints everywhere ", 8, Dn)),
|
1770
|
+
T(" . ")
|
1771
1771
|
])
|
1772
1772
|
])
|
1773
1773
|
], 64));
|
1774
1774
|
}
|
1775
1775
|
});
|
1776
|
-
const
|
1776
|
+
const Cn = ["alt", "src"], Vn = /* @__PURE__ */ C({
|
1777
1777
|
__name: "TileIcon",
|
1778
1778
|
props: {
|
1779
1779
|
imgAltText: {},
|
1780
1780
|
imgSrc: {}
|
1781
1781
|
},
|
1782
1782
|
setup(e) {
|
1783
|
-
return (t, r) => (y(),
|
1783
|
+
return (t, r) => (y(), v("img", {
|
1784
1784
|
class: "pdap-tile-icon",
|
1785
1785
|
alt: t.imgAltText,
|
1786
1786
|
src: t.imgSrc
|
1787
|
-
}, null, 8,
|
1787
|
+
}, null, 8, Cn));
|
1788
|
+
}
|
1789
|
+
});
|
1790
|
+
var ne = /* @__PURE__ */ ((e) => (e.PRESS = "press", e.HOVER = "hover", e))(ne || {});
|
1791
|
+
const Tn = {
|
1792
|
+
beforeMount(e, t) {
|
1793
|
+
const r = e;
|
1794
|
+
r.clickOutsideEvent = function(a) {
|
1795
|
+
e === a.target || r.contains(a.target) || t.value(a);
|
1796
|
+
}, document.addEventListener("click", r.clickOutsideEvent), document.addEventListener("keyup", r.clickOutsideEvent);
|
1797
|
+
},
|
1798
|
+
unmounted(e) {
|
1799
|
+
e.clickOutsideEvent && (document.removeEventListener("click", e.clickOutsideEvent), document.removeEventListener("keyup", e.clickOutsideEvent));
|
1800
|
+
}
|
1801
|
+
}, xn = ["onKeydown"], In = ["aria-hidden"], Ve = "pdap-dropdown", Bn = /* @__PURE__ */ C({
|
1802
|
+
__name: "PdapDropdown",
|
1803
|
+
props: {
|
1804
|
+
defaultOpen: { type: Boolean, default: !1 },
|
1805
|
+
disabled: { type: Boolean, default: !1 },
|
1806
|
+
triggerOn: { default: ne.PRESS }
|
1807
|
+
},
|
1808
|
+
emits: ["update:open", "press"],
|
1809
|
+
setup(e, { emit: t }) {
|
1810
|
+
const r = e, n = t, a = N(null), s = N(null), u = N(r.defaultOpen), i = h(
|
1811
|
+
() => r.triggerOn === ne.HOVER
|
1812
|
+
);
|
1813
|
+
function l(o) {
|
1814
|
+
n("press", o), r.triggerOn === ne.PRESS && c();
|
1815
|
+
}
|
1816
|
+
const c = () => {
|
1817
|
+
r.disabled || (u.value = !u.value, n("update:open", u.value));
|
1818
|
+
};
|
1819
|
+
function M() {
|
1820
|
+
u.value = !0, n("update:open", !0);
|
1821
|
+
}
|
1822
|
+
function m() {
|
1823
|
+
u.value = !1, n("update:open", !1);
|
1824
|
+
}
|
1825
|
+
function j() {
|
1826
|
+
var f, S;
|
1827
|
+
if (!a.value)
|
1828
|
+
return;
|
1829
|
+
a.value.style.display = "flex", a.value.style.setProperty("max-height", "max-content");
|
1830
|
+
const o = a.value.scrollHeight;
|
1831
|
+
a.value.style.display = "none", a.value.style.removeProperty("max-height");
|
1832
|
+
const d = document == null ? void 0 : document.querySelector(":root"), g = (f = d == null ? void 0 : d.style) == null ? void 0 : f.getPropertyValue(
|
1833
|
+
"--dropdown-content-max-height"
|
1834
|
+
);
|
1835
|
+
Number((S = g == null ? void 0 : g.match(/\d+/)) == null ? void 0 : S.join("")) >= o || a.value && d && d.style.setProperty("--dropdown-content-max-height", `${o + 16}px`);
|
1836
|
+
}
|
1837
|
+
const p = {
|
1838
|
+
mouseenter: i.value ? M : void 0,
|
1839
|
+
focus: i.value ? M : void 0,
|
1840
|
+
focusin: i.value ? M : void 0,
|
1841
|
+
focusout: i.value ? m : void 0,
|
1842
|
+
mouseleave: i.value ? m : void 0,
|
1843
|
+
blur: i.value ? m : void 0
|
1844
|
+
};
|
1845
|
+
return Fe(() => {
|
1846
|
+
j();
|
1847
|
+
}), (o, d) => xe((y(), v("div", W({
|
1848
|
+
ref_key: "dropdownRef",
|
1849
|
+
ref: s,
|
1850
|
+
class: "pdap-dropdown",
|
1851
|
+
onKeydown: Ie(m, ["escape"])
|
1852
|
+
}, Lt(p, !0)), [
|
1853
|
+
H(L(We), {
|
1854
|
+
"aria-controls": Ve,
|
1855
|
+
"aria-expanded": u.value,
|
1856
|
+
disabled: o.disabled,
|
1857
|
+
"aria-haspopup": "true",
|
1858
|
+
intent: "tertiary",
|
1859
|
+
class: P({
|
1860
|
+
"pdap-dropdown-trigger": !0,
|
1861
|
+
"pointer-events-none": o.disabled,
|
1862
|
+
"cursor-not-allowed": o.disabled
|
1863
|
+
}),
|
1864
|
+
"data-test": "dropdown-trigger",
|
1865
|
+
onClick: me(l, ["prevent", "stop"]),
|
1866
|
+
onKeydown: Ie(me(l, ["prevent", "stop"]), ["enter", "space"])
|
1867
|
+
}, {
|
1868
|
+
default: D(() => [
|
1869
|
+
V(o.$slots, "trigger")
|
1870
|
+
]),
|
1871
|
+
_: 3
|
1872
|
+
}, 8, ["aria-expanded", "disabled", "class", "onClick", "onKeydown"]),
|
1873
|
+
H(Mt, {
|
1874
|
+
name: "dropdown",
|
1875
|
+
appear: ""
|
1876
|
+
}, {
|
1877
|
+
default: D(() => [
|
1878
|
+
xe(w("div", {
|
1879
|
+
id: Ve,
|
1880
|
+
ref_key: "contentRef",
|
1881
|
+
ref: a,
|
1882
|
+
"aria-hidden": !u.value,
|
1883
|
+
class: "pdap-dropdown-content",
|
1884
|
+
"data-test": "dropdown-content",
|
1885
|
+
role: "menu"
|
1886
|
+
}, [
|
1887
|
+
V(o.$slots, "content")
|
1888
|
+
], 8, In), [
|
1889
|
+
[gt, u.value]
|
1890
|
+
])
|
1891
|
+
]),
|
1892
|
+
_: 3
|
1893
|
+
})
|
1894
|
+
], 16, xn)), [
|
1895
|
+
[L(Tn), m]
|
1896
|
+
]);
|
1897
|
+
}
|
1898
|
+
});
|
1899
|
+
function Sn(e) {
|
1900
|
+
const t = [];
|
1901
|
+
for (const r of e.matched) {
|
1902
|
+
const { name: n, path: a, meta: s } = r, u = s.breadcrumbText ?? n;
|
1903
|
+
u && t.push({
|
1904
|
+
text: u,
|
1905
|
+
path: a,
|
1906
|
+
active: !1
|
1907
|
+
});
|
1908
|
+
}
|
1909
|
+
return t.length > 0 && (t[t.length - 1].active = !0), t;
|
1910
|
+
}
|
1911
|
+
const En = { "aria-label": "Breadcrumb" }, On = { key: 1 }, zn = /* @__PURE__ */ C({
|
1912
|
+
__name: "PdapBreadcrumbs",
|
1913
|
+
setup(e) {
|
1914
|
+
const t = jt(), r = h(() => Sn(t));
|
1915
|
+
return (n, a) => {
|
1916
|
+
const s = Be("router-link");
|
1917
|
+
return y(), v("nav", En, [
|
1918
|
+
H(pt, {
|
1919
|
+
class: "pdap-breadcrumbs",
|
1920
|
+
name: "pdap-breadcrumbs",
|
1921
|
+
tag: "ul"
|
1922
|
+
}, {
|
1923
|
+
default: D(() => [
|
1924
|
+
(y(!0), v(G, null, le(r.value, (u) => (y(), v("li", {
|
1925
|
+
key: u.text,
|
1926
|
+
class: P({ "is-active": u.active })
|
1927
|
+
}, [
|
1928
|
+
u.active ? (y(), v("span", On, z(u.text), 1)) : (y(), x(s, {
|
1929
|
+
key: 0,
|
1930
|
+
to: u.path
|
1931
|
+
}, {
|
1932
|
+
default: D(() => [
|
1933
|
+
T(z(u.text), 1)
|
1934
|
+
]),
|
1935
|
+
_: 2
|
1936
|
+
}, 1032, ["to"]))
|
1937
|
+
], 2))), 128))
|
1938
|
+
]),
|
1939
|
+
_: 1
|
1940
|
+
})
|
1941
|
+
]);
|
1942
|
+
};
|
1788
1943
|
}
|
1789
1944
|
});
|
1790
|
-
const
|
1945
|
+
const bn = (e, t) => {
|
1946
|
+
const r = e.__vccOpts || e;
|
1947
|
+
for (const [n, a] of t)
|
1948
|
+
r[n] = a;
|
1949
|
+
return r;
|
1950
|
+
}, Gn = /* @__PURE__ */ bn(zn, [["__scopeId", "data-v-91ca33c0"]]);
|
1951
|
+
const Fn = {
|
1791
1952
|
content: ["./src/**/*.vue", "./src/**/*.css"],
|
1792
1953
|
theme: {
|
1793
1954
|
// Nested within "extend" - extends tailwind theme defaults, only overrides properties named here
|
@@ -1866,17 +2027,21 @@ const Ta = {
|
|
1866
2027
|
}
|
1867
2028
|
};
|
1868
2029
|
export {
|
1869
|
-
|
1870
|
-
|
1871
|
-
|
1872
|
-
|
1873
|
-
|
1874
|
-
|
1875
|
-
|
1876
|
-
|
1877
|
-
|
1878
|
-
|
1879
|
-
|
1880
|
-
|
1881
|
-
|
2030
|
+
Gn as Breadcrumbs,
|
2031
|
+
We as Button,
|
2032
|
+
Bn as Dropdown,
|
2033
|
+
kn as FlexContainer,
|
2034
|
+
Yn as Footer,
|
2035
|
+
ln as Form,
|
2036
|
+
Pn as GridContainer,
|
2037
|
+
Qn as GridItem,
|
2038
|
+
Rn as Header,
|
2039
|
+
Xt as Input,
|
2040
|
+
mn as Nav,
|
2041
|
+
ne as PdapDropdownTriggerType,
|
2042
|
+
b as PdapInputTypes,
|
2043
|
+
Un as QuickSearchForm,
|
2044
|
+
Vn as TileIcon,
|
2045
|
+
Fn as tailwindConfig,
|
2046
|
+
Tn as vOnClickOutside
|
1882
2047
|
};
|