@propeller-commerce/propeller-v2-vue-ui 0.3.36 → 0.3.37

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.
package/dist/index.js CHANGED
@@ -2192,6 +2192,11 @@ function useProductSearch(options) {
2192
2192
  try {
2193
2193
  const service = createServices(graphqlClient).product;
2194
2194
  const lang = languageRef.value || "NL";
2195
+ const searchOrderlistIds = options.orderlistIds?.value;
2196
+ const orderlistScope = searchOrderlistIds && searchOrderlistIds.length > 0 ? {
2197
+ applyOrderlists: options.applyOrderlists?.value !== false,
2198
+ orderlistIds: searchOrderlistIds
2199
+ } : { applyOrderlists: false };
2195
2200
  const input = {
2196
2201
  term,
2197
2202
  language: lang,
@@ -2203,6 +2208,7 @@ function useProductSearch(options) {
2203
2208
  ProductStatus.T,
2204
2209
  ProductStatus.S
2205
2210
  ],
2211
+ ...orderlistScope,
2206
2212
  sortInputs: [{ field: ProductSortField.RELEVANCE, order: SortOrder.DESC }],
2207
2213
  searchFields: [
2208
2214
  {
@@ -19937,7 +19943,7 @@ const _hoisted_11$1 = {
19937
19943
  class: "propeller-search-bar__result-sku text-sm text-muted-foreground"
19938
19944
  };
19939
19945
  const _hoisted_12$1 = {
19940
- key: 1,
19946
+ key: 2,
19941
19947
  class: "propeller-search-bar__result-price text-sm font-semibold text-foreground flex-shrink-0 text-right"
19942
19948
  };
19943
19949
  const _hoisted_13$1 = { class: "propeller-search-bar__result-price-value" };
@@ -19964,6 +19970,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
19964
19970
  onViewAllClick: { type: Function },
19965
19971
  getResultHref: { type: Function },
19966
19972
  getViewAllHref: { type: Function },
19973
+ showPrice: { type: Boolean },
19967
19974
  formatPrice: { type: Function },
19968
19975
  labels: {},
19969
19976
  includeTax: { type: Boolean },
@@ -20196,7 +20203,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
20196
20203
  createElementVNode("div", _hoisted_10$1, toDisplayString(result.name), 1),
20197
20204
  result.sku ? (openBlock(), createElementBlock("div", _hoisted_11$1, "SKU: " + toDisplayString(result.sku), 1)) : createCommentVNode("", true)
20198
20205
  ]),
20199
- result.price !== void 0 && result.price !== null ? (openBlock(), createElementBlock("div", _hoisted_12$1, [
20206
+ _ctx.$slots.price ? renderSlot(_ctx.$slots, "price", {
20207
+ key: 1,
20208
+ result
20209
+ }) : __props.showPrice !== false && result.price !== void 0 && result.price !== null ? (openBlock(), createElementBlock("div", _hoisted_12$1, [
20200
20210
  createElementVNode("span", _hoisted_13$1, toDisplayString(formatItemPrice(leadingPrice(result))), 1),
20201
20211
  createElementVNode("span", _hoisted_14$1, toDisplayString(priceTaxLabel()), 1)
20202
20212
  ])) : createCommentVNode("", true)