@paperless/core 0.1.0-alpha.4 → 0.1.0-alpha.400

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 (1070) hide show
  1. package/CHANGELOG.md +4157 -0
  2. package/README.md +27 -2
  3. package/dist/assets/i18n/page-size-select.i18n.en.json +4 -0
  4. package/dist/assets/i18n/page-size-select.i18n.nl.json +4 -0
  5. package/dist/assets/i18n/table-footer.i18n.en.json +3 -0
  6. package/dist/assets/i18n/table-footer.i18n.nl.json +3 -0
  7. package/dist/assets/i18n/table-header.i18n.en.json +6 -0
  8. package/dist/assets/i18n/table-header.i18n.nl.json +6 -0
  9. package/dist/assets/i18n/table.i18n.en.json +13 -0
  10. package/dist/assets/i18n/table.i18n.nl.json +13 -0
  11. package/dist/assets/icons/camera.svg +10 -0
  12. package/dist/assets/icons/checklist.svg +17 -0
  13. package/dist/assets/icons/filter.svg +6 -13
  14. package/dist/assets/icons/folder.svg +19 -0
  15. package/dist/assets/icons/integration.svg +17 -0
  16. package/dist/assets/icons/menu.svg +25 -0
  17. package/dist/assets/icons/more.svg +18 -0
  18. package/dist/assets/icons/notification.svg +10 -0
  19. package/dist/assets/icons/reload.svg +10 -0
  20. package/dist/assets/icons/signout.svg +23 -0
  21. package/dist/assets/icons/switch.svg +20 -0
  22. package/dist/assets/icons/task.svg +17 -0
  23. package/dist/assets/icons/template.svg +17 -0
  24. package/dist/assets/illustrations/e-mail.svg +1 -0
  25. package/dist/assets/illustrations/empty-state-add.svg +65 -0
  26. package/dist/assets/illustrations/empty-state-overview.svg +58 -0
  27. package/dist/assets/illustrations/empty-state-search.svg +88 -0
  28. package/dist/assets/images/avatar/company-default.svg +12 -0
  29. package/dist/assets/images/avatar/user-default.svg +12 -0
  30. package/dist/assets/images/helper/helper-hover.svg +15 -0
  31. package/dist/assets/images/helper/helper.svg +15 -0
  32. package/dist/build/index.esm.js +2 -0
  33. package/dist/build/index.esm.js.map +1 -0
  34. package/dist/build/p-01d3c545.entry.js +2 -0
  35. package/dist/build/p-01d3c545.entry.js.map +1 -0
  36. package/dist/build/p-09ea2a1a.js +2 -0
  37. package/dist/build/p-09ea2a1a.js.map +1 -0
  38. package/dist/build/p-0a3f2fe8.entry.js +2 -0
  39. package/dist/build/p-0a3f2fe8.entry.js.map +1 -0
  40. package/dist/build/p-0cb97c5e.entry.js +2 -0
  41. package/dist/build/p-0cb97c5e.entry.js.map +1 -0
  42. package/dist/build/p-18aadbd0.entry.js +2 -0
  43. package/dist/build/p-18aadbd0.entry.js.map +1 -0
  44. package/dist/build/p-1b5292a3.entry.js +2 -0
  45. package/dist/build/p-1b5292a3.entry.js.map +1 -0
  46. package/dist/build/p-1c793c3d.entry.js +2 -0
  47. package/dist/build/p-1c793c3d.entry.js.map +1 -0
  48. package/dist/build/p-24182b62.entry.js +2 -0
  49. package/dist/build/p-24182b62.entry.js.map +1 -0
  50. package/dist/build/p-2d74bc9b.entry.js +2 -0
  51. package/dist/build/p-2d74bc9b.entry.js.map +1 -0
  52. package/dist/build/p-3d8b5cc4.entry.js +2 -0
  53. package/dist/build/p-3d8b5cc4.entry.js.map +1 -0
  54. package/dist/build/p-45dfd940.entry.js +2 -0
  55. package/dist/build/p-45dfd940.entry.js.map +1 -0
  56. package/dist/build/p-464569dc.entry.js +2 -0
  57. package/dist/build/p-464569dc.entry.js.map +1 -0
  58. package/dist/build/p-4e650fe4.js +2 -0
  59. package/dist/build/p-4e650fe4.js.map +1 -0
  60. package/dist/build/p-4e66f19d.entry.js +2 -0
  61. package/dist/build/p-4e66f19d.entry.js.map +1 -0
  62. package/dist/build/p-5236b565.entry.js +2 -0
  63. package/dist/build/p-5236b565.entry.js.map +1 -0
  64. package/dist/build/p-57411b2b.entry.js +2 -0
  65. package/dist/build/p-57411b2b.entry.js.map +1 -0
  66. package/dist/build/p-58b52568.entry.js +2 -0
  67. package/dist/build/p-58b52568.entry.js.map +1 -0
  68. package/dist/build/p-5d118f66.entry.js +2 -0
  69. package/dist/build/p-5d118f66.entry.js.map +1 -0
  70. package/dist/build/p-5e6f0675.entry.js +2 -0
  71. package/dist/build/p-5e6f0675.entry.js.map +1 -0
  72. package/dist/build/p-63ed6e4b.entry.js +2 -0
  73. package/dist/build/p-63ed6e4b.entry.js.map +1 -0
  74. package/dist/build/p-63fb9af7.entry.js +2 -0
  75. package/dist/build/p-63fb9af7.entry.js.map +1 -0
  76. package/dist/build/p-6636d43c.entry.js +2 -0
  77. package/dist/build/p-6636d43c.entry.js.map +1 -0
  78. package/dist/build/p-6c60fd3d.js +2 -0
  79. package/dist/build/p-6c60fd3d.js.map +1 -0
  80. package/dist/build/p-73528e6b.entry.js +2 -0
  81. package/dist/build/p-73528e6b.entry.js.map +1 -0
  82. package/dist/build/p-78ce77d2.entry.js +2 -0
  83. package/dist/build/p-78ce77d2.entry.js.map +1 -0
  84. package/dist/build/p-7b94bc6a.entry.js +2 -0
  85. package/dist/build/p-7b94bc6a.entry.js.map +1 -0
  86. package/dist/build/p-85dc760d.entry.js +2 -0
  87. package/dist/build/p-85dc760d.entry.js.map +1 -0
  88. package/dist/build/p-89017d64.entry.js +2 -0
  89. package/dist/build/p-89017d64.entry.js.map +1 -0
  90. package/dist/build/p-8a6728d5.js +2 -0
  91. package/dist/build/p-8a6728d5.js.map +1 -0
  92. package/dist/build/p-93fb216c.entry.js +2 -0
  93. package/dist/build/p-93fb216c.entry.js.map +1 -0
  94. package/dist/build/p-a9ec7e54.entry.js +2 -0
  95. package/dist/build/p-a9ec7e54.entry.js.map +1 -0
  96. package/dist/build/p-ab749612.entry.js +2 -0
  97. package/dist/build/p-ab749612.entry.js.map +1 -0
  98. package/dist/build/p-ac1af618.js +3 -0
  99. package/dist/build/p-ac1af618.js.map +1 -0
  100. package/dist/build/p-ac7b48ff.entry.js +2 -0
  101. package/dist/build/p-ac7b48ff.entry.js.map +1 -0
  102. package/dist/build/p-aef8219f.entry.js +2 -0
  103. package/dist/build/p-aef8219f.entry.js.map +1 -0
  104. package/dist/build/p-b13a0ee4.entry.js +2 -0
  105. package/dist/build/p-b13a0ee4.entry.js.map +1 -0
  106. package/dist/build/p-b273ac6d.js +2 -0
  107. package/dist/build/p-b273ac6d.js.map +1 -0
  108. package/dist/build/p-b57850f5.entry.js +2 -0
  109. package/dist/build/p-b57850f5.entry.js.map +1 -0
  110. package/dist/build/p-b7b1de31.entry.js +2 -0
  111. package/dist/build/p-b7b1de31.entry.js.map +1 -0
  112. package/dist/build/p-c52020cc.entry.js +2 -0
  113. package/dist/build/p-c52020cc.entry.js.map +1 -0
  114. package/dist/build/p-c6ef7b79.entry.js +2 -0
  115. package/dist/build/p-c6ef7b79.entry.js.map +1 -0
  116. package/dist/build/p-d6fde0eb.entry.js +2 -0
  117. package/dist/build/p-d6fde0eb.entry.js.map +1 -0
  118. package/dist/build/p-dc01e9eb.entry.js +2 -0
  119. package/dist/build/p-dc01e9eb.entry.js.map +1 -0
  120. package/dist/build/p-e0d7a4ee.entry.js +2 -0
  121. package/dist/build/p-e0d7a4ee.entry.js.map +1 -0
  122. package/dist/build/p-ea824ef3.entry.js +2 -0
  123. package/dist/build/p-ea824ef3.entry.js.map +1 -0
  124. package/dist/build/p-ebc2ae62.entry.js +2 -0
  125. package/dist/build/p-ebc2ae62.entry.js.map +1 -0
  126. package/dist/build/p-f07793f6.entry.js +2 -0
  127. package/dist/build/p-f07793f6.entry.js.map +1 -0
  128. package/dist/build/p-f86fcdf4.js +2 -0
  129. package/dist/build/p-f86fcdf4.js.map +1 -0
  130. package/dist/build/p-f8c3fff9.entry.js +2 -0
  131. package/dist/build/p-f8c3fff9.entry.js.map +1 -0
  132. package/dist/build/paperless.css +1 -81
  133. package/dist/build/paperless.esm.js +2 -1
  134. package/dist/build/paperless.esm.js.map +1 -0
  135. package/dist/cjs/child-of-e472f812.js +11 -0
  136. package/dist/cjs/child-of-e472f812.js.map +1 -0
  137. package/dist/cjs/constants-a4459ec9.js +9 -0
  138. package/dist/cjs/constants-a4459ec9.js.map +1 -0
  139. package/dist/cjs/index-040ec3f9.js +2483 -0
  140. package/dist/cjs/index-040ec3f9.js.map +1 -0
  141. package/dist/cjs/{index-a2da05ae.js → index-13ea09e0.js} +1132 -265
  142. package/dist/cjs/index-13ea09e0.js.map +1 -0
  143. package/dist/cjs/index.cjs.js +19 -0
  144. package/dist/cjs/index.cjs.js.map +1 -0
  145. package/dist/cjs/loader.cjs.js +6 -3
  146. package/dist/cjs/loader.cjs.js.map +1 -0
  147. package/dist/cjs/localization-9e2ac7f3.js +62 -0
  148. package/dist/cjs/localization-9e2ac7f3.js.map +1 -0
  149. package/dist/cjs/object-get-by-path-6dc21ed5.js +14 -0
  150. package/dist/cjs/object-get-by-path-6dc21ed5.js.map +1 -0
  151. package/dist/cjs/p-accordion.cjs.entry.js +36 -0
  152. package/dist/cjs/p-accordion.cjs.entry.js.map +1 -0
  153. package/dist/cjs/p-attachment.cjs.entry.js +39 -0
  154. package/dist/cjs/p-attachment.cjs.entry.js.map +1 -0
  155. package/dist/cjs/p-avatar-group.cjs.entry.js +22 -0
  156. package/dist/cjs/p-avatar-group.cjs.entry.js.map +1 -0
  157. package/dist/cjs/p-avatar.cjs.entry.js +45 -0
  158. package/dist/cjs/p-avatar.cjs.entry.js.map +1 -0
  159. package/dist/cjs/p-backdrop.cjs.entry.js +43 -0
  160. package/dist/cjs/p-backdrop.cjs.entry.js.map +1 -0
  161. package/dist/cjs/p-button_3.cjs.entry.js +342 -94
  162. package/dist/cjs/p-button_3.cjs.entry.js.map +1 -0
  163. package/dist/cjs/p-calendar.cjs.entry.js +711 -0
  164. package/dist/cjs/p-calendar.cjs.entry.js.map +1 -0
  165. package/dist/cjs/p-card-body.cjs.entry.js +22 -0
  166. package/dist/cjs/p-card-body.cjs.entry.js.map +1 -0
  167. package/dist/cjs/p-card-container.cjs.entry.js +23 -0
  168. package/dist/cjs/p-card-container.cjs.entry.js.map +1 -0
  169. package/dist/cjs/p-card-header.cjs.entry.js +24 -0
  170. package/dist/cjs/p-card-header.cjs.entry.js.map +1 -0
  171. package/dist/cjs/p-content-slider.cjs.entry.js +212 -0
  172. package/dist/cjs/p-content-slider.cjs.entry.js.map +1 -0
  173. package/dist/cjs/p-counter.cjs.entry.js +23 -0
  174. package/dist/cjs/p-counter.cjs.entry.js.map +1 -0
  175. package/dist/cjs/p-datepicker.cjs.entry.js +4083 -0
  176. package/dist/cjs/p-datepicker.cjs.entry.js.map +1 -0
  177. package/dist/cjs/p-divider.cjs.entry.js +24 -0
  178. package/dist/cjs/p-divider.cjs.entry.js.map +1 -0
  179. package/dist/cjs/p-drawer-body_3.cjs.entry.js +51 -0
  180. package/dist/cjs/p-drawer-body_3.cjs.entry.js.map +1 -0
  181. package/dist/cjs/p-drawer.cjs.entry.js +65 -0
  182. package/dist/cjs/p-drawer.cjs.entry.js.map +1 -0
  183. package/dist/cjs/p-dropdown-menu-container.cjs.entry.js +23 -0
  184. package/dist/cjs/p-dropdown-menu-container.cjs.entry.js.map +1 -0
  185. package/dist/cjs/p-dropdown_2.cjs.entry.js +167 -0
  186. package/dist/cjs/p-dropdown_2.cjs.entry.js.map +1 -0
  187. package/dist/cjs/p-helper_3.cjs.entry.js +135 -0
  188. package/dist/cjs/p-helper_3.cjs.entry.js.map +1 -0
  189. package/dist/cjs/{p-illustration.cjs.entry.js → p-illustration_6.cjs.entry.js} +1377 -5
  190. package/dist/cjs/p-illustration_6.cjs.entry.js.map +1 -0
  191. package/dist/cjs/p-info-panel.cjs.entry.js +29 -0
  192. package/dist/cjs/p-info-panel.cjs.entry.js.map +1 -0
  193. package/dist/cjs/p-label_3.cjs.entry.js +65 -0
  194. package/dist/cjs/p-label_3.cjs.entry.js.map +1 -0
  195. package/dist/cjs/p-layout.cjs.entry.js +22 -0
  196. package/dist/cjs/p-layout.cjs.entry.js.map +1 -0
  197. package/dist/cjs/p-modal-body_4.cjs.entry.js +79 -0
  198. package/dist/cjs/p-modal-body_4.cjs.entry.js.map +1 -0
  199. package/dist/cjs/p-modal.cjs.entry.js +61 -0
  200. package/dist/cjs/p-modal.cjs.entry.js.map +1 -0
  201. package/dist/cjs/p-navbar.cjs.entry.js +30 -0
  202. package/dist/cjs/p-navbar.cjs.entry.js.map +1 -0
  203. package/dist/cjs/p-navigation-item.cjs.entry.js +26 -0
  204. package/dist/cjs/p-navigation-item.cjs.entry.js.map +1 -0
  205. package/dist/cjs/p-page-size-select_3.cjs.entry.js +224 -0
  206. package/dist/cjs/p-page-size-select_3.cjs.entry.js.map +1 -0
  207. package/dist/cjs/p-profile.cjs.entry.js +45 -0
  208. package/dist/cjs/p-profile.cjs.entry.js.map +1 -0
  209. package/dist/cjs/p-select.cjs.entry.js +216 -0
  210. package/dist/cjs/p-select.cjs.entry.js.map +1 -0
  211. package/dist/cjs/p-slider-indicator.cjs.entry.js +22 -0
  212. package/dist/cjs/p-slider-indicator.cjs.entry.js.map +1 -0
  213. package/dist/cjs/p-status.cjs.entry.js +51 -0
  214. package/dist/cjs/p-status.cjs.entry.js.map +1 -0
  215. package/dist/cjs/p-stepper-item.cjs.entry.js +26 -0
  216. package/dist/cjs/p-stepper-item.cjs.entry.js.map +1 -0
  217. package/dist/cjs/p-stepper-line.cjs.entry.js +23 -0
  218. package/dist/cjs/p-stepper-line.cjs.entry.js.map +1 -0
  219. package/dist/cjs/p-stepper.cjs.entry.js +80 -0
  220. package/dist/cjs/p-stepper.cjs.entry.js.map +1 -0
  221. package/dist/cjs/p-tab-group.cjs.entry.js +20 -0
  222. package/dist/cjs/p-tab-group.cjs.entry.js.map +1 -0
  223. package/dist/cjs/p-tab-item.cjs.entry.js +22 -0
  224. package/dist/cjs/p-tab-item.cjs.entry.js.map +1 -0
  225. package/dist/cjs/p-table-column.cjs.entry.js +28 -0
  226. package/dist/cjs/p-table-column.cjs.entry.js.map +1 -0
  227. package/dist/cjs/p-table.cjs.entry.js +352 -0
  228. package/dist/cjs/p-table.cjs.entry.js.map +1 -0
  229. package/dist/cjs/p-toast-container.cjs.entry.js +22 -0
  230. package/dist/cjs/p-toast-container.cjs.entry.js.map +1 -0
  231. package/dist/cjs/p-toast.cjs.entry.js +35 -0
  232. package/dist/cjs/p-toast.cjs.entry.js.map +1 -0
  233. package/dist/cjs/p-tooltip.cjs.entry.js +70 -1816
  234. package/dist/cjs/p-tooltip.cjs.entry.js.map +1 -0
  235. package/dist/cjs/paperless.cjs.js +12 -3
  236. package/dist/cjs/paperless.cjs.js.map +1 -0
  237. package/dist/cjs/popper-d7a0f999.js +1803 -0
  238. package/dist/cjs/popper-d7a0f999.js.map +1 -0
  239. package/dist/collection/assets/icons/camera.svg +10 -0
  240. package/dist/collection/assets/icons/checklist.svg +17 -0
  241. package/dist/collection/assets/icons/filter.svg +6 -13
  242. package/dist/collection/assets/icons/folder.svg +19 -0
  243. package/dist/collection/assets/icons/integration.svg +17 -0
  244. package/dist/collection/assets/icons/menu.svg +25 -0
  245. package/dist/collection/assets/icons/more.svg +18 -0
  246. package/dist/collection/assets/icons/notification.svg +10 -0
  247. package/dist/collection/assets/icons/reload.svg +10 -0
  248. package/dist/collection/assets/icons/signout.svg +23 -0
  249. package/dist/collection/assets/icons/switch.svg +20 -0
  250. package/dist/collection/assets/icons/task.svg +17 -0
  251. package/dist/collection/assets/icons/template.svg +17 -0
  252. package/dist/collection/assets/illustrations/e-mail.svg +1 -0
  253. package/dist/collection/assets/illustrations/empty-state-add.svg +65 -0
  254. package/dist/collection/assets/illustrations/empty-state-overview.svg +58 -0
  255. package/dist/collection/assets/illustrations/empty-state-search.svg +88 -0
  256. package/dist/collection/assets/images/avatar/company-default.svg +12 -0
  257. package/dist/collection/assets/images/avatar/user-default.svg +12 -0
  258. package/dist/collection/assets/images/helper/helper-hover.svg +15 -0
  259. package/dist/collection/assets/images/helper/helper.svg +15 -0
  260. package/dist/collection/collection-manifest.json +59 -3
  261. package/dist/collection/components/atoms/avatar/avatar.component.css +1 -0
  262. package/dist/collection/components/atoms/avatar/avatar.component.js +126 -0
  263. package/dist/collection/components/atoms/avatar/avatar.component.js.map +1 -0
  264. package/dist/collection/components/atoms/avatar-group/avatar-group.component.css +1 -0
  265. package/dist/collection/components/atoms/avatar-group/avatar-group.component.js +42 -0
  266. package/dist/collection/components/atoms/avatar-group/avatar-group.component.js.map +1 -0
  267. package/dist/collection/components/atoms/backdrop/backdrop.component.css +1 -0
  268. package/dist/collection/components/atoms/backdrop/backdrop.component.js +149 -0
  269. package/dist/collection/components/atoms/backdrop/backdrop.component.js.map +1 -0
  270. package/dist/collection/components/atoms/button/button.component.css +1 -71
  271. package/dist/collection/components/atoms/button/button.component.js +311 -227
  272. package/dist/collection/components/atoms/button/button.component.js.map +1 -0
  273. package/dist/collection/components/atoms/card-body/card-body.component.css +1 -0
  274. package/dist/collection/components/atoms/card-body/card-body.component.js +43 -0
  275. package/dist/collection/components/atoms/card-body/card-body.component.js.map +1 -0
  276. package/dist/collection/components/atoms/card-container/card-container.component.css +1 -0
  277. package/dist/collection/components/atoms/card-container/card-container.component.js +63 -0
  278. package/dist/collection/components/atoms/card-container/card-container.component.js.map +1 -0
  279. package/dist/collection/components/atoms/card-header/card-header.component.css +1 -0
  280. package/dist/collection/components/atoms/card-header/card-header.component.js +62 -0
  281. package/dist/collection/components/atoms/card-header/card-header.component.js.map +1 -0
  282. package/dist/collection/components/atoms/counter/counter.component.css +1 -0
  283. package/dist/collection/components/atoms/counter/counter.component.js +63 -0
  284. package/dist/collection/components/atoms/counter/counter.component.js.map +1 -0
  285. package/dist/collection/components/atoms/divider/divider.component.css +1 -0
  286. package/dist/collection/components/atoms/divider/divider.component.js +22 -0
  287. package/dist/collection/components/atoms/divider/divider.component.js.map +1 -0
  288. package/dist/collection/components/atoms/drawer-body/drawer-body.component.css +1 -0
  289. package/dist/collection/components/atoms/drawer-body/drawer-body.component.js +44 -0
  290. package/dist/collection/components/atoms/drawer-body/drawer-body.component.js.map +1 -0
  291. package/dist/collection/components/atoms/drawer-container/drawer-container.component.css +1 -0
  292. package/dist/collection/components/atoms/drawer-container/drawer-container.component.js +48 -0
  293. package/dist/collection/components/atoms/drawer-container/drawer-container.component.js.map +1 -0
  294. package/dist/collection/components/atoms/drawer-header/drawer-header.component.css +1 -0
  295. package/dist/collection/components/atoms/drawer-header/drawer-header.component.js +66 -0
  296. package/dist/collection/components/atoms/drawer-header/drawer-header.component.js.map +1 -0
  297. package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.css +1 -0
  298. package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.js +62 -0
  299. package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.js.map +1 -0
  300. package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.css +1 -0
  301. package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js +86 -0
  302. package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js.map +1 -0
  303. package/dist/collection/components/atoms/helper/helper.component.css +1 -0
  304. package/dist/collection/components/atoms/helper/helper.component.js +49 -0
  305. package/dist/collection/components/atoms/helper/helper.component.js.map +1 -0
  306. package/dist/collection/components/atoms/icon/icon.component.css +1 -0
  307. package/dist/collection/components/atoms/icon/icon.component.js +141 -96
  308. package/dist/collection/components/atoms/icon/icon.component.js.map +1 -0
  309. package/dist/collection/components/atoms/illustration/illustration.component.js +28 -28
  310. package/dist/collection/components/atoms/illustration/illustration.component.js.map +1 -0
  311. package/dist/collection/components/atoms/info-panel/info-panel.component.css +1 -0
  312. package/dist/collection/components/atoms/info-panel/info-panel.component.js +103 -0
  313. package/dist/collection/components/atoms/info-panel/info-panel.component.js.map +1 -0
  314. package/dist/collection/components/atoms/label/label.component.css +1 -0
  315. package/dist/collection/components/atoms/label/label.component.js +171 -0
  316. package/dist/collection/components/atoms/label/label.component.js.map +1 -0
  317. package/dist/collection/components/atoms/layout/layout.component.css +1 -0
  318. package/dist/collection/components/atoms/layout/layout.component.js +44 -0
  319. package/dist/collection/components/atoms/layout/layout.component.js.map +1 -0
  320. package/dist/collection/components/atoms/loader/loader.component.css +1 -26
  321. package/dist/collection/components/atoms/loader/loader.component.js +115 -115
  322. package/dist/collection/components/atoms/loader/loader.component.js.map +1 -0
  323. package/dist/collection/components/atoms/modal-body/modal-body.component.css +1 -0
  324. package/dist/collection/components/atoms/modal-body/modal-body.component.js +63 -0
  325. package/dist/collection/components/atoms/modal-body/modal-body.component.js.map +1 -0
  326. package/dist/collection/components/atoms/modal-container/modal-container.component.css +1 -0
  327. package/dist/collection/components/atoms/modal-container/modal-container.component.js +75 -0
  328. package/dist/collection/components/atoms/modal-container/modal-container.component.js.map +1 -0
  329. package/dist/collection/components/atoms/modal-footer/modal-footer.component.css +1 -0
  330. package/dist/collection/components/atoms/modal-footer/modal-footer.component.js +19 -0
  331. package/dist/collection/components/atoms/modal-footer/modal-footer.component.js.map +1 -0
  332. package/dist/collection/components/atoms/modal-header/modal-header.component.css +1 -0
  333. package/dist/collection/components/atoms/modal-header/modal-header.component.js +66 -0
  334. package/dist/collection/components/atoms/modal-header/modal-header.component.js.map +1 -0
  335. package/dist/collection/components/atoms/pagination-item/pagination-item.component.css +1 -0
  336. package/dist/collection/components/atoms/pagination-item/pagination-item.component.js +44 -0
  337. package/dist/collection/components/atoms/pagination-item/pagination-item.component.js.map +1 -0
  338. package/dist/collection/components/atoms/segment-container/segment-container.component.css +1 -0
  339. package/dist/collection/components/atoms/segment-container/segment-container.component.js +18 -0
  340. package/dist/collection/components/atoms/segment-container/segment-container.component.js.map +1 -0
  341. package/dist/collection/components/atoms/segment-item/segment-item.component.css +1 -0
  342. package/dist/collection/components/atoms/segment-item/segment-item.component.js +119 -0
  343. package/dist/collection/components/atoms/segment-item/segment-item.component.js.map +1 -0
  344. package/dist/collection/components/atoms/slider-indicator/slider-indicator.component.css +1 -0
  345. package/dist/collection/components/atoms/slider-indicator/slider-indicator.component.js +44 -0
  346. package/dist/collection/components/atoms/slider-indicator/slider-indicator.component.js.map +1 -0
  347. package/dist/collection/components/atoms/status/status.component.css +1 -0
  348. package/dist/collection/components/atoms/status/status.component.js +138 -0
  349. package/dist/collection/components/atoms/status/status.component.js.map +1 -0
  350. package/dist/collection/components/atoms/stepper-item/stepper-item.component.css +1 -0
  351. package/dist/collection/components/atoms/stepper-item/stepper-item.component.js +120 -0
  352. package/dist/collection/components/atoms/stepper-item/stepper-item.component.js.map +1 -0
  353. package/dist/collection/components/atoms/stepper-line/stepper-line.component.css +1 -0
  354. package/dist/collection/components/atoms/stepper-line/stepper-line.component.js +63 -0
  355. package/dist/collection/components/atoms/stepper-line/stepper-line.component.js.map +1 -0
  356. package/dist/collection/components/atoms/tab-group/tab-group.component.js +9 -0
  357. package/dist/collection/components/atoms/tab-group/tab-group.component.js.map +1 -0
  358. package/dist/collection/components/atoms/tab-item/tab-item.component.css +1 -0
  359. package/dist/collection/components/atoms/tab-item/tab-item.component.js +44 -0
  360. package/dist/collection/components/atoms/tab-item/tab-item.component.js.map +1 -0
  361. package/dist/collection/components/atoms/table-container/table-container.component.css +1 -0
  362. package/dist/collection/components/atoms/table-container/table-container.component.js +19 -0
  363. package/dist/collection/components/atoms/table-container/table-container.component.js.map +1 -0
  364. package/dist/collection/components/atoms/toast-container/toast-container.component.css +1 -0
  365. package/dist/collection/components/atoms/toast-container/toast-container.component.js +44 -0
  366. package/dist/collection/components/atoms/toast-container/toast-container.component.js.map +1 -0
  367. package/dist/collection/components/atoms/tooltip/tooltip.component.css +1 -34
  368. package/dist/collection/components/atoms/tooltip/tooltip.component.js +253 -122
  369. package/dist/collection/components/atoms/tooltip/tooltip.component.js.map +1 -0
  370. package/dist/collection/components/helpers/table-column/table-column.component.js +151 -0
  371. package/dist/collection/components/helpers/table-column/table-column.component.js.map +1 -0
  372. package/dist/collection/components/molecules/accordion/accordion.component.css +1 -0
  373. package/dist/collection/components/molecules/accordion/accordion.component.js +128 -0
  374. package/dist/collection/components/molecules/accordion/accordion.component.js.map +1 -0
  375. package/dist/collection/components/molecules/attachment/attachment.component.css +1 -0
  376. package/dist/collection/components/molecules/attachment/attachment.component.js +145 -0
  377. package/dist/collection/components/molecules/attachment/attachment.component.js.map +1 -0
  378. package/dist/collection/components/molecules/calendar/calendar.component.css +1 -0
  379. package/dist/collection/components/molecules/calendar/calendar.component.js +504 -0
  380. package/dist/collection/components/molecules/calendar/calendar.component.js.map +1 -0
  381. package/dist/collection/components/molecules/content-slider/content-slider.component.css +1 -0
  382. package/dist/collection/components/molecules/content-slider/content-slider.component.js +317 -0
  383. package/dist/collection/components/molecules/content-slider/content-slider.component.js.map +1 -0
  384. package/dist/collection/components/molecules/datepicker/datepicker.component.css +1 -0
  385. package/dist/collection/components/molecules/datepicker/datepicker.component.js +507 -0
  386. package/dist/collection/components/molecules/datepicker/datepicker.component.js.map +1 -0
  387. package/dist/collection/components/molecules/dropdown/dropdown.component.css +1 -0
  388. package/dist/collection/components/molecules/dropdown/dropdown.component.js +373 -0
  389. package/dist/collection/components/molecules/dropdown/dropdown.component.js.map +1 -0
  390. package/dist/collection/components/molecules/input-error/input-error.component.js +60 -0
  391. package/dist/collection/components/molecules/input-error/input-error.component.js.map +1 -0
  392. package/dist/collection/components/molecules/input-group/input-group.component.css +1 -0
  393. package/dist/collection/components/molecules/input-group/input-group.component.js +370 -0
  394. package/dist/collection/components/molecules/input-group/input-group.component.js.map +1 -0
  395. package/dist/collection/components/molecules/navigation-item/navigation-item.component.css +1 -0
  396. package/dist/collection/components/molecules/navigation-item/navigation-item.component.js +121 -0
  397. package/dist/collection/components/molecules/navigation-item/navigation-item.component.js.map +1 -0
  398. package/dist/collection/components/molecules/page-size-select/constants.js +3 -0
  399. package/dist/collection/components/molecules/page-size-select/constants.js.map +1 -0
  400. package/dist/collection/components/molecules/page-size-select/page-size-select.component.js +207 -0
  401. package/dist/collection/components/molecules/page-size-select/page-size-select.component.js.map +1 -0
  402. package/dist/collection/components/molecules/pagination/pagination.component.css +1 -0
  403. package/dist/collection/components/molecules/pagination/pagination.component.js +267 -0
  404. package/dist/collection/components/molecules/pagination/pagination.component.js.map +1 -0
  405. package/dist/collection/components/molecules/profile/profile.component.css +1 -0
  406. package/dist/collection/components/molecules/profile/profile.component.js +90 -0
  407. package/dist/collection/components/molecules/profile/profile.component.js.map +1 -0
  408. package/dist/collection/components/molecules/select/select.component.css +1 -0
  409. package/dist/collection/components/molecules/select/select.component.js +675 -0
  410. package/dist/collection/components/molecules/select/select.component.js.map +1 -0
  411. package/dist/collection/components/molecules/stepper/stepper.component.css +1 -0
  412. package/dist/collection/components/molecules/stepper/stepper.component.js +141 -0
  413. package/dist/collection/components/molecules/stepper/stepper.component.js.map +1 -0
  414. package/dist/collection/components/molecules/table-cell/table-cell.component.css +1 -0
  415. package/dist/collection/components/molecules/table-cell/table-cell.component.js +263 -0
  416. package/dist/collection/components/molecules/table-cell/table-cell.component.js.map +1 -0
  417. package/dist/collection/components/molecules/table-footer/table-footer.component.css +1 -0
  418. package/dist/collection/components/molecules/table-footer/table-footer.component.js +276 -0
  419. package/dist/collection/components/molecules/table-footer/table-footer.component.js.map +1 -0
  420. package/dist/collection/components/molecules/table-header/table-header.component.css +1 -0
  421. package/dist/collection/components/molecules/table-header/table-header.component.js +452 -0
  422. package/dist/collection/components/molecules/table-header/table-header.component.js.map +1 -0
  423. package/dist/collection/components/molecules/table-row/table-row.component.css +1 -0
  424. package/dist/collection/components/molecules/table-row/table-row.component.js +65 -0
  425. package/dist/collection/components/molecules/table-row/table-row.component.js.map +1 -0
  426. package/dist/collection/components/molecules/toast/toast.component.css +1 -0
  427. package/dist/collection/components/molecules/toast/toast.component.js +197 -0
  428. package/dist/collection/components/molecules/toast/toast.component.js.map +1 -0
  429. package/dist/collection/components/organisms/drawer/drawer.component.css +1 -0
  430. package/dist/collection/components/organisms/drawer/drawer.component.js +234 -0
  431. package/dist/collection/components/organisms/drawer/drawer.component.js.map +1 -0
  432. package/dist/collection/components/organisms/modal/modal.component.js +259 -0
  433. package/dist/collection/components/organisms/modal/modal.component.js.map +1 -0
  434. package/dist/collection/components/organisms/navbar/navbar.component.css +1 -0
  435. package/dist/collection/components/organisms/navbar/navbar.component.js +90 -0
  436. package/dist/collection/components/organisms/navbar/navbar.component.js.map +1 -0
  437. package/dist/collection/components/organisms/table/table.component.css +1 -0
  438. package/dist/collection/components/organisms/table/table.component.js +1292 -0
  439. package/dist/collection/components/organisms/table/table.component.js.map +1 -0
  440. package/dist/collection/index.js +3 -1
  441. package/dist/collection/index.js.map +1 -0
  442. package/dist/collection/tailwind/animation.js +87 -0
  443. package/dist/collection/tailwind/backdrop-blur.js +3 -0
  444. package/dist/collection/tailwind/border-radius.js +9 -6
  445. package/dist/collection/tailwind/height.js +5 -0
  446. package/dist/collection/tailwind/plugins/safe-area.js +100 -0
  447. package/dist/collection/tailwind/screens.js +8 -0
  448. package/dist/collection/tailwind/shadows.js +11 -5
  449. package/dist/collection/tailwind/spacing.js +10 -0
  450. package/dist/collection/tailwind/typography.js +21 -0
  451. package/dist/collection/tailwind/width.js +20 -0
  452. package/dist/collection/tailwind/z-index.js +17 -0
  453. package/dist/collection/tailwind.config.js +33 -14
  454. package/dist/collection/types/index.js +3 -0
  455. package/dist/collection/types/index.js.map +1 -0
  456. package/dist/collection/types/table.js +2 -0
  457. package/dist/collection/types/table.js.map +1 -0
  458. package/dist/collection/types/tailwind.js +2 -0
  459. package/dist/collection/types/tailwind.js.map +1 -0
  460. package/dist/collection/utils/child-of.js +6 -0
  461. package/dist/collection/utils/child-of.js.map +1 -0
  462. package/dist/collection/utils/icons.js +25 -0
  463. package/dist/collection/utils/icons.js.map +1 -0
  464. package/dist/collection/utils/illustrations.js +9 -0
  465. package/dist/collection/utils/illustrations.js.map +1 -0
  466. package/dist/collection/utils/index.js +7 -0
  467. package/dist/collection/utils/index.js.map +1 -0
  468. package/dist/collection/utils/localization.js +56 -0
  469. package/dist/collection/utils/localization.js.map +1 -0
  470. package/dist/collection/utils/object-get-by-path.js +9 -0
  471. package/dist/collection/utils/object-get-by-path.js.map +1 -0
  472. package/dist/collection/utils/transformers.js +5 -0
  473. package/dist/collection/utils/transformers.js.map +1 -0
  474. package/dist/components/backdrop.component.js +59 -0
  475. package/dist/components/backdrop.component.js.map +1 -0
  476. package/dist/components/button.component.js +102 -0
  477. package/dist/components/button.component.js.map +1 -0
  478. package/dist/components/calendar.component.js +3199 -0
  479. package/dist/components/calendar.component.js.map +1 -0
  480. package/dist/components/child-of.js +9 -0
  481. package/dist/components/child-of.js.map +1 -0
  482. package/dist/components/counter.component.js +37 -0
  483. package/dist/components/counter.component.js.map +1 -0
  484. package/dist/components/divider.component.js +35 -0
  485. package/dist/components/divider.component.js.map +1 -0
  486. package/dist/components/drawer-body.component.js +35 -0
  487. package/dist/components/drawer-body.component.js.map +1 -0
  488. package/dist/components/drawer-container.component.js +34 -0
  489. package/dist/components/drawer-container.component.js.map +1 -0
  490. package/dist/components/drawer-header.component.js +54 -0
  491. package/dist/components/drawer-header.component.js.map +1 -0
  492. package/dist/components/dropdown-menu-container.component.js +36 -0
  493. package/dist/components/dropdown-menu-container.component.js.map +1 -0
  494. package/dist/components/dropdown-menu-item.component.js +45 -0
  495. package/dist/components/dropdown-menu-item.component.js.map +1 -0
  496. package/dist/components/dropdown.component.js +179 -0
  497. package/dist/components/dropdown.component.js.map +1 -0
  498. package/dist/components/helper.component.js +41 -0
  499. package/dist/components/helper.component.js.map +1 -0
  500. package/dist/components/icon.component.js +273 -23
  501. package/dist/components/icon.component.js.map +1 -0
  502. package/dist/{esm/p-illustration.entry.js → components/illustration.component.js} +245 -10
  503. package/dist/components/illustration.component.js.map +1 -0
  504. package/dist/components/index.d.ts +9 -8
  505. package/dist/components/index.js +13 -6
  506. package/dist/components/index.js.map +1 -0
  507. package/dist/components/input-error.component.js +50 -0
  508. package/dist/components/input-error.component.js.map +1 -0
  509. package/dist/components/input-group.component.js +156 -0
  510. package/dist/components/input-group.component.js.map +1 -0
  511. package/dist/components/label.component.js +54 -0
  512. package/dist/components/label.component.js.map +1 -0
  513. package/dist/components/loader.component.js +14 -15
  514. package/dist/components/loader.component.js.map +1 -0
  515. package/dist/components/localization.js +59 -0
  516. package/dist/components/localization.js.map +1 -0
  517. package/dist/components/modal-body.component.js +37 -0
  518. package/dist/components/modal-body.component.js.map +1 -0
  519. package/dist/components/modal-container.component.js +49 -0
  520. package/dist/components/modal-container.component.js.map +1 -0
  521. package/dist/components/modal-footer.component.js +38 -0
  522. package/dist/components/modal-footer.component.js.map +1 -0
  523. package/dist/components/modal-header.component.js +54 -0
  524. package/dist/components/modal-header.component.js.map +1 -0
  525. package/dist/components/object-get-by-path.js +12 -0
  526. package/dist/components/object-get-by-path.js.map +1 -0
  527. package/dist/components/p-accordion.d.ts +11 -0
  528. package/dist/components/p-accordion.js +67 -0
  529. package/dist/components/p-accordion.js.map +1 -0
  530. package/dist/components/p-attachment.d.ts +11 -0
  531. package/dist/components/p-attachment.js +88 -0
  532. package/dist/components/p-attachment.js.map +1 -0
  533. package/dist/components/p-avatar-group.d.ts +11 -0
  534. package/dist/components/p-avatar-group.js +37 -0
  535. package/dist/components/p-avatar-group.js.map +1 -0
  536. package/dist/components/p-avatar.d.ts +11 -0
  537. package/dist/components/p-avatar.js +64 -0
  538. package/dist/components/p-avatar.js.map +1 -0
  539. package/dist/components/p-backdrop.d.ts +11 -0
  540. package/dist/components/p-backdrop.js +8 -0
  541. package/dist/components/p-backdrop.js.map +1 -0
  542. package/dist/components/p-button.js +3 -93
  543. package/dist/components/p-button.js.map +1 -0
  544. package/dist/components/p-calendar.d.ts +11 -0
  545. package/dist/components/p-calendar.js +8 -0
  546. package/dist/components/p-calendar.js.map +1 -0
  547. package/dist/components/p-card-body.d.ts +11 -0
  548. package/dist/components/p-card-body.js +37 -0
  549. package/dist/components/p-card-body.js.map +1 -0
  550. package/dist/components/p-card-container.d.ts +11 -0
  551. package/dist/components/p-card-container.js +40 -0
  552. package/dist/components/p-card-container.js.map +1 -0
  553. package/dist/components/p-card-header.d.ts +11 -0
  554. package/dist/components/p-card-header.js +46 -0
  555. package/dist/components/p-card-header.js.map +1 -0
  556. package/dist/components/p-content-slider.d.ts +11 -0
  557. package/dist/components/p-content-slider.js +241 -0
  558. package/dist/components/p-content-slider.js.map +1 -0
  559. package/dist/components/p-counter.d.ts +11 -0
  560. package/dist/components/p-counter.js +8 -0
  561. package/dist/components/p-counter.js.map +1 -0
  562. package/dist/components/p-datepicker.d.ts +11 -0
  563. package/dist/components/p-datepicker.js +4164 -0
  564. package/dist/components/p-datepicker.js.map +1 -0
  565. package/dist/components/p-divider.d.ts +11 -0
  566. package/dist/components/p-divider.js +8 -0
  567. package/dist/components/p-divider.js.map +1 -0
  568. package/dist/components/p-drawer-body.d.ts +11 -0
  569. package/dist/components/p-drawer-body.js +8 -0
  570. package/dist/components/p-drawer-body.js.map +1 -0
  571. package/dist/components/p-drawer-container.d.ts +11 -0
  572. package/dist/components/p-drawer-container.js +8 -0
  573. package/dist/components/p-drawer-container.js.map +1 -0
  574. package/dist/components/p-drawer-header.d.ts +11 -0
  575. package/dist/components/p-drawer-header.js +8 -0
  576. package/dist/components/p-drawer-header.js.map +1 -0
  577. package/dist/components/p-drawer.d.ts +11 -0
  578. package/dist/components/p-drawer.js +130 -0
  579. package/dist/components/p-drawer.js.map +1 -0
  580. package/dist/components/p-dropdown-menu-container.d.ts +11 -0
  581. package/dist/components/p-dropdown-menu-container.js +8 -0
  582. package/dist/components/p-dropdown-menu-container.js.map +1 -0
  583. package/dist/components/p-dropdown-menu-item.d.ts +11 -0
  584. package/dist/components/p-dropdown-menu-item.js +8 -0
  585. package/dist/components/p-dropdown-menu-item.js.map +1 -0
  586. package/dist/components/p-dropdown.d.ts +11 -0
  587. package/dist/components/p-dropdown.js +8 -0
  588. package/dist/components/p-dropdown.js.map +1 -0
  589. package/dist/components/p-helper.d.ts +11 -0
  590. package/dist/components/p-helper.js +8 -0
  591. package/dist/components/p-helper.js.map +1 -0
  592. package/dist/components/p-icon.js +2 -0
  593. package/dist/components/p-icon.js.map +1 -0
  594. package/dist/components/p-illustration.js +3 -1436
  595. package/dist/components/p-illustration.js.map +1 -0
  596. package/dist/components/p-info-panel.d.ts +11 -0
  597. package/dist/components/p-info-panel.js +54 -0
  598. package/dist/components/p-info-panel.js.map +1 -0
  599. package/dist/components/p-input-error.d.ts +11 -0
  600. package/dist/components/p-input-error.js +8 -0
  601. package/dist/components/p-input-error.js.map +1 -0
  602. package/dist/components/p-input-group.d.ts +11 -0
  603. package/dist/components/p-input-group.js +8 -0
  604. package/dist/components/p-input-group.js.map +1 -0
  605. package/dist/components/p-label.d.ts +11 -0
  606. package/dist/components/p-label.js +8 -0
  607. package/dist/components/p-label.js.map +1 -0
  608. package/dist/components/p-layout.d.ts +11 -0
  609. package/dist/components/p-layout.js +38 -0
  610. package/dist/components/p-layout.js.map +1 -0
  611. package/dist/components/p-loader.js +2 -0
  612. package/dist/components/p-loader.js.map +1 -0
  613. package/dist/components/p-modal-body.d.ts +11 -0
  614. package/dist/components/p-modal-body.js +8 -0
  615. package/dist/components/p-modal-body.js.map +1 -0
  616. package/dist/components/p-modal-container.d.ts +11 -0
  617. package/dist/components/p-modal-container.js +8 -0
  618. package/dist/components/p-modal-container.js.map +1 -0
  619. package/dist/components/p-modal-footer.d.ts +11 -0
  620. package/dist/components/p-modal-footer.js +8 -0
  621. package/dist/components/p-modal-footer.js.map +1 -0
  622. package/dist/components/p-modal-header.d.ts +11 -0
  623. package/dist/components/p-modal-header.js +8 -0
  624. package/dist/components/p-modal-header.js.map +1 -0
  625. package/dist/components/p-modal.d.ts +11 -0
  626. package/dist/components/p-modal.js +140 -0
  627. package/dist/components/p-modal.js.map +1 -0
  628. package/dist/components/p-navbar.d.ts +11 -0
  629. package/dist/components/p-navbar.js +72 -0
  630. package/dist/components/p-navbar.js.map +1 -0
  631. package/dist/components/p-navigation-item.d.ts +11 -0
  632. package/dist/components/p-navigation-item.js +58 -0
  633. package/dist/components/p-navigation-item.js.map +1 -0
  634. package/dist/components/p-page-size-select.d.ts +11 -0
  635. package/dist/components/p-page-size-select.js +8 -0
  636. package/dist/components/p-page-size-select.js.map +1 -0
  637. package/dist/components/p-pagination-item.d.ts +11 -0
  638. package/dist/components/p-pagination-item.js +8 -0
  639. package/dist/components/p-pagination-item.js.map +1 -0
  640. package/dist/components/p-pagination.d.ts +11 -0
  641. package/dist/components/p-pagination.js +8 -0
  642. package/dist/components/p-pagination.js.map +1 -0
  643. package/dist/components/p-profile.d.ts +11 -0
  644. package/dist/components/p-profile.js +81 -0
  645. package/dist/components/p-profile.js.map +1 -0
  646. package/dist/components/p-segment-container.d.ts +11 -0
  647. package/dist/components/p-segment-container.js +8 -0
  648. package/dist/components/p-segment-container.js.map +1 -0
  649. package/dist/components/p-segment-item.d.ts +11 -0
  650. package/dist/components/p-segment-item.js +8 -0
  651. package/dist/components/p-segment-item.js.map +1 -0
  652. package/dist/components/p-select.d.ts +11 -0
  653. package/dist/components/p-select.js +308 -0
  654. package/dist/components/p-select.js.map +1 -0
  655. package/dist/components/p-slider-indicator.d.ts +11 -0
  656. package/dist/components/p-slider-indicator.js +8 -0
  657. package/dist/components/p-slider-indicator.js.map +1 -0
  658. package/dist/components/p-status.d.ts +11 -0
  659. package/dist/components/p-status.js +75 -0
  660. package/dist/components/p-status.js.map +1 -0
  661. package/dist/components/p-stepper-item.d.ts +11 -0
  662. package/dist/components/p-stepper-item.js +52 -0
  663. package/dist/components/p-stepper-item.js.map +1 -0
  664. package/dist/components/p-stepper-line.d.ts +11 -0
  665. package/dist/components/p-stepper-line.js +8 -0
  666. package/dist/components/p-stepper-line.js.map +1 -0
  667. package/dist/components/p-stepper.d.ts +11 -0
  668. package/dist/components/p-stepper.js +104 -0
  669. package/dist/components/p-stepper.js.map +1 -0
  670. package/dist/components/p-tab-group.d.ts +11 -0
  671. package/dist/components/p-tab-group.js +38 -0
  672. package/dist/components/p-tab-group.js.map +1 -0
  673. package/dist/components/p-tab-item.d.ts +11 -0
  674. package/dist/components/p-tab-item.js +38 -0
  675. package/dist/components/p-tab-item.js.map +1 -0
  676. package/dist/components/p-table-cell.d.ts +11 -0
  677. package/dist/components/p-table-cell.js +8 -0
  678. package/dist/components/p-table-cell.js.map +1 -0
  679. package/dist/components/p-table-column.d.ts +11 -0
  680. package/dist/components/p-table-column.js +48 -0
  681. package/dist/components/p-table-column.js.map +1 -0
  682. package/dist/components/p-table-container.d.ts +11 -0
  683. package/dist/components/p-table-container.js +8 -0
  684. package/dist/components/p-table-container.js.map +1 -0
  685. package/dist/components/p-table-footer.d.ts +11 -0
  686. package/dist/components/p-table-footer.js +8 -0
  687. package/dist/components/p-table-footer.js.map +1 -0
  688. package/dist/components/p-table-header.d.ts +11 -0
  689. package/dist/components/p-table-header.js +8 -0
  690. package/dist/components/p-table-header.js.map +1 -0
  691. package/dist/components/p-table-row.d.ts +11 -0
  692. package/dist/components/p-table-row.js +8 -0
  693. package/dist/components/p-table-row.js.map +1 -0
  694. package/dist/components/p-table.d.ts +11 -0
  695. package/dist/components/p-table.js +544 -0
  696. package/dist/components/p-table.js.map +1 -0
  697. package/dist/components/p-toast-container.d.ts +11 -0
  698. package/dist/components/p-toast-container.js +38 -0
  699. package/dist/components/p-toast-container.js.map +1 -0
  700. package/dist/components/p-toast.d.ts +11 -0
  701. package/dist/components/p-toast.js +75 -0
  702. package/dist/components/p-toast.js.map +1 -0
  703. package/dist/components/p-tooltip.js +3 -1886
  704. package/dist/components/p-tooltip.js.map +1 -0
  705. package/dist/components/page-size-select.component.js +107 -0
  706. package/dist/components/page-size-select.component.js.map +1 -0
  707. package/dist/components/pagination-item.component.js +35 -0
  708. package/dist/components/pagination-item.component.js.map +1 -0
  709. package/dist/components/pagination.component.js +196 -0
  710. package/dist/components/pagination.component.js.map +1 -0
  711. package/dist/components/popper.js +1801 -0
  712. package/dist/components/popper.js.map +1 -0
  713. package/dist/components/segment-container.component.js +31 -0
  714. package/dist/components/segment-container.component.js.map +1 -0
  715. package/dist/components/segment-item.component.js +53 -0
  716. package/dist/components/segment-item.component.js.map +1 -0
  717. package/dist/components/slider-indicator.component.js +35 -0
  718. package/dist/components/slider-indicator.component.js.map +1 -0
  719. package/dist/components/stepper-line.component.js +37 -0
  720. package/dist/components/stepper-line.component.js.map +1 -0
  721. package/dist/components/table-cell.component.js +137 -0
  722. package/dist/components/table-cell.component.js.map +1 -0
  723. package/dist/components/table-container.component.js +32 -0
  724. package/dist/components/table-container.component.js.map +1 -0
  725. package/dist/components/table-footer.component.js +129 -0
  726. package/dist/components/table-footer.component.js.map +1 -0
  727. package/dist/components/table-header.component.js +1070 -0
  728. package/dist/components/table-header.component.js.map +1 -0
  729. package/dist/components/table-row.component.js +45 -0
  730. package/dist/components/table-row.component.js.map +1 -0
  731. package/dist/components/tooltip.component.js +145 -0
  732. package/dist/components/tooltip.component.js.map +1 -0
  733. package/dist/esm/child-of-90a8c4b5.js +9 -0
  734. package/dist/esm/child-of-90a8c4b5.js.map +1 -0
  735. package/dist/esm/constants-826f9460.js +6 -0
  736. package/dist/esm/constants-826f9460.js.map +1 -0
  737. package/dist/esm/index-340e085c.js +2460 -0
  738. package/dist/esm/index-340e085c.js.map +1 -0
  739. package/dist/esm/{index-d08bfe75.js → index-94339e77.js} +1132 -266
  740. package/dist/esm/index-94339e77.js.map +1 -0
  741. package/dist/esm/index.js +11 -0
  742. package/dist/esm/index.js.map +1 -0
  743. package/dist/esm/loader.js +6 -3
  744. package/dist/esm/loader.js.map +1 -0
  745. package/dist/esm/localization-901dc2d3.js +59 -0
  746. package/dist/esm/localization-901dc2d3.js.map +1 -0
  747. package/dist/esm/object-get-by-path-d6427a61.js +12 -0
  748. package/dist/esm/object-get-by-path-d6427a61.js.map +1 -0
  749. package/dist/esm/p-accordion.entry.js +32 -0
  750. package/dist/esm/p-accordion.entry.js.map +1 -0
  751. package/dist/esm/p-attachment.entry.js +35 -0
  752. package/dist/esm/p-attachment.entry.js.map +1 -0
  753. package/dist/esm/p-avatar-group.entry.js +18 -0
  754. package/dist/esm/p-avatar-group.entry.js.map +1 -0
  755. package/dist/esm/p-avatar.entry.js +41 -0
  756. package/dist/esm/p-avatar.entry.js.map +1 -0
  757. package/dist/esm/p-backdrop.entry.js +39 -0
  758. package/dist/esm/p-backdrop.entry.js.map +1 -0
  759. package/dist/esm/p-button_3.entry.js +342 -94
  760. package/dist/esm/p-button_3.entry.js.map +1 -0
  761. package/dist/esm/p-calendar.entry.js +707 -0
  762. package/dist/esm/p-calendar.entry.js.map +1 -0
  763. package/dist/esm/p-card-body.entry.js +18 -0
  764. package/dist/esm/p-card-body.entry.js.map +1 -0
  765. package/dist/esm/p-card-container.entry.js +19 -0
  766. package/dist/esm/p-card-container.entry.js.map +1 -0
  767. package/dist/esm/p-card-header.entry.js +20 -0
  768. package/dist/esm/p-card-header.entry.js.map +1 -0
  769. package/dist/esm/p-content-slider.entry.js +208 -0
  770. package/dist/esm/p-content-slider.entry.js.map +1 -0
  771. package/dist/esm/p-counter.entry.js +19 -0
  772. package/dist/esm/p-counter.entry.js.map +1 -0
  773. package/dist/esm/p-datepicker.entry.js +4079 -0
  774. package/dist/esm/p-datepicker.entry.js.map +1 -0
  775. package/dist/esm/p-divider.entry.js +20 -0
  776. package/dist/esm/p-divider.entry.js.map +1 -0
  777. package/dist/esm/p-drawer-body_3.entry.js +45 -0
  778. package/dist/esm/p-drawer-body_3.entry.js.map +1 -0
  779. package/dist/esm/p-drawer.entry.js +61 -0
  780. package/dist/esm/p-drawer.entry.js.map +1 -0
  781. package/dist/esm/p-dropdown-menu-container.entry.js +19 -0
  782. package/dist/esm/p-dropdown-menu-container.entry.js.map +1 -0
  783. package/dist/esm/p-dropdown_2.entry.js +162 -0
  784. package/dist/esm/p-dropdown_2.entry.js.map +1 -0
  785. package/dist/esm/p-helper_3.entry.js +129 -0
  786. package/dist/esm/p-helper_3.entry.js.map +1 -0
  787. package/dist/esm/p-illustration_6.entry.js +2789 -0
  788. package/dist/esm/p-illustration_6.entry.js.map +1 -0
  789. package/dist/esm/p-info-panel.entry.js +25 -0
  790. package/dist/esm/p-info-panel.entry.js.map +1 -0
  791. package/dist/esm/p-label_3.entry.js +59 -0
  792. package/dist/esm/p-label_3.entry.js.map +1 -0
  793. package/dist/esm/p-layout.entry.js +18 -0
  794. package/dist/esm/p-layout.entry.js.map +1 -0
  795. package/dist/esm/p-modal-body_4.entry.js +72 -0
  796. package/dist/esm/p-modal-body_4.entry.js.map +1 -0
  797. package/dist/esm/p-modal.entry.js +57 -0
  798. package/dist/esm/p-modal.entry.js.map +1 -0
  799. package/dist/esm/p-navbar.entry.js +26 -0
  800. package/dist/esm/p-navbar.entry.js.map +1 -0
  801. package/dist/esm/p-navigation-item.entry.js +22 -0
  802. package/dist/esm/p-navigation-item.entry.js.map +1 -0
  803. package/dist/esm/p-page-size-select_3.entry.js +218 -0
  804. package/dist/esm/p-page-size-select_3.entry.js.map +1 -0
  805. package/dist/esm/p-profile.entry.js +41 -0
  806. package/dist/esm/p-profile.entry.js.map +1 -0
  807. package/dist/esm/p-select.entry.js +212 -0
  808. package/dist/esm/p-select.entry.js.map +1 -0
  809. package/dist/esm/p-slider-indicator.entry.js +18 -0
  810. package/dist/esm/p-slider-indicator.entry.js.map +1 -0
  811. package/dist/esm/p-status.entry.js +47 -0
  812. package/dist/esm/p-status.entry.js.map +1 -0
  813. package/dist/esm/p-stepper-item.entry.js +22 -0
  814. package/dist/esm/p-stepper-item.entry.js.map +1 -0
  815. package/dist/esm/p-stepper-line.entry.js +19 -0
  816. package/dist/esm/p-stepper-line.entry.js.map +1 -0
  817. package/dist/esm/p-stepper.entry.js +76 -0
  818. package/dist/esm/p-stepper.entry.js.map +1 -0
  819. package/dist/esm/p-tab-group.entry.js +16 -0
  820. package/dist/esm/p-tab-group.entry.js.map +1 -0
  821. package/dist/esm/p-tab-item.entry.js +18 -0
  822. package/dist/esm/p-tab-item.entry.js.map +1 -0
  823. package/dist/esm/p-table-column.entry.js +24 -0
  824. package/dist/esm/p-table-column.entry.js.map +1 -0
  825. package/dist/esm/p-table.entry.js +348 -0
  826. package/dist/esm/p-table.entry.js.map +1 -0
  827. package/dist/esm/p-toast-container.entry.js +18 -0
  828. package/dist/esm/p-toast-container.entry.js.map +1 -0
  829. package/dist/esm/p-toast.entry.js +31 -0
  830. package/dist/esm/p-toast.entry.js.map +1 -0
  831. package/dist/esm/p-tooltip.entry.js +70 -1816
  832. package/dist/esm/p-tooltip.entry.js.map +1 -0
  833. package/dist/esm/paperless.js +9 -3
  834. package/dist/esm/paperless.js.map +1 -0
  835. package/dist/esm/polyfills/core-js.js +0 -0
  836. package/dist/esm/polyfills/css-shim.js +1 -1
  837. package/dist/esm/polyfills/dom.js +0 -0
  838. package/dist/esm/polyfills/es5-html-element.js +0 -0
  839. package/dist/esm/polyfills/index.js +0 -0
  840. package/dist/esm/polyfills/system.js +0 -0
  841. package/dist/esm/popper-42db9fbd.js +1801 -0
  842. package/dist/esm/popper-42db9fbd.js.map +1 -0
  843. package/dist/index.html +1 -1
  844. package/dist/paperless/index.esm.js +2 -0
  845. package/dist/paperless/index.esm.js.map +1 -0
  846. package/dist/paperless/p-01d3c545.entry.js +2 -0
  847. package/dist/paperless/p-01d3c545.entry.js.map +1 -0
  848. package/dist/paperless/p-09ea2a1a.js +2 -0
  849. package/dist/paperless/p-09ea2a1a.js.map +1 -0
  850. package/dist/paperless/p-0a3f2fe8.entry.js +2 -0
  851. package/dist/paperless/p-0a3f2fe8.entry.js.map +1 -0
  852. package/dist/paperless/p-0cb97c5e.entry.js +2 -0
  853. package/dist/paperless/p-0cb97c5e.entry.js.map +1 -0
  854. package/dist/paperless/p-18aadbd0.entry.js +2 -0
  855. package/dist/paperless/p-18aadbd0.entry.js.map +1 -0
  856. package/dist/paperless/p-1b5292a3.entry.js +2 -0
  857. package/dist/paperless/p-1b5292a3.entry.js.map +1 -0
  858. package/dist/paperless/p-1c793c3d.entry.js +2 -0
  859. package/dist/paperless/p-1c793c3d.entry.js.map +1 -0
  860. package/dist/paperless/p-24182b62.entry.js +2 -0
  861. package/dist/paperless/p-24182b62.entry.js.map +1 -0
  862. package/dist/paperless/p-2d74bc9b.entry.js +2 -0
  863. package/dist/paperless/p-2d74bc9b.entry.js.map +1 -0
  864. package/dist/paperless/p-3d8b5cc4.entry.js +2 -0
  865. package/dist/paperless/p-3d8b5cc4.entry.js.map +1 -0
  866. package/dist/paperless/p-45dfd940.entry.js +2 -0
  867. package/dist/paperless/p-45dfd940.entry.js.map +1 -0
  868. package/dist/paperless/p-464569dc.entry.js +2 -0
  869. package/dist/paperless/p-464569dc.entry.js.map +1 -0
  870. package/dist/paperless/p-4e650fe4.js +2 -0
  871. package/dist/paperless/p-4e650fe4.js.map +1 -0
  872. package/dist/paperless/p-4e66f19d.entry.js +2 -0
  873. package/dist/paperless/p-4e66f19d.entry.js.map +1 -0
  874. package/dist/paperless/p-5236b565.entry.js +2 -0
  875. package/dist/paperless/p-5236b565.entry.js.map +1 -0
  876. package/dist/paperless/p-57411b2b.entry.js +2 -0
  877. package/dist/paperless/p-57411b2b.entry.js.map +1 -0
  878. package/dist/paperless/p-58b52568.entry.js +2 -0
  879. package/dist/paperless/p-58b52568.entry.js.map +1 -0
  880. package/dist/paperless/p-5d118f66.entry.js +2 -0
  881. package/dist/paperless/p-5d118f66.entry.js.map +1 -0
  882. package/dist/paperless/p-5e6f0675.entry.js +2 -0
  883. package/dist/paperless/p-5e6f0675.entry.js.map +1 -0
  884. package/dist/paperless/p-63ed6e4b.entry.js +2 -0
  885. package/dist/paperless/p-63ed6e4b.entry.js.map +1 -0
  886. package/dist/paperless/p-63fb9af7.entry.js +2 -0
  887. package/dist/paperless/p-63fb9af7.entry.js.map +1 -0
  888. package/dist/paperless/p-6636d43c.entry.js +2 -0
  889. package/dist/paperless/p-6636d43c.entry.js.map +1 -0
  890. package/dist/paperless/p-6c60fd3d.js +2 -0
  891. package/dist/paperless/p-6c60fd3d.js.map +1 -0
  892. package/dist/paperless/p-73528e6b.entry.js +2 -0
  893. package/dist/paperless/p-73528e6b.entry.js.map +1 -0
  894. package/dist/paperless/p-78ce77d2.entry.js +2 -0
  895. package/dist/paperless/p-78ce77d2.entry.js.map +1 -0
  896. package/dist/paperless/p-7b94bc6a.entry.js +2 -0
  897. package/dist/paperless/p-7b94bc6a.entry.js.map +1 -0
  898. package/dist/paperless/p-85dc760d.entry.js +2 -0
  899. package/dist/paperless/p-85dc760d.entry.js.map +1 -0
  900. package/dist/paperless/p-89017d64.entry.js +2 -0
  901. package/dist/paperless/p-89017d64.entry.js.map +1 -0
  902. package/dist/paperless/p-8a6728d5.js +2 -0
  903. package/dist/paperless/p-8a6728d5.js.map +1 -0
  904. package/dist/paperless/p-93fb216c.entry.js +2 -0
  905. package/dist/paperless/p-93fb216c.entry.js.map +1 -0
  906. package/dist/paperless/p-a9ec7e54.entry.js +2 -0
  907. package/dist/paperless/p-a9ec7e54.entry.js.map +1 -0
  908. package/dist/paperless/p-ab749612.entry.js +2 -0
  909. package/dist/paperless/p-ab749612.entry.js.map +1 -0
  910. package/dist/paperless/p-ac1af618.js +3 -0
  911. package/dist/paperless/p-ac1af618.js.map +1 -0
  912. package/dist/paperless/p-ac7b48ff.entry.js +2 -0
  913. package/dist/paperless/p-ac7b48ff.entry.js.map +1 -0
  914. package/dist/paperless/p-aef8219f.entry.js +2 -0
  915. package/dist/paperless/p-aef8219f.entry.js.map +1 -0
  916. package/dist/paperless/p-b13a0ee4.entry.js +2 -0
  917. package/dist/paperless/p-b13a0ee4.entry.js.map +1 -0
  918. package/dist/paperless/p-b273ac6d.js +2 -0
  919. package/dist/paperless/p-b273ac6d.js.map +1 -0
  920. package/dist/paperless/p-b57850f5.entry.js +2 -0
  921. package/dist/paperless/p-b57850f5.entry.js.map +1 -0
  922. package/dist/paperless/p-b7b1de31.entry.js +2 -0
  923. package/dist/paperless/p-b7b1de31.entry.js.map +1 -0
  924. package/dist/paperless/p-c52020cc.entry.js +2 -0
  925. package/dist/paperless/p-c52020cc.entry.js.map +1 -0
  926. package/dist/paperless/p-c6ef7b79.entry.js +2 -0
  927. package/dist/paperless/p-c6ef7b79.entry.js.map +1 -0
  928. package/dist/paperless/p-d6fde0eb.entry.js +2 -0
  929. package/dist/paperless/p-d6fde0eb.entry.js.map +1 -0
  930. package/dist/paperless/p-dc01e9eb.entry.js +2 -0
  931. package/dist/paperless/p-dc01e9eb.entry.js.map +1 -0
  932. package/dist/paperless/p-e0d7a4ee.entry.js +2 -0
  933. package/dist/paperless/p-e0d7a4ee.entry.js.map +1 -0
  934. package/dist/paperless/p-ea824ef3.entry.js +2 -0
  935. package/dist/paperless/p-ea824ef3.entry.js.map +1 -0
  936. package/dist/paperless/p-ebc2ae62.entry.js +2 -0
  937. package/dist/paperless/p-ebc2ae62.entry.js.map +1 -0
  938. package/dist/paperless/p-f07793f6.entry.js +2 -0
  939. package/dist/paperless/p-f07793f6.entry.js.map +1 -0
  940. package/dist/paperless/p-f86fcdf4.js +2 -0
  941. package/dist/paperless/p-f86fcdf4.js.map +1 -0
  942. package/dist/paperless/p-f8c3fff9.entry.js +2 -0
  943. package/dist/paperless/p-f8c3fff9.entry.js.map +1 -0
  944. package/dist/paperless/paperless.css +683 -26595
  945. package/dist/paperless/paperless.esm.js +2 -1
  946. package/dist/paperless/paperless.esm.js.map +1 -0
  947. package/dist/style/_fonts.scss +70 -0
  948. package/dist/style/_helpers.scss +5 -0
  949. package/dist/style/_reset.scss +30 -0
  950. package/dist/style/_tailwind.scss +3 -0
  951. package/dist/style/_typograhpy.scss +29 -0
  952. package/dist/style/_variables.scss +2 -0
  953. package/dist/style/form/_checkbox.scss +111 -0
  954. package/dist/style/form/_input.scss +22 -0
  955. package/dist/style/form/_mixins.scss +108 -0
  956. package/dist/style/form/_radio.scss +58 -0
  957. package/dist/style/form/_textarea.scss +18 -0
  958. package/dist/style/form/index.scss +4 -0
  959. package/dist/style/paperless.scss +12 -0
  960. package/dist/sw.js +2 -260
  961. package/dist/sw.js.map +1 -0
  962. package/dist/tailwind/animation.js +87 -0
  963. package/dist/tailwind/backdrop-blur.js +3 -0
  964. package/dist/tailwind/border-radius.js +11 -0
  965. package/dist/tailwind/colors.js +52 -0
  966. package/dist/tailwind/height.js +5 -0
  967. package/dist/tailwind/plugins/safe-area.js +100 -0
  968. package/dist/tailwind/rotate.js +8 -0
  969. package/dist/tailwind/scale.js +3 -0
  970. package/dist/tailwind/screens.js +8 -0
  971. package/dist/tailwind/shadows.js +13 -0
  972. package/dist/tailwind/spacing.js +10 -0
  973. package/dist/tailwind/typography.js +21 -0
  974. package/dist/tailwind/width.js +20 -0
  975. package/dist/tailwind/z-index.js +17 -0
  976. package/dist/tailwind.config.js +33 -14
  977. package/dist/types/components/atoms/avatar/avatar.component.d.ts +23 -0
  978. package/dist/types/components/atoms/avatar-group/avatar-group.component.d.ts +7 -0
  979. package/dist/types/components/atoms/backdrop/backdrop.component.d.ts +31 -0
  980. package/dist/types/components/atoms/button/button.component.d.ts +20 -3
  981. package/dist/types/components/atoms/card-body/card-body.component.d.ts +7 -0
  982. package/dist/types/components/atoms/card-container/card-container.component.d.ts +11 -0
  983. package/dist/types/components/atoms/card-header/card-header.component.d.ts +11 -0
  984. package/dist/types/components/atoms/counter/counter.component.d.ts +11 -0
  985. package/dist/types/components/atoms/divider/divider.component.d.ts +7 -0
  986. package/dist/types/components/atoms/drawer-body/drawer-body.component.d.ts +7 -0
  987. package/dist/types/components/atoms/drawer-container/drawer-container.component.d.ts +7 -0
  988. package/dist/types/components/atoms/drawer-header/drawer-header.component.d.ts +12 -0
  989. package/dist/types/components/atoms/dropdown-menu-container/dropdown-menu-container.component.d.ts +11 -0
  990. package/dist/types/components/atoms/dropdown-menu-item/dropdown-menu-item.component.d.ts +16 -0
  991. package/dist/types/components/atoms/helper/helper.component.d.ts +8 -0
  992. package/dist/types/components/atoms/icon/icon.component.d.ts +5 -5
  993. package/dist/types/components/atoms/illustration/illustration.component.d.ts +1 -1
  994. package/dist/types/components/atoms/info-panel/info-panel.component.d.ts +24 -0
  995. package/dist/types/components/atoms/label/label.component.d.ts +33 -0
  996. package/dist/types/components/atoms/layout/layout.component.d.ts +7 -0
  997. package/dist/types/components/atoms/loader/loader.component.d.ts +1 -1
  998. package/dist/types/components/atoms/modal-body/modal-body.component.d.ts +11 -0
  999. package/dist/types/components/atoms/modal-container/modal-container.component.d.ts +11 -0
  1000. package/dist/types/components/atoms/modal-footer/modal-footer.component.d.ts +3 -0
  1001. package/dist/types/components/atoms/modal-header/modal-header.component.d.ts +12 -0
  1002. package/dist/types/components/atoms/pagination-item/pagination-item.component.d.ts +7 -0
  1003. package/dist/types/components/atoms/segment-container/segment-container.component.d.ts +3 -0
  1004. package/dist/types/components/atoms/segment-item/segment-item.component.d.ts +22 -0
  1005. package/dist/types/components/atoms/slider-indicator/slider-indicator.component.d.ts +7 -0
  1006. package/dist/types/components/atoms/status/status.component.d.ts +23 -0
  1007. package/dist/types/components/atoms/stepper-item/stepper-item.component.d.ts +23 -0
  1008. package/dist/types/components/atoms/stepper-line/stepper-line.component.d.ts +11 -0
  1009. package/dist/types/components/atoms/tab-group/tab-group.component.d.ts +3 -0
  1010. package/dist/types/components/atoms/tab-item/tab-item.component.d.ts +7 -0
  1011. package/dist/types/components/atoms/table-container/table-container.component.d.ts +3 -0
  1012. package/dist/types/components/atoms/toast-container/toast-container.component.d.ts +7 -0
  1013. package/dist/types/components/atoms/tooltip/tooltip.component.d.ts +30 -9
  1014. package/dist/types/components/helpers/table-column/table-column.component.d.ts +34 -0
  1015. package/dist/types/components/molecules/accordion/accordion.component.d.ts +25 -0
  1016. package/dist/types/components/molecules/attachment/attachment.component.d.ts +28 -0
  1017. package/dist/types/components/molecules/calendar/calendar.component.d.ts +76 -0
  1018. package/dist/types/components/molecules/content-slider/content-slider.component.d.ts +53 -0
  1019. package/dist/types/components/molecules/datepicker/datepicker.component.d.ts +93 -0
  1020. package/dist/types/components/molecules/dropdown/dropdown.component.d.ts +69 -0
  1021. package/dist/types/components/molecules/input-error/input-error.component.d.ts +12 -0
  1022. package/dist/types/components/molecules/input-group/input-group.component.d.ts +68 -0
  1023. package/dist/types/components/molecules/navigation-item/navigation-item.component.d.ts +24 -0
  1024. package/dist/types/components/molecules/page-size-select/constants.d.ts +2 -0
  1025. package/dist/types/components/molecules/page-size-select/page-size-select.component.d.ts +50 -0
  1026. package/dist/types/components/molecules/pagination/pagination.component.d.ts +35 -0
  1027. package/dist/types/components/molecules/profile/profile.component.d.ts +20 -0
  1028. package/dist/types/components/molecules/select/select.component.d.ts +134 -0
  1029. package/dist/types/components/molecules/stepper/stepper.component.d.ts +21 -0
  1030. package/dist/types/components/molecules/table-cell/table-cell.component.d.ts +42 -0
  1031. package/dist/types/components/molecules/table-footer/table-footer.component.d.ts +63 -0
  1032. package/dist/types/components/molecules/table-header/table-header.component.d.ts +101 -0
  1033. package/dist/types/components/molecules/table-row/table-row.component.d.ts +11 -0
  1034. package/dist/types/components/molecules/toast/toast.component.d.ts +39 -0
  1035. package/dist/types/components/organisms/drawer/drawer.component.d.ts +52 -0
  1036. package/dist/types/components/organisms/modal/modal.component.d.ts +58 -0
  1037. package/dist/types/components/organisms/navbar/navbar.component.d.ts +14 -0
  1038. package/dist/types/components/organisms/table/table.component.d.ts +240 -0
  1039. package/dist/types/components.d.ts +3296 -118
  1040. package/dist/types/index.d.ts +2 -0
  1041. package/dist/types/stencil-public-runtime.d.ts +91 -19
  1042. package/dist/types/types/index.d.ts +2 -0
  1043. package/dist/types/types/table.d.ts +27 -0
  1044. package/dist/types/types/tailwind.d.ts +2 -0
  1045. package/dist/types/utils/child-of.d.ts +1 -0
  1046. package/dist/types/utils/icons.d.ts +12 -0
  1047. package/dist/types/utils/illustrations.d.ts +4 -0
  1048. package/dist/types/utils/index.d.ts +6 -0
  1049. package/dist/types/utils/localization.d.ts +2 -0
  1050. package/dist/types/utils/object-get-by-path.d.ts +1 -0
  1051. package/dist/types/utils/transformers.d.ts +2 -0
  1052. package/dist/workbox-5b279812.js +2 -0
  1053. package/dist/workbox-5b279812.js.map +1 -0
  1054. package/hydrate/index.d.ts +218 -0
  1055. package/hydrate/index.js +22695 -0
  1056. package/hydrate/package.json +6 -0
  1057. package/loader/index.d.ts +9 -0
  1058. package/loader/package.json +1 -0
  1059. package/package.json +67 -61
  1060. package/dist/build/p-31acefc4.entry.js +0 -1
  1061. package/dist/build/p-4144f8a0.entry.js +0 -1
  1062. package/dist/build/p-f04c4de0.entry.js +0 -1
  1063. package/dist/build/p-f33e1285.js +0 -2
  1064. package/dist/collection/tailwind/grid.js +0 -6
  1065. package/dist/collection/utils/utils.js +0 -3
  1066. package/dist/paperless/p-31acefc4.entry.js +0 -1
  1067. package/dist/paperless/p-4144f8a0.entry.js +0 -1
  1068. package/dist/paperless/p-f04c4de0.entry.js +0 -1
  1069. package/dist/paperless/p-f33e1285.js +0 -2
  1070. package/dist/types/utils/utils.d.ts +0 -1
