@getlupa/client 1.6.5 → 1.6.6

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.
@@ -6275,11 +6275,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
6275
6275
  return { success: false, errors };
6276
6276
  });
6277
6277
  const track$1 = (queryKey, event, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
6278
- const res = yield fetch(`${getApiUrl$1(environment, customBaseUrl)}events`, Object.assign(Object.assign({}, defaultConfig$1), { body: JSON.stringify(Object.assign({ queryKey }, event)) }));
6279
- if (res.status < 400) {
6278
+ try {
6279
+ const res = yield fetch(`${getApiUrl$1(environment, customBaseUrl)}events`, Object.assign(Object.assign({}, defaultConfig$1), { body: JSON.stringify(Object.assign({ queryKey }, event)) }));
6280
+ if (res.status < 400) {
6281
+ return { success: false };
6282
+ }
6283
+ return res.json();
6284
+ } catch (e) {
6280
6285
  return { success: false };
6281
6286
  }
6282
- return res.json();
6283
6287
  });
6284
6288
  const loadRedirectionRules = (queryKey, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
6285
6289
  const res = yield fetch(`${getApiUrl$1(environment, customBaseUrl)}redirections/${queryKey}`, Object.assign(Object.assign({}, defaultConfig$1), { method: "GET" }));
@@ -7808,8 +7812,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7808
7812
  const _hoisted_1$1c = { id: "lupa-search-box-input-container" };
7809
7813
  const _hoisted_2$P = { class: "lupa-input-clear" };
7810
7814
  const _hoisted_3$B = { id: "lupa-search-box-input" };
7811
- const _hoisted_4$r = ["value"];
7812
- const _hoisted_5$f = ["placeholder"];
7815
+ const _hoisted_4$s = ["value"];
7816
+ const _hoisted_5$g = ["aria-label", "placeholder"];
7813
7817
  const _hoisted_6$9 = {
7814
7818
  key: 0,
7815
7819
  class: "lupa-close-label"
@@ -7858,6 +7862,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7858
7862
  var _a;
7859
7863
  return __spreadValues2({}, (_a = props.options.inputAttributes) != null ? _a : {});
7860
7864
  });
7865
+ const ariaLabel = computed(() => {
7866
+ var _a;
7867
+ return (_a = labels.value.searchInputAriaLabel) != null ? _a : "Search input";
7868
+ });
7861
7869
  watch(suggestedValue, () => {
7862
7870
  if (suggestedValue.value.override) {
7863
7871
  input.value = suggestedValue.value.item.suggestion;
@@ -7901,22 +7909,24 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7901
7909
  createBaseVNode("div", _hoisted_3$B, [
7902
7910
  createBaseVNode("input", {
7903
7911
  class: "lupa-hint",
7912
+ "aria-hidden": "true",
7904
7913
  value: showHint.value ? suggestedValue.value.item.suggestion : "",
7905
7914
  disabled: ""
7906
- }, null, 8, _hoisted_4$r),
7915
+ }, null, 8, _hoisted_4$s),
7907
7916
  withDirectives(createBaseVNode("input", mergeProps({
7908
7917
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
7909
7918
  }, inputAttributes.value, {
7910
7919
  ref_key: "mainInput",
7911
7920
  ref: mainInput,
7912
7921
  autocomplete: "off",
7922
+ "aria-label": ariaLabel.value,
7913
7923
  class: "lupa-search-box-input-field",
7914
7924
  "data-cy": "lupa-search-box-input-field",
7915
7925
  type: "text",
7916
7926
  placeholder: labels.value.placeholder,
7917
7927
  onInput: handleInput,
7918
7928
  onFocus: handleFocus
7919
- }), null, 16, _hoisted_5$f), [
7929
+ }), null, 16, _hoisted_5$g), [
7920
7930
  [vModelText, inputValue.value]
7921
7931
  ])
7922
7932
  ]),
@@ -8082,11 +8092,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8082
8092
  class: "lupa-suggestion-facet",
