@pine-ds/icons 6.0.0 → 7.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (996) hide show
  1. package/components/pds-icon.js +3 -2
  2. package/components/pds-icon.js.map +1 -1
  3. package/dist/cheatsheet.html +312 -306
  4. package/dist/cjs/app-globals-3a1e7e63.js +7 -0
  5. package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
  6. package/dist/cjs/index-f0b59854.js +1205 -0
  7. package/dist/cjs/index-f0b59854.js.map +1 -0
  8. package/dist/cjs/index.cjs.js +2 -1
  9. package/dist/cjs/index.cjs.js.map +1 -1
  10. package/dist/cjs/loader.cjs.js +4 -2
  11. package/dist/cjs/loader.cjs.js.map +1 -1
  12. package/dist/cjs/pds-icon.cjs.entry.js +5 -4
  13. package/dist/cjs/pds-icon.cjs.entry.js.map +1 -1
  14. package/dist/cjs/pds-icons.cjs.js +12 -10
  15. package/dist/cjs/pds-icons.cjs.js.map +1 -1
  16. package/dist/cjs/{utils-c1c85b71.js → utils-958540ce.js} +3 -1
  17. package/dist/cjs/utils-958540ce.js.map +1 -0
  18. package/dist/collection/collection-manifest.json +2 -2
  19. package/dist/collection/components/pds-icon/assetPath.js.map +1 -1
  20. package/dist/collection/components/pds-icon/pds-icon.js +1 -1
  21. package/dist/collection/components/pds-icon/pds-icon.js.map +1 -1
  22. package/dist/collection/components/pds-icon/request.js.map +1 -1
  23. package/dist/collection/components/pds-icon/svg/access-key.svg +1 -1
  24. package/dist/collection/components/pds-icon/svg/add-circle.svg +1 -1
  25. package/dist/collection/components/pds-icon/svg/add-image.svg +1 -1
  26. package/dist/collection/components/pds-icon/svg/add-small.svg +1 -1
  27. package/dist/collection/components/pds-icon/svg/add-square.svg +1 -1
  28. package/dist/collection/components/pds-icon/svg/add.svg +1 -1
  29. package/dist/collection/components/pds-icon/svg/advanced.svg +1 -1
  30. package/dist/collection/components/pds-icon/svg/ai-sparkle.svg +1 -1
  31. package/dist/collection/components/pds-icon/svg/ai-writer-filled.svg +1 -1
  32. package/dist/collection/components/pds-icon/svg/ai-writer.svg +1 -1
  33. package/dist/collection/components/pds-icon/svg/align-center.svg +1 -1
  34. package/dist/collection/components/pds-icon/svg/align-justify.svg +1 -1
  35. package/dist/collection/components/pds-icon/svg/align-left.svg +1 -1
  36. package/dist/collection/components/pds-icon/svg/align-right.svg +1 -1
  37. package/dist/collection/components/pds-icon/svg/app-store.svg +1 -1
  38. package/dist/collection/components/pds-icon/svg/archive.svg +1 -1
  39. package/dist/collection/components/pds-icon/svg/arrow-corner.svg +1 -1
  40. package/dist/collection/components/pds-icon/svg/arrow-down.svg +1 -1
  41. package/dist/collection/components/pds-icon/svg/arrow-left.svg +1 -1
  42. package/dist/collection/components/pds-icon/svg/arrow-right.svg +1 -1
  43. package/dist/collection/components/pds-icon/svg/arrow-up.svg +1 -1
  44. package/dist/collection/components/pds-icon/svg/assessment.svg +1 -1
  45. package/dist/collection/components/pds-icon/svg/at-sign.svg +1 -1
  46. package/dist/collection/components/pds-icon/svg/attach.svg +1 -1
  47. package/dist/collection/components/pds-icon/svg/automations.svg +1 -1
  48. package/dist/collection/components/pds-icon/svg/ban.svg +1 -1
  49. package/dist/collection/components/pds-icon/svg/bank.svg +1 -1
  50. package/dist/collection/components/pds-icon/svg/bell.svg +1 -1
  51. package/dist/collection/components/pds-icon/svg/block.svg +1 -1
  52. package/dist/collection/components/pds-icon/svg/blog-filled.svg +1 -1
  53. package/dist/collection/components/pds-icon/svg/blog.svg +1 -1
  54. package/dist/collection/components/pds-icon/svg/bold.svg +1 -1
  55. package/dist/collection/components/pds-icon/svg/broadcast.svg +1 -1
  56. package/dist/collection/components/pds-icon/svg/button.svg +1 -1
  57. package/dist/collection/components/pds-icon/svg/calendar-date.svg +1 -1
  58. package/dist/collection/components/pds-icon/svg/calendar-schedule.svg +1 -1
  59. package/dist/collection/components/pds-icon/svg/calendar-simple.svg +1 -1
  60. package/dist/collection/components/pds-icon/svg/card-amex.svg +1 -1
  61. package/dist/collection/components/pds-icon/svg/card-android.svg +1 -1
  62. package/dist/collection/components/pds-icon/svg/card-apple.svg +1 -1
  63. package/dist/collection/components/pds-icon/svg/card-diners-club.svg +1 -1
  64. package/dist/collection/components/pds-icon/svg/card-discover.svg +1 -1
  65. package/dist/collection/components/pds-icon/svg/card-generic.svg +1 -1
  66. package/dist/collection/components/pds-icon/svg/card-gpay.svg +1 -1
  67. package/dist/collection/components/pds-icon/svg/card-mastercard.svg +1 -1
  68. package/dist/collection/components/pds-icon/svg/card-paypal.svg +1 -1
  69. package/dist/collection/components/pds-icon/svg/card-stripe.svg +1 -1
  70. package/dist/collection/components/pds-icon/svg/card-update.svg +1 -1
  71. package/dist/collection/components/pds-icon/svg/card-visa.svg +1 -1
  72. package/dist/collection/components/pds-icon/svg/caret-down.svg +1 -1
  73. package/dist/collection/components/pds-icon/svg/caret-left.svg +1 -1
  74. package/dist/collection/components/pds-icon/svg/caret-right.svg +1 -1
  75. package/dist/collection/components/pds-icon/svg/caret-up.svg +1 -1
  76. package/dist/collection/components/pds-icon/svg/cart-add.svg +1 -1
  77. package/dist/collection/components/pds-icon/svg/cart.svg +1 -1
  78. package/dist/collection/components/pds-icon/svg/certificate.svg +1 -1
  79. package/dist/collection/components/pds-icon/svg/chart-filled.svg +1 -1
  80. package/dist/collection/components/pds-icon/svg/chart.svg +1 -1
  81. package/dist/collection/components/pds-icon/svg/check-circle-filled.svg +1 -1
  82. package/dist/collection/components/pds-icon/svg/check-circle.svg +1 -1
  83. package/dist/collection/components/pds-icon/svg/check.svg +1 -1
  84. package/dist/collection/components/pds-icon/svg/circle-1.svg +1 -1
  85. package/dist/collection/components/pds-icon/svg/circle-2.svg +1 -1
  86. package/dist/collection/components/pds-icon/svg/circle-3.svg +1 -1
  87. package/dist/collection/components/pds-icon/svg/circle-4.svg +1 -1
  88. package/dist/collection/components/pds-icon/svg/circle-5.svg +1 -1
  89. package/dist/collection/components/pds-icon/svg/circle-6.svg +1 -1
  90. package/dist/collection/components/pds-icon/svg/circle-7.svg +1 -1
  91. package/dist/collection/components/pds-icon/svg/circle-8.svg +1 -1
  92. package/dist/collection/components/pds-icon/svg/circle-9.svg +1 -1
  93. package/dist/collection/components/pds-icon/svg/circle-a.svg +1 -0
  94. package/dist/collection/components/pds-icon/svg/circle-b.svg +1 -0
  95. package/dist/collection/components/pds-icon/svg/circle-dashed.svg +1 -1
  96. package/dist/collection/components/pds-icon/svg/clock.svg +1 -1
  97. package/dist/collection/components/pds-icon/svg/closed-captions.svg +1 -1
  98. package/dist/collection/components/pds-icon/svg/cloud-upload.svg +1 -1
  99. package/dist/collection/components/pds-icon/svg/code-block.svg +1 -1
  100. package/dist/collection/components/pds-icon/svg/code.svg +1 -1
  101. package/dist/collection/components/pds-icon/svg/color.svg +1 -1
  102. package/dist/collection/components/pds-icon/svg/columns.svg +1 -1
  103. package/dist/collection/components/pds-icon/svg/comment-no.svg +1 -1
  104. package/dist/collection/components/pds-icon/svg/comment.svg +1 -1
  105. package/dist/collection/components/pds-icon/svg/connect.svg +1 -1
  106. package/dist/collection/components/pds-icon/svg/contact.svg +1 -1
  107. package/dist/collection/components/pds-icon/svg/conversation.svg +1 -1
  108. package/dist/collection/components/pds-icon/svg/copy.svg +1 -1
  109. package/dist/collection/components/pds-icon/svg/coupon.svg +1 -1
  110. package/dist/collection/components/pds-icon/svg/course.svg +1 -1
  111. package/dist/collection/components/pds-icon/svg/creator-studio-filled.svg +1 -1
  112. package/dist/collection/components/pds-icon/svg/creator-studio.svg +1 -1
  113. package/dist/collection/components/pds-icon/svg/cursor-pointer.svg +1 -1
  114. package/dist/collection/components/pds-icon/svg/cursor.svg +1 -1
  115. package/dist/collection/components/pds-icon/svg/custom-field.svg +1 -1
  116. package/dist/collection/components/pds-icon/svg/customize.svg +1 -1
  117. package/dist/collection/components/pds-icon/svg/danger-filled.svg +1 -1
  118. package/dist/collection/components/pds-icon/svg/danger.svg +1 -1
  119. package/dist/collection/components/pds-icon/svg/delete-circle.svg +1 -1
  120. package/dist/collection/components/pds-icon/svg/delete-key.svg +1 -1
  121. package/dist/collection/components/pds-icon/svg/delete-x.svg +1 -1
  122. package/dist/collection/components/pds-icon/svg/dollar.svg +1 -1
  123. package/dist/collection/components/pds-icon/svg/dot-menu-horizontal.svg +1 -1
  124. package/dist/collection/components/pds-icon/svg/down-small.svg +1 -1
  125. package/dist/collection/components/pds-icon/svg/download.svg +1 -1
  126. package/dist/collection/components/pds-icon/svg/downsell.svg +1 -1
  127. package/dist/collection/components/pds-icon/svg/draft.svg +1 -1
  128. package/dist/collection/components/pds-icon/svg/drawer-collapse.svg +1 -1
  129. package/dist/collection/components/pds-icon/svg/drawer-expand.svg +1 -1
  130. package/dist/collection/components/pds-icon/svg/drop.svg +1 -1
  131. package/dist/collection/components/pds-icon/svg/duplicate.svg +1 -1
  132. package/dist/collection/components/pds-icon/svg/editor-filled.svg +1 -1
  133. package/dist/collection/components/pds-icon/svg/editor.svg +1 -1
  134. package/dist/collection/components/pds-icon/svg/email-activity.svg +1 -1
  135. package/dist/collection/components/pds-icon/svg/emoji.svg +1 -1
  136. package/dist/collection/components/pds-icon/svg/enlarge-vertical.svg +1 -1
  137. package/dist/collection/components/pds-icon/svg/enlarge.svg +1 -1
  138. package/dist/collection/components/pds-icon/svg/expand.svg +1 -1
  139. package/dist/collection/components/pds-icon/svg/favorite.svg +1 -1
  140. package/dist/collection/components/pds-icon/svg/feedback.svg +1 -1
  141. package/dist/collection/components/pds-icon/svg/file-money.svg +1 -1
  142. package/dist/collection/components/pds-icon/svg/file.svg +1 -1
  143. package/dist/collection/components/pds-icon/svg/filter.svg +1 -1
  144. package/dist/collection/components/pds-icon/svg/flag.svg +1 -1
  145. package/dist/collection/components/pds-icon/svg/flash-filled.svg +1 -1
  146. package/dist/collection/components/pds-icon/svg/flash.svg +1 -1
  147. package/dist/collection/components/pds-icon/svg/floppy-disk.svg +1 -1
  148. package/dist/collection/components/pds-icon/svg/folder-group.svg +1 -1
  149. package/dist/collection/components/pds-icon/svg/folder.svg +1 -1
  150. package/dist/collection/components/pds-icon/svg/form-field.svg +1 -1
  151. package/dist/collection/components/pds-icon/svg/form-filled.svg +1 -1
  152. package/dist/collection/components/pds-icon/svg/form.svg +1 -1
  153. package/dist/collection/components/pds-icon/svg/fullscreen.svg +1 -1
  154. package/dist/collection/components/pds-icon/svg/funnel.svg +1 -1
  155. package/dist/collection/components/pds-icon/svg/gear-filled.svg +1 -1
  156. package/dist/collection/components/pds-icon/svg/gear.svg +1 -1
  157. package/dist/collection/components/pds-icon/svg/grant-offer.svg +1 -1
  158. package/dist/collection/components/pds-icon/svg/handle-2-vertical.svg +1 -1
  159. package/dist/collection/components/pds-icon/svg/handle-2.svg +1 -1
  160. package/dist/collection/components/pds-icon/svg/handle.svg +1 -1
  161. package/dist/collection/components/pds-icon/svg/hashtag.svg +1 -1
  162. package/dist/collection/components/pds-icon/svg/hd-video.svg +1 -1
  163. package/dist/collection/components/pds-icon/svg/heading-1.svg +1 -1
  164. package/dist/collection/components/pds-icon/svg/heading-2.svg +1 -1
  165. package/dist/collection/components/pds-icon/svg/heading-3.svg +1 -1
  166. package/dist/collection/components/pds-icon/svg/heading-4.svg +1 -1
  167. package/dist/collection/components/pds-icon/svg/heading-5.svg +1 -1
  168. package/dist/collection/components/pds-icon/svg/heading-6.svg +1 -1
  169. package/dist/collection/components/pds-icon/svg/heading-large.svg +1 -1
  170. package/dist/collection/components/pds-icon/svg/heading-small.svg +1 -1
  171. package/dist/collection/components/pds-icon/svg/headset.svg +1 -1
  172. package/dist/collection/components/pds-icon/svg/help-filled.svg +1 -1
  173. package/dist/collection/components/pds-icon/svg/help.svg +1 -1
  174. package/dist/collection/components/pds-icon/svg/home-alt.svg +1 -1
  175. package/dist/collection/components/pds-icon/svg/home-filled.svg +1 -1
  176. package/dist/collection/components/pds-icon/svg/home.svg +1 -1
  177. package/dist/collection/components/pds-icon/svg/horizontal-line.svg +1 -1
  178. package/dist/collection/components/pds-icon/svg/image.svg +1 -1
  179. package/dist/collection/components/pds-icon/svg/info-circle-filled.svg +1 -1
  180. package/dist/collection/components/pds-icon/svg/info-circle.svg +1 -1
  181. package/dist/collection/components/pds-icon/svg/ios-battery.svg +1 -1
  182. package/dist/collection/components/pds-icon/svg/ios-data.svg +1 -1
  183. package/dist/collection/components/pds-icon/svg/ios-wifi.svg +1 -1
  184. package/dist/collection/components/pds-icon/svg/italic.svg +1 -1
  185. package/dist/collection/components/pds-icon/svg/kajabi-filled.svg +1 -1
  186. package/dist/collection/components/pds-icon/svg/kajabi.svg +1 -1
  187. package/dist/collection/components/pds-icon/svg/klarna.svg +1 -1
  188. package/dist/collection/components/pds-icon/svg/lab.svg +1 -1
  189. package/dist/collection/components/pds-icon/svg/launch.svg +1 -1
  190. package/dist/collection/components/pds-icon/svg/layout-grid.svg +1 -1
  191. package/dist/collection/components/pds-icon/svg/layout-list.svg +1 -1
  192. package/dist/collection/components/pds-icon/svg/left-small.svg +1 -1
  193. package/dist/collection/components/pds-icon/svg/list-bullet.svg +1 -1
  194. package/dist/collection/components/pds-icon/svg/list-details.svg +1 -1
  195. package/dist/collection/components/pds-icon/svg/list-numbers.svg +1 -1
  196. package/dist/collection/components/pds-icon/svg/location.svg +1 -1
  197. package/dist/collection/components/pds-icon/svg/lock-alt.svg +1 -1
  198. package/dist/collection/components/pds-icon/svg/lock.svg +1 -1
  199. package/dist/collection/components/pds-icon/svg/logo-afterpay.svg +1 -1
  200. package/dist/collection/components/pds-icon/svg/logo-facebook-round.svg +1 -1
  201. package/dist/collection/components/pds-icon/svg/logo-facebook.svg +1 -1
  202. package/dist/collection/components/pds-icon/svg/logo-instagram.svg +1 -1
  203. package/dist/collection/components/pds-icon/svg/logo-linkedin.svg +1 -1
  204. package/dist/collection/components/pds-icon/svg/logo-tiktok.svg +1 -1
  205. package/dist/collection/components/pds-icon/svg/logo-twitter-x.svg +1 -1
  206. package/dist/collection/components/pds-icon/svg/logo-twitter.svg +1 -1
  207. package/dist/collection/components/pds-icon/svg/logo-youtube.svg +1 -1
  208. package/dist/collection/components/pds-icon/svg/loop.svg +1 -1
  209. package/dist/collection/components/pds-icon/svg/mail-filled.svg +1 -1
  210. package/dist/collection/components/pds-icon/svg/mail-open.svg +1 -1
  211. package/dist/collection/components/pds-icon/svg/mail.svg +1 -1
  212. package/dist/collection/components/pds-icon/svg/map.svg +1 -1
  213. package/dist/collection/components/pds-icon/svg/mapped.svg +1 -1
  214. package/dist/collection/components/pds-icon/svg/margin-left.svg +1 -1
  215. package/dist/collection/components/pds-icon/svg/margin-right.svg +1 -1
  216. package/dist/collection/components/pds-icon/svg/marker-filled.svg +1 -1
  217. package/dist/collection/components/pds-icon/svg/marker.svg +1 -1
  218. package/dist/collection/components/pds-icon/svg/megaphone-filled.svg +1 -1
  219. package/dist/collection/components/pds-icon/svg/megaphone.svg +1 -1
  220. package/dist/collection/components/pds-icon/svg/menu-alt.svg +1 -1
  221. package/dist/collection/components/pds-icon/svg/menu-bordered.svg +1 -0
  222. package/dist/collection/components/pds-icon/svg/menu.svg +1 -1
  223. package/dist/collection/components/pds-icon/svg/merge.svg +1 -1
  224. package/dist/collection/components/pds-icon/svg/microphone-off.svg +1 -1
  225. package/dist/collection/components/pds-icon/svg/microphone.svg +1 -1
  226. package/dist/collection/components/pds-icon/svg/monitor-filled.svg +1 -1
  227. package/dist/collection/components/pds-icon/svg/monitor.svg +1 -1
  228. package/dist/collection/components/pds-icon/svg/more-menu-filled.svg +1 -1
  229. package/dist/collection/components/pds-icon/svg/more-menu.svg +1 -1
  230. package/dist/collection/components/pds-icon/svg/move-left.svg +1 -1
  231. package/dist/collection/components/pds-icon/svg/move-right.svg +1 -1
  232. package/dist/collection/components/pds-icon/svg/multi-pay.svg +1 -1
  233. package/dist/collection/components/pds-icon/svg/newsletter-2.svg +1 -1
  234. package/dist/collection/components/pds-icon/svg/newsletter.svg +1 -1
  235. package/dist/collection/components/pds-icon/svg/one-off-session.svg +1 -1
  236. package/dist/collection/components/pds-icon/svg/one-time.svg +1 -1
  237. package/dist/collection/components/pds-icon/svg/packages.svg +1 -0
  238. package/dist/collection/components/pds-icon/svg/pause-circle.svg +1 -1
  239. package/dist/collection/components/pds-icon/svg/pause.svg +1 -1
  240. package/dist/collection/components/pds-icon/svg/payout.svg +1 -1
  241. package/dist/collection/components/pds-icon/svg/pen.svg +1 -1
  242. package/dist/collection/components/pds-icon/svg/phone-portrait.svg +1 -1
  243. package/dist/collection/components/pds-icon/svg/phone-toolbar-filled.svg +1 -1
  244. package/dist/collection/components/pds-icon/svg/phone-toolbar.svg +1 -1
  245. package/dist/collection/components/pds-icon/svg/play-circle.svg +1 -1
  246. package/dist/collection/components/pds-icon/svg/play-outline.svg +1 -1
  247. package/dist/collection/components/pds-icon/svg/play-store.svg +1 -1
  248. package/dist/collection/components/pds-icon/svg/play.svg +1 -1
  249. package/dist/collection/components/pds-icon/svg/plug.svg +1 -1
  250. package/dist/collection/components/pds-icon/svg/premium.svg +1 -1
  251. package/dist/collection/components/pds-icon/svg/present.svg +1 -1
  252. package/dist/collection/components/pds-icon/svg/preview-off.svg +1 -1
  253. package/dist/collection/components/pds-icon/svg/preview-on.svg +1 -1
  254. package/dist/collection/components/pds-icon/svg/product-filled.svg +1 -1
  255. package/dist/collection/components/pds-icon/svg/product.svg +1 -1
  256. package/dist/collection/components/pds-icon/svg/question-circle.svg +1 -1
  257. package/dist/collection/components/pds-icon/svg/quote.svg +1 -1
  258. package/dist/collection/components/pds-icon/svg/redo.svg +1 -1
  259. package/dist/collection/components/pds-icon/svg/refresh.svg +1 -1
  260. package/dist/collection/components/pds-icon/svg/remove-circle.svg +1 -1
  261. package/dist/collection/components/pds-icon/svg/remove.svg +1 -1
  262. package/dist/collection/components/pds-icon/svg/rename.svg +1 -1
  263. package/dist/collection/components/pds-icon/svg/reset-password.svg +1 -1
  264. package/dist/collection/components/pds-icon/svg/restore.svg +1 -1
  265. package/dist/collection/components/pds-icon/svg/right-small.svg +1 -1
  266. package/dist/collection/components/pds-icon/svg/rocket-filled.svg +1 -1
  267. package/dist/collection/components/pds-icon/svg/rocket.svg +1 -1
  268. package/dist/collection/components/pds-icon/svg/round-dollar.svg +1 -1
  269. package/dist/collection/components/pds-icon/svg/rows.svg +1 -1
  270. package/dist/collection/components/pds-icon/svg/scissor.svg +1 -1
  271. package/dist/collection/components/pds-icon/svg/screen-share-off.svg +1 -1
  272. package/dist/collection/components/pds-icon/svg/screen-share-on.svg +1 -1
  273. package/dist/collection/components/pds-icon/svg/search-small.svg +1 -1
  274. package/dist/collection/components/pds-icon/svg/search.svg +1 -1
  275. package/dist/collection/components/pds-icon/svg/send-message.svg +1 -1
  276. package/dist/collection/components/pds-icon/svg/sequences.svg +1 -1
  277. package/dist/collection/components/pds-icon/svg/share.svg +1 -1
  278. package/dist/collection/components/pds-icon/svg/skipped.svg +1 -1
  279. package/dist/collection/components/pds-icon/svg/slash-divider.svg +1 -1
  280. package/dist/collection/components/pds-icon/svg/speaker.svg +1 -1
  281. package/dist/collection/components/pds-icon/svg/stack.svg +1 -1
  282. package/dist/collection/components/pds-icon/svg/star.svg +1 -1
  283. package/dist/collection/components/pds-icon/svg/stop.svg +1 -1
  284. package/dist/collection/components/pds-icon/svg/stopwatch.svg +1 -1
  285. package/dist/collection/components/pds-icon/svg/strikethrough.svg +1 -1
  286. package/dist/collection/components/pds-icon/svg/subscript.svg +1 -1
  287. package/dist/collection/components/pds-icon/svg/subscriptions.svg +1 -1
  288. package/dist/collection/components/pds-icon/svg/super-admin.svg +1 -1
  289. package/dist/collection/components/pds-icon/svg/superscript.svg +1 -1
  290. package/dist/collection/components/pds-icon/svg/sync.svg +1 -1
  291. package/dist/collection/components/pds-icon/svg/tablet-landscape.svg +1 -1
  292. package/dist/collection/components/pds-icon/svg/tablet-portrait.svg +1 -1
  293. package/dist/collection/components/pds-icon/svg/tag-filled.svg +1 -1
  294. package/dist/collection/components/pds-icon/svg/tag.svg +1 -1
  295. package/dist/collection/components/pds-icon/svg/text-styles.svg +1 -1
  296. package/dist/collection/components/pds-icon/svg/theme-store-filled.svg +1 -1
  297. package/dist/collection/components/pds-icon/svg/theme-store.svg +1 -1
  298. package/dist/collection/components/pds-icon/svg/thumb-down-filled.svg +1 -1
  299. package/dist/collection/components/pds-icon/svg/thumb-down.svg +1 -1
  300. package/dist/collection/components/pds-icon/svg/thumb-up-filled.svg +1 -1
  301. package/dist/collection/components/pds-icon/svg/thumb-up.svg +1 -1
  302. package/dist/collection/components/pds-icon/svg/trash.svg +1 -1
  303. package/dist/collection/components/pds-icon/svg/trophy.svg +1 -0
  304. package/dist/collection/components/pds-icon/svg/underline.svg +1 -1
  305. package/dist/collection/components/pds-icon/svg/undo.svg +1 -1
  306. package/dist/collection/components/pds-icon/svg/unlock.svg +1 -1
  307. package/dist/collection/components/pds-icon/svg/unmapped.svg +1 -1
  308. package/dist/collection/components/pds-icon/svg/up-small.svg +1 -1
  309. package/dist/collection/components/pds-icon/svg/upload.svg +1 -1
  310. package/dist/collection/components/pds-icon/svg/url.svg +1 -1
  311. package/dist/collection/components/pds-icon/svg/user-circle-filled.svg +1 -1
  312. package/dist/collection/components/pds-icon/svg/user-circle.svg +1 -1
  313. package/dist/collection/components/pds-icon/svg/user-filled.svg +1 -1
  314. package/dist/collection/components/pds-icon/svg/user-star-filled.svg +1 -1
  315. package/dist/collection/components/pds-icon/svg/user-star.svg +1 -1
  316. package/dist/collection/components/pds-icon/svg/user.svg +1 -1
  317. package/dist/collection/components/pds-icon/svg/users-alt.svg +1 -1
  318. package/dist/collection/components/pds-icon/svg/users.svg +1 -1
  319. package/dist/collection/components/pds-icon/svg/video-off.svg +1 -1
  320. package/dist/collection/components/pds-icon/svg/video-on.svg +1 -1
  321. package/dist/collection/components/pds-icon/svg/warning-filled.svg +1 -1
  322. package/dist/collection/components/pds-icon/svg/warning.svg +1 -1
  323. package/dist/collection/components/pds-icon/svg/window-paragraph.svg +1 -1
  324. package/dist/collection/components/pds-icon/svg/world.svg +1 -1
  325. package/dist/collection/components/pds-icon/svg/wrench.svg +1 -1
  326. package/dist/collection/components/pds-icon/test/pds-icon.spec.js.map +1 -1
  327. package/dist/collection/components/pds-icon/utils.js.map +1 -1
  328. package/dist/collection/components/pds-icon/validate.js.map +1 -1
  329. package/dist/docs.d.ts +35 -21
  330. package/dist/docs.json +3 -3
  331. package/dist/esm/app-globals-0f993ce5.js +5 -0
  332. package/dist/esm/app-globals-0f993ce5.js.map +1 -0
  333. package/dist/esm/index-f28202cc.js +1177 -0
  334. package/dist/esm/index-f28202cc.js.map +1 -0
  335. package/dist/esm/index.js +2 -1
  336. package/dist/esm/index.js.map +1 -1
  337. package/dist/esm/loader.js +5 -3
  338. package/dist/esm/loader.js.map +1 -1
  339. package/dist/esm/pds-icon.entry.js +5 -4
  340. package/dist/esm/pds-icon.entry.js.map +1 -1
  341. package/dist/esm/pds-icons.js +13 -11
  342. package/dist/esm/pds-icons.js.map +1 -1
  343. package/dist/esm/{utils-bff5219d.js → utils-6c036ebc.js} +3 -1
  344. package/dist/esm/utils-6c036ebc.js.map +1 -0
  345. package/dist/loader/cdn.js +1 -3
  346. package/dist/loader/index.cjs.js +1 -3
  347. package/dist/loader/index.es2017.js +1 -3
  348. package/dist/loader/index.js +1 -3
  349. package/dist/pds-icons/index.esm.js +1 -1
  350. package/dist/pds-icons/index.esm.js.map +1 -1
  351. package/dist/pds-icons/p-152ef3bc.js +3 -0
  352. package/dist/pds-icons/p-152ef3bc.js.map +1 -0
  353. package/dist/pds-icons/p-9bdf8fd3.entry.js +2 -0
  354. package/dist/pds-icons/p-9bdf8fd3.entry.js.map +1 -0
  355. package/dist/pds-icons/p-e1255160.js +2 -0
  356. package/dist/pds-icons/p-e1255160.js.map +1 -0
  357. package/dist/pds-icons/p-fb6974fd.js +2 -0
  358. package/dist/pds-icons/{p-60645170.js.map → p-fb6974fd.js.map} +1 -1
  359. package/dist/pds-icons/pds-icons.esm.js +1 -1
  360. package/dist/pds-icons/pds-icons.esm.js.map +1 -1
  361. package/dist/pds-icons/svg/access-key.svg +1 -1
  362. package/dist/pds-icons/svg/add-circle.svg +1 -1
  363. package/dist/pds-icons/svg/add-image.svg +1 -1
  364. package/dist/pds-icons/svg/add-small.svg +1 -1
  365. package/dist/pds-icons/svg/add-square.svg +1 -1
  366. package/dist/pds-icons/svg/add.svg +1 -1
  367. package/dist/pds-icons/svg/advanced.svg +1 -1
  368. package/dist/pds-icons/svg/ai-sparkle.svg +1 -1
  369. package/dist/pds-icons/svg/ai-writer-filled.svg +1 -1
  370. package/dist/pds-icons/svg/ai-writer.svg +1 -1
  371. package/dist/pds-icons/svg/align-center.svg +1 -1
  372. package/dist/pds-icons/svg/align-justify.svg +1 -1
  373. package/dist/pds-icons/svg/align-left.svg +1 -1
  374. package/dist/pds-icons/svg/align-right.svg +1 -1
  375. package/dist/pds-icons/svg/app-store.svg +1 -1
  376. package/dist/pds-icons/svg/archive.svg +1 -1
  377. package/dist/pds-icons/svg/arrow-corner.svg +1 -1
  378. package/dist/pds-icons/svg/arrow-down.svg +1 -1
  379. package/dist/pds-icons/svg/arrow-left.svg +1 -1
  380. package/dist/pds-icons/svg/arrow-right.svg +1 -1
  381. package/dist/pds-icons/svg/arrow-up.svg +1 -1
  382. package/dist/pds-icons/svg/assessment.svg +1 -1
  383. package/dist/pds-icons/svg/at-sign.svg +1 -1
  384. package/dist/pds-icons/svg/attach.svg +1 -1
  385. package/dist/pds-icons/svg/automations.svg +1 -1
  386. package/dist/pds-icons/svg/ban.svg +1 -1
  387. package/dist/pds-icons/svg/bank.svg +1 -1
  388. package/dist/pds-icons/svg/bell.svg +1 -1
  389. package/dist/pds-icons/svg/block.svg +1 -1
  390. package/dist/pds-icons/svg/blog-filled.svg +1 -1
  391. package/dist/pds-icons/svg/blog.svg +1 -1
  392. package/dist/pds-icons/svg/bold.svg +1 -1
  393. package/dist/pds-icons/svg/broadcast.svg +1 -1
  394. package/dist/pds-icons/svg/button.svg +1 -1
  395. package/dist/pds-icons/svg/calendar-date.svg +1 -1
  396. package/dist/pds-icons/svg/calendar-schedule.svg +1 -1
  397. package/dist/pds-icons/svg/calendar-simple.svg +1 -1
  398. package/dist/pds-icons/svg/card-amex.svg +1 -1
  399. package/dist/pds-icons/svg/card-android.svg +1 -1
  400. package/dist/pds-icons/svg/card-apple.svg +1 -1
  401. package/dist/pds-icons/svg/card-diners-club.svg +1 -1
  402. package/dist/pds-icons/svg/card-discover.svg +1 -1
  403. package/dist/pds-icons/svg/card-generic.svg +1 -1
  404. package/dist/pds-icons/svg/card-gpay.svg +1 -1
  405. package/dist/pds-icons/svg/card-mastercard.svg +1 -1
  406. package/dist/pds-icons/svg/card-paypal.svg +1 -1
  407. package/dist/pds-icons/svg/card-stripe.svg +1 -1
  408. package/dist/pds-icons/svg/card-update.svg +1 -1
  409. package/dist/pds-icons/svg/card-visa.svg +1 -1
  410. package/dist/pds-icons/svg/caret-down.svg +1 -1
  411. package/dist/pds-icons/svg/caret-left.svg +1 -1
  412. package/dist/pds-icons/svg/caret-right.svg +1 -1
  413. package/dist/pds-icons/svg/caret-up.svg +1 -1
  414. package/dist/pds-icons/svg/cart-add.svg +1 -1
  415. package/dist/pds-icons/svg/cart.svg +1 -1
  416. package/dist/pds-icons/svg/certificate.svg +1 -1
  417. package/dist/pds-icons/svg/chart-filled.svg +1 -1
  418. package/dist/pds-icons/svg/chart.svg +1 -1
  419. package/dist/pds-icons/svg/check-circle-filled.svg +1 -1
  420. package/dist/pds-icons/svg/check-circle.svg +1 -1
  421. package/dist/pds-icons/svg/check.svg +1 -1
  422. package/dist/pds-icons/svg/circle-1.svg +1 -1
  423. package/dist/pds-icons/svg/circle-2.svg +1 -1
  424. package/dist/pds-icons/svg/circle-3.svg +1 -1
  425. package/dist/pds-icons/svg/circle-4.svg +1 -1
  426. package/dist/pds-icons/svg/circle-5.svg +1 -1
  427. package/dist/pds-icons/svg/circle-6.svg +1 -1
  428. package/dist/pds-icons/svg/circle-7.svg +1 -1
  429. package/dist/pds-icons/svg/circle-8.svg +1 -1
  430. package/dist/pds-icons/svg/circle-9.svg +1 -1
  431. package/dist/pds-icons/svg/circle-a.svg +1 -0
  432. package/dist/pds-icons/svg/circle-b.svg +1 -0
  433. package/dist/pds-icons/svg/circle-dashed.svg +1 -1
  434. package/dist/pds-icons/svg/clock.svg +1 -1
  435. package/dist/pds-icons/svg/closed-captions.svg +1 -1
  436. package/dist/pds-icons/svg/cloud-upload.svg +1 -1
  437. package/dist/pds-icons/svg/code-block.svg +1 -1
  438. package/dist/pds-icons/svg/code.svg +1 -1
  439. package/dist/pds-icons/svg/color.svg +1 -1
  440. package/dist/pds-icons/svg/columns.svg +1 -1
  441. package/dist/pds-icons/svg/comment-no.svg +1 -1
  442. package/dist/pds-icons/svg/comment.svg +1 -1
  443. package/dist/pds-icons/svg/connect.svg +1 -1
  444. package/dist/pds-icons/svg/contact.svg +1 -1
  445. package/dist/pds-icons/svg/conversation.svg +1 -1
  446. package/dist/pds-icons/svg/copy.svg +1 -1
  447. package/dist/pds-icons/svg/coupon.svg +1 -1
  448. package/dist/pds-icons/svg/course.svg +1 -1
  449. package/dist/pds-icons/svg/creator-studio-filled.svg +1 -1
  450. package/dist/pds-icons/svg/creator-studio.svg +1 -1
  451. package/dist/pds-icons/svg/cursor-pointer.svg +1 -1
  452. package/dist/pds-icons/svg/cursor.svg +1 -1
  453. package/dist/pds-icons/svg/custom-field.svg +1 -1
  454. package/dist/pds-icons/svg/customize.svg +1 -1
  455. package/dist/pds-icons/svg/danger-filled.svg +1 -1
  456. package/dist/pds-icons/svg/danger.svg +1 -1
  457. package/dist/pds-icons/svg/delete-circle.svg +1 -1
  458. package/dist/pds-icons/svg/delete-key.svg +1 -1
  459. package/dist/pds-icons/svg/delete-x.svg +1 -1
  460. package/dist/pds-icons/svg/dollar.svg +1 -1
  461. package/dist/pds-icons/svg/dot-menu-horizontal.svg +1 -1
  462. package/dist/pds-icons/svg/down-small.svg +1 -1
  463. package/dist/pds-icons/svg/download.svg +1 -1
  464. package/dist/pds-icons/svg/downsell.svg +1 -1
  465. package/dist/pds-icons/svg/draft.svg +1 -1
  466. package/dist/pds-icons/svg/drawer-collapse.svg +1 -1
  467. package/dist/pds-icons/svg/drawer-expand.svg +1 -1
  468. package/dist/pds-icons/svg/drop.svg +1 -1
  469. package/dist/pds-icons/svg/duplicate.svg +1 -1
  470. package/dist/pds-icons/svg/editor-filled.svg +1 -1
  471. package/dist/pds-icons/svg/editor.svg +1 -1
  472. package/dist/pds-icons/svg/email-activity.svg +1 -1
  473. package/dist/pds-icons/svg/emoji.svg +1 -1
  474. package/dist/pds-icons/svg/enlarge-vertical.svg +1 -1
  475. package/dist/pds-icons/svg/enlarge.svg +1 -1
  476. package/dist/pds-icons/svg/expand.svg +1 -1
  477. package/dist/pds-icons/svg/favorite.svg +1 -1
  478. package/dist/pds-icons/svg/feedback.svg +1 -1
  479. package/dist/pds-icons/svg/file-money.svg +1 -1
  480. package/dist/pds-icons/svg/file.svg +1 -1
  481. package/dist/pds-icons/svg/filter.svg +1 -1
  482. package/dist/pds-icons/svg/flag.svg +1 -1
  483. package/dist/pds-icons/svg/flash-filled.svg +1 -1
  484. package/dist/pds-icons/svg/flash.svg +1 -1
  485. package/dist/pds-icons/svg/floppy-disk.svg +1 -1
  486. package/dist/pds-icons/svg/folder-group.svg +1 -1
  487. package/dist/pds-icons/svg/folder.svg +1 -1
  488. package/dist/pds-icons/svg/form-field.svg +1 -1
  489. package/dist/pds-icons/svg/form-filled.svg +1 -1
  490. package/dist/pds-icons/svg/form.svg +1 -1
  491. package/dist/pds-icons/svg/fullscreen.svg +1 -1
  492. package/dist/pds-icons/svg/funnel.svg +1 -1
  493. package/dist/pds-icons/svg/gear-filled.svg +1 -1
  494. package/dist/pds-icons/svg/gear.svg +1 -1
  495. package/dist/pds-icons/svg/grant-offer.svg +1 -1
  496. package/dist/pds-icons/svg/handle-2-vertical.svg +1 -1
  497. package/dist/pds-icons/svg/handle-2.svg +1 -1
  498. package/dist/pds-icons/svg/handle.svg +1 -1
  499. package/dist/pds-icons/svg/hashtag.svg +1 -1
  500. package/dist/pds-icons/svg/hd-video.svg +1 -1
  501. package/dist/pds-icons/svg/heading-1.svg +1 -1
  502. package/dist/pds-icons/svg/heading-2.svg +1 -1
  503. package/dist/pds-icons/svg/heading-3.svg +1 -1
  504. package/dist/pds-icons/svg/heading-4.svg +1 -1
  505. package/dist/pds-icons/svg/heading-5.svg +1 -1
  506. package/dist/pds-icons/svg/heading-6.svg +1 -1
  507. package/dist/pds-icons/svg/heading-large.svg +1 -1
  508. package/dist/pds-icons/svg/heading-small.svg +1 -1
  509. package/dist/pds-icons/svg/headset.svg +1 -1
  510. package/dist/pds-icons/svg/help-filled.svg +1 -1
  511. package/dist/pds-icons/svg/help.svg +1 -1
  512. package/dist/pds-icons/svg/home-alt.svg +1 -1
  513. package/dist/pds-icons/svg/home-filled.svg +1 -1
  514. package/dist/pds-icons/svg/home.svg +1 -1
  515. package/dist/pds-icons/svg/horizontal-line.svg +1 -1
  516. package/dist/pds-icons/svg/image.svg +1 -1
  517. package/dist/pds-icons/svg/info-circle-filled.svg +1 -1
  518. package/dist/pds-icons/svg/info-circle.svg +1 -1
  519. package/dist/pds-icons/svg/ios-battery.svg +1 -1
  520. package/dist/pds-icons/svg/ios-data.svg +1 -1
  521. package/dist/pds-icons/svg/ios-wifi.svg +1 -1
  522. package/dist/pds-icons/svg/italic.svg +1 -1
  523. package/dist/pds-icons/svg/kajabi-filled.svg +1 -1
  524. package/dist/pds-icons/svg/kajabi.svg +1 -1
  525. package/dist/pds-icons/svg/klarna.svg +1 -1
  526. package/dist/pds-icons/svg/lab.svg +1 -1
  527. package/dist/pds-icons/svg/launch.svg +1 -1
  528. package/dist/pds-icons/svg/layout-grid.svg +1 -1
  529. package/dist/pds-icons/svg/layout-list.svg +1 -1
  530. package/dist/pds-icons/svg/left-small.svg +1 -1
  531. package/dist/pds-icons/svg/list-bullet.svg +1 -1
  532. package/dist/pds-icons/svg/list-details.svg +1 -1
  533. package/dist/pds-icons/svg/list-numbers.svg +1 -1
  534. package/dist/pds-icons/svg/location.svg +1 -1
  535. package/dist/pds-icons/svg/lock-alt.svg +1 -1
  536. package/dist/pds-icons/svg/lock.svg +1 -1
  537. package/dist/pds-icons/svg/logo-afterpay.svg +1 -1
  538. package/dist/pds-icons/svg/logo-facebook-round.svg +1 -1
  539. package/dist/pds-icons/svg/logo-facebook.svg +1 -1
  540. package/dist/pds-icons/svg/logo-instagram.svg +1 -1
  541. package/dist/pds-icons/svg/logo-linkedin.svg +1 -1
  542. package/dist/pds-icons/svg/logo-tiktok.svg +1 -1
  543. package/dist/pds-icons/svg/logo-twitter-x.svg +1 -1
  544. package/dist/pds-icons/svg/logo-twitter.svg +1 -1
  545. package/dist/pds-icons/svg/logo-youtube.svg +1 -1
  546. package/dist/pds-icons/svg/loop.svg +1 -1
  547. package/dist/pds-icons/svg/mail-filled.svg +1 -1
  548. package/dist/pds-icons/svg/mail-open.svg +1 -1
  549. package/dist/pds-icons/svg/mail.svg +1 -1
  550. package/dist/pds-icons/svg/map.svg +1 -1
  551. package/dist/pds-icons/svg/mapped.svg +1 -1
  552. package/dist/pds-icons/svg/margin-left.svg +1 -1
  553. package/dist/pds-icons/svg/margin-right.svg +1 -1
  554. package/dist/pds-icons/svg/marker-filled.svg +1 -1
  555. package/dist/pds-icons/svg/marker.svg +1 -1
  556. package/dist/pds-icons/svg/megaphone-filled.svg +1 -1
  557. package/dist/pds-icons/svg/megaphone.svg +1 -1
  558. package/dist/pds-icons/svg/menu-alt.svg +1 -1
  559. package/dist/pds-icons/svg/menu-bordered.svg +1 -0
  560. package/dist/pds-icons/svg/menu.svg +1 -1
  561. package/dist/pds-icons/svg/merge.svg +1 -1
  562. package/dist/pds-icons/svg/microphone-off.svg +1 -1
  563. package/dist/pds-icons/svg/microphone.svg +1 -1
  564. package/dist/pds-icons/svg/monitor-filled.svg +1 -1
  565. package/dist/pds-icons/svg/monitor.svg +1 -1
  566. package/dist/pds-icons/svg/more-menu-filled.svg +1 -1
  567. package/dist/pds-icons/svg/more-menu.svg +1 -1
  568. package/dist/pds-icons/svg/move-left.svg +1 -1
  569. package/dist/pds-icons/svg/move-right.svg +1 -1
  570. package/dist/pds-icons/svg/multi-pay.svg +1 -1
  571. package/dist/pds-icons/svg/newsletter-2.svg +1 -1
  572. package/dist/pds-icons/svg/newsletter.svg +1 -1
  573. package/dist/pds-icons/svg/one-off-session.svg +1 -1
  574. package/dist/pds-icons/svg/one-time.svg +1 -1
  575. package/dist/pds-icons/svg/packages.svg +1 -0
  576. package/dist/pds-icons/svg/pause-circle.svg +1 -1
  577. package/dist/pds-icons/svg/pause.svg +1 -1
  578. package/dist/pds-icons/svg/payout.svg +1 -1
  579. package/dist/pds-icons/svg/pen.svg +1 -1
  580. package/dist/pds-icons/svg/phone-portrait.svg +1 -1
  581. package/dist/pds-icons/svg/phone-toolbar-filled.svg +1 -1
  582. package/dist/pds-icons/svg/phone-toolbar.svg +1 -1
  583. package/dist/pds-icons/svg/play-circle.svg +1 -1
  584. package/dist/pds-icons/svg/play-outline.svg +1 -1
  585. package/dist/pds-icons/svg/play-store.svg +1 -1
  586. package/dist/pds-icons/svg/play.svg +1 -1
  587. package/dist/pds-icons/svg/plug.svg +1 -1
  588. package/dist/pds-icons/svg/premium.svg +1 -1
  589. package/dist/pds-icons/svg/present.svg +1 -1
  590. package/dist/pds-icons/svg/preview-off.svg +1 -1
  591. package/dist/pds-icons/svg/preview-on.svg +1 -1
  592. package/dist/pds-icons/svg/product-filled.svg +1 -1
  593. package/dist/pds-icons/svg/product.svg +1 -1
  594. package/dist/pds-icons/svg/question-circle.svg +1 -1
  595. package/dist/pds-icons/svg/quote.svg +1 -1
  596. package/dist/pds-icons/svg/redo.svg +1 -1
  597. package/dist/pds-icons/svg/refresh.svg +1 -1
  598. package/dist/pds-icons/svg/remove-circle.svg +1 -1
  599. package/dist/pds-icons/svg/remove.svg +1 -1
  600. package/dist/pds-icons/svg/rename.svg +1 -1
  601. package/dist/pds-icons/svg/reset-password.svg +1 -1
  602. package/dist/pds-icons/svg/restore.svg +1 -1
  603. package/dist/pds-icons/svg/right-small.svg +1 -1
  604. package/dist/pds-icons/svg/rocket-filled.svg +1 -1
  605. package/dist/pds-icons/svg/rocket.svg +1 -1
  606. package/dist/pds-icons/svg/round-dollar.svg +1 -1
  607. package/dist/pds-icons/svg/rows.svg +1 -1
  608. package/dist/pds-icons/svg/scissor.svg +1 -1
  609. package/dist/pds-icons/svg/screen-share-off.svg +1 -1
  610. package/dist/pds-icons/svg/screen-share-on.svg +1 -1
  611. package/dist/pds-icons/svg/search-small.svg +1 -1
  612. package/dist/pds-icons/svg/search.svg +1 -1
  613. package/dist/pds-icons/svg/send-message.svg +1 -1
  614. package/dist/pds-icons/svg/sequences.svg +1 -1
  615. package/dist/pds-icons/svg/share.svg +1 -1
  616. package/dist/pds-icons/svg/skipped.svg +1 -1
  617. package/dist/pds-icons/svg/slash-divider.svg +1 -1
  618. package/dist/pds-icons/svg/speaker.svg +1 -1
  619. package/dist/pds-icons/svg/stack.svg +1 -1
  620. package/dist/pds-icons/svg/star.svg +1 -1
  621. package/dist/pds-icons/svg/stop.svg +1 -1
  622. package/dist/pds-icons/svg/stopwatch.svg +1 -1
  623. package/dist/pds-icons/svg/strikethrough.svg +1 -1
  624. package/dist/pds-icons/svg/subscript.svg +1 -1
  625. package/dist/pds-icons/svg/subscriptions.svg +1 -1
  626. package/dist/pds-icons/svg/super-admin.svg +1 -1
  627. package/dist/pds-icons/svg/superscript.svg +1 -1
  628. package/dist/pds-icons/svg/sync.svg +1 -1
  629. package/dist/pds-icons/svg/tablet-landscape.svg +1 -1
  630. package/dist/pds-icons/svg/tablet-portrait.svg +1 -1
  631. package/dist/pds-icons/svg/tag-filled.svg +1 -1
  632. package/dist/pds-icons/svg/tag.svg +1 -1
  633. package/dist/pds-icons/svg/text-styles.svg +1 -1
  634. package/dist/pds-icons/svg/theme-store-filled.svg +1 -1
  635. package/dist/pds-icons/svg/theme-store.svg +1 -1
  636. package/dist/pds-icons/svg/thumb-down-filled.svg +1 -1
  637. package/dist/pds-icons/svg/thumb-down.svg +1 -1
  638. package/dist/pds-icons/svg/thumb-up-filled.svg +1 -1
  639. package/dist/pds-icons/svg/thumb-up.svg +1 -1
  640. package/dist/pds-icons/svg/trash.svg +1 -1
  641. package/dist/pds-icons/svg/trophy.svg +1 -0
  642. package/dist/pds-icons/svg/underline.svg +1 -1
  643. package/dist/pds-icons/svg/undo.svg +1 -1
  644. package/dist/pds-icons/svg/unlock.svg +1 -1
  645. package/dist/pds-icons/svg/unmapped.svg +1 -1
  646. package/dist/pds-icons/svg/up-small.svg +1 -1
  647. package/dist/pds-icons/svg/upload.svg +1 -1
  648. package/dist/pds-icons/svg/url.svg +1 -1
  649. package/dist/pds-icons/svg/user-circle-filled.svg +1 -1
  650. package/dist/pds-icons/svg/user-circle.svg +1 -1
  651. package/dist/pds-icons/svg/user-filled.svg +1 -1
  652. package/dist/pds-icons/svg/user-star-filled.svg +1 -1
  653. package/dist/pds-icons/svg/user-star.svg +1 -1
  654. package/dist/pds-icons/svg/user.svg +1 -1
  655. package/dist/pds-icons/svg/users-alt.svg +1 -1
  656. package/dist/pds-icons/svg/users.svg +1 -1
  657. package/dist/pds-icons/svg/video-off.svg +1 -1
  658. package/dist/pds-icons/svg/video-on.svg +1 -1
  659. package/dist/pds-icons/svg/warning-filled.svg +1 -1
  660. package/dist/pds-icons/svg/warning.svg +1 -1
  661. package/dist/pds-icons/svg/window-paragraph.svg +1 -1
  662. package/dist/pds-icons/svg/world.svg +1 -1
  663. package/dist/pds-icons/svg/wrench.svg +1 -1
  664. package/dist/pds-icons.json +33 -10
  665. package/dist/pds-icons.symbols.svg +304 -301
  666. package/dist/svg/access-key.svg +1 -1
  667. package/dist/svg/add-circle.svg +1 -1
  668. package/dist/svg/add-image.svg +1 -1
  669. package/dist/svg/add-small.svg +1 -1
  670. package/dist/svg/add-square.svg +1 -1
  671. package/dist/svg/add.svg +1 -1
  672. package/dist/svg/advanced.svg +1 -1
  673. package/dist/svg/ai-sparkle.svg +1 -1
  674. package/dist/svg/ai-writer-filled.svg +1 -1
  675. package/dist/svg/ai-writer.svg +1 -1
  676. package/dist/svg/align-center.svg +1 -1
  677. package/dist/svg/align-justify.svg +1 -1
  678. package/dist/svg/align-left.svg +1 -1
  679. package/dist/svg/align-right.svg +1 -1
  680. package/dist/svg/app-store.svg +1 -1
  681. package/dist/svg/archive.svg +1 -1
  682. package/dist/svg/arrow-corner.svg +1 -1
  683. package/dist/svg/arrow-down.svg +1 -1
  684. package/dist/svg/arrow-left.svg +1 -1
  685. package/dist/svg/arrow-right.svg +1 -1
  686. package/dist/svg/arrow-up.svg +1 -1
  687. package/dist/svg/assessment.svg +1 -1
  688. package/dist/svg/at-sign.svg +1 -1
  689. package/dist/svg/attach.svg +1 -1
  690. package/dist/svg/automations.svg +1 -1
  691. package/dist/svg/ban.svg +1 -1
  692. package/dist/svg/bank.svg +1 -1
  693. package/dist/svg/bell.svg +1 -1
  694. package/dist/svg/block.svg +1 -1
  695. package/dist/svg/blog-filled.svg +1 -1
  696. package/dist/svg/blog.svg +1 -1
  697. package/dist/svg/bold.svg +1 -1
  698. package/dist/svg/broadcast.svg +1 -1
  699. package/dist/svg/button.svg +1 -1
  700. package/dist/svg/calendar-date.svg +1 -1
  701. package/dist/svg/calendar-schedule.svg +1 -1
  702. package/dist/svg/calendar-simple.svg +1 -1
  703. package/dist/svg/card-amex.svg +1 -1
  704. package/dist/svg/card-android.svg +1 -1
  705. package/dist/svg/card-apple.svg +1 -1
  706. package/dist/svg/card-diners-club.svg +1 -1
  707. package/dist/svg/card-discover.svg +1 -1
  708. package/dist/svg/card-generic.svg +1 -1
  709. package/dist/svg/card-gpay.svg +1 -1
  710. package/dist/svg/card-mastercard.svg +1 -1
  711. package/dist/svg/card-paypal.svg +1 -1
  712. package/dist/svg/card-stripe.svg +1 -1
  713. package/dist/svg/card-update.svg +1 -1
  714. package/dist/svg/card-visa.svg +1 -1
  715. package/dist/svg/caret-down.svg +1 -1
  716. package/dist/svg/caret-left.svg +1 -1
  717. package/dist/svg/caret-right.svg +1 -1
  718. package/dist/svg/caret-up.svg +1 -1
  719. package/dist/svg/cart-add.svg +1 -1
  720. package/dist/svg/cart.svg +1 -1
  721. package/dist/svg/certificate.svg +1 -1
  722. package/dist/svg/chart-filled.svg +1 -1
  723. package/dist/svg/chart.svg +1 -1
  724. package/dist/svg/check-circle-filled.svg +1 -1
  725. package/dist/svg/check-circle.svg +1 -1
  726. package/dist/svg/check.svg +1 -1
  727. package/dist/svg/circle-1.svg +1 -1
  728. package/dist/svg/circle-2.svg +1 -1
  729. package/dist/svg/circle-3.svg +1 -1
  730. package/dist/svg/circle-4.svg +1 -1
  731. package/dist/svg/circle-5.svg +1 -1
  732. package/dist/svg/circle-6.svg +1 -1
  733. package/dist/svg/circle-7.svg +1 -1
  734. package/dist/svg/circle-8.svg +1 -1
  735. package/dist/svg/circle-9.svg +1 -1
  736. package/dist/svg/circle-a.svg +1 -0
  737. package/dist/svg/circle-b.svg +1 -0
  738. package/dist/svg/circle-dashed.svg +1 -1
  739. package/dist/svg/clock.svg +1 -1
  740. package/dist/svg/closed-captions.svg +1 -1
  741. package/dist/svg/cloud-upload.svg +1 -1
  742. package/dist/svg/code-block.svg +1 -1
  743. package/dist/svg/code.svg +1 -1
  744. package/dist/svg/color.svg +1 -1
  745. package/dist/svg/columns.svg +1 -1
  746. package/dist/svg/comment-no.svg +1 -1
  747. package/dist/svg/comment.svg +1 -1
  748. package/dist/svg/connect.svg +1 -1
  749. package/dist/svg/contact.svg +1 -1
  750. package/dist/svg/conversation.svg +1 -1
  751. package/dist/svg/copy.svg +1 -1
  752. package/dist/svg/coupon.svg +1 -1
  753. package/dist/svg/course.svg +1 -1
  754. package/dist/svg/creator-studio-filled.svg +1 -1
  755. package/dist/svg/creator-studio.svg +1 -1
  756. package/dist/svg/cursor-pointer.svg +1 -1
  757. package/dist/svg/cursor.svg +1 -1
  758. package/dist/svg/custom-field.svg +1 -1
  759. package/dist/svg/customize.svg +1 -1
  760. package/dist/svg/danger-filled.svg +1 -1
  761. package/dist/svg/danger.svg +1 -1
  762. package/dist/svg/delete-circle.svg +1 -1
  763. package/dist/svg/delete-key.svg +1 -1
  764. package/dist/svg/delete-x.svg +1 -1
  765. package/dist/svg/dollar.svg +1 -1
  766. package/dist/svg/dot-menu-horizontal.svg +1 -1
  767. package/dist/svg/down-small.svg +1 -1
  768. package/dist/svg/download.svg +1 -1
  769. package/dist/svg/downsell.svg +1 -1
  770. package/dist/svg/draft.svg +1 -1
  771. package/dist/svg/drawer-collapse.svg +1 -1
  772. package/dist/svg/drawer-expand.svg +1 -1
  773. package/dist/svg/drop.svg +1 -1
  774. package/dist/svg/duplicate.svg +1 -1
  775. package/dist/svg/editor-filled.svg +1 -1
  776. package/dist/svg/editor.svg +1 -1
  777. package/dist/svg/email-activity.svg +1 -1
  778. package/dist/svg/emoji.svg +1 -1
  779. package/dist/svg/enlarge-vertical.svg +1 -1
  780. package/dist/svg/enlarge.svg +1 -1
  781. package/dist/svg/expand.svg +1 -1
  782. package/dist/svg/favorite.svg +1 -1
  783. package/dist/svg/feedback.svg +1 -1
  784. package/dist/svg/file-money.svg +1 -1
  785. package/dist/svg/file.svg +1 -1
  786. package/dist/svg/filter.svg +1 -1
  787. package/dist/svg/flag.svg +1 -1
  788. package/dist/svg/flash-filled.svg +1 -1
  789. package/dist/svg/flash.svg +1 -1
  790. package/dist/svg/floppy-disk.svg +1 -1
  791. package/dist/svg/folder-group.svg +1 -1
  792. package/dist/svg/folder.svg +1 -1
  793. package/dist/svg/form-field.svg +1 -1
  794. package/dist/svg/form-filled.svg +1 -1
  795. package/dist/svg/form.svg +1 -1
  796. package/dist/svg/fullscreen.svg +1 -1
  797. package/dist/svg/funnel.svg +1 -1
  798. package/dist/svg/gear-filled.svg +1 -1
  799. package/dist/svg/gear.svg +1 -1
  800. package/dist/svg/grant-offer.svg +1 -1
  801. package/dist/svg/handle-2-vertical.svg +1 -1
  802. package/dist/svg/handle-2.svg +1 -1
  803. package/dist/svg/handle.svg +1 -1
  804. package/dist/svg/hashtag.svg +1 -1
  805. package/dist/svg/hd-video.svg +1 -1
  806. package/dist/svg/heading-1.svg +1 -1
  807. package/dist/svg/heading-2.svg +1 -1
  808. package/dist/svg/heading-3.svg +1 -1
  809. package/dist/svg/heading-4.svg +1 -1
  810. package/dist/svg/heading-5.svg +1 -1
  811. package/dist/svg/heading-6.svg +1 -1
  812. package/dist/svg/heading-large.svg +1 -1
  813. package/dist/svg/heading-small.svg +1 -1
  814. package/dist/svg/headset.svg +1 -1
  815. package/dist/svg/help-filled.svg +1 -1
  816. package/dist/svg/help.svg +1 -1
  817. package/dist/svg/home-alt.svg +1 -1
  818. package/dist/svg/home-filled.svg +1 -1
  819. package/dist/svg/home.svg +1 -1
  820. package/dist/svg/horizontal-line.svg +1 -1
  821. package/dist/svg/image.svg +1 -1
  822. package/dist/svg/info-circle-filled.svg +1 -1
  823. package/dist/svg/info-circle.svg +1 -1
  824. package/dist/svg/ios-battery.svg +1 -1
  825. package/dist/svg/ios-data.svg +1 -1
  826. package/dist/svg/ios-wifi.svg +1 -1
  827. package/dist/svg/italic.svg +1 -1
  828. package/dist/svg/kajabi-filled.svg +1 -1
  829. package/dist/svg/kajabi.svg +1 -1
  830. package/dist/svg/klarna.svg +1 -1
  831. package/dist/svg/lab.svg +1 -1
  832. package/dist/svg/launch.svg +1 -1
  833. package/dist/svg/layout-grid.svg +1 -1
  834. package/dist/svg/layout-list.svg +1 -1
  835. package/dist/svg/left-small.svg +1 -1
  836. package/dist/svg/list-bullet.svg +1 -1
  837. package/dist/svg/list-details.svg +1 -1
  838. package/dist/svg/list-numbers.svg +1 -1
  839. package/dist/svg/location.svg +1 -1
  840. package/dist/svg/lock-alt.svg +1 -1
  841. package/dist/svg/lock.svg +1 -1
  842. package/dist/svg/logo-afterpay.svg +1 -1
  843. package/dist/svg/logo-facebook-round.svg +1 -1
  844. package/dist/svg/logo-facebook.svg +1 -1
  845. package/dist/svg/logo-instagram.svg +1 -1
  846. package/dist/svg/logo-linkedin.svg +1 -1
  847. package/dist/svg/logo-tiktok.svg +1 -1
  848. package/dist/svg/logo-twitter-x.svg +1 -1
  849. package/dist/svg/logo-twitter.svg +1 -1
  850. package/dist/svg/logo-youtube.svg +1 -1
  851. package/dist/svg/loop.svg +1 -1
  852. package/dist/svg/mail-filled.svg +1 -1
  853. package/dist/svg/mail-open.svg +1 -1
  854. package/dist/svg/mail.svg +1 -1
  855. package/dist/svg/map.svg +1 -1
  856. package/dist/svg/mapped.svg +1 -1
  857. package/dist/svg/margin-left.svg +1 -1
  858. package/dist/svg/margin-right.svg +1 -1
  859. package/dist/svg/marker-filled.svg +1 -1
  860. package/dist/svg/marker.svg +1 -1
  861. package/dist/svg/megaphone-filled.svg +1 -1
  862. package/dist/svg/megaphone.svg +1 -1
  863. package/dist/svg/menu-alt.svg +1 -1
  864. package/dist/svg/menu-bordered.svg +1 -0
  865. package/dist/svg/menu.svg +1 -1
  866. package/dist/svg/merge.svg +1 -1
  867. package/dist/svg/microphone-off.svg +1 -1
  868. package/dist/svg/microphone.svg +1 -1
  869. package/dist/svg/monitor-filled.svg +1 -1
  870. package/dist/svg/monitor.svg +1 -1
  871. package/dist/svg/more-menu-filled.svg +1 -1
  872. package/dist/svg/more-menu.svg +1 -1
  873. package/dist/svg/move-left.svg +1 -1
  874. package/dist/svg/move-right.svg +1 -1
  875. package/dist/svg/multi-pay.svg +1 -1
  876. package/dist/svg/newsletter-2.svg +1 -1
  877. package/dist/svg/newsletter.svg +1 -1
  878. package/dist/svg/one-off-session.svg +1 -1
  879. package/dist/svg/one-time.svg +1 -1
  880. package/dist/svg/packages.svg +1 -0
  881. package/dist/svg/pause-circle.svg +1 -1
  882. package/dist/svg/pause.svg +1 -1
  883. package/dist/svg/payout.svg +1 -1
  884. package/dist/svg/pen.svg +1 -1
  885. package/dist/svg/phone-portrait.svg +1 -1
  886. package/dist/svg/phone-toolbar-filled.svg +1 -1
  887. package/dist/svg/phone-toolbar.svg +1 -1
  888. package/dist/svg/play-circle.svg +1 -1
  889. package/dist/svg/play-outline.svg +1 -1
  890. package/dist/svg/play-store.svg +1 -1
  891. package/dist/svg/play.svg +1 -1
  892. package/dist/svg/plug.svg +1 -1
  893. package/dist/svg/premium.svg +1 -1
  894. package/dist/svg/present.svg +1 -1
  895. package/dist/svg/preview-off.svg +1 -1
  896. package/dist/svg/preview-on.svg +1 -1
  897. package/dist/svg/product-filled.svg +1 -1
  898. package/dist/svg/product.svg +1 -1
  899. package/dist/svg/question-circle.svg +1 -1
  900. package/dist/svg/quote.svg +1 -1
  901. package/dist/svg/redo.svg +1 -1
  902. package/dist/svg/refresh.svg +1 -1
  903. package/dist/svg/remove-circle.svg +1 -1
  904. package/dist/svg/remove.svg +1 -1
  905. package/dist/svg/rename.svg +1 -1
  906. package/dist/svg/reset-password.svg +1 -1
  907. package/dist/svg/restore.svg +1 -1
  908. package/dist/svg/right-small.svg +1 -1
  909. package/dist/svg/rocket-filled.svg +1 -1
  910. package/dist/svg/rocket.svg +1 -1
  911. package/dist/svg/round-dollar.svg +1 -1
  912. package/dist/svg/rows.svg +1 -1
  913. package/dist/svg/scissor.svg +1 -1
  914. package/dist/svg/screen-share-off.svg +1 -1
  915. package/dist/svg/screen-share-on.svg +1 -1
  916. package/dist/svg/search-small.svg +1 -1
  917. package/dist/svg/search.svg +1 -1
  918. package/dist/svg/send-message.svg +1 -1
  919. package/dist/svg/sequences.svg +1 -1
  920. package/dist/svg/share.svg +1 -1
  921. package/dist/svg/skipped.svg +1 -1
  922. package/dist/svg/slash-divider.svg +1 -1
  923. package/dist/svg/speaker.svg +1 -1
  924. package/dist/svg/stack.svg +1 -1
  925. package/dist/svg/star.svg +1 -1
  926. package/dist/svg/stop.svg +1 -1
  927. package/dist/svg/stopwatch.svg +1 -1
  928. package/dist/svg/strikethrough.svg +1 -1
  929. package/dist/svg/subscript.svg +1 -1
  930. package/dist/svg/subscriptions.svg +1 -1
  931. package/dist/svg/super-admin.svg +1 -1
  932. package/dist/svg/superscript.svg +1 -1
  933. package/dist/svg/sync.svg +1 -1
  934. package/dist/svg/tablet-landscape.svg +1 -1
  935. package/dist/svg/tablet-portrait.svg +1 -1
  936. package/dist/svg/tag-filled.svg +1 -1
  937. package/dist/svg/tag.svg +1 -1
  938. package/dist/svg/text-styles.svg +1 -1
  939. package/dist/svg/theme-store-filled.svg +1 -1
  940. package/dist/svg/theme-store.svg +1 -1
  941. package/dist/svg/thumb-down-filled.svg +1 -1
  942. package/dist/svg/thumb-down.svg +1 -1
  943. package/dist/svg/thumb-up-filled.svg +1 -1
  944. package/dist/svg/thumb-up.svg +1 -1
  945. package/dist/svg/trash.svg +1 -1
  946. package/dist/svg/trophy.svg +1 -0
  947. package/dist/svg/underline.svg +1 -1
  948. package/dist/svg/undo.svg +1 -1
  949. package/dist/svg/unlock.svg +1 -1
  950. package/dist/svg/unmapped.svg +1 -1
  951. package/dist/svg/up-small.svg +1 -1
  952. package/dist/svg/upload.svg +1 -1
  953. package/dist/svg/url.svg +1 -1
  954. package/dist/svg/user-circle-filled.svg +1 -1
  955. package/dist/svg/user-circle.svg +1 -1
  956. package/dist/svg/user-filled.svg +1 -1
  957. package/dist/svg/user-star-filled.svg +1 -1
  958. package/dist/svg/user-star.svg +1 -1
  959. package/dist/svg/user.svg +1 -1
  960. package/dist/svg/users-alt.svg +1 -1
  961. package/dist/svg/users.svg +1 -1
  962. package/dist/svg/video-off.svg +1 -1
  963. package/dist/svg/video-on.svg +1 -1
  964. package/dist/svg/warning-filled.svg +1 -1
  965. package/dist/svg/warning.svg +1 -1
  966. package/dist/svg/window-paragraph.svg +1 -1
  967. package/dist/svg/world.svg +1 -1
  968. package/dist/svg/wrench.svg +1 -1
  969. package/dist/types/stencil-public-runtime.d.ts +3 -8
  970. package/icons/index.d.ts +6 -3
  971. package/icons/index.js +304 -301
  972. package/icons/index.mjs +304 -301
  973. package/icons/package.json +1 -1
  974. package/package.json +3 -2
  975. package/dist/cjs/index-30789db3.js +0 -1833
  976. package/dist/cjs/index-30789db3.js.map +0 -1
  977. package/dist/cjs/utils-c1c85b71.js.map +0 -1
  978. package/dist/collection/components/pds-icon/svg/menu-2.svg +0 -1
  979. package/dist/collection/components/pds-icon/svg/package.svg +0 -1
  980. package/dist/esm/index-68ccb33c.js +0 -1805
  981. package/dist/esm/index-68ccb33c.js.map +0 -1
  982. package/dist/esm/polyfills/core-js.js +0 -11
  983. package/dist/esm/polyfills/dom.js +0 -79
  984. package/dist/esm/polyfills/es5-html-element.js +0 -1
  985. package/dist/esm/polyfills/index.js +0 -34
  986. package/dist/esm/polyfills/system.js +0 -6
  987. package/dist/esm/utils-bff5219d.js.map +0 -1
  988. package/dist/pds-icons/p-194a0f36.js +0 -3
  989. package/dist/pds-icons/p-194a0f36.js.map +0 -1
  990. package/dist/pds-icons/p-60645170.js +0 -2
  991. package/dist/pds-icons/p-91ce3f72.entry.js +0 -2
  992. package/dist/pds-icons/p-91ce3f72.entry.js.map +0 -1
  993. package/dist/pds-icons/svg/menu-2.svg +0 -1
  994. package/dist/pds-icons/svg/package.svg +0 -1
  995. package/dist/svg/menu-2.svg +0 -1
  996. package/dist/svg/package.svg +0 -1
