@amiceli/papierjs 0.12.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (387) hide show
  1. package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -3
  2. package/dist/cjs/feather-hhpdTUdS.js +0 -3
  3. package/dist/cjs/{index-BLkeAjdP.js → index-BPI196cE.js} +436 -238
  4. package/dist/cjs/index.cjs.js +0 -3
  5. package/dist/cjs/loader.cjs.js +2 -5
  6. package/dist/cjs/p-accordion.cjs.entry.js +10 -9
  7. package/dist/cjs/p-alert.cjs.entry.js +4 -7
  8. package/dist/cjs/p-badge.cjs.entry.js +4 -7
  9. package/dist/cjs/p-breadcrumb-item.cjs.entry.js +3 -6
  10. package/dist/cjs/p-breadcrumb.cjs.entry.js +4 -7
  11. package/dist/cjs/p-button_4.cjs.entry.js +11 -14
  12. package/dist/cjs/p-card.cjs.entry.js +5 -8
  13. package/dist/cjs/p-icon.cjs.entry.js +804 -493
  14. package/dist/cjs/p-input-text.cjs.entry.js +5 -8
  15. package/dist/cjs/p-leaf.cjs.entry.js +4 -7
  16. package/dist/cjs/p-modal.cjs.entry.js +4 -7
  17. package/dist/cjs/p-navbar-item.cjs.entry.js +26 -0
  18. package/dist/cjs/p-navbar.cjs.entry.js +44 -0
  19. package/dist/cjs/p-notification-preview.cjs.entry.js +11 -14
  20. package/dist/cjs/p-notification.cjs.entry.js +5 -8
  21. package/dist/cjs/p-progress-bar.cjs.entry.js +4 -7
  22. package/dist/cjs/p-slider.cjs.entry.js +5 -8
  23. package/dist/cjs/p-spinner.cjs.entry.js +5 -8
  24. package/dist/cjs/p-switch-tile.cjs.entry.js +4 -7
  25. package/dist/cjs/p-switch.cjs.entry.js +4 -7
  26. package/dist/cjs/p-tab.cjs.entry.js +5 -8
  27. package/dist/cjs/p-tabs.cjs.entry.js +6 -9
  28. package/dist/cjs/p-tooltip.cjs.entry.js +4 -7
  29. package/dist/cjs/papierjs.cjs.js +3 -6
  30. package/dist/collection/collection-manifest.json +4 -2
  31. package/dist/collection/components/breadcrumb/p-breadcrumb/p-breadcrumb.js +2 -3
  32. package/dist/collection/components/breadcrumb/p-breadcrumb-item/p-breadcrumb-item.js +4 -5
  33. package/dist/collection/components/dropdown/p-dropdown/p-dropdown.css +2 -1
  34. package/dist/collection/components/dropdown/p-dropdown/p-dropdown.js +5 -6
  35. package/dist/collection/components/dropdown/p-dropdown-item/p-dropdown-item.js +4 -5
  36. package/dist/collection/components/form/p-input-text/input-text.css +6 -0
  37. package/dist/collection/components/form/p-input-text/input-text.js +16 -17
  38. package/dist/collection/components/form/p-slider/sliders.js +8 -9
  39. package/dist/collection/components/form/p-slider/sliders.preview.js +0 -1
  40. package/dist/collection/components/form/p-switch/switch.js +5 -6
  41. package/dist/collection/components/form/p-switch-tile/switch-tile.js +6 -7
  42. package/dist/collection/components/navigation/p-navbar/p-navbar.css +3233 -0
  43. package/dist/collection/components/navigation/p-navbar/p-navbar.js +151 -0
  44. package/dist/collection/components/navigation/p-navbar-item/p-navbar-item.css +3248 -0
  45. package/dist/collection/components/navigation/p-navbar-item/p-navbar-item.js +111 -0
  46. package/dist/collection/components/notification/p-notification/p-notification.js +6 -7
  47. package/dist/collection/components/notification/p-notification-handler/p-notification-handler.js +1 -2
  48. package/dist/collection/components/notification/p-notification-handler/stories/p-notification-preview.js +10 -11
  49. package/dist/collection/components/p-accordion/p-accordion.css +3 -0
  50. package/dist/collection/components/p-accordion/p-accordion.js +30 -7
  51. package/dist/collection/components/p-alert/p-alert.css +2 -1
  52. package/dist/collection/components/p-alert/p-alert.js +4 -5
  53. package/dist/collection/components/p-badge/p-badge.js +3 -4
  54. package/dist/collection/components/p-button/p-button.js +9 -10
  55. package/dist/collection/components/p-card/p-card.css +4 -2
  56. package/dist/collection/components/p-card/p-card.js +6 -7
  57. package/dist/collection/components/p-icon/icons.js +800 -487
  58. package/dist/collection/components/p-icon/p-icon.js +5 -6
  59. package/dist/collection/components/p-leaf/p-leaf.js +2 -3
  60. package/dist/collection/components/p-modal/p-modal.js +1 -2
  61. package/dist/collection/components/p-progress-bar/p-progress-bar.js +7 -8
  62. package/dist/collection/components/p-spinner/p-spinner.js +7 -8
  63. package/dist/collection/components/p-tooltip/p-tooltip.js +8 -9
  64. package/dist/collection/components/tabs/p-tab/p-tab.js +6 -7
  65. package/dist/collection/components/tabs/p-tabs/p-tabs.css +2 -1
  66. package/dist/collection/components/tabs/p-tabs/p-tabs.js +4 -5
  67. package/dist/collection/index.js +0 -1
  68. package/dist/components/index.d.ts +2 -0
  69. package/dist/components/index.js +1 -1598
  70. package/dist/components/p-5-w_S81x.js +1 -0
  71. package/dist/components/p-BGN4QYf2.js +1 -0
  72. package/dist/components/p-C5tpu5nv.js +1 -0
  73. package/dist/components/p-DLeZLI07.js +1 -0
  74. package/dist/components/p-DQalURmG.js +1 -0
  75. package/dist/components/p-DYFuR0tp.js +1 -0
  76. package/dist/components/p-accordion.js +1 -49
  77. package/dist/components/p-alert.js +1 -76
  78. package/dist/components/p-badge.js +1 -52
  79. package/dist/components/p-breadcrumb-item.js +1 -54
  80. package/dist/components/p-breadcrumb.js +1 -58
  81. package/dist/components/p-button.js +1 -9
  82. package/dist/components/p-card.js +1 -59
  83. package/dist/components/p-dropdown-item.js +1 -9
  84. package/dist/components/p-dropdown.js +1 -9
  85. package/dist/components/p-fjnyWEDB.js +165 -2246
  86. package/dist/components/p-icon.js +1 -9
  87. package/dist/components/p-input-text.js +1 -85
  88. package/dist/components/p-leaf.js +1 -42
  89. package/dist/components/p-modal.js +1 -50
  90. package/dist/components/p-navbar-item.d.ts +11 -0
  91. package/dist/components/p-navbar-item.js +1 -0
  92. package/dist/components/p-navbar.d.ts +11 -0
  93. package/dist/components/p-navbar.js +1 -0
  94. package/dist/components/p-notification-handler.js +1 -9
  95. package/dist/components/p-notification-preview.js +1 -104
  96. package/dist/components/p-notification.js +1 -9
  97. package/dist/components/p-progress-bar.js +1 -87
  98. package/dist/components/p-slider.js +1 -57
  99. package/dist/components/p-spinner.js +1 -9
  100. package/dist/components/p-switch-tile.js +1 -69
  101. package/dist/components/p-switch.js +1 -61
  102. package/dist/components/p-tab.js +1 -47
  103. package/dist/components/p-tabs.js +1 -85
  104. package/dist/components/p-tooltip.js +1 -49
  105. package/dist/components/p-wCnrlyQl.js +1 -0
  106. package/dist/esm/app-globals-DQuL1Twl.js +0 -3
  107. package/dist/esm/feather-fjnyWEDB.js +0 -3
  108. package/dist/esm/{index-D_9dM54j.js → index-B4NZTtB_.js} +437 -239
  109. package/dist/esm/index.js +0 -3
  110. package/dist/esm/loader.js +3 -6
  111. package/dist/esm/p-accordion.entry.js +10 -9
  112. package/dist/esm/p-alert.entry.js +4 -7
  113. package/dist/esm/p-badge.entry.js +4 -7
  114. package/dist/esm/p-breadcrumb-item.entry.js +3 -6
  115. package/dist/esm/p-breadcrumb.entry.js +4 -7
  116. package/dist/esm/p-button_4.entry.js +11 -14
  117. package/dist/esm/p-card.entry.js +5 -8
  118. package/dist/esm/p-icon.entry.js +804 -493
  119. package/dist/esm/p-input-text.entry.js +5 -8
  120. package/dist/esm/p-leaf.entry.js +4 -7
  121. package/dist/esm/p-modal.entry.js +4 -7
  122. package/dist/esm/p-navbar-item.entry.js +24 -0
  123. package/dist/esm/p-navbar.entry.js +42 -0
  124. package/dist/esm/p-notification-preview.entry.js +11 -14
  125. package/dist/esm/p-notification.entry.js +5 -8
  126. package/dist/esm/p-progress-bar.entry.js +4 -7
  127. package/dist/esm/p-slider.entry.js +5 -8
  128. package/dist/esm/p-spinner.entry.js +5 -8
  129. package/dist/esm/p-switch-tile.entry.js +4 -7
  130. package/dist/esm/p-switch.entry.js +4 -7
  131. package/dist/esm/p-tab.entry.js +5 -8
  132. package/dist/esm/p-tabs.entry.js +6 -9
  133. package/dist/esm/p-tooltip.entry.js +4 -7
  134. package/dist/esm/papierjs.js +4 -7
  135. package/dist/papierjs/index.esm.js +0 -2
  136. package/dist/papierjs/p-049a4106.entry.js +1 -0
  137. package/dist/papierjs/p-0d6ba9a4.entry.js +1 -0
  138. package/dist/papierjs/p-1071b445.entry.js +1 -0
  139. package/dist/papierjs/p-18e2b807.entry.js +1 -0
  140. package/dist/papierjs/p-1e0a94d9.entry.js +1 -0
  141. package/dist/papierjs/p-3654bad6.entry.js +1 -0
  142. package/dist/papierjs/p-3be660f1.entry.js +1 -0
  143. package/dist/papierjs/p-57dc9248.entry.js +1 -0
  144. package/dist/papierjs/p-59d1a95c.entry.js +1 -0
  145. package/dist/papierjs/p-6178a41a.entry.js +1 -0
  146. package/dist/papierjs/p-67ec8731.entry.js +1 -0
  147. package/dist/papierjs/p-6b73ff84.entry.js +1 -0
  148. package/dist/papierjs/p-72477120.entry.js +1 -0
  149. package/dist/papierjs/p-8d4911ee.entry.js +1 -0
  150. package/dist/papierjs/p-8dfc72ce.entry.js +1 -0
  151. package/dist/papierjs/p-B4NZTtB_.js +2 -0
  152. package/dist/papierjs/p-DQuL1Twl.js +1 -2
  153. package/dist/papierjs/p-a0a5a5f8.entry.js +1 -0
  154. package/dist/papierjs/p-a2a46625.entry.js +1 -0
  155. package/dist/papierjs/p-b3ff9364.entry.js +1 -0
  156. package/dist/papierjs/p-c7d6c23a.entry.js +1 -0
  157. package/dist/papierjs/p-d6e3f78d.entry.js +1 -0
  158. package/dist/papierjs/p-d6fa2cc2.entry.js +1 -0
  159. package/dist/papierjs/p-d8f96a15.entry.js +1 -0
  160. package/dist/papierjs/p-d9520b51.entry.js +1 -0
  161. package/dist/papierjs/p-fjnyWEDB.js +79 -80
  162. package/dist/papierjs/papierjs.esm.js +1 -2
  163. package/dist/types/components/form/p-input-text/input-text.d.ts +3 -0
  164. package/dist/types/components/navigation/p-navbar/p-navbar.d.ts +16 -0
  165. package/dist/types/components/navigation/p-navbar-item/p-navbar-item.d.ts +12 -0
  166. package/dist/types/components/p-accordion/p-accordion.d.ts +1 -0
  167. package/dist/types/components.d.ts +282 -45
  168. package/dist/types/stencil-public-runtime.d.ts +155 -6
  169. package/package.json +26 -25
  170. package/readme.md +3 -4
  171. package/dist/cjs/app-globals-V2Kpy_OQ.js.map +0 -1
  172. package/dist/cjs/feather-hhpdTUdS.js.map +0 -1
  173. package/dist/cjs/index-BLkeAjdP.js.map +0 -1
  174. package/dist/cjs/index.cjs.js.map +0 -1
  175. package/dist/cjs/loader.cjs.js.map +0 -1
  176. package/dist/cjs/p-accordion.cjs.entry.js.map +0 -1
  177. package/dist/cjs/p-accordion.entry.cjs.js.map +0 -1
  178. package/dist/cjs/p-alert.cjs.entry.js.map +0 -1
  179. package/dist/cjs/p-alert.entry.cjs.js.map +0 -1
  180. package/dist/cjs/p-badge.cjs.entry.js.map +0 -1
  181. package/dist/cjs/p-badge.entry.cjs.js.map +0 -1
  182. package/dist/cjs/p-breadcrumb-item.cjs.entry.js.map +0 -1
  183. package/dist/cjs/p-breadcrumb-item.entry.cjs.js.map +0 -1
  184. package/dist/cjs/p-breadcrumb.cjs.entry.js.map +0 -1
  185. package/dist/cjs/p-breadcrumb.entry.cjs.js.map +0 -1
  186. package/dist/cjs/p-button.p-dropdown.p-dropdown-item.p-notification-handler.entry.cjs.js.map +0 -1
  187. package/dist/cjs/p-button_4.cjs.entry.js.map +0 -1
  188. package/dist/cjs/p-card.cjs.entry.js.map +0 -1
  189. package/dist/cjs/p-card.entry.cjs.js.map +0 -1
  190. package/dist/cjs/p-icon.cjs.entry.js.map +0 -1
  191. package/dist/cjs/p-icon.entry.cjs.js.map +0 -1
  192. package/dist/cjs/p-input-text.cjs.entry.js.map +0 -1
  193. package/dist/cjs/p-input-text.entry.cjs.js.map +0 -1
  194. package/dist/cjs/p-leaf.cjs.entry.js.map +0 -1
  195. package/dist/cjs/p-leaf.entry.cjs.js.map +0 -1
  196. package/dist/cjs/p-modal.cjs.entry.js.map +0 -1
  197. package/dist/cjs/p-modal.entry.cjs.js.map +0 -1
  198. package/dist/cjs/p-notification-preview.cjs.entry.js.map +0 -1
  199. package/dist/cjs/p-notification-preview.entry.cjs.js.map +0 -1
  200. package/dist/cjs/p-notification.cjs.entry.js.map +0 -1
  201. package/dist/cjs/p-notification.entry.cjs.js.map +0 -1
  202. package/dist/cjs/p-progress-bar.cjs.entry.js.map +0 -1
  203. package/dist/cjs/p-progress-bar.entry.cjs.js.map +0 -1
  204. package/dist/cjs/p-slider.cjs.entry.js.map +0 -1
  205. package/dist/cjs/p-slider.entry.cjs.js.map +0 -1
  206. package/dist/cjs/p-spinner.cjs.entry.js.map +0 -1
  207. package/dist/cjs/p-spinner.entry.cjs.js.map +0 -1
  208. package/dist/cjs/p-switch-tile.cjs.entry.js.map +0 -1
  209. package/dist/cjs/p-switch-tile.entry.cjs.js.map +0 -1
  210. package/dist/cjs/p-switch.cjs.entry.js.map +0 -1
  211. package/dist/cjs/p-switch.entry.cjs.js.map +0 -1
  212. package/dist/cjs/p-tab.cjs.entry.js.map +0 -1
  213. package/dist/cjs/p-tab.entry.cjs.js.map +0 -1
  214. package/dist/cjs/p-tabs.cjs.entry.js.map +0 -1
  215. package/dist/cjs/p-tabs.entry.cjs.js.map +0 -1
  216. package/dist/cjs/p-tooltip.cjs.entry.js.map +0 -1
  217. package/dist/cjs/p-tooltip.entry.cjs.js.map +0 -1
  218. package/dist/cjs/papierjs.cjs.js.map +0 -1
  219. package/dist/collection/components/breadcrumb/p-breadcrumb/p-breadcrumb.js.map +0 -1
  220. package/dist/collection/components/breadcrumb/p-breadcrumb-item/p-breadcrumb-item.js.map +0 -1
  221. package/dist/collection/components/dropdown/p-dropdown/p-dropdown.js.map +0 -1
  222. package/dist/collection/components/dropdown/p-dropdown-item/p-dropdown-item.js.map +0 -1
  223. package/dist/collection/components/form/p-input-text/input-text.js.map +0 -1
  224. package/dist/collection/components/form/p-slider/sliders.js.map +0 -1
  225. package/dist/collection/components/form/p-slider/sliders.preview.js.map +0 -1
  226. package/dist/collection/components/form/p-switch/switch.js.map +0 -1
  227. package/dist/collection/components/form/p-switch-tile/switch-tile.js.map +0 -1
  228. package/dist/collection/components/notification/p-notification/p-notification.js.map +0 -1
  229. package/dist/collection/components/notification/p-notification-handler/p-notification-handler.js.map +0 -1
  230. package/dist/collection/components/notification/p-notification-handler/stories/p-notification-preview.js.map +0 -1
  231. package/dist/collection/components/p-accordion/p-accordion.js.map +0 -1
  232. package/dist/collection/components/p-alert/p-alert.js.map +0 -1
  233. package/dist/collection/components/p-badge/p-badge.js.map +0 -1
  234. package/dist/collection/components/p-button/p-button.js.map +0 -1
  235. package/dist/collection/components/p-card/p-card.js.map +0 -1
  236. package/dist/collection/components/p-icon/icons.js.map +0 -1
  237. package/dist/collection/components/p-icon/p-icon.js.map +0 -1
  238. package/dist/collection/components/p-leaf/p-leaf.js.map +0 -1
  239. package/dist/collection/components/p-modal/p-modal.js.map +0 -1
  240. package/dist/collection/components/p-modal/stories/modal.preview.js +0 -19
  241. package/dist/collection/components/p-progress-bar/p-progress-bar.js.map +0 -1
  242. package/dist/collection/components/p-progress-bar/stories/progress-bar.preview.js +0 -23
  243. package/dist/collection/components/p-progress-bar/stories/progress-bar.preview.js.map +0 -1
  244. package/dist/collection/components/p-spinner/p-spinner.js.map +0 -1
  245. package/dist/collection/components/p-tooltip/p-tooltip.js.map +0 -1
  246. package/dist/collection/components/tabs/p-tab/p-tab.js.map +0 -1
  247. package/dist/collection/components/tabs/p-tabs/p-tabs.js.map +0 -1
  248. package/dist/collection/index.js.map +0 -1
  249. package/dist/components/index.js.map +0 -1
  250. package/dist/components/p-BG8QQjTj.js +0 -81
  251. package/dist/components/p-BG8QQjTj.js.map +0 -1
  252. package/dist/components/p-BoXBUJUF.js +0 -53
  253. package/dist/components/p-BoXBUJUF.js.map +0 -1
  254. package/dist/components/p-C1WiDOUO.js +0 -533
  255. package/dist/components/p-C1WiDOUO.js.map +0 -1
  256. package/dist/components/p-D-0lSopu.js +0 -78
  257. package/dist/components/p-D-0lSopu.js.map +0 -1
  258. package/dist/components/p-DTXRchKU.js +0 -93
  259. package/dist/components/p-DTXRchKU.js.map +0 -1
  260. package/dist/components/p-Dfl1qwUC.js +0 -49
  261. package/dist/components/p-Dfl1qwUC.js.map +0 -1
  262. package/dist/components/p-Ixyl16zU.js +0 -102
  263. package/dist/components/p-Ixyl16zU.js.map +0 -1
  264. package/dist/components/p-accordion.js.map +0 -1
  265. package/dist/components/p-alert.js.map +0 -1
  266. package/dist/components/p-badge.js.map +0 -1
  267. package/dist/components/p-breadcrumb-item.js.map +0 -1
  268. package/dist/components/p-breadcrumb.js.map +0 -1
  269. package/dist/components/p-button.js.map +0 -1
  270. package/dist/components/p-card.js.map +0 -1
  271. package/dist/components/p-dropdown-item.js.map +0 -1
  272. package/dist/components/p-dropdown.js.map +0 -1
  273. package/dist/components/p-fjnyWEDB.js.map +0 -1
  274. package/dist/components/p-icon.js.map +0 -1
  275. package/dist/components/p-input-text.js.map +0 -1
  276. package/dist/components/p-leaf.js.map +0 -1
  277. package/dist/components/p-modal.js.map +0 -1
  278. package/dist/components/p-notification-handler.js.map +0 -1
  279. package/dist/components/p-notification-preview.js.map +0 -1
  280. package/dist/components/p-notification.js.map +0 -1
  281. package/dist/components/p-progress-bar.js.map +0 -1
  282. package/dist/components/p-slider.js.map +0 -1
  283. package/dist/components/p-spinner.js.map +0 -1
  284. package/dist/components/p-switch-tile.js.map +0 -1
  285. package/dist/components/p-switch.js.map +0 -1
  286. package/dist/components/p-tab.js.map +0 -1
  287. package/dist/components/p-tabs.js.map +0 -1
  288. package/dist/components/p-tooltip.js.map +0 -1
  289. package/dist/esm/app-globals-DQuL1Twl.js.map +0 -1
  290. package/dist/esm/feather-fjnyWEDB.js.map +0 -1
  291. package/dist/esm/index-D_9dM54j.js.map +0 -1
  292. package/dist/esm/index.js.map +0 -1
  293. package/dist/esm/loader.js.map +0 -1
  294. package/dist/esm/p-accordion.entry.js.map +0 -1
  295. package/dist/esm/p-alert.entry.js.map +0 -1
  296. package/dist/esm/p-badge.entry.js.map +0 -1
  297. package/dist/esm/p-breadcrumb-item.entry.js.map +0 -1
  298. package/dist/esm/p-breadcrumb.entry.js.map +0 -1
  299. package/dist/esm/p-button.p-dropdown.p-dropdown-item.p-notification-handler.entry.js.map +0 -1
  300. package/dist/esm/p-button_4.entry.js.map +0 -1
  301. package/dist/esm/p-card.entry.js.map +0 -1
  302. package/dist/esm/p-icon.entry.js.map +0 -1
  303. package/dist/esm/p-input-text.entry.js.map +0 -1
  304. package/dist/esm/p-leaf.entry.js.map +0 -1
  305. package/dist/esm/p-modal.entry.js.map +0 -1
  306. package/dist/esm/p-notification-preview.entry.js.map +0 -1
  307. package/dist/esm/p-notification.entry.js.map +0 -1
  308. package/dist/esm/p-progress-bar.entry.js.map +0 -1
  309. package/dist/esm/p-slider.entry.js.map +0 -1
  310. package/dist/esm/p-spinner.entry.js.map +0 -1
  311. package/dist/esm/p-switch-tile.entry.js.map +0 -1
  312. package/dist/esm/p-switch.entry.js.map +0 -1
  313. package/dist/esm/p-tab.entry.js.map +0 -1
  314. package/dist/esm/p-tabs.entry.js.map +0 -1
  315. package/dist/esm/p-tooltip.entry.js.map +0 -1
  316. package/dist/esm/papierjs.js.map +0 -1
  317. package/dist/papierjs/index.esm.js.map +0 -1
  318. package/dist/papierjs/loader.esm.js.map +0 -1
  319. package/dist/papierjs/p-06e2ec9e.entry.js +0 -2
  320. package/dist/papierjs/p-06e2ec9e.entry.js.map +0 -1
  321. package/dist/papierjs/p-0cf51930.entry.js +0 -2
  322. package/dist/papierjs/p-0cf51930.entry.js.map +0 -1
  323. package/dist/papierjs/p-143bbaaa.entry.js +0 -2
  324. package/dist/papierjs/p-143bbaaa.entry.js.map +0 -1
  325. package/dist/papierjs/p-145622ef.entry.js +0 -2
  326. package/dist/papierjs/p-145622ef.entry.js.map +0 -1
  327. package/dist/papierjs/p-2edc68be.entry.js +0 -2
  328. package/dist/papierjs/p-2edc68be.entry.js.map +0 -1
  329. package/dist/papierjs/p-4661561e.entry.js +0 -2
  330. package/dist/papierjs/p-4661561e.entry.js.map +0 -1
  331. package/dist/papierjs/p-47711f14.entry.js +0 -2
  332. package/dist/papierjs/p-47711f14.entry.js.map +0 -1
  333. package/dist/papierjs/p-4b20a14f.entry.js +0 -2
  334. package/dist/papierjs/p-4b20a14f.entry.js.map +0 -1
  335. package/dist/papierjs/p-55ab1a5c.entry.js +0 -2
  336. package/dist/papierjs/p-55ab1a5c.entry.js.map +0 -1
  337. package/dist/papierjs/p-584a8668.entry.js +0 -2
  338. package/dist/papierjs/p-584a8668.entry.js.map +0 -1
  339. package/dist/papierjs/p-76da6759.entry.js +0 -2
  340. package/dist/papierjs/p-76da6759.entry.js.map +0 -1
  341. package/dist/papierjs/p-7ff3b05b.entry.js +0 -2
  342. package/dist/papierjs/p-7ff3b05b.entry.js.map +0 -1
  343. package/dist/papierjs/p-8ab5c78c.entry.js +0 -2
  344. package/dist/papierjs/p-8ab5c78c.entry.js.map +0 -1
  345. package/dist/papierjs/p-8f7beefb.entry.js +0 -2
  346. package/dist/papierjs/p-8f7beefb.entry.js.map +0 -1
  347. package/dist/papierjs/p-DQuL1Twl.js.map +0 -1
  348. package/dist/papierjs/p-D_9dM54j.js +0 -3
  349. package/dist/papierjs/p-D_9dM54j.js.map +0 -1
  350. package/dist/papierjs/p-accordion.entry.esm.js.map +0 -1
  351. package/dist/papierjs/p-alert.entry.esm.js.map +0 -1
  352. package/dist/papierjs/p-badge.entry.esm.js.map +0 -1
  353. package/dist/papierjs/p-breadcrumb-item.entry.esm.js.map +0 -1
  354. package/dist/papierjs/p-breadcrumb.entry.esm.js.map +0 -1
  355. package/dist/papierjs/p-button.p-dropdown.p-dropdown-item.p-notification-handler.entry.esm.js.map +0 -1
  356. package/dist/papierjs/p-c2525bb6.entry.js +0 -2
  357. package/dist/papierjs/p-c2525bb6.entry.js.map +0 -1
  358. package/dist/papierjs/p-c28e86c9.entry.js +0 -2
  359. package/dist/papierjs/p-c28e86c9.entry.js.map +0 -1
  360. package/dist/papierjs/p-card.entry.esm.js.map +0 -1
  361. package/dist/papierjs/p-ce23e06d.entry.js +0 -2
  362. package/dist/papierjs/p-ce23e06d.entry.js.map +0 -1
  363. package/dist/papierjs/p-d0848378.entry.js +0 -2
  364. package/dist/papierjs/p-d0848378.entry.js.map +0 -1
  365. package/dist/papierjs/p-e656b497.entry.js +0 -2
  366. package/dist/papierjs/p-e656b497.entry.js.map +0 -1
  367. package/dist/papierjs/p-f1d4da9a.entry.js +0 -2
  368. package/dist/papierjs/p-f1d4da9a.entry.js.map +0 -1
  369. package/dist/papierjs/p-f56b1321.entry.js +0 -2
  370. package/dist/papierjs/p-f56b1321.entry.js.map +0 -1
  371. package/dist/papierjs/p-fjnyWEDB.js.map +0 -1
  372. package/dist/papierjs/p-icon.entry.esm.js.map +0 -1
  373. package/dist/papierjs/p-input-text.entry.esm.js.map +0 -1
  374. package/dist/papierjs/p-leaf.entry.esm.js.map +0 -1
  375. package/dist/papierjs/p-modal.entry.esm.js.map +0 -1
  376. package/dist/papierjs/p-notification-preview.entry.esm.js.map +0 -1
  377. package/dist/papierjs/p-notification.entry.esm.js.map +0 -1
  378. package/dist/papierjs/p-progress-bar.entry.esm.js.map +0 -1
  379. package/dist/papierjs/p-slider.entry.esm.js.map +0 -1
  380. package/dist/papierjs/p-spinner.entry.esm.js.map +0 -1
  381. package/dist/papierjs/p-switch-tile.entry.esm.js.map +0 -1
  382. package/dist/papierjs/p-switch.entry.esm.js.map +0 -1
  383. package/dist/papierjs/p-tab.entry.esm.js.map +0 -1
  384. package/dist/papierjs/p-tabs.entry.esm.js.map +0 -1
  385. package/dist/papierjs/p-tooltip.entry.esm.js.map +0 -1
  386. package/dist/papierjs/papierjs.esm.js.map +0 -1
  387. package/dist/types/components/p-progress-bar/stories/progress-bar.preview.d.ts +0 -1