@@ -22,6 +22,14 @@ function _interopNamespace(e) {
22
22
 
23
23
  const NAMESPACE = 'paperless';
24
24
 
25
+ /**
26
+ * Virtual DOM patching algorithm based on Snabbdom by
27
+ * Simon Friis Vindum (@paldepind)
28
+ * Licensed under the MIT License
29
+ * https://github.com/snabbdom/snabbdom/blob/master/LICENSE
30
+ *
31
+ * Modified for Stencil's renderer and slot projection
32
+ */
25
33
  let scopeId;
26
34
  let contentRef;
27
35
  let hostTagName;
@@ -30,57 +38,6 @@ let checkSlotFallbackVisibility = false;
30
38
  let checkSlotRelocate = false;
31
39
  let isSvgMode = false;
32
40
  let queuePending = false;
33
- const win = typeof window !== 'undefined' ? window : {};
34
- const doc = win.document || { head: {} };
35
- const plt = {
36
- $flags$: 0,
37
- $resourcesUrl$: '',
38
- jmp: (h) => h(),
39
- raf: (h) => requestAnimationFrame(h),
40
- ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
41
- rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
42
- ce: (eventName, opts) => new CustomEvent(eventName, opts),
43
- };
44
- const promiseResolve = (v) => Promise.resolve(v);
45
- const supportsConstructibleStylesheets = /*@__PURE__*/ (() => {
46
- try {
47
- new CSSStyleSheet();
48
- return typeof new CSSStyleSheet().replace === 'function';
49
- }
50
- catch (e) { }
51
- return false;
52
- })()
53
- ;
54
- const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
55
- if (listeners) {
56
- listeners.map(([flags, name, method]) => {
57
- const target = elm;
58
- const handler = hostListenerProxy(hostRef, method);
59
- const opts = hostListenerOpts(flags);
60
- plt.ael(target, name, handler, opts);
61
- (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
62
- });
63
- }
64
- };
65
- const hostListenerProxy = (hostRef, methodName) => (ev) => {
66
- try {
67
- {
68
- if (hostRef.$flags$ & 256 /* isListenReady */) {
69
- // instance is ready, let's call it's member method for this event
70
- hostRef.$lazyInstance$[methodName](ev);
71
- }
72
- else {
73
- (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
74
- }
75
- }
76
- }
77
- catch (e) {
78
- consoleError(e);
79
- }
80
- };
81
- // prettier-ignore
82
- const hostListenerOpts = (flags) => (flags & 2 /* Capture */) !== 0;
83
- const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
84
41
  const createTime = (fnName, tagName = '') => {
85
42
  {
86
43
  return () => {
@@ -95,71 +52,14 @@ const uniqueTime = (key, measureText) => {
95
52
  };
96
53
  }
97
54
  };
98
- const rootAppliedStyles = new WeakMap();
99
- const registerStyle = (scopeId, cssText, allowCS) => {
100
- let style = styles.get(scopeId);
101
- if (supportsConstructibleStylesheets && allowCS) {
102
- style = (style || new CSSStyleSheet());
103
- style.replace(cssText);
104
- }
105
- else {
106
- style = cssText;
107
- }
108
- styles.set(scopeId, style);
109
- };
110
- const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
111
- let scopeId = getScopeId(cmpMeta);
112
- const style = styles.get(scopeId);
113
- // if an element is NOT connected then getRootNode() will return the wrong root node
114
- // so the fallback is to always use the document for the root node in those cases
115
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
116
- if (style) {
117
- if (typeof style === 'string') {
118
- styleContainerNode = styleContainerNode.head || styleContainerNode;
119
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
120
- let styleElm;
121
- if (!appliedStyles) {
122
- rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
123
- }
124
- if (!appliedStyles.has(scopeId)) {
125
- {
126
- {
127
- styleElm = doc.createElement('style');
128
- styleElm.innerHTML = style;
129
- }
130
- styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
131
- }
132
- if (appliedStyles) {
133
- appliedStyles.add(scopeId);
134
- }
135
- }
136
- }
137
- else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
138
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
139
- }
140
- }
141
- return scopeId;
142
- };
143
- const attachStyles = (hostRef) => {
144
- const cmpMeta = hostRef.$cmpMeta$;
145
- const elm = hostRef.$hostElement$;
146
- const flags = cmpMeta.$flags$;
147
- const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
148
- const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
149
- if (flags & 10 /* needsScopedEncapsulation */) {
150
- // only required when we're NOT using native shadow dom (slot)
151
- // or this browser doesn't support native shadow dom
152
- // and this host element was NOT created with SSR
153
- // let's pick out the inner content for slot projection
154
- // create a node to represent where the original
155
- // content was first placed, which is useful later on
156
- // DOM WRITE!!
157
- elm['s-sc'] = scopeId;
158
- elm.classList.add(scopeId + '-h');
159
- }
160
- endAttachStyles();
161
- };
162
- const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
55
+ const CONTENT_REF_ID = 'r';
56
+ const ORG_LOCATION_ID = 'o';
57
+ const SLOT_NODE_ID = 's';
58
+ const TEXT_NODE_ID = 't';
59
+ const HYDRATE_ID = 's-id';
60
+ const HYDRATED_STYLE_ID = 'sty-id';
61
+ const HYDRATE_CHILD_ID = 'c-id';
62
+ const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
163
63
  /**
164
64
  * Default style mode id
165
65
  */
@@ -169,11 +69,30 @@ const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
169
69
  */
170
70
  const EMPTY_OBJ = {};
171
71
  const isDef = (v) => v != null;
72
+ /**
73
+ * Check whether a value is a 'complex type', defined here as an object or a
74
+ * function.
75
+ *
76
+ * @param o the value to check
77
+ * @returns whether it's a complex type or not
78
+ */
172
79
  const isComplexType = (o) => {
173
80
  // https://jsperf.com/typeof-fn-object/5
174
81
  o = typeof o;
175
82
  return o === 'object' || o === 'function';
176
83
  };
84
+ /**
85
+ * Helper method for querying a `meta` tag that contains a nonce value
86
+ * out of a DOM's head.
87
+ *
88
+ * @param doc The DOM containing the `head` to query against
89
+ * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag
90
+ * exists or the tag has no content.
91
+ */
92
+ function queryNonceMetaTagContent(doc) {
93
+ var _a, _b, _c;
94
+ return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;
95
+ }
177
96
  /**
178
97
  * Production h() function based on Preact by
179
98
  * Jason Miller (@developit)
@@ -182,7 +101,6 @@ const isComplexType = (o) => {
182
101
  *
183
102
  * Modified for Stencil's compiler and vdom
184
103
  */
185
- // const stack: any[] = [];
186
104
  // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
187
105
  // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
188
106
  const h = (nodeName, vnodeData, ...children) => {
@@ -244,6 +162,14 @@ const h = (nodeName, vnodeData, ...children) => {
244
162
  }
245
163
  return vnode;
246
164
  };
165
+ /**
166
+ * A utility function for creating a virtual DOM node from a tag and some
167
+ * possible text content.
168
+ *
169
+ * @param tag the tag for this element
170
+ * @param text possible text content for the node
171
+ * @returns a newly-minted virtual DOM node
172
+ */
247
173
  const newVNode = (tag, text) => {
248
174
  const vnode = {
249
175
  $flags$: 0,
@@ -261,11 +187,31 @@ const newVNode = (tag, text) => {
261
187
  return vnode;
262
188
  };
263
189
  const Host = {};
190
+ /**
191
+ * Check whether a given node is a Host node or not
192
+ *
193
+ * @param node the virtual DOM node to check
194
+ * @returns whether it's a Host node or not
195
+ */
264
196
  const isHost = (node) => node && node.$tag$ === Host;
197
+ /**
198
+ * Implementation of {@link d.FunctionalUtilities} for Stencil's VDom.
199
+ *
200
+ * Note that these functions convert from {@link d.VNode} to
201
+ * {@link d.ChildNode} to give functional component developers a friendly
202
+ * interface.
203
+ */
265
204
  const vdomFnUtils = {
266
205
  forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
267
206
  map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate),
268
207
  };
208
+ /**
209
+ * Convert a {@link d.VNode} to a {@link d.ChildNode} in order to present a
210
+ * friendlier public interface (hence, 'convertToPublic').
211
+ *
212
+ * @param node the virtual DOM node to convert
213
+ * @returns a converted child node
214
+ */
269
215
  const convertToPublic = (node) => ({
270
216
  vattrs: node.$attrs$,
271
217
  vchildren: node.$children$,
@@ -274,24 +220,395 @@ const convertToPublic = (node) => ({
274
220
  vtag: node.$tag$,
275
221
  vtext: node.$text$,
276
222
  });
223
+ /**
224
+ * Convert a {@link d.ChildNode} back to an equivalent {@link d.VNode} in
225
+ * order to use the resulting object in the virtual DOM. The initial object was
226
+ * likely created as part of presenting a public API, so converting it back
227
+ * involved making it 'private' again (hence, `convertToPrivate`).
228
+ *
229
+ * @param node the child node to convert
230
+ * @returns a converted virtual DOM node
231
+ */
277
232
  const convertToPrivate = (node) => {
278
233
  if (typeof node.vtag === 'function') {
279
234
  const vnodeData = Object.assign({}, node.vattrs);
280
235
  if (node.vkey) {
281
236
  vnodeData.key = node.vkey;
282
237
  }
283
- if (node.vname) {
284
- vnodeData.name = node.vname;
238
+ if (node.vname) {
239
+ vnodeData.name = node.vname;
240
+ }
241
+ return h(node.vtag, vnodeData, ...(node.vchildren || []));
242
+ }
243
+ const vnode = newVNode(node.vtag, node.vtext);
244
+ vnode.$attrs$ = node.vattrs;
245
+ vnode.$children$ = node.vchildren;
246
+ vnode.$key$ = node.vkey;
247
+ vnode.$name$ = node.vname;
248
+ return vnode;
249
+ };
250
+ const initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
251
+ const endHydrate = createTime('hydrateClient', tagName);
252
+ const shadowRoot = hostElm.shadowRoot;
253
+ const childRenderNodes = [];
254
+ const slotNodes = [];
255
+ const shadowRootNodes = shadowRoot ? [] : null;
256
+ const vnode = (hostRef.$vnode$ = newVNode(tagName, null));
257
+ if (!plt.$orgLocNodes$) {
258
+ initializeDocumentHydrate(doc.body, (plt.$orgLocNodes$ = new Map()));
259
+ }
260
+ hostElm[HYDRATE_ID] = hostId;
261
+ hostElm.removeAttribute(HYDRATE_ID);
262
+ clientHydrate(vnode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, hostElm, hostId);
263
+ childRenderNodes.map((c) => {
264
+ const orgLocationId = c.$hostId$ + '.' + c.$nodeId$;
265
+ const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
266
+ const node = c.$elm$;
267
+ if (orgLocationNode && supportsShadow && orgLocationNode['s-en'] === '') {
268
+ orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
269
+ }
270
+ if (!shadowRoot) {
271
+ node['s-hn'] = tagName;
272
+ if (orgLocationNode) {
273
+ node['s-ol'] = orgLocationNode;
274
+ node['s-ol']['s-nr'] = node;
275
+ }
276
+ }
277
+ plt.$orgLocNodes$.delete(orgLocationId);
278
+ });
279
+ if (shadowRoot) {
280
+ shadowRootNodes.map((shadowRootNode) => {
281
+ if (shadowRootNode) {
282
+ shadowRoot.appendChild(shadowRootNode);
283
+ }
284
+ });
285
+ }
286
+ endHydrate();
287
+ };
288
+ const clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId) => {
289
+ let childNodeType;
290
+ let childIdSplt;
291
+ let childVNode;
292
+ let i;
293
+ if (node.nodeType === 1 /* NODE_TYPE.ElementNode */) {
294
+ childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
295
+ if (childNodeType) {
296
+ // got the node data from the element's attribute
297
+ // `${hostId}.${nodeId}.${depth}.${index}`
298
+ childIdSplt = childNodeType.split('.');
299
+ if (childIdSplt[0] === hostId || childIdSplt[0] === '0') {
300
+ childVNode = {
301
+ $flags$: 0,
302
+ $hostId$: childIdSplt[0],
303
+ $nodeId$: childIdSplt[1],
304
+ $depth$: childIdSplt[2],
305
+ $index$: childIdSplt[3],
306
+ $tag$: node.tagName.toLowerCase(),
307
+ $elm$: node,
308
+ $attrs$: null,
309
+ $children$: null,
310
+ $key$: null,
311
+ $name$: null,
312
+ $text$: null,
313
+ };
314
+ childRenderNodes.push(childVNode);
315
+ node.removeAttribute(HYDRATE_CHILD_ID);
316
+ // this is a new child vnode
317
+ // so ensure its parent vnode has the vchildren array
318
+ if (!parentVNode.$children$) {
319
+ parentVNode.$children$ = [];
320
+ }
321
+ // add our child vnode to a specific index of the vnode's children
322
+ parentVNode.$children$[childVNode.$index$] = childVNode;
323
+ // this is now the new parent vnode for all the next child checks
324
+ parentVNode = childVNode;
325
+ if (shadowRootNodes && childVNode.$depth$ === '0') {
326
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
327
+ }
328
+ }
329
+ }
330
+ // recursively drill down, end to start so we can remove nodes
331
+ for (i = node.childNodes.length - 1; i >= 0; i--) {
332
+ clientHydrate(parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node.childNodes[i], hostId);
333
+ }
334
+ if (node.shadowRoot) {
335
+ // keep drilling down through the shadow root nodes
336
+ for (i = node.shadowRoot.childNodes.length - 1; i >= 0; i--) {
337
+ clientHydrate(parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node.shadowRoot.childNodes[i], hostId);
338
+ }
339
+ }
340
+ }
341
+ else if (node.nodeType === 8 /* NODE_TYPE.CommentNode */) {
342
+ // `${COMMENT_TYPE}.${hostId}.${nodeId}.${depth}.${index}`
343
+ childIdSplt = node.nodeValue.split('.');
344
+ if (childIdSplt[1] === hostId || childIdSplt[1] === '0') {
345
+ // comment node for either the host id or a 0 host id
346
+ childNodeType = childIdSplt[0];
347
+ childVNode = {
348
+ $flags$: 0,
349
+ $hostId$: childIdSplt[1],
350
+ $nodeId$: childIdSplt[2],
351
+ $depth$: childIdSplt[3],
352
+ $index$: childIdSplt[4],
353
+ $elm$: node,
354
+ $attrs$: null,
355
+ $children$: null,
356
+ $key$: null,
357
+ $name$: null,
358
+ $tag$: null,
359
+ $text$: null,
360
+ };
361
+ if (childNodeType === TEXT_NODE_ID) {
362
+ childVNode.$elm$ = node.nextSibling;
363
+ if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* NODE_TYPE.TextNode */) {
364
+ childVNode.$text$ = childVNode.$elm$.textContent;
365
+ childRenderNodes.push(childVNode);
366
+ // remove the text comment since it's no longer needed
367
+ node.remove();
368
+ if (!parentVNode.$children$) {
369
+ parentVNode.$children$ = [];
370
+ }
371
+ parentVNode.$children$[childVNode.$index$] = childVNode;
372
+ if (shadowRootNodes && childVNode.$depth$ === '0') {
373
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
374
+ }
375
+ }
376
+ }
377
+ else if (childVNode.$hostId$ === hostId) {
378
+ // this comment node is specifcally for this host id
379
+ if (childNodeType === SLOT_NODE_ID) {
380
+ // `${SLOT_NODE_ID}.${hostId}.${nodeId}.${depth}.${index}.${slotName}`;
381
+ childVNode.$tag$ = 'slot';
382
+ if (childIdSplt[5]) {
383
+ node['s-sn'] = childVNode.$name$ = childIdSplt[5];
384
+ }
385
+ else {
386
+ node['s-sn'] = '';
387
+ }
388
+ node['s-sr'] = true;
389
+ if (shadowRootNodes) {
390
+ // browser support shadowRoot and this is a shadow dom component
391
+ // create an actual slot element
392
+ childVNode.$elm$ = doc.createElement(childVNode.$tag$);
393
+ if (childVNode.$name$) {
394
+ // add the slot name attribute
395
+ childVNode.$elm$.setAttribute('name', childVNode.$name$);
396
+ }
397
+ // insert the new slot element before the slot comment
398
+ node.parentNode.insertBefore(childVNode.$elm$, node);
399
+ // remove the slot comment since it's not needed for shadow
400
+ node.remove();
401
+ if (childVNode.$depth$ === '0') {
402
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
403
+ }
404
+ }
405
+ slotNodes.push(childVNode);
406
+ if (!parentVNode.$children$) {
407
+ parentVNode.$children$ = [];
408
+ }
409
+ parentVNode.$children$[childVNode.$index$] = childVNode;
410
+ }
411
+ else if (childNodeType === CONTENT_REF_ID) {
412
+ // `${CONTENT_REF_ID}.${hostId}`;
413
+ if (shadowRootNodes) {
414
+ // remove the content ref comment since it's not needed for shadow
415
+ node.remove();
416
+ }
417
+ else {
418
+ hostElm['s-cr'] = node;
419
+ node['s-cn'] = true;
420
+ }
421
+ }
422
+ }
423
+ }
424
+ }
425
+ else if (parentVNode && parentVNode.$tag$ === 'style') {
426
+ const vnode = newVNode(null, node.textContent);
427
+ vnode.$elm$ = node;
428
+ vnode.$index$ = '0';
429
+ parentVNode.$children$ = [vnode];
430
+ }
431
+ };
432
+ const initializeDocumentHydrate = (node, orgLocNodes) => {
433
+ if (node.nodeType === 1 /* NODE_TYPE.ElementNode */) {
434
+ let i = 0;
435
+ for (; i < node.childNodes.length; i++) {
436
+ initializeDocumentHydrate(node.childNodes[i], orgLocNodes);
437
+ }
438
+ if (node.shadowRoot) {
439
+ for (i = 0; i < node.shadowRoot.childNodes.length; i++) {
440
+ initializeDocumentHydrate(node.shadowRoot.childNodes[i], orgLocNodes);
441
+ }
442
+ }
443
+ }
444
+ else if (node.nodeType === 8 /* NODE_TYPE.CommentNode */) {
445
+ const childIdSplt = node.nodeValue.split('.');
446
+ if (childIdSplt[0] === ORG_LOCATION_ID) {
447
+ orgLocNodes.set(childIdSplt[1] + '.' + childIdSplt[2], node);
448
+ node.nodeValue = '';
449
+ // useful to know if the original location is
450
+ // the root light-dom of a shadow dom component
451
+ node['s-en'] = childIdSplt[3];
452
+ }
453
+ }
454
+ };
455
+ /**
456
+ * Parse a new property value for a given property type.
457
+ *
458
+ * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
459
+ * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
460
+ * 1. `any`, the type given to `propValue` in the function signature
461
+ * 2. the type stored from `propType`.
462
+ *
463
+ * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
464
+ *
465
+ * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
466
+ * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
467
+ * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
468
+ * ```tsx
469
+ * <my-cmp prop-val={0}></my-cmp>
470
+ * ```
471
+ *
472
+ * HTML prop values on the other hand, will always a string
473
+ *
474
+ * @param propValue the new value to coerce to some type
475
+ * @param propType the type of the prop, expressed as a binary number
476
+ * @returns the parsed/coerced value
477
+ */
478
+ const parsePropertyValue = (propValue, propType) => {
479
+ // ensure this value is of the correct prop type
480
+ if (propValue != null && !isComplexType(propValue)) {
481
+ if (propType & 4 /* MEMBER_FLAGS.Boolean */) {
482
+ // per the HTML spec, any string value means it is a boolean true value
483
+ // but we'll cheat here and say that the string "false" is the boolean false
484
+ return propValue === 'false' ? false : propValue === '' || !!propValue;
485
+ }
486
+ if (propType & 2 /* MEMBER_FLAGS.Number */) {
487
+ // force it to be a number
488
+ return parseFloat(propValue);
489
+ }
490
+ if (propType & 1 /* MEMBER_FLAGS.String */) {
491
+ // could have been passed as a number or boolean
492
+ // but we still want it as a string
493
+ return String(propValue);
494
+ }
495
+ // redundant return here for better minification
496
+ return propValue;
497
+ }
498
+ // not sure exactly what type we want
499
+ // so no need to change to a different type
500
+ return propValue;
501
+ };
502
+ const getElement = (ref) => (getHostRef(ref).$hostElement$ );
503
+ const createEvent = (ref, name, flags) => {
504
+ const elm = getElement(ref);
505
+ return {
506
+ emit: (detail) => {
507
+ return emitEvent(elm, name, {
508
+ bubbles: !!(flags & 4 /* EVENT_FLAGS.Bubbles */),
509
+ composed: !!(flags & 2 /* EVENT_FLAGS.Composed */),
510
+ cancelable: !!(flags & 1 /* EVENT_FLAGS.Cancellable */),
511
+ detail,
512
+ });
513
+ },
514
+ };
515
+ };
516
+ /**
517
+ * Helper function to create & dispatch a custom Event on a provided target
518
+ * @param elm the target of the Event
519
+ * @param name the name to give the custom Event
520
+ * @param opts options for configuring a custom Event
521
+ * @returns the custom Event
522
+ */
523
+ const emitEvent = (elm, name, opts) => {
524
+ const ev = plt.ce(name, opts);
525
+ elm.dispatchEvent(ev);
526
+ return ev;
527
+ };
528
+ const rootAppliedStyles = /*@__PURE__*/ new WeakMap();
529
+ const registerStyle = (scopeId, cssText, allowCS) => {
530
+ let style = styles.get(scopeId);
531
+ if (supportsConstructableStylesheets && allowCS) {
532
+ style = (style || new CSSStyleSheet());
533
+ if (typeof style === 'string') {
534
+ style = cssText;
535
+ }
536
+ else {
537
+ style.replaceSync(cssText);
538
+ }
539
+ }
540
+ else {
541
+ style = cssText;
542
+ }
543
+ styles.set(scopeId, style);
544
+ };
545
+ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
546
+ var _a;
547
+ let scopeId = getScopeId(cmpMeta);
548
+ const style = styles.get(scopeId);
549
+ // if an element is NOT connected then getRootNode() will return the wrong root node
550
+ // so the fallback is to always use the document for the root node in those cases
551
+ styleContainerNode = styleContainerNode.nodeType === 11 /* NODE_TYPE.DocumentFragment */ ? styleContainerNode : doc;
552
+ if (style) {
553
+ if (typeof style === 'string') {
554
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
555
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
556
+ let styleElm;
557
+ if (!appliedStyles) {
558
+ rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
559
+ }
560
+ if (!appliedStyles.has(scopeId)) {
561
+ if (styleContainerNode.host &&
562
+ (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId}"]`))) {
563
+ // This is only happening on native shadow-dom, do not needs CSS var shim
564
+ styleElm.innerHTML = style;
565
+ }
566
+ else {
567
+ // TODO(STENCIL-659): Remove code implementing the CSS variable shim
568
+ {
569
+ styleElm = doc.createElement('style');
570
+ styleElm.innerHTML = style;
571
+ }
572
+ // Apply CSP nonce to the style tag if it exists
573
+ const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
574
+ if (nonce != null) {
575
+ styleElm.setAttribute('nonce', nonce);
576
+ }
577
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
578
+ }
579
+ if (appliedStyles) {
580
+ appliedStyles.add(scopeId);
581
+ }
582
+ }
583
+ }
584
+ else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
585
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
285
586
  }
286
- return h(node.vtag, vnodeData, ...(node.vchildren || []));
287
587
  }
288
- const vnode = newVNode(node.vtag, node.vtext);
289
- vnode.$attrs$ = node.vattrs;
290
- vnode.$children$ = node.vchildren;
291
- vnode.$key$ = node.vkey;
292
- vnode.$name$ = node.vname;
293
- return vnode;
588
+ return scopeId;
589
+ };
590
+ const attachStyles = (hostRef) => {
591
+ const cmpMeta = hostRef.$cmpMeta$;
592
+ const elm = hostRef.$hostElement$;
593
+ const flags = cmpMeta.$flags$;
594
+ const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
595
+ const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
596
+ // TODO(STENCIL-662): Remove code related to deprecated shadowDomShim field
597
+ if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
598
+ // only required when we're NOT using native shadow dom (slot)
599
+ // or this browser doesn't support native shadow dom
600
+ // and this host element was NOT created with SSR
601
+ // let's pick out the inner content for slot projection
602
+ // create a node to represent where the original
603
+ // content was first placed, which is useful later on
604
+ // DOM WRITE!!
605
+ elm['s-sc'] = scopeId;
606
+ elm.classList.add(scopeId + '-h');
607
+ }
608
+ endAttachStyles();
294
609
  };
