@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.
Files changed (121) hide show
  1. package/cjs/loader.cjs.js +1 -1
  2. package/cjs/pn-customernumber-selector-option.cjs.entry.js +2 -2
  3. package/cjs/pn-customernumber-selector.cjs.entry.js +3 -3
  4. package/cjs/pn-find-price-result.cjs.entry.js +5 -5
  5. package/cjs/{pn-find-price-store-a2728ff4.js → pn-find-price-store-0b8c195c.js} +2 -0
  6. package/cjs/pn-find-price.cjs.entry.js +17 -9
  7. package/cjs/pn-language-selector_9.cjs.entry.js +51 -59
  8. package/cjs/pn-market-web-components.cjs.js +1 -1
  9. package/cjs/pn-marketweb-siteheader-login-linklist.cjs.entry.js +72 -0
  10. package/cjs/pn-marketweb-siteheader-login-links_2.cjs.entry.js +186 -0
  11. package/cjs/pn-marketweb-siteheader.cjs.entry.js +26 -7
  12. package/cjs/pn-product-pricelist.cjs.entry.js +1 -1
  13. package/cjs/pn-profile-selector-option.cjs.entry.js +2 -2
  14. package/collection/collection-manifest.json +3 -1
  15. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-linklist.css +22 -0
  16. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-linklist.js +149 -0
  17. package/collection/components/layout-components/pn-marketweb-siteheader/{pn-marketweb-siteheader-profileselection.css → pn-marketweb-siteheader-login-links.css} +0 -0
  18. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-links.js +199 -0
  19. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-profileselection.css +93 -0
  20. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-profileselection.js +269 -0
  21. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.css +0 -17
  22. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.js +79 -72
  23. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.js +24 -2
  24. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.stories.js +69 -2
  25. package/collection/components/layout-components/pn-marketweb-siteheader/translations.js +20 -5
  26. package/collection/components/profile/pn-customernumber-selector/pn-customernumber-selector-option.js +4 -4
  27. package/collection/components/profile/pn-customernumber-selector/pn-customernumber-selector.js +7 -7
  28. package/collection/components/profile/pn-customernumber-selector/pn-customernumber-selector.stories.js +3 -3
  29. package/collection/components/profile/pn-profile-selector/pn-profile-selector-option.js +4 -4
  30. package/collection/components/widgets/pn-find-price/pn-find-price-result.js +4 -4
  31. package/collection/components/widgets/pn-find-price/pn-find-price-store.js +2 -0
  32. package/collection/components/widgets/pn-find-price/pn-find-price-translations.js +6 -0
  33. package/collection/components/widgets/pn-find-price/pn-find-price.css +6 -3
  34. package/collection/components/widgets/pn-find-price/pn-find-price.js +9 -5
  35. package/custom-elements/index.d.ts +16 -4
  36. package/custom-elements/index.js +303 -186
  37. package/esm/loader.js +1 -1
  38. package/esm/pn-customernumber-selector-option.entry.js +2 -2
  39. package/esm/pn-customernumber-selector.entry.js +3 -3
  40. package/esm/pn-find-price-result.entry.js +5 -5
  41. package/esm/{pn-find-price-store-f531ab7e.js → pn-find-price-store-b4556c9b.js} +2 -0
  42. package/esm/pn-find-price.entry.js +17 -9
  43. package/esm/pn-language-selector_9.entry.js +51 -59
  44. package/esm/pn-market-web-components.js +1 -1
  45. package/esm/pn-marketweb-siteheader-login-linklist.entry.js +68 -0
  46. package/esm/pn-marketweb-siteheader-login-links_2.entry.js +181 -0
  47. package/esm/pn-marketweb-siteheader.entry.js +26 -7
  48. package/esm/pn-product-pricelist.entry.js +1 -1
  49. package/esm/pn-profile-selector-option.entry.js +2 -2
  50. package/esm-es5/loader.js +1 -1
  51. package/esm-es5/pn-customernumber-selector-option.entry.js +1 -1
  52. package/esm-es5/pn-customernumber-selector.entry.js +1 -1
  53. package/esm-es5/pn-find-price-result.entry.js +1 -1
  54. package/esm-es5/pn-find-price-store-b4556c9b.js +1 -0
  55. package/esm-es5/pn-find-price.entry.js +1 -1
  56. package/esm-es5/pn-language-selector_9.entry.js +1 -1
  57. package/esm-es5/pn-market-web-components.js +1 -1
  58. package/esm-es5/pn-marketweb-siteheader-login-linklist.entry.js +1 -0
  59. package/esm-es5/pn-marketweb-siteheader-login-links_2.entry.js +1 -0
  60. package/esm-es5/pn-marketweb-siteheader.entry.js +1 -1
  61. package/esm-es5/pn-product-pricelist.entry.js +1 -1
  62. package/esm-es5/pn-profile-selector-option.entry.js +1 -1
  63. package/package.json +1 -1
  64. package/pn-market-web-components/p-04240175.entry.js +1 -0
  65. package/pn-market-web-components/p-08411f5e.entry.js +1 -0
  66. package/pn-market-web-components/p-0d5d05cc.system.entry.js +1 -0
  67. package/pn-market-web-components/{p-77887623.system.entry.js → p-1924152a.system.entry.js} +1 -1
  68. package/pn-market-web-components/p-1f2d9304.entry.js +1 -0
  69. package/pn-market-web-components/p-37017f68.system.js +1 -0
  70. package/pn-market-web-components/p-4791c81b.entry.js +1 -0
  71. package/pn-market-web-components/p-67887512.system.js +1 -1
  72. package/pn-market-web-components/p-845d6b0a.entry.js +1 -0
  73. package/pn-market-web-components/{p-2a7e6d3a.system.entry.js → p-93cecc43.system.entry.js} +1 -1
  74. package/pn-market-web-components/p-a7bb94a0.entry.js +1 -0
  75. package/pn-market-web-components/{p-1f5b2d7a.entry.js → p-b32a8507.entry.js} +1 -1
  76. package/pn-market-web-components/p-ba41a7c0.system.entry.js +1 -0
  77. package/pn-market-web-components/p-c4254e9e.js +1 -0
  78. package/pn-market-web-components/p-c5a97974.entry.js +1 -0
  79. package/pn-market-web-components/{p-7f5bee11.entry.js → p-dc1827a6.entry.js} +1 -1
  80. package/pn-market-web-components/p-e32dc098.entry.js +1 -0
  81. package/pn-market-web-components/p-e66a8bb8.system.entry.js +1 -0
  82. package/pn-market-web-components/{p-ddbd131f.system.entry.js → p-e6fa11ad.system.entry.js} +1 -1
  83. package/pn-market-web-components/p-ec96434c.system.entry.js +1 -0
  84. package/pn-market-web-components/p-f4630c00.system.entry.js +1 -0
  85. package/pn-market-web-components/{p-e23a18f4.system.entry.js → p-f7d1c0a0.system.entry.js} +1 -1
  86. package/pn-market-web-components/{p-c1c79c65.system.entry.js → p-fecc53bb.system.entry.js} +1 -1
  87. package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
  88. package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-linklist.d.ts +13 -0
  89. package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-links.d.ts +14 -0
  90. package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-profileselection.d.ts +20 -0
  91. package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.d.ts +6 -4
  92. package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-types.d.ts +21 -0
  93. package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.d.ts +4 -2
  94. package/types/components/layout-components/pn-marketweb-siteheader/translations.d.ts +15 -0
  95. package/types/components/profile/pn-customernumber-selector/pn-customernumber-selector-option.d.ts +1 -1
  96. package/types/components/profile/pn-customernumber-selector/pn-customernumber-selector.d.ts +1 -1
  97. package/types/components/profile/pn-profile-selector/pn-profile-selector-option.d.ts +1 -1
  98. package/types/components/widgets/pn-find-price/pn-find-price-store.d.ts +4 -0
  99. package/types/components/widgets/pn-find-price/pn-find-price-translations.d.ts +6 -0
  100. package/types/components/widgets/pn-find-price/pn-find-price-types.d.ts +3 -1
  101. package/types/components.d.ts +89 -45
  102. package/umd/pn-marketweb-salesforce.js +1 -1
  103. package/cjs/pn-marketweb-siteheader-profileselection.cjs.entry.js +0 -161
  104. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-profileselection.js +0 -319
  105. package/esm/pn-marketweb-siteheader-profileselection.entry.js +0 -157
  106. package/esm-es5/pn-find-price-store-f531ab7e.js +0 -1
  107. package/esm-es5/pn-marketweb-siteheader-profileselection.entry.js +0 -1
  108. package/pn-market-web-components/p-39c42017.entry.js +0 -1
  109. package/pn-market-web-components/p-3a4b70d1.system.entry.js +0 -1
  110. package/pn-market-web-components/p-4cea6bf3.system.entry.js +0 -1
  111. package/pn-market-web-components/p-63a2ba1c.entry.js +0 -1
  112. package/pn-market-web-components/p-7e294268.entry.js +0 -1
  113. package/pn-market-web-components/p-893206f2.js +0 -1
  114. package/pn-market-web-components/p-a702dcfd.system.entry.js +0 -1
  115. package/pn-market-web-components/p-a94593a9.system.entry.js +0 -1
  116. package/pn-market-web-components/p-ac8285b4.entry.js +0 -1
  117. package/pn-market-web-components/p-b0053a2d.entry.js +0 -1
  118. package/pn-market-web-components/p-c2670af1.system.js +0 -1
  119. package/pn-market-web-components/p-ea39d576.entry.js +0 -1
  120. package/pn-market-web-components/p-fcea21cb.entry.js +0 -1
  121. package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-profileselection.d.ts +0 -28
