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