8083
8093
  "data-cy": "lupa-suggestion-facet"
8084
8094
  };
8085
- const _hoisted_4$q = {
8095
+ const _hoisted_4$r = {
8086
8096
  class: "lupa-suggestion-facet-label",
8087
8097
  "data-cy": "lupa-suggestion-facet-label"
8088
8098
  };
8089
- const _hoisted_5$e = {
8099
+ const _hoisted_5$f = {
8090
8100
  class: "lupa-suggestion-facet-value",
8091
8101
  "data-cy": "lupa-suggestion-facet-value"
8092
8102
  };
@@ -8128,8 +8138,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8128
8138
  innerHTML: _ctx.suggestion.displayHighlight
8129
8139
  }, null, 8, _hoisted_1$18)) : (openBlock(), createElementBlock("div", _hoisted_2$N, toDisplayString(_ctx.suggestion.display), 1)),
8130
8140
  _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$A, [
8131
- createBaseVNode("span", _hoisted_4$q, toDisplayString(facetLabel.value), 1),
8132
- createBaseVNode("span", _hoisted_5$e, toDisplayString(_ctx.suggestion.facet.title), 1)
8141
+ createBaseVNode("span", _hoisted_4$r, toDisplayString(facetLabel.value), 1),
8142
+ createBaseVNode("span", _hoisted_5$f, toDisplayString(_ctx.suggestion.facet.title), 1)
8133
8143
  ])) : createCommentVNode("", true)
8134
8144
  ]);
8135
8145
  };
@@ -8536,8 +8546,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8536
8546
  const _hoisted_1$11 = ["innerHTML"];
8537
8547
  const _hoisted_2$K = { key: 0 };
8538
8548
  const _hoisted_3$z = { key: 1 };
8539
- const _hoisted_4$p = { class: "lupa-search-box-custom-label" };
8540
- const _hoisted_5$d = { class: "lupa-search-box-custom-text" };
8549
+ const _hoisted_4$q = { class: "lupa-search-box-custom-label" };
8550
+ const _hoisted_5$e = { class: "lupa-search-box-custom-text" };
8541
8551
  const _sfc_main$16 = /* @__PURE__ */ defineComponent({
8542
8552
  __name: "SearchBoxProductCustom",
8543
8553
  props: {
@@ -8569,8 +8579,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8569
8579
  class: [className.value, "lupa-search-box-product-custom"]
8570
8580
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
8571
8581
  !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$K, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$z, [
8572
- createBaseVNode("div", _hoisted_4$p, toDisplayString(label.value), 1),
8573
- createBaseVNode("div", _hoisted_5$d, toDisplayString(text.value), 1)
8582
+ createBaseVNode("div", _hoisted_4$q, toDisplayString(label.value), 1),
8583
+ createBaseVNode("div", _hoisted_5$e, toDisplayString(text.value), 1)
8574
8584
  ]))
8575
8585
  ], 16));
8576
8586
  };
@@ -8910,7 +8920,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8910
8920
  const _hoisted_1$_ = ["href"];
8911
8921
  const _hoisted_2$I = { class: "lupa-search-box-product-image-section" };
8912
8922
  const _hoisted_3$x = { class: "lupa-search-box-product-details-section" };
8913
- const _hoisted_4$o = {
8923
+ const _hoisted_4$p = {
8914
8924
  key: 0,
8915
8925
  class: "lupa-search-box-product-add-to-cart-section"
8916
8926
  };
@@ -8989,7 +8999,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8989
8999
  }, null, 8, ["item", "element", "labels", "link"]);
8990
9000
  }), 128))
8991
9001
  ]),
8992
- addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$o, [
9002
+ addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$p, [
8993
9003
  createVNode(_sfc_main$13, {
8994
9004
  class: "lupa-search-box-product-element",
8995
9005
  item: _ctx.item,
@@ -9113,7 +9123,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9113
9123
  }
9114
9124
  }
9115
9125
  });
