@dubai-design-system/components-js 3.11.5 → 3.11.7

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 (83) hide show
  1. package/dist/cjs/dda-breadcrumb.cjs.entry.js +8 -2
  2. package/dist/cjs/dda-breadcrumb.cjs.entry.js.map +1 -1
  3. package/dist/cjs/dda-header-menu_3.cjs.entry.js +3 -3
  4. package/dist/cjs/dda-header-menu_3.cjs.entry.js.map +1 -1
  5. package/dist/cjs/dda-header.cjs.entry.js +70 -13
  6. package/dist/cjs/dda-header.cjs.entry.js.map +1 -1
  7. package/dist/cjs/dda-sticky-footer.cjs.entry.js +4 -1
  8. package/dist/cjs/dda-sticky-footer.cjs.entry.js.map +1 -1
  9. package/dist/cjs/dda.cjs.js +1 -1
  10. package/dist/cjs/loader.cjs.js +1 -1
  11. package/dist/collection/components/dda-breadcrumb/dda-breadcrumb.js +46 -3
  12. package/dist/collection/components/dda-breadcrumb/dda-breadcrumb.js.map +1 -1
  13. package/dist/collection/components/dda-header/dda-header-main.css +157 -48
  14. package/dist/collection/components/dda-header/dda-header.js +140 -16
  15. package/dist/collection/components/dda-header/dda-header.js.map +1 -1
  16. package/dist/collection/components/dda-header-menu/dda-header-menu.css +7 -2
  17. package/dist/collection/components/dda-header-menu/dda-header-menu.js +23 -4
  18. package/dist/collection/components/dda-header-menu/dda-header-menu.js.map +1 -1
  19. package/dist/collection/components/dda-sticky-footer/dda-sticky-footer.js +4 -1
  20. package/dist/collection/components/dda-sticky-footer/dda-sticky-footer.js.map +1 -1
  21. package/dist/components/dda-breadcrumb.js +11 -4
  22. package/dist/components/dda-breadcrumb.js.map +1 -1
  23. package/dist/components/dda-header-menu.js +1 -1
  24. package/dist/components/dda-header.js +77 -15
  25. package/dist/components/dda-header.js.map +1 -1
  26. package/dist/components/dda-sticky-footer.js +4 -1
  27. package/dist/components/dda-sticky-footer.js.map +1 -1
  28. package/dist/components/{p-c30037a8.js → p-60cb6934.js} +5 -4
  29. package/dist/components/p-60cb6934.js.map +1 -0
  30. package/dist/dda/dda.esm.js +1 -1
  31. package/dist/dda/dda.esm.js.map +1 -1
  32. package/dist/dda/p-bd419f43.entry.js +2 -0
  33. package/dist/dda/p-bd419f43.entry.js.map +1 -0
  34. package/dist/dda/p-bdaee99c.entry.js +2 -0
  35. package/dist/dda/p-bdaee99c.entry.js.map +1 -0
  36. package/dist/dda/p-ce9b7aeb.entry.js +2 -0
  37. package/dist/dda/p-ce9b7aeb.entry.js.map +1 -0
  38. package/dist/dda/p-d7434fd9.entry.js +2 -0
  39. package/dist/dda/p-d7434fd9.entry.js.map +1 -0
  40. package/dist/esm/dda-breadcrumb.entry.js +9 -3
  41. package/dist/esm/dda-breadcrumb.entry.js.map +1 -1
  42. package/dist/esm/dda-header-menu_3.entry.js +3 -3
  43. package/dist/esm/dda-header-menu_3.entry.js.map +1 -1
  44. package/dist/esm/dda-header.entry.js +70 -13
  45. package/dist/esm/dda-header.entry.js.map +1 -1
  46. package/dist/esm/dda-sticky-footer.entry.js +4 -1
  47. package/dist/esm/dda-sticky-footer.entry.js.map +1 -1
  48. package/dist/esm/dda.js +1 -1
  49. package/dist/esm/loader.js +1 -1
  50. package/dist/types/components/dda-breadcrumb/dda-breadcrumb.d.ts +3 -0
  51. package/dist/types/components/dda-header/dda-header.d.ts +13 -2
  52. package/dist/types/components/dda-header-menu/dda-header-menu.d.ts +2 -0
  53. package/dist/types/components/dda-sticky-footer/dda-sticky-footer.d.ts +1 -0
  54. package/dist/types/components.d.ts +42 -6
  55. package/package.json +2 -2
  56. package/readme.md +13 -0
  57. package/www/build/dda.esm.js +1 -1
  58. package/www/build/dda.esm.js.map +1 -1
  59. package/www/build/p-bd419f43.entry.js +2 -0
  60. package/www/build/p-bd419f43.entry.js.map +1 -0
  61. package/www/build/p-bdaee99c.entry.js +2 -0
  62. package/www/build/p-bdaee99c.entry.js.map +1 -0
  63. package/www/build/p-ce9b7aeb.entry.js +2 -0
  64. package/www/build/p-ce9b7aeb.entry.js.map +1 -0
  65. package/www/build/p-d7434fd9.entry.js +2 -0
  66. package/www/build/p-d7434fd9.entry.js.map +1 -0
  67. package/dist/components/p-c30037a8.js.map +0 -1
  68. package/dist/dda/p-18828d30.entry.js +0 -2
  69. package/dist/dda/p-18828d30.entry.js.map +0 -1
  70. package/dist/dda/p-5a8cfeec.entry.js +0 -2
  71. package/dist/dda/p-5a8cfeec.entry.js.map +0 -1
  72. package/dist/dda/p-bb94fb97.entry.js +0 -2
  73. package/dist/dda/p-bb94fb97.entry.js.map +0 -1
  74. package/dist/dda/p-ecdd4ca1.entry.js +0 -2
  75. package/dist/dda/p-ecdd4ca1.entry.js.map +0 -1
  76. package/www/build/p-18828d30.entry.js +0 -2
  77. package/www/build/p-18828d30.entry.js.map +0 -1
  78. package/www/build/p-5a8cfeec.entry.js +0 -2
  79. package/www/build/p-5a8cfeec.entry.js.map +0 -1
  80. package/www/build/p-bb94fb97.entry.js +0 -2
  81. package/www/build/p-bb94fb97.entry.js.map +0 -1
  82. package/www/build/p-ecdd4ca1.entry.js +0 -2
  83. package/www/build/p-ecdd4ca1.entry.js.map +0 -1
