@roadtrip/components 3.11.0 → 3.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (632) hide show
  1. package/dist/cjs/{app-d9e5adfa.js → app-a0c1eef6.js} +2 -2
  2. package/dist/cjs/app-a0c1eef6.js.map +1 -0
  3. package/dist/cjs/{focus-visible-6771892b.js → focus-visible-6f34b3f4.js} +1 -1
  4. package/dist/cjs/focus-visible-6f34b3f4.js.map +1 -0
  5. package/dist/cjs/{index-e4bd5b5f.js → index-4fdb2a28.js} +408 -194
  6. package/dist/cjs/index-4fdb2a28.js.map +1 -0
  7. package/dist/cjs/{index-fd07207a.js → index-fb57f684.js} +1 -1
  8. package/dist/cjs/index-fb57f684.js.map +1 -0
  9. package/dist/cjs/index.cjs.js +3 -3
  10. package/dist/cjs/loader.cjs.js +4 -29
  11. package/dist/cjs/loader.cjs.js.map +1 -1
  12. package/dist/cjs/{polyfill-9453e116.js → polyfill-b1fff766.js} +2 -2
  13. package/dist/cjs/polyfill-b1fff766.js.map +1 -0
  14. package/dist/cjs/road-accordion.cjs.entry.js +3 -3
  15. package/dist/cjs/road-accordion.cjs.entry.js.map +1 -1
  16. package/dist/cjs/road-alert.cjs.entry.js +1 -1
  17. package/dist/cjs/road-alert.cjs.entry.js.map +1 -1
  18. package/dist/cjs/road-area-code.cjs.entry.js +9 -13
  19. package/dist/cjs/road-area-code.cjs.entry.js.map +1 -1
  20. package/dist/cjs/road-autocomplete.cjs.entry.js +1 -1
  21. package/dist/cjs/road-autocomplete.cjs.entry.js.map +1 -1
  22. package/dist/cjs/road-avatar.cjs.entry.js +1 -1
  23. package/dist/cjs/road-avatar.cjs.entry.js.map +1 -1
  24. package/dist/cjs/road-badge_14.cjs.entry.js +5 -5
  25. package/dist/cjs/road-badge_14.cjs.entry.js.map +1 -1
  26. package/dist/cjs/road-banner.cjs.entry.js +2 -2
  27. package/dist/cjs/road-banner.cjs.entry.js.map +1 -1
  28. package/dist/cjs/road-button-floating.cjs.entry.js +2 -2
  29. package/dist/cjs/road-button-floating.cjs.entry.js.map +1 -1
  30. package/dist/cjs/road-card.cjs.entry.js +1 -1
  31. package/dist/cjs/road-card.cjs.entry.js.map +1 -1
  32. package/dist/cjs/road-carousel-item.cjs.entry.js +1 -1
  33. package/dist/cjs/road-carousel-item.cjs.entry.js.map +1 -1
  34. package/dist/cjs/road-carousel.cjs.entry.js +2 -2
  35. package/dist/cjs/road-carousel.cjs.entry.js.map +1 -1
  36. package/dist/cjs/road-checkbox.cjs.entry.js +3 -3
  37. package/dist/cjs/road-checkbox.cjs.entry.js.map +1 -1
  38. package/dist/cjs/road-chip.cjs.entry.js +3 -3
  39. package/dist/cjs/road-chip.cjs.entry.js.map +1 -1
  40. package/dist/cjs/road-collapse.cjs.entry.js +1 -1
  41. package/dist/cjs/road-collapse.cjs.entry.js.map +1 -1
  42. package/dist/cjs/road-dialog.cjs.entry.js +2 -2
  43. package/dist/cjs/road-dialog.cjs.entry.js.map +1 -1
  44. package/dist/cjs/road-dropdown.cjs.entry.js +1 -1
  45. package/dist/cjs/road-dropdown.cjs.entry.js.map +1 -1
  46. package/dist/cjs/road-duration.cjs.entry.js +1 -1
  47. package/dist/cjs/road-duration.cjs.entry.js.map +1 -1
  48. package/dist/cjs/road-flap.cjs.entry.js +1 -1
  49. package/dist/cjs/road-flap.cjs.entry.js.map +1 -1
  50. package/dist/cjs/road-global-navigation.cjs.entry.js +2 -2
  51. package/dist/cjs/road-global-navigation.cjs.entry.js.map +1 -1
  52. package/dist/cjs/road-illustration.cjs.entry.js +2 -2
  53. package/dist/cjs/road-illustration.cjs.entry.js.map +1 -1
  54. package/dist/cjs/road-img.cjs.entry.js +1 -1
  55. package/dist/cjs/road-img.cjs.entry.js.map +1 -1
  56. package/dist/cjs/road-modal.cjs.entry.js +2 -2
  57. package/dist/cjs/road-modal.cjs.entry.js.map +1 -1
  58. package/dist/cjs/road-navbar-item.cjs.entry.js +1 -1
  59. package/dist/cjs/road-navbar-item.cjs.entry.js.map +1 -1
  60. package/dist/cjs/road-navbar.cjs.entry.js +2 -2
  61. package/dist/cjs/road-navbar.cjs.entry.js.map +1 -1
  62. package/dist/cjs/road-phone-number-input.cjs.entry.js +22 -16
  63. package/dist/cjs/road-phone-number-input.cjs.entry.js.map +1 -1
  64. package/dist/cjs/road-plate-number.cjs.entry.js +2 -2
  65. package/dist/cjs/road-plate-number.cjs.entry.js.map +1 -1
  66. package/dist/cjs/road-profil-dropdown.cjs.entry.js +1 -1
  67. package/dist/cjs/road-profil-dropdown.cjs.entry.js.map +1 -1
  68. package/dist/cjs/road-progress-indicator-horizontal.cjs.entry.js +1 -1
  69. package/dist/cjs/road-progress-indicator-horizontal.cjs.entry.js.map +1 -1
  70. package/dist/cjs/road-progress-indicator-vertical-item.cjs.entry.js +1 -1
  71. package/dist/cjs/road-progress-indicator-vertical-item.cjs.entry.js.map +1 -1
  72. package/dist/cjs/road-progress-indicator-vertical.cjs.entry.js +1 -1
  73. package/dist/cjs/road-progress-indicator-vertical.cjs.entry.js.map +1 -1
  74. package/dist/cjs/road-progress-tracker-item.cjs.entry.js +1 -1
  75. package/dist/cjs/road-progress-tracker-item.cjs.entry.js.map +1 -1
  76. package/dist/cjs/road-progress-tracker.cjs.entry.js +1 -1
  77. package/dist/cjs/road-progress-tracker.cjs.entry.js.map +1 -1
  78. package/dist/cjs/road-progress.cjs.entry.js +1 -1
  79. package/dist/cjs/road-progress.cjs.entry.js.map +1 -1
  80. package/dist/cjs/road-radio-group.cjs.entry.js +1 -1
  81. package/dist/cjs/road-radio-group.cjs.entry.js.map +1 -1
  82. package/dist/cjs/road-radio.cjs.entry.js +2 -2
  83. package/dist/cjs/road-radio.cjs.entry.js.map +1 -1
  84. package/dist/cjs/road-range.cjs.entry.js +2 -2
  85. package/dist/cjs/road-range.cjs.entry.js.map +1 -1
  86. package/dist/cjs/road-rating.cjs.entry.js +2 -2
  87. package/dist/cjs/road-rating.cjs.entry.js.map +1 -1
  88. package/dist/cjs/road-segmented-button-bar.cjs.entry.js +2 -2
  89. package/dist/cjs/road-segmented-button-bar.cjs.entry.js.map +1 -1
  90. package/dist/cjs/road-segmented-button.cjs.entry.js +1 -1
  91. package/dist/cjs/road-segmented-button.cjs.entry.js.map +1 -1
  92. package/dist/cjs/road-segmented-buttons.cjs.entry.js +1 -1
  93. package/dist/cjs/road-segmented-buttons.cjs.entry.js.map +1 -1
  94. package/dist/cjs/road-select-filter.cjs.entry.js +1 -1
  95. package/dist/cjs/road-select-filter.cjs.entry.js.map +1 -1
  96. package/dist/cjs/road-select.cjs.entry.js +2 -2
  97. package/dist/cjs/road-select.cjs.entry.js.map +1 -1
  98. package/dist/cjs/road-skeleton.cjs.entry.js +1 -1
  99. package/dist/cjs/road-skeleton.cjs.entry.js.map +1 -1
  100. package/dist/cjs/road-spinner.cjs.entry.js +1 -1
  101. package/dist/cjs/road-spinner.cjs.entry.js.map +1 -1
  102. package/dist/cjs/road-switch.cjs.entry.js +2 -2
  103. package/dist/cjs/road-switch.cjs.entry.js.map +1 -1
  104. package/dist/cjs/road-tab-bar.cjs.entry.js +2 -2
  105. package/dist/cjs/road-tab-bar.cjs.entry.js.map +1 -1
  106. package/dist/cjs/road-tab-button.cjs.entry.js +1 -1
  107. package/dist/cjs/road-tab-button.cjs.entry.js.map +1 -1
  108. package/dist/cjs/road-tab.cjs.entry.js +1 -1
  109. package/dist/cjs/road-tab.cjs.entry.js.map +1 -1
  110. package/dist/cjs/road-table.cjs.entry.js +1 -1
  111. package/dist/cjs/road-table.cjs.entry.js.map +1 -1
  112. package/dist/cjs/road-tabs.cjs.entry.js +1 -1
  113. package/dist/cjs/road-tabs.cjs.entry.js.map +1 -1
  114. package/dist/cjs/road-tag.cjs.entry.js +2 -2
  115. package/dist/cjs/road-tag.cjs.entry.js.map +1 -1
  116. package/dist/cjs/road-text.cjs.entry.js +1 -1
  117. package/dist/cjs/road-text.cjs.entry.js.map +1 -1
  118. package/dist/cjs/road-textarea.cjs.entry.js +1 -1
  119. package/dist/cjs/road-textarea.cjs.entry.js.map +1 -1
  120. package/dist/cjs/road-toast.cjs.entry.js +2 -2
  121. package/dist/cjs/road-toast.cjs.entry.js.map +1 -1
  122. package/dist/cjs/road-toggle.cjs.entry.js +2 -2
  123. package/dist/cjs/road-toggle.cjs.entry.js.map +1 -1
  124. package/dist/cjs/road-toolbar-title-page.cjs.entry.js +1 -1
  125. package/dist/cjs/road-toolbar-title-page.cjs.entry.js.map +1 -1
  126. package/dist/cjs/road-toolbar-title.cjs.entry.js +1 -1
  127. package/dist/cjs/road-toolbar-title.cjs.entry.js.map +1 -1
  128. package/dist/cjs/road-tooltip.cjs.entry.js +1 -1
  129. package/dist/cjs/road-tooltip.cjs.entry.js.map +1 -1
  130. package/dist/cjs/roadtrip.cjs.js +7 -103
  131. package/dist/cjs/roadtrip.cjs.js.map +1 -1
  132. package/dist/cjs/{utils-5203d152.js → utils-0428be89.js} +2 -2
  133. package/dist/cjs/utils-0428be89.js.map +1 -0
  134. package/dist/cjs/{utils-a450bad3.js → utils-e284da2f.js} +2 -2
  135. package/dist/cjs/utils-e284da2f.js.map +1 -0
  136. package/dist/collection/collection-manifest.json +74 -74
  137. package/dist/collection/components/accordion/accordion.js +3 -3
  138. package/dist/collection/components/alert/alert.js +3 -2
  139. package/dist/collection/components/alert/alert.js.map +1 -1
  140. package/dist/collection/components/area-code/area-code.js +19 -38
  141. package/dist/collection/components/area-code/area-code.js.map +1 -1
  142. package/dist/collection/components/autocomplete/autocomplete.js +3 -2
  143. package/dist/collection/components/autocomplete/autocomplete.js.map +1 -1
  144. package/dist/collection/components/avatar/avatar.js +1 -1
  145. package/dist/collection/components/badge/badge.js +3 -2
  146. package/dist/collection/components/badge/badge.js.map +1 -1
  147. package/dist/collection/components/banner/banner.js +4 -3
  148. package/dist/collection/components/banner/banner.js.map +1 -1
  149. package/dist/collection/components/button/button.js +2 -2
  150. package/dist/collection/components/button-floating/button-floating.js +2 -2
  151. package/dist/collection/components/card/card.js +1 -1
  152. package/dist/collection/components/carousel/carousel.js +34 -18
  153. package/dist/collection/components/carousel/carousel.js.map +1 -1
  154. package/dist/collection/components/carousel-item/carousel-item.js +1 -1
  155. package/dist/collection/components/checkbox/checkbox.js +3 -3
  156. package/dist/collection/components/chip/chip.js +3 -3
  157. package/dist/collection/components/col/col.js +1 -1
  158. package/dist/collection/components/collapse/collapse.js +1 -1
  159. package/dist/collection/components/counter/counter.js +1 -1
  160. package/dist/collection/components/dialog/dialog.js +8 -5
  161. package/dist/collection/components/dialog/dialog.js.map +1 -1
  162. package/dist/collection/components/drawer/drawer.js +9 -6
  163. package/dist/collection/components/drawer/drawer.js.map +1 -1
  164. package/dist/collection/components/dropdown/dropdown.js +1 -1
  165. package/dist/collection/components/duration/duration.js +5 -3
  166. package/dist/collection/components/duration/duration.js.map +1 -1
  167. package/dist/collection/components/flap/flap.js +1 -1
  168. package/dist/collection/components/global-navigation/global-navigation.js +2 -2
  169. package/dist/collection/components/grid/grid.js +1 -1
  170. package/dist/collection/components/icon/icon.js +5 -4
  171. package/dist/collection/components/icon/icon.js.map +1 -1
  172. package/dist/collection/components/icon/request.js +1 -1
  173. package/dist/collection/components/icon/svg/vehicle-car-search-color.svg +1 -1
  174. package/dist/collection/components/icon/utils.js +1 -1
  175. package/dist/collection/components/icon/validate.js +1 -1
  176. package/dist/collection/components/illustration/illustration.js +3 -3
  177. package/dist/collection/components/illustration/request.js +1 -1
  178. package/dist/collection/components/illustration/utils.js +1 -1
  179. package/dist/collection/components/illustration/validate.js +1 -1
  180. package/dist/collection/components/img/img.js +1 -1
  181. package/dist/collection/components/input/input.js +9 -5
  182. package/dist/collection/components/input/input.js.map +1 -1
  183. package/dist/collection/components/input-group/input-group.js +1 -1
  184. package/dist/collection/components/item/item.js +2 -2
  185. package/dist/collection/components/label/label.js +1 -1
  186. package/dist/collection/components/list/list.js +1 -1
  187. package/dist/collection/components/modal/modal.js +6 -4
  188. package/dist/collection/components/modal/modal.js.map +1 -1
  189. package/dist/collection/components/navbar/navbar.js +2 -2
  190. package/dist/collection/components/navbar-item/navbar-item.js +1 -1
  191. package/dist/collection/components/phone-number-input/phone-number-input.js +27 -19
  192. package/dist/collection/components/phone-number-input/phone-number-input.js.map +1 -1
  193. package/dist/collection/components/plate-number/plate-number.js +6 -4
  194. package/dist/collection/components/plate-number/plate-number.js.map +1 -1
  195. package/dist/collection/components/profil-dropdown/profil-dropdown.js +1 -1
  196. package/dist/collection/components/progress/progress.js +1 -1
  197. package/dist/collection/components/progress-indicator-horizontal/progress-indicator-horizontal.js +1 -1
  198. package/dist/collection/components/progress-indicator-vertical/progress-indicator-vertical.js +1 -1
  199. package/dist/collection/components/progress-indicator-vertical-item/progress-indicator-vertical-item.js +1 -1
  200. package/dist/collection/components/progress-tracker/progress-tracker.js +1 -1
  201. package/dist/collection/components/progress-tracker-item/progress-tracker-item.js +1 -1
  202. package/dist/collection/components/radio/radio.js +2 -2
  203. package/dist/collection/components/radio-group/radio-group.js +1 -1
  204. package/dist/collection/components/range/range.js +2 -2
  205. package/dist/collection/components/rating/rating.js +2 -2
  206. package/dist/collection/components/row/row.js +1 -1
  207. package/dist/collection/components/segmented-button/segmented-button.js +1 -1
  208. package/dist/collection/components/segmented-button-bar/segmented-button-bar.js +2 -2
  209. package/dist/collection/components/segmented-buttons/segmented-buttons.js +11 -6
  210. package/dist/collection/components/segmented-buttons/segmented-buttons.js.map +1 -1
  211. package/dist/collection/components/select/select.css +7 -3
  212. package/dist/collection/components/select/select.js +3 -2
  213. package/dist/collection/components/select/select.js.map +1 -1
  214. package/dist/collection/components/select-filter/select-filter.js +4 -3
  215. package/dist/collection/components/select-filter/select-filter.js.map +1 -1
  216. package/dist/collection/components/skeleton/skeleton.js +1 -1
  217. package/dist/collection/components/spinner/spinner.js +1 -1
  218. package/dist/collection/components/switch/switch.js +4 -3
  219. package/dist/collection/components/switch/switch.js.map +1 -1
  220. package/dist/collection/components/tab/tab.js +3 -2
  221. package/dist/collection/components/tab/tab.js.map +1 -1
  222. package/dist/collection/components/tab-bar/tab-bar.js +2 -2
  223. package/dist/collection/components/tab-button/tab-button.js +1 -1
  224. package/dist/collection/components/table/table.js +1 -1
  225. package/dist/collection/components/tabs/tabs.js +11 -6
  226. package/dist/collection/components/tabs/tabs.js.map +1 -1
  227. package/dist/collection/components/tag/tag.js +2 -2
  228. package/dist/collection/components/text/text.js +1 -1
  229. package/dist/collection/components/textarea/textarea.js +5 -3
  230. package/dist/collection/components/textarea/textarea.js.map +1 -1
  231. package/dist/collection/components/toast/toast.js +8 -5
  232. package/dist/collection/components/toast/toast.js.map +1 -1
  233. package/dist/collection/components/toggle/toggle.js +4 -3
  234. package/dist/collection/components/toggle/toggle.js.map +1 -1
  235. package/dist/collection/components/toolbar/toolbar.js +1 -1
  236. package/dist/collection/components/toolbar-title/toolbar-title.js +1 -1
  237. package/dist/collection/components/toolbar-title-page/toolbar-title-page.js +1 -1
  238. package/dist/collection/components/tooltip/tooltip.js +5 -3
  239. package/dist/collection/components/tooltip/tooltip.js.map +1 -1
  240. package/dist/collection/global/app.js +1 -1
  241. package/dist/esm/app-0d73779c.js +7 -0
  242. package/dist/esm/app-0d73779c.js.map +1 -0
  243. package/dist/esm/{focus-visible-75a2ea2a.js → focus-visible-32bc70bb.js} +1 -1
  244. package/dist/esm/focus-visible-32bc70bb.js.map +1 -0
  245. package/dist/esm/{index-4b484f35.js → index-6f4c3286.js} +409 -190
  246. package/dist/esm/index-6f4c3286.js.map +1 -0
  247. package/dist/esm/{index-8f45025b.js → index-891decf5.js} +1 -1
  248. package/dist/esm/index-891decf5.js.map +1 -0
  249. package/dist/esm/index.js +3 -3
  250. package/dist/esm/loader.js +5 -30
  251. package/dist/esm/loader.js.map +1 -1
  252. package/dist/esm/polyfill-dc7c89b2.js +7 -0
  253. package/dist/esm/polyfill-dc7c89b2.js.map +1 -0
  254. package/dist/esm/road-accordion.entry.js +3 -3
  255. package/dist/esm/road-accordion.entry.js.map +1 -1
  256. package/dist/esm/road-alert.entry.js +1 -1
  257. package/dist/esm/road-alert.entry.js.map +1 -1
  258. package/dist/esm/road-area-code.entry.js +9 -13
  259. package/dist/esm/road-area-code.entry.js.map +1 -1
  260. package/dist/esm/road-autocomplete.entry.js +1 -1
  261. package/dist/esm/road-autocomplete.entry.js.map +1 -1
  262. package/dist/esm/road-avatar.entry.js +1 -1
  263. package/dist/esm/road-avatar.entry.js.map +1 -1
  264. package/dist/esm/road-badge_14.entry.js +5 -5
  265. package/dist/esm/road-badge_14.entry.js.map +1 -1
  266. package/dist/esm/road-banner.entry.js +2 -2
  267. package/dist/esm/road-banner.entry.js.map +1 -1
  268. package/dist/esm/road-button-floating.entry.js +2 -2
  269. package/dist/esm/road-button-floating.entry.js.map +1 -1
  270. package/dist/esm/road-card.entry.js +1 -1
  271. package/dist/esm/road-card.entry.js.map +1 -1
  272. package/dist/esm/road-carousel-item.entry.js +1 -1
  273. package/dist/esm/road-carousel-item.entry.js.map +1 -1
  274. package/dist/esm/road-carousel.entry.js +2 -2
  275. package/dist/esm/road-carousel.entry.js.map +1 -1
  276. package/dist/esm/road-checkbox.entry.js +3 -3
  277. package/dist/esm/road-checkbox.entry.js.map +1 -1
  278. package/dist/esm/road-chip.entry.js +3 -3
  279. package/dist/esm/road-chip.entry.js.map +1 -1
  280. package/dist/esm/road-collapse.entry.js +1 -1
  281. package/dist/esm/road-collapse.entry.js.map +1 -1
  282. package/dist/esm/road-dialog.entry.js +2 -2
  283. package/dist/esm/road-dialog.entry.js.map +1 -1
  284. package/dist/esm/road-dropdown.entry.js +1 -1
  285. package/dist/esm/road-dropdown.entry.js.map +1 -1
  286. package/dist/esm/road-duration.entry.js +1 -1
  287. package/dist/esm/road-duration.entry.js.map +1 -1
  288. package/dist/esm/road-flap.entry.js +1 -1
  289. package/dist/esm/road-flap.entry.js.map +1 -1
  290. package/dist/esm/road-global-navigation.entry.js +2 -2
  291. package/dist/esm/road-global-navigation.entry.js.map +1 -1
  292. package/dist/esm/road-illustration.entry.js +2 -2
  293. package/dist/esm/road-illustration.entry.js.map +1 -1
  294. package/dist/esm/road-img.entry.js +1 -1
  295. package/dist/esm/road-img.entry.js.map +1 -1
  296. package/dist/esm/road-modal.entry.js +2 -2
  297. package/dist/esm/road-modal.entry.js.map +1 -1
  298. package/dist/esm/road-navbar-item.entry.js +1 -1
  299. package/dist/esm/road-navbar-item.entry.js.map +1 -1
  300. package/dist/esm/road-navbar.entry.js +2 -2
  301. package/dist/esm/road-navbar.entry.js.map +1 -1
  302. package/dist/esm/road-phone-number-input.entry.js +22 -16
  303. package/dist/esm/road-phone-number-input.entry.js.map +1 -1
  304. package/dist/esm/road-plate-number.entry.js +2 -2
  305. package/dist/esm/road-plate-number.entry.js.map +1 -1
  306. package/dist/esm/road-profil-dropdown.entry.js +1 -1
  307. package/dist/esm/road-profil-dropdown.entry.js.map +1 -1
  308. package/dist/esm/road-progress-indicator-horizontal.entry.js +1 -1
  309. package/dist/esm/road-progress-indicator-horizontal.entry.js.map +1 -1
  310. package/dist/esm/road-progress-indicator-vertical-item.entry.js +1 -1
  311. package/dist/esm/road-progress-indicator-vertical-item.entry.js.map +1 -1
  312. package/dist/esm/road-progress-indicator-vertical.entry.js +1 -1
  313. package/dist/esm/road-progress-indicator-vertical.entry.js.map +1 -1
  314. package/dist/esm/road-progress-tracker-item.entry.js +1 -1
  315. package/dist/esm/road-progress-tracker-item.entry.js.map +1 -1
  316. package/dist/esm/road-progress-tracker.entry.js +1 -1
  317. package/dist/esm/road-progress-tracker.entry.js.map +1 -1
  318. package/dist/esm/road-progress.entry.js +1 -1
  319. package/dist/esm/road-progress.entry.js.map +1 -1
  320. package/dist/esm/road-radio-group.entry.js +1 -1
  321. package/dist/esm/road-radio-group.entry.js.map +1 -1
  322. package/dist/esm/road-radio.entry.js +2 -2
  323. package/dist/esm/road-radio.entry.js.map +1 -1
  324. package/dist/esm/road-range.entry.js +2 -2
  325. package/dist/esm/road-range.entry.js.map +1 -1
  326. package/dist/esm/road-rating.entry.js +2 -2
  327. package/dist/esm/road-rating.entry.js.map +1 -1
  328. package/dist/esm/road-segmented-button-bar.entry.js +2 -2
  329. package/dist/esm/road-segmented-button-bar.entry.js.map +1 -1
  330. package/dist/esm/road-segmented-button.entry.js +1 -1
  331. package/dist/esm/road-segmented-button.entry.js.map +1 -1
  332. package/dist/esm/road-segmented-buttons.entry.js +1 -1
  333. package/dist/esm/road-segmented-buttons.entry.js.map +1 -1
  334. package/dist/esm/road-select-filter.entry.js +1 -1
  335. package/dist/esm/road-select-filter.entry.js.map +1 -1
  336. package/dist/esm/road-select.entry.js +2 -2
  337. package/dist/esm/road-select.entry.js.map +1 -1
  338. package/dist/esm/road-skeleton.entry.js +1 -1
  339. package/dist/esm/road-skeleton.entry.js.map +1 -1
  340. package/dist/esm/road-spinner.entry.js +1 -1
  341. package/dist/esm/road-spinner.entry.js.map +1 -1
  342. package/dist/esm/road-switch.entry.js +2 -2
  343. package/dist/esm/road-switch.entry.js.map +1 -1
  344. package/dist/esm/road-tab-bar.entry.js +2 -2
  345. package/dist/esm/road-tab-bar.entry.js.map +1 -1
  346. package/dist/esm/road-tab-button.entry.js +1 -1
  347. package/dist/esm/road-tab-button.entry.js.map +1 -1
  348. package/dist/esm/road-tab.entry.js +1 -1
  349. package/dist/esm/road-tab.entry.js.map +1 -1
  350. package/dist/esm/road-table.entry.js +1 -1
  351. package/dist/esm/road-table.entry.js.map +1 -1
  352. package/dist/esm/road-tabs.entry.js +1 -1
  353. package/dist/esm/road-tabs.entry.js.map +1 -1
  354. package/dist/esm/road-tag.entry.js +2 -2
  355. package/dist/esm/road-tag.entry.js.map +1 -1
  356. package/dist/esm/road-text.entry.js +1 -1
  357. package/dist/esm/road-text.entry.js.map +1 -1
  358. package/dist/esm/road-textarea.entry.js +1 -1
  359. package/dist/esm/road-textarea.entry.js.map +1 -1
  360. package/dist/esm/road-toast.entry.js +2 -2
  361. package/dist/esm/road-toast.entry.js.map +1 -1
  362. package/dist/esm/road-toggle.entry.js +2 -2
  363. package/dist/esm/road-toggle.entry.js.map +1 -1
  364. package/dist/esm/road-toolbar-title-page.entry.js +1 -1
  365. package/dist/esm/road-toolbar-title-page.entry.js.map +1 -1
  366. package/dist/esm/road-toolbar-title.entry.js +1 -1
  367. package/dist/esm/road-toolbar-title.entry.js.map +1 -1
  368. package/dist/esm/road-tooltip.entry.js +1 -1
  369. package/dist/esm/road-tooltip.entry.js.map +1 -1
  370. package/dist/esm/roadtrip.js +8 -104
  371. package/dist/esm/roadtrip.js.map +1 -1
  372. package/dist/esm/{utils-ff713b72.js → utils-c701b3c5.js} +2 -2
  373. package/dist/esm/utils-c701b3c5.js.map +1 -0
  374. package/dist/esm/{utils-7f4988b4.js → utils-e14866b1.js} +2 -2
  375. package/dist/esm/utils-e14866b1.js.map +1 -0
  376. package/dist/html.html-data.json +71 -75
  377. package/dist/loader/index.d.ts +1 -1
  378. package/dist/roadtrip/index.esm.js +1 -1
  379. package/dist/roadtrip/p-02e5c9b9.js +2 -0
  380. package/dist/roadtrip/p-02e5c9b9.js.map +1 -0
  381. package/dist/roadtrip/{p-a32c7889.entry.js → p-07acda2d.entry.js} +2 -2
  382. package/dist/roadtrip/p-07acda2d.entry.js.map +1 -0
  383. package/dist/roadtrip/{p-c259efd7.js → p-08ff1520.js} +2 -2
  384. package/dist/roadtrip/p-08ff1520.js.map +1 -0
  385. package/dist/roadtrip/p-0d2e2bd5.entry.js +2 -0
  386. package/dist/roadtrip/p-0d2e2bd5.entry.js.map +1 -0
  387. package/dist/roadtrip/{p-73df1bef.entry.js → p-0d843c2f.entry.js} +2 -2
  388. package/dist/roadtrip/p-0d843c2f.entry.js.map +1 -0
  389. package/dist/roadtrip/{p-48596f8f.entry.js → p-0f707073.entry.js} +2 -2
  390. package/dist/roadtrip/p-0f707073.entry.js.map +1 -0
  391. package/dist/roadtrip/{p-ff52872b.entry.js → p-12deb278.entry.js} +2 -2
  392. package/dist/roadtrip/p-12deb278.entry.js.map +1 -0
  393. package/dist/roadtrip/p-16ae7b09.entry.js +2 -0
  394. package/dist/roadtrip/p-16ae7b09.entry.js.map +1 -0
  395. package/dist/roadtrip/p-1ccae339.js +2 -0
  396. package/dist/roadtrip/p-1ccae339.js.map +1 -0
  397. package/dist/roadtrip/{p-93030cec.entry.js → p-1dabbcf4.entry.js} +2 -2
  398. package/dist/roadtrip/p-1dabbcf4.entry.js.map +1 -0
  399. package/dist/roadtrip/{p-4993da93.entry.js → p-228cd0a9.entry.js} +2 -2
  400. package/dist/roadtrip/p-228cd0a9.entry.js.map +1 -0
  401. package/dist/roadtrip/{p-8f802447.entry.js → p-23b7a51a.entry.js} +2 -2
  402. package/dist/roadtrip/p-23b7a51a.entry.js.map +1 -0
  403. package/dist/roadtrip/{p-0bcf6d63.entry.js → p-259c14bf.entry.js} +2 -2
  404. package/dist/roadtrip/p-259c14bf.entry.js.map +1 -0
  405. package/dist/roadtrip/{p-cd2e8f0a.entry.js → p-29291680.entry.js} +2 -2
  406. package/dist/roadtrip/p-29291680.entry.js.map +1 -0
  407. package/dist/roadtrip/{p-35ffaa87.entry.js → p-2a663f88.entry.js} +2 -2
  408. package/dist/roadtrip/p-2a663f88.entry.js.map +1 -0
  409. package/dist/roadtrip/p-2a6add06.entry.js +2 -0
  410. package/dist/roadtrip/p-2a6add06.entry.js.map +1 -0
  411. package/dist/roadtrip/{p-a484102a.entry.js → p-2b8890d2.entry.js} +2 -2
  412. package/dist/roadtrip/p-2b8890d2.entry.js.map +1 -0
  413. package/dist/roadtrip/p-2c6c964c.entry.js +2 -0
  414. package/dist/roadtrip/p-2c6c964c.entry.js.map +1 -0
  415. package/dist/roadtrip/{p-66a9a6e8.entry.js → p-2d66c347.entry.js} +2 -2
  416. package/dist/roadtrip/p-2d66c347.entry.js.map +1 -0
  417. package/dist/roadtrip/{p-21c20210.entry.js → p-387df35b.entry.js} +2 -2
  418. package/dist/roadtrip/p-387df35b.entry.js.map +1 -0
  419. package/dist/roadtrip/p-3a1da784.entry.js +2 -0
  420. package/dist/roadtrip/p-3a1da784.entry.js.map +1 -0
  421. package/dist/roadtrip/{p-29ff2bcd.entry.js → p-3ae65dd3.entry.js} +2 -2
  422. package/dist/roadtrip/p-3ae65dd3.entry.js.map +1 -0
  423. package/dist/roadtrip/{p-1caeda78.entry.js → p-3ae697d0.entry.js} +2 -2
  424. package/dist/roadtrip/p-3ae697d0.entry.js.map +1 -0
  425. package/dist/roadtrip/{p-ebe3c26a.entry.js → p-3c0f880b.entry.js} +2 -2
  426. package/dist/roadtrip/p-3c0f880b.entry.js.map +1 -0
  427. package/dist/roadtrip/p-3f838866.entry.js +2 -0
  428. package/dist/roadtrip/{p-7589e2bb.entry.js.map → p-3f838866.entry.js.map} +1 -1
  429. package/dist/roadtrip/{p-7c4b331c.entry.js → p-446a0bdd.entry.js} +2 -2
  430. package/dist/roadtrip/p-446a0bdd.entry.js.map +1 -0
  431. package/dist/roadtrip/{p-1baffcc2.entry.js → p-4f719c90.entry.js} +2 -2
  432. package/dist/roadtrip/p-4f719c90.entry.js.map +1 -0
  433. package/dist/roadtrip/{p-b34aba1a.js → p-5b56c57a.js} +2 -2
  434. package/dist/roadtrip/p-5b56c57a.js.map +1 -0
  435. package/dist/roadtrip/{p-5f4779b1.entry.js → p-5ea7d274.entry.js} +2 -2
  436. package/dist/roadtrip/p-5ea7d274.entry.js.map +1 -0
  437. package/dist/roadtrip/{p-43bdbf0a.entry.js → p-5ee02be9.entry.js} +2 -2
  438. package/dist/roadtrip/p-5ee02be9.entry.js.map +1 -0
  439. package/dist/roadtrip/p-6475c1af.js +3 -0
  440. package/dist/roadtrip/p-6475c1af.js.map +1 -0
  441. package/dist/roadtrip/{p-37ab7c7f.js → p-73fe2357.js} +1 -1
  442. package/dist/roadtrip/p-73fe2357.js.map +1 -0
  443. package/dist/roadtrip/{p-e68a3ae5.entry.js → p-785bcbdf.entry.js} +2 -2
  444. package/dist/roadtrip/p-785bcbdf.entry.js.map +1 -0
  445. package/dist/roadtrip/{p-ee0196ea.entry.js → p-7ac13838.entry.js} +2 -2
  446. package/dist/roadtrip/p-7ac13838.entry.js.map +1 -0
  447. package/dist/roadtrip/{p-9432708d.entry.js → p-7d6a3545.entry.js} +2 -2
  448. package/dist/roadtrip/p-7d6a3545.entry.js.map +1 -0
  449. package/dist/roadtrip/{p-b7d3dc1a.entry.js → p-7efd47c7.entry.js} +2 -2
  450. package/dist/roadtrip/p-7efd47c7.entry.js.map +1 -0
  451. package/dist/roadtrip/p-80f116bd.entry.js +2 -0
  452. package/dist/roadtrip/p-80f116bd.entry.js.map +1 -0
  453. package/dist/roadtrip/{p-0d99a5e7.entry.js → p-8359b71f.entry.js} +2 -2
  454. package/dist/roadtrip/p-8359b71f.entry.js.map +1 -0
  455. package/dist/roadtrip/p-86219824.entry.js +2 -0
  456. package/dist/roadtrip/p-86219824.entry.js.map +1 -0
  457. package/dist/roadtrip/{p-5a4f9085.entry.js → p-8f19a8a3.entry.js} +2 -2
  458. package/dist/roadtrip/p-8f19a8a3.entry.js.map +1 -0
  459. package/dist/roadtrip/{p-b4dc061d.entry.js → p-9896b270.entry.js} +2 -2
  460. package/dist/roadtrip/p-9896b270.entry.js.map +1 -0
  461. package/dist/roadtrip/p-9c86d7cd.entry.js +2 -0
  462. package/dist/roadtrip/p-9c86d7cd.entry.js.map +1 -0
  463. package/dist/roadtrip/{p-3604d557.entry.js → p-a38be966.entry.js} +2 -2
  464. package/dist/roadtrip/p-a38be966.entry.js.map +1 -0
  465. package/dist/roadtrip/{p-2d01d350.entry.js → p-a5f7b2f1.entry.js} +2 -2
  466. package/dist/roadtrip/p-a5f7b2f1.entry.js.map +1 -0
  467. package/dist/roadtrip/{p-c8e9807b.entry.js → p-aac728cd.entry.js} +2 -2
  468. package/dist/roadtrip/p-aac728cd.entry.js.map +1 -0
  469. package/dist/roadtrip/{p-6598e293.entry.js → p-b1ba207d.entry.js} +2 -2
  470. package/dist/roadtrip/p-b1ba207d.entry.js.map +1 -0
  471. package/dist/roadtrip/{p-093973f5.entry.js → p-b2f014a6.entry.js} +2 -2
  472. package/dist/roadtrip/p-b2f014a6.entry.js.map +1 -0
  473. package/dist/roadtrip/{p-9419bdaf.entry.js → p-b555fa35.entry.js} +2 -2
  474. package/dist/roadtrip/p-b555fa35.entry.js.map +1 -0
  475. package/dist/roadtrip/{p-8e216f6a.entry.js → p-b8fb46b2.entry.js} +2 -2
  476. package/dist/roadtrip/p-b8fb46b2.entry.js.map +1 -0
  477. package/dist/roadtrip/p-bb6453af.entry.js +2 -0
  478. package/dist/roadtrip/p-bb6453af.entry.js.map +1 -0
  479. package/dist/roadtrip/{p-439e1124.entry.js → p-bcb6f48c.entry.js} +2 -2
  480. package/dist/roadtrip/p-bcb6f48c.entry.js.map +1 -0
  481. package/dist/roadtrip/{p-1974c993.entry.js → p-bf8336f1.entry.js} +2 -2
  482. package/dist/roadtrip/p-bf8336f1.entry.js.map +1 -0
  483. package/dist/roadtrip/{p-9036a1e6.entry.js → p-c29ce7c5.entry.js} +2 -2
  484. package/dist/roadtrip/p-c29ce7c5.entry.js.map +1 -0
  485. package/dist/roadtrip/p-ca775aae.entry.js +2 -0
  486. package/dist/roadtrip/p-ca775aae.entry.js.map +1 -0
  487. package/dist/roadtrip/p-d5d248f0.entry.js +2 -0
  488. package/dist/roadtrip/p-d5d248f0.entry.js.map +1 -0
  489. package/dist/roadtrip/{p-7ec2d494.js → p-d637bb99.js} +2 -2
  490. package/dist/roadtrip/p-d637bb99.js.map +1 -0
  491. package/dist/roadtrip/{p-4fd8c4db.entry.js → p-e2962889.entry.js} +2 -2
  492. package/dist/roadtrip/p-e2962889.entry.js.map +1 -0
  493. package/dist/roadtrip/p-e345ea12.entry.js +2 -0
  494. package/dist/roadtrip/p-e345ea12.entry.js.map +1 -0
  495. package/dist/roadtrip/{p-9dd06f01.entry.js → p-f13ca352.entry.js} +2 -2
  496. package/dist/roadtrip/p-f13ca352.entry.js.map +1 -0
  497. package/dist/roadtrip/{p-b259fee3.entry.js → p-f2bf9a16.entry.js} +2 -2
  498. package/dist/roadtrip/p-f2bf9a16.entry.js.map +1 -0
  499. package/dist/roadtrip/{p-cb254685.entry.js → p-f37fb739.entry.js} +2 -2
  500. package/dist/roadtrip/p-f37fb739.entry.js.map +1 -0
  501. package/dist/roadtrip/{p-650eb7fb.entry.js → p-fbc784aa.entry.js} +2 -2
  502. package/dist/roadtrip/p-fbc784aa.entry.js.map +1 -0
  503. package/dist/roadtrip/{p-91e92e99.entry.js → p-fcaa01f5.entry.js} +2 -2
  504. package/dist/roadtrip/p-fcaa01f5.entry.js.map +1 -0
  505. package/dist/roadtrip/{p-295a97d7.entry.js → p-fcf97829.entry.js} +2 -2
  506. package/dist/roadtrip/p-fcf97829.entry.js.map +1 -0
  507. package/dist/roadtrip/{p-ff473633.entry.js → p-fdf158a0.entry.js} +2 -2
  508. package/dist/roadtrip/p-fdf158a0.entry.js.map +1 -0
  509. package/dist/roadtrip/roadtrip.esm.js +1 -1
  510. package/dist/roadtrip/roadtrip.esm.js.map +1 -1
  511. package/dist/roadtrip/svg/vehicle-car-search-color.svg +1 -1
  512. package/dist/types/components/area-code/area-code.d.ts +4 -7
  513. package/dist/types/components.d.ts +571 -12
  514. package/dist/types/stencil-public-runtime.d.ts +38 -5
  515. package/hydrate/index.d.ts +6 -6
  516. package/hydrate/index.js +277 -216
  517. package/package.json +2 -2
  518. package/dist/cjs/app-d9e5adfa.js.map +0 -1
  519. package/dist/cjs/css-shim-68410b74.js +0 -8
  520. package/dist/cjs/css-shim-68410b74.js.map +0 -1
  521. package/dist/cjs/dom-225fc508.js +0 -77
  522. package/dist/cjs/dom-225fc508.js.map +0 -1
  523. package/dist/cjs/focus-visible-6771892b.js.map +0 -1
  524. package/dist/cjs/index-e4bd5b5f.js.map +0 -1
  525. package/dist/cjs/index-fd07207a.js.map +0 -1
  526. package/dist/cjs/polyfill-9453e116.js.map +0 -1
  527. package/dist/cjs/shadow-css-3c339190.js +0 -391
  528. package/dist/cjs/shadow-css-3c339190.js.map +0 -1
  529. package/dist/cjs/utils-5203d152.js.map +0 -1
  530. package/dist/cjs/utils-a450bad3.js.map +0 -1
  531. package/dist/esm/app-a8a6f02a.js +0 -7
  532. package/dist/esm/app-a8a6f02a.js.map +0 -1
  533. package/dist/esm/css-shim-fa54d62f.js +0 -6
  534. package/dist/esm/css-shim-fa54d62f.js.map +0 -1
  535. package/dist/esm/dom-8de30773.js +0 -75
  536. package/dist/esm/dom-8de30773.js.map +0 -1
  537. package/dist/esm/focus-visible-75a2ea2a.js.map +0 -1
  538. package/dist/esm/index-4b484f35.js.map +0 -1
  539. package/dist/esm/index-8f45025b.js.map +0 -1
  540. package/dist/esm/polyfill-ab80527b.js +0 -7
  541. package/dist/esm/polyfill-ab80527b.js.map +0 -1
  542. package/dist/esm/polyfills/css-shim.js +0 -1
  543. package/dist/esm/shadow-css-af2290df.js +0 -389
  544. package/dist/esm/shadow-css-af2290df.js.map +0 -1
  545. package/dist/esm/utils-7f4988b4.js.map +0 -1
  546. package/dist/esm/utils-ff713b72.js.map +0 -1
  547. package/dist/roadtrip/p-00cfef9b.js +0 -22
  548. package/dist/roadtrip/p-00cfef9b.js.map +0 -1
  549. package/dist/roadtrip/p-093973f5.entry.js.map +0 -1
  550. package/dist/roadtrip/p-0bcf6d63.entry.js.map +0 -1
  551. package/dist/roadtrip/p-0d99a5e7.entry.js.map +0 -1
  552. package/dist/roadtrip/p-125c777f.entry.js +0 -2
  553. package/dist/roadtrip/p-125c777f.entry.js.map +0 -1
  554. package/dist/roadtrip/p-16285738.entry.js +0 -2
  555. package/dist/roadtrip/p-16285738.entry.js.map +0 -1
  556. package/dist/roadtrip/p-170a82e1.entry.js +0 -2
  557. package/dist/roadtrip/p-170a82e1.entry.js.map +0 -1
  558. package/dist/roadtrip/p-1974c993.entry.js.map +0 -1
  559. package/dist/roadtrip/p-198f586b.entry.js +0 -2
  560. package/dist/roadtrip/p-198f586b.entry.js.map +0 -1
  561. package/dist/roadtrip/p-1baffcc2.entry.js.map +0 -1
  562. package/dist/roadtrip/p-1caeda78.entry.js.map +0 -1
  563. package/dist/roadtrip/p-214218dd.entry.js +0 -2
  564. package/dist/roadtrip/p-214218dd.entry.js.map +0 -1
  565. package/dist/roadtrip/p-21c20210.entry.js.map +0 -1
  566. package/dist/roadtrip/p-295a97d7.entry.js.map +0 -1
  567. package/dist/roadtrip/p-298a51a3.js +0 -2
  568. package/dist/roadtrip/p-298a51a3.js.map +0 -1
  569. package/dist/roadtrip/p-29ff2bcd.entry.js.map +0 -1
  570. package/dist/roadtrip/p-2d01d350.entry.js.map +0 -1
  571. package/dist/roadtrip/p-35ffaa87.entry.js.map +0 -1
  572. package/dist/roadtrip/p-3604d557.entry.js.map +0 -1
  573. package/dist/roadtrip/p-37ab7c7f.js.map +0 -1
  574. package/dist/roadtrip/p-38597e21.entry.js +0 -2
  575. package/dist/roadtrip/p-38597e21.entry.js.map +0 -1
  576. package/dist/roadtrip/p-439e1124.entry.js.map +0 -1
  577. package/dist/roadtrip/p-43bdbf0a.entry.js.map +0 -1
  578. package/dist/roadtrip/p-48596f8f.entry.js.map +0 -1
  579. package/dist/roadtrip/p-4993da93.entry.js.map +0 -1
  580. package/dist/roadtrip/p-4fd8c4db.entry.js.map +0 -1
  581. package/dist/roadtrip/p-50daca95.js +0 -13
  582. package/dist/roadtrip/p-50daca95.js.map +0 -1
  583. package/dist/roadtrip/p-564f4f31.entry.js +0 -2
  584. package/dist/roadtrip/p-564f4f31.entry.js.map +0 -1
  585. package/dist/roadtrip/p-5a4f9085.entry.js.map +0 -1
  586. package/dist/roadtrip/p-5f4779b1.entry.js.map +0 -1
  587. package/dist/roadtrip/p-62c563db.entry.js +0 -2
  588. package/dist/roadtrip/p-62c563db.entry.js.map +0 -1
  589. package/dist/roadtrip/p-650eb7fb.entry.js.map +0 -1
  590. package/dist/roadtrip/p-6598e293.entry.js.map +0 -1
  591. package/dist/roadtrip/p-66a9a6e8.entry.js.map +0 -1
  592. package/dist/roadtrip/p-73df1bef.entry.js.map +0 -1
  593. package/dist/roadtrip/p-7589e2bb.entry.js +0 -2
  594. package/dist/roadtrip/p-7c4b331c.entry.js.map +0 -1
  595. package/dist/roadtrip/p-7ec2d494.js.map +0 -1
  596. package/dist/roadtrip/p-8e216f6a.entry.js.map +0 -1
  597. package/dist/roadtrip/p-8f802447.entry.js.map +0 -1
  598. package/dist/roadtrip/p-9036a1e6.entry.js.map +0 -1
  599. package/dist/roadtrip/p-91e92e99.entry.js.map +0 -1
  600. package/dist/roadtrip/p-93030cec.entry.js.map +0 -1
  601. package/dist/roadtrip/p-9419bdaf.entry.js.map +0 -1
  602. package/dist/roadtrip/p-9432708d.entry.js.map +0 -1
  603. package/dist/roadtrip/p-9dd06f01.entry.js.map +0 -1
  604. package/dist/roadtrip/p-a32c7889.entry.js.map +0 -1
  605. package/dist/roadtrip/p-a484102a.entry.js.map +0 -1
  606. package/dist/roadtrip/p-abdbf6ac.js +0 -3
  607. package/dist/roadtrip/p-abdbf6ac.js.map +0 -1
  608. package/dist/roadtrip/p-b259fee3.entry.js.map +0 -1
  609. package/dist/roadtrip/p-b2cc540b.entry.js +0 -2
  610. package/dist/roadtrip/p-b2cc540b.entry.js.map +0 -1
  611. package/dist/roadtrip/p-b34aba1a.js.map +0 -1
  612. package/dist/roadtrip/p-b4dc061d.entry.js.map +0 -1
  613. package/dist/roadtrip/p-b5727aae.entry.js +0 -2
  614. package/dist/roadtrip/p-b5727aae.entry.js.map +0 -1
  615. package/dist/roadtrip/p-b7d3dc1a.entry.js.map +0 -1
  616. package/dist/roadtrip/p-c259efd7.js.map +0 -1
  617. package/dist/roadtrip/p-c56fe023.entry.js +0 -2
  618. package/dist/roadtrip/p-c56fe023.entry.js.map +0 -1
  619. package/dist/roadtrip/p-c8e9807b.entry.js.map +0 -1
  620. package/dist/roadtrip/p-cb254685.entry.js.map +0 -1
  621. package/dist/roadtrip/p-cd2e8f0a.entry.js.map +0 -1
  622. package/dist/roadtrip/p-e68a3ae5.entry.js.map +0 -1
  623. package/dist/roadtrip/p-e8c090a5.js +0 -2
  624. package/dist/roadtrip/p-e8c090a5.js.map +0 -1
  625. package/dist/roadtrip/p-ebe3c26a.entry.js.map +0 -1
  626. package/dist/roadtrip/p-ee0196ea.entry.js.map +0 -1
  627. package/dist/roadtrip/p-f671758f.entry.js +0 -2
  628. package/dist/roadtrip/p-f671758f.entry.js.map +0 -1
  629. package/dist/roadtrip/p-fa98320c.js +0 -2
  630. package/dist/roadtrip/p-fa98320c.js.map +0 -1
  631. package/dist/roadtrip/p-ff473633.entry.js.map +0 -1
  632. package/dist/roadtrip/p-ff52872b.entry.js.map +0 -1
