@scania/tegel 1.47.2 → 1.48.0-beta.0-tabbing-test
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/README.md +4 -0
- package/dist/cjs/index-DGsdvbvx.js +2521 -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 +5 -6
- package/dist/cjs/tds-badge.cjs.entry.js +13 -8
- package/dist/cjs/tds-banner.cjs.entry.js +19 -15
- package/dist/cjs/tds-block.cjs.entry.js +5 -6
- package/dist/cjs/tds-body-cell.cjs.entry.js +6 -11
- package/dist/cjs/tds-breadcrumb.cjs.entry.js +4 -6
- package/dist/cjs/tds-breadcrumbs.cjs.entry.js +3 -7
- package/dist/cjs/tds-button_2.cjs.entry.js +16 -15
- package/dist/cjs/tds-card.cjs.entry.js +29 -20
- package/dist/cjs/tds-checkbox.cjs.entry.js +17 -17
- package/dist/cjs/tds-chip.cjs.entry.js +20 -17
- package/dist/cjs/tds-core-header-item_2.cjs.entry.js +12 -13
- package/dist/cjs/tds-datetime.cjs.entry.js +33 -27
- package/dist/cjs/tds-dropdown_2.cjs.entry.js +72 -67
- package/dist/cjs/tds-folder-tab.cjs.entry.js +6 -9
- package/dist/cjs/tds-folder-tabs.cjs.entry.js +40 -38
- package/dist/cjs/tds-footer-group.cjs.entry.js +11 -14
- package/dist/cjs/tds-footer-item.cjs.entry.js +4 -7
- package/dist/cjs/tds-footer.cjs.entry.js +8 -10
- package/dist/cjs/tds-header-brand-symbol.cjs.entry.js +4 -7
- package/dist/cjs/tds-header-cell.cjs.entry.js +23 -26
- package/dist/cjs/tds-header-dropdown-list-item.cjs.entry.js +7 -8
- package/dist/cjs/tds-header-dropdown-list-user.cjs.entry.js +4 -11
- package/dist/cjs/tds-header-dropdown-list.cjs.entry.js +7 -10
- package/dist/cjs/tds-header-dropdown.cjs.entry.js +12 -16
- package/dist/cjs/tds-header-hamburger.cjs.entry.js +6 -10
- package/dist/cjs/tds-header-launcher-button.cjs.entry.js +8 -10
- package/dist/cjs/tds-header-launcher-grid-item.cjs.entry.js +4 -7
- package/dist/cjs/tds-header-launcher-grid-title.cjs.entry.js +5 -8
- package/dist/cjs/tds-header-launcher-grid.cjs.entry.js +6 -10
- package/dist/cjs/tds-header-launcher-list-item.cjs.entry.js +4 -7
- package/dist/cjs/tds-header-launcher-list-title.cjs.entry.js +5 -8
- package/dist/cjs/tds-header-launcher-list.cjs.entry.js +3 -5
- package/dist/cjs/tds-header-launcher.cjs.entry.js +9 -14
- package/dist/cjs/tds-header-title.cjs.entry.js +4 -7
- package/dist/cjs/tds-header.cjs.entry.js +6 -9
- package/dist/cjs/tds-icon.cjs.entry.js +15 -18
- package/dist/cjs/tds-inline-tab.cjs.entry.js +6 -8
- package/dist/cjs/tds-inline-tabs.cjs.entry.js +43 -46
- package/dist/cjs/tds-link.cjs.entry.js +8 -8
- package/dist/cjs/tds-message.cjs.entry.js +16 -16
- package/dist/cjs/tds-modal.cjs.entry.js +93 -47
- package/dist/cjs/tds-navigation-tab.cjs.entry.js +6 -8
- package/dist/cjs/tds-navigation-tabs.cjs.entry.js +43 -40
- package/dist/cjs/tds-popover-canvas.cjs.entry.js +20 -14
- package/dist/cjs/tds-popover-core.cjs.entry.js +54 -41
- package/dist/cjs/tds-popover-menu-item.cjs.entry.js +6 -8
- package/dist/cjs/tds-popover-menu.cjs.entry.js +19 -14
- package/dist/cjs/tds-radio-button.cjs.entry.js +14 -17
- package/dist/cjs/tds-side-menu-close-button.cjs.entry.js +6 -9
- package/dist/cjs/tds-side-menu-collapse-button.cjs.entry.js +7 -10
- 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 +5 -8
- package/dist/cjs/tds-side-menu-dropdown.cjs.entry.js +9 -10
- package/dist/cjs/tds-side-menu-item.cjs.entry.js +9 -9
- package/dist/cjs/tds-side-menu-overlay.cjs.entry.js +4 -7
- package/dist/cjs/tds-side-menu-user-image_2.cjs.entry.js +7 -15
- package/dist/cjs/tds-side-menu-user.cjs.entry.js +4 -11
- package/dist/cjs/tds-side-menu.cjs.entry.js +42 -25
- package/dist/cjs/tds-slider.cjs.entry.js +51 -34
- package/dist/cjs/tds-spinner.cjs.entry.js +6 -7
- package/dist/cjs/tds-step.cjs.entry.js +5 -13
- package/dist/cjs/tds-stepper.cjs.entry.js +26 -11
- package/dist/cjs/tds-table-body-input-wrapper.cjs.entry.js +4 -6
- package/dist/cjs/tds-table-body-row-expandable.cjs.entry.js +48 -17
- package/dist/cjs/tds-table-body-row.cjs.entry.js +8 -8
- package/dist/cjs/tds-table-body.cjs.entry.js +10 -13
- package/dist/cjs/tds-table-footer.cjs.entry.js +79 -24
- package/dist/cjs/tds-table-header-input-wrapper.cjs.entry.js +5 -7
- package/dist/cjs/tds-table-header.cjs.entry.js +8 -9
- package/dist/cjs/tds-table-toolbar.cjs.entry.js +8 -8
- package/dist/cjs/tds-table.cjs.entry.js +54 -21
- package/dist/cjs/tds-tag.cjs.entry.js +8 -10
- package/dist/cjs/tds-text-field.cjs.entry.js +29 -20
- package/dist/cjs/tds-textarea.cjs.entry.js +21 -16
- package/dist/cjs/tds-toast.cjs.entry.js +20 -20
- package/dist/cjs/tds-toggle.cjs.entry.js +17 -18
- package/dist/cjs/tds-tooltip.cjs.entry.js +22 -20
- package/dist/cjs/tegel.cjs.js +7 -8
- package/dist/collection/assets/icons/scania/microphone.svg +4 -0
- package/dist/collection/assets/icons/scania/microphone_inactive.svg +7 -0
- package/dist/collection/assets/icons/scania/notification_snooze.svg +6 -0
- package/dist/collection/assets/icons/scania/paperclip.svg +3 -0
- package/dist/collection/collection-manifest.json +2 -2
- 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 +41 -19
- 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.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 +24 -19
- package/dist/collection/components/chip/chip.js +42 -20
- package/dist/collection/components/datetime/datetime.js +81 -40
- package/dist/collection/components/divider/divider.js +9 -3
- package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +31 -25
- package/dist/collection/components/dropdown/dropdown.js +95 -55
- package/dist/collection/components/footer/footer-group/footer-group.js +15 -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.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.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.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 +1 -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 +30 -17
- package/dist/collection/components/icon/scaniaIconsArray.js +2 -252
- package/dist/collection/components/icon/tratonIconsArray.js +2 -32
- package/dist/collection/components/link/link.js +14 -5
- package/dist/collection/components/message/message.css +6 -6
- package/dist/collection/components/message/message.js +35 -18
- package/dist/collection/components/modal/modal.js +119 -51
- package/dist/collection/components/popover-canvas/popover-canvas.js +51 -19
- package/dist/collection/components/popover-core/popover-core.js +64 -31
- package/dist/collection/components/popover-menu/popover-menu-item/popover-menu-item.js +6 -3
- package/dist/collection/components/popover-menu/popover-menu.js +48 -19
- package/dist/collection/components/radio-button/radio-button.css +14 -14
- package/dist/collection/components/radio-button/radio-button.js +38 -22
- 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 +8 -6
- package/dist/collection/components/side-menu/side-menu-dropdown/side-menu-dropdown.js +19 -9
- 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.js +6 -3
- 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 +43 -20
- 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.css +65 -16
- 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 +61 -17
- package/dist/collection/components/table/table-body/table-body.js +7 -7
- package/dist/collection/components/table/table-body-cell/table-body-cell.css +11 -8
- package/dist/collection/components/table/table-body-cell/table-body-cell.js +58 -13
- package/dist/collection/components/table/table-body-input-wrapper/table-body-input-wrapper.js +4 -1
- 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.css +26 -1
- package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js +116 -17
- package/dist/collection/components/table/table-footer/table-footer.js +96 -23
- package/dist/collection/components/table/table-header/table-header.css +0 -3
- package/dist/collection/components/table/table-header/table-header.js +18 -8
- package/dist/collection/components/table/table-header-cell/table-header-cell.css +34 -27
- package/dist/collection/components/table/table-header-cell/table-header-cell.js +84 -31
- 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 +50 -37
- package/dist/collection/components/tabs/inline-tabs/inline-tab/inline-tab.js +6 -3
- package/dist/collection/components/tabs/inline-tabs/inline-tabs.css +3 -1
- package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +56 -46
- package/dist/collection/components/tabs/navigation-tabs/navigation-tab/navigation-tab.js +6 -3
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +56 -40
- package/dist/collection/components/tag/tag.js +16 -9
- package/dist/collection/components/text-field/text-field.js +99 -41
- package/dist/collection/components/textarea/textarea.js +72 -30
- 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 +55 -27
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +1 -1
- package/dist/components/p-BLhZliIO.js +1 -0
- package/dist/components/p-BMeMtNu0.js +1 -0
- package/dist/components/p-BYl_hs2I.js +1 -0
- package/dist/components/p-BonnqD8w.js +1 -0
- package/dist/components/p-Bp11uQum.js +1 -0
- package/dist/components/p-C4MTsi5W.js +1 -0
- package/dist/components/p-C9VPZFHA.js +1 -0
- package/dist/components/p-CBZ6wC3m.js +1 -0
- package/dist/components/p-CKbZVUR2.js +1 -0
- package/dist/components/p-CuBmZ6sl.js +1 -0
- package/dist/components/p-CuIyaNyT.js +1 -0
- package/dist/components/p-CwklLnIa.js +1 -0
- package/dist/components/p-CzyhBRHW.js +1 -0
- package/dist/components/p-D0Aaqu_c.js +1 -0
- package/dist/components/p-DGE6WcOB.js +1 -0
- package/dist/components/p-DdOzmmZe.js +1 -0
- package/dist/components/p-DjZ0RkWr.js +1 -0
- package/dist/components/p-DlkBTA_R.js +1 -0
- package/dist/{tegel/p-0bd4c19c.js → components/p-Q3W78DlP.js} +1 -1
- package/dist/components/p-Zx1hN-_O.js +1 -0
- package/dist/components/p-hVetZOGH.js +1 -0
- package/dist/components/tds-accordion-item.js +1 -98
- package/dist/components/tds-accordion.js +1 -44
- package/dist/components/tds-badge.js +1 -76
- package/dist/components/tds-banner.js +1 -93
- package/dist/components/tds-block.js +1 -63
- package/dist/components/tds-body-cell.js +1 -131
- package/dist/components/tds-breadcrumb.js +1 -38
- package/dist/components/tds-breadcrumbs.js +1 -41
- package/dist/components/tds-button.js +1 -6
- package/dist/components/tds-card.js +1 -112
- package/dist/components/tds-checkbox.js +1 -6
- package/dist/components/tds-chip.js +1 -120
- package/dist/components/tds-core-header-item.js +1 -6
- package/dist/components/tds-datetime.js +1 -198
- package/dist/components/tds-divider.js +1 -6
- package/dist/components/tds-dropdown-option.js +1 -6
- package/dist/components/tds-dropdown.js +1 -6
- package/dist/components/tds-folder-tab.js +1 -74
- package/dist/components/tds-folder-tabs.js +1 -228
- package/dist/components/tds-footer-group.js +1 -87
- package/dist/components/tds-footer-item.js +1 -44
- package/dist/components/tds-footer.js +1 -47
- package/dist/components/tds-header-brand-symbol.js +1 -52
- package/dist/components/tds-header-cell.js +1 -187
- package/dist/components/tds-header-dropdown-list-item.js +1 -6
- package/dist/components/tds-header-dropdown-list-user.js +1 -45
- package/dist/components/tds-header-dropdown-list.js +1 -6
- package/dist/components/tds-header-dropdown.js +1 -127
- package/dist/components/tds-header-hamburger.js +1 -59
- package/dist/components/tds-header-item.js +1 -6
- package/dist/components/tds-header-launcher-button.js +1 -6
- package/dist/components/tds-header-launcher-grid-item.js +1 -35
- package/dist/components/tds-header-launcher-grid-title.js +1 -36
- package/dist/components/tds-header-launcher-grid.js +1 -58
- package/dist/components/tds-header-launcher-list-item.js +1 -41
- package/dist/components/tds-header-launcher-list-title.js +1 -37
- package/dist/components/tds-header-launcher-list.js +1 -38
- package/dist/components/tds-header-launcher.js +1 -134
- package/dist/components/tds-header-title.js +1 -35
- package/dist/components/tds-header.js +1 -74
- package/dist/components/tds-icon.js +1 -6
- package/dist/components/tds-inline-tab.js +1 -68
- package/dist/components/tds-inline-tabs.js +1 -234
- package/dist/components/tds-link.js +1 -64
- package/dist/components/tds-message.js +1 -84
- package/dist/components/tds-modal.js +1 -262
- package/dist/components/tds-navigation-tab.js +1 -65
- package/dist/components/tds-navigation-tabs.js +1 -240
- package/dist/components/tds-popover-canvas.js +1 -6
- package/dist/components/tds-popover-core.js +1 -6
- package/dist/components/tds-popover-menu-item.js +1 -41
- package/dist/components/tds-popover-menu.js +1 -84
- package/dist/components/tds-radio-button.js +1 -70
- package/dist/components/tds-side-menu-close-button.js +1 -53
- package/dist/components/tds-side-menu-collapse-button.js +1 -74
- package/dist/components/tds-side-menu-dropdown-list-item.js +1 -78
- package/dist/components/tds-side-menu-dropdown-list.js +1 -49
- package/dist/components/tds-side-menu-dropdown.js +1 -113
- package/dist/components/tds-side-menu-item.js +1 -6
- package/dist/components/tds-side-menu-overlay.js +1 -35
- package/dist/components/tds-side-menu-user-image.js +1 -6
- package/dist/components/tds-side-menu-user-label.js +1 -6
- package/dist/components/tds-side-menu-user.js +1 -56
- package/dist/components/tds-side-menu.js +1 -193
- package/dist/components/tds-slider.js +1 -545
- package/dist/components/tds-spinner.js +1 -39
- package/dist/components/tds-step.js +1 -86
- package/dist/components/tds-stepper.js +1 -95
- package/dist/components/tds-table-body-input-wrapper.js +1 -130
- package/dist/components/tds-table-body-row-expandable.js +1 -175
- package/dist/components/tds-table-body-row.js +1 -125
- package/dist/components/tds-table-body.js +1 -108
- package/dist/components/tds-table-footer.js +1 -210
- package/dist/components/tds-table-header-input-wrapper.js +1 -112
- package/dist/components/tds-table-header.js +1 -144
- package/dist/components/tds-table-toolbar.js +1 -119
- package/dist/components/tds-table.js +1 -168
- package/dist/components/tds-tag.js +1 -48
- package/dist/components/tds-text-field.js +1 -6
- package/dist/components/tds-textarea.js +1 -156
- package/dist/components/tds-toast.js +1 -117
- package/dist/components/tds-toggle.js +1 -86
- package/dist/components/tds-tooltip.js +1 -6
- package/dist/esm/index-9xxNGlso.js +2492 -0
- package/dist/{components/p-0bd4c19c.js → esm/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 +5 -4
- package/dist/esm/tds-badge.entry.js +13 -6
- package/dist/esm/tds-banner.entry.js +19 -13
- package/dist/esm/tds-block.entry.js +5 -4
- package/dist/esm/tds-body-cell.entry.js +6 -9
- package/dist/esm/tds-breadcrumb.entry.js +4 -4
- package/dist/esm/tds-breadcrumbs.entry.js +3 -5
- package/dist/esm/tds-button_2.entry.js +16 -13
- package/dist/esm/tds-card.entry.js +29 -18
- package/dist/esm/tds-checkbox.entry.js +17 -15
- package/dist/esm/tds-chip.entry.js +20 -15
- package/dist/esm/tds-core-header-item_2.entry.js +12 -11
- package/dist/esm/tds-datetime.entry.js +33 -25
- package/dist/esm/tds-dropdown_2.entry.js +72 -65
- package/dist/esm/tds-folder-tab.entry.js +6 -7
- package/dist/esm/tds-folder-tabs.entry.js +40 -36
- package/dist/esm/tds-footer-group.entry.js +11 -12
- package/dist/esm/tds-footer-item.entry.js +4 -5
- package/dist/esm/tds-footer.entry.js +8 -8
- package/dist/esm/tds-header-brand-symbol.entry.js +4 -5
- package/dist/esm/tds-header-cell.entry.js +23 -24
- package/dist/esm/tds-header-dropdown-list-item.entry.js +7 -6
- package/dist/esm/tds-header-dropdown-list-user.entry.js +4 -9
- package/dist/esm/tds-header-dropdown-list.entry.js +7 -8
- package/dist/esm/tds-header-dropdown.entry.js +12 -14
- package/dist/esm/tds-header-hamburger.entry.js +6 -8
- package/dist/esm/tds-header-launcher-button.entry.js +8 -8
- package/dist/esm/tds-header-launcher-grid-item.entry.js +4 -5
- package/dist/esm/tds-header-launcher-grid-title.entry.js +5 -6
- package/dist/esm/tds-header-launcher-grid.entry.js +6 -8
- package/dist/esm/tds-header-launcher-list-item.entry.js +4 -5
- package/dist/esm/tds-header-launcher-list-title.entry.js +5 -6
- package/dist/esm/tds-header-launcher-list.entry.js +3 -3
- package/dist/esm/tds-header-launcher.entry.js +9 -12
- package/dist/esm/tds-header-title.entry.js +4 -5
- package/dist/esm/tds-header.entry.js +6 -7
- package/dist/esm/tds-icon.entry.js +15 -16
- package/dist/esm/tds-inline-tab.entry.js +6 -6
- package/dist/esm/tds-inline-tabs.entry.js +43 -44
- package/dist/esm/tds-link.entry.js +8 -6
- package/dist/esm/tds-message.entry.js +16 -14
- package/dist/esm/tds-modal.entry.js +93 -45
- package/dist/esm/tds-navigation-tab.entry.js +6 -6
- package/dist/esm/tds-navigation-tabs.entry.js +43 -38
- package/dist/esm/tds-popover-canvas.entry.js +20 -12
- package/dist/esm/tds-popover-core.entry.js +54 -39
- package/dist/esm/tds-popover-menu-item.entry.js +6 -6
- package/dist/esm/tds-popover-menu.entry.js +19 -12
- package/dist/esm/tds-radio-button.entry.js +14 -15
- package/dist/esm/tds-side-menu-close-button.entry.js +6 -7
- package/dist/esm/tds-side-menu-collapse-button.entry.js +7 -8
- package/dist/esm/tds-side-menu-dropdown-list-item.entry.js +6 -6
- package/dist/esm/tds-side-menu-dropdown-list.entry.js +5 -6
- package/dist/esm/tds-side-menu-dropdown.entry.js +9 -8
- package/dist/esm/tds-side-menu-item.entry.js +9 -7
- package/dist/esm/tds-side-menu-overlay.entry.js +4 -5
- package/dist/esm/tds-side-menu-user-image_2.entry.js +7 -13
- package/dist/esm/tds-side-menu-user.entry.js +4 -9
- package/dist/esm/tds-side-menu.entry.js +42 -23
- package/dist/esm/tds-slider.entry.js +51 -32
- package/dist/esm/tds-spinner.entry.js +6 -5
- package/dist/esm/tds-step.entry.js +5 -11
- package/dist/esm/tds-stepper.entry.js +26 -9
- package/dist/esm/tds-table-body-input-wrapper.entry.js +4 -4
- package/dist/esm/tds-table-body-row-expandable.entry.js +48 -15
- package/dist/esm/tds-table-body-row.entry.js +8 -6
- package/dist/esm/tds-table-body.entry.js +10 -11
- package/dist/esm/tds-table-footer.entry.js +79 -22
- package/dist/esm/tds-table-header-input-wrapper.entry.js +5 -5
- package/dist/esm/tds-table-header.entry.js +8 -7
- package/dist/esm/tds-table-toolbar.entry.js +8 -6
- package/dist/esm/tds-table.entry.js +54 -19
- package/dist/esm/tds-tag.entry.js +8 -8
- package/dist/esm/tds-text-field.entry.js +29 -18
- package/dist/esm/tds-textarea.entry.js +21 -14
- package/dist/esm/tds-toast.entry.js +20 -18
- package/dist/esm/tds-toggle.entry.js +17 -16
- package/dist/esm/tds-tooltip.entry.js +22 -18
- package/dist/esm/tegel.js +5 -5
- package/dist/tegel/assets/icons/scania/microphone.svg +4 -0
- package/dist/tegel/assets/icons/scania/microphone_inactive.svg +7 -0
- package/dist/tegel/assets/icons/scania/notification_snooze.svg +6 -0
- package/dist/tegel/assets/icons/scania/paperclip.svg +3 -0
- package/dist/tegel/p-0056a170.entry.js +1 -0
- package/dist/tegel/p-01f5774a.entry.js +1 -0
- package/dist/tegel/{p-17893043.entry.js → p-0426cbc9.entry.js} +1 -1
- package/dist/tegel/{p-8e930da5.entry.js → p-117b6fd9.entry.js} +1 -1
- package/dist/tegel/p-11f23ac6.entry.js +1 -0
- package/dist/tegel/p-121afb33.entry.js +1 -0
- package/dist/tegel/{p-133351b5.entry.js → p-12d791e7.entry.js} +1 -1
- package/dist/tegel/{p-79fb0088.entry.js → p-158fd791.entry.js} +1 -1
- package/dist/tegel/{p-a00ad341.entry.js → p-15bc881b.entry.js} +1 -1
- package/dist/tegel/p-182669b3.entry.js +1 -0
- package/dist/tegel/p-1f7bf292.entry.js +1 -0
- package/dist/tegel/p-1ff8bbed.entry.js +1 -0
- package/dist/tegel/p-2818d320.entry.js +1 -0
- package/dist/tegel/{p-f1d58cbf.entry.js → p-2b1c9edf.entry.js} +1 -1
- package/dist/tegel/{p-f097adce.entry.js → p-2eaf9959.entry.js} +1 -1
- package/dist/tegel/p-2fa10d10.entry.js +1 -0
- package/dist/tegel/p-3d11fc11.entry.js +1 -0
- package/dist/tegel/{p-26408506.entry.js → p-408ccb20.entry.js} +1 -1
- package/dist/tegel/p-44cbb1d0.entry.js +1 -0
- package/dist/tegel/{p-08c993f3.entry.js → p-45f611ce.entry.js} +1 -1
- package/dist/tegel/p-4df49756.entry.js +1 -0
- package/dist/tegel/p-4ff91349.entry.js +1 -0
- package/dist/tegel/{p-300af79f.entry.js → p-50593c6d.entry.js} +1 -1
- package/dist/tegel/p-5492f7b1.entry.js +1 -0
- package/dist/tegel/p-5af70803.entry.js +1 -0
- package/dist/tegel/p-5b66a01d.entry.js +1 -0
- package/dist/tegel/{p-15ae9443.entry.js → p-60c4deaf.entry.js} +1 -1
- package/dist/tegel/p-62e7169c.entry.js +1 -0
- package/dist/tegel/p-630d0a10.entry.js +1 -0
- package/dist/tegel/p-6410c845.entry.js +1 -0
- package/dist/tegel/p-6c3e8059.entry.js +1 -0
- package/dist/tegel/{p-4a10393b.entry.js → p-6c61a2f0.entry.js} +1 -1
- package/dist/tegel/{p-ab067071.entry.js → p-6e8da39b.entry.js} +1 -1
- package/dist/tegel/p-72f04cd1.entry.js +1 -0
- package/dist/tegel/p-7492a041.entry.js +1 -0
- package/dist/tegel/{p-2766b46f.entry.js → p-7ba5eadf.entry.js} +1 -1
- package/dist/tegel/{p-3ba2e575.entry.js → p-826bfbff.entry.js} +1 -1
- package/dist/tegel/{p-dc93c6e5.entry.js → p-8354ed21.entry.js} +1 -1
- package/dist/tegel/p-873dd581.entry.js +1 -0
- package/dist/tegel/p-8817bb70.entry.js +1 -0
- package/dist/tegel/p-88761a57.entry.js +1 -0
- package/dist/tegel/p-88deac25.entry.js +1 -0
- package/dist/tegel/p-8b3e1cd0.entry.js +1 -0
- package/dist/tegel/p-8e0402a1.entry.js +1 -0
- package/dist/tegel/{p-576a60ff.entry.js → p-8f89e6d1.entry.js} +1 -1
- package/dist/tegel/p-92ee76ea.entry.js +1 -0
- package/dist/tegel/p-9802c999.entry.js +1 -0
- package/dist/tegel/p-9a9ac3b2.entry.js +1 -0
- package/dist/tegel/p-9dd59846.entry.js +1 -0
- package/dist/tegel/p-9xxNGlso.js +2 -0
- package/dist/tegel/{p-9332c225.js → p-Bx66i7RU.js} +1 -1
- package/dist/tegel/p-CF8bH08v.js +1 -0
- package/dist/tegel/p-CLF3diNe.js +1 -0
- package/dist/tegel/p-Cn4f8w1e.js +1 -0
- package/dist/tegel/p-DDX6uFcm.js +1 -0
- package/dist/tegel/p-Q3W78DlP.js +1 -0
- package/dist/tegel/p-a10af11f.entry.js +1 -0
- package/dist/tegel/{p-27369d6a.entry.js → p-a6415b2c.entry.js} +1 -1
- package/dist/tegel/p-a96da238.entry.js +1 -0
- package/dist/tegel/{p-106dd3e9.entry.js → p-a9a60c38.entry.js} +1 -1
- package/dist/tegel/p-ac5abaa4.entry.js +1 -0
- package/dist/tegel/p-ae5bc89a.entry.js +1 -0
- package/dist/tegel/p-b881093c.entry.js +1 -0
- package/dist/tegel/p-b9096df7.entry.js +1 -0
- package/dist/tegel/p-be4b4dfd.entry.js +1 -0
- package/dist/tegel/p-bf85e0e7.entry.js +1 -0
- package/dist/tegel/p-c1bafa58.entry.js +1 -0
- package/dist/tegel/{p-fc26fb72.entry.js → p-c51b97da.entry.js} +1 -1
- package/dist/tegel/p-c612b88f.entry.js +1 -0
- package/dist/tegel/p-c74d8810.entry.js +1 -0
- package/dist/tegel/p-c7a7d0c3.entry.js +1 -0
- package/dist/tegel/p-cc133aa7.entry.js +1 -0
- package/dist/tegel/p-ce117e66.entry.js +1 -0
- package/dist/tegel/p-d477128f.entry.js +1 -0
- package/dist/tegel/p-dc425994.entry.js +1 -0
- package/dist/tegel/p-de5fa736.entry.js +1 -0
- package/dist/tegel/{p-608997fa.entry.js → p-dfa11d82.entry.js} +1 -1
- package/dist/tegel/p-dfbbe349.entry.js +1 -0
- package/dist/tegel/p-e82bf5c9.entry.js +1 -0
- package/dist/tegel/p-e9d550f5.entry.js +1 -0
- package/dist/tegel/{p-c66b99a8.entry.js → p-ed40e3b0.entry.js} +1 -1
- package/dist/tegel/{p-25c4e6f6.entry.js → p-f019e894.entry.js} +1 -1
- package/dist/tegel/{p-4a7c213f.entry.js → p-f0b836d4.entry.js} +1 -1
- package/dist/tegel/p-f844ce31.entry.js +1 -0
- package/dist/tegel/{p-2faeb483.entry.js → p-f84ce63c.entry.js} +1 -1
- package/dist/tegel/p-fc26b649.entry.js +1 -0
- package/dist/tegel/p-wEP_nEaO.js +1 -0
- package/dist/tegel/tegel.css +2 -2
- package/dist/tegel/tegel.esm.js +1 -1
- package/dist/types/components/dropdown/dropdown-option/dropdown-option.d.ts +1 -1
- package/dist/types/components/modal/modal.d.ts +7 -0
- package/dist/types/components/side-menu/side-menu.d.ts +1 -0
- package/dist/types/components/slider/slider-stories-setup.d.ts +1 -1
- package/dist/types/components/table/table-body-cell/table-body-cell.d.ts +4 -0
- package/dist/types/components/table/table-body-row-expandable/table-body-row-expandable.d.ts +12 -0
- package/dist/types/components/table/table-footer/table-footer.d.ts +4 -0
- package/dist/types/components/table/table-header-cell/table-header-cell.d.ts +5 -1
- package/dist/types/components/tabs/folder-tabs/folder-tabs.d.ts +2 -2
- package/dist/types/components/tabs/inline-tabs/inline-tabs.d.ts +2 -3
- package/dist/types/components/tabs/navigation-tabs/navigation-tabs.d.ts +2 -2
- package/dist/types/components/tag/tag.d.ts +1 -1
- package/dist/types/components.d.ts +1314 -154
- package/dist/types/stencil-public-runtime.d.ts +196 -8
- package/dist/types/types/ScaniaIcons.d.ts +1 -1
- package/package.json +9 -4
- package/dist/cjs/app-globals-3a1e7e63.js +0 -5
- package/dist/cjs/index-ca8040ad.js +0 -2039
- package/dist/components/p-0f9ce30b.js +0 -37
- package/dist/components/p-28ef5186.js +0 -1507
- package/dist/components/p-32351d04.js +0 -37
- package/dist/components/p-381677ec.js +0 -46
- package/dist/components/p-49b20476.js +0 -82
- package/dist/components/p-4c0aa33f.js +0 -117
- package/dist/components/p-4f672d4f.js +0 -112
- package/dist/components/p-542226b2.js +0 -110
- package/dist/components/p-5725d7a2.js +0 -113
- package/dist/components/p-5bb5f233.js +0 -220
- package/dist/components/p-859e3ebf.js +0 -68
- package/dist/components/p-871223b7.js +0 -719
- package/dist/components/p-a1181b1f.js +0 -16
- package/dist/components/p-ae4ca8c3.js +0 -165
- package/dist/components/p-d5461a3c.js +0 -59
- package/dist/components/p-e0997ae2.js +0 -41
- package/dist/components/p-e1622f4a.js +0 -32
- package/dist/components/p-e62ed985.js +0 -2100
- package/dist/components/p-f086ba26.js +0 -84
- package/dist/components/p-f6685f1b.js +0 -93
- package/dist/components/p-f8db4031.js +0 -103
- package/dist/esm/app-globals-0f993ce5.js +0 -3
- package/dist/esm/dfs-1e574d5f.js +0 -27
- package/dist/esm/generateUniqueId-7934d315.js +0 -26
- package/dist/esm/getAriaInvalid-a9944cb9.js +0 -23
- package/dist/esm/hasSlot-d52114d0.js +0 -9
- package/dist/esm/index-51d04e39.js +0 -2009
- package/dist/esm/inheritAriaAttributes-04f2f252.js +0 -76
- package/dist/esm/inheritAttributes-d21e267b.js +0 -25
- package/dist/tegel/p-066e9613.entry.js +0 -1
- package/dist/tegel/p-0684b6d3.entry.js +0 -1
- package/dist/tegel/p-078217d1.entry.js +0 -1
- package/dist/tegel/p-07d16763.entry.js +0 -1
- package/dist/tegel/p-0e3fcc9f.entry.js +0 -1
- package/dist/tegel/p-10340b85.entry.js +0 -1
- package/dist/tegel/p-1073fb33.entry.js +0 -1
- package/dist/tegel/p-123e6e54.entry.js +0 -1
- package/dist/tegel/p-15b9a73b.entry.js +0 -1
- package/dist/tegel/p-2049fab2.js +0 -2
- package/dist/tegel/p-225c73b6.entry.js +0 -1
- package/dist/tegel/p-304f5a5c.entry.js +0 -1
- package/dist/tegel/p-38725623.entry.js +0 -1
- package/dist/tegel/p-3c348fcb.entry.js +0 -1
- package/dist/tegel/p-419212b5.entry.js +0 -1
- package/dist/tegel/p-4abe96b6.entry.js +0 -1
- package/dist/tegel/p-508a55c0.entry.js +0 -1
- package/dist/tegel/p-51118061.entry.js +0 -1
- package/dist/tegel/p-57a2d4de.entry.js +0 -1
- package/dist/tegel/p-5b80467f.entry.js +0 -1
- package/dist/tegel/p-5bab691f.entry.js +0 -1
- package/dist/tegel/p-63f77d7c.entry.js +0 -1
- package/dist/tegel/p-6bb6425c.entry.js +0 -1
- package/dist/tegel/p-739068bf.entry.js +0 -1
- package/dist/tegel/p-87219f00.entry.js +0 -1
- package/dist/tegel/p-8a4837ae.entry.js +0 -1
- package/dist/tegel/p-91af9dc5.entry.js +0 -1
- package/dist/tegel/p-947ec2b0.entry.js +0 -1
- package/dist/tegel/p-9772750e.entry.js +0 -1
- package/dist/tegel/p-9f154997.entry.js +0 -1
- package/dist/tegel/p-a15280db.entry.js +0 -1
- package/dist/tegel/p-a2aaf61c.entry.js +0 -1
- package/dist/tegel/p-aa795666.entry.js +0 -1
- package/dist/tegel/p-b7e0917f.entry.js +0 -1
- package/dist/tegel/p-bc697ea7.entry.js +0 -1
- package/dist/tegel/p-bf40233e.entry.js +0 -1
- package/dist/tegel/p-c05f61d6.entry.js +0 -1
- package/dist/tegel/p-c163d44f.entry.js +0 -1
- package/dist/tegel/p-c2ab817d.entry.js +0 -1
- package/dist/tegel/p-c4719b10.entry.js +0 -1
- package/dist/tegel/p-c7be09fc.entry.js +0 -1
- package/dist/tegel/p-c8fd6b3b.entry.js +0 -1
- package/dist/tegel/p-caadaf33.entry.js +0 -1
- package/dist/tegel/p-ce6faf0e.entry.js +0 -1
- package/dist/tegel/p-d031a7ca.entry.js +0 -1
- package/dist/tegel/p-da72f897.entry.js +0 -1
- package/dist/tegel/p-ded1191e.entry.js +0 -1
- package/dist/tegel/p-e1255160.js +0 -1
- package/dist/tegel/p-e2a6c30c.entry.js +0 -1
- package/dist/tegel/p-e2db17a5.entry.js +0 -1
- package/dist/tegel/p-e40d454d.entry.js +0 -1
- package/dist/tegel/p-e53da1e5.entry.js +0 -1
- package/dist/tegel/p-e64c36a3.entry.js +0 -1
- package/dist/tegel/p-ebf13d81.entry.js +0 -1
- package/dist/tegel/p-ede87410.entry.js +0 -1
- package/dist/tegel/p-f3cf4eba.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/{tegel/p-3fe9cbbf.js → components/p-CF8bH08v.js} +0 -0
- /package/dist/{tegel/p-52bf0fdf.js → components/p-CLF3diNe.js} +0 -0
- /package/dist/{tegel/p-11648030.js → components/p-Cn4f8w1e.js} +0 -0
- /package/dist/{tegel/p-ae110fc2.js → components/p-DDX6uFcm.js} +0 -0
- /package/dist/{tegel/p-bbf9492a.js → components/p-wEP_nEaO.js} +0 -0
- /package/dist/{components/p-52bf0fdf.js → esm/dfs-CLF3diNe.js} +0 -0
- /package/dist/{components/p-11648030.js → esm/generateUniqueId-Cn4f8w1e.js} +0 -0
- /package/dist/{components/p-bbf9492a.js → esm/getAriaInvalid-wEP_nEaO.js} +0 -0
- /package/dist/{components/p-ae110fc2.js → esm/hasSlot-DDX6uFcm.js} +0 -0
- /package/dist/{components/p-3fe9cbbf.js → esm/inheritAttributes-CF8bH08v.js} +0 -0
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
var index = require('./index-DGsdvbvx.js');
|
|
4
4
|
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
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}";
|
|
8
|
-
const TdsTableBodyStyle0 = tableBodyCss;
|
|
5
|
+
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}`;
|
|
9
6
|
|
|
10
7
|
const relevantTableProps = [
|
|
11
8
|
'multiselect',
|
|
@@ -15,11 +12,6 @@ const relevantTableProps = [
|
|
|
15
12
|
const TdsTableBody = class {
|
|
16
13
|
constructor(hostRef) {
|
|
17
14
|
index.registerInstance(this, hostRef);
|
|
18
|
-
this.bodyCheckBoxClicked = () => {
|
|
19
|
-
const numberOfRows = this.host.getElementsByClassName('tds-table__row').length;
|
|
20
|
-
const numberOfRowsSelected = this.host.getElementsByClassName('tds-table__row--selected').length;
|
|
21
|
-
this.mainCheckboxStatus = numberOfRows === numberOfRowsSelected;
|
|
22
|
-
};
|
|
23
15
|
this.multiselect = false;
|
|
24
16
|
this.enablePaginationTableBody = false;
|
|
25
17
|
this.expandableRows = false;
|
|
@@ -29,6 +21,11 @@ const TdsTableBody = class {
|
|
|
29
21
|
this.columnsNumber = 0;
|
|
30
22
|
this.zebraMode = 'none';
|
|
31
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
|
+
};
|
|
32
29
|
}
|
|
33
30
|
internalTdsPropChangeListener(event) {
|
|
34
31
|
if (this.tableId === event.detail.tableId) {
|
|
@@ -70,15 +67,15 @@ const TdsTableBody = class {
|
|
|
70
67
|
}
|
|
71
68
|
}
|
|
72
69
|
render() {
|
|
73
|
-
return (index.h(index.Host, { key: '
|
|
70
|
+
return (index.h(index.Host, { key: 'd61524e078103156a13685d1071258a674767f5f', "data-selected-rows": this.multiselectArrayJSON, class: {
|
|
74
71
|
'tds-table--zebra-mode-rows-odd': this.zebraMode === 'rows-odd',
|
|
75
72
|
'tds-table--zebra-mode-rows-even': this.zebraMode === 'rows-even',
|
|
76
73
|
'tds-table--zebra-mode-columns-odd': this.zebraMode === 'columns-odd',
|
|
77
74
|
'tds-table--zebra-mode-columns-even': this.zebraMode === 'columns-even',
|
|
78
|
-
} }, index.h("slot", { key: '
|
|
75
|
+
} }, index.h("slot", { key: '2e7d10195e21f906269ae74f262debc2d3b4f38b' })));
|
|
79
76
|
}
|
|
80
77
|
get host() { return index.getElement(this); }
|
|
81
78
|
};
|
|
82
|
-
TdsTableBody.style =
|
|
79
|
+
TdsTableBody.style = tableBodyCss();
|
|
83
80
|
|
|
84
81
|
exports.tds_table_body = TdsTableBody;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
var index = require('./index-DGsdvbvx.js');
|
|
4
4
|
|
|
5
|
-
const
|
|
6
|
-
|
|
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;
|
|
5
|
+
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)}}`;
|
|
9
6
|
|
|
10
7
|
const relevantTableProps = [
|
|
11
8
|
'compactDesign',
|
|
12
9
|
'horizontalScrollWidth',
|
|
10
|
+
'multiselect',
|
|
11
|
+
'expandableRows',
|
|
13
12
|
];
|
|
14
13
|
function removeShakeAnimation(e) {
|
|
15
14
|
e.target.classList.remove('tds-table__page-selector-input--shake');
|
|
@@ -18,6 +17,30 @@ const TdsTableFooter = class {
|
|
|
18
17
|
constructor(hostRef) {
|
|
19
18
|
index.registerInstance(this, hostRef);
|
|
20
19
|
this.tdsPagination = index.createEvent(this, "tdsPagination", 7);
|
|
20
|
+
/** Enable pagination and show pagination controls */
|
|
21
|
+
this.pagination = false;
|
|
22
|
+
/** Sets the pagination number. */
|
|
23
|
+
this.paginationValue = 1;
|
|
24
|
+
/** Enable rows per page dropdown */
|
|
25
|
+
this.rowsperpage = true;
|
|
26
|
+
/** Set available rows per page values */
|
|
27
|
+
this.rowsPerPageValues = [10, 25, 50];
|
|
28
|
+
/** Sets the number of pages. */
|
|
29
|
+
this.pages = 0;
|
|
30
|
+
/** <b>Client override</b> Used to set the column span of the footer. Use as fallback if the automatic count of columns fails. */
|
|
31
|
+
this.cols = null;
|
|
32
|
+
/** State that memorize number of columns to display colSpan correctly - set from parent level */
|
|
33
|
+
this.columnsNumber = 0;
|
|
34
|
+
/* Sets the footer to use compact design. */
|
|
35
|
+
this.compactDesign = false;
|
|
36
|
+
/* State to track if multiselect is enabled on parent table. */
|
|
37
|
+
this.multiselect = false;
|
|
38
|
+
/* State to track if expandableRows is enabled on parent table. */
|
|
39
|
+
this.expandableRows = false;
|
|
40
|
+
this.lastCorrectValue = 1;
|
|
41
|
+
this.tableId = '';
|
|
42
|
+
this.horizontalScrollWidth = null;
|
|
43
|
+
this.rowsPerPageValue = this.rowsPerPageValues[0];
|
|
21
44
|
this.emitTdsPagination = () => {
|
|
22
45
|
if (this.rowsperpage) {
|
|
23
46
|
this.tdsPagination.emit({
|
|
@@ -61,18 +84,6 @@ const TdsTableFooter = class {
|
|
|
61
84
|
this.emitTdsPagination();
|
|
62
85
|
this.storeLastCorrectValue(this.paginationValue);
|
|
63
86
|
};
|
|
64
|
-
this.pagination = false;
|
|
65
|
-
this.paginationValue = 1;
|
|
66
|
-
this.rowsperpage = true;
|
|
67
|
-
this.rowsPerPageValues = [10, 25, 50];
|
|
68
|
-
this.pages = 0;
|
|
69
|
-
this.cols = null;
|
|
70
|
-
this.columnsNumber = 0;
|
|
71
|
-
this.compactDesign = false;
|
|
72
|
-
this.lastCorrectValue = 1;
|
|
73
|
-
this.tableId = '';
|
|
74
|
-
this.horizontalScrollWidth = null;
|
|
75
|
-
this.rowsPerPageValue = this.rowsPerPageValues[0];
|
|
76
87
|
}
|
|
77
88
|
internalTdsPropChangeListener(event) {
|
|
78
89
|
if (this.tableId === event.detail.tableId) {
|
|
@@ -86,6 +97,31 @@ const TdsTableFooter = class {
|
|
|
86
97
|
});
|
|
87
98
|
}
|
|
88
99
|
}
|
|
100
|
+
colsChanged(newValue) {
|
|
101
|
+
if (newValue !== null) {
|
|
102
|
+
this.columnsNumber = newValue;
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
this.updateColumnsNumber();
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
updateColumnsNumber() {
|
|
109
|
+
var _a, _b, _c;
|
|
110
|
+
if (this.cols) {
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
const numberOfColumns = (_c = (_b = (_a = this.host.parentElement) === null || _a === void 0 ? void 0 : _a.querySelector('tds-table-header')) === null || _b === void 0 ? void 0 : _b.childElementCount) !== null && _c !== void 0 ? _c : 0;
|
|
114
|
+
let totalColumns = numberOfColumns;
|
|
115
|
+
// Add 1 for multiselect checkbox column
|
|
116
|
+
if (this.multiselect) {
|
|
117
|
+
totalColumns += 1;
|
|
118
|
+
}
|
|
119
|
+
// Add 1 for expandable rows column
|
|
120
|
+
if (this.expandableRows) {
|
|
121
|
+
totalColumns += 1;
|
|
122
|
+
}
|
|
123
|
+
this.columnsNumber = totalColumns;
|
|
124
|
+
}
|
|
89
125
|
connectedCallback() {
|
|
90
126
|
var _a;
|
|
91
127
|
this.tableEl = this.host.closest('tds-table');
|
|
@@ -104,7 +140,17 @@ const TdsTableFooter = class {
|
|
|
104
140
|
this.columnsNumber = this.cols;
|
|
105
141
|
}
|
|
106
142
|
else {
|
|
107
|
-
|
|
143
|
+
// Calculate total columns including multiselect and expandable columns
|
|
144
|
+
let totalColumns = numberOfColumns;
|
|
145
|
+
// Add 1 for multiselect checkbox column
|
|
146
|
+
if (this.multiselect) {
|
|
147
|
+
totalColumns += 1;
|
|
148
|
+
}
|
|
149
|
+
// Add 1 for expandable rows column
|
|
150
|
+
if (this.expandableRows) {
|
|
151
|
+
totalColumns += 1;
|
|
152
|
+
}
|
|
153
|
+
this.columnsNumber = totalColumns;
|
|
108
154
|
}
|
|
109
155
|
}
|
|
110
156
|
/* Function to store last valid input */
|
|
@@ -140,19 +186,28 @@ const TdsTableFooter = class {
|
|
|
140
186
|
}
|
|
141
187
|
render() {
|
|
142
188
|
var _a;
|
|
143
|
-
return (index.h(index.Host, { key: '
|
|
189
|
+
return (index.h(index.Host, { key: '961b5b3b5aa0311a2cc962601bbde69cb892c0df', class: {
|
|
144
190
|
'tds-table--compact': this.compactDesign,
|
|
145
191
|
'footer__horizontal-scroll': !!this.horizontalScrollWidth,
|
|
146
|
-
}, style: this.getStyles() }, index.h("tr", { key: '
|
|
147
|
-
return (index.h("tds-dropdown-option", { value: `${value}` }, value));
|
|
148
|
-
}))))), index.h("div", { key: 'aa4872b13712174bfa21c94b15b93816c713fd29', class: "tds-table__page-selector" }, index.h("input", { key: 'fa1964c83ec002ccc6e4061ae1f8596d9ee15836', ref: (element) => {
|
|
192
|
+
}, style: this.getStyles() }, index.h("tr", { key: 'a95c34f7248fe17ff7e6911cb75ac5f8a7e66397', class: "tds-table__footer-row" }, index.h("td", { key: '3fa687650250154d63515696845c77b25a99a637', class: "tds-table__footer-cell", colSpan: this.columnsNumber }, this.pagination && (index.h("div", { key: '8484735a6d4d8d805b1a532a9ee3f982ac91aff5', class: "tds-table__pagination" }, index.h("div", { key: '543cfb0c349fb2a7b4443d4dfadb9b3891864ebc', class: "tds-table__row-selector" }, this.rowsperpage && ((_a = this.rowsPerPageValues) === null || _a === void 0 ? void 0 : _a.length) > 0 && (index.h("div", { key: '40ee62cc8374dc8113bed771a814289be7d978bd', class: "rows-per-page" }, index.h("p", { key: '0a1f178e952e55b250c5ad1e0b59f1f8d664a947' }, "Rows per page"), index.h("tds-dropdown", { key: 'c23f03459dd7bb4c90a646d61d604b1b9c7532aa', modeVariant: "secondary", id: "rows-dropdown", class: "page-dropdown", size: "xs", defaultValue: `${this.rowsPerPageValues[0]}`, onTdsChange: (event) => this.rowsPerPageChange(event) }, this.rowsPerPageValues.map((value) => (index.h("tds-dropdown-option", { value: `${value}` }, value))))))), index.h("div", { key: '2ba6b8e4a67f3d82980f48f8d858f9fe228ef04e', class: "tds-table__page-selector" }, index.h("input", { key: '45c5662f2c314d2616200f0faa10637cfadd8a0c', ref: (element) => {
|
|
149
193
|
if (element) {
|
|
150
194
|
this.inputElement = element;
|
|
151
195
|
}
|
|
152
|
-
}, 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 }), index.h("p", { key: '
|
|
196
|
+
}, 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 }), index.h("p", { key: 'acf03cce754c2e2992af498855a8e65370f80c0e', class: "tds-table__footer-text" }, "of ", index.h("span", { key: '9fb1b364868e11ae9feb3cd560f17973a36f12bd' }, this.pages), " pages"), index.h("button", { key: 'd0945e0f2dbd43fb1c433388b14c517d94da4d95', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue <= 1, onClick: () => this.firstPage() }, index.h("tds-icon", { key: '8c2c3b150d61e4db7dcbf7558646be0f2b90fe84', name: "skip_backwards", size: "20px" })), index.h("button", { key: '7df941515765b780c4c72c52b0842c719b88ff2d', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue <= 1, onClick: () => this.previousPage() }, index.h("tds-icon", { key: 'b8af8f6c3eb7680169764124ade9f6f56899b83d', name: "chevron_left", size: "20px" })), index.h("button", { key: 'd4cfa0117ef5bfbda435584a505d330d5bfb86a3', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue >= this.pages, onClick: () => this.nextPage() }, index.h("tds-icon", { key: 'e1fa66d3959ed648952b0fd170b00f43db23385f', name: "chevron_right", size: "20px" })), index.h("button", { key: 'e8290d680d8ac50cf61089813b94fefa6682b2d1', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue >= this.pages, onClick: () => this.lastPage() }, index.h("tds-icon", { key: '3e26941199388b86bb0069967851d74921300950', name: "skip_forward", size: "20px" })))))))));
|
|
153
197
|
}
|
|
154
198
|
get host() { return index.getElement(this); }
|
|
199
|
+
static get watchers() { return {
|
|
200
|
+
"cols": [{
|
|
201
|
+
"colsChanged": 0
|
|
202
|
+
}],
|
|
203
|
+
"multiselect": [{
|
|
204
|
+
"updateColumnsNumber": 0
|
|
205
|
+
}],
|
|
206
|
+
"expandableRows": [{
|
|
207
|
+
"updateColumnsNumber": 0
|
|
208
|
+
}]
|
|
209
|
+
}; }
|
|
155
210
|
};
|
|
156
|
-
TdsTableFooter.style =
|
|
211
|
+
TdsTableFooter.style = tableFooterCss();
|
|
157
212
|
|
|
158
213
|
exports.tds_table_footer = TdsTableFooter;
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
var index = require('./index-DGsdvbvx.js');
|
|
4
4
|
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
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;}";
|
|
8
|
-
const TdsTableHeaderInputWrapperStyle0 = tableHeaderInputWrapperCss;
|
|
5
|
+
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;}`;
|
|
9
6
|
|
|
10
7
|
const relevantTableProps = ['compactDesign'];
|
|
11
8
|
const TdsTableHeaderInputWrapper = class {
|
|
12
9
|
constructor(hostRef) {
|
|
13
10
|
index.registerInstance(this, hostRef);
|
|
11
|
+
/** Controls if the search icon is shown */
|
|
14
12
|
this.showIcon = true;
|
|
15
13
|
this.renderSlot = true;
|
|
16
14
|
this.inputFocused = false;
|
|
@@ -72,7 +70,7 @@ const TdsTableHeaderInputWrapper = class {
|
|
|
72
70
|
}
|
|
73
71
|
}
|
|
74
72
|
render() {
|
|
75
|
-
return (index.h(index.Host, { key: '
|
|
73
|
+
return (index.h(index.Host, { key: '4528be1b81397ac403bb7ba6cd274f26e1a6aff3', class: {
|
|
76
74
|
'focused-input-wrapper': this.inputFocused,
|
|
77
75
|
'show-icon': this.showIcon,
|
|
78
76
|
'tds-table__compact': this.compactDesign,
|
|
@@ -80,6 +78,6 @@ const TdsTableHeaderInputWrapper = class {
|
|
|
80
78
|
}
|
|
81
79
|
get host() { return index.getElement(this); }
|
|
82
80
|
};
|
|
83
|
-
TdsTableHeaderInputWrapper.style =
|
|
81
|
+
TdsTableHeaderInputWrapper.style = tableHeaderInputWrapperCss();
|
|
84
82
|
|
|
85
83
|
exports.tds_table_header_input_wrapper = TdsTableHeaderInputWrapper;
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
var index = require('./index-DGsdvbvx.js');
|
|
4
4
|
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
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}";
|
|
8
|
-
const TdsTableHeaderStyle0 = tableHeaderCss;
|
|
5
|
+
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(.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}`;
|
|
9
6
|
|
|
10
7
|
const relevantTableProps = [
|
|
11
8
|
'multiselect',
|
|
@@ -18,9 +15,11 @@ const TdsTableHeaderRow = class {
|
|
|
18
15
|
constructor(hostRef) {
|
|
19
16
|
index.registerInstance(this, hostRef);
|
|
20
17
|
this.tdsSelectAll = index.createEvent(this, "tdsSelectAll", 6);
|
|
18
|
+
/** @deprecated Deprecated, use selected instead. */
|
|
21
19
|
this.allSelected = false;
|
|
22
|
-
|
|
20
|
+
/** Prop for controlling the enabled/disabled state of the "All selected"-checkbox. */
|
|
23
21
|
this.disabled = false;
|
|
22
|
+
/** Prop for controlling the indeterminate state of the "All selected"-checkbox. */
|
|
24
23
|
this.indeterminate = false;
|
|
25
24
|
this.multiselect = false;
|
|
26
25
|
this.expandableRows = false;
|
|
@@ -95,14 +94,14 @@ const TdsTableHeaderRow = class {
|
|
|
95
94
|
});
|
|
96
95
|
}
|
|
97
96
|
render() {
|
|
98
|
-
return (index.h(index.Host, { key: '
|
|
97
|
+
return (index.h(index.Host, { key: '88b6399e20ad62915e2fc6b7dc77f0274bcc4c53', class: {
|
|
99
98
|
'tds-table--compact': this.compactDesign,
|
|
100
99
|
'tds-table--divider': this.verticalDividers,
|
|
101
100
|
'tds-table--toolbar-available': this.enableToolbarDesign,
|
|
102
|
-
} }, index.h("tr", { key: '
|
|
101
|
+
} }, index.h("tr", { key: '39f977fed7af33525ade2bc1ba56d90689bd95f2' }, this.multiselect && (index.h("th", { key: '94fdaf3504f4f8a30cc201fce98f094a70936dbb', class: "tds-table__header-cell tds-table__header-cell--checkbox" }, index.h("div", { key: '6e614faf8610379510fe440777a20083cb29f818', class: "tds-form-label tds-form-label--table" }, index.h("tds-checkbox", { key: '59732675c10272928260a88bcdf7e01ddd5cbc0c', checked: this.allSelected || this.selected, disabled: this.disabled, indeterminate: this.indeterminate, onTdsChange: (event) => this.handleCheckboxChange(event) })))), this.expandableRows && (index.h("th", { key: 'e359230499f01aed71f6c9c7dc929ebeb95bcde4', class: "tds-table__header-cell tds-table__header-cell--checkbox" })), index.h("slot", { key: '8d359504221abdb767a8334d2c7ef6d89091f746' }))));
|
|
103
102
|
}
|
|
104
103
|
get host() { return index.getElement(this); }
|
|
105
104
|
};
|
|
106
|
-
TdsTableHeaderRow.style =
|
|
105
|
+
TdsTableHeaderRow.style = tableHeaderCss();
|
|
107
106
|
|
|
108
107
|
exports.tds_table_header = TdsTableHeaderRow;
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
var index = require('./index-DGsdvbvx.js');
|
|
4
4
|
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
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}";
|
|
8
|
-
const TdsTableToolbarStyle0 = tableToolbarCss;
|
|
5
|
+
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}`;
|
|
9
6
|
|
|
10
7
|
const relevantTableProps = [
|
|
11
8
|
'compactDesign',
|
|
@@ -17,8 +14,11 @@ const TdsTableToolbar = class {
|
|
|
17
14
|
constructor(hostRef) {
|
|
18
15
|
index.registerInstance(this, hostRef);
|
|
19
16
|
this.tdsFilter = index.createEvent(this, "tdsFilter", 7);
|
|
17
|
+
/** Adds title to the Table */
|
|
20
18
|
this.tableTitle = '';
|
|
19
|
+
/** Enables preview of searchbar */
|
|
21
20
|
this.filter = false;
|
|
21
|
+
/** Aria label for the search input, providing an accessible description */
|
|
22
22
|
this.tdsSearchAriaLabel = '';
|
|
23
23
|
this.verticalDividers = false;
|
|
24
24
|
this.compactDesign = false;
|
|
@@ -76,13 +76,13 @@ const TdsTableToolbar = class {
|
|
|
76
76
|
return styles;
|
|
77
77
|
}
|
|
78
78
|
render() {
|
|
79
|
-
return (index.h(index.Host, { key: '
|
|
79
|
+
return (index.h(index.Host, { key: 'be05d6c6aea404550a6717e89d10b8927e135ff1', class: {
|
|
80
80
|
'tds-table--compact': this.compactDesign,
|
|
81
81
|
'toolbar__horizontal-scroll': !!this.horizontalScrollWidth,
|
|
82
|
-
}, style: this.getStyles(), "aria-labelledby": "table-toolbar-title" }, index.h("div", { key: '
|
|
82
|
+
}, style: this.getStyles(), "aria-labelledby": "table-toolbar-title" }, index.h("div", { key: '7a352d94ee0b3d66cb5aff378bbaa50ab7cf7570', class: "tds-table__upper-bar-flex" }, index.h("div", { key: '0d5e20bcf75ee696d3fb6b9aabbe81e4d06caca3', class: "tds-table__actionbar-left" }, this.tableTitle && (index.h("caption", { key: '4fbd20e21eed929f095ed9ccc7b0976745a44d5c', id: "table-toolbar-title", class: "tds-table__title" }, this.tableTitle)), index.h("slot", { key: '1f27b7ee7619d5fa0f3d7955d8389fd0a6ad240e', name: "start" })), index.h("div", { key: 'e1834ffef99023a09055afceabb3881b8dc9282e', class: "tds-table__actionbar" }, this.filter && (index.h("div", { key: 'b19d36b835ae78223f7aff455b7b737c9bd7e8b1', class: "tds-table__searchbar" }, index.h("input", { key: '0dc7030b377d68a4f38af12938a775f56a66f916', class: "tds-table__searchbar-input", type: "text", onKeyUp: (event) => this.handleSearch(event), "aria-label": this.tdsSearchAriaLabel }), index.h("span", { key: '78ba2ad22e558359f43e6a3962df1cd62f5df087', class: "tds-table__searchbar-icon" }, index.h("tds-icon", { key: 'ccb72495379cf0bfed59263efc3c36bc9d004b55', name: "search", size: "20px" })))), index.h("slot", { key: 'baefd115b4f5b42a203698afdc9ce7b6d3a28d89', name: "end" })))));
|
|
83
83
|
}
|
|
84
84
|
get host() { return index.getElement(this); }
|
|
85
85
|
};
|
|
86
|
-
TdsTableToolbar.style =
|
|
86
|
+
TdsTableToolbar.style = tableToolbarCss();
|
|
87
87
|
|
|
88
88
|
exports.tds_table_toolbar = TdsTableToolbar;
|
|
@@ -1,26 +1,40 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
var index = require('./index-DGsdvbvx.js');
|
|
4
|
+
var generateUniqueId = require('./generateUniqueId-ComXTAM_.js');
|
|
4
5
|
|
|
5
|
-
const
|
|
6
|
-
const generateUniqueId = require('./generateUniqueId-e3fc9863.js');
|
|
7
|
-
|
|
8
|
-
const tableCss = ":host,:root{--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-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}";
|
|
9
|
-
const TdsTableStyle0 = tableCss;
|
|
6
|
+
const tableCss = () => `:host,:root{--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-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}`;
|
|
10
7
|
|
|
11
8
|
const TdsTable = class {
|
|
12
9
|
constructor(hostRef) {
|
|
13
10
|
index.registerInstance(this, hostRef);
|
|
14
11
|
this.internalTdsTablePropChange = index.createEvent(this, "internalTdsTablePropChange", 6);
|
|
12
|
+
/** Enables style with vertical dividers between columns */
|
|
15
13
|
this.verticalDividers = false;
|
|
14
|
+
/** Enables style where Table toolbar, rows and footer are less high */
|
|
16
15
|
this.compactDesign = false;
|
|
17
|
-
this
|
|
16
|
+
// TODO: Due to unknown reason, one of this items has to be left as is.
|
|
17
|
+
// If all are false, it seems like emitting is not properly done and it affects other events in Table.
|
|
18
|
+
// Try setting it and observe text-align set on header cell
|
|
19
|
+
/** Enables multiselect feature of Table */
|
|
18
20
|
this.multiselect = false;
|
|
21
|
+
/** Enables extended row feature of Table */
|
|
19
22
|
this.expandableRows = false;
|
|
23
|
+
/** Enables Table to take 100% available width with equal spacing of columns */
|
|
20
24
|
this.responsive = false;
|
|
25
|
+
/** Variant of the component, based on current mode. */
|
|
21
26
|
this.modeVariant = null;
|
|
27
|
+
/** Enables zebra stripe mode on the table rows or columns. */
|
|
22
28
|
this.zebraMode = 'none';
|
|
29
|
+
/** Width of the table, used as the constraint for horizontal scrolling.
|
|
30
|
+
* **NOTE**: this will disable usage of the responsive flag
|
|
31
|
+
* */
|
|
23
32
|
this.horizontalScrollWidth = null;
|
|
33
|
+
/** ID used for internal Table functionality and events, must be unique.
|
|
34
|
+
*
|
|
35
|
+
* **NOTE**: If you're listening for Table events, you need to set this ID yourself to identify the Table,
|
|
36
|
+
* as the default ID is random and will be different every time.
|
|
37
|
+
*/
|
|
24
38
|
this.tableId = generateUniqueId.generateUniqueId();
|
|
25
39
|
this.enableHorizontalScrollToolbarDesign = false;
|
|
26
40
|
this.enableHorizontalScrollFooterDesign = false;
|
|
@@ -34,10 +48,13 @@ const TdsTable = class {
|
|
|
34
48
|
}
|
|
35
49
|
/** Returns all selected rows data. */
|
|
36
50
|
async getSelectedRows() {
|
|
37
|
-
var _a;
|
|
51
|
+
var _a, _b;
|
|
38
52
|
let selectedRowsData = [];
|
|
39
53
|
const tableBody = this.host.querySelector('tds-table-body');
|
|
40
|
-
|
|
54
|
+
// Get both regular rows and expandable rows
|
|
55
|
+
const regularRows = Array.from((_a = tableBody === null || tableBody === void 0 ? void 0 : tableBody.querySelectorAll('tds-table-body-row')) !== null && _a !== void 0 ? _a : []).filter((element) => element.selected);
|
|
56
|
+
const expandableRows = Array.from((_b = tableBody === null || tableBody === void 0 ? void 0 : tableBody.querySelectorAll('tds-table-body-row-expandable')) !== null && _b !== void 0 ? _b : []).filter((element) => element.selected);
|
|
57
|
+
const selectedRows = [...regularRows, ...expandableRows];
|
|
41
58
|
selectedRows.forEach((row) => {
|
|
42
59
|
let selectedRow = [];
|
|
43
60
|
const rowCells = Array.from(row.getElementsByTagName('tds-body-cell'));
|
|
@@ -96,11 +113,11 @@ const TdsTable = class {
|
|
|
96
113
|
}
|
|
97
114
|
}
|
|
98
115
|
render() {
|
|
99
|
-
return (index.h(index.Host, { key: '
|
|
116
|
+
return (index.h(index.Host, { key: '677bf0b8c1df0154c90438ad8af1c947b701a1f8', class: {
|
|
100
117
|
'tds-table--responsive': this.responsive,
|
|
101
118
|
'tds-mode-variant-primary': this.modeVariant === 'primary',
|
|
102
119
|
'tds-mode-variant-secondary': this.modeVariant === 'secondary',
|
|
103
|
-
} }, index.h("table", { key: '
|
|
120
|
+
} }, index.h("table", { key: '673a4b1bae0b0430760697b0312611d0a91421bf', style: this.getStyles(), class: {
|
|
104
121
|
'tds-table': true,
|
|
105
122
|
'tds-table--compact': this.compactDesign,
|
|
106
123
|
'tds-table--divider': this.verticalDividers,
|
|
@@ -111,20 +128,36 @@ const TdsTable = class {
|
|
|
111
128
|
'tds-table--horizontal-scroll-toolbar-compact': this.enableHorizontalScrollToolbarDesign && this.compactDesign,
|
|
112
129
|
'tds-table--horizontal-scroll-footer': this.enableHorizontalScrollFooterDesign && !this.compactDesign,
|
|
113
130
|
'tds-table--horizontal-scroll-footer-compact': this.enableHorizontalScrollFooterDesign && this.compactDesign,
|
|
114
|
-
} }, index.h("slot", { key: '
|
|
131
|
+
} }, index.h("slot", { key: '218dfb52cd9498b0c72839dd6d0c2f4bb71a89cb' }))));
|
|
115
132
|
}
|
|
116
133
|
get host() { return index.getElement(this); }
|
|
117
134
|
static get watchers() { return {
|
|
118
|
-
"multiselect": [
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
"
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
"
|
|
125
|
-
|
|
135
|
+
"multiselect": [{
|
|
136
|
+
"multiselectChanged": 0
|
|
137
|
+
}],
|
|
138
|
+
"expandableRows": [{
|
|
139
|
+
"enableExpandableRowsChanged": 0
|
|
140
|
+
}],
|
|
141
|
+
"compactDesign": [{
|
|
142
|
+
"compactDesignChanged": 0
|
|
143
|
+
}],
|
|
144
|
+
"verticalDividers": [{
|
|
145
|
+
"verticalDividersChanged": 0
|
|
146
|
+
}],
|
|
147
|
+
"noMinWidth": [{
|
|
148
|
+
"noMinWidthChanged": 0
|
|
149
|
+
}],
|
|
150
|
+
"zebraMode": [{
|
|
151
|
+
"zebraModeChanged": 0
|
|
152
|
+
}],
|
|
153
|
+
"modeVariant": [{
|
|
154
|
+
"modeVariantChanged": 0
|
|
155
|
+
}],
|
|
156
|
+
"horizontalScrollWidth": [{
|
|
157
|
+
"widthChanged": 0
|
|
158
|
+
}]
|
|
126
159
|
}; }
|
|
127
160
|
};
|
|
128
|
-
TdsTable.style =
|
|
161
|
+
TdsTable.style = tableCss();
|
|
129
162
|
|
|
130
163
|
exports.tds_table = TdsTable;
|
|
@@ -1,30 +1,28 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
var index = require('./index-DGsdvbvx.js');
|
|
4
|
+
var hasSlot = require('./hasSlot-D-DVNhGg.js');
|
|
4
5
|
|
|
5
|
-
const
|
|
6
|
-
const hasSlot = require('./hasSlot-1c90e9ba.js');
|
|
7
|
-
|
|
8
|
-
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}";
|
|
9
|
-
const TdsTagStyle0 = tagCss;
|
|
6
|
+
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}`;
|
|
10
7
|
|
|
11
8
|
const TdsTag = class {
|
|
12
9
|
constructor(hostRef) {
|
|
13
10
|
index.registerInstance(this, hostRef);
|
|
14
|
-
|
|
11
|
+
/** Sets the size of the tag */
|
|
15
12
|
this.size = 'lg';
|
|
13
|
+
/** Sets the variant mode of the tag */
|
|
16
14
|
this.variant = 'Neutral';
|
|
17
15
|
}
|
|
18
16
|
render() {
|
|
19
17
|
const hasPrefixSlot = hasSlot.hasSlot('prefix', this.host);
|
|
20
18
|
const getTagClasses = () => ({
|
|
21
19
|
[`${this.size.toLowerCase()}`]: true,
|
|
22
|
-
[
|
|
20
|
+
[this.variant.toLowerCase()]: true,
|
|
23
21
|
});
|
|
24
|
-
return (index.h(index.Host, { key: '
|
|
22
|
+
return (index.h(index.Host, { key: '2521098fe251ec50aee644245e26ab39b5ef7109', class: getTagClasses() }, index.h("div", { key: '5b4964c3589f3a43d7751198a79a514d55e04ac5', class: "tds-tag__content" }, hasPrefixSlot && index.h("slot", { key: '241aa451188336040446248322c3a1560b69cd20', name: "prefix" }), index.h("span", { key: '9bea95c3f292ef6c4767ba9461f13b47fc5b2a50' }, this.text))));
|
|
25
23
|
}
|
|
26
24
|
get host() { return index.getElement(this); }
|
|
27
25
|
};
|
|
28
|
-
TdsTag.style =
|
|
26
|
+
TdsTag.style = tagCss();
|
|
29
27
|
|
|
30
28
|
exports.tds_tag = TdsTag;
|