9116
- if (!link) {
9126
+ if (!link || eventType === "addToCart") {
9117
9127
  return;
9118
9128
  }
9119
9129
  emit2("product-click");
@@ -9225,7 +9235,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9225
9235
  key: 0,
9226
9236
  class: "lupa-panel-title"
9227
9237
  };
9228
- const _hoisted_4$n = {
9238
+ const _hoisted_4$o = {
9229
9239
  key: 1,
9230
9240
  id: "lupa-search-box-panel"
9231
9241
  };
@@ -9406,7 +9416,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9406
9416
  showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
9407
9417
  onGoToResults: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("go-to-results"))
9408
9418
  }, null, 8, ["labels", "showTotalCount"])) : createCommentVNode("", true)
9409
- ])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_4$n, [
9419
+ ])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_4$o, [
9410
9420
  createVNode(_sfc_main$1h, {
9411
9421
  options: _ctx.options.history,
9412
9422
  history: history.value,
@@ -9784,7 +9794,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9784
9794
  key: 1,
9785
9795
  "data-cy": "did-you-mean-label"
9786
9796
  };
9787
- const _hoisted_4$m = { key: 1 };
9797
+ const _hoisted_4$n = { key: 1 };
9788
9798
  const _sfc_main$Z = /* @__PURE__ */ defineComponent({
9789
9799
  __name: "SearchResultsDidYouMean",
9790
9800
  props: {
@@ -9835,7 +9845,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9835
9845
  class: "lupa-did-you-mean lupa-highlighted-search-text",
9836
9846
  "data-cy": "did-you-mean-value",
9837
9847
  onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
9838
- }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$m, toDisplayString(label) + " ", 1))
9848
+ }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$n, toDisplayString(label) + " ", 1))
9839
9849
  ]);
9840
9850
  }), 128))
9841
9851
  ])) : createCommentVNode("", true)
@@ -9885,7 +9895,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9885
9895
  key: 1,
9886
9896
  class: "lupa-results-total-count"
9887
9897
  };
9888
- const _hoisted_4$l = ["innerHTML"];
9898
+ const _hoisted_4$m = ["innerHTML"];
9889
9899
  const _sfc_main$X = /* @__PURE__ */ defineComponent({
9890
9900
  __name: "SearchResultsTitle",
9891
9901
  props: {
@@ -9934,7 +9944,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9934
9944
  key: 2,
9935
9945
  class: "lupa-result-page-description-top",
9936
9946
  innerHTML: descriptionTop.value
9937
- }, null, 8, _hoisted_4$l)) : createCommentVNode("", true)
9947
+ }, null, 8, _hoisted_4$m)) : createCommentVNode("", true)
9938
9948
  ]);
9939
9949
  };
9940
9950
  }
@@ -9980,7 +9990,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9980
9990
  key: 0,
9981
9991
  class: "filter-values"
9982
9992
  };
9983
- const _hoisted_4$k = { class: "lupa-current-filter-list" };
9993
+ const _hoisted_4$l = { class: "lupa-current-filter-list" };
9984
9994
  const _sfc_main$V = /* @__PURE__ */ defineComponent({
9985
9995
  __name: "CurrentFilters",
9986
9996
  props: {
@@ -10046,7 +10056,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10046
10056
  }, null, 2)) : createCommentVNode("", true)
10047
10057
  ]),