@@ -19,20 +19,48 @@ function _interopNamespace(e) {
19
19
  }
20
20
 
21
21
  const NAMESPACE = 'papierjs';
22
- const BUILD = /* papierjs */ { hydratedSelectorName: "hydrated", lazyLoad: true, slotRelocation: true, updatable: true, watchCallback: false };
22
+ const BUILD = /* papierjs */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: false, slotRelocation: true, state: true, updatable: true};
23
23
 
24
24
  /*
25
- Stencil Client Platform v4.35.3 | MIT Licensed | https://stenciljs.com
25
+ Stencil Client Platform v4.43.0 | MIT Licensed | https://stenciljs.com
26
26
  */
27
- var __defProp = Object.defineProperty;
28
- var __export = (target, all) => {
29
- for (var name in all)
30
- __defProp(target, name, { get: all[name], enumerable: true });
31
- };
27
+
32
28
 
33
29
  // src/utils/constants.ts
34
30
  var SVG_NS = "http://www.w3.org/2000/svg";
35
31
  var HTML_NS = "http://www.w3.org/1999/xhtml";
32
+ var reWireGetterSetter = (instance, hostRef) => {
33
+ var _a;
34
+ const cmpMeta = hostRef.$cmpMeta$;
35
+ const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
36
+ members.map(([memberName, [memberFlags]]) => {
37
+ if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
38
+ const ogValue = instance[memberName];
39
+ const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName) || Object.getOwnPropertyDescriptor(instance, memberName);
40
+ if (ogDescriptor) {
41
+ Object.defineProperty(instance, memberName, {
42
+ get() {
43
+ return ogDescriptor.get.call(this);
44
+ },
45
+ set(newValue) {
46
+ ogDescriptor.set.call(this, newValue);
47
+ },
48
+ configurable: true,
49
+ enumerable: true
50
+ });
51
+ }
52
+ instance[memberName] = hostRef.$instanceValues$.has(memberName) ? hostRef.$instanceValues$.get(memberName) : ogValue;
53
+ }
54
+ });
55
+ };
56
+ function getPropertyDescriptor(obj, memberName) {
57
+ while (obj) {
58
+ const desc = Object.getOwnPropertyDescriptor(obj, memberName);
59
+ if (desc == null ? void 0 : desc.get) return desc;
60
+ obj = Object.getPrototypeOf(obj);
61
+ }
62
+ return void 0;
63
+ }
36
64
 
