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