@snabcentr/vue-ui-lib 2.19.0 → 2.19.1
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/manifest.json +2 -2
- package/dist/release_notes.tmp +3 -3
- package/dist/sc-vue-ui-lib.css +1 -1
- package/dist/sc-vue-ui-lib.js +6 -4
- package/dist/sc-vue-ui-lib.js.map +1 -1
- package/dist/sc-vue-ui-lib.umd.cjs +1 -1
- package/dist/sc-vue-ui-lib.umd.cjs.map +1 -1
- package/dist/src/catalog/interfaces/properties/i-category-collapse-properties.d.ts +4 -0
- package/package.json +2 -2
package/dist/sc-vue-ui-lib.js
CHANGED
@@ -2230,8 +2230,9 @@ const Ap = {
|
|
2230
2230
|
s.value ? (w(), se(kg, {
|
2231
2231
|
key: 0,
|
2232
2232
|
"categories-items": R.categoryItem.categories ?? [],
|
2233
|
+
"has-products": l.value || p.value,
|
2233
2234
|
"event-emitter": R.eventEmitter,
|
2234
|
-
"filtered-items": (Be = n.value) == null ? void 0 : Be.categories,
|
2235
|
+
"filtered-items": n.value ? ((Be = n.value) == null ? void 0 : Be.categories) ?? {} : void 0,
|
2235
2236
|
"selected-categories-items": R.selectedCategoriesItems,
|
2236
2237
|
"selected-products-items": R.selectedProductsItems,
|
2237
2238
|
"show-slugs": R.showSlugs,
|
@@ -2247,7 +2248,7 @@ const Ap = {
|
|
2247
2248
|
"show-pin-button": R.showPinButton,
|
2248
2249
|
"show-category-edit-button": R.showCategoryEditButton,
|
2249
2250
|
"category-context-buttons-config": R.categoryContextButtonsConfig
|
2250
|
-
}, null, 8, ["categories-items", "event-emitter", "filtered-items", "selected-categories-items", "selected-products-items", "show-slugs", "show-properties", "show-product-costs", "allow-name-click", "allow-price-click", "show-price-history", "show-product-add-to-cart-button", "show-product-edit-button", "product-context-buttons-config", "show-hide-for-client-button", "show-pin-button", "show-category-edit-button", "category-context-buttons-config"])) : j("", !0),
|
2251
|
+
}, null, 8, ["categories-items", "has-products", "event-emitter", "filtered-items", "selected-categories-items", "selected-products-items", "show-slugs", "show-properties", "show-product-costs", "allow-name-click", "allow-price-click", "show-price-history", "show-product-add-to-cart-button", "show-product-edit-button", "product-context-buttons-config", "show-hide-for-client-button", "show-pin-button", "show-category-edit-button", "category-context-buttons-config"])) : j("", !0),
|
2251
2252
|
l.value ? (w(), se(Ke, {
|
2252
2253
|
key: 1,
|
2253
2254
|
columns: ee.value,
|
@@ -2290,7 +2291,7 @@ const Ap = {
|
|
2290
2291
|
}, 8, ["name", "data-id"]);
|
2291
2292
|
};
|
2292
2293
|
}
|
2293
|
-
}), _g = /* @__PURE__ */ ts(vg, [["__scopeId", "data-v-
|
2294
|
+
}), _g = /* @__PURE__ */ ts(vg, [["__scopeId", "data-v-56546932"]]), yg = { class: "sc-collapse flex w-full flex-col" }, bg = {}, wg = /* @__PURE__ */ te({
|
2294
2295
|
...bg,
|
2295
2296
|
__name: "collapse",
|
2296
2297
|
props: {
|
@@ -2311,6 +2312,7 @@ const Ap = {
|
|
2311
2312
|
__name: "category-collapse",
|
2312
2313
|
props: {
|
2313
2314
|
categoriesItems: {},
|
2315
|
+
hasProducts: { type: Boolean },
|
2314
2316
|
loading: { type: Boolean, default: !1 },
|
2315
2317
|
filteredItems: { default: void 0 },
|
2316
2318
|
selectedCategoriesItems: { default: void 0 },
|
@@ -2387,7 +2389,7 @@ const Ap = {
|
|
2387
2389
|
])),
|
2388
2390
|
_: 1
|
2389
2391
|
}, 8, ["size"])) : j("", !0),
|
2390
|
-
!r.loading && r.categoriesItems.length > 0 && n.value.length === 0 ? (w(), se(l, {
|
2392
|
+
!r.hasProducts && !r.loading && r.categoriesItems.length > 0 && n.value.length === 0 ? (w(), se(l, {
|
2391
2393
|
key: 2,
|
2392
2394
|
"show-icon": !0,
|
2393
2395
|
type: "warning",
|