@scania/tegel 1.14.1 → 1.15.0-component-versioning-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/index-ca8040ad.js +52 -44
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/tagName-f24f57ce.js +119 -0
- package/dist/cjs/tds-accordion-item.cjs.entry.js +6 -3
- package/dist/cjs/tds-banner.cjs.entry.js +4 -2
- package/dist/cjs/tds-card.cjs.entry.js +6 -4
- package/dist/cjs/tds-core-header-item.cjs.entry.js +20 -0
- package/dist/cjs/tds-datetime.cjs.entry.js +5 -2
- package/dist/cjs/tds-dropdown-option.cjs.entry.js +5 -3
- package/dist/cjs/tds-dropdown.cjs.entry.js +7 -5
- package/dist/cjs/tds-folder-tabs.cjs.entry.js +4 -2
- package/dist/cjs/tds-footer-group.cjs.entry.js +5 -3
- package/dist/cjs/tds-header-brand-symbol.cjs.entry.js +3 -1
- package/dist/cjs/tds-header-cell.cjs.entry.js +6 -4
- package/dist/cjs/tds-header-dropdown-list.cjs.entry.js +2 -2
- package/dist/cjs/tds-header-dropdown.cjs.entry.js +5 -3
- package/dist/cjs/tds-header-hamburger.cjs.entry.js +3 -1
- package/dist/cjs/{tds-core-header-item_2.cjs.entry.js → tds-header-item.cjs.entry.js} +5 -17
- package/dist/cjs/tds-header-launcher-button.cjs.entry.js +3 -1
- package/dist/cjs/tds-header-launcher-grid.cjs.entry.js +3 -3
- package/dist/cjs/tds-header-launcher-list-item.cjs.entry.js +4 -1
- package/dist/cjs/tds-header-launcher-list.cjs.entry.js +4 -1
- package/dist/cjs/tds-header-launcher.cjs.entry.js +4 -2
- package/dist/cjs/tds-inline-tabs.cjs.entry.js +4 -2
- package/dist/cjs/tds-message.cjs.entry.js +5 -2
- package/dist/cjs/tds-modal.cjs.entry.js +3 -1
- package/dist/cjs/tds-navigation-tabs.cjs.entry.js +4 -2
- package/dist/cjs/tds-popover-canvas.cjs.entry.js +4 -2
- package/dist/cjs/tds-popover-menu.cjs.entry.js +4 -2
- package/dist/cjs/tds-side-menu-close-button.cjs.entry.js +3 -1
- package/dist/cjs/tds-side-menu-collapse-button.cjs.entry.js +6 -4
- package/dist/cjs/tds-side-menu-dropdown.cjs.entry.js +5 -3
- package/dist/cjs/tds-side-menu-user-image.cjs.entry.js +22 -0
- package/dist/cjs/{tds-side-menu-user-image_2.cjs.entry.js → tds-side-menu-user-label.cjs.entry.js} +0 -16
- package/dist/cjs/tds-side-menu-user.cjs.entry.js +4 -1
- package/dist/cjs/tds-slider.cjs.entry.js +10 -7
- package/dist/cjs/tds-step.cjs.entry.js +5 -3
- package/dist/cjs/tds-table-body-input-wrapper.cjs.entry.js +4 -2
- package/dist/cjs/tds-table-body-row.cjs.entry.js +4 -2
- package/dist/cjs/tds-table-footer.cjs.entry.js +4 -2
- package/dist/cjs/tds-table-header-input-wrapper.cjs.entry.js +4 -2
- package/dist/cjs/tds-table-header.cjs.entry.js +4 -2
- package/dist/cjs/tds-table-toolbar.cjs.entry.js +4 -2
- package/dist/cjs/tds-text-field.cjs.entry.js +7 -5
- package/dist/cjs/tds-textarea.cjs.entry.js +6 -3
- package/dist/cjs/tds-toast.cjs.entry.js +5 -3
- package/dist/cjs/tds-tooltip.cjs.entry.js +4 -2
- package/dist/cjs/tegel.cjs.js +1 -1
- package/dist/collection/components/accordion/accordion-item/accordion-item.js +6 -3
- package/dist/collection/components/banner/banner.js +4 -2
- package/dist/collection/components/card/card.js +6 -4
- package/dist/collection/components/datetime/datetime.js +6 -3
- package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +5 -3
- package/dist/collection/components/dropdown/dropdown.js +7 -5
- package/dist/collection/components/footer/footer-group/footer-group.js +5 -3
- package/dist/collection/components/header/header-brand-symbol/header-brand-symbol.js +3 -1
- package/dist/collection/components/header/header-dropdown/header-dropdown.js +5 -3
- package/dist/collection/components/header/header-hamburger/header-hamburger.js +3 -1
- package/dist/collection/components/header/header-item/header-item.js +5 -3
- package/dist/collection/components/header/header-launcher/header-launcher.js +4 -2
- package/dist/collection/components/header/header-launcher-button/header-launcher-button.js +3 -1
- package/dist/collection/components/header/header-launcher-list/header-launcher-list.js +4 -1
- package/dist/collection/components/header/header-launcher-list-item/header-launcher-list-item.js +4 -1
- package/dist/collection/components/message/message.js +5 -2
- package/dist/collection/components/modal/modal.js +3 -1
- package/dist/collection/components/popover-canvas/popover-canvas.js +4 -2
- package/dist/collection/components/popover-menu/popover-menu.js +4 -2
- package/dist/collection/components/side-menu/side-menu-close-button/side-menu-close-button.js +3 -1
- package/dist/collection/components/side-menu/side-menu-collapse-button/side-menu-collapse-button.js +6 -4
- package/dist/collection/components/side-menu/side-menu-dropdown/side-menu-dropdown.js +5 -3
- package/dist/collection/components/side-menu/side-menu-user/side-menu-user.js +4 -1
- package/dist/collection/components/side-menu/side-menu.js +3 -3
- package/dist/collection/components/slider/slider.js +11 -8
- package/dist/collection/components/stepper/step/step.js +5 -3
- package/dist/collection/components/stepper/stepper.js +1 -1
- package/dist/collection/components/table/table/table.js +1 -1
- package/dist/collection/components/table/table-body-input-wrapper/table-body-input-wrapper.js +4 -2
- package/dist/collection/components/table/table-body-row/table-body-row.js +4 -2
- package/dist/collection/components/table/table-footer/table-footer.js +4 -2
- package/dist/collection/components/table/table-header/table-header.js +4 -2
- package/dist/collection/components/table/table-header-cell/table-header-cell.js +6 -4
- package/dist/collection/components/table/table-header-input-wrapper/table-header-input-wrapper.js +4 -2
- package/dist/collection/components/table/table-toolbar/table-toolbar.js +4 -2
- package/dist/collection/components/tabs/folder-tabs/folder-tabs.js +4 -2
- package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +4 -2
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +4 -2
- package/dist/collection/components/text-field/text-field.js +7 -5
- package/dist/collection/components/textarea/textarea.js +6 -3
- package/dist/collection/components/toast/toast.js +5 -3
- package/dist/collection/components/tooltip/tooltip.js +4 -2
- package/dist/collection/utils/tagName.js +33 -0
- package/dist/components/p-a74b6809.js +117 -0
- package/dist/components/tds-accordion-item.js +7 -10
- package/dist/components/tds-banner.js +5 -9
- package/dist/components/tds-card.js +7 -11
- package/dist/components/tds-checkbox.js +89 -1
- package/dist/components/tds-core-header-item.js +30 -1
- package/dist/components/tds-datetime.js +6 -9
- package/dist/components/tds-divider.js +33 -1
- package/dist/components/tds-dropdown-option.js +6 -16
- package/dist/components/tds-dropdown.js +8 -12
- package/dist/components/tds-folder-tabs.js +5 -9
- package/dist/components/tds-footer-group.js +6 -10
- package/dist/components/tds-header-brand-symbol.js +4 -14
- package/dist/components/tds-header-cell.js +7 -11
- package/dist/components/tds-header-dropdown-list-item.js +39 -1
- package/dist/components/tds-header-dropdown-list.js +99 -1
- package/dist/components/tds-header-dropdown.js +6 -34
- package/dist/components/tds-header-hamburger.js +4 -20
- package/dist/components/tds-header-item.js +70 -1
- package/dist/components/tds-header-launcher-button.js +39 -1
- package/dist/components/tds-header-launcher-list-item.js +5 -8
- package/dist/components/tds-header-launcher-list.js +5 -8
- package/dist/components/tds-header-launcher.js +5 -39
- package/dist/components/tds-icon.js +63 -1
- package/dist/components/tds-inline-tabs.js +5 -9
- package/dist/components/tds-message.js +6 -9
- package/dist/components/tds-modal.js +4 -8
- package/dist/components/tds-navigation-tabs.js +5 -9
- package/dist/components/tds-popover-canvas.js +66 -1
- package/dist/components/tds-popover-core.js +1998 -1
- package/dist/components/tds-popover-menu.js +5 -9
- package/dist/components/tds-side-menu-close-button.js +4 -8
- package/dist/components/tds-side-menu-collapse-button.js +7 -11
- package/dist/components/tds-side-menu-dropdown.js +6 -16
- package/dist/components/tds-side-menu-item.js +88 -1
- package/dist/components/tds-side-menu-user-image.js +35 -1
- package/dist/components/tds-side-menu-user-label.js +35 -1
- package/dist/components/tds-side-menu-user.js +5 -14
- package/dist/components/tds-slider.js +11 -14
- package/dist/components/tds-step.js +6 -10
- package/dist/components/tds-table-body-input-wrapper.js +5 -9
- package/dist/components/tds-table-body-row.js +5 -9
- package/dist/components/tds-table-footer.js +5 -9
- package/dist/components/tds-table-header-input-wrapper.js +5 -9
- package/dist/components/tds-table-header.js +5 -9
- package/dist/components/tds-table-toolbar.js +5 -9
- package/dist/components/tds-text-field.js +8 -12
- package/dist/components/tds-textarea.js +7 -10
- package/dist/components/tds-toast.js +6 -10
- package/dist/components/tds-tooltip.js +5 -9
- package/dist/esm/index-51d04e39.js +52 -44
- package/dist/esm/loader.js +1 -1
- package/dist/esm/tagName-0d04643f.js +117 -0
- package/dist/esm/tds-accordion-item.entry.js +7 -4
- package/dist/esm/tds-banner.entry.js +4 -2
- package/dist/esm/tds-card.entry.js +6 -4
- package/dist/esm/tds-core-header-item.entry.js +16 -0
- package/dist/esm/tds-datetime.entry.js +6 -3
- package/dist/esm/tds-dropdown-option.entry.js +5 -3
- package/dist/esm/tds-dropdown.entry.js +7 -5
- package/dist/esm/tds-folder-tabs.entry.js +4 -2
- package/dist/esm/tds-footer-group.entry.js +5 -3
- package/dist/esm/tds-header-brand-symbol.entry.js +3 -1
- package/dist/esm/tds-header-cell.entry.js +6 -4
- package/dist/esm/tds-header-dropdown-list.entry.js +1 -1
- package/dist/esm/tds-header-dropdown.entry.js +5 -3
- package/dist/esm/tds-header-hamburger.entry.js +3 -1
- package/dist/esm/{tds-core-header-item_2.entry.js → tds-header-item.entry.js} +6 -17
- package/dist/esm/tds-header-launcher-button.entry.js +3 -1
- package/dist/esm/tds-header-launcher-grid.entry.js +1 -1
- package/dist/esm/tds-header-launcher-list-item.entry.js +5 -2
- package/dist/esm/tds-header-launcher-list.entry.js +5 -2
- package/dist/esm/tds-header-launcher.entry.js +4 -2
- package/dist/esm/tds-inline-tabs.entry.js +4 -2
- package/dist/esm/tds-message.entry.js +6 -3
- package/dist/esm/tds-modal.entry.js +3 -1
- package/dist/esm/tds-navigation-tabs.entry.js +4 -2
- package/dist/esm/tds-popover-canvas.entry.js +4 -2
- package/dist/esm/tds-popover-menu.entry.js +4 -2
- package/dist/esm/tds-side-menu-close-button.entry.js +3 -1
- package/dist/esm/tds-side-menu-collapse-button.entry.js +6 -4
- package/dist/esm/tds-side-menu-dropdown.entry.js +5 -3
- package/dist/esm/tds-side-menu-user-image.entry.js +18 -0
- package/dist/esm/{tds-side-menu-user-image_2.entry.js → tds-side-menu-user-label.entry.js} +1 -16
- package/dist/esm/tds-side-menu-user.entry.js +5 -2
- package/dist/esm/tds-slider.entry.js +11 -8
- package/dist/esm/tds-step.entry.js +5 -3
- package/dist/esm/tds-table-body-input-wrapper.entry.js +4 -2
- package/dist/esm/tds-table-body-row.entry.js +4 -2
- package/dist/esm/tds-table-footer.entry.js +4 -2
- package/dist/esm/tds-table-header-input-wrapper.entry.js +4 -2
- package/dist/esm/tds-table-header.entry.js +4 -2
- package/dist/esm/tds-table-toolbar.entry.js +4 -2
- package/dist/esm/tds-text-field.entry.js +7 -5
- package/dist/esm/tds-textarea.entry.js +7 -4
- package/dist/esm/tds-toast.entry.js +5 -3
- package/dist/esm/tds-tooltip.entry.js +4 -2
- package/dist/esm/tegel.js +1 -1
- package/dist/tegel/p-07b525fa.entry.js +1 -0
- package/dist/tegel/p-0a2f8635.entry.js +1 -0
- package/dist/tegel/p-0efe32ef.entry.js +1 -0
- package/dist/tegel/p-101d5ad9.entry.js +1 -0
- package/dist/tegel/{p-6c26e66f.entry.js → p-24d62f73.entry.js} +1 -1
- package/dist/tegel/p-2d9011d4.entry.js +1 -0
- package/dist/tegel/p-30a2b7a9.entry.js +1 -0
- package/dist/tegel/p-3bb5f47b.entry.js +1 -0
- package/dist/tegel/p-3c937615.entry.js +1 -0
- package/dist/tegel/p-3f12d4a8.entry.js +1 -0
- package/dist/tegel/p-57d8aa8f.entry.js +1 -0
- package/dist/tegel/p-589289a1.entry.js +1 -0
- package/dist/tegel/p-58b552d6.entry.js +1 -0
- package/dist/tegel/p-5fed1ea6.entry.js +1 -0
- package/dist/tegel/p-61d1cf24.entry.js +1 -0
- package/dist/tegel/p-63991699.entry.js +1 -0
- package/dist/tegel/p-7546a139.entry.js +1 -0
- package/dist/tegel/p-7711d485.entry.js +1 -0
- package/dist/tegel/p-790367cd.entry.js +1 -0
- package/dist/tegel/p-8064b3ed.entry.js +1 -0
- package/dist/tegel/p-80d28081.entry.js +1 -0
- package/dist/tegel/p-82481096.entry.js +1 -0
- package/dist/tegel/p-859e3ebf.js +1 -0
- package/dist/tegel/p-8deb6ba6.entry.js +1 -0
- package/dist/tegel/p-8f30a9cd.entry.js +1 -0
- package/dist/tegel/p-904e90d6.entry.js +1 -0
- package/dist/tegel/p-980a153a.entry.js +1 -0
- package/dist/tegel/p-980fe7c8.entry.js +1 -0
- package/dist/tegel/p-9aa5875a.entry.js +1 -0
- package/dist/tegel/p-a74b6809.js +1 -0
- package/dist/tegel/p-afb182fc.entry.js +1 -0
- package/dist/tegel/p-b543f063.entry.js +1 -0
- package/dist/tegel/p-b71d6a39.entry.js +1 -0
- package/dist/tegel/p-b834b254.entry.js +1 -0
- package/dist/tegel/p-b8970b91.entry.js +1 -0
- package/dist/tegel/p-bf65f439.entry.js +1 -0
- package/dist/tegel/p-c002a601.entry.js +1 -0
- package/dist/tegel/p-c0381ba7.entry.js +1 -0
- package/dist/tegel/p-ccad7d42.entry.js +1 -0
- package/dist/tegel/p-cde009d8.entry.js +1 -0
- package/dist/tegel/p-df945483.entry.js +1 -0
- package/dist/tegel/p-e5a9ec95.entry.js +1 -0
- package/dist/tegel/p-e9d824f5.entry.js +1 -0
- package/dist/tegel/p-edbf6bf4.entry.js +1 -0
- package/dist/tegel/p-ef8e4959.entry.js +1 -0
- package/dist/tegel/{p-f841f094.entry.js → p-fc7a7f06.entry.js} +1 -1
- package/dist/tegel/tegel.esm.js +1 -1
- package/dist/types/Users/rhyme/projects/scania/tegel/packages/core/.stencil/src/utils/tagNames.d.ts +4 -0
- package/dist/types/components/accordion/accordion-item/accordion-item.d.ts +1 -0
- package/dist/types/components/card/card.d.ts +1 -1
- package/dist/types/components/datetime/datetime.d.ts +1 -0
- package/dist/types/components/header/header-launcher-list/header-launcher-list.d.ts +1 -0
- package/dist/types/components/header/header-launcher-list-item/header-launcher-list-item.d.ts +1 -0
- package/dist/types/components/message/message.d.ts +1 -0
- package/dist/types/components/side-menu/side-menu-user/side-menu-user.d.ts +1 -0
- package/dist/types/components/slider/slider.d.ts +1 -0
- package/dist/types/components/stepper/step/step.d.ts +1 -1
- package/dist/types/components/table/table-header-cell/table-header-cell.d.ts +1 -1
- package/dist/types/components/textarea/textarea.d.ts +1 -0
- package/dist/types/utils/tagName.d.ts +5 -0
- package/package.json +2 -9
- package/dist/components/p-0676aa23.js +0 -76
- package/dist/components/p-09d36119.js +0 -37
- package/dist/components/p-0c3cab16.js +0 -90
- package/dist/components/p-30de8ac4.js +0 -32
- package/dist/components/p-3e74be57.js +0 -65
- package/dist/components/p-8e74bb22.js +0 -57
- package/dist/components/p-a9609e88.js +0 -72
- package/dist/components/p-cfb1b588.js +0 -41
- package/dist/components/p-dc461e7b.js +0 -2000
- package/dist/components/p-dddaa520.js +0 -37
- package/dist/components/p-e46088d9.js +0 -35
- package/dist/components/p-e4d7c655.js +0 -91
- package/dist/components/p-fcec766c.js +0 -101
- package/dist/tegel/p-06d2fa56.entry.js +0 -1
- package/dist/tegel/p-08642415.entry.js +0 -1
- package/dist/tegel/p-0a4fe3db.entry.js +0 -1
- package/dist/tegel/p-0f38bea7.entry.js +0 -1
- package/dist/tegel/p-1a2f3852.entry.js +0 -1
- package/dist/tegel/p-1bc2c73c.entry.js +0 -1
- package/dist/tegel/p-2b030cef.entry.js +0 -1
- package/dist/tegel/p-2da2c193.entry.js +0 -1
- package/dist/tegel/p-36e88ce8.entry.js +0 -1
- package/dist/tegel/p-480c6c28.entry.js +0 -1
- package/dist/tegel/p-4ab7461e.entry.js +0 -1
- package/dist/tegel/p-4bab99d5.entry.js +0 -1
- package/dist/tegel/p-54a105a4.entry.js +0 -1
- package/dist/tegel/p-578f6d73.entry.js +0 -1
- package/dist/tegel/p-588a05aa.entry.js +0 -1
- package/dist/tegel/p-5a891dd2.entry.js +0 -1
- package/dist/tegel/p-5d0e8f1e.entry.js +0 -1
- package/dist/tegel/p-6938329a.entry.js +0 -1
- package/dist/tegel/p-6b04a919.entry.js +0 -1
- package/dist/tegel/p-7d83ba98.entry.js +0 -1
- package/dist/tegel/p-91225c7a.entry.js +0 -1
- package/dist/tegel/p-930e767e.entry.js +0 -1
- package/dist/tegel/p-9332c225.js +0 -1
- package/dist/tegel/p-98f5b520.entry.js +0 -1
- package/dist/tegel/p-9de400f4.entry.js +0 -1
- package/dist/tegel/p-a9654cd4.entry.js +0 -1
- package/dist/tegel/p-a97dd06a.entry.js +0 -1
- package/dist/tegel/p-b34cf70d.entry.js +0 -1
- package/dist/tegel/p-b4c7099f.entry.js +0 -1
- package/dist/tegel/p-b9ac3122.entry.js +0 -1
- package/dist/tegel/p-c12eaac3.entry.js +0 -1
- package/dist/tegel/p-c18b2746.entry.js +0 -1
- package/dist/tegel/p-c1f8f523.entry.js +0 -1
- package/dist/tegel/p-c917d8be.entry.js +0 -1
- package/dist/tegel/p-d1cbe5be.entry.js +0 -1
- package/dist/tegel/p-dcbd977f.entry.js +0 -1
- package/dist/tegel/p-e1842d99.entry.js +0 -1
- package/dist/tegel/p-e237cdcc.entry.js +0 -1
- package/dist/tegel/p-e7108828.entry.js +0 -1
- package/dist/tegel/p-f0d46e61.entry.js +0 -1
- package/dist/tegel/p-f823777e.entry.js +0 -1
- package/dist/cjs/{isHeadingElement-4f06b688.js → getPreviousNestedChildOfSiblingsMatching-4e700df1.js} +12 -12
- package/dist/esm/{isHeadingElement-8efea284.js → getPreviousNestedChildOfSiblingsMatching-a6fcb512.js} +12 -12
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h, Host, } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
2
3
|
const relevantTableProps = [
|
|
3
4
|
'compactDesign',
|
|
4
5
|
'horizontalScrollWidth',
|
|
@@ -101,10 +102,11 @@ export class TdsTableFooter {
|
|
|
101
102
|
return styles;
|
|
102
103
|
}
|
|
103
104
|
render() {
|
|
104
|
-
|
|
105
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
106
|
+
return (h(Host, { key: '2b1679b41dc9820424351c33e85591f36818d1e1', class: {
|
|
105
107
|
'tds-table--compact': this.compactDesign,
|
|
106
108
|
'footer__horizontal-scroll': !!this.horizontalScrollWidth,
|
|
107
|
-
}, style: this.getStyles() }, h("tr", { key: '
|
|
109
|
+
}, style: this.getStyles() }, h("tr", { key: '153812eec84fce53dc6dc8ac7ca0ef80dfd76213', class: "tds-table__footer-row" }, h("td", { key: '8393249d6dc9f5758e7b4fa83d7cfcbde59dbc77', class: "tds-table__footer-cell", colSpan: this.columnsNumber }, this.pagination && (h("div", { key: 'cbd30e634548f1019ccd1bc15512a6b65ff13034', class: "tds-table__pagination" }, h("div", { key: '1c4a05e5ee585ca96b632082cdc34b7d5e520447', class: "tds-table__row-selector" }), h("div", { key: 'aaa98355f48907c761157c79d6676a357b431e98', class: "tds-table__page-selector" }, h("input", { key: '8bea9cd1dd079ec4062a0fc1a72b57d5aafbdf69', ref: (element) => (this.inputElement = element), class: "tds-table__page-selector-input", type: "number", min: "1", max: this.pages, value: this.paginationValue, pattern: "[0-9]+", dir: "ltr", onChange: (event) => this.paginationInputChange(event), onAnimationEnd: removeShakeAnimation }), h("p", { key: '75c510c649be650ad2c52d894eee1f99ceed9d96', class: "tds-table__footer-text" }, "of ", h("span", { key: 'cbdf2851142771260e5f2ded77fac0313e326e69' }, this.pages), " pages"), h("button", { key: 'e881d7d94881aef373551e37b9371a9f6b4d5332', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue <= 1, onClick: () => this.previousPage() }, h(prefixedTagNames.tdsIcon, { key: 'efb8d1f38cb9cea4fccc9b9df0649837d44dfa46', name: "chevron_left", size: "20px" })), h("button", { key: '6017258d6ec87aea2e34739c17d63d1e0762c2d6', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue >= this.pages, onClick: () => this.nextPage() }, h(prefixedTagNames.tdsIcon, { key: 'c020cb98076c8c5e26cb9d4a78f0600272e4ebf5', name: "chevron_right", size: "20px" })))))))));
|
|
108
110
|
}
|
|
109
111
|
static get is() { return "tds-table-footer"; }
|
|
110
112
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h, Host, } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
2
3
|
const relevantTableProps = [
|
|
3
4
|
'multiselect',
|
|
4
5
|
'expandableRows',
|
|
@@ -82,11 +83,12 @@ export class TdsTableHeaderRow {
|
|
|
82
83
|
});
|
|
83
84
|
}
|
|
84
85
|
render() {
|
|
85
|
-
|
|
86
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
87
|
+
return (h(Host, { key: 'c6b52b1d3a4758d2f633b63276491d54378997d0', class: {
|
|
86
88
|
'tds-table--compact': this.compactDesign,
|
|
87
89
|
'tds-table--divider': this.verticalDividers,
|
|
88
90
|
'tds-table--toolbar-available': this.enableToolbarDesign,
|
|
89
|
-
} }, h("tr", { key: '
|
|
91
|
+
} }, h("tr", { key: '4f9c9077abe94dd132d70c3b1917b5ee321bb86c' }, this.multiselect && (h("th", { key: '93fe6f0b820002e877368a406a1f27993f8c76d9', class: "tds-table__header-cell tds-table__header-cell--checkbox" }, h("div", { key: '0ee069d210c5bf362585034db083d675e20790d9', class: "tds-form-label tds-form-label--table" }, h(prefixedTagNames.tdsCheckbox, { key: '8a1db3dd87cf767823c4a20a9d7c4fd25e9c595c', checked: this.allSelected || this.selected, disabled: this.disabled, indeterminate: this.indeterminate, onTdsChange: (event) => this.handleCheckboxChange(event) })))), this.expandableRows && (h("th", { key: '2a141bca63ff69c3572f18e83ba67c375b11b988', class: "tds-table__header-cell tds-table__header-cell--checkbox" })), h("slot", { key: 'b5cfad23823fbddf0136ea696ec5870f114075f6' }))));
|
|
90
92
|
}
|
|
91
93
|
static get is() { return "tds-table-header"; }
|
|
92
94
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h, Host, } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
2
3
|
const relevantTableProps = [
|
|
3
4
|
'multiselect',
|
|
4
5
|
'expandableRows',
|
|
@@ -29,9 +30,9 @@ export class TdsTableHeaderCell {
|
|
|
29
30
|
key: this.cellKey,
|
|
30
31
|
});
|
|
31
32
|
};
|
|
32
|
-
this.headerCellContent = () => {
|
|
33
|
+
this.headerCellContent = (prefixedTagNames) => {
|
|
33
34
|
if (this.sortable) {
|
|
34
|
-
return (h("button", { class: "tds-table__header-button", onClick: () => this.sortButtonClick(), style: { justifyContent: this.textAlignState } }, h("span", { class: "tds-table__header-button-text" }, this.cellValue, h("slot", null)), this.sortingDirection === undefined && (h(
|
|
35
|
+
return (h("button", { class: "tds-table__header-button", onClick: () => this.sortButtonClick(), style: { justifyContent: this.textAlignState } }, h("span", { class: "tds-table__header-button-text" }, this.cellValue, h("slot", null)), this.sortingDirection === undefined && (h(prefixedTagNames.tdsIcon, { class: "tds-table__header-button-icon", name: "sorting", size: "16px" })), this.sortingDirection && ['asc', 'desc'].includes(this.sortingDirection) && (h(prefixedTagNames.tdsIcon, { class: `tds-table__header-button-icon ${this.sortingDirection === 'asc' ? 'tds-table__header-button-icon--rotate' : ''}`, name: "arrow_down", size: "16px" }))));
|
|
35
36
|
}
|
|
36
37
|
return (h("p", { class: {
|
|
37
38
|
'tds-table__header-text': true,
|
|
@@ -105,7 +106,8 @@ export class TdsTableHeaderCell {
|
|
|
105
106
|
this.host.closest('tds-table').getElementsByTagName('tds-table-toolbar').length >= 1;
|
|
106
107
|
}
|
|
107
108
|
render() {
|
|
108
|
-
|
|
109
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
110
|
+
return (h(Host, { key: '0dc5485f665fc02b21ed16b04e130b49037fa491', class: {
|
|
109
111
|
'tds-table__header-cell': true,
|
|
110
112
|
'tds-table__header-cell--sortable': this.sortable,
|
|
111
113
|
'tds-table__header-cell--is-sorted': this.sortedByMyKey,
|
|
@@ -116,7 +118,7 @@ export class TdsTableHeaderCell {
|
|
|
116
118
|
'tds-table--extra-column': this.multiselect || this.expandableRows,
|
|
117
119
|
'tds-table--toolbar-available': this.enableToolbarDesign,
|
|
118
120
|
'tds-table--no-padding': this.disablePadding,
|
|
119
|
-
}, style: { minWidth: this.customWidth }, onMouseOver: () => this.onHeadCellHover(this.cellKey), onMouseLeave: () => this.onHeadCellHover('') }, this.headerCellContent()));
|
|
121
|
+
}, style: { minWidth: this.customWidth }, onMouseOver: () => this.onHeadCellHover(this.cellKey), onMouseLeave: () => this.onHeadCellHover('') }, this.headerCellContent(prefixedTagNames)));
|
|
120
122
|
}
|
|
121
123
|
static get is() { return "tds-header-cell"; }
|
|
122
124
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/table/table-header-input-wrapper/table-header-input-wrapper.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
2
3
|
const relevantTableProps = ['compactDesign'];
|
|
3
4
|
export class TdsTableHeaderInputWrapper {
|
|
4
5
|
constructor() {
|
|
@@ -63,11 +64,12 @@ export class TdsTableHeaderInputWrapper {
|
|
|
63
64
|
}
|
|
64
65
|
}
|
|
65
66
|
render() {
|
|
66
|
-
|
|
67
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
68
|
+
return (h(Host, { key: '379cdc2f1c18f2a15919e9d2b431f192f2e719d5', class: {
|
|
67
69
|
'focused-input-wrapper': this.inputFocused,
|
|
68
70
|
'show-icon': this.showIcon,
|
|
69
71
|
'tds-table__compact': this.compactDesign,
|
|
70
|
-
} }, this.renderSlot ? h("slot", { onSlotchange: () => this.handleSlotChange() }) : null, this.showIcon ? (h(
|
|
72
|
+
} }, this.renderSlot ? h("slot", { onSlotchange: () => this.handleSlotChange() }) : null, this.showIcon ? (h(prefixedTagNames.tdsIcon, { class: "search-icon", slot: "icon", size: "16px", name: "search" })) : null));
|
|
71
73
|
}
|
|
72
74
|
static get is() { return "tds-table-header-input-wrapper"; }
|
|
73
75
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h, Host, } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
2
3
|
const relevantTableProps = [
|
|
3
4
|
'compactDesign',
|
|
4
5
|
'noMinWidth',
|
|
@@ -63,10 +64,11 @@ export class TdsTableToolbar {
|
|
|
63
64
|
return styles;
|
|
64
65
|
}
|
|
65
66
|
render() {
|
|
66
|
-
|
|
67
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
68
|
+
return (h(Host, { key: '017e5a33806f969620e47af13c1abd4d5cc73c1e', class: {
|
|
67
69
|
'tds-table--compact': this.compactDesign,
|
|
68
70
|
'toolbar__horizontal-scroll': !!this.horizontalScrollWidth,
|
|
69
|
-
}, style: this.getStyles() }, h("div", { key: '
|
|
71
|
+
}, style: this.getStyles() }, h("div", { key: '8a2e0b3ff1cb452706d4a01818f6159749dbb89a', class: "tds-table__upper-bar-flex" }, h("caption", { key: '91dcfc3b3e1a6f88a816c8aaadd6160bd9ad9474', class: "tds-table__title" }, this.tableTitle), h("div", { key: '62b725ed18e7406d2635c62ae057abb6cf214cba', class: "tds-table__actionbar" }, this.filter && (h("div", { key: '0dc45e13a7185194002e25a9116b6535307d6412', class: "tds-table__searchbar" }, h("input", { key: '6f147fde17c9c01c58ed2178c084a5be48c84186', class: "tds-table__searchbar-input", type: "text", onKeyUp: (event) => this.handleSearch(event) }), h("span", { key: 'd2b540ca62e3b4c3a917b2283510760be12e0b2a', class: "tds-table__searchbar-icon" }, h(prefixedTagNames.tdsIcon, { key: '39b663fbe530f36568e282768ed7b5630722fb01', name: "search", size: "20px" })))), h("slot", { key: '19474502d0d73d1c3a7b899a8a21cc269bd8efe8', name: "end" })))));
|
|
70
72
|
}
|
|
71
73
|
static get is() { return "tds-table-toolbar"; }
|
|
72
74
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Host, h, } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
2
3
|
/**
|
|
3
4
|
* @slot <default> - <b>Unnamed slot.</b> For the tab elements.
|
|
4
5
|
*/
|
|
@@ -160,9 +161,10 @@ export class TdsFolderTabs {
|
|
|
160
161
|
this.removeEventListenerFromTabs();
|
|
161
162
|
}
|
|
162
163
|
render() {
|
|
163
|
-
|
|
164
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
165
|
+
return (h(Host, { key: '7f81db3a95250825f2ad5b6b614af7eddfe33b66', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: 'be070eb5e8484fc397426bb8e0c3f35ed4a1e851', class: "wrapper", ref: (el) => {
|
|
164
166
|
this.navWrapperElement = el;
|
|
165
|
-
} }, h("button", { key: '
|
|
167
|
+
} }, h("button", { key: '6d3862bddb1407519259a5eab162ab0ddf95e76c', class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, disabled: !this.showLeftScroll, onClick: () => this.scrollLeft() }, h(prefixedTagNames.tdsIcon, { key: 'e36ee18f2896ad27889619a284c8e39ea0397148', name: "chevron_left", size: "20px" })), h("slot", { key: '1b62b7716c519f9eb9c2b2a8eab327a25d621a7e', onSlotchange: () => this.handleSlotChange() }), h("button", { key: 'ac50c266270eab2bc53172f2e000a0d93ca4aa2d', class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, disabled: !this.showRightScroll, onClick: () => this.scrollRight() }, h(prefixedTagNames.tdsIcon, { key: 'c62208f8e55c6d4662872a9b676e9993c61ec03d', name: "chevron_right", size: "20px" })))));
|
|
166
168
|
}
|
|
167
169
|
static get is() { return "tds-folder-tabs"; }
|
|
168
170
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Host, h, } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
2
3
|
/**
|
|
3
4
|
* @slot <default> - <b>Unnamed slot.</b> For the tab elements.
|
|
4
5
|
*/
|
|
@@ -167,9 +168,10 @@ export class TdsInlineTabs {
|
|
|
167
168
|
this.removeEventListenerFromTabs();
|
|
168
169
|
}
|
|
169
170
|
render() {
|
|
170
|
-
|
|
171
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
172
|
+
return (h(Host, { key: 'bc607732f1152e69199b3fca66efc4ebfd9683f7', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: 'ac41e6a7b6495c4ae9516a7e76e36f26be0b13d5', class: "wrapper", ref: (el) => {
|
|
171
173
|
this.navWrapperElement = el;
|
|
172
|
-
}, style: { paddingLeft: `${this.leftPadding}px` } }, h("button", { key: '
|
|
174
|
+
}, style: { paddingLeft: `${this.leftPadding}px` } }, h("button", { key: '02979087fbd289a8959e63c3960aa34e431505bc', class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h(prefixedTagNames.tdsIcon, { key: 'e60e28cd233f054cde23c03b21a98185f18c82c1', name: "chevron_left", size: "20px" })), h("slot", { key: '82a24bd27e62b3dc58457a0a4ed9ee8fa1c2a6f7', onSlotchange: () => this.handleSlotChange() }), h("button", { key: 'bea28e92a4cbe56d35106b399b8bc7734dc04290', class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h(prefixedTagNames.tdsIcon, { key: '55317e5de61ad0ab7713852dc067e6f254d57988', name: "chevron_right", size: "20px" })))));
|
|
173
175
|
}
|
|
174
176
|
static get is() { return "tds-inline-tabs"; }
|
|
175
177
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Host, h, } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
2
3
|
/**
|
|
3
4
|
* @slot <default> - <b>Unnamed slot.</b> For the tab elements.
|
|
4
5
|
*/
|
|
@@ -167,9 +168,10 @@ export class TdsNavigationTabs {
|
|
|
167
168
|
this.removeEventListenerFromTabs();
|
|
168
169
|
}
|
|
169
170
|
render() {
|
|
170
|
-
|
|
171
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
172
|
+
return (h(Host, { key: 'fc517a4647224414ac6b1643b7ff3cb94810e69c', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: '4a26e80281ecc5a791a8c5eee623fdc8a1630f68', class: "wrapper", ref: (el) => {
|
|
171
173
|
this.navWrapperElement = el;
|
|
172
|
-
}, style: { paddingLeft: `${this.leftPadding}px` } }, h("button", { key: '
|
|
174
|
+
}, style: { paddingLeft: `${this.leftPadding}px` } }, h("button", { key: '6b60e0b9635abf48ca821f8e157b2dff42f8ea24', class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h(prefixedTagNames.tdsIcon, { key: 'eccc37fc81804e909bec8a77279fee3eb156aaa2', name: "chevron_left", size: "20px" })), h("slot", { key: 'f48ae4ce1f825415a5c70d86a73caad8411b9bec', onSlotchange: () => this.handleSlotChange() }), h("button", { key: 'd0fca82d30d9e354edd26147be75f03fbabdedc0', class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h(prefixedTagNames.tdsIcon, { key: 'bc9270c86e3bfbdfb9168f12865d294f2e7fba3a', name: "chevron_right", size: "20px" })))));
|
|
173
175
|
}
|
|
174
176
|
static get is() { return "tds-navigation-tabs"; }
|
|
175
177
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import hasSlot from "../../utils/hasSlot";
|
|
3
|
+
import { getPrefixedTagNames } from "../../utils/tagName";
|
|
3
4
|
/**
|
|
4
5
|
* @slot prefix - Slot for the prefix in the component.
|
|
5
6
|
* @slot suffix - Slot for the suffix in the component. Suffix is hidden when the input is in readonly state.
|
|
@@ -46,9 +47,10 @@ export class TdsTextField {
|
|
|
46
47
|
}
|
|
47
48
|
render() {
|
|
48
49
|
var _a;
|
|
50
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
49
51
|
const usesPrefixSlot = hasSlot('prefix', this.host);
|
|
50
52
|
const usesSuffixSlot = hasSlot('suffix', this.host);
|
|
51
|
-
return (h("div", { key: '
|
|
53
|
+
return (h("div", { key: '9709711a5feb7c8c3e26997f0ad91753295bc89a', class: {
|
|
52
54
|
'form-text-field-nomin': this.noMinWidth,
|
|
53
55
|
'form-text-field': !this.focusInput || this.disabled,
|
|
54
56
|
'text-field-focus': this.focusInput && !this.disabled,
|
|
@@ -62,12 +64,12 @@ export class TdsTextField {
|
|
|
62
64
|
'form-text-field-sm': this.size === 'sm',
|
|
63
65
|
'form-text-field-error': this.state === 'error',
|
|
64
66
|
'form-text-field-success': this.state === 'success',
|
|
65
|
-
} }, this.labelPosition === 'outside' && (h("div", { key: '
|
|
67
|
+
} }, this.labelPosition === 'outside' && (h("div", { key: '8d1d75050b1c40a5b5e4fe0180805890d5958402', class: "text-field-label-outside" }, h("div", { key: '35160ceab326f5e86d0a98cc3ae6ee5c7e711a00' }, this.label))), h("div", { key: 'ab0021d9ce5b829c3613ab89c70abe8e7b270682', onClick: () => this.textInput.focus(), class: "text-field-container" }, usesPrefixSlot && (h("div", { key: '56be7515ef267d299b478c822dd3a986909c75b9', class: {
|
|
66
68
|
'text-field-slot-wrap-prefix': true,
|
|
67
69
|
'text-field-error': this.state === 'error',
|
|
68
70
|
'text-field-success': this.state === 'success',
|
|
69
71
|
'text-field-default': this.state === 'default',
|
|
70
|
-
} }, h("slot", { key: '
|
|
72
|
+
} }, h("slot", { key: '812acfb75ff513c35e2a48ccfb3dcf671d636ead', name: "prefix" }))), h("div", { key: '28b17720edb473137f0de48ef5561975fbabedc7', class: "text-field-input-container" }, h("input", { key: '4d047fcef2d46e91e40d29a35f46edcb42ffd1eb', ref: (inputEl) => (this.textInput = inputEl), class: {
|
|
71
73
|
'text-field-input': true,
|
|
72
74
|
'text-field-input-sm': this.size === 'sm',
|
|
73
75
|
'text-field-input-md': this.size === 'md',
|
|
@@ -80,13 +82,13 @@ export class TdsTextField {
|
|
|
80
82
|
if (!this.readOnly) {
|
|
81
83
|
this.handleBlur(event);
|
|
82
84
|
}
|
|
83
|
-
} }), this.labelPosition === 'inside' && this.size !== 'sm' && (h("label", { key: '
|
|
85
|
+
} }), this.labelPosition === 'inside' && this.size !== 'sm' && (h("label", { key: '6865add321d3975917ac7881c96d8dff6f2b603a', class: "text-field-label-inside" }, this.label))), h("div", { key: 'e559d4a3038b1ea26aed03d97a8e9cbbf52c9f99', class: "text-field-bar" }), usesSuffixSlot && (h("div", { key: '455610e90198eb2f5030ae81f1d695d092388a8b', class: {
|
|
84
86
|
'text-field-slot-wrap-suffix': true,
|
|
85
87
|
'text-field-error': this.state === 'error',
|
|
86
88
|
'text-field-success': this.state === 'success',
|
|
87
89
|
'text-field-default': this.state === 'default',
|
|
88
90
|
'tds-u-display-none': this.readOnly,
|
|
89
|
-
} }, h("slot", { key: '
|
|
91
|
+
} }, h("slot", { key: '66f0d0b9bd70aab9f4ec1265523e464075925e29', name: "suffix" }))), h("span", { key: '050f98dc78cac90bcd02252d6c3fdbcfc18f41b6', class: "text-field-icon__readonly" }, h(prefixedTagNames.tdsIcon, { key: '6c975efb06829a46398ca2a2f05efd666410ebba', name: "edit_inactive", size: "20px" })), h("span", { key: 'b69ded042d9633d6d87527c1b5feba0d680f0299', class: "text-field-icon__readonly-label" }, "This field is non-editable")), (this.helper || this.maxLength > 0) && (h("div", { key: '1dba1e27b3435eddcc27f1fecd7d260d8ba0f04f', class: "text-field-helper" }, this.state === 'error' && (h("div", { key: 'a5a2fa8f25edb7ed3626f6857446c56baed0f2d7', class: "text-field-helper-error-state" }, h(prefixedTagNames.tdsIcon, { key: '9eed79df72810969d0d88394437b60a8ee8be71d', name: "error", size: "16px" }), this.helper)), this.state !== 'error' && this.helper, this.maxLength > 0 && (h("div", { key: '0353ce2aa058c39479389517029e7fd4a6de04e7', class: "text-field-textcounter" }, this.value === null ? 0 : (_a = this.value) === null || _a === void 0 ? void 0 : _a.length, h("span", { key: '18f9e96da7b473dbbb0043beeeca1fa7bcf667de', class: "text-field-textcounter-divider" }, " / "), this.maxLength))))));
|
|
90
92
|
}
|
|
91
93
|
static get is() { return "tds-text-field"; }
|
|
92
94
|
static get encapsulation() { return "scoped"; }
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../utils/tagName";
|
|
2
3
|
export class TdsTextarea {
|
|
3
4
|
constructor() {
|
|
4
5
|
this.label = '';
|
|
@@ -38,7 +39,8 @@ export class TdsTextarea {
|
|
|
38
39
|
}
|
|
39
40
|
render() {
|
|
40
41
|
var _a;
|
|
41
|
-
|
|
42
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
43
|
+
return (h("div", { key: '9840c9e02270672985277c10a85dedc9e3e404d2', class: `
|
|
42
44
|
textarea-container
|
|
43
45
|
${this.labelPosition === 'inside' ? 'textarea-label-inside' : ''}
|
|
44
46
|
${this.focusInput ? 'textarea-focus' : ''}
|
|
@@ -48,7 +50,7 @@ export class TdsTextarea {
|
|
|
48
50
|
${this.value ? 'textarea-data' : ''}
|
|
49
51
|
${this.state === 'error' || this.state === 'success' ? `textarea-${this.state}` : ''}
|
|
50
52
|
${this.noMinWidth ? 'no-min-width' : ''}
|
|
51
|
-
` }, this.labelPosition !== 'no-label' && h("span", { key: '
|
|
53
|
+
` }, this.labelPosition !== 'no-label' && h("span", { key: 'b57721fd5d28ad58616ab4eafd58f639e693c884', class: 'textarea-label' }, this.label), h("div", { key: 'b8437213f9371ffbc287845f860a0c50fcb62daa', class: "textarea-wrapper" }, h("textarea", { key: '3edf4ab92c935510bbd04c395e7e2e5a0518f0bc', class: 'textarea-input', ref: (inputEl) => (this.textEl = inputEl), disabled: this.disabled, readonly: 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) => {
|
|
52
54
|
if (!this.readOnly) {
|
|
53
55
|
this.handleFocus(event);
|
|
54
56
|
}
|
|
@@ -56,7 +58,7 @@ export class TdsTextarea {
|
|
|
56
58
|
if (!this.readOnly) {
|
|
57
59
|
this.handleBlur(event);
|
|
58
60
|
}
|
|
59
|
-
}, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event) }), h("span", { key: '
|
|
61
|
+
}, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event) }), h("span", { key: '6925c727f844de3efa787389dc488452f05de107', class: "textarea-resizer-icon" }, h("svg", { key: 'd8e9b2c949243b9d88f072492a2da56f34b7ee7d', width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '2821c5af0b5f0678d1e301703069f2acf0c2d83e', "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" }))), h("span", { key: '3358037162afca7d4351de3b4790076802c2135d', class: "textarea-icon__readonly" }, h(prefixedTagNames.tdsIcon, { key: '52ea3ac12dfbc02e29e13f1483a014655ec44f9f', name: "edit_inactive" })), h("span", { key: '759328f7b4a40a769229ee25c28c1dfe85162e27', class: "textarea-icon__readonly-label" }, "This field is non-editable")), h("span", { key: 'c45a121e2c3510c94d69c712a6fb2afb2c6427b9', class: 'textarea-helper' }, this.state === 'error' && (h(prefixedTagNames.tdsIcon, { key: 'e056a500dde09d407a3edb53e9a2628eeed23249', name: "error", size: "16px" })), this.helper), this.maxLength > 0 && (h("div", { key: '4bcd5edd214ffb2aa022193d6093fa7e6631be59', class: 'textarea-textcounter' }, this.value === null ? 0 : (_a = this.value) === null || _a === void 0 ? void 0 : _a.length, h("span", { key: '28795db6231ee330eaffeb879756423ffd49b367', class: "textfield-textcounter-divider" }, " / "), " ", this.maxLength))));
|
|
60
62
|
}
|
|
61
63
|
static get is() { return "tds-textarea"; }
|
|
62
64
|
static get encapsulation() { return "scoped"; }
|
|
@@ -423,4 +425,5 @@ export class TdsTextarea {
|
|
|
423
425
|
}
|
|
424
426
|
}];
|
|
425
427
|
}
|
|
428
|
+
static get elementRef() { return "host"; }
|
|
426
429
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
import generateUniqueId from "../../utils/generateUniqueId";
|
|
3
3
|
import hasSlot from "../../utils/hasSlot";
|
|
4
|
+
import { getPrefixedTagNames } from "../../utils/tagName";
|
|
4
5
|
/**
|
|
5
6
|
* @slot header - Slot for the Toast header.
|
|
6
7
|
* @slot subheader - Slot for the Toast subheader.
|
|
@@ -55,15 +56,16 @@ export class TdsToast {
|
|
|
55
56
|
this.hidden = false;
|
|
56
57
|
}
|
|
57
58
|
render() {
|
|
59
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
58
60
|
const usesHeaderSlot = hasSlot('header', this.host);
|
|
59
61
|
const usesSubheaderSlot = hasSlot('subheader', this.host);
|
|
60
62
|
const usesActionsSlot = hasSlot('actions', this.host);
|
|
61
|
-
return (h(Host, { key: '
|
|
63
|
+
return (h(Host, { key: '9c4ed33784151bd2ff0719cf229d8c4563be245c', toastRole: this.toastRole, "aria-describedby": this.host.getAttribute('aria-describedby'), class: {
|
|
62
64
|
hide: this.hidden,
|
|
63
65
|
show: !this.hidden,
|
|
64
|
-
} }, h("div", { key: '
|
|
66
|
+
} }, h("div", { key: 'b0338778796674cc19ef3c0873a61c1255b0a76b', class: `
|
|
65
67
|
wrapper
|
|
66
|
-
${this.variant}` }, h(
|
|
68
|
+
${this.variant}` }, h(prefixedTagNames.tdsIcon, { key: 'a07575723bba27caf6d38f1f6a1620cca698287a', name: this.getIconName(), size: "20px" }), h("div", { key: 'bffbd9afd81b4ef129e2b7e902eb38bdc23b6668', class: `content` }, h("div", { key: '8537a6b634c3d864d0e78b7816eb61f577855d74', class: "header-subheader" }, this.header && h("div", { key: 'ec629a586101403b8c598491b189617547b2c9b4', class: "header" }, this.header), usesHeaderSlot && h("slot", { key: 'b1f2edad8674a25cfde8295955f6c2c192e70813', name: "header" }), this.subheader && h("div", { key: 'e884bd8aa6ffdfe5c2bd72e139f661dd7fb85ccc', class: "subheader" }, this.subheader), usesSubheaderSlot && h("slot", { key: 'c866f0a4dc4197fcec92e921f774d0c0858e69ea', name: "subheader" })), usesActionsSlot && (h("div", { key: '9c3105649defb45a571e18d5233bc6826e635754', class: `toast-bottom ${usesSubheaderSlot || this.subheader ? 'subheader' : 'no-subheader'}` }, h("slot", { key: 'd2ca9276229fb8ccf252f0fd8fc2faa45b350ac0', name: "actions" })))), this.closable && (h("button", { key: '7670a6fc75adfe4875e82abad04cc19a708cdcba', onClick: this.handleClose, class: "close" }, h(prefixedTagNames.tdsIcon, { key: 'a30deec263d631c6188033fbb10cfa0707fe4ecc', name: "cross", size: "20px" }))))));
|
|
67
69
|
}
|
|
68
70
|
static get is() { return "tds-toast"; }
|
|
69
71
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import inheritAttributes from "../../utils/inheritAttributes";
|
|
3
|
+
import { getPrefixedTagNames } from "../../utils/tagName";
|
|
3
4
|
/**
|
|
4
5
|
* @slot <default> - <b>Unnamed slot.</b> For the tooltip contents.
|
|
5
6
|
*/
|
|
@@ -51,7 +52,8 @@ export class TdsTooltip {
|
|
|
51
52
|
}
|
|
52
53
|
render() {
|
|
53
54
|
var _a;
|
|
54
|
-
|
|
55
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
56
|
+
return (h(Host, { key: '1b316c3ecf119863127ca9f6ec369c6beb29b60e' }, h(prefixedTagNames.tdsPopoverCore, Object.assign({ key: '7c1b59991aa1e23b1deadd044a7aa16ea853c69c' }, this.inheritedAttributes, { class: {
|
|
55
57
|
'tds-tooltip': true,
|
|
56
58
|
[`tds-tooltip-${this.border}`]: true,
|
|
57
59
|
[(_a = this.inheritedAttributes.class) !== null && _a !== void 0 ? _a : '']: true,
|
|
@@ -60,7 +62,7 @@ export class TdsTooltip {
|
|
|
60
62
|
this.show = true;
|
|
61
63
|
}, onInternalTdsClose: () => {
|
|
62
64
|
this.show = false;
|
|
63
|
-
} }), this.text, h("slot", { key: '
|
|
65
|
+
} }), this.text, h("slot", { key: '8c585483121574a449eae789dc81f6fe77602905' }))));
|
|
64
66
|
}
|
|
65
67
|
static get is() { return "tds-tooltip"; }
|
|
66
68
|
static get encapsulation() { return "scoped"; }
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// eslint-disable-next-line import/no-relative-packages
|
|
2
|
+
import { TAG_NAMES } from "../../../../src/utils/tagNames";
|
|
3
|
+
// Utils to handle tag names for 'tds-' prefixed components
|
|
4
|
+
export const getTagName = (el) => {
|
|
5
|
+
if (!el || !(el instanceof HTMLElement)) {
|
|
6
|
+
console.error('Invalid element provided:', el);
|
|
7
|
+
return ''; // Return a default or throw an error
|
|
8
|
+
}
|
|
9
|
+
return el.tagName.toLowerCase();
|
|
10
|
+
};
|
|
11
|
+
export const paramCaseToCamelCase = (str) => str.replace(/-(\w)/g, (_, group) => group.toUpperCase());
|
|
12
|
+
export const getTagNameWithoutPrefix = (host) => {
|
|
13
|
+
const tagName = getTagName(host);
|
|
14
|
+
const maxLength = 100; // Maximum length of the input string
|
|
15
|
+
// Ensure the regex correctly captures the tag name after the prefix
|
|
16
|
+
const match = /^((?:[a-z0-9]+-){0,maxLength})([a-z0-9-]+)$/.exec(tagName.slice(0, maxLength)) || [];
|
|
17
|
+
const [, , tagNameWithoutPrefix = ''] = match;
|
|
18
|
+
return tagNameWithoutPrefix;
|
|
19
|
+
};
|
|
20
|
+
class PrefixedTagNamesCache extends Map {
|
|
21
|
+
}
|
|
22
|
+
const PREFIXED_TAG_NAMES_CACHE = new PrefixedTagNamesCache();
|
|
23
|
+
export const getPrefixedTagNames = (host) => {
|
|
24
|
+
const tagName = getTagName(host);
|
|
25
|
+
// Generate a unique cache key based on the tag name
|
|
26
|
+
const cacheKey = tagName;
|
|
27
|
+
// Check if the cache needs to be updated
|
|
28
|
+
if (!PREFIXED_TAG_NAMES_CACHE.has(cacheKey)) {
|
|
29
|
+
const prefixedTagNames = TAG_NAMES.reduce((result, tag) => (Object.assign(Object.assign({}, result), { [paramCaseToCamelCase(tag)]: tag })), {});
|
|
30
|
+
PREFIXED_TAG_NAMES_CACHE.set(cacheKey, prefixedTagNames);
|
|
31
|
+
}
|
|
32
|
+
return PREFIXED_TAG_NAMES_CACHE.get(cacheKey) || {};
|
|
33
|
+
};
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
const TAG_NAMES = [
|
|
2
|
+
'tds-accordion',
|
|
3
|
+
'tds-badge',
|
|
4
|
+
'tds-block',
|
|
5
|
+
'tds-breadcrumbs',
|
|
6
|
+
'tds-button',
|
|
7
|
+
'tds-banner',
|
|
8
|
+
'tds-card',
|
|
9
|
+
'tds-checkbox',
|
|
10
|
+
'tds-chip',
|
|
11
|
+
'tds-datetime',
|
|
12
|
+
'tds-divider',
|
|
13
|
+
'tds-dropdown',
|
|
14
|
+
'tds-footer',
|
|
15
|
+
'tds-header',
|
|
16
|
+
'tds-icon',
|
|
17
|
+
'tds-link',
|
|
18
|
+
'tds-message',
|
|
19
|
+
'tds-modal',
|
|
20
|
+
'tds-popover-canvas',
|
|
21
|
+
'tds-popover-core',
|
|
22
|
+
'tds-popover-menu',
|
|
23
|
+
'tds-radio-button',
|
|
24
|
+
'tds-side-menu',
|
|
25
|
+
'tds-slider',
|
|
26
|
+
'tds-spinner',
|
|
27
|
+
'tds-stepper',
|
|
28
|
+
'tds-text-field',
|
|
29
|
+
'tds-textarea',
|
|
30
|
+
'tds-toast',
|
|
31
|
+
'tds-toggle',
|
|
32
|
+
'tds-tooltip',
|
|
33
|
+
'tds-accordion-item',
|
|
34
|
+
'tds-breadcrumb',
|
|
35
|
+
'tds-dropdown-option',
|
|
36
|
+
'tds-footer-group',
|
|
37
|
+
'tds-footer-item',
|
|
38
|
+
'tds-core-header-item',
|
|
39
|
+
'tds-header-dropdown',
|
|
40
|
+
'tds-header-brand-symbol',
|
|
41
|
+
'tds-header-dropdown-list',
|
|
42
|
+
'tds-header-dropdown-list-item',
|
|
43
|
+
'tds-header-hamburger',
|
|
44
|
+
'tds-header-dropdown-list-user',
|
|
45
|
+
'tds-header-item',
|
|
46
|
+
'tds-header-launcher',
|
|
47
|
+
'tds-header-launcher-button',
|
|
48
|
+
'tds-header-launcher-grid',
|
|
49
|
+
'tds-header-launcher-grid-item',
|
|
50
|
+
'tds-header-launcher-grid-title',
|
|
51
|
+
'tds-header-launcher-list',
|
|
52
|
+
'tds-header-launcher-list-item',
|
|
53
|
+
'tds-header-launcher-list-title',
|
|
54
|
+
'tds-header-title',
|
|
55
|
+
'tds-popover-menu-item',
|
|
56
|
+
'tds-side-menu-dropdown',
|
|
57
|
+
'tds-side-menu-collapse-button',
|
|
58
|
+
'tds-side-menu-close-button',
|
|
59
|
+
'tds-side-menu-dropdown-list',
|
|
60
|
+
'tds-side-menu-item',
|
|
61
|
+
'tds-side-menu-dropdown-list-item',
|
|
62
|
+
'tds-side-menu-overlay',
|
|
63
|
+
'tds-side-menu-user',
|
|
64
|
+
'tds-side-menu-user-image',
|
|
65
|
+
'tds-side-menu-user-label',
|
|
66
|
+
'tds-step',
|
|
67
|
+
'tds-table',
|
|
68
|
+
'tds-table-body',
|
|
69
|
+
'tds-body-cell',
|
|
70
|
+
'tds-table-body-input-wrapper',
|
|
71
|
+
'tds-table-body-row',
|
|
72
|
+
'tds-table-body-row-expandable',
|
|
73
|
+
'tds-table-footer',
|
|
74
|
+
'tds-table-header',
|
|
75
|
+
'tds-header-cell',
|
|
76
|
+
'tds-table-header-input-wrapper',
|
|
77
|
+
'tds-table-toolbar',
|
|
78
|
+
'tds-folder-tabs',
|
|
79
|
+
'tds-inline-tabs',
|
|
80
|
+
'tds-navigation-tabs',
|
|
81
|
+
'tds-date-picker',
|
|
82
|
+
'tds-date-range-picker',
|
|
83
|
+
'tds-folder-tab',
|
|
84
|
+
'tds-inline-tab',
|
|
85
|
+
'tds-navigation-tab',
|
|
86
|
+
'date-picker-day',
|
|
87
|
+
'date-picker-month',
|
|
88
|
+
'date-picker-year',
|
|
89
|
+
'date-range-picker-day',
|
|
90
|
+
];
|
|
91
|
+
|
|
92
|
+
// eslint-disable-next-line import/no-relative-packages
|
|
93
|
+
// Utils to handle tag names for 'tds-' prefixed components
|
|
94
|
+
const getTagName = (el) => {
|
|
95
|
+
if (!el || !(el instanceof HTMLElement)) {
|
|
96
|
+
console.error('Invalid element provided:', el);
|
|
97
|
+
return ''; // Return a default or throw an error
|
|
98
|
+
}
|
|
99
|
+
return el.tagName.toLowerCase();
|
|
100
|
+
};
|
|
101
|
+
const paramCaseToCamelCase = (str) => str.replace(/-(\w)/g, (_, group) => group.toUpperCase());
|
|
102
|
+
class PrefixedTagNamesCache extends Map {
|
|
103
|
+
}
|
|
104
|
+
const PREFIXED_TAG_NAMES_CACHE = new PrefixedTagNamesCache();
|
|
105
|
+
const getPrefixedTagNames = (host) => {
|
|
106
|
+
const tagName = getTagName(host);
|
|
107
|
+
// Generate a unique cache key based on the tag name
|
|
108
|
+
const cacheKey = tagName;
|
|
109
|
+
// Check if the cache needs to be updated
|
|
110
|
+
if (!PREFIXED_TAG_NAMES_CACHE.has(cacheKey)) {
|
|
111
|
+
const prefixedTagNames = TAG_NAMES.reduce((result, tag) => (Object.assign(Object.assign({}, result), { [paramCaseToCamelCase(tag)]: tag })), {});
|
|
112
|
+
PREFIXED_TAG_NAMES_CACHE.set(cacheKey, prefixedTagNames);
|
|
113
|
+
}
|
|
114
|
+
return PREFIXED_TAG_NAMES_CACHE.get(cacheKey) || {};
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
export { getPrefixedTagNames as g };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, d as createEvent, h, c as Host } from './p-28ef5186.js';
|
|
2
|
-
import {
|
|
2
|
+
import { g as getPrefixedTagNames } from './p-a74b6809.js';
|
|
3
3
|
|
|
4
4
|
const accordionItemCss = ".tds-accordion-item{box-sizing:border-box;list-style:none;color:var(--tds-accordion-color);position:relative;border-top:1px solid var(--tds-accordion-border)}.tds-accordion-item *{box-sizing:border-box}.tds-accordion-item button.tds-accordion-header-icon-start,.tds-accordion-item button.tds-accordion-header-icon-end{all:unset}.tds-accordion-item .tds-accordion-header-icon-start,.tds-accordion-item .tds-accordion-header-icon-end,.tds-accordion-item button.tds-accordion-header-icon-start,.tds-accordion-item button.tds-accordion-header-icon-end{box-sizing:border-box;cursor:pointer;display:flex;align-items:center;width:100%;font:var(--tds-headline-07);letter-spacing:var(--tds-headline-07-ls);padding:var(--tds-spacing-element-16);background-color:var(--tds-accordion-background)}.tds-accordion-item .tds-accordion-header-icon-start *,.tds-accordion-item .tds-accordion-header-icon-end *,.tds-accordion-item button.tds-accordion-header-icon-start *,.tds-accordion-item button.tds-accordion-header-icon-end *{box-sizing:border-box}.tds-accordion-item .tds-accordion-header-icon-start .tds-accordion-icon,.tds-accordion-item .tds-accordion-header-icon-end .tds-accordion-icon,.tds-accordion-item button.tds-accordion-header-icon-start .tds-accordion-icon,.tds-accordion-item button.tds-accordion-header-icon-end .tds-accordion-icon{transform-origin:center;transition:transform 0.15s ease-in-out;color:var(--tds-accordion-icon-color)}.tds-accordion-item .tds-accordion-header-icon-start .tds-accordion-icon>tds-icon,.tds-accordion-item .tds-accordion-header-icon-end .tds-accordion-icon>tds-icon,.tds-accordion-item button.tds-accordion-header-icon-start .tds-accordion-icon>tds-icon,.tds-accordion-item button.tds-accordion-header-icon-end .tds-accordion-icon>tds-icon{display:block}.tds-accordion-item .tds-accordion-title{flex-grow:2}.tds-accordion-item .tds-accordion-panel{cursor:default;padding:var(--tds-spacing-element-8) var(--tds-spacing-layout-64) var(--tds-spacing-element-32) var(--tds-spacing-element-16);display:none;font:var(--tds-detail-03);letter-spacing:var(--tds-detail-03-ls)}.tds-accordion-item .tds-accordion-panel p{margin:0;padding:0}.tds-accordion-item .tds-accordion-panel--padding-reset{padding-right:var(--tds-spacing-element-16)}.tds-accordion-item .tds-accordion-header-icon-end .tds-accordion-icon{margin:0 0 0 var(--tds-spacing-element-32)}.tds-accordion-item .tds-accordion-header-icon-start .tds-accordion-title{order:1}.tds-accordion-item .tds-accordion-header-icon-start .tds-accordion-icon{order:0;margin:0 var(--tds-spacing-element-16) 0 0}.tds-accordion-item.disabled,.tds-accordion-item.disabled .tds-accordion-header-icon-end,.tds-accordion-item.disabled .tds-accordion-header-icon-start,.tds-accordion-item.disabled .tds-accordion-panel{color:var(--tds-accordion-color-disabled);cursor:not-allowed}.tds-accordion-item.disabled .tds-accordion-icon,.tds-accordion-item.disabled .tds-accordion-header-icon-end .tds-accordion-icon,.tds-accordion-item.disabled .tds-accordion-header-icon-start .tds-accordion-icon,.tds-accordion-item.disabled .tds-accordion-panel .tds-accordion-icon{color:var(--tds-accordion-color-disabled)}.tds-accordion-item.disabled:hover,.tds-accordion-item.disabled:hover *,.tds-accordion-item.disabled:focus,.tds-accordion-item.disabled:focus *,.tds-accordion-item.disabled:active,.tds-accordion-item.disabled:active *,.tds-accordion-item.disabled.active,.tds-accordion-item.disabled.active *{cursor:not-allowed}.tds-accordion-item.disabled:hover .tds-accordion-header-icon-start,.tds-accordion-item.disabled:hover .tds-accordion-header-icon-end,.tds-accordion-item.disabled:focus .tds-accordion-header-icon-start,.tds-accordion-item.disabled:focus .tds-accordion-header-icon-end,.tds-accordion-item.disabled:active .tds-accordion-header-icon-start,.tds-accordion-item.disabled:active .tds-accordion-header-icon-end,.tds-accordion-item.disabled.active .tds-accordion-header-icon-start,.tds-accordion-item.disabled.active .tds-accordion-header-icon-end{background-color:var(--tds-accordion-bg);outline:none;pointer-events:none}.tds-accordion-item.disabled:hover .tds-accordion-header-icon-start::after,.tds-accordion-item.disabled:hover .tds-accordion-header-icon-end::after,.tds-accordion-item.disabled:focus .tds-accordion-header-icon-start::after,.tds-accordion-item.disabled:focus .tds-accordion-header-icon-end::after,.tds-accordion-item.disabled:active .tds-accordion-header-icon-start::after,.tds-accordion-item.disabled:active .tds-accordion-header-icon-end::after,.tds-accordion-item.disabled.active .tds-accordion-header-icon-start::after,.tds-accordion-item.disabled.active .tds-accordion-header-icon-end::after{border-color:transparent}.tds-accordion-item.expanded .tds-accordion-panel{display:block;padding-bottom:31px}.tds-accordion-item.expanded .tds-accordion-icon{transform:rotate(180deg)}.tds-accordion-item.expanded .tds-accordion-header-icon-end .tds-accordion-icon{margin-right:0;margin-left:var(--tds-spacing-element-32)}.tds-accordion-item.expanded .tds-accordion-header-icon-start .tds-accordion-icon{margin-left:0;margin-right:var(--tds-spacing-element-16)}.tds-accordion-item:focus{border-top:1px solid var(--tds-accordion-border-focus)}.tds-accordion-item[disabled=true]:focus{border-color:var(--tds-accordion-border)}:host(:focus) .tds-accordion-item{outline:2px solid var(--tds-blue-400);outline-offset:-2px}:host(:focus) .tds-accordion-item .tds-accordion-header-icon-start,:host(:focus) .tds-accordion-item .tds-accordion-header-icon-end{background-color:var(--tds-accordion-background-focus);outline:none}:host(:hover) .tds-accordion-header-icon-start,:host(:hover) .tds-accordion-header-icon-end{background-color:var(--tds-accordion-background-hover)}:host(:active) .tds-accordion-header-icon-start,:host(:active) .tds-accordion-header-icon-end{background-color:var(--tds-accordion-background-active);outline:none}";
|
|
5
5
|
const TdsAccordionItemStyle0 = accordionItemCss;
|
|
@@ -27,13 +27,15 @@ const TdsAccordionItem$1 = /*@__PURE__*/ proxyCustomElement(class TdsAccordionIt
|
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
|
-
|
|
30
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
31
|
+
return (h(Host, { key: '28a9b6813c1cd7ce9df1528cefe381efe4a817e5' }, h("div", { key: 'b4f8d10531ec73f8090da847febc291638938eba', class: `tds-accordion-item
|
|
31
32
|
${this.disabled ? 'disabled' : ''}
|
|
32
33
|
${this.expanded ? 'expanded' : ''}
|
|
33
|
-
` }, h("button", { key: '
|
|
34
|
+
` }, h("button", { key: 'b1b7db7fc8522f1092c6fff48e2a78bca6868bcf', type: "button", "aria-expanded": this.expanded, class: `tds-accordion-header-icon-${this.expandIconPosition}`, onClick: () => this.toggleAccordionItem(), disabled: this.disabled }, h("div", { key: 'cef4676f3219664ead89806ad0450fd9593e7b43', class: "tds-accordion-title" }, this.header, h("slot", { key: '4ab9fef8b30367f2f205b30d972217a9e62b4e78', name: "header" })), h("div", { key: 'c9a988d0c37316139332611f6c695bfd946c3a2d', class: "tds-accordion-icon" }, h(prefixedTagNames.tdsIcon, { key: 'ff1b6046a611269cf8883eea74aa5cbfa89b1f47', name: "chevron_down", size: "16px" }))), h("div", { key: '851378e8581ca06d6d0ad285a00bc68bcf006afb', class: `tds-accordion-panel
|
|
34
35
|
${this.paddingReset ? 'tds-accordion-panel--padding-reset ' : ''}
|
|
35
|
-
` }, h("slot", { key: '
|
|
36
|
+
` }, h("slot", { key: '4925780d0f3f521d9e49546ff7bb4ed387b6d2f7' })))));
|
|
36
37
|
}
|
|
38
|
+
get host() { return this; }
|
|
37
39
|
static get style() { return TdsAccordionItemStyle0; }
|
|
38
40
|
}, [1, "tds-accordion-item", {
|
|
39
41
|
"header": [1],
|
|
@@ -47,18 +49,13 @@ function defineCustomElement$1() {
|
|
|
47
49
|
if (typeof customElements === "undefined") {
|
|
48
50
|
return;
|
|
49
51
|
}
|
|
50
|
-
const components = ["tds-accordion-item"
|
|
52
|
+
const components = ["tds-accordion-item"];
|
|
51
53
|
components.forEach(tagName => { switch (tagName) {
|
|
52
54
|
case "tds-accordion-item":
|
|
53
55
|
if (!customElements.get(tagName)) {
|
|
54
56
|
customElements.define(tagName, TdsAccordionItem$1);
|
|
55
57
|
}
|
|
56
58
|
break;
|
|
57
|
-
case "tds-icon":
|
|
58
|
-
if (!customElements.get(tagName)) {
|
|
59
|
-
defineCustomElement$2();
|
|
60
|
-
}
|
|
61
|
-
break;
|
|
62
59
|
} });
|
|
63
60
|
}
|
|
64
61
|
defineCustomElement$1();
|