@getlupa/vue 0.12.0 → 0.12.2

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.
@@ -3238,7 +3238,7 @@ const _hoisted_1$1f = { id: "lupa-search-box-input-container" };
3238
3238
  const _hoisted_2$R = { class: "lupa-input-clear" };
3239
3239
  const _hoisted_3$A = { id: "lupa-search-box-input" };
3240
3240
  const _hoisted_4$s = ["value"];
3241
- const _hoisted_5$h = ["aria-label", "placeholder"];
3241
+ const _hoisted_5$i = ["aria-label", "placeholder"];
3242
3242
  const _hoisted_6$9 = /* @__PURE__ */ vue.createElementVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
3243
3243
  const _hoisted_7$7 = [
3244
3244
  _hoisted_6$9
@@ -3358,7 +3358,7 @@ const _sfc_main$1n = /* @__PURE__ */ vue.defineComponent({
3358
3358
  placeholder: labels.value.placeholder,
3359
3359
  onInput: handleInput,
3360
3360
  onFocus: handleFocus
3361
- }), null, 16, _hoisted_5$h), [
3361
+ }), null, 16, _hoisted_5$i), [
3362
3362
  [vue.vModelText, inputValue.value]
3363
3363
  ]),
3364
3364
  _ctx.options.showSubmitButton ? (vue.openBlock(), vue.createElementBlock("button", {
@@ -3532,7 +3532,7 @@ const _hoisted_4$r = {
3532
3532
  class: "lupa-suggestion-facet-label",
3533
3533
  "data-cy": "lupa-suggestion-facet-label"
3534
3534
  };
3535
- const _hoisted_5$g = {
3535
+ const _hoisted_5$h = {
3536
3536
  class: "lupa-suggestion-facet-value",
3537
3537
  "data-cy": "lupa-suggestion-facet-value"
3538
3538
  };
@@ -3575,7 +3575,7 @@ const _sfc_main$1i = /* @__PURE__ */ vue.defineComponent({
3575
3575
  }, null, 8, _hoisted_1$1b)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$P, vue.toDisplayString(_ctx.suggestion.display), 1)),
3576
3576
  _ctx.suggestion.facet ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$z, [
3577
3577
  vue.createElementVNode("span", _hoisted_4$r, vue.toDisplayString(facetLabel.value), 1),
3578
- vue.createElementVNode("span", _hoisted_5$g, vue.toDisplayString(_ctx.suggestion.facet.title), 1)
3578
+ vue.createElementVNode("span", _hoisted_5$h, vue.toDisplayString(_ctx.suggestion.facet.title), 1)
3579
3579
  ])) : vue.createCommentVNode("", true)
3580
3580
  ]);
3581
3581
  };
@@ -4076,7 +4076,7 @@ const _hoisted_1$14 = ["innerHTML"];
4076
4076
  const _hoisted_2$M = { key: 0 };
4077
4077
  const _hoisted_3$y = { key: 1 };
4078
4078
  const _hoisted_4$q = { class: "lupa-search-box-custom-label" };
4079
- const _hoisted_5$f = { class: "lupa-search-box-custom-text" };
4079
+ const _hoisted_5$g = { class: "lupa-search-box-custom-text" };
4080
4080
  const _sfc_main$19 = /* @__PURE__ */ vue.defineComponent({
4081
4081
  __name: "SearchBoxProductCustom",
4082
4082
  props: {
@@ -4109,7 +4109,7 @@ const _sfc_main$19 = /* @__PURE__ */ vue.defineComponent({
4109
4109
  }, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
4110
4110
  !label.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$M, vue.toDisplayString(text.value), 1)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$y, [
4111
4111
  vue.createElementVNode("div", _hoisted_4$q, vue.toDisplayString(label.value), 1),
4112
- vue.createElementVNode("div", _hoisted_5$f, vue.toDisplayString(text.value), 1)
4112
+ vue.createElementVNode("div", _hoisted_5$g, vue.toDisplayString(text.value), 1)
4113
4113
  ]))
4114
4114
  ], 16));