10048
10058
  !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$s, [
10049
- createBaseVNode("div", _hoisted_4$k, [
10059
+ createBaseVNode("div", _hoisted_4$l, [
10050
10060
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(displayFilters), (filter) => {
10051
10061
  return openBlock(), createBlock(_sfc_main$W, {
10052
10062
  key: filter.key + "_" + filter.value,
@@ -10114,8 +10124,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10114
10124
  };
10115
10125
  const _hoisted_2$A = { class: "lupa-category-back" };
10116
10126
  const _hoisted_3$r = ["href"];
10117
- const _hoisted_4$j = ["href"];
10118
- const _hoisted_5$c = { class: "lupa-child-category-list" };
10127
+ const _hoisted_4$k = ["href"];
10128
+ const _hoisted_5$d = { class: "lupa-child-category-list" };
10119
10129
  const _sfc_main$T = /* @__PURE__ */ defineComponent({
10120
10130
  __name: "CategoryFilter",
10121
10131
  props: {
@@ -10219,9 +10229,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10219
10229
  href: parentUrlLink.value,
10220
10230
  class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
10221
10231
  onClick: handleNavigationParent
10222
- }, toDisplayString(parentTitle.value), 11, _hoisted_4$j)
10232
+ }, toDisplayString(parentTitle.value), 11, _hoisted_4$k)
10223
10233
  ], 2),
10224
- createBaseVNode("div", _hoisted_5$c, [
10234
+ createBaseVNode("div", _hoisted_5$d, [
10225
10235
  (openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
10226
10236
  return openBlock(), createBlock(_sfc_main$U, {
10227
10237
  key: getCategoryKey(child),
@@ -10240,8 +10250,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10240
10250
  };
10241
10251
  const _hoisted_2$z = ["placeholder"];
10242
10252
  const _hoisted_3$q = { class: "lupa-terms-list" };
10243
- const _hoisted_4$i = ["onClick"];
10244
- const _hoisted_5$b = { class: "lupa-term-checkbox-wrapper" };
10253
+ const _hoisted_4$j = ["onClick"];
10254
+ const _hoisted_5$c = { class: "lupa-term-checkbox-wrapper" };
10245
10255
  const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
10246
10256
  const _hoisted_7$6 = { class: "lupa-term-label" };
10247
10257
  const _hoisted_8$1 = {
@@ -10337,7 +10347,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10337
10347
  key: item.title,
10338
10348
  onClick: ($event) => handleFacetClick(item)
10339
10349
  }, [
10340
- createBaseVNode("div", _hoisted_5$b, [
10350
+ createBaseVNode("div", _hoisted_5$c, [
10341
10351
  createBaseVNode("span", {
10342
10352
  class: normalizeClass(["lupa-term-checkbox", { checked: isChecked(item) }])
10343
10353
  }, null, 2)
@@ -10346,7 +10356,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10346
10356
  createBaseVNode("span", _hoisted_7$6, toDisplayString(item.title), 1),
10347
10357
  _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$1, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
10348
10358
  ])
10349
- ], 10, _hoisted_4$i);
10359
+ ], 10, _hoisted_4$j);
10350
10360
  }), 128))
10351
10361
  ]),
10352
10362
  displayShowMore.value ? (openBlock(), createElementBlock("div", {
@@ -11346,12 +11356,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11346
11356
  key: 1,
11347
11357
  class: "lupa-stats-facet-summary-input"
11348
11358
  };
11349
- const _hoisted_4$h = {
11359
+ const _hoisted_4$i = {
11350
11360
  key: 0,
11351
11361
  class: "lupa-stats-range-label"
11352
11362
  };
11353
- const _hoisted_5$a = { class: "lupa-stats-from" };
11354
- const _hoisted_6$7 = ["max", "min", "pattern"];
11363
+ const _hoisted_5$b = { class: "lupa-stats-from" };
11364
+ const _hoisted_6$7 = ["max", "min", "pattern", "aria-label"];
11355
11365
  const _hoisted_7$5 = { key: 0 };
11356
11366
  const _hoisted_8 = /* @__PURE__ */ createBaseVNode("div", { class: "lupa-stats-separator" }, null, -1);
11357
11367
  const _hoisted_9 = {
@@ -11359,7 +11369,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11359
11369
  class: "lupa-stats-range-label"
11360
11370
  };
11361
11371
  const _hoisted_10 = { class: "lupa-stats-to" };
11362
- const _hoisted_11 = ["max", "min", "pattern"];
11372
+ const _hoisted_11 = ["max", "min", "pattern", "aria-label"];
11363
11373
  const _hoisted_12 = { key: 0 };
11364
11374
  const _hoisted_13 = {
11365
11375
  key: 2,
@@ -11487,6 +11497,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11487
11497
  const sliderInputFormat = computed(() => {
11488
11498
  return isPrice.value ? `[0-9]+([${separator.value}][0-9]{1,2})?` : void 0;
11489
11499
  });
11500
+ const sliderAria = computed(() => {
11501
+ var _a, _b, _c, _d, _e, _f;
11502
+ return {
11503
+ "aria-label": ((_b = (_a = props.options.stats) == null ? void 0 : _a.labels) == null ? void 0 : _b.sliderDotAriaLabel) ? `${(_d = (_c = props.options.stats) == null ? void 0 : _c.labels) == null ? void 0 : _d.sliderDotAriaLabel} - ${(_e = props.facet) == null ? void 0 : _e.label}` : `Range slider control dot for ${(_f = props.facet) == null ? void 0 : _f.label}`
11504
+ };
11505
+ });
11506
+ const ariaLabelFrom = computed(() => {
11507
+ var _a, _b, _c, _d, _e;
11508
+ return `${(_b = (_a = props.facet) == null ? void 0 : _a.label) != null ? _b : ""} ${(_e = (_d = (_c = props.options.stats) == null ? void 0 : _c.labels) == null ? void 0 : _d.ariaFrom) != null ? _e : rangeLabelFrom.value}`;
11509
+ });
11510
+ const ariaLabelTo = computed(() => {
11511
+ var _a, _b, _c, _d, _e;
11512
+ return `${(_b = (_a = props.facet) == null ? void 0 : _a.label) != null ? _b : ""} ${(_e = (_d = (_c = props.options.stats) == null ? void 0 : _c.labels) == null ? void 0 : _d.ariaTo) != null ? _e : rangeLabelTo.value}`;
11513
+ });
11490
11514
  watch(currentMinValue, () => {
11491
11515
  innerSliderRange.value = [];
11492
11516
  });
@@ -11516,15 +11540,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11516
11540
  return openBlock(), createElementBlock("div", _hoisted_1$O, [
11517
11541
  !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$y, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$p, [
11518
11542
  createBaseVNode("div", null, [
11519
- rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$h, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
11520
- createBaseVNode("div", _hoisted_5$a, [
11543
+ rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$i, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
11544
+ createBaseVNode("div", _hoisted_5$b, [
11521
11545
  withDirectives(createBaseVNode("input", {
11522
11546
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
11523
11547
  type: "text",
11524
11548
  maxlength: "8",
11525
11549
  max: facetMax.value,
11526
11550
  min: facetMin.value,
11527
- pattern: sliderInputFormat.value
11551
+ pattern: sliderInputFormat.value,
11552
+ "aria-label": ariaLabelFrom.value
11528
11553
  }, null, 8, _hoisted_6$7), [
11529
11554
  [
11530
11555
  vModelText,
@@ -11546,7 +11571,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11546
11571
  maxlength: "8",
11547
11572
  max: facetMax.value,
11548
11573
  min: facetMin.value,
11549
- pattern: sliderInputFormat.value
11574
+ pattern: sliderInputFormat.value,
11575
+ "aria-label": ariaLabelTo.value
11550
11576
  }, null, 8, _hoisted_11), [
11551
11577
  [
11552
11578
  vModelText,
@@ -11567,11 +11593,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11567
11593
  max: facetMax.value,
11568
11594
  lazy: true,
11569
11595
  step: interval.value,
11596
+ aria: sliderAria.value,
11570
11597
  modelValue: sliderRange.value,
11571
11598
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => sliderRange.value = $event),
11572
11599
  onSlide: handleDragging,
11573
11600
  onEnd: handleChange
11574
- }, null, 8, ["min", "max", "step", "modelValue"])
11601
+ }, null, 8, ["min", "max", "step", "aria", "modelValue"])
11575
11602
  ])) : createCommentVNode("", true)
11576
11603
  ]);
11577
11604
  };
@@ -11580,11 +11607,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11580
11607
  const _hoisted_1$N = { class: "lupa-term-checkbox-wrapper" };
11581
11608
  const _hoisted_2$x = { class: "lupa-term-checkbox-label" };
11582
11609
  const _hoisted_3$o = { class: "lupa-term-label" };
11583
- const _hoisted_4$g = {
11610
+ const _hoisted_4$h = {
11584
11611
  key: 0,
11585
11612
  class: "lupa-term-count"
11586
11613
  };
11587
- const _hoisted_5$9 = {
11614
+ const _hoisted_5$a = {
11588
11615
  key: 0,
11589
11616
  class: "lupa-facet-level"
11590
11617
  };
@@ -11641,10 +11668,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11641
11668
  ]),
11642
11669
  createBaseVNode("div", _hoisted_2$x, [
11643
11670
  createBaseVNode("span", _hoisted_3$o, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
11644
- _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$g, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
11671
+ _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$h, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
11645
11672
  ])
11646
11673
  ]),
11647
- showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$9, [
11674
+ showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$a, [
11648
11675
  (openBlock(true), createElementBlock(Fragment, null, renderList(treeItem.value.children, (itemChild) => {
11649
11676
  return openBlock(), createBlock(_component_HierarchyFacetLevel, {
11650
11677
  key: itemChild.title,
@@ -12077,8 +12104,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12077
12104
  };
12078
12105
  const _hoisted_2$t = ["onClick"];
12079
12106
  const _hoisted_3$m = { class: "lupa-mobile-sidebar-content" };
12080
- const _hoisted_4$f = { class: "lupa-sidebar-top" };
12081
- const _hoisted_5$8 = { class: "lupa-sidebar-title" };
12107
+ const _hoisted_4$g = { class: "lupa-sidebar-top" };
12108
+ const _hoisted_5$9 = { class: "lupa-sidebar-title" };
12082
12109
  const _hoisted_6$6 = {
12083
12110
  key: 0,
12084
12111
  class: "lupa-sidebar-filter-count"
@@ -12116,8 +12143,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12116
12143
  onClick: withModifiers(handleMobileToggle, ["stop"])
12117
12144
  }, null, 8, _hoisted_2$t),
12118
12145
  createBaseVNode("div", _hoisted_3$m, [
12119
- createBaseVNode("div", _hoisted_4$f, [
12120
- createBaseVNode("div", _hoisted_5$8, [
12146
+ createBaseVNode("div", _hoisted_4$g, [
12147
+ createBaseVNode("div", _hoisted_5$9, [
12121
12148
  createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
12122
12149
  isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
12123
12150
  ]),
@@ -12143,7 +12170,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12143
12170
  key: 1,
12144
12171
  class: "lupa-search-results-breadcrumb-text"
12145
12172
  };
12146
- const _hoisted_4$e = { key: 2 };
12173
+ const _hoisted_4$f = { key: 2 };
12147
12174
  const _sfc_main$J = /* @__PURE__ */ defineComponent({
12148
12175
  __name: "SearchResultsBreadcrumbs",
12149
12176
  props: {
@@ -12184,7 +12211,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12184
12211
  return handleNavigation(e, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
12185
12212
  }
12186
12213
  }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$s)) : (openBlock(), createElementBlock("span", _hoisted_3$l, toDisplayString(getLabel(breadcrumb.label)), 1)),
12187
- index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$e, " / ")) : createCommentVNode("", true)
12214
+ index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$f, " / ")) : createCommentVNode("", true)
12188
12215
  ]);
12189
12216
  }), 128))
12190
12217
  ]);
@@ -12285,7 +12312,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12285
12312
  class: "lupa-page-number-separator"
12286
12313
  };
12287
12314
  const _hoisted_3$k = ["onClick"];
12288
- const _hoisted_4$d = {
12315
+ const _hoisted_4$e = {
12289
12316
  key: 0,
12290
12317
  class: "lupa-page-number-separator"
12291
12318
  };
@@ -12376,7 +12403,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12376
12403
  }, toDisplayString(page), 11, _hoisted_3$k);
12377
12404
  }), 128)),
12378
12405
  showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
12379
- showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$d, "...")) : createCommentVNode("", true),
12406
+ showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$e, "...")) : createCommentVNode("", true),
12380
12407
  createBaseVNode("div", {
12381
12408
  class: "lupa-page-number lupa-page-number-last",
12382
12409
  onClick: _cache[2] || (_cache[2] = () => {
@@ -12401,6 +12428,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12401
12428
  };
12402
12429
  const _hoisted_2$q = { id: "lupa-select" };
12403
12430
  const _hoisted_3$j = { class: "lupa-select-label" };
12431
+ const _hoisted_4$d = ["aria-label"];
12404
12432
  const _sfc_main$E = /* @__PURE__ */ defineComponent({
12405
12433
  __name: "SearchResultsPageSize",
12406
12434
  props: {
@@ -12423,6 +12451,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12423
12451
  createBaseVNode("label", _hoisted_3$j, toDisplayString(_ctx.label), 1),
12424
12452
  createBaseVNode("select", {
12425
12453
  class: "lupa-select-dropdown",
12454
+ "aria-label": _ctx.label,
12426
12455
  "data-cy": "lupa-page-size-select-dropdown",
12427
12456
  onChange: handleSelect,
12428
12457
  ref_key: "select",
@@ -12431,7 +12460,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12431
12460
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options.sizes, (option) => {
12432
12461
  return openBlock(), createElementBlock("option", { key: option }, toDisplayString(option), 1);
12433
12462
  }), 128))
12434
- ], 544)
12463
+ ], 40, _hoisted_4$d)
12435
12464
  ])
