@postnord/pn-marketweb-components 2.4.21 → 2.4.23
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/index-4199ff85.js +8 -4
- package/cjs/loader.cjs.js +1 -1
- package/cjs/pn-address-autofill.cjs.entry.js +322 -0
- package/cjs/pn-market-web-components.cjs.js +1 -1
- package/cjs/pn-marketweb-input.cjs.entry.js +36 -25
- package/cjs/pn-marketweb-sitefooter.cjs.entry.js +6 -6
- package/cjs/pn-marketweb-siteheader.cjs.entry.js +3 -3
- package/cjs/pn-proxio-findprice.cjs.entry.js +3 -3
- package/cjs/pn-proxio-pricegroup.cjs.entry.js +3 -3
- package/collection/collection-manifest.json +2 -1
- package/collection/components/input/pn-address-autofill/pn-address-autofill.css +45 -0
- package/collection/components/input/pn-address-autofill/pn-address-autofill.js +537 -0
- package/collection/components/input/pn-address-autofill/pn-address-autofill.stories.js +40 -0
- package/collection/components/input/pn-marketweb-input/pn-marketweb-input.js +50 -39
- package/collection/components/input/pn-multi-formfield/types.js +1 -0
- package/collection/components/layout-components/pn-marketweb-sitefooter/socialMediaIcons.js +3 -3
- package/components/index.d.ts +2 -1
- package/components/index.js +1 -0
- package/components/index2.js +63 -52
- package/components/index3.js +52 -63
- package/components/pn-address-autofill.d.ts +11 -0
- package/components/pn-address-autofill.js +359 -0
- package/components/pn-animated-tile.js +1 -1
- package/components/pn-dropdown-choice-adds-row.js +1 -1
- package/components/pn-marketweb-input2.js +36 -25
- package/components/pn-marketweb-sitefooter.js +4 -4
- package/components/pn-marketweb-siteheader.js +1 -1
- package/components/pn-multi-formfield.js +1 -1
- package/components/pn-proxio-findprice.js +1 -1
- package/components/pn-proxio-pricegroup.js +1 -1
- package/components/pn-spotlight.js +1 -1
- package/esm/index-ee44c065.js +8 -4
- package/esm/loader.js +1 -1
- package/esm/pn-address-autofill.entry.js +318 -0
- package/esm/pn-market-web-components.js +1 -1
- package/esm/pn-marketweb-input.entry.js +36 -25
- package/esm/pn-marketweb-sitefooter.entry.js +4 -4
- package/esm/pn-marketweb-siteheader.entry.js +1 -1
- package/esm/pn-proxio-findprice.entry.js +1 -1
- package/esm/pn-proxio-pricegroup.entry.js +1 -1
- package/esm-es5/FetchHelper-62dc55bf.js +1 -0
- package/esm-es5/index-ee44c065.js +1 -1
- package/esm-es5/loader.js +1 -1
- package/esm-es5/pn-address-autofill.entry.js +1 -0
- package/esm-es5/pn-market-web-components.js +1 -1
- package/esm-es5/pn-marketweb-input.entry.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-proxio-findprice.entry.js +1 -1
- package/esm-es5/pn-proxio-pricegroup.entry.js +1 -1
- package/package.json +1 -1
- package/pn-market-web-components/{p-7e99f631.system.entry.js → p-18aca162.system.entry.js} +1 -1
- package/pn-market-web-components/{p-6e11edfe.entry.js → p-1b282c2b.entry.js} +1 -1
- package/pn-market-web-components/{p-3c38a67e.system.entry.js → p-256ba011.system.entry.js} +1 -1
- package/pn-market-web-components/{p-21bf0e64.system.entry.js → p-356a937e.system.entry.js} +1 -1
- package/pn-market-web-components/{p-1a8d7eb8.entry.js → p-372b4cad.entry.js} +1 -1
- package/{esm-es5/MarketWebContextService-f6a33f17.js → pn-market-web-components/p-439d5d73.system.js} +1 -1
- package/pn-market-web-components/p-4afba818.entry.js +1 -0
- package/pn-market-web-components/p-592b66fc.system.entry.js +1 -0
- package/pn-market-web-components/p-7a4a7a83.system.entry.js +1 -0
- package/pn-market-web-components/{p-5427a6ba.entry.js → p-90d2fb46.entry.js} +1 -1
- package/pn-market-web-components/p-9ad0ceb0.js +1 -0
- package/pn-market-web-components/p-b1527c0c.entry.js +1 -0
- package/pn-market-web-components/{p-0ae0b140.system.entry.js → p-c06e3588.system.entry.js} +1 -1
- package/pn-market-web-components/{p-9ae49b8a.entry.js → p-f8a13e03.entry.js} +1 -1
- package/pn-market-web-components/p-fcdb7381.system.js +1 -1
- package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
- package/types/components/input/pn-address-autofill/pn-address-autofill.d.ts +56 -0
- package/types/components/input/pn-address-autofill/types.d.ts +40 -0
- package/types/components.d.ts +50 -1
- package/pn-market-web-components/p-1e5756b9.system.entry.js +0 -1
- package/pn-market-web-components/p-33322417.system.js +0 -1
- package/pn-market-web-components/p-5d21372b.js +0 -1
- package/pn-market-web-components/p-f0078106.entry.js +0 -1
- package/cjs/{MarketWebContextService-17053565.js → FetchHelper-2130dacf.js} +84 -84
- package/collection/components/{layout-components/pn-multi-formfield → input/pn-address-autofill}/types.js +0 -0
- package/collection/components/{layout-components → input}/pn-multi-formfield/multi-formfield.stories.js +0 -0
- package/collection/components/{layout-components → input}/pn-multi-formfield/pn-multi-formfield.css +0 -0
- package/collection/components/{layout-components → input}/pn-multi-formfield/pn-multi-formfield.js +0 -0
- package/components/{MarketWebContextService.js → FetchHelper.js} +84 -84
- package/esm/{MarketWebContextService-f6a33f17.js → FetchHelper-62dc55bf.js} +84 -84
- /package/types/components/{layout-components → input}/pn-multi-formfield/pn-multi-formfield.d.ts +0 -0
- /package/types/components/{layout-components → input}/pn-multi-formfield/types.d.ts +0 -0
|
@@ -10,23 +10,23 @@ const PnMarketwebInput = class {
|
|
|
10
10
|
constructor(hostRef) {
|
|
11
11
|
index.registerInstance(this, hostRef);
|
|
12
12
|
this.disabled = false;
|
|
13
|
-
this.error =
|
|
13
|
+
this.error = "";
|
|
14
14
|
this.invalid = false;
|
|
15
|
-
this.helpertext =
|
|
16
|
-
this.label =
|
|
17
|
-
this.placeholder =
|
|
15
|
+
this.helpertext = "";
|
|
16
|
+
this.label = "";
|
|
17
|
+
this.placeholder = "";
|
|
18
18
|
this.inputid = `${Math.random()}`;
|
|
19
|
-
this.name =
|
|
20
|
-
this.required =
|
|
21
|
-
this.type =
|
|
22
|
-
this.autocomplete =
|
|
19
|
+
this.name = "";
|
|
20
|
+
this.required = false;
|
|
21
|
+
this.type = "text";
|
|
22
|
+
this.autocomplete = "";
|
|
23
23
|
this.valid = null;
|
|
24
|
-
this.value =
|
|
25
|
-
this.maxlength =
|
|
26
|
-
this.min =
|
|
27
|
-
this.max =
|
|
28
|
-
this.step =
|
|
29
|
-
this.pattern =
|
|
24
|
+
this.value = "";
|
|
25
|
+
this.maxlength = "";
|
|
26
|
+
this.min = "";
|
|
27
|
+
this.max = "";
|
|
28
|
+
this.step = "";
|
|
29
|
+
this.pattern = "";
|
|
30
30
|
this.showText = false;
|
|
31
31
|
}
|
|
32
32
|
getTextMessage() {
|
|
@@ -40,8 +40,21 @@ const PnMarketwebInput = class {
|
|
|
40
40
|
this.showText = !this.showText;
|
|
41
41
|
}
|
|
42
42
|
getInputType() {
|
|
43
|
-
let types = [
|
|
44
|
-
|
|
43
|
+
let types = [
|
|
44
|
+
"text",
|
|
45
|
+
"password",
|
|
46
|
+
"url",
|
|
47
|
+
"tel",
|
|
48
|
+
"search",
|
|
49
|
+
"number",
|
|
50
|
+
"email",
|
|
51
|
+
"date",
|
|
52
|
+
"datetime-local",
|
|
53
|
+
"month",
|
|
54
|
+
"week",
|
|
55
|
+
"time",
|
|
56
|
+
];
|
|
57
|
+
return types.includes(this.type) && !this.showText ? this.type : "text";
|
|
45
58
|
}
|
|
46
59
|
setVal(e) {
|
|
47
60
|
var _a;
|
|
@@ -49,21 +62,19 @@ const PnMarketwebInput = class {
|
|
|
49
62
|
this.value = target.value;
|
|
50
63
|
}
|
|
51
64
|
getClassNames() {
|
|
52
|
-
let classNames =
|
|
65
|
+
let classNames = "pn-input ";
|
|
53
66
|
if (this.error.length > 0 || this.invalid)
|
|
54
|
-
classNames +=
|
|
67
|
+
classNames += "error ";
|
|
55
68
|
if (this.valid)
|
|
56
|
-
classNames +=
|
|
57
|
-
if (this.type ===
|
|
58
|
-
classNames +=
|
|
69
|
+
classNames += "valid ";
|
|
70
|
+
if (this.type === "password")
|
|
71
|
+
classNames += "password ";
|
|
59
72
|
if (this.error || this.invalid || this.valid)
|
|
60
|
-
classNames +=
|
|
73
|
+
classNames += "icon ";
|
|
61
74
|
return classNames;
|
|
62
75
|
}
|
|
63
76
|
render() {
|
|
64
|
-
return (index.h(index.Host, { class: this.getClassNames() }, (this.label || this.maxlength) &&
|
|
65
|
-
index.h("div", { class: "label-container" }, this.label && index.h("label", { htmlFor: this.inputid }, this.label), parseInt(this.maxlength) > 0 && index.h("label", { class: "char-count", htmlFor: this.inputid }, `${this.value.length}/${this.maxlength}`)), index.h("div", { class: "input-container" }, index.h("input", { type: this.getInputType(), value: this.value, id: this.inputid, name: this.name, placeholder: this.placeholder, disabled: this.disabled, autocomplete: this.autocomplete, onInput: (e) => this.setVal(e), maxlength: this.maxlength ? this.maxlength : null, min: (this.min ? this.min : null), max: (this.max ? this.max : null), step: (this.step ? this.step : null), pattern: (this.pattern ? this.pattern : null) }), index.h("svg", { class: "pn-input-checkmark", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none" }, index.h("polyline", { class: "checkmark-path", points: "4,12 9,17 20,6", "stroke-width": "3" })), this.type === 'password' && !this.disabled && index.h("button", { onClick: () => this.toggleTextVisibility() }, "Show")), this.getTextMessage() &&
|
|
66
|
-
index.h("small", null, this.error && index.h("pn-icon", { symbol: "alert-exclamation-circle", small: true, color: "warning" }), this.getTextMessage())));
|
|
77
|
+
return (index.h(index.Host, { class: this.getClassNames() }, (this.label || this.maxlength) && (index.h("div", { class: "label-container" }, this.label && index.h("label", { htmlFor: this.inputid }, this.label), parseInt(this.maxlength) > 0 && (index.h("label", { class: "char-count", htmlFor: this.inputid }, `${this.value.length}/${this.maxlength}`)))), index.h("div", { class: "input-container" }, index.h("input", { type: this.getInputType(), value: this.value, id: this.inputid, name: this.name, placeholder: this.placeholder, disabled: this.disabled, required: this.required, autocomplete: this.autocomplete, onInput: (e) => this.setVal(e), maxlength: this.maxlength ? this.maxlength : null, min: this.min ? this.min : null, max: this.max ? this.max : null, step: this.step ? this.step : null, pattern: this.pattern ? this.pattern : null }), index.h("svg", { class: "pn-input-checkmark", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none" }, index.h("polyline", { class: "checkmark-path", points: "4,12 9,17 20,6", "stroke-width": "3" })), this.type === "password" && !this.disabled && (index.h("button", { onClick: () => this.toggleTextVisibility() }, "Show"))), this.getTextMessage() && (index.h("small", null, this.error && index.h("pn-icon", { symbol: "alert-exclamation-circle", small: true, color: "warning" }), this.getTextMessage()))));
|
|
67
78
|
}
|
|
68
79
|
};
|
|
69
80
|
PnMarketwebInput.style = pnMarketwebInputCss;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-4199ff85.js');
|
|
6
|
-
const
|
|
6
|
+
const FetchHelper = require('./FetchHelper-2130dacf.js');
|
|
7
7
|
|
|
8
8
|
const getSocialMediaIconsByType = (linkType = '', fill = '#005D92') => {
|
|
9
9
|
switch (linkType) {
|
|
@@ -14,9 +14,9 @@ const getSocialMediaIconsByType = (linkType = '', fill = '#005D92') => {
|
|
|
14
14
|
</svg>`;
|
|
15
15
|
case 'twitter':
|
|
16
16
|
return `<svg width="56" height="56" viewBox="0 0 56 56" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
<circle cx="28" cy="28" r="28" fill="#005D92"/>
|
|
18
|
+
<path d="M34.8996 17.5H38.5996L30.5996 26.4L39.9996 38.6H32.5996L26.7996 31.2L20.1996 38.6H16.4996L25.0996 29L16.0996 17.5H23.5996L28.7996 24.2L34.8996 17.5ZM33.5996 36.4H35.5996L22.4996 19.5H20.2996L33.5996 36.4Z" fill="white"/>
|
|
19
|
+
</svg>`;
|
|
20
20
|
case 'linkedin':
|
|
21
21
|
return `<svg width="56" height="56" viewBox="0 0 56 56" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
22
22
|
<circle cx="28" cy="28" r="28" fill="${fill}" />
|
|
@@ -128,7 +128,7 @@ const PnMarketwebSiteheader = class {
|
|
|
128
128
|
constructor(hostRef) {
|
|
129
129
|
index.registerInstance(this, hostRef);
|
|
130
130
|
// FetchHelper
|
|
131
|
-
this.fetchHelper = new
|
|
131
|
+
this.fetchHelper = new FetchHelper.FetchHelper('sitefooter');
|
|
132
132
|
//endpoint
|
|
133
133
|
this.endpointPath = '/api/footer/footer';
|
|
134
134
|
this.market = 'se';
|
|
@@ -153,7 +153,7 @@ const PnMarketwebSiteheader = class {
|
|
|
153
153
|
}
|
|
154
154
|
async setInitialValues(href = window.location.href) {
|
|
155
155
|
var _a;
|
|
156
|
-
const marketWebContextService = new
|
|
156
|
+
const marketWebContextService = new FetchHelper.MarketWebContextService(href);
|
|
157
157
|
if (!this.market) {
|
|
158
158
|
const resolvedMarket = await marketWebContextService.getMarket();
|
|
159
159
|
this.market = resolvedMarket;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-4199ff85.js');
|
|
6
|
-
const
|
|
6
|
+
const FetchHelper = require('./FetchHelper-2130dacf.js');
|
|
7
7
|
const pnMarketwebSiteheaderStore = require('./pn-marketweb-siteheader-store-5ced6902.js');
|
|
8
8
|
require('./index-95e5b7f9.js');
|
|
9
9
|
|
|
@@ -148,7 +148,7 @@ const PnMarketwebSiteheader = class {
|
|
|
148
148
|
this.changeMarket = index.createEvent(this, "changeMarket", 7);
|
|
149
149
|
this.endpointPath = '/api/navigation/header';
|
|
150
150
|
// FetchHelper
|
|
151
|
-
this.fetchHelper = new
|
|
151
|
+
this.fetchHelper = new FetchHelper.FetchHelper('siteheader');
|
|
152
152
|
this.market = null;
|
|
153
153
|
this.language = null;
|
|
154
154
|
this.siteid = null;
|
|
@@ -203,7 +203,7 @@ const PnMarketwebSiteheader = class {
|
|
|
203
203
|
}
|
|
204
204
|
async setInitialValues(href = window.location.href) {
|
|
205
205
|
var _a;
|
|
206
|
-
const marketWebContextService = new
|
|
206
|
+
const marketWebContextService = new FetchHelper.MarketWebContextService(href);
|
|
207
207
|
if (!this.market) {
|
|
208
208
|
const resolvedMarket = await marketWebContextService.getMarket();
|
|
209
209
|
this.market = resolvedMarket;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index$1 = require('./index-4199ff85.js');
|
|
6
|
-
const
|
|
6
|
+
const FetchHelper = require('./FetchHelper-2130dacf.js');
|
|
7
7
|
const index = require('./index-95e5b7f9.js');
|
|
8
8
|
|
|
9
9
|
const translations = {
|
|
@@ -234,7 +234,7 @@ const pnProxioFindpriceCss = "@charset \"UTF-8\";pn-proxio-findprice .findprice-
|
|
|
234
234
|
const PnProxioFindPrice = class {
|
|
235
235
|
constructor(hostRef) {
|
|
236
236
|
index$1.registerInstance(this, hostRef);
|
|
237
|
-
this.fetchHelper = new
|
|
237
|
+
this.fetchHelper = new FetchHelper.FetchHelper("proxiopricegroups");
|
|
238
238
|
this.endpoint = null;
|
|
239
239
|
this.language = "da";
|
|
240
240
|
this.market = "dk";
|
|
@@ -255,7 +255,7 @@ const PnProxioFindPrice = class {
|
|
|
255
255
|
});
|
|
256
256
|
}
|
|
257
257
|
async setInitialValues(href = window.location.href) {
|
|
258
|
-
const marketWebContextService = new
|
|
258
|
+
const marketWebContextService = new FetchHelper.MarketWebContextService(href);
|
|
259
259
|
const environment = await marketWebContextService.getEnvironmentName();
|
|
260
260
|
if ((!this.endpoint && (environment === null || environment === void 0 ? void 0 : environment.indexOf('local')) === -1)) {
|
|
261
261
|
const market = await marketWebContextService.getMarket();
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-4199ff85.js');
|
|
6
|
-
const
|
|
6
|
+
const FetchHelper = require('./FetchHelper-2130dacf.js');
|
|
7
7
|
const translations = require('./translations-aef1609e.js');
|
|
8
8
|
|
|
9
9
|
const pnProxioPricegroupCss = "pn-proxio-pricegroup div.proxio-pricegroup-container{max-width:99.4rem}pn-proxio-pricegroup div.weightcontainer{margin:2.8rem 0}pn-proxio-pricegroup div.weightvaluecontainer{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-line-pack:center;align-content:center;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:start;align-items:flex-start}pn-proxio-pricegroup div.weightvaluecontainer pn-button{-webkit-transform:translateY(-0.4rem);transform:translateY(-0.4rem)}pn-proxio-pricegroup div.weightvaluecontainer pn-button button::before{display:none}pn-proxio-pricegroup div.weightradios{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;color:#005D92;width:80%;margin:0 3.6rem;position:relative;width:0%}pn-proxio-pricegroup div.weightradios[data-carousel-container-position=end50]{width:45%;margin-left:auto;margin-right:3.6rem}@media screen and (max-width: 48em){pn-proxio-pricegroup div.weightradios[data-carousel-container-position=end50]{width:40%}}pn-proxio-pricegroup div.weightradios[data-carousel-container-position=end75]{width:65%;margin-left:auto;margin-right:3.6rem}@media screen and (max-width: 48em){pn-proxio-pricegroup div.weightradios[data-carousel-container-position=end75]{margin-right:auto}}pn-proxio-pricegroup div.weightradios[data-carousel-container-position=start50]{width:45%;margin-right:auto;margin-left:3.6rem}@media screen and (max-width: 48em){pn-proxio-pricegroup div.weightradios[data-carousel-container-position=start50]{width:40%}}pn-proxio-pricegroup div.weightradios[data-carousel-container-position=start75]{width:65%;margin-right:auto;margin-left:3.6rem}@media screen and (max-width: 48em){pn-proxio-pricegroup div.weightradios[data-carousel-container-position=start75]{margin-left:auto}}pn-proxio-pricegroup div.weightradios[data-carousel-container-position=default]{-ms-flex:0 0 auto;flex:0 0 auto;width:80%}@media screen and (max-width: 48em){pn-proxio-pricegroup div.weightradios[data-carousel-container-position=default]{width:65%}}pn-proxio-pricegroup div.weightdata{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:center;align-content:center;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:justify;justify-content:space-between;gap:1.2rem;min-width:4rem;cursor:pointer}pn-proxio-pricegroup div.weightdata label{font-size:1.4rem;cursor:pointer}pn-proxio-pricegroup div.weightdata[data-carousel-position=\"0\"]{font-size:2rem;font-weight:700}@media screen and (max-width: 48em){pn-proxio-pricegroup div.weightdata[data-carousel-position=\"2\"],pn-proxio-pricegroup div.weightdata[data-carousel-position=\"-2\"]{display:none}}pn-proxio-pricegroup div.weightdata[data-carousel-position=outside]{display:none}pn-proxio-pricegroup div.weightdata input[type=radio]{-webkit-appearance:none;-moz-appearance:none;width:1.2rem;height:1.2rem;background-color:#005D92;border-radius:50%;margin:0;cursor:pointer}pn-proxio-pricegroup div.weightdata input[type=radio]:checked{z-index:1;-webkit-transform:translateY(-0.1rem);transform:translateY(-0.1rem);height:1.4rem;width:1.4rem;-webkit-box-shadow:0 0 0 0.3rem #FFFFFF, 0 0 0 0.4rem #005D92;box-shadow:0 0 0 0.3rem #FFFFFF, 0 0 0 0.4rem #005D92}pn-proxio-pricegroup div.weightline{width:100%;background-color:#F3F2F2;z-index:-1;height:0.8rem;-webkit-transform:translateX(2.1rem) translateY(1.32rem);transform:translateX(2.1rem) translateY(1rem);border-radius:2rem;margin-right:3.5rem}pn-proxio-pricegroup pn-button[disabled=disabled]{opacity:0.2}pn-proxio-pricegroup pn-button[disabled=disabled] button{cursor:default}pn-proxio-pricegroup pn-button[disabled=disabled] button.pn-button-light .pn-button-bg:after{background-color:#FFFFFF}pn-proxio-pricegroup pn-button[disabled=disabled] button[data-tooltip-open]:before{display:none}pn-proxio-pricegroup pn-button button div.button-tooltip{display:none}pn-proxio-pricegroup pn-button button:focus .pn-button-bg{-webkit-box-shadow:none;box-shadow:none}";
|
|
@@ -11,7 +11,7 @@ const pnProxioPricegroupCss = "pn-proxio-pricegroup div.proxio-pricegroup-contai
|
|
|
11
11
|
const PnProxioPricegroup = class {
|
|
12
12
|
constructor(hostRef) {
|
|
13
13
|
index.registerInstance(this, hostRef);
|
|
14
|
-
this.fetchHelper = new
|
|
14
|
+
this.fetchHelper = new FetchHelper.FetchHelper("proxiopricegroup");
|
|
15
15
|
this.endpoint = null;
|
|
16
16
|
this.language = "sv";
|
|
17
17
|
this.market = "se";
|
|
@@ -27,7 +27,7 @@ const PnProxioPricegroup = class {
|
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
29
|
async setInitialValues(href = window.location.href) {
|
|
30
|
-
const marketWebContextService = new
|
|
30
|
+
const marketWebContextService = new FetchHelper.MarketWebContextService(href);
|
|
31
31
|
const environment = await marketWebContextService.getEnvironmentName();
|
|
32
32
|
if ((!this.endpoint && (environment === null || environment === void 0 ? void 0 : environment.indexOf('local')) === -1)) {
|
|
33
33
|
const market = await marketWebContextService.getMarket();
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"./components/cta/pn-spotlight/pn-spotlight.js",
|
|
17
17
|
"./components/data-visualization/pn-stats-info/pn-stats-info.js",
|
|
18
18
|
"./components/data-visualization/pn-stats-info/pn-stats-info-data/pn-stats-info-data.js",
|
|
19
|
+
"./components/input/pn-address-autofill/pn-address-autofill.js",
|
|
19
20
|
"./components/input/pn-bonus-progressbar/pn-bonus-progressbar-level.js",
|
|
20
21
|
"./components/input/pn-bonus-progressbar/pn-bonus-progressbar.js",
|
|
21
22
|
"./components/input/pn-choice-button/pn-choice-button.js",
|
|
@@ -24,6 +25,7 @@
|
|
|
24
25
|
"./components/input/pn-filter-checkbox/pn-filter-checkbox.js",
|
|
25
26
|
"./components/input/pn-marketweb-input/pn-marketweb-input.js",
|
|
26
27
|
"./components/input/pn-marketweb-search/pn-marketweb-search.js",
|
|
28
|
+
"./components/input/pn-multi-formfield/pn-multi-formfield.js",
|
|
27
29
|
"./components/layout-components/pn-marketweb-sitefooter/pn-marketweb-sitefooter.js",
|
|
28
30
|
"./components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-button.js",
|
|
29
31
|
"./components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-linklist.js",
|
|
@@ -34,7 +36,6 @@
|
|
|
34
36
|
"./components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-search.js",
|
|
35
37
|
"./components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-unified-login.js",
|
|
36
38
|
"./components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.js",
|
|
37
|
-
"./components/layout-components/pn-multi-formfield/pn-multi-formfield.js",
|
|
38
39
|
"./components/minor/pn-app-banner/pn-app-banner.js",
|
|
39
40
|
"./components/minor/pn-swan/pn-swan.js",
|
|
40
41
|
"./components/minor/pn-titletag/pn-titletag.js",
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
pn-address-autofill pn-marketweb-input {
|
|
2
|
+
width: 50%;
|
|
3
|
+
}
|
|
4
|
+
pn-address-autofill .input-container-row {
|
|
5
|
+
display: flex;
|
|
6
|
+
gap: 1rem;
|
|
7
|
+
margin-bottom: 1rem;
|
|
8
|
+
}
|
|
9
|
+
pn-address-autofill .label-container {
|
|
10
|
+
color: #5E554A;
|
|
11
|
+
font-size: 0.875em;
|
|
12
|
+
display: flex;
|
|
13
|
+
justify-content: space-between;
|
|
14
|
+
align-items: flex-end;
|
|
15
|
+
}
|
|
16
|
+
pn-address-autofill .autocomplete-items {
|
|
17
|
+
position: absolute;
|
|
18
|
+
border-radius: 0.8rem;
|
|
19
|
+
border: 0.1rem solid #5E554A;
|
|
20
|
+
width: 100%;
|
|
21
|
+
max-height: 30rem;
|
|
22
|
+
overflow-y: auto;
|
|
23
|
+
}
|
|
24
|
+
pn-address-autofill .autocomplete-items:hover,
|
|
25
|
+
pn-address-autofill .autocomplete-items :focus {
|
|
26
|
+
border: 0.1rem solid #00A0D6;
|
|
27
|
+
}
|
|
28
|
+
pn-address-autofill .autocomplete-items div {
|
|
29
|
+
padding: 1.6rem;
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
background-color: #fff;
|
|
32
|
+
border: 0.1rem solid transparent;
|
|
33
|
+
}
|
|
34
|
+
pn-address-autofill .autocomplete-items div:first-child {
|
|
35
|
+
border-radius: 0.8rem 0.8rem 0 0;
|
|
36
|
+
}
|
|
37
|
+
pn-address-autofill .autocomplete-items div:last-child {
|
|
38
|
+
border-radius: 0 0 0.8rem 0.8rem;
|
|
39
|
+
}
|
|
40
|
+
pn-address-autofill .autocomplete-items div:hover {
|
|
41
|
+
background-color: #e0f8ff;
|
|
42
|
+
}
|
|
43
|
+
pn-address-autofill .autocomplete-items .autocomplete-active {
|
|
44
|
+
background-color: #e0f8ff;
|
|
45
|
+
}
|