@paperless/core 0.1.0-alpha.127 → 0.1.0-alpha.129

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 (341) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/assets/i18n/page-size-select.i18n.en.json +4 -0
  3. package/dist/assets/i18n/page-size-select.i18n.nl.json +4 -0
  4. package/dist/assets/i18n/table-footer.i18n.en.json +3 -0
  5. package/dist/assets/i18n/table-footer.i18n.nl.json +3 -0
  6. package/dist/assets/i18n/table-header.i18n.en.json +6 -0
  7. package/dist/assets/i18n/table-header.i18n.nl.json +6 -0
  8. package/dist/assets/icons/camera.svg +10 -0
  9. package/dist/build/index.esm.js +1 -0
  10. package/dist/build/p-0436439c.entry.js +1 -0
  11. package/dist/build/{p-e20a1842.entry.js → p-04b7fb67.entry.js} +1 -1
  12. package/dist/build/{p-ec2a5f95.entry.js → p-08ff155d.entry.js} +1 -1
  13. package/dist/build/p-09ea2a1a.js +1 -0
  14. package/dist/build/{p-c27046e6.entry.js → p-0ca1b35a.entry.js} +1 -1
  15. package/dist/build/p-0cf8e23a.entry.js +1 -0
  16. package/dist/build/p-11275959.entry.js +1 -0
  17. package/dist/{paperless/p-a5ebbd0c.entry.js → build/p-1d160328.entry.js} +1 -1
  18. package/dist/build/p-52f0e66c.entry.js +1 -0
  19. package/dist/build/p-5b893ad4.entry.js +1 -0
  20. package/dist/{paperless/p-41b72ca0.entry.js → build/p-5d768271.entry.js} +1 -1
  21. package/dist/build/{p-d32f2578.entry.js → p-5f233f4b.entry.js} +1 -1
  22. package/dist/build/p-6628b145.js +1 -0
  23. package/dist/{paperless/p-f38de980.entry.js → build/p-66b0c60c.entry.js} +1 -1
  24. package/dist/build/{p-8ac8a69d.entry.js → p-677d0647.entry.js} +1 -1
  25. package/dist/build/p-6c60fd3d.js +1 -0
  26. package/dist/{paperless/p-c59d9fc2.entry.js → build/p-721d414a.entry.js} +1 -1
  27. package/dist/build/{p-4336cbbc.entry.js → p-759b427a.entry.js} +1 -1
  28. package/dist/build/{p-bd50db3d.entry.js → p-7febed77.entry.js} +1 -1
  29. package/dist/build/p-8a6728d5.js +1 -0
  30. package/dist/build/{p-8b743795.entry.js → p-954e3737.entry.js} +1 -1
  31. package/dist/build/p-9d0a94fb.entry.js +1 -0
  32. package/dist/build/p-9d9dcf0c.entry.js +1 -0
  33. package/dist/build/p-a3902b42.entry.js +1 -0
  34. package/dist/build/p-a81035d0.js +2 -0
  35. package/dist/build/p-a93693cd.entry.js +1 -0
  36. package/dist/build/{p-42277d1e.entry.js → p-b12f4b10.entry.js} +1 -1
  37. package/dist/{paperless/p-3f6c9d44.entry.js → build/p-b2edfc61.entry.js} +1 -1
  38. package/dist/build/{p-54e0f74b.entry.js → p-b74773de.entry.js} +1 -1
  39. package/dist/{paperless/p-e9e20ac3.entry.js → build/p-cfe0f01b.entry.js} +1 -1
  40. package/dist/{paperless/p-2beaf0e8.entry.js → build/p-d2c6ba5f.entry.js} +1 -1
  41. package/dist/build/{p-f3fda8cd.entry.js → p-e2407e98.entry.js} +1 -1
  42. package/dist/build/p-e56512f0.entry.js +1 -0
  43. package/dist/{paperless/p-b645e414.entry.js → build/p-e633010e.entry.js} +1 -1
  44. package/dist/build/{p-92b6c76c.entry.js → p-ed08c398.entry.js} +1 -1
  45. package/dist/build/{p-1c9fe7e8.entry.js → p-f8fa3f28.entry.js} +1 -1
  46. package/dist/build/{p-c674026d.entry.js → p-f9d3bcb7.entry.js} +1 -1
  47. package/dist/build/paperless.css +101 -0
  48. package/dist/build/paperless.esm.js +1 -1
  49. package/dist/cjs/child-of-e472f812.js +9 -0
  50. package/dist/cjs/constants-a4459ec9.js +7 -0
  51. package/dist/cjs/{index-9d3b51c9.js → index-16bca782.js} +27 -34
  52. package/dist/cjs/index.cjs.js +12 -0
  53. package/dist/cjs/loader.cjs.js +2 -2
  54. package/dist/cjs/localization-791c9a22.js +61 -0
  55. package/dist/cjs/object-get-by-path-6dc21ed5.js +12 -0
  56. package/dist/cjs/p-accordion.cjs.entry.js +1 -1
  57. package/dist/cjs/p-avatar-group.cjs.entry.js +1 -1
  58. package/dist/cjs/p-avatar.cjs.entry.js +1 -1
  59. package/dist/cjs/p-button_3.cjs.entry.js +95 -78
  60. package/dist/cjs/p-card-body.cjs.entry.js +1 -1
  61. package/dist/cjs/p-card-container.cjs.entry.js +1 -1
  62. package/dist/cjs/p-card-header.cjs.entry.js +1 -1
  63. package/dist/cjs/p-content-slider.cjs.entry.js +1 -1
  64. package/dist/cjs/p-counter.cjs.entry.js +1 -1
  65. package/dist/cjs/p-divider.cjs.entry.js +2 -2
  66. package/dist/cjs/p-dropdown-menu-item_4.cjs.entry.js +264 -0
  67. package/dist/cjs/p-dropdown_2.cjs.entry.js +163 -0
  68. package/dist/cjs/p-helper_5.cjs.entry.js +138 -0
  69. package/dist/cjs/p-illustration.cjs.entry.js +1 -1
  70. package/dist/cjs/p-info-panel.cjs.entry.js +1 -1
  71. package/dist/cjs/p-layout.cjs.entry.js +1 -1
  72. package/dist/cjs/p-modal-backdrop_5.cjs.entry.js +1 -1
  73. package/dist/cjs/p-modal.cjs.entry.js +1 -1
  74. package/dist/cjs/p-navbar.cjs.entry.js +1 -1
  75. package/dist/cjs/p-navigation-item.cjs.entry.js +1 -1
  76. package/dist/cjs/p-profile.cjs.entry.js +1 -1
  77. package/dist/cjs/p-slider-indicator.cjs.entry.js +1 -1
  78. package/dist/cjs/p-status.cjs.entry.js +1 -1
  79. package/dist/cjs/p-stepper-item_2.cjs.entry.js +1 -1
  80. package/dist/cjs/p-stepper.cjs.entry.js +1 -1
  81. package/dist/cjs/p-tab-group.cjs.entry.js +1 -1
  82. package/dist/cjs/p-tab-item.cjs.entry.js +1 -1
  83. package/dist/cjs/p-table-body.cjs.entry.js +19 -0
  84. package/dist/cjs/p-table-container_4.cjs.entry.js +1067 -0
  85. package/dist/cjs/p-table-definition.cjs.entry.js +36 -0
  86. package/dist/cjs/p-table.cjs.entry.js +328 -0
  87. package/dist/cjs/p-tooltip.cjs.entry.js +2 -2
  88. package/dist/cjs/paperless.cjs.js +2 -2
  89. package/dist/collection/assets/icons/camera.svg +10 -0
  90. package/dist/collection/collection-manifest.json +9 -1
  91. package/dist/collection/components/atoms/button/button.component.css +19 -7
  92. package/dist/collection/components/atoms/button/button.component.js +29 -5
  93. package/dist/collection/components/atoms/divider/divider.component.css +1 -1
  94. package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.css +2 -2
  95. package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.css +1 -1
  96. package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js +1 -1
  97. package/dist/collection/components/atoms/helper/helper.component.css +1 -1
  98. package/dist/collection/components/atoms/icon/icon.component.css +1 -1
  99. package/dist/collection/components/atoms/icon/icon.component.js +3 -3
  100. package/dist/collection/components/atoms/loader/loader.component.css +1 -1
  101. package/dist/collection/components/atoms/pagination-item/pagination-item.component.css +1 -1
  102. package/dist/collection/components/atoms/segment-container/segment-container.component.css +1 -1
  103. package/dist/collection/components/atoms/segment-item/segment-item.component.css +1 -1
  104. package/dist/collection/components/atoms/segment-item/segment-item.component.js +2 -2
  105. package/dist/collection/components/atoms/status/status.component.js +2 -2
  106. package/dist/collection/components/atoms/table-body/table-body.component.css +3 -0
  107. package/dist/collection/components/atoms/table-body/table-body.component.js +15 -0
  108. package/dist/collection/components/atoms/table-container/table-container.component.css +5 -0
  109. package/dist/collection/components/atoms/table-container/table-container.component.js +15 -0
  110. package/dist/collection/components/atoms/tag/tag.component.css +1 -1
  111. package/dist/collection/components/atoms/tooltip/tooltip.component.css +1 -1
  112. package/dist/collection/components/helpers/table-definition/table-definition.component.js +159 -0
  113. package/dist/collection/components/molecules/dropdown/dropdown.component.css +1 -1
  114. package/dist/collection/components/molecules/dropdown/dropdown.component.js +45 -2
  115. package/dist/collection/components/molecules/input-group/input-group.component.css +72 -1
  116. package/dist/collection/components/molecules/input-group/input-group.component.js +36 -5
  117. package/dist/collection/components/molecules/navigation-item/navigation-item.component.js +1 -1
  118. package/dist/collection/components/molecules/page-size-select/constants.js +2 -0
  119. package/dist/collection/components/molecules/page-size-select/page-size-select.component.js +195 -0
  120. package/dist/collection/components/molecules/pagination/pagination.component.css +1 -1
  121. package/dist/collection/components/molecules/pagination/pagination.component.js +25 -3
  122. package/dist/collection/components/molecules/table-footer/table-footer.component.css +30 -0
  123. package/dist/collection/components/molecules/table-footer/table-footer.component.js +244 -0
  124. package/dist/collection/components/molecules/table-header/table-header.component.css +16 -0
  125. package/dist/collection/components/molecules/table-header/table-header.component.js +368 -0
  126. package/dist/collection/components/molecules/table-row/table-row.component.css +21 -0
  127. package/dist/collection/components/molecules/table-row/table-row.component.js +67 -0
  128. package/dist/collection/components/organisms/table/table.component.css +3 -0
  129. package/dist/collection/components/organisms/table/table.component.js +879 -0
  130. package/dist/collection/index.js +2 -1
  131. package/dist/collection/types/index.js +2 -0
  132. package/dist/collection/{utils/types.js → types/table.js} +0 -0
  133. package/dist/collection/types/tailwind.js +1 -0
  134. package/dist/collection/utils/icons.js +2 -0
  135. package/dist/collection/utils/index.js +5 -0
  136. package/dist/collection/utils/localization.js +56 -0
  137. package/dist/collection/utils/object-get-by-path.js +8 -0
  138. package/dist/components/button.component.js +9 -3
  139. package/dist/components/divider.component.js +1 -1
  140. package/dist/components/dropdown-menu-container.component.js +1 -1
  141. package/dist/components/dropdown-menu-item.component.js +43 -0
  142. package/dist/components/dropdown.component.js +15 -5
  143. package/dist/components/helper.component.js +1 -1
  144. package/dist/components/icon.component.js +13 -1
  145. package/dist/components/index.d.ts +8 -0
  146. package/dist/components/index.js +10 -0
  147. package/dist/components/input-group.component.js +107 -0
  148. package/dist/components/loader.component.js +1 -1
  149. package/dist/components/localization.js +58 -0
  150. package/dist/components/p-dropdown-menu-item.js +1 -41
  151. package/dist/components/p-input-group.js +1 -91
  152. package/dist/components/p-page-size-select.d.ts +11 -0
  153. package/dist/components/p-page-size-select.js +6 -0
  154. package/dist/components/p-pagination.js +1 -195
  155. package/dist/components/p-segment-container.js +1 -27
  156. package/dist/components/p-segment-item.js +1 -49
  157. package/dist/components/p-table-body.d.ts +11 -0
  158. package/dist/components/p-table-body.js +33 -0
  159. package/dist/components/p-table-container.d.ts +11 -0
  160. package/dist/components/p-table-container.js +6 -0
  161. package/dist/components/p-table-definition.d.ts +11 -0
  162. package/dist/components/p-table-definition.js +57 -0
  163. package/dist/components/p-table-footer.d.ts +11 -0
  164. package/dist/components/p-table-footer.js +6 -0
  165. package/dist/components/p-table-header.d.ts +11 -0
  166. package/dist/components/p-table-header.js +6 -0
  167. package/dist/components/p-table-row.d.ts +11 -0
  168. package/dist/components/p-table-row.js +6 -0
  169. package/dist/components/p-table.d.ts +11 -0
  170. package/dist/components/p-table.js +492 -0
  171. package/dist/components/p-tag.js +1 -39
  172. package/dist/components/page-size-select.component.js +118 -0
  173. package/dist/components/pagination-item.component.js +1 -1
  174. package/dist/components/pagination.component.js +202 -0
  175. package/dist/components/segment-container.component.js +29 -0
  176. package/dist/components/segment-item.component.js +51 -0
  177. package/dist/components/table-container.component.js +30 -0
  178. package/dist/components/table-footer.component.js +139 -0
  179. package/dist/components/table-header.component.js +1050 -0
  180. package/dist/components/table-row.component.js +49 -0
  181. package/dist/components/tag.component.js +41 -0
  182. package/dist/components/tooltip.component.js +1 -1
  183. package/dist/esm/child-of-90a8c4b5.js +7 -0
  184. package/dist/esm/constants-826f9460.js +4 -0
  185. package/dist/esm/{index-9062156b.js → index-1ac329a8.js} +27 -34
  186. package/dist/esm/index.js +3 -1
  187. package/dist/esm/loader.js +2 -2
  188. package/dist/esm/localization-550c043d.js +58 -0
  189. package/dist/esm/object-get-by-path-d6427a61.js +10 -0
  190. package/dist/esm/p-accordion.entry.js +1 -1
  191. package/dist/esm/p-avatar-group.entry.js +1 -1
  192. package/dist/esm/p-avatar.entry.js +1 -1
  193. package/dist/esm/p-button_3.entry.js +95 -78
  194. package/dist/esm/p-card-body.entry.js +1 -1
  195. package/dist/esm/p-card-container.entry.js +1 -1
  196. package/dist/esm/p-card-header.entry.js +1 -1
  197. package/dist/esm/p-content-slider.entry.js +1 -1
  198. package/dist/esm/p-counter.entry.js +1 -1
  199. package/dist/esm/p-divider.entry.js +2 -2
  200. package/dist/esm/p-dropdown-menu-item_4.entry.js +257 -0
  201. package/dist/esm/p-dropdown_2.entry.js +158 -0
  202. package/dist/esm/p-helper_5.entry.js +130 -0
  203. package/dist/esm/p-illustration.entry.js +1 -1
  204. package/dist/esm/p-info-panel.entry.js +1 -1
  205. package/dist/esm/p-layout.entry.js +1 -1
  206. package/dist/esm/p-modal-backdrop_5.entry.js +1 -1
  207. package/dist/esm/p-modal.entry.js +1 -1
  208. package/dist/esm/p-navbar.entry.js +1 -1
  209. package/dist/esm/p-navigation-item.entry.js +1 -1
  210. package/dist/esm/p-profile.entry.js +1 -1
  211. package/dist/esm/p-slider-indicator.entry.js +1 -1
  212. package/dist/esm/p-status.entry.js +1 -1
  213. package/dist/esm/p-stepper-item_2.entry.js +1 -1
  214. package/dist/esm/p-stepper.entry.js +1 -1
  215. package/dist/esm/p-tab-group.entry.js +1 -1
  216. package/dist/esm/p-tab-item.entry.js +1 -1
  217. package/dist/esm/p-table-body.entry.js +15 -0
  218. package/dist/esm/p-table-container_4.entry.js +1060 -0
  219. package/dist/esm/p-table-definition.entry.js +32 -0
  220. package/dist/esm/p-table.entry.js +324 -0
  221. package/dist/esm/p-tooltip.entry.js +2 -2
  222. package/dist/esm/paperless.js +2 -2
  223. package/dist/index.html +1 -1
  224. package/dist/paperless/index.esm.js +1 -0
  225. package/dist/paperless/p-0436439c.entry.js +1 -0
  226. package/dist/paperless/{p-e20a1842.entry.js → p-04b7fb67.entry.js} +1 -1
  227. package/dist/paperless/{p-ec2a5f95.entry.js → p-08ff155d.entry.js} +1 -1
  228. package/dist/paperless/p-09ea2a1a.js +1 -0
  229. package/dist/paperless/{p-c27046e6.entry.js → p-0ca1b35a.entry.js} +1 -1
  230. package/dist/paperless/p-0cf8e23a.entry.js +1 -0
  231. package/dist/paperless/p-11275959.entry.js +1 -0
  232. package/dist/{build/p-a5ebbd0c.entry.js → paperless/p-1d160328.entry.js} +1 -1
  233. package/dist/paperless/p-52f0e66c.entry.js +1 -0
  234. package/dist/paperless/p-5b893ad4.entry.js +1 -0
  235. package/dist/{build/p-41b72ca0.entry.js → paperless/p-5d768271.entry.js} +1 -1
  236. package/dist/paperless/{p-d32f2578.entry.js → p-5f233f4b.entry.js} +1 -1
  237. package/dist/paperless/p-6628b145.js +1 -0
  238. package/dist/{build/p-f38de980.entry.js → paperless/p-66b0c60c.entry.js} +1 -1
  239. package/dist/paperless/{p-8ac8a69d.entry.js → p-677d0647.entry.js} +1 -1
  240. package/dist/paperless/p-6c60fd3d.js +1 -0
  241. package/dist/{build/p-c59d9fc2.entry.js → paperless/p-721d414a.entry.js} +1 -1
  242. package/dist/paperless/{p-4336cbbc.entry.js → p-759b427a.entry.js} +1 -1
  243. package/dist/paperless/{p-bd50db3d.entry.js → p-7febed77.entry.js} +1 -1
  244. package/dist/paperless/p-8a6728d5.js +1 -0
  245. package/dist/paperless/{p-8b743795.entry.js → p-954e3737.entry.js} +1 -1
  246. package/dist/paperless/p-9d0a94fb.entry.js +1 -0
  247. package/dist/paperless/p-9d9dcf0c.entry.js +1 -0
  248. package/dist/paperless/p-a3902b42.entry.js +1 -0
  249. package/dist/paperless/p-a81035d0.js +2 -0
  250. package/dist/paperless/p-a93693cd.entry.js +1 -0
  251. package/dist/paperless/{p-42277d1e.entry.js → p-b12f4b10.entry.js} +1 -1
  252. package/dist/{build/p-3f6c9d44.entry.js → paperless/p-b2edfc61.entry.js} +1 -1
  253. package/dist/paperless/{p-54e0f74b.entry.js → p-b74773de.entry.js} +1 -1
  254. package/dist/{build/p-e9e20ac3.entry.js → paperless/p-cfe0f01b.entry.js} +1 -1
  255. package/dist/{build/p-2beaf0e8.entry.js → paperless/p-d2c6ba5f.entry.js} +1 -1
  256. package/dist/paperless/{p-f3fda8cd.entry.js → p-e2407e98.entry.js} +1 -1
  257. package/dist/paperless/p-e56512f0.entry.js +1 -0
  258. package/dist/{build/p-b645e414.entry.js → paperless/p-e633010e.entry.js} +1 -1
  259. package/dist/paperless/{p-92b6c76c.entry.js → p-ed08c398.entry.js} +1 -1
  260. package/dist/paperless/{p-1c9fe7e8.entry.js → p-f8fa3f28.entry.js} +1 -1
  261. package/dist/paperless/{p-c674026d.entry.js → p-f9d3bcb7.entry.js} +1 -1
  262. package/dist/paperless/paperless.css +214 -27
  263. package/dist/paperless/paperless.esm.js +1 -1
  264. package/dist/sw.js +1 -1
  265. package/dist/sw.js.map +1 -1
  266. package/dist/types/components/atoms/button/button.component.d.ts +9 -1
  267. package/dist/types/components/atoms/icon/icon.component.d.ts +1 -1
  268. package/dist/types/components/atoms/segment-item/segment-item.component.d.ts +1 -1
  269. package/dist/types/components/atoms/status/status.component.d.ts +1 -1
  270. package/dist/types/components/atoms/table-body/table-body.component.d.ts +3 -0
  271. package/dist/types/components/atoms/table-container/table-container.component.d.ts +3 -0
  272. package/dist/types/components/helpers/table-definition/table-definition.component.d.ts +48 -0
  273. package/dist/types/components/molecules/dropdown/dropdown.component.d.ts +8 -0
  274. package/dist/types/components/molecules/input-group/input-group.component.d.ts +7 -1
  275. package/dist/types/components/molecules/page-size-select/constants.d.ts +2 -0
  276. package/dist/types/components/molecules/page-size-select/page-size-select.component.d.ts +44 -0
  277. package/dist/types/components/molecules/pagination/pagination.component.d.ts +7 -0
  278. package/dist/types/components/molecules/table-footer/table-footer.component.d.ts +55 -0
  279. package/dist/types/components/molecules/table-header/table-header.component.d.ts +80 -0
  280. package/dist/types/components/molecules/table-row/table-row.component.d.ts +11 -0
  281. package/dist/types/components/organisms/table/table.component.d.ts +162 -0
  282. package/dist/types/components.d.ts +677 -1
  283. package/dist/types/index.d.ts +2 -0
  284. package/dist/types/types/index.d.ts +2 -0
  285. package/dist/types/types/table.d.ts +5 -0
  286. package/dist/types/{utils/types.d.ts → types/tailwind.d.ts} +0 -0
  287. package/dist/types/utils/icons.d.ts +1 -0
  288. package/dist/types/utils/index.d.ts +5 -0
  289. package/dist/types/utils/localization.d.ts +2 -0
  290. package/dist/types/utils/object-get-by-path.d.ts +1 -0
  291. package/package.json +4 -4
  292. package/dist/build/p-4deee897.entry.js +0 -1
  293. package/dist/build/p-58ce5668.entry.js +0 -1
  294. package/dist/build/p-6088647a.entry.js +0 -1
  295. package/dist/build/p-6835a9e3.entry.js +0 -1
  296. package/dist/build/p-705ab6e5.entry.js +0 -1
  297. package/dist/build/p-79d3258f.entry.js +0 -1
  298. package/dist/build/p-801d05b6.entry.js +0 -1
  299. package/dist/build/p-829c4101.entry.js +0 -1
  300. package/dist/build/p-938f52ee.entry.js +0 -1
  301. package/dist/build/p-9d98d0d9.entry.js +0 -1
  302. package/dist/build/p-a9e333cc.entry.js +0 -1
  303. package/dist/build/p-bc7e8cc4.js +0 -2
  304. package/dist/build/p-e2a98d53.entry.js +0 -1
  305. package/dist/build/p-e934ef94.entry.js +0 -1
  306. package/dist/cjs/p-dropdown-menu-container.cjs.entry.js +0 -19
  307. package/dist/cjs/p-dropdown-menu-item.cjs.entry.js +0 -23
  308. package/dist/cjs/p-dropdown.cjs.entry.js +0 -147
  309. package/dist/cjs/p-helper.cjs.entry.js +0 -23
  310. package/dist/cjs/p-input-group.cjs.entry.js +0 -51
  311. package/dist/cjs/p-pagination-item.cjs.entry.js +0 -23
  312. package/dist/cjs/p-pagination.cjs.entry.js +0 -171
  313. package/dist/cjs/p-segment-container.cjs.entry.js +0 -19
  314. package/dist/cjs/p-segment-item.cjs.entry.js +0 -29
  315. package/dist/cjs/p-tag.cjs.entry.js +0 -27
  316. package/dist/collection/utils/utils.js +0 -3
  317. package/dist/esm/p-dropdown-menu-container.entry.js +0 -15
  318. package/dist/esm/p-dropdown-menu-item.entry.js +0 -19
  319. package/dist/esm/p-dropdown.entry.js +0 -143
  320. package/dist/esm/p-helper.entry.js +0 -19
  321. package/dist/esm/p-input-group.entry.js +0 -47
  322. package/dist/esm/p-pagination-item.entry.js +0 -19
  323. package/dist/esm/p-pagination.entry.js +0 -167
  324. package/dist/esm/p-segment-container.entry.js +0 -15
  325. package/dist/esm/p-segment-item.entry.js +0 -25
  326. package/dist/esm/p-tag.entry.js +0 -23
  327. package/dist/paperless/p-4deee897.entry.js +0 -1
  328. package/dist/paperless/p-58ce5668.entry.js +0 -1
  329. package/dist/paperless/p-6088647a.entry.js +0 -1
  330. package/dist/paperless/p-6835a9e3.entry.js +0 -1
  331. package/dist/paperless/p-705ab6e5.entry.js +0 -1
  332. package/dist/paperless/p-79d3258f.entry.js +0 -1
  333. package/dist/paperless/p-801d05b6.entry.js +0 -1
  334. package/dist/paperless/p-829c4101.entry.js +0 -1
  335. package/dist/paperless/p-938f52ee.entry.js +0 -1
  336. package/dist/paperless/p-9d98d0d9.entry.js +0 -1
  337. package/dist/paperless/p-a9e333cc.entry.js +0 -1
  338. package/dist/paperless/p-bc7e8cc4.js +0 -2
  339. package/dist/paperless/p-e2a98d53.entry.js +0 -1
  340. package/dist/paperless/p-e934ef94.entry.js +0 -1
  341. package/dist/types/utils/utils.d.ts +0 -1
