@postnord/pn-marketweb-components 2.0.23-beta4 → 2.0.24
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-customernumber-selector-option.cjs.entry.js +2 -2
- package/cjs/pn-customernumber-selector.cjs.entry.js +3 -3
- package/cjs/pn-find-price-result.cjs.entry.js +5 -5
- package/cjs/{pn-find-price-store-a2728ff4.js → pn-find-price-store-0b8c195c.js} +2 -0
- package/cjs/pn-find-price.cjs.entry.js +17 -9
- package/cjs/pn-language-selector_9.cjs.entry.js +51 -59
- package/cjs/pn-market-web-components.cjs.js +1 -1
- package/cjs/pn-marketweb-siteheader-login-linklist.cjs.entry.js +72 -0
- package/cjs/pn-marketweb-siteheader-login-links_2.cjs.entry.js +186 -0
- package/cjs/pn-marketweb-siteheader.cjs.entry.js +26 -7
- package/cjs/pn-product-pricelist.cjs.entry.js +1 -1
- package/cjs/pn-profile-selector-option.cjs.entry.js +2 -2
- package/collection/collection-manifest.json +3 -1
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-linklist.css +22 -0
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-linklist.js +149 -0
- package/collection/components/layout-components/pn-marketweb-siteheader/{pn-marketweb-siteheader-profileselection.css → pn-marketweb-siteheader-login-links.css} +0 -0
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-links.js +199 -0
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-profileselection.css +93 -0
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-profileselection.js +269 -0
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.css +0 -17
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.js +79 -72
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.js +24 -2
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.stories.js +69 -2
- package/collection/components/layout-components/pn-marketweb-siteheader/translations.js +20 -5
- package/collection/components/profile/pn-customernumber-selector/pn-customernumber-selector-option.js +4 -4
- package/collection/components/profile/pn-customernumber-selector/pn-customernumber-selector.js +7 -7
- package/collection/components/profile/pn-customernumber-selector/pn-customernumber-selector.stories.js +3 -3
- package/collection/components/profile/pn-profile-selector/pn-profile-selector-option.js +4 -4
- package/collection/components/widgets/pn-find-price/pn-find-price-result.js +4 -4
- package/collection/components/widgets/pn-find-price/pn-find-price-store.js +2 -0
- package/collection/components/widgets/pn-find-price/pn-find-price-translations.js +6 -0
- package/collection/components/widgets/pn-find-price/pn-find-price.css +6 -3
- package/collection/components/widgets/pn-find-price/pn-find-price.js +9 -5
- package/custom-elements/index.d.ts +16 -4
- package/custom-elements/index.js +303 -186
- package/esm/loader.js +1 -1
- package/esm/pn-customernumber-selector-option.entry.js +2 -2
- package/esm/pn-customernumber-selector.entry.js +3 -3
- package/esm/pn-find-price-result.entry.js +5 -5
- package/esm/{pn-find-price-store-f531ab7e.js → pn-find-price-store-b4556c9b.js} +2 -0
- package/esm/pn-find-price.entry.js +17 -9
- package/esm/pn-language-selector_9.entry.js +51 -59
- package/esm/pn-market-web-components.js +1 -1
- package/esm/pn-marketweb-siteheader-login-linklist.entry.js +68 -0
- package/esm/pn-marketweb-siteheader-login-links_2.entry.js +181 -0
- package/esm/pn-marketweb-siteheader.entry.js +26 -7
- package/esm/pn-product-pricelist.entry.js +1 -1
- package/esm/pn-profile-selector-option.entry.js +2 -2
- package/esm-es5/loader.js +1 -1
- package/esm-es5/pn-customernumber-selector-option.entry.js +1 -1
- package/esm-es5/pn-customernumber-selector.entry.js +1 -1
- package/esm-es5/pn-find-price-result.entry.js +1 -1
- package/esm-es5/pn-find-price-store-b4556c9b.js +1 -0
- 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-linklist.entry.js +1 -0
- package/esm-es5/pn-marketweb-siteheader-login-links_2.entry.js +1 -0
- package/esm-es5/pn-marketweb-siteheader.entry.js +1 -1
- package/esm-es5/pn-product-pricelist.entry.js +1 -1
- package/esm-es5/pn-profile-selector-option.entry.js +1 -1
- package/package.json +1 -1
- package/pn-market-web-components/p-04240175.entry.js +1 -0
- package/pn-market-web-components/p-08411f5e.entry.js +1 -0
- package/pn-market-web-components/p-0d5d05cc.system.entry.js +1 -0
- package/pn-market-web-components/{p-77887623.system.entry.js → p-1924152a.system.entry.js} +1 -1
- package/pn-market-web-components/p-1f2d9304.entry.js +1 -0
- package/pn-market-web-components/p-37017f68.system.js +1 -0
- package/pn-market-web-components/p-4791c81b.entry.js +1 -0
- package/pn-market-web-components/p-67887512.system.js +1 -1
- package/pn-market-web-components/p-845d6b0a.entry.js +1 -0
- package/pn-market-web-components/{p-2a7e6d3a.system.entry.js → p-93cecc43.system.entry.js} +1 -1
- package/pn-market-web-components/p-a7bb94a0.entry.js +1 -0
- package/pn-market-web-components/{p-1f5b2d7a.entry.js → p-b32a8507.entry.js} +1 -1
- package/pn-market-web-components/p-ba41a7c0.system.entry.js +1 -0
- package/pn-market-web-components/p-c4254e9e.js +1 -0
- package/pn-market-web-components/p-c5a97974.entry.js +1 -0
- package/pn-market-web-components/{p-7f5bee11.entry.js → p-dc1827a6.entry.js} +1 -1
- package/pn-market-web-components/p-e32dc098.entry.js +1 -0
- package/pn-market-web-components/p-e66a8bb8.system.entry.js +1 -0
- package/pn-market-web-components/{p-ddbd131f.system.entry.js → p-e6fa11ad.system.entry.js} +1 -1
- package/pn-market-web-components/p-ec96434c.system.entry.js +1 -0
- package/pn-market-web-components/p-f4630c00.system.entry.js +1 -0
- package/pn-market-web-components/{p-e23a18f4.system.entry.js → p-f7d1c0a0.system.entry.js} +1 -1
- package/pn-market-web-components/{p-c1c79c65.system.entry.js → p-fecc53bb.system.entry.js} +1 -1
- 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-linklist.d.ts +13 -0
- package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-links.d.ts +14 -0
- package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-profileselection.d.ts +20 -0
- package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.d.ts +6 -4
- package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-types.d.ts +21 -0
- package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.d.ts +4 -2
- package/types/components/layout-components/pn-marketweb-siteheader/translations.d.ts +15 -0
- package/types/components/profile/pn-customernumber-selector/pn-customernumber-selector-option.d.ts +1 -1
- package/types/components/profile/pn-customernumber-selector/pn-customernumber-selector.d.ts +1 -1
- package/types/components/profile/pn-profile-selector/pn-profile-selector-option.d.ts +1 -1
- package/types/components/widgets/pn-find-price/pn-find-price-store.d.ts +4 -0
- package/types/components/widgets/pn-find-price/pn-find-price-translations.d.ts +6 -0
- package/types/components/widgets/pn-find-price/pn-find-price-types.d.ts +3 -1
- package/types/components.d.ts +89 -45
- package/umd/pn-marketweb-salesforce.js +1 -1
- package/cjs/pn-marketweb-siteheader-profileselection.cjs.entry.js +0 -161
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-profileselection.js +0 -319
- package/esm/pn-marketweb-siteheader-profileselection.entry.js +0 -157
- package/esm-es5/pn-find-price-store-f531ab7e.js +0 -1
- package/esm-es5/pn-marketweb-siteheader-profileselection.entry.js +0 -1
- package/pn-market-web-components/p-39c42017.entry.js +0 -1
- package/pn-market-web-components/p-3a4b70d1.system.entry.js +0 -1
- package/pn-market-web-components/p-4cea6bf3.system.entry.js +0 -1
- package/pn-market-web-components/p-63a2ba1c.entry.js +0 -1
- package/pn-market-web-components/p-7e294268.entry.js +0 -1
- package/pn-market-web-components/p-893206f2.js +0 -1
- package/pn-market-web-components/p-a702dcfd.system.entry.js +0 -1
- package/pn-market-web-components/p-a94593a9.system.entry.js +0 -1
- package/pn-market-web-components/p-ac8285b4.entry.js +0 -1
- package/pn-market-web-components/p-b0053a2d.entry.js +0 -1
- package/pn-market-web-components/p-c2670af1.system.js +0 -1
- package/pn-market-web-components/p-ea39d576.entry.js +0 -1
- package/pn-market-web-components/p-fcea21cb.entry.js +0 -1
- package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-profileselection.d.ts +0 -28
|
@@ -58,14 +58,16 @@ export class PnfindPrice {
|
|
|
58
58
|
return;
|
|
59
59
|
}
|
|
60
60
|
const sizeItemData = deliveryScopeData.filter((x) => x.sizecategory.toLocaleLowerCase() === this.sizecategory.value.toLocaleLowerCase());
|
|
61
|
-
if (this.weight
|
|
61
|
+
if (!this.weight) {
|
|
62
62
|
return;
|
|
63
63
|
}
|
|
64
64
|
const comparisonWeight = this.weight.value <= 20 ? this.weight.value * 1000 : this.weight.value;
|
|
65
|
-
let
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
65
|
+
let weightFilteredData = sizeItemData.filter(x => (x.maxweight <= 20 ? x.maxweight * 1000 : x.maxweight) === comparisonWeight);
|
|
66
|
+
if (this.weightvalue !== 0) {
|
|
67
|
+
let clubbedProducts = sizeItemData.filter(x => x.maxweight.toString().includes("upto")).
|
|
68
|
+
filter(x => (Number(x.maxweight.toString().toLocaleLowerCase().replace("upto", '')) - comparisonWeight) >= 0);
|
|
69
|
+
weightFilteredData = weightFilteredData.concat(clubbedProducts);
|
|
70
|
+
}
|
|
69
71
|
if (weightFilteredData.length === 0 && this.weightvalue !== 0) {
|
|
70
72
|
weightFilteredData = sizeItemData.filter(x => (x.maxweight <= 20 ? x.maxweight * 1000 : x.maxweight) >= comparisonWeight);
|
|
71
73
|
if (weightFilteredData.length > 0) {
|
|
@@ -93,6 +95,7 @@ export class PnfindPrice {
|
|
|
93
95
|
render() {
|
|
94
96
|
return (h("div", { class: "findprice-form" },
|
|
95
97
|
h("div", null,
|
|
98
|
+
h("h4", { class: "heading" }, state.i18n.sizeheading),
|
|
96
99
|
h("div", { class: "sizecategory" },
|
|
97
100
|
h("table", { class: "sizeTable" },
|
|
98
101
|
h("img", { id: "clouds", src: clouds }),
|
|
@@ -113,6 +116,7 @@ export class PnfindPrice {
|
|
|
113
116
|
this.weight = { value: 0, name: "" };
|
|
114
117
|
this.weightvalue = this.weight.value;
|
|
115
118
|
} })))))))),
|
|
119
|
+
h("h4", { class: "heading" }, state.i18n.weightheading),
|
|
116
120
|
(this.sizecategory.value && weights[this.sizecategory.unit]) ? (h("div", { class: "weightoption" }, h("div", { class: "weightoption-content" }, weights[this.sizecategory.unit].map((wght) => (h("pn-choice-button", { choiceid: this.sizecategory.value + wght.value, name: "weight", type: "radio", value: (!this.weight.value) ? 0 : weights[this.sizecategory.unit].findIndex((x) => x.value === this.weightvalue), checked: wght.value === this.weight.value, onChange: () => {
|
|
117
121
|
this.weight = weights[this.sizecategory.unit].filter(x => x.value === wght.value)[0];
|
|
118
122
|
this.weightvalue = this.weight.value;
|
|
@@ -128,10 +128,22 @@ export const PnMarketwebSiteheaderLogin: {
|
|
|
128
128
|
new (): PnMarketwebSiteheaderLogin;
|
|
129
129
|
};
|
|
130
130
|
|
|
131
|
-
interface
|
|
132
|
-
export const
|
|
133
|
-
prototype:
|
|
134
|
-
new ():
|
|
131
|
+
interface PnMarketwebSiteheaderLoginLinklist extends Components.PnMarketwebSiteheaderLoginLinklist, HTMLElement {}
|
|
132
|
+
export const PnMarketwebSiteheaderLoginLinklist: {
|
|
133
|
+
prototype: PnMarketwebSiteheaderLoginLinklist;
|
|
134
|
+
new (): PnMarketwebSiteheaderLoginLinklist;
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
interface PnMarketwebSiteheaderLoginLinks extends Components.PnMarketwebSiteheaderLoginLinks, HTMLElement {}
|
|
138
|
+
export const PnMarketwebSiteheaderLoginLinks: {
|
|
139
|
+
prototype: PnMarketwebSiteheaderLoginLinks;
|
|
140
|
+
new (): PnMarketwebSiteheaderLoginLinks;
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
interface PnMarketwebSiteheaderLoginProfileselection extends Components.PnMarketwebSiteheaderLoginProfileselection, HTMLElement {}
|
|
144
|
+
export const PnMarketwebSiteheaderLoginProfileselection: {
|
|
145
|
+
prototype: PnMarketwebSiteheaderLoginProfileselection;
|
|
146
|
+
new (): PnMarketwebSiteheaderLoginProfileselection;
|
|
135
147
|
};
|
|
136
148
|
|
|
137
149
|
interface PnMarketwebSiteheaderSearch extends Components.PnMarketwebSiteheaderSearch, HTMLElement {}
|