@getflip/swirl-components 0.13.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (913) hide show
  1. package/components.json +204 -3
  2. package/dist/cjs/file-manager.cjs.entry.js +3 -1
  3. package/dist/cjs/{index-72831c5f.js → index-83363034.js} +584 -274
  4. package/dist/cjs/loader.cjs.js +4 -3
  5. package/dist/cjs/swirl-action-list-item.cjs.entry.js +8 -3
  6. package/dist/cjs/swirl-action-list-section.cjs.entry.js +2 -1
  7. package/dist/cjs/swirl-action-list.cjs.entry.js +1 -1
  8. package/dist/cjs/swirl-app-layout_5.cjs.entry.js +40 -8
  9. package/dist/cjs/swirl-autocomplete.cjs.entry.js +19 -8
  10. package/dist/cjs/swirl-avatar-group.cjs.entry.js +2 -1
  11. package/dist/cjs/swirl-avatar.cjs.entry.js +13 -7
  12. package/dist/cjs/swirl-badge.cjs.entry.js +3 -1
  13. package/dist/cjs/swirl-banner.cjs.entry.js +8 -6
  14. package/dist/cjs/swirl-button-group.cjs.entry.js +4 -1
  15. package/dist/cjs/swirl-button.cjs.entry.js +19 -5
  16. package/dist/cjs/swirl-card.cjs.entry.js +5 -1
  17. package/dist/cjs/swirl-checkbox.cjs.entry.js +11 -3
  18. package/dist/cjs/swirl-chip.cjs.entry.js +6 -3
  19. package/dist/cjs/swirl-components.cjs.js +10 -3
  20. package/dist/cjs/swirl-console-layout.cjs.entry.js +13 -7
  21. package/dist/cjs/swirl-date-input.cjs.entry.js +16 -7
  22. package/dist/cjs/swirl-date-picker_2.cjs.entry.js +6 -2
  23. package/dist/cjs/swirl-description-list-item.cjs.entry.js +2 -1
  24. package/dist/cjs/swirl-description-list.cjs.entry.js +1 -1
  25. package/dist/cjs/swirl-dialog.cjs.entry.js +7 -3
  26. package/dist/cjs/swirl-file-uploader.cjs.entry.js +12 -5
  27. package/dist/cjs/swirl-file-viewer_7.cjs.entry.js +39 -15
  28. package/dist/cjs/swirl-form-control.cjs.entry.js +9 -1
  29. package/dist/cjs/swirl-form-group.cjs.entry.js +1 -1
  30. package/dist/cjs/swirl-heading.cjs.entry.js +4 -1
  31. package/dist/cjs/swirl-icon-add-photo.cjs.entry.js +1 -1
  32. package/dist/cjs/swirl-icon-add_4.cjs.entry.js +1 -1
  33. package/dist/cjs/swirl-icon-admin-panel-settings.cjs.entry.js +1 -1
  34. package/dist/cjs/swirl-icon-arrow-back.cjs.entry.js +1 -1
  35. package/dist/cjs/swirl-icon-arrow-downward_2.cjs.entry.js +1 -1
  36. package/dist/cjs/swirl-icon-arrow-forward.cjs.entry.js +1 -1
  37. package/dist/cjs/swirl-icon-arrow-left_3.cjs.entry.js +1 -1
  38. package/dist/cjs/swirl-icon-arrow-right-small.cjs.entry.js +1 -1
  39. package/dist/cjs/swirl-icon-attachment.cjs.entry.js +1 -1
  40. package/dist/cjs/swirl-icon-block.cjs.entry.js +1 -1
  41. package/dist/cjs/swirl-icon-cancel_4.cjs.entry.js +1 -1
  42. package/dist/cjs/swirl-icon-chat-bubble.cjs.entry.js +1 -1
  43. package/dist/cjs/swirl-icon-chats-filled.cjs.entry.js +1 -1
  44. package/dist/cjs/swirl-icon-chats-outlined.cjs.entry.js +1 -1
  45. package/dist/cjs/swirl-icon-check-circle.cjs.entry.js +1 -1
  46. package/dist/cjs/swirl-icon-check-small_4.cjs.entry.js +22 -10
  47. package/dist/cjs/swirl-icon-check-strong.cjs.entry.js +1 -1
  48. package/dist/cjs/swirl-icon-check.cjs.entry.js +1 -1
  49. package/dist/cjs/swirl-icon-chevron-left.cjs.entry.js +1 -1
  50. package/dist/cjs/swirl-icon-chevron-right.cjs.entry.js +1 -1
  51. package/dist/cjs/swirl-icon-close-small.cjs.entry.js +1 -1
  52. package/dist/cjs/swirl-icon-close.cjs.entry.js +1 -1
  53. package/dist/cjs/swirl-icon-cloud-upload.cjs.entry.js +1 -1
  54. package/dist/cjs/swirl-icon-column.cjs.entry.js +1 -1
  55. package/dist/cjs/swirl-icon-comment.cjs.entry.js +1 -1
  56. package/dist/cjs/swirl-icon-copy.cjs.entry.js +1 -1
  57. package/dist/cjs/swirl-icon-date-range.cjs.entry.js +1 -1
  58. package/dist/cjs/swirl-icon-delete.cjs.entry.js +1 -1
  59. package/dist/cjs/swirl-icon-description.cjs.entry.js +1 -1
  60. package/dist/cjs/swirl-icon-edit.cjs.entry.js +1 -1
  61. package/dist/cjs/swirl-icon-emoji-mood.cjs.entry.js +1 -1
  62. package/dist/cjs/swirl-icon-emoji-satisfied.cjs.entry.js +1 -1
  63. package/dist/cjs/swirl-icon-error_3.cjs.entry.js +4 -2
  64. package/dist/cjs/swirl-icon-expand-more.cjs.entry.js +1 -1
  65. package/dist/cjs/swirl-icon-file.cjs.entry.js +1 -1
  66. package/dist/cjs/swirl-icon-filter.cjs.entry.js +1 -1
  67. package/dist/cjs/swirl-icon-folder-shared.cjs.entry.js +1 -1
  68. package/dist/cjs/swirl-icon-group-assign.cjs.entry.js +1 -1
  69. package/dist/cjs/swirl-icon-groups-custom.cjs.entry.js +1 -1
  70. package/dist/cjs/swirl-icon-groups-filled.cjs.entry.js +1 -1
  71. package/dist/cjs/swirl-icon-groups-outlined.cjs.entry.js +1 -1
  72. package/dist/cjs/swirl-icon-groups.cjs.entry.js +1 -1
  73. package/dist/cjs/swirl-icon-help.cjs.entry.js +1 -1
  74. package/dist/cjs/swirl-icon-image.cjs.entry.js +1 -1
  75. package/dist/cjs/swirl-icon-info.cjs.entry.js +1 -1
  76. package/dist/cjs/swirl-icon-inventory.cjs.entry.js +1 -1
  77. package/dist/cjs/swirl-icon-like.cjs.entry.js +1 -1
  78. package/dist/cjs/swirl-icon-link.cjs.entry.js +1 -1
  79. package/dist/cjs/swirl-icon-lock.cjs.entry.js +1 -1
  80. package/dist/cjs/swirl-icon-logout.cjs.entry.js +1 -1
  81. package/dist/cjs/swirl-icon-mail.cjs.entry.js +1 -1
  82. package/dist/cjs/swirl-icon-manage-accounts.cjs.entry.js +1 -1
  83. package/dist/cjs/swirl-icon-mention.cjs.entry.js +1 -1
  84. package/dist/cjs/swirl-icon-menu-filled.cjs.entry.js +1 -1
  85. package/dist/cjs/swirl-icon-menu-outlined.cjs.entry.js +1 -1
  86. package/dist/cjs/swirl-icon-menu.cjs.entry.js +1 -1
  87. package/dist/cjs/swirl-icon-message.cjs.entry.js +1 -1
  88. package/dist/cjs/swirl-icon-more-horizontal.cjs.entry.js +1 -1
  89. package/dist/cjs/swirl-icon-more-vertikal.cjs.entry.js +1 -1
  90. package/dist/cjs/swirl-icon-news-filled.cjs.entry.js +1 -1
  91. package/dist/cjs/swirl-icon-news-outlined.cjs.entry.js +1 -1
  92. package/dist/cjs/swirl-icon-notifications-active.cjs.entry.js +1 -1
  93. package/dist/cjs/swirl-icon-notifications-off.cjs.entry.js +1 -1
  94. package/dist/cjs/swirl-icon-notifications.cjs.entry.js +1 -1
  95. package/dist/cjs/swirl-icon-open-in-new.cjs.entry.js +1 -1
  96. package/dist/cjs/swirl-icon-people-alt.cjs.entry.js +1 -1
  97. package/dist/cjs/swirl-icon-person-off.cjs.entry.js +1 -1
  98. package/dist/cjs/swirl-icon-person.cjs.entry.js +1 -1
  99. package/dist/cjs/swirl-icon-phone.cjs.entry.js +1 -1
  100. package/dist/cjs/swirl-icon-poll.cjs.entry.js +1 -1
  101. package/dist/cjs/swirl-icon-print.cjs.entry.js +1 -1
  102. package/dist/cjs/swirl-icon-recieved.cjs.entry.js +1 -1
  103. package/dist/cjs/swirl-icon-search-strong.cjs.entry.js +1 -1
  104. package/dist/cjs/swirl-icon-search.cjs.entry.js +1 -1
  105. package/dist/cjs/swirl-icon-send.cjs.entry.js +1 -1
  106. package/dist/cjs/swirl-icon-settings.cjs.entry.js +1 -1
  107. package/dist/cjs/swirl-icon-sync.cjs.entry.js +1 -1
  108. package/dist/cjs/swirl-icon-tasks-filled.cjs.entry.js +1 -1
  109. package/dist/cjs/swirl-icon-tasks-outlined.cjs.entry.js +1 -1
  110. package/dist/cjs/swirl-icon-time-filled.cjs.entry.js +1 -1
  111. package/dist/cjs/swirl-icon-time-outlined.cjs.entry.js +1 -1
  112. package/dist/cjs/swirl-icon-user-assign.cjs.entry.js +1 -1
  113. package/dist/cjs/swirl-icon-video-camera.cjs.entry.js +1 -1
  114. package/dist/cjs/swirl-icon-warning.cjs.entry.js +1 -1
  115. package/dist/cjs/swirl-lightbox.cjs.entry.js +9 -7
  116. package/dist/cjs/swirl-link.cjs.entry.js +4 -1
  117. package/dist/cjs/swirl-list.cjs.entry.js +1 -1
  118. package/dist/cjs/swirl-modal.cjs.entry.js +9 -6
  119. package/dist/cjs/swirl-option-list-section.cjs.entry.js +2 -1
  120. package/dist/cjs/swirl-pagination.cjs.entry.js +11 -8
  121. package/dist/cjs/swirl-pdf-reader.cjs.entry.js +15 -11
  122. package/dist/cjs/swirl-popover.cjs.entry.js +12 -7
  123. package/dist/cjs/swirl-progress-indicator.cjs.entry.js +2 -1
  124. package/dist/cjs/swirl-radio-group.cjs.entry.js +3 -1
  125. package/dist/cjs/swirl-radio.cjs.entry.js +9 -3
  126. package/dist/cjs/swirl-resource-list-file-item.cjs.entry.js +8 -3
  127. package/dist/cjs/swirl-search.cjs.entry.js +9 -3
  128. package/dist/cjs/swirl-select.cjs.entry.js +11 -2
  129. package/dist/cjs/swirl-separator.cjs.entry.js +1 -1
  130. package/dist/cjs/swirl-skeleton-box.cjs.entry.js +34 -0
  131. package/dist/cjs/swirl-skeleton-text.cjs.entry.js +26 -0
  132. package/dist/cjs/swirl-stack.cjs.entry.js +1 -1
  133. package/dist/cjs/swirl-switch.cjs.entry.js +8 -4
  134. package/dist/cjs/swirl-tab.cjs.entry.js +4 -1
  135. package/dist/cjs/swirl-table-cell.cjs.entry.js +1 -1
  136. package/dist/cjs/swirl-table-column.cjs.entry.js +6 -1
  137. package/dist/cjs/swirl-table-row-group.cjs.entry.js +2 -1
  138. package/dist/cjs/swirl-table-row.cjs.entry.js +3 -1
  139. package/dist/cjs/swirl-table.cjs.entry.js +8 -2
  140. package/dist/cjs/swirl-tabs.cjs.entry.js +4 -1
  141. package/dist/cjs/swirl-tag.cjs.entry.js +5 -3
  142. package/dist/cjs/swirl-text-input.cjs.entry.js +31 -8
  143. package/dist/cjs/swirl-text.cjs.entry.js +3 -1
  144. package/dist/cjs/swirl-theme-provider.cjs.entry.js +2 -1
  145. package/dist/cjs/swirl-thumbnail.cjs.entry.js +3 -1
  146. package/dist/cjs/swirl-toast-provider.cjs.entry.js +3 -2
  147. package/dist/cjs/swirl-toast.cjs.entry.js +8 -3
  148. package/dist/cjs/swirl-tooltip.cjs.entry.js +6 -4
  149. package/dist/cjs/swirl-tree-navigation-item.cjs.entry.js +4 -1
  150. package/dist/cjs/swirl-video-thumbnail.cjs.entry.js +4 -1
  151. package/dist/cjs/swirl-visually-hidden.cjs.entry.js +1 -1
  152. package/dist/cjs/wc-datepicker.cjs.entry.js +1 -1
  153. package/dist/collection/collection-manifest.json +4 -2
  154. package/dist/collection/components/swirl-action-list/swirl-action-list.js +12 -10
  155. package/dist/collection/components/swirl-action-list-item/swirl-action-list-item.js +146 -139
  156. package/dist/collection/components/swirl-action-list-section/swirl-action-list-section.js +36 -31
  157. package/dist/collection/components/swirl-app-layout/swirl-app-layout.js +425 -427
  158. package/dist/collection/components/swirl-autocomplete/swirl-autocomplete.js +310 -292
  159. package/dist/collection/components/swirl-avatar/swirl-avatar.js +238 -228
  160. package/dist/collection/components/swirl-avatar-group/swirl-avatar-group.js +36 -30
  161. package/dist/collection/components/swirl-badge/swirl-badge.js +114 -106
  162. package/dist/collection/components/swirl-banner/swirl-banner.js +192 -187
  163. package/dist/collection/components/swirl-box/swirl-box.js +144 -134
  164. package/dist/collection/components/swirl-button/swirl-button.js +382 -360
  165. package/dist/collection/components/swirl-button-group/swirl-button-group.js +93 -85
  166. package/dist/collection/components/swirl-card/swirl-card.js +104 -96
  167. package/dist/collection/components/swirl-checkbox/swirl-checkbox.js +210 -204
  168. package/dist/collection/components/swirl-chip/swirl-chip.js +108 -102
  169. package/dist/collection/components/swirl-console-layout/swirl-console-layout.js +312 -322
  170. package/dist/collection/components/swirl-date-input/swirl-date-input.js +290 -275
  171. package/dist/collection/components/swirl-date-picker/swirl-date-picker.js +123 -112
  172. package/dist/collection/components/swirl-description-list/swirl-description-list.js +12 -10
  173. package/dist/collection/components/swirl-description-list-item/swirl-description-list-item.js +36 -31
  174. package/dist/collection/components/swirl-dialog/swirl-dialog.js +182 -174
  175. package/dist/collection/components/swirl-empty-state/swirl-empty-state.js +53 -50
  176. package/dist/collection/components/swirl-file-uploader/swirl-file-uploader.js +249 -241
  177. package/dist/collection/components/swirl-file-viewer/swirl-file-viewer.js +214 -208
  178. package/dist/collection/components/swirl-file-viewer/viewers/swirl-file-viewer-audio/swirl-file-viewer-audio.js +90 -79
  179. package/dist/collection/components/swirl-file-viewer/viewers/swirl-file-viewer-csv/swirl-file-viewer-csv.js +87 -77
  180. package/dist/collection/components/swirl-file-viewer/viewers/swirl-file-viewer-image/swirl-file-viewer-image.js +160 -148
  181. package/dist/collection/components/swirl-file-viewer/viewers/swirl-file-viewer-pdf/swirl-file-viewer-pdf.js +224 -214
  182. package/dist/collection/components/swirl-file-viewer/viewers/swirl-file-viewer-text/swirl-file-viewer-text.js +87 -75
  183. package/dist/collection/components/swirl-file-viewer/viewers/swirl-file-viewer-video/swirl-file-viewer-video.js +90 -79
  184. package/dist/collection/components/swirl-form-control/swirl-form-control.js +154 -142
  185. package/dist/collection/components/swirl-form-group/swirl-form-group.js +38 -33
  186. package/dist/collection/components/swirl-heading/swirl-heading.js +140 -127
  187. package/dist/collection/components/swirl-icon/icons/swirl-icon-add-photo.js +38 -38
  188. package/dist/collection/components/swirl-icon/icons/swirl-icon-add.js +38 -38
  189. package/dist/collection/components/swirl-icon/icons/swirl-icon-admin-panel-settings.js +38 -41
  190. package/dist/collection/components/swirl-icon/icons/swirl-icon-arrow-back.js +38 -38
  191. package/dist/collection/components/swirl-icon/icons/swirl-icon-arrow-downward.js +38 -38
  192. package/dist/collection/components/swirl-icon/icons/swirl-icon-arrow-forward.js +38 -38
  193. package/dist/collection/components/swirl-icon/icons/swirl-icon-arrow-left.js +38 -38
  194. package/dist/collection/components/swirl-icon/icons/swirl-icon-arrow-right-small.js +38 -38
  195. package/dist/collection/components/swirl-icon/icons/swirl-icon-arrow-right.js +38 -38
  196. package/dist/collection/components/swirl-icon/icons/swirl-icon-arrow-upward.js +38 -38
  197. package/dist/collection/components/swirl-icon/icons/swirl-icon-attachment.js +38 -38
  198. package/dist/collection/components/swirl-icon/icons/swirl-icon-block.js +38 -38
  199. package/dist/collection/components/swirl-icon/icons/swirl-icon-cancel.js +38 -38
  200. package/dist/collection/components/swirl-icon/icons/swirl-icon-chat-bubble.js +38 -38
  201. package/dist/collection/components/swirl-icon/icons/swirl-icon-chats-filled.js +38 -38
  202. package/dist/collection/components/swirl-icon/icons/swirl-icon-chats-outlined.js +38 -44
  203. package/dist/collection/components/swirl-icon/icons/swirl-icon-check-circle.js +38 -38
  204. package/dist/collection/components/swirl-icon/icons/swirl-icon-check-small.js +38 -38
  205. package/dist/collection/components/swirl-icon/icons/swirl-icon-check-strong.js +38 -38
  206. package/dist/collection/components/swirl-icon/icons/swirl-icon-check.js +38 -38
  207. package/dist/collection/components/swirl-icon/icons/swirl-icon-chevron-left.js +38 -38
  208. package/dist/collection/components/swirl-icon/icons/swirl-icon-chevron-right.js +38 -38
  209. package/dist/collection/components/swirl-icon/icons/swirl-icon-close-small.js +38 -38
  210. package/dist/collection/components/swirl-icon/icons/swirl-icon-close.js +38 -38
  211. package/dist/collection/components/swirl-icon/icons/swirl-icon-cloud-upload.js +38 -38
  212. package/dist/collection/components/swirl-icon/icons/swirl-icon-column.js +38 -38
  213. package/dist/collection/components/swirl-icon/icons/swirl-icon-comment.js +38 -41
  214. package/dist/collection/components/swirl-icon/icons/swirl-icon-copy.js +38 -38
  215. package/dist/collection/components/swirl-icon/icons/swirl-icon-date-range.js +38 -38
  216. package/dist/collection/components/swirl-icon/icons/swirl-icon-delete.js +38 -41
  217. package/dist/collection/components/swirl-icon/icons/swirl-icon-description.js +38 -38
  218. package/dist/collection/components/swirl-icon/icons/swirl-icon-download.js +38 -38
  219. package/dist/collection/components/swirl-icon/icons/swirl-icon-drag-handle.js +38 -53
  220. package/dist/collection/components/swirl-icon/icons/swirl-icon-edit.js +38 -38
  221. package/dist/collection/components/swirl-icon/icons/swirl-icon-emoji-mood.js +38 -38
  222. package/dist/collection/components/swirl-icon/icons/swirl-icon-emoji-satisfied.js +38 -38
  223. package/dist/collection/components/swirl-icon/icons/swirl-icon-error.js +38 -38
  224. package/dist/collection/components/swirl-icon/icons/swirl-icon-expand-less.js +38 -38
  225. package/dist/collection/components/swirl-icon/icons/swirl-icon-expand-more.js +38 -38
  226. package/dist/collection/components/swirl-icon/icons/swirl-icon-file.js +38 -38
  227. package/dist/collection/components/swirl-icon/icons/swirl-icon-filter.js +38 -38
  228. package/dist/collection/components/swirl-icon/icons/swirl-icon-folder-shared.js +38 -38
  229. package/dist/collection/components/swirl-icon/icons/swirl-icon-fullscreen-exit.js +38 -38
  230. package/dist/collection/components/swirl-icon/icons/swirl-icon-fullscreen.js +38 -38
  231. package/dist/collection/components/swirl-icon/icons/swirl-icon-group-assign.js +38 -38
  232. package/dist/collection/components/swirl-icon/icons/swirl-icon-groups-custom.js +38 -53
  233. package/dist/collection/components/swirl-icon/icons/swirl-icon-groups-filled.js +38 -53
  234. package/dist/collection/components/swirl-icon/icons/swirl-icon-groups-outlined.js +38 -53
  235. package/dist/collection/components/swirl-icon/icons/swirl-icon-groups.js +38 -38
  236. package/dist/collection/components/swirl-icon/icons/swirl-icon-help.js +38 -38
  237. package/dist/collection/components/swirl-icon/icons/swirl-icon-image.js +38 -38
  238. package/dist/collection/components/swirl-icon/icons/swirl-icon-info.js +38 -38
  239. package/dist/collection/components/swirl-icon/icons/swirl-icon-inventory.js +38 -38
  240. package/dist/collection/components/swirl-icon/icons/swirl-icon-like.js +38 -41
  241. package/dist/collection/components/swirl-icon/icons/swirl-icon-link.js +38 -38
  242. package/dist/collection/components/swirl-icon/icons/swirl-icon-lock.js +38 -38
  243. package/dist/collection/components/swirl-icon/icons/swirl-icon-logout.js +38 -38
  244. package/dist/collection/components/swirl-icon/icons/swirl-icon-mail.js +38 -38
  245. package/dist/collection/components/swirl-icon/icons/swirl-icon-manage-accounts.js +38 -44
  246. package/dist/collection/components/swirl-icon/icons/swirl-icon-mention.js +38 -38
  247. package/dist/collection/components/swirl-icon/icons/swirl-icon-menu-filled.js +38 -47
  248. package/dist/collection/components/swirl-icon/icons/swirl-icon-menu-outlined.js +38 -47
  249. package/dist/collection/components/swirl-icon/icons/swirl-icon-menu.js +38 -38
  250. package/dist/collection/components/swirl-icon/icons/swirl-icon-message.js +38 -38
  251. package/dist/collection/components/swirl-icon/icons/swirl-icon-more-horizontal.js +38 -38
  252. package/dist/collection/components/swirl-icon/icons/swirl-icon-more-vertikal.js +38 -38
  253. package/dist/collection/components/swirl-icon/icons/swirl-icon-news-filled.js +38 -38
  254. package/dist/collection/components/swirl-icon/icons/swirl-icon-news-outlined.js +38 -44
  255. package/dist/collection/components/swirl-icon/icons/swirl-icon-notifications-active.js +38 -38
  256. package/dist/collection/components/swirl-icon/icons/swirl-icon-notifications-off.js +38 -38
  257. package/dist/collection/components/swirl-icon/icons/swirl-icon-notifications.js +38 -38
  258. package/dist/collection/components/swirl-icon/icons/swirl-icon-open-in-new.js +38 -38
  259. package/dist/collection/components/swirl-icon/icons/swirl-icon-people-alt.js +38 -47
  260. package/dist/collection/components/swirl-icon/icons/swirl-icon-person-off.js +38 -38
  261. package/dist/collection/components/swirl-icon/icons/swirl-icon-person.js +38 -38
  262. package/dist/collection/components/swirl-icon/icons/swirl-icon-phone.js +38 -38
  263. package/dist/collection/components/swirl-icon/icons/swirl-icon-poll.js +38 -38
  264. package/dist/collection/components/swirl-icon/icons/swirl-icon-print.js +38 -38
  265. package/dist/collection/components/swirl-icon/icons/swirl-icon-recieved.js +38 -41
  266. package/dist/collection/components/swirl-icon/icons/swirl-icon-remove.js +38 -38
  267. package/dist/collection/components/swirl-icon/icons/swirl-icon-search-strong.js +38 -38
  268. package/dist/collection/components/swirl-icon/icons/swirl-icon-search.js +38 -38
  269. package/dist/collection/components/swirl-icon/icons/swirl-icon-send.js +38 -38
  270. package/dist/collection/components/swirl-icon/icons/swirl-icon-settings.js +38 -38
  271. package/dist/collection/components/swirl-icon/icons/swirl-icon-sync.js +38 -38
  272. package/dist/collection/components/swirl-icon/icons/swirl-icon-tasks-filled.js +38 -38
  273. package/dist/collection/components/swirl-icon/icons/swirl-icon-tasks-outlined.js +38 -41
  274. package/dist/collection/components/swirl-icon/icons/swirl-icon-time-filled.js +38 -38
  275. package/dist/collection/components/swirl-icon/icons/swirl-icon-time-outlined.js +38 -38
  276. package/dist/collection/components/swirl-icon/icons/swirl-icon-today.js +38 -38
  277. package/dist/collection/components/swirl-icon/icons/swirl-icon-user-assign.js +38 -38
  278. package/dist/collection/components/swirl-icon/icons/swirl-icon-video-camera.js +38 -38
  279. package/dist/collection/components/swirl-icon/icons/swirl-icon-visibility-off.js +38 -38
  280. package/dist/collection/components/swirl-icon/icons/swirl-icon-visibility.js +38 -38
  281. package/dist/collection/components/swirl-icon/icons/swirl-icon-warning.js +38 -38
  282. package/dist/collection/components/swirl-inline-error/swirl-inline-error.js +56 -52
  283. package/dist/collection/components/swirl-lightbox/swirl-lightbox.js +170 -178
  284. package/dist/collection/components/swirl-link/swirl-link.js +74 -63
  285. package/dist/collection/components/swirl-list/swirl-list.js +12 -10
  286. package/dist/collection/components/swirl-modal/swirl-modal.js +205 -200
  287. package/dist/collection/components/swirl-option-list/swirl-option-list.js +225 -210
  288. package/dist/collection/components/swirl-option-list-item/swirl-option-list-item.js +221 -213
  289. package/dist/collection/components/swirl-option-list-section/swirl-option-list-section.js +36 -31
  290. package/dist/collection/components/swirl-pagination/swirl-pagination.js +218 -223
  291. package/dist/collection/components/swirl-pdf-reader/swirl-pdf-reader.js +233 -245
  292. package/dist/collection/components/swirl-popover/swirl-popover.js +263 -249
  293. package/dist/collection/components/swirl-progress-indicator/swirl-progress-indicator.js +93 -89
  294. package/dist/collection/components/swirl-radio/swirl-radio.js +183 -176
  295. package/dist/collection/components/swirl-radio-group/swirl-radio-group.js +70 -60
  296. package/dist/collection/components/swirl-resource-list/swirl-resource-list.js +34 -29
  297. package/dist/collection/components/swirl-resource-list-file-item/swirl-resource-list-file-item.js +158 -156
  298. package/dist/collection/components/swirl-resource-list-item/swirl-resource-list-item.js +240 -232
  299. package/dist/collection/components/swirl-search/swirl-search.js +216 -205
  300. package/dist/collection/components/swirl-select/swirl-select.js +192 -177
  301. package/dist/collection/components/swirl-separator/swirl-separator.js +12 -9
  302. package/dist/collection/components/swirl-skeleton-box/swirl-skeleton-box.css +54 -0
  303. package/dist/collection/components/swirl-skeleton-box/swirl-skeleton-box.js +130 -0
  304. package/dist/collection/components/swirl-skeleton-box/swirl-skeleton-box.stories.js +20 -0
  305. package/dist/collection/components/swirl-skeleton-text/swirl-skeleton-text.css +173 -0
  306. package/dist/collection/components/swirl-skeleton-text/swirl-skeleton-text.js +89 -0
  307. package/dist/collection/components/swirl-skeleton-text/swirl-skeleton-text.stories.js +19 -0
  308. package/dist/collection/components/swirl-spinner/swirl-spinner.js +55 -53
  309. package/dist/collection/components/swirl-stack/swirl-stack.js +135 -127
  310. package/dist/collection/components/swirl-switch/swirl-switch.js +169 -160
  311. package/dist/collection/components/swirl-tab/swirl-tab.js +70 -61
  312. package/dist/collection/components/swirl-table/swirl-table.js +90 -87
  313. package/dist/collection/components/swirl-table-cell/swirl-table-cell.js +12 -9
  314. package/dist/collection/components/swirl-table-column/swirl-table-column.js +123 -117
  315. package/dist/collection/components/swirl-table-row/swirl-table-row.js +53 -44
  316. package/dist/collection/components/swirl-table-row-group/swirl-table-row-group.js +36 -30
  317. package/dist/collection/components/swirl-tabs/swirl-tabs.js +112 -101
  318. package/dist/collection/components/swirl-tag/swirl-tag.js +111 -104
  319. package/dist/collection/components/swirl-text/swirl-text.js +189 -176
  320. package/dist/collection/components/swirl-text-input/swirl-text-input.js +593 -574
  321. package/dist/collection/components/swirl-theme-provider/swirl-theme-provider.js +141 -122
  322. package/dist/collection/components/swirl-thumbnail/swirl-thumbnail.js +93 -85
  323. package/dist/collection/components/swirl-toast/swirl-toast.js +165 -155
  324. package/dist/collection/components/swirl-toast-provider/swirl-toast-provider.js +112 -104
  325. package/dist/collection/components/swirl-tooltip/swirl-tooltip.js +122 -113
  326. package/dist/collection/components/swirl-tree-navigation-item/swirl-tree-navigation-item.js +68 -61
  327. package/dist/collection/components/swirl-video-thumbnail/swirl-video-thumbnail.js +85 -83
  328. package/dist/collection/components/swirl-visually-hidden/swirl-visually-hidden.js +12 -9
  329. package/dist/collection/prototypes/file-manager/file-manager.js +12 -22
  330. package/dist/components/file-manager.js +2 -1
  331. package/dist/components/index.d.ts +9 -173
  332. package/dist/components/index.js +1 -172
  333. package/dist/components/swirl-action-list-item.js +7 -3
  334. package/dist/components/swirl-action-list-section.js +1 -1
  335. package/dist/components/swirl-action-list.js +0 -1
  336. package/dist/components/swirl-app-layout2.js +20 -6
  337. package/dist/components/swirl-autocomplete.js +18 -8
  338. package/dist/components/swirl-avatar-group.js +1 -1
  339. package/dist/components/swirl-avatar.js +12 -7
  340. package/dist/components/swirl-badge.js +2 -1
  341. package/dist/components/swirl-banner.js +7 -6
  342. package/dist/components/swirl-box2.js +4 -1
  343. package/dist/components/swirl-button-group2.js +3 -1
  344. package/dist/components/swirl-button2.js +18 -5
  345. package/dist/components/swirl-card.js +4 -1
  346. package/dist/components/swirl-checkbox.js +10 -3
  347. package/dist/components/swirl-chip.js +5 -3
  348. package/dist/components/swirl-console-layout.js +12 -7
  349. package/dist/components/swirl-date-input.js +15 -7
  350. package/dist/components/swirl-date-picker2.js +5 -2
  351. package/dist/components/swirl-description-list-item.js +1 -1
  352. package/dist/components/swirl-description-list.js +0 -1
  353. package/dist/components/swirl-dialog.js +6 -3
  354. package/dist/components/swirl-empty-state2.js +2 -1
  355. package/dist/components/swirl-file-uploader.js +11 -5
  356. package/dist/components/swirl-file-viewer-audio2.js +3 -1
  357. package/dist/components/swirl-file-viewer-csv2.js +4 -1
  358. package/dist/components/swirl-file-viewer-image2.js +6 -5
  359. package/dist/components/swirl-file-viewer-pdf2.js +11 -8
  360. package/dist/components/swirl-file-viewer-text2.js +4 -1
  361. package/dist/components/swirl-file-viewer-video2.js +3 -1
  362. package/dist/components/swirl-file-viewer2.js +7 -4
  363. package/dist/components/swirl-form-control.js +8 -1
  364. package/dist/components/swirl-form-group.js +0 -1
  365. package/dist/components/swirl-heading2.js +3 -1
  366. package/dist/components/swirl-icon-add-photo.js +0 -1
  367. package/dist/components/swirl-icon-add2.js +0 -1
  368. package/dist/components/swirl-icon-admin-panel-settings.js +0 -1
  369. package/dist/components/swirl-icon-arrow-back.js +0 -1
  370. package/dist/components/swirl-icon-arrow-downward2.js +0 -1
  371. package/dist/components/swirl-icon-arrow-forward.js +0 -1
  372. package/dist/components/swirl-icon-arrow-left2.js +0 -1
  373. package/dist/components/swirl-icon-arrow-right-small.js +0 -1
  374. package/dist/components/swirl-icon-arrow-right2.js +0 -1
  375. package/dist/components/swirl-icon-arrow-upward2.js +0 -1
  376. package/dist/components/swirl-icon-attachment.js +0 -1
  377. package/dist/components/swirl-icon-block.js +0 -1
  378. package/dist/components/swirl-icon-cancel2.js +0 -1
  379. package/dist/components/swirl-icon-chat-bubble.js +0 -1
  380. package/dist/components/swirl-icon-chats-filled.js +0 -1
  381. package/dist/components/swirl-icon-chats-outlined.js +0 -1
  382. package/dist/components/swirl-icon-check-circle.js +0 -1
  383. package/dist/components/swirl-icon-check-small2.js +0 -1
  384. package/dist/components/swirl-icon-check-strong2.js +0 -1
  385. package/dist/components/swirl-icon-check.js +0 -1
  386. package/dist/components/swirl-icon-chevron-left.js +0 -1
  387. package/dist/components/swirl-icon-chevron-right.js +0 -1
  388. package/dist/components/swirl-icon-close-small.js +0 -1
  389. package/dist/components/swirl-icon-close2.js +0 -1
  390. package/dist/components/swirl-icon-cloud-upload2.js +0 -1
  391. package/dist/components/swirl-icon-column.js +0 -1
  392. package/dist/components/swirl-icon-comment.js +0 -1
  393. package/dist/components/swirl-icon-copy.js +0 -1
  394. package/dist/components/swirl-icon-date-range.js +0 -1
  395. package/dist/components/swirl-icon-delete.js +0 -1
  396. package/dist/components/swirl-icon-description.js +0 -1
  397. package/dist/components/swirl-icon-download2.js +0 -1
  398. package/dist/components/swirl-icon-drag-handle2.js +0 -1
  399. package/dist/components/swirl-icon-edit.js +0 -1
  400. package/dist/components/swirl-icon-emoji-mood.js +0 -1
  401. package/dist/components/swirl-icon-emoji-satisfied.js +0 -1
  402. package/dist/components/swirl-icon-error2.js +0 -1
  403. package/dist/components/swirl-icon-expand-less2.js +0 -1
  404. package/dist/components/swirl-icon-expand-more2.js +0 -1
  405. package/dist/components/swirl-icon-file.js +0 -1
  406. package/dist/components/swirl-icon-filter.js +0 -1
  407. package/dist/components/swirl-icon-folder-shared.js +0 -1
  408. package/dist/components/swirl-icon-fullscreen-exit2.js +0 -1
  409. package/dist/components/swirl-icon-fullscreen2.js +0 -1
  410. package/dist/components/swirl-icon-group-assign.js +0 -1
  411. package/dist/components/swirl-icon-groups-custom.js +0 -1
  412. package/dist/components/swirl-icon-groups-filled.js +0 -1
  413. package/dist/components/swirl-icon-groups-outlined.js +0 -1
  414. package/dist/components/swirl-icon-groups.js +0 -1
  415. package/dist/components/swirl-icon-help.js +0 -1
  416. package/dist/components/swirl-icon-image.js +0 -1
  417. package/dist/components/swirl-icon-info.js +0 -1
  418. package/dist/components/swirl-icon-inventory.js +0 -1
  419. package/dist/components/swirl-icon-like.js +0 -1
  420. package/dist/components/swirl-icon-link.js +0 -1
  421. package/dist/components/swirl-icon-lock.js +0 -1
  422. package/dist/components/swirl-icon-logout.js +0 -1
  423. package/dist/components/swirl-icon-mail.js +0 -1
  424. package/dist/components/swirl-icon-manage-accounts.js +0 -1
  425. package/dist/components/swirl-icon-mention.js +0 -1
  426. package/dist/components/swirl-icon-menu-filled.js +0 -1
  427. package/dist/components/swirl-icon-menu-outlined.js +0 -1
  428. package/dist/components/swirl-icon-menu.js +0 -1
  429. package/dist/components/swirl-icon-message.js +0 -1
  430. package/dist/components/swirl-icon-more-horizontal.js +0 -1
  431. package/dist/components/swirl-icon-more-vertikal.js +0 -1
  432. package/dist/components/swirl-icon-news-filled.js +0 -1
  433. package/dist/components/swirl-icon-news-outlined.js +0 -1
  434. package/dist/components/swirl-icon-notifications-active.js +0 -1
  435. package/dist/components/swirl-icon-notifications-off.js +0 -1
  436. package/dist/components/swirl-icon-notifications.js +0 -1
  437. package/dist/components/swirl-icon-open-in-new.js +0 -1
  438. package/dist/components/swirl-icon-people-alt.js +0 -1
  439. package/dist/components/swirl-icon-person-off.js +0 -1
  440. package/dist/components/swirl-icon-person2.js +0 -1
  441. package/dist/components/swirl-icon-phone.js +0 -1
  442. package/dist/components/swirl-icon-poll.js +0 -1
  443. package/dist/components/swirl-icon-print.js +0 -1
  444. package/dist/components/swirl-icon-recieved.js +0 -1
  445. package/dist/components/swirl-icon-remove2.js +0 -1
  446. package/dist/components/swirl-icon-search-strong.js +0 -1
  447. package/dist/components/swirl-icon-search2.js +0 -1
  448. package/dist/components/swirl-icon-send.js +0 -1
  449. package/dist/components/swirl-icon-settings.js +0 -1
  450. package/dist/components/swirl-icon-sync.js +0 -1
  451. package/dist/components/swirl-icon-tasks-filled.js +0 -1
  452. package/dist/components/swirl-icon-tasks-outlined.js +0 -1
  453. package/dist/components/swirl-icon-time-filled.js +0 -1
  454. package/dist/components/swirl-icon-time-outlined.js +0 -1
  455. package/dist/components/swirl-icon-today2.js +0 -1
  456. package/dist/components/swirl-icon-user-assign.js +0 -1
  457. package/dist/components/swirl-icon-video-camera.js +0 -1
  458. package/dist/components/swirl-icon-visibility-off2.js +0 -1
  459. package/dist/components/swirl-icon-visibility2.js +0 -1
  460. package/dist/components/swirl-icon-warning.js +0 -1
  461. package/dist/components/swirl-inline-error2.js +2 -2
  462. package/dist/components/swirl-lightbox.js +8 -7
  463. package/dist/components/swirl-link.js +3 -1
  464. package/dist/components/swirl-list.js +0 -1
  465. package/dist/components/swirl-modal.js +8 -6
  466. package/dist/components/swirl-option-list-item2.js +11 -6
  467. package/dist/components/swirl-option-list-section.js +1 -1
  468. package/dist/components/swirl-option-list2.js +10 -5
  469. package/dist/components/swirl-pagination.js +10 -8
  470. package/dist/components/swirl-pdf-reader.js +14 -11
  471. package/dist/components/swirl-popover2.js +11 -7
  472. package/dist/components/swirl-progress-indicator.js +1 -1
  473. package/dist/components/swirl-radio-group.js +2 -1
  474. package/dist/components/swirl-radio.js +8 -3
  475. package/dist/components/swirl-resource-list-file-item.js +7 -3
  476. package/dist/components/swirl-resource-list-item2.js +12 -3
  477. package/dist/components/swirl-resource-list2.js +1 -1
  478. package/dist/components/swirl-search.js +8 -3
  479. package/dist/components/swirl-select.js +10 -2
  480. package/dist/components/swirl-separator.js +0 -1
  481. package/dist/components/swirl-skeleton-box.d.ts +11 -0
  482. package/dist/components/swirl-skeleton-box.js +53 -0
  483. package/dist/components/swirl-skeleton-text.d.ts +11 -0
  484. package/dist/components/swirl-skeleton-text.js +43 -0
  485. package/dist/components/swirl-spinner2.js +1 -1
  486. package/dist/components/swirl-stack2.js +0 -1
  487. package/dist/components/swirl-switch.js +7 -4
  488. package/dist/components/swirl-tab.js +3 -1
  489. package/dist/components/swirl-table-cell.js +0 -1
  490. package/dist/components/swirl-table-column.js +5 -1
  491. package/dist/components/swirl-table-row-group.js +1 -1
  492. package/dist/components/swirl-table-row.js +2 -1
  493. package/dist/components/swirl-table.js +7 -2
  494. package/dist/components/swirl-tabs.js +3 -1
  495. package/dist/components/swirl-tag.js +4 -3
  496. package/dist/components/swirl-text-input2.js +30 -8
  497. package/dist/components/swirl-text2.js +2 -1
  498. package/dist/components/swirl-theme-provider.js +1 -1
  499. package/dist/components/swirl-thumbnail.js +2 -1
  500. package/dist/components/swirl-toast-provider.js +2 -2
  501. package/dist/components/swirl-toast2.js +7 -3
  502. package/dist/components/swirl-tooltip.js +5 -4
  503. package/dist/components/swirl-tree-navigation-item.js +3 -1
  504. package/dist/components/swirl-video-thumbnail.js +3 -1
  505. package/dist/components/swirl-visually-hidden2.js +0 -1
  506. package/dist/components/wc-datepicker2.js +0 -1
  507. package/dist/esm/file-manager.entry.js +3 -1
  508. package/dist/esm/{index-5a3b2828.js → index-0ff2c8e0.js} +584 -275
  509. package/dist/esm/loader.js +4 -3
  510. package/dist/esm/polyfills/css-shim.js +1 -1
  511. package/dist/esm/swirl-action-list-item.entry.js +8 -3
  512. package/dist/esm/swirl-action-list-section.entry.js +2 -1
  513. package/dist/esm/swirl-action-list.entry.js +1 -1
  514. package/dist/esm/swirl-app-layout_5.entry.js +40 -8
  515. package/dist/esm/swirl-autocomplete.entry.js +19 -8
  516. package/dist/esm/swirl-avatar-group.entry.js +2 -1
  517. package/dist/esm/swirl-avatar.entry.js +13 -7
  518. package/dist/esm/swirl-badge.entry.js +3 -1
  519. package/dist/esm/swirl-banner.entry.js +8 -6
  520. package/dist/esm/swirl-button-group.entry.js +4 -1
  521. package/dist/esm/swirl-button.entry.js +19 -5
  522. package/dist/esm/swirl-card.entry.js +5 -1
  523. package/dist/esm/swirl-checkbox.entry.js +11 -3
  524. package/dist/esm/swirl-chip.entry.js +6 -3
  525. package/dist/esm/swirl-components.js +7 -3
  526. package/dist/esm/swirl-console-layout.entry.js +13 -7
  527. package/dist/esm/swirl-date-input.entry.js +16 -7
  528. package/dist/esm/swirl-date-picker_2.entry.js +6 -2
  529. package/dist/esm/swirl-description-list-item.entry.js +2 -1
  530. package/dist/esm/swirl-description-list.entry.js +1 -1
  531. package/dist/esm/swirl-dialog.entry.js +7 -3
  532. package/dist/esm/swirl-file-uploader.entry.js +12 -5
  533. package/dist/esm/swirl-file-viewer_7.entry.js +39 -15
  534. package/dist/esm/swirl-form-control.entry.js +9 -1
  535. package/dist/esm/swirl-form-group.entry.js +1 -1
  536. package/dist/esm/swirl-heading.entry.js +4 -1
  537. package/dist/esm/swirl-icon-add-photo.entry.js +1 -1
  538. package/dist/esm/swirl-icon-add_4.entry.js +1 -1
  539. package/dist/esm/swirl-icon-admin-panel-settings.entry.js +1 -1
  540. package/dist/esm/swirl-icon-arrow-back.entry.js +1 -1
  541. package/dist/esm/swirl-icon-arrow-downward_2.entry.js +1 -1
  542. package/dist/esm/swirl-icon-arrow-forward.entry.js +1 -1
  543. package/dist/esm/swirl-icon-arrow-left_3.entry.js +1 -1
  544. package/dist/esm/swirl-icon-arrow-right-small.entry.js +1 -1
  545. package/dist/esm/swirl-icon-attachment.entry.js +1 -1
  546. package/dist/esm/swirl-icon-block.entry.js +1 -1
  547. package/dist/esm/swirl-icon-cancel_4.entry.js +1 -1
  548. package/dist/esm/swirl-icon-chat-bubble.entry.js +1 -1
  549. package/dist/esm/swirl-icon-chats-filled.entry.js +1 -1
  550. package/dist/esm/swirl-icon-chats-outlined.entry.js +1 -1
  551. package/dist/esm/swirl-icon-check-circle.entry.js +1 -1
  552. package/dist/esm/swirl-icon-check-small_4.entry.js +22 -10
  553. package/dist/esm/swirl-icon-check-strong.entry.js +1 -1
  554. package/dist/esm/swirl-icon-check.entry.js +1 -1
  555. package/dist/esm/swirl-icon-chevron-left.entry.js +1 -1
  556. package/dist/esm/swirl-icon-chevron-right.entry.js +1 -1
  557. package/dist/esm/swirl-icon-close-small.entry.js +1 -1
  558. package/dist/esm/swirl-icon-close.entry.js +1 -1
  559. package/dist/esm/swirl-icon-cloud-upload.entry.js +1 -1
  560. package/dist/esm/swirl-icon-column.entry.js +1 -1
  561. package/dist/esm/swirl-icon-comment.entry.js +1 -1
  562. package/dist/esm/swirl-icon-copy.entry.js +1 -1
  563. package/dist/esm/swirl-icon-date-range.entry.js +1 -1
  564. package/dist/esm/swirl-icon-delete.entry.js +1 -1
  565. package/dist/esm/swirl-icon-description.entry.js +1 -1
  566. package/dist/esm/swirl-icon-edit.entry.js +1 -1
  567. package/dist/esm/swirl-icon-emoji-mood.entry.js +1 -1
  568. package/dist/esm/swirl-icon-emoji-satisfied.entry.js +1 -1
  569. package/dist/esm/swirl-icon-error_3.entry.js +4 -2
  570. package/dist/esm/swirl-icon-expand-more.entry.js +1 -1
  571. package/dist/esm/swirl-icon-file.entry.js +1 -1
  572. package/dist/esm/swirl-icon-filter.entry.js +1 -1
  573. package/dist/esm/swirl-icon-folder-shared.entry.js +1 -1
  574. package/dist/esm/swirl-icon-group-assign.entry.js +1 -1
  575. package/dist/esm/swirl-icon-groups-custom.entry.js +1 -1
  576. package/dist/esm/swirl-icon-groups-filled.entry.js +1 -1
  577. package/dist/esm/swirl-icon-groups-outlined.entry.js +1 -1
  578. package/dist/esm/swirl-icon-groups.entry.js +1 -1
  579. package/dist/esm/swirl-icon-help.entry.js +1 -1
  580. package/dist/esm/swirl-icon-image.entry.js +1 -1
  581. package/dist/esm/swirl-icon-info.entry.js +1 -1
  582. package/dist/esm/swirl-icon-inventory.entry.js +1 -1
  583. package/dist/esm/swirl-icon-like.entry.js +1 -1
  584. package/dist/esm/swirl-icon-link.entry.js +1 -1
  585. package/dist/esm/swirl-icon-lock.entry.js +1 -1
  586. package/dist/esm/swirl-icon-logout.entry.js +1 -1
  587. package/dist/esm/swirl-icon-mail.entry.js +1 -1
  588. package/dist/esm/swirl-icon-manage-accounts.entry.js +1 -1
  589. package/dist/esm/swirl-icon-mention.entry.js +1 -1
  590. package/dist/esm/swirl-icon-menu-filled.entry.js +1 -1
  591. package/dist/esm/swirl-icon-menu-outlined.entry.js +1 -1
  592. package/dist/esm/swirl-icon-menu.entry.js +1 -1
  593. package/dist/esm/swirl-icon-message.entry.js +1 -1
  594. package/dist/esm/swirl-icon-more-horizontal.entry.js +1 -1
  595. package/dist/esm/swirl-icon-more-vertikal.entry.js +1 -1
  596. package/dist/esm/swirl-icon-news-filled.entry.js +1 -1
  597. package/dist/esm/swirl-icon-news-outlined.entry.js +1 -1
  598. package/dist/esm/swirl-icon-notifications-active.entry.js +1 -1
  599. package/dist/esm/swirl-icon-notifications-off.entry.js +1 -1
  600. package/dist/esm/swirl-icon-notifications.entry.js +1 -1
  601. package/dist/esm/swirl-icon-open-in-new.entry.js +1 -1
  602. package/dist/esm/swirl-icon-people-alt.entry.js +1 -1
  603. package/dist/esm/swirl-icon-person-off.entry.js +1 -1
  604. package/dist/esm/swirl-icon-person.entry.js +1 -1
  605. package/dist/esm/swirl-icon-phone.entry.js +1 -1
  606. package/dist/esm/swirl-icon-poll.entry.js +1 -1
  607. package/dist/esm/swirl-icon-print.entry.js +1 -1
  608. package/dist/esm/swirl-icon-recieved.entry.js +1 -1
  609. package/dist/esm/swirl-icon-search-strong.entry.js +1 -1
  610. package/dist/esm/swirl-icon-search.entry.js +1 -1
  611. package/dist/esm/swirl-icon-send.entry.js +1 -1
  612. package/dist/esm/swirl-icon-settings.entry.js +1 -1
  613. package/dist/esm/swirl-icon-sync.entry.js +1 -1
  614. package/dist/esm/swirl-icon-tasks-filled.entry.js +1 -1
  615. package/dist/esm/swirl-icon-tasks-outlined.entry.js +1 -1
  616. package/dist/esm/swirl-icon-time-filled.entry.js +1 -1
  617. package/dist/esm/swirl-icon-time-outlined.entry.js +1 -1
  618. package/dist/esm/swirl-icon-user-assign.entry.js +1 -1
  619. package/dist/esm/swirl-icon-video-camera.entry.js +1 -1
  620. package/dist/esm/swirl-icon-warning.entry.js +1 -1
  621. package/dist/esm/swirl-lightbox.entry.js +9 -7
  622. package/dist/esm/swirl-link.entry.js +4 -1
  623. package/dist/esm/swirl-list.entry.js +1 -1
  624. package/dist/esm/swirl-modal.entry.js +9 -6
  625. package/dist/esm/swirl-option-list-section.entry.js +2 -1
  626. package/dist/esm/swirl-pagination.entry.js +11 -8
  627. package/dist/esm/swirl-pdf-reader.entry.js +15 -11
  628. package/dist/esm/swirl-popover.entry.js +12 -7
  629. package/dist/esm/swirl-progress-indicator.entry.js +2 -1
  630. package/dist/esm/swirl-radio-group.entry.js +3 -1
  631. package/dist/esm/swirl-radio.entry.js +9 -3
  632. package/dist/esm/swirl-resource-list-file-item.entry.js +8 -3
  633. package/dist/esm/swirl-search.entry.js +9 -3
  634. package/dist/esm/swirl-select.entry.js +11 -2
  635. package/dist/esm/swirl-separator.entry.js +1 -1
  636. package/dist/esm/swirl-skeleton-box.entry.js +30 -0
  637. package/dist/esm/swirl-skeleton-text.entry.js +22 -0
  638. package/dist/esm/swirl-stack.entry.js +1 -1
  639. package/dist/esm/swirl-switch.entry.js +8 -4
  640. package/dist/esm/swirl-tab.entry.js +4 -1
  641. package/dist/esm/swirl-table-cell.entry.js +1 -1
  642. package/dist/esm/swirl-table-column.entry.js +6 -1
  643. package/dist/esm/swirl-table-row-group.entry.js +2 -1
  644. package/dist/esm/swirl-table-row.entry.js +3 -1
  645. package/dist/esm/swirl-table.entry.js +8 -2
  646. package/dist/esm/swirl-tabs.entry.js +4 -1
  647. package/dist/esm/swirl-tag.entry.js +5 -3
  648. package/dist/esm/swirl-text-input.entry.js +31 -8
  649. package/dist/esm/swirl-text.entry.js +3 -1
  650. package/dist/esm/swirl-theme-provider.entry.js +2 -1
  651. package/dist/esm/swirl-thumbnail.entry.js +3 -1
  652. package/dist/esm/swirl-toast-provider.entry.js +3 -2
  653. package/dist/esm/swirl-toast.entry.js +8 -3
  654. package/dist/esm/swirl-tooltip.entry.js +6 -4
  655. package/dist/esm/swirl-tree-navigation-item.entry.js +4 -1
  656. package/dist/esm/swirl-video-thumbnail.entry.js +4 -1
  657. package/dist/esm/swirl-visually-hidden.entry.js +1 -1
  658. package/dist/esm/wc-datepicker.entry.js +1 -1
  659. package/dist/swirl-components/{p-435c746a.entry.js → p-00978344.entry.js} +1 -1
  660. package/dist/swirl-components/{p-4054dc61.entry.js → p-00ce0096.entry.js} +1 -1
  661. package/dist/swirl-components/{p-2667afa2.entry.js → p-026a6c8f.entry.js} +1 -1
  662. package/dist/swirl-components/{p-85bb5e81.entry.js → p-027680e2.entry.js} +1 -1
  663. package/dist/swirl-components/{p-07e6bd5a.entry.js → p-0319e9d6.entry.js} +1 -1
  664. package/dist/swirl-components/p-05c15d47.js +2 -0
  665. package/dist/swirl-components/{p-df0c1b6d.entry.js → p-090aa1c5.entry.js} +1 -1
  666. package/dist/swirl-components/p-0dcc2cbc.entry.js +1 -0
  667. package/dist/swirl-components/{p-abc8f079.entry.js → p-0e59a667.entry.js} +1 -1
  668. package/dist/swirl-components/{p-4935dc49.entry.js → p-0f3b28e9.entry.js} +1 -1
  669. package/dist/swirl-components/p-107e3594.entry.js +1 -0
  670. package/dist/swirl-components/{p-0ed20748.entry.js → p-121b8ab9.entry.js} +1 -1
  671. package/dist/swirl-components/{p-7be538a8.entry.js → p-12633c5e.entry.js} +1 -1
  672. package/dist/swirl-components/p-13376409.entry.js +1 -0
  673. package/dist/swirl-components/{p-a80a32e8.entry.js → p-142ceff7.entry.js} +1 -1
  674. package/dist/swirl-components/p-148b7b70.entry.js +1 -0
  675. package/dist/swirl-components/p-1614639e.entry.js +1 -0
  676. package/dist/swirl-components/p-19caf328.entry.js +1 -0
  677. package/dist/swirl-components/p-1a6ca33d.entry.js +7 -0
  678. package/dist/swirl-components/p-1aa44f84.entry.js +1 -0
  679. package/dist/swirl-components/p-1b7876da.entry.js +1 -0
  680. package/dist/swirl-components/{p-f2683c24.entry.js → p-1c12a405.entry.js} +1 -1
  681. package/dist/swirl-components/p-1e7a0c4a.entry.js +1 -0
  682. package/dist/swirl-components/{p-e9c0e313.entry.js → p-2056c612.entry.js} +1 -1
  683. package/dist/swirl-components/p-2057f4dc.entry.js +1 -0
  684. package/dist/swirl-components/{p-7825d1c5.entry.js → p-217b2507.entry.js} +1 -1
  685. package/dist/swirl-components/p-21ff58e8.entry.js +1 -0
  686. package/dist/swirl-components/{p-b27dfc38.entry.js → p-27566da1.entry.js} +1 -1
  687. package/dist/swirl-components/{p-191c1d21.entry.js → p-2aede2ed.entry.js} +1 -1
  688. package/dist/swirl-components/{p-68ebab79.entry.js → p-2c78c2d5.entry.js} +1 -1
  689. package/dist/swirl-components/p-2c941975.entry.js +1 -0
  690. package/dist/swirl-components/p-2e733839.entry.js +1 -0
  691. package/dist/swirl-components/{p-c6578cd1.entry.js → p-2ea576e0.entry.js} +1 -1
  692. package/dist/swirl-components/{p-eea09884.entry.js → p-2edc08f0.entry.js} +1 -1
  693. package/dist/swirl-components/p-33e4b66d.entry.js +8 -0
  694. package/dist/swirl-components/p-34e4e242.entry.js +1 -0
  695. package/dist/swirl-components/{p-3f536626.entry.js → p-354e974d.entry.js} +1 -1
  696. package/dist/swirl-components/{p-1586b6d7.entry.js → p-3a8af86e.entry.js} +1 -1
  697. package/dist/swirl-components/{p-8a590a8c.entry.js → p-3e0f6d31.entry.js} +1 -1
  698. package/dist/swirl-components/{p-50b406ed.entry.js → p-429005ee.entry.js} +1 -1
  699. package/dist/swirl-components/p-4464e2c4.entry.js +1 -0
  700. package/dist/swirl-components/{p-b590bcba.entry.js → p-447ef6eb.entry.js} +1 -1
  701. package/dist/swirl-components/{p-322f0adb.entry.js → p-44a74d62.entry.js} +1 -1
  702. package/dist/swirl-components/p-4a847ce0.entry.js +1 -0
  703. package/dist/swirl-components/p-50430bab.entry.js +1 -0
  704. package/dist/swirl-components/{p-78e68acc.entry.js → p-50ae0963.entry.js} +1 -1
  705. package/dist/swirl-components/{p-891371a2.entry.js → p-5166e355.entry.js} +1 -1
  706. package/dist/swirl-components/{p-0385eb63.entry.js → p-537b28c8.entry.js} +1 -1
  707. package/dist/swirl-components/{p-7a240cf1.entry.js → p-541c943f.entry.js} +1 -1
  708. package/dist/swirl-components/{p-26f538a6.entry.js → p-5540b8cf.entry.js} +1 -1
  709. package/dist/swirl-components/p-56499a10.entry.js +1 -0
  710. package/dist/swirl-components/{p-e1d74bed.entry.js → p-58f83fcc.entry.js} +1 -1
  711. package/dist/swirl-components/p-619061ef.entry.js +1 -0
  712. package/dist/swirl-components/{p-48d6ac1d.entry.js → p-61ad8c1a.entry.js} +1 -1
  713. package/dist/swirl-components/p-61b7f41b.entry.js +1 -0
  714. package/dist/swirl-components/{p-02266563.entry.js → p-62f0b76b.entry.js} +1 -1
  715. package/dist/swirl-components/{p-f8ebfb67.entry.js → p-64cdef0c.entry.js} +1 -1
  716. package/dist/swirl-components/p-6526bf3e.js +1 -1
  717. package/dist/swirl-components/{p-26db1190.entry.js → p-668539d3.entry.js} +1 -1
  718. package/dist/swirl-components/p-67e86a11.entry.js +1 -0
  719. package/dist/swirl-components/{p-a2da04e6.entry.js → p-730760c1.entry.js} +1 -1
  720. package/dist/swirl-components/{p-2ce152e6.entry.js → p-79486690.entry.js} +1 -1
  721. package/dist/swirl-components/{p-e66cfaa4.entry.js → p-7a6f1bf2.entry.js} +1 -1
  722. package/dist/swirl-components/{p-c467d912.entry.js → p-7c32e01c.entry.js} +1 -1
  723. package/dist/swirl-components/{p-6a3e0ea9.entry.js → p-7cad01ab.entry.js} +1 -1
  724. package/dist/swirl-components/{p-c34e0d50.entry.js → p-7de7d7c4.entry.js} +1 -1
  725. package/dist/swirl-components/p-7f5648ca.entry.js +1 -0
  726. package/dist/swirl-components/{p-f575ce1b.entry.js → p-80c7ab11.entry.js} +1 -1
  727. package/dist/swirl-components/{p-bdfb7b88.entry.js → p-81b80dd4.entry.js} +1 -1
  728. package/dist/swirl-components/p-8317b681.entry.js +1 -0
  729. package/dist/swirl-components/{p-d30b3b0a.entry.js → p-8342ee34.entry.js} +1 -1
  730. package/dist/swirl-components/{p-6ed9ab51.entry.js → p-8667eb55.entry.js} +1 -1
  731. package/dist/swirl-components/p-87ce453b.entry.js +49 -0
  732. package/dist/swirl-components/{p-f286106d.entry.js → p-87d2ee0e.entry.js} +1 -1
  733. package/dist/swirl-components/p-8ea0a318.entry.js +1 -0
  734. package/dist/swirl-components/{p-714ad338.entry.js → p-8effa03e.entry.js} +1 -1
  735. package/dist/swirl-components/{p-7fa60f01.entry.js → p-8f07da3d.entry.js} +1 -1
  736. package/dist/swirl-components/{p-e43e9dc9.entry.js → p-8f52577a.entry.js} +1 -1
  737. package/dist/swirl-components/{p-6e6e8e46.entry.js → p-8fd083ba.entry.js} +1 -1
  738. package/dist/swirl-components/p-905e3f32.entry.js +1 -0
  739. package/dist/swirl-components/p-9142e03b.js +1 -1
  740. package/dist/swirl-components/p-92b0a462.entry.js +1 -0
  741. package/dist/swirl-components/p-94cefacc.entry.js +1 -0
  742. package/dist/swirl-components/{p-f18a29cb.entry.js → p-99ba3b0c.entry.js} +1 -1
  743. package/dist/swirl-components/{p-19def4b3.entry.js → p-9d8e7ff0.entry.js} +1 -1
  744. package/dist/swirl-components/{p-7f4b8227.entry.js → p-9d94f15b.entry.js} +1 -1
  745. package/dist/swirl-components/p-9dce0e50.entry.js +1 -0
  746. package/dist/swirl-components/p-9f24f03d.entry.js +1 -0
  747. package/dist/swirl-components/{p-165b789f.entry.js → p-a0c73040.entry.js} +1 -1
  748. package/dist/swirl-components/p-a0e0322a.entry.js +1 -0
  749. package/dist/swirl-components/p-a6c15dd2.entry.js +1 -0
  750. package/dist/swirl-components/{p-d3bae550.entry.js → p-a8fde9b6.entry.js} +1 -1
  751. package/dist/swirl-components/{p-cfb78d4d.entry.js → p-aba143bd.entry.js} +1 -1
  752. package/dist/swirl-components/{p-1de6c923.entry.js → p-ada769a2.entry.js} +1 -1
  753. package/dist/swirl-components/{p-22eb8331.entry.js → p-aebd2770.entry.js} +1 -1
  754. package/dist/swirl-components/{p-71732b9a.entry.js → p-b40d02ab.entry.js} +1 -1
  755. package/dist/swirl-components/{p-3fb70da1.entry.js → p-b5886f1e.entry.js} +1 -1
  756. package/dist/swirl-components/{p-9e963d88.entry.js → p-b5bff846.entry.js} +1 -1
  757. package/dist/swirl-components/{p-64889756.entry.js → p-b73f46e9.entry.js} +1 -1
  758. package/dist/swirl-components/{p-2e34f705.entry.js → p-bb664758.entry.js} +1 -1
  759. package/dist/swirl-components/{p-9d9088b6.entry.js → p-bbc4dfae.entry.js} +1 -1
  760. package/dist/swirl-components/p-bc1985c0.entry.js +1 -0
  761. package/dist/swirl-components/p-c0036f1f.entry.js +1 -0
  762. package/dist/swirl-components/p-c00ec508.entry.js +1 -0
  763. package/dist/swirl-components/{p-2ab5a45c.entry.js → p-c089a86f.entry.js} +1 -1
  764. package/dist/swirl-components/p-c1119f03.entry.js +1 -0
  765. package/dist/swirl-components/{p-f9f776e3.entry.js → p-c1407ccd.entry.js} +1 -1
  766. package/dist/swirl-components/{p-17df9c65.entry.js → p-c1afbdd8.entry.js} +1 -1
  767. package/dist/swirl-components/p-c1d740a2.entry.js +1 -0
  768. package/dist/swirl-components/p-c3a1b027.entry.js +1 -0
  769. package/dist/swirl-components/p-c3badef7.entry.js +1 -0
  770. package/dist/swirl-components/{p-89fde1cc.entry.js → p-c4f0b6bd.entry.js} +1 -1
  771. package/dist/swirl-components/p-c6902302.entry.js +1 -0
  772. package/dist/swirl-components/p-c7326b88.entry.js +1 -0
  773. package/dist/swirl-components/p-c783221d.entry.js +1 -0
  774. package/dist/swirl-components/{p-825c1a14.entry.js → p-c81bd519.entry.js} +1 -1
  775. package/dist/swirl-components/{p-033168e0.entry.js → p-cb7bca01.entry.js} +1 -1
  776. package/dist/swirl-components/p-cddec2c8.entry.js +1 -0
  777. package/dist/swirl-components/p-cef24ae4.entry.js +1 -0
  778. package/dist/swirl-components/{p-8c7bb6bc.entry.js → p-d02acd75.entry.js} +1 -1
  779. package/dist/swirl-components/p-d20dbf47.entry.js +1 -0
  780. package/dist/swirl-components/{p-b1956111.entry.js → p-d3243268.entry.js} +1 -1
  781. package/dist/swirl-components/p-d51a5f4f.entry.js +1 -0
  782. package/dist/swirl-components/{p-fa26ba4a.entry.js → p-d5b02a31.entry.js} +1 -1
  783. package/dist/swirl-components/{p-3310a6e2.entry.js → p-d82fce3d.entry.js} +1 -1
  784. package/dist/swirl-components/{p-35cafad6.entry.js → p-d8c4dfb3.entry.js} +1 -1
  785. package/dist/swirl-components/{p-8f9b3dda.entry.js → p-ddb3b371.entry.js} +1 -1
  786. package/dist/swirl-components/p-ddd49304.entry.js +1 -0
  787. package/dist/swirl-components/{p-c3a7a4bc.entry.js → p-e0193bd5.entry.js} +1 -1
  788. package/dist/swirl-components/p-e1abf6d5.entry.js +1 -0
  789. package/dist/swirl-components/{p-40ee5d5c.entry.js → p-e407f7c4.entry.js} +1 -1
  790. package/dist/swirl-components/{p-766a7c18.entry.js → p-e4177f2f.entry.js} +1 -1
  791. package/dist/swirl-components/p-e60c8c01.entry.js +1 -0
  792. package/dist/swirl-components/p-e89d3b8c.entry.js +1 -0
  793. package/dist/swirl-components/p-e8bebe03.entry.js +1 -0
  794. package/dist/swirl-components/p-e8f693b7.entry.js +1 -0
  795. package/dist/swirl-components/{p-465934b5.entry.js → p-ec21cd3f.entry.js} +1 -1
  796. package/dist/swirl-components/{p-fc578f42.entry.js → p-ec750d72.entry.js} +1 -1
  797. package/dist/swirl-components/{p-4ba456d3.entry.js → p-ed5bdc5c.entry.js} +1 -1
  798. package/dist/swirl-components/{p-6542ad23.entry.js → p-eed748e6.entry.js} +1 -1
  799. package/dist/swirl-components/{p-68ae564c.entry.js → p-ef58fc1e.entry.js} +1 -1
  800. package/dist/swirl-components/{p-5bea4bb0.entry.js → p-f4b96d3b.entry.js} +1 -1
  801. package/dist/swirl-components/{p-f88bf73d.entry.js → p-f573b3f3.entry.js} +1 -1
  802. package/dist/swirl-components/p-f5c1afb6.entry.js +1 -0
  803. package/dist/swirl-components/{p-6ef0d4f9.entry.js → p-f828f836.entry.js} +1 -1
  804. package/dist/swirl-components/{p-76b6b5e3.entry.js → p-fa67dbce.entry.js} +1 -1
  805. package/dist/swirl-components/p-fbd4380b.entry.js +1 -0
  806. package/dist/swirl-components/{p-9c691a7b.entry.js → p-fc65574b.entry.js} +1 -1
  807. package/dist/swirl-components/{p-08a271c1.entry.js → p-fe82f579.entry.js} +1 -1
  808. package/dist/swirl-components/{p-07c4ec61.entry.js → p-feda757e.entry.js} +1 -1
  809. package/dist/swirl-components/p-ff161795.entry.js +1 -0
  810. package/dist/swirl-components/swirl-components.css +11 -1
  811. package/dist/swirl-components/swirl-components.esm.js +1 -1
  812. package/dist/types/components/swirl-action-list-item/swirl-action-list-item.d.ts +2 -2
  813. package/dist/types/components/swirl-app-layout/swirl-app-layout.d.ts +2 -2
  814. package/dist/types/components/swirl-autocomplete/swirl-autocomplete.d.ts +1 -1
  815. package/dist/types/components/swirl-avatar/swirl-avatar.d.ts +4 -4
  816. package/dist/types/components/swirl-badge/swirl-badge.d.ts +3 -3
  817. package/dist/types/components/swirl-banner/swirl-banner.d.ts +2 -2
  818. package/dist/types/components/swirl-box/swirl-box.d.ts +2 -2
  819. package/dist/types/components/swirl-button/swirl-button.d.ts +5 -5
  820. package/dist/types/components/swirl-button-group/swirl-button-group.d.ts +1 -1
  821. package/dist/types/components/swirl-checkbox/swirl-checkbox.d.ts +1 -1
  822. package/dist/types/components/swirl-chip/swirl-chip.d.ts +1 -1
  823. package/dist/types/components/swirl-dialog/swirl-dialog.d.ts +1 -1
  824. package/dist/types/components/swirl-file-viewer/viewers/swirl-file-viewer-pdf/swirl-file-viewer-pdf.d.ts +1 -1
  825. package/dist/types/components/swirl-form-group/swirl-form-group.d.ts +1 -1
  826. package/dist/types/components/swirl-heading/swirl-heading.d.ts +3 -3
  827. package/dist/types/components/swirl-icon/swirl-icon.types.d.ts +1 -1
  828. package/dist/types/components/swirl-inline-error/swirl-inline-error.d.ts +1 -1
  829. package/dist/types/components/swirl-link/swirl-link.d.ts +1 -1
  830. package/dist/types/components/swirl-option-list-item/swirl-option-list-item.d.ts +1 -1
  831. package/dist/types/components/swirl-pagination/swirl-pagination.d.ts +1 -1
  832. package/dist/types/components/swirl-popover/swirl-popover.d.ts +1 -1
  833. package/dist/types/components/swirl-progress-indicator/swirl-progress-indicator.d.ts +2 -2
  834. package/dist/types/components/swirl-radio/swirl-radio.d.ts +1 -1
  835. package/dist/types/components/swirl-skeleton-box/swirl-skeleton-box.d.ts +9 -0
  836. package/dist/types/components/swirl-skeleton-box/swirl-skeleton-box.stories.d.ts +13 -0
  837. package/dist/types/components/swirl-skeleton-text/swirl-skeleton-text.d.ts +7 -0
  838. package/dist/types/components/swirl-skeleton-text/swirl-skeleton-text.stories.d.ts +13 -0
  839. package/dist/types/components/swirl-spinner/swirl-spinner.d.ts +1 -1
  840. package/dist/types/components/swirl-stack/swirl-stack.d.ts +4 -4
  841. package/dist/types/components/swirl-switch/swirl-switch.d.ts +1 -1
  842. package/dist/types/components/swirl-table-column/swirl-table-column.d.ts +1 -1
  843. package/dist/types/components/swirl-tag/swirl-tag.d.ts +1 -1
  844. package/dist/types/components/swirl-text/swirl-text.d.ts +5 -5
  845. package/dist/types/components/swirl-text-input/swirl-text-input.d.ts +2 -2
  846. package/dist/types/components/swirl-theme-provider/swirl-theme-provider.d.ts +5 -5
  847. package/dist/types/components/swirl-thumbnail/swirl-thumbnail.d.ts +2 -2
  848. package/dist/types/components/swirl-toast/swirl-toast.d.ts +1 -1
  849. package/dist/types/components/swirl-toast-provider/swirl-toast-provider.d.ts +2 -2
  850. package/dist/types/components/swirl-tooltip/swirl-tooltip.d.ts +1 -1
  851. package/dist/types/components.d.ts +89 -4
  852. package/dist/types/prototypes/file-manager/file-manager.d.ts +2 -2
  853. package/dist/types/stencil-public-runtime.d.ts +91 -19
  854. package/loader/index.d.ts +9 -0
  855. package/loader/package.json +1 -0
  856. package/package.json +5 -2
  857. package/vscode-data.json +81 -0
  858. package/dist/swirl-components/p-02781ffc.entry.js +0 -1
  859. package/dist/swirl-components/p-0855060e.entry.js +0 -1
  860. package/dist/swirl-components/p-085518e9.entry.js +0 -7
  861. package/dist/swirl-components/p-0f33e5f9.entry.js +0 -1
  862. package/dist/swirl-components/p-1009db9b.entry.js +0 -1
  863. package/dist/swirl-components/p-1028d75e.entry.js +0 -1
  864. package/dist/swirl-components/p-1133d7f4.entry.js +0 -1
  865. package/dist/swirl-components/p-1a89f98d.entry.js +0 -36
  866. package/dist/swirl-components/p-1fa4cad9.entry.js +0 -1
  867. package/dist/swirl-components/p-252067c8.entry.js +0 -1
  868. package/dist/swirl-components/p-2a973f5c.entry.js +0 -1
  869. package/dist/swirl-components/p-2a9cacb2.entry.js +0 -1
  870. package/dist/swirl-components/p-30740007.entry.js +0 -1
  871. package/dist/swirl-components/p-30a6b367.entry.js +0 -1
  872. package/dist/swirl-components/p-31f9bc42.entry.js +0 -1
  873. package/dist/swirl-components/p-33f36ef4.entry.js +0 -1
  874. package/dist/swirl-components/p-3817b462.entry.js +0 -1
  875. package/dist/swirl-components/p-3884afc6.entry.js +0 -1
  876. package/dist/swirl-components/p-3918570b.entry.js +0 -1
  877. package/dist/swirl-components/p-40ef764d.entry.js +0 -1
  878. package/dist/swirl-components/p-4114d875.entry.js +0 -1
  879. package/dist/swirl-components/p-413371ca.entry.js +0 -1
  880. package/dist/swirl-components/p-4af06a9d.entry.js +0 -1
  881. package/dist/swirl-components/p-51f56295.entry.js +0 -1
  882. package/dist/swirl-components/p-59bfb6f7.entry.js +0 -1
  883. package/dist/swirl-components/p-5b0671a7.entry.js +0 -1
  884. package/dist/swirl-components/p-5df552ca.entry.js +0 -1
  885. package/dist/swirl-components/p-5e639fbe.entry.js +0 -1
  886. package/dist/swirl-components/p-5e7a16ad.entry.js +0 -1
  887. package/dist/swirl-components/p-627c1474.entry.js +0 -1
  888. package/dist/swirl-components/p-7a00efe8.entry.js +0 -1
  889. package/dist/swirl-components/p-7f642be8.entry.js +0 -1
  890. package/dist/swirl-components/p-86183269.entry.js +0 -1
  891. package/dist/swirl-components/p-89c23241.entry.js +0 -1
  892. package/dist/swirl-components/p-8e61ba5c.entry.js +0 -1
  893. package/dist/swirl-components/p-920803e1.entry.js +0 -1
  894. package/dist/swirl-components/p-9bf40265.entry.js +0 -8
  895. package/dist/swirl-components/p-9fe00e8a.js +0 -2
  896. package/dist/swirl-components/p-a333b07d.entry.js +0 -1
  897. package/dist/swirl-components/p-a452a75d.entry.js +0 -1
  898. package/dist/swirl-components/p-aa7ea196.entry.js +0 -1
  899. package/dist/swirl-components/p-af1ffdfc.entry.js +0 -1
  900. package/dist/swirl-components/p-b0625526.entry.js +0 -1
  901. package/dist/swirl-components/p-bd4b3edf.entry.js +0 -1
  902. package/dist/swirl-components/p-c0402092.entry.js +0 -1
  903. package/dist/swirl-components/p-d1315bab.entry.js +0 -1
  904. package/dist/swirl-components/p-d31e7e68.entry.js +0 -1
  905. package/dist/swirl-components/p-d370621c.entry.js +0 -1
  906. package/dist/swirl-components/p-d6de86fd.entry.js +0 -1
  907. package/dist/swirl-components/p-d86dbbfc.entry.js +0 -1
  908. package/dist/swirl-components/p-f300c8c0.entry.js +0 -1
  909. package/dist/swirl-components/p-f62b9110.entry.js +0 -1
  910. package/dist/swirl-components/p-f95cc7e0.entry.js +0 -1
  911. package/dist/swirl-components/p-fa9e7b73.entry.js +0 -1
  912. package/dist/swirl-components/p-fbc2a9eb.entry.js +0 -1
  913. package/dist/swirl-components/p-fed1e05b.entry.js +0 -1
