@getlupa/vue 0.7.8 → 0.7.9

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.
@@ -3166,8 +3166,8 @@ const useSearchBoxStore = defineStore("searchBox", () => {
3166
3166
  const _hoisted_1$1c = { id: "lupa-search-box-input-container" };
3167
3167
  const _hoisted_2$P = { class: "lupa-input-clear" };
3168
3168
  const _hoisted_3$B = { id: "lupa-search-box-input" };
3169
- const _hoisted_4$r = ["value"];
3170
- const _hoisted_5$f = ["placeholder"];
3169
+ const _hoisted_4$s = ["value"];
3170
+ const _hoisted_5$g = ["aria-label", "placeholder"];
3171
3171
  const _hoisted_6$9 = {
3172
3172
  key: 0,
3173
3173
  class: "lupa-close-label"
@@ -3216,6 +3216,10 @@ const _sfc_main$1k = /* @__PURE__ */ vue.defineComponent({
3216
3216
  var _a;
3217
3217
  return __spreadValues({}, (_a = props.options.inputAttributes) != null ? _a : {});
3218
3218
  });
3219
+ const ariaLabel = vue.computed(() => {
3220
+ var _a;
3221
+ return (_a = labels.value.searchInputAriaLabel) != null ? _a : "Search input";
3222
+ });
3219
3223
  vue.watch(suggestedValue, () => {
3220
3224
  if (suggestedValue.value.override) {
3221
3225
  input.value = suggestedValue.value.item.suggestion;
@@ -3259,22 +3263,24 @@ const _sfc_main$1k = /* @__PURE__ */ vue.defineComponent({
3259
3263
  vue.createElementVNode("div", _hoisted_3$B, [
3260
3264
  vue.createElementVNode("input", {
3261
3265
  class: "lupa-hint",
3266
+ "aria-hidden": "true",
3262
3267
  value: showHint.value ? suggestedValue.value.item.suggestion : "",
3263
3268
  disabled: ""
3264
- }, null, 8, _hoisted_4$r),
3269
+ }, null, 8, _hoisted_4$s),
3265
3270
  vue.withDirectives(vue.createElementVNode("input", vue.mergeProps({
3266
3271
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
3267
3272
  }, inputAttributes.value, {
3268
3273
  ref_key: "mainInput",
3269
3274
  ref: mainInput,
3270
3275
  autocomplete: "off",
3276
+ "aria-label": ariaLabel.value,
3271
3277
  class: "lupa-search-box-input-field",
3272
3278
  "data-cy": "lupa-search-box-input-field",
3273
3279
  type: "text",
3274
3280
  placeholder: labels.value.placeholder,
3275
3281
  onInput: handleInput,
3276
3282
  onFocus: handleFocus
3277
- }), null, 16, _hoisted_5$f), [
3283
+ }), null, 16, _hoisted_5$g), [
3278
3284
  [vue.vModelText, inputValue.value]
3279
3285
  ])
3280
3286
  ]),
@@ -3440,11 +3446,11 @@ const _hoisted_3$A = {
3440
3446
  class: "lupa-suggestion-facet",
3441
3447
  "data-cy": "lupa-suggestion-facet"
3442
3448
  };
3443
- const _hoisted_4$q = {
3449
+ const _hoisted_4$r = {
3444
3450
  class: "lupa-suggestion-facet-label",
3445
3451
  "data-cy": "lupa-suggestion-facet-label"
3446
3452
  };
3447
- const _hoisted_5$e = {
3453
+ const _hoisted_5$f = {
3448
3454
  class: "lupa-suggestion-facet-value",
3449
3455
  "data-cy": "lupa-suggestion-facet-value"
3450
3456
  };
@@ -3486,8 +3492,8 @@ const _sfc_main$1f = /* @__PURE__ */ vue.defineComponent({
3486
3492
  innerHTML: _ctx.suggestion.displayHighlight
3487
3493
  }, null, 8, _hoisted_1$18)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$N, vue.toDisplayString(_ctx.suggestion.display), 1)),
3488
3494
  _ctx.suggestion.facet ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$A, [
3489
- vue.createElementVNode("span", _hoisted_4$q, vue.toDisplayString(facetLabel.value), 1),
3490
- vue.createElementVNode("span", _hoisted_5$e, vue.toDisplayString(_ctx.suggestion.facet.title), 1)
3495
+ vue.createElementVNode("span", _hoisted_4$r, vue.toDisplayString(facetLabel.value), 1),
3496
+ vue.createElementVNode("span", _hoisted_5$f, vue.toDisplayString(_ctx.suggestion.facet.title), 1)
3491
3497
  ])) : vue.createCommentVNode("", true)
3492
3498
  ]);
3493
3499
  };
@@ -3894,8 +3900,8 @@ const _sfc_main$17 = /* @__PURE__ */ vue.defineComponent({
3894
3900
  const _hoisted_1$11 = ["innerHTML"];
3895
3901
  const _hoisted_2$K = { key: 0 };
3896
3902
  const _hoisted_3$z = { key: 1 };
3897
- const _hoisted_4$p = { class: "lupa-search-box-custom-label" };
3898
- const _hoisted_5$d = { class: "lupa-search-box-custom-text" };
3903
+ const _hoisted_4$q = { class: "lupa-search-box-custom-label" };
3904
+ const _hoisted_5$e = { class: "lupa-search-box-custom-text" };
3899
3905
  const _sfc_main$16 = /* @__PURE__ */ vue.defineComponent({
3900
3906
  __name: "SearchBoxProductCustom",
3901
3907
  props: {
@@ -3927,8 +3933,8 @@ const _sfc_main$16 = /* @__PURE__ */ vue.defineComponent({
3927
3933
  class: [className.value, "lupa-search-box-product-custom"]
3928
3934
  }, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
3929
3935
  !label.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$K, vue.toDisplayString(text.value), 1)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$z, [
3930
- vue.createElementVNode("div", _hoisted_4$p, vue.toDisplayString(label.value), 1),
3931
- vue.createElementVNode("div", _hoisted_5$d, vue.toDisplayString(text.value), 1)
3936
+ vue.createElementVNode("div", _hoisted_4$q, vue.toDisplayString(label.value), 1),
3937
+ vue.createElementVNode("div", _hoisted_5$e, vue.toDisplayString(text.value), 1)
3932
3938
  ]))
3933
3939
  ], 16));
3934
3940
  };
@@ -4268,7 +4274,7 @@ const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadV
4268
4274
  const _hoisted_1$_ = ["href"];
4269
4275
  const _hoisted_2$I = { class: "lupa-search-box-product-image-section" };
4270
4276
  const _hoisted_3$x = { class: "lupa-search-box-product-details-section" };
