@vergelijkdirect/comparison-forms 2.0.2-rc.0 → 2.1.0-ver-9053.0

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.
Files changed (77) hide show
  1. package/README.md +5 -5
  2. package/dist/vue/VdInput-CRb-iTiH.js +145 -0
  3. package/dist/vue/VdPopover-B78nVpNU.js +200 -0
  4. package/dist/vue/VdRadioGroup-D5kHcpsY.js +166 -0
  5. package/dist/vue/VdSearchableSelect-THqVGo_Q.js +209 -0
  6. package/dist/vue/VdSelect-Dv35x4sz.js +112 -0
  7. package/dist/vue/bike-BmAOIT7K.js +2 -0
  8. package/dist/vue/bike.presenter-B28PW7O5.js +1673 -0
  9. package/dist/vue/birthdate.schema-DX1aYftY.js +91 -0
  10. package/dist/vue/businessCar.presenter-DR-Ozf6B.js +121 -0
  11. package/dist/vue/businessLiability-w4xhGnik.js +2 -0
  12. package/dist/vue/businessLiability.presenter-8iyRbLgw.js +80 -0
  13. package/dist/vue/car-business-DMYPV4UK.js +2 -0
  14. package/dist/vue/car-pxn56jlK.js +2 -0
  15. package/dist/vue/car.presenter-CMGN_MtF.js +130 -0
  16. package/dist/vue/caravan-CuhGro4y.js +2 -0
  17. package/dist/vue/caravan.presenter-DCV4ltB7.js +157 -0
  18. package/dist/vue/company.schema-DStHJpGH.js +241 -0
  19. package/dist/vue/comparison-forms.d.ts +36 -35
  20. package/dist/vue/comparison-forms.js +119 -5590
  21. package/dist/vue/date.util-DjJZwKvn.js +24 -0
  22. package/dist/vue/familyComposition.enum-D26VYo_a.js +6 -0
  23. package/dist/vue/familyComposition.schema-A9W0CwZq.js +75 -0
  24. package/dist/vue/house-DJhbPxyX.js +2 -0
  25. package/dist/vue/house.presenter-C7k4TwbP.js +118 -0
  26. package/dist/vue/houseOwnedBuilding.model-DskEdrSG.js +14 -0
  27. package/dist/vue/itc-KSDsJZsI.js +10 -0
  28. package/dist/vue/legal-Ce2WzBp6.js +2 -0
  29. package/dist/vue/legal.presenter-Ddiovxkq.js +175 -0
  30. package/dist/vue/liability-NHH24ecQ.js +2 -0
  31. package/dist/vue/liability.presenter-gHGQxRPP.js +110 -0
  32. package/dist/vue/loan-C9dmM3Vm.js +2 -0
  33. package/dist/vue/loan.presenter-p24T0XvQ.js +198 -0
  34. package/dist/vue/messages-DfcG9Qfd.js +41 -0
  35. package/dist/vue/moped-CnYiLYBp.js +2 -0
  36. package/dist/vue/moped.presenter-C5TcsOIe.js +133 -0
  37. package/dist/vue/motor-DSFijIK7.js +2 -0
  38. package/dist/vue/motor.presenter-Chlott4j.js +130 -0
  39. package/dist/vue/package-TSBIFNzu.js +2 -0
  40. package/dist/vue/package.presenter-Bit_w4np.js +137 -0
  41. package/dist/vue/pet-DRap9f-q.js +2 -0
  42. package/dist/vue/pet.presenter-BrWNvh7j.js +170 -0
  43. package/dist/vue/rules-3BZkSj_K.js +13 -0
  44. package/dist/vue/travel-DB9sfL8A.js +2 -0
  45. package/dist/vue/travel.presenter-CVkNDJwI.js +108 -0
  46. package/dist/vue/useAddress-C-h1pGI5.js +245 -0
  47. package/dist/vue/useLicensePlate-wAVrX9tr.js +187 -0
  48. package/dist/vue/useValidator-B8ZuqyvJ.js +535 -0
  49. package/dist/vue/yesNo-BvJlCm7Y.js +6 -0
  50. package/dist/wc/comparison-forms.js +14922 -14424
  51. package/dist/wc-forms/bike.cjs +1 -1
  52. package/dist/wc-forms/{birthdate.schema-rpmbSDZH.cjs → birthdate.schema-C-y732mA.cjs} +1 -1
  53. package/dist/wc-forms/car.cjs +1 -1
  54. package/dist/wc-forms/caravan.cjs +1 -1
  55. package/dist/wc-forms/{familyComposition.schema-DW6scNvt.cjs → familyComposition.schema-gvSnx-ea.cjs} +1 -1
  56. package/dist/wc-forms/house.cjs +1 -1
  57. package/dist/wc-forms/houseOwnedBuilding.model-G9AqKTZo.cjs +1 -0
  58. package/dist/wc-forms/legal.cjs +1 -1
  59. package/dist/wc-forms/liability.cjs +1 -1
  60. package/dist/wc-forms/loan.cjs +1 -1
  61. package/dist/wc-forms/{messages-stJTqN-x.cjs → messages-CX8jVyEo.cjs} +1 -1
  62. package/dist/wc-forms/moped.cjs +1 -1
  63. package/dist/wc-forms/motor.cjs +1 -1
  64. package/dist/wc-forms/package.cjs +1 -1
  65. package/dist/wc-forms/pet.cjs +1 -1
  66. package/dist/wc-forms/travel.cjs +1 -1
  67. package/dist/wc-noitc/comparison-forms.umd.cjs +3 -3
  68. package/package.json +1 -1
  69. package/dist/client/.vite/ssr-manifest.json +0 -600
  70. package/dist/client/assets/index-6Enzr9rU.css +0 -4
  71. package/dist/client/assets/index-6Enzr9rU.css.br +0 -0
  72. package/dist/client/assets/index-DUchBxEo.js +0 -57
  73. package/dist/client/assets/index-DUchBxEo.js.br +0 -0
  74. package/dist/client/index.html +0 -15
  75. package/dist/server/entry-server.js +0 -9981
  76. package/dist/server/entry-server.js.br +0 -0
  77. package/dist/wc-forms/houseOwnedBuilding.model-DgIQ2pQN.cjs +0 -1