610
+ const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
611
+ const convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, '$1{');
295
612
  /**
296
613
  * Production setAccessor() function based on Preact by
297
614
  * Jason Miller (@developit)
@@ -303,7 +620,7 @@ const convertToPrivate = (node) => {
303
620
  const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
304
621
  if (oldValue !== newValue) {
305
622
  let isProp = isMemberInElement(elm, memberName);
306
- memberName.toLowerCase();
623
+ let ln = memberName.toLowerCase();
307
624
  if (memberName === 'class') {
308
625
  const classList = elm.classList;
309
626
  const oldClasses = parseClassList(oldValue);
@@ -311,12 +628,76 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
311
628
  classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
312
629
  classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
313
630
  }
631
+ else if (memberName === 'style') {
632
+ // update style attribute, css properties and values
633
+ {
634
+ for (const prop in oldValue) {
635
+ if (!newValue || newValue[prop] == null) {
636
+ if (prop.includes('-')) {
637
+ elm.style.removeProperty(prop);
638
+ }
639
+ else {
640
+ elm.style[prop] = '';
641
+ }
642
+ }
643
+ }
644
+ }
645
+ for (const prop in newValue) {
646
+ if (!oldValue || newValue[prop] !== oldValue[prop]) {
647
+ if (prop.includes('-')) {
648
+ elm.style.setProperty(prop, newValue[prop]);
649
+ }
650
+ else {
651
+ elm.style[prop] = newValue[prop];
652
+ }
653
+ }
654
+ }
655
+ }
314
656
  else if (memberName === 'ref') {
315
657
  // minifier will clean this up
316
658
  if (newValue) {
317
659
  newValue(elm);
318
660
  }
319
661
  }
662
+ else if ((!isProp ) &&
663
+ memberName[0] === 'o' &&
664
+ memberName[1] === 'n') {
665
+ // Event Handlers
666
+ // so if the member name starts with "on" and the 3rd characters is
667
+ // a capital letter, and it's not already a member on the element,
668
+ // then we're assuming it's an event listener
669
+ if (memberName[2] === '-') {
670
+ // on- prefixed events
671
+ // allows to be explicit about the dom event to listen without any magic
672
+ // under the hood:
673
+ // <my-cmp on-click> // listens for "click"
674
+ // <my-cmp on-Click> // listens for "Click"
675
+ // <my-cmp on-ionChange> // listens for "ionChange"
676
+ // <my-cmp on-EVENTS> // listens for "EVENTS"
677
+ memberName = memberName.slice(3);
678
+ }
679
+ else if (isMemberInElement(win, ln)) {
680
+ // standard event
681
+ // the JSX attribute could have been "onMouseOver" and the
682
+ // member name "onmouseover" is on the window's prototype
683
+ // so let's add the listener "mouseover", which is all lowercased
684
+ memberName = ln.slice(2);
685
+ }
686
+ else {
687
+ // custom event
688
+ // the JSX attribute could have been "onMyCustomEvent"
689
+ // so let's trim off the "on" prefix and lowercase the first character
690
+ // and add the listener "myCustomEvent"
691
+ // except for the first character, we keep the event name case
692
+ memberName = ln[2] + memberName.slice(3);
693
+ }
694
+ if (oldValue) {
695
+ plt.rel(elm, memberName, oldValue, false);
696
+ }
697
+ if (newValue) {
698
+ plt.ael(elm, memberName, newValue, false);
699
+ }
700
+ }
320
701
  else {
321
702
  // Set property if it exists and it's not a SVG
322
703
  const isComplex = isComplexType(newValue);
@@ -345,7 +726,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
345
726
  }
346
727
  }
347
728
  }
348
- else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
729
+ else if ((!isProp || flags & 4 /* VNODE_FLAGS.isHost */ || isSvg) && !isComplex) {
349
730
  newValue = newValue === true ? '' : newValue;
350
731
  {
351
732
  elm.setAttribute(memberName, newValue);
@@ -360,7 +741,7 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
360
741
  // if the element passed in is a shadow root, which is a document fragment
361
742
  // then we want to be adding attrs/props to the shadow root's "host" element
362
743
  // if it's not a shadow root, then we add attrs/props to the same element
363
- const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host
744
+ const elm = newVnode.$elm$.nodeType === 11 /* NODE_TYPE.DocumentFragment */ && newVnode.$elm$.host
364
745
  ? newVnode.$elm$.host
365
746
  : newVnode.$elm$;
366
747
  const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
@@ -378,6 +759,16 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
378
759
  setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
379
760
  }
380
761
  };