@@ -22,6 +22,14 @@ function _interopNamespace(e) {
22
22
 
23
23
  const NAMESPACE = 'swirl-components';
24
24
 
25
+ /**
26
+ * Virtual DOM patching algorithm based on Snabbdom by
27
+ * Simon Friis Vindum (@paldepind)
28
+ * Licensed under the MIT License
29
+ * https://github.com/snabbdom/snabbdom/blob/master/LICENSE
30
+ *
31
+ * Modified for Stencil's renderer and slot projection
32
+ */
25
33
  let scopeId;
26
34
  let contentRef;
27
35
  let hostTagName;
@@ -30,63 +38,6 @@ let checkSlotFallbackVisibility = false;
30
38
  let checkSlotRelocate = false;
31
39
  let isSvgMode = false;
32
40
  let queuePending = false;
33
- const win = typeof window !== 'undefined' ? window : {};
34
- const doc = win.document || { head: {} };
35
- const plt = {
36
- $flags$: 0,
37
- $resourcesUrl$: '',
38
- jmp: (h) => h(),
39
- raf: (h) => requestAnimationFrame(h),
40
- ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
41
- rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
42
- ce: (eventName, opts) => new CustomEvent(eventName, opts),
43
- };
44
- const promiseResolve = (v) => Promise.resolve(v);
45
- const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
46
- try {
47
- new CSSStyleSheet();
48
- return typeof new CSSStyleSheet().replaceSync === 'function';
49
- }
50
- catch (e) { }
51
- return false;
52
- })()
53
- ;
54
- const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
55
- if (listeners) {
56
- listeners.map(([flags, name, method]) => {
57
- const target = getHostListenerTarget(elm, flags) ;
58
- const handler = hostListenerProxy(hostRef, method);
59
- const opts = hostListenerOpts(flags);
60
- plt.ael(target, name, handler, opts);
61
- (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
62
- });
63
- }
64
- };
65
- const hostListenerProxy = (hostRef, methodName) => (ev) => {
66
- try {
67
- {
68
- if (hostRef.$flags$ & 256 /* isListenReady */) {
69
- // instance is ready, let's call it's member method for this event
70
- hostRef.$lazyInstance$[methodName](ev);
71
- }
72
- else {
73
- (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
74
- }
75
- }
76
- }
77
- catch (e) {
78
- consoleError(e);
79
- }
80
- };
81
- const getHostListenerTarget = (elm, flags) => {
82
- if (flags & 8 /* TargetWindow */)
83
- return win;
84
- return elm;
85
- };
86
- // prettier-ignore
87
- const hostListenerOpts = (flags) => (flags & 2 /* Capture */) !== 0;
88
- const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
89
- const XLINK_NS = 'http://www.w3.org/1999/xlink';
90
41
  const createTime = (fnName, tagName = '') => {
91
42
  {
92
43
  return () => {
@@ -101,79 +52,8 @@ const uniqueTime = (key, measureText) => {
101
52
  };
102
53
  }
103
54
  };
104
- const rootAppliedStyles = new WeakMap();
105
- const registerStyle = (scopeId, cssText, allowCS) => {
106
- let style = styles.get(scopeId);
107
- if (supportsConstructableStylesheets && allowCS) {
108
- style = (style || new CSSStyleSheet());
109
- if (typeof style === 'string') {
110
- style = cssText;
111
- }
112
- else {
113
- style.replaceSync(cssText);
114
- }
115
- }
116
- else {
117
- style = cssText;
118
- }
119
- styles.set(scopeId, style);
120
- };
121
- const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
122
- let scopeId = getScopeId(cmpMeta);
123
- const style = styles.get(scopeId);
124
- // if an element is NOT connected then getRootNode() will return the wrong root node
125
- // so the fallback is to always use the document for the root node in those cases
126
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
127
- if (style) {
128
- if (typeof style === 'string') {
129
- styleContainerNode = styleContainerNode.head || styleContainerNode;
130
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
131
- let styleElm;
132
- if (!appliedStyles) {
133
- rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
134
- }
135
- if (!appliedStyles.has(scopeId)) {
136
- {
137
- {
138
- styleElm = doc.createElement('style');
139
- styleElm.innerHTML = style;
140
- }
141
- styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
142
- }
143
- if (appliedStyles) {
144
- appliedStyles.add(scopeId);
145
- }
146
- }
147
- }
148
- else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
149
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
150
- }
151
- }
152
- return scopeId;
153
- };
154
- const attachStyles = (hostRef) => {
155
- const cmpMeta = hostRef.$cmpMeta$;
156
- const elm = hostRef.$hostElement$;
157
- const flags = cmpMeta.$flags$;
158
- const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
159
- const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
160
- if (flags & 10 /* needsScopedEncapsulation */) {
161
- // only required when we're NOT using native shadow dom (slot)
162
- // or this browser doesn't support native shadow dom
163
- // and this host element was NOT created with SSR
164
- // let's pick out the inner content for slot projection
165
- // create a node to represent where the original
166
- // content was first placed, which is useful later on
167
- // DOM WRITE!!
168
- elm['s-sc'] = scopeId;
169
- elm.classList.add(scopeId + '-h');
170
- if (flags & 2 /* scopedCssEncapsulation */) {
171
- elm.classList.add(scopeId + '-s');
172
- }
173
- }
174
- endAttachStyles();
175
- };
176
- const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
55
+ const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
56
+ const XLINK_NS = 'http://www.w3.org/1999/xlink';
177
57
  /**
178
58
  * Default style mode id
179
59
  */