37
65
  // src/client/client-host-ref.ts
38
66
  var getHostRef = (ref) => {
@@ -42,15 +70,20 @@ var getHostRef = (ref) => {
42
70
  return void 0;
43
71
  };
44
72
  var registerInstance = (lazyInstance, hostRef) => {
73
+ if (!hostRef) return;
45
74
  lazyInstance.__stencil__getHostRef = () => hostRef;
46
75
  hostRef.$lazyInstance$ = lazyInstance;
76
+ if (hostRef.$cmpMeta$.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD.state)) {
77
+ reWireGetterSetter(lazyInstance, hostRef);
78
+ }
47
79
  };
48
80
  var registerHost = (hostElement, cmpMeta) => {
49
81
  const hostRef = {
50
82
  $flags$: 0,
51
83
  $hostElement$: hostElement,
52
84
  $cmpMeta$: cmpMeta,
53
- $instanceValues$: /* @__PURE__ */ new Map()
85
+ $instanceValues$: /* @__PURE__ */ new Map(),
86
+ $serializerValues$: /* @__PURE__ */ new Map()
54
87
  };
55
88
  {
56
89
  hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
@@ -60,6 +93,9 @@ var registerHost = (hostElement, cmpMeta) => {
60
93
  hostElement["s-p"] = [];
61
94
  hostElement["s-rc"] = [];
62
95
  }
96
+ {
97
+ hostRef.$fetchedCbList$ = [];
98
+ }
63
99
  const ref = hostRef;
64
100
  hostElement.__stencil__getHostRef = () => ref;
65
101
  return ref;
@@ -127,6 +163,14 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
127
163
  return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
128
164
  /* webpackMode: "lazy" */
129
165
  './p-modal.cjs.entry.js')); }).then(processMod, consoleError);
