@getflip/swirl-components 0.1.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 (832) hide show
  1. package/LICENSE.md +25 -0
  2. package/README.md +8 -0
  3. package/dist/cjs/flip-action-list-item.cjs.entry.js +24 -0
  4. package/dist/cjs/flip-action-list-section.cjs.entry.js +19 -0
  5. package/dist/cjs/flip-action-list.cjs.entry.js +52 -0
  6. package/dist/cjs/flip-avatar-group.cjs.entry.js +24 -0
  7. package/dist/cjs/flip-avatar.cjs.entry.js +78 -0
  8. package/dist/cjs/flip-badge.cjs.entry.js +26 -0
  9. package/dist/cjs/flip-banner.cjs.entry.js +47 -0
  10. package/dist/cjs/flip-button_2.cjs.entry.js +59 -0
  11. package/dist/cjs/flip-checkbox.cjs.entry.js +44 -0
  12. package/dist/cjs/flip-chip.cjs.entry.js +50 -0
  13. package/dist/cjs/flip-description-list-item.cjs.entry.js +19 -0
  14. package/dist/cjs/flip-description-list.cjs.entry.js +19 -0
  15. package/dist/cjs/flip-dialog.cjs.entry.js +476 -0
  16. package/dist/cjs/flip-icon-add-photo.cjs.entry.js +20 -0
  17. package/dist/cjs/flip-icon-add.cjs.entry.js +20 -0
  18. package/dist/cjs/flip-icon-admin-panel-settings.cjs.entry.js +20 -0
  19. package/dist/cjs/flip-icon-arrow-back.cjs.entry.js +20 -0
  20. package/dist/cjs/flip-icon-arrow-forward.cjs.entry.js +20 -0
  21. package/dist/cjs/flip-icon-arrow-right-small.cjs.entry.js +20 -0
  22. package/dist/cjs/flip-icon-attachment.cjs.entry.js +20 -0
  23. package/dist/cjs/flip-icon-cancel_2.cjs.entry.js +34 -0
  24. package/dist/cjs/flip-icon-chat-bubble.cjs.entry.js +20 -0
  25. package/dist/cjs/flip-icon-check-circle.cjs.entry.js +20 -0
  26. package/dist/cjs/flip-icon-check-small.cjs.entry.js +20 -0
  27. package/dist/cjs/flip-icon-check-strong.cjs.entry.js +20 -0
  28. package/dist/cjs/flip-icon-check.cjs.entry.js +20 -0
  29. package/dist/cjs/flip-icon-chevron-left.cjs.entry.js +20 -0
  30. package/dist/cjs/flip-icon-chevron-right.cjs.entry.js +20 -0
  31. package/dist/cjs/flip-icon-close-small.cjs.entry.js +20 -0
  32. package/dist/cjs/flip-icon-close.cjs.entry.js +20 -0
  33. package/dist/cjs/flip-icon-comment.cjs.entry.js +20 -0
  34. package/dist/cjs/flip-icon-copy.cjs.entry.js +20 -0
  35. package/dist/cjs/flip-icon-date-range.cjs.entry.js +20 -0
  36. package/dist/cjs/flip-icon-delete.cjs.entry.js +20 -0
  37. package/dist/cjs/flip-icon-description.cjs.entry.js +20 -0
  38. package/dist/cjs/flip-icon-download.cjs.entry.js +20 -0
  39. package/dist/cjs/flip-icon-edit.cjs.entry.js +20 -0
  40. package/dist/cjs/flip-icon-emoji-mood.cjs.entry.js +20 -0
  41. package/dist/cjs/flip-icon-emoji-satisfied.cjs.entry.js +20 -0
  42. package/dist/cjs/flip-icon-error.cjs.entry.js +20 -0
  43. package/dist/cjs/flip-icon-expand-less.cjs.entry.js +20 -0
  44. package/dist/cjs/flip-icon-expand-more.cjs.entry.js +20 -0
  45. package/dist/cjs/flip-icon-file.cjs.entry.js +20 -0
  46. package/dist/cjs/flip-icon-folder-shared.cjs.entry.js +20 -0
  47. package/dist/cjs/flip-icon-group-assign.cjs.entry.js +20 -0
  48. package/dist/cjs/flip-icon-groups-custom.cjs.entry.js +20 -0
  49. package/dist/cjs/flip-icon-groups.cjs.entry.js +20 -0
  50. package/dist/cjs/flip-icon-image.cjs.entry.js +20 -0
  51. package/dist/cjs/flip-icon-info.cjs.entry.js +20 -0
  52. package/dist/cjs/flip-icon-inventory.cjs.entry.js +20 -0
  53. package/dist/cjs/flip-icon-like.cjs.entry.js +20 -0
  54. package/dist/cjs/flip-icon-link.cjs.entry.js +20 -0
  55. package/dist/cjs/flip-icon-lock.cjs.entry.js +20 -0
  56. package/dist/cjs/flip-icon-logout.cjs.entry.js +20 -0
  57. package/dist/cjs/flip-icon-mail.cjs.entry.js +20 -0
  58. package/dist/cjs/flip-icon-manage-accounts.cjs.entry.js +20 -0
  59. package/dist/cjs/flip-icon-mention.cjs.entry.js +20 -0
  60. package/dist/cjs/flip-icon-message.cjs.entry.js +20 -0
  61. package/dist/cjs/flip-icon-more-horizontal.cjs.entry.js +20 -0
  62. package/dist/cjs/flip-icon-more-vertikal.cjs.entry.js +20 -0
  63. package/dist/cjs/flip-icon-notifications-active.cjs.entry.js +20 -0
  64. package/dist/cjs/flip-icon-notifications-off.cjs.entry.js +20 -0
  65. package/dist/cjs/flip-icon-notifications.cjs.entry.js +20 -0
  66. package/dist/cjs/flip-icon-people-alt.cjs.entry.js +20 -0
  67. package/dist/cjs/flip-icon-person-off.cjs.entry.js +20 -0
  68. package/dist/cjs/flip-icon-person.cjs.entry.js +20 -0
  69. package/dist/cjs/flip-icon-phone.cjs.entry.js +20 -0
  70. package/dist/cjs/flip-icon-poll.cjs.entry.js +20 -0
  71. package/dist/cjs/flip-icon-recieved.cjs.entry.js +20 -0
  72. package/dist/cjs/flip-icon-search-strong.cjs.entry.js +20 -0
  73. package/dist/cjs/flip-icon-send.cjs.entry.js +20 -0
  74. package/dist/cjs/flip-icon-settings.cjs.entry.js +20 -0
  75. package/dist/cjs/flip-icon-time-filled.cjs.entry.js +20 -0
  76. package/dist/cjs/flip-icon-time-outlined.cjs.entry.js +20 -0
  77. package/dist/cjs/flip-icon-today.cjs.entry.js +20 -0
  78. package/dist/cjs/flip-icon-user-assign.cjs.entry.js +20 -0
  79. package/dist/cjs/flip-icon-video-camera.cjs.entry.js +20 -0
  80. package/dist/cjs/flip-icon-visibility-off.cjs.entry.js +20 -0
  81. package/dist/cjs/flip-icon-visibility.cjs.entry.js +20 -0
  82. package/dist/cjs/flip-icon-warning.cjs.entry.js +20 -0
  83. package/dist/cjs/flip-inline-error.cjs.entry.js +23 -0
  84. package/dist/cjs/flip-link.cjs.entry.js +19 -0
  85. package/dist/cjs/flip-popover.cjs.entry.js +1558 -0
  86. package/dist/cjs/flip-radio-group.cjs.entry.js +51 -0
  87. package/dist/cjs/flip-radio.cjs.entry.js +37 -0
  88. package/dist/cjs/flip-search.cjs.entry.js +47 -0
  89. package/dist/cjs/flip-spinner.cjs.entry.js +22 -0
  90. package/dist/cjs/flip-stack.cjs.entry.js +28 -0
  91. package/dist/cjs/flip-switch.cjs.entry.js +92 -0
  92. package/dist/cjs/flip-tag.cjs.entry.js +28 -0
  93. package/dist/cjs/flip-theme-provider.cjs.entry.js +367 -0
  94. package/dist/cjs/flip-thumbnail.cjs.entry.js +23 -0
  95. package/dist/cjs/flip-toast-provider.cjs.entry.js +54 -0
  96. package/dist/cjs/flip-toast.cjs.entry.js +52 -0
  97. package/dist/cjs/flip-tooltip.cjs.entry.js +122 -0
  98. package/dist/cjs/flip-visually-hidden.cjs.entry.js +19 -0
  99. package/dist/cjs/index-37fbfe64.js +1803 -0
  100. package/dist/cjs/index-b9715722.js +72 -0
  101. package/dist/cjs/index.cjs.js +2 -0
  102. package/dist/cjs/loader.cjs.js +21 -0
  103. package/dist/cjs/swirl-components.cjs.js +19 -0
  104. package/dist/cjs/utils-a6e2e7da.js +28 -0
  105. package/dist/collection/collection-manifest.json +109 -0
  106. package/dist/collection/components/flip-action-list/flip-action-list.css +11 -0
  107. package/dist/collection/components/flip-action-list/flip-action-list.js +54 -0
  108. package/dist/collection/components/flip-action-list/flip-action-list.stories.js +22 -0
  109. package/dist/collection/components/flip-action-list-item/flip-action-list-item.css +97 -0
  110. package/dist/collection/components/flip-action-list-item/flip-action-list-item.js +158 -0
  111. package/dist/collection/components/flip-action-list-item/flip-action-list-item.stories.js +30 -0
  112. package/dist/collection/components/flip-action-list-section/flip-action-list-section.css +22 -0
  113. package/dist/collection/components/flip-action-list-section/flip-action-list-section.js +40 -0
  114. package/dist/collection/components/flip-action-list-section/flip-action-list-section.stories.js +27 -0
  115. package/dist/collection/components/flip-avatar/flip-avatar.css +210 -0
  116. package/dist/collection/components/flip-avatar/flip-avatar.js +278 -0
  117. package/dist/collection/components/flip-avatar/flip-avatar.stories.js +40 -0
  118. package/dist/collection/components/flip-avatar-group/flip-avatar-group.css +46 -0
  119. package/dist/collection/components/flip-avatar-group/flip-avatar-group.js +44 -0
  120. package/dist/collection/components/flip-avatar-group/flip-avatar-group.stories.js +33 -0
  121. package/dist/collection/components/flip-badge/flip-badge.css +121 -0
  122. package/dist/collection/components/flip-badge/flip-badge.js +128 -0
  123. package/dist/collection/components/flip-badge/flip-badge.stories.js +31 -0
  124. package/dist/collection/components/flip-banner/flip-banner.css +146 -0
  125. package/dist/collection/components/flip-banner/flip-banner.js +222 -0
  126. package/dist/collection/components/flip-banner/flip-banner.stories.js +22 -0
  127. package/dist/collection/components/flip-button/flip-button.css +287 -0
  128. package/dist/collection/components/flip-button/flip-button.js +301 -0
  129. package/dist/collection/components/flip-button/flip-button.stories.js +31 -0
  130. package/dist/collection/components/flip-button-group/flip-button-group.css +7 -0
  131. package/dist/collection/components/flip-button-group/flip-button-group.js +81 -0
  132. package/dist/collection/components/flip-button-group/flip-button-group.stories.js +21 -0
  133. package/dist/collection/components/flip-checkbox/flip-checkbox.css +133 -0
  134. package/dist/collection/components/flip-checkbox/flip-checkbox.js +211 -0
  135. package/dist/collection/components/flip-checkbox/flip-checkbox.stories.js +29 -0
  136. package/dist/collection/components/flip-chip/flip-chip.css +89 -0
  137. package/dist/collection/components/flip-chip/flip-chip.js +144 -0
  138. package/dist/collection/components/flip-chip/flip-chip.stories.js +37 -0
  139. package/dist/collection/components/flip-description-list/flip-description-list.css +24 -0
  140. package/dist/collection/components/flip-description-list/flip-description-list.js +19 -0
  141. package/dist/collection/components/flip-description-list/flip-description-list.stories.js +30 -0
  142. package/dist/collection/components/flip-description-list-item/flip-description-list-item.css +65 -0
  143. package/dist/collection/components/flip-description-list-item/flip-description-list-item.js +40 -0
  144. package/dist/collection/components/flip-description-list-item/flip-description-list-item.stories.js +20 -0
  145. package/dist/collection/components/flip-dialog/flip-dialog.css +158 -0
  146. package/dist/collection/components/flip-dialog/flip-dialog.js +248 -0
  147. package/dist/collection/components/flip-dialog/flip-dialog.stories.js +40 -0
  148. package/dist/collection/components/flip-icon/flip-icon.css +3 -0
  149. package/dist/collection/components/flip-icon/flip-icon.stories.js +42 -0
  150. package/dist/collection/components/flip-icon/flip-icon.types.js +1 -0
  151. package/dist/collection/components/flip-icon/icons/flip-icon-add-photo.js +49 -0
  152. package/dist/collection/components/flip-icon/icons/flip-icon-add.js +49 -0
  153. package/dist/collection/components/flip-icon/icons/flip-icon-admin-panel-settings.js +52 -0
  154. package/dist/collection/components/flip-icon/icons/flip-icon-arrow-back.js +49 -0
  155. package/dist/collection/components/flip-icon/icons/flip-icon-arrow-forward.js +49 -0
  156. package/dist/collection/components/flip-icon/icons/flip-icon-arrow-right-small.js +49 -0
  157. package/dist/collection/components/flip-icon/icons/flip-icon-attachment.js +49 -0
  158. package/dist/collection/components/flip-icon/icons/flip-icon-cancel.js +49 -0
  159. package/dist/collection/components/flip-icon/icons/flip-icon-chat-bubble.js +49 -0
  160. package/dist/collection/components/flip-icon/icons/flip-icon-check-circle.js +49 -0
  161. package/dist/collection/components/flip-icon/icons/flip-icon-check-small.js +49 -0
  162. package/dist/collection/components/flip-icon/icons/flip-icon-check-strong.js +49 -0
  163. package/dist/collection/components/flip-icon/icons/flip-icon-check.js +49 -0
  164. package/dist/collection/components/flip-icon/icons/flip-icon-chevron-left.js +49 -0
  165. package/dist/collection/components/flip-icon/icons/flip-icon-chevron-right.js +49 -0
  166. package/dist/collection/components/flip-icon/icons/flip-icon-close-small.js +49 -0
  167. package/dist/collection/components/flip-icon/icons/flip-icon-close.js +49 -0
  168. package/dist/collection/components/flip-icon/icons/flip-icon-comment.js +52 -0
  169. package/dist/collection/components/flip-icon/icons/flip-icon-copy.js +49 -0
  170. package/dist/collection/components/flip-icon/icons/flip-icon-date-range.js +49 -0
  171. package/dist/collection/components/flip-icon/icons/flip-icon-delete.js +52 -0
  172. package/dist/collection/components/flip-icon/icons/flip-icon-description.js +49 -0
  173. package/dist/collection/components/flip-icon/icons/flip-icon-download.js +49 -0
  174. package/dist/collection/components/flip-icon/icons/flip-icon-edit.js +49 -0
  175. package/dist/collection/components/flip-icon/icons/flip-icon-emoji-mood.js +49 -0
  176. package/dist/collection/components/flip-icon/icons/flip-icon-emoji-satisfied.js +49 -0
  177. package/dist/collection/components/flip-icon/icons/flip-icon-error.js +49 -0
  178. package/dist/collection/components/flip-icon/icons/flip-icon-expand-less.js +49 -0
  179. package/dist/collection/components/flip-icon/icons/flip-icon-expand-more.js +49 -0
  180. package/dist/collection/components/flip-icon/icons/flip-icon-file.js +49 -0
  181. package/dist/collection/components/flip-icon/icons/flip-icon-folder-shared.js +49 -0
  182. package/dist/collection/components/flip-icon/icons/flip-icon-group-assign.js +49 -0
  183. package/dist/collection/components/flip-icon/icons/flip-icon-groups-custom.js +64 -0
  184. package/dist/collection/components/flip-icon/icons/flip-icon-groups.js +49 -0
  185. package/dist/collection/components/flip-icon/icons/flip-icon-image.js +49 -0
  186. package/dist/collection/components/flip-icon/icons/flip-icon-info.js +49 -0
  187. package/dist/collection/components/flip-icon/icons/flip-icon-inventory.js +49 -0
  188. package/dist/collection/components/flip-icon/icons/flip-icon-like.js +52 -0
  189. package/dist/collection/components/flip-icon/icons/flip-icon-link.js +49 -0
  190. package/dist/collection/components/flip-icon/icons/flip-icon-lock.js +49 -0
  191. package/dist/collection/components/flip-icon/icons/flip-icon-logout.js +49 -0
  192. package/dist/collection/components/flip-icon/icons/flip-icon-mail.js +49 -0
  193. package/dist/collection/components/flip-icon/icons/flip-icon-manage-accounts.js +55 -0
  194. package/dist/collection/components/flip-icon/icons/flip-icon-mention.js +49 -0
  195. package/dist/collection/components/flip-icon/icons/flip-icon-message.js +49 -0
  196. package/dist/collection/components/flip-icon/icons/flip-icon-more-horizontal.js +49 -0
  197. package/dist/collection/components/flip-icon/icons/flip-icon-more-vertikal.js +49 -0
  198. package/dist/collection/components/flip-icon/icons/flip-icon-notifications-active.js +49 -0
  199. package/dist/collection/components/flip-icon/icons/flip-icon-notifications-off.js +49 -0
  200. package/dist/collection/components/flip-icon/icons/flip-icon-notifications.js +49 -0
  201. package/dist/collection/components/flip-icon/icons/flip-icon-people-alt.js +58 -0
  202. package/dist/collection/components/flip-icon/icons/flip-icon-person-off.js +49 -0
  203. package/dist/collection/components/flip-icon/icons/flip-icon-person.js +49 -0
  204. package/dist/collection/components/flip-icon/icons/flip-icon-phone.js +49 -0
  205. package/dist/collection/components/flip-icon/icons/flip-icon-poll.js +49 -0
  206. package/dist/collection/components/flip-icon/icons/flip-icon-recieved.js +52 -0
  207. package/dist/collection/components/flip-icon/icons/flip-icon-search-strong.js +49 -0
  208. package/dist/collection/components/flip-icon/icons/flip-icon-search.js +49 -0
  209. package/dist/collection/components/flip-icon/icons/flip-icon-send.js +49 -0
  210. package/dist/collection/components/flip-icon/icons/flip-icon-settings.js +49 -0
  211. package/dist/collection/components/flip-icon/icons/flip-icon-time-filled.js +49 -0
  212. package/dist/collection/components/flip-icon/icons/flip-icon-time-outlined.js +49 -0
  213. package/dist/collection/components/flip-icon/icons/flip-icon-today.js +49 -0
  214. package/dist/collection/components/flip-icon/icons/flip-icon-user-assign.js +49 -0
  215. package/dist/collection/components/flip-icon/icons/flip-icon-video-camera.js +49 -0
  216. package/dist/collection/components/flip-icon/icons/flip-icon-visibility-off.js +49 -0
  217. package/dist/collection/components/flip-icon/icons/flip-icon-visibility.js +49 -0
  218. package/dist/collection/components/flip-icon/icons/flip-icon-warning.js +49 -0
  219. package/dist/collection/components/flip-inline-error/flip-inline-error.css +35 -0
  220. package/dist/collection/components/flip-inline-error/flip-inline-error.js +65 -0
  221. package/dist/collection/components/flip-inline-error/flip-inline-error.stories.js +19 -0
  222. package/dist/collection/components/flip-link/flip-link.css +21 -0
  223. package/dist/collection/components/flip-link/flip-link.js +72 -0
  224. package/dist/collection/components/flip-link/flip-link.stories.js +20 -0
  225. package/dist/collection/components/flip-popover/flip-popover.css +267 -0
  226. package/dist/collection/components/flip-popover/flip-popover.js +229 -0
  227. package/dist/collection/components/flip-popover/flip-popover.stories.js +63 -0
  228. package/dist/collection/components/flip-radio/flip-radio.css +120 -0
  229. package/dist/collection/components/flip-radio/flip-radio.js +201 -0
  230. package/dist/collection/components/flip-radio/flip-radio.stories.js +24 -0
  231. package/dist/collection/components/flip-radio-group/flip-radio-group.css +13 -0
  232. package/dist/collection/components/flip-radio-group/flip-radio-group.js +82 -0
  233. package/dist/collection/components/flip-radio-group/flip-radio-group.stories.js +25 -0
  234. package/dist/collection/components/flip-search/flip-search.css +96 -0
  235. package/dist/collection/components/flip-search/flip-search.js +247 -0
  236. package/dist/collection/components/flip-search/flip-search.stories.js +19 -0
  237. package/dist/collection/components/flip-spinner/flip-spinner.css +90 -0
  238. package/dist/collection/components/flip-spinner/flip-spinner.js +66 -0
  239. package/dist/collection/components/flip-spinner/flip-spinner.stories.js +19 -0
  240. package/dist/collection/components/flip-stack/flip-stack.css +82 -0
  241. package/dist/collection/components/flip-stack/flip-stack.js +153 -0
  242. package/dist/collection/components/flip-stack/flip-stack.stories.js +26 -0
  243. package/dist/collection/components/flip-switch/flip-switch.css +100 -0
  244. package/dist/collection/components/flip-switch/flip-switch.js +245 -0
  245. package/dist/collection/components/flip-switch/flip-switch.stories.js +22 -0
  246. package/dist/collection/components/flip-tag/flip-tag.css +70 -0
  247. package/dist/collection/components/flip-tag/flip-tag.js +124 -0
  248. package/dist/collection/components/flip-tag/flip-tag.stories.js +20 -0
  249. package/dist/collection/components/flip-theme-provider/flip-theme-provider.css +3 -0
  250. package/dist/collection/components/flip-theme-provider/flip-theme-provider.js +253 -0
  251. package/dist/collection/components/flip-theme-provider/flip-theme-provider.stories.js +80 -0
  252. package/dist/collection/components/flip-thumbnail/flip-thumbnail.css +61 -0
  253. package/dist/collection/components/flip-thumbnail/flip-thumbnail.js +102 -0
  254. package/dist/collection/components/flip-thumbnail/flip-thumbnail.stories.js +20 -0
  255. package/dist/collection/components/flip-toast/flip-toast.css +64 -0
  256. package/dist/collection/components/flip-toast/flip-toast.js +198 -0
  257. package/dist/collection/components/flip-toast/flip-toast.stories.js +30 -0
  258. package/dist/collection/components/flip-toast-provider/flip-toast-provider.js +157 -0
  259. package/dist/collection/components/flip-toast-provider/flip-toast-provider.stories.js +58 -0
  260. package/dist/collection/components/flip-tooltip/flip-tooltip.css +42 -0
  261. package/dist/collection/components/flip-tooltip/flip-tooltip.js +212 -0
  262. package/dist/collection/components/flip-tooltip/flip-tooltip.stories.js +33 -0
  263. package/dist/collection/components/flip-visually-hidden/flip-visually-hidden.css +13 -0
  264. package/dist/collection/components/flip-visually-hidden/flip-visually-hidden.js +15 -0
  265. package/dist/collection/components/flip-visually-hidden/flip-visually-hidden.stories.js +17 -0
  266. package/dist/collection/index.js +1 -0
  267. package/dist/collection/utils.js +39 -0
  268. package/dist/components/flip-action-list-item.d.ts +11 -0
  269. package/dist/components/flip-action-list-item.js +47 -0
  270. package/dist/components/flip-action-list-section.d.ts +11 -0
  271. package/dist/components/flip-action-list-section.js +36 -0
  272. package/dist/components/flip-action-list.d.ts +11 -0
  273. package/dist/components/flip-action-list.js +67 -0
  274. package/dist/components/flip-avatar-group.d.ts +11 -0
  275. package/dist/components/flip-avatar-group.js +41 -0
  276. package/dist/components/flip-avatar.d.ts +11 -0
  277. package/dist/components/flip-avatar.js +111 -0
  278. package/dist/components/flip-badge.d.ts +11 -0
  279. package/dist/components/flip-badge.js +47 -0
  280. package/dist/components/flip-banner.d.ts +11 -0
  281. package/dist/components/flip-banner.js +76 -0
  282. package/dist/components/flip-button-group.d.ts +11 -0
  283. package/dist/components/flip-button-group.js +6 -0
  284. package/dist/components/flip-button-group2.js +46 -0
  285. package/dist/components/flip-button.d.ts +11 -0
  286. package/dist/components/flip-button.js +6 -0
  287. package/dist/components/flip-button2.js +67 -0
  288. package/dist/components/flip-checkbox.d.ts +11 -0
  289. package/dist/components/flip-checkbox.js +79 -0
  290. package/dist/components/flip-chip.d.ts +11 -0
  291. package/dist/components/flip-chip.js +71 -0
  292. package/dist/components/flip-description-list-item.d.ts +11 -0
  293. package/dist/components/flip-description-list-item.js +36 -0
  294. package/dist/components/flip-description-list.d.ts +11 -0
  295. package/dist/components/flip-description-list.js +34 -0
  296. package/dist/components/flip-dialog.d.ts +11 -0
  297. package/dist/components/flip-dialog.js +518 -0
  298. package/dist/components/flip-icon-add-photo.d.ts +11 -0
  299. package/dist/components/flip-icon-add-photo.js +37 -0
  300. package/dist/components/flip-icon-add.d.ts +11 -0
  301. package/dist/components/flip-icon-add.js +37 -0
  302. package/dist/components/flip-icon-admin-panel-settings.d.ts +11 -0
  303. package/dist/components/flip-icon-admin-panel-settings.js +37 -0
  304. package/dist/components/flip-icon-arrow-back.d.ts +11 -0
  305. package/dist/components/flip-icon-arrow-back.js +37 -0
  306. package/dist/components/flip-icon-arrow-forward.d.ts +11 -0
  307. package/dist/components/flip-icon-arrow-forward.js +37 -0
  308. package/dist/components/flip-icon-arrow-right-small.d.ts +11 -0
  309. package/dist/components/flip-icon-arrow-right-small.js +37 -0
  310. package/dist/components/flip-icon-attachment.d.ts +11 -0
  311. package/dist/components/flip-icon-attachment.js +37 -0
  312. package/dist/components/flip-icon-cancel.d.ts +11 -0
  313. package/dist/components/flip-icon-cancel.js +6 -0
  314. package/dist/components/flip-icon-cancel2.js +34 -0
  315. package/dist/components/flip-icon-chat-bubble.d.ts +11 -0
  316. package/dist/components/flip-icon-chat-bubble.js +37 -0
  317. package/dist/components/flip-icon-check-circle.d.ts +11 -0
  318. package/dist/components/flip-icon-check-circle.js +37 -0
  319. package/dist/components/flip-icon-check-small.d.ts +11 -0
  320. package/dist/components/flip-icon-check-small.js +37 -0
  321. package/dist/components/flip-icon-check-strong.d.ts +11 -0
  322. package/dist/components/flip-icon-check-strong.js +6 -0
  323. package/dist/components/flip-icon-check-strong2.js +34 -0
  324. package/dist/components/flip-icon-check.d.ts +11 -0
  325. package/dist/components/flip-icon-check.js +37 -0
  326. package/dist/components/flip-icon-chevron-left.d.ts +11 -0
  327. package/dist/components/flip-icon-chevron-left.js +37 -0
  328. package/dist/components/flip-icon-chevron-right.d.ts +11 -0
  329. package/dist/components/flip-icon-chevron-right.js +37 -0
  330. package/dist/components/flip-icon-close-small.d.ts +11 -0
  331. package/dist/components/flip-icon-close-small.js +37 -0
  332. package/dist/components/flip-icon-close.d.ts +11 -0
  333. package/dist/components/flip-icon-close.js +6 -0
  334. package/dist/components/flip-icon-close2.js +34 -0
  335. package/dist/components/flip-icon-comment.d.ts +11 -0
  336. package/dist/components/flip-icon-comment.js +37 -0
  337. package/dist/components/flip-icon-copy.d.ts +11 -0
  338. package/dist/components/flip-icon-copy.js +37 -0
  339. package/dist/components/flip-icon-date-range.d.ts +11 -0
  340. package/dist/components/flip-icon-date-range.js +37 -0
  341. package/dist/components/flip-icon-delete.d.ts +11 -0
  342. package/dist/components/flip-icon-delete.js +37 -0
  343. package/dist/components/flip-icon-description.d.ts +11 -0
  344. package/dist/components/flip-icon-description.js +37 -0
  345. package/dist/components/flip-icon-download.d.ts +11 -0
  346. package/dist/components/flip-icon-download.js +37 -0
  347. package/dist/components/flip-icon-edit.d.ts +11 -0
  348. package/dist/components/flip-icon-edit.js +37 -0
  349. package/dist/components/flip-icon-emoji-mood.d.ts +11 -0
  350. package/dist/components/flip-icon-emoji-mood.js +37 -0
  351. package/dist/components/flip-icon-emoji-satisfied.d.ts +11 -0
  352. package/dist/components/flip-icon-emoji-satisfied.js +37 -0
  353. package/dist/components/flip-icon-error.d.ts +11 -0
  354. package/dist/components/flip-icon-error.js +6 -0
  355. package/dist/components/flip-icon-error2.js +34 -0
  356. package/dist/components/flip-icon-expand-less.d.ts +11 -0
  357. package/dist/components/flip-icon-expand-less.js +37 -0
  358. package/dist/components/flip-icon-expand-more.d.ts +11 -0
  359. package/dist/components/flip-icon-expand-more.js +37 -0
  360. package/dist/components/flip-icon-file.d.ts +11 -0
  361. package/dist/components/flip-icon-file.js +37 -0
  362. package/dist/components/flip-icon-folder-shared.d.ts +11 -0
  363. package/dist/components/flip-icon-folder-shared.js +37 -0
  364. package/dist/components/flip-icon-group-assign.d.ts +11 -0
  365. package/dist/components/flip-icon-group-assign.js +37 -0
  366. package/dist/components/flip-icon-groups-custom.d.ts +11 -0
  367. package/dist/components/flip-icon-groups-custom.js +37 -0
  368. package/dist/components/flip-icon-groups.d.ts +11 -0
  369. package/dist/components/flip-icon-groups.js +37 -0
  370. package/dist/components/flip-icon-image.d.ts +11 -0
  371. package/dist/components/flip-icon-image.js +37 -0
  372. package/dist/components/flip-icon-info.d.ts +11 -0
  373. package/dist/components/flip-icon-info.js +37 -0
  374. package/dist/components/flip-icon-inventory.d.ts +11 -0
  375. package/dist/components/flip-icon-inventory.js +37 -0
  376. package/dist/components/flip-icon-like.d.ts +11 -0
  377. package/dist/components/flip-icon-like.js +37 -0
  378. package/dist/components/flip-icon-link.d.ts +11 -0
  379. package/dist/components/flip-icon-link.js +37 -0
  380. package/dist/components/flip-icon-lock.d.ts +11 -0
  381. package/dist/components/flip-icon-lock.js +37 -0
  382. package/dist/components/flip-icon-logout.d.ts +11 -0
  383. package/dist/components/flip-icon-logout.js +37 -0
  384. package/dist/components/flip-icon-mail.d.ts +11 -0
  385. package/dist/components/flip-icon-mail.js +37 -0
  386. package/dist/components/flip-icon-manage-accounts.d.ts +11 -0
  387. package/dist/components/flip-icon-manage-accounts.js +37 -0
  388. package/dist/components/flip-icon-mention.d.ts +11 -0
  389. package/dist/components/flip-icon-mention.js +37 -0
  390. package/dist/components/flip-icon-message.d.ts +11 -0
  391. package/dist/components/flip-icon-message.js +37 -0
  392. package/dist/components/flip-icon-more-horizontal.d.ts +11 -0
  393. package/dist/components/flip-icon-more-horizontal.js +37 -0
  394. package/dist/components/flip-icon-more-vertikal.d.ts +11 -0
  395. package/dist/components/flip-icon-more-vertikal.js +37 -0
  396. package/dist/components/flip-icon-notifications-active.d.ts +11 -0
  397. package/dist/components/flip-icon-notifications-active.js +37 -0
  398. package/dist/components/flip-icon-notifications-off.d.ts +11 -0
  399. package/dist/components/flip-icon-notifications-off.js +37 -0
  400. package/dist/components/flip-icon-notifications.d.ts +11 -0
  401. package/dist/components/flip-icon-notifications.js +37 -0
  402. package/dist/components/flip-icon-people-alt.d.ts +11 -0
  403. package/dist/components/flip-icon-people-alt.js +37 -0
  404. package/dist/components/flip-icon-person-off.d.ts +11 -0
  405. package/dist/components/flip-icon-person-off.js +37 -0
  406. package/dist/components/flip-icon-person.d.ts +11 -0
  407. package/dist/components/flip-icon-person.js +6 -0
  408. package/dist/components/flip-icon-person2.js +34 -0
  409. package/dist/components/flip-icon-phone.d.ts +11 -0
  410. package/dist/components/flip-icon-phone.js +37 -0
  411. package/dist/components/flip-icon-poll.d.ts +11 -0
  412. package/dist/components/flip-icon-poll.js +37 -0
  413. package/dist/components/flip-icon-recieved.d.ts +11 -0
  414. package/dist/components/flip-icon-recieved.js +37 -0
  415. package/dist/components/flip-icon-search-strong.d.ts +11 -0
  416. package/dist/components/flip-icon-search-strong.js +37 -0
  417. package/dist/components/flip-icon-search.d.ts +11 -0
  418. package/dist/components/flip-icon-search.js +6 -0
  419. package/dist/components/flip-icon-search2.js +34 -0
  420. package/dist/components/flip-icon-send.d.ts +11 -0
  421. package/dist/components/flip-icon-send.js +37 -0
  422. package/dist/components/flip-icon-settings.d.ts +11 -0
  423. package/dist/components/flip-icon-settings.js +37 -0
  424. package/dist/components/flip-icon-time-filled.d.ts +11 -0
  425. package/dist/components/flip-icon-time-filled.js +37 -0
  426. package/dist/components/flip-icon-time-outlined.d.ts +11 -0
  427. package/dist/components/flip-icon-time-outlined.js +37 -0
  428. package/dist/components/flip-icon-today.d.ts +11 -0
  429. package/dist/components/flip-icon-today.js +37 -0
  430. package/dist/components/flip-icon-user-assign.d.ts +11 -0
  431. package/dist/components/flip-icon-user-assign.js +37 -0
  432. package/dist/components/flip-icon-video-camera.d.ts +11 -0
  433. package/dist/components/flip-icon-video-camera.js +37 -0
  434. package/dist/components/flip-icon-visibility-off.d.ts +11 -0
  435. package/dist/components/flip-icon-visibility-off.js +37 -0
  436. package/dist/components/flip-icon-visibility.d.ts +11 -0
  437. package/dist/components/flip-icon-visibility.js +37 -0
  438. package/dist/components/flip-icon-warning.d.ts +11 -0
  439. package/dist/components/flip-icon-warning.js +37 -0
  440. package/dist/components/flip-inline-error.d.ts +11 -0
  441. package/dist/components/flip-inline-error.js +47 -0
  442. package/dist/components/flip-link.d.ts +11 -0
  443. package/dist/components/flip-link.js +38 -0
  444. package/dist/components/flip-popover.d.ts +11 -0
  445. package/dist/components/flip-popover.js +1580 -0
  446. package/dist/components/flip-radio-group.d.ts +11 -0
  447. package/dist/components/flip-radio-group.js +67 -0
  448. package/dist/components/flip-radio.d.ts +11 -0
  449. package/dist/components/flip-radio.js +66 -0
  450. package/dist/components/flip-search.d.ts +11 -0
  451. package/dist/components/flip-search.js +82 -0
  452. package/dist/components/flip-spinner.d.ts +11 -0
  453. package/dist/components/flip-spinner.js +46 -0
  454. package/dist/components/flip-stack.d.ts +11 -0
  455. package/dist/components/flip-stack.js +6 -0
  456. package/dist/components/flip-stack2.js +47 -0
  457. package/dist/components/flip-switch.d.ts +11 -0
  458. package/dist/components/flip-switch.js +120 -0
  459. package/dist/components/flip-tag.d.ts +11 -0
  460. package/dist/components/flip-tag.js +54 -0
  461. package/dist/components/flip-theme-provider.d.ts +11 -0
  462. package/dist/components/flip-theme-provider.js +387 -0
  463. package/dist/components/flip-thumbnail.d.ts +11 -0
  464. package/dist/components/flip-thumbnail.js +43 -0
  465. package/dist/components/flip-toast-provider.d.ts +11 -0
  466. package/dist/components/flip-toast-provider.js +93 -0
  467. package/dist/components/flip-toast.d.ts +11 -0
  468. package/dist/components/flip-toast.js +6 -0
  469. package/dist/components/flip-toast2.js +78 -0
  470. package/dist/components/flip-tooltip.d.ts +11 -0
  471. package/dist/components/flip-tooltip.js +143 -0
  472. package/dist/components/flip-visually-hidden.d.ts +11 -0
  473. package/dist/components/flip-visually-hidden.js +6 -0
  474. package/dist/components/flip-visually-hidden2.js +31 -0
  475. package/dist/components/index.d.ts +119 -0
  476. package/dist/components/index.js +99 -0
  477. package/dist/components/index2.js +70 -0
  478. package/dist/components/utils.js +26 -0
  479. package/dist/esm/flip-action-list-item.entry.js +20 -0
  480. package/dist/esm/flip-action-list-section.entry.js +15 -0
  481. package/dist/esm/flip-action-list.entry.js +48 -0
  482. package/dist/esm/flip-avatar-group.entry.js +20 -0
  483. package/dist/esm/flip-avatar.entry.js +74 -0
  484. package/dist/esm/flip-badge.entry.js +22 -0
  485. package/dist/esm/flip-banner.entry.js +43 -0
  486. package/dist/esm/flip-button_2.entry.js +54 -0
  487. package/dist/esm/flip-checkbox.entry.js +40 -0
  488. package/dist/esm/flip-chip.entry.js +46 -0
  489. package/dist/esm/flip-description-list-item.entry.js +15 -0
  490. package/dist/esm/flip-description-list.entry.js +15 -0
  491. package/dist/esm/flip-dialog.entry.js +472 -0
  492. package/dist/esm/flip-icon-add-photo.entry.js +16 -0
  493. package/dist/esm/flip-icon-add.entry.js +16 -0
  494. package/dist/esm/flip-icon-admin-panel-settings.entry.js +16 -0
  495. package/dist/esm/flip-icon-arrow-back.entry.js +16 -0
  496. package/dist/esm/flip-icon-arrow-forward.entry.js +16 -0
  497. package/dist/esm/flip-icon-arrow-right-small.entry.js +16 -0
  498. package/dist/esm/flip-icon-attachment.entry.js +16 -0
  499. package/dist/esm/flip-icon-cancel_2.entry.js +29 -0
  500. package/dist/esm/flip-icon-chat-bubble.entry.js +16 -0
  501. package/dist/esm/flip-icon-check-circle.entry.js +16 -0
  502. package/dist/esm/flip-icon-check-small.entry.js +16 -0
  503. package/dist/esm/flip-icon-check-strong.entry.js +16 -0
  504. package/dist/esm/flip-icon-check.entry.js +16 -0
  505. package/dist/esm/flip-icon-chevron-left.entry.js +16 -0
  506. package/dist/esm/flip-icon-chevron-right.entry.js +16 -0
  507. package/dist/esm/flip-icon-close-small.entry.js +16 -0
  508. package/dist/esm/flip-icon-close.entry.js +16 -0
  509. package/dist/esm/flip-icon-comment.entry.js +16 -0
  510. package/dist/esm/flip-icon-copy.entry.js +16 -0
  511. package/dist/esm/flip-icon-date-range.entry.js +16 -0
  512. package/dist/esm/flip-icon-delete.entry.js +16 -0
  513. package/dist/esm/flip-icon-description.entry.js +16 -0
  514. package/dist/esm/flip-icon-download.entry.js +16 -0
  515. package/dist/esm/flip-icon-edit.entry.js +16 -0
  516. package/dist/esm/flip-icon-emoji-mood.entry.js +16 -0
  517. package/dist/esm/flip-icon-emoji-satisfied.entry.js +16 -0
  518. package/dist/esm/flip-icon-error.entry.js +16 -0
  519. package/dist/esm/flip-icon-expand-less.entry.js +16 -0
  520. package/dist/esm/flip-icon-expand-more.entry.js +16 -0
  521. package/dist/esm/flip-icon-file.entry.js +16 -0
  522. package/dist/esm/flip-icon-folder-shared.entry.js +16 -0
  523. package/dist/esm/flip-icon-group-assign.entry.js +16 -0
  524. package/dist/esm/flip-icon-groups-custom.entry.js +16 -0
  525. package/dist/esm/flip-icon-groups.entry.js +16 -0
  526. package/dist/esm/flip-icon-image.entry.js +16 -0
  527. package/dist/esm/flip-icon-info.entry.js +16 -0
  528. package/dist/esm/flip-icon-inventory.entry.js +16 -0
  529. package/dist/esm/flip-icon-like.entry.js +16 -0
  530. package/dist/esm/flip-icon-link.entry.js +16 -0
  531. package/dist/esm/flip-icon-lock.entry.js +16 -0
  532. package/dist/esm/flip-icon-logout.entry.js +16 -0
  533. package/dist/esm/flip-icon-mail.entry.js +16 -0
  534. package/dist/esm/flip-icon-manage-accounts.entry.js +16 -0
  535. package/dist/esm/flip-icon-mention.entry.js +16 -0
  536. package/dist/esm/flip-icon-message.entry.js +16 -0
  537. package/dist/esm/flip-icon-more-horizontal.entry.js +16 -0
  538. package/dist/esm/flip-icon-more-vertikal.entry.js +16 -0
  539. package/dist/esm/flip-icon-notifications-active.entry.js +16 -0
  540. package/dist/esm/flip-icon-notifications-off.entry.js +16 -0
  541. package/dist/esm/flip-icon-notifications.entry.js +16 -0
  542. package/dist/esm/flip-icon-people-alt.entry.js +16 -0
  543. package/dist/esm/flip-icon-person-off.entry.js +16 -0
  544. package/dist/esm/flip-icon-person.entry.js +16 -0
  545. package/dist/esm/flip-icon-phone.entry.js +16 -0
  546. package/dist/esm/flip-icon-poll.entry.js +16 -0
  547. package/dist/esm/flip-icon-recieved.entry.js +16 -0
  548. package/dist/esm/flip-icon-search-strong.entry.js +16 -0
  549. package/dist/esm/flip-icon-send.entry.js +16 -0
  550. package/dist/esm/flip-icon-settings.entry.js +16 -0
  551. package/dist/esm/flip-icon-time-filled.entry.js +16 -0
  552. package/dist/esm/flip-icon-time-outlined.entry.js +16 -0
  553. package/dist/esm/flip-icon-today.entry.js +16 -0
  554. package/dist/esm/flip-icon-user-assign.entry.js +16 -0
  555. package/dist/esm/flip-icon-video-camera.entry.js +16 -0
  556. package/dist/esm/flip-icon-visibility-off.entry.js +16 -0
  557. package/dist/esm/flip-icon-visibility.entry.js +16 -0
  558. package/dist/esm/flip-icon-warning.entry.js +16 -0
  559. package/dist/esm/flip-inline-error.entry.js +19 -0
  560. package/dist/esm/flip-link.entry.js +15 -0
  561. package/dist/esm/flip-popover.entry.js +1554 -0
  562. package/dist/esm/flip-radio-group.entry.js +47 -0
  563. package/dist/esm/flip-radio.entry.js +33 -0
  564. package/dist/esm/flip-search.entry.js +43 -0
  565. package/dist/esm/flip-spinner.entry.js +18 -0
  566. package/dist/esm/flip-stack.entry.js +24 -0
  567. package/dist/esm/flip-switch.entry.js +88 -0
  568. package/dist/esm/flip-tag.entry.js +24 -0
  569. package/dist/esm/flip-theme-provider.entry.js +363 -0
  570. package/dist/esm/flip-thumbnail.entry.js +19 -0
  571. package/dist/esm/flip-toast-provider.entry.js +50 -0
  572. package/dist/esm/flip-toast.entry.js +48 -0
  573. package/dist/esm/flip-tooltip.entry.js +118 -0
  574. package/dist/esm/flip-visually-hidden.entry.js +15 -0
  575. package/dist/esm/index-36517fab.js +1774 -0
  576. package/dist/esm/index-3c78bcaf.js +70 -0
  577. package/dist/esm/index.js +1 -0
  578. package/dist/esm/loader.js +17 -0
  579. package/dist/esm/polyfills/core-js.js +11 -0
  580. package/dist/esm/polyfills/css-shim.js +1 -0
  581. package/dist/esm/polyfills/dom.js +79 -0
  582. package/dist/esm/polyfills/es5-html-element.js +1 -0
  583. package/dist/esm/polyfills/index.js +34 -0
  584. package/dist/esm/polyfills/system.js +6 -0
  585. package/dist/esm/swirl-components.js +17 -0
  586. package/dist/esm/utils-03e3261c.js +26 -0
  587. package/dist/index.cjs.js +1 -0
  588. package/dist/index.js +1 -0
  589. package/dist/swirl-components/index.esm.js +0 -0
  590. package/dist/swirl-components/p-01857435.entry.js +1 -0
  591. package/dist/swirl-components/p-0a9f3ada.entry.js +1 -0
  592. package/dist/swirl-components/p-0d619d62.entry.js +1 -0
  593. package/dist/swirl-components/p-0de885c6.entry.js +1 -0
  594. package/dist/swirl-components/p-0fa4c4cf.entry.js +1 -0
  595. package/dist/swirl-components/p-0fa6b98f.entry.js +1 -0
  596. package/dist/swirl-components/p-102db76d.entry.js +1 -0
  597. package/dist/swirl-components/p-1126e372.entry.js +1 -0
  598. package/dist/swirl-components/p-126ead5f.entry.js +1 -0
  599. package/dist/swirl-components/p-1419666f.entry.js +1 -0
  600. package/dist/swirl-components/p-1429e47a.entry.js +1 -0
  601. package/dist/swirl-components/p-1609dbf3.entry.js +1 -0
  602. package/dist/swirl-components/p-17073db0.entry.js +1 -0
  603. package/dist/swirl-components/p-1853aaf0.entry.js +1 -0
  604. package/dist/swirl-components/p-18965b40.entry.js +1 -0
  605. package/dist/swirl-components/p-18a51976.entry.js +1 -0
  606. package/dist/swirl-components/p-1a9f0bc1.entry.js +1 -0
  607. package/dist/swirl-components/p-1bd3e7c0.entry.js +1 -0
  608. package/dist/swirl-components/p-1c2e8e09.entry.js +1 -0
  609. package/dist/swirl-components/p-1c8b77fe.entry.js +1 -0
  610. package/dist/swirl-components/p-213191cb.entry.js +1 -0
  611. package/dist/swirl-components/p-24d112d7.entry.js +1 -0
  612. package/dist/swirl-components/p-30011711.entry.js +1 -0
  613. package/dist/swirl-components/p-30048d87.js +1 -0
  614. package/dist/swirl-components/p-3234f836.entry.js +1 -0
  615. package/dist/swirl-components/p-32a5e2a7.entry.js +1 -0
  616. package/dist/swirl-components/p-37cfdd8f.js +7 -0
  617. package/dist/swirl-components/p-37d96123.entry.js +1 -0
  618. package/dist/swirl-components/p-3d59d365.entry.js +1 -0
  619. package/dist/swirl-components/p-432dd5f1.entry.js +1 -0
  620. package/dist/swirl-components/p-437842a2.entry.js +1 -0
  621. package/dist/swirl-components/p-453db2cf.entry.js +1 -0
  622. package/dist/swirl-components/p-468d0e9b.entry.js +1 -0
  623. package/dist/swirl-components/p-46f638cf.entry.js +1 -0
  624. package/dist/swirl-components/p-47a9a9cb.entry.js +1 -0
  625. package/dist/swirl-components/p-4f3d8490.entry.js +1 -0
  626. package/dist/swirl-components/p-545caf4a.entry.js +1 -0
  627. package/dist/swirl-components/p-54b9e1b5.entry.js +1 -0
  628. package/dist/swirl-components/p-55aaf1d3.entry.js +1 -0
  629. package/dist/swirl-components/p-56bdede5.entry.js +1 -0
  630. package/dist/swirl-components/p-5a13d6fe.entry.js +1 -0
  631. package/dist/swirl-components/p-5d27a69e.entry.js +1 -0
  632. package/dist/swirl-components/p-63e5b5d9.entry.js +1 -0
  633. package/dist/swirl-components/p-67aaf094.entry.js +1 -0
  634. package/dist/swirl-components/p-67deba9e.entry.js +1 -0
  635. package/dist/swirl-components/p-6a6de48d.entry.js +1 -0
  636. package/dist/swirl-components/p-6a9a0e08.entry.js +1 -0
  637. package/dist/swirl-components/p-6b840e3d.entry.js +1 -0
  638. package/dist/swirl-components/p-6b957569.entry.js +1 -0
  639. package/dist/swirl-components/p-70b255b3.entry.js +1 -0
  640. package/dist/swirl-components/p-7a6b480c.entry.js +1 -0
  641. package/dist/swirl-components/p-828cc4a3.entry.js +1 -0
  642. package/dist/swirl-components/p-8423a1b5.entry.js +1 -0
  643. package/dist/swirl-components/p-8bf1ad8a.entry.js +1 -0
  644. package/dist/swirl-components/p-94d933b3.entry.js +1 -0
  645. package/dist/swirl-components/p-95bd2274.entry.js +1 -0
  646. package/dist/swirl-components/p-9b4a9856.entry.js +1 -0
  647. package/dist/swirl-components/p-9c12d1eb.entry.js +1 -0
  648. package/dist/swirl-components/p-9d07fb5a.entry.js +1 -0
  649. package/dist/swirl-components/p-a1946e3b.entry.js +1 -0
  650. package/dist/swirl-components/p-a203be4a.entry.js +1 -0
  651. package/dist/swirl-components/p-a605b3d1.entry.js +1 -0
  652. package/dist/swirl-components/p-a6fb93df.entry.js +1 -0
  653. package/dist/swirl-components/p-a71261bc.entry.js +1 -0
  654. package/dist/swirl-components/p-aada2b77.entry.js +1 -0
  655. package/dist/swirl-components/p-ad434623.entry.js +1 -0
  656. package/dist/swirl-components/p-adbcf0ae.entry.js +1 -0
  657. package/dist/swirl-components/p-ae504b3e.entry.js +1 -0
  658. package/dist/swirl-components/p-b16d4978.entry.js +1 -0
  659. package/dist/swirl-components/p-b4540264.entry.js +1 -0
  660. package/dist/swirl-components/p-b5cd4041.entry.js +1 -0
  661. package/dist/swirl-components/p-b624ff23.entry.js +1 -0
  662. package/dist/swirl-components/p-b64b6dc5.entry.js +1 -0
  663. package/dist/swirl-components/p-c35a6610.entry.js +1 -0
  664. package/dist/swirl-components/p-c5200740.entry.js +1 -0
  665. package/dist/swirl-components/p-cac72e30.entry.js +1 -0
  666. package/dist/swirl-components/p-cc50d7a7.entry.js +1 -0
  667. package/dist/swirl-components/p-cf8be27a.entry.js +1 -0
  668. package/dist/swirl-components/p-cfef8bdb.entry.js +1 -0
  669. package/dist/swirl-components/p-d1c899ad.entry.js +1 -0
  670. package/dist/swirl-components/p-d3999b94.entry.js +2 -0
  671. package/dist/swirl-components/p-d41e3a37.entry.js +1 -0
  672. package/dist/swirl-components/p-db229451.entry.js +1 -0
  673. package/dist/swirl-components/p-db902aec.entry.js +1 -0
  674. package/dist/swirl-components/p-e0513b73.entry.js +1 -0
  675. package/dist/swirl-components/p-e12fbb2d.js +2 -0
  676. package/dist/swirl-components/p-e1554c48.entry.js +1 -0
  677. package/dist/swirl-components/p-e384bd2c.entry.js +1 -0
  678. package/dist/swirl-components/p-e4df2658.entry.js +1 -0
  679. package/dist/swirl-components/p-e65d2d81.entry.js +1 -0
  680. package/dist/swirl-components/p-e89c7891.entry.js +1 -0
  681. package/dist/swirl-components/p-f1774da0.entry.js +1 -0
  682. package/dist/swirl-components/p-f45709c0.entry.js +1 -0
  683. package/dist/swirl-components/p-f59098f7.entry.js +1 -0
  684. package/dist/swirl-components/p-f6e77552.entry.js +1 -0
  685. package/dist/swirl-components/p-f8273972.entry.js +1 -0
  686. package/dist/swirl-components/p-fa7cc450.entry.js +1 -0
  687. package/dist/swirl-components/p-fb19d8b9.entry.js +1 -0
  688. package/dist/swirl-components/p-ff0868ae.entry.js +1 -0
  689. package/dist/swirl-components/swirl-components.css +2 -0
  690. package/dist/swirl-components/swirl-components.esm.js +1 -0
  691. package/dist/types/components/flip-action-list/flip-action-list.d.ts +13 -0
  692. package/dist/types/components/flip-action-list/flip-action-list.stories.d.ts +13 -0
  693. package/dist/types/components/flip-action-list-item/flip-action-list-item.d.ts +12 -0
  694. package/dist/types/components/flip-action-list-item/flip-action-list-item.stories.d.ts +14 -0
  695. package/dist/types/components/flip-action-list-section/flip-action-list-section.d.ts +7 -0
  696. package/dist/types/components/flip-action-list-section/flip-action-list-section.stories.d.ts +13 -0
  697. package/dist/types/components/flip-avatar/flip-avatar.d.ts +23 -0
  698. package/dist/types/components/flip-avatar/flip-avatar.stories.d.ts +32 -0
  699. package/dist/types/components/flip-avatar-group/flip-avatar-group.d.ts +7 -0
  700. package/dist/types/components/flip-avatar-group/flip-avatar-group.stories.d.ts +23 -0
  701. package/dist/types/components/flip-badge/flip-badge.d.ts +11 -0
  702. package/dist/types/components/flip-badge/flip-badge.stories.d.ts +23 -0
  703. package/dist/types/components/flip-banner/flip-banner.d.ts +18 -0
  704. package/dist/types/components/flip-banner/flip-banner.stories.d.ts +13 -0
  705. package/dist/types/components/flip-button/flip-button.d.ts +24 -0
  706. package/dist/types/components/flip-button/flip-button.stories.d.ts +23 -0
  707. package/dist/types/components/flip-button-group/flip-button-group.d.ts +8 -0
  708. package/dist/types/components/flip-button-group/flip-button-group.stories.d.ts +13 -0
  709. package/dist/types/components/flip-checkbox/flip-checkbox.d.ts +15 -0
  710. package/dist/types/components/flip-checkbox/flip-checkbox.stories.d.ts +19 -0
  711. package/dist/types/components/flip-chip/flip-chip.d.ts +14 -0
  712. package/dist/types/components/flip-chip/flip-chip.stories.d.ts +31 -0
  713. package/dist/types/components/flip-description-list/flip-description-list.d.ts +6 -0
  714. package/dist/types/components/flip-description-list/flip-description-list.stories.d.ts +13 -0
  715. package/dist/types/components/flip-description-list-item/flip-description-list-item.d.ts +7 -0
  716. package/dist/types/components/flip-description-list-item/flip-description-list-item.stories.d.ts +13 -0
  717. package/dist/types/components/flip-dialog/flip-dialog.d.ts +33 -0
  718. package/dist/types/components/flip-dialog/flip-dialog.stories.d.ts +16 -0
  719. package/dist/types/components/flip-icon/flip-icon.stories.d.ts +16 -0
  720. package/dist/types/components/flip-icon/flip-icon.types.d.ts +1 -0
  721. package/dist/types/components/flip-icon/icons/flip-icon-add-photo.d.ts +5 -0
  722. package/dist/types/components/flip-icon/icons/flip-icon-add.d.ts +5 -0
  723. package/dist/types/components/flip-icon/icons/flip-icon-admin-panel-settings.d.ts +5 -0
  724. package/dist/types/components/flip-icon/icons/flip-icon-arrow-back.d.ts +5 -0
  725. package/dist/types/components/flip-icon/icons/flip-icon-arrow-forward.d.ts +5 -0
  726. package/dist/types/components/flip-icon/icons/flip-icon-arrow-right-small.d.ts +5 -0
  727. package/dist/types/components/flip-icon/icons/flip-icon-attachment.d.ts +5 -0
  728. package/dist/types/components/flip-icon/icons/flip-icon-cancel.d.ts +5 -0
  729. package/dist/types/components/flip-icon/icons/flip-icon-chat-bubble.d.ts +5 -0
  730. package/dist/types/components/flip-icon/icons/flip-icon-check-circle.d.ts +5 -0
  731. package/dist/types/components/flip-icon/icons/flip-icon-check-small.d.ts +5 -0
  732. package/dist/types/components/flip-icon/icons/flip-icon-check-strong.d.ts +5 -0
  733. package/dist/types/components/flip-icon/icons/flip-icon-check.d.ts +5 -0
  734. package/dist/types/components/flip-icon/icons/flip-icon-chevron-left.d.ts +5 -0
  735. package/dist/types/components/flip-icon/icons/flip-icon-chevron-right.d.ts +5 -0
  736. package/dist/types/components/flip-icon/icons/flip-icon-close-small.d.ts +5 -0
  737. package/dist/types/components/flip-icon/icons/flip-icon-close.d.ts +5 -0
  738. package/dist/types/components/flip-icon/icons/flip-icon-comment.d.ts +5 -0
  739. package/dist/types/components/flip-icon/icons/flip-icon-copy.d.ts +5 -0
  740. package/dist/types/components/flip-icon/icons/flip-icon-date-range.d.ts +5 -0
  741. package/dist/types/components/flip-icon/icons/flip-icon-delete.d.ts +5 -0
  742. package/dist/types/components/flip-icon/icons/flip-icon-description.d.ts +5 -0
  743. package/dist/types/components/flip-icon/icons/flip-icon-download.d.ts +5 -0
  744. package/dist/types/components/flip-icon/icons/flip-icon-edit.d.ts +5 -0
  745. package/dist/types/components/flip-icon/icons/flip-icon-emoji-mood.d.ts +5 -0
  746. package/dist/types/components/flip-icon/icons/flip-icon-emoji-satisfied.d.ts +5 -0
  747. package/dist/types/components/flip-icon/icons/flip-icon-error.d.ts +5 -0
  748. package/dist/types/components/flip-icon/icons/flip-icon-expand-less.d.ts +5 -0
  749. package/dist/types/components/flip-icon/icons/flip-icon-expand-more.d.ts +5 -0
  750. package/dist/types/components/flip-icon/icons/flip-icon-file.d.ts +5 -0
  751. package/dist/types/components/flip-icon/icons/flip-icon-folder-shared.d.ts +5 -0
  752. package/dist/types/components/flip-icon/icons/flip-icon-group-assign.d.ts +5 -0
  753. package/dist/types/components/flip-icon/icons/flip-icon-groups-custom.d.ts +5 -0
  754. package/dist/types/components/flip-icon/icons/flip-icon-groups.d.ts +5 -0
  755. package/dist/types/components/flip-icon/icons/flip-icon-image.d.ts +5 -0
  756. package/dist/types/components/flip-icon/icons/flip-icon-info.d.ts +5 -0
  757. package/dist/types/components/flip-icon/icons/flip-icon-inventory.d.ts +5 -0
  758. package/dist/types/components/flip-icon/icons/flip-icon-like.d.ts +5 -0
  759. package/dist/types/components/flip-icon/icons/flip-icon-link.d.ts +5 -0
  760. package/dist/types/components/flip-icon/icons/flip-icon-lock.d.ts +5 -0
  761. package/dist/types/components/flip-icon/icons/flip-icon-logout.d.ts +5 -0
  762. package/dist/types/components/flip-icon/icons/flip-icon-mail.d.ts +5 -0
  763. package/dist/types/components/flip-icon/icons/flip-icon-manage-accounts.d.ts +5 -0
  764. package/dist/types/components/flip-icon/icons/flip-icon-mention.d.ts +5 -0
  765. package/dist/types/components/flip-icon/icons/flip-icon-message.d.ts +5 -0
  766. package/dist/types/components/flip-icon/icons/flip-icon-more-horizontal.d.ts +5 -0
  767. package/dist/types/components/flip-icon/icons/flip-icon-more-vertikal.d.ts +5 -0
  768. package/dist/types/components/flip-icon/icons/flip-icon-notifications-active.d.ts +5 -0
  769. package/dist/types/components/flip-icon/icons/flip-icon-notifications-off.d.ts +5 -0
  770. package/dist/types/components/flip-icon/icons/flip-icon-notifications.d.ts +5 -0
  771. package/dist/types/components/flip-icon/icons/flip-icon-people-alt.d.ts +5 -0
  772. package/dist/types/components/flip-icon/icons/flip-icon-person-off.d.ts +5 -0
  773. package/dist/types/components/flip-icon/icons/flip-icon-person.d.ts +5 -0
  774. package/dist/types/components/flip-icon/icons/flip-icon-phone.d.ts +5 -0
  775. package/dist/types/components/flip-icon/icons/flip-icon-poll.d.ts +5 -0
  776. package/dist/types/components/flip-icon/icons/flip-icon-recieved.d.ts +5 -0
  777. package/dist/types/components/flip-icon/icons/flip-icon-search-strong.d.ts +5 -0
  778. package/dist/types/components/flip-icon/icons/flip-icon-search.d.ts +5 -0
  779. package/dist/types/components/flip-icon/icons/flip-icon-send.d.ts +5 -0
  780. package/dist/types/components/flip-icon/icons/flip-icon-settings.d.ts +5 -0
  781. package/dist/types/components/flip-icon/icons/flip-icon-time-filled.d.ts +5 -0
  782. package/dist/types/components/flip-icon/icons/flip-icon-time-outlined.d.ts +5 -0
  783. package/dist/types/components/flip-icon/icons/flip-icon-today.d.ts +5 -0
  784. package/dist/types/components/flip-icon/icons/flip-icon-user-assign.d.ts +5 -0
  785. package/dist/types/components/flip-icon/icons/flip-icon-video-camera.d.ts +5 -0
  786. package/dist/types/components/flip-icon/icons/flip-icon-visibility-off.d.ts +5 -0
  787. package/dist/types/components/flip-icon/icons/flip-icon-visibility.d.ts +5 -0
  788. package/dist/types/components/flip-icon/icons/flip-icon-warning.d.ts +5 -0
  789. package/dist/types/components/flip-inline-error/flip-inline-error.d.ts +6 -0
  790. package/dist/types/components/flip-inline-error/flip-inline-error.stories.d.ts +13 -0
  791. package/dist/types/components/flip-link/flip-link.d.ts +7 -0
  792. package/dist/types/components/flip-link/flip-link.stories.d.ts +13 -0
  793. package/dist/types/components/flip-popover/flip-popover.d.ts +33 -0
  794. package/dist/types/components/flip-popover/flip-popover.stories.d.ts +21 -0
  795. package/dist/types/components/flip-radio/flip-radio.d.ts +15 -0
  796. package/dist/types/components/flip-radio/flip-radio.stories.d.ts +13 -0
  797. package/dist/types/components/flip-radio-group/flip-radio-group.d.ts +11 -0
  798. package/dist/types/components/flip-radio-group/flip-radio-group.stories.d.ts +13 -0
  799. package/dist/types/components/flip-search/flip-search.d.ts +21 -0
  800. package/dist/types/components/flip-search/flip-search.stories.d.ts +13 -0
  801. package/dist/types/components/flip-spinner/flip-spinner.d.ts +6 -0
  802. package/dist/types/components/flip-spinner/flip-spinner.stories.d.ts +13 -0
  803. package/dist/types/components/flip-stack/flip-stack.d.ts +13 -0
  804. package/dist/types/components/flip-stack/flip-stack.stories.d.ts +13 -0
  805. package/dist/types/components/flip-switch/flip-switch.d.ts +23 -0
  806. package/dist/types/components/flip-switch/flip-switch.stories.d.ts +13 -0
  807. package/dist/types/components/flip-tag/flip-tag.d.ts +11 -0
  808. package/dist/types/components/flip-tag/flip-tag.stories.d.ts +13 -0
  809. package/dist/types/components/flip-theme-provider/flip-theme-provider.d.ts +51 -0
  810. package/dist/types/components/flip-theme-provider/flip-theme-provider.stories.d.ts +17 -0
  811. package/dist/types/components/flip-thumbnail/flip-thumbnail.d.ts +9 -0
  812. package/dist/types/components/flip-thumbnail/flip-thumbnail.stories.d.ts +13 -0
  813. package/dist/types/components/flip-toast/flip-toast.d.ts +19 -0
  814. package/dist/types/components/flip-toast/flip-toast.stories.d.ts +23 -0
  815. package/dist/types/components/flip-toast-provider/flip-toast-provider.d.ts +43 -0
  816. package/dist/types/components/flip-toast-provider/flip-toast-provider.stories.d.ts +16 -0
  817. package/dist/types/components/flip-tooltip/flip-tooltip.d.ts +28 -0
  818. package/dist/types/components/flip-tooltip/flip-tooltip.stories.d.ts +14 -0
  819. package/dist/types/components/flip-visually-hidden/flip-visually-hidden.d.ts +3 -0
  820. package/dist/types/components/flip-visually-hidden/flip-visually-hidden.stories.d.ts +13 -0
  821. package/dist/types/components.d.ts +1809 -0
  822. package/dist/types/index.d.ts +1 -0
  823. package/dist/types/stencil-public-runtime.d.ts +1565 -0
  824. package/dist/types/utils.d.ts +4 -0
  825. package/loader/cdn.js +3 -0
  826. package/loader/index.cjs.js +3 -0
  827. package/loader/index.d.ts +12 -0
  828. package/loader/index.es2017.js +3 -0
  829. package/loader/index.js +4 -0
  830. package/loader/package.json +10 -0
  831. package/package.json +82 -0
  832. package/vscode-data.json +2041 -0