@@ -193,6 +73,18 @@ const isComplexType = (o) => {
193
73
  o = typeof o;
194
74
  return o === 'object' || o === 'function';
195
75
  };
76
+ /**
77
+ * Helper method for querying a `meta` tag that contains a nonce value
78
+ * out of a DOM's head.
79
+ *
80
+ * @param doc The DOM containing the `head` to query against
81
+ * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag
82
+ * exists or the tag has no content.
83
+ */
84
+ function queryNonceMetaTagContent(doc) {
85
+ var _a, _b, _c;
86
+ return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;
87
+ }
196
88
  /**
197
89
  * Production h() function based on Preact by
198
90
  * Jason Miller (@developit)
@@ -201,7 +93,6 @@ const isComplexType = (o) => {
201
93
  *
202
94
  * Modified for Stencil's compiler and vdom
203
95
  */
204
- // const stack: any[] = [];
205
96
  // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
206
97
  // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
207
98
  const h = (nodeName, vnodeData, ...children) => {
@@ -271,6 +162,14 @@ const h = (nodeName, vnodeData, ...children) => {
271
162
  }
272
163
  return vnode;
273
164
  };
165
+ /**
166
+ * A utility function for creating a virtual DOM node from a tag and some
167
+ * possible text content.
168
+ *
169
+ * @param tag the tag for this element
170
+ * @param text possible text content for the node
171
+ * @returns a newly-minted virtual DOM node
172
+ */
274
173
  const newVNode = (tag, text) => {
275
174
  const vnode = {
276
175
  $flags$: 0,
@@ -291,11 +190,31 @@ const newVNode = (tag, text) => {
291
190
  return vnode;
292
191
  };
293
192
  const Host = {};
193
+ /**
194
+ * Check whether a given node is a Host node or not
195
+ *
196
+ * @param node the virtual DOM node to check
197
+ * @returns whether it's a Host node or not
198
+ */
294
199
  const isHost = (node) => node && node.$tag$ === Host;
200
+ /**
201
+ * Implementation of {@link d.FunctionalUtilities} for Stencil's VDom.
202
+ *
203
+ * Note that these functions convert from {@link d.VNode} to
204
+ * {@link d.ChildNode} to give functional component developers a friendly
205
+ * interface.
206
+ */
295
207
  const vdomFnUtils = {
296
208
  forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
297
209
  map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate),
298
210
  };
211
+ /**
212
+ * Convert a {@link d.VNode} to a {@link d.ChildNode} in order to present a
213
+ * friendlier public interface (hence, 'convertToPublic').
214
+ *
215
+ * @param node the virtual DOM node to convert
216
+ * @returns a converted child node
217
+ */
299
218
  const convertToPublic = (node) => ({
300
219
  vattrs: node.$attrs$,
301
220
  vchildren: node.$children$,
@@ -304,6 +223,15 @@ const convertToPublic = (node) => ({
304
223
  vtag: node.$tag$,
305
224
  vtext: node.$text$,
306
225
  });
226
+ /**
227
+ * Convert a {@link d.ChildNode} back to an equivalent {@link d.VNode} in
228
+ * order to use the resulting object in the virtual DOM. The initial object was
229
+ * likely created as part of presenting a public API, so converting it back
230
+ * involved making it 'private' again (hence, `convertToPrivate`).
231
+ *
232
+ * @param node the child node to convert
233
+ * @returns a converted virtual DOM node
234
+ */
307
235
  const convertToPrivate = (node) => {
308
236
  if (typeof node.vtag === 'function') {
309
237
  const vnodeData = Object.assign({}, node.vattrs);
@@ -322,6 +250,160 @@ const convertToPrivate = (node) => {
322
250
  vnode.$name$ = node.vname;
323
251
  return vnode;
324
252
  };
253
+ /**
254
+ * Parse a new property value for a given property type.
255
+ *
256
+ * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
257
+ * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
258
+ * 1. `any`, the type given to `propValue` in the function signature
259
+ * 2. the type stored from `propType`.
260
+ *
261
+ * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
262
+ *
263
+ * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
264
+ * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
265
+ * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
266
+ * ```tsx
267
+ * <my-cmp prop-val={0}></my-cmp>
268
+ * ```
269
+ *
270
+ * HTML prop values on the other hand, will always a string
271
+ *
272
+ * @param propValue the new value to coerce to some type
273
+ * @param propType the type of the prop, expressed as a binary number
274
+ * @returns the parsed/coerced value
275
+ */
276
+ const parsePropertyValue = (propValue, propType) => {
277
+ // ensure this value is of the correct prop type
278
+ if (propValue != null && !isComplexType(propValue)) {
279
+ if (propType & 4 /* MEMBER_FLAGS.Boolean */) {
280
+ // per the HTML spec, any string value means it is a boolean true value
281
+ // but we'll cheat here and say that the string "false" is the boolean false
282
+ return propValue === 'false' ? false : propValue === '' || !!propValue;
283
+ }
284
+ if (propType & 2 /* MEMBER_FLAGS.Number */) {
285
+ // force it to be a number
286
+ return parseFloat(propValue);
287
+ }
288
+ if (propType & 1 /* MEMBER_FLAGS.String */) {
289
+ // could have been passed as a number or boolean
290
+ // but we still want it as a string
291
+ return String(propValue);
292
+ }
293
+ // redundant return here for better minification
294
+ return propValue;
295
+ }
296
+ // not sure exactly what type we want
297
+ // so no need to change to a different type
298
+ return propValue;
299
+ };
300
+ const getElement = (ref) => (getHostRef(ref).$hostElement$ );
301
+ const createEvent = (ref, name, flags) => {
302
+ const elm = getElement(ref);
303
+ return {
304
+ emit: (detail) => {
305
+ return emitEvent(elm, name, {
306
+ bubbles: !!(flags & 4 /* EVENT_FLAGS.Bubbles */),
307
+ composed: !!(flags & 2 /* EVENT_FLAGS.Composed */),
308
+ cancelable: !!(flags & 1 /* EVENT_FLAGS.Cancellable */),
309
+ detail,
310
+ });
311
+ },
312
+ };
313
+ };
314
+ /**
315
+ * Helper function to create & dispatch a custom Event on a provided target
316
+ * @param elm the target of the Event
317
+ * @param name the name to give the custom Event
318
+ * @param opts options for configuring a custom Event
319
+ * @returns the custom Event
320
+ */
321
+ const emitEvent = (elm, name, opts) => {
322
+ const ev = plt.ce(name, opts);
323
+ elm.dispatchEvent(ev);
324
+ return ev;
325
+ };
326
+ const rootAppliedStyles = /*@__PURE__*/ new WeakMap();
327
+ const registerStyle = (scopeId, cssText, allowCS) => {
328
+ let style = styles.get(scopeId);
329
+ if (supportsConstructableStylesheets && allowCS) {
330
+ style = (style || new CSSStyleSheet());
331
+ if (typeof style === 'string') {
332
+ style = cssText;
333
+ }
334
+ else {
335
+ style.replaceSync(cssText);
336
+ }
337
+ }
338
+ else {
339
+ style = cssText;
340
+ }
341
+ styles.set(scopeId, style);
342
+ };
343
+ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
344
+ var _a;
345
+ let scopeId = getScopeId(cmpMeta);
346
+ const style = styles.get(scopeId);
347
+ // if an element is NOT connected then getRootNode() will return the wrong root node
348
+ // so the fallback is to always use the document for the root node in those cases
349
+ styleContainerNode = styleContainerNode.nodeType === 11 /* NODE_TYPE.DocumentFragment */ ? styleContainerNode : doc;
350
+ if (style) {
351
+ if (typeof style === 'string') {
352
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
353
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
354
+ let styleElm;
355
+ if (!appliedStyles) {
356
+ rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
357
+ }
358
+ if (!appliedStyles.has(scopeId)) {
359
+ {
360
+ // TODO(STENCIL-659): Remove code implementing the CSS variable shim
361
+ {
362
+ styleElm = doc.createElement('style');
363
+ styleElm.innerHTML = style;
364
+ }
365
+ // Apply CSP nonce to the style tag if it exists
366
+ const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
367
+ if (nonce != null) {
368
+ styleElm.setAttribute('nonce', nonce);
369
+ }
370
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
371
+ }
372
+ if (appliedStyles) {
373
+ appliedStyles.add(scopeId);
374
+ }
375
+ }
376
+ }
377
+ else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
378
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
379
+ }
380
+ }
381
+ return scopeId;
382
+ };
383
+ const attachStyles = (hostRef) => {
384
+ const cmpMeta = hostRef.$cmpMeta$;
385
+ const elm = hostRef.$hostElement$;
386
+ const flags = cmpMeta.$flags$;
387
+ const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
388
+ const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
389
+ // TODO(STENCIL-662): Remove code related to deprecated shadowDomShim field
390
+ if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
391
+ // only required when we're NOT using native shadow dom (slot)
392
+ // or this browser doesn't support native shadow dom
393
+ // and this host element was NOT created with SSR
394
+ // let's pick out the inner content for slot projection
395
+ // create a node to represent where the original
396
+ // content was first placed, which is useful later on
397
+ // DOM WRITE!!
398
+ elm['s-sc'] = scopeId;
399
+ elm.classList.add(scopeId + '-h');
400
+ if (flags & 2 /* CMP_FLAGS.scopedCssEncapsulation */) {
401
+ elm.classList.add(scopeId + '-s');
402
+ }
403
+ }
404
+ endAttachStyles();
405
+ };
406
+ const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
325
407
  /**
326
408
  * Production setAccessor() function based on Preact by
327
409
  * Jason Miller (@developit)
@@ -458,7 +540,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
458
540
  }
459
541
  }
460
542
  }
461
- else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
543
+ else if ((!isProp || flags & 4 /* VNODE_FLAGS.isHost */ || isSvg) && !isComplex) {
462
544
  newValue = newValue === true ? '' : newValue;
463
545
  if (xlink) {
464
546
  elm.setAttributeNS(XLINK_NS, memberName, newValue);
@@ -476,7 +558,7 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
476
558
  // if the element passed in is a shadow root, which is a document fragment
477
559
  // then we want to be adding attrs/props to the shadow root's "host" element
478
560
  // if it's not a shadow root, then we add attrs/props to the same element
479
- const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host
561
+ const elm = newVnode.$elm$.nodeType === 11 /* NODE_TYPE.DocumentFragment */ && newVnode.$elm$.host
480
562
  ? newVnode.$elm$.host
481
563
  : newVnode.$elm$;
482
564
  const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
@@ -494,6 +576,16 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
494
576
  setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
495
577
  }
496
578
  };
