@getlupa/client 1.11.2 → 1.11.3

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.
@@ -11116,12 +11116,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11116
11116
  var _a, _b;
11117
11117
  return (_b = (_a = props.options.labels) == null ? void 0 : _a.itemCount) != null ? _b : "";
11118
11118
  });
11119
+ const searchResultsCountLabel = computed(() => {
11120
+ var _a, _b;
11121
+ return (_b = (_a = props.options.labels) == null ? void 0 : _a.searchResultsCount) != null ? _b : "";
11122
+ });
11119
11123
  return (_ctx, _cache) => {
11120
11124
  return openBlock(), createElementBlock("div", null, [
11121
11125
  showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$P, [
11122
11126
  createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
11123
11127
  queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$C, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
11124
- showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$s, "(" + toDisplayString(unref(totalItems)) + ")", 1)) : createCommentVNode("", true)
11128
+ showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$s, "(" + toDisplayString(searchResultsCountLabel.value) + toDisplayString(unref(totalItems)) + ")", 1)) : createCommentVNode("", true)
11125
11129
  ])) : createCommentVNode("", true),
11126
11130
  _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$T, {
11127
11131
  key: 1,
@@ -14993,7 +14997,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14993
14997
  "data-cy": "lupa-products"
14994
14998
  };
14995
14999
  const _hoisted_3$6 = {
14996
- key: 0,
15000
+ key: 1,
14997
15001
  class: "lupa-empty-results",
14998
15002
  "data-cy": "lupa-no-results-in-page"
14999
15003
  };
@@ -15063,6 +15067,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
15063
15067
  var _a;
15064
15068
  return currentFilterToolbarVisible.value ? (_a = props.options.filters) == null ? void 0 : _a.currentFilters : void 0;
15065
15069
  });
15070
+ const currentFilterPositionDesktop = computed(() => {
15071
+ var _a, _b, _c;
15072
+ return ((_c = (_b = (_a = props.options.filters) == null ? void 0 : _a.currentFilters) == null ? void 0 : _b.desktopToolbar) == null ? void 0 : _c.position) || "pageTop";
15073
+ });
15066
15074
  const currentFiltersClass = computed(() => {
15067
15075
  var _a, _b, _c, _d, _e, _f, _g, _h, _i;
15068
15076
  if (!currentFilterToolbarVisible.value) {
@@ -15124,7 +15132,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
15124
15132
  "pagination-location": "top",
15125
15133
  onFilter: filter
15126
15134
  }, null, 8, ["options"])) : createCommentVNode("", true),
15127
- currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$Q, {
15135
+ currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$Q, {
15128
15136
  key: 2,
15129
15137
  class: normalizeClass(currentFiltersClass.value),
15130
15138
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -15143,6 +15151,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
15143
15151
  options: _ctx.options,
15144
15152
  "pagination-location": "top"
15145
15153
  }, null, 8, ["options"]),
15154
+ currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$Q, {
15155
+ key: 0,
15156
+ class: normalizeClass(currentFiltersClass.value),
15157
+ "data-cy": "lupa-search-result-filters-mobile-toolbar",
15158
+ options: currentFilterOptions.value,
15159
+ expandable: !desktopFiltersExpanded.value
15160
+ }, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true),
15146
15161
  createBaseVNode("div", _hoisted_2$b, [
15147
15162
  _ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(searchResult).items, (product, index) => {
15148
15163
  return renderSlot(_ctx.$slots, "productCard", {
@@ -11116,12 +11116,16 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
11116
11116
  var _a, _b;
11117
11117
  return (_b = (_a = props.options.labels) == null ? void 0 : _a.itemCount) != null ? _b : "";
11118
11118
  });
11119
+ const searchResultsCountLabel = computed(() => {
11120
+ var _a, _b;
11121
+ return (_b = (_a = props.options.labels) == null ? void 0 : _a.searchResultsCount) != null ? _b : "";
11122
+ });
11119
11123
  return (_ctx, _cache) => {
11120
11124
  return openBlock(), createElementBlock("div", null, [
11121
11125
  showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$P, [
11122
11126
  createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
11123
11127
  queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$C, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
11124
- showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$s, "(" + toDisplayString(unref(totalItems)) + ")", 1)) : createCommentVNode("", true)
11128
+ showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$s, "(" + toDisplayString(searchResultsCountLabel.value) + toDisplayString(unref(totalItems)) + ")", 1)) : createCommentVNode("", true)
11125
11129
  ])) : createCommentVNode("", true),
