@vergelijkdirect/comparison-forms 1.2.4 → 1.2.6-rc.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.
|
@@ -22400,7 +22400,7 @@ const Cp = (...t) => (e) => t.reduce((r, n) => n(r), e), jA = {
|
|
|
22400
22400
|
};
|
|
22401
22401
|
var wg = function() {
|
|
22402
22402
|
var e = this, r = e._self._c;
|
|
22403
|
-
return r("div", { staticClass: "multiselect", class: { "multiselect--active": e.isOpen, "multiselect--disabled": e.disabled, "multiselect--above": e.isAbove, "multiselect--has-options-group": e.hasOptionGroup }, attrs: { tabindex: e.searchable ? -1 : e.tabindex, role: "combobox", "aria-owns": "listbox-" + e.id }, on: { focus: function(n) {
|
|
22403
|
+
return r("div", { staticClass: "vd-multiselect", class: { "multiselect--active": e.isOpen, "multiselect--disabled": e.disabled, "multiselect--above": e.isAbove, "multiselect--has-options-group": e.hasOptionGroup }, attrs: { tabindex: e.searchable ? -1 : e.tabindex, role: "combobox", "aria-owns": "listbox-" + e.id }, on: { focus: function(n) {
|
|
22404
22404
|
return e.activate();
|
|
22405
22405
|
}, blur: function(n) {
|
|
22406
22406
|
e.searchable || e.deactivate();
|
|
@@ -22413,24 +22413,24 @@ var wg = function() {
|
|
|
22413
22413
|
}, keyup: function(n) {
|
|
22414
22414
|
return !n.type.indexOf("key") && e._k(n.keyCode, "esc", 27, n.key, ["Esc", "Escape"]) ? null : e.deactivate();
|
|
22415
22415
|
} } }, [e._t("caret", function() {
|
|
22416
|
-
return [r("div", { staticClass: "multiselect__select", on: { mousedown: function(n) {
|
|
22416
|
+
return [r("div", { staticClass: "vd-multiselect__select", on: { mousedown: function(n) {
|
|
22417
22417
|
return n.preventDefault(), n.stopPropagation(), e.toggle();
|
|
22418
22418
|
} } })];
|
|
22419
|
-
}, { toggle: e.toggle }), e._t("clear", null, { search: e.search }), r("div", { ref: "tags", staticClass: "multiselect__tags" }, [e._t("selection", function() {
|
|
22420
|
-
return [r("div", { directives: [{ name: "show", rawName: "v-show", value: e.visibleValues.length > 0, expression: "visibleValues.length > 0" }], staticClass: "multiselect__tags-wrap" }, [e._l(e.visibleValues, function(n, a) {
|
|
22419
|
+
}, { toggle: e.toggle }), e._t("clear", null, { search: e.search }), r("div", { ref: "tags", staticClass: "vd-multiselect__tags" }, [e._t("selection", function() {
|
|
22420
|
+
return [r("div", { directives: [{ name: "show", rawName: "v-show", value: e.visibleValues.length > 0, expression: "visibleValues.length > 0" }], staticClass: "vd-multiselect__tags-wrap" }, [e._l(e.visibleValues, function(n, a) {
|
|
22421
22421
|
return [e._t("tag", function() {
|
|
22422
|
-
return [r("span", { key: a, staticClass: "multiselect__tag" }, [r("span", { domProps: { textContent: e._s(e.getOptionLabel(n)) } }), r("i", { staticClass: "multiselect__tag-icon", attrs: { tabindex: "1" }, on: { keypress: function(i) {
|
|
22422
|
+
return [r("span", { key: a, staticClass: "vd-multiselect__tag" }, [r("span", { domProps: { textContent: e._s(e.getOptionLabel(n)) } }), r("i", { staticClass: "vd-multiselect__tag-icon", attrs: { tabindex: "1" }, on: { keypress: function(i) {
|
|
22423
22423
|
return !i.type.indexOf("key") && e._k(i.keyCode, "enter", 13, i.key, "Enter") ? null : (i.preventDefault(), e.removeElement(n));
|
|
22424
22424
|
}, mousedown: function(i) {
|
|
22425
22425
|
return i.preventDefault(), e.removeElement(n);
|
|
22426
22426
|
} } })])];
|
|
22427
22427
|
}, { option: n, search: e.search, remove: e.removeElement })];
|
|
22428
22428
|
})], 2), e.internalValue && e.internalValue.length > e.limit ? [e._t("limit", function() {
|
|
22429
|
-
return [r("strong", { staticClass: "multiselect__strong", domProps: { textContent: e._s(e.limitText(e.internalValue.length - e.limit)) } })];
|
|
22429
|
+
return [r("strong", { staticClass: "vd-multiselect__strong", domProps: { textContent: e._s(e.limitText(e.internalValue.length - e.limit)) } })];
|
|
22430
22430
|
})] : e._e()];
|
|
22431
|
-
}, { search: e.search, remove: e.removeElement, values: e.visibleValues, isOpen: e.isOpen }), r("transition", { attrs: { name: "multiselect__loading" } }, [e._t("loading", function() {
|
|
22432
|
-
return [r("div", { directives: [{ name: "show", rawName: "v-show", value: e.loading, expression: "loading" }], staticClass: "multiselect__spinner" })];
|
|
22433
|
-
})], 2), e.searchable ? r("input", { ref: "search", staticClass: "multiselect__input", style: e.inputStyle, attrs: { name: e.name, id: e.id, type: "text", autocomplete: "off", spellcheck: "false", placeholder: e.placeholder, disabled: e.disabled, tabindex: e.tabindex, "aria-controls": "listbox-" + e.id }, domProps: { value: e.search }, on: { input: function(n) {
|
|
22431
|
+
}, { search: e.search, remove: e.removeElement, values: e.visibleValues, isOpen: e.isOpen }), r("transition", { attrs: { name: "vd-multiselect__loading" } }, [e._t("loading", function() {
|
|
22432
|
+
return [r("div", { directives: [{ name: "show", rawName: "v-show", value: e.loading, expression: "loading" }], staticClass: "vd-multiselect__spinner" })];
|
|
22433
|
+
})], 2), e.searchable ? r("input", { ref: "search", staticClass: "vd-multiselect__input", style: e.inputStyle, attrs: { name: e.name, id: e.id, type: "text", autocomplete: "off", spellcheck: "false", placeholder: e.placeholder, disabled: e.disabled, tabindex: e.tabindex, "aria-controls": "listbox-" + e.id }, domProps: { value: e.search }, on: { input: function(n) {
|
|
22434
22434
|
return e.updateSearch(n.target.value);
|
|
22435
22435
|
}, focus: function(n) {
|
|
22436
22436
|
return n.preventDefault(), e.activate();
|
|
@@ -22446,28 +22446,28 @@ var wg = function() {
|
|
|
22446
22446
|
return !n.type.indexOf("key") && e._k(n.keyCode, "delete", [8, 46], n.key, ["Backspace", "Delete", "Del"]) ? null : (n.stopPropagation(), e.removeLastElement());
|
|
22447
22447
|
}], keypress: function(n) {
|
|
22448
22448
|
return !n.type.indexOf("key") && e._k(n.keyCode, "enter", 13, n.key, "Enter") || (n.preventDefault(), n.stopPropagation(), n.target !== n.currentTarget) ? null : e.addPointerElement(n);
|
|
22449
|
-
} } }) : e._e(), e.isSingleLabelVisible ? r("span", { staticClass: "multiselect__single", on: { mousedown: function(n) {
|
|
22449
|
+
} } }) : e._e(), e.isSingleLabelVisible ? r("span", { staticClass: "vd-multiselect__single", on: { mousedown: function(n) {
|
|
22450
22450
|
return n.preventDefault(), e.toggle.apply(null, arguments);
|
|
22451
22451
|
} } }, [e._t("singleLabel", function() {
|
|
22452
22452
|
return [[e._v(e._s(e.currentOptionLabel))]];
|
|
22453
|
-
}, { option: e.singleValue })], 2) : e._e(), e.isPlaceholderVisible ? r("span", { staticClass: "multiselect__placeholder", on: { mousedown: function(n) {
|
|
22453
|
+
}, { option: e.singleValue })], 2) : e._e(), e.isPlaceholderVisible ? r("span", { staticClass: "vd-multiselect__placeholder", on: { mousedown: function(n) {
|
|
22454
22454
|
return n.preventDefault(), e.toggle.apply(null, arguments);
|
|
22455
22455
|
} } }, [e._t("placeholder", function() {
|
|
22456
22456
|
return [e._v(" " + e._s(e.placeholder) + " ")];
|
|
22457
|
-
})], 2) : e._e()], 2), r("transition", { attrs: { name: "multiselect" } }, [r("div", { directives: [{ name: "show", rawName: "v-show", value: e.isOpen && !e.loading, expression: "isOpen && !loading" }], staticClass: "multiselect__tab-wrapper", style: {
|
|
22457
|
+
})], 2) : e._e()], 2), r("transition", { attrs: { name: "multiselect" } }, [r("div", { directives: [{ name: "show", rawName: "v-show", value: e.isOpen && !e.loading, expression: "isOpen && !loading" }], staticClass: "vd-multiselect__tab-wrapper", style: {
|
|
22458
22458
|
borderColor: e.filteredOptions.length !== 0 || e.options.length !== 0 || e.showNoResults && e.filteredOptions.length === 0 && e.search && !e.loading || e.showNoOptions && (e.options.length === 0 || e.hasOptionGroup === !0 && e.filteredOptions.length === 0) && !e.search && !e.loading ? "" : "transparent"
|
|
22459
|
-
} }, [r("div", { ref: "list", staticClass: "multiselect__content-wrapper", style: { maxHeight: 103 * 5 + "px" }, attrs: { tabindex: "-1" }, on: { focus: e.activate, mousedown: function(n) {
|
|
22459
|
+
} }, [r("div", { ref: "list", staticClass: "vd-multiselect__content-wrapper", style: { maxHeight: 103 * 5 + "px" }, attrs: { tabindex: "-1" }, on: { focus: e.activate, mousedown: function(n) {
|
|
22460
22460
|
n.preventDefault();
|
|
22461
|
-
} } }, [r("ul", { staticClass: "multiselect__content", style: e.contentStyle, attrs: { role: "listbox", id: "listbox-" + e.id } }, [e._t("beforeList"), e.multiple && e.max === e.internalValue.length ? r("li", [r("span", { staticClass: "multiselect__option" }, [e._t("maxElements", function() {
|
|
22461
|
+
} } }, [r("ul", { staticClass: "vd-multiselect__content", style: e.contentStyle, attrs: { role: "listbox", id: "listbox-" + e.id } }, [e._t("beforeList"), e.multiple && e.max === e.internalValue.length ? r("li", [r("span", { staticClass: "vd-multiselect__option" }, [e._t("maxElements", function() {
|
|
22462
22462
|
return [e._v("Maximum of " + e._s(e.max) + " options selected. First remove a selected option to select another.")];
|
|
22463
22463
|
})], 2)]) : e._e(), !e.max || e.internalValue.length < e.max ? e._l(e.filteredOptions, function(n, a) {
|
|
22464
|
-
return r("li", { key: a, staticClass: "multiselect__element", attrs: { id: e.id + "-" + a, role: n && (n.$isLabel || n.$isDisabled) ? null : "option" } }, [n && (n.$isLabel || n.$isDisabled) ? e._e() : r("span", { staticClass: "multiselect__option", class: e.optionHighlight(a, n), attrs: { "data-select": n && n.isTag ? e.tagPlaceholder : e.selectLabelText, "data-selected": e.selectedLabelText, "data-deselect": e.deselectLabelText }, on: { click: function(i) {
|
|
22464
|
+
return r("li", { key: a, staticClass: "vd-multiselect__element", attrs: { id: e.id + "-" + a, role: n && (n.$isLabel || n.$isDisabled) ? null : "option" } }, [n && (n.$isLabel || n.$isDisabled) ? e._e() : r("span", { staticClass: "vd-multiselect__option", class: e.optionHighlight(a, n), attrs: { "data-select": n && n.isTag ? e.tagPlaceholder : e.selectLabelText, "data-selected": e.selectedLabelText, "data-deselect": e.deselectLabelText }, on: { click: function(i) {
|
|
22465
22465
|
return i.stopPropagation(), e.select(n);
|
|
22466
22466
|
}, mouseenter: function(i) {
|
|
22467
22467
|
return i.target !== i.currentTarget ? null : e.pointerSet(a);
|
|
22468
22468
|
} } }, [e._t("option", function() {
|
|
22469
22469
|
return [r("span", [e._v(e._s(e.getOptionLabel(n)))])];
|
|
22470
|
-
}, { option: n, search: e.search, index: a })], 2), n && (n.$isLabel || n.$isDisabled) ? r("span", { staticClass: "multiselect__option", class: e.groupHighlight(a, n), attrs: { "data-select": e.groupSelect && e.selectGroupLabelText, "data-deselect": e.groupSelect && e.deselectGroupLabelText }, on: { mouseenter: function(i) {
|
|
22470
|
+
}, { option: n, search: e.search, index: a })], 2), n && (n.$isLabel || n.$isDisabled) ? r("span", { staticClass: "vd-multiselect__option", class: e.groupHighlight(a, n), attrs: { "data-select": e.groupSelect && e.selectGroupLabelText, "data-deselect": e.groupSelect && e.deselectGroupLabelText }, on: { mouseenter: function(i) {
|
|
22471
22471
|
if (i.target !== i.currentTarget)
|
|
22472
22472
|
return null;
|
|
22473
22473
|
e.groupSelect && e.pointerSet(a);
|
|
@@ -22476,9 +22476,9 @@ var wg = function() {
|
|
|
22476
22476
|
} } }, [e._t("option", function() {
|
|
22477
22477
|
return [r("span", [e._v(e._s(e.getOptionLabel(n)))])];
|
|
22478
22478
|
}, { option: n, search: e.search, index: a })], 2) : e._e()]);
|
|
22479
|
-
}) : e._e(), r("li", { directives: [{ name: "show", rawName: "v-show", value: e.showNoResults && e.filteredOptions.length === 0 && e.search && !e.loading, expression: "showNoResults && (filteredOptions.length === 0 && search && !loading)" }] }, [r("span", { staticClass: "multiselect__option" }, [e._t("noResult", function() {
|
|
22479
|
+
}) : e._e(), r("li", { directives: [{ name: "show", rawName: "v-show", value: e.showNoResults && e.filteredOptions.length === 0 && e.search && !e.loading, expression: "showNoResults && (filteredOptions.length === 0 && search && !loading)" }] }, [r("span", { staticClass: "vd-multiselect__option" }, [e._t("noResult", function() {
|
|
22480
22480
|
return [e._v("No elements found. Consider changing the search query.")];
|
|
22481
|
-
}, { search: e.search })], 2)]), r("li", { directives: [{ name: "show", rawName: "v-show", value: e.showNoOptions && (e.options.length === 0 || e.hasOptionGroup === !0 && e.filteredOptions.length === 0) && !e.search && !e.loading, expression: "showNoOptions && ((options.length === 0 || (hasOptionGroup === true && filteredOptions.length === 0)) && !search && !loading)" }] }, [r("span", { staticClass: "multiselect__option" }, [e._t("noOptions", function() {
|
|
22481
|
+
}, { search: e.search })], 2)]), r("li", { directives: [{ name: "show", rawName: "v-show", value: e.showNoOptions && (e.options.length === 0 || e.hasOptionGroup === !0 && e.filteredOptions.length === 0) && !e.search && !e.loading, expression: "showNoOptions && ((options.length === 0 || (hasOptionGroup === true && filteredOptions.length === 0)) && !search && !loading)" }] }, [r("span", { staticClass: "vd-multiselect__option" }, [e._t("noOptions", function() {
|
|
22482
22482
|
return [e._v("List is empty.")];
|
|
22483
22483
|
})], 2)]), e._t("afterList")], 2)])])])], 2);
|
|
22484
22484
|
}, BA = [];
|
|
@@ -22548,7 +22548,7 @@ const VA = Sg.exports, qA = A({
|
|
|
22548
22548
|
u.value = !0, w.aantal = 30, je.dataService.searchBusinessInfo({ companyName: w.handelsnaam, kvkNumber: w.kvkNummer }, 1, w.aantal).then((C) => {
|
|
22549
22549
|
u.value = !1;
|
|
22550
22550
|
let E = C.resultaten;
|
|
22551
|
-
E.length > 0 ? o.value = E.filter((j) => j.type
|
|
22551
|
+
E.length > 0 ? o.value = E.filter((j) => j.type === "hoofdvestiging" || j.type === "nevenvestiging").map((j) => (j.name = `${j.handelsnaam}`, j)) : o.value = [];
|
|
22552
22552
|
}).catch((C) => {
|
|
22553
22553
|
o.value = [], u.value = !1;
|
|
22554
22554
|
});
|
|
@@ -22589,11 +22589,11 @@ const VA = Sg.exports, qA = A({
|
|
|
22589
22589
|
});
|
|
22590
22590
|
var Cg = function() {
|
|
22591
22591
|
var e = this, r = e._self._c;
|
|
22592
|
-
return e._self._setupProxy, r("div", [r("multiselect", { class: { "multiselect__chosen-option": e.isOptionSelected && !e.isDropdownFocused }, attrs: { options: e.companies, label: "name", "track-by": "name", multiple: !1, "options-limit": 30, placeholder: "Typ je bedrijfsnaam of KvK-nummer", "selected-label": "Selected", "select-label": "Select", "preserve-search": !0, loading: e.isLoading, "internal-search": !1, deselectLabel: "", selectedLabel: "", hideSelected: !0, openDirection: "bottom", showNoOptions: !1 }, on: { "search-change": e.findCompanies, remove: e.removeOption, open: e.setDropdownOpened, close: e.setDropdownClosed }, scopedSlots: e._u([{ key: "option", fn: function({ option: n }) {
|
|
22593
|
-
return [r("div", { staticClass: "multiselect__option-external-wrapper" }, [r("div", { staticClass: "multiselect__option-wrapper" }, [r("p", [r("b", [e._v(e._s(n.handelsnaam))]), r("br")]), r("p", [e._v(e._s("Kvk: " + n.kvkNummer)), r("br")]), r("p", [e._v(e._s(n.plaats + ", " + n.straatnaam)), r("br")])])])];
|
|
22592
|
+
return e._self._setupProxy, r("div", [r("multiselect", { class: { "vd-multiselect__chosen-option": e.isOptionSelected && !e.isDropdownFocused }, attrs: { options: e.companies, label: "name", "track-by": "name", multiple: !1, "options-limit": 30, placeholder: "Typ je bedrijfsnaam of KvK-nummer", "selected-label": "Selected", "select-label": "Select", "preserve-search": !0, loading: e.isLoading, "internal-search": !1, deselectLabel: "", selectedLabel: "", hideSelected: !0, openDirection: "bottom", showNoOptions: !1 }, on: { "search-change": e.findCompanies, remove: e.removeOption, open: e.setDropdownOpened, close: e.setDropdownClosed }, scopedSlots: e._u([{ key: "option", fn: function({ option: n }) {
|
|
22593
|
+
return [r("div", { staticClass: "vd-multiselect__option-external-wrapper" }, [r("div", { staticClass: "vd-multiselect__option-wrapper" }, [r("p", [r("b", [e._v(e._s(n.handelsnaam))]), r("br")]), r("p", [e._v(e._s("Kvk: " + n.kvkNummer)), r("br")]), r("p", [e._v(e._s(n.plaats + ", " + n.straatnaam)), r("br")])])])];
|
|
22594
22594
|
} }]), model: { value: e.companyName, callback: function(n) {
|
|
22595
22595
|
e.companyName = n;
|
|
22596
|
-
}, expression: "companyName" } }, [r("template", { slot: "noResult" }, [r("p", { staticClass: "multiselect__option-non-result mb-0" }, [e._v("Helaas, we hebben geen resultaten gevonden. Probeer te zoeken op de naam waarmee je bedrijf is geregistreerd bij de Kamer van Koophandel, of gebruik je KvK-nummer.")])]), r("template", { slot: "noOptions" }, [r("p", { staticClass: "multiselect__option-non-result mb-0" }, [e._v("Bedrijfsnaam of KVK-nummer")])])], 2), e.isOptionSelected && !e.isDropdownFocused ? r("div", { staticClass: "multiselect__address-info mt-1" }, [r("i", { staticClass: "fas fa-info-circle vd-tip-icon vd-tip-icon_additional-text" }), r("span", [e._v("Kvk: " + e._s(e.businessInfoModel.kvk_number) + " " + e._s(e.businessInfoModel.full_address))])]) : e._e(), r("error-handler", { attrs: { "errors-data": [{ rule: !e.isOptionSelected && !e.isDropdownFocused && e.hasCompaniesListValidationError, text: "Bedrijfsnaam of KVK-nummer is verplicht" }] } })], 1);
|
|
22596
|
+
}, expression: "companyName" } }, [r("template", { slot: "noResult" }, [r("p", { staticClass: "vd-multiselect__option-non-result mb-0" }, [e._v("Helaas, we hebben geen resultaten gevonden. Probeer te zoeken op de naam waarmee je bedrijf is geregistreerd bij de Kamer van Koophandel, of gebruik je KvK-nummer.")])]), r("template", { slot: "noOptions" }, [r("p", { staticClass: "vd-multiselect__option-non-result mb-0" }, [e._v("Bedrijfsnaam of KVK-nummer")])])], 2), e.isOptionSelected && !e.isDropdownFocused ? r("div", { staticClass: "vd-multiselect__address-info mt-1" }, [r("i", { staticClass: "fas fa-info-circle vd-tip-icon vd-tip-icon_additional-text" }), r("span", [e._v("Kvk: " + e._s(e.businessInfoModel.kvk_number) + " " + e._s(e.businessInfoModel.full_address))])]) : e._e(), r("error-handler", { attrs: { "errors-data": [{ rule: !e.isOptionSelected && !e.isDropdownFocused && e.hasCompaniesListValidationError, text: "Bedrijfsnaam of KVK-nummer is verplicht" }] } })], 1);
|
|
22597
22597
|
}, zA = [];
|
|
22598
22598
|
Cg._withStripped = !0;
|
|
22599
22599
|
var Og = /* @__PURE__ */ R(
|