579
+ /**
580
+ * Create a DOM Node corresponding to one of the children of a given VNode.
581
+ *
582
+ * @param oldParentVNode the parent VNode from the previous render
583
+ * @param newParentVNode the parent VNode from the current render
584
+ * @param childIndex the index of the VNode, in the _new_ parent node's
585
+ * children, for which we will create a new DOM node
586
+ * @param parentElm the parent DOM node which our new node will be a child of
587
+ * @returns the newly created node
588
+ */
497
589
  const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
498
590
  // tslint:disable-next-line: prefer-const
499
591
  const newVNode = newParentVNode.$children$[childIndex];
@@ -511,16 +603,16 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
511
603
  }
512
604
  newVNode.$flags$ |= newVNode.$children$
513
605
  ? // slot element has fallback content
514
- 2 /* isSlotFallback */
606
+ 2 /* VNODE_FLAGS.isSlotFallback */
515
607
  : // slot element does not have fallback content
516
- 1 /* isSlotReference */;
608
+ 1 /* VNODE_FLAGS.isSlotReference */;
517
609
  }
518
610
  }
519
611
  if (newVNode.$text$ !== null) {
520
612
  // create text node
521
613
  elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
522
614
  }
523
- else if (newVNode.$flags$ & 1 /* isSlotReference */) {
615
+ else if (newVNode.$flags$ & 1 /* VNODE_FLAGS.isSlotReference */) {
524
616
  // create a slot reference node
525
617
  elm = newVNode.$elm$ =
526
618
  doc.createTextNode('');
@@ -530,7 +622,7 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
530
622
  isSvgMode = newVNode.$tag$ === 'svg';
531
623
  }
532
624
  // create element
533
- elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* isSlotFallback */
625
+ elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* VNODE_FLAGS.isSlotFallback */
534
626
  ? 'slot-fb'
535
627
  : newVNode.$tag$)