4115
4115
  };
@@ -4301,6 +4301,7 @@ const useSearchResultStore = defineStore("searchResult", () => {
4301
4301
  if (!width || !grid) {
4302
4302
  return;
4303
4303
  }
4304
+ screenStore.setScreenWidth({ width });
4304
4305
  const { currentScreenWidth } = storeToRefs(screenStore);
4305
4306
  const screenWidth = (_a = currentScreenWidth.value) != null ? _a : "xl";
4306
4307
  columnCount.value = grid.columns[screenWidth];
@@ -5254,7 +5255,7 @@ const _hoisted_4$n = {
5254
5255
  key: 1,
5255
5256
  class: "lupa-panel-title"
5256
5257
  };
5257
- const _hoisted_5$e = {
5258
+ const _hoisted_5$f = {
5258
5259
  key: 1,
5259
5260
  id: "lupa-search-box-panel"
5260
5261
  };
@@ -5468,7 +5469,7 @@ const _sfc_main$W = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadVa
5468
5469
  showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
5469
5470
  onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
5470
5471
  }, null, 8, ["labels", "showTotalCount"])) : vue.createCommentVNode("", true)
5471
- ])) : displayHistory.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$e, [
5472
+ ])) : displayHistory.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$f, [
5472
5473
  vue.createVNode(_sfc_main$1k, {
5473
5474
  options: _ctx.options.history,
5474
5475
  history: history.value,
@@ -5978,7 +5979,8 @@ const _hoisted_3$s = {
5978
5979
  key: 1,
5979
5980
  class: "lupa-results-total-count"
5980
5981
  };
5981
- const _hoisted_4$l = ["innerHTML"];
5982
+ const _hoisted_4$l = { class: "lupa-results-total-count-number" };
5983
+ const _hoisted_5$e = ["innerHTML"];
5982
5984
  const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
5983
5985
  __name: "SearchResultsTitle",
5984
5986
  props: {
@@ -6021,7 +6023,11 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
6021
6023
  showSearchTitle.value ? (vue.openBlock(), vue.createElementBlock("h1", _hoisted_1$P, [
6022
6024
  vue.createTextVNode(vue.toDisplayString(_ctx.options.labels.searchResults), 1),
6023
6025
  queryText.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$C, "'" + vue.toDisplayString(queryText.value) + "'", 1)) : vue.createCommentVNode("", true),
6024
- showProductCount.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$s, "(" + vue.toDisplayString(searchResultsCountLabel.value) + vue.toDisplayString(vue.unref(totalItems)) + ")", 1)) : vue.createCommentVNode("", true)
6026
+ showProductCount.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$s, [
6027
+ vue.createTextVNode("(" + vue.toDisplayString(searchResultsCountLabel.value), 1),
6028
+ vue.createElementVNode("span", _hoisted_4$l, vue.toDisplayString(vue.unref(totalItems)), 1),
6029
+ vue.createTextVNode(")")
6030
+ ])) : vue.createCommentVNode("", true)
6025
6031
  ])) : vue.createCommentVNode("", true),
6026
6032
  _ctx.showSummary ? (vue.openBlock(), vue.createBlock(_sfc_main$T, {
6027
6033
  key: 1,
@@ -6031,7 +6037,7 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
6031
6037
  key: 2,
6032
6038
  class: "lupa-result-page-description-top",
6033
6039
  innerHTML: descriptionTop.value
6034
- }, null, 8, _hoisted_4$l)) : vue.createCommentVNode("", true)
6040
+ }, null, 8, _hoisted_5$e)) : vue.createCommentVNode("", true)
6035
6041
  ]);
6036
6042
  };
6037
6043
  }
@@ -8654,13 +8660,22 @@ const _hoisted_4$c = ["aria-label"];
8654
8660
  const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
8655
8661
  __name: "SearchResultsPageSize",
8656
8662
  props: {
8657
- label: {},
8663
+ labels: {},
8658
8664
  options: {}
8659
8665
  },