4271
- const _hoisted_4$o = {
4277
+ const _hoisted_4$p = {
4272
4278
  key: 0,
4273
4279
  class: "lupa-search-box-product-add-to-cart-section"
4274
4280
  };
@@ -4347,7 +4353,7 @@ const _sfc_main$12 = /* @__PURE__ */ vue.defineComponent({
4347
4353
  }, null, 8, ["item", "element", "labels", "link"]);
4348
4354
  }), 128))
4349
4355
  ]),
4350
- addToCartElement.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$o, [
4356
+ addToCartElement.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$p, [
4351
4357
  vue.createVNode(_sfc_main$13, {
4352
4358
  class: "lupa-search-box-product-element",
4353
4359
  item: _ctx.item,
@@ -4583,7 +4589,7 @@ const _hoisted_3$w = {
4583
4589
  key: 0,
4584
4590
  class: "lupa-panel-title"
4585
4591
  };
4586
- const _hoisted_4$n = {
4592
+ const _hoisted_4$o = {
4587
4593
  key: 1,
4588
4594
  id: "lupa-search-box-panel"
4589
4595
  };
@@ -4764,7 +4770,7 @@ const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadVa
4764
4770
  showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
4765
4771
  onGoToResults: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("go-to-results"))
4766
4772
  }, null, 8, ["labels", "showTotalCount"])) : vue.createCommentVNode("", true)
4767
- ])) : displayHistory.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$n, [
4773
+ ])) : displayHistory.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$o, [
4768
4774
  vue.createVNode(_sfc_main$1h, {
4769
4775
  options: _ctx.options.history,
4770
4776
  history: history.value,
@@ -5158,7 +5164,7 @@ const _hoisted_3$v = {
5158
5164
  key: 1,
5159
5165
  "data-cy": "did-you-mean-label"
5160
5166
  };
5161
- const _hoisted_4$m = { key: 1 };
5167
+ const _hoisted_4$n = { key: 1 };
5162
5168
  const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
5163
5169
  __name: "SearchResultsDidYouMean",
5164
5170
  props: {
@@ -5209,7 +5215,7 @@ const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
5209
5215
  class: "lupa-did-you-mean lupa-highlighted-search-text",
5210
5216
  "data-cy": "did-you-mean-value",
5211
5217
  onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
5212
- }, vue.toDisplayString(didYouMeanValue.value) + " ", 1)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$m, vue.toDisplayString(label) + " ", 1))
5218
+ }, vue.toDisplayString(didYouMeanValue.value) + " ", 1)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$n, vue.toDisplayString(label) + " ", 1))
5213
5219
  ]);
5214
5220
  }), 128))
5215
5221
  ])) : vue.createCommentVNode("", true)
@@ -5259,7 +5265,7 @@ const _hoisted_3$u = {
5259
5265
  key: 1,
5260
5266
  class: "lupa-results-total-count"
5261
5267
  };
5262
- const _hoisted_4$l = ["innerHTML"];
5268
+ const _hoisted_4$m = ["innerHTML"];
5263
5269
  const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
5264
5270
  __name: "SearchResultsTitle",
5265
5271
  props: {
@@ -5308,7 +5314,7 @@ const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
5308
5314
  key: 2,
5309
5315
  class: "lupa-result-page-description-top",
5310
5316
  innerHTML: descriptionTop.value
5311
- }, null, 8, _hoisted_4$l)) : vue.createCommentVNode("", true)
5317
+ }, null, 8, _hoisted_4$m)) : vue.createCommentVNode("", true)
5312
5318
  ]);
5313
5319
  };
5314
5320
  }
@@ -5354,7 +5360,7 @@ const _hoisted_3$s = {
5354
5360
  key: 0,
5355
5361
  class: "filter-values"
5356
5362
  };
5357
- const _hoisted_4$k = { class: "lupa-current-filter-list" };
5363
+ const _hoisted_4$l = { class: "lupa-current-filter-list" };
5358
5364
  const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
5359
5365
  __name: "CurrentFilters",
5360
5366
  props: {
@@ -5420,7 +5426,7 @@ const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
5420
5426
  }, null, 2)) : vue.createCommentVNode("", true)
5421
5427
  ]),
