@getlupa/vue 0.9.3 → 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;
|
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;
|