@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
@@ -1,18 +1,46 @@
1
1
  const NAMESPACE = 'papierjs';
2
- const BUILD = /* papierjs */ { hydratedSelectorName: "hydrated", lazyLoad: true, slotRelocation: true, updatable: true, watchCallback: false };
2
+ const BUILD = /* papierjs */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: false, slotRelocation: true, state: true, updatable: true};
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.35.3 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.43.0 | MIT Licensed | https://stenciljs.com
6
6
  */
7
- var __defProp = Object.defineProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
7
+
12
8
 
13
9
  // src/utils/constants.ts
14
10
  var SVG_NS = "http://www.w3.org/2000/svg";
15
11
  var HTML_NS = "http://www.w3.org/1999/xhtml";
12
+ var reWireGetterSetter = (instance, hostRef) => {
13
+ var _a;
14
+ const cmpMeta = hostRef.$cmpMeta$;
15
+ const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
16
+ members.map(([memberName, [memberFlags]]) => {
17
+ if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
18
+ const ogValue = instance[memberName];
19
+ const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName) || Object.getOwnPropertyDescriptor(instance, memberName);
20
+ if (ogDescriptor) {
21
+ Object.defineProperty(instance, memberName, {
22
+ get() {
23
+ return ogDescriptor.get.call(this);
24
+ },
25
+ set(newValue) {
26
+ ogDescriptor.set.call(this, newValue);
27
+ },
28
+ configurable: true,
29
+ enumerable: true
30
+ });
31
+ }
32
+ instance[memberName] = hostRef.$instanceValues$.has(memberName) ? hostRef.$instanceValues$.get(memberName) : ogValue;
33
+ }
34
+ });
35
+ };
36
+ function getPropertyDescriptor(obj, memberName) {
37
+ while (obj) {
38
+ const desc = Object.getOwnPropertyDescriptor(obj, memberName);
39
+ if (desc == null ? void 0 : desc.get) return desc;
40
+ obj = Object.getPrototypeOf(obj);
41
+ }
42
+ return void 0;
43
+ }
16
44
 
17
45
  // src/client/client-host-ref.ts
18
46
  var getHostRef = (ref) => {
@@ -22,15 +50,20 @@ var getHostRef = (ref) => {
22
50
  return void 0;
23
51
  };
24
52
  var registerInstance = (lazyInstance, hostRef) => {
53
+ if (!hostRef) return;
25
54
  lazyInstance.__stencil__getHostRef = () => hostRef;
26
55
  hostRef.$lazyInstance$ = lazyInstance;
56
+ if (hostRef.$cmpMeta$.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD.state)) {
57
+ reWireGetterSetter(lazyInstance, hostRef);
58
+ }
27
59
  };