762
+ /**
763
+ * Create a DOM Node corresponding to one of the children of a given VNode.
764
+ *
765
+ * @param oldParentVNode the parent VNode from the previous render
766
+ * @param newParentVNode the parent VNode from the current render
767
+ * @param childIndex the index of the VNode, in the _new_ parent node's
768
+ * children, for which we will create a new DOM node
769
+ * @param parentElm the parent DOM node which our new node will be a child of
770
+ * @returns the newly created node
771
+ */
381
772
  const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
382
773
  // tslint:disable-next-line: prefer-const
383
774
  const newVNode = newParentVNode.$children$[childIndex];
@@ -395,23 +786,23 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
395
786
  }
396
787
  newVNode.$flags$ |= newVNode.$children$
397
788
  ? // slot element has fallback content
398
- 2 /* isSlotFallback */
789
+ 2 /* VNODE_FLAGS.isSlotFallback */
399
790
  : // slot element does not have fallback content
400
- 1 /* isSlotReference */;
791
+ 1 /* VNODE_FLAGS.isSlotReference */;
401
792
  }
402
793
  }
403
794
  if (newVNode.$text$ !== null) {
404
795
  // create text node
405
796
  elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
406
797
  }
407
- else if (newVNode.$flags$ & 1 /* isSlotReference */) {
798
+ else if (newVNode.$flags$ & 1 /* VNODE_FLAGS.isSlotReference */) {
408
799
  // create a slot reference node
409
800
  elm = newVNode.$elm$ =
410
801
  doc.createTextNode('');
411
802
  }
412
803
  else {
413
804
  // create element
414
- elm = newVNode.$elm$ = (doc.createElement(newVNode.$flags$ & 2 /* isSlotFallback */
805
+ elm = newVNode.$elm$ = (doc.createElement(newVNode.$flags$ & 2 /* VNODE_FLAGS.isSlotFallback */
415
806
  ? 'slot-fb'
416
807
  : newVNode.$tag$));
417
808
  // add css classes, attrs, props, listeners, etc.
@@ -437,7 +828,7 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
437
828
  }
438
829
  {
439
830
  elm['s-hn'] = hostTagName;
440
- if (newVNode.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
831
+ if (newVNode.$flags$ & (2 /* VNODE_FLAGS.isSlotFallback */ | 1 /* VNODE_FLAGS.isSlotReference */)) {
441
832
  // remember the content reference comment
442
833
  elm['s-sr'] = true;
443
834
  // remember the content reference comment
@@ -456,7 +847,7 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
456
847
  return elm;
457
848
  };
458
849
  const putBackInOriginalLocation = (parentElm, recursive) => {
459
- plt.$flags$ |= 1 /* isTmpDisconnected */;
850
+ plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
460
851
  const oldSlotChildNodes = parentElm.childNodes;
461
852
  for (let i = oldSlotChildNodes.length - 1; i >= 0; i--) {
462
853
  const childNode = oldSlotChildNodes[i];
@@ -477,8 +868,23 @@ const putBackInOriginalLocation = (parentElm, recursive) => {
477
868
  putBackInOriginalLocation(childNode, recursive);
478
869
  }
479
870
  }
480
- plt.$flags$ &= ~1 /* isTmpDisconnected */;
871
+ plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
481
872
  };
873
+ /**
874
+ * Create DOM nodes corresponding to a list of {@link d.Vnode} objects and
875
+ * add them to the DOM in the appropriate place.
876
+ *
877
+ * @param parentElm the DOM node which should be used as a parent for the new
878
+ * DOM nodes
879
+ * @param before a child of the `parentElm` which the new children should be
880
+ * inserted before (optional)
881
+ * @param parentVNode the parent virtual DOM node
882
+ * @param vnodes the new child virtual DOM nodes to produce DOM nodes for
883
+ * @param startIdx the index in the child virtual DOM nodes at which to start
884
+ * creating DOM nodes (inclusive)
885
+ * @param endIdx the index in the child virtual DOM nodes at which to stop
886
+ * creating DOM nodes (inclusive)
887
+ */
482
888
  const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
483
889
  let containerElm = ((parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm);
484
890
  let childNode;
@@ -495,6 +901,19 @@ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) =>
495
901
  }
496
902
  }
497
903
  };
904
+ /**
905
+ * Remove the DOM elements corresponding to a list of {@link d.VNode} objects.
906
+ * This can be used to, for instance, clean up after a list of children which
907
+ * should no longer be shown.
908
+ *
909
+ * This function also handles some of Stencil's slot relocation logic.
910
+ *
911
+ * @param vnodes a list of virtual DOM nodes to remove
912
+ * @param startIdx the index at which to start removing nodes (inclusive)
913
+ * @param endIdx the index at which to stop removing nodes (inclusive)
914
+ * @param vnode a VNode
915
+ * @param elm an element
916
+ */
498
917
  const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
499
918
  for (; startIdx <= endIdx; ++startIdx) {
500
919
  if ((vnode = vnodes[startIdx])) {
@@ -519,6 +938,74 @@ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
519
938
  }
520
939
  }
521
940
  };
941
+ /**
942
+ * Reconcile the children of a new VNode with the children of an old VNode by
943
+ * traversing the two collections of children, identifying nodes that are
944
+ * conserved or changed, calling out to `patch` to make any necessary
945
+ * updates to the DOM, and rearranging DOM nodes as needed.
946
+ *
947
+ * The algorithm for reconciling children works by analyzing two 'windows' onto
948
+ * the two arrays of children (`oldCh` and `newCh`). We keep track of the
949
+ * 'windows' by storing start and end indices and references to the
950
+ * corresponding array entries. Initially the two 'windows' are basically equal
951
+ * to the entire array, but we progressively narrow the windows until there are
952
+ * no children left to update by doing the following:
953
+ *
954
+ * 1. Skip any `null` entries at the beginning or end of the two arrays, so
955
+ * that if we have an initial array like the following we'll end up dealing
956
+ * only with a window bounded by the highlighted elements:
957
+ *
958
+ * [null, null, VNode1 , ... , VNode2, null, null]
959
+ * ^^^^^^ ^^^^^^
960
+ *
961
+ * 2. Check to see if the elements at the head and tail positions are equal
962
+ * across the windows. This will basically detect elements which haven't
963
+ * been added, removed, or changed position, i.e. if you had the following
964
+ * VNode elements (represented as HTML):
965
+ *
966
+ * oldVNode: `<div><p><span>HEY</span></p></div>`
967
+ * newVNode: `<div><p><span>THERE</span></p></div>`
968
+ *
969
+ * Then when comparing the children of the `<div>` tag we check the equality
970
+ * of the VNodes corresponding to the `<p>` tags and, since they are the
971
+ * same tag in the same position, we'd be able to avoid completely
972
+ * re-rendering the subtree under them with a new DOM element and would just
973
+ * call out to `patch` to handle reconciling their children and so on.
974
+ *
975
+ * 3. Check, for both windows, to see if the element at the beginning of the
976
+ * window corresponds to the element at the end of the other window. This is
977
+ * a heuristic which will let us identify _some_ situations in which
978
+ * elements have changed position, for instance it _should_ detect that the
979
+ * children nodes themselves have not changed but merely moved in the
980
+ * following example:
981
+ *
982
+ * oldVNode: `<div><element-one /><element-two /></div>`
983
+ * newVNode: `<div><element-two /><element-one /></div>`
984
+ *
985
+ * If we find cases like this then we also need to move the concrete DOM
986
+ * elements corresponding to the moved children to write the re-order to the
987
+ * DOM.
988
+ *
989
+ * 4. Finally, if VNodes have the `key` attribute set on them we check for any
990
+ * nodes in the old children which have the same key as the first element in
991
+ * our window on the new children. If we find such a node we handle calling
992
+ * out to `patch`, moving relevant DOM nodes, and so on, in accordance with
993
+ * what we find.
994
+ *
995
+ * Finally, once we've narrowed our 'windows' to the point that either of them
996
+ * collapse (i.e. they have length 0) we then handle any remaining VNode
997
+ * insertion or deletion that needs to happen to get a DOM state that correctly
998
+ * reflects the new child VNodes. If, for instance, after our window on the old
999
+ * children has collapsed we still have more nodes on the new children that
1000
+ * we haven't dealt with yet then we need to add them, or if the new children
1001
+ * collapse but we still have unhandled _old_ children then we need to make
1002
+ * sure the corresponding DOM nodes are removed.
1003
+ *
1004
+ * @param parentElm the node into which the parent VNode is rendered
1005
+ * @param oldCh the old children of the parent node
1006
+ * @param newVNode the new VNode which will replace the parent
1007
+ * @param newCh the new children of the parent node
1008
+ */
522
1009
  const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
523
1010
  let oldStartIdx = 0;
524
1011
  let newStartIdx = 0;
@@ -531,7 +1018,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
531
1018
  let node;
532
1019
  while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
533
1020
  if (oldStartVnode == null) {
534
- // Vnode might have been moved left
1021
+ // VNode might have been moved left
535
1022
  oldStartVnode = oldCh[++oldStartIdx];
536
1023
  }
537
1024
  else if (oldEndVnode == null) {
@@ -544,42 +1031,102 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
544
1031
  newEndVnode = newCh[--newEndIdx];
545
1032
  }
546
1033
  else if (isSameVnode(oldStartVnode, newStartVnode)) {
1034
+ // if the start nodes are the same then we should patch the new VNode
1035
+ // onto the old one, and increment our `newStartIdx` and `oldStartIdx`
1036
+ // indices to reflect that. We don't need to move any DOM Nodes around
1037
+ // since things are matched up in order.
547
1038
  patch(oldStartVnode, newStartVnode);
548
1039
  oldStartVnode = oldCh[++oldStartIdx];
549
1040
  newStartVnode = newCh[++newStartIdx];
550
1041
  }
551
1042
  else if (isSameVnode(oldEndVnode, newEndVnode)) {
1043
+ // likewise, if the end nodes are the same we patch new onto old and
1044
+ // decrement our end indices, and also likewise in this case we don't
1045
+ // need to move any DOM Nodes.
552
1046
  patch(oldEndVnode, newEndVnode);
553
1047
  oldEndVnode = oldCh[--oldEndIdx];
554
1048
  newEndVnode = newCh[--newEndIdx];
555
1049
  }
556
1050
  else if (isSameVnode(oldStartVnode, newEndVnode)) {
557
- // Vnode moved right
1051
+ // case: "Vnode moved right"
1052
+ //
1053
+ // We've found that the last node in our window on the new children is
1054
+ // the same VNode as the _first_ node in our window on the old children
1055
+ // we're dealing with now. Visually, this is the layout of these two
1056
+ // nodes:
1057
+ //
1058
+ // newCh: [..., newStartVnode , ... , newEndVnode , ...]
1059
+ // ^^^^^^^^^^^
1060
+ // oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
1061
+ // ^^^^^^^^^^^^^
1062
+ //
1063
+ // In this situation we need to patch `newEndVnode` onto `oldStartVnode`
1064
+ // and move the DOM element for `oldStartVnode`.
558
1065
  if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
559
1066
  putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
560
1067
  }
561
1068
  patch(oldStartVnode, newEndVnode);
1069
+ // We need to move the element for `oldStartVnode` into a position which
1070
+ // will be appropriate for `newEndVnode`. For this we can use
1071
+ // `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
1072
+ // sibling for `oldEndVnode.$elm$` then we want to move the DOM node for
1073
+ // `oldStartVnode` between `oldEndVnode` and it's sibling, like so:
1074
+ //
1075
+ // <old-start-node />
1076
+ // <some-intervening-node />
1077
+ // <old-end-node />
1078
+ // <!-- -> <-- `oldStartVnode.$elm$` should be inserted here
1079
+ // <next-sibling />
1080
+ //
1081
+ // If instead `oldEndVnode.$elm$` has no sibling then we just want to put
1082
+ // the node for `oldStartVnode` at the end of the children of
1083
+ // `parentElm`. Luckily, `Node.nextSibling` will return `null` if there
1084
+ // aren't any siblings, and passing `null` to `Node.insertBefore` will
1085
+ // append it to the children of the parent element.
562
1086
  parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
563
1087
  oldStartVnode = oldCh[++oldStartIdx];
564
1088
  newEndVnode = newCh[--newEndIdx];
565
1089
  }