5422
5428
  !_ctx.expandable || isOpen.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$s, [
5423
- vue.createElementVNode("div", _hoisted_4$k, [
5429
+ vue.createElementVNode("div", _hoisted_4$l, [
5424
5430
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(displayFilters), (filter) => {
5425
5431
  return vue.openBlock(), vue.createBlock(_sfc_main$W, {
5426
5432
  key: filter.key + "_" + filter.value,
@@ -5488,8 +5494,8 @@ const _hoisted_1$Q = {
5488
5494
  };
5489
5495
  const _hoisted_2$A = { class: "lupa-category-back" };
5490
5496
  const _hoisted_3$r = ["href"];
5491
- const _hoisted_4$j = ["href"];
5492
- const _hoisted_5$c = { class: "lupa-child-category-list" };
5497
+ const _hoisted_4$k = ["href"];
5498
+ const _hoisted_5$d = { class: "lupa-child-category-list" };
5493
5499
  const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
5494
5500
  __name: "CategoryFilter",
5495
5501
  props: {
@@ -5593,9 +5599,9 @@ const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
5593
5599
  href: parentUrlLink.value,
5594
5600
  class: vue.normalizeClass({ "lupa-title-category": !hasBackButton.value }),
5595
5601
  onClick: handleNavigationParent
5596
- }, vue.toDisplayString(parentTitle.value), 11, _hoisted_4$j)
5602
+ }, vue.toDisplayString(parentTitle.value), 11, _hoisted_4$k)
5597
5603
  ], 2),
5598
- vue.createElementVNode("div", _hoisted_5$c, [
5604
+ vue.createElementVNode("div", _hoisted_5$d, [
5599
5605
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(categoryChildren.value, (child) => {
5600
5606
  return vue.openBlock(), vue.createBlock(_sfc_main$U, {
5601
5607
  key: getCategoryKey(child),
@@ -5614,8 +5620,8 @@ const _hoisted_1$P = {
5614
5620
  };
5615
5621
  const _hoisted_2$z = ["placeholder"];
5616
5622
  const _hoisted_3$q = { class: "lupa-terms-list" };
5617
- const _hoisted_4$i = ["onClick"];
5618
- const _hoisted_5$b = { class: "lupa-term-checkbox-wrapper" };
5623
+ const _hoisted_4$j = ["onClick"];
5624
+ const _hoisted_5$c = { class: "lupa-term-checkbox-wrapper" };
5619
5625
  const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
5620
5626
  const _hoisted_7$6 = { class: "lupa-term-label" };
5621
5627
  const _hoisted_8$1 = {
@@ -5711,7 +5717,7 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
5711
5717
  key: item.title,
5712
5718
  onClick: ($event) => handleFacetClick(item)
5713
5719
  }, [
5714
- vue.createElementVNode("div", _hoisted_5$b, [
5720
+ vue.createElementVNode("div", _hoisted_5$c, [
5715
5721
  vue.createElementVNode("span", {
5716
5722
  class: vue.normalizeClass(["lupa-term-checkbox", { checked: isChecked(item) }])
5717
5723
  }, null, 2)
@@ -5720,7 +5726,7 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
5720
5726
  vue.createElementVNode("span", _hoisted_7$6, vue.toDisplayString(item.title), 1),
5721
5727
  _ctx.options.showDocumentCount ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_8$1, "(" + vue.toDisplayString(item.count) + ")", 1)) : vue.createCommentVNode("", true)
5722
5728
  ])
5723
- ], 10, _hoisted_4$i);
5729
+ ], 10, _hoisted_4$j);
5724
5730
  }), 128))
5725
5731
  ]),
5726
5732
  displayShowMore.value ? (vue.openBlock(), vue.createElementBlock("div", {
@@ -6720,12 +6726,12 @@ const _hoisted_3$p = {
6720
6726
  key: 1,
6721
6727
  class: "lupa-stats-facet-summary-input"
6722
6728
  };
6723
- const _hoisted_4$h = {
6729
+ const _hoisted_4$i = {
6724
6730
  key: 0,
6725
6731
  class: "lupa-stats-range-label"
6726
6732
  };
6727
- const _hoisted_5$a = { class: "lupa-stats-from" };
6728
- const _hoisted_6$7 = ["max", "min", "pattern"];
6733
+ const _hoisted_5$b = { class: "lupa-stats-from" };
6734
+ const _hoisted_6$7 = ["max", "min", "pattern", "aria-label"];
6729
6735
  const _hoisted_7$5 = { key: 0 };
6730
6736
  const _hoisted_8 = /* @__PURE__ */ vue.createElementVNode("div", { class: "lupa-stats-separator" }, null, -1);
6731
6737
  const _hoisted_9 = {
@@ -6733,7 +6739,7 @@ const _hoisted_9 = {
6733
6739
  class: "lupa-stats-range-label"
6734
6740
  };
6735
6741
  const _hoisted_10 = { class: "lupa-stats-to" };
6736
- const _hoisted_11 = ["max", "min", "pattern"];
6742
+ const _hoisted_11 = ["max", "min", "pattern", "aria-label"];
6737
6743
  const _hoisted_12 = { key: 0 };
6738
6744
  const _hoisted_13 = {
6739
6745
  key: 2,
@@ -6861,6 +6867,20 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
6861
6867
  const sliderInputFormat = vue.computed(() => {
6862
6868
  return isPrice.value ? `[0-9]+([${separator.value}][0-9]{1,2})?` : void 0;
6863
6869
  });
6870
+ const sliderAria = vue.computed(() => {
6871
+ var _a, _b, _c, _d, _e, _f;
6872
+ return {
6873
+ "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}`
6874
+ };
6875
+ });
6876
+ const ariaLabelFrom = vue.computed(() => {
6877
+ var _a, _b, _c, _d, _e;
6878
+ 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}`;
6879
+ });
6880
+ const ariaLabelTo = vue.computed(() => {
6881
+ var _a, _b, _c, _d, _e;
6882
+ 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}`;
6883
+ });
6864
6884
  vue.watch(currentMinValue, () => {
6865
6885
  innerSliderRange.value = [];
6866
6886
  });
@@ -6890,15 +6910,16 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
6890
6910
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$O, [
6891
6911
  !isInputVisible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$y, vue.toDisplayString(statsSummary.value), 1)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$p, [
6892
6912
  vue.createElementVNode("div", null, [
6893
- rangeLabelFrom.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$h, vue.toDisplayString(rangeLabelFrom.value), 1)) : vue.createCommentVNode("", true),
6894
- vue.createElementVNode("div", _hoisted_5$a, [
6913
+ rangeLabelFrom.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$i, vue.toDisplayString(rangeLabelFrom.value), 1)) : vue.createCommentVNode("", true),
6914
+ vue.createElementVNode("div", _hoisted_5$b, [
6895
6915
  vue.withDirectives(vue.createElementVNode("input", {
6896
6916
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
6897
6917
  type: "text",
6898
6918
  maxlength: "8",
6899
6919
  max: facetMax.value,
6900
6920
  min: facetMin.value,
6901
- pattern: sliderInputFormat.value
6921
+ pattern: sliderInputFormat.value,
6922
+ "aria-label": ariaLabelFrom.value
6902
6923
  }, null, 8, _hoisted_6$7), [
6903
6924
  [
6904
6925
  vue.vModelText,
@@ -6920,7 +6941,8 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
6920
6941
  maxlength: "8",
6921
6942
  max: facetMax.value,
6922
6943
  min: facetMin.value,
6923
- pattern: sliderInputFormat.value
6944
+ pattern: sliderInputFormat.value,
6945
+ "aria-label": ariaLabelTo.value
6924
6946
  }, null, 8, _hoisted_11), [
6925
6947
  [
6926
6948
  vue.vModelText,
@@ -6941,11 +6963,12 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
6941
6963
  max: facetMax.value,
6942
6964
  lazy: true,
6943
6965
  step: interval.value,
6966
+ aria: sliderAria.value,
6944
6967
  modelValue: sliderRange.value,
6945
6968
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => sliderRange.value = $event),
6946
6969
  onSlide: handleDragging,
6947
6970
  onEnd: handleChange
6948
- }, null, 8, ["min", "max", "step", "modelValue"])
6971
+ }, null, 8, ["min", "max", "step", "aria", "modelValue"])
6949
6972
  ])) : vue.createCommentVNode("", true)
6950
6973
  ]);
6951
6974
  };
@@ -6954,11 +6977,11 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
6954
6977
  const _hoisted_1$N = { class: "lupa-term-checkbox-wrapper" };
6955
6978
  const _hoisted_2$x = { class: "lupa-term-checkbox-label" };
6956
6979
  const _hoisted_3$o = { class: "lupa-term-label" };
6957
- const _hoisted_4$g = {
6980
+ const _hoisted_4$h = {
6958
6981
  key: 0,
6959
6982
  class: "lupa-term-count"
6960
6983
  };
6961
- const _hoisted_5$9 = {
6984
+ const _hoisted_5$a = {
6962
6985
  key: 0,
6963
6986
  class: "lupa-facet-level"
6964
6987
  };
@@ -7015,10 +7038,10 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
7015
7038
  ]),
7016
7039
  vue.createElementVNode("div", _hoisted_2$x, [
7017
7040
  vue.createElementVNode("span", _hoisted_3$o, vue.toDisplayString(_ctx.item.title) + vue.toDisplayString(" "), 1),
7018
- _ctx.options.showDocumentCount ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$g, "(" + vue.toDisplayString(_ctx.item.count) + ")", 1)) : vue.createCommentVNode("", true)
7041
+ _ctx.options.showDocumentCount ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$h, "(" + vue.toDisplayString(_ctx.item.count) + ")", 1)) : vue.createCommentVNode("", true)
7019
7042
  ])
