@dubai-design-system/components-js 3.9.15 → 3.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/dda-breadcrumb.cjs.entry.js +2 -1
- package/dist/cjs/dda-breadcrumb.cjs.entry.js.map +1 -1
- package/dist/cjs/dda-header-menu_3.cjs.entry.js +27 -7
- package/dist/cjs/dda-header-menu_3.cjs.entry.js.map +1 -1
- package/dist/cjs/dda-header.cjs.entry.js +25 -23
- package/dist/cjs/dda-header.cjs.entry.js.map +1 -1
- package/dist/cjs/dda-image-card.cjs.entry.js +8 -10
- package/dist/cjs/dda-image-card.cjs.entry.js.map +1 -1
- package/dist/cjs/dda-information-card.cjs.entry.js +8 -10
- package/dist/cjs/dda-information-card.cjs.entry.js.map +1 -1
- package/dist/cjs/dda-pagination.cjs.entry.js +4 -2
- package/dist/cjs/dda-pagination.cjs.entry.js.map +1 -1
- package/dist/cjs/dda-teamsection-card.cjs.entry.js +18 -13
- package/dist/cjs/dda-teamsection-card.cjs.entry.js.map +1 -1
- package/dist/cjs/dda.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/assets/img/Team-Section-Card-1.svg +9 -9
- package/dist/collection/assets/img/icn/icn-Config.svg +9 -9
- package/dist/collection/assets/img/icn/icn-card-facebook.svg +11 -11
- package/dist/collection/assets/img/icn/icn-card-linkdin.svg +4 -4
- package/dist/collection/assets/img/icn/icn-card-telegram.svg +11 -11
- package/dist/collection/assets/img/icn/icn-card-twitter-x.svg +10 -10
- package/dist/collection/components/cards/dda-image-card/dda-image-card.js +45 -10
- package/dist/collection/components/cards/dda-image-card/dda-image-card.js.map +1 -1
- package/dist/collection/components/cards/dda-information-card/dda-information-card.js +45 -10
- package/dist/collection/components/cards/dda-information-card/dda-information-card.js.map +1 -1
- package/dist/collection/components/dda-breadcrumb/dda-breadcrumb.js +22 -1
- package/dist/collection/components/dda-breadcrumb/dda-breadcrumb.js.map +1 -1
- package/dist/collection/components/dda-cards/dda-team-section-cards/dda-teamsection-card-variant-one/dda-teamsection-card-variant-one.js +55 -13
- package/dist/collection/components/dda-cards/dda-team-section-cards/dda-teamsection-card-variant-one/dda-teamsection-card-variant-one.js.map +1 -1
- package/dist/collection/components/dda-header/dda-header.js +59 -23
- package/dist/collection/components/dda-header/dda-header.js.map +1 -1
- package/dist/collection/components/dda-header/dda-header.stories.js +8 -0
- package/dist/collection/components/dda-header/dda-header.stories.js.map +1 -1
- package/dist/collection/components/dda-header-menu/dda-header-menu.js +63 -6
- package/dist/collection/components/dda-header-menu/dda-header-menu.js.map +1 -1
- package/dist/collection/components/dda-input/dda-input.js +1 -1
- package/dist/collection/components/dda-input/dda-input.js.map +1 -1
- package/dist/collection/components/dda-pagination/dda-pagination.js +21 -2
- package/dist/collection/components/dda-pagination/dda-pagination.js.map +1 -1
- package/dist/collection/components/dda-slider/dda-slider.js +1 -1
- package/dist/components/dda-breadcrumb.js +4 -2
- package/dist/components/dda-breadcrumb.js.map +1 -1
- package/dist/components/dda-header-menu.js +1 -1
- package/dist/components/dda-header.js +28 -25
- package/dist/components/dda-header.js.map +1 -1
- package/dist/components/dda-image-card.js +11 -12
- package/dist/components/dda-image-card.js.map +1 -1
- package/dist/components/dda-information-card.js +11 -12
- package/dist/components/dda-information-card.js.map +1 -1
- package/dist/components/dda-input.js +1 -1
- package/dist/components/dda-pagination.js +5 -3
- package/dist/components/dda-pagination.js.map +1 -1
- package/dist/components/dda-teamsection-card.js +20 -14
- package/dist/components/dda-teamsection-card.js.map +1 -1
- package/dist/components/{p-359c3483.js → p-2f1766a5.js} +2 -2
- package/dist/components/p-2f1766a5.js.map +1 -0
- package/dist/components/{p-b7cfca52.js → p-923d3716.js} +29 -8
- package/dist/components/p-923d3716.js.map +1 -0
- package/dist/dda/dda.esm.js +1 -1
- package/dist/dda/dda.esm.js.map +1 -1
- package/dist/dda/p-057d1267.entry.js +2 -0
- package/dist/dda/p-057d1267.entry.js.map +1 -0
- package/{www/build/p-9a324a3e.entry.js → dist/dda/p-41d6b9ac.entry.js} +2 -2
- package/dist/dda/p-41d6b9ac.entry.js.map +1 -0
- package/{www/build/p-af82ab21.entry.js → dist/dda/p-4fe70ce0.entry.js} +2 -2
- package/dist/dda/p-4fe70ce0.entry.js.map +1 -0
- package/dist/dda/p-5f012377.entry.js +2 -0
- package/dist/dda/p-5f012377.entry.js.map +1 -0
- package/dist/dda/p-902659c3.entry.js +2 -0
- package/dist/dda/p-902659c3.entry.js.map +1 -0
- package/dist/dda/p-91f118b4.entry.js +2 -0
- package/dist/dda/p-91f118b4.entry.js.map +1 -0
- package/dist/dda/p-ffee072d.entry.js +2 -0
- package/dist/dda/p-ffee072d.entry.js.map +1 -0
- package/dist/esm/dda-breadcrumb.entry.js +2 -1
- package/dist/esm/dda-breadcrumb.entry.js.map +1 -1
- package/dist/esm/dda-header-menu_3.entry.js +28 -8
- package/dist/esm/dda-header-menu_3.entry.js.map +1 -1
- package/dist/esm/dda-header.entry.js +25 -23
- package/dist/esm/dda-header.entry.js.map +1 -1
- package/dist/esm/dda-image-card.entry.js +9 -11
- package/dist/esm/dda-image-card.entry.js.map +1 -1
- package/dist/esm/dda-information-card.entry.js +9 -11
- package/dist/esm/dda-information-card.entry.js.map +1 -1
- package/dist/esm/dda-pagination.entry.js +5 -3
- package/dist/esm/dda-pagination.entry.js.map +1 -1
- package/dist/esm/dda-teamsection-card.entry.js +19 -14
- package/dist/esm/dda-teamsection-card.entry.js.map +1 -1
- package/dist/esm/dda.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/cards/dda-image-card/dda-image-card.d.ts +3 -0
- package/dist/types/components/cards/dda-information-card/dda-information-card.d.ts +3 -0
- package/dist/types/components/dda-breadcrumb/dda-breadcrumb.d.ts +1 -0
- package/dist/types/components/dda-cards/dda-team-section-cards/dda-teamsection-card-variant-one/dda-teamsection-card-variant-one.d.ts +3 -0
- package/dist/types/components/dda-header/dda-header.d.ts +2 -0
- package/dist/types/components/dda-header-menu/dda-header-menu.d.ts +4 -1
- package/dist/types/components/dda-pagination/dda-pagination.d.ts +2 -0
- package/dist/types/components.d.ts +94 -0
- package/package.json +2 -2
- package/readme.md +10 -0
- package/www/build/dda.esm.js +1 -1
- package/www/build/dda.esm.js.map +1 -1
- package/www/build/p-057d1267.entry.js +2 -0
- package/www/build/p-057d1267.entry.js.map +1 -0
- package/{dist/dda/p-9a324a3e.entry.js → www/build/p-41d6b9ac.entry.js} +2 -2
- package/www/build/p-41d6b9ac.entry.js.map +1 -0
- package/{dist/dda/p-af82ab21.entry.js → www/build/p-4fe70ce0.entry.js} +2 -2
- package/www/build/p-4fe70ce0.entry.js.map +1 -0
- package/www/build/p-5f012377.entry.js +2 -0
- package/www/build/p-5f012377.entry.js.map +1 -0
- package/www/build/p-902659c3.entry.js +2 -0
- package/www/build/p-902659c3.entry.js.map +1 -0
- package/www/build/p-91f118b4.entry.js +2 -0
- package/www/build/p-91f118b4.entry.js.map +1 -0
- package/www/build/p-ffee072d.entry.js +2 -0
- package/www/build/p-ffee072d.entry.js.map +1 -0
- package/dist/components/p-359c3483.js.map +0 -1
- package/dist/components/p-b7cfca52.js.map +0 -1
- package/dist/dda/p-7dc8f091.entry.js +0 -2
- package/dist/dda/p-7dc8f091.entry.js.map +0 -1
- package/dist/dda/p-86c330a1.entry.js +0 -2
- package/dist/dda/p-86c330a1.entry.js.map +0 -1
- package/dist/dda/p-99cef84d.entry.js +0 -2
- package/dist/dda/p-99cef84d.entry.js.map +0 -1
- package/dist/dda/p-9a324a3e.entry.js.map +0 -1
- package/dist/dda/p-af82ab21.entry.js.map +0 -1
- package/dist/dda/p-d971b523.entry.js +0 -2
- package/dist/dda/p-d971b523.entry.js.map +0 -1
- package/dist/dda/p-d993427b.entry.js +0 -2
- package/dist/dda/p-d993427b.entry.js.map +0 -1
- package/www/build/p-7dc8f091.entry.js +0 -2
- package/www/build/p-7dc8f091.entry.js.map +0 -1
- package/www/build/p-86c330a1.entry.js +0 -2
- package/www/build/p-86c330a1.entry.js.map +0 -1
- package/www/build/p-99cef84d.entry.js +0 -2
- package/www/build/p-99cef84d.entry.js.map +0 -1
- package/www/build/p-9a324a3e.entry.js.map +0 -1
- package/www/build/p-af82ab21.entry.js.map +0 -1
- package/www/build/p-d971b523.entry.js +0 -2
- package/www/build/p-d971b523.entry.js.map +0 -1
- package/www/build/p-d993427b.entry.js +0 -2
- package/www/build/p-d993427b.entry.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, d as createEvent, h } from './p-f6588843.js';
|
|
2
2
|
import { d as defineCustomElement$7 } from './p-834e13a7.js';
|
|
3
|
-
import { d as defineCustomElement$6 } from './p-
|
|
4
|
-
import { d as defineCustomElement$5 } from './p-
|
|
3
|
+
import { d as defineCustomElement$6 } from './p-923d3716.js';
|
|
4
|
+
import { d as defineCustomElement$5 } from './p-2f1766a5.js';
|
|
5
5
|
import { d as defineCustomElement$4 } from './p-4bad1d5d.js';
|
|
6
6
|
import { d as defineCustomElement$3 } from './p-09225ffe.js';
|
|
7
7
|
import { d as defineCustomElement$2 } from './p-0c934630.js';
|
|
@@ -17,6 +17,7 @@ const DdaHeader$1 = /*@__PURE__*/ proxyCustomElement(class DdaHeader extends H {
|
|
|
17
17
|
super();
|
|
18
18
|
this.__registerHost();
|
|
19
19
|
this.languageSwitch = createEvent(this, "languageSwitch", 7);
|
|
20
|
+
this.navigatorClick = createEvent(this, "navigatorClick", 7);
|
|
20
21
|
this.smTextSize = createEvent(this, "smTextSize", 7);
|
|
21
22
|
this.baseTextSize = createEvent(this, "baseTextSize", 7);
|
|
22
23
|
this.lgTextSize = createEvent(this, "lgTextSize", 7);
|
|
@@ -37,6 +38,7 @@ const DdaHeader$1 = /*@__PURE__*/ proxyCustomElement(class DdaHeader extends H {
|
|
|
37
38
|
this.isMobileAccessibiltyOpen = false;
|
|
38
39
|
this.openMenus = {};
|
|
39
40
|
this.usePredesignedAccessibilityMenu = true;
|
|
41
|
+
this.useNavigator = 'false';
|
|
40
42
|
this.mobileMenuSearchId = 'mobileSearch';
|
|
41
43
|
this.mobileMenuSearchUrl = 'javascript:void(0)';
|
|
42
44
|
this.hideOtherMenu = false;
|
|
@@ -160,7 +162,9 @@ const DdaHeader$1 = /*@__PURE__*/ proxyCustomElement(class DdaHeader extends H {
|
|
|
160
162
|
return null;
|
|
161
163
|
return (h("div", { class: `main_sub_menu ${this.openMenus[parentLi] ? 'showSubMenu' : ''}` }, subMenu[0].headerLabel && h("p", { class: "dda-side-nav__title" }, subMenu[0].headerLabel), h("ol", null, subMenu.map((item, index) => {
|
|
162
164
|
const currentIndex = `${parentLi}-${index}`;
|
|
163
|
-
return (h("li", { key: currentIndex }, h("a", { href: item.href, class: `${item.subLinkClass} ${item.subMenu && item.subMenu.length > 0 ? 'showSub' : ''}`, onClick: (e) =>
|
|
165
|
+
return (h("li", { key: currentIndex }, h("a", { href: this.useNavigator == "true" ? 'javascript:void(0)' : item.href, class: `${item.subLinkClass} ${item.subMenu && item.subMenu.length > 0 ? 'showSub' : ''}`, onClick: (e) => {
|
|
166
|
+
this.handleMenuClick(e, item, currentIndex);
|
|
167
|
+
} }, item.label), this.renderSubMenu(item.subMenu, currentIndex)));
|
|
164
168
|
}))));
|
|
165
169
|
};
|
|
166
170
|
}
|
|
@@ -255,12 +259,20 @@ const DdaHeader$1 = /*@__PURE__*/ proxyCustomElement(class DdaHeader extends H {
|
|
|
255
259
|
}
|
|
256
260
|
});
|
|
257
261
|
}
|
|
262
|
+
else {
|
|
263
|
+
console.log('check navigator', this.useNavigator, this.navigatorClick);
|
|
264
|
+
if (this.useNavigator == "true") {
|
|
265
|
+
this.navigatorClick.emit(item.href);
|
|
266
|
+
}
|
|
267
|
+
}
|
|
258
268
|
}
|
|
259
269
|
render() {
|
|
260
270
|
const sideMenuItems = this.parseJsonArray(this.sideMenuItems);
|
|
261
|
-
return (h("header", { key: '
|
|
271
|
+
return (h("header", { key: '23f4abdd1b049c2a036648cc345afa537bfd9ad3', class: 'dda-header' }, h("div", { key: '75708a7c0d96ae7e0627ac2dd3f6d877cb38649f', class: "dda-head-logo" }, h("a", { key: '376534d7e2ebf1e3c7b70bd2019e325c396d5bcb', href: this.useNavigator == "true" ? 'javascript:void(0)' : this.firstLogoHref, onClick: () => this.useNavigator == "true" ? this.navigatorClick.emit(this.firstLogoHref) : "", class: "govt-logo" }, h("img", { key: '86a286e12601014a510c1c8a9dd09f7e73c847f0', class: "logo-white", src: this.firstLogoWhiteSrc, alt: `${this.firstLogoAlt} White` }), h("img", { key: 'e334d52ad321148fa855eac167f2f2089795c0a0', class: "logo-colored", src: this.firstLogoSrc, alt: this.firstLogoAlt })), h("a", { key: '1672c95f349ec7dd2df37af280bfb0aa971a27fa', href: this.useNavigator == "true" ? 'javascript:void(0)' : this.secondLogoHref, onClick: () => this.useNavigator == "true" ? this.navigatorClick.emit(this.secondLogoHref) : "", class: "entt-logo" }, h("img", { key: '505d140e52f630d4c894193349925127be601f03', class: "logo-white", src: this.secondLogoWhiteSrc, alt: `${this.secondLogoAlt} White` }), h("img", { key: '31a5a64ad1f740d1209e47b97cc88f5bd0a9606b', class: "logo-colored", src: this.secondLogoSrc, alt: this.secondLogoAlt }))), h("div", { key: 'c5abe1fa371364898187951d67ef98bb0514c8b8', class: "dda-menu-container" }, h("div", { key: '33f8c359d9f6879038390da1e33060040cd0b1fb', class: "dda-main-navigation" }, h("div", { key: 'b64a969cc8a7276d1db7202bccf3d4e6860a6be9', class: `dda-menu-overley ${this.isMenuOpen ? 'show-overley' : ''}`, onClick: this.toggleMenu }), h("div", { key: 'c052d16756603b30b2bfa5e8121c38d9b35b1e0e', class: "hamburger-menu", onClick: this.toggleMenu }, h("dda-tooltip", { key: '204745a19ce7eb4e3bbdfdfc8390b9dc6b39a813', title_text: this.hamburger_menu_button_name, position: "top", class: "dda-d-block" }, h("button", { key: '0ce82817eefe18c0fc6dce24fd019cf74f79c31b', type: "button", class: "hamburger-menu-btn", name: this.hamburger_menu_button_name }, h("span", { key: 'e16622d4d07398d21124f349a7f3314c4b83f22d', class: "hamburger-line" }), h("span", { key: '581f211d0fdf5b38ca95ad82a918a30b24789641', class: "hamburger-menu-text" }, this.hamburger_menu_button_name)))), h("div", { key: 'cd4f7e1002f819b1cd2c82b7260da705301553ae', class: "dda-sidemenu", style: { display: this.isMenuOpen ? 'block' : '', insetInlineStart: this.isMenuOpen ? '0px' : '' } }, h("div", { key: 'cd9fca0f1bc1733749973a1251efa2560d429a46', class: "dda-sidemenu-content" }, h("p", { key: '43c4ed8339308e86ac98519e398b449b11e908eb', class: "dda-side-nav-title" }, this.sideMainMenuTitle), h("ul", { key: '1d66cf5859653dd0b4e9d46c6a75704916c669da', class: "main_side_menu" }, sideMenuItems.map((menu, index) => {
|
|
262
272
|
const currentIndex = `menu-${index}`;
|
|
263
|
-
return (h("li", { key: currentIndex, id: `header_${menu.label}` }, h("a", {
|
|
273
|
+
return (h("li", { key: currentIndex, id: `header_${menu.label}` }, h("a", {
|
|
274
|
+
// href={menu.href}
|
|
275
|
+
href: this.useNavigator == "true" ? 'javascript:void(0)' : menu.href, class: menu.subMenu && menu.subMenu.length > 0 ? 'showSub' : '', onClick: (e) => {
|
|
264
276
|
if (menu.subMenu && menu.subMenu.length > 0) {
|
|
265
277
|
e.preventDefault();
|
|
266
278
|
const current = e.currentTarget;
|
|
@@ -278,30 +290,20 @@ const DdaHeader$1 = /*@__PURE__*/ proxyCustomElement(class DdaHeader extends H {
|
|
|
278
290
|
// Show submenu
|
|
279
291
|
this.toggleSidebarSubMenu(currentIndex);
|
|
280
292
|
}
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
h("dda-radiobutton", { title_text: this.contrast_green_weakness_text, checked: false, 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" })
|
|
290
|
-
: null))), h("div", { class: "dda-col-md-4 dda-accessibility-item" }, h("p", { 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("p", { 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: "default-secondary", button_text: "A", icon_button_shape: "circle", custom_class: "", size: "lg", onClick: this.baseTexthandler }), h("dda-button", { button_color: "default-secondary", button_text: "A+", icon_button_shape: "circle", custom_class: "", size: "lg", onClick: this.lgTexthandler }), h("dda-button", { button_color: "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: '116f59ad8d4e58d3d1ac833ce287cc0d42904f56', "quick-links": typeof this.quickLinks === 'string' ? this.quickLinks : JSON.stringify(this.quickLinks) }))), h("div", { key: 'c4e553e8bb746565eb0615c915e26f029d28aa72', class: "dda-mobile-entt-logo" }, h("a", { key: 'f63e883b8a25a9db7c60943e378f38f45ffae148', href: this.secondLogoHref, class: "entt-logo" }, h("img", { key: '0344ae1f1ed9429ee3bd44b8d593b35287c276c9', class: "logo-colored", src: this.secondLogoSrc, alt: this.secondLogoAlt }), h("img", { key: 'c505389d929f5d6447adcfdef2197c5e29a525e8', class: "logo-white", src: this.secondLogoWhiteSrc, alt: this.secondLogoAlt }))), h("div", { key: '7261eeb74eff7d248372ae95897fe97b8f00e887', class: "dda-mobile-search" }, this.mobileMenuSearchId && (h("a", { key: 'fb9022ad15dc3f2eae22daab6e070aea964f4306', href: this.mobileMenuSearchUrl, class: "tool-btn", id: this.mobileMenuSearchId }, h("span", { key: '211fc190d87fa2b726c952600d978287c47e850a', class: "visualy-hidden" }, this.searchText || 'Search'), h("i", { key: 'c10349c7437b9605d6e11a74b859923784e74582', class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, "search")))), h("div", { key: 'ed1ec61ab34c358818a5afdbf6a2f0de76eed2dc', class: "dda-toolbar-menu" }, h("ul", { key: 'f8816e69a5383d85ee43fe4166f25c29b8c77d40' }, this.search_input_name && (h("li", { key: 'cc10e093367b9f83899e1389782a1593ea5cc2d9' }, h("dda-tooltip", { key: '3430fd16d8fa5d707d4e95df9e23bcc922cb91fe', title_text: this.search_tooltip || 'Search', description: "", position: "top" }, h("div", { key: '7b099009aa3a7b3b9a8c368f780853530b5a0ca8', class: "dda-search dda-header-search" }, h("label", { key: '5b8f97fdfb2d1f98846e54455016448cced955a3', htmlFor: "ddaSearch", class: "visualy-hidden" }, this.searchText || 'Search'), h("i", { key: '61220aaeb6400f3327df98026460eafeb7c98582', class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, "search"), h("dda-input", { key: 'dbc429092daf9cf400a25dfe9c53f2badd6e2e24', 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: "",
|
|
293
|
+
else {
|
|
294
|
+
if (this.useNavigator == "true") {
|
|
295
|
+
this.navigatorClick.emit(menu.href);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
}, menu.label), this.renderSubMenu(menu.subMenu, currentIndex)));
|
|
300
|
+
})), this.hideOtherMenu == false && h("p", { key: '40c84164522ec90cbc729ebcba1e375a4a647ce8', class: "dda-side-nav-title" }, this.sideOtherMenuTitle), !this.hideOtherMenu && (h("ul", { key: 'de836c4cec9241c4a549169c2baad2e7d98938a4', 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: 'c74d0a6ef5780774106b59b97840c125b06530ce', class: "dda-sidemenu-bottom" }, h("div", { key: 'a52d621bf3ca66107212e71d35343eea335f083e', class: "dda-sidemenu-gov-logo" }, h("a", { key: '3897694d63fba6e3fd2756d106a3e2d576963b72', 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: '10b6e0ca4e72c4c3a0aee5eb8b20ad8100a5b186', class: "", src: this.firstLogoSrc, alt: this.firstLogoAlt }))), h("div", { key: '43ef554a06dc205defeb526a73b8f9263bfc5ef1', class: "dda-toolbar-menu-sidemenu" }, h("ul", { key: 'e71004b4ee421a1b30e9ffe78ce38af818c38eb1' }, this.accessibility_button_id && (h("li", { key: 'da86c5fa1f299aff29423240683cb849cfb2b2cb' }, h("button", { key: '15d04c035980f1e257c0e8ff2742342bbd997afd', name: this.toggle_accessibility_button_name, class: "tool-btn accessibility-btn", type: "button", onClick: this.toggleMobileAccessibilty, id: this.accessibility_button_id }, h("i", { key: '44c3c08b50c58eb941e9617edc1ad31c877e4370', class: this.accessibility_button_icon_family }, this.accessibility_button_icon_name), h("span", { key: '8e01e89b5c892564f0cf02335e7f004c1ea41adc', class: "visually-hidden" }, this.accessibility_button_text)))), this.language_text && (h("li", { key: 'c54b0c72b599dfca862c009a276b6964674efe95' }, h("button", { key: '33b85a1524230518e7e931a483bcf7101046f1b3', name: this.language_button_name, class: "tool-btn", type: "button", onClick: this.languagehandler }, this.language_text))), this.loginText && (h("li", { key: '9b79f9ee2056586ad7b632525051b4d2b80d4b6d' }, h("dda-link-button", { key: 'd885e0657353d607b7889cab4f4a8b072a189569', button_color: "onsurface-secondary", start_icon: this.loginIcon, custom_class: "tool-btn", link_button_text: this.loginText, href: this.loginLink, button_shape: "circle", size: "sm" })))))), h("button", { key: '267402853479d57ad3969708f1111718f22cc173', 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: '72a1882c441f0578315710c9c2ba092d8cde1fb2', 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("p", { 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: true, 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: false, 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: false, 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: false, 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("p", { 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("p", { 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: "default-secondary", button_text: "A", icon_button_shape: "circle", custom_class: "", size: "lg", onClick: this.baseTexthandler }), h("dda-button", { button_color: "default-secondary", button_text: "A+", icon_button_shape: "circle", custom_class: "", size: "lg", onClick: this.lgTexthandler }), h("dda-button", { button_color: "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: 'ac9e93d730b92b18b03806b5f7575168708f1ad7', "use-navigator": this.useNavigator, "navigator-click": this.navigatorClick, "quick-links": typeof this.quickLinks === 'string' ? this.quickLinks : JSON.stringify(this.quickLinks) })), h("div", { key: 'dc588093f7a4a9e1fc3d238b15df31e83cdf014e', class: "dda-mobile-entt-logo" }, h("a", { key: '6524f29e0cec33ab5589f2b288c9df55b15b3ea8', href: this.useNavigator == "true" ? 'javascript:void(0)' : this.secondLogoHref, onClick: () => this.useNavigator == "true" ? this.navigatorClick.emit(this.secondLogoHref) : "", class: "entt-logo" }, h("img", { key: 'c3f57a73bf6c22397548b18a5ab96663d1e6de19', class: "logo-colored", src: this.secondLogoSrc, alt: this.secondLogoAlt }), h("img", { key: '4e8c153da5e8ba88fc27a0ef4a113a6e0e5e852d', class: "logo-white", src: this.secondLogoWhiteSrc, alt: this.secondLogoAlt }))), h("div", { key: '13580d1d53aa75408e8ec3e1b890570cd81e7778', class: "dda-mobile-search" }, this.mobileMenuSearchId && (h("a", { key: 'c035ad67e3e515680880f6bb2795837aa57337a0', 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: 'a659e82e46220aa8b49c94dae5973ac9cb3a24ee', class: "visualy-hidden" }, this.searchText || 'Search'), h("i", { key: 'f8878bd3cf05520e005aa2142497920986ac0806', class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, "search")))), h("div", { key: 'e0b94b01ea390d461601b641e9ece6a4f6d5e73d', class: "dda-toolbar-menu" }, h("ul", { key: 'e42214616e3d5aea3774ed090ecbcbbf48a90d2e' }, this.search_input_name && (h("li", { key: 'bfba58af8082f55b8094ed429273386a3441d6ae' }, h("dda-tooltip", { key: '3a53b22616b36efdc80f2474cc2e5c25fd1886af', title_text: this.search_tooltip || 'Search', description: "", position: "top" }, h("div", { key: '6304aa0fabe292078fc98ead94807d206941dad1', class: "dda-search dda-header-search" }, h("label", { key: '8df2014f87d82cb86872c3e7baee7e22979a9d59', htmlFor: "ddaSearch", class: "visualy-hidden" }, this.searchText || 'Search'), h("i", { key: 'b98eeaf9209d85df9380454808d3225e21e4970d', class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, "search"), h("dda-input", { key: 'b27b6930c650fa5761f53094594a0fa2f475d0e5', 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: "",
|
|
291
301
|
// handleInput={(event) => console.log(event.target.value,"")}
|
|
292
|
-
onKeyPress: e => {
|
|
302
|
+
onKeyPress: (e) => {
|
|
293
303
|
if (e.key === 'Enter') {
|
|
294
304
|
this.searchhandler(e.target.value); // Pass the value to the searchhandler
|
|
295
305
|
}
|
|
296
|
-
} }), h("span", { key: '
|
|
297
|
-
h("dda-radiobutton", { title_text: this.contrast_noraml_text, checked: true, 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: "" })
|
|
298
|
-
: null, this.contrast_color_blind_text ?
|
|
299
|
-
h("dda-radiobutton", { title_text: this.contrast_color_blind_text, checked: false, 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" })
|
|
300
|
-
: null, this.contrast_red_weakness_text ?
|
|
301
|
-
h("dda-radiobutton", { title_text: this.contrast_red_weakness_text, checked: false, 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" })
|
|
302
|
-
: null, this.contrast_green_weakness_text ?
|
|
303
|
-
h("dda-radiobutton", { title_text: this.contrast_green_weakness_text, checked: false, 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" })
|
|
304
|
-
: null))), h("div", { class: "dda-col-md-4 dda-accessibility-item" }, h("p", { 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("p", { 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: "default-secondary", button_text: "A", icon_button_shape: "circle", custom_class: "", size: "lg", onClick: this.baseTexthandler }), h("dda-button", { button_color: "default-secondary", button_text: "A+", icon_button_shape: "circle", custom_class: "", size: "lg", onClick: this.lgTexthandler }), h("dda-button", { button_color: "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: '15802ee78242fad5f49d0afba2b83ea4f48a24cf' }, h("dda-tooltip", { key: '02c88850d4090e1c0dd11f469285be72fe7960ff', title_text: this.language_tooltip, position: "top" }, h("dda-button", { key: 'e902ff178e53dea6eade32d7502fe282f77258f8', 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: '8b3336ee9b10b36d809634f08c8f8e9969b2276a' }, h("dda-tooltip", { key: '3bb805c2d91eaae6cb814c1528d8e725d0247b06', title_text: this.login_tooltip, position: "top" }, h("dda-link-button", { key: 'c3fd0a55fd479009cde464ee1b4aa0a6bc8089b9', button_color: "onsurface-secondary", start_icon: this.loginIcon, custom_class: "tool-btn login-button", link_button_text: this.loginText, href: this.loginLink, button_shape: "circle", size: "sm" })))))))));
|
|
306
|
+
} }), h("span", { key: '44d09b3ee8241e89cd0f26a72ab9fe8516a454c9', id: "validationId", class: "visually-hidden" }, "Enter keywords to search the site."))))), this.accessibility_button_id && (h("li", { key: '432b91db55e767121f47860991a2376c89e0e79c' }, h("dda-tooltip", { key: '6addae5a057ddec580123a4e70ea9e4f7cd730fa', title_text: this.accessibility_tooltip, position: "top" }, h("button", { key: 'bc5c3daee5d0ebc96997525c2df8631c59809080', 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: 'da91a9b60cd33a3e4875bc58c8f77ff834535b11', class: this.accessibility_button_icon_family }, this.accessibility_button_icon_name), h("span", { key: '474adf447db4f45bd3831f9a6d617832a4e66de5', 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("p", { 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: true, 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: false, 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: false, 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: false, 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("p", { 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("p", { 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: "default-secondary", button_text: "A", icon_button_shape: "circle", custom_class: "", size: "lg", onClick: this.baseTexthandler }), h("dda-button", { button_color: "default-secondary", button_text: "A+", icon_button_shape: "circle", custom_class: "", size: "lg", onClick: this.lgTexthandler }), h("dda-button", { button_color: "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: '3c0f2a69675ccb0451a4144d3b2f195f0572fa7d' }, h("dda-tooltip", { key: 'ca764bc214191122dd8a612a64ea0abbf035cd56', title_text: this.language_tooltip, position: "top" }, h("dda-button", { key: 'c691c284d19cc5b448fc93cfba59516700fbd59b', 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: '0e2931b2f1c1c505f15205848835f2779a5d0fb7' }, h("dda-tooltip", { key: '70bde4dbe95dd7e65fd53a4f60b6025d56c3b3f6', title_text: this.login_tooltip, position: "top" }, h("dda-link-button", { key: 'c2de1c9095bf316895fa2e6ebba72bec991d9b82', button_color: "onsurface-secondary", start_icon: this.loginIcon, custom_class: "tool-btn login-button", link_button_text: this.loginText, href: this.loginLink, button_shape: "circle", size: "sm" })))))))));
|
|
305
307
|
}
|
|
306
308
|
static get style() { return DdaHeaderStyle0 + DdaHeaderStyle1; }
|
|
307
309
|
}, [0, "dda-header", {
|
|
@@ -341,6 +343,7 @@ const DdaHeader$1 = /*@__PURE__*/ proxyCustomElement(class DdaHeader extends H {
|
|
|
341
343
|
"close_accessibility_button_name": [1],
|
|
342
344
|
"toggle_accessibility_button_name": [1],
|
|
343
345
|
"usePredesignedAccessibilityMenu": [4, "use-predesigned-accessibility-menu"],
|
|
346
|
+
"useNavigator": [1, "use-navigator"],
|
|
344
347
|
"search_input_placeholder": [1],
|
|
345
348
|
"mobileMenuSearchId": [1, "mobile-menu-search-id"],
|
|
346
349
|
"mobileMenuSearchUrl": [1, "mobile-menu-search-url"],
|