566
1090
  else if (isSameVnode(oldEndVnode, newStartVnode)) {
567
- // Vnode moved left
1091
+ // case: "Vnode moved left"
1092
+ //
1093
+ // We've found that the first node in our window on the new children is
1094
+ // the same VNode as the _last_ node in our window on the old children.
1095
+ // Visually, this is the layout of these two nodes:
1096
+ //
1097
+ // newCh: [..., newStartVnode , ... , newEndVnode , ...]
1098
+ // ^^^^^^^^^^^^^
1099
+ // oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
1100
+ // ^^^^^^^^^^^
1101
+ //
1102
+ // In this situation we need to patch `newStartVnode` onto `oldEndVnode`
1103
+ // (which will handle updating any changed attributes, reconciling their
1104
+ // children etc) but we also need to move the DOM node to which
1105
+ // `oldEndVnode` corresponds.
568
1106
  if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
569
1107
  putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
570
1108
  }
571
1109
  patch(oldEndVnode, newStartVnode);
1110
+ // We've already checked above if `oldStartVnode` and `newStartVnode` are
1111
+ // the same node, so since we're here we know that they are not. Thus we
1112
+ // can move the element for `oldEndVnode` _before_ the element for
1113
+ // `oldStartVnode`, leaving `oldStartVnode` to be reconciled in the
1114
+ // future.
572
1115
  parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
