@salla.sa/twilight-components 2.13.19 → 2.13.20
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/{app-globals-ae2b7545.js → app-globals-47cc649a.js} +2 -2
- package/dist/cjs/app-globals-47cc649a.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/salla-add-product-button_47.cjs.entry.js +7 -0
- package/dist/cjs/salla-add-product-button_47.cjs.entry.js.map +1 -1
- package/dist/cjs/twilight.cjs.js +1 -1
- package/dist/collection/components/salla-cart-summary/salla-cart-summary.js +7 -0
- package/dist/collection/components/salla-cart-summary/salla-cart-summary.js.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/salla-cart-summary.js +7 -0
- package/dist/components/salla-cart-summary.js.map +1 -1
- package/dist/esm/{app-globals-8ec64117.js → app-globals-0a081920.js} +2 -2
- package/dist/esm/app-globals-0a081920.js.map +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/salla-add-product-button_47.entry.js +7 -0
- package/dist/esm/salla-add-product-button_47.entry.js.map +1 -1
- package/dist/esm/twilight.js +1 -1
- package/dist/esm-es5/{app-globals-8ec64117.js → app-globals-0a081920.js} +2 -2
- package/dist/esm-es5/app-globals-0a081920.js.map +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/salla-add-product-button_47.entry.js +1 -1
- package/dist/esm-es5/salla-add-product-button_47.entry.js.map +1 -1
- package/dist/esm-es5/twilight.js +1 -1
- package/dist/twilight/{p-e5d5cd59.js → p-50bca0c9.js} +2 -2
- package/dist/twilight/p-50bca0c9.js.map +1 -0
- package/dist/twilight/{p-95d48443.system.js → p-914db74d.system.js} +2 -2
- package/dist/twilight/p-914db74d.system.js.map +1 -0
- package/dist/twilight/{p-63de8456.system.entry.js → p-b8aec437.system.entry.js} +2 -2
- package/dist/twilight/p-b8aec437.system.entry.js.map +1 -0
- package/dist/twilight/{p-1670ae9f.entry.js → p-daa1888f.entry.js} +2 -2
- package/dist/twilight/p-daa1888f.entry.js.map +1 -0
- package/dist/twilight/{p-80f28677.system.js → p-e550d2df.system.js} +2 -2
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/twilight/twilight.js +1 -1
- package/dist/types/components/salla-cart-summary/salla-cart-summary.d.ts +5 -0
- package/dist/types/global.d.ts +20 -0
- package/package.json +5 -5
- package/dist/cjs/app-globals-ae2b7545.js.map +0 -1
- package/dist/esm/app-globals-8ec64117.js.map +0 -1
- package/dist/esm-es5/app-globals-8ec64117.js.map +0 -1
- package/dist/twilight/p-1670ae9f.entry.js.map +0 -1
- package/dist/twilight/p-63de8456.system.entry.js.map +0 -1
- package/dist/twilight/p-95d48443.system.js.map +0 -1
- package/dist/twilight/p-e5d5cd59.js.map +0 -1
- /package/dist/twilight/{p-80f28677.system.js.map → p-e550d2df.system.js.map} +0 -0
package/dist/esm/loader.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { b as bootstrapLazy } from './index-9a9b1e67.js';
|
|
5
5
|
export { s as setNonce } from './index-9a9b1e67.js';
|
|
6
|
-
import { g as globalScripts } from './app-globals-
|
|
6
|
+
import { g as globalScripts } from './app-globals-0a081920.js';
|
|
7
7
|
import './_commonjsHelpers-1415ffd3.js';
|
|
8
8
|
|
|
9
9
|
const defineCustomElements = (win, options) => {
|
|
@@ -557,6 +557,13 @@ const SallaCartSummary = class {
|
|
|
557
557
|
},
|
|
558
558
|
}, '-=1700');
|
|
559
559
|
}
|
|
560
|
+
/**
|
|
561
|
+
* Some times it renderes with main domain, something like `https://salla.sa/cart`, because salla is not loaded,
|
|
562
|
+
* here, we are sure it will not be rendred unless salla is ready
|
|
563
|
+
*/
|
|
564
|
+
componentWillLoad() {
|
|
565
|
+
return new Promise(resolve => salla.onReady(resolve));
|
|
566
|
+
}
|
|
560
567
|
render() {
|
|
561
568
|
return (h(Host, null, h("a", { class: "s-cart-summary-wrapper", href: salla.url.get('cart') }, h("div", { id: "s-cart-icon" }, h("slot", { name: "icon" }, h("i", { class: "s-cart-summary-icon", innerHTML: PendingOrdersIcon }))), h("span", { class: "s-cart-summary-count" }, salla.helpers.number(this.cartSummaryCount)), h("p", { class: "s-cart-summary-content" }, this.showCartLabel && h("span", { class: "s-cart-summary-label" }, this.cartLabel), h("b", { class: "s-cart-summary-total" }, salla.money(this.cartSummaryTotal))))));
|
|
562
569
|
}
|