536
628
  );
@@ -570,7 +662,7 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
570
662
  }
571
663
  {
572
664
  elm['s-hn'] = hostTagName;
573
- if (newVNode.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
665
+ if (newVNode.$flags$ & (2 /* VNODE_FLAGS.isSlotFallback */ | 1 /* VNODE_FLAGS.isSlotReference */)) {
574
666
  // remember the content reference comment
575
667
  elm['s-sr'] = true;
576
668
  // remember the content reference comment
@@ -589,7 +681,7 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
589
681
  return elm;
590
682
  };
591
683
  const putBackInOriginalLocation = (parentElm, recursive) => {
592
- plt.$flags$ |= 1 /* isTmpDisconnected */;
684
+ plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
593
685
  const oldSlotChildNodes = parentElm.childNodes;
594
686
  for (let i = oldSlotChildNodes.length - 1; i >= 0; i--) {
595
687
  const childNode = oldSlotChildNodes[i];
@@ -610,8 +702,23 @@ const putBackInOriginalLocation = (parentElm, recursive) => {
610
702
  putBackInOriginalLocation(childNode, recursive);
611
703
  }
612
704
  }
613
- plt.$flags$ &= ~1 /* isTmpDisconnected */;
705
+ plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
614
706
  };
707
+ /**
708
+ * Create DOM nodes corresponding to a list of {@link d.Vnode} objects and
709
+ * add them to the DOM in the appropriate place.
710
+ *
711
+ * @param parentElm the DOM node which should be used as a parent for the new
712
+ * DOM nodes
713
+ * @param before a child of the `parentElm` which the new children should be
714
+ * inserted before (optional)
715
+ * @param parentVNode the parent virtual DOM node
716
+ * @param vnodes the new child virtual DOM nodes to produce DOM nodes for
717
+ * @param startIdx the index in the child virtual DOM nodes at which to start
718
+ * creating DOM nodes (inclusive)
719
+ * @param endIdx the index in the child virtual DOM nodes at which to stop
720
+ * creating DOM nodes (inclusive)
721
+ */
615
722
  const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
616
723
  let containerElm = ((parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm);
617
724
  let childNode;
@@ -628,6 +735,19 @@ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) =>
628
735
  }
629
736
  }