166
+ case 'p-navbar.cjs':
167
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
168
+ /* webpackMode: "lazy" */
169
+ './p-navbar.cjs.entry.js')); }).then(processMod, consoleError);
170
+ case 'p-navbar-item.cjs':
171
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
172
+ /* webpackMode: "lazy" */
173
+ './p-navbar-item.cjs.entry.js')); }).then(processMod, consoleError);
130
174
  case 'p-progress-bar.cjs':
131
175
  return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
132
176
  /* webpackMode: "lazy" */
@@ -226,12 +270,16 @@ var supportsListenerOptions = /* @__PURE__ */ (() => {
226
270
  var promiseResolve = (v) => Promise.resolve(v);
227
271
  var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
228
272
  try {
273
+ if (!win.document.adoptedStyleSheets) {
274
+ return false;
275
+ }
229
276
  new CSSStyleSheet();
230
277
  return typeof new CSSStyleSheet().replaceSync === "function";
231
278
  } catch (e) {
232
279
  }
233
280
  return false;
234
281
  })() ;
282
+ var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
235
283
  var queuePending = false;
236
284
  var queueDomReads = [];
237
285
  var queueDomWrites = [];
@@ -267,70 +315,6 @@ var flush = () => {
267
315
  };
268
316
  var nextTick = (cb) => promiseResolve().then(cb);
269
317
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
270
- var isComplexType = (o) => {
271
- o = typeof o;
272
- return o === "object" || o === "function";
273
- };
274
-
275
- // src/utils/query-nonce-meta-tag-content.ts
276
- function queryNonceMetaTagContent(doc) {
277
- var _a, _b, _c;
278
- return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
279
- }
280
-
281
- // src/utils/regular-expression.ts
282
- var escapeRegExpSpecialCharacters = (text) => {
283
- return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
284
- };
285
-
286
- // src/utils/result.ts
287
- var result_exports = {};
288
- __export(result_exports, {
289
- err: () => err,
290
- map: () => map,
291
- ok: () => ok,
292
- unwrap: () => unwrap,
293
- unwrapErr: () => unwrapErr
294
- });
295
- var ok = (value) => ({
296
- isOk: true,
297
- isErr: false,
298
- value
299
- });
300
- var err = (value) => ({
301
- isOk: false,
302
- isErr: true,
303
- value
304
- });
305
- function map(result, fn) {
306
- if (result.isOk) {
307
- const val = fn(result.value);
308
- if (val instanceof Promise) {
309
- return val.then((newVal) => ok(newVal));
310
- } else {
311
- return ok(val);
312
- }
313
- }
314
- if (result.isErr) {
315
- const value = result.value;
316
- return err(value);
317
- }
318
- throw "should never get here";
319
- }
320
- var unwrap = (result) => {
321
- if (result.isOk) {
322
- return result.value;
323
- } else {
324
- throw result.value;
325
- }
326
- };
327
- var unwrapErr = (result) => {
328
- if (result.isErr) {
329
- return result.value;
330
- } else {
331
- throw result.value;
332
- }
333
- };
334
318
 
335
319
  // src/utils/style.ts