573
1116
  oldEndVnode = oldCh[--oldEndIdx];
574
1117
  newStartVnode = newCh[++newStartIdx];
575
1118
  }
576
1119
  else {
577
1120
  {
578
- // new element
1121
+ // We either didn't find an element in the old children that matches
1122
+ // the key of the first new child OR the build is not using `key`
1123
+ // attributes at all. In either case we need to create a new element
1124
+ // for the new node.
579
1125
  node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx, parentElm);
580
1126
  newStartVnode = newCh[++newStartIdx];
581
1127
  }
582
1128
  if (node) {
1129
+ // if we created a new node then handle inserting it to the DOM
583
1130
  {
584
1131
  parentReferenceNode(oldStartVnode.$elm$).insertBefore(node, referenceNode(oldStartVnode.$elm$));
585
1132
  }
@@ -587,18 +1134,40 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
587
1134
  }
588
1135
  }
589
1136
  if (oldStartIdx > oldEndIdx) {
1137
+ // we have some more new nodes to add which don't match up with old nodes
590
1138
  addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
591
1139
  }
592
1140
  else if (newStartIdx > newEndIdx) {
1141
+ // there are nodes in the `oldCh` array which no longer correspond to nodes
1142
+ // in the new array, so lets remove them (which entails cleaning up the
1143
+ // relevant DOM nodes)
593
1144
  removeVnodes(oldCh, oldStartIdx, oldEndIdx);
594
1145
  }
595
1146
  };