7020
7043
  ]),
7021
- showChildren.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$9, [
7044
+ showChildren.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$a, [
7022
7045
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(treeItem.value.children, (itemChild) => {
7023
7046
  return vue.openBlock(), vue.createBlock(_component_HierarchyFacetLevel, {
7024
7047
  key: itemChild.title,
@@ -7451,8 +7474,8 @@ const _hoisted_1$H = {
7451
7474
  };
7452
7475
  const _hoisted_2$t = ["onClick"];
7453
7476
  const _hoisted_3$m = { class: "lupa-mobile-sidebar-content" };
7454
- const _hoisted_4$f = { class: "lupa-sidebar-top" };
7455
- const _hoisted_5$8 = { class: "lupa-sidebar-title" };
7477
+ const _hoisted_4$g = { class: "lupa-sidebar-top" };
7478
+ const _hoisted_5$9 = { class: "lupa-sidebar-title" };
7456
7479
  const _hoisted_6$6 = {
7457
7480
  key: 0,
7458
7481
  class: "lupa-sidebar-filter-count"
@@ -7490,8 +7513,8 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
7490
7513
  onClick: vue.withModifiers(handleMobileToggle, ["stop"])
7491
7514
  }, null, 8, _hoisted_2$t),
7492
7515
  vue.createElementVNode("div", _hoisted_3$m, [
7493
- vue.createElementVNode("div", _hoisted_4$f, [
7494
- vue.createElementVNode("div", _hoisted_5$8, [
7516
+ vue.createElementVNode("div", _hoisted_4$g, [
7517
+ vue.createElementVNode("div", _hoisted_5$9, [
7495
7518
  vue.createTextVNode(vue.toDisplayString(sidebarTitle.value) + " ", 1),
7496
7519
  isFilterCountVisible.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_6$6, vue.toDisplayString(vue.unref(currentFilterCount)), 1)) : vue.createCommentVNode("", true)
7497
7520
  ]),
@@ -7517,7 +7540,7 @@ const _hoisted_3$l = {
7517
7540
  key: 1,
7518
7541
  class: "lupa-search-results-breadcrumb-text"
7519
7542
  };
7520
- const _hoisted_4$e = { key: 2 };
7543
+ const _hoisted_4$f = { key: 2 };
7521
7544
  const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
7522
7545
  __name: "SearchResultsBreadcrumbs",
7523
7546
  props: {
@@ -7558,7 +7581,7 @@ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
7558
7581
  return handleNavigation(e, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
7559
7582
  }
7560
7583
  }, vue.toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$s)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$l, vue.toDisplayString(getLabel(breadcrumb.label)), 1)),
7561
- index < breadcrumbsValue.value.length - 1 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$e, " / ")) : vue.createCommentVNode("", true)
7584
+ index < breadcrumbsValue.value.length - 1 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$f, " / ")) : vue.createCommentVNode("", true)
7562
7585
  ]);
7563
7586
  }), 128))
7564
7587
  ]);
@@ -7659,7 +7682,7 @@ const _hoisted_2$r = {
7659
7682
  class: "lupa-page-number-separator"
7660
7683
  };
7661
7684
  const _hoisted_3$k = ["onClick"];
7662
- const _hoisted_4$d = {
7685
+ const _hoisted_4$e = {
7663
7686
  key: 0,
7664
7687
  class: "lupa-page-number-separator"
7665
7688
  };
@@ -7750,7 +7773,7 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
7750
7773
  }, vue.toDisplayString(page), 11, _hoisted_3$k);
7751
7774
  }), 128)),
7752
7775
  showLastPage.value ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
7753
- showLastPageSeparator.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$d, "...")) : vue.createCommentVNode("", true),
7776
+ showLastPageSeparator.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$e, "...")) : vue.createCommentVNode("", true),
7754
7777
  vue.createElementVNode("div", {
7755
7778
  class: "lupa-page-number lupa-page-number-last",
7756
7779
  onClick: _cache[2] || (_cache[2] = () => {
@@ -7775,6 +7798,7 @@ const _hoisted_1$B = {
7775
7798
  };
7776
7799
  const _hoisted_2$q = { id: "lupa-select" };
7777
7800
  const _hoisted_3$j = { class: "lupa-select-label" };
7801
+ const _hoisted_4$d = ["aria-label"];
7778
7802
  const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
7779
7803
  __name: "SearchResultsPageSize",
7780
7804
  props: {
@@ -7797,6 +7821,7 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
7797
7821
  vue.createElementVNode("label", _hoisted_3$j, vue.toDisplayString(_ctx.label), 1),
7798
7822
  vue.createElementVNode("select", {
7799
7823
  class: "lupa-select-dropdown",
7824
+ "aria-label": _ctx.label,
7800
7825
  "data-cy": "lupa-page-size-select-dropdown",
7801
7826
  onChange: handleSelect,
7802
7827
  ref_key: "select",
@@ -7805,7 +7830,7 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
7805
7830
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.options.sizes, (option) => {
7806
7831
  return vue.openBlock(), vue.createElementBlock("option", { key: option }, vue.toDisplayString(option), 1);
7807
7832
  }), 128))
7808
- ], 544)
7833
+ ], 40, _hoisted_4$d)
7809
7834
  ])
7810
7835
  ]);
7811
7836
  };
@@ -7817,7 +7842,8 @@ const _hoisted_1$A = {
7817
7842
  };
7818
7843
  const _hoisted_2$p = { id: "lupa-select" };
7819
7844
  const _hoisted_3$i = { class: "lupa-select-label" };
7820
- const _hoisted_4$c = ["value"];
7845
+ const _hoisted_4$c = ["aria-label"];
7846
+ const _hoisted_5$8 = ["value"];
7821
7847
  const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
7822
7848
  __name: "SearchResultsSort",