336
320
  function createStyleSheetIfNeededAndSupported(styles2) {
@@ -341,9 +325,16 @@ function createStyleSheetIfNeededAndSupported(styles2) {
341
325
  var globalStyleSheet;
342
326
  function createShadowRoot(cmpMeta) {
343
327
  var _a;
344
- const shadowRoot = this.attachShadow({ mode: "open" });
328
+ const opts = { mode: "open" };
329
+ const shadowRoot = this.attachShadow(opts);
345
330
  if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported()) != null ? _a : null;
346
- if (globalStyleSheet) shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
331
+ if (globalStyleSheet) {
332
+ if (supportsMutableAdoptedStyleSheets) {
333
+ shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
334
+ } else {
335
+ shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
336
+ }
337
+ }
347
338
  }
348
339
  var updateFallbackSlotVisibility = (elm) => {
349
340
  const childNodes = internalCall(elm, "childNodes");
@@ -382,8 +373,9 @@ function getHostSlotNodes(childNodes, hostName, slotName) {
382
373
  let childNode;
383
374
  for (; i2 < childNodes.length; i2++) {
384
375
  childNode = childNodes[i2];
385
- if (childNode["s-sr"] && (!hostName || childNode["s-hn"] === hostName) && (slotName === void 0)) {
376
+ if (childNode["s-sr"] && (!hostName || childNode["s-hn"] === hostName) && (slotName === void 0 || getSlotName(childNode) === slotName)) {
386
377
  slottedNodes.push(childNode);
378
+ if (typeof slotName !== "undefined") return slottedNodes;
387
379
  }
388
380
  slottedNodes = [...slottedNodes, ...getHostSlotNodes(childNode.childNodes, hostName, slotName)];
389
381
  }
@@ -441,6 +433,18 @@ function patchSlotNode(node) {
441
433
  node.assignedElements = assignedFactory(true);
442
434
  node.assignedNodes = assignedFactory(false);
443
435
  }
436
+ function dispatchSlotChangeEvent(elm) {
437
+ elm.dispatchEvent(new CustomEvent("slotchange", { bubbles: false, cancelable: false, composed: false }));
438
+ }
439
+ function findSlotFromSlottedNode(slottedNode, parentHost) {
440
+ var _a;
441
+ parentHost = parentHost || ((_a = slottedNode["s-ol"]) == null ? void 0 : _a.parentElement);
442
+ if (!parentHost) return { slotNode: null, slotName: "" };
443
+ const slotName = slottedNode["s-sn"] = getSlotName(slottedNode) || "";
444
+ const childNodes = internalCall(parentHost, "childNodes");
445
+ const slotNode = getHostSlotNodes(childNodes, parentHost.tagName, slotName)[0];
446
+ return { slotNode, slotName };
447
+ }
444
448
  function internalCall(node, method) {
445
449
  if ("__" + method in node) {
446
450
  const toReturn = node["__" + method];
@@ -465,6 +469,14 @@ var uniqueTime = (key, measureText) => {
465
469
  };
466
470
  }
467
471
  };
472
+
473
+ // src/utils/query-nonce-meta-tag-content.ts
474
+ function queryNonceMetaTagContent(doc) {
475
+ var _a, _b, _c;
476
+ return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
477
+ }
478
+
479
+ // src/runtime/styles.ts
468
480
  var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
469
481
  var registerStyle = (scopeId2, cssText, allowCS) => {
470
482
  let style = styles.get(scopeId2);
@@ -481,7 +493,7 @@ var registerStyle = (scopeId2, cssText, allowCS) => {
481
493
  styles.set(scopeId2, style);
482
494
  };
483
495
  var addStyle = (styleContainerNode, cmpMeta, mode) => {
484
- var _a;
496
+ var _a, _b, _c;
485
497
  const scopeId2 = getScopeId(cmpMeta);
486
498
  const style = styles.get(scopeId2);
487
499
  if (!win.document) {
@@ -497,51 +509,75 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
497
509
  rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
498
510
  }
499
511
  if (!appliedStyles.has(scopeId2)) {
500
- {
501
- styleElm = win.document.createElement("style");
502
- styleElm.innerHTML = style;
503
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
504
- if (nonce != null) {
505
- styleElm.setAttribute("nonce", nonce);
506
- }
507
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
508
- if (styleContainerNode.nodeName === "HEAD") {
509
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
510
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
511
- styleContainerNode.insertBefore(
512
- styleElm,
513
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
514
- );
515
- } else if ("host" in styleContainerNode) {
516
- if (supportsConstructableStylesheets) {
517
- const stylesheet = new CSSStyleSheet();
518
- stylesheet.replaceSync(style);
512
+ styleElm = win.document.createElement("style");
513
+ styleElm.textContent = style;
514
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
515
+ if (nonce != null) {
516
+ styleElm.setAttribute("nonce", nonce);
517
+ }
518
+ if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
519
+ if (styleContainerNode.nodeName === "HEAD") {
520
+ const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
521
+ const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
522
+ styleContainerNode.insertBefore(
523
+ styleElm,
524
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
525
+ );
526
+ } else if ("host" in styleContainerNode) {
527
+ if (supportsConstructableStylesheets) {
528
+ const currentWindow = (_b = styleContainerNode.defaultView) != null ? _b : styleContainerNode.ownerDocument.defaultView;
529
+ const stylesheet = new currentWindow.CSSStyleSheet();
530
+ stylesheet.replaceSync(style);
531
+ if (supportsMutableAdoptedStyleSheets) {
519
532
  styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
520
533
  } else {
521
- const existingStyleContainer = styleContainerNode.querySelector("style");
522
- if (existingStyleContainer) {
523
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
524
- } else {
525
- styleContainerNode.prepend(styleElm);
526
- }
534
+ styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
527
535
  }
528
536
  } else {
529
- styleContainerNode.append(styleElm);
537
+ const existingStyleContainer = styleContainerNode.querySelector("style");
538
+ if (existingStyleContainer) {
539
+ existingStyleContainer.textContent = style + existingStyleContainer.textContent;
540
+ } else {
541
+ styleContainerNode.prepend(styleElm);
542
+ }
530
543
  }
531
- }
532
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
533
- styleContainerNode.insertBefore(styleElm, null);
544
+ } else {
545
+ styleContainerNode.append(styleElm);
534
546
  }
535
547
  }
548
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
549
+ styleContainerNode.insertBefore(styleElm, null);
550
+ }
536
551
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
537
- styleElm.innerHTML += SLOT_FB_CSS;
552
+ styleElm.textContent += SLOT_FB_CSS;
538
553
  }
539
554
  if (appliedStyles) {
540
555
  appliedStyles.add(scopeId2);
541
556
  }
542
557
  }
543
- } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
544
- styleContainerNode.adoptedStyleSheets.push(style);
558
+ } else {
559
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
560
+ if (!appliedStyles) {
561
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
562
+ }
563
+ if (!appliedStyles.has(scopeId2)) {
564
+ const currentWindow = (_c = styleContainerNode.defaultView) != null ? _c : styleContainerNode.ownerDocument.defaultView;
565
+ let stylesheet;
566
+ if (style.constructor === currentWindow.CSSStyleSheet) {
567
+ stylesheet = style;
568
+ } else {
569
+ stylesheet = new currentWindow.CSSStyleSheet();
570
+ for (let i2 = 0; i2 < style.cssRules.length; i2++) {
571
+ stylesheet.insertRule(style.cssRules[i2].cssText, i2);
572
+ }
573
+ }
574
+ if (supportsMutableAdoptedStyleSheets) {
575
+ styleContainerNode.adoptedStyleSheets.push(stylesheet);
576
+ } else {
577
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, stylesheet];
578
+ }
579
+ appliedStyles.add(scopeId2);
580
+ }
545
581
  }
546
582
  }
547
583
  return scopeId2;
@@ -561,7 +597,16 @@ var attachStyles = (hostRef) => {
561
597
  endAttachStyles();
562
598
  };
563
599
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
600
+ var isComplexType = (o) => {
601
+ o = typeof o;
602
+ return o === "object" || o === "function";
603
+ };
604
+
605
+ // src/runtime/vdom/h.ts
564
606
  var h = (nodeName, vnodeData, ...children) => {
607
+ if (typeof nodeName === "string") {
608
+ nodeName = transformTag(nodeName);
609
+ }
565
610
  let child = null;
566
611
  let key = null;
567
612
  let slotName = null;
@@ -618,7 +663,8 @@ var newVNode = (tag, text) => {
618
663
  const vnode = {
619
664
  $flags$: 0,
620
665
  $tag$: tag,
621
- $text$: text,
666
+ // Normalize undefined to null to prevent rendering "undefined" as text
667
+ $text$: text != null ? text : null,
622
668
  $elm$: null,
623
669
  $children$: null
624
670
  };
@@ -635,18 +681,8 @@ var newVNode = (tag, text) => {
635
681
  };
636
682
  var Host = {};
637
683
  var isHost = (node) => node && node.$tag$ === Host;
638
- var createSupportsRuleRe = (selector) => {
639
- const safeSelector2 = escapeRegExpSpecialCharacters(selector);
640
- return new RegExp(
641
- // First capture group: match any context before the selector that's not inside @supports selector()
642
- // Using negative lookahead to avoid matching inside @supports selector(...) condition
643
- `(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector2}))(${safeSelector2}\\b)`,
644
- "g"
645
- );
646
- };
647
- createSupportsRuleRe("::slotted");
648
- createSupportsRuleRe(":host");
649
- createSupportsRuleRe(":host-context");
684
+
685
+ // src/runtime/parse-property-value.ts
650
686
  var parsePropertyValue = (propValue, propType, isFormAssociated) => {
651
687
  if (propValue != null && !isComplexType(propValue)) {
652
688
  if (propType & 4 /* Boolean */) {
@@ -664,7 +700,10 @@ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
664
700
  }
665
701
  return propValue;
666
702
  };
667
- var getElement = (ref) => getHostRef(ref).$hostElement$ ;
703
+ var getElement = (ref) => {
704
+ var _a;
705
+ return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
706
+ };
668
707
 
669
708
  // src/runtime/event-emitter.ts
670
709
  var createEvent = (ref, name, flags) => {
@@ -738,6 +777,36 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
738
777
  plt.ael(elm, memberName, newValue, capture);
739
778
  }
740
779
  }
780
+ } else if (memberName[0] === "a" && memberName.startsWith("attr:")) {
781
+ const propName = memberName.slice(5);
782
+ let attrName;
783
+ {
784
+ const hostRef = getHostRef(elm);
785
+ if (hostRef && hostRef.$cmpMeta$ && hostRef.$cmpMeta$.$members$) {
786
+ const memberMeta = hostRef.$cmpMeta$.$members$[propName];
787
+ if (memberMeta && memberMeta[1]) {
788
+ attrName = memberMeta[1];
789
+ }
790
+ }
791
+ }
792
+ if (!attrName) {
793
+ attrName = propName.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
794
+ }
795
+ if (newValue == null || newValue === false) {
796
+ if (newValue !== false || elm.getAttribute(attrName) === "") {
797
+ elm.removeAttribute(attrName);
798
+ }
799
+ } else {
800
+ elm.setAttribute(attrName, newValue === true ? "" : newValue);
801
+ }
802
+ return;
803
+ } else if (memberName[0] === "p" && memberName.startsWith("prop:")) {
804
+ const propName = memberName.slice(5);
805
+ try {
806
+ elm[propName] = newValue;
807
+ } catch (e) {
808
+ }
809
+ return;
741
810
  } else {
742
811
  const isComplex = isComplexType(newValue);
743
812
  if ((isProp || isComplex && newValue !== null) && !isSvg) {
@@ -746,7 +815,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
746
815
  const n = newValue == null ? "" : newValue;
747
816
  if (memberName === "list") {
748
817
  isProp = false;
749
- } else if (oldValue == null || elm[memberName] != n) {
818
+ } else if (oldValue == null || elm[memberName] !== n) {
750
819
  if (typeof elm.__lookupSetter__(memberName) === "function") {
751
820
  elm[memberName] = n;
752
821
  } else {
@@ -851,7 +920,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
851
920
  );
852
921
  }
853
922
  }
854
- if (newVNode2.$text$ !== null) {
923
+ if (newVNode2.$text$ != null) {
855
924
  elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
856
925
  } else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
857
926
  elm = newVNode2.$elm$ = win.document.createTextNode("");
@@ -863,9 +932,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
863
932
  isSvgMode = newVNode2.$tag$ === "svg";
864
933
  }
865
934
  if (!win.document) {
866
- throw new Error(
867
- "You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
868
- );
935
+ throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");
869
936
  }
870
937
  elm = newVNode2.$elm$ = win.document.createElementNS(
871
938
  isSvgMode ? SVG_NS : HTML_NS,
@@ -878,10 +945,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
878
945
  updateElement(null, newVNode2, isSvgMode);
879
946
  }
880
947
  if (newVNode2.$children$) {
948
+ const appendTarget = newVNode2.$tag$ === "template" ? elm.content : elm;
881
949
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
882
950
  childNode = createElm(oldParentVNode, newVNode2, i2);
883
951
  if (childNode) {
884
- elm.appendChild(childNode);
952
+ appendTarget.appendChild(childNode);
885
953
  }
886
954
  }
887
955
  }
@@ -903,17 +971,43 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
903
971
  patchSlotNode(elm);
904
972
  oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
905
973
  if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
906
- {
907
- putBackInOriginalLocation(oldParentVNode.$elm$, false);
908
- }
974
+ relocateToHostRoot(oldParentVNode.$elm$);
909
975
  }
910
976
  }