@@ -21,6 +21,7 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'roadtrip';
24
+ const BUILD = /* roadtrip */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: true, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: true, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: true, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: true, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
24
25
 
25
26
  /**
26
27
  * Virtual DOM patching algorithm based on Snabbdom by
@@ -64,6 +65,13 @@ const HYDRATE_ID = 's-id';
64
65
  const HYDRATED_STYLE_ID = 'sty-id';
65
66
  const HYDRATE_CHILD_ID = 'c-id';
66
67
  const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
68
+ /**
69
+ * Constant for styles to be globally applied to `slot-fb` elements for pseudo-slot behavior.
70
+ *
71
+ * Two cascading rules must be used instead of a `:not()` selector due to Stencil browser
72
+ * support as of Stencil v4.
73
+ */
74
+ const SLOT_FB_CSS = 'slot-fb{display:contents}slot-fb[hidden]{display:none}';
67
75
  const XLINK_NS = 'http://www.w3.org/1999/xlink';
68
76
  /**
69
77
  * Default style mode id
@@ -144,13 +152,13 @@ const h = (nodeName, vnodeData, ...children) => {
144
152
  };
145
153
  walk(children);
146
154
  if (vnodeData) {
147
- // normalize class / classname attributes
148
155
  if (vnodeData.key) {
149
156
  key = vnodeData.key;
150
157
  }
151
158
  if (vnodeData.name) {
152
159
  slotName = vnodeData.name;
153
160
  }
161
+ // normalize class / className attributes
154
162
  {
155
163
  const classData = vnodeData.className || vnodeData.class;
156
164
  if (classData) {
@@ -396,7 +404,7 @@ const clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes
396
404
  }
397
405
  }
398
406
  else if (childVNode.$hostId$ === hostId) {
399
- // this comment node is specifcally for this host id
407
+ // this comment node is specifically for this host id
400
408
  if (childNodeType === SLOT_NODE_ID) {
401
409
  // `${SLOT_NODE_ID}.${hostId}.${nodeId}.${depth}.${index}.${slotName}`;
402
410
  childVNode.$tag$ = 'slot';
@@ -567,9 +575,9 @@ const registerStyle = (scopeId, cssText, allowCS) => {
567
575
  }
568
576
  styles.set(scopeId, style);
569
577
  };
570
- const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
578
+ const addStyle = (styleContainerNode, cmpMeta, mode) => {
571
579
  var _a;
572
- let scopeId = getScopeId(cmpMeta, mode);
580
+ const scopeId = getScopeId(cmpMeta, mode);
573
581
  const style = styles.get(scopeId);
574
582
  // if an element is NOT connected then getRootNode() will return the wrong root node
575
583
  // so the fallback is to always use the document for the root node in those cases
@@ -589,25 +597,8 @@ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
589
597
  styleElm.innerHTML = style;
590
598
  }
591
599
  else {
592
- // TODO(STENCIL-659): Remove code implementing the CSS variable shim
593
- if (plt.$cssShim$) {
594
- // TODO(STENCIL-659): Remove code implementing the CSS variable shim
595
- styleElm = plt.$cssShim$.createHostStyle(hostElm, scopeId, style,
596
- // TODO(STENCIL-662): Remove code related to deprecated shadowDomShim field
597
- !!(cmpMeta.$flags$ & 10 /* CMP_FLAGS.needsScopedEncapsulation */));
598
- const newScopeId = styleElm['s-sc'];
599
- if (newScopeId) {
600
- scopeId = newScopeId;
601
- // we don't want to add this styleID to the appliedStyles Set
602
- // since the cssVarShim might need to apply several different
603
- // stylesheets for the same component
604
- appliedStyles = null;
605
- }
606
- }
607
- else {
608
- styleElm = doc.createElement('style');
609
- styleElm.innerHTML = style;
610
- }
600
+ styleElm = doc.createElement('style');
601
+ styleElm.innerHTML = style;
611
602
  // Apply CSP nonce to the style tag if it exists
