@scania/tegel 1.6.1 → 1.8.0-ng-form-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-f36d4629.js → index-da55351d.js} +35 -23
- package/dist/cjs/loader.cjs.js +5 -3
- package/dist/cjs/tds-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-accordion.cjs.entry.js +1 -1
- package/dist/cjs/tds-badge.cjs.entry.js +1 -1
- package/dist/cjs/tds-banner.cjs.entry.js +1 -1
- package/dist/cjs/tds-block.cjs.entry.js +1 -1
- package/dist/cjs/tds-body-cell.cjs.entry.js +15 -4
- package/dist/cjs/tds-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/tds-breadcrumbs.cjs.entry.js +1 -1
- package/dist/cjs/tds-button.cjs.entry.js +1 -1
- package/dist/cjs/tds-card.cjs.entry.js +1 -1
- package/dist/cjs/tds-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/tds-chip.cjs.entry.js +1 -1
- package/dist/cjs/tds-core-header-item_2.cjs.entry.js +1 -1
- package/dist/cjs/tds-datetime.cjs.entry.js +1 -1
- package/dist/cjs/tds-divider.cjs.entry.js +1 -1
- package/dist/cjs/tds-dropdown-option.cjs.entry.js +1 -1
- package/dist/cjs/tds-dropdown.cjs.entry.js +20 -6
- package/dist/cjs/tds-folder-tab.cjs.entry.js +1 -1
- package/dist/cjs/tds-folder-tabs.cjs.entry.js +1 -1
- package/dist/cjs/tds-footer-group.cjs.entry.js +1 -1
- package/dist/cjs/tds-footer-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-footer.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-brand-symbol.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-cell.cjs.entry.js +9 -13
- package/dist/cjs/tds-header-dropdown-list-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-dropdown-list-user.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-dropdown-list.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-hamburger.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-button.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-grid-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-grid-title.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-grid.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-list-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-list-title.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-list.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher.cjs.entry.js +5 -9
- package/dist/cjs/tds-header-title.cjs.entry.js +1 -1
- package/dist/cjs/tds-header.cjs.entry.js +1 -1
- package/dist/cjs/tds-icon.cjs.entry.js +1 -1
- package/dist/cjs/tds-inline-tab.cjs.entry.js +1 -1
- package/dist/cjs/tds-inline-tabs.cjs.entry.js +1 -1
- package/dist/cjs/tds-link.cjs.entry.js +1 -1
- package/dist/cjs/tds-message.cjs.entry.js +1 -1
- package/dist/cjs/tds-modal.cjs.entry.js +41 -19
- package/dist/cjs/tds-navigation-tab.cjs.entry.js +1 -1
- package/dist/cjs/tds-navigation-tabs.cjs.entry.js +1 -1
- package/dist/cjs/tds-popover-canvas.cjs.entry.js +1 -1
- package/dist/cjs/tds-popover-core.cjs.entry.js +1 -1
- package/dist/cjs/tds-popover-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-popover-menu.cjs.entry.js +1 -1
- package/dist/cjs/tds-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-close-button.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-collapse-button.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-dropdown-list-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-dropdown-list.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-overlay.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-user-image_2.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-user.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu.cjs.entry.js +1 -1
- package/dist/cjs/tds-slider.cjs.entry.js +33 -37
- package/dist/cjs/tds-spinner.cjs.entry.js +1 -1
- package/dist/cjs/tds-step.cjs.entry.js +1 -1
- package/dist/cjs/tds-stepper.cjs.entry.js +1 -1
- package/dist/cjs/tds-table-body-row-expandable.cjs.entry.js +9 -3
- package/dist/cjs/tds-table-body-row.cjs.entry.js +1 -1
- package/dist/cjs/tds-table-body.cjs.entry.js +1 -1
- package/dist/cjs/tds-table-footer.cjs.entry.js +1 -1
- package/dist/cjs/tds-table-header.cjs.entry.js +1 -1
- package/dist/cjs/tds-table-toolbar.cjs.entry.js +1 -1
- package/dist/cjs/tds-table.cjs.entry.js +1 -1
- package/dist/cjs/tds-text-field.cjs.entry.js +35 -20
- package/dist/cjs/tds-textarea.cjs.entry.js +2 -2
- package/dist/cjs/tds-toast.cjs.entry.js +6 -7
- package/dist/cjs/tds-toggle.cjs.entry.js +2 -2
- package/dist/cjs/tds-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/tegel.cjs.js +6 -4
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/dropdown/dropdown.css +22 -0
- package/dist/collection/components/dropdown/dropdown.js +18 -4
- package/dist/collection/components/header/header-launcher/header-launcher.js +4 -8
- package/dist/collection/components/modal/modal.css +6 -21
- package/dist/collection/components/modal/modal.js +73 -17
- package/dist/collection/components/side-menu/side-menu.js +3 -3
- package/dist/collection/components/slider/slider.js +51 -41
- package/dist/collection/components/stepper/stepper.js +1 -1
- package/dist/collection/components/table/table/table.js +1 -1
- package/dist/collection/components/table/table-body-cell/table-body-cell.js +31 -3
- package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.css +6 -0
- package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js +7 -1
- package/dist/collection/components/table/table-header-cell/table-header-cell.css +0 -6
- package/dist/collection/components/table/table-header-cell/table-header-cell.js +13 -16
- package/dist/collection/components/text-field/text-field.css +2 -1
- package/dist/collection/components/text-field/text-field.js +36 -21
- package/dist/collection/components/textarea/textarea.js +1 -1
- package/dist/collection/components/toast/toast.css +3 -5
- package/dist/collection/components/toast/toast.js +22 -5
- package/dist/collection/components/toggle/toggle.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +2 -2
- package/dist/components/tds-body-cell.js +15 -3
- package/dist/components/tds-dropdown.js +19 -5
- package/dist/components/tds-header-cell.js +8 -12
- package/dist/components/tds-header-launcher.js +4 -8
- package/dist/components/tds-modal.js +43 -19
- package/dist/components/tds-slider.js +33 -37
- package/dist/components/tds-table-body-row-expandable.js +8 -2
- package/dist/components/tds-text-field.js +34 -19
- package/dist/components/tds-textarea.js +1 -1
- package/dist/components/tds-toast.js +6 -6
- package/dist/components/tds-toggle.js +1 -1
- package/dist/components/tds-tooltip.js +2 -2
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/{index-ab4edc4a.js → index-529974bd.js} +35 -23
- package/dist/esm/loader.js +6 -4
- package/dist/esm/tds-accordion-item.entry.js +1 -1
- package/dist/esm/tds-accordion.entry.js +1 -1
- package/dist/esm/tds-badge.entry.js +1 -1
- package/dist/esm/tds-banner.entry.js +1 -1
- package/dist/esm/tds-block.entry.js +1 -1
- package/dist/esm/tds-body-cell.entry.js +15 -4
- package/dist/esm/tds-breadcrumb.entry.js +1 -1
- package/dist/esm/tds-breadcrumbs.entry.js +1 -1
- package/dist/esm/tds-button.entry.js +1 -1
- package/dist/esm/tds-card.entry.js +1 -1
- package/dist/esm/tds-checkbox.entry.js +1 -1
- package/dist/esm/tds-chip.entry.js +1 -1
- package/dist/esm/tds-core-header-item_2.entry.js +1 -1
- package/dist/esm/tds-datetime.entry.js +1 -1
- package/dist/esm/tds-divider.entry.js +1 -1
- package/dist/esm/tds-dropdown-option.entry.js +1 -1
- package/dist/esm/tds-dropdown.entry.js +20 -6
- package/dist/esm/tds-folder-tab.entry.js +1 -1
- package/dist/esm/tds-folder-tabs.entry.js +1 -1
- package/dist/esm/tds-footer-group.entry.js +1 -1
- package/dist/esm/tds-footer-item.entry.js +1 -1
- package/dist/esm/tds-footer.entry.js +1 -1
- package/dist/esm/tds-header-brand-symbol.entry.js +1 -1
- package/dist/esm/tds-header-cell.entry.js +9 -13
- package/dist/esm/tds-header-dropdown-list-item.entry.js +1 -1
- package/dist/esm/tds-header-dropdown-list-user.entry.js +1 -1
- package/dist/esm/tds-header-dropdown-list.entry.js +1 -1
- package/dist/esm/tds-header-dropdown.entry.js +1 -1
- package/dist/esm/tds-header-hamburger.entry.js +1 -1
- package/dist/esm/tds-header-launcher-button.entry.js +1 -1
- package/dist/esm/tds-header-launcher-grid-item.entry.js +1 -1
- package/dist/esm/tds-header-launcher-grid-title.entry.js +1 -1
- package/dist/esm/tds-header-launcher-grid.entry.js +1 -1
- package/dist/esm/tds-header-launcher-list-item.entry.js +1 -1
- package/dist/esm/tds-header-launcher-list-title.entry.js +1 -1
- package/dist/esm/tds-header-launcher-list.entry.js +1 -1
- package/dist/esm/tds-header-launcher.entry.js +5 -9
- package/dist/esm/tds-header-title.entry.js +1 -1
- package/dist/esm/tds-header.entry.js +1 -1
- package/dist/esm/tds-icon.entry.js +1 -1
- package/dist/esm/tds-inline-tab.entry.js +1 -1
- package/dist/esm/tds-inline-tabs.entry.js +1 -1
- package/dist/esm/tds-link.entry.js +1 -1
- package/dist/esm/tds-message.entry.js +1 -1
- package/dist/esm/tds-modal.entry.js +41 -19
- package/dist/esm/tds-navigation-tab.entry.js +1 -1
- package/dist/esm/tds-navigation-tabs.entry.js +1 -1
- package/dist/esm/tds-popover-canvas.entry.js +1 -1
- package/dist/esm/tds-popover-core.entry.js +1 -1
- package/dist/esm/tds-popover-menu-item.entry.js +1 -1
- package/dist/esm/tds-popover-menu.entry.js +1 -1
- package/dist/esm/tds-radio-button.entry.js +1 -1
- package/dist/esm/tds-side-menu-close-button.entry.js +1 -1
- package/dist/esm/tds-side-menu-collapse-button.entry.js +1 -1
- package/dist/esm/tds-side-menu-dropdown-list-item.entry.js +1 -1
- package/dist/esm/tds-side-menu-dropdown-list.entry.js +1 -1
- package/dist/esm/tds-side-menu-dropdown.entry.js +1 -1
- package/dist/esm/tds-side-menu-item.entry.js +1 -1
- package/dist/esm/tds-side-menu-overlay.entry.js +1 -1
- package/dist/esm/tds-side-menu-user-image_2.entry.js +1 -1
- package/dist/esm/tds-side-menu-user.entry.js +1 -1
- package/dist/esm/tds-side-menu.entry.js +1 -1
- package/dist/esm/tds-slider.entry.js +33 -37
- package/dist/esm/tds-spinner.entry.js +1 -1
- package/dist/esm/tds-step.entry.js +1 -1
- package/dist/esm/tds-stepper.entry.js +1 -1
- package/dist/esm/tds-table-body-row-expandable.entry.js +9 -3
- package/dist/esm/tds-table-body-row.entry.js +1 -1
- package/dist/esm/tds-table-body.entry.js +1 -1
- package/dist/esm/tds-table-footer.entry.js +1 -1
- package/dist/esm/tds-table-header.entry.js +1 -1
- package/dist/esm/tds-table-toolbar.entry.js +1 -1
- package/dist/esm/tds-table.entry.js +1 -1
- package/dist/esm/tds-text-field.entry.js +35 -20
- package/dist/esm/tds-textarea.entry.js +2 -2
- package/dist/esm/tds-toast.entry.js +6 -7
- package/dist/esm/tds-toggle.entry.js +2 -2
- package/dist/esm/tds-tooltip.entry.js +3 -3
- package/dist/esm/tegel.js +7 -5
- package/dist/tegel/{p-5b23048d.entry.js → p-0215d53c.entry.js} +1 -1
- package/dist/tegel/{p-8df9b81f.entry.js → p-02417061.entry.js} +1 -1
- package/dist/tegel/{p-391b6b34.entry.js → p-033fbea5.entry.js} +1 -1
- package/dist/tegel/p-052901a5.entry.js +1 -0
- package/dist/tegel/p-05704939.entry.js +1 -0
- package/dist/tegel/{p-ab76d48c.entry.js → p-0c444c09.entry.js} +1 -1
- package/dist/tegel/p-10610955.entry.js +1 -0
- package/dist/tegel/{p-24466c21.entry.js → p-16f0471f.entry.js} +1 -1
- package/dist/tegel/{p-68821acd.entry.js → p-1ba2c5df.entry.js} +1 -1
- package/dist/tegel/{p-0c564ca1.entry.js → p-1e2ef3d6.entry.js} +1 -1
- package/dist/tegel/{p-72b79121.entry.js → p-1f39c53a.entry.js} +1 -1
- package/dist/tegel/p-2598dc8a.entry.js +1 -0
- package/dist/tegel/{p-8af4737f.entry.js → p-2c388774.entry.js} +1 -1
- package/dist/tegel/{p-200def59.entry.js → p-2f5db352.entry.js} +1 -1
- package/dist/tegel/{p-6fa16688.entry.js → p-2f692ff0.entry.js} +1 -1
- package/dist/tegel/{p-b13959d0.entry.js → p-2ffae2d1.entry.js} +1 -1
- package/dist/tegel/{p-efff904c.entry.js → p-3b546070.entry.js} +1 -1
- package/dist/tegel/{p-4ca0f396.entry.js → p-3b858820.entry.js} +1 -1
- package/dist/tegel/{p-81cc50f8.entry.js → p-3dd15e1e.entry.js} +1 -1
- package/dist/tegel/{p-30dc9a8b.entry.js → p-3f983f99.entry.js} +1 -1
- package/dist/tegel/{p-a2ad0d53.entry.js → p-412d8fd1.entry.js} +1 -1
- package/dist/tegel/{p-7bbfa1ea.entry.js → p-453c8af8.entry.js} +1 -1
- package/dist/tegel/{p-825fd938.entry.js → p-4a04433c.entry.js} +1 -1
- package/dist/tegel/{p-2270b30c.entry.js → p-50b0f2ff.entry.js} +1 -1
- package/dist/tegel/{p-e2f1a7a2.entry.js → p-52b9333c.entry.js} +1 -1
- package/dist/tegel/p-540a83e5.entry.js +1 -0
- package/dist/tegel/{p-1590e242.entry.js → p-56bae450.entry.js} +1 -1
- package/dist/tegel/{p-a2934b2a.entry.js → p-5880c2f3.entry.js} +1 -1
- package/dist/tegel/{p-9544a2e7.entry.js → p-5a273781.entry.js} +1 -1
- package/dist/tegel/{p-145808cf.entry.js → p-5b7d9ca4.entry.js} +1 -1
- package/dist/tegel/{p-36db31d4.entry.js → p-5d756b0b.entry.js} +1 -1
- package/dist/tegel/{p-048b8480.entry.js → p-5db63168.entry.js} +1 -1
- package/dist/tegel/{p-eda20d0d.entry.js → p-652eb0ff.entry.js} +1 -1
- package/dist/tegel/{p-447ecb47.entry.js → p-669f7646.entry.js} +1 -1
- package/dist/tegel/p-699829fc.js +2 -0
- package/dist/tegel/{p-92b2db31.entry.js → p-6c23bc53.entry.js} +1 -1
- package/dist/tegel/{p-17b8763f.entry.js → p-7076c719.entry.js} +1 -1
- package/dist/tegel/{p-8e442441.entry.js → p-7172fd77.entry.js} +1 -1
- package/dist/tegel/{p-c95a8a36.entry.js → p-747811d6.entry.js} +1 -1
- package/dist/tegel/{p-5047cf31.entry.js → p-76a00407.entry.js} +1 -1
- package/dist/tegel/{p-cb080d0b.entry.js → p-7a3fbb5b.entry.js} +1 -1
- package/dist/tegel/p-7a8d7b95.entry.js +1 -0
- package/dist/tegel/{p-ee537028.entry.js → p-7e0116af.entry.js} +1 -1
- package/dist/tegel/{p-40519ff4.entry.js → p-864e5bb0.entry.js} +1 -1
- package/dist/tegel/{p-f51101e4.entry.js → p-87bfc032.entry.js} +1 -1
- package/dist/tegel/{p-cd93fb3a.entry.js → p-8a46d308.entry.js} +1 -1
- package/dist/tegel/{p-4aa948cf.entry.js → p-8a90d1ae.entry.js} +1 -1
- package/dist/tegel/{p-61b2e46f.entry.js → p-8bb8d06a.entry.js} +1 -1
- package/dist/tegel/{p-32f13b73.entry.js → p-8ebc7052.entry.js} +1 -1
- package/dist/tegel/{p-2fb7f571.entry.js → p-a0812bb2.entry.js} +1 -1
- package/dist/tegel/{p-ae5db9b9.entry.js → p-a1151348.entry.js} +1 -1
- package/dist/tegel/{p-1b671dbc.entry.js → p-a31282be.entry.js} +1 -1
- package/dist/tegel/{p-30417aac.entry.js → p-acc70f3c.entry.js} +1 -1
- package/dist/tegel/{p-23ed39c5.entry.js → p-af6d2907.entry.js} +1 -1
- package/dist/tegel/{p-9995c9e6.entry.js → p-b03790b1.entry.js} +1 -1
- package/dist/tegel/{p-5b9e6fa3.entry.js → p-b263f884.entry.js} +1 -1
- package/dist/tegel/{p-9731cc82.entry.js → p-b6f8c65f.entry.js} +1 -1
- package/dist/tegel/p-bb7703ac.entry.js +1 -0
- package/dist/tegel/{p-d8b12e59.entry.js → p-bc7459fb.entry.js} +1 -1
- package/dist/tegel/{p-708a52b1.entry.js → p-c08c8bd8.entry.js} +1 -1
- package/dist/tegel/{p-77a5d874.entry.js → p-c77d9eaf.entry.js} +1 -1
- package/dist/tegel/{p-5ec7c389.entry.js → p-cc16393b.entry.js} +1 -1
- package/dist/tegel/{p-521fd6fe.entry.js → p-d26257ca.entry.js} +1 -1
- package/dist/tegel/{p-c9f701f6.entry.js → p-d2e0442d.entry.js} +1 -1
- package/dist/tegel/{p-6e4cda16.entry.js → p-d41ef4f8.entry.js} +1 -1
- package/dist/tegel/p-d9fec37c.entry.js +1 -0
- package/dist/tegel/{p-adddb2db.entry.js → p-ddabb9e9.entry.js} +1 -1
- package/dist/tegel/{p-fa3bd57f.entry.js → p-e10b2f73.entry.js} +1 -1
- package/dist/tegel/p-e1255160.js +1 -0
- package/dist/tegel/{p-db20a6e9.entry.js → p-e2443a41.entry.js} +1 -1
- package/dist/tegel/{p-cd406a82.entry.js → p-e38b51a2.entry.js} +1 -1
- package/dist/tegel/{p-dc35de46.entry.js → p-e3e19bd6.entry.js} +1 -1
- package/dist/tegel/{p-632a58e4.entry.js → p-e6a51915.entry.js} +1 -1
- package/dist/tegel/{p-c3ad28ea.entry.js → p-e8957bd2.entry.js} +1 -1
- package/dist/tegel/p-ebbe0131.entry.js +1 -0
- package/dist/tegel/{p-25616b50.entry.js → p-ed56507b.entry.js} +1 -1
- package/dist/tegel/{p-7b9149c0.entry.js → p-ed8f1e2a.entry.js} +1 -1
- package/dist/tegel/{p-71063a5a.entry.js → p-f226f11e.entry.js} +1 -1
- package/dist/tegel/{p-d604194c.entry.js → p-f93bb760.entry.js} +1 -1
- package/dist/tegel/{p-b8cc0ab0.entry.js → p-fb2968f2.entry.js} +1 -1
- package/dist/tegel/tegel.css +1 -1
- package/dist/tegel/tegel.esm.js +1 -1
- package/dist/types/components/dropdown/dropdown.d.ts +1 -0
- package/dist/types/components/modal/modal.d.ts +9 -2
- package/dist/types/components/slider/slider.d.ts +7 -5
- package/dist/types/components/table/table-body-cell/table-body-cell.d.ts +2 -0
- package/dist/types/components/table/table-header-cell/table-header-cell.d.ts +2 -2
- package/dist/types/components/text-field/text-field.d.ts +3 -3
- package/dist/types/components/toast/toast.d.ts +2 -0
- package/dist/types/components.d.ts +40 -7
- package/package.json +4 -2
- package/dist/tegel/p-55afd9bb.entry.js +0 -1
- package/dist/tegel/p-5c528867.entry.js +0 -1
- package/dist/tegel/p-68f0f81d.entry.js +0 -1
- package/dist/tegel/p-6bb7fa2c.js +0 -2
- package/dist/tegel/p-6bca93b8.entry.js +0 -1
- package/dist/tegel/p-9d79f2fe.entry.js +0 -1
- package/dist/tegel/p-9f33108a.entry.js +0 -1
- package/dist/tegel/p-bd056432.entry.js +0 -1
- package/dist/tegel/p-c0ced88a.entry.js +0 -1
- package/dist/tegel/p-e35f0c64.entry.js +0 -1
package/dist/tegel/tegel.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as t}from"./p-6bb7fa2c.js";export{s as setNonce}from"./p-6bb7fa2c.js";(()=>{const t=import.meta.url,d={};return""!==t&&(d.resourcesUrl=new URL(".",t).href),e(d)})().then((e=>t(JSON.parse('[["p-bd056432",[[1,"tds-header-launcher",{"open":[32],"buttonEl":[32],"hasListTypeMenu":[32]},[[8,"click","onAnyClick"]]]]],["p-2270b30c",[[1,"tds-header-dropdown",{"label":[1],"noDropdownIcon":[4,"no-dropdown-icon"],"selected":[4],"open":[32],"buttonEl":[32]},[[4,"click","onAnyClick"]]]]],["p-40519ff4",[[1,"tds-header-hamburger"]]],["p-6fa16688",[[17,"tds-dropdown-option",{"value":[1],"disabled":[4],"selected":[32],"multiselect":[32],"size":[32],"setSelected":[64]}]]],["p-30417aac",[[1,"tds-header-brand-symbol"]]],["p-adddb2db",[[1,"tds-side-menu-dropdown",{"defaultOpen":[4,"default-open"],"buttonLabel":[1,"button-label"],"selected":[4],"open":[32],"hoverState":[32],"collapsed":[32]},[[16,"internalTdsSideMenuPropChange","collapsedSideMenuEventHandler"],[1,"pointerenter","onEventPointerEnter"],[0,"focusin","onEventFocus"],[1,"pointerleave","onEventPointerLeave"],[0,"focusout","onEventBlur"]]]]],["p-048b8480",[[1,"tds-side-menu-user",{"heading":[1],"subheading":[1],"imgSrc":[1,"img-src"],"imgAlt":[1,"img-alt"]}]]],["p-ab76d48c",[[1,"tds-accordion-item",{"header":[1],"expandIconPosition":[1,"expand-icon-position"],"disabled":[4],"expanded":[4],"paddingReset":[4,"padding-reset"],"toggleAccordionItem":[64]}]]],["p-23ed39c5",[[1,"tds-banner",{"icon":[1],"header":[1],"subheader":[1],"variant":[1],"bannerId":[1,"banner-id"],"hidden":[516],"hideBanner":[64],"showBanner":[64]}]]],["p-db20a6e9",[[1,"tds-card",{"modeVariant":[1,"mode-variant"],"imagePlacement":[1,"image-placement"],"header":[1],"subheader":[1],"bodyImg":[1,"body-img"],"bodyImgAlt":[1,"body-img-alt"],"bodyDivider":[4,"body-divider"],"clickable":[4],"cardId":[1,"card-id"]}]]],["p-efff904c",[[2,"tds-datetime",{"type":[513],"value":[1537],"min":[1],"max":[1],"defaultValue":[1,"default-value"],"disabled":[4],"size":[1],"noMinWidth":[4,"no-min-width"],"modeVariant":[1,"mode-variant"],"name":[1],"state":[1],"autofocus":[4],"label":[1],"helper":[1],"focusInput":[32],"setValue":[64]},[[0,"focus","handleFocusIn"],[0,"focusout","handleFocusOut"]]]]],["p-9f33108a",[[1,"tds-dropdown",{"name":[1],"disabled":[4],"helper":[1],"label":[1],"labelPosition":[1,"label-position"],"modeVariant":[1,"mode-variant"],"openDirection":[1,"open-direction"],"placeholder":[1],"size":[1],"error":[4],"multiselect":[4],"filter":[4],"normalizeText":[4,"normalize-text"],"noResultText":[1,"no-result-text"],"defaultValue":[1,"default-value"],"open":[32],"value":[32],"filterResult":[32],"filterFocus":[32],"reset":[64],"setValue":[64],"appendValue":[64],"removeValue":[64],"close":[64]},[[9,"mousedown","onAnyClick"],[0,"keydown","onKeyDown"]],{"open":["handleOpenState"]}]]],["p-24466c21",[[1,"tds-folder-tabs",{"modeVariant":[1,"mode-variant"],"defaultSelectedIndex":[2,"default-selected-index"],"selectedIndex":[514,"selected-index"],"buttonWidth":[32],"showLeftScroll":[32],"showRightScroll":[32],"selectTab":[64]},null,{"selectedIndex":["handleSelectedIndexUpdate"]}]]],["p-a2ad0d53",[[1,"tds-footer-group",{"titleText":[1,"title-text"],"open":[32]}]]],["p-c3ad28ea",[[4,"tds-header-launcher-list"]]],["p-1b671dbc",[[1,"tds-header-launcher-list-item"]]],["p-d8b12e59",[[1,"tds-inline-tabs",{"modeVariant":[1,"mode-variant"],"defaultSelectedIndex":[2,"default-selected-index"],"selectedIndex":[514,"selected-index"],"showLeftScroll":[32],"showRightScroll":[32],"buttonWidth":[32],"selectTab":[64]},null,{"selectedIndex":["handleSelectedIndexUpdate"]}]]],["p-cd93fb3a",[[1,"tds-message",{"header":[1],"modeVariant":[1,"mode-variant"],"variant":[1],"noIcon":[4,"no-icon"],"minimal":[4]}]]],["p-55afd9bb",[[1,"tds-modal",{"header":[1],"prevent":[4],"size":[1],"actionsPosition":[1,"actions-position"],"selector":[1],"referenceEl":[16],"show":[4],"isShown":[32],"showModal":[64],"closeModal":[64]}]]],["p-36db31d4",[[1,"tds-navigation-tabs",{"modeVariant":[1,"mode-variant"],"defaultSelectedIndex":[2,"default-selected-index"],"selectedIndex":[514,"selected-index"],"showLeftScroll":[32],"showRightScroll":[32],"selectTab":[64]},null,{"selectedIndex":["handleSelectedIndexUpdate"]}]]],["p-a2934b2a",[[6,"tds-popover-menu",{"selector":[1],"referenceEl":[16],"show":[4],"placement":[1],"offsetSkidding":[2,"offset-skidding"],"offsetDistance":[2,"offset-distance"],"fluidWidth":[4,"fluid-width"]}]]],["p-9731cc82",[[1,"tds-side-menu-close-button"]]],["p-d604194c",[[1,"tds-side-menu-collapse-button",{"collapsed":[32]},[[16,"internalTdsSideMenuPropChange","collapseSideMenuEventHandler"]]]]],["p-c0ced88a",[[0,"tds-slider",{"label":[1],"value":[1025],"min":[1],"max":[1],"ticks":[1],"showTickNumbers":[4,"show-tick-numbers"],"tooltip":[4],"disabled":[4],"readOnly":[4,"read-only"],"controls":[4],"input":[4],"step":[1],"name":[1],"thumbSize":[1,"thumb-size"],"snap":[4],"sliderId":[1,"slider-id"],"reset":[64]},[[0,"keydown","handleKeydown"],[9,"mouseup","handleMouseUp"],[9,"touchend","handleTouchEnd"],[9,"mousemove","handleMouseMove"],[9,"touchmove","handleTouchMove"]],{"value":["handleValueUpdate"]}]]],["p-1590e242",[[1,"tds-step",{"index":[1],"state":[1],"hideLabels":[32],"size":[32],"orientation":[32],"labelPosition":[32]},[[16,"internalTdsPropsChange","handlePropsChange"]]]]],["p-77a5d874",[[1,"tds-table-body-row",{"selected":[516],"disabled":[516],"multiselect":[32],"mainCheckBoxStatus":[32],"verticalDividers":[32],"compactDesign":[32],"noMinWidth":[32],"tableId":[32]},[[16,"internalTdsTablePropChange","internalTdsPropChangeListener"]]]]],["p-6e4cda16",[[1,"tds-table-footer",{"pagination":[516],"paginationValue":[1538,"pagination-value"],"pages":[514],"cols":[2],"columnsNumber":[32],"compactDesign":[32],"lastCorrectValue":[32],"tableId":[32]},[[16,"internalTdsTablePropChange","internalTdsPropChangeListener"]]]]],["p-c9f701f6",[[1,"tds-table-header",{"allSelected":[1540,"all-selected"],"selected":[1540],"disabled":[1540],"indeterminate":[4],"multiselect":[32],"expandableRows":[32],"mainCheckboxSelected":[32],"mainExpendSelected":[32],"verticalDividers":[32],"compactDesign":[32],"noMinWidth":[32],"whiteBackground":[32],"enableToolbarDesign":[32],"tableId":[32]},[[16,"internalTdsTablePropChange","internalTdsPropChangeListener"],[16,"internalTdsRowExpanded","internalTdsRowExpandedListener"]]]]],["p-7bbfa1ea",[[1,"tds-table-toolbar",{"tableTitle":[513,"table-title"],"filter":[516],"verticalDividers":[32],"compactDesign":[32],"noMinWidth":[32],"whiteBackground":[32],"tableId":[32]},[[16,"internalTdsTablePropChange","internalTdsPropChangeListener"]]]]],["p-9d79f2fe",[[6,"tds-text-field",{"type":[513],"labelPosition":[1,"label-position"],"label":[1],"min":[8],"max":[8],"helper":[1],"placeholder":[1],"value":[513],"disabled":[4],"readOnly":[4,"read-only"],"size":[1],"modeVariant":[1,"mode-variant"],"noMinWidth":[4,"no-min-width"],"name":[1],"state":[1],"maxLength":[2,"max-length"],"autofocus":[4],"focusInput":[32]}]]],["p-4ca0f396",[[2,"tds-textarea",{"label":[1],"name":[1],"helper":[1],"cols":[2],"rows":[2],"labelPosition":[1,"label-position"],"placeholder":[1],"value":[1],"disabled":[4],"readOnly":[4,"read-only"],"state":[1],"maxLength":[2,"max-length"],"modeVariant":[1,"mode-variant"],"autofocus":[4],"noMinWidth":[4,"no-min-width"],"focusInput":[32]}]]],["p-68f0f81d",[[1,"tds-toast",{"toastId":[1,"toast-id"],"header":[1],"subheader":[1],"variant":[1],"hidden":[516],"toastRole":[1,"toast-role"],"hideToast":[64],"showToast":[64]}]]],["p-92b2db31",[[6,"tds-tooltip",{"text":[1],"selector":[1],"referenceEl":[16],"mouseOverTooltip":[4,"mouse-over-tooltip"],"show":[1028],"placement":[1],"offsetSkidding":[2,"offset-skidding"],"offsetDistance":[2,"offset-distance"]}]]],["p-68821acd",[[1,"tds-accordion",{"modeVariant":[1,"mode-variant"]}]]],["p-dc35de46",[[1,"tds-badge",{"value":[1],"hidden":[516],"size":[1],"shape":[32],"text":[32]},null,{"value":["watchProps"],"size":["watchProps"]}]]],["p-30dc9a8b",[[1,"tds-block",{"modeVariant":[1,"mode-variant"]}]]],["p-5c528867",[[1,"tds-body-cell",{"cellValue":[520,"cell-value"],"cellKey":[520,"cell-key"],"disablePadding":[516,"disable-padding"],"textAlignState":[32],"activeSorting":[32],"verticalDividers":[32],"compactDesign":[32],"noMinWidth":[32],"whiteBackground":[32],"tableId":[32]},[[16,"internalTdsPropChange","internalTdsPropChangeListener"],[16,"internalTdsHover","internalTdsHoverListener"],[16,"internalTdsTextAlign","internalTdsTextAlignListener"]]]]],["p-32f13b73",[[1,"tds-breadcrumb",{"current":[4]}]]],["p-825fd938",[[1,"tds-breadcrumbs"]]],["p-145808cf",[[6,"tds-button",{"text":[1],"type":[1],"variant":[1],"size":[1],"disabled":[4],"fullbleed":[4],"modeVariant":[1,"mode-variant"],"onlyIcon":[32]}]]],["p-5b23048d",[[6,"tds-chip",{"type":[1],"size":[1],"chipId":[1,"chip-id"],"checked":[1540],"name":[1],"value":[1]}]]],["p-7b9149c0",[[1,"tds-folder-tab",{"disabled":[4],"selected":[32],"tabWidth":[32],"setTabWidth":[64],"setSelected":[64]}]]],["p-708a52b1",[[1,"tds-footer",{"modeVariant":[1,"mode-variant"]}]]],["p-fa3bd57f",[[1,"tds-footer-item"]]],["p-17b8763f",[[4,"tds-header"]]],["p-6bca93b8",[[1,"tds-header-cell",{"cellKey":[513,"cell-key"],"cellValue":[513,"cell-value"],"customWidth":[513,"custom-width"],"sortable":[4],"textAlign":[513,"text-align"],"textAlignState":[32],"sortingDirection":[32],"sortedByMyKey":[32],"verticalDividers":[32],"compactDesign":[32],"noMinWidth":[32],"multiselect":[32],"enableToolbarDesign":[32],"tableId":[32],"expandableRows":[32]},[[16,"internalTdsPropChange","internalTdsPropChangeListener"],[16,"internalSortButtonClicked","updateOptionsContent"]]]]],["p-8af4737f",[[1,"tds-header-dropdown-list-user",{"imgUrl":[1,"img-url"],"imgAlt":[1,"img-alt"],"header":[1],"subheader":[1]}]]],["p-72b79121",[[4,"tds-header-launcher-grid",{"headingElement":[32]}]]],["p-5047cf31",[[1,"tds-header-launcher-grid-item"]]],["p-8df9b81f",[[4,"tds-header-launcher-grid-title"]]],["p-25616b50",[[4,"tds-header-launcher-list-title"]]],["p-eda20d0d",[[1,"tds-header-title"]]],["p-200def59",[[1,"tds-inline-tab",{"disabled":[4],"selected":[32],"setSelected":[64]}]]],["p-c95a8a36",[[1,"tds-link",{"disabled":[4],"underline":[4]}]]],["p-ee537028",[[1,"tds-navigation-tab",{"disabled":[4],"selected":[32],"setSelected":[64]}]]],["p-9995c9e6",[[1,"tds-popover-menu-item",{"disabled":[4]}]]],["p-5ec7c389",[[6,"tds-radio-button",{"name":[1],"value":[1],"radioId":[1,"radio-id"],"checked":[516],"required":[4],"disabled":[4]}]]],["p-b13959d0",[[1,"tds-side-menu",{"open":[4],"persistent":[4],"collapsed":[1028],"isUpperSlotEmpty":[32],"isCollapsed":[32],"initialCollapsedState":[32]},[[16,"internalTdsCollapse","collapsedSideMenuEventHandler"]],{"collapsed":["onCollapsedChange"]}]]],["p-521fd6fe",[[1,"tds-side-menu-dropdown-list",{"collapsed":[32]},[[16,"internalTdsSideMenuPropChange","collapsedSideMenuEventHandler"]]]]],["p-9544a2e7",[[1,"tds-side-menu-dropdown-list-item",{"selected":[4],"dropdownHasIcon":[32],"collapsed":[32]},[[16,"internalTdsSideMenuPropChange","collapseSideMenuEventHandler"]]]]],["p-2fb7f571",[[1,"tds-side-menu-overlay"]]],["p-71063a5a",[[0,"tds-spinner",{"size":[1],"variant":[1]}]]],["p-b8cc0ab0",[[1,"tds-stepper",{"orientation":[1],"labelPosition":[1,"label-position"],"size":[1],"hideLabels":[4,"hide-labels"],"stepperId":[1,"stepper-id"]},null,{"orientation":["handleDirectionChange"],"labelPosition":["handleLabelPositionChange"],"size":["handleSizeChange"],"hideLabels":["handleHideLabelsChange"]}]]],["p-8e442441",[[1,"tds-table",{"verticalDividers":[516,"vertical-dividers"],"compactDesign":[516,"compact-design"],"noMinWidth":[516,"no-min-width"],"multiselect":[516],"expandableRows":[516,"expandable-rows"],"responsive":[516],"modeVariant":[513,"mode-variant"],"tableId":[1,"table-id"],"getSelectedRows":[64]},null,{"multiselect":["multiselectChanged"],"expandableRows":["enableExpandableRowsChanged"],"compactDesign":["compactDesignChanged"],"verticalDividers":["verticalDividersChanged"],"noMinWidth":["noMinWidthChanged"],"modeVariant":["modeVariantChanged"]}]]],["p-0c564ca1",[[4,"tds-table-body",{"multiselect":[32],"enablePaginationTableBody":[32],"expandableRows":[32],"multiselectArray":[32],"multiselectArrayJSON":[32],"mainCheckboxStatus":[32],"columnsNumber":[32],"tableId":[32]},[[16,"internalTdsTablePropChange","internalTdsPropChangeListener"],[16,"internalTdsRowChange","bodyCheckboxListener"]]]]],["p-e35f0c64",[[1,"tds-table-body-row-expandable",{"colSpan":[2,"col-span"],"isExpanded":[32],"tableId":[32],"columnsNumber":[32],"verticalDividers":[32],"compactDesign":[32],"noMinWidth":[32],"modeVariant":[32]},[[16,"internalTdsTablePropChange","internalTdsPropChangeListener"]]]]],["p-632a58e4",[[6,"tds-toggle",{"checked":[516],"required":[4],"size":[1],"name":[1],"headline":[1],"disabled":[4],"toggleId":[1,"toggle-id"],"toggle":[64]}]]],["p-61b2e46f",[[1,"tds-header-launcher-button",{"active":[4]}]]],["p-e2f1a7a2",[[1,"tds-divider",{"orientation":[1]}]]],["p-cb080d0b",[[1,"tds-header-dropdown-list",{"size":[513],"headingElement":[32]}]]],["p-ae5db9b9",[[1,"tds-header-dropdown-list-item",{"selected":[4],"size":[513]}]]],["p-cd406a82",[[6,"tds-popover-canvas",{"selector":[1],"referenceEl":[16],"show":[4],"placement":[1],"offsetSkidding":[2,"offset-skidding"],"offsetDistance":[2,"offset-distance"],"modifiers":[16]}]]],["p-f51101e4",[[1,"tds-side-menu-user-image",{"src":[1],"alt":[1]}],[1,"tds-side-menu-user-label",{"heading":[1],"subheading":[1]}]]],["p-81cc50f8",[[1,"tds-side-menu-item",{"selected":[4],"active":[4],"collapsed":[32]},[[16,"internalTdsSideMenuPropChange","collapseSideMenuEventHandler"]]]]],["p-4aa948cf",[[6,"tds-checkbox",{"name":[1],"checkboxId":[1,"checkbox-id"],"disabled":[4],"required":[4],"checked":[1540],"indeterminate":[1028],"value":[1],"toggleCheckbox":[64]},null,{"indeterminate":["handleIndeterminateState"]}]]],["p-447ecb47",[[6,"tds-popover-core",{"selector":[1],"referenceEl":[16],"show":[4],"placement":[1],"offsetSkidding":[2,"offset-skidding"],"offsetDistance":[2,"offset-distance"],"modifiers":[16],"trigger":[1],"autoHide":[4,"auto-hide"],"renderedShowValue":[32],"popperInstance":[32],"target":[32],"isShown":[32]},[[8,"click","onAnyClick"]],{"show":["onShowChange"],"referenceEl":["onReferenceElChanged"],"trigger":["onTriggerChanged"]}]]],["p-391b6b34",[[1,"tds-header-item",{"active":[4],"selected":[4]}],[1,"tds-core-header-item"]]],["p-5b9e6fa3",[[1,"tds-icon",{"name":[513],"size":[513],"svgTitle":[1,"svg-title"],"svgDescription":[1,"svg-description"],"icons_object":[32],"arrayOfIcons":[32]}]]]]'),e)));
|
|
1
|
+
import{p as e,b as t}from"./p-699829fc.js";export{s as setNonce}from"./p-699829fc.js";import{g as d}from"./p-e1255160.js";(()=>{const t=import.meta.url,d={};return""!==t&&(d.resourcesUrl=new URL(".",t).href),e(d)})().then((async e=>(await d(),t(JSON.parse('[["p-05704939",[[1,"tds-header-launcher",{"open":[32],"buttonEl":[32],"hasListTypeMenu":[32]},[[8,"click","onAnyClick"]]]]],["p-50b0f2ff",[[1,"tds-header-dropdown",{"label":[1],"noDropdownIcon":[4,"no-dropdown-icon"],"selected":[4],"open":[32],"buttonEl":[32]},[[4,"click","onAnyClick"]]]]],["p-864e5bb0",[[1,"tds-header-hamburger"]]],["p-2f692ff0",[[17,"tds-dropdown-option",{"value":[1],"disabled":[4],"selected":[32],"multiselect":[32],"size":[32],"setSelected":[64]}]]],["p-acc70f3c",[[1,"tds-header-brand-symbol"]]],["p-ddabb9e9",[[1,"tds-side-menu-dropdown",{"defaultOpen":[4,"default-open"],"buttonLabel":[1,"button-label"],"selected":[4],"open":[32],"hoverState":[32],"collapsed":[32]},[[16,"internalTdsSideMenuPropChange","collapsedSideMenuEventHandler"],[1,"pointerenter","onEventPointerEnter"],[0,"focusin","onEventFocus"],[1,"pointerleave","onEventPointerLeave"],[0,"focusout","onEventBlur"]]]]],["p-5db63168",[[1,"tds-side-menu-user",{"heading":[1],"subheading":[1],"imgSrc":[1,"img-src"],"imgAlt":[1,"img-alt"]}]]],["p-0c444c09",[[1,"tds-accordion-item",{"header":[1],"expandIconPosition":[1,"expand-icon-position"],"disabled":[4],"expanded":[4],"paddingReset":[4,"padding-reset"],"toggleAccordionItem":[64]}]]],["p-af6d2907",[[1,"tds-banner",{"icon":[1],"header":[1],"subheader":[1],"variant":[1],"bannerId":[1,"banner-id"],"hidden":[516],"hideBanner":[64],"showBanner":[64]}]]],["p-e2443a41",[[1,"tds-card",{"modeVariant":[1,"mode-variant"],"imagePlacement":[1,"image-placement"],"header":[1],"subheader":[1],"bodyImg":[1,"body-img"],"bodyImgAlt":[1,"body-img-alt"],"bodyDivider":[4,"body-divider"],"clickable":[4],"cardId":[1,"card-id"]}]]],["p-3b546070",[[2,"tds-datetime",{"type":[513],"value":[1537],"min":[1],"max":[1],"defaultValue":[1,"default-value"],"disabled":[4],"size":[1],"noMinWidth":[4,"no-min-width"],"modeVariant":[1,"mode-variant"],"name":[1],"state":[1],"autofocus":[4],"label":[1],"helper":[1],"focusInput":[32],"setValue":[64]},[[0,"focus","handleFocusIn"],[0,"focusout","handleFocusOut"]]]]],["p-ebbe0131",[[1,"tds-dropdown",{"name":[1],"disabled":[4],"helper":[1],"label":[1],"labelPosition":[1,"label-position"],"modeVariant":[1,"mode-variant"],"openDirection":[1,"open-direction"],"placeholder":[1],"size":[1],"error":[4],"multiselect":[4],"filter":[4],"normalizeText":[4,"normalize-text"],"noResultText":[1,"no-result-text"],"defaultValue":[1,"default-value"],"open":[32],"value":[32],"filterResult":[32],"filterFocus":[32],"reset":[64],"setValue":[64],"appendValue":[64],"removeValue":[64],"close":[64]},[[9,"mousedown","onAnyClick"],[0,"keydown","onKeyDown"]],{"open":["handleOpenState"]}]]],["p-16f0471f",[[1,"tds-folder-tabs",{"modeVariant":[1,"mode-variant"],"defaultSelectedIndex":[2,"default-selected-index"],"selectedIndex":[514,"selected-index"],"buttonWidth":[32],"showLeftScroll":[32],"showRightScroll":[32],"selectTab":[64]},null,{"selectedIndex":["handleSelectedIndexUpdate"]}]]],["p-412d8fd1",[[1,"tds-footer-group",{"titleText":[1,"title-text"],"open":[32]}]]],["p-e8957bd2",[[4,"tds-header-launcher-list"]]],["p-a31282be",[[1,"tds-header-launcher-list-item"]]],["p-bc7459fb",[[1,"tds-inline-tabs",{"modeVariant":[1,"mode-variant"],"defaultSelectedIndex":[2,"default-selected-index"],"selectedIndex":[514,"selected-index"],"showLeftScroll":[32],"showRightScroll":[32],"buttonWidth":[32],"selectTab":[64]},null,{"selectedIndex":["handleSelectedIndexUpdate"]}]]],["p-8a46d308",[[1,"tds-message",{"header":[1],"modeVariant":[1,"mode-variant"],"variant":[1],"noIcon":[4,"no-icon"],"minimal":[4]}]]],["p-7a8d7b95",[[1,"tds-modal",{"header":[1],"prevent":[4],"size":[1],"actionsPosition":[1,"actions-position"],"selector":[1],"referenceEl":[16],"show":[4],"isShown":[32],"showModal":[64],"closeModal":[64],"initializeModal":[64],"cleanupModal":[64]}]]],["p-5d756b0b",[[1,"tds-navigation-tabs",{"modeVariant":[1,"mode-variant"],"defaultSelectedIndex":[2,"default-selected-index"],"selectedIndex":[514,"selected-index"],"showLeftScroll":[32],"showRightScroll":[32],"selectTab":[64]},null,{"selectedIndex":["handleSelectedIndexUpdate"]}]]],["p-5880c2f3",[[6,"tds-popover-menu",{"selector":[1],"referenceEl":[16],"show":[4],"placement":[1],"offsetSkidding":[2,"offset-skidding"],"offsetDistance":[2,"offset-distance"],"fluidWidth":[4,"fluid-width"]}]]],["p-b6f8c65f",[[1,"tds-side-menu-close-button"]]],["p-f93bb760",[[1,"tds-side-menu-collapse-button",{"collapsed":[32]},[[16,"internalTdsSideMenuPropChange","collapseSideMenuEventHandler"]]]]],["p-10610955",[[0,"tds-slider",{"label":[1],"value":[1025],"min":[1],"max":[1],"ticks":[1],"showTickNumbers":[4,"show-tick-numbers"],"tooltip":[4],"disabled":[4],"readOnly":[4,"read-only"],"controls":[4],"input":[4],"step":[1],"name":[1],"thumbSize":[1,"thumb-size"],"snap":[4],"sliderId":[1,"slider-id"],"reset":[64]},[[0,"keydown","handleKeydown"],[9,"mouseup","handleRelease"],[9,"touchend","handleRelease"],[9,"mousemove","handleMove"],[9,"touchmove","handleMove"]],{"value":["handleValueUpdate"]}]]],["p-56bae450",[[1,"tds-step",{"index":[1],"state":[1],"hideLabels":[32],"size":[32],"orientation":[32],"labelPosition":[32]},[[16,"internalTdsPropsChange","handlePropsChange"]]]]],["p-c77d9eaf",[[1,"tds-table-body-row",{"selected":[516],"disabled":[516],"multiselect":[32],"mainCheckBoxStatus":[32],"verticalDividers":[32],"compactDesign":[32],"noMinWidth":[32],"tableId":[32]},[[16,"internalTdsTablePropChange","internalTdsPropChangeListener"]]]]],["p-d41ef4f8",[[1,"tds-table-footer",{"pagination":[516],"paginationValue":[1538,"pagination-value"],"pages":[514],"cols":[2],"columnsNumber":[32],"compactDesign":[32],"lastCorrectValue":[32],"tableId":[32]},[[16,"internalTdsTablePropChange","internalTdsPropChangeListener"]]]]],["p-d2e0442d",[[1,"tds-table-header",{"allSelected":[1540,"all-selected"],"selected":[1540],"disabled":[1540],"indeterminate":[4],"multiselect":[32],"expandableRows":[32],"mainCheckboxSelected":[32],"mainExpendSelected":[32],"verticalDividers":[32],"compactDesign":[32],"noMinWidth":[32],"whiteBackground":[32],"enableToolbarDesign":[32],"tableId":[32]},[[16,"internalTdsTablePropChange","internalTdsPropChangeListener"],[16,"internalTdsRowExpanded","internalTdsRowExpandedListener"]]]]],["p-453c8af8",[[1,"tds-table-toolbar",{"tableTitle":[513,"table-title"],"filter":[516],"verticalDividers":[32],"compactDesign":[32],"noMinWidth":[32],"whiteBackground":[32],"tableId":[32]},[[16,"internalTdsTablePropChange","internalTdsPropChangeListener"]]]]],["p-bb7703ac",[[6,"tds-text-field",{"type":[513],"labelPosition":[1,"label-position"],"label":[1],"min":[8],"max":[8],"helper":[1],"placeholder":[1],"value":[513],"disabled":[4],"readOnly":[4,"read-only"],"size":[1],"modeVariant":[1,"mode-variant"],"noMinWidth":[4,"no-min-width"],"name":[1],"state":[1],"maxLength":[2,"max-length"],"autofocus":[4],"focusInput":[32]}]]],["p-3b858820",[[2,"tds-textarea",{"label":[1],"name":[1],"helper":[1],"cols":[2],"rows":[2],"labelPosition":[1,"label-position"],"placeholder":[1],"value":[1],"disabled":[4],"readOnly":[4,"read-only"],"state":[1],"maxLength":[2,"max-length"],"modeVariant":[1,"mode-variant"],"autofocus":[4],"noMinWidth":[4,"no-min-width"],"focusInput":[32]}]]],["p-d9fec37c",[[1,"tds-toast",{"toastId":[1,"toast-id"],"header":[1],"subheader":[1],"variant":[1],"hidden":[516],"closable":[4],"toastRole":[1,"toast-role"],"hideToast":[64],"showToast":[64]}]]],["p-6c23bc53",[[6,"tds-tooltip",{"text":[1],"selector":[1],"referenceEl":[16],"mouseOverTooltip":[4,"mouse-over-tooltip"],"show":[1028],"placement":[1],"offsetSkidding":[2,"offset-skidding"],"offsetDistance":[2,"offset-distance"]}]]],["p-1ba2c5df",[[1,"tds-accordion",{"modeVariant":[1,"mode-variant"]}]]],["p-e3e19bd6",[[1,"tds-badge",{"value":[1],"hidden":[516],"size":[1],"shape":[32],"text":[32]},null,{"value":["watchProps"],"size":["watchProps"]}]]],["p-3f983f99",[[1,"tds-block",{"modeVariant":[1,"mode-variant"]}]]],["p-540a83e5",[[1,"tds-body-cell",{"cellValue":[520,"cell-value"],"cellKey":[520,"cell-key"],"disablePadding":[516,"disable-padding"],"textAlign":[513,"text-align"],"textAlignState":[32],"activeSorting":[32],"verticalDividers":[32],"compactDesign":[32],"noMinWidth":[32],"whiteBackground":[32],"tableId":[32]},[[16,"internalTdsPropChange","internalTdsPropChangeListener"],[16,"internalTdsHover","internalTdsHoverListener"],[16,"internalTdsTextAlign","internalTdsTextAlignListener"]]]]],["p-8ebc7052",[[1,"tds-breadcrumb",{"current":[4]}]]],["p-4a04433c",[[1,"tds-breadcrumbs"]]],["p-5b7d9ca4",[[6,"tds-button",{"text":[1],"type":[1],"variant":[1],"size":[1],"disabled":[4],"fullbleed":[4],"modeVariant":[1,"mode-variant"],"onlyIcon":[32]}]]],["p-0215d53c",[[6,"tds-chip",{"type":[1],"size":[1],"chipId":[1,"chip-id"],"checked":[1540],"name":[1],"value":[1]}]]],["p-ed8f1e2a",[[1,"tds-folder-tab",{"disabled":[4],"selected":[32],"tabWidth":[32],"setTabWidth":[64],"setSelected":[64]}]]],["p-c08c8bd8",[[1,"tds-footer",{"modeVariant":[1,"mode-variant"]}]]],["p-e10b2f73",[[1,"tds-footer-item"]]],["p-7076c719",[[4,"tds-header"]]],["p-052901a5",[[1,"tds-header-cell",{"cellKey":[513,"cell-key"],"cellValue":[513,"cell-value"],"customWidth":[513,"custom-width"],"sortable":[4],"textAlign":[513,"text-align"],"textAlignState":[32],"sortingDirection":[32],"sortedByMyKey":[32],"verticalDividers":[32],"compactDesign":[32],"noMinWidth":[32],"multiselect":[32],"enableToolbarDesign":[32],"tableId":[32],"expandableRows":[32]},[[16,"internalTdsPropChange","internalTdsPropChangeListener"],[16,"internalSortButtonClicked","updateOptionsContent"]]]]],["p-2c388774",[[1,"tds-header-dropdown-list-user",{"imgUrl":[1,"img-url"],"imgAlt":[1,"img-alt"],"header":[1],"subheader":[1]}]]],["p-1f39c53a",[[4,"tds-header-launcher-grid",{"headingElement":[32]}]]],["p-76a00407",[[1,"tds-header-launcher-grid-item"]]],["p-02417061",[[4,"tds-header-launcher-grid-title"]]],["p-ed56507b",[[4,"tds-header-launcher-list-title"]]],["p-652eb0ff",[[1,"tds-header-title"]]],["p-2f5db352",[[1,"tds-inline-tab",{"disabled":[4],"selected":[32],"setSelected":[64]}]]],["p-747811d6",[[1,"tds-link",{"disabled":[4],"underline":[4]}]]],["p-7e0116af",[[1,"tds-navigation-tab",{"disabled":[4],"selected":[32],"setSelected":[64]}]]],["p-b03790b1",[[1,"tds-popover-menu-item",{"disabled":[4]}]]],["p-cc16393b",[[6,"tds-radio-button",{"name":[1],"value":[1],"radioId":[1,"radio-id"],"checked":[516],"required":[4],"disabled":[4]}]]],["p-2ffae2d1",[[1,"tds-side-menu",{"open":[4],"persistent":[4],"collapsed":[1028],"isUpperSlotEmpty":[32],"isCollapsed":[32],"initialCollapsedState":[32]},[[16,"internalTdsCollapse","collapsedSideMenuEventHandler"]],{"collapsed":["onCollapsedChange"]}]]],["p-d26257ca",[[1,"tds-side-menu-dropdown-list",{"collapsed":[32]},[[16,"internalTdsSideMenuPropChange","collapsedSideMenuEventHandler"]]]]],["p-5a273781",[[1,"tds-side-menu-dropdown-list-item",{"selected":[4],"dropdownHasIcon":[32],"collapsed":[32]},[[16,"internalTdsSideMenuPropChange","collapseSideMenuEventHandler"]]]]],["p-a0812bb2",[[1,"tds-side-menu-overlay"]]],["p-f226f11e",[[0,"tds-spinner",{"size":[1],"variant":[1]}]]],["p-fb2968f2",[[1,"tds-stepper",{"orientation":[1],"labelPosition":[1,"label-position"],"size":[1],"hideLabels":[4,"hide-labels"],"stepperId":[1,"stepper-id"]},null,{"orientation":["handleDirectionChange"],"labelPosition":["handleLabelPositionChange"],"size":["handleSizeChange"],"hideLabels":["handleHideLabelsChange"]}]]],["p-7172fd77",[[1,"tds-table",{"verticalDividers":[516,"vertical-dividers"],"compactDesign":[516,"compact-design"],"noMinWidth":[516,"no-min-width"],"multiselect":[516],"expandableRows":[516,"expandable-rows"],"responsive":[516],"modeVariant":[513,"mode-variant"],"tableId":[1,"table-id"],"getSelectedRows":[64]},null,{"multiselect":["multiselectChanged"],"expandableRows":["enableExpandableRowsChanged"],"compactDesign":["compactDesignChanged"],"verticalDividers":["verticalDividersChanged"],"noMinWidth":["noMinWidthChanged"],"modeVariant":["modeVariantChanged"]}]]],["p-1e2ef3d6",[[4,"tds-table-body",{"multiselect":[32],"enablePaginationTableBody":[32],"expandableRows":[32],"multiselectArray":[32],"multiselectArrayJSON":[32],"mainCheckboxStatus":[32],"columnsNumber":[32],"tableId":[32]},[[16,"internalTdsTablePropChange","internalTdsPropChangeListener"],[16,"internalTdsRowChange","bodyCheckboxListener"]]]]],["p-2598dc8a",[[1,"tds-table-body-row-expandable",{"colSpan":[2,"col-span"],"isExpanded":[32],"tableId":[32],"columnsNumber":[32],"verticalDividers":[32],"compactDesign":[32],"noMinWidth":[32],"modeVariant":[32]},[[16,"internalTdsTablePropChange","internalTdsPropChangeListener"]]]]],["p-e6a51915",[[6,"tds-toggle",{"checked":[516],"required":[4],"size":[1],"name":[1],"headline":[1],"disabled":[4],"toggleId":[1,"toggle-id"],"toggle":[64]}]]],["p-8bb8d06a",[[1,"tds-header-launcher-button",{"active":[4]}]]],["p-52b9333c",[[1,"tds-divider",{"orientation":[1]}]]],["p-7a3fbb5b",[[1,"tds-header-dropdown-list",{"size":[513],"headingElement":[32]}]]],["p-a1151348",[[1,"tds-header-dropdown-list-item",{"selected":[4],"size":[513]}]]],["p-e38b51a2",[[6,"tds-popover-canvas",{"selector":[1],"referenceEl":[16],"show":[4],"placement":[1],"offsetSkidding":[2,"offset-skidding"],"offsetDistance":[2,"offset-distance"],"modifiers":[16]}]]],["p-87bfc032",[[1,"tds-side-menu-user-image",{"src":[1],"alt":[1]}],[1,"tds-side-menu-user-label",{"heading":[1],"subheading":[1]}]]],["p-3dd15e1e",[[1,"tds-side-menu-item",{"selected":[4],"active":[4],"collapsed":[32]},[[16,"internalTdsSideMenuPropChange","collapseSideMenuEventHandler"]]]]],["p-8a90d1ae",[[6,"tds-checkbox",{"name":[1],"checkboxId":[1,"checkbox-id"],"disabled":[4],"required":[4],"checked":[1540],"indeterminate":[1028],"value":[1],"toggleCheckbox":[64]},null,{"indeterminate":["handleIndeterminateState"]}]]],["p-669f7646",[[6,"tds-popover-core",{"selector":[1],"referenceEl":[16],"show":[4],"placement":[1],"offsetSkidding":[2,"offset-skidding"],"offsetDistance":[2,"offset-distance"],"modifiers":[16],"trigger":[1],"autoHide":[4,"auto-hide"],"renderedShowValue":[32],"popperInstance":[32],"target":[32],"isShown":[32]},[[8,"click","onAnyClick"]],{"show":["onShowChange"],"referenceEl":["onReferenceElChanged"],"trigger":["onTriggerChanged"]}]]],["p-033fbea5",[[1,"tds-header-item",{"active":[4],"selected":[4]}],[1,"tds-core-header-item"]]],["p-b263f884",[[1,"tds-icon",{"name":[513],"size":[513],"svgTitle":[1,"svg-title"],"svgDescription":[1,"svg-description"],"icons_object":[32],"arrayOfIcons":[32]}]]]]'),e))));
|
|
@@ -29,14 +29,21 @@ export declare class TdsModal {
|
|
|
29
29
|
/** Emits when the Modal is closed. */
|
|
30
30
|
tdsClose: EventEmitter<any>;
|
|
31
31
|
connectedCallback(): void;
|
|
32
|
+
componentWillLoad(): void;
|
|
33
|
+
disconnectedCallback(): void;
|
|
34
|
+
/** Initializes or re-initializes the modal, setting up event listeners. */
|
|
35
|
+
initializeModal(): Promise<void>;
|
|
36
|
+
/** Cleans up event listeners and other resources. */
|
|
37
|
+
cleanupModal(): Promise<void>;
|
|
32
38
|
handleClose: (event: any) => void;
|
|
33
39
|
handleShow: () => void;
|
|
34
40
|
/** Checks if click on Modal is on overlay, if so it closes the Modal if prevent is not true. */
|
|
35
41
|
handleOverlayClick: (event: PointerEvent) => void;
|
|
36
|
-
|
|
37
|
-
initializeReferenceElement: (referenceEl: HTMLElement) => void;
|
|
42
|
+
handleReferenceElementClick: (event: any) => void;
|
|
38
43
|
/** Check if there is a referenceElement or selector and adds event listener to them if so. */
|
|
39
44
|
setShowButton: () => void;
|
|
45
|
+
/** Adds an event listener to the reference element that shows/closes the Modal. */
|
|
46
|
+
initializeReferenceElement: (referenceEl: HTMLElement) => void;
|
|
40
47
|
/** Adds an event listener to the dismiss buttons that closes the Modal. */
|
|
41
48
|
setDismissButtons(): void;
|
|
42
49
|
render(): any;
|
|
@@ -46,17 +46,19 @@ export declare class TdsSlider {
|
|
|
46
46
|
private useSnapping;
|
|
47
47
|
private supposedValueSlot;
|
|
48
48
|
private resizeObserverAdded;
|
|
49
|
-
/** Sends the value of the slider when changed. */
|
|
49
|
+
/** Sends the value of the slider when changed. Fires after mouse up and touch end events. */
|
|
50
50
|
tdsChange: EventEmitter<{
|
|
51
51
|
value: string;
|
|
52
52
|
}>;
|
|
53
|
+
/** Sends the value of the slider while moving the thumb. Fires on mouse move and touch move events. */
|
|
54
|
+
tdsInput: EventEmitter<{
|
|
55
|
+
value: string;
|
|
56
|
+
}>;
|
|
53
57
|
/** Public method to re-initialise the slider if some configuration props are changed */
|
|
54
58
|
reset(): Promise<void>;
|
|
55
59
|
handleKeydown(event: any): void;
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
handleMouseMove(event: any): void;
|
|
59
|
-
handleTouchMove(event: any): void;
|
|
60
|
+
handleRelease(event: MouseEvent | TouchEvent): void;
|
|
61
|
+
handleMove(event: MouseEvent | TouchEvent): void;
|
|
60
62
|
handleValueUpdate(newValue: string): void;
|
|
61
63
|
private updateSupposedValueSlot;
|
|
62
64
|
private thumbCore;
|
|
@@ -9,6 +9,8 @@ export declare class TdsTableBodyCell {
|
|
|
9
9
|
cellKey: any;
|
|
10
10
|
/** Disables internal padding. Useful when passing other components to cell. */
|
|
11
11
|
disablePadding: boolean;
|
|
12
|
+
/** Setting for text align, default value "left". Other accepted values are "left", "start", "right", "end" or "center". */
|
|
13
|
+
textAlign: 'left' | 'start' | 'right' | 'end' | 'center';
|
|
12
14
|
textAlignState: string;
|
|
13
15
|
activeSorting: boolean;
|
|
14
16
|
verticalDividers: boolean;
|
|
@@ -12,8 +12,8 @@ export declare class TdsTableHeaderCell {
|
|
|
12
12
|
customWidth?: string;
|
|
13
13
|
/** Enables sorting on that column */
|
|
14
14
|
sortable: boolean;
|
|
15
|
-
/** Setting for text align, default is left. Other accepted values are "right" or "end". */
|
|
16
|
-
textAlign
|
|
15
|
+
/** Setting for text align, default is "left". Other accepted values are "left", "start", "right" or "end". */
|
|
16
|
+
textAlign: 'left' | 'start' | 'right' | 'end' | 'center';
|
|
17
17
|
textAlignState: string;
|
|
18
18
|
sortingDirection: 'asc' | 'desc';
|
|
19
19
|
sortedByMyKey: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
/**
|
|
3
|
-
* @slot prefix - Slot for the prefix in the
|
|
4
|
-
* @slot suffix - Slot for the suffix in the
|
|
3
|
+
* @slot prefix - Slot for the prefix in the component.
|
|
4
|
+
* @slot suffix - Slot for the suffix in the component. Suffix is hidden when the input is in readonly state.
|
|
5
5
|
*/
|
|
6
6
|
export declare class TdsTextField {
|
|
7
7
|
host: HTMLElement;
|
|
@@ -25,7 +25,7 @@ export declare class TdsTextField {
|
|
|
25
25
|
value: string;
|
|
26
26
|
/** Set input in disabled state */
|
|
27
27
|
disabled: boolean;
|
|
28
|
-
/** Set input in readonly state */
|
|
28
|
+
/** Set input in readonly state. Hides the suffix slot if true. */
|
|
29
29
|
readOnly: boolean;
|
|
30
30
|
/** Size of the input */
|
|
31
31
|
size: 'sm' | 'md' | 'lg';
|
|
@@ -16,6 +16,8 @@ export declare class TdsToast {
|
|
|
16
16
|
variant: 'information' | 'error' | 'warning' | 'success';
|
|
17
17
|
/** Hides the Toast. */
|
|
18
18
|
hidden: boolean;
|
|
19
|
+
/** Enables the close button. */
|
|
20
|
+
closable: boolean;
|
|
19
21
|
/** ARIA role for the Toast. */
|
|
20
22
|
toastRole: 'alert' | 'log' | 'status';
|
|
21
23
|
/** Hides the Toast. */
|
|
@@ -115,6 +115,10 @@ export namespace Components {
|
|
|
115
115
|
* Disables internal padding. Useful when passing other components to cell.
|
|
116
116
|
*/
|
|
117
117
|
"disablePadding": boolean;
|
|
118
|
+
/**
|
|
119
|
+
* Setting for text align, default value "left". Other accepted values are "left", "start", "right", "end" or "center".
|
|
120
|
+
*/
|
|
121
|
+
"textAlign": 'left' | 'start' | 'right' | 'end' | 'center';
|
|
118
122
|
}
|
|
119
123
|
interface TdsBreadcrumb {
|
|
120
124
|
/**
|
|
@@ -477,9 +481,9 @@ export namespace Components {
|
|
|
477
481
|
*/
|
|
478
482
|
"sortable": boolean;
|
|
479
483
|
/**
|
|
480
|
-
* Setting for text align, default is left. Other accepted values are "right" or "end".
|
|
484
|
+
* Setting for text align, default is "left". Other accepted values are "left", "start", "right" or "end".
|
|
481
485
|
*/
|
|
482
|
-
"textAlign"
|
|
486
|
+
"textAlign": 'left' | 'start' | 'right' | 'end' | 'center';
|
|
483
487
|
}
|
|
484
488
|
interface TdsHeaderDropdown {
|
|
485
489
|
/**
|
|
@@ -643,6 +647,10 @@ export namespace Components {
|
|
|
643
647
|
* Changes the position behaviour of the actions slot.
|
|
644
648
|
*/
|
|
645
649
|
"actionsPosition": 'sticky' | 'static';
|
|
650
|
+
/**
|
|
651
|
+
* Cleans up event listeners and other resources.
|
|
652
|
+
*/
|
|
653
|
+
"cleanupModal": () => Promise<void>;
|
|
646
654
|
/**
|
|
647
655
|
* Closes the Modal.
|
|
648
656
|
*/
|
|
@@ -651,6 +659,10 @@ export namespace Components {
|
|
|
651
659
|
* Sets the header of the Modal.
|
|
652
660
|
*/
|
|
653
661
|
"header": string;
|
|
662
|
+
/**
|
|
663
|
+
* Initializes or re-initializes the modal, setting up event listeners.
|
|
664
|
+
*/
|
|
665
|
+
"initializeModal": () => Promise<void>;
|
|
654
666
|
/**
|
|
655
667
|
* Disables closing Modal on clicking on overlay area.
|
|
656
668
|
*/
|
|
@@ -1185,7 +1197,7 @@ export namespace Components {
|
|
|
1185
1197
|
*/
|
|
1186
1198
|
"placeholder": string;
|
|
1187
1199
|
/**
|
|
1188
|
-
* Set input in readonly state
|
|
1200
|
+
* Set input in readonly state. Hides the suffix slot if true.
|
|
1189
1201
|
*/
|
|
1190
1202
|
"readOnly": boolean;
|
|
1191
1203
|
/**
|
|
@@ -1268,6 +1280,10 @@ export namespace Components {
|
|
|
1268
1280
|
"value": string;
|
|
1269
1281
|
}
|
|
1270
1282
|
interface TdsToast {
|
|
1283
|
+
/**
|
|
1284
|
+
* Enables the close button.
|
|
1285
|
+
*/
|
|
1286
|
+
"closable": boolean;
|
|
1271
1287
|
/**
|
|
1272
1288
|
* Header text for the component.
|
|
1273
1289
|
*/
|
|
@@ -2121,6 +2137,9 @@ declare global {
|
|
|
2121
2137
|
interface HTMLTdsSliderElementEventMap {
|
|
2122
2138
|
"tdsChange": {
|
|
2123
2139
|
value: string;
|
|
2140
|
+
};
|
|
2141
|
+
"tdsInput": {
|
|
2142
|
+
value: string;
|
|
2124
2143
|
};
|
|
2125
2144
|
}
|
|
2126
2145
|
interface HTMLTdsSliderElement extends Components.TdsSlider, HTMLStencilElement {
|
|
@@ -2556,6 +2575,10 @@ declare namespace LocalJSX {
|
|
|
2556
2575
|
* Disables internal padding. Useful when passing other components to cell.
|
|
2557
2576
|
*/
|
|
2558
2577
|
"disablePadding"?: boolean;
|
|
2578
|
+
/**
|
|
2579
|
+
* Setting for text align, default value "left". Other accepted values are "left", "start", "right", "end" or "center".
|
|
2580
|
+
*/
|
|
2581
|
+
"textAlign"?: 'left' | 'start' | 'right' | 'end' | 'center';
|
|
2559
2582
|
}
|
|
2560
2583
|
interface TdsBreadcrumb {
|
|
2561
2584
|
/**
|
|
@@ -2984,9 +3007,9 @@ declare namespace LocalJSX {
|
|
|
2984
3007
|
*/
|
|
2985
3008
|
"sortable"?: boolean;
|
|
2986
3009
|
/**
|
|
2987
|
-
* Setting for text align, default is left. Other accepted values are "right" or "end".
|
|
3010
|
+
* Setting for text align, default is "left". Other accepted values are "left", "start", "right" or "end".
|
|
2988
3011
|
*/
|
|
2989
|
-
"textAlign"?:
|
|
3012
|
+
"textAlign"?: 'left' | 'start' | 'right' | 'end' | 'center';
|
|
2990
3013
|
}
|
|
2991
3014
|
interface TdsHeaderDropdown {
|
|
2992
3015
|
/**
|
|
@@ -3471,10 +3494,16 @@ declare namespace LocalJSX {
|
|
|
3471
3494
|
*/
|
|
3472
3495
|
"name"?: string;
|
|
3473
3496
|
/**
|
|
3474
|
-
* Sends the value of the slider when changed.
|
|
3497
|
+
* Sends the value of the slider when changed. Fires after mouse up and touch end events.
|
|
3475
3498
|
*/
|
|
3476
3499
|
"onTdsChange"?: (event: TdsSliderCustomEvent<{
|
|
3477
3500
|
value: string;
|
|
3501
|
+
}>) => void;
|
|
3502
|
+
/**
|
|
3503
|
+
* Sends the value of the slider while moving the thumb. Fires on mouse move and touch move events.
|
|
3504
|
+
*/
|
|
3505
|
+
"onTdsInput"?: (event: TdsSliderCustomEvent<{
|
|
3506
|
+
value: string;
|
|
3478
3507
|
}>) => void;
|
|
3479
3508
|
/**
|
|
3480
3509
|
* Sets the read only state for the whole component
|
|
@@ -3749,7 +3778,7 @@ declare namespace LocalJSX {
|
|
|
3749
3778
|
*/
|
|
3750
3779
|
"placeholder"?: string;
|
|
3751
3780
|
/**
|
|
3752
|
-
* Set input in readonly state
|
|
3781
|
+
* Set input in readonly state. Hides the suffix slot if true.
|
|
3753
3782
|
*/
|
|
3754
3783
|
"readOnly"?: boolean;
|
|
3755
3784
|
/**
|
|
@@ -3848,6 +3877,10 @@ declare namespace LocalJSX {
|
|
|
3848
3877
|
"value"?: string;
|
|
3849
3878
|
}
|
|
3850
3879
|
interface TdsToast {
|
|
3880
|
+
/**
|
|
3881
|
+
* Enables the close button.
|
|
3882
|
+
*/
|
|
3883
|
+
"closable"?: boolean;
|
|
3851
3884
|
/**
|
|
3852
3885
|
* Header text for the component.
|
|
3853
3886
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scania/tegel",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0-ng-form-beta.0",
|
|
4
4
|
"description": "Tegel Design System",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
"build": "stencil build && stencil build --docs",
|
|
37
37
|
"_comment": "Due to stencil bug with types creation, we need to run build two times!",
|
|
38
38
|
"start": "stencil build --dev --watch --serve",
|
|
39
|
+
"start:dev": "stencil build --dev --watch --serve",
|
|
39
40
|
"test": "node docker-test-runner.js",
|
|
40
41
|
"update-snapshots": "docker run --rm --network host -v $(pwd):/work/ -w /work/ mcr.microsoft.com/playwright:v1.39.0-jammy /bin/bash -c 'npm install && npx playwright test --update-snapshots && exit'",
|
|
41
42
|
"test.watch": "stencil test --spec --e2e --watchAll",
|
|
@@ -49,7 +50,8 @@
|
|
|
49
50
|
},
|
|
50
51
|
"dependencies": {
|
|
51
52
|
"@popperjs/core": "^2.11.8",
|
|
52
|
-
"@stencil/core": "^4.12.
|
|
53
|
+
"@stencil/core": "^4.12.6",
|
|
54
|
+
"date-fns": "^2.30.0",
|
|
53
55
|
"prettier": "^2.7.1"
|
|
54
56
|
},
|
|
55
57
|
"devDependencies": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as d,c as t,h as o,H as s,g as a}from"./p-6bb7fa2c.js";import{h as i}from"./p-ae110fc2.js";const e=class{constructor(o){d(this,o),this.tdsClose=t(this,"tdsClose",7),this.handleClose=d=>{this.tdsClose.emit(d).defaultPrevented||(this.isShown=!1)},this.handleShow=()=>{this.isShown=!0},this.handleOverlayClick=d=>{const t=d.composedPath()[0];("tds-modal-close"===t.classList[0]||"tds-modal-backdrop"===t.classList[0]&&!1===this.prevent)&&this.handleClose(d)},this.initializeReferenceElement=d=>{d&&d.addEventListener("click",(d=>{this.isShown?this.handleClose(d):this.handleShow()}))},this.setShowButton=()=>{var d;if(this.selector||this.referenceEl){const t=null!==(d=this.referenceEl)&&void 0!==d?d:document.querySelector(this.selector);t&&this.initializeReferenceElement(t)}},this.header=void 0,this.prevent=!1,this.size="md",this.actionsPosition="static",this.selector=void 0,this.referenceEl=void 0,this.show=void 0,this.isShown=!1}async showModal(){this.isShown=!0}async closeModal(){this.isShown=!1}connectedCallback(){void 0!==this.show&&(this.isShown=this.show),this.setDismissButtons(),this.setShowButton(),this.header&&i("header",this.host)&&console.warn("Tegel Modal component: Using both header prop and header slot might break modal's design. Please use just one of them. ")}setDismissButtons(){this.host.querySelectorAll("[data-dismiss-modal]").forEach((d=>{d.addEventListener("click",(d=>{this.handleClose(d)}))}))}render(){const d=i("header",this.host),t=i("actions",this.host);return o(s,{key:"d3e0d4d6611134126de12944c238e96acce8dc58",class:this.isShown?"show":"hide",onClick:d=>this.handleOverlayClick(d)},o("div",{key:"c3b155f003be30978deefd302a0db9f20c319367",class:"tds-modal-backdrop"}),o("div",{key:"4606f040cd26d18b6cea7a1ef3af036b917a622c",class:`tds-modal tds-modal__actions-${this.actionsPosition} tds-modal-${this.size}`},o("div",{key:"5f281f96937c5459ef6de75a240769f95a607739",class:"header"},this.header&&o("div",{class:"header"},this.header),d&&o("slot",{name:"header"}),o("button",{key:"d3cd87c242e5974886591241a8895780a0ee89a2",class:"tds-modal-close","aria-label":"close",onClick:d=>this.handleClose(d)},o("tds-icon",{key:"bc9cc1be58288d800e36e66b53033f1991322cce",name:"cross",size:"20px"}))),o("div",{key:"d30c37f23034e17dd4bb6a1a824f06147ba7982d",class:"body"},o("slot",{key:"51e0253c5082db0f65504f45446a0aec33b4b1a2",name:"body"})),t&&o("slot",{name:"actions"})))}get host(){return a(this)}};e.style=":root,.tds-mode-light{--tds-modal-backdrop:rgba(0 0 0 / 40%);--tds-modal-background:var(--tds-white);--tds-modal-text:var(--tds-grey-958);--tds-modal-icon:var(--tds-black);--tds-modal-icon-native:url(\"data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.40338 2.34308C3.11048 2.05019 2.63561 2.05019 2.34272 2.34308C2.04982 2.63598 2.04982 3.11085 2.34272 3.40374L6.93897 8L2.34283 12.5961C2.04994 12.889 2.04994 13.3639 2.34283 13.6568C2.63572 13.9497 3.1106 13.9497 3.40349 13.6568L7.99963 9.06066L12.5958 13.6568C12.8887 13.9497 13.3635 13.9497 13.6564 13.6568C13.9493 13.3639 13.9493 12.889 13.6564 12.5961L9.06029 8L13.6565 3.40376C13.9494 3.11086 13.9494 2.63599 13.6565 2.3431C13.3636 2.0502 12.8888 2.0502 12.5959 2.3431L7.99963 6.93934L3.40338 2.34308Z' fill='black'/%3E%3C/svg%3E%0A\");--tds-modal-scrollbar:var(--tds-grey-300);--tds-modal-scrollbar-track:var(--tds-grey-300);--tds-modal-scrollbar-thumb:var(--tds-grey-500)}.tds-mode-dark{--tds-modal-backdrop:rgba(0 0 0 / 40%);--tds-modal-background:var(--tds-grey-900);--tds-modal-text:var(--tds-grey-50);--tds-modal-icon:var(--tds-white);--tds-modal-icon-native:url(\"data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.40338 2.34308C3.11048 2.05019 2.63561 2.05019 2.34272 2.34308C2.04982 2.63598 2.04982 3.11085 2.34272 3.40374L6.93897 8L2.34283 12.5961C2.04994 12.889 2.04994 13.3639 2.34283 13.6568C2.63572 13.9497 3.1106 13.9497 3.40349 13.6568L7.99963 9.06066L12.5958 13.6568C12.8887 13.9497 13.3635 13.9497 13.6564 13.6568C13.9493 13.3639 13.9493 12.889 13.6564 12.5961L9.06029 8L13.6565 3.40376C13.9494 3.11086 13.9494 2.63599 13.6565 2.3431C13.3636 2.0502 12.8888 2.0502 12.5959 2.3431L7.99963 6.93934L3.40338 2.34308Z' fill='white'/%3E%3C/svg%3E%0A\");--tds-modal-scrollbar:var(--tds-grey-300);--tds-modal-scrollbar-track:var(--tds-grey-300);--tds-modal-scrollbar-thumb:var(--tds-grey-500)}.tds-modal{box-sizing:border-box;background-color:var(--tds-modal-background);margin:auto;position:relative;border-radius:4px;padding:16px;max-height:85vh;overflow-y:auto;pointer-events:auto;}.tds-modal *{box-sizing:border-box}.tds-modal::-webkit-scrollbar{width:5px;background-color:var(--tds-grey-300);border-radius:0 1em 1em 0}.tds-modal::-webkit-scrollbar-track{background-color:var(--tds-grey-300);border-radius:0 1em 1em 0}.tds-modal::-webkit-scrollbar-thumb{background-color:var(--tds-grey-500);border-radius:0 1em 1em 0}.tds-modal__actions-sticky{overflow:hidden}.tds-modal__actions-sticky .body{font:var(--tds-body-01);letter-spacing:var(--tds-body-01-ls);padding-bottom:96px;margin:0 -16px 0 0;max-height:calc(85vh - 36px);overflow-y:auto}.tds-modal__actions-sticky slot[name=actions]{position:absolute;bottom:-1px;left:0;right:0;background-color:var(--tds-modal-background);padding:var(--tds-spacing-element-16);display:flex;gap:16px}.tds-modal__actions-static slot[name=actions]{background-color:var(--tds-modal-background);display:flex;gap:16px}@media (min-width: 320px){.tds-modal-xs{width:100%}.tds-modal-sm{width:100%}.tds-modal-md{width:100%}.tds-modal-lg{width:100%}}@media (min-width: 672px){.tds-modal-xs{width:50%}.tds-modal-sm{width:62.5%}.tds-modal-md{width:75%}.tds-modal-lg{width:100%}}@media (min-width: 1056px){.tds-modal-xs{width:31.25%}.tds-modal-sm{width:43.75%}.tds-modal-md{width:62.5%}.tds-modal-lg{width:75%}}@media (min-width: 1312px){.tds-modal-xs{width:31.25%}.tds-modal-sm{width:37.5%}.tds-modal-md{width:62.5%}.tds-modal-lg{width:75%}}@media (min-width: 1584px){.tds-modal-xs{width:25%}.tds-modal-sm{width:37.5%}.tds-modal-md{width:50%}.tds-modal-lg{width:75%}}@media (max-width: 320px){.tds-modal-md,.tds-modal-lg,.tds-modal-sm{height:100%}.tds-modal-md slot[name=actions]::slotted(*),.tds-modal-lg slot[name=actions]::slotted(*),.tds-modal-sm slot[name=actions]::slotted(*){display:flex}}.header{display:flex;padding-bottom:var(--tds-spacing-element-8);position:sticky;top:0;background-color:var(--tds-modal-background);z-index:1}.header::before{content:\" \";position:absolute;height:16px;top:-16px;width:100%;background-color:var(--tds-modal-background)}.header,slot[name=header]::slotted(*){color:var(--tds-modal-text);font:var(--tds-headline-05) !important;letter-spacing:var(--tds-headline-05-ls) !important;margin:0;flex:1}.body{color:var(--tds-modal-text);font:var(--tds-body-01);letter-spacing:var(--tds-body-01-ls);padding-bottom:40px;overflow-y:visible;padding-right:16px;}.body::-webkit-scrollbar{width:5px;background-color:var(--tds-grey-300)}.body::-webkit-scrollbar-track{background-color:var(--tds-grey-300)}.body::-webkit-scrollbar-thumb{background-color:var(--tds-grey-500)}@media (min-width: 1056px){.body{padding-right:64px}}.tds-modal-backdrop{box-sizing:border-box;position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--tds-modal-backdrop);pointer-events:auto}.tds-modal-backdrop *{box-sizing:border-box}button.tds-modal-close{margin:0 0 auto auto;background-color:transparent;border:0;padding:0;appearance:unset}.tds-modal-close{display:inline-block;height:auto;color:var(--tds-modal-icon);cursor:pointer}.tds-modal-close:focus{outline:2px solid var(--tds-blue-400);outline-offset:-2px}@media (min-width: 320px){.tds-modal-close{margin-left:var(--tds-spacing-element-16)}}@media (min-width: 1056px){.tds-modal-close{margin-left:var(--tds-spacing-element-48)}}.tds-modal-close-btn{display:inline-block;height:auto;background-repeat:no-repeat;cursor:pointer}@media (min-width: 320px){.tds-modal-close-btn{margin-left:var(--tds-spacing-element-16)}}@media (min-width: 1056px){.tds-modal-close-btn{margin-left:var(--tds-spacing-element-48)}}.tds-modal-close-btn svg{fill:var(--tds-modal-icon)}.tds-modal-overflow{overflow:hidden}:host{box-sizing:border-box;position:fixed;top:0;right:0;bottom:0;left:0;padding:0 16px;z-index:700;pointer-events:none}:host *{box-sizing:border-box}:host .tds-modal-close{border:none;background-color:transparent}:host .tds-modal-close-btn{border:none;background-color:transparent}@media (max-width: 320px){:host{padding:0}}:host.show{display:flex}:host.hide{display:none}:host(.show){display:flex}:host(.hide){display:none}";export{e as tds_modal}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as s,H as e,g as i}from"./p-6bb7fa2c.js";const d=["verticalDividers","compactDesign","noMinWidth"],o=class{constructor(s){t(this,s),this.cellValue=void 0,this.cellKey=void 0,this.disablePadding=!1,this.textAlignState=void 0,this.activeSorting=!1,this.verticalDividers=!1,this.compactDesign=!1,this.noMinWidth=!1,this.whiteBackground=!1,this.tableId=""}internalTdsPropChangeListener(t){this.tableId===t.detail.tableId&&t.detail.changed.filter((t=>d.includes(t))).forEach((s=>{if(void 0===this[s])throw new Error(`Table prop is not supported: ${s}`);this[s]=t.detail[s]}))}internalTdsHoverListener(t){const{tableId:s,key:e}=t.detail;s===this.tableId&&(this.activeSorting=this.cellKey===e)}internalTdsTextAlignListener(t){const[s,e,i]=t.detail;this.tableId===s&&this.cellKey===e&&(this.textAlignState=i)}connectedCallback(){this.tableEl=this.host.closest("tds-table"),this.tableId=this.tableEl.tableId}componentWillLoad(){d.forEach((t=>{this[t]=this.tableEl[t]}))}render(){return s(e,{key:"70e15157b5cdb058c0bb1a57bc45ba2a63a7cf1e",class:{"tds-table__body-cell":!0,"tds-table__body-cell--hover":this.activeSorting,"tds-table__compact":this.compactDesign,"tds-table--divider":this.verticalDividers,"tds-table--no-min-width":this.noMinWidth,"tds-table__body-cell--no-padding":this.disablePadding},style:{textAlign:this.textAlignState}},this.cellValue,s("slot",{key:"2f006a87a5c0ed1b7212ab96913b40683df4c8a6"}))}get host(){return i(this)}};o.style=":host(.tds-table__body-cell){box-sizing:border-box;font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);display:table-cell;box-sizing:border-box;color:var(--tds-table-color);padding:var(--tds-spacing-element-16);min-width:192px;vertical-align:top;background-color:transparent;transition:background-color 200ms ease}:host(.tds-table__body-cell) *{box-sizing:border-box}:host(.tds-table__body-cell--no-padding){padding:0}:host(.tds-table__body-cell--hover){background-color:var(--tds-table-body-cell-background-hover)}:host(.tds-table__compact){padding:var(--tds-spacing-element-8) var(--tds-spacing-element-16)}:host(.tds-table--divider){border-right:1px solid var(--tds-table-divider)}:host(.tds-table--divider:last-of-type){border-right:none}:host(.tds-table--no-min-width){min-width:unset}";export{o as tds_body_cell}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as o,H as e,g as a}from"./p-6bb7fa2c.js";import{g as r}from"./p-11648030.js";import{h as i}from"./p-ae110fc2.js";const n=class{constructor(o){t(this,o),this.tdsClose=s(this,"tdsClose",7),this.getIconName=()=>{switch(this.variant){case"information":default:return"info";case"error":return"error";case"warning":return"warning";case"success":return"tick"}},this.handleClose=()=>{this.tdsClose.emit({toastId:this.toastId}).defaultPrevented||(this.hidden=!0)},this.handleShow=()=>{this.tdsClose.emit({toastId:this.toastId}).defaultPrevented||(this.hidden=!1)},this.toastId=r(),this.header=void 0,this.subheader=void 0,this.variant="information",this.hidden=!1,this.toastRole="alert"}async hideToast(){this.hidden=!0}async showToast(){this.hidden=!1}render(){const t=i("header",this.host),s=i("subheader",this.host),a=i("actions",this.host);return o(e,{key:"ef3bf94989a3966dbceae7266b9defd5f3e94b97",toastRole:this.toastRole,"aria-describedby":this.host.getAttribute("aria-describedby"),class:{hide:this.hidden,show:!this.hidden}},o("div",{key:"037b0d3313fbb663c147c195aef001fa6c0c0b5f",class:`\n wrapper\n ${this.variant}`},o("tds-icon",{key:"d69688a9dff7ec78c7bdc3923b5efb793034497e",name:this.getIconName(),size:"20px"}),o("div",{key:"cee5e70c6af0b0fb2f51131a5f000ef849456c6f",class:"content"},o("div",{key:"18855f70d0db55bd8aea5c7c82cc4a159cfb10a0",class:"header-subheader"},this.header&&o("div",{class:"header"},this.header),t&&o("slot",{name:"header"}),this.subheader&&o("div",{class:"subheader"},this.subheader),s&&o("slot",{name:"subheader"})),a&&o("div",{class:"toast-bottom "+(s||this.subheader?"subheader":"no-subheader")},o("slot",{name:"actions"}))),o("button",{key:"e95faf92ad8cfc5262aafbf1a5ace77a96f87e20",onClick:()=>{this.handleClose()},class:"close"},o("tds-icon",{key:"e1ce21f0ef7fb6862f560f153c515296c83d4f57",name:"cross",size:"20px"}))))}get host(){return a(this)}};n.style=":host(.hide){display:none;visibility:hidden}:host{z-index:800}:host .wrapper{display:flex;width:348px;background-color:var(--tds-toast-background-color);border-radius:4px}:host .wrapper.information{border-left:4px solid var(--tds-information)}:host .wrapper.information tds-icon{color:var(--tds-information)}:host .wrapper.success{border-left:4px solid var(--tds-positive)}:host .wrapper.success tds-icon{color:var(--tds-positive)}:host .wrapper.error{border-left:4px solid var(--tds-negative)}:host .wrapper.error tds-icon{color:var(--tds-negative)}:host .wrapper.warning{border-left:4px solid var(--tds-warning)}:host .wrapper.warning tds-icon{color:var(--tds-warning)}:host .wrapper button.close{height:20px;width:20px;display:flex;align-items:center;justify-content:center;margin:14px 14px 0 0;border:none;background:transparent}:host .wrapper button.close:hover{cursor:pointer}:host .wrapper button.close:focus{outline:2px solid var(--tds-blue-400);outline-offset:-2px}:host .wrapper button.close tds-icon{color:var(--tds-toast-dissmiss-color);padding:0}:host tds-icon{padding:14px 0 0 12px}:host .content{padding:16px 0 16px 10px;display:flex;flex-direction:column;flex:1}:host .content .header-subheader{display:flex;flex-direction:column;gap:4px}:host .content .header,:host .content slot[name=header]::slotted(*){font:var(--tds-headline-07) !important;letter-spacing:var(--tds-headline-07-ls) !important;color:var(--tds-toast-headline-color)}:host .content .subheader,:host .content slot[name=subheader]::slotted(*){color:var(--tds-toast-subheadline-color);font:var(--tds-detail-02) !important;letter-spacing:var(--tds-detail-02-ls) !important;max-width:252px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host .content .subheader.no-link slot::slotted(*),:host .content slot[name=subheader]::slotted(*).no-link slot::slotted(*){padding-bottom:0}:host .content .toast-bottom{margin-top:12px}:host slot[name=actions]::slotted(*){color:var(--tds-toast-link-color)}:host .tds-mode-variant-primary{--tds-toast-background:var(--tds-toast-background-primary)}:host .tds-mode-variant-secondary{--tds-toast-background:var(--tds-toast-background-secondary)}";export{n as tds_toast}
|
package/dist/tegel/p-6bb7fa2c.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
let e,t,n,l=!1,o=!1,s=!1,i=!1,c=!1;const r="slot-fb{display:contents}slot-fb[hidden]{display:none}",f="http://www.w3.org/1999/xlink",u={},a=e=>"object"==(e=typeof e)||"function"===e;function d(e){var t,n,l;return null!==(l=null===(n=null===(t=e.head)||void 0===t?void 0:t.querySelector('meta[name="csp-nonce"]'))||void 0===n?void 0:n.getAttribute("content"))&&void 0!==l?l:void 0}const v=(e,t,...n)=>{let l=null,o=null,s=null,i=!1,c=!1;const r=[],f=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?f(l):null!=l&&"boolean"!=typeof l&&((i="function"!=typeof e&&!a(l))&&(l+=""),i&&c?r[r.length-1].t+=l:r.push(i?p(null,l):l),c=i)};if(f(n),t){t.key&&(o=t.key),t.name&&(s=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,r,$);const u=p(e,null);return u.l=t,r.length>0&&(u.o=r),u.i=o,u.u=s,u},p=(e,t)=>({v:0,p:e,t,$:null,o:null,l:null,i:null,u:null}),y={},$={forEach:(e,t)=>e.map(h).forEach(t),map:(e,t)=>e.map(h).map(t).map(m)},h=e=>({vattrs:e.l,vchildren:e.o,vkey:e.i,vname:e.u,vtag:e.p,vtext:e.t}),m=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),v(e.vtag,t,...e.vchildren||[])}const t=p(e.vtag,e.vtext);return t.l=e.vattrs,t.o=e.vchildren,t.i=e.vkey,t.u=e.vname,t},b=e=>ae(e).$hostElement$,w=(e,t,n)=>{const l=b(e);return{emit:e=>g(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},g=(e,t,n)=>{const l=ge.ce(t,n);return e.dispatchEvent(l),l},k=new WeakMap,j=e=>"sc-"+e.h,S=(e,t,n,l,o,s)=>{if(n!==l){let i=pe(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=C(n),s=C(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if("ref"===t)l&&l(e);else if(i||"o"!==t[0]||"n"!==t[1]){const r=a(l);if((i||r&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}let u=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(t=c,u=!0),null==l||!1===l?!1===l&&""!==e.getAttribute(t)||(u?e.removeAttributeNS(f,t):e.removeAttribute(t)):(!i||4&s||o)&&!r&&(l=!0===l?"":l,u?e.setAttributeNS(f,t,l):e.setAttribute(t,l))}else if(t="-"===t[2]?t.slice(3):pe(be,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(x);t=t.replace(M,""),n&&ge.rel(e,t,n,o),l&&ge.ael(e,t,l,o)}}},O=/\s/,C=e=>e?e.split(O):[],x="Capture",M=RegExp(x+"$"),R=(e,t,n,l)=>{const o=11===t.$.nodeType&&t.$.host?t.$.host:t.$,s=e&&e.l||u,i=t.l||u;for(l in s)l in i||S(o,l,s[l],void 0,n,t.v);for(l in i)S(o,l,s[l],i[l],n,t.v)},P=(o,c,r,f)=>{const u=c.o[r];let a,d,v,p=0;if(l||(s=!0,"slot"===u.p&&(e&&f.classList.add(e+"-s"),u.v|=u.o?2:1)),null!==u.t)a=u.$=we.createTextNode(u.t);else if(1&u.v)a=u.$=we.createTextNode("");else{if(i||(i="svg"===u.p),a=u.$=we.createElementNS(i?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&u.v?"slot-fb":u.p),i&&"foreignObject"===u.p&&(i=!1),R(null,u,i),null!=e&&a["s-si"]!==e&&a.classList.add(a["s-si"]=e),u.o)for(p=0;p<u.o.length;++p)d=P(o,u,p,a),d&&a.appendChild(d);"svg"===u.p?i=!1:"foreignObject"===a.tagName&&(i=!0)}return a["s-hn"]=n,3&u.v&&(a["s-sr"]=!0,a["s-cr"]=t,a["s-sn"]=u.u||"",v=o&&o.o&&o.o[r],v&&v.p===u.p&&o.$&&E(o.$,!1)),a},E=(e,t)=>{ge.v|=1;const l=e.childNodes;for(let e=l.length-1;e>=0;e--){const o=l[e];o["s-hn"]!==n&&o["s-ol"]&&(W(o).insertBefore(o,N(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,s=!0),t&&E(o,t)}ge.v&=-2},T=(e,t,l,o,s,i)=>{let c,r=e["s-cr"]&&e["s-cr"].parentNode||e;for(r.shadowRoot&&r.tagName===n&&(r=r.shadowRoot);s<=i;++s)o[s]&&(c=P(null,l,s,e),c&&(o[s].$=c,r.insertBefore(c,N(t))))},F=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.$;V(t),e&&(o=!0,e["s-ol"]?e["s-ol"].remove():E(e,!0),e.remove())}}},L=(e,t,n=!1)=>e.p===t.p&&("slot"===e.p?e.u===t.u:!!n||e.i===t.i),N=e=>e&&e["s-ol"]||e,W=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,A=(e,t,n=!1)=>{const l=t.$=e.$,o=e.o,s=t.o,c=t.p,r=t.t;let f;null===r?(i="svg"===c||"foreignObject"!==c&&i,"slot"===c||R(e,t,i),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,i,c=0,r=0,f=0,u=0,a=t.length-1,d=t[0],v=t[a],p=l.length-1,y=l[0],$=l[p];for(;c<=a&&r<=p;)if(null==d)d=t[++c];else if(null==v)v=t[--a];else if(null==y)y=l[++r];else if(null==$)$=l[--p];else if(L(d,y,o))A(d,y,o),d=t[++c],y=l[++r];else if(L(v,$,o))A(v,$,o),v=t[--a],$=l[--p];else if(L(d,$,o))"slot"!==d.p&&"slot"!==$.p||E(d.$.parentNode,!1),A(d,$,o),e.insertBefore(d.$,v.$.nextSibling),d=t[++c],$=l[--p];else if(L(v,y,o))"slot"!==d.p&&"slot"!==$.p||E(v.$.parentNode,!1),A(v,y,o),e.insertBefore(v.$,d.$),v=t[--a],y=l[++r];else{for(f=-1,u=c;u<=a;++u)if(t[u]&&null!==t[u].i&&t[u].i===y.i){f=u;break}f>=0?(i=t[f],i.p!==y.p?s=P(t&&t[r],n,f,e):(A(i,y,o),t[f]=void 0,s=i.$),y=l[++r]):(s=P(t&&t[r],n,r,e),y=l[++r]),s&&W(d.$).insertBefore(s,N(d.$))}c>a?T(e,null==l[p+1]?null:l[p+1].$,n,l,r,p):r>p&&F(t,c,a)})(l,o,t,s,n):null!==s?(null!==e.t&&(l.textContent=""),T(l,null,t,s,0,s.length-1)):null!==o&&F(o,0,o.length-1),i&&"svg"===c&&(i=!1)):(f=l["s-cr"])?f.parentNode.textContent=r:e.t!==r&&(l.data=r)},D=e=>{const t=e.childNodes;for(const e of t)if(1===e.nodeType){if(e["s-sr"]){const n=e["s-sn"];e.hidden=!1;for(const l of t)if(l!==e)if(l["s-hn"]!==e["s-hn"]||""!==n){if(1===l.nodeType&&(n===l.getAttribute("slot")||n===l["s-sn"])){e.hidden=!0;break}}else if(1===l.nodeType||3===l.nodeType&&""!==l.textContent.trim()){e.hidden=!0;break}}D(e)}},U=[],H=e=>{let t,n,l;for(const s of e.childNodes){if(s["s-sr"]&&(t=s["s-cr"])&&t.parentNode){n=t.parentNode.childNodes;const e=s["s-sn"];for(l=n.length-1;l>=0;l--)if(t=n[l],!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==s["s-hn"])if(q(t,e)){let n=U.find((e=>e.m===t));o=!0,t["s-sn"]=t["s-sn"]||e,n?(n.m["s-sh"]=s["s-hn"],n.k=s):(t["s-sh"]=s["s-hn"],U.push({k:s,m:t})),t["s-sr"]&&U.map((e=>{q(e.m,t["s-sn"])&&(n=U.find((e=>e.m===t)),n&&!e.k&&(e.k=n.k))}))}else U.some((e=>e.m===t))||U.push({m:t})}1===s.nodeType&&H(s)}},q=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,V=e=>{e.l&&e.l.ref&&e.l.ref(null),e.o&&e.o.map(V)},_=(e,t)=>{t&&!e.j&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.j=t)))},z=(e,t)=>{if(e.v|=16,!(4&e.v))return _(e,e.S),Pe((()=>B(e,t)));e.v|=512},B=(e,t)=>{const n=e.O;let l;return t&&(e.v|=256,e.C&&(e.C.map((([e,t])=>Y(n,e,t))),e.C=void 0),l=Y(n,"componentWillLoad")),l=G(l,(()=>Y(n,"componentWillRender"))),G(l,(()=>J(e,n,t)))},G=(e,t)=>I(e)?e.then(t):t(),I=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,J=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.M,n=e.$hostElement$,l=t.v,o=((e,t)=>{var n;const l=j(t),o=me.get(l);if(e=11===e.nodeType?e:we,o)if("string"==typeof o){let s,i=k.get(e=e.head||e);if(i||k.set(e,i=new Set),!i.has(l)){{s=we.createElement("style"),s.innerHTML=o;const t=null!==(n=ge.R)&&void 0!==n?n:d(we);null!=t&&s.setAttribute("nonce",t),e.insertBefore(s,e.querySelector("link"))}4&t.v&&(s.innerHTML+=r),i&&i.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"),2&l&&n.classList.add(o+"-s"))})(e);K(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!==(l=o["s-p"])&&void 0!==l?l:[],n=()=>Q(e);0===t.length?n():(Promise.all(t).then(n),e.v|=4,t.length=0)}},K=(i,c,r,f)=>{try{c=c.render(),i.v&=-17,i.v|=2,((i,c,r=!1)=>{var f,u,a,d;const $=i.$hostElement$,h=i.M,m=i.P||p(null,null),b=(e=>e&&e.p===y)(c)?c:v(null,null,c);if(n=$.tagName,h.T&&(b.l=b.l||{},h.T.map((([e,t])=>b.l[t]=$[e]))),r&&b.l)for(const e of Object.keys(b.l))$.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(b.l[e]=$[e]);if(b.p=null,b.v|=4,i.P=b,b.$=m.$=$.shadowRoot||$,e=$["s-sc"],t=$["s-cr"],l=0!=(1&h.v),o=!1,A(m,b,r),ge.v|=1,s){H(b.$);for(const e of U){const t=e.m;if(!t["s-ol"]){const e=we.createTextNode("");e["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=e,t)}}for(const e of U){const t=e.m,n=e.k;if(n){const e=n.parentNode;let l=n.nextSibling;{let n=null===(f=t["s-ol"])||void 0===f?void 0:f.previousSibling;for(;n;){let o=null!==(u=n["s-nr"])&&void 0!==u?u:null;if(o&&o["s-sn"]===t["s-sn"]&&e===o.parentNode&&(o=o.nextSibling,!o||!o["s-nr"])){l=o;break}n=n.previousSibling}}(!l&&e!==t.parentNode||t.nextSibling!==l)&&t!==l&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),e.insertBefore(t,l),1===t.nodeType&&(t.hidden=null!==(a=t["s-ih"])&&void 0!==a&&a))}else 1===t.nodeType&&(r&&(t["s-ih"]=null!==(d=t.hidden)&&void 0!==d&&d),t.hidden=!0)}}o&&D(b.$),ge.v&=-2,U.length=0,t=void 0})(i,c,f)}catch(e){ye(e,i.$hostElement$)}return null},Q=e=>{const t=e.$hostElement$,n=e.O,l=e.S;Y(n,"componentDidRender"),64&e.v?Y(n,"componentDidUpdate"):(e.v|=64,Z(t),Y(n,"componentDidLoad"),e.F(t),l||X()),e.L(t),e.j&&(e.j(),e.j=void 0),512&e.v&&Re((()=>z(e,!1))),e.v&=-517},X=()=>{Z(we.documentElement),Re((()=>g(be,"appload",{detail:{namespace:"tegel"}})))},Y=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){ye(e)}},Z=e=>e.classList.add("hydrated"),ee=(e,t,n)=>{var l;const o=e.prototype;if(t.N){e.watchers&&(t.W=e.watchers);const s=Object.entries(t.N);if(s.map((([e,[l]])=>{31&l||2&n&&32&l?Object.defineProperty(o,e,{get(){return((e,t)=>ae(this).A.get(t))(0,e)},set(n){((e,t,n,l)=>{const o=ae(e),s=o.$hostElement$,i=o.A.get(t),c=o.v,r=o.O;if(n=((e,t)=>null==e||a(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(n,l.N[t][0]),(!(8&c)||void 0===i)&&n!==i&&(!Number.isNaN(i)||!Number.isNaN(n))&&(o.A.set(t,n),r)){if(l.W&&128&c){const e=l.W[t];e&&e.map((e=>{try{r[e](n,i,t)}catch(e){ye(e,s)}}))}2==(18&c)&&z(o,!1)}})(this,e,n,t)},configurable:!0,enumerable:!0}):1&n&&64&l&&Object.defineProperty(o,e,{value(...t){var n;const l=ae(this);return null===(n=null==l?void 0:l.D)||void 0===n?void 0:n.then((()=>{var n;return null===(n=l.O)||void 0===n?void 0:n[e](...t)}))}})})),1&n){const n=new Map;o.attributeChangedCallback=function(e,l,s){ge.jmp((()=>{var i;const c=n.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(o.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const n=ae(this),o=null==n?void 0:n.v;if(o&&!(8&o)&&128&o&&s!==l){const o=n.O,c=null===(i=t.W)||void 0===i?void 0:i[e];null==c||c.forEach((t=>{null!=o[t]&&o[t].call(o,s,l,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!==(l=t.W)&&void 0!==l?l:{}),...s.filter((([e,t])=>15&t[0])).map((([e,l])=>{var o;const s=l[1]||e;return n.set(s,e),512&l[0]&&(null===(o=t.T)||void 0===o||o.push([e,s])),s}))]))}}return e},te=e=>{Y(e,"connectedCallback")},ne=e=>{Y(e,"disconnectedCallback")},le=(e,t={})=>{var n;const l=[],o=t.exclude||[],s=be.customElements,i=we.head,c=i.querySelector("meta[charset]"),f=we.createElement("style"),u=[];let a,v=!0;Object.assign(ge,t),ge.U=new URL(t.resourcesUrl||"./",we.baseURI).href;let p=!1;if(e.map((e=>{e[1].map((n=>{var i;const c={v:n[0],h:n[1],N:n[2],H:n[3]};4&c.v&&(p=!0),c.N=n[2],c.H=n[3],c.T=[],c.W=null!==(i=n[4])&&void 0!==i?i:{};const r=t.transformTagName?t.transformTagName(c.h):c.h,f=class extends HTMLElement{constructor(e){super(e),ve(e=this,c),1&c.v&&e.attachShadow({mode:"open",delegatesFocus:!!(16&c.v)})}connectedCallback(){a&&(clearTimeout(a),a=null),v?u.push(this):ge.jmp((()=>(e=>{if(0==(1&ge.v)){const t=ae(e),n=t.M,l=()=>{};if(1&t.v)se(e,t,n.H),(null==t?void 0:t.O)?te(t.O):(null==t?void 0:t.q)&&t.q.then((()=>te(t.O)));else{t.v|=1,12&n.v&&(e=>{const t=e["s-cr"]=we.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)})(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){_(t,t.S=n);break}}n.N&&Object.entries(n.N).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(0==(32&t.v)){t.v|=32;{if(l=he(n),l.then){const e=()=>{};l=await l,e()}l.isProxied||(n.W=l.watchers,ee(l,n,2),l.isProxied=!0);const e=()=>{};t.v|=8;try{new l(t)}catch(e){ye(e)}t.v&=-9,t.v|=128,e(),te(t.O)}if(l.style){let e=l.style;const t=j(n);if(!me.has(t)){const l=()=>{};((e,t,n)=>{let l=me.get(e);je&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,me.set(e,l)})(t,e,!!(1&n.v)),l()}}}const o=t.S,s=()=>z(t,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()})(0,t,n)}l()}})(this)))}disconnectedCallback(){ge.jmp((()=>(async()=>{if(0==(1&ge.v)){const e=ae(this);e.V&&(e.V.map((e=>e())),e.V=void 0),(null==e?void 0:e.O)?ne(e.O):(null==e?void 0:e.q)&&e.q.then((()=>ne(e.O)))}})()))}componentOnReady(){return ae(this).q}};c._=e[0],o.includes(r)||s.get(r)||(l.push(r),s.define(r,ee(f,c,1)))}))})),p&&(f.innerHTML+=r),f.innerHTML+=l+"{visibility:hidden}.hydrated{visibility:inherit}",f.innerHTML.length){f.setAttribute("data-styles","");const e=null!==(n=ge.R)&&void 0!==n?n:d(we);null!=e&&f.setAttribute("nonce",e),i.insertBefore(f,c?c.nextSibling:i.firstChild)}v=!1,u.length?u.map((e=>e.connectedCallback())):ge.jmp((()=>a=setTimeout(X,30)))},oe=(e,t)=>t,se=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=ce(e,n),i=ie(t,o),c=re(n);ge.ael(s,l,i,c),(t.V=t.V||[]).push((()=>ge.rel(s,l,i,c)))}))},ie=(e,t)=>n=>{try{256&e.v?e.O[t](n):(e.C=e.C||[]).push([t,n])}catch(e){ye(e)}},ce=(e,t)=>4&t?we:8&t?be:16&t?we.body:e,re=e=>({passive:0!=(1&e),capture:0!=(2&e)}),fe=e=>ge.R=e,ue=new WeakMap,ae=e=>ue.get(e),de=(e,t)=>ue.set(t.O=e,t),ve=(e,t)=>{const n={v:0,$hostElement$:e,M:t,A:new Map};return n.D=new Promise((e=>n.L=e)),n.q=new Promise((e=>n.F=e)),e["s-p"]=[],e["s-rc"]=[],se(e,n,t.H),ue.set(e,n)},pe=(e,t)=>t in e,ye=(e,t)=>(0,console.error)(e,t),$e=new Map,he=e=>{const t=e.h.replace(/-/g,"_"),n=e._,l=$e.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>($e.set(n,e),e[t])),ye)
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},me=new Map,be="undefined"!=typeof window?window:{},we=be.document||{head:{}},ge={v:0,U:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},ke=e=>Promise.resolve(e),je=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),Se=[],Oe=[],Ce=(e,t)=>n=>{e.push(n),c||(c=!0,t&&4&ge.v?Re(Me):ge.raf(Me))},xe=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){ye(e)}e.length=0},Me=()=>{xe(Se),xe(Oe),(c=Se.length>0)&&ge.raf(Me)},Re=e=>ke().then(e),Pe=Ce(Oe,!0);export{oe as F,y as H,le as b,w as c,b as g,v as h,ke as p,de as r,fe as s}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as e,h as s,H as a,g as l}from"./p-6bb7fa2c.js";const d=["multiselect","expandableRows","compactDesign","noMinWidth","verticalDividers"],o=class{constructor(a){t(this,a),this.tdsSort=e(this,"tdsSort",7),this.internalSortButtonClicked=e(this,"internalSortButtonClicked",6),this.internalTdsTextAlign=e(this,"internalTdsTextAlign",6),this.internalTdsHover=e(this,"internalTdsHover",6),this.sortButtonClick=()=>{this.sortingDirection="asc"!==this.sortingDirection?"asc":"desc",this.sortedByMyKey=!0,this.tdsSort.emit({tableId:this.tableId,columnKey:this.cellKey,sortingDirection:this.sortingDirection}),this.internalSortButtonClicked.emit({tableId:this.tableId,key:this.cellKey})},this.headerCellContent=()=>this.sortable?s("button",{class:"tds-table__header-button",onClick:()=>this.sortButtonClick()},s("span",{class:"tds-table__header-button-text",style:{textAlign:this.textAlignState}},this.cellValue,s("slot",null)),null===this.sortingDirection&&s("svg",{class:"tds-table__header-button-icon",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 15"},s("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.45 13.67V4.62a.5.5 0 0 1 1 0v9.05h-1Z"}),s("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.07 10.28a.5.5 0 0 1 .7.08l2.1 2.66a.1.1 0 0 0 .15 0l2.09-2.66a.5.5 0 1 1 .78.62l-2.08 2.66a1.1 1.1 0 0 1-1.73 0l-2.1-2.66a.5.5 0 0 1 .1-.7ZM3.55.4v9.04a.5.5 0 1 1-1 0V.39h1Z"}),s("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.93 3.78a.5.5 0 0 1-.7-.08l-2.1-2.66a.1.1 0 0 0-.15 0L.89 3.7a.5.5 0 0 1-.78-.62L2.19.42a1.1 1.1 0 0 1 1.73 0l2.1 2.66a.5.5 0 0 1-.1.7Z"})),this.sortingDirection&&s("svg",{class:"tds-table__header-button-icon "+("desc"===this.sortingDirection?"tds-table__header-button-icon--rotate":""),fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},s("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17 2.974a1 1 0 0 0-2 0v24.3l-9.312-9.312a1 1 0 0 0-1.414 1.414l9.887 9.888a2.6 2.6 0 0 0 3.677 0l9.888-9.888a1 1 0 0 0-1.414-1.414L17 27.274v-24.3Z"}))):s("p",{class:"tds-table__header-text",style:{textAlign:this.textAlignState}},this.cellValue,s("slot",null)),this.onHeadCellHover=t=>{this.internalTdsHover.emit({tableId:this.tableId,key:t})},this.cellKey=void 0,this.cellValue=void 0,this.customWidth=void 0,this.sortable=!1,this.textAlign=void 0,this.textAlignState=void 0,this.sortingDirection="asc",this.sortedByMyKey=!1,this.verticalDividers=!1,this.compactDesign=!1,this.noMinWidth=!1,this.multiselect=!1,this.enableToolbarDesign=!1,this.tableId="",this.expandableRows=!1}internalTdsPropChangeListener(t){this.tableId===t.detail.tableId&&t.detail.changed.filter((t=>d.includes(t))).forEach((e=>{if(void 0===this[e])throw new Error(`Table prop is not supported: ${e}`);this[e]=t.detail[e]}))}updateOptionsContent(t){const{tableId:e,key:s}=t.detail;this.tableId===e&&this.cellKey!==s&&(this.sortedByMyKey=!1,setTimeout((()=>{this.sortingDirection=null}),200))}connectedCallback(){this.tableEl=this.host.closest("tds-table"),this.tableId=this.tableEl.tableId}componentWillLoad(){d.forEach((t=>{this[t]=this.tableEl[t]}))}componentWillRender(){this.textAlignState="right"===this.textAlign||"end"===this.textAlign?"right":"left",this.internalTdsTextAlign.emit([this.tableId,this.cellKey,this.textAlignState]),this.enableToolbarDesign=this.host.closest("tds-table").getElementsByTagName("tds-table-toolbar").length>=1}render(){return s(a,{key:"d09c42078df2774f9bae1e9e2906abdf9e52f5ac",class:{"tds-table__header-cell":!0,"tds-table__header-cell--sortable":this.sortable,"tds-table__header-cell--is-sorted":this.sortedByMyKey,"tds-table__header-cell--custom-width":""!==this.customWidth,"tds-table__header-cell--right-align":"right"===this.textAlignState,"tds-table--compact":this.compactDesign,"tds-table--divider":this.verticalDividers,"tds-table--no-min-width":this.noMinWidth,"tds-table--extra-column":this.multiselect||this.expandableRows,"tds-table--toolbar-available":this.enableToolbarDesign},style:{width:this.customWidth},onMouseOver:()=>this.onHeadCellHover(this.cellKey),onMouseLeave:()=>this.onHeadCellHover("")},this.headerCellContent())}get host(){return l(this)}};o.style=":host(.tds-table__header-cell){box-sizing:border-box;font:var(--tds-headline-07);letter-spacing:var(--tds-headline-07-ls);display:table-cell;text-align:left;color:var(--tds-table-color);background-color:var(--tds-table-header-background);border-bottom:1px solid var(--tds-table-header-background-hover);padding:0;height:48px;min-width:192px;box-sizing:border-box;vertical-align:middle;overflow:hidden;transition:background-color 200ms ease}:host(.tds-table__header-cell) *{box-sizing:border-box}:host(.tds-table__header-cell) .tds-table__header-text{padding:0 16px;margin:0}:host(.tds-table__header-cell--sortable) .tds-table__header-button{display:flex;align-items:center;gap:8px;justify-content:start;flex-direction:row;width:100%;height:100%;padding:0 16px;background-color:transparent;border:none;cursor:pointer;transition:background-color 200ms ease}:host(.tds-table__header-cell--sortable) .tds-table__header-button:focus{outline:2px solid var(--tds-table-header-btn-focus);outline-offset:-2px}:host(.tds-table__header-cell--sortable) .tds-table__header-button:focus .tds-table__header-button-icon{opacity:1}:host(.tds-table__header-cell--sortable) .tds-table__header-button .tds-table__header-button-text{font:var(--tds-headline-07);letter-spacing:var(--tds-headline-07-ls);text-align:left;color:var(--tds-table-header-btn-color)}:host(.tds-table__header-cell--sortable) .tds-table__header-button .tds-table__header-button-icon{flex:0 0 16px;height:16px;width:16px;opacity:0;transform-origin:center;transition:opacity 200ms ease-in, transform 200ms ease;fill:var(--tds-table-color)}:host(.tds-table__header-cell--sortable) .tds-table__header-button:hover .tds-table__header-button-icon{opacity:1}:host(.tds-table__header-cell--right-align) .tds-table__header-button{text-align:right;justify-content:end;flex-direction:row-reverse}:host(.tds-table__header-cell--is-sorted) .tds-table__header-button{background-color:var(--tds-table-header-btn-background)}:host(.tds-table__header-cell--is-sorted) .tds-table__header-button:hover{background-color:var(--tds-table-header-btn-background-hover)}:host(.tds-table__header-cell--is-sorted) .tds-table__header-button .tds-table__header-button-icon{opacity:1}:host(.tds-table__header-cell--is-sorted) .tds-table__header-button .tds-table__header-button-icon--rotate{transform:rotate(180deg)}:host(.tds-table--compact){height:33px}:host(.tds-table--divider){border-right:1px solid var(--tds-table-divider)}:host(.tds-table--divider:last-of-type){border-right:none}:host(.tds-table--no-min-width){min-width:unset}:host(.tds-table__header-cell:first-of-type){border-top-left-radius:4px}:host(.tds-table__header-cell:last-of-type){border-top-right-radius:4px}:host(.tds-table--extra-column:first-of-type){border-top-left-radius:0}:host(.tds-table--toolbar-available){border-radius:0}:host(.tds-table--extra-column.tds-table--toolbar-available){border-radius:0}:host(.tds-table__header-cell.tds-table--toolbar-available:first-of-type){border-top-left-radius:0}:host(.tds-table__header-cell.tds-table--toolbar-available:last-of-type){border-top-right-radius:0}";export{o as tds_header_cell}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as e,h as d,g as i}from"./p-6bb7fa2c.js";import{h as l}from"./p-ae110fc2.js";const s=class{constructor(d){t(this,d),this.tdsChange=e(this,"tdsChange",6),this.tdsInput=e(this,"tdsInput",6),this.tdsFocus=e(this,"tdsFocus",6),this.tdsBlur=e(this,"tdsBlur",6),this.type="text",this.labelPosition="no-label",this.label="",this.min=void 0,this.max=void 0,this.helper=void 0,this.placeholder="",this.value="",this.disabled=!1,this.readOnly=!1,this.size="lg",this.modeVariant=null,this.noMinWidth=!1,this.name="",this.state="default",this.maxLength=void 0,this.autofocus=!1,this.focusInput=void 0}handleChange(t){this.tdsChange.emit(t)}handleInput(t){this.tdsInput.emit(t),this.value=t.target.value}handleFocus(t){this.textInput.focus(),this.focusInput=!0,this.tdsFocus.emit(t)}handleBlur(t){this.focusInput=!1,this.tdsBlur.emit(t)}render(){var t;const e=l("prefix",this.host),i=l("suffix",this.host);return d("div",{key:"10f02c5fd7d8a5a340c193436e92686164f65277",class:`\n ${this.noMinWidth?"form-text-field-nomin":""}\n ${this.focusInput&&!this.disabled?"form-text-field text-field-focus":" form-text-field"}\n ${this.value?"text-field-data":""}\n ${"inside"===this.labelPosition&&"sm"!==this.size?"text-field-container-label-inside":""}\n ${this.disabled?"form-text-field-disabled":""}\n ${this.readOnly?"form-text-field-readonly":""}\n ${null!==this.modeVariant?`tds-mode-variant-${this.modeVariant}`:""}\n ${"md"===this.size?"form-text-field-md":""}\n ${"sm"===this.size?"form-text-field-sm":""}\n ${"error"===this.state||"success"===this.state?`form-text-field-${this.state}`:""}\n `},"outside"===this.labelPosition&&d("div",{class:"text-field-label-outside"},d("div",null,this.label)),d("div",{key:"e0f9dda3a9efb72f61e419fba8889d91f859674b",onClick:()=>this.textInput.focus(),class:"text-field-container"},e&&d("div",{class:`text-field-slot-wrap-prefix text-field-${this.state}`},d("slot",{name:"prefix"})),d("div",{key:"3edab2913fcfd3a6d9bde99648afb2a62ee391ea",class:"text-field-input-container"},d("input",{key:"1abb6c38e8cfcb4557d957b055087c46a30f035b",ref:t=>this.textInput=t,class:`text-field-input text-field-input-${this.size}`,type:this.type,disabled:this.disabled,readonly:this.readOnly,placeholder:this.placeholder,value:this.value,autofocus:this.autofocus,maxlength:this.maxLength,name:this.name,min:this.min,max:this.max,onInput:t=>this.handleInput(t),onChange:t=>this.handleChange(t),onFocus:t=>{this.readOnly||this.handleFocus(t)},onBlur:t=>{this.readOnly||this.handleBlur(t)}}),"inside"===this.labelPosition&&"sm"!==this.size&&d("label",{class:"text-field-label-inside"},this.label)),d("div",{key:"021c1a06221e989477fa554ad223238d714bd28d",class:"text-field-bar"}),i&&d("div",{class:`text-field-slot-wrap-suffix text-field-${this.state}`},d("slot",{name:"suffix"})),d("span",{key:"9246b6f25d37f5961906ac610bb0471bfb2f4ac0",class:"text-field-icon__readonly"},d("tds-icon",{key:"2b35b53f5e62493d0391d43a5a104c7da44680c5",name:"edit_inactive",size:"20px"})),d("span",{key:"b53594f386def37d0411214a94ddc77d8966a89d",class:"text-field-icon__readonly-label"},"This field is non-editable")),(this.helper||this.maxLength>0)&&d("div",{class:"text-field-helper"},"error"===this.state&&d("div",{class:"text-field-helper-error-state"},d("tds-icon",{name:"error",size:"16px"}),this.helper),"error"!==this.state&&this.helper,this.maxLength>0&&d("div",{class:"text-field-textcounter"},null===this.value?0:null===(t=this.value)||void 0===t?void 0:t.length,d("span",{class:"text-field-textcounter-divider"}," / "),this.maxLength)))}get host(){return i(this)}};s.style='.text-field-input-lg.sc-tds-text-field{all:unset;border-radius:4px 4px 0 0;width:100%;box-sizing:border-box;margin:0;border:none;outline:none;height:100%;color:var(--tds-text-field-color);background-color:var(--tds-text-field-background);font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);padding:var(--tds-spacing-element-20) var(--tds-spacing-element-16)}.text-field-input-lg.sc-tds-text-field::placeholder{color:var(--tds-text-field-color)}.text-field-input-lg.sc-tds-text-field:focus::placeholder{color:var(--tds-text-field-placeholder-focus-color)}.text-field-input-lg.sc-tds-text-field:disabled{cursor:not-allowed;background-color:var(--tds-text-field-background-disabled);color:var(--tds-text-field-color-disabled)}.text-field-input-lg.sc-tds-text-field:disabled::placeholder{color:var(--tds-text-field-placeholder-disabled)}.text-field-input-lg.sc-tds-text-field:disabled~.text-field-label-inside.sc-tds-text-field{color:var(--tds-text-field-label-disabled)}.text-field-input-md.sc-tds-text-field{all:unset;border-radius:4px 4px 0 0;width:100%;box-sizing:border-box;margin:0;border:none;outline:none;height:100%;color:var(--tds-text-field-color);background-color:var(--tds-text-field-background);font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);padding:var(--tds-spacing-element-16)}.text-field-input-md.sc-tds-text-field::placeholder{color:var(--tds-text-field-color)}.text-field-input-md.sc-tds-text-field:focus::placeholder{color:var(--tds-text-field-placeholder-focus-color)}.text-field-input-md.sc-tds-text-field:disabled{cursor:not-allowed;background-color:var(--tds-text-field-background-disabled);color:var(--tds-text-field-color-disabled)}.text-field-input-md.sc-tds-text-field:disabled::placeholder{color:var(--tds-text-field-placeholder-disabled)}.text-field-input-md.sc-tds-text-field:disabled~.text-field-label-inside.sc-tds-text-field{color:var(--tds-text-field-label-disabled)}.text-field-input-sm.sc-tds-text-field{all:unset;border-radius:4px 4px 0 0;width:100%;box-sizing:border-box;margin:0;border:none;outline:none;height:100%;color:var(--tds-text-field-color);background-color:var(--tds-text-field-background);font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);padding:var(--tds-spacing-element-16)}.text-field-input-sm.sc-tds-text-field::placeholder{color:var(--tds-text-field-color)}.text-field-input-sm.sc-tds-text-field:focus::placeholder{color:var(--tds-text-field-placeholder-focus-color)}.text-field-input-sm.sc-tds-text-field:disabled{cursor:not-allowed;background-color:var(--tds-text-field-background-disabled);color:var(--tds-text-field-color-disabled)}.text-field-input-sm.sc-tds-text-field:disabled::placeholder{color:var(--tds-text-field-placeholder-disabled)}.text-field-input-sm.sc-tds-text-field:disabled~.text-field-label-inside.sc-tds-text-field{color:var(--tds-text-field-label-disabled)}.text-field-container.sc-tds-text-field{border-radius:4px 4px 0 0;display:flex;position:relative;height:56px;box-sizing:border-box;background-color:var(--tds-text-field-background);border-bottom:1px solid var(--tds-text-field-border-bottom);transition:border-bottom-color 200ms ease}.text-field-container.sc-tds-text-field:hover{border-bottom-color:var(--tds-text-field-border-bottom-hover)}.form-text-field-md.sc-tds-text-field .text-field-container.sc-tds-text-field{height:48px}.form-text-field-sm.sc-tds-text-field .text-field-container.sc-tds-text-field{height:40px}.text-field-input-container.sc-tds-text-field{position:relative;width:100%}.text-field-data.sc-tds-text-field,.text-field-input.sc-tds-text-field{color:var(--tds-text-field-data-color)}.text-field-label-outside.sc-tds-text-field>*.sc-tds-text-field{font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls);display:block;margin-bottom:var(--tds-spacing-element-8);color:var(--tds-text-field-label-color)}.text-field-label-inside.sc-tds-text-field{font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);position:absolute;pointer-events:none;color:var(--tds-text-field-label-inside-color);left:16px}.form-text-field.sc-tds-text-field{display:block;min-width:208px}.form-text-field-nomin.sc-tds-text-field{min-width:auto}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-lg.sc-tds-text-field{padding-top:var(--tds-spacing-element-24);padding-bottom:15px}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-lg.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field{top:20px}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-lg.sc-tds-text-field::placeholder{color:transparent}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-lg.sc-tds-text-field .sc-tds-text-field::placeholder{color:transparent}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-lg.sc-tds-text-field:focus::placeholder{transition:color 0.35s ease;color:var(--tds-text-field-placeholder-focus-color)}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-md.sc-tds-text-field{padding-top:var(--tds-spacing-element-20);padding-bottom:11px}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-md.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field{top:16px}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-md.sc-tds-text-field::placeholder{color:transparent}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-md.sc-tds-text-field .sc-tds-text-field::placeholder{color:transparent}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-md.sc-tds-text-field:focus::placeholder{transition:color 0.35s ease;color:var(--tds-text-field-placeholder-focus-color)}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-sm.sc-tds-text-field{padding-top:var(--tds-spacing-element-20);padding-bottom:11px}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-sm.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field{top:16px}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-sm.sc-tds-text-field::placeholder{color:transparent}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-sm.sc-tds-text-field .sc-tds-text-field::placeholder{color:transparent}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-sm.sc-tds-text-field:focus::placeholder{transition:color 0.35s ease;color:var(--tds-text-field-placeholder-focus-color)}.form-text-field.text-field-container-label-inside.text-field-focus.sc-tds-text-field .text-field-input-sm.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field,.form-text-field.text-field-container-label-inside.text-field-data.sc-tds-text-field .text-field-input-sm.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field{font:var(--tds-detail-07);letter-spacing:var(--tds-detail-07-ls);transition:0.1s ease all;top:8px}.form-text-field.text-field-container-label-inside.text-field-focus.sc-tds-text-field .text-field-input-md.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field,.form-text-field.text-field-container-label-inside.text-field-data.sc-tds-text-field .text-field-input-md.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field{font:var(--tds-detail-07);letter-spacing:var(--tds-detail-07-ls);transition:0.1s ease all;top:8px}.form-text-field.text-field-container-label-inside.text-field-focus.sc-tds-text-field .text-field-input-lg.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field,.form-text-field.text-field-container-label-inside.text-field-data.sc-tds-text-field .text-field-input-lg.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field{font:var(--tds-detail-07);letter-spacing:var(--tds-detail-07-ls);transition:0.1s ease all;top:12px}.text-field-bar.sc-tds-text-field{position:absolute;width:100%}.text-field-bar.sc-tds-text-field::before,.text-field-bar.sc-tds-text-field::after{content:"";height:2px;top:54px;width:0;position:absolute;background:var(--tds-text-field-bar);transition:0.35s ease all}.form-text-field-md.sc-tds-text-field .text-field-bar.sc-tds-text-field::before,.form-text-field-md.sc-tds-text-field .text-field-bar.sc-tds-text-field::after{top:46px}.form-text-field-sm.sc-tds-text-field .text-field-bar.sc-tds-text-field::before,.form-text-field-sm.sc-tds-text-field .text-field-bar.sc-tds-text-field::after{top:40px}.text-field-bar.sc-tds-text-field::before{left:50%}.text-field-bar.sc-tds-text-field::after{right:50%}.text-field-focus.sc-tds-text-field .text-field-bar.sc-tds-text-field::before,.text-field-focus.sc-tds-text-field .text-field-bar.sc-tds-text-field::after{width:50%}.text-field-helper.sc-tds-text-field{font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls);display:flex;gap:8px;justify-content:space-between;flex-basis:100%;padding-top:var(--tds-spacing-element-4);color:var(--tds-text-field-helper)}.text-field-helper.sc-tds-text-field .text-field-textcounter.sc-tds-text-field{margin-left:auto}.form-text-field-disabled.sc-tds-text-field .text-field-container.sc-tds-text-field{border-bottom-color:transparent}.form-text-field-disabled.sc-tds-text-field .text-field-slot-wrap-prefix.sc-tds-text-field>*.sc-tds-text-field,.form-text-field-disabled.sc-tds-text-field .text-field-slot-wrap-suffix.sc-tds-text-field>*.sc-tds-text-field{color:var(--tds-text-field-ps-color-disabled)}.form-text-field-disabled.sc-tds-text-field .text-field-label-outside.sc-tds-text-field>*.sc-tds-text-field{color:var(--tds-text-field-label-disabled)}.text-field-icon__readonly.sc-tds-text-field{display:none;position:absolute;right:18px;top:18px;color:var(--tds-text-field-icon-read-only-label-color)}.text-field-icon__readonly-label.sc-tds-text-field{display:none;position:absolute;right:18px;top:48px;font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls);padding:8px;white-space:nowrap;border-radius:4px 0 4px 4px;background-color:var(--tds-text-field-icon-read-only-label-background)}.form-text-field-readonly.sc-tds-text-field{pointer-events:none}.form-text-field-readonly.sc-tds-text-field .text-field-icon__readonly.sc-tds-text-field{display:block}.form-text-field-readonly.sc-tds-text-field .text-field-icon__readonly.sc-tds-text-field:hover~.text-field-icon__readonly-label.sc-tds-text-field{display:block}.form-text-field-readonly.sc-tds-text-field .text-field-input.sc-tds-text-field{padding-right:54px;background-color:transparent}.form-text-field-success.sc-tds-text-field .text-field-container.sc-tds-text-field{border-bottom-color:var(--tds-text-field-border-bottom-success)}.form-text-field-error.sc-tds-text-field .text-field-helper.sc-tds-text-field{color:var(--tds-text-field-helper-error)}.form-text-field-error.sc-tds-text-field .text-field-container.sc-tds-text-field{border-bottom-color:var(--tds-text-field-border-bottom-error)}.form-text-field-error.sc-tds-text-field .text-field-bar.sc-tds-text-field::before,.form-text-field-error.sc-tds-text-field .text-field-bar.sc-tds-text-field::after{background:var(--tds-text-field-bar-error)}.text-field-helper-error-state.sc-tds-text-field{display:flex;gap:8px;flex-wrap:nowrap}.text-field-textcounter.sc-tds-text-field{font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls);color:var(--tds-text-field-textcounter);float:right}.text-field-textcounter.sc-tds-text-field .text-field-textcounter-divider.sc-tds-text-field{color:var(--tds-text-field-textcounter-divider)}.text-field-slot-wrap-prefix.sc-tds-text-field,.text-field-slot-wrap-suffix.sc-tds-text-field{align-self:center;font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);margin:0 0 0 14px;color:var(--tds-text-field-ps-color)}.text-field-slot-wrap-prefix.sc-tds-text-field-s>:not(tds-icon),.text-field-slot-wrap-suffix.sc-tds-text-field-s>:not(tds-icon){margin:0 0 0 2px}.text-field-slot-wrap-prefix.text-field-error.sc-tds-text-field,.text-field-slot-wrap-suffix.text-field-error.sc-tds-text-field{color:var(--tds-text-field-ps-color-error)}.text-field-slot-wrap-suffix.sc-tds-text-field{margin:0 14px 0 0}.text-field-slot-wrap-suffix.sc-tds-text-field-s>:not(tds-icon){margin:0 2px 0 0}';export{s as tds_text_field}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as o,H as e,g as i}from"./p-6bb7fa2c.js";const l=class{constructor(o){t(this,o),this.tdsChange=s(this,"tdsChange",6),this.tdsFocus=s(this,"tdsFocus",6),this.tdsBlur=s(this,"tdsBlur",6),this.tdsInput=s(this,"tdsInput",6),this.setDefaultOption=()=>{Array.from(this.host.children).filter((t=>"TDS-DROPDOWN-OPTION"===t.tagName)).forEach((t=>(this.multiselect?this.defaultValue.split(",").forEach((s=>{s===t.value&&(t.setSelected(!0),this.value=this.value?[...this.value,t.value]:[t.value])})):this.defaultValue===t.value?(t.setSelected(!0),this.value=[t.value]):t.setSelected(!1),this.setValueAttribute(),t)))},this.getChildren=()=>{const t=Array.from(this.host.children).filter((t=>"TDS-DROPDOWN-OPTION"===t.tagName));if(0!==t.length)return t;console.warn("TDS DROPDOWN: Data missing. Disregard if loading data asynchronously.")},this.getOpenDirection=()=>{var t,s,o,e,i;if("auto"===this.openDirection||!this.openDirection){const l=null!==(s=null===(t=this.dropdownList)||void 0===t?void 0:t.offsetHeight)&&void 0!==s?s:0;return(null!==(i=null===(e=(o=this.host).getBoundingClientRect)||void 0===e?void 0:e.call(o).top)&&void 0!==i?i:0)+l+57>window.innerHeight?"up":"down"}return this.openDirection},this.handleToggleOpen=()=>{this.disabled||(this.open=!this.open,this.open&&this.focusInputElement())},this.focusInputElement=()=>{this.inputElement&&this.inputElement.focus()},this.getSelectedChildren=()=>{var t;return null===(t=this.value)||void 0===t?void 0:t.map((t=>this.getChildren().find((s=>s.value===t)))).filter(Boolean)},this.getSelectedChildrenLabels=()=>{var t;return null===(t=this.getSelectedChildren())||void 0===t?void 0:t.map((t=>t.textContent.trim()))},this.getValue=()=>{const t=this.getSelectedChildrenLabels();return t?this.filter?null==t?void 0:t.join(", "):null==t?void 0:t.toString():""},this.setValueAttribute=()=>{var t,s,o;""===(null===(t=this.value)||void 0===t?void 0:t.toString())&&(this.value=null),this.host.setAttribute("value",null!==(o=null===(s=this.value)||void 0===s?void 0:s.map((t=>t)).toString())&&void 0!==o?o:null)},this.handleFilter=t=>{this.tdsInput.emit(t);const s=t.target.value.toLowerCase(),o=this.getChildren();""===s?(o.forEach((t=>(t.removeAttribute("hidden"),t))),this.filterResult=null):this.filterResult=o.filter((t=>(this.normalizeString(t.textContent).toLowerCase().includes(this.normalizeString(s).toLowerCase())?t.removeAttribute("hidden"):t.setAttribute("hidden",""),!t.hasAttribute("hidden")))).length},this.handleFocus=t=>{this.tdsFocus.emit(t)},this.handleBlur=t=>{this.tdsBlur.emit(t)},this.handleChange=()=>{var t,s;this.tdsChange.emit({name:this.name,value:null!==(s=null===(t=this.value)||void 0===t?void 0:t.map((t=>t)).toString())&&void 0!==s?s:null})},this.name=void 0,this.disabled=!1,this.helper=void 0,this.label=void 0,this.labelPosition=void 0,this.modeVariant=null,this.openDirection="auto",this.placeholder=void 0,this.size="lg",this.error=!1,this.multiselect=!1,this.filter=!1,this.normalizeText=!0,this.noResultText="No result",this.defaultValue=void 0,this.open=!1,this.value=void 0,this.filterResult=void 0,this.filterFocus=void 0}async reset(){this.internalReset(),this.handleChange()}async setValue(t,s){let o;o="string"==typeof t?[t]:t,!this.multiselect&&o.length>1&&(console.warn("Tried to select multiple items, but multiselect is not enabled."),o=[o[0]]),this.internalReset();for(let t=0;t<o.length;t++)this.getChildren().some((s=>s.value===o[t]))||o.splice(t,1);this.value=o,this.setValueAttribute(),this.selectChildrenAsSelectedBasedOnSelectionProp(),this.handleChange();const e=this.getSelectedChildren().map((t=>({value:t.value,label:t.textContent.trim()})));return this.filter&&(this.inputElement.value=this.getValue()),e}async appendValue(t){this.setValue(this.multiselect&&this.value?[...this.value,t]:t)}async removeValue(t){var s,o;let e;return this.multiselect?null===(s=this.getChildren())||void 0===s||s.forEach((s=>{var o;return s.value===t&&(this.value=null===(o=this.value)||void 0===o?void 0:o.filter((t=>t!==s.value)),e=s.textContent.trim(),s.setSelected(!1)),s})):this.reset(),this.handleChange(),this.setValueAttribute(),null===(o=this.value)||void 0===o?void 0:o.map((t=>({value:t,label:e})))}async close(){this.open=!1}onAnyClick(t){this.open&&!t.composedPath().includes(this.host)&&(this.open=!1)}async onKeyDown(t){const{activeElement:s}=document;if(!s)return;const o=this.getChildren();if("ArrowDown"===t.key){const t=s.nextElementSibling?o.findIndex((t=>t===s.nextElementSibling)):0;o[((t,s)=>{if(void 0===t[s])return 0;for(let o=s;o<t.length;o++)if(!t[o].disabled)return o})(o,t)].focus()}else"ArrowUp"===t.key?o[((t,s)=>{if(void 0===t[s])return t.length-1;for(let o=s;o>=0;o--)if(!t[o].disabled)return o})(o,s.nextElementSibling?this.getChildren().findIndex((t=>t===s.previousElementSibling)):0)].focus():"Escape"===t.key&&(this.open=!1)}handleOpenState(){this.filter&&this.multiselect&&(this.open||(this.inputElement.value=this.getValue()))}componentWillLoad(){this.defaultValue&&this.setDefaultOption()}normalizeString(t){return this.normalizeText?t.normalize("NFD").replace(/\p{Diacritic}/gu,""):t}internalReset(){this.getChildren().forEach((t=>(t.setSelected(!1),t))),this.value=null,this.setValueAttribute()}selectChildrenAsSelectedBasedOnSelectionProp(){this.getChildren().forEach((t=>{this.value.forEach((s=>{t.value!==s?this.multiselect||t.setSelected(!1):t.setSelected(!0)}))}))}render(){var t,s,i,l;return((t,s,o,e)=>{let i=t.querySelector("input");t.querySelector("input")||(i=t.ownerDocument.createElement("input"),i.type="hidden",t.appendChild(i)),i.disabled=e,i.name=s,i.value=o||""})(this.host,this.name,null===(t=this.value)||void 0===t?void 0:t.map((t=>t)).toString(),this.disabled),o(e,{key:"75d4f203d87f8ecd1b79c859f72f7377888254af",role:"select",class:this.modeVariant?`tds-mode-variant-${this.modeVariant}`:""},this.label&&"outside"===this.labelPosition&&o("div",{class:"label-outside "+(this.disabled?"disabled":"")},this.label),o("div",{key:"4595633d41ca7a108e345370b8e53bbf4a81380a",class:`dropdown-select ${this.size} ${this.disabled?"disabled":""}`},this.filter?o("div",{class:{filter:!0,focus:this.filterFocus,disabled:this.disabled,error:this.error}},o("div",{class:"value-wrapper"},this.label&&"inside"===this.labelPosition&&this.placeholder&&o("div",{class:`label-inside ${this.size}`},this.label),this.label&&"inside"===this.labelPosition&&!this.placeholder&&o("div",{class:`\n label-inside-as-placeholder\n ${this.size}\n ${(null===(s=this.value)||void 0===s?void 0:s.length)?"selected":""}\n `},this.label),o("input",{ref:t=>this.inputElement=t,class:"inside"===this.labelPosition?"placeholder":"",type:"text",placeholder:this.placeholder,value:this.getValue(),disabled:this.disabled,onInput:t=>this.handleFilter(t),onBlur:t=>{this.filterFocus=!1,this.handleBlur(t)},onFocus:t=>{this.open=!0,this.filterFocus=!0,this.handleFocus(t)},onKeyDown:t=>{"Escape"===t.key&&(this.open=!1)}})),o("tds-icon",{onClick:this.handleToggleOpen,class:this.open?"open":"closed",name:"chevron_down",size:"16px"})):o("button",{onClick:()=>this.handleToggleOpen(),onKeyDown:t=>{"Escape"===t.key&&(this.open=!1)},class:`\n ${this.value?"value":"placeholder"}\n ${this.open?"open":"closed"}\n ${this.error?"error":""}\n `,disabled:this.disabled},o("div",{class:`value-wrapper ${this.size}`},this.label&&"inside"===this.labelPosition&&this.placeholder&&o("div",{class:`label-inside ${this.size}`},this.label),this.label&&"inside"===this.labelPosition&&!this.placeholder&&o("div",{class:`\n label-inside-as-placeholder\n ${this.size}\n ${(null===(i=this.value)||void 0===i?void 0:i.length)?"selected":""}\n `},this.label),o("div",{class:`placeholder ${this.size}`},(null===(l=this.value)||void 0===l?void 0:l.length)?this.getValue():this.placeholder),o("tds-icon",{class:this.open?"open":"closed",name:"chevron_down",size:"16px"})))),o("div",{key:"dea4c89cf74b5a264e080d94332dccbc7cbd8c98",ref:t=>this.dropdownList=t,class:`dropdown-list\n ${this.size}\n ${this.open?"open":"closed"}\n ${this.getOpenDirection()}\n ${this.label&&"outside"===this.labelPosition?"label-outside":""}`},o("slot",{key:"4fd5b25fe610dd65fd2ca3e74b50afc5cb8131d9"}),0===this.filterResult&&""!==this.noResultText&&o("div",{class:`no-result ${this.size}`},this.noResultText)),this.helper&&o("div",{class:`helper ${this.error?"error":""} ${this.disabled?"disabled":""}`},this.error&&o("tds-icon",{name:"error",size:"16px"}),this.helper))}get host(){return i(this)}static get watchers(){return{open:["handleOpenState"]}}};l.style='@charset "UTF-8";:host button{all:unset;height:100%;width:100%;background-color:var(--tds-dropdown-bg);border-bottom:1px solid var(--tds-dropdown-border-bottom);border-radius:4px 4px 0 0}:host button:hover{border-bottom:1px solid var(--tds-dropdown-border-bottom-hover)}:host button .value-wrapper{padding:0 16px;display:flex;align-items:center;justify-content:space-between}:host button.placeholder{color:var(--tds-dropdown-placeholder-color);line-height:1.3}:host button.value{color:var(--tds-dropdown-value-color);font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);line-height:1.3}:host button:focus{border-bottom-color:var(--tds-dropdown-border-bottom-open)}:host button:focus::before{content:"";position:absolute;bottom:0;left:0;width:100%;height:1px;background:var(--tds-dropdown-border-bottom-open)}:host button.error{border-bottom:1px solid var(--tds-negative)}:host button.error:focus{border-bottom-color:transparent}:host button.error:focus::before{content:"";position:absolute;bottom:0;left:0;width:100%;height:2px;background:var(--tds-negative)}:host button:disabled{color:var(--tds-dropdown-disabled-color);border-bottom:1px solid transparent}:host .filter{display:flex;align-items:center;justify-content:space-between;height:100%;background-color:var(--tds-dropdown-bg);border-bottom:1px solid var(--tds-dropdown-border-bottom);padding-left:16px;border-radius:4px 4px 0 0}:host .filter:hover{border-bottom:1px solid var(--tds-dropdown-border-bottom-hover)}:host .filter.disabled{color:var(--tds-dropdown-disabled-color);border-bottom:1px solid transparent}:host .filter .value-wrapper{display:flex;width:100%;height:100%}:host .filter .label-inside-as-placeholder{position:absolute;font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);line-height:1.3;color:var(--tds-dropdown-placeholder-color)}:host .filter .label-inside-as-placeholder.lg{top:20px}:host .filter .label-inside-as-placeholder.md{top:16px}:host .filter .label-inside-as-placeholder.sm{display:none}:host .filter .label-inside-as-placeholder.selected{font:var(--tds-detail-07);letter-spacing:var(--tds-detail-07-ls);transition:all 0.2s ease-in-out}:host .filter .label-inside-as-placeholder.selected.lg{top:12px}:host .filter .label-inside-as-placeholder.selected.md{top:8px}:host .filter .label-inside-as-placeholder.selected.sm{display:none}:host .filter .label-inside-as-placeholder.selected+.placeholder:not(.sm){margin-top:8px}:host .filter.focus{border-bottom-color:transparent}:host .filter.focus::before{content:"";position:absolute;bottom:0;left:0;width:100%;height:2px;background:var(--tds-dropdown-border-bottom-open)}:host .filter.error{border-bottom:1px solid var(--tds-negative)}:host .filter.error.focus{border-bottom-color:transparent}:host .filter.error.focus::before{content:"";position:absolute;bottom:0;left:0;width:100%;height:2px;background:var(--tds-negative)}:host .filter input{flex:1;all:unset;width:100%}:host .filter input::placeholder{color:var(--tds-dropdown-placeholder-color)}:host .filter input:disabled::placeholder{color:var(--tds-dropdown-disabled-color)}:host .filter tds-icon{margin-right:16px}:host{display:block;position:relative;font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls)}:host .label-outside{font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls);color:var(--tds-dropdown-label-color);margin-bottom:8px}:host .label-outside.disabled{color:var(--tds-dropdown-disabled-color)}:host .dropdown-select{position:relative}:host .dropdown-select.disabled .label-inside,:host .dropdown-select.disabled .placeholder,:host .dropdown-select.disabled .label-inside-as-placeholder,:host .dropdown-select.disabled .value-wrapper{color:var(--tds-dropdown-disabled-color)}:host .dropdown-select .label-inside{position:absolute;font:var(--tds-detail-07);letter-spacing:var(--tds-detail-07-ls);color:var(--tds-dropdown-label-inside-color)}:host .dropdown-select .label-inside.lg{top:12px;left:16px}:host .dropdown-select .label-inside.md{top:8px;left:16px}:host .dropdown-select .label-inside.sm{display:none}:host .dropdown-select .label-inside+.placeholder:not(.sm){margin-top:8px}:host .dropdown-select .placeholder{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host .dropdown-select .label-inside-as-placeholder{color:var(--tds-dropdown-placeholder-color)}:host .dropdown-select .label-inside-as-placeholder.selected{position:absolute;font:var(--tds-detail-07);letter-spacing:var(--tds-detail-07-ls);transition:all 0.2s ease-in-out}:host .dropdown-select .label-inside-as-placeholder.selected.lg{top:12px}:host .dropdown-select .label-inside-as-placeholder.selected.md{top:8px}:host .dropdown-select .label-inside-as-placeholder.selected.sm{display:none}:host .dropdown-select .label-inside-as-placeholder.selected+.placeholder:not(.sm){margin-top:8px}:host .dropdown-select.lg{height:55px}:host .dropdown-select.md{height:47px}:host .dropdown-select.sm{height:39px}:host .helper{margin-top:4px;color:var(--tds-dropdown-helper-color);font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls);display:flex;align-items:center;gap:8px}:host .helper.error{color:var(--tds-negative)}:host .helper.disabled{color:var(--tds-dropdown-disabled-color)}:host .dropdown-list{z-index:100;position:absolute;margin-top:1px;width:100%;transform-origin:top;transition:transform 0.2s ease-in-out;box-shadow:rgba(0, 0, 0, 0.1) 0 2px 3px 0;border-radius:0 0 4px 4px;overflow-y:auto}:host .dropdown-list::-webkit-scrollbar{width:4px;background-color:inherit}:host .dropdown-list::-webkit-scrollbar-thumb{background-color:var(--tds-grey-300)}:host .dropdown-list ::-webkit-scrollbar-button{height:0;width:0}:host .dropdown-list.lg{max-height:312px}:host .dropdown-list.md{max-height:312px}:host .dropdown-list.sm{max-height:260px}:host .dropdown-list.up{bottom:100%;margin-top:0;margin-bottom:1px;transform-origin:bottom;display:flex;flex-direction:column-reverse;box-shadow:rgba(0, 0, 0, 0.1) 0 -1px 3px 0;border-radius:4px 4px 0 0}:host .dropdown-list.up.label-outside{bottom:calc(100% - 24px)}:host .dropdown-list.closed{transform:scaleY(0);visibility:hidden}:host .dropdown-list.open{transform:scaleY(1)}:host .dropdown-list .no-result{font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);display:flex;align-items:center;padding:0 16px;background-color:var(--tds-dropdown-bg)}:host .dropdown-list .no-result.lg{height:56px}:host .dropdown-list .no-result.md{height:48px}:host .dropdown-list .no-result.sm{height:40px}:host tds-icon{transition:transform 0.2s ease-in-out}:host tds-icon.open{transform:rotateZ(180deg)}';export{l as tds_dropdown}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as e,H as s,g as r}from"./p-6bb7fa2c.js";import{g as a}from"./p-11648030.js";import{i}from"./p-0bd4c19c.js";import"./p-3fe9cbbf.js";const o=class{constructor(e){t(this,e),this.uuid=a(),this.open=!1,this.buttonEl=void 0,this.hasListTypeMenu=!1}onAnyClick(t){!t.composedPath().includes(this.host)&&(this.open=!1)}componentDidLoad(){this.host.shadowRoot.querySelector("slot:not([name])").assignedElements().some((t=>"tds-header-launcher-list"===t.tagName.toLowerCase()))&&(this.hasListTypeMenu=!0)}toggleLauncher(){this.open=!this.open}render(){this.ariaAttributes=Object.assign(Object.assign({},this.ariaAttributes),i(this.host,["role"]));const t=Object.assign(Object.assign({},this.ariaAttributes),{"aria-expanded":`${this.open}`,"aria-controls":`launcher-${this.uuid}`,class:"button",active:this.open,onClick:()=>{this.toggleLauncher()},ref:t=>{this.buttonEl=t}});return e(s,{key:"3429e2f83f0eb01bd6e655b6fe1d8a77784b4f34"},e("div",{key:"6c8522b99c3f7de3fd3f665366362c1035b9d9a2",class:{wrapper:!0,"state-open":this.open,"state-list-type-menu":this.hasListTypeMenu}},e("tds-header-launcher-button",Object.assign({key:"926507bc5d95971a1172de1a1cefd89d47959546"},t)),this.buttonEl&&e("tds-popover-canvas",{id:`tds-launcher-${this.uuid}`,class:"menu",referenceEl:this.buttonEl,placement:"bottom-start",show:this.open,offsetDistance:0,modifiers:[{name:"flip",options:{fallbackPlacements:[]}}]},this.open?e("slot",null):null)))}get host(){return r(this)}};o.style=":host .wrapper{height:var(--tds-header-height);position:relative}:host .wrapper .menu{flex-direction:column;overflow-y:auto;max-height:calc(100vh - var(--tds-header-height));box-shadow:var(--tds-nav-dropdown-menu-box);background-color:var(--tds-header-app-launcher-menu-background);border-radius:0}:host .wrapper .menu::-webkit-scrollbar{width:4px;background-color:inherit}:host .wrapper .menu::-webkit-scrollbar-thumb{background-color:var(--tds-grey-300)}:host .wrapper .menu ::-webkit-scrollbar-button{height:0;width:0}@media all and (max-width: 384px){:host .wrapper .menu{width:100vw}}:host .wrapper.state-list-type-menu .menu{height:calc(100vh - var(--tds-header-height))}:host .wrapper.state-open .button{position:relative;z-index:901}";export{o as tds_header_launcher}
|