@@ -0,0 +1,209 @@
1
+ import { c as e } from "./useValidator-B8ZuqyvJ.js";
2
+ import { Fragment as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, createVNode as c, defineComponent as l, mergeModels as u, mergeProps as d, normalizeClass as f, openBlock as p, renderList as m, renderSlot as h, toDisplayString as g, unref as _, useId as v, useModel as y, useSlots as b, withCtx as x } from "vue";
3
+ import { ComboboxCancel as S, ComboboxContent as C, ComboboxEmpty as w, ComboboxInput as T, ComboboxItem as E, ComboboxItemIndicator as D, ComboboxRoot as O, ComboboxTrigger as k, ComboboxViewport as A, ComboboxVirtualizer as j, Label as ee, useForwardProps as te } from "reka-ui";
4
+ import { isEqual as ne } from "es-toolkit";
5
+ import { reactivePick as re } from "@vueuse/core";
6
+ //#region src/components/ui/VdSearchableSelect.vue?vue&type=script&setup=true&lang.ts
7
+ var ie = {
8
+ key: 0,
9
+ class: "vd-field__asterisk"
10
+ }, ae = {
11
+ key: 1,
12
+ class: "vd-field__popover"
13
+ }, M = { class: "vd-field__wrapper" }, N = {
14
+ key: 1,
15
+ class: "vd-field__loader-circle"
16
+ }, P = {
17
+ key: 0,
18
+ class: "vd-field__message vd-field__message--error"
19
+ }, F = {
20
+ key: 1,
21
+ class: "vd-field__message vd-field__message--information"
22
+ }, I = /* @__PURE__ */ l({
23
+ __name: "VdSearchableSelect",
24
+ props: /*@__PURE__*/ u({
25
+ id: {},
26
+ name: {},
27
+ label: {},
28
+ placeholder: { default: "Typ of selecteer" },
29
+ options: {},
30
+ labelKey: { default: "title" },
31
+ valueKey: { default: "value" },
32
+ by: {},
33
+ errorMessage: {},
34
+ disabled: { type: Boolean },
35
+ required: { type: Boolean },
36
+ verified: { type: Boolean },
37
+ infoMessage: {},
38
+ loading: {
39
+ type: Boolean,
40
+ default: !1
41
+ },
42
+ noResultsText: { default: "We hebben geen resultaten gevonden. Controleer de spelling of kies een optie uit de lijst." },
43
+ ignoreFilter: { type: Boolean },
44
+ displayValue: {},
45
+ clearable: {
46
+ type: Boolean,
47
+ default: !1
48
+ },
49
+ icon: {},
50
+ virtual: {
51
+ type: Boolean,
52
+ default: !1
53
+ },
54
+ estimateSize: { default: 40 },
55
+ overscan: { default: 10 }
56
+ }, {
57
+ modelValue: {},
58
+ modelModifiers: {},
59
+ open: {
60
+ type: Boolean,
61
+ default: !1
62
+ },
63
+ openModifiers: {},
64
+ searchTerm: { default: "" },
65
+ searchTermModifiers: {}
66
+ }),
67
+ emits: /*@__PURE__*/ u([
68
+ "blur",
69
+ "select",
70
+ "clear",
71
+ "search"
72
+ ], [
73
+ "update:modelValue",
74
+ "update:open",
75
+ "update:searchTerm"
76
+ ]),
77
+ setup(l, { emit: u }) {
78
+ let I = l, L = te(re(I, "name", "disabled", "by", "ignoreFilter")), R = y(l, "modelValue"), z = y(l, "open"), B = y(l, "searchTerm"), V = u, H = b(), U = I.id ?? v(), W = n(() => !!I.icon || !!H.icon), G = (e) => typeof e == "object" && !!e, K = (t) => G(t) ? e(t, I.labelKey) ?? t.title ?? "" : String(t), q = (t) => G(t) ? I.valueKey === null ? t : e(t, I.valueKey) : t, J = (e) => G(e) ? e.disabled : void 0, Y = (t, n) => t === void 0 || n === void 0 ? !1 : !G(t) || !G(n) ? t === n : typeof I.by == "function" ? I.by(t, n) : typeof I.by == "string" ? e(t, I.by) === e(n, I.by) : ne(t, n), X = (e) => e == null || e === "", Z = n(() => !X(R.value)), Q = n(() => I.errorMessage ? "error" : Z.value && I.verified && !I.loading ? "verified" : "default"), oe = (e) => {
79
+ if (X(e)) return "";
80
+ if (I.displayValue) return I.displayValue(e);
81
+ let t = I.options.find((t) => Y(q(t), e));
82
+ return K(t ?? e);
83
+ }, $ = (e) => {
84
+ V("select", e);
85
+ }, se = () => {
86
+ R.value = void 0, V("clear");
87
+ };
88
+ return (e, n) => (p(), r(_(O), d({
89
+ modelValue: R.value,
90
+ "onUpdate:modelValue": n[3] ||= (e) => R.value = e,
91
+ open: z.value,
92
+ "onUpdate:open": n[4] ||= (e) => z.value = e,
93
+ class: "vd-field",
94
+ "open-on-click": "",
95
+ "open-on-focus": ""
96
+ }, _(L)), {
97
+ default: x(() => [
98
+ o("div", { class: f(["vd-field__label-wrapper", { "vd-field__label-wrapper--disabled": l.disabled }]) }, [l.label || H.label ? (p(), r(_(ee), {
99
+ key: 0,
100
+ for: _(U),
101
+ class: "vd-field__label"
102
+ }, {
103
+ default: x(() => [o("span", null, [h(e.$slots, "label", {}, () => [s(g(l.label), 1)]), l.required ? (p(), a("span", ie, "*")) : i("", !0)])]),
104
+ _: 3
105
+ }, 8, ["for"])) : i("", !0), H.popover ? (p(), a("span", ae, [h(e.$slots, "popover")])) : i("", !0)], 2),
106
+ o("div", M, [
107
+ c(_(T), {
108
+ id: _(U),
109
+ modelValue: B.value,
110
+ "onUpdate:modelValue": n[0] ||= (e) => B.value = e,
111
+ "display-value": oe,
112
+ placeholder: l.placeholder,
113
+ class: f(["vd-field__input vd-field__input--icon-right", [`vd-field__input--${Q.value}`, { "vd-field__input--icon-left": W.value }]]),
114
+ onInput: n[1] ||= (e) => V("search", e.target.value),
115
+ onBlur: n[2] ||= (e) => V("blur", e)
116
+ }, null, 8, [
117
+ "id",
118
+ "modelValue",
119
+ "placeholder",
120
+ "class"
121
+ ]),
122
+ W.value ? (p(), a("span", {
123
+ key: 0,
124
+ class: f(["vd-field__icon vd-field__icon--left", { "vd-field__icon--disabled": l.disabled }])
125
+ }, [h(e.$slots, "icon", {}, () => [o("i", { class: f(l.icon) }, null, 2)])], 2)) : i("", !0),
126
+ l.loading ? (p(), a("div", N)) : l.clearable && Z.value ? (p(), r(_(S), {
127
+ key: 2,
128
+ as: "span",
129
+ class: "vd-field__icon",
130
+ onClick: se
131
+ }, {
132
+ default: x(() => [...n[5] ||= [o("i", { class: "far fa-times vd-field__icon--clickable" }, null, -1)]]),
133
+ _: 1
134
+ })) : (p(), r(_(k), {
135
+ key: 3,
136
+ as: "span",
137
+ class: "vd-field__icon"
138
+ }, {
139
+ default: x(() => [o("i", { class: f(z.value ? "far fa-chevron-up" : "far fa-chevron-down") }, null, 2)]),
140
+ _: 1
141
+ })),
142
+ c(_(C), { class: "vd-combobox" }, {
143
+ default: x(() => [c(_(A), { class: "vd-combobox__list" }, {
144
+ default: x(() => [l.virtual ? (p(), r(_(j), {
145
+ key: 0,
146
+ options: l.options,
147
+ "estimate-size": l.estimateSize,
148
+ overscan: l.overscan,
149
+ "text-content": K
150
+ }, {
151
+ default: x(({ option: t }) => [c(_(E), {
152
+ value: q(t),
153
+ "text-value": K(t),
154
+ disabled: J(t),
155
+ class: "vd-combobox__item",
156
+ onSelect: (e) => $(q(t))
157
+ }, {
158
+ default: x(() => [h(e.$slots, "item", { option: t }, () => [s(g(K(t)), 1)]), c(_(D), { class: "vd-combobox__check" }, {
159
+ default: x(() => [...n[6] ||= [o("i", { class: "far fa-check" }, null, -1)]]),
160
+ _: 1
161
+ })]),
162
+ _: 2
163
+ }, 1032, [
164
+ "value",
165
+ "text-value",
166
+ "disabled",
167
+ "onSelect"
168
+ ])]),
169
+ _: 3
170
+ }, 8, [
171
+ "options",
172
+ "estimate-size",
173
+ "overscan"
174
+ ])) : (p(!0), a(t, { key: 1 }, m(l.options, (t, i) => (p(), r(_(E), {
175
+ key: i,
176
+ value: q(t),
177
+ "text-value": K(t),
178
+ disabled: J(t),
179
+ class: "vd-combobox__item",
180
+ onSelect: (e) => $(q(t))
181
+ }, {
182
+ default: x(() => [h(e.$slots, "item", { option: t }, () => [s(g(K(t)), 1)]), c(_(D), { class: "vd-combobox__check" }, {
183
+ default: x(() => [...n[7] ||= [o("i", { class: "far fa-check" }, null, -1)]]),
184
+ _: 1
185
+ })]),
186
+ _: 2
187
+ }, 1032, [
188
+ "value",
189
+ "text-value",
190
+ "disabled",
191
+ "onSelect"
192
+ ]))), 128)), c(_(w), { class: "vd-combobox__empty" }, {
193
+ default: x(() => [s(g(l.noResultsText), 1)]),
194
+ _: 1
195
+ })]),
196
+ _: 3
197
+ })]),
198
+ _: 3
199
+ })
200
+ ]),
201
+ Q.value === "error" || H.errorMessage ? (p(), a("div", P, [h(e.$slots, "errorMessage", {}, () => [n[8] ||= o("i", { class: "fas fa-exclamation-circle vd-field__message-icon" }, null, -1), s(" " + g(l.errorMessage), 1)])])) : i("", !0),
202
+ l.infoMessage || H.information ? (p(), a("div", F, [h(e.$slots, "information", {}, () => [n[9] ||= o("i", { class: "fas fa-info-circle vd-field__message-icon" }, null, -1), s(" " + g(l.infoMessage), 1)])])) : i("", !0)
203
+ ]),
204
+ _: 3
205
+ }, 16, ["modelValue", "open"]));
206
+ }
207
+ });
208
+ //#endregion
209
+ export { I as t };
@@ -0,0 +1,112 @@
1
+ import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, defineComponent as s, mergeModels as c, normalizeClass as l, openBlock as u, ref as d, renderList as f, renderSlot as p, toDisplayString as m, unref as h, useId as g, useModel as _, useSlots as v, vModelSelect as y, withCtx as b, withDirectives as x } from "vue";
2
+ import { Label as S } from "reka-ui";
3
+ //#region src/components/ui/VdSelect.vue?vue&type=script&setup=true&lang.ts
4
+ var C = { class: "vd-field" }, w = {
5
+ key: 0,
6
+ class: "vd-field__asterisk"
7
+ }, T = {
8
+ key: 1,
9
+ class: "vd-field__popover"
10
+ }, E = { class: "vd-field__wrapper" }, D = [
11
+ "id",
12
+ "name",
13
+ "disabled"
14
+ ], O = {
15
+ key: 0,
16
+ value: "",
17
+ disabled: "",
18
+ selected: ""
19
+ }, k = [
20
+ "value",
21
+ "selected",
22
+ "disabled"
23
+ ], A = {
24
+ key: 0,
25
+ class: "vd-field__icon-and-loader"
26
+ }, j = {
27
+ key: 0,
28
+ class: "vd-field__message vd-field__message--error"
29
+ }, M = {
30
+ key: 1,
31
+ class: "vd-field__message vd-field__message--information"
32
+ }, N = /* @__PURE__ */ s({
33
+ __name: "VdSelect",
34
+ props: /*@__PURE__*/ c({
35
+ id: { default: null },
36
+ name: {},
37
+ label: { default: "" },
38
+ placeholder: { default: "Maak je keuze" },
39
+ options: {},
40
+ errorMessage: { default: null },
41
+ disabled: {
42
+ type: Boolean,
43
+ default: !1
44
+ },
45
+ required: {
46
+ type: Boolean,
47
+ default: !0
48
+ },
49
+ verified: {
50
+ type: Boolean,
51
+ default: !1
52
+ },
53
+ infoMessage: { default: "" },
54
+ loading: {
55
+ type: Boolean,
56
+ default: !1
57
+ }
58
+ }, {
59
+ modelValue: { required: !0 },
60
+ modelModifiers: {}
61
+ }),
62
+ emits: /*@__PURE__*/ c(["blur", "select"], ["update:modelValue"]),
63
+ setup(s, { emit: c }) {
64
+ let N = s, P = _(s, "modelValue"), F = c, I = v(), L = N.id ?? g(), R = t({
65
+ get: () => P.value ?? "",
66
+ set: (e) => {
67
+ P.value = e === "" ? null : e;
68
+ }
69
+ }), z = d(!0), B = t(() => !N.errorMessage && N.verified && !N.disabled && !N.loading), V = t(() => !N.errorMessage && !B.value), H = t(() => !!N.errorMessage), U = () => `vd-field__select--placeholder-${!P.value && z.value ? "shown" : "hidden"}`, W = (e) => {
70
+ F("select", e.target.value), z.value = !1;
71
+ }, G = (e) => {
72
+ F("blur", e.target.value);
73
+ };
74
+ return (t, c) => (u(), i("div", C, [
75
+ a("div", { class: l(["vd-field__label-wrapper", { "vd-field__label-wrapper--disabled": s.disabled }]) }, [s.label || h(I).label ? (u(), n(h(S), {
76
+ key: 0,
77
+ for: h(L),
78
+ class: "vd-field__label"
79
+ }, {
80
+ default: b(() => [a("span", null, [p(t.$slots, "label", {}, () => [o(m(s.label), 1)]), s.required ? (u(), i("span", w, "*")) : r("", !0)])]),
81
+ _: 3
82
+ }, 8, ["for"])) : r("", !0), h(I).popover ? (u(), i("span", T, [p(t.$slots, "popover")])) : r("", !0)], 2),
83
+ a("div", E, [x(a("select", {
84
+ id: h(L),
85
+ "onUpdate:modelValue": c[0] ||= (e) => R.value = e,
86
+ name: s.name,
87
+ disabled: s.disabled,
88
+ class: l(["vd-field__input vd-field__select", [U(), {
89
+ "vd-field__input--error": H.value,
90
+ "vd-field__input--verified": B.value,
91
+ "vd-field__input--default": V.value,
92
+ "vd-field__select--placeholder-with-loader-and-icon-shown": s.loading
93
+ }]]),
94
+ onChange: W,
95
+ onBlur: G
96
+ }, [s.placeholder ? (u(), i("option", O, m(s.placeholder), 1)) : r("", !0), (u(!0), i(e, null, f(s.options, (e, t) => (u(), i("option", {
97
+ key: e.value + "_" + t,
98
+ value: e.value,
99
+ selected: e.selected || !1,
100
+ disabled: e.disabled || !1
101
+ }, m(e.title), 9, k))), 128))], 42, D), [[y, R.value]]), s.loading ? (u(), i("div", A, [...c[1] ||= [a("div", { class: "vd-field__loader-circle vd-field__loader-circle--and-icon" }, null, -1), a("span", { class: "vd-field__icon vd-field__icon--with-loader" }, [a("i", { class: "fas vd-field__select-icon--with-loader" })], -1)]])) : (u(), n(h(S), {
102
+ key: 1,
103
+ for: h(L),
104
+ class: "vd-field__select-icon"
105
+ }, null, 8, ["for"]))]),
106
+ H.value || h(I).errorMessage ? (u(), i("div", j, [p(t.$slots, "errorMessage", {}, () => [c[2] ||= a("i", { class: "fas fa-exclamation-circle vd-field__message-icon" }, null, -1), o(" " + m(s.errorMessage), 1)])])) : r("", !0),
107
+ s.infoMessage || h(I).information ? (u(), i("div", M, [p(t.$slots, "information", {}, () => [c[3] ||= a("i", { class: "fas fa-info-circle vd-field__message-icon" }, null, -1), o(" " + m(s.infoMessage), 1)])])) : r("", !0)
108
+ ]));
109
+ }
110
+ });
111
+ //#endregion
112
+ export { N as t };
@@ -0,0 +1,2 @@
1
+ import { n as e, t } from "./bike.presenter-B28PW7O5.js";
2
+ export { e as Form, t as presenter };