@postnord/pn-marketweb-components 2.0.103 → 2.0.105
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/loader.cjs.js +1 -1
- package/cjs/pn-market-web-components.cjs.js +1 -1
- package/cjs/pn-parcel-tracker.cjs.entry.js +30 -0
- package/cjs/pn-proxio-pricegroup.cjs.entry.js +22 -20
- package/cjs/pn-proxio-productcard_4.cjs.entry.js +1 -1
- package/cjs/pn-quick-cta.cjs.entry.js +1 -1
- package/cjs/pn-site-footer_2.cjs.entry.js +1 -1
- package/cjs/pn-spotlight.cjs.entry.js +1 -1
- package/collection/collection-manifest.json +1 -0
- package/collection/components/cta/pn-parcel-tracker/pn-parcel-tracker.css +55 -0
- package/collection/components/cta/pn-parcel-tracker/pn-parcel-tracker.js +151 -0
- package/collection/components/cta/pn-parcel-tracker/pn-parcel-tracker.stories.js +71 -0
- package/collection/components/cta/pn-quick-cta/pn-quick-cta.css +4 -0
- package/collection/components/cta/pn-quick-cta/pn-quick-cta.stories.js +37 -6
- package/collection/components/cta/pn-spotlight/pn-spotlight.css +12 -5
- package/collection/components/cta/pn-spotlight/pn-spotlight.stories.js +4 -10
- package/collection/components/navigation/pn-site-footer/pn-site-footer.css +3 -0
- package/collection/components/widgets/pn-proxio-pricegroup/pn-proxio-pricegroup.js +37 -16
- package/collection/components/widgets/pn-proxio-pricegroup/pn-proxio-pricegroup.stories.js +4 -2
- package/collection/components/widgets/pn-proxio-pricegroup/translations.js +10 -10
- package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard-information.js +3 -3
- package/custom-elements/index.d.ts +6 -0
- package/custom-elements/index.js +54 -26
- package/esm/loader.js +1 -1
- package/esm/pn-market-web-components.js +1 -1
- package/esm/pn-parcel-tracker.entry.js +26 -0
- package/esm/pn-proxio-pricegroup.entry.js +22 -20
- package/esm/pn-proxio-productcard_4.entry.js +1 -1
- package/esm/pn-quick-cta.entry.js +1 -1
- package/esm/pn-site-footer_2.entry.js +1 -1
- package/esm/pn-spotlight.entry.js +1 -1
- package/esm-es5/loader.js +1 -1
- package/esm-es5/pn-market-web-components.js +1 -1
- package/esm-es5/pn-parcel-tracker.entry.js +1 -0
- package/esm-es5/pn-proxio-pricegroup.entry.js +1 -1
- package/esm-es5/pn-proxio-productcard_4.entry.js +1 -1
- package/esm-es5/pn-quick-cta.entry.js +1 -1
- package/esm-es5/pn-site-footer_2.entry.js +1 -1
- package/esm-es5/pn-spotlight.entry.js +1 -1
- package/package.json +1 -1
- package/pn-market-web-components/{p-375354d3.entry.js → p-2a598ee8.entry.js} +1 -1
- package/pn-market-web-components/p-489412d3.entry.js +1 -0
- package/pn-market-web-components/{p-bc99f2db.entry.js → p-5e3a007c.entry.js} +1 -1
- package/pn-market-web-components/p-65fef4e8.entry.js +1 -0
- package/pn-market-web-components/p-67887512.system.js +1 -1
- package/pn-market-web-components/p-8bb1a8f9.system.entry.js +1 -0
- package/pn-market-web-components/p-95d13488.system.entry.js +1 -0
- package/pn-market-web-components/p-9854fc3d.system.entry.js +1 -0
- package/pn-market-web-components/p-a2469aa9.entry.js +1 -0
- package/pn-market-web-components/{p-5ab6f876.system.entry.js → p-a275bffb.system.entry.js} +1 -1
- package/pn-market-web-components/p-b8e88d11.entry.js +1 -0
- package/pn-market-web-components/p-e6702d02.system.entry.js +1 -0
- package/pn-market-web-components/p-f6ce6620.system.entry.js +1 -0
- package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
- package/types/components/cta/pn-parcel-tracker/pn-parcel-tracker.d.ts +12 -0
- package/types/components/widgets/pn-proxio-pricegroup/pn-proxio-pricegroup.d.ts +3 -2
- package/types/components/widgets/pn-proxio-pricegroup/translations.d.ts +9 -9
- package/types/components/widgets/pn-proxio-pricegroup/types.d.ts +8 -2
- package/types/components.d.ts +29 -2
- package/umd/pn-marketweb-init.js +1 -1
- package/umd/pn-marketweb-salesforce.js +2 -2
- package/pn-market-web-components/p-29b86818.system.entry.js +0 -1
- package/pn-market-web-components/p-42e0465b.system.entry.js +0 -1
- package/pn-market-web-components/p-7abbf3f7.system.entry.js +0 -1
- package/pn-market-web-components/p-81b63bcc.entry.js +0 -1
- package/pn-market-web-components/p-a2824f3b.entry.js +0 -1
- package/pn-market-web-components/p-a57ed38c.entry.js +0 -1
- package/pn-market-web-components/p-dab1d7d7.system.entry.js +0 -1
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import readme from './readme.md';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: 'CTA/Parcel tracker',
|
|
5
|
+
parameters: {
|
|
6
|
+
notes: readme,
|
|
7
|
+
layout: 'fullscreen',
|
|
8
|
+
},
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
const TemplatePrimary = ({ data, ...args }) => {
|
|
12
|
+
return `
|
|
13
|
+
<pn-breakpoints break-point-class="dotcom"></pn-breakpoints>
|
|
14
|
+
<div id="container" style="margin: 0 auto;">
|
|
15
|
+
<pn-spotlight data-cta-color="blue">
|
|
16
|
+
<h2 slot="mobile-heading">${data[0].heading}</h2>
|
|
17
|
+
<div slot="content">
|
|
18
|
+
<pn-parcel-tracker form-action-url="${data[0].actionUrl}" placeholder="${data[0].placeholder}" heading="${data[0].heading}" button-label="${data[0].buttonLabel}" />
|
|
19
|
+
</div>
|
|
20
|
+
</pn-spotlight>
|
|
21
|
+
</div>
|
|
22
|
+
<br />
|
|
23
|
+
|
|
24
|
+
<div id="container" style="margin: 0 auto;">
|
|
25
|
+
<pn-spotlight data-cta-color="coral">
|
|
26
|
+
<h2 slot="mobile-heading">${data[1].heading}</h2>
|
|
27
|
+
<div slot="content">
|
|
28
|
+
<pn-parcel-tracker form-action-url="${data[1].actionUrl}" placeholder="${data[1].placeholder}"heading="${data[1].heading}" button-label="${data[1].buttonLabel}" />
|
|
29
|
+
</div>
|
|
30
|
+
</pn-spotlight>
|
|
31
|
+
</div>
|
|
32
|
+
|
|
33
|
+
<br/>
|
|
34
|
+
|
|
35
|
+
<div id="container" style="margin: 0 auto;">
|
|
36
|
+
<pn-spotlight data-cta-color="green">
|
|
37
|
+
<h2 slot="mobile-heading">${data[2].heading}</h2>
|
|
38
|
+
<div slot="content">
|
|
39
|
+
<pn-parcel-tracker form-action-url="${data[2].actionUrl}" placeholder="${data[2].placeholder}" heading="${data[2].heading}" button-label="${data[2].buttonLabel}" />
|
|
40
|
+
</div>
|
|
41
|
+
</pn-spotlight>
|
|
42
|
+
</div>`;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export const Primary = TemplatePrimary.bind({});
|
|
46
|
+
|
|
47
|
+
Primary.args = {
|
|
48
|
+
data: [
|
|
49
|
+
{
|
|
50
|
+
heading: 'Spåra din försändelse',
|
|
51
|
+
actionUrl: 'https://se-integration.postnord.com/vara-verktyg/spara-brev-paket-och-pall',
|
|
52
|
+
buttonLabel: 'Spåra',
|
|
53
|
+
locale: 'sv',
|
|
54
|
+
placeholder: 'Försändelse-ID',
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
heading: 'Track your parcel',
|
|
58
|
+
actionUrl: 'https://com-integration.postnord.com/vara-verktyg/spara-brev-paket-och-pall',
|
|
59
|
+
buttonLabel: 'Track',
|
|
60
|
+
locale: 'en',
|
|
61
|
+
placeholder: 'Enter shipment ID',
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
heading: 'Spor din pakke',
|
|
65
|
+
actionUrl: 'https://no-integration.postnord.com/pakkesporing',
|
|
66
|
+
buttonLabel: 'Spor',
|
|
67
|
+
locale: 'no',
|
|
68
|
+
placeholder: 'Sendningsnummer',
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
};
|
|
@@ -10,12 +10,43 @@ export default {
|
|
|
10
10
|
|
|
11
11
|
const TemplatePrimary = ({ ...args }) => {
|
|
12
12
|
return `
|
|
13
|
-
|
|
14
|
-
<div id="container" style="margin: 0 auto;">
|
|
15
|
-
<pn-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
<pn-breakpoints break-point-class="dotcom"></pn-breakpoints>
|
|
14
|
+
<div id="container" style="margin: 0 auto;">
|
|
15
|
+
<pn-spotlight data-cta-color="blue">
|
|
16
|
+
<h2 slot="mobile-heading">${args.heading}</h2>
|
|
17
|
+
<div slot="content">
|
|
18
|
+
<pn-quick-cta heading="${args.heading}" preamble="${args.preamble}">
|
|
19
|
+
<pn-button slot="quick-cta-cta" href="${args.ctaUrl}">${args.ctaLabel}</pn-button>
|
|
20
|
+
</pn-quick-cta>
|
|
21
|
+
</div>
|
|
22
|
+
</pn-spotlight>
|
|
23
|
+
</div>
|
|
24
|
+
|
|
25
|
+
<br/>
|
|
26
|
+
|
|
27
|
+
<div id="container" style="margin: 0 auto;">
|
|
28
|
+
<pn-spotlight data-cta-color="coral">
|
|
29
|
+
<h2 slot="mobile-heading">${args.heading}</h2>
|
|
30
|
+
<div slot="content">
|
|
31
|
+
<pn-quick-cta heading="${args.heading}" preamble="${args.preamble}">
|
|
32
|
+
<pn-button slot="quick-cta-cta" href="${args.ctaUrl}">${args.ctaLabel}</pn-button>
|
|
33
|
+
</pn-quick-cta>
|
|
34
|
+
</div>
|
|
35
|
+
</pn-spotlight>
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
<br />
|
|
39
|
+
|
|
40
|
+
<div id="container" style="margin: 0 auto;">
|
|
41
|
+
<pn-spotlight data-cta-color="green">
|
|
42
|
+
<h2 slot="mobile-heading">${args.heading}</h2>
|
|
43
|
+
<div slot="content">
|
|
44
|
+
<pn-quick-cta heading="${args.heading}" preamble="${args.preamble}">
|
|
45
|
+
<pn-button slot="quick-cta-cta" href="${args.ctaUrl}">${args.ctaLabel}</pn-button>
|
|
46
|
+
</pn-quick-cta>
|
|
47
|
+
</div>
|
|
48
|
+
</pn-spotlight>
|
|
49
|
+
</div> `;
|
|
19
50
|
};
|
|
20
51
|
|
|
21
52
|
export const Primary = TemplatePrimary.bind({});
|
|
@@ -21,9 +21,14 @@ pn-spotlight .pn-spotlight__container__wrapper {
|
|
|
21
21
|
position: relative;
|
|
22
22
|
max-width: 100%;
|
|
23
23
|
}
|
|
24
|
-
@media screen and (min-width:
|
|
24
|
+
@media screen and (min-width: 992px) {
|
|
25
25
|
pn-spotlight .pn-spotlight__container__wrapper {
|
|
26
|
+
max-width: 90%;
|
|
26
27
|
margin: 0 auto;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
@media screen and (min-width: 1640px) {
|
|
31
|
+
pn-spotlight .pn-spotlight__container__wrapper {
|
|
27
32
|
max-width: 80%;
|
|
28
33
|
}
|
|
29
34
|
}
|
|
@@ -32,8 +37,8 @@ pn-spotlight .pn-spotlight__container__wrapper__content {
|
|
|
32
37
|
margin: 0 auto;
|
|
33
38
|
display: flex;
|
|
34
39
|
flex-direction: row;
|
|
35
|
-
left: -
|
|
36
|
-
width: calc(100% +
|
|
40
|
+
left: -57.5px;
|
|
41
|
+
width: calc(100% + 57.5px);
|
|
37
42
|
}
|
|
38
43
|
@media screen and (min-width: 768px) {
|
|
39
44
|
pn-spotlight .pn-spotlight__container__wrapper__content {
|
|
@@ -51,11 +56,12 @@ pn-spotlight .pn-spotlight__container__wrapper__content__ball {
|
|
|
51
56
|
border-radius: 50%;
|
|
52
57
|
min-height: 75px;
|
|
53
58
|
aspect-ratio: 1/1;
|
|
54
|
-
margin-right:
|
|
59
|
+
margin-right: 1.5rem;
|
|
55
60
|
}
|
|
56
61
|
@media screen and (min-width: 768px) {
|
|
57
62
|
pn-spotlight .pn-spotlight__container__wrapper__content__ball {
|
|
58
63
|
min-height: 85px;
|
|
64
|
+
margin-right: 2.5rem;
|
|
59
65
|
}
|
|
60
66
|
}
|
|
61
67
|
pn-spotlight [slot=content] {
|
|
@@ -64,12 +70,13 @@ pn-spotlight [slot=content] {
|
|
|
64
70
|
border-bottom-left-radius: 10rem;
|
|
65
71
|
align-items: center;
|
|
66
72
|
justify-content: right;
|
|
67
|
-
padding: 0
|
|
73
|
+
padding: 0 1.5rem;
|
|
68
74
|
padding-left: 50px;
|
|
69
75
|
width: 100%;
|
|
70
76
|
}
|
|
71
77
|
@media screen and (min-width: 992px) {
|
|
72
78
|
pn-spotlight [slot=content] {
|
|
79
|
+
padding: 0 2rem;
|
|
73
80
|
border-radius: 10rem;
|
|
74
81
|
}
|
|
75
82
|
}
|
|
@@ -15,9 +15,7 @@ const TemplatePrimary = ({ ...args }) => {
|
|
|
15
15
|
<pn-spotlight data-cta-color="blue">
|
|
16
16
|
<h2 slot="mobile-heading">${args.heading}</h2>
|
|
17
17
|
<div slot="content">
|
|
18
|
-
|
|
19
|
-
<pn-button slot="quick-cta-cta" href="${args.ctaUrl}">${args.ctaLabel}</pn-button>
|
|
20
|
-
</pn-quick-cta>
|
|
18
|
+
|
|
21
19
|
</div>
|
|
22
20
|
</pn-spotlight>
|
|
23
21
|
</div>
|
|
@@ -28,9 +26,7 @@ const TemplatePrimary = ({ ...args }) => {
|
|
|
28
26
|
<pn-spotlight data-cta-color="coral">
|
|
29
27
|
<h2 slot="mobile-heading">${args.heading}</h2>
|
|
30
28
|
<div slot="content">
|
|
31
|
-
|
|
32
|
-
<pn-button slot="quick-cta-cta" href="${args.ctaUrl}">${args.ctaLabel}</pn-button>
|
|
33
|
-
</pn-quick-cta>
|
|
29
|
+
|
|
34
30
|
</div>
|
|
35
31
|
</pn-spotlight>
|
|
36
32
|
</div>
|
|
@@ -41,9 +37,7 @@ const TemplatePrimary = ({ ...args }) => {
|
|
|
41
37
|
<pn-spotlight data-cta-color="green">
|
|
42
38
|
<h2 slot="mobile-heading">${args.heading}</h2>
|
|
43
39
|
<div slot="content">
|
|
44
|
-
|
|
45
|
-
<pn-button slot="quick-cta-cta" href="${args.ctaUrl}">${args.ctaLabel}</pn-button>
|
|
46
|
-
</pn-quick-cta>
|
|
40
|
+
|
|
47
41
|
</div>
|
|
48
42
|
</pn-spotlight>
|
|
49
43
|
</div>
|
|
@@ -53,7 +47,7 @@ const TemplatePrimary = ({ ...args }) => {
|
|
|
53
47
|
export const Primary = TemplatePrimary.bind({});
|
|
54
48
|
|
|
55
49
|
Primary.args = {
|
|
56
|
-
heading: 'A Spotlight
|
|
50
|
+
heading: 'A Spotlight Moble Header',
|
|
57
51
|
preamble: 'With quick-cta component as content',
|
|
58
52
|
ctaUrl: 'http://www.google.se',
|
|
59
53
|
ctaLabel: 'Read more',
|
|
@@ -101,6 +101,9 @@ pn-site-footer[theme=dotcom] > svg path {
|
|
|
101
101
|
}
|
|
102
102
|
pn-site-footer[theme=dotcom] .pn-sitefooter-top {
|
|
103
103
|
width: 100%;
|
|
104
|
+
position: relative;
|
|
105
|
+
top: -1px;
|
|
106
|
+
background-color: #0D234B;
|
|
104
107
|
}
|
|
105
108
|
pn-site-footer[theme=dotcom] .pn-sitefooter-top .pn-sitefooter-cols {
|
|
106
109
|
display: flex;
|
|
@@ -6,12 +6,14 @@ export class PnProxioPricegroup {
|
|
|
6
6
|
constructor() {
|
|
7
7
|
/** Specifies which endpoint domain we should load from */
|
|
8
8
|
this.endpoint = null;
|
|
9
|
-
|
|
9
|
+
//@Prop() culture: string = "sv-SE";
|
|
10
|
+
this.language = "sv";
|
|
11
|
+
this.market = "se";
|
|
10
12
|
this.tariffid = "";
|
|
11
13
|
this.cache = true;
|
|
12
14
|
this.activeWeightIndex = 0;
|
|
13
15
|
this.data = null;
|
|
14
|
-
this.i18n = translations["sv
|
|
16
|
+
this.i18n = translations["sv"];
|
|
15
17
|
this.fetchHelper = new FetchHelper("proxiopricegroup");
|
|
16
18
|
}
|
|
17
19
|
componentWillLoad() {
|
|
@@ -31,18 +33,19 @@ export class PnProxioPricegroup {
|
|
|
31
33
|
}
|
|
32
34
|
}
|
|
33
35
|
init() {
|
|
34
|
-
this.
|
|
36
|
+
this.setLanguage();
|
|
35
37
|
this.fetchData();
|
|
36
38
|
}
|
|
37
39
|
async fetchData() {
|
|
38
|
-
if (!this.
|
|
40
|
+
if (!this.market || !this.language || !this.tariffid) {
|
|
39
41
|
return;
|
|
40
42
|
}
|
|
41
43
|
const endpoint = (this.endpoint.lastIndexOf("/") === this.endpoint.length - 1) ? this.endpoint.substring(0, this.endpoint.length - 1) : this.endpoint;
|
|
42
|
-
const fetchUrl = `${endpoint}/api/proxio/price-list-group?tariffId=${this.tariffid}&
|
|
44
|
+
const fetchUrl = `${endpoint}/api/proxio/price-list-group?tariffId=${this.tariffid}&market=${this.market}&language=${this.language}&cached=${this.cache}`;
|
|
43
45
|
const data = await this.fetchHelper.fetchJson(fetchUrl, {
|
|
44
|
-
'mode': 'cors'
|
|
46
|
+
'mode': 'cors',
|
|
45
47
|
}, this.cache, this.onFetchData.bind(this));
|
|
48
|
+
;
|
|
46
49
|
if (data === null || data === void 0 ? void 0 : data.proxioProduct) {
|
|
47
50
|
this.data = data;
|
|
48
51
|
}
|
|
@@ -58,9 +61,9 @@ export class PnProxioPricegroup {
|
|
|
58
61
|
weightIndex = weightIndex < minIndex ? minIndex : weightIndex;
|
|
59
62
|
this.activeWeightIndex = weightIndex;
|
|
60
63
|
}
|
|
61
|
-
|
|
62
|
-
if (translations[this.
|
|
63
|
-
this.i18n = translations[this.
|
|
64
|
+
setLanguage() {
|
|
65
|
+
if (translations[this.language]) {
|
|
66
|
+
this.i18n = translations[this.language];
|
|
64
67
|
}
|
|
65
68
|
}
|
|
66
69
|
getPriceString(product) {
|
|
@@ -130,8 +133,8 @@ export class PnProxioPricegroup {
|
|
|
130
133
|
h("h2", { slot: "title" }, this.data.proxioProduct.productTitle),
|
|
131
134
|
h("pn-proxio-productcard-description", { slot: "description", heading: this.data.proxioProduct.productPreamble, highlight: this.data.proxioProduct.deliveryDateInformation, list: this.data.proxioProduct.productDescriptionBulletListItems }),
|
|
132
135
|
h("div", { slot: "information" },
|
|
133
|
-
h("pn-proxio-productcard-information", { label: this.i18n.
|
|
134
|
-
h("pn-proxio-productcard-information", { label: this.i18n.
|
|
136
|
+
h("pn-proxio-productcard-information", { label: this.i18n.labelMaxDimensions, information: this.data.proxioProduct.productPackageDimensionsList }),
|
|
137
|
+
h("pn-proxio-productcard-information", { label: this.i18n.labelMaxDimensionsRoll, information: this.data.proxioProduct.productRollDimensionsList })),
|
|
135
138
|
h("div", { slot: "bottomtags" },
|
|
136
139
|
this.data.proxioProduct.usp1 ?
|
|
137
140
|
(h("pn-titletag", { color: "gray50" }, this.data.proxioProduct.usp1)) : (null),
|
|
@@ -170,7 +173,7 @@ export class PnProxioPricegroup {
|
|
|
170
173
|
"reflect": false,
|
|
171
174
|
"defaultValue": "null"
|
|
172
175
|
},
|
|
173
|
-
"
|
|
176
|
+
"language": {
|
|
174
177
|
"type": "string",
|
|
175
178
|
"mutable": false,
|
|
176
179
|
"complexType": {
|
|
@@ -184,9 +187,27 @@ export class PnProxioPricegroup {
|
|
|
184
187
|
"tags": [],
|
|
185
188
|
"text": ""
|
|
186
189
|
},
|
|
187
|
-
"attribute": "
|
|
190
|
+
"attribute": "language",
|
|
188
191
|
"reflect": false,
|
|
189
|
-
"defaultValue": "\"sv
|
|
192
|
+
"defaultValue": "\"sv\""
|
|
193
|
+
},
|
|
194
|
+
"market": {
|
|
195
|
+
"type": "string",
|
|
196
|
+
"mutable": false,
|
|
197
|
+
"complexType": {
|
|
198
|
+
"original": "string",
|
|
199
|
+
"resolved": "string",
|
|
200
|
+
"references": {}
|
|
201
|
+
},
|
|
202
|
+
"required": false,
|
|
203
|
+
"optional": false,
|
|
204
|
+
"docs": {
|
|
205
|
+
"tags": [],
|
|
206
|
+
"text": ""
|
|
207
|
+
},
|
|
208
|
+
"attribute": "market",
|
|
209
|
+
"reflect": false,
|
|
210
|
+
"defaultValue": "\"se\""
|
|
190
211
|
},
|
|
191
212
|
"tariffid": {
|
|
192
213
|
"type": "string",
|
|
@@ -237,8 +258,8 @@ export class PnProxioPricegroup {
|
|
|
237
258
|
"capture": false,
|
|
238
259
|
"passive": false
|
|
239
260
|
}, {
|
|
240
|
-
"name": "
|
|
241
|
-
"method": "
|
|
261
|
+
"name": "language",
|
|
262
|
+
"method": "setLanguage",
|
|
242
263
|
"target": undefined,
|
|
243
264
|
"capture": false,
|
|
244
265
|
"passive": false
|
|
@@ -11,7 +11,8 @@ const Template = ({ ...args }) => {
|
|
|
11
11
|
return `
|
|
12
12
|
<div style="max-width: 100rem; margin:1.6rem auto 0;">
|
|
13
13
|
<pn-proxio-pricegroup
|
|
14
|
-
|
|
14
|
+
market="${args.market}"
|
|
15
|
+
language="${args.language}"
|
|
15
16
|
tariffid="${args.tariffId}"
|
|
16
17
|
cache="${args.cache}" >
|
|
17
18
|
</pn-proxio-pricegroup>
|
|
@@ -21,7 +22,8 @@ const Template = ({ ...args }) => {
|
|
|
21
22
|
|
|
22
23
|
export const Primary = Template.bind({});
|
|
23
24
|
Primary.args = {
|
|
24
|
-
|
|
25
|
+
market: "se",
|
|
26
|
+
language: "sv",
|
|
25
27
|
tariffId: "7c702ee4-d20c-4b01-aad8-6e5309d59bd0",
|
|
26
28
|
cache: true
|
|
27
29
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
export const translations = {
|
|
2
|
-
'sv
|
|
2
|
+
'sv': {
|
|
3
3
|
"from": "Från ",
|
|
4
|
-
"
|
|
5
|
-
"
|
|
4
|
+
"labelMaxDimensionsRoll": "Rulle",
|
|
5
|
+
"labelMaxDimensions": "Maxmått"
|
|
6
6
|
},
|
|
7
|
-
'
|
|
8
|
-
"from": "
|
|
9
|
-
"
|
|
10
|
-
"
|
|
7
|
+
'da': {
|
|
8
|
+
"from": "Från ",
|
|
9
|
+
"labelMaxDimensionsRoll": "Rulle",
|
|
10
|
+
"labelMaxDimensions": "Maks måle"
|
|
11
11
|
},
|
|
12
|
-
'en
|
|
12
|
+
'en': {
|
|
13
13
|
"from": "From ",
|
|
14
|
-
"
|
|
15
|
-
"
|
|
14
|
+
"labelMaxDimensionsRoll": "Roll",
|
|
15
|
+
"labelMaxDimensions": "Maximum dimensions"
|
|
16
16
|
}
|
|
17
17
|
};
|
package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard-information.js
CHANGED
|
@@ -5,9 +5,9 @@ export class PnProxioProductcardInformation {
|
|
|
5
5
|
}
|
|
6
6
|
render() {
|
|
7
7
|
return (h(Host, null,
|
|
8
|
-
h("div", { class: "cardinfocontent" }, this.information && this.label ? (h("div", { class: "cardinfocontent-item" },
|
|
9
|
-
h("p", { class: "cardinfocontent-title" },
|
|
10
|
-
h("strong", null, this.label)),
|
|
8
|
+
h("div", { class: "cardinfocontent" }, this.information && this.information.length > 0 && this.label ? (h("div", { class: "cardinfocontent-item" },
|
|
9
|
+
this.label ? (h("p", { class: "cardinfocontent-title" },
|
|
10
|
+
h("strong", null, this.label))) : (null),
|
|
11
11
|
this.information.map((item) => (item ?
|
|
12
12
|
(h("p", null,
|
|
13
13
|
h("strong", { class: "cardinfocontent-label" },
|
|
@@ -158,6 +158,12 @@ export const PnMarketwebSiteheaderSearch: {
|
|
|
158
158
|
new (): PnMarketwebSiteheaderSearch;
|
|
159
159
|
};
|
|
160
160
|
|
|
161
|
+
interface PnParcelTracker extends Components.PnParcelTracker, HTMLElement {}
|
|
162
|
+
export const PnParcelTracker: {
|
|
163
|
+
prototype: PnParcelTracker;
|
|
164
|
+
new (): PnParcelTracker;
|
|
165
|
+
};
|
|
166
|
+
|
|
161
167
|
interface PnPexPricefinder extends Components.PnPexPricefinder, HTMLElement {}
|
|
162
168
|
export const PnPexPricefinder: {
|
|
163
169
|
prototype: PnPexPricefinder;
|