@paperless/core 0.1.0-alpha.21 → 0.1.0-alpha.210

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