@postnord/pn-marketweb-components 2.0.150-test → 2.0.150-test2
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/cjs/{data-b5ef4f7c.js → data-4fa6b08d.js} +2 -2
- package/cjs/loader.cjs.js +1 -1
- package/cjs/pn-find-price-result.cjs.entry.js +4 -4
- package/cjs/{pn-find-price-store-0b8c195c.js → pn-find-price-store-a91ce3f6.js} +2 -2
- package/cjs/pn-find-price.cjs.entry.js +7 -7
- package/cjs/pn-language-selector_9.cjs.entry.js +5 -2
- package/cjs/pn-market-web-components.cjs.js +1 -1
- package/cjs/{pn-marketweb-siteheader-login-button_3.cjs.entry.js → pn-marketweb-siteheader-login-button_4.cjs.entry.js} +49 -32
- package/cjs/pn-marketweb-siteheader-login-linklist.cjs.entry.js +7 -42
- package/cjs/pn-marketweb-siteheader.cjs.entry.js +2 -2
- package/cjs/{pn-product-card_4.cjs.entry.js → pn-product-card_3.cjs.entry.js} +0 -18
- package/cjs/pn-product-pricelist.cjs.entry.js +1 -1
- package/cjs/pn-proxio-findprice-result.cjs.entry.js +63 -0
- package/cjs/pn-proxio-findprice.cjs.entry.js +311 -0
- package/cjs/pn-proxio-pricegroup.cjs.entry.js +6 -22
- package/cjs/pn-titletag.cjs.entry.js +24 -0
- package/cjs/translations-585711ff.js +21 -0
- package/collection/collection-manifest.json +3 -0
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-button.css +0 -3
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-button.js +42 -34
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-linklist.css +25 -13
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-linklist.js +14 -45
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-links.js +13 -23
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-mypage-button.css +0 -0
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-mypage-button.js +55 -0
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.js +25 -4
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.css +26 -0
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.js +3 -3
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.stories.js +4 -5
- package/collection/components/widgets/pn-find-price/data.js +2 -2
- package/collection/components/widgets/pn-find-price/pn-find-price-result.js +7 -7
- package/collection/components/widgets/pn-find-price/pn-find-price-store.js +2 -2
- package/collection/components/widgets/pn-find-price/pn-find-price-translations.js +5 -5
- package/collection/components/widgets/pn-proxio-findprice/data.js +52 -0
- package/collection/components/widgets/pn-proxio-findprice/find-price.stories.js +27 -0
- package/collection/components/widgets/pn-proxio-findprice/img/clouds.svg +5 -0
- package/collection/components/widgets/pn-proxio-findprice/img/large-package.svg +9 -0
- package/collection/components/widgets/pn-proxio-findprice/img/medium-package.svg +9 -0
- package/collection/components/widgets/pn-proxio-findprice/img/postnord-person1.svg +52 -0
- package/collection/components/widgets/pn-proxio-findprice/img/postnord-person2.svg +56 -0
- package/collection/components/widgets/pn-proxio-findprice/img/small-package.svg +23 -0
- package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice-result.css +9 -0
- package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice-result.js +234 -0
- package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice-store.js +29 -0
- package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice-translations.js +106 -0
- package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice-types.js +1 -0
- package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice.css +105 -0
- package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice.js +250 -0
- package/collection/components/widgets/pn-proxio-pricegroup/pn-proxio-pricegroup.css +3 -0
- package/collection/components/widgets/pn-proxio-pricegroup/pn-proxio-pricegroup.js +1 -0
- package/collection/globals/MarketWebLoginManager.js +1 -1
- package/custom-elements/index.d.ts +18 -0
- package/custom-elements/index.js +592 -241
- package/esm/{data-9c9c5f41.js → data-059c2a58.js} +2 -2
- package/esm/loader.js +1 -1
- package/esm/pn-find-price-result.entry.js +4 -4
- package/esm/{pn-find-price-store-b4556c9b.js → pn-find-price-store-bde5071d.js} +2 -2
- package/esm/pn-find-price.entry.js +7 -7
- package/esm/pn-language-selector_9.entry.js +5 -2
- package/esm/pn-market-web-components.js +1 -1
- package/esm/{pn-marketweb-siteheader-login-button_3.entry.js → pn-marketweb-siteheader-login-button_4.entry.js} +49 -33
- package/esm/pn-marketweb-siteheader-login-linklist.entry.js +7 -42
- package/esm/pn-marketweb-siteheader.entry.js +2 -2
- package/esm/{pn-product-card_4.entry.js → pn-product-card_3.entry.js} +2 -19
- package/esm/pn-product-pricelist.entry.js +1 -1
- package/esm/pn-proxio-findprice-result.entry.js +59 -0
- package/esm/pn-proxio-findprice.entry.js +307 -0
- package/esm/pn-proxio-pricegroup.entry.js +3 -19
- package/esm/pn-titletag.entry.js +20 -0
- package/esm/translations-022fefa0.js +19 -0
- package/esm-es5/{data-9c9c5f41.js → data-059c2a58.js} +1 -1
- package/esm-es5/loader.js +1 -1
- package/esm-es5/pn-find-price-result.entry.js +1 -1
- package/esm-es5/{pn-find-price-store-b4556c9b.js → pn-find-price-store-bde5071d.js} +1 -1
- package/esm-es5/pn-find-price.entry.js +1 -1
- package/esm-es5/pn-language-selector_9.entry.js +1 -1
- package/esm-es5/pn-market-web-components.js +1 -1
- package/esm-es5/pn-marketweb-siteheader-login-button_4.entry.js +1 -0
- package/esm-es5/pn-marketweb-siteheader-login-linklist.entry.js +1 -1
- package/esm-es5/pn-marketweb-siteheader.entry.js +1 -1
- package/esm-es5/pn-product-card_3.entry.js +1 -0
- package/esm-es5/pn-product-pricelist.entry.js +1 -1
- package/esm-es5/pn-proxio-findprice-result.entry.js +1 -0
- package/esm-es5/pn-proxio-findprice.entry.js +1 -0
- package/esm-es5/pn-proxio-pricegroup.entry.js +1 -1
- package/esm-es5/pn-titletag.entry.js +1 -0
- package/esm-es5/translations-022fefa0.js +1 -0
- package/package.json +1 -1
- package/pn-market-web-components/p-10eafcd7.entry.js +1 -0
- package/pn-market-web-components/p-20be85a1.system.entry.js +1 -0
- package/pn-market-web-components/p-27bcc4a1.system.entry.js +1 -0
- package/pn-market-web-components/{p-37017f68.system.js → p-3738a2df.system.js} +1 -1
- package/pn-market-web-components/p-3969ec4d.entry.js +1 -0
- package/pn-market-web-components/p-499bb3ac.entry.js +1 -0
- package/pn-market-web-components/p-4a03854b.system.entry.js +1 -0
- package/pn-market-web-components/p-557328e3.system.entry.js +1 -0
- package/pn-market-web-components/{p-ac0e3c22.system.entry.js → p-59be826b.system.entry.js} +1 -1
- package/pn-market-web-components/p-67887512.system.js +1 -1
- package/pn-market-web-components/{p-5882d613.entry.js → p-70b360dd.entry.js} +1 -1
- package/pn-market-web-components/{p-d11a5fbb.system.entry.js → p-7f9c643c.system.entry.js} +1 -1
- package/pn-market-web-components/p-8afa354b.system.entry.js +1 -0
- package/pn-market-web-components/{p-aab2e28f.entry.js → p-8b684578.entry.js} +1 -1
- package/pn-market-web-components/p-951861fa.entry.js +1 -0
- package/pn-market-web-components/{p-736e5b84.system.entry.js → p-98a7ddd1.system.entry.js} +1 -1
- package/pn-market-web-components/p-a120063f.js +1 -0
- package/pn-market-web-components/p-b501b216.system.js +1 -0
- package/pn-market-web-components/{p-3ae38e63.entry.js → p-b9a84e67.entry.js} +1 -1
- package/pn-market-web-components/p-dd01024a.system.entry.js +1 -0
- package/pn-market-web-components/p-de823255.entry.js +1 -0
- package/pn-market-web-components/p-e0b034c2.entry.js +1 -0
- package/pn-market-web-components/p-e397e11b.entry.js +1 -0
- package/pn-market-web-components/p-e4ebf17d.system.entry.js +1 -0
- package/pn-market-web-components/{p-e4a4e68f.system.entry.js → p-ecdf2b69.system.entry.js} +1 -1
- package/pn-market-web-components/p-f58bde56.js +1 -0
- package/pn-market-web-components/p-f782ce94.system.entry.js +1 -0
- package/pn-market-web-components/p-fe95397b.entry.js +1 -0
- package/pn-market-web-components/p-ff83e974.entry.js +1 -0
- package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
- package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-button.d.ts +5 -4
- package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-linklist.d.ts +1 -2
- package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-links.d.ts +1 -1
- package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-mypage-button.d.ts +6 -0
- package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.d.ts +1 -0
- package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-types.d.ts +10 -8
- package/types/components/widgets/pn-find-price/pn-find-price-store.d.ts +4 -4
- package/types/components/widgets/pn-find-price/pn-find-price-translations.d.ts +5 -5
- package/types/components/widgets/pn-find-price/pn-find-price-types.d.ts +2 -2
- package/types/components/widgets/pn-proxio-findprice/pn-proxio-findprice-result.d.ts +22 -0
- package/types/components/widgets/pn-proxio-findprice/pn-proxio-findprice-store.d.ts +51 -0
- package/types/components/widgets/pn-proxio-findprice/pn-proxio-findprice-translations.d.ts +106 -0
- package/types/components/widgets/pn-proxio-findprice/pn-proxio-findprice-types.d.ts +39 -0
- package/types/components/widgets/pn-proxio-findprice/pn-proxio-findprice.d.ts +24 -0
- package/types/components/widgets/pn-proxio-pricegroup/types.d.ts +1 -1
- package/types/components.d.ts +72 -5
- package/umd/pn-marketweb-init.js +1 -1
- package/umd/pn-marketweb-salesforce.js +2 -2
- package/esm-es5/pn-marketweb-siteheader-login-button_3.entry.js +0 -1
- package/esm-es5/pn-product-card_4.entry.js +0 -1
- package/pn-market-web-components/p-022d9a78.entry.js +0 -1
- package/pn-market-web-components/p-198d9c77.system.entry.js +0 -1
- package/pn-market-web-components/p-332e9005.entry.js +0 -1
- package/pn-market-web-components/p-3c0d63fb.system.entry.js +0 -1
- package/pn-market-web-components/p-4a026c9d.system.entry.js +0 -1
- package/pn-market-web-components/p-6b33db5b.system.entry.js +0 -1
- package/pn-market-web-components/p-77557da8.entry.js +0 -1
- package/pn-market-web-components/p-8a05dbb6.entry.js +0 -1
- package/pn-market-web-components/p-92fd28e6.entry.js +0 -1
- package/pn-market-web-components/p-a119cb8e.entry.js +0 -1
- package/pn-market-web-components/p-c4254e9e.js +0 -1
- package/pn-market-web-components/p-d542a52b.system.entry.js +0 -1
- /package/pn-market-web-components/{p-bfa7c83f.system.js → p-1534926e.system.js} +0 -0
- /package/pn-market-web-components/{p-86b52823.js → p-a07906d5.js} +0 -0
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
import { Component, h, Prop, Host, Watch, State } from "@stencil/core";
|
|
2
|
+
import { translations } from "../pn-proxio-pricegroup/translations";
|
|
3
|
+
export class PnProxioFindPriceResult {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.item = null;
|
|
6
|
+
this.activeweight = null;
|
|
7
|
+
this.shownitems = [];
|
|
8
|
+
this.description = [];
|
|
9
|
+
this.showMeasurement = false;
|
|
10
|
+
this.weightText = "";
|
|
11
|
+
this.linkId = '';
|
|
12
|
+
this.shopLabel = '';
|
|
13
|
+
this.shopUrl = '';
|
|
14
|
+
this.shopId = '';
|
|
15
|
+
this.i18n = translations["sv"];
|
|
16
|
+
}
|
|
17
|
+
componentWillLoad() {
|
|
18
|
+
this.composeItems();
|
|
19
|
+
}
|
|
20
|
+
composeItems() {
|
|
21
|
+
this.shownitems = [this.item];
|
|
22
|
+
}
|
|
23
|
+
getPriceString(product) {
|
|
24
|
+
var _a;
|
|
25
|
+
if (product.productWeightGroupList) {
|
|
26
|
+
const activeIndex = product.productWeightGroupList.findIndex((item) => item.item1 === this.activeweight);
|
|
27
|
+
let price = product.weightAndPriceList ? (_a = product === null || product === void 0 ? void 0 : product.weightAndPriceList[activeIndex]) === null || _a === void 0 ? void 0 : _a.item2 : '';
|
|
28
|
+
return price ? this.i18n.from + price : '';
|
|
29
|
+
}
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
getProductLink(product, productWeightGroupList) {
|
|
33
|
+
var _a;
|
|
34
|
+
if (product.productWeightGroupList) {
|
|
35
|
+
const activeIndex = product.productWeightGroupList.findIndex((item) => item.item1 === this.activeweight);
|
|
36
|
+
let productId = (_a = productWeightGroupList[activeIndex]) === null || _a === void 0 ? void 0 : _a.item2;
|
|
37
|
+
let productLink = product.productLink ? product === null || product === void 0 ? void 0 : product.productLink : '';
|
|
38
|
+
return productLink ? productLink + (productId ? "?productId=" + productId : '') : '';
|
|
39
|
+
}
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
render() {
|
|
43
|
+
return (h(Host, null, h("pn-proxio-productcard", null,
|
|
44
|
+
h("pn-illustration", { slot: "illustrationmobile", illustration: this.item.proxioProduct.productIcon }),
|
|
45
|
+
h("h2", { slot: "title" }, this.item.proxioProduct.productTitle),
|
|
46
|
+
h("pn-proxio-productcard-description", { slot: "description", heading: this.item.proxioProduct.productPreamble, highlight: this.item.proxioProduct.deliveryDateInformation, list: this.item.proxioProduct.productDescriptionBulletListItems }),
|
|
47
|
+
h("div", { slot: "information" },
|
|
48
|
+
h("pn-proxio-productcard-information", { label: this.i18n.labelMaxDimensions, information: this.item.proxioProduct.productPackageDimensionsList }),
|
|
49
|
+
h("pn-proxio-productcard-information", { label: this.i18n.labelMaxDimensionsRoll, information: this.item.proxioProduct.productRollDimensionsList })),
|
|
50
|
+
h("div", { slot: "bottomtags" },
|
|
51
|
+
this.item.proxioProduct.usp1 ?
|
|
52
|
+
(h("pn-titletag", { color: "gray50" }, this.item.proxioProduct.usp1)) : (null),
|
|
53
|
+
this.item.proxioProduct.usp2 ?
|
|
54
|
+
(h("pn-titletag", { color: "gray50" }, this.item.proxioProduct.usp2)) : (null),
|
|
55
|
+
this.item.proxioProduct.usp3 ?
|
|
56
|
+
(h("pn-titletag", { color: "gray50" }, this.item.proxioProduct.usp3)) : (null)),
|
|
57
|
+
h("pn-illustration", { slot: "illustration", illustration: this.item.proxioProduct.productIcon }),
|
|
58
|
+
h("div", { slot: "pricelink" },
|
|
59
|
+
h("pn-proxio-productcard-pricelink", { price: this.getPriceString(this.item.proxioProduct), link: this.getProductLink(this.item.proxioProduct, this.item.proxioProduct.productWeightGroupList), linktext: this.item.proxioProduct.productLinkText }),
|
|
60
|
+
this.item.relatedProxioProducts ? (this.item.relatedProxioProducts.map((product) => (h("pn-proxio-productcard-pricelink", { price: this.getPriceString(product), link: product.productLink, linktext: product.productLinkText })))) : (null)))));
|
|
61
|
+
}
|
|
62
|
+
static get is() { return "pn-proxio-findprice-result"; }
|
|
63
|
+
static get originalStyleUrls() { return {
|
|
64
|
+
"$": ["pn-proxio-findprice-result.scss"]
|
|
65
|
+
}; }
|
|
66
|
+
static get styleUrls() { return {
|
|
67
|
+
"$": ["pn-proxio-findprice-result.css"]
|
|
68
|
+
}; }
|
|
69
|
+
static get properties() { return {
|
|
70
|
+
"item": {
|
|
71
|
+
"type": "unknown",
|
|
72
|
+
"mutable": true,
|
|
73
|
+
"complexType": {
|
|
74
|
+
"original": "ProxioPriceListGroupResponse",
|
|
75
|
+
"resolved": "ProxioPriceListGroupResponse",
|
|
76
|
+
"references": {
|
|
77
|
+
"ProxioPriceListGroupResponse": {
|
|
78
|
+
"location": "import",
|
|
79
|
+
"path": "../pn-proxio-pricegroup/types"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"required": false,
|
|
84
|
+
"optional": false,
|
|
85
|
+
"docs": {
|
|
86
|
+
"tags": [],
|
|
87
|
+
"text": ""
|
|
88
|
+
},
|
|
89
|
+
"defaultValue": "null"
|
|
90
|
+
},
|
|
91
|
+
"activeweight": {
|
|
92
|
+
"type": "number",
|
|
93
|
+
"mutable": true,
|
|
94
|
+
"complexType": {
|
|
95
|
+
"original": "number",
|
|
96
|
+
"resolved": "number",
|
|
97
|
+
"references": {}
|
|
98
|
+
},
|
|
99
|
+
"required": false,
|
|
100
|
+
"optional": false,
|
|
101
|
+
"docs": {
|
|
102
|
+
"tags": [],
|
|
103
|
+
"text": ""
|
|
104
|
+
},
|
|
105
|
+
"attribute": "activeweight",
|
|
106
|
+
"reflect": false,
|
|
107
|
+
"defaultValue": "null"
|
|
108
|
+
},
|
|
109
|
+
"shownitems": {
|
|
110
|
+
"type": "unknown",
|
|
111
|
+
"mutable": false,
|
|
112
|
+
"complexType": {
|
|
113
|
+
"original": "ProxioPriceListGroupResponse[]",
|
|
114
|
+
"resolved": "ProxioPriceListGroupResponse[]",
|
|
115
|
+
"references": {
|
|
116
|
+
"ProxioPriceListGroupResponse": {
|
|
117
|
+
"location": "import",
|
|
118
|
+
"path": "../pn-proxio-pricegroup/types"
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"required": false,
|
|
123
|
+
"optional": false,
|
|
124
|
+
"docs": {
|
|
125
|
+
"tags": [],
|
|
126
|
+
"text": ""
|
|
127
|
+
},
|
|
128
|
+
"defaultValue": "[]"
|
|
129
|
+
},
|
|
130
|
+
"Usp1": {
|
|
131
|
+
"type": "string",
|
|
132
|
+
"mutable": false,
|
|
133
|
+
"complexType": {
|
|
134
|
+
"original": "string",
|
|
135
|
+
"resolved": "string",
|
|
136
|
+
"references": {}
|
|
137
|
+
},
|
|
138
|
+
"required": false,
|
|
139
|
+
"optional": true,
|
|
140
|
+
"docs": {
|
|
141
|
+
"tags": [],
|
|
142
|
+
"text": ""
|
|
143
|
+
},
|
|
144
|
+
"attribute": "usp-1",
|
|
145
|
+
"reflect": false
|
|
146
|
+
},
|
|
147
|
+
"Usp2": {
|
|
148
|
+
"type": "string",
|
|
149
|
+
"mutable": false,
|
|
150
|
+
"complexType": {
|
|
151
|
+
"original": "string",
|
|
152
|
+
"resolved": "string",
|
|
153
|
+
"references": {}
|
|
154
|
+
},
|
|
155
|
+
"required": false,
|
|
156
|
+
"optional": true,
|
|
157
|
+
"docs": {
|
|
158
|
+
"tags": [],
|
|
159
|
+
"text": ""
|
|
160
|
+
},
|
|
161
|
+
"attribute": "usp-2",
|
|
162
|
+
"reflect": false
|
|
163
|
+
},
|
|
164
|
+
"Usp3": {
|
|
165
|
+
"type": "string",
|
|
166
|
+
"mutable": false,
|
|
167
|
+
"complexType": {
|
|
168
|
+
"original": "string",
|
|
169
|
+
"resolved": "string",
|
|
170
|
+
"references": {}
|
|
171
|
+
},
|
|
172
|
+
"required": false,
|
|
173
|
+
"optional": true,
|
|
174
|
+
"docs": {
|
|
175
|
+
"tags": [],
|
|
176
|
+
"text": ""
|
|
177
|
+
},
|
|
178
|
+
"attribute": "usp-3",
|
|
179
|
+
"reflect": false
|
|
180
|
+
},
|
|
181
|
+
"description": {
|
|
182
|
+
"type": "unknown",
|
|
183
|
+
"mutable": false,
|
|
184
|
+
"complexType": {
|
|
185
|
+
"original": "string[]",
|
|
186
|
+
"resolved": "string[]",
|
|
187
|
+
"references": {}
|
|
188
|
+
},
|
|
189
|
+
"required": false,
|
|
190
|
+
"optional": true,
|
|
191
|
+
"docs": {
|
|
192
|
+
"tags": [],
|
|
193
|
+
"text": ""
|
|
194
|
+
},
|
|
195
|
+
"defaultValue": "[]"
|
|
196
|
+
},
|
|
197
|
+
"showMeasurement": {
|
|
198
|
+
"type": "boolean",
|
|
199
|
+
"mutable": false,
|
|
200
|
+
"complexType": {
|
|
201
|
+
"original": "boolean",
|
|
202
|
+
"resolved": "boolean",
|
|
203
|
+
"references": {}
|
|
204
|
+
},
|
|
205
|
+
"required": false,
|
|
206
|
+
"optional": true,
|
|
207
|
+
"docs": {
|
|
208
|
+
"tags": [],
|
|
209
|
+
"text": ""
|
|
210
|
+
},
|
|
211
|
+
"attribute": "show-measurement",
|
|
212
|
+
"reflect": false,
|
|
213
|
+
"defaultValue": "false"
|
|
214
|
+
}
|
|
215
|
+
}; }
|
|
216
|
+
static get states() { return {
|
|
217
|
+
"weightText": {},
|
|
218
|
+
"linkId": {},
|
|
219
|
+
"shopLabel": {},
|
|
220
|
+
"shopUrl": {},
|
|
221
|
+
"shopId": {},
|
|
222
|
+
"i18n": {}
|
|
223
|
+
}; }
|
|
224
|
+
static get watchers() { return [{
|
|
225
|
+
"propName": "item",
|
|
226
|
+
"methodName": "composeItems"
|
|
227
|
+
}, {
|
|
228
|
+
"propName": "activeweight",
|
|
229
|
+
"methodName": "getPriceString"
|
|
230
|
+
}, {
|
|
231
|
+
"propName": "activeweight",
|
|
232
|
+
"methodName": "getProductLink"
|
|
233
|
+
}]; }
|
|
234
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { createStore } from "@stencil/store";
|
|
2
|
+
// Read more about how stencil stores work here: https://stenciljs.com/docs/stencil-store
|
|
3
|
+
const { state, onChange } = createStore({
|
|
4
|
+
i18n: {
|
|
5
|
+
componentheading: '',
|
|
6
|
+
deliveryscopeheading: '',
|
|
7
|
+
resultlistheading: '',
|
|
8
|
+
sizeheading: '',
|
|
9
|
+
weightheading: '',
|
|
10
|
+
weightlabel: '',
|
|
11
|
+
maxweightlabel: '',
|
|
12
|
+
maxmeasurementlabel: '',
|
|
13
|
+
senddirectcta: '',
|
|
14
|
+
stampshopcta: '',
|
|
15
|
+
message: '',
|
|
16
|
+
servicePointHeader: '',
|
|
17
|
+
servicePointLink: '',
|
|
18
|
+
realPostcard: '',
|
|
19
|
+
realPostcardMobile: '',
|
|
20
|
+
ombudHeader: ''
|
|
21
|
+
},
|
|
22
|
+
market: {
|
|
23
|
+
currency: "",
|
|
24
|
+
country: "",
|
|
25
|
+
servicePoint: "",
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
export { state, onChange };
|
|
29
|
+
export default state;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
export const translations = {
|
|
2
|
+
'sv': {
|
|
3
|
+
'componentheading': 'Våra priser och villkor för inrikesförsändelser för dig som direktbetalande kund?',
|
|
4
|
+
'deliveryscopeheading': 'Endast leveranser inom Sverige',
|
|
5
|
+
'resultlistheading': 'Några bra alternativ för dig',
|
|
6
|
+
'sizeheading': 'Uppskatta storleken på din försändelse',
|
|
7
|
+
'weightheading': 'Uppskatta vikten på din försändelse',
|
|
8
|
+
'weightlabel': 'Vikt',
|
|
9
|
+
'maxweightlabel': 'Maxvikt',
|
|
10
|
+
'maxmeasurementlabel': 'Maxvolym',
|
|
11
|
+
'senddirectcta': 'Köp online',
|
|
12
|
+
'stampshopcta': 'Till butiken',
|
|
13
|
+
'message': '*Vid köp hos valfritt ombud',
|
|
14
|
+
'servicePointHeader': 'Eller hitta närmaste serviceställe',
|
|
15
|
+
'servicePointLink': 'Hitta Serviceställe',
|
|
16
|
+
'realPostcard': 'Köp Riktiga Vykort',
|
|
17
|
+
'realPostcardMobile': 'Ladda ner appen',
|
|
18
|
+
'ombudHeader': 'Köp via ombud',
|
|
19
|
+
"from": "Från ",
|
|
20
|
+
"labelMaxDimensionsRoll": "Rulle",
|
|
21
|
+
"labelMaxDimensions": "Maxmått"
|
|
22
|
+
},
|
|
23
|
+
'en': {
|
|
24
|
+
'componentheading': 'Our prices and terms and conditions for domestic shipments for you as a direct paying customer',
|
|
25
|
+
'deliveryscopeheading': 'Deliveries within Sweden only',
|
|
26
|
+
'resultlistheading': 'Some suitable options for you',
|
|
27
|
+
'sizeheading': 'Estimate the size of your shipment',
|
|
28
|
+
'weightheading': 'Estimate the weight of your shipment',
|
|
29
|
+
'weightlabel': 'Weight',
|
|
30
|
+
'maxweightlabel': 'Max weight',
|
|
31
|
+
'maxmeasurementlabel': 'Maximum measurement',
|
|
32
|
+
'senddirectcta': 'Buy Online',
|
|
33
|
+
'stampshopcta': 'To the Store',
|
|
34
|
+
'message': 'When buying from any agent',
|
|
35
|
+
'servicePointHeader': 'Find service point',
|
|
36
|
+
'servicePointLink': 'Find service point',
|
|
37
|
+
'realPostcard': 'Buy Postcards',
|
|
38
|
+
'realPostcardMobile': 'Download the app',
|
|
39
|
+
'ombudHeader': 'Purchase by agent',
|
|
40
|
+
"from": "From ",
|
|
41
|
+
"labelMaxDimensionsRoll": "Roll",
|
|
42
|
+
"labelMaxDimensions": "Maximum dimensions"
|
|
43
|
+
},
|
|
44
|
+
'da': {
|
|
45
|
+
'componentheading': 'Vad vill du skicka?',
|
|
46
|
+
'deliveryscopeheading': 'Kun leveringer indenfor Sverige',
|
|
47
|
+
'resultlistheading': 'Nogle passende muligheder for dig',
|
|
48
|
+
'sizeheading': 'Anslå størrelsen på din forsendelse',
|
|
49
|
+
'weightheading': 'Anslå vægten af din forsendelse',
|
|
50
|
+
'weightlabel': 'Vægt',
|
|
51
|
+
'maxweightlabel': 'Max vægt',
|
|
52
|
+
'maxmeasurementlabel': 'Maks. Volumen',
|
|
53
|
+
'senddirectcta': 'Køb Online',
|
|
54
|
+
'stampshopcta': 'Til butikken',
|
|
55
|
+
'message': 'When buying from any agent',
|
|
56
|
+
'servicePointHeader': 'Find nærmeste servicested',
|
|
57
|
+
'servicePointLink': 'Find nærmeste servicested',
|
|
58
|
+
'realPostcard': 'Køb Riktiga Vykort',
|
|
59
|
+
'ombudHeader': 'Køb af agent',
|
|
60
|
+
"from": "Från ",
|
|
61
|
+
"labelMaxDimensionsRoll": "Rulle",
|
|
62
|
+
"labelMaxDimensions": "Maks måle"
|
|
63
|
+
},
|
|
64
|
+
'no': {
|
|
65
|
+
'componentheading': 'Vad vill du skicka?',
|
|
66
|
+
'deliveryscopeheading': 'Kun leveranser innen Sverige',
|
|
67
|
+
'resultlistheading': 'Some suitable options for you',
|
|
68
|
+
'weightlabel': 'Vekt',
|
|
69
|
+
'maxweightlabel': 'Maks vekt',
|
|
70
|
+
'maxmeasurementlabel': 'Maks volum',
|
|
71
|
+
'senddirectcta': 'Buy shipping in Send Direct',
|
|
72
|
+
'stampshopcta': 'Order home stamps from the webshop',
|
|
73
|
+
},
|
|
74
|
+
'fi': {
|
|
75
|
+
'componentheading': 'Vad vill du skicka?',
|
|
76
|
+
'deliveryscopeheading': 'Toimitukset vain Ruotsin sisällä',
|
|
77
|
+
'resultlistheading': 'Some suitable options for you',
|
|
78
|
+
'weightlabel': 'Paino',
|
|
79
|
+
'maxweightlabel': 'Max paino',
|
|
80
|
+
'maxmeasurementlabel': 'Max äänenvoimakkuus',
|
|
81
|
+
'senddirectcta': 'Buy shipping in Send Direct',
|
|
82
|
+
'stampshopcta': 'Order home stamps from the webshop',
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
export const markets = {
|
|
86
|
+
'se': {
|
|
87
|
+
"currency": "kr",
|
|
88
|
+
"country": "Sweden",
|
|
89
|
+
"servicePoint": "https://www.postnord.se/vara-verktyg/sok-brevlada-eller-servicestalle",
|
|
90
|
+
},
|
|
91
|
+
'dk': {
|
|
92
|
+
"currency": "dk",
|
|
93
|
+
"country": "Denmark",
|
|
94
|
+
"servicePoint": "https://www.postnord.dk/varktojer/find-os",
|
|
95
|
+
},
|
|
96
|
+
'fi': {
|
|
97
|
+
"currency": " €",
|
|
98
|
+
"country": "Finland",
|
|
99
|
+
"servicePoint": "",
|
|
100
|
+
},
|
|
101
|
+
'no': {
|
|
102
|
+
"currency": "kr",
|
|
103
|
+
"country": "Norway",
|
|
104
|
+
"servicePoint": "",
|
|
105
|
+
}
|
|
106
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
pn-proxio-findprice .findprice-form {
|
|
3
|
+
/*max-width: 60em;*/
|
|
4
|
+
margin: 0em auto 3em auto;
|
|
5
|
+
}
|
|
6
|
+
pn-proxio-findprice .findprice-form-wrapper {
|
|
7
|
+
background-color: #EFFBFF;
|
|
8
|
+
padding: 3.2rem 0;
|
|
9
|
+
}
|
|
10
|
+
pn-proxio-findprice .sizeTable {
|
|
11
|
+
border-style: none !important;
|
|
12
|
+
border: 0 !important;
|
|
13
|
+
position: relative;
|
|
14
|
+
}
|
|
15
|
+
pn-proxio-findprice .sizeTable > tr td {
|
|
16
|
+
margin-bottom: 1em;
|
|
17
|
+
text-align: center;
|
|
18
|
+
vertical-align: bottom;
|
|
19
|
+
padding-right: 1em;
|
|
20
|
+
padding-top: 1em;
|
|
21
|
+
}
|
|
22
|
+
pn-proxio-findprice .sizeTable #clouds {
|
|
23
|
+
position: absolute;
|
|
24
|
+
top: 0em;
|
|
25
|
+
left: 4em;
|
|
26
|
+
z-index: -1;
|
|
27
|
+
}
|
|
28
|
+
pn-proxio-findprice .firstCell {
|
|
29
|
+
margin-right: 0;
|
|
30
|
+
margin-left: auto;
|
|
31
|
+
}
|
|
32
|
+
pn-proxio-findprice [slot=title] {
|
|
33
|
+
margin-bottom: 1rem;
|
|
34
|
+
}
|
|
35
|
+
pn-proxio-findprice h2 {
|
|
36
|
+
text-align: center;
|
|
37
|
+
}
|
|
38
|
+
pn-proxio-findprice .heading {
|
|
39
|
+
text-align: center;
|
|
40
|
+
line-height: 1.1;
|
|
41
|
+
font-weight: bold;
|
|
42
|
+
margin-bottom: 1rem;
|
|
43
|
+
color: #000000;
|
|
44
|
+
}
|
|
45
|
+
pn-proxio-findprice .resultHeading {
|
|
46
|
+
text-align: center;
|
|
47
|
+
font-size: 1.5em;
|
|
48
|
+
line-height: 1.1;
|
|
49
|
+
font-weight: bold;
|
|
50
|
+
margin-bottom: 2em;
|
|
51
|
+
}
|
|
52
|
+
pn-proxio-findprice .sizecategory {
|
|
53
|
+
margin-top: 1em;
|
|
54
|
+
margin-bottom: 3rem;
|
|
55
|
+
font-size: 0.9em;
|
|
56
|
+
display: flex;
|
|
57
|
+
align-items: center;
|
|
58
|
+
justify-content: center;
|
|
59
|
+
}
|
|
60
|
+
pn-proxio-findprice .weightoption {
|
|
61
|
+
font-size: 0.9em;
|
|
62
|
+
margin: 0 auto;
|
|
63
|
+
}
|
|
64
|
+
pn-proxio-findprice .weightoption-content {
|
|
65
|
+
text-align: center;
|
|
66
|
+
}
|
|
67
|
+
pn-proxio-findprice .weightoption-content pn-choice-button {
|
|
68
|
+
width: 7em;
|
|
69
|
+
line-height: 3.3em;
|
|
70
|
+
font-size: 0.9em;
|
|
71
|
+
vertical-align: bottom;
|
|
72
|
+
}
|
|
73
|
+
pn-proxio-findprice .weightoption-content pn-choice-button > label {
|
|
74
|
+
align-content: center;
|
|
75
|
+
justify-content: center;
|
|
76
|
+
}
|
|
77
|
+
pn-proxio-findprice .weightoption-content pn-choice-button ::before {
|
|
78
|
+
content: "Max ";
|
|
79
|
+
font-weight: lighter;
|
|
80
|
+
}
|
|
81
|
+
pn-proxio-findprice .resultlist {
|
|
82
|
+
max-width: 60em;
|
|
83
|
+
margin: 3.2rem auto 3.2rem auto;
|
|
84
|
+
}
|
|
85
|
+
pn-proxio-findprice .servicePoint {
|
|
86
|
+
text-align: center;
|
|
87
|
+
}
|
|
88
|
+
pn-proxio-findprice .servicePoint pn-illustration {
|
|
89
|
+
display: block;
|
|
90
|
+
max-width: 5em;
|
|
91
|
+
max-height: 5em;
|
|
92
|
+
margin: 1.5em auto 0 auto;
|
|
93
|
+
}
|
|
94
|
+
pn-proxio-findprice .servicePoint h3 {
|
|
95
|
+
margin-top: 0.8em;
|
|
96
|
+
margin-bottom: 0.9em;
|
|
97
|
+
}
|
|
98
|
+
pn-proxio-findprice .servicePoint a {
|
|
99
|
+
color: #005D92;
|
|
100
|
+
text-decoration: none;
|
|
101
|
+
}
|
|
102
|
+
pn-proxio-findprice .servicePoint a:hover {
|
|
103
|
+
color: #0D234B;
|
|
104
|
+
text-decoration: underline;
|
|
105
|
+
}
|