11126
11130
  _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$T, {
11127
11131
  key: 1,
@@ -14993,7 +14997,7 @@ const _hoisted_2$b = {
14993
14997
  "data-cy": "lupa-products"
14994
14998
  };
14995
14999
  const _hoisted_3$6 = {
14996
- key: 0,
15000
+ key: 1,
14997
15001
  class: "lupa-empty-results",
14998
15002
  "data-cy": "lupa-no-results-in-page"
14999
15003
  };
@@ -15063,6 +15067,10 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
15063
15067
  var _a;
15064
15068
  return currentFilterToolbarVisible.value ? (_a = props.options.filters) == null ? void 0 : _a.currentFilters : void 0;
15065
15069
  });
15070
+ const currentFilterPositionDesktop = computed(() => {
15071
+ var _a, _b, _c;
15072
+ return ((_c = (_b = (_a = props.options.filters) == null ? void 0 : _a.currentFilters) == null ? void 0 : _b.desktopToolbar) == null ? void 0 : _c.position) || "pageTop";
15073
+ });
15066
15074
  const currentFiltersClass = computed(() => {
15067
15075
  var _a, _b, _c, _d, _e, _f, _g, _h, _i;
15068
15076
  if (!currentFilterToolbarVisible.value) {
@@ -15124,7 +15132,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
15124
15132
  "pagination-location": "top",
15125
15133
  onFilter: filter
15126
15134
  }, null, 8, ["options"])) : createCommentVNode("", true),
15127
- currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$Q, {
15135
+ currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$Q, {
15128
15136
  key: 2,
15129
15137
  class: normalizeClass(currentFiltersClass.value),
15130
15138
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -15143,6 +15151,13 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
15143
15151
  options: _ctx.options,
15144
15152
  "pagination-location": "top"
15145
15153
  }, null, 8, ["options"]),
15154
+ currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$Q, {
15155
+ key: 0,
15156
+ class: normalizeClass(currentFiltersClass.value),
15157
+ "data-cy": "lupa-search-result-filters-mobile-toolbar",
15158
+ options: currentFilterOptions.value,
15159
+ expandable: !desktopFiltersExpanded.value
15160
+ }, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true),
15146
15161
  createBaseVNode("div", _hoisted_2$b, [
15147
15162
  _ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(searchResult).items, (product, index) => {
15148
15163
  return renderSlot(_ctx.$slots, "productCard", {
@@ -11114,12 +11114,16 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
11114
11114
  var _a, _b;
11115
11115
  return (_b = (_a = props.options.labels) == null ? void 0 : _a.itemCount) != null ? _b : "";
11116
11116
  });
11117
+ const searchResultsCountLabel = computed(() => {
11118
+ var _a, _b;
11119
+ return (_b = (_a = props.options.labels) == null ? void 0 : _a.searchResultsCount) != null ? _b : "";
11120
+ });
11117
11121
  return (_ctx, _cache) => {
11118
11122
  return openBlock(), createElementBlock("div", null, [
11119
11123
  showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$P, [
11120
11124
  createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
11121
11125
  queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$C, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
11122
- showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$s, "(" + toDisplayString(unref(totalItems)) + ")", 1)) : createCommentVNode("", true)
11126
+ showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$s, "(" + toDisplayString(searchResultsCountLabel.value) + toDisplayString(unref(totalItems)) + ")", 1)) : createCommentVNode("", true)
11123
11127
  ])) : createCommentVNode("", true),
11124
11128
  _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$T, {
11125
11129
  key: 1,
@@ -14991,7 +14995,7 @@ const _hoisted_2$b = {
14991
14995
  "data-cy": "lupa-products"
14992
14996
  };
14993
14997
  const _hoisted_3$6 = {
14994
- key: 0,
14998
+ key: 1,
14995
14999
  class: "lupa-empty-results",
14996
15000
  "data-cy": "lupa-no-results-in-page"
14997
15001
  };
@@ -15061,6 +15065,10 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
15061
15065
  var _a;
15062
15066
  return currentFilterToolbarVisible.value ? (_a = props.options.filters) == null ? void 0 : _a.currentFilters : void 0;
15063
15067
  });
15068
+ const currentFilterPositionDesktop = computed(() => {
15069
+ var _a, _b, _c;
15070
+ return ((_c = (_b = (_a = props.options.filters) == null ? void 0 : _a.currentFilters) == null ? void 0 : _b.desktopToolbar) == null ? void 0 : _c.position) || "pageTop";
15071
+ });
15064
15072
  const currentFiltersClass = computed(() => {
15065
15073
  var _a, _b, _c, _d, _e, _f, _g, _h, _i;
15066
15074
  if (!currentFilterToolbarVisible.value) {
@@ -15122,7 +15130,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
15122
15130
  "pagination-location": "top",
15123
15131
  onFilter: filter
15124
15132
  }, null, 8, ["options"])) : createCommentVNode("", true),
