@getlupa/client 1.9.2 → 1.9.4
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 +12 -2
- package/dist/lupaSearch.js +12 -2
- package/dist/lupaSearch.mjs +12 -2
- package/dist/lupaSearch.umd.js +12 -2
- package/package.json +2 -2
package/dist/lupaSearch.iife.js
CHANGED
|
@@ -11655,7 +11655,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11655
11655
|
const isIntegerRange = computed(() => {
|
|
11656
11656
|
return Number.isInteger(currentMinValue.value) && Number.isInteger(currentMaxValue.value);
|
|
11657
11657
|
});
|
|
11658
|
+
const customInterval = computed(() => {
|
|
11659
|
+
var _a;
|
|
11660
|
+
return (_a = props.options.stats) == null ? void 0 : _a.interval;
|
|
11661
|
+
});
|
|
11658
11662
|
const interval = computed(() => {
|
|
11663
|
+
if (customInterval.value) {
|
|
11664
|
+
return customInterval.value;
|
|
11665
|
+
}
|
|
11659
11666
|
return isIntegerRange.value ? 1 : -1;
|
|
11660
11667
|
});
|
|
11661
11668
|
const sliderInputFormat = computed(() => {
|
|
@@ -11991,7 +11998,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11991
11998
|
const hasItems = computed(() => {
|
|
11992
11999
|
var _a2;
|
|
11993
12000
|
if (facet.value.type === "stats") {
|
|
11994
|
-
|
|
12001
|
+
const statsFacet = facet.value;
|
|
12002
|
+
return statsFacet.min !== void 0 && statsFacet.max !== void 0 && statsFacet.min !== null && statsFacet.max !== null;
|
|
11995
12003
|
}
|
|
11996
12004
|
const currentFacet = facet.value;
|
|
11997
12005
|
return ((_a2 = currentFacet.items) == null ? void 0 : _a2.length) > 0;
|
|
@@ -14697,6 +14705,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
14697
14705
|
},
|
|
14698
14706
|
setup(__props) {
|
|
14699
14707
|
const props = __props;
|
|
14708
|
+
const searchResultStore = useSearchResultStore();
|
|
14709
|
+
const { hasResults } = storeToRefs(searchResultStore);
|
|
14700
14710
|
const description = computed(() => {
|
|
14701
14711
|
var _a, _b;
|
|
14702
14712
|
return (_b = (_a = props.options.categories) == null ? void 0 : _a.current) == null ? void 0 : _b.description;
|
|
@@ -14706,7 +14716,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
14706
14716
|
return Boolean((_b = (_a = props.options.categories) == null ? void 0 : _a.current) == null ? void 0 : _b.description);
|
|
14707
14717
|
});
|
|
14708
14718
|
return (_ctx, _cache) => {
|
|
14709
|
-
return overviewVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
14719
|
+
return overviewVisible.value && unref(hasResults) ? (openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
14710
14720
|
createBaseVNode("div", {
|
|
14711
14721
|
class: "lupa-category-description",
|
|
14712
14722
|
innerHTML: description.value
|
package/dist/lupaSearch.js
CHANGED
|
@@ -11655,7 +11655,14 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
11655
11655
|
const isIntegerRange = computed(() => {
|
|
11656
11656
|
return Number.isInteger(currentMinValue.value) && Number.isInteger(currentMaxValue.value);
|
|
11657
11657
|
});
|
|
11658
|
+
const customInterval = computed(() => {
|
|
11659
|
+
var _a;
|
|
11660
|
+
return (_a = props.options.stats) == null ? void 0 : _a.interval;
|
|
11661
|
+
});
|
|
11658
11662
|
const interval = computed(() => {
|
|
11663
|
+
if (customInterval.value) {
|
|
11664
|
+
return customInterval.value;
|
|
11665
|
+
}
|
|
11659
11666
|
return isIntegerRange.value ? 1 : -1;
|
|
11660
11667
|
});
|
|
11661
11668
|
const sliderInputFormat = computed(() => {
|
|
@@ -11991,7 +11998,8 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
11991
11998
|
const hasItems = computed(() => {
|
|
11992
11999
|
var _a2;
|
|
11993
12000
|
if (facet.value.type === "stats") {
|
|
11994
|
-
|
|
12001
|
+
const statsFacet = facet.value;
|
|
12002
|
+
return statsFacet.min !== void 0 && statsFacet.max !== void 0 && statsFacet.min !== null && statsFacet.max !== null;
|
|
11995
12003
|
}
|
|
11996
12004
|
const currentFacet = facet.value;
|
|
11997
12005
|
return ((_a2 = currentFacet.items) == null ? void 0 : _a2.length) > 0;
|
|
@@ -14697,6 +14705,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
14697
14705
|
},
|
|
14698
14706
|
setup(__props) {
|
|
14699
14707
|
const props = __props;
|
|
14708
|
+
const searchResultStore = useSearchResultStore();
|
|
14709
|
+
const { hasResults } = storeToRefs(searchResultStore);
|
|
14700
14710
|
const description = computed(() => {
|
|
14701
14711
|
var _a, _b;
|
|
14702
14712
|
return (_b = (_a = props.options.categories) == null ? void 0 : _a.current) == null ? void 0 : _b.description;
|
|
@@ -14706,7 +14716,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
14706
14716
|
return Boolean((_b = (_a = props.options.categories) == null ? void 0 : _a.current) == null ? void 0 : _b.description);
|
|
14707
14717
|
});
|
|
14708
14718
|
return (_ctx, _cache) => {
|
|
14709
|
-
return overviewVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
14719
|
+
return overviewVisible.value && unref(hasResults) ? (openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
14710
14720
|
createBaseVNode("div", {
|
|
14711
14721
|
class: "lupa-category-description",
|
|
14712
14722
|
innerHTML: description.value
|
package/dist/lupaSearch.mjs
CHANGED
|
@@ -11653,7 +11653,14 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
11653
11653
|
const isIntegerRange = computed(() => {
|
|
11654
11654
|
return Number.isInteger(currentMinValue.value) && Number.isInteger(currentMaxValue.value);
|
|
11655
11655
|
});
|
|
11656
|
+
const customInterval = computed(() => {
|
|
11657
|
+
var _a;
|
|
11658
|
+
return (_a = props.options.stats) == null ? void 0 : _a.interval;
|
|
11659
|
+
});
|
|
11656
11660
|
const interval = computed(() => {
|
|
11661
|
+
if (customInterval.value) {
|
|
11662
|
+
return customInterval.value;
|
|
11663
|
+
}
|
|
11657
11664
|
return isIntegerRange.value ? 1 : -1;
|
|
11658
11665
|
});
|
|
11659
11666
|
const sliderInputFormat = computed(() => {
|
|
@@ -11989,7 +11996,8 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
11989
11996
|
const hasItems = computed(() => {
|
|
11990
11997
|
var _a2;
|
|
11991
11998
|
if (facet.value.type === "stats") {
|
|
11992
|
-
|
|
11999
|
+
const statsFacet = facet.value;
|
|
12000
|
+
return statsFacet.min !== void 0 && statsFacet.max !== void 0 && statsFacet.min !== null && statsFacet.max !== null;
|
|
11993
12001
|
}
|
|
11994
12002
|
const currentFacet = facet.value;
|
|
11995
12003
|
return ((_a2 = currentFacet.items) == null ? void 0 : _a2.length) > 0;
|
|
@@ -14695,6 +14703,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
14695
14703
|
},
|
|
14696
14704
|
setup(__props) {
|
|
14697
14705
|
const props = __props;
|
|
14706
|
+
const searchResultStore = useSearchResultStore();
|
|
14707
|
+
const { hasResults } = storeToRefs(searchResultStore);
|
|
14698
14708
|
const description = computed(() => {
|
|
14699
14709
|
var _a, _b;
|
|
14700
14710
|
return (_b = (_a = props.options.categories) == null ? void 0 : _a.current) == null ? void 0 : _b.description;
|
|
@@ -14704,7 +14714,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
14704
14714
|
return Boolean((_b = (_a = props.options.categories) == null ? void 0 : _a.current) == null ? void 0 : _b.description);
|
|
14705
14715
|
});
|
|
14706
14716
|
return (_ctx, _cache) => {
|
|
14707
|
-
return overviewVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
14717
|
+
return overviewVisible.value && unref(hasResults) ? (openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
14708
14718
|
createBaseVNode("div", {
|
|
14709
14719
|
class: "lupa-category-description",
|
|
14710
14720
|
innerHTML: description.value
|
package/dist/lupaSearch.umd.js
CHANGED
|
@@ -11657,7 +11657,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11657
11657
|
const isIntegerRange = computed(() => {
|
|
11658
11658
|
return Number.isInteger(currentMinValue.value) && Number.isInteger(currentMaxValue.value);
|
|
11659
11659
|
});
|
|
11660
|
+
const customInterval = computed(() => {
|
|
11661
|
+
var _a;
|
|
11662
|
+
return (_a = props.options.stats) == null ? void 0 : _a.interval;
|
|
11663
|
+
});
|
|
11660
11664
|
const interval = computed(() => {
|
|
11665
|
+
if (customInterval.value) {
|
|
11666
|
+
return customInterval.value;
|
|
11667
|
+
}
|
|
11661
11668
|
return isIntegerRange.value ? 1 : -1;
|
|
11662
11669
|
});
|
|
11663
11670
|
const sliderInputFormat = computed(() => {
|
|
@@ -11993,7 +12000,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
11993
12000
|
const hasItems = computed(() => {
|
|
11994
12001
|
var _a2;
|
|
11995
12002
|
if (facet.value.type === "stats") {
|
|
11996
|
-
|
|
12003
|
+
const statsFacet = facet.value;
|
|
12004
|
+
return statsFacet.min !== void 0 && statsFacet.max !== void 0 && statsFacet.min !== null && statsFacet.max !== null;
|
|
11997
12005
|
}
|
|
11998
12006
|
const currentFacet = facet.value;
|
|
11999
12007
|
return ((_a2 = currentFacet.items) == null ? void 0 : _a2.length) > 0;
|
|
@@ -14699,6 +14707,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
14699
14707
|
},
|
|
14700
14708
|
setup(__props) {
|
|
14701
14709
|
const props = __props;
|
|
14710
|
+
const searchResultStore = useSearchResultStore();
|
|
14711
|
+
const { hasResults } = storeToRefs(searchResultStore);
|
|
14702
14712
|
const description = computed(() => {
|
|
14703
14713
|
var _a, _b;
|
|
14704
14714
|
return (_b = (_a = props.options.categories) == null ? void 0 : _a.current) == null ? void 0 : _b.description;
|
|
@@ -14708,7 +14718,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
14708
14718
|
return Boolean((_b = (_a = props.options.categories) == null ? void 0 : _a.current) == null ? void 0 : _b.description);
|
|
14709
14719
|
});
|
|
14710
14720
|
return (_ctx, _cache) => {
|
|
14711
|
-
return overviewVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
14721
|
+
return overviewVisible.value && unref(hasResults) ? (openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
14712
14722
|
createBaseVNode("div", {
|
|
14713
14723
|
class: "lupa-category-description",
|
|
14714
14724
|
innerHTML: description.value
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getlupa/client",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.4",
|
|
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.9.
|
|
23
|
+
"@getlupa/vue": "0.9.5",
|
|
24
24
|
"@rushstack/eslint-patch": "^1.3.2",
|
|
25
25
|
"@tsconfig/node18": "^2.0.1",
|
|
26
26
|
"@types/jsdom": "^21.1.1",
|