@getlupa/client 1.16.1 → 1.16.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.
- package/dist/lupaSearch.iife.js +17 -4
- package/dist/lupaSearch.js +17 -4
- package/dist/lupaSearch.mjs +17 -4
- package/dist/lupaSearch.umd.js +17 -4
- package/package.json +2 -2
package/dist/lupaSearch.iife.js
CHANGED
|
@@ -23283,10 +23283,11 @@ and ensure you are accounting for this risk.
|
|
|
23283
23283
|
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
23284
23284
|
__name: "SearchResultsMobileToggle",
|
|
23285
23285
|
props: {
|
|
23286
|
-
|
|
23286
|
+
labels: {},
|
|
23287
23287
|
showFilterCount: { type: Boolean }
|
|
23288
23288
|
},
|
|
23289
23289
|
setup(__props) {
|
|
23290
|
+
const props = __props;
|
|
23290
23291
|
const searchResultStore = useSearchResultStore();
|
|
23291
23292
|
const optionsStore = useOptionsStore();
|
|
23292
23293
|
const { currentFilterCount, isMobileSidebarVisible } = storeToRefs(searchResultStore);
|
|
@@ -23298,6 +23299,18 @@ and ensure you are accounting for this risk.
|
|
|
23298
23299
|
}
|
|
23299
23300
|
);
|
|
23300
23301
|
const isSidebarVisible = computed(() => isMobileSidebarVisible.value);
|
|
23302
|
+
const defaultLabel = computed(() => props.labels.mobileFilterButton);
|
|
23303
|
+
const activeLabel = computed(() => props.labels.mobileFilterButtonActive);
|
|
23304
|
+
const openLabel = computed(() => props.labels.mobileFilterButtonOpen);
|
|
23305
|
+
const label = computed(() => {
|
|
23306
|
+
if (isSidebarVisible.value) {
|
|
23307
|
+
return openLabel.value;
|
|
23308
|
+
}
|
|
23309
|
+
if (hasActiveFilters.value) {
|
|
23310
|
+
return activeLabel.value;
|
|
23311
|
+
}
|
|
23312
|
+
return defaultLabel.value;
|
|
23313
|
+
});
|
|
23301
23314
|
const handleMobileToggle = () => {
|
|
23302
23315
|
searchResultStore.setSidebarState({
|
|
23303
23316
|
visible: !isSidebarVisible.value,
|
|
@@ -23314,7 +23327,7 @@ and ensure you are accounting for this risk.
|
|
|
23314
23327
|
}]),
|
|
23315
23328
|
onClick: handleMobileToggle
|
|
23316
23329
|
}, [
|
|
23317
|
-
createTextVNode(toDisplayString(
|
|
23330
|
+
createTextVNode(toDisplayString(label.value) + " ", 1),
|
|
23318
23331
|
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$A, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
23319
23332
|
], 2);
|
|
23320
23333
|
};
|
|
@@ -23761,9 +23774,9 @@ and ensure you are accounting for this risk.
|
|
|
23761
23774
|
createBaseVNode("div", _hoisted_6$5, [
|
|
23762
23775
|
toolbarRightLabel.value ? (openBlock(), createElementBlock("div", _hoisted_7$3, toDisplayString(toolbarRightLabel.value), 1)) : createCommentVNode("", true),
|
|
23763
23776
|
createVNode(_sfc_main$G, {
|
|
23764
|
-
|
|
23777
|
+
labels: optionsValue.value.labels,
|
|
23765
23778
|
"show-filter-count": showMobileFilterCount.value
|
|
23766
|
-
}, null, 8, ["
|
|
23779
|
+
}, null, 8, ["labels", "show-filter-count"]),
|
|
23767
23780
|
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$D, {
|
|
23768
23781
|
key: 1,
|
|
23769
23782
|
options: paginationOptions.value.pageSize,
|
package/dist/lupaSearch.js
CHANGED
|
@@ -23283,10 +23283,11 @@ const _hoisted_1$A = {
|
|
|
23283
23283
|
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
23284
23284
|
__name: "SearchResultsMobileToggle",
|
|
23285
23285
|
props: {
|
|
23286
|
-
|
|
23286
|
+
labels: {},
|
|
23287
23287
|
showFilterCount: { type: Boolean }
|
|
23288
23288
|
},
|
|
23289
23289
|
setup(__props) {
|
|
23290
|
+
const props = __props;
|
|
23290
23291
|
const searchResultStore = useSearchResultStore();
|
|
23291
23292
|
const optionsStore = useOptionsStore();
|
|
23292
23293
|
const { currentFilterCount, isMobileSidebarVisible } = storeToRefs(searchResultStore);
|
|
@@ -23298,6 +23299,18 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
23298
23299
|
}
|
|
23299
23300
|
);
|
|
23300
23301
|
const isSidebarVisible = computed(() => isMobileSidebarVisible.value);
|
|
23302
|
+
const defaultLabel = computed(() => props.labels.mobileFilterButton);
|
|
23303
|
+
const activeLabel = computed(() => props.labels.mobileFilterButtonActive);
|
|
23304
|
+
const openLabel = computed(() => props.labels.mobileFilterButtonOpen);
|
|
23305
|
+
const label = computed(() => {
|
|
23306
|
+
if (isSidebarVisible.value) {
|
|
23307
|
+
return openLabel.value;
|
|
23308
|
+
}
|
|
23309
|
+
if (hasActiveFilters.value) {
|
|
23310
|
+
return activeLabel.value;
|
|
23311
|
+
}
|
|
23312
|
+
return defaultLabel.value;
|
|
23313
|
+
});
|
|
23301
23314
|
const handleMobileToggle = () => {
|
|
23302
23315
|
searchResultStore.setSidebarState({
|
|
23303
23316
|
visible: !isSidebarVisible.value,
|
|
@@ -23314,7 +23327,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
23314
23327
|
}]),
|
|
23315
23328
|
onClick: handleMobileToggle
|
|
23316
23329
|
}, [
|
|
23317
|
-
createTextVNode(toDisplayString(
|
|
23330
|
+
createTextVNode(toDisplayString(label.value) + " ", 1),
|
|
23318
23331
|
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$A, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
23319
23332
|
], 2);
|
|
23320
23333
|
};
|
|
@@ -23761,9 +23774,9 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
23761
23774
|
createBaseVNode("div", _hoisted_6$5, [
|
|
23762
23775
|
toolbarRightLabel.value ? (openBlock(), createElementBlock("div", _hoisted_7$3, toDisplayString(toolbarRightLabel.value), 1)) : createCommentVNode("", true),
|
|
23763
23776
|
createVNode(_sfc_main$G, {
|
|
23764
|
-
|
|
23777
|
+
labels: optionsValue.value.labels,
|
|
23765
23778
|
"show-filter-count": showMobileFilterCount.value
|
|
23766
|
-
}, null, 8, ["
|
|
23779
|
+
}, null, 8, ["labels", "show-filter-count"]),
|
|
23767
23780
|
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$D, {
|
|
23768
23781
|
key: 1,
|
|
23769
23782
|
options: paginationOptions.value.pageSize,
|
package/dist/lupaSearch.mjs
CHANGED
|
@@ -23281,10 +23281,11 @@ const _hoisted_1$A = {
|
|
|
23281
23281
|
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
23282
23282
|
__name: "SearchResultsMobileToggle",
|
|
23283
23283
|
props: {
|
|
23284
|
-
|
|
23284
|
+
labels: {},
|
|
23285
23285
|
showFilterCount: { type: Boolean }
|
|
23286
23286
|
},
|
|
23287
23287
|
setup(__props) {
|
|
23288
|
+
const props = __props;
|
|
23288
23289
|
const searchResultStore = useSearchResultStore();
|
|
23289
23290
|
const optionsStore = useOptionsStore();
|
|
23290
23291
|
const { currentFilterCount, isMobileSidebarVisible } = storeToRefs(searchResultStore);
|
|
@@ -23296,6 +23297,18 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
23296
23297
|
}
|
|
23297
23298
|
);
|
|
23298
23299
|
const isSidebarVisible = computed(() => isMobileSidebarVisible.value);
|
|
23300
|
+
const defaultLabel = computed(() => props.labels.mobileFilterButton);
|
|
23301
|
+
const activeLabel = computed(() => props.labels.mobileFilterButtonActive);
|
|
23302
|
+
const openLabel = computed(() => props.labels.mobileFilterButtonOpen);
|
|
23303
|
+
const label = computed(() => {
|
|
23304
|
+
if (isSidebarVisible.value) {
|
|
23305
|
+
return openLabel.value;
|
|
23306
|
+
}
|
|
23307
|
+
if (hasActiveFilters.value) {
|
|
23308
|
+
return activeLabel.value;
|
|
23309
|
+
}
|
|
23310
|
+
return defaultLabel.value;
|
|
23311
|
+
});
|
|
23299
23312
|
const handleMobileToggle = () => {
|
|
23300
23313
|
searchResultStore.setSidebarState({
|
|
23301
23314
|
visible: !isSidebarVisible.value,
|
|
@@ -23312,7 +23325,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
23312
23325
|
}]),
|
|
23313
23326
|
onClick: handleMobileToggle
|
|
23314
23327
|
}, [
|
|
23315
|
-
createTextVNode(toDisplayString(
|
|
23328
|
+
createTextVNode(toDisplayString(label.value) + " ", 1),
|
|
23316
23329
|
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$A, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
23317
23330
|
], 2);
|
|
23318
23331
|
};
|
|
@@ -23759,9 +23772,9 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
23759
23772
|
createBaseVNode("div", _hoisted_6$5, [
|
|
23760
23773
|
toolbarRightLabel.value ? (openBlock(), createElementBlock("div", _hoisted_7$3, toDisplayString(toolbarRightLabel.value), 1)) : createCommentVNode("", true),
|
|
23761
23774
|
createVNode(_sfc_main$G, {
|
|
23762
|
-
|
|
23775
|
+
labels: optionsValue.value.labels,
|
|
23763
23776
|
"show-filter-count": showMobileFilterCount.value
|
|
23764
|
-
}, null, 8, ["
|
|
23777
|
+
}, null, 8, ["labels", "show-filter-count"]),
|
|
23765
23778
|
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$D, {
|
|
23766
23779
|
key: 1,
|
|
23767
23780
|
options: paginationOptions.value.pageSize,
|
package/dist/lupaSearch.umd.js
CHANGED
|
@@ -23285,10 +23285,11 @@ and ensure you are accounting for this risk.
|
|
|
23285
23285
|
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
23286
23286
|
__name: "SearchResultsMobileToggle",
|
|
23287
23287
|
props: {
|
|
23288
|
-
|
|
23288
|
+
labels: {},
|
|
23289
23289
|
showFilterCount: { type: Boolean }
|
|
23290
23290
|
},
|
|
23291
23291
|
setup(__props) {
|
|
23292
|
+
const props = __props;
|
|
23292
23293
|
const searchResultStore = useSearchResultStore();
|
|
23293
23294
|
const optionsStore = useOptionsStore();
|
|
23294
23295
|
const { currentFilterCount, isMobileSidebarVisible } = storeToRefs(searchResultStore);
|
|
@@ -23300,6 +23301,18 @@ and ensure you are accounting for this risk.
|
|
|
23300
23301
|
}
|
|
23301
23302
|
);
|
|
23302
23303
|
const isSidebarVisible = computed(() => isMobileSidebarVisible.value);
|
|
23304
|
+
const defaultLabel = computed(() => props.labels.mobileFilterButton);
|
|
23305
|
+
const activeLabel = computed(() => props.labels.mobileFilterButtonActive);
|
|
23306
|
+
const openLabel = computed(() => props.labels.mobileFilterButtonOpen);
|
|
23307
|
+
const label = computed(() => {
|
|
23308
|
+
if (isSidebarVisible.value) {
|
|
23309
|
+
return openLabel.value;
|
|
23310
|
+
}
|
|
23311
|
+
if (hasActiveFilters.value) {
|
|
23312
|
+
return activeLabel.value;
|
|
23313
|
+
}
|
|
23314
|
+
return defaultLabel.value;
|
|
23315
|
+
});
|
|
23303
23316
|
const handleMobileToggle = () => {
|
|
23304
23317
|
searchResultStore.setSidebarState({
|
|
23305
23318
|
visible: !isSidebarVisible.value,
|
|
@@ -23316,7 +23329,7 @@ and ensure you are accounting for this risk.
|
|
|
23316
23329
|
}]),
|
|
23317
23330
|
onClick: handleMobileToggle
|
|
23318
23331
|
}, [
|
|
23319
|
-
createTextVNode(toDisplayString(
|
|
23332
|
+
createTextVNode(toDisplayString(label.value) + " ", 1),
|
|
23320
23333
|
_ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$A, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
23321
23334
|
], 2);
|
|
23322
23335
|
};
|
|
@@ -23763,9 +23776,9 @@ and ensure you are accounting for this risk.
|
|
|
23763
23776
|
createBaseVNode("div", _hoisted_6$5, [
|
|
23764
23777
|
toolbarRightLabel.value ? (openBlock(), createElementBlock("div", _hoisted_7$3, toDisplayString(toolbarRightLabel.value), 1)) : createCommentVNode("", true),
|
|
23765
23778
|
createVNode(_sfc_main$G, {
|
|
23766
|
-
|
|
23779
|
+
labels: optionsValue.value.labels,
|
|
23767
23780
|
"show-filter-count": showMobileFilterCount.value
|
|
23768
|
-
}, null, 8, ["
|
|
23781
|
+
}, null, 8, ["labels", "show-filter-count"]),
|
|
23769
23782
|
paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$D, {
|
|
23770
23783
|
key: 1,
|
|
23771
23784
|
options: paginationOptions.value.pageSize,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getlupa/client",
|
|
3
|
-
"version": "1.16.
|
|
3
|
+
"version": "1.16.2",
|
|
4
4
|
"main": "dist/lupaSearch.js",
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"types": "dist/src/index.d.ts",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@getlupa/client-sdk": "^1.3.4",
|
|
23
|
-
"@getlupa/vue": "0.16.
|
|
23
|
+
"@getlupa/vue": "0.16.2",
|
|
24
24
|
"@rushstack/eslint-patch": "^1.3.2",
|
|
25
25
|
"@tsconfig/node18": "^2.0.1",
|
|
26
26
|
"@types/jsdom": "^21.1.1",
|