@dubai-design-system/components-js 3.11.6 → 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 (48) hide show
  1. package/dist/cjs/dda-header-menu_3.cjs.entry.js +3 -3
  2. package/dist/cjs/dda-header-menu_3.cjs.entry.js.map +1 -1
  3. package/dist/cjs/dda-header.cjs.entry.js +5 -4
  4. package/dist/cjs/dda-header.cjs.entry.js.map +1 -1
  5. package/dist/cjs/dda.cjs.js +1 -1
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/collection/components/dda-header/dda-header.js +25 -4
  8. package/dist/collection/components/dda-header/dda-header.js.map +1 -1
  9. package/dist/collection/components/dda-header-menu/dda-header-menu.css +7 -2
  10. package/dist/collection/components/dda-header-menu/dda-header-menu.js +23 -4
  11. package/dist/collection/components/dda-header-menu/dda-header-menu.js.map +1 -1
  12. package/dist/components/dda-header-menu.js +1 -1
  13. package/dist/components/dda-header.js +7 -5
  14. package/dist/components/dda-header.js.map +1 -1
  15. package/dist/components/{p-c30037a8.js → p-60cb6934.js} +5 -4
  16. package/dist/components/p-60cb6934.js.map +1 -0
  17. package/dist/dda/dda.esm.js +1 -1
  18. package/dist/dda/dda.esm.js.map +1 -1
  19. package/dist/dda/p-bd419f43.entry.js +2 -0
  20. package/dist/dda/p-bd419f43.entry.js.map +1 -0
  21. package/dist/dda/p-ce9b7aeb.entry.js +2 -0
  22. package/dist/dda/p-ce9b7aeb.entry.js.map +1 -0
  23. package/dist/esm/dda-header-menu_3.entry.js +3 -3
  24. package/dist/esm/dda-header-menu_3.entry.js.map +1 -1
  25. package/dist/esm/dda-header.entry.js +5 -4
  26. package/dist/esm/dda-header.entry.js.map +1 -1
  27. package/dist/esm/dda.js +1 -1
  28. package/dist/esm/loader.js +1 -1
  29. package/dist/types/components/dda-header/dda-header.d.ts +1 -0
  30. package/dist/types/components/dda-header-menu/dda-header-menu.d.ts +2 -0
  31. package/dist/types/components.d.ts +8 -2
  32. package/package.json +2 -2
  33. package/readme.md +5 -0
  34. package/www/build/dda.esm.js +1 -1
  35. package/www/build/dda.esm.js.map +1 -1
  36. package/www/build/p-bd419f43.entry.js +2 -0
  37. package/www/build/p-bd419f43.entry.js.map +1 -0
  38. package/www/build/p-ce9b7aeb.entry.js +2 -0
  39. package/www/build/p-ce9b7aeb.entry.js.map +1 -0
  40. package/dist/components/p-c30037a8.js.map +0 -1
  41. package/dist/dda/p-03e384da.entry.js +0 -2
  42. package/dist/dda/p-03e384da.entry.js.map +0 -1
  43. package/dist/dda/p-bb94fb97.entry.js +0 -2
  44. package/dist/dda/p-bb94fb97.entry.js.map +0 -1
  45. package/www/build/p-03e384da.entry.js +0 -2
  46. package/www/build/p-03e384da.entry.js.map +0 -1
  47. package/www/build/p-bb94fb97.entry.js +0 -2
  48. package/www/build/p-bb94fb97.entry.js.map +0 -1