630
737
  };
738
+ /**
739
+ * Remove the DOM elements corresponding to a list of {@link d.VNode} objects.
740
+ * This can be used to, for instance, clean up after a list of children which
741
+ * should no longer be shown.
742
+ *
743
+ * This function also handles some of Stencil's slot relocation logic.
744
+ *
745
+ * @param vnodes a list of virtual DOM nodes to remove
746
+ * @param startIdx the index at which to start removing nodes (inclusive)
747
+ * @param endIdx the index at which to stop removing nodes (inclusive)
748
+ * @param vnode a VNode
749
+ * @param elm an element
750
+ */
631
751
  const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
632
752
  for (; startIdx <= endIdx; ++startIdx) {
633
753
  if ((vnode = vnodes[startIdx])) {
@@ -652,6 +772,74 @@ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
652
772
  }
653
773
  }
654
774
  };
775
+ /**
776
+ * Reconcile the children of a new VNode with the children of an old VNode by
777
+ * traversing the two collections of children, identifying nodes that are
778
+ * conserved or changed, calling out to `patch` to make any necessary
779
+ * updates to the DOM, and rearranging DOM nodes as needed.
780
+ *
781
+ * The algorithm for reconciling children works by analyzing two 'windows' onto
782
+ * the two arrays of children (`oldCh` and `newCh`). We keep track of the
783
+ * 'windows' by storing start and end indices and references to the
784
+ * corresponding array entries. Initially the two 'windows' are basically equal
785
+ * to the entire array, but we progressively narrow the windows until there are
786
+ * no children left to update by doing the following:
787
+ *
788
+ * 1. Skip any `null` entries at the beginning or end of the two arrays, so
789
+ * that if we have an initial array like the following we'll end up dealing
790
+ * only with a window bounded by the highlighted elements:
791
+ *
792
+ * [null, null, VNode1 , ... , VNode2, null, null]
793
+ * ^^^^^^ ^^^^^^
794
+ *
795
+ * 2. Check to see if the elements at the head and tail positions are equal
796
+ * across the windows. This will basically detect elements which haven't
797
+ * been added, removed, or changed position, i.e. if you had the following
798
+ * VNode elements (represented as HTML):
799
+ *
800
+ * oldVNode: `<div><p><span>HEY</span></p></div>`
801
+ * newVNode: `<div><p><span>THERE</span></p></div>`
802
+ *
803
+ * Then when comparing the children of the `<div>` tag we check the equality
804
+ * of the VNodes corresponding to the `<p>` tags and, since they are the
805
+ * same tag in the same position, we'd be able to avoid completely
806
+ * re-rendering the subtree under them with a new DOM element and would just
807
+ * call out to `patch` to handle reconciling their children and so on.
808
+ *
809
+ * 3. Check, for both windows, to see if the element at the beginning of the
810
+ * window corresponds to the element at the end of the other window. This is
811
+ * a heuristic which will let us identify _some_ situations in which
812
+ * elements have changed position, for instance it _should_ detect that the
813
+ * children nodes themselves have not changed but merely moved in the
814
+ * following example:
815
+ *
816
+ * oldVNode: `<div><element-one /><element-two /></div>`
817
+ * newVNode: `<div><element-two /><element-one /></div>`
818
+ *
819
+ * If we find cases like this then we also need to move the concrete DOM
820
+ * elements corresponding to the moved children to write the re-order to the
821
+ * DOM.
822
+ *
823
+ * 4. Finally, if VNodes have the `key` attribute set on them we check for any
824
+ * nodes in the old children which have the same key as the first element in
825
+ * our window on the new children. If we find such a node we handle calling
826
+ * out to `patch`, moving relevant DOM nodes, and so on, in accordance with
827
+ * what we find.
828
+ *
829
+ * Finally, once we've narrowed our 'windows' to the point that either of them
830
+ * collapse (i.e. they have length 0) we then handle any remaining VNode
831
+ * insertion or deletion that needs to happen to get a DOM state that correctly
832
+ * reflects the new child VNodes. If, for instance, after our window on the old
833
+ * children has collapsed we still have more nodes on the new children that
834
+ * we haven't dealt with yet then we need to add them, or if the new children
835
+ * collapse but we still have unhandled _old_ children then we need to make
836
+ * sure the corresponding DOM nodes are removed.
837
+ *
838
+ * @param parentElm the node into which the parent VNode is rendered
839
+ * @param oldCh the old children of the parent node
840
+ * @param newVNode the new VNode which will replace the parent
841
+ * @param newCh the new children of the parent node
842
+ */
655
843
  const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
656
844
  let oldStartIdx = 0;
657
845
  let newStartIdx = 0;
@@ -667,7 +855,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
667
855
  let elmToMove;
668
856
  while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
669
857
  if (oldStartVnode == null) {
670
- // Vnode might have been moved left
858
+ // VNode might have been moved left
671
859
  oldStartVnode = oldCh[++oldStartIdx];
672
860
  }
673
861
  else if (oldEndVnode == null) {
@@ -680,37 +868,100 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
680
868
  newEndVnode = newCh[--newEndIdx];
681
869
  }
682
870
  else if (isSameVnode(oldStartVnode, newStartVnode)) {
871
+ // if the start nodes are the same then we should patch the new VNode
872
+ // onto the old one, and increment our `newStartIdx` and `oldStartIdx`
873
+ // indices to reflect that. We don't need to move any DOM Nodes around
874
+ // since things are matched up in order.
683
875
  patch(oldStartVnode, newStartVnode);
684
876
  oldStartVnode = oldCh[++oldStartIdx];
685
877
  newStartVnode = newCh[++newStartIdx];
686
878
  }
687
879
  else if (isSameVnode(oldEndVnode, newEndVnode)) {
880
+ // likewise, if the end nodes are the same we patch new onto old and
881
+ // decrement our end indices, and also likewise in this case we don't
882
+ // need to move any DOM Nodes.
688
883
  patch(oldEndVnode, newEndVnode);
689
884
  oldEndVnode = oldCh[--oldEndIdx];
690
885
  newEndVnode = newCh[--newEndIdx];
691
886
  }
692
887
  else if (isSameVnode(oldStartVnode, newEndVnode)) {
693
- // Vnode moved right
888
+ // case: "Vnode moved right"
889
+ //
890
+ // We've found that the last node in our window on the new children is
891
+ // the same VNode as the _first_ node in our window on the old children
892
+ // we're dealing with now. Visually, this is the layout of these two
893
+ // nodes:
894
+ //
895
+ // newCh: [..., newStartVnode , ... , newEndVnode , ...]
896
+ // ^^^^^^^^^^^
897
+ // oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
898
+ // ^^^^^^^^^^^^^
899
+ //
900
+ // In this situation we need to patch `newEndVnode` onto `oldStartVnode`
901
+ // and move the DOM element for `oldStartVnode`.
694
902
  if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
695
903
  putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
696
904
  }