911
977
  }
912
978
  return elm;
913
979
  };
980
+ var relocateToHostRoot = (parentElm) => {
981
+ plt.$flags$ |= 1 /* isTmpDisconnected */;
982
+ const host = parentElm.closest(hostTagName.toLowerCase());
983
+ if (host != null) {
984
+ const contentRefNode = Array.from(host.__childNodes || host.childNodes).find(
985
+ (ref) => ref["s-cr"]
986
+ );
987
+ const childNodeArray = Array.from(
988
+ parentElm.__childNodes || parentElm.childNodes
989
+ );
990
+ for (const childNode of contentRefNode ? childNodeArray.reverse() : childNodeArray) {
991
+ if (childNode["s-sh"] != null) {
992
+ insertBefore(host, childNode, contentRefNode != null ? contentRefNode : null);
993
+ childNode["s-sh"] = void 0;
994
+ checkSlotRelocate = true;
995
+ }
996
+ }
997
+ }
998
+ plt.$flags$ &= -2 /* isTmpDisconnected */;
999
+ };
914
1000
  var putBackInOriginalLocation = (parentElm, recursive) => {
915
1001
  plt.$flags$ |= 1 /* isTmpDisconnected */;
916
1002
  const oldSlotChildNodes = Array.from(parentElm.__childNodes || parentElm.childNodes);
1003
+ if (parentElm["s-sr"]) {
1004
+ let node = parentElm;
1005
+ while (node = node.nextSibling) {
1006
+ if (node && node["s-sn"] === parentElm["s-sn"] && node["s-sh"] === hostTagName) {
1007
+ oldSlotChildNodes.push(node);
1008
+ }
1009
+ }
1010
+ }
917
1011
  for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
918
1012
  const childNode = oldSlotChildNodes[i2];
919
1013
  if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
@@ -935,6 +1029,9 @@ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
935
1029
  if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
936
1030
  containerElm = containerElm.shadowRoot;
937
1031
  }