612
603
  const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
613
604
  if (nonce != null) {
@@ -615,6 +606,10 @@ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
615
606
  }
616
607
  styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
617
608
  }
609
+ // Add styles for `slot-fb` elements if we're using slots outside the Shadow DOM
610
+ if (cmpMeta.$flags$ & 4 /* CMP_FLAGS.hasSlotRelocation */) {
611
+ styleElm.innerHTML += SLOT_FB_CSS;
612
+ }
618
613
  if (appliedStyles) {
619
614
  appliedStyles.add(scopeId);
620
615
  }
@@ -631,8 +626,7 @@ const attachStyles = (hostRef) => {
631
626
  const elm = hostRef.$hostElement$;
632
627
  const flags = cmpMeta.$flags$;
633
628
  const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
634
- const scopeId = addStyle(supportsShadow && elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta, hostRef.$modeName$, elm);
635
- // TODO(STENCIL-662): Remove code related to deprecated shadowDomShim field
629
+ const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta, hostRef.$modeName$);
636
630
  if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
637
631
  // only required when we're NOT using native shadow dom (slot)
638
632
  // or this browser doesn't support native shadow dom
@@ -659,6 +653,21 @@ const convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g
659
653
  *
660
654
  * Modified for Stencil's compiler and vdom