596
- const isSameVnode = (vnode1, vnode2) => {
1147
+ /**
1148
+ * Compare two VNodes to determine if they are the same
1149
+ *
1150
+ * **NB**: This function is an equality _heuristic_ based on the available
1151
+ * information set on the two VNodes and can be misleading under certain
1152
+ * circumstances. In particular, if the two nodes do not have `key` attrs
1153
+ * (available under `$key$` on VNodes) then the function falls back on merely
1154
+ * checking that they have the same tag.
1155
+ *
1156
+ * So, in other words, if `key` attrs are not set on VNodes which may be
1157
+ * changing order within a `children` array or something along those lines then
1158
+ * we could obtain a false negative and then have to do needless re-rendering
1159
+ * (i.e. we'd say two VNodes aren't equal when in fact they should be).
1160
+ *
1161
+ * @param leftVNode the first VNode to check
1162
+ * @param rightVNode the second VNode to check
1163
+ * @returns whether they're equal or not
1164
+ */
1165
+ const isSameVnode = (leftVNode, rightVNode) => {
597
1166
  // compare if two vnode to see if they're "technically" the same
598
1167
  // need to have the same element tag, and same key to be the same
599
- if (vnode1.$tag$ === vnode2.$tag$) {
600
- if (vnode1.$tag$ === 'slot') {
601
- return vnode1.$name$ === vnode2.$name$;
1168
+ if (leftVNode.$tag$ === rightVNode.$tag$) {
1169
+ if (leftVNode.$tag$ === 'slot') {
1170
+ return leftVNode.$name$ === rightVNode.$name$;
602
1171
  }
603
1172
  return true;
604
1173
  }
@@ -612,6 +1181,14 @@ const referenceNode = (node) => {
612
1181
  return (node && node['s-ol']) || node;
613
1182
  };
614
1183
  const parentReferenceNode = (node) => (node['s-ol'] ? node['s-ol'] : node).parentNode;
1184
+ /**
1185
+ * Handle reconciling an outdated VNode with a new one which corresponds to
1186
+ * it. This function handles flushing updates to the DOM and reconciling the
1187
+ * children of the two nodes (if any).
1188
+ *
1189
+ * @param oldVNode an old VNode whose DOM element and children we want to update
1190
+ * @param newVNode a new VNode representing an updated version of the old one
1191
+ */
615
1192
  const patch = (oldVNode, newVNode) => {
616
1193
  const elm = (newVNode.$elm$ = oldVNode.$elm$);
617
1194
  const oldChildren = oldVNode.$children$;
@@ -620,7 +1197,6 @@ const patch = (oldVNode, newVNode) => {
620
1197
  const text = newVNode.$text$;
621
1198
  let defaultHolder;
622
1199
  if (text === null) {
623
- // element node
624
1200
  {
625
1201
  if (tag === 'slot')
626
1202
  ;
@@ -633,6 +1209,7 @@ const patch = (oldVNode, newVNode) => {
633
1209
  }
634
1210
  if (oldChildren !== null && newChildren !== null) {
635
1211
  // looks like there's child vnodes for both the old and new vnodes
1212
+ // so we need to call `updateChildren` to reconcile them
636
1213
  updateChildren(elm, oldChildren, newVNode, newChildren);
637
1214
  }
638
1215
  else if (newChildren !== null) {
@@ -670,7 +1247,7 @@ const updateFallbackSlotVisibility = (elm) => {
670
1247
  let nodeType;
671
1248
  for (i = 0, ilen = childNodes.length; i < ilen; i++) {
672
1249
  childNode = childNodes[i];
673
- if (childNode.nodeType === 1 /* ElementNode */) {
1250
+ if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
674
1251
  if (childNode['s-sr']) {
675
1252
  // this is a slot fallback node
676
1253
  // get the slot name for this slot reference node
@@ -682,7 +1259,7 @@ const updateFallbackSlotVisibility = (elm) => {
682
1259
  nodeType = childNodes[j].nodeType;
683
1260
  if (childNodes[j]['s-hn'] !== childNode['s-hn'] || slotNameAttr !== '') {
684
1261
  // this sibling node is from a different component OR is a named fallback slot node
685
- if (nodeType === 1 /* ElementNode */ && slotNameAttr === childNodes[j].getAttribute('slot')) {
1262
+ if (nodeType === 1 /* NODE_TYPE.ElementNode */ && slotNameAttr === childNodes[j].getAttribute('slot')) {
686
1263
  childNode.hidden = true;
687
1264
  break;
688
1265
  }
@@ -691,8 +1268,8 @@ const updateFallbackSlotVisibility = (elm) => {
691
1268
  // this is a default fallback slot node
692
1269
  // any element or text node (with content)
693
1270
  // should hide the default fallback slot node
694
- if (nodeType === 1 /* ElementNode */ ||
695
- (nodeType === 3 /* TextNode */ && childNodes[j].textContent.trim() !== '')) {
1271
+ if (nodeType === 1 /* NODE_TYPE.ElementNode */ ||
1272
+ (nodeType === 3 /* NODE_TYPE.TextNode */ && childNodes[j].textContent.trim() !== '')) {
696
1273
  childNode.hidden = true;
697
1274
  break;
698
1275
  }
@@ -770,13 +1347,13 @@ const relocateSlotContent = (elm) => {
770
1347
  }
771
1348
  }
772
1349
  }
773
- if (childNode.nodeType === 1 /* ElementNode */) {
1350
+ if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
774
1351
  relocateSlotContent(childNode);
775
1352
  }
776
1353
  }
777
1354
  };
778
1355
  const isNodeLocatedInSlot = (nodeToRelocate, slotNameAttr) => {
779
- if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1356
+ if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
780
1357
  if (nodeToRelocate.getAttribute('slot') === null && slotNameAttr === '') {
781
1358
  return true;
782
1359
  }
@@ -796,14 +1373,30 @@ const callNodeRefs = (vNode) => {
796
1373
  vNode.$children$ && vNode.$children$.map(callNodeRefs);
797
1374
  }
798
1375
  };
1376
+ /**
1377
+ * The main entry point for Stencil's virtual DOM-based rendering engine
1378
+ *
1379
+ * Given a {@link d.HostRef} container and some virtual DOM nodes, this
1380
+ * function will handle creating a virtual DOM tree with a single root, patching
1381
+ * the current virtual DOM tree onto an old one (if any), dealing with slot
1382
+ * relocation, and reflecting attributes.
1383
+ *
1384
+ * @param hostRef data needed to root and render the virtual DOM tree, such as
1385
+ * the DOM node into which it should be rendered.
1386
+ * @param renderFnResults the virtual DOM nodes to be rendered
1387
+ */
799
1388
  const renderVdom = (hostRef, renderFnResults) => {
800
1389
  const hostElm = hostRef.$hostElement$;
801
1390
  const cmpMeta = hostRef.$cmpMeta$;
802
1391
  const oldVNode = hostRef.$vnode$ || newVNode(null, null);
803
1392
  const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
804
1393
  hostTagName = hostElm.tagName;
1394
+ if (cmpMeta.$attrsToReflect$) {
1395
+ rootVnode.$attrs$ = rootVnode.$attrs$ || {};
1396
+ cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
1397
+ }
805
1398
  rootVnode.$tag$ = null;
806
- rootVnode.$flags$ |= 4 /* isHost */;
1399
+ rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
807
1400
  hostRef.$vnode$ = rootVnode;
808
1401
  rootVnode.$elm$ = oldVNode.$elm$ = (hostElm.shadowRoot || hostElm );
809
1402
  {
@@ -811,7 +1404,7 @@ const renderVdom = (hostRef, renderFnResults) => {
811
1404
  }
812
1405
  {
813
1406
  contentRef = hostElm['s-cr'];
814
- useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
1407
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) !== 0;
815
1408
  // always reset
816
1409
  checkSlotFallbackVisibility = false;
817
1410
  }
@@ -820,7 +1413,7 @@ const renderVdom = (hostRef, renderFnResults) => {
820
1413
  {
821
1414
  // while we're moving nodes around existing nodes, temporarily disable
822
1415
  // the disconnectCallback from working
823
- plt.$flags$ |= 1 /* isTmpDisconnected */;
1416
+ plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
824
1417
  if (checkSlotRelocate) {
825
1418
  relocateSlotContent(rootVnode.$elm$);
826
1419
  let relocateData;
@@ -878,7 +1471,7 @@ const renderVdom = (hostRef, renderFnResults) => {
878
1471
  }
879
1472
  else {
880
1473
  // this node doesn't have a slot home to go to, so let's hide it
881
- if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1474
+ if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
882
1475
  nodeToRelocate.hidden = true;
883
1476
  }
884
1477
  }
@@ -889,37 +1482,11 @@ const renderVdom = (hostRef, renderFnResults) => {
889
1482
  }
890
1483
  // done moving nodes around
891
1484
  // allow the disconnect callback to work again
892
- plt.$flags$ &= ~1 /* isTmpDisconnected */;
1485
+ plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
893
1486
  // always reset
894
1487
  relocateNodes.length = 0;
895
1488
  }
896
1489
  };
897
- const getElement = (ref) => (getHostRef(ref).$hostElement$ );
898
- const createEvent = (ref, name, flags) => {
899
- const elm = getElement(ref);
900
- return {
901
- emit: (detail) => {
902
- return emitEvent(elm, name, {
903
- bubbles: !!(flags & 4 /* Bubbles */),
904
- composed: !!(flags & 2 /* Composed */),
905
- cancelable: !!(flags & 1 /* Cancellable */),
906
- detail,
907
- });
908
- },
909
- };
910
- };
911
- /**
912
- * Helper function to create & dispatch a custom Event on a provided target
913
- * @param elm the target of the Event
914
- * @param name the name to give the custom Event
915
- * @param opts options for configuring a custom Event
916
- * @returns the custom Event
917
- */
918
- const emitEvent = (elm, name, opts) => {
919
- const ev = plt.ce(name, opts);
920
- elm.dispatchEvent(ev);
921
- return ev;
922
- };
923
1490
  const attachToAncestor = (hostRef, ancestorComponent) => {
924
1491
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
925
1492
  ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
@@ -927,10 +1494,10 @@ const attachToAncestor = (hostRef, ancestorComponent) => {
927
1494
  };
928
1495
  const scheduleUpdate = (hostRef, isInitialLoad) => {
929
1496
  {
930
- hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
1497
+ hostRef.$flags$ |= 16 /* HOST_FLAGS.isQueuedForUpdate */;
931
1498
  }
932
- if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
933
- hostRef.$flags$ |= 512 /* needsRerender */;
1499
+ if (hostRef.$flags$ & 4 /* HOST_FLAGS.isWaitingForChildren */) {
1500
+ hostRef.$flags$ |= 512 /* HOST_FLAGS.needsRerender */;
934
1501
  return;
935
1502
  }
936
1503
  attachToAncestor(hostRef, hostRef.$ancestorComponent$);
@@ -946,12 +1513,15 @@ const dispatchHooks = (hostRef, isInitialLoad) => {
946
1513
  let promise;
947
1514
  if (isInitialLoad) {
948
1515
  {
949
- hostRef.$flags$ |= 256 /* isListenReady */;
1516
+ hostRef.$flags$ |= 256 /* HOST_FLAGS.isListenReady */;
950
1517
  if (hostRef.$queuedListeners$) {
951
1518
  hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
952
1519
  hostRef.$queuedListeners$ = null;
953
1520
  }
954
1521
  }
1522
+ {
1523
+ promise = safeCall(instance, 'componentWillLoad');
1524
+ }
955
1525
  }
956
1526
  {
957
1527
  promise = then(promise, () => safeCall(instance, 'componentWillRender'));
@@ -989,7 +1559,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
989
1559
  }
990
1560
  else {
991
1561
  Promise.all(childrenPromises).then(postUpdate);
992
- hostRef.$flags$ |= 4 /* isWaitingForChildren */;
1562
+ hostRef.$flags$ |= 4 /* HOST_FLAGS.isWaitingForChildren */;
993
1563
  childrenPromises.length = 0;
994
1564
  }
995
1565
  }
@@ -998,10 +1568,10 @@ const callRender = (hostRef, instance, elm) => {
998
1568
  try {
999
1569
  instance = instance.render() ;
1000
1570
  {
1001
- hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
1571
+ hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
1002
1572
  }
1003
1573
  {
1004
- hostRef.$flags$ |= 2 /* hasRendered */;
1574
+ hostRef.$flags$ |= 2 /* HOST_FLAGS.hasRendered */;
1005
1575
  }
1006
1576
  {
1007
1577
  {
@@ -1023,13 +1593,20 @@ const postUpdateComponent = (hostRef) => {
1023
1593
  const tagName = hostRef.$cmpMeta$.$tagName$;
1024
1594
  const elm = hostRef.$hostElement$;
1025
1595
  const endPostUpdate = createTime('postUpdate', tagName);
1596
+ const instance = hostRef.$lazyInstance$ ;
1026
1597
  const ancestorComponent = hostRef.$ancestorComponent$;
1027
- if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
1028
- hostRef.$flags$ |= 64 /* hasLoadedComponent */;
1598
+ {
1599
+ safeCall(instance, 'componentDidRender');
1600
+ }
1601
+ if (!(hostRef.$flags$ & 64 /* HOST_FLAGS.hasLoadedComponent */)) {
1602
+ hostRef.$flags$ |= 64 /* HOST_FLAGS.hasLoadedComponent */;
1029
1603
  {
1030
1604
  // DOM WRITE!
1031
1605
  addHydratedFlag(elm);
1032
1606
  }
1607
+ {
1608
+ safeCall(instance, 'componentDidLoad');
1609
+ }
1033
1610
  endPostUpdate();
1034
1611
  {
1035
1612
  hostRef.$onReadyResolve$(elm);
@@ -1039,6 +1616,9 @@ const postUpdateComponent = (hostRef) => {
1039
1616
  }
1040
1617
  }
1041
1618
  else {
1619
+ {
1620
+ safeCall(instance, 'componentDidUpdate');
1621
+ }
1042
1622
  endPostUpdate();
1043
1623
  }
1044
1624
  // load events fire from bottom to top
@@ -1048,10 +1628,10 @@ const postUpdateComponent = (hostRef) => {
1048
1628
  hostRef.$onRenderResolve$();
1049
1629
  hostRef.$onRenderResolve$ = undefined;
1050
1630
  }
1051
- if (hostRef.$flags$ & 512 /* needsRerender */) {
1631
+ if (hostRef.$flags$ & 512 /* HOST_FLAGS.needsRerender */) {
1052
1632
  nextTick(() => scheduleUpdate(hostRef, false));
1053
1633
  }
1054
- hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
1634
+ hostRef.$flags$ &= ~(4 /* HOST_FLAGS.isWaitingForChildren */ | 512 /* HOST_FLAGS.needsRerender */);
1055
1635
  }
1056
1636
  // ( •_•)
1057
1637
  // ( •_•)>⌐■-■
@@ -1081,57 +1661,11 @@ const then = (promise, thenFn) => {
1081
1661
  };
1082
1662
  const addHydratedFlag = (elm) => elm.classList.add('hydrated')
1083
1663
  ;
1084
- /**
1085
- * Parse a new property value for a given property type.
1086
- *
1087
- * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
1088
- * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
1089
- * 1. `any`, the type given to `propValue` in the function signature
1090
- * 2. the type stored from `propType`.
1091
- *
1092
- * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
1093
- *
1094
- * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
1095
- * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
1096
- * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
1097
- * ```tsx
1098
- * <my-cmp prop-val={0}></my-cmp>
1099
- * ```
1100
- *
1101
- * HTML prop values on the other hand, will always a string
1102
- *
1103
- * @param propValue the new value to coerce to some type
1104
- * @param propType the type of the prop, expressed as a binary number
1105
- * @returns the parsed/coerced value
1106
- */
1107
- const parsePropertyValue = (propValue, propType) => {
1108
- // ensure this value is of the correct prop type
1109
- if (propValue != null && !isComplexType(propValue)) {
1110
- if (propType & 4 /* Boolean */) {
1111
- // per the HTML spec, any string value means it is a boolean true value
1112
- // but we'll cheat here and say that the string "false" is the boolean false
1113
- return propValue === 'false' ? false : propValue === '' || !!propValue;
1114
- }
1115
- if (propType & 2 /* Number */) {
1116
- // force it to be a number
1117
- return parseFloat(propValue);
1118
- }
1119
- if (propType & 1 /* String */) {
1120
- // could have been passed as a number or boolean
1121
- // but we still want it as a string
1122
- return String(propValue);
1123
- }
1124
- // redundant return here for better minification
1125
- return propValue;
1126
- }
1127
- // not sure exactly what type we want
1128
- // so no need to change to a different type
1129
- return propValue;
1130
- };
1131
1664
  const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1132
1665
  const setValue = (ref, propName, newVal, cmpMeta) => {
1133
1666
  // check our new property value against our internal value
1134
1667
  const hostRef = getHostRef(ref);
1668
+ const elm = hostRef.$hostElement$ ;
1135
1669
  const oldVal = hostRef.$instanceValues$.get(propName);
1136
1670
  const flags = hostRef.$flags$;
1137
1671
  const instance = hostRef.$lazyInstance$ ;
@@ -1139,12 +1673,28 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
1139
1673
  // explicitly check for NaN on both sides, as `NaN === NaN` is always false
1140
1674
  const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1141
1675
  const didValueChange = newVal !== oldVal && !areBothNaN;
1142
- if ((!(flags & 8 /* isConstructingInstance */) || oldVal === undefined) && didValueChange) {
1676
+ if ((!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) || oldVal === undefined) && didValueChange) {
1143
1677
  // gadzooks! the property's value has changed!!
1144
1678
  // set our new value!
1145
1679
  hostRef.$instanceValues$.set(propName, newVal);
1146
1680
  if (instance) {
1147
- if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1681
+ // get an array of method names of watch functions to call
1682
+ if (cmpMeta.$watchers$ && flags & 128 /* HOST_FLAGS.isWatchReady */) {
1683
+ const watchMethods = cmpMeta.$watchers$[propName];
1684
+ if (watchMethods) {
1685
+ // this instance is watching for when this property changed
1686
+ watchMethods.map((watchMethodName) => {
1687
+ try {
1688
+ // fire off each of the watch methods that are watching this property
1689
+ instance[watchMethodName](newVal, oldVal, propName);
1690
+ }
1691
+ catch (e) {
1692
+ consoleError(e, elm);
1693
+ }
1694
+ });
1695
+ }
1696
+ }
1697
+ if ((flags & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
1148
1698
  if (instance.componentShouldUpdate) {
1149
1699
  if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
1150
1700
  return;
@@ -1159,14 +1709,27 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
1159
1709
  }
1160
1710
  }
1161
1711
  };
1712
+ /**
1713
+ * Attach a series of runtime constructs to a compiled Stencil component
1714
+ * constructor, including getters and setters for the `@Prop` and `@State`
1715
+ * decorators, callbacks for when attributes change, and so on.
1716
+ *
1717
+ * @param Cstr the constructor for a component that we need to process
1718
+ * @param cmpMeta metadata collected previously about the component
1719
+ * @param flags a number used to store a series of bit flags
1720
+ * @returns a reference to the same constructor passed in (but now mutated)
1721
+ */
1162
1722
  const proxyComponent = (Cstr, cmpMeta, flags) => {
1163
1723
  if (cmpMeta.$members$) {
1724
+ if (Cstr.watchers) {
1725
+ cmpMeta.$watchers$ = Cstr.watchers;
1726
+ }
1164
1727
  // It's better to have a const than two Object.entries()
1165
1728
  const members = Object.entries(cmpMeta.$members$);
1166
1729
  const prototype = Cstr.prototype;
1167
1730
  members.map(([memberName, [memberFlags]]) => {
1168
- if ((memberFlags & 31 /* Prop */ ||
1169
- ((flags & 2 /* proxyState */) && memberFlags & 32 /* State */))) {
1731
+ if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
1732
+ ((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
1170
1733
  // proxyComponent - prop
1171
1734
  Object.defineProperty(prototype, memberName, {
1172
1735
  get() {
@@ -1182,7 +1745,7 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1182
1745
  });
1183
1746
  }
1184
1747
  });
1185
- if ((flags & 1 /* isElementConstructor */)) {
1748
+ if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
1186
1749
  const attrNameToPropName = new Map();
1187
1750
  prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
1188
1751
  plt.jmp(() => {
@@ -1238,10 +1801,13 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1238
1801
  // create an array of attributes to observe
1239
1802
  // and also create a map of html attribute name to js property name
1240
1803
  Cstr.observedAttributes = members
1241
- .filter(([_, m]) => m[0] & 15 /* HasAttribute */) // filter to only keep props that should match attributes
1804
+ .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */) // filter to only keep props that should match attributes
1242
1805
  .map(([propName, m]) => {
1243
1806
  const attrName = m[1] || propName;
1244
1807
  attrNameToPropName.set(attrName, propName);
1808
+ if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
1809
+ cmpMeta.$attrsToReflect$.push([propName, attrName]);
1810
+ }
1245
1811
  return attrName;
1246
1812
  });
1247
1813
  }
@@ -1250,10 +1816,10 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1250
1816
  };
1251
1817
  const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
1252
1818
  // initializeComponent
1253
- if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1819
+ if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
1254
1820
  {
1255
1821
  // we haven't initialized this element yet
1256
- hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1822
+ hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
1257
1823
  // lazy loaded components
1258
1824
  // request the component's implementation to be
1259
1825
  // wired up with the host element
@@ -1265,7 +1831,13 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
1265
1831
  endLoad();
1266
1832
  }
1267
1833
  if (!Cstr.isProxied) {
1268
- proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
1834
+ // we've never proxied this Constructor before
1835
+ // let's add the getters/setters to its prototype before
1836
+ // the first time we create an instance of the implementation
1837
+ {
1838
+ cmpMeta.$watchers$ = Cstr.watchers;
1839
+ }
1840
+ proxyComponent(Cstr, cmpMeta, 2 /* PROXY_FLAGS.proxyState */);
1269
1841
  Cstr.isProxied = true;
1270
1842
  }
1271
1843
  const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
@@ -1273,7 +1845,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
1273
1845
  // but let's keep track of when we start and stop
1274
1846
  // so that the getters/setters don't incorrectly step on data
1275
1847
  {
1276
- hostRef.$flags$ |= 8 /* isConstructingInstance */;
1848
+ hostRef.$flags$ |= 8 /* HOST_FLAGS.isConstructingInstance */;
1277
1849
  }
1278
1850
  // construct the lazy-loaded component implementation
1279
1851
  // passing the hostRef is very important during
@@ -1286,7 +1858,10 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
1286
1858
  consoleError(e);
1287
1859
  }
1288
1860
  {
1289
- hostRef.$flags$ &= ~8 /* isConstructingInstance */;
1861
+ hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
1862
+ }
1863
+ {
1864
+ hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */;
1290
1865
  }
1291
1866
  endNewInstance();
1292
1867
  }
@@ -1296,7 +1871,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
1296
1871
  const scopeId = getScopeId(cmpMeta);
1297
1872
  if (!styles.has(scopeId)) {
1298
1873
  const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
1299
- registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
1874
+ registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */));
1300
1875
  endRegisterStyles();
1301
1876
  }
1302
1877
  }
@@ -1318,19 +1893,31 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
1318
1893
  }
1319
1894
  };
1320
1895
  const connectedCallback = (elm) => {
1321
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1896
+ if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1322
1897
  const hostRef = getHostRef(elm);
1323
1898
  const cmpMeta = hostRef.$cmpMeta$;
1324
1899
  const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
1325
- if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
1900
+ if (!(hostRef.$flags$ & 1 /* HOST_FLAGS.hasConnected */)) {
1326
1901
  // first time this component has connected
1327
- hostRef.$flags$ |= 1 /* hasConnected */;
1902
+ hostRef.$flags$ |= 1 /* HOST_FLAGS.hasConnected */;
1903
+ let hostId;
1328
1904
  {
1905
+ hostId = elm.getAttribute(HYDRATE_ID);
1906
+ if (hostId) {
1907
+ if (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
1908
+ const scopeId = addStyle(elm.shadowRoot, cmpMeta);
1909
+ elm.classList.remove(scopeId + '-h', scopeId + '-s');
1910
+ }
1911
+ initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
1912
+ }
1913
+ }
1914
+ if (!hostId) {
1329
1915
  // initUpdate
1330
1916
  // if the slot polyfill is required we'll need to put some nodes
1331
1917
  // in here to act as original content anchors as we move nodes around
1332
1918
  // host element has been connected to the DOM
1333
- if ((cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */))) {
1919
+ if ((// TODO(STENCIL-662): Remove code related to deprecated shadowDomShim field
1920
+ cmpMeta.$flags$ & (4 /* CMP_FLAGS.hasSlotRelocation */ | 8 /* CMP_FLAGS.needsShadowDomShim */))) {
1334
1921
  setContentReference(elm);
1335
1922
  }
1336
1923
  }
@@ -1341,7 +1928,10 @@ const connectedCallback = (elm) => {
1341
1928
  while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) {
1342
1929
  // climb up the ancestors looking for the first
1343
1930
  // component that hasn't finished its lifecycle update yet
1344
- if (ancestorComponent['s-p']) {
1931
+ if ((ancestorComponent.nodeType === 1 /* NODE_TYPE.ElementNode */ &&
1932
+ ancestorComponent.hasAttribute('s-id') &&
1933
+ ancestorComponent['s-p']) ||
1934
+ ancestorComponent['s-p']) {
1345
1935
  // we found this components first ancestor component
1346
1936
  // keep a reference to this component's ancestor component
1347
1937
  attachToAncestor(hostRef, (hostRef.$ancestorComponent$ = ancestorComponent));
@@ -1353,7 +1943,7 @@ const connectedCallback = (elm) => {
1353
1943
  // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1354
1944
  if (cmpMeta.$members$) {
1355
1945
  Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1356
- if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
1946
+ if (memberFlags & 31 /* MEMBER_FLAGS.Prop */ && elm.hasOwnProperty(memberName)) {
1357
1947
  const value = elm[memberName];
1358
1948
  delete elm[memberName];
1359
1949
  elm[memberName] = value;
@@ -1385,17 +1975,22 @@ const setContentReference = (elm) => {
1385
1975
  elm.insertBefore(contentRefElm, elm.firstChild);
1386
1976
  };
1387
1977
  const disconnectedCallback = (elm) => {
1388
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1978
+ if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1389
1979
  const hostRef = getHostRef(elm);
1980
+ const instance = hostRef.$lazyInstance$ ;
1390
1981
  {
1391
1982
  if (hostRef.$rmListeners$) {
1392
1983
  hostRef.$rmListeners$.map((rmListener) => rmListener());
1393
1984
  hostRef.$rmListeners$ = undefined;
1394
1985
  }
1395
1986
  }
1987
+ {
1988
+ safeCall(instance, 'disconnectedCallback');
1989
+ }
1396
1990
  }
1397
1991
  };
1398
1992
  const bootstrapLazy = (lazyBundles, options = {}) => {
1993
+ var _a;
1399
1994
  const endBootstrap = createTime();
1400
1995
  const cmpTags = [];
1401
1996
  const exclude = options.exclude || [];
@@ -1404,10 +1999,22 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1404
1999
  const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
1405
2000
  const visibilityStyle = /*@__PURE__*/ doc.createElement('style');
1406
2001
  const deferredConnectedCallbacks = [];
2002
+ const styles = /*@__PURE__*/ doc.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
1407
2003
  let appLoadFallback;
1408
2004
  let isBootstrapping = true;
2005
+ let i = 0;
1409
2006
  Object.assign(plt, options);
1410
2007
  plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
2008
+ {
2009
+ // If the app is already hydrated there is not point to disable the
2010
+ // async queue. This will improve the first input delay
2011
+ plt.$flags$ |= 2 /* PLATFORM_FLAGS.appLoaded */;
2012
+ }
2013
+ {
2014
+ for (; i < styles.length; i++) {
2015
+ registerStyle(styles[i].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles[i].innerHTML), true);
2016
+ }
2017
+ }
1411
2018
  lazyBundles.map((lazyBundle) => {
1412
2019
  lazyBundle[1].map((compactMeta) => {
1413
2020
  const cmpMeta = {
@@ -1422,6 +2029,12 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1422
2029
  {
1423
2030
  cmpMeta.$listeners$ = compactMeta[3];
1424
2031
  }
2032
+ {
2033
+ cmpMeta.$attrsToReflect$ = [];
2034
+ }
2035
+ {
2036
+ cmpMeta.$watchers$ = {};
2037
+ }
1425
2038
  const tagName = cmpMeta.$tagName$;
1426
2039
  const HostElement = class extends HTMLElement {
1427
2040
  // StencilLazyHost
@@ -1430,7 +2043,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1430
2043
  super(self);
1431
2044
  self = this;
1432
2045
  registerHost(self, cmpMeta);
1433
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
2046
+ if (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
1434
2047
  // this component is using shadow dom
1435
2048
  // and this browser supports shadow dom
1436
2049
  // add the read-only property "shadowRoot" to the host element
@@ -1465,13 +2078,18 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1465
2078
  cmpMeta.$lazyBundleId$ = lazyBundle[0];
1466
2079
  if (!exclude.includes(tagName) && !customElements.get(tagName)) {
1467
2080
  cmpTags.push(tagName);
1468
- customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
2081
+ customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* PROXY_FLAGS.isElementConstructor */));
1469
2082
  }
1470
2083
  });
1471
2084
  });
1472
2085
  {
1473
2086
  visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
1474
2087
  visibilityStyle.setAttribute('data-styles', '');
2088
+ // Apply CSP nonce to the style tag if it exists
2089
+ const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
2090
+ if (nonce != null) {
2091
+ visibilityStyle.setAttribute('nonce', nonce);
2092
+ }
1475
2093
  head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
1476
2094
  }
1477
2095
  // Process deferred connectedCallbacks now all components have been registered
@@ -1487,7 +2105,52 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1487
2105
  // Fallback appLoad event
1488
2106
  endBootstrap();
1489
2107
  };
1490
- const hostRefs = new WeakMap();
2108
+ const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
2109
+ if (listeners) {
2110
+ listeners.map(([flags, name, method]) => {
2111
+ const target = getHostListenerTarget(elm, flags) ;
2112
+ const handler = hostListenerProxy(hostRef, method);
2113
+ const opts = hostListenerOpts(flags);
2114
+ plt.ael(target, name, handler, opts);
2115
+ (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
2116
+ });
2117
+ }
2118
+ };
2119
+ const hostListenerProxy = (hostRef, methodName) => (ev) => {
2120
+ try {
2121
+ {
2122
+ if (hostRef.$flags$ & 256 /* HOST_FLAGS.isListenReady */) {
2123
+ // instance is ready, let's call it's member method for this event
2124
+ hostRef.$lazyInstance$[methodName](ev);
2125
+ }
2126
+ else {
2127
+ (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
2128
+ }
2129
+ }
2130
+ }
2131
+ catch (e) {
2132
+ consoleError(e);
2133
+ }
2134
+ };
2135
+ const getHostListenerTarget = (elm, flags) => {
2136
+ if (flags & 4 /* LISTENER_FLAGS.TargetDocument */)
2137
+ return doc;
2138
+ if (flags & 8 /* LISTENER_FLAGS.TargetWindow */)
2139
+ return win;
2140
+ if (flags & 16 /* LISTENER_FLAGS.TargetBody */)
2141
+ return doc.body;
2142
+ return elm;
2143
+ };
2144
+ // prettier-ignore
2145
+ const hostListenerOpts = (flags) => (flags & 2 /* LISTENER_FLAGS.Capture */) !== 0;
2146
+ /**
2147
+ * Assigns the given value to the nonce property on the runtime platform object.
2148
+ * During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
2149
+ * @param nonce The value to be assigned to the platform nonce property.
2150
+ * @returns void
2151
+ */
2152
+ const setNonce = (nonce) => (plt.$nonce$ = nonce);
2153
+ const hostRefs = /*@__PURE__*/ new WeakMap();
1491
2154
  const getHostRef = (ref) => hostRefs.get(ref);
1492
2155
  const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
1493
2156
  const registerHost = (elm, cmpMeta) => {
@@ -1516,7 +2179,184 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1516
2179
  if (module) {
1517
2180
  return module[exportName];
1518
2181
  }
1519
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
2182
+
2183
+ if (!hmrVersionId || !BUILD.hotModuleReplacement) {
2184
+ const processMod = importedModule => {
2185
+ cmpModules.set(bundleId, importedModule);
2186
+ return importedModule[exportName];
2187
+ }
2188
+ switch(bundleId) {
2189
+
2190
+ case 'p-button_3.cjs':
2191
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2192
+ /* webpackMode: "lazy" */
2193
+ './p-button_3.cjs.entry.js')); }).then(processMod, consoleError);
2194
+ case 'p-accordion.cjs':
2195
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2196
+ /* webpackMode: "lazy" */
2197
+ './p-accordion.cjs.entry.js')); }).then(processMod, consoleError);
2198
+ case 'p-attachment.cjs':
2199
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2200
+ /* webpackMode: "lazy" */
2201
+ './p-attachment.cjs.entry.js')); }).then(processMod, consoleError);
2202
+ case 'p-avatar.cjs':
2203
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2204
+ /* webpackMode: "lazy" */
2205
+ './p-avatar.cjs.entry.js')); }).then(processMod, consoleError);
2206
+ case 'p-avatar-group.cjs':
2207
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2208
+ /* webpackMode: "lazy" */
2209
+ './p-avatar-group.cjs.entry.js')); }).then(processMod, consoleError);
2210
+ case 'p-card-body.cjs':
2211
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2212
+ /* webpackMode: "lazy" */
2213
+ './p-card-body.cjs.entry.js')); }).then(processMod, consoleError);
2214
+ case 'p-card-container.cjs':
2215
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2216
+ /* webpackMode: "lazy" */
2217
+ './p-card-container.cjs.entry.js')); }).then(processMod, consoleError);
2218
+ case 'p-card-header.cjs':
2219
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2220
+ /* webpackMode: "lazy" */
2221
+ './p-card-header.cjs.entry.js')); }).then(processMod, consoleError);
2222
+ case 'p-content-slider.cjs':
2223
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2224
+ /* webpackMode: "lazy" */
2225
+ './p-content-slider.cjs.entry.js')); }).then(processMod, consoleError);
2226
+ case 'p-datepicker.cjs':
2227
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2228
+ /* webpackMode: "lazy" */
2229
+ './p-datepicker.cjs.entry.js')); }).then(processMod, consoleError);
2230
+ case 'p-drawer.cjs':
2231
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2232
+ /* webpackMode: "lazy" */
2233
+ './p-drawer.cjs.entry.js')); }).then(processMod, consoleError);
2234
+ case 'p-info-panel.cjs':
2235
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2236
+ /* webpackMode: "lazy" */
2237
+ './p-info-panel.cjs.entry.js')); }).then(processMod, consoleError);
2238
+ case 'p-layout.cjs':
2239
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2240
+ /* webpackMode: "lazy" */
2241
+ './p-layout.cjs.entry.js')); }).then(processMod, consoleError);
2242
+ case 'p-modal.cjs':
2243
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2244
+ /* webpackMode: "lazy" */
2245
+ './p-modal.cjs.entry.js')); }).then(processMod, consoleError);
2246
+ case 'p-navbar.cjs':
2247
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2248
+ /* webpackMode: "lazy" */
2249
+ './p-navbar.cjs.entry.js')); }).then(processMod, consoleError);
2250
+ case 'p-navigation-item.cjs':
2251
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2252
+ /* webpackMode: "lazy" */
2253
+ './p-navigation-item.cjs.entry.js')); }).then(processMod, consoleError);
2254
+ case 'p-profile.cjs':
2255
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2256
+ /* webpackMode: "lazy" */
2257
+ './p-profile.cjs.entry.js')); }).then(processMod, consoleError);
2258
+ case 'p-select.cjs':
2259
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2260
+ /* webpackMode: "lazy" */
2261
+ './p-select.cjs.entry.js')); }).then(processMod, consoleError);
2262
+ case 'p-status.cjs':
2263
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2264
+ /* webpackMode: "lazy" */
2265
+ './p-status.cjs.entry.js')); }).then(processMod, consoleError);
2266
+ case 'p-stepper.cjs':
2267
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2268
+ /* webpackMode: "lazy" */
2269
+ './p-stepper.cjs.entry.js')); }).then(processMod, consoleError);
2270
+ case 'p-stepper-item.cjs':
2271
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2272
+ /* webpackMode: "lazy" */
2273
+ './p-stepper-item.cjs.entry.js')); }).then(processMod, consoleError);
2274
+ case 'p-tab-group.cjs':
2275
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2276
+ /* webpackMode: "lazy" */
2277
+ './p-tab-group.cjs.entry.js')); }).then(processMod, consoleError);
2278
+ case 'p-tab-item.cjs':
2279
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2280
+ /* webpackMode: "lazy" */
2281
+ './p-tab-item.cjs.entry.js')); }).then(processMod, consoleError);
2282
+ case 'p-table.cjs':
2283
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2284
+ /* webpackMode: "lazy" */
2285
+ './p-table.cjs.entry.js')); }).then(processMod, consoleError);
2286
+ case 'p-table-column.cjs':
2287
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2288
+ /* webpackMode: "lazy" */
2289
+ './p-table-column.cjs.entry.js')); }).then(processMod, consoleError);
2290
+ case 'p-toast.cjs':
2291
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2292
+ /* webpackMode: "lazy" */
2293
+ './p-toast.cjs.entry.js')); }).then(processMod, consoleError);
2294
+ case 'p-toast-container.cjs':
2295
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2296
+ /* webpackMode: "lazy" */
2297
+ './p-toast-container.cjs.entry.js')); }).then(processMod, consoleError);
2298
+ case 'p-calendar.cjs':
2299
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2300
+ /* webpackMode: "lazy" */
2301
+ './p-calendar.cjs.entry.js')); }).then(processMod, consoleError);
2302
+ case 'p-counter.cjs':
2303
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2304
+ /* webpackMode: "lazy" */
2305
+ './p-counter.cjs.entry.js')); }).then(processMod, consoleError);
2306
+ case 'p-drawer-body_3.cjs':
2307
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2308
+ /* webpackMode: "lazy" */
2309
+ './p-drawer-body_3.cjs.entry.js')); }).then(processMod, consoleError);
2310
+ case 'p-illustration_6.cjs':
2311
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2312
+ /* webpackMode: "lazy" */
2313
+ './p-illustration_6.cjs.entry.js')); }).then(processMod, consoleError);
2314
+ case 'p-modal-body_4.cjs':
2315
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2316
+ /* webpackMode: "lazy" */
2317
+ './p-modal-body_4.cjs.entry.js')); }).then(processMod, consoleError);
2318
+ case 'p-slider-indicator.cjs':
2319
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2320
+ /* webpackMode: "lazy" */
2321
+ './p-slider-indicator.cjs.entry.js')); }).then(processMod, consoleError);
2322
+ case 'p-stepper-line.cjs':
2323
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2324
+ /* webpackMode: "lazy" */
2325
+ './p-stepper-line.cjs.entry.js')); }).then(processMod, consoleError);
2326
+ case 'p-label_3.cjs':
2327
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2328
+ /* webpackMode: "lazy" */
2329
+ './p-label_3.cjs.entry.js')); }).then(processMod, consoleError);
2330
+ case 'p-page-size-select_3.cjs':
2331
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2332
+ /* webpackMode: "lazy" */
2333
+ './p-page-size-select_3.cjs.entry.js')); }).then(processMod, consoleError);
2334
+ case 'p-backdrop.cjs':
2335
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2336
+ /* webpackMode: "lazy" */
2337
+ './p-backdrop.cjs.entry.js')); }).then(processMod, consoleError);
2338
+ case 'p-dropdown_2.cjs':
2339
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2340
+ /* webpackMode: "lazy" */
2341
+ './p-dropdown_2.cjs.entry.js')); }).then(processMod, consoleError);
2342
+ case 'p-helper_3.cjs':
2343
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2344
+ /* webpackMode: "lazy" */
2345
+ './p-helper_3.cjs.entry.js')); }).then(processMod, consoleError);
2346
+ case 'p-divider.cjs':
2347
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2348
+ /* webpackMode: "lazy" */
2349
+ './p-divider.cjs.entry.js')); }).then(processMod, consoleError);
2350
+ case 'p-dropdown-menu-container.cjs':
2351
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2352
+ /* webpackMode: "lazy" */
2353
+ './p-dropdown-menu-container.cjs.entry.js')); }).then(processMod, consoleError);
2354
+ case 'p-tooltip.cjs':
2355
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2356
+ /* webpackMode: "lazy" */
2357
+ './p-tooltip.cjs.entry.js')); }).then(processMod, consoleError);
2358
+ }
2359
+ }
1520
2360
  return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
