@scania/tegel 1.0.3 → 1.2.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.
Files changed (313) hide show
  1. package/dist/cjs/{index-862c9693.js → index-f21bdb5d.js} +91 -20
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/tds-accordion-item.cjs.entry.js +1 -1
  4. package/dist/cjs/tds-accordion.cjs.entry.js +1 -1
  5. package/dist/cjs/tds-badge.cjs.entry.js +1 -1
  6. package/dist/cjs/tds-banner.cjs.entry.js +1 -1
  7. package/dist/cjs/tds-block.cjs.entry.js +1 -1
  8. package/dist/cjs/tds-body-cell.cjs.entry.js +1 -1
  9. package/dist/cjs/tds-breadcrumb.cjs.entry.js +1 -1
  10. package/dist/cjs/tds-breadcrumbs.cjs.entry.js +1 -1
  11. package/dist/cjs/tds-button.cjs.entry.js +2 -2
  12. package/dist/cjs/tds-card.cjs.entry.js +2 -2
  13. package/dist/cjs/tds-checkbox.cjs.entry.js +1 -1
  14. package/dist/cjs/tds-chip.cjs.entry.js +1 -1
  15. package/dist/cjs/tds-core-header-item_2.cjs.entry.js +1 -1
  16. package/dist/cjs/tds-datetime.cjs.entry.js +1 -1
  17. package/dist/cjs/tds-divider.cjs.entry.js +1 -1
  18. package/dist/cjs/tds-dropdown-option.cjs.entry.js +1 -1
  19. package/dist/cjs/tds-dropdown.cjs.entry.js +15 -7
  20. package/dist/cjs/tds-folder-tab.cjs.entry.js +2 -2
  21. package/dist/cjs/tds-folder-tabs.cjs.entry.js +1 -1
  22. package/dist/cjs/tds-footer-group.cjs.entry.js +1 -1
  23. package/dist/cjs/tds-footer-item.cjs.entry.js +1 -1
  24. package/dist/cjs/tds-footer.cjs.entry.js +1 -1
  25. package/dist/cjs/tds-header-brand-symbol.cjs.entry.js +1 -1
  26. package/dist/cjs/tds-header-cell.cjs.entry.js +1 -1
  27. package/dist/cjs/tds-header-dropdown-list-item.cjs.entry.js +1 -1
  28. package/dist/cjs/tds-header-dropdown-list-user.cjs.entry.js +1 -1
  29. package/dist/cjs/tds-header-dropdown-list.cjs.entry.js +1 -1
  30. package/dist/cjs/tds-header-dropdown.cjs.entry.js +1 -1
  31. package/dist/cjs/tds-header-hamburger.cjs.entry.js +1 -1
  32. package/dist/cjs/tds-header-launcher-button.cjs.entry.js +1 -1
  33. package/dist/cjs/tds-header-launcher-grid-item.cjs.entry.js +1 -1
  34. package/dist/cjs/tds-header-launcher-grid-title.cjs.entry.js +1 -1
  35. package/dist/cjs/tds-header-launcher-grid.cjs.entry.js +1 -1
  36. package/dist/cjs/tds-header-launcher-list-item.cjs.entry.js +1 -1
  37. package/dist/cjs/tds-header-launcher-list-title.cjs.entry.js +1 -1
  38. package/dist/cjs/tds-header-launcher-list.cjs.entry.js +1 -1
  39. package/dist/cjs/tds-header-launcher.cjs.entry.js +1 -1
  40. package/dist/cjs/tds-header-title.cjs.entry.js +1 -1
  41. package/dist/cjs/tds-header.cjs.entry.js +1 -1
  42. package/dist/cjs/tds-icon.cjs.entry.js +1 -1
  43. package/dist/cjs/tds-inline-tab.cjs.entry.js +2 -2
  44. package/dist/cjs/tds-inline-tabs.cjs.entry.js +1 -1
  45. package/dist/cjs/tds-link.cjs.entry.js +1 -1
  46. package/dist/cjs/tds-message.cjs.entry.js +1 -1
  47. package/dist/cjs/tds-modal.cjs.entry.js +13 -17
  48. package/dist/cjs/tds-navigation-tab.cjs.entry.js +2 -2
  49. package/dist/cjs/tds-navigation-tabs.cjs.entry.js +1 -1
  50. package/dist/cjs/tds-popover-canvas.cjs.entry.js +1 -1
  51. package/dist/cjs/tds-popover-core.cjs.entry.js +1 -1
  52. package/dist/cjs/tds-popover-menu-item.cjs.entry.js +1 -1
  53. package/dist/cjs/tds-popover-menu.cjs.entry.js +1 -1
  54. package/dist/cjs/tds-radio-button.cjs.entry.js +1 -1
  55. package/dist/cjs/tds-side-menu-close-button.cjs.entry.js +1 -1
  56. package/dist/cjs/tds-side-menu-collapse-button.cjs.entry.js +2 -2
  57. package/dist/cjs/tds-side-menu-dropdown-list-item.cjs.entry.js +3 -1
  58. package/dist/cjs/tds-side-menu-dropdown-list.cjs.entry.js +3 -1
  59. package/dist/cjs/tds-side-menu-dropdown.cjs.entry.js +2 -1
  60. package/dist/cjs/tds-side-menu-item.cjs.entry.js +3 -1
  61. package/dist/cjs/tds-side-menu-overlay.cjs.entry.js +1 -1
  62. package/dist/cjs/tds-side-menu-user-image_2.cjs.entry.js +1 -1
  63. package/dist/cjs/tds-side-menu-user.cjs.entry.js +1 -1
  64. package/dist/cjs/tds-side-menu.cjs.entry.js +1 -1
  65. package/dist/cjs/tds-slider.cjs.entry.js +1 -1
  66. package/dist/cjs/tds-spinner.cjs.entry.js +1 -1
  67. package/dist/cjs/tds-step.cjs.entry.js +1 -1
  68. package/dist/cjs/tds-stepper.cjs.entry.js +1 -1
  69. package/dist/cjs/tds-table-body-row-expandable.cjs.entry.js +1 -1
  70. package/dist/cjs/tds-table-body-row.cjs.entry.js +1 -1
  71. package/dist/cjs/tds-table-body.cjs.entry.js +1 -1
  72. package/dist/cjs/tds-table-footer.cjs.entry.js +1 -1
  73. package/dist/cjs/tds-table-header.cjs.entry.js +1 -1
  74. package/dist/cjs/tds-table-toolbar.cjs.entry.js +1 -1
  75. package/dist/cjs/tds-table.cjs.entry.js +1 -1
  76. package/dist/cjs/tds-text-field.cjs.entry.js +1 -1
  77. package/dist/cjs/tds-textarea.cjs.entry.js +1 -1
  78. package/dist/cjs/tds-toast.cjs.entry.js +2 -2
  79. package/dist/cjs/tds-toggle.cjs.entry.js +1 -1
  80. package/dist/cjs/tds-tooltip.cjs.entry.js +1 -1
  81. package/dist/cjs/tegel.cjs.js +3 -3
  82. package/dist/collection/collection-manifest.json +2 -2
  83. package/dist/collection/components/button/button.css +12 -12
  84. package/dist/collection/components/card/card.css +3 -2
  85. package/dist/collection/components/datetime/datetime.stories.js +2 -2
  86. package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +1 -1
  87. package/dist/collection/components/dropdown/dropdown.js +15 -7
  88. package/dist/collection/components/dropdown/test/dropdown.e2e.js +32 -0
  89. package/dist/collection/components/dropdown/test/dropdown.filter.spec.js +49 -0
  90. package/dist/collection/components/dropdown/test/dropdown.multiselect.e2e.js +31 -0
  91. package/dist/collection/components/dropdown/test/dropdown.multiselect.spec.js +51 -0
  92. package/dist/collection/components/dropdown/test/dropdown.spec.js +51 -0
  93. package/dist/collection/components/footer/footer.js +1 -2
  94. package/dist/collection/components/modal/modal.css +27 -33
  95. package/dist/collection/components/modal/modal.js +11 -15
  96. package/dist/collection/components/modal/modal.stories.js +16 -6
  97. package/dist/collection/components/side-menu/side-menu-collapse-button/side-menu-collapse-button.js +1 -1
  98. package/dist/collection/components/side-menu/side-menu-dropdown/side-menu-dropdown.js +1 -0
  99. package/dist/collection/components/side-menu/side-menu-dropdown-list/side-menu-dropdown-list.js +2 -0
  100. package/dist/collection/components/side-menu/side-menu-dropdown-list-item/side-menu-dropdown-list-item.js +2 -0
  101. package/dist/collection/components/side-menu/side-menu-item/side-menu-item.js +2 -0
  102. package/dist/collection/components/side-menu/side-menu.js +3 -3
  103. package/dist/collection/components/side-menu/side-menu.stories.js +11 -2
  104. package/dist/collection/components/stepper/stepper.js +5 -2
  105. package/dist/collection/components/table/table/table.js +1 -1
  106. package/dist/collection/components/table/table.filtering.spec.js +0 -3
  107. package/dist/collection/components/tabs/folder-tabs/folder-tab/folder-tab.css +3 -2
  108. package/dist/collection/components/tabs/inline-tabs/inline-tab/inline-tab.css +3 -2
  109. package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +1 -1
  110. package/dist/collection/components/tabs/navigation-tabs/navigation-tab/navigation-tab.css +4 -3
  111. package/dist/collection/components/toast/toast.css +6 -4
  112. package/dist/components/popover-core.js +5 -1
  113. package/dist/components/side-menu-item.js +2 -0
  114. package/dist/components/tds-badge.js +3 -0
  115. package/dist/components/tds-button.js +1 -1
  116. package/dist/components/tds-card.js +1 -1
  117. package/dist/components/tds-dropdown.js +17 -7
  118. package/dist/components/tds-folder-tab.js +1 -1
  119. package/dist/components/tds-folder-tabs.js +2 -0
  120. package/dist/components/tds-inline-tab.js +1 -1
  121. package/dist/components/tds-inline-tabs.js +2 -0
  122. package/dist/components/tds-modal.js +12 -16
  123. package/dist/components/tds-navigation-tab.js +1 -1
  124. package/dist/components/tds-navigation-tabs.js +2 -0
  125. package/dist/components/tds-side-menu-collapse-button.js +1 -1
  126. package/dist/components/tds-side-menu-dropdown-list-item.js +2 -0
  127. package/dist/components/tds-side-menu-dropdown-list.js +2 -0
  128. package/dist/components/tds-side-menu-dropdown.js +1 -0
  129. package/dist/components/tds-side-menu.js +3 -1
  130. package/dist/components/tds-slider.js +3 -1
  131. package/dist/components/tds-stepper.js +5 -0
  132. package/dist/components/tds-table.js +7 -0
  133. package/dist/components/tds-toast.js +1 -1
  134. package/dist/esm/{index-21543b0f.js → index-35cb608c.js} +91 -20
  135. package/dist/esm/loader.js +3 -3
  136. package/dist/esm/tds-accordion-item.entry.js +1 -1
  137. package/dist/esm/tds-accordion.entry.js +1 -1
  138. package/dist/esm/tds-badge.entry.js +1 -1
  139. package/dist/esm/tds-banner.entry.js +1 -1
  140. package/dist/esm/tds-block.entry.js +1 -1
  141. package/dist/esm/tds-body-cell.entry.js +1 -1
  142. package/dist/esm/tds-breadcrumb.entry.js +1 -1
  143. package/dist/esm/tds-breadcrumbs.entry.js +1 -1
  144. package/dist/esm/tds-button.entry.js +2 -2
  145. package/dist/esm/tds-card.entry.js +2 -2
  146. package/dist/esm/tds-checkbox.entry.js +1 -1
  147. package/dist/esm/tds-chip.entry.js +1 -1
  148. package/dist/esm/tds-core-header-item_2.entry.js +1 -1
  149. package/dist/esm/tds-datetime.entry.js +1 -1
  150. package/dist/esm/tds-divider.entry.js +1 -1
  151. package/dist/esm/tds-dropdown-option.entry.js +1 -1
  152. package/dist/esm/tds-dropdown.entry.js +15 -7
  153. package/dist/esm/tds-folder-tab.entry.js +2 -2
  154. package/dist/esm/tds-folder-tabs.entry.js +1 -1
  155. package/dist/esm/tds-footer-group.entry.js +1 -1
  156. package/dist/esm/tds-footer-item.entry.js +1 -1
  157. package/dist/esm/tds-footer.entry.js +1 -1
  158. package/dist/esm/tds-header-brand-symbol.entry.js +1 -1
  159. package/dist/esm/tds-header-cell.entry.js +1 -1
  160. package/dist/esm/tds-header-dropdown-list-item.entry.js +1 -1
  161. package/dist/esm/tds-header-dropdown-list-user.entry.js +1 -1
  162. package/dist/esm/tds-header-dropdown-list.entry.js +1 -1
  163. package/dist/esm/tds-header-dropdown.entry.js +1 -1
  164. package/dist/esm/tds-header-hamburger.entry.js +1 -1
  165. package/dist/esm/tds-header-launcher-button.entry.js +1 -1
  166. package/dist/esm/tds-header-launcher-grid-item.entry.js +1 -1
  167. package/dist/esm/tds-header-launcher-grid-title.entry.js +1 -1
  168. package/dist/esm/tds-header-launcher-grid.entry.js +1 -1
  169. package/dist/esm/tds-header-launcher-list-item.entry.js +1 -1
  170. package/dist/esm/tds-header-launcher-list-title.entry.js +1 -1
  171. package/dist/esm/tds-header-launcher-list.entry.js +1 -1
  172. package/dist/esm/tds-header-launcher.entry.js +1 -1
  173. package/dist/esm/tds-header-title.entry.js +1 -1
  174. package/dist/esm/tds-header.entry.js +1 -1
  175. package/dist/esm/tds-icon.entry.js +1 -1
  176. package/dist/esm/tds-inline-tab.entry.js +2 -2
  177. package/dist/esm/tds-inline-tabs.entry.js +1 -1
  178. package/dist/esm/tds-link.entry.js +1 -1
  179. package/dist/esm/tds-message.entry.js +1 -1
  180. package/dist/esm/tds-modal.entry.js +13 -17
  181. package/dist/esm/tds-navigation-tab.entry.js +2 -2
  182. package/dist/esm/tds-navigation-tabs.entry.js +1 -1
  183. package/dist/esm/tds-popover-canvas.entry.js +1 -1
  184. package/dist/esm/tds-popover-core.entry.js +1 -1
  185. package/dist/esm/tds-popover-menu-item.entry.js +1 -1
  186. package/dist/esm/tds-popover-menu.entry.js +1 -1
  187. package/dist/esm/tds-radio-button.entry.js +1 -1
  188. package/dist/esm/tds-side-menu-close-button.entry.js +1 -1
  189. package/dist/esm/tds-side-menu-collapse-button.entry.js +2 -2
  190. package/dist/esm/tds-side-menu-dropdown-list-item.entry.js +3 -1
  191. package/dist/esm/tds-side-menu-dropdown-list.entry.js +3 -1
  192. package/dist/esm/tds-side-menu-dropdown.entry.js +2 -1
  193. package/dist/esm/tds-side-menu-item.entry.js +3 -1
  194. package/dist/esm/tds-side-menu-overlay.entry.js +1 -1
  195. package/dist/esm/tds-side-menu-user-image_2.entry.js +1 -1
  196. package/dist/esm/tds-side-menu-user.entry.js +1 -1
  197. package/dist/esm/tds-side-menu.entry.js +1 -1
  198. package/dist/esm/tds-slider.entry.js +1 -1
  199. package/dist/esm/tds-spinner.entry.js +1 -1
  200. package/dist/esm/tds-step.entry.js +1 -1
  201. package/dist/esm/tds-stepper.entry.js +1 -1
  202. package/dist/esm/tds-table-body-row-expandable.entry.js +1 -1
  203. package/dist/esm/tds-table-body-row.entry.js +1 -1
  204. package/dist/esm/tds-table-body.entry.js +1 -1
  205. package/dist/esm/tds-table-footer.entry.js +1 -1
  206. package/dist/esm/tds-table-header.entry.js +1 -1
  207. package/dist/esm/tds-table-toolbar.entry.js +1 -1
  208. package/dist/esm/tds-table.entry.js +1 -1
  209. package/dist/esm/tds-text-field.entry.js +1 -1
  210. package/dist/esm/tds-textarea.entry.js +1 -1
  211. package/dist/esm/tds-toast.entry.js +2 -2
  212. package/dist/esm/tds-toggle.entry.js +1 -1
  213. package/dist/esm/tds-tooltip.entry.js +1 -1
  214. package/dist/esm/tegel.js +4 -4
  215. package/dist/tegel/{p-9bc33f53.entry.js → p-016d07b2.entry.js} +1 -1
  216. package/dist/tegel/{p-950ad7d7.entry.js → p-03fc5ca3.entry.js} +1 -1
  217. package/dist/tegel/{p-e122947b.entry.js → p-05eda91f.entry.js} +1 -1
  218. package/dist/tegel/{p-ac8585f9.entry.js → p-0893ad9d.entry.js} +1 -1
  219. package/dist/tegel/{p-5a6efad0.entry.js → p-0be49c5e.entry.js} +1 -1
  220. package/dist/tegel/{p-44a3b63b.entry.js → p-0d300a96.entry.js} +1 -1
  221. package/dist/tegel/{p-32c133ba.entry.js → p-0e6f9768.entry.js} +1 -1
  222. package/dist/tegel/{p-e179315a.entry.js → p-18de1663.entry.js} +1 -1
  223. package/dist/tegel/{p-35265b56.entry.js → p-1a978a31.entry.js} +1 -1
  224. package/dist/tegel/{p-f9c37154.entry.js → p-1efa3ab3.entry.js} +1 -1
  225. package/dist/tegel/{p-ac253317.entry.js → p-1f35bdc7.entry.js} +1 -1
  226. package/dist/tegel/{p-22f15794.entry.js → p-25347b32.entry.js} +1 -1
  227. package/dist/tegel/p-25f306a0.js +2 -0
  228. package/dist/tegel/p-2b8680cb.entry.js +1 -0
  229. package/dist/tegel/{p-7e0ec688.entry.js → p-2eb27fd7.entry.js} +1 -1
  230. package/dist/tegel/{p-adca7314.entry.js → p-3516a5fc.entry.js} +1 -1
  231. package/dist/tegel/{p-a7a12627.entry.js → p-374161a8.entry.js} +1 -1
  232. package/dist/tegel/{p-595c3a77.entry.js → p-3ade3e28.entry.js} +1 -1
  233. package/dist/tegel/{p-0a8ee1f9.entry.js → p-41016d27.entry.js} +1 -1
  234. package/dist/tegel/p-517deee0.entry.js +1 -0
  235. package/dist/tegel/{p-74644ab7.entry.js → p-52979643.entry.js} +1 -1
  236. package/dist/tegel/{p-df7f3773.entry.js → p-535504e3.entry.js} +1 -1
  237. package/dist/tegel/{p-df2c8c5b.entry.js → p-54680d69.entry.js} +1 -1
  238. package/dist/tegel/p-5b9f499d.entry.js +1 -0
  239. package/dist/tegel/{p-363ee512.entry.js → p-5e9aacd5.entry.js} +1 -1
  240. package/dist/tegel/p-5f203f87.entry.js +1 -0
  241. package/dist/tegel/{p-cc2a998f.entry.js → p-6adb65cb.entry.js} +1 -1
  242. package/dist/tegel/{p-72bbf0af.entry.js → p-6e863efc.entry.js} +1 -1
  243. package/dist/tegel/{p-970da069.entry.js → p-72d3a19b.entry.js} +1 -1
  244. package/dist/tegel/{p-90597e3c.entry.js → p-7480ddd3.entry.js} +1 -1
  245. package/dist/tegel/{p-2727d592.entry.js → p-78f42968.entry.js} +1 -1
  246. package/dist/tegel/{p-26e5d00c.entry.js → p-792a3cb6.entry.js} +1 -1
  247. package/dist/tegel/{p-17d0b13e.entry.js → p-80a99356.entry.js} +1 -1
  248. package/dist/tegel/p-80b501e3.entry.js +1 -0
  249. package/dist/tegel/{p-cc771b46.entry.js → p-89e23724.entry.js} +1 -1
  250. package/dist/tegel/{p-931a6b29.entry.js → p-8f1a037c.entry.js} +1 -1
  251. package/dist/tegel/{p-5b9115c3.entry.js → p-900532bf.entry.js} +1 -1
  252. package/dist/tegel/{p-57156832.entry.js → p-90987d11.entry.js} +1 -1
  253. package/dist/tegel/{p-4bca96e5.entry.js → p-92984605.entry.js} +1 -1
  254. package/dist/tegel/p-97c23511.entry.js +1 -0
  255. package/dist/tegel/{p-4a02a38f.entry.js → p-9839df9e.entry.js} +1 -1
  256. package/dist/tegel/{p-1168e527.entry.js → p-a001ec58.entry.js} +1 -1
  257. package/dist/tegel/{p-adf21f07.entry.js → p-a0f3086c.entry.js} +1 -1
  258. package/dist/tegel/{p-7b0dabcb.entry.js → p-a5152b59.entry.js} +1 -1
  259. package/dist/tegel/{p-4af50429.entry.js → p-a5a9cac8.entry.js} +1 -1
  260. package/dist/tegel/{p-f375707c.entry.js → p-a8712a64.entry.js} +1 -1
  261. package/dist/tegel/{p-50ea7ad8.entry.js → p-aaaced18.entry.js} +1 -1
  262. package/dist/tegel/{p-f6ca4367.entry.js → p-b0703dd5.entry.js} +1 -1
  263. package/dist/tegel/{p-762357bb.entry.js → p-bc94c1c2.entry.js} +1 -1
  264. package/dist/tegel/{p-52719efc.entry.js → p-be7119d3.entry.js} +1 -1
  265. package/dist/tegel/{p-b1e3feda.entry.js → p-c0b7acbb.entry.js} +1 -1
  266. package/dist/tegel/p-c191ca51.entry.js +1 -0
  267. package/dist/tegel/{p-3cd5821f.entry.js → p-c277a05d.entry.js} +1 -1
  268. package/dist/tegel/{p-15230250.entry.js → p-c56160f2.entry.js} +1 -1
  269. package/dist/tegel/{p-2ab8970f.entry.js → p-cb9aba1b.entry.js} +1 -1
  270. package/dist/tegel/{p-f84d4394.entry.js → p-ceaa2ea7.entry.js} +1 -1
  271. package/dist/tegel/{p-0c4fbe10.entry.js → p-d1dffa21.entry.js} +1 -1
  272. package/dist/tegel/{p-edc8b0b0.entry.js → p-d5bf6d99.entry.js} +1 -1
  273. package/dist/tegel/{p-4df1ed46.entry.js → p-d5d2a4f0.entry.js} +1 -1
  274. package/dist/tegel/{p-8ad9d997.entry.js → p-d6c9b267.entry.js} +1 -1
  275. package/dist/tegel/{p-289a487d.entry.js → p-d8137332.entry.js} +1 -1
  276. package/dist/tegel/{p-3ad7d61d.entry.js → p-db67d784.entry.js} +1 -1
  277. package/dist/tegel/{p-0f8f9398.entry.js → p-dc0fcac8.entry.js} +1 -1
  278. package/dist/tegel/p-dfbb887e.entry.js +1 -0
  279. package/dist/tegel/{p-ff07dea0.entry.js → p-e035ddeb.entry.js} +1 -1
  280. package/dist/tegel/{p-30c571d4.entry.js → p-e3aa0903.entry.js} +1 -1
  281. package/dist/tegel/p-e3c5a663.entry.js +1 -0
  282. package/dist/tegel/{p-555e1263.entry.js → p-e4db065d.entry.js} +1 -1
  283. package/dist/tegel/{p-f71c9fe3.entry.js → p-e55ec17c.entry.js} +1 -1
  284. package/dist/tegel/{p-da386849.entry.js → p-e8c8ed2f.entry.js} +1 -1
  285. package/dist/tegel/{p-cc0ea750.entry.js → p-ea5a0c9d.entry.js} +1 -1
  286. package/dist/tegel/{p-a3123355.entry.js → p-eda7ecf6.entry.js} +1 -1
  287. package/dist/tegel/{p-e74f77c4.entry.js → p-efb40b9c.entry.js} +1 -1
  288. package/dist/tegel/p-f5063d5b.entry.js +1 -0
  289. package/dist/tegel/{p-d98cf434.entry.js → p-f55da9ef.entry.js} +1 -1
  290. package/dist/tegel/{p-a9df694d.entry.js → p-f8da6ce5.entry.js} +1 -1
  291. package/dist/tegel/{p-a0a1840f.entry.js → p-f935d5f3.entry.js} +1 -1
  292. package/dist/tegel/{p-3079490b.entry.js → p-fc76d99c.entry.js} +1 -1
  293. package/dist/tegel/{p-2955b397.entry.js → p-fecfc7c7.entry.js} +1 -1
  294. package/dist/tegel/tegel.css +2 -2
  295. package/dist/tegel/tegel.esm.js +1 -1
  296. package/dist/types/components/dropdown/dropdown.d.ts +4 -3
  297. package/dist/types/components/modal/modal.d.ts +2 -2
  298. package/dist/types/components/modal/modal.stories.d.ts +8 -0
  299. package/dist/types/components/side-menu/side-menu.stories.d.ts +12 -0
  300. package/dist/types/components/stepper/stepper.d.ts +1 -0
  301. package/dist/types/components.d.ts +0 -1
  302. package/package.json +3 -2
  303. package/dist/tegel/p-235cda64.entry.js +0 -1
  304. package/dist/tegel/p-23822382.entry.js +0 -1
  305. package/dist/tegel/p-30743f62.entry.js +0 -1
  306. package/dist/tegel/p-31561847.js +0 -2
  307. package/dist/tegel/p-3b39140f.entry.js +0 -1
  308. package/dist/tegel/p-9920be66.entry.js +0 -1
  309. package/dist/tegel/p-a3440291.entry.js +0 -1
  310. package/dist/tegel/p-c1b19d10.entry.js +0 -1
  311. package/dist/tegel/p-c46dad72.entry.js +0 -1
  312. package/dist/tegel/p-cb3ba5d0.entry.js +0 -1
  313. package/dist/tegel/p-effd0764.entry.js +0 -1