661
655
  */
656
+ /**
657
+ * When running a VDom render set properties present on a VDom node onto the
658
+ * corresponding HTML element.
659
+ *
660
+ * Note that this function has special functionality for the `class`,
661
+ * `style`, `key`, and `ref` attributes, as well as event handlers (like
662
+ * `onClick`, etc). All others are just passed through as-is.
663
+ *
664
+ * @param elm the HTMLElement onto which attributes should be set
665
+ * @param memberName the name of the attribute to set
666
+ * @param oldValue the old value for the attribute
667
+ * @param newValue the new value for the attribute
668
+ * @param isSvg whether we're in an svg context or not
669
+ * @param flags bitflags for Vdom variables
670
+ */
662
671
  const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
663
672
  if (oldValue !== newValue) {
664
673
  let isProp = isMemberInElement(elm, memberName);
@@ -735,11 +744,19 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
735
744
  // except for the first character, we keep the event name case
736
745
  memberName = ln[2] + memberName.slice(3);
737
746
  }
738
- if (oldValue) {
739
- plt.rel(elm, memberName, oldValue, false);
740
- }
741
- if (newValue) {
742
- plt.ael(elm, memberName, newValue, false);
747
+ if (oldValue || newValue) {
748
+ // Need to account for "capture" events.
749
+ // If the event name ends with "Capture", we'll update the name to remove
750
+ // the "Capture" suffix and make sure the event listener is setup to handle the capture event.
751
+ const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
752
+ // Make sure we only replace the last instance of "Capture"
753
+ memberName = memberName.replace(CAPTURE_EVENT_REGEX, '');
754
+ if (oldValue) {
755
+ plt.rel(elm, memberName, oldValue, capture);
756
+ }
757
+ if (newValue) {
758
+ plt.ael(elm, memberName, newValue, capture);
759
+ }
743
760
  }
744
761
  }