12436
12465
  ]);
12437
12466
  };
@@ -12443,7 +12472,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12443
12472
  };
12444
12473
  const _hoisted_2$p = { id: "lupa-select" };
12445
12474
  const _hoisted_3$i = { class: "lupa-select-label" };
12446
- const _hoisted_4$c = ["value"];
12475
+ const _hoisted_4$c = ["aria-label"];
12476
+ const _hoisted_5$8 = ["value"];
12447
12477
  const _sfc_main$D = /* @__PURE__ */ defineComponent({
12448
12478
  __name: "SearchResultsSort",
12449
12479
  props: {
@@ -12497,6 +12527,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12497
12527
  createBaseVNode("label", _hoisted_3$i, toDisplayString(_ctx.options.label), 1),
12498
12528
  withDirectives(createBaseVNode("select", {
12499
12529
  class: "lupa-select-dropdown",
12530
+ "aria-label": _ctx.options.label,
12500
12531
  "data-cy": "lupa-sort-select-dropdown",
12501
12532
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectedKey.value = $event),
12502
12533
  onChange: handleSelect,
@@ -12506,9 +12537,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12506
12537
  return openBlock(), createElementBlock("option", {
12507
12538
  key: option.key,
12508
12539
  value: option.key
12509
- }, toDisplayString(option.label), 9, _hoisted_4$c);
12540
+ }, toDisplayString(option.label), 9, _hoisted_5$8);
12510
12541
  }), 128))
12511
- ], 544), [
12542
+ ], 40, _hoisted_4$c), [
12512
12543
  [vModelSelect, selectedKey.value]
12513
12544
  ])
12514
12545
  ])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlupa/client",
3
- "version": "1.6.5",
3
+ "version": "1.6.6",
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.7.7",
23
+ "@getlupa/vue": "0.7.9",
24
24
  "@rushstack/eslint-patch": "^1.3.2",
25
25
  "@tsconfig/node18": "^2.0.1",
26
26
  "@types/jsdom": "^21.1.1",