@scania/tegel 1.40.0-stencil-core-4.38.1-beta.0 → 1.40.0-ts-strict-mode-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/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/index-ca8040ad.js +2039 -0
- package/dist/cjs/{inheritAriaAttributes-D_xFGssc.js → inheritAriaAttributes-dedbbc57.js} +1 -1
- package/dist/cjs/{isHeadingElement-DihKNeqS.js → isHeadingElement-4f06b688.js} +1 -1
- package/dist/cjs/loader.cjs.js +6 -3
- package/dist/cjs/tds-accordion-item.cjs.entry.js +6 -9
- package/dist/cjs/tds-accordion.cjs.entry.js +7 -6
- package/dist/cjs/tds-badge.cjs.entry.js +5 -6
- package/dist/cjs/tds-banner.cjs.entry.js +14 -18
- package/dist/cjs/tds-block.cjs.entry.js +6 -5
- package/dist/cjs/tds-body-cell.cjs.entry.js +13 -6
- package/dist/cjs/tds-breadcrumb.cjs.entry.js +5 -3
- package/dist/cjs/tds-breadcrumbs.cjs.entry.js +6 -2
- package/dist/cjs/tds-button_2.cjs.entry.js +19 -18
- package/dist/cjs/tds-card.cjs.entry.js +21 -30
- package/dist/cjs/tds-checkbox.cjs.entry.js +21 -16
- package/dist/cjs/tds-chip.cjs.entry.js +15 -18
- package/dist/cjs/tds-core-header-item_2.cjs.entry.js +17 -12
- package/dist/cjs/tds-datetime.cjs.entry.js +31 -32
- package/dist/cjs/tds-dropdown_2.cjs.entry.js +99 -88
- package/dist/cjs/tds-folder-tab.cjs.entry.js +6 -3
- package/dist/cjs/tds-folder-tabs.cjs.entry.js +23 -16
- package/dist/cjs/tds-footer-group.cjs.entry.js +17 -11
- package/dist/cjs/tds-footer-item.cjs.entry.js +12 -5
- package/dist/cjs/tds-footer.cjs.entry.js +9 -7
- package/dist/cjs/tds-header-brand-symbol.cjs.entry.js +7 -4
- package/dist/cjs/tds-header-cell.cjs.entry.js +32 -23
- package/dist/cjs/tds-header-dropdown-list-item.cjs.entry.js +5 -4
- package/dist/cjs/tds-header-dropdown-list-user.cjs.entry.js +9 -2
- package/dist/cjs/tds-header-dropdown-list.cjs.entry.js +13 -8
- package/dist/cjs/tds-header-dropdown.cjs.entry.js +19 -13
- package/dist/cjs/tds-header-hamburger.cjs.entry.js +8 -4
- package/dist/cjs/tds-header-launcher-button.cjs.entry.js +8 -6
- package/dist/cjs/tds-header-launcher-grid-item.cjs.entry.js +5 -2
- package/dist/cjs/tds-header-launcher-grid-title.cjs.entry.js +6 -3
- package/dist/cjs/tds-header-launcher-grid.cjs.entry.js +8 -4
- package/dist/cjs/tds-header-launcher-list-item.cjs.entry.js +5 -2
- package/dist/cjs/tds-header-launcher-list-title.cjs.entry.js +6 -3
- package/dist/cjs/tds-header-launcher-list.cjs.entry.js +4 -2
- package/dist/cjs/tds-header-launcher.cjs.entry.js +19 -10
- package/dist/cjs/tds-header-title.cjs.entry.js +6 -3
- package/dist/cjs/tds-header.cjs.entry.js +15 -10
- package/dist/cjs/tds-icon.cjs.entry.js +13 -12
- package/dist/cjs/tds-inline-tab.cjs.entry.js +5 -3
- package/dist/cjs/tds-inline-tabs.cjs.entry.js +23 -17
- package/dist/cjs/tds-link.cjs.entry.js +5 -5
- package/dist/cjs/tds-message.cjs.entry.js +15 -15
- package/dist/cjs/tds-modal.cjs.entry.js +23 -22
- package/dist/cjs/tds-navigation-tab.cjs.entry.js +5 -3
- package/dist/cjs/tds-navigation-tabs.cjs.entry.js +25 -19
- package/dist/cjs/tds-popover-canvas.cjs.entry.js +13 -19
- package/dist/cjs/tds-popover-core.cjs.entry.js +45 -47
- package/dist/cjs/tds-popover-menu-item.cjs.entry.js +5 -3
- package/dist/cjs/tds-popover-menu.cjs.entry.js +13 -18
- package/dist/cjs/tds-radio-button.cjs.entry.js +18 -12
- package/dist/cjs/tds-side-menu-close-button.cjs.entry.js +7 -4
- package/dist/cjs/tds-side-menu-collapse-button.cjs.entry.js +11 -7
- package/dist/cjs/tds-side-menu-dropdown-list-item.cjs.entry.js +18 -12
- package/dist/cjs/tds-side-menu-dropdown-list.cjs.entry.js +8 -5
- package/dist/cjs/tds-side-menu-dropdown.cjs.entry.js +12 -9
- package/dist/cjs/tds-side-menu-item.cjs.entry.js +21 -15
- package/dist/cjs/tds-side-menu-overlay.cjs.entry.js +5 -2
- package/dist/cjs/tds-side-menu-user-image_2.cjs.entry.js +11 -3
- package/dist/cjs/tds-side-menu-user.cjs.entry.js +9 -2
- package/dist/cjs/tds-side-menu.cjs.entry.js +24 -24
- package/dist/cjs/tds-slider.cjs.entry.js +50 -55
- package/dist/cjs/tds-spinner.cjs.entry.js +5 -4
- package/dist/cjs/tds-step.cjs.entry.js +14 -4
- package/dist/cjs/tds-stepper.cjs.entry.js +6 -13
- package/dist/cjs/tds-table-body-input-wrapper.cjs.entry.js +6 -4
- package/dist/cjs/tds-table-body-row-expandable.cjs.entry.js +24 -21
- package/dist/cjs/tds-table-body-row.cjs.entry.js +13 -10
- package/dist/cjs/tds-table-body.cjs.entry.js +20 -12
- package/dist/cjs/tds-table-footer.cjs.entry.js +31 -28
- package/dist/cjs/tds-table-header-input-wrapper.cjs.entry.js +6 -4
- package/dist/cjs/tds-table-header.cjs.entry.js +30 -23
- package/dist/cjs/tds-table-toolbar.cjs.entry.js +11 -9
- package/dist/cjs/tds-table.cjs.entry.js +21 -33
- package/dist/cjs/tds-tag.cjs.entry.js +7 -5
- package/dist/cjs/tds-text-field.cjs.entry.js +20 -28
- package/dist/cjs/tds-textarea.cjs.entry.js +18 -20
- package/dist/cjs/tds-toast.cjs.entry.js +16 -16
- package/dist/cjs/tds-toggle.cjs.entry.js +19 -17
- package/dist/cjs/tds-tooltip.cjs.entry.js +23 -29
- package/dist/cjs/tegel.cjs.js +8 -7
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/accordion/accordion-item/accordion-item.js +6 -24
- package/dist/collection/components/accordion/accordion.js +6 -12
- package/dist/collection/components/badge/badge.js +4 -16
- package/dist/collection/components/banner/banner.js +18 -39
- package/dist/collection/components/block/block.js +5 -11
- package/dist/collection/components/breadcrumbs/breadcrumb/breadcrumb.js +1 -4
- package/dist/collection/components/breadcrumbs/breadcrumbs.js +5 -4
- package/dist/collection/components/button/button.js +28 -51
- package/dist/collection/components/card/card.js +32 -68
- package/dist/collection/components/checkbox/checkbox.js +29 -45
- package/dist/collection/components/chip/chip.js +20 -42
- package/dist/collection/components/datetime/datetime.js +47 -83
- package/dist/collection/components/divider/divider.js +2 -8
- package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +29 -39
- package/dist/collection/components/dropdown/dropdown.js +94 -117
- package/dist/collection/components/footer/footer-group/footer-group.css +1 -4
- package/dist/collection/components/footer/footer-group/footer-group.js +14 -15
- package/dist/collection/components/footer/footer-item/footer-item.css +3 -3
- package/dist/collection/components/footer/footer-item/footer-item.js +6 -2
- package/dist/collection/components/footer/footer.js +6 -9
- package/dist/collection/components/header/header-brand-symbol/header-brand-symbol.js +2 -2
- package/dist/collection/components/header/header-dropdown/header-dropdown.js +19 -24
- package/dist/collection/components/header/header-dropdown-list/header-dropdown-list.js +7 -7
- package/dist/collection/components/header/header-dropdown-list-item/header-dropdown-list-item.js +2 -8
- package/dist/collection/components/header/header-dropdown-list-user/header-dropdown-list-user.js +14 -16
- package/dist/collection/components/header/header-hamburger/header-hamburger.js +5 -4
- package/dist/collection/components/header/header-item/header-item.js +11 -14
- package/dist/collection/components/header/header-launcher/header-launcher.js +13 -9
- package/dist/collection/components/header/header-launcher-button/header-launcher-button.js +4 -9
- package/dist/collection/components/header/header-launcher-grid/header-launcher-grid.js +3 -0
- package/dist/collection/components/header/header-title/header-title.css +0 -2
- package/dist/collection/components/header/header.js +8 -6
- package/dist/collection/components/icon/icon.js +18 -30
- package/dist/collection/components/link/link.js +3 -12
- package/dist/collection/components/message/message.js +20 -37
- package/dist/collection/components/modal/modal.js +31 -51
- package/dist/collection/components/popover-canvas/popover-canvas.js +23 -54
- package/dist/collection/components/popover-core/popover-core.js +49 -83
- package/dist/collection/components/popover-menu/popover-menu-item/popover-menu-item.js +1 -4
- package/dist/collection/components/popover-menu/popover-menu.js +23 -51
- package/dist/collection/components/radio-button/radio-button.js +24 -37
- package/dist/collection/components/side-menu/side-menu-collapse-button/side-menu-collapse-button.js +6 -5
- package/dist/collection/components/side-menu/side-menu-dropdown/side-menu-dropdown.js +12 -20
- package/dist/collection/components/side-menu/side-menu-dropdown-list/side-menu-dropdown-list.js +3 -3
- package/dist/collection/components/side-menu/side-menu-dropdown-list-item/side-menu-dropdown-list-item.js +14 -13
- package/dist/collection/components/side-menu/side-menu-item/side-menu-item.js +17 -18
- package/dist/collection/components/side-menu/side-menu-user/side-menu-user.js +14 -16
- package/dist/collection/components/side-menu/side-menu-user-image/side-menu-user-image.js +8 -8
- package/dist/collection/components/side-menu/side-menu-user-label/side-menu-user-label.js +8 -8
- package/dist/collection/components/side-menu/side-menu.js +22 -31
- package/dist/collection/components/slider/slider.js +62 -106
- package/dist/collection/components/spinner/spinner.js +2 -8
- package/dist/collection/components/stepper/step/step.js +14 -13
- package/dist/collection/components/stepper/stepper.js +6 -28
- package/dist/collection/components/table/table/table.js +48 -67
- package/dist/collection/components/table/table-body/table-body.js +15 -10
- package/dist/collection/components/table/table-body-cell/table-body-cell.js +18 -22
- package/dist/collection/components/table/table-body-input-wrapper/table-body-input-wrapper.js +2 -5
- package/dist/collection/components/table/table-body-row/table-body-row.js +16 -22
- package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js +31 -43
- package/dist/collection/components/table/table-footer/table-footer.js +36 -48
- package/dist/collection/components/table/table-header/table-header.js +33 -37
- package/dist/collection/components/table/table-header-cell/table-header-cell.js +49 -57
- package/dist/collection/components/table/table-header-input-wrapper/table-header-input-wrapper.js +3 -8
- package/dist/collection/components/table/table-toolbar/table-toolbar.js +11 -18
- package/dist/collection/components/tabs/folder-tabs/folder-tab/folder-tab.js +2 -4
- package/dist/collection/components/tabs/folder-tabs/folder-tabs.js +26 -32
- package/dist/collection/components/tabs/inline-tabs/inline-tab/inline-tab.js +1 -4
- package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +25 -34
- package/dist/collection/components/tabs/navigation-tabs/navigation-tab/navigation-tab.js +1 -4
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +27 -36
- package/dist/collection/components/tag/tag.js +5 -12
- package/dist/collection/components/text-field/text-field.js +40 -93
- package/dist/collection/components/textarea/textarea.js +35 -74
- package/dist/collection/components/toast/toast.js +21 -42
- package/dist/collection/components/toggle/toggle.js +24 -41
- package/dist/collection/components/tooltip/tooltip.js +33 -64
- package/dist/collection/utils/appendHiddenInput.js +6 -4
- package/dist/components/index.js +1 -1790
- package/dist/components/{p-Q3W78DlP.js → p-0bd4c19c.js} +1 -1
- package/dist/components/{p-D1ati-pM.js → p-0d286c19.js} +11 -13
- package/dist/components/p-28ef5186.js +1507 -0
- package/dist/components/{p-FqP1yGh_.js → p-381677ec.js} +6 -9
- package/dist/components/{p-CMsPXG7a.js → p-3f2187a4.js} +8 -7
- package/dist/components/{p-B569z5eW.js → p-415fafb3.js} +15 -25
- package/dist/components/{p-X1sPx4t5.js → p-6fd2b339.js} +46 -52
- package/dist/components/{p-ChCWm6If.js → p-799470b1.js} +18 -20
- package/dist/components/{p-BiyghEA7.js → p-7e02ea3e.js} +76 -59
- package/dist/components/{p-CuIyaNyT.js → p-859e3ebf.js} +1 -1
- package/dist/components/{p-Ee9QeMgy.js → p-98d082f9.js} +33 -45
- package/dist/components/{p-Ip9G3co9.js → p-a64cbc40.js} +24 -36
- package/dist/components/{p-DnzQe_HU.js → p-ad376f70.js} +25 -35
- package/dist/components/{p-DuxH3vDC.js → p-bff614d5.js} +8 -7
- package/dist/components/{p-QnvG_QPu.js → p-da11a695.js} +13 -12
- package/dist/components/{p-HRj1DOvh.js → p-de86852a.js} +6 -9
- package/dist/components/{p-BxmFjTxG.js → p-e0ccf8e6.js} +22 -20
- package/dist/components/{p-BhLq7lgx.js → p-e1622f4a.js} +6 -7
- package/dist/components/{p-Ca3wGDna.js → p-e627f11b.js} +22 -21
- package/dist/components/{p-BHBgkUfr.js → p-ead6727f.js} +17 -17
- package/dist/components/{p-CPDv0bBc.js → p-edc838a0.js} +14 -17
- package/dist/components/tds-accordion-item.js +8 -15
- package/dist/components/tds-accordion.js +8 -11
- package/dist/components/tds-badge.js +6 -11
- package/dist/components/tds-banner.js +16 -24
- package/dist/components/tds-block.js +7 -10
- package/dist/components/tds-body-cell.js +15 -12
- package/dist/components/tds-breadcrumb.js +6 -8
- package/dist/components/tds-breadcrumbs.js +7 -7
- package/dist/components/tds-button.js +1 -1
- package/dist/components/tds-card.js +25 -38
- package/dist/components/tds-checkbox.js +1 -1
- package/dist/components/tds-chip.js +16 -23
- package/dist/components/tds-core-header-item.js +1 -1
- package/dist/components/tds-datetime.js +33 -38
- 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 +7 -8
- package/dist/components/tds-folder-tabs.js +25 -22
- package/dist/components/tds-footer-group.js +19 -17
- package/dist/components/tds-footer-item.js +13 -10
- package/dist/components/tds-footer.js +10 -12
- package/dist/components/tds-header-brand-symbol.js +10 -11
- package/dist/components/tds-header-cell.js +34 -29
- package/dist/components/tds-header-dropdown-list-item.js +1 -1
- package/dist/components/tds-header-dropdown-list-user.js +10 -7
- package/dist/components/tds-header-dropdown-list.js +1 -1
- package/dist/components/tds-header-dropdown.js +25 -23
- package/dist/components/tds-header-hamburger.js +11 -11
- 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 +6 -7
- package/dist/components/tds-header-launcher-grid-title.js +7 -8
- package/dist/components/tds-header-launcher-grid.js +8 -8
- package/dist/components/tds-header-launcher-list-item.js +7 -8
- package/dist/components/tds-header-launcher-list-title.js +7 -8
- package/dist/components/tds-header-launcher-list.js +6 -8
- package/dist/components/tds-header-launcher.js +25 -20
- package/dist/components/tds-header-title.js +7 -8
- package/dist/components/tds-header.js +15 -14
- package/dist/components/tds-icon.js +1 -1
- package/dist/components/tds-inline-tab.js +6 -8
- package/dist/components/tds-inline-tabs.js +25 -23
- package/dist/components/tds-link.js +6 -10
- package/dist/components/tds-message.js +17 -21
- package/dist/components/tds-modal.js +25 -28
- package/dist/components/tds-navigation-tab.js +6 -8
- package/dist/components/tds-navigation-tabs.js +27 -25
- 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 +6 -8
- package/dist/components/tds-popover-menu.js +15 -24
- package/dist/components/tds-radio-button.js +19 -17
- package/dist/components/tds-side-menu-close-button.js +8 -9
- package/dist/components/tds-side-menu-collapse-button.js +13 -13
- package/dist/components/tds-side-menu-dropdown-list-item.js +19 -17
- package/dist/components/tds-side-menu-dropdown-list.js +9 -10
- package/dist/components/tds-side-menu-dropdown.js +15 -16
- package/dist/components/tds-side-menu-item.js +1 -1
- package/dist/components/tds-side-menu-overlay.js +6 -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 +12 -9
- package/dist/components/tds-side-menu.js +25 -29
- package/dist/components/tds-slider.js +55 -64
- package/dist/components/tds-spinner.js +6 -9
- package/dist/components/tds-step.js +16 -10
- package/dist/components/tds-stepper.js +7 -18
- package/dist/components/tds-table-body-input-wrapper.js +8 -10
- package/dist/components/tds-table-body-row-expandable.js +25 -26
- package/dist/components/tds-table-body-row.js +15 -16
- package/dist/components/tds-table-body.js +21 -17
- package/dist/components/tds-table-footer.js +36 -37
- package/dist/components/tds-table-header-input-wrapper.js +8 -10
- package/dist/components/tds-table-header.js +32 -29
- package/dist/components/tds-table-toolbar.js +13 -15
- package/dist/components/tds-table.js +22 -38
- package/dist/components/tds-tag.js +8 -10
- package/dist/components/tds-text-field.js +1 -1
- package/dist/components/tds-textarea.js +22 -28
- package/dist/components/tds-toast.js +18 -22
- package/dist/components/tds-toggle.js +20 -22
- package/dist/components/tds-tooltip.js +1 -1
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/index-51d04e39.js +2009 -0
- package/dist/esm/{inheritAriaAttributes-DyLhgCIg.js → inheritAriaAttributes-04f2f252.js} +1 -1
- package/dist/esm/{isHeadingElement-BQco7VNg.js → isHeadingElement-8efea284.js} +1 -1
- package/dist/esm/loader.js +4 -3
- package/dist/esm/tds-accordion-item.entry.js +4 -9
- package/dist/esm/tds-accordion.entry.js +5 -6
- package/dist/esm/tds-badge.entry.js +3 -6
- package/dist/esm/tds-banner.entry.js +12 -18
- package/dist/esm/tds-block.entry.js +4 -5
- package/dist/esm/tds-body-cell.entry.js +11 -6
- package/dist/esm/tds-breadcrumb.entry.js +3 -3
- package/dist/esm/tds-breadcrumbs.entry.js +4 -2
- package/dist/esm/tds-button_2.entry.js +17 -18
- package/dist/esm/tds-card.entry.js +19 -30
- package/dist/esm/tds-checkbox.entry.js +19 -16
- package/dist/esm/tds-chip.entry.js +13 -18
- package/dist/esm/tds-core-header-item_2.entry.js +15 -12
- package/dist/esm/tds-datetime.entry.js +29 -32
- package/dist/esm/tds-dropdown_2.entry.js +97 -88
- package/dist/esm/tds-folder-tab.entry.js +4 -3
- package/dist/esm/tds-folder-tabs.entry.js +21 -16
- package/dist/esm/tds-footer-group.entry.js +15 -11
- package/dist/esm/tds-footer-item.entry.js +10 -5
- package/dist/esm/tds-footer.entry.js +7 -7
- package/dist/esm/tds-header-brand-symbol.entry.js +5 -4
- package/dist/esm/tds-header-cell.entry.js +30 -23
- package/dist/esm/tds-header-dropdown-list-item.entry.js +3 -4
- package/dist/esm/tds-header-dropdown-list-user.entry.js +7 -2
- package/dist/esm/tds-header-dropdown-list.entry.js +11 -8
- package/dist/esm/tds-header-dropdown.entry.js +17 -13
- package/dist/esm/tds-header-hamburger.entry.js +6 -4
- package/dist/esm/tds-header-launcher-button.entry.js +6 -6
- package/dist/esm/tds-header-launcher-grid-item.entry.js +3 -2
- package/dist/esm/tds-header-launcher-grid-title.entry.js +4 -3
- package/dist/esm/tds-header-launcher-grid.entry.js +6 -4
- package/dist/esm/tds-header-launcher-list-item.entry.js +3 -2
- package/dist/esm/tds-header-launcher-list-title.entry.js +4 -3
- package/dist/esm/tds-header-launcher-list.entry.js +2 -2
- package/dist/esm/tds-header-launcher.entry.js +17 -10
- package/dist/esm/tds-header-title.entry.js +4 -3
- package/dist/esm/tds-header.entry.js +13 -10
- package/dist/esm/tds-icon.entry.js +11 -12
- package/dist/esm/tds-inline-tab.entry.js +3 -3
- package/dist/esm/tds-inline-tabs.entry.js +21 -17
- package/dist/esm/tds-link.entry.js +3 -5
- package/dist/esm/tds-message.entry.js +13 -15
- package/dist/esm/tds-modal.entry.js +21 -22
- package/dist/esm/tds-navigation-tab.entry.js +3 -3
- package/dist/esm/tds-navigation-tabs.entry.js +23 -19
- package/dist/esm/tds-popover-canvas.entry.js +11 -19
- package/dist/esm/tds-popover-core.entry.js +43 -47
- package/dist/esm/tds-popover-menu-item.entry.js +3 -3
- package/dist/esm/tds-popover-menu.entry.js +11 -18
- package/dist/esm/tds-radio-button.entry.js +16 -12
- package/dist/esm/tds-side-menu-close-button.entry.js +5 -4
- package/dist/esm/tds-side-menu-collapse-button.entry.js +9 -7
- package/dist/esm/tds-side-menu-dropdown-list-item.entry.js +16 -12
- package/dist/esm/tds-side-menu-dropdown-list.entry.js +6 -5
- package/dist/esm/tds-side-menu-dropdown.entry.js +10 -9
- package/dist/esm/tds-side-menu-item.entry.js +19 -15
- package/dist/esm/tds-side-menu-overlay.entry.js +3 -2
- package/dist/esm/tds-side-menu-user-image_2.entry.js +9 -3
- package/dist/esm/tds-side-menu-user.entry.js +7 -2
- package/dist/esm/tds-side-menu.entry.js +22 -24
- package/dist/esm/tds-slider.entry.js +48 -55
- package/dist/esm/tds-spinner.entry.js +3 -4
- package/dist/esm/tds-step.entry.js +12 -4
- package/dist/esm/tds-stepper.entry.js +4 -13
- package/dist/esm/tds-table-body-input-wrapper.entry.js +4 -4
- package/dist/esm/tds-table-body-row-expandable.entry.js +22 -21
- package/dist/esm/tds-table-body-row.entry.js +11 -10
- package/dist/esm/tds-table-body.entry.js +18 -12
- package/dist/esm/tds-table-footer.entry.js +29 -28
- package/dist/esm/tds-table-header-input-wrapper.entry.js +4 -4
- package/dist/esm/tds-table-header.entry.js +28 -23
- package/dist/esm/tds-table-toolbar.entry.js +9 -9
- package/dist/esm/tds-table.entry.js +19 -33
- package/dist/esm/tds-tag.entry.js +5 -5
- package/dist/esm/tds-text-field.entry.js +18 -28
- package/dist/esm/tds-textarea.entry.js +16 -20
- package/dist/esm/tds-toast.entry.js +14 -16
- package/dist/esm/tds-toggle.entry.js +17 -17
- package/dist/esm/tds-tooltip.entry.js +21 -29
- package/dist/esm/tegel.js +5 -5
- package/dist/tegel/p-08c16b2f.entry.js +1 -0
- package/dist/tegel/p-0b37e91a.entry.js +1 -0
- package/dist/tegel/{p-Q3W78DlP.js → p-0bd4c19c.js} +1 -1
- package/dist/tegel/{p-e22a2a9b.entry.js → p-133351b5.entry.js} +1 -1
- package/dist/tegel/p-177386d5.entry.js +1 -0
- package/dist/tegel/p-1b471db7.entry.js +1 -0
- package/dist/tegel/p-1e1a87c1.entry.js +1 -0
- package/dist/tegel/p-2049fab2.js +2 -0
- package/dist/tegel/p-2268af7f.entry.js +1 -0
- package/dist/tegel/p-252a7d3f.entry.js +1 -0
- package/dist/tegel/p-25473962.entry.js +1 -0
- package/dist/tegel/{p-59a1c10f.entry.js → p-27369d6a.entry.js} +1 -1
- package/dist/tegel/{p-03d1456f.entry.js → p-2766b46f.entry.js} +1 -1
- package/dist/tegel/p-27d39882.entry.js +1 -0
- package/dist/tegel/{p-449e8c13.entry.js → p-2faeb483.entry.js} +1 -1
- package/dist/tegel/{p-dfd5a301.entry.js → p-304f5a5c.entry.js} +1 -1
- package/dist/tegel/p-3c348fcb.entry.js +1 -0
- package/dist/tegel/p-3ef04672.entry.js +1 -0
- package/dist/tegel/p-40d99d7d.entry.js +1 -0
- package/dist/tegel/p-40fa0f5b.entry.js +1 -0
- package/dist/tegel/p-48a3e489.entry.js +1 -0
- package/dist/tegel/{p-b2bfe0fb.entry.js → p-4b5e15cc.entry.js} +1 -1
- package/dist/tegel/p-4de2807c.entry.js +1 -0
- package/dist/tegel/p-4e15f31d.entry.js +1 -0
- package/dist/tegel/p-57c08d0d.entry.js +1 -0
- package/dist/tegel/p-58ac68f3.entry.js +1 -0
- package/dist/tegel/p-5c8fd75e.entry.js +1 -0
- package/dist/tegel/{p-3910b9e0.entry.js → p-646d1df4.entry.js} +1 -1
- package/dist/tegel/{p-08d8a464.entry.js → p-655051b6.entry.js} +1 -1
- package/dist/tegel/p-6a472310.entry.js +1 -0
- package/dist/tegel/p-7104b955.entry.js +1 -0
- package/dist/tegel/{p-69bf3133.entry.js → p-771f53c2.entry.js} +1 -1
- package/dist/tegel/p-781b2939.entry.js +1 -0
- package/dist/tegel/{p-8ad8234f.entry.js → p-87219f00.entry.js} +1 -1
- package/dist/tegel/{p-37aa4516.entry.js → p-88bb1059.entry.js} +1 -1
- package/dist/tegel/p-894e7e11.entry.js +1 -0
- package/dist/tegel/{p-2c5e101e.entry.js → p-8a4837ae.entry.js} +1 -1
- package/dist/tegel/{p-Bx66i7RU.js → p-9332c225.js} +1 -1
- package/dist/tegel/p-942f8c6f.entry.js +1 -0
- package/dist/tegel/p-98eff725.entry.js +1 -0
- package/dist/tegel/p-9b06bd5f.entry.js +1 -0
- package/dist/tegel/p-9c56b031.entry.js +1 -0
- package/dist/tegel/p-a20a54ef.entry.js +1 -0
- package/dist/tegel/p-a2b2092a.entry.js +1 -0
- package/dist/tegel/p-a334b517.entry.js +1 -0
- package/dist/tegel/p-a4e4c450.entry.js +1 -0
- package/dist/tegel/p-a60ed3de.entry.js +1 -0
- package/dist/tegel/p-a6dca188.entry.js +1 -0
- package/dist/tegel/p-a912035b.entry.js +1 -0
- package/dist/tegel/p-ab00e6e4.entry.js +1 -0
- package/dist/tegel/p-b218db70.entry.js +1 -0
- package/dist/tegel/p-b3b13975.entry.js +1 -0
- package/dist/tegel/{p-0a3bd804.entry.js → p-b734b309.entry.js} +1 -1
- package/dist/tegel/p-b7abb81f.entry.js +1 -0
- package/dist/tegel/{p-a595dba7.entry.js → p-b9afb39e.entry.js} +1 -1
- package/dist/tegel/p-bb8c2a36.entry.js +1 -0
- package/dist/tegel/p-bcd5e06d.entry.js +1 -0
- package/dist/tegel/p-bee9e9d1.entry.js +1 -0
- package/dist/tegel/{p-628798d4.entry.js → p-c163d44f.entry.js} +1 -1
- package/dist/tegel/p-c23a3f12.entry.js +1 -0
- package/dist/tegel/{p-8d98759c.entry.js → p-c2e514b4.entry.js} +1 -1
- package/dist/tegel/{p-ec41cf1e.entry.js → p-c5694dd6.entry.js} +1 -1
- package/dist/tegel/p-ca068263.entry.js +1 -0
- package/dist/tegel/p-ca16f1ed.entry.js +1 -0
- package/dist/tegel/p-ca32a270.entry.js +1 -0
- package/dist/tegel/p-cc962b6c.entry.js +1 -0
- package/dist/tegel/{p-57def79e.entry.js → p-ceed0476.entry.js} +1 -1
- package/dist/tegel/p-d501a665.entry.js +1 -0
- package/dist/tegel/{p-99f46fe1.entry.js → p-da38aa9a.entry.js} +1 -1
- package/dist/tegel/p-dda1ac69.entry.js +1 -0
- package/dist/tegel/p-e0dc09f9.entry.js +1 -0
- package/dist/tegel/p-e1255160.js +1 -0
- package/dist/tegel/p-e29fa563.entry.js +1 -0
- package/dist/tegel/p-e6e9d11f.entry.js +1 -0
- package/dist/tegel/p-e8b58680.entry.js +1 -0
- package/dist/tegel/p-ed66ef30.entry.js +1 -0
- package/dist/tegel/p-f5ca4fbf.entry.js +1 -0
- package/dist/tegel/p-f602b3a1.entry.js +1 -0
- package/dist/tegel/p-f8a37d39.entry.js +1 -0
- package/dist/tegel/p-f922308f.entry.js +1 -0
- package/dist/tegel/p-fb300776.entry.js +1 -0
- package/dist/tegel/p-fd22d1ca.entry.js +1 -0
- package/dist/tegel/{p-b4df0131.entry.js → p-fe4335ca.entry.js} +1 -1
- package/dist/tegel/tegel.css +1 -1
- package/dist/tegel/tegel.esm.js +1 -1
- package/dist/types/components/accordion/accordion.d.ts +1 -1
- package/dist/types/components/block/block.d.ts +1 -1
- package/dist/types/components/button/button.d.ts +1 -1
- package/dist/types/components/card/card.d.ts +1 -1
- package/dist/types/components/datetime/datetime.d.ts +2 -2
- package/dist/types/components/dropdown/dropdown.d.ts +5 -5
- package/dist/types/components/footer/footer.d.ts +1 -1
- package/dist/types/components/icon/icon.d.ts +1 -1
- package/dist/types/components/message/message.d.ts +1 -1
- package/dist/types/components/modal/modal.d.ts +1 -1
- package/dist/types/components/popover-canvas/popover-canvas.d.ts +2 -2
- package/dist/types/components/popover-core/popover-core.d.ts +4 -4
- package/dist/types/components/popover-menu/popover-menu.d.ts +2 -2
- package/dist/types/components/slider/slider-stories-setup.d.ts +2 -2
- package/dist/types/components/table/table/table.d.ts +6 -3
- package/dist/types/components/table/table-body/table-body.d.ts +3 -3
- package/dist/types/components/table/table-body-cell/table-body-cell.d.ts +8 -5
- package/dist/types/components/table/table-body-input-wrapper/table-body-input-wrapper.d.ts +2 -2
- package/dist/types/components/table/table-body-row/table-body-row.d.ts +5 -5
- package/dist/types/components/table/table-body-row-expandable/table-body-row-expandable.d.ts +7 -7
- package/dist/types/components/table/table-footer/table-footer.d.ts +4 -4
- package/dist/types/components/table/table-header/table-header.d.ts +5 -5
- package/dist/types/components/table/table-header-cell/table-header-cell.d.ts +8 -8
- package/dist/types/components/table/table-header-input-wrapper/table-header-input-wrapper.d.ts +1 -1
- package/dist/types/components/table/table-toolbar/table-toolbar.d.ts +4 -4
- package/dist/types/components/tabs/folder-tabs/folder-tabs.d.ts +1 -1
- package/dist/types/components/text-field/text-field.d.ts +1 -1
- package/dist/types/components/textarea/textarea.d.ts +2 -2
- package/dist/types/components/tooltip/tooltip.d.ts +1 -1
- package/dist/types/components.d.ts +81 -623
- package/dist/types/stencil-public-runtime.d.ts +5 -78
- package/dist/types/types/Attributes.d.ts +1 -1
- package/dist/types/utils/findNextFocusableElement.d.ts +1 -1
- package/dist/types/utils/findPreviousFocusableElement.d.ts +1 -1
- package/dist/types/utils/getNextNestedChildOfSiblingsMatching.d.ts +1 -1
- package/dist/types/utils/getPreviousNestedChildOfSiblingsMatching.d.ts +1 -1
- package/loader/package.json +11 -0
- package/package.json +2 -2
- package/dist/cjs/index-Cpz8G-hs.js +0 -2379
- package/dist/collection/utils/dom.js +0 -7
- package/dist/esm/index-Cl9XBhQW.js +0 -2350
- package/dist/tegel/p-07c5665c.entry.js +0 -1
- package/dist/tegel/p-0ab44df9.entry.js +0 -1
- package/dist/tegel/p-0e8721cf.entry.js +0 -1
- package/dist/tegel/p-1371f357.entry.js +0 -1
- package/dist/tegel/p-147d2c33.entry.js +0 -1
- package/dist/tegel/p-250a843a.entry.js +0 -1
- package/dist/tegel/p-2b89b750.entry.js +0 -1
- package/dist/tegel/p-2ebac517.entry.js +0 -1
- package/dist/tegel/p-36ea4775.entry.js +0 -1
- package/dist/tegel/p-37873e68.entry.js +0 -1
- package/dist/tegel/p-39f80d1b.entry.js +0 -1
- package/dist/tegel/p-3c409856.entry.js +0 -1
- package/dist/tegel/p-3e1edb21.entry.js +0 -1
- package/dist/tegel/p-3e27eee0.entry.js +0 -1
- package/dist/tegel/p-3f0c978a.entry.js +0 -1
- package/dist/tegel/p-41fa3671.entry.js +0 -1
- package/dist/tegel/p-4b711300.entry.js +0 -1
- package/dist/tegel/p-4ebf13bf.entry.js +0 -1
- package/dist/tegel/p-599ae54d.entry.js +0 -1
- package/dist/tegel/p-5d64b236.entry.js +0 -1
- package/dist/tegel/p-6066b5be.entry.js +0 -1
- package/dist/tegel/p-620b157a.entry.js +0 -1
- package/dist/tegel/p-624a8ca4.entry.js +0 -1
- package/dist/tegel/p-63646981.entry.js +0 -1
- package/dist/tegel/p-6cad127c.entry.js +0 -1
- package/dist/tegel/p-6d3447b7.entry.js +0 -1
- package/dist/tegel/p-71943f32.entry.js +0 -1
- package/dist/tegel/p-7ba0b456.entry.js +0 -1
- package/dist/tegel/p-802e8d8a.entry.js +0 -1
- package/dist/tegel/p-80be1071.entry.js +0 -1
- package/dist/tegel/p-8501b0d7.entry.js +0 -1
- package/dist/tegel/p-8d4d136f.entry.js +0 -1
- package/dist/tegel/p-902183d7.entry.js +0 -1
- package/dist/tegel/p-936d77e4.entry.js +0 -1
- package/dist/tegel/p-942df5c4.entry.js +0 -1
- package/dist/tegel/p-9b7ad650.entry.js +0 -1
- package/dist/tegel/p-9c62f888.entry.js +0 -1
- package/dist/tegel/p-9f25060e.entry.js +0 -1
- package/dist/tegel/p-Cl9XBhQW.js +0 -2
- package/dist/tegel/p-a08baed5.entry.js +0 -1
- package/dist/tegel/p-a30159f5.entry.js +0 -1
- package/dist/tegel/p-a3ef627e.entry.js +0 -1
- package/dist/tegel/p-aaacbe31.entry.js +0 -1
- package/dist/tegel/p-b0f44fd9.entry.js +0 -1
- package/dist/tegel/p-b509c734.entry.js +0 -1
- package/dist/tegel/p-b82a11bf.entry.js +0 -1
- package/dist/tegel/p-bbea0ac6.entry.js +0 -1
- package/dist/tegel/p-c0114238.entry.js +0 -1
- package/dist/tegel/p-c578be27.entry.js +0 -1
- package/dist/tegel/p-d5041602.entry.js +0 -1
- package/dist/tegel/p-e25343d7.entry.js +0 -1
- package/dist/tegel/p-e2ce7b37.entry.js +0 -1
- package/dist/tegel/p-e4d0d1cb.entry.js +0 -1
- package/dist/tegel/p-e853d304.entry.js +0 -1
- package/dist/tegel/p-eb479100.entry.js +0 -1
- package/dist/tegel/p-ec60f391.entry.js +0 -1
- package/dist/tegel/p-ee227187.entry.js +0 -1
- package/dist/tegel/p-ee500e52.entry.js +0 -1
- package/dist/tegel/p-f42f851e.entry.js +0 -1
- package/dist/tegel/p-f6cf2d52.entry.js +0 -1
- package/dist/types/utils/dom.d.ts +0 -2
- /package/dist/cjs/{dfs-Clg9RCmq.js → dfs-84f7f63e.js} +0 -0
- /package/dist/cjs/{generateUniqueId-ComXTAM_.js → generateUniqueId-e3fc9863.js} +0 -0
- /package/dist/cjs/{getAriaInvalid-Bdg4qUb_.js → getAriaInvalid-66a2eade.js} +0 -0
- /package/dist/cjs/{hasSlot-D-DVNhGg.js → hasSlot-1c90e9ba.js} +0 -0
- /package/dist/cjs/{inheritAttributes-CGw91JfB.js → inheritAttributes-ff9ad737.js} +0 -0
- /package/dist/components/{p-Cn4f8w1e.js → p-11648030.js} +0 -0
- /package/dist/components/{p-CF8bH08v.js → p-3fe9cbbf.js} +0 -0
- /package/dist/components/{p-CLF3diNe.js → p-52bf0fdf.js} +0 -0
- /package/dist/components/{p-CBZ6wC3m.js → p-a1181b1f.js} +0 -0
- /package/dist/components/{p-DDX6uFcm.js → p-ae110fc2.js} +0 -0
- /package/dist/components/{p-wEP_nEaO.js → p-bbf9492a.js} +0 -0
- /package/dist/esm/{dfs-CLF3diNe.js → dfs-1e574d5f.js} +0 -0
- /package/dist/esm/{generateUniqueId-Cn4f8w1e.js → generateUniqueId-7934d315.js} +0 -0
- /package/dist/esm/{getAriaInvalid-wEP_nEaO.js → getAriaInvalid-a9944cb9.js} +0 -0
- /package/dist/esm/{hasSlot-DDX6uFcm.js → hasSlot-d52114d0.js} +0 -0
- /package/dist/esm/{inheritAttributes-CF8bH08v.js → inheritAttributes-d21e267b.js} +0 -0
- /package/dist/tegel/{p-Cn4f8w1e.js → p-11648030.js} +0 -0
- /package/dist/tegel/{p-CF8bH08v.js → p-3fe9cbbf.js} +0 -0
- /package/dist/tegel/{p-CLF3diNe.js → p-52bf0fdf.js} +0 -0
- /package/dist/tegel/{p-DDX6uFcm.js → p-ae110fc2.js} +0 -0
- /package/dist/tegel/{p-wEP_nEaO.js → p-bbf9492a.js} +0 -0
|
@@ -21,19 +21,16 @@ export namespace Components {
|
|
|
21
21
|
interface TdsAccordion {
|
|
22
22
|
/**
|
|
23
23
|
* Removes the bottom border of the last Accordion item.
|
|
24
|
-
* @default false
|
|
25
24
|
*/
|
|
26
25
|
"hideLastBorder": boolean;
|
|
27
26
|
/**
|
|
28
27
|
* Set the variant of the Accordion.
|
|
29
|
-
* @default null
|
|
30
28
|
*/
|
|
31
|
-
"modeVariant": 'primary' | 'secondary';
|
|
29
|
+
"modeVariant": 'primary' | 'secondary' | null;
|
|
32
30
|
}
|
|
33
31
|
interface TdsAccordionItem {
|
|
34
32
|
/**
|
|
35
33
|
* Specifies the heading level (aria-level) for accessibility. Only accepts values between 1 and 6.
|
|
36
|
-
* @default '6'
|
|
37
34
|
*/
|
|
38
35
|
"ariaLevelValue": '1' | '2' | '3' | '4' | '5' | '6';
|
|
39
36
|
/**
|
|
@@ -42,7 +39,6 @@ export namespace Components {
|
|
|
42
39
|
"collapse": () => Promise<void>;
|
|
43
40
|
/**
|
|
44
41
|
* Disabled option in `boolean`.
|
|
45
|
-
* @default false
|
|
46
42
|
*/
|
|
47
43
|
"disabled": boolean;
|
|
48
44
|
/**
|
|
@@ -51,17 +47,14 @@ export namespace Components {
|
|
|
51
47
|
"expand": () => Promise<void>;
|
|
52
48
|
/**
|
|
53
49
|
* Changes position of the expand icon.
|
|
54
|
-
* @default 'end'
|
|
55
50
|
*/
|
|
56
51
|
"expandIconPosition": 'start' | 'end';
|
|
57
52
|
/**
|
|
58
53
|
* Set to true to expand panel open
|
|
59
|
-
* @default false
|
|
60
54
|
*/
|
|
61
55
|
"expanded": boolean;
|
|
62
56
|
/**
|
|
63
57
|
* The header gives users the context about the additional information available inside the panel
|
|
64
|
-
* @default ''
|
|
65
58
|
*/
|
|
66
59
|
"header": string;
|
|
67
60
|
/**
|
|
@@ -70,7 +63,6 @@ export namespace Components {
|
|
|
70
63
|
"isExpanded": () => Promise<boolean>;
|
|
71
64
|
/**
|
|
72
65
|
* When true, 16px on right padding instead of 64px
|
|
73
|
-
* @default false
|
|
74
66
|
*/
|
|
75
67
|
"paddingReset": boolean;
|
|
76
68
|
/**
|
|
@@ -81,29 +73,24 @@ export namespace Components {
|
|
|
81
73
|
interface TdsBadge {
|
|
82
74
|
/**
|
|
83
75
|
* Changes visibility of Badge
|
|
84
|
-
* @default false
|
|
85
76
|
*/
|
|
86
77
|
"hidden": boolean;
|
|
87
78
|
/**
|
|
88
79
|
* Sets component size.
|
|
89
|
-
* @default 'lg'
|
|
90
80
|
*/
|
|
91
81
|
"size": 'lg' | 'sm';
|
|
92
82
|
/**
|
|
93
83
|
* Defines aria-live attribute
|
|
94
|
-
* @default 'polite'
|
|
95
84
|
*/
|
|
96
85
|
"tdsAriaLive": 'off' | 'polite' | 'assertive';
|
|
97
86
|
/**
|
|
98
87
|
* Value shown in Badge
|
|
99
|
-
* @default ''
|
|
100
88
|
*/
|
|
101
89
|
"value": string;
|
|
102
90
|
}
|
|
103
91
|
interface TdsBanner {
|
|
104
92
|
/**
|
|
105
93
|
* ID used for internal table functionality and events, must be unique. **NOTE**: If you're listening for Banner close events, you need to set this ID yourself to identify the Banner, as the default ID is random and will be different every time.
|
|
106
|
-
* @default generateUniqueId()
|
|
107
94
|
*/
|
|
108
95
|
"bannerId": string;
|
|
109
96
|
/**
|
|
@@ -112,7 +99,6 @@ export namespace Components {
|
|
|
112
99
|
"header": string;
|
|
113
100
|
/**
|
|
114
101
|
* Hides the Banner
|
|
115
|
-
* @default false
|
|
116
102
|
*/
|
|
117
103
|
"hidden": boolean;
|
|
118
104
|
/**
|
|
@@ -125,7 +111,6 @@ export namespace Components {
|
|
|
125
111
|
"icon": IconNames;
|
|
126
112
|
/**
|
|
127
113
|
* Defines the ARIA role of the banner. Defaults to "banner" for global use, but can be set to "region" or "alert" if used differently.
|
|
128
|
-
* @default 'banner'
|
|
129
114
|
*/
|
|
130
115
|
"roleType": 'banner' | 'region' | 'alert';
|
|
131
116
|
/**
|
|
@@ -138,7 +123,6 @@ export namespace Components {
|
|
|
138
123
|
"subheader": string;
|
|
139
124
|
/**
|
|
140
125
|
* Variant of Banner
|
|
141
|
-
* @default 'default'
|
|
142
126
|
*/
|
|
143
127
|
"variant": 'error' | 'information' | 'default';
|
|
144
128
|
}
|
|
@@ -150,7 +134,6 @@ export namespace Components {
|
|
|
150
134
|
interface TdsBlock {
|
|
151
135
|
/**
|
|
152
136
|
* Specifies the HTML tag to be used for the component wrapper.
|
|
153
|
-
* @default 'div'
|
|
154
137
|
*/
|
|
155
138
|
"componentTag": | 'section'
|
|
156
139
|
| 'div'
|
|
@@ -162,22 +145,20 @@ export namespace Components {
|
|
|
162
145
|
| 'main';
|
|
163
146
|
/**
|
|
164
147
|
* Mode variant of the component, based on current mode.
|
|
165
|
-
* @default null
|
|
166
148
|
*/
|
|
167
|
-
"modeVariant": 'primary' | 'secondary';
|
|
149
|
+
"modeVariant": 'primary' | 'secondary' | null;
|
|
168
150
|
}
|
|
169
151
|
interface TdsBodyCell {
|
|
170
152
|
/**
|
|
171
153
|
* Passing the same cell key for all body cells which is used in head cell enables features of text align and hovering
|
|
172
154
|
*/
|
|
173
|
-
"cellKey":
|
|
155
|
+
"cellKey": string;
|
|
174
156
|
/**
|
|
175
157
|
* Value that will be presented as text inside a cell
|
|
176
158
|
*/
|
|
177
159
|
"cellValue": string | number;
|
|
178
160
|
/**
|
|
179
161
|
* Disables internal padding. Useful when passing other components to cell.
|
|
180
|
-
* @default false
|
|
181
162
|
*/
|
|
182
163
|
"disablePadding": boolean;
|
|
183
164
|
/**
|
|
@@ -188,7 +169,6 @@ export namespace Components {
|
|
|
188
169
|
interface TdsBreadcrumb {
|
|
189
170
|
/**
|
|
190
171
|
* Boolean for the current link
|
|
191
|
-
* @default false
|
|
192
172
|
*/
|
|
193
173
|
"current": boolean;
|
|
194
174
|
}
|
|
@@ -201,31 +181,26 @@ export namespace Components {
|
|
|
201
181
|
interface TdsButton {
|
|
202
182
|
/**
|
|
203
183
|
* Determines if and how the button should animate.
|
|
204
|
-
* @default 'none'
|
|
205
184
|
*/
|
|
206
185
|
"animation": 'none' | 'fade';
|
|
207
186
|
/**
|
|
208
187
|
* Control for disabled state of a component
|
|
209
|
-
* @default false
|
|
210
188
|
*/
|
|
211
189
|
"disabled": boolean;
|
|
212
190
|
/**
|
|
213
191
|
* When enabled, the Button takes 100% width
|
|
214
|
-
* @default false
|
|
215
192
|
*/
|
|
216
193
|
"fullbleed": boolean;
|
|
217
194
|
/**
|
|
218
195
|
* Set the mode variant of the Button.
|
|
219
|
-
* @default null
|
|
220
196
|
*/
|
|
221
|
-
"modeVariant": 'primary' | 'secondary';
|
|
197
|
+
"modeVariant": 'primary' | 'secondary' | null;
|
|
222
198
|
/**
|
|
223
199
|
* The name attribute allows for different ways of accessing the button element
|
|
224
200
|
*/
|
|
225
201
|
"name": string;
|
|
226
202
|
/**
|
|
227
203
|
* Size of a Button
|
|
228
|
-
* @default 'lg'
|
|
229
204
|
*/
|
|
230
205
|
"size": 'xs' | 'sm' | 'md' | 'lg';
|
|
231
206
|
/**
|
|
@@ -238,7 +213,6 @@ export namespace Components {
|
|
|
238
213
|
"text": string;
|
|
239
214
|
/**
|
|
240
215
|
* Button's type
|
|
241
|
-
* @default 'button'
|
|
242
216
|
*/
|
|
243
217
|
"type": 'button' | 'submit' | 'reset';
|
|
244
218
|
/**
|
|
@@ -247,14 +221,12 @@ export namespace Components {
|
|
|
247
221
|
"value": string;
|
|
248
222
|
/**
|
|
249
223
|
* Variation of Button's design
|
|
250
|
-
* @default 'primary'
|
|
251
224
|
*/
|
|
252
225
|
"variant": 'primary' | 'secondary' | 'ghost' | 'danger';
|
|
253
226
|
}
|
|
254
227
|
interface TdsCard {
|
|
255
228
|
/**
|
|
256
229
|
* Divider for the body
|
|
257
|
-
* @default false
|
|
258
230
|
*/
|
|
259
231
|
"bodyDivider": boolean;
|
|
260
232
|
/**
|
|
@@ -267,22 +239,18 @@ export namespace Components {
|
|
|
267
239
|
"bodyImgAlt": string;
|
|
268
240
|
/**
|
|
269
241
|
* ID for the Card, must be unique. **NOTE**: If you're listening for Card events, you need to set this ID yourself to identify the Card, as the default ID is random and will be different every time.
|
|
270
|
-
* @default generateUniqueId()
|
|
271
242
|
*/
|
|
272
243
|
"cardId": string;
|
|
273
244
|
/**
|
|
274
245
|
* Makes the Card clickable.
|
|
275
|
-
* @default false
|
|
276
246
|
*/
|
|
277
247
|
"clickable": boolean;
|
|
278
248
|
/**
|
|
279
249
|
* Enables expandable behaviour. When true, clicking the header toggles content visibility.
|
|
280
|
-
* @default false
|
|
281
250
|
*/
|
|
282
251
|
"expandable": boolean;
|
|
283
252
|
/**
|
|
284
253
|
* Tracks the current expanded state when expandable is enabled.
|
|
285
|
-
* @default false
|
|
286
254
|
*/
|
|
287
255
|
"expanded": boolean;
|
|
288
256
|
/**
|
|
@@ -291,17 +259,12 @@ export namespace Components {
|
|
|
291
259
|
"header": string;
|
|
292
260
|
/**
|
|
293
261
|
* Placement of the header
|
|
294
|
-
* @default 'below-header'
|
|
295
262
|
*/
|
|
296
263
|
"imagePlacement": 'above-header' | 'below-header';
|
|
297
264
|
/**
|
|
298
265
|
* Variant of the Card based on the theme used.
|
|
299
|
-
* @default null
|
|
300
|
-
*/
|
|
301
|
-
"modeVariant": 'primary' | 'secondary';
|
|
302
|
-
/**
|
|
303
|
-
* @default false
|
|
304
266
|
*/
|
|
267
|
+
"modeVariant": 'primary' | 'secondary' | null;
|
|
305
268
|
"stretch": boolean;
|
|
306
269
|
/**
|
|
307
270
|
* Subheader text in the header
|
|
@@ -311,17 +274,14 @@ export namespace Components {
|
|
|
311
274
|
interface TdsCheckbox {
|
|
312
275
|
/**
|
|
313
276
|
* ID for the Checkbox's input element. Randomly generated if not specified.
|
|
314
|
-
* @default generateUniqueId()
|
|
315
277
|
*/
|
|
316
278
|
"checkboxId": string;
|
|
317
279
|
/**
|
|
318
280
|
* Sets the Checkbox as checked
|
|
319
|
-
* @default false
|
|
320
281
|
*/
|
|
321
282
|
"checked": boolean;
|
|
322
283
|
/**
|
|
323
284
|
* Sets the Checkbox in a disabled state
|
|
324
|
-
* @default false
|
|
325
285
|
*/
|
|
326
286
|
"disabled": boolean;
|
|
327
287
|
/**
|
|
@@ -330,7 +290,6 @@ export namespace Components {
|
|
|
330
290
|
"focusElement": () => Promise<void>;
|
|
331
291
|
/**
|
|
332
292
|
* Sets the Checkbox as indeterminate
|
|
333
|
-
* @default false
|
|
334
293
|
*/
|
|
335
294
|
"indeterminate": boolean;
|
|
336
295
|
/**
|
|
@@ -339,7 +298,6 @@ export namespace Components {
|
|
|
339
298
|
"name": string;
|
|
340
299
|
/**
|
|
341
300
|
* Make the Checkbox required
|
|
342
|
-
* @default false
|
|
343
301
|
*/
|
|
344
302
|
"required": boolean;
|
|
345
303
|
/**
|
|
@@ -362,17 +320,14 @@ export namespace Components {
|
|
|
362
320
|
interface TdsChip {
|
|
363
321
|
/**
|
|
364
322
|
* Controls component's checked attribute. Valid only for type checkbox and radio.
|
|
365
|
-
* @default false
|
|
366
323
|
*/
|
|
367
324
|
"checked": boolean;
|
|
368
325
|
/**
|
|
369
326
|
* ID used for internal Chip functionality and events, must be unique. **NOTE**: If you're listening for input events, you need to set this ID yourself to identify the input, as the default ID is random and will be different every time.
|
|
370
|
-
* @default generateUniqueId()
|
|
371
327
|
*/
|
|
372
328
|
"chipId": string;
|
|
373
329
|
/**
|
|
374
330
|
* Sets the Chip in a disabled state
|
|
375
|
-
* @default false
|
|
376
331
|
*/
|
|
377
332
|
"disabled": boolean;
|
|
378
333
|
/**
|
|
@@ -381,7 +336,6 @@ export namespace Components {
|
|
|
381
336
|
"name": string;
|
|
382
337
|
/**
|
|
383
338
|
* Size of the Chip component
|
|
384
|
-
* @default 'lg'
|
|
385
339
|
*/
|
|
386
340
|
"size": 'sm' | 'lg';
|
|
387
341
|
/**
|
|
@@ -390,7 +344,6 @@ export namespace Components {
|
|
|
390
344
|
"tdsAriaLabel": string;
|
|
391
345
|
/**
|
|
392
346
|
* Type of Chip, depends on usage
|
|
393
|
-
* @default 'button'
|
|
394
347
|
*/
|
|
395
348
|
"type": 'button' | 'radio' | 'checkbox';
|
|
396
349
|
/**
|
|
@@ -403,17 +356,14 @@ export namespace Components {
|
|
|
403
356
|
interface TdsDatetime {
|
|
404
357
|
/**
|
|
405
358
|
* Autofocus for input
|
|
406
|
-
* @default false
|
|
407
359
|
*/
|
|
408
360
|
"autofocus": boolean;
|
|
409
361
|
/**
|
|
410
362
|
* Default value of the component. Format for time: HH-MM. Format for date: YY-MM-DD. Format for month: YY-MM. Format for week: YY-Www Format for date-time: YY-MM-DDTHH-MM
|
|
411
|
-
* @default 'none'
|
|
412
363
|
*/
|
|
413
364
|
"defaultValue": string | 'none';
|
|
414
365
|
/**
|
|
415
366
|
* Set input in disabled state
|
|
416
|
-
* @default false
|
|
417
367
|
*/
|
|
418
368
|
"disabled": boolean;
|
|
419
369
|
/**
|
|
@@ -422,17 +372,14 @@ export namespace Components {
|
|
|
422
372
|
"focusElement": () => Promise<void>;
|
|
423
373
|
/**
|
|
424
374
|
* Helper text for the component
|
|
425
|
-
* @default ''
|
|
426
375
|
*/
|
|
427
376
|
"helper": string;
|
|
428
377
|
/**
|
|
429
378
|
* Label text for the component
|
|
430
|
-
* @default ''
|
|
431
379
|
*/
|
|
432
380
|
"label": string;
|
|
433
381
|
/**
|
|
434
382
|
* Position of the label
|
|
435
|
-
* @default 'no-label'
|
|
436
383
|
*/
|
|
437
384
|
"labelPosition": 'inside' | 'outside' | 'no-label';
|
|
438
385
|
/**
|
|
@@ -445,17 +392,14 @@ export namespace Components {
|
|
|
445
392
|
"min": string;
|
|
446
393
|
/**
|
|
447
394
|
* Set the variant of the Datetime component.
|
|
448
|
-
* @default null
|
|
449
395
|
*/
|
|
450
|
-
"modeVariant": 'primary' | 'secondary';
|
|
396
|
+
"modeVariant": 'primary' | 'secondary' | null;
|
|
451
397
|
/**
|
|
452
398
|
* Name property. Uses a unique ID as fallback if not specified.
|
|
453
|
-
* @default `datetime-${generateUniqueId()}`
|
|
454
399
|
*/
|
|
455
400
|
"name": string;
|
|
456
401
|
/**
|
|
457
402
|
* Resets min width rule
|
|
458
|
-
* @default false
|
|
459
403
|
*/
|
|
460
404
|
"noMinWidth": boolean;
|
|
461
405
|
/**
|
|
@@ -468,7 +412,6 @@ export namespace Components {
|
|
|
468
412
|
"setValue": (newValue: string) => Promise<void>;
|
|
469
413
|
/**
|
|
470
414
|
* Size of the input
|
|
471
|
-
* @default 'lg'
|
|
472
415
|
*/
|
|
473
416
|
"size": 'sm' | 'md' | 'lg';
|
|
474
417
|
/**
|
|
@@ -481,31 +424,24 @@ export namespace Components {
|
|
|
481
424
|
"tdsAriaLabel": string;
|
|
482
425
|
/**
|
|
483
426
|
* Sets an input type
|
|
484
|
-
* @default 'datetime-local'
|
|
485
427
|
*/
|
|
486
428
|
"type": 'datetime-local' | 'date' | 'month' | 'week' | 'time';
|
|
487
429
|
/**
|
|
488
430
|
* Value of the input text
|
|
489
|
-
* @default ''
|
|
490
431
|
*/
|
|
491
432
|
"value": string;
|
|
492
433
|
}
|
|
493
434
|
interface TdsDivider {
|
|
494
435
|
/**
|
|
495
436
|
* Orientation of the Divider, horizontal if not specified.
|
|
496
|
-
* @default 'horizontal'
|
|
497
437
|
*/
|
|
498
438
|
"orientation": 'horizontal' | 'vertical';
|
|
499
439
|
/**
|
|
500
440
|
* Variant of the Divider, subtle if not specified.
|
|
501
|
-
* @default 'subtle'
|
|
502
441
|
*/
|
|
503
442
|
"variant": 'discrete' | 'subtle' | 'soft' | 'defined' | 'dark-blue';
|
|
504
443
|
}
|
|
505
444
|
interface TdsDropdown {
|
|
506
|
-
/**
|
|
507
|
-
* @default 'slide'
|
|
508
|
-
*/
|
|
509
445
|
"animation": 'none' | 'slide';
|
|
510
446
|
"appendValue": (value: string) => Promise<void>;
|
|
511
447
|
/**
|
|
@@ -518,17 +454,14 @@ export namespace Components {
|
|
|
518
454
|
"defaultValue": string | number;
|
|
519
455
|
/**
|
|
520
456
|
* Sets the Dropdown in a disabled state
|
|
521
|
-
* @default false
|
|
522
457
|
*/
|
|
523
458
|
"disabled": boolean;
|
|
524
459
|
/**
|
|
525
460
|
* Sets the Dropdown in an error state
|
|
526
|
-
* @default false
|
|
527
461
|
*/
|
|
528
462
|
"error": boolean;
|
|
529
463
|
/**
|
|
530
464
|
* Enables filtration in the Dropdown.
|
|
531
|
-
* @default false
|
|
532
465
|
*/
|
|
533
466
|
"filter": boolean;
|
|
534
467
|
/**
|
|
@@ -549,12 +482,10 @@ export namespace Components {
|
|
|
549
482
|
"labelPosition": 'inside' | 'outside';
|
|
550
483
|
/**
|
|
551
484
|
* Mode variant of the component, based on current mode.
|
|
552
|
-
* @default null
|
|
553
485
|
*/
|
|
554
|
-
"modeVariant": 'primary' | 'secondary';
|
|
486
|
+
"modeVariant": 'primary' | 'secondary' | null;
|
|
555
487
|
/**
|
|
556
488
|
* Enables multiselect in the Dropdown.
|
|
557
|
-
* @default false
|
|
558
489
|
*/
|
|
559
490
|
"multiselect": boolean;
|
|
560
491
|
/**
|
|
@@ -563,17 +494,14 @@ export namespace Components {
|
|
|
563
494
|
"name": string;
|
|
564
495
|
/**
|
|
565
496
|
* Text that is displayed if filter is used and there are no options that matches the search. Setting it to an empty string disables message from showing up.
|
|
566
|
-
* @default 'No result'
|
|
567
497
|
*/
|
|
568
498
|
"noResultText"?: string;
|
|
569
499
|
/**
|
|
570
500
|
* Normalizes input text for fuzzier search
|
|
571
|
-
* @default true
|
|
572
501
|
*/
|
|
573
502
|
"normalizeText": boolean;
|
|
574
503
|
/**
|
|
575
504
|
* The direction the Dropdown should open, auto if not specified.
|
|
576
|
-
* @default 'auto'
|
|
577
505
|
*/
|
|
578
506
|
"openDirection": 'up' | 'down' | 'auto';
|
|
579
507
|
/**
|
|
@@ -585,10 +513,9 @@ export namespace Components {
|
|
|
585
513
|
/**
|
|
586
514
|
* Method for setting the selected value of the Dropdown. Single selection example: <code> dropdown.setValue('option-1', 'Option 1'); </code> Multiselect example: <code> dropdown.setValue(['option-1', 'option-2']); </code>
|
|
587
515
|
*/
|
|
588
|
-
"setValue": (value: string | number | string[] | number[], label?: string) => Promise<{ value: string | number; label: string; }[]>;
|
|
516
|
+
"setValue": (value: string | number | string[] | number[], label?: string) => Promise<{ value: string | number; label: string | undefined; }[]>;
|
|
589
517
|
/**
|
|
590
518
|
* The size of the Dropdown.
|
|
591
|
-
* @default 'lg'
|
|
592
519
|
*/
|
|
593
520
|
"size": 'xs' | 'sm' | 'md' | 'lg';
|
|
594
521
|
/**
|
|
@@ -601,14 +528,12 @@ export namespace Components {
|
|
|
601
528
|
"updateDisplay": () => Promise<void>;
|
|
602
529
|
/**
|
|
603
530
|
* Value of the dropdown. For multiselect, provide array of strings/numbers. For single select, provide a string/number.
|
|
604
|
-
* @default null
|
|
605
531
|
*/
|
|
606
|
-
"value": string | number | (string | number)[];
|
|
532
|
+
"value": string | number | (string | number)[] | null;
|
|
607
533
|
}
|
|
608
534
|
interface TdsDropdownOption {
|
|
609
535
|
/**
|
|
610
536
|
* Sets the option as disabled.
|
|
611
|
-
* @default false
|
|
612
537
|
*/
|
|
613
538
|
"disabled": boolean;
|
|
614
539
|
/**
|
|
@@ -627,7 +552,6 @@ export namespace Components {
|
|
|
627
552
|
interface TdsFolderTab {
|
|
628
553
|
/**
|
|
629
554
|
* Disables the Tab.
|
|
630
|
-
* @default false
|
|
631
555
|
*/
|
|
632
556
|
"disabled": boolean;
|
|
633
557
|
"setSelected": (selected: boolean) => Promise<void>;
|
|
@@ -636,14 +560,12 @@ export namespace Components {
|
|
|
636
560
|
interface TdsFolderTabs {
|
|
637
561
|
/**
|
|
638
562
|
* Sets the default selected Tab.
|
|
639
|
-
* @default 0
|
|
640
563
|
*/
|
|
641
564
|
"defaultSelectedIndex": number;
|
|
642
565
|
/**
|
|
643
566
|
* Variant of the Tabs, primary= on white, secondary= on grey50
|
|
644
|
-
* @default null
|
|
645
567
|
*/
|
|
646
|
-
"modeVariant": 'primary' | 'secondary';
|
|
568
|
+
"modeVariant": 'primary' | 'secondary' | null;
|
|
647
569
|
/**
|
|
648
570
|
* Reinitializes the component.
|
|
649
571
|
*/
|
|
@@ -658,21 +580,18 @@ export namespace Components {
|
|
|
658
580
|
"selectedIndex": number;
|
|
659
581
|
/**
|
|
660
582
|
* Defines aria-label on left scroll button
|
|
661
|
-
* @default 'Scroll left'
|
|
662
583
|
*/
|
|
663
584
|
"tdsScrollLeftAriaLabel": string;
|
|
664
585
|
/**
|
|
665
586
|
* Defines aria-label on right scroll button
|
|
666
|
-
* @default 'Scroll right'
|
|
667
587
|
*/
|
|
668
588
|
"tdsScrollRightAriaLabel": string;
|
|
669
589
|
}
|
|
670
590
|
interface TdsFooter {
|
|
671
591
|
/**
|
|
672
592
|
* Mode variant of the component, based on current mode.
|
|
673
|
-
* @default null
|
|
674
593
|
*/
|
|
675
|
-
"modeVariant": 'primary' | 'secondary';
|
|
594
|
+
"modeVariant": 'primary' | 'secondary' | null;
|
|
676
595
|
}
|
|
677
596
|
interface TdsFooterGroup {
|
|
678
597
|
/**
|
|
@@ -705,22 +624,18 @@ export namespace Components {
|
|
|
705
624
|
"customWidth"?: string;
|
|
706
625
|
/**
|
|
707
626
|
* Disables internal padding. Useful when passing other components to cell.
|
|
708
|
-
* @default false
|
|
709
627
|
*/
|
|
710
628
|
"disablePadding": boolean;
|
|
711
629
|
/**
|
|
712
630
|
* Enables sorting on that column
|
|
713
|
-
* @default false
|
|
714
631
|
*/
|
|
715
632
|
"sortable": boolean;
|
|
716
633
|
/**
|
|
717
634
|
* Aria label for the sort button, providing an accessible description
|
|
718
|
-
* @default ''
|
|
719
635
|
*/
|
|
720
636
|
"tdsAriaLabelSortButton"?: string;
|
|
721
637
|
/**
|
|
722
638
|
* Setting for text align, default is "left". Other accepted values are "left", "start", "right" or "end".
|
|
723
|
-
* @default 'left'
|
|
724
639
|
*/
|
|
725
640
|
"textAlign": 'left' | 'start' | 'right' | 'end' | 'center';
|
|
726
641
|
}
|
|
@@ -731,12 +646,10 @@ export namespace Components {
|
|
|
731
646
|
"label": string;
|
|
732
647
|
/**
|
|
733
648
|
* If the dropdown icon (downwards chevron) should be hidden.
|
|
734
|
-
* @default false
|
|
735
649
|
*/
|
|
736
650
|
"noDropdownIcon": boolean;
|
|
737
651
|
/**
|
|
738
652
|
* If the button that opens the dropdown should appear selected.
|
|
739
|
-
* @default false
|
|
740
653
|
*/
|
|
741
654
|
"selected": boolean;
|
|
742
655
|
/**
|
|
@@ -747,19 +660,16 @@ export namespace Components {
|
|
|
747
660
|
interface TdsHeaderDropdownList {
|
|
748
661
|
/**
|
|
749
662
|
* The size of the component.
|
|
750
|
-
* @default 'md'
|
|
751
663
|
*/
|
|
752
664
|
"size": 'lg' | 'md';
|
|
753
665
|
}
|
|
754
666
|
interface TdsHeaderDropdownListItem {
|
|
755
667
|
/**
|
|
756
668
|
* If the link should appear selected.
|
|
757
|
-
* @default false
|
|
758
669
|
*/
|
|
759
670
|
"selected": boolean;
|
|
760
671
|
/**
|
|
761
672
|
* The size of the component.
|
|
762
|
-
* @default 'md'
|
|
763
673
|
*/
|
|
764
674
|
"size": 'md' | 'lg';
|
|
765
675
|
}
|
|
@@ -790,12 +700,10 @@ export namespace Components {
|
|
|
790
700
|
interface TdsHeaderItem {
|
|
791
701
|
/**
|
|
792
702
|
* If the button should appear active. Can be used when the button is triggering a dropdown, and the dropdown is open, for example.
|
|
793
|
-
* @default false
|
|
794
703
|
*/
|
|
795
704
|
"active": boolean;
|
|
796
705
|
/**
|
|
797
706
|
* If the button should appear selected.
|
|
798
|
-
* @default false
|
|
799
707
|
*/
|
|
800
708
|
"selected": boolean;
|
|
801
709
|
}
|
|
@@ -808,7 +716,6 @@ export namespace Components {
|
|
|
808
716
|
interface TdsHeaderLauncherButton {
|
|
809
717
|
/**
|
|
810
718
|
* If the button should appear active. Can be used when the button is triggering a dropdown, and the dropdown is open, for example.
|
|
811
|
-
* @default false
|
|
812
719
|
*/
|
|
813
720
|
"active": boolean;
|
|
814
721
|
/**
|
|
@@ -833,12 +740,10 @@ export namespace Components {
|
|
|
833
740
|
interface TdsIcon {
|
|
834
741
|
/**
|
|
835
742
|
* Pass the name of the icon. For icon names, refer to Storybook Icon controls dropdown or https://tegel.scania.com/foundations/icons/icon-library
|
|
836
|
-
* @default 'truck'
|
|
837
743
|
*/
|
|
838
744
|
"name": IconNames;
|
|
839
745
|
/**
|
|
840
746
|
* Pass a size of icon as a string, for example, 32px, 1rem, 4em...
|
|
841
|
-
* @default '16px'
|
|
842
747
|
*/
|
|
843
748
|
"size": string;
|
|
844
749
|
/**
|
|
@@ -851,14 +756,12 @@ export namespace Components {
|
|
|
851
756
|
"svgTitle"?: string;
|
|
852
757
|
/**
|
|
853
758
|
* Set aria-hidden attribute on svg
|
|
854
|
-
* @default false
|
|
855
759
|
*/
|
|
856
760
|
"tdsAriaHidden": boolean;
|
|
857
761
|
}
|
|
858
762
|
interface TdsInlineTab {
|
|
859
763
|
/**
|
|
860
764
|
* Disables the Tab.
|
|
861
|
-
* @default false
|
|
862
765
|
*/
|
|
863
766
|
"disabled": boolean;
|
|
864
767
|
"setSelected": (selected: boolean) => Promise<void>;
|
|
@@ -866,17 +769,14 @@ export namespace Components {
|
|
|
866
769
|
interface TdsInlineTabs {
|
|
867
770
|
/**
|
|
868
771
|
* Sets the default selected Tab.
|
|
869
|
-
* @default 0
|
|
870
772
|
*/
|
|
871
773
|
"defaultSelectedIndex": number;
|
|
872
774
|
/**
|
|
873
775
|
* Custom left padding value for the wrapper element.
|
|
874
|
-
* @default 32
|
|
875
776
|
*/
|
|
876
777
|
"leftPadding": number;
|
|
877
778
|
/**
|
|
878
779
|
* Variant of the Tabs, primary= on white, secondary= on grey50
|
|
879
|
-
* @default 'primary'
|
|
880
780
|
*/
|
|
881
781
|
"modeVariant": 'primary' | 'secondary';
|
|
882
782
|
/**
|
|
@@ -893,29 +793,24 @@ export namespace Components {
|
|
|
893
793
|
"selectedIndex": number;
|
|
894
794
|
/**
|
|
895
795
|
* Defines aria-label on left scroll button
|
|
896
|
-
* @default 'Scroll left'
|
|
897
796
|
*/
|
|
898
797
|
"tdsScrollLeftAriaLabel": string;
|
|
899
798
|
/**
|
|
900
799
|
* Defines aria-label on right scroll button
|
|
901
|
-
* @default 'Scroll right'
|
|
902
800
|
*/
|
|
903
801
|
"tdsScrollRightAriaLabel": string;
|
|
904
802
|
}
|
|
905
803
|
interface TdsLink {
|
|
906
804
|
/**
|
|
907
805
|
* Disables the Link
|
|
908
|
-
* @default false
|
|
909
806
|
*/
|
|
910
807
|
"disabled": boolean;
|
|
911
808
|
/**
|
|
912
809
|
* Displays the Link as a standalone component. Not part of a paragraph.
|
|
913
|
-
* @default false
|
|
914
810
|
*/
|
|
915
811
|
"standalone": boolean;
|
|
916
812
|
/**
|
|
917
813
|
* Displays the Link with an underline.
|
|
918
|
-
* @default true
|
|
919
814
|
*/
|
|
920
815
|
"underline": boolean;
|
|
921
816
|
}
|
|
@@ -926,22 +821,18 @@ export namespace Components {
|
|
|
926
821
|
"header": string;
|
|
927
822
|
/**
|
|
928
823
|
* Minimal Message styling.
|
|
929
|
-
* @default false
|
|
930
824
|
*/
|
|
931
825
|
"minimal": boolean;
|
|
932
826
|
/**
|
|
933
827
|
* Variant of the component, based on current mode.
|
|
934
|
-
* @default null
|
|
935
828
|
*/
|
|
936
|
-
"modeVariant": 'primary' | 'secondary';
|
|
829
|
+
"modeVariant": 'primary' | 'secondary' | null;
|
|
937
830
|
/**
|
|
938
831
|
* Removes the icon in the Message.
|
|
939
|
-
* @default false
|
|
940
832
|
*/
|
|
941
833
|
"noIcon": boolean;
|
|
942
834
|
/**
|
|
943
835
|
* Role of the message component. Can be either 'alertdialog' for important messages that require immediate attention, or 'dialog' for regular messages.
|
|
944
|
-
* @default 'dialog'
|
|
945
836
|
*/
|
|
946
837
|
"tdsAlertDialog": 'alertdialog' | 'dialog';
|
|
947
838
|
/**
|
|
@@ -950,14 +841,12 @@ export namespace Components {
|
|
|
950
841
|
"tdsAriaLabel": string;
|
|
951
842
|
/**
|
|
952
843
|
* Variant of Message.
|
|
953
|
-
* @default 'information'
|
|
954
844
|
*/
|
|
955
845
|
"variant": 'information' | 'error' | 'warning' | 'success';
|
|
956
846
|
}
|
|
957
847
|
interface TdsModal {
|
|
958
848
|
/**
|
|
959
849
|
* Changes the position behaviour of the actions slot.
|
|
960
|
-
* @default 'static'
|
|
961
850
|
*/
|
|
962
851
|
"actionsPosition": 'sticky' | 'static';
|
|
963
852
|
/**
|
|
@@ -966,7 +855,6 @@ export namespace Components {
|
|
|
966
855
|
"cleanupModal": () => Promise<void>;
|
|
967
856
|
/**
|
|
968
857
|
* Shows or hides the close [X] button.
|
|
969
|
-
* @default true
|
|
970
858
|
*/
|
|
971
859
|
"closable": boolean;
|
|
972
860
|
/**
|
|
@@ -987,7 +875,6 @@ export namespace Components {
|
|
|
987
875
|
"isOpen": () => Promise<boolean>;
|
|
988
876
|
/**
|
|
989
877
|
* Disables closing Modal on clicking on overlay area.
|
|
990
|
-
* @default false
|
|
991
878
|
*/
|
|
992
879
|
"prevent": boolean;
|
|
993
880
|
/**
|
|
@@ -1008,19 +895,16 @@ export namespace Components {
|
|
|
1008
895
|
"showModal": () => Promise<void>;
|
|
1009
896
|
/**
|
|
1010
897
|
* Size of Modal
|
|
1011
|
-
* @default 'md'
|
|
1012
898
|
*/
|
|
1013
899
|
"size": 'xs' | 'sm' | 'md' | 'lg';
|
|
1014
900
|
/**
|
|
1015
901
|
* Role of the modal component. Can be either 'alertdialog' for important messages that require immediate attention, or 'dialog' for regular messages.
|
|
1016
|
-
* @default 'dialog'
|
|
1017
902
|
*/
|
|
1018
903
|
"tdsAlertDialog": 'alertdialog' | 'dialog';
|
|
1019
904
|
}
|
|
1020
905
|
interface TdsNavigationTab {
|
|
1021
906
|
/**
|
|
1022
907
|
* Disables the Tab.
|
|
1023
|
-
* @default false
|
|
1024
908
|
*/
|
|
1025
909
|
"disabled": boolean;
|
|
1026
910
|
"setSelected": (selected: boolean) => Promise<void>;
|
|
@@ -1028,17 +912,14 @@ export namespace Components {
|
|
|
1028
912
|
interface TdsNavigationTabs {
|
|
1029
913
|
/**
|
|
1030
914
|
* Sets the default selected Tab.
|
|
1031
|
-
* @default 0
|
|
1032
915
|
*/
|
|
1033
916
|
"defaultSelectedIndex": number;
|
|
1034
917
|
/**
|
|
1035
918
|
* Custom left padding value for the wrapper element.
|
|
1036
|
-
* @default 32
|
|
1037
919
|
*/
|
|
1038
920
|
"leftPadding": number;
|
|
1039
921
|
/**
|
|
1040
922
|
* Variant of the Tabs, primary= on white, secondary= on grey50
|
|
1041
|
-
* @default 'primary'
|
|
1042
923
|
*/
|
|
1043
924
|
"modeVariant": 'primary' | 'secondary';
|
|
1044
925
|
/**
|
|
@@ -1055,19 +936,16 @@ export namespace Components {
|
|
|
1055
936
|
"selectedIndex": number;
|
|
1056
937
|
/**
|
|
1057
938
|
* Defines aria-label on left scroll button
|
|
1058
|
-
* @default 'Scroll left'
|
|
1059
939
|
*/
|
|
1060
940
|
"tdsScrollLeftAriaLabel": string;
|
|
1061
941
|
/**
|
|
1062
942
|
* Defines aria-label on right scroll button
|
|
1063
|
-
* @default 'Scroll right'
|
|
1064
943
|
*/
|
|
1065
944
|
"tdsScrollRightAriaLabel": string;
|
|
1066
945
|
}
|
|
1067
946
|
interface TdsPopoverCanvas {
|
|
1068
947
|
/**
|
|
1069
948
|
* Whether the popover should animate when being opened/closed or not
|
|
1070
|
-
* @default 'none'
|
|
1071
949
|
*/
|
|
1072
950
|
"animation": 'none' | 'fade' | string;
|
|
1073
951
|
/**
|
|
@@ -1076,32 +954,26 @@ export namespace Components {
|
|
|
1076
954
|
"close": () => Promise<void>;
|
|
1077
955
|
/**
|
|
1078
956
|
* Decides if the component should be visible from the start.
|
|
1079
|
-
* @default false
|
|
1080
957
|
*/
|
|
1081
958
|
"defaultShow": boolean;
|
|
1082
959
|
/**
|
|
1083
960
|
* Mode variant of the component, based on current mode.
|
|
1084
|
-
* @default null
|
|
1085
961
|
*/
|
|
1086
|
-
"modeVariant": 'primary' | 'secondary';
|
|
962
|
+
"modeVariant": 'primary' | 'secondary' | null;
|
|
1087
963
|
/**
|
|
1088
964
|
* Array of modifier objects to pass to popper.js. See https://popper.js.org/docs/v2/modifiers/
|
|
1089
|
-
* @default []
|
|
1090
965
|
*/
|
|
1091
966
|
"modifiers": object[];
|
|
1092
967
|
/**
|
|
1093
968
|
* Sets the offset distance
|
|
1094
|
-
* @default 8
|
|
1095
969
|
*/
|
|
1096
970
|
"offsetDistance": number;
|
|
1097
971
|
/**
|
|
1098
972
|
* Sets the offset skidding
|
|
1099
|
-
* @default 0
|
|
1100
973
|
*/
|
|
1101
974
|
"offsetSkidding": number;
|
|
1102
975
|
/**
|
|
1103
976
|
* Decides the placement of the Popover Canvas. See https://popper.js.org/docs/v2/constructors/#placement
|
|
1104
|
-
* @default 'auto'
|
|
1105
977
|
*/
|
|
1106
978
|
"placement": Placement;
|
|
1107
979
|
/**
|
|
@@ -1114,24 +986,20 @@ export namespace Components {
|
|
|
1114
986
|
"selector": string;
|
|
1115
987
|
/**
|
|
1116
988
|
* Controls whether the Popover is shown or not. If this is set hiding and showing will be decided by this prop and will need to be controlled from the outside. This also means that clicking outside of the popover won't close it. Takes precedence over `defaultShow` prop.
|
|
1117
|
-
* @default null
|
|
1118
989
|
*/
|
|
1119
|
-
"show": boolean;
|
|
990
|
+
"show": boolean | null;
|
|
1120
991
|
/**
|
|
1121
992
|
* Role of the popover canvas component. Can be either 'alertdialog' for important messages that require immediate attention, or 'dialog' for regular messages.
|
|
1122
|
-
* @default 'dialog'
|
|
1123
993
|
*/
|
|
1124
994
|
"tdsAlertDialog": 'alertdialog' | 'dialog';
|
|
1125
995
|
}
|
|
1126
996
|
interface TdsPopoverCore {
|
|
1127
997
|
/**
|
|
1128
998
|
* Whether the popover should animate when being opened/closed or not
|
|
1129
|
-
* @default 'none'
|
|
1130
999
|
*/
|
|
1131
1000
|
"animation": 'none' | 'fade' | string;
|
|
1132
1001
|
/**
|
|
1133
1002
|
* Decides if the popover should hide automatically. Alternatevly it can be hidden externally based on emitted events.
|
|
1134
|
-
* @default true
|
|
1135
1003
|
*/
|
|
1136
1004
|
"autoHide": boolean;
|
|
1137
1005
|
/**
|
|
@@ -1140,27 +1008,22 @@ export namespace Components {
|
|
|
1140
1008
|
"close": () => Promise<void>;
|
|
1141
1009
|
/**
|
|
1142
1010
|
* Decides if the component should be visible from the start.
|
|
1143
|
-
* @default false
|
|
1144
1011
|
*/
|
|
1145
1012
|
"defaultShow": boolean;
|
|
1146
1013
|
/**
|
|
1147
1014
|
* Array of modifier objects to pass to popper.js. See https://popper.js.org/docs/v2/modifiers/
|
|
1148
|
-
* @default []
|
|
1149
1015
|
*/
|
|
1150
|
-
"modifiers":
|
|
1016
|
+
"modifiers": object[];
|
|
1151
1017
|
/**
|
|
1152
1018
|
* Sets the offset distance
|
|
1153
|
-
* @default 8
|
|
1154
1019
|
*/
|
|
1155
1020
|
"offsetDistance": number;
|
|
1156
1021
|
/**
|
|
1157
1022
|
* Sets the offset skidding
|
|
1158
|
-
* @default 0
|
|
1159
1023
|
*/
|
|
1160
1024
|
"offsetSkidding": number;
|
|
1161
1025
|
/**
|
|
1162
1026
|
* Decides the placement of the Popover Menu
|
|
1163
|
-
* @default 'auto'
|
|
1164
1027
|
*/
|
|
1165
1028
|
"placement": Placement;
|
|
1166
1029
|
/**
|
|
@@ -1173,19 +1036,16 @@ export namespace Components {
|
|
|
1173
1036
|
"selector": string;
|
|
1174
1037
|
/**
|
|
1175
1038
|
* Controls whether the Popover is shown or not. If this is set hiding and showing will be decided by this prop and will need to be controlled from the outside. This also means that clicking outside of the popover won't close it. Takes precedence over `defaultShow` prop.
|
|
1176
|
-
* @default null
|
|
1177
1039
|
*/
|
|
1178
|
-
"show": boolean;
|
|
1040
|
+
"show": boolean | null;
|
|
1179
1041
|
/**
|
|
1180
1042
|
* What triggers the popover to show
|
|
1181
|
-
* @default 'click'
|
|
1182
1043
|
*/
|
|
1183
1044
|
"trigger": 'click' | 'hover' | 'hover-popover';
|
|
1184
1045
|
}
|
|
1185
1046
|
interface TdsPopoverMenu {
|
|
1186
1047
|
/**
|
|
1187
1048
|
* Whether the popover should animate when being opened/closed or not
|
|
1188
|
-
* @default 'none'
|
|
1189
1049
|
*/
|
|
1190
1050
|
"animation": 'none' | 'fade' | string;
|
|
1191
1051
|
/**
|
|
@@ -1194,32 +1054,26 @@ export namespace Components {
|
|
|
1194
1054
|
"close": () => Promise<void>;
|
|
1195
1055
|
/**
|
|
1196
1056
|
* Decides if the component should be visible from the start.
|
|
1197
|
-
* @default false
|
|
1198
1057
|
*/
|
|
1199
1058
|
"defaultShow": boolean;
|
|
1200
1059
|
/**
|
|
1201
1060
|
* If true this unsets the width (160px) of the Popover Menu
|
|
1202
|
-
* @default false
|
|
1203
1061
|
*/
|
|
1204
1062
|
"fluidWidth": boolean;
|
|
1205
1063
|
/**
|
|
1206
1064
|
* Mode variant of the component, based on current mode.
|
|
1207
|
-
* @default null
|
|
1208
1065
|
*/
|
|
1209
|
-
"modeVariant": 'primary' | 'secondary';
|
|
1066
|
+
"modeVariant": 'primary' | 'secondary' | null;
|
|
1210
1067
|
/**
|
|
1211
1068
|
* Sets the offset distance
|
|
1212
|
-
* @default 8
|
|
1213
1069
|
*/
|
|
1214
1070
|
"offsetDistance": number;
|
|
1215
1071
|
/**
|
|
1216
1072
|
* Sets the offset skidding
|
|
1217
|
-
* @default 0
|
|
1218
1073
|
*/
|
|
1219
1074
|
"offsetSkidding": number;
|
|
1220
1075
|
/**
|
|
1221
1076
|
* Decides the placement of the Popover Menu
|
|
1222
|
-
* @default 'auto'
|
|
1223
1077
|
*/
|
|
1224
1078
|
"placement": Placement;
|
|
1225
1079
|
/**
|
|
@@ -1232,26 +1086,22 @@ export namespace Components {
|
|
|
1232
1086
|
"selector": string;
|
|
1233
1087
|
/**
|
|
1234
1088
|
* Controls whether the Popover is shown or not. If this is set hiding and showing will be decided by this prop and will need to be controlled from the outside. This also means that clicking outside of the popover won't close it. Takes precedence over `defaultShow` prop.
|
|
1235
|
-
* @default null
|
|
1236
1089
|
*/
|
|
1237
|
-
"show": boolean;
|
|
1090
|
+
"show": boolean | null;
|
|
1238
1091
|
}
|
|
1239
1092
|
interface TdsPopoverMenuItem {
|
|
1240
1093
|
/**
|
|
1241
1094
|
* Disables the Popover Menu Item
|
|
1242
|
-
* @default false
|
|
1243
1095
|
*/
|
|
1244
1096
|
"disabled": boolean;
|
|
1245
1097
|
}
|
|
1246
1098
|
interface TdsRadioButton {
|
|
1247
1099
|
/**
|
|
1248
1100
|
* Decides if the Radio Button is checked or not.
|
|
1249
|
-
* @default false
|
|
1250
1101
|
*/
|
|
1251
1102
|
"checked": boolean;
|
|
1252
1103
|
/**
|
|
1253
1104
|
* Decides if the Radio Button is disabled or not.
|
|
1254
|
-
* @default false
|
|
1255
1105
|
*/
|
|
1256
1106
|
"disabled": boolean;
|
|
1257
1107
|
/**
|
|
@@ -1264,12 +1114,10 @@ export namespace Components {
|
|
|
1264
1114
|
"name": string;
|
|
1265
1115
|
/**
|
|
1266
1116
|
* Unique Radio Button identifier.
|
|
1267
|
-
* @default generateUniqueId()
|
|
1268
1117
|
*/
|
|
1269
1118
|
"radioId": string;
|
|
1270
1119
|
/**
|
|
1271
1120
|
* Decides if the Radio Button is required or not.
|
|
1272
|
-
* @default false
|
|
1273
1121
|
*/
|
|
1274
1122
|
"required": boolean;
|
|
1275
1123
|
/**
|
|
@@ -1288,17 +1136,14 @@ export namespace Components {
|
|
|
1288
1136
|
interface TdsSideMenu {
|
|
1289
1137
|
/**
|
|
1290
1138
|
* If the Side Menu is collapsed. Only a persistent desktop menu can be collapsed. NOTE: Only use this if you have prevented the automatic collapsing with preventDefault on the tdsCollapse event.
|
|
1291
|
-
* @default false
|
|
1292
1139
|
*/
|
|
1293
1140
|
"collapsed": boolean;
|
|
1294
1141
|
/**
|
|
1295
1142
|
* Applicable only for mobile. If the Side Menu is open or not.
|
|
1296
|
-
* @default false
|
|
1297
1143
|
*/
|
|
1298
1144
|
"open": boolean;
|
|
1299
1145
|
/**
|
|
1300
1146
|
* Applicable only for desktop. If the Side Menu should always be shown.
|
|
1301
|
-
* @default false
|
|
1302
1147
|
*/
|
|
1303
1148
|
"persistent": boolean;
|
|
1304
1149
|
}
|
|
@@ -1313,17 +1158,14 @@ export namespace Components {
|
|
|
1313
1158
|
"buttonLabel": string;
|
|
1314
1159
|
/**
|
|
1315
1160
|
* If the dropdown should be open from the start.
|
|
1316
|
-
* @default false
|
|
1317
1161
|
*/
|
|
1318
1162
|
"defaultOpen": boolean;
|
|
1319
1163
|
/**
|
|
1320
1164
|
* Toggle open state programmatically
|
|
1321
|
-
* @default false
|
|
1322
1165
|
*/
|
|
1323
1166
|
"open": boolean;
|
|
1324
1167
|
/**
|
|
1325
1168
|
* If the button that opens the dropdown should appear selected.
|
|
1326
|
-
* @default false
|
|
1327
1169
|
*/
|
|
1328
1170
|
"selected": boolean;
|
|
1329
1171
|
}
|
|
@@ -1332,19 +1174,16 @@ export namespace Components {
|
|
|
1332
1174
|
interface TdsSideMenuDropdownListItem {
|
|
1333
1175
|
/**
|
|
1334
1176
|
* If the item should appear selected.
|
|
1335
|
-
* @default false
|
|
1336
1177
|
*/
|
|
1337
1178
|
"selected": boolean;
|
|
1338
1179
|
}
|
|
1339
1180
|
interface TdsSideMenuItem {
|
|
1340
1181
|
/**
|
|
1341
1182
|
* If the item should appear active. Can be used when the item is triggering a dropdown, and the dropdown is open, for example.
|
|
1342
|
-
* @default false
|
|
1343
1183
|
*/
|
|
1344
1184
|
"active": boolean;
|
|
1345
1185
|
/**
|
|
1346
1186
|
* If the item should appear selected.
|
|
1347
|
-
* @default false
|
|
1348
1187
|
*/
|
|
1349
1188
|
"selected": boolean;
|
|
1350
1189
|
}
|
|
@@ -1391,42 +1230,34 @@ export namespace Components {
|
|
|
1391
1230
|
interface TdsSlider {
|
|
1392
1231
|
/**
|
|
1393
1232
|
* Decide to show the controls or not
|
|
1394
|
-
* @default false
|
|
1395
1233
|
*/
|
|
1396
1234
|
"controls": boolean;
|
|
1397
1235
|
/**
|
|
1398
1236
|
* Sets the disabled state for the whole component
|
|
1399
|
-
* @default false
|
|
1400
1237
|
*/
|
|
1401
1238
|
"disabled": boolean;
|
|
1402
1239
|
/**
|
|
1403
1240
|
* Decide to show the input field or not
|
|
1404
|
-
* @default false
|
|
1405
1241
|
*/
|
|
1406
1242
|
"input": boolean;
|
|
1407
1243
|
/**
|
|
1408
1244
|
* Text for label
|
|
1409
|
-
* @default ''
|
|
1410
1245
|
*/
|
|
1411
1246
|
"label": string;
|
|
1412
1247
|
/**
|
|
1413
1248
|
* Maximum value
|
|
1414
|
-
* @default '100'
|
|
1415
1249
|
*/
|
|
1416
1250
|
"max": string;
|
|
1417
1251
|
/**
|
|
1418
1252
|
* Minimum value
|
|
1419
|
-
* @default '0'
|
|
1420
1253
|
*/
|
|
1421
1254
|
"min": string;
|
|
1422
1255
|
/**
|
|
1423
1256
|
* Name property (will be inherited by the native slider component)
|
|
1424
|
-
* @default ''
|
|
1425
1257
|
*/
|
|
1426
1258
|
"name": string;
|
|
1427
1259
|
/**
|
|
1428
1260
|
* Sets the read only state for the whole component
|
|
1429
|
-
* @default false
|
|
1430
1261
|
*/
|
|
1431
1262
|
"readOnly": boolean;
|
|
1432
1263
|
/**
|
|
@@ -1435,64 +1266,52 @@ export namespace Components {
|
|
|
1435
1266
|
"reset": () => Promise<void>;
|
|
1436
1267
|
/**
|
|
1437
1268
|
* Decide to show numbers above the tick markers or not
|
|
1438
|
-
* @default false
|
|
1439
1269
|
*/
|
|
1440
1270
|
"showTickNumbers": boolean;
|
|
1441
1271
|
/**
|
|
1442
1272
|
* ID for the Slider's input element, randomly generated if not specified.
|
|
1443
|
-
* @default generateUniqueId()
|
|
1444
1273
|
*/
|
|
1445
1274
|
"sliderId": string;
|
|
1446
1275
|
/**
|
|
1447
1276
|
* Snap to the tick's grid
|
|
1448
|
-
* @default false
|
|
1449
1277
|
*/
|
|
1450
1278
|
"snap": boolean;
|
|
1451
1279
|
/**
|
|
1452
1280
|
* Defines how much to increment/decrement the value when using controls
|
|
1453
|
-
* @default '1'
|
|
1454
1281
|
*/
|
|
1455
1282
|
"step": string;
|
|
1456
1283
|
/**
|
|
1457
1284
|
* Sets the aria-label for the slider control.
|
|
1458
|
-
* @default ''
|
|
1459
1285
|
*/
|
|
1460
1286
|
"tdsAriaLabel": string;
|
|
1461
1287
|
/**
|
|
1462
1288
|
* Sets the read only aria label for the input field
|
|
1463
|
-
* @default ''
|
|
1464
1289
|
*/
|
|
1465
1290
|
"tdsReadOnlyAriaLabel": string;
|
|
1466
1291
|
/**
|
|
1467
1292
|
* Sets the size of the thumb
|
|
1468
|
-
* @default 'lg'
|
|
1469
1293
|
*/
|
|
1470
1294
|
"thumbSize": 'sm' | 'lg';
|
|
1471
1295
|
/**
|
|
1472
1296
|
* Number of tick markers (tick for min- and max-value will be added automatically)
|
|
1473
|
-
* @default '0'
|
|
1474
1297
|
*/
|
|
1475
1298
|
"ticks": string;
|
|
1476
1299
|
/**
|
|
1477
1300
|
* Decide to show the tooltip or not
|
|
1478
|
-
* @default false
|
|
1479
1301
|
*/
|
|
1480
1302
|
"tooltip": boolean;
|
|
1481
1303
|
/**
|
|
1482
1304
|
* Initial value
|
|
1483
|
-
* @default '0'
|
|
1484
1305
|
*/
|
|
1485
1306
|
"value": string;
|
|
1486
1307
|
}
|
|
1487
1308
|
interface TdsSpinner {
|
|
1488
1309
|
/**
|
|
1489
1310
|
* Size of the Spinner
|
|
1490
|
-
* @default 'lg'
|
|
1491
1311
|
*/
|
|
1492
1312
|
"size": 'xs' | 'sm' | 'md' | 'lg';
|
|
1493
1313
|
/**
|
|
1494
1314
|
* Variant of the Spinner
|
|
1495
|
-
* @default 'standard'
|
|
1496
1315
|
*/
|
|
1497
1316
|
"variant": 'standard' | 'inverted';
|
|
1498
1317
|
}
|
|
@@ -1503,7 +1322,6 @@ export namespace Components {
|
|
|
1503
1322
|
"index": string;
|
|
1504
1323
|
/**
|
|
1505
1324
|
* State of the Step
|
|
1506
|
-
* @default 'upcoming'
|
|
1507
1325
|
*/
|
|
1508
1326
|
"state": 'current' | 'error' | 'success' | 'upcoming';
|
|
1509
1327
|
"tdsAriaCurrent": string;
|
|
@@ -1511,63 +1329,52 @@ export namespace Components {
|
|
|
1511
1329
|
interface TdsStepper {
|
|
1512
1330
|
/**
|
|
1513
1331
|
* Hides the label for the child components if true.
|
|
1514
|
-
* @default false
|
|
1515
1332
|
*/
|
|
1516
1333
|
"hideLabels": boolean;
|
|
1517
1334
|
/**
|
|
1518
1335
|
* Text position, only available on a direction: horizontal
|
|
1519
|
-
* @default 'below'
|
|
1520
1336
|
*/
|
|
1521
1337
|
"labelPosition": 'aside' | 'below';
|
|
1522
1338
|
/**
|
|
1523
1339
|
* The orientation the Steps
|
|
1524
|
-
* @default 'horizontal'
|
|
1525
1340
|
*/
|
|
1526
1341
|
"orientation": 'horizontal' | 'vertical';
|
|
1527
1342
|
/**
|
|
1528
1343
|
* Size of the component and it's children.
|
|
1529
|
-
* @default 'lg'
|
|
1530
1344
|
*/
|
|
1531
1345
|
"size": 'sm' | 'lg';
|
|
1532
1346
|
/**
|
|
1533
1347
|
* ID used for internal Stepper functionality and events, must be unique. **NOTE**: If you're listening for Stepper events, you need to set this ID yourself to identify the Stepper, as the default ID is random and will be different every time.
|
|
1534
|
-
* @default generateUniqueId()
|
|
1535
1348
|
*/
|
|
1536
1349
|
"stepperId": string;
|
|
1537
1350
|
/**
|
|
1538
1351
|
* Label for the stepper component, for screen reader users
|
|
1539
|
-
* @default 'Progress steps'
|
|
1540
1352
|
*/
|
|
1541
1353
|
"tdsAriaLabel": string;
|
|
1542
1354
|
}
|
|
1543
1355
|
interface TdsTable {
|
|
1544
1356
|
/**
|
|
1545
1357
|
* Enables style where Table toolbar, rows and footer are less high
|
|
1546
|
-
* @default false
|
|
1547
1358
|
*/
|
|
1548
1359
|
"compactDesign": boolean;
|
|
1549
1360
|
/**
|
|
1550
1361
|
* Enables extended row feature of Table
|
|
1551
|
-
* @default false
|
|
1552
1362
|
*/
|
|
1553
1363
|
"expandableRows": boolean;
|
|
1554
1364
|
/**
|
|
1555
1365
|
* Returns all selected rows data.
|
|
1556
1366
|
*/
|
|
1557
|
-
"getSelectedRows": () => Promise<
|
|
1367
|
+
"getSelectedRows": () => Promise<{ cellKey: string; cellValue: string | number; }[][]>;
|
|
1558
1368
|
/**
|
|
1559
1369
|
* Width of the table, used as the constraint for horizontal scrolling. **NOTE**: this will disable usage of the responsive flag
|
|
1560
|
-
* @default null
|
|
1561
1370
|
*/
|
|
1562
|
-
"horizontalScrollWidth"?: string;
|
|
1371
|
+
"horizontalScrollWidth"?: string | null;
|
|
1563
1372
|
/**
|
|
1564
1373
|
* Variant of the component, based on current mode.
|
|
1565
|
-
* @default null
|
|
1566
1374
|
*/
|
|
1567
|
-
"modeVariant": 'primary' | 'secondary';
|
|
1375
|
+
"modeVariant": 'primary' | 'secondary' | null;
|
|
1568
1376
|
/**
|
|
1569
1377
|
* Enables multiselect feature of Table
|
|
1570
|
-
* @default false
|
|
1571
1378
|
*/
|
|
1572
1379
|
"multiselect": boolean;
|
|
1573
1380
|
/**
|
|
@@ -1576,22 +1383,18 @@ export namespace Components {
|
|
|
1576
1383
|
"noMinWidth": boolean;
|
|
1577
1384
|
/**
|
|
1578
1385
|
* Enables Table to take 100% available width with equal spacing of columns
|
|
1579
|
-
* @default false
|
|
1580
1386
|
*/
|
|
1581
1387
|
"responsive": boolean;
|
|
1582
1388
|
/**
|
|
1583
1389
|
* ID used for internal Table functionality and events, must be unique. **NOTE**: If you're listening for Table events, you need to set this ID yourself to identify the Table, as the default ID is random and will be different every time.
|
|
1584
|
-
* @default generateUniqueId()
|
|
1585
1390
|
*/
|
|
1586
1391
|
"tableId": string;
|
|
1587
1392
|
/**
|
|
1588
1393
|
* Enables style with vertical dividers between columns
|
|
1589
|
-
* @default false
|
|
1590
1394
|
*/
|
|
1591
1395
|
"verticalDividers": boolean;
|
|
1592
1396
|
/**
|
|
1593
1397
|
* Enables zebra stripe mode on the table rows or columns.
|
|
1594
|
-
* @default 'none'
|
|
1595
1398
|
*/
|
|
1596
1399
|
"zebraMode": | 'rows-odd'
|
|
1597
1400
|
| 'rows-even'
|
|
@@ -1604,38 +1407,32 @@ export namespace Components {
|
|
|
1604
1407
|
interface TdsTableBodyInputWrapper {
|
|
1605
1408
|
/**
|
|
1606
1409
|
* Controls if the edit icon is shown
|
|
1607
|
-
* @default true
|
|
1608
1410
|
*/
|
|
1609
1411
|
"showIcon": boolean;
|
|
1610
1412
|
}
|
|
1611
1413
|
interface TdsTableBodyRow {
|
|
1612
1414
|
/**
|
|
1613
1415
|
* Makes the row clickable and tabbable for accessibility purposes.
|
|
1614
|
-
* @default false
|
|
1615
1416
|
*/
|
|
1616
1417
|
"clickable": boolean;
|
|
1617
1418
|
/**
|
|
1618
1419
|
* Marks the row as disabled, used for multiselect table.
|
|
1619
|
-
* @default false
|
|
1620
1420
|
*/
|
|
1621
1421
|
"disabled"?: boolean;
|
|
1622
1422
|
/**
|
|
1623
1423
|
* Marks the row as selected, used for multiselect table.
|
|
1624
|
-
* @default false
|
|
1625
1424
|
*/
|
|
1626
1425
|
"selected": boolean;
|
|
1627
1426
|
}
|
|
1628
1427
|
interface TdsTableBodyRowExpandable {
|
|
1629
1428
|
/**
|
|
1630
1429
|
* Enables auto-collapse of other expandable rows when one row is expanded
|
|
1631
|
-
* @default false
|
|
1632
1430
|
*/
|
|
1633
1431
|
"autoCollapse": boolean;
|
|
1634
1432
|
/**
|
|
1635
1433
|
* In case that automatic count of columns does not work, user can manually set this one. Take in mind that expandable control is column too
|
|
1636
|
-
* @default null
|
|
1637
1434
|
*/
|
|
1638
|
-
"colSpan": number;
|
|
1435
|
+
"colSpan": number | null;
|
|
1639
1436
|
/**
|
|
1640
1437
|
* Method to collapse table row
|
|
1641
1438
|
*/
|
|
@@ -1650,66 +1447,54 @@ export namespace Components {
|
|
|
1650
1447
|
"expanded": boolean;
|
|
1651
1448
|
/**
|
|
1652
1449
|
* Controls the overflow behavior of the expandable row content
|
|
1653
|
-
* @default 'auto'
|
|
1654
1450
|
*/
|
|
1655
1451
|
"overflow": 'auto' | 'hidden' | 'visible';
|
|
1656
1452
|
/**
|
|
1657
1453
|
* ID for the table row. Randomly generated if not specified.
|
|
1658
|
-
* @default generateUniqueId()
|
|
1659
1454
|
*/
|
|
1660
1455
|
"rowId": string;
|
|
1661
1456
|
/**
|
|
1662
1457
|
* Aria label for the expand button, providing an accessible description
|
|
1663
|
-
* @default ''
|
|
1664
1458
|
*/
|
|
1665
1459
|
"tdsAriaLabelExpandButton": string;
|
|
1666
1460
|
}
|
|
1667
1461
|
interface TdsTableFooter {
|
|
1668
1462
|
/**
|
|
1669
1463
|
* <b>Client override</b> Used to set the column span of the footer. Use as fallback if the automatic count of columns fails.
|
|
1670
|
-
* @default null
|
|
1671
1464
|
*/
|
|
1672
|
-
"cols": number;
|
|
1465
|
+
"cols": number | null;
|
|
1673
1466
|
/**
|
|
1674
1467
|
* Sets the number of pages.
|
|
1675
|
-
* @default null
|
|
1676
1468
|
*/
|
|
1677
1469
|
"pages": number;
|
|
1678
1470
|
/**
|
|
1679
1471
|
* Enable pagination and show pagination controls
|
|
1680
|
-
* @default false
|
|
1681
1472
|
*/
|
|
1682
1473
|
"pagination": boolean;
|
|
1683
1474
|
/**
|
|
1684
1475
|
* Sets the pagination number.
|
|
1685
|
-
* @default 1
|
|
1686
1476
|
*/
|
|
1687
1477
|
"paginationValue": number;
|
|
1688
1478
|
/**
|
|
1689
1479
|
* Set available rows per page values
|
|
1690
|
-
* @default [10, 25, 50]
|
|
1691
1480
|
*/
|
|
1692
1481
|
"rowsPerPageValues": number[];
|
|
1693
1482
|
/**
|
|
1694
1483
|
* Enable rows per page dropdown
|
|
1695
|
-
* @default true
|
|
1696
1484
|
*/
|
|
1697
1485
|
"rowsperpage": boolean;
|
|
1698
1486
|
}
|
|
1699
1487
|
interface TdsTableHeader {
|
|
1700
1488
|
/**
|
|
1701
1489
|
* @deprecated Deprecated, use selected instead.
|
|
1702
|
-
* @default false
|
|
1703
1490
|
*/
|
|
1704
1491
|
"allSelected": boolean;
|
|
1705
1492
|
/**
|
|
1706
1493
|
* Prop for controlling the enabled/disabled state of the "All selected"-checkbox.
|
|
1707
|
-
* @default false
|
|
1708
1494
|
*/
|
|
1709
1495
|
"disabled"?: boolean;
|
|
1710
1496
|
/**
|
|
1711
1497
|
* Prop for controlling the indeterminate state of the "All selected"-checkbox.
|
|
1712
|
-
* @default false
|
|
1713
1498
|
*/
|
|
1714
1499
|
"indeterminate": boolean;
|
|
1715
1500
|
/**
|
|
@@ -1718,37 +1503,29 @@ export namespace Components {
|
|
|
1718
1503
|
"selected": boolean;
|
|
1719
1504
|
}
|
|
1720
1505
|
interface TdsTableHeaderInputWrapper {
|
|
1721
|
-
/**
|
|
1722
|
-
* @default false
|
|
1723
|
-
*/
|
|
1724
1506
|
"compactDesign": boolean;
|
|
1725
1507
|
/**
|
|
1726
1508
|
* Controls if the search icon is shown
|
|
1727
|
-
* @default true
|
|
1728
1509
|
*/
|
|
1729
1510
|
"showIcon": boolean;
|
|
1730
1511
|
}
|
|
1731
1512
|
interface TdsTableToolbar {
|
|
1732
1513
|
/**
|
|
1733
1514
|
* Enables preview of searchbar
|
|
1734
|
-
* @default false
|
|
1735
1515
|
*/
|
|
1736
1516
|
"filter": boolean;
|
|
1737
1517
|
/**
|
|
1738
1518
|
* Adds title to the Table
|
|
1739
|
-
* @default ''
|
|
1740
1519
|
*/
|
|
1741
1520
|
"tableTitle": string;
|
|
1742
1521
|
/**
|
|
1743
1522
|
* Aria label for the search input, providing an accessible description
|
|
1744
|
-
* @default ''
|
|
1745
1523
|
*/
|
|
1746
1524
|
"tdsSearchAriaLabel": string;
|
|
1747
1525
|
}
|
|
1748
1526
|
interface TdsTag {
|
|
1749
1527
|
/**
|
|
1750
1528
|
* Sets the size of the tag
|
|
1751
|
-
* @default 'lg'
|
|
1752
1529
|
*/
|
|
1753
1530
|
"size": 'lg' | 'sm';
|
|
1754
1531
|
/**
|
|
@@ -1757,24 +1534,20 @@ export namespace Components {
|
|
|
1757
1534
|
"text": string;
|
|
1758
1535
|
/**
|
|
1759
1536
|
* Sets the variant mode of the tag
|
|
1760
|
-
* @default 'Neutral'
|
|
1761
1537
|
*/
|
|
1762
1538
|
"variant": 'Success' | 'Warning' | 'New' | 'Neutral' | 'Information' | 'Error';
|
|
1763
1539
|
}
|
|
1764
1540
|
interface TdsTextField {
|
|
1765
1541
|
/**
|
|
1766
1542
|
* Value to be used for the text field's autocomplete attribute
|
|
1767
|
-
* @default 'off'
|
|
1768
1543
|
*/
|
|
1769
1544
|
"autocomplete": string;
|
|
1770
1545
|
/**
|
|
1771
1546
|
* Autofocus for input
|
|
1772
|
-
* @default false
|
|
1773
1547
|
*/
|
|
1774
1548
|
"autofocus": boolean;
|
|
1775
1549
|
/**
|
|
1776
1550
|
* Set input in disabled state
|
|
1777
|
-
* @default false
|
|
1778
1551
|
*/
|
|
1779
1552
|
"disabled": boolean;
|
|
1780
1553
|
/**
|
|
@@ -1787,17 +1560,14 @@ export namespace Components {
|
|
|
1787
1560
|
"helper": string;
|
|
1788
1561
|
/**
|
|
1789
1562
|
* Hides the read-only icon in the Text Field. Requires Read Only to be enabled.
|
|
1790
|
-
* @default false
|
|
1791
1563
|
*/
|
|
1792
1564
|
"hideReadOnlyIcon": boolean;
|
|
1793
1565
|
/**
|
|
1794
1566
|
* Label text
|
|
1795
|
-
* @default ''
|
|
1796
1567
|
*/
|
|
1797
1568
|
"label": string;
|
|
1798
1569
|
/**
|
|
1799
1570
|
* Position of the label for the Text Field.
|
|
1800
|
-
* @default 'no-label'
|
|
1801
1571
|
*/
|
|
1802
1572
|
"labelPosition": 'inside' | 'outside' | 'no-label';
|
|
1803
1573
|
/**
|
|
@@ -1814,42 +1584,34 @@ export namespace Components {
|
|
|
1814
1584
|
"min": string | number;
|
|
1815
1585
|
/**
|
|
1816
1586
|
* Mode variant of the Text Field
|
|
1817
|
-
* @default null
|
|
1818
1587
|
*/
|
|
1819
|
-
"modeVariant": 'primary' | 'secondary';
|
|
1588
|
+
"modeVariant": 'primary' | 'secondary' | null;
|
|
1820
1589
|
/**
|
|
1821
1590
|
* Name property
|
|
1822
|
-
* @default ''
|
|
1823
1591
|
*/
|
|
1824
1592
|
"name": string;
|
|
1825
1593
|
/**
|
|
1826
1594
|
* Unset minimum width of 208px.
|
|
1827
|
-
* @default false
|
|
1828
1595
|
*/
|
|
1829
1596
|
"noMinWidth": boolean;
|
|
1830
1597
|
/**
|
|
1831
1598
|
* Placeholder text
|
|
1832
|
-
* @default ''
|
|
1833
1599
|
*/
|
|
1834
1600
|
"placeholder": string;
|
|
1835
1601
|
/**
|
|
1836
1602
|
* Set input in readonly state
|
|
1837
|
-
* @default false
|
|
1838
1603
|
*/
|
|
1839
1604
|
"readOnly": boolean;
|
|
1840
1605
|
/**
|
|
1841
1606
|
* Makes the text field required
|
|
1842
|
-
* @default false
|
|
1843
1607
|
*/
|
|
1844
1608
|
"required": boolean;
|
|
1845
1609
|
/**
|
|
1846
1610
|
* Size of the input
|
|
1847
|
-
* @default 'lg'
|
|
1848
1611
|
*/
|
|
1849
1612
|
"size": 'sm' | 'md' | 'lg';
|
|
1850
1613
|
/**
|
|
1851
1614
|
* Error state of input
|
|
1852
|
-
* @default 'default'
|
|
1853
1615
|
*/
|
|
1854
1616
|
"state": 'error' | 'success' | 'default';
|
|
1855
1617
|
/**
|
|
@@ -1858,19 +1620,16 @@ export namespace Components {
|
|
|
1858
1620
|
"tdsAriaLabel": string;
|
|
1859
1621
|
/**
|
|
1860
1622
|
* Which input type, text, password or similar
|
|
1861
|
-
* @default 'text'
|
|
1862
1623
|
*/
|
|
1863
1624
|
"type": 'text' | 'password' | 'number' | 'email' | 'tel';
|
|
1864
1625
|
/**
|
|
1865
1626
|
* Value of the input text
|
|
1866
|
-
* @default ''
|
|
1867
1627
|
*/
|
|
1868
1628
|
"value": string;
|
|
1869
1629
|
}
|
|
1870
1630
|
interface TdsTextarea {
|
|
1871
1631
|
/**
|
|
1872
1632
|
* Control of autofocus
|
|
1873
|
-
* @default false
|
|
1874
1633
|
*/
|
|
1875
1634
|
"autofocus": boolean;
|
|
1876
1635
|
/**
|
|
@@ -1879,7 +1638,6 @@ export namespace Components {
|
|
|
1879
1638
|
"cols": number;
|
|
1880
1639
|
/**
|
|
1881
1640
|
* Set input in disabled state
|
|
1882
|
-
* @default false
|
|
1883
1641
|
*/
|
|
1884
1642
|
"disabled": boolean;
|
|
1885
1643
|
/**
|
|
@@ -1892,17 +1650,14 @@ export namespace Components {
|
|
|
1892
1650
|
"helper": string;
|
|
1893
1651
|
/**
|
|
1894
1652
|
* Hide the readonly icon
|
|
1895
|
-
* @default false
|
|
1896
1653
|
*/
|
|
1897
1654
|
"hideReadOnlyIcon": boolean;
|
|
1898
1655
|
/**
|
|
1899
1656
|
* Label text
|
|
1900
|
-
* @default ''
|
|
1901
1657
|
*/
|
|
1902
1658
|
"label": string;
|
|
1903
1659
|
/**
|
|
1904
1660
|
* Position of the label for the Textarea.
|
|
1905
|
-
* @default 'no-label'
|
|
1906
1661
|
*/
|
|
1907
1662
|
"labelPosition": 'inside' | 'outside' | 'no-label';
|
|
1908
1663
|
/**
|
|
@@ -1911,27 +1666,22 @@ export namespace Components {
|
|
|
1911
1666
|
"maxLength": number;
|
|
1912
1667
|
/**
|
|
1913
1668
|
* Mode variant of the Textarea
|
|
1914
|
-
* @default null
|
|
1915
1669
|
*/
|
|
1916
|
-
"modeVariant": 'primary' | 'secondary';
|
|
1670
|
+
"modeVariant": 'primary' | 'secondary' | null;
|
|
1917
1671
|
/**
|
|
1918
1672
|
* Name attribute
|
|
1919
|
-
* @default ''
|
|
1920
1673
|
*/
|
|
1921
1674
|
"name": string;
|
|
1922
1675
|
/**
|
|
1923
1676
|
* Unset minimum width of 208px.
|
|
1924
|
-
* @default false
|
|
1925
1677
|
*/
|
|
1926
1678
|
"noMinWidth": boolean;
|
|
1927
1679
|
/**
|
|
1928
1680
|
* Placeholder text
|
|
1929
|
-
* @default ''
|
|
1930
1681
|
*/
|
|
1931
1682
|
"placeholder": string;
|
|
1932
1683
|
/**
|
|
1933
1684
|
* Set input in readonly state
|
|
1934
|
-
* @default false
|
|
1935
1685
|
*/
|
|
1936
1686
|
"readOnly": boolean;
|
|
1937
1687
|
/**
|
|
@@ -1940,7 +1690,6 @@ export namespace Components {
|
|
|
1940
1690
|
"rows": number;
|
|
1941
1691
|
/**
|
|
1942
1692
|
* Error state of input
|
|
1943
|
-
* @default 'default'
|
|
1944
1693
|
*/
|
|
1945
1694
|
"state": 'error' | 'success' | 'default';
|
|
1946
1695
|
/**
|
|
@@ -1949,14 +1698,12 @@ export namespace Components {
|
|
|
1949
1698
|
"tdsAriaLabel": string;
|
|
1950
1699
|
/**
|
|
1951
1700
|
* Value of the input text
|
|
1952
|
-
* @default ''
|
|
1953
1701
|
*/
|
|
1954
1702
|
"value": string;
|
|
1955
1703
|
}
|
|
1956
1704
|
interface TdsToast {
|
|
1957
1705
|
/**
|
|
1958
1706
|
* Enables the close button.
|
|
1959
|
-
* @default true
|
|
1960
1707
|
*/
|
|
1961
1708
|
"closable": boolean;
|
|
1962
1709
|
/**
|
|
@@ -1965,7 +1712,6 @@ export namespace Components {
|
|
|
1965
1712
|
"header": string;
|
|
1966
1713
|
/**
|
|
1967
1714
|
* Hides the Toast.
|
|
1968
|
-
* @default false
|
|
1969
1715
|
*/
|
|
1970
1716
|
"hidden": boolean;
|
|
1971
1717
|
/**
|
|
@@ -1982,7 +1728,6 @@ export namespace Components {
|
|
|
1982
1728
|
"subheader": string;
|
|
1983
1729
|
/**
|
|
1984
1730
|
* ARIA live for the Toast.
|
|
1985
|
-
* @default 'polite'
|
|
1986
1731
|
*/
|
|
1987
1732
|
"tdsAriaLive": 'polite' | 'assertive';
|
|
1988
1733
|
/**
|
|
@@ -1991,29 +1736,24 @@ export namespace Components {
|
|
|
1991
1736
|
"tdsCloseAriaLabel": string;
|
|
1992
1737
|
/**
|
|
1993
1738
|
* ID for the Toast. Randomly generated if not specified.
|
|
1994
|
-
* @default generateUniqueId()
|
|
1995
1739
|
*/
|
|
1996
1740
|
"toastId": string;
|
|
1997
1741
|
/**
|
|
1998
1742
|
* ARIA role for the Toast.
|
|
1999
|
-
* @default 'alert'
|
|
2000
1743
|
*/
|
|
2001
1744
|
"toastRole": 'alert' | 'log' | 'status';
|
|
2002
1745
|
/**
|
|
2003
1746
|
* Type of Toast.
|
|
2004
|
-
* @default 'information'
|
|
2005
1747
|
*/
|
|
2006
1748
|
"variant": 'information' | 'error' | 'warning' | 'success';
|
|
2007
1749
|
}
|
|
2008
1750
|
interface TdsToggle {
|
|
2009
1751
|
/**
|
|
2010
1752
|
* Sets the Toggle as checked
|
|
2011
|
-
* @default false
|
|
2012
1753
|
*/
|
|
2013
1754
|
"checked": boolean;
|
|
2014
1755
|
/**
|
|
2015
1756
|
* Sets the Toggle in a disabled state
|
|
2016
|
-
* @default false
|
|
2017
1757
|
*/
|
|
2018
1758
|
"disabled": boolean;
|
|
2019
1759
|
/**
|
|
@@ -2030,12 +1770,10 @@ export namespace Components {
|
|
|
2030
1770
|
"name": string;
|
|
2031
1771
|
/**
|
|
2032
1772
|
* Make the Toggle required
|
|
2033
|
-
* @default false
|
|
2034
1773
|
*/
|
|
2035
1774
|
"required": boolean;
|
|
2036
1775
|
/**
|
|
2037
1776
|
* Size of the Toggle
|
|
2038
|
-
* @default 'lg'
|
|
2039
1777
|
*/
|
|
2040
1778
|
"size": 'sm' | 'lg';
|
|
2041
1779
|
/**
|
|
@@ -2048,34 +1786,28 @@ export namespace Components {
|
|
|
2048
1786
|
"toggle": () => Promise<{ toggleId: string; checked: boolean; }>;
|
|
2049
1787
|
/**
|
|
2050
1788
|
* ID of the Toggle's input element, if not specified, it's randomly generated
|
|
2051
|
-
* @default generateUniqueId()
|
|
2052
1789
|
*/
|
|
2053
1790
|
"toggleId": string;
|
|
2054
1791
|
}
|
|
2055
1792
|
interface TdsTooltip {
|
|
2056
1793
|
/**
|
|
2057
1794
|
* Decides if the component should be visible from the start.
|
|
2058
|
-
* @default false
|
|
2059
1795
|
*/
|
|
2060
1796
|
"defaultShow": boolean;
|
|
2061
1797
|
/**
|
|
2062
1798
|
* Allow mouse over Tooltip. Useful when Tooltip contains clickable elements like link or button.
|
|
2063
|
-
* @default false
|
|
2064
1799
|
*/
|
|
2065
1800
|
"mouseOverTooltip": boolean;
|
|
2066
1801
|
/**
|
|
2067
1802
|
* Sets the offset distance
|
|
2068
|
-
* @default 8
|
|
2069
1803
|
*/
|
|
2070
1804
|
"offsetDistance": number;
|
|
2071
1805
|
/**
|
|
2072
1806
|
* Sets the offset skidding
|
|
2073
|
-
* @default 0
|
|
2074
1807
|
*/
|
|
2075
1808
|
"offsetSkidding": number;
|
|
2076
1809
|
/**
|
|
2077
1810
|
* Placement of Tooltip.
|
|
2078
|
-
* @default 'bottom'
|
|
2079
1811
|
*/
|
|
2080
1812
|
"placement": Placement;
|
|
2081
1813
|
/**
|
|
@@ -2088,21 +1820,18 @@ export namespace Components {
|
|
|
2088
1820
|
"selector": string;
|
|
2089
1821
|
/**
|
|
2090
1822
|
* Prop in control of showing and hiding prop. Takes precedence over `defaultOpen` prop.
|
|
2091
|
-
* @default null
|
|
2092
1823
|
*/
|
|
2093
|
-
"show": boolean;
|
|
1824
|
+
"show": boolean | null;
|
|
2094
1825
|
/**
|
|
2095
1826
|
* Sets the aria-describedby attribute
|
|
2096
1827
|
*/
|
|
2097
1828
|
"tdsAriaDescribedby": string;
|
|
2098
1829
|
/**
|
|
2099
1830
|
* In case Tooltip contains only text, no HTML, a text can be passed by this prop
|
|
2100
|
-
* @default ''
|
|
2101
1831
|
*/
|
|
2102
1832
|
"text": string;
|
|
2103
1833
|
/**
|
|
2104
1834
|
* What triggers the popover to show
|
|
2105
|
-
* @default 'hover'
|
|
2106
1835
|
*/
|
|
2107
1836
|
"trigger": 'click' | 'hover';
|
|
2108
1837
|
}
|
|
@@ -2416,7 +2145,7 @@ declare global {
|
|
|
2416
2145
|
interface HTMLTdsDropdownElementEventMap {
|
|
2417
2146
|
"tdsChange": {
|
|
2418
2147
|
name: string;
|
|
2419
|
-
value: string;
|
|
2148
|
+
value: string | null;
|
|
2420
2149
|
};
|
|
2421
2150
|
"tdsFocus": FocusEvent;
|
|
2422
2151
|
"tdsBlur": FocusEvent;
|
|
@@ -2515,17 +2244,17 @@ declare global {
|
|
|
2515
2244
|
};
|
|
2516
2245
|
interface HTMLTdsHeaderCellElementEventMap {
|
|
2517
2246
|
"tdsSort": {
|
|
2518
|
-
tableId: string;
|
|
2519
|
-
columnKey: string;
|
|
2247
|
+
tableId: string | undefined;
|
|
2248
|
+
columnKey: string | undefined;
|
|
2520
2249
|
sortingDirection: 'asc' | 'desc';
|
|
2521
2250
|
};
|
|
2522
2251
|
"internalSortButtonClicked": {
|
|
2523
|
-
tableId: string;
|
|
2524
|
-
key: string;
|
|
2252
|
+
tableId: string | undefined;
|
|
2253
|
+
key: string | undefined;
|
|
2525
2254
|
};
|
|
2526
|
-
"internalTdsTextAlign":
|
|
2255
|
+
"internalTdsTextAlign": object;
|
|
2527
2256
|
"internalTdsHover": {
|
|
2528
|
-
tableId: string;
|
|
2257
|
+
tableId: string | undefined;
|
|
2529
2258
|
key: string;
|
|
2530
2259
|
};
|
|
2531
2260
|
}
|
|
@@ -2677,7 +2406,7 @@ declare global {
|
|
|
2677
2406
|
new (): HTMLTdsMessageElement;
|
|
2678
2407
|
};
|
|
2679
2408
|
interface HTMLTdsModalElementEventMap {
|
|
2680
|
-
"tdsClose":
|
|
2409
|
+
"tdsClose": object;
|
|
2681
2410
|
"tdsOpen": void;
|
|
2682
2411
|
}
|
|
2683
2412
|
interface HTMLTdsModalElement extends Components.TdsModal, HTMLStencilElement {
|
|
@@ -2726,8 +2455,8 @@ declare global {
|
|
|
2726
2455
|
new (): HTMLTdsPopoverCanvasElement;
|
|
2727
2456
|
};
|
|
2728
2457
|
interface HTMLTdsPopoverCoreElementEventMap {
|
|
2729
|
-
"internalTdsShow":
|
|
2730
|
-
"internalTdsClose":
|
|
2458
|
+
"internalTdsShow": object;
|
|
2459
|
+
"internalTdsClose": object;
|
|
2731
2460
|
}
|
|
2732
2461
|
interface HTMLTdsPopoverCoreElement extends Components.TdsPopoverCore, HTMLStencilElement {
|
|
2733
2462
|
addEventListener<K extends keyof HTMLTdsPopoverCoreElementEventMap>(type: K, listener: (this: HTMLTdsPopoverCoreElement, ev: TdsPopoverCoreCustomEvent<HTMLTdsPopoverCoreElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -2948,13 +2677,13 @@ declare global {
|
|
|
2948
2677
|
};
|
|
2949
2678
|
interface HTMLTdsTableBodyRowElementEventMap {
|
|
2950
2679
|
"tdsSelect": {
|
|
2951
|
-
tableId: string;
|
|
2680
|
+
tableId: string | undefined;
|
|
2952
2681
|
checked: boolean;
|
|
2953
|
-
selectedRows:
|
|
2682
|
+
selectedRows: object[] | undefined;
|
|
2954
2683
|
};
|
|
2955
2684
|
"tdsClick": {
|
|
2956
2685
|
event: MouseEvent;
|
|
2957
|
-
tableId: string;
|
|
2686
|
+
tableId: string | undefined;
|
|
2958
2687
|
rowIndex: number;
|
|
2959
2688
|
};
|
|
2960
2689
|
}
|
|
@@ -2973,11 +2702,11 @@ declare global {
|
|
|
2973
2702
|
new (): HTMLTdsTableBodyRowElement;
|
|
2974
2703
|
};
|
|
2975
2704
|
interface HTMLTdsTableBodyRowExpandableElementEventMap {
|
|
2976
|
-
"internalTdsRowExpanded":
|
|
2705
|
+
"internalTdsRowExpanded": object;
|
|
2977
2706
|
"tdsChange": {
|
|
2978
2707
|
rowId: string;
|
|
2979
2708
|
isExpanded: boolean;
|
|
2980
|
-
tableId: string;
|
|
2709
|
+
tableId: string | undefined;
|
|
2981
2710
|
};
|
|
2982
2711
|
}
|
|
2983
2712
|
interface HTMLTdsTableBodyRowExpandableElement extends Components.TdsTableBodyRowExpandable, HTMLStencilElement {
|
|
@@ -2996,7 +2725,7 @@ declare global {
|
|
|
2996
2725
|
};
|
|
2997
2726
|
interface HTMLTdsTableFooterElementEventMap {
|
|
2998
2727
|
"tdsPagination": {
|
|
2999
|
-
tableId: string;
|
|
2728
|
+
tableId: string | undefined;
|
|
3000
2729
|
paginationValue: number;
|
|
3001
2730
|
rowsPerPage?: number;
|
|
3002
2731
|
};
|
|
@@ -3017,9 +2746,9 @@ declare global {
|
|
|
3017
2746
|
};
|
|
3018
2747
|
interface HTMLTdsTableHeaderElementEventMap {
|
|
3019
2748
|
"tdsSelectAll": {
|
|
3020
|
-
tableId: string;
|
|
2749
|
+
tableId: string | undefined;
|
|
3021
2750
|
checked: boolean;
|
|
3022
|
-
selectedRows:
|
|
2751
|
+
selectedRows: object[] | undefined;
|
|
3023
2752
|
};
|
|
3024
2753
|
}
|
|
3025
2754
|
interface HTMLTdsTableHeaderElement extends Components.TdsTableHeader, HTMLStencilElement {
|
|
@@ -3044,7 +2773,7 @@ declare global {
|
|
|
3044
2773
|
};
|
|
3045
2774
|
interface HTMLTdsTableToolbarElementEventMap {
|
|
3046
2775
|
"tdsFilter": {
|
|
3047
|
-
tableId: string;
|
|
2776
|
+
tableId: string | undefined;
|
|
3048
2777
|
query: string;
|
|
3049
2778
|
};
|
|
3050
2779
|
}
|
|
@@ -3243,39 +2972,32 @@ declare namespace LocalJSX {
|
|
|
3243
2972
|
interface TdsAccordion {
|
|
3244
2973
|
/**
|
|
3245
2974
|
* Removes the bottom border of the last Accordion item.
|
|
3246
|
-
* @default false
|
|
3247
2975
|
*/
|
|
3248
2976
|
"hideLastBorder"?: boolean;
|
|
3249
2977
|
/**
|
|
3250
2978
|
* Set the variant of the Accordion.
|
|
3251
|
-
* @default null
|
|
3252
2979
|
*/
|
|
3253
|
-
"modeVariant"?: 'primary' | 'secondary';
|
|
2980
|
+
"modeVariant"?: 'primary' | 'secondary' | null;
|
|
3254
2981
|
}
|
|
3255
2982
|
interface TdsAccordionItem {
|
|
3256
2983
|
/**
|
|
3257
2984
|
* Specifies the heading level (aria-level) for accessibility. Only accepts values between 1 and 6.
|
|
3258
|
-
* @default '6'
|
|
3259
2985
|
*/
|
|
3260
2986
|
"ariaLevelValue"?: '1' | '2' | '3' | '4' | '5' | '6';
|
|
3261
2987
|
/**
|
|
3262
2988
|
* Disabled option in `boolean`.
|
|
3263
|
-
* @default false
|
|
3264
2989
|
*/
|
|
3265
2990
|
"disabled"?: boolean;
|
|
3266
2991
|
/**
|
|
3267
2992
|
* Changes position of the expand icon.
|
|
3268
|
-
* @default 'end'
|
|
3269
2993
|
*/
|
|
3270
2994
|
"expandIconPosition"?: 'start' | 'end';
|
|
3271
2995
|
/**
|
|
3272
2996
|
* Set to true to expand panel open
|
|
3273
|
-
* @default false
|
|
3274
2997
|
*/
|
|
3275
2998
|
"expanded"?: boolean;
|
|
3276
2999
|
/**
|
|
3277
3000
|
* The header gives users the context about the additional information available inside the panel
|
|
3278
|
-
* @default ''
|
|
3279
3001
|
*/
|
|
3280
3002
|
"header"?: string;
|
|
3281
3003
|
/**
|
|
@@ -3286,36 +3008,30 @@ declare namespace LocalJSX {
|
|
|
3286
3008
|
}>) => void;
|
|
3287
3009
|
/**
|
|
3288
3010
|
* When true, 16px on right padding instead of 64px
|
|
3289
|
-
* @default false
|
|
3290
3011
|
*/
|
|
3291
3012
|
"paddingReset"?: boolean;
|
|
3292
3013
|
}
|
|
3293
3014
|
interface TdsBadge {
|
|
3294
3015
|
/**
|
|
3295
3016
|
* Changes visibility of Badge
|
|
3296
|
-
* @default false
|
|
3297
3017
|
*/
|
|
3298
3018
|
"hidden"?: boolean;
|
|
3299
3019
|
/**
|
|
3300
3020
|
* Sets component size.
|
|
3301
|
-
* @default 'lg'
|
|
3302
3021
|
*/
|
|
3303
3022
|
"size"?: 'lg' | 'sm';
|
|
3304
3023
|
/**
|
|
3305
3024
|
* Defines aria-live attribute
|
|
3306
|
-
* @default 'polite'
|
|
3307
3025
|
*/
|
|
3308
3026
|
"tdsAriaLive"?: 'off' | 'polite' | 'assertive';
|
|
3309
3027
|
/**
|
|
3310
3028
|
* Value shown in Badge
|
|
3311
|
-
* @default ''
|
|
3312
3029
|
*/
|
|
3313
3030
|
"value"?: string;
|
|
3314
3031
|
}
|
|
3315
3032
|
interface TdsBanner {
|
|
3316
3033
|
/**
|
|
3317
3034
|
* ID used for internal table functionality and events, must be unique. **NOTE**: If you're listening for Banner close events, you need to set this ID yourself to identify the Banner, as the default ID is random and will be different every time.
|
|
3318
|
-
* @default generateUniqueId()
|
|
3319
3035
|
*/
|
|
3320
3036
|
"bannerId"?: string;
|
|
3321
3037
|
/**
|
|
@@ -3324,7 +3040,6 @@ declare namespace LocalJSX {
|
|
|
3324
3040
|
"header"?: string;
|
|
3325
3041
|
/**
|
|
3326
3042
|
* Hides the Banner
|
|
3327
|
-
* @default false
|
|
3328
3043
|
*/
|
|
3329
3044
|
"hidden"?: boolean;
|
|
3330
3045
|
/**
|
|
@@ -3339,7 +3054,6 @@ declare namespace LocalJSX {
|
|
|
3339
3054
|
}>) => void;
|
|
3340
3055
|
/**
|
|
3341
3056
|
* Defines the ARIA role of the banner. Defaults to "banner" for global use, but can be set to "region" or "alert" if used differently.
|
|
3342
|
-
* @default 'banner'
|
|
3343
3057
|
*/
|
|
3344
3058
|
"roleType"?: 'banner' | 'region' | 'alert';
|
|
3345
3059
|
/**
|
|
@@ -3348,7 +3062,6 @@ declare namespace LocalJSX {
|
|
|
3348
3062
|
"subheader"?: string;
|
|
3349
3063
|
/**
|
|
3350
3064
|
* Variant of Banner
|
|
3351
|
-
* @default 'default'
|
|
3352
3065
|
*/
|
|
3353
3066
|
"variant"?: 'error' | 'information' | 'default';
|
|
3354
3067
|
}
|
|
@@ -3360,7 +3073,6 @@ declare namespace LocalJSX {
|
|
|
3360
3073
|
interface TdsBlock {
|
|
3361
3074
|
/**
|
|
3362
3075
|
* Specifies the HTML tag to be used for the component wrapper.
|
|
3363
|
-
* @default 'div'
|
|
3364
3076
|
*/
|
|
3365
3077
|
"componentTag"?: | 'section'
|
|
3366
3078
|
| 'div'
|
|
@@ -3372,22 +3084,20 @@ declare namespace LocalJSX {
|
|
|
3372
3084
|
| 'main';
|
|
3373
3085
|
/**
|
|
3374
3086
|
* Mode variant of the component, based on current mode.
|
|
3375
|
-
* @default null
|
|
3376
3087
|
*/
|
|
3377
|
-
"modeVariant"?: 'primary' | 'secondary';
|
|
3088
|
+
"modeVariant"?: 'primary' | 'secondary' | null;
|
|
3378
3089
|
}
|
|
3379
3090
|
interface TdsBodyCell {
|
|
3380
3091
|
/**
|
|
3381
3092
|
* Passing the same cell key for all body cells which is used in head cell enables features of text align and hovering
|
|
3382
3093
|
*/
|
|
3383
|
-
"cellKey"?:
|
|
3094
|
+
"cellKey"?: string;
|
|
3384
3095
|
/**
|
|
3385
3096
|
* Value that will be presented as text inside a cell
|
|
3386
3097
|
*/
|
|
3387
3098
|
"cellValue"?: string | number;
|
|
3388
3099
|
/**
|
|
3389
3100
|
* Disables internal padding. Useful when passing other components to cell.
|
|
3390
|
-
* @default false
|
|
3391
3101
|
*/
|
|
3392
3102
|
"disablePadding"?: boolean;
|
|
3393
3103
|
/**
|
|
@@ -3398,7 +3108,6 @@ declare namespace LocalJSX {
|
|
|
3398
3108
|
interface TdsBreadcrumb {
|
|
3399
3109
|
/**
|
|
3400
3110
|
* Boolean for the current link
|
|
3401
|
-
* @default false
|
|
3402
3111
|
*/
|
|
3403
3112
|
"current"?: boolean;
|
|
3404
3113
|
}
|
|
@@ -3411,31 +3120,26 @@ declare namespace LocalJSX {
|
|
|
3411
3120
|
interface TdsButton {
|
|
3412
3121
|
/**
|
|
3413
3122
|
* Determines if and how the button should animate.
|
|
3414
|
-
* @default 'none'
|
|
3415
3123
|
*/
|
|
3416
3124
|
"animation"?: 'none' | 'fade';
|
|
3417
3125
|
/**
|
|
3418
3126
|
* Control for disabled state of a component
|
|
3419
|
-
* @default false
|
|
3420
3127
|
*/
|
|
3421
3128
|
"disabled"?: boolean;
|
|
3422
3129
|
/**
|
|
3423
3130
|
* When enabled, the Button takes 100% width
|
|
3424
|
-
* @default false
|
|
3425
3131
|
*/
|
|
3426
3132
|
"fullbleed"?: boolean;
|
|
3427
3133
|
/**
|
|
3428
3134
|
* Set the mode variant of the Button.
|
|
3429
|
-
* @default null
|
|
3430
3135
|
*/
|
|
3431
|
-
"modeVariant"?: 'primary' | 'secondary';
|
|
3136
|
+
"modeVariant"?: 'primary' | 'secondary' | null;
|
|
3432
3137
|
/**
|
|
3433
3138
|
* The name attribute allows for different ways of accessing the button element
|
|
3434
3139
|
*/
|
|
3435
3140
|
"name"?: string;
|
|
3436
3141
|
/**
|
|
3437
3142
|
* Size of a Button
|
|
3438
|
-
* @default 'lg'
|
|
3439
3143
|
*/
|
|
3440
3144
|
"size"?: 'xs' | 'sm' | 'md' | 'lg';
|
|
3441
3145
|
/**
|
|
@@ -3448,7 +3152,6 @@ declare namespace LocalJSX {
|
|
|
3448
3152
|
"text"?: string;
|
|
3449
3153
|
/**
|
|
3450
3154
|
* Button's type
|
|
3451
|
-
* @default 'button'
|
|
3452
3155
|
*/
|
|
3453
3156
|
"type"?: 'button' | 'submit' | 'reset';
|
|
3454
3157
|
/**
|
|
@@ -3457,14 +3160,12 @@ declare namespace LocalJSX {
|
|
|
3457
3160
|
"value"?: string;
|
|
3458
3161
|
/**
|
|
3459
3162
|
* Variation of Button's design
|
|
3460
|
-
* @default 'primary'
|
|
3461
3163
|
*/
|
|
3462
3164
|
"variant"?: 'primary' | 'secondary' | 'ghost' | 'danger';
|
|
3463
3165
|
}
|
|
3464
3166
|
interface TdsCard {
|
|
3465
3167
|
/**
|
|
3466
3168
|
* Divider for the body
|
|
3467
|
-
* @default false
|
|
3468
3169
|
*/
|
|
3469
3170
|
"bodyDivider"?: boolean;
|
|
3470
3171
|
/**
|
|
@@ -3477,22 +3178,18 @@ declare namespace LocalJSX {
|
|
|
3477
3178
|
"bodyImgAlt"?: string;
|
|
3478
3179
|
/**
|
|
3479
3180
|
* ID for the Card, must be unique. **NOTE**: If you're listening for Card events, you need to set this ID yourself to identify the Card, as the default ID is random and will be different every time.
|
|
3480
|
-
* @default generateUniqueId()
|
|
3481
3181
|
*/
|
|
3482
3182
|
"cardId"?: string;
|
|
3483
3183
|
/**
|
|
3484
3184
|
* Makes the Card clickable.
|
|
3485
|
-
* @default false
|
|
3486
3185
|
*/
|
|
3487
3186
|
"clickable"?: boolean;
|
|
3488
3187
|
/**
|
|
3489
3188
|
* Enables expandable behaviour. When true, clicking the header toggles content visibility.
|
|
3490
|
-
* @default false
|
|
3491
3189
|
*/
|
|
3492
3190
|
"expandable"?: boolean;
|
|
3493
3191
|
/**
|
|
3494
3192
|
* Tracks the current expanded state when expandable is enabled.
|
|
3495
|
-
* @default false
|
|
3496
3193
|
*/
|
|
3497
3194
|
"expanded"?: boolean;
|
|
3498
3195
|
/**
|
|
@@ -3501,23 +3198,18 @@ declare namespace LocalJSX {
|
|
|
3501
3198
|
"header"?: string;
|
|
3502
3199
|
/**
|
|
3503
3200
|
* Placement of the header
|
|
3504
|
-
* @default 'below-header'
|
|
3505
3201
|
*/
|
|
3506
3202
|
"imagePlacement"?: 'above-header' | 'below-header';
|
|
3507
3203
|
/**
|
|
3508
3204
|
* Variant of the Card based on the theme used.
|
|
3509
|
-
* @default null
|
|
3510
3205
|
*/
|
|
3511
|
-
"modeVariant"?: 'primary' | 'secondary';
|
|
3206
|
+
"modeVariant"?: 'primary' | 'secondary' | null;
|
|
3512
3207
|
/**
|
|
3513
3208
|
* Sends unique Card identifier when the Card is clicked, if clickable=true
|
|
3514
3209
|
*/
|
|
3515
3210
|
"onTdsClick"?: (event: TdsCardCustomEvent<{
|
|
3516
3211
|
cardId: string;
|
|
3517
3212
|
}>) => void;
|
|
3518
|
-
/**
|
|
3519
|
-
* @default false
|
|
3520
|
-
*/
|
|
3521
3213
|
"stretch"?: boolean;
|
|
3522
3214
|
/**
|
|
3523
3215
|
* Subheader text in the header
|
|
@@ -3527,22 +3219,18 @@ declare namespace LocalJSX {
|
|
|
3527
3219
|
interface TdsCheckbox {
|
|
3528
3220
|
/**
|
|
3529
3221
|
* ID for the Checkbox's input element. Randomly generated if not specified.
|
|
3530
|
-
* @default generateUniqueId()
|
|
3531
3222
|
*/
|
|
3532
3223
|
"checkboxId"?: string;
|
|
3533
3224
|
/**
|
|
3534
3225
|
* Sets the Checkbox as checked
|
|
3535
|
-
* @default false
|
|
3536
3226
|
*/
|
|
3537
3227
|
"checked"?: boolean;
|
|
3538
3228
|
/**
|
|
3539
3229
|
* Sets the Checkbox in a disabled state
|
|
3540
|
-
* @default false
|
|
3541
3230
|
*/
|
|
3542
3231
|
"disabled"?: boolean;
|
|
3543
3232
|
/**
|
|
3544
3233
|
* Sets the Checkbox as indeterminate
|
|
3545
|
-
* @default false
|
|
3546
3234
|
*/
|
|
3547
3235
|
"indeterminate"?: boolean;
|
|
3548
3236
|
/**
|
|
@@ -3568,7 +3256,6 @@ declare namespace LocalJSX {
|
|
|
3568
3256
|
"onTdsFocus"?: (event: TdsCheckboxCustomEvent<FocusEvent>) => void;
|
|
3569
3257
|
/**
|
|
3570
3258
|
* Make the Checkbox required
|
|
3571
|
-
* @default false
|
|
3572
3259
|
*/
|
|
3573
3260
|
"required"?: boolean;
|
|
3574
3261
|
/**
|
|
@@ -3587,17 +3274,14 @@ declare namespace LocalJSX {
|
|
|
3587
3274
|
interface TdsChip {
|
|
3588
3275
|
/**
|
|
3589
3276
|
* Controls component's checked attribute. Valid only for type checkbox and radio.
|
|
3590
|
-
* @default false
|
|
3591
3277
|
*/
|
|
3592
3278
|
"checked"?: boolean;
|
|
3593
3279
|
/**
|
|
3594
3280
|
* ID used for internal Chip functionality and events, must be unique. **NOTE**: If you're listening for input events, you need to set this ID yourself to identify the input, as the default ID is random and will be different every time.
|
|
3595
|
-
* @default generateUniqueId()
|
|
3596
3281
|
*/
|
|
3597
3282
|
"chipId"?: string;
|
|
3598
3283
|
/**
|
|
3599
3284
|
* Sets the Chip in a disabled state
|
|
3600
|
-
* @default false
|
|
3601
3285
|
*/
|
|
3602
3286
|
"disabled"?: boolean;
|
|
3603
3287
|
/**
|
|
@@ -3620,7 +3304,6 @@ declare namespace LocalJSX {
|
|
|
3620
3304
|
}>) => void;
|
|
3621
3305
|
/**
|
|
3622
3306
|
* Size of the Chip component
|
|
3623
|
-
* @default 'lg'
|
|
3624
3307
|
*/
|
|
3625
3308
|
"size"?: 'sm' | 'lg';
|
|
3626
3309
|
/**
|
|
@@ -3629,7 +3312,6 @@ declare namespace LocalJSX {
|
|
|
3629
3312
|
"tdsAriaLabel"?: string;
|
|
3630
3313
|
/**
|
|
3631
3314
|
* Type of Chip, depends on usage
|
|
3632
|
-
* @default 'button'
|
|
3633
3315
|
*/
|
|
3634
3316
|
"type"?: 'button' | 'radio' | 'checkbox';
|
|
3635
3317
|
/**
|
|
@@ -3642,32 +3324,26 @@ declare namespace LocalJSX {
|
|
|
3642
3324
|
interface TdsDatetime {
|
|
3643
3325
|
/**
|
|
3644
3326
|
* Autofocus for input
|
|
3645
|
-
* @default false
|
|
3646
3327
|
*/
|
|
3647
3328
|
"autofocus"?: boolean;
|
|
3648
3329
|
/**
|
|
3649
3330
|
* Default value of the component. Format for time: HH-MM. Format for date: YY-MM-DD. Format for month: YY-MM. Format for week: YY-Www Format for date-time: YY-MM-DDTHH-MM
|
|
3650
|
-
* @default 'none'
|
|
3651
3331
|
*/
|
|
3652
3332
|
"defaultValue"?: string | 'none';
|
|
3653
3333
|
/**
|
|
3654
3334
|
* Set input in disabled state
|
|
3655
|
-
* @default false
|
|
3656
3335
|
*/
|
|
3657
3336
|
"disabled"?: boolean;
|
|
3658
3337
|
/**
|
|
3659
3338
|
* Helper text for the component
|
|
3660
|
-
* @default ''
|
|
3661
3339
|
*/
|
|
3662
3340
|
"helper"?: string;
|
|
3663
3341
|
/**
|
|
3664
3342
|
* Label text for the component
|
|
3665
|
-
* @default ''
|
|
3666
3343
|
*/
|
|
3667
3344
|
"label"?: string;
|
|
3668
3345
|
/**
|
|
3669
3346
|
* Position of the label
|
|
3670
|
-
* @default 'no-label'
|
|
3671
3347
|
*/
|
|
3672
3348
|
"labelPosition"?: 'inside' | 'outside' | 'no-label';
|
|
3673
3349
|
/**
|
|
@@ -3680,17 +3356,14 @@ declare namespace LocalJSX {
|
|
|
3680
3356
|
"min"?: string;
|
|
3681
3357
|
/**
|
|
3682
3358
|
* Set the variant of the Datetime component.
|
|
3683
|
-
* @default null
|
|
3684
3359
|
*/
|
|
3685
|
-
"modeVariant"?: 'primary' | 'secondary';
|
|
3360
|
+
"modeVariant"?: 'primary' | 'secondary' | null;
|
|
3686
3361
|
/**
|
|
3687
3362
|
* Name property. Uses a unique ID as fallback if not specified.
|
|
3688
|
-
* @default `datetime-${generateUniqueId()}`
|
|
3689
3363
|
*/
|
|
3690
3364
|
"name"?: string;
|
|
3691
3365
|
/**
|
|
3692
3366
|
* Resets min width rule
|
|
3693
|
-
* @default false
|
|
3694
3367
|
*/
|
|
3695
3368
|
"noMinWidth"?: boolean;
|
|
3696
3369
|
/**
|
|
@@ -3711,7 +3384,6 @@ declare namespace LocalJSX {
|
|
|
3711
3384
|
"onTdsInput"?: (event: TdsDatetimeCustomEvent<InputEvent>) => void;
|
|
3712
3385
|
/**
|
|
3713
3386
|
* Size of the input
|
|
3714
|
-
* @default 'lg'
|
|
3715
3387
|
*/
|
|
3716
3388
|
"size"?: 'sm' | 'md' | 'lg';
|
|
3717
3389
|
/**
|
|
@@ -3724,31 +3396,24 @@ declare namespace LocalJSX {
|
|
|
3724
3396
|
"tdsAriaLabel"?: string;
|
|
3725
3397
|
/**
|
|
3726
3398
|
* Sets an input type
|
|
3727
|
-
* @default 'datetime-local'
|
|
3728
3399
|
*/
|
|
3729
3400
|
"type"?: 'datetime-local' | 'date' | 'month' | 'week' | 'time';
|
|
3730
3401
|
/**
|
|
3731
3402
|
* Value of the input text
|
|
3732
|
-
* @default ''
|
|
3733
3403
|
*/
|
|
3734
3404
|
"value"?: string;
|
|
3735
3405
|
}
|
|
3736
3406
|
interface TdsDivider {
|
|
3737
3407
|
/**
|
|
3738
3408
|
* Orientation of the Divider, horizontal if not specified.
|
|
3739
|
-
* @default 'horizontal'
|
|
3740
3409
|
*/
|
|
3741
3410
|
"orientation"?: 'horizontal' | 'vertical';
|
|
3742
3411
|
/**
|
|
3743
3412
|
* Variant of the Divider, subtle if not specified.
|
|
3744
|
-
* @default 'subtle'
|
|
3745
3413
|
*/
|
|
3746
3414
|
"variant"?: 'discrete' | 'subtle' | 'soft' | 'defined' | 'dark-blue';
|
|
3747
3415
|
}
|
|
3748
3416
|
interface TdsDropdown {
|
|
3749
|
-
/**
|
|
3750
|
-
* @default 'slide'
|
|
3751
|
-
*/
|
|
3752
3417
|
"animation"?: 'none' | 'slide';
|
|
3753
3418
|
/**
|
|
3754
3419
|
* Default value selected in the Dropdown.
|
|
@@ -3756,17 +3421,14 @@ declare namespace LocalJSX {
|
|
|
3756
3421
|
"defaultValue"?: string | number;
|
|
3757
3422
|
/**
|
|
3758
3423
|
* Sets the Dropdown in a disabled state
|
|
3759
|
-
* @default false
|
|
3760
3424
|
*/
|
|
3761
3425
|
"disabled"?: boolean;
|
|
3762
3426
|
/**
|
|
3763
3427
|
* Sets the Dropdown in an error state
|
|
3764
|
-
* @default false
|
|
3765
3428
|
*/
|
|
3766
3429
|
"error"?: boolean;
|
|
3767
3430
|
/**
|
|
3768
3431
|
* Enables filtration in the Dropdown.
|
|
3769
|
-
* @default false
|
|
3770
3432
|
*/
|
|
3771
3433
|
"filter"?: boolean;
|
|
3772
3434
|
/**
|
|
@@ -3783,12 +3445,10 @@ declare namespace LocalJSX {
|
|
|
3783
3445
|
"labelPosition"?: 'inside' | 'outside';
|
|
3784
3446
|
/**
|
|
3785
3447
|
* Mode variant of the component, based on current mode.
|
|
3786
|
-
* @default null
|
|
3787
3448
|
*/
|
|
3788
|
-
"modeVariant"?: 'primary' | 'secondary';
|
|
3449
|
+
"modeVariant"?: 'primary' | 'secondary' | null;
|
|
3789
3450
|
/**
|
|
3790
3451
|
* Enables multiselect in the Dropdown.
|
|
3791
|
-
* @default false
|
|
3792
3452
|
*/
|
|
3793
3453
|
"multiselect"?: boolean;
|
|
3794
3454
|
/**
|
|
@@ -3797,12 +3457,10 @@ declare namespace LocalJSX {
|
|
|
3797
3457
|
"name"?: string;
|
|
3798
3458
|
/**
|
|
3799
3459
|
* Text that is displayed if filter is used and there are no options that matches the search. Setting it to an empty string disables message from showing up.
|
|
3800
|
-
* @default 'No result'
|
|
3801
3460
|
*/
|
|
3802
3461
|
"noResultText"?: string;
|
|
3803
3462
|
/**
|
|
3804
3463
|
* Normalizes input text for fuzzier search
|
|
3805
|
-
* @default true
|
|
3806
3464
|
*/
|
|
3807
3465
|
"normalizeText"?: boolean;
|
|
3808
3466
|
/**
|
|
@@ -3814,7 +3472,7 @@ declare namespace LocalJSX {
|
|
|
3814
3472
|
*/
|
|
3815
3473
|
"onTdsChange"?: (event: TdsDropdownCustomEvent<{
|
|
3816
3474
|
name: string;
|
|
3817
|
-
value: string;
|
|
3475
|
+
value: string | null;
|
|
3818
3476
|
}>) => void;
|
|
3819
3477
|
/**
|
|
3820
3478
|
* Focus event for the Dropdown.
|
|
@@ -3826,7 +3484,6 @@ declare namespace LocalJSX {
|
|
|
3826
3484
|
"onTdsInput"?: (event: TdsDropdownCustomEvent<InputEvent>) => void;
|
|
3827
3485
|
/**
|
|
3828
3486
|
* The direction the Dropdown should open, auto if not specified.
|
|
3829
|
-
* @default 'auto'
|
|
3830
3487
|
*/
|
|
3831
3488
|
"openDirection"?: 'up' | 'down' | 'auto';
|
|
3832
3489
|
/**
|
|
@@ -3835,7 +3492,6 @@ declare namespace LocalJSX {
|
|
|
3835
3492
|
"placeholder"?: string;
|
|
3836
3493
|
/**
|
|
3837
3494
|
* The size of the Dropdown.
|
|
3838
|
-
* @default 'lg'
|
|
3839
3495
|
*/
|
|
3840
3496
|
"size"?: 'xs' | 'sm' | 'md' | 'lg';
|
|
3841
3497
|
/**
|
|
@@ -3844,14 +3500,12 @@ declare namespace LocalJSX {
|
|
|
3844
3500
|
"tdsAriaLabel"?: string;
|
|
3845
3501
|
/**
|
|
3846
3502
|
* Value of the dropdown. For multiselect, provide array of strings/numbers. For single select, provide a string/number.
|
|
3847
|
-
* @default null
|
|
3848
3503
|
*/
|
|
3849
|
-
"value"?: string | number | (string | number)[];
|
|
3504
|
+
"value"?: string | number | (string | number)[] | null;
|
|
3850
3505
|
}
|
|
3851
3506
|
interface TdsDropdownOption {
|
|
3852
3507
|
/**
|
|
3853
3508
|
* Sets the option as disabled.
|
|
3854
|
-
* @default false
|
|
3855
3509
|
*/
|
|
3856
3510
|
"disabled"?: boolean;
|
|
3857
3511
|
/**
|
|
@@ -3881,21 +3535,18 @@ declare namespace LocalJSX {
|
|
|
3881
3535
|
interface TdsFolderTab {
|
|
3882
3536
|
/**
|
|
3883
3537
|
* Disables the Tab.
|
|
3884
|
-
* @default false
|
|
3885
3538
|
*/
|
|
3886
3539
|
"disabled"?: boolean;
|
|
3887
3540
|
}
|
|
3888
3541
|
interface TdsFolderTabs {
|
|
3889
3542
|
/**
|
|
3890
3543
|
* Sets the default selected Tab.
|
|
3891
|
-
* @default 0
|
|
3892
3544
|
*/
|
|
3893
3545
|
"defaultSelectedIndex"?: number;
|
|
3894
3546
|
/**
|
|
3895
3547
|
* Variant of the Tabs, primary= on white, secondary= on grey50
|
|
3896
|
-
* @default null
|
|
3897
3548
|
*/
|
|
3898
|
-
"modeVariant"?: 'primary' | 'secondary';
|
|
3549
|
+
"modeVariant"?: 'primary' | 'secondary' | null;
|
|
3899
3550
|
/**
|
|
3900
3551
|
* Event emitted when the selected Tab is changed.
|
|
3901
3552
|
*/
|
|
@@ -3908,21 +3559,18 @@ declare namespace LocalJSX {
|
|
|
3908
3559
|
"selectedIndex"?: number;
|
|
3909
3560
|
/**
|
|
3910
3561
|
* Defines aria-label on left scroll button
|
|
3911
|
-
* @default 'Scroll left'
|
|
3912
3562
|
*/
|
|
3913
3563
|
"tdsScrollLeftAriaLabel"?: string;
|
|
3914
3564
|
/**
|
|
3915
3565
|
* Defines aria-label on right scroll button
|
|
3916
|
-
* @default 'Scroll right'
|
|
3917
3566
|
*/
|
|
3918
3567
|
"tdsScrollRightAriaLabel"?: string;
|
|
3919
3568
|
}
|
|
3920
3569
|
interface TdsFooter {
|
|
3921
3570
|
/**
|
|
3922
3571
|
* Mode variant of the component, based on current mode.
|
|
3923
|
-
* @default null
|
|
3924
3572
|
*/
|
|
3925
|
-
"modeVariant"?: 'primary' | 'secondary';
|
|
3573
|
+
"modeVariant"?: 'primary' | 'secondary' | null;
|
|
3926
3574
|
}
|
|
3927
3575
|
interface TdsFooterGroup {
|
|
3928
3576
|
/**
|
|
@@ -3955,30 +3603,26 @@ declare namespace LocalJSX {
|
|
|
3955
3603
|
"customWidth"?: string;
|
|
3956
3604
|
/**
|
|
3957
3605
|
* Disables internal padding. Useful when passing other components to cell.
|
|
3958
|
-
* @default false
|
|
3959
3606
|
*/
|
|
3960
3607
|
"disablePadding"?: boolean;
|
|
3961
3608
|
/**
|
|
3962
3609
|
* Sends unique Table identifier, column key and sorting direction to the tds-table-body component, can also be listened to implement custom-sorting logic.
|
|
3963
3610
|
*/
|
|
3964
3611
|
"onTdsSort"?: (event: TdsHeaderCellCustomEvent<{
|
|
3965
|
-
tableId: string;
|
|
3966
|
-
columnKey: string;
|
|
3612
|
+
tableId: string | undefined;
|
|
3613
|
+
columnKey: string | undefined;
|
|
3967
3614
|
sortingDirection: 'asc' | 'desc';
|
|
3968
3615
|
}>) => void;
|
|
3969
3616
|
/**
|
|
3970
3617
|
* Enables sorting on that column
|
|
3971
|
-
* @default false
|
|
3972
3618
|
*/
|
|
3973
3619
|
"sortable"?: boolean;
|
|
3974
3620
|
/**
|
|
3975
3621
|
* Aria label for the sort button, providing an accessible description
|
|
3976
|
-
* @default ''
|
|
3977
3622
|
*/
|
|
3978
3623
|
"tdsAriaLabelSortButton"?: string;
|
|
3979
3624
|
/**
|
|
3980
3625
|
* Setting for text align, default is "left". Other accepted values are "left", "start", "right" or "end".
|
|
3981
|
-
* @default 'left'
|
|
3982
3626
|
*/
|
|
3983
3627
|
"textAlign"?: 'left' | 'start' | 'right' | 'end' | 'center';
|
|
3984
3628
|
}
|
|
@@ -3989,12 +3633,10 @@ declare namespace LocalJSX {
|
|
|
3989
3633
|
"label"?: string;
|
|
3990
3634
|
/**
|
|
3991
3635
|
* If the dropdown icon (downwards chevron) should be hidden.
|
|
3992
|
-
* @default false
|
|
3993
3636
|
*/
|
|
3994
3637
|
"noDropdownIcon"?: boolean;
|
|
3995
3638
|
/**
|
|
3996
3639
|
* If the button that opens the dropdown should appear selected.
|
|
3997
|
-
* @default false
|
|
3998
3640
|
*/
|
|
3999
3641
|
"selected"?: boolean;
|
|
4000
3642
|
/**
|
|
@@ -4005,19 +3647,16 @@ declare namespace LocalJSX {
|
|
|
4005
3647
|
interface TdsHeaderDropdownList {
|
|
4006
3648
|
/**
|
|
4007
3649
|
* The size of the component.
|
|
4008
|
-
* @default 'md'
|
|
4009
3650
|
*/
|
|
4010
3651
|
"size"?: 'lg' | 'md';
|
|
4011
3652
|
}
|
|
4012
3653
|
interface TdsHeaderDropdownListItem {
|
|
4013
3654
|
/**
|
|
4014
3655
|
* If the link should appear selected.
|
|
4015
|
-
* @default false
|
|
4016
3656
|
*/
|
|
4017
3657
|
"selected"?: boolean;
|
|
4018
3658
|
/**
|
|
4019
3659
|
* The size of the component.
|
|
4020
|
-
* @default 'md'
|
|
4021
3660
|
*/
|
|
4022
3661
|
"size"?: 'md' | 'lg';
|
|
4023
3662
|
}
|
|
@@ -4048,12 +3687,10 @@ declare namespace LocalJSX {
|
|
|
4048
3687
|
interface TdsHeaderItem {
|
|
4049
3688
|
/**
|
|
4050
3689
|
* If the button should appear active. Can be used when the button is triggering a dropdown, and the dropdown is open, for example.
|
|
4051
|
-
* @default false
|
|
4052
3690
|
*/
|
|
4053
3691
|
"active"?: boolean;
|
|
4054
3692
|
/**
|
|
4055
3693
|
* If the button should appear selected.
|
|
4056
|
-
* @default false
|
|
4057
3694
|
*/
|
|
4058
3695
|
"selected"?: boolean;
|
|
4059
3696
|
}
|
|
@@ -4066,7 +3703,6 @@ declare namespace LocalJSX {
|
|
|
4066
3703
|
interface TdsHeaderLauncherButton {
|
|
4067
3704
|
/**
|
|
4068
3705
|
* If the button should appear active. Can be used when the button is triggering a dropdown, and the dropdown is open, for example.
|
|
4069
|
-
* @default false
|
|
4070
3706
|
*/
|
|
4071
3707
|
"active"?: boolean;
|
|
4072
3708
|
/**
|
|
@@ -4091,12 +3727,10 @@ declare namespace LocalJSX {
|
|
|
4091
3727
|
interface TdsIcon {
|
|
4092
3728
|
/**
|
|
4093
3729
|
* Pass the name of the icon. For icon names, refer to Storybook Icon controls dropdown or https://tegel.scania.com/foundations/icons/icon-library
|
|
4094
|
-
* @default 'truck'
|
|
4095
3730
|
*/
|
|
4096
3731
|
"name"?: IconNames;
|
|
4097
3732
|
/**
|
|
4098
3733
|
* Pass a size of icon as a string, for example, 32px, 1rem, 4em...
|
|
4099
|
-
* @default '16px'
|
|
4100
3734
|
*/
|
|
4101
3735
|
"size"?: string;
|
|
4102
3736
|
/**
|
|
@@ -4109,31 +3743,26 @@ declare namespace LocalJSX {
|
|
|
4109
3743
|
"svgTitle"?: string;
|
|
4110
3744
|
/**
|
|
4111
3745
|
* Set aria-hidden attribute on svg
|
|
4112
|
-
* @default false
|
|
4113
3746
|
*/
|
|
4114
3747
|
"tdsAriaHidden"?: boolean;
|
|
4115
3748
|
}
|
|
4116
3749
|
interface TdsInlineTab {
|
|
4117
3750
|
/**
|
|
4118
3751
|
* Disables the Tab.
|
|
4119
|
-
* @default false
|
|
4120
3752
|
*/
|
|
4121
3753
|
"disabled"?: boolean;
|
|
4122
3754
|
}
|
|
4123
3755
|
interface TdsInlineTabs {
|
|
4124
3756
|
/**
|
|
4125
3757
|
* Sets the default selected Tab.
|
|
4126
|
-
* @default 0
|
|
4127
3758
|
*/
|
|
4128
3759
|
"defaultSelectedIndex"?: number;
|
|
4129
3760
|
/**
|
|
4130
3761
|
* Custom left padding value for the wrapper element.
|
|
4131
|
-
* @default 32
|
|
4132
3762
|
*/
|
|
4133
3763
|
"leftPadding"?: number;
|
|
4134
3764
|
/**
|
|
4135
3765
|
* Variant of the Tabs, primary= on white, secondary= on grey50
|
|
4136
|
-
* @default 'primary'
|
|
4137
3766
|
*/
|
|
4138
3767
|
"modeVariant"?: 'primary' | 'secondary';
|
|
4139
3768
|
/**
|
|
@@ -4148,29 +3777,24 @@ declare namespace LocalJSX {
|
|
|
4148
3777
|
"selectedIndex"?: number;
|
|
4149
3778
|
/**
|
|
4150
3779
|
* Defines aria-label on left scroll button
|
|
4151
|
-
* @default 'Scroll left'
|
|
4152
3780
|
*/
|
|
4153
3781
|
"tdsScrollLeftAriaLabel"?: string;
|
|
4154
3782
|
/**
|
|
4155
3783
|
* Defines aria-label on right scroll button
|
|
4156
|
-
* @default 'Scroll right'
|
|
4157
3784
|
*/
|
|
4158
3785
|
"tdsScrollRightAriaLabel"?: string;
|
|
4159
3786
|
}
|
|
4160
3787
|
interface TdsLink {
|
|
4161
3788
|
/**
|
|
4162
3789
|
* Disables the Link
|
|
4163
|
-
* @default false
|
|
4164
3790
|
*/
|
|
4165
3791
|
"disabled"?: boolean;
|
|
4166
3792
|
/**
|
|
4167
3793
|
* Displays the Link as a standalone component. Not part of a paragraph.
|
|
4168
|
-
* @default false
|
|
4169
3794
|
*/
|
|
4170
3795
|
"standalone"?: boolean;
|
|
4171
3796
|
/**
|
|
4172
3797
|
* Displays the Link with an underline.
|
|
4173
|
-
* @default true
|
|
4174
3798
|
*/
|
|
4175
3799
|
"underline"?: boolean;
|
|
4176
3800
|
}
|
|
@@ -4181,22 +3805,18 @@ declare namespace LocalJSX {
|
|
|
4181
3805
|
"header"?: string;
|
|
4182
3806
|
/**
|
|
4183
3807
|
* Minimal Message styling.
|
|
4184
|
-
* @default false
|
|
4185
3808
|
*/
|
|
4186
3809
|
"minimal"?: boolean;
|
|
4187
3810
|
/**
|
|
4188
3811
|
* Variant of the component, based on current mode.
|
|
4189
|
-
* @default null
|
|
4190
3812
|
*/
|
|
4191
|
-
"modeVariant"?: 'primary' | 'secondary';
|
|
3813
|
+
"modeVariant"?: 'primary' | 'secondary' | null;
|
|
4192
3814
|
/**
|
|
4193
3815
|
* Removes the icon in the Message.
|
|
4194
|
-
* @default false
|
|
4195
3816
|
*/
|
|
4196
3817
|
"noIcon"?: boolean;
|
|
4197
3818
|
/**
|
|
4198
3819
|
* Role of the message component. Can be either 'alertdialog' for important messages that require immediate attention, or 'dialog' for regular messages.
|
|
4199
|
-
* @default 'dialog'
|
|
4200
3820
|
*/
|
|
4201
3821
|
"tdsAlertDialog"?: 'alertdialog' | 'dialog';
|
|
4202
3822
|
/**
|
|
@@ -4205,19 +3825,16 @@ declare namespace LocalJSX {
|
|
|
4205
3825
|
"tdsAriaLabel"?: string;
|
|
4206
3826
|
/**
|
|
4207
3827
|
* Variant of Message.
|
|
4208
|
-
* @default 'information'
|
|
4209
3828
|
*/
|
|
4210
3829
|
"variant"?: 'information' | 'error' | 'warning' | 'success';
|
|
4211
3830
|
}
|
|
4212
3831
|
interface TdsModal {
|
|
4213
3832
|
/**
|
|
4214
3833
|
* Changes the position behaviour of the actions slot.
|
|
4215
|
-
* @default 'static'
|
|
4216
3834
|
*/
|
|
4217
3835
|
"actionsPosition"?: 'sticky' | 'static';
|
|
4218
3836
|
/**
|
|
4219
3837
|
* Shows or hides the close [X] button.
|
|
4220
|
-
* @default true
|
|
4221
3838
|
*/
|
|
4222
3839
|
"closable"?: boolean;
|
|
4223
3840
|
/**
|
|
@@ -4227,14 +3844,13 @@ declare namespace LocalJSX {
|
|
|
4227
3844
|
/**
|
|
4228
3845
|
* Emits when the Modal is closed.
|
|
4229
3846
|
*/
|
|
4230
|
-
"onTdsClose"?: (event: TdsModalCustomEvent<
|
|
3847
|
+
"onTdsClose"?: (event: TdsModalCustomEvent<object>) => void;
|
|
4231
3848
|
/**
|
|
4232
3849
|
* Emits just before Modal is opened.
|
|
4233
3850
|
*/
|
|
4234
3851
|
"onTdsOpen"?: (event: TdsModalCustomEvent<void>) => void;
|
|
4235
3852
|
/**
|
|
4236
3853
|
* Disables closing Modal on clicking on overlay area.
|
|
4237
|
-
* @default false
|
|
4238
3854
|
*/
|
|
4239
3855
|
"prevent"?: boolean;
|
|
4240
3856
|
/**
|
|
@@ -4251,36 +3867,30 @@ declare namespace LocalJSX {
|
|
|
4251
3867
|
"show"?: boolean;
|
|
4252
3868
|
/**
|
|
4253
3869
|
* Size of Modal
|
|
4254
|
-
* @default 'md'
|
|
4255
3870
|
*/
|
|
4256
3871
|
"size"?: 'xs' | 'sm' | 'md' | 'lg';
|
|
4257
3872
|
/**
|
|
4258
3873
|
* Role of the modal component. Can be either 'alertdialog' for important messages that require immediate attention, or 'dialog' for regular messages.
|
|
4259
|
-
* @default 'dialog'
|
|
4260
3874
|
*/
|
|
4261
3875
|
"tdsAlertDialog"?: 'alertdialog' | 'dialog';
|
|
4262
3876
|
}
|
|
4263
3877
|
interface TdsNavigationTab {
|
|
4264
3878
|
/**
|
|
4265
3879
|
* Disables the Tab.
|
|
4266
|
-
* @default false
|
|
4267
3880
|
*/
|
|
4268
3881
|
"disabled"?: boolean;
|
|
4269
3882
|
}
|
|
4270
3883
|
interface TdsNavigationTabs {
|
|
4271
3884
|
/**
|
|
4272
3885
|
* Sets the default selected Tab.
|
|
4273
|
-
* @default 0
|
|
4274
3886
|
*/
|
|
4275
3887
|
"defaultSelectedIndex"?: number;
|
|
4276
3888
|
/**
|
|
4277
3889
|
* Custom left padding value for the wrapper element.
|
|
4278
|
-
* @default 32
|
|
4279
3890
|
*/
|
|
4280
3891
|
"leftPadding"?: number;
|
|
4281
3892
|
/**
|
|
4282
3893
|
* Variant of the Tabs, primary= on white, secondary= on grey50
|
|
4283
|
-
* @default 'primary'
|
|
4284
3894
|
*/
|
|
4285
3895
|
"modeVariant"?: 'primary' | 'secondary';
|
|
4286
3896
|
/**
|
|
@@ -4295,49 +3905,40 @@ declare namespace LocalJSX {
|
|
|
4295
3905
|
"selectedIndex"?: number;
|
|
4296
3906
|
/**
|
|
4297
3907
|
* Defines aria-label on left scroll button
|
|
4298
|
-
* @default 'Scroll left'
|
|
4299
3908
|
*/
|
|
4300
3909
|
"tdsScrollLeftAriaLabel"?: string;
|
|
4301
3910
|
/**
|
|
4302
3911
|
* Defines aria-label on right scroll button
|
|
4303
|
-
* @default 'Scroll right'
|
|
4304
3912
|
*/
|
|
4305
3913
|
"tdsScrollRightAriaLabel"?: string;
|
|
4306
3914
|
}
|
|
4307
3915
|
interface TdsPopoverCanvas {
|
|
4308
3916
|
/**
|
|
4309
3917
|
* Whether the popover should animate when being opened/closed or not
|
|
4310
|
-
* @default 'none'
|
|
4311
3918
|
*/
|
|
4312
3919
|
"animation"?: 'none' | 'fade' | string;
|
|
4313
3920
|
/**
|
|
4314
3921
|
* Decides if the component should be visible from the start.
|
|
4315
|
-
* @default false
|
|
4316
3922
|
*/
|
|
4317
3923
|
"defaultShow"?: boolean;
|
|
4318
3924
|
/**
|
|
4319
3925
|
* Mode variant of the component, based on current mode.
|
|
4320
|
-
* @default null
|
|
4321
3926
|
*/
|
|
4322
|
-
"modeVariant"?: 'primary' | 'secondary';
|
|
3927
|
+
"modeVariant"?: 'primary' | 'secondary' | null;
|
|
4323
3928
|
/**
|
|
4324
3929
|
* Array of modifier objects to pass to popper.js. See https://popper.js.org/docs/v2/modifiers/
|
|
4325
|
-
* @default []
|
|
4326
3930
|
*/
|
|
4327
3931
|
"modifiers"?: object[];
|
|
4328
3932
|
/**
|
|
4329
3933
|
* Sets the offset distance
|
|
4330
|
-
* @default 8
|
|
4331
3934
|
*/
|
|
4332
3935
|
"offsetDistance"?: number;
|
|
4333
3936
|
/**
|
|
4334
3937
|
* Sets the offset skidding
|
|
4335
|
-
* @default 0
|
|
4336
3938
|
*/
|
|
4337
3939
|
"offsetSkidding"?: number;
|
|
4338
3940
|
/**
|
|
4339
3941
|
* Decides the placement of the Popover Canvas. See https://popper.js.org/docs/v2/constructors/#placement
|
|
4340
|
-
* @default 'auto'
|
|
4341
3942
|
*/
|
|
4342
3943
|
"placement"?: Placement;
|
|
4343
3944
|
/**
|
|
@@ -4350,49 +3951,40 @@ declare namespace LocalJSX {
|
|
|
4350
3951
|
"selector"?: string;
|
|
4351
3952
|
/**
|
|
4352
3953
|
* Controls whether the Popover is shown or not. If this is set hiding and showing will be decided by this prop and will need to be controlled from the outside. This also means that clicking outside of the popover won't close it. Takes precedence over `defaultShow` prop.
|
|
4353
|
-
* @default null
|
|
4354
3954
|
*/
|
|
4355
|
-
"show"?: boolean;
|
|
3955
|
+
"show"?: boolean | null;
|
|
4356
3956
|
/**
|
|
4357
3957
|
* Role of the popover canvas component. Can be either 'alertdialog' for important messages that require immediate attention, or 'dialog' for regular messages.
|
|
4358
|
-
* @default 'dialog'
|
|
4359
3958
|
*/
|
|
4360
3959
|
"tdsAlertDialog"?: 'alertdialog' | 'dialog';
|
|
4361
3960
|
}
|
|
4362
3961
|
interface TdsPopoverCore {
|
|
4363
3962
|
/**
|
|
4364
3963
|
* Whether the popover should animate when being opened/closed or not
|
|
4365
|
-
* @default 'none'
|
|
4366
3964
|
*/
|
|
4367
3965
|
"animation"?: 'none' | 'fade' | string;
|
|
4368
3966
|
/**
|
|
4369
3967
|
* Decides if the popover should hide automatically. Alternatevly it can be hidden externally based on emitted events.
|
|
4370
|
-
* @default true
|
|
4371
3968
|
*/
|
|
4372
3969
|
"autoHide"?: boolean;
|
|
4373
3970
|
/**
|
|
4374
3971
|
* Decides if the component should be visible from the start.
|
|
4375
|
-
* @default false
|
|
4376
3972
|
*/
|
|
4377
3973
|
"defaultShow"?: boolean;
|
|
4378
3974
|
/**
|
|
4379
3975
|
* Array of modifier objects to pass to popper.js. See https://popper.js.org/docs/v2/modifiers/
|
|
4380
|
-
* @default []
|
|
4381
3976
|
*/
|
|
4382
|
-
"modifiers"?:
|
|
3977
|
+
"modifiers"?: object[];
|
|
4383
3978
|
/**
|
|
4384
3979
|
* Sets the offset distance
|
|
4385
|
-
* @default 8
|
|
4386
3980
|
*/
|
|
4387
3981
|
"offsetDistance"?: number;
|
|
4388
3982
|
/**
|
|
4389
3983
|
* Sets the offset skidding
|
|
4390
|
-
* @default 0
|
|
4391
3984
|
*/
|
|
4392
3985
|
"offsetSkidding"?: number;
|
|
4393
3986
|
/**
|
|
4394
3987
|
* Decides the placement of the Popover Menu
|
|
4395
|
-
* @default 'auto'
|
|
4396
3988
|
*/
|
|
4397
3989
|
"placement"?: Placement;
|
|
4398
3990
|
/**
|
|
@@ -4405,49 +3997,40 @@ declare namespace LocalJSX {
|
|
|
4405
3997
|
"selector"?: string;
|
|
4406
3998
|
/**
|
|
4407
3999
|
* Controls whether the Popover is shown or not. If this is set hiding and showing will be decided by this prop and will need to be controlled from the outside. This also means that clicking outside of the popover won't close it. Takes precedence over `defaultShow` prop.
|
|
4408
|
-
* @default null
|
|
4409
4000
|
*/
|
|
4410
|
-
"show"?: boolean;
|
|
4001
|
+
"show"?: boolean | null;
|
|
4411
4002
|
/**
|
|
4412
4003
|
* What triggers the popover to show
|
|
4413
|
-
* @default 'click'
|
|
4414
4004
|
*/
|
|
4415
4005
|
"trigger"?: 'click' | 'hover' | 'hover-popover';
|
|
4416
4006
|
}
|
|
4417
4007
|
interface TdsPopoverMenu {
|
|
4418
4008
|
/**
|
|
4419
4009
|
* Whether the popover should animate when being opened/closed or not
|
|
4420
|
-
* @default 'none'
|
|
4421
4010
|
*/
|
|
4422
4011
|
"animation"?: 'none' | 'fade' | string;
|
|
4423
4012
|
/**
|
|
4424
4013
|
* Decides if the component should be visible from the start.
|
|
4425
|
-
* @default false
|
|
4426
4014
|
*/
|
|
4427
4015
|
"defaultShow"?: boolean;
|
|
4428
4016
|
/**
|
|
4429
4017
|
* If true this unsets the width (160px) of the Popover Menu
|
|
4430
|
-
* @default false
|
|
4431
4018
|
*/
|
|
4432
4019
|
"fluidWidth"?: boolean;
|
|
4433
4020
|
/**
|
|
4434
4021
|
* Mode variant of the component, based on current mode.
|
|
4435
|
-
* @default null
|
|
4436
4022
|
*/
|
|
4437
|
-
"modeVariant"?: 'primary' | 'secondary';
|
|
4023
|
+
"modeVariant"?: 'primary' | 'secondary' | null;
|
|
4438
4024
|
/**
|
|
4439
4025
|
* Sets the offset distance
|
|
4440
|
-
* @default 8
|
|
4441
4026
|
*/
|
|
4442
4027
|
"offsetDistance"?: number;
|
|
4443
4028
|
/**
|
|
4444
4029
|
* Sets the offset skidding
|
|
4445
|
-
* @default 0
|
|
4446
4030
|
*/
|
|
4447
4031
|
"offsetSkidding"?: number;
|
|
4448
4032
|
/**
|
|
4449
4033
|
* Decides the placement of the Popover Menu
|
|
4450
|
-
* @default 'auto'
|
|
4451
4034
|
*/
|
|
4452
4035
|
"placement"?: Placement;
|
|
4453
4036
|
/**
|
|
@@ -4460,26 +4043,22 @@ declare namespace LocalJSX {
|
|
|
4460
4043
|
"selector"?: string;
|
|
4461
4044
|
/**
|
|
4462
4045
|
* Controls whether the Popover is shown or not. If this is set hiding and showing will be decided by this prop and will need to be controlled from the outside. This also means that clicking outside of the popover won't close it. Takes precedence over `defaultShow` prop.
|
|
4463
|
-
* @default null
|
|
4464
4046
|
*/
|
|
4465
|
-
"show"?: boolean;
|
|
4047
|
+
"show"?: boolean | null;
|
|
4466
4048
|
}
|
|
4467
4049
|
interface TdsPopoverMenuItem {
|
|
4468
4050
|
/**
|
|
4469
4051
|
* Disables the Popover Menu Item
|
|
4470
|
-
* @default false
|
|
4471
4052
|
*/
|
|
4472
4053
|
"disabled"?: boolean;
|
|
4473
4054
|
}
|
|
4474
4055
|
interface TdsRadioButton {
|
|
4475
4056
|
/**
|
|
4476
4057
|
* Decides if the Radio Button is checked or not.
|
|
4477
|
-
* @default false
|
|
4478
4058
|
*/
|
|
4479
4059
|
"checked"?: boolean;
|
|
4480
4060
|
/**
|
|
4481
4061
|
* Decides if the Radio Button is disabled or not.
|
|
4482
|
-
* @default false
|
|
4483
4062
|
*/
|
|
4484
4063
|
"disabled"?: boolean;
|
|
4485
4064
|
/**
|
|
@@ -4495,12 +4074,10 @@ declare namespace LocalJSX {
|
|
|
4495
4074
|
}>) => void;
|
|
4496
4075
|
/**
|
|
4497
4076
|
* Unique Radio Button identifier.
|
|
4498
|
-
* @default generateUniqueId()
|
|
4499
4077
|
*/
|
|
4500
4078
|
"radioId"?: string;
|
|
4501
4079
|
/**
|
|
4502
4080
|
* Decides if the Radio Button is required or not.
|
|
4503
|
-
* @default false
|
|
4504
4081
|
*/
|
|
4505
4082
|
"required"?: boolean;
|
|
4506
4083
|
/**
|
|
@@ -4519,7 +4096,6 @@ declare namespace LocalJSX {
|
|
|
4519
4096
|
interface TdsSideMenu {
|
|
4520
4097
|
/**
|
|
4521
4098
|
* If the Side Menu is collapsed. Only a persistent desktop menu can be collapsed. NOTE: Only use this if you have prevented the automatic collapsing with preventDefault on the tdsCollapse event.
|
|
4522
|
-
* @default false
|
|
4523
4099
|
*/
|
|
4524
4100
|
"collapsed"?: boolean;
|
|
4525
4101
|
/**
|
|
@@ -4528,12 +4104,10 @@ declare namespace LocalJSX {
|
|
|
4528
4104
|
"onTdsCollapse"?: (event: TdsSideMenuCustomEvent<CollapseEvent>) => void;
|
|
4529
4105
|
/**
|
|
4530
4106
|
* Applicable only for mobile. If the Side Menu is open or not.
|
|
4531
|
-
* @default false
|
|
4532
4107
|
*/
|
|
4533
4108
|
"open"?: boolean;
|
|
4534
4109
|
/**
|
|
4535
4110
|
* Applicable only for desktop. If the Side Menu should always be shown.
|
|
4536
|
-
* @default false
|
|
4537
4111
|
*/
|
|
4538
4112
|
"persistent"?: boolean;
|
|
4539
4113
|
}
|
|
@@ -4552,17 +4126,14 @@ declare namespace LocalJSX {
|
|
|
4552
4126
|
"buttonLabel"?: string;
|
|
4553
4127
|
/**
|
|
4554
4128
|
* If the dropdown should be open from the start.
|
|
4555
|
-
* @default false
|
|
4556
4129
|
*/
|
|
4557
4130
|
"defaultOpen"?: boolean;
|
|
4558
4131
|
/**
|
|
4559
4132
|
* Toggle open state programmatically
|
|
4560
|
-
* @default false
|
|
4561
4133
|
*/
|
|
4562
4134
|
"open"?: boolean;
|
|
4563
4135
|
/**
|
|
4564
4136
|
* If the button that opens the dropdown should appear selected.
|
|
4565
|
-
* @default false
|
|
4566
4137
|
*/
|
|
4567
4138
|
"selected"?: boolean;
|
|
4568
4139
|
}
|
|
@@ -4571,19 +4142,16 @@ declare namespace LocalJSX {
|
|
|
4571
4142
|
interface TdsSideMenuDropdownListItem {
|
|
4572
4143
|
/**
|
|
4573
4144
|
* If the item should appear selected.
|
|
4574
|
-
* @default false
|
|
4575
4145
|
*/
|
|
4576
4146
|
"selected"?: boolean;
|
|
4577
4147
|
}
|
|
4578
4148
|
interface TdsSideMenuItem {
|
|
4579
4149
|
/**
|
|
4580
4150
|
* If the item should appear active. Can be used when the item is triggering a dropdown, and the dropdown is open, for example.
|
|
4581
|
-
* @default false
|
|
4582
4151
|
*/
|
|
4583
4152
|
"active"?: boolean;
|
|
4584
4153
|
/**
|
|
4585
4154
|
* If the item should appear selected.
|
|
4586
|
-
* @default false
|
|
4587
4155
|
*/
|
|
4588
4156
|
"selected"?: boolean;
|
|
4589
4157
|
}
|
|
@@ -4630,37 +4198,30 @@ declare namespace LocalJSX {
|
|
|
4630
4198
|
interface TdsSlider {
|
|
4631
4199
|
/**
|
|
4632
4200
|
* Decide to show the controls or not
|
|
4633
|
-
* @default false
|
|
4634
4201
|
*/
|
|
4635
4202
|
"controls"?: boolean;
|
|
4636
4203
|
/**
|
|
4637
4204
|
* Sets the disabled state for the whole component
|
|
4638
|
-
* @default false
|
|
4639
4205
|
*/
|
|
4640
4206
|
"disabled"?: boolean;
|
|
4641
4207
|
/**
|
|
4642
4208
|
* Decide to show the input field or not
|
|
4643
|
-
* @default false
|
|
4644
4209
|
*/
|
|
4645
4210
|
"input"?: boolean;
|
|
4646
4211
|
/**
|
|
4647
4212
|
* Text for label
|
|
4648
|
-
* @default ''
|
|
4649
4213
|
*/
|
|
4650
4214
|
"label"?: string;
|
|
4651
4215
|
/**
|
|
4652
4216
|
* Maximum value
|
|
4653
|
-
* @default '100'
|
|
4654
4217
|
*/
|
|
4655
4218
|
"max"?: string;
|
|
4656
4219
|
/**
|
|
4657
4220
|
* Minimum value
|
|
4658
|
-
* @default '0'
|
|
4659
4221
|
*/
|
|
4660
4222
|
"min"?: string;
|
|
4661
4223
|
/**
|
|
4662
4224
|
* Name property (will be inherited by the native slider component)
|
|
4663
|
-
* @default ''
|
|
4664
4225
|
*/
|
|
4665
4226
|
"name"?: string;
|
|
4666
4227
|
/**
|
|
@@ -4677,69 +4238,56 @@ declare namespace LocalJSX {
|
|
|
4677
4238
|
}>) => void;
|
|
4678
4239
|
/**
|
|
4679
4240
|
* Sets the read only state for the whole component
|
|
4680
|
-
* @default false
|
|
4681
4241
|
*/
|
|
4682
4242
|
"readOnly"?: boolean;
|
|
4683
4243
|
/**
|
|
4684
4244
|
* Decide to show numbers above the tick markers or not
|
|
4685
|
-
* @default false
|
|
4686
4245
|
*/
|
|
4687
4246
|
"showTickNumbers"?: boolean;
|
|
4688
4247
|
/**
|
|
4689
4248
|
* ID for the Slider's input element, randomly generated if not specified.
|
|
4690
|
-
* @default generateUniqueId()
|
|
4691
4249
|
*/
|
|
4692
4250
|
"sliderId"?: string;
|
|
4693
4251
|
/**
|
|
4694
4252
|
* Snap to the tick's grid
|
|
4695
|
-
* @default false
|
|
4696
4253
|
*/
|
|
4697
4254
|
"snap"?: boolean;
|
|
4698
4255
|
/**
|
|
4699
4256
|
* Defines how much to increment/decrement the value when using controls
|
|
4700
|
-
* @default '1'
|
|
4701
4257
|
*/
|
|
4702
4258
|
"step"?: string;
|
|
4703
4259
|
/**
|
|
4704
4260
|
* Sets the aria-label for the slider control.
|
|
4705
|
-
* @default ''
|
|
4706
4261
|
*/
|
|
4707
4262
|
"tdsAriaLabel"?: string;
|
|
4708
4263
|
/**
|
|
4709
4264
|
* Sets the read only aria label for the input field
|
|
4710
|
-
* @default ''
|
|
4711
4265
|
*/
|
|
4712
4266
|
"tdsReadOnlyAriaLabel"?: string;
|
|
4713
4267
|
/**
|
|
4714
4268
|
* Sets the size of the thumb
|
|
4715
|
-
* @default 'lg'
|
|
4716
4269
|
*/
|
|
4717
4270
|
"thumbSize"?: 'sm' | 'lg';
|
|
4718
4271
|
/**
|
|
4719
4272
|
* Number of tick markers (tick for min- and max-value will be added automatically)
|
|
4720
|
-
* @default '0'
|
|
4721
4273
|
*/
|
|
4722
4274
|
"ticks"?: string;
|
|
4723
4275
|
/**
|
|
4724
4276
|
* Decide to show the tooltip or not
|
|
4725
|
-
* @default false
|
|
4726
4277
|
*/
|
|
4727
4278
|
"tooltip"?: boolean;
|
|
4728
4279
|
/**
|
|
4729
4280
|
* Initial value
|
|
4730
|
-
* @default '0'
|
|
4731
4281
|
*/
|
|
4732
4282
|
"value"?: string;
|
|
4733
4283
|
}
|
|
4734
4284
|
interface TdsSpinner {
|
|
4735
4285
|
/**
|
|
4736
4286
|
* Size of the Spinner
|
|
4737
|
-
* @default 'lg'
|
|
4738
4287
|
*/
|
|
4739
4288
|
"size"?: 'xs' | 'sm' | 'md' | 'lg';
|
|
4740
4289
|
/**
|
|
4741
4290
|
* Variant of the Spinner
|
|
4742
|
-
* @default 'standard'
|
|
4743
4291
|
*/
|
|
4744
4292
|
"variant"?: 'standard' | 'inverted';
|
|
4745
4293
|
}
|
|
@@ -4750,7 +4298,6 @@ declare namespace LocalJSX {
|
|
|
4750
4298
|
"index"?: string;
|
|
4751
4299
|
/**
|
|
4752
4300
|
* State of the Step
|
|
4753
|
-
* @default 'upcoming'
|
|
4754
4301
|
*/
|
|
4755
4302
|
"state"?: 'current' | 'error' | 'success' | 'upcoming';
|
|
4756
4303
|
"tdsAriaCurrent"?: string;
|
|
@@ -4758,59 +4305,48 @@ declare namespace LocalJSX {
|
|
|
4758
4305
|
interface TdsStepper {
|
|
4759
4306
|
/**
|
|
4760
4307
|
* Hides the label for the child components if true.
|
|
4761
|
-
* @default false
|
|
4762
4308
|
*/
|
|
4763
4309
|
"hideLabels"?: boolean;
|
|
4764
4310
|
/**
|
|
4765
4311
|
* Text position, only available on a direction: horizontal
|
|
4766
|
-
* @default 'below'
|
|
4767
4312
|
*/
|
|
4768
4313
|
"labelPosition"?: 'aside' | 'below';
|
|
4769
4314
|
/**
|
|
4770
4315
|
* The orientation the Steps
|
|
4771
|
-
* @default 'horizontal'
|
|
4772
4316
|
*/
|
|
4773
4317
|
"orientation"?: 'horizontal' | 'vertical';
|
|
4774
4318
|
/**
|
|
4775
4319
|
* Size of the component and it's children.
|
|
4776
|
-
* @default 'lg'
|
|
4777
4320
|
*/
|
|
4778
4321
|
"size"?: 'sm' | 'lg';
|
|
4779
4322
|
/**
|
|
4780
4323
|
* ID used for internal Stepper functionality and events, must be unique. **NOTE**: If you're listening for Stepper events, you need to set this ID yourself to identify the Stepper, as the default ID is random and will be different every time.
|
|
4781
|
-
* @default generateUniqueId()
|
|
4782
4324
|
*/
|
|
4783
4325
|
"stepperId"?: string;
|
|
4784
4326
|
/**
|
|
4785
4327
|
* Label for the stepper component, for screen reader users
|
|
4786
|
-
* @default 'Progress steps'
|
|
4787
4328
|
*/
|
|
4788
4329
|
"tdsAriaLabel"?: string;
|
|
4789
4330
|
}
|
|
4790
4331
|
interface TdsTable {
|
|
4791
4332
|
/**
|
|
4792
4333
|
* Enables style where Table toolbar, rows and footer are less high
|
|
4793
|
-
* @default false
|
|
4794
4334
|
*/
|
|
4795
4335
|
"compactDesign"?: boolean;
|
|
4796
4336
|
/**
|
|
4797
4337
|
* Enables extended row feature of Table
|
|
4798
|
-
* @default false
|
|
4799
4338
|
*/
|
|
4800
4339
|
"expandableRows"?: boolean;
|
|
4801
4340
|
/**
|
|
4802
4341
|
* Width of the table, used as the constraint for horizontal scrolling. **NOTE**: this will disable usage of the responsive flag
|
|
4803
|
-
* @default null
|
|
4804
4342
|
*/
|
|
4805
|
-
"horizontalScrollWidth"?: string;
|
|
4343
|
+
"horizontalScrollWidth"?: string | null;
|
|
4806
4344
|
/**
|
|
4807
4345
|
* Variant of the component, based on current mode.
|
|
4808
|
-
* @default null
|
|
4809
4346
|
*/
|
|
4810
|
-
"modeVariant"?: 'primary' | 'secondary';
|
|
4347
|
+
"modeVariant"?: 'primary' | 'secondary' | null;
|
|
4811
4348
|
/**
|
|
4812
4349
|
* Enables multiselect feature of Table
|
|
4813
|
-
* @default false
|
|
4814
4350
|
*/
|
|
4815
4351
|
"multiselect"?: boolean;
|
|
4816
4352
|
/**
|
|
@@ -4819,22 +4355,18 @@ declare namespace LocalJSX {
|
|
|
4819
4355
|
"noMinWidth"?: boolean;
|
|
4820
4356
|
/**
|
|
4821
4357
|
* Enables Table to take 100% available width with equal spacing of columns
|
|
4822
|
-
* @default false
|
|
4823
4358
|
*/
|
|
4824
4359
|
"responsive"?: boolean;
|
|
4825
4360
|
/**
|
|
4826
4361
|
* ID used for internal Table functionality and events, must be unique. **NOTE**: If you're listening for Table events, you need to set this ID yourself to identify the Table, as the default ID is random and will be different every time.
|
|
4827
|
-
* @default generateUniqueId()
|
|
4828
4362
|
*/
|
|
4829
4363
|
"tableId"?: string;
|
|
4830
4364
|
/**
|
|
4831
4365
|
* Enables style with vertical dividers between columns
|
|
4832
|
-
* @default false
|
|
4833
4366
|
*/
|
|
4834
4367
|
"verticalDividers"?: boolean;
|
|
4835
4368
|
/**
|
|
4836
4369
|
* Enables zebra stripe mode on the table rows or columns.
|
|
4837
|
-
* @default 'none'
|
|
4838
4370
|
*/
|
|
4839
4371
|
"zebraMode"?: | 'rows-odd'
|
|
4840
4372
|
| 'rows-even'
|
|
@@ -4847,19 +4379,16 @@ declare namespace LocalJSX {
|
|
|
4847
4379
|
interface TdsTableBodyInputWrapper {
|
|
4848
4380
|
/**
|
|
4849
4381
|
* Controls if the edit icon is shown
|
|
4850
|
-
* @default true
|
|
4851
4382
|
*/
|
|
4852
4383
|
"showIcon"?: boolean;
|
|
4853
4384
|
}
|
|
4854
4385
|
interface TdsTableBodyRow {
|
|
4855
4386
|
/**
|
|
4856
4387
|
* Makes the row clickable and tabbable for accessibility purposes.
|
|
4857
|
-
* @default false
|
|
4858
4388
|
*/
|
|
4859
4389
|
"clickable"?: boolean;
|
|
4860
4390
|
/**
|
|
4861
4391
|
* Marks the row as disabled, used for multiselect table.
|
|
4862
|
-
* @default false
|
|
4863
4392
|
*/
|
|
4864
4393
|
"disabled"?: boolean;
|
|
4865
4394
|
/**
|
|
@@ -4867,34 +4396,31 @@ declare namespace LocalJSX {
|
|
|
4867
4396
|
*/
|
|
4868
4397
|
"onTdsClick"?: (event: TdsTableBodyRowCustomEvent<{
|
|
4869
4398
|
event: MouseEvent;
|
|
4870
|
-
tableId: string;
|
|
4399
|
+
tableId: string | undefined;
|
|
4871
4400
|
rowIndex: number;
|
|
4872
4401
|
}>) => void;
|
|
4873
4402
|
/**
|
|
4874
4403
|
* Event emitted when a row is selected/deselected.
|
|
4875
4404
|
*/
|
|
4876
4405
|
"onTdsSelect"?: (event: TdsTableBodyRowCustomEvent<{
|
|
4877
|
-
tableId: string;
|
|
4406
|
+
tableId: string | undefined;
|
|
4878
4407
|
checked: boolean;
|
|
4879
|
-
selectedRows:
|
|
4408
|
+
selectedRows: object[] | undefined;
|
|
4880
4409
|
}>) => void;
|
|
4881
4410
|
/**
|
|
4882
4411
|
* Marks the row as selected, used for multiselect table.
|
|
4883
|
-
* @default false
|
|
4884
4412
|
*/
|
|
4885
4413
|
"selected"?: boolean;
|
|
4886
4414
|
}
|
|
4887
4415
|
interface TdsTableBodyRowExpandable {
|
|
4888
4416
|
/**
|
|
4889
4417
|
* Enables auto-collapse of other expandable rows when one row is expanded
|
|
4890
|
-
* @default false
|
|
4891
4418
|
*/
|
|
4892
4419
|
"autoCollapse"?: boolean;
|
|
4893
4420
|
/**
|
|
4894
4421
|
* In case that automatic count of columns does not work, user can manually set this one. Take in mind that expandable control is column too
|
|
4895
|
-
* @default null
|
|
4896
4422
|
*/
|
|
4897
|
-
"colSpan"?: number;
|
|
4423
|
+
"colSpan"?: number | null;
|
|
4898
4424
|
/**
|
|
4899
4425
|
* Sets isExpanded state to true or false externally
|
|
4900
4426
|
*/
|
|
@@ -4905,87 +4431,75 @@ declare namespace LocalJSX {
|
|
|
4905
4431
|
"onTdsChange"?: (event: TdsTableBodyRowExpandableCustomEvent<{
|
|
4906
4432
|
rowId: string;
|
|
4907
4433
|
isExpanded: boolean;
|
|
4908
|
-
tableId: string;
|
|
4434
|
+
tableId: string | undefined;
|
|
4909
4435
|
}>) => void;
|
|
4910
4436
|
/**
|
|
4911
4437
|
* Controls the overflow behavior of the expandable row content
|
|
4912
|
-
* @default 'auto'
|
|
4913
4438
|
*/
|
|
4914
4439
|
"overflow"?: 'auto' | 'hidden' | 'visible';
|
|
4915
4440
|
/**
|
|
4916
4441
|
* ID for the table row. Randomly generated if not specified.
|
|
4917
|
-
* @default generateUniqueId()
|
|
4918
4442
|
*/
|
|
4919
4443
|
"rowId"?: string;
|
|
4920
4444
|
/**
|
|
4921
4445
|
* Aria label for the expand button, providing an accessible description
|
|
4922
|
-
* @default ''
|
|
4923
4446
|
*/
|
|
4924
4447
|
"tdsAriaLabelExpandButton"?: string;
|
|
4925
4448
|
}
|
|
4926
4449
|
interface TdsTableFooter {
|
|
4927
4450
|
/**
|
|
4928
4451
|
* <b>Client override</b> Used to set the column span of the footer. Use as fallback if the automatic count of columns fails.
|
|
4929
|
-
* @default null
|
|
4930
4452
|
*/
|
|
4931
|
-
"cols"?: number;
|
|
4453
|
+
"cols"?: number | null;
|
|
4932
4454
|
/**
|
|
4933
4455
|
* Event to send current page value to tds-table-body component, can also be listened to in order to implement custom pagination logic.
|
|
4934
4456
|
*/
|
|
4935
4457
|
"onTdsPagination"?: (event: TdsTableFooterCustomEvent<{
|
|
4936
|
-
tableId: string;
|
|
4458
|
+
tableId: string | undefined;
|
|
4937
4459
|
paginationValue: number;
|
|
4938
4460
|
rowsPerPage?: number;
|
|
4939
4461
|
}>) => void;
|
|
4940
4462
|
/**
|
|
4941
4463
|
* Sets the number of pages.
|
|
4942
|
-
* @default null
|
|
4943
4464
|
*/
|
|
4944
4465
|
"pages"?: number;
|
|
4945
4466
|
/**
|
|
4946
4467
|
* Enable pagination and show pagination controls
|
|
4947
|
-
* @default false
|
|
4948
4468
|
*/
|
|
4949
4469
|
"pagination"?: boolean;
|
|
4950
4470
|
/**
|
|
4951
4471
|
* Sets the pagination number.
|
|
4952
|
-
* @default 1
|
|
4953
4472
|
*/
|
|
4954
4473
|
"paginationValue"?: number;
|
|
4955
4474
|
/**
|
|
4956
4475
|
* Set available rows per page values
|
|
4957
|
-
* @default [10, 25, 50]
|
|
4958
4476
|
*/
|
|
4959
4477
|
"rowsPerPageValues"?: number[];
|
|
4960
4478
|
/**
|
|
4961
4479
|
* Enable rows per page dropdown
|
|
4962
|
-
* @default true
|
|
4963
4480
|
*/
|
|
4964
4481
|
"rowsperpage"?: boolean;
|
|
4965
4482
|
}
|
|
4966
4483
|
interface TdsTableHeader {
|
|
4967
4484
|
/**
|
|
4968
4485
|
* @deprecated Deprecated, use selected instead.
|
|
4969
|
-
* @default false
|
|
4970
4486
|
*/
|
|
4971
4487
|
"allSelected"?: boolean;
|
|
4972
4488
|
/**
|
|
4973
4489
|
* Prop for controlling the enabled/disabled state of the "All selected"-checkbox.
|
|
4974
|
-
* @default false
|
|
4975
4490
|
*/
|
|
4976
4491
|
"disabled"?: boolean;
|
|
4977
4492
|
/**
|
|
4978
4493
|
* Prop for controlling the indeterminate state of the "All selected"-checkbox.
|
|
4979
|
-
* @default false
|
|
4980
4494
|
*/
|
|
4981
4495
|
"indeterminate"?: boolean;
|
|
4982
4496
|
/**
|
|
4983
4497
|
* Event emitted when the status of the select all checkbox changes.
|
|
4984
4498
|
*/
|
|
4985
4499
|
"onTdsSelectAll"?: (event: TdsTableHeaderCustomEvent<{
|
|
4986
|
-
tableId: string;
|
|
4500
|
+
tableId: string | undefined;
|
|
4987
4501
|
checked: boolean;
|
|
4988
|
-
selectedRows:
|
|
4502
|
+
selectedRows: object[] | undefined;
|
|
4989
4503
|
}>) => void;
|
|
4990
4504
|
/**
|
|
4991
4505
|
* Prop for controlling the checked/unchecked state of the "All selected"-checkbox.
|
|
@@ -4993,44 +4507,36 @@ declare namespace LocalJSX {
|
|
|
4993
4507
|
"selected"?: boolean;
|
|
4994
4508
|
}
|
|
4995
4509
|
interface TdsTableHeaderInputWrapper {
|
|
4996
|
-
/**
|
|
4997
|
-
* @default false
|
|
4998
|
-
*/
|
|
4999
4510
|
"compactDesign"?: boolean;
|
|
5000
4511
|
/**
|
|
5001
4512
|
* Controls if the search icon is shown
|
|
5002
|
-
* @default true
|
|
5003
4513
|
*/
|
|
5004
4514
|
"showIcon"?: boolean;
|
|
5005
4515
|
}
|
|
5006
4516
|
interface TdsTableToolbar {
|
|
5007
4517
|
/**
|
|
5008
4518
|
* Enables preview of searchbar
|
|
5009
|
-
* @default false
|
|
5010
4519
|
*/
|
|
5011
4520
|
"filter"?: boolean;
|
|
5012
4521
|
/**
|
|
5013
4522
|
* Used for sending users' input to the main parent tds-table the component, can also be listened to in order to implement custom sorting logic.
|
|
5014
4523
|
*/
|
|
5015
4524
|
"onTdsFilter"?: (event: TdsTableToolbarCustomEvent<{
|
|
5016
|
-
tableId: string;
|
|
4525
|
+
tableId: string | undefined;
|
|
5017
4526
|
query: string;
|
|
5018
4527
|
}>) => void;
|
|
5019
4528
|
/**
|
|
5020
4529
|
* Adds title to the Table
|
|
5021
|
-
* @default ''
|
|
5022
4530
|
*/
|
|
5023
4531
|
"tableTitle"?: string;
|
|
5024
4532
|
/**
|
|
5025
4533
|
* Aria label for the search input, providing an accessible description
|
|
5026
|
-
* @default ''
|
|
5027
4534
|
*/
|
|
5028
4535
|
"tdsSearchAriaLabel"?: string;
|
|
5029
4536
|
}
|
|
5030
4537
|
interface TdsTag {
|
|
5031
4538
|
/**
|
|
5032
4539
|
* Sets the size of the tag
|
|
5033
|
-
* @default 'lg'
|
|
5034
4540
|
*/
|
|
5035
4541
|
"size"?: 'lg' | 'sm';
|
|
5036
4542
|
/**
|
|
@@ -5039,24 +4545,20 @@ declare namespace LocalJSX {
|
|
|
5039
4545
|
"text": string;
|
|
5040
4546
|
/**
|
|
5041
4547
|
* Sets the variant mode of the tag
|
|
5042
|
-
* @default 'Neutral'
|
|
5043
4548
|
*/
|
|
5044
4549
|
"variant"?: 'Success' | 'Warning' | 'New' | 'Neutral' | 'Information' | 'Error';
|
|
5045
4550
|
}
|
|
5046
4551
|
interface TdsTextField {
|
|
5047
4552
|
/**
|
|
5048
4553
|
* Value to be used for the text field's autocomplete attribute
|
|
5049
|
-
* @default 'off'
|
|
5050
4554
|
*/
|
|
5051
4555
|
"autocomplete"?: string;
|
|
5052
4556
|
/**
|
|
5053
4557
|
* Autofocus for input
|
|
5054
|
-
* @default false
|
|
5055
4558
|
*/
|
|
5056
4559
|
"autofocus"?: boolean;
|
|
5057
4560
|
/**
|
|
5058
4561
|
* Set input in disabled state
|
|
5059
|
-
* @default false
|
|
5060
4562
|
*/
|
|
5061
4563
|
"disabled"?: boolean;
|
|
5062
4564
|
/**
|
|
@@ -5065,17 +4567,14 @@ declare namespace LocalJSX {
|
|
|
5065
4567
|
"helper"?: string;
|
|
5066
4568
|
/**
|
|
5067
4569
|
* Hides the read-only icon in the Text Field. Requires Read Only to be enabled.
|
|
5068
|
-
* @default false
|
|
5069
4570
|
*/
|
|
5070
4571
|
"hideReadOnlyIcon"?: boolean;
|
|
5071
4572
|
/**
|
|
5072
4573
|
* Label text
|
|
5073
|
-
* @default ''
|
|
5074
4574
|
*/
|
|
5075
4575
|
"label"?: string;
|
|
5076
4576
|
/**
|
|
5077
4577
|
* Position of the label for the Text Field.
|
|
5078
|
-
* @default 'no-label'
|
|
5079
4578
|
*/
|
|
5080
4579
|
"labelPosition"?: 'inside' | 'outside' | 'no-label';
|
|
5081
4580
|
/**
|
|
@@ -5092,17 +4591,14 @@ declare namespace LocalJSX {
|
|
|
5092
4591
|
"min"?: string | number;
|
|
5093
4592
|
/**
|
|
5094
4593
|
* Mode variant of the Text Field
|
|
5095
|
-
* @default null
|
|
5096
4594
|
*/
|
|
5097
|
-
"modeVariant"?: 'primary' | 'secondary';
|
|
4595
|
+
"modeVariant"?: 'primary' | 'secondary' | null;
|
|
5098
4596
|
/**
|
|
5099
4597
|
* Name property
|
|
5100
|
-
* @default ''
|
|
5101
4598
|
*/
|
|
5102
4599
|
"name"?: string;
|
|
5103
4600
|
/**
|
|
5104
4601
|
* Unset minimum width of 208px.
|
|
5105
|
-
* @default false
|
|
5106
4602
|
*/
|
|
5107
4603
|
"noMinWidth"?: boolean;
|
|
5108
4604
|
/**
|
|
@@ -5123,27 +4619,22 @@ declare namespace LocalJSX {
|
|
|
5123
4619
|
"onTdsInput"?: (event: TdsTextFieldCustomEvent<InputEvent>) => void;
|
|
5124
4620
|
/**
|
|
5125
4621
|
* Placeholder text
|
|
5126
|
-
* @default ''
|
|
5127
4622
|
*/
|
|
5128
4623
|
"placeholder"?: string;
|
|
5129
4624
|
/**
|
|
5130
4625
|
* Set input in readonly state
|
|
5131
|
-
* @default false
|
|
5132
4626
|
*/
|
|
5133
4627
|
"readOnly"?: boolean;
|
|
5134
4628
|
/**
|
|
5135
4629
|
* Makes the text field required
|
|
5136
|
-
* @default false
|
|
5137
4630
|
*/
|
|
5138
4631
|
"required"?: boolean;
|
|
5139
4632
|
/**
|
|
5140
4633
|
* Size of the input
|
|
5141
|
-
* @default 'lg'
|
|
5142
4634
|
*/
|
|
5143
4635
|
"size"?: 'sm' | 'md' | 'lg';
|
|
5144
4636
|
/**
|
|
5145
4637
|
* Error state of input
|
|
5146
|
-
* @default 'default'
|
|
5147
4638
|
*/
|
|
5148
4639
|
"state"?: 'error' | 'success' | 'default';
|
|
5149
4640
|
/**
|
|
@@ -5152,19 +4643,16 @@ declare namespace LocalJSX {
|
|
|
5152
4643
|
"tdsAriaLabel"?: string;
|
|
5153
4644
|
/**
|
|
5154
4645
|
* Which input type, text, password or similar
|
|
5155
|
-
* @default 'text'
|
|
5156
4646
|
*/
|
|
5157
4647
|
"type"?: 'text' | 'password' | 'number' | 'email' | 'tel';
|
|
5158
4648
|
/**
|
|
5159
4649
|
* Value of the input text
|
|
5160
|
-
* @default ''
|
|
5161
4650
|
*/
|
|
5162
4651
|
"value"?: string;
|
|
5163
4652
|
}
|
|
5164
4653
|
interface TdsTextarea {
|
|
5165
4654
|
/**
|
|
5166
4655
|
* Control of autofocus
|
|
5167
|
-
* @default false
|
|
5168
4656
|
*/
|
|
5169
4657
|
"autofocus"?: boolean;
|
|
5170
4658
|
/**
|
|
@@ -5173,7 +4661,6 @@ declare namespace LocalJSX {
|
|
|
5173
4661
|
"cols"?: number;
|
|
5174
4662
|
/**
|
|
5175
4663
|
* Set input in disabled state
|
|
5176
|
-
* @default false
|
|
5177
4664
|
*/
|
|
5178
4665
|
"disabled"?: boolean;
|
|
5179
4666
|
/**
|
|
@@ -5182,17 +4669,14 @@ declare namespace LocalJSX {
|
|
|
5182
4669
|
"helper"?: string;
|
|
5183
4670
|
/**
|
|
5184
4671
|
* Hide the readonly icon
|
|
5185
|
-
* @default false
|
|
5186
4672
|
*/
|
|
5187
4673
|
"hideReadOnlyIcon"?: boolean;
|
|
5188
4674
|
/**
|
|
5189
4675
|
* Label text
|
|
5190
|
-
* @default ''
|
|
5191
4676
|
*/
|
|
5192
4677
|
"label"?: string;
|
|
5193
4678
|
/**
|
|
5194
4679
|
* Position of the label for the Textarea.
|
|
5195
|
-
* @default 'no-label'
|
|
5196
4680
|
*/
|
|
5197
4681
|
"labelPosition"?: 'inside' | 'outside' | 'no-label';
|
|
5198
4682
|
/**
|
|
@@ -5201,17 +4685,14 @@ declare namespace LocalJSX {
|
|
|
5201
4685
|
"maxLength"?: number;
|
|
5202
4686
|
/**
|
|
5203
4687
|
* Mode variant of the Textarea
|
|
5204
|
-
* @default null
|
|
5205
4688
|
*/
|
|
5206
|
-
"modeVariant"?: 'primary' | 'secondary';
|
|
4689
|
+
"modeVariant"?: 'primary' | 'secondary' | null;
|
|
5207
4690
|
/**
|
|
5208
4691
|
* Name attribute
|
|
5209
|
-
* @default ''
|
|
5210
4692
|
*/
|
|
5211
4693
|
"name"?: string;
|
|
5212
4694
|
/**
|
|
5213
4695
|
* Unset minimum width of 208px.
|
|
5214
|
-
* @default false
|
|
5215
4696
|
*/
|
|
5216
4697
|
"noMinWidth"?: boolean;
|
|
5217
4698
|
/**
|
|
@@ -5232,12 +4713,10 @@ declare namespace LocalJSX {
|
|
|
5232
4713
|
"onTdsInput"?: (event: TdsTextareaCustomEvent<InputEvent>) => void;
|
|
5233
4714
|
/**
|
|
5234
4715
|
* Placeholder text
|
|
5235
|
-
* @default ''
|
|
5236
4716
|
*/
|
|
5237
4717
|
"placeholder"?: string;
|
|
5238
4718
|
/**
|
|
5239
4719
|
* Set input in readonly state
|
|
5240
|
-
* @default false
|
|
5241
4720
|
*/
|
|
5242
4721
|
"readOnly"?: boolean;
|
|
5243
4722
|
/**
|
|
@@ -5246,7 +4725,6 @@ declare namespace LocalJSX {
|
|
|
5246
4725
|
"rows"?: number;
|
|
5247
4726
|
/**
|
|
5248
4727
|
* Error state of input
|
|
5249
|
-
* @default 'default'
|
|
5250
4728
|
*/
|
|
5251
4729
|
"state"?: 'error' | 'success' | 'default';
|
|
5252
4730
|
/**
|
|
@@ -5255,14 +4733,12 @@ declare namespace LocalJSX {
|
|
|
5255
4733
|
"tdsAriaLabel"?: string;
|
|
5256
4734
|
/**
|
|
5257
4735
|
* Value of the input text
|
|
5258
|
-
* @default ''
|
|
5259
4736
|
*/
|
|
5260
4737
|
"value"?: string;
|
|
5261
4738
|
}
|
|
5262
4739
|
interface TdsToast {
|
|
5263
4740
|
/**
|
|
5264
4741
|
* Enables the close button.
|
|
5265
|
-
* @default true
|
|
5266
4742
|
*/
|
|
5267
4743
|
"closable"?: boolean;
|
|
5268
4744
|
/**
|
|
@@ -5271,7 +4747,6 @@ declare namespace LocalJSX {
|
|
|
5271
4747
|
"header"?: string;
|
|
5272
4748
|
/**
|
|
5273
4749
|
* Hides the Toast.
|
|
5274
|
-
* @default false
|
|
5275
4750
|
*/
|
|
5276
4751
|
"hidden"?: boolean;
|
|
5277
4752
|
/**
|
|
@@ -5286,7 +4761,6 @@ declare namespace LocalJSX {
|
|
|
5286
4761
|
"subheader"?: string;
|
|
5287
4762
|
/**
|
|
5288
4763
|
* ARIA live for the Toast.
|
|
5289
|
-
* @default 'polite'
|
|
5290
4764
|
*/
|
|
5291
4765
|
"tdsAriaLive"?: 'polite' | 'assertive';
|
|
5292
4766
|
/**
|
|
@@ -5295,29 +4769,24 @@ declare namespace LocalJSX {
|
|
|
5295
4769
|
"tdsCloseAriaLabel"?: string;
|
|
5296
4770
|
/**
|
|
5297
4771
|
* ID for the Toast. Randomly generated if not specified.
|
|
5298
|
-
* @default generateUniqueId()
|
|
5299
4772
|
*/
|
|
5300
4773
|
"toastId"?: string;
|
|
5301
4774
|
/**
|
|
5302
4775
|
* ARIA role for the Toast.
|
|
5303
|
-
* @default 'alert'
|
|
5304
4776
|
*/
|
|
5305
4777
|
"toastRole"?: 'alert' | 'log' | 'status';
|
|
5306
4778
|
/**
|
|
5307
4779
|
* Type of Toast.
|
|
5308
|
-
* @default 'information'
|
|
5309
4780
|
*/
|
|
5310
4781
|
"variant"?: 'information' | 'error' | 'warning' | 'success';
|
|
5311
4782
|
}
|
|
5312
4783
|
interface TdsToggle {
|
|
5313
4784
|
/**
|
|
5314
4785
|
* Sets the Toggle as checked
|
|
5315
|
-
* @default false
|
|
5316
4786
|
*/
|
|
5317
4787
|
"checked"?: boolean;
|
|
5318
4788
|
/**
|
|
5319
4789
|
* Sets the Toggle in a disabled state
|
|
5320
|
-
* @default false
|
|
5321
4790
|
*/
|
|
5322
4791
|
"disabled"?: boolean;
|
|
5323
4792
|
/**
|
|
@@ -5337,12 +4806,10 @@ declare namespace LocalJSX {
|
|
|
5337
4806
|
}>) => void;
|
|
5338
4807
|
/**
|
|
5339
4808
|
* Make the Toggle required
|
|
5340
|
-
* @default false
|
|
5341
4809
|
*/
|
|
5342
4810
|
"required"?: boolean;
|
|
5343
4811
|
/**
|
|
5344
4812
|
* Size of the Toggle
|
|
5345
|
-
* @default 'lg'
|
|
5346
4813
|
*/
|
|
5347
4814
|
"size"?: 'sm' | 'lg';
|
|
5348
4815
|
/**
|
|
@@ -5351,34 +4818,28 @@ declare namespace LocalJSX {
|
|
|
5351
4818
|
"tdsAriaLabel"?: string;
|
|
5352
4819
|
/**
|
|
5353
4820
|
* ID of the Toggle's input element, if not specified, it's randomly generated
|
|
5354
|
-
* @default generateUniqueId()
|
|
5355
4821
|
*/
|
|
5356
4822
|
"toggleId"?: string;
|
|
5357
4823
|
}
|
|
5358
4824
|
interface TdsTooltip {
|
|
5359
4825
|
/**
|
|
5360
4826
|
* Decides if the component should be visible from the start.
|
|
5361
|
-
* @default false
|
|
5362
4827
|
*/
|
|
5363
4828
|
"defaultShow"?: boolean;
|
|
5364
4829
|
/**
|
|
5365
4830
|
* Allow mouse over Tooltip. Useful when Tooltip contains clickable elements like link or button.
|
|
5366
|
-
* @default false
|
|
5367
4831
|
*/
|
|
5368
4832
|
"mouseOverTooltip"?: boolean;
|
|
5369
4833
|
/**
|
|
5370
4834
|
* Sets the offset distance
|
|
5371
|
-
* @default 8
|
|
5372
4835
|
*/
|
|
5373
4836
|
"offsetDistance"?: number;
|
|
5374
4837
|
/**
|
|
5375
4838
|
* Sets the offset skidding
|
|
5376
|
-
* @default 0
|
|
5377
4839
|
*/
|
|
5378
4840
|
"offsetSkidding"?: number;
|
|
5379
4841
|
/**
|
|
5380
4842
|
* Placement of Tooltip.
|
|
5381
|
-
* @default 'bottom'
|
|
5382
4843
|
*/
|
|
5383
4844
|
"placement"?: Placement;
|
|
5384
4845
|
/**
|
|
@@ -5391,21 +4852,18 @@ declare namespace LocalJSX {
|
|
|
5391
4852
|
"selector"?: string;
|
|
5392
4853
|
/**
|
|
5393
4854
|
* Prop in control of showing and hiding prop. Takes precedence over `defaultOpen` prop.
|
|
5394
|
-
* @default null
|
|
5395
4855
|
*/
|
|
5396
|
-
"show"?: boolean;
|
|
4856
|
+
"show"?: boolean | null;
|
|
5397
4857
|
/**
|
|
5398
4858
|
* Sets the aria-describedby attribute
|
|
5399
4859
|
*/
|
|
5400
4860
|
"tdsAriaDescribedby"?: string;
|
|
5401
4861
|
/**
|
|
5402
4862
|
* In case Tooltip contains only text, no HTML, a text can be passed by this prop
|
|
5403
|
-
* @default ''
|
|
5404
4863
|
*/
|
|
5405
4864
|
"text"?: string;
|
|
5406
4865
|
/**
|
|
5407
4866
|
* What triggers the popover to show
|
|
5408
|
-
* @default 'hover'
|
|
5409
4867
|
*/
|
|
5410
4868
|
"trigger"?: 'click' | 'hover';
|
|
5411
4869
|
}
|