8660
8666
  setup(__props) {
8667
+ const props = __props;
8661
8668
  const paramsStore = useParamsStore();
8662
8669
  const optionsStore = useOptionsStore();
8663
8670
  const select = vue.ref(null);
8671
+ const prefixLabel = vue.computed(() => {
8672
+ var _a, _b;
8673
+ return (_b = (_a = props.labels) == null ? void 0 : _a.pageSizePrefix) != null ? _b : "";
8674
+ });
8675
+ const label = vue.computed(() => {
8676
+ var _a, _b;
8677
+ return (_b = (_a = props.labels) == null ? void 0 : _a.pageSize) != null ? _b : "";
8678
+ });
8664
8679
  const handleSelect = (e) => {
8665
8680
  const value = e.target.value;
8666
8681
  paramsStore.appendParams({
@@ -8671,17 +8686,17 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
8671
8686
  return (_ctx, _cache) => {
8672
8687
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$v, [
8673
8688
  vue.createElementVNode("div", _hoisted_2$o, [
8674
- vue.createElementVNode("label", _hoisted_3$h, vue.toDisplayString(_ctx.label), 1),
8689
+ vue.createElementVNode("label", _hoisted_3$h, vue.toDisplayString(label.value), 1),
8675
8690
  vue.createElementVNode("select", {
8676
8691
  class: "lupa-select-dropdown",
8677
- "aria-label": _ctx.label,
8692
+ "aria-label": label.value,
8678
8693
  "data-cy": "lupa-page-size-select-dropdown",
8679
8694
  onChange: handleSelect,
8680
8695
  ref_key: "select",
8681
8696
  ref: select
8682
8697
  }, [
8683
8698
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.options.sizes, (option) => {
8684
- return vue.openBlock(), vue.createElementBlock("option", { key: option }, vue.toDisplayString(option), 1);
8699
+ return vue.openBlock(), vue.createElementBlock("option", { key: option }, vue.toDisplayString(prefixLabel.value) + vue.toDisplayString(option), 1);
8685
8700
  }), 128))
8686
8701
  ], 40, _hoisted_4$c)
8687
8702
  ])
@@ -8918,8 +8933,8 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
8918
8933
  paginationDisplay.value.pageSize ? (vue.openBlock(), vue.createBlock(_sfc_main$y, {
8919
8934
  key: 1,
8920
8935
  options: paginationOptions.value.pageSize,
8921
- label: paginationOptions.value.labels.pageSize
8922
- }, null, 8, ["options", "label"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_8)),
8936
+ labels: paginationOptions.value.labels
8937
+ }, null, 8, ["options", "labels"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_8)),
8923
8938
  sortOptions.value ? (vue.openBlock(), vue.createBlock(_sfc_main$x, {
8924
8939
  key: 3,
8925
8940
  options: sortOptions.value,
@@ -10347,8 +10362,8 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
10347
10362
  const handleResize = () => {
10348
10363
  const doc = document.documentElement;
10349
10364
  doc.style.setProperty("--lupa-full-height", `${window.innerHeight}px`);
10350
- searchResultStore.setColumnCount({ width: window.innerWidth, grid: props.options.grid });
10351
10365
  screenStore.setScreenWidth({ width: window.innerWidth });
10366
+ searchResultStore.setColumnCount({ width: window.innerWidth, grid: props.options.grid });
10352
10367
  };
10353
10368
  const handleUrlChange = (params) => {
10354
10369
  var _a;
@@ -3236,7 +3236,7 @@ const _hoisted_1$1f = { id: "lupa-search-box-input-container" };
3236
3236
  const _hoisted_2$R = { class: "lupa-input-clear" };
3237
3237
  const _hoisted_3$A = { id: "lupa-search-box-input" };
3238
3238
  const _hoisted_4$s = ["value"];
3239
- const _hoisted_5$h = ["aria-label", "placeholder"];
3239
+ const _hoisted_5$i = ["aria-label", "placeholder"];
3240
3240
  const _hoisted_6$9 = /* @__PURE__ */ createElementVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
3241
3241
  const _hoisted_7$7 = [
3242
3242
  _hoisted_6$9
@@ -3356,7 +3356,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
3356
3356
  placeholder: labels.value.placeholder,
3357
3357
  onInput: handleInput,
3358
3358
  onFocus: handleFocus
3359
- }), null, 16, _hoisted_5$h), [
3359
+ }), null, 16, _hoisted_5$i), [
3360
3360
  [vModelText, inputValue.value]
3361
3361
  ]),
3362
3362
  _ctx.options.showSubmitButton ? (openBlock(), createElementBlock("button", {
@@ -3530,7 +3530,7 @@ const _hoisted_4$r = {
3530
3530
  class: "lupa-suggestion-facet-label",
3531
3531
  "data-cy": "lupa-suggestion-facet-label"
3532
3532
  };
3533
- const _hoisted_5$g = {
3533
+ const _hoisted_5$h = {
3534
3534
  class: "lupa-suggestion-facet-value",
3535
3535
  "data-cy": "lupa-suggestion-facet-value"
3536
3536
  };
@@ -3573,7 +3573,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
3573
3573
  }, null, 8, _hoisted_1$1b)) : (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(_ctx.suggestion.display), 1)),
3574
3574
  _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$z, [
3575
3575
  createElementVNode("span", _hoisted_4$r, toDisplayString(facetLabel.value), 1),
3576
- createElementVNode("span", _hoisted_5$g, toDisplayString(_ctx.suggestion.facet.title), 1)
3576
+ createElementVNode("span", _hoisted_5$h, toDisplayString(_ctx.suggestion.facet.title), 1)
3577
3577
  ])) : createCommentVNode("", true)
