@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
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
box-sizing: border-box;
|
|
35
35
|
}
|
|
36
36
|
.tds-radio-button .tds-form-input[type=radio]::before {
|
|
37
|
-
width:
|
|
38
|
-
height:
|
|
39
|
-
left:
|
|
40
|
-
top:
|
|
37
|
+
width: 22px;
|
|
38
|
+
height: 22px;
|
|
39
|
+
left: 1px;
|
|
40
|
+
top: 1px;
|
|
41
41
|
}
|
|
42
42
|
.tds-radio-button .tds-form-input[type=radio]::after {
|
|
43
43
|
border: 1px solid var(--tds-radio-button-interaction-01);
|
|
@@ -49,11 +49,9 @@
|
|
|
49
49
|
}
|
|
50
50
|
.tds-radio-button .tds-form-input[type=radio]:hover::before {
|
|
51
51
|
background-color: var(--tds-radio-button-background-hover);
|
|
52
|
-
opacity: 0.12;
|
|
53
52
|
}
|
|
54
53
|
.tds-radio-button .tds-form-input[type=radio]:focus::before {
|
|
55
54
|
background-color: var(--tds-radio-button-background-focus);
|
|
56
|
-
opacity: 0.24;
|
|
57
55
|
animation: rb-focus 0.4s cubic-bezier(0.65, 0.05, 0.38, 0.95) forwards;
|
|
58
56
|
}
|
|
59
57
|
.tds-radio-button .tds-form-input[type=radio]:disabled, .tds-radio-button .tds-form-input[type=radio].disabled {
|
|
@@ -96,6 +94,5 @@
|
|
|
96
94
|
}
|
|
97
95
|
100% {
|
|
98
96
|
transform: scale(1);
|
|
99
|
-
opacity: 0.24;
|
|
100
97
|
}
|
|
101
98
|
}
|
|
@@ -20,8 +20,14 @@ export class TdsRadioButton {
|
|
|
20
20
|
this.tdsAriaLabel = undefined;
|
|
21
21
|
this.tdsTabIndex = undefined;
|
|
22
22
|
}
|
|
23
|
+
/** Method to programmatically focus the radio button element */
|
|
24
|
+
async focusElement() {
|
|
25
|
+
if (this.inputElement) {
|
|
26
|
+
this.inputElement.focus();
|
|
27
|
+
}
|
|
28
|
+
}
|
|
23
29
|
render() {
|
|
24
|
-
return (h("div", { key: '
|
|
30
|
+
return (h("div", { key: '6f44a40cb5ccf890bdee47d36f47a79d5f8b603c', class: "tds-radio-button" }, h("input", { key: '1da8f9df168c631a634172385c3471a5c6bb03aa', ref: (inputEl) => (this.inputElement = inputEl), "aria-label": this.tdsAriaLabel, class: "tds-form-input", type: "radio", role: "radio", name: this.name, id: this.radioId, value: this.value, checked: this.checked, "aria-checked": this.checked, required: this.required, disabled: this.disabled, onChange: () => this.handleChange(), tabIndex: this.tdsTabIndex }), h("label", { key: '0acf59236ffd3ee0136f2bdef9db8a36afe666ff', htmlFor: this.radioId }, h("slot", { key: 'add4ebdebbb4d5e15126a876c0c0940734b7b068', name: "label" }))));
|
|
25
31
|
}
|
|
26
32
|
static get is() { return "tds-radio-button"; }
|
|
27
33
|
static get encapsulation() { return "scoped"; }
|
|
@@ -197,5 +203,26 @@ export class TdsRadioButton {
|
|
|
197
203
|
}
|
|
198
204
|
}];
|
|
199
205
|
}
|
|
206
|
+
static get methods() {
|
|
207
|
+
return {
|
|
208
|
+
"focusElement": {
|
|
209
|
+
"complexType": {
|
|
210
|
+
"signature": "() => Promise<void>",
|
|
211
|
+
"parameters": [],
|
|
212
|
+
"references": {
|
|
213
|
+
"Promise": {
|
|
214
|
+
"location": "global",
|
|
215
|
+
"id": "global::Promise"
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
"return": "Promise<void>"
|
|
219
|
+
},
|
|
220
|
+
"docs": {
|
|
221
|
+
"text": "Method to programmatically focus the radio button element",
|
|
222
|
+
"tags": []
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
};
|
|
226
|
+
}
|
|
200
227
|
static get elementRef() { return "host"; }
|
|
201
228
|
}
|
|
@@ -36,7 +36,8 @@
|
|
|
36
36
|
}
|
|
37
37
|
:host .component ::slotted(a:focus-visible) {
|
|
38
38
|
outline: 2px solid var(--tds-blue-400);
|
|
39
|
-
|
|
39
|
+
box-shadow: 0 0 0 1px var(--tds-white);
|
|
40
|
+
outline-offset: 1px;
|
|
40
41
|
}
|
|
41
42
|
:host .component.component-selected ::slotted(a),
|
|
42
43
|
:host .component.component-selected ::slotted(button) {
|
|
@@ -27,7 +27,8 @@
|
|
|
27
27
|
:host .component ::slotted(a:focus-visible),
|
|
28
28
|
:host .component ::slotted(button:focus-visible) {
|
|
29
29
|
outline: 2px solid var(--tds-blue-400);
|
|
30
|
-
|
|
30
|
+
box-shadow: 0 0 0 1px var(--tds-white);
|
|
31
|
+
outline-offset: 1px;
|
|
31
32
|
}
|
|
32
33
|
:host .component:hover ::slotted(a),
|
|
33
34
|
:host .component:hover ::slotted(button) {
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import formatHtmlPreview from "../../stories/formatHtmlPreview";
|
|
2
|
+
import readme from "./readme.md";
|
|
3
|
+
export const SliderArgTypes = ({ storyName }) => ({
|
|
4
|
+
min: {
|
|
5
|
+
name: 'Min. value',
|
|
6
|
+
description: 'Sets the minimum value for the slider.',
|
|
7
|
+
control: {
|
|
8
|
+
type: 'number',
|
|
9
|
+
},
|
|
10
|
+
table: {
|
|
11
|
+
defaultValue: { summary: 0 },
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
max: {
|
|
15
|
+
name: 'Max. value',
|
|
16
|
+
description: 'Sets the maximum value for the slider.',
|
|
17
|
+
control: {
|
|
18
|
+
type: 'number',
|
|
19
|
+
},
|
|
20
|
+
table: {
|
|
21
|
+
defaultValue: { summary: 100 },
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
initialValue: {
|
|
25
|
+
name: 'Initial value',
|
|
26
|
+
description: 'Sets the initial value for the slider.',
|
|
27
|
+
control: {
|
|
28
|
+
type: 'number',
|
|
29
|
+
},
|
|
30
|
+
table: {
|
|
31
|
+
defaultValue: { summary: 0 },
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
showLabel: {
|
|
35
|
+
name: 'Show label',
|
|
36
|
+
description: 'Toggles if the lable should be shown or hidden.',
|
|
37
|
+
control: {
|
|
38
|
+
type: 'boolean',
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
labelText: {
|
|
42
|
+
name: 'Label text',
|
|
43
|
+
description: 'Sets the text for the label.',
|
|
44
|
+
control: {
|
|
45
|
+
type: 'text',
|
|
46
|
+
},
|
|
47
|
+
if: { arg: 'showLabel', eq: true },
|
|
48
|
+
},
|
|
49
|
+
showTicks: {
|
|
50
|
+
name: 'Show ticks',
|
|
51
|
+
description: 'Toggles if ticks should be shown or hidden.',
|
|
52
|
+
control: {
|
|
53
|
+
type: 'boolean',
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
numTicks: {
|
|
57
|
+
name: 'Number of ticks',
|
|
58
|
+
description: 'Sets the number of ticks to be displayed.',
|
|
59
|
+
control: {
|
|
60
|
+
type: 'number',
|
|
61
|
+
},
|
|
62
|
+
if: { arg: 'showTicks', eq: true },
|
|
63
|
+
table: {
|
|
64
|
+
defaultValue: { summary: 0 },
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
showTickNumbers: {
|
|
68
|
+
name: 'Show tick numbers',
|
|
69
|
+
description: 'Toggles if tick numbers should be shown or hidden.',
|
|
70
|
+
control: {
|
|
71
|
+
type: 'boolean',
|
|
72
|
+
},
|
|
73
|
+
if: { arg: 'showTicks', eq: true },
|
|
74
|
+
table: {
|
|
75
|
+
defaultValue: { summary: false },
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
snapToTicks: {
|
|
79
|
+
name: 'Snap to ticks',
|
|
80
|
+
description: 'Snaps the thumb to the closest tick when dragging.',
|
|
81
|
+
control: {
|
|
82
|
+
type: 'boolean',
|
|
83
|
+
},
|
|
84
|
+
if: { arg: 'showTicks', eq: true },
|
|
85
|
+
table: {
|
|
86
|
+
defaultValue: { summary: false },
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
showTooltip: {
|
|
90
|
+
name: 'Show tooltip',
|
|
91
|
+
description: 'Toggles if the tooltip should be shown or hidden.',
|
|
92
|
+
control: {
|
|
93
|
+
type: 'boolean',
|
|
94
|
+
},
|
|
95
|
+
table: {
|
|
96
|
+
defaultValue: { summary: false },
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
showControls: {
|
|
100
|
+
name: 'Show controls (not compatible with input field)',
|
|
101
|
+
description: 'Toggles if controls should be shown or hidden.',
|
|
102
|
+
control: {
|
|
103
|
+
type: 'boolean',
|
|
104
|
+
},
|
|
105
|
+
table: {
|
|
106
|
+
defaultValue: { summary: false },
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
step: {
|
|
110
|
+
name: 'Step value',
|
|
111
|
+
description: 'Sets the value to increment/decrement with.',
|
|
112
|
+
control: {
|
|
113
|
+
type: 'number',
|
|
114
|
+
min: 0,
|
|
115
|
+
step: storyName === 'Decimal' ? 0.01 : undefined,
|
|
116
|
+
},
|
|
117
|
+
table: {
|
|
118
|
+
defaultValue: { summary: 1 },
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
showInput: {
|
|
122
|
+
name: 'Show value input field (not compatible with controls)',
|
|
123
|
+
description: 'Toggles if the values input field should be shown or hidden.',
|
|
124
|
+
control: {
|
|
125
|
+
type: 'boolean',
|
|
126
|
+
},
|
|
127
|
+
if: { arg: 'showControls', eq: false },
|
|
128
|
+
table: {
|
|
129
|
+
defaultValue: { summary: false },
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
thumbSize: {
|
|
133
|
+
name: 'Thumb size',
|
|
134
|
+
description: 'Switches between the large and small version of the thumb.',
|
|
135
|
+
control: {
|
|
136
|
+
type: 'radio',
|
|
137
|
+
},
|
|
138
|
+
options: ['Large', 'Small'],
|
|
139
|
+
table: {
|
|
140
|
+
defaultValue: { summary: 'lg' },
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
readonly: {
|
|
144
|
+
name: 'Read Only',
|
|
145
|
+
description: 'Puts the control in a read-only state.',
|
|
146
|
+
control: {
|
|
147
|
+
type: 'boolean',
|
|
148
|
+
},
|
|
149
|
+
table: {
|
|
150
|
+
defaultValue: { summary: false },
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
disabled: {
|
|
154
|
+
name: 'Disabled',
|
|
155
|
+
description: 'Disables the slider.',
|
|
156
|
+
control: {
|
|
157
|
+
type: 'boolean',
|
|
158
|
+
},
|
|
159
|
+
table: {
|
|
160
|
+
defaultValue: { summary: false },
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
});
|
|
164
|
+
export const SliderParameters = {
|
|
165
|
+
parameters: {
|
|
166
|
+
notes: readme,
|
|
167
|
+
design: [
|
|
168
|
+
{
|
|
169
|
+
name: 'Figma',
|
|
170
|
+
type: 'figma',
|
|
171
|
+
url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=9649%3A20759&t=Ne6myqwca5m00de7-1',
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
name: 'Link',
|
|
175
|
+
type: 'link',
|
|
176
|
+
url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=9649%3A20759&t=Ne6myqwca5m00de7-1',
|
|
177
|
+
},
|
|
178
|
+
],
|
|
179
|
+
},
|
|
180
|
+
};
|
|
181
|
+
const sizeLookUp = {
|
|
182
|
+
Large: 'lg',
|
|
183
|
+
Small: 'sm',
|
|
184
|
+
};
|
|
185
|
+
export const SliderTemplate = ({ min, max, initialValue, showLabel, labelText, showTicks, numTicks, showTickNumbers, snapToTicks, showTooltip, showControls, step, showInput, thumbSize, readonly, disabled, }) => formatHtmlPreview(`
|
|
186
|
+
<!-- Style code below is just for demo purposes -->
|
|
187
|
+
<style>
|
|
188
|
+
.demo-wrapper {
|
|
189
|
+
max-width: 500px;
|
|
190
|
+
margin-left: 25px;
|
|
191
|
+
}
|
|
192
|
+
</style>
|
|
193
|
+
|
|
194
|
+
<div class="demo-wrapper">
|
|
195
|
+
<tds-slider
|
|
196
|
+
min="${min}"
|
|
197
|
+
max="${max}"
|
|
198
|
+
${step ? `step="${step}"` : ''}
|
|
199
|
+
value="${initialValue}"
|
|
200
|
+
${showTicks ? `ticks="${numTicks}"` : ''}
|
|
201
|
+
${showTickNumbers ? 'show-tick-numbers' : ''}
|
|
202
|
+
${snapToTicks ? 'snap' : ''}
|
|
203
|
+
${showLabel ? `label="${labelText}"` : ''}
|
|
204
|
+
${showTooltip ? 'tooltip' : ''}
|
|
205
|
+
${showControls ? 'controls' : ''}
|
|
206
|
+
${showInput ? 'input' : ''}
|
|
207
|
+
${disabled ? 'disabled' : ''}
|
|
208
|
+
thumb-size="${sizeLookUp[thumbSize]}"
|
|
209
|
+
${readonly ? 'read-only' : ''}
|
|
210
|
+
tds-read-only-aria-label="Read only"
|
|
211
|
+
>
|
|
212
|
+
</tds-slider>
|
|
213
|
+
</div>
|
|
214
|
+
|
|
215
|
+
<!-- Script tag for demo purposes -->
|
|
216
|
+
<script>
|
|
217
|
+
slider = document.querySelector('tds-slider');
|
|
218
|
+
|
|
219
|
+
function handleTdsChange(event) {
|
|
220
|
+
console.log('tdsChange event:', event);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
slider.removeEventListener('tdsChange', handleTdsChange);
|
|
224
|
+
slider.addEventListener('tdsChange', handleTdsChange);
|
|
225
|
+
|
|
226
|
+
function handleTdsInput(event) {
|
|
227
|
+
console.log('tdsInput event:', event);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
slider.removeEventListener('tdsInput', handleTdsInput);
|
|
231
|
+
slider.addEventListener('tdsInput', handleTdsInput);
|
|
232
|
+
</script>
|
|
233
|
+
`);
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/* Component variables aka overrides */
|
|
2
2
|
:root {
|
|
3
|
-
--spinner-background-inverted:
|
|
3
|
+
--spinner-background-inverted: var(--tds-white);
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
:root,
|
|
7
7
|
.scania,
|
|
8
8
|
.scania .tds-mode-light {
|
|
9
|
-
--spinner-background:
|
|
9
|
+
--spinner-background: var(--tds-blue-400);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.scania .tds-mode-dark {
|
|
13
|
-
--spinner-background:
|
|
13
|
+
--spinner-background: var(--tds-blue-400);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.traton,
|
|
@@ -30,8 +30,7 @@
|
|
|
30
30
|
:host [role=listitem].lg.vertical::after {
|
|
31
31
|
content: " ";
|
|
32
32
|
position: absolute;
|
|
33
|
-
background-color: var(--tds-stepper-
|
|
34
|
-
opacity: 0.16;
|
|
33
|
+
background-color: var(--tds-stepper-divider-line);
|
|
35
34
|
height: 36px;
|
|
36
35
|
width: 1px;
|
|
37
36
|
top: 40px;
|
|
@@ -40,8 +39,7 @@
|
|
|
40
39
|
:host [role=listitem].lg.horizontal::after {
|
|
41
40
|
content: " ";
|
|
42
41
|
position: absolute;
|
|
43
|
-
background-color: var(--tds-stepper-
|
|
44
|
-
opacity: 0.16;
|
|
42
|
+
background-color: var(--tds-stepper-divider-line);
|
|
45
43
|
height: 1px;
|
|
46
44
|
left: calc(50% + 24px);
|
|
47
45
|
right: 0;
|
|
@@ -50,8 +48,7 @@
|
|
|
50
48
|
:host [role=listitem].lg.horizontal::before {
|
|
51
49
|
content: " ";
|
|
52
50
|
position: absolute;
|
|
53
|
-
background-color: var(--tds-stepper-
|
|
54
|
-
opacity: 0.16;
|
|
51
|
+
background-color: var(--tds-stepper-divider-line);
|
|
55
52
|
height: 1px;
|
|
56
53
|
right: calc(50% + 24px);
|
|
57
54
|
left: 0;
|
|
@@ -60,8 +57,7 @@
|
|
|
60
57
|
:host [role=listitem].lg.horizontal.text-aside:not(.hide-labels)::after {
|
|
61
58
|
content: " ";
|
|
62
59
|
position: absolute;
|
|
63
|
-
background-color: var(--tds-stepper-
|
|
64
|
-
opacity: 0.16;
|
|
60
|
+
background-color: var(--tds-stepper-divider-line);
|
|
65
61
|
height: 1px;
|
|
66
62
|
top: 16px;
|
|
67
63
|
width: 10px;
|
|
@@ -71,8 +67,7 @@
|
|
|
71
67
|
:host [role=listitem].lg.horizontal.text-aside:not(.hide-labels)::before {
|
|
72
68
|
content: " ";
|
|
73
69
|
position: absolute;
|
|
74
|
-
background-color: var(--tds-stepper-
|
|
75
|
-
opacity: 0.16;
|
|
70
|
+
background-color: var(--tds-stepper-divider-line);
|
|
76
71
|
height: 1px;
|
|
77
72
|
top: 16px;
|
|
78
73
|
width: 10px;
|
|
@@ -100,8 +95,7 @@
|
|
|
100
95
|
:host [role=listitem].sm.vertical::after {
|
|
101
96
|
content: " ";
|
|
102
97
|
position: absolute;
|
|
103
|
-
background-color: var(--tds-stepper-
|
|
104
|
-
opacity: 0.16;
|
|
98
|
+
background-color: var(--tds-stepper-divider-line);
|
|
105
99
|
height: 20px;
|
|
106
100
|
width: 1px;
|
|
107
101
|
top: 34px;
|
|
@@ -110,8 +104,7 @@
|
|
|
110
104
|
:host [role=listitem].sm.vertical::before {
|
|
111
105
|
content: " ";
|
|
112
106
|
position: absolute;
|
|
113
|
-
background-color: var(--tds-stepper-
|
|
114
|
-
opacity: 0.16;
|
|
107
|
+
background-color: var(--tds-stepper-divider-line);
|
|
115
108
|
height: 20px;
|
|
116
109
|
width: 1px;
|
|
117
110
|
top: 34px;
|
|
@@ -120,8 +113,7 @@
|
|
|
120
113
|
:host [role=listitem].sm.horizontal::after {
|
|
121
114
|
content: " ";
|
|
122
115
|
position: absolute;
|
|
123
|
-
background-color: var(--tds-stepper-
|
|
124
|
-
opacity: 0.16;
|
|
116
|
+
background-color: var(--tds-stepper-divider-line);
|
|
125
117
|
height: 1px;
|
|
126
118
|
left: calc(50% + 16px + 8px);
|
|
127
119
|
right: 0;
|
|
@@ -130,8 +122,7 @@
|
|
|
130
122
|
:host [role=listitem].sm.horizontal::before {
|
|
131
123
|
content: " ";
|
|
132
124
|
position: absolute;
|
|
133
|
-
background-color: var(--tds-stepper-
|
|
134
|
-
opacity: 0.16;
|
|
125
|
+
background-color: var(--tds-stepper-divider-line);
|
|
135
126
|
height: 1px;
|
|
136
127
|
left: 0;
|
|
137
128
|
right: calc(50% + 24px);
|
|
@@ -140,8 +131,7 @@
|
|
|
140
131
|
:host [role=listitem].sm.horizontal.text-aside:not(.hide-labels)::after {
|
|
141
132
|
content: " ";
|
|
142
133
|
position: absolute;
|
|
143
|
-
background-color: var(--tds-stepper-
|
|
144
|
-
opacity: 0.16;
|
|
134
|
+
background-color: var(--tds-stepper-divider-line);
|
|
145
135
|
height: 1px;
|
|
146
136
|
top: 13px;
|
|
147
137
|
width: 10px;
|
|
@@ -151,8 +141,7 @@
|
|
|
151
141
|
:host [role=listitem].sm.horizontal.text-aside:not(.hide-labels)::before {
|
|
152
142
|
content: " ";
|
|
153
143
|
position: absolute;
|
|
154
|
-
background-color: var(--tds-stepper-
|
|
155
|
-
opacity: 0.16;
|
|
144
|
+
background-color: var(--tds-stepper-divider-line);
|
|
156
145
|
height: 1px;
|
|
157
146
|
top: 13px;
|
|
158
147
|
width: 10px;
|
|
@@ -166,19 +155,22 @@
|
|
|
166
155
|
position: relative;
|
|
167
156
|
}
|
|
168
157
|
:host [role=listitem] .content-container.error {
|
|
169
|
-
border-color: var(--tds-
|
|
170
|
-
color: var(--tds-
|
|
158
|
+
border-color: var(--tds-stepper-icon-step-border-color-warning);
|
|
159
|
+
color: var(--tds-stepper-icon-step-border-color-warning);
|
|
171
160
|
}
|
|
172
161
|
:host [role=listitem] .content-container.success {
|
|
173
|
-
background-color: var(--tds-
|
|
174
|
-
border-color: var(--tds-
|
|
162
|
+
background-color: var(--tds-stepper-icon-step-border-color-success);
|
|
163
|
+
border-color: var(--tds-stepper-icon-step-border-color-success);
|
|
175
164
|
color: var(--tds-white);
|
|
176
165
|
}
|
|
166
|
+
:host [role=listitem] .content-container.current {
|
|
167
|
+
background-color: var(--tds-stepper-background);
|
|
168
|
+
color: var(--tds-stepper-color);
|
|
169
|
+
}
|
|
177
170
|
:host [role=listitem] .content-container.upcoming {
|
|
178
171
|
background-color: transparent;
|
|
179
172
|
border-color: var(--tds-stepper-label-border-color-upcoming);
|
|
180
173
|
color: var(--tds-stepper-label-text-color-upcoming);
|
|
181
|
-
opacity: var(--tds-stepper-label-text-opacity-upcoming);
|
|
182
174
|
}
|
|
183
175
|
:host [role=listitem] .label {
|
|
184
176
|
text-align: center;
|
|
@@ -40,7 +40,7 @@ export class TdsStep {
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
render() {
|
|
43
|
-
return (h(Host, { key: 'f049d976121a1179979026cd3087ad459183de06' }, h("div", { key: '
|
|
43
|
+
return (h(Host, { key: 'f049d976121a1179979026cd3087ad459183de06' }, h("div", { key: '1f961578e8e54ffc9e0d0c2966c86e3e32f8ddd8', role: "listitem", "aria-disabled": this.state === 'upcoming' ? 'true' : 'false', "aria-current": this.tdsAriaCurrent, tabIndex: -1, "aria-label": `Step ${this.index}: ${this.state}`, class: `${this.size} ${this.orientation} text-${this.labelPosition} ${this.hideLabels ? 'hide-labels' : ''}` }, h("span", { key: 'f83033e0a0761227d911ac77cac9c64c31fe4c11', class: `${this.state} content-container` }, this.state === 'success' || this.state === 'error' ? (h("tds-icon", { "aria-hidden": "true", svgTitle: `tds-step-icon-${this.stepperId}`, class: 'tds-step-icon', name: this.state === 'success' ? 'tick' : 'warning', size: this.size === 'lg' ? '20px' : '16px' })) : (h("span", { "aria-hidden": "true", class: "index-container" }, this.index))), !this.hideLabels && (h("div", { key: '83c92f388cfebe37e0fb94c81d14adc391fbbbfa', "aria-hidden": "true", class: `label ${this.size} ${this.state}` }, h("slot", { key: '1c6381a25f8af42afe54c0c8eaff4090bf14ee80', name: "label" }))))));
|
|
44
44
|
}
|
|
45
45
|
static get is() { return "tds-step"; }
|
|
46
46
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.css
CHANGED
|
@@ -40,7 +40,8 @@
|
|
|
40
40
|
}
|
|
41
41
|
:host .tds-table__expand-control-container .tds-table__expand-input:focus {
|
|
42
42
|
outline: 2px solid var(--tds-blue-400);
|
|
43
|
-
|
|
43
|
+
box-shadow: 0 0 0 1px var(--tds-white);
|
|
44
|
+
outline-offset: 1px;
|
|
44
45
|
}
|
|
45
46
|
:host .tds-table__expand-control-container .tds-expendable-row-icon {
|
|
46
47
|
height: 16px;
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
opacity: 0;
|
|
62
62
|
transform-origin: center;
|
|
63
63
|
transition: opacity 200ms ease-in, transform 200ms ease;
|
|
64
|
-
|
|
64
|
+
color: var(--tds-table-color);
|
|
65
65
|
}
|
|
66
66
|
:host(.tds-table__header-cell--sortable) .tds-table__header-button:hover .tds-table__header-button-icon {
|
|
67
67
|
opacity: 1;
|
|
@@ -18,14 +18,19 @@
|
|
|
18
18
|
display: flex;
|
|
19
19
|
justify-content: space-between;
|
|
20
20
|
}
|
|
21
|
+
:host .tds-table__actionbar-left {
|
|
22
|
+
display: flex;
|
|
23
|
+
}
|
|
21
24
|
:host .tds-table__title {
|
|
22
25
|
font: var(--tds-headline-07);
|
|
23
26
|
letter-spacing: var(--tds-headline-07-ls);
|
|
24
27
|
padding-top: var(--tds-spacing-element-16);
|
|
25
28
|
text-align: left;
|
|
29
|
+
margin-right: var(--tds-spacing-element-8);
|
|
26
30
|
}
|
|
27
31
|
:host .tds-table__actionbar,
|
|
28
|
-
:host slot[name=end]::slotted(*)
|
|
32
|
+
:host slot[name=end]::slotted(*),
|
|
33
|
+
:host slot[name=start]::slotted(*) {
|
|
29
34
|
display: flex;
|
|
30
35
|
align-self: center;
|
|
31
36
|
}
|
|
@@ -6,6 +6,7 @@ const relevantTableProps = [
|
|
|
6
6
|
'horizontalScrollWidth',
|
|
7
7
|
];
|
|
8
8
|
/**
|
|
9
|
+
* @slot start - Slot for the start (left side) of the Table Toolbar.
|
|
9
10
|
* @slot end - Slot for the end (right side) of the Table Toolbar.
|
|
10
11
|
*/
|
|
11
12
|
export class TdsTableToolbar {
|
|
@@ -67,10 +68,10 @@ export class TdsTableToolbar {
|
|
|
67
68
|
return styles;
|
|
68
69
|
}
|
|
69
70
|
render() {
|
|
70
|
-
return (h(Host, { key: '
|
|
71
|
+
return (h(Host, { key: '76acde1b3c55f421cedae9bf932f923813272fe3', class: {
|
|
71
72
|
'tds-table--compact': this.compactDesign,
|
|
72
73
|
'toolbar__horizontal-scroll': !!this.horizontalScrollWidth,
|
|
73
|
-
}, style: this.getStyles(), "aria-labelledby": "table-toolbar-title" }, h("div", { key: '
|
|
74
|
+
}, style: this.getStyles(), "aria-labelledby": "table-toolbar-title" }, h("div", { key: 'e6fe2f411ebde77befeb99992b5157bba3651fbf', class: "tds-table__upper-bar-flex" }, h("div", { key: 'f61dc1de54a73c28a2ef10dcae2a5a629ae76c57', class: "tds-table__actionbar-left" }, this.tableTitle && (h("caption", { key: 'ca50269d08eab742cb759d371937739fd0a87eff', id: "table-toolbar-title", class: "tds-table__title" }, this.tableTitle)), h("slot", { key: '275b233ff233a9f90d936553fa31015f72f21899', name: "start" })), h("div", { key: 'd2ed2b7918e8f8d8e23c34bd8114ee1e69cdb681', class: "tds-table__actionbar" }, this.filter && (h("div", { key: 'cd0bd112e3ab6b31c96e10bc4b2eb32715766d58', class: "tds-table__searchbar" }, h("input", { key: '3dbcdf5394477fb55d41c2ee0ddcea1e50ffcd64', class: "tds-table__searchbar-input", type: "text", onKeyUp: (event) => this.handleSearch(event), "aria-label": this.tdsSearchAriaLabel }), h("span", { key: '0a34bfd7cd50c88604af01dfc9bef1adae7d8999', class: "tds-table__searchbar-icon" }, h("tds-icon", { key: '98a376c6db7d249e060dafffef18c9345730e25c', name: "search", size: "20px" })))), h("slot", { key: 'e4400d9ddb0f6435315569e1f64f34bc04d8054f', name: "end" })))));
|
|
74
75
|
}
|
|
75
76
|
static get is() { return "tds-table-toolbar"; }
|
|
76
77
|
static get encapsulation() { return "shadow"; }
|
|
@@ -25,7 +25,8 @@
|
|
|
25
25
|
}
|
|
26
26
|
:host ::slotted(*:focus-visible) {
|
|
27
27
|
outline: 2px solid var(--tds-blue-400);
|
|
28
|
-
|
|
28
|
+
box-shadow: 0 0 0 1px var(--tds-white);
|
|
29
|
+
outline-offset: 1px;
|
|
29
30
|
}
|
|
30
31
|
:host div:not(.selected) {
|
|
31
32
|
background-color: var(--tds-folder-tab-background);
|
|
@@ -35,10 +35,10 @@ export class TdsFolderTab {
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
render() {
|
|
38
|
-
return (h(Host, { key: '
|
|
38
|
+
return (h(Host, { key: '19a42f7143a8f32130642bd50dd6817f871fdf20', "aria-selected": this.selected }, h("div", { key: '51bef3bebff5e13d7c949529919865780d8b33de', class: {
|
|
39
39
|
selected: this.selected,
|
|
40
40
|
disabled: this.disabled,
|
|
41
|
-
}, style: { width: `${this.tabWidth}px` } }, h("slot", { key: '
|
|
41
|
+
}, style: { width: `${this.tabWidth}px` } }, h("slot", { key: '2b661d3518f047f7bd0e50a121987eb62c5d42e8' }))));
|
|
42
42
|
}
|
|
43
43
|
static get is() { return "tds-folder-tab"; }
|
|
44
44
|
static get encapsulation() { return "shadow"; }
|
|
@@ -56,7 +56,8 @@
|
|
|
56
56
|
:host .scroll-right-button:focus,
|
|
57
57
|
:host .scroll-left-button:focus {
|
|
58
58
|
outline: 2px solid var(--tds-blue-400);
|
|
59
|
-
|
|
59
|
+
box-shadow: 0 0 0 1px var(--tds-white);
|
|
60
|
+
outline-offset: 1px;
|
|
60
61
|
}
|
|
61
62
|
:host .scroll-right-button svg,
|
|
62
63
|
:host .scroll-left-button svg {
|
|
@@ -162,9 +162,9 @@ export class TdsFolderTabs {
|
|
|
162
162
|
this.removeEventListenerFromTabs();
|
|
163
163
|
}
|
|
164
164
|
render() {
|
|
165
|
-
return (h(Host, { key: '
|
|
165
|
+
return (h(Host, { key: 'c56bf987e23ade8b30cd2470ab1ed0f4273bd191', role: "tablist", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: 'afab8a86427918d5ac4bbc17dd2a436a986df577', class: "wrapper", ref: (el) => {
|
|
166
166
|
this.navWrapperElement = el;
|
|
167
|
-
} }, h("button", { key: '
|
|
167
|
+
} }, h("button", { key: '0b82a953932e888d05478d82944c90768f97bb36', "aria-label": this.tdsScrollLeftAriaLabel, class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, disabled: !this.showLeftScroll, onClick: () => this.scrollLeft() }, h("tds-icon", { key: '50cd22c5be43ae452e0896b449570774c3ab0151', name: "chevron_left", size: "20px" })), h("slot", { key: '3cb17dddc8592241c467167b3a0028355f2b7d5e', onSlotchange: () => this.handleSlotChange() }), h("button", { key: '23c289b70d723b2d0705692835a510b8a650fcfa', "aria-label": this.tdsScrollRightAriaLabel, class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, disabled: !this.showRightScroll, onClick: () => this.scrollRight() }, h("tds-icon", { key: 'fff2bfcbcf916d1b391aa25ee5f6fda3c8e63d23', name: "chevron_right", size: "20px" })))));
|
|
168
168
|
}
|
|
169
169
|
static get is() { return "tds-folder-tabs"; }
|
|
170
170
|
static get encapsulation() { return "shadow"; }
|
|
@@ -30,11 +30,11 @@ export class TdsInlineTab {
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
render() {
|
|
33
|
-
return (h(Host, { key: '
|
|
33
|
+
return (h(Host, { key: '496b56fa31a50e26ceea5275e29873d030ea2937', "aria-selected": this.selected }, h("div", { key: 'c67bfb892ea721b1ad329e00453fe62dcf4681c0', class: {
|
|
34
34
|
'inline-tab-item': true,
|
|
35
35
|
'selected': this.selected,
|
|
36
36
|
'disabled': this.disabled,
|
|
37
|
-
} }, h("slot", { key: '
|
|
37
|
+
} }, h("slot", { key: 'bae7788e0625279f4eb82129da1256fbb7f1c95b' }))));
|
|
38
38
|
}
|
|
39
39
|
static get is() { return "tds-inline-tab"; }
|
|
40
40
|
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 {
|