@getlupa/vue 0.1.3 → 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.
- package/dist/lupaSearch.js +15 -4
- package/dist/lupaSearch.mjs +15 -4
- package/package.json +1 -1
package/dist/lupaSearch.js
CHANGED
|
@@ -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
|
-
|
|
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,
|
|
@@ -9248,7 +9258,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
9248
9258
|
isContainer: { type: Boolean },
|
|
9249
9259
|
initialData: {}
|
|
9250
9260
|
},
|
|
9251
|
-
setup(__props) {
|
|
9261
|
+
setup(__props, { expose: __expose }) {
|
|
9252
9262
|
const props = __props;
|
|
9253
9263
|
const searchResultStore = useSearchResultStore();
|
|
9254
9264
|
const optionStore = useOptionsStore();
|
|
@@ -9423,6 +9433,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
9423
9433
|
}
|
|
9424
9434
|
};
|
|
9425
9435
|
handleCreated();
|
|
9436
|
+
__expose({ handleMounted, handleUrlChange });
|
|
9426
9437
|
return (_ctx, _cache) => {
|
|
9427
9438
|
var _a, _b, _c, _d, _e;
|
|
9428
9439
|
return vue.openBlock(), vue.createElementBlock("div", {
|
package/dist/lupaSearch.mjs
CHANGED
|
@@ -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
|
-
|
|
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,
|
|
@@ -9246,7 +9256,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
9246
9256
|
isContainer: { type: Boolean },
|
|
9247
9257
|
initialData: {}
|
|
9248
9258
|
},
|
|
9249
|
-
setup(__props) {
|
|
9259
|
+
setup(__props, { expose: __expose }) {
|
|
9250
9260
|
const props = __props;
|
|
9251
9261
|
const searchResultStore = useSearchResultStore();
|
|
9252
9262
|
const optionStore = useOptionsStore();
|
|
@@ -9421,6 +9431,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
9421
9431
|
}
|
|
9422
9432
|
};
|
|
9423
9433
|
handleCreated();
|
|
9434
|
+
__expose({ handleMounted, handleUrlChange });
|
|
9424
9435
|
return (_ctx, _cache) => {
|
|
9425
9436
|
var _a, _b, _c, _d, _e;
|
|
9426
9437
|
return openBlock(), createElementBlock("div", {
|