7823
7849
  props: {
@@ -7871,6 +7897,7 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
7871
7897
  vue.createElementVNode("label", _hoisted_3$i, vue.toDisplayString(_ctx.options.label), 1),
7872
7898
  vue.withDirectives(vue.createElementVNode("select", {
7873
7899
  class: "lupa-select-dropdown",
7900
+ "aria-label": _ctx.options.label,
7874
7901
  "data-cy": "lupa-sort-select-dropdown",
7875
7902
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectedKey.value = $event),
7876
7903
  onChange: handleSelect,
@@ -7880,9 +7907,9 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
7880
7907
  return vue.openBlock(), vue.createElementBlock("option", {
7881
7908
  key: option.key,
7882
7909
  value: option.key
7883
- }, vue.toDisplayString(option.label), 9, _hoisted_4$c);
7910
+ }, vue.toDisplayString(option.label), 9, _hoisted_5$8);
7884
7911
  }), 128))
7885
- ], 544), [
7912
+ ], 40, _hoisted_4$c), [
7886
7913
  [vue.vModelSelect, selectedKey.value]
7887
7914
  ])
7888
7915
  ])
@@ -3164,8 +3164,8 @@ const useSearchBoxStore = defineStore("searchBox", () => {
3164
3164
  const _hoisted_1$1c = { id: "lupa-search-box-input-container" };
3165
3165
  const _hoisted_2$P = { class: "lupa-input-clear" };
3166
3166
  const _hoisted_3$B = { id: "lupa-search-box-input" };
3167
- const _hoisted_4$r = ["value"];
3168
- const _hoisted_5$f = ["placeholder"];
3167
+ const _hoisted_4$s = ["value"];
3168
+ const _hoisted_5$g = ["aria-label", "placeholder"];
3169
3169
  const _hoisted_6$9 = {
3170
3170
  key: 0,
3171
3171
  class: "lupa-close-label"
@@ -3214,6 +3214,10 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
3214
3214
  var _a;
3215
3215
  return __spreadValues({}, (_a = props.options.inputAttributes) != null ? _a : {});
3216
3216
  });
3217
+ const ariaLabel = computed(() => {
3218
+ var _a;
3219
+ return (_a = labels.value.searchInputAriaLabel) != null ? _a : "Search input";
3220
+ });
3217
3221
  watch(suggestedValue, () => {
3218
3222
  if (suggestedValue.value.override) {
3219
3223
  input.value = suggestedValue.value.item.suggestion;
@@ -3257,22 +3261,24 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
3257
3261
  createElementVNode("div", _hoisted_3$B, [
3258
3262
  createElementVNode("input", {
3259
3263
  class: "lupa-hint",
3264
+ "aria-hidden": "true",
3260
3265
  value: showHint.value ? suggestedValue.value.item.suggestion : "",
3261
3266
  disabled: ""
3262
- }, null, 8, _hoisted_4$r),
3267
+ }, null, 8, _hoisted_4$s),
3263
3268
  withDirectives(createElementVNode("input", mergeProps({
3264
3269
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
3265
3270
  }, inputAttributes.value, {
3266
3271
  ref_key: "mainInput",
3267
3272
  ref: mainInput,
3268
3273
  autocomplete: "off",
3274
+ "aria-label": ariaLabel.value,
3269
3275
  class: "lupa-search-box-input-field",
3270
3276
  "data-cy": "lupa-search-box-input-field",
3271
3277
  type: "text",
3272
3278
  placeholder: labels.value.placeholder,
3273
3279
  onInput: handleInput,
3274
3280
  onFocus: handleFocus
3275
- }), null, 16, _hoisted_5$f), [
3281
+ }), null, 16, _hoisted_5$g), [
3276
3282
  [vModelText, inputValue.value]
3277
3283
  ])
3278
3284
  ]),
@@ -3438,11 +3444,11 @@ const _hoisted_3$A = {
3438
3444
  class: "lupa-suggestion-facet",
3439
3445
  "data-cy": "lupa-suggestion-facet"
3440
3446
  };
3441
- const _hoisted_4$q = {
3447
+ const _hoisted_4$r = {
3442
3448
  class: "lupa-suggestion-facet-label",
3443
3449
  "data-cy": "lupa-suggestion-facet-label"
3444
3450
  };
3445
- const _hoisted_5$e = {
3451
+ const _hoisted_5$f = {
3446
3452
  class: "lupa-suggestion-facet-value",
3447
3453
  "data-cy": "lupa-suggestion-facet-value"
3448
3454
  };
@@ -3484,8 +3490,8 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
3484
3490
  innerHTML: _ctx.suggestion.displayHighlight
3485
3491
  }, null, 8, _hoisted_1$18)) : (openBlock(), createElementBlock("div", _hoisted_2$N, toDisplayString(_ctx.suggestion.display), 1)),
3486
3492
  _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$A, [
3487
- createElementVNode("span", _hoisted_4$q, toDisplayString(facetLabel.value), 1),
3488
- createElementVNode("span", _hoisted_5$e, toDisplayString(_ctx.suggestion.facet.title), 1)
3493
+ createElementVNode("span", _hoisted_4$r, toDisplayString(facetLabel.value), 1),
3494
+ createElementVNode("span", _hoisted_5$f, toDisplayString(_ctx.suggestion.facet.title), 1)
3489
3495
  ])) : createCommentVNode("", true)
3490
3496
  ]);
3491
3497
  };
@@ -3892,8 +3898,8 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
3892
3898
  const _hoisted_1$11 = ["innerHTML"];
3893
3899
  const _hoisted_2$K = { key: 0 };
3894
3900
  const _hoisted_3$z = { key: 1 };
3895
- const _hoisted_4$p = { class: "lupa-search-box-custom-label" };
3896
- const _hoisted_5$d = { class: "lupa-search-box-custom-text" };
3901
+ const _hoisted_4$q = { class: "lupa-search-box-custom-label" };
3902
+ const _hoisted_5$e = { class: "lupa-search-box-custom-text" };
3897
3903
  const _sfc_main$16 = /* @__PURE__ */ defineComponent({
3898
3904
  __name: "SearchBoxProductCustom",
3899
3905
  props: {
@@ -3925,8 +3931,8 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
3925
3931
  class: [className.value, "lupa-search-box-product-custom"]
3926
3932
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
3927
3933
  !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$K, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$z, [
3928
- createElementVNode("div", _hoisted_4$p, toDisplayString(label.value), 1),
3929
- createElementVNode("div", _hoisted_5$d, toDisplayString(text.value), 1)
3934
+ createElementVNode("div", _hoisted_4$q, toDisplayString(label.value), 1),
3935
+ createElementVNode("div", _hoisted_5$e, toDisplayString(text.value), 1)
3930
3936
  ]))
3931
3937
  ], 16));
3932
3938
  };
@@ -4266,7 +4272,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValue
4266
4272
  const _hoisted_1$_ = ["href"];
4267
4273
  const _hoisted_2$I = { class: "lupa-search-box-product-image-section" };
4268
4274
  const _hoisted_3$x = { class: "lupa-search-box-product-details-section" };