@@ -1,1805 +0,0 @@
1
- const NAMESPACE = 'pds-icons';
2
-
3
- /**
4
- * Virtual DOM patching algorithm based on Snabbdom by
5
- * Simon Friis Vindum (@paldepind)
6
- * Licensed under the MIT License
7
- * https://github.com/snabbdom/snabbdom/blob/master/LICENSE
8
- *
9
- * Modified for Stencil's renderer and slot projection
10
- */
11
- let scopeId;
12
- let hostTagName;
13
- let isSvgMode = false;
14
- let queuePending = false;
15
- const createTime = (fnName, tagName = '') => {
16
- {
17
- return () => {
18
- return;
19
- };
20
- }
21
- };
22
- const uniqueTime = (key, measureText) => {
23
- {
24
- return () => {
25
- return;
26
- };
27
- }
28
- };
29
- const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
30
- /**
31
- * Constant for styles to be globally applied to `slot-fb` elements for pseudo-slot behavior.
32
- *
33
- * Two cascading rules must be used instead of a `:not()` selector due to Stencil browser
34
- * support as of Stencil v4.
35
- */
36
- const SLOT_FB_CSS = 'slot-fb{display:contents}slot-fb[hidden]{display:none}';
37
- const XLINK_NS = 'http://www.w3.org/1999/xlink';
38
- /**
39
- * Default style mode id
40
- */
41
- /**
42
- * Reusable empty obj/array
43
- * Don't add values to these!!
44
- */
45
- const EMPTY_OBJ = {};
46
- const isDef = (v) => v != null;
47
- /**
48
- * Check whether a value is a 'complex type', defined here as an object or a
49
- * function.
50
- *
51
- * @param o the value to check
52
- * @returns whether it's a complex type or not
53
- */
54
- const isComplexType = (o) => {
55
- // https://jsperf.com/typeof-fn-object/5
56
- o = typeof o;
57
- return o === 'object' || o === 'function';
58
- };
59
- /**
60
- * Helper method for querying a `meta` tag that contains a nonce value
61
- * out of a DOM's head.
62
- *
63
- * @param doc The DOM containing the `head` to query against
64
- * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag
65
- * exists or the tag has no content.
66
- */
67
- function queryNonceMetaTagContent(doc) {
68
- var _a, _b, _c;
69
- return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;
70
- }
71
- /**
72
- * Production h() function based on Preact by
73
- * Jason Miller (@developit)
74
- * Licensed under the MIT License
75
- * https://github.com/developit/preact/blob/master/LICENSE
76
- *
77
- * Modified for Stencil's compiler and vdom
78
- */
79
- // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
80
- // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
81
- const h = (nodeName, vnodeData, ...children) => {
82
- let child = null;
83
- let key = null;
84
- let simple = false;
85
- let lastSimple = false;
86
- const vNodeChildren = [];
87
- const walk = (c) => {
88
- for (let i = 0; i < c.length; i++) {
89
- child = c[i];
90
- if (Array.isArray(child)) {
91
- walk(child);
92
- }
93
- else if (child != null && typeof child !== 'boolean') {
94
- if ((simple = typeof nodeName !== 'function' && !isComplexType(child))) {
95
- child = String(child);
96
- }
97
- if (simple && lastSimple) {
98
- // If the previous child was simple (string), we merge both
99
- vNodeChildren[vNodeChildren.length - 1].$text$ += child;
100
- }
101
- else {
102
- // Append a new vNode, if it's text, we create a text vNode
103
- vNodeChildren.push(simple ? newVNode(null, child) : child);
104
- }
105
- lastSimple = simple;
106
- }
107
- }
108
- };
109
- walk(children);
110
- if (vnodeData) {
111
- if (vnodeData.key) {
112
- key = vnodeData.key;
113
- }
114
- // normalize class / className attributes
115
- {
116
- const classData = vnodeData.className || vnodeData.class;
117
- if (classData) {
118
- vnodeData.class =
119
- typeof classData !== 'object'
120
- ? classData
121
- : Object.keys(classData)
122
- .filter((k) => classData[k])
123
- .join(' ');
124
- }
125
- }
126
- }
127
- const vnode = newVNode(nodeName, null);
128
- vnode.$attrs$ = vnodeData;
129
- if (vNodeChildren.length > 0) {
130
- vnode.$children$ = vNodeChildren;
131
- }
132
- {
133
- vnode.$key$ = key;
134
- }
135
- return vnode;
136
- };
137
- /**
138
- * A utility function for creating a virtual DOM node from a tag and some
139
- * possible text content.
140
- *
141
- * @param tag the tag for this element
142
- * @param text possible text content for the node
143
- * @returns a newly-minted virtual DOM node
144
- */
145
- const newVNode = (tag, text) => {
146
- const vnode = {
147
- $flags$: 0,
148
- $tag$: tag,
149
- $text$: text,
150
- $elm$: null,
151
- $children$: null,
152
- };
153
- {
154
- vnode.$attrs$ = null;
155
- }
156
- {
157
- vnode.$key$ = null;
158
- }
159
- return vnode;
160
- };
161
- const Host = {};
162
- /**
163
- * Check whether a given node is a Host node or not
164
- *
165
- * @param node the virtual DOM node to check
166
- * @returns whether it's a Host node or not
167
- */
168
- const isHost = (node) => node && node.$tag$ === Host;
169
- /**
170
- * Parse a new property value for a given property type.
171
- *
172
- * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
173
- * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
174
- * 1. `any`, the type given to `propValue` in the function signature
175
- * 2. the type stored from `propType`.
176
- *
177
- * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
178
- *
179
- * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
180
- * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
181
- * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
182
- * ```tsx
183
- * <my-cmp prop-val={0}></my-cmp>
184
- * ```
185
- *
186
- * HTML prop values on the other hand, will always a string
187
- *
188
- * @param propValue the new value to coerce to some type
189
- * @param propType the type of the prop, expressed as a binary number
190
- * @returns the parsed/coerced value
191
- */
192
- const parsePropertyValue = (propValue, propType) => {
193
- // ensure this value is of the correct prop type
194
- if (propValue != null && !isComplexType(propValue)) {
195
- if (propType & 1 /* MEMBER_FLAGS.String */) {
196
- // could have been passed as a number or boolean
197
- // but we still want it as a string
198
- return String(propValue);
199
- }
200
- // redundant return here for better minification
201
- return propValue;
202
- }
203
- // not sure exactly what type we want
204
- // so no need to change to a different type
205
- return propValue;
206
- };
207
- const getElement = (ref) => (getHostRef(ref).$hostElement$ );
208
- /**
209
- * Helper function to create & dispatch a custom Event on a provided target
210
- * @param elm the target of the Event
211
- * @param name the name to give the custom Event
212
- * @param opts options for configuring a custom Event
213
- * @returns the custom Event
214
- */
215
- const emitEvent = (elm, name, opts) => {
216
- const ev = plt.ce(name, opts);
217
- elm.dispatchEvent(ev);
218
- return ev;
219
- };
220
- const rootAppliedStyles = /*@__PURE__*/ new WeakMap();
221
- const registerStyle = (scopeId, cssText, allowCS) => {
222
- let style = styles.get(scopeId);
223
- if (supportsConstructableStylesheets && allowCS) {
224
- style = (style || new CSSStyleSheet());
225
- if (typeof style === 'string') {
226
- style = cssText;
227
- }
228
- else {
229
- style.replaceSync(cssText);
230
- }
231
- }
232
- else {
233
- style = cssText;
234
- }
235
- styles.set(scopeId, style);
236
- };
237
- const addStyle = (styleContainerNode, cmpMeta, mode) => {
238
- var _a;
239
- const scopeId = getScopeId(cmpMeta);
240
- const style = styles.get(scopeId);
241
- // if an element is NOT connected then getRootNode() will return the wrong root node
242
- // so the fallback is to always use the document for the root node in those cases
243
- styleContainerNode = styleContainerNode.nodeType === 11 /* NODE_TYPE.DocumentFragment */ ? styleContainerNode : doc;
244
- if (style) {
245
- if (typeof style === 'string') {
246
- styleContainerNode = styleContainerNode.head || styleContainerNode;
247
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
248
- let styleElm;
249
- if (!appliedStyles) {
250
- rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
251
- }
252
- if (!appliedStyles.has(scopeId)) {
253
- {
254
- styleElm = doc.createElement('style');
255
- styleElm.innerHTML = style;
256
- // Apply CSP nonce to the style tag if it exists
257
- const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
258
- if (nonce != null) {
259
- styleElm.setAttribute('nonce', nonce);
260
- }
261
- styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
262
- }
263
- // Add styles for `slot-fb` elements if we're using slots outside the Shadow DOM
264
- if (cmpMeta.$flags$ & 4 /* CMP_FLAGS.hasSlotRelocation */) {
265
- styleElm.innerHTML += SLOT_FB_CSS;
266
- }
267
- if (appliedStyles) {
268
- appliedStyles.add(scopeId);
269
- }
270
- }
271
- }
272
- else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
273
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
274
- }
275
- }
276
- return scopeId;
277
- };
278
- const attachStyles = (hostRef) => {
279
- const cmpMeta = hostRef.$cmpMeta$;
280
- const elm = hostRef.$hostElement$;
281
- const flags = cmpMeta.$flags$;
282
- const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
283
- const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
284
- if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
285
- // only required when we're NOT using native shadow dom (slot)
286
- // or this browser doesn't support native shadow dom
287
- // and this host element was NOT created with SSR
288
- // let's pick out the inner content for slot projection
289
- // create a node to represent where the original
290
- // content was first placed, which is useful later on
291
- // DOM WRITE!!
292
- elm['s-sc'] = scopeId;
293
- elm.classList.add(scopeId + '-h');
294
- }
295
- endAttachStyles();
296
- };
297
- const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
298
- /**
299
- * Production setAccessor() function based on Preact by
300
- * Jason Miller (@developit)
301
- * Licensed under the MIT License
302
- * https://github.com/developit/preact/blob/master/LICENSE
303
- *
304
- * Modified for Stencil's compiler and vdom
305
- */
306
- /**
307
- * When running a VDom render set properties present on a VDom node onto the
308
- * corresponding HTML element.
309
- *
310
- * Note that this function has special functionality for the `class`,
311
- * `style`, `key`, and `ref` attributes, as well as event handlers (like
312
- * `onClick`, etc). All others are just passed through as-is.
313
- *
314
- * @param elm the HTMLElement onto which attributes should be set
315
- * @param memberName the name of the attribute to set
316
- * @param oldValue the old value for the attribute
317
- * @param newValue the new value for the attribute
318
- * @param isSvg whether we're in an svg context or not
319
- * @param flags bitflags for Vdom variables
320
- */
321
- const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
322
- if (oldValue !== newValue) {
323
- let isProp = isMemberInElement(elm, memberName);
324
- let ln = memberName.toLowerCase();
325
- if (memberName === 'class') {
326
- const classList = elm.classList;
327
- const oldClasses = parseClassList(oldValue);
328
- const newClasses = parseClassList(newValue);
329
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
330
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
331
- }
332
- else if (memberName === 'style') {
333
- // update style attribute, css properties and values
334
- {
335
- for (const prop in oldValue) {
336
- if (!newValue || newValue[prop] == null) {
337
- if (prop.includes('-')) {
338
- elm.style.removeProperty(prop);
339
- }
340
- else {
341
- elm.style[prop] = '';
342
- }
343
- }
344
- }
345
- }
346
- for (const prop in newValue) {
347
- if (!oldValue || newValue[prop] !== oldValue[prop]) {
348
- if (prop.includes('-')) {
349
- elm.style.setProperty(prop, newValue[prop]);
350
- }
351
- else {
352
- elm.style[prop] = newValue[prop];
353
- }
354
- }
355
- }
356
- }
357
- else if (memberName === 'key')
358
- ;
359
- else if (memberName === 'ref') {
360
- // minifier will clean this up
361
- if (newValue) {
362
- newValue(elm);
363
- }
364
- }
365
- else if ((!isProp ) &&
366
- memberName[0] === 'o' &&
367
- memberName[1] === 'n') {
368
- // Event Handlers
369
- // so if the member name starts with "on" and the 3rd characters is
370
- // a capital letter, and it's not already a member on the element,
371
- // then we're assuming it's an event listener
372
- if (memberName[2] === '-') {
373
- // on- prefixed events
374
- // allows to be explicit about the dom event to listen without any magic
375
- // under the hood:
376
- // <my-cmp on-click> // listens for "click"
377
- // <my-cmp on-Click> // listens for "Click"
378
- // <my-cmp on-ionChange> // listens for "ionChange"
379
- // <my-cmp on-EVENTS> // listens for "EVENTS"
380
- memberName = memberName.slice(3);
381
- }
382
- else if (isMemberInElement(win, ln)) {
383
- // standard event
384
- // the JSX attribute could have been "onMouseOver" and the
385
- // member name "onmouseover" is on the window's prototype
386
- // so let's add the listener "mouseover", which is all lowercased
387
- memberName = ln.slice(2);
388
- }
389
- else {
390
- // custom event
391
- // the JSX attribute could have been "onMyCustomEvent"
392
- // so let's trim off the "on" prefix and lowercase the first character
393
- // and add the listener "myCustomEvent"
394
- // except for the first character, we keep the event name case
395
- memberName = ln[2] + memberName.slice(3);
396
- }
397
- if (oldValue || newValue) {
398
- // Need to account for "capture" events.
399
- // If the event name ends with "Capture", we'll update the name to remove
400
- // the "Capture" suffix and make sure the event listener is setup to handle the capture event.
401
- const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
402
- // Make sure we only replace the last instance of "Capture"
403
- memberName = memberName.replace(CAPTURE_EVENT_REGEX, '');
404
- if (oldValue) {
405
- plt.rel(elm, memberName, oldValue, capture);
406
- }
407
- if (newValue) {
408
- plt.ael(elm, memberName, newValue, capture);
409
- }
410
- }
411
- }
412
- else {
413
- // Set property if it exists and it's not a SVG
414
- const isComplex = isComplexType(newValue);
415
- if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
416
- try {
417
- if (!elm.tagName.includes('-')) {
418
- const n = newValue == null ? '' : newValue;
419
- // Workaround for Safari, moving the <input> caret when re-assigning the same valued
420
- if (memberName === 'list') {
421
- isProp = false;
422
- }
423
- else if (oldValue == null || elm[memberName] != n) {
424
- elm[memberName] = n;
425
- }
426
- }
427
- else {
428
- elm[memberName] = newValue;
429
- }
430
- }
431
- catch (e) {
432
- /**
433
- * in case someone tries to set a read-only property, e.g. "namespaceURI", we just ignore it
434
- */
435
- }
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 /* VNODE_FLAGS.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
- /**
475
- * Parsed a string of classnames into an array
476
- * @param value className string, e.g. "foo bar baz"
477
- * @returns list of classes, e.g. ["foo", "bar", "baz"]
478
- */
479
- const parseClassList = (value) => (!value ? [] : value.split(parseClassListRegex));
480
- const CAPTURE_EVENT_SUFFIX = 'Capture';
481
- const CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + '$');
482
- const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
483
- // if the element passed in is a shadow root, which is a document fragment
484
- // then we want to be adding attrs/props to the shadow root's "host" element
485
- // if it's not a shadow root, then we add attrs/props to the same element
486
- const elm = newVnode.$elm$.nodeType === 11 /* NODE_TYPE.DocumentFragment */ && newVnode.$elm$.host
487
- ? newVnode.$elm$.host
488
- : newVnode.$elm$;
489
- const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
490
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
491
- {
492
- // remove attributes no longer present on the vnode by setting them to undefined
493
- for (memberName in oldVnodeAttrs) {
494
- if (!(memberName in newVnodeAttrs)) {
495
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], undefined, isSvgMode, newVnode.$flags$);
496
- }
497
- }
498
- }
499
- // add new & update changed attributes
500
- for (memberName in newVnodeAttrs) {
501
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
502
- }
503
- };
504
- /**
505
- * Create a DOM Node corresponding to one of the children of a given VNode.
506
- *
507
- * @param oldParentVNode the parent VNode from the previous render
508
- * @param newParentVNode the parent VNode from the current render
509
- * @param childIndex the index of the VNode, in the _new_ parent node's
510
- * children, for which we will create a new DOM node
511
- * @param parentElm the parent DOM node which our new node will be a child of
512
- * @returns the newly created node
513
- */
514
- const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
515
- // tslint:disable-next-line: prefer-const
516
- const newVNode = newParentVNode.$children$[childIndex];
517
- let i = 0;
518
- let elm;
519
- let childNode;
520
- if (newVNode.$text$ !== null) {
521
- // create text node
522
- elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
523
- }
524
- else {
525
- // create element
526
- elm = newVNode.$elm$ = (doc.createElement(newVNode.$tag$));
527
- // add css classes, attrs, props, listeners, etc.
528
- {
529
- updateElement(null, newVNode, isSvgMode);
530
- }
531
- if (isDef(scopeId) && elm['s-si'] !== scopeId) {
532
- // if there is a scopeId and this is the initial render
533
- // then let's add the scopeId as a css class
534
- elm.classList.add((elm['s-si'] = scopeId));
535
- }
536
- if (newVNode.$children$) {
537
- for (i = 0; i < newVNode.$children$.length; ++i) {
538
- // create the node
539
- childNode = createElm(oldParentVNode, newVNode, i);
540
- // return node could have been null
541
- if (childNode) {
542
- // append our new node
543
- elm.appendChild(childNode);
544
- }
545
- }
546
- }
547
- }
548
- return elm;
549
- };
550
- /**
551
- * Create DOM nodes corresponding to a list of {@link d.Vnode} objects and
552
- * add them to the DOM in the appropriate place.
553
- *
554
- * @param parentElm the DOM node which should be used as a parent for the new
555
- * DOM nodes
556
- * @param before a child of the `parentElm` which the new children should be
557
- * inserted before (optional)
558
- * @param parentVNode the parent virtual DOM node
559
- * @param vnodes the new child virtual DOM nodes to produce DOM nodes for
560
- * @param startIdx the index in the child virtual DOM nodes at which to start
561
- * creating DOM nodes (inclusive)
562
- * @param endIdx the index in the child virtual DOM nodes at which to stop
563
- * creating DOM nodes (inclusive)
564
- */
565
- const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
566
- let containerElm = (parentElm);
567
- let childNode;
568
- if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
569
- containerElm = containerElm.shadowRoot;
570
- }
571
- for (; startIdx <= endIdx; ++startIdx) {
572
- if (vnodes[startIdx]) {
573
- childNode = createElm(null, parentVNode, startIdx);
574
- if (childNode) {
575
- vnodes[startIdx].$elm$ = childNode;
576
- containerElm.insertBefore(childNode, before);
577
- }
578
- }
579
- }
580
- };
581
- /**
582
- * Remove the DOM elements corresponding to a list of {@link d.VNode} objects.
583
- * This can be used to, for instance, clean up after a list of children which
584
- * should no longer be shown.
585
- *
586
- * This function also handles some of Stencil's slot relocation logic.
587
- *
588
- * @param vnodes a list of virtual DOM nodes to remove
589
- * @param startIdx the index at which to start removing nodes (inclusive)
590
- * @param endIdx the index at which to stop removing nodes (inclusive)
591
- */
592
- const removeVnodes = (vnodes, startIdx, endIdx) => {
593
- for (let index = startIdx; index <= endIdx; ++index) {
594
- const vnode = vnodes[index];
595
- if (vnode) {
596
- const elm = vnode.$elm$;
597
- nullifyVNodeRefs(vnode);
598
- if (elm) {
599
- // remove the vnode's element from the dom
600
- elm.remove();
601
- }
602
- }
603
- }
604
- };
605
- /**
606
- * Reconcile the children of a new VNode with the children of an old VNode by
607
- * traversing the two collections of children, identifying nodes that are
608
- * conserved or changed, calling out to `patch` to make any necessary
609
- * updates to the DOM, and rearranging DOM nodes as needed.
610
- *
611
- * The algorithm for reconciling children works by analyzing two 'windows' onto
612
- * the two arrays of children (`oldCh` and `newCh`). We keep track of the
613
- * 'windows' by storing start and end indices and references to the
614
- * corresponding array entries. Initially the two 'windows' are basically equal
615
- * to the entire array, but we progressively narrow the windows until there are
616
- * no children left to update by doing the following:
617
- *
618
- * 1. Skip any `null` entries at the beginning or end of the two arrays, so
619
- * that if we have an initial array like the following we'll end up dealing
620
- * only with a window bounded by the highlighted elements:
621
- *
622
- * [null, null, VNode1 , ... , VNode2, null, null]
623
- * ^^^^^^ ^^^^^^
624
- *
625
- * 2. Check to see if the elements at the head and tail positions are equal
626
- * across the windows. This will basically detect elements which haven't
627
- * been added, removed, or changed position, i.e. if you had the following
628
- * VNode elements (represented as HTML):
629
- *
630
- * oldVNode: `<div><p><span>HEY</span></p></div>`
631
- * newVNode: `<div><p><span>THERE</span></p></div>`
632
- *
633
- * Then when comparing the children of the `<div>` tag we check the equality
634
- * of the VNodes corresponding to the `<p>` tags and, since they are the
635
- * same tag in the same position, we'd be able to avoid completely
636
- * re-rendering the subtree under them with a new DOM element and would just
637
- * call out to `patch` to handle reconciling their children and so on.
638
- *
639
- * 3. Check, for both windows, to see if the element at the beginning of the
640
- * window corresponds to the element at the end of the other window. This is
641
- * a heuristic which will let us identify _some_ situations in which
642
- * elements have changed position, for instance it _should_ detect that the
643
- * children nodes themselves have not changed but merely moved in the
644
- * following example:
645
- *
646
- * oldVNode: `<div><element-one /><element-two /></div>`
647
- * newVNode: `<div><element-two /><element-one /></div>`
648
- *
649
- * If we find cases like this then we also need to move the concrete DOM
650
- * elements corresponding to the moved children to write the re-order to the
651
- * DOM.
652
- *
653
- * 4. Finally, if VNodes have the `key` attribute set on them we check for any
654
- * nodes in the old children which have the same key as the first element in
655
- * our window on the new children. If we find such a node we handle calling
656
- * out to `patch`, moving relevant DOM nodes, and so on, in accordance with
657
- * what we find.
658
- *
659
- * Finally, once we've narrowed our 'windows' to the point that either of them
660
- * collapse (i.e. they have length 0) we then handle any remaining VNode
661
- * insertion or deletion that needs to happen to get a DOM state that correctly
662
- * reflects the new child VNodes. If, for instance, after our window on the old
663
- * children has collapsed we still have more nodes on the new children that
664
- * we haven't dealt with yet then we need to add them, or if the new children
665
- * collapse but we still have unhandled _old_ children then we need to make
666
- * sure the corresponding DOM nodes are removed.
667
- *
668
- * @param parentElm the node into which the parent VNode is rendered
669
- * @param oldCh the old children of the parent node
670
- * @param newVNode the new VNode which will replace the parent
671
- * @param newCh the new children of the parent node
672
- */
673
- const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
674
- let oldStartIdx = 0;
675
- let newStartIdx = 0;
676
- let idxInOld = 0;
677
- let i = 0;
678
- let oldEndIdx = oldCh.length - 1;
679
- let oldStartVnode = oldCh[0];
680
- let oldEndVnode = oldCh[oldEndIdx];
681
- let newEndIdx = newCh.length - 1;
682
- let newStartVnode = newCh[0];
683
- let newEndVnode = newCh[newEndIdx];
684
- let node;
685
- let elmToMove;
686
- while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
687
- if (oldStartVnode == null) {
688
- // VNode might have been moved left
689
- oldStartVnode = oldCh[++oldStartIdx];
690
- }
691
- else if (oldEndVnode == null) {
692
- oldEndVnode = oldCh[--oldEndIdx];
693
- }
694
- else if (newStartVnode == null) {
695
- newStartVnode = newCh[++newStartIdx];
696
- }
697
- else if (newEndVnode == null) {
698
- newEndVnode = newCh[--newEndIdx];
699
- }
700
- else if (isSameVnode(oldStartVnode, newStartVnode)) {
701
- // if the start nodes are the same then we should patch the new VNode
702
- // onto the old one, and increment our `newStartIdx` and `oldStartIdx`
703
- // indices to reflect that. We don't need to move any DOM Nodes around
704
- // since things are matched up in order.
705
- patch(oldStartVnode, newStartVnode);
706
- oldStartVnode = oldCh[++oldStartIdx];
707
- newStartVnode = newCh[++newStartIdx];
708
- }
709
- else if (isSameVnode(oldEndVnode, newEndVnode)) {
710
- // likewise, if the end nodes are the same we patch new onto old and
711
- // decrement our end indices, and also likewise in this case we don't
712
- // need to move any DOM Nodes.
713
- patch(oldEndVnode, newEndVnode);
714
- oldEndVnode = oldCh[--oldEndIdx];
715
- newEndVnode = newCh[--newEndIdx];
716
- }
717
- else if (isSameVnode(oldStartVnode, newEndVnode)) {
718
- patch(oldStartVnode, newEndVnode);
719
- // We need to move the element for `oldStartVnode` into a position which
720
- // will be appropriate for `newEndVnode`. For this we can use
721
- // `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
722
- // sibling for `oldEndVnode.$elm$` then we want to move the DOM node for
723
- // `oldStartVnode` between `oldEndVnode` and it's sibling, like so:
724
- //
725
- // <old-start-node />
726
- // <some-intervening-node />
727
- // <old-end-node />
728
- // <!-- -> <-- `oldStartVnode.$elm$` should be inserted here
729
- // <next-sibling />
730
- //
731
- // If instead `oldEndVnode.$elm$` has no sibling then we just want to put
732
- // the node for `oldStartVnode` at the end of the children of
733
- // `parentElm`. Luckily, `Node.nextSibling` will return `null` if there
734
- // aren't any siblings, and passing `null` to `Node.insertBefore` will
735
- // append it to the children of the parent element.
736
- parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
737
- oldStartVnode = oldCh[++oldStartIdx];
738
- newEndVnode = newCh[--newEndIdx];
739
- }
740
- else if (isSameVnode(oldEndVnode, newStartVnode)) {
741
- patch(oldEndVnode, newStartVnode);
742
- // We've already checked above if `oldStartVnode` and `newStartVnode` are
743
- // the same node, so since we're here we know that they are not. Thus we
744
- // can move the element for `oldEndVnode` _before_ the element for
745
- // `oldStartVnode`, leaving `oldStartVnode` to be reconciled in the
746
- // future.
747
- parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
748
- oldEndVnode = oldCh[--oldEndIdx];
749
- newStartVnode = newCh[++newStartIdx];
750
- }
751
- else {
752
- // Here we do some checks to match up old and new nodes based on the
753
- // `$key$` attribute, which is set by putting a `key="my-key"` attribute
754
- // in the JSX for a DOM element in the implementation of a Stencil
755
- // component.
756
- //
757
- // First we check to see if there are any nodes in the array of old
758
- // children which have the same key as the first node in the new
759
- // children.
760
- idxInOld = -1;
761
- {
762
- for (i = oldStartIdx; i <= oldEndIdx; ++i) {
763
- if (oldCh[i] && oldCh[i].$key$ !== null && oldCh[i].$key$ === newStartVnode.$key$) {
764
- idxInOld = i;
765
- break;
766
- }
767
- }
768
- }
769
- if (idxInOld >= 0) {
770
- // We found a node in the old children which matches up with the first
771
- // node in the new children! So let's deal with that
772
- elmToMove = oldCh[idxInOld];
773
- if (elmToMove.$tag$ !== newStartVnode.$tag$) {
774
- // the tag doesn't match so we'll need a new DOM element
775
- node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld);
776
- }
777
- else {
778
- patch(elmToMove, newStartVnode);
779
- // invalidate the matching old node so that we won't try to update it
780
- // again later on
781
- oldCh[idxInOld] = undefined;
782
- node = elmToMove.$elm$;
783
- }
784
- newStartVnode = newCh[++newStartIdx];
785
- }
786
- else {
787
- // We either didn't find an element in the old children that matches
788
- // the key of the first new child OR the build is not using `key`
789
- // attributes at all. In either case we need to create a new element
790
- // for the new node.
791
- node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx);
792
- newStartVnode = newCh[++newStartIdx];
793
- }
794
- if (node) {
795
- // if we created a new node then handle inserting it to the DOM
796
- {
797
- oldStartVnode.$elm$.parentNode.insertBefore(node, oldStartVnode.$elm$);
798
- }
799
- }
800
- }
801
- }
802
- if (oldStartIdx > oldEndIdx) {
803
- // we have some more new nodes to add which don't match up with old nodes
804
- addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
805
- }
806
- else if (newStartIdx > newEndIdx) {
807
- // there are nodes in the `oldCh` array which no longer correspond to nodes
808
- // in the new array, so lets remove them (which entails cleaning up the
809
- // relevant DOM nodes)
810
- removeVnodes(oldCh, oldStartIdx, oldEndIdx);
811
- }
812
- };
813
- /**
814
- * Compare two VNodes to determine if they are the same
815
- *
816
- * **NB**: This function is an equality _heuristic_ based on the available
817
- * information set on the two VNodes and can be misleading under certain
818
- * circumstances. In particular, if the two nodes do not have `key` attrs
819
- * (available under `$key$` on VNodes) then the function falls back on merely
820
- * checking that they have the same tag.
821
- *
822
- * So, in other words, if `key` attrs are not set on VNodes which may be
823
- * changing order within a `children` array or something along those lines then
824
- * we could obtain a false negative and then have to do needless re-rendering
825
- * (i.e. we'd say two VNodes aren't equal when in fact they should be).
826
- *
827
- * @param leftVNode the first VNode to check
828
- * @param rightVNode the second VNode to check
829
- * @returns whether they're equal or not
830
- */
831
- const isSameVnode = (leftVNode, rightVNode) => {
832
- // compare if two vnode to see if they're "technically" the same
833
- // need to have the same element tag, and same key to be the same
834
- if (leftVNode.$tag$ === rightVNode.$tag$) {
835
- // this will be set if components in the build have `key` attrs set on them
836
- {
837
- return leftVNode.$key$ === rightVNode.$key$;
838
- }
839
- }
840
- return false;
841
- };
842
- /**
843
- * Handle reconciling an outdated VNode with a new one which corresponds to
844
- * it. This function handles flushing updates to the DOM and reconciling the
845
- * children of the two nodes (if any).
846
- *
847
- * @param oldVNode an old VNode whose DOM element and children we want to update
848
- * @param newVNode a new VNode representing an updated version of the old one
849
- */
850
- const patch = (oldVNode, newVNode) => {
851
- const elm = (newVNode.$elm$ = oldVNode.$elm$);
852
- const oldChildren = oldVNode.$children$;
853
- const newChildren = newVNode.$children$;
854
- const text = newVNode.$text$;
855
- if (text === null) {
856
- {
857
- {
858
- // either this is the first render of an element OR it's an update
859
- // AND we already know it's possible it could have changed
860
- // this updates the element's css classes, attrs, props, listeners, etc.
861
- updateElement(oldVNode, newVNode, isSvgMode);
862
- }
863
- }
864
- if (oldChildren !== null && newChildren !== null) {
865
- // looks like there's child vnodes for both the old and new vnodes
866
- // so we need to call `updateChildren` to reconcile them
867
- updateChildren(elm, oldChildren, newVNode, newChildren);
868
- }
869
- else if (newChildren !== null) {
870
- // no old child vnodes, but there are new child vnodes to add
871
- if (oldVNode.$text$ !== null) {
872
- // the old vnode was text, so be sure to clear it out
873
- elm.textContent = '';
874
- }
875
- // add the new vnode children
876
- addVnodes(elm, null, newVNode, newChildren, 0, newChildren.length - 1);
877
- }
878
- else if (oldChildren !== null) {
879
- // no new child vnodes, but there are old child vnodes to remove
880
- removeVnodes(oldChildren, 0, oldChildren.length - 1);
881
- }
882
- }
883
- else if (oldVNode.$text$ !== text) {
884
- // update the text content for the text only vnode
885
- // and also only if the text is different than before
886
- elm.data = text;
887
- }
888
- };
889
- /**
890
- * 'Nullify' any VDom `ref` callbacks on a VDom node or its children by calling
891
- * them with `null`. This signals that the DOM element corresponding to the VDom
892
- * node has been removed from the DOM.
893
- *
894
- * @param vNode a virtual DOM node
895
- */
896
- const nullifyVNodeRefs = (vNode) => {
897
- {
898
- vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
899
- vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
900
- }
901
- };
902
- /**
903
- * The main entry point for Stencil's virtual DOM-based rendering engine
904
- *
905
- * Given a {@link d.HostRef} container and some virtual DOM nodes, this
906
- * function will handle creating a virtual DOM tree with a single root, patching
907
- * the current virtual DOM tree onto an old one (if any), dealing with slot
908
- * relocation, and reflecting attributes.
909
- *
910
- * @param hostRef data needed to root and render the virtual DOM tree, such as
911
- * the DOM node into which it should be rendered.
912
- * @param renderFnResults the virtual DOM nodes to be rendered
913
- * @param isInitialLoad whether or not this is the first call after page load
914
- */
915
- const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
916
- const hostElm = hostRef.$hostElement$;
917
- const cmpMeta = hostRef.$cmpMeta$;
918
- const oldVNode = hostRef.$vnode$ || newVNode(null, null);
919
- // if `renderFnResults` is a Host node then we can use it directly. If not,
920
- // we need to call `h` again to wrap the children of our component in a
921
- // 'dummy' Host node (well, an empty vnode) since `renderVdom` assumes
922
- // implicitly that the top-level vdom node is 1) an only child and 2)
923
- // contains attrs that need to be set on the host element.
924
- const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
925
- hostTagName = hostElm.tagName;
926
- if (cmpMeta.$attrsToReflect$) {
927
- rootVnode.$attrs$ = rootVnode.$attrs$ || {};
928
- cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
929
- }
930
- // On the first render and *only* on the first render we want to check for
931
- // any attributes set on the host element which are also set on the vdom
932
- // node. If we find them, we override the value on the VDom node attrs with
933
- // the value from the host element, which allows developers building apps
934
- // with Stencil components to override e.g. the `role` attribute on a
935
- // component even if it's already set on the `Host`.
936
- if (isInitialLoad && rootVnode.$attrs$) {
937
- for (const key of Object.keys(rootVnode.$attrs$)) {
938
- // We have a special implementation in `setAccessor` for `style` and
939
- // `class` which reconciles values coming from the VDom with values
940
- // already present on the DOM element, so we don't want to override those
941
- // attributes on the VDom tree with values from the host element if they
942
- // are present.
943
- //
944
- // Likewise, `ref` and `key` are special internal values for the Stencil
945
- // runtime and we don't want to override those either.
946
- if (hostElm.hasAttribute(key) && !['key', 'ref', 'style', 'class'].includes(key)) {
947
- rootVnode.$attrs$[key] = hostElm[key];
948
- }
949
- }
950
- }
951
- rootVnode.$tag$ = null;
952
- rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
953
- hostRef.$vnode$ = rootVnode;
954
- rootVnode.$elm$ = oldVNode.$elm$ = (hostElm.shadowRoot || hostElm );
955
- {
956
- scopeId = hostElm['s-sc'];
957
- }
958
- // synchronous patch
959
- patch(oldVNode, rootVnode);
960
- };
961
- const attachToAncestor = (hostRef, ancestorComponent) => {
962
- if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
963
- ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
964
- }
965
- };
966
- const scheduleUpdate = (hostRef, isInitialLoad) => {
967
- {
968
- hostRef.$flags$ |= 16 /* HOST_FLAGS.isQueuedForUpdate */;
969
- }
970
- if (hostRef.$flags$ & 4 /* HOST_FLAGS.isWaitingForChildren */) {
971
- hostRef.$flags$ |= 512 /* HOST_FLAGS.needsRerender */;
972
- return;
973
- }
974
- attachToAncestor(hostRef, hostRef.$ancestorComponent$);
975
- // there is no ancestor component or the ancestor component
976
- // has already fired off its lifecycle update then
977
- // fire off the initial update
978
- const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
979
- return writeTask(dispatch) ;
980
- };
981
- /**
982
- * Dispatch initial-render and update lifecycle hooks, enqueuing calls to
983
- * component lifecycle methods like `componentWillLoad` as well as
984
- * {@link updateComponent}, which will kick off the virtual DOM re-render.
985
- *
986
- * @param hostRef a reference to a host DOM node
987
- * @param isInitialLoad whether we're on the initial load or not
988
- * @returns an empty Promise which is used to enqueue a series of operations for
989
- * the component
990
- */
991
- const dispatchHooks = (hostRef, isInitialLoad) => {
992
- const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
993
- const instance = hostRef.$lazyInstance$ ;
994
- // We're going to use this variable together with `enqueue` to implement a
995
- // little promise-based queue. We start out with it `undefined`. When we add
996
- // the first function to the queue we'll set this variable to be that
997
- // function's return value. When we attempt to add subsequent values to the
998
- // queue we'll check that value and, if it was a `Promise`, we'll then chain
999
- // the new function off of that `Promise` using `.then()`. This will give our
1000
- // queue two nice properties:
1001
- //
1002
- // 1. If all functions added to the queue are synchronous they'll be called
1003
- // synchronously right away.
1004
- // 2. If all functions added to the queue are asynchronous they'll all be
1005
- // called in order after `dispatchHooks` exits.
1006
- let maybePromise;
1007
- if (isInitialLoad) {
1008
- {
1009
- // If `componentWillLoad` returns a `Promise` then we want to wait on
1010
- // whatever's going on in that `Promise` before we launch into
1011
- // rendering the component, doing other lifecycle stuff, etc. So
1012
- // in that case we assign the returned promise to the variable we
1013
- // declared above to hold a possible 'queueing' Promise
1014
- maybePromise = safeCall(instance, 'componentWillLoad');
1015
- }
1016
- }
1017
- endSchedule();
1018
- return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
1019
- };
1020
- /**
1021
- * This function uses a Promise to implement a simple first-in, first-out queue
1022
- * of functions to be called.
1023
- *
1024
- * The queue is ordered on the basis of the first argument. If it's
1025
- * `undefined`, then nothing is on the queue yet, so the provided function can
1026
- * be called synchronously (although note that this function may return a
1027
- * `Promise`). The idea is that then the return value of that enqueueing
1028
- * operation is kept around, so that if it was a `Promise` then subsequent
1029
- * functions can be enqueued by calling this function again with that `Promise`
1030
- * as the first argument.
1031
- *
1032
- * @param maybePromise either a `Promise` which should resolve before the next function is called or an 'empty' sentinel
1033
- * @param fn a function to enqueue
1034
- * @returns either a `Promise` or the return value of the provided function
1035
- */
1036
- const enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn) : fn();
1037
- /**
1038
- * Check that a value is a `Promise`. To check, we first see if the value is an
1039
- * instance of the `Promise` global. In a few circumstances, in particular if
1040
- * the global has been overwritten, this is could be misleading, so we also do
1041
- * a little 'duck typing' check to see if the `.then` property of the value is
1042
- * defined and a function.
1043
- *
1044
- * @param maybePromise it might be a promise!
1045
- * @returns whether it is or not
1046
- */
1047
- const isPromisey = (maybePromise) => maybePromise instanceof Promise ||
1048
- (maybePromise && maybePromise.then && typeof maybePromise.then === 'function');
1049
- /**
1050
- * Update a component given reference to its host elements and so on.
1051
- *
1052
- * @param hostRef an object containing references to the element's host node,
1053
- * VDom nodes, and other metadata
1054
- * @param instance a reference to the underlying host element where it will be
1055
- * rendered
1056
- * @param isInitialLoad whether or not this function is being called as part of
1057
- * the first render cycle
1058
- */
1059
- const updateComponent = async (hostRef, instance, isInitialLoad) => {
1060
- var _a;
1061
- const elm = hostRef.$hostElement$;
1062
- const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
1063
- const rc = elm['s-rc'];
1064
- if (isInitialLoad) {
1065
- // DOM WRITE!
1066
- attachStyles(hostRef);
1067
- }
1068
- const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
1069
- {
1070
- callRender(hostRef, instance, elm, isInitialLoad);
1071
- }
1072
- if (rc) {
1073
- // ok, so turns out there are some child host elements
1074
- // waiting on this parent element to load
1075
- // let's fire off all update callbacks waiting
1076
- rc.map((cb) => cb());
1077
- elm['s-rc'] = undefined;
1078
- }
1079
- endRender();
1080
- endUpdate();
1081
- {
1082
- const childrenPromises = (_a = elm['s-p']) !== null && _a !== void 0 ? _a : [];
1083
- const postUpdate = () => postUpdateComponent(hostRef);
1084
- if (childrenPromises.length === 0) {
1085
- postUpdate();
1086
- }
1087
- else {
1088
- Promise.all(childrenPromises).then(postUpdate);
1089
- hostRef.$flags$ |= 4 /* HOST_FLAGS.isWaitingForChildren */;
1090
- childrenPromises.length = 0;
1091
- }
1092
- }
1093
- };
1094
- /**
1095
- * Handle making the call to the VDom renderer with the proper context given
1096
- * various build variables
1097
- *
1098
- * @param hostRef an object containing references to the element's host node,
1099
- * VDom nodes, and other metadata
1100
- * @param instance a reference to the underlying host element where it will be
1101
- * rendered
1102
- * @param elm the Host element for the component
1103
- * @param isInitialLoad whether or not this function is being called as part of
1104
- * @returns an empty promise
1105
- */
1106
- const callRender = (hostRef, instance, elm, isInitialLoad) => {
1107
- try {
1108
- /**
1109
- * minification optimization: `allRenderFn` is `true` if all components have a `render`
1110
- * method, so we can call the method immediately. If not, check before calling it.
1111
- */
1112
- instance = instance.render() ;
1113
- {
1114
- hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
1115
- }
1116
- {
1117
- hostRef.$flags$ |= 2 /* HOST_FLAGS.hasRendered */;
1118
- }
1119
- {
1120
- {
1121
- // looks like we've got child nodes to render into this host element
1122
- // or we need to update the css class/attrs on the host element
1123
- // DOM WRITE!
1124
- {
1125
- renderVdom(hostRef, instance, isInitialLoad);
1126
- }
1127
- }
1128
- }
1129
- }
1130
- catch (e) {
1131
- consoleError(e, hostRef.$hostElement$);
1132
- }
1133
- return null;
1134
- };
1135
- const postUpdateComponent = (hostRef) => {
1136
- const tagName = hostRef.$cmpMeta$.$tagName$;
1137
- const elm = hostRef.$hostElement$;
1138
- const endPostUpdate = createTime('postUpdate', tagName);
1139
- const ancestorComponent = hostRef.$ancestorComponent$;
1140
- if (!(hostRef.$flags$ & 64 /* HOST_FLAGS.hasLoadedComponent */)) {
1141
- hostRef.$flags$ |= 64 /* HOST_FLAGS.hasLoadedComponent */;
1142
- {
1143
- // DOM WRITE!
1144
- addHydratedFlag(elm);
1145
- }
1146
- endPostUpdate();
1147
- {
1148
- hostRef.$onReadyResolve$(elm);
1149
- if (!ancestorComponent) {
1150
- appDidLoad();
1151
- }
1152
- }
1153
- }
1154
- else {
1155
- endPostUpdate();
1156
- }
1157
- // load events fire from bottom to top
1158
- // the deepest elements load first then bubbles up
1159
- {
1160
- if (hostRef.$onRenderResolve$) {
1161
- hostRef.$onRenderResolve$();
1162
- hostRef.$onRenderResolve$ = undefined;
1163
- }
1164
- if (hostRef.$flags$ & 512 /* HOST_FLAGS.needsRerender */) {
1165
- nextTick(() => scheduleUpdate(hostRef, false));
1166
- }
1167
- hostRef.$flags$ &= ~(4 /* HOST_FLAGS.isWaitingForChildren */ | 512 /* HOST_FLAGS.needsRerender */);
1168
- }
1169
- // ( •_•)
1170
- // ( •_•)>⌐■-■
1171
- // (⌐■_■)
1172
- };
1173
- const appDidLoad = (who) => {
1174
- // on appload
1175
- // we have finish the first big initial render
1176
- {
1177
- addHydratedFlag(doc.documentElement);
1178
- }
1179
- nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
1180
- };
1181
- /**
1182
- * Allows to safely call a method, e.g. `componentDidLoad`, on an instance,
1183
- * e.g. custom element node. If a build figures out that e.g. no component
1184
- * has a `componentDidLoad` method, the instance method gets removed from the
1185
- * output bundle and this function returns `undefined`.
1186
- * @param instance any object that may or may not contain methods
1187
- * @param method method name
1188
- * @param arg single arbitrary argument
1189
- * @returns result of method call if it exists, otherwise `undefined`
1190
- */
1191
- const safeCall = (instance, method, arg) => {
1192
- if (instance && instance[method]) {
1193
- try {
1194
- return instance[method](arg);
1195
- }
1196
- catch (e) {
1197
- consoleError(e);
1198
- }
1199
- }
1200
- return undefined;
1201
- };
1202
- const addHydratedFlag = (elm) => elm.classList.add('hydrated')
1203
- ;
1204
- const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1205
- const setValue = (ref, propName, newVal, cmpMeta) => {
1206
- // check our new property value against our internal value
1207
- const hostRef = getHostRef(ref);
1208
- const elm = hostRef.$hostElement$ ;
1209
- const oldVal = hostRef.$instanceValues$.get(propName);
1210
- const flags = hostRef.$flags$;
1211
- const instance = hostRef.$lazyInstance$ ;
1212
- newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1213
- // explicitly check for NaN on both sides, as `NaN === NaN` is always false
1214
- const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1215
- const didValueChange = newVal !== oldVal && !areBothNaN;
1216
- if ((!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) || oldVal === undefined) && didValueChange) {
1217
- // gadzooks! the property's value has changed!!
1218
- // set our new value!
1219
- hostRef.$instanceValues$.set(propName, newVal);
1220
- if (instance) {
1221
- // get an array of method names of watch functions to call
1222
- if (cmpMeta.$watchers$ && flags & 128 /* HOST_FLAGS.isWatchReady */) {
1223
- const watchMethods = cmpMeta.$watchers$[propName];
1224
- if (watchMethods) {
1225
- // this instance is watching for when this property changed
1226
- watchMethods.map((watchMethodName) => {
1227
- try {
1228
- // fire off each of the watch methods that are watching this property
1229
- instance[watchMethodName](newVal, oldVal, propName);
1230
- }
1231
- catch (e) {
1232
- consoleError(e, elm);
1233
- }
1234
- });
1235
- }
1236
- }
1237
- if ((flags & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
1238
- // looks like this value actually changed, so we've got work to do!
1239
- // but only if we've already rendered, otherwise just chill out
1240
- // queue that we need to do an update, but don't worry about queuing
1241
- // up millions cuz this function ensures it only runs once
1242
- scheduleUpdate(hostRef, false);
1243
- }
1244
- }
1245
- }
1246
- };
1247
- /**
1248
- * Attach a series of runtime constructs to a compiled Stencil component
1249
- * constructor, including getters and setters for the `@Prop` and `@State`
1250
- * decorators, callbacks for when attributes change, and so on.
1251
- *
1252
- * @param Cstr the constructor for a component that we need to process
1253
- * @param cmpMeta metadata collected previously about the component
1254
- * @param flags a number used to store a series of bit flags
1255
- * @returns a reference to the same constructor passed in (but now mutated)
1256
- */
1257
- const proxyComponent = (Cstr, cmpMeta, flags) => {
1258
- var _a;
1259
- const prototype = Cstr.prototype;
1260
- if (cmpMeta.$members$) {
1261
- if (Cstr.watchers) {
1262
- cmpMeta.$watchers$ = Cstr.watchers;
1263
- }
1264
- // It's better to have a const than two Object.entries()
1265
- const members = Object.entries(cmpMeta.$members$);
1266
- members.map(([memberName, [memberFlags]]) => {
1267
- if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
1268
- ((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
1269
- // proxyComponent - prop
1270
- Object.defineProperty(prototype, memberName, {
1271
- get() {
1272
- // proxyComponent, get value
1273
- return getValue(this, memberName);
1274
- },
1275
- set(newValue) {
1276
- // proxyComponent, set value
1277
- setValue(this, memberName, newValue, cmpMeta);
1278
- },
1279
- configurable: true,
1280
- enumerable: true,
1281
- });
1282
- }
1283
- });
1284
- if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
1285
- const attrNameToPropName = new Map();
1286
- prototype.attributeChangedCallback = function (attrName, oldValue, newValue) {
1287
- plt.jmp(() => {
1288
- var _a;
1289
- const propName = attrNameToPropName.get(attrName);
1290
- // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
1291
- // in the case where an attribute was set inline.
1292
- // ```html
1293
- // <my-component some-attribute="some-value"></my-component>
1294
- // ```
1295
- //
1296
- // There is an edge case where a developer sets the attribute inline on a custom element and then
1297
- // programmatically changes it before it has been upgraded as shown below:
1298
- //
1299
- // ```html
1300
- // <!-- this component has _not_ been upgraded yet -->
1301
- // <my-component id="test" some-attribute="some-value"></my-component>
1302
- // <script>
1303
- // // grab non-upgraded component
1304
- // el = document.querySelector("#test");
1305
- // el.someAttribute = "another-value";
1306
- // // upgrade component
1307
- // customElements.define('my-component', MyComponent);
1308
- // </script>
1309
- // ```
1310
- // In this case if we do not un-shadow here and use the value of the shadowing property, attributeChangedCallback
1311
- // will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
1312
- // to the value that was set inline i.e. "some-value" from above example. When
1313
- // the connectedCallback attempts to un-shadow it will use "some-value" as the initial value rather than "another-value"
1314
- //
1315
- // The case where the attribute was NOT set inline but was not set programmatically shall be handled/un-shadowed
1316
- // by connectedCallback as this attributeChangedCallback will not fire.
1317
- //
1318
- // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1319
- //
1320
- // TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
1321
- // properties here given that this goes against best practices outlined here
1322
- // https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
1323
- if (this.hasOwnProperty(propName)) {
1324
- newValue = this[propName];
1325
- delete this[propName];
1326
- }
1327
- else if (prototype.hasOwnProperty(propName) &&
1328
- typeof this[propName] === 'number' &&
1329
- this[propName] == newValue) {
1330
- // if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
1331
- // APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
1332
- // `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
1333
- return;
1334
- }
1335
- else if (propName == null) {
1336
- // At this point we should know this is not a "member", so we can treat it like watching an attribute
1337
- // on a vanilla web component
1338
- const hostRef = getHostRef(this);
1339
- const flags = hostRef === null || hostRef === void 0 ? void 0 : hostRef.$flags$;
1340
- // We only want to trigger the callback(s) if:
1341
- // 1. The instance is ready
1342
- // 2. The watchers are ready
1343
- // 3. The value has changed
1344
- if (flags &&
1345
- !(flags & 8 /* HOST_FLAGS.isConstructingInstance */) &&
1346
- flags & 128 /* HOST_FLAGS.isWatchReady */ &&
1347
- newValue !== oldValue) {
1348
- const instance = hostRef.$lazyInstance$ ;
1349
- const entry = (_a = cmpMeta.$watchers$) === null || _a === void 0 ? void 0 : _a[attrName];
1350
- entry === null || entry === void 0 ? void 0 : entry.forEach((callbackName) => {
1351
- if (instance[callbackName] != null) {
1352
- instance[callbackName].call(instance, newValue, oldValue, attrName);
1353
- }
1354
- });
1355
- }
1356
- return;
1357
- }
1358
- this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
1359
- });
1360
- };
1361
- // Create an array of attributes to observe
1362
- // This list in comprised of all strings used within a `@Watch()` decorator
1363
- // on a component as well as any Stencil-specific "members" (`@Prop()`s and `@State()`s).
1364
- // As such, there is no way to guarantee type-safety here that a user hasn't entered
1365
- // an invalid attribute.
1366
- Cstr.observedAttributes = Array.from(new Set([
1367
- ...Object.keys((_a = cmpMeta.$watchers$) !== null && _a !== void 0 ? _a : {}),
1368
- ...members
1369
- .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */)
1370
- .map(([propName, m]) => {
1371
- var _a;
1372
- const attrName = m[1] || propName;
1373
- attrNameToPropName.set(attrName, propName);
1374
- if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
1375
- (_a = cmpMeta.$attrsToReflect$) === null || _a === void 0 ? void 0 : _a.push([propName, attrName]);
1376
- }
1377
- return attrName;
1378
- }),
1379
- ]));
1380
- }
1381
- }
1382
- return Cstr;
1383
- };
1384
- /**
1385
- * Initialize a Stencil component given a reference to its host element, its
1386
- * runtime bookkeeping data structure, runtime metadata about the component,
1387
- * and (optionally) an HMR version ID.
1388
- *
1389
- * @param elm a host element
1390
- * @param hostRef the element's runtime bookkeeping object
1391
- * @param cmpMeta runtime metadata for the Stencil component
1392
- * @param hmrVersionId an (optional) HMR version ID
1393
- */
1394
- const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1395
- let Cstr;
1396
- // initializeComponent
1397
- if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
1398
- // Let the runtime know that the component has been initialized
1399
- hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
1400
- {
1401
- // lazy loaded components
1402
- // request the component's implementation to be
1403
- // wired up with the host element
1404
- Cstr = loadModule(cmpMeta);
1405
- if (Cstr.then) {
1406
- // Await creates a micro-task avoid if possible
1407
- const endLoad = uniqueTime();
1408
- Cstr = await Cstr;
1409
- endLoad();
1410
- }
1411
- if (!Cstr.isProxied) {
1412
- // we've never proxied this Constructor before
1413
- // let's add the getters/setters to its prototype before
1414
- // the first time we create an instance of the implementation
1415
- {
1416
- cmpMeta.$watchers$ = Cstr.watchers;
1417
- }
1418
- proxyComponent(Cstr, cmpMeta, 2 /* PROXY_FLAGS.proxyState */);
1419
- Cstr.isProxied = true;
1420
- }
1421
- const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
1422
- // ok, time to construct the instance
1423
- // but let's keep track of when we start and stop
1424
- // so that the getters/setters don't incorrectly step on data
1425
- {
1426
- hostRef.$flags$ |= 8 /* HOST_FLAGS.isConstructingInstance */;
1427
- }
1428
- // construct the lazy-loaded component implementation
1429
- // passing the hostRef is very important during
1430
- // construction in order to directly wire together the
1431
- // host element and the lazy-loaded instance
1432
- try {
1433
- new Cstr(hostRef);
1434
- }
1435
- catch (e) {
1436
- consoleError(e);
1437
- }
1438
- {
1439
- hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
1440
- }
1441
- {
1442
- hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */;
1443
- }
1444
- endNewInstance();
1445
- fireConnectedCallback(hostRef.$lazyInstance$);
1446
- }
1447
- if (Cstr.style) {
1448
- // this component has styles but we haven't registered them yet
1449
- let style = Cstr.style;
1450
- const scopeId = getScopeId(cmpMeta);
1451
- if (!styles.has(scopeId)) {
1452
- const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
1453
- registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */));
1454
- endRegisterStyles();
1455
- }
1456
- }
1457
- }
1458
- // we've successfully created a lazy instance
1459
- const ancestorComponent = hostRef.$ancestorComponent$;
1460
- const schedule = () => scheduleUpdate(hostRef, true);
1461
- if (ancestorComponent && ancestorComponent['s-rc']) {
1462
- // this is the initial load and this component it has an ancestor component
1463
- // but the ancestor component has NOT fired its will update lifecycle yet
1464
- // so let's just cool our jets and wait for the ancestor to continue first
1465
- // this will get fired off when the ancestor component
1466
- // finally gets around to rendering its lazy self
1467
- // fire off the initial update
1468
- ancestorComponent['s-rc'].push(schedule);
1469
- }
1470
- else {
1471
- schedule();
1472
- }
1473
- };
1474
- const fireConnectedCallback = (instance) => {
1475
- {
1476
- safeCall(instance, 'connectedCallback');
1477
- }
1478
- };
1479
- const connectedCallback = (elm) => {
1480
- if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1481
- const hostRef = getHostRef(elm);
1482
- const cmpMeta = hostRef.$cmpMeta$;
1483
- const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
1484
- if (!(hostRef.$flags$ & 1 /* HOST_FLAGS.hasConnected */)) {
1485
- // first time this component has connected
1486
- hostRef.$flags$ |= 1 /* HOST_FLAGS.hasConnected */;
1487
- {
1488
- // find the first ancestor component (if there is one) and register
1489
- // this component as one of the actively loading child components for its ancestor
1490
- let ancestorComponent = elm;
1491
- while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) {
1492
- // climb up the ancestors looking for the first
1493
- // component that hasn't finished its lifecycle update yet
1494
- if (ancestorComponent['s-p']) {
1495
- // we found this components first ancestor component
1496
- // keep a reference to this component's ancestor component
1497
- attachToAncestor(hostRef, (hostRef.$ancestorComponent$ = ancestorComponent));
1498
- break;
1499
- }
1500
- }
1501
- }
1502
- // Lazy properties
1503
- // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1504
- if (cmpMeta.$members$) {
1505
- Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1506
- if (memberFlags & 31 /* MEMBER_FLAGS.Prop */ && elm.hasOwnProperty(memberName)) {
1507
- const value = elm[memberName];
1508
- delete elm[memberName];
1509
- elm[memberName] = value;
1510
- }
1511
- });
1512
- }
1513
- {
1514
- initializeComponent(elm, hostRef, cmpMeta);
1515
- }
1516
- }
1517
- else {
1518
- // fire off connectedCallback() on component instance
1519
- if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) {
1520
- fireConnectedCallback(hostRef.$lazyInstance$);
1521
- }
1522
- else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
1523
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
1524
- }
1525
- }
1526
- endConnected();
1527
- }
1528
- };
1529
- const disconnectInstance = (instance) => {
1530
- {
1531
- safeCall(instance, 'disconnectedCallback');
1532
- }
1533
- };
1534
- const disconnectedCallback = async (elm) => {
1535
- if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1536
- const hostRef = getHostRef(elm);
1537
- if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) {
1538
- disconnectInstance(hostRef.$lazyInstance$);
1539
- }
1540
- else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
1541
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1542
- }
1543
- }
1544
- };
1545
- const bootstrapLazy = (lazyBundles, options = {}) => {
1546
- var _a;
1547
- const endBootstrap = createTime();
1548
- const cmpTags = [];
1549
- const exclude = options.exclude || [];
1550
- const customElements = win.customElements;
1551
- const head = doc.head;
1552
- const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
1553
- const dataStyles = /*@__PURE__*/ doc.createElement('style');
1554
- const deferredConnectedCallbacks = [];
1555
- let appLoadFallback;
1556
- let isBootstrapping = true;
1557
- Object.assign(plt, options);
1558
- plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
1559
- let hasSlotRelocation = false;
1560
- lazyBundles.map((lazyBundle) => {
1561
- lazyBundle[1].map((compactMeta) => {
1562
- var _a;
1563
- const cmpMeta = {
1564
- $flags$: compactMeta[0],
1565
- $tagName$: compactMeta[1],
1566
- $members$: compactMeta[2],
1567
- $listeners$: compactMeta[3],
1568
- };
1569
- // Check if we are using slots outside the shadow DOM in this component.
1570
- // We'll use this information later to add styles for `slot-fb` elements
1571
- if (cmpMeta.$flags$ & 4 /* CMP_FLAGS.hasSlotRelocation */) {
1572
- hasSlotRelocation = true;
1573
- }
1574
- {
1575
- cmpMeta.$members$ = compactMeta[2];
1576
- }
1577
- {
1578
- cmpMeta.$attrsToReflect$ = [];
1579
- }
1580
- {
1581
- cmpMeta.$watchers$ = (_a = compactMeta[4]) !== null && _a !== void 0 ? _a : {};
1582
- }
1583
- const tagName = cmpMeta.$tagName$;
1584
- const HostElement = class extends HTMLElement {
1585
- // StencilLazyHost
1586
- constructor(self) {
1587
- // @ts-ignore
1588
- super(self);
1589
- self = this;
1590
- registerHost(self, cmpMeta);
1591
- if (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
1592
- // this component is using shadow dom
1593
- // and this browser supports shadow dom
1594
- // add the read-only property "shadowRoot" to the host element
1595
- // adding the shadow root build conditionals to minimize runtime
1596
- {
1597
- {
1598
- self.attachShadow({ mode: 'open' });
1599
- }
1600
- }
1601
- }
1602
- }
1603
- connectedCallback() {
1604
- if (appLoadFallback) {
1605
- clearTimeout(appLoadFallback);
1606
- appLoadFallback = null;
1607
- }
1608
- if (isBootstrapping) {
1609
- // connectedCallback will be processed once all components have been registered
1610
- deferredConnectedCallbacks.push(this);
1611
- }
1612
- else {
1613
- plt.jmp(() => connectedCallback(this));
1614
- }
1615
- }
1616
- disconnectedCallback() {
1617
- plt.jmp(() => disconnectedCallback(this));
1618
- }
1619
- componentOnReady() {
1620
- return getHostRef(this).$onReadyPromise$;
1621
- }
1622
- };
1623
- cmpMeta.$lazyBundleId$ = lazyBundle[0];
1624
- if (!exclude.includes(tagName) && !customElements.get(tagName)) {
1625
- cmpTags.push(tagName);
1626
- customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* PROXY_FLAGS.isElementConstructor */));
1627
- }
1628
- });
1629
- });
1630
- // Add styles for `slot-fb` elements if any of our components are using slots outside the Shadow DOM
1631
- if (hasSlotRelocation) {
1632
- dataStyles.innerHTML += SLOT_FB_CSS;
1633
- }
1634
- // Add hydration styles
1635
- {
1636
- dataStyles.innerHTML += cmpTags + HYDRATED_CSS;
1637
- }
1638
- // If we have styles, add them to the DOM
1639
- if (dataStyles.innerHTML.length) {
1640
- dataStyles.setAttribute('data-styles', '');
1641
- // Apply CSP nonce to the style tag if it exists
1642
- const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
1643
- if (nonce != null) {
1644
- dataStyles.setAttribute('nonce', nonce);
1645
- }
1646
- // Insert the styles into the document head
1647
- // NOTE: this _needs_ to happen last so we can ensure the nonce (and other attributes) are applied
1648
- head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
1649
- }
1650
- // Process deferred connectedCallbacks now all components have been registered
1651
- isBootstrapping = false;
1652
- if (deferredConnectedCallbacks.length) {
1653
- deferredConnectedCallbacks.map((host) => host.connectedCallback());
1654
- }
1655
- else {
1656
- {
1657
- plt.jmp(() => (appLoadFallback = setTimeout(appDidLoad, 30)));
1658
- }
1659
- }
1660
- // Fallback appLoad event
1661
- endBootstrap();
1662
- };
1663
- /**
1664
- * Assigns the given value to the nonce property on the runtime platform object.
1665
- * During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
1666
- * @param nonce The value to be assigned to the platform nonce property.
1667
- * @returns void
1668
- */
1669
- const setNonce = (nonce) => (plt.$nonce$ = nonce);
1670
- /**
1671
- * A WeakMap mapping runtime component references to their corresponding host reference
1672
- * instances.
1673
- */
1674
- const hostRefs = /*@__PURE__*/ new WeakMap();
1675
- /**
1676
- * Given a {@link d.RuntimeRef} retrieve the corresponding {@link d.HostRef}
1677
- *
1678
- * @param ref the runtime ref of interest
1679
- * @returns the Host reference (if found) or undefined
1680
- */
1681
- const getHostRef = (ref) => hostRefs.get(ref);
1682
- /**
1683
- * Register a lazy instance with the {@link hostRefs} object so it's
1684
- * corresponding {@link d.HostRef} can be retrieved later.
1685
- *
1686
- * @param lazyInstance the lazy instance of interest
1687
- * @param hostRef that instances `HostRef` object
1688
- * @returns a reference to the host ref WeakMap
1689
- */
1690
- const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
1691
- /**
1692
- * Register a host element for a Stencil component, setting up various metadata
1693
- * and callbacks based on {@link BUILD} flags as well as the component's runtime
1694
- * metadata.
1695
- *
1696
- * @param hostElement the host element to register
1697
- * @param cmpMeta runtime metadata for that component
1698
- * @returns a reference to the host ref WeakMap
1699
- */
1700
- const registerHost = (hostElement, cmpMeta) => {
1701
- const hostRef = {
1702
- $flags$: 0,
1703
- $hostElement$: hostElement,
1704
- $cmpMeta$: cmpMeta,
1705
- $instanceValues$: new Map(),
1706
- };
1707
- {
1708
- hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
1709
- hostElement['s-p'] = [];
1710
- hostElement['s-rc'] = [];
1711
- }
1712
- return hostRefs.set(hostElement, hostRef);
1713
- };
1714
- const isMemberInElement = (elm, memberName) => memberName in elm;
1715
- const consoleError = (e, el) => (0, console.error)(e, el);
1716
- const cmpModules = /*@__PURE__*/ new Map();
1717
- const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1718
- // loadModuleImport
1719
- const exportName = cmpMeta.$tagName$.replace(/-/g, '_');
1720
- const bundleId = cmpMeta.$lazyBundleId$;
1721
- const module = cmpModules.get(bundleId) ;
1722
- if (module) {
1723
- return module[exportName];
1724
- }
1725
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
1726
- return import(
1727
- /* @vite-ignore */
1728
- /* webpackInclude: /\.entry\.js$/ */
1729
- /* webpackExclude: /\.system\.entry\.js$/ */
1730
- /* webpackMode: "lazy" */
1731
- `./${bundleId}.entry.js${''}`).then((importedModule) => {
1732
- {
1733
- cmpModules.set(bundleId, importedModule);
1734
- }
1735
- return importedModule[exportName];
1736
- }, consoleError);
1737
- };
1738
- const styles = /*@__PURE__*/ new Map();
1739
- const win = typeof window !== 'undefined' ? window : {};
1740
- const doc = win.document || { head: {} };
1741
- const plt = {
1742
- $flags$: 0,
1743
- $resourcesUrl$: '',
1744
- jmp: (h) => h(),
1745
- raf: (h) => requestAnimationFrame(h),
1746
- ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
1747
- rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
1748
- ce: (eventName, opts) => new CustomEvent(eventName, opts),
1749
- };
1750
- const promiseResolve = (v) => Promise.resolve(v);
1751
- const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
1752
- try {
1753
- new CSSStyleSheet();
1754
- return typeof new CSSStyleSheet().replaceSync === 'function';
1755
- }
1756
- catch (e) { }
1757
- return false;
1758
- })()
1759
- ;
1760
- const queueDomReads = [];
1761
- const queueDomWrites = [];
1762
- const queueTask = (queue, write) => (cb) => {
1763
- queue.push(cb);
1764
- if (!queuePending) {
1765
- queuePending = true;
1766
- if (write && plt.$flags$ & 4 /* PLATFORM_FLAGS.queueSync */) {
1767
- nextTick(flush);
1768
- }
1769
- else {
1770
- plt.raf(flush);
1771
- }
1772
- }
1773
- };
1774
- const consume = (queue) => {
1775
- for (let i = 0; i < queue.length; i++) {
1776
- try {
1777
- queue[i](performance.now());
1778
- }
1779
- catch (e) {
1780
- consoleError(e);
1781
- }
1782
- }
1783
- queue.length = 0;
1784
- };
1785
- const flush = () => {
1786
- // always force a bunch of medium callbacks to run, but still have
1787
- // a throttle on how many can run in a certain time
1788
- // DOM READS!!!
1789
- consume(queueDomReads);
1790
- // DOM WRITES!!!
1791
- {
1792
- consume(queueDomWrites);
1793
- if ((queuePending = queueDomReads.length > 0)) {
1794
- // still more to do yet, but we've run out of time
1795
- // let's let this thing cool off and try again in the next tick
1796
- plt.raf(flush);
1797
- }
1798
- }
1799
- };
1800
- const nextTick = (cb) => promiseResolve().then(cb);
1801
- const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
1802
-
1803
- export { Host as H, bootstrapLazy as b, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
1804
-
1805
- //# sourceMappingURL=index-68ccb33c.js.map