@getlupa/vue 0.17.8 → 0.17.9
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/lupaSearch.js
CHANGED
|
@@ -8163,7 +8163,8 @@ const getLabeledFilters = (filters, facets2, translations) => {
|
|
|
8163
8163
|
var _a, _b, _c, _d;
|
|
8164
8164
|
return __spreadProps(__spreadValues({}, f2), {
|
|
8165
8165
|
label: (_d = (_c = (_a = translations == null ? void 0 : translations.keyTranslations) == null ? void 0 : _a[f2.key]) != null ? _c : (_b = facets2 == null ? void 0 : facets2.find((ft) => ft.key === f2.key)) == null ? void 0 : _b.label) != null ? _d : capitalize$1(f2.key),
|
|
8166
|
-
value: getTranslatedFacetValue({ key: f2.key }, { title: f2.value }, translations)
|
|
8166
|
+
value: getTranslatedFacetValue({ key: f2.key }, { title: f2.value }, translations),
|
|
8167
|
+
originalValue: f2.value
|
|
8167
8168
|
});
|
|
8168
8169
|
});
|
|
8169
8170
|
};
|
|
@@ -21335,7 +21336,7 @@ const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
|
|
|
21335
21336
|
toggleTermFilter(
|
|
21336
21337
|
// TODO: Fix any
|
|
21337
21338
|
paramsStore.appendParams,
|
|
21338
|
-
{ type: "terms", value: filter2.
|
|
21339
|
+
{ type: "terms", value: filter2.originalValue, key: filter2.key },
|
|
21339
21340
|
optionStore.getQueryParamName,
|
|
21340
21341
|
currentFilters.value
|
|
21341
21342
|
);
|
|
@@ -21343,7 +21344,7 @@ const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
|
|
|
21343
21344
|
case "hierarchy":
|
|
21344
21345
|
toggleHierarchyFilter(
|
|
21345
21346
|
paramsStore.appendParams,
|
|
21346
|
-
{ type: "hierarchy", value: filter2.
|
|
21347
|
+
{ type: "hierarchy", value: filter2.originalValue, key: filter2.key },
|
|
21347
21348
|
optionStore.getQueryParamName,
|
|
21348
21349
|
currentFilters.value,
|
|
21349
21350
|
true
|
package/dist/lupaSearch.mjs
CHANGED
|
@@ -8161,7 +8161,8 @@ const getLabeledFilters = (filters, facets2, translations) => {
|
|
|
8161
8161
|
var _a, _b, _c, _d;
|
|
8162
8162
|
return __spreadProps(__spreadValues({}, f2), {
|
|
8163
8163
|
label: (_d = (_c = (_a = translations == null ? void 0 : translations.keyTranslations) == null ? void 0 : _a[f2.key]) != null ? _c : (_b = facets2 == null ? void 0 : facets2.find((ft) => ft.key === f2.key)) == null ? void 0 : _b.label) != null ? _d : capitalize$1(f2.key),
|
|
8164
|
-
value: getTranslatedFacetValue({ key: f2.key }, { title: f2.value }, translations)
|
|
8164
|
+
value: getTranslatedFacetValue({ key: f2.key }, { title: f2.value }, translations),
|
|
8165
|
+
originalValue: f2.value
|
|
8165
8166
|
});
|
|
8166
8167
|
});
|
|
8167
8168
|
};
|
|
@@ -21333,7 +21334,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
21333
21334
|
toggleTermFilter(
|
|
21334
21335
|
// TODO: Fix any
|
|
21335
21336
|
paramsStore.appendParams,
|
|
21336
|
-
{ type: "terms", value: filter2.
|
|
21337
|
+
{ type: "terms", value: filter2.originalValue, key: filter2.key },
|
|
21337
21338
|
optionStore.getQueryParamName,
|
|
21338
21339
|
currentFilters.value
|
|
21339
21340
|
);
|
|
@@ -21341,7 +21342,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
21341
21342
|
case "hierarchy":
|
|
21342
21343
|
toggleHierarchyFilter(
|
|
21343
21344
|
paramsStore.appendParams,
|
|
21344
|
-
{ type: "hierarchy", value: filter2.
|
|
21345
|
+
{ type: "hierarchy", value: filter2.originalValue, key: filter2.key },
|
|
21345
21346
|
optionStore.getQueryParamName,
|
|
21346
21347
|
currentFilters.value,
|
|
21347
21348
|
true
|