@scania/tegel 1.39.0 → 1.40.0-stencil-core-4.38.1-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-Cpz8G-hs.js +2379 -0
- package/dist/cjs/{inheritAriaAttributes-dedbbc57.js → inheritAriaAttributes-D_xFGssc.js} +1 -1
- package/dist/cjs/{isHeadingElement-4f06b688.js → isHeadingElement-DihKNeqS.js} +1 -1
- package/dist/cjs/loader.cjs.js +3 -6
- package/dist/cjs/tds-accordion-item.cjs.entry.js +10 -7
- package/dist/cjs/tds-accordion.cjs.entry.js +4 -5
- package/dist/cjs/tds-badge.cjs.entry.js +6 -5
- package/dist/cjs/tds-banner.cjs.entry.js +18 -14
- package/dist/cjs/tds-block.cjs.entry.js +4 -5
- package/dist/cjs/tds-body-cell.cjs.entry.js +5 -11
- package/dist/cjs/tds-breadcrumb.cjs.entry.js +3 -5
- package/dist/cjs/tds-breadcrumbs.cjs.entry.js +2 -6
- package/dist/cjs/tds-button_2.cjs.entry.js +15 -14
- package/dist/cjs/tds-card.cjs.entry.js +28 -19
- package/dist/cjs/tds-checkbox.cjs.entry.js +13 -15
- package/dist/cjs/tds-chip.cjs.entry.js +19 -16
- package/dist/cjs/tds-core-header-item_2.cjs.entry.js +11 -12
- package/dist/cjs/tds-datetime.cjs.entry.js +29 -25
- package/dist/cjs/tds-dropdown_2.cjs.entry.js +65 -58
- package/dist/cjs/tds-folder-tab.cjs.entry.js +5 -8
- package/dist/cjs/tds-folder-tabs.cjs.entry.js +15 -15
- package/dist/cjs/tds-footer-group.cjs.entry.js +8 -13
- package/dist/cjs/tds-footer-item.cjs.entry.js +3 -6
- package/dist/cjs/tds-footer.cjs.entry.js +7 -9
- package/dist/cjs/tds-header-brand-symbol.cjs.entry.js +3 -6
- package/dist/cjs/tds-header-cell.cjs.entry.js +19 -23
- package/dist/cjs/tds-header-dropdown-list-item.cjs.entry.js +7 -8
- package/dist/cjs/tds-header-dropdown-list-user.cjs.entry.js +3 -10
- package/dist/cjs/tds-header-dropdown-list.cjs.entry.js +6 -9
- package/dist/cjs/tds-header-dropdown.cjs.entry.js +12 -16
- package/dist/cjs/tds-header-hamburger.cjs.entry.js +5 -9
- package/dist/cjs/tds-header-launcher-button.cjs.entry.js +7 -9
- package/dist/cjs/tds-header-launcher-grid-item.cjs.entry.js +3 -6
- package/dist/cjs/tds-header-launcher-grid-title.cjs.entry.js +4 -7
- package/dist/cjs/tds-header-launcher-grid.cjs.entry.js +5 -9
- package/dist/cjs/tds-header-launcher-list-item.cjs.entry.js +3 -6
- package/dist/cjs/tds-header-launcher-list-title.cjs.entry.js +4 -7
- package/dist/cjs/tds-header-launcher-list.cjs.entry.js +3 -5
- package/dist/cjs/tds-header-launcher.cjs.entry.js +8 -13
- package/dist/cjs/tds-header-title.cjs.entry.js +4 -7
- package/dist/cjs/tds-header.cjs.entry.js +5 -8
- package/dist/cjs/tds-icon.cjs.entry.js +11 -13
- package/dist/cjs/tds-inline-tab.cjs.entry.js +6 -8
- package/dist/cjs/tds-inline-tabs.cjs.entry.js +17 -16
- package/dist/cjs/tds-link.cjs.entry.js +7 -7
- package/dist/cjs/tds-message.cjs.entry.js +16 -16
- package/dist/cjs/tds-modal.cjs.entry.js +20 -20
- package/dist/cjs/tds-navigation-tab.cjs.entry.js +5 -7
- package/dist/cjs/tds-navigation-tabs.cjs.entry.js +18 -17
- package/dist/cjs/tds-popover-canvas.cjs.entry.js +19 -13
- package/dist/cjs/tds-popover-core.cjs.entry.js +40 -36
- package/dist/cjs/tds-popover-menu-item.cjs.entry.js +5 -7
- package/dist/cjs/tds-popover-menu.cjs.entry.js +18 -13
- package/dist/cjs/tds-radio-button.cjs.entry.js +12 -15
- package/dist/cjs/tds-side-menu-close-button.cjs.entry.js +5 -8
- package/dist/cjs/tds-side-menu-collapse-button.cjs.entry.js +6 -9
- package/dist/cjs/tds-side-menu-dropdown-list-item.cjs.entry.js +6 -8
- package/dist/cjs/tds-side-menu-dropdown-list.cjs.entry.js +4 -7
- package/dist/cjs/tds-side-menu-dropdown.cjs.entry.js +8 -10
- package/dist/cjs/tds-side-menu-item.cjs.entry.js +9 -9
- package/dist/cjs/tds-side-menu-overlay.cjs.entry.js +3 -6
- package/dist/cjs/tds-side-menu-user-image_2.cjs.entry.js +5 -13
- package/dist/cjs/tds-side-menu-user.cjs.entry.js +3 -10
- package/dist/cjs/tds-side-menu.cjs.entry.js +15 -12
- package/dist/cjs/tds-slider.cjs.entry.js +47 -32
- package/dist/cjs/tds-spinner.cjs.entry.js +5 -6
- package/dist/cjs/tds-step.cjs.entry.js +4 -12
- package/dist/cjs/tds-stepper.cjs.entry.js +13 -6
- package/dist/cjs/tds-table-body-input-wrapper.cjs.entry.js +4 -6
- package/dist/cjs/tds-table-body-row-expandable.cjs.entry.js +18 -14
- package/dist/cjs/tds-table-body-row.cjs.entry.js +7 -7
- package/dist/cjs/tds-table-body.cjs.entry.js +9 -13
- package/dist/cjs/tds-table-footer.cjs.entry.js +24 -20
- package/dist/cjs/tds-table-header-input-wrapper.cjs.entry.js +4 -6
- package/dist/cjs/tds-table-header.cjs.entry.js +7 -8
- package/dist/cjs/tds-table-toolbar.cjs.entry.js +7 -7
- package/dist/cjs/tds-table.cjs.entry.js +21 -7
- package/dist/cjs/tds-tag.cjs.entry.js +6 -8
- package/dist/cjs/tds-text-field.cjs.entry.js +29 -18
- package/dist/cjs/tds-textarea.cjs.entry.js +19 -16
- package/dist/cjs/tds-toast.cjs.entry.js +19 -19
- package/dist/cjs/tds-toggle.cjs.entry.js +16 -17
- package/dist/cjs/tds-tooltip.cjs.entry.js +21 -19
- package/dist/cjs/tegel.cjs.js +7 -8
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/accordion/accordion-item/accordion-item.css +9 -34
- package/dist/collection/components/accordion/accordion-item/accordion-item.js +24 -6
- package/dist/collection/components/accordion/accordion.js +8 -2
- package/dist/collection/components/badge/badge.js +16 -4
- package/dist/collection/components/banner/banner.js +39 -18
- package/dist/collection/components/block/block.js +8 -2
- package/dist/collection/components/breadcrumbs/breadcrumb/breadcrumb.js +4 -1
- package/dist/collection/components/breadcrumbs/breadcrumbs.js +4 -5
- package/dist/collection/components/button/button.css +14 -14
- package/dist/collection/components/button/button.js +44 -19
- package/dist/collection/components/card/card.js +64 -28
- package/dist/collection/components/checkbox/checkbox.js +41 -22
- package/dist/collection/components/chip/chip.css +23 -15
- package/dist/collection/components/chip/chip.js +41 -19
- package/dist/collection/components/datetime/datetime.css +21 -96
- package/dist/collection/components/datetime/datetime.js +77 -38
- package/dist/collection/components/divider/divider.js +9 -3
- package/dist/collection/components/dropdown/dropdown-option/dropdown-option.css +1 -1
- package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +34 -21
- package/dist/collection/components/dropdown/dropdown.js +91 -55
- package/dist/collection/components/footer/footer-group/footer-group.js +13 -11
- package/dist/collection/components/footer/footer-item/footer-item.js +1 -1
- package/dist/collection/components/footer/footer.js +7 -4
- package/dist/collection/components/header/core-header-item/core-header-item.js +1 -1
- package/dist/collection/components/header/header-brand-symbol/header-brand-symbol.js +1 -1
- package/dist/collection/components/header/header-dropdown/header-dropdown.css +5 -0
- package/dist/collection/components/header/header-dropdown/header-dropdown.js +22 -15
- package/dist/collection/components/header/header-dropdown-list/header-dropdown-list.js +5 -3
- package/dist/collection/components/header/header-dropdown-list-item/header-dropdown-list-item.css +5 -3
- package/dist/collection/components/header/header-dropdown-list-item/header-dropdown-list-item.js +10 -4
- package/dist/collection/components/header/header-dropdown-list-user/header-dropdown-list-user.js +17 -15
- package/dist/collection/components/header/header-hamburger/header-hamburger.js +5 -6
- package/dist/collection/components/header/header-item/header-item.css +12 -5
- package/dist/collection/components/header/header-item/header-item.js +11 -4
- package/dist/collection/components/header/header-launcher/header-launcher.js +7 -7
- package/dist/collection/components/header/header-launcher-button/header-launcher-button.js +10 -5
- package/dist/collection/components/header/header-launcher-grid/header-launcher-grid.js +1 -4
- package/dist/collection/components/header/header-launcher-grid-item/header-launcher-grid-item.js +1 -1
- package/dist/collection/components/header/header-launcher-grid-title/header-launcher-grid-title.js +1 -1
- package/dist/collection/components/header/header-launcher-list/header-launcher-list.js +1 -1
- package/dist/collection/components/header/header-launcher-list-item/header-launcher-list-item.js +1 -1
- package/dist/collection/components/header/header-launcher-list-title/header-launcher-list-title.js +1 -1
- package/dist/collection/components/header/header-title/header-title.css +2 -0
- package/dist/collection/components/header/header-title/header-title.js +1 -1
- package/dist/collection/components/header/header.js +1 -1
- package/dist/collection/components/icon/icon.js +27 -16
- package/dist/collection/components/link/link.js +14 -5
- package/dist/collection/components/message/message.css +9 -9
- package/dist/collection/components/message/message.js +35 -18
- package/dist/collection/components/modal/modal.js +46 -25
- package/dist/collection/components/popover-canvas/popover-canvas.js +49 -18
- package/dist/collection/components/popover-core/popover-core.js +61 -30
- package/dist/collection/components/popover-menu/popover-menu-item/popover-menu-item.js +6 -3
- package/dist/collection/components/popover-menu/popover-menu.js +46 -18
- package/dist/collection/components/radio-button/radio-button.js +37 -21
- package/dist/collection/components/side-menu/side-menu-close-button/side-menu-close-button.js +1 -1
- package/dist/collection/components/side-menu/side-menu-collapse-button/side-menu-collapse-button.js +4 -4
- package/dist/collection/components/side-menu/side-menu-dropdown/side-menu-dropdown.js +19 -10
- package/dist/collection/components/side-menu/side-menu-dropdown-list/side-menu-dropdown-list.js +2 -2
- package/dist/collection/components/side-menu/side-menu-dropdown-list-item/side-menu-dropdown-list-item.css +1 -0
- package/dist/collection/components/side-menu/side-menu-dropdown-list-item/side-menu-dropdown-list-item.js +6 -3
- package/dist/collection/components/side-menu/side-menu-item/side-menu-item.css +1 -0
- package/dist/collection/components/side-menu/side-menu-item/side-menu-item.js +11 -4
- package/dist/collection/components/side-menu/side-menu-overlay/side-menu-overlay.js +1 -1
- package/dist/collection/components/side-menu/side-menu-user/side-menu-user.js +17 -15
- package/dist/collection/components/side-menu/side-menu-user-image/side-menu-user-image.js +9 -9
- package/dist/collection/components/side-menu/side-menu-user-label/side-menu-user-label.js +9 -9
- package/dist/collection/components/side-menu/side-menu.js +22 -10
- package/dist/collection/components/slider/slider.js +98 -44
- package/dist/collection/components/spinner/spinner.js +9 -3
- package/dist/collection/components/stepper/step/step.js +13 -12
- package/dist/collection/components/stepper/stepper.js +28 -6
- package/dist/collection/components/table/table/table.js +49 -12
- package/dist/collection/components/table/table-body/table-body.js +7 -8
- package/dist/collection/components/table/table-body-cell/table-body-cell.js +18 -13
- package/dist/collection/components/table/table-body-input-wrapper/table-body-input-wrapper.js +5 -2
- package/dist/collection/components/table/table-body-row/table-body-row.js +14 -5
- package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js +34 -15
- package/dist/collection/components/table/table-footer/table-footer.js +39 -20
- package/dist/collection/components/table/table-header/table-header.js +18 -8
- package/dist/collection/components/table/table-header-cell/table-header-cell.js +41 -28
- package/dist/collection/components/table/table-header-input-wrapper/table-header-input-wrapper.js +8 -3
- package/dist/collection/components/table/table-toolbar/table-toolbar.js +14 -5
- package/dist/collection/components/tabs/folder-tabs/folder-tab/folder-tab.js +6 -4
- package/dist/collection/components/tabs/folder-tabs/folder-tabs.js +29 -16
- package/dist/collection/components/tabs/inline-tabs/inline-tab/inline-tab.css +11 -12
- package/dist/collection/components/tabs/inline-tabs/inline-tab/inline-tab.js +6 -3
- package/dist/collection/components/tabs/inline-tabs/inline-tabs.css +9 -2
- package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +33 -17
- package/dist/collection/components/tabs/navigation-tabs/navigation-tab/navigation-tab.js +6 -3
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +35 -19
- package/dist/collection/components/tag/tag.js +13 -6
- package/dist/collection/components/text-field/text-field.js +128 -36
- package/dist/collection/components/textarea/textarea.js +71 -31
- package/dist/collection/components/toast/toast.js +45 -24
- package/dist/collection/components/toggle/toggle.js +40 -22
- package/dist/collection/components/tooltip/tooltip.js +53 -26
- package/dist/collection/utils/dom.js +7 -0
- package/dist/components/index.js +1790 -1
- package/dist/components/{p-f04f04b5.js → p-B569z5eW.js} +25 -15
- package/dist/components/{p-ad6babcd.js → p-BHBgkUfr.js} +15 -11
- package/dist/components/{p-9ad61cb5.js → p-BhLq7lgx.js} +8 -7
- package/dist/components/{p-de36fc8a.js → p-BiyghEA7.js} +40 -42
- package/dist/components/{p-92c2da85.js → p-BxmFjTxG.js} +14 -10
- package/dist/components/{p-927cf777.js → p-CMsPXG7a.js} +8 -9
- package/dist/components/{p-b390ece5.js → p-CPDv0bBc.js} +16 -14
- package/dist/components/{p-44f5b5e1.js → p-Ca3wGDna.js} +18 -16
- package/dist/components/p-ChCWm6If.js +95 -0
- package/dist/components/{p-859e3ebf.js → p-CuIyaNyT.js} +1 -1
- package/dist/components/{p-072bf53a.js → p-D1ati-pM.js} +14 -12
- package/dist/components/{p-40253725.js → p-DnzQe_HU.js} +27 -21
- package/dist/components/{p-b609e7a7.js → p-DuxH3vDC.js} +8 -9
- package/dist/components/{p-c4318e35.js → p-Ee9QeMgy.js} +41 -26
- package/dist/components/{p-6eecf159.js → p-FqP1yGh_.js} +10 -7
- package/dist/components/{p-71c3dfe9.js → p-HRj1DOvh.js} +12 -9
- package/dist/components/{p-3b58a9f3.js → p-Ip9G3co9.js} +39 -22
- package/dist/components/{p-0bd4c19c.js → p-Q3W78DlP.js} +1 -1
- package/dist/components/{p-d0cf68be.js → p-QnvG_QPu.js} +10 -9
- package/dist/components/{p-d3866be7.js → p-X1sPx4t5.js} +45 -37
- package/dist/components/tds-accordion-item.js +16 -9
- package/dist/components/tds-accordion.js +9 -6
- package/dist/components/tds-badge.js +11 -6
- package/dist/components/tds-banner.js +24 -16
- package/dist/components/tds-block.js +9 -6
- package/dist/components/tds-body-cell.js +10 -12
- package/dist/components/tds-breadcrumb.js +8 -6
- package/dist/components/tds-breadcrumbs.js +7 -7
- package/dist/components/tds-button.js +1 -1
- package/dist/components/tds-card.js +36 -23
- package/dist/components/tds-checkbox.js +1 -1
- package/dist/components/tds-chip.js +24 -17
- package/dist/components/tds-core-header-item.js +1 -1
- package/dist/components/tds-datetime.js +35 -27
- package/dist/components/tds-divider.js +1 -1
- package/dist/components/tds-dropdown-option.js +1 -1
- package/dist/components/tds-dropdown.js +1 -1
- package/dist/components/tds-folder-tab.js +10 -9
- package/dist/components/tds-folder-tabs.js +21 -17
- package/dist/components/tds-footer-group.js +14 -15
- package/dist/components/tds-footer-item.js +8 -7
- package/dist/components/tds-footer.js +12 -10
- package/dist/components/tds-header-brand-symbol.js +10 -9
- package/dist/components/tds-header-cell.js +25 -25
- package/dist/components/tds-header-dropdown-list-item.js +1 -1
- package/dist/components/tds-header-dropdown-list-user.js +8 -11
- package/dist/components/tds-header-dropdown-list.js +1 -1
- package/dist/components/tds-header-dropdown.js +22 -22
- package/dist/components/tds-header-hamburger.js +12 -12
- 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 +8 -7
- package/dist/components/tds-header-launcher-grid-title.js +9 -8
- package/dist/components/tds-header-launcher-grid.js +9 -9
- package/dist/components/tds-header-launcher-list-item.js +9 -8
- package/dist/components/tds-header-launcher-list-title.js +9 -8
- package/dist/components/tds-header-launcher-list.js +9 -7
- package/dist/components/tds-header-launcher.js +18 -19
- package/dist/components/tds-header-title.js +9 -8
- package/dist/components/tds-header.js +9 -8
- package/dist/components/tds-icon.js +1 -1
- package/dist/components/tds-inline-tab.js +11 -9
- package/dist/components/tds-inline-tabs.js +23 -18
- package/dist/components/tds-link.js +12 -8
- package/dist/components/tds-message.js +22 -18
- package/dist/components/tds-modal.js +26 -22
- package/dist/components/tds-navigation-tab.js +10 -8
- package/dist/components/tds-navigation-tabs.js +24 -19
- package/dist/components/tds-popover-canvas.js +1 -1
- package/dist/components/tds-popover-core.js +1 -1
- package/dist/components/tds-popover-menu-item.js +10 -8
- package/dist/components/tds-popover-menu.js +24 -15
- package/dist/components/tds-radio-button.js +17 -16
- package/dist/components/tds-side-menu-close-button.js +10 -9
- package/dist/components/tds-side-menu-collapse-button.js +12 -11
- package/dist/components/tds-side-menu-dropdown-list-item.js +11 -9
- package/dist/components/tds-side-menu-dropdown-list.js +9 -8
- package/dist/components/tds-side-menu-dropdown.js +15 -13
- package/dist/components/tds-side-menu-item.js +1 -1
- package/dist/components/tds-side-menu-overlay.js +8 -7
- package/dist/components/tds-side-menu-user-image.js +1 -1
- package/dist/components/tds-side-menu-user-label.js +1 -1
- package/dist/components/tds-side-menu-user.js +10 -13
- package/dist/components/tds-side-menu.js +20 -13
- package/dist/components/tds-slider.js +56 -37
- package/dist/components/tds-spinner.js +10 -7
- package/dist/components/tds-step.js +10 -14
- package/dist/components/tds-stepper.js +18 -7
- package/dist/components/tds-table-body-input-wrapper.js +10 -8
- package/dist/components/tds-table-body-row-expandable.js +23 -15
- package/dist/components/tds-table-body-row.js +13 -9
- package/dist/components/tds-table-body.js +14 -14
- package/dist/components/tds-table-footer.js +33 -25
- package/dist/components/tds-table-header-input-wrapper.js +10 -8
- package/dist/components/tds-table-header.js +13 -10
- package/dist/components/tds-table-toolbar.js +13 -9
- package/dist/components/tds-table.js +26 -8
- package/dist/components/tds-tag.js +11 -9
- package/dist/components/tds-text-field.js +1 -1
- package/dist/components/tds-textarea.js +27 -20
- package/dist/components/tds-toast.js +25 -21
- package/dist/components/tds-toggle.js +21 -18
- package/dist/components/tds-tooltip.js +1 -1
- package/dist/esm/index-Cl9XBhQW.js +2350 -0
- package/dist/esm/{inheritAriaAttributes-04f2f252.js → inheritAriaAttributes-DyLhgCIg.js} +1 -1
- package/dist/esm/{isHeadingElement-8efea284.js → isHeadingElement-BQco7VNg.js} +1 -1
- package/dist/esm/loader.js +3 -4
- package/dist/esm/tds-accordion-item.entry.js +10 -5
- package/dist/esm/tds-accordion.entry.js +4 -3
- package/dist/esm/tds-badge.entry.js +6 -3
- package/dist/esm/tds-banner.entry.js +18 -12
- package/dist/esm/tds-block.entry.js +4 -3
- package/dist/esm/tds-body-cell.entry.js +5 -9
- package/dist/esm/tds-breadcrumb.entry.js +3 -3
- package/dist/esm/tds-breadcrumbs.entry.js +2 -4
- package/dist/esm/tds-button_2.entry.js +15 -12
- package/dist/esm/tds-card.entry.js +28 -17
- package/dist/esm/tds-checkbox.entry.js +13 -13
- package/dist/esm/tds-chip.entry.js +19 -14
- package/dist/esm/tds-core-header-item_2.entry.js +11 -10
- package/dist/esm/tds-datetime.entry.js +29 -23
- package/dist/esm/tds-dropdown_2.entry.js +65 -56
- package/dist/esm/tds-folder-tab.entry.js +5 -6
- package/dist/esm/tds-folder-tabs.entry.js +15 -13
- package/dist/esm/tds-footer-group.entry.js +8 -11
- package/dist/esm/tds-footer-item.entry.js +3 -4
- package/dist/esm/tds-footer.entry.js +7 -7
- package/dist/esm/tds-header-brand-symbol.entry.js +3 -4
- package/dist/esm/tds-header-cell.entry.js +19 -21
- package/dist/esm/tds-header-dropdown-list-item.entry.js +7 -6
- package/dist/esm/tds-header-dropdown-list-user.entry.js +3 -8
- package/dist/esm/tds-header-dropdown-list.entry.js +6 -7
- package/dist/esm/tds-header-dropdown.entry.js +12 -14
- package/dist/esm/tds-header-hamburger.entry.js +5 -7
- package/dist/esm/tds-header-launcher-button.entry.js +7 -7
- package/dist/esm/tds-header-launcher-grid-item.entry.js +3 -4
- package/dist/esm/tds-header-launcher-grid-title.entry.js +4 -5
- package/dist/esm/tds-header-launcher-grid.entry.js +5 -7
- package/dist/esm/tds-header-launcher-list-item.entry.js +3 -4
- package/dist/esm/tds-header-launcher-list-title.entry.js +4 -5
- package/dist/esm/tds-header-launcher-list.entry.js +3 -3
- package/dist/esm/tds-header-launcher.entry.js +8 -11
- package/dist/esm/tds-header-title.entry.js +4 -5
- package/dist/esm/tds-header.entry.js +5 -6
- package/dist/esm/tds-icon.entry.js +11 -11
- package/dist/esm/tds-inline-tab.entry.js +6 -6
- package/dist/esm/tds-inline-tabs.entry.js +17 -14
- package/dist/esm/tds-link.entry.js +7 -5
- package/dist/esm/tds-message.entry.js +16 -14
- package/dist/esm/tds-modal.entry.js +20 -18
- package/dist/esm/tds-navigation-tab.entry.js +5 -5
- package/dist/esm/tds-navigation-tabs.entry.js +18 -15
- package/dist/esm/tds-popover-canvas.entry.js +19 -11
- package/dist/esm/tds-popover-core.entry.js +40 -34
- package/dist/esm/tds-popover-menu-item.entry.js +5 -5
- package/dist/esm/tds-popover-menu.entry.js +18 -11
- package/dist/esm/tds-radio-button.entry.js +12 -13
- package/dist/esm/tds-side-menu-close-button.entry.js +5 -6
- package/dist/esm/tds-side-menu-collapse-button.entry.js +6 -7
- package/dist/esm/tds-side-menu-dropdown-list-item.entry.js +6 -6
- package/dist/esm/tds-side-menu-dropdown-list.entry.js +4 -5
- package/dist/esm/tds-side-menu-dropdown.entry.js +8 -8
- package/dist/esm/tds-side-menu-item.entry.js +9 -7
- package/dist/esm/tds-side-menu-overlay.entry.js +3 -4
- package/dist/esm/tds-side-menu-user-image_2.entry.js +5 -11
- package/dist/esm/tds-side-menu-user.entry.js +3 -8
- package/dist/esm/tds-side-menu.entry.js +15 -10
- package/dist/esm/tds-slider.entry.js +47 -30
- package/dist/esm/tds-spinner.entry.js +5 -4
- package/dist/esm/tds-step.entry.js +4 -10
- package/dist/esm/tds-stepper.entry.js +13 -4
- package/dist/esm/tds-table-body-input-wrapper.entry.js +4 -4
- package/dist/esm/tds-table-body-row-expandable.entry.js +18 -12
- package/dist/esm/tds-table-body-row.entry.js +7 -5
- package/dist/esm/tds-table-body.entry.js +9 -11
- package/dist/esm/tds-table-footer.entry.js +24 -18
- package/dist/esm/tds-table-header-input-wrapper.entry.js +4 -4
- package/dist/esm/tds-table-header.entry.js +7 -6
- package/dist/esm/tds-table-toolbar.entry.js +7 -5
- package/dist/esm/tds-table.entry.js +21 -5
- package/dist/esm/tds-tag.entry.js +6 -6
- package/dist/esm/tds-text-field.entry.js +29 -16
- package/dist/esm/tds-textarea.entry.js +19 -14
- package/dist/esm/tds-toast.entry.js +19 -17
- package/dist/esm/tds-toggle.entry.js +16 -15
- package/dist/esm/tds-tooltip.entry.js +21 -17
- package/dist/esm/tegel.js +5 -5
- package/dist/tegel/{p-6e57997e.entry.js → p-03d1456f.entry.js} +1 -1
- package/dist/tegel/p-07c5665c.entry.js +1 -0
- package/dist/tegel/p-08d8a464.entry.js +1 -0
- package/dist/tegel/{p-b734b309.entry.js → p-0a3bd804.entry.js} +1 -1
- package/dist/tegel/{p-72006dd7.entry.js → p-0ab44df9.entry.js} +1 -1
- package/dist/tegel/p-0e8721cf.entry.js +1 -0
- package/dist/tegel/p-1371f357.entry.js +1 -0
- package/dist/tegel/p-147d2c33.entry.js +1 -0
- package/dist/tegel/p-250a843a.entry.js +1 -0
- package/dist/tegel/p-2b89b750.entry.js +1 -0
- package/dist/tegel/p-2c5e101e.entry.js +1 -0
- package/dist/tegel/p-2ebac517.entry.js +1 -0
- package/dist/tegel/{p-2f9b15f6.entry.js → p-36ea4775.entry.js} +1 -1
- package/dist/tegel/p-37873e68.entry.js +1 -0
- package/dist/tegel/p-37aa4516.entry.js +1 -0
- package/dist/tegel/p-3910b9e0.entry.js +1 -0
- package/dist/tegel/p-39f80d1b.entry.js +1 -0
- package/dist/tegel/{p-3022d31d.entry.js → p-3c409856.entry.js} +1 -1
- package/dist/tegel/p-3e1edb21.entry.js +1 -0
- package/dist/tegel/p-3e27eee0.entry.js +1 -0
- package/dist/tegel/p-3f0c978a.entry.js +1 -0
- package/dist/tegel/p-41fa3671.entry.js +1 -0
- package/dist/tegel/{p-bcdf13e0.entry.js → p-449e8c13.entry.js} +1 -1
- package/dist/tegel/p-4b711300.entry.js +1 -0
- package/dist/tegel/p-4ebf13bf.entry.js +1 -0
- package/dist/tegel/{p-525c81b1.entry.js → p-57def79e.entry.js} +1 -1
- package/dist/tegel/p-599ae54d.entry.js +1 -0
- package/dist/tegel/{p-650b98bf.entry.js → p-59a1c10f.entry.js} +1 -1
- package/dist/tegel/p-5d64b236.entry.js +1 -0
- package/dist/tegel/p-6066b5be.entry.js +1 -0
- package/dist/tegel/p-620b157a.entry.js +1 -0
- package/dist/tegel/p-624a8ca4.entry.js +1 -0
- package/dist/tegel/p-628798d4.entry.js +1 -0
- package/dist/tegel/p-63646981.entry.js +1 -0
- package/dist/tegel/{p-87740f23.entry.js → p-69bf3133.entry.js} +1 -1
- package/dist/tegel/{p-d0f09796.entry.js → p-6cad127c.entry.js} +1 -1
- package/dist/tegel/{p-c465f9b8.entry.js → p-6d3447b7.entry.js} +1 -1
- package/dist/tegel/p-71943f32.entry.js +1 -0
- package/dist/tegel/p-7ba0b456.entry.js +1 -0
- package/dist/tegel/p-802e8d8a.entry.js +1 -0
- package/dist/tegel/p-80be1071.entry.js +1 -0
- package/dist/tegel/p-8501b0d7.entry.js +1 -0
- package/dist/tegel/{p-87219f00.entry.js → p-8ad8234f.entry.js} +1 -1
- package/dist/tegel/p-8d4d136f.entry.js +1 -0
- package/dist/tegel/{p-ecb34850.entry.js → p-8d98759c.entry.js} +1 -1
- package/dist/tegel/p-902183d7.entry.js +1 -0
- package/dist/tegel/p-936d77e4.entry.js +1 -0
- package/dist/tegel/p-942df5c4.entry.js +1 -0
- package/dist/tegel/{p-fbffe3aa.entry.js → p-99f46fe1.entry.js} +1 -1
- package/dist/tegel/p-9b7ad650.entry.js +1 -0
- package/dist/tegel/{p-3a92d554.entry.js → p-9c62f888.entry.js} +1 -1
- package/dist/tegel/p-9f25060e.entry.js +1 -0
- package/dist/tegel/{p-9332c225.js → p-Bx66i7RU.js} +1 -1
- package/dist/tegel/p-Cl9XBhQW.js +2 -0
- package/dist/tegel/{p-0bd4c19c.js → p-Q3W78DlP.js} +1 -1
- package/dist/tegel/p-a08baed5.entry.js +1 -0
- package/dist/tegel/p-a30159f5.entry.js +1 -0
- package/dist/tegel/{p-c7b0253c.entry.js → p-a3ef627e.entry.js} +1 -1
- package/dist/tegel/{p-bb1d069f.entry.js → p-a595dba7.entry.js} +1 -1
- package/dist/tegel/p-aaacbe31.entry.js +1 -0
- package/dist/tegel/p-b0f44fd9.entry.js +1 -0
- package/dist/tegel/p-b2bfe0fb.entry.js +1 -0
- package/dist/tegel/{p-eff87481.entry.js → p-b4df0131.entry.js} +1 -1
- package/dist/tegel/p-b509c734.entry.js +1 -0
- package/dist/tegel/{p-0cfe8671.entry.js → p-b82a11bf.entry.js} +1 -1
- package/dist/tegel/p-bbea0ac6.entry.js +1 -0
- package/dist/tegel/p-c0114238.entry.js +1 -0
- package/dist/tegel/p-c578be27.entry.js +1 -0
- package/dist/tegel/p-d5041602.entry.js +1 -0
- package/dist/tegel/p-dfd5a301.entry.js +1 -0
- package/dist/tegel/{p-5dd2aac8.entry.js → p-e22a2a9b.entry.js} +1 -1
- package/dist/tegel/p-e25343d7.entry.js +1 -0
- package/dist/tegel/p-e2ce7b37.entry.js +1 -0
- package/dist/tegel/p-e4d0d1cb.entry.js +1 -0
- package/dist/tegel/{p-bdc913a0.entry.js → p-e853d304.entry.js} +1 -1
- package/dist/tegel/p-eb479100.entry.js +1 -0
- package/dist/tegel/{p-3ec01fb3.entry.js → p-ec41cf1e.entry.js} +1 -1
- package/dist/tegel/p-ec60f391.entry.js +1 -0
- package/dist/tegel/p-ee227187.entry.js +1 -0
- package/dist/tegel/{p-336f2de3.entry.js → p-ee500e52.entry.js} +1 -1
- package/dist/tegel/p-f42f851e.entry.js +1 -0
- package/dist/tegel/p-f6cf2d52.entry.js +1 -0
- package/dist/tegel/tegel.css +4 -4
- package/dist/tegel/tegel.esm.js +1 -1
- package/dist/types/components/slider/slider-stories-setup.d.ts +1 -1
- package/dist/types/components/table/table-body-input-wrapper/table-body-input-wrapper.d.ts +1 -1
- package/dist/types/components/text-field/text-field.d.ts +5 -1
- package/dist/types/components.d.ts +560 -2
- package/dist/types/stencil-public-runtime.d.ts +78 -5
- package/dist/types/utils/dom.d.ts +2 -0
- package/package.json +5 -3
- package/dist/cjs/app-globals-3a1e7e63.js +0 -5
- package/dist/cjs/index-ca8040ad.js +0 -2039
- package/dist/components/p-28ef5186.js +0 -1507
- package/dist/components/p-c8dc3566.js +0 -91
- package/dist/esm/app-globals-0f993ce5.js +0 -3
- package/dist/esm/index-51d04e39.js +0 -2009
- package/dist/tegel/p-08f63e5d.entry.js +0 -1
- package/dist/tegel/p-0cac9ea6.entry.js +0 -1
- package/dist/tegel/p-177386d5.entry.js +0 -1
- package/dist/tegel/p-1859156f.entry.js +0 -1
- package/dist/tegel/p-1b471db7.entry.js +0 -1
- package/dist/tegel/p-1bbef1a5.entry.js +0 -1
- package/dist/tegel/p-1c75f8a7.entry.js +0 -1
- package/dist/tegel/p-2049fab2.js +0 -2
- package/dist/tegel/p-22b6223e.entry.js +0 -1
- package/dist/tegel/p-23fb4dee.entry.js +0 -1
- package/dist/tegel/p-25f4b4ca.entry.js +0 -1
- package/dist/tegel/p-27c2f109.entry.js +0 -1
- package/dist/tegel/p-2c9ea0be.entry.js +0 -1
- package/dist/tegel/p-303acf88.entry.js +0 -1
- package/dist/tegel/p-30901c4d.entry.js +0 -1
- package/dist/tegel/p-35293420.entry.js +0 -1
- package/dist/tegel/p-3ebe93ff.entry.js +0 -1
- package/dist/tegel/p-462a6049.entry.js +0 -1
- package/dist/tegel/p-46c9af0f.entry.js +0 -1
- package/dist/tegel/p-4a666337.entry.js +0 -1
- package/dist/tegel/p-5bca9fe7.entry.js +0 -1
- package/dist/tegel/p-601a74ad.entry.js +0 -1
- package/dist/tegel/p-614bcd4b.entry.js +0 -1
- package/dist/tegel/p-628dc7f7.entry.js +0 -1
- package/dist/tegel/p-6a615ac1.entry.js +0 -1
- package/dist/tegel/p-7013249b.entry.js +0 -1
- package/dist/tegel/p-704682d6.entry.js +0 -1
- package/dist/tegel/p-7caad569.entry.js +0 -1
- package/dist/tegel/p-7cb9790d.entry.js +0 -1
- package/dist/tegel/p-7d427dff.entry.js +0 -1
- package/dist/tegel/p-83e6e31f.entry.js +0 -1
- package/dist/tegel/p-84de314b.entry.js +0 -1
- package/dist/tegel/p-86e99fdb.entry.js +0 -1
- package/dist/tegel/p-8ae4e03c.entry.js +0 -1
- package/dist/tegel/p-8c2695af.entry.js +0 -1
- package/dist/tegel/p-9099d978.entry.js +0 -1
- package/dist/tegel/p-9b0c886e.entry.js +0 -1
- package/dist/tegel/p-9b2257f3.entry.js +0 -1
- package/dist/tegel/p-a6238890.entry.js +0 -1
- package/dist/tegel/p-a66a4a4e.entry.js +0 -1
- package/dist/tegel/p-a829417c.entry.js +0 -1
- package/dist/tegel/p-aec3e4cf.entry.js +0 -1
- package/dist/tegel/p-af63a774.entry.js +0 -1
- package/dist/tegel/p-b20f250b.entry.js +0 -1
- package/dist/tegel/p-b2b9561f.entry.js +0 -1
- package/dist/tegel/p-bb9445ff.entry.js +0 -1
- package/dist/tegel/p-bcd5e06d.entry.js +0 -1
- package/dist/tegel/p-bd935506.entry.js +0 -1
- package/dist/tegel/p-c15eba7d.entry.js +0 -1
- package/dist/tegel/p-c4f701f6.entry.js +0 -1
- package/dist/tegel/p-c61ecc8e.entry.js +0 -1
- package/dist/tegel/p-cf7af8f2.entry.js +0 -1
- package/dist/tegel/p-d184a3f0.entry.js +0 -1
- package/dist/tegel/p-debd6adc.entry.js +0 -1
- package/dist/tegel/p-e1255160.js +0 -1
- package/dist/tegel/p-f2232281.entry.js +0 -1
- package/dist/tegel/p-f4b5e80b.entry.js +0 -1
- package/dist/tegel/p-f9c17612.entry.js +0 -1
- package/loader/package.json +0 -11
- /package/dist/cjs/{dfs-84f7f63e.js → dfs-Clg9RCmq.js} +0 -0
- /package/dist/cjs/{generateUniqueId-e3fc9863.js → generateUniqueId-ComXTAM_.js} +0 -0
- /package/dist/cjs/{getAriaInvalid-66a2eade.js → getAriaInvalid-Bdg4qUb_.js} +0 -0
- /package/dist/cjs/{hasSlot-1c90e9ba.js → hasSlot-D-DVNhGg.js} +0 -0
- /package/dist/cjs/{inheritAttributes-ff9ad737.js → inheritAttributes-CGw91JfB.js} +0 -0
- /package/dist/components/{p-a1181b1f.js → p-CBZ6wC3m.js} +0 -0
- /package/dist/components/{p-3fe9cbbf.js → p-CF8bH08v.js} +0 -0
- /package/dist/components/{p-52bf0fdf.js → p-CLF3diNe.js} +0 -0
- /package/dist/components/{p-11648030.js → p-Cn4f8w1e.js} +0 -0
- /package/dist/components/{p-ae110fc2.js → p-DDX6uFcm.js} +0 -0
- /package/dist/components/{p-bbf9492a.js → p-wEP_nEaO.js} +0 -0
- /package/dist/esm/{dfs-1e574d5f.js → dfs-CLF3diNe.js} +0 -0
- /package/dist/esm/{generateUniqueId-7934d315.js → generateUniqueId-Cn4f8w1e.js} +0 -0
- /package/dist/esm/{getAriaInvalid-a9944cb9.js → getAriaInvalid-wEP_nEaO.js} +0 -0
- /package/dist/esm/{hasSlot-d52114d0.js → hasSlot-DDX6uFcm.js} +0 -0
- /package/dist/esm/{inheritAttributes-d21e267b.js → inheritAttributes-CF8bH08v.js} +0 -0
- /package/dist/tegel/{p-3fe9cbbf.js → p-CF8bH08v.js} +0 -0
- /package/dist/tegel/{p-52bf0fdf.js → p-CLF3diNe.js} +0 -0
- /package/dist/tegel/{p-11648030.js → p-Cn4f8w1e.js} +0 -0
- /package/dist/tegel/{p-ae110fc2.js → p-DDX6uFcm.js} +0 -0
- /package/dist/tegel/{p-bbf9492a.js → p-wEP_nEaO.js} +0 -0
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H,
|
|
2
|
-
import { g as generateUniqueId } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, c as createEvent, h, a as Host } from './index.js';
|
|
2
|
+
import { g as generateUniqueId } from './p-Cn4f8w1e.js';
|
|
3
3
|
|
|
4
4
|
const tableBodyRowExpandableCss = ":host{box-sizing:border-box;display:contents}:host *{box-sizing:border-box}:host .tds-table__row,:host .tds-table__row-extend{display:table-row;border-bottom:1px solid var(--tds-table-divider);background-color:var(--tds-table-body-row-background);transition:background-color 200ms ease;color:var(--tds-table-color)}:host .tds-table__row--expanded{border-bottom:none}:host .tds-table__row:hover,:host .tds-table__row-extend:hover{background-color:var(--tds-table-body-row-background-hover)}:host .tds-table__expand-control-container{display:flex;justify-content:center;align-items:center;height:46px;cursor:pointer;padding:0 16px;position:relative}:host .tds-table__expand-control-container .tds-table__expand-input{all:unset;top:0;left:0;width:100%;height:100%;position:absolute;cursor:pointer}:host .tds-table__expand-control-container .tds-table__expand-input:focus{outline:2px solid var(--tds-focus-outline-color);box-shadow:0 0 0 1px var(--tds-white);outline-offset:1px;z-index:1}:host .tds-table__expand-control-container .tds-expendable-row-icon{height:16px;width:16px;transition:transform 200ms ease;transform:rotate(0)}:host .tds-table__row-expand{display:none;transition:background-color 200ms ease}:host .tds-table__row-expand--expanded{border-bottom:1px solid var(--tds-table-divider)}:host .tds-table__row-expand .tds-table__cell-expand{max-width:1px;overflow:auto;padding:16px 16px 16px 66px;color:var(--tds-table-color)}:host .tds-table__row-expand .tds-table__cell-expand--overflow-visible{overflow:visible}:host .tds-table__row-expand .tds-table__cell-expand--overflow-hidden{overflow:hidden}:host(.tds-table__row-expand--active) .tds-table__row{background-color:var(--tds-table-body-row-background-selected)}:host(.tds-table__row-expand--active) .tds-table__expand-control-container .tds-expendable-row-icon{transform:rotate(180deg)}:host(.tds-table__row-expand--active) .tds-table__row-expand{background-color:var(--tds-table-body-row-background-selected);display:table-row}:host(.tds-table__compact) .tds-table__expand-control-container{height:30px}:host(.tds-table__compact) .tds-table__row-expand .tds-table__cell-expand{padding:8px 16px 8px 66px}:host(.tds-table__row--hidden){display:none}:host(.tds-table--divider) .tds-table__cell--expand{border-right:1px solid var(--tds-table-divider)}";
|
|
5
|
-
const TdsTableBodyRowExpandableStyle0 = tableBodyRowExpandableCss;
|
|
6
5
|
|
|
7
6
|
const relevantTableProps = [
|
|
8
7
|
'verticalDividers',
|
|
@@ -11,18 +10,27 @@ const relevantTableProps = [
|
|
|
11
10
|
'modeVariant',
|
|
12
11
|
];
|
|
13
12
|
const TdsTableBodyRowExpandable$1 = /*@__PURE__*/ proxyCustomElement(class TdsTableBodyRowExpandable extends H {
|
|
14
|
-
constructor() {
|
|
13
|
+
constructor(registerHost) {
|
|
15
14
|
super();
|
|
16
|
-
|
|
15
|
+
if (registerHost !== false) {
|
|
16
|
+
this.__registerHost();
|
|
17
|
+
}
|
|
17
18
|
this.__attachShadow();
|
|
18
19
|
this.internalTdsRowExpanded = createEvent(this, "internalTdsRowExpanded", 6);
|
|
19
20
|
this.tdsChange = createEvent(this, "tdsChange", 6);
|
|
21
|
+
/** In case that automatic count of columns does not work, user can manually set this one.
|
|
22
|
+
* Take in mind that expandable control is column too */
|
|
20
23
|
this.colSpan = null;
|
|
24
|
+
/** ID for the table row. Randomly generated if not specified. */
|
|
21
25
|
this.rowId = generateUniqueId();
|
|
22
|
-
|
|
26
|
+
/** Controls the overflow behavior of the expandable row content */
|
|
23
27
|
this.overflow = 'auto';
|
|
28
|
+
/** Sets isExpanded state to true or false internally */
|
|
29
|
+
/** Enables auto-collapse of other expandable rows when one row is expanded */
|
|
24
30
|
this.autoCollapse = false;
|
|
31
|
+
/** Aria label for the expand button, providing an accessible description */
|
|
25
32
|
this.tdsAriaLabelExpandButton = '';
|
|
33
|
+
/** Sets isExpanded state to true or fals internally */
|
|
26
34
|
this.isExpanded = false;
|
|
27
35
|
this.tableId = '';
|
|
28
36
|
this.columnsNumber = null;
|
|
@@ -102,33 +110,33 @@ const TdsTableBodyRowExpandable$1 = /*@__PURE__*/ proxyCustomElement(class TdsTa
|
|
|
102
110
|
this.sendValue();
|
|
103
111
|
}
|
|
104
112
|
render() {
|
|
105
|
-
return (h(Host, { key: '
|
|
113
|
+
return (h(Host, { key: '3d289d00082c284257728cec4f0ddcfc63dda863', class: {
|
|
106
114
|
'tds-table__row': true,
|
|
107
115
|
'tds-table__row-expand--active': this.isExpanded,
|
|
108
116
|
'tds-table__compact': this.compactDesign,
|
|
109
117
|
'tds-table--divider': this.verticalDividers,
|
|
110
|
-
} }, h("tr", { key: '
|
|
118
|
+
} }, h("tr", { key: '246ee336a3ab871346e1fcf81f02109121dc9657', id: `expandable-content-${this.rowId}`, class: {
|
|
111
119
|
'tds-table__row': true,
|
|
112
120
|
'tds-table__row--expanded': this.isExpanded,
|
|
113
|
-
}, part: "row" }, h("td", { key: '
|
|
121
|
+
}, part: "row" }, h("td", { key: 'b727b78965a4bdf0b6cf8ff7e8460d3dfae8327e', class: {
|
|
114
122
|
'tds-table__cell-expand': true,
|
|
115
|
-
} }, h("label", { key: '
|
|
123
|
+
} }, h("label", { key: 'c878be3429a3145b62b242f2e3d9c90ec0a74257', class: "tds-table__expand-control-container" }, h("input", { key: '6b99ef165e359012f83f7e298d9f83319493fc52', class: "tds-table__expand-input", type: "checkbox", onChange: (event) => this.onChangeHandler(event), checked: this.isExpanded, "aria-expanded": this.isExpanded ? 'true' : 'false', "aria-controls": `expandable-content-${this.rowId}`, "aria-label": this.tdsAriaLabelExpandButton }), h("span", { key: 'ec9e1aefc553362c0c3e15cb99118a9c2dfffd04', class: "tds-expendable-row-icon" }, h("svg", { key: '84b3270e5f1bfc7671adcea34d862fe0485f40a8', fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32" }, h("path", { key: 'fc04209a4a2d35c19c7c74875c0ab302077abbf2', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M4.273 9.783a1 1 0 0 1 1.415 0l9.888 9.888a.6.6 0 0 0 .848 0l9.888-9.888a1 1 0 1 1 1.415 1.414l-9.889 9.889a2.6 2.6 0 0 1-3.677 0l-9.888-9.889a1 1 0 0 1 0-1.414Z", fill: "currentColor" }))))), h("slot", { key: '0c16341da217fbe920241a97b179335cb61e2364' })), h("tr", { key: 'a83ca5c30ec4945dfee096a408db4d1d240d3643', class: {
|
|
116
124
|
'tds-table__row-expand': true,
|
|
117
125
|
'tds-table__row-expand--expanded': this.isExpanded,
|
|
118
|
-
}, part: "expand-row" }, h("td", { key: '
|
|
126
|
+
}, part: "expand-row" }, h("td", { key: '2fcafe17b33ce39b5e1a3b149434006a70f6b8f3', class: {
|
|
119
127
|
'tds-table__cell-expand': true,
|
|
120
128
|
'tds-table__cell-expand--overflow-hidden': this.overflow === 'hidden',
|
|
121
129
|
'tds-table__cell-expand--overflow-visible': this.overflow === 'visible',
|
|
122
|
-
}, part: "expand-row-cell", colSpan: this.columnsNumber }, h("div", { key: '
|
|
130
|
+
}, part: "expand-row-cell", colSpan: this.columnsNumber }, h("div", { key: 'b696b23d127e32a8017692b03de1ce8ee9497dcb', style: {
|
|
123
131
|
overflow: this.overflow,
|
|
124
|
-
} }, h("slot", { key: '
|
|
132
|
+
} }, h("slot", { key: 'e64e00778fd7c85618ae4cbc19d232e2acb873b5', name: "expand-row" }))))));
|
|
125
133
|
}
|
|
126
134
|
get host() { return this; }
|
|
127
135
|
static get watchers() { return {
|
|
128
136
|
"expanded": ["watchExpanded"]
|
|
129
137
|
}; }
|
|
130
|
-
static get style() { return
|
|
131
|
-
}, [
|
|
138
|
+
static get style() { return tableBodyRowExpandableCss; }
|
|
139
|
+
}, [257, "tds-table-body-row-expandable", {
|
|
132
140
|
"colSpan": [2, "col-span"],
|
|
133
141
|
"rowId": [513, "row-id"],
|
|
134
142
|
"expanded": [516],
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H,
|
|
2
|
-
import { d as defineCustomElement$2 } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, c as createEvent, h, a as Host } from './index.js';
|
|
2
|
+
import { d as defineCustomElement$2 } from './p-Ca3wGDna.js';
|
|
3
3
|
|
|
4
4
|
const tableBodyRowCss = ":host(.tds-table__row){box-sizing:border-box;display:table-row;border-bottom:1px solid var(--tds-table-divider);background-color:var(--tds-table-body-row-background);transition:background-color 200ms ease;color:var(--tds-table-color)}:host(.tds-table__row) *{box-sizing:border-box}:host(.tds-table__row) .tds-table__body-cell--checkbox{min-width:48px;width:48px;padding:0}:host(.tds-table__row:hover){border-bottom:1px solid var(--tds-table-divider-hover)}:host(.tds-table__row:hover){background-color:var(--tds-table-body-row-background-hover)}:host(.tds-table__row--selected){background-color:var(--tds-table-body-row-background-selected)}:host(.tds-table__row--selected:hover){background-color:var(--tds-table-body-row-background-selected-hover)}:host(.tds-table__row--hidden){display:none}:host(.tds-table__row--expended){width:100%;background-color:pink}:host .tds-form-label--table{width:100%;height:48px;display:flex;justify-content:center;align-items:center;cursor:pointer}:host(.tds-table__compact) .tds-form-label--table{height:32px}:host(.tds-table--divider) .tds-table__body-cell--checkbox{border-right:1px solid var(--tds-table-divider)}:host(.tds-table__row--clickable){cursor:pointer}:host(.tds-table__row--clickable:focus-visible){outline:var(--focus-outline, 2px solid blue)}";
|
|
5
|
-
const TdsTableBodyRowStyle0 = tableBodyRowCss;
|
|
6
5
|
|
|
7
6
|
const relevantTableProps = [
|
|
8
7
|
'multiselect',
|
|
@@ -10,14 +9,19 @@ const relevantTableProps = [
|
|
|
10
9
|
'compactDesign',
|
|
11
10
|
];
|
|
12
11
|
const TdsTableBodyRow$1 = /*@__PURE__*/ proxyCustomElement(class TdsTableBodyRow extends H {
|
|
13
|
-
constructor() {
|
|
12
|
+
constructor(registerHost) {
|
|
14
13
|
super();
|
|
15
|
-
|
|
14
|
+
if (registerHost !== false) {
|
|
15
|
+
this.__registerHost();
|
|
16
|
+
}
|
|
16
17
|
this.__attachShadow();
|
|
17
18
|
this.tdsSelect = createEvent(this, "tdsSelect", 6);
|
|
18
19
|
this.tdsClick = createEvent(this, "tdsClick", 6);
|
|
20
|
+
/** Marks the row as selected, used for multiselect table. */
|
|
19
21
|
this.selected = false;
|
|
22
|
+
/** Marks the row as disabled, used for multiselect table. */
|
|
20
23
|
this.disabled = false;
|
|
24
|
+
/** Makes the row clickable and tabbable for accessibility purposes. */
|
|
21
25
|
this.clickable = false;
|
|
22
26
|
this.multiselect = false;
|
|
23
27
|
this.mainCheckBoxStatus = false;
|
|
@@ -75,17 +79,17 @@ const TdsTableBodyRow$1 = /*@__PURE__*/ proxyCustomElement(class TdsTableBodyRow
|
|
|
75
79
|
}
|
|
76
80
|
}
|
|
77
81
|
render() {
|
|
78
|
-
return (h(Host, { key: '
|
|
82
|
+
return (h(Host, { key: '6bf3fee7c066bc4686c9aa0ecba45c04ca7b2aae', tabindex: this.clickable ? '0' : null, class: {
|
|
79
83
|
'tds-table__row': true,
|
|
80
84
|
'tds-table__row--selected': this.selected,
|
|
81
85
|
'tds-table__compact': this.compactDesign,
|
|
82
86
|
'tds-table--divider': this.verticalDividers,
|
|
83
87
|
'tds-table__row--clickable': this.clickable,
|
|
84
|
-
}, onClick: (e) => this.handleRowClick(e), onKeyDown: (e) => this.handleKeyDown(e), role: "row" }, this.multiselect && (h("td", { key: '
|
|
88
|
+
}, onClick: (e) => this.handleRowClick(e), onKeyDown: (e) => this.handleKeyDown(e), role: "row" }, this.multiselect && (h("td", { key: '845e64408b938254887c7ec840eae48fc4ed01e3', class: "tds-table__body-cell tds-table__body-cell--checkbox tds-form-label tds-form-label--table" }, h("tds-checkbox", { key: '817ef05632a9b2704148a0c9ce190b360b9cec3b', onTdsChange: (event) => this.handleCheckboxChange(event), checked: this.selected, disabled: this.disabled }))), h("slot", { key: '50cf1a5aeae24aaceeb813f432abe8e75ad53857' })));
|
|
85
89
|
}
|
|
86
90
|
get host() { return this; }
|
|
87
|
-
static get style() { return
|
|
88
|
-
}, [
|
|
91
|
+
static get style() { return tableBodyRowCss; }
|
|
92
|
+
}, [257, "tds-table-body-row", {
|
|
89
93
|
"selected": [516],
|
|
90
94
|
"disabled": [516],
|
|
91
95
|
"clickable": [516],
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, h,
|
|
1
|
+
import { p as proxyCustomElement, H, h, a as Host } from './index.js';
|
|
2
2
|
|
|
3
3
|
const tableBodyCss = ":host,tds-table-body{box-sizing:border-box;display:table-row-group}:host *,tds-table-body *{box-sizing:border-box}:host .tds-table__info-message,tds-table-body .tds-table__info-message{font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);display:table-cell;box-sizing:border-box;color:var(--tds-table-color);padding:var(--tds-spacing-element-16);min-width:192px;vertical-align:top;background-color:transparent;transition:background-color 200ms ease}tds-table-body.tds-table--zebra-mode-rows-odd tds-table-body-row:nth-child(odd){background-color:var(--tds-table-zebra-mode-backround)}tds-table-body.tds-table--zebra-mode-rows-odd tds-table-body-row:nth-child(odd):hover{background-color:var(--tds-table-body-row-background-hover)}tds-table-body.tds-table--zebra-mode-rows-even tds-table-body-row:nth-child(even){background-color:var(--tds-table-zebra-mode-backround)}tds-table-body.tds-table--zebra-mode-rows-even tds-table-body-row:nth-child(even):hover{background-color:var(--tds-table-body-row-background-hover)}tds-table-body.tds-table--zebra-mode-columns-odd tds-body-cell:nth-child(odd){background-color:var(--tds-table-zebra-mode-backround)}tds-table-body.tds-table--zebra-mode-columns-odd tds-body-cell.tds-table__body-cell--hover:nth-child(odd){background-color:var(--tds-table-body-cell-background-hover)}tds-table-body.tds-table--zebra-mode-columns-even tds-body-cell:nth-child(even){background-color:var(--tds-table-zebra-mode-backround)}tds-table-body.tds-table--zebra-mode-columns-even tds-body-cell.tds-table__body-cell--hover:nth-child(even){background-color:var(--tds-table-body-cell-background-hover)}tds-table-body.tds-table--zebra-mode-columns-even tds-table-body-row:hover tds-body-cell,tds-table-body.tds-table--zebra-mode-columns-odd tds-table-body-row:hover tds-body-cell{background-color:transparent}";
|
|
4
|
-
const TdsTableBodyStyle0 = tableBodyCss;
|
|
5
4
|
|
|
6
5
|
const relevantTableProps = [
|
|
7
6
|
'multiselect',
|
|
@@ -9,23 +8,24 @@ const relevantTableProps = [
|
|
|
9
8
|
'zebraMode',
|
|
10
9
|
];
|
|
11
10
|
const TdsTableBody$1 = /*@__PURE__*/ proxyCustomElement(class TdsTableBody extends H {
|
|
12
|
-
constructor() {
|
|
11
|
+
constructor(registerHost) {
|
|
13
12
|
super();
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const numberOfRowsSelected = this.host.getElementsByClassName('tds-table__row--selected').length;
|
|
18
|
-
this.mainCheckboxStatus = numberOfRows === numberOfRowsSelected;
|
|
19
|
-
};
|
|
13
|
+
if (registerHost !== false) {
|
|
14
|
+
this.__registerHost();
|
|
15
|
+
}
|
|
20
16
|
this.multiselect = false;
|
|
21
17
|
this.enablePaginationTableBody = false;
|
|
22
18
|
this.expandableRows = false;
|
|
23
19
|
this.multiselectArray = [];
|
|
24
|
-
this.multiselectArrayJSON = undefined;
|
|
25
20
|
this.mainCheckboxStatus = false;
|
|
26
21
|
this.columnsNumber = 0;
|
|
27
22
|
this.zebraMode = 'none';
|
|
28
23
|
this.tableId = '';
|
|
24
|
+
this.bodyCheckBoxClicked = () => {
|
|
25
|
+
const numberOfRows = this.host.getElementsByClassName('tds-table__row').length;
|
|
26
|
+
const numberOfRowsSelected = this.host.getElementsByClassName('tds-table__row--selected').length;
|
|
27
|
+
this.mainCheckboxStatus = numberOfRows === numberOfRowsSelected;
|
|
28
|
+
};
|
|
29
29
|
}
|
|
30
30
|
internalTdsPropChangeListener(event) {
|
|
31
31
|
if (this.tableId === event.detail.tableId) {
|
|
@@ -63,16 +63,16 @@ const TdsTableBody$1 = /*@__PURE__*/ proxyCustomElement(class TdsTableBody exten
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
render() {
|
|
66
|
-
return (h(Host, { key: '
|
|
66
|
+
return (h(Host, { key: 'f9472ae9b1dcad43aab101811dfe858dea4851e9', "data-selected-rows": this.multiselectArrayJSON, class: {
|
|
67
67
|
'tds-table--zebra-mode-rows-odd': this.zebraMode === 'rows-odd',
|
|
68
68
|
'tds-table--zebra-mode-rows-even': this.zebraMode === 'rows-even',
|
|
69
69
|
'tds-table--zebra-mode-columns-odd': this.zebraMode === 'columns-odd',
|
|
70
70
|
'tds-table--zebra-mode-columns-even': this.zebraMode === 'columns-even',
|
|
71
|
-
} }, h("slot", { key: '
|
|
71
|
+
} }, h("slot", { key: '61a0ec649d2f7f51ca386c46335a6ae018c993d0' })));
|
|
72
72
|
}
|
|
73
73
|
get host() { return this; }
|
|
74
|
-
static get style() { return
|
|
75
|
-
}, [
|
|
74
|
+
static get style() { return tableBodyCss; }
|
|
75
|
+
}, [260, "tds-table-body", {
|
|
76
76
|
"multiselect": [32],
|
|
77
77
|
"enablePaginationTableBody": [32],
|
|
78
78
|
"expandableRows": [32],
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H,
|
|
2
|
-
import { d as defineCustomElement$5 } from './p-
|
|
3
|
-
import { d as defineCustomElement$4 } from './p-
|
|
4
|
-
import { d as defineCustomElement$3 } from './p-
|
|
5
|
-
import { d as defineCustomElement$2 } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, c as createEvent, h, a as Host } from './index.js';
|
|
2
|
+
import { d as defineCustomElement$5 } from './p-Ca3wGDna.js';
|
|
3
|
+
import { d as defineCustomElement$4 } from './p-BiyghEA7.js';
|
|
4
|
+
import { d as defineCustomElement$3 } from './p-Ee9QeMgy.js';
|
|
5
|
+
import { d as defineCustomElement$2 } from './p-CPDv0bBc.js';
|
|
6
6
|
|
|
7
7
|
const tableFooterCss = ":host{box-sizing:border-box;display:table-footer-group;height:var(--tds-spacing-element-48)}:host *{box-sizing:border-box}:host .tds-table__footer-row{background-color:var(--tds-table-footer-background);color:var(--tds-table-color)}:host .tds-table__footer-cell{padding:0 var(--tds-spacing-element-16)}:host .tds-table__footer-cell .tds-table__pagination{height:var(--tds-spacing-element-48);display:flex;align-items:center;justify-content:space-between}:host .tds-table__footer-cell .tds-table__pagination .tds-table__row-selector,:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector{display:flex;align-items:center}:host .tds-table__footer-cell .tds-table__pagination .tds-table__row-selector .rows-per-page,:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector .rows-per-page{display:flex;align-items:center;margin-right:var(--tds-spacing-element-16)}:host .tds-table__footer-cell .tds-table__pagination .tds-table__row-selector .rows-per-page p,:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector .rows-per-page p{margin-right:var(--tds-spacing-element-8)}:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector-input{font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);background-color:var(--tds-table-footer-page-selector-input-background);color:var(--tds-table-color);width:74px;height:30px;border:none;border-radius:var(--tds-spacing-element-4);transition:background-color 250ms ease;margin-right:var(--tds-spacing-element-4);padding-left:var(--tds-spacing-element-16)}:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector-input:hover{background-color:var(--tds-table-footer-page-selector-input-background-hover)}:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector-input:disabled{color:var(--tds-table-footer-page-selector-input-color-disabled)}:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector-input--shake{animation:tds-shake-animation 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;transform:translate3d(0, 0, 0);backface-visibility:hidden;perspective:1000px}:host .tds-table__footer-cell .tds-table__pagination .tds-table__footer-text{font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);padding:1px 8px 0 0}:host .tds-table__footer-cell .tds-table__pagination .tds-table__footer-btn{display:flex;justify-content:center;align-items:center;border:none;background-color:transparent;cursor:pointer;height:var(--tds-spacing-element-32);width:var(--tds-spacing-element-32);border-radius:var(--tds-spacing-element-4);transition:background-color 250ms ease;color:var(--tds-table-footer-page-selector-icon)}:host .tds-table__footer-cell .tds-table__pagination .tds-table__footer-btn:hover{background-color:var(--tds-table-footer-btn-hover)}:host .tds-table__footer-cell .tds-table__pagination .tds-table__footer-btn:disabled{cursor:default;color:var(--tds-table-footer-page-selector-icon-disabled)}:host .tds-table__footer-cell .tds-table__pagination .tds-table__footer-btn:disabled:hover{background-color:transparent}:host .tds-table__footer-cell .tds-table__pagination .tds-table__footer-btn-svg{height:var(--tds-spacing-element-20);width:var(--tds-spacing-element-20);fill:var(--tds-table-color)}:host(.tds-table--compact){height:var(--tds-spacing-element-32)}:host(.tds-table--compact) .tds-table__footer-cell .tds-table__pagination{height:var(--tds-spacing-element-32)}:host(.tds-table--compact) .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector-input{height:var(--tds-spacing-element-24)}:host(.tds-table--compact) .tds-table__footer-cell .tds-table__pagination .tds-table__footer-btn{height:28px;width:28px}:host(.footer__horizontal-scroll){display:inline-table;position:absolute;margin-top:10px}@keyframes tds-shake-animation{10%,90%{transform:translate3d(-1px, 0, 0)}20%,80%{transform:translate3d(2px, 0, 0)}30%,50%,70%{transform:translate3d(-4px, 0, 0)}40%,60%{transform:translate3d(4px, 0, 0)}}";
|
|
8
|
-
const TdsTableFooterStyle0 = tableFooterCss;
|
|
9
8
|
|
|
10
9
|
const relevantTableProps = [
|
|
11
10
|
'compactDesign',
|
|
@@ -15,11 +14,32 @@ function removeShakeAnimation(e) {
|
|
|
15
14
|
e.target.classList.remove('tds-table__page-selector-input--shake');
|
|
16
15
|
}
|
|
17
16
|
const TdsTableFooter$1 = /*@__PURE__*/ proxyCustomElement(class TdsTableFooter extends H {
|
|
18
|
-
constructor() {
|
|
17
|
+
constructor(registerHost) {
|
|
19
18
|
super();
|
|
20
|
-
|
|
19
|
+
if (registerHost !== false) {
|
|
20
|
+
this.__registerHost();
|
|
21
|
+
}
|
|
21
22
|
this.__attachShadow();
|
|
22
23
|
this.tdsPagination = createEvent(this, "tdsPagination", 7);
|
|
24
|
+
/** Enable pagination and show pagination controls */
|
|
25
|
+
this.pagination = false;
|
|
26
|
+
/** Sets the pagination number. */
|
|
27
|
+
this.paginationValue = 1;
|
|
28
|
+
/** Enable rows per page dropdown */
|
|
29
|
+
this.rowsperpage = true;
|
|
30
|
+
/** Set available rows per page values */
|
|
31
|
+
this.rowsPerPageValues = [10, 25, 50];
|
|
32
|
+
/** Sets the number of pages. */
|
|
33
|
+
this.pages = null;
|
|
34
|
+
/** <b>Client override</b> Used to set the column span of the footer. Use as fallback if the automatic count of columns fails. */
|
|
35
|
+
this.cols = null;
|
|
36
|
+
/** State that memorize number of columns to display colSpan correctly - set from parent level */
|
|
37
|
+
this.columnsNumber = 0;
|
|
38
|
+
/* Sets the footer to use compact design. */
|
|
39
|
+
this.compactDesign = false;
|
|
40
|
+
this.tableId = '';
|
|
41
|
+
this.horizontalScrollWidth = null;
|
|
42
|
+
this.rowsPerPageValue = this.rowsPerPageValues[0];
|
|
23
43
|
this.emitTdsPagination = () => {
|
|
24
44
|
if (this.rowsperpage) {
|
|
25
45
|
this.tdsPagination.emit({
|
|
@@ -63,18 +83,6 @@ const TdsTableFooter$1 = /*@__PURE__*/ proxyCustomElement(class TdsTableFooter e
|
|
|
63
83
|
this.emitTdsPagination();
|
|
64
84
|
this.storeLastCorrectValue(this.paginationValue);
|
|
65
85
|
};
|
|
66
|
-
this.pagination = false;
|
|
67
|
-
this.paginationValue = 1;
|
|
68
|
-
this.rowsperpage = true;
|
|
69
|
-
this.rowsPerPageValues = [10, 25, 50];
|
|
70
|
-
this.pages = null;
|
|
71
|
-
this.cols = null;
|
|
72
|
-
this.columnsNumber = 0;
|
|
73
|
-
this.compactDesign = false;
|
|
74
|
-
this.lastCorrectValue = undefined;
|
|
75
|
-
this.tableId = '';
|
|
76
|
-
this.horizontalScrollWidth = null;
|
|
77
|
-
this.rowsPerPageValue = this.rowsPerPageValues[0];
|
|
78
86
|
}
|
|
79
87
|
internalTdsPropChangeListener(event) {
|
|
80
88
|
if (this.tableId === event.detail.tableId) {
|
|
@@ -139,16 +147,16 @@ const TdsTableFooter$1 = /*@__PURE__*/ proxyCustomElement(class TdsTableFooter e
|
|
|
139
147
|
}
|
|
140
148
|
render() {
|
|
141
149
|
var _a;
|
|
142
|
-
return (h(Host, { key: '
|
|
150
|
+
return (h(Host, { key: 'd064beda251b663ad3afccebc98fb4718e3f1d09', class: {
|
|
143
151
|
'tds-table--compact': this.compactDesign,
|
|
144
152
|
'footer__horizontal-scroll': !!this.horizontalScrollWidth,
|
|
145
|
-
}, style: this.getStyles() }, h("tr", { key: '
|
|
153
|
+
}, style: this.getStyles() }, h("tr", { key: '02d6c97e498e44ad70c86fd08cc665a8b89e2a07', class: "tds-table__footer-row" }, h("td", { key: 'e9d64ea0f3be240867d886973a40c557fe9899da', class: "tds-table__footer-cell", colSpan: this.columnsNumber }, this.pagination && (h("div", { key: '4a8f3f921a4e103a1a14e368a4702cd8f6ceb18b', class: "tds-table__pagination" }, h("div", { key: 'c536fb9916071677bf20f033ebb184d469aa0774', class: "tds-table__row-selector" }, this.rowsperpage && ((_a = this.rowsPerPageValues) === null || _a === void 0 ? void 0 : _a.length) > 0 && (h("div", { key: '5a935d6c92a574e1ea0a081e955916526ec9da45', class: "rows-per-page" }, h("p", { key: 'ae9f908bc6803a814236a56e5801857a1989df54' }, "Rows per page"), h("tds-dropdown", { key: '1bcac2201accc7d613250c8f38b77ddc04bfb463', modeVariant: "secondary", id: "rows-dropdown", class: "page-dropdown", size: "xs", defaultValue: `${this.rowsPerPageValues[0]}`, onTdsChange: (event) => this.rowsPerPageChange(event) }, this.rowsPerPageValues.map((value) => {
|
|
146
154
|
return (h("tds-dropdown-option", { value: `${value}` }, value));
|
|
147
|
-
}))))), h("div", { key: '
|
|
155
|
+
}))))), h("div", { key: '08f90bbe4dd64812b95de4be540c65afea1a5d7c', class: "tds-table__page-selector" }, h("input", { key: '4e780ad0a24f39df03edc044d110b6278589a61a', 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: '538690df3c6bef86bf14fe8b7c967b89257e5cb7', class: "tds-table__footer-text" }, "of ", h("span", { key: 'ec38ac0b07103bea8aec7ba3e7e88d73c2a756cb' }, this.pages), " pages"), h("button", { key: 'f196e4b87144a6e66a6a3d0451ca0d4ba32bd1af', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue <= 1, onClick: () => this.firstPage() }, h("tds-icon", { key: '80041ff46837e3ba072b740cf79d1cf9bbf21b63', name: "skip_backwards", size: "20px" })), h("button", { key: 'c51d570daeb97dbe2cae4e344eb51b97d88bb10a', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue <= 1, onClick: () => this.previousPage() }, h("tds-icon", { key: 'bc02c69dc75f412fac63d952458d0ea06530593c', name: "chevron_left", size: "20px" })), h("button", { key: 'df29a47121d892642b24533a0e132d1f2d13d545', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue >= this.pages, onClick: () => this.nextPage() }, h("tds-icon", { key: 'b2ae455a7a62c647f5c79cfc8f41bcae4b41b12d', name: "chevron_right", size: "20px" })), h("button", { key: 'd333d73217b7ed86841810bd342e2dd3152ef560', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue >= this.pages, onClick: () => this.lastPage() }, h("tds-icon", { key: '9d94abd5c17bc50b6a33c21dcc74b2689d514f2a', name: "skip_forward", size: "20px" })))))))));
|
|
148
156
|
}
|
|
149
157
|
get host() { return this; }
|
|
150
|
-
static get style() { return
|
|
151
|
-
}, [
|
|
158
|
+
static get style() { return tableFooterCss; }
|
|
159
|
+
}, [257, "tds-table-footer", {
|
|
152
160
|
"pagination": [516],
|
|
153
161
|
"paginationValue": [1538, "pagination-value"],
|
|
154
162
|
"rowsperpage": [516],
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, h,
|
|
2
|
-
import { d as defineCustomElement$2 } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, h, a as Host } from './index.js';
|
|
2
|
+
import { d as defineCustomElement$2 } from './p-CPDv0bBc.js';
|
|
3
3
|
|
|
4
4
|
const tableHeaderInputWrapperCss = ":host{position:relative}:host(:hover) tds-icon{display:inline-block}:host(.focused-input-wrapper) tds-icon{display:inline-block}:host(.focused-input-wrapper) ::slotted(input:not(:focus)){background-color:var(--tds-table-input-background-hover)}:host(.show-icon) ::slotted(input){padding-left:35px}tds-icon.search-icon{color:var(--tds-table-input-header-icon);position:absolute;left:15px;top:1px}::slotted(input){box-sizing:border-box;font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);color:var(--tds-table-color);padding-left:var(--tds-spacing-element-16);padding-right:var(--tds-spacing-element-16);height:48px;border-radius:0;background-color:transparent;border:0;border-bottom:2px solid transparent}::slotted(input)::placeholder{color:var(--tds-table-input-header-placeholder)}::slotted(input:focus){outline:none;background-color:var(--tds-table-input-header-background-focus);border-bottom:2px solid var(--tds-text-field-bar)}:host(.tds-table__compact) ::slotted(input){height:32px;}";
|
|
5
|
-
const TdsTableHeaderInputWrapperStyle0 = tableHeaderInputWrapperCss;
|
|
6
5
|
|
|
7
6
|
const relevantTableProps = ['compactDesign'];
|
|
8
7
|
const TdsTableHeaderInputWrapper$1 = /*@__PURE__*/ proxyCustomElement(class TdsTableHeaderInputWrapper extends H {
|
|
9
|
-
constructor() {
|
|
8
|
+
constructor(registerHost) {
|
|
10
9
|
super();
|
|
11
|
-
|
|
10
|
+
if (registerHost !== false) {
|
|
11
|
+
this.__registerHost();
|
|
12
|
+
}
|
|
12
13
|
this.__attachShadow();
|
|
14
|
+
/** Controls if the search icon is shown */
|
|
13
15
|
this.showIcon = true;
|
|
14
16
|
this.renderSlot = true;
|
|
15
17
|
this.inputFocused = false;
|
|
@@ -71,15 +73,15 @@ const TdsTableHeaderInputWrapper$1 = /*@__PURE__*/ proxyCustomElement(class TdsT
|
|
|
71
73
|
}
|
|
72
74
|
}
|
|
73
75
|
render() {
|
|
74
|
-
return (h(Host, { key: '
|
|
76
|
+
return (h(Host, { key: '62070c88b54c313b2db10890023db32f0eaf66b5', class: {
|
|
75
77
|
'focused-input-wrapper': this.inputFocused,
|
|
76
78
|
'show-icon': this.showIcon,
|
|
77
79
|
'tds-table__compact': this.compactDesign,
|
|
78
80
|
} }, this.renderSlot ? h("slot", { onSlotchange: () => this.handleSlotChange() }) : null, this.showIcon ? (h("tds-icon", { svgTitle: "search", class: "search-icon", slot: "icon", size: "16px", name: "search" })) : null));
|
|
79
81
|
}
|
|
80
82
|
get host() { return this; }
|
|
81
|
-
static get style() { return
|
|
82
|
-
}, [
|
|
83
|
+
static get style() { return tableHeaderInputWrapperCss; }
|
|
84
|
+
}, [257, "tds-table-header-input-wrapper", {
|
|
83
85
|
"showIcon": [4, "show-icon"],
|
|
84
86
|
"compactDesign": [4, "compact-design"],
|
|
85
87
|
"renderSlot": [32],
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H,
|
|
2
|
-
import { d as defineCustomElement$2 } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, c as createEvent, h, a as Host } from './index.js';
|
|
2
|
+
import { d as defineCustomElement$2 } from './p-Ca3wGDna.js';
|
|
3
3
|
|
|
4
4
|
const tableHeaderCss = ":host{box-sizing:border-box;display:table-header-group}:host *{box-sizing:border-box}:host .tds-table__header-cell--checkbox{font:var(--tds-headline-07);letter-spacing:var(--tds-headline-07-ls);display:table-cell;text-align:left;color:var(--tds-table-color);background-color:var(--tds-table-header-background);border-bottom:1px solid var(--tds-table-divider);height:48px;box-sizing:border-box;overflow:hidden;transition:background-color 200ms ease;min-width:unset;width:48px;padding:0;border-top-left-radius:4px}:host .tds-form-label--table{width:100%;height:48px;display:flex;justify-content:center;align-items:center;cursor:pointer}:host .tds-table__expand-control-container{display:flex;justify-content:center;align-items:center;height:48px;cursor:pointer}:host .tds-table__expand-control-container .tds-table__expand-input{display:none}:host .tds-table__expand-control-container .tds-expandable-row-icon{height:20px;width:20px;transition:transform 200ms ease;transform:rotate(0)}:host .tds-table__expand-control-container .tds-expandable-row-icon--opened{transform:rotate(180deg)}:host ::slotted(tds-header-cell:hover){background-color:var(--tds-table-header-background-hover)}:host(.tds-table--compact) .tds-table__header-cell--checkbox{height:32px}:host(.tds-table--compact) .tds-form-label--table{height:32px}:host(.tds-table--divider) .tds-table__header-cell--checkbox{border-right:1px solid var(--tds-table-divider)}:host(.tds-table--toolbar-available) .tds-table__header-cell--checkbox{border-top-left-radius:0}";
|
|
5
|
-
const TdsTableHeaderStyle0 = tableHeaderCss;
|
|
6
5
|
|
|
7
6
|
const relevantTableProps = [
|
|
8
7
|
'multiselect',
|
|
@@ -12,14 +11,18 @@ const relevantTableProps = [
|
|
|
12
11
|
'noMinWidth',
|
|
13
12
|
];
|
|
14
13
|
const TdsTableHeaderRow = /*@__PURE__*/ proxyCustomElement(class TdsTableHeaderRow extends H {
|
|
15
|
-
constructor() {
|
|
14
|
+
constructor(registerHost) {
|
|
16
15
|
super();
|
|
17
|
-
|
|
16
|
+
if (registerHost !== false) {
|
|
17
|
+
this.__registerHost();
|
|
18
|
+
}
|
|
18
19
|
this.__attachShadow();
|
|
19
20
|
this.tdsSelectAll = createEvent(this, "tdsSelectAll", 6);
|
|
21
|
+
/** @deprecated Deprecated, use selected instead. */
|
|
20
22
|
this.allSelected = false;
|
|
21
|
-
|
|
23
|
+
/** Prop for controlling the enabled/disabled state of the "All selected"-checkbox. */
|
|
22
24
|
this.disabled = false;
|
|
25
|
+
/** Prop for controlling the indeterminate state of the "All selected"-checkbox. */
|
|
23
26
|
this.indeterminate = false;
|
|
24
27
|
this.multiselect = false;
|
|
25
28
|
this.expandableRows = false;
|
|
@@ -88,15 +91,15 @@ const TdsTableHeaderRow = /*@__PURE__*/ proxyCustomElement(class TdsTableHeaderR
|
|
|
88
91
|
});
|
|
89
92
|
}
|
|
90
93
|
render() {
|
|
91
|
-
return (h(Host, { key: '
|
|
94
|
+
return (h(Host, { key: '6c1cc431846a627cab836e62a551f9f5d6558a9d', class: {
|
|
92
95
|
'tds-table--compact': this.compactDesign,
|
|
93
96
|
'tds-table--divider': this.verticalDividers,
|
|
94
97
|
'tds-table--toolbar-available': this.enableToolbarDesign,
|
|
95
|
-
} }, h("tr", { key: '
|
|
98
|
+
} }, h("tr", { key: 'fe66a0019ffef72437ef0312e07d8e23b0c8f728' }, this.multiselect && (h("th", { key: 'a132d706ef3650e6909a2b1bd90ed51b53a8fe02', class: "tds-table__header-cell tds-table__header-cell--checkbox" }, h("div", { key: 'a4a62796419d0f77a9a9b035a2493ec7cc184e9f', class: "tds-form-label tds-form-label--table" }, h("tds-checkbox", { key: '2b9e308d8098b8e2825936f6ff2ab0e1ec0e8897', checked: this.allSelected || this.selected, disabled: this.disabled, indeterminate: this.indeterminate, onTdsChange: (event) => this.handleCheckboxChange(event) })))), this.expandableRows && (h("th", { key: '916a17bb35705db77de44bee119c579dd55c2d8f', class: "tds-table__header-cell tds-table__header-cell--checkbox" })), h("slot", { key: '79d44597fcb6fa6d2e94197c57a1c9dded7e9f3d' }))));
|
|
96
99
|
}
|
|
97
100
|
get host() { return this; }
|
|
98
|
-
static get style() { return
|
|
99
|
-
}, [
|
|
101
|
+
static get style() { return tableHeaderCss; }
|
|
102
|
+
}, [257, "tds-table-header", {
|
|
100
103
|
"allSelected": [1540, "all-selected"],
|
|
101
104
|
"selected": [1540],
|
|
102
105
|
"disabled": [1540],
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H,
|
|
2
|
-
import { d as defineCustomElement$2 } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, c as createEvent, h, a as Host } from './index.js';
|
|
2
|
+
import { d as defineCustomElement$2 } from './p-CPDv0bBc.js';
|
|
3
3
|
|
|
4
4
|
const tableToolbarCss = ":host{box-sizing:border-box;display:table-caption;position:relative;background-color:var(--tds-table-toolbar-background);color:var(--tds-table-color);padding:0 var(--tds-spacing-element-16);height:64px;border-top-left-radius:4px;border-top-right-radius:4px}:host *{box-sizing:border-box}:host .tds-table__upper-bar-flex{width:100%;height:100%;display:flex;justify-content:space-between}:host .tds-table__actionbar-left{display:flex}:host .tds-table__title{font:var(--tds-headline-07);letter-spacing:var(--tds-headline-07-ls);padding-top:var(--tds-spacing-element-16);text-align:left;margin-right:var(--tds-spacing-element-8)}:host .tds-table__actionbar,:host slot[name=end]::slotted(*),:host slot[name=start]::slotted(*){display:flex;align-self:center}:host .tds-table__searchbar{display:flex;align-self:center;position:relative;height:40px;width:40px;border-radius:4px 4px 0 0;transition:background-color 250ms ease, width 250ms ease;overflow:hidden;background-color:transparent}:host .tds-table__searchbar::after{content:\"\";width:100%;height:2px;position:absolute;bottom:0;background-color:var(--tds-blue-400);transform:scaleX(0);transition:transform 150ms ease}:host .tds-table__searchbar:focus-within::after{transform:scaleX(100%)}:host .tds-table__searchbar:focus-within,:host .tds-table__searchbar.tds-table__searchbar--active{width:208px;background-color:var(--tds-table-toolbar-searchbar-background)}:host .tds-table__searchbar:focus-within:hover,:host .tds-table__searchbar.tds-table__searchbar--active:hover{background-color:var(--tds-table-toolbar-searchbar-background)}:host .tds-table__searchbar .tds-table__searchbar-input{font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);color:var(--tds-table-color);z-index:1;width:100%;height:100%;border:none;padding:0 36px 0 16px;background-color:transparent;outline:none;cursor:pointer}:host .tds-table__searchbar .tds-table__searchbar-input :focus{background-color:var(--tds-table-toolbar-searchbar-background)}:host .tds-table__searchbar:hover{background-color:var(--tds-table-toolbar-searchbar-background-hover)}:host .tds-table__searchbar .tds-table__searchbar-icon{z-index:0;position:absolute;right:9px;top:9px;width:20px;height:20px}:host(.toolbar__horizontal-scroll){position:absolute;top:var(--tds-spacing-element-16)}:host(.tds-table--compact){height:56px}";
|
|
5
|
-
const TdsTableToolbarStyle0 = tableToolbarCss;
|
|
6
5
|
|
|
7
6
|
const relevantTableProps = [
|
|
8
7
|
'compactDesign',
|
|
@@ -11,13 +10,18 @@ const relevantTableProps = [
|
|
|
11
10
|
'horizontalScrollWidth',
|
|
12
11
|
];
|
|
13
12
|
const TdsTableToolbar$1 = /*@__PURE__*/ proxyCustomElement(class TdsTableToolbar extends H {
|
|
14
|
-
constructor() {
|
|
13
|
+
constructor(registerHost) {
|
|
15
14
|
super();
|
|
16
|
-
|
|
15
|
+
if (registerHost !== false) {
|
|
16
|
+
this.__registerHost();
|
|
17
|
+
}
|
|
17
18
|
this.__attachShadow();
|
|
18
19
|
this.tdsFilter = createEvent(this, "tdsFilter", 7);
|
|
20
|
+
/** Adds title to the Table */
|
|
19
21
|
this.tableTitle = '';
|
|
22
|
+
/** Enables preview of searchbar */
|
|
20
23
|
this.filter = false;
|
|
24
|
+
/** Aria label for the search input, providing an accessible description */
|
|
21
25
|
this.tdsSearchAriaLabel = '';
|
|
22
26
|
this.verticalDividers = false;
|
|
23
27
|
this.compactDesign = false;
|
|
@@ -73,14 +77,14 @@ const TdsTableToolbar$1 = /*@__PURE__*/ proxyCustomElement(class TdsTableToolbar
|
|
|
73
77
|
return styles;
|
|
74
78
|
}
|
|
75
79
|
render() {
|
|
76
|
-
return (h(Host, { key: '
|
|
80
|
+
return (h(Host, { key: 'e7ce21fcad3bfbc9f93088f777855baa9c6e3869', class: {
|
|
77
81
|
'tds-table--compact': this.compactDesign,
|
|
78
82
|
'toolbar__horizontal-scroll': !!this.horizontalScrollWidth,
|
|
79
|
-
}, style: this.getStyles(), "aria-labelledby": "table-toolbar-title" }, h("div", { key: '
|
|
83
|
+
}, style: this.getStyles(), "aria-labelledby": "table-toolbar-title" }, h("div", { key: '7310ec2851d440ba6529eb2d48bb20bcb508429f', class: "tds-table__upper-bar-flex" }, h("div", { key: '5b901252d433968edb04de20a25ea9c09bb39b4b', class: "tds-table__actionbar-left" }, this.tableTitle && (h("caption", { key: '661f8de9fe38cd72b098251b027c7e6f554033e5', id: "table-toolbar-title", class: "tds-table__title" }, this.tableTitle)), h("slot", { key: '8d00d01e2ac92c75f95dc6ae89e7b8769cde6dc1', name: "start" })), h("div", { key: 'fd28cb512ed5ad997cdb1f0b1dff8f7489f95db5', class: "tds-table__actionbar" }, this.filter && (h("div", { key: 'fb2649d623a21eeb1a8c3ed5c512d02d7bbb2efc', class: "tds-table__searchbar" }, h("input", { key: '9cd1284bec12081a2e99996eb6bd160ac926b751', class: "tds-table__searchbar-input", type: "text", onKeyUp: (event) => this.handleSearch(event), "aria-label": this.tdsSearchAriaLabel }), h("span", { key: '015060f9c59d06c430fabb0acabb8b476a477616', class: "tds-table__searchbar-icon" }, h("tds-icon", { key: '5f990c7f452a46bb0471dd658f24afd848d029e9', name: "search", size: "20px" })))), h("slot", { key: 'a91b2aee680ef316d2fdd46d46bfe9ec3eb3e314', name: "end" })))));
|
|
80
84
|
}
|
|
81
85
|
get host() { return this; }
|
|
82
|
-
static get style() { return
|
|
83
|
-
}, [
|
|
86
|
+
static get style() { return tableToolbarCss; }
|
|
87
|
+
}, [257, "tds-table-toolbar", {
|
|
84
88
|
"tableTitle": [513, "table-title"],
|
|
85
89
|
"filter": [516],
|
|
86
90
|
"tdsSearchAriaLabel": [1, "tds-search-aria-label"],
|
|
@@ -1,24 +1,42 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H,
|
|
2
|
-
import { g as generateUniqueId } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, c as createEvent, h, a as Host } from './index.js';
|
|
2
|
+
import { g as generateUniqueId } from './p-Cn4f8w1e.js';
|
|
3
3
|
|
|
4
4
|
const tableCss = ":host{--tds-scrollbar-width-standard:thin;--tds-scrollbar-width:10px;--tds-scrollbar-height:10px;--tds-scrollbar-thumb-border-width:3px;--tds-scrollbar-thumb-border-hover-width:2px}body{scrollbar-width:thin}:host,.tds-table{border-collapse:collapse;display:table;box-sizing:border-box}:host *,.tds-table *{box-sizing:border-box}:host(.tds-table--responsive),.tds-table--responsive{width:100%}.tds-table--horizontal-scroll{display:block;overflow-x:scroll;white-space:nowrap}.tds-table--horizontal-scroll:hover::-webkit-scrollbar-thumb{border:var(--tds-scrollbar-thumb-border-hover-width) solid transparent;background:var(--tds-scrollbar-hover-thumb-color);background-clip:padding-box}.tds-table--horizontal-scroll::-webkit-scrollbar{height:var(--tds-scrollbar-height)}.tds-table--horizontal-scroll::-webkit-scrollbar-track{background:var(--tds-scrollbar-track-color)}.tds-table--horizontal-scroll::-webkit-scrollbar-thumb{border-radius:40px;background:var(--tds-scrollbar-thumb-color);border:var(--tds-scrollbar-thumb-border-width) solid transparent;background-clip:padding-box}.tds-table--horizontal-scroll::-webkit-scrollbar-button{height:0;width:0}@supports not selector(::-webkit-scrollbar){.tds-table--horizontal-scroll{scrollbar-color:var(--tds-scrollbar-thumb-color) var(--tds-scrollbar-track-color);scrollbar-width:var(--tds-scrollbar-width-standard)}}.tds-table--horizontal-scroll-toolbar{margin-top:64px}.tds-table--horizontal-scroll-toolbar-compact{margin-top:56px}.tds-table--horizontal-scroll-footer{margin-bottom:49px}.tds-table--horizontal-scroll-footer-compact{margin-bottom:33px}";
|
|
5
|
-
const TdsTableStyle0 = tableCss;
|
|
6
5
|
|
|
7
6
|
const TdsTable$1 = /*@__PURE__*/ proxyCustomElement(class TdsTable extends H {
|
|
8
|
-
constructor() {
|
|
7
|
+
constructor(registerHost) {
|
|
9
8
|
super();
|
|
10
|
-
|
|
9
|
+
if (registerHost !== false) {
|
|
10
|
+
this.__registerHost();
|
|
11
|
+
}
|
|
11
12
|
this.__attachShadow();
|
|
12
13
|
this.internalTdsTablePropChange = createEvent(this, "internalTdsTablePropChange", 6);
|
|
14
|
+
/** Enables style with vertical dividers between columns */
|
|
13
15
|
this.verticalDividers = false;
|
|
16
|
+
/** Enables style where Table toolbar, rows and footer are less high */
|
|
14
17
|
this.compactDesign = false;
|
|
15
|
-
this
|
|
18
|
+
// TODO: Due to unknown reason, one of this items has to be left as is.
|
|
19
|
+
// If all are false, it seems like emitting is not properly done and it affects other events in Table.
|
|
20
|
+
// Try setting it and observe text-align set on header cell
|
|
21
|
+
/** Enables multiselect feature of Table */
|
|
16
22
|
this.multiselect = false;
|
|
23
|
+
/** Enables extended row feature of Table */
|
|
17
24
|
this.expandableRows = false;
|
|
25
|
+
/** Enables Table to take 100% available width with equal spacing of columns */
|
|
18
26
|
this.responsive = false;
|
|
27
|
+
/** Variant of the component, based on current mode. */
|
|
19
28
|
this.modeVariant = null;
|
|
29
|
+
/** Enables zebra stripe mode on the table rows or columns. */
|
|
20
30
|
this.zebraMode = 'none';
|
|
31
|
+
/** Width of the table, used as the constraint for horizontal scrolling.
|
|
32
|
+
* **NOTE**: this will disable usage of the responsive flag
|
|
33
|
+
* */
|
|
21
34
|
this.horizontalScrollWidth = null;
|
|
35
|
+
/** ID used for internal Table functionality and events, must be unique.
|
|
36
|
+
*
|
|
37
|
+
* **NOTE**: If you're listening for Table events, you need to set this ID yourself to identify the Table,
|
|
38
|
+
* as the default ID is random and will be different every time.
|
|
39
|
+
*/
|
|
22
40
|
this.tableId = generateUniqueId();
|
|
23
41
|
this.enableHorizontalScrollToolbarDesign = false;
|
|
24
42
|
this.enableHorizontalScrollFooterDesign = false;
|
|
@@ -120,8 +138,8 @@ const TdsTable$1 = /*@__PURE__*/ proxyCustomElement(class TdsTable extends H {
|
|
|
120
138
|
"modeVariant": ["modeVariantChanged"],
|
|
121
139
|
"horizontalScrollWidth": ["widthChanged"]
|
|
122
140
|
}; }
|
|
123
|
-
static get style() { return
|
|
124
|
-
}, [
|
|
141
|
+
static get style() { return tableCss; }
|
|
142
|
+
}, [257, "tds-table", {
|
|
125
143
|
"verticalDividers": [516, "vertical-dividers"],
|
|
126
144
|
"compactDesign": [516, "compact-design"],
|
|
127
145
|
"noMinWidth": [516, "no-min-width"],
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, h,
|
|
2
|
-
import { h as hasSlot } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, h, a as Host } from './index.js';
|
|
2
|
+
import { h as hasSlot } from './p-DDX6uFcm.js';
|
|
3
3
|
|
|
4
4
|
const tagCss = ".sc-tds-tag-h{box-sizing:border-box;display:inline-flex;align-items:center;border-radius:4px;background-color:var(--tds-tag-neutral-background);color:var(--tds-tag-neutral-color);gap:4px}.sc-tds-tag-h *.sc-tds-tag{box-sizing:border-box}.lg.sc-tds-tag-h{padding:4px}.sm.sc-tds-tag-h{border-radius:2px;padding:2px 4px;font:var(--tds-detail-05)}.success.sc-tds-tag-h{background-color:var(--tds-tag-success-background);color:var(--tds-tag-success-color)}.warning.sc-tds-tag-h{background-color:var(--tds-tag-warning-background);color:var(--tds-tag-warning-color)}.new.sc-tds-tag-h{background-color:var(--tds-tag-new-background);color:var(--tds-tag-new-color)}.neutral.sc-tds-tag-h{background-color:var(--tds-tag-neutral-background);color:var(--tds-tag-neutral-color)}.information.sc-tds-tag-h{background-color:var(--tds-tag-information-background);color:var(--tds-tag-information-color)}.error.sc-tds-tag-h{background-color:var(--tds-tag-error-background);color:var(--tds-tag-error-color)}.tds-tag__content.sc-tds-tag{display:flex;align-items:center;gap:inherit}";
|
|
5
|
-
const TdsTagStyle0 = tagCss;
|
|
6
5
|
|
|
7
6
|
const TdsTag$1 = /*@__PURE__*/ proxyCustomElement(class TdsTag extends H {
|
|
8
|
-
constructor() {
|
|
7
|
+
constructor(registerHost) {
|
|
9
8
|
super();
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
if (registerHost !== false) {
|
|
10
|
+
this.__registerHost();
|
|
11
|
+
}
|
|
12
|
+
/** Sets the size of the tag */
|
|
12
13
|
this.size = 'lg';
|
|
14
|
+
/** Sets the variant mode of the tag */
|
|
13
15
|
this.variant = 'Neutral';
|
|
14
16
|
}
|
|
15
17
|
render() {
|
|
@@ -18,11 +20,11 @@ const TdsTag$1 = /*@__PURE__*/ proxyCustomElement(class TdsTag extends H {
|
|
|
18
20
|
[`${this.size.toLowerCase()}`]: true,
|
|
19
21
|
[`${this.variant.toLowerCase()}`]: true,
|
|
20
22
|
});
|
|
21
|
-
return (h(Host, { key: '
|
|
23
|
+
return (h(Host, { key: 'ce69caedf87367e14db73628ff7948fca1580073', class: getTagClasses() }, h("div", { key: 'fbdddb159c5e590cca490df2ff2bf53602fc3265', class: "tds-tag__content" }, hasPrefixSlot && h("slot", { key: '77e44bf68f83708da2bdf7dcf50878d43638df97', name: "prefix" }), h("span", { key: '27aa436683c94063a3a041c6679d622e5f621d92' }, this.text))));
|
|
22
24
|
}
|
|
23
25
|
get host() { return this; }
|
|
24
|
-
static get style() { return
|
|
25
|
-
}, [
|
|
26
|
+
static get style() { return tagCss; }
|
|
27
|
+
}, [262, "tds-tag", {
|
|
26
28
|
"text": [1],
|
|
27
29
|
"size": [1],
|
|
28
30
|
"variant": [1]
|