@scania/tegel 1.31.1-textarea-reactive-value-beta.1 → 1.32.0-accessibility-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/tds-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-accordion.cjs.entry.js +1 -1
- package/dist/cjs/tds-badge.cjs.entry.js +1 -1
- package/dist/cjs/tds-banner.cjs.entry.js +1 -1
- package/dist/cjs/tds-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/tds-button.cjs.entry.js +6 -4
- package/dist/cjs/tds-checkbox.cjs.entry.js +9 -3
- package/dist/cjs/tds-chip.cjs.entry.js +1 -1
- package/dist/cjs/tds-core-header-item_2.cjs.entry.js +1 -1
- package/dist/cjs/tds-datetime.cjs.entry.js +10 -3
- package/dist/cjs/tds-dropdown_2.cjs.entry.js +32 -11
- package/dist/cjs/tds-folder-tab.cjs.entry.js +3 -3
- package/dist/cjs/tds-folder-tabs.cjs.entry.js +3 -3
- package/dist/cjs/tds-footer-group.cjs.entry.js +1 -1
- package/dist/cjs/tds-footer-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-cell.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-dropdown-list-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-grid-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-inline-tab.cjs.entry.js +2 -2
- package/dist/cjs/tds-inline-tabs.cjs.entry.js +3 -3
- package/dist/cjs/tds-message.cjs.entry.js +1 -1
- package/dist/cjs/tds-modal.cjs.entry.js +1 -1
- package/dist/cjs/tds-navigation-tab.cjs.entry.js +2 -2
- package/dist/cjs/tds-navigation-tabs.cjs.entry.js +5 -5
- package/dist/cjs/tds-popover-core.cjs.entry.js +1 -1
- package/dist/cjs/tds-radio-button.cjs.entry.js +8 -2
- package/dist/cjs/tds-side-menu-dropdown-list-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-spinner.cjs.entry.js +1 -1
- package/dist/cjs/tds-step.cjs.entry.js +2 -2
- package/dist/cjs/tds-table-body-row-expandable.cjs.entry.js +1 -1
- package/dist/cjs/tds-table-footer.cjs.entry.js +1 -1
- package/dist/cjs/tds-table-toolbar.cjs.entry.js +3 -3
- package/dist/cjs/tds-text-field.cjs.entry.js +5 -5
- package/dist/cjs/tds-textarea.cjs.entry.js +10 -3
- package/dist/cjs/tds-toast.cjs.entry.js +4 -4
- package/dist/cjs/tds-toggle.cjs.entry.js +9 -3
- package/dist/cjs/tds-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/tegel.cjs.js +1 -1
- package/dist/collection/components/accordion/accordion-item/accordion-item.css +2 -1
- package/dist/collection/components/accordion/accordion.css +2 -1
- package/dist/collection/components/badge/badge.css +1 -1
- package/dist/collection/components/banner/banner.css +2 -1
- package/dist/collection/components/breadcrumbs/breadcrumb/breadcrumb.css +2 -1
- package/dist/collection/components/button/button.css +60 -57
- package/dist/collection/components/button/button.js +39 -3
- package/dist/collection/components/checkbox/checkbox.css +5 -5
- package/dist/collection/components/checkbox/checkbox.js +25 -2
- package/dist/collection/components/chip/chip.css +4 -3
- package/dist/collection/components/datetime/datetime.js +27 -3
- package/dist/collection/components/dropdown/dropdown-option/dropdown-option.css +2 -1
- package/dist/collection/components/dropdown/dropdown.css +2 -2
- package/dist/collection/components/dropdown/dropdown.js +30 -9
- package/dist/collection/components/footer/footer-group/footer-group.css +3 -3
- package/dist/collection/components/footer/footer-item/footer-item.css +6 -4
- package/dist/collection/components/header/header-dropdown-list-item/header-dropdown-list-item.css +2 -1
- package/dist/collection/components/header/header-item/header-item.css +2 -1
- package/dist/collection/components/header/header-launcher-grid-item/header-launcher-grid-item.css +2 -1
- package/dist/collection/components/message/message.css +12 -1
- package/dist/collection/components/modal/modal.css +2 -1
- package/dist/collection/components/popover-core/tds-popover-core.css +550 -495
- package/dist/collection/components/radio-button/radio-button.css +4 -7
- package/dist/collection/components/radio-button/radio-button.js +28 -1
- package/dist/collection/components/side-menu/side-menu-dropdown-list-item/side-menu-dropdown-list-item.css +2 -1
- package/dist/collection/components/side-menu/side-menu-item/side-menu-item.css +2 -1
- package/dist/collection/components/slider/slider-stories-setup.js +233 -0
- package/dist/collection/components/spinner/spinner.css +3 -3
- package/dist/collection/components/stepper/step/step.css +19 -27
- package/dist/collection/components/stepper/step/step.js +1 -1
- package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.css +2 -1
- package/dist/collection/components/table/table-footer/table-footer.css +2 -1
- package/dist/collection/components/table/table-header-cell/table-header-cell.css +1 -1
- package/dist/collection/components/table/table-toolbar/table-toolbar.css +6 -1
- package/dist/collection/components/table/table-toolbar/table-toolbar.js +3 -2
- package/dist/collection/components/tabs/folder-tabs/folder-tab/folder-tab.css +2 -1
- package/dist/collection/components/tabs/folder-tabs/folder-tab/folder-tab.js +2 -2
- package/dist/collection/components/tabs/folder-tabs/folder-tabs.css +2 -1
- package/dist/collection/components/tabs/folder-tabs/folder-tabs.js +2 -2
- package/dist/collection/components/tabs/inline-tabs/inline-tab/inline-tab.js +2 -2
- package/dist/collection/components/tabs/inline-tabs/inline-tabs.css +2 -1
- package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +2 -2
- package/dist/collection/components/tabs/navigation-tabs/navigation-tab/navigation-tab.js +2 -2
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.css +2 -1
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +4 -4
- package/dist/collection/components/text-field/text-field.js +5 -5
- package/dist/collection/components/textarea/textarea.js +31 -3
- package/dist/collection/components/toast/toast.css +10 -12
- package/dist/collection/components/toast/toast.js +3 -3
- package/dist/collection/components/toggle/toggle.css +18 -3
- package/dist/collection/components/toggle/toggle.js +25 -2
- package/dist/collection/components/tooltip/tooltip.js +2 -2
- package/dist/collection/stories/formatHtmlPreview.js +10 -0
- package/dist/collection/utils/accessibility.js +30 -0
- package/dist/collection/utils/axeHelpers.js +11 -2
- package/dist/components/{p-ece91cb9.js → p-037c48f6.js} +1 -1
- package/dist/components/{p-6732b15a.js → p-1c6e7dc9.js} +1 -1
- package/dist/components/p-31327d07.js +2098 -0
- package/dist/components/{p-1ef7423a.js → p-58b92113.js} +11 -4
- package/dist/components/{p-adbf32b9.js → p-5fad6216.js} +31 -10
- package/dist/components/{p-6cdccb27.js → p-76dc921a.js} +1 -1
- package/dist/components/{p-7ee8b262.js → p-9d6af0e6.js} +2 -2
- package/dist/components/{p-516d8085.js → p-a6d4fbb4.js} +1 -1
- package/dist/components/{p-84a20410.js → p-c46ecd24.js} +1 -1
- package/dist/components/{p-4420365f.js → p-ebafe83d.js} +3 -3
- package/dist/components/tds-accordion-item.js +1 -1
- package/dist/components/tds-accordion.js +1 -1
- package/dist/components/tds-badge.js +1 -1
- package/dist/components/tds-banner.js +1 -1
- package/dist/components/tds-breadcrumb.js +1 -1
- package/dist/components/tds-button.js +8 -4
- package/dist/components/tds-checkbox.js +1 -1
- package/dist/components/tds-chip.js +1 -1
- package/dist/components/tds-datetime.js +12 -4
- package/dist/components/tds-dropdown-option.js +1 -1
- package/dist/components/tds-dropdown.js +1 -1
- package/dist/components/tds-folder-tab.js +3 -3
- package/dist/components/tds-folder-tabs.js +3 -3
- package/dist/components/tds-footer-group.js +1 -1
- package/dist/components/tds-footer-item.js +1 -1
- package/dist/components/tds-header-brand-symbol.js +1 -1
- package/dist/components/tds-header-cell.js +1 -1
- package/dist/components/tds-header-dropdown-list-item.js +1 -1
- package/dist/components/tds-header-dropdown.js +3 -3
- package/dist/components/tds-header-hamburger.js +1 -1
- package/dist/components/tds-header-item.js +1 -1
- package/dist/components/tds-header-launcher-button.js +1 -1
- package/dist/components/tds-header-launcher-grid-item.js +1 -1
- package/dist/components/tds-header-launcher-list-item.js +1 -1
- package/dist/components/tds-header-launcher.js +4 -4
- package/dist/components/tds-inline-tab.js +2 -2
- package/dist/components/tds-inline-tabs.js +3 -3
- package/dist/components/tds-message.js +1 -1
- package/dist/components/tds-modal.js +1 -1
- package/dist/components/tds-navigation-tab.js +2 -2
- package/dist/components/tds-navigation-tabs.js +5 -5
- package/dist/components/tds-popover-canvas.js +1 -1
- package/dist/components/tds-popover-core.js +1 -1
- package/dist/components/tds-popover-menu.js +1 -1
- package/dist/components/tds-radio-button.js +10 -3
- package/dist/components/tds-side-menu-collapse-button.js +1 -1
- package/dist/components/tds-side-menu-dropdown-list-item.js +1 -1
- package/dist/components/tds-side-menu-dropdown.js +1 -1
- package/dist/components/tds-side-menu-item.js +1 -1
- package/dist/components/tds-spinner.js +1 -1
- package/dist/components/tds-step.js +2 -2
- package/dist/components/tds-table-body-row-expandable.js +1 -1
- package/dist/components/tds-table-body-row.js +1 -1
- package/dist/components/tds-table-footer.js +4 -4
- package/dist/components/tds-table-header.js +1 -1
- package/dist/components/tds-table-toolbar.js +3 -3
- package/dist/components/tds-text-field.js +5 -5
- package/dist/components/tds-textarea.js +14 -6
- package/dist/components/tds-toast.js +4 -4
- package/dist/components/tds-toggle.js +11 -4
- package/dist/components/tds-tooltip.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/tds-accordion-item.entry.js +1 -1
- package/dist/esm/tds-accordion.entry.js +1 -1
- package/dist/esm/tds-badge.entry.js +1 -1
- package/dist/esm/tds-banner.entry.js +1 -1
- package/dist/esm/tds-breadcrumb.entry.js +1 -1
- package/dist/esm/tds-button.entry.js +6 -4
- package/dist/esm/tds-checkbox.entry.js +9 -3
- package/dist/esm/tds-chip.entry.js +1 -1
- package/dist/esm/tds-core-header-item_2.entry.js +1 -1
- package/dist/esm/tds-datetime.entry.js +10 -3
- package/dist/esm/tds-dropdown_2.entry.js +32 -11
- package/dist/esm/tds-folder-tab.entry.js +3 -3
- package/dist/esm/tds-folder-tabs.entry.js +3 -3
- package/dist/esm/tds-footer-group.entry.js +1 -1
- package/dist/esm/tds-footer-item.entry.js +1 -1
- package/dist/esm/tds-header-cell.entry.js +1 -1
- package/dist/esm/tds-header-dropdown-list-item.entry.js +1 -1
- package/dist/esm/tds-header-launcher-grid-item.entry.js +1 -1
- package/dist/esm/tds-inline-tab.entry.js +2 -2
- package/dist/esm/tds-inline-tabs.entry.js +3 -3
- package/dist/esm/tds-message.entry.js +1 -1
- package/dist/esm/tds-modal.entry.js +1 -1
- package/dist/esm/tds-navigation-tab.entry.js +2 -2
- package/dist/esm/tds-navigation-tabs.entry.js +5 -5
- package/dist/esm/tds-popover-core.entry.js +1 -1
- package/dist/esm/tds-radio-button.entry.js +8 -2
- package/dist/esm/tds-side-menu-dropdown-list-item.entry.js +1 -1
- package/dist/esm/tds-side-menu-item.entry.js +1 -1
- package/dist/esm/tds-spinner.entry.js +1 -1
- package/dist/esm/tds-step.entry.js +2 -2
- package/dist/esm/tds-table-body-row-expandable.entry.js +1 -1
- package/dist/esm/tds-table-footer.entry.js +1 -1
- package/dist/esm/tds-table-toolbar.entry.js +3 -3
- package/dist/esm/tds-text-field.entry.js +5 -5
- package/dist/esm/tds-textarea.entry.js +10 -3
- package/dist/esm/tds-toast.entry.js +4 -4
- package/dist/esm/tds-toggle.entry.js +9 -3
- package/dist/esm/tds-tooltip.entry.js +2 -2
- package/dist/esm/tegel.js +1 -1
- package/dist/tegel/{p-6cdbdb4e.entry.js → p-08cee6a4.entry.js} +1 -1
- package/dist/tegel/{p-a1262f8f.entry.js → p-106e048d.entry.js} +1 -1
- package/dist/tegel/{p-1336fb6c.entry.js → p-120b5875.entry.js} +1 -1
- package/dist/tegel/{p-3e4707fb.entry.js → p-2e5d2bec.entry.js} +1 -1
- package/dist/tegel/{p-dfe24bb1.entry.js → p-32540392.entry.js} +1 -1
- package/dist/tegel/p-326f0bf4.entry.js +1 -0
- package/dist/tegel/{p-1120575b.entry.js → p-364c08ec.entry.js} +1 -1
- package/dist/tegel/p-3a92d554.entry.js +1 -0
- package/dist/tegel/{p-d4891ce6.entry.js → p-4d60aa49.entry.js} +1 -1
- package/dist/tegel/p-50ca8e71.entry.js +1 -0
- package/dist/tegel/{p-1116da44.entry.js → p-52adc30c.entry.js} +1 -1
- package/dist/tegel/p-5dd2aac8.entry.js +1 -0
- package/dist/tegel/{p-87ba6285.entry.js → p-5df726fb.entry.js} +1 -1
- package/dist/tegel/{p-d29a777f.entry.js → p-67b4b2cf.entry.js} +1 -1
- package/dist/tegel/{p-9d8bb017.entry.js → p-6d752168.entry.js} +1 -1
- package/dist/tegel/p-6d89dcbe.entry.js +1 -0
- package/dist/tegel/{p-9899e52e.entry.js → p-7013249b.entry.js} +1 -1
- package/dist/tegel/p-731f7599.entry.js +1 -0
- package/dist/tegel/{p-e7a452a8.entry.js → p-76faaf70.entry.js} +1 -1
- package/dist/tegel/p-84de314b.entry.js +1 -0
- package/dist/tegel/{p-e102ca15.entry.js → p-87219f00.entry.js} +1 -1
- package/dist/tegel/p-8bf0f99f.entry.js +1 -0
- package/dist/tegel/{p-c5e50096.entry.js → p-97de52aa.entry.js} +1 -1
- package/dist/tegel/{p-2e1d2b49.entry.js → p-9ebfde2f.entry.js} +1 -1
- package/dist/tegel/{p-2b8e97e1.entry.js → p-a495c4bc.entry.js} +1 -1
- package/dist/tegel/p-b58194f9.entry.js +1 -0
- package/dist/tegel/{p-d14500a1.entry.js → p-c0778293.entry.js} +1 -1
- package/dist/tegel/p-c6beca5e.entry.js +1 -0
- package/dist/tegel/p-caa00547.entry.js +1 -0
- package/dist/tegel/p-d9040b7f.entry.js +1 -0
- package/dist/tegel/p-d99df3e7.entry.js +1 -0
- package/dist/tegel/{p-3c51a017.entry.js → p-da60d17b.entry.js} +1 -1
- package/dist/tegel/p-e3c2b6b4.entry.js +1 -0
- package/dist/tegel/p-eb5a8659.entry.js +1 -0
- package/dist/tegel/p-f4283f93.entry.js +1 -0
- package/dist/tegel/p-f76d8ab9.entry.js +1 -0
- package/dist/tegel/{p-2774f177.entry.js → p-fc679bf3.entry.js} +1 -1
- package/dist/tegel/{p-4bd0d41c.entry.js → p-fdc5c832.entry.js} +1 -1
- package/dist/tegel/tegel.css +6 -6
- package/dist/tegel/tegel.esm.js +1 -1
- package/dist/types/components/button/button.d.ts +4 -0
- package/dist/types/components/checkbox/checkbox.d.ts +2 -0
- package/dist/types/components/datetime/datetime.d.ts +2 -0
- package/dist/types/components/radio-button/radio-button.d.ts +3 -0
- package/dist/types/components/slider/slider-stories-setup.d.ts +232 -0
- package/dist/types/components/table/table-toolbar/table-toolbar.d.ts +1 -0
- package/dist/types/components/textarea/textarea.d.ts +2 -0
- package/dist/types/components/toggle/toggle.d.ts +3 -0
- package/dist/types/components.d.ts +36 -0
- package/dist/types/global.d.ts +1 -0
- package/dist/types/stories/formatHtmlPreview.d.ts +2 -0
- package/dist/types/utils/accessibility.d.ts +14 -0
- package/package.json +30 -35
- package/dist/collection/stories/assets/code-brackets.svg +0 -1
- package/dist/collection/stories/assets/colors.svg +0 -1
- package/dist/collection/stories/assets/comments.svg +0 -1
- package/dist/collection/stories/assets/direction.svg +0 -1
- package/dist/collection/stories/assets/flow.svg +0 -1
- package/dist/collection/stories/assets/plugin.svg +0 -1
- package/dist/collection/stories/assets/repo.svg +0 -1
- package/dist/collection/stories/assets/stackalt.svg +0 -1
- package/dist/components/p-96e83134.js +0 -2098
- package/dist/tegel/p-0ca95c76.entry.js +0 -1
- package/dist/tegel/p-1978cb0d.entry.js +0 -1
- package/dist/tegel/p-2286d4c3.entry.js +0 -1
- package/dist/tegel/p-30c88c69.entry.js +0 -1
- package/dist/tegel/p-503cea9d.entry.js +0 -1
- package/dist/tegel/p-554644a9.entry.js +0 -1
- package/dist/tegel/p-5ade1970.entry.js +0 -1
- package/dist/tegel/p-5bb01a99.entry.js +0 -1
- package/dist/tegel/p-90a97cc2.entry.js +0 -1
- package/dist/tegel/p-a9253c3a.entry.js +0 -1
- package/dist/tegel/p-ae0fed95.entry.js +0 -1
- package/dist/tegel/p-b152840e.entry.js +0 -1
- package/dist/tegel/p-b58c7bed.entry.js +0 -1
- package/dist/tegel/p-b7848493.entry.js +0 -1
- package/dist/tegel/p-b9603974.entry.js +0 -1
- package/dist/tegel/p-bbeb4e1b.entry.js +0 -1
- package/dist/tegel/p-d6d8cb7f.entry.js +0 -1
|
@@ -169,9 +169,9 @@ export class TdsInlineTabs {
|
|
|
169
169
|
this.removeEventListenerFromTabs();
|
|
170
170
|
}
|
|
171
171
|
render() {
|
|
172
|
-
return (h(Host, { key: '
|
|
172
|
+
return (h(Host, { key: '9fa2d8cb54ac480fb5875432440506b0c12efaa5', role: "tablist", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: 'aecb68d56088f84e271f3c829c84da4e732df9b8', class: "wrapper", ref: (el) => {
|
|
173
173
|
this.navWrapperElement = el;
|
|
174
|
-
}, style: { paddingLeft: `${this.leftPadding}px` } }, h("button", { key: '
|
|
174
|
+
}, style: { paddingLeft: `${this.leftPadding}px` } }, h("button", { key: '9b97d342cfe66209063b504b49480d587cd626d5', "aria-label": this.tdsScrollLeftAriaLabel, class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h("tds-icon", { key: 'a447ce946eb5bc02a2527f210322aa76ca5ad5b8', name: "chevron_left", size: "20px" })), h("slot", { key: '1df34e68bbea35ef76de48e7b8fe96b3a8655792', onSlotchange: () => this.handleSlotChange() }), h("button", { key: '7c753dd66c173265c32a7b49197df12fbecc78d1', "aria-label": this.tdsScrollRightAriaLabel, class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h("tds-icon", { key: 'f76934b67470db5ff6ddb6fbae86f87fd3d0bdee', name: "chevron_right", size: "20px" })))));
|
|
175
175
|
}
|
|
176
176
|
static get is() { return "tds-inline-tabs"; }
|
|
177
177
|
static get encapsulation() { return "shadow"; }
|
|
@@ -30,8 +30,8 @@ export class TdsNavigationTab {
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
render() {
|
|
33
|
-
return (h(Host, { key: '
|
|
34
|
-
${this.disabled ? 'disabled' : ''}` }, h("slot", { key: '
|
|
33
|
+
return (h(Host, { key: '28ba6f5bedc4f2a31e5011e37bf92d3b38fa8abe' }, h("div", { key: 'ac5aad203d8a13dc42a8f9e99b2ccdd7c784c9af', class: `navigation-tab-item ${this.selected ? 'selected' : ''}
|
|
34
|
+
${this.disabled ? 'disabled' : ''}` }, h("slot", { key: 'da6292612753748f6cac68e0b282ecde642cb5b5' }))));
|
|
35
35
|
}
|
|
36
36
|
static get is() { return "tds-navigation-tab"; }
|
|
37
37
|
static get encapsulation() { return "shadow"; }
|
|
@@ -68,7 +68,8 @@
|
|
|
68
68
|
:host .scroll-right-button:focus,
|
|
69
69
|
:host .scroll-left-button:focus {
|
|
70
70
|
outline: 2px solid var(--tds-blue-400);
|
|
71
|
-
|
|
71
|
+
box-shadow: 0 0 0 1px var(--tds-white);
|
|
72
|
+
outline-offset: 1px;
|
|
72
73
|
}
|
|
73
74
|
:host .scroll-right-button svg,
|
|
74
75
|
:host .scroll-left-button svg {
|
|
@@ -169,15 +169,15 @@ export class TdsNavigationTabs {
|
|
|
169
169
|
this.removeEventListenerFromTabs();
|
|
170
170
|
}
|
|
171
171
|
render() {
|
|
172
|
-
return (h(Host, { key: '
|
|
172
|
+
return (h(Host, { key: '2fc278cacc04614ca43b70f52b12f79b31227fbb', role: "tablist", class: { [`tds-mode-variant-${this.modeVariant}`]: this.modeVariant !== null } }, h("div", { key: '50357810903ea3bff83fde4478960de0866c7c15', class: "wrapper", ref: (el) => {
|
|
173
173
|
this.navWrapperElement = el;
|
|
174
|
-
}, style: { paddingLeft: `${this.leftPadding}px` } }, h("button", { key: '
|
|
174
|
+
}, style: { paddingLeft: `${this.leftPadding}px` } }, h("button", { key: 'b5b05a2f9bce1618c71594cf388dc83efce98915', "aria-label": this.tdsScrollLeftAriaLabel, class: {
|
|
175
175
|
'scroll-left-button': true,
|
|
176
176
|
'show': this.showLeftScroll,
|
|
177
|
-
}, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h("tds-icon", { key: '
|
|
177
|
+
}, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h("tds-icon", { key: 'aad19852d36ff8e1642ba464f9618a57ff37169c', name: "chevron_left", size: "20px" })), h("slot", { key: '3dcf0d7e6900df33a69863868a3a48dcb4aa8141', onSlotchange: () => this.handleSlotChange() }), h("button", { key: '352539955226aecf92deb0c0db83c42a5b021e43', "aria-label": this.tdsScrollRightAriaLabel, class: {
|
|
178
178
|
'scroll-right-button': true,
|
|
179
179
|
'show': this.showRightScroll,
|
|
180
|
-
}, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h("tds-icon", { key: '
|
|
180
|
+
}, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h("tds-icon", { key: '0e3fe531374dd82b6ee5de1a5a1bea4a38e03500', name: "chevron_right", size: "20px" })))));
|
|
181
181
|
}
|
|
182
182
|
static get is() { return "tds-navigation-tabs"; }
|
|
183
183
|
static get encapsulation() { return "shadow"; }
|
|
@@ -76,7 +76,7 @@ export class TdsTextField {
|
|
|
76
76
|
var _a;
|
|
77
77
|
const usesPrefixSlot = hasSlot('prefix', this.host);
|
|
78
78
|
const usesSuffixSlot = hasSlot('suffix', this.host);
|
|
79
|
-
return (h("div", { key: '
|
|
79
|
+
return (h("div", { key: '985928ef59662762648f2d95d5decad2e3188e05', class: {
|
|
80
80
|
'form-text-field': true,
|
|
81
81
|
'form-text-field-nomin': this.noMinWidth,
|
|
82
82
|
'text-field-focus': this.focusInput && !this.disabled,
|
|
@@ -94,12 +94,12 @@ export class TdsTextField {
|
|
|
94
94
|
'form-text-field-sm': this.size === 'sm',
|
|
95
95
|
'form-text-field-error': this.state === 'error',
|
|
96
96
|
'form-text-field-success': this.state === 'success',
|
|
97
|
-
} }, this.labelPosition === 'outside' && (h("div", { key: '
|
|
97
|
+
} }, this.labelPosition === 'outside' && (h("div", { key: '7a409b43a1fee8b7b078abc5f96c925ab97bcedc', class: "text-field-label-outside" }, h("label", { key: 'c6bdaab4e6f81a95aa71a4e23a1f02fb1bcef9ec', htmlFor: `text-field-input-element-${this.uuid}` }, this.label))), h("div", { key: '945f7901a92850da22ab84c5fe77e2d97738aaa9', onClick: () => this.textInput.focus(), class: "text-field-container" }, usesPrefixSlot && (h("div", { key: '5d6cb2facb8ff90b7393409b769c2b5e5a860421', class: {
|
|
98
98
|
'text-field-slot-wrap-prefix': true,
|
|
99
99
|
'text-field-error': this.state === 'error',
|
|
100
100
|
'text-field-success': this.state === 'success',
|
|
101
101
|
'text-field-default': this.state === 'default',
|
|
102
|
-
} }, h("slot", { key: '
|
|
102
|
+
} }, h("slot", { key: 'b0f0e3ebb96dbd2af021150b68690af566db44b9', name: "prefix" }))), h("div", { key: 'c5b172ee6c561256ab930490113f406b88eae67c', class: "text-field-input-container" }, h("input", { key: '2e0a9070b41bde39a2a0f14b132f474692eb0e04', ref: (inputEl) => {
|
|
103
103
|
this.textInput = inputEl;
|
|
104
104
|
}, class: {
|
|
105
105
|
'text-field-input': true,
|
|
@@ -114,13 +114,13 @@ export class TdsTextField {
|
|
|
114
114
|
if (!this.readOnly) {
|
|
115
115
|
this.handleBlur(event);
|
|
116
116
|
}
|
|
117
|
-
}, "aria-label": this.tdsAriaLabel ? this.tdsAriaLabel : this.label, "aria-describedby": `text-field-helper-element-${this.uuid}`, "aria-readonly": this.readOnly, id: `text-field-input-element-${this.uuid}` }), this.labelPosition === 'inside' && this.size !== 'sm' && (h("label", { key: '
|
|
117
|
+
}, "aria-label": this.tdsAriaLabel ? this.tdsAriaLabel : this.label, "aria-describedby": `text-field-helper-element-${this.uuid}`, "aria-readonly": this.readOnly, id: `text-field-input-element-${this.uuid}` }), this.labelPosition === 'inside' && this.size !== 'sm' && (h("label", { key: 'ffb3bbb84ab718c2259134f32ee6dd0eb348cb9f', class: "text-field-label-inside", htmlFor: `text-field-input-element-${this.uuid}` }, this.label))), h("div", { key: '166da0147311d28064b7e03bbefd1a0ee18db5ca', class: "text-field-bar" }), usesSuffixSlot && (h("div", { key: '4bb21d12957bf65d525931c88a5a89fff49d4eaf', class: {
|
|
118
118
|
'text-field-slot-wrap-suffix': true,
|
|
119
119
|
'text-field-error': this.state === 'error',
|
|
120
120
|
'text-field-success': this.state === 'success',
|
|
121
121
|
'text-field-default': this.state === 'default',
|
|
122
122
|
'tds-u-display-none': this.readOnly,
|
|
123
|
-
} }, h("slot", { key: '
|
|
123
|
+
} }, h("slot", { key: '7e67dbc8f4f67cb0c7d194e01e5787ae18ffab13', name: "suffix" }))), this.readOnly && !this.hideReadOnlyIcon && (h("span", { key: 'd213ec000d837cbd4b711468ef3cfa826cc65ac2', class: "text-field-icon__readonly" }, h("tds-icon", { key: '56b8b76a5771889f9f36ab683dcba6906bff42a6', name: "edit_inactive", size: "20px" }))), h("span", { key: '9e8fa95602a1ce5630f30947b59decc700c06c8b', class: "text-field-icon__readonly-label" }, "This field is non-editable")), h("div", { key: '9e8547e06a25e7da98ff977ac6be1b79d27e4151', "aria-live": "assertive" }, (this.helper || this.maxLength > 0) && (h("div", { key: 'daeea67a48a15d27785f31dfcb69fb75e31ab85b', class: "text-field-helper", id: `text-field-helper-element-${this.uuid}` }, this.state === 'error' && (h("div", { key: '974bad3f97b23d69a20130bf66b6c72ef47f68bc', class: "text-field-helper-error-state" }, !this.readOnly && h("tds-icon", { key: '687cad3cb0451a262f836089851e9a2e08f2c74e', name: "error", size: "16px" }), this.helper)), this.state !== 'error' && this.helper, !this.readOnly && this.maxLength > 0 && (h("span", { key: '431709fb793dde8845b20698e722a7c140bb32b6', class: {
|
|
124
124
|
'text-field-textcounter-divider': true,
|
|
125
125
|
'text-field-textcounter-disabled': this.disabled,
|
|
126
126
|
} }, this.value === null ? 0 : (_a = this.value) === null || _a === void 0 ? void 0 : _a.length, " / ", this.maxLength)))))));
|
|
@@ -42,6 +42,13 @@ export class TdsTextarea {
|
|
|
42
42
|
this.focusInput = true;
|
|
43
43
|
this.tdsFocus.emit(event);
|
|
44
44
|
}
|
|
45
|
+
/** Method to programmatically focus the textarea element */
|
|
46
|
+
async focusElement() {
|
|
47
|
+
if (this.textEl) {
|
|
48
|
+
this.textEl.focus();
|
|
49
|
+
this.focusInput = true;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
45
52
|
setModeVariant(modeVariant) {
|
|
46
53
|
if (this.readOnly && modeVariant === 'primary') {
|
|
47
54
|
return 'secondary';
|
|
@@ -58,7 +65,7 @@ export class TdsTextarea {
|
|
|
58
65
|
}
|
|
59
66
|
render() {
|
|
60
67
|
var _a;
|
|
61
|
-
return (h("div", { key: '
|
|
68
|
+
return (h("div", { key: '06fd8ce87614410858a7d9253fac73a6f1cf20ec', class: {
|
|
62
69
|
'textarea-container': true,
|
|
63
70
|
'textarea-label-inside': this.labelPosition === 'inside',
|
|
64
71
|
'textarea-focus': this.focusInput,
|
|
@@ -68,7 +75,7 @@ export class TdsTextarea {
|
|
|
68
75
|
'textarea-data': this.value !== '',
|
|
69
76
|
[`textarea-${this.state}`]: this.state === 'error' || this.state === 'success',
|
|
70
77
|
'no-min-width': this.noMinWidth,
|
|
71
|
-
} }, this.labelPosition !== 'no-label' && (h("label", { key: '
|
|
78
|
+
} }, this.labelPosition !== 'no-label' && (h("label", { key: '1a02a333e4164b39fd223c68cc3d27d7c53487fb', htmlFor: `textarea-element-${this.uuid}`, class: 'textarea-label' }, this.label)), h("div", { key: '6d45e8c8427770accc82c7ad9e10fbed016437a4', class: "textarea-wrapper" }, h("textarea", { key: '614c30a5b5077060b1568744cf0800580e746819', id: `textarea-element-${this.uuid}`, class: 'textarea-input', ref: (inputEl) => {
|
|
72
79
|
this.textEl = inputEl;
|
|
73
80
|
}, disabled: this.disabled, readonly: !this.disabled && this.readOnly, placeholder: this.placeholder, value: this.value, name: this.name, autofocus: this.autofocus, maxlength: this.maxLength, cols: this.cols, rows: this.rows, onFocus: (event) => {
|
|
74
81
|
if (!this.readOnly) {
|
|
@@ -78,7 +85,7 @@ export class TdsTextarea {
|
|
|
78
85
|
if (!this.readOnly) {
|
|
79
86
|
this.handleBlur(event);
|
|
80
87
|
}
|
|
81
|
-
}, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), "aria-invalid": this.state === 'error' ? 'true' : 'false', "aria-readonly": this.readOnly ? 'true' : 'false', "aria-label": this.tdsAriaLabel ? this.tdsAriaLabel : this.label, "aria-describedby": `textarea-helper-element-${this.uuid}` }), h("span", { key: '
|
|
88
|
+
}, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), "aria-invalid": this.state === 'error' ? 'true' : 'false', "aria-readonly": this.readOnly ? 'true' : 'false', "aria-label": this.tdsAriaLabel ? this.tdsAriaLabel : this.label, "aria-describedby": `textarea-helper-element-${this.uuid}` }), h("span", { key: 'e0574ae32d1ce9c69156dc2aa52d8d1881b6ff9b', class: "textarea-resizer-icon" }, h("svg", { key: '23e79729cc099b7e4f07192c05aa4a304b91788a', width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '54891720aa51af768f467be5bd8a72fc7adc8d47', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.8536 0.853553C12.0488 0.658291 12.0488 0.341709 11.8536 0.146447C11.6583 -0.0488155 11.3417 -0.0488155 11.1464 0.146447L0.146447 11.1464C-0.0488155 11.3417 -0.0488155 11.6583 0.146447 11.8536C0.341709 12.0488 0.658291 12.0488 0.853553 11.8536L11.8536 0.853553ZM11.8536 4.64645C12.0488 4.84171 12.0488 5.15829 11.8536 5.35355L5.35355 11.8536C5.15829 12.0488 4.84171 12.0488 4.64645 11.8536C4.45118 11.6583 4.45118 11.3417 4.64645 11.1464L11.1464 4.64645C11.3417 4.45118 11.6583 4.45118 11.8536 4.64645ZM11.8536 8.64645C12.0488 8.84171 12.0488 9.15829 11.8536 9.35355L9.35355 11.8536C9.15829 12.0488 8.84171 12.0488 8.64645 11.8536C8.45118 11.6583 8.45118 11.3417 8.64645 11.1464L11.1464 8.64645C11.3417 8.45118 11.6583 8.45118 11.8536 8.64645Z", fill: "currentColor" }))), !this.disabled && !this.hideReadOnlyIcon && this.readOnly && (h("span", { key: '72e3586f1be99460ced66d640392b4596e5b8c2f', class: "textarea-icon__readonly" }, h("tds-tooltip", { key: '9f84391a75b5ae428c71d3b713a9d281c4475a09', placement: "top-end", text: "This field is non-editable", selector: "#readonly-tooltip" }), h("tds-icon", { key: '55e195bb50d8b707ec3a403c8c62cad74d738919', id: "readonly-tooltip", name: "edit_inactive", svgTitle: "inactive" })))), h("span", { key: 'ff2043a19ebb129178ecfd36126b0d23eacde4d1', class: 'textarea-helper', "aria-live": "assertive", id: `textarea-helper-element-${this.uuid}` }, this.state === 'error' && this.helper && !this.readOnly && (h("tds-icon", { key: '84b0991ef5ddab7f960ba75db22c65762b0b5d20', name: "error", size: "16px" })), this.helper), this.maxLength > 0 && (h("div", { key: '963b3a3bdafeabec6ad2bd3663c07ed0d4a5b3fd', class: 'textarea-textcounter' }, this.value === null ? 0 : (_a = this.value) === null || _a === void 0 ? void 0 : _a.length, h("span", { key: '8496a0ae44721cdcd9443e09ff6a709b6d3c704f', class: "textfield-textcounter-divider" }, " / "), " ", this.maxLength))));
|
|
82
89
|
}
|
|
83
90
|
static get is() { return "tds-textarea"; }
|
|
84
91
|
static get encapsulation() { return "scoped"; }
|
|
@@ -480,4 +487,25 @@ export class TdsTextarea {
|
|
|
480
487
|
}
|
|
481
488
|
}];
|
|
482
489
|
}
|
|
490
|
+
static get methods() {
|
|
491
|
+
return {
|
|
492
|
+
"focusElement": {
|
|
493
|
+
"complexType": {
|
|
494
|
+
"signature": "() => Promise<void>",
|
|
495
|
+
"parameters": [],
|
|
496
|
+
"references": {
|
|
497
|
+
"Promise": {
|
|
498
|
+
"location": "global",
|
|
499
|
+
"id": "global::Promise"
|
|
500
|
+
}
|
|
501
|
+
},
|
|
502
|
+
"return": "Promise<void>"
|
|
503
|
+
},
|
|
504
|
+
"docs": {
|
|
505
|
+
"text": "Method to programmatically focus the textarea element",
|
|
506
|
+
"tags": []
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
};
|
|
510
|
+
}
|
|
483
511
|
}
|
|
@@ -13,28 +13,28 @@
|
|
|
13
13
|
border-radius: 4px;
|
|
14
14
|
}
|
|
15
15
|
:host .wrapper.information {
|
|
16
|
-
border-left: 4px solid var(--tds-
|
|
16
|
+
border-left: 4px solid var(--tds-toast-icon-color-info);
|
|
17
17
|
}
|
|
18
18
|
:host .wrapper.information tds-icon {
|
|
19
|
-
color: var(--tds-
|
|
19
|
+
color: var(--tds-toast-icon-color-info);
|
|
20
20
|
}
|
|
21
21
|
:host .wrapper.success {
|
|
22
|
-
border-left: 4px solid var(--tds-
|
|
22
|
+
border-left: 4px solid var(--tds-toast-icon-color-success);
|
|
23
23
|
}
|
|
24
24
|
:host .wrapper.success tds-icon {
|
|
25
|
-
color: var(--tds-
|
|
25
|
+
color: var(--tds-toast-icon-color-success);
|
|
26
26
|
}
|
|
27
27
|
:host .wrapper.error {
|
|
28
|
-
border-left: 4px solid var(--tds-
|
|
28
|
+
border-left: 4px solid var(--tds-toast-icon-color-error);
|
|
29
29
|
}
|
|
30
30
|
:host .wrapper.error tds-icon {
|
|
31
|
-
color: var(--tds-
|
|
31
|
+
color: var(--tds-toast-icon-color-error);
|
|
32
32
|
}
|
|
33
33
|
:host .wrapper.warning {
|
|
34
|
-
border-left: 4px solid var(--tds-warning);
|
|
34
|
+
border-left: 4px solid var(--tds-toast-icon-color-warning);
|
|
35
35
|
}
|
|
36
36
|
:host .wrapper.warning tds-icon {
|
|
37
|
-
color: var(--tds-warning);
|
|
37
|
+
color: var(--tds-toast-icon-color-warning);
|
|
38
38
|
}
|
|
39
39
|
:host .wrapper button.close {
|
|
40
40
|
height: 20px;
|
|
@@ -51,7 +51,8 @@
|
|
|
51
51
|
}
|
|
52
52
|
:host .wrapper button.close:focus {
|
|
53
53
|
outline: 2px solid var(--tds-blue-400);
|
|
54
|
-
|
|
54
|
+
box-shadow: 0 0 0 1px var(--tds-white);
|
|
55
|
+
outline-offset: 1px;
|
|
55
56
|
}
|
|
56
57
|
:host .wrapper button.close tds-icon {
|
|
57
58
|
color: var(--tds-toast-dissmiss-color);
|
|
@@ -94,9 +95,6 @@
|
|
|
94
95
|
:host .content .toast-bottom {
|
|
95
96
|
padding-top: 12px;
|
|
96
97
|
}
|
|
97
|
-
:host slot[name=actions]::slotted(*) {
|
|
98
|
-
color: var(--tds-toast-link-color);
|
|
99
|
-
}
|
|
100
98
|
:host .tds-mode-variant-primary {
|
|
101
99
|
--tds-toast-background: var(--tds-toast-background-primary);
|
|
102
100
|
}
|
|
@@ -65,12 +65,12 @@ export class TdsToast {
|
|
|
65
65
|
const usesHeaderSlot = hasSlot('header', this.host);
|
|
66
66
|
const usesSubheaderSlot = hasSlot('subheader', this.host);
|
|
67
67
|
const usesActionsSlot = hasSlot('actions', this.host);
|
|
68
|
-
return (h(Host, { key: '
|
|
68
|
+
return (h(Host, { key: '433c25165487688ff40c78a0455d30cedd08c76f', "aria-live": this.tdsAriaLive, toastRole: this.toastRole, "aria-describedby": this.host.getAttribute('aria-describedby'), class: {
|
|
69
69
|
hide: this.hidden,
|
|
70
70
|
show: !this.hidden,
|
|
71
|
-
} }, h("div", { key: '
|
|
71
|
+
} }, h("div", { key: '2734573a413d9cdf1a329675fe0e0db374243cbf', class: `
|
|
72
72
|
wrapper
|
|
73
|
-
${this.variant}` }, h("tds-icon", { key: '
|
|
73
|
+
${this.variant}` }, h("tds-icon", { key: '88d4ab6fd55d64c93ad3089c695d0fa4075208a6', name: this.getIconName(), size: "20px", svgTitle: this.getIconName() }), h("div", { key: '02de15f884420946530d2e04c330987f73c9ca44', class: `content` }, h("div", { key: '4eb8c6a13a7bb53313a18b47bfa8e2ab1211cdbc', class: "header-subheader" }, this.header && h("div", { key: '1b707e29cdd68a5cc73a2b694b8b93698cbac661', class: "header" }, this.header), usesHeaderSlot && h("slot", { key: 'ffe2b463f8fc6e4ca3b563d7a4ae55968cb4a478', name: "header" }), this.subheader && h("div", { key: '8164b591452e4a6f025f752951c678a15443fff9', class: "subheader" }, this.subheader), usesSubheaderSlot && h("slot", { key: '2bca8428e8eb128cf8c0f62b31a0da54ef555df3', name: "subheader" })), usesActionsSlot && (h("div", { key: 'de84bc19257b09127b861b357240509a7346f2e7', class: `toast-bottom ${usesSubheaderSlot || this.subheader ? 'subheader' : 'no-subheader'}` }, h("slot", { key: 'b85a46c5dc97dc7d3b95feb816145731887711fb', name: "actions" })))), this.closable && (h("button", { key: '69adb03d815ece9e50cf436957927c5dcd4d3ab8', id: "my-button", "aria-label": this.tdsCloseAriaLabel, onClick: this.handleClose, class: "close" }, h("tds-icon", { key: '9b4f062079caa32c5900202aaf1c2a7a5ef8e18c', name: "cross", size: "20px", svgTitle: "cross" }))))));
|
|
74
74
|
}
|
|
75
75
|
static get is() { return "tds-toast"; }
|
|
76
76
|
static get encapsulation() { return "shadow"; }
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
border-radius: 16px;
|
|
35
35
|
background-color: var(--tds-toggle-off-slider);
|
|
36
36
|
left: 0;
|
|
37
|
+
border: 1px solid transparent;
|
|
37
38
|
}
|
|
38
39
|
.tds-toggle input[type=checkbox]::after {
|
|
39
40
|
width: 16px;
|
|
@@ -43,16 +44,30 @@
|
|
|
43
44
|
left: 4px;
|
|
44
45
|
top: 4px;
|
|
45
46
|
}
|
|
46
|
-
.tds-toggle input[type=checkbox]:focus
|
|
47
|
+
.tds-toggle input[type=checkbox]:focus {
|
|
47
48
|
outline: none;
|
|
49
|
+
outline: 2px solid var(--tds-toggle-border-outline);
|
|
50
|
+
border-radius: 16px;
|
|
51
|
+
outline-offset: 0;
|
|
48
52
|
}
|
|
49
|
-
.tds-toggle input[type=checkbox]:focus::before
|
|
53
|
+
.tds-toggle input[type=checkbox]:focus::before {
|
|
50
54
|
background-color: var(--tds-toggle-off-slider-focus);
|
|
51
55
|
border: 1px solid var(--tds-toggle-off-border-focus);
|
|
52
56
|
}
|
|
57
|
+
.tds-toggle input[type=checkbox]:hover::before {
|
|
58
|
+
background-color: var(--tds-toggle-off-slider-hover);
|
|
59
|
+
border: 1px solid var(--tds-toggle-off-border-focus);
|
|
60
|
+
}
|
|
53
61
|
.tds-toggle input[type=checkbox]:checked::before {
|
|
54
62
|
background-color: var(--tds-toggle-on-slider);
|
|
55
|
-
|
|
63
|
+
}
|
|
64
|
+
.tds-toggle input[type=checkbox]:checked:focus::before {
|
|
65
|
+
background-color: var(--tds-toggle-on-slider-focus);
|
|
66
|
+
border: 1px solid var(--tds-toggle-off-border-focus);
|
|
67
|
+
}
|
|
68
|
+
.tds-toggle input[type=checkbox]:checked:hover::before {
|
|
69
|
+
background-color: var(--tds-toggle-on-slider-hover);
|
|
70
|
+
border: 1px solid var(--tds-toggle-off-border-focus);
|
|
56
71
|
}
|
|
57
72
|
.tds-toggle input[type=checkbox]:checked::after {
|
|
58
73
|
left: 24px;
|
|
@@ -29,6 +29,12 @@ export class TdsToggle {
|
|
|
29
29
|
checked: this.checked,
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
+
/** Method to programmatically focus the toggle element */
|
|
33
|
+
async focusElement() {
|
|
34
|
+
if (this.inputElement) {
|
|
35
|
+
this.inputElement.focus();
|
|
36
|
+
}
|
|
37
|
+
}
|
|
32
38
|
componentWillLoad() {
|
|
33
39
|
this.labelSlot = this.host.querySelector("[slot='label']");
|
|
34
40
|
}
|
|
@@ -38,10 +44,10 @@ export class TdsToggle {
|
|
|
38
44
|
}
|
|
39
45
|
}
|
|
40
46
|
render() {
|
|
41
|
-
return (h("div", { key: '
|
|
47
|
+
return (h("div", { key: '212a541d06f0cc534855ac872cfb386dc1b2d4ff', class: "tds-toggle" }, this.headline && (h("div", { key: '076c51461d4898d2bfa3c86fadd94ac2ad63c7a8', class: {
|
|
42
48
|
'toggle-headline': true,
|
|
43
49
|
'disabled': this.disabled,
|
|
44
|
-
} }, this.headline)), h("input", { key: '
|
|
50
|
+
} }, this.headline)), h("input", { key: 'e0e849d7b05b77612fc949894cac8befa5b89370', ref: (inputEl) => (this.inputElement = inputEl), "aria-label": this.tdsAriaLabel, "aria-describedby": this.host.getAttribute('aria-describedby'), "aria-labelledby": this.host.getAttribute('aria-labelledby'), "aria-checked": this.checked, "aria-required": this.required, onChange: () => this.handleToggle(), class: `${this.size}`, checked: this.checked, disabled: this.disabled, required: this.required, type: "checkbox", name: this.name, id: this.toggleId, role: "switch" }), this.labelSlot && (h("label", { key: '4d1dcc70f896695657ca7ca68fd832ee4d13417a', class: { disabled: this.disabled }, htmlFor: this.toggleId }, h("slot", { key: '800ea4ee2760efee8cdfe1ac3aee4b3a6f95f199', name: "label" })))));
|
|
45
51
|
}
|
|
46
52
|
static get is() { return "tds-toggle"; }
|
|
47
53
|
static get encapsulation() { return "scoped"; }
|
|
@@ -236,6 +242,23 @@ export class TdsToggle {
|
|
|
236
242
|
"text": "Toggles the Toggle.",
|
|
237
243
|
"tags": []
|
|
238
244
|
}
|
|
245
|
+
},
|
|
246
|
+
"focusElement": {
|
|
247
|
+
"complexType": {
|
|
248
|
+
"signature": "() => Promise<void>",
|
|
249
|
+
"parameters": [],
|
|
250
|
+
"references": {
|
|
251
|
+
"Promise": {
|
|
252
|
+
"location": "global",
|
|
253
|
+
"id": "global::Promise"
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
"return": "Promise<void>"
|
|
257
|
+
},
|
|
258
|
+
"docs": {
|
|
259
|
+
"text": "Method to programmatically focus the toggle element",
|
|
260
|
+
"tags": []
|
|
261
|
+
}
|
|
239
262
|
}
|
|
240
263
|
};
|
|
241
264
|
}
|
|
@@ -58,7 +58,7 @@ export class TdsTooltip {
|
|
|
58
58
|
}
|
|
59
59
|
render() {
|
|
60
60
|
var _a;
|
|
61
|
-
return (h(Host, { key: '
|
|
61
|
+
return (h(Host, { key: 'e7229ee89dea45931af9d12f04b2f31a9c0f7be2', role: "tooltip", "aria-describedby": this.tdsAriaDescribedby, "aria-label": this.text }, h("tds-popover-core", Object.assign({ key: 'e4b263f4414f6ce9d2e557fc5431040d718aff3c' }, this.inheritedAttributes, { class: {
|
|
62
62
|
'tds-tooltip': true,
|
|
63
63
|
[`tds-tooltip-${this.border}`]: true,
|
|
64
64
|
[(_a = this.inheritedAttributes.class) !== null && _a !== void 0 ? _a : '']: true,
|
|
@@ -71,7 +71,7 @@ export class TdsTooltip {
|
|
|
71
71
|
// @ts-ignore
|
|
72
72
|
onInternalTdsClose: () => {
|
|
73
73
|
this.show = false;
|
|
74
|
-
}, defaultShow: this.defaultShow }), this.text, h("slot", { key: '
|
|
74
|
+
}, defaultShow: this.defaultShow }), this.text, h("slot", { key: '41797812218d42837bb56b393a5e20c612cc51ad' }))));
|
|
75
75
|
}
|
|
76
76
|
static get is() { return "tds-tooltip"; }
|
|
77
77
|
static get encapsulation() { return "scoped"; }
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import prettier from "prettier/standalone";
|
|
2
|
+
import parserBabel from "prettier/parser-babel";
|
|
3
|
+
import parserHtml from "prettier/parser-html";
|
|
4
|
+
const prettierOptions = {
|
|
5
|
+
bracketSameLine: false,
|
|
6
|
+
htmlWhitespaceSensitivity: 'ignore',
|
|
7
|
+
printWidth: 100,
|
|
8
|
+
};
|
|
9
|
+
const formatHtmlPreview = (htmlStr) => prettier.format(htmlStr, Object.assign({ parser: 'html', plugins: [parserBabel, parserHtml] }, prettierOptions));
|
|
10
|
+
export default formatHtmlPreview;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Processes HTML content to make it more accessible for screen readers by:
|
|
3
|
+
* 1. Removing HTML tags while preserving their text content
|
|
4
|
+
* 2. Converting HTML entities to their text equivalents
|
|
5
|
+
* 3. Normalizing whitespace
|
|
6
|
+
*
|
|
7
|
+
* @param htmlContent - The HTML content to be processed for screen readers
|
|
8
|
+
* @returns Clean, readable text suitable for screen readers
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* // Input: "<p>Hello <b>World</b> & Universe!</p>"
|
|
12
|
+
* // Output: "Hello World and Universe!"
|
|
13
|
+
*/
|
|
14
|
+
export const processHtmlForScreenReader = (htmlContent) => {
|
|
15
|
+
if (!htmlContent)
|
|
16
|
+
return '';
|
|
17
|
+
return (htmlContent
|
|
18
|
+
// Remove HTML tags
|
|
19
|
+
.replace(/<[^>]*>/g, ' ')
|
|
20
|
+
// Replace common HTML entities with their text equivalents
|
|
21
|
+
.replace(/ /g, ' ')
|
|
22
|
+
.replace(/&/g, 'and')
|
|
23
|
+
.replace(/</g, 'less than')
|
|
24
|
+
.replace(/>/g, 'greater than')
|
|
25
|
+
.replace(/"/g, '"')
|
|
26
|
+
.replace(/'/g, "'")
|
|
27
|
+
// Normalize whitespace
|
|
28
|
+
.replace(/\s+/g, ' ')
|
|
29
|
+
.trim());
|
|
30
|
+
};
|
|
@@ -1,3 +1,12 @@
|
|
|
1
1
|
import AxeBuilder from "@axe-core/playwright";
|
|
2
|
-
const disabledRules = ['page-has-heading-one', 'landmark-one-main', 'region'
|
|
3
|
-
|
|
2
|
+
const disabledRules = ['page-has-heading-one', 'landmark-one-main', 'region'];
|
|
3
|
+
const rules = [
|
|
4
|
+
'best-practice',
|
|
5
|
+
'wcag2a',
|
|
6
|
+
'wcag2aa',
|
|
7
|
+
// 'wcag2aaa', // includes color-contrast-enhanced rule
|
|
8
|
+
'wcag21a',
|
|
9
|
+
'wcag21aa',
|
|
10
|
+
'wcag22aa',
|
|
11
|
+
];
|
|
12
|
+
export const tegelAnalyze = async (page) => new AxeBuilder({ page }).disableRules(disabledRules).withTags(rules).analyze();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, h, c as Host } from './p-28ef5186.js';
|
|
2
2
|
import { i as inheritAriaAttributes } from './p-0bd4c19c.js';
|
|
3
3
|
import { d as defineCustomElement$3 } from './p-9ad61cb5.js';
|
|
4
|
-
import { d as defineCustomElement$2 } from './p-
|
|
4
|
+
import { d as defineCustomElement$2 } from './p-76dc921a.js';
|
|
5
5
|
import { d as defineCustomElement$1 } from './p-c715ab56.js';
|
|
6
6
|
|
|
7
7
|
const headerLauncherButtonCss = ":host{display:block}:host tds-header-item{display:block}:host .icon{position:relative;margin-left:-6px;left:3px;transition:all 0.2s ease-in-out}";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, h, c as Host } from './p-28ef5186.js';
|
|
2
2
|
import { d as dfs } from './p-52bf0fdf.js';
|
|
3
3
|
|
|
4
|
-
const sideMenuItemCss = ":host{display:block}:host .component ::slotted(a),:host .component ::slotted(button){all:unset;box-sizing:border-box;height:68px;width:100%;display:flex;align-items:center;gap:12px;padding:0 24px;border:none;background-color:var(--tds-sidebar-side-menu-background-cover);font:var(--tds-headline-07);letter-spacing:var(--tds-headline-07-ls);color:var(--tds-sidebar-side-menu-single-item-color);cursor:pointer}:host .component tds-icon{color:red !important}:host .component ::slotted(a:focus-visible),:host .component ::slotted(button:focus-visible){outline:2px solid var(--tds-blue-400);outline-offset
|
|
4
|
+
const sideMenuItemCss = ":host{display:block}:host .component ::slotted(a),:host .component ::slotted(button){all:unset;box-sizing:border-box;height:68px;width:100%;display:flex;align-items:center;gap:12px;padding:0 24px;border:none;background-color:var(--tds-sidebar-side-menu-background-cover);font:var(--tds-headline-07);letter-spacing:var(--tds-headline-07-ls);color:var(--tds-sidebar-side-menu-single-item-color);cursor:pointer}:host .component tds-icon{color:red !important}:host .component ::slotted(a:focus-visible),:host .component ::slotted(button:focus-visible){outline:2px solid var(--tds-blue-400);box-shadow:0 0 0 1px var(--tds-white);outline-offset:1px}:host .component:hover ::slotted(a),:host .component:hover ::slotted(button){background-color:var(--tds-sidebar-item-state-hover)}:host .component:active ::slotted(a),:host .component:active ::slotted(button){background-color:var(--tds-sidemenu-item-state-active)}:host .component-collapsed ::slotted(a),:host .component-collapsed ::slotted(button){padding:0;display:flex;justify-content:center;align-items:center;position:relative}:host .component-selected:not(:host .component-active) ::slotted(a),:host .component-selected:not(:host .component-active) ::slotted(button){border-left:4px solid var(--tds-sidebar-side-menu-single-subitem-selected-border-color);padding-left:20px;background-color:var(--tds-sidebar-item-state-selected)}@media (min-width: 992px){:host .component.component-collapsed ::slotted(a),:host .component.component-collapsed ::slotted(button){color:rgba(90, 90, 90, 0);overflow:hidden}}";
|
|
5
5
|
const TdsSideMenuItemStyle0 = sideMenuItemCss;
|
|
6
6
|
|
|
7
7
|
const TdsSideMenuItem = /*@__PURE__*/ proxyCustomElement(class TdsSideMenuItem extends H {
|