@@ -91,6 +91,7 @@ const TdsDropdown$1 = /*@__PURE__*/ proxyCustomElement(class TdsDropdown extends
91
91
  element.setSelected(false);
92
92
  }
93
93
  }
94
+ this.setValueAttribute();
94
95
  return element;
95
96
  });
96
97
  };
@@ -124,6 +125,12 @@ const TdsDropdown$1 = /*@__PURE__*/ proxyCustomElement(class TdsDropdown extends
124
125
  const labels = this.getSelectedChildrenLabels();
125
126
  return this.filter ? labels === null || labels === void 0 ? void 0 : labels.join(', ') : labels === null || labels === void 0 ? void 0 : labels.toString();
126
127
  };
128
+ this.setValueAttribute = () => {
129
+ var _a, _b, _c;
130
+ if (((_a = this.value) === null || _a === void 0 ? void 0 : _a.toString()) === '')
131
+ this.value = null;
132
+ this.host.setAttribute('value', (_c = (_b = this.value) === null || _b === void 0 ? void 0 : _b.map((val) => val).toString()) !== null && _c !== void 0 ? _c : null);
133
+ };
127
134
  this.handleFilter = (event) => {
128
135
  this.tdsInput.emit(event);
129
136
  const query = event.target.value.toLowerCase();
@@ -201,9 +208,9 @@ const TdsDropdown$1 = /*@__PURE__*/ proxyCustomElement(class TdsDropdown extends
201
208
  * </code>
202
209
  */
203
210
  // The label is optional here ONLY to not break the API. Should be removed for 2.0.
211
+ // @ts-ignore
204
212
  // eslint-disable-next-line no-unused-vars, @typescript-eslint/no-unused-vars
205
213
  async setValue(value, label) {
206
- var _a;
207
214
  let nextValue;
208
215
  if (typeof value === 'string')
209
216
  nextValue = [value];
@@ -221,11 +228,11 @@ const TdsDropdown$1 = /*@__PURE__*/ proxyCustomElement(class TdsDropdown extends
221
228
  }
222
229
  }
223
230
  this.value = nextValue;
224
- this.host.setAttribute('value', (_a = this.value) === null || _a === void 0 ? void 0 : _a.map((val) => val).toString());
231
+ this.setValueAttribute();
225
232
  this.selectChildrenAsSelectedBasedOnSelectionProp();
226
233
  this.handleChange();
227
234
  /* This returns an array of object with a value and label pair. This is ONLY to not break the API. Should be removed for 2.0. */
228
- // TODO - Clean up and just return this.value for 2.0
235
+ /* https://tegel.atlassian.net/browse/CDEP-2703 */
229
236
  const selection = this.getSelectedChildren().map((element) => ({
230
237
  value: element.value,
231
238
  label: element.textContent.trim(),
@@ -262,8 +269,9 @@ const TdsDropdown$1 = /*@__PURE__*/ proxyCustomElement(class TdsDropdown extends
262
269
  this.reset();
263
270
  }
264
271
  this.handleChange();
272
+ this.setValueAttribute();
265
273
  /* This returns an array of object with a value and label pair. This is ONLY to not break the API. Should be removed for 2.0. */
266
- // TODO - Clean up and just return this.value for 2.0
274
+ /* https://tegel.atlassian.net/browse/CDEP-2703 */
267
275
  return (_b = this.value) === null || _b === void 0 ? void 0 : _b.map((value) => ({ value, label }));
268
276
  }
269
277
  /** Method for closing the Dropdown. */
@@ -317,7 +325,7 @@ const TdsDropdown$1 = /*@__PURE__*/ proxyCustomElement(class TdsDropdown extends
317
325
  }
318
326
  }
319
327
  }
320
- componentDidLoad() {
328
+ componentWillLoad() {
321
329
  if (this.defaultValue) {
322
330
  this.setDefaultOption();
323
331
  }
@@ -329,7 +337,7 @@ const TdsDropdown$1 = /*@__PURE__*/ proxyCustomElement(class TdsDropdown extends
329
337
  return element;
330
338
  });
331
339
  this.value = null;
332
- this.host.setAttribute('value', null);
340
+ this.setValueAttribute();
333
341
  }
334
342
  selectChildrenAsSelectedBasedOnSelectionProp() {
335
343
  this.getChildren().forEach((element) => {
@@ -419,7 +427,9 @@ const TdsDropdown$1 = /*@__PURE__*/ proxyCustomElement(class TdsDropdown extends
419
427
  "appendValue": [64],
420
428
  "removeValue": [64],
421
429
  "close": [64]
422
- }, [[9, "mousedown", "onAnyClick"], [0, "keydown", "onKeyDown"]]]);
430
+ }, [[9, "mousedown", "onAnyClick"], [0, "keydown", "onKeyDown"]], {
431
+ "open": ["handleOpenState"]
432
+ }]);
423
433
  function defineCustomElement$1() {
424
434
  if (typeof customElements === "undefined") {
425
435
  return;
@@ -1,6 +1,6 @@
1
1
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
2
 
3
- const folderTabCss = ":host{box-sizing:border-box;position:relative}:host *{box-sizing:border-box}:host ::slotted(*){all:unset;min-width:142px;display:block;width:calc(100% - 32px);font:var(--tds-headline-07);letter-spacing:var(--tds-headline-07-ls);cursor:pointer;padding:16px;white-space:nowrap;text-decoration:none;text-align:left;outline:none;border:none;border-left:1px solid;border-left-color:transparent}:host ::slotted(*:focus-visible){outline:2px solid var(--tds-blue-400);outline-offset:-2px}:host div:not(.selected){background-color:var(--tds-folder-tab-background)}:host div:not(.selected) ::slotted(*){border-left-color:var(--tds-folder-tab-divider-color);border-top:2px solid var(--tds-folder-tab-background);color:var(--tds-folder-tab-item-color)}:host div:not(.selected):hover:not(.disabled){background-color:var(--tds-folder-tab-background-hover);cursor:pointer}:host div:not(.selected):hover:not(.disabled) ::slotted(*){border-top-color:var(--tds-folder-tab-background-hover);color:var(--tds-folder-tab-color)}:host div:not(.selected).disabled ::slotted(*){color:var(--tds-folder-tab-item-color-disabled)}:host div:not(.selected).disabled ::slotted(*:focus-visible){outline:none}:host div:not(.selected).disabled ::slotted(*:hover){cursor:not-allowed}:host div:not(.selected).disabled ::slotted(*::after){content:none}:host .selected{background-color:var(--tds-folder-tab-background-selected);border-top:2px solid var(--tds-folder-tab-border-selected)}:host .selected::after{content:\" \";background-color:var(--tds-folder-tab-background-selected);width:1px;top:0;bottom:0;right:-1px;display:block;position:absolute;z-index:1}:host .selected ::slotted(*){color:var(--tds-folder-tab-color)}:host(.first) :not(.selected) ::slotted(*){border-left-color:transparent}";
3
+ const folderTabCss = ":host{box-sizing:border-box;position:relative}:host *{box-sizing:border-box}:host ::slotted(*){all:unset;min-width:142px;display:block;width:calc(100% - 32px);font:var(--tds-headline-07) !important;letter-spacing:var(--tds-headline-07-ls) !important;cursor:pointer;padding:16px;white-space:nowrap;text-decoration:none;text-align:left;outline:none;border:none;border-left:1px solid;border-left-color:transparent}:host ::slotted(*:focus-visible){outline:2px solid var(--tds-blue-400);outline-offset:-2px}:host div:not(.selected){background-color:var(--tds-folder-tab-background)}:host div:not(.selected) ::slotted(*){border-left-color:var(--tds-folder-tab-divider-color);border-top:2px solid var(--tds-folder-tab-background);color:var(--tds-folder-tab-item-color)}:host div:not(.selected):hover:not(.disabled){background-color:var(--tds-folder-tab-background-hover);cursor:pointer}:host div:not(.selected):hover:not(.disabled) ::slotted(*){border-top-color:var(--tds-folder-tab-background-hover);color:var(--tds-folder-tab-color)}:host div:not(.selected).disabled ::slotted(*){color:var(--tds-folder-tab-item-color-disabled)}:host div:not(.selected).disabled ::slotted(*:focus-visible){outline:none}:host div:not(.selected).disabled ::slotted(*:hover){cursor:not-allowed}:host div:not(.selected).disabled ::slotted(*::after){content:none}:host .selected{background-color:var(--tds-folder-tab-background-selected);border-top:2px solid var(--tds-folder-tab-border-selected)}:host .selected::after{content:\" \";background-color:var(--tds-folder-tab-background-selected);width:1px;top:0;bottom:0;right:-1px;display:block;position:absolute;z-index:1}:host .selected ::slotted(*){color:var(--tds-folder-tab-color)}:host(.first) :not(.selected) ::slotted(*){border-left-color:transparent}";
4
4
 
5
5
  const TdsFolderTab$1 = /*@__PURE__*/ proxyCustomElement(class TdsFolderTab extends HTMLElement {
6
6
  constructor() {
@@ -175,6 +175,8 @@ const TdsFolderTabs$1 = /*@__PURE__*/ proxyCustomElement(class TdsFolderTabs ext
175
175
  "showLeftScroll": [32],
176
176
  "showRightScroll": [32],
177
177
  "selectTab": [64]
178
+ }, undefined, {
179
+ "selectedIndex": ["handleSelectedIndexUpdate"]
178
180
  }]);
179
181
  function defineCustomElement$1() {
180
182
  if (typeof customElements === "undefined") {
@@ -1,6 +1,6 @@
1
1
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
2
 
3
- const inlineTabCss = ":host{box-sizing:border-box;z-index:200;display:block;position:relative}:host *{box-sizing:border-box}:host ::slotted(*){all:unset;font:var(--tds-headline-07);letter-spacing:var(--tds-headline-07-ls);color:var(--tds-navigation-tabs-tab-color);text-decoration:none;display:block;position:relative;transition:color 0.15s ease-in-out 0s;white-space:nowrap;background-color:transparent;border:0;width:100%;padding:20px 4px}:host ::slotted(*:focus-visible)::before{content:\"\";position:absolute;left:0;right:0;top:20px;bottom:20px;outline:2px solid var(--tds-blue-400)}:host .inline-tab-item:not(.selected)::after{width:0%;transition:width 0.15s ease-in-out 0s}:host .inline-tab-item{position:relative;margin-right:32px}:host .inline-tab-item:hover{cursor:pointer}:host .inline-tab-item:hover::after{width:100%}:host .inline-tab-item::after{content:\" \";position:absolute;bottom:0;right:0;left:0;margin-left:auto;width:0%;margin-right:auto;height:2px;background-color:var(--tds-inline-tabs-tab-indicator-background-hover);z-index:1}:host .selected ::slotted(*){color:var(--tds-inline-tabs-tab-color-selected)}:host .selected::after{width:100%;background-color:var(--tds-inline-tabs-tab-indicator-background-active)}:host .disabled{color:var(--tds-inline-tabs-tab-color-disabled)}:host .disabled ::slotted(*){opacity:var(--tds-inline-tabs-tab-color-opacity-disabled)}:host .disabled::after{content:none}:host .disabled ::slotted(*:hover){cursor:not-allowed}:host .disabled ::slotted(*:focus-visible){outline:none}:host(.first){margin-left:32px}:host(.last){margin-right:32px}";
3
+ const inlineTabCss = ":host{box-sizing:border-box;z-index:200;display:block;position:relative}:host *{box-sizing:border-box}:host ::slotted(*){all:unset;font:var(--tds-headline-07) !important;letter-spacing:var(--tds-headline-07-ls) !important;color:var(--tds-navigation-tabs-tab-color);text-decoration:none;display:block;position:relative;transition:color 0.15s ease-in-out 0s;white-space:nowrap;background-color:transparent;border:0;width:100%;padding:20px 4px}:host ::slotted(*:focus-visible)::before{content:\"\";position:absolute;left:0;right:0;top:20px;bottom:20px;outline:2px solid var(--tds-blue-400)}:host .inline-tab-item:not(.selected)::after{width:0%;transition:width 0.15s ease-in-out 0s}:host .inline-tab-item{position:relative;margin-right:32px}:host .inline-tab-item:hover{cursor:pointer}:host .inline-tab-item:hover::after{width:100%}:host .inline-tab-item::after{content:\" \";position:absolute;bottom:0;right:0;left:0;margin-left:auto;width:0%;margin-right:auto;height:2px;background-color:var(--tds-inline-tabs-tab-indicator-background-hover);z-index:1}:host .selected ::slotted(*){color:var(--tds-inline-tabs-tab-color-selected)}:host .selected::after{width:100%;background-color:var(--tds-inline-tabs-tab-indicator-background-active)}:host .disabled{color:var(--tds-inline-tabs-tab-color-disabled)}:host .disabled ::slotted(*){opacity:var(--tds-inline-tabs-tab-color-opacity-disabled)}:host .disabled::after{content:none}:host .disabled ::slotted(*:hover){cursor:not-allowed}:host .disabled ::slotted(*:focus-visible){outline:none}:host(.first){margin-left:32px}:host(.last){margin-right:32px}";
4
4
 
5
5
  const TdsInlineTab$1 = /*@__PURE__*/ proxyCustomElement(class TdsInlineTab extends HTMLElement {
6
6
  constructor() {
@@ -159,6 +159,8 @@ const TdsInlineTabs$1 = /*@__PURE__*/ proxyCustomElement(class TdsInlineTabs ext
159
159
  "showRightScroll": [32],
160
160
  "buttonWidth": [32],
161
161
  "selectTab": [64]
162
+ }, undefined, {
163
+ "selectedIndex": ["handleSelectedIndexUpdate"]
162
164
  }]);
163
165
  function defineCustomElement$1() {
164
166
  if (typeof customElements === "undefined") {
@@ -2,7 +2,7 @@ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/
2
2
  import { h as hasSlot } from './hasSlot.js';
3
3
  import { d as defineCustomElement$2 } from './icon.js';
4
4
 
5
- const modalCss = ":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;}.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:75%}.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);letter-spacing:var(--tds-headline-05-ls);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;left:0;top:0;position:fixed;height:100%;width:100%;z-index:700;background-color:var(--tds-modal-backdrop);padding:0 16px}.tds-modal-backdrop *{box-sizing:border-box}@media (max-width: 320px){.tds-modal-backdrop{padding:0}}.tds-modal-backdrop.show{display:flex}.tds-modal-backdrop.hide{display:none}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{left:0;top:0;position:fixed;height:100%;width:100%;z-index:700;background-color:var(--tds-modal-backdrop);padding:0 16px}@media (max-width: 320px){:host{padding:0}}:host.show{display:flex}:host.hide{display:none}:host .tds-modal-close{border:none;background-color:transparent}:host .tds-modal-close-btn{border:none;background-color:transparent}:host(.show){display:flex}:host(.hide){display:none}";
5
+ const modalCss = ":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:75%}.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}";
6
6
 
7
7
  const TdsModal$1 = /*@__PURE__*/ proxyCustomElement(class TdsModal extends HTMLElement {
8
8
  constructor() {
@@ -19,6 +19,15 @@ const TdsModal$1 = /*@__PURE__*/ proxyCustomElement(class TdsModal extends HTMLE
19
19
  this.handleShow = () => {
20
20
  this.isShown = true;
21
21
  };
22
+ /** Checks if click on Modal is on overlay, if so it closes the Modal if prevent is not true. */
23
+ this.handleOverlayClick = (event) => {
24
+ const targetList = event.composedPath();
25
+ const target = targetList[0];
26
+ if (target.classList[0] === 'tds-modal-close' ||
27
+ (target.classList[0] === 'tds-modal-backdrop' && this.prevent === false)) {
28
+ this.handleClose(event);
29
+ }
30
+ };
22
31
  /** Adds an event listener to the reference element that shows/closes the Modal. */
23
32
  this.initializeReferenceElement = (referenceEl) => {
24
33
  if (referenceEl) {
@@ -60,7 +69,7 @@ const TdsModal$1 = /*@__PURE__*/ proxyCustomElement(class TdsModal extends HTMLE
60
69
  this.isShown = false;
61
70
  }
62
71
  connectedCallback() {
63
- if (this.show !== null) {
72
+ if (this.show !== undefined) {
64
73
  this.isShown = this.show;
65
74
  }
66
75
  this.setDismissButtons();
@@ -69,15 +78,6 @@ const TdsModal$1 = /*@__PURE__*/ proxyCustomElement(class TdsModal extends HTMLE
69
78
  console.warn("Tegel Modal component: Using both header prop and header slot might break modal's design. Please use just one of them. ");
70
79
  }
71
80
  }
72
- /** Checks if click on Modal is on overlay, if so it closes the Modal if prevent is not true. */
73
- handleOverlayClick(event) {
74
- const targetList = event.composedPath();
75
- const target = targetList[0];
76
- if (target.classList[0] === 'tds-modal-close' ||
77
- (target.classList[0] === 'tds-modal-backdrop' && this.prevent === false)) {
78
- this.handleClose(event);
79
- }
80
- }
81
81
  /** Adds an event listener to the dismiss buttons that closes the Modal. */
82
82
  setDismissButtons() {
83
83
  this.host.querySelectorAll('[data-dismiss-modal]').forEach((dismissButton) => {
@@ -89,11 +89,7 @@ const TdsModal$1 = /*@__PURE__*/ proxyCustomElement(class TdsModal extends HTMLE
89
89
  render() {
90
90
  const usesHeaderSlot = hasSlot('header', this.host);
91
91
  const usesActionsSlot = hasSlot('actions', this.host);
92
- return (h(Host, { onClick: (event) => {
93
- this.handleOverlayClick(event);
94
- }, class: `tds-modal-backdrop ${this.isShown ? 'show' : 'hide'}` }, h("div", { class: `tds-modal tds-modal__actions-${this.actionsPosition} tds-modal-${this.size}` }, h("div", { class: "header" }, this.header && h("div", { class: "header" }, this.header), usesHeaderSlot && h("slot", { name: "header" }), h("button", { class: "tds-modal-close", "aria-label": "close", onClick: (event) => {
95
- this.handleClose(event);
96
- } }, h("tds-icon", { name: "cross", size: "20px" }))), h("div", { class: "body" }, h("slot", { name: "body" })), usesActionsSlot && h("slot", { name: "actions" }))));
92
+ return (h(Host, { class: `${this.isShown ? 'show' : 'hide'}`, onClick: (event) => this.handleOverlayClick(event) }, h("div", { class: "tds-modal-backdrop" }), h("div", { class: `tds-modal tds-modal__actions-${this.actionsPosition} tds-modal-${this.size}` }, h("div", { class: "header" }, this.header && h("div", { class: "header" }, this.header), usesHeaderSlot && h("slot", { name: "header" }), h("button", { class: "tds-modal-close", "aria-label": "close", onClick: (event) => this.handleClose(event) }, h("tds-icon", { name: "cross", size: "20px" }))), h("div", { class: "body" }, h("slot", { name: "body" })), usesActionsSlot && h("slot", { name: "actions" }))));
97
93
  }
98
94
  get host() { return this; }
99
95
  static get style() { return modalCss; }
@@ -1,6 +1,6 @@
1
1
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
2
 
3
- const navigationTabCss = ":host{box-sizing:border-box;z-index:200;display:block}:host *{box-sizing:border-box}:host ::slotted(*){all:unset;font:var(--tds-headline-07);letter-spacing:var(--tds-headline-07-ls);color:var(--tds-navigation-tabs-tab-color);text-decoration:none;display:block;position:relative;transition:color 0.15s ease-in-out 0s;white-space:nowrap;background-color:transparent;border:0;width:100%;padding:26px 4px}:host ::slotted(*:focus-visible)::before{content:\"\";position:absolute;left:0;right:0;top:26px;bottom:26px;outline:2px solid var(--tds-blue-400)}:host .navigation-tab-item:not(.selected)::after{width:0%;transition:width 0.15s ease-in-out 0s}:host .navigation-tab-item{position:relative;margin-right:32px}:host .navigation-tab-item:hover{cursor:pointer}:host .navigation-tab-item:hover::after{width:100%}:host .navigation-tab-item::after{content:\" \";position:absolute;bottom:0;right:0;left:0;margin-left:auto;width:0%;margin-right:auto;height:2px;background-color:var(--tds-navigation-tabs-tab-indicator-background-hover);z-index:1}:host .selected ::slotted(*){color:var(--tds-navigation-tabs-tab-color-selected)}:host .selected::after{width:100%;background-color:var(--tds-navigation-tabs-tab-indicator-background-active)}:host .disabled{color:var(--tds-navigation-tabs-tab-color-disabled)}:host .disabled ::slotted(*){opacity:var(--tds-navigation-tabs-tab-color-opacity-disabled)}:host .disabled::after{content:none}:host .disabled ::slotted(*:hover){cursor:not-allowed}:host .disabled ::slotted(*:focus-visible){outline:none}:host(.first){margin-left:32px}:host(.last){margin-right:32px}";
3
+ const navigationTabCss = ":host{box-sizing:border-box;z-index:200;display:block}:host *{box-sizing:border-box}:host ::slotted(*){all:unset;font:var(--tds-headline-07) !important;letter-spacing:var(--tds-headline-07-ls) !important;color:var(--tds-navigation-tabs-tab-color) !important;text-decoration:none;display:block;position:relative;transition:color 0.15s ease-in-out 0s;white-space:nowrap;background-color:transparent;border:0;width:100%;padding:26px 4px}:host ::slotted(*:focus-visible)::before{content:\"\";position:absolute;left:0;right:0;top:26px;bottom:26px;outline:2px solid var(--tds-blue-400)}:host .navigation-tab-item:not(.selected)::after{width:0%;transition:width 0.15s ease-in-out 0s}:host .navigation-tab-item{position:relative;margin-right:32px}:host .navigation-tab-item:hover{cursor:pointer}:host .navigation-tab-item:hover::after{width:100%}:host .navigation-tab-item::after{content:\" \";position:absolute;bottom:0;right:0;left:0;margin-left:auto;width:0%;margin-right:auto;height:2px;background-color:var(--tds-navigation-tabs-tab-indicator-background-hover);z-index:1}:host .selected ::slotted(*){color:var(--tds-navigation-tabs-tab-color-selected)}:host .selected::after{width:100%;background-color:var(--tds-navigation-tabs-tab-indicator-background-active)}:host .disabled{color:var(--tds-navigation-tabs-tab-color-disabled)}:host .disabled ::slotted(*){opacity:var(--tds-navigation-tabs-tab-color-opacity-disabled)}:host .disabled::after{content:none}:host .disabled ::slotted(*:hover){cursor:not-allowed}:host .disabled ::slotted(*:focus-visible){outline:none}:host(.first){margin-left:32px}:host(.last){margin-right:32px}";
4
4
 
5
5
  const TdsNavigationTab$1 = /*@__PURE__*/ proxyCustomElement(class TdsNavigationTab extends HTMLElement {
6
6
  constructor() {
@@ -152,6 +152,8 @@ const TdsNavigationTabs$1 = /*@__PURE__*/ proxyCustomElement(class TdsNavigation
152
152
  "showLeftScroll": [32],
153
153
  "showRightScroll": [32],
154
154
  "selectTab": [64]
155
+ }, undefined, {
156
+ "selectedIndex": ["handleSelectedIndexUpdate"]
155
157
  }]);
156
158
  function defineCustomElement$1() {
157
159
  if (typeof customElements === "undefined") {
@@ -41,7 +41,7 @@ const TdsSideMenuCollapseButton$1 = /*@__PURE__*/ proxyCustomElement(class TdsSi
41
41
  'state-collapsed': this.collapsed,
42
42
  } }, h("tds-side-menu-item", { class: {
43
43
  button: true,
44
- } }, h("a", null, h("svg", { class: "icon", slot: "icon", fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M16 1.975a1 1 0 0 1 1 1v20.3l9.311-9.312a1 1 0 0 1 1.415 1.414l-9.887 9.887a2.6 2.6 0 0 1-3.677 0l-9.887-9.887a1 1 0 1 1 1.414-1.414L15 23.274V2.975a1 1 0 0 1 1-1ZM5.188 28.001a1 1 0 0 0 0 2h21.62a1 1 0 1 0 0-2H5.188Z", fill: "currentColor" })), h("slot", null))))));
44
+ } }, h("a", null, h("svg", { class: "icon", slot: "icon", fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M16 1.975a1 1 0 0 1 1 1v20.3l9.311-9.312a1 1 0 0 1 1.415 1.414l-9.887 9.887a2.6 2.6 0 0 1-3.677 0l-9.887-9.887a1 1 0 1 1 1.414-1.414L15 23.274V2.975a1 1 0 0 1 1-1ZM5.188 28.001a1 1 0 0 0 0 2h21.62a1 1 0 1 0 0-2H5.188Z", fill: "currentColor" })), !this.collapsed && h("slot", null))))));
45
45
  }
46
46
  get host() { return this; }
47
47
  static get style() { return sideMenuCollapseButtonCss; }
@@ -15,7 +15,9 @@ const TdsSideMenuDropdownListItem$1 = /*@__PURE__*/ proxyCustomElement(class Tds
15
15
  this.collapsed = event.detail.collapsed;
16
16
  }
17
17
  connectedCallback() {
18
+ var _a;
18
19
  this.sideMenuEl = this.host.closest('tds-side-menu');
20
+ this.collapsed = (_a = this.sideMenuEl) === null || _a === void 0 ? void 0 : _a.collapsed;
19
21
  }
20
22
  componentDidLoad() {
21
23
  var _a;
@@ -13,7 +13,9 @@ const TdsSideMenuDropdownList$1 = /*@__PURE__*/ proxyCustomElement(class TdsSide
13
13
  this.collapsed = event.detail.collapsed;
14
14
  }
15
15
  connectedCallback() {
16
+ var _a;
16
17
  this.sideMenuEl = this.host.closest('tds-side-menu');
18
+ this.collapsed = (_a = this.sideMenuEl) === null || _a === void 0 ? void 0 : _a.collapsed;
17
19
  }
18
20
  render() {
19
21
  return (h(Host, { role: "list" }, h("div", { class: {
@@ -49,6 +49,7 @@ const TdsSideMenuDropdown$1 = /*@__PURE__*/ proxyCustomElement(class TdsSideMenu
49
49
  }
50
50
  connectedCallback() {
51
51
  this.sideMenuEl = this.host.closest('tds-side-menu');
52
+ this.collapsed = this.sideMenuEl.collapsed;
52
53
  this.open = this.defaultOpen;
53
54
  }
54
55
  render() {
@@ -73,7 +73,9 @@ const TdsSideMenu$1 = /*@__PURE__*/ proxyCustomElement(class TdsSideMenu extends
73
73
  "collapsed": [4],
74
74
  "isUpperSlotEmpty": [32],
75
75
  "isCollapsed": [32]
76
- }, [[16, "internalTdsCollapse", "collapsedSideMenuEventHandler"]]]);
76
+ }, [[16, "internalTdsCollapse", "collapsedSideMenuEventHandler"]], {
77
+ "collapsed": ["onCollapsedChange"]
78
+ }]);
77
79
  function defineCustomElement$1() {
78
80
  if (typeof customElements === "undefined") {
79
81
  return;
@@ -377,7 +377,9 @@ const TdsSlider$1 = /*@__PURE__*/ proxyCustomElement(class TdsSlider extends HTM
377
377
  "snap": [4],
378
378
  "sliderId": [1, "slider-id"],
379
379
  "reset": [64]
380
- }, [[0, "keydown", "handleKeydown"], [9, "mouseup", "handleMouseUp"], [9, "touchend", "handleTouchEnd"], [9, "mousemove", "handleMouseMove"], [9, "touchmove", "handleTouchMove"]]]);
380
+ }, [[0, "keydown", "handleKeydown"], [9, "mouseup", "handleMouseUp"], [9, "touchend", "handleTouchEnd"], [9, "mousemove", "handleMouseMove"], [9, "touchmove", "handleTouchMove"]], {
381
+ "value": ["handleValueUpdate"]
382
+ }]);
381
383
  function defineCustomElement$1() {
382
384
  if (typeof customElements === "undefined") {
383
385
  return;
@@ -67,6 +67,11 @@ const TdsStepper$1 = /*@__PURE__*/ proxyCustomElement(class TdsStepper extends H
67
67
  "size": [1],
68
68
  "hideLabels": [4, "hide-labels"],
69
69
  "stepperId": [1, "stepper-id"]
70
+ }, undefined, {
71
+ "orientation": ["handleDirectionChange"],
72
+ "labelPosition": ["handleLabelPositionChange"],
73
+ "size": ["handleSizeChange"],
74
+ "hideLabels": ["handleHideLabelsChange"]
70
75
  }]);
71
76
  function defineCustomElement$1() {
72
77
  if (typeof customElements === "undefined") {
@@ -98,6 +98,13 @@ const TdsTable$1 = /*@__PURE__*/ proxyCustomElement(class TdsTable extends HTMLE
98
98
  "modeVariant": [513, "mode-variant"],
99
99
  "tableId": [1, "table-id"],
100
100
  "getSelectedRows": [64]
101
+ }, undefined, {
102
+ "multiselect": ["multiselectChanged"],
103
+ "expandableRows": ["enableExpandableRowsChanged"],
104
+ "compactDesign": ["compactDesignChanged"],
105
+ "verticalDividers": ["verticalDividersChanged"],
106
+ "noMinWidth": ["noMinWidthChanged"],
107
+ "modeVariant": ["modeVariantChanged"]
101
108
  }]);
102
109
  function defineCustomElement$1() {
103
110
  if (typeof customElements === "undefined") {
@@ -3,7 +3,7 @@ import { g as generateUniqueId } from './generateUniqueId.js';
3
3
  import { h as hasSlot } from './hasSlot.js';
4
4
  import { d as defineCustomElement$2 } from './icon.js';
5
5
 
6
- const toastCss = ":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);letter-spacing:var(--tds-headline-07-ls);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);letter-spacing:var(--tds-detail-02-ls);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)}";
6
+ const toastCss = ":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)}";
7
7
 
8
8
  const TdsToast$1 = /*@__PURE__*/ proxyCustomElement(class TdsToast extends HTMLElement {
9
9
  constructor() {
@@ -1557,6 +1557,10 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
1557
1557
  */
1558
1558
  const callRender = (hostRef, instance, elm, isInitialLoad) => {
1559
1559
  try {
1560
+ /**
1561
+ * minification optimization: `allRenderFn` is `true` if all components have a `render`
1562
+ * method, so we can call the method immediately. If not, check before calling it.
1563
+ */
1560
1564
  instance = instance.render() ;
1561
1565
  {
1562
1566
  hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
@@ -1639,6 +1643,16 @@ const appDidLoad = (who) => {
1639
1643
  }
1640
1644
  nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
1641
1645
  };
1646
+ /**
1647
+ * Allows to safely call a method, e.g. `componentDidLoad`, on an instance,
1648
+ * e.g. custom element node. If a build figures out that e.g. no component
1649
+ * has a `componentDidLoad` method, the instance method gets removed from the
1650
+ * output bundle and this function returns `undefined`.
1651
+ * @param instance any object that may or may not contain methods
1652
+ * @param method method name
1653
+ * @param arg single arbitrary argument
1654
+ * @returns result of method call if it exists, otherwise `undefined`
1655
+ */
1642
1656
  const safeCall = (instance, method, arg) => {
1643
1657
  if (instance && instance[method]) {
1644
1658
  try {
@@ -1706,6 +1720,7 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
1706
1720
  * @returns a reference to the same constructor passed in (but now mutated)
1707
1721
  */
1708
1722
  const proxyComponent = (Cstr, cmpMeta, flags) => {
1723
+ var _a;
1709
1724
  if (cmpMeta.$members$) {
1710
1725
  if (Cstr.watchers) {
1711
1726
  cmpMeta.$watchers$ = Cstr.watchers;
@@ -1743,7 +1758,7 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1743
1758
  });
1744
1759
  if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
1745
1760
  const attrNameToPropName = new Map();
1746
- prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
1761
+ prototype.attributeChangedCallback = function (attrName, oldValue, newValue) {
1747
1762
  plt.jmp(() => {
1748
1763
  const propName = attrNameToPropName.get(attrName);
1749
1764
  // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
@@ -1791,21 +1806,49 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1791
1806
  // `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
1792
1807
  return;
1793
1808
  }
1809
+ else if (propName == null) {
1810
+ // At this point we should know this is not a "member", so we can treat it like watching an attribute
1811
+ // on a vanilla web component
1812
+ const hostRef = getHostRef(this);
1813
+ const flags = hostRef === null || hostRef === void 0 ? void 0 : hostRef.$flags$;
1814
+ // We only want to trigger the callback(s) if:
1815
+ // 1. The instance is ready
1816
+ // 2. The watchers are ready
1817
+ // 3. The value has changed
1818
+ if (!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) &&
1819
+ flags & 128 /* HOST_FLAGS.isWatchReady */ &&
1820
+ newValue !== oldValue) {
1821
+ const instance = hostRef.$lazyInstance$ ;
1822
+ const entry = cmpMeta.$watchers$[attrName];
1823
+ entry === null || entry === void 0 ? void 0 : entry.forEach((callbackName) => {
1824
+ if (instance[callbackName] != null) {
1825
+ instance[callbackName].call(instance, newValue, oldValue, attrName);
1826
+ }
1827
+ });
1828
+ }
1829
+ return;
1830
+ }
1794
1831
  this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
1795
1832
  });
1796
1833
  };
1797
- // create an array of attributes to observe
1798
- // and also create a map of html attribute name to js property name
1799
- Cstr.observedAttributes = members
1800
- .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */) // filter to only keep props that should match attributes
1801
- .map(([propName, m]) => {
1802
- const attrName = m[1] || propName;
1803
- attrNameToPropName.set(attrName, propName);
1804
- if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
1805
- cmpMeta.$attrsToReflect$.push([propName, attrName]);
1806
- }
1807
- return attrName;
1808
- });
1834
+ // Create an array of attributes to observe
1835
+ // This list in comprised of all strings used within a `@Watch()` decorator
1836
+ // on a component as well as any Stencil-specific "members" (`@Prop()`s and `@State()`s).
1837
+ // As such, there is no way to guarantee type-safety here that a user hasn't entered
1838
+ // an invalid attribute.
1839
+ Cstr.observedAttributes = Array.from(new Set([
1840
+ ...Object.keys((_a = cmpMeta.$watchers$) !== null && _a !== void 0 ? _a : {}),
1841
+ ...members
1842
+ .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */)
1843
+ .map(([propName, m]) => {
1844
+ const attrName = m[1] || propName;
1845
+ attrNameToPropName.set(attrName, propName);
1846
+ if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
1847
+ cmpMeta.$attrsToReflect$.push([propName, attrName]);
1848
+ }
1849
+ return attrName;
1850
+ }),
1851
+ ]));
1809
1852
  }
1810
1853
  }
1811
1854
  return Cstr;
@@ -2007,6 +2050,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
2007
2050
  plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
2008
2051
  lazyBundles.map((lazyBundle) => {
2009
2052
  lazyBundle[1].map((compactMeta) => {
2053
+ var _a;
2010
2054
  const cmpMeta = {
2011
2055
  $flags$: compactMeta[0],
2012
2056
  $tagName$: compactMeta[1],
@@ -2023,7 +2067,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
2023
2067
  cmpMeta.$attrsToReflect$ = [];
2024
2068
  }
2025
2069
  {
2026
- cmpMeta.$watchers$ = {};
2070
+ cmpMeta.$watchers$ = (_a = compactMeta[4]) !== null && _a !== void 0 ? _a : {};
2027
2071
  }
2028
2072
  const tagName = options.transformTagName
2029
2073
  ? options.transformTagName(cmpMeta.$tagName$)
@@ -2146,13 +2190,40 @@ const hostListenerOpts = (flags) => (flags & 2 /* LISTENER_FLAGS.Capture */) !==
2146
2190
  * @returns void
2147
2191
  */
2148
2192
  const setNonce = (nonce) => (plt.$nonce$ = nonce);
2193
+ /**
2194
+ * A WeakMap mapping runtime component references to their corresponding host reference
2195
+ * instances.
2196
+ */
2149
2197
  const hostRefs = /*@__PURE__*/ new WeakMap();
2198
+ /**
2199
+ * Given a {@link d.RuntimeRef} retrieve the corresponding {@link d.HostRef}
2200
+ *
2201
+ * @param ref the runtime ref of interest
2202
+ * @returns the Host reference (if found) or undefined
2203
+ */
2150
2204
  const getHostRef = (ref) => hostRefs.get(ref);
2205
+ /**
2206
+ * Register a lazy instance with the {@link hostRefs} object so it's
2207
+ * corresponding {@link d.HostRef} can be retrieved later.
2208
+ *
2209
+ * @param lazyInstance the lazy instance of interest
2210
+ * @param hostRef that instances `HostRef` object
2211
+ * @returns a reference to the host ref WeakMap
2212
+ */
2151
2213
  const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
2152
- const registerHost = (elm, cmpMeta) => {
2214
+ /**
2215
+ * Register a host element for a Stencil component, setting up various metadata
2216
+ * and callbacks based on {@link BUILD} flags as well as the component's runtime
2217
+ * metadata.
2218
+ *
2219
+ * @param hostElement the host element to register
2220
+ * @param cmpMeta runtime metadata for that component
2221
+ * @returns a reference to the host ref WeakMap
2222
+ */
2223
+ const registerHost = (hostElement, cmpMeta) => {
2153
2224
  const hostRef = {
2154
2225
  $flags$: 0,
2155
- $hostElement$: elm,
2226
+ $hostElement$: hostElement,
2156
2227
  $cmpMeta$: cmpMeta,
2157
2228
  $instanceValues$: new Map(),
2158
2229
  };
@@ -2161,11 +2232,11 @@ const registerHost = (elm, cmpMeta) => {
2161
2232
  }
2162
2233
  {
2163
2234
  hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
2164
- elm['s-p'] = [];
2165
- elm['s-rc'] = [];
2235
+ hostElement['s-p'] = [];
2236
+ hostElement['s-rc'] = [];
2166
2237
  }
2167
- addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
2168
- return hostRefs.set(elm, hostRef);
2238
+ addHostEventListeners(hostElement, hostRef, cmpMeta.$listeners$);
2239
+ return hostRefs.set(hostElement, hostRef);
2169
2240
  };
2170
2241
  const isMemberInElement = (elm, memberName) => memberName in elm;
2171
2242
  const consoleError = (e, el) => (0, console.error)(e, el);