@getlupa/vue 0.9.2 → 0.9.5
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
|
@@ -7027,7 +7027,14 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
|
|
|
7027
7027
|
const isIntegerRange = vue.computed(() => {
|
|
7028
7028
|
return Number.isInteger(currentMinValue.value) && Number.isInteger(currentMaxValue.value);
|
|
7029
7029
|
});
|
|
7030
|
+
const customInterval = vue.computed(() => {
|
|
7031
|
+
var _a;
|
|
7032
|
+
return (_a = props.options.stats) == null ? void 0 : _a.interval;
|
|
7033
|
+
});
|
|
7030
7034
|
const interval = vue.computed(() => {
|
|
7035
|
+
if (customInterval.value) {
|
|
7036
|
+
return customInterval.value;
|
|
7037
|
+
}
|
|
7031
7038
|
return isIntegerRange.value ? 1 : -1;
|
|
7032
7039
|
});
|
|
7033
7040
|
const sliderInputFormat = vue.computed(() => {
|
|
@@ -7363,7 +7370,8 @@ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadVa
|
|
|
7363
7370
|
const hasItems = vue.computed(() => {
|
|
7364
7371
|
var _a2;
|
|
7365
7372
|
if (facet.value.type === "stats") {
|
|
7366
|
-
|
|
7373
|
+
const statsFacet = facet.value;
|
|
7374
|
+
return statsFacet.min !== void 0 && statsFacet.max !== void 0 && statsFacet.min !== null && statsFacet.max !== null;
|
|
7367
7375
|
}
|
|
7368
7376
|
const currentFacet = facet.value;
|
|
7369
7377
|
return ((_a2 = currentFacet.items) == null ? void 0 : _a2.length) > 0;
|
|
@@ -10069,6 +10077,8 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
10069
10077
|
},
|
|
10070
10078
|
setup(__props) {
|
|
10071
10079
|
const props = __props;
|
|
10080
|
+
const searchResultStore = useSearchResultStore();
|
|
10081
|
+
const { hasResults } = storeToRefs(searchResultStore);
|
|
10072
10082
|
const description = vue.computed(() => {
|
|
10073
10083
|
var _a, _b;
|
|
10074
10084
|
return (_b = (_a = props.options.categories) == null ? void 0 : _a.current) == null ? void 0 : _b.description;
|
|
@@ -10078,7 +10088,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
10078
10088
|
return Boolean((_b = (_a = props.options.categories) == null ? void 0 : _a.current) == null ? void 0 : _b.description);
|
|
10079
10089
|
});
|
|
10080
10090
|
return (_ctx, _cache) => {
|
|
10081
|
-
return overviewVisible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$a, [
|
|
10091
|
+
return overviewVisible.value && vue.unref(hasResults) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$a, [
|
|
10082
10092
|
vue.createElementVNode("div", {
|
|
10083
10093
|
class: "lupa-category-description",
|
|
10084
10094
|
innerHTML: description.value
|
package/dist/lupaSearch.mjs
CHANGED
|
@@ -7025,7 +7025,14 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
7025
7025
|
const isIntegerRange = computed(() => {
|
|
7026
7026
|
return Number.isInteger(currentMinValue.value) && Number.isInteger(currentMaxValue.value);
|
|
7027
7027
|
});
|
|
7028
|
+
const customInterval = computed(() => {
|
|
7029
|
+
var _a;
|
|
7030
|
+
return (_a = props.options.stats) == null ? void 0 : _a.interval;
|
|
7031
|
+
});
|
|
7028
7032
|
const interval = computed(() => {
|
|
7033
|
+
if (customInterval.value) {
|
|
7034
|
+
return customInterval.value;
|
|
7035
|
+
}
|
|
7029
7036
|
return isIntegerRange.value ? 1 : -1;
|
|
7030
7037
|
});
|
|
7031
7038
|
const sliderInputFormat = computed(() => {
|
|
@@ -7361,7 +7368,8 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
7361
7368
|
const hasItems = computed(() => {
|
|
7362
7369
|
var _a2;
|
|
7363
7370
|
if (facet.value.type === "stats") {
|
|
7364
|
-
|
|
7371
|
+
const statsFacet = facet.value;
|
|
7372
|
+
return statsFacet.min !== void 0 && statsFacet.max !== void 0 && statsFacet.min !== null && statsFacet.max !== null;
|
|
7365
7373
|
}
|
|
7366
7374
|
const currentFacet = facet.value;
|
|
7367
7375
|
return ((_a2 = currentFacet.items) == null ? void 0 : _a2.length) > 0;
|
|
@@ -10067,6 +10075,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
10067
10075
|
},
|
|
10068
10076
|
setup(__props) {
|
|
10069
10077
|
const props = __props;
|
|
10078
|
+
const searchResultStore = useSearchResultStore();
|
|
10079
|
+
const { hasResults } = storeToRefs(searchResultStore);
|
|
10070
10080
|
const description = computed(() => {
|
|
10071
10081
|
var _a, _b;
|
|
10072
10082
|
return (_b = (_a = props.options.categories) == null ? void 0 : _a.current) == null ? void 0 : _b.description;
|
|
@@ -10076,7 +10086,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
10076
10086
|
return Boolean((_b = (_a = props.options.categories) == null ? void 0 : _a.current) == null ? void 0 : _b.description);
|
|
10077
10087
|
});
|
|
10078
10088
|
return (_ctx, _cache) => {
|
|
10079
|
-
return overviewVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
10089
|
+
return overviewVisible.value && unref(hasResults) ? (openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
10080
10090
|
createElementVNode("div", {
|
|
10081
10091
|
class: "lupa-category-description",
|
|
10082
10092
|
innerHTML: description.value
|