@@ -15,10 +15,15 @@ export class DdaHeader {
15
15
  this.useNavigator = 'false';
16
16
  this.mobileMenuSearchId = 'mobileSearch';
17
17
  this.mobileMenuSearchUrl = 'javascript:void(0)';
18
- this.selected_contrast = "normal";
18
+ this.selected_contrast = 'normal';
19
19
  this.hideOtherMenu = false;
20
20
  this.parsedOtherMenuItems = [];
21
21
  this.parsedDropDownMenuItems = [];
22
+ this.showQuickLinksIcon = true;
23
+ this.useLoginPopup = false;
24
+ this.loginPopupLinks = [];
25
+ this.isDesktopLoginPopupOpen = false;
26
+ this.isMobileLoginPopupOpen = false;
22
27
  this.lastScrollTop = 0;
23
28
  this.toggleEscapeKey = (event) => {
24
29
  if (event.key === 'Escape') {
@@ -27,6 +32,8 @@ export class DdaHeader {
27
32
  this.isMobileAccessibiltyOpen = false;
28
33
  this.isSubMenuOpen = false;
29
34
  this.isSideSubMenuOpen = false;
35
+ this.isDesktopLoginPopupOpen = false;
36
+ this.isMobileLoginPopupOpen = false;
30
37
  }
31
38
  };
32
39
  this.handleOutsideClick = (event) => {
@@ -51,6 +58,17 @@ export class DdaHeader {
51
58
  }
52
59
  }
53
60
  };
61
+ this.handleOutsideLoginPopupClick = (event) => {
62
+ if (this.isDesktopLoginPopupOpen || this.isMobileLoginPopupOpen) {
63
+ const loginPopup = document.querySelector('.dda-login-popup');
64
+ const isClickInsideDesktopMenu = loginPopup && loginPopup.contains(event.target);
65
+ const isClickOnToggleButton = event.target.closest('.login-button');
66
+ if (!isClickInsideDesktopMenu && !isClickOnToggleButton) {
67
+ this.isDesktopLoginPopupOpen = false;
68
+ this.isMobileLoginPopupOpen = false;
69
+ }
70
+ }
71
+ };
54
72
  this.handleScroll = () => {
55
73
  const scrollTop = window.scrollY;
56
74
  const menuContainer = document.querySelector('.dda-menu-container');
@@ -73,6 +91,10 @@ export class DdaHeader {
73
91
  if (this.isAccessibiltyOpen) {
74
92
  this.isAccessibiltyOpen = false;
75
93
  }
94
+ if (this.isDesktopLoginPopupOpen || this.isMobileLoginPopupOpen) {
95
+ this.isDesktopLoginPopupOpen = false;
96
+ this.isMobileLoginPopupOpen = false;
97
+ }
76
98
  this.isMenuOpen = !this.isMenuOpen;
77
99
  if (this.isMenuOpen) {
78
100
  document.body.style.overflow = 'hidden';
@@ -103,31 +125,31 @@ export class DdaHeader {
103
125
  this.languageSwitch.emit();
104
126
  };
105
127
  this.smTexthandler = () => {
106
- this.selected_text_size = "small";
128
+ this.selected_text_size = 'small';
107
129
  this.smTextSize.emit();
108
130
  };
109
131
  this.baseTexthandler = () => {
110
- this.selected_text_size = "normal";
132
+ this.selected_text_size = 'normal';
111
133
  this.baseTextSize.emit();
112
134
  };
113
135
  this.lgTexthandler = () => {
114
- this.selected_text_size = "large";
136
+ this.selected_text_size = 'large';
115
137
  this.lgTextSize.emit();
116
138
  };
117
139
  this.normalContrasthandler = () => {
118
- this.selected_contrast = "normal";
140
+ this.selected_contrast = 'normal';
119
141
  this.normalContrast.emit();
120
142
  };
121
143
  this.blindContrasthandler = () => {
122
- this.selected_contrast = "colorblind";
144
+ this.selected_contrast = 'colorblind';
123
145
  this.blindContrast.emit();
124
146
  };
125
147
  this.redContrasthandler = () => {
126
- this.selected_contrast = "redweakness";
148
+ this.selected_contrast = 'redweakness';
127
149
  this.redContrast.emit();
128
150
  };
129
151
  this.greenContrasthandler = () => {
130
- this.selected_contrast = "greenweakness";
152
+ this.selected_contrast = 'greenweakness';
131
153
  this.greenContrast.emit();
132
154
  };
133
155
  this.accessibilitymenuhandler = () => {
@@ -140,7 +162,15 @@ export class DdaHeader {
140
162
  this.searchfunctionality.emit(searchval);
141
163
  };
142
164
  this.toggleLogin = () => {
143
- this.loginClick.emit();
165
+ if (this.useLoginPopup == true) {
166
+ this.loginClick.emit();
167
+ if (window.innerWidth >= 768) {
168
+ this.isDesktopLoginPopupOpen = !this.isDesktopLoginPopupOpen;
169
+ }
170
+ else {
171
+ this.isMobileLoginPopupOpen = !this.isMobileLoginPopupOpen;
172
+ }
173
+ }
144
174
  };
145
175
  this.renderSubMenu = (subMenu, parentLi) => {
146
176
  if (!subMenu || subMenu.length === 0)
@@ -152,6 +182,16 @@ export class DdaHeader {
152
182
  } }, item.label), this.renderSubMenu(item.subMenu, currentIndex)));
153
183
  }))));
154
184
  };
185
+ this.renderLoginPopup = () => {
186
+ return (h("ul", null, this.parsedLoginPopupItems.map((item, index) => {
187
+ return (h("li", { key: `top-${index}` }, h("a", { href: this.useNavigator == 'true' ? 'javascript:void(0)' : item.url, class: "", onClick: () => {
188
+ if (this.useNavigator == 'true') {
189
+ this.navigatorClick.emit(item.url);
190
+ }
191
+ this.isDesktopLoginPopupOpen = false;
192
+ } }, item.popupItemLabel)));
193
+ })));
194
+ };
155
195
  }
156
196
  componentWillLoad() {
157
197
  this.parseOtherMenuItems(this.otherMenuItems);
@@ -177,6 +217,17 @@ export class DdaHeader {
177
217
  this.parsedDropDownMenuItems = [];
178
218
  }
179
219
  }