1521
2361
  /* @vite-ignore */
1522
2362
  /* webpackInclude: /\.entry\.js$/ */
@@ -1529,14 +2369,38 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1529
2369
  return importedModule[exportName];
1530
2370
  }, consoleError);
1531
2371
  };
1532
- const styles = new Map();
2372
+ const styles = /*@__PURE__*/ new Map();
2373
+ const win = typeof window !== 'undefined' ? window : {};
2374
+ const doc = win.document || { head: {} };
2375
+ const plt = {
2376
+ $flags$: 0,
2377
+ $resourcesUrl$: '',
2378
+ jmp: (h) => h(),
2379
+ raf: (h) => requestAnimationFrame(h),
2380
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
2381
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
2382
+ ce: (eventName, opts) => new CustomEvent(eventName, opts),
2383
+ };
2384
+ const supportsShadow =
2385
+ // TODO(STENCIL-662): Remove code related to deprecated shadowDomShim field
2386
+ true;
2387
+ const promiseResolve = (v) => Promise.resolve(v);
2388
+ const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
2389
+ try {
2390
+ new CSSStyleSheet();
2391
+ return typeof new CSSStyleSheet().replaceSync === 'function';
2392
+ }
2393
+ catch (e) { }
2394
+ return false;
2395
+ })()
2396
+ ;
1533
2397
  const queueDomReads = [];
1534
2398
  const queueDomWrites = [];
1535
2399
  const queueTask = (queue, write) => (cb) => {
1536
2400
  queue.push(cb);
1537
2401
  if (!queuePending) {
1538
2402
  queuePending = true;
1539
- if (write && plt.$flags$ & 4 /* queueSync */) {
2403
+ if (write && plt.$flags$ & 4 /* PLATFORM_FLAGS.queueSync */) {
1540
2404
  nextTick(flush);
1541
2405
  }
1542
2406
  else {
@@ -1580,3 +2444,6 @@ exports.getElement = getElement;
1580
2444
  exports.h = h;
1581
2445
  exports.promiseResolve = promiseResolve;
1582
2446
  exports.registerInstance = registerInstance;
2447
+ exports.setNonce = setNonce;
2448
+
2449
+ //# sourceMappingURL=index-13ea09e0.js.map