@@ -0,0 +1,186 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-e3e27c79.js');
6
+
7
+ const pnMarketwebSiteheaderLoginLinksCss = "";
8
+
9
+ let PnMarketwebSiteheaderLoginLinks = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ // Login dialog
13
+ this.loginDialog = null;
14
+ this.loginManager = null;
15
+ this.idNamespace = "";
16
+ this.loggedin = false;
17
+ this.username = "";
18
+ }
19
+ componentWillLoad() {
20
+ this.init();
21
+ console.log('from links', this.loggedin);
22
+ }
23
+ async init() {
24
+ this.adjustLoginLinks();
25
+ }
26
+ adjustLoginLinks() {
27
+ var _a, _b, _c, _d;
28
+ if (!this.loginDialog) {
29
+ return;
30
+ }
31
+ const adjustLink = (link, i) => {
32
+ link.isLogoutLink = (link.href.indexOf('logout') !== -1);
33
+ if (link.isLogoutLink) {
34
+ link.href = this.loginManager.getLogoutUrl(link.href.replace('logout', '').replace('http://window.location.href/?', '').replace('https://window.location.href/?', ''));
35
+ }
36
+ if (i === 0 && !link.href) {
37
+ link.href = this.loginManager.getLoginUrl();
38
+ link.linkType = 'primary';
39
+ }
40
+ if (link.primaryLinkApperance && !link.linkType) {
41
+ link.linkType = 'primary';
42
+ }
43
+ };
44
+ if ((_a = this.loginDialog) === null || _a === void 0 ? void 0 : _a.loginMenuLinks) {
45
+ (_b = this.loginDialog) === null || _b === void 0 ? void 0 : _b.loginMenuLinks.forEach(adjustLink);
46
+ }
47
+ if ((_c = this.loginDialog) === null || _c === void 0 ? void 0 : _c.loggedInLinks) {
48
+ (_d = this.loginDialog) === null || _d === void 0 ? void 0 : _d.loggedInLinks.forEach(adjustLink);
49
+ }
50
+ this.loginDialog.legacyLoginLinks = [
51
+ {
52
+ href: this.loginManager.getLoginUrl(this.loginDialog.loginUrl),
53
+ linkText: this.loginDialog.loginLinkText,
54
+ openInNewWindow: false,
55
+ isLogoutLink: false,
56
+ pageLink: null,
57
+ linkType: 'primary',
58
+ primaryLinkApperance: true
59
+ },
60
+ {
61
+ href: this.loginManager.getLoginUrl(this.loginDialog.registerUrl),
62
+ linkText: this.loginDialog.createLoginLinkText,
63
+ openInNewWindow: false,
64
+ isLogoutLink: false,
65
+ pageLink: null,
66
+ primaryLinkApperance: false
67
+ }
68
+ ];
69
+ }
70
+ render() {
71
+ var _a;
72
+ if (!this.loginDialog) {
73
+ return;
74
+ }
75
+ let hostElementAttribute = {
76
+ username: null,
77
+ loggedin: false,
78
+ };
79
+ if (this.username) {
80
+ hostElementAttribute.username = this.username;
81
+ hostElementAttribute.loggedin = this.loggedin;
82
+ }
83
+ return (index.h(index.Host, Object.assign({}, hostElementAttribute), (!this.loginDialog.overrideLoginMenu) ?
84
+ index.h("div", { "data-loggedin": this.loggedin + '' }, (this.loggedin) ?
85
+ index.h("pn-marketweb-siteheader-login-linklist", { links: this.loginDialog.loggedInLinks, loginManager: this.loginManager, idNamespace: this.idNamespace })
86
+ :
87
+ index.h("div", null, ((_a = this.loginDialog.loginMenuLinks) === null || _a === void 0 ? void 0 : _a.length) > 0 ?
88
+ index.h("pn-marketweb-siteheader-login-linklist", { heading: this.loginDialog.loginTitle, links: this.loginDialog.loginMenuLinks, loginManager: this.loginManager, idNamespace: this.idNamespace })
89
+ :
90
+ index.h("pn-marketweb-siteheader-login-linklist", { links: this.loginDialog.legacyLoginLinks, loginManager: this.loginManager, idNamespace: this.idNamespace })))
91
+ : null, (this.loginDialog.overrideLoginMenu) ?
92
+ index.h("pn-marketweb-siteheader-login-linklist", { links: this.loginDialog.loginMenuLinks, loginManager: this.loginManager, idNamespace: this.idNamespace })
93
+ : null));
94
+ }
95
+ get hostElement() { return index.getElement(this); }
96
+ static get watchers() { return {
97
+ "loginDialog": ["init"]
98
+ }; }
99
+ };
100
+ PnMarketwebSiteheaderLoginLinks.style = pnMarketwebSiteheaderLoginLinksCss;
101
+
102
+ const pnMarketwebSiteheaderLoginProfileselectionCss = ".pn-marketweb-siteheader-login-profileselection-heading{display:block;padding:0.5rem 0 1rem}.pn-marketweb-siteheader-login-profileselection-user,.pn-marketweb-siteheader-login-profileselection-currentprofile{margin-top:1rem;margin-bottom:1rem}.pn-marketweb-siteheader-login-profileselection-user-name,.pn-marketweb-siteheader-login-profileselection-currentprofile-name{line-height:1}.pn-marketweb-siteheader-login-profileselection-user-description,.pn-marketweb-siteheader-login-profileselection-currentprofile-description{font-weight:400;white-space:normal;word-break:break-all;color:#5E554A;font-size:0.75em}.pn-marketweb-siteheader-login-profileselection-divider{height:1rem;width:100%;background:#00A0D6;position:relative;margin-left:-1em;margin-top:1.6rem;margin-bottom:1.6rem;border-radius:0 0.6em 0.6em 0;padding:0}.pn-marketweb-siteheader-login-profileselection-divider::after{content:\"\";width:0.6em;height:0.6em;border-radius:50%;position:absolute;right:0;top:0;background:inherit;-webkit-transform:translateX(calc(100% + 0.2em));transform:translateX(calc(100% + 0.2em))}.pn-marketweb-siteheader-login-profileselection-profileoption-link{display:-ms-flexbox;display:flex;background:#FFFFFF;-webkit-transition:background 0.15s ease-in-out;transition:background 0.15s ease-in-out;margin:0 -1em;padding:0.6rem 1.6rem;text-decoration:none;color:#005D92;-ms-flex-align:center;align-items:center}.pn-marketweb-siteheader-login-profileselection-profileoption-link:hover,.pn-marketweb-siteheader-login-profileselection-profileoption-link:focus,.pn-marketweb-siteheader-login-profileselection-profileoption-link:active{background:#F3F2F2}.pn-marketweb-siteheader-login-profileselection-profileoption-content{-ms-flex-positive:1;flex-grow:1}.pn-marketweb-siteheader-login-profileselection-profileoption-name{font-weight:700}.pn-marketweb-siteheader-login-profileselection-profileoption-description{font-weight:400;white-space:normal;word-break:break-all;color:#5E554A;font-size:0.75em}.pn-marketweb-siteheader-login-profileselection-logout{padding:1.6rem;text-align:center;width:100%}.pn-marketweb-siteheader-login-profileselection-logout-link{display:inline-block;font-weight:500;color:#005D92;text-decoration:none}.pn-marketweb-siteheader-login-profileselection-logout-link:hover,.pn-marketweb-siteheader-login-profileselection-logout-link:focus,.pn-marketweb-siteheader-login-profileselection-logout-link:active{text-decoration:underline}";
103
+
104
+ let PnMarketwebSiteheaderLoginProfileselection = class {
105
+ constructor(hostRef) {
106
+ index.registerInstance(this, hostRef);
107
+ // Login dialog
108
+ this.loginDialog = null;
109
+ this.loginManager = null;
110
+ this.endpoint = "";
111
+ this.loggedin = false;
112
+ this.idNamespace = "";
113
+ this.heading = "";
114
+ this.i18n = { "searchlabel": "", "searchplaceholder": "", "searchbuttontext": "", "menuHomeButton": "", "menuGoBackButton": "", "mainMenuButton": "", "menuStartButton": "", "profileSelectionFlyoutHeading": "" };
115
+ this.user = null;
116
+ this.logoutLink = null;
117
+ this.profileSelectorDialog = {
118
+ currentProfile: {
119
+ name: 'Hedin',
120
+ customerid: '5560230053'
121
+ },
122
+ profiles: [
123
+ {
124
+ name: 'Bilmetro AB',
125
+ customerid: '5560612789'
126
+ }
127
+ ]
128
+ };
129
+ }
130
+ componentWillLoad() {
131
+ var _a;
132
+ console.log('loginDialog', this.loginDialog);
133
+ console.log('this.loginManager', this.loginManager);
134
+ console.log('### this.loggedin', this.loggedin);
135
+ console.log('this.endpoint', this.endpoint);
136
+ if (!this.heading && ((_a = this.i18n) === null || _a === void 0 ? void 0 : _a.profileSelectionFlyoutHeading)) {
137
+ this.heading = this.i18n.profileSelectionFlyoutHeading;
138
+ }
139
+ this.init();
140
+ }
141
+ init() {
142
+ this.updateUserInfo();
143
+ this.adjustLoginLinks();
144
+ }
145
+ adjustLoginLinks() {
146
+ var _a, _b, _c, _d;
147
+ const adjustLink = (link, i) => {
148
+ link.isLogoutLink = (link.href.indexOf('logout') !== -1);
149
+ if (link.isLogoutLink) {
150
+ link.href = this.loginManager.getLogoutUrl(link.href.replace('logout', '').replace('http://window.location.href/?', '').replace('https://window.location.href/?', ''));
151
+ }
152
+ if (i === 0 && !link.href) {
153
+ link.href = this.loginManager.getLoginUrl();
154
+ link.linkType = 'primary';
155
+ }
156
+ if (link.primaryLinkApperance && !link.linkType) {
157
+ link.linkType = 'primary';
158
+ }
159
+ };
160
+ if ((_a = this.loginDialog) === null || _a === void 0 ? void 0 : _a.loggedInLinks) {
161
+ (_b = this.loginDialog) === null || _b === void 0 ? void 0 : _b.loggedInLinks.forEach(adjustLink);
162
+ }
163
+ this.logoutLink = (_d = (_c = this.loginDialog) === null || _c === void 0 ? void 0 : _c.loggedInLinks.filter(x => x.isLogoutLink)[0]) !== null && _d !== void 0 ? _d : null;
164
+ }
165
+ updateUserInfo() {
166
+ const userInfo = this.loginManager.getUserInfo();
167
+ this.user = userInfo;
168
+ console.log('this.user', this.user);
169
+ }
170
+ render() {
171
+ if (!this.loginDialog || !this.profileSelectorDialog) {
172
+ return;
173
+ }
174
+ let hostElementAttribute = {};
175
+ return (index.h(index.Host, Object.assign({}, hostElementAttribute), this.heading ? index.h("strong", { class: "pn-marketweb-siteheader-login-profileselection-heading" }, this.heading) : null, index.h("div", { class: "pn-marketweb-siteheader-login-profileselection-user" }, index.h("div", { class: "pn-marketweb-siteheader-login-profileselection-user-name" }, this.user.given_name), index.h("div", { class: "pn-marketweb-siteheader-login-profileselection-user-description" }, this.user.username)), index.h("div", { class: "pn-marketweb-siteheader-login-profileselection-currentprofile" }, index.h("div", { class: "pn-marketweb-siteheader-login-profileselection-currentprofile-name" }, this.profileSelectorDialog.currentProfile.name), index.h("div", { class: "pn-marketweb-siteheader-login-profileselection-currentprofile-description" }, this.profileSelectorDialog.currentProfile.customerid)), index.h("pn-marketweb-siteheader-login-linklist", { links: this.loginDialog.loggedInLinks.filter(x => x.isLogoutLink === false), loginManager: this.loginManager, idNamespace: this.idNamespace }), index.h("div", { class: "pn-marketweb-siteheader-login-profileselection-divider" }), this.profileSelectorDialog.profiles.map((profile) => {
176
+ return (index.h("div", { class: "pn-marketweb-siteheader-login-profileselection-profileoption" }, index.h("a", { href: `${this.endpoint}?selectprofile=${profile.customerid}}`, class: "pn-marketweb-siteheader-login-profileselection-profileoption-link" }, index.h("div", { class: "pn-marketweb-siteheader-login-profileselection-profileoption-content" }, index.h("div", { class: "pn-marketweb-siteheader-login-profileselection-profileoption-name" }, profile.name), index.h("div", { class: "pn-marketweb-siteheader-login-profileselection-profileoption-description" }, profile.customerid)), index.h("pn-icon", { symbol: "arrow-right", small: "false", color: "blue700" }))));
177
+ }), this.logoutLink ?
178
+ index.h("div", { class: "pn-marketweb-siteheader-login-profileselection-logout" }, index.h("a", { href: this.logoutLink.href, rel: "nofollower noopener", class: "pn-marketweb-siteheader-login-profileselection-logout-link" }, this.logoutLink.linkText))
179
+ : null));
180
+ }
181
+ get hostElement() { return index.getElement(this); }
182
+ };
183
+ PnMarketwebSiteheaderLoginProfileselection.style = pnMarketwebSiteheaderLoginProfileselectionCss;
184
+
185
+ exports.pn_marketweb_siteheader_login_links = PnMarketwebSiteheaderLoginLinks;
186
+ exports.pn_marketweb_siteheader_login_profileselection = PnMarketwebSiteheaderLoginProfileselection;
@@ -14,7 +14,8 @@ const translations = {
14
14
  "menuHomeButton": "Hem",
15
15
  "menuGoBackButton": "Gå tillbaka",
16
16
  "mainMenuButton": "Meny",
17
- "menuStartButton": "Start"
17
+ "menuStartButton": "Start",
18
+ "profileSelectionFlyoutHeading": "Inloggad som",
18
19
  },
