@postnord/pn-marketweb-components 2.0.150-test1 → 2.0.150-test3
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-language-selector_9.cjs.entry.js +5 -2
- package/cjs/pn-market-web-components.cjs.js +1 -1
- package/cjs/{pn-marketweb-siteheader-login-button_3.cjs.entry.js → pn-marketweb-siteheader-login-button_4.cjs.entry.js} +49 -32
- package/cjs/pn-marketweb-siteheader-login-linklist.cjs.entry.js +7 -42
- package/cjs/pn-marketweb-siteheader.cjs.entry.js +2 -2
- package/cjs/pn-proxio-findprice.cjs.entry.js +3 -3
- package/collection/collection-manifest.json +1 -0
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-button.css +0 -3
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-button.js +42 -34
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-linklist.css +25 -13
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-linklist.js +14 -45
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-links.js +13 -23
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-mypage-button.css +0 -0
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-mypage-button.js +55 -0
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.js +25 -4
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.css +26 -0
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.js +3 -3
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.stories.js +4 -5
- package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice.css +25 -11
- package/collection/components/widgets/pn-proxio-findprice/pn-proxio-findprice.js +2 -2
- package/collection/globals/MarketWebLoginManager.js +1 -1
- package/custom-elements/index.d.ts +6 -0
- package/custom-elements/index.js +71 -84
- package/esm/loader.js +1 -1
- package/esm/pn-language-selector_9.entry.js +5 -2
- package/esm/pn-market-web-components.js +1 -1
- package/esm/{pn-marketweb-siteheader-login-button_3.entry.js → pn-marketweb-siteheader-login-button_4.entry.js} +49 -33
- package/esm/pn-marketweb-siteheader-login-linklist.entry.js +7 -42
- package/esm/pn-marketweb-siteheader.entry.js +2 -2
- package/esm/pn-proxio-findprice.entry.js +3 -3
- package/esm-es5/loader.js +1 -1
- package/esm-es5/pn-language-selector_9.entry.js +1 -1
- package/esm-es5/pn-market-web-components.js +1 -1
- package/esm-es5/pn-marketweb-siteheader-login-button_4.entry.js +1 -0
- package/esm-es5/pn-marketweb-siteheader-login-linklist.entry.js +1 -1
- package/esm-es5/pn-marketweb-siteheader.entry.js +1 -1
- package/esm-es5/pn-proxio-findprice.entry.js +1 -1
- package/package.json +1 -1
- package/pn-market-web-components/p-20be85a1.system.entry.js +1 -0
- package/pn-market-web-components/{p-27bcc4a1.system.entry.js → p-2b4c41aa.system.entry.js} +1 -1
- package/pn-market-web-components/p-67887512.system.js +1 -1
- package/pn-market-web-components/{p-5882d613.entry.js → p-70b360dd.entry.js} +1 -1
- package/pn-market-web-components/{p-d11a5fbb.system.entry.js → p-7f9c643c.system.entry.js} +1 -1
- package/pn-market-web-components/p-dd01024a.system.entry.js +1 -0
- package/pn-market-web-components/p-de823255.entry.js +1 -0
- package/pn-market-web-components/p-e4ebf17d.system.entry.js +1 -0
- package/pn-market-web-components/p-e7a1cda9.entry.js +1 -0
- package/pn-market-web-components/p-fe95397b.entry.js +1 -0
- package/pn-market-web-components/p-ff83e974.entry.js +1 -0
- package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
- package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-button.d.ts +5 -4
- package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-linklist.d.ts +1 -2
- package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-links.d.ts +1 -1
- package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-mypage-button.d.ts +6 -0
- package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.d.ts +1 -0
- package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-types.d.ts +10 -8
- package/types/components.d.ts +21 -4
- package/umd/pn-marketweb-init.js +1 -1
- package/umd/pn-marketweb-salesforce.js +2 -2
- package/esm-es5/pn-marketweb-siteheader-login-button_3.entry.js +0 -1
- package/pn-market-web-components/p-4a026c9d.system.entry.js +0 -1
- package/pn-market-web-components/p-6b33db5b.system.entry.js +0 -1
- package/pn-market-web-components/p-8a05dbb6.entry.js +0 -1
- package/pn-market-web-components/p-92fd28e6.entry.js +0 -1
- package/pn-market-web-components/p-a119cb8e.entry.js +0 -1
- package/pn-market-web-components/p-d542a52b.system.entry.js +0 -1
- package/pn-market-web-components/p-e0b034c2.entry.js +0 -1
|
@@ -17,6 +17,8 @@ export class PnMarketwebSiteheaderLogin {
|
|
|
17
17
|
mainMenuButton: '',
|
|
18
18
|
menuStartButton: '',
|
|
19
19
|
profileSelectionFlyoutHeading: '',
|
|
20
|
+
loginButtonText: '',
|
|
21
|
+
loginPreamble: '',
|
|
20
22
|
};
|
|
21
23
|
this.siteUrl = '';
|
|
22
24
|
this.emitEvents = true;
|
|
@@ -33,6 +35,7 @@ export class PnMarketwebSiteheaderLogin {
|
|
|
33
35
|
this.username = this.fullname;
|
|
34
36
|
}
|
|
35
37
|
componentWillLoad() {
|
|
38
|
+
console.log('env: ', this.environment);
|
|
36
39
|
const userInfo = this.loggedin && this.fullname ? { given_name: this.fullname } : null;
|
|
37
40
|
headerState.loginManager = new MarketWebLoginManager({
|
|
38
41
|
endpoint: this.endpoint,
|
|
@@ -154,9 +157,10 @@ export class PnMarketwebSiteheaderLogin {
|
|
|
154
157
|
}
|
|
155
158
|
return (h(Host, Object.assign({}, hostElementAttribute),
|
|
156
159
|
h("pn-nav-dropdown", { label: this.toggleButtonText, icon: "user", class: "siteheader-logindialog" },
|
|
157
|
-
!this.loggedin && h("pn-marketweb-siteheader-login-button", { label: '
|
|
158
|
-
|
|
159
|
-
this.loggedin && this.showProfileSelection ? (h("pn-marketweb-siteheader-login-profileselection", { loginDialog: this.loginDialog, loggedin: this.loggedin, i18n: this.i18n, idNamespace: this.emitEvents ? '1' : '2', endpoint: this.endpoint })) : (h("pn-marketweb-siteheader-login-links", { loginDialog: this.loginDialog, loggedin: this.loggedin, idNamespace: this.emitEvents ? '1' : '2', username: this.username }))
|
|
160
|
+
this.environment !== 'production' && !this.loggedin && h("pn-marketweb-siteheader-login-button", { label: /* this.i18n?.loginButtonText */ 'login check' }),
|
|
161
|
+
this.environment !== 'production' && this.loggedin && h("pn-marketweb-siteheader-login-mypage-button", { myPageUrl: "https://account.postnord.com/secure/profile" }),
|
|
162
|
+
this.loggedin && this.showProfileSelection ? (h("pn-marketweb-siteheader-login-profileselection", { loginDialog: this.loginDialog, loggedin: this.loggedin, i18n: this.i18n, idNamespace: this.emitEvents ? '1' : '2', endpoint: this.endpoint })) : (h("pn-marketweb-siteheader-login-links", { loginDialog: this.loginDialog, loggedin: this.loggedin, idNamespace: this.emitEvents ? '1' : '2', username: this.username })),
|
|
163
|
+
this.environment !== 'production' && h("p", null, "L\u00E4s mer om v\u00E5ra inloggade tj\u00E4nster och hur du anv\u00E4nder dem"))));
|
|
160
164
|
}
|
|
161
165
|
static get is() { return "pn-marketweb-siteheader-login"; }
|
|
162
166
|
static get originalStyleUrls() { return {
|
|
@@ -221,7 +225,7 @@ export class PnMarketwebSiteheaderLogin {
|
|
|
221
225
|
"tags": [],
|
|
222
226
|
"text": ""
|
|
223
227
|
},
|
|
224
|
-
"defaultValue": "{\n searchlabel: '',\n searchplaceholder: '',\n searchbuttontext: '',\n menuHomeButton: '',\n menuGoBackButton: '',\n mainMenuButton: '',\n menuStartButton: '',\n profileSelectionFlyoutHeading: '',\n } as SiteHeaderI18N"
|
|
228
|
+
"defaultValue": "{\n searchlabel: '',\n searchplaceholder: '',\n searchbuttontext: '',\n menuHomeButton: '',\n menuGoBackButton: '',\n mainMenuButton: '',\n menuStartButton: '',\n profileSelectionFlyoutHeading: '',\n loginButtonText: '',\n loginPreamble: '',\n } as SiteHeaderI18N"
|
|
225
229
|
},
|
|
226
230
|
"siteUrl": {
|
|
227
231
|
"type": "string",
|
|
@@ -351,6 +355,23 @@ export class PnMarketwebSiteheaderLogin {
|
|
|
351
355
|
"attribute": "check-user-logged-in-state-interval",
|
|
352
356
|
"reflect": false,
|
|
353
357
|
"defaultValue": "0"
|
|
358
|
+
},
|
|
359
|
+
"environment": {
|
|
360
|
+
"type": "string",
|
|
361
|
+
"mutable": false,
|
|
362
|
+
"complexType": {
|
|
363
|
+
"original": "string",
|
|
364
|
+
"resolved": "string",
|
|
365
|
+
"references": {}
|
|
366
|
+
},
|
|
367
|
+
"required": false,
|
|
368
|
+
"optional": true,
|
|
369
|
+
"docs": {
|
|
370
|
+
"tags": [],
|
|
371
|
+
"text": ""
|
|
372
|
+
},
|
|
373
|
+
"attribute": "environment",
|
|
374
|
+
"reflect": false
|
|
354
375
|
}
|
|
355
376
|
}; }
|
|
356
377
|
static get states() { return {
|
package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.css
CHANGED
|
@@ -87,6 +87,29 @@ pn-marketweb-siteheader .siteheader-row > pn-marketweb-siteheader-search {
|
|
|
87
87
|
pn-marketweb-siteheader pn-spinner {
|
|
88
88
|
display: none;
|
|
89
89
|
}
|
|
90
|
+
pn-marketweb-siteheader pn-nav-dropdown .nav-dropdown-content-container .nav-dropdown-content {
|
|
91
|
+
max-width: 350px;
|
|
92
|
+
display: flex;
|
|
93
|
+
flex-direction: column;
|
|
94
|
+
gap: 2.4rem;
|
|
95
|
+
padding: 4rem;
|
|
96
|
+
}
|
|
97
|
+
pn-marketweb-siteheader pn-nav-dropdown .nav-dropdown-content-container .nav-dropdown-content pn-button {
|
|
98
|
+
width: 100%;
|
|
99
|
+
}
|
|
100
|
+
pn-marketweb-siteheader pn-nav-dropdown .nav-dropdown-content-container .nav-dropdown-content pn-marketweb-siteheader-login-links::before,
|
|
101
|
+
pn-marketweb-siteheader pn-nav-dropdown .nav-dropdown-content-container .nav-dropdown-content p::before {
|
|
102
|
+
display: block;
|
|
103
|
+
content: "";
|
|
104
|
+
height: 2px;
|
|
105
|
+
background: #F9F8F8;
|
|
106
|
+
width: 100%;
|
|
107
|
+
margin-bottom: 2.4rem;
|
|
108
|
+
}
|
|
109
|
+
pn-marketweb-siteheader pn-nav-dropdown .nav-dropdown-content-container .nav-dropdown-content p {
|
|
110
|
+
font-size: 1.4rem;
|
|
111
|
+
color: #005D92;
|
|
112
|
+
}
|
|
90
113
|
pn-marketweb-siteheader pn-nav-dropdown:not(.hydrated) .nav-dropdown-content-container {
|
|
91
114
|
display: none;
|
|
92
115
|
}
|
|
@@ -360,6 +383,9 @@ header[data-header-theme=dotcom] > pn-marketweb-siteheader > header nav.mainnav
|
|
|
360
383
|
background-color: #00A0D6;
|
|
361
384
|
text-decoration: none;
|
|
362
385
|
}
|
|
386
|
+
header[data-header-theme=dotcom] > pn-marketweb-siteheader > header nav.mainnav pn-marketweb-siteheader-login-linklist ul li a {
|
|
387
|
+
color: #005D92;
|
|
388
|
+
}
|
|
363
389
|
header[data-header-theme=dotcom] > pn-marketweb-siteheader > header [data-level="1"] pn-mainnav-link pn-icon.first-level_arrow svg > path {
|
|
364
390
|
fill: #FFFFFF;
|
|
365
391
|
}
|
package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Component, Element, Event, h, Host, Listen, Prop, State, Watch
|
|
1
|
+
import { Component, Element, Event, h, Host, Listen, Prop, State, Watch } from '@stencil/core';
|
|
2
2
|
import { FetchHelper } from '../../../globals/FetchHelper';
|
|
3
3
|
import { MarketWebContextService } from '../../../globals/MarketWebContextService';
|
|
4
|
-
import { state as headerState } from
|
|
4
|
+
import { state as headerState } from './pn-marketweb-siteheader-store';
|
|
5
5
|
import { translations } from './translations';
|
|
6
6
|
export class PnMarketwebSiteheader {
|
|
7
7
|
constructor() {
|
|
@@ -367,7 +367,7 @@ export class PnMarketwebSiteheader {
|
|
|
367
367
|
})),
|
|
368
368
|
h("div", { slot: "footer", class: "siteheader-menu-footer" },
|
|
369
369
|
h("slot", { name: "menu-footer-cta" }),
|
|
370
|
-
this.gotData && this.loginDialog && !this.hideLogin && (h("pn-marketweb-siteheader-login", { emitEvents: false, siteUrl: this.siteDefinition.url, loginDialog: this.loginDialog, endpoint: this.endpoint, fullname: this.userFullname, loggedin: this.userLoggedin, i18n: this.i18n, showProfileSelection: this.showProfileSelection })),
|
|
370
|
+
this.gotData && this.loginDialog && !this.hideLogin && (h("pn-marketweb-siteheader-login", { emitEvents: false, siteUrl: this.siteDefinition.url, loginDialog: this.loginDialog, endpoint: this.endpoint, fullname: this.userFullname, loggedin: this.userLoggedin, i18n: this.i18n, showProfileSelection: this.showProfileSelection, environment: this.environment })),
|
|
371
371
|
this.gotData && this.languageOptions && this.languageOptions.length && !this.hideLanguageSelector && (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) }))))),
|
|
372
372
|
!this.hideSiteSelector && (h("pn-site-selector", { language: this.language },
|
|
373
373
|
this.gotData && ((_e = this.siteSelector) === null || _e === void 0 ? void 0 : _e.currentSiteTitle) && (h("pn-site-selector-item", { heading: this.siteSelector.currentSiteTitle, description: this.siteSelector.currentSiteDescription })),
|
|
@@ -380,7 +380,7 @@ const LoggedInTemplate = ({ ...args }) => {
|
|
|
380
380
|
language="${args.language}"
|
|
381
381
|
endpoint="${args.endpoint}"
|
|
382
382
|
user-token="${args.token}"
|
|
383
|
-
check-user-logged-in-state-interval="${args.checkUserLoggedInStateInterval+''}"
|
|
383
|
+
check-user-logged-in-state-interval="${args.checkUserLoggedInStateInterval + ''}"
|
|
384
384
|
>
|
|
385
385
|
</pn-marketweb-siteheader>
|
|
386
386
|
</div>
|
|
@@ -477,7 +477,7 @@ DotComSiteHeader.args = {
|
|
|
477
477
|
language: 'sv',
|
|
478
478
|
endpoint: 'https://com-integration.postnord.com',
|
|
479
479
|
name: 'DotCom User',
|
|
480
|
-
loggedin:
|
|
480
|
+
loggedin: true,
|
|
481
481
|
};
|
|
482
482
|
|
|
483
483
|
const TPLSiteHeaderTemplate = ({ ...args }) => {
|
|
@@ -510,8 +510,8 @@ TPLSiteHeader.args = {
|
|
|
510
510
|
hideHomeMenuItem: true,
|
|
511
511
|
hideLanguageSelector: false,
|
|
512
512
|
loggedin: false,
|
|
513
|
-
buttonText:
|
|
514
|
-
placeholder:
|
|
513
|
+
buttonText: 'Kontrolltornet',
|
|
514
|
+
placeholder: 'placeholder',
|
|
515
515
|
};
|
|
516
516
|
|
|
517
517
|
const ATLoginTestTemplate = ({ ...args }) => {
|
|
@@ -534,4 +534,3 @@ const ATLoginTestTemplate = ({ ...args }) => {
|
|
|
534
534
|
</header>`;
|
|
535
535
|
};
|
|
536
536
|
export const ATLoginTest = ATLoginTestTemplate.bind({});
|
|
537
|
-
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
2
|
pn-proxio-findprice .findprice-form {
|
|
3
|
-
/*max-width: 60em;*/
|
|
4
3
|
margin: 0em auto 3em auto;
|
|
5
4
|
}
|
|
6
5
|
pn-proxio-findprice .findprice-form-wrapper {
|
|
7
6
|
background-color: #EFFBFF;
|
|
8
|
-
padding: 3.2rem
|
|
7
|
+
padding: 3.2rem;
|
|
9
8
|
}
|
|
10
9
|
pn-proxio-findprice .sizeTable {
|
|
11
10
|
border-style: none !important;
|
|
@@ -18,12 +17,13 @@ pn-proxio-findprice .sizeTable > tr td {
|
|
|
18
17
|
vertical-align: bottom;
|
|
19
18
|
padding-right: 1em;
|
|
20
19
|
padding-top: 1em;
|
|
20
|
+
position: relative;
|
|
21
|
+
z-index: 1;
|
|
21
22
|
}
|
|
22
23
|
pn-proxio-findprice .sizeTable #clouds {
|
|
23
24
|
position: absolute;
|
|
24
|
-
top:
|
|
25
|
-
|
|
26
|
-
z-index: -1;
|
|
25
|
+
top: 3rem;
|
|
26
|
+
width: 100%;
|
|
27
27
|
}
|
|
28
28
|
pn-proxio-findprice .firstCell {
|
|
29
29
|
margin-right: 0;
|
|
@@ -35,12 +35,17 @@ pn-proxio-findprice [slot=title] {
|
|
|
35
35
|
pn-proxio-findprice h2 {
|
|
36
36
|
text-align: center;
|
|
37
37
|
}
|
|
38
|
-
pn-proxio-findprice .
|
|
38
|
+
pn-proxio-findprice .findprice__heading {
|
|
39
39
|
text-align: center;
|
|
40
40
|
line-height: 1.1;
|
|
41
41
|
font-weight: bold;
|
|
42
|
-
margin-bottom: 1rem;
|
|
43
42
|
color: #000000;
|
|
43
|
+
font-size: 3.2rem;
|
|
44
|
+
font-weight: 700;
|
|
45
|
+
}
|
|
46
|
+
pn-proxio-findprice .findprice__subheading {
|
|
47
|
+
font-size: 2.4rem;
|
|
48
|
+
margin-bottom: 2.4rem;
|
|
44
49
|
}
|
|
45
50
|
pn-proxio-findprice .resultHeading {
|
|
46
51
|
text-align: center;
|
|
@@ -61,22 +66,31 @@ pn-proxio-findprice .weightoption {
|
|
|
61
66
|
font-size: 0.9em;
|
|
62
67
|
margin: 0 auto;
|
|
63
68
|
}
|
|
64
|
-
pn-proxio-findprice .weightoption-content {
|
|
69
|
+
pn-proxio-findprice .findprice-form-wrapper .weightoption .weightoption-content {
|
|
65
70
|
text-align: center;
|
|
71
|
+
display: flex;
|
|
72
|
+
flex-wrap: wrap;
|
|
73
|
+
justify-content: center;
|
|
74
|
+
flex-direction: row;
|
|
66
75
|
}
|
|
67
|
-
pn-proxio-findprice .weightoption-content pn-choice-button {
|
|
76
|
+
pn-proxio-findprice .findprice-form-wrapper .weightoption .weightoption-content pn-choice-button {
|
|
68
77
|
width: 7em;
|
|
69
78
|
line-height: 3.3em;
|
|
70
79
|
font-size: 0.9em;
|
|
71
80
|
vertical-align: bottom;
|
|
81
|
+
background: #FFFFFF;
|
|
82
|
+
border-radius: 1rem;
|
|
72
83
|
}
|
|
73
|
-
pn-proxio-findprice .weightoption-content pn-choice-button > label {
|
|
84
|
+
pn-proxio-findprice .findprice-form-wrapper .weightoption .weightoption-content pn-choice-button > label {
|
|
74
85
|
align-content: center;
|
|
75
86
|
justify-content: center;
|
|
87
|
+
color: #000000;
|
|
88
|
+
margin-bottom: 0;
|
|
76
89
|
}
|
|
77
|
-
pn-proxio-findprice .weightoption-content pn-choice-button ::before {
|
|
90
|
+
pn-proxio-findprice .findprice-form-wrapper .weightoption .weightoption-content pn-choice-button ::before {
|
|
78
91
|
content: "Max ";
|
|
79
92
|
font-weight: lighter;
|
|
93
|
+
color: #5E554A;
|
|
80
94
|
}
|
|
81
95
|
pn-proxio-findprice .resultlist {
|
|
82
96
|
max-width: 60em;
|
|
@@ -115,7 +115,7 @@ export class PnProxioFindPrice {
|
|
|
115
115
|
render() {
|
|
116
116
|
return (h("div", { class: "findprice-form" },
|
|
117
117
|
h("div", { class: "findprice-form-wrapper" },
|
|
118
|
-
h("h4", { class: "
|
|
118
|
+
h("h4", { class: "findprice__heading" }, state.i18n.sizeheading),
|
|
119
119
|
h("div", { class: "sizecategory" },
|
|
120
120
|
h("table", { class: "sizeTable" },
|
|
121
121
|
h("img", { id: "clouds", src: clouds }),
|
|
@@ -136,7 +136,7 @@ export class PnProxioFindPrice {
|
|
|
136
136
|
this.weight = { value: 0, name: "" };
|
|
137
137
|
this.weightvalue = this.weight.value;
|
|
138
138
|
} }))))))),
|
|
139
|
-
h("h4", { class: "
|
|
139
|
+
h("h4", { class: "findprice__heading findprice__subheading" }, state.i18n.weightheading),
|
|
140
140
|
(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", { id: 'findpriceweight-' + wght.value, 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: () => {
|
|
141
141
|
this.weight = weights[this.sizecategory.unit].filter(x => x.value === wght.value)[0];
|
|
142
142
|
this.weightvalue = this.weight.value;
|
|
@@ -332,7 +332,7 @@ class MarketWebLoginManager {
|
|
|
332
332
|
getBaseUrl() {
|
|
333
333
|
const atEnvironments = ["localhost", "integration.", 'local.'];
|
|
334
334
|
let useATEnv = atEnvironments.filter(x => this.endpoint.indexOf(x) !== -1).length > 0;
|
|
335
|
-
if (
|
|
335
|
+
if (['devportal.postnord.com', 'atportal.postnord.com'].indexOf(window.location.hostname) !== -1) {
|
|
336
336
|
useATEnv = true;
|
|
337
337
|
}
|
|
338
338
|
if (useATEnv) {
|
|
@@ -170,6 +170,12 @@ export const PnMarketwebSiteheaderLoginLinks: {
|
|
|
170
170
|
new (): PnMarketwebSiteheaderLoginLinks;
|
|
171
171
|
};
|
|
172
172
|
|
|
173
|
+
interface PnMarketwebSiteheaderLoginMypageButton extends Components.PnMarketwebSiteheaderLoginMypageButton, HTMLElement {}
|
|
174
|
+
export const PnMarketwebSiteheaderLoginMypageButton: {
|
|
175
|
+
prototype: PnMarketwebSiteheaderLoginMypageButton;
|
|
176
|
+
new (): PnMarketwebSiteheaderLoginMypageButton;
|
|
177
|
+
};
|
|
178
|
+
|
|
173
179
|
interface PnMarketwebSiteheaderLoginProfileselection extends Components.PnMarketwebSiteheaderLoginProfileselection, HTMLElement {}
|
|
174
180
|
export const PnMarketwebSiteheaderLoginProfileselection: {
|
|
175
181
|
prototype: PnMarketwebSiteheaderLoginProfileselection;
|