4269
- const _hoisted_4$o = {
4275
+ const _hoisted_4$p = {
4270
4276
  key: 0,
4271
4277
  class: "lupa-search-box-product-add-to-cart-section"
4272
4278
  };
@@ -4345,7 +4351,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
4345
4351
  }, null, 8, ["item", "element", "labels", "link"]);
4346
4352
  }), 128))
4347
4353
  ]),
4348
- addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$o, [
4354
+ addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$p, [
4349
4355
  createVNode(_sfc_main$13, {
4350
4356
  class: "lupa-search-box-product-element",
4351
4357
  item: _ctx.item,
@@ -4581,7 +4587,7 @@ const _hoisted_3$w = {
4581
4587
  key: 0,
4582
4588
  class: "lupa-panel-title"
4583
4589
  };
4584
- const _hoisted_4$n = {
4590
+ const _hoisted_4$o = {
4585
4591
  key: 1,
4586
4592
  id: "lupa-search-box-panel"
4587
4593
  };
@@ -4762,7 +4768,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
4762
4768
  showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
4763
4769
  onGoToResults: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("go-to-results"))
4764
4770
  }, null, 8, ["labels", "showTotalCount"])) : createCommentVNode("", true)
4765
- ])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_4$n, [
4771
+ ])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_4$o, [
4766
4772
  createVNode(_sfc_main$1h, {
4767
4773
  options: _ctx.options.history,
4768
4774
  history: history.value,
@@ -5156,7 +5162,7 @@ const _hoisted_3$v = {
5156
5162
  key: 1,
5157
5163
  "data-cy": "did-you-mean-label"
5158
5164
  };
5159
- const _hoisted_4$m = { key: 1 };
5165
+ const _hoisted_4$n = { key: 1 };
5160
5166
  const _sfc_main$Z = /* @__PURE__ */ defineComponent({
5161
5167
  __name: "SearchResultsDidYouMean",
5162
5168
  props: {
@@ -5207,7 +5213,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
5207
5213
  class: "lupa-did-you-mean lupa-highlighted-search-text",
5208
5214
  "data-cy": "did-you-mean-value",
5209
5215
  onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
5210
- }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$m, toDisplayString(label) + " ", 1))
5216
+ }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$n, toDisplayString(label) + " ", 1))
5211
5217
  ]);
5212
5218
  }), 128))
5213
5219
  ])) : createCommentVNode("", true)
@@ -5257,7 +5263,7 @@ const _hoisted_3$u = {
5257
5263
  key: 1,
5258
5264
  class: "lupa-results-total-count"
5259
5265
  };
5260
- const _hoisted_4$l = ["innerHTML"];
5266
+ const _hoisted_4$m = ["innerHTML"];
5261
5267
  const _sfc_main$X = /* @__PURE__ */ defineComponent({
5262
5268
  __name: "SearchResultsTitle",
5263
5269
  props: {
@@ -5306,7 +5312,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
5306
5312
  key: 2,
5307
5313
  class: "lupa-result-page-description-top",
5308
5314
  innerHTML: descriptionTop.value
5309
- }, null, 8, _hoisted_4$l)) : createCommentVNode("", true)
5315
+ }, null, 8, _hoisted_4$m)) : createCommentVNode("", true)
5310
5316
  ]);
5311
5317
  };
5312
5318
  }
@@ -5352,7 +5358,7 @@ const _hoisted_3$s = {
5352
5358
  key: 0,
5353
5359
  class: "filter-values"
5354
5360
  };
5355
- const _hoisted_4$k = { class: "lupa-current-filter-list" };
5361
+ const _hoisted_4$l = { class: "lupa-current-filter-list" };
5356
5362
  const _sfc_main$V = /* @__PURE__ */ defineComponent({
5357
5363
  __name: "CurrentFilters",
5358
5364
  props: {
@@ -5418,7 +5424,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
5418
5424
  }, null, 2)) : createCommentVNode("", true)
5419
5425
  ]),
