@getlupa/client 1.9.3 → 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.
@@ -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
- return true;
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;
@@ -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
- return true;
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;
@@ -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
- return true;
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;
@@ -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
- return true;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlupa/client",
3
- "version": "1.9.3",
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.3",
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",