745
762
  else {
@@ -801,6 +818,8 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
801
818
  };
802
819
  const parseClassListRegex = /\s/;
803
820
  const parseClassList = (value) => (!value ? [] : value.split(parseClassListRegex));
821
+ const CAPTURE_EVENT_SUFFIX = 'Capture';
822
+ const CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + '$');
804
823
  const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
805
824
  // if the element passed in is a shadow root, which is a document fragment
806
825
  // then we want to be adding attrs/props to the shadow root's "host" element
@@ -834,6 +853,7 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
834
853
  * @returns the newly created node
835
854
  */
836
855
  const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
856
+ var _a;
837
857
  // tslint:disable-next-line: prefer-const
838
858
  const newVNode = newParentVNode.$children$[childIndex];
839
859
  let i = 0;
@@ -912,6 +932,8 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
912
932
  if (newVNode.$flags$ & (2 /* VNODE_FLAGS.isSlotFallback */ | 1 /* VNODE_FLAGS.isSlotReference */)) {
913
933
  // remember the content reference comment
914
934
  elm['s-sr'] = true;
935
+ // Persist the name of the slot that this slot was going to be projected into.
936
+ elm['s-fs'] = (_a = newVNode.$attrs$) === null || _a === void 0 ? void 0 : _a.slot;
915
937
  // remember the content reference comment
916
938
  elm['s-cr'] = contentRef;
917
939
  // remember the slot name, or empty string for default slot
@@ -928,6 +950,7 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
928
950
  return elm;
929
951
  };