@@ -0,0 +1,1060 @@
1
+ import { r as registerInstance, h, H as Host, c as createEvent, g as getElement } from './index-1ac329a8.js';
2
+ import { f as formatTranslation, g as getLocaleComponentStrings } from './localization-550c043d.js';
3
+ import { d as defaultSize, a as defaultSizeOptions } from './constants-826f9460.js';
4
+
5
+ const tableContainerComponentCss = ".visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!important}.bottom-0{bottom:0!important}.left-0{left:0!important}.m-0{margin:0!important}.ml-1{margin-left:.25rem!important}.block{display:block!important}.flex{display:flex!important}.table{display:table!important}.hidden{display:none!important}.w-1{width:.25rem!important}.w-2{width:.5rem!important}.w-3{width:.75rem!important}.w-4{width:1rem!important}.w-5{width:1.25rem!important}.w-6{width:1.5rem!important}.w-7{width:1.75rem!important}.w-8{width:2rem!important}.w-9{width:2.25rem!important}.w-10{width:2.5rem!important}.w-11{width:2.75rem!important}.w-auto{width:auto!important}.w-full{width:100%!important}.flex-col{flex-direction:column!important}.items-center{align-items:center!important}.justify-start{justify-content:flex-start!important}.justify-end{justify-content:flex-end!important}.justify-center{justify-content:center!important}.gap-4{gap:1rem!important}.justify-self-end{justify-self:end!important}.border{border-width:1px!important}.border-solid{border-style:solid!important}.border-transparent{border-color:transparent!important}.border-t-mystic-dark{--tw-border-opacity:1!important;border-top-color:rgb(218 230 240/var(--tw-border-opacity))!important}.bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity))!important}.p-4{padding:1rem!important}.font-semibold{font-weight:600!important}.text-storm-dark{--tw-text-opacity:1!important;color:rgb(39 40 56/var(--tw-text-opacity))!important}.shadow-4{--tw-shadow:0px 0.3125rem 1rem rgba(0,24,98,.08),0px 0.0625rem 0.1875rem rgba(0,24,98,.13)!important;--tw-shadow-colored:0px 0.3125rem 1rem var(--tw-shadow-color),0px 0.0625rem 0.1875rem var(--tw-shadow-color)!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.blur{--tw-blur:blur(8px)!important}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}*{box-sizing:border-box}:host{--tw-bg-opacity:1;--tw-shadow:0px 0.3125rem 1rem rgba(0,24,98,.08),0px 0.0625rem 0.1875rem rgba(0,24,98,.13)!important;--tw-shadow-colored:0px 0.3125rem 1rem var(--tw-shadow-color),0px 0.0625rem 0.1875rem var(--tw-shadow-color)!important;background-color:rgb(255 255 255/var(--tw-bg-opacity));border-radius:.375rem;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important;display:flex;flex-direction:column;width:100%}.w-1\\/12{width:8.333333%!important}.w-2\\/12{width:16.666667%!important}.w-3\\/12{width:25%!important}.w-4\\/12{width:33.333333%!important}.w-5\\/12{width:41.666667%!important}.w-6\\/12{width:50%!important}.w-7\\/12{width:58.333333%!important}.w-8\\/12{width:66.666667%!important}.w-9\\/12{width:75%!important}.w-10\\/12{width:83.333333%!important}.w-11\\/12{width:91.666667%!important}@media (min-width:40rem){.tablet\\:w-1\\/12{width:8.333333%!important}.tablet\\:w-2\\/12{width:16.666667%!important}.tablet\\:w-3\\/12{width:25%!important}.tablet\\:w-4\\/12{width:33.333333%!important}.tablet\\:w-5\\/12{width:41.666667%!important}.tablet\\:w-6\\/12{width:50%!important}.tablet\\:w-7\\/12{width:58.333333%!important}.tablet\\:w-8\\/12{width:66.666667%!important}.tablet\\:w-9\\/12{width:75%!important}.tablet\\:w-10\\/12{width:83.333333%!important}.tablet\\:w-11\\/12{width:91.666667%!important}}@media (min-width:64rem){.desktop-xs\\:w-1\\/12{width:8.333333%!important}.desktop-xs\\:w-2\\/12{width:16.666667%!important}.desktop-xs\\:w-3\\/12{width:25%!important}.desktop-xs\\:w-4\\/12{width:33.333333%!important}.desktop-xs\\:w-5\\/12{width:41.666667%!important}.desktop-xs\\:w-6\\/12{width:50%!important}.desktop-xs\\:w-7\\/12{width:58.333333%!important}.desktop-xs\\:w-8\\/12{width:66.666667%!important}.desktop-xs\\:w-9\\/12{width:75%!important}.desktop-xs\\:w-10\\/12{width:83.333333%!important}.desktop-xs\\:w-11\\/12{width:91.666667%!important}}@media (min-width:80rem){.desktop-sm\\:w-1\\/12{width:8.333333%!important}.desktop-sm\\:w-2\\/12{width:16.666667%!important}.desktop-sm\\:w-3\\/12{width:25%!important}.desktop-sm\\:w-4\\/12{width:33.333333%!important}.desktop-sm\\:w-5\\/12{width:41.666667%!important}.desktop-sm\\:w-6\\/12{width:50%!important}.desktop-sm\\:w-7\\/12{width:58.333333%!important}.desktop-sm\\:w-8\\/12{width:66.666667%!important}.desktop-sm\\:w-9\\/12{width:75%!important}.desktop-sm\\:w-10\\/12{width:83.333333%!important}.desktop-sm\\:w-11\\/12{width:91.666667%!important}}@media (min-width:85.375rem){.desktop\\:w-1\\/12{width:8.333333%!important}.desktop\\:w-2\\/12{width:16.666667%!important}.desktop\\:w-3\\/12{width:25%!important}.desktop\\:w-4\\/12{width:33.333333%!important}.desktop\\:w-5\\/12{width:41.666667%!important}.desktop\\:w-6\\/12{width:50%!important}.desktop\\:w-7\\/12{width:58.333333%!important}.desktop\\:w-8\\/12{width:66.666667%!important}.desktop\\:w-9\\/12{width:75%!important}.desktop\\:w-10\\/12{width:83.333333%!important}.desktop\\:w-11\\/12{width:91.666667%!important}}@media (min-width:90rem){.desktop-lg\\:w-1\\/12{width:8.333333%!important}.desktop-lg\\:w-2\\/12{width:16.666667%!important}.desktop-lg\\:w-3\\/12{width:25%!important}.desktop-lg\\:w-4\\/12{width:33.333333%!important}.desktop-lg\\:w-5\\/12{width:41.666667%!important}.desktop-lg\\:w-6\\/12{width:50%!important}.desktop-lg\\:w-7\\/12{width:58.333333%!important}.desktop-lg\\:w-8\\/12{width:66.666667%!important}.desktop-lg\\:w-9\\/12{width:75%!important}.desktop-lg\\:w-10\\/12{width:83.333333%!important}.desktop-lg\\:w-11\\/12{width:91.666667%!important}}@media (min-width:120rem){.desktop-xl\\:w-1\\/12{width:8.333333%!important}.desktop-xl\\:w-2\\/12{width:16.666667%!important}.desktop-xl\\:w-3\\/12{width:25%!important}.desktop-xl\\:w-4\\/12{width:33.333333%!important}.desktop-xl\\:w-5\\/12{width:41.666667%!important}.desktop-xl\\:w-6\\/12{width:50%!important}.desktop-xl\\:w-7\\/12{width:58.333333%!important}.desktop-xl\\:w-8\\/12{width:66.666667%!important}.desktop-xl\\:w-9\\/12{width:75%!important}.desktop-xl\\:w-10\\/12{width:83.333333%!important}.desktop-xl\\:w-11\\/12{width:91.666667%!important}}@media (min-width:64rem){.desktop-xs\\:flex{display:flex!important}.desktop-xs\\:hidden{display:none!important}.desktop-xs\\:w-auto{width:auto!important}.desktop-xs\\:flex-row{flex-direction:row!important}}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}";
6
+
7
+ const TableContainer = class {
8
+ constructor(hostRef) {
9
+ registerInstance(this, hostRef);
10
+ }
11
+ render() {
12
+ return (h(Host, { class: "p-table-container" }, h("slot", null)));
13
+ }
14
+ };
15
+ TableContainer.style = tableContainerComponentCss;
16
+
17
+ const tableFooterComponentCss = ".visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!important}.bottom-0{bottom:0!important}.left-0{left:0!important}.m-0{margin:0!important}.ml-1{margin-left:.25rem!important}.block{display:block!important}.flex{display:flex!important}.table{display:table!important}.grid{display:grid!important}.hidden{display:none!important}.w-1{width:.25rem!important}.w-2{width:.5rem!important}.w-3{width:.75rem!important}.w-4{width:1rem!important}.w-5{width:1.25rem!important}.w-6{width:1.5rem!important}.w-7{width:1.75rem!important}.w-8{width:2rem!important}.w-9{width:2.25rem!important}.w-10{width:2.5rem!important}.w-11{width:2.75rem!important}.w-auto{width:auto!important}.w-full{width:100%!important}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))!important}.flex-col{flex-direction:column!important}.items-center{align-items:center!important}.justify-start{justify-content:flex-start!important}.justify-end{justify-content:flex-end!important}.justify-center{justify-content:center!important}.gap-4{gap:1rem!important}.justify-self-end{justify-self:end!important}.justify-self-center{justify-self:center!important}.border{border-width:1px!important}.border-solid{border-style:solid!important}.border-transparent{border-color:transparent!important}.border-t-mystic-dark{--tw-border-opacity:1!important;border-top-color:rgb(218 230 240/var(--tw-border-opacity))!important}.bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity))!important}.p-4{padding:1rem!important}.font-semibold{font-weight:600!important}.text-storm-dark{--tw-text-opacity:1!important;color:rgb(39 40 56/var(--tw-text-opacity))!important}.blur{--tw-blur:blur(8px)!important}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}*{box-sizing:border-box}:host{display:grid;gap:1rem;grid-template-columns:repeat(1,minmax(0,1fr));padding:1.5rem;width:100%}:host>p-pagination{display:flex;grid-column-start:1;justify-self:center}@media (min-width:64rem){:host{grid-template-areas:\"page-size pagination export\";grid-template-columns:repeat(3,minmax(0,1fr))}:host>p-page-size-select{grid-column-start:1}:host>p-pagination{grid-column-start:2}:host>p-button{grid-column-start:3;justify-self:end}}:host(.page-size-disabled.export-disabled){grid-template-columns:repeat(1,minmax(0,1fr))}:host(.page-size-disabled.export-disabled)>p-pagination{grid-column-start:1}.w-1\\/12{width:8.333333%!important}.w-2\\/12{width:16.666667%!important}.w-3\\/12{width:25%!important}.w-4\\/12{width:33.333333%!important}.w-5\\/12{width:41.666667%!important}.w-6\\/12{width:50%!important}.w-7\\/12{width:58.333333%!important}.w-8\\/12{width:66.666667%!important}.w-9\\/12{width:75%!important}.w-10\\/12{width:83.333333%!important}.w-11\\/12{width:91.666667%!important}@media (min-width:40rem){.tablet\\:w-1\\/12{width:8.333333%!important}.tablet\\:w-2\\/12{width:16.666667%!important}.tablet\\:w-3\\/12{width:25%!important}.tablet\\:w-4\\/12{width:33.333333%!important}.tablet\\:w-5\\/12{width:41.666667%!important}.tablet\\:w-6\\/12{width:50%!important}.tablet\\:w-7\\/12{width:58.333333%!important}.tablet\\:w-8\\/12{width:66.666667%!important}.tablet\\:w-9\\/12{width:75%!important}.tablet\\:w-10\\/12{width:83.333333%!important}.tablet\\:w-11\\/12{width:91.666667%!important}}@media (min-width:64rem){.desktop-xs\\:w-1\\/12{width:8.333333%!important}.desktop-xs\\:w-2\\/12{width:16.666667%!important}.desktop-xs\\:w-3\\/12{width:25%!important}.desktop-xs\\:w-4\\/12{width:33.333333%!important}.desktop-xs\\:w-5\\/12{width:41.666667%!important}.desktop-xs\\:w-6\\/12{width:50%!important}.desktop-xs\\:w-7\\/12{width:58.333333%!important}.desktop-xs\\:w-8\\/12{width:66.666667%!important}.desktop-xs\\:w-9\\/12{width:75%!important}.desktop-xs\\:w-10\\/12{width:83.333333%!important}.desktop-xs\\:w-11\\/12{width:91.666667%!important}}@media (min-width:80rem){.desktop-sm\\:w-1\\/12{width:8.333333%!important}.desktop-sm\\:w-2\\/12{width:16.666667%!important}.desktop-sm\\:w-3\\/12{width:25%!important}.desktop-sm\\:w-4\\/12{width:33.333333%!important}.desktop-sm\\:w-5\\/12{width:41.666667%!important}.desktop-sm\\:w-6\\/12{width:50%!important}.desktop-sm\\:w-7\\/12{width:58.333333%!important}.desktop-sm\\:w-8\\/12{width:66.666667%!important}.desktop-sm\\:w-9\\/12{width:75%!important}.desktop-sm\\:w-10\\/12{width:83.333333%!important}.desktop-sm\\:w-11\\/12{width:91.666667%!important}}@media (min-width:85.375rem){.desktop\\:w-1\\/12{width:8.333333%!important}.desktop\\:w-2\\/12{width:16.666667%!important}.desktop\\:w-3\\/12{width:25%!important}.desktop\\:w-4\\/12{width:33.333333%!important}.desktop\\:w-5\\/12{width:41.666667%!important}.desktop\\:w-6\\/12{width:50%!important}.desktop\\:w-7\\/12{width:58.333333%!important}.desktop\\:w-8\\/12{width:66.666667%!important}.desktop\\:w-9\\/12{width:75%!important}.desktop\\:w-10\\/12{width:83.333333%!important}.desktop\\:w-11\\/12{width:91.666667%!important}}@media (min-width:90rem){.desktop-lg\\:w-1\\/12{width:8.333333%!important}.desktop-lg\\:w-2\\/12{width:16.666667%!important}.desktop-lg\\:w-3\\/12{width:25%!important}.desktop-lg\\:w-4\\/12{width:33.333333%!important}.desktop-lg\\:w-5\\/12{width:41.666667%!important}.desktop-lg\\:w-6\\/12{width:50%!important}.desktop-lg\\:w-7\\/12{width:58.333333%!important}.desktop-lg\\:w-8\\/12{width:66.666667%!important}.desktop-lg\\:w-9\\/12{width:75%!important}.desktop-lg\\:w-10\\/12{width:83.333333%!important}.desktop-lg\\:w-11\\/12{width:91.666667%!important}}@media (min-width:120rem){.desktop-xl\\:w-1\\/12{width:8.333333%!important}.desktop-xl\\:w-2\\/12{width:16.666667%!important}.desktop-xl\\:w-3\\/12{width:25%!important}.desktop-xl\\:w-4\\/12{width:33.333333%!important}.desktop-xl\\:w-5\\/12{width:41.666667%!important}.desktop-xl\\:w-6\\/12{width:50%!important}.desktop-xl\\:w-7\\/12{width:58.333333%!important}.desktop-xl\\:w-8\\/12{width:66.666667%!important}.desktop-xl\\:w-9\\/12{width:75%!important}.desktop-xl\\:w-10\\/12{width:83.333333%!important}.desktop-xl\\:w-11\\/12{width:91.666667%!important}}@media (min-width:64rem){.desktop-xs\\:flex{display:flex!important}.desktop-xs\\:hidden{display:none!important}.desktop-xs\\:w-auto{width:auto!important}.desktop-xs\\:flex-row{flex-direction:row!important}}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}";
18
+
19
+ const TableFooter = class {
20
+ constructor(hostRef) {
21
+ registerInstance(this, hostRef);
22
+ this.pageChange = createEvent(this, "pageChange", 7);
23
+ this.pageSizeChange = createEvent(this, "pageSizeChange", 7);
24
+ this.export = createEvent(this, "export", 7);
25
+ /**
26
+ * Wether to enable page size select
27
+ */
28
+ this.enablePageSize = true;
29
+ /**
30
+ * Wether to enable pagination
31
+ */
32
+ this.enablePagination = true;
33
+ /**
34
+ * Wether to enable export
35
+ */
36
+ this.enableExport = true;
37
+ /**
38
+ * The current page
39
+ */
40
+ this.page = 1;
41
+ /**
42
+ * The amount of items per page
43
+ */
44
+ this.pageSize = defaultSize;
45
+ /**
46
+ * The options for the page size
47
+ */
48
+ this.pageSizeOptions = defaultSizeOptions;
49
+ /**
50
+ * Locales used for this component
51
+ */
52
+ this._locales = {};
53
+ }
54
+ componentWillLoad() {
55
+ this._setLocales();
56
+ }
57
+ render() {
58
+ return (h(Host, { class: `p-table-footer ${!this.enablePageSize && 'page-size-disabled'} ${!this.enablePagination && 'pagination-disabled'} ${!this.enableExport && 'export-disabled'}` }, this.enablePagination && this.enablePageSize && (h("p-page-size-select", { class: "hidden desktop-xs:flex", size: this.pageSize, sizeOptions: this.pageSizeOptions, onSizeChange: ({ detail }) => this._changePageSize(detail) })), this.enablePagination && (h("p-pagination", { pageSize: this.pageSize, total: this.total, page: this.page, hideOnSinglePage: true, onPageChange: ({ detail }) => this.pageChange.emit(detail) })), this.enableExport && (h("p-button", { class: "hidden desktop-xs:flex", variant: "secondary", size: "small", icon: "download", onClick: () => this.export.emit() }, formatTranslation(this._locales.export)))));
59
+ }
60
+ async _setLocales() {
61
+ this._locales = await getLocaleComponentStrings(this._el);
62
+ }
63
+ _changePageSize(s) {
64
+ if (!s) {
65
+ return;
66
+ }
67
+ this.pageSize = s;
68
+ this.pageSizeChange.emit(this.pageSize);
69
+ }
70
+ get _el() { return getElement(this); }
71
+ };
72
+ TableFooter.style = tableFooterComponentCss;
73
+
74
+ function isFunction(value) {
75
+ return typeof value === 'function';
76
+ }
77
+
78
+ function createErrorClass(createImpl) {
79
+ const _super = (instance) => {
80
+ Error.call(instance);
81
+ instance.stack = new Error().stack;
82
+ };
83
+ const ctorFunc = createImpl(_super);
84
+ ctorFunc.prototype = Object.create(Error.prototype);
85
+ ctorFunc.prototype.constructor = ctorFunc;
86
+ return ctorFunc;
87
+ }
88
+
89
+ const UnsubscriptionError = createErrorClass((_super) => function UnsubscriptionErrorImpl(errors) {
90
+ _super(this);
91
+ this.message = errors
92
+ ? `${errors.length} errors occurred during unsubscription:
93
+ ${errors.map((err, i) => `${i + 1}) ${err.toString()}`).join('\n ')}`
94
+ : '';
95
+ this.name = 'UnsubscriptionError';
96
+ this.errors = errors;
97
+ });
98
+
99
+ function arrRemove(arr, item) {
100
+ if (arr) {
101
+ const index = arr.indexOf(item);
102
+ 0 <= index && arr.splice(index, 1);
103
+ }
104
+ }
105
+
106
+ class Subscription {
107
+ constructor(initialTeardown) {
108
+ this.initialTeardown = initialTeardown;
109
+ this.closed = false;
110
+ this._parentage = null;
111
+ this._finalizers = null;
112
+ }
113
+ unsubscribe() {
114
+ let errors;
115
+ if (!this.closed) {
116
+ this.closed = true;
117
+ const { _parentage } = this;
118
+ if (_parentage) {
119
+ this._parentage = null;
120
+ if (Array.isArray(_parentage)) {
121
+ for (const parent of _parentage) {
122
+ parent.remove(this);
123
+ }
124
+ }
125
+ else {
126
+ _parentage.remove(this);
127
+ }
128
+ }
129
+ const { initialTeardown: initialFinalizer } = this;
130
+ if (isFunction(initialFinalizer)) {
131
+ try {
132
+ initialFinalizer();
133
+ }
134
+ catch (e) {
135
+ errors = e instanceof UnsubscriptionError ? e.errors : [e];
136
+ }
137
+ }
138
+ const { _finalizers } = this;
139
+ if (_finalizers) {
140
+ this._finalizers = null;
141
+ for (const finalizer of _finalizers) {
142
+ try {
143
+ execFinalizer(finalizer);
144
+ }
145
+ catch (err) {
146
+ errors = errors !== null && errors !== void 0 ? errors : [];
147
+ if (err instanceof UnsubscriptionError) {
148
+ errors = [...errors, ...err.errors];
149
+ }
150
+ else {
151
+ errors.push(err);
152
+ }
153
+ }
154
+ }
155
+ }
156
+ if (errors) {
157
+ throw new UnsubscriptionError(errors);
158
+ }
159
+ }
160
+ }
161
+ add(teardown) {
162
+ var _a;
163
+ if (teardown && teardown !== this) {
164
+ if (this.closed) {
165
+ execFinalizer(teardown);
166
+ }
167
+ else {
168
+ if (teardown instanceof Subscription) {
169
+ if (teardown.closed || teardown._hasParent(this)) {
170
+ return;
171
+ }
172
+ teardown._addParent(this);
173
+ }
174
+ (this._finalizers = (_a = this._finalizers) !== null && _a !== void 0 ? _a : []).push(teardown);
175
+ }
176
+ }
177
+ }
178
+ _hasParent(parent) {
179
+ const { _parentage } = this;
180
+ return _parentage === parent || (Array.isArray(_parentage) && _parentage.includes(parent));
181
+ }
182
+ _addParent(parent) {
183
+ const { _parentage } = this;
184
+ this._parentage = Array.isArray(_parentage) ? (_parentage.push(parent), _parentage) : _parentage ? [_parentage, parent] : parent;
185
+ }
186
+ _removeParent(parent) {
187
+ const { _parentage } = this;
188
+ if (_parentage === parent) {
189
+ this._parentage = null;
190
+ }
191
+ else if (Array.isArray(_parentage)) {
192
+ arrRemove(_parentage, parent);
193
+ }
194
+ }
195
+ remove(teardown) {
196
+ const { _finalizers } = this;
197
+ _finalizers && arrRemove(_finalizers, teardown);
198
+ if (teardown instanceof Subscription) {
199
+ teardown._removeParent(this);
200
+ }
201
+ }
202
+ }
203
+ Subscription.EMPTY = (() => {
204
+ const empty = new Subscription();
205
+ empty.closed = true;
206
+ return empty;
207
+ })();
208
+ const EMPTY_SUBSCRIPTION = Subscription.EMPTY;
209
+ function isSubscription(value) {
210
+ return (value instanceof Subscription ||
211
+ (value && 'closed' in value && isFunction(value.remove) && isFunction(value.add) && isFunction(value.unsubscribe)));
212
+ }
213
+ function execFinalizer(finalizer) {
214
+ if (isFunction(finalizer)) {
215
+ finalizer();
216
+ }
217
+ else {
218
+ finalizer.unsubscribe();
219
+ }
220
+ }
221
+
222
+ const config = {
223
+ onUnhandledError: null,
224
+ onStoppedNotification: null,
225
+ Promise: undefined,
226
+ useDeprecatedSynchronousErrorHandling: false,
227
+ useDeprecatedNextContext: false,
228
+ };
229
+
230
+ const timeoutProvider = {
231
+ setTimeout(handler, timeout, ...args) {
232
+ const { delegate } = timeoutProvider;
233
+ if (delegate === null || delegate === void 0 ? void 0 : delegate.setTimeout) {
234
+ return delegate.setTimeout(handler, timeout, ...args);
235
+ }
236
+ return setTimeout(handler, timeout, ...args);
237
+ },
238
+ clearTimeout(handle) {
239
+ const { delegate } = timeoutProvider;
240
+ return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearTimeout) || clearTimeout)(handle);
241
+ },
242
+ delegate: undefined,
243
+ };
244
+
245
+ function reportUnhandledError(err) {
246
+ timeoutProvider.setTimeout(() => {
247
+ const { onUnhandledError } = config;
248
+ if (onUnhandledError) {
249
+ onUnhandledError(err);
250
+ }
251
+ else {
252
+ throw err;
253
+ }
254
+ });
255
+ }
256
+
257
+ function noop() { }
258
+
259
+ const COMPLETE_NOTIFICATION = (() => createNotification('C', undefined, undefined))();
260
+ function errorNotification(error) {
261
+ return createNotification('E', undefined, error);
262
+ }
263
+ function nextNotification(value) {
264
+ return createNotification('N', value, undefined);
265
+ }
266
+ function createNotification(kind, value, error) {
267
+ return {
268
+ kind,
269
+ value,
270
+ error,
271
+ };
272
+ }
273
+
274
+ function errorContext(cb) {
275
+ {
276
+ cb();
277
+ }
278
+ }
279
+
280
+ class Subscriber extends Subscription {
281
+ constructor(destination) {
282
+ super();
283
+ this.isStopped = false;
284
+ if (destination) {
285
+ this.destination = destination;
286
+ if (isSubscription(destination)) {
287
+ destination.add(this);
288
+ }
289
+ }
290
+ else {
291
+ this.destination = EMPTY_OBSERVER;
292
+ }
293
+ }
294
+ static create(next, error, complete) {
295
+ return new SafeSubscriber(next, error, complete);
296
+ }
297
+ next(value) {
298
+ if (this.isStopped) {
299
+ handleStoppedNotification(nextNotification(value), this);
300
+ }
301
+ else {
302
+ this._next(value);
303
+ }
304
+ }
305
+ error(err) {
306
+ if (this.isStopped) {
307
+ handleStoppedNotification(errorNotification(err), this);
308
+ }
309
+ else {
310
+ this.isStopped = true;
311
+ this._error(err);
312
+ }
313
+ }
314
+ complete() {
315
+ if (this.isStopped) {
316
+ handleStoppedNotification(COMPLETE_NOTIFICATION, this);
317
+ }
318
+ else {
319
+ this.isStopped = true;
320
+ this._complete();
321
+ }
322
+ }
323
+ unsubscribe() {
324
+ if (!this.closed) {
325
+ this.isStopped = true;
326
+ super.unsubscribe();
327
+ this.destination = null;
328
+ }
329
+ }
330
+ _next(value) {
331
+ this.destination.next(value);
332
+ }
333
+ _error(err) {
334
+ try {
335
+ this.destination.error(err);
336
+ }
337
+ finally {
338
+ this.unsubscribe();
339
+ }
340
+ }
341
+ _complete() {
342
+ try {
343
+ this.destination.complete();
344
+ }
345
+ finally {
346
+ this.unsubscribe();
347
+ }
348
+ }
349
+ }
350
+ const _bind = Function.prototype.bind;
351
+ function bind(fn, thisArg) {
352
+ return _bind.call(fn, thisArg);
353
+ }
354
+ class ConsumerObserver {
355
+ constructor(partialObserver) {
356
+ this.partialObserver = partialObserver;
357
+ }
358
+ next(value) {
359
+ const { partialObserver } = this;
360
+ if (partialObserver.next) {
361
+ try {
362
+ partialObserver.next(value);
363
+ }
364
+ catch (error) {
365
+ handleUnhandledError(error);
366
+ }
367
+ }
368
+ }
369
+ error(err) {
370
+ const { partialObserver } = this;
371
+ if (partialObserver.error) {
372
+ try {
373
+ partialObserver.error(err);
374
+ }
375
+ catch (error) {
376
+ handleUnhandledError(error);
377
+ }
378
+ }
379
+ else {
380
+ handleUnhandledError(err);
381
+ }
382
+ }
383
+ complete() {
384
+ const { partialObserver } = this;
385
+ if (partialObserver.complete) {
386
+ try {
387
+ partialObserver.complete();
388
+ }
389
+ catch (error) {
390
+ handleUnhandledError(error);
391
+ }
392
+ }
393
+ }
394
+ }
395
+ class SafeSubscriber extends Subscriber {
396
+ constructor(observerOrNext, error, complete) {
397
+ super();
398
+ let partialObserver;
399
+ if (isFunction(observerOrNext) || !observerOrNext) {
400
+ partialObserver = {
401
+ next: observerOrNext !== null && observerOrNext !== void 0 ? observerOrNext : undefined,
402
+ error: error !== null && error !== void 0 ? error : undefined,
403
+ complete: complete !== null && complete !== void 0 ? complete : undefined,
404
+ };
405
+ }
406
+ else {
407
+ let context;
408
+ if (this && config.useDeprecatedNextContext) {
409
+ context = Object.create(observerOrNext);
410
+ context.unsubscribe = () => this.unsubscribe();
411
+ partialObserver = {
412
+ next: observerOrNext.next && bind(observerOrNext.next, context),
413
+ error: observerOrNext.error && bind(observerOrNext.error, context),
414
+ complete: observerOrNext.complete && bind(observerOrNext.complete, context),
415
+ };
416
+ }
417
+ else {
418
+ partialObserver = observerOrNext;
419
+ }
420
+ }
421
+ this.destination = new ConsumerObserver(partialObserver);
422
+ }
423
+ }
424
+ function handleUnhandledError(error) {
425
+ {
426
+ reportUnhandledError(error);
427
+ }
428
+ }
429
+ function defaultErrorHandler(err) {
430
+ throw err;
431
+ }
432
+ function handleStoppedNotification(notification, subscriber) {
433
+ const { onStoppedNotification } = config;
434
+ onStoppedNotification && timeoutProvider.setTimeout(() => onStoppedNotification(notification, subscriber));
435
+ }
436
+ const EMPTY_OBSERVER = {
437
+ closed: true,
438
+ next: noop,
439
+ error: defaultErrorHandler,
440
+ complete: noop,
441
+ };
442
+
443
+ const observable = (() => (typeof Symbol === 'function' && Symbol.observable) || '@@observable')();
444
+
445
+ function identity(x) {
446
+ return x;
447
+ }
448
+
449
+ function pipeFromArray(fns) {
450
+ if (fns.length === 0) {
451
+ return identity;
452
+ }
453
+ if (fns.length === 1) {
454
+ return fns[0];
455
+ }
456
+ return function piped(input) {
457
+ return fns.reduce((prev, fn) => fn(prev), input);
458
+ };
459
+ }
460
+
461
+ class Observable {
462
+ constructor(subscribe) {
463
+ if (subscribe) {
464
+ this._subscribe = subscribe;
465
+ }
466
+ }
467
+ lift(operator) {
468
+ const observable = new Observable();
469
+ observable.source = this;
470
+ observable.operator = operator;
471
+ return observable;
472
+ }
473
+ subscribe(observerOrNext, error, complete) {
474
+ const subscriber = isSubscriber(observerOrNext) ? observerOrNext : new SafeSubscriber(observerOrNext, error, complete);
475
+ errorContext(() => {
476
+ const { operator, source } = this;
477
+ subscriber.add(operator
478
+ ?
479
+ operator.call(subscriber, source)
480
+ : source
481
+ ?
482
+ this._subscribe(subscriber)
483
+ :
484
+ this._trySubscribe(subscriber));
485
+ });
486
+ return subscriber;
487
+ }
488
+ _trySubscribe(sink) {
489
+ try {
490
+ return this._subscribe(sink);
491
+ }
492
+ catch (err) {
493
+ sink.error(err);
494
+ }
495
+ }
496
+ forEach(next, promiseCtor) {
497
+ promiseCtor = getPromiseCtor(promiseCtor);
498
+ return new promiseCtor((resolve, reject) => {
499
+ const subscriber = new SafeSubscriber({
500
+ next: (value) => {
501
+ try {
502
+ next(value);
503
+ }
504
+ catch (err) {
505
+ reject(err);
506
+ subscriber.unsubscribe();
507
+ }
508
+ },
509
+ error: reject,
510
+ complete: resolve,
511
+ });
512
+ this.subscribe(subscriber);
513
+ });
514
+ }
515
+ _subscribe(subscriber) {
516
+ var _a;
517
+ return (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber);
518
+ }
519
+ [observable]() {
520
+ return this;
521
+ }
522
+ pipe(...operations) {
523
+ return pipeFromArray(operations)(this);
524
+ }
525
+ toPromise(promiseCtor) {
526
+ promiseCtor = getPromiseCtor(promiseCtor);
527
+ return new promiseCtor((resolve, reject) => {
528
+ let value;
529
+ this.subscribe((x) => (value = x), (err) => reject(err), () => resolve(value));
530
+ });
531
+ }
532
+ }
533
+ Observable.create = (subscribe) => {
534
+ return new Observable(subscribe);
535
+ };
536
+ function getPromiseCtor(promiseCtor) {
537
+ var _a;
538
+ return (_a = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a !== void 0 ? _a : Promise;
539
+ }
540
+ function isObserver(value) {
541
+ return value && isFunction(value.next) && isFunction(value.error) && isFunction(value.complete);
542
+ }
543
+ function isSubscriber(value) {
544
+ return (value && value instanceof Subscriber) || (isObserver(value) && isSubscription(value));
545
+ }
546
+
547
+ function hasLift(source) {
548
+ return isFunction(source === null || source === void 0 ? void 0 : source.lift);
549
+ }
550
+ function operate(init) {
551
+ return (source) => {
552
+ if (hasLift(source)) {
553
+ return source.lift(function (liftedSource) {
554
+ try {
555
+ return init(liftedSource, this);
556
+ }
557
+ catch (err) {
558
+ this.error(err);
559
+ }
560
+ });
561
+ }
562
+ throw new TypeError('Unable to lift unknown Observable type');
563
+ };
564
+ }
565
+
566
+ function createOperatorSubscriber(destination, onNext, onComplete, onError, onFinalize) {
567
+ return new OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize);
568
+ }
569
+ class OperatorSubscriber extends Subscriber {
570
+ constructor(destination, onNext, onComplete, onError, onFinalize, shouldUnsubscribe) {
571
+ super(destination);
572
+ this.onFinalize = onFinalize;
573
+ this.shouldUnsubscribe = shouldUnsubscribe;
574
+ this._next = onNext
575
+ ? function (value) {
576
+ try {
577
+ onNext(value);
578
+ }
579
+ catch (err) {
580
+ destination.error(err);
581
+ }
582
+ }
583
+ : super._next;
584
+ this._error = onError
585
+ ? function (err) {
586
+ try {
587
+ onError(err);
588
+ }
589
+ catch (err) {
590
+ destination.error(err);
591
+ }
592
+ finally {
593
+ this.unsubscribe();
594
+ }
595
+ }
596
+ : super._error;
597
+ this._complete = onComplete
598
+ ? function () {
599
+ try {
600
+ onComplete();
601
+ }
602
+ catch (err) {
603
+ destination.error(err);
604
+ }
605
+ finally {
606
+ this.unsubscribe();
607
+ }
608
+ }
609
+ : super._complete;
610
+ }
611
+ unsubscribe() {
612
+ var _a;
613
+ if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {
614
+ const { closed } = this;
615
+ super.unsubscribe();
616
+ !closed && ((_a = this.onFinalize) === null || _a === void 0 ? void 0 : _a.call(this));
617
+ }
618
+ }
619
+ }
620
+
621
+ const ObjectUnsubscribedError = createErrorClass((_super) => function ObjectUnsubscribedErrorImpl() {
622
+ _super(this);
623
+ this.name = 'ObjectUnsubscribedError';
624
+ this.message = 'object unsubscribed';
625
+ });
626
+
627
+ class Subject extends Observable {
628
+ constructor() {
629
+ super();
630
+ this.closed = false;
631
+ this.currentObservers = null;
632
+ this.observers = [];
633
+ this.isStopped = false;
634
+ this.hasError = false;
635
+ this.thrownError = null;
636
+ }
637
+ lift(operator) {
638
+ const subject = new AnonymousSubject(this, this);
639
+ subject.operator = operator;
640
+ return subject;
641
+ }
642
+ _throwIfClosed() {
643
+ if (this.closed) {
644
+ throw new ObjectUnsubscribedError();
645
+ }
646
+ }
647
+ next(value) {
648
+ errorContext(() => {
649
+ this._throwIfClosed();
650
+ if (!this.isStopped) {
651
+ if (!this.currentObservers) {
652
+ this.currentObservers = Array.from(this.observers);
653
+ }
654
+ for (const observer of this.currentObservers) {
655
+ observer.next(value);
656
+ }
657
+ }
658
+ });
659
+ }
660
+ error(err) {
661
+ errorContext(() => {
662
+ this._throwIfClosed();
663
+ if (!this.isStopped) {
664
+ this.hasError = this.isStopped = true;
665
+ this.thrownError = err;
666
+ const { observers } = this;
667
+ while (observers.length) {
668
+ observers.shift().error(err);
669
+ }
670
+ }
671
+ });
672
+ }
673
+ complete() {
674
+ errorContext(() => {
675
+ this._throwIfClosed();
676
+ if (!this.isStopped) {
677
+ this.isStopped = true;
678
+ const { observers } = this;
679
+ while (observers.length) {
680
+ observers.shift().complete();
681
+ }
682
+ }
683
+ });
684
+ }
685
+ unsubscribe() {
686
+ this.isStopped = this.closed = true;
687
+ this.observers = this.currentObservers = null;
688
+ }
689
+ get observed() {
690
+ var _a;
691
+ return ((_a = this.observers) === null || _a === void 0 ? void 0 : _a.length) > 0;
692
+ }
693
+ _trySubscribe(subscriber) {
694
+ this._throwIfClosed();
695
+ return super._trySubscribe(subscriber);
696
+ }
697
+ _subscribe(subscriber) {
698
+ this._throwIfClosed();
699
+ this._checkFinalizedStatuses(subscriber);
700
+ return this._innerSubscribe(subscriber);
701
+ }
702
+ _innerSubscribe(subscriber) {
703
+ const { hasError, isStopped, observers } = this;
704
+ if (hasError || isStopped) {
705
+ return EMPTY_SUBSCRIPTION;
706
+ }
707
+ this.currentObservers = null;
708
+ observers.push(subscriber);
709
+ return new Subscription(() => {
710
+ this.currentObservers = null;
711
+ arrRemove(observers, subscriber);
712
+ });
713
+ }
714
+ _checkFinalizedStatuses(subscriber) {
715
+ const { hasError, thrownError, isStopped } = this;
716
+ if (hasError) {
717
+ subscriber.error(thrownError);
718
+ }
719
+ else if (isStopped) {
720
+ subscriber.complete();
721
+ }
722
+ }
723
+ asObservable() {
724
+ const observable = new Observable();
725
+ observable.source = this;
726
+ return observable;
727
+ }
728
+ }
729
+ Subject.create = (destination, source) => {
730
+ return new AnonymousSubject(destination, source);
731
+ };
732
+ class AnonymousSubject extends Subject {
733
+ constructor(destination, source) {
734
+ super();
735
+ this.destination = destination;
736
+ this.source = source;
737
+ }
738
+ next(value) {
739
+ var _a, _b;
740
+ (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.next) === null || _b === void 0 ? void 0 : _b.call(_a, value);
741
+ }
742
+ error(err) {
743
+ var _a, _b;
744
+ (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.call(_a, err);
745
+ }
746
+ complete() {
747
+ var _a, _b;
748
+ (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.complete) === null || _b === void 0 ? void 0 : _b.call(_a);
749
+ }
750
+ _subscribe(subscriber) {
751
+ var _a, _b;
752
+ return (_b = (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber)) !== null && _b !== void 0 ? _b : EMPTY_SUBSCRIPTION;
753
+ }
754
+ }
755
+
756
+ const dateTimestampProvider = {
757
+ now() {
758
+ return (dateTimestampProvider.delegate || Date).now();
759
+ },
760
+ delegate: undefined,
761
+ };
762
+
763
+ class Action extends Subscription {
764
+ constructor(scheduler, work) {
765
+ super();
766
+ }
767
+ schedule(state, delay = 0) {
768
+ return this;
769
+ }
770
+ }
771
+
772
+ const intervalProvider = {
773
+ setInterval(handler, timeout, ...args) {
774
+ const { delegate } = intervalProvider;
775
+ if (delegate === null || delegate === void 0 ? void 0 : delegate.setInterval) {
776
+ return delegate.setInterval(handler, timeout, ...args);
777
+ }
778
+ return setInterval(handler, timeout, ...args);
779
+ },
780
+ clearInterval(handle) {
781
+ const { delegate } = intervalProvider;
782
+ return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearInterval) || clearInterval)(handle);
783
+ },
784
+ delegate: undefined,
785
+ };
786
+
787
+ class AsyncAction extends Action {
788
+ constructor(scheduler, work) {
789
+ super(scheduler, work);
790
+ this.scheduler = scheduler;
791
+ this.work = work;
792
+ this.pending = false;
793
+ }
794
+ schedule(state, delay = 0) {
795
+ if (this.closed) {
796
+ return this;
797
+ }
798
+ this.state = state;
799
+ const id = this.id;
800
+ const scheduler = this.scheduler;
801
+ if (id != null) {
802
+ this.id = this.recycleAsyncId(scheduler, id, delay);
803
+ }
804
+ this.pending = true;
805
+ this.delay = delay;
806
+ this.id = this.id || this.requestAsyncId(scheduler, this.id, delay);
807
+ return this;
808
+ }
809
+ requestAsyncId(scheduler, _id, delay = 0) {
810
+ return intervalProvider.setInterval(scheduler.flush.bind(scheduler, this), delay);
811
+ }
812
+ recycleAsyncId(_scheduler, id, delay = 0) {
813
+ if (delay != null && this.delay === delay && this.pending === false) {
814
+ return id;
815
+ }
816
+ intervalProvider.clearInterval(id);
817
+ return undefined;
818
+ }
819
+ execute(state, delay) {
820
+ if (this.closed) {
821
+ return new Error('executing a cancelled action');
822
+ }
823
+ this.pending = false;
824
+ const error = this._execute(state, delay);
825
+ if (error) {
826
+ return error;
827
+ }
828
+ else if (this.pending === false && this.id != null) {
829
+ this.id = this.recycleAsyncId(this.scheduler, this.id, null);
830
+ }
831
+ }
832
+ _execute(state, _delay) {
833
+ let errored = false;
834
+ let errorValue;
835
+ try {
836
+ this.work(state);
837
+ }
838
+ catch (e) {
839
+ errored = true;
840
+ errorValue = e ? e : new Error('Scheduled action threw falsy error');
841
+ }
842
+ if (errored) {
843
+ this.unsubscribe();
844
+ return errorValue;
845
+ }
846
+ }
847
+ unsubscribe() {
848
+ if (!this.closed) {
849
+ const { id, scheduler } = this;
850
+ const { actions } = scheduler;
851
+ this.work = this.state = this.scheduler = null;
852
+ this.pending = false;
853
+ arrRemove(actions, this);
854
+ if (id != null) {
855
+ this.id = this.recycleAsyncId(scheduler, id, null);
856
+ }
857
+ this.delay = null;
858
+ super.unsubscribe();
859
+ }
860
+ }
861
+ }
862
+
863
+ class Scheduler {
864
+ constructor(schedulerActionCtor, now = Scheduler.now) {
865
+ this.schedulerActionCtor = schedulerActionCtor;
866
+ this.now = now;
867
+ }
868
+ schedule(work, delay = 0, state) {
869
+ return new this.schedulerActionCtor(this, work).schedule(state, delay);
870
+ }
871
+ }
872
+ Scheduler.now = dateTimestampProvider.now;
873
+
874
+ class AsyncScheduler extends Scheduler {
875
+ constructor(SchedulerAction, now = Scheduler.now) {
876
+ super(SchedulerAction, now);
877
+ this.actions = [];
878
+ this._active = false;
879
+ this._scheduled = undefined;
880
+ }
881
+ flush(action) {
882
+ const { actions } = this;
883
+ if (this._active) {
884
+ actions.push(action);
885
+ return;
886
+ }
887
+ let error;
888
+ this._active = true;
889
+ do {
890
+ if ((error = action.execute(action.state, action.delay))) {
891
+ break;
892
+ }
893
+ } while ((action = actions.shift()));
894
+ this._active = false;
895
+ if (error) {
896
+ while ((action = actions.shift())) {
897
+ action.unsubscribe();
898
+ }
899
+ throw error;
900
+ }
901
+ }
902
+ }
903
+
904
+ const asyncScheduler = new AsyncScheduler(AsyncAction);
905
+
906
+ function debounceTime(dueTime, scheduler = asyncScheduler) {
907
+ return operate((source, subscriber) => {
908
+ let activeTask = null;
909
+ let lastValue = null;
910
+ let lastTime = null;
911
+ const emit = () => {
912
+ if (activeTask) {
913
+ activeTask.unsubscribe();
914
+ activeTask = null;
915
+ const value = lastValue;
916
+ lastValue = null;
917
+ subscriber.next(value);
918
+ }
919
+ };
920
+ function emitWhenIdle() {
921
+ const targetTime = lastTime + dueTime;
922
+ const now = scheduler.now();
923
+ if (now < targetTime) {
924
+ activeTask = this.schedule(undefined, targetTime - now);
925
+ subscriber.add(activeTask);
926
+ return;
927
+ }
928
+ emit();
929
+ }
930
+ source.subscribe(createOperatorSubscriber(subscriber, (value) => {
931
+ lastValue = value;
932
+ lastTime = scheduler.now();
933
+ if (!activeTask) {
934
+ activeTask = scheduler.schedule(emitWhenIdle, dueTime);
935
+ subscriber.add(activeTask);
936
+ }
937
+ }, () => {
938
+ emit();
939
+ subscriber.complete();
940
+ }, undefined, () => {
941
+ lastValue = activeTask = null;
942
+ }));
943
+ });
944
+ }
945
+
946
+ function distinctUntilChanged(comparator, keySelector = identity) {
947
+ comparator = comparator !== null && comparator !== void 0 ? comparator : defaultCompare;
948
+ return operate((source, subscriber) => {
949
+ let previousKey;
950
+ let first = true;
951
+ source.subscribe(createOperatorSubscriber(subscriber, (value) => {
952
+ const currentKey = keySelector(value);
953
+ if (first || !comparator(previousKey, currentKey)) {
954
+ first = false;
955
+ previousKey = currentKey;
956
+ subscriber.next(value);
957
+ }
958
+ }));
959
+ });
960
+ }
961
+ function defaultCompare(a, b) {
962
+ return a === b;
963
+ }
964
+
965
+ const tableHeaderComponentCss = ".visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!important}.bottom-0{bottom:0!important}.left-0{left:0!important}.m-0{margin:0!important}.ml-1{margin-left:.25rem!important}.block{display:block!important}.flex{display:flex!important}.table{display:table!important}.grid{display:grid!important}.hidden{display:none!important}.w-1{width:.25rem!important}.w-2{width:.5rem!important}.w-3{width:.75rem!important}.w-4{width:1rem!important}.w-5{width:1.25rem!important}.w-6{width:1.5rem!important}.w-7{width:1.75rem!important}.w-8{width:2rem!important}.w-9{width:2.25rem!important}.w-10{width:2.5rem!important}.w-11{width:2.75rem!important}.w-auto{width:auto!important}.w-full{width:100%!important}.flex-col{flex-direction:column!important}.items-center{align-items:center!important}.justify-start{justify-content:flex-start!important}.justify-end{justify-content:flex-end!important}.justify-center{justify-content:center!important}.gap-4{gap:1rem!important}.justify-self-start{justify-self:start!important}.justify-self-end{justify-self:end!important}.border{border-width:1px!important}.border-solid{border-style:solid!important}.border-transparent{border-color:transparent!important}.border-t-mystic-dark{--tw-border-opacity:1!important;border-top-color:rgb(218 230 240/var(--tw-border-opacity))!important}.bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity))!important}.p-4{padding:1rem!important}.font-semibold{font-weight:600!important}.text-storm-dark{--tw-text-opacity:1!important;color:rgb(39 40 56/var(--tw-text-opacity))!important}.blur{--tw-blur:blur(8px)!important}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}*{box-sizing:border-box}:host{display:flex;flex-direction:column;gap:1rem;padding:1rem;width:100%}@media (min-width:64rem){:host{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:1.5rem}}:host p-segment-container{grid-column-start:1;justify-self:start}:host>div{grid-column-start:2}.w-1\\/12{width:8.333333%!important}.w-2\\/12{width:16.666667%!important}.w-3\\/12{width:25%!important}.w-4\\/12{width:33.333333%!important}.w-5\\/12{width:41.666667%!important}.w-6\\/12{width:50%!important}.w-7\\/12{width:58.333333%!important}.w-8\\/12{width:66.666667%!important}.w-9\\/12{width:75%!important}.w-10\\/12{width:83.333333%!important}.w-11\\/12{width:91.666667%!important}@media (min-width:40rem){.tablet\\:w-1\\/12{width:8.333333%!important}.tablet\\:w-2\\/12{width:16.666667%!important}.tablet\\:w-3\\/12{width:25%!important}.tablet\\:w-4\\/12{width:33.333333%!important}.tablet\\:w-5\\/12{width:41.666667%!important}.tablet\\:w-6\\/12{width:50%!important}.tablet\\:w-7\\/12{width:58.333333%!important}.tablet\\:w-8\\/12{width:66.666667%!important}.tablet\\:w-9\\/12{width:75%!important}.tablet\\:w-10\\/12{width:83.333333%!important}.tablet\\:w-11\\/12{width:91.666667%!important}}@media (min-width:64rem){.desktop-xs\\:w-1\\/12{width:8.333333%!important}.desktop-xs\\:w-2\\/12{width:16.666667%!important}.desktop-xs\\:w-3\\/12{width:25%!important}.desktop-xs\\:w-4\\/12{width:33.333333%!important}.desktop-xs\\:w-5\\/12{width:41.666667%!important}.desktop-xs\\:w-6\\/12{width:50%!important}.desktop-xs\\:w-7\\/12{width:58.333333%!important}.desktop-xs\\:w-8\\/12{width:66.666667%!important}.desktop-xs\\:w-9\\/12{width:75%!important}.desktop-xs\\:w-10\\/12{width:83.333333%!important}.desktop-xs\\:w-11\\/12{width:91.666667%!important}}@media (min-width:80rem){.desktop-sm\\:w-1\\/12{width:8.333333%!important}.desktop-sm\\:w-2\\/12{width:16.666667%!important}.desktop-sm\\:w-3\\/12{width:25%!important}.desktop-sm\\:w-4\\/12{width:33.333333%!important}.desktop-sm\\:w-5\\/12{width:41.666667%!important}.desktop-sm\\:w-6\\/12{width:50%!important}.desktop-sm\\:w-7\\/12{width:58.333333%!important}.desktop-sm\\:w-8\\/12{width:66.666667%!important}.desktop-sm\\:w-9\\/12{width:75%!important}.desktop-sm\\:w-10\\/12{width:83.333333%!important}.desktop-sm\\:w-11\\/12{width:91.666667%!important}}@media (min-width:85.375rem){.desktop\\:w-1\\/12{width:8.333333%!important}.desktop\\:w-2\\/12{width:16.666667%!important}.desktop\\:w-3\\/12{width:25%!important}.desktop\\:w-4\\/12{width:33.333333%!important}.desktop\\:w-5\\/12{width:41.666667%!important}.desktop\\:w-6\\/12{width:50%!important}.desktop\\:w-7\\/12{width:58.333333%!important}.desktop\\:w-8\\/12{width:66.666667%!important}.desktop\\:w-9\\/12{width:75%!important}.desktop\\:w-10\\/12{width:83.333333%!important}.desktop\\:w-11\\/12{width:91.666667%!important}}@media (min-width:90rem){.desktop-lg\\:w-1\\/12{width:8.333333%!important}.desktop-lg\\:w-2\\/12{width:16.666667%!important}.desktop-lg\\:w-3\\/12{width:25%!important}.desktop-lg\\:w-4\\/12{width:33.333333%!important}.desktop-lg\\:w-5\\/12{width:41.666667%!important}.desktop-lg\\:w-6\\/12{width:50%!important}.desktop-lg\\:w-7\\/12{width:58.333333%!important}.desktop-lg\\:w-8\\/12{width:66.666667%!important}.desktop-lg\\:w-9\\/12{width:75%!important}.desktop-lg\\:w-10\\/12{width:83.333333%!important}.desktop-lg\\:w-11\\/12{width:91.666667%!important}}@media (min-width:120rem){.desktop-xl\\:w-1\\/12{width:8.333333%!important}.desktop-xl\\:w-2\\/12{width:16.666667%!important}.desktop-xl\\:w-3\\/12{width:25%!important}.desktop-xl\\:w-4\\/12{width:33.333333%!important}.desktop-xl\\:w-5\\/12{width:41.666667%!important}.desktop-xl\\:w-6\\/12{width:50%!important}.desktop-xl\\:w-7\\/12{width:58.333333%!important}.desktop-xl\\:w-8\\/12{width:66.666667%!important}.desktop-xl\\:w-9\\/12{width:75%!important}.desktop-xl\\:w-10\\/12{width:83.333333%!important}.desktop-xl\\:w-11\\/12{width:91.666667%!important}}@media (min-width:64rem){.desktop-xs\\:flex{display:flex!important}.desktop-xs\\:hidden{display:none!important}.desktop-xs\\:w-auto{width:auto!important}.desktop-xs\\:flex-row{flex-direction:row!important}}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}";
966
+
967
+ const TableHeader = class {
968
+ constructor(hostRef) {
969
+ registerInstance(this, hostRef);
970
+ this.quickFilter = createEvent(this, "quickFilter", 7);
971
+ this.queryChange = createEvent(this, "queryChange", 7);
972
+ this.filter = createEvent(this, "filter", 7);
973
+ this.edit = createEvent(this, "edit", 7);
974
+ /**
975
+ * Quick filters to show
976
+ */
977
+ this.quickFilters = [];
978
+ /**
979
+ * Wether to show the search input
980
+ */
981
+ this.enableSearch = true;
982
+ /**
983
+ * The amount of items that are selected
984
+ */
985
+ this.itemsSelectedAmount = 0;
986
+ /**
987
+ * Wether to show the filter button
988
+ */
989
+ this.enableFilter = true;
990
+ /**
991
+ * The template for the filter button text
992
+ */
993
+ this.filterButtonTemplate = () => formatTranslation(this._locales.filter);
994
+ /**
995
+ * Wether to show the edit button
996
+ */
997
+ this.enableEdit = true;
998
+ /**
999
+ * Wether to enable the edit button
1000
+ */
1001
+ this.canEdit = false;
1002
+ /**
1003
+ * The template for the edit button text
1004
+ */
1005
+ this.editButtonTemplate = (amount) => formatTranslation(amount === 0
1006
+ ? this._locales.edit
1007
+ : amount === 1
1008
+ ? this._locales.edit_single
1009
+ : this._locales.edit_plural, { amount });
1010
+ /**
1011
+ * Locales used for this component
1012
+ */
1013
+ this._locales = {};
1014
+ this._queryObserver = new Subject();
1015
+ }
1016
+ componentWillLoad() {
1017
+ this._setLocales();
1018
+ }
1019
+ componentDidLoad() {
1020
+ this._queryObserver
1021
+ .pipe(debounceTime(300), distinctUntilChanged())
1022
+ .subscribe((value) => this.queryChange.emit(value));
1023
+ }
1024
+ render() {
1025
+ return (h(Host, { class: "p-table-header" }, this.quickFilters.length > 0 && (h("p-segment-container", { class: "hidden desktop-xs:flex" }, this.quickFilters.map((item) => (h("p-segment-item", { active: item.identifier ===
1026
+ this.activeQuickFilterIdentifier, onClick: () => this.quickFilter.emit(item) }, item.text, " ", (item === null || item === void 0 ? void 0 : item.count) && `(${item.count})`))))), h("div", { class: "flex flex-col desktop-xs:flex-row gap-4 justify-end justify-self-end" }, this.enableSearch && (h("p-input-group", { icon: "search", size: "small" }, h("input", { type: "text", slot: "input", placeholder: "Zoeken...", value: this.query, onInput: (ev) => this._queryObserver.next(ev.target.value) }))), this.enableFilter && (h("p-button", { icon: "filter", variant: "secondary", size: "small", class: "w-full desktop-xs:w-auto", onClick: () => this.filter.emit() }, this.filterButtonTemplate(), this.selectedFiltersAmount && (h("p-tag", { variant: "negative", circle: false, class: "ml-1" }, this.selectedFiltersAmount)))), this.enableEdit && (h("div", null, this._buttonTemplate(), this.canEdit && (h("div", { class: "fixed bottom-0 left-0 w-full p-4 bg-white border border-solid border-transparent border-t-mystic-dark block desktop-xs:hidden" }, this._buttonTemplate(true))))))));
1027
+ }
1028
+ async _setLocales() {
1029
+ this._locales = await getLocaleComponentStrings(this._el);
1030
+ }
1031
+ _buttonTemplate(mobile = false) {
1032
+ return (h("p-button", { class: !mobile && 'hidden desktop-xs:flex', icon: "pencil", size: "small", width: mobile ? 'full' : 'auto', disabled: !this.canEdit, onClick: () => this.edit.emit() }, this.editButtonTemplate(mobile ? this.itemsSelectedAmount : 0)));
1033
+ }
1034
+ get _el() { return getElement(this); }
1035
+ };
1036
+ TableHeader.style = tableHeaderComponentCss;
1037
+
1038
+ const tableRowComponentCss = ".visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!important}.bottom-0{bottom:0!important}.left-0{left:0!important}.m-0{margin:0!important}.ml-1{margin-left:.25rem!important}.block{display:block!important}.flex{display:flex!important}.table{display:table!important}.hidden{display:none!important}.w-full{width:100%!important}.w-1{width:.25rem!important}.w-2{width:.5rem!important}.w-3{width:.75rem!important}.w-4{width:1rem!important}.w-5{width:1.25rem!important}.w-6{width:1.5rem!important}.w-7{width:1.75rem!important}.w-8{width:2rem!important}.w-9{width:2.25rem!important}.w-10{width:2.5rem!important}.w-11{width:2.75rem!important}.w-auto{width:auto!important}.flex-col{flex-direction:column!important}.flex-nowrap{flex-wrap:nowrap!important}.items-center{align-items:center!important}.justify-start{justify-content:flex-start!important}.justify-end{justify-content:flex-end!important}.justify-center{justify-content:center!important}.justify-between{justify-content:space-between!important}.gap-4{gap:1rem!important}.justify-self-end{justify-self:end!important}.border{border-width:1px!important}.border-y{border-bottom-width:1px!important;border-top-width:1px!important}.border-solid{border-style:solid!important}.border-transparent{border-color:transparent!important}.border-y-mystic-dark{border-bottom-color:rgb(218 230 240/var(--tw-border-opacity))!important}.border-t-mystic-dark,.border-y-mystic-dark{--tw-border-opacity:1!important;border-top-color:rgb(218 230 240/var(--tw-border-opacity))!important}.bg-indigo-light{background-color:rgb(241 246 255/var(--tw-bg-opacity))!important}.bg-indigo-light,.bg-white{--tw-bg-opacity:1!important}.bg-white{background-color:rgb(255 255 255/var(--tw-bg-opacity))!important}.p-4{padding:1rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.font-semibold{font-weight:600!important}.uppercase{text-transform:uppercase!important}.text-storm-dark{--tw-text-opacity:1!important;color:rgb(39 40 56/var(--tw-text-opacity))!important}.blur{--tw-blur:blur(8px)!important}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}*{box-sizing:border-box}:host{--tw-text-opacity:1;color:rgb(128 130 158/var(--tw-text-opacity));display:flex;flex-direction:column;font-size:.875rem;line-height:1.25rem;padding-left:1.5rem;padding-right:1.5rem;width:100%}:host .content{align-items:center;display:flex;flex-wrap:nowrap;gap:1rem;justify-content:space-between;padding-bottom:1.5rem;padding-top:1.5rem;width:100%}:host(.variant-header){--tw-bg-opacity:1;--tw-text-opacity:1;--tw-border-opacity:1!important;background-color:rgb(252 253 254/var(--tw-bg-opacity));border-bottom:1px solid rgb(218 230 240/var(--tw-border-opacity))!important;border-left-style:solid!important;border-right-style:solid!important;border-top:1px solid rgb(218 230 240/var(--tw-border-opacity))!important;color:rgb(152 154 183/var(--tw-text-opacity));font-size:.75rem;font-weight:600;line-height:1rem;text-transform:uppercase}:host(.variant-header) .content{padding-bottom:.5rem;padding-top:.5rem}:host(.enable-hover:hover){--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity));cursor:pointer}.w-1\\/12{width:8.333333%!important}.w-2\\/12{width:16.666667%!important}.w-3\\/12{width:25%!important}.w-4\\/12{width:33.333333%!important}.w-5\\/12{width:41.666667%!important}.w-6\\/12{width:50%!important}.w-7\\/12{width:58.333333%!important}.w-8\\/12{width:66.666667%!important}.w-9\\/12{width:75%!important}.w-10\\/12{width:83.333333%!important}.w-11\\/12{width:91.666667%!important}@media (min-width:40rem){.tablet\\:w-1\\/12{width:8.333333%!important}.tablet\\:w-2\\/12{width:16.666667%!important}.tablet\\:w-3\\/12{width:25%!important}.tablet\\:w-4\\/12{width:33.333333%!important}.tablet\\:w-5\\/12{width:41.666667%!important}.tablet\\:w-6\\/12{width:50%!important}.tablet\\:w-7\\/12{width:58.333333%!important}.tablet\\:w-8\\/12{width:66.666667%!important}.tablet\\:w-9\\/12{width:75%!important}.tablet\\:w-10\\/12{width:83.333333%!important}.tablet\\:w-11\\/12{width:91.666667%!important}}@media (min-width:64rem){.desktop-xs\\:w-1\\/12{width:8.333333%!important}.desktop-xs\\:w-2\\/12{width:16.666667%!important}.desktop-xs\\:w-3\\/12{width:25%!important}.desktop-xs\\:w-4\\/12{width:33.333333%!important}.desktop-xs\\:w-5\\/12{width:41.666667%!important}.desktop-xs\\:w-6\\/12{width:50%!important}.desktop-xs\\:w-7\\/12{width:58.333333%!important}.desktop-xs\\:w-8\\/12{width:66.666667%!important}.desktop-xs\\:w-9\\/12{width:75%!important}.desktop-xs\\:w-10\\/12{width:83.333333%!important}.desktop-xs\\:w-11\\/12{width:91.666667%!important}}@media (min-width:80rem){.desktop-sm\\:w-1\\/12{width:8.333333%!important}.desktop-sm\\:w-2\\/12{width:16.666667%!important}.desktop-sm\\:w-3\\/12{width:25%!important}.desktop-sm\\:w-4\\/12{width:33.333333%!important}.desktop-sm\\:w-5\\/12{width:41.666667%!important}.desktop-sm\\:w-6\\/12{width:50%!important}.desktop-sm\\:w-7\\/12{width:58.333333%!important}.desktop-sm\\:w-8\\/12{width:66.666667%!important}.desktop-sm\\:w-9\\/12{width:75%!important}.desktop-sm\\:w-10\\/12{width:83.333333%!important}.desktop-sm\\:w-11\\/12{width:91.666667%!important}}@media (min-width:85.375rem){.desktop\\:w-1\\/12{width:8.333333%!important}.desktop\\:w-2\\/12{width:16.666667%!important}.desktop\\:w-3\\/12{width:25%!important}.desktop\\:w-4\\/12{width:33.333333%!important}.desktop\\:w-5\\/12{width:41.666667%!important}.desktop\\:w-6\\/12{width:50%!important}.desktop\\:w-7\\/12{width:58.333333%!important}.desktop\\:w-8\\/12{width:66.666667%!important}.desktop\\:w-9\\/12{width:75%!important}.desktop\\:w-10\\/12{width:83.333333%!important}.desktop\\:w-11\\/12{width:91.666667%!important}}@media (min-width:90rem){.desktop-lg\\:w-1\\/12{width:8.333333%!important}.desktop-lg\\:w-2\\/12{width:16.666667%!important}.desktop-lg\\:w-3\\/12{width:25%!important}.desktop-lg\\:w-4\\/12{width:33.333333%!important}.desktop-lg\\:w-5\\/12{width:41.666667%!important}.desktop-lg\\:w-6\\/12{width:50%!important}.desktop-lg\\:w-7\\/12{width:58.333333%!important}.desktop-lg\\:w-8\\/12{width:66.666667%!important}.desktop-lg\\:w-9\\/12{width:75%!important}.desktop-lg\\:w-10\\/12{width:83.333333%!important}.desktop-lg\\:w-11\\/12{width:91.666667%!important}}@media (min-width:120rem){.desktop-xl\\:w-1\\/12{width:8.333333%!important}.desktop-xl\\:w-2\\/12{width:16.666667%!important}.desktop-xl\\:w-3\\/12{width:25%!important}.desktop-xl\\:w-4\\/12{width:33.333333%!important}.desktop-xl\\:w-5\\/12{width:41.666667%!important}.desktop-xl\\:w-6\\/12{width:50%!important}.desktop-xl\\:w-7\\/12{width:58.333333%!important}.desktop-xl\\:w-8\\/12{width:66.666667%!important}.desktop-xl\\:w-9\\/12{width:75%!important}.desktop-xl\\:w-10\\/12{width:83.333333%!important}.desktop-xl\\:w-11\\/12{width:91.666667%!important}}@media (min-width:64rem){.desktop-xs\\:flex{display:flex!important}.desktop-xs\\:hidden{display:none!important}.desktop-xs\\:w-auto{width:auto!important}.desktop-xs\\:flex-row{flex-direction:row!important}}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.border-t-mystic-dark{--tw-border-opacity:1!important;border-top-color:rgb(218 230 240/var(--tw-border-opacity))!important}";
1039
+
1040
+ const TableRow = class {
1041
+ constructor(hostRef) {
1042
+ registerInstance(this, hostRef);
1043
+ /**
1044
+ * Variant of the header
1045
+ */
1046
+ this.variant = 'default';
1047
+ /**
1048
+ * Enable hover
1049
+ */
1050
+ this.enableHover = true;
1051
+ }
1052
+ render() {
1053
+ return (h(Host, { class: `p-table-row variant-${this.variant} ${this.enableHover &&
1054
+ this.variant === 'default' &&
1055
+ 'enable-hover'}` }, h("div", { class: "content" }, h("slot", null)), this.variant === 'default' && h("p-divider", { class: "m-0" })));
1056
+ }
1057
+ };
1058
+ TableRow.style = tableRowComponentCss;
1059
+
1060
+ export { TableContainer as p_table_container, TableFooter as p_table_footer, TableHeader as p_table_header, TableRow as p_table_row };