@salla.sa/twilight-components 2.12.54 → 2.12.55
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/cjs/salla-add-product-button_41.cjs.entry.js +6 -6
- package/dist/cjs/salla-add-product-button_41.cjs.entry.js.map +1 -1
- package/dist/collection/components/salla-product-card/salla-product-card.js +6 -6
- package/dist/collection/components/salla-product-card/salla-product-card.js.map +1 -1
- package/dist/components/salla-product-card2.js +6 -6
- package/dist/components/salla-product-card2.js.map +1 -1
- package/dist/esm/salla-add-product-button_41.entry.js +6 -6
- package/dist/esm/salla-add-product-button_41.entry.js.map +1 -1
- package/dist/esm-es5/salla-add-product-button_41.entry.js +2 -2
- package/dist/esm-es5/salla-add-product-button_41.entry.js.map +1 -1
- package/dist/twilight/{p-79705026.entry.js → p-0cf37c22.entry.js} +2 -2
- package/dist/twilight/p-0cf37c22.entry.js.map +1 -0
- package/dist/twilight/{p-e90369c0.system.entry.js → p-4bb63f55.system.entry.js} +2 -2
- package/dist/twilight/{p-79705026.entry.js.map → p-4bb63f55.system.entry.js.map} +1 -1
- package/dist/twilight/p-9f2e0944.system.js +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/package.json +2 -2
- package/dist/twilight/p-e90369c0.system.entry.js.map +0 -1
|
@@ -22246,7 +22246,7 @@ const SallaProductCard = class {
|
|
|
22246
22246
|
return index.h("h4", { class: "s-product-card-price" }, this.getPriceFormat((_c = this.productData) === null || _c === void 0 ? void 0 : _c.price));
|
|
22247
22247
|
}
|
|
22248
22248
|
render() {
|
|
22249
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x
|
|
22249
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
|
|
22250
22250
|
const classes = {
|
|
22251
22251
|
's-product-card-entry': true,
|
|
22252
22252
|
's-product-card-vertical': !this.horizontal && !this.fullImage && !this.minimal,
|
|
@@ -22267,16 +22267,16 @@ const SallaProductCard = class {
|
|
|
22267
22267
|
: 'cover'} lazy`, src: this.placeholder, alt: (_h = (_g = this.productData) === null || _g === void 0 ? void 0 : _g.image) === null || _h === void 0 ? void 0 : _h.alt, "data-src": ((_k = (_j = this.productData) === null || _j === void 0 ? void 0 : _j.image) === null || _k === void 0 ? void 0 : _k.url) || ((_l = this.productData) === null || _l === void 0 ? void 0 : _l.thumbnail) }), !this.fullImage && !this.minimal ? this.getProductBadge() : ''), this.fullImage && index.h("a", Object.assign({}, hrefProp, { class: "s-product-card-overlay" })), !this.horizontal && !this.fullImage ?
|
|
22268
22268
|
index.h("salla-button", { shape: "icon", fill: "none", color: "light", "aria-label": "Add or remove to wishlist", ref: el => this.wishlistBtn = el, class: "s-product-card-wishlist-btn animated", onClick: () => salla.wishlist.toggle(this.productData.id) }, index.h("span", { innerHTML: Heart })) : ''), index.h("div", { class: "s-product-card-content" }, this.isSpecial && ((_m = this.productData) === null || _m === void 0 ? void 0 : _m.quantity) ?
|
|
22269
22269
|
index.h("div", { class: "s-product-card-content-pie", ref: pie => this.pie = pie }, index.h("span", null, index.h("b", null, salla.helpers.number((_o = this.productData) === null || _o === void 0 ? void 0 : _o.quantity)), this.remained), index.h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "-2 -1 36 34", class: "s-product-card-content-pie-svg" }, index.h("circle", { cx: "16", cy: "16", r: "15.9155", class: "s-product-card-content-pie-svg-base" }), index.h("circle", { cx: "16", cy: "16", r: "15.9155", class: "s-product-card-content-pie-svg-bar" })))
|
|
22270
|
-
: '', index.h("div", { class: { 's-product-card-content-main': true, 's-product-card-content-extra-padding': this.isSpecial } }, index.h("h3", { class: "s-product-card-content-title" }, index.h("a", {
|
|
22271
|
-
index.h("p", { class: "s-product-card-content-subtitle" }, (
|
|
22272
|
-
: ''), ((
|
|
22273
|
-
[index.h("salla-progress-bar", { donation: (
|
|
22270
|
+
: '', index.h("div", { class: { 's-product-card-content-main': true, 's-product-card-content-extra-padding': this.isSpecial } }, index.h("h3", { class: "s-product-card-content-title" }, index.h("a", Object.assign({}, hrefProp), (_p = this.productData) === null || _p === void 0 ? void 0 : _p.name)), ((_q = this.productData) === null || _q === void 0 ? void 0 : _q.subtitle) && !this.minimal ?
|
|
22271
|
+
index.h("p", { class: "s-product-card-content-subtitle" }, (_r = this.productData) === null || _r === void 0 ? void 0 : _r.subtitle)
|
|
22272
|
+
: ''), ((_s = this.productData) === null || _s === void 0 ? void 0 : _s.donation) && !this.minimal && !this.fullImage ?
|
|
22273
|
+
[index.h("salla-progress-bar", { donation: (_t = this.productData) === null || _t === void 0 ? void 0 : _t.donation }), index.h("div", { class: "s-product-card-donation-input" }, ((_v = (_u = this.productData) === null || _u === void 0 ? void 0 : _u.donation) === null || _v === void 0 ? void 0 : _v.can_donate) ?
|
|
22274
22274
|
[index.h("label", { htmlFor: "donation-amount" }, this.donationAmount, " ", index.h("span", null, "*")), index.h("input", { type: "text", onInput: e => {
|
|
22275
22275
|
salla.helpers.inputDigitsOnly(e.target);
|
|
22276
22276
|
this.addBtn.donatingAmount = e.target.value;
|
|
22277
22277
|
}, id: "donation-amount", name: "donating_amount", class: "s-form-control", placeholder: this.donationAmount })]
|
|
22278
22278
|
: '')]
|
|
22279
|
-
: '', index.h("div", { class: { 's-product-card-content-sub': true, 's-product-card-content-extra-padding': this.isSpecial } }, this.getProductPrice(), ((
|
|
22279
|
+
: '', index.h("div", { class: { 's-product-card-content-sub': true, 's-product-card-content-extra-padding': this.isSpecial } }, this.getProductPrice(), ((_x = (_w = this.productData) === null || _w === void 0 ? void 0 : _w.rating) === null || _x === void 0 ? void 0 : _x.stars) && !this.minimal ?
|
|
22280
22280
|
index.h("div", { class: "s-product-card-rating" }, index.h("span", { innerHTML: Rate }), index.h("span", null, this.productData.rating.stars))
|
|
22281
22281
|
: ''), this.isSpecial && this.productData.discount_ends
|
|
22282
22282
|
? index.h("salla-count-down", { date: this.formatDate(this.productData.discount_ends), "end-of-day": true, boxed: true, labeled: true })
|