3578
3578
  ]);
3579
3579
  };
@@ -4074,7 +4074,7 @@ const _hoisted_1$14 = ["innerHTML"];
4074
4074
  const _hoisted_2$M = { key: 0 };
4075
4075
  const _hoisted_3$y = { key: 1 };
4076
4076
  const _hoisted_4$q = { class: "lupa-search-box-custom-label" };
4077
- const _hoisted_5$f = { class: "lupa-search-box-custom-text" };
4077
+ const _hoisted_5$g = { class: "lupa-search-box-custom-text" };
4078
4078
  const _sfc_main$19 = /* @__PURE__ */ defineComponent({
4079
4079
  __name: "SearchBoxProductCustom",
4080
4080
  props: {
@@ -4107,7 +4107,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
4107
4107
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
4108
4108
  !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$M, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$y, [
4109
4109
  createElementVNode("div", _hoisted_4$q, toDisplayString(label.value), 1),
4110
- createElementVNode("div", _hoisted_5$f, toDisplayString(text.value), 1)
4110
+ createElementVNode("div", _hoisted_5$g, toDisplayString(text.value), 1)
4111
4111
  ]))
4112
4112
  ], 16));
4113
4113
  };
@@ -4299,6 +4299,7 @@ const useSearchResultStore = defineStore("searchResult", () => {
4299
4299
  if (!width || !grid) {
4300
4300
  return;
4301
4301
  }
4302
+ screenStore.setScreenWidth({ width });
4302
4303
  const { currentScreenWidth } = storeToRefs(screenStore);
4303
4304
  const screenWidth = (_a = currentScreenWidth.value) != null ? _a : "xl";
4304
4305
  columnCount.value = grid.columns[screenWidth];
@@ -5252,7 +5253,7 @@ const _hoisted_4$n = {
5252
5253
  key: 1,
5253
5254
  class: "lupa-panel-title"
5254
5255
  };
5255
- const _hoisted_5$e = {
5256
+ const _hoisted_5$f = {
5256
5257
  key: 1,
5257
5258
  id: "lupa-search-box-panel"
5258
5259
  };
@@ -5466,7 +5467,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
5466
5467
  showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
5467
5468
  onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
5468
5469
  }, null, 8, ["labels", "showTotalCount"])) : createCommentVNode("", true)
