@scania/tegel 1.55.0-var-batch-8-beta → 1.56.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index-DppbfV9I.js +2548 -0
- package/dist/cjs/loader.cjs.js +2 -2
- 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_2.cjs.entry.js +1 -1
- package/dist/cjs/tds-card.cjs.entry.js +1 -1
- package/dist/cjs/tds-checkbox.cjs.entry.js +2 -2
- 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-dropdown_2.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 +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 +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 +71 -15
- 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 +1 -1
- 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 +2 -2
- 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-input-wrapper.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-input-wrapper.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-tag.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 +2 -2
- package/dist/cjs/tds-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/tegel.cjs.js +2 -2
- package/dist/collection/components/banner/banner.js +1 -1
- package/dist/collection/components/checkbox/checkbox.css +63 -74
- package/dist/collection/components/icon/icon.js +76 -15
- package/dist/collection/components/icon/scaniaIconsArray.js +2 -256
- package/dist/collection/components/icon/tratonIconsArray.js +2 -34
- package/dist/collection/components/radio-button/radio-button.css +52 -57
- package/dist/collection/components/toggle/toggle.css +85 -49
- package/dist/components/index.js +1 -1
- package/dist/components/p-1OlFnMHE.js +1 -0
- package/dist/components/{p-_rIDaSwT.js → p-7N0u4VMq.js} +1 -1
- package/dist/components/{p-gYwpHMxN.js → p-Br7e_rNH.js} +1 -1
- package/dist/components/{p-VwQKu81G.js → p-DhFWetNE.js} +1 -1
- package/dist/components/{p-B-9923_a.js → p-DnMNK2Ez.js} +1 -1
- package/dist/components/p-bPqW3C5g.js +1 -0
- package/dist/components/tds-accordion-item.js +1 -1
- package/dist/components/tds-banner.js +1 -1
- package/dist/components/tds-card.js +1 -1
- package/dist/components/tds-checkbox.js +1 -1
- package/dist/components/tds-datetime.js +1 -1
- package/dist/components/tds-dropdown-option.js +1 -1
- package/dist/components/tds-dropdown.js +1 -1
- package/dist/components/tds-folder-tabs.js +1 -1
- package/dist/components/tds-footer-group.js +1 -1
- package/dist/components/tds-header-cell.js +1 -1
- package/dist/components/tds-header-dropdown.js +1 -1
- package/dist/components/tds-header-hamburger.js +1 -1
- package/dist/components/tds-header-launcher-button.js +1 -1
- package/dist/components/tds-header-launcher.js +1 -1
- package/dist/components/tds-icon.js +1 -1
- package/dist/components/tds-inline-tabs.js +1 -1
- package/dist/components/tds-message.js +1 -1
- package/dist/components/tds-modal.js +1 -1
- package/dist/components/tds-navigation-tabs.js +1 -1
- package/dist/components/tds-radio-button.js +1 -1
- package/dist/components/tds-side-menu-close-button.js +1 -1
- package/dist/components/tds-side-menu-dropdown.js +1 -1
- package/dist/components/tds-slider.js +1 -1
- package/dist/components/tds-step.js +1 -1
- package/dist/components/tds-table-body-input-wrapper.js +1 -1
- package/dist/components/tds-table-body-row-expandable.js +1 -1
- package/dist/components/tds-table-body-row.js +1 -1
- package/dist/components/tds-table-footer.js +1 -1
- package/dist/components/tds-table-header-input-wrapper.js +1 -1
- package/dist/components/tds-table-header.js +1 -1
- package/dist/components/tds-table-toolbar.js +1 -1
- package/dist/components/tds-text-field.js +1 -1
- package/dist/components/tds-textarea.js +1 -1
- package/dist/components/tds-toast.js +1 -1
- package/dist/components/tds-toggle.js +1 -1
- package/dist/esm/index-D66gczjV.js +2519 -0
- package/dist/esm/loader.js +3 -3
- 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_2.entry.js +1 -1
- package/dist/esm/tds-card.entry.js +1 -1
- package/dist/esm/tds-checkbox.entry.js +2 -2
- 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-dropdown_2.entry.js +1 -1
- 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 +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 +71 -15
- 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 +1 -1
- 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 +2 -2
- 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-input-wrapper.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-input-wrapper.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-tag.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 +2 -2
- package/dist/esm/tds-tooltip.entry.js +1 -1
- package/dist/esm/tegel.js +3 -3
- package/dist/tegel/{p-5f588a98.entry.js → p-000bfdca.entry.js} +1 -1
- package/dist/tegel/{p-fc3bebb9.entry.js → p-02212ac6.entry.js} +1 -1
- package/dist/tegel/{p-ba5d53d7.entry.js → p-04621919.entry.js} +1 -1
- package/dist/tegel/{p-8422bd8c.entry.js → p-05473253.entry.js} +1 -1
- package/dist/tegel/{p-2a305350.entry.js → p-13780f5d.entry.js} +1 -1
- package/dist/tegel/{p-82ff3ba2.entry.js → p-140a090f.entry.js} +1 -1
- package/dist/tegel/{p-fe8c1416.entry.js → p-1b3624dc.entry.js} +1 -1
- package/dist/tegel/{p-b66d994f.entry.js → p-1b609314.entry.js} +1 -1
- package/dist/tegel/{p-5b58d128.entry.js → p-1e4de197.entry.js} +1 -1
- package/dist/tegel/{p-7947d4e0.entry.js → p-1efea13d.entry.js} +1 -1
- package/dist/tegel/{p-d439b25a.entry.js → p-214037e3.entry.js} +1 -1
- package/dist/tegel/{p-fd3f5a16.entry.js → p-21cb56e6.entry.js} +1 -1
- package/dist/tegel/{p-333ed361.entry.js → p-22fbab13.entry.js} +1 -1
- package/dist/tegel/{p-d72dff1b.entry.js → p-231a3187.entry.js} +1 -1
- package/dist/tegel/{p-a7a9448e.entry.js → p-2a4e34a1.entry.js} +1 -1
- package/dist/tegel/{p-a004293f.entry.js → p-2c3b31e4.entry.js} +1 -1
- package/dist/tegel/{p-d5a23a52.entry.js → p-2d5325aa.entry.js} +1 -1
- package/dist/tegel/{p-f377b8a1.entry.js → p-2e32958f.entry.js} +1 -1
- package/dist/tegel/{p-8959c64a.entry.js → p-3a8b1343.entry.js} +1 -1
- package/dist/tegel/{p-f07d47a0.entry.js → p-445c3453.entry.js} +1 -1
- package/dist/tegel/{p-ec8aaf23.entry.js → p-497db558.entry.js} +1 -1
- package/dist/tegel/{p-9a49a394.entry.js → p-49dfb3d3.entry.js} +1 -1
- package/dist/tegel/p-4b9a07a3.entry.js +1 -0
- package/dist/tegel/{p-1d9dd4a4.entry.js → p-4c6424d2.entry.js} +1 -1
- package/dist/tegel/{p-664e3dd1.entry.js → p-55a79070.entry.js} +1 -1
- package/dist/tegel/{p-79387c9c.entry.js → p-5a3ca353.entry.js} +1 -1
- package/dist/tegel/{p-e265a121.entry.js → p-5c268113.entry.js} +1 -1
- package/dist/tegel/{p-3a739d96.entry.js → p-5cbddcff.entry.js} +1 -1
- package/dist/tegel/{p-d7888cc7.entry.js → p-60202162.entry.js} +1 -1
- package/dist/tegel/{p-2d26dc94.entry.js → p-60f6737b.entry.js} +1 -1
- package/dist/tegel/{p-10370617.entry.js → p-64b66669.entry.js} +1 -1
- package/dist/tegel/{p-ed677584.entry.js → p-700cb284.entry.js} +1 -1
- package/dist/tegel/{p-36337827.entry.js → p-7370f158.entry.js} +1 -1
- package/dist/tegel/{p-958ff10a.entry.js → p-7892e328.entry.js} +1 -1
- package/dist/tegel/{p-729b549c.entry.js → p-7af4363c.entry.js} +1 -1
- package/dist/tegel/{p-62bc14c7.entry.js → p-7d2aefad.entry.js} +1 -1
- package/dist/tegel/{p-4f12df3d.entry.js → p-846d70dc.entry.js} +1 -1
- package/dist/tegel/{p-717f50e8.entry.js → p-8cf631e7.entry.js} +1 -1
- package/dist/tegel/{p-c28c6d1f.entry.js → p-9709bb77.entry.js} +1 -1
- package/dist/tegel/{p-8ea7b21d.entry.js → p-988ff487.entry.js} +1 -1
- package/dist/tegel/{p-fc1e168b.entry.js → p-98dc12c7.entry.js} +1 -1
- package/dist/tegel/{p-b5d57db7.entry.js → p-99c91f58.entry.js} +1 -1
- package/dist/tegel/{p-10edbfc9.entry.js → p-9b1e6d61.entry.js} +1 -1
- package/dist/tegel/{p-dcc61083.entry.js → p-9b72e3dd.entry.js} +1 -1
- package/dist/tegel/{p-b8d2b04e.entry.js → p-9c1b43b8.entry.js} +1 -1
- package/dist/tegel/{p-27d62f89.entry.js → p-9f7a950c.entry.js} +1 -1
- package/dist/tegel/p-D66gczjV.js +2 -0
- package/dist/tegel/p-a054ce7d.entry.js +1 -0
- package/dist/tegel/{p-60a8c916.entry.js → p-a7634987.entry.js} +1 -1
- package/dist/tegel/{p-63ca76cf.entry.js → p-b23451fc.entry.js} +1 -1
- package/dist/tegel/{p-de95b9ae.entry.js → p-b2828551.entry.js} +1 -1
- package/dist/tegel/{p-3587a9ce.entry.js → p-b7f22b75.entry.js} +1 -1
- package/dist/tegel/{p-fb02b793.entry.js → p-b807d795.entry.js} +1 -1
- package/dist/tegel/p-bc1a3ca0.entry.js +1 -0
- package/dist/tegel/{p-34f72969.entry.js → p-bc7d471d.entry.js} +1 -1
- package/dist/tegel/{p-5bed78b3.entry.js → p-bccbaa31.entry.js} +1 -1
- package/dist/tegel/{p-2f256cea.entry.js → p-be9fbe0f.entry.js} +1 -1
- package/dist/tegel/{p-9c6f2e79.entry.js → p-bf3c8bc3.entry.js} +1 -1
- package/dist/tegel/{p-a4aae973.entry.js → p-c58227d3.entry.js} +1 -1
- package/dist/tegel/{p-1baad780.entry.js → p-cf5babd4.entry.js} +1 -1
- package/dist/tegel/{p-f76516d3.entry.js → p-d09b3be2.entry.js} +1 -1
- package/dist/tegel/{p-c29023bd.entry.js → p-d0e38c6b.entry.js} +1 -1
- package/dist/tegel/{p-a8d0dda1.entry.js → p-d4067d17.entry.js} +1 -1
- package/dist/tegel/{p-cf467e1d.entry.js → p-d53afae8.entry.js} +1 -1
- package/dist/tegel/{p-94d3c4d9.entry.js → p-d5c4a372.entry.js} +1 -1
- package/dist/tegel/{p-a626c318.entry.js → p-d5cc5b82.entry.js} +1 -1
- package/dist/tegel/{p-bfbcb04b.entry.js → p-d646eac8.entry.js} +1 -1
- package/dist/tegel/{p-6d498d53.entry.js → p-e12c54e6.entry.js} +1 -1
- package/dist/tegel/{p-df0f6932.entry.js → p-eaea4f9f.entry.js} +1 -1
- package/dist/tegel/{p-5e2e7fee.entry.js → p-ec1092cf.entry.js} +1 -1
- package/dist/tegel/{p-61abf3aa.entry.js → p-ecc63b20.entry.js} +1 -1
- package/dist/tegel/{p-029fc297.entry.js → p-efd0e84b.entry.js} +1 -1
- package/dist/tegel/{p-9fce57e3.entry.js → p-f2266731.entry.js} +1 -1
- package/dist/tegel/{p-ea98e5dd.entry.js → p-f4b91949.entry.js} +1 -1
- package/dist/tegel/{p-762d869c.entry.js → p-f4e4944d.entry.js} +1 -1
- package/dist/tegel/p-f4f725a5.entry.js +1 -0
- package/dist/tegel/{p-f4e81f53.entry.js → p-f54ea031.entry.js} +1 -1
- package/dist/tegel/p-f7280e3c.entry.js +1 -0
- package/dist/tegel/{p-c0c94a17.entry.js → p-f904a7c4.entry.js} +1 -1
- package/dist/tegel/{p-e1ace2b1.entry.js → p-fbeef715.entry.js} +1 -1
- package/dist/tegel/tegel.css +184 -192
- package/dist/tegel/tegel.esm.js +1 -1
- package/dist/types/components/icon/icon.d.ts +7 -2
- package/dist/types/types/TratonIcons.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cjs/index-Chayda4R.js +0 -2548
- package/dist/components/p-B5eSTxGJ.js +0 -1
- package/dist/components/p-Cbe2Satj.js +0 -1
- package/dist/esm/index-DQ9ya-NU.js +0 -2519
- package/dist/tegel/p-5055ae12.entry.js +0 -1
- package/dist/tegel/p-663cdecf.entry.js +0 -1
- package/dist/tegel/p-7aba8111.entry.js +0 -1
- package/dist/tegel/p-94dba855.entry.js +0 -1
- package/dist/tegel/p-DQ9ya-NU.js +0 -2
- package/dist/tegel/p-d931247a.entry.js +0 -1
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
+
// Feature-detect the CSS `d` property once per module load. Where it is
|
|
3
|
+
// supported (Chromium, Firefox, Safari 18+) the path renders reactively from
|
|
4
|
+
// the brand-scoped --tds-icon-<name>-d variable via the CSS `d` property, so
|
|
5
|
+
// none of the imperative getComputedStyle / MutationObserver fallback runs —
|
|
6
|
+
// those engines pay no per-icon runtime cost. Only engines without it (older
|
|
7
|
+
// Safari/WebKit) fall back to resolving the `d` attribute in JS.
|
|
8
|
+
const SUPPORTS_CSS_D = typeof CSS !== 'undefined' &&
|
|
9
|
+
typeof CSS.supports === 'function' &&
|
|
10
|
+
CSS.supports('d', 'path("M0 0Z")');
|
|
2
11
|
export class Icon {
|
|
3
12
|
constructor() {
|
|
4
13
|
/** Pass the name of the icon.
|
|
@@ -8,28 +17,75 @@ export class Icon {
|
|
|
8
17
|
this.size = '16px';
|
|
9
18
|
/** Set aria-hidden attribute on svg */
|
|
10
19
|
this.tdsAriaHidden = false;
|
|
20
|
+
this.pathD = '';
|
|
11
21
|
}
|
|
12
|
-
|
|
13
|
-
|
|
22
|
+
componentWillLoad() {
|
|
23
|
+
if (SUPPORTS_CSS_D)
|
|
24
|
+
return;
|
|
25
|
+
this.resolvePath();
|
|
26
|
+
}
|
|
27
|
+
connectedCallback() {
|
|
28
|
+
// The CSS `d` property handles brand-aware rendering reactively where
|
|
29
|
+
// supported, so the JS fallback below only runs on engines without it.
|
|
30
|
+
if (SUPPORTS_CSS_D)
|
|
31
|
+
return;
|
|
32
|
+
// When the icon is nested in another component's shadow tree, its load
|
|
33
|
+
// lifecycle runs while the subtree is still detached, so the synchronous
|
|
34
|
+
// getComputedStyle read in resolvePath yields nothing. Retry on the next
|
|
35
|
+
// frame once the subtree is attached and the CSS variables resolve.
|
|
36
|
+
this.resolvePath();
|
|
37
|
+
if (!this.pathD) {
|
|
38
|
+
requestAnimationFrame(() => this.resolvePath());
|
|
39
|
+
}
|
|
40
|
+
this.observeBrandChanges();
|
|
41
|
+
}
|
|
42
|
+
disconnectedCallback() {
|
|
43
|
+
var _a;
|
|
44
|
+
(_a = this.brandObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
45
|
+
this.brandObserver = undefined;
|
|
14
46
|
}
|
|
15
47
|
nameChanged() {
|
|
16
|
-
|
|
48
|
+
if (SUPPORTS_CSS_D)
|
|
49
|
+
return;
|
|
50
|
+
this.resolvePath();
|
|
17
51
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
52
|
+
observeBrandChanges() {
|
|
53
|
+
// The JS `d` attribute fallback is read imperatively via getComputedStyle,
|
|
54
|
+
// so it must re-resolve when the brand changes at runtime. The brand is
|
|
55
|
+
// selected by a `.scania`/`.traton` class on the document root, so watch
|
|
56
|
+
// the root's class attribute and re-resolve on change.
|
|
57
|
+
if (this.brandObserver)
|
|
22
58
|
return;
|
|
23
|
-
|
|
24
|
-
|
|
59
|
+
this.brandObserver = new MutationObserver(() => this.resolvePath());
|
|
60
|
+
this.brandObserver.observe(document.documentElement, {
|
|
61
|
+
attributes: true,
|
|
62
|
+
attributeFilter: ['class'],
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
resolvePath() {
|
|
66
|
+
// Path data lives on the brand-scoped CSS variable --tds-icon-<name>-d
|
|
67
|
+
// (see tokens/scss/component/icon.scss), shaped as `path('M...')`. Resolve
|
|
68
|
+
// it to an SVG `d` attribute here as the fallback for engines without CSS
|
|
69
|
+
// `d` support. An unknown icon name — brands have different icon sets, so a
|
|
70
|
+
// name may not exist in the active brand — simply yields no match and
|
|
71
|
+
// renders an empty path.
|
|
72
|
+
const raw = getComputedStyle(this.host).getPropertyValue(`--tds-icon-${this.name}-d`).trim();
|
|
73
|
+
const match = raw.match(/^path\(\s*(['"])([\s\S]*)\1\s*\)$/);
|
|
74
|
+
this.pathD = match ? match[2] : '';
|
|
25
75
|
}
|
|
26
76
|
render() {
|
|
27
|
-
//
|
|
28
|
-
// --tds-icon-<name>-d
|
|
29
|
-
// The cascade
|
|
30
|
-
//
|
|
77
|
+
// Brand-aware path data is supplied two ways so it works everywhere:
|
|
78
|
+
// 1. The CSS `d` property bound to the brand-scoped --tds-icon-<name>-d
|
|
79
|
+
// variable. The CSS cascade resolves and updates this reactively when
|
|
80
|
+
// the .scania/.traton brand class changes — no JS, no timing races.
|
|
81
|
+
// Supported in Chromium, Firefox and Safari 18+.
|
|
82
|
+
// 2. The `d` attribute resolved imperatively (this.pathD), as a fallback
|
|
83
|
+
// for engines that ignore the CSS `d` property (older Safari/WebKit).
|
|
84
|
+
// Where the CSS `d` property is supported it overrides the `d` attribute,
|
|
85
|
+
// so the two coexist: supporting engines use (1) and never populate (2);
|
|
86
|
+
// others fall back to (2). See SUPPORTS_CSS_D above.
|
|
31
87
|
const pathStyle = { d: `var(--tds-icon-${this.name}-d)` };
|
|
32
|
-
return (h(Host, { key: '
|
|
88
|
+
return (h(Host, { key: 'fcceb06dd3f214b311fb7709fae9f46b82e4d9d1' }, h("svg", { key: '17b35536c6aa4b8c3b8c73644be8e0c3cb7f9090', "aria-hidden": this.tdsAriaHidden, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", "aria-labelledby": this.svgTitle ? `title-${this.name}` : undefined, "aria-describedby": this.svgDescription ? `desc-${this.name}` : undefined, role: "img", style: { fontSize: this.size }, height: this.size, width: this.size }, this.svgTitle && h("title", { key: '32ddc0b145521f4ed0169da2d79d32cd8b4d3201', id: `title-${this.name}` }, this.svgTitle), this.svgDescription && h("desc", { key: '4e5ae53d642cb7761c3dd00a161ff489028cef13', id: `desc-${this.name}` }, this.svgDescription), h("path", { key: '4b7595d42111a4dce6e16e1d3c3347094df16add', fill: "currentColor", style: pathStyle, d: this.pathD }))));
|
|
33
89
|
}
|
|
34
90
|
static get is() { return "tds-icon"; }
|
|
35
91
|
static get encapsulation() { return "shadow"; }
|
|
@@ -50,7 +106,7 @@ export class Icon {
|
|
|
50
106
|
"mutable": false,
|
|
51
107
|
"complexType": {
|
|
52
108
|
"original": "IconNames",
|
|
53
|
-
"resolved": "\"24v_battery\" | \"24v_battery_inactive\" | \"acceleration\" | \"acceleration_inactive\" | \"adblue\" | \"adblue_inactive\" | \"arrow_diagonal\" | \"arrow_down\" | \"arrow_left\" | \"arrow_right\" | \"arrow_up\" | \"audio\" | \"audio_inactive\" | \"award\" | \"back\" | \"backward\" | \"backward_inactive\" | \"bento\" | \"bug\" | \"bug_inactive\" | \"burger\" | \"bus\" | \"bus_inactive\" | \"cab_door\" | \"calendar\" | \"calendar_inactive\" | \"camera\" | \"camera_inactive\" | \"card\" | \"cart\" | \"charging_complete\" | \"charging_failed\" | \"charging_speed\" | \"charging_speed_inactive\" | \"charging_stopped\" | \"chevron_down\" | \"chevron_left\" | \"chevron_right\" | \"chevron_up\" | \"clock\" | \"clock_inactive\" | \"configurator\" | \"contact\" | \"contact_inactive\" | \"cookie\" | \"cookie_inactive\" | \"coolant_level\" | \"coolant_level_inactive\" | \"copy\" | \"cross\" | \"cup\" | \"cup_inactive\" | \"dashboard\" | \"department\" | \"department_inactive\" | \"departure_scheduling\" | \"departure_scheduling_inactive\" | \"diamond\" | \"diamond_inactive\" | \"document\" | \"document_check\" | \"document_doc\" | \"document_eye\" | \"document_pdf\" | \"document_plus\" | \"document_plus_inactive\" | \"document_ppt\" | \"document_tool\" | \"document_wrong\" | \"document_xls\" | \"dollar\" | \"doner\" | \"double_kebab\" | \"download\" | \"driving_licence\" | \"driving_licence_inactive\" | \"drop\" | \"drop_inactive\" | \"edit\" | \"edit_inactive\" | \"email\" | \"engine\" | \"engine_inactive\" | \"environment\" | \"environment_inactive\" | \"error\" | \"exit\" | \"expand\" | \"expand_inactive\" | \"export\" | \"export_inactive\" | \"eye\" | \"eye_inactive\" | \"face_dissatisfied\" | \"face_neutral\" | \"face_satisfied\" | \"factory\" | \"factory_inactive\" | \"ferry\" | \"ferry_inactive\" | \"filters\" | \"filters_inactive\" | \"flash\" | \"flash_inactive\" | \"folder\" | \"forward\" | \"forward_inactive\" | \"fuel\" | \"fuel_gauge\" | \"fuel_gauge_inactive\" | \"fuel_inactive\" | \"gift\" | \"gift_inactive\" | \"global\" | \"guided_tour\" | \"guided_tour_inactive\" | \"hatch_open\" | \"hatch_open_1\" | \"hatch_open_2\" | \"hatch_open_inactive\" | \"heart\" | \"heart_inactive\" | \"heating_inactive_screen\" | \"history\" | \"history_inactive\" | \"home\" | \"home_inactive\" | \"idea\" | \"idea_inactive\" | \"image\" | \"image_add\" | \"image_inactive\" | \"image_set\" | \"info\" | \"insights\" | \"kebab\" | \"key\" | \"key_inactive\" | \"language\" | \"layer\" | \"layer_inactive\" | \"link\" | \"link_broken\" | \"list\" | \"list_inactive\" | \"lock\" | \"lock_inactive\" | \"map_cursor\" | \"map_cursor_inactive\" | \"maximize_fullscreen\" | \"meatballs\" | \"merge\" | \"merge_inactive\" | \"message\" | \"message_inactive\" | \"microphone\" | \"microphone_inactive\" | \"mileage\" | \"mileage_inactive\" | \"minimize_fullscreen\" | \"minus\" | \"navigate\" | \"navigate_inactive\" | \"notification\" | \"notification_inactive\" | \"notification_snooze\" | \"oil_level\" | \"oil_level_inactive\" | \"paperclip\" | \"pause\" | \"pause_inactive\" | \"phone\" | \"phone_inactive\" | \"pie_chart\" | \"pin\" | \"pin_inactive\" | \"placeholder\" | \"play\" | \"play_inactive\" | \"plus\" | \"powerplug\" | \"powerplug_inactive\" | \"print\" | \"print_inactive\" | \"privacy\" | \"privacy_inactive\" | \"profile\" | \"profile_inactive\" | \"prohibited\" | \"proportions\" | \"proportions_inactive\" | \"range\" | \"range_inactive\" | \"redirect\" | \"refresh\" | \"refresh_inactive\" | \"reload\" | \"reload_inactive\" | \"repeat\" | \"report\" | \"report_inactive\" | \"route\" | \"route_inactive\" | \"save\" | \"save_inactive\" | \"search\" | \"send\" | \"send_inactive\" | \"settings\" | \"share\" | \"shuffle\" | \"skip_backwards\" | \"skip_forward\" | \"smartphone\" | \"smartphone_inactive\" | \"sorting\" | \"speedometer\" | \"speedometer_inactive\" | \"star\" | \"support\" | \"target\" | \"target_inactive\" | \"temperature\" | \"temperature_inactive\" | \"text\" | \"text_inactive\" | \"thumbs_down\" | \"thumbs_up\" | \"tick\" | \"timer\" | \"tool\" | \"tool_inactive\" | \"trailer\" | \"trailer_inactive\" | \"trash\" | \"trash_inactive\" | \"truck\" | \"truck_inactive\" | \"undo\" | \"undo_inactive\" | \"unlock\" | \"upload\" | \"video\" | \"video_inactive\" | \"wallet\" | \"warning\" | \"weight\" | \"weight_inactive\" | \"wifi\" | \"wifi_inactive\" | \"windscreen_heating\" | \"windscreen_heating_inactive\"",
|
|
109
|
+
"resolved": "\"24v_battery\" | \"24v_battery_inactive\" | \"acceleration\" | \"acceleration_inactive\" | \"adblue\" | \"adblue_inactive\" | \"arrow_diagonal\" | \"arrow_down\" | \"arrow_left\" | \"arrow_right\" | \"arrow_up\" | \"audio\" | \"audio_inactive\" | \"award\" | \"back\" | \"backward\" | \"backward_inactive\" | \"bento\" | \"bug\" | \"bug_inactive\" | \"burger\" | \"bus\" | \"bus_inactive\" | \"cab_door\" | \"calendar\" | \"calendar_inactive\" | \"camera\" | \"camera_inactive\" | \"card\" | \"cart\" | \"charging_complete\" | \"charging_failed\" | \"charging_speed\" | \"charging_speed_inactive\" | \"charging_stopped\" | \"chevron_down\" | \"chevron_left\" | \"chevron_right\" | \"chevron_up\" | \"clock\" | \"clock_inactive\" | \"configurator\" | \"contact\" | \"contact_inactive\" | \"cookie\" | \"cookie_inactive\" | \"coolant_level\" | \"coolant_level_inactive\" | \"copy\" | \"cross\" | \"cup\" | \"cup_inactive\" | \"dashboard\" | \"department\" | \"department_inactive\" | \"departure_scheduling\" | \"departure_scheduling_inactive\" | \"diamond\" | \"diamond_inactive\" | \"document\" | \"document_check\" | \"document_doc\" | \"document_eye\" | \"document_pdf\" | \"document_plus\" | \"document_plus_inactive\" | \"document_ppt\" | \"document_tool\" | \"document_word\" | \"document_wrong\" | \"document_xls\" | \"dollar\" | \"doner\" | \"double_kebab\" | \"download\" | \"driving_licence\" | \"driving_licence_inactive\" | \"drop\" | \"drop_inactive\" | \"edit\" | \"edit_inactive\" | \"email\" | \"engine\" | \"engine_inactive\" | \"environment\" | \"environment_inactive\" | \"error\" | \"exit\" | \"expand\" | \"expand_inactive\" | \"export\" | \"export_inactive\" | \"eye\" | \"eye_inactive\" | \"face_dissatisfied\" | \"face_neutral\" | \"face_satisfied\" | \"factory\" | \"factory_inactive\" | \"ferry\" | \"ferry_inactive\" | \"filters\" | \"filters_inactive\" | \"flash\" | \"flash_inactive\" | \"folder\" | \"forward\" | \"forward_inactive\" | \"fuel\" | \"fuel_gauge\" | \"fuel_gauge_inactive\" | \"fuel_inactive\" | \"gift\" | \"gift_inactive\" | \"global\" | \"guided_tour\" | \"guided_tour_inactive\" | \"hatch_open\" | \"hatch_open_1\" | \"hatch_open_2\" | \"hatch_open_inactive\" | \"heart\" | \"heart_inactive\" | \"heating_inactive_screen\" | \"history\" | \"history_inactive\" | \"home\" | \"home_inactive\" | \"idea\" | \"idea_inactive\" | \"image\" | \"image_add\" | \"image_inactive\" | \"image_set\" | \"info\" | \"insights\" | \"kebab\" | \"key\" | \"key_inactive\" | \"language\" | \"layer\" | \"layer_inactive\" | \"link\" | \"link_broken\" | \"list\" | \"list_inactive\" | \"lock\" | \"lock_inactive\" | \"map_cursor\" | \"map_cursor_inactive\" | \"maximize_fullscreen\" | \"meatballs\" | \"merge\" | \"merge_inactive\" | \"message\" | \"message_inactive\" | \"microphone\" | \"microphone_inactive\" | \"mileage\" | \"mileage_inactive\" | \"minimize_fullscreen\" | \"minus\" | \"navigate\" | \"navigate_inactive\" | \"notification\" | \"notification_inactive\" | \"notification_snooze\" | \"oil_level\" | \"oil_level_inactive\" | \"paperclip\" | \"pause\" | \"pause_inactive\" | \"phone\" | \"phone_inactive\" | \"pie_chart\" | \"pin\" | \"pin_inactive\" | \"placeholder\" | \"play\" | \"play_inactive\" | \"plus\" | \"powerplug\" | \"powerplug_inactive\" | \"print\" | \"print_inactive\" | \"privacy\" | \"privacy_inactive\" | \"profile\" | \"profile_inactive\" | \"prohibited\" | \"proportions\" | \"proportions_inactive\" | \"range\" | \"range_inactive\" | \"redirect\" | \"refresh\" | \"refresh_inactive\" | \"reload\" | \"reload_inactive\" | \"repeat\" | \"report\" | \"report_inactive\" | \"route\" | \"route_inactive\" | \"save\" | \"save_inactive\" | \"search\" | \"send\" | \"send_inactive\" | \"settings\" | \"share\" | \"shuffle\" | \"skip_backwards\" | \"skip_forward\" | \"smartphone\" | \"smartphone_inactive\" | \"sorting\" | \"speedometer\" | \"speedometer_inactive\" | \"star\" | \"support\" | \"target\" | \"target_inactive\" | \"temperature\" | \"temperature_inactive\" | \"text\" | \"text_inactive\" | \"thumbs_down\" | \"thumbs_up\" | \"tick\" | \"timer\" | \"tool\" | \"tool_inactive\" | \"trailer\" | \"trailer_inactive\" | \"trash\" | \"trash_inactive\" | \"truck\" | \"truck_inactive\" | \"undo\" | \"undo_inactive\" | \"unlock\" | \"upload\" | \"video\" | \"video_inactive\" | \"wallet\" | \"warning\" | \"weight\" | \"weight_inactive\" | \"wifi\" | \"wifi_inactive\" | \"windscreen_heating\" | \"windscreen_heating_inactive\"",
|
|
54
110
|
"references": {
|
|
55
111
|
"IconNames": {
|
|
56
112
|
"location": "import",
|
|
@@ -152,6 +208,11 @@ export class Icon {
|
|
|
152
208
|
}
|
|
153
209
|
};
|
|
154
210
|
}
|
|
211
|
+
static get states() {
|
|
212
|
+
return {
|
|
213
|
+
"pathD": {}
|
|
214
|
+
};
|
|
215
|
+
}
|
|
155
216
|
static get elementRef() { return "host"; }
|
|
156
217
|
static get watchers() {
|
|
157
218
|
return [{
|