5420
5426
  !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$s, [
5421
- createElementVNode("div", _hoisted_4$k, [
5427
+ createElementVNode("div", _hoisted_4$l, [
5422
5428
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(displayFilters), (filter) => {
5423
5429
  return openBlock(), createBlock(_sfc_main$W, {
5424
5430
  key: filter.key + "_" + filter.value,
@@ -5486,8 +5492,8 @@ const _hoisted_1$Q = {
5486
5492
  };
5487
5493
  const _hoisted_2$A = { class: "lupa-category-back" };
5488
5494
  const _hoisted_3$r = ["href"];
5489
- const _hoisted_4$j = ["href"];
5490
- const _hoisted_5$c = { class: "lupa-child-category-list" };
5495
+ const _hoisted_4$k = ["href"];
5496
+ const _hoisted_5$d = { class: "lupa-child-category-list" };
5491
5497
  const _sfc_main$T = /* @__PURE__ */ defineComponent({
5492
5498
  __name: "CategoryFilter",
5493
5499
  props: {
@@ -5591,9 +5597,9 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
5591
5597
  href: parentUrlLink.value,
5592
5598
  class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
5593
5599
  onClick: handleNavigationParent
5594
- }, toDisplayString(parentTitle.value), 11, _hoisted_4$j)
5600
+ }, toDisplayString(parentTitle.value), 11, _hoisted_4$k)
5595
5601
  ], 2),
5596
- createElementVNode("div", _hoisted_5$c, [
5602
+ createElementVNode("div", _hoisted_5$d, [
5597
5603
  (openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
5598
5604
  return openBlock(), createBlock(_sfc_main$U, {
5599
5605
  key: getCategoryKey(child),
@@ -5612,8 +5618,8 @@ const _hoisted_1$P = {
5612
5618
  };
5613
5619
  const _hoisted_2$z = ["placeholder"];
5614
5620
  const _hoisted_3$q = { class: "lupa-terms-list" };
5615
- const _hoisted_4$i = ["onClick"];
5616
- const _hoisted_5$b = { class: "lupa-term-checkbox-wrapper" };
5621
+ const _hoisted_4$j = ["onClick"];
5622
+ const _hoisted_5$c = { class: "lupa-term-checkbox-wrapper" };
5617
5623
  const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
5618
5624
  const _hoisted_7$6 = { class: "lupa-term-label" };
5619
5625
  const _hoisted_8$1 = {
@@ -5709,7 +5715,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
5709
5715
  key: item.title,
5710
5716
  onClick: ($event) => handleFacetClick(item)
5711
5717
  }, [
5712
- createElementVNode("div", _hoisted_5$b, [
5718
+ createElementVNode("div", _hoisted_5$c, [
5713
5719
  createElementVNode("span", {
5714
5720
  class: normalizeClass(["lupa-term-checkbox", { checked: isChecked(item) }])
5715
5721
  }, null, 2)
@@ -5718,7 +5724,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
5718
5724
  createElementVNode("span", _hoisted_7$6, toDisplayString(item.title), 1),
5719
5725
  _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$1, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
5720
5726
  ])
5721
- ], 10, _hoisted_4$i);
5727
+ ], 10, _hoisted_4$j);
5722
5728
  }), 128))
5723
5729
  ]),
5724
5730
  displayShowMore.value ? (openBlock(), createElementBlock("div", {
@@ -6718,12 +6724,12 @@ const _hoisted_3$p = {
6718
6724
  key: 1,
6719
6725
  class: "lupa-stats-facet-summary-input"
6720
6726
  };
6721
- const _hoisted_4$h = {
6727
+ const _hoisted_4$i = {
6722
6728
  key: 0,
6723
6729
  class: "lupa-stats-range-label"
6724
6730
  };
6725
- const _hoisted_5$a = { class: "lupa-stats-from" };
6726
- const _hoisted_6$7 = ["max", "min", "pattern"];
6731
+ const _hoisted_5$b = { class: "lupa-stats-from" };
6732
+ const _hoisted_6$7 = ["max", "min", "pattern", "aria-label"];
6727
6733
  const _hoisted_7$5 = { key: 0 };
6728
6734
  const _hoisted_8 = /* @__PURE__ */ createElementVNode("div", { class: "lupa-stats-separator" }, null, -1);
6729
6735
  const _hoisted_9 = {
@@ -6731,7 +6737,7 @@ const _hoisted_9 = {
6731
6737
  class: "lupa-stats-range-label"
6732
6738
  };
6733
6739
  const _hoisted_10 = { class: "lupa-stats-to" };
6734
- const _hoisted_11 = ["max", "min", "pattern"];
6740
+ const _hoisted_11 = ["max", "min", "pattern", "aria-label"];
6735
6741
  const _hoisted_12 = { key: 0 };
6736
6742
  const _hoisted_13 = {
6737
6743
  key: 2,
@@ -6859,6 +6865,20 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
6859
6865
  const sliderInputFormat = computed(() => {
6860
6866
  return isPrice.value ? `[0-9]+([${separator.value}][0-9]{1,2})?` : void 0;
6861
6867
  });
6868
+ const sliderAria = computed(() => {
6869
+ var _a, _b, _c, _d, _e, _f;
6870
+ return {
6871
+ "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}`
6872
+ };
6873
+ });
6874
+ const ariaLabelFrom = computed(() => {
6875
+ var _a, _b, _c, _d, _e;
6876
+ 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}`;
6877
+ });
6878
+ const ariaLabelTo = computed(() => {
6879
+ var _a, _b, _c, _d, _e;
6880
+ 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}`;
6881
+ });
6862
6882
  watch(currentMinValue, () => {
6863
6883
  innerSliderRange.value = [];
6864
6884
  });
@@ -6888,15 +6908,16 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
6888
6908
  return openBlock(), createElementBlock("div", _hoisted_1$O, [
6889
6909
  !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$y, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$p, [
6890
6910
  createElementVNode("div", null, [
6891
- rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$h, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
6892
- createElementVNode("div", _hoisted_5$a, [
6911
+ rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$i, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
6912
+ createElementVNode("div", _hoisted_5$b, [
6893
6913
  withDirectives(createElementVNode("input", {
6894
6914
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
6895
6915
  type: "text",
6896
6916
  maxlength: "8",
6897
6917
  max: facetMax.value,
6898
6918
  min: facetMin.value,
6899
- pattern: sliderInputFormat.value
6919
+ pattern: sliderInputFormat.value,
6920
+ "aria-label": ariaLabelFrom.value
6900
6921
  }, null, 8, _hoisted_6$7), [
6901
6922
  [
6902
6923
  vModelText,
@@ -6918,7 +6939,8 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
6918
6939
  maxlength: "8",
6919
6940
  max: facetMax.value,
6920
6941
  min: facetMin.value,
6921
- pattern: sliderInputFormat.value
6942
+ pattern: sliderInputFormat.value,
6943
+ "aria-label": ariaLabelTo.value
6922
6944
  }, null, 8, _hoisted_11), [
6923
6945
  [
6924
6946
  vModelText,
@@ -6939,11 +6961,12 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
6939
6961
  max: facetMax.value,
6940
6962
  lazy: true,
6941
6963
  step: interval.value,
6964
+ aria: sliderAria.value,
6942
6965
  modelValue: sliderRange.value,
6943
6966
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => sliderRange.value = $event),
6944
6967
  onSlide: handleDragging,
6945
6968
  onEnd: handleChange
6946
- }, null, 8, ["min", "max", "step", "modelValue"])
6969
+ }, null, 8, ["min", "max", "step", "aria", "modelValue"])
6947
6970
  ])) : createCommentVNode("", true)
6948
6971
  ]);
6949
6972
  };
@@ -6952,11 +6975,11 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
6952
6975
  const _hoisted_1$N = { class: "lupa-term-checkbox-wrapper" };
6953
6976
  const _hoisted_2$x = { class: "lupa-term-checkbox-label" };
6954
6977
  const _hoisted_3$o = { class: "lupa-term-label" };
6955
- const _hoisted_4$g = {
6978
+ const _hoisted_4$h = {
6956
6979
  key: 0,
6957
6980
  class: "lupa-term-count"
6958
6981
  };
6959
- const _hoisted_5$9 = {
6982
+ const _hoisted_5$a = {
6960
6983
  key: 0,
6961
6984
  class: "lupa-facet-level"
6962
6985
  };
@@ -7013,10 +7036,10 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
7013
7036
  ]),
7014
7037
  createElementVNode("div", _hoisted_2$x, [
7015
7038
  createElementVNode("span", _hoisted_3$o, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
7016
- _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$g, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
7039
+ _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$h, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
7017
7040
  ])
7018
7041
  ]),
7019
- showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$9, [
7042
+ showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$a, [
7020
7043
  (openBlock(true), createElementBlock(Fragment, null, renderList(treeItem.value.children, (itemChild) => {
7021
7044
  return openBlock(), createBlock(_component_HierarchyFacetLevel, {
7022
7045
  key: itemChild.title,
@@ -7449,8 +7472,8 @@ const _hoisted_1$H = {
7449
7472
  };
7450
7473
  const _hoisted_2$t = ["onClick"];
7451
7474
  const _hoisted_3$m = { class: "lupa-mobile-sidebar-content" };
7452
- const _hoisted_4$f = { class: "lupa-sidebar-top" };
7453
- const _hoisted_5$8 = { class: "lupa-sidebar-title" };
7475
+ const _hoisted_4$g = { class: "lupa-sidebar-top" };
7476
+ const _hoisted_5$9 = { class: "lupa-sidebar-title" };
7454
7477
  const _hoisted_6$6 = {
7455
7478
  key: 0,
7456
7479
  class: "lupa-sidebar-filter-count"
@@ -7488,8 +7511,8 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
7488
7511
  onClick: withModifiers(handleMobileToggle, ["stop"])
7489
7512
  }, null, 8, _hoisted_2$t),
7490
7513
  createElementVNode("div", _hoisted_3$m, [
7491
- createElementVNode("div", _hoisted_4$f, [
7492
- createElementVNode("div", _hoisted_5$8, [
7514
+ createElementVNode("div", _hoisted_4$g, [
7515
+ createElementVNode("div", _hoisted_5$9, [
7493
7516
  createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
7494
7517
  isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
7495
7518
  ]),
@@ -7515,7 +7538,7 @@ const _hoisted_3$l = {
7515
7538
  key: 1,
7516
7539
  class: "lupa-search-results-breadcrumb-text"
7517
7540
  };
7518
- const _hoisted_4$e = { key: 2 };
7541
+ const _hoisted_4$f = { key: 2 };
7519
7542
  const _sfc_main$J = /* @__PURE__ */ defineComponent({
7520
7543
  __name: "SearchResultsBreadcrumbs",
7521
7544
  props: {
@@ -7556,7 +7579,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
7556
7579
  return handleNavigation(e, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
7557
7580
  }
7558
7581
  }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$s)) : (openBlock(), createElementBlock("span", _hoisted_3$l, toDisplayString(getLabel(breadcrumb.label)), 1)),
7559
- index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$e, " / ")) : createCommentVNode("", true)
7582
+ index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$f, " / ")) : createCommentVNode("", true)
7560
7583
  ]);
7561
7584
  }), 128))
7562
7585
  ]);
@@ -7657,7 +7680,7 @@ const _hoisted_2$r = {
7657
7680
  class: "lupa-page-number-separator"
7658
7681
  };
7659
7682
  const _hoisted_3$k = ["onClick"];
7660
- const _hoisted_4$d = {
7683
+ const _hoisted_4$e = {
7661
7684
  key: 0,
7662
7685
  class: "lupa-page-number-separator"
7663
7686
  };
@@ -7748,7 +7771,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
7748
7771
  }, toDisplayString(page), 11, _hoisted_3$k);
7749
7772
  }), 128)),
7750
7773
  showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
7751
- showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$d, "...")) : createCommentVNode("", true),
7774
+ showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$e, "...")) : createCommentVNode("", true),
7752
7775
  createElementVNode("div", {
7753
7776
  class: "lupa-page-number lupa-page-number-last",
7754
7777
  onClick: _cache[2] || (_cache[2] = () => {
@@ -7773,6 +7796,7 @@ const _hoisted_1$B = {
7773
7796
  };
7774
7797
  const _hoisted_2$q = { id: "lupa-select" };
7775
7798
  const _hoisted_3$j = { class: "lupa-select-label" };
7799
+ const _hoisted_4$d = ["aria-label"];
7776
7800
  const _sfc_main$E = /* @__PURE__ */ defineComponent({
7777
7801
  __name: "SearchResultsPageSize",
7778
7802
  props: {
@@ -7795,6 +7819,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
7795
7819
  createElementVNode("label", _hoisted_3$j, toDisplayString(_ctx.label), 1),
7796
7820
  createElementVNode("select", {
7797
7821
  class: "lupa-select-dropdown",
7822
+ "aria-label": _ctx.label,
7798
7823
  "data-cy": "lupa-page-size-select-dropdown",
7799
7824
  onChange: handleSelect,
7800
7825
  ref_key: "select",
@@ -7803,7 +7828,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
7803
7828
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options.sizes, (option) => {
7804
7829
  return openBlock(), createElementBlock("option", { key: option }, toDisplayString(option), 1);
7805
7830
  }), 128))
7806
- ], 544)
7831
+ ], 40, _hoisted_4$d)
7807
7832
  ])
7808
7833
  ]);
7809
7834
  };
@@ -7815,7 +7840,8 @@ const _hoisted_1$A = {
7815
7840
  };
7816
7841
  const _hoisted_2$p = { id: "lupa-select" };
7817
7842
  const _hoisted_3$i = { class: "lupa-select-label" };
7818
- const _hoisted_4$c = ["value"];
7843
+ const _hoisted_4$c = ["aria-label"];
7844
+ const _hoisted_5$8 = ["value"];
7819
7845
  const _sfc_main$D = /* @__PURE__ */ defineComponent({
7820
7846
  __name: "SearchResultsSort",
7821
7847
  props: {
@@ -7869,6 +7895,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
7869
7895
  createElementVNode("label", _hoisted_3$i, toDisplayString(_ctx.options.label), 1),
7870
7896
  withDirectives(createElementVNode("select", {
7871
7897
  class: "lupa-select-dropdown",
7898
+ "aria-label": _ctx.options.label,
7872
7899
  "data-cy": "lupa-sort-select-dropdown",
7873
7900
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectedKey.value = $event),
7874
7901
  onChange: handleSelect,
@@ -7878,9 +7905,9 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
7878
7905
  return openBlock(), createElementBlock("option", {
7879
7906
  key: option.key,
7880
7907
  value: option.key
7881
- }, toDisplayString(option.label), 9, _hoisted_4$c);
7908
+ }, toDisplayString(option.label), 9, _hoisted_5$8);
7882
7909
  }), 128))
7883
- ], 544), [
7910
+ ], 40, _hoisted_4$c), [
7884
7911
  [vModelSelect, selectedKey.value]
7885
7912
  ])
7886
7913
  ])
@@ -23,6 +23,7 @@ export type SearchBoxOptionLabels = {
23
23
  priceSeparator?: string;
24
24
  defaultFacetLabel?: string;
25
25
  close?: string;
26
+ searchInputAriaLabel?: string;
26
27
  };
27
28
  export type SearchBoxOptionLinks = {
28
29
  searchResults: string;
@@ -168,6 +168,9 @@ export type ResultFacetOptions = {
168
168
  labels?: {
169
169
  from?: string;
170
170
  to?: string;
171
+ ariaFrom?: string;
172
+ ariaTo?: string;
173
+ sliderDotAriaLabel?: string;
171
174
  };
172
175
  };
173
176
  facetValueCountLimit?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlupa/vue",
3
- "version": "0.7.8",
3
+ "version": "0.7.9",
4
4
  "main": "dist/lupaSearch.mjs",
5
5
  "module": "dist/lupaSearch.mjs",
6
6
  "types": "dist/src/index.d.ts",