5469
- ])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$e, [
5470
+ ])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$f, [
5470
5471
  createVNode(_sfc_main$1k, {
5471
5472
  options: _ctx.options.history,
5472
5473
  history: history.value,
@@ -5976,7 +5977,8 @@ const _hoisted_3$s = {
5976
5977
  key: 1,
5977
5978
  class: "lupa-results-total-count"
5978
5979
  };
5979
- const _hoisted_4$l = ["innerHTML"];
5980
+ const _hoisted_4$l = { class: "lupa-results-total-count-number" };
5981
+ const _hoisted_5$e = ["innerHTML"];
5980
5982
  const _sfc_main$S = /* @__PURE__ */ defineComponent({
5981
5983
  __name: "SearchResultsTitle",
5982
5984
  props: {
@@ -6019,7 +6021,11 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
6019
6021
  showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$P, [
6020
6022
  createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
6021
6023
  queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$C, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
6022
- showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$s, "(" + toDisplayString(searchResultsCountLabel.value) + toDisplayString(unref(totalItems)) + ")", 1)) : createCommentVNode("", true)
6024
+ showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$s, [
6025
+ createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
6026
+ createElementVNode("span", _hoisted_4$l, toDisplayString(unref(totalItems)), 1),
6027
+ createTextVNode(")")
6028
+ ])) : createCommentVNode("", true)
6023
6029
  ])) : createCommentVNode("", true),
6024
6030
  _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$T, {
6025
6031
  key: 1,
@@ -6029,7 +6035,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
6029
6035
  key: 2,
6030
6036
  class: "lupa-result-page-description-top",
6031
6037
  innerHTML: descriptionTop.value
6032
- }, null, 8, _hoisted_4$l)) : createCommentVNode("", true)
6038
+ }, null, 8, _hoisted_5$e)) : createCommentVNode("", true)
6033
6039
  ]);
6034
6040
  };
6035
6041
  }
