@dubai-design-system/components-js 3.12.8 → 3.12.10
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-attach-file.cjs.entry.js +5 -1
- package/dist/cjs/dda-attach-file.cjs.entry.js.map +1 -1
- package/dist/cjs/dda-header.cjs.entry.js +37 -14
- package/dist/cjs/dda-header.cjs.entry.js.map +1 -1
- package/dist/cjs/dda-home-banner.cjs.entry.js +34 -5
- package/dist/cjs/dda-home-banner.cjs.entry.js.map +1 -1
- package/dist/cjs/dda-select.cjs.entry.js +2 -9
- package/dist/cjs/dda-select.cjs.entry.js.map +1 -1
- package/dist/collection/components/dda-attach-file/dda-attach-file.js +11 -1
- package/dist/collection/components/dda-attach-file/dda-attach-file.js.map +1 -1
- package/dist/collection/components/dda-header/dda-header-main.css +18 -2
- package/dist/collection/components/dda-header/dda-header.js +36 -13
- package/dist/collection/components/dda-header/dda-header.js.map +1 -1
- package/dist/collection/components/dda-header/dda-header.stories.js +4 -0
- package/dist/collection/components/dda-header/dda-header.stories.js.map +1 -1
- package/dist/collection/components/dda-home-banner/dda-home-banner.js +34 -5
- package/dist/collection/components/dda-home-banner/dda-home-banner.js.map +1 -1
- package/dist/collection/components/dda-select/dda-select.js +2 -12
- package/dist/collection/components/dda-select/dda-select.js.map +1 -1
- package/dist/collection/global/input.css +8 -1
- package/dist/components/dda-attach-file.js +5 -1
- package/dist/components/dda-attach-file.js.map +1 -1
- package/dist/components/dda-header.js +37 -14
- package/dist/components/dda-header.js.map +1 -1
- package/dist/components/dda-home-banner.js +34 -5
- package/dist/components/dda-home-banner.js.map +1 -1
- package/dist/components/dda-select.js +2 -9
- package/dist/components/dda-select.js.map +1 -1
- package/dist/dda/dda.css +1 -1
- package/dist/dda/dda.esm.js +1 -1
- package/dist/dda/p-0ebdb27f.entry.js +2 -0
- package/dist/dda/p-0ebdb27f.entry.js.map +1 -0
- package/dist/dda/p-0fa24558.entry.js +2 -0
- package/dist/dda/p-0fa24558.entry.js.map +1 -0
- package/dist/dda/p-24da4601.entry.js +2 -0
- package/dist/dda/p-24da4601.entry.js.map +1 -0
- package/dist/dda/p-2821386c.entry.js +2 -0
- package/dist/dda/p-2821386c.entry.js.map +1 -0
- package/dist/esm/dda-attach-file.entry.js +5 -1
- package/dist/esm/dda-attach-file.entry.js.map +1 -1
- package/dist/esm/dda-header.entry.js +37 -14
- package/dist/esm/dda-header.entry.js.map +1 -1
- package/dist/esm/dda-home-banner.entry.js +34 -5
- package/dist/esm/dda-home-banner.entry.js.map +1 -1
- package/dist/esm/dda-select.entry.js +2 -9
- package/dist/esm/dda-select.entry.js.map +1 -1
- package/dist/types/components/dda-header/dda-header.stories.d.ts +5 -0
- package/package.json +2 -2
- package/readme.md +9 -0
- package/www/build/dda.css +1 -1
- package/www/build/dda.esm.js +1 -1
- package/www/build/p-0ebdb27f.entry.js +2 -0
- package/www/build/p-0ebdb27f.entry.js.map +1 -0
- package/www/build/p-0fa24558.entry.js +2 -0
- package/www/build/p-0fa24558.entry.js.map +1 -0
- package/www/build/p-24da4601.entry.js +2 -0
- package/www/build/p-24da4601.entry.js.map +1 -0
- package/www/build/p-2821386c.entry.js +2 -0
- package/www/build/p-2821386c.entry.js.map +1 -0
- package/www/build/{p-17691a4c.css → p-898ec4a2.css} +1 -1
- package/dist/collection/global/global.css +0 -3007
- package/dist/dda/p-581d9c45.entry.js +0 -2
- package/dist/dda/p-581d9c45.entry.js.map +0 -1
- package/dist/dda/p-5c5aeda7.entry.js +0 -2
- package/dist/dda/p-5c5aeda7.entry.js.map +0 -1
- package/dist/dda/p-7276ea70.entry.js +0 -2
- package/dist/dda/p-7276ea70.entry.js.map +0 -1
- package/dist/dda/p-dc443758.entry.js +0 -2
- package/dist/dda/p-dc443758.entry.js.map +0 -1
- package/www/build/p-581d9c45.entry.js +0 -2
- package/www/build/p-581d9c45.entry.js.map +0 -1
- package/www/build/p-5c5aeda7.entry.js +0 -2
- package/www/build/p-5c5aeda7.entry.js.map +0 -1
- package/www/build/p-7276ea70.entry.js +0 -2
- package/www/build/p-7276ea70.entry.js.map +0 -1
- package/www/build/p-dc443758.entry.js +0 -2
- package/www/build/p-dc443758.entry.js.map +0 -1
|
@@ -401,6 +401,7 @@ body.transparent .dda-search i {
|
|
|
401
401
|
padding: 32px;
|
|
402
402
|
overflow-y: auto;
|
|
403
403
|
height: 100%;
|
|
404
|
+
position: relative;
|
|
404
405
|
}
|
|
405
406
|
|
|
406
407
|
.dda-sidemenu-content::-webkit-scrollbar {
|
|
@@ -508,7 +509,7 @@ ul.main_side_menu li a.showSubSub.icon_arrow::after {
|
|
|
508
509
|
ul.main_side_menu li .main_sub_menu {
|
|
509
510
|
display: none;
|
|
510
511
|
position: fixed;
|
|
511
|
-
margin-top: -50px;
|
|
512
|
+
/* margin-top: -50px; */
|
|
512
513
|
inset-inline-start: 380px;
|
|
513
514
|
width: 350px;
|
|
514
515
|
background: var(--dda-surface-100);
|
|
@@ -988,4 +989,19 @@ body.transparent .dda-mobile-search button svg {
|
|
|
988
989
|
.dda-accessibility {
|
|
989
990
|
transition: left 0.5s ease;
|
|
990
991
|
}
|
|
991
|
-
}
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
|
|
995
|
+
/* @media screen and (max-height: 552px) {
|
|
996
|
+
ul.main_side_menu li .main_sub_menu {
|
|
997
|
+
position: inherit;
|
|
998
|
+
margin-top: 0px;
|
|
999
|
+
width: 100%;
|
|
1000
|
+
padding: 5px 0px 15px 20px;
|
|
1001
|
+
box-shadow: none;
|
|
1002
|
+
inset-inline-start: inherit !important;
|
|
1003
|
+
}
|
|
1004
|
+
.dda-side-nav__title{
|
|
1005
|
+
display: none;
|
|
1006
|
+
}
|
|
1007
|
+
} */
|
|
@@ -177,7 +177,35 @@ export class DdaHeader {
|
|
|
177
177
|
this.renderSubMenu = (subMenu, parentLi) => {
|
|
178
178
|
if (!subMenu || subMenu.length === 0)
|
|
179
179
|
return null;
|
|
180
|
-
return (h("div", { class: `main_sub_menu ${this.openMenus[parentLi] ? 'showSubMenu' : ''}
|
|
180
|
+
return (h("div", { class: `main_sub_menu ${this.openMenus[parentLi] ? 'showSubMenu' : ''}`,
|
|
181
|
+
// ref={el => {
|
|
182
|
+
// if (el && this.openMenus[parentLi]) {
|
|
183
|
+
// setTimeout(() => {
|
|
184
|
+
// const parent = el.closest('li');
|
|
185
|
+
// if (!parent) return;
|
|
186
|
+
// const rect = parent.getBoundingClientRect();
|
|
187
|
+
// el.style.top = rect.top + 'px';
|
|
188
|
+
// }, 0);
|
|
189
|
+
// }
|
|
190
|
+
// }}
|
|
191
|
+
ref: el => {
|
|
192
|
+
if (el && this.openMenus[parentLi]) {
|
|
193
|
+
setTimeout(() => {
|
|
194
|
+
const parent = el.closest('li');
|
|
195
|
+
if (!parent)
|
|
196
|
+
return;
|
|
197
|
+
const rect = parent.getBoundingClientRect();
|
|
198
|
+
const submenuRect = el.getBoundingClientRect();
|
|
199
|
+
const viewportHeight = window.innerHeight;
|
|
200
|
+
let top = rect.top;
|
|
201
|
+
if (rect.top + submenuRect.height > viewportHeight) {
|
|
202
|
+
const diff = rect.top + submenuRect.height - viewportHeight;
|
|
203
|
+
top = Math.max(rect.top - diff - 10, 10);
|
|
204
|
+
}
|
|
205
|
+
el.style.top = top + 'px';
|
|
206
|
+
}, 0);
|
|
207
|
+
}
|
|
208
|
+
} }, subMenu[0].headerLabel && h("h6", { class: "dda-side-nav__title" }, subMenu[0].headerLabel), h("ol", null, subMenu.map((item, index) => {
|
|
181
209
|
const currentIndex = `${parentLi}-${index}`;
|
|
182
210
|
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 => {
|
|
183
211
|
this.handleMenuClick(e, item, currentIndex);
|
|
@@ -308,13 +336,9 @@ export class DdaHeader {
|
|
|
308
336
|
}
|
|
309
337
|
render() {
|
|
310
338
|
const sideMenuItems = this.parseJsonArray(this.sideMenuItems);
|
|
311
|
-
return (h("header", { key: '
|
|
339
|
+
return (h("header", { key: '2b4fa55f5dd9004fe6f40d3a492c81b7d0592f11', class: 'dda-header' }, h("div", { key: 'a843f7013c7b835d9f8cdb1fa0389178f796c376', class: "dda-head-logo" }, h("a", { key: '5917cf2493a2b44518d37e090e9230a2a960710e', href: this.useNavigator == 'true' ? 'javascript:void(0)' : this.firstLogoHref, onClick: () => (this.useNavigator == 'true' ? this.navigatorClick.emit(this.firstLogoHref) : ''), class: "govt-logo", target: this.firstLogoTarget, rel: "noopener noreferrer" }, h("img", { key: 'b2465b43a1e52eda2f0a88ca8efdbde26c7d0dbc', class: "logo-white", src: this.firstLogoWhiteSrc, alt: `${this.firstLogoAlt} White` }), h("img", { key: '9e8b6f30350357b63774381d88f92cfbd358fd25', class: "logo-colored", src: this.firstLogoSrc, alt: this.firstLogoAlt })), h("a", { key: 'a891cb7b67c91b87e45edcabd1c5257bff0052fd', href: this.useNavigator == 'true' ? 'javascript:void(0)' : this.secondLogoHref, onClick: () => (this.useNavigator == 'true' ? this.navigatorClick.emit(this.secondLogoHref) : ''), class: "entt-logo" }, h("img", { key: '21bf57b1e19d38d901a27b24990b56ed2173ca61', class: "logo-white", src: this.secondLogoWhiteSrc, alt: `${this.secondLogoAlt} White` }), h("img", { key: 'ebc5fb30f29242082c946fed15a372103cf95e2b', class: "logo-colored", src: this.secondLogoSrc, alt: this.secondLogoAlt }))), h("div", { key: 'cf9dd0bbe837b4b89b22a80fb7ec266066e9a23e', class: "dda-menu-container" }, h("div", { key: 'e7d850797fc2fd1741dc33beb8f8070898eacb7e', class: "dda-main-navigation" }, h("div", { key: '0ccd59c3572e277c8082e8a9ef2efa5e53087287', class: `dda-menu-overley ${this.isMenuOpen ? 'show-overley' : ''}`, onClick: this.toggleMenu }), h("div", { key: 'e02bd0d66f3d315b0d051ba338b3357ae43566c1', class: "hamburger-menu", onClick: this.toggleMenu }, h("dda-tooltip", { key: '5834c4033a7d9b1c2c9e94c582fe67cd8840be37', title_text: this.hamburger_menu_button_name, position: "top", class: "dda-d-block" }, h("button", { key: '467ef292e8b4ae925a0ba4d019f7f12306d8f2a4', type: "button", class: "hamburger-menu-btn", name: this.hamburger_menu_button_name }, h("span", { key: 'bdbc8f31b998774e4d2746eb141228b74256134b', class: "hamburger-line" }), h("span", { key: '848048859627f9c2534543f473d6a26555ad1ff9', class: "hamburger-menu-text" }, this.hamburger_menu_button_name)))), h("div", { key: 'bb89fd52b976955ace236c811f10b59ba7599656', class: "dda-sidemenu", style: { display: this.isMenuOpen ? 'block' : '', insetInlineStart: this.isMenuOpen ? '0px' : '' } }, h("div", { key: '458e6702138d899eb43fab2af16df5b17964f002', class: "dda-sidemenu-content" }, h("h6", { key: '282d0dbee6babef6f1ed37a208b0ce9a4f82d7ed', class: "dda-side-nav-title" }, this.sideMainMenuTitle), h("ul", { key: 'e12511de5bba98165c54bdd300f6a51b062d8572', class: "main_side_menu" }, sideMenuItems.map((menu, index) => {
|
|
312
340
|
const currentIndex = `menu-${index}`;
|
|
313
|
-
return (h("li", { key: currentIndex, id: `header_${menu.label}` }, h("a", {
|
|
314
|
-
// href={menu.href}
|
|
315
|
-
href: this.useNavigator == 'true' ? 'javascript:void(0)' : menu.href,
|
|
316
|
-
// class={menu.subMenu && menu.subMenu.length > 0 ? 'showSub' : ''}
|
|
317
|
-
class: [
|
|
341
|
+
return (h("li", { key: currentIndex, id: `header_${menu.label}` }, h("a", { href: this.useNavigator == 'true' ? 'javascript:void(0)' : menu.href, class: [
|
|
318
342
|
menu.subMenu && menu.subMenu.length > 0 ? 'showSub' : '',
|
|
319
343
|
menu.active === 'true' ? 'active' : ''
|
|
320
344
|
]
|
|
@@ -342,13 +366,12 @@ export class DdaHeader {
|
|
|
342
366
|
this.navigatorClick.emit(menu.href);
|
|
343
367
|
}
|
|
344
368
|
}
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
})), this.hideOtherMenu == false && h("h6", { key: '88e480a1c8e830690365a55d529332fcea632b35', class: "dda-side-nav-title" }, this.sideOtherMenuTitle), !this.hideOtherMenu && (h("ul", { key: '20b70b2c839e58df63c75ec355b07a6bc2bfd3c7', 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, class: {
|
|
369
|
+
} }, menu.label), this.renderSubMenu(menu.subMenu, currentIndex)));
|
|
370
|
+
})), this.hideOtherMenu == false && h("h6", { key: 'a9d47b8de1b3896dda81e22e3beafa57bfa24e42', class: "dda-side-nav-title" }, this.sideOtherMenuTitle), !this.hideOtherMenu && (h("ul", { key: '8e6920c0eb8383b4e1a5da31c88f8c12db2a408f', 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, class: {
|
|
348
371
|
active: itemlist['active'] === 'true',
|
|
349
|
-
}, onClick: () => (this.useNavigator == 'true' ? this.navigatorClick.emit(itemlist.href) : '') }, itemlist.label))))))), h("div", { key: '
|
|
372
|
+
}, onClick: () => (this.useNavigator == 'true' ? this.navigatorClick.emit(itemlist.href) : '') }, itemlist.label)))))), h("button", { key: 'b8347c98a8c1de35a7b3ee8cbbbc0cef3389206b', 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: '7e60fd1e58b44d67c252577029f903af0523e4d3', class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, "close"))), h("div", { key: 'b0ab77f5e09e07fe0cbdf0e4b185020d041b50fb', class: "dda-sidemenu-bottom" }, h("div", { key: '2f5d44c82d26990aa5bbec5fa6a0ed67305754de', class: "dda-sidemenu-gov-logo" }, h("a", { key: '563ff1f1f20afb4d393cc4934bbfd772f5a4298c', 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: 'c6b2f76b1a8c8bdb2d146169c00cd314b18f16a9', class: "", src: this.firstLogoSrc, alt: this.firstLogoAlt }))), h("div", { key: 'c7b6c6cefdc1fd1aa123cc0563ab4c07a6f567fb', class: "dda-toolbar-menu-sidemenu" }, h("ul", { key: '986b22e5512f15b6d5406183d6d7776aced51354' }, this.accessibility_button_id && (h("li", { key: '5c005c1bc0a88b4bef2276f0f1922b8877d877aa' }, h("button", { key: '03b5869a158bc9539b87960acefe193d7f235fd2', name: this.toggle_accessibility_button_name, class: "tool-btn accessibility-btn", type: "button", onClick: this.toggleMobileAccessibilty, id: this.accessibility_button_id }, h("i", { key: '338033c97c6d3f4e481f9ed2d4e949eab11a2634', class: this.accessibility_button_icon_family }, this.accessibility_button_icon_name), h("span", { key: '8a2fc90be54695cefa81df13ed735e39ca05bd93', class: "visually-hidden" }, this.accessibility_button_text)))), this.language_text && (h("li", { key: '39442db375abbe4e812786bd75d79662235cae4a' }, h("button", { key: 'f81180a4a9808bd1a44a76cd8345ee25d3842d93', name: this.language_button_name, class: "tool-btn", type: "button", onClick: this.languagehandler }, this.language_text))), this.loginText && (h("li", { key: '54838fb84f8e9b3176a31a8d626b765be2b0f1ba' }, h("dda-link-button", { key: 'c3deeb4ed7f970fbb4046cf94ec75740cb443bed', button_color: "onsurface-secondary", start_icon: this.loginIcon, custom_class: "tool-btn login-button", link_button_text: this.loginText, onClick: this.toggleLogin,
|
|
350
373
|
// href={this.loginLink}
|
|
351
|
-
href: this.useLoginPopup ? 'javascript:void(0)' : this.loginLink, button_shape: "circle", size: "sm" })))))),
|
|
374
|
+
href: this.useLoginPopup ? 'javascript:void(0)' : this.loginLink, button_shape: "circle", size: "sm" })))))), 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: '17e60d2b64d3450cdc7829a630bfebc7c57e062f', "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: '5a009a45527d9a5c2115760fd1bd841a129315db', class: "dda-mobile-entt-logo" }, h("a", { key: '52b4073e25d0d31c905faabab1c94a8519624e66', href: this.useNavigator == 'true' ? 'javascript:void(0)' : this.secondLogoHref, onClick: () => (this.useNavigator == 'true' ? this.navigatorClick.emit(this.secondLogoHref) : ''), class: "entt-logo" }, h("img", { key: '1e13be9b82915fb77e19840d6dbe9f1cc1ad3819', class: "logo-colored", src: this.secondLogoSrc, alt: this.secondLogoAlt }), h("img", { key: 'c6c81bda608609ec558de4c89e926824d6ca6f93', class: "logo-white", src: this.secondLogoWhiteSrc, alt: this.secondLogoAlt }))), h("div", { key: '97b006f437d75ec8b27e24554df9b56bfd7ff1ee', class: "dda-mobile-search" }, this.mobileMenuSearchId && (h("a", { key: 'c48e5be76b471bdf5cf503b692ea525e9f5a5f6b', 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: '7194871bc48ff2a783bd86e678de063de49ef3b0', class: "visualy-hidden" }, this.searchText || 'Search'), h("i", { key: '92ae3b3c5e146ef8df51d512ef7b86ddbd2bc2eb', class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, "search")))), h("div", { key: '71a24e54fe17861d5369c16b9eb47dc8deabc610', class: "dda-toolbar-menu" }, h("ul", { key: 'd3be2c239014bc04830df7ec6a87708e5d33d11c' }, this.search_input_name && (h("li", { key: '0ffdd3708a4f06363a1a52926ec2c2cc936aa230' }, h("dda-tooltip", { key: '2864373c889e34642c269f4943955d5a6699e334', title_text: this.search_tooltip || 'Search', description: "", position: "top" }, h("div", { key: 'e2451bc401ff4ea6a459ffcc76df013af42bc080', class: "dda-search dda-header-search" }, h("label", { key: 'd5ffe376370c6b60f255c64d31cd765b60fc51f5', id: "ddaSearch-label", class: "visualy-hidden", "aria-hidden": "true" }, this.searchText || 'Search'), h("i", { key: '3a2546a99f9990f9add81ed79824f89b1d45cc29', class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, "search"), h("dda-input", { key: 'fd7fa33ef30326ca0dce0a6a9a50ab17d0eaab16', 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: "", onInputChanged: (e) => {
|
|
352
375
|
this.searchhandler(e.detail.target.value);
|
|
353
376
|
console.log(e.detail.target.value);
|
|
354
377
|
}, onKeyPress: e => {
|
|
@@ -357,7 +380,7 @@ export class DdaHeader {
|
|
|
357
380
|
console.log(e.target.value);
|
|
358
381
|
// Pass the value to the searchhandler
|
|
359
382
|
}
|
|
360
|
-
} }), h("span", { key: '
|
|
383
|
+
} }), h("span", { key: 'f3c7f8b943401f81e07f4ca914b344677fec7d50', id: "validationId", class: "visually-hidden" }, "Enter keywords to search the site."))))), this.accessibility_button_id && (h("li", { key: 'dc6406f095f5386c00b3c0e4d276066071341df1' }, h("dda-tooltip", { key: 'd1dd080b48096bae38a67847a3101c4d1452d486', title_text: this.accessibility_tooltip, position: "top" }, h("button", { key: '8d96493a4e036c1fa11d6e8818a1ca171ee4f575', 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: '098ba5c988e9747b23a38bfb9cbc2dbad2c30401', class: this.accessibility_button_icon_family }, this.accessibility_button_icon_name), h("span", { key: '59bcfed4bc18816869eb70d0576911327807af83', 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: '2e3161882b7f83d4b213d4e48a5b279d61fcf518' }, h("dda-tooltip", { key: 'abc31292e476a458492365e0a75ee38c6f921a4b', title_text: this.language_tooltip, position: "top" }, h("dda-button", { key: 'ec64db79154c52ad71b967eea99ff1fb42a9facc', 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: '180106edd4c2dd0c913a35ee234c17f7567bc5f8' }, h("dda-tooltip", { key: 'cc7b960b53baa7bd6fcf3c48b9c46cf961940655', title_text: this.login_tooltip, position: "top" }, h("dda-link-button", { key: '018cd454e292f0017a9209254f2f024513d1f056', button_color: "onsurface-secondary", start_icon: this.loginIcon, custom_class: "tool-btn login-button", link_button_text: this.loginText, onClick: this.toggleLogin,
|
|
361
384
|
// href={this.loginLink}
|
|
362
385
|
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)));
|
|
363
386
|
}
|