@vergelijkdirect/comparison-forms 2.1.1 → 2.1.2-VER-9366.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vue/{VdSearchableSelect-THqVGo_Q.js → VdSearchableSelect-DgfQaw3Q.js} +1 -1
- package/dist/vue/bike-CyTAgBYV.js +2 -0
- package/dist/vue/{bike.presenter-B9IE_Rs_.js → bike.presenter-DHdbAXwD.js} +4 -3
- package/dist/vue/{businessCar.presenter-DR-Ozf6B.js → businessCar.presenter-DozOFMtK.js} +5 -4
- package/dist/vue/businessLiability-BsIq3uMl.js +2 -0
- package/dist/vue/{businessLiability.presenter-8iyRbLgw.js → businessLiability.presenter-DS0d53aM.js} +4 -3
- package/dist/vue/car-CaqRWwGY.js +2 -0
- package/dist/vue/car-business-D3HQXsGj.js +2 -0
- package/dist/vue/{car.presenter-CE6OULN8.js → car.presenter-BWIqlpRG.js} +5 -4
- package/dist/vue/caravan-TAqyIweN.js +2 -0
- package/dist/vue/{caravan.presenter-CLA_3-8l.js → caravan.presenter-DPS3fFpt.js} +3 -2
- package/dist/vue/{company.schema-DStHJpGH.js → company.schema-b9EJY5TS.js} +1 -1
- package/dist/vue/comparison-forms.css +1 -1
- package/dist/vue/comparison-forms.d.ts +15 -0
- package/dist/vue/comparison-forms.js +34 -33
- package/dist/vue/house-DU-9pODQ.js +2 -0
- package/dist/vue/{house.presenter-CFYmkeST.js → house.presenter-Cgn7LsZx.js} +4 -3
- package/dist/vue/legal-D8EDXQlH.js +2 -0
- package/dist/vue/{legal.presenter-CKqqhKlJ.js → legal.presenter-BhVM1Wwq.js} +4 -3
- package/dist/vue/liability-BKvW4PO3.js +2 -0
- package/dist/vue/{liability.presenter-Dw2zIEih.js → liability.presenter-DjxChl9j.js} +4 -3
- package/dist/vue/loan-aOBxfvb7.js +2 -0
- package/dist/vue/{loan.presenter-CdNnI1mj.js → loan.presenter-FscPtbgm.js} +3 -2
- package/dist/vue/moped-C2rp2vBw.js +2 -0
- package/dist/vue/{moped.presenter-DcPy3zuH.js → moped.presenter-DihPM2IH.js} +5 -4
- package/dist/vue/motor-po-wFh35.js +2 -0
- package/dist/vue/{motor.presenter-DnVQ-ilL.js → motor.presenter-D6xf7eTD.js} +5 -4
- package/dist/vue/package-Csa1Krlo.js +2 -0
- package/dist/vue/{package.presenter-Do9gvW9P.js → package.presenter-fBd1bNoi.js} +4 -3
- package/dist/vue/pet-DsoXOxaC.js +2 -0
- package/dist/vue/{pet.presenter-Bf2V3qfP.js → pet.presenter-CaZbPxab.js} +3 -2
- package/dist/vue/travel-XHQ0eBDV.js +2 -0
- package/dist/vue/{travel.presenter-Aon0SVxf.js → travel.presenter-CC8xdY8p.js} +3 -2
- package/dist/vue/{useAddress-C-h1pGI5.js → useAddress-zTvmarFM.js} +1 -1
- package/dist/vue/{useLicensePlate-wAVrX9tr.js → useLicensePlate-D4EPRPEp.js} +1 -1
- package/dist/vue/{useValidator-B8ZuqyvJ.js → useValidator-DPW9o5Z8.js} +67 -53
- package/dist/wc/comparison-forms.css +1 -1
- package/dist/wc/comparison-forms.js +1948 -1918
- package/dist/wc-forms/{VdInput-CQMUZonZ.cjs → VdInput-nshDp-Tm.cjs} +1 -1
- package/dist/wc-forms/{VdPopover-B7iU4v7L.cjs → VdPopover-BZIgdj30.cjs} +1 -1
- package/dist/wc-forms/{VdRadioGroup-CliXOc0N.cjs → VdRadioGroup-DYrXw8Qm.cjs} +1 -1
- package/dist/wc-forms/{VdSearchableSelect-BOOYo1Cc.cjs → VdSearchableSelect-Bmc3-hsJ.cjs} +1 -1
- package/dist/wc-forms/{VdSelect-BsnfIWYl.cjs → VdSelect-BZARPe4v.cjs} +1 -1
- package/dist/wc-forms/bike.cjs +1 -1
- package/dist/wc-forms/{birthdate.schema-bGqk4rzX.cjs → birthdate.schema-4VhhOUGR.cjs} +1 -1
- package/dist/wc-forms/business-car.cjs +1 -1
- package/dist/wc-forms/business-liability.cjs +1 -1
- package/dist/wc-forms/car.cjs +1 -1
- package/dist/wc-forms/caravan.cjs +1 -1
- package/dist/wc-forms/{company.schema-BLoMUJDa.cjs → company.schema-CP8SRGqv.cjs} +1 -1
- package/dist/wc-forms/{familyComposition.schema-Uczfy7pt.cjs → familyComposition.schema-BjogJfTD.cjs} +1 -1
- package/dist/wc-forms/house.cjs +1 -1
- package/dist/wc-forms/{houseOwnedBuilding.model-mFWo0xXR.cjs → houseOwnedBuilding.model-6Vhf8cLT.cjs} +1 -1
- package/dist/wc-forms/legal.cjs +1 -1
- package/dist/wc-forms/liability.cjs +1 -1
- package/dist/wc-forms/loan.cjs +1 -1
- package/dist/wc-forms/moped.cjs +1 -1
- package/dist/wc-forms/motor.cjs +1 -1
- package/dist/wc-forms/package.cjs +1 -1
- package/dist/wc-forms/pet.cjs +1 -1
- package/dist/wc-forms/{rules-GF6hc_di.cjs → rules-DsZv-tRZ.cjs} +1 -1
- package/dist/wc-forms/travel.cjs +1 -1
- package/dist/wc-forms/{useAddress-DJ4aWwYs.cjs → useAddress-D_Lg4GDA.cjs} +1 -1
- package/dist/wc-forms/{useLicensePlate-98nreTI8.cjs → useLicensePlate-BwiakNOh.cjs} +1 -1
- package/dist/wc-forms/{useValidator-C2pny0oV.cjs → useValidator-Ctl7lZY6.cjs} +1 -1
- package/dist/wc-noitc/comparison-forms.css +1 -1
- package/dist/wc-noitc/comparison-forms.umd.cjs +2 -2
- package/package.json +2 -2
- package/dist/vue/bike-6sKFuz1o.js +0 -2
- package/dist/vue/businessLiability-w4xhGnik.js +0 -2
- package/dist/vue/car-B8G_AIyt.js +0 -2
- package/dist/vue/car-business-DMYPV4UK.js +0 -2
- package/dist/vue/caravan-ClGIypn_.js +0 -2
- package/dist/vue/house-DMlFFHks.js +0 -2
- package/dist/vue/legal-DlCmrgH2.js +0 -2
- package/dist/vue/liability-C6eVeyVd.js +0 -2
- package/dist/vue/loan-zhBF4CJ-.js +0 -2
- package/dist/vue/moped-BgEdFCRR.js +0 -2
- package/dist/vue/motor-O91czupe.js +0 -2
- package/dist/vue/package-CfGktfMo.js +0 -2
- package/dist/vue/pet-DUb7musC.js +0 -2
- package/dist/vue/travel-w0xAUioW.js +0 -2
|
@@ -220,21 +220,21 @@ function z(e) {
|
|
|
220
220
|
//#endregion
|
|
221
221
|
//#region node_modules/es-toolkit/dist/compat/_internal/isKey.mjs
|
|
222
222
|
var B = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, V = /^\w*$/;
|
|
223
|
-
function
|
|
223
|
+
function H(e, t) {
|
|
224
224
|
return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || z(e) ? !0 : typeof e == "string" && (V.test(e) || !B.test(e)) || t != null && Object.hasOwn(t, e);
|
|
225
225
|
}
|
|
226
226
|
//#endregion
|
|
227
227
|
//#region node_modules/es-toolkit/dist/compat/_internal/assignValue.mjs
|
|
228
|
-
var
|
|
228
|
+
var U = (e, t, n) => {
|
|
229
229
|
let r = e[t];
|
|
230
230
|
(!(Object.hasOwn(e, t) && O(r, n)) || n === void 0 && !(t in e)) && (e[t] = n);
|
|
231
231
|
};
|
|
232
232
|
//#endregion
|
|
233
233
|
//#region node_modules/es-toolkit/dist/compat/object/updateWith.mjs
|
|
234
|
-
function
|
|
234
|
+
function W(e, t, n, r) {
|
|
235
235
|
if (e == null && !I(e)) return e;
|
|
236
236
|
let i;
|
|
237
|
-
i =
|
|
237
|
+
i = H(t, e) ? [t] : Array.isArray(t) ? t : j(t);
|
|
238
238
|
let a = n(P(e, i)), o = e;
|
|
239
239
|
for (let t = 0; t < i.length && o != null; t++) {
|
|
240
240
|
let n = A(i[t]);
|
|
@@ -245,18 +245,18 @@ function te(e, t, n, r) {
|
|
|
245
245
|
let a = o[n], c = r?.(a, n, e);
|
|
246
246
|
s = c === void 0 ? I(a) ? a : R(i[t + 1]) ? [] : {} : c;
|
|
247
247
|
}
|
|
248
|
-
|
|
248
|
+
U(o, n, s), o = o[n];
|
|
249
249
|
}
|
|
250
250
|
return e;
|
|
251
251
|
}
|
|
252
252
|
//#endregion
|
|
253
253
|
//#region node_modules/es-toolkit/dist/compat/object/set.mjs
|
|
254
|
-
function
|
|
255
|
-
return
|
|
254
|
+
function G(e, t, n) {
|
|
255
|
+
return W(e, t, () => n, () => void 0);
|
|
256
256
|
}
|
|
257
257
|
//#endregion
|
|
258
258
|
//#region src/composables/useComparisonForm.ts
|
|
259
|
-
var
|
|
259
|
+
var K = {
|
|
260
260
|
title: "",
|
|
261
261
|
description: "",
|
|
262
262
|
banner: "",
|
|
@@ -265,22 +265,23 @@ var U = {
|
|
|
265
265
|
flat: !1,
|
|
266
266
|
fullWidth: !1,
|
|
267
267
|
submitLabel: "Vergelijken",
|
|
268
|
-
submitDisabled: !1
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
268
|
+
submitDisabled: !1,
|
|
269
|
+
hasAfmLicense: !0
|
|
270
|
+
}, q = Object.keys(K);
|
|
271
|
+
function J(e) {
|
|
272
|
+
return w(e, ...q);
|
|
272
273
|
}
|
|
273
274
|
//#endregion
|
|
274
275
|
//#region \0plugin-vue:export-helper
|
|
275
|
-
var
|
|
276
|
+
var ee = (e, t) => {
|
|
276
277
|
let n = e.__vccOpts || e;
|
|
277
278
|
for (let [e, r] of t) n[e] = r;
|
|
278
279
|
return n;
|
|
279
|
-
},
|
|
280
|
-
function
|
|
281
|
-
return p(), r("div",
|
|
280
|
+
}, te = {}, ne = { class: "vd-form__row" };
|
|
281
|
+
function re(e, t) {
|
|
282
|
+
return p(), r("div", ne, [g(e.$slots, "default")]);
|
|
282
283
|
}
|
|
283
|
-
var
|
|
284
|
+
var Y = /*#__PURE__*/ ee(te, [["render", re]]), X = /* @__PURE__ */ s({
|
|
284
285
|
__name: "VdFormCol",
|
|
285
286
|
props: {
|
|
286
287
|
span: { default: null },
|
|
@@ -295,18 +296,21 @@ var J = /*#__PURE__*/ W(G, [["render", q]]), Y = /* @__PURE__ */ s({
|
|
|
295
296
|
]);
|
|
296
297
|
return (e, t) => (p(), r("div", { class: f(i.value) }, [g(e.$slots, "default")], 2));
|
|
297
298
|
}
|
|
298
|
-
}),
|
|
299
|
+
}), ie = {
|
|
299
300
|
key: 0,
|
|
300
301
|
class: "vd-form__banner"
|
|
301
|
-
},
|
|
302
|
+
}, ae = ["innerHTML"], oe = {
|
|
302
303
|
key: 1,
|
|
303
304
|
class: "vd-form__header"
|
|
304
|
-
},
|
|
305
|
+
}, se = {
|
|
305
306
|
key: 0,
|
|
306
307
|
class: "vd-form__title"
|
|
307
|
-
},
|
|
308
|
+
}, ce = {
|
|
308
309
|
key: 1,
|
|
309
310
|
class: "vd-form__description"
|
|
311
|
+
}, le = {
|
|
312
|
+
key: 2,
|
|
313
|
+
class: "vd-afm"
|
|
310
314
|
}, ue = /* @__PURE__ */ s({
|
|
311
315
|
__name: "VdComparisonForm",
|
|
312
316
|
props: /*@__PURE__*/ l({
|
|
@@ -320,31 +324,32 @@ var J = /*#__PURE__*/ W(G, [["render", q]]), Y = /* @__PURE__ */ s({
|
|
|
320
324
|
flat: { type: Boolean },
|
|
321
325
|
fullWidth: { type: Boolean },
|
|
322
326
|
submitLabel: {},
|
|
323
|
-
submitDisabled: { type: Boolean }
|
|
327
|
+
submitDisabled: { type: Boolean },
|
|
328
|
+
hasAfmLicense: { type: Boolean }
|
|
324
329
|
}, {
|
|
325
|
-
...
|
|
330
|
+
...K,
|
|
326
331
|
actionSpan: 2,
|
|
327
332
|
actionMd: null
|
|
328
333
|
}),
|
|
329
334
|
emits: ["submit"],
|
|
330
|
-
setup(t, { emit:
|
|
331
|
-
let
|
|
335
|
+
setup(t, { emit: s }) {
|
|
336
|
+
let c = t, l = s, u = b(), d = e(() => [
|
|
332
337
|
"vd-form",
|
|
333
|
-
`vd-form--${
|
|
334
|
-
{ "vd-form--card":
|
|
335
|
-
{ "vd-form--flat":
|
|
336
|
-
{ "vd-form--full-width":
|
|
337
|
-
]),
|
|
338
|
-
|
|
338
|
+
`vd-form--${c.layout}`,
|
|
339
|
+
{ "vd-form--card": c.card },
|
|
340
|
+
{ "vd-form--flat": c.flat },
|
|
341
|
+
{ "vd-form--full-width": c.fullWidth }
|
|
342
|
+
]), m = (e) => {
|
|
343
|
+
l("submit", e);
|
|
339
344
|
};
|
|
340
|
-
return (e,
|
|
341
|
-
class: f(
|
|
342
|
-
onSubmit: S(
|
|
345
|
+
return (e, s) => (p(), r("form", {
|
|
346
|
+
class: f(d.value),
|
|
347
|
+
onSubmit: S(m, ["prevent", "stop"])
|
|
343
348
|
}, [
|
|
344
|
-
y(
|
|
345
|
-
y(
|
|
346
|
-
o(
|
|
347
|
-
default: x(() => [g(e.$slots, "default"), o(
|
|
349
|
+
y(u).banner || t.banner ? (p(), r("div", ie, [g(e.$slots, "banner", {}, () => [i("span", { innerHTML: t.banner }, null, 8, ae)])])) : n("", !0),
|
|
350
|
+
y(u).header || t.title || t.description ? (p(), r("div", oe, [g(e.$slots, "header", {}, () => [t.title ? (p(), r("h2", se, v(t.title), 1)) : n("", !0), t.description ? (p(), r("p", ce, v(t.description), 1)) : n("", !0)])])) : n("", !0),
|
|
351
|
+
o(Y, null, {
|
|
352
|
+
default: x(() => [g(e.$slots, "default"), o(X, {
|
|
348
353
|
class: "vd-form__action",
|
|
349
354
|
span: t.actionSpan,
|
|
350
355
|
md: t.actionMd
|
|
@@ -361,22 +366,31 @@ var J = /*#__PURE__*/ W(G, [["render", q]]), Y = /* @__PURE__ */ s({
|
|
|
361
366
|
_: 3
|
|
362
367
|
}, 8, ["span", "md"])]),
|
|
363
368
|
_: 3
|
|
364
|
-
})
|
|
369
|
+
}),
|
|
370
|
+
t.hasAfmLicense ? n("", !0) : (p(), r("div", le, [...s[0] ||= [i("p", { class: "vd-afm__text" }, [
|
|
371
|
+
a(" Bovenstaande vergelijkingsmodule beheerd door "),
|
|
372
|
+
i("a", {
|
|
373
|
+
href: "https://vergelijkdirect.com",
|
|
374
|
+
target: "_blank",
|
|
375
|
+
rel: "noopener noreferrer"
|
|
376
|
+
}, " Vergelijkdirect.com BV. "),
|
|
377
|
+
a(" Execution Only, geen advies. AFM-vergunning 12044269 ")
|
|
378
|
+
], -1)]]))
|
|
365
379
|
], 34));
|
|
366
380
|
}
|
|
367
|
-
}), de = (e) => e.replace(/\["(\d+)"\]/g, "[$1]"),
|
|
381
|
+
}), de = (e) => e.replace(/\["(\d+)"\]/g, "[$1]"), Z = (e, t) => `${e}${t}`, fe = (e) => (e.inner || []).reduce((e, t) => {
|
|
368
382
|
let n = de(t.path);
|
|
369
383
|
return e[n] || (e[n] = t.message), e;
|
|
370
|
-
}, {}),
|
|
384
|
+
}, {}), Q = (e) => {
|
|
371
385
|
if (!e.inner) throw e;
|
|
372
386
|
return fe(e);
|
|
373
|
-
},
|
|
387
|
+
}, pe = { isValidating: !1 }, me = {
|
|
374
388
|
validateAt: "blur",
|
|
375
389
|
strict: !0,
|
|
376
390
|
abortEarly: !1
|
|
377
|
-
}, $ = Symbol("useValidator"),
|
|
391
|
+
}, $ = Symbol("useValidator"), he = (t, n, r) => {
|
|
378
392
|
let i = {
|
|
379
|
-
...
|
|
393
|
+
...me,
|
|
380
394
|
...r
|
|
381
395
|
}, a = C(n), o = h(C(a)), s = h({}), c = h(!1), l = h(!1), u = h({}), f = (t) => e({
|
|
382
396
|
get: () => b(t),
|
|
@@ -397,7 +411,7 @@ var J = /*#__PURE__*/ W(G, [["render", q]]), Y = /* @__PURE__ */ s({
|
|
|
397
411
|
...t
|
|
398
412
|
};
|
|
399
413
|
}, b = (e) => P(o.value, e), x = (e, t) => {
|
|
400
|
-
|
|
414
|
+
G(o.value, e, t);
|
|
401
415
|
}, S = (e, t) => {
|
|
402
416
|
t === "blur" && M(e);
|
|
403
417
|
}, w = (e, t) => {
|
|
@@ -406,7 +420,7 @@ var J = /*#__PURE__*/ W(G, [["render", q]]), Y = /* @__PURE__ */ s({
|
|
|
406
420
|
t === "input" && d(() => M(e));
|
|
407
421
|
}, E = (e, t) => {
|
|
408
422
|
let n = t?.validateAt ?? i.validateAt;
|
|
409
|
-
return y(e,
|
|
423
|
+
return y(e, pe), [
|
|
410
424
|
f(e),
|
|
411
425
|
p(e, n),
|
|
412
426
|
g(e),
|
|
@@ -414,10 +428,10 @@ var J = /*#__PURE__*/ W(G, [["render", q]]), Y = /* @__PURE__ */ s({
|
|
|
414
428
|
];
|
|
415
429
|
}, D = (e) => {
|
|
416
430
|
let t = f(e), n = (t, n) => {
|
|
417
|
-
let r = n?.validateAt ?? i.validateAt, a =
|
|
431
|
+
let r = n?.validateAt ?? i.validateAt, a = Z(e, t);
|
|
418
432
|
return p(a, r).value;
|
|
419
433
|
}, r = (t) => {
|
|
420
|
-
let n =
|
|
434
|
+
let n = Z(e, t);
|
|
421
435
|
return F(n);
|
|
422
436
|
};
|
|
423
437
|
return {
|
|
@@ -425,7 +439,7 @@ var J = /*#__PURE__*/ W(G, [["render", q]]), Y = /* @__PURE__ */ s({
|
|
|
425
439
|
getAttrs: n,
|
|
426
440
|
getError: r,
|
|
427
441
|
getMeta: (t) => {
|
|
428
|
-
let n =
|
|
442
|
+
let n = Z(e, t);
|
|
429
443
|
return _(n);
|
|
430
444
|
},
|
|
431
445
|
arrayError: r(e),
|
|
@@ -473,7 +487,7 @@ var J = /*#__PURE__*/ W(G, [["render", q]]), Y = /* @__PURE__ */ s({
|
|
|
473
487
|
abortEarly: i.abortEarly
|
|
474
488
|
}), o.value;
|
|
475
489
|
} catch (e) {
|
|
476
|
-
let t =
|
|
490
|
+
let t = Q(e);
|
|
477
491
|
N(t);
|
|
478
492
|
return;
|
|
479
493
|
} finally {
|
|
@@ -487,7 +501,7 @@ var J = /*#__PURE__*/ W(G, [["render", q]]), Y = /* @__PURE__ */ s({
|
|
|
487
501
|
abortEarly: i.abortEarly
|
|
488
502
|
});
|
|
489
503
|
} catch (e) {
|
|
490
|
-
let t =
|
|
504
|
+
let t = Q(e);
|
|
491
505
|
N(t);
|
|
492
506
|
} finally {
|
|
493
507
|
y(e, { isValidating: !1 });
|
|
@@ -526,10 +540,10 @@ var J = /*#__PURE__*/ W(G, [["render", q]]), Y = /* @__PURE__ */ s({
|
|
|
526
540
|
validateField: M
|
|
527
541
|
};
|
|
528
542
|
return m($, V), V;
|
|
529
|
-
},
|
|
543
|
+
}, ge = () => {
|
|
530
544
|
let e = c($);
|
|
531
545
|
if (!e) throw Error("useValidatorContext must be used within a component that has called useValidator");
|
|
532
546
|
return e;
|
|
533
547
|
};
|
|
534
548
|
//#endregion
|
|
535
|
-
export {
|
|
549
|
+
export { Y as a, P as c, X as i, D as l, ge as n, K as o, ue as r, J as s, he as t, T as u };
|