@@ -8652,13 +8658,22 @@ const _hoisted_4$c = ["aria-label"];
8652
8658
  const _sfc_main$y = /* @__PURE__ */ defineComponent({
8653
8659
  __name: "SearchResultsPageSize",
8654
8660
  props: {
8655
- label: {},
8661
+ labels: {},
8656
8662
  options: {}
8657
8663
  },
8658
8664
  setup(__props) {
8665
+ const props = __props;
8659
8666
  const paramsStore = useParamsStore();
8660
8667
  const optionsStore = useOptionsStore();
8661
8668
  const select = ref(null);
8669
+ const prefixLabel = computed(() => {
8670
+ var _a, _b;
8671
+ return (_b = (_a = props.labels) == null ? void 0 : _a.pageSizePrefix) != null ? _b : "";
8672
+ });
8673
+ const label = computed(() => {
8674
+ var _a, _b;
8675
+ return (_b = (_a = props.labels) == null ? void 0 : _a.pageSize) != null ? _b : "";
8676
+ });
8662
8677
  const handleSelect = (e) => {
8663
8678
  const value = e.target.value;
8664
8679
  paramsStore.appendParams({
@@ -8669,17 +8684,17 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
8669
8684
  return (_ctx, _cache) => {
8670
8685
  return openBlock(), createElementBlock("div", _hoisted_1$v, [
8671
8686
  createElementVNode("div", _hoisted_2$o, [
8672
- createElementVNode("label", _hoisted_3$h, toDisplayString(_ctx.label), 1),
8687
+ createElementVNode("label", _hoisted_3$h, toDisplayString(label.value), 1),
8673
8688
  createElementVNode("select", {
8674
8689
  class: "lupa-select-dropdown",
8675
- "aria-label": _ctx.label,
8690
+ "aria-label": label.value,
8676
8691
  "data-cy": "lupa-page-size-select-dropdown",
8677
8692
  onChange: handleSelect,
8678
8693
  ref_key: "select",
8679
8694
  ref: select
8680
8695
  }, [
8681
8696
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options.sizes, (option) => {
8682
- return openBlock(), createElementBlock("option", { key: option }, toDisplayString(option), 1);
8697
+ return openBlock(), createElementBlock("option", { key: option }, toDisplayString(prefixLabel.value) + toDisplayString(option), 1);
8683
8698
  }), 128))
8684
8699
  ], 40, _hoisted_4$c)
8685
8700
  ])
@@ -8916,8 +8931,8 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
8916
8931
  paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$y, {
8917
8932
  key: 1,
8918
8933
  options: paginationOptions.value.pageSize,
8919
- label: paginationOptions.value.labels.pageSize
8920
- }, null, 8, ["options", "label"])) : (openBlock(), createElementBlock("div", _hoisted_8)),
8934
+ labels: paginationOptions.value.labels
8935
+ }, null, 8, ["options", "labels"])) : (openBlock(), createElementBlock("div", _hoisted_8)),
8921
8936
  sortOptions.value ? (openBlock(), createBlock(_sfc_main$x, {
8922
8937
  key: 3,
8923
8938
  options: sortOptions.value,
@@ -10345,8 +10360,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
10345
10360
  const handleResize = () => {
10346
10361
  const doc = document.documentElement;
10347
10362
  doc.style.setProperty("--lupa-full-height", `${window.innerHeight}px`);
10348
- searchResultStore.setColumnCount({ width: window.innerWidth, grid: props.options.grid });
10349
10363
  screenStore.setScreenWidth({ width: window.innerWidth });
10364
+ searchResultStore.setColumnCount({ width: window.innerWidth, grid: props.options.grid });
10350
10365
  };
10351
10366
  const handleUrlChange = (params) => {
10352
10367
  var _a;
@@ -1,8 +1,9 @@
1
1
  import type { PropType as __PropType } from 'vue';
2
2
  import type { PaginationPageSize } from '../../../../types/search-results/PaginationOptions';
3
+ import type { SearchResultsPaginationLabels } from '../../../../types/search-results/SearchResultsPagination';
3
4
  declare const _sfc_main: import("vue").DefineComponent<{
4
- label: {
5
- type: __PropType<string>;
5
+ labels: {
6
+ type: __PropType<SearchResultsPaginationLabels>;
6
7
  required: true;
7
8
  };
8
9
  options: {
@@ -10,8 +11,8 @@ declare const _sfc_main: import("vue").DefineComponent<{
10
11
  required: true;
11
12
  };
12
13
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
13
- label: {
14
- type: __PropType<string>;
14
+ labels: {
15
+ type: __PropType<SearchResultsPaginationLabels>;
15
16
  required: true;
16
17
  };
17
18
  options: {
@@ -114,6 +114,7 @@ export type SearchResultsPaginationLabels = {
114
114
  pageSize: string;
115
115
  showMore: string;
116
116
  showLess?: string;
117
+ pageSizePrefix?: string;
117
118
  };
118
119
  export type ResponsiveSearchResultPageSizes = {
119
120
  xs: number[];
@@ -127,6 +128,9 @@ export type SearchResultsPagination = {
127
128
  sizeSelection: {
128
129
  sizes: SearchResultPageSizes;
129
130
  position: SearchResultsPaginationPosition;
131
+ labels?: {
132
+ pageSizePrefix: string;
133
+ };
130
134
  };
131
135
  pageSelection: {
132
136
  position: SearchResultsPaginationPosition;
@@ -4,6 +4,7 @@ export type SearchResultsPaginationLabels = {
4
4
  showLess?: string;
5
5
  itemCount: string;
6
6
  filteredItemCount?: string;
7
+ pageSizePrefix?: string;
7
8
  };
8
9
  export type SearchResultsPagination = {
9
10
  sizeSelection: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlupa/vue",
3
- "version": "0.12.0",
3
+ "version": "0.12.2",
4
4
  "main": "dist/lupaSearch.mjs",
5
5
  "module": "dist/lupaSearch.mjs",
6
6
  "types": "dist/src/index.d.ts",