930
952
  const putBackInOriginalLocation = (parentElm, recursive) => {
953
+ var _a;
931
954
  plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
932
955
  const oldSlotChildNodes = parentElm.childNodes;
933
956
  for (let i = oldSlotChildNodes.length - 1; i >= 0; i--) {
@@ -940,9 +963,17 @@ const putBackInOriginalLocation = (parentElm, recursive) => {
940
963
  parentReferenceNode(childNode).insertBefore(childNode, referenceNode(childNode));
941
964
  // remove the old original location comment entirely
942
965
  // later on the patch function will know what to do
943
- // and move this to the correct spot in need be
966
+ // and move this to the correct spot if need be
944
967
  childNode['s-ol'].remove();
945
968
  childNode['s-ol'] = undefined;
969
+ // Reset so we can correctly move the node around again.
970
+ childNode['s-sh'] = undefined;
971
+ // When putting an element node back in its original location,
972
+ // we need to reset the `slot` attribute back to the value it originally had
973
+ // so we can correctly relocate it again in the future
974
+ if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
975
+ childNode.setAttribute('slot', (_a = childNode['s-sn']) !== null && _a !== void 0 ? _a : '');
976
+ }
946
977
  checkSlotRelocate = true;
947
978
  }
948
979
  if (recursive) {
@@ -1366,42 +1397,53 @@ const patch = (oldVNode, newVNode) => {
1366
1397
  elm.data = text;
1367
1398
  }
1368
1399
  };
1400
+ /**
1401
+ * Adjust the `.hidden` property as-needed on any nodes in a DOM subtree which
1402
+ * are slot fallbacks nodes.
1403
+ *
1404
+ * A slot fallback node should be visible by default. Then, it should be
1405
+ * conditionally hidden if:
1406
+ *
1407
+ * - it has a sibling with a `slot` property set to its slot name or if
1408
+ * - it is a default fallback slot node, in which case we hide if it has any
1409
+ * content
1410
+ *
1411
+ * @param elm the element of interest
1412
+ */
1369
1413
  const updateFallbackSlotVisibility = (elm) => {
1370
- // tslint:disable-next-line: prefer-const
1371
1414
  const childNodes = elm.childNodes;
1372
- let childNode;
1373
- let i;
1374
- let ilen;
1375
- let j;
1376
- let slotNameAttr;
1377
- let nodeType;
1378
- for (i = 0, ilen = childNodes.length; i < ilen; i++) {
1379
- childNode = childNodes[i];
1415
+ for (const childNode of childNodes) {
1380
1416
  if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1381
1417
  if (childNode['s-sr']) {
1382
1418
  // this is a slot fallback node
1383
1419
  // get the slot name for this slot reference node
1384
- slotNameAttr = childNode['s-sn'];
1420
+ const slotName = childNode['s-sn'];
1385
1421
  // by default always show a fallback slot node
1386
1422
  // then hide it if there are other slots in the light dom
1387
1423
  childNode.hidden = false;
1388
- for (j = 0; j < ilen; j++) {
1389
- nodeType = childNodes[j].nodeType;
1390
- if (childNodes[j]['s-hn'] !== childNode['s-hn'] || slotNameAttr !== '') {
1391
- // this sibling node is from a different component OR is a named fallback slot node
1392
- if (nodeType === 1 /* NODE_TYPE.ElementNode */ && slotNameAttr === childNodes[j].getAttribute('slot')) {
1393
- childNode.hidden = true;
1394
- break;
1424
+ // we need to check all of its sibling nodes in order to see if
1425
+ // `childNode` should be hidden
1426
+ for (const siblingNode of childNodes) {
1427
+ // Don't check the node against itself
1428
+ if (siblingNode !== childNode) {
1429
+ if (siblingNode['s-hn'] !== childNode['s-hn'] || slotName !== '') {
1430
+ // this sibling node is from a different component OR is a named
1431
+ // fallback slot node
1432
+ if (siblingNode.nodeType === 1 /* NODE_TYPE.ElementNode */ &&
1433
+ (slotName === siblingNode.getAttribute('slot') || slotName === siblingNode['s-sn'])) {
1434
+ childNode.hidden = true;
1435
+ break;
1436
+ }
1395
1437
  }
1396
- }
1397
- else {
1398
- // this is a default fallback slot node
1399
- // any element or text node (with content)
1400
- // should hide the default fallback slot node
1401
- if (nodeType === 1 /* NODE_TYPE.ElementNode */ ||
1402
- (nodeType === 3 /* NODE_TYPE.TextNode */ && childNodes[j].textContent.trim() !== '')) {
1403
- childNode.hidden = true;
1404
- break;
1438
+ else {
1439
+ // this is a default fallback slot node
1440
+ // any element or text node (with content)
1441
+ // should hide the default fallback slot node
1442
+ if (siblingNode.nodeType === 1 /* NODE_TYPE.ElementNode */ ||
1443
+ (siblingNode.nodeType === 3 /* NODE_TYPE.TextNode */ && siblingNode.textContent.trim() !== '')) {
1444
+ childNode.hidden = true;
1445
+ break;
1446
+ }
1405
1447
  }
1406
1448
  }
1407
1449
  }
@@ -1411,45 +1453,67 @@ const updateFallbackSlotVisibility = (elm) => {
1411
1453
  }
1412
1454
  }
1413
1455
  };
1456
+ /**
1457
+ * Component-global information about nodes which are either currently being
1458
+ * relocated or will be shortly.
1459
+ */
1414
1460
  const relocateNodes = [];
1415
- const relocateSlotContent = (elm) => {
1461
+ /**
1462
+ * Mark the contents of a slot for relocation via adding references to them to
1463
+ * the {@link relocateNodes} data structure. The actual work of relocating them
1464
+ * will then be handled in {@link renderVdom}.
1465
+ *
1466
+ * @param elm a render node whose child nodes need to be relocated
1467
+ */
1468
+ const markSlotContentForRelocation = (elm) => {
1416
1469
  // tslint:disable-next-line: prefer-const
1417
- let childNode;
1418
1470
  let node;
1419
1471
  let hostContentNodes;
1420
- let slotNameAttr;
1421
- let relocateNodeData;
1422
1472
  let j;
1423
- let i = 0;
1424
- const childNodes = elm.childNodes;
1425
- const ilen = childNodes.length;
1426
- for (; i < ilen; i++) {
1427
- childNode = childNodes[i];
1473
+ for (const childNode of elm.childNodes) {
1474
+ // we need to find child nodes which are slot references so we can then try
1475
+ // to match them up with nodes that need to be relocated
1428
1476
  if (childNode['s-sr'] && (node = childNode['s-cr']) && node.parentNode) {
1429
- // first got the content reference comment node
1430
- // then we got it's parent, which is where all the host content is in now
1477
+ // first get the content reference comment node ('s-cr'), then we get
1478
+ // its parent, which is where all the host content is now
1431
1479
  hostContentNodes = node.parentNode.childNodes;
1432
- slotNameAttr = childNode['s-sn'];
1480
+ const slotName = childNode['s-sn'];
1481
+ // iterate through all the nodes under the location where the host was
1482
+ // originally rendered
1433
1483
  for (j = hostContentNodes.length - 1; j >= 0; j--) {
1434
1484
  node = hostContentNodes[j];
1435
- if (!node['s-cn'] && !node['s-nr'] && node['s-hn'] !== childNode['s-hn']) {
1436
- // let's do some relocating to its new home
1437
- // but never relocate a content reference node
1438
- // that is suppose to always represent the original content location
1439
- if (isNodeLocatedInSlot(node, slotNameAttr)) {
1485
+ // check that the node is not a content reference node or a node
1486
+ // reference and then check that the host name does not match that of
1487
+ // childNode.
1488
+ // In addition, check that the slot either has not already been relocated, or
1489
+ // that its current location's host is not childNode's host. This is essentially
1490
+ // a check so that we don't try to relocate (and then hide) a node that is already
1491
+ // where it should be.
1492
+ if (!node['s-cn'] &&
1493
+ !node['s-nr'] &&
1494
+ node['s-hn'] !== childNode['s-hn'] &&
1495
+ (!BUILD.experimentalSlotFixes )) {
1496
+ // if `node` is located in the slot that `childNode` refers to (via the
1497
+ // `'s-sn'` property) then we need to relocate it from it's current spot
1498
+ // (under the host element parent) to the right slot location
1499
+ if (isNodeLocatedInSlot(node, slotName)) {
1440
1500
  // it's possible we've already decided to relocate this node
1441
- relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1501
+ let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1442
1502
  // made some changes to slots
1443
1503
  // let's make sure we also double check
1444
1504
  // fallbacks are correctly hidden or shown
1445
1505
  checkSlotFallbackVisibility = true;
1446
- node['s-sn'] = node['s-sn'] || slotNameAttr;
1506
+ // ensure that the slot-name attr is correct
1507
+ node['s-sn'] = node['s-sn'] || slotName;
1447
1508
  if (relocateNodeData) {
1448
- // previously we never found a slot home for this node
1449
- // but turns out we did, so let's remember it now
1509
+ relocateNodeData.$nodeToRelocate$['s-sh'] = childNode['s-hn'];
1510
+ // we marked this node for relocation previously but didn't find
1511
+ // out the slot reference node to which it needs to be relocated
1512
+ // so write it down now!
1450
1513
  relocateNodeData.$slotRefNode$ = childNode;
1451
1514
  }
1452
1515
  else {
1516
+ node['s-sh'] = childNode['s-hn'];
1453
1517
  // add to our list of nodes to relocate
1454
1518
  relocateNodes.push({
1455
1519
  $slotRefNode$: childNode,
@@ -1468,8 +1532,10 @@ const relocateSlotContent = (elm) => {
1468
1532
  }
1469
1533
  }
1470
1534
  else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
1471
- // so far this element does not have a slot home, not setting slotRefNode on purpose
1472
- // if we never find a home for this element then we'll need to hide it
1535
+ // the node is not found within the slot (`childNode`) that we're
1536
+ // currently looking at, so we stick it into `relocateNodes` to
1537
+ // handle later. If we never find a home for this element then
1538
+ // we'll need to hide it
1473
1539
  relocateNodes.push({
1474
1540
  $nodeToRelocate$: node,
1475
1541
  });
@@ -1477,30 +1543,41 @@ const relocateSlotContent = (elm) => {
1477
1543
  }
1478
1544
  }
1479
1545
  }
1546
+ // if we're dealing with any type of element (capable of itself being a
1547
+ // slot reference or containing one) then we recur
1480
1548
  if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1481
- relocateSlotContent(childNode);
1549
+ markSlotContentForRelocation(childNode);
1482
1550
  }
1483
1551
  }
1484
1552
  };
1485
- const isNodeLocatedInSlot = (nodeToRelocate, slotNameAttr) => {
1553
+ /**
1554
+ * Check whether a node is located in a given named slot.
1555
+ *
1556
+ * @param nodeToRelocate the node of interest
1557
+ * @param slotName the slot name to check
1558
+ * @returns whether the node is located in the slot or not
1559
+ */
1560
+ const isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
1486
1561
  if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1487
- if (nodeToRelocate.getAttribute('slot') === null && slotNameAttr === '') {
1562
+ if (nodeToRelocate.getAttribute('slot') === null && slotName === '') {
1563
+ // if the node doesn't have a slot attribute, and the slot we're checking
1564
+ // is not a named slot, then we assume the node should be within the slot
1488
1565
  return true;
1489
1566
  }
1490
- if (nodeToRelocate.getAttribute('slot') === slotNameAttr) {
1567
+ if (nodeToRelocate.getAttribute('slot') === slotName) {
1491
1568
  return true;
1492
1569
  }
1493
1570
  return false;
1494
1571
  }
1495
- if (nodeToRelocate['s-sn'] === slotNameAttr) {
1572
+ if (nodeToRelocate['s-sn'] === slotName) {
1496
1573
  return true;
1497
1574
  }
1498
- return slotNameAttr === '';
1575
+ return slotName === '';
1499
1576
  };
1500
1577
  /**
1501
- * 'Nullify' any VDom `ref` callbacks on a VDom node or its children by
1502
- * calling them with `null`. This signals that the DOM element corresponding to
1503
- * the VDom node has been removed from the DOM.
1578
+ * 'Nullify' any VDom `ref` callbacks on a VDom node or its children by calling
1579
+ * them with `null`. This signals that the DOM element corresponding to the VDom
1580
+ * node has been removed from the DOM.
1504
1581
  *
1505
1582
  * @param vNode a virtual DOM node
1506
1583
  */
@@ -1521,17 +1598,45 @@ const nullifyVNodeRefs = (vNode) => {
1521
1598
  * @param hostRef data needed to root and render the virtual DOM tree, such as
1522
1599
  * the DOM node into which it should be rendered.
1523
1600
  * @param renderFnResults the virtual DOM nodes to be rendered
1601
+ * @param isInitialLoad whether or not this is the first call after page load
1524
1602
  */
1525
- const renderVdom = (hostRef, renderFnResults) => {
1603
+ const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1604
+ var _a, _b;
1526
1605
  const hostElm = hostRef.$hostElement$;
1527
1606
  const cmpMeta = hostRef.$cmpMeta$;
1528
1607
  const oldVNode = hostRef.$vnode$ || newVNode(null, null);
1608
+ // if `renderFnResults` is a Host node then we can use it directly. If not,
1609
+ // we need to call `h` again to wrap the children of our component in a
1610
+ // 'dummy' Host node (well, an empty vnode) since `renderVdom` assumes
1611
+ // implicitly that the top-level vdom node is 1) an only child and 2)
1612
+ // contains attrs that need to be set on the host element.
1529
1613
  const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
1530
1614
  hostTagName = hostElm.tagName;
1531
1615
  if (cmpMeta.$attrsToReflect$) {
1532
1616
  rootVnode.$attrs$ = rootVnode.$attrs$ || {};
1533
1617
  cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
1534
1618
  }
1619
+ // On the first render and *only* on the first render we want to check for
1620
+ // any attributes set on the host element which are also set on the vdom
1621
+ // node. If we find them, we override the value on the VDom node attrs with
1622
+ // the value from the host element, which allows developers building apps
1623
+ // with Stencil components to override e.g. the `role` attribute on a
1624
+ // component even if it's already set on the `Host`.
1625
+ if (isInitialLoad && rootVnode.$attrs$) {
1626
+ for (const key of Object.keys(rootVnode.$attrs$)) {
1627
+ // We have a special implementation in `setAccessor` for `style` and
1628
+ // `class` which reconciles values coming from the VDom with values
1629
+ // already present on the DOM element, so we don't want to override those
1630
+ // attributes on the VDom tree with values from the host element if they
1631
+ // are present.
1632
+ //
1633
+ // Likewise, `ref` and `key` are special internal values for the Stencil
1634
+ // runtime and we don't want to override those either.
1635
+ if (hostElm.hasAttribute(key) && !['key', 'ref', 'style', 'class'].includes(key)) {
1636
+ rootVnode.$attrs$[key] = hostElm[key];
1637
+ }
1638
+ }
1639
+ }
1535
1640
  rootVnode.$tag$ = null;
1536
1641
  rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
1537
1642
  hostRef.$vnode$ = rootVnode;
@@ -1541,7 +1646,7 @@ const renderVdom = (hostRef, renderFnResults) => {
1541
1646
  }
1542
1647
  {
1543
1648
  contentRef = hostElm['s-cr'];
1544
- useNativeShadowDom = supportsShadow && (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) !== 0;
1649
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) !== 0;
1545
1650
  // always reset
1546
1651
  checkSlotFallbackVisibility = false;
1547
1652
  }
@@ -1552,43 +1657,48 @@ const renderVdom = (hostRef, renderFnResults) => {
1552
1657
  // the disconnectCallback from working
1553
1658
  plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
1554
1659
  if (checkSlotRelocate) {
1555
- relocateSlotContent(rootVnode.$elm$);
1556
- let relocateData;
1557
- let nodeToRelocate;
1558
- let orgLocationNode;
1559
- let parentNodeRef;
1560
- let insertBeforeNode;
1561
- let refNode;
1562
- let i = 0;
1563
- for (; i < relocateNodes.length; i++) {
1564
- relocateData = relocateNodes[i];
1565
- nodeToRelocate = relocateData.$nodeToRelocate$;
1660
+ markSlotContentForRelocation(rootVnode.$elm$);
1661
+ for (const relocateData of relocateNodes) {
1662
+ const nodeToRelocate = relocateData.$nodeToRelocate$;
1566
1663
  if (!nodeToRelocate['s-ol']) {
1567
1664
  // add a reference node marking this node's original location
1568
1665
  // keep a reference to this node for later lookups
1569
- orgLocationNode =
1570
- doc.createTextNode('');
1666
+ const orgLocationNode = doc.createTextNode('');
1571
1667
  orgLocationNode['s-nr'] = nodeToRelocate;
1572
1668
  nodeToRelocate.parentNode.insertBefore((nodeToRelocate['s-ol'] = orgLocationNode), nodeToRelocate);
1573
1669
  }
1574
1670
  }
1575
- for (i = 0; i < relocateNodes.length; i++) {
1576
- relocateData = relocateNodes[i];
1577
- nodeToRelocate = relocateData.$nodeToRelocate$;
1578
- if (relocateData.$slotRefNode$) {
1579
- // by default we're just going to insert it directly
1580
- // after the slot reference node
1581
- parentNodeRef = relocateData.$slotRefNode$.parentNode;
1582
- insertBeforeNode = relocateData.$slotRefNode$.nextSibling;
1583
- orgLocationNode = nodeToRelocate['s-ol'];
1584
- while ((orgLocationNode = orgLocationNode.previousSibling)) {
1585
- refNode = orgLocationNode['s-nr'];
1586
- if (refNode && refNode['s-sn'] === nodeToRelocate['s-sn'] && parentNodeRef === refNode.parentNode) {
1587
- refNode = refNode.nextSibling;
1588
- if (!refNode || !refNode['s-nr']) {
1589
- insertBeforeNode = refNode;
1590
- break;
1671
+ for (const relocateData of relocateNodes) {
1672
+ const nodeToRelocate = relocateData.$nodeToRelocate$;
1673
+ const slotRefNode = relocateData.$slotRefNode$;
1674
+ if (slotRefNode) {
1675
+ const parentNodeRef = slotRefNode.parentNode;
1676
+ // When determining where to insert content, the most simple case would be
1677
+ // to relocate the node immediately following the slot reference node. We do this
1678
+ // by getting a reference to the node immediately following the slot reference node
1679
+ // since we will use `insertBefore` to manipulate the DOM.
1680
+ //
1681
+ // If there is no node immediately following the slot reference node, then we will just
1682
+ // end up appending the node as the last child of the parent.
1683
+ let insertBeforeNode = slotRefNode.nextSibling;
1684
+ // If the node we're currently planning on inserting the new node before is an element,
1685
+ // we need to do some additional checks to make sure we're inserting the node in the correct order.
1686
+ // The use case here would be that we have multiple nodes being relocated to the same slot. So, we want
1687
+ // to make sure they get inserted into their new how in the same order they were declared in their original location.
1688
+ //
1689
+ // TODO(STENCIL-914): Remove `experimentalSlotFixes` check
1690
+ {
1691
+ let orgLocationNode = (_a = nodeToRelocate['s-ol']) === null || _a === void 0 ? void 0 : _a.previousSibling;
1692
+ while (orgLocationNode) {
1693
+ let refNode = (_b = orgLocationNode['s-nr']) !== null && _b !== void 0 ? _b : null;
1694
+ if (refNode && refNode['s-sn'] === nodeToRelocate['s-sn'] && parentNodeRef === refNode.parentNode) {
1695
+ refNode = refNode.nextSibling;
1696
+ if (!refNode || !refNode['s-nr']) {
1697
+ insertBeforeNode = refNode;
1698
+ break;
1699
+ }
1591
1700
  }
1701
+ orgLocationNode = orgLocationNode.previousSibling;
1592
1702
  }
1593
1703
  }
1594
1704
  if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
@@ -1598,10 +1708,13 @@ const renderVdom = (hostRef, renderFnResults) => {
1598
1708
  // has a different next sibling or parent relocated
1599
1709
  if (nodeToRelocate !== insertBeforeNode) {
1600
1710
  if (!nodeToRelocate['s-hn'] && nodeToRelocate['s-ol']) {
1601
- // probably a component in the index.html that doesn't have it's hostname set
1711
+ // probably a component in the index.html that doesn't have its hostname set
1602
1712
  nodeToRelocate['s-hn'] = nodeToRelocate['s-ol'].parentNode.nodeName;
1603
1713
  }
1604
- // add it back to the dom but in its new home
1714
+ // Add it back to the dom but in its new home
1715
+ // If we get to this point and `insertBeforeNode` is `null`, that means
1716
+ // we're just going to append the node as the last child of the parent. Passing
1717
+ // `null` as the second arg here will trigger that behavior.
1605
1718
  parentNodeRef.insertBefore(nodeToRelocate, insertBeforeNode);
1606
1719
  }
1607
1720
  }
@@ -1722,6 +1835,16 @@ const enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.th
1722
1835
  */
1723
1836
  const isPromisey = (maybePromise) => maybePromise instanceof Promise ||
1724
1837
  (maybePromise && maybePromise.then && typeof maybePromise.then === 'function');
1838
+ /**
1839
+ * Update a component given reference to its host elements and so on.
1840
+ *
1841
+ * @param hostRef an object containing references to the element's host node,
1842
+ * VDom nodes, and other metadata
1843
+ * @param instance a reference to the underlying host element where it will be
1844
+ * rendered
1845
+ * @param isInitialLoad whether or not this function is being called as part of
1846
+ * the first render cycle
1847
+ */
1725
1848
  const updateComponent = async (hostRef, instance, isInitialLoad) => {
1726
1849
  var _a;
1727
1850
  const elm = hostRef.$hostElement$;
@@ -1733,12 +1856,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
1733
1856
  }
1734
1857
  const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
1735
1858
  {
1736
- callRender(hostRef, instance);
1737
- }
1738
- // TODO(STENCIL-659): Remove code implementing the CSS variable shim
1739
- if (plt.$cssShim$) {
1740
- // TODO(STENCIL-659): Remove code implementing the CSS variable shim
1741
- plt.$cssShim$.updateHost(elm);
1859
+ callRender(hostRef, instance, elm, isInitialLoad);
1742
1860
  }
1743
1861
  if (rc) {
1744
1862
  // ok, so turns out there are some child host elements
@@ -1762,8 +1880,24 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
1762
1880
  }
1763
1881
  }
1764
1882
  };
1765
- const callRender = (hostRef, instance, elm) => {
1883
+ /**
1884
+ * Handle making the call to the VDom renderer with the proper context given
1885
+ * various build variables
1886
+ *
1887
+ * @param hostRef an object containing references to the element's host node,
1888
+ * VDom nodes, and other metadata
1889
+ * @param instance a reference to the underlying host element where it will be
1890
+ * rendered
1891
+ * @param elm the Host element for the component
1892
+ * @param isInitialLoad whether or not this function is being called as part of
1893
+ * @returns an empty promise
1894
+ */
1895
+ const callRender = (hostRef, instance, elm, isInitialLoad) => {
1766
1896
  try {
1897
+ /**
1898
+ * minification optimization: `allRenderFn` is `true` if all components have a `render`
1899
+ * method, so we can call the method immediately. If not, check before calling it.
1900
+ */
1767
1901
  instance = instance.render() ;
1768
1902
  {
1769
1903
  hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
@@ -1777,7 +1911,7 @@ const callRender = (hostRef, instance, elm) => {
1777
1911
  // or we need to update the css class/attrs on the host element
1778
1912
  // DOM WRITE!
1779
1913
  {
1780
- renderVdom(hostRef, instance);
1914
+ renderVdom(hostRef, instance, isInitialLoad);
1781
1915
  }
1782
1916
  }
1783
1917
  }
@@ -1840,6 +1974,16 @@ const appDidLoad = (who) => {
1840
1974
  }
1841
1975
  nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
1842
1976
  };
1977
+ /**
1978
+ * Allows to safely call a method, e.g. `componentDidLoad`, on an instance,
1979
+ * e.g. custom element node. If a build figures out that e.g. no component
1980
+ * has a `componentDidLoad` method, the instance method gets removed from the
1981
+ * output bundle and this function returns `undefined`.
1982
+ * @param instance any object that may or may not contain methods
1983
+ * @param method method name
1984
+ * @param arg single arbitrary argument
1985
+ * @returns result of method call if it exists, otherwise `undefined`
1986
+ */
1843
1987
  const safeCall = (instance, method, arg) => {
1844
1988
  if (instance && instance[method]) {
1845
1989
  try {
@@ -1907,6 +2051,7 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
1907
2051
  * @returns a reference to the same constructor passed in (but now mutated)
1908
2052
  */
1909
2053
  const proxyComponent = (Cstr, cmpMeta, flags) => {
2054
+ var _a;
1910
2055
  if (cmpMeta.$members$) {
1911
2056
  if (Cstr.watchers) {
1912
2057
  cmpMeta.$watchers$ = Cstr.watchers;
@@ -1944,7 +2089,7 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1944
2089
  });
1945
2090
  if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
1946
2091
  const attrNameToPropName = new Map();
1947
- prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
2092
+ prototype.attributeChangedCallback = function (attrName, oldValue, newValue) {
1948
2093
  plt.jmp(() => {
1949
2094
  const propName = attrNameToPropName.get(attrName);
1950
2095
  // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
@@ -1967,12 +2112,12 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1967
2112
  // customElements.define('my-component', MyComponent);
1968
2113
  // </script>
1969
2114
  // ```
1970
- // In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
2115
+ // In this case if we do not un-shadow here and use the value of the shadowing property, attributeChangedCallback
1971
2116
  // will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
1972
2117
  // to the value that was set inline i.e. "some-value" from above example. When
1973
- // the connectedCallback attempts to unshadow it will use "some-value" as the initial value rather than "another-value"
2118
+ // the connectedCallback attempts to un-shadow it will use "some-value" as the initial value rather than "another-value"
1974
2119
  //
1975
- // The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
2120
+ // The case where the attribute was NOT set inline but was not set programmatically shall be handled/un-shadowed
1976
2121
  // by connectedCallback as this attributeChangedCallback will not fire.
1977
2122
  //
1978
2123
  // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
@@ -1992,26 +2137,65 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1992
2137
  // `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
1993
2138
  return;
1994
2139
  }
2140
+ else if (propName == null) {
2141
+ // At this point we should know this is not a "member", so we can treat it like watching an attribute
2142
+ // on a vanilla web component
2143
+ const hostRef = getHostRef(this);
2144
+ const flags = hostRef === null || hostRef === void 0 ? void 0 : hostRef.$flags$;
2145
+ // We only want to trigger the callback(s) if:
2146
+ // 1. The instance is ready
2147
+ // 2. The watchers are ready
2148
+ // 3. The value has changed
2149
+ if (!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) &&
2150
+ flags & 128 /* HOST_FLAGS.isWatchReady */ &&
2151
+ newValue !== oldValue) {
2152
+ const instance = hostRef.$lazyInstance$ ;
2153
+ const entry = cmpMeta.$watchers$[attrName];
2154
+ entry === null || entry === void 0 ? void 0 : entry.forEach((callbackName) => {
2155
+ if (instance[callbackName] != null) {
2156
+ instance[callbackName].call(instance, newValue, oldValue, attrName);
2157
+ }
2158
+ });
2159
+ }
2160
+ return;
2161
+ }
1995
2162
  this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
1996
2163
  });
1997
2164
  };
1998
- // create an array of attributes to observe
1999
- // and also create a map of html attribute name to js property name
2000
- Cstr.observedAttributes = members
2001
- .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */) // filter to only keep props that should match attributes
2002
- .map(([propName, m]) => {
2003
- const attrName = m[1] || propName;
2004
- attrNameToPropName.set(attrName, propName);
2005
- if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
2006
- cmpMeta.$attrsToReflect$.push([propName, attrName]);
2007
- }
2008
- return attrName;
2009
- });
2165
+ // Create an array of attributes to observe
2166
+ // This list in comprised of all strings used within a `@Watch()` decorator
2167
+ // on a component as well as any Stencil-specific "members" (`@Prop()`s and `@State()`s).
2168
+ // As such, there is no way to guarantee type-safety here that a user hasn't entered
2169
+ // an invalid attribute.
2170
+ Cstr.observedAttributes = Array.from(new Set([
2171
+ ...Object.keys((_a = cmpMeta.$watchers$) !== null && _a !== void 0 ? _a : {}),
2172
+ ...members
2173
+ .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */)
2174
+ .map(([propName, m]) => {
2175
+ const attrName = m[1] || propName;
2176
+ attrNameToPropName.set(attrName, propName);
2177
+ if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
2178
+ cmpMeta.$attrsToReflect$.push([propName, attrName]);
2179
+ }
2180
+ return attrName;
2181
+ }),
2182
+ ]));
2010
2183
  }
2011
2184
  }
2012
2185
  return Cstr;
2013
2186
  };
2014
- const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
2187
+ /**
2188
+ * Initialize a Stencil component given a reference to its host element, its
2189
+ * runtime bookkeeping data structure, runtime metadata about the component,
2190
+ * and (optionally) an HMR version ID.
2191
+ *
2192
+ * @param elm a host element
2193
+ * @param hostRef the element's runtime bookkeeping object
2194
+ * @param cmpMeta runtime metadata for the Stencil component
2195
+ * @param hmrVersionId an (optional) HMR version ID
2196
+ */
2197
+ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
2198
+ let Cstr;
2015
2199
  // initializeComponent
2016
2200
  if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
2017
2201
  // Let the runtime know that the component has been initialized
@@ -2072,9 +2256,6 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
2072
2256
  const scopeId = getScopeId(cmpMeta, hostRef.$modeName$);
2073
2257
  if (!styles.has(scopeId)) {
2074
2258
  const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
2075
- if (cmpMeta.$flags$ & 8 /* CMP_FLAGS.needsShadowDomShim */) {
2076
- style = await Promise.resolve().then(function () { return require('./shadow-css-3c339190.js'); }).then((m) => m.scopeCss(style, scopeId, false));
2077
- }
2078
2259
  registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */));
2079
2260
  endRegisterStyles();
2080
2261
  }
@@ -2113,7 +2294,7 @@ const connectedCallback = (elm) => {
2113
2294
  {
2114
2295
  hostId = elm.getAttribute(HYDRATE_ID);
2115
2296
  if (hostId) {
2116
- if (supportsShadow && cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
2297
+ if (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
2117
2298
  const scopeId = addStyle(elm.shadowRoot, cmpMeta, elm.getAttribute('s-mode'))
2118
2299
  ;
2119
2300
  elm.classList.remove(scopeId + '-h', scopeId + '-s');
@@ -2126,7 +2307,7 @@ const connectedCallback = (elm) => {
2126
2307
  // if the slot polyfill is required we'll need to put some nodes
2127
2308
  // in here to act as original content anchors as we move nodes around
2128
2309
  // host element has been connected to the DOM
2129
- if ((// TODO(STENCIL-662): Remove code related to deprecated shadowDomShim field
2310
+ if ((// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
2130
2311
  cmpMeta.$flags$ & (4 /* CMP_FLAGS.hasSlotRelocation */ | 8 /* CMP_FLAGS.needsShadowDomShim */))) {
2131
2312
  setContentReference(elm);
2132
2313
  }
@@ -2170,7 +2351,12 @@ const connectedCallback = (elm) => {
2170
2351
  // since they would have been removed when disconnected
2171
2352
  addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
2172
2353
  // fire off connectedCallback() on component instance
2173
- fireConnectedCallback(hostRef.$lazyInstance$);
2354
+ if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) {
2355
+ fireConnectedCallback(hostRef.$lazyInstance$);
2356
+ }
2357
+ else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
2358
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
2359
+ }
2174
2360
  }
2175
2361
  endConnected();
2176
2362
  }
@@ -2186,24 +2372,25 @@ const setContentReference = (elm) => {
2186
2372
  contentRefElm['s-cn'] = true;
2187
2373
  elm.insertBefore(contentRefElm, elm.firstChild);
2188
2374
  };
2189
- const disconnectedCallback = (elm) => {
2375
+ const disconnectInstance = (instance) => {
2376
+ {
2377
+ safeCall(instance, 'disconnectedCallback');
2378
+ }
2379
+ };
2380
+ const disconnectedCallback = async (elm) => {
2190
2381
  if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
2191
2382
  const hostRef = getHostRef(elm);
2192
- const instance = hostRef.$lazyInstance$ ;
2193
2383
  {
2194
2384
  if (hostRef.$rmListeners$) {
2195
2385
  hostRef.$rmListeners$.map((rmListener) => rmListener());
2196
2386
  hostRef.$rmListeners$ = undefined;
2197
2387
  }
2198
2388
  }
2199
- // clear CSS var-shim tracking
2200
- // TODO(STENCIL-659): Remove code implementing the CSS variable shim
2201
- if (plt.$cssShim$) {
2202
- // TODO(STENCIL-659): Remove code implementing the CSS variable shim
2203
- plt.$cssShim$.removeHost(elm);
2389
+ if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) {
2390
+ disconnectInstance(hostRef.$lazyInstance$);
2204
2391
  }
2205
- {
2206
- safeCall(instance, 'disconnectedCallback');
2392
+ else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
2393
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
2207
2394
  }
2208
2395
  }
2209
2396
  };
@@ -2215,7 +2402,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
2215
2402
  const customElements = win.customElements;
2216
2403
  const head = doc.head;
2217
2404
  const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
2218
- const visibilityStyle = /*@__PURE__*/ doc.createElement('style');
2405
+ const dataStyles = /*@__PURE__*/ doc.createElement('style');
2219
2406
  const deferredConnectedCallbacks = [];
2220
2407
  const styles = /*@__PURE__*/ doc.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
2221
2408
  let appLoadFallback;
@@ -2233,14 +2420,21 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
2233
2420
  registerStyle(styles[i].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles[i].innerHTML), true);
2234
2421
  }
2235
2422
  }
2423
+ let hasSlotRelocation = false;
2236
2424
  lazyBundles.map((lazyBundle) => {
2237
2425
  lazyBundle[1].map((compactMeta) => {
2426
+ var _a;
2238
2427
  const cmpMeta = {
2239
2428
  $flags$: compactMeta[0],
2240
2429
  $tagName$: compactMeta[1],
2241
2430
  $members$: compactMeta[2],
2242
2431
  $listeners$: compactMeta[3],
2243
2432
  };
2433
+ // Check if we are using slots outside the shadow DOM in this component.
2434
+ // We'll use this information later to add styles for `slot-fb` elements
2435
+ if (cmpMeta.$flags$ & 4 /* CMP_FLAGS.hasSlotRelocation */) {
2436
+ hasSlotRelocation = true;
2437
+ }
2244
2438
  {
2245
2439
  cmpMeta.$members$ = compactMeta[2];
2246
2440
  }
@@ -2251,11 +2445,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
2251
2445
  cmpMeta.$attrsToReflect$ = [];
2252
2446
  }
2253
2447
  {
2254
- cmpMeta.$watchers$ = {};
2255
- }
2256
- if (!supportsShadow && cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
2257
- // TODO(STENCIL-662): Remove code related to deprecated shadowDomShim field
2258
- cmpMeta.$flags$ |= 8 /* CMP_FLAGS.needsShadowDomShim */;
2448
+ cmpMeta.$watchers$ = (_a = compactMeta[4]) !== null && _a !== void 0 ? _a : {};
2259
2449
  }
2260
2450
  const tagName = cmpMeta.$tagName$;
2261
2451
  const HostElement = class extends HTMLElement {
@@ -2270,14 +2460,11 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
2270
2460
  // and this browser supports shadow dom
2271
2461
  // add the read-only property "shadowRoot" to the host element
2272
2462
  // adding the shadow root build conditionals to minimize runtime
2273
- if (supportsShadow) {
2463
+ {
2274
2464
  {
2275
2465
  self.attachShadow({ mode: 'open' });
2276
2466
  }
2277
2467
  }
2278
- else if (!('shadowRoot' in self)) {
2279
- self.shadowRoot = self;
2280
- }
2281
2468
  }
2282
2469
  }
2283
2470
  connectedCallback() {
@@ -2307,15 +2494,23 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
2307
2494
  }
2308
2495
  });
2309
2496
  });
2497
+ // Add styles for `slot-fb` elements if any of our components are using slots outside the Shadow DOM
2498
+ if (hasSlotRelocation) {
2499
+ dataStyles.innerHTML += SLOT_FB_CSS;
2500
+ }
2501
+ // Add hydration styles
2310
2502
  {
2311
- visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
2312
- visibilityStyle.setAttribute('data-styles', '');
2503
+ dataStyles.innerHTML += cmpTags + HYDRATED_CSS;
2504
+ }
2505
+ // If we have styles, add them to the DOM
2506
+ if (dataStyles.innerHTML.length) {
2507
+ dataStyles.setAttribute('data-styles', '');
2508
+ head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
2313
2509
  // Apply CSP nonce to the style tag if it exists
2314
2510
  const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
2315
2511
  if (nonce != null) {
2316
- visibilityStyle.setAttribute('nonce', nonce);
2512
+ dataStyles.setAttribute('nonce', nonce);
2317
2513
  }
2318
- head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
2319
2514
  }
2320
2515
  // Process deferred connectedCallbacks now all components have been registered
2321
2516
  isBootstrapping = false;
@@ -2373,13 +2568,40 @@ const hostListenerOpts = (flags) => (flags & 2 /* LISTENER_FLAGS.Capture */) !==
2373
2568
  * @returns void
2374
2569
  */
2375
2570
  const setNonce = (nonce) => (plt.$nonce$ = nonce);
2571
+ /**
2572
+ * A WeakMap mapping runtime component references to their corresponding host reference
2573
+ * instances.
2574
+ */
2376
2575
  const hostRefs = /*@__PURE__*/ new WeakMap();
2576
+ /**
2577
+ * Given a {@link d.RuntimeRef} retrieve the corresponding {@link d.HostRef}
2578
+ *
2579
+ * @param ref the runtime ref of interest
2580
+ * @returns the Host reference (if found) or undefined
2581
+ */
2377
2582
  const getHostRef = (ref) => hostRefs.get(ref);
2583
+ /**
2584
+ * Register a lazy instance with the {@link hostRefs} object so it's
2585
+ * corresponding {@link d.HostRef} can be retrieved later.
2586
+ *
2587
+ * @param lazyInstance the lazy instance of interest
2588
+ * @param hostRef that instances `HostRef` object
2589
+ * @returns a reference to the host ref WeakMap
2590
+ */
2378
2591
  const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
2379
- const registerHost = (elm, cmpMeta) => {
2592
+ /**
2593
+ * Register a host element for a Stencil component, setting up various metadata
2594
+ * and callbacks based on {@link BUILD} flags as well as the component's runtime
2595
+ * metadata.
2596
+ *
2597
+ * @param hostElement the host element to register
2598
+ * @param cmpMeta runtime metadata for that component
2599
+ * @returns a reference to the host ref WeakMap
2600
+ */
2601
+ const registerHost = (hostElement, cmpMeta) => {
2380
2602
  const hostRef = {
2381
2603
  $flags$: 0,
2382
- $hostElement$: elm,
2604
+ $hostElement$: hostElement,
2383
2605
  $cmpMeta$: cmpMeta,
2384
2606
  $instanceValues$: new Map(),
2385
2607
  };
@@ -2388,11 +2610,11 @@ const registerHost = (elm, cmpMeta) => {
2388
2610
  }
2389
2611
  {
2390
2612
  hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
2391
- elm['s-p'] = [];
2392
- elm['s-rc'] = [];
2613
+ hostElement['s-p'] = [];
2614
+ hostElement['s-rc'] = [];
2393
2615
  }
2394
- addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
2395
- return hostRefs.set(elm, hostRef);
2616
+ addHostEventListeners(hostElement, hostRef, cmpMeta.$listeners$);
2617
+ return hostRefs.set(hostElement, hostRef);
2396
2618
  };
2397
2619
  const isMemberInElement = (elm, memberName) => memberName in elm;
2398
2620
  const consoleError = (e, el) => (0, console.error)(e, el);
@@ -2662,8 +2884,6 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
2662
2884
  const styles = /*@__PURE__*/ new Map();
2663
2885
  const modeResolutionChain = [];
2664
2886
  const win = typeof window !== 'undefined' ? window : {};
2665
- // TODO(STENCIL-659): Remove code implementing the CSS variable shim
2666
- const CSS = win.CSS ;
2667
2887
  const doc = win.document || { head: {} };
2668
2888
  const plt = {
2669
2889
  $flags$: 0,
@@ -2675,9 +2895,8 @@ const plt = {
2675
2895
  ce: (eventName, opts) => new CustomEvent(eventName, opts),
2676
2896
  };
2677
2897
  const supportsShadow =
2678
- // TODO(STENCIL-662): Remove code related to deprecated shadowDomShim field
2679
- /*@__PURE__*/ (() => (doc.head.attachShadow + '').indexOf('[native') > -1)()
2680
- ;
2898
+ // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
2899
+ true;
2681
2900
  const promiseResolve = (v) => Promise.resolve(v);
2682
2901
  const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
2683
2902
  try {
@@ -2728,23 +2947,18 @@ const flush = () => {
2728
2947
  }
2729
2948
  }
2730
2949
  };
2731
- const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
2950
+ const nextTick = (cb) => promiseResolve().then(cb);
2732
2951
  const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
2733
2952
 
2734
- exports.CSS = CSS;
2735
2953
  exports.Host = Host;
2736
- exports.NAMESPACE = NAMESPACE;
2737
2954
  exports.bootstrapLazy = bootstrapLazy;
2738
2955
  exports.createEvent = createEvent;
2739
- exports.doc = doc;
2740
2956
  exports.getAssetPath = getAssetPath;
2741
2957
  exports.getElement = getElement;
2742
2958
  exports.h = h;
2743
- exports.plt = plt;
2744
2959
  exports.promiseResolve = promiseResolve;
2745
2960
  exports.registerInstance = registerInstance;
2746
2961
  exports.setMode = setMode;
2747
2962
  exports.setNonce = setNonce;
2748
- exports.win = win;
2749
2963
 
2750
- //# sourceMappingURL=index-e4bd5b5f.js.map
2964
+ //# sourceMappingURL=index-4fdb2a28.js.map