19
20
  'en': {
20
21
  "searchlabel": "Search",
@@ -23,7 +24,8 @@ const translations = {
23
24
  "menuHomeButton": "Home",
24
25
  "menuGoBackButton": "Go back",
25
26
  "mainMenuButton": "Menu",
26
- "menuStartButton": "Start"
27
+ "menuStartButton": "Start",
28
+ "profileSelectionFlyoutHeading": "Logged in as",
27
29
  },
28
30
  'da': {
29
31
  "searchlabel": "Søg",
@@ -32,7 +34,8 @@ const translations = {
32
34
  "menuHomeButton": "Hjem",
33
35
  "menuGoBackButton": "Gå tilbage",
34
36
  "mainMenuButton": "Menu",
35
- "menuStartButton": "Start"
37
+ "menuStartButton": "Start",
38
+ "profileSelectionFlyoutHeading": "Logget ind som",
36
39
  },
37
40
  'no': {
38
41
  "searchlabel": "Søk",
@@ -41,7 +44,8 @@ const translations = {
41
44
  "menuHomeButton": "Hjem",
42
45
  "menuGoBackButton": "Gå tilbake",
43
46
  "mainMenuButton": "Meny",
44
- "menuStartButton": "Start"
47
+ "menuStartButton": "Start",
48
+ "profileSelectionFlyoutHeading": "Logget på som",
45
49
  },
46
50
  'fi': {
47
51
  "searchlabel": "Hae",
@@ -50,7 +54,18 @@ const translations = {
50
54
  "menuHomeButton": "Koti",
51
55
  "menuGoBackButton": "Mene takaisin",
52
56
  "mainMenuButton": "Valikko",
53
- "menuStartButton": "Alkaa"
57
+ "menuStartButton": "Alkaa",
58
+ "profileSelectionFlyoutHeading": "Kirjautunut sisään nimellä",
59
+ },
60
+ 'de': {
61
+ "searchlabel": "Suche",
62
+ "searchplaceholder": "Wonach suchen Sie?",
63
+ "searchbuttontext": "Suche",
64
+ "menuHomeButton": "Heim",
65
+ "menuGoBackButton": "Geh zurück",
66
+ "mainMenuButton": "Menü",
67
+ "menuStartButton": "Start",
68
+ "profileSelectionFlyoutHeading": "Eingeloggt als",
54
69
  }
55
70
  };
56
71
 
@@ -86,6 +101,8 @@ let PnMarketwebSiteheader = class {
86
101
  this.hideSearch = false;
87
102
  /** Hides the login if set to true*/
88
103
  this.hideLogin = false;
104
+ /** If this is selected we will show the new profile selection dropdown instead of the login version */
105
+ this.showProfileSelection = false;
89
106
  /** Autocomplete endpoint */
90
107
  this.AutocompleteEndpoint = "";
91
108
  /** Forward session to backend */
@@ -94,6 +111,7 @@ let PnMarketwebSiteheader = class {
94
111
  this.cache = false;
95
112
  /** Event based only language switch */
96
113
  this.spaMode = false;
114
+ this.i18n = { "searchlabel": "", "searchplaceholder": "", "searchbuttontext": "", "menuHomeButton": "", "menuGoBackButton": "", "mainMenuButton": "", "menuStartButton": "", "profileSelectionFlyoutHeading": "" };
97
115
  this.gotData = false;
98
116
  this.fetchingData = false;
99
117
  this.homePageLink = "/";
@@ -256,6 +274,7 @@ let PnMarketwebSiteheader = class {
256
274
  }
257
275
  onLoginStateChange(e) {
258
276
  var _a, _b, _c;
277
+ console.log('onLoginStateChange(e', e);
259
278
  if (((_a = e.detail) === null || _a === void 0 ? void 0 : _a.loggedIn) && ((_b = e.detail) === null || _b === void 0 ? void 0 : _b.token)) {
260
279
  this.loggedIn = ((_c = e.detail) === null || _c === void 0 ? void 0 : _c.loggedIn) === true;
261
280
  }
@@ -303,7 +322,7 @@ let PnMarketwebSiteheader = class {
303
322
  var _a, _b, _c, _d, _e, _f;
304
323
  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) &&
305
324
  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)) &&
306
- 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("slot", { name: "logo" }, 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.userToken, fullname: this.userFullname, loggedin: this.userLoggedin, loginDialog: this.loginDialog, endpoint: this.endpoint, i18n: this.i18n })), (this.gotData && this.languageOptions && this.languageOptions.length) && !this.hideLanguageSelector &&
325
+ 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("slot", { name: "logo" }, 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.userToken, fullname: this.userFullname, loggedin: this.userLoggedin, loginDialog: this.loginDialog, endpoint: this.endpoint, i18n: this.i18n, showProfileSelection: this.showProfileSelection })), (this.gotData && this.languageOptions && this.languageOptions.length) && !this.hideLanguageSelector &&
307
326
  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) => {
308
327
  document.body.setAttribute("data-siteheader-menuopen", (e.detail + ''));
309
328
  } }, index.h("pn-mainnav-level", null, index.h("pn-mainnav-list", null, this.menuItems.map((item) => {
@@ -315,7 +334,7 @@ let PnMarketwebSiteheader = class {
315
334
  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 }));
316
335
  })), (item.promotedMenuItems && item.promotedMenuItems.length > 0) &&
