@postnord/pn-marketweb-components 1.0.41 → 1.0.44-beta1
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/{MarketWebLoginManager-859590e2.js → MarketWebLoginManager-1282a883.js} +1 -2
- package/cjs/{convert-57b3dd5e.js → convert-b8a6d658.js} +55 -0
- package/cjs/loader.cjs.js +1 -1
- package/cjs/pn-choice-button.cjs.entry.js +39 -0
- package/cjs/pn-find-price-result.cjs.entry.js +44 -0
- package/cjs/pn-find-price-store-85b100ba.js +23 -0
- package/cjs/pn-find-price.cjs.entry.js +260 -0
- package/cjs/{pn-choice-button_2.cjs.entry.js → pn-find-service-and-price-result.cjs.entry.js} +0 -33
- package/cjs/pn-find-service-and-price.cjs.entry.js +1 -1
- package/cjs/pn-language-selector_9.cjs.entry.js +17 -2
- package/cjs/pn-market-web-components.cjs.js +1 -1
- package/cjs/pn-marketweb-sitefooter.cjs.entry.js +0 -1
- package/cjs/pn-marketweb-siteheader.cjs.entry.js +5 -6
- package/cjs/pn-product-pricelist.cjs.entry.js +1 -1
- package/cjs/pn-profile-selector.cjs.entry.js +1 -1
- package/collection/collection-manifest.json +2 -0
- package/collection/components/layout-components/pn-marketweb-sitefooter/pn-marketweb-sitefooter.js +0 -1
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.js +1 -1
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.js +28 -30
- package/collection/components/navigation/pn-language-selector/pn-language-selector.js +15 -0
- package/collection/components/widgets/pn-find-price/data.js +68 -0
- package/collection/components/widgets/pn-find-price/find-price.stories.js +27 -0
- package/collection/components/widgets/pn-find-price/pn-find-price-result.css +3 -0
- package/collection/components/widgets/pn-find-price/pn-find-price-result.js +100 -0
- package/collection/components/widgets/pn-find-price/pn-find-price-store.js +20 -0
- package/collection/components/widgets/pn-find-price/pn-find-price-translations.js +71 -0
- package/collection/components/widgets/pn-find-price/pn-find-price-types.js +1 -0
- package/collection/components/widgets/pn-find-price/pn-find-price.css +55 -0
- package/collection/components/widgets/pn-find-price/pn-find-price.js +212 -0
- package/collection/globals/MarketWebLoginManager.js +1 -2
- package/collection/globals/shared/productprice/convert.js +55 -1
- package/custom-elements/index.d.ts +12 -0
- package/custom-elements/index.js +412 -37
- package/esm/{MarketWebLoginManager-83f2e86a.js → MarketWebLoginManager-310d2552.js} +1 -2
- package/esm/{convert-b49a0857.js → convert-8cce67c4.js} +55 -1
- package/esm/loader.js +1 -1
- package/esm/{pn-choice-button_2.entry.js → pn-choice-button.entry.js} +1 -39
- package/esm/pn-find-price-result.entry.js +40 -0
- package/esm/pn-find-price-store-d2053b72.js +21 -0
- package/esm/pn-find-price.entry.js +256 -0
- package/esm/pn-find-service-and-price-result.entry.js +41 -0
- package/esm/pn-find-service-and-price.entry.js +1 -1
- package/esm/pn-language-selector_9.entry.js +17 -2
- package/esm/pn-market-web-components.js +1 -1
- package/esm/pn-marketweb-sitefooter.entry.js +0 -1
- package/esm/pn-marketweb-siteheader.entry.js +5 -6
- package/esm/pn-product-pricelist.entry.js +1 -1
- package/esm/pn-profile-selector.entry.js +1 -1
- package/esm-es5/{MarketWebLoginManager-83f2e86a.js → MarketWebLoginManager-310d2552.js} +1 -1
- package/esm-es5/{convert-b49a0857.js → convert-8cce67c4.js} +1 -1
- package/esm-es5/loader.js +1 -1
- package/esm-es5/pn-choice-button.entry.js +1 -0
- package/esm-es5/pn-find-price-result.entry.js +1 -0
- package/esm-es5/pn-find-price-store-d2053b72.js +1 -0
- package/esm-es5/pn-find-price.entry.js +1 -0
- package/esm-es5/pn-find-service-and-price-result.entry.js +1 -0
- package/esm-es5/pn-find-service-and-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-sitefooter.entry.js +1 -1
- 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.entry.js +1 -1
- package/package.json +1 -1
- package/pn-market-web-components/{p-e6a209c6.system.entry.js → p-0d0ea574.system.entry.js} +1 -1
- package/pn-market-web-components/p-1611123a.system.entry.js +1 -0
- package/pn-market-web-components/{p-b8af690a.entry.js → p-22738646.entry.js} +1 -1
- package/pn-market-web-components/p-233ca151.system.js +1 -0
- package/pn-market-web-components/p-2456901a.js +1 -0
- package/pn-market-web-components/p-2e6644ea.system.entry.js +1 -0
- package/pn-market-web-components/p-325a7cae.entry.js +1 -0
- package/pn-market-web-components/p-38ff23f5.entry.js +1 -0
- package/pn-market-web-components/p-4fcabdb8.entry.js +1 -0
- package/pn-market-web-components/p-50454694.system.entry.js +1 -0
- package/pn-market-web-components/{p-91624bd5.system.js → p-5ce5be4f.system.js} +2 -2
- package/pn-market-web-components/p-5f8ef634.entry.js +1 -0
- package/pn-market-web-components/p-6ee881ea.system.entry.js +1 -0
- package/pn-market-web-components/p-725e4377.entry.js +1 -0
- package/pn-market-web-components/{p-21e0e386.js → p-7dd91709.js} +1 -1
- package/pn-market-web-components/p-93d8620b.entry.js +1 -0
- package/pn-market-web-components/p-a22df959.system.js +1 -1
- package/pn-market-web-components/{p-9aca0bae.entry.js → p-a5284c78.entry.js} +1 -1
- package/pn-market-web-components/p-b30e348c.system.entry.js +1 -0
- package/pn-market-web-components/p-bea2dcc6.entry.js +1 -0
- package/pn-market-web-components/p-c30207e6.js +1 -0
- package/pn-market-web-components/{p-f4fda846.system.entry.js → p-d133f30d.system.entry.js} +1 -1
- package/pn-market-web-components/p-d8882f68.system.entry.js +1 -0
- package/pn-market-web-components/p-da370548.system.entry.js +1 -0
- package/pn-market-web-components/p-dd4de1a9.entry.js +1 -0
- package/pn-market-web-components/{p-e04f8d34.system.entry.js → p-eb75d0cf.system.entry.js} +1 -1
- package/pn-market-web-components/{p-58cdf3a6.system.js → p-f1311662.system.js} +1 -1
- package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
- package/types/components/navigation/pn-language-selector/pn-language-selector.d.ts +1 -0
- package/types/components/widgets/pn-find-price/pn-find-price-result.d.ts +9 -0
- package/types/components/widgets/pn-find-price/pn-find-price-store.d.ts +33 -0
- package/types/components/widgets/pn-find-price/pn-find-price-translations.d.ts +71 -0
- package/types/components/widgets/pn-find-price/pn-find-price-types.d.ts +46 -0
- package/types/components/widgets/pn-find-price/pn-find-price.d.ts +16 -0
- package/types/components.d.ts +37 -0
- package/esm-es5/pn-choice-button_2.entry.js +0 -1
- package/pn-market-web-components/p-37801e32.entry.js +0 -1
- package/pn-market-web-components/p-3f876199.entry.js +0 -1
- package/pn-market-web-components/p-4aa3b95d.entry.js +0 -1
- package/pn-market-web-components/p-861210ae.entry.js +0 -1
- package/pn-market-web-components/p-a924001f.system.entry.js +0 -1
- package/pn-market-web-components/p-ac36097e.system.entry.js +0 -1
- package/pn-market-web-components/p-b2383083.system.entry.js +0 -1
- package/pn-market-web-components/p-c254cfdf.js +0 -1
- package/pn-market-web-components/p-e9d8a991.entry.js +0 -1
- package/pn-market-web-components/p-ec1127de.system.entry.js +0 -1
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-cd08e313.js');
|
|
6
6
|
const MarketWebContextService = require('./MarketWebContextService-bdc46f40.js');
|
|
7
|
-
const MarketWebLoginManager = require('./MarketWebLoginManager-
|
|
7
|
+
const MarketWebLoginManager = require('./MarketWebLoginManager-1282a883.js');
|
|
8
8
|
const FetchHelper = require('./FetchHelper-f80943bf.js');
|
|
9
9
|
|
|
10
10
|
const translations = {
|
|
@@ -148,7 +148,6 @@ let PnMarketwebSiteheader = class {
|
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
onLanguageSelectorChange(e) {
|
|
151
|
-
console.log('onLanguageSelectorChange(e', e);
|
|
152
151
|
this.language = e.detail;
|
|
153
152
|
window.dispatchEvent(new CustomEvent('marketweb-languagechange', { detail: this.language }));
|
|
154
153
|
}
|
|
@@ -297,10 +296,10 @@ let PnMarketwebSiteheader = class {
|
|
|
297
296
|
}
|
|
298
297
|
render() {
|
|
299
298
|
var _a, _b, _c, _d, _e, _f;
|
|
300
|
-
return (index.h(index.Host, { language: this.language, market: this.market, environment: this.environment }, index.h("header", null, index.h("div", { class: "siteheader-row" }, index.h("div", { class: "siteheader-topleft" }, index.h("slot", { name: "topleft" }), !this.hideSiteSelector &&
|
|
299
|
+
return (index.h(index.Host, { language: this.language, market: this.market, environment: this.environment }, index.h("header", null, index.h("div", { class: "siteheader-row" }, index.h("div", { class: "siteheader-topleft" }, index.h("slot", { name: "topleft" }), (this.gotData && this.siteSelector && !this.hideSiteSelector) &&
|
|
301
300
|
index.h("pn-site-selector", { language: this.language, buttontext: (_b = (_a = this.siteSelector) === null || _a === void 0 ? void 0 : _a.currentSiteTitle) !== null && _b !== void 0 ? _b : 'postnord' }, (this.gotData && ((_c = this.siteSelector) === null || _c === void 0 ? void 0 : _c.currentSiteTitle)) &&
|
|
302
301
|
index.h("pn-site-selector-item", { heading: this.siteSelector.currentSiteTitle + ' ', description: this.siteSelector.currentSiteDescription }), (this.gotData && ((_d = this.siteSelector) === null || _d === void 0 ? void 0 : _d.siteSelections)) && this.siteSelector.siteSelections.map((site) => index.h("pn-site-selector-item", { heading: site.linkText + ' ', description: site.linkDescription, url: this.adjustSiteSelectorUrl(site.href), newwindow: site.openInNewWindow })))), index.h("div", { class: "siteheader-logocontainer" }, index.h("a", { href: this.homePageLink, title: "Home", class: "siteheader-logolink" }, index.h("svg", { class: "siteheader-logo", xmlns: "http://www.w3.org/2000/svg", width: "12.7rem", height: "2.4rem", viewBox: "0 0 141.73 26.65" }, index.h("path", { d: "M108.84,13.35c0,6.34-5.17,9-10,9S89,19.76,89,13.63c0-6.28,5.08-9,10-9S108.84,7.25,108.84,13.35Zm-6.56.18a3.4,3.4,0,1,0-6.8,0,3.29,3.29,0,0,0,3.42,3.41A3.24,3.24,0,0,0,102.28,13.54Zm-83,0c0,4.83-3.32,8.82-8.49,8.82a6.54,6.54,0,0,1-4.65-1.57v5.86H0V5.16H6.17V6.8a6.43,6.43,0,0,1,5.11-2.18C16.41,4.62,19.31,8.58,19.31,13.54Zm-6.53,0A3.27,3.27,0,0,0,9.4,10,3.28,3.28,0,0,0,6,13.54,3.29,3.29,0,0,0,9.4,16.95,3.24,3.24,0,0,0,12.78,13.54Zm103.69,0.27c0-2.54,1.54-3.32,3.6-3.32a6.56,6.56,0,0,1,2.08.3L122.3,5.1a3.92,3.92,0,0,0-1.45-.18c-3.45,0-4.38,2.18-4.38,2.18V5.16H110.3V21.84h6.17v-8ZM141.73,0V21.84h-6.16V20.21a6.43,6.43,0,0,1-5.11,2.18c-5.14,0-8-4-8-8.91s3.32-8.82,8.49-8.82a6.54,6.54,0,0,1,4.65,1.57v-5Zm-6,13.48a3.28,3.28,0,0,0-3.41-3.41A3.24,3.24,0,0,0,129,13.47,3.4,3.4,0,1,0,135.75,13.47ZM81.35,4.62c-3.6,0-4.9,2.18-4.9,2.18V5.16H70.29V21.84h6.16V13.29c0-2.11.79-3.08,2.69-3.08s2.18,1.57,2.18,3.57v8.07h6.22V11.6C87.55,7,85.34,4.62,81.35,4.62ZM64.07,1.42H57.9V21.84h6.16V10.36H67l2.81-5.2H64.07V1.42ZM50.26,11.21c-2-.3-2.87-0.3-2.87-1.09s0.81-.94,2.42-0.94a16.15,16.15,0,0,1,5.11.91L56,5.41a24.56,24.56,0,0,0-6.13-.75c-5.89,0-9,2.27-9,5.89,0,2.81,1.66,4.47,6.53,5.11,2.06,0.27,2.81.39,2.81,1.15s-0.82,1-2.24,1a16.67,16.67,0,0,1-6-1.3L40.77,21.3a22.14,22.14,0,0,0,6.68,1c6.35,0,9.28-2.24,9.28-5.89C56.72,13.54,55.15,12,50.26,11.21ZM40.19,13.35c0,6.34-5.17,9-10,9s-9.82-2.6-9.82-8.73c0-6.28,5.08-9,10-9S40.19,7.25,40.19,13.35Zm-6.56.18a3.4,3.4,0,1,0-6.8,0,3.28,3.28,0,0,0,3.41,3.41A3.24,3.24,0,0,0,33.63,13.54Z", fill: "#00A0D6", transform: "translate(0 0)" })))), index.h("div", { class: "siteheader-topright" }, index.h("slot", { name: "toprightstart" }), (this.gotData && this.loginDialog && !this.hideLogin) && (index.h("pn-marketweb-siteheader-login", { token: this.token, loginDialog: this.loginDialog, endpoint: this.endpoint, i18n: this.i18n })), (this.gotData && this.languageOptions && this.languageOptions.length) && !this.hideLanguageSelector &&
|
|
303
|
-
index.h("pn-language-selector", { value: this.language }, this.languageOptions.map(language => index.h("pn-language-selector-option", { name: language.nativeName, code: language.twoLetterISOLanguageName, selected: language.isCurrent, url: this.getLanguageVersionUrl(language) }))), index.h("slot", { name: "toprightend" }))), index.h("div", { class: "siteheader-row" }, index.h("div", { class: "siteheader-menu" }, index.h("pn-mainnav", { market: this.market, language: this.language, onMenuOpenChange: (e) => {
|
|
302
|
+
index.h("pn-language-selector", { value: this.language }, this.languageOptions.map(language => index.h("pn-language-selector-option", { name: language.nativeName, code: language.twoLetterISOLanguageName, selected: language.isCurrent, url: this.getLanguageVersionUrl(language) }))), index.h("slot", { name: "toprightend" }))), index.h("div", { class: "siteheader-row" }, index.h("div", { class: "siteheader-menu" }, (this.gotData && this.menuItems) && (index.h("pn-mainnav", { market: this.market, language: this.language, onMenuOpenChange: (e) => {
|
|
304
303
|
document.body.setAttribute("data-siteheader-menuopen", (e.detail + ''));
|
|
305
304
|
} }, index.h("pn-mainnav-level", null, index.h("pn-mainnav-list", null, this.menuItems.map((item) => {
|
|
306
305
|
var _a, _b;
|
|
@@ -310,11 +309,11 @@ let PnMarketwebSiteheader = class {
|
|
|
310
309
|
var _a;
|
|
311
310
|
return (index.h("pn-mainnav-link", { name: childitem.name, href: childitem.href, target: (_a = childitem.linkTarget) !== null && _a !== void 0 ? _a : "_self", linkid: childitem.trackingId }));
|
|
312
311
|
})), (item.promotedMenuItems && item.promotedMenuItems.length > 0) &&
|
|
313
|
-
index.h("pn-mainnav-list", { heading: item.promotedMenuItemsHeader }, item.promotedMenuItems.map((childitem) => (index.h("pn-mainnav-link", { href: childitem.href, name: childitem.linkText, target: childitem.openInNewWindow ? "_blank" : "_self", linkid: this.promotedItemId(childitem) })))))));
|
|
312
|
+
index.h("pn-mainnav-list", { heading: item.promotedMenuItemsHeader }, item.promotedMenuItems.map((childitem) => (index.h("pn-mainnav-link", { href: childitem.href, name: childitem.linkText, target: childitem.openInNewWindow ? "_blank" : "_self", linkid: this.promotedItemId(childitem) + item.id })))))));
|
|
314
313
|
})), index.h("div", { slot: "footer", class: "siteheader-menu-footer" }, (this.gotData && this.loginDialog && !this.hideLogin) && (index.h("pn-marketweb-siteheader-login", { emitEvents: false, loginDialog: this.loginDialog, endpoint: this.endpoint, i18n: this.i18n })), (this.gotData && this.languageOptions && this.languageOptions.length) && !this.hideLanguageSelector &&
|
|
315
314
|
index.h("pn-language-selector", { value: this.language }, this.languageOptions.map(language => index.h("pn-language-selector-option", { name: language.nativeName, code: language.twoLetterISOLanguageName, selected: language.isCurrent, url: this.getLanguageVersionUrl(language) }))), !this.hideSiteSelector &&
|
|
316
315
|
index.h("pn-site-selector", { language: this.language }, (this.gotData && ((_e = this.siteSelector) === null || _e === void 0 ? void 0 : _e.currentSiteTitle)) &&
|
|
317
|
-
index.h("pn-site-selector-item", { heading: this.siteSelector.currentSiteTitle, description: this.siteSelector.currentSiteDescription }), (this.gotData && ((_f = this.siteSelector) === null || _f === void 0 ? void 0 : _f.siteSelections)) && this.siteSelector.siteSelections.map((site) => index.h("pn-site-selector-item", { heading: site.linkText, description: site.linkDescription, url: site.pageLink, newwindow: site.openInNewWindow })))), index.h("div", { slot: "top", class: "siteheader-menu-top" }, index.h("pn-marketweb-siteheader-search", { search: this.search, "hide-search": this.hideSearch, i18n: this.i18n }))))), index.h("pn-marketweb-siteheader-search", { search: this.search, "hide-search": this.hideSearch, "show-only-link": this.minimizeSearch, i18n: this.i18n })))));
|
|
316
|
+
index.h("pn-site-selector-item", { heading: this.siteSelector.currentSiteTitle, description: this.siteSelector.currentSiteDescription }), (this.gotData && ((_f = this.siteSelector) === null || _f === void 0 ? void 0 : _f.siteSelections)) && this.siteSelector.siteSelections.map((site) => index.h("pn-site-selector-item", { heading: site.linkText, description: site.linkDescription, url: site.pageLink, newwindow: site.openInNewWindow })))), index.h("div", { slot: "top", class: "siteheader-menu-top" }, index.h("pn-marketweb-siteheader-search", { search: this.search, "hide-search": this.hideSearch, i18n: this.i18n })))))), index.h("pn-marketweb-siteheader-search", { search: this.search, "hide-search": this.hideSearch, "show-only-link": this.minimizeSearch, i18n: this.i18n })))));
|
|
318
317
|
}
|
|
319
318
|
get hostElement() { return index.getElement(this); }
|
|
320
319
|
static get watchers() { return {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-cd08e313.js');
|
|
6
|
-
const convert = require('./convert-
|
|
6
|
+
const convert = require('./convert-b8a6d658.js');
|
|
7
7
|
const pnProductPricelistStore = require('./pn-product-pricelist-store-8dda97db.js');
|
|
8
8
|
require('./index-31d574c5.js');
|
|
9
9
|
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-cd08e313.js');
|
|
6
6
|
const MarketWebContextService = require('./MarketWebContextService-bdc46f40.js');
|
|
7
|
-
const MarketWebLoginManager = require('./MarketWebLoginManager-
|
|
7
|
+
const MarketWebLoginManager = require('./MarketWebLoginManager-1282a883.js');
|
|
8
8
|
|
|
9
9
|
const translations = {
|
|
10
10
|
'sv': {
|
|
@@ -23,6 +23,8 @@
|
|
|
23
23
|
"./components/navigation/pn-site-footer/pn-site-footer.js",
|
|
24
24
|
"./components/navigation/pn-site-selector/pn-site-selector-item.js",
|
|
25
25
|
"./components/navigation/pn-site-selector/pn-site-selector.js",
|
|
26
|
+
"./components/widgets/pn-find-price/pn-find-price-result.js",
|
|
27
|
+
"./components/widgets/pn-find-price/pn-find-price.js",
|
|
26
28
|
"./components/widgets/pn-find-service-and-price/pn-find-service-and-price-result.js",
|
|
27
29
|
"./components/widgets/pn-find-service-and-price/pn-find-service-and-price.js",
|
|
28
30
|
"./components/widgets/pn-pex-pricefinder/pn-pex-pricefinder.js",
|
|
@@ -127,7 +127,7 @@ export class PnMarketwebSiteheaderLogin {
|
|
|
127
127
|
:
|
|
128
128
|
h("div", null,
|
|
129
129
|
h("ul", null, this.loginDialog.loggedInLinks.map((link) => {
|
|
130
|
-
const isLogoutLink = link.href.indexOf('logout');
|
|
130
|
+
const isLogoutLink = link.href.indexOf('logout') !== -1;
|
|
131
131
|
const href = (isLogoutLink) ? this.loginManager.getLogoutUrl(link.href.replace('logout', '').replace('http://window.location.href/?', '').replace('https://window.location.href/?', '')) : link.href;
|
|
132
132
|
return (h("li", null,
|
|
133
133
|
h("pn-button", Object.assign({ href: href, id: this.uniqueId(link.linkText) }, (link.openInNewWindow && { target: '_blank' }), this.linkAppearanceAttributes(link), { onClick: () => { if (isLogoutLink) {
|
package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.js
CHANGED
|
@@ -91,7 +91,6 @@ export class PnMarketwebSiteheader {
|
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
onLanguageSelectorChange(e) {
|
|
94
|
-
console.log('onLanguageSelectorChange(e', e);
|
|
95
94
|
this.language = e.detail;
|
|
96
95
|
window.dispatchEvent(new CustomEvent('marketweb-languagechange', { detail: this.language }));
|
|
97
96
|
}
|
|
@@ -251,7 +250,7 @@ export class PnMarketwebSiteheader {
|
|
|
251
250
|
h("div", { class: "siteheader-row" },
|
|
252
251
|
h("div", { class: "siteheader-topleft" },
|
|
253
252
|
h("slot", { name: "topleft" }),
|
|
254
|
-
!this.hideSiteSelector &&
|
|
253
|
+
(this.gotData && this.siteSelector && !this.hideSiteSelector) &&
|
|
255
254
|
h("pn-site-selector", { language: this.language, buttontext: (_b = (_a = this.siteSelector) === null || _a === void 0 ? void 0 : _a.currentSiteTitle) !== null && _b !== void 0 ? _b : 'postnord' },
|
|
256
255
|
(this.gotData && ((_c = this.siteSelector) === null || _c === void 0 ? void 0 : _c.currentSiteTitle)) &&
|
|
257
256
|
h("pn-site-selector-item", { heading: this.siteSelector.currentSiteTitle + ' ', description: this.siteSelector.currentSiteDescription }),
|
|
@@ -267,34 +266,33 @@ export class PnMarketwebSiteheader {
|
|
|
267
266
|
h("pn-language-selector", { value: this.language }, this.languageOptions.map(language => h("pn-language-selector-option", { name: language.nativeName, code: language.twoLetterISOLanguageName, selected: language.isCurrent, url: this.getLanguageVersionUrl(language) }))),
|
|
268
267
|
h("slot", { name: "toprightend" }))),
|
|
269
268
|
h("div", { class: "siteheader-row" },
|
|
270
|
-
h("div", { class: "siteheader-menu" },
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
h("pn-mainnav-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
item.children.
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
(item.
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
h("
|
|
288
|
-
|
|
289
|
-
(this.
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
(
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
h("
|
|
297
|
-
h("pn-marketweb-siteheader-search", { search: this.search, "hide-search": this.hideSearch, i18n: this.i18n }))))),
|
|
269
|
+
h("div", { class: "siteheader-menu" }, (this.gotData && this.menuItems) && (h("pn-mainnav", { market: this.market, language: this.language, onMenuOpenChange: (e) => {
|
|
270
|
+
document.body.setAttribute("data-siteheader-menuopen", (e.detail + ''));
|
|
271
|
+
} },
|
|
272
|
+
h("pn-mainnav-level", null,
|
|
273
|
+
h("pn-mainnav-list", null, this.menuItems.map((item) => {
|
|
274
|
+
var _a, _b;
|
|
275
|
+
return (h("pn-mainnav-link", { name: item.name, href: item.href, itemid: item.id, target: (_a = item.linkTarget) !== null && _a !== void 0 ? _a : "_self", linkid: item.trackingId }, ((item.promotedMenuItems && item.promotedMenuItems.length > 0) || (item.children && item.children.length > 0)) &&
|
|
276
|
+
h("pn-mainnav-level", null,
|
|
277
|
+
item.children.length > 0 &&
|
|
278
|
+
h("pn-mainnav-list", { heading: ((_b = item.navigationHeading) !== null && _b !== void 0 ? _b : "") }, item.children.map((childitem) => {
|
|
279
|
+
var _a;
|
|
280
|
+
return (h("pn-mainnav-link", { name: childitem.name, href: childitem.href, target: (_a = childitem.linkTarget) !== null && _a !== void 0 ? _a : "_self", linkid: childitem.trackingId }));
|
|
281
|
+
})),
|
|
282
|
+
(item.promotedMenuItems && item.promotedMenuItems.length > 0) &&
|
|
283
|
+
h("pn-mainnav-list", { heading: item.promotedMenuItemsHeader }, item.promotedMenuItems.map((childitem) => (h("pn-mainnav-link", { href: childitem.href, name: childitem.linkText, target: childitem.openInNewWindow ? "_blank" : "_self", linkid: this.promotedItemId(childitem) + item.id })))))));
|
|
284
|
+
})),
|
|
285
|
+
h("div", { slot: "footer", class: "siteheader-menu-footer" },
|
|
286
|
+
(this.gotData && this.loginDialog && !this.hideLogin) && (h("pn-marketweb-siteheader-login", { emitEvents: false, loginDialog: this.loginDialog, endpoint: this.endpoint, i18n: this.i18n })),
|
|
287
|
+
(this.gotData && this.languageOptions && this.languageOptions.length) && !this.hideLanguageSelector &&
|
|
288
|
+
h("pn-language-selector", { value: this.language }, this.languageOptions.map(language => h("pn-language-selector-option", { name: language.nativeName, code: language.twoLetterISOLanguageName, selected: language.isCurrent, url: this.getLanguageVersionUrl(language) }))),
|
|
289
|
+
!this.hideSiteSelector &&
|
|
290
|
+
h("pn-site-selector", { language: this.language },
|
|
291
|
+
(this.gotData && ((_e = this.siteSelector) === null || _e === void 0 ? void 0 : _e.currentSiteTitle)) &&
|
|
292
|
+
h("pn-site-selector-item", { heading: this.siteSelector.currentSiteTitle, description: this.siteSelector.currentSiteDescription }),
|
|
293
|
+
(this.gotData && ((_f = this.siteSelector) === null || _f === void 0 ? void 0 : _f.siteSelections)) && this.siteSelector.siteSelections.map((site) => h("pn-site-selector-item", { heading: site.linkText, description: site.linkDescription, url: site.pageLink, newwindow: site.openInNewWindow })))),
|
|
294
|
+
h("div", { slot: "top", class: "siteheader-menu-top" },
|
|
295
|
+
h("pn-marketweb-siteheader-search", { search: this.search, "hide-search": this.hideSearch, i18n: this.i18n })))))),
|
|
298
296
|
h("pn-marketweb-siteheader-search", { search: this.search, "hide-search": this.hideSearch, "show-only-link": this.minimizeSearch, i18n: this.i18n })))));
|
|
299
297
|
}
|
|
300
298
|
static get is() { return "pn-marketweb-siteheader"; }
|
|
@@ -8,6 +8,7 @@ export class PnlanguageSelector {
|
|
|
8
8
|
this.options = [];
|
|
9
9
|
}
|
|
10
10
|
componentWillLoad() {
|
|
11
|
+
this.setInitialSelectedLanguageName();
|
|
11
12
|
this.setTranslations();
|
|
12
13
|
}
|
|
13
14
|
componentDidLoad() {
|
|
@@ -17,6 +18,20 @@ export class PnlanguageSelector {
|
|
|
17
18
|
this.setSelectedLanguageName();
|
|
18
19
|
this.addEventBindingsToOptions();
|
|
19
20
|
}
|
|
21
|
+
setInitialSelectedLanguageName() {
|
|
22
|
+
if (!window.Intl || !this.value) {
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
const langs = new Intl.DisplayNames([this.value], { type: 'language' });
|
|
26
|
+
if (!langs) {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
const languageName = langs.of(this.value);
|
|
30
|
+
if (!languageName) {
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
this.selectedLanguageName = languageName.charAt(0).toUpperCase() + languageName.slice(1);
|
|
34
|
+
}
|
|
20
35
|
addEventBindingsToOptions() {
|
|
21
36
|
const options = [].slice.apply(this.hostElement.querySelectorAll("pn-language-selector-option"));
|
|
22
37
|
options.map((option) => {
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
|
|
2
|
+
const sizeCategories = [
|
|
3
|
+
{ name: "Document", value: "document", illustration: "claims", unit: "gram" },
|
|
4
|
+
{ name: "Box Of Chocolate", value: "boxofchocolate", illustration: "outgoing", unit: "gram" },
|
|
5
|
+
{ name: "Rubber Boots", value: "rubberboots", illustration: "christmas", unit: "combo" },
|
|
6
|
+
{ name: "Moving Box", value:"movingbox", illustration: "outgoing", unit: "kgram" },
|
|
7
|
+
];
|
|
8
|
+
|
|
9
|
+
const weights = {
|
|
10
|
+
"gram": [
|
|
11
|
+
{ name: "50g", abbreviation: 'g', value: 50 },
|
|
12
|
+
{ name: "100g", abbreviation: 'g', value: 100 },
|
|
13
|
+
{ name: "250g", abbreviation: 'g', value: 250 },
|
|
14
|
+
{ name: "500g", abbreviation: 'g', value: 500 },
|
|
15
|
+
{ name: "1kg", abbreviation: 'kg', value: 1 },
|
|
16
|
+
{ name: "2kg", abbreviation: 'kg', value: 2 },
|
|
17
|
+
],
|
|
18
|
+
"kgram": [
|
|
19
|
+
{ name: "1kg", abbreviation: 'kg', value: 1 },
|
|
20
|
+
{ name: "2kg", abbreviation: 'kg', value: 2 },
|
|
21
|
+
{ name: "3kg", abbreviation: 'kg', value: 3 },
|
|
22
|
+
{ name: "4kg", abbreviation: 'kg', value: 4 },
|
|
23
|
+
{ name: "5kg", abbreviation: 'kg', value: 5 },
|
|
24
|
+
{ name: "6kg", abbreviation: 'kg', value: 6 },
|
|
25
|
+
{ name: "7Kg", abbreviation: 'kg', value: 7 },
|
|
26
|
+
{ name: "8kg", abbreviation: 'kg', value: 8 },
|
|
27
|
+
{ name: "9kg", abbreviation: 'kg', value: 9 },
|
|
28
|
+
{ name: "10kg", abbreviation: 'kg', value: 10 },
|
|
29
|
+
{ name: "11kg", abbreviation: 'kg', value: 11 },
|
|
30
|
+
{ name: "12kg", abbreviation: 'kg', value: 12 },
|
|
31
|
+
{ name: "13kg", abbreviation: 'kg', value: 13 },
|
|
32
|
+
{ name: "14kg", abbreviation: 'kg', value: 14 },
|
|
33
|
+
{ name: "15kg", abbreviation: 'kg', value: 15 },
|
|
34
|
+
{ name: "16kg", abbreviation: 'kg', value: 16 },
|
|
35
|
+
{ name: "17kg", abbreviation: 'kg', value: 17 },
|
|
36
|
+
{ name: "18kg", abbreviation: 'kg', value: 18 },
|
|
37
|
+
{ name: "20kg", abbreviation: 'kg', value: 20 },
|
|
38
|
+
],
|
|
39
|
+
"combo": [
|
|
40
|
+
{ name: "50g", abbreviation: 'g', value: 50 },
|
|
41
|
+
{ name: "100g", abbreviation: 'g', value: 100 },
|
|
42
|
+
{ name: "250g", abbreviation: 'g', value: 250 },
|
|
43
|
+
{ name: "500g", abbreviation: 'g', value: 500 },
|
|
44
|
+
{ name: "1kg", abbreviation: 'kg', value: 1 },
|
|
45
|
+
{ name: "2kg", abbreviation: 'kg', value: 2 },
|
|
46
|
+
{ name: "3kg", abbreviation: 'kg', value: 3 },
|
|
47
|
+
{ name: "4kg", abbreviation: 'kg', value: 4 },
|
|
48
|
+
{ name: "5kg", abbreviation: 'kg', value: 5 },
|
|
49
|
+
{ name: "6kg", abbreviation: 'kg', value: 6 },
|
|
50
|
+
{ name: "7Kg", abbreviation: 'kg', value: 7 },
|
|
51
|
+
{ name: "8kg", abbreviation: 'kg', value: 8 },
|
|
52
|
+
{ name: "9kg", abbreviation: 'kg', value: 9 },
|
|
53
|
+
{ name: "10kg", abbreviation: 'kg', value: 10 },
|
|
54
|
+
{ name: "11kg", abbreviation: 'kg', value: 11 },
|
|
55
|
+
{ name: "12kg", abbreviation: 'kg', value: 12 },
|
|
56
|
+
{ name: "13kg", abbreviation: 'kg', value: 13 },
|
|
57
|
+
{ name: "14kg", abbreviation: 'kg', value: 14 },
|
|
58
|
+
{ name: "15kg", abbreviation: 'kg', value: 15 },
|
|
59
|
+
{ name: "16kg", abbreviation: 'kg', value: 16 },
|
|
60
|
+
{ name: "17kg", abbreviation: 'kg', value: 17 },
|
|
61
|
+
{ name: "18kg", abbreviation: 'kg', value: 18 },
|
|
62
|
+
{ name: "20kg", abbreviation: 'kg', value: 20 },
|
|
63
|
+
]
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
export { weights, sizeCategories};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import readme from "./readme.md";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: "Widgets /Find Price",
|
|
5
|
+
parameters: {
|
|
6
|
+
notes: readme
|
|
7
|
+
}
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
const Template = ({ ...args }) => {
|
|
11
|
+
return `
|
|
12
|
+
<div style="max-width: 100%; margin:1em auto 0;">
|
|
13
|
+
<pn-find-price
|
|
14
|
+
source="${args.source}"
|
|
15
|
+
market="${args.market}"
|
|
16
|
+
language="${args.language}"
|
|
17
|
+
></pn-find-price>
|
|
18
|
+
</div>
|
|
19
|
+
`;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export const Primary = Template.bind({});
|
|
23
|
+
Primary.args = {
|
|
24
|
+
source: 'https://com-integration.postnord.com/globalassets/global/prices/sv-findprice.xlsx',
|
|
25
|
+
language: 'sv',
|
|
26
|
+
market: 'se',
|
|
27
|
+
};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { Component, h, Prop, Host, Watch, State } from "@stencil/core";
|
|
2
|
+
import { state } from "./pn-find-price-store";
|
|
3
|
+
export class PnfindPriceResult {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.item = null;
|
|
6
|
+
this.shownitems = [];
|
|
7
|
+
this.weightText = "";
|
|
8
|
+
}
|
|
9
|
+
componentWillLoad() {
|
|
10
|
+
this.composeItems();
|
|
11
|
+
}
|
|
12
|
+
composeItems() {
|
|
13
|
+
this.shownitems = [];
|
|
14
|
+
if (this.item.pricestamps) {
|
|
15
|
+
this.shownitems.push(Object.assign(Object.assign({}, this.item), { priceagent: null, pricesenddirect: null }));
|
|
16
|
+
}
|
|
17
|
+
if (this.item.priceagent) {
|
|
18
|
+
this.shownitems.push(Object.assign(Object.assign({}, this.item), { pricestamps: null, pricesenddirect: null }));
|
|
19
|
+
}
|
|
20
|
+
if (this.item.pricesenddirect) {
|
|
21
|
+
this.shownitems.push(Object.assign(Object.assign({}, this.item), { pricestamps: null, priceagent: null }));
|
|
22
|
+
}
|
|
23
|
+
this.weightText = (this.item.maxweight <= 20) ? this.item.maxweight + 'kg' :
|
|
24
|
+
(this.item.maxweight > 999) ? Math.round(this.item.maxweight / 1000) + " kg" : this.item.maxweight + " g";
|
|
25
|
+
}
|
|
26
|
+
render() {
|
|
27
|
+
return (h(Host, null, this.shownitems.map((item) => (h("pn-product-tile", null,
|
|
28
|
+
h("pn-illustration", { slot: "illustration", illustration: item.illustration }),
|
|
29
|
+
h("div", { slot: "content" },
|
|
30
|
+
h("div", { class: "content" },
|
|
31
|
+
h("h3", null, item.name),
|
|
32
|
+
(item.description) ? (h("div", { class: "description" }, item.description)) : null,
|
|
33
|
+
(item.info) ? (h("div", { class: "description" }, item.info)) : null)),
|
|
34
|
+
item.note ? (h("small", { slot: "note" },
|
|
35
|
+
h("p", null, item.note))) : null,
|
|
36
|
+
item.maxweight ? (h("pn-product-tile-info", { label: state.i18n.maxweightlabel, text: this.weightText })) : null,
|
|
37
|
+
item.maximummeasurements ? (h("pn-product-tile-info", { label: state.i18n.maxmeasurementlabel, text: item.maximummeasurements })) : null,
|
|
38
|
+
item.priceagent ? (h("pn-product-tile-price", { slot: "price", label: "", amount: item.priceagent + '', currency: state.market.currency, url: "https://shop.postnord.se/ebutik/default.aspx" })) : null,
|
|
39
|
+
item.pricestamps ? (h("pn-product-tile-price", { slot: "price", label: state.i18n.stampshopcta, amount: item.pricestamps + '', currency: state.market.currency })) : null,
|
|
40
|
+
item.pricesenddirect ? (h("pn-product-tile-price", { slot: "price", label: state.i18n.senddirectcta, amount: item.pricesenddirect + '', currency: state.market.currency, url: "https://portal.postnord.com/skickadirekt/" })) : null)))));
|
|
41
|
+
}
|
|
42
|
+
static get is() { return "pn-find-price-result"; }
|
|
43
|
+
static get originalStyleUrls() { return {
|
|
44
|
+
"$": ["pn-find-price-result.scss"]
|
|
45
|
+
}; }
|
|
46
|
+
static get styleUrls() { return {
|
|
47
|
+
"$": ["pn-find-price-result.css"]
|
|
48
|
+
}; }
|
|
49
|
+
static get properties() { return {
|
|
50
|
+
"item": {
|
|
51
|
+
"type": "unknown",
|
|
52
|
+
"mutable": true,
|
|
53
|
+
"complexType": {
|
|
54
|
+
"original": "ProductPriceItm",
|
|
55
|
+
"resolved": "ProductPriceItm",
|
|
56
|
+
"references": {
|
|
57
|
+
"ProductPriceItm": {
|
|
58
|
+
"location": "import",
|
|
59
|
+
"path": "./pn-find-price-types"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"required": false,
|
|
64
|
+
"optional": false,
|
|
65
|
+
"docs": {
|
|
66
|
+
"tags": [],
|
|
67
|
+
"text": ""
|
|
68
|
+
},
|
|
69
|
+
"defaultValue": "null"
|
|
70
|
+
},
|
|
71
|
+
"shownitems": {
|
|
72
|
+
"type": "unknown",
|
|
73
|
+
"mutable": false,
|
|
74
|
+
"complexType": {
|
|
75
|
+
"original": "ProductPriceItm[]",
|
|
76
|
+
"resolved": "ProductPriceItm[]",
|
|
77
|
+
"references": {
|
|
78
|
+
"ProductPriceItm": {
|
|
79
|
+
"location": "import",
|
|
80
|
+
"path": "./pn-find-price-types"
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"required": false,
|
|
85
|
+
"optional": false,
|
|
86
|
+
"docs": {
|
|
87
|
+
"tags": [],
|
|
88
|
+
"text": ""
|
|
89
|
+
},
|
|
90
|
+
"defaultValue": "[]"
|
|
91
|
+
}
|
|
92
|
+
}; }
|
|
93
|
+
static get states() { return {
|
|
94
|
+
"weightText": {}
|
|
95
|
+
}; }
|
|
96
|
+
static get watchers() { return [{
|
|
97
|
+
"propName": "item",
|
|
98
|
+
"methodName": "composeItems"
|
|
99
|
+
}]; }
|
|
100
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
sizeheading: '',
|
|
8
|
+
resultlistheading: '',
|
|
9
|
+
weightlabel: '',
|
|
10
|
+
maxweightlabel: '',
|
|
11
|
+
maxmeasurementlabel: '',
|
|
12
|
+
senddirectcta: '',
|
|
13
|
+
stampshopcta: '',
|
|
14
|
+
},
|
|
15
|
+
market: {
|
|
16
|
+
currency: ""
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
export { state, onChange };
|
|
20
|
+
export default state;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
export const translations = {
|
|
2
|
+
'sv': {
|
|
3
|
+
'componentheading': 'Vad vill du skicka?',
|
|
4
|
+
'deliveryscopeheading': 'Endast leveranser inom Sverige',
|
|
5
|
+
'sizeheading': 'Hur mycket väger det?',
|
|
6
|
+
'resultlistheading': 'Några utvalda val',
|
|
7
|
+
'weightlabel': 'Vikt',
|
|
8
|
+
'maxweightlabel': 'Maxvikt',
|
|
9
|
+
'maxmeasurementlabel': 'Maxvolym',
|
|
10
|
+
'senddirectcta': 'Köp frakt via Skicka Direkt',
|
|
11
|
+
'stampshopcta': 'Köp frimärken via vår webshop',
|
|
12
|
+
},
|
|
13
|
+
'en': {
|
|
14
|
+
'componentheading': 'What do you want to send?',
|
|
15
|
+
'deliveryscopeheading': 'Deliveries within Sweden only',
|
|
16
|
+
'sizeheading': 'How much does it weigh?',
|
|
17
|
+
'resultlistheading': 'Some suitable options for you',
|
|
18
|
+
'weightlabel': 'Weight',
|
|
19
|
+
'maxweightlabel': 'Max weight',
|
|
20
|
+
'maxmeasurementlabel': 'Maximum measurement',
|
|
21
|
+
'senddirectcta': 'Buy shipping in Send Direct',
|
|
22
|
+
'stampshopcta': 'Order home stamps from the webshop',
|
|
23
|
+
},
|
|
24
|
+
'da': {
|
|
25
|
+
'componentheading': 'Vad vill du skicka?',
|
|
26
|
+
'deliveryscopeheading': 'Kun leveringer indenfor Sverige',
|
|
27
|
+
'sizeheading': 'How much does it weigh?',
|
|
28
|
+
'resultlistheading': 'Some suitable options for you',
|
|
29
|
+
'weightlabel': 'Vægt',
|
|
30
|
+
'maxweightlabel': 'Max vægt',
|
|
31
|
+
'maxmeasurementlabel': 'Maks. Volumen',
|
|
32
|
+
'senddirectcta': 'Buy shipping in Send Direct',
|
|
33
|
+
'stampshopcta': 'Order home stamps from the webshop',
|
|
34
|
+
},
|
|
35
|
+
'no': {
|
|
36
|
+
'componentheading': 'Vad vill du skicka?',
|
|
37
|
+
'deliveryscopeheading': 'Kun leveranser innen Sverige',
|
|
38
|
+
'sizeheading': 'How much does it weigh?',
|
|
39
|
+
'resultlistheading': 'Some suitable options for you',
|
|
40
|
+
'weightlabel': 'Vekt',
|
|
41
|
+
'maxweightlabel': 'Maks vekt',
|
|
42
|
+
'maxmeasurementlabel': 'Maks volum',
|
|
43
|
+
'senddirectcta': 'Buy shipping in Send Direct',
|
|
44
|
+
'stampshopcta': 'Order home stamps from the webshop',
|
|
45
|
+
},
|
|
46
|
+
'fi': {
|
|
47
|
+
'componentheading': 'Vad vill du skicka?',
|
|
48
|
+
'deliveryscopeheading': 'Toimitukset vain Ruotsin sisällä',
|
|
49
|
+
'sizeheading': 'How much does it weigh?',
|
|
50
|
+
'resultlistheading': 'Some suitable options for you',
|
|
51
|
+
'weightlabel': 'Paino',
|
|
52
|
+
'maxweightlabel': 'Max paino',
|
|
53
|
+
'maxmeasurementlabel': 'Max äänenvoimakkuus',
|
|
54
|
+
'senddirectcta': 'Buy shipping in Send Direct',
|
|
55
|
+
'stampshopcta': 'Order home stamps from the webshop',
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
export const markets = {
|
|
59
|
+
'se': {
|
|
60
|
+
"currency": "kr",
|
|
61
|
+
},
|
|
62
|
+
'dk': {
|
|
63
|
+
"currency": "dk",
|
|
64
|
+
},
|
|
65
|
+
'fi': {
|
|
66
|
+
"currency": " €",
|
|
67
|
+
},
|
|
68
|
+
'no': {
|
|
69
|
+
"currency": "kr",
|
|
70
|
+
}
|
|
71
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
pn-find-price .findprice-form {
|
|
2
|
+
max-width: 50em;
|
|
3
|
+
margin: 0 auto;
|
|
4
|
+
}
|
|
5
|
+
pn-find-price h2,
|
|
6
|
+
pn-find-price .heading {
|
|
7
|
+
text-align: center;
|
|
8
|
+
font-size: 1.5em;
|
|
9
|
+
line-height: 1.1;
|
|
10
|
+
font-weight: bold;
|
|
11
|
+
margin-bottom: 1rem;
|
|
12
|
+
}
|
|
13
|
+
pn-find-price .sizecategory {
|
|
14
|
+
text-align: center;
|
|
15
|
+
margin-bottom: 3rem;
|
|
16
|
+
}
|
|
17
|
+
pn-find-price .weightoption {
|
|
18
|
+
display: flex;
|
|
19
|
+
gap: 1em;
|
|
20
|
+
}
|
|
21
|
+
pn-find-price .weightoption-input {
|
|
22
|
+
width: 5em;
|
|
23
|
+
position: relative;
|
|
24
|
+
}
|
|
25
|
+
pn-find-price .weightoption-input input::-webkit-outer-spin-button,
|
|
26
|
+
pn-find-price .weightoption-input input::-webkit-inner-spin-button {
|
|
27
|
+
-webkit-appearance: none;
|
|
28
|
+
margin: 0;
|
|
29
|
+
}
|
|
30
|
+
pn-find-price .weightoption-input-abbreviation {
|
|
31
|
+
position: absolute;
|
|
32
|
+
top: 50%;
|
|
33
|
+
transform: translateY(-50%);
|
|
34
|
+
right: 1.2em;
|
|
35
|
+
margin-top: 1.55rem;
|
|
36
|
+
font-weight: 500;
|
|
37
|
+
}
|
|
38
|
+
pn-find-price .weightoption-range {
|
|
39
|
+
flex-grow: 1;
|
|
40
|
+
align-self: flex-end;
|
|
41
|
+
position: relative;
|
|
42
|
+
top: 0.5em;
|
|
43
|
+
}
|
|
44
|
+
pn-find-price .weightoption-range input {
|
|
45
|
+
width: calc(100% - 1.5em);
|
|
46
|
+
}
|
|
47
|
+
pn-find-price .weightoption-range datalist {
|
|
48
|
+
width: 100%;
|
|
49
|
+
display: flex;
|
|
50
|
+
justify-content: space-between;
|
|
51
|
+
font-size: 0.75em;
|
|
52
|
+
}
|
|
53
|
+
pn-find-price .resultlist {
|
|
54
|
+
margin: 3em 0;
|
|
55
|
+
}
|