@dubai-design-system/components-js 5.3.6 → 5.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/MIGRATION.md +12 -5
- 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 +3 -3
- package/dist/cjs/dda-avatar.cjs.entry.js +6 -6
- package/dist/cjs/dda-banner-card.cjs.entry.js +2 -2
- package/dist/cjs/dda-banner.cjs.entry.js +2 -2
- 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 +2 -2
- package/dist/cjs/dda-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/dda-footer.cjs.entry.js +2 -2
- package/dist/cjs/dda-header.cjs.entry.js +10 -10
- package/dist/cjs/dda-home-banner.cjs.entry.js +5 -5
- package/dist/cjs/dda-home-carousel.cjs.entry.js +2 -2
- package/dist/cjs/dda-horizontal-stepper.cjs.entry.js +2 -2
- package/dist/cjs/dda-input.cjs.entry.js +2 -2
- package/dist/cjs/dda-link-button_2.cjs.entry.js +4 -4
- package/dist/cjs/dda-number-field.cjs.entry.js +3 -3
- package/dist/cjs/dda-pagination.cjs.entry.js +9 -9
- package/dist/cjs/dda-phonefield.cjs.entry.js +3 -3
- package/dist/cjs/dda-progressbar.cjs.entry.js +2 -2
- package/dist/cjs/dda-range-slider.cjs.entry.js +1 -1
- package/dist/cjs/dda-scroll-icon.cjs.entry.js +1 -1
- package/dist/cjs/dda-search-input.cjs.entry.js +3 -3
- package/dist/cjs/dda-segmented-tabs.cjs.entry.js +3 -3
- package/dist/cjs/dda-select.cjs.entry.js +4 -4
- package/dist/cjs/dda-sticky-footer.cjs.entry.js +6 -9
- package/dist/cjs/dda-tabs.cjs.entry.js +3 -3
- package/dist/cjs/dda-textarea.cjs.entry.js +3 -3
- package/dist/cjs/dda-toggle.cjs.entry.js +2 -2
- package/dist/cjs/dda-tooltip.cjs.entry.js +2 -2
- 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 +1 -1
- package/dist/cjs/{index-BpHPwGf8.js → index-lNJmUapU.js} +1 -1
- package/dist/cjs/loader.cjs.js +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 +4 -4
- package/dist/collection/components/dda-breadcrumb/dda-breadcrumb.js +1 -1
- 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-dropdown/dda-dropdown.js +1 -1
- package/dist/collection/components/dda-header/dda-header.js +9 -9
- package/dist/collection/components/dda-home-banner/dda-home-banner.js +2 -2
- package/dist/collection/components/dda-home-banner/home-banner.css +36 -1
- package/dist/collection/components/dda-link-button/dda-link-button.js +1 -1
- package/dist/collection/components/dda-number-field/dda-number-field.js +1 -1
- package/dist/collection/components/dda-pagination/dda-pagination.js +7 -7
- package/dist/collection/components/dda-phonefield/dda-phonefield.js +1 -1
- package/dist/collection/components/dda-radiobutton/dda-radiobutton.css +137 -6
- package/dist/collection/components/dda-search-input/dda-search-input.js +1 -1
- package/dist/collection/components/dda-select/dda-select.js +2 -2
- package/dist/collection/components/dda-sticky-footer/dda-sticky-footer.js +4 -7
- package/dist/collection/components/dda-tabs/dda-tabs.js +1 -1
- package/dist/collection/components/dda-textarea/dda-textarea.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-vertical-stepper/dda-vertical-stepper.js +1 -1
- package/dist/collection/global/global.css +137 -6
- 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-C189DyVE.js +1 -0
- package/dist/components/p-CxoSnPXH.js +1 -0
- package/dist/components/p-D0_AWCD0.js +1 -0
- package/dist/components/p-DD1Zpaej.js +1 -0
- package/dist/components/p-DjZlrMd_.js +1 -0
- package/dist/components/{p-DADawXC0.js → p-Ni26DZIa.js} +1 -1
- package/dist/components/p-t7bTR_8z.js +1 -0
- package/dist/dda/dda.css +1 -1
- package/dist/dda/dda.esm.js +1 -1
- package/dist/dda/p-062e9ab1.entry.js +1 -0
- package/dist/dda/p-09764a0d.entry.js +1 -0
- package/dist/dda/p-10381c11.entry.js +1 -0
- package/dist/dda/p-105e8117.entry.js +1 -0
- package/dist/dda/p-25d6570f.entry.js +1 -0
- package/dist/dda/p-3235d840.entry.js +1 -0
- package/dist/dda/p-32c533d5.entry.js +1 -0
- package/dist/dda/p-3304e4eb.entry.js +1 -0
- package/dist/dda/p-3cb3796a.entry.js +1 -0
- package/dist/dda/p-3d1788cd.entry.js +1 -0
- package/dist/dda/p-411fe443.entry.js +1 -0
- package/dist/dda/{p-32b7fa0b.entry.js → p-445e2ddf.entry.js} +1 -1
- package/dist/dda/p-47a47db8.entry.js +1 -0
- package/dist/dda/p-4a31ef64.entry.js +1 -0
- package/dist/dda/p-4b3e59da.entry.js +1 -0
- package/dist/dda/p-4c20eda1.entry.js +1 -0
- package/dist/dda/p-66990371.entry.js +1 -0
- package/dist/dda/p-66fe3114.entry.js +1 -0
- package/dist/dda/p-709ab5b5.entry.js +1 -0
- package/dist/dda/p-78afa42e.entry.js +1 -0
- package/dist/dda/p-7c87086c.entry.js +1 -0
- package/dist/dda/p-8057a7ea.entry.js +1 -0
- package/dist/dda/p-8a31b82f.entry.js +1 -0
- package/dist/dda/p-9bd215b3.entry.js +1 -0
- package/dist/dda/p-9d8f2852.entry.js +1 -0
- package/dist/dda/p-a10b4715.entry.js +1 -0
- package/dist/dda/p-a5e28398.entry.js +1 -0
- package/dist/dda/p-ae53a260.entry.js +1 -0
- package/dist/dda/p-aee500cb.entry.js +1 -0
- package/dist/dda/p-b26c4ca0.entry.js +1 -0
- package/dist/dda/p-b6319f76.entry.js +1 -0
- package/dist/dda/p-bf7861ef.entry.js +1 -0
- package/dist/dda/{p-f49baf43.entry.js → p-c88969da.entry.js} +1 -1
- package/dist/dda/p-cbcd2a37.entry.js +1 -0
- package/dist/dda/p-e7b2cc22.entry.js +1 -0
- package/dist/dda/p-eslb0xPL.js +2 -0
- package/dist/dda/p-f937392b.entry.js +1 -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 +3 -3
- package/dist/esm/dda-avatar.entry.js +6 -6
- package/dist/esm/dda-banner-card.entry.js +2 -2
- package/dist/esm/dda-banner.entry.js +2 -2
- 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 +2 -2
- package/dist/esm/dda-dropdown.entry.js +3 -3
- package/dist/esm/dda-footer.entry.js +2 -2
- package/dist/esm/dda-header.entry.js +10 -10
- package/dist/esm/dda-home-banner.entry.js +5 -5
- package/dist/esm/dda-home-carousel.entry.js +2 -2
- package/dist/esm/dda-horizontal-stepper.entry.js +2 -2
- package/dist/esm/dda-input.entry.js +2 -2
- package/dist/esm/dda-link-button_2.entry.js +4 -4
- package/dist/esm/dda-number-field.entry.js +3 -3
- package/dist/esm/dda-pagination.entry.js +9 -9
- package/dist/esm/dda-phonefield.entry.js +3 -3
- package/dist/esm/dda-progressbar.entry.js +2 -2
- package/dist/esm/dda-range-slider.entry.js +1 -1
- package/dist/esm/dda-scroll-icon.entry.js +1 -1
- package/dist/esm/dda-search-input.entry.js +3 -3
- package/dist/esm/dda-segmented-tabs.entry.js +3 -3
- package/dist/esm/dda-select.entry.js +4 -4
- package/dist/esm/dda-sticky-footer.entry.js +6 -9
- package/dist/esm/dda-tabs.entry.js +3 -3
- package/dist/esm/dda-textarea.entry.js +3 -3
- package/dist/esm/dda-toggle.entry.js +2 -2
- package/dist/esm/dda-tooltip.entry.js +2 -2
- 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 +2 -2
- package/dist/esm/{index-iieH594-.js → index-eslb0xPL.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/package.json +1 -1
- package/dist/components/p-Aj18WhqQ.js +0 -1
- package/dist/components/p-B6tn8eWW.js +0 -1
- package/dist/components/p-DGSOTFfp.js +0 -1
- package/dist/components/p-DaS2FaM0.js +0 -1
- package/dist/components/p-Dg2Jrfwt.js +0 -1
- package/dist/components/p-s_i90FgA.js +0 -1
- package/dist/dda/p-0c05652f.entry.js +0 -1
- package/dist/dda/p-0fd1acdd.entry.js +0 -1
- package/dist/dda/p-11901233.entry.js +0 -1
- package/dist/dda/p-18e9a615.entry.js +0 -1
- package/dist/dda/p-1b689398.entry.js +0 -1
- package/dist/dda/p-29dd1174.entry.js +0 -1
- package/dist/dda/p-2f525e36.entry.js +0 -1
- package/dist/dda/p-320f0e23.entry.js +0 -1
- package/dist/dda/p-3b138fdb.entry.js +0 -1
- package/dist/dda/p-3d0b1347.entry.js +0 -1
- package/dist/dda/p-4c8f6c9f.entry.js +0 -1
- package/dist/dda/p-56be5579.entry.js +0 -1
- package/dist/dda/p-591bcbc4.entry.js +0 -1
- package/dist/dda/p-756e23e7.entry.js +0 -1
- package/dist/dda/p-7fa9f38a.entry.js +0 -1
- package/dist/dda/p-84a4b457.entry.js +0 -1
- package/dist/dda/p-85cdea5c.entry.js +0 -1
- package/dist/dda/p-871750c7.entry.js +0 -1
- package/dist/dda/p-88cea310.entry.js +0 -1
- package/dist/dda/p-8cd2021c.entry.js +0 -1
- package/dist/dda/p-93e38077.entry.js +0 -1
- package/dist/dda/p-985c08b9.entry.js +0 -1
- package/dist/dda/p-9881b357.entry.js +0 -1
- package/dist/dda/p-9c0df893.entry.js +0 -1
- package/dist/dda/p-aaa58103.entry.js +0 -1
- package/dist/dda/p-accfabd7.entry.js +0 -1
- package/dist/dda/p-c16f300c.entry.js +0 -1
- package/dist/dda/p-c8319e6f.entry.js +0 -1
- package/dist/dda/p-d111ac4a.entry.js +0 -1
- package/dist/dda/p-d2fc3312.entry.js +0 -1
- package/dist/dda/p-e05169f8.entry.js +0 -1
- package/dist/dda/p-e37b2e47.entry.js +0 -1
- package/dist/dda/p-e991a8c7.entry.js +0 -1
- package/dist/dda/p-ebc2c744.entry.js +0 -1
- package/dist/dda/p-iieH594-.js +0 -2
|
@@ -81,7 +81,7 @@ export class DdaAttachFile {
|
|
|
81
81
|
this.component_mode,
|
|
82
82
|
].filter(Boolean).join(' ');
|
|
83
83
|
const id = this.inputId;
|
|
84
|
-
return (h(Host, { key: '8ffe229f5582c8bb4f90d84742fa45711129b5d4' }, h("div", { key: '8d2332d57f541d183f87246e29dba8507411524b', class: inputClass }, this.label && h("label", { key: 'bb5e568d5fb07c3b52d9018d11befccf4d8df3ca', htmlFor: id, class: "dda-input-label" }, this.label), h("div", { key: '6566f1551c3efc66a5407ce4019cf0eee07c219f', class: "dda-input-field-group dda-attach-file" }, h("input", { key: '9bb14dda5ca8fa340266d3390a3cbf972cc37871', ref: (el) => (this.fileInput = el), id: id, name: this.input_name, "aria-label": this.aria_label || (this.label ? undefined : 'Choose file'), type: "file", onInput: (event) => { this.handleFileInput(event); }, "aria-describedby": this.describedBy, "aria-invalid": this.error_message ? 'true' : undefined }), this.file ? (h("div", { class: "dda-file-details" }, h("div", { class: "dda-items" }, h("img", { src: this.getFileIcon(this.file.name), alt: "File Icon", class: "dda-file-icon" }), h("span", { class: "dda-file-name" }, this.file.name)), h("button", { type: "button", id: this.button_id, name: this.button_name, "aria-label": this.button_aria_label || `Remove ${this.file.name}`, class: "remove-file", onClick: () => this.removeFile() }, h("i", { class: "material-icons material-symbols-outlined", "aria-hidden": "true" }
|
|
84
|
+
return (h(Host, { key: '8ffe229f5582c8bb4f90d84742fa45711129b5d4' }, h("div", { key: '8d2332d57f541d183f87246e29dba8507411524b', class: inputClass }, this.label && h("label", { key: 'bb5e568d5fb07c3b52d9018d11befccf4d8df3ca', htmlFor: id, class: "dda-input-label" }, this.label), h("div", { key: '6566f1551c3efc66a5407ce4019cf0eee07c219f', class: "dda-input-field-group dda-attach-file" }, h("input", { key: '9bb14dda5ca8fa340266d3390a3cbf972cc37871', ref: (el) => (this.fileInput = el), id: id, name: this.input_name, "aria-label": this.aria_label || (this.label ? undefined : 'Choose file'), type: "file", onInput: (event) => { this.handleFileInput(event); }, "aria-describedby": this.describedBy, "aria-invalid": this.error_message ? 'true' : undefined }), this.file ? (h("div", { class: "dda-file-details" }, h("div", { class: "dda-items" }, h("img", { src: this.getFileIcon(this.file.name), alt: "File Icon", class: "dda-file-icon" }), h("span", { class: "dda-file-name" }, this.file.name)), h("button", { type: "button", id: this.button_id, name: this.button_name, "aria-label": this.button_aria_label || `Remove ${this.file.name}`, class: "remove-file", onClick: () => this.removeFile() }, h("i", { class: "material-icons material-symbols-outlined", "data-icon": "close", "aria-hidden": "true" })))) : (h("div", { class: "dda-file-input" }, h("span", null, "No File Selected"), h("label", { htmlFor: id, class: "dda-file-choose" }, "Choose File")))), this.helper_text && h("span", { key: '0d5e37f6029044ac7552f2c73da1045b5beb086c', id: this.helperId, class: "dda-helper-text" }, this.helper_text), this.error_message && h("span", { key: 'fbac4323946405e93a7561c04fedc742c79dee5a', id: this.errorId, class: "dda-error-message" }, this.error_message))));
|
|
85
85
|
}
|
|
86
86
|
static get is() { return "dda-attach-file"; }
|
|
87
87
|
static get originalStyleUrls() {
|
|
@@ -43,10 +43,10 @@ export class DdaAvatar {
|
|
|
43
43
|
const hasOptions = this.parsedOptions.length > 0;
|
|
44
44
|
const avatarContent = [
|
|
45
45
|
this.type === 'photo' && h("img", { key: '6e35e5412c61bf6938ef9de44eb08856c379e3b5', src: this.src, alt: "Avatar" }),
|
|
46
|
-
this.type === 'icon' && h("i", { key: '
|
|
47
|
-
this.type === 'text' && h("span", { key: '
|
|
46
|
+
this.type === 'icon' && h("i", { key: 'c52ad2a65bab5a1452c56e01b6f26bae56a09dc9', class: `${this.icon} dda-smile`, "data-icon": "sentiment_satisfied", "aria-hidden": "true" }),
|
|
47
|
+
this.type === 'text' && h("span", { key: 'd87b3b4e792c44f6c99d7c5452a8cdfe46dcf639', class: 'avatar-main-text' }, this.text),
|
|
48
48
|
];
|
|
49
|
-
return (h("div", { key: '
|
|
49
|
+
return (h("div", { key: '176a9c9374bfcc4862f172dba1669293521acf7c', class: {
|
|
50
50
|
'dda-avatar': true,
|
|
51
51
|
[`avatar-type-${this.type}`]: true,
|
|
52
52
|
[`avatar-size-${this.size}`]: true,
|
|
@@ -55,7 +55,7 @@ export class DdaAvatar {
|
|
|
55
55
|
[`${this.custom_class}`]: true,
|
|
56
56
|
[`${this.component_mode}`]: true,
|
|
57
57
|
[`${this.button_name}`]: true,
|
|
58
|
-
} }, hasOptions ? (h("button", { type: "button", class: "avatar-trigger", onClick: () => this.toggleDropdown(), "aria-expanded": this.isOpen ? 'true' : 'false', "aria-label": this.aria_label || 'Avatar options' }, avatarContent)) : (h("div", { class: "avatar-trigger" }, avatarContent)), hasOptions && this.isOpen && (h("div", { key: '
|
|
58
|
+
} }, hasOptions ? (h("button", { type: "button", class: "avatar-trigger", onClick: () => this.toggleDropdown(), "aria-expanded": this.isOpen ? 'true' : 'false', "aria-label": this.aria_label || 'Avatar options' }, avatarContent)) : (h("div", { class: "avatar-trigger" }, avatarContent)), hasOptions && this.isOpen && (h("div", { key: '8c613c7e59ed7d809262821158a86ca37fd65876', class: "dda-input-dropdown-list" }, this.parsedOptions.map(option => (h("button", { id: this.button_id, name: this.button_name, "aria-label": this.aria_label, type: "button", class: `dda-input-dropdown-item ${this.selected === option ? 'selected' : ''}`, onClick: () => { this.selectOption(option); } }, option))))), this.design === 'status' && h("div", { key: '37cb829931eab4fb89bc78b78d69f875d2675bd5', class: "status-circle" }), this.design === 'verified' && h("div", { key: '527c5ef3fc660d422923a5634bf5889c2c3cddaa', class: "verified-icon" }, h("span", { key: '7864916ca3278a69391a35ec79eaf971fd5704ca', class: "material-icons material-symbols-outlined", "data-icon": "verified", "aria-hidden": "true" }), h("span", { key: 'a2f47ab33411e86f5606e6c59c94e78a72e61cbd', class: "visually-hidden" }, this.verified_label)), this.design === 'notification' && h("div", { key: '4557564b9e972263396534e16b5eab5917ae9c88', class: "notification-circle" }, this.notification_number)));
|
|
59
59
|
}
|
|
60
60
|
static get is() { return "dda-avatar"; }
|
|
61
61
|
static get originalStyleUrls() {
|
|
@@ -25,7 +25,7 @@ export class DdaBreadcrumb {
|
|
|
25
25
|
}
|
|
26
26
|
render() {
|
|
27
27
|
const breadcrumbs = this.parseBreadcrumbs();
|
|
28
|
-
return (h(Host, { key: '87d47d41d1da4d9bac28cbea4136a2b22728b6ee' }, h("div", { key: '038c176e93c24c117fdc50e4245c503adbaf65dc', class: this.component_mode }, h("nav", { key: '36a47a1d0e908d5ce10757051f00a723e867cf92', "aria-label": "breadcrumb", class: `${this.custom_class}` }, h("ol", { key: 'c1ef97d3a64e0cf56f9ee1b2e9561c5d5d7cb300', class: "dda-breadcrumb" }, breadcrumbs.map((crumb, index) => (h("li", { class: `dda-breadcrumb-item ${index === breadcrumbs.length - 1 ? 'active' : ''}` }, h("a", { href: crumb.url }, this.design !== 'text' && h("i", { class: `material-icons`, "aria-hidden": "true" }
|
|
28
|
+
return (h(Host, { key: '87d47d41d1da4d9bac28cbea4136a2b22728b6ee' }, h("div", { key: '038c176e93c24c117fdc50e4245c503adbaf65dc', class: this.component_mode }, h("nav", { key: '36a47a1d0e908d5ce10757051f00a723e867cf92', "aria-label": "breadcrumb", class: `${this.custom_class}` }, h("ol", { key: 'c1ef97d3a64e0cf56f9ee1b2e9561c5d5d7cb300', class: "dda-breadcrumb" }, breadcrumbs.map((crumb, index) => (h("li", { class: `dda-breadcrumb-item ${index === breadcrumbs.length - 1 ? 'active' : ''}` }, h("a", { href: crumb.url }, this.design !== 'text' && h("i", { class: `material-icons`, "data-icon": crumb.icon, "aria-hidden": "true" }), this.design !== 'icon' && h("span", null, crumb.text), this.design === 'icon' && h("span", { class: "visually-hidden" }, crumb.text)), index < breadcrumbs.length - 1 && (h("i", { class: `material-icons material-symbols-outlined`, "data-icon": this.separator, "aria-hidden": "true" }))))))))));
|
|
29
29
|
}
|
|
30
30
|
static get is() { return "dda-breadcrumb"; }
|
|
31
31
|
static get originalStyleUrls() {
|
|
@@ -33,7 +33,7 @@ export class DdaButton {
|
|
|
33
33
|
this.custom_class, // Include custom class
|
|
34
34
|
this.component_mode,
|
|
35
35
|
].filter(Boolean).join(' ');
|
|
36
|
-
return (h(Host, { key: 'd54ed788105af16f01bbe10a4f02b2bae5517462' }, h("button", { key: '7165e0dd286803dda5720f0e3e6d2c9b1872b4e3', id: this.button_id, type: this.type, class: buttonClass, disabled: this.disabled, "aria-label": this.aria_label, onClick: this.clickHandler, name: this.button_name }, this.start_icon && h("i", { key: '
|
|
36
|
+
return (h(Host, { key: 'd54ed788105af16f01bbe10a4f02b2bae5517462' }, h("button", { key: '7165e0dd286803dda5720f0e3e6d2c9b1872b4e3', id: this.button_id, type: this.type, class: buttonClass, disabled: this.disabled, "aria-label": this.aria_label, onClick: this.clickHandler, name: this.button_name }, this.start_icon && h("i", { key: '50dfd62c234444af2907cc95f25b45245ea7ebef', class: "material-icons material-symbols-outlined", "data-icon": this.start_icon, "aria-hidden": "true" }), h("slot", { key: '66feb8e92c5591f8f66d180c361e9f57139d07aa' }), this.end_icon && h("i", { key: 'cf5da540c6db86654ad9b01e5779f315d770aeaa', class: "material-icons material-symbols-outlined", "data-icon": this.end_icon, "aria-hidden": "true" }))));
|
|
37
37
|
}
|
|
38
38
|
static get is() { return "dda-button"; }
|
|
39
39
|
static get originalStyleUrls() {
|
|
@@ -13,7 +13,7 @@ export class DdaCheckbox {
|
|
|
13
13
|
this.checkbox_status ? `dda-checkbox-${this.checkbox_status}` : '',
|
|
14
14
|
this.component_mode,
|
|
15
15
|
].filter(Boolean).join(' ');
|
|
16
|
-
return (h(Host, { key: '9fbb77a179c46d7ab124106d6f30d1b04290924d' }, h("div", { key: 'dc632cf3b0617973951cf83edb78d3d1328a0768', class: checkboxClass }, h("input", { key: '4ad0d20783c3a117b79586e7adc03c9a745ffffc', "aria-label": this.aria_label, type: "checkbox", id: this.input_id, name: this.group_name, checked: this.checked }), h("label", { key: '8c169967a613f275aa21f483daf08f0629aab238', htmlFor: this.input_id }, h("i", { key: '
|
|
16
|
+
return (h(Host, { key: '9fbb77a179c46d7ab124106d6f30d1b04290924d' }, h("div", { key: 'dc632cf3b0617973951cf83edb78d3d1328a0768', class: checkboxClass }, h("input", { key: '4ad0d20783c3a117b79586e7adc03c9a745ffffc', "aria-label": this.aria_label, type: "checkbox", id: this.input_id, name: this.group_name, checked: this.checked }), h("label", { key: '8c169967a613f275aa21f483daf08f0629aab238', htmlFor: this.input_id }, h("i", { key: 'a118084fcf43ee97778b41347583bc0fc59b8eed', class: "material-icons material-symbols-outlined", "data-icon": "check", "aria-hidden": "true" }), h("p", { key: 'ef4985ffde56de2504e475083e2609a6a12737ae' }, h("span", { key: '7c04acf85f31d382e0a0ca1a5f7dfd2e53443950', class: "dda-checkbox-title" }, this.title_text), this.supporting && h("span", { key: '707996cf5d87a32071b01a476a0afdbd36fd7a1d', class: "dda-checkbox-supporting" }, this.supporting))))));
|
|
17
17
|
}
|
|
18
18
|
static get is() { return "dda-checkbox"; }
|
|
19
19
|
static get originalStyleUrls() {
|
|
@@ -11,7 +11,7 @@ export class DdaChip {
|
|
|
11
11
|
this.close_button_label = 'Remove';
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return (h(Host, { key: '29c381e02ff6202549e5c239be13e9559cc6cf9d' }, h("div", { key: '98eb0a6c044af6ca88be1ca0241a778edc173622', class: `dda-chip dda-chip-${this.bg_color} dda-chip-${this.size} dda-rounded-${this.rounded} ${this.custom_class} ${this.component_mode}` }, this.icon ? h("i", { class: "material-icons material-symbols-outlined", "aria-hidden": "true" }
|
|
14
|
+
return (h(Host, { key: '29c381e02ff6202549e5c239be13e9559cc6cf9d' }, h("div", { key: '98eb0a6c044af6ca88be1ca0241a778edc173622', class: `dda-chip dda-chip-${this.bg_color} dda-chip-${this.size} dda-rounded-${this.rounded} ${this.custom_class} ${this.component_mode}` }, this.icon ? h("i", { class: "material-icons material-symbols-outlined", "data-icon": this.icon, "aria-hidden": "true" }) : null, h("span", { key: '83356b6f99b92ec3a13bc52fab1339c9367c560d' }, h("slot", { key: '401d24eb61194390804a5f148e6e6763be5ccdf6' })), this.show_close_icon && (h("button", { key: '2c3672184655de0b6c53ebe6059f0823f5ec1dfa', type: "button", class: "chip-close", onClick: this.clickHandler, "aria-label": this.close_button_label }, h("i", { key: '81b784c757edec9f02f07928340c30cfa0fedd1f', class: "material-icons material-symbols-outlined", "data-icon": "close", "aria-hidden": "true" }))))));
|
|
15
15
|
}
|
|
16
16
|
static get is() { return "dda-chip"; }
|
|
17
17
|
static get originalStyleUrls() {
|
|
@@ -12,7 +12,7 @@ export class DdaCreditCard {
|
|
|
12
12
|
this.custom_class ? `${this.custom_class}` : "",
|
|
13
13
|
this.component_mode,
|
|
14
14
|
].filter(Boolean).join(' ');
|
|
15
|
-
return (h(Host, { key: 'db633c55f53712716bc1de310b32c7a128ed18ac' }, h("div", { key: '17b110bb22bd58e8d360955e555d0e228c2e70ea', class: cardClass }, h("div", { key: '44b3f5724f76204bfec470ce19fe2d3ca72833fb', class: "dda-credit-card-header" }, h("div", { key: 'a4016ae6c6b40fcc287b68e7d8127491c7e14aa5', class: "card-balance-info" }, h("span", { key: '508dce8c6df113482d2b0875712076f6297c6012', class: "card-balance-label" }, "Current Balance"), h("span", { key: 'b26cab18ff3bfe6c13e3aaa5a917906869ce2374', class: "card-balance" }, this.balance)), h("i", { key: '
|
|
15
|
+
return (h(Host, { key: 'db633c55f53712716bc1de310b32c7a128ed18ac' }, h("div", { key: '17b110bb22bd58e8d360955e555d0e228c2e70ea', class: cardClass }, h("div", { key: '44b3f5724f76204bfec470ce19fe2d3ca72833fb', class: "dda-credit-card-header" }, h("div", { key: 'a4016ae6c6b40fcc287b68e7d8127491c7e14aa5', class: "card-balance-info" }, h("span", { key: '508dce8c6df113482d2b0875712076f6297c6012', class: "card-balance-label" }, "Current Balance"), h("span", { key: 'b26cab18ff3bfe6c13e3aaa5a917906869ce2374', class: "card-balance" }, this.balance)), h("i", { key: 'a34c39ad08dae5db0ffa5fa83c6ecdba93f1bdfe', class: "material-icons material-symbols-outlined", "data-icon": "wifi", "aria-hidden": "true" })), h("div", { key: '1caa2ae652a14b05e5828cb1b3fd1d1e2b78b85b', class: "dda-credit-card-body" }, h("div", { key: '55cc44f1ce829323137502046532abe064a8b965', class: "card-userinfo" }, h("span", { key: '1ee27124010b192c9293a5acb426fee61397a94a', class: "dda-card-name" }, this.name), h("span", { key: '10ae6448934cc9a87fdf546d4f9638f7fcfdb2d6', class: "dda-card-number" }, "**** ", String((_a = this.card_number) !== null && _a !== void 0 ? _a : '').slice(-4))), h("div", { key: '16eb95f19d3f14351b6b0d6785cf725f3b66107d' }, this.card_type && h("img", { key: '2c47a85a00f4c76627454b50af7c8d3439b44f7f', src: this.card_type, alt: "Card Type", class: "card-type-icon" }))))));
|
|
16
16
|
}
|
|
17
17
|
static get is() { return "dda-credit-card"; }
|
|
18
18
|
static get originalStyleUrls() {
|
|
@@ -60,7 +60,7 @@ export class DdaDropdown {
|
|
|
60
60
|
this.custom_class ? `${this.custom_class}` : '',
|
|
61
61
|
this.component_mode,
|
|
62
62
|
].filter(Boolean).join(' ');
|
|
63
|
-
return (h(Host, { key: 'bf03f2ba1112640fe78d06d03e47f272254c907c' }, h("div", { key: '93dcd182e8d9d21079de10032e3018c4b29d8e6d', class: containerClass }, this.label && h("label", { key: 'c87131044dd15e7f5e367c2d16fd432df48e2fb1', id: labelId, class: "dda-input-label" }, this.label), h("div", { key: '1d9760da3e682a2c6bd2ee0f03ff209ccf3bf013', class: `dda-dropdown-container ${this.type}` }, h("button", { key: 'f6c9b87a4c89788a61842c4f88c9497f74d46847', ref: el => (this.buttonEl = el), id: id, name: this.arrow_button_name, "aria-label": this.aria_label || (this.icon_mode && !this.label ? this.toggle_button_label : undefined), "aria-labelledby": this.label && !this.aria_label ? `${labelId} ${id}` : undefined, "aria-expanded": this.isopen ? 'true' : 'false', type: "button", class: "dda-input-field dda-dropdown-header", onClick: () => this.toggleDropdown() }, h("i", { key: '
|
|
63
|
+
return (h(Host, { key: 'bf03f2ba1112640fe78d06d03e47f272254c907c' }, h("div", { key: '93dcd182e8d9d21079de10032e3018c4b29d8e6d', class: containerClass }, this.label && h("label", { key: 'c87131044dd15e7f5e367c2d16fd432df48e2fb1', id: labelId, class: "dda-input-label" }, this.label), h("div", { key: '1d9760da3e682a2c6bd2ee0f03ff209ccf3bf013', class: `dda-dropdown-container ${this.type}` }, h("button", { key: 'f6c9b87a4c89788a61842c4f88c9497f74d46847', ref: el => (this.buttonEl = el), id: id, name: this.arrow_button_name, "aria-label": this.aria_label || (this.icon_mode && !this.label ? this.toggle_button_label : undefined), "aria-labelledby": this.label && !this.aria_label ? `${labelId} ${id}` : undefined, "aria-expanded": this.isopen ? 'true' : 'false', type: "button", class: "dda-input-field dda-dropdown-header", onClick: () => this.toggleDropdown() }, h("i", { key: '521475a0f8c32f975b3bc6a197955dd4a2782a82', class: `three-dots material-icons`, "data-icon": this.isopen ? 'more_vert' : 'more_vert', "aria-hidden": "true" }), !this.icon_mode && h("span", { key: '96b3bd75c60cd575ffdfedec9068b752aece196e', class: "dda-dropdown-text" }, h("span", { key: '62ec30fc986348c8e54c3f7434868a37e32a3774' }, this.selected || 'Select an option'), " ", h("i", { key: '4ba645b6b92cc8d09b48b4d996a7b4edecf06a37', class: `material-icons`, "data-icon": this.isopen ? 'keyboard_arrow_up' : 'keyboard_arrow_down', "aria-hidden": "true" }))), this.isopen && (h("div", { key: '3f6ee846b072111aa271769a03b2312f355a85b2', class: "dda-input-dropdown-list" }, this.parsedOptions.length > 0 ? (this.parsedOptions.map(option => (h("button", { type: "button", name: this.dropdown_button_name, class: `dda-input-dropdown-item ${this.selected === option ? 'selected' : ''}`, onClick: () => { this.selectOption(option); } }, option)))) : (h("div", { class: "dda-input-dropdown-item" }, "No options available"))))), this.helper_text && h("span", { key: '3333fad96211ab29a2c8c55bcbd8881ed070ea45', class: "dda-helper-text" }, this.helper_text), this.error && h("span", { key: '2652849c70294f9071432084a81a09854122b07e', class: "dda-error-message" }, this.error))));
|
|
64
64
|
}
|
|
65
65
|
static get is() { return "dda-dropdown"; }
|
|
66
66
|
static get originalStyleUrls() {
|
|
@@ -281,7 +281,7 @@ export class DdaHeader {
|
|
|
281
281
|
renderSearchInput(id, ref) {
|
|
282
282
|
return [
|
|
283
283
|
h("label", { htmlFor: id, class: "visually-hidden" }, this.searchText || 'Search'),
|
|
284
|
-
h("i", { class: "material-icons material-symbols-outlined", "aria-hidden": "true" }
|
|
284
|
+
h("i", { class: "material-icons material-symbols-outlined", "data-icon": "search", "aria-hidden": "true" }),
|
|
285
285
|
h("input", { name: this.search_input_name || 'q', type: "text", id: id, placeholder: this.text(this.search_input_placeholder, this.searchText || 'Search'), enterkeyhint: "search", autocomplete: "off", ref: ref }),
|
|
286
286
|
];
|
|
287
287
|
}
|
|
@@ -327,7 +327,7 @@ export class DdaHeader {
|
|
|
327
327
|
{ value: 'large', label: 'A+', handler: this.lgTexthandler },
|
|
328
328
|
{ value: 'small', label: 'A-', handler: this.smTexthandler },
|
|
329
329
|
];
|
|
330
|
-
return (h("div", { class: "dda-row" }, h("div", { class: "dda-col-md-4 dda-accessibility-item" }, contrastTitle && h("h2", { class: "dda-fs-body-lg dda-fw-700 mb-1" }, contrastTitle), h("form", null, h("fieldset", { class: "dda-theme-list" }, contrastDescription && (h("legend", null, h("p", { class: "mb-3" }, contrastDescription))), options.map(option => option.label ? (h("dda-radiobutton", { title_text: option.label, checked: this.selected_contrast === option.value, size: "sm", variants: "normal", supporting: "", group_name: group, input_id: `${option.id}${suffix}`, custom_class: "", component_mode: "", onClick: option.handler })) : null)))), readSpeakerLink && (h("div", { class: "dda-col-md-4 dda-accessibility-item" }, screenReaderTitle && h("h2", { class: "dda-fs-body-lg dda-fw-700 mb-1" }, screenReaderTitle), screenReaderDescription && h("p", { class: "mb-3" }, screenReaderDescription), h("div", { class: "rs_skip rsbtn rs_preserve", id: `readspeaker_button1${suffix}` }, h("a", { href: readSpeakerLink, rel: "nofollow", class: "rsbtn_play circle readspeaker", accessKey: variant === 'desktop' ? 'L' : undefined, "aria-label": this.text(this.screen_reader_link_label, 'Listen to this page using ReadSpeaker') }, h("i", { class: "material-icons material-symbols-outlined", "aria-hidden": "true" }
|
|
330
|
+
return (h("div", { class: "dda-row" }, h("div", { class: "dda-col-md-4 dda-accessibility-item" }, contrastTitle && h("h2", { class: "dda-fs-body-lg dda-fw-700 mb-1" }, contrastTitle), h("form", null, h("fieldset", { class: "dda-theme-list" }, contrastDescription && (h("legend", null, h("p", { class: "mb-3" }, contrastDescription))), options.map(option => option.label ? (h("dda-radiobutton", { title_text: option.label, checked: this.selected_contrast === option.value, size: "sm", variants: "normal", supporting: "", group_name: group, input_id: `${option.id}${suffix}`, custom_class: "", component_mode: "", onClick: option.handler })) : null)))), readSpeakerLink && (h("div", { class: "dda-col-md-4 dda-accessibility-item" }, screenReaderTitle && h("h2", { class: "dda-fs-body-lg dda-fw-700 mb-1" }, screenReaderTitle), screenReaderDescription && h("p", { class: "mb-3" }, screenReaderDescription), h("div", { class: "rs_skip rsbtn rs_preserve", id: `readspeaker_button1${suffix}` }, h("a", { href: readSpeakerLink, rel: "nofollow", class: "rsbtn_play circle readspeaker", accessKey: variant === 'desktop' ? 'L' : undefined, "aria-label": this.text(this.screen_reader_link_label, 'Listen to this page using ReadSpeaker') }, h("i", { class: "material-icons material-symbols-outlined", "data-icon": "volume_up", "aria-hidden": "true" }))))), h("div", { class: "dda-col-md-4 dda-accessibility-item" }, textSizeTitle && h("h2", { class: "dda-fs-body-lg dda-fw-700 mb-1" }, textSizeTitle), textSizeDescription && h("p", { class: "mb-3" }, textSizeDescription), h("div", { class: "d-flex dda-gap-4 dda-text-size-buttons" }, sizes.map(size => (h("dda-button", { button_color: this.selected_text_size === size.value ? 'default-primary' : 'default-secondary', icon_button_shape: "circle", custom_class: "", size: "lg", onClick: size.handler }, size.label)))))));
|
|
331
331
|
}
|
|
332
332
|
// A tooltip must have text, so an empty tooltip attribute falls back to the default.
|
|
333
333
|
tooltip(value, fallback) {
|
|
@@ -347,7 +347,7 @@ export class DdaHeader {
|
|
|
347
347
|
const id = this.accessibility_button_id ? (variant === 'desktop' ? this.accessibility_button_id : `${this.accessibility_button_id}-sidemenu`) : undefined;
|
|
348
348
|
const iconClass = this.accessibility_button_icon_family || 'material-icons material-symbols-outlined';
|
|
349
349
|
const buttonClass = variant === 'desktop' ? 'tool-btn dda-btn btn-color-onsurface-secondary btn-size-sm btn-shape-circle accessibility-btn' : 'tool-btn accessibility-btn';
|
|
350
|
-
return (h("button", { id: id, name: variant === 'desktop' ? this.toggle_accessibility_button_name : this.accessibility_button_name, class: buttonClass, type: "button", "aria-expanded": this.usePredesignedAccessibilityMenu ? (this.isAccessibiltyOpen ? 'true' : 'false') : undefined, onClick: this.toggleAccessibilty }, h("i", { class: iconClass, "
|
|
350
|
+
return (h("button", { id: id, name: variant === 'desktop' ? this.toggle_accessibility_button_name : this.accessibility_button_name, class: buttonClass, type: "button", "aria-expanded": this.usePredesignedAccessibilityMenu ? (this.isAccessibiltyOpen ? 'true' : 'false') : undefined, onClick: this.toggleAccessibilty }, h("i", { class: iconClass, "data-icon": this.accessibility_button_icon_name || 'accessibility', "aria-hidden": "true" }), h("span", { class: "visually-hidden" }, this.text(this.accessibility_button_text, 'Accessibility'))));
|
|
351
351
|
}
|
|
352
352
|
renderDropdown(item, index) {
|
|
353
353
|
const id = this.menuPanelId(index);
|
|
@@ -380,7 +380,7 @@ export class DdaHeader {
|
|
|
380
380
|
return `${this.searchId}-submenu-${index}`;
|
|
381
381
|
}
|
|
382
382
|
renderMega(item, index) {
|
|
383
|
-
return (h("div", { id: this.menuPanelId(index), class: `megamenu-content ${this.activeMenuIndex === index ? 'showSubMenu' : ''}`, style: { display: this.activeMenuIndex === index ? 'block' : 'none' } }, h("div", { class: "megamenu-item dda-container" }, h("div", { class: "dda-row" }, item.columns.map((column, columnIndex) => (h("div", { class: "dda-col-md-3", key: columnIndex }, column.title && h("h3", { class: "mega-menu-title" }, column.title), h("ul", null, column.links.map((link, linkIndex) => (h("li", { key: linkIndex }, h("a", { class: "megamenu-link", href: link.href }, h("span", { class: "dda-btn btn-color-onsurface-secondary btn-size-sm icon-btn-default" }, h("i", { class: "material-icons material-symbols-outlined", "aria-hidden": "true" }
|
|
383
|
+
return (h("div", { id: this.menuPanelId(index), class: `megamenu-content ${this.activeMenuIndex === index ? 'showSubMenu' : ''}`, style: { display: this.activeMenuIndex === index ? 'block' : 'none' } }, h("div", { class: "megamenu-item dda-container" }, h("div", { class: "dda-row" }, item.columns.map((column, columnIndex) => (h("div", { class: "dda-col-md-3", key: columnIndex }, column.title && h("h3", { class: "mega-menu-title" }, column.title), h("ul", null, column.links.map((link, linkIndex) => (h("li", { key: linkIndex }, h("a", { class: "megamenu-link", href: link.href }, h("span", { class: "dda-btn btn-color-onsurface-secondary btn-size-sm icon-btn-default" }, h("i", { class: "material-icons material-symbols-outlined", "data-icon": link.icon, "aria-hidden": "true" })), h("span", { class: "text-wrap" }, h("span", { class: "title-text dda-fs-body-lg dda-fw-700" }, link.label), link.description && h("span", { class: "dda-fs-tagline-lg dda-fw-400" }, link.description))))))))))), h("button", { name: "close-mega-menu", class: "close-btn close_mega-menu", "aria-label": "Close Sidebar", onClick: () => (this.activeMenuIndex = null) }, h("i", { class: "material-icons material-symbols-outlined", "data-icon": "close", "aria-hidden": "true" })))));
|
|
384
384
|
}
|
|
385
385
|
render() {
|
|
386
386
|
const sideMenuItems = this.parseJsonArray(this.sideMenuItems);
|
|
@@ -388,7 +388,7 @@ export class DdaHeader {
|
|
|
388
388
|
const otherMenuItems = parseJsonProp(this.otherMenuItems, 'other-menu-items');
|
|
389
389
|
// The transparent style is opt-in at page level (<body class="transparent">);
|
|
390
390
|
// CSS shows the white or colored logo to match.
|
|
391
|
-
return (h("header", { key: '
|
|
391
|
+
return (h("header", { key: 'deabd1899726be63cdbab4a3f5f3ebe8f434733d', class: "dda-header" }, h("div", { key: '8bb231b293acfeada8731d6e1b15e6635a4eb9f9', class: "dda-head-logo" }, this.firstLogoSrc && (h("a", { key: '6b37e44832f3042f52354362bb58b0c1b78b013c', href: this.firstLogoHref, class: "govt-logo" }, h("img", { key: '9f6aa270e3cb98af891e6321cb42af1a0cd64139', class: "logo-colored", src: this.firstLogoSrc, alt: this.firstLogoAlt }), h("img", { key: 'f74ecebeed4613af4e230052dff85a736c52cdb3', class: "logo-white", src: this.firstLogoWhiteSrc || this.firstLogoSrc, alt: this.firstLogoAlt }))), this.secondLogoSrc && (h("a", { key: '4f30c048e77d7c9705e1036d30fef56dbc0093fe', href: this.secondLogoHref, class: "entt-logo" }, h("img", { key: '2701cebc3a7492afe999e1ef75b9158cdaba6e06', class: "logo-colored", src: this.secondLogoSrc, alt: this.secondLogoAlt }), h("img", { key: '2c03c14b79ce0664ea31da2f8d360fe1ff10a3a2', class: "logo-white", src: this.secondLogoWhiteSrc || this.secondLogoSrc, alt: this.secondLogoAlt })))), h("div", { key: 'a699b0a548d94e3579557a50c7b84a3effa1bb22', class: "dda-menu-container" }, h("div", { key: 'ecd05b79e69e0879657cf25cfc358e17c693dd1e', class: "dda-main-navigation" }, h("div", { key: '98c159741b5c9306531163955c7347ce290f5082', class: `dda-menu-overley ${this.isMenuOpen ? 'show-overley' : ''}`, onClick: this.toggleMenu }), h("div", { key: '3fd007f9122413a22b7e6df8e0a279c8cdac5ab2', class: "hamburger-menu", onClick: this.toggleMenu }, h("dda-tooltip", { key: 'd9baa7f0cf99e6ee1decbcb63c0431e0a6dcc251', title_text: this.tooltip(this.menu_button_label, 'Menu'), position: "top", class: "d-block" }, h("button", { key: 'd298a6a3f09d3b3a01e61539cddb6c0f79b9cca7', type: "button", class: "hamburger-menu-btn", name: this.hamburger_menu_button_name }, h("span", { key: '8fecb523c63a077fee30115d039a39318736558e', class: "hamburger-line" }), h("span", { key: 'a5091aa8601d353b11f09bfc2334dec496487650', class: "hamburger-menu-text" }, this.menu_button_label)))), h("div", { key: '6b09381b7502df582679e2ed083cae2127408e9e', class: "dda-sidemenu", style: { display: this.isMenuOpen ? 'block' : '', insetInlineStart: this.isMenuOpen ? '0px' : '' } }, h("div", { key: '1c9e91619eed62edd19c9016494c7383cb925365', class: "dda-sidemenu-content" }, this.text(this.sideMainMenuTitle, 'Quick Links') && h("p", { key: 'ab4878e64868b0280a6b04fe276bd05b960f6a95', class: "dda-side-nav-title" }, this.text(this.sideMainMenuTitle, 'Quick Links')), h("ul", { key: '04e55270ddc339e82a12f8bd4cfc95b2339280ec', class: "main_side_menu" }, sideMenuItems.map((menu, index) => {
|
|
392
392
|
const currentIndex = `menu-${index}`;
|
|
393
393
|
return (h("li", { key: currentIndex }, h("a", { href: menu.href, class: menu.subMenu && menu.subMenu.length > 0 ? 'showSub' : '', onClick: (e) => {
|
|
394
394
|
if (menu.subMenu && menu.subMenu.length > 0) {
|
|
@@ -397,13 +397,13 @@ export class DdaHeader {
|
|
|
397
397
|
}
|
|
398
398
|
} }, menu.label), this.renderSubMenu(menu.subMenu, currentIndex)));
|
|
399
399
|
})), !this.hideOtherMenu && otherMenuItems.length > 0 && [
|
|
400
|
-
this.sideOtherMenuTitle && h("p", { key: '
|
|
401
|
-
h("ul", { key: '
|
|
402
|
-
]), h("div", { key: '
|
|
400
|
+
this.sideOtherMenuTitle && h("p", { key: '884a62cbe5877477db0fadfb4c3cb68d2b8f73b4', class: "dda-side-nav-title" }, this.sideOtherMenuTitle),
|
|
401
|
+
h("ul", { key: '3cbbef9f5e93e047133c91decf3a15a556f712c4', 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: 'ce2fc2d47256e2892b0237d1bf766a2f84db1476', class: "dda-sidemenu-bottom" }, h("div", { key: '95615b88257e3f908f656aa2e40af00d7df6bf9a', class: "dda-sidemenu-gov-logo" }, this.firstLogoSrc && (h("a", { key: '17074817b923cd3b501052558ba39e0e00cb1b6d', href: this.firstLogoHref, class: "govt-logo mb-2" }, h("img", { key: '34bd6446107bf0f39995e1e06a561c2289a0c2a1', class: "", src: this.firstLogoSrc, alt: this.firstLogoAlt })))), h("div", { key: '6c0d05e8cbe098f5e0b3d80ca435adcad48eff95', class: "dda-toolbar-menu-sidemenu" }, h("ul", { key: 'b14a6444926c8aa883110f5cdc6ac45027e0aca4' }, h("li", { key: '413eb7bf0e8cb85ef209da916564ad27242e07f4' }, this.renderAccessibilityButton('mobile')), this.languageLabel && (h("li", { key: '80ee163996108f0ef2c2e4f1ef591b0d1bf8ddf9' }, h("button", { key: 'd0e0836af7de557d80a60c4b2139bdcffbb5f338', 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: '7cae29029eb5557eb83ee7f72ea8156993b9a798' }, h("dda-link-button", { key: '963ee8cd2632dc4c87c598717479668b3f62d61a', 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: 'e69eebb31ab86f6435fb06fbdd229ebb0e5efc8e', name: this.close_menu_button_name, class: "close-btn side-nav-close-btn", "aria-label": "Close Sidebar", onClick: this.toggleMenu }, h("i", { key: 'e22f223418c4fa289fab6107a0d9867c3e40332e', class: "material-icons material-symbols-outlined", "data-icon": "close", "aria-hidden": "true" })), this.usePredesignedAccessibilityMenu && (h("div", { key: '1d8abdea8babf2da4429cf0fcef0298359cdbb0f', class: "dda-accessibility hide-accessibility mobile-accessibility", style: { display: this.isAccessibiltyOpen ? 'block' : 'none' } }, this.renderAccessibilityColumns('mobile'), h("button", { key: 'fb35894602825d20da2b5a10f28be4c202ee7c11', name: this.close_accessibility_button_name, class: "close-btn close_accessibility", "aria-label": "Close Accessibility", onClick: this.toggleAccessibilty }, h("i", { key: 'e8c651f5bee10b1efd1a7e3e98f5b61910b9cf25', class: "material-icons material-symbols-outlined", "data-icon": "close", "aria-hidden": "true" }))))), h("div", { key: '9f57fb611621e8351ccb4176b44ad7997bec7fec' }, h("ul", { key: '779bf3f8acd915103e69fe60e4c2566bb795ef19', class: "dda-mega-menu" }, quickLinks.map((link, index) => {
|
|
403
403
|
const hasSub = link.kind !== 'link';
|
|
404
404
|
const isOpen = this.activeMenuIndex === index;
|
|
405
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)));
|
|
406
|
-
})))), h("div", { key: '
|
|
406
|
+
})))), h("div", { key: '7935e4f05fe7eafeea836f79d2a95d26cf522c3d', class: "dda-mobile-entt-logo" }, this.secondLogoSrc && (h("a", { key: '1650e44875e454929ba4d8277e1e31a8763337fb', href: this.secondLogoHref, class: "entt-logo" }, h("img", { key: '99e7641592b5094778de25be8dd7a135cdc5dfe4', class: "logo-colored", src: this.secondLogoSrc, alt: this.secondLogoAlt }), h("img", { key: '4b40a8c923f3760007a4402bba218d9107bdd482', class: "logo-white", src: this.secondLogoWhiteSrc || this.secondLogoSrc, alt: this.secondLogoAlt })))), h("div", { key: '09470e618e42b46a2e8771a99179909f9d137037', 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", "data-icon": "search", "aria-hidden": "true" }))) : (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", "data-icon": "search", "aria-hidden": "true" })))), !this.mobileMenuSearchUrl && (h("div", { key: '0c5956c618d4e6aae5afc328f79f2bdcbd4c79cd', id: `${this.searchId}-mobile-panel`, class: "dda-mobile-search-panel", hidden: !this.isSearchOpen }, h("form", { key: '52e68ace5fc74162d311e01e61451440c6acad42', 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: '72d4b8e2f1efd7e6f662f6606f364021dc591674', type: "button", class: "dda-mobile-search-close", "aria-label": "Close search", onClick: this.closeMobileSearch }, h("i", { key: 'b34adaef70dad659de564b3f9beb94d632527c49', class: "material-icons material-symbols-outlined", "data-icon": "close", "aria-hidden": "true" }))))), h("div", { key: '511f6fc86dbd3d9ba39ba6ff98429bd928a9dccc', class: "dda-toolbar-menu" }, h("ul", { key: '68918e8d8089a9431c341fa70c937e70c7b1ff04' }, h("li", { key: 'fd197a481f4630c27be4e520274279621b993457' }, h("dda-tooltip", { key: '6eed055850a5f30ab3a75e819b59b325b7f82ec3', title_text: this.tooltip(this.search_tooltip, 'Search'), description: "", position: "top" }, h("form", { key: 'c7242bd4764057428c04666eed0d487d5706dac9', 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: 'dfc62417e9ddfac19b01d047a655c41e30db010f' }, h("dda-tooltip", { key: '5137c9a541e25b60e9f2a7536025450251913c89', title_text: this.tooltip(this.accessibility_tooltip, 'Accessibility'), position: "top" }, this.renderAccessibilityButton('desktop')), this.usePredesignedAccessibilityMenu && (h("div", { key: '867ebd02e73e0c64563c313d20140bf09c3f16de', class: "dda-accessibility-wrap" }, h("div", { key: '4baa0dff159b0978438d8afbbbf66791a35c5328', class: "dda-accessibility hide-accessibility", style: { display: this.isAccessibiltyOpen ? 'block' : 'none' } }, this.renderAccessibilityColumns('desktop'), h("button", { key: 'ba02a14893f475b37615e1baf5b92646dbc9988c', name: this.close_accessibility_button_name, class: "close-btn close_accessibility", "aria-label": "Close Sidebar", onClick: this.toggleAccessibilty }, h("i", { key: 'de12fd37575d9baf54b75640854dbb0529ad2ccc', class: "material-icons material-symbols-outlined", "data-icon": "close", "aria-hidden": "true" })))))), this.languageLabel && (h("li", { key: '710ae536b51aff5213b1e5dbf3dfa3ba8c7bbea8' }, h("dda-tooltip", { key: 'a253cf17100b056627433dac53b791c90547ee58', title_text: this.tooltip(this.language_tooltip, 'Language'), position: "top" }, h("dda-button", { key: '91df1dbc9a21d6573fb90fb304057c000985867b', 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: '56302f6c1ebb43cdf2ba9a082f47bd3c2bc4a44f' }, h("dda-tooltip", { key: '14b7a7aaad32c6f9fca8726febc714b2e4895d3f', title_text: this.tooltip(this.login_tooltip, this.loginLabel), position: "top" }, h("dda-link-button", { key: 'c191705bf303c8005bac685d0dadfe9772f91160', button_color: "onsurface-secondary", start_icon: this.loginIcon || 'sentiment_satisfied', custom_class: "tool-btn", href: this.loginLink, button_shape: "circle", size: "sm" }, this.loginLabel)))))))));
|
|
407
407
|
}
|
|
408
408
|
static get is() { return "dda-header"; }
|
|
409
409
|
static get originalStyleUrls() {
|
|
@@ -187,10 +187,10 @@ export class DdaHomeBanner {
|
|
|
187
187
|
render() {
|
|
188
188
|
const total = this.slides.length;
|
|
189
189
|
const showAutoplayToggle = this.autoplay && !this.reducedMotion;
|
|
190
|
-
return (h(Host, { key: 'b44f97d40de4ca00fd453ecdbc1dc5e63eb9861b', class: "home-slider", role: "region", "aria-roledescription": "carousel", "aria-label": this.aria_label }, h("div", { key: 'b1df501d522547316e89b66de705b5377e671ea0', class: "dda-slider-container" }, h("div", { key: '9d1b62a36c363f03f97fa27175f730dcb117e932', class: "dda-slides", style: { width: total * 100 + 'vw', 'inset-inline-start': this.currentSlide * -100 + '%' } }, h("slot", { key: 'a2f04944405c0dccf27a6481a916aa0831bff554' })), h("div", { key: 'c2216fbdf8a5c770d30d0ce1e7a582f1769bff8d', class: 'slider-nav' }, showAutoplayToggle && (h("button", { key: 'cfea91bf7fc4765038588a52fc489b691fcacddc', class: "pause", type: "button", "aria-label": this.isPaused ? this.play_button_label : this.pause_button_label, onClick: this.togglePause }, h("i", { key: '
|
|
190
|
+
return (h(Host, { key: 'b44f97d40de4ca00fd453ecdbc1dc5e63eb9861b', class: "home-slider", role: "region", "aria-roledescription": "carousel", "aria-label": this.aria_label }, h("div", { key: 'b1df501d522547316e89b66de705b5377e671ea0', class: "dda-slider-container" }, h("div", { key: '9d1b62a36c363f03f97fa27175f730dcb117e932', class: "dda-slides", style: { width: total * 100 + 'vw', 'inset-inline-start': this.currentSlide * -100 + '%' } }, h("slot", { key: 'a2f04944405c0dccf27a6481a916aa0831bff554' })), h("div", { key: 'c2216fbdf8a5c770d30d0ce1e7a582f1769bff8d', class: 'slider-nav' }, showAutoplayToggle && (h("button", { key: 'cfea91bf7fc4765038588a52fc489b691fcacddc', class: "pause", type: "button", "aria-label": this.isPaused ? this.play_button_label : this.pause_button_label, onClick: this.togglePause }, h("i", { key: '1be8e89321e4e5e836f912e22910d7cb6d008d60', class: "material-icons", "data-icon": this.isPaused ? 'play_arrow' : 'pause', "aria-hidden": "true" }))), h("button", { key: 'fdd4e4854bea3c74cd1a8d60626408142279b0f2', class: "prev", type: "button", "aria-label": this.previous_button_label, onClick: () => this.prevSlide() }, h("i", { key: 'ce10999eda624b545c58aa77acf8d2287d8bf9d7', class: "material-icons", "data-icon": "chevron_left", "aria-hidden": "true" })), h("ul", { key: '6a5278a2ba1c520948c76d0cef5d1f90aab4714f' }, this.slides.map((_, index) => {
|
|
191
191
|
const isCurrent = this.currentSlide === index;
|
|
192
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) })));
|
|
193
|
-
})), h("button", { key: '
|
|
193
|
+
})), h("button", { key: 'a40f72d1120393c8fa09acc0b6e471736c7ac7a9', class: "next", type: "button", "aria-label": this.next_button_label, onClick: () => this.nextSlide() }, h("i", { key: '5b8145de20889c93a951670ee457fee4ea2a953c', class: "material-icons", "data-icon": "chevron_right", "aria-hidden": "true" })), this.show_scroll_icon && (h("div", { key: '5cf3bb77d93f601dd92b33051ccdac4466dff15b', class: { 'dda-mouse-scroll': true, 'dda-mouse-scroll-mobile': this.show_scroll_icon_mobile }, "aria-hidden": "true" }, h("dda-scroll-icon", { key: 'fad1b364e835631fff3587c7ff4401499ac25676', scroll_icon_size: "sm", scroll_icon_color: "white" })))), h("div", { key: 'e65513556b5eda84fe01c36fc3682a8bfde6e97c', class: "visually-hidden", role: "status", "aria-live": this.isRotating ? 'off' : 'polite' }, total ? this.statusText(this.currentSlide + 1, total) : ''))));
|
|
194
194
|
}
|
|
195
195
|
static get is() { return "dda-home-banner"; }
|
|
196
196
|
static get originalStyleUrls() {
|
|
@@ -265,4 +265,39 @@
|
|
|
265
265
|
.home-slider[dir='rtl'] .slide-wrap {
|
|
266
266
|
background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
|
|
267
267
|
}
|
|
268
|
-
}
|
|
268
|
+
}
|
|
269
|
+
/* Short screens: a laptop zoomed past about 115% (WCAG 1.4.10 asks for 400%, which turns a
|
|
270
|
+
1280x800 window into 320x200 CSS pixels), or a phone on its side. A full-height banner with the
|
|
271
|
+
controls and the quick-link cards at fixed offsets from its bottom cannot fit the slide text, so
|
|
272
|
+
the controls covered it. Here the banner grows with its text, at least the screen's height, and
|
|
273
|
+
the controls sit in the space kept for them under the text. The cards follow the banner, below
|
|
274
|
+
it (dda.css). */
|
|
275
|
+
@media screen and (max-height: 700px) {
|
|
276
|
+
.home-slider .dda-slider-container,
|
|
277
|
+
.home-slider .dda-slides,
|
|
278
|
+
.home-slider slide,
|
|
279
|
+
.home-slider .dda-slide,
|
|
280
|
+
.home-slider .slide-wrap {
|
|
281
|
+
height: auto;
|
|
282
|
+
}
|
|
283
|
+
/* In flow, so the banner is as tall as its tallest slide. inset-inline-start still moves it. */
|
|
284
|
+
.home-slider .dda-slides {
|
|
285
|
+
position: relative;
|
|
286
|
+
}
|
|
287
|
+
.home-slider .slide-wrap {
|
|
288
|
+
box-sizing: border-box;
|
|
289
|
+
min-height: 100vh;
|
|
290
|
+
/* Clear of the fixed header (see scroll-padding-top in dda-header.css), and room below the
|
|
291
|
+
text for the controls: their 30px height and 16px either side, above the sticky footer bar. */
|
|
292
|
+
padding-top: 170px;
|
|
293
|
+
padding-bottom: calc(30px + 32px + var(--dda-sticky-footer-height, 0px));
|
|
294
|
+
}
|
|
295
|
+
.slider-nav {
|
|
296
|
+
bottom: calc(16px + var(--dda-sticky-footer-height, 0px));
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
@media screen and (max-height: 700px) and (max-width: 767px) {
|
|
300
|
+
.home-slider .slide-wrap {
|
|
301
|
+
padding-top: 100px;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
@@ -35,7 +35,7 @@ export class DdaLinkButton {
|
|
|
35
35
|
].filter(Boolean).join(' ');
|
|
36
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: '971fb9efa4fa3e52172ae5d4bbb13cc83626a977', class: "material-icons material-symbols-outlined", "data-icon": this.start_icon, "aria-hidden": "true" }), h("slot", { key: '7ac1833f22c55069157faf64cc1b1cc71a826639' }), this.end_icon && h("i", { key: '05b68025aa09ffe0d0764f61f0564eda2b034a26', class: "material-icons material-symbols-outlined", "data-icon": this.end_icon, "aria-hidden": "true" }))));
|
|
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: '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: '
|
|
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: '7aa1c78e6e2952602e6369cd228b67bebd2ddabe', class: `material-icons`, "data-icon": this.isCurrencyDropdownOpen ? 'keyboard_arrow_up' : 'keyboard_arrow_down', "aria-hidden": "true" })), this.isCurrencyDropdownOpen && (h("div", { key: 'efe7db1c427786b9a4369eee9bf3731e1bafdee1', 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: '2e237ae42824530bc0a56fe92fa9bd4a36a2f6f9', id: this.helperId, class: "dda-helper-text" }, this.helper_text), this.error_message && h("span", { key: '4cd769405fb606adc60d4f05e59dfee2af26f8d9', 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() {
|
|
@@ -34,17 +34,17 @@ export class DdaPagination {
|
|
|
34
34
|
renderPagination() {
|
|
35
35
|
switch (this.type) {
|
|
36
36
|
case 'simple-slider':
|
|
37
|
-
return (h("div", { class: `dda-pagination dda-pagination-simple-slider ${this.custom_class} ${this.component_mode}` }, h("button", { name: this.simple_slider_prev_button, class: "prev", disabled: this.current_page === 1, onClick: () => this.setcurrentpage(this.current_page - 1) }, h("i", { class: "material-icons material-symbols-outlined", "aria-hidden": "true" }
|
|
37
|
+
return (h("div", { class: `dda-pagination dda-pagination-simple-slider ${this.custom_class} ${this.component_mode}` }, h("button", { name: this.simple_slider_prev_button, class: "prev", disabled: this.current_page === 1, onClick: () => this.setcurrentpage(this.current_page - 1) }, h("i", { class: "material-icons material-symbols-outlined", "data-icon": "arrow_back", "aria-hidden": "true" }), " Prev"), h("span", null, "Page ", this.current_page, " of ", this.total_pages), h("button", { name: this.simple_slider_next_button, class: "next", disabled: this.current_page === this.total_pages, onClick: () => this.setcurrentpage(this.current_page + 1) }, "Next ", h("i", { class: "material-icons material-symbols-outlined", "data-icon": "arrow_forward", "aria-hidden": "true" }))));
|
|
38
38
|
case 'buttons':
|
|
39
|
-
return (h("div", { class: `dda-pagination dda-pagination-buttons ${this.custom_class} ${this.component_mode}` }, h("button", { name: this.buttons_prev_button, class: "prev", disabled: this.current_page === 1, onClick: () => this.setcurrentpage(this.current_page - 1) }, h("i", { class: "material-icons material-symbols-outlined", "aria-hidden": "true" }
|
|
39
|
+
return (h("div", { class: `dda-pagination dda-pagination-buttons ${this.custom_class} ${this.component_mode}` }, h("button", { name: this.buttons_prev_button, class: "prev", disabled: this.current_page === 1, onClick: () => this.setcurrentpage(this.current_page - 1) }, h("i", { class: "material-icons material-symbols-outlined", "data-icon": "arrow_back", "aria-hidden": "true" }), " Prev"), this.renderPageButtons(), h("button", { name: this.buttons_next_button, class: "next", disabled: this.current_page === this.total_pages, onClick: () => this.setcurrentpage(this.current_page + 1) }, "Next ", h("i", { class: "material-icons material-symbols-outlined", "data-icon": "arrow_forward", "aria-hidden": "true" }))));
|
|
40
40
|
case 'text':
|
|
41
|
-
return (h("div", { class: `dda-pagination dda-pagination-text ${this.custom_class} ${this.component_mode}` }, h("button", { name: this.text_prev_button, class: "prev", "aria-label": this.previous_button_label, disabled: this.current_page === 1, onClick: () => this.setcurrentpage(this.current_page - 1) }, h("i", { class: "material-icons material-symbols-outlined", "aria-hidden": "true" }
|
|
41
|
+
return (h("div", { class: `dda-pagination dda-pagination-text ${this.custom_class} ${this.component_mode}` }, h("button", { name: this.text_prev_button, class: "prev", "aria-label": this.previous_button_label, disabled: this.current_page === 1, onClick: () => this.setcurrentpage(this.current_page - 1) }, h("i", { class: "material-icons material-symbols-outlined", "data-icon": "arrow_back", "aria-hidden": "true" })), h("span", null, "Page ", this.current_page, " of ", this.total_pages), h("button", { name: this.text_next_button, class: "next", "aria-label": this.next_button_label, disabled: this.current_page === this.total_pages, onClick: () => this.setcurrentpage(this.current_page + 1) }, h("i", { class: "material-icons material-symbols-outlined", "data-icon": "arrow_forward", "aria-hidden": "true" }))));
|
|
42
42
|
case 'text-pages':
|
|
43
|
-
return (h("div", { class: `dda-pagination dda-pagination-text-pages ${this.custom_class} ${this.component_mode}` }, h("button", { name: this.text_pages_prev_button, class: "prev", "aria-label": this.previous_button_label, disabled: this.current_page === 1, onClick: () => this.setcurrentpage(this.current_page - 1) }, h("i", { class: "material-icons material-symbols-outlined", "aria-hidden": "true" }
|
|
43
|
+
return (h("div", { class: `dda-pagination dda-pagination-text-pages ${this.custom_class} ${this.component_mode}` }, h("button", { name: this.text_pages_prev_button, class: "prev", "aria-label": this.previous_button_label, disabled: this.current_page === 1, onClick: () => this.setcurrentpage(this.current_page - 1) }, h("i", { class: "material-icons material-symbols-outlined", "data-icon": "arrow_back", "aria-hidden": "true" })), this.renderPageButtons(), h("button", { name: this.text_pages_next_button, class: "next", "aria-label": this.next_button_label, disabled: this.current_page === this.total_pages, onClick: () => this.setcurrentpage(this.current_page + 1) }, h("i", { class: "material-icons material-symbols-outlined", "data-icon": "arrow_forward", "aria-hidden": "true" }))));
|
|
44
44
|
case 'button-text':
|
|
45
|
-
return (h("div", { class: `dda-pagination dda-pagination-button-text ${this.custom_class} ${this.component_mode}` }, h("button", { name: this.button_text_prev_button, class: "prev", "aria-label": this.previous_button_label, disabled: this.current_page === 1, onClick: () => this.setcurrentpage(this.current_page - 1) }, h("i", { class: "material-icons material-symbols-outlined", "aria-hidden": "true" }
|
|
45
|
+
return (h("div", { class: `dda-pagination dda-pagination-button-text ${this.custom_class} ${this.component_mode}` }, h("button", { name: this.button_text_prev_button, class: "prev", "aria-label": this.previous_button_label, disabled: this.current_page === 1, onClick: () => this.setcurrentpage(this.current_page - 1) }, h("i", { class: "material-icons material-symbols-outlined", "data-icon": "arrow_back", "aria-hidden": "true" })), this.renderPageButtons(), h("button", { name: this.button_text_next_button, class: "next", "aria-label": this.next_button_label, disabled: this.current_page === this.total_pages, onClick: () => this.setcurrentpage(this.current_page + 1) }, h("i", { class: "material-icons material-symbols-outlined", "data-icon": "arrow_forward", "aria-hidden": "true" }))));
|
|
46
46
|
case 'buttons-pages':
|
|
47
|
-
return (h("div", { class: `dda-pagination dda-pagination-buttons-pages ${this.custom_class} ${this.component_mode}` }, h("button", { name: this.buttons_pages_prev_button, class: "prev", "aria-label": this.previous_button_label, disabled: this.current_page === 1, onClick: () => this.setcurrentpage(this.current_page - 1) }, h("i", { class: "material-icons material-symbols-outlined", "aria-hidden": "true" }
|
|
47
|
+
return (h("div", { class: `dda-pagination dda-pagination-buttons-pages ${this.custom_class} ${this.component_mode}` }, h("button", { name: this.buttons_pages_prev_button, class: "prev", "aria-label": this.previous_button_label, disabled: this.current_page === 1, onClick: () => this.setcurrentpage(this.current_page - 1) }, h("i", { class: "material-icons material-symbols-outlined", "data-icon": "arrow_back", "aria-hidden": "true" })), h("button", { name: this.buttons_pages_next_button, class: "next", "aria-label": this.next_button_label, disabled: this.current_page === this.total_pages, onClick: () => this.setcurrentpage(this.current_page + 1) }, h("i", { class: "material-icons material-symbols-outlined", "data-icon": "arrow_forward", "aria-hidden": "true" }))));
|
|
48
48
|
case 'full':
|
|
49
49
|
return (h("div", { class: `dda-pagination dda-pagination-full ${this.custom_class} ${this.component_mode}` }, this.renderPageButtons()));
|
|
50
50
|
}
|
|
@@ -63,7 +63,7 @@ export class DdaPagination {
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
render() {
|
|
66
|
-
return (h(Host, { key: '
|
|
66
|
+
return (h(Host, { key: '1325f6a54e8c21bfb36f2838a564bbfccfc191b8' }, h("div", { key: '020a1c7d15f52464aa59ea51e9fcbe366dcabcb0', 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: '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: '
|
|
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: '2ffcea5d93625825ad3ec0c8459f4620d61fd925', class: `material-icons`, "data-icon": this.dropdown_open ? 'keyboard_arrow_down' : 'keyboard_arrow_down', "aria-hidden": "true" })), this.dropdown_open && (h("div", { key: 'cdcca2354cc3df6aa2ef475f172d8363405cd7d6', 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: '76dacc527fab6113d6ca0c6529c9d206b9abe798', 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: 'cdc09ebc4a61be4c0843e1add80080ed58f45f52', id: this.helperId, class: "dda-helper-text" }, this.helper_text), this.error_message && h("span", { key: 'b52a70d85efca4ad9fa0399b2bd1113c38f386ef', 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() {
|