@@ -0,0 +1,1774 @@
1
+ const NAMESPACE = 'swirl-components';
2
+
3
+ let scopeId;
4
+ let contentRef;
5
+ let hostTagName;
6
+ let useNativeShadowDom = false;
7
+ let checkSlotFallbackVisibility = false;
8
+ let checkSlotRelocate = false;
9
+ let isSvgMode = false;
10
+ let queuePending = false;
11
+ const win = typeof window !== 'undefined' ? window : {};
12
+ const doc = win.document || { head: {} };
13
+ const plt = {
14
+ $flags$: 0,
15
+ $resourcesUrl$: '',
16
+ jmp: (h) => h(),
17
+ raf: (h) => requestAnimationFrame(h),
18
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
19
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
20
+ ce: (eventName, opts) => new CustomEvent(eventName, opts),
21
+ };
22
+ const promiseResolve = (v) => Promise.resolve(v);
23
+ const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
24
+ try {
25
+ new CSSStyleSheet();
26
+ return typeof new CSSStyleSheet().replaceSync === 'function';
27
+ }
28
+ catch (e) { }
29
+ return false;
30
+ })()
31
+ ;
32
+ const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
33
+ if (listeners) {
34
+ listeners.map(([flags, name, method]) => {
35
+ const target = getHostListenerTarget(elm, flags) ;
36
+ const handler = hostListenerProxy(hostRef, method);
37
+ const opts = hostListenerOpts(flags);
38
+ plt.ael(target, name, handler, opts);
39
+ (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
40
+ });
41
+ }
42
+ };
43
+ const hostListenerProxy = (hostRef, methodName) => (ev) => {
44
+ try {
45
+ {
46
+ if (hostRef.$flags$ & 256 /* isListenReady */) {
47
+ // instance is ready, let's call it's member method for this event
48
+ hostRef.$lazyInstance$[methodName](ev);
49
+ }
50
+ else {
51
+ (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
52
+ }
53
+ }
54
+ }
55
+ catch (e) {
56
+ consoleError(e);
57
+ }
58
+ };
59
+ const getHostListenerTarget = (elm, flags) => {
60
+ if (flags & 8 /* TargetWindow */)
61
+ return win;
62
+ return elm;
63
+ };
64
+ // prettier-ignore
65
+ const hostListenerOpts = (flags) => (flags & 2 /* Capture */) !== 0;
66
+ const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
67
+ const XLINK_NS = 'http://www.w3.org/1999/xlink';
68
+ const createTime = (fnName, tagName = '') => {
69
+ {
70
+ return () => {
71
+ return;
72
+ };
73
+ }
74
+ };
75
+ const uniqueTime = (key, measureText) => {
76
+ {
77
+ return () => {
78
+ return;
79
+ };
80
+ }
81
+ };
82
+ const rootAppliedStyles = new WeakMap();
83
+ const registerStyle = (scopeId, cssText, allowCS) => {
84
+ let style = styles.get(scopeId);
85
+ if (supportsConstructableStylesheets && allowCS) {
86
+ style = (style || new CSSStyleSheet());
87
+ if (typeof style === 'string') {
88
+ style = cssText;
89
+ }
90
+ else {
91
+ style.replaceSync(cssText);
92
+ }
93
+ }
94
+ else {
95
+ style = cssText;
96
+ }
97
+ styles.set(scopeId, style);
98
+ };
99
+ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
100
+ let scopeId = getScopeId(cmpMeta);
101
+ const style = styles.get(scopeId);
102
+ // if an element is NOT connected then getRootNode() will return the wrong root node
103
+ // so the fallback is to always use the document for the root node in those cases
104
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
105
+ if (style) {
106
+ if (typeof style === 'string') {
107
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
108
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
109
+ let styleElm;
110
+ if (!appliedStyles) {
111
+ rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
112
+ }
113
+ if (!appliedStyles.has(scopeId)) {
114
+ {
115
+ {
116
+ styleElm = doc.createElement('style');
117
+ styleElm.innerHTML = style;
118
+ }
119
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
120
+ }
121
+ if (appliedStyles) {
122
+ appliedStyles.add(scopeId);
123
+ }
124
+ }
125
+ }
126
+ else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
127
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
128
+ }
129
+ }
130
+ return scopeId;
131
+ };
132
+ const attachStyles = (hostRef) => {
133
+ const cmpMeta = hostRef.$cmpMeta$;
134
+ const elm = hostRef.$hostElement$;
135
+ const flags = cmpMeta.$flags$;
136
+ const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
137
+ const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
138
+ if (flags & 10 /* needsScopedEncapsulation */) {
139
+ // only required when we're NOT using native shadow dom (slot)
140
+ // or this browser doesn't support native shadow dom
141
+ // and this host element was NOT created with SSR
142
+ // let's pick out the inner content for slot projection
143
+ // create a node to represent where the original
144
+ // content was first placed, which is useful later on
145
+ // DOM WRITE!!
146
+ elm['s-sc'] = scopeId;
147
+ elm.classList.add(scopeId + '-h');
148
+ if (flags & 2 /* scopedCssEncapsulation */) {
149
+ elm.classList.add(scopeId + '-s');
150
+ }
151
+ }
152
+ endAttachStyles();
153
+ };
154
+ const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
155
+ /**
156
+ * Default style mode id
157
+ */
158
+ /**
159
+ * Reusable empty obj/array
160
+ * Don't add values to these!!
161
+ */
162
+ const EMPTY_OBJ = {};
163
+ /**
164
+ * Namespaces
165
+ */
166
+ const SVG_NS = 'http://www.w3.org/2000/svg';
167
+ const HTML_NS = 'http://www.w3.org/1999/xhtml';
168
+ const isDef = (v) => v != null;
169
+ const isComplexType = (o) => {
170
+ // https://jsperf.com/typeof-fn-object/5
171
+ o = typeof o;
172
+ return o === 'object' || o === 'function';
173
+ };
174
+ /**
175
+ * Production h() function based on Preact by
176
+ * Jason Miller (@developit)
177
+ * Licensed under the MIT License
178
+ * https://github.com/developit/preact/blob/master/LICENSE
179
+ *
180
+ * Modified for Stencil's compiler and vdom
181
+ */
182
+ // const stack: any[] = [];
183
+ // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
184
+ // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
185
+ const h = (nodeName, vnodeData, ...children) => {
186
+ let child = null;
187
+ let key = null;
188
+ let slotName = null;
189
+ let simple = false;
190
+ let lastSimple = false;
191
+ const vNodeChildren = [];
192
+ const walk = (c) => {
193
+ for (let i = 0; i < c.length; i++) {
194
+ child = c[i];
195
+ if (Array.isArray(child)) {
196
+ walk(child);
197
+ }
198
+ else if (child != null && typeof child !== 'boolean') {
199
+ if ((simple = typeof nodeName !== 'function' && !isComplexType(child))) {
200
+ child = String(child);
201
+ }
202
+ if (simple && lastSimple) {
203
+ // If the previous child was simple (string), we merge both
204
+ vNodeChildren[vNodeChildren.length - 1].$text$ += child;
205
+ }
206
+ else {
207
+ // Append a new vNode, if it's text, we create a text vNode
208
+ vNodeChildren.push(simple ? newVNode(null, child) : child);
209
+ }
210
+ lastSimple = simple;
211
+ }
212
+ }
213
+ };
214
+ walk(children);
215
+ if (vnodeData) {
216
+ // normalize class / classname attributes
217
+ if (vnodeData.key) {
218
+ key = vnodeData.key;
219
+ }
220
+ if (vnodeData.name) {
221
+ slotName = vnodeData.name;
222
+ }
223
+ {
224
+ const classData = vnodeData.className || vnodeData.class;
225
+ if (classData) {
226
+ vnodeData.class =
227
+ typeof classData !== 'object'
228
+ ? classData
229
+ : Object.keys(classData)
230
+ .filter((k) => classData[k])
231
+ .join(' ');
232
+ }
233
+ }
234
+ }
235
+ if (typeof nodeName === 'function') {
236
+ // nodeName is a functional component
237
+ return nodeName(vnodeData === null ? {} : vnodeData, vNodeChildren, vdomFnUtils);
238
+ }
239
+ const vnode = newVNode(nodeName, null);
240
+ vnode.$attrs$ = vnodeData;
241
+ if (vNodeChildren.length > 0) {
242
+ vnode.$children$ = vNodeChildren;
243
+ }
244
+ {
245
+ vnode.$key$ = key;
246
+ }
247
+ {
248
+ vnode.$name$ = slotName;
249
+ }
250
+ return vnode;
251
+ };
252
+ const newVNode = (tag, text) => {
253
+ const vnode = {
254
+ $flags$: 0,
255
+ $tag$: tag,
256
+ $text$: text,
257
+ $elm$: null,
258
+ $children$: null,
259
+ };
260
+ {
261
+ vnode.$attrs$ = null;
262
+ }
263
+ {
264
+ vnode.$key$ = null;
265
+ }
266
+ {
267
+ vnode.$name$ = null;
268
+ }
269
+ return vnode;
270
+ };
271
+ const Host = {};
272
+ const isHost = (node) => node && node.$tag$ === Host;
273
+ const vdomFnUtils = {
274
+ forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
275
+ map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate),
276
+ };
277
+ const convertToPublic = (node) => ({
278
+ vattrs: node.$attrs$,
279
+ vchildren: node.$children$,
280
+ vkey: node.$key$,
281
+ vname: node.$name$,
282
+ vtag: node.$tag$,
283
+ vtext: node.$text$,
284
+ });
285
+ const convertToPrivate = (node) => {
286
+ if (typeof node.vtag === 'function') {
287
+ const vnodeData = Object.assign({}, node.vattrs);
288
+ if (node.vkey) {
289
+ vnodeData.key = node.vkey;
290
+ }
291
+ if (node.vname) {
292
+ vnodeData.name = node.vname;
293
+ }
294
+ return h(node.vtag, vnodeData, ...(node.vchildren || []));
295
+ }
296
+ const vnode = newVNode(node.vtag, node.vtext);
297
+ vnode.$attrs$ = node.vattrs;
298
+ vnode.$children$ = node.vchildren;
299
+ vnode.$key$ = node.vkey;
300
+ vnode.$name$ = node.vname;
301
+ return vnode;
302
+ };
303
+ /**
304
+ * Production setAccessor() function based on Preact by
305
+ * Jason Miller (@developit)
306
+ * Licensed under the MIT License
307
+ * https://github.com/developit/preact/blob/master/LICENSE
308
+ *
309
+ * Modified for Stencil's compiler and vdom
310
+ */
311
+ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
312
+ if (oldValue !== newValue) {
313
+ let isProp = isMemberInElement(elm, memberName);
314
+ let ln = memberName.toLowerCase();
315
+ if (memberName === 'class') {
316
+ const classList = elm.classList;
317
+ const oldClasses = parseClassList(oldValue);
318
+ const newClasses = parseClassList(newValue);
319
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
320
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
321
+ }
322
+ else if (memberName === 'style') {
323
+ // update style attribute, css properties and values
324
+ {
325
+ for (const prop in oldValue) {
326
+ if (!newValue || newValue[prop] == null) {
327
+ if (prop.includes('-')) {
328
+ elm.style.removeProperty(prop);
329
+ }
330
+ else {
331
+ elm.style[prop] = '';
332
+ }
333
+ }
334
+ }
335
+ }
336
+ for (const prop in newValue) {
337
+ if (!oldValue || newValue[prop] !== oldValue[prop]) {
338
+ if (prop.includes('-')) {
339
+ elm.style.setProperty(prop, newValue[prop]);
340
+ }
341
+ else {
342
+ elm.style[prop] = newValue[prop];
343
+ }
344
+ }
345
+ }
346
+ }
347
+ else if (memberName === 'key')
348
+ ;
349
+ else if (memberName === 'ref') {
350
+ // minifier will clean this up
351
+ if (newValue) {
352
+ newValue(elm);
353
+ }
354
+ }
355
+ else if ((!isProp ) &&
356
+ memberName[0] === 'o' &&
357
+ memberName[1] === 'n') {
358
+ // Event Handlers
359
+ // so if the member name starts with "on" and the 3rd characters is
360
+ // a capital letter, and it's not already a member on the element,
361
+ // then we're assuming it's an event listener
362
+ if (memberName[2] === '-') {
363
+ // on- prefixed events
364
+ // allows to be explicit about the dom event to listen without any magic
365
+ // under the hood:
366
+ // <my-cmp on-click> // listens for "click"
367
+ // <my-cmp on-Click> // listens for "Click"
368
+ // <my-cmp on-ionChange> // listens for "ionChange"
369
+ // <my-cmp on-EVENTS> // listens for "EVENTS"
370
+ memberName = memberName.slice(3);
371
+ }
372
+ else if (isMemberInElement(win, ln)) {
373
+ // standard event
374
+ // the JSX attribute could have been "onMouseOver" and the
375
+ // member name "onmouseover" is on the window's prototype
376
+ // so let's add the listener "mouseover", which is all lowercased
377
+ memberName = ln.slice(2);
378
+ }
379
+ else {
380
+ // custom event
381
+ // the JSX attribute could have been "onMyCustomEvent"
382
+ // so let's trim off the "on" prefix and lowercase the first character
383
+ // and add the listener "myCustomEvent"
384
+ // except for the first character, we keep the event name case
385
+ memberName = ln[2] + memberName.slice(3);
386
+ }
387
+ if (oldValue) {
388
+ plt.rel(elm, memberName, oldValue, false);
389
+ }
390
+ if (newValue) {
391
+ plt.ael(elm, memberName, newValue, false);
392
+ }
393
+ }
394
+ else {
395
+ // Set property if it exists and it's not a SVG
396
+ const isComplex = isComplexType(newValue);
397
+ if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
398
+ try {
399
+ if (!elm.tagName.includes('-')) {
400
+ const n = newValue == null ? '' : newValue;
401
+ // Workaround for Safari, moving the <input> caret when re-assigning the same valued
402
+ if (memberName === 'list') {
403
+ isProp = false;
404
+ }
405
+ else if (oldValue == null || elm[memberName] != n) {
406
+ elm[memberName] = n;
407
+ }
408
+ }
409
+ else {
410
+ elm[memberName] = newValue;
411
+ }
412
+ }
413
+ catch (e) { }
414
+ }
415
+ /**
416
+ * Need to manually update attribute if:
417
+ * - memberName is not an attribute
418
+ * - if we are rendering the host element in order to reflect attribute
419
+ * - if it's a SVG, since properties might not work in <svg>
420
+ * - if the newValue is null/undefined or 'false'.
421
+ */
422
+ let xlink = false;
423
+ {
424
+ if (ln !== (ln = ln.replace(/^xlink\:?/, ''))) {
425
+ memberName = ln;
426
+ xlink = true;
427
+ }
428
+ }
429
+ if (newValue == null || newValue === false) {
430
+ if (newValue !== false || elm.getAttribute(memberName) === '') {
431
+ if (xlink) {
432
+ elm.removeAttributeNS(XLINK_NS, memberName);
433
+ }
434
+ else {
435
+ elm.removeAttribute(memberName);
436
+ }
437
+ }
438
+ }
439
+ else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
440
+ newValue = newValue === true ? '' : newValue;
441
+ if (xlink) {
442
+ elm.setAttributeNS(XLINK_NS, memberName, newValue);
443
+ }
444
+ else {
445
+ elm.setAttribute(memberName, newValue);
446
+ }
447
+ }
448
+ }
449
+ }
450
+ };
451
+ const parseClassListRegex = /\s/;
452
+ const parseClassList = (value) => (!value ? [] : value.split(parseClassListRegex));
453
+ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
454
+ // if the element passed in is a shadow root, which is a document fragment
455
+ // then we want to be adding attrs/props to the shadow root's "host" element
456
+ // if it's not a shadow root, then we add attrs/props to the same element
457
+ const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host
458
+ ? newVnode.$elm$.host
459
+ : newVnode.$elm$;
460
+ const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
461
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
462
+ {
463
+ // remove attributes no longer present on the vnode by setting them to undefined
464
+ for (memberName in oldVnodeAttrs) {
465
+ if (!(memberName in newVnodeAttrs)) {
466
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], undefined, isSvgMode, newVnode.$flags$);
467
+ }
468
+ }
469
+ }
470
+ // add new & update changed attributes
471
+ for (memberName in newVnodeAttrs) {
472
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
473
+ }
474
+ };
475
+ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
476
+ // tslint:disable-next-line: prefer-const
477
+ const newVNode = newParentVNode.$children$[childIndex];
478
+ let i = 0;
479
+ let elm;
480
+ let childNode;
481
+ let oldVNode;
482
+ if (!useNativeShadowDom) {
483
+ // remember for later we need to check to relocate nodes
484
+ checkSlotRelocate = true;
485
+ if (newVNode.$tag$ === 'slot') {
486
+ if (scopeId) {
487
+ // scoped css needs to add its scoped id to the parent element
488
+ parentElm.classList.add(scopeId + '-s');
489
+ }
490
+ newVNode.$flags$ |= newVNode.$children$
491
+ ? // slot element has fallback content
492
+ 2 /* isSlotFallback */
493
+ : // slot element does not have fallback content
494
+ 1 /* isSlotReference */;
495
+ }
496
+ }
497
+ if (newVNode.$text$ !== null) {
498
+ // create text node
499
+ elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
500
+ }
501
+ else if (newVNode.$flags$ & 1 /* isSlotReference */) {
502
+ // create a slot reference node
503
+ elm = newVNode.$elm$ =
504
+ doc.createTextNode('');
505
+ }
506
+ else {
507
+ if (!isSvgMode) {
508
+ isSvgMode = newVNode.$tag$ === 'svg';
509
+ }
510
+ // create element
511
+ elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* isSlotFallback */
512
+ ? 'slot-fb'
513
+ : newVNode.$tag$)
514
+ );
515
+ if (isSvgMode && newVNode.$tag$ === 'foreignObject') {
516
+ isSvgMode = false;
517
+ }
518
+ // add css classes, attrs, props, listeners, etc.
519
+ {
520
+ updateElement(null, newVNode, isSvgMode);
521
+ }
522
+ if (isDef(scopeId) && elm['s-si'] !== scopeId) {
523
+ // if there is a scopeId and this is the initial render
524
+ // then let's add the scopeId as a css class
525
+ elm.classList.add((elm['s-si'] = scopeId));
526
+ }
527
+ if (newVNode.$children$) {
528
+ for (i = 0; i < newVNode.$children$.length; ++i) {
529
+ // create the node
530
+ childNode = createElm(oldParentVNode, newVNode, i, elm);
531
+ // return node could have been null
532
+ if (childNode) {
533
+ // append our new node
534
+ elm.appendChild(childNode);
535
+ }
536
+ }
537
+ }
538
+ {
539
+ if (newVNode.$tag$ === 'svg') {
540
+ // Only reset the SVG context when we're exiting <svg> element
541
+ isSvgMode = false;
542
+ }
543
+ else if (elm.tagName === 'foreignObject') {
544
+ // Reenter SVG context when we're exiting <foreignObject> element
545
+ isSvgMode = true;
546
+ }
547
+ }
548
+ }
549
+ {
550
+ elm['s-hn'] = hostTagName;
551
+ if (newVNode.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
552
+ // remember the content reference comment
553
+ elm['s-sr'] = true;
554
+ // remember the content reference comment
555
+ elm['s-cr'] = contentRef;
556
+ // remember the slot name, or empty string for default slot
557
+ elm['s-sn'] = newVNode.$name$ || '';
558
+ // check if we've got an old vnode for this slot
559
+ oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
560
+ if (oldVNode && oldVNode.$tag$ === newVNode.$tag$ && oldParentVNode.$elm$) {
561
+ // we've got an old slot vnode and the wrapper is being replaced
562
+ // so let's move the old slot content back to it's original location
563
+ putBackInOriginalLocation(oldParentVNode.$elm$, false);
564
+ }
565
+ }
566
+ }
567
+ return elm;
568
+ };
569
+ const putBackInOriginalLocation = (parentElm, recursive) => {
570
+ plt.$flags$ |= 1 /* isTmpDisconnected */;
571
+ const oldSlotChildNodes = parentElm.childNodes;
572
+ for (let i = oldSlotChildNodes.length - 1; i >= 0; i--) {
573
+ const childNode = oldSlotChildNodes[i];
574
+ if (childNode['s-hn'] !== hostTagName && childNode['s-ol']) {
575
+ // // this child node in the old element is from another component
576
+ // // remove this node from the old slot's parent
577
+ // childNode.remove();
578
+ // and relocate it back to it's original location
579
+ parentReferenceNode(childNode).insertBefore(childNode, referenceNode(childNode));
580
+ // remove the old original location comment entirely
581
+ // later on the patch function will know what to do
582
+ // and move this to the correct spot in need be
583
+ childNode['s-ol'].remove();
584
+ childNode['s-ol'] = undefined;
585
+ checkSlotRelocate = true;
586
+ }
587
+ if (recursive) {
588
+ putBackInOriginalLocation(childNode, recursive);
589
+ }
590
+ }
591
+ plt.$flags$ &= ~1 /* isTmpDisconnected */;
592
+ };
593
+ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
594
+ let containerElm = ((parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm);
595
+ let childNode;
596
+ if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
597
+ containerElm = containerElm.shadowRoot;
598
+ }
599
+ for (; startIdx <= endIdx; ++startIdx) {
600
+ if (vnodes[startIdx]) {
601
+ childNode = createElm(null, parentVNode, startIdx, parentElm);
602
+ if (childNode) {
603
+ vnodes[startIdx].$elm$ = childNode;
604
+ containerElm.insertBefore(childNode, referenceNode(before) );
605
+ }
606
+ }
607
+ }
608
+ };
609
+ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
610
+ for (; startIdx <= endIdx; ++startIdx) {
611
+ if ((vnode = vnodes[startIdx])) {
612
+ elm = vnode.$elm$;
613
+ callNodeRefs(vnode);
614
+ {
615
+ // we're removing this element
616
+ // so it's possible we need to show slot fallback content now
617
+ checkSlotFallbackVisibility = true;
618
+ if (elm['s-ol']) {
619
+ // remove the original location comment
620
+ elm['s-ol'].remove();
621
+ }
622
+ else {
623
+ // it's possible that child nodes of the node
624
+ // that's being removed are slot nodes
625
+ putBackInOriginalLocation(elm, true);
626
+ }
627
+ }
628
+ // remove the vnode's element from the dom
629
+ elm.remove();
630
+ }
631
+ }
632
+ };
633
+ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
634
+ let oldStartIdx = 0;
635
+ let newStartIdx = 0;
636
+ let idxInOld = 0;
637
+ let i = 0;
638
+ let oldEndIdx = oldCh.length - 1;
639
+ let oldStartVnode = oldCh[0];
640
+ let oldEndVnode = oldCh[oldEndIdx];
641
+ let newEndIdx = newCh.length - 1;
642
+ let newStartVnode = newCh[0];
643
+ let newEndVnode = newCh[newEndIdx];
644
+ let node;
645
+ let elmToMove;
646
+ while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
647
+ if (oldStartVnode == null) {
648
+ // Vnode might have been moved left
649
+ oldStartVnode = oldCh[++oldStartIdx];
650
+ }
651
+ else if (oldEndVnode == null) {
652
+ oldEndVnode = oldCh[--oldEndIdx];
653
+ }
654
+ else if (newStartVnode == null) {
655
+ newStartVnode = newCh[++newStartIdx];
656
+ }
657
+ else if (newEndVnode == null) {
658
+ newEndVnode = newCh[--newEndIdx];
659
+ }
660
+ else if (isSameVnode(oldStartVnode, newStartVnode)) {
661
+ patch(oldStartVnode, newStartVnode);
662
+ oldStartVnode = oldCh[++oldStartIdx];
663
+ newStartVnode = newCh[++newStartIdx];
664
+ }
665
+ else if (isSameVnode(oldEndVnode, newEndVnode)) {
666
+ patch(oldEndVnode, newEndVnode);
667
+ oldEndVnode = oldCh[--oldEndIdx];
668
+ newEndVnode = newCh[--newEndIdx];
669
+ }
670
+ else if (isSameVnode(oldStartVnode, newEndVnode)) {
671
+ // Vnode moved right
672
+ if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
673
+ putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
674
+ }
675
+ patch(oldStartVnode, newEndVnode);
676
+ parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
677
+ oldStartVnode = oldCh[++oldStartIdx];
678
+ newEndVnode = newCh[--newEndIdx];
679
+ }
680
+ else if (isSameVnode(oldEndVnode, newStartVnode)) {
681
+ // Vnode moved left
682
+ if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
683
+ putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
684
+ }
685
+ patch(oldEndVnode, newStartVnode);
686
+ parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
687
+ oldEndVnode = oldCh[--oldEndIdx];
688
+ newStartVnode = newCh[++newStartIdx];
689
+ }
690
+ else {
691
+ // createKeyToOldIdx
692
+ idxInOld = -1;
693
+ {
694
+ for (i = oldStartIdx; i <= oldEndIdx; ++i) {
695
+ if (oldCh[i] && oldCh[i].$key$ !== null && oldCh[i].$key$ === newStartVnode.$key$) {
696
+ idxInOld = i;
697
+ break;
698
+ }
699
+ }
700
+ }
701
+ if (idxInOld >= 0) {
702
+ elmToMove = oldCh[idxInOld];
703
+ if (elmToMove.$tag$ !== newStartVnode.$tag$) {
704
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld, parentElm);
705
+ }
706
+ else {
707
+ patch(elmToMove, newStartVnode);
708
+ oldCh[idxInOld] = undefined;
709
+ node = elmToMove.$elm$;
710
+ }
711
+ newStartVnode = newCh[++newStartIdx];
712
+ }
713
+ else {
714
+ // new element
715
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx, parentElm);
716
+ newStartVnode = newCh[++newStartIdx];
717
+ }
718
+ if (node) {
719
+ {
720
+ parentReferenceNode(oldStartVnode.$elm$).insertBefore(node, referenceNode(oldStartVnode.$elm$));
721
+ }
722
+ }
723
+ }
724
+ }
725
+ if (oldStartIdx > oldEndIdx) {
726
+ addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
727
+ }
728
+ else if (newStartIdx > newEndIdx) {
729
+ removeVnodes(oldCh, oldStartIdx, oldEndIdx);
730
+ }
731
+ };
732
+ const isSameVnode = (vnode1, vnode2) => {
733
+ // compare if two vnode to see if they're "technically" the same
734
+ // need to have the same element tag, and same key to be the same
735
+ if (vnode1.$tag$ === vnode2.$tag$) {
736
+ if (vnode1.$tag$ === 'slot') {
737
+ return vnode1.$name$ === vnode2.$name$;
738
+ }
739
+ {
740
+ return vnode1.$key$ === vnode2.$key$;
741
+ }
742
+ }
743
+ return false;
744
+ };
745
+ const referenceNode = (node) => {
746
+ // this node was relocated to a new location in the dom
747
+ // because of some other component's slot
748
+ // but we still have an html comment in place of where
749
+ // it's original location was according to it's original vdom
750
+ return (node && node['s-ol']) || node;
751
+ };
752
+ const parentReferenceNode = (node) => (node['s-ol'] ? node['s-ol'] : node).parentNode;
753
+ const patch = (oldVNode, newVNode) => {
754
+ const elm = (newVNode.$elm$ = oldVNode.$elm$);
755
+ const oldChildren = oldVNode.$children$;
756
+ const newChildren = newVNode.$children$;
757
+ const tag = newVNode.$tag$;
758
+ const text = newVNode.$text$;
759
+ let defaultHolder;
760
+ if (text === null) {
761
+ {
762
+ // test if we're rendering an svg element, or still rendering nodes inside of one
763
+ // only add this to the when the compiler sees we're using an svg somewhere
764
+ isSvgMode = tag === 'svg' ? true : tag === 'foreignObject' ? false : isSvgMode;
765
+ }
766
+ // element node
767
+ {
768
+ if (tag === 'slot')
769
+ ;
770
+ else {
771
+ // either this is the first render of an element OR it's an update
772
+ // AND we already know it's possible it could have changed
773
+ // this updates the element's css classes, attrs, props, listeners, etc.
774
+ updateElement(oldVNode, newVNode, isSvgMode);
775
+ }
776
+ }
777
+ if (oldChildren !== null && newChildren !== null) {
778
+ // looks like there's child vnodes for both the old and new vnodes
779
+ updateChildren(elm, oldChildren, newVNode, newChildren);
780
+ }
781
+ else if (newChildren !== null) {
782
+ // no old child vnodes, but there are new child vnodes to add
783
+ if (oldVNode.$text$ !== null) {
784
+ // the old vnode was text, so be sure to clear it out
785
+ elm.textContent = '';
786
+ }
787
+ // add the new vnode children
788
+ addVnodes(elm, null, newVNode, newChildren, 0, newChildren.length - 1);
789
+ }
790
+ else if (oldChildren !== null) {
791
+ // no new child vnodes, but there are old child vnodes to remove
792
+ removeVnodes(oldChildren, 0, oldChildren.length - 1);
793
+ }
794
+ if (isSvgMode && tag === 'svg') {
795
+ isSvgMode = false;
796
+ }
797
+ }
798
+ else if ((defaultHolder = elm['s-cr'])) {
799
+ // this element has slotted content
800
+ defaultHolder.parentNode.textContent = text;
801
+ }
802
+ else if (oldVNode.$text$ !== text) {
803
+ // update the text content for the text only vnode
804
+ // and also only if the text is different than before
805
+ elm.data = text;
806
+ }
807
+ };
808
+ const updateFallbackSlotVisibility = (elm) => {
809
+ // tslint:disable-next-line: prefer-const
810
+ const childNodes = elm.childNodes;
811
+ let childNode;
812
+ let i;
813
+ let ilen;
814
+ let j;
815
+ let slotNameAttr;
816
+ let nodeType;
817
+ for (i = 0, ilen = childNodes.length; i < ilen; i++) {
818
+ childNode = childNodes[i];
819
+ if (childNode.nodeType === 1 /* ElementNode */) {
820
+ if (childNode['s-sr']) {
821
+ // this is a slot fallback node
822
+ // get the slot name for this slot reference node
823
+ slotNameAttr = childNode['s-sn'];
824
+ // by default always show a fallback slot node
825
+ // then hide it if there are other slots in the light dom
826
+ childNode.hidden = false;
827
+ for (j = 0; j < ilen; j++) {
828
+ nodeType = childNodes[j].nodeType;
829
+ if (childNodes[j]['s-hn'] !== childNode['s-hn'] || slotNameAttr !== '') {
830
+ // this sibling node is from a different component OR is a named fallback slot node
831
+ if (nodeType === 1 /* ElementNode */ && slotNameAttr === childNodes[j].getAttribute('slot')) {
832
+ childNode.hidden = true;
833
+ break;
834
+ }
835
+ }
836
+ else {
837
+ // this is a default fallback slot node
838
+ // any element or text node (with content)
839
+ // should hide the default fallback slot node
840
+ if (nodeType === 1 /* ElementNode */ ||
841
+ (nodeType === 3 /* TextNode */ && childNodes[j].textContent.trim() !== '')) {
842
+ childNode.hidden = true;
843
+ break;
844
+ }
845
+ }
846
+ }
847
+ }
848
+ // keep drilling down
849
+ updateFallbackSlotVisibility(childNode);
850
+ }
851
+ }
852
+ };
853
+ const relocateNodes = [];
854
+ const relocateSlotContent = (elm) => {
855
+ // tslint:disable-next-line: prefer-const
856
+ let childNode;
857
+ let node;
858
+ let hostContentNodes;
859
+ let slotNameAttr;
860
+ let relocateNodeData;
861
+ let j;
862
+ let i = 0;
863
+ const childNodes = elm.childNodes;
864
+ const ilen = childNodes.length;
865
+ for (; i < ilen; i++) {
866
+ childNode = childNodes[i];
867
+ if (childNode['s-sr'] && (node = childNode['s-cr']) && node.parentNode) {
868
+ // first got the content reference comment node
869
+ // then we got it's parent, which is where all the host content is in now
870
+ hostContentNodes = node.parentNode.childNodes;
871
+ slotNameAttr = childNode['s-sn'];
872
+ for (j = hostContentNodes.length - 1; j >= 0; j--) {
873
+ node = hostContentNodes[j];
874
+ if (!node['s-cn'] && !node['s-nr'] && node['s-hn'] !== childNode['s-hn']) {
875
+ // let's do some relocating to its new home
876
+ // but never relocate a content reference node
877
+ // that is suppose to always represent the original content location
878
+ if (isNodeLocatedInSlot(node, slotNameAttr)) {
879
+ // it's possible we've already decided to relocate this node
880
+ relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
881
+ // made some changes to slots
882
+ // let's make sure we also double check
883
+ // fallbacks are correctly hidden or shown
884
+ checkSlotFallbackVisibility = true;
885
+ node['s-sn'] = node['s-sn'] || slotNameAttr;
886
+ if (relocateNodeData) {
887
+ // previously we never found a slot home for this node
888
+ // but turns out we did, so let's remember it now
889
+ relocateNodeData.$slotRefNode$ = childNode;
890
+ }
891
+ else {
892
+ // add to our list of nodes to relocate
893
+ relocateNodes.push({
894
+ $slotRefNode$: childNode,
895
+ $nodeToRelocate$: node,
896
+ });
897
+ }
898
+ if (node['s-sr']) {
899
+ relocateNodes.map((relocateNode) => {
900
+ if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node['s-sn'])) {
901
+ relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
902
+ if (relocateNodeData && !relocateNode.$slotRefNode$) {
903
+ relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
904
+ }
905
+ }
906
+ });
907
+ }
908
+ }
909
+ else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
910
+ // so far this element does not have a slot home, not setting slotRefNode on purpose
911
+ // if we never find a home for this element then we'll need to hide it
912
+ relocateNodes.push({
913
+ $nodeToRelocate$: node,
914
+ });
915
+ }
916
+ }
917
+ }
918
+ }
919
+ if (childNode.nodeType === 1 /* ElementNode */) {
920
+ relocateSlotContent(childNode);
921
+ }
922
+ }
923
+ };
924
+ const isNodeLocatedInSlot = (nodeToRelocate, slotNameAttr) => {
925
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
926
+ if (nodeToRelocate.getAttribute('slot') === null && slotNameAttr === '') {
927
+ return true;
928
+ }
929
+ if (nodeToRelocate.getAttribute('slot') === slotNameAttr) {
930
+ return true;
931
+ }
932
+ return false;
933
+ }
934
+ if (nodeToRelocate['s-sn'] === slotNameAttr) {
935
+ return true;
936
+ }
937
+ return slotNameAttr === '';
938
+ };
939
+ const callNodeRefs = (vNode) => {
940
+ {
941
+ vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
942
+ vNode.$children$ && vNode.$children$.map(callNodeRefs);
943
+ }
944
+ };
945
+ const renderVdom = (hostRef, renderFnResults) => {
946
+ const hostElm = hostRef.$hostElement$;
947
+ const cmpMeta = hostRef.$cmpMeta$;
948
+ const oldVNode = hostRef.$vnode$ || newVNode(null, null);
949
+ const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
950
+ hostTagName = hostElm.tagName;
951
+ rootVnode.$tag$ = null;
952
+ rootVnode.$flags$ |= 4 /* isHost */;
953
+ hostRef.$vnode$ = rootVnode;
954
+ rootVnode.$elm$ = oldVNode.$elm$ = (hostElm.shadowRoot || hostElm );
955
+ {
956
+ scopeId = hostElm['s-sc'];
957
+ }
958
+ {
959
+ contentRef = hostElm['s-cr'];
960
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
961
+ // always reset
962
+ checkSlotFallbackVisibility = false;
963
+ }
964
+ // synchronous patch
965
+ patch(oldVNode, rootVnode);
966
+ {
967
+ // while we're moving nodes around existing nodes, temporarily disable
968
+ // the disconnectCallback from working
969
+ plt.$flags$ |= 1 /* isTmpDisconnected */;
970
+ if (checkSlotRelocate) {
971
+ relocateSlotContent(rootVnode.$elm$);
972
+ let relocateData;
973
+ let nodeToRelocate;
974
+ let orgLocationNode;
975
+ let parentNodeRef;
976
+ let insertBeforeNode;
977
+ let refNode;
978
+ let i = 0;
979
+ for (; i < relocateNodes.length; i++) {
980
+ relocateData = relocateNodes[i];
981
+ nodeToRelocate = relocateData.$nodeToRelocate$;
982
+ if (!nodeToRelocate['s-ol']) {
983
+ // add a reference node marking this node's original location
984
+ // keep a reference to this node for later lookups
985
+ orgLocationNode =
986
+ doc.createTextNode('');
987
+ orgLocationNode['s-nr'] = nodeToRelocate;
988
+ nodeToRelocate.parentNode.insertBefore((nodeToRelocate['s-ol'] = orgLocationNode), nodeToRelocate);
989
+ }
990
+ }
991
+ for (i = 0; i < relocateNodes.length; i++) {
992
+ relocateData = relocateNodes[i];
993
+ nodeToRelocate = relocateData.$nodeToRelocate$;
994
+ if (relocateData.$slotRefNode$) {
995
+ // by default we're just going to insert it directly
996
+ // after the slot reference node
997
+ parentNodeRef = relocateData.$slotRefNode$.parentNode;
998
+ insertBeforeNode = relocateData.$slotRefNode$.nextSibling;
999
+ orgLocationNode = nodeToRelocate['s-ol'];
1000
+ while ((orgLocationNode = orgLocationNode.previousSibling)) {
1001
+ refNode = orgLocationNode['s-nr'];
1002
+ if (refNode && refNode['s-sn'] === nodeToRelocate['s-sn'] && parentNodeRef === refNode.parentNode) {
1003
+ refNode = refNode.nextSibling;
1004
+ if (!refNode || !refNode['s-nr']) {
1005
+ insertBeforeNode = refNode;
1006
+ break;
1007
+ }
1008
+ }
1009
+ }
1010
+ if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
1011
+ nodeToRelocate.nextSibling !== insertBeforeNode) {
1012
+ // we've checked that it's worth while to relocate
1013
+ // since that the node to relocate
1014
+ // has a different next sibling or parent relocated
1015
+ if (nodeToRelocate !== insertBeforeNode) {
1016
+ if (!nodeToRelocate['s-hn'] && nodeToRelocate['s-ol']) {
1017
+ // probably a component in the index.html that doesn't have it's hostname set
1018
+ nodeToRelocate['s-hn'] = nodeToRelocate['s-ol'].parentNode.nodeName;
1019
+ }
1020
+ // add it back to the dom but in its new home
1021
+ parentNodeRef.insertBefore(nodeToRelocate, insertBeforeNode);
1022
+ }
1023
+ }
1024
+ }
1025
+ else {
1026
+ // this node doesn't have a slot home to go to, so let's hide it
1027
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1028
+ nodeToRelocate.hidden = true;
1029
+ }
1030
+ }
1031
+ }
1032
+ }
1033
+ if (checkSlotFallbackVisibility) {
1034
+ updateFallbackSlotVisibility(rootVnode.$elm$);
1035
+ }
1036
+ // done moving nodes around
1037
+ // allow the disconnect callback to work again
1038
+ plt.$flags$ &= ~1 /* isTmpDisconnected */;
1039
+ // always reset
1040
+ relocateNodes.length = 0;
1041
+ }
1042
+ };
1043
+ const getElement = (ref) => (getHostRef(ref).$hostElement$ );
1044
+ const createEvent = (ref, name, flags) => {
1045
+ const elm = getElement(ref);
1046
+ return {
1047
+ emit: (detail) => {
1048
+ return emitEvent(elm, name, {
1049
+ bubbles: !!(flags & 4 /* Bubbles */),
1050
+ composed: !!(flags & 2 /* Composed */),
1051
+ cancelable: !!(flags & 1 /* Cancellable */),
1052
+ detail,
1053
+ });
1054
+ },
1055
+ };
1056
+ };
1057
+ /**
1058
+ * Helper function to create & dispatch a custom Event on a provided target
1059
+ * @param elm the target of the Event
1060
+ * @param name the name to give the custom Event
1061
+ * @param opts options for configuring a custom Event
1062
+ * @returns the custom Event
1063
+ */
1064
+ const emitEvent = (elm, name, opts) => {
1065
+ const ev = plt.ce(name, opts);
1066
+ elm.dispatchEvent(ev);
1067
+ return ev;
1068
+ };
1069
+ const attachToAncestor = (hostRef, ancestorComponent) => {
1070
+ if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
1071
+ ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
1072
+ }
1073
+ };
1074
+ const scheduleUpdate = (hostRef, isInitialLoad) => {
1075
+ {
1076
+ hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
1077
+ }
1078
+ if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
1079
+ hostRef.$flags$ |= 512 /* needsRerender */;
1080
+ return;
1081
+ }
1082
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$);
1083
+ // there is no ancestor component or the ancestor component
1084
+ // has already fired off its lifecycle update then
1085
+ // fire off the initial update
1086
+ const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1087
+ return writeTask(dispatch) ;
1088
+ };
1089
+ const dispatchHooks = (hostRef, isInitialLoad) => {
1090
+ const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
1091
+ const instance = hostRef.$lazyInstance$ ;
1092
+ let promise;
1093
+ if (isInitialLoad) {
1094
+ {
1095
+ hostRef.$flags$ |= 256 /* isListenReady */;
1096
+ if (hostRef.$queuedListeners$) {
1097
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
1098
+ hostRef.$queuedListeners$ = null;
1099
+ }
1100
+ }
1101
+ {
1102
+ promise = safeCall(instance, 'componentWillLoad');
1103
+ }
1104
+ }
1105
+ endSchedule();
1106
+ return then(promise, () => updateComponent(hostRef, instance, isInitialLoad));
1107
+ };
1108
+ const updateComponent = async (hostRef, instance, isInitialLoad) => {
1109
+ // updateComponent
1110
+ const elm = hostRef.$hostElement$;
1111
+ const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
1112
+ const rc = elm['s-rc'];
1113
+ if (isInitialLoad) {
1114
+ // DOM WRITE!
1115
+ attachStyles(hostRef);
1116
+ }
1117
+ const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
1118
+ {
1119
+ callRender(hostRef, instance);
1120
+ }
1121
+ if (rc) {
1122
+ // ok, so turns out there are some child host elements
1123
+ // waiting on this parent element to load
1124
+ // let's fire off all update callbacks waiting
1125
+ rc.map((cb) => cb());
1126
+ elm['s-rc'] = undefined;
1127
+ }
1128
+ endRender();
1129
+ endUpdate();
1130
+ {
1131
+ const childrenPromises = elm['s-p'];
1132
+ const postUpdate = () => postUpdateComponent(hostRef);
1133
+ if (childrenPromises.length === 0) {
1134
+ postUpdate();
1135
+ }
1136
+ else {
1137
+ Promise.all(childrenPromises).then(postUpdate);
1138
+ hostRef.$flags$ |= 4 /* isWaitingForChildren */;
1139
+ childrenPromises.length = 0;
1140
+ }
1141
+ }
1142
+ };
1143
+ const callRender = (hostRef, instance, elm) => {
1144
+ try {
1145
+ instance = instance.render() ;
1146
+ {
1147
+ hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
1148
+ }
1149
+ {
1150
+ hostRef.$flags$ |= 2 /* hasRendered */;
1151
+ }
1152
+ {
1153
+ {
1154
+ // looks like we've got child nodes to render into this host element
1155
+ // or we need to update the css class/attrs on the host element
1156
+ // DOM WRITE!
1157
+ {
1158
+ renderVdom(hostRef, instance);
1159
+ }
1160
+ }
1161
+ }
1162
+ }
1163
+ catch (e) {
1164
+ consoleError(e, hostRef.$hostElement$);
1165
+ }
1166
+ return null;
1167
+ };
1168
+ const postUpdateComponent = (hostRef) => {
1169
+ const tagName = hostRef.$cmpMeta$.$tagName$;
1170
+ const elm = hostRef.$hostElement$;
1171
+ const endPostUpdate = createTime('postUpdate', tagName);
1172
+ const instance = hostRef.$lazyInstance$ ;
1173
+ const ancestorComponent = hostRef.$ancestorComponent$;
1174
+ if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
1175
+ hostRef.$flags$ |= 64 /* hasLoadedComponent */;
1176
+ {
1177
+ // DOM WRITE!
1178
+ addHydratedFlag(elm);
1179
+ }
1180
+ {
1181
+ safeCall(instance, 'componentDidLoad');
1182
+ }
1183
+ endPostUpdate();
1184
+ {
1185
+ hostRef.$onReadyResolve$(elm);
1186
+ if (!ancestorComponent) {
1187
+ appDidLoad();
1188
+ }
1189
+ }
1190
+ }
1191
+ else {
1192
+ endPostUpdate();
1193
+ }
1194
+ {
1195
+ hostRef.$onInstanceResolve$(elm);
1196
+ }
1197
+ // load events fire from bottom to top
1198
+ // the deepest elements load first then bubbles up
1199
+ {
1200
+ if (hostRef.$onRenderResolve$) {
1201
+ hostRef.$onRenderResolve$();
1202
+ hostRef.$onRenderResolve$ = undefined;
1203
+ }
1204
+ if (hostRef.$flags$ & 512 /* needsRerender */) {
1205
+ nextTick(() => scheduleUpdate(hostRef, false));
1206
+ }
1207
+ hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
1208
+ }
1209
+ // ( •_•)
1210
+ // ( •_•)>⌐■-■
1211
+ // (⌐■_■)
1212
+ };
1213
+ const appDidLoad = (who) => {
1214
+ // on appload
1215
+ // we have finish the first big initial render
1216
+ {
1217
+ addHydratedFlag(doc.documentElement);
1218
+ }
1219
+ nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
1220
+ };
1221
+ const safeCall = (instance, method, arg) => {
1222
+ if (instance && instance[method]) {
1223
+ try {
1224
+ return instance[method](arg);
1225
+ }
1226
+ catch (e) {
1227
+ consoleError(e);
1228
+ }
1229
+ }
1230
+ return undefined;
1231
+ };
1232
+ const then = (promise, thenFn) => {
1233
+ return promise && promise.then ? promise.then(thenFn) : thenFn();
1234
+ };
1235
+ const addHydratedFlag = (elm) => elm.classList.add('hydrated')
1236
+ ;
1237
+ /**
1238
+ * Parse a new property value for a given property type.
1239
+ *
1240
+ * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
1241
+ * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
1242
+ * 1. `any`, the type given to `propValue` in the function signature
1243
+ * 2. the type stored from `propType`.
1244
+ *
1245
+ * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
1246
+ *
1247
+ * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
1248
+ * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
1249
+ * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
1250
+ * ```tsx
1251
+ * <my-cmp prop-val={0}></my-cmp>
1252
+ * ```
1253
+ *
1254
+ * HTML prop values on the other hand, will always a string
1255
+ *
1256
+ * @param propValue the new value to coerce to some type
1257
+ * @param propType the type of the prop, expressed as a binary number
1258
+ * @returns the parsed/coerced value
1259
+ */
1260
+ const parsePropertyValue = (propValue, propType) => {
1261
+ // ensure this value is of the correct prop type
1262
+ if (propValue != null && !isComplexType(propValue)) {
1263
+ if (propType & 4 /* Boolean */) {
1264
+ // per the HTML spec, any string value means it is a boolean true value
1265
+ // but we'll cheat here and say that the string "false" is the boolean false
1266
+ return propValue === 'false' ? false : propValue === '' || !!propValue;
1267
+ }
1268
+ if (propType & 2 /* Number */) {
1269
+ // force it to be a number
1270
+ return parseFloat(propValue);
1271
+ }
1272
+ if (propType & 1 /* String */) {
1273
+ // could have been passed as a number or boolean
1274
+ // but we still want it as a string
1275
+ return String(propValue);
1276
+ }
1277
+ // redundant return here for better minification
1278
+ return propValue;
1279
+ }
1280
+ // not sure exactly what type we want
1281
+ // so no need to change to a different type
1282
+ return propValue;
1283
+ };
1284
+ const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1285
+ const setValue = (ref, propName, newVal, cmpMeta) => {
1286
+ // check our new property value against our internal value
1287
+ const hostRef = getHostRef(ref);
1288
+ const elm = hostRef.$hostElement$ ;
1289
+ const oldVal = hostRef.$instanceValues$.get(propName);
1290
+ const flags = hostRef.$flags$;
1291
+ const instance = hostRef.$lazyInstance$ ;
1292
+ newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1293
+ // explicitly check for NaN on both sides, as `NaN === NaN` is always false
1294
+ const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1295
+ const didValueChange = newVal !== oldVal && !areBothNaN;
1296
+ if ((!(flags & 8 /* isConstructingInstance */) || oldVal === undefined) && didValueChange) {
1297
+ // gadzooks! the property's value has changed!!
1298
+ // set our new value!
1299
+ hostRef.$instanceValues$.set(propName, newVal);
1300
+ if (instance) {
1301
+ // get an array of method names of watch functions to call
1302
+ if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
1303
+ const watchMethods = cmpMeta.$watchers$[propName];
1304
+ if (watchMethods) {
1305
+ // this instance is watching for when this property changed
1306
+ watchMethods.map((watchMethodName) => {
1307
+ try {
1308
+ // fire off each of the watch methods that are watching this property
1309
+ instance[watchMethodName](newVal, oldVal, propName);
1310
+ }
1311
+ catch (e) {
1312
+ consoleError(e, elm);
1313
+ }
1314
+ });
1315
+ }
1316
+ }
1317
+ if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1318
+ // looks like this value actually changed, so we've got work to do!
1319
+ // but only if we've already rendered, otherwise just chill out
1320
+ // queue that we need to do an update, but don't worry about queuing
1321
+ // up millions cuz this function ensures it only runs once
1322
+ scheduleUpdate(hostRef, false);
1323
+ }
1324
+ }
1325
+ }
1326
+ };
1327
+ const proxyComponent = (Cstr, cmpMeta, flags) => {
1328
+ if (cmpMeta.$members$) {
1329
+ if (Cstr.watchers) {
1330
+ cmpMeta.$watchers$ = Cstr.watchers;
1331
+ }
1332
+ // It's better to have a const than two Object.entries()
1333
+ const members = Object.entries(cmpMeta.$members$);
1334
+ const prototype = Cstr.prototype;
1335
+ members.map(([memberName, [memberFlags]]) => {
1336
+ if ((memberFlags & 31 /* Prop */ ||
1337
+ ((flags & 2 /* proxyState */) && memberFlags & 32 /* State */))) {
1338
+ // proxyComponent - prop
1339
+ Object.defineProperty(prototype, memberName, {
1340
+ get() {
1341
+ // proxyComponent, get value
1342
+ return getValue(this, memberName);
1343
+ },
1344
+ set(newValue) {
1345
+ // proxyComponent, set value
1346
+ setValue(this, memberName, newValue, cmpMeta);
1347
+ },
1348
+ configurable: true,
1349
+ enumerable: true,
1350
+ });
1351
+ }
1352
+ else if (flags & 1 /* isElementConstructor */ &&
1353
+ memberFlags & 64 /* Method */) {
1354
+ // proxyComponent - method
1355
+ Object.defineProperty(prototype, memberName, {
1356
+ value(...args) {
1357
+ const ref = getHostRef(this);
1358
+ return ref.$onInstancePromise$.then(() => ref.$lazyInstance$[memberName](...args));
1359
+ },
1360
+ });
1361
+ }
1362
+ });
1363
+ if ((flags & 1 /* isElementConstructor */)) {
1364
+ const attrNameToPropName = new Map();
1365
+ prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
1366
+ plt.jmp(() => {
1367
+ const propName = attrNameToPropName.get(attrName);
1368
+ // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
1369
+ // in the case where an attribute was set inline.
1370
+ // ```html
1371
+ // <my-component some-attribute="some-value"></my-component>
1372
+ // ```
1373
+ //
1374
+ // There is an edge case where a developer sets the attribute inline on a custom element and then
1375
+ // programmatically changes it before it has been upgraded as shown below:
1376
+ //
1377
+ // ```html
1378
+ // <!-- this component has _not_ been upgraded yet -->
1379
+ // <my-component id="test" some-attribute="some-value"></my-component>
1380
+ // <script>
1381
+ // // grab non-upgraded component
1382
+ // el = document.querySelector("#test");
1383
+ // el.someAttribute = "another-value";
1384
+ // // upgrade component
1385
+ // customElements.define('my-component', MyComponent);
1386
+ // </script>
1387
+ // ```
1388
+ // In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
1389
+ // will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
1390
+ // to the value that was set inline i.e. "some-value" from above example. When
1391
+ // the connectedCallback attempts to unshadow it will use "some-value" as the initial value rather than "another-value"
1392
+ //
1393
+ // The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
1394
+ // by connectedCallback as this attributeChangedCallback will not fire.
1395
+ //
1396
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1397
+ //
1398
+ // TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
1399
+ // properties here given that this goes against best practices outlined here
1400
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
1401
+ if (this.hasOwnProperty(propName)) {
1402
+ newValue = this[propName];
1403
+ delete this[propName];
1404
+ }
1405
+ else if (prototype.hasOwnProperty(propName) &&
1406
+ typeof this[propName] === 'number' &&
1407
+ this[propName] == newValue) {
1408
+ // if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
1409
+ // APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
1410
+ // `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
1411
+ return;
1412
+ }
1413
+ this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
1414
+ });
1415
+ };
1416
+ // create an array of attributes to observe
1417
+ // and also create a map of html attribute name to js property name
1418
+ Cstr.observedAttributes = members
1419
+ .filter(([_, m]) => m[0] & 15 /* HasAttribute */) // filter to only keep props that should match attributes
1420
+ .map(([propName, m]) => {
1421
+ const attrName = m[1] || propName;
1422
+ attrNameToPropName.set(attrName, propName);
1423
+ return attrName;
1424
+ });
1425
+ }
1426
+ }
1427
+ return Cstr;
1428
+ };
1429
+ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
1430
+ // initializeComponent
1431
+ if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1432
+ {
1433
+ // we haven't initialized this element yet
1434
+ hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1435
+ // lazy loaded components
1436
+ // request the component's implementation to be
1437
+ // wired up with the host element
1438
+ Cstr = loadModule(cmpMeta);
1439
+ if (Cstr.then) {
1440
+ // Await creates a micro-task avoid if possible
1441
+ const endLoad = uniqueTime();
1442
+ Cstr = await Cstr;
1443
+ endLoad();
1444
+ }
1445
+ if (!Cstr.isProxied) {
1446
+ // we've never proxied this Constructor before
1447
+ // let's add the getters/setters to its prototype before
1448
+ // the first time we create an instance of the implementation
1449
+ {
1450
+ cmpMeta.$watchers$ = Cstr.watchers;
1451
+ }
1452
+ proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
1453
+ Cstr.isProxied = true;
1454
+ }
1455
+ const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
1456
+ // ok, time to construct the instance
1457
+ // but let's keep track of when we start and stop
1458
+ // so that the getters/setters don't incorrectly step on data
1459
+ {
1460
+ hostRef.$flags$ |= 8 /* isConstructingInstance */;
1461
+ }
1462
+ // construct the lazy-loaded component implementation
1463
+ // passing the hostRef is very important during
1464
+ // construction in order to directly wire together the
1465
+ // host element and the lazy-loaded instance
1466
+ try {
1467
+ new Cstr(hostRef);
1468
+ }
1469
+ catch (e) {
1470
+ consoleError(e);
1471
+ }
1472
+ {
1473
+ hostRef.$flags$ &= ~8 /* isConstructingInstance */;
1474
+ }
1475
+ {
1476
+ hostRef.$flags$ |= 128 /* isWatchReady */;
1477
+ }
1478
+ endNewInstance();
1479
+ }
1480
+ if (Cstr.style) {
1481
+ // this component has styles but we haven't registered them yet
1482
+ let style = Cstr.style;
1483
+ const scopeId = getScopeId(cmpMeta);
1484
+ if (!styles.has(scopeId)) {
1485
+ const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
1486
+ registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
1487
+ endRegisterStyles();
1488
+ }
1489
+ }
1490
+ }
1491
+ // we've successfully created a lazy instance
1492
+ const ancestorComponent = hostRef.$ancestorComponent$;
1493
+ const schedule = () => scheduleUpdate(hostRef, true);
1494
+ if (ancestorComponent && ancestorComponent['s-rc']) {
1495
+ // this is the initial load and this component it has an ancestor component
1496
+ // but the ancestor component has NOT fired its will update lifecycle yet
1497
+ // so let's just cool our jets and wait for the ancestor to continue first
1498
+ // this will get fired off when the ancestor component
1499
+ // finally gets around to rendering its lazy self
1500
+ // fire off the initial update
1501
+ ancestorComponent['s-rc'].push(schedule);
1502
+ }
1503
+ else {
1504
+ schedule();
1505
+ }
1506
+ };
1507
+ const connectedCallback = (elm) => {
1508
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1509
+ const hostRef = getHostRef(elm);
1510
+ const cmpMeta = hostRef.$cmpMeta$;
1511
+ const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
1512
+ if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
1513
+ // first time this component has connected
1514
+ hostRef.$flags$ |= 1 /* hasConnected */;
1515
+ {
1516
+ // initUpdate
1517
+ // if the slot polyfill is required we'll need to put some nodes
1518
+ // in here to act as original content anchors as we move nodes around
1519
+ // host element has been connected to the DOM
1520
+ if ((cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */))) {
1521
+ setContentReference(elm);
1522
+ }
1523
+ }
1524
+ {
1525
+ // find the first ancestor component (if there is one) and register
1526
+ // this component as one of the actively loading child components for its ancestor
1527
+ let ancestorComponent = elm;
1528
+ while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) {
1529
+ // climb up the ancestors looking for the first
1530
+ // component that hasn't finished its lifecycle update yet
1531
+ if (ancestorComponent['s-p']) {
1532
+ // we found this components first ancestor component
1533
+ // keep a reference to this component's ancestor component
1534
+ attachToAncestor(hostRef, (hostRef.$ancestorComponent$ = ancestorComponent));
1535
+ break;
1536
+ }
1537
+ }
1538
+ }
1539
+ // Lazy properties
1540
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1541
+ if (cmpMeta.$members$) {
1542
+ Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1543
+ if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
1544
+ const value = elm[memberName];
1545
+ delete elm[memberName];
1546
+ elm[memberName] = value;
1547
+ }
1548
+ });
1549
+ }
1550
+ {
1551
+ initializeComponent(elm, hostRef, cmpMeta);
1552
+ }
1553
+ }
1554
+ else {
1555
+ // not the first time this has connected
1556
+ // reattach any event listeners to the host
1557
+ // since they would have been removed when disconnected
1558
+ addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1559
+ }
1560
+ endConnected();
1561
+ }
1562
+ };
1563
+ const setContentReference = (elm) => {
1564
+ // only required when we're NOT using native shadow dom (slot)
1565
+ // or this browser doesn't support native shadow dom
1566
+ // and this host element was NOT created with SSR
1567
+ // let's pick out the inner content for slot projection
1568
+ // create a node to represent where the original
1569
+ // content was first placed, which is useful later on
1570
+ const contentRefElm = (elm['s-cr'] = doc.createComment(''));
1571
+ contentRefElm['s-cn'] = true;
1572
+ elm.insertBefore(contentRefElm, elm.firstChild);
1573
+ };
1574
+ const disconnectedCallback = (elm) => {
1575
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1576
+ const hostRef = getHostRef(elm);
1577
+ const instance = hostRef.$lazyInstance$ ;
1578
+ {
1579
+ if (hostRef.$rmListeners$) {
1580
+ hostRef.$rmListeners$.map((rmListener) => rmListener());
1581
+ hostRef.$rmListeners$ = undefined;
1582
+ }
1583
+ }
1584
+ {
1585
+ safeCall(instance, 'disconnectedCallback');
1586
+ }
1587
+ }
1588
+ };
1589
+ const bootstrapLazy = (lazyBundles, options = {}) => {
1590
+ const endBootstrap = createTime();
1591
+ const cmpTags = [];
1592
+ const exclude = options.exclude || [];
1593
+ const customElements = win.customElements;
1594
+ const head = doc.head;
1595
+ const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
1596
+ const visibilityStyle = /*@__PURE__*/ doc.createElement('style');
1597
+ const deferredConnectedCallbacks = [];
1598
+ let appLoadFallback;
1599
+ let isBootstrapping = true;
1600
+ Object.assign(plt, options);
1601
+ plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
1602
+ lazyBundles.map((lazyBundle) => {
1603
+ lazyBundle[1].map((compactMeta) => {
1604
+ const cmpMeta = {
1605
+ $flags$: compactMeta[0],
1606
+ $tagName$: compactMeta[1],
1607
+ $members$: compactMeta[2],
1608
+ $listeners$: compactMeta[3],
1609
+ };
1610
+ {
1611
+ cmpMeta.$members$ = compactMeta[2];
1612
+ }
1613
+ {
1614
+ cmpMeta.$listeners$ = compactMeta[3];
1615
+ }
1616
+ {
1617
+ cmpMeta.$watchers$ = {};
1618
+ }
1619
+ const tagName = cmpMeta.$tagName$;
1620
+ const HostElement = class extends HTMLElement {
1621
+ // StencilLazyHost
1622
+ constructor(self) {
1623
+ // @ts-ignore
1624
+ super(self);
1625
+ self = this;
1626
+ registerHost(self, cmpMeta);
1627
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1628
+ // this component is using shadow dom
1629
+ // and this browser supports shadow dom
1630
+ // add the read-only property "shadowRoot" to the host element
1631
+ // adding the shadow root build conditionals to minimize runtime
1632
+ {
1633
+ {
1634
+ self.attachShadow({ mode: 'open' });
1635
+ }
1636
+ }
1637
+ }
1638
+ }
1639
+ connectedCallback() {
1640
+ if (appLoadFallback) {
1641
+ clearTimeout(appLoadFallback);
1642
+ appLoadFallback = null;
1643
+ }
1644
+ if (isBootstrapping) {
1645
+ // connectedCallback will be processed once all components have been registered
1646
+ deferredConnectedCallbacks.push(this);
1647
+ }
1648
+ else {
1649
+ plt.jmp(() => connectedCallback(this));
1650
+ }
1651
+ }
1652
+ disconnectedCallback() {
1653
+ plt.jmp(() => disconnectedCallback(this));
1654
+ }
1655
+ componentOnReady() {
1656
+ return getHostRef(this).$onReadyPromise$;
1657
+ }
1658
+ };
1659
+ cmpMeta.$lazyBundleId$ = lazyBundle[0];
1660
+ if (!exclude.includes(tagName) && !customElements.get(tagName)) {
1661
+ cmpTags.push(tagName);
1662
+ customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
1663
+ }
1664
+ });
1665
+ });
1666
+ {
1667
+ visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
1668
+ visibilityStyle.setAttribute('data-styles', '');
1669
+ head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
1670
+ }
1671
+ // Process deferred connectedCallbacks now all components have been registered
1672
+ isBootstrapping = false;
1673
+ if (deferredConnectedCallbacks.length) {
1674
+ deferredConnectedCallbacks.map((host) => host.connectedCallback());
1675
+ }
1676
+ else {
1677
+ {
1678
+ plt.jmp(() => (appLoadFallback = setTimeout(appDidLoad, 30)));
1679
+ }
1680
+ }
1681
+ // Fallback appLoad event
1682
+ endBootstrap();
1683
+ };
1684
+ const Fragment = (_, children) => children;
1685
+ const hostRefs = new WeakMap();
1686
+ const getHostRef = (ref) => hostRefs.get(ref);
1687
+ const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
1688
+ const registerHost = (elm, cmpMeta) => {
1689
+ const hostRef = {
1690
+ $flags$: 0,
1691
+ $hostElement$: elm,
1692
+ $cmpMeta$: cmpMeta,
1693
+ $instanceValues$: new Map(),
1694
+ };
1695
+ {
1696
+ hostRef.$onInstancePromise$ = new Promise((r) => (hostRef.$onInstanceResolve$ = r));
1697
+ }
1698
+ {
1699
+ hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
1700
+ elm['s-p'] = [];
1701
+ elm['s-rc'] = [];
1702
+ }
1703
+ addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1704
+ return hostRefs.set(elm, hostRef);
1705
+ };
1706
+ const isMemberInElement = (elm, memberName) => memberName in elm;
1707
+ const consoleError = (e, el) => (0, console.error)(e, el);
1708
+ const cmpModules = /*@__PURE__*/ new Map();
1709
+ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1710
+ // loadModuleImport
1711
+ const exportName = cmpMeta.$tagName$.replace(/-/g, '_');
1712
+ const bundleId = cmpMeta.$lazyBundleId$;
1713
+ const module = cmpModules.get(bundleId) ;
1714
+ if (module) {
1715
+ return module[exportName];
1716
+ }
1717
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
1718
+ return import(
1719
+ /* @vite-ignore */
1720
+ /* webpackInclude: /\.entry\.js$/ */
1721
+ /* webpackExclude: /\.system\.entry\.js$/ */
1722
+ /* webpackMode: "lazy" */
1723
+ `./${bundleId}.entry.js${''}`).then((importedModule) => {
1724
+ {
1725
+ cmpModules.set(bundleId, importedModule);
1726
+ }
1727
+ return importedModule[exportName];
1728
+ }, consoleError);
1729
+ };
1730
+ const styles = new Map();
1731
+ const queueDomReads = [];
1732
+ const queueDomWrites = [];
1733
+ const queueTask = (queue, write) => (cb) => {
1734
+ queue.push(cb);
1735
+ if (!queuePending) {
1736
+ queuePending = true;
1737
+ if (write && plt.$flags$ & 4 /* queueSync */) {
1738
+ nextTick(flush);
1739
+ }
1740
+ else {
1741
+ plt.raf(flush);
1742
+ }
1743
+ }
1744
+ };
1745
+ const consume = (queue) => {
1746
+ for (let i = 0; i < queue.length; i++) {
1747
+ try {
1748
+ queue[i](performance.now());
1749
+ }
1750
+ catch (e) {
1751
+ consoleError(e);
1752
+ }
1753
+ }
1754
+ queue.length = 0;
1755
+ };
1756
+ const flush = () => {
1757
+ // always force a bunch of medium callbacks to run, but still have
1758
+ // a throttle on how many can run in a certain time
1759
+ // DOM READS!!!
1760
+ consume(queueDomReads);
1761
+ // DOM WRITES!!!
1762
+ {
1763
+ consume(queueDomWrites);
1764
+ if ((queuePending = queueDomReads.length > 0)) {
1765
+ // still more to do yet, but we've run out of time
1766
+ // let's let this thing cool off and try again in the next tick
1767
+ plt.raf(flush);
1768
+ }
1769
+ }
1770
+ };
1771
+ const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
1772
+ const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
1773
+
1774
+ export { Fragment as F, Host as H, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r };