@scania/tegel 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-f21bdb5d.js → index-705dca7c.js} +184 -95
- package/dist/cjs/loader.cjs.js +1 -1
- 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 +1 -1
- 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 +2 -2
- 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 +2 -2
- 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 +1 -1
- package/dist/cjs/tds-folder-tab.cjs.entry.js +1 -1
- package/dist/cjs/tds-folder-tabs.cjs.entry.js +2 -2
- 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 +1 -1
- 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 +1 -1
- 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 +2 -2
- package/dist/cjs/tds-inline-tabs.cjs.entry.js +2 -2
- 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 +1 -1
- package/dist/cjs/tds-navigation-tab.cjs.entry.js +2 -2
- package/dist/cjs/tds-navigation-tabs.cjs.entry.js +2 -2
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/cjs/tds-textarea.cjs.entry.js +1 -1
- package/dist/cjs/tds-toast.cjs.entry.js +1 -1
- package/dist/cjs/tds-toggle.cjs.entry.js +1 -1
- package/dist/cjs/tds-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/tegel.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +4 -4
- package/dist/collection/components/dropdown/dropdown.js +2 -2
- package/dist/collection/components/modal/modal.stories.js +3 -3
- package/dist/collection/components/side-menu/side-menu.js +3 -3
- package/dist/collection/components/stepper/stepper.js +1 -1
- package/dist/collection/components/table/table/table.js +1 -1
- package/dist/collection/components/tabs/folder-tabs/folder-tabs.css +2 -2
- package/dist/collection/components/tabs/inline-tabs/inline-tab/inline-tab.css +0 -1
- package/dist/collection/components/tabs/inline-tabs/inline-tabs.css +2 -2
- package/dist/collection/components/tabs/navigation-tabs/navigation-tab/navigation-tab.css +0 -1
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.css +2 -2
- package/dist/components/tds-button.js +1 -1
- package/dist/components/tds-chip.js +1 -1
- package/dist/components/tds-folder-tabs.js +1 -1
- package/dist/components/tds-inline-tab.js +1 -1
- package/dist/components/tds-inline-tabs.js +1 -1
- package/dist/components/tds-navigation-tab.js +1 -1
- package/dist/components/tds-navigation-tabs.js +1 -1
- package/dist/esm/{index-35cb608c.js → index-7dc8c41f.js} +184 -95
- package/dist/esm/loader.js +2 -2
- 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 +1 -1
- 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 +2 -2
- 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 +2 -2
- 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 +1 -1
- package/dist/esm/tds-folder-tab.entry.js +1 -1
- package/dist/esm/tds-folder-tabs.entry.js +2 -2
- 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 +1 -1
- 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 +1 -1
- 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 +2 -2
- package/dist/esm/tds-inline-tabs.entry.js +2 -2
- 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 +1 -1
- package/dist/esm/tds-navigation-tab.entry.js +2 -2
- package/dist/esm/tds-navigation-tabs.entry.js +2 -2
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/esm/tds-textarea.entry.js +1 -1
- package/dist/esm/tds-toast.entry.js +1 -1
- package/dist/esm/tds-toggle.entry.js +1 -1
- package/dist/esm/tds-tooltip.entry.js +1 -1
- package/dist/esm/tegel.js +3 -3
- package/dist/tegel/{p-db67d784.entry.js → p-0204ea55.entry.js} +1 -1
- package/dist/tegel/{p-f55da9ef.entry.js → p-027473cc.entry.js} +1 -1
- package/dist/tegel/{p-0893ad9d.entry.js → p-0308dd60.entry.js} +1 -1
- package/dist/tegel/{p-9839df9e.entry.js → p-05815c7a.entry.js} +1 -1
- package/dist/tegel/{p-cb9aba1b.entry.js → p-0891c691.entry.js} +1 -1
- package/dist/tegel/{p-c277a05d.entry.js → p-10600320.entry.js} +1 -1
- package/dist/tegel/{p-1efa3ab3.entry.js → p-15527d1c.entry.js} +1 -1
- package/dist/tegel/{p-7480ddd3.entry.js → p-1b55a206.entry.js} +1 -1
- package/dist/tegel/{p-41016d27.entry.js → p-1d6b48e1.entry.js} +1 -1
- package/dist/tegel/{p-bc94c1c2.entry.js → p-242abd17.entry.js} +1 -1
- package/dist/tegel/{p-a5a9cac8.entry.js → p-24ac98b9.entry.js} +1 -1
- package/dist/tegel/{p-d5bf6d99.entry.js → p-281a7ea6.entry.js} +1 -1
- package/dist/tegel/{p-52979643.entry.js → p-2f69406d.entry.js} +1 -1
- package/dist/tegel/p-31bb4c3e.entry.js +1 -0
- package/dist/tegel/{p-24f22b04.entry.js → p-32d2354f.entry.js} +1 -1
- package/dist/tegel/{p-e55ec17c.entry.js → p-3418e94b.entry.js} +1 -1
- package/dist/tegel/p-3e9b9672.js +2 -0
- package/dist/tegel/{p-ea5a0c9d.entry.js → p-46808902.entry.js} +1 -1
- package/dist/tegel/{p-0be49c5e.entry.js → p-47a92f41.entry.js} +1 -1
- package/dist/tegel/{p-f935d5f3.entry.js → p-4c314d67.entry.js} +1 -1
- package/dist/tegel/{p-b0703dd5.entry.js → p-4c913e4b.entry.js} +1 -1
- package/dist/tegel/{p-e3aa0903.entry.js → p-5092497e.entry.js} +1 -1
- package/dist/tegel/p-56a341a1.entry.js +1 -0
- package/dist/tegel/{p-535504e3.entry.js → p-574f1148.entry.js} +1 -1
- package/dist/tegel/{p-dc0fcac8.entry.js → p-5b1d6647.entry.js} +1 -1
- package/dist/tegel/{p-374161a8.entry.js → p-5c11a9c9.entry.js} +1 -1
- package/dist/tegel/{p-952a9830.entry.js → p-5dc4f120.entry.js} +1 -1
- package/dist/tegel/{p-89e23724.entry.js → p-5e8bf615.entry.js} +1 -1
- package/dist/tegel/{p-5e9aacd5.entry.js → p-604022ba.entry.js} +1 -1
- package/dist/tegel/{p-1f35bdc7.entry.js → p-6243906b.entry.js} +1 -1
- package/dist/tegel/{p-c56160f2.entry.js → p-6b625fe1.entry.js} +1 -1
- package/dist/tegel/{p-f8da6ce5.entry.js → p-74478110.entry.js} +1 -1
- package/dist/tegel/{p-a5152b59.entry.js → p-75eae0ae.entry.js} +1 -1
- package/dist/tegel/{p-517deee0.entry.js → p-7b5c5881.entry.js} +1 -1
- package/dist/tegel/{p-d6c9b267.entry.js → p-7be1c8ea.entry.js} +1 -1
- package/dist/tegel/{p-0e6f9768.entry.js → p-7f94a735.entry.js} +1 -1
- package/dist/tegel/{p-e8c8ed2f.entry.js → p-80dd10db.entry.js} +1 -1
- package/dist/tegel/{p-0d300a96.entry.js → p-81c7ece9.entry.js} +1 -1
- package/dist/tegel/{p-80a99356.entry.js → p-825be958.entry.js} +1 -1
- package/dist/tegel/{p-99327b6c.entry.js → p-83dc1dde.entry.js} +1 -1
- package/dist/tegel/{p-90987d11.entry.js → p-84b79c10.entry.js} +1 -1
- package/dist/tegel/{p-2eb27fd7.entry.js → p-851520df.entry.js} +1 -1
- package/dist/tegel/{p-a8712a64.entry.js → p-86c1146e.entry.js} +1 -1
- package/dist/tegel/{p-fbd856ca.entry.js → p-8837c8f0.entry.js} +1 -1
- package/dist/tegel/{p-2b8680cb.entry.js → p-8a7a998e.entry.js} +1 -1
- package/dist/tegel/{p-d8137332.entry.js → p-8c41b79d.entry.js} +1 -1
- package/dist/tegel/{p-3ade3e28.entry.js → p-8c781ff3.entry.js} +1 -1
- package/dist/tegel/{p-72d3a19b.entry.js → p-9108c81f.entry.js} +1 -1
- package/dist/tegel/{p-e035ddeb.entry.js → p-99632e91.entry.js} +1 -1
- package/dist/tegel/{p-900532bf.entry.js → p-9e1430c5.entry.js} +1 -1
- package/dist/tegel/{p-05eda91f.entry.js → p-a00c06d4.entry.js} +1 -1
- package/dist/tegel/{p-3516a5fc.entry.js → p-a872e086.entry.js} +1 -1
- package/dist/tegel/{p-bf32d97c.entry.js → p-ae19b833.entry.js} +1 -1
- package/dist/tegel/{p-c420b0a9.entry.js → p-b2466d89.entry.js} +1 -1
- package/dist/tegel/{p-abe23e76.entry.js → p-bda16bee.entry.js} +1 -1
- package/dist/tegel/{p-fecfc7c7.entry.js → p-c5138ecf.entry.js} +1 -1
- package/dist/tegel/{p-25347b32.entry.js → p-c7301ecb.entry.js} +1 -1
- package/dist/tegel/{p-d6c1d080.entry.js → p-caaab9d1.entry.js} +1 -1
- package/dist/tegel/{p-ceaa2ea7.entry.js → p-cb477168.entry.js} +1 -1
- package/dist/tegel/{p-fc76d99c.entry.js → p-cdf605b6.entry.js} +1 -1
- package/dist/tegel/{p-97c23511.entry.js → p-cec4cc4d.entry.js} +1 -1
- package/dist/tegel/{p-dfbb887e.entry.js → p-d2989b66.entry.js} +1 -1
- package/dist/tegel/{p-5f203f87.entry.js → p-d5bd93b0.entry.js} +1 -1
- package/dist/tegel/{p-03fc5ca3.entry.js → p-d72f1690.entry.js} +1 -1
- package/dist/tegel/{p-6361ae3a.entry.js → p-d73f40b0.entry.js} +1 -1
- package/dist/tegel/{p-92984605.entry.js → p-d757dc45.entry.js} +1 -1
- package/dist/tegel/{p-792a3cb6.entry.js → p-e07afb36.entry.js} +1 -1
- package/dist/tegel/{p-aaaced18.entry.js → p-e0a62474.entry.js} +1 -1
- package/dist/tegel/{p-18de1663.entry.js → p-e1cd3cc1.entry.js} +1 -1
- package/dist/tegel/{p-6e863efc.entry.js → p-e32e00dc.entry.js} +1 -1
- package/dist/tegel/{p-3a930215.entry.js → p-e5fd7377.entry.js} +1 -1
- package/dist/tegel/{p-d1dffa21.entry.js → p-e889c82b.entry.js} +1 -1
- package/dist/tegel/{p-54680d69.entry.js → p-ee299956.entry.js} +1 -1
- package/dist/tegel/{p-efb40b9c.entry.js → p-f0c9ff6a.entry.js} +1 -1
- package/dist/tegel/{p-f5063d5b.entry.js → p-f46ab7e0.entry.js} +1 -1
- package/dist/tegel/{p-1aaf365d.entry.js → p-f7b73968.entry.js} +1 -1
- package/dist/tegel/p-ff006811.entry.js +1 -0
- package/dist/tegel/{p-d5d2a4f0.entry.js → p-ff6dfbe5.entry.js} +1 -1
- package/dist/tegel/p-ffe71966.entry.js +1 -0
- package/dist/tegel/tegel.esm.js +1 -1
- package/dist/types/components/dropdown/dropdown-option/dropdown-option.d.ts +0 -1
- package/dist/types/components/dropdown/dropdown.d.ts +3 -3
- package/dist/types/components.d.ts +406 -1
- package/dist/types/stencil-public-runtime.d.ts +21 -0
- package/package.json +3 -4
- package/dist/tegel/p-25f306a0.js +0 -2
- package/dist/tegel/p-5b9f499d.entry.js +0 -1
- package/dist/tegel/p-6adb65cb.entry.js +0 -1
- package/dist/tegel/p-a001ec58.entry.js +0 -1
- package/dist/tegel/p-c191ca51.entry.js +0 -1
- package/dist/types/components/block/block.d.ts +0 -11
- package/dist/types/components/header/header-launcher/header-launcher.d.ts +0 -15
- package/dist/types/components/popover-canvas/popover-canvas.d.ts +0 -27
- package/dist/types/components/popover-core/popover-core.d.ts +0 -46
- package/dist/types/components/popover-menu/popover-menu.d.ts +0 -28
- package/dist/types/components/side-menu/side-menu-item/side-menu-item.d.ts +0 -24
- package/dist/types/components/side-menu/side-menu.d.ts +0 -45
- package/dist/types/components/table/table-body/table-body.d.ts +0 -24
- package/dist/types/components/table/table-body-cell/table-body-cell.d.ts +0 -27
- package/dist/types/components/table/table-body-row/table-body-row.d.ts +0 -28
- package/dist/types/components/table/table-body-row-expandable/table-body-row-expandable.d.ts +0 -29
- package/dist/types/components/table/table-header/table-header.d.ts +0 -39
- package/dist/types/components/table/table-header-cell/table-header-cell.d.ts +0 -56
- package/dist/types/components/table/table-toolbar/table-toolbar.d.ts +0 -29
- package/dist/types/components/tooltip/tooltip.d.ts +0 -34
|
@@ -21,6 +21,7 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'tegel';
|
|
24
|
+
const BUILD = /* tegel */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: true, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: true, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: true, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: true, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: true, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, transformTagName: true, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
|
|
24
25
|
|
|
25
26
|
/**
|
|
26
27
|
* Virtual DOM patching algorithm based on Snabbdom by
|
|
@@ -506,11 +507,19 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
506
507
|
// except for the first character, we keep the event name case
|
|
507
508
|
memberName = ln[2] + memberName.slice(3);
|
|
508
509
|
}
|
|
509
|
-
if (oldValue) {
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
510
|
+
if (oldValue || newValue) {
|
|
511
|
+
// Need to account for "capture" events.
|
|
512
|
+
// If the event name ends with "Capture", we'll update the name to remove
|
|
513
|
+
// the "Capture" suffix and make sure the event listener is setup to handle the capture event.
|
|
514
|
+
const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
|
|
515
|
+
// Make sure we only replace the last instance of "Capture"
|
|
516
|
+
memberName = memberName.replace(CAPTURE_EVENT_REGEX, '');
|
|
517
|
+
if (oldValue) {
|
|
518
|
+
plt.rel(elm, memberName, oldValue, capture);
|
|
519
|
+
}
|
|
520
|
+
if (newValue) {
|
|
521
|
+
plt.ael(elm, memberName, newValue, capture);
|
|
522
|
+
}
|
|
514
523
|
}
|
|
515
524
|
}
|
|
516
525
|
else {
|
|
@@ -572,6 +581,8 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
572
581
|
};
|
|
573
582
|
const parseClassListRegex = /\s/;
|
|
574
583
|
const parseClassList = (value) => (!value ? [] : value.split(parseClassListRegex));
|
|
584
|
+
const CAPTURE_EVENT_SUFFIX = 'Capture';
|
|
585
|
+
const CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + '$');
|
|
575
586
|
const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
|
|
576
587
|
// if the element passed in is a shadow root, which is a document fragment
|
|
577
588
|
// then we want to be adding attrs/props to the shadow root's "host" element
|
|
@@ -605,6 +616,7 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
|
|
|
605
616
|
* @returns the newly created node
|
|
606
617
|
*/
|
|
607
618
|
const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
619
|
+
var _a;
|
|
608
620
|
// tslint:disable-next-line: prefer-const
|
|
609
621
|
const newVNode = newParentVNode.$children$[childIndex];
|
|
610
622
|
let i = 0;
|
|
@@ -683,6 +695,8 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
683
695
|
if (newVNode.$flags$ & (2 /* VNODE_FLAGS.isSlotFallback */ | 1 /* VNODE_FLAGS.isSlotReference */)) {
|
|
684
696
|
// remember the content reference comment
|
|
685
697
|
elm['s-sr'] = true;
|
|
698
|
+
// Persist the name of the slot that this slot was going to be projected into.
|
|
699
|
+
elm['s-fs'] = (_a = newVNode.$attrs$) === null || _a === void 0 ? void 0 : _a.slot;
|
|
686
700
|
// remember the content reference comment
|
|
687
701
|
elm['s-cr'] = contentRef;
|
|
688
702
|
// remember the slot name, or empty string for default slot
|
|
@@ -699,6 +713,7 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
699
713
|
return elm;
|
|
700
714
|
};
|
|
701
715
|
const putBackInOriginalLocation = (parentElm, recursive) => {
|
|
716
|
+
var _a;
|
|
702
717
|
plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
|
|
703
718
|
const oldSlotChildNodes = parentElm.childNodes;
|
|
704
719
|
for (let i = oldSlotChildNodes.length - 1; i >= 0; i--) {
|
|
@@ -711,9 +726,17 @@ const putBackInOriginalLocation = (parentElm, recursive) => {
|
|
|
711
726
|
parentReferenceNode(childNode).insertBefore(childNode, referenceNode(childNode));
|
|
712
727
|
// remove the old original location comment entirely
|
|
713
728
|
// later on the patch function will know what to do
|
|
714
|
-
// and move this to the correct spot
|
|
729
|
+
// and move this to the correct spot if need be
|
|
715
730
|
childNode['s-ol'].remove();
|
|
716
731
|
childNode['s-ol'] = undefined;
|
|
732
|
+
// Reset so we can correctly move the node around again.
|
|
733
|
+
childNode['s-sh'] = undefined;
|
|
734
|
+
// When putting an element node back in its original location,
|
|
735
|
+
// we need to reset the `slot` attribute back to the value it originally had
|
|
736
|
+
// so we can correctly relocate it again in the future
|
|
737
|
+
if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
|
|
738
|
+
childNode.setAttribute('slot', (_a = childNode['s-sn']) !== null && _a !== void 0 ? _a : '');
|
|
739
|
+
}
|
|
717
740
|
checkSlotRelocate = true;
|
|
718
741
|
}
|
|
719
742
|
if (recursive) {
|
|
@@ -1137,42 +1160,53 @@ const patch = (oldVNode, newVNode) => {
|
|
|
1137
1160
|
elm.data = text;
|
|
1138
1161
|
}
|
|
1139
1162
|
};
|
|
1163
|
+
/**
|
|
1164
|
+
* Adjust the `.hidden` property as-needed on any nodes in a DOM subtree which
|
|
1165
|
+
* are slot fallbacks nodes.
|
|
1166
|
+
*
|
|
1167
|
+
* A slot fallback node should be visible by default. Then, it should be
|
|
1168
|
+
* conditionally hidden if:
|
|
1169
|
+
*
|
|
1170
|
+
* - it has a sibling with a `slot` property set to its slot name or if
|
|
1171
|
+
* - it is a default fallback slot node, in which case we hide if it has any
|
|
1172
|
+
* content
|
|
1173
|
+
*
|
|
1174
|
+
* @param elm the element of interest
|
|
1175
|
+
*/
|
|
1140
1176
|
const updateFallbackSlotVisibility = (elm) => {
|
|
1141
|
-
// tslint:disable-next-line: prefer-const
|
|
1142
1177
|
const childNodes = elm.childNodes;
|
|
1143
|
-
|
|
1144
|
-
let i;
|
|
1145
|
-
let ilen;
|
|
1146
|
-
let j;
|
|
1147
|
-
let slotNameAttr;
|
|
1148
|
-
let nodeType;
|
|
1149
|
-
for (i = 0, ilen = childNodes.length; i < ilen; i++) {
|
|
1150
|
-
childNode = childNodes[i];
|
|
1178
|
+
for (const childNode of childNodes) {
|
|
1151
1179
|
if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
|
|
1152
1180
|
if (childNode['s-sr']) {
|
|
1153
1181
|
// this is a slot fallback node
|
|
1154
1182
|
// get the slot name for this slot reference node
|
|
1155
|
-
|
|
1183
|
+
const slotName = childNode['s-sn'];
|
|
1156
1184
|
// by default always show a fallback slot node
|
|
1157
1185
|
// then hide it if there are other slots in the light dom
|
|
1158
1186
|
childNode.hidden = false;
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1187
|
+
// we need to check all of its sibling nodes in order to see if
|
|
1188
|
+
// `childNode` should be hidden
|
|
1189
|
+
for (const siblingNode of childNodes) {
|
|
1190
|
+
// Don't check the node against itself
|
|
1191
|
+
if (siblingNode !== childNode) {
|
|
1192
|
+
if (siblingNode['s-hn'] !== childNode['s-hn'] || slotName !== '') {
|
|
1193
|
+
// this sibling node is from a different component OR is a named
|
|
1194
|
+
// fallback slot node
|
|
1195
|
+
if (siblingNode.nodeType === 1 /* NODE_TYPE.ElementNode */ &&
|
|
1196
|
+
(slotName === siblingNode.getAttribute('slot') || slotName === siblingNode['s-sn'])) {
|
|
1197
|
+
childNode.hidden = true;
|
|
1198
|
+
break;
|
|
1199
|
+
}
|
|
1166
1200
|
}
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1201
|
+
else {
|
|
1202
|
+
// this is a default fallback slot node
|
|
1203
|
+
// any element or text node (with content)
|
|
1204
|
+
// should hide the default fallback slot node
|
|
1205
|
+
if (siblingNode.nodeType === 1 /* NODE_TYPE.ElementNode */ ||
|
|
1206
|
+
(siblingNode.nodeType === 3 /* NODE_TYPE.TextNode */ && siblingNode.textContent.trim() !== '')) {
|
|
1207
|
+
childNode.hidden = true;
|
|
1208
|
+
break;
|
|
1209
|
+
}
|
|
1176
1210
|
}
|
|
1177
1211
|
}
|
|
1178
1212
|
}
|
|
@@ -1182,45 +1216,67 @@ const updateFallbackSlotVisibility = (elm) => {
|
|
|
1182
1216
|
}
|
|
1183
1217
|
}
|
|
1184
1218
|
};
|
|
1219
|
+
/**
|
|
1220
|
+
* Component-global information about nodes which are either currently being
|
|
1221
|
+
* relocated or will be shortly.
|
|
1222
|
+
*/
|
|
1185
1223
|
const relocateNodes = [];
|
|
1186
|
-
|
|
1224
|
+
/**
|
|
1225
|
+
* Mark the contents of a slot for relocation via adding references to them to
|
|
1226
|
+
* the {@link relocateNodes} data structure. The actual work of relocating them
|
|
1227
|
+
* will then be handled in {@link renderVdom}.
|
|
1228
|
+
*
|
|
1229
|
+
* @param elm a render node whose child nodes need to be relocated
|
|
1230
|
+
*/
|
|
1231
|
+
const markSlotContentForRelocation = (elm) => {
|
|
1187
1232
|
// tslint:disable-next-line: prefer-const
|
|
1188
|
-
let childNode;
|
|
1189
1233
|
let node;
|
|
1190
1234
|
let hostContentNodes;
|
|
1191
|
-
let slotNameAttr;
|
|
1192
|
-
let relocateNodeData;
|
|
1193
1235
|
let j;
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
for (; i < ilen; i++) {
|
|
1198
|
-
childNode = childNodes[i];
|
|
1236
|
+
for (const childNode of elm.childNodes) {
|
|
1237
|
+
// we need to find child nodes which are slot references so we can then try
|
|
1238
|
+
// to match them up with nodes that need to be relocated
|
|
1199
1239
|
if (childNode['s-sr'] && (node = childNode['s-cr']) && node.parentNode) {
|
|
1200
|
-
// first
|
|
1201
|
-
//
|
|
1240
|
+
// first get the content reference comment node ('s-cr'), then we get
|
|
1241
|
+
// its parent, which is where all the host content is now
|
|
1202
1242
|
hostContentNodes = node.parentNode.childNodes;
|
|
1203
|
-
|
|
1243
|
+
const slotName = childNode['s-sn'];
|
|
1244
|
+
// iterate through all the nodes under the location where the host was
|
|
1245
|
+
// originally rendered
|
|
1204
1246
|
for (j = hostContentNodes.length - 1; j >= 0; j--) {
|
|
1205
1247
|
node = hostContentNodes[j];
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1248
|
+
// check that the node is not a content reference node or a node
|
|
1249
|
+
// reference and then check that the host name does not match that of
|
|
1250
|
+
// childNode.
|
|
1251
|
+
// In addition, check that the slot either has not already been relocated, or
|
|
1252
|
+
// that its current location's host is not childNode's host. This is essentially
|
|
1253
|
+
// a check so that we don't try to relocate (and then hide) a node that is already
|
|
1254
|
+
// where it should be.
|
|
1255
|
+
if (!node['s-cn'] &&
|
|
1256
|
+
!node['s-nr'] &&
|
|
1257
|
+
node['s-hn'] !== childNode['s-hn'] &&
|
|
1258
|
+
(!BUILD.experimentalSlotFixes )) {
|
|
1259
|
+
// if `node` is located in the slot that `childNode` refers to (via the
|
|
1260
|
+
// `'s-sn'` property) then we need to relocate it from it's current spot
|
|
1261
|
+
// (under the host element parent) to the right slot location
|
|
1262
|
+
if (isNodeLocatedInSlot(node, slotName)) {
|
|
1211
1263
|
// it's possible we've already decided to relocate this node
|
|
1212
|
-
relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
1264
|
+
let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
1213
1265
|
// made some changes to slots
|
|
1214
1266
|
// let's make sure we also double check
|
|
1215
1267
|
// fallbacks are correctly hidden or shown
|
|
1216
1268
|
checkSlotFallbackVisibility = true;
|
|
1217
|
-
|
|
1269
|
+
// ensure that the slot-name attr is correct
|
|
1270
|
+
node['s-sn'] = node['s-sn'] || slotName;
|
|
1218
1271
|
if (relocateNodeData) {
|
|
1219
|
-
|
|
1220
|
-
//
|
|
1272
|
+
relocateNodeData.$nodeToRelocate$['s-sh'] = childNode['s-hn'];
|
|
1273
|
+
// we marked this node for relocation previously but didn't find
|
|
1274
|
+
// out the slot reference node to which it needs to be relocated
|
|
1275
|
+
// so write it down now!
|
|
1221
1276
|
relocateNodeData.$slotRefNode$ = childNode;
|
|
1222
1277
|
}
|
|
1223
1278
|
else {
|
|
1279
|
+
node['s-sh'] = childNode['s-hn'];
|
|
1224
1280
|
// add to our list of nodes to relocate
|
|
1225
1281
|
relocateNodes.push({
|
|
1226
1282
|
$slotRefNode$: childNode,
|
|
@@ -1239,8 +1295,10 @@ const relocateSlotContent = (elm) => {
|
|
|
1239
1295
|
}
|
|
1240
1296
|
}
|
|
1241
1297
|
else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
|
|
1242
|
-
//
|
|
1243
|
-
//
|
|
1298
|
+
// the node is not found within the slot (`childNode`) that we're
|
|
1299
|
+
// currently looking at, so we stick it into `relocateNodes` to
|
|
1300
|
+
// handle later. If we never find a home for this element then
|
|
1301
|
+
// we'll need to hide it
|
|
1244
1302
|
relocateNodes.push({
|
|
1245
1303
|
$nodeToRelocate$: node,
|
|
1246
1304
|
});
|
|
@@ -1248,30 +1306,41 @@ const relocateSlotContent = (elm) => {
|
|
|
1248
1306
|
}
|
|
1249
1307
|
}
|
|
1250
1308
|
}
|
|
1309
|
+
// if we're dealing with any type of element (capable of itself being a
|
|
1310
|
+
// slot reference or containing one) then we recur
|
|
1251
1311
|
if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
|
|
1252
|
-
|
|
1312
|
+
markSlotContentForRelocation(childNode);
|
|
1253
1313
|
}
|
|
1254
1314
|
}
|
|
1255
1315
|
};
|
|
1256
|
-
|
|
1316
|
+
/**
|
|
1317
|
+
* Check whether a node is located in a given named slot.
|
|
1318
|
+
*
|
|
1319
|
+
* @param nodeToRelocate the node of interest
|
|
1320
|
+
* @param slotName the slot name to check
|
|
1321
|
+
* @returns whether the node is located in the slot or not
|
|
1322
|
+
*/
|
|
1323
|
+
const isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
|
|
1257
1324
|
if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
|
|
1258
|
-
if (nodeToRelocate.getAttribute('slot') === null &&
|
|
1325
|
+
if (nodeToRelocate.getAttribute('slot') === null && slotName === '') {
|
|
1326
|
+
// if the node doesn't have a slot attribute, and the slot we're checking
|
|
1327
|
+
// is not a named slot, then we assume the node should be within the slot
|
|
1259
1328
|
return true;
|
|
1260
1329
|
}
|
|
1261
|
-
if (nodeToRelocate.getAttribute('slot') ===
|
|
1330
|
+
if (nodeToRelocate.getAttribute('slot') === slotName) {
|
|
1262
1331
|
return true;
|
|
1263
1332
|
}
|
|
1264
1333
|
return false;
|
|
1265
1334
|
}
|
|
1266
|
-
if (nodeToRelocate['s-sn'] ===
|
|
1335
|
+
if (nodeToRelocate['s-sn'] === slotName) {
|
|
1267
1336
|
return true;
|
|
1268
1337
|
}
|
|
1269
|
-
return
|
|
1338
|
+
return slotName === '';
|
|
1270
1339
|
};
|
|
1271
1340
|
/**
|
|
1272
|
-
* 'Nullify' any VDom `ref` callbacks on a VDom node or its children by
|
|
1273
|
-
*
|
|
1274
|
-
*
|
|
1341
|
+
* 'Nullify' any VDom `ref` callbacks on a VDom node or its children by calling
|
|
1342
|
+
* them with `null`. This signals that the DOM element corresponding to the VDom
|
|
1343
|
+
* node has been removed from the DOM.
|
|
1275
1344
|
*
|
|
1276
1345
|
* @param vNode a virtual DOM node
|
|
1277
1346
|
*/
|
|
@@ -1295,6 +1364,7 @@ const nullifyVNodeRefs = (vNode) => {
|
|
|
1295
1364
|
* @param isInitialLoad whether or not this is the first call after page load
|
|
1296
1365
|
*/
|
|
1297
1366
|
const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
1367
|
+
var _a, _b;
|
|
1298
1368
|
const hostElm = hostRef.$hostElement$;
|
|
1299
1369
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
1300
1370
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
@@ -1350,43 +1420,48 @@ const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1350
1420
|
// the disconnectCallback from working
|
|
1351
1421
|
plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
|
|
1352
1422
|
if (checkSlotRelocate) {
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
let orgLocationNode;
|
|
1357
|
-
let parentNodeRef;
|
|
1358
|
-
let insertBeforeNode;
|
|
1359
|
-
let refNode;
|
|
1360
|
-
let i = 0;
|
|
1361
|
-
for (; i < relocateNodes.length; i++) {
|
|
1362
|
-
relocateData = relocateNodes[i];
|
|
1363
|
-
nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
1423
|
+
markSlotContentForRelocation(rootVnode.$elm$);
|
|
1424
|
+
for (const relocateData of relocateNodes) {
|
|
1425
|
+
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
1364
1426
|
if (!nodeToRelocate['s-ol']) {
|
|
1365
1427
|
// add a reference node marking this node's original location
|
|
1366
1428
|
// keep a reference to this node for later lookups
|
|
1367
|
-
orgLocationNode =
|
|
1368
|
-
doc.createTextNode('');
|
|
1429
|
+
const orgLocationNode = doc.createTextNode('');
|
|
1369
1430
|
orgLocationNode['s-nr'] = nodeToRelocate;
|
|
1370
1431
|
nodeToRelocate.parentNode.insertBefore((nodeToRelocate['s-ol'] = orgLocationNode), nodeToRelocate);
|
|
1371
1432
|
}
|
|
1372
1433
|
}
|
|
1373
|
-
for (
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
if (
|
|
1377
|
-
|
|
1378
|
-
//
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1434
|
+
for (const relocateData of relocateNodes) {
|
|
1435
|
+
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
1436
|
+
const slotRefNode = relocateData.$slotRefNode$;
|
|
1437
|
+
if (slotRefNode) {
|
|
1438
|
+
const parentNodeRef = slotRefNode.parentNode;
|
|
1439
|
+
// When determining where to insert content, the most simple case would be
|
|
1440
|
+
// to relocate the node immediately following the slot reference node. We do this
|
|
1441
|
+
// by getting a reference to the node immediately following the slot reference node
|
|
1442
|
+
// since we will use `insertBefore` to manipulate the DOM.
|
|
1443
|
+
//
|
|
1444
|
+
// If there is no node immediately following the slot reference node, then we will just
|
|
1445
|
+
// end up appending the node as the last child of the parent.
|
|
1446
|
+
let insertBeforeNode = slotRefNode.nextSibling;
|
|
1447
|
+
// If the node we're currently planning on inserting the new node before is an element,
|
|
1448
|
+
// we need to do some additional checks to make sure we're inserting the node in the correct order.
|
|
1449
|
+
// The use case here would be that we have multiple nodes being relocated to the same slot. So, we want
|
|
1450
|
+
// to make sure they get inserted into their new how in the same order they were declared in their original location.
|
|
1451
|
+
//
|
|
1452
|
+
// TODO(STENCIL-914): Remove `experimentalSlotFixes` check
|
|
1453
|
+
{
|
|
1454
|
+
let orgLocationNode = (_a = nodeToRelocate['s-ol']) === null || _a === void 0 ? void 0 : _a.previousSibling;
|
|
1455
|
+
while (orgLocationNode) {
|
|
1456
|
+
let refNode = (_b = orgLocationNode['s-nr']) !== null && _b !== void 0 ? _b : null;
|
|
1457
|
+
if (refNode && refNode['s-sn'] === nodeToRelocate['s-sn'] && parentNodeRef === refNode.parentNode) {
|
|
1458
|
+
refNode = refNode.nextSibling;
|
|
1459
|
+
if (!refNode || !refNode['s-nr']) {
|
|
1460
|
+
insertBeforeNode = refNode;
|
|
1461
|
+
break;
|
|
1462
|
+
}
|
|
1389
1463
|
}
|
|
1464
|
+
orgLocationNode = orgLocationNode.previousSibling;
|
|
1390
1465
|
}
|
|
1391
1466
|
}
|
|
1392
1467
|
if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
|
|
@@ -1399,7 +1474,10 @@ const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1399
1474
|
// probably a component in the index.html that doesn't have its hostname set
|
|
1400
1475
|
nodeToRelocate['s-hn'] = nodeToRelocate['s-ol'].parentNode.nodeName;
|
|
1401
1476
|
}
|
|
1402
|
-
//
|
|
1477
|
+
// Add it back to the dom but in its new home
|
|
1478
|
+
// If we get to this point and `insertBeforeNode` is `null`, that means
|
|
1479
|
+
// we're just going to append the node as the last child of the parent. Passing
|
|
1480
|
+
// `null` as the second arg here will trigger that behavior.
|
|
1403
1481
|
parentNodeRef.insertBefore(nodeToRelocate, insertBeforeNode);
|
|
1404
1482
|
}
|
|
1405
1483
|
}
|
|
@@ -1875,7 +1953,18 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1875
1953
|
}
|
|
1876
1954
|
return Cstr;
|
|
1877
1955
|
};
|
|
1878
|
-
|
|
1956
|
+
/**
|
|
1957
|
+
* Initialize a Stencil component given a reference to its host element, its
|
|
1958
|
+
* runtime bookkeeping data structure, runtime metadata about the component,
|
|
1959
|
+
* and (optionally) an HMR version ID.
|
|
1960
|
+
*
|
|
1961
|
+
* @param elm a host element
|
|
1962
|
+
* @param hostRef the element's runtime bookkeeping object
|
|
1963
|
+
* @param cmpMeta runtime metadata for the Stencil component
|
|
1964
|
+
* @param hmrVersionId an (optional) HMR version ID
|
|
1965
|
+
*/
|
|
1966
|
+
const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
1967
|
+
let Cstr;
|
|
1879
1968
|
// initializeComponent
|
|
1880
1969
|
if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
|
|
1881
1970
|
// Let the runtime know that the component has been initialized
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-705dca7c.js');
|
|
6
6
|
|
|
7
7
|
const defineCustomElements = (win, options) => {
|
|
8
8
|
if (typeof window === 'undefined') return undefined;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-705dca7c.js');
|
|
6
6
|
|
|
7
7
|
const accordionItemCss = ".tds-accordion-item{box-sizing:border-box;list-style:none;color:var(--tds-accordion-color);position:relative;border-top:1px solid var(--tds-accordion-border)}.tds-accordion-item *{box-sizing:border-box}.tds-accordion-item button.tds-accordion-header-icon-start,.tds-accordion-item button.tds-accordion-header-icon-end{all:unset}.tds-accordion-item .tds-accordion-header-icon-start,.tds-accordion-item .tds-accordion-header-icon-end,.tds-accordion-item button.tds-accordion-header-icon-start,.tds-accordion-item button.tds-accordion-header-icon-end{box-sizing:border-box;cursor:pointer;display:flex;align-items:center;width:100%;font:var(--tds-headline-07);letter-spacing:var(--tds-headline-07-ls);padding:var(--tds-spacing-element-16);background-color:var(--tds-accordion-background)}.tds-accordion-item .tds-accordion-header-icon-start *,.tds-accordion-item .tds-accordion-header-icon-end *,.tds-accordion-item button.tds-accordion-header-icon-start *,.tds-accordion-item button.tds-accordion-header-icon-end *{box-sizing:border-box}.tds-accordion-item .tds-accordion-header-icon-start .tds-accordion-icon,.tds-accordion-item .tds-accordion-header-icon-end .tds-accordion-icon,.tds-accordion-item button.tds-accordion-header-icon-start .tds-accordion-icon,.tds-accordion-item button.tds-accordion-header-icon-end .tds-accordion-icon{transform-origin:center;transition:transform 0.15s ease-in-out;color:var(--tds-accordion-icon-color)}.tds-accordion-item .tds-accordion-header-icon-start .tds-accordion-icon>tds-icon,.tds-accordion-item .tds-accordion-header-icon-end .tds-accordion-icon>tds-icon,.tds-accordion-item button.tds-accordion-header-icon-start .tds-accordion-icon>tds-icon,.tds-accordion-item button.tds-accordion-header-icon-end .tds-accordion-icon>tds-icon{display:block}.tds-accordion-item .tds-accordion-title{flex-grow:2}.tds-accordion-item .tds-accordion-panel{cursor:default;padding:var(--tds-spacing-element-8) var(--tds-spacing-layout-64) var(--tds-spacing-element-32) var(--tds-spacing-element-16);display:none;font:var(--tds-detail-03);letter-spacing:var(--tds-detail-03-ls)}.tds-accordion-item .tds-accordion-panel p{margin:0;padding:0}.tds-accordion-item .tds-accordion-panel--padding-reset{padding-right:var(--tds-spacing-element-16)}.tds-accordion-item .tds-accordion-header-icon-end .tds-accordion-icon{margin:0 0 0 var(--tds-spacing-element-32)}.tds-accordion-item .tds-accordion-header-icon-start .tds-accordion-title{order:1}.tds-accordion-item .tds-accordion-header-icon-start .tds-accordion-icon{order:0;margin:0 var(--tds-spacing-element-16) 0 0}.tds-accordion-item.disabled,.tds-accordion-item.disabled .tds-accordion-header-icon-end,.tds-accordion-item.disabled .tds-accordion-header-icon-start,.tds-accordion-item.disabled .tds-accordion-panel{color:var(--tds-accordion-color-disabled);cursor:not-allowed}.tds-accordion-item.disabled .tds-accordion-icon,.tds-accordion-item.disabled .tds-accordion-header-icon-end .tds-accordion-icon,.tds-accordion-item.disabled .tds-accordion-header-icon-start .tds-accordion-icon,.tds-accordion-item.disabled .tds-accordion-panel .tds-accordion-icon{color:var(--tds-accordion-color-disabled)}.tds-accordion-item.disabled:hover,.tds-accordion-item.disabled:hover *,.tds-accordion-item.disabled:focus,.tds-accordion-item.disabled:focus *,.tds-accordion-item.disabled:active,.tds-accordion-item.disabled:active *,.tds-accordion-item.disabled.active,.tds-accordion-item.disabled.active *{cursor:not-allowed}.tds-accordion-item.disabled:hover .tds-accordion-header-icon-start,.tds-accordion-item.disabled:hover .tds-accordion-header-icon-end,.tds-accordion-item.disabled:focus .tds-accordion-header-icon-start,.tds-accordion-item.disabled:focus .tds-accordion-header-icon-end,.tds-accordion-item.disabled:active .tds-accordion-header-icon-start,.tds-accordion-item.disabled:active .tds-accordion-header-icon-end,.tds-accordion-item.disabled.active .tds-accordion-header-icon-start,.tds-accordion-item.disabled.active .tds-accordion-header-icon-end{background-color:var(--tds-accordion-bg);outline:none;pointer-events:none}.tds-accordion-item.disabled:hover .tds-accordion-header-icon-start::after,.tds-accordion-item.disabled:hover .tds-accordion-header-icon-end::after,.tds-accordion-item.disabled:focus .tds-accordion-header-icon-start::after,.tds-accordion-item.disabled:focus .tds-accordion-header-icon-end::after,.tds-accordion-item.disabled:active .tds-accordion-header-icon-start::after,.tds-accordion-item.disabled:active .tds-accordion-header-icon-end::after,.tds-accordion-item.disabled.active .tds-accordion-header-icon-start::after,.tds-accordion-item.disabled.active .tds-accordion-header-icon-end::after{border-color:transparent}.tds-accordion-item.expanded .tds-accordion-panel{display:block;padding-bottom:31px}.tds-accordion-item.expanded .tds-accordion-icon{transform:rotate(180deg)}.tds-accordion-item.expanded .tds-accordion-header-icon-end .tds-accordion-icon{margin-right:0;margin-left:var(--tds-spacing-element-32)}.tds-accordion-item.expanded .tds-accordion-header-icon-start .tds-accordion-icon{margin-left:0;margin-right:var(--tds-spacing-element-16)}.tds-accordion-item:focus{border-top:1px solid var(--tds-accordion-border-focus)}.tds-accordion-item[disabled=true]:focus{border-color:var(--tds-accordion-border)}:host(:focus) .tds-accordion-item{outline:2px solid var(--tds-blue-400);outline-offset:-2px}:host(:focus) .tds-accordion-item .tds-accordion-header-icon-start,:host(:focus) .tds-accordion-item .tds-accordion-header-icon-end{background-color:var(--tds-accordion-background-focus);outline:none}:host(:hover) .tds-accordion-header-icon-start,:host(:hover) .tds-accordion-header-icon-end{background-color:var(--tds-accordion-background-hover)}:host(:active) .tds-accordion-header-icon-start,:host(:active) .tds-accordion-header-icon-end{background-color:var(--tds-accordion-background-active);outline:none}";
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-705dca7c.js');
|
|
6
6
|
|
|
7
7
|
const accordionCss = ":host{display:block;box-sizing:border-box}:host *{box-sizing:border-box}:host .tds-accordion-header-icon-start,:host .tds-accordion-header-icon-end{position:relative}:host(:focus){outline:2px solid var(--tds-blue-400);outline-offset:-2px}:host(:focus) .tds-accordion-item .tds-accordion-header-icon-start,:host(:focus) .tds-accordion-item .tds-accordion-header-icon-end{background-color:var(--tds-accordion-background-focus);outline:none}:host(:focus) .tds-accordion-item .tds-accordion-header-icon-start::after,:host(:focus) .tds-accordion-item .tds-accordion-header-icon-end::after{border-color:var(--tds-accordion-border-focus)}:host(:focus) .disabled,:host(:focus) .disabled *{cursor:not-allowed}:host(:focus) .disabled .tds-accordion-header-icon-start,:host(:focus) .disabled .tds-accordion-header-icon-end{background-color:var(--tds-accordion-bg);outline:none;pointer-events:none}:host(:focus) .disabled .tds-accordion-header-icon-start::after,:host(:focus) .disabled .tds-accordion-header-icon-end::after{border-color:transparent}:host(:active) .tds-accordion-header-icon-start,:host(:active) .tds-accordion-header-icon-end{background-color:var(--tds-accordion-background-active);outline:none}:host(:active) .disabled,:host(:active) .disabled *{cursor:not-allowed}:host(:active) .disabled .tds-accordion-header-icon-start,:host(:active) .disabled .tds-accordion-header-icon-end{background-color:var(--tds-accordion-bg);outline:none;pointer-events:none}:host(:active) .disabled .tds-accordion-header-icon-start::after,:host(:active) .disabled .tds-accordion-header-icon-end::after{border-color:transparent}:host(:last-child){border-bottom:1px solid var(--tds-accordion-border)}";
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-705dca7c.js');
|
|
6
6
|
|
|
7
7
|
const badgeCss = ":host{--tds-badge-background-color:var(--tds-negative);--tds-badge-color-text:var(--tds-white);box-sizing:border-box;display:block}:host *{box-sizing:border-box}.tds-badge{display:block;border-radius:12px;background-color:var(--tds-badge-background-color);text-align:center}.tds-badge.tds-badge-sm{height:8px;width:8px;line-height:8px}.tds-badge.tds-badge-lg{height:20px;line-height:20px;width:20px}.tds-badge.tds-badge-pill{display:inline-block;width:unset;padding-left:8px;padding-right:8px}.tds-badge.tds-badge-hidden{display:none}.tds-badge-text{font-family:var(--tds-font-family-semi-condensed-bold);font-size:12px;color:var(--tds-badge-color-text);font-weight:bold}";
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-705dca7c.js');
|
|
6
6
|
const generateUniqueId = require('./generateUniqueId-56da4810.js');
|
|
7
7
|
const hasSlot = require('./hasSlot-1c90e9ba.js');
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-705dca7c.js');
|
|
6
6
|
|
|
7
7
|
const blockCss = ".tds-block{box-sizing:border-box;color:var(--tds-block-color);border-radius:4px;padding:16px;font:var(--tds-body-01);letter-spacing:var(--tds-body-01-ls);background-color:var(--tds-block-background)}.tds-block *{box-sizing:border-box}.tds-mode-variant-primary{--tds-block-background:var(--tds-block-background-primary);--tds-block-background-nested:var(--tds-block-background-nested-primary)}.tds-mode-variant-secondary{--tds-block-background:var(--tds-block-background-secondary);--tds-block-background-nested:var(--tds-block-background-nested-secondary)}";
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-705dca7c.js');
|
|
6
6
|
|
|
7
7
|
const tableBodyCellCss = ":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}";
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-705dca7c.js');
|
|
6
6
|
|
|
7
7
|
const breadcrumbCss = "@charset \"UTF-8\";[role=listitem] ::slotted(*){color:var(--tds-breadcrumb-color);text-decoration:none}[role=listitem]:hover ::slotted(*){color:var(--tds-breadcrumb-color-hover);text-decoration:underline}[role=listitem] ::slotted(*:focus-visible){outline:2px solid var(--tds-blue-400);outline-offset:-2px;outline-offset:0}[role=listitem].current ::slotted(*),[role=listitem] [aria-current=page] ::slotted(*){pointer-events:none;cursor:default;color:var(--tds-breadcrumb-color-current)}[role=listitem].current:hover ::slotted(*),[role=listitem] [aria-current=page]:hover ::slotted(*){text-decoration:none;cursor:not-allowed}[role=listitem]::after{content:\"›\";color:var(--tds-breadcrumb-separator-color);margin-right:4px;margin-left:4px;display:inline-block;width:4px;height:8px}:host(.last) [role=listitem]::after{display:none}";
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-705dca7c.js');
|
|
6
6
|
|
|
7
7
|
const breadcrumbsCss = ":host{box-sizing:border-box}:host *{box-sizing:border-box}:host [role=list]{padding:0;margin:0;font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);display:flex;flex-wrap:wrap;list-style-type:none}";
|
|
8
8
|
|