317
336
  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 })))))));
318
- })), 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, fullname: this.userFullname, loggedin: this.userLoggedin, i18n: this.i18n })), (this.gotData && this.languageOptions && this.languageOptions.length) && !this.hideLanguageSelector &&
337
+ })), 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, fullname: this.userFullname, loggedin: this.userLoggedin, i18n: this.i18n, showProfileSelection: this.showProfileSelection })), (this.gotData && this.languageOptions && this.languageOptions.length) && !this.hideLanguageSelector &&
319
338
  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 &&
320
339
  index.h("pn-site-selector", { language: this.language }, (this.gotData && ((_e = this.siteSelector) === null || _e === void 0 ? void 0 : _e.currentSiteTitle)) &&
321
340
  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", { language: this.language, search: this.search, "hide-search": this.hideSearch, i18n: this.i18n })))))), index.h("pn-marketweb-siteheader-search", { language: this.language, primary: true, search: this.search, "hide-search": this.hideSearch, "show-only-link": this.minimizeSearch, i18n: this.i18n })))));
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-e3e27c79.js');
6
6
  const data = require('./data-e77c1ada.js');
7
7
  const convert = require('./convert-362ef5e6.js');
8
- const pnFindPriceStore = require('./pn-find-price-store-a2728ff4.js');
8
+ const pnFindPriceStore = require('./pn-find-price-store-0b8c195c.js');
9
9
  require('./index-28bbc937.js');
10
10
 
11
11
  const translations = {
@@ -9,12 +9,12 @@ const pnProfileSelectorOptionCss = "pn-profile-selector-option{display:-ms-flexb
9
9
  let PnProfileSelectorOption = class {
10
10
  constructor(hostRef) {
11
11
  index.registerInstance(this, hostRef);
12
- this.title = "";
12
+ this.heading = "";
13
13
  this.description = "";
14
14
  this.url = "";
15
15
  }
16
16
  render() {
17
- return (index.h(index.Host, null, index.h("a", { class: "profileselectoroption", href: this.url }, index.h("span", { class: "profileselectoroption-text" }, index.h("span", { class: "profileselectoroption-title" }, this.title), index.h("span", { class: "profileselectoroption-description" }, this.description)), index.h("pn-icon", { symbol: "arrow-right", small: "false", color: "blue700" }))));
17
+ return (index.h(index.Host, null, index.h("a", { class: "profileselectoroption", href: this.url }, index.h("span", { class: "profileselectoroption-text" }, index.h("span", { class: "profileselectoroption-title" }, this.heading), index.h("span", { class: "profileselectoroption-description" }, this.description)), index.h("pn-icon", { symbol: "arrow-right", small: "false", color: "blue700" }))));
18
18
  }
19
19
  get hostElement() { return index.getElement(this); }
20
20
  };
@@ -7,8 +7,10 @@
7
7
  "./components/input/pn-marketweb-input/pn-marketweb-input.js",
8
8
  "./components/input/pn-marketweb-search/pn-marketweb-search.js",
9
9
  "./components/layout-components/pn-marketweb-sitefooter/pn-marketweb-sitefooter.js",
10
+ "./components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-linklist.js",
11
+ "./components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-links.js",
12
+ "./components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-profileselection.js",
10
13
  "./components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.js",
11
- "./components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-profileselection.js",
12
14
  "./components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-search.js",
13
15
  "./components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.js",
14
16
  "./components/minor/pn-titletag/pn-titletag.js",
@@ -0,0 +1,22 @@
1
+ pn-marketweb-siteheader-login-linklist {
2
+ padding: 1rem 0;
3
+ max-height: 5.2rem;
4
+ position: relative;
5
+ }
6
+ pn-marketweb-siteheader-login-linklist strong {
7
+ padding: 0.8rem 1.6rem;
8
+ display: flex;
9
+ align-items: center;
10
+ }
11
+ pn-marketweb-siteheader-login-linklist ul, pn-marketweb-siteheader-login-linklist li {
12
+ list-style: none;
13
+ margin: 0;
14
+ padding: 0;
15
+ }
16
+ pn-marketweb-siteheader-login-linklist li {
17
+ padding: 0.8rem 1.6rem;
18
+ }
19
+ pn-marketweb-siteheader-login-linklist li pn-button {
20
+ display: block;
21
+ width: 100%;
22
+ }
@@ -0,0 +1,149 @@
1
+ import { Component, Prop, h, Element, Host } from "@stencil/core";
2
+ export class PnMarketwebSiteheaderLoginLinklist {
3
+ constructor() {
4
+ this.heading = null;
5
+ this.links = [];
6
+ this.idNamespace = "";
7
+ this.loginManager = null;
8
+ }
9
+ componentWillLoad() {
10
+ }
11
+ uniqueId(text) {
12
+ return "loginlink-" + text.replace(/[^A-Za-z0-9.\\\/]/igm, "") + "-" + this.idNamespace;
13
+ }
14
+ linkAppearanceAttributes(link) {
15
+ let attributes = {};
16
+ if (link.linkType) {
17
+ switch (link.linkType) {
18
+ case 'primary':
19
+ attributes = {
20
+ appearance: '',
21
+ variant: ''
22
+ };
23
+ break;
24
+ case 'secondary':
25
+ attributes = {
26
+ appearance: 'light',
27
+ variant: 'outlined'
28
+ };
29
+ break;
30
+ case 'regularlink':
31
+ default:
32
+ attributes = {
33
+ appearance: 'light',
34
+ variant: 'borderless',
35
+ icon: 'arrow-right'
36
+ };
37
+ break;
38
+ }
39
+ return attributes;
40
+ }
41
+ if (!link.linkType) {
42
+ attributes = {
43
+ appearance: link.primaryLinkApperance ? "dark" : "light"
44
+ };
45
+ }
46
+ return attributes;
47
+ }
48
+ render() {
49
+ if (!this.links || this.links.length === 0) {
50
+ return;
51
+ }
52
+ return (h(Host, null,
53
+ this.heading ? h("strong", null, this.heading) : null,
54
+ h("ul", null, this.links.map((link) => {
55
+ return (h("li", null,
56
+ h("pn-button", Object.assign({ href: link.href, id: this.uniqueId(link.linkText) }, (link.openInNewWindow && { target: '_blank' }), this.linkAppearanceAttributes(link), { onClick: () => { if (link.isLogoutLink) {
57
+ this.loginManager.clearUserData();
58
+ } } }), link.linkText)));
59
+ }))));
60
+ }
61
+ static get is() { return "pn-marketweb-siteheader-login-linklist"; }
62
+ static get originalStyleUrls() { return {
63
+ "$": ["pn-marketweb-siteheader-login-linklist.scss"]
64
+ }; }
65
+ static get styleUrls() { return {
66
+ "$": ["pn-marketweb-siteheader-login-linklist.css"]
67
+ }; }
68
+ static get properties() { return {
69
+ "heading": {
70
+ "type": "string",
71
+ "mutable": false,
72
+ "complexType": {
73
+ "original": "string",
74
+ "resolved": "string",
75
+ "references": {}
76
+ },
77
+ "required": false,
78
+ "optional": false,
79
+ "docs": {
80
+ "tags": [],
81
+ "text": ""
82
+ },
83
+ "attribute": "heading",
84
+ "reflect": false,
85
+ "defaultValue": "null"
86
+ },
87
+ "links": {
88
+ "type": "unknown",
89
+ "mutable": false,
90
+ "complexType": {
91
+ "original": "LoginDialogLink[]",
92
+ "resolved": "LoginDialogLink[]",
93
+ "references": {
94
+ "LoginDialogLink": {
95
+ "location": "import",
96
+ "path": "./pn-marketweb-siteheader-types"
97
+ }
98
+ }
99
+ },
100
+ "required": false,
101
+ "optional": false,
102
+ "docs": {
103
+ "tags": [],
104
+ "text": ""
105
+ },
106
+ "defaultValue": "[]"
107
+ },
108
+ "idNamespace": {
109
+ "type": "string",
110
+ "mutable": false,
111
+ "complexType": {
112
+ "original": "string",
113
+ "resolved": "string",
114
+ "references": {}
115
+ },
116
+ "required": false,
117
+ "optional": false,
118
+ "docs": {
119
+ "tags": [],
120
+ "text": ""
121
+ },
122
+ "attribute": "id-namespace",
123
+ "reflect": false,
124
+ "defaultValue": "\"\""
125
+ },
126
+ "loginManager": {
127
+ "type": "unknown",
128
+ "mutable": false,
129
+ "complexType": {
130
+ "original": "MarketWebLoginManager",
131
+ "resolved": "MarketWebLoginManager",
132
+ "references": {
133
+ "MarketWebLoginManager": {
134
+ "location": "import",
135
+ "path": "../../../globals/MarketWebLoginManager"
136
+ }
137
+ }
138
+ },
139
+ "required": false,
140
+ "optional": false,
141
+ "docs": {
142
+ "tags": [],
143
+ "text": ""
144
+ },
145
+ "defaultValue": "null"
146
+ }
147
+ }; }
148
+ static get elementRef() { return "hostElement"; }
149
+ }