@dubai-design-system/components-js 5.3.1 → 5.3.3
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/CHANGELOG.md +33 -0
- package/MIGRATION.md +3 -3
- package/dist/cjs/dda-accordion.cjs.entry.js +3 -3
- package/dist/cjs/dda-alert.cjs.entry.js +3 -3
- package/dist/cjs/dda-attach-file.cjs.entry.js +4 -4
- package/dist/cjs/dda-avatar.cjs.entry.js +10 -8
- package/dist/cjs/dda-banner-card.cjs.entry.js +5 -5
- package/dist/cjs/dda-banner.cjs.entry.js +3 -3
- package/dist/cjs/dda-breadcrumb.cjs.entry.js +3 -3
- package/dist/cjs/dda-button.cjs.entry.js +3 -3
- package/dist/cjs/dda-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/dda-chip.cjs.entry.js +3 -3
- package/dist/cjs/dda-credit-card.cjs.entry.js +3 -3
- package/dist/cjs/dda-creditcard-field.cjs.entry.js +4 -4
- package/dist/cjs/dda-dropdown.cjs.entry.js +4 -4
- package/dist/cjs/dda-footer.cjs.entry.js +3 -3
- package/dist/cjs/dda-header.cjs.entry.js +39 -6
- package/dist/cjs/dda-home-banner.cjs.entry.js +9 -8
- package/dist/cjs/dda-home-carousel.cjs.entry.js +2 -2
- package/dist/cjs/dda-horizontal-stepper.cjs.entry.js +3 -3
- package/dist/cjs/dda-input.cjs.entry.js +4 -4
- package/dist/cjs/dda-link-button_2.cjs.entry.js +6 -6
- package/dist/cjs/dda-number-field.cjs.entry.js +4 -4
- package/dist/cjs/dda-pagination.cjs.entry.js +3 -3
- package/dist/cjs/dda-phonefield.cjs.entry.js +4 -4
- package/dist/cjs/dda-progressbar.cjs.entry.js +3 -3
- package/dist/cjs/dda-range-slider.cjs.entry.js +3 -3
- package/dist/cjs/dda-scroll-icon.cjs.entry.js +2 -2
- package/dist/cjs/dda-search-input.cjs.entry.js +4 -4
- package/dist/cjs/dda-segmented-tabs.cjs.entry.js +3 -3
- package/dist/cjs/dda-select.cjs.entry.js +13 -5
- package/dist/cjs/dda-sticky-footer.cjs.entry.js +2 -2
- package/dist/cjs/dda-tabs.cjs.entry.js +4 -4
- package/dist/cjs/dda-textarea.cjs.entry.js +36 -5
- package/dist/cjs/dda-toggle.cjs.entry.js +3 -3
- package/dist/cjs/dda-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/dda-ui-card.cjs.entry.js +2 -2
- package/dist/cjs/dda-vertical-stepper.cjs.entry.js +2 -2
- package/dist/cjs/dda.cjs.js +2 -2
- package/dist/cjs/{index-CM4T__Je.js → index-BlhGwU0o.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/dda-accordion/dda-accordion.js +1 -1
- package/dist/collection/components/dda-alert/dda-alert.js +1 -1
- package/dist/collection/components/dda-attach-file/dda-attach-file.js +1 -1
- package/dist/collection/components/dda-avatar/dda-avatar.js +27 -5
- package/dist/collection/components/dda-avatar/dda-avatar.stories.js +3 -1
- package/dist/collection/components/dda-banner/dda-banner.js +1 -1
- package/dist/collection/components/dda-banner-card/dda-banner-card.js +3 -3
- package/dist/collection/components/dda-breadcrumb/dda-breadcrumb.js +2 -2
- package/dist/collection/components/dda-button/dda-button.js +1 -1
- package/dist/collection/components/dda-checkbox/dda-checkbox.js +1 -1
- package/dist/collection/components/dda-chip/dda-chip.js +1 -1
- package/dist/collection/components/dda-credit-card/dda-credit-card.js +1 -1
- package/dist/collection/components/dda-creditcard-field/dda-creditcard-field.js +1 -1
- package/dist/collection/components/dda-dropdown/dda-dropdown.js +1 -1
- package/dist/collection/components/dda-footer/dda-footer.js +1 -1
- package/dist/collection/components/dda-header/dda-header.js +39 -6
- package/dist/collection/components/dda-header/dda-header.stories.js +5 -0
- package/dist/collection/components/dda-home-banner/dda-home-banner.js +6 -5
- package/dist/collection/components/dda-home-banner/dda-home-banner.stories.js +6 -6
- package/dist/collection/components/dda-home-banner/home-banner.css +2 -1
- package/dist/collection/components/dda-home-carousel/dda-home-carousel.js +2 -2
- package/dist/collection/components/dda-input/dda-input.js +1 -1
- package/dist/collection/components/dda-link-button/dda-link-button.js +2 -2
- package/dist/collection/components/dda-number-field/dda-number-field.js +1 -1
- package/dist/collection/components/dda-pagination/dda-pagination.js +1 -1
- package/dist/collection/components/dda-phonefield/dda-phonefield.js +1 -1
- package/dist/collection/components/dda-progressbar/dda-progressbar.js +1 -1
- package/dist/collection/components/dda-radiobutton/dda-radiobutton.css +29 -6
- package/dist/collection/components/dda-radiobutton/dda-radiobutton.js +1 -1
- package/dist/collection/components/dda-range-slider/dda-range-slider.js +2 -2
- package/dist/collection/components/dda-scroll-icon/dda-scroll-icon.js +1 -1
- package/dist/collection/components/dda-search-input/dda-search-input.js +1 -1
- package/dist/collection/components/dda-select/dda-select.js +12 -4
- package/dist/collection/components/dda-sticky-footer/dda-sticky-footer.js +2 -2
- package/dist/collection/components/dda-tabs/dda-tabs.css +2 -1
- package/dist/collection/components/dda-tabs/dda-tabs.js +1 -1
- package/dist/collection/components/dda-textarea/dda-textarea.js +66 -2
- package/dist/collection/components/dda-toggle/dda-toggle.js +1 -1
- package/dist/collection/components/dda-tooltip/dda-tooltip.js +1 -1
- package/dist/collection/components/dda-ui-card/dda-ui-card.js +1 -1
- package/dist/collection/components/segmented-groups/dda-segmented-tabs/dda-segmented-tabs.js +1 -1
- package/dist/collection/components/stepper/dda-horizontal-stepper/dda-horizontal-stepper.js +1 -1
- package/dist/collection/components/stepper/dda-vertical-stepper/dda-vertical-stepper.js +1 -1
- package/dist/collection/global/global.css +29 -6
- package/dist/collection/global/input.css +6 -1
- package/dist/components/dda-accordion.js +1 -1
- package/dist/components/dda-alert.js +1 -1
- package/dist/components/dda-attach-file.js +1 -1
- package/dist/components/dda-avatar.js +1 -1
- package/dist/components/dda-banner-card.js +1 -1
- package/dist/components/dda-banner.js +1 -1
- package/dist/components/dda-breadcrumb.js +1 -1
- package/dist/components/dda-button.js +1 -1
- package/dist/components/dda-checkbox.js +1 -1
- package/dist/components/dda-chip.js +1 -1
- package/dist/components/dda-credit-card.js +1 -1
- package/dist/components/dda-creditcard-field.js +1 -1
- package/dist/components/dda-dropdown.js +1 -1
- package/dist/components/dda-footer.js +1 -1
- package/dist/components/dda-header.js +1 -1
- package/dist/components/dda-home-banner.js +1 -1
- package/dist/components/dda-home-carousel.js +1 -1
- package/dist/components/dda-horizontal-stepper.js +1 -1
- package/dist/components/dda-input.js +1 -1
- package/dist/components/dda-link-button.js +1 -1
- package/dist/components/dda-number-field.js +1 -1
- package/dist/components/dda-pagination.js +1 -1
- package/dist/components/dda-phonefield.js +1 -1
- package/dist/components/dda-progressbar.js +1 -1
- package/dist/components/dda-radiobutton.js +1 -1
- package/dist/components/dda-range-slider.js +1 -1
- package/dist/components/dda-scroll-icon.js +1 -1
- package/dist/components/dda-search-input.js +1 -1
- package/dist/components/dda-segmented-tabs.js +1 -1
- package/dist/components/dda-select.js +1 -1
- package/dist/components/dda-sticky-footer.js +1 -1
- package/dist/components/dda-tabs.js +1 -1
- package/dist/components/dda-textarea.js +1 -1
- package/dist/components/dda-toggle.js +1 -1
- package/dist/components/dda-tooltip.js +1 -1
- package/dist/components/dda-ui-card.js +1 -1
- package/dist/components/dda-vertical-stepper.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/p-BM-NtzGK.js +1 -0
- package/dist/components/p-BhAtUJVx.js +1 -0
- package/dist/components/p-CBtZEcfY.js +1 -0
- package/dist/components/p-CkupecIb.js +1 -0
- package/dist/components/p-SfNNpPT-.js +1 -0
- package/dist/components/p-XBdFBA19.js +1 -0
- package/dist/components/{p-kJRBkcMn.js → p-kuyZN3IZ.js} +1 -1
- package/dist/dda/dda.css +1 -1
- package/dist/dda/dda.esm.js +1 -1
- package/dist/dda/p-09d3353c.entry.js +1 -0
- package/dist/dda/p-1daf1357.entry.js +1 -0
- package/dist/dda/p-212be657.entry.js +1 -0
- package/dist/dda/p-3f733084.entry.js +1 -0
- package/dist/dda/p-461ffb10.entry.js +1 -0
- package/dist/dda/{p-074f8dab.entry.js → p-4b6a42ff.entry.js} +1 -1
- package/dist/dda/p-4e559f7a.entry.js +1 -0
- package/dist/dda/p-501b35eb.entry.js +1 -0
- package/dist/dda/p-53961822.entry.js +1 -0
- package/dist/dda/p-572b8e92.entry.js +1 -0
- package/dist/dda/p-573a117b.entry.js +1 -0
- package/dist/dda/p-59d452b2.entry.js +1 -0
- package/dist/dda/p-59d9d69d.entry.js +1 -0
- package/dist/dda/p-5c7833fd.entry.js +1 -0
- package/dist/dda/p-5d0a01b3.entry.js +1 -0
- package/dist/dda/p-62337c56.entry.js +1 -0
- package/dist/dda/{p-6b358fa8.entry.js → p-71e168f6.entry.js} +1 -1
- package/dist/dda/p-7276ccc3.entry.js +1 -0
- package/dist/dda/p-774ef2ce.entry.js +1 -0
- package/dist/dda/p-7fecb78c.entry.js +1 -0
- package/dist/dda/p-86a47071.entry.js +1 -0
- package/dist/dda/p-8879cddb.entry.js +1 -0
- package/dist/dda/p-894615d0.entry.js +1 -0
- package/dist/dda/p-89720ada.entry.js +1 -0
- package/dist/dda/p-8dcdba6e.entry.js +1 -0
- package/dist/dda/p-8e36ff4a.entry.js +1 -0
- package/dist/dda/p-94aaf1e5.entry.js +1 -0
- package/dist/dda/p-9f92c756.entry.js +1 -0
- package/dist/dda/p-affd6ed9.entry.js +1 -0
- package/dist/dda/{p-c7a4e410.entry.js → p-d40e9d17.entry.js} +1 -1
- package/dist/dda/p-dc582e94.entry.js +1 -0
- package/dist/dda/p-e0fd3288.entry.js +1 -0
- package/dist/dda/p-e73c86ed.entry.js +1 -0
- package/dist/dda/p-eb85a1d2.entry.js +1 -0
- package/dist/dda/p-ec57abee.entry.js +1 -0
- package/dist/dda/p-f36bf43a.entry.js +1 -0
- package/dist/dda/p-qLKOVFws.js +2 -0
- package/dist/esm/dda-accordion.entry.js +3 -3
- package/dist/esm/dda-alert.entry.js +3 -3
- package/dist/esm/dda-attach-file.entry.js +4 -4
- package/dist/esm/dda-avatar.entry.js +10 -8
- package/dist/esm/dda-banner-card.entry.js +5 -5
- package/dist/esm/dda-banner.entry.js +3 -3
- package/dist/esm/dda-breadcrumb.entry.js +3 -3
- package/dist/esm/dda-button.entry.js +3 -3
- package/dist/esm/dda-checkbox.entry.js +3 -3
- package/dist/esm/dda-chip.entry.js +3 -3
- package/dist/esm/dda-credit-card.entry.js +3 -3
- package/dist/esm/dda-creditcard-field.entry.js +4 -4
- package/dist/esm/dda-dropdown.entry.js +4 -4
- package/dist/esm/dda-footer.entry.js +3 -3
- package/dist/esm/dda-header.entry.js +39 -6
- package/dist/esm/dda-home-banner.entry.js +9 -8
- package/dist/esm/dda-home-carousel.entry.js +2 -2
- package/dist/esm/dda-horizontal-stepper.entry.js +3 -3
- package/dist/esm/dda-input.entry.js +4 -4
- package/dist/esm/dda-link-button_2.entry.js +6 -6
- package/dist/esm/dda-number-field.entry.js +4 -4
- package/dist/esm/dda-pagination.entry.js +3 -3
- package/dist/esm/dda-phonefield.entry.js +4 -4
- package/dist/esm/dda-progressbar.entry.js +3 -3
- package/dist/esm/dda-range-slider.entry.js +3 -3
- package/dist/esm/dda-scroll-icon.entry.js +2 -2
- package/dist/esm/dda-search-input.entry.js +4 -4
- package/dist/esm/dda-segmented-tabs.entry.js +3 -3
- package/dist/esm/dda-select.entry.js +13 -5
- package/dist/esm/dda-sticky-footer.entry.js +2 -2
- package/dist/esm/dda-tabs.entry.js +4 -4
- package/dist/esm/dda-textarea.entry.js +36 -5
- package/dist/esm/dda-toggle.entry.js +3 -3
- package/dist/esm/dda-tooltip.entry.js +3 -3
- package/dist/esm/dda-ui-card.entry.js +2 -2
- package/dist/esm/dda-vertical-stepper.entry.js +2 -2
- package/dist/esm/dda.js +3 -3
- package/dist/esm/{index-BJOt1fv7.js → index-qLKOVFws.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/dda-avatar/dda-avatar.d.ts +2 -0
- package/dist/types/components/dda-avatar/dda-avatar.stories.d.ts +4 -0
- package/dist/types/components/dda-header/dda-header.d.ts +3 -0
- package/dist/types/components/dda-textarea/dda-textarea.d.ts +4 -0
- package/dist/types/components.d.ts +22 -0
- package/package.json +1 -1
- package/dist/components/p-BUv5-HOm.js +0 -1
- package/dist/components/p-BvEnF2US.js +0 -1
- package/dist/components/p-C8EPNbJC.js +0 -1
- package/dist/components/p-CS5LPB9B.js +0 -1
- package/dist/components/p-CedhFs0i.js +0 -1
- package/dist/components/p-DHgv6zQy.js +0 -1
- package/dist/dda/p-1a0d490e.entry.js +0 -1
- package/dist/dda/p-1c42a19b.entry.js +0 -1
- package/dist/dda/p-1eb0af5a.entry.js +0 -1
- package/dist/dda/p-215629d6.entry.js +0 -1
- package/dist/dda/p-221613e8.entry.js +0 -1
- package/dist/dda/p-284bc873.entry.js +0 -1
- package/dist/dda/p-2f99af01.entry.js +0 -1
- package/dist/dda/p-3003acb0.entry.js +0 -1
- package/dist/dda/p-5b314403.entry.js +0 -1
- package/dist/dda/p-5b669c2f.entry.js +0 -1
- package/dist/dda/p-5fe5c488.entry.js +0 -1
- package/dist/dda/p-6577d6b5.entry.js +0 -1
- package/dist/dda/p-6e6ce5c8.entry.js +0 -1
- package/dist/dda/p-70a20025.entry.js +0 -1
- package/dist/dda/p-78ff5172.entry.js +0 -1
- package/dist/dda/p-7afdde8a.entry.js +0 -1
- package/dist/dda/p-7ba8071a.entry.js +0 -1
- package/dist/dda/p-7d20f926.entry.js +0 -1
- package/dist/dda/p-806de72d.entry.js +0 -1
- package/dist/dda/p-922d33f8.entry.js +0 -1
- package/dist/dda/p-9a9e372d.entry.js +0 -1
- package/dist/dda/p-9c3b7bf8.entry.js +0 -1
- package/dist/dda/p-BJOt1fv7.js +0 -2
- package/dist/dda/p-a19303b5.entry.js +0 -1
- package/dist/dda/p-c9e411cb.entry.js +0 -1
- package/dist/dda/p-cd1d47cb.entry.js +0 -1
- package/dist/dda/p-cfdbbd1a.entry.js +0 -1
- package/dist/dda/p-d114dea3.entry.js +0 -1
- package/dist/dda/p-db565a30.entry.js +0 -1
- package/dist/dda/p-e6043272.entry.js +0 -1
- package/dist/dda/p-ef52ec1e.entry.js +0 -1
- package/dist/dda/p-f2c9d77a.entry.js +0 -1
- package/dist/dda/p-faccb313.entry.js +0 -1
- package/dist/dda/p-fdf0dce8.entry.js +0 -1
|
@@ -47,6 +47,28 @@ export class DdaHeader {
|
|
|
47
47
|
this.activeSubIndex = null;
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
|
+
// Places an open mega menu panel. It starts under its link (CSS). When it does not fit there, it
|
|
51
|
+
// flips so that its far edge meets the far edge of the link, and it opens back toward the start of
|
|
52
|
+
// the nav. Only when it still does not fit is it clamped, 16px inside the screen. All positions are
|
|
53
|
+
// measured from the inline start, so the same code works in RTL.
|
|
54
|
+
this.alignMegaPanel = () => {
|
|
55
|
+
const panel = this.el.querySelector('.megamenu-content.showSubMenu');
|
|
56
|
+
const link = panel === null || panel === void 0 ? void 0 : panel.parentElement;
|
|
57
|
+
if (!panel || !link)
|
|
58
|
+
return;
|
|
59
|
+
panel.style.removeProperty('--dda-mega-shift');
|
|
60
|
+
const gutter = 16;
|
|
61
|
+
const viewport = document.documentElement.clientWidth;
|
|
62
|
+
const rtl = getComputedStyle(panel).direction === 'rtl';
|
|
63
|
+
const fromStart = (rect) => (rtl ? { start: viewport - rect.right, end: viewport - rect.left } : { start: rect.left, end: rect.right });
|
|
64
|
+
const linkEdges = fromStart(link.getBoundingClientRect());
|
|
65
|
+
const width = panel.getBoundingClientRect().width;
|
|
66
|
+
const lastStart = viewport - gutter - width;
|
|
67
|
+
if (linkEdges.start <= lastStart)
|
|
68
|
+
return;
|
|
69
|
+
const start = Math.max(gutter, linkEdges.end - width);
|
|
70
|
+
panel.style.setProperty('--dda-mega-shift', `${start - linkEdges.start}px`);
|
|
71
|
+
};
|
|
50
72
|
this.handleSearchSubmit = (event) => {
|
|
51
73
|
const input = event.currentTarget.querySelector('input');
|
|
52
74
|
const query = input.value.trim();
|
|
@@ -221,6 +243,10 @@ export class DdaHeader {
|
|
|
221
243
|
document.addEventListener('keydown', this.toggleEscapeKey);
|
|
222
244
|
document.addEventListener('click', this.handleOutsideAccessibilityClick);
|
|
223
245
|
document.addEventListener('click', this.handleOutsideMegaMenuClick);
|
|
246
|
+
window.addEventListener('resize', this.alignMegaPanel);
|
|
247
|
+
}
|
|
248
|
+
componentDidRender() {
|
|
249
|
+
this.alignMegaPanel();
|
|
224
250
|
}
|
|
225
251
|
disconnectedCallback() {
|
|
226
252
|
window.removeEventListener('scroll', this.handleScroll);
|
|
@@ -228,8 +254,15 @@ export class DdaHeader {
|
|
|
228
254
|
document.removeEventListener('keydown', this.toggleEscapeKey);
|
|
229
255
|
document.removeEventListener('click', this.handleOutsideAccessibilityClick);
|
|
230
256
|
document.removeEventListener('click', this.handleOutsideMegaMenuClick);
|
|
257
|
+
window.removeEventListener('resize', this.alignMegaPanel);
|
|
231
258
|
this.lockPageScroll(false);
|
|
232
259
|
}
|
|
260
|
+
// The language buttons carry lang={language_lang}; their writing direction must match it, or HTML
|
|
261
|
+
// checkers flag lang="ar" inside an LTR page. Right-to-left: Arabic, Hebrew, Persian, Urdu.
|
|
262
|
+
get languageDir() {
|
|
263
|
+
const primary = (this.language_lang || '').toLowerCase().split('-')[0];
|
|
264
|
+
return ['ar', 'he', 'fa', 'ur'].includes(primary) ? 'rtl' : 'ltr';
|
|
265
|
+
}
|
|
233
266
|
// While the side menu is open, the page underneath must not scroll; the menu itself still does.
|
|
234
267
|
onMenuOpenChange(isOpen) {
|
|
235
268
|
this.lockPageScroll(isOpen);
|
|
@@ -355,7 +388,7 @@ export class DdaHeader {
|
|
|
355
388
|
const otherMenuItems = parseJsonProp(this.otherMenuItems, 'other-menu-items');
|
|
356
389
|
// The transparent style is opt-in at page level (<body class="transparent">);
|
|
357
390
|
// CSS shows the white or colored logo to match.
|
|
358
|
-
return (h("header", { key: '
|
|
391
|
+
return (h("header", { key: '455fd1eb161dfaebc37ff61dcbde16f0ddbfecce', class: "dda-header" }, h("div", { key: '8046abf9b4f8169add202e4969caa0cedaa8a955', class: "dda-head-logo" }, this.firstLogoSrc && (h("a", { key: 'd4582fff9001ed0f9383cf4df0d9b03f60d27ac4', href: this.firstLogoHref, class: "govt-logo" }, h("img", { key: 'c39d2e0cfdb0ad914bf86920c87ad376c21d44ef', class: "logo-colored", src: this.firstLogoSrc, alt: this.firstLogoAlt }), h("img", { key: '542301869402f7a1ef4087f3c401684229f71d68', class: "logo-white", src: this.firstLogoWhiteSrc || this.firstLogoSrc, alt: this.firstLogoAlt }))), this.secondLogoSrc && (h("a", { key: '7d3ac8a9c35cb8feae0d993604ecf5b24140cb76', href: this.secondLogoHref, class: "entt-logo" }, h("img", { key: '9188ba86a36d16eab6e0a9d3e83f47f02e17b98a', class: "logo-colored", src: this.secondLogoSrc, alt: this.secondLogoAlt }), h("img", { key: '8492e554fd73b3c0d8be57b2d7f239b632f77ed7', class: "logo-white", src: this.secondLogoWhiteSrc || this.secondLogoSrc, alt: this.secondLogoAlt })))), h("div", { key: '1bab21ba0c909b1165b45122854c9002a5f45a41', class: "dda-menu-container" }, h("div", { key: '596643d56048319c6b380a2a450addd2067e0812', class: "dda-main-navigation" }, h("div", { key: '1d9836ab230253272f8bce6d71207d0f033a56d6', class: `dda-menu-overley ${this.isMenuOpen ? 'show-overley' : ''}`, onClick: this.toggleMenu }), h("div", { key: '3ce4463c9d157337f997afdca7746a3ac06a2bcd', class: "hamburger-menu", onClick: this.toggleMenu }, h("dda-tooltip", { key: '910bec5d0b05f2b2a77dc75f0b329f7c14f9fe90', title_text: this.tooltip(this.menu_button_label, 'Menu'), position: "top", class: "d-block" }, h("button", { key: 'e69a9bdcd616344b00fcc1d98c22a24d3b892ef7', type: "button", class: "hamburger-menu-btn", name: this.hamburger_menu_button_name }, h("span", { key: '1a59c8a97c405ed03476b09b108441966fb1037b', class: "hamburger-line" }), h("span", { key: '7afda43cb69d94184aadc1018ca2bdf1a199b25d', class: "hamburger-menu-text" }, this.menu_button_label)))), h("div", { key: '6a4030d10694385be6a6ed7d27cfdfa2196e85c6', class: "dda-sidemenu", style: { display: this.isMenuOpen ? 'block' : '', insetInlineStart: this.isMenuOpen ? '0px' : '' } }, h("div", { key: '00a5547f22c2edc860969d93df850f860b5f6dc2', class: "dda-sidemenu-content" }, this.text(this.sideMainMenuTitle, 'Quick Links') && h("p", { key: 'fa231b992f86a47059e4f47ee16f2f960c9c5dbf', class: "dda-side-nav-title" }, this.text(this.sideMainMenuTitle, 'Quick Links')), h("ul", { key: 'de65a424b209046279da9de2b0b22fbd8f7e6a11', class: "main_side_menu" }, sideMenuItems.map((menu, index) => {
|
|
359
392
|
const currentIndex = `menu-${index}`;
|
|
360
393
|
return (h("li", { key: currentIndex }, h("a", { href: menu.href, class: menu.subMenu && menu.subMenu.length > 0 ? 'showSub' : '', onClick: (e) => {
|
|
361
394
|
if (menu.subMenu && menu.subMenu.length > 0) {
|
|
@@ -364,13 +397,13 @@ export class DdaHeader {
|
|
|
364
397
|
}
|
|
365
398
|
} }, menu.label), this.renderSubMenu(menu.subMenu, currentIndex)));
|
|
366
399
|
})), !this.hideOtherMenu && otherMenuItems.length > 0 && [
|
|
367
|
-
this.sideOtherMenuTitle && h("p", { key: '
|
|
368
|
-
h("ul", { key: '
|
|
369
|
-
]), h("div", { key: '
|
|
400
|
+
this.sideOtherMenuTitle && h("p", { key: 'c0158d54c0c91d07c10805abd2642b05544dc41b', class: "dda-side-nav-title" }, this.sideOtherMenuTitle),
|
|
401
|
+
h("ul", { key: 'a31e87d2f1c0bef6ec099ac5e8deba3c18215b65', class: "main_side_menu" }, otherMenuItems.map((item, index) => (h("li", { key: `other-${index}` }, h("a", { href: item.href, class: item.active === 'true' ? 'active' : '', "aria-current": item.active === 'true' ? 'page' : undefined }, item.label))))),
|
|
402
|
+
]), h("div", { key: '451423e7cf019b068d8b6b6fb2377abb3b39af62', class: "dda-sidemenu-bottom" }, h("div", { key: '76aedbeadee676441cdfa8b19d4bbf449a20652e', class: "dda-sidemenu-gov-logo" }, this.firstLogoSrc && (h("a", { key: '1e4bb747481c5700972a56b0a8bd684c41641fbc', href: this.firstLogoHref, class: "govt-logo mb-2" }, h("img", { key: '21b1d0158afcf76f774dad2c182ebf62f6642d6b', class: "", src: this.firstLogoSrc, alt: this.firstLogoAlt })))), h("div", { key: 'e9680109848629266078a0f829ad70c8b529b97c', class: "dda-toolbar-menu-sidemenu" }, h("ul", { key: '3553b65d4981ef2bed67a7dad70909055fda9c81' }, h("li", { key: '71a726181e6914dd7a00e3c128653e1f82adeee8' }, this.renderAccessibilityButton('mobile')), this.languageLabel && (h("li", { key: '06f03f22203c8d86fc3a1a77f39cc508b38a2e28' }, h("button", { key: 'b1d3f76ac25f963b263109eadbd825119091db60', name: this.language_button_name, class: "tool-btn", type: "button", lang: this.language_lang, dir: this.languageDir, onClick: this.languagehandler }, this.languageLabel))), this.showLogin && (h("li", { key: '31734474010185e2baef74157a18b21a5a2c0120' }, h("dda-link-button", { key: '8e2065aaeb9317f7ec674c8938096443e0ec995d', button_color: "onsurface-secondary", start_icon: this.loginIcon || 'sentiment_satisfied', custom_class: "tool-btn", href: this.loginLink, button_shape: "circle", size: "sm" }, this.loginLabel)))))), h("button", { key: '665671ddb87d77a5a4e5db34569cbe27d7e403c8', name: this.close_menu_button_name, class: "close-btn side-nav-close-btn", "aria-label": "Close Sidebar", onClick: this.toggleMenu }, h("i", { key: '95737fcf899b1d398f629831c0a81ce27dc974f3', class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, "close")), this.usePredesignedAccessibilityMenu && (h("div", { key: '859a3364a1654cfce89b7b7cad4c64a4c0ebd9b8', class: "dda-accessibility hide-accessibility mobile-accessibility", style: { display: this.isAccessibiltyOpen ? 'block' : 'none' } }, this.renderAccessibilityColumns('mobile'), h("button", { key: '84ff5a8868be7c9fd5318d41180045a292380ceb', name: this.close_accessibility_button_name, class: "close-btn close_accessibility", "aria-label": "Close Accessibility", onClick: this.toggleAccessibilty }, h("i", { key: '0a8c474bf4a757577fb9f94f60cd4131fcd68be4', class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, "close"))))), h("div", { key: 'a7f3899adc12155fc64387702c957f41f84faa52' }, h("ul", { key: '7c81ea090d8aaf8eea841b4ff765e17c8bef7dc9', class: "dda-mega-menu" }, quickLinks.map((link, index) => {
|
|
370
403
|
const hasSub = link.kind !== 'link';
|
|
371
404
|
const isOpen = this.activeMenuIndex === index;
|
|
372
405
|
return (h("li", { key: index }, h("a", { href: hasSub ? '#' : link.href, onClick: hasSub ? (e) => this.toggleSubMenu(index, e) : undefined, class: { showSub: hasSub, icon_arrow: hasSub && isOpen, active: link.active }, "aria-expanded": hasSub ? String(isOpen) : undefined, "aria-controls": hasSub ? this.menuPanelId(index) : undefined, "aria-current": link.active && !hasSub ? 'page' : undefined }, link.label), link.kind === 'dropdown' && this.renderDropdown(link, index), link.kind === 'mega' && this.renderMega(link, index)));
|
|
373
|
-
})))), h("div", { key: '
|
|
406
|
+
})))), h("div", { key: '9817dd76c9b01aacdbafae3d7810cad8758c22dd', class: "dda-mobile-entt-logo" }, this.secondLogoSrc && (h("a", { key: 'bcd6d11231fbc2ee8ff798c07c2b1246d20aab5d', href: this.secondLogoHref, class: "entt-logo" }, h("img", { key: 'be1a0b4d80898bb1f5362b14bcb52f457b031a88', class: "logo-colored", src: this.secondLogoSrc, alt: this.secondLogoAlt }), h("img", { key: '4f14b9d5c16f06db9f8bad32cef160dc51a328aa', class: "logo-white", src: this.secondLogoWhiteSrc || this.secondLogoSrc, alt: this.secondLogoAlt })))), h("div", { key: 'bd69cae846dc4b9acb422aa8ac6c01908906f60e', class: "dda-mobile-search" }, this.mobileMenuSearchUrl ? (h("a", { id: this.mobileMenuSearchId, href: this.mobileMenuSearchUrl, class: "tool-btn" }, h("span", { class: "visually-hidden" }, this.searchText || 'Search'), h("i", { class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, "search"))) : (h("button", { id: this.mobileMenuSearchId, name: this.search_button_name, class: "tool-btn", type: "button", "aria-expanded": this.isSearchOpen ? 'true' : 'false', "aria-controls": `${this.searchId}-mobile-panel`, onClick: this.isSearchOpen ? this.closeMobileSearch : this.openMobileSearch, ref: el => (this.mobileSearchButton = el) }, h("span", { class: "visually-hidden" }, this.searchText || 'Search'), h("i", { class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, "search")))), !this.mobileMenuSearchUrl && (h("div", { key: 'b0f310b0ceb74283eb06f12fc362c4f615e2bacf', id: `${this.searchId}-mobile-panel`, class: "dda-mobile-search-panel", hidden: !this.isSearchOpen }, h("form", { key: '79dcb2842a2c72b73d7d8e8096149359a98339b6', class: "dda-mobile-search-form", role: "search", method: "get", action: this.search_action, onSubmit: this.handleSearchSubmit }, this.renderSearchInput(`${this.searchId}-mobile`, el => (this.mobileSearchInput = el)), h("button", { key: 'da6a807064cb1c20335bfef472b929836067fc23', type: "button", class: "dda-mobile-search-close", "aria-label": "Close search", onClick: this.closeMobileSearch }, h("i", { key: 'be173a2d8395d8ebac933cb2032494118afd023a', class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, "close"))))), h("div", { key: 'ffa5a27292d7f3037a14ddb874c7cba8fd54e6db', class: "dda-toolbar-menu" }, h("ul", { key: '262b9292f62ef240d2db1ead02e41d9942bc97b3' }, h("li", { key: '57a70ccdfb0b472206b9587b982a63fa26f13d58' }, h("dda-tooltip", { key: 'c992d238995a385584b06425a495e11ac84c35c9', title_text: this.tooltip(this.search_tooltip, 'Search'), description: "", position: "top" }, h("form", { key: 'ec6ad8a0220da4a551a8f6a849cbff31d65b5f31', class: "dda-search dda-btn btn-color-onsurface-secondary btn-size-sm btn-shape-circle tool-btn", role: "search", method: "get", action: this.search_action, onSubmit: this.handleSearchSubmit }, this.renderSearchInput(this.searchId)))), h("li", { key: 'bd64b500353b399d47467a70ac3a45fb1efa979e' }, h("dda-tooltip", { key: 'd5a5da99a032b064038f71acd78d2a9230980e3e', title_text: this.tooltip(this.accessibility_tooltip, 'Accessibility'), position: "top" }, this.renderAccessibilityButton('desktop')), this.usePredesignedAccessibilityMenu && (h("div", { key: 'efc21cd4d2e6ba157d94865fd17a19f3baff5392', class: "dda-accessibility-wrap" }, h("div", { key: '4e2887c081af46a1983d4e05b2f9d0c1e7a51e83', class: "dda-accessibility hide-accessibility", style: { display: this.isAccessibiltyOpen ? 'block' : 'none' } }, this.renderAccessibilityColumns('desktop'), h("button", { key: 'b24ad2e30dbb395945f68899ad3847549a3c661e', name: this.close_accessibility_button_name, class: "close-btn close_accessibility", "aria-label": "Close Sidebar", onClick: this.toggleAccessibilty }, h("i", { key: '90e671ba67beaac967b5c24526e668b70dd92f07', class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, "close")))))), this.languageLabel && (h("li", { key: 'feacbfd7e1168da7051148369c6b130d7f5616c5' }, h("dda-tooltip", { key: 'f016c7f2a2e6ec9e9d0527af6f0e6aaae89cb9d8', title_text: this.tooltip(this.language_tooltip, 'Language'), position: "top" }, h("dda-button", { key: '8912a25ae1248af302ee0df99b603b66d24cbc49', button_color: "onsurface-secondary", custom_class: "tool-btn", button_shape: "circle", size: "sm", lang: this.language_lang, dir: this.languageDir, onClick: this.languagehandler }, this.languageLabel)))), this.showLogin && (h("li", { key: 'e6b2a2a956b21017d61ce5332da6fb3ad5b0fe79' }, h("dda-tooltip", { key: '7784b7fc7421e3938d6e7398b73784ef98817430', title_text: this.tooltip(this.login_tooltip, this.loginLabel), position: "top" }, h("dda-link-button", { key: 'cf0a83e005d202d12302b09d76de099d7f104f95', button_color: "onsurface-secondary", start_icon: this.loginIcon || 'sentiment_satisfied', custom_class: "tool-btn", href: this.loginLink, button_shape: "circle", size: "sm" }, this.loginLabel)))))))));
|
|
374
407
|
}
|
|
375
408
|
static get is() { return "dda-header"; }
|
|
376
409
|
static get originalStyleUrls() {
|
|
@@ -706,7 +739,7 @@ export class DdaHeader {
|
|
|
706
739
|
"references": {
|
|
707
740
|
"QuickLinkItem": {
|
|
708
741
|
"location": "local",
|
|
709
|
-
"path": "/
|
|
742
|
+
"path": "/home/runner/work/dubai-design-system/dubai-design-system/packages/stencil/src/components/dda-header/dda-header.tsx",
|
|
710
743
|
"id": "src/components/dda-header/dda-header.tsx::QuickLinkItem"
|
|
711
744
|
}
|
|
712
745
|
}
|
|
@@ -356,6 +356,11 @@ WithoutLogin.args = Object.assign(Object.assign({}, Default.args), { hide_login:
|
|
|
356
356
|
export const Arabic3x = () => `
|
|
357
357
|
<div dir="rtl" lang="ar">
|
|
358
358
|
<dda-header
|
|
359
|
+
first-logo-src="https://www.dof.gov.ae/Style Library/img/gov-logo.svg"
|
|
360
|
+
first-logo-white-src="https://www.dof.gov.ae/Style Library/img/gov-logo-white.svg"
|
|
361
|
+
first-logo-alt="حكومة دبي"
|
|
362
|
+
second-logo-src="https://www.digitaldubai.ae/ResourcePackages/Theme/assets/dist/images/logo.svg"
|
|
363
|
+
second-logo-alt="دبي الرقمية"
|
|
359
364
|
contrast_title="تباين الألوان" contrast_description="حدد إعداد تباين الألوان المفضل لديك"
|
|
360
365
|
contrast_noraml_text="الألوان العادية" contrast_color_blind_text="عمى الألوان"
|
|
361
366
|
contrast_red_weakness_text="ضعف أحمر" contrast_green_weakness_text="الضعف الأخضر"
|
|
@@ -93,9 +93,9 @@ export class DdaHomeBanner {
|
|
|
93
93
|
this.startAutoplay();
|
|
94
94
|
}
|
|
95
95
|
componentDidLoad() {
|
|
96
|
-
//
|
|
96
|
+
// Other children are ignored, which otherwise looks like a blank banner.
|
|
97
97
|
if (!this.slides.length) {
|
|
98
|
-
console.warn('dda-home-banner: no
|
|
98
|
+
console.warn('dda-home-banner: no slides found. Each slide must be a <div class="dda-slide"> (or a <slide>) element; other children are not shown.');
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
disconnectedCallback() {
|
|
@@ -157,7 +157,8 @@ export class DdaHomeBanner {
|
|
|
157
157
|
return this.slide_status_label.replace('{current}', String(current)).replace('{total}', String(total));
|
|
158
158
|
}
|
|
159
159
|
updateSlides() {
|
|
160
|
-
|
|
160
|
+
// <div class="dda-slide"> is the valid-HTML form; <slide> still works for existing pages.
|
|
161
|
+
const slides = Array.from(this.el.querySelectorAll('slide, .dda-slide'));
|
|
161
162
|
// The observer watches this.el, which also contains the nav this component renders,
|
|
162
163
|
// so every re-render re-triggers it. Bail unless the slide list actually changed,
|
|
163
164
|
// otherwise assigning to @State here would loop forever.
|
|
@@ -186,10 +187,10 @@ export class DdaHomeBanner {
|
|
|
186
187
|
render() {
|
|
187
188
|
const total = this.slides.length;
|
|
188
189
|
const showAutoplayToggle = this.autoplay && !this.reducedMotion;
|
|
189
|
-
return (h(Host, { key: '
|
|
190
|
+
return (h(Host, { key: '815169560a0c33d7f7cfc541aac3374d0446b5ba', class: "home-slider", role: "region", "aria-roledescription": "carousel", "aria-label": this.aria_label }, h("div", { key: '207061e0670505a6124ea5db823929dcfe123ce3', class: "dda-slider-container" }, h("div", { key: '4493a1548bdf83287fee4e863b196c6cca8a0a25', class: "dda-slides", style: { width: total * 100 + 'vw', left: this.currentSlide * -100 + '%' } }, h("slot", { key: 'ad2e1eb748d294fb6df20bcac8f2f69f7f0a3c0e' })), h("div", { key: '46f8c37a3b8811573f79ebdefb3959243284c01e', class: 'slider-nav' }, showAutoplayToggle && (h("button", { key: 'f5402a5a33e511d3cd517422aac473fb46c6b89e', class: "pause", type: "button", "aria-label": this.isPaused ? this.play_button_label : this.pause_button_label, onClick: this.togglePause }, h("i", { key: '4ead6617484bc37d5faf327f286e31b6f4f8a6cf', class: "material-icons", "aria-hidden": "true" }, this.isPaused ? 'play_arrow' : 'pause'))), h("button", { key: '969aa18028bc698d9896288f08b3533fb97125ce', class: "prev", type: "button", "aria-label": this.previous_button_label, onClick: () => this.prevSlide() }, h("i", { key: '6d1440e810b10a3a6b4666415e71bb7bbc443a0a', class: "material-icons", "aria-hidden": "true" }, "chevron_left")), h("ul", { key: '07c487998d6c1034451213adedddc4e5d35b1df0' }, this.slides.map((_, index) => {
|
|
190
191
|
const isCurrent = this.currentSlide === index;
|
|
191
192
|
return (h("li", null, h("button", { type: "button", class: isCurrent ? 'dots active' : 'dots', "aria-label": `${this.slide_button_label} ${index + 1}`, "aria-current": isCurrent ? 'true' : null, onClick: () => this.setSlide(index) })));
|
|
192
|
-
})), h("button", { key: '
|
|
193
|
+
})), h("button", { key: '8e8a335ea31cdd3a624d50282a9ed949a01ed237', class: "next", type: "button", "aria-label": this.next_button_label, onClick: () => this.nextSlide() }, h("i", { key: '46f171571dc118cf94251c6c20a343801b2501e1', class: "material-icons", "aria-hidden": "true" }, "chevron_right")), this.show_scroll_icon && (h("div", { key: '518d015c6244698ee64e2bb93f57ded68e733cd8', class: { 'dda-mouse-scroll': true, 'dda-mouse-scroll-mobile': this.show_scroll_icon_mobile }, "aria-hidden": "true" }, h("dda-scroll-icon", { key: '837c41cd84c3198cdcc2d9ced1cb7e542ad0b258', scroll_icon_size: "sm", scroll_icon_color: "white" })))), h("div", { key: 'b5ada2285c3b0fba897e372bd477604645039b38', class: "visually-hidden", role: "status", "aria-live": this.isRotating ? 'off' : 'polite' }, total ? this.statusText(this.currentSlide + 1, total) : ''))));
|
|
193
194
|
}
|
|
194
195
|
static get is() { return "dda-home-banner"; }
|
|
195
196
|
static get originalStyleUrls() {
|
|
@@ -2,7 +2,7 @@ const IMG_1 = 'https://images.pexels.com/photos/3680912/pexels-photo-3680912.jpe
|
|
|
2
2
|
const IMG_2 = 'https://images.pexels.com/photos/1470405/pexels-photo-1470405.jpeg';
|
|
3
3
|
const IMG_3 = 'https://images.pexels.com/photos/162031/dubai-tower-arab-emirates-162031.jpeg';
|
|
4
4
|
const slide = (src, alt, title, subtitle) => `
|
|
5
|
-
<slide>
|
|
5
|
+
<div class="dda-slide">
|
|
6
6
|
<img src="${src}" alt="${alt}" />
|
|
7
7
|
<div class="slide-wrap">
|
|
8
8
|
<div class="slide-content">
|
|
@@ -11,7 +11,7 @@ const slide = (src, alt, title, subtitle) => `
|
|
|
11
11
|
<dda-button button_color="default-primary" size="lg">Call to action</dda-button>
|
|
12
12
|
</div>
|
|
13
13
|
</div>
|
|
14
|
-
</
|
|
14
|
+
</div>`;
|
|
15
15
|
export default {
|
|
16
16
|
title: 'Components/Home Banner',
|
|
17
17
|
component: 'dda-home-banner',
|
|
@@ -31,12 +31,12 @@ export default {
|
|
|
31
31
|
docs: {
|
|
32
32
|
description: {
|
|
33
33
|
component: `
|
|
34
|
-
The banner is **slotted** — each slide must be a \`<slide
|
|
35
|
-
|
|
34
|
+
The banner is **slotted** — each slide must be a \`<div class="dda-slide">\`. Other children
|
|
35
|
+
are ignored. The older \`<slide>\` element still works, but HTML checkers reject it.
|
|
36
36
|
|
|
37
37
|
\`\`\`html
|
|
38
38
|
<dda-home-banner autoplay="true" interval="5000">
|
|
39
|
-
<slide>
|
|
39
|
+
<div class="dda-slide">
|
|
40
40
|
<img src="assets/img/home-banner.jpg" alt="Aerial view of Dubai at sunset" />
|
|
41
41
|
<div class="slide-wrap">
|
|
42
42
|
<div class="slide-content">
|
|
@@ -44,7 +44,7 @@ collects slides with \`querySelectorAll('slide')\`, so \`<div>\` children are ig
|
|
|
44
44
|
<p>Pioneering and accelerating the pace of digital transformation in the city</p>
|
|
45
45
|
</div>
|
|
46
46
|
</div>
|
|
47
|
-
</
|
|
47
|
+
</div>
|
|
48
48
|
</dda-home-banner>
|
|
49
49
|
\`\`\`
|
|
50
50
|
|
|
@@ -40,7 +40,7 @@ export class DdaHomeCarousel {
|
|
|
40
40
|
"references": {
|
|
41
41
|
"BannerCardItem": {
|
|
42
42
|
"location": "local",
|
|
43
|
-
"path": "/
|
|
43
|
+
"path": "/home/runner/work/dubai-design-system/dubai-design-system/packages/stencil/src/components/dda-home-carousel/dda-home-carousel.tsx",
|
|
44
44
|
"id": "src/components/dda-home-carousel/dda-home-carousel.tsx::BannerCardItem"
|
|
45
45
|
}
|
|
46
46
|
}
|
|
@@ -154,7 +154,7 @@ export class DdaHomeCarousel {
|
|
|
154
154
|
"references": {
|
|
155
155
|
"BannerCardItem": {
|
|
156
156
|
"location": "local",
|
|
157
|
-
"path": "/
|
|
157
|
+
"path": "/home/runner/work/dubai-design-system/dubai-design-system/packages/stencil/src/components/dda-home-carousel/dda-home-carousel.tsx",
|
|
158
158
|
"id": "src/components/dda-home-carousel/dda-home-carousel.tsx::BannerCardItem"
|
|
159
159
|
}
|
|
160
160
|
}
|
|
@@ -42,7 +42,7 @@ export class DdaInput {
|
|
|
42
42
|
this.input_name,
|
|
43
43
|
].filter(Boolean).join(' ');
|
|
44
44
|
const id = this.inputId;
|
|
45
|
-
return (h(Host, { key: '
|
|
45
|
+
return (h(Host, { key: '2460c075d792faea6cb855ee9d28185a33b250b7' }, h("div", { key: '221bdd52cc2e6c74539e649b3dba7e8925c41917', class: inputClass }, this.label && h("label", { key: '6872e3b69b05329e53b8eb1df062a3de7c3f9831', htmlFor: id, class: "dda-input-label" }, this.label), h("input", { key: 'e65c8fbb0110a6e00c339f7275ecf29b2caa0f79', "aria-label": this.aria_label, id: id, name: this.input_name, type: this.type, autocomplete: this.autocomplete, placeholder: this.placeholder, value: this.value, onInput: (event) => this.handleInput(event), class: "dda-input-field dda-input-text", "aria-describedby": this.describedBy, "aria-invalid": this.error_message ? 'true' : undefined }), this.helper_text && h("span", { key: '51e9cc7b8419a8f8a19f7cd57eb4e26134a279fe', id: this.helperId, class: "dda-helper-text" }, this.helper_text), this.error_message && h("span", { key: '93494c9c3ae51d135e1c3d1ce7c7902a132a7905', id: this.errorId, class: "dda-error-message" }, this.error_message))));
|
|
46
46
|
}
|
|
47
47
|
static get is() { return "dda-input"; }
|
|
48
48
|
static get originalStyleUrls() {
|
|
@@ -33,9 +33,9 @@ export class DdaLinkButton {
|
|
|
33
33
|
this.custom_class, // Include custom class
|
|
34
34
|
this.component_mode,
|
|
35
35
|
].filter(Boolean).join(' ');
|
|
36
|
-
return (h(Host, { key: '
|
|
36
|
+
return (h(Host, { key: '856cc218a6b0ce2579f832c9f62e30c0c200c153' }, h("a", { key: '26490371647ede0bfef4d926aba6e492882ff1f4',
|
|
37
37
|
// type={this.type}
|
|
38
|
-
id: this.button_id, href: this.href, class: linkbuttonClass, "aria-label": this.aria_label }, this.start_icon && h("i", { key: '
|
|
38
|
+
id: this.button_id, href: this.href, class: linkbuttonClass, "aria-label": this.aria_label }, this.start_icon && h("i", { key: '9140bea1916d0d152ffe1e04e7d64a10da061981', class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, this.start_icon), h("slot", { key: '7791fcea22490f0d7fd4cfe50cfe79773696a3d0' }), this.end_icon && h("i", { key: 'a19d4636251e1227bb17724f805b28b8e427dcfa', class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, this.end_icon))));
|
|
39
39
|
}
|
|
40
40
|
static get is() { return "dda-link-button"; }
|
|
41
41
|
static get originalStyleUrls() {
|
|
@@ -72,7 +72,7 @@ export class DdaNumberField {
|
|
|
72
72
|
this.component_mode,
|
|
73
73
|
].filter(Boolean).join(' ');
|
|
74
74
|
const id = this.inputId;
|
|
75
|
-
return (h(Host, { key: '
|
|
75
|
+
return (h(Host, { key: 'fd3a5c8ce325ddd251bdefd1d2043564a81d9cd4' }, h("div", { key: '0935badd7ce102a681a83b374dc4af9a118302d9', class: containerClass }, this.label && h("label", { key: 'c5d45dd841313617c7d1576de6f8777e31847b39', htmlFor: id, class: "dda-input-label" }, this.label), h("div", { key: 'a8f571d9fdaa4eb4d965f256c80bb53dfadbf75d', class: "dda-input-field-group dda-number-field" }, h("input", { key: '0f63cf601b4c004bd738e10d283f3be0b927d83b', id: id, name: this.input_name, "aria-label": this.aria_label, type: "text", placeholder: this.placeholder, value: this.value, pattern: "[0-9]*", onInput: event => this.handleInput(event), onFocus: this.handleFocus.bind(this), onBlur: this.handleBlur.bind(this), class: "dda-field-group-input", "aria-describedby": this.describedBy, "aria-invalid": this.error_message ? 'true' : undefined }), h("div", { key: 'ee20f566f935ec284ff537063b2845cc98787a3a', class: "dda-input-dropdown-btn" }, h("button", { key: '812343d65233cbacb844041557b2cdb96815dc19', name: this.toggle_button_name, type: "button", class: "dda-dropdown-select", "aria-label": this.toggle_button_label ? `${this.toggle_button_label}: ${this.selected_currency}` : undefined, "aria-expanded": this.isCurrencyDropdownOpen ? 'true' : 'false', onClick: () => this.toggleCurrencyDropdown() }, this.selected_currency, " ", h("i", { key: '24cfa3737af0b61c085eef16c08f7abdefa96fd4', class: `material-icons`, "aria-hidden": "true" }, this.isCurrencyDropdownOpen ? 'keyboard_arrow_up' : 'keyboard_arrow_down')), this.isCurrencyDropdownOpen && (h("div", { key: '62a81017715790ba221f89d859c8d401dba8af62', class: "dda-input-dropdown-list" }, this.parsedCurrencies.length > 0 ? (this.parsedCurrencies.map(option => (h("button", { name: this.currency_button_name, type: "button", class: `dda-input-dropdown-item ${this.selected_currency === option ? 'selected' : ''}`, onClick: () => this.selectCurrency(option) }, option)))) : (h("div", { class: "dda-input-dropdown-item" }, "No options available")))))), this.helper_text && h("span", { key: '866410624fe6593f1d8bd26d83697c9651172854', id: this.helperId, class: "dda-helper-text" }, this.helper_text), this.error_message && h("span", { key: '97a63ee6e714d3c68bef679f1cddf9db2719b4a0', id: this.errorId, class: "dda-error-message" }, this.error_message))));
|
|
76
76
|
}
|
|
77
77
|
static get is() { return "dda-number-field"; }
|
|
78
78
|
static get originalStyleUrls() {
|
|
@@ -63,7 +63,7 @@ export class DdaPagination {
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
render() {
|
|
66
|
-
return (h(Host, { key: '
|
|
66
|
+
return (h(Host, { key: '0f40ad0977ba2b432dc8c35710fdbb837baab840' }, h("div", { key: 'b0547a0b3a83292ff9714650b21acebc7051e9fa', class: `dda-pagination-container` }, this.renderPagination())));
|
|
67
67
|
}
|
|
68
68
|
static get is() { return "dda-pagination"; }
|
|
69
69
|
static get originalStyleUrls() {
|
|
@@ -78,7 +78,7 @@ export class DdaPhoneField {
|
|
|
78
78
|
render() {
|
|
79
79
|
const inputClass = `${this.component_mode} ${this.size ? `dda-input-size-${this.size}` : ''} ${this.error_message ? `dda-error-message` : ''} ${this.validation_type ? `dda-validation-${this.validation_type}` : ''} ${this.is_focused ? 'dda-input-focus' : ''} ${this.phone_number ? 'dda-input-focus-filled' : ''}`;
|
|
80
80
|
const id = this.inputId;
|
|
81
|
-
return (h(Host, { key: '
|
|
81
|
+
return (h(Host, { key: '5043945b23408f4e1effb64806f975c783dadd20' }, h("div", { key: '7093a63abae8052aa1b6a4f948b0c5a5c35b1822', class: `dda-input-container ${inputClass} ${this.custom_class} ${this.disabled ? 'dda-input-disabled' : ''}` }, this.label && h("label", { key: '185bb40c54056b1961de3bb77d9d6539c531afe0', htmlFor: id, class: "dda-input-label" }, this.label), h("div", { key: '8e77837e576191326b80b35e38265baa852f245e', class: `dda-input-field-group dda-phone-field` }, h("div", { key: '7e0baea30d88cee6b0f7a5b6981d75dbf170a2c9', class: "dda-input-dropdown-btn" }, h("button", { key: 'ecd5d9e4b44ce197ecf9cf7d7a1f7ac34dca8593', type: "button", name: this.toggle_button_name, class: "dda-dropdown-select", "aria-label": this.toggle_button_label ? `${this.toggle_button_label}: ${this.country_code}` : undefined, "aria-expanded": this.dropdown_open ? 'true' : 'false', onClick: () => this.toggleDropdown() }, h("img", { key: 'a743d23d0bf63f69ddfe5bb78b4dcd4c103a6125', src: this.country_flag, alt: "", width: "20" }), " ", this.country_code, " ", h("i", { key: '7f6c2eee4498e22f4d7df127234c7180777c944e', class: `material-icons`, "aria-hidden": "true" }, this.dropdown_open ? 'keyboard_arrow_down' : 'keyboard_arrow_down')), this.dropdown_open && (h("div", { key: 'df0117881992e8a9d0bd4064ec39ecc0fe0b2f50', class: "dda-input-dropdown-list" }, this.countries.map((country, index) => (h("button", { id: `${this.button_id || `${id}-country`}-${index}`, name: this.country_select_button_name, "aria-label": this.button_aria_label, type: "button", class: "dda-input-dropdown-item", onClick: () => this.selectCountry(country) }, h("img", { src: country.flag, alt: "", width: "20" }), " ", country.code)))))), h("input", { key: '5c8e93e6ae085972291be6456408b572b667e0dc', id: id, name: this.phone_input_name, "aria-label": this.aria_label, type: "tel", class: `dda-field-group-input`, placeholder: this.placeholder, inputmode: 'tel', pattern: "[0-9]*", autocomplete: this.autocomplete, value: this.phone_number, onInput: this.handlephonenumberChange.bind(this), onFocus: this.handleFocus.bind(this), onBlur: this.handleBlur.bind(this), disabled: this.disabled, "aria-describedby": this.describedBy, "aria-invalid": this.error_message ? 'true' : undefined })), this.helper_text && !this.validation_type && h("span", { key: 'b21621486003f85d17f2b52e1f8d89e6eab9c18b', id: this.helperId, class: "dda-helper-text" }, this.helper_text), this.error_message && h("span", { key: 'ac02fc5bc3a77aafba1adc8e0f55dd1590333fd6', id: this.errorId, class: "dda-error-message" }, this.error_message))));
|
|
82
82
|
}
|
|
83
83
|
static get is() { return "dda-phonefield"; }
|
|
84
84
|
static get originalStyleUrls() {
|
|
@@ -16,7 +16,7 @@ export class DdaProgressBar {
|
|
|
16
16
|
const progressStyle = {
|
|
17
17
|
width: `${this.progress}%`,
|
|
18
18
|
};
|
|
19
|
-
return (h(Host, { key: '
|
|
19
|
+
return (h(Host, { key: '51da2ad9e461a0d6b3590e7ff38eba3afefe66da' }, h("div", { key: '47a1f39a072aa07df8642c7d253c1d8bc65e3df4', class: `dda-progress-bar-container ${this.custom_class} ${this.component_mode}` }, h("div", { key: '6fc4007b05d3a7574324babd728e2a8651fefb1e', class: "dda-progress-bar", role: "progressbar", "aria-label": this.aria_label, "aria-valuenow": `${this.progress}`, "aria-valuemin": "0", "aria-valuemax": "100" }, h("div", { key: '1a41f45ad4227f542abc05038af334a0f20715ed', class: "dda-progress-value", style: progressStyle }, this.tooltip && (h("div", { key: '3c340125c472bd9db640d48c00bbc99ae360cefe', class: `dda-tooltip tooltip-${this.tooltip_position}` }, this.progress, "%")))), this.show_percentage_text && (h("span", { key: 'f8be04a27d969dffd59cf9bad3bd9bbc9ddeb1d3', class: "dda-percentage-text" }, this.progress, "%")))));
|
|
20
20
|
}
|
|
21
21
|
static get is() { return "dda-progressbar"; }
|
|
22
22
|
static get originalStyleUrls() {
|
|
@@ -560,6 +560,7 @@
|
|
|
560
560
|
--dda-neutral-variant-99: #F4FEFD;
|
|
561
561
|
--dda-neutral-variant-100: #FFFFFF;
|
|
562
562
|
|
|
563
|
+
--dda-surface-variant-94: var(--dda-neutral-variant-94);
|
|
563
564
|
--dda-surface-variant-90: var(--dda-neutral-variant-90);
|
|
564
565
|
--dda-surface-variant-87: var(--dda-neutral-variant-87);
|
|
565
566
|
--dda-surface-variant-80: var(--dda-neutral-variant-80);
|
|
@@ -574,6 +575,8 @@
|
|
|
574
575
|
|
|
575
576
|
:root[data-theme='dark'] {
|
|
576
577
|
|
|
578
|
+
/* Behind --dda-color-primary-40 text (the active tab): #21BEBA on #293232 is 5.72:1. */
|
|
579
|
+
--dda-surface-variant-94: var(--dda-neutral-variant-20);
|
|
577
580
|
--dda-surface-variant-90: var(--dda-neutral-variant-30);
|
|
578
581
|
--dda-surface-variant-87: var(--dda-neutral-variant-25);
|
|
579
582
|
--dda-surface-variant-80: var(--dda-neutral-variant-22);
|
|
@@ -3028,23 +3031,43 @@ body {
|
|
|
3028
3031
|
width: calc(100% - 32px);
|
|
3029
3032
|
}
|
|
3030
3033
|
|
|
3034
|
+
/* The mega menu opens under its own link, like the 3.x dropdown (.dda-default-submenu), and is as
|
|
3035
|
+
wide as its columns. When it does not fit there, dda-header sets --dda-mega-shift to flip it back
|
|
3036
|
+
toward the start of the nav, or to clamp it inside the screen (alignMegaPanel). */
|
|
3031
3037
|
.megamenu-content{
|
|
3032
3038
|
display: none;
|
|
3033
|
-
width:
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3039
|
+
width: max-content;
|
|
3040
|
+
max-width: calc(100vw - 32px);
|
|
3041
|
+
padding-top: 5px;
|
|
3042
|
+
position: absolute;
|
|
3043
|
+
top: 100%;
|
|
3044
|
+
inset-inline-start: var(--dda-mega-shift, 0px);
|
|
3045
|
+
z-index: 1;
|
|
3038
3046
|
}
|
|
3039
3047
|
.megamenu-item{
|
|
3040
3048
|
min-height: 350px;
|
|
3041
3049
|
background: var(--dda-surface-100);
|
|
3042
3050
|
border-radius: 8px;
|
|
3043
|
-
margin: 0
|
|
3051
|
+
margin: 0;
|
|
3044
3052
|
padding: 42px 15px;
|
|
3045
3053
|
box-shadow: 0px 10px 15px -3px rgba(16, 24, 40, 0.1);
|
|
3046
3054
|
position: relative;
|
|
3047
3055
|
}
|
|
3056
|
+
/* .megamenu-item also has .dda-container; the panel is not a page-wide container. Its height comes
|
|
3057
|
+
from its links, and the end padding keeps the close button clear of the column titles. */
|
|
3058
|
+
.megamenu-content .megamenu-item.dda-container{
|
|
3059
|
+
width: auto;
|
|
3060
|
+
max-width: none;
|
|
3061
|
+
min-height: 0;
|
|
3062
|
+
padding-block: 32px 16px;
|
|
3063
|
+
padding-inline-end: 64px;
|
|
3064
|
+
}
|
|
3065
|
+
/* Fixed-width columns: percentage columns (.dda-col-md-3) have no width to take in a max-content panel. */
|
|
3066
|
+
.megamenu-content .dda-row > [class*='dda-col-']{
|
|
3067
|
+
flex: 0 0 300px;
|
|
3068
|
+
width: 300px;
|
|
3069
|
+
max-width: 300px;
|
|
3070
|
+
}
|
|
3048
3071
|
.megamenu-item .mega-menu-title{
|
|
3049
3072
|
height: 24px;
|
|
3050
3073
|
font-size: var(--dda-fs-body-lg);
|
|
@@ -13,7 +13,7 @@ export class DdaRadiobutton {
|
|
|
13
13
|
this.radio_status ? `dda-radio-${this.radio_status}` : '',
|
|
14
14
|
this.component_mode,
|
|
15
15
|
].filter(Boolean).join(' ');
|
|
16
|
-
return (h(Host, { key: '
|
|
16
|
+
return (h(Host, { key: 'e2b714010721763412b10b5c942d90a02900f483' }, h("div", { key: '45e011c3a6658be0d1b5f857625f6a1a14e824b7', class: radiobuttonClass }, h("input", { key: '7ec2a40ac7a39a7711e53cba5719d697d2cd832b', "aria-label": this.aria_label, type: "radio", id: this.input_id, name: this.group_name, checked: this.checked }), h("label", { key: '67c873f4c22db01922aadde0ccc52ad32395ec4b', htmlFor: this.input_id }, h("span", { key: 'adc29f2a518e645159d887613897b2a7e1cf7032', class: "radio-circle" }), h("p", { key: '25383395e12add6f5c045e47574a89f9b0b475bc' }, h("span", { key: '39b49370a6f7170339f0d85944d72928e75c9ca6', class: "radio-title" }, this.title_text), this.supporting && h("span", { key: '37558c3fce9ce30ddbebff307f6dac78cada545b', class: "radio-supporting" }, this.supporting))))));
|
|
17
17
|
}
|
|
18
18
|
static get is() { return "dda-radiobutton"; }
|
|
19
19
|
static get originalStyleUrls() {
|
|
@@ -40,10 +40,10 @@ export class DdaRangeSlider {
|
|
|
40
40
|
render() {
|
|
41
41
|
const leftId = this.left_input_id || `${this.fallbackId}-min`;
|
|
42
42
|
const rightId = this.right_input_id || `${this.fallbackId}-max`;
|
|
43
|
-
return (h(Host, { key: '
|
|
43
|
+
return (h(Host, { key: 'dbbcf690cb26511ffecd349d7c11127c8e5a28eb' }, h("div", { key: '33c73dc0c1b1a23f47e760f5f2cba5b1b34b9233', class: `dda-range-slider-container dda-tooltip-${this.tooltip_position} ${this.custom_class} ${this.component_mode}` }, h("div", { key: 'ae070c0cab2b805dda2444aa3d60034021f12b11', class: "dda-range-slider" }, h("div", { key: '33a2c9bfd7754596cc55241f41806c1c889e8612', class: "dda-range-slider-track", style: {
|
|
44
44
|
left: `${this.getPercentage(this.min_value)}%`,
|
|
45
45
|
right: `${100 - this.getPercentage(this.max_value)}%`,
|
|
46
|
-
} }, h("span", { key: '
|
|
46
|
+
} }, h("span", { key: '0f5646d1f4c1c687fa2c03f3987f05ab835cd2d2', class: "min-label" }, this.min_value, "%"), h("span", { key: '780d90954b54b13315bfb980c1d4354809fbcb7a', class: "max-label" }, this.max_value, "%")), h("span", { key: '7f35dd25e57bf986e6387e30ed6b7a64e3beaf71' }, h("input", { key: 'acd00fa0cebef44206275daac58aefd1ff750fd9', id: leftId, name: this.left_input_name, "aria-label": this.left_aria_label || 'Minimum', type: "range", min: this.min, max: this.max, step: this.step, value: this.min_value, onInput: (event) => this.handleMinChange(event), class: "dda-range-slider-input", style: { zIndex: `${this.min_value > this.max - this.min_value ? 5 : 3}` } })), h("span", { key: '361ab7ee406082480999de056ecb26351f0240cc' }, h("input", { key: 'b6fb092f55dcd7df96d5e8c86a9ea63d55da802d', id: rightId, name: this.right_input_name, "aria-label": this.right_aria_label || 'Maximum', type: "range", min: this.min, max: this.max, step: this.step, value: this.max_value, onInput: (event) => this.handleMaxChange(event), class: "dda-range-slider-input", style: { zIndex: `${this.max_value < this.max - this.min_value ? 5 : 3}` } }))))));
|
|
47
47
|
}
|
|
48
48
|
static get is() { return "dda-range-slider"; }
|
|
49
49
|
static get originalStyleUrls() {
|
|
@@ -21,7 +21,7 @@ export class DdaScrollIcon {
|
|
|
21
21
|
]
|
|
22
22
|
.filter(Boolean)
|
|
23
23
|
.join(' ');
|
|
24
|
-
return (h(Host, { key: '
|
|
24
|
+
return (h(Host, { key: '4502467781b3847811fb612eb57f6d49a40182e5', "aria-hidden": "true" }, h("div", { key: '09e4decec6065cf0e5167b064951a60a7a5739c6', class: className }, h("div", { key: '18d6edd0c698dfc23239e445b3ec468e0e66624e', class: "dda-scroll-icon-scroll-dot" }))));
|
|
25
25
|
}
|
|
26
26
|
static get is() { return "dda-scroll-icon"; }
|
|
27
27
|
static get originalStyleUrls() {
|
|
@@ -46,7 +46,7 @@ export class DdaSearchInput {
|
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
48
|
const id = this.inputId;
|
|
49
|
-
return (h(Host, { key: '
|
|
49
|
+
return (h(Host, { key: '1f3191966d43f2b236fd11459101c769a0927436' }, h("div", { key: '7dd31c429d569ebfff446d78b7c88787bb89108d', class: `dda-input-container dda-input-size-${this.size} ${this.component_mode} ${this.custom_class} ${this.input_status ? `dda-input-${this.input_status}` : ''} ${this.has_error ? 'dda-validation-error' : ''}` }, this.label && h("label", { key: 'c0b9f0a432de51598797da4734c9147decaf9ba1', htmlFor: id, class: "dda-input-label" }, this.label), h("div", { key: 'ec94b09e36f446cf5d08cd1406374e3a71330f45', class: "dda-search-area dda-search-action" }, h("i", { key: '6a5c297727c0783f204346a09eb479320c98a287', class: "material-icons icon-left", "aria-hidden": "true" }, "search"), h("input", { key: '581437d9d6cda370e2bcafd5f1704cc0fec6ed08', name: this.search_input_name, "aria-label": this.aria_label, id: id, type: "text", class: "dda-input-field dda-search-field", placeholder: this.placeholder, "aria-describedby": this.describedBy, "aria-invalid": this.error_message ? 'true' : undefined }), h("div", { key: 'a8b99cc30487d302ac2c40717ed1d15ca9b862c9', class: "dda-search-btngroup" }, h("button", { key: 'ebdc39f8411eb8fb54feed4c22543d0076708cc6', name: this.close_button_name, "aria-label": this.button_aria_label || this.clear_button_label, id: this.button_id, type: "button", class: "icon-close", onClick: () => this.clearInput() }, h("i", { key: '991884ec48eb496ec35d95368d8763bcf7fb4f07', class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, "close")), this.show_button && (h("button", { key: '9a825cfb95a6fbfc82d34d5014d44cab59193f06', name: this.search_button_name, type: "button", class: "dda-btn btn-color-default-primary dda-btn-sm" }, "Search")))), this.helper_text && h("span", { key: '656c31b9a6a2d9a61d26277821e1fdd47cabc01a', id: this.helperId, class: "dda-helper-text" }, this.helper_text), this.error_message && h("span", { key: 'c796e3b1dc99f60c34009c8bfb4598683d0d0e09', id: this.errorId, class: "dda-error-message" }, this.error_message))));
|
|
50
50
|
}
|
|
51
51
|
static get is() { return "dda-search-input"; }
|
|
52
52
|
static get originalStyleUrls() {
|
|
@@ -233,10 +233,18 @@ export class Ddaselect {
|
|
|
233
233
|
// Computed once here (not per option below) to keep the list render O(n) instead of O(n^2).
|
|
234
234
|
const activeIndex = current ? options.indexOf(current) : 0;
|
|
235
235
|
const validation = this.error || this.validation_type;
|
|
236
|
-
return (h(Host, { key: '79b4f368bdab0911dde6303d33ab79c8ea093399' }, h("div", { key: '
|
|
236
|
+
return (h(Host, { key: '79b4f368bdab0911dde6303d33ab79c8ea093399' }, h("div", { key: 'b0aebe236abfcbd53ede46e0c684fa7353962fe8', class: {
|
|
237
|
+
'dda-input-container': true,
|
|
238
|
+
[this.custom_class]: !!this.custom_class,
|
|
239
|
+
[this.component_mode]: !!this.component_mode,
|
|
240
|
+
'dda-input-disabled': this.disabled,
|
|
241
|
+
'dda-select-open': this.is_open,
|
|
242
|
+
[`dda-input-size-${this.size}`]: !!this.size,
|
|
243
|
+
[`dda-validation-${validation}`]: !!validation,
|
|
244
|
+
} }, this.label && h("label", { key: '87491d828a562c97475241da38308faa32e35fb0', id: this.labelId, class: "dda-input-label" }, this.label), h("div", { key: '385d35415beb1104eea5329427c6db616954c0da', class: "dda-dropdown-container" }, h("button", { key: 'd86507f9a4ebc1a7cc66e94d2126d3bd80030b19', name: this.toggle_button_name, "aria-label": this.triggerLabel, "aria-labelledby": this.label && !this.triggerLabel ? `${this.labelId} ${id}` : undefined, id: id, type: "button", class: "dda-input-field dda-select-header", "aria-haspopup": "listbox", "aria-expanded": this.is_open ? 'true' : 'false', "aria-controls": this.is_open ? this.listboxId : undefined, "aria-describedby": this.describedBy, "aria-invalid": this.error_message ? 'true' : undefined, onClick: () => { this.toggleSelect(); }, onKeyDown: this.onTriggerKeyDown, onBlur: this.onTriggerBlur }, current ? current.text : ((_a = this.placeholder) !== null && _a !== void 0 ? _a : 'Select an option'), h("i", { key: '672144adba927f8c64a18d01569021f5184dd85b', class: `material-icons`, "aria-hidden": "true" }, this.is_open ? 'keyboard_arrow_up' : 'keyboard_arrow_down')), this.is_open && (h("div", { key: 'ee31ed5dc81d441998320aff4c700328dd74cb18', id: this.listboxId, role: "listbox", "aria-label": this.triggerLabel || this.label, class: "dda-input-dropdown-list dda-select-list" }, options.length > 0 ? (options.map((option, index) => {
|
|
237
245
|
const isCurrent = current !== undefined && String(current.id) === String(option.id);
|
|
238
246
|
return (h("button", { name: this.option_select_button_name, type: "button", role: "option", "aria-selected": isCurrent ? 'true' : 'false', tabIndex: index === activeIndex ? 0 : -1, class: `dda-input-dropdown-item ${isCurrent ? 'selected' : ''}`, onClick: () => this.selectOption(option), onKeyDown: (event) => this.onOptionKeyDown(event, option), key: `${index}-${option.id}` }, option.text));
|
|
239
|
-
})) : (h("div", { class: "dda-input-dropdown-item" }, "No options available"))))), this.helper_text && h("span", { key: '
|
|
247
|
+
})) : (h("div", { class: "dda-input-dropdown-item" }, "No options available"))))), this.helper_text && h("span", { key: '96cafd84643b25aaf08b0d6984f8690688f0093d', id: this.helperId, class: "dda-helper-text" }, this.helper_text), this.error_message && h("span", { key: '0d4c0493b85c32972a7852d9008a1c8cebf81660', id: this.errorId, class: "dda-error-message" }, this.error_message))));
|
|
240
248
|
}
|
|
241
249
|
static get is() { return "dda-select"; }
|
|
242
250
|
static get originalStyleUrls() {
|
|
@@ -283,7 +291,7 @@ export class Ddaselect {
|
|
|
283
291
|
},
|
|
284
292
|
"SelectOption": {
|
|
285
293
|
"location": "local",
|
|
286
|
-
"path": "/
|
|
294
|
+
"path": "/home/runner/work/dubai-design-system/dubai-design-system/packages/stencil/src/components/dda-select/dda-select.tsx",
|
|
287
295
|
"id": "src/components/dda-select/dda-select.tsx::SelectOption"
|
|
288
296
|
}
|
|
289
297
|
}
|
|
@@ -644,7 +652,7 @@ export class Ddaselect {
|
|
|
644
652
|
"references": {
|
|
645
653
|
"SelectOption": {
|
|
646
654
|
"location": "local",
|
|
647
|
-
"path": "/
|
|
655
|
+
"path": "/home/runner/work/dubai-design-system/dubai-design-system/packages/stencil/src/components/dda-select/dda-select.tsx",
|
|
648
656
|
"id": "src/components/dda-select/dda-select.tsx::SelectOption"
|
|
649
657
|
}
|
|
650
658
|
}
|
|
@@ -696,7 +696,7 @@ export class DdaStickyFooter {
|
|
|
696
696
|
"references": {
|
|
697
697
|
"MiddleLinkItem": {
|
|
698
698
|
"location": "local",
|
|
699
|
-
"path": "/
|
|
699
|
+
"path": "/home/runner/work/dubai-design-system/dubai-design-system/packages/stencil/src/components/dda-sticky-footer/dda-sticky-footer.tsx",
|
|
700
700
|
"id": "src/components/dda-sticky-footer/dda-sticky-footer.tsx::MiddleLinkItem"
|
|
701
701
|
}
|
|
702
702
|
}
|
|
@@ -1101,7 +1101,7 @@ export class DdaStickyFooter {
|
|
|
1101
1101
|
"references": {
|
|
1102
1102
|
"RightLinkItem": {
|
|
1103
1103
|
"location": "local",
|
|
1104
|
-
"path": "/
|
|
1104
|
+
"path": "/home/runner/work/dubai-design-system/dubai-design-system/packages/stencil/src/components/dda-sticky-footer/dda-sticky-footer.tsx",
|
|
1105
1105
|
"id": "src/components/dda-sticky-footer/dda-sticky-footer.tsx::RightLinkItem"
|
|
1106
1106
|
}
|
|
1107
1107
|
}
|
|
@@ -33,12 +33,13 @@
|
|
|
33
33
|
|
|
34
34
|
.dda-tab-default .dda-tab-item.active,
|
|
35
35
|
.dda-tab-default .dda-tab-item:hover {
|
|
36
|
-
background: var(--dda-
|
|
36
|
+
background: var(--dda-surface-variant-94);
|
|
37
37
|
color: var(--dda-color-primary-40);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
.light-mode.dda-tab-default .dda-tab-item.active,
|
|
41
41
|
.light-mode.dda-tab-default .dda-tab-item:hover {
|
|
42
|
+
background: var(--dda-neutral-variant-94);
|
|
42
43
|
color: var(--dda-primary-40);
|
|
43
44
|
}
|
|
44
45
|
|