28
60
  var registerHost = (hostElement, cmpMeta) => {
29
61
  const hostRef = {
30
62
  $flags$: 0,
31
63
  $hostElement$: hostElement,
32
64
  $cmpMeta$: cmpMeta,
33
- $instanceValues$: /* @__PURE__ */ new Map()
65
+ $instanceValues$: /* @__PURE__ */ new Map(),
66
+ $serializerValues$: /* @__PURE__ */ new Map()
34
67
  };
35
68
  {
36
69
  hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
@@ -40,6 +73,9 @@ var registerHost = (hostElement, cmpMeta) => {
40
73
  hostElement["s-p"] = [];
41
74
  hostElement["s-rc"] = [];
42
75
  }
76
+ {
77
+ hostRef.$fetchedCbList$ = [];
78
+ }
43
79
  const ref = hostRef;
44
80
  hostElement.__stencil__getHostRef = () => ref;
45
81
  return ref;
@@ -107,6 +143,14 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
107
143
  return import(
108
144
  /* webpackMode: "lazy" */
109
145
  './p-modal.entry.js').then(processMod, consoleError);
146
+ case 'p-navbar':
147
+ return import(
148
+ /* webpackMode: "lazy" */
149
+ './p-navbar.entry.js').then(processMod, consoleError);
150
+ case 'p-navbar-item':
151
+ return import(
152
+ /* webpackMode: "lazy" */
153
+ './p-navbar-item.entry.js').then(processMod, consoleError);
110
154
  case 'p-progress-bar':
111
155
  return import(
112
156
  /* webpackMode: "lazy" */
@@ -206,12 +250,16 @@ var supportsListenerOptions = /* @__PURE__ */ (() => {
206
250
  var promiseResolve = (v) => Promise.resolve(v);
207
251
  var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
208
252
  try {
253
+ if (!win.document.adoptedStyleSheets) {
254
+ return false;
255
+ }
209
256
  new CSSStyleSheet();
210
257
  return typeof new CSSStyleSheet().replaceSync === "function";
211
258
  } catch (e) {
212
259
  }
213
260
  return false;
214
261
  })() ;
262
+ var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
215
263
  var queuePending = false;
216
264
  var queueDomReads = [];
217
265
  var queueDomWrites = [];
@@ -247,70 +295,6 @@ var flush = () => {
247
295
  };
248
296
  var nextTick = (cb) => promiseResolve().then(cb);
249
297
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
250
- var isComplexType = (o) => {
251
- o = typeof o;
252
- return o === "object" || o === "function";
253
- };
254
-
255
- // src/utils/query-nonce-meta-tag-content.ts
256
- function queryNonceMetaTagContent(doc) {
257
- var _a, _b, _c;
258
- 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;
259
- }
260
-
261
- // src/utils/regular-expression.ts
262
- var escapeRegExpSpecialCharacters = (text) => {
263
- return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
264
- };
265
-
266
- // src/utils/result.ts
267
- var result_exports = {};
268
- __export(result_exports, {
269
- err: () => err,
270
- map: () => map,
271
- ok: () => ok,
272
- unwrap: () => unwrap,
273
- unwrapErr: () => unwrapErr
274
- });
275
- var ok = (value) => ({
276
- isOk: true,
277
- isErr: false,
278
- value
279
- });
280
- var err = (value) => ({
281
- isOk: false,
282
- isErr: true,
283
- value
284
- });
285
- function map(result, fn) {
286
- if (result.isOk) {
287
- const val = fn(result.value);
288
- if (val instanceof Promise) {
289
- return val.then((newVal) => ok(newVal));
290
- } else {
291
- return ok(val);
292
- }
293
- }
294
- if (result.isErr) {
295
- const value = result.value;
296
- return err(value);
297
- }
298
- throw "should never get here";
299
- }
300
- var unwrap = (result) => {
301
- if (result.isOk) {
302
- return result.value;
303
- } else {
304
- throw result.value;
305
- }
306
- };
307
- var unwrapErr = (result) => {
308
- if (result.isErr) {
309
- return result.value;
310
- } else {
311
- throw result.value;
312
- }
313
- };
314
298
 
315
299
  // src/utils/style.ts
316
300
  function createStyleSheetIfNeededAndSupported(styles2) {
@@ -321,9 +305,16 @@ function createStyleSheetIfNeededAndSupported(styles2) {
321
305
  var globalStyleSheet;
322
306
  function createShadowRoot(cmpMeta) {
323
307
  var _a;
324
- const shadowRoot = this.attachShadow({ mode: "open" });
308
+ const opts = { mode: "open" };
309
+ const shadowRoot = this.attachShadow(opts);
325
310
  if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported()) != null ? _a : null;
326
- if (globalStyleSheet) shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
311
+ if (globalStyleSheet) {
312
+ if (supportsMutableAdoptedStyleSheets) {
313
+ shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
314
+ } else {
315
+ shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
316
+ }
317
+ }
327
318
  }
328
319
  var updateFallbackSlotVisibility = (elm) => {
329
320
  const childNodes = internalCall(elm, "childNodes");
@@ -362,8 +353,9 @@ function getHostSlotNodes(childNodes, hostName, slotName) {
362
353
  let childNode;
363
354
  for (; i2 < childNodes.length; i2++) {
364
355
  childNode = childNodes[i2];
365
- if (childNode["s-sr"] && (!hostName || childNode["s-hn"] === hostName) && (slotName === void 0)) {
356
+ if (childNode["s-sr"] && (!hostName || childNode["s-hn"] === hostName) && (slotName === void 0 || getSlotName(childNode) === slotName)) {
366
357
  slottedNodes.push(childNode);
358
+ if (typeof slotName !== "undefined") return slottedNodes;
367
359
  }
368
360
  slottedNodes = [...slottedNodes, ...getHostSlotNodes(childNode.childNodes, hostName, slotName)];
369
361
  }
@@ -421,6 +413,18 @@ function patchSlotNode(node) {
421
413
  node.assignedElements = assignedFactory(true);
422
414
  node.assignedNodes = assignedFactory(false);
423
415
  }
416
+ function dispatchSlotChangeEvent(elm) {
417
+ elm.dispatchEvent(new CustomEvent("slotchange", { bubbles: false, cancelable: false, composed: false }));
418
+ }
419
+ function findSlotFromSlottedNode(slottedNode, parentHost) {
420
+ var _a;
421
+ parentHost = parentHost || ((_a = slottedNode["s-ol"]) == null ? void 0 : _a.parentElement);
422
+ if (!parentHost) return { slotNode: null, slotName: "" };
423
+ const slotName = slottedNode["s-sn"] = getSlotName(slottedNode) || "";
424
+ const childNodes = internalCall(parentHost, "childNodes");
425
+ const slotNode = getHostSlotNodes(childNodes, parentHost.tagName, slotName)[0];
426
+ return { slotNode, slotName };
427
+ }
424
428
  function internalCall(node, method) {
425
429
  if ("__" + method in node) {
426
430
  const toReturn = node["__" + method];
@@ -445,6 +449,14 @@ var uniqueTime = (key, measureText) => {
445
449
  };
446
450
  }
447
451
  };
452
+
453
+ // src/utils/query-nonce-meta-tag-content.ts
454
+ function queryNonceMetaTagContent(doc) {
455
+ var _a, _b, _c;
456
+ 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;
457
+ }
458
+
459
+ // src/runtime/styles.ts
448
460
  var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
449
461
  var registerStyle = (scopeId2, cssText, allowCS) => {
450
462
  let style = styles.get(scopeId2);
@@ -461,7 +473,7 @@ var registerStyle = (scopeId2, cssText, allowCS) => {
461
473
  styles.set(scopeId2, style);
462
474
  };
463
475
  var addStyle = (styleContainerNode, cmpMeta, mode) => {
464
- var _a;
476
+ var _a, _b, _c;
465
477
  const scopeId2 = getScopeId(cmpMeta);
466
478
  const style = styles.get(scopeId2);
467
479
  if (!win.document) {
@@ -477,51 +489,75 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
477
489
  rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
478
490
  }
479
491
  if (!appliedStyles.has(scopeId2)) {
480
- {
481
- styleElm = win.document.createElement("style");
482
- styleElm.innerHTML = style;
483
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
484
- if (nonce != null) {
485
- styleElm.setAttribute("nonce", nonce);
486
- }
487
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
488
- if (styleContainerNode.nodeName === "HEAD") {
489
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
490
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
491
- styleContainerNode.insertBefore(
492
- styleElm,
493
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
494
- );
495
- } else if ("host" in styleContainerNode) {
496
- if (supportsConstructableStylesheets) {
497
- const stylesheet = new CSSStyleSheet();
498
- stylesheet.replaceSync(style);
492
+ styleElm = win.document.createElement("style");
493
+ styleElm.textContent = style;
494
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
495
+ if (nonce != null) {
496
+ styleElm.setAttribute("nonce", nonce);
497
+ }
498
+ if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
499
+ if (styleContainerNode.nodeName === "HEAD") {
500
+ const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
501
+ const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
502
+ styleContainerNode.insertBefore(
503
+ styleElm,
504
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
505
+ );
506
+ } else if ("host" in styleContainerNode) {
507
+ if (supportsConstructableStylesheets) {
508
+ const currentWindow = (_b = styleContainerNode.defaultView) != null ? _b : styleContainerNode.ownerDocument.defaultView;
509
+ const stylesheet = new currentWindow.CSSStyleSheet();
510
+ stylesheet.replaceSync(style);
511
+ if (supportsMutableAdoptedStyleSheets) {
499
512
  styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
500
513
  } else {
501
- const existingStyleContainer = styleContainerNode.querySelector("style");
502
- if (existingStyleContainer) {
503
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
504
- } else {
505
- styleContainerNode.prepend(styleElm);
506
- }
514
+ styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
507
515
  }
508
516
  } else {
509
- styleContainerNode.append(styleElm);
517
+ const existingStyleContainer = styleContainerNode.querySelector("style");
518
+ if (existingStyleContainer) {
519
+ existingStyleContainer.textContent = style + existingStyleContainer.textContent;
520
+ } else {
521
+ styleContainerNode.prepend(styleElm);
522
+ }
510
523
  }
524
+ } else {
525
+ styleContainerNode.append(styleElm);
511
526
  }
512
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
513
- styleContainerNode.insertBefore(styleElm, null);
514
- }
527
+ }
528
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
529
+ styleContainerNode.insertBefore(styleElm, null);
515
530
  }
516
531
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
517
- styleElm.innerHTML += SLOT_FB_CSS;
532
+ styleElm.textContent += SLOT_FB_CSS;
518
533
  }
519
534
  if (appliedStyles) {
520
535
  appliedStyles.add(scopeId2);
521
536
  }
522
537
  }
523
- } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
524
- styleContainerNode.adoptedStyleSheets.push(style);
538
+ } else {
539
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
540
+ if (!appliedStyles) {
541
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
542
+ }
543
+ if (!appliedStyles.has(scopeId2)) {
544
+ const currentWindow = (_c = styleContainerNode.defaultView) != null ? _c : styleContainerNode.ownerDocument.defaultView;
545
+ let stylesheet;
546
+ if (style.constructor === currentWindow.CSSStyleSheet) {
547
+ stylesheet = style;
548
+ } else {
549
+ stylesheet = new currentWindow.CSSStyleSheet();
550
+ for (let i2 = 0; i2 < style.cssRules.length; i2++) {
551
+ stylesheet.insertRule(style.cssRules[i2].cssText, i2);
552
+ }
553
+ }
554
+ if (supportsMutableAdoptedStyleSheets) {
555
+ styleContainerNode.adoptedStyleSheets.push(stylesheet);
556
+ } else {
557
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, stylesheet];
558
+ }
559
+ appliedStyles.add(scopeId2);
560
+ }
525
561
  }
526
562
  }
527
563
  return scopeId2;
@@ -541,7 +577,16 @@ var attachStyles = (hostRef) => {
541
577
  endAttachStyles();
542
578
  };
543
579
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
580
+ var isComplexType = (o) => {
581
+ o = typeof o;
582
+ return o === "object" || o === "function";
583
+ };
584
+
585
+ // src/runtime/vdom/h.ts
544
586
  var h = (nodeName, vnodeData, ...children) => {
587
+ if (typeof nodeName === "string") {
588
+ nodeName = transformTag(nodeName);
589
+ }
545
590
  let child = null;
546
591
  let key = null;
547
592
  let slotName = null;
@@ -598,7 +643,8 @@ var newVNode = (tag, text) => {
598
643
  const vnode = {
599
644
  $flags$: 0,
600
645
  $tag$: tag,
601
- $text$: text,
646
+ // Normalize undefined to null to prevent rendering "undefined" as text
647
+ $text$: text != null ? text : null,
602
648
  $elm$: null,
603
649
  $children$: null
604
650
  };
@@ -615,18 +661,8 @@ var newVNode = (tag, text) => {
615
661
  };
616
662
  var Host = {};
617
663
  var isHost = (node) => node && node.$tag$ === Host;
618
- var createSupportsRuleRe = (selector) => {
619
- const safeSelector2 = escapeRegExpSpecialCharacters(selector);
620
- return new RegExp(
621
- // First capture group: match any context before the selector that's not inside @supports selector()
622
- // Using negative lookahead to avoid matching inside @supports selector(...) condition
623
- `(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector2}))(${safeSelector2}\\b)`,
624
- "g"
625
- );
626
- };
627
- createSupportsRuleRe("::slotted");
628
- createSupportsRuleRe(":host");
629
- createSupportsRuleRe(":host-context");
664
+
665
+ // src/runtime/parse-property-value.ts
630
666
  var parsePropertyValue = (propValue, propType, isFormAssociated) => {
631
667
  if (propValue != null && !isComplexType(propValue)) {
632
668
  if (propType & 4 /* Boolean */) {
@@ -644,7 +680,10 @@ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
644
680
  }
645
681
  return propValue;
646
682
  };
647
- var getElement = (ref) => getHostRef(ref).$hostElement$ ;
683
+ var getElement = (ref) => {
684
+ var _a;
685
+ return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
686
+ };
648
687
 
649
688
  // src/runtime/event-emitter.ts
650
689
  var createEvent = (ref, name, flags) => {
@@ -718,6 +757,36 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
718
757
  plt.ael(elm, memberName, newValue, capture);
719
758
  }
720
759
  }
760
+ } else if (memberName[0] === "a" && memberName.startsWith("attr:")) {
761
+ const propName = memberName.slice(5);
762
+ let attrName;
763
+ {
764
+ const hostRef = getHostRef(elm);
765
+ if (hostRef && hostRef.$cmpMeta$ && hostRef.$cmpMeta$.$members$) {
766
+ const memberMeta = hostRef.$cmpMeta$.$members$[propName];
767
+ if (memberMeta && memberMeta[1]) {
768
+ attrName = memberMeta[1];
769
+ }
770
+ }
771
+ }
772
+ if (!attrName) {
773
+ attrName = propName.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
774
+ }
775
+ if (newValue == null || newValue === false) {
776
+ if (newValue !== false || elm.getAttribute(attrName) === "") {
777
+ elm.removeAttribute(attrName);
778
+ }
779
+ } else {
780
+ elm.setAttribute(attrName, newValue === true ? "" : newValue);
781
+ }
782
+ return;
783
+ } else if (memberName[0] === "p" && memberName.startsWith("prop:")) {
784
+ const propName = memberName.slice(5);
785
+ try {
786
+ elm[propName] = newValue;
787
+ } catch (e) {
788
+ }
789
+ return;
721
790
  } else {
722
791
  const isComplex = isComplexType(newValue);
723
792
  if ((isProp || isComplex && newValue !== null) && !isSvg) {
@@ -726,7 +795,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
726
795
  const n = newValue == null ? "" : newValue;
727
796
  if (memberName === "list") {
728
797
  isProp = false;
729
- } else if (oldValue == null || elm[memberName] != n) {
798
+ } else if (oldValue == null || elm[memberName] !== n) {
730
799
  if (typeof elm.__lookupSetter__(memberName) === "function") {
731
800
  elm[memberName] = n;
732
801
  } else {
@@ -831,7 +900,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
831
900
  );
832
901
  }
833
902
  }
834
- if (newVNode2.$text$ !== null) {
903
+ if (newVNode2.$text$ != null) {
835
904
  elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
836
905
  } else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
837
906
  elm = newVNode2.$elm$ = win.document.createTextNode("");
@@ -843,9 +912,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
843
912
  isSvgMode = newVNode2.$tag$ === "svg";
844
913
  }
845
914
  if (!win.document) {
846
- throw new Error(
847
- "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."
848
- );
915
+ throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");
849
916
  }
850
917
  elm = newVNode2.$elm$ = win.document.createElementNS(
851
918
  isSvgMode ? SVG_NS : HTML_NS,
@@ -858,10 +925,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
858
925
  updateElement(null, newVNode2, isSvgMode);
859
926
  }
860
927
  if (newVNode2.$children$) {
928
+ const appendTarget = newVNode2.$tag$ === "template" ? elm.content : elm;
861
929
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
862
930
  childNode = createElm(oldParentVNode, newVNode2, i2);
863
931
  if (childNode) {
864
- elm.appendChild(childNode);
932
+ appendTarget.appendChild(childNode);
865
933
  }
866
934
  }
867
935
  }
@@ -883,17 +951,43 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
883
951
  patchSlotNode(elm);
884
952
  oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
885
953
  if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
886
- {
887
- putBackInOriginalLocation(oldParentVNode.$elm$, false);
888
- }
954
+ relocateToHostRoot(oldParentVNode.$elm$);
889
955
  }
890
956
  }
891
957
  }
892
958
  return elm;
893
959
  };
960
+ var relocateToHostRoot = (parentElm) => {
961
+ plt.$flags$ |= 1 /* isTmpDisconnected */;
962
+ const host = parentElm.closest(hostTagName.toLowerCase());
963
+ if (host != null) {
964
+ const contentRefNode = Array.from(host.__childNodes || host.childNodes).find(
965
+ (ref) => ref["s-cr"]
966
+ );
967
+ const childNodeArray = Array.from(
968
+ parentElm.__childNodes || parentElm.childNodes
969
+ );
970
+ for (const childNode of contentRefNode ? childNodeArray.reverse() : childNodeArray) {
971
+ if (childNode["s-sh"] != null) {
972
+ insertBefore(host, childNode, contentRefNode != null ? contentRefNode : null);
973
+ childNode["s-sh"] = void 0;
974
+ checkSlotRelocate = true;
975
+ }
976
+ }
977
+ }
978
+ plt.$flags$ &= -2 /* isTmpDisconnected */;
979
+ };
894
980
  var putBackInOriginalLocation = (parentElm, recursive) => {
895
981
  plt.$flags$ |= 1 /* isTmpDisconnected */;
896
982
  const oldSlotChildNodes = Array.from(parentElm.__childNodes || parentElm.childNodes);
983
+ if (parentElm["s-sr"]) {
984
+ let node = parentElm;
985
+ while (node = node.nextSibling) {
986
+ if (node && node["s-sn"] === parentElm["s-sn"] && node["s-sh"] === hostTagName) {
987
+ oldSlotChildNodes.push(node);
988
+ }
989
+ }
990
+ }
897
991
  for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
898
992
  const childNode = oldSlotChildNodes[i2];
899
993
  if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
@@ -915,6 +1009,9 @@ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
915
1009
  if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
916
1010
  containerElm = containerElm.shadowRoot;
917
1011
  }
1012
+ if (parentVNode.$tag$ === "template") {
1013
+ containerElm = containerElm.content;
1014
+ }
918
1015
  for (; startIdx <= endIdx; ++startIdx) {
919
1016
  if (vnodes[startIdx]) {
920
1017
  childNode = createElm(null, parentVNode, startIdx);
@@ -957,6 +1054,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
957
1054
  let newEndVnode = newCh[newEndIdx];
958
1055
  let node;
959
1056
  let elmToMove;
1057
+ const containerElm = newVNode2.$tag$ === "template" ? parentElm.content : parentElm;
960
1058
  while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
961
1059
  if (oldStartVnode == null) {
962
1060
  oldStartVnode = oldCh[++oldStartIdx];
@@ -979,7 +1077,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
979
1077
  putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
980
1078
  }
981
1079
  patch(oldStartVnode, newEndVnode, isInitialRender);
982
- insertBefore(parentElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
1080
+ insertBefore(containerElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
983
1081
  oldStartVnode = oldCh[++oldStartIdx];
984
1082
  newEndVnode = newCh[--newEndIdx];
985
1083
  } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
@@ -987,7 +1085,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
987
1085
  putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
988
1086
  }
989
1087
  patch(oldEndVnode, newStartVnode, isInitialRender);
990
- insertBefore(parentElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
1088
+ insertBefore(containerElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
991
1089
  oldEndVnode = oldCh[--oldEndIdx];
992
1090
  newStartVnode = newCh[++newStartIdx];
993
1091
  } else {
@@ -1061,11 +1159,17 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
1061
1159
  const tag = newVNode2.$tag$;
1062
1160
  const text = newVNode2.$text$;
1063
1161
  let defaultHolder;
1064
- if (text === null) {
1162
+ if (text == null) {
1065
1163
  {
1066
1164
  isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
1067
1165
  }
1068
1166
  {
1167
+ if (tag === "slot" && !useNativeShadowDom) {
1168
+ if (oldVNode.$name$ !== newVNode2.$name$) {
1169
+ newVNode2.$elm$["s-sn"] = newVNode2.$name$ || "";
1170
+ relocateToHostRoot(newVNode2.$elm$.parentElement);
1171
+ }
1172
+ }
1069
1173
  updateElement(oldVNode, newVNode2, isSvgMode);
1070
1174
  }
1071
1175
  if (oldChildren !== null && newChildren !== null) {
@@ -1102,7 +1206,7 @@ var markSlotContentForRelocation = (elm) => {
1102
1206
  const slotName = childNode["s-sn"];
1103
1207
  for (j = hostContentNodes.length - 1; j >= 0; j--) {
1104
1208
  node = hostContentNodes[j];
1105
- if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (true)) {
1209
+ if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (!node["s-sh"] || node["s-sh"] !== childNode["s-hn"])) {
1106
1210
  if (isNodeLocatedInSlot(node, slotName)) {
1107
1211
  let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1108
1212
  checkSlotFallbackVisibility = true;
@@ -1140,13 +1244,23 @@ var markSlotContentForRelocation = (elm) => {
1140
1244
  }
1141
1245
  }
1142
1246
  };
1143
- var insertBefore = (parent, newNode, reference) => {
1247
+ var insertBefore = (parent, newNode, reference, isInitialLoad) => {
1144
1248
  {
1249
+ if (typeof newNode["s-sn"] === "string") {
1250
+ parent.insertBefore(newNode, reference);
1251
+ const { slotNode } = findSlotFromSlottedNode(newNode);
1252
+ if (slotNode && !isInitialLoad) dispatchSlotChangeEvent(slotNode);
1253
+ return newNode;
1254
+ }
1255
+ }
1256
+ if (parent.__insertBefore) {
1257
+ return parent.__insertBefore(newNode, reference);
1258
+ } else {
1145
1259
  return parent == null ? void 0 : parent.insertBefore(newNode, reference);
1146
1260
  }
1147
1261
  };
1148
1262
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1149
- var _a, _b, _c, _d;
1263
+ var _a, _b, _c, _d, _e;
1150
1264
  const hostElm = hostRef.$hostElement$;
1151
1265
  const cmpMeta = hostRef.$cmpMeta$;
1152
1266
  const oldVNode = hostRef.$vnode$ || newVNode(null, null);
@@ -1179,19 +1293,27 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1179
1293
  if (!nodeToRelocate["s-ol"] && win.document) {
1180
1294
  const orgLocationNode = win.document.createTextNode("");
1181
1295
  orgLocationNode["s-nr"] = nodeToRelocate;
1182
- insertBefore(nodeToRelocate.parentNode, nodeToRelocate["s-ol"] = orgLocationNode, nodeToRelocate);
1296
+ insertBefore(
1297
+ nodeToRelocate.parentNode,
1298
+ nodeToRelocate["s-ol"] = orgLocationNode,
1299
+ nodeToRelocate,
1300
+ isInitialLoad
1301
+ );
1183
1302
  }
1184
1303
  }
1185
1304
  for (const relocateData of relocateNodes) {
1186
1305
  const nodeToRelocate = relocateData.$nodeToRelocate$;
1187
1306
  const slotRefNode = relocateData.$slotRefNode$;
1307
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */ && isInitialLoad) {
1308
+ nodeToRelocate["s-ih"] = (_a = nodeToRelocate.hidden) != null ? _a : false;
1309
+ }
1188
1310
  if (slotRefNode) {
1189
1311
  const parentNodeRef = slotRefNode.parentNode;
1190
1312
  let insertBeforeNode = slotRefNode.nextSibling;
1191
- {
1192
- let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
1313
+ if (insertBeforeNode && insertBeforeNode.nodeType === 1 /* ElementNode */) {
1314
+ let orgLocationNode = (_b = nodeToRelocate["s-ol"]) == null ? void 0 : _b.previousSibling;
1193
1315
  while (orgLocationNode) {
1194
- let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
1316
+ let refNode = (_c = orgLocationNode["s-nr"]) != null ? _c : null;
1195
1317
  if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === (refNode.__parentNode || refNode.parentNode)) {
1196
1318
  refNode = refNode.nextSibling;
1197
1319
  while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
@@ -1209,23 +1331,26 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1209
1331
  const nextSibling = nodeToRelocate.__nextSibling || nodeToRelocate.nextSibling;
1210
1332
  if (!insertBeforeNode && parentNodeRef !== parent || nextSibling !== insertBeforeNode) {
1211
1333
  if (nodeToRelocate !== insertBeforeNode) {
1212
- if (!nodeToRelocate["s-hn"] && nodeToRelocate["s-ol"]) {
1213
- nodeToRelocate["s-hn"] = nodeToRelocate["s-ol"].parentNode.nodeName;
1334
+ insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode, isInitialLoad);
1335
+ if (nodeToRelocate.nodeType === 8 /* CommentNode */ && nodeToRelocate.nodeValue.startsWith("s-nt-")) {
1336
+ const textNode = win.document.createTextNode(nodeToRelocate.nodeValue.replace(/^s-nt-/, ""));
1337
+ textNode["s-hn"] = nodeToRelocate["s-hn"];
1338
+ textNode["s-sn"] = nodeToRelocate["s-sn"];
1339
+ textNode["s-sh"] = nodeToRelocate["s-sh"];
1340
+ textNode["s-sr"] = nodeToRelocate["s-sr"];
1341
+ textNode["s-ol"] = nodeToRelocate["s-ol"];
1342
+ textNode["s-ol"]["s-nr"] = textNode;
1343
+ insertBefore(nodeToRelocate.parentNode, textNode, nodeToRelocate, isInitialLoad);
1344
+ nodeToRelocate.parentNode.removeChild(nodeToRelocate);
1214
1345
  }
1215
- insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
1216
1346
  if (nodeToRelocate.nodeType === 1 /* ElementNode */ && nodeToRelocate.tagName !== "SLOT-FB") {
1217
- nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
1347
+ nodeToRelocate.hidden = (_d = nodeToRelocate["s-ih"]) != null ? _d : false;
1218
1348
  }
1219
1349
  }
1220
1350
  }
1221
1351
  nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](slotRefNode);
1222
- } else {
1223
- if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1224
- if (isInitialLoad) {
1225
- nodeToRelocate["s-ih"] = (_d = nodeToRelocate.hidden) != null ? _d : false;
1226
- }
1227
- nodeToRelocate.hidden = true;
1228
- }
1352
+ } else if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1353
+ nodeToRelocate.hidden = true;
1229
1354
  }
1230
1355
  }
1231
1356
  }
@@ -1235,6 +1360,24 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1235
1360
  plt.$flags$ &= -2 /* isTmpDisconnected */;
1236
1361
  relocateNodes.length = 0;
1237
1362
  }
1363
+ if (!useNativeShadowDom && !(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && hostElm["s-cr"]) {
1364
+ const children = rootVnode.$elm$.__childNodes || rootVnode.$elm$.childNodes;
1365
+ for (const childNode of children) {
1366
+ if (childNode["s-hn"] !== hostTagName && !childNode["s-sh"]) {
1367
+ if (isInitialLoad && childNode["s-ih"] == null) {
1368
+ childNode["s-ih"] = (_e = childNode.hidden) != null ? _e : false;
1369
+ }
1370
+ if (childNode.nodeType === 1 /* ElementNode */) {
1371
+ childNode.hidden = true;
1372
+ } else if (childNode.nodeType === 3 /* TextNode */ && !!childNode.nodeValue.trim()) {
1373
+ const textCommentNode = win.document.createComment("s-nt-" + childNode.nodeValue);
1374
+ textCommentNode["s-sn"] = childNode["s-sn"];
1375
+ insertBefore(childNode.parentNode, textCommentNode, childNode, isInitialLoad);
1376
+ childNode.parentNode.removeChild(childNode);
1377
+ }
1378
+ }
1379
+ }
1380
+ }
1238
1381
  contentRef = void 0;
1239
1382
  };
1240
1383
 
@@ -1261,6 +1404,12 @@ var scheduleUpdate = (hostRef, isInitialLoad) => {
1261
1404
  }
1262
1405
  attachToAncestor(hostRef, hostRef.$ancestorComponent$);
1263
1406
  const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1407
+ if (isInitialLoad) {
1408
+ queueMicrotask(() => {
1409
+ dispatch();
1410
+ });
1411
+ return;
1412
+ }
1264
1413
  return writeTask(dispatch) ;
1265
1414
  };
1266
1415
  var dispatchHooks = (hostRef, isInitialLoad) => {
@@ -1275,10 +1424,19 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
1275
1424
  let maybePromise;
1276
1425
  if (isInitialLoad) {
1277
1426
  {
1278
- hostRef.$flags$ |= 256 /* isListenReady */;
1279
- if (hostRef.$queuedListeners$) {
1280
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
1281
- hostRef.$queuedListeners$ = void 0;
1427
+ if (hostRef.$deferredConnectedCallback$) {
1428
+ hostRef.$deferredConnectedCallback$ = false;
1429
+ safeCall(instance, "connectedCallback", void 0, elm);
1430
+ }
1431
+ {
1432
+ hostRef.$flags$ |= 256 /* isListenReady */;
1433
+ if (hostRef.$queuedListeners$) {
1434
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
1435
+ hostRef.$queuedListeners$ = void 0;
1436
+ }
1437
+ }
1438
+ if (hostRef.$fetchedCbList$.length) {
1439
+ hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
1282
1440
  }
1283
1441
  }
1284
1442
  maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
@@ -1289,8 +1447,8 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
1289
1447
  endSchedule();
1290
1448
  return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
1291
1449
  };
1292
- var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err2) => {
1293
- console.error(err2);
1450
+ var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err) => {
1451
+ console.error(err);
1294
1452
  fn();
1295
1453
  }) : fn();
1296
1454
  var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
@@ -1318,7 +1476,7 @@ var updateComponent = async (hostRef, instance, isInitialLoad) => {
1318
1476
  if (childrenPromises.length === 0) {
1319
1477
  postUpdate();
1320
1478
  } else {
1321
- Promise.all(childrenPromises).then(postUpdate);
1479
+ Promise.all(childrenPromises).then(postUpdate).catch(postUpdate);
1322
1480
  hostRef.$flags$ |= 4 /* isWaitingForChildren */;
1323
1481
  childrenPromises.length = 0;
1324
1482
  }
@@ -1405,6 +1563,9 @@ var addHydratedFlag = (elm) => {
1405
1563
  var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1406
1564
  var setValue = (ref, propName, newVal, cmpMeta) => {
1407
1565
  const hostRef = getHostRef(ref);
1566
+ if (!hostRef) {
1567
+ return;
1568
+ }
1408
1569
  if (!hostRef) {
1409
1570
  throw new Error(
1410
1571
  `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).`
@@ -1420,13 +1581,14 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
1420
1581
  const didValueChange = newVal !== oldVal && !areBothNaN;
1421
1582
  if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
1422
1583
  hostRef.$instanceValues$.set(propName, newVal);
1423
- if (instance) {
1424
- if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1425
- if (instance.componentShouldUpdate) {
1426
- if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
1427
- return;
1428
- }
1584
+ if (flags & 2 /* hasRendered */) {
1585
+ if (instance.componentShouldUpdate) {
1586
+ const shouldUpdate = instance.componentShouldUpdate(newVal, oldVal, propName);
1587
+ if (shouldUpdate === false && !(flags & 16 /* isQueuedForUpdate */)) {
1588
+ return;
1429
1589
  }
1590
+ }
1591
+ if (!(flags & 16 /* isQueuedForUpdate */)) {
1430
1592
  scheduleUpdate(hostRef, false);
1431
1593
  }
1432
1594
  }
@@ -1437,7 +1599,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
1437
1599
  var proxyComponent = (Cstr, cmpMeta, flags) => {
1438
1600
  var _a, _b;
1439
1601
  const prototype = Cstr.prototype;
1440
- if (cmpMeta.$members$ || BUILD.watchCallback) {
1602
+ if (cmpMeta.$members$ || BUILD.propChangeCallback) {
1441
1603
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1442
1604
  members.map(([memberName, [memberFlags]]) => {
1443
1605
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
@@ -1464,12 +1626,13 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1464
1626
  Object.defineProperty(prototype, memberName, {
1465
1627
  set(newValue) {
1466
1628
  const ref = getHostRef(this);
1629
+ if (!ref) {
1630
+ return;
1631
+ }
1467
1632
  if (origSetter) {
1468
1633
  const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1469
1634
  if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1470
1635
  newValue = ref.$instanceValues$.get(memberName);
1471
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1472
- ref.$instanceValues$.set(memberName, currentValue);
1473
1636
  }
1474
1637
  origSetter.apply(this, [
1475
1638
  parsePropertyValue(
@@ -1484,7 +1647,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1484
1647
  if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1485
1648
  setValue(this, memberName, newValue, cmpMeta);
1486
1649
  if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1487
- ref.$onReadyPromise$.then(() => {
1650
+ ref.$fetchedCbList$.push(() => {
1488
1651
  if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1489
1652
  ref.$lazyInstance$[memberName] = newValue;
1490
1653
  }
@@ -1505,7 +1668,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1505
1668
  if (ref.$lazyInstance$) {
1506
1669
  setterSetVal();
1507
1670
  } else {
1508
- ref.$onReadyPromise$.then(() => setterSetVal());
1671
+ ref.$fetchedCbList$.push(() => {
1672
+ setterSetVal();
1673
+ });
1509
1674
  }
1510
1675
  }
1511
1676
  }
@@ -1529,29 +1694,34 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1529
1694
  plt.jmp(() => {
1530
1695
  var _a2;
1531
1696
  const propName = attrNameToPropName.get(attrName);
1697
+ const hostRef = getHostRef(this);
1532
1698
  if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
1533
1699
  newValue = this[propName];
1534
1700
  delete this[propName];
1535
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1701
+ }
1702
+ if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1536
1703
  this[propName] == newValue) {
1537
1704
  return;
1538
1705
  } else if (propName == null) {
1539
- const hostRef = getHostRef(this);
1540
1706
  const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
1541
- if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
1707
+ if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && newValue !== oldValue) {
1542
1708
  const instance = hostRef.$lazyInstance$ ;
1543
1709
  const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
1544
- entry == null ? void 0 : entry.forEach((callbackName) => {
1545
- if (instance[callbackName] != null) {
1546
- instance[callbackName].call(instance, newValue, oldValue, attrName);
1710
+ entry == null ? void 0 : entry.forEach((watcher) => {
1711
+ const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
1712
+ if (instance[watchMethodName] != null && (flags2 & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */)) {
1713
+ instance[watchMethodName].call(instance, newValue, oldValue, attrName);
1547
1714
  }
1548
1715
  });
1549
1716
  }
1550
1717
  return;
1551
1718
  }
1719
+ const propFlags = members.find(([m]) => m === propName);
1720
+ if (propFlags && propFlags[1][0] & 4 /* Boolean */) {
1721
+ newValue = newValue === null || newValue === "false" ? false : true;
1722
+ }
1552
1723
  const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1553
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1554
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1724
+ if (newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
1555
1725
  this[propName] = newValue;
1556
1726
  }
1557
1727
  });
@@ -1559,7 +1729,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1559
1729
  Cstr.observedAttributes = Array.from(
1560
1730
  /* @__PURE__ */ new Set([
1561
1731
  ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
1562
- ...members.filter(([_, m]) => m[0] & 15 /* HasAttribute */).map(([propName, m]) => {
1732
+ ...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
1563
1733
  const attrName = m[1] || propName;
1564
1734
  attrNameToPropName.set(attrName, propName);
1565
1735
  return attrName;
@@ -1574,63 +1744,79 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1574
1744
  // src/runtime/initialize-component.ts
1575
1745
  var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1576
1746
  let Cstr;
1577
- if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1578
- hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1579
- const bundleId = cmpMeta.$lazyBundleId$;
1580
- if (bundleId) {
1581
- const CstrImport = loadModule(cmpMeta, hostRef);
1582
- if (CstrImport && "then" in CstrImport) {
1583
- const endLoad = uniqueTime();
1584
- Cstr = await CstrImport;
1585
- endLoad();
1747
+ try {
1748
+ if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1749
+ hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1750
+ const bundleId = cmpMeta.$lazyBundleId$;
1751
+ if (bundleId) {
1752
+ const CstrImport = loadModule(cmpMeta, hostRef);
1753
+ if (CstrImport && "then" in CstrImport) {
1754
+ const endLoad = uniqueTime();
1755
+ Cstr = await CstrImport;
1756
+ endLoad();
1757
+ } else {
1758
+ Cstr = CstrImport;
1759
+ }
1760
+ if (!Cstr) {
1761
+ throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
1762
+ }
1763
+ if (!Cstr.isProxied) {
1764
+ proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
1765
+ Cstr.isProxied = true;
1766
+ }
1767
+ const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
1768
+ {
1769
+ hostRef.$flags$ |= 8 /* isConstructingInstance */;
1770
+ }
1771
+ try {
1772
+ new Cstr(hostRef);
1773
+ } catch (e) {
1774
+ consoleError(e, elm);
1775
+ }
1776
+ {
1777
+ hostRef.$flags$ &= -9 /* isConstructingInstance */;
1778
+ }
1779
+ endNewInstance();
1780
+ const needsDeferredCallback = cmpMeta.$flags$ & 4 /* hasSlotRelocation */;
1781
+ if (!needsDeferredCallback) {
1782
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1783
+ } else {
1784
+ hostRef.$deferredConnectedCallback$ = true;
1785
+ }
1586
1786
  } else {
1587
- Cstr = CstrImport;
1588
- }
1589
- if (!Cstr) {
1590
- throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
1591
- }
1592
- if (!Cstr.isProxied) {
1593
- proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
1594
- Cstr.isProxied = true;
1595
- }
1596
- const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
1597
- {
1598
- hostRef.$flags$ |= 8 /* isConstructingInstance */;
1599
- }
1600
- try {
1601
- new Cstr(hostRef);
1602
- } catch (e) {
1603
- consoleError(e, elm);
1787
+ Cstr = elm.constructor;
1788
+ const cmpTag = elm.localName;
1789
+ customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1604
1790
  }
1605
- {
1606
- hostRef.$flags$ &= -9 /* isConstructingInstance */;
1791
+ if (Cstr && Cstr.style) {
1792
+ let style;
1793
+ if (typeof Cstr.style === "string") {
1794
+ style = Cstr.style;
1795
+ }
1796
+ const scopeId2 = getScopeId(cmpMeta);
1797
+ if (!styles.has(scopeId2) || BUILD.hotModuleReplacement) {
1798
+ const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
1799
+ registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
1800
+ endRegisterStyles();
1801
+ }
1607
1802
  }
1608
- endNewInstance();
1609
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
1803
+ }
1804
+ const ancestorComponent = hostRef.$ancestorComponent$;
1805
+ const schedule = () => scheduleUpdate(hostRef, true);
1806
+ if (ancestorComponent && ancestorComponent["s-rc"]) {
1807
+ ancestorComponent["s-rc"].push(schedule);
1610
1808
  } else {
1611
- Cstr = elm.constructor;
1612
- const cmpTag = elm.localName;
1613
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1614
- }
1615
- if (Cstr && Cstr.style) {
1616
- let style;
1617
- if (typeof Cstr.style === "string") {
1618
- style = Cstr.style;
1619
- }
1620
- const scopeId2 = getScopeId(cmpMeta);
1621
- if (!styles.has(scopeId2)) {
1622
- const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
1623
- registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
1624
- endRegisterStyles();
1625
- }
1809
+ schedule();
1810
+ }
1811
+ } catch (e) {
1812
+ consoleError(e, elm);
1813
+ if (hostRef.$onRenderResolve$) {
1814
+ hostRef.$onRenderResolve$();
1815
+ hostRef.$onRenderResolve$ = void 0;
1816
+ }
1817
+ if (hostRef.$onReadyResolve$) {
1818
+ hostRef.$onReadyResolve$(elm);
1626
1819
  }
1627
- }
1628
- const ancestorComponent = hostRef.$ancestorComponent$;
1629
- const schedule = () => scheduleUpdate(hostRef, true);
1630
- if (ancestorComponent && ancestorComponent["s-rc"]) {
1631
- ancestorComponent["s-rc"].push(schedule);
1632
- } else {
1633
- schedule();
1634
1820
  }
1635
1821
  };
1636
1822
  var fireConnectedCallback = (instance, elm) => {
@@ -1643,6 +1829,9 @@ var fireConnectedCallback = (instance, elm) => {
1643
1829
  var connectedCallback = (elm) => {
1644
1830
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1645
1831
  const hostRef = getHostRef(elm);
1832
+ if (!hostRef) {
1833
+ return;
1834
+ }
1646
1835
  const cmpMeta = hostRef.$cmpMeta$;
1647
1836
  const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
1648
1837
  if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
@@ -1664,7 +1853,7 @@ var connectedCallback = (elm) => {
1664
1853
  }
1665
1854
  if (cmpMeta.$members$) {
1666
1855
  Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1667
- if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
1856
+ if (memberFlags & 31 /* Prop */ && memberName in elm && elm[memberName] !== Object.prototype[memberName]) {
1668
1857
  const value = elm[memberName];
1669
1858
  delete elm[memberName];
1670
1859
  elm[memberName] = value;
@@ -1704,7 +1893,7 @@ var disconnectedCallback = async (elm) => {
1704
1893
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1705
1894
  const hostRef = getHostRef(elm);
1706
1895
  {
1707
- if (hostRef.$rmListeners$) {
1896
+ if (hostRef == null ? void 0 : hostRef.$rmListeners$) {
1708
1897
  hostRef.$rmListeners$.map((rmListener) => rmListener());
1709
1898
  hostRef.$rmListeners$ = void 0;
1710
1899
  }
@@ -1760,12 +1949,14 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1760
1949
  {
1761
1950
  cmpMeta.$listeners$ = compactMeta[3];
1762
1951
  }
1763
- const tagName = cmpMeta.$tagName$;
1952
+ const tagName = transformTag(cmpMeta.$tagName$);
1764
1953
  const HostElement = class extends HTMLElement {
1954
+ ["s-p"];
1955
+ ["s-rc"];
1956
+ hasRegisteredEventListeners = false;
1765
1957
  // StencilLazyHost
1766
1958
  constructor(self) {
1767
1959
  super(self);
1768
- this.hasRegisteredEventListeners = false;
1769
1960
  self = this;
1770
1961
  registerHost(self, cmpMeta);
1771
1962
  if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
@@ -1784,6 +1975,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1784
1975
  }
1785
1976
  connectedCallback() {
1786
1977
  const hostRef = getHostRef(this);
1978
+ if (!hostRef) {
1979
+ return;
1980
+ }
1787
1981
  if (!this.hasRegisteredEventListeners) {
1788
1982
  this.hasRegisteredEventListeners = true;
1789
1983
  addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
@@ -1803,6 +1997,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1803
1997
  plt.raf(() => {
1804
1998
  var _a3;
1805
1999
  const hostRef = getHostRef(this);
2000
+ if (!hostRef) {
2001
+ return;
2002
+ }
1806
2003
  const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1807
2004
  if (i2 > -1) {
1808
2005
  deferredConnectedCallbacks.splice(i2, 1);
@@ -1813,7 +2010,8 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1813
2010
  });
1814
2011
  }
1815
2012
  componentOnReady() {
1816
- return getHostRef(this).$onReadyPromise$;
2013
+ var _a3;
2014
+ return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
1817
2015
  }
1818
2016
  };
1819
2017
  cmpMeta.$lazyBundleId$ = lazyBundle[0];
@@ -1890,8 +2088,8 @@ var hostListenerOpts = (flags) => supportsListenerOptions ? {
1890
2088
 
1891
2089
  // src/runtime/nonce.ts
1892
2090
  var setNonce = (nonce) => plt.$nonce$ = nonce;
2091
+ function transformTag(tag) {
2092
+ return tag;
2093
+ }
1893
2094
 
1894
2095
  export { Host as H, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
1895
- //# sourceMappingURL=index-D_9dM54j.js.map
1896
-
1897
- //# sourceMappingURL=index-D_9dM54j.js.map