697
905
  patch(oldStartVnode, newEndVnode);
906
+ // We need to move the element for `oldStartVnode` into a position which
907
+ // will be appropriate for `newEndVnode`. For this we can use
908
+ // `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
909
+ // sibling for `oldEndVnode.$elm$` then we want to move the DOM node for
910
+ // `oldStartVnode` between `oldEndVnode` and it's sibling, like so:
911
+ //
912
+ // <old-start-node />
913
+ // <some-intervening-node />
914
+ // <old-end-node />
915
+ // <!-- -> <-- `oldStartVnode.$elm$` should be inserted here
916
+ // <next-sibling />
917
+ //
918
+ // If instead `oldEndVnode.$elm$` has no sibling then we just want to put
919
+ // the node for `oldStartVnode` at the end of the children of
920
+ // `parentElm`. Luckily, `Node.nextSibling` will return `null` if there
921
+ // aren't any siblings, and passing `null` to `Node.insertBefore` will
922
+ // append it to the children of the parent element.
698
923
  parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
699
924
  oldStartVnode = oldCh[++oldStartIdx];
700
925
  newEndVnode = newCh[--newEndIdx];
701
926
  }
702
927
  else if (isSameVnode(oldEndVnode, newStartVnode)) {
703
- // Vnode moved left
928
+ // case: "Vnode moved left"
929
+ //
930
+ // We've found that the first node in our window on the new children is
931
+ // the same VNode as the _last_ node in our window on the old children.
932
+ // Visually, this is the layout of these two nodes:
933
+ //
934
+ // newCh: [..., newStartVnode , ... , newEndVnode , ...]
935
+ // ^^^^^^^^^^^^^
936
+ // oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
937
+ // ^^^^^^^^^^^
938
+ //
939
+ // In this situation we need to patch `newStartVnode` onto `oldEndVnode`
940
+ // (which will handle updating any changed attributes, reconciling their
941
+ // children etc) but we also need to move the DOM node to which
942
+ // `oldEndVnode` corresponds.
704
943
  if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
705
944
  putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
706
945
  }
707
946
  patch(oldEndVnode, newStartVnode);
947
+ // We've already checked above if `oldStartVnode` and `newStartVnode` are
948
+ // the same node, so since we're here we know that they are not. Thus we
949
+ // can move the element for `oldEndVnode` _before_ the element for
950
+ // `oldStartVnode`, leaving `oldStartVnode` to be reconciled in the
951
+ // future.
708
952
  parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
709
953
  oldEndVnode = oldCh[--oldEndIdx];
710
954
  newStartVnode = newCh[++newStartIdx];
711
955
  }
712
956
  else {
713
- // createKeyToOldIdx
957
+ // Here we do some checks to match up old and new nodes based on the
958
+ // `$key$` attribute, which is set by putting a `key="my-key"` attribute
959
+ // in the JSX for a DOM element in the implementation of a Stencil
960
+ // component.
961
+ //
962
+ // First we check to see if there are any nodes in the array of old
963
+ // children which have the same key as the first node in the new
964
+ // children.
714
965
  idxInOld = -1;
715
966
  {
716
967
  for (i = oldStartIdx; i <= oldEndIdx; ++i) {
@@ -721,23 +972,32 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
721
972
  }
722
973
  }
723
974
  if (idxInOld >= 0) {
975
+ // We found a node in the old children which matches up with the first
976
+ // node in the new children! So let's deal with that
724
977
  elmToMove = oldCh[idxInOld];
725
978
  if (elmToMove.$tag$ !== newStartVnode.$tag$) {
979
+ // the tag doesn't match so we'll need a new DOM element
726
980
  node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld, parentElm);
727
981
  }
728
982
  else {
729
983
  patch(elmToMove, newStartVnode);
984
+ // invalidate the matching old node so that we won't try to update it
985
+ // again later on
730
986
  oldCh[idxInOld] = undefined;
731
987
  node = elmToMove.$elm$;
732
988
  }
733
989
  newStartVnode = newCh[++newStartIdx];
734
990
  }
735
991
  else {
736
- // new element
992
+ // We either didn't find an element in the old children that matches
993
+ // the key of the first new child OR the build is not using `key`
994
+ // attributes at all. In either case we need to create a new element
995
+ // for the new node.
737
996
  node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx, parentElm);
738
997
  newStartVnode = newCh[++newStartIdx];
739
998
  }
740
999
  if (node) {
1000
+ // if we created a new node then handle inserting it to the DOM
741
1001
  {
742
1002
  parentReferenceNode(oldStartVnode.$elm$).insertBefore(node, referenceNode(oldStartVnode.$elm$));
743
1003
  }
@@ -745,21 +1005,44 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
745
1005
  }
746
1006
  }
747
1007
  if (oldStartIdx > oldEndIdx) {
1008
+ // we have some more new nodes to add which don't match up with old nodes
748
1009
  addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
749
1010
  }
750
1011
  else if (newStartIdx > newEndIdx) {
1012
+ // there are nodes in the `oldCh` array which no longer correspond to nodes
1013
+ // in the new array, so lets remove them (which entails cleaning up the
1014
+ // relevant DOM nodes)
751
1015
  removeVnodes(oldCh, oldStartIdx, oldEndIdx);
752
1016
  }
753
1017
  };