1032
+ if (parentVNode.$tag$ === "template") {
1033
+ containerElm = containerElm.content;
1034
+ }
938
1035
  for (; startIdx <= endIdx; ++startIdx) {
939
1036
  if (vnodes[startIdx]) {
940
1037
  childNode = createElm(null, parentVNode, startIdx);
@@ -977,6 +1074,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
977
1074
  let newEndVnode = newCh[newEndIdx];
978
1075
  let node;
979
1076
  let elmToMove;
1077
+ const containerElm = newVNode2.$tag$ === "template" ? parentElm.content : parentElm;
980
1078
  while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
981
1079
  if (oldStartVnode == null) {
982
1080
  oldStartVnode = oldCh[++oldStartIdx];
@@ -999,7 +1097,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
999
1097
  putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
1000
1098
  }
1001
1099
  patch(oldStartVnode, newEndVnode, isInitialRender);
1002
- insertBefore(parentElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
1100
+ insertBefore(containerElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
1003
1101
  oldStartVnode = oldCh[++oldStartIdx];
1004
1102
  newEndVnode = newCh[--newEndIdx];
1005
1103
  } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
@@ -1007,7 +1105,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
1007
1105
  putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
1008
1106
  }
1009
1107
  patch(oldEndVnode, newStartVnode, isInitialRender);
1010
- insertBefore(parentElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
1108
+ insertBefore(containerElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
1011
1109
  oldEndVnode = oldCh[--oldEndIdx];
1012
1110
  newStartVnode = newCh[++newStartIdx];
1013
1111
  } else {
@@ -1081,11 +1179,17 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
1081
1179
  const tag = newVNode2.$tag$;
1082
1180
  const text = newVNode2.$text$;
1083
1181
  let defaultHolder;
1084
- if (text === null) {
1182
+ if (text == null) {
1085
1183
  {
1086
1184
  isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
1087
1185
  }
1088
1186
  {
1187
+ if (tag === "slot" && !useNativeShadowDom) {
1188
+ if (oldVNode.$name$ !== newVNode2.$name$) {
1189
+ newVNode2.$elm$["s-sn"] = newVNode2.$name$ || "";
1190
+ relocateToHostRoot(newVNode2.$elm$.parentElement);
1191
+ }
1192
+ }
1089
1193
  updateElement(oldVNode, newVNode2, isSvgMode);
1090
1194
  }
1091
1195
  if (oldChildren !== null && newChildren !== null) {
@@ -1122,7 +1226,7 @@ var markSlotContentForRelocation = (elm) => {
1122
1226
  const slotName = childNode["s-sn"];
1123
1227
  for (j = hostContentNodes.length - 1; j >= 0; j--) {
1124
1228
  node = hostContentNodes[j];
1125
- if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (true)) {
1229
+ if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (!node["s-sh"] || node["s-sh"] !== childNode["s-hn"])) {
1126
1230
  if (isNodeLocatedInSlot(node, slotName)) {
1127
1231
  let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1128
1232
  checkSlotFallbackVisibility = true;
@@ -1160,13 +1264,23 @@ var markSlotContentForRelocation = (elm) => {
1160
1264
  }
1161
1265
  }
1162
1266
  };
1163
- var insertBefore = (parent, newNode, reference) => {
1267
+ var insertBefore = (parent, newNode, reference, isInitialLoad) => {
1164
1268
  {
1269
+ if (typeof newNode["s-sn"] === "string") {
1270
+ parent.insertBefore(newNode, reference);
1271
+ const { slotNode } = findSlotFromSlottedNode(newNode);
1272
+ if (slotNode && !isInitialLoad) dispatchSlotChangeEvent(slotNode);
1273
+ return newNode;
1274
+ }
1275
+ }
1276
+ if (parent.__insertBefore) {
1277
+ return parent.__insertBefore(newNode, reference);
1278
+ } else {
1165
1279
  return parent == null ? void 0 : parent.insertBefore(newNode, reference);
1166
1280
  }
1167
1281
  };
1168
1282
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1169
- var _a, _b, _c, _d;
1283
+ var _a, _b, _c, _d, _e;
1170
1284
  const hostElm = hostRef.$hostElement$;
1171
1285
  const cmpMeta = hostRef.$cmpMeta$;
1172
1286
  const oldVNode = hostRef.$vnode$ || newVNode(null, null);
@@ -1199,19 +1313,27 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1199
1313
  if (!nodeToRelocate["s-ol"] && win.document) {
1200
1314
  const orgLocationNode = win.document.createTextNode("");
1201
1315
  orgLocationNode["s-nr"] = nodeToRelocate;
1202
- insertBefore(nodeToRelocate.parentNode, nodeToRelocate["s-ol"] = orgLocationNode, nodeToRelocate);
1316
+ insertBefore(
1317
+ nodeToRelocate.parentNode,
1318
+ nodeToRelocate["s-ol"] = orgLocationNode,
1319
+ nodeToRelocate,
1320
+ isInitialLoad
1321
+ );
1203
1322
  }
1204
1323
  }
1205
1324
  for (const relocateData of relocateNodes) {
1206
1325
  const nodeToRelocate = relocateData.$nodeToRelocate$;
1207
1326
  const slotRefNode = relocateData.$slotRefNode$;
1327
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */ && isInitialLoad) {
1328
+ nodeToRelocate["s-ih"] = (_a = nodeToRelocate.hidden) != null ? _a : false;
1329
+ }
1208
1330
  if (slotRefNode) {
1209
1331
  const parentNodeRef = slotRefNode.parentNode;
1210
1332
  let insertBeforeNode = slotRefNode.nextSibling;
1211
- {
1212
- let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
1333
+ if (insertBeforeNode && insertBeforeNode.nodeType === 1 /* ElementNode */) {
1334
+ let orgLocationNode = (_b = nodeToRelocate["s-ol"]) == null ? void 0 : _b.previousSibling;
1213
1335
  while (orgLocationNode) {
1214
- let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
1336
+ let refNode = (_c = orgLocationNode["s-nr"]) != null ? _c : null;
1215
1337
  if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === (refNode.__parentNode || refNode.parentNode)) {
1216
1338
  refNode = refNode.nextSibling;
1217
1339
  while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
@@ -1229,23 +1351,26 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1229
1351
  const nextSibling = nodeToRelocate.__nextSibling || nodeToRelocate.nextSibling;
1230
1352
  if (!insertBeforeNode && parentNodeRef !== parent || nextSibling !== insertBeforeNode) {
1231
1353
  if (nodeToRelocate !== insertBeforeNode) {
1232
- if (!nodeToRelocate["s-hn"] && nodeToRelocate["s-ol"]) {
1233
- nodeToRelocate["s-hn"] = nodeToRelocate["s-ol"].parentNode.nodeName;
1354
+ insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode, isInitialLoad);
1355
+ if (nodeToRelocate.nodeType === 8 /* CommentNode */ && nodeToRelocate.nodeValue.startsWith("s-nt-")) {
1356
+ const textNode = win.document.createTextNode(nodeToRelocate.nodeValue.replace(/^s-nt-/, ""));
1357
+ textNode["s-hn"] = nodeToRelocate["s-hn"];
1358
+ textNode["s-sn"] = nodeToRelocate["s-sn"];
1359
+ textNode["s-sh"] = nodeToRelocate["s-sh"];
1360
+ textNode["s-sr"] = nodeToRelocate["s-sr"];
1361
+ textNode["s-ol"] = nodeToRelocate["s-ol"];
1362
+ textNode["s-ol"]["s-nr"] = textNode;
1363
+ insertBefore(nodeToRelocate.parentNode, textNode, nodeToRelocate, isInitialLoad);
1364
+ nodeToRelocate.parentNode.removeChild(nodeToRelocate);
1234
1365
  }
1235
- insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
1236
1366
  if (nodeToRelocate.nodeType === 1 /* ElementNode */ && nodeToRelocate.tagName !== "SLOT-FB") {
1237
- nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
1367
+ nodeToRelocate.hidden = (_d = nodeToRelocate["s-ih"]) != null ? _d : false;
1238
1368
  }
1239
1369
  }
1240
1370
  }
1241
1371
  nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](slotRefNode);
1242
- } else {
1243
- if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1244
- if (isInitialLoad) {
1245
- nodeToRelocate["s-ih"] = (_d = nodeToRelocate.hidden) != null ? _d : false;
1246
- }
1247
- nodeToRelocate.hidden = true;
1248
- }
1372
+ } else if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1373
+ nodeToRelocate.hidden = true;
1249
1374
  }
1250
1375
  }
1251
1376
  }
@@ -1255,6 +1380,24 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1255
1380
  plt.$flags$ &= -2 /* isTmpDisconnected */;
1256
1381
  relocateNodes.length = 0;
1257
1382
  }
1383
+ if (!useNativeShadowDom && !(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && hostElm["s-cr"]) {
1384
+ const children = rootVnode.$elm$.__childNodes || rootVnode.$elm$.childNodes;
1385
+ for (const childNode of children) {
1386
+ if (childNode["s-hn"] !== hostTagName && !childNode["s-sh"]) {
1387
+ if (isInitialLoad && childNode["s-ih"] == null) {
1388
+ childNode["s-ih"] = (_e = childNode.hidden) != null ? _e : false;
1389
+ }
1390
+ if (childNode.nodeType === 1 /* ElementNode */) {
1391
+ childNode.hidden = true;
1392
+ } else if (childNode.nodeType === 3 /* TextNode */ && !!childNode.nodeValue.trim()) {
1393
+ const textCommentNode = win.document.createComment("s-nt-" + childNode.nodeValue);
1394
+ textCommentNode["s-sn"] = childNode["s-sn"];
1395
+ insertBefore(childNode.parentNode, textCommentNode, childNode, isInitialLoad);
1396
+ childNode.parentNode.removeChild(childNode);
1397
+ }
1398
+ }
1399
+ }
1400
+ }
1258
1401
  contentRef = void 0;
1259
1402
  };
1260
1403
 
@@ -1281,6 +1424,12 @@ var scheduleUpdate = (hostRef, isInitialLoad) => {
1281
1424
  }
1282
1425
  attachToAncestor(hostRef, hostRef.$ancestorComponent$);
1283
1426
  const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1427
+ if (isInitialLoad) {
1428
+ queueMicrotask(() => {
1429
+ dispatch();
1430
+ });
1431
+ return;
1432
+ }
1284
1433
  return writeTask(dispatch) ;
1285
1434
  };
1286
1435
  var dispatchHooks = (hostRef, isInitialLoad) => {
@@ -1295,10 +1444,19 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
1295
1444
  let maybePromise;
1296
1445
  if (isInitialLoad) {
1297
1446
  {
1298
- hostRef.$flags$ |= 256 /* isListenReady */;
1299
- if (hostRef.$queuedListeners$) {
1300
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
1301
- hostRef.$queuedListeners$ = void 0;
1447
+ if (hostRef.$deferredConnectedCallback$) {
1448
+ hostRef.$deferredConnectedCallback$ = false;
1449
+ safeCall(instance, "connectedCallback", void 0, elm);
1450
+ }
1451
+ {
1452
+ hostRef.$flags$ |= 256 /* isListenReady */;
1453
+ if (hostRef.$queuedListeners$) {
1454
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
1455
+ hostRef.$queuedListeners$ = void 0;
1456
+ }
1457
+ }
1458
+ if (hostRef.$fetchedCbList$.length) {
1459
+ hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
1302
1460
  }
1303
1461
  }
1304
1462
  maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
@@ -1309,8 +1467,8 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
1309
1467
  endSchedule();
1310
1468
  return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
1311
1469
  };
1312
- var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err2) => {
1313
- console.error(err2);
1470
+ var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err) => {
1471
+ console.error(err);
1314
1472
  fn();
1315
1473
  }) : fn();
1316
1474
  var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
@@ -1338,7 +1496,7 @@ var updateComponent = async (hostRef, instance, isInitialLoad) => {
1338
1496
  if (childrenPromises.length === 0) {
1339
1497
  postUpdate();
1340
1498
  } else {
1341
- Promise.all(childrenPromises).then(postUpdate);
1499
+ Promise.all(childrenPromises).then(postUpdate).catch(postUpdate);
1342
1500
  hostRef.$flags$ |= 4 /* isWaitingForChildren */;
1343
1501
  childrenPromises.length = 0;
1344
1502
  }
@@ -1425,6 +1583,9 @@ var addHydratedFlag = (elm) => {
1425
1583
  var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1426
1584
  var setValue = (ref, propName, newVal, cmpMeta) => {
1427
1585
  const hostRef = getHostRef(ref);
1586
+ if (!hostRef) {
1587
+ return;
1588
+ }
1428
1589
  if (!hostRef) {
1429
1590
  throw new Error(
1430
1591
  `Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`
@@ -1440,13 +1601,14 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
1440
1601
  const didValueChange = newVal !== oldVal && !areBothNaN;
1441
1602
  if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
1442
1603
  hostRef.$instanceValues$.set(propName, newVal);
1443
- if (instance) {
1444
- if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1445
- if (instance.componentShouldUpdate) {
1446
- if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
1447
- return;
1448
- }
1604
+ if (flags & 2 /* hasRendered */) {
1605
+ if (instance.componentShouldUpdate) {
1606
+ const shouldUpdate = instance.componentShouldUpdate(newVal, oldVal, propName);
1607
+ if (shouldUpdate === false && !(flags & 16 /* isQueuedForUpdate */)) {
1608
+ return;
1449
1609
  }
1610
+ }
1611
+ if (!(flags & 16 /* isQueuedForUpdate */)) {
1450
1612
  scheduleUpdate(hostRef, false);
1451
1613
  }
1452
1614
  }
@@ -1457,7 +1619,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
1457
1619
  var proxyComponent = (Cstr, cmpMeta, flags) => {
1458
1620
  var _a, _b;
1459
1621
  const prototype = Cstr.prototype;
1460
- if (cmpMeta.$members$ || BUILD.watchCallback) {
1622
+ if (cmpMeta.$members$ || BUILD.propChangeCallback) {
1461
1623
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1462
1624
  members.map(([memberName, [memberFlags]]) => {
1463
1625
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
@@ -1484,12 +1646,13 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1484
1646
  Object.defineProperty(prototype, memberName, {
1485
1647
  set(newValue) {
1486
1648
  const ref = getHostRef(this);
1649
+ if (!ref) {
1650
+ return;
1651
+ }
1487
1652
  if (origSetter) {
1488
1653
  const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1489
1654
  if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1490
1655
  newValue = ref.$instanceValues$.get(memberName);
1491
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1492
- ref.$instanceValues$.set(memberName, currentValue);
1493
1656
  }
1494
1657
  origSetter.apply(this, [
1495
1658
  parsePropertyValue(
@@ -1504,7 +1667,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1504
1667
  if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1505
1668
  setValue(this, memberName, newValue, cmpMeta);
1506
1669
  if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1507
- ref.$onReadyPromise$.then(() => {
1670
+ ref.$fetchedCbList$.push(() => {
1508
1671
  if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1509
1672
  ref.$lazyInstance$[memberName] = newValue;
1510
1673
  }
@@ -1525,7 +1688,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1525
1688
  if (ref.$lazyInstance$) {
1526
1689
  setterSetVal();
1527
1690
  } else {
1528
- ref.$onReadyPromise$.then(() => setterSetVal());
1691
+ ref.$fetchedCbList$.push(() => {
1692
+ setterSetVal();
1693
+ });
1529
1694
  }
1530
1695
  }
1531
1696
  }
@@ -1549,29 +1714,34 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1549
1714
  plt.jmp(() => {
1550
1715
  var _a2;
1551
1716
  const propName = attrNameToPropName.get(attrName);
1717
+ const hostRef = getHostRef(this);
1552
1718
  if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
1553
1719
  newValue = this[propName];
1554
1720
  delete this[propName];
1555
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1721
+ }
1722
+ if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1556
1723
  this[propName] == newValue) {
1557
1724
  return;
1558
1725
  } else if (propName == null) {
1559
- const hostRef = getHostRef(this);
1560
1726
  const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
1561
- if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
1727
+ if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && newValue !== oldValue) {
1562
1728
  const instance = hostRef.$lazyInstance$ ;
1563
1729
  const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
1564
- entry == null ? void 0 : entry.forEach((callbackName) => {
1565
- if (instance[callbackName] != null) {
1566
- instance[callbackName].call(instance, newValue, oldValue, attrName);
1730
+ entry == null ? void 0 : entry.forEach((watcher) => {
1731
+ const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
1732
+ if (instance[watchMethodName] != null && (flags2 & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */)) {
1733
+ instance[watchMethodName].call(instance, newValue, oldValue, attrName);
1567
1734
  }
1568
1735
  });
1569
1736
  }
1570
1737
  return;
1571
1738
  }
1739
+ const propFlags = members.find(([m]) => m === propName);
1740
+ if (propFlags && propFlags[1][0] & 4 /* Boolean */) {
1741
+ newValue = newValue === null || newValue === "false" ? false : true;
1742
+ }
1572
1743
  const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1573
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1574
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1744
+ if (newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
1575
1745
  this[propName] = newValue;
1576
1746
  }
1577
1747
  });
@@ -1579,7 +1749,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1579
1749
  Cstr.observedAttributes = Array.from(
1580
1750
  /* @__PURE__ */ new Set([
1581
1751
  ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
1582
- ...members.filter(([_, m]) => m[0] & 15 /* HasAttribute */).map(([propName, m]) => {
1752
+ ...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
1583
1753
  const attrName = m[1] || propName;
1584
1754
  attrNameToPropName.set(attrName, propName);
1585
1755
  return attrName;
@@ -1594,63 +1764,79 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1594
1764
  // src/runtime/initialize-component.ts
1595
1765
  var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1596
1766
  let Cstr;
1597
- if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1598
- hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1599
- const bundleId = cmpMeta.$lazyBundleId$;
1600
- if (bundleId) {
1601
- const CstrImport = loadModule(cmpMeta, hostRef);
1602
- if (CstrImport && "then" in CstrImport) {
1603
- const endLoad = uniqueTime();
1604
- Cstr = await CstrImport;
1605
- endLoad();
1767
+ try {
1768
+ if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1769
+ hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1770
+ const bundleId = cmpMeta.$lazyBundleId$;
1771
+ if (bundleId) {
1772
+ const CstrImport = loadModule(cmpMeta, hostRef);
1773
+ if (CstrImport && "then" in CstrImport) {
1774
+ const endLoad = uniqueTime();
1775
+ Cstr = await CstrImport;
1776
+ endLoad();
1777
+ } else {
1778
+ Cstr = CstrImport;
1779
+ }
1780
+ if (!Cstr) {
1781
+ throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
1782
+ }
1783
+ if (!Cstr.isProxied) {
1784
+ proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
1785
+ Cstr.isProxied = true;
1786
+ }
1787
+ const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
1788
+ {
1789
+ hostRef.$flags$ |= 8 /* isConstructingInstance */;
1790
+ }
1791
+ try {
1792
+ new Cstr(hostRef);
1793
+ } catch (e) {
1794
+ consoleError(e, elm);
1795
+ }
1796
+ {
1797
+ hostRef.$flags$ &= -9 /* isConstructingInstance */;
1798
+ }
1799
+ endNewInstance();
1800
+ const needsDeferredCallback = cmpMeta.$flags$ & 4 /* hasSlotRelocation */;
1801
+ if (!needsDeferredCallback) {
1802
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1803
+ } else {
1804
+ hostRef.$deferredConnectedCallback$ = true;
1805
+ }
1606
1806
  } else {
1607
- Cstr = CstrImport;
1608
- }
1609
- if (!Cstr) {
1610
- throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
1611
- }
1612
- if (!Cstr.isProxied) {
1613
- proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
1614
- Cstr.isProxied = true;
1615
- }
1616
- const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
1617
- {
1618
- hostRef.$flags$ |= 8 /* isConstructingInstance */;
1619
- }
1620
- try {
1621
- new Cstr(hostRef);
1622
- } catch (e) {
1623
- consoleError(e, elm);
1807
+ Cstr = elm.constructor;
1808
+ const cmpTag = elm.localName;
1809
+ customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1624
1810
  }
1625
- {
1626
- hostRef.$flags$ &= -9 /* isConstructingInstance */;
1811
+ if (Cstr && Cstr.style) {
1812
+ let style;
1813
+ if (typeof Cstr.style === "string") {
1814
+ style = Cstr.style;
1815
+ }
1816
+ const scopeId2 = getScopeId(cmpMeta);
1817
+ if (!styles.has(scopeId2) || BUILD.hotModuleReplacement) {
1818
+ const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
1819
+ registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
1820
+ endRegisterStyles();
1821
+ }
1627
1822
  }
1628
- endNewInstance();
1629
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
1823
+ }
1824
+ const ancestorComponent = hostRef.$ancestorComponent$;
1825
+ const schedule = () => scheduleUpdate(hostRef, true);
1826
+ if (ancestorComponent && ancestorComponent["s-rc"]) {
1827
+ ancestorComponent["s-rc"].push(schedule);
1630
1828
  } else {
1631
- Cstr = elm.constructor;
1632
- const cmpTag = elm.localName;
1633
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1829
+ schedule();
1634
1830
  }
1635
- if (Cstr && Cstr.style) {
1636
- let style;
1637
- if (typeof Cstr.style === "string") {
1638
- style = Cstr.style;
1639
- }
1640
- const scopeId2 = getScopeId(cmpMeta);
1641
- if (!styles.has(scopeId2)) {
1642
- const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
1643
- registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
1644
- endRegisterStyles();
1645
- }
1831
+ } catch (e) {
1832
+ consoleError(e, elm);
1833
+ if (hostRef.$onRenderResolve$) {
1834
+ hostRef.$onRenderResolve$();
1835
+ hostRef.$onRenderResolve$ = void 0;
1836
+ }
1837
+ if (hostRef.$onReadyResolve$) {
1838
+ hostRef.$onReadyResolve$(elm);
1646
1839
  }
1647
- }
1648
- const ancestorComponent = hostRef.$ancestorComponent$;
1649
- const schedule = () => scheduleUpdate(hostRef, true);
1650
- if (ancestorComponent && ancestorComponent["s-rc"]) {
1651
- ancestorComponent["s-rc"].push(schedule);
1652
- } else {
1653
- schedule();
1654
1840
  }
1655
1841
  };
1656
1842
  var fireConnectedCallback = (instance, elm) => {
@@ -1663,6 +1849,9 @@ var fireConnectedCallback = (instance, elm) => {
1663
1849
  var connectedCallback = (elm) => {
1664
1850
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1665
1851
  const hostRef = getHostRef(elm);
1852
+ if (!hostRef) {
1853
+ return;
1854
+ }
1666
1855
  const cmpMeta = hostRef.$cmpMeta$;
1667
1856
  const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
1668
1857
  if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
@@ -1684,7 +1873,7 @@ var connectedCallback = (elm) => {
1684
1873
  }
1685
1874
  if (cmpMeta.$members$) {
1686
1875
  Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1687
- if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
1876
+ if (memberFlags & 31 /* Prop */ && memberName in elm && elm[memberName] !== Object.prototype[memberName]) {
1688
1877
  const value = elm[memberName];
1689
1878
  delete elm[memberName];
1690
1879
  elm[memberName] = value;
@@ -1724,7 +1913,7 @@ var disconnectedCallback = async (elm) => {
1724
1913
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1725
1914
  const hostRef = getHostRef(elm);
1726
1915
  {
1727
- if (hostRef.$rmListeners$) {
1916
+ if (hostRef == null ? void 0 : hostRef.$rmListeners$) {
1728
1917
  hostRef.$rmListeners$.map((rmListener) => rmListener());
1729
1918
  hostRef.$rmListeners$ = void 0;
1730
1919
  }
@@ -1780,12 +1969,14 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1780
1969
  {
1781
1970
  cmpMeta.$listeners$ = compactMeta[3];
1782
1971
  }
1783
- const tagName = cmpMeta.$tagName$;
1972
+ const tagName = transformTag(cmpMeta.$tagName$);
1784
1973
  const HostElement = class extends HTMLElement {
1974
+ ["s-p"];
1975
+ ["s-rc"];
1976
+ hasRegisteredEventListeners = false;
1785
1977
  // StencilLazyHost
1786
1978
  constructor(self) {
1787
1979
  super(self);
1788
- this.hasRegisteredEventListeners = false;
1789
1980
  self = this;
1790
1981
  registerHost(self, cmpMeta);
1791
1982
  if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
@@ -1804,6 +1995,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1804
1995
  }
1805
1996
  connectedCallback() {
1806
1997
  const hostRef = getHostRef(this);
1998
+ if (!hostRef) {
1999
+ return;
2000
+ }
1807
2001
  if (!this.hasRegisteredEventListeners) {
1808
2002
  this.hasRegisteredEventListeners = true;
1809
2003
  addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
@@ -1823,6 +2017,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1823
2017
  plt.raf(() => {
1824
2018
  var _a3;
1825
2019
  const hostRef = getHostRef(this);
2020
+ if (!hostRef) {
2021
+ return;
2022
+ }
1826
2023
  const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1827
2024
  if (i2 > -1) {
1828
2025
  deferredConnectedCallbacks.splice(i2, 1);
@@ -1833,7 +2030,8 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1833
2030
  });
1834
2031
  }
1835
2032
  componentOnReady() {
1836
- return getHostRef(this).$onReadyPromise$;
2033
+ var _a3;
2034
+ return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
1837
2035
  }
1838
2036
  };
1839
2037
  cmpMeta.$lazyBundleId$ = lazyBundle[0];
@@ -1910,6 +2108,9 @@ var hostListenerOpts = (flags) => supportsListenerOptions ? {
1910
2108
 
1911
2109
  // src/runtime/nonce.ts
1912
2110
  var setNonce = (nonce) => plt.$nonce$ = nonce;
2111
+ function transformTag(tag) {
2112
+ return tag;
2113
+ }
1913
2114
 
1914
2115
  exports.Host = Host;
1915
2116
  exports.bootstrapLazy = bootstrapLazy;
@@ -1919,6 +2120,3 @@ exports.h = h;
1919
2120
  exports.promiseResolve = promiseResolve;
1920
2121
  exports.registerInstance = registerInstance;
1921
2122
  exports.setNonce = setNonce;
1922
- //# sourceMappingURL=index-BLkeAjdP.js.map
1923
-
1924
- //# sourceMappingURL=index-BLkeAjdP.js.map