15125
- currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$Q, {
15133
+ currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$Q, {
15126
15134
  key: 2,
15127
15135
  class: normalizeClass(currentFiltersClass.value),
15128
15136
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -15141,6 +15149,13 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
15141
15149
  options: _ctx.options,
15142
15150
  "pagination-location": "top"
15143
15151
  }, null, 8, ["options"]),
15152
+ currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$Q, {
15153
+ key: 0,
15154
+ class: normalizeClass(currentFiltersClass.value),
15155
+ "data-cy": "lupa-search-result-filters-mobile-toolbar",
15156
+ options: currentFilterOptions.value,
15157
+ expandable: !desktopFiltersExpanded.value
15158
+ }, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true),
15144
15159
  createBaseVNode("div", _hoisted_2$b, [
15145
15160
  _ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(searchResult).items, (product, index) => {
15146
15161
  return renderSlot(_ctx.$slots, "productCard", {
@@ -11118,12 +11118,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11118
11118
  var _a, _b;
11119
11119
  return (_b = (_a = props.options.labels) == null ? void 0 : _a.itemCount) != null ? _b : "";
11120
11120
  });
11121
+ const searchResultsCountLabel = computed(() => {
11122
+ var _a, _b;
11123
+ return (_b = (_a = props.options.labels) == null ? void 0 : _a.searchResultsCount) != null ? _b : "";
11124
+ });
11121
11125
  return (_ctx, _cache) => {
11122
11126
  return openBlock(), createElementBlock("div", null, [
11123
11127
  showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$P, [
11124
11128
  createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
11125
11129
  queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$C, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
11126
- showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$s, "(" + toDisplayString(unref(totalItems)) + ")", 1)) : createCommentVNode("", true)
11130
+ showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$s, "(" + toDisplayString(searchResultsCountLabel.value) + toDisplayString(unref(totalItems)) + ")", 1)) : createCommentVNode("", true)
11127
11131
  ])) : createCommentVNode("", true),
11128
11132
  _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$T, {
11129
11133
  key: 1,
@@ -14995,7 +14999,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14995
14999
  "data-cy": "lupa-products"
14996
15000
  };
14997
15001
  const _hoisted_3$6 = {
14998
- key: 0,
15002
+ key: 1,
14999
15003
  class: "lupa-empty-results",
15000
15004
  "data-cy": "lupa-no-results-in-page"
15001
15005
  };
@@ -15065,6 +15069,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
15065
15069
  var _a;
15066
15070
  return currentFilterToolbarVisible.value ? (_a = props.options.filters) == null ? void 0 : _a.currentFilters : void 0;
15067
15071
  });
15072
+ const currentFilterPositionDesktop = computed(() => {
15073
+ var _a, _b, _c;
15074
+ return ((_c = (_b = (_a = props.options.filters) == null ? void 0 : _a.currentFilters) == null ? void 0 : _b.desktopToolbar) == null ? void 0 : _c.position) || "pageTop";
15075
+ });
15068
15076
  const currentFiltersClass = computed(() => {
15069
15077
  var _a, _b, _c, _d, _e, _f, _g, _h, _i;
15070
15078
  if (!currentFilterToolbarVisible.value) {
@@ -15126,7 +15134,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
15126
15134
  "pagination-location": "top",
15127
15135
  onFilter: filter
15128
15136
  }, null, 8, ["options"])) : createCommentVNode("", true),
15129
- currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$Q, {
15137
+ currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$Q, {
15130
15138
  key: 2,
15131
15139
  class: normalizeClass(currentFiltersClass.value),
15132
15140
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -15145,6 +15153,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
15145
15153
  options: _ctx.options,
15146
15154
  "pagination-location": "top"
15147
15155
  }, null, 8, ["options"]),
15156
+ currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$Q, {
15157
+ key: 0,
15158
+ class: normalizeClass(currentFiltersClass.value),
15159
+ "data-cy": "lupa-search-result-filters-mobile-toolbar",
15160
+ options: currentFilterOptions.value,
15161
+ expandable: !desktopFiltersExpanded.value
15162
+ }, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true),
15148
15163
  createBaseVNode("div", _hoisted_2$b, [
15149
15164
  _ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(searchResult).items, (product, index) => {
15150
15165
  return renderSlot(_ctx.$slots, "productCard", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlupa/client",
3
- "version": "1.11.2",
3
+ "version": "1.11.3",
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.11.2",
23
+ "@getlupa/vue": "0.11.3",
24
24
  "@rushstack/eslint-patch": "^1.3.2",
25
25
  "@tsconfig/node18": "^2.0.1",
26
26
  "@types/jsdom": "^21.1.1",