@getlupa/vue 0.1.4 → 0.1.5

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.
@@ -5284,7 +5284,7 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
5284
5284
  props: {
5285
5285
  options: {}
5286
5286
  },
5287
- setup(__props) {
5287
+ setup(__props, { expose: __expose }) {
5288
5288
  const props = __props;
5289
5289
  const categoryChildren = vue.ref([]);
5290
5290
  const optionStore = useOptionsStore();
@@ -5363,6 +5363,7 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
5363
5363
  }
5364
5364
  handleRoutingEvent(backUrlLink.value, event, hasEventRouting.value);
5365
5365
  };
5366
+ __expose({ fetch: fetch2 });
5366
5367
  return (_ctx, _cache) => {
5367
5368
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$H, [
5368
5369
  vue.createElementVNode("div", _hoisted_2$t, [
@@ -7190,8 +7191,9 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
7190
7191
  options: {},
7191
7192
  expandable: { type: Boolean }
7192
7193
  },
7193
- setup(__props) {
7194
+ setup(__props, { expose: __expose }) {
7194
7195
  const props = __props;
7196
+ const categoryFilters = vue.ref(null);
7195
7197
  const desktopFiltersVisible = vue.computed(() => {
7196
7198
  var _a, _b, _c;
7197
7199
  return (_c = (_b = (_a = props.options.currentFilters) == null ? void 0 : _a.visibility) == null ? void 0 : _b.desktopSidebar) != null ? _c : true;
@@ -7203,6 +7205,13 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
7203
7205
  const showCurrentFilters = vue.computed(() => {
7204
7206
  return currentFiltersVisible.value ? Boolean(props.options.facets) : false;
7205
7207
  });
7208
+ const fetch2 = () => {
7209
+ var _a;
7210
+ if (categoryFilters.value) {
7211
+ (_a = categoryFilters.value) == null ? void 0 : _a.fetch();
7212
+ }
7213
+ };
7214
+ __expose({ fetch: fetch2 });
7206
7215
  return (_ctx, _cache) => {
7207
7216
  var _a;
7208
7217
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$z, [
@@ -7214,7 +7223,8 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
7214
7223
  _ctx.options.categories ? (vue.openBlock(), vue.createBlock(_sfc_main$K, {
7215
7224
  key: 1,
7216
7225
  options: _ctx.options.categories,
7217
- ref: "categoryFilters"
7226
+ ref_key: "categoryFilters",
7227
+ ref: categoryFilters
7218
7228
  }, null, 8, ["options"])) : vue.createCommentVNode("", true),
7219
7229
  _ctx.options.facets ? (vue.openBlock(), vue.createBlock(_sfc_main$D, {
7220
7230
  key: 2,
@@ -5282,7 +5282,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
5282
5282
  props: {
5283
5283
  options: {}
5284
5284
  },
5285
- setup(__props) {
5285
+ setup(__props, { expose: __expose }) {
5286
5286
  const props = __props;
5287
5287
  const categoryChildren = ref([]);
5288
5288
  const optionStore = useOptionsStore();
@@ -5361,6 +5361,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
5361
5361
  }
5362
5362
  handleRoutingEvent(backUrlLink.value, event, hasEventRouting.value);
5363
5363
  };
5364
+ __expose({ fetch: fetch2 });
5364
5365
  return (_ctx, _cache) => {
5365
5366
  return openBlock(), createElementBlock("div", _hoisted_1$H, [
5366
5367
  createElementVNode("div", _hoisted_2$t, [
@@ -7188,8 +7189,9 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
7188
7189
  options: {},
7189
7190
  expandable: { type: Boolean }
7190
7191
  },
7191
- setup(__props) {
7192
+ setup(__props, { expose: __expose }) {
7192
7193
  const props = __props;
7194
+ const categoryFilters = ref(null);
7193
7195
  const desktopFiltersVisible = computed(() => {
7194
7196
  var _a, _b, _c;
7195
7197
  return (_c = (_b = (_a = props.options.currentFilters) == null ? void 0 : _a.visibility) == null ? void 0 : _b.desktopSidebar) != null ? _c : true;
@@ -7201,6 +7203,13 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
7201
7203
  const showCurrentFilters = computed(() => {
7202
7204
  return currentFiltersVisible.value ? Boolean(props.options.facets) : false;
7203
7205
  });
7206
+ const fetch2 = () => {
7207
+ var _a;
7208
+ if (categoryFilters.value) {
7209
+ (_a = categoryFilters.value) == null ? void 0 : _a.fetch();
7210
+ }
7211
+ };
7212
+ __expose({ fetch: fetch2 });
7204
7213
  return (_ctx, _cache) => {
7205
7214
  var _a;
7206
7215
  return openBlock(), createElementBlock("div", _hoisted_1$z, [
@@ -7212,7 +7221,8 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
7212
7221
  _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$K, {
7213
7222
  key: 1,
7214
7223
  options: _ctx.options.categories,
7215
- ref: "categoryFilters"
7224
+ ref_key: "categoryFilters",
7225
+ ref: categoryFilters
7216
7226
  }, null, 8, ["options"])) : createCommentVNode("", true),
7217
7227
  _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$D, {
7218
7228
  key: 2,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlupa/vue",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "main": "dist/lupaSearch.js",
5
5
  "module": "dist/lupaSearch.mjs",
6
6
  "types": "dist/src/index.d.ts",