@@ -36,6 +36,7 @@ const DdaHeader = class {
36
36
  this.hideOtherMenu = false;
37
37
  this.parsedOtherMenuItems = [];
38
38
  this.parsedDropDownMenuItems = [];
39
+ this.showQuickLinksIcon = true;
39
40
  this.useLoginPopup = false;
40
41
  this.loginPopupLinks = [];
41
42
  this.isDesktopLoginPopupOpen = false;
@@ -322,7 +323,7 @@ const DdaHeader = class {
322
323
  }
323
324
  render() {
324
325
  const sideMenuItems = this.parseJsonArray(this.sideMenuItems);
325
- return (h("header", { key: '54b0c03bc05adc75df3619e029d4c4e74160832c', class: 'dda-header' }, h("div", { key: 'aca7942c8a5906afb942b464a1c9b7e8890d6daa', class: "dda-head-logo" }, h("a", { key: 'a37d0983fd506514e6aa4119ae3db91e0f2071e0', href: this.useNavigator == 'true' ? 'javascript:void(0)' : this.firstLogoHref, onClick: () => (this.useNavigator == 'true' ? this.navigatorClick.emit(this.firstLogoHref) : ''), class: "govt-logo" }, h("img", { key: '22e895e5272500873c8fac0261ca6a5328fae2ae', class: "logo-white", src: this.firstLogoWhiteSrc, alt: `${this.firstLogoAlt} White` }), h("img", { key: 'a25b817ca16c600f3d958a567b619e028751286e', class: "logo-colored", src: this.firstLogoSrc, alt: this.firstLogoAlt })), h("a", { key: 'dc8088c587f99379b8b91f74e1a1c4cae2f61478', href: this.useNavigator == 'true' ? 'javascript:void(0)' : this.secondLogoHref, onClick: () => (this.useNavigator == 'true' ? this.navigatorClick.emit(this.secondLogoHref) : ''), class: "entt-logo" }, h("img", { key: '5c2f152227eefd7d2150c8f0ec08ddf2bb171891', class: "logo-white", src: this.secondLogoWhiteSrc, alt: `${this.secondLogoAlt} White` }), h("img", { key: '9540f57414634d9647a89666312cf8af75c83c73', class: "logo-colored", src: this.secondLogoSrc, alt: this.secondLogoAlt }))), h("div", { key: 'fcc06240644dc68a76017a47d39b39be1e5ea218', class: "dda-menu-container" }, h("div", { key: '62c04c4c861266e795f7815a141d69bc8fd3030b', class: "dda-main-navigation" }, h("div", { key: '541a0d835870cce4a48b696e5bd82e04ace23378', class: `dda-menu-overley ${this.isMenuOpen ? 'show-overley' : ''}`, onClick: this.toggleMenu }), h("div", { key: 'fbd58920245118c387c40137b7c6f2d37f9dad82', class: "hamburger-menu", onClick: this.toggleMenu }, h("dda-tooltip", { key: '4a7773f49fbbbc05c70a85dd00b867d2186f5e5e', title_text: this.hamburger_menu_button_name, position: "top", class: "dda-d-block" }, h("button", { key: 'ab3bd37a6c70392221c445964b20c8b4e6cc6ba4', type: "button", class: "hamburger-menu-btn", name: this.hamburger_menu_button_name }, h("span", { key: '87ad7609ba5d5cfe81183a350789c6d1dcc7323d', class: "hamburger-line" }), h("span", { key: '997734ff0e1f5a54f87112b6f0a396fd7ec0e50a', class: "hamburger-menu-text" }, this.hamburger_menu_button_name)))), h("div", { key: '928498ba3f5dbfad9854a9282f8415aeb25df36f', class: "dda-sidemenu", style: { display: this.isMenuOpen ? 'block' : '', insetInlineStart: this.isMenuOpen ? '0px' : '' } }, h("div", { key: '25c52e5bdaf99d65f1b6c7a8c005575ff5924da8', class: "dda-sidemenu-content" }, h("h6", { key: '4dec8b591c257c7f013dd5884efc10e7eda97da8', class: "dda-side-nav-title" }, this.sideMainMenuTitle), h("ul", { key: '19a6b3e688cb29652bb8134bd2753cb7de74b71e', class: "main_side_menu" }, sideMenuItems.map((menu, index) => {
326
+ 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) => {
326
327
  const currentIndex = `menu-${index}`;
327
328
  return (h("li", { key: currentIndex, id: `header_${menu.label}` }, h("a", {
328
329
  // href={menu.href}
@@ -351,15 +352,15 @@ const DdaHeader = class {
351
352
  }
352
353
  }
353
354
  }, menu.label), this.renderSubMenu(menu.subMenu, currentIndex)));
354
- })), this.hideOtherMenu == false && h("h6", { key: '0edcab2d681e3eb44c33e31edaac188a08da477a', class: "dda-side-nav-title" }, this.sideOtherMenuTitle), !this.hideOtherMenu && (h("ul", { key: '2b03e9cb6f4ac635e8016dbf9c571e204bbbf356', 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: 'c33e08042c9d3ae06fae2e5228d531a486fcb04f', class: "dda-sidemenu-bottom" }, h("div", { key: '2940f47390ff614e39ce5784985fd6966f22420f', class: "dda-sidemenu-gov-logo" }, h("a", { key: '5768871529e51f375464014fac399c79d1bb2b66', 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: '2b1739d1c99070e844ab6f8b327df53ab328e431', class: "", src: this.firstLogoSrc, alt: this.firstLogoAlt }))), h("div", { key: '61402996051b941f85022bbad9a855d49a224f38', class: "dda-toolbar-menu-sidemenu" }, h("ul", { key: '39df93239c3dbfb827e186997fb46148d553fcc6' }, this.accessibility_button_id && (h("li", { key: '46570a325b68ead7bba7dfc830fa0f0f0b4c7a53' }, h("button", { key: '38ee62dad197f4581580f8afa7976200c3f8ad7a', name: this.toggle_accessibility_button_name, class: "tool-btn accessibility-btn", type: "button", onClick: this.toggleMobileAccessibilty, id: this.accessibility_button_id }, h("i", { key: '31f235dc4cc46700935c2deb219924676b388c67', class: this.accessibility_button_icon_family }, this.accessibility_button_icon_name), h("span", { key: 'c9a451d1ee2e8c6a20c9edae06f959db5379b716', class: "visually-hidden" }, this.accessibility_button_text)))), this.language_text && (h("li", { key: '7075d204949735be02e4392b7bdae86b0fe72bab' }, h("button", { key: 'b72d76560cfcdcbeb5709c62693a3f183ddda77a', name: this.language_button_name, class: "tool-btn", type: "button", onClick: this.languagehandler }, this.language_text))), this.loginText && (h("li", { key: '3f713ad9364a5a32f1543c2920c1456313f9a520' }, h("dda-link-button", { key: '4679af2114d65ab229b3b21ff951f0bd7b3e0587', button_color: "onsurface-secondary", start_icon: this.loginIcon, custom_class: "tool-btn login-button", link_button_text: this.loginText, onClick: this.toggleLogin,
355
+ })), 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,
355
356
  // href={this.loginLink}
356
- href: this.useLoginPopup ? 'javascript:void(0)' : this.loginLink, button_shape: "circle", size: "sm" })))))), h("button", { key: 'ac101ccc76814564a6d5a96e2dbc206927b31a4f', 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: '2d67269aff73e1c305ac6f288edc21505354e426', 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: 'fc021edb9b23803ec5a6b14cff94ff5fe85e8329', "use-navigator": this.useNavigator, "navigator-click": this.navigatorClick, "quick-links": typeof this.quickLinks === 'string' ? this.quickLinks : JSON.stringify(this.quickLinks) }))), h("div", { key: 'a58ad9123277902e5285ad891d234814903af7d2', class: "dda-mobile-entt-logo" }, h("a", { key: 'e0bca6253ea983bad023b78c0ca0f87e67c0014b', href: this.useNavigator == 'true' ? 'javascript:void(0)' : this.secondLogoHref, onClick: () => (this.useNavigator == 'true' ? this.navigatorClick.emit(this.secondLogoHref) : ''), class: "entt-logo" }, h("img", { key: '6db3ca4ff5851d215f317f87cb7be524a08da725', class: "logo-colored", src: this.secondLogoSrc, alt: this.secondLogoAlt }), h("img", { key: '3367ef66aa512aea67b60716c09884399c2d1057', class: "logo-white", src: this.secondLogoWhiteSrc, alt: this.secondLogoAlt }))), h("div", { key: '0f615081ff47f1d280e9b4c1c2853b1ec34f3445', class: "dda-mobile-search" }, this.mobileMenuSearchId && (h("a", { key: '53d22488ae1ebe5b36f46f9813d547bf482f215f', 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: '89c31a1bb55be7d83cf2ad146bf5322dab5c33dd', class: "visualy-hidden" }, this.searchText || 'Search'), h("i", { key: '302017f31bc32489350cbb7ac464e3db9b3e7db4', class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, "search")))), h("div", { key: '3dbe527904902301b6ed634ddfb41914ea538c07', class: "dda-toolbar-menu" }, h("ul", { key: 'e860688ea5e0e57ae8987fdc74f5919e7089e54f' }, this.search_input_name && (h("li", { key: 'e832e0b08b7e5dd9b5906b5398f146925bd7b866' }, h("dda-tooltip", { key: 'e74d2ddd9fd10555e0a107d50f7379cd7339198c', title_text: this.search_tooltip || 'Search', description: "", position: "top" }, h("div", { key: '3a12a4f68786ac80061676710611f9a103e31543', class: "dda-search dda-header-search" }, h("label", { key: '6ae875f4546557ebcaafdceea7a4d9f2827060f0', id: "ddaSearch-label", class: "visualy-hidden", "aria-hidden": "true" }, this.searchText || 'Search'), h("i", { key: '4d45c87bb63add66c4a7752a10c6794ca938bacd', class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, "search"), h("dda-input", { key: '93290ed065195781f15745b1f03077f03cd03101', 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: "",
357
+ 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: "",
357
358
  // handleInput={(event) => console.log(event.target.value,"")}
358
359
  onKeyPress: e => {
359
360
  if (e.key === 'Enter') {
360
361
  this.searchhandler(e.target.value); // Pass the value to the searchhandler
361
362
  }
362
- } }), h("span", { key: '46b049df83aa8bd881f75d697f881740559eda99', id: "validationId", class: "visually-hidden" }, "Enter keywords to search the site."))))), this.accessibility_button_id && (h("li", { key: '031945bf0c4fd3a29838c144d9827edae85bf84e' }, h("dda-tooltip", { key: 'afefbbfda60e2fc2c23cacab830f28ad2b8f5fe8', title_text: this.accessibility_tooltip, position: "top" }, h("button", { key: 'f79fcda130513631472964343cde8e0c30d01699', 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: '4dfb86d909e2399e2b9adb4865eaa7062d537be7', class: this.accessibility_button_icon_family }, this.accessibility_button_icon_name), h("span", { key: '23e432e2d0d57fb95bf0db83c4b23452f893bd06', 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: 'f3217bb91eeb128abfaecb9281ab407d495d7ebc' }, h("dda-tooltip", { key: '8a2a7cc8a698e931eb0ece2ae654b1e23579cd64', title_text: this.language_tooltip, position: "top" }, h("dda-button", { key: '7d52ee5af611e209a5c787b4916ba8983a149291', 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: '616e01559219682842ad4161e53492b90fa40c67' }, h("dda-tooltip", { key: '036db12318bf9beb3bdd7bb0d18676642a20ac43', title_text: this.login_tooltip, position: "top" }, h("dda-link-button", { key: '364d191a935663762f7f8dcbce77023225304223', button_color: "onsurface-secondary", start_icon: this.loginIcon, custom_class: "tool-btn login-button", link_button_text: this.loginText, onClick: this.toggleLogin,
363
+ } }), 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,
363
364
  // href={this.loginLink}
364
365
  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)));
365
366
  }