754
- const isSameVnode = (vnode1, vnode2) => {
1018
+ /**
1019
+ * Compare two VNodes to determine if they are the same
1020
+ *
1021
+ * **NB**: This function is an equality _heuristic_ based on the available
1022
+ * information set on the two VNodes and can be misleading under certain
1023
+ * circumstances. In particular, if the two nodes do not have `key` attrs
1024
+ * (available under `$key$` on VNodes) then the function falls back on merely
1025
+ * checking that they have the same tag.
1026
+ *
1027
+ * So, in other words, if `key` attrs are not set on VNodes which may be
1028
+ * changing order within a `children` array or something along those lines then
1029
+ * we could obtain a false negative and then have to do needless re-rendering
1030
+ * (i.e. we'd say two VNodes aren't equal when in fact they should be).
1031
+ *
1032
+ * @param leftVNode the first VNode to check
1033
+ * @param rightVNode the second VNode to check
1034
+ * @returns whether they're equal or not
1035
+ */
1036
+ const isSameVnode = (leftVNode, rightVNode) => {
755
1037
  // compare if two vnode to see if they're "technically" the same
756
1038
  // need to have the same element tag, and same key to be the same
757
- if (vnode1.$tag$ === vnode2.$tag$) {
758
- if (vnode1.$tag$ === 'slot') {
759
- return vnode1.$name$ === vnode2.$name$;
1039
+ if (leftVNode.$tag$ === rightVNode.$tag$) {
1040
+ if (leftVNode.$tag$ === 'slot') {
1041
+ return leftVNode.$name$ === rightVNode.$name$;
760
1042
  }
1043
+ // this will be set if components in the build have `key` attrs set on them
761
1044
  {
762
- return vnode1.$key$ === vnode2.$key$;
1045
+ return leftVNode.$key$ === rightVNode.$key$;
763
1046
  }
764
1047
  }
765
1048
  return false;
@@ -772,6 +1055,14 @@ const referenceNode = (node) => {
772
1055
  return (node && node['s-ol']) || node;
773
1056
  };
774
1057
  const parentReferenceNode = (node) => (node['s-ol'] ? node['s-ol'] : node).parentNode;
1058
+ /**
1059
+ * Handle reconciling an outdated VNode with a new one which corresponds to
1060
+ * it. This function handles flushing updates to the DOM and reconciling the
1061
+ * children of the two nodes (if any).
1062
+ *
1063
+ * @param oldVNode an old VNode whose DOM element and children we want to update
1064
+ * @param newVNode a new VNode representing an updated version of the old one
1065
+ */
775
1066
  const patch = (oldVNode, newVNode) => {
776
1067
  const elm = (newVNode.$elm$ = oldVNode.$elm$);
777
1068
  const oldChildren = oldVNode.$children$;
@@ -785,7 +1076,6 @@ const patch = (oldVNode, newVNode) => {
785
1076
  // only add this to the when the compiler sees we're using an svg somewhere
786
1077
  isSvgMode = tag === 'svg' ? true : tag === 'foreignObject' ? false : isSvgMode;
787
1078
  }
788
- // element node
789
1079
  {
790
1080
  if (tag === 'slot')
791
1081
  ;
@@ -798,6 +1088,7 @@ const patch = (oldVNode, newVNode) => {
798
1088
  }
799
1089
  if (oldChildren !== null && newChildren !== null) {
800
1090
  // looks like there's child vnodes for both the old and new vnodes
1091
+ // so we need to call `updateChildren` to reconcile them
801
1092
  updateChildren(elm, oldChildren, newVNode, newChildren);
802
1093
  }
803
1094
  else if (newChildren !== null) {
@@ -838,7 +1129,7 @@ const updateFallbackSlotVisibility = (elm) => {
838
1129
  let nodeType;
839
1130
  for (i = 0, ilen = childNodes.length; i < ilen; i++) {
840
1131
  childNode = childNodes[i];
841
- if (childNode.nodeType === 1 /* ElementNode */) {
1132
+ if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
842
1133
  if (childNode['s-sr']) {
843
1134
  // this is a slot fallback node
844
1135
  // get the slot name for this slot reference node
@@ -850,7 +1141,7 @@ const updateFallbackSlotVisibility = (elm) => {
850
1141
  nodeType = childNodes[j].nodeType;
851
1142
  if (childNodes[j]['s-hn'] !== childNode['s-hn'] || slotNameAttr !== '') {
852
1143
  // this sibling node is from a different component OR is a named fallback slot node
853
- if (nodeType === 1 /* ElementNode */ && slotNameAttr === childNodes[j].getAttribute('slot')) {
1144
+ if (nodeType === 1 /* NODE_TYPE.ElementNode */ && slotNameAttr === childNodes[j].getAttribute('slot')) {
854
1145
  childNode.hidden = true;
855
1146
  break;
856
1147
  }
@@ -859,8 +1150,8 @@ const updateFallbackSlotVisibility = (elm) => {
859
1150
  // this is a default fallback slot node
860
1151
  // any element or text node (with content)
861
1152
  // should hide the default fallback slot node
862
- if (nodeType === 1 /* ElementNode */ ||
863
- (nodeType === 3 /* TextNode */ && childNodes[j].textContent.trim() !== '')) {
1153
+ if (nodeType === 1 /* NODE_TYPE.ElementNode */ ||
1154
+ (nodeType === 3 /* NODE_TYPE.TextNode */ && childNodes[j].textContent.trim() !== '')) {
864
1155
  childNode.hidden = true;
865
1156
  break;
866
1157
  }
@@ -938,13 +1229,13 @@ const relocateSlotContent = (elm) => {
938
1229
  }
939
1230
  }
940
1231
  }
941
- if (childNode.nodeType === 1 /* ElementNode */) {
1232
+ if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
942
1233
  relocateSlotContent(childNode);
943
1234
  }
944
1235
  }
945
1236
  };
946
1237
  const isNodeLocatedInSlot = (nodeToRelocate, slotNameAttr) => {
947
- if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1238
+ if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
948
1239
  if (nodeToRelocate.getAttribute('slot') === null && slotNameAttr === '') {
949
1240
  return true;
950
1241
  }
@@ -964,6 +1255,18 @@ const callNodeRefs = (vNode) => {
964
1255
  vNode.$children$ && vNode.$children$.map(callNodeRefs);
965
1256
  }
966
1257
  };
1258
+ /**
1259
+ * The main entry point for Stencil's virtual DOM-based rendering engine
1260
+ *
1261
+ * Given a {@link d.HostRef} container and some virtual DOM nodes, this
1262
+ * function will handle creating a virtual DOM tree with a single root, patching
1263
+ * the current virtual DOM tree onto an old one (if any), dealing with slot
1264
+ * relocation, and reflecting attributes.
1265
+ *
1266
+ * @param hostRef data needed to root and render the virtual DOM tree, such as
1267
+ * the DOM node into which it should be rendered.
1268
+ * @param renderFnResults the virtual DOM nodes to be rendered
1269
+ */
967
1270
  const renderVdom = (hostRef, renderFnResults) => {
968
1271
  const hostElm = hostRef.$hostElement$;
969
1272
  const cmpMeta = hostRef.$cmpMeta$;
@@ -975,7 +1278,7 @@ const renderVdom = (hostRef, renderFnResults) => {
975
1278
  cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
976
1279
  }
977
1280
  rootVnode.$tag$ = null;
978
- rootVnode.$flags$ |= 4 /* isHost */;
1281
+ rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
979
1282
  hostRef.$vnode$ = rootVnode;
980
1283
  rootVnode.$elm$ = oldVNode.$elm$ = (hostElm.shadowRoot || hostElm );
981
1284
  {
@@ -983,7 +1286,7 @@ const renderVdom = (hostRef, renderFnResults) => {
983
1286
  }
984
1287
  {
985
1288
  contentRef = hostElm['s-cr'];
986
- useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
1289
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) !== 0;
987
1290
  // always reset
988
1291
  checkSlotFallbackVisibility = false;
989
1292
  }
@@ -992,7 +1295,7 @@ const renderVdom = (hostRef, renderFnResults) => {
992
1295
  {
993
1296
  // while we're moving nodes around existing nodes, temporarily disable
994
1297
  // the disconnectCallback from working
995
- plt.$flags$ |= 1 /* isTmpDisconnected */;
1298
+ plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
996
1299
  if (checkSlotRelocate) {
997
1300
  relocateSlotContent(rootVnode.$elm$);
998
1301
  let relocateData;
@@ -1050,7 +1353,7 @@ const renderVdom = (hostRef, renderFnResults) => {
1050
1353
  }
1051
1354
  else {
1052
1355
  // this node doesn't have a slot home to go to, so let's hide it
1053
- if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1356
+ if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1054
1357
  nodeToRelocate.hidden = true;
1055
1358
  }
1056
1359
  }
@@ -1061,37 +1364,11 @@ const renderVdom = (hostRef, renderFnResults) => {
1061
1364
  }
1062
1365
  // done moving nodes around
1063
1366
  // allow the disconnect callback to work again
1064
- plt.$flags$ &= ~1 /* isTmpDisconnected */;
1367
+ plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
1065
1368
  // always reset
1066
1369
  relocateNodes.length = 0;
1067
1370
  }
1068
1371
  };
1069
- const getElement = (ref) => (getHostRef(ref).$hostElement$ );
1070
- const createEvent = (ref, name, flags) => {
1071
- const elm = getElement(ref);
1072
- return {
1073
- emit: (detail) => {
1074
- return emitEvent(elm, name, {
1075
- bubbles: !!(flags & 4 /* Bubbles */),
1076
- composed: !!(flags & 2 /* Composed */),
1077
- cancelable: !!(flags & 1 /* Cancellable */),
1078
- detail,
1079
- });
1080
- },
1081
- };
1082
- };
1083
- /**
1084
- * Helper function to create & dispatch a custom Event on a provided target
1085
- * @param elm the target of the Event
1086
- * @param name the name to give the custom Event
1087
- * @param opts options for configuring a custom Event
1088
- * @returns the custom Event
1089
- */
1090
- const emitEvent = (elm, name, opts) => {
1091
- const ev = plt.ce(name, opts);
1092
- elm.dispatchEvent(ev);
1093
- return ev;
1094
- };
1095
1372
  const attachToAncestor = (hostRef, ancestorComponent) => {
1096
1373
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
1097
1374
  ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
@@ -1099,10 +1376,10 @@ const attachToAncestor = (hostRef, ancestorComponent) => {
1099
1376
  };
1100
1377
  const scheduleUpdate = (hostRef, isInitialLoad) => {
1101
1378
  {
1102
- hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
1379
+ hostRef.$flags$ |= 16 /* HOST_FLAGS.isQueuedForUpdate */;
1103
1380
  }
1104
- if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
1105
- hostRef.$flags$ |= 512 /* needsRerender */;
1381
+ if (hostRef.$flags$ & 4 /* HOST_FLAGS.isWaitingForChildren */) {
1382
+ hostRef.$flags$ |= 512 /* HOST_FLAGS.needsRerender */;
1106
1383
  return;
1107
1384
  }
1108
1385
  attachToAncestor(hostRef, hostRef.$ancestorComponent$);
@@ -1118,7 +1395,7 @@ const dispatchHooks = (hostRef, isInitialLoad) => {
1118
1395
  let promise;
1119
1396
  if (isInitialLoad) {
1120
1397
  {
1121
- hostRef.$flags$ |= 256 /* isListenReady */;
1398
+ hostRef.$flags$ |= 256 /* HOST_FLAGS.isListenReady */;
1122
1399
  if (hostRef.$queuedListeners$) {
1123
1400
  hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
1124
1401
  hostRef.$queuedListeners$ = null;
@@ -1161,7 +1438,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
1161
1438
  }
1162
1439
  else {
1163
1440
  Promise.all(childrenPromises).then(postUpdate);
1164
- hostRef.$flags$ |= 4 /* isWaitingForChildren */;
1441
+ hostRef.$flags$ |= 4 /* HOST_FLAGS.isWaitingForChildren */;
1165
1442
  childrenPromises.length = 0;
1166
1443
  }
1167
1444
  }
@@ -1170,10 +1447,10 @@ const callRender = (hostRef, instance, elm) => {
1170
1447
  try {
1171
1448
  instance = instance.render() ;
1172
1449
  {
1173
- hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
1450
+ hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
1174
1451
  }
1175
1452
  {
1176
- hostRef.$flags$ |= 2 /* hasRendered */;
1453
+ hostRef.$flags$ |= 2 /* HOST_FLAGS.hasRendered */;
1177
1454
  }
1178
1455
  {
1179
1456
  {
@@ -1200,8 +1477,8 @@ const postUpdateComponent = (hostRef) => {
1200
1477
  {
1201
1478
  safeCall(instance, 'componentDidRender');
1202
1479
  }
1203
- if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
1204
- hostRef.$flags$ |= 64 /* hasLoadedComponent */;
1480
+ if (!(hostRef.$flags$ & 64 /* HOST_FLAGS.hasLoadedComponent */)) {
1481
+ hostRef.$flags$ |= 64 /* HOST_FLAGS.hasLoadedComponent */;
1205
1482
  {
1206
1483
  // DOM WRITE!
1207
1484
  addHydratedFlag(elm);
@@ -1230,10 +1507,10 @@ const postUpdateComponent = (hostRef) => {
1230
1507
  hostRef.$onRenderResolve$();
1231
1508
  hostRef.$onRenderResolve$ = undefined;
1232
1509
  }
1233
- if (hostRef.$flags$ & 512 /* needsRerender */) {
1510
+ if (hostRef.$flags$ & 512 /* HOST_FLAGS.needsRerender */) {
1234
1511
  nextTick(() => scheduleUpdate(hostRef, false));
1235
1512
  }
1236
- hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
1513
+ hostRef.$flags$ &= ~(4 /* HOST_FLAGS.isWaitingForChildren */ | 512 /* HOST_FLAGS.needsRerender */);
1237
1514
  }
1238
1515
  // ( •_•)
1239
1516
  // ( •_•)>⌐■-■
@@ -1263,53 +1540,6 @@ const then = (promise, thenFn) => {
1263
1540
  };
1264
1541
  const addHydratedFlag = (elm) => elm.classList.add('hydrated')
1265
1542
  ;
1266
- /**
1267
- * Parse a new property value for a given property type.
1268
- *
1269
- * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
1270
- * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
1271
- * 1. `any`, the type given to `propValue` in the function signature
1272
- * 2. the type stored from `propType`.
1273
- *
1274
- * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
1275
- *
1276
- * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
1277
- * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
1278
- * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
1279
- * ```tsx
1280
- * <my-cmp prop-val={0}></my-cmp>
1281
- * ```
1282
- *
1283
- * HTML prop values on the other hand, will always a string
1284
- *
1285
- * @param propValue the new value to coerce to some type
1286
- * @param propType the type of the prop, expressed as a binary number
1287
- * @returns the parsed/coerced value
1288
- */
1289
- const parsePropertyValue = (propValue, propType) => {
1290
- // ensure this value is of the correct prop type
1291
- if (propValue != null && !isComplexType(propValue)) {
1292
- if (propType & 4 /* Boolean */) {
1293
- // per the HTML spec, any string value means it is a boolean true value
1294
- // but we'll cheat here and say that the string "false" is the boolean false
1295
- return propValue === 'false' ? false : propValue === '' || !!propValue;
1296
- }
1297
- if (propType & 2 /* Number */) {
1298
- // force it to be a number
1299
- return parseFloat(propValue);
1300
- }
1301
- if (propType & 1 /* String */) {
1302
- // could have been passed as a number or boolean
1303
- // but we still want it as a string
1304
- return String(propValue);
1305
- }
1306
- // redundant return here for better minification
1307
- return propValue;
1308
- }
1309
- // not sure exactly what type we want
1310
- // so no need to change to a different type
1311
- return propValue;
1312
- };
1313
1543
  const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1314
1544
  const setValue = (ref, propName, newVal, cmpMeta) => {
1315
1545
  // check our new property value against our internal value
@@ -1322,13 +1552,13 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
1322
1552
  // explicitly check for NaN on both sides, as `NaN === NaN` is always false
1323
1553
  const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1324
1554
  const didValueChange = newVal !== oldVal && !areBothNaN;
1325
- if ((!(flags & 8 /* isConstructingInstance */) || oldVal === undefined) && didValueChange) {
1555
+ if ((!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) || oldVal === undefined) && didValueChange) {
1326
1556
  // gadzooks! the property's value has changed!!
1327
1557
  // set our new value!
1328
1558
  hostRef.$instanceValues$.set(propName, newVal);
1329
1559
  if (instance) {
1330
1560
  // get an array of method names of watch functions to call
1331
- if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
1561
+ if (cmpMeta.$watchers$ && flags & 128 /* HOST_FLAGS.isWatchReady */) {
1332
1562
  const watchMethods = cmpMeta.$watchers$[propName];
1333
1563
  if (watchMethods) {
1334
1564
  // this instance is watching for when this property changed
@@ -1343,7 +1573,7 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
1343
1573
  });
1344
1574
  }
1345
1575
  }
1346
- if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1576
+ if ((flags & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
1347
1577
  // looks like this value actually changed, so we've got work to do!
1348
1578
  // but only if we've already rendered, otherwise just chill out
1349
1579
  // queue that we need to do an update, but don't worry about queuing
@@ -1353,6 +1583,16 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
1353
1583
  }
1354
1584
  }
1355
1585
  };
1586
+ /**
1587
+ * Attach a series of runtime constructs to a compiled Stencil component
1588
+ * constructor, including getters and setters for the `@Prop` and `@State`
1589
+ * decorators, callbacks for when attributes change, and so on.
1590
+ *
1591
+ * @param Cstr the constructor for a component that we need to process
1592
+ * @param cmpMeta metadata collected previously about the component
1593
+ * @param flags a number used to store a series of bit flags
1594
+ * @returns a reference to the same constructor passed in (but now mutated)
1595
+ */
1356
1596
  const proxyComponent = (Cstr, cmpMeta, flags) => {
1357
1597
  if (cmpMeta.$members$) {
1358
1598
  if (Cstr.watchers) {
@@ -1362,8 +1602,8 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1362
1602
  const members = Object.entries(cmpMeta.$members$);
1363
1603
  const prototype = Cstr.prototype;
1364
1604
  members.map(([memberName, [memberFlags]]) => {
1365
- if ((memberFlags & 31 /* Prop */ ||
1366
- ((flags & 2 /* proxyState */) && memberFlags & 32 /* State */))) {
1605
+ if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
1606
+ ((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
1367
1607
  // proxyComponent - prop
1368
1608
  Object.defineProperty(prototype, memberName, {
1369
1609
  get() {
@@ -1378,8 +1618,8 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1378
1618
  enumerable: true,
1379
1619
  });
1380
1620
  }
1381
- else if (flags & 1 /* isElementConstructor */ &&
1382
- memberFlags & 64 /* Method */) {
1621
+ else if (flags & 1 /* PROXY_FLAGS.isElementConstructor */ &&
1622
+ memberFlags & 64 /* MEMBER_FLAGS.Method */) {
1383
1623
  // proxyComponent - method
1384
1624
  Object.defineProperty(prototype, memberName, {
1385
1625
  value(...args) {
@@ -1389,7 +1629,7 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1389
1629
  });
1390
1630
  }
1391
1631
  });
1392
- if ((flags & 1 /* isElementConstructor */)) {
1632
+ if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
1393
1633
  const attrNameToPropName = new Map();
1394
1634
  prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
1395
1635
  plt.jmp(() => {
@@ -1445,11 +1685,11 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1445
1685
  // create an array of attributes to observe
1446
1686
  // and also create a map of html attribute name to js property name
1447
1687
  Cstr.observedAttributes = members
1448
- .filter(([_, m]) => m[0] & 15 /* HasAttribute */) // filter to only keep props that should match attributes
1688
+ .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */) // filter to only keep props that should match attributes
1449
1689
  .map(([propName, m]) => {
1450
1690
  const attrName = m[1] || propName;
1451
1691
  attrNameToPropName.set(attrName, propName);
1452
- if (m[0] & 512 /* ReflectAttr */) {
1692
+ if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
1453
1693
  cmpMeta.$attrsToReflect$.push([propName, attrName]);
1454
1694
  }
1455
1695
  return attrName;
@@ -1460,10 +1700,10 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1460
1700
  };
1461
1701
  const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
1462
1702
  // initializeComponent
1463
- if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1703
+ if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
1464
1704
  {
1465
1705
  // we haven't initialized this element yet
1466
- hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1706
+ hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
1467
1707
  // lazy loaded components
1468
1708
  // request the component's implementation to be
1469
1709
  // wired up with the host element
@@ -1481,7 +1721,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
1481
1721
  {
1482
1722
  cmpMeta.$watchers$ = Cstr.watchers;
1483
1723
  }
1484
- proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
1724
+ proxyComponent(Cstr, cmpMeta, 2 /* PROXY_FLAGS.proxyState */);
1485
1725
  Cstr.isProxied = true;
1486
1726
  }
1487
1727
  const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
@@ -1489,7 +1729,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
1489
1729
  // but let's keep track of when we start and stop
1490
1730
  // so that the getters/setters don't incorrectly step on data
1491
1731
  {
1492
- hostRef.$flags$ |= 8 /* isConstructingInstance */;
1732
+ hostRef.$flags$ |= 8 /* HOST_FLAGS.isConstructingInstance */;
1493
1733
  }
1494
1734
  // construct the lazy-loaded component implementation
1495
1735
  // passing the hostRef is very important during
@@ -1502,10 +1742,10 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
1502
1742
  consoleError(e);
1503
1743
  }
1504
1744
  {
1505
- hostRef.$flags$ &= ~8 /* isConstructingInstance */;
1745
+ hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
1506
1746
  }
1507
1747
  {
1508
- hostRef.$flags$ |= 128 /* isWatchReady */;
1748
+ hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */;
1509
1749
  }
1510
1750
  endNewInstance();
1511
1751
  }
@@ -1515,7 +1755,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
1515
1755
  const scopeId = getScopeId(cmpMeta);
1516
1756
  if (!styles.has(scopeId)) {
1517
1757
  const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
1518
- registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
1758
+ registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */));
1519
1759
  endRegisterStyles();
1520
1760
  }
1521
1761
  }
@@ -1537,19 +1777,20 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
1537
1777
  }
1538
1778
  };
1539
1779
  const connectedCallback = (elm) => {
1540
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1780
+ if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1541
1781
  const hostRef = getHostRef(elm);
1542
1782
  const cmpMeta = hostRef.$cmpMeta$;
1543
1783
  const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
1544
- if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
1784
+ if (!(hostRef.$flags$ & 1 /* HOST_FLAGS.hasConnected */)) {
1545
1785
  // first time this component has connected
1546
- hostRef.$flags$ |= 1 /* hasConnected */;
1786
+ hostRef.$flags$ |= 1 /* HOST_FLAGS.hasConnected */;
1547
1787
  {
1548
1788
  // initUpdate
1549
1789
  // if the slot polyfill is required we'll need to put some nodes
1550
1790
  // in here to act as original content anchors as we move nodes around
1551
1791
  // host element has been connected to the DOM
1552
- if ((cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */))) {
1792
+ if ((// TODO(STENCIL-662): Remove code related to deprecated shadowDomShim field
1793
+ cmpMeta.$flags$ & (4 /* CMP_FLAGS.hasSlotRelocation */ | 8 /* CMP_FLAGS.needsShadowDomShim */))) {
1553
1794
  setContentReference(elm);
1554
1795
  }
1555
1796
  }
@@ -1572,7 +1813,7 @@ const connectedCallback = (elm) => {
1572
1813
  // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1573
1814
  if (cmpMeta.$members$) {
1574
1815
  Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1575
- if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
1816
+ if (memberFlags & 31 /* MEMBER_FLAGS.Prop */ && elm.hasOwnProperty(memberName)) {
1576
1817
  const value = elm[memberName];
1577
1818
  delete elm[memberName];
1578
1819
  elm[memberName] = value;
@@ -1604,7 +1845,7 @@ const setContentReference = (elm) => {
1604
1845
  elm.insertBefore(contentRefElm, elm.firstChild);
1605
1846
  };
1606
1847
  const disconnectedCallback = (elm) => {
1607
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1848
+ if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1608
1849
  const hostRef = getHostRef(elm);
1609
1850
  const instance = hostRef.$lazyInstance$ ;
1610
1851
  {
@@ -1619,6 +1860,7 @@ const disconnectedCallback = (elm) => {
1619
1860
  }
1620
1861
  };
1621
1862
  const bootstrapLazy = (lazyBundles, options = {}) => {
1863
+ var _a;
1622
1864
  const endBootstrap = createTime();
1623
1865
  const cmpTags = [];
1624
1866
  const exclude = options.exclude || [];
@@ -1659,7 +1901,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1659
1901
  super(self);
1660
1902
  self = this;
1661
1903
  registerHost(self, cmpMeta);
1662
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1904
+ if (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
1663
1905
  // this component is using shadow dom
1664
1906
  // and this browser supports shadow dom
1665
1907
  // add the read-only property "shadowRoot" to the host element
@@ -1694,13 +1936,18 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1694
1936
  cmpMeta.$lazyBundleId$ = lazyBundle[0];
1695
1937
  if (!exclude.includes(tagName) && !customElements.get(tagName)) {
1696
1938
  cmpTags.push(tagName);
1697
- customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
1939
+ customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* PROXY_FLAGS.isElementConstructor */));
1698
1940
  }
1699
1941
  });
1700
1942
  });
1701
1943
  {
1702
1944
  visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
1703
1945
  visibilityStyle.setAttribute('data-styles', '');
1946
+ // Apply CSP nonce to the style tag if it exists
1947
+ const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
1948
+ if (nonce != null) {
1949
+ visibilityStyle.setAttribute('nonce', nonce);
1950
+ }
1704
1951
  head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
1705
1952
  }
1706
1953
  // Process deferred connectedCallbacks now all components have been registered
@@ -1717,7 +1964,48 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1717
1964
  endBootstrap();
1718
1965
  };
1719
1966
  const Fragment = (_, children) => children;
1720
- const hostRefs = new WeakMap();
1967
+ const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
1968
+ if (listeners) {
1969
+ listeners.map(([flags, name, method]) => {
1970
+ const target = getHostListenerTarget(elm, flags) ;
1971
+ const handler = hostListenerProxy(hostRef, method);
1972
+ const opts = hostListenerOpts(flags);
1973
+ plt.ael(target, name, handler, opts);
1974
+ (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
1975
+ });
1976
+ }
1977
+ };
1978
+ const hostListenerProxy = (hostRef, methodName) => (ev) => {
1979
+ try {
1980
+ {
1981
+ if (hostRef.$flags$ & 256 /* HOST_FLAGS.isListenReady */) {
1982
+ // instance is ready, let's call it's member method for this event
1983
+ hostRef.$lazyInstance$[methodName](ev);
1984
+ }
1985
+ else {
1986
+ (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
1987
+ }
1988
+ }
1989
+ }
1990
+ catch (e) {
1991
+ consoleError(e);
1992
+ }
1993
+ };
1994
+ const getHostListenerTarget = (elm, flags) => {
1995
+ if (flags & 8 /* LISTENER_FLAGS.TargetWindow */)
1996
+ return win;
1997
+ return elm;
1998
+ };
1999
+ // prettier-ignore
2000
+ const hostListenerOpts = (flags) => (flags & 2 /* LISTENER_FLAGS.Capture */) !== 0;
2001
+ /**
2002
+ * Assigns the given value to the nonce property on the runtime platform object.
2003
+ * During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
2004
+ * @param nonce The value to be assigned to the platform nonce property.
2005
+ * @returns void
2006
+ */
2007
+ const setNonce = (nonce) => (plt.$nonce$ = nonce);
2008
+ const hostRefs = /*@__PURE__*/ new WeakMap();
1721
2009
  const getHostRef = (ref) => hostRefs.get(ref);
1722
2010
  const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
1723
2011
  const registerHost = (elm, cmpMeta) => {
@@ -1762,14 +2050,35 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1762
2050
  return importedModule[exportName];
1763
2051
  }, consoleError);
1764
2052
  };
1765
- const styles = new Map();
2053
+ const styles = /*@__PURE__*/ new Map();
2054
+ const win = typeof window !== 'undefined' ? window : {};
2055
+ const doc = win.document || { head: {} };
2056
+ const plt = {
2057
+ $flags$: 0,
2058
+ $resourcesUrl$: '',
2059
+ jmp: (h) => h(),
2060
+ raf: (h) => requestAnimationFrame(h),
2061
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
2062
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
2063
+ ce: (eventName, opts) => new CustomEvent(eventName, opts),
2064
+ };
2065
+ const promiseResolve = (v) => Promise.resolve(v);
2066
+ const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
2067
+ try {
2068
+ new CSSStyleSheet();
2069
+ return typeof new CSSStyleSheet().replaceSync === 'function';
2070
+ }
2071
+ catch (e) { }
2072
+ return false;
2073
+ })()
2074
+ ;
1766
2075
  const queueDomReads = [];
1767
2076
  const queueDomWrites = [];
1768
2077
  const queueTask = (queue, write) => (cb) => {
1769
2078
  queue.push(cb);
1770
2079
  if (!queuePending) {
1771
2080
  queuePending = true;
1772
- if (write && plt.$flags$ & 4 /* queueSync */) {
2081
+ if (write && plt.$flags$ & 4 /* PLATFORM_FLAGS.queueSync */) {
1773
2082
  nextTick(flush);
1774
2083
  }
1775
2084
  else {
@@ -1814,3 +2123,4 @@ exports.getElement = getElement;
1814
2123
  exports.h = h;
1815
2124
  exports.promiseResolve = promiseResolve;
1816
2125
  exports.registerInstance = registerInstance;
2126
+ exports.setNonce = setNonce;