@salla.sa/twilight-components 2.12.72 → 2.12.74

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.
Files changed (36) hide show
  1. package/dist/cjs/salla-add-product-button_47.cjs.entry.js +9 -1
  2. package/dist/cjs/salla-add-product-button_47.cjs.entry.js.map +1 -1
  3. package/dist/cjs/salla-filters.cjs.entry.js +7 -1
  4. package/dist/cjs/salla-filters.cjs.entry.js.map +1 -1
  5. package/dist/collection/components/salla-bottom-alert/salla-bottom-alert.js +9 -1
  6. package/dist/collection/components/salla-bottom-alert/salla-bottom-alert.js.map +1 -1
  7. package/dist/collection/components/salla-filters/salla-filters.js +7 -1
  8. package/dist/collection/components/salla-filters/salla-filters.js.map +1 -1
  9. package/dist/components/salla-bottom-alert.js +9 -1
  10. package/dist/components/salla-bottom-alert.js.map +1 -1
  11. package/dist/components/salla-filters.js +7 -1
  12. package/dist/components/salla-filters.js.map +1 -1
  13. package/dist/esm/salla-add-product-button_47.entry.js +9 -1
  14. package/dist/esm/salla-add-product-button_47.entry.js.map +1 -1
  15. package/dist/esm/salla-filters.entry.js +7 -1
  16. package/dist/esm/salla-filters.entry.js.map +1 -1
  17. package/dist/esm-es5/salla-add-product-button_47.entry.js +1 -1
  18. package/dist/esm-es5/salla-add-product-button_47.entry.js.map +1 -1
  19. package/dist/esm-es5/salla-filters.entry.js +2 -2
  20. package/dist/esm-es5/salla-filters.entry.js.map +1 -1
  21. package/dist/twilight/p-2059b78a.system.js +1 -1
  22. package/dist/twilight/p-4de34318.entry.js +5 -0
  23. package/dist/twilight/p-4de34318.entry.js.map +1 -0
  24. package/dist/twilight/{p-29f9af2d.entry.js → p-69b9d426.entry.js} +2 -2
  25. package/dist/twilight/p-69b9d426.entry.js.map +1 -0
  26. package/dist/twilight/{p-d3520da5.system.entry.js → p-89c5b834.system.entry.js} +2 -2
  27. package/dist/twilight/p-89c5b834.system.entry.js.map +1 -0
  28. package/dist/twilight/{p-5bf1cc00.system.entry.js → p-d28aa599.system.entry.js} +2 -2
  29. package/dist/twilight/p-d28aa599.system.entry.js.map +1 -0
  30. package/dist/twilight/twilight.esm.js +1 -1
  31. package/package.json +5 -5
  32. package/dist/twilight/p-29f9af2d.entry.js.map +0 -1
  33. package/dist/twilight/p-412d8d1c.entry.js +0 -5
  34. package/dist/twilight/p-412d8d1c.entry.js.map +0 -1
  35. package/dist/twilight/p-5bf1cc00.system.entry.js.map +0 -1
  36. package/dist/twilight/p-d3520da5.system.entry.js.map +0 -1
@@ -291,7 +291,15 @@ const SallaBottomAlert = class {
291
291
  index.h("div", { class: "s-bottom-alert-modal-content-footer" }, this.templateData.price && index.h("div", { class: "s-bottom-alert-modal-price-wrapper" }, index.h("div", null, this.storePrice), index.h("div", { class: "s-bottom-alert-modal-price-wrapper-amount" }, salla.money((_r = this.templateData) === null || _r === void 0 ? void 0 : _r.price))), index.h("salla-button", { color: 'primary', size: "medium", width: 'wide', href: (_s = this.templateData) === null || _s === void 0 ? void 0 : _s.link }, index.h("i", { innerHTML: shoppingBag }), this.buyTheTemplate)) : '')] : ''));
292
292
  }
293
293
  render() {
294
- return (index.h(index.Host, { class: "s-bottom-alert-wrapper" }, index.h("div", { class: "s-bottom-alert-content" }, index.h("div", { class: "s-bottom-alert-icon" }, this.icon ? index.h("i", { class: this.icon }) : index.h("i", { innerHTML: infoIcon })), index.h("div", { class: "s-bottom-alert-message" }, this.message ? (this.message) : typeof this.template == 'object' && Object.keys(this.template).length ? (index.h("span", null, this.getDefaultMessage(), " ", index.h("span", { class: "s-bottom-alert-message-highlight" }, this.template.developer && this.template.developer.name ? this.template.developer.name : this.theDeveloper), " ", index.h("span", { class: "s-bottom-alert-message-splitter" }, "|"), " ", this.storePrice, ":", " ", index.h("span", { class: "s-bottom-alert-message-highlight" }, salla.money(this.template.price)))) : (this.defaultMessage)), this.type !== 'banner' ? (index.h("div", { class: "s-bottom-alert-action" }, index.h("salla-button", { href: this.actionUrl, size: "medium", onClick: () => this.handleAction(), width: "normal" }, this.actionLabel ? this.actionLabel : this.defaultActionLabel))) : null, this.type === 'popup' ? this.popup() : null)));
294
+ const hasTemplate = this.template && typeof this.template === 'object' && Object.keys(this.template).length > 0;
295
+ const developer = hasTemplate && this.template.developer;
296
+ const hasDeveloper = developer !== undefined;
297
+ const developerName = hasDeveloper && developer.name;
298
+ const developerUrl = hasDeveloper && developer.url;
299
+ return (index.h(index.Host, { class: "s-bottom-alert-wrapper" }, index.h("div", { class: "s-bottom-alert-content" }, index.h("div", { class: "s-bottom-alert-icon" }, this.icon ? index.h("i", { class: this.icon }) : index.h("i", { innerHTML: infoIcon })), index.h("div", { class: "s-bottom-alert-message" }, this.message ? (this.message) : hasTemplate ? (index.h("span", null, this.getDefaultMessage(), " ", index.h("a", { href: developerUrl ? developerUrl : "javascript:void(0);", class: {
300
+ "s-bottom-alert-message-highlight": true,
301
+ "s-bottom-alert-message-link": developerUrl,
302
+ }, target: developerUrl ? "_blank" : "", "aria-label": "Developer" }, developerName ? developerName : this.theDeveloper), " ", index.h("span", { class: "s-bottom-alert-message-splitter" }, "|"), " ", this.storePrice, ":", " ", index.h("span", { class: "s-bottom-alert-message-highlight" }, salla.money(this.template.price)))) : (this.defaultMessage)), this.type !== 'banner' && (index.h("div", { class: "s-bottom-alert-action" }, index.h("salla-button", { href: this.actionUrl, size: "medium", onClick: () => this.handleAction(), width: "normal" }, this.actionLabel || this.defaultActionLabel))), this.type === 'popup' && this.popup())));
295
303
  }
296
304
  get host() { return index.getElement(this); }
297
305
  };