@vergelijkdirect/comparison-forms 1.2.7-rc.0 → 1.2.7-rc.2
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.
|
@@ -22237,22 +22237,22 @@ const kp = (...t) => (e) => t.reduce((r, n) => n(r), e), qA = {
|
|
|
22237
22237
|
methods: {
|
|
22238
22238
|
optionHighlight(t, e) {
|
|
22239
22239
|
return {
|
|
22240
|
-
"multiselect__option--highlight": t === this.pointer && this.showPointer,
|
|
22241
|
-
"multiselect__option--selected": this.isSelected(e)
|
|
22240
|
+
"vd-multiselect__option--highlight": t === this.pointer && this.showPointer,
|
|
22241
|
+
"vd-multiselect__option--selected": this.isSelected(e)
|
|
22242
22242
|
};
|
|
22243
22243
|
},
|
|
22244
22244
|
groupHighlight(t, e) {
|
|
22245
22245
|
if (!this.groupSelect)
|
|
22246
22246
|
return [
|
|
22247
|
-
"multiselect__option--disabled",
|
|
22248
|
-
{ "multiselect__option--group": e.$isLabel }
|
|
22247
|
+
"vd-multiselect__option--disabled",
|
|
22248
|
+
{ "vd-multiselect__option--group": e.$isLabel }
|
|
22249
22249
|
];
|
|
22250
22250
|
const r = this.options.find((n) => n[this.groupLabel] === e.$groupLabel);
|
|
22251
22251
|
return r && !this.wholeGroupDisabled(r) ? [
|
|
22252
|
-
"multiselect__option--group",
|
|
22253
|
-
{ "multiselect__option--highlight": t === this.pointer && this.showPointer },
|
|
22254
|
-
{ "multiselect__option--group-selected": this.wholeGroupSelected(r) }
|
|
22255
|
-
] : "multiselect__option--disabled";
|
|
22252
|
+
"vd-multiselect__option--group",
|
|
22253
|
+
{ "vd-multiselect__option--highlight": t === this.pointer && this.showPointer },
|
|
22254
|
+
{ "vd-multiselect__option--group-selected": this.wholeGroupSelected(r) }
|
|
22255
|
+
] : "vd-multiselect__option--disabled";
|
|
22256
22256
|
},
|
|
22257
22257
|
addPointerElement({ key: t } = "Enter") {
|
|
22258
22258
|
this.filteredOptions.length > 0 && this.select(this.filteredOptions[this.pointer], t), this.pointerReset();
|
|
@@ -22461,7 +22461,7 @@ const kp = (...t) => (e) => t.reduce((r, n) => n(r), e), qA = {
|
|
|
22461
22461
|
};
|
|
22462
22462
|
var Cg = function() {
|
|
22463
22463
|
var e = this, r = e._self._c;
|
|
22464
|
-
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) {
|
|
22464
|
+
return r("div", { staticClass: "vd-multiselect", class: { "vd-multiselect--active": e.isOpen, "vd-multiselect--disabled": e.disabled, "vd-multiselect--above": e.isAbove, "vd-multiselect--has-options-group": e.hasOptionGroup }, attrs: { tabindex: e.searchable ? -1 : e.tabindex, role: "combobox", "aria-owns": "listbox-" + e.id }, on: { focus: function(n) {
|
|
22465
22465
|
return e.activate();
|
|
22466
22466
|
}, blur: function(n) {
|
|
22467
22467
|
e.searchable || e.deactivate();
|
|
@@ -22474,24 +22474,24 @@ var Cg = function() {
|
|
|
22474
22474
|
}, keyup: function(n) {
|
|
22475
22475
|
return !n.type.indexOf("key") && e._k(n.keyCode, "esc", 27, n.key, ["Esc", "Escape"]) ? null : e.deactivate();
|
|
22476
22476
|
} } }, [e._t("caret", function() {
|
|
22477
|
-
return [r("div", { staticClass: "multiselect__select", on: { mousedown: function(n) {
|
|
22477
|
+
return [r("div", { staticClass: "vd-multiselect__select", on: { mousedown: function(n) {
|
|
22478
22478
|
return n.preventDefault(), n.stopPropagation(), e.toggle();
|
|
22479
22479
|
} } })];
|
|
22480
|
-
}, { toggle: e.toggle }), e._t("clear", null, { search: e.search }), r("div", { ref: "tags", staticClass: "multiselect__tags" }, [e._t("selection", function() {
|
|
22481
|
-
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) {
|
|
22480
|
+
}, { toggle: e.toggle }), e._t("clear", null, { search: e.search }), r("div", { ref: "tags", staticClass: "vd-multiselect__tags" }, [e._t("selection", function() {
|
|
22481
|
+
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) {
|
|
22482
22482
|
return [e._t("tag", function() {
|
|
22483
|
-
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) {
|
|
22483
|
+
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) {
|
|
22484
22484
|
return !i.type.indexOf("key") && e._k(i.keyCode, "enter", 13, i.key, "Enter") ? null : (i.preventDefault(), e.removeElement(n));
|
|
22485
22485
|
}, mousedown: function(i) {
|
|
22486
22486
|
return i.preventDefault(), e.removeElement(n);
|
|
22487
22487
|
} } })])];
|
|
22488
22488
|
}, { option: n, search: e.search, remove: e.removeElement })];
|
|
22489
22489
|
})], 2), e.internalValue && e.internalValue.length > e.limit ? [e._t("limit", function() {
|
|
22490
|
-
return [r("strong", { staticClass: "multiselect__strong", domProps: { textContent: e._s(e.limitText(e.internalValue.length - e.limit)) } })];
|
|
22490
|
+
return [r("strong", { staticClass: "vd-multiselect__strong", domProps: { textContent: e._s(e.limitText(e.internalValue.length - e.limit)) } })];
|
|
22491
22491
|
})] : e._e()];
|
|
22492
|
-
}, { search: e.search, remove: e.removeElement, values: e.visibleValues, isOpen: e.isOpen }), r("transition", { attrs: { name: "multiselect__loading" } }, [e._t("loading", function() {
|
|
22493
|
-
return [r("div", { directives: [{ name: "show", rawName: "v-show", value: e.loading, expression: "loading" }], staticClass: "multiselect__spinner" })];
|
|
22494
|
-
})], 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) {
|
|
22492
|
+
}, { search: e.search, remove: e.removeElement, values: e.visibleValues, isOpen: e.isOpen }), r("transition", { attrs: { name: "vd-multiselect__loading" } }, [e._t("loading", function() {
|
|
22493
|
+
return [r("div", { directives: [{ name: "show", rawName: "v-show", value: e.loading, expression: "loading" }], staticClass: "vd-multiselect__spinner" })];
|
|
22494
|
+
})], 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) {
|
|
22495
22495
|
return e.updateSearch(n.target.value);
|
|
22496
22496
|
}, focus: function(n) {
|
|
22497
22497
|
return n.preventDefault(), e.activate();
|
|
@@ -22507,28 +22507,28 @@ var Cg = function() {
|
|
|
22507
22507
|
return !n.type.indexOf("key") && e._k(n.keyCode, "delete", [8, 46], n.key, ["Backspace", "Delete", "Del"]) ? null : (n.stopPropagation(), e.removeLastElement());
|
|
22508
22508
|
}], keypress: function(n) {
|
|
22509
22509
|
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);
|
|
22510
|
-
} } }) : e._e(), e.isSingleLabelVisible ? r("span", { staticClass: "multiselect__single", on: { mousedown: function(n) {
|
|
22510
|
+
} } }) : e._e(), e.isSingleLabelVisible ? r("span", { staticClass: "vd-multiselect__single", on: { mousedown: function(n) {
|
|
22511
22511
|
return n.preventDefault(), e.toggle.apply(null, arguments);
|
|
22512
22512
|
} } }, [e._t("singleLabel", function() {
|
|
22513
22513
|
return [[e._v(e._s(e.currentOptionLabel))]];
|
|
22514
|
-
}, { option: e.singleValue })], 2) : e._e(), e.isPlaceholderVisible ? r("span", { staticClass: "multiselect__placeholder", on: { mousedown: function(n) {
|
|
22514
|
+
}, { option: e.singleValue })], 2) : e._e(), e.isPlaceholderVisible ? r("span", { staticClass: "vd-multiselect__placeholder", on: { mousedown: function(n) {
|
|
22515
22515
|
return n.preventDefault(), e.toggle.apply(null, arguments);
|
|
22516
22516
|
} } }, [e._t("placeholder", function() {
|
|
22517
22517
|
return [e._v(" " + e._s(e.placeholder) + " ")];
|
|
22518
|
-
})], 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: {
|
|
22518
|
+
})], 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: {
|
|
22519
22519
|
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"
|
|
22520
|
-
} }, [r("div", { ref: "list", staticClass: "multiselect__content-wrapper", style: { maxHeight: 103 * 5 + "px" }, attrs: { tabindex: "-1" }, on: { focus: e.activate, mousedown: function(n) {
|
|
22520
|
+
} }, [r("div", { ref: "list", staticClass: "vd-multiselect__content-wrapper", style: { maxHeight: 103 * 5 + "px" }, attrs: { tabindex: "-1" }, on: { focus: e.activate, mousedown: function(n) {
|
|
22521
22521
|
n.preventDefault();
|
|
22522
|
-
} } }, [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() {
|
|
22522
|
+
} } }, [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() {
|
|
22523
22523
|
return [e._v("Maximum of " + e._s(e.max) + " options selected. First remove a selected option to select another.")];
|
|
22524
22524
|
})], 2)]) : e._e(), !e.max || e.internalValue.length < e.max ? e._l(e.filteredOptions, function(n, a) {
|
|
22525
|
-
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) {
|
|
22525
|
+
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) {
|
|
22526
22526
|
return i.stopPropagation(), e.select(n);
|
|
22527
22527
|
}, mouseenter: function(i) {
|
|
22528
22528
|
return i.target !== i.currentTarget ? null : e.pointerSet(a);
|
|
22529
22529
|
} } }, [e._t("option", function() {
|
|
22530
22530
|
return [r("span", [e._v(e._s(e.getOptionLabel(n)))])];
|
|
22531
|
-
}, { 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) {
|
|
22531
|
+
}, { 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) {
|
|
22532
22532
|
if (i.target !== i.currentTarget)
|
|
22533
22533
|
return null;
|
|
22534
22534
|
e.groupSelect && e.pointerSet(a);
|
|
@@ -22537,9 +22537,9 @@ var Cg = function() {
|
|
|
22537
22537
|
} } }, [e._t("option", function() {
|
|
22538
22538
|
return [r("span", [e._v(e._s(e.getOptionLabel(n)))])];
|
|
22539
22539
|
}, { option: n, search: e.search, index: a })], 2) : e._e()]);
|
|
22540
|
-
}) : 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() {
|
|
22540
|
+
}) : 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() {
|
|
22541
22541
|
return [e._v("No elements found. Consider changing the search query.")];
|
|
22542
|
-
}, { 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() {
|
|
22542
|
+
}, { 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() {
|
|
22543
22543
|
return [e._v("List is empty.")];
|
|
22544
22544
|
})], 2)]), e._t("afterList")], 2)])])])], 2);
|
|
22545
22545
|
}, UA = [];
|
|
@@ -22650,11 +22650,11 @@ const YA = Og.exports, WA = A({
|
|
|
22650
22650
|
});
|
|
22651
22651
|
var kg = function() {
|
|
22652
22652
|
var e = this, r = e._self._c;
|
|
22653
|
-
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 }) {
|
|
22654
|
-
return [r("div", { staticClass: "multiselect__option-external-wrapper" }, [r("div", { staticClass: "multiselect__option-wrapper" }, [r("p", [r("b", [e._v(e._s(n.naam))]), r("br")]), r("p", [e._v(e._s("Kvk: " + n.kvkNummer)), r("br")]), r("p", [e._v(e._s(n.adres.binnenlandsAdres.plaats + ", " + n.adres.binnenlandsAdres.straatnaam)), r("br")])])])];
|
|
22653
|
+
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 }) {
|
|
22654
|
+
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.naam))]), r("br")]), r("p", [e._v(e._s("Kvk: " + n.kvkNummer)), r("br")]), r("p", [e._v(e._s(n.adres.binnenlandsAdres.plaats + ", " + n.adres.binnenlandsAdres.straatnaam)), r("br")])])])];
|
|
22655
22655
|
} }]), model: { value: e.companyName, callback: function(n) {
|
|
22656
22656
|
e.companyName = n;
|
|
22657
|
-
}, 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);
|
|
22657
|
+
}, 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);
|
|
22658
22658
|
}, GA = [];
|
|
22659
22659
|
kg._withStripped = !0;
|
|
22660
22660
|
var xg = /* @__PURE__ */ R(
|