220
+ get parsedLoginPopupItems() {
221
+ if (typeof this.loginPopupLinks === 'string') {
222
+ try {
223
+ return JSON.parse(this.loginPopupLinks);
224
+ }
225
+ catch (_a) {
226
+ console.warn('Invalid JSON in loginPopupLinks');
227
+ return [];
228
+ }
229
+ }
230
+ }
180
231
  toggleSidebarSubMenu(index) {
181
232
  if (index === '') {
182
233
  this.openMenus = {};
@@ -207,11 +258,13 @@ export class DdaHeader {
207
258
  document.addEventListener('click', this.handleOutsideClick);
208
259
  document.addEventListener('keydown', this.toggleEscapeKey);
209
260
  document.addEventListener('click', this.handleOutsideAccessibilityClick);
261
+ document.addEventListener('click', this.handleOutsideLoginPopupClick);
210
262
  }
211
263
  disconnectedCallback() {
212
264
  window.removeEventListener('scroll', this.handleScroll);
213
265
  document.removeEventListener('click', this.handleOutsideClick);
214
266
  document.removeEventListener('click', this.handleOutsideAccessibilityClick);
267
+ document.removeEventListener('click', this.handleOutsideLoginPopupClick);
215
268
  }
216
269
  parseJsonArray(jsonString) {
217
270
  try {
@@ -253,7 +306,7 @@ export class DdaHeader {
253
306
  }
254
307
  render() {
255
308
  const sideMenuItems = this.parseJsonArray(this.sideMenuItems);
256
- return (h("header", { key: '5b3a3813776b22c58ad7e4a2aefad2b39b761a3a', class: 'dda-header' }, h("div", { key: '971e102a55c77ec014c622e30b39e8f6fa95c370', class: "dda-head-logo" }, h("a", { key: '6757fa31aae9e45f318697b69d28b546da11159c', href: this.useNavigator == 'true' ? 'javascript:void(0)' : this.firstLogoHref, onClick: () => (this.useNavigator == 'true' ? this.navigatorClick.emit(this.firstLogoHref) : ''), class: "govt-logo" }, h("img", { key: 'a5c8833849236777cfa78bdb44a15888d81ebe6b', class: "logo-white", src: this.firstLogoWhiteSrc, alt: `${this.firstLogoAlt} White` }), h("img", { key: '21fa8096c11780cbec19f19d1f63f9d4a13a0318', class: "logo-colored", src: this.firstLogoSrc, alt: this.firstLogoAlt })), h("a", { key: '1ac6a9058edbb62416b86dca33608ef8996e58b1', href: this.useNavigator == 'true' ? 'javascript:void(0)' : this.secondLogoHref, onClick: () => (this.useNavigator == 'true' ? this.navigatorClick.emit(this.secondLogoHref) : ''), class: "entt-logo" }, h("img", { key: 'e05bdf61cf1f17af4626fa83ad1b6028c7c81a59', class: "logo-white", src: this.secondLogoWhiteSrc, alt: `${this.secondLogoAlt} White` }), h("img", { key: '3910bceaa2c18c9b282a3e3f7c60faf869d47fae', class: "logo-colored", src: this.secondLogoSrc, alt: this.secondLogoAlt }))), h("div", { key: '461e1fd23356c18774be40ea282459b42f2691d3', class: "dda-menu-container" }, h("div", { key: '345eda9d0b3a68dfee74aeafa3f22f14bcc3f634', class: "dda-main-navigation" }, h("div", { key: '3bd8dffbda85e83640e8f2c96bf486142dfdff4f', class: `dda-menu-overley ${this.isMenuOpen ? 'show-overley' : ''}`, onClick: this.toggleMenu }), h("div", { key: '9bc8b4eca9dd792d7fb38c6b28c9ccca71819509', class: "hamburger-menu", onClick: this.toggleMenu }, h("dda-tooltip", { key: 'aecac2047e399458ed27721e453958379da37729', title_text: this.hamburger_menu_button_name, position: "top", class: "dda-d-block" }, h("button", { key: '1c99b38cfe929568d1a8c59a198afb36a5fc03a8', type: "button", class: "hamburger-menu-btn", name: this.hamburger_menu_button_name }, h("span", { key: '73a7fa9fca06df34eb1097bab60c90e0a8266812', class: "hamburger-line" }), h("span", { key: '2884ca405ab7168c6740b051284cdefd1c6b89aa', class: "hamburger-menu-text" }, this.hamburger_menu_button_name)))), h("div", { key: 'b1d1982a8efa8e647011e4cc3c61f4b44a34eaff', class: "dda-sidemenu", style: { display: this.isMenuOpen ? 'block' : '', insetInlineStart: this.isMenuOpen ? '0px' : '' } }, h("div", { key: '54e31cecc2fb10b0eccf43f953954bc5b3dbcc3b', class: "dda-sidemenu-content" }, h("h6", { key: 'd3afb136281500a34d90816f17e6d2283ff255b1', class: "dda-side-nav-title" }, this.sideMainMenuTitle), h("ul", { key: '9e699de177dd5c3dfdb1fe3b6000fc1bb648d73d', class: "main_side_menu" }, sideMenuItems.map((menu, index) => {
309
+ return (h("header", { key: '1fca1fcbbe53b183bebbea63511d49941bcc1829', class: 'dda-header' }, h("div", { key: 'c8e021f105e9ea33f10a2cb8c645eeb206948249', class: "dda-head-logo" }, h("a", { key: '675d6670b3d825a31e8272127d81f8d780b602eb', href: this.useNavigator == 'true' ? 'javascript:void(0)' : this.firstLogoHref, onClick: () => (this.useNavigator == 'true' ? this.navigatorClick.emit(this.firstLogoHref) : ''), class: "govt-logo" }, h("img", { key: '2e544626f004f3c293fa292c38914df101e81c56', class: "logo-white", src: this.firstLogoWhiteSrc, alt: `${this.firstLogoAlt} White` }), h("img", { key: 'af78a622ee93523d802bfe7f94f39de02c39376b', class: "logo-colored", src: this.firstLogoSrc, alt: this.firstLogoAlt })), h("a", { key: '5d0b97e7cee5d2522a4fee0efeb688eae8ce1bf1', href: this.useNavigator == 'true' ? 'javascript:void(0)' : this.secondLogoHref, onClick: () => (this.useNavigator == 'true' ? this.navigatorClick.emit(this.secondLogoHref) : ''), class: "entt-logo" }, h("img", { key: '5413b41729179c539ceb8d3248071749fe35e042', class: "logo-white", src: this.secondLogoWhiteSrc, alt: `${this.secondLogoAlt} White` }), h("img", { key: 'f42309e1fbef68101c5cc432e3f1b10c872d5bd5', class: "logo-colored", src: this.secondLogoSrc, alt: this.secondLogoAlt }))), h("div", { key: 'afbbfdeb22b496a7d3cf59d17a0d63af450eee18', class: "dda-menu-container" }, h("div", { key: '6537bf009c9c0725c32045f9fde94264d8e717c4', class: "dda-main-navigation" }, h("div", { key: '796dccf7561faefd40e09c69c8a2478d707785a8', class: `dda-menu-overley ${this.isMenuOpen ? 'show-overley' : ''}`, onClick: this.toggleMenu }), h("div", { key: '7762dc1eb2408f2a274844efd842d1e606bd8909', class: "hamburger-menu", onClick: this.toggleMenu }, h("dda-tooltip", { key: '8c31ad87a163f8a0e351a38177beec91e1e4a9e6', title_text: this.hamburger_menu_button_name, position: "top", class: "dda-d-block" }, h("button", { key: '2aa59266e75a589e24cd43b512b57fb8555b4727', type: "button", class: "hamburger-menu-btn", name: this.hamburger_menu_button_name }, h("span", { key: '6c1598b94a5a014ed0db314f39b493600f241c90', class: "hamburger-line" }), h("span", { key: 'f205824bd55fb989743406749e26c32f4f366487', class: "hamburger-menu-text" }, this.hamburger_menu_button_name)))), h("div", { key: 'f7221895b85857c9dac1e2054dc86bf32c5f11d8', class: "dda-sidemenu", style: { display: this.isMenuOpen ? 'block' : '', insetInlineStart: this.isMenuOpen ? '0px' : '' } }, h("div", { key: 'bfe5ac8cf062cb8a80a25a04accf8142d33a5020', class: "dda-sidemenu-content" }, h("h6", { key: 'eef284c7f6e579ebade512b18ce1fd57b18814c7', class: "dda-side-nav-title" }, this.sideMainMenuTitle), h("ul", { key: 'f276f046cf8c057f9c3e11e72ba31c96a0be7879', class: "main_side_menu" }, sideMenuItems.map((menu, index) => {
257
310
  const currentIndex = `menu-${index}`;
258
311
  return (h("li", { key: currentIndex, id: `header_${menu.label}` }, h("a", {
259
312
  // href={menu.href}
@@ -282,13 +335,17 @@ export class DdaHeader {
282
335
  }
283
336
  }
284
337
  }, menu.label), this.renderSubMenu(menu.subMenu, currentIndex)));
285
- })), this.hideOtherMenu == false && h("h6", { key: 'e8a089963257075dcb92ac460d8c01109115035b', class: "dda-side-nav-title" }, this.sideOtherMenuTitle), !this.hideOtherMenu && (h("ul", { key: '6c1146ecd2ec22c528ccc950655d0ff68f6d8d9c', class: "main_side_menu" }, this.parsedOtherMenuItems.map((itemlist, index) => (h("li", { key: `other-${index}` }, h("a", { href: this.useNavigator == 'true' ? 'javascript:void(0)' : itemlist.href, onClick: () => (this.useNavigator == 'true' ? this.navigatorClick.emit(itemlist.href) : '') }, itemlist.label))))))), h("div", { key: '22eee46a71a8b1949745f312bdc2cff5002abe38', class: "dda-sidemenu-bottom" }, h("div", { key: '732447c0c6e07ee78afb06e80757721f5dc11e5b', class: "dda-sidemenu-gov-logo" }, h("a", { key: '9370ac9680b5091a886682ae63da1065247b3bbd', href: this.useNavigator == 'true' ? 'javascript:void(0)' : this.firstLogoHref, onClick: () => (this.useNavigator == 'true' ? this.navigatorClick.emit(this.firstLogoHref) : ''), class: "govt-logo dda-mb-2" }, h("img", { key: '4ddc8180372e059717c92c09729c9a97e9de5fa5', class: "", src: this.firstLogoSrc, alt: this.firstLogoAlt }))), h("div", { key: 'd5914d8167adc1d63e1cafdcc2339e8afcc6bee3', class: "dda-toolbar-menu-sidemenu" }, h("ul", { key: 'e7edddffc2b0b97bfab95bf25f20356fca6f362b' }, this.accessibility_button_id && (h("li", { key: 'a89c92d5c17031a591d7ea103b7a6af68d85aa55' }, h("button", { key: 'b31628dcbc66c74aee46890b2d4b74133b9db91d', name: this.toggle_accessibility_button_name, class: "tool-btn accessibility-btn", type: "button", onClick: this.toggleMobileAccessibilty, id: this.accessibility_button_id }, h("i", { key: 'f9822507c8ef644ec69387b9934f25aa24c2b569', class: this.accessibility_button_icon_family }, this.accessibility_button_icon_name), h("span", { key: '311ef8ff33c0f7a2fad5074d688f450090036626', class: "visually-hidden" }, this.accessibility_button_text)))), this.language_text && (h("li", { key: '2b51194553515bd3f27f027e7702a33dfe423c47' }, h("button", { key: 'b151d47feaf27abcc8b88781641205d50b12b6f7', name: this.language_button_name, class: "tool-btn", type: "button", onClick: this.languagehandler }, this.language_text))), this.loginText && (h("li", { key: 'c6631083330da8be5dabdb1637c7f92e17c578dc' }, h("dda-link-button", { key: 'f5f233738ce7408c9387d90dc0af5d7064037b72', button_color: "onsurface-secondary", start_icon: this.loginIcon, custom_class: "tool-btn", link_button_text: this.loginText, onClick: this.toggleLogin, href: this.loginLink, button_shape: "circle", size: "sm" })))))), h("button", { key: '5fd9ea00c8d6684225eb8dbca2c6b5bf211d1bf1', type: "button", name: this.close_menu_button_name, class: "close-btn side-nav-close-btn", "aria-label": "Close Sidebar", onClick: this.toggleMenu }, h("i", { key: 'b5be5b1bd68cea8f629069055cc256a043caf541', class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, "close")), this.usePredesignedAccessibilityMenu ? (h("div", { class: "dda-accessibility hide-accessibility mobile-accessibility", style: { display: this.isMobileAccessibiltyOpen ? 'block' : 'none' } }, h("div", { class: "mobile-accessibility-content" }, h("div", { class: "dda-row" }, h("div", { class: "dda-col-md-4 dda-accessibility-item" }, h("h6", { class: "h6 Regular dda-mb-1" }, this.contrast_title), h("form", null, h("fieldset", { class: "dda-theme-list" }, h("legend", null, h("p", { class: "body Regular dda-mb-3" }, this.contrast_description)), this.contrast_noraml_text ? (h("dda-radiobutton", { title_text: this.contrast_noraml_text, checked: this.selected_contrast == "normal", size: "default", variants: "normal", supporting: "", error_message: "", validation_id: "NormalThemeMobile", group_name: "themeselectionMobile", input_id: "NormalThemeMobile", custom_class: "", component_mode: "", aria_label: "radio-button", validation_type: "normal", onChange: this.normalContrasthandler, class: "hydrated" })) : null, this.contrast_color_blind_text ? (h("dda-radiobutton", { title_text: this.contrast_color_blind_text, checked: this.selected_contrast == "colorblind", size: "default", variants: "normal", supporting: "", error_message: "", validation_id: "ColoursBlindMobile", group_name: "themeselectionMobile", input_id: "ColoursBlindMobile", custom_class: "", component_mode: "", aria_label: "radio-button", validation_type: "normal", onChange: this.blindContrasthandler, class: "hydrated" })) : null, this.contrast_red_weakness_text ? (h("dda-radiobutton", { title_text: this.contrast_red_weakness_text, checked: this.selected_contrast == "redweakness", size: "default", variants: "normal", supporting: "", error_message: "", validation_id: "RedWeaknessMobile", group_name: "themeselectionMobile", input_id: "RedWeaknessMobile", custom_class: "", component_mode: "", aria_label: "radio-button", validation_type: "normal", onChange: this.redContrasthandler, class: "hydrated" })) : null, this.contrast_green_weakness_text ? (h("dda-radiobutton", { title_text: this.contrast_green_weakness_text, checked: this.selected_contrast == "greenweakness", size: "default", variants: "normal", supporting: "", error_message: "", validation_id: "GreenWeaknessMobile", group_name: "themeselectionMobile", input_id: "GreenWeaknessMobile", custom_class: "", component_mode: "", aria_label: "radio-button", validation_type: "normal", onChange: this.greenContrasthandler, class: "hydrated" })) : null))), h("div", { class: "dda-col-md-4 dda-accessibility-item" }, h("h6", { class: "h6 Regular dda-mb-1" }, this.screen_reader_title), h("p", { class: "body Regular dda-mb-3" }, this.screen_reader_description), h("div", { class: "rs_skip rsbtn rs_preserve rs_mobile", id: "readspeaker_button1" }, h("a", { rel: "nofollow", href: this.read_speaker_link, role: "button", class: "rsbtn_play circle readspeaker", accessKey: "L", "aria-label": "Listen to this page using ReadSpeaker", "data-rsshortcut": "play", "aria-haspopup": "menu", "data-rs-lang": "en_uk" }, h("i", { class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, "volume_up")))), h("div", { class: "dda-col-md-4 dda-accessibility-item" }, h("h6", { class: "h6 Regular dda-mb-1" }, this.text_size_title), h("p", { class: "body Regular dda-mb-3" }, this.text_size_description), h("div", { class: "dda-d-flex dda-gap-4" }, h("dda-button", { button_color: this.selected_text_size == "normal" ? "default-primary" : "default-secondary", button_text: "A", icon_button_shape: "circle", custom_class: "", size: "lg", onClick: this.baseTexthandler }), h("dda-button", { button_color: this.selected_text_size == "large" ? "default-primary" : "default-secondary", button_text: "A+", icon_button_shape: "circle", custom_class: "", size: "lg", onClick: this.lgTexthandler }), h("dda-button", { button_color: this.selected_text_size == "small" ? "default-primary" : "default-secondary", button_text: "A-", icon_button_shape: "circle", custom_class: "", size: "lg", onClick: this.smTexthandler }))))), h("button", { type: "button", name: this.close_accessibility_button_name, class: "close-btn close_accessibility", "aria-label": "Close Accessibility", onClick: this.toggleMobileAccessibilty }, h("i", { class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, "close")))) : null), this.quickLinks && (h("dda-header-menu", { key: 'fdbcfe6ab93ebff747cf38c75b58c321355b9c53', "use-navigator": this.useNavigator, "navigator-click": this.navigatorClick, "quick-links": typeof this.quickLinks === 'string' ? this.quickLinks : JSON.stringify(this.quickLinks) }))), h("div", { key: '465f1028ecdde4f35fef3ceed0940c6945a7ffc6', class: "dda-mobile-entt-logo" }, h("a", { key: 'fe1467675d5bbc3f8c34dd56de2e5706c7dd49c3', href: this.useNavigator == 'true' ? 'javascript:void(0)' : this.secondLogoHref, onClick: () => (this.useNavigator == 'true' ? this.navigatorClick.emit(this.secondLogoHref) : ''), class: "entt-logo" }, h("img", { key: '61599183bdf54c1276b2b2773a4f56098f075c54', class: "logo-colored", src: this.secondLogoSrc, alt: this.secondLogoAlt }), h("img", { key: '4283106fa7ea1946369bffab4991ce2509eea277', class: "logo-white", src: this.secondLogoWhiteSrc, alt: this.secondLogoAlt }))), h("div", { key: 'da2f3a3f8804664266a30e85b53a09eb0dcaea27', class: "dda-mobile-search" }, this.mobileMenuSearchId && (h("a", { key: '84a3d68be0af96516eaa4a8eaf49200296907326', href: this.useNavigator == 'true' ? 'javascript:void(0)' : this.mobileMenuSearchUrl, onClick: () => (this.useNavigator == 'true' ? this.navigatorClick.emit(this.mobileMenuSearchUrl) : ''), class: "tool-btn", id: this.mobileMenuSearchId }, h("span", { key: 'd18824918b0f3f2519b906aeefc5432bab6fc3a3', class: "visualy-hidden" }, this.searchText || 'Search'), h("i", { key: 'e946965ceb576074acd2a5cfda084fb5fd136684', class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, "search")))), h("div", { key: '128845fd6b5b23b536c6d82badff6d6eb30c2940', class: "dda-toolbar-menu" }, h("ul", { key: '505b5230f451c2985485d3c2c36d4afe5eda85e8' }, this.search_input_name && (h("li", { key: 'a3a2b1ec44f00a78ccc136d869c99ade2618f3af' }, h("dda-tooltip", { key: '3892729103daadc7d8374748f919a0e3412dd204', title_text: this.search_tooltip || 'Search', description: "", position: "top" }, h("div", { key: '8ddcf9225a880f595b1b235bab2fc407398efb6a', class: "dda-search dda-header-search" }, h("label", { key: 'aace4820df1ab0d1289ba85bb6e269bd5b066513', id: "ddaSearch-label", class: "visualy-hidden", "aria-hidden": "true" }, this.searchText || 'Search'), h("i", { key: '90c3085af23a8984aa6dac13f07936e34b56bb29', class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, "search"), h("dda-input", { key: 'aa3ad19ddce4a1248155fd1a7aaab1b10a9cdecb', placeholder: this.search_input_placeholder || 'Search', type: "text", input_id: "ddaSearch", value: this.search_value, input_name: this.search_input_name, aria_label: "input", input_role: "search", error_message: "Error text", validation_type: "normal", validation_id: "validationId", input_status: "normal", size: "default", custom_class: "dda-header-search-input tool-btn", component_mode: "",
338
+ })), this.hideOtherMenu == false && h("h6", { key: 'b1e3eb7d957d7e5059ca53f75c1e1322c87c7af2', class: "dda-side-nav-title" }, this.sideOtherMenuTitle), !this.hideOtherMenu && (h("ul", { key: 'ae51db104eabf9f87e7a0fbf58ed9d385e2576cd', class: "main_side_menu" }, this.parsedOtherMenuItems.map((itemlist, index) => (h("li", { key: `other-${index}` }, h("a", { href: this.useNavigator == 'true' ? 'javascript:void(0)' : itemlist.href, onClick: () => (this.useNavigator == 'true' ? this.navigatorClick.emit(itemlist.href) : '') }, itemlist.label))))))), h("div", { key: 'bbb5da52a89b1c71658e1cf444ce5b7df1b396eb', class: "dda-sidemenu-bottom" }, h("div", { key: 'a2860706eb59902599242ae899032dd3e457afe8', class: "dda-sidemenu-gov-logo" }, h("a", { key: 'f26cb6e1445af7cb7b39919e3c70237ea7afc834', href: this.useNavigator == 'true' ? 'javascript:void(0)' : this.firstLogoHref, onClick: () => (this.useNavigator == 'true' ? this.navigatorClick.emit(this.firstLogoHref) : ''), class: "govt-logo dda-mb-2" }, h("img", { key: '8cba96b1a2db8224f84437187f87e87732258a27', class: "", src: this.firstLogoSrc, alt: this.firstLogoAlt }))), h("div", { key: 'cae57e2e2bfa1a7f2702b4fd9bc4f28a61c8f4eb', class: "dda-toolbar-menu-sidemenu" }, h("ul", { key: 'c3b8cc3dce4dab1df1db0a340f2e1f030e4d15c2' }, this.accessibility_button_id && (h("li", { key: '94f3f17f55aaf53ff71b4ae90e57d45bf2739c2e' }, h("button", { key: '01f1d2214f704c18d488c0aa38ad816f056266ac', name: this.toggle_accessibility_button_name, class: "tool-btn accessibility-btn", type: "button", onClick: this.toggleMobileAccessibilty, id: this.accessibility_button_id }, h("i", { key: '4007025d708498a646074b2f31b2664c95e31def', class: this.accessibility_button_icon_family }, this.accessibility_button_icon_name), h("span", { key: 'bee544b1736e6d9363d4ace94f55a886e6dacdc2', class: "visually-hidden" }, this.accessibility_button_text)))), this.language_text && (h("li", { key: '05161959e65d6d4601100941928ccc53805117d6' }, h("button", { key: '410ef2c2eb38590d855db462256c4a761f27da37', name: this.language_button_name, class: "tool-btn", type: "button", onClick: this.languagehandler }, this.language_text))), this.loginText && (h("li", { key: '2e3dd997a2350bdc73cb9a9edf86a41bb5af963e' }, h("dda-link-button", { key: 'c8737e5925a49c403ef30b8bbd7cb72279f3bce2', button_color: "onsurface-secondary", start_icon: this.loginIcon, custom_class: "tool-btn login-button", link_button_text: this.loginText, onClick: this.toggleLogin,
339
+ // href={this.loginLink}
340
+ href: this.useLoginPopup ? 'javascript:void(0)' : this.loginLink, button_shape: "circle", size: "sm" })))))), h("button", { key: 'fbaef5b1cbfa692e5416fac68bd552966e1ba62b', type: "button", name: this.close_menu_button_name, class: "close-btn side-nav-close-btn", "aria-label": "Close Sidebar", onClick: this.toggleMenu }, h("i", { key: '05391aa8f089d03a0fcadc03baa8c03861210335', class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, "close")), this.usePredesignedAccessibilityMenu ? (h("div", { class: "dda-accessibility hide-accessibility mobile-accessibility", style: { display: this.isMobileAccessibiltyOpen ? 'block' : 'none' } }, h("div", { class: "mobile-accessibility-content" }, h("div", { class: "dda-row" }, h("div", { class: "dda-col-md-4 dda-accessibility-item" }, h("h6", { class: "h6 Regular dda-mb-1" }, this.contrast_title), h("form", null, h("fieldset", { class: "dda-theme-list" }, h("legend", null, h("p", { class: "body Regular dda-mb-3" }, this.contrast_description)), this.contrast_noraml_text ? (h("dda-radiobutton", { title_text: this.contrast_noraml_text, checked: this.selected_contrast == 'normal', size: "default", variants: "normal", supporting: "", error_message: "", validation_id: "NormalThemeMobile", group_name: "themeselectionMobile", input_id: "NormalThemeMobile", custom_class: "", component_mode: "", aria_label: "radio-button", validation_type: "normal", onChange: this.normalContrasthandler, class: "hydrated" })) : null, this.contrast_color_blind_text ? (h("dda-radiobutton", { title_text: this.contrast_color_blind_text, checked: this.selected_contrast == 'colorblind', size: "default", variants: "normal", supporting: "", error_message: "", validation_id: "ColoursBlindMobile", group_name: "themeselectionMobile", input_id: "ColoursBlindMobile", custom_class: "", component_mode: "", aria_label: "radio-button", validation_type: "normal", onChange: this.blindContrasthandler, class: "hydrated" })) : null, this.contrast_red_weakness_text ? (h("dda-radiobutton", { title_text: this.contrast_red_weakness_text, checked: this.selected_contrast == 'redweakness', size: "default", variants: "normal", supporting: "", error_message: "", validation_id: "RedWeaknessMobile", group_name: "themeselectionMobile", input_id: "RedWeaknessMobile", custom_class: "", component_mode: "", aria_label: "radio-button", validation_type: "normal", onChange: this.redContrasthandler, class: "hydrated" })) : null, this.contrast_green_weakness_text ? (h("dda-radiobutton", { title_text: this.contrast_green_weakness_text, checked: this.selected_contrast == 'greenweakness', size: "default", variants: "normal", supporting: "", error_message: "", validation_id: "GreenWeaknessMobile", group_name: "themeselectionMobile", input_id: "GreenWeaknessMobile", custom_class: "", component_mode: "", aria_label: "radio-button", validation_type: "normal", onChange: this.greenContrasthandler, class: "hydrated" })) : null))), h("div", { class: "dda-col-md-4 dda-accessibility-item" }, h("h6", { class: "h6 Regular dda-mb-1" }, this.screen_reader_title), h("p", { class: "body Regular dda-mb-3" }, this.screen_reader_description), h("div", { class: "rs_skip rsbtn rs_preserve rs_mobile", id: "readspeaker_button1" }, h("a", { rel: "nofollow", href: this.read_speaker_link, role: "button", class: "rsbtn_play circle readspeaker", accessKey: "L", "aria-label": "Listen to this page using ReadSpeaker", "data-rsshortcut": "play", "aria-haspopup": "menu", "data-rs-lang": "en_uk" }, h("i", { class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, "volume_up")))), h("div", { class: "dda-col-md-4 dda-accessibility-item" }, h("h6", { class: "h6 Regular dda-mb-1" }, this.text_size_title), h("p", { class: "body Regular dda-mb-3" }, this.text_size_description), h("div", { class: "dda-d-flex dda-gap-4" }, h("dda-button", { button_color: this.selected_text_size == 'normal' ? 'default-primary' : 'default-secondary', button_text: "A", icon_button_shape: "circle", custom_class: "", size: "lg", onClick: this.baseTexthandler }), h("dda-button", { button_color: this.selected_text_size == 'large' ? 'default-primary' : 'default-secondary', button_text: "A+", icon_button_shape: "circle", custom_class: "", size: "lg", onClick: this.lgTexthandler }), h("dda-button", { button_color: this.selected_text_size == 'small' ? 'default-primary' : 'default-secondary', button_text: "A-", icon_button_shape: "circle", custom_class: "", size: "lg", onClick: this.smTexthandler }))))), h("button", { type: "button", name: this.close_accessibility_button_name, class: "close-btn close_accessibility", "aria-label": "Close Accessibility", onClick: this.toggleMobileAccessibilty }, h("i", { class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, "close")))) : null), this.quickLinks && (h("dda-header-menu", { key: '7ab3529adb6e2650e7367dd56832c830d0931c75', "use-navigator": this.useNavigator, "navigator-click": this.navigatorClick, "show-Quick-Links-Icon": this.showQuickLinksIcon, "quick-links": typeof this.quickLinks === 'string' ? this.quickLinks : JSON.stringify(this.quickLinks) }))), h("div", { key: 'c25b82b57acc40c07d3bbed1467788aa27dbe601', class: "dda-mobile-entt-logo" }, h("a", { key: '47920b93875d655c58af890416b02c78210e93ea', href: this.useNavigator == 'true' ? 'javascript:void(0)' : this.secondLogoHref, onClick: () => (this.useNavigator == 'true' ? this.navigatorClick.emit(this.secondLogoHref) : ''), class: "entt-logo" }, h("img", { key: '13dc2f84ee16b5e6d72d595d0c175070947ca66d', class: "logo-colored", src: this.secondLogoSrc, alt: this.secondLogoAlt }), h("img", { key: '14e1ae754cbccf6c9a3c76e95e9e23bab3d202ee', class: "logo-white", src: this.secondLogoWhiteSrc, alt: this.secondLogoAlt }))), h("div", { key: '2ebd495fe949acc922b1d11fae71f597744b9567', class: "dda-mobile-search" }, this.mobileMenuSearchId && (h("a", { key: 'b56a53c30a7b8613b5dba1da39988ded608c062f', href: this.useNavigator == 'true' ? 'javascript:void(0)' : this.mobileMenuSearchUrl, onClick: () => (this.useNavigator == 'true' ? this.navigatorClick.emit(this.mobileMenuSearchUrl) : ''), class: "tool-btn", id: this.mobileMenuSearchId }, h("span", { key: '0f042fecd9d542fa6e7721dc63334e3fa3f2a70e', class: "visualy-hidden" }, this.searchText || 'Search'), h("i", { key: '21f7e78418f8646bda60d435c8652f06ef87c631', class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, "search")))), h("div", { key: 'aabf69c92f17b5ca0231939eea2835f8ab1541aa', class: "dda-toolbar-menu" }, h("ul", { key: '7c33281968a402d2b1812f9f87c81f195950686e' }, this.search_input_name && (h("li", { key: '7b7b4b3b32a6c03555f375210be0113b4dae44a4' }, h("dda-tooltip", { key: 'b1617941beed195042e7f234246aa5ca82f4228c', title_text: this.search_tooltip || 'Search', description: "", position: "top" }, h("div", { key: 'f64dc3c8c6fcf1dcf17dcd8913d845a1b222ed33', class: "dda-search dda-header-search" }, h("label", { key: '2a1f2708e838eb010eddc88a759af7d1ea2267d9', id: "ddaSearch-label", class: "visualy-hidden", "aria-hidden": "true" }, this.searchText || 'Search'), h("i", { key: '3e6d7678e32bc94c44beda939a0951ab397e123f', class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, "search"), h("dda-input", { key: 'e4aead90ab9cf0ce31f2b27b506dfdd9aab63882', placeholder: this.search_input_placeholder || 'Search', type: "text", input_id: "ddaSearch", value: this.search_value, input_name: this.search_input_name, aria_label: "input", input_role: "search", error_message: "Error text", validation_type: "normal", validation_id: "validationId", input_status: "normal", size: "default", custom_class: "dda-header-search-input tool-btn", component_mode: "",
286
341
  // handleInput={(event) => console.log(event.target.value,"")}
287
342
  onKeyPress: e => {
288
343
  if (e.key === 'Enter') {
289
344
  this.searchhandler(e.target.value); // Pass the value to the searchhandler
290
345
  }
291
- } }), h("span", { key: '4e2685a5599d65fc32e0f0c22c99652fd18e5c23', id: "validationId", class: "visually-hidden" }, "Enter keywords to search the site."))))), this.accessibility_button_id && (h("li", { key: 'f5299b335fac79b0e797b566fd2c2da16aa596a1' }, h("dda-tooltip", { key: '4ddb7685688b2bb9d512d7f1ba05e8c14259da7d', title_text: this.accessibility_tooltip, position: "top" }, h("button", { key: '031fa52d02ffd1767757d2c8c1dc2058ad7884df', name: this.toggle_accessibility_button_name, class: "tool-btn dda-btn btn-color-onsurface-secondary btn-size-sm btn-shape-circle accessibility-btn", type: "button", onClick: this.toggleAccessibilty, id: this.accessibility_button_id }, h("i", { key: '2d5c9c677dffe41a62d5bfe1ab057aef53eb80ab', class: this.accessibility_button_icon_family }, this.accessibility_button_icon_name), h("span", { key: '06b73b92e55c757827e9b18f5247e14f11abcdd0', class: "visually-hidden" }, this.accessibility_button_text))), this.usePredesignedAccessibilityMenu ? (h("div", { class: "dda-accessibility-wrap" }, h("div", { class: "dda-accessibility hide-accessibility", style: { display: this.isAccessibiltyOpen ? 'block' : 'none' } }, h("div", { class: "dda-row" }, h("div", { class: "dda-col-md-4 dda-accessibility-item" }, h("h6", { class: "h6 Regular dda-mb-1" }, this.contrast_title), h("form", null, h("fieldset", { class: "dda-theme-list" }, h("legend", null, h("p", { class: "body Regular dda-mb-3" }, this.contrast_description)), this.contrast_noraml_text ? (h("dda-radiobutton", { title_text: this.contrast_noraml_text, checked: this.selected_contrast == "normal", size: "default", variants: "normal", supporting: "", error_message: "", validation_id: "NormalTheme", group_name: "themeselection", input_id: "NormalTheme", custom_class: "", component_mode: "", aria_label: "radio-button", validation_type: "normal", onChange: this.normalContrasthandler, class: "" })) : null, this.contrast_color_blind_text ? (h("dda-radiobutton", { title_text: this.contrast_color_blind_text, checked: this.selected_contrast == "colorblind", size: "default", variants: "normal", supporting: "", error_message: "", validation_id: "ColoursBlind", group_name: "themeselection", input_id: "ColoursBlind", custom_class: "", component_mode: "", aria_label: "radio-button", validation_type: "normal", onChange: this.blindContrasthandler, class: "hydrated" })) : null, this.contrast_red_weakness_text ? (h("dda-radiobutton", { title_text: this.contrast_red_weakness_text, checked: this.selected_contrast == "redweakness", size: "default", variants: "normal", supporting: "", error_message: "", validation_id: "RedWeakness", group_name: "themeselection", input_id: "RedWeakness", custom_class: "", component_mode: "", aria_label: "radio-button", validation_type: "normal", onChange: this.redContrasthandler, class: "hydrated" })) : null, this.contrast_green_weakness_text ? (h("dda-radiobutton", { title_text: this.contrast_green_weakness_text, checked: this.selected_contrast == "greenweakness", size: "default", variants: "normal", supporting: "", error_message: "", validation_id: "GreenWeakness", group_name: "themeselection", input_id: "GreenWeakness", custom_class: "", component_mode: "", aria_label: "radio-button", validation_type: "normal", onChange: this.greenContrasthandler, class: "hydrated" })) : null))), h("div", { class: "dda-col-md-4 dda-accessibility-item" }, h("h6", { class: "h6 Regular dda-mb-1" }, this.screen_reader_title), h("p", { class: "body Regular dda-mb-3" }, this.screen_reader_description), h("div", { class: "rs_skip rsbtn rs_preserve rs_mobile", id: "readspeaker_button1" }, h("a", { rel: "nofollow", href: this.read_speaker_link, role: "button", class: "rsbtn_play circle readspeaker", accessKey: "L", "aria-label": "Listen to this page using ReadSpeaker", "data-rsshortcut": "play", "aria-haspopup": "menu", "data-rs-lang": "en_uk" }, h("i", { class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, "volume_up")))), h("div", { class: "dda-col-md-4 dda-accessibility-item" }, h("h6", { class: "h6 Regular dda-mb-1" }, this.text_size_title), h("p", { class: "body Regular dda-mb-3" }, this.text_size_description), h("div", { class: "dda-d-flex dda-gap-4" }, h("dda-button", { button_color: this.selected_text_size == "normal" ? "default-primary" : "default-secondary", button_text: "A", icon_button_shape: "circle", custom_class: "", size: "lg", onClick: this.baseTexthandler }), h("dda-button", { button_color: this.selected_text_size == "large" ? "default-primary" : "default-secondary", button_text: "A+", icon_button_shape: "circle", custom_class: "", size: "lg", onClick: this.lgTexthandler }), h("dda-button", { button_color: this.selected_text_size == "small" ? "default-primary" : "default-secondary", button_text: "A-", icon_button_shape: "circle", custom_class: "", size: "lg", onClick: this.smTexthandler })))), h("button", { type: "button", name: this.close_accessibility_button_name, class: "close-btn close_accessibility", "aria-label": "Close Sidebar", onClick: this.toggleAccessibilty }, h("i", { class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, "close"))))) : null)), this.language_text && (h("li", { key: '34f7535b38286b1053442d5c9d85dae9c5f99b03' }, h("dda-tooltip", { key: 'c2bcf53cdf5671c0797bdf1244fbcf3e3c794e7e', title_text: this.language_tooltip, position: "top" }, h("dda-button", { key: '83a9660dca131f30c2a5905c2744351cfd2decf5', button_color: "onsurface-secondary", custom_class: "tool-btn", button_text: this.language_text, button_shape: "circle", size: "sm", onClick: this.languagehandler })))), this.loginText && (h("li", { key: 'df36c7a1b07a4541b3a3d9252fee89d00c9a59a3' }, h("dda-tooltip", { key: '7e354257b66f1baae6a5b295f72ee7390a8837fa', title_text: this.login_tooltip, position: "top" }, h("dda-link-button", { key: '646861568427a1bc3134aa59a205b8ca5e1f9583', button_color: "onsurface-secondary", start_icon: this.loginIcon, custom_class: "tool-btn login-button", link_button_text: this.loginText, onClick: this.toggleLogin, href: this.loginLink, button_shape: "circle", size: "sm" })))))))));
346
+ } }), h("span", { key: 'bf3b40dc2410d8939a7ac9faaa94f5f8026cba5f', id: "validationId", class: "visually-hidden" }, "Enter keywords to search the site."))))), this.accessibility_button_id && (h("li", { key: '84848c1c168f2d38f836b72530e5761ba5a12a9d' }, h("dda-tooltip", { key: '41c543161e317158bcd28828e0d5912f251850b2', title_text: this.accessibility_tooltip, position: "top" }, h("button", { key: '94231a899385b08a928e6b8a08a452a770a36a02', name: this.toggle_accessibility_button_name, class: "tool-btn dda-btn btn-color-onsurface-secondary btn-size-sm btn-shape-circle accessibility-btn", type: "button", onClick: this.toggleAccessibilty, id: this.accessibility_button_id }, h("i", { key: '17f0db306de595cc504b41fc9c610a5964467e38', class: this.accessibility_button_icon_family }, this.accessibility_button_icon_name), h("span", { key: 'e116c1e9bd65d35a254e179a754afa44750087bd', class: "visually-hidden" }, this.accessibility_button_text))), this.usePredesignedAccessibilityMenu ? (h("div", { class: "dda-accessibility-wrap" }, h("div", { class: "dda-accessibility hide-accessibility", style: { display: this.isAccessibiltyOpen ? 'block' : 'none' } }, h("div", { class: "dda-row" }, h("div", { class: "dda-col-md-4 dda-accessibility-item" }, h("h6", { class: "h6 Regular dda-mb-1" }, this.contrast_title), h("form", null, h("fieldset", { class: "dda-theme-list" }, h("legend", null, h("p", { class: "body Regular dda-mb-3" }, this.contrast_description)), this.contrast_noraml_text ? (h("dda-radiobutton", { title_text: this.contrast_noraml_text, checked: this.selected_contrast == 'normal', size: "default", variants: "normal", supporting: "", error_message: "", validation_id: "NormalTheme", group_name: "themeselection", input_id: "NormalTheme", custom_class: "", component_mode: "", aria_label: "radio-button", validation_type: "normal", onChange: this.normalContrasthandler, class: "" })) : null, this.contrast_color_blind_text ? (h("dda-radiobutton", { title_text: this.contrast_color_blind_text, checked: this.selected_contrast == 'colorblind', size: "default", variants: "normal", supporting: "", error_message: "", validation_id: "ColoursBlind", group_name: "themeselection", input_id: "ColoursBlind", custom_class: "", component_mode: "", aria_label: "radio-button", validation_type: "normal", onChange: this.blindContrasthandler, class: "hydrated" })) : null, this.contrast_red_weakness_text ? (h("dda-radiobutton", { title_text: this.contrast_red_weakness_text, checked: this.selected_contrast == 'redweakness', size: "default", variants: "normal", supporting: "", error_message: "", validation_id: "RedWeakness", group_name: "themeselection", input_id: "RedWeakness", custom_class: "", component_mode: "", aria_label: "radio-button", validation_type: "normal", onChange: this.redContrasthandler, class: "hydrated" })) : null, this.contrast_green_weakness_text ? (h("dda-radiobutton", { title_text: this.contrast_green_weakness_text, checked: this.selected_contrast == 'greenweakness', size: "default", variants: "normal", supporting: "", error_message: "", validation_id: "GreenWeakness", group_name: "themeselection", input_id: "GreenWeakness", custom_class: "", component_mode: "", aria_label: "radio-button", validation_type: "normal", onChange: this.greenContrasthandler, class: "hydrated" })) : null))), h("div", { class: "dda-col-md-4 dda-accessibility-item" }, h("h6", { class: "h6 Regular dda-mb-1" }, this.screen_reader_title), h("p", { class: "body Regular dda-mb-3" }, this.screen_reader_description), h("div", { class: "rs_skip rsbtn rs_preserve rs_mobile", id: "readspeaker_button1" }, h("a", { rel: "nofollow", href: this.read_speaker_link, role: "button", class: "rsbtn_play circle readspeaker", accessKey: "L", "aria-label": "Listen to this page using ReadSpeaker", "data-rsshortcut": "play", "aria-haspopup": "menu", "data-rs-lang": "en_uk" }, h("i", { class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, "volume_up")))), h("div", { class: "dda-col-md-4 dda-accessibility-item" }, h("h6", { class: "h6 Regular dda-mb-1" }, this.text_size_title), h("p", { class: "body Regular dda-mb-3" }, this.text_size_description), h("div", { class: "dda-d-flex dda-gap-4" }, h("dda-button", { button_color: this.selected_text_size == 'normal' ? 'default-primary' : 'default-secondary', button_text: "A", icon_button_shape: "circle", custom_class: "", size: "lg", onClick: this.baseTexthandler }), h("dda-button", { button_color: this.selected_text_size == 'large' ? 'default-primary' : 'default-secondary', button_text: "A+", icon_button_shape: "circle", custom_class: "", size: "lg", onClick: this.lgTexthandler }), h("dda-button", { button_color: this.selected_text_size == 'small' ? 'default-primary' : 'default-secondary', button_text: "A-", icon_button_shape: "circle", custom_class: "", size: "lg", onClick: this.smTexthandler })))), h("button", { type: "button", name: this.close_accessibility_button_name, class: "close-btn close_accessibility", "aria-label": "Close Sidebar", onClick: this.toggleAccessibilty }, h("i", { class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, "close"))))) : null)), this.language_text && (h("li", { key: 'e0b8b7b57d78c55fb4e024a8f89e13cd0e19e468' }, h("dda-tooltip", { key: 'fd9067c3a2e237352dbbda07b5a7f70d7f616c9f', title_text: this.language_tooltip, position: "top" }, h("dda-button", { key: 'dd916ac1985970aa5adfb661a6165f910d664907', button_color: "onsurface-secondary", custom_class: "tool-btn", button_text: this.language_text, button_shape: "circle", size: "sm", onClick: this.languagehandler })))), this.loginText && (h("li", { key: '3bec421fd54794cbc429020dfd61ee5e11c26584' }, h("dda-tooltip", { key: 'b2b90f4aa9f21ff184a4504f96c449c3ff280d0a', title_text: this.login_tooltip, position: "top" }, h("dda-link-button", { key: '09c5d8101957aaf689490f6dce111f6a7b39fcee', button_color: "onsurface-secondary", start_icon: this.loginIcon, custom_class: "tool-btn login-button", link_button_text: this.loginText, onClick: this.toggleLogin,
347
+ // href={this.loginLink}
348
+ href: this.useLoginPopup ? 'javascript:void(0)' : this.loginLink, button_shape: "circle", size: "sm" })))))), this.useLoginPopup ? (h("div", { class: "dda-login-popup desktop", style: { display: this.isDesktopLoginPopupOpen ? 'block' : 'none' } }, this.renderLoginPopup())) : null, this.useLoginPopup ? (h("div", { class: "dda-login-popup mobile", style: { display: this.isMobileLoginPopupOpen ? 'block' : 'none' } }, this.renderLoginPopup())) : null)));
292
349
  }
293
350
  static get is() { return "dda-header"; }
294
351
  static get originalStyleUrls() {
@@ -1189,7 +1246,7 @@ export class DdaHeader {
1189
1246
  "type": "string",
1190
1247
  "mutable": false,
1191
1248
  "complexType": {
1192
- "original": "\"normal\" | \"colorblind\" | \"redweakness\" | \"greenweakness\"",
1249
+ "original": "'normal' | 'colorblind' | 'redweakness' | 'greenweakness'",
1193
1250
  "resolved": "\"colorblind\" | \"greenweakness\" | \"normal\" | \"redweakness\"",
1194
1251
  "references": {}
1195
1252
  },
@@ -1203,13 +1260,13 @@ export class DdaHeader {
1203
1260
  "setter": false,
1204
1261
  "attribute": "selected_contrast",
1205
1262
  "reflect": false,
1206
- "defaultValue": "\"normal\""
1263
+ "defaultValue": "'normal'"
1207
1264
  },
1208
1265
  "selected_text_size": {
1209
1266
  "type": "string",
1210
1267
  "mutable": false,
1211
1268
  "complexType": {
1212
- "original": "\"normal\" | \"large\" | \"small\"",
1269
+ "original": "'normal' | 'large' | 'small'",
1213
1270
  "resolved": "\"large\" | \"normal\" | \"small\"",
1214
1271
  "references": {}
1215
1272
  },
@@ -1357,6 +1414,71 @@ export class DdaHeader {
1357
1414
  "setter": false,
1358
1415
  "attribute": "quick-links",
1359
1416
  "reflect": false
1417
+ },
1418
+ "showQuickLinksIcon": {
1419
+ "type": "boolean",
1420
+ "mutable": false,
1421
+ "complexType": {
1422
+ "original": "boolean",
1423
+ "resolved": "boolean",
1424
+ "references": {}
1425
+ },
1426
+ "required": false,
1427
+ "optional": true,
1428
+ "docs": {
1429
+ "tags": [],
1430
+ "text": ""
1431
+ },
1432
+ "getter": false,
1433
+ "setter": false,
1434
+ "attribute": "show-quick-links-icon",
1435
+ "reflect": false,
1436
+ "defaultValue": "true"
1437
+ },
1438
+ "useLoginPopup": {
1439
+ "type": "boolean",
1440
+ "mutable": false,
1441
+ "complexType": {
1442
+ "original": "boolean",
1443
+ "resolved": "boolean",
1444
+ "references": {}
1445
+ },
1446
+ "required": false,
1447
+ "optional": false,
1448
+ "docs": {
1449
+ "tags": [],
1450
+ "text": ""
1451
+ },
1452
+ "getter": false,
1453
+ "setter": false,
1454
+ "attribute": "use-login-popup",
1455
+ "reflect": false,
1456
+ "defaultValue": "false"
1457
+ },
1458
+ "loginPopupLinks": {
1459
+ "type": "string",
1460
+ "mutable": false,
1461
+ "complexType": {
1462
+ "original": "| string\r\n | Array<{\r\n popupItemLabel: string;\r\n url: string;\r\n }>",
1463
+ "resolved": "string | { popupItemLabel: string; url: string; }[]",
1464
+ "references": {
1465
+ "Array": {
1466
+ "location": "global",
1467
+ "id": "global::Array"
1468
+ }
1469
+ }
1470
+ },
1471
+ "required": false,
1472
+ "optional": false,
1473
+ "docs": {
1474
+ "tags": [],
1475
+ "text": ""
1476
+ },
1477
+ "getter": false,
1478
+ "setter": false,
1479
+ "attribute": "login-popup-links",
1480
+ "reflect": false,
1481
+ "defaultValue": "[]"
1360
1482
  }
1361
1483
  };
1362
1484
  }
@@ -1369,7 +1491,9 @@ export class DdaHeader {
1369
1491
  "isMobileAccessibiltyOpen": {},
1370
1492
  "openMenus": {},
1371
1493
  "parsedOtherMenuItems": {},
1372
- "parsedDropDownMenuItems": {}
1494
+ "parsedDropDownMenuItems": {},
1495
+ "isDesktopLoginPopupOpen": {},
1496
+ "isMobileLoginPopupOpen": {}
1373
1497
  };
1374
1498
  }
1375
1499
  static get events() {