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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (341) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/assets/i18n/page-size-select.i18n.en.json +4 -0
  3. package/dist/assets/i18n/page-size-select.i18n.nl.json +4 -0
  4. package/dist/assets/i18n/table-footer.i18n.en.json +3 -0
  5. package/dist/assets/i18n/table-footer.i18n.nl.json +3 -0
  6. package/dist/assets/i18n/table-header.i18n.en.json +6 -0
  7. package/dist/assets/i18n/table-header.i18n.nl.json +6 -0
  8. package/dist/assets/icons/camera.svg +10 -0
  9. package/dist/build/index.esm.js +1 -0
  10. package/dist/build/p-0436439c.entry.js +1 -0
  11. package/dist/build/{p-e20a1842.entry.js → p-04b7fb67.entry.js} +1 -1
  12. package/dist/build/{p-ec2a5f95.entry.js → p-08ff155d.entry.js} +1 -1
  13. package/dist/build/p-09ea2a1a.js +1 -0
  14. package/dist/build/{p-c27046e6.entry.js → p-0ca1b35a.entry.js} +1 -1
  15. package/dist/build/p-0cf8e23a.entry.js +1 -0
  16. package/dist/build/p-11275959.entry.js +1 -0
  17. package/dist/{paperless/p-a5ebbd0c.entry.js → build/p-1d160328.entry.js} +1 -1
  18. package/dist/build/p-52f0e66c.entry.js +1 -0
  19. package/dist/build/p-5b893ad4.entry.js +1 -0
  20. package/dist/{paperless/p-41b72ca0.entry.js → build/p-5d768271.entry.js} +1 -1
  21. package/dist/build/{p-d32f2578.entry.js → p-5f233f4b.entry.js} +1 -1
  22. package/dist/build/p-6628b145.js +1 -0
  23. package/dist/{paperless/p-f38de980.entry.js → build/p-66b0c60c.entry.js} +1 -1
  24. package/dist/build/{p-8ac8a69d.entry.js → p-677d0647.entry.js} +1 -1
  25. package/dist/build/p-6c60fd3d.js +1 -0
  26. package/dist/{paperless/p-c59d9fc2.entry.js → build/p-721d414a.entry.js} +1 -1
  27. package/dist/build/{p-4336cbbc.entry.js → p-759b427a.entry.js} +1 -1
  28. package/dist/build/{p-bd50db3d.entry.js → p-7febed77.entry.js} +1 -1
  29. package/dist/build/p-8a6728d5.js +1 -0
  30. package/dist/build/{p-8b743795.entry.js → p-954e3737.entry.js} +1 -1
  31. package/dist/build/p-9d0a94fb.entry.js +1 -0
  32. package/dist/build/p-9d9dcf0c.entry.js +1 -0
  33. package/dist/build/p-a3902b42.entry.js +1 -0
  34. package/dist/build/p-a81035d0.js +2 -0
  35. package/dist/build/p-a93693cd.entry.js +1 -0
  36. package/dist/build/{p-42277d1e.entry.js → p-b12f4b10.entry.js} +1 -1
  37. package/dist/{paperless/p-3f6c9d44.entry.js → build/p-b2edfc61.entry.js} +1 -1
  38. package/dist/build/{p-54e0f74b.entry.js → p-b74773de.entry.js} +1 -1
  39. package/dist/{paperless/p-e9e20ac3.entry.js → build/p-cfe0f01b.entry.js} +1 -1
  40. package/dist/{paperless/p-2beaf0e8.entry.js → build/p-d2c6ba5f.entry.js} +1 -1
  41. package/dist/build/{p-f3fda8cd.entry.js → p-e2407e98.entry.js} +1 -1
  42. package/dist/build/p-e56512f0.entry.js +1 -0
  43. package/dist/{paperless/p-b645e414.entry.js → build/p-e633010e.entry.js} +1 -1
  44. package/dist/build/{p-92b6c76c.entry.js → p-ed08c398.entry.js} +1 -1
  45. package/dist/build/{p-1c9fe7e8.entry.js → p-f8fa3f28.entry.js} +1 -1
  46. package/dist/build/{p-c674026d.entry.js → p-f9d3bcb7.entry.js} +1 -1
  47. package/dist/build/paperless.css +101 -0
  48. package/dist/build/paperless.esm.js +1 -1
  49. package/dist/cjs/child-of-e472f812.js +9 -0
  50. package/dist/cjs/constants-a4459ec9.js +7 -0
  51. package/dist/cjs/{index-9d3b51c9.js → index-16bca782.js} +27 -34
  52. package/dist/cjs/index.cjs.js +12 -0
  53. package/dist/cjs/loader.cjs.js +2 -2
  54. package/dist/cjs/localization-791c9a22.js +61 -0
  55. package/dist/cjs/object-get-by-path-6dc21ed5.js +12 -0
  56. package/dist/cjs/p-accordion.cjs.entry.js +1 -1
  57. package/dist/cjs/p-avatar-group.cjs.entry.js +1 -1
  58. package/dist/cjs/p-avatar.cjs.entry.js +1 -1
  59. package/dist/cjs/p-button_3.cjs.entry.js +95 -78
  60. package/dist/cjs/p-card-body.cjs.entry.js +1 -1
  61. package/dist/cjs/p-card-container.cjs.entry.js +1 -1
  62. package/dist/cjs/p-card-header.cjs.entry.js +1 -1
  63. package/dist/cjs/p-content-slider.cjs.entry.js +1 -1
  64. package/dist/cjs/p-counter.cjs.entry.js +1 -1
  65. package/dist/cjs/p-divider.cjs.entry.js +2 -2
  66. package/dist/cjs/p-dropdown-menu-item_4.cjs.entry.js +264 -0
  67. package/dist/cjs/p-dropdown_2.cjs.entry.js +163 -0
  68. package/dist/cjs/p-helper_5.cjs.entry.js +138 -0
  69. package/dist/cjs/p-illustration.cjs.entry.js +1 -1
  70. package/dist/cjs/p-info-panel.cjs.entry.js +1 -1
  71. package/dist/cjs/p-layout.cjs.entry.js +1 -1
  72. package/dist/cjs/p-modal-backdrop_5.cjs.entry.js +1 -1
  73. package/dist/cjs/p-modal.cjs.entry.js +1 -1
  74. package/dist/cjs/p-navbar.cjs.entry.js +1 -1
  75. package/dist/cjs/p-navigation-item.cjs.entry.js +1 -1
  76. package/dist/cjs/p-profile.cjs.entry.js +1 -1
  77. package/dist/cjs/p-slider-indicator.cjs.entry.js +1 -1
  78. package/dist/cjs/p-status.cjs.entry.js +1 -1
  79. package/dist/cjs/p-stepper-item_2.cjs.entry.js +1 -1
  80. package/dist/cjs/p-stepper.cjs.entry.js +1 -1
  81. package/dist/cjs/p-tab-group.cjs.entry.js +1 -1
  82. package/dist/cjs/p-tab-item.cjs.entry.js +1 -1
  83. package/dist/cjs/p-table-body.cjs.entry.js +19 -0
  84. package/dist/cjs/p-table-container_4.cjs.entry.js +1067 -0
  85. package/dist/cjs/p-table-definition.cjs.entry.js +36 -0
  86. package/dist/cjs/p-table.cjs.entry.js +328 -0
  87. package/dist/cjs/p-tooltip.cjs.entry.js +2 -2
  88. package/dist/cjs/paperless.cjs.js +2 -2
  89. package/dist/collection/assets/icons/camera.svg +10 -0
  90. package/dist/collection/collection-manifest.json +9 -1
  91. package/dist/collection/components/atoms/button/button.component.css +19 -7
  92. package/dist/collection/components/atoms/button/button.component.js +29 -5
  93. package/dist/collection/components/atoms/divider/divider.component.css +1 -1
  94. package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.css +2 -2
  95. package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.css +1 -1
  96. package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js +1 -1
  97. package/dist/collection/components/atoms/helper/helper.component.css +1 -1
  98. package/dist/collection/components/atoms/icon/icon.component.css +1 -1
  99. package/dist/collection/components/atoms/icon/icon.component.js +3 -3
  100. package/dist/collection/components/atoms/loader/loader.component.css +1 -1
  101. package/dist/collection/components/atoms/pagination-item/pagination-item.component.css +1 -1
  102. package/dist/collection/components/atoms/segment-container/segment-container.component.css +1 -1
  103. package/dist/collection/components/atoms/segment-item/segment-item.component.css +1 -1
  104. package/dist/collection/components/atoms/segment-item/segment-item.component.js +2 -2
  105. package/dist/collection/components/atoms/status/status.component.js +2 -2
  106. package/dist/collection/components/atoms/table-body/table-body.component.css +3 -0
  107. package/dist/collection/components/atoms/table-body/table-body.component.js +15 -0
  108. package/dist/collection/components/atoms/table-container/table-container.component.css +5 -0
  109. package/dist/collection/components/atoms/table-container/table-container.component.js +15 -0
  110. package/dist/collection/components/atoms/tag/tag.component.css +1 -1
  111. package/dist/collection/components/atoms/tooltip/tooltip.component.css +1 -1
  112. package/dist/collection/components/helpers/table-definition/table-definition.component.js +159 -0
  113. package/dist/collection/components/molecules/dropdown/dropdown.component.css +1 -1
  114. package/dist/collection/components/molecules/dropdown/dropdown.component.js +45 -2
  115. package/dist/collection/components/molecules/input-group/input-group.component.css +72 -1
  116. package/dist/collection/components/molecules/input-group/input-group.component.js +36 -5
  117. package/dist/collection/components/molecules/navigation-item/navigation-item.component.js +1 -1
  118. package/dist/collection/components/molecules/page-size-select/constants.js +2 -0
  119. package/dist/collection/components/molecules/page-size-select/page-size-select.component.js +195 -0
  120. package/dist/collection/components/molecules/pagination/pagination.component.css +1 -1
  121. package/dist/collection/components/molecules/pagination/pagination.component.js +25 -3
  122. package/dist/collection/components/molecules/table-footer/table-footer.component.css +30 -0
  123. package/dist/collection/components/molecules/table-footer/table-footer.component.js +244 -0
  124. package/dist/collection/components/molecules/table-header/table-header.component.css +16 -0
  125. package/dist/collection/components/molecules/table-header/table-header.component.js +368 -0
  126. package/dist/collection/components/molecules/table-row/table-row.component.css +21 -0
  127. package/dist/collection/components/molecules/table-row/table-row.component.js +67 -0
  128. package/dist/collection/components/organisms/table/table.component.css +3 -0
  129. package/dist/collection/components/organisms/table/table.component.js +879 -0
  130. package/dist/collection/index.js +2 -1
  131. package/dist/collection/types/index.js +2 -0
  132. package/dist/collection/{utils/types.js → types/table.js} +0 -0
  133. package/dist/collection/types/tailwind.js +1 -0
  134. package/dist/collection/utils/icons.js +2 -0
  135. package/dist/collection/utils/index.js +5 -0
  136. package/dist/collection/utils/localization.js +56 -0
  137. package/dist/collection/utils/object-get-by-path.js +8 -0
  138. package/dist/components/button.component.js +9 -3
  139. package/dist/components/divider.component.js +1 -1
  140. package/dist/components/dropdown-menu-container.component.js +1 -1
  141. package/dist/components/dropdown-menu-item.component.js +43 -0
  142. package/dist/components/dropdown.component.js +15 -5
  143. package/dist/components/helper.component.js +1 -1
  144. package/dist/components/icon.component.js +13 -1
  145. package/dist/components/index.d.ts +8 -0
  146. package/dist/components/index.js +10 -0
  147. package/dist/components/input-group.component.js +107 -0
  148. package/dist/components/loader.component.js +1 -1
  149. package/dist/components/localization.js +58 -0
  150. package/dist/components/p-dropdown-menu-item.js +1 -41
  151. package/dist/components/p-input-group.js +1 -91
  152. package/dist/components/p-page-size-select.d.ts +11 -0
  153. package/dist/components/p-page-size-select.js +6 -0
  154. package/dist/components/p-pagination.js +1 -195
  155. package/dist/components/p-segment-container.js +1 -27
  156. package/dist/components/p-segment-item.js +1 -49
  157. package/dist/components/p-table-body.d.ts +11 -0
  158. package/dist/components/p-table-body.js +33 -0
  159. package/dist/components/p-table-container.d.ts +11 -0
  160. package/dist/components/p-table-container.js +6 -0
  161. package/dist/components/p-table-definition.d.ts +11 -0
  162. package/dist/components/p-table-definition.js +57 -0
  163. package/dist/components/p-table-footer.d.ts +11 -0
  164. package/dist/components/p-table-footer.js +6 -0
  165. package/dist/components/p-table-header.d.ts +11 -0
  166. package/dist/components/p-table-header.js +6 -0
  167. package/dist/components/p-table-row.d.ts +11 -0
  168. package/dist/components/p-table-row.js +6 -0
  169. package/dist/components/p-table.d.ts +11 -0
  170. package/dist/components/p-table.js +492 -0
  171. package/dist/components/p-tag.js +1 -39
  172. package/dist/components/page-size-select.component.js +118 -0
  173. package/dist/components/pagination-item.component.js +1 -1
  174. package/dist/components/pagination.component.js +202 -0
  175. package/dist/components/segment-container.component.js +29 -0
  176. package/dist/components/segment-item.component.js +51 -0
  177. package/dist/components/table-container.component.js +30 -0
  178. package/dist/components/table-footer.component.js +139 -0
  179. package/dist/components/table-header.component.js +1050 -0
  180. package/dist/components/table-row.component.js +49 -0
  181. package/dist/components/tag.component.js +41 -0
  182. package/dist/components/tooltip.component.js +1 -1
  183. package/dist/esm/child-of-90a8c4b5.js +7 -0
  184. package/dist/esm/constants-826f9460.js +4 -0
  185. package/dist/esm/{index-9062156b.js → index-1ac329a8.js} +27 -34
  186. package/dist/esm/index.js +3 -1
  187. package/dist/esm/loader.js +2 -2
  188. package/dist/esm/localization-550c043d.js +58 -0
  189. package/dist/esm/object-get-by-path-d6427a61.js +10 -0
  190. package/dist/esm/p-accordion.entry.js +1 -1
  191. package/dist/esm/p-avatar-group.entry.js +1 -1
  192. package/dist/esm/p-avatar.entry.js +1 -1
  193. package/dist/esm/p-button_3.entry.js +95 -78
  194. package/dist/esm/p-card-body.entry.js +1 -1
  195. package/dist/esm/p-card-container.entry.js +1 -1
  196. package/dist/esm/p-card-header.entry.js +1 -1
  197. package/dist/esm/p-content-slider.entry.js +1 -1
  198. package/dist/esm/p-counter.entry.js +1 -1
  199. package/dist/esm/p-divider.entry.js +2 -2
  200. package/dist/esm/p-dropdown-menu-item_4.entry.js +257 -0
  201. package/dist/esm/p-dropdown_2.entry.js +158 -0
  202. package/dist/esm/p-helper_5.entry.js +130 -0
  203. package/dist/esm/p-illustration.entry.js +1 -1
  204. package/dist/esm/p-info-panel.entry.js +1 -1
  205. package/dist/esm/p-layout.entry.js +1 -1
  206. package/dist/esm/p-modal-backdrop_5.entry.js +1 -1
  207. package/dist/esm/p-modal.entry.js +1 -1
  208. package/dist/esm/p-navbar.entry.js +1 -1
  209. package/dist/esm/p-navigation-item.entry.js +1 -1
  210. package/dist/esm/p-profile.entry.js +1 -1
  211. package/dist/esm/p-slider-indicator.entry.js +1 -1
  212. package/dist/esm/p-status.entry.js +1 -1
  213. package/dist/esm/p-stepper-item_2.entry.js +1 -1
  214. package/dist/esm/p-stepper.entry.js +1 -1
  215. package/dist/esm/p-tab-group.entry.js +1 -1
  216. package/dist/esm/p-tab-item.entry.js +1 -1
  217. package/dist/esm/p-table-body.entry.js +15 -0
  218. package/dist/esm/p-table-container_4.entry.js +1060 -0
  219. package/dist/esm/p-table-definition.entry.js +32 -0
  220. package/dist/esm/p-table.entry.js +324 -0
  221. package/dist/esm/p-tooltip.entry.js +2 -2
  222. package/dist/esm/paperless.js +2 -2
  223. package/dist/index.html +1 -1
  224. package/dist/paperless/index.esm.js +1 -0
  225. package/dist/paperless/p-0436439c.entry.js +1 -0
  226. package/dist/paperless/{p-e20a1842.entry.js → p-04b7fb67.entry.js} +1 -1
  227. package/dist/paperless/{p-ec2a5f95.entry.js → p-08ff155d.entry.js} +1 -1
  228. package/dist/paperless/p-09ea2a1a.js +1 -0
  229. package/dist/paperless/{p-c27046e6.entry.js → p-0ca1b35a.entry.js} +1 -1
  230. package/dist/paperless/p-0cf8e23a.entry.js +1 -0
  231. package/dist/paperless/p-11275959.entry.js +1 -0
  232. package/dist/{build/p-a5ebbd0c.entry.js → paperless/p-1d160328.entry.js} +1 -1
  233. package/dist/paperless/p-52f0e66c.entry.js +1 -0
  234. package/dist/paperless/p-5b893ad4.entry.js +1 -0
  235. package/dist/{build/p-41b72ca0.entry.js → paperless/p-5d768271.entry.js} +1 -1
  236. package/dist/paperless/{p-d32f2578.entry.js → p-5f233f4b.entry.js} +1 -1
  237. package/dist/paperless/p-6628b145.js +1 -0
  238. package/dist/{build/p-f38de980.entry.js → paperless/p-66b0c60c.entry.js} +1 -1
  239. package/dist/paperless/{p-8ac8a69d.entry.js → p-677d0647.entry.js} +1 -1
  240. package/dist/paperless/p-6c60fd3d.js +1 -0
  241. package/dist/{build/p-c59d9fc2.entry.js → paperless/p-721d414a.entry.js} +1 -1
  242. package/dist/paperless/{p-4336cbbc.entry.js → p-759b427a.entry.js} +1 -1
  243. package/dist/paperless/{p-bd50db3d.entry.js → p-7febed77.entry.js} +1 -1
  244. package/dist/paperless/p-8a6728d5.js +1 -0
  245. package/dist/paperless/{p-8b743795.entry.js → p-954e3737.entry.js} +1 -1
  246. package/dist/paperless/p-9d0a94fb.entry.js +1 -0
  247. package/dist/paperless/p-9d9dcf0c.entry.js +1 -0
  248. package/dist/paperless/p-a3902b42.entry.js +1 -0
  249. package/dist/paperless/p-a81035d0.js +2 -0
  250. package/dist/paperless/p-a93693cd.entry.js +1 -0
  251. package/dist/paperless/{p-42277d1e.entry.js → p-b12f4b10.entry.js} +1 -1
  252. package/dist/{build/p-3f6c9d44.entry.js → paperless/p-b2edfc61.entry.js} +1 -1
  253. package/dist/paperless/{p-54e0f74b.entry.js → p-b74773de.entry.js} +1 -1
  254. package/dist/{build/p-e9e20ac3.entry.js → paperless/p-cfe0f01b.entry.js} +1 -1
  255. package/dist/{build/p-2beaf0e8.entry.js → paperless/p-d2c6ba5f.entry.js} +1 -1
  256. package/dist/paperless/{p-f3fda8cd.entry.js → p-e2407e98.entry.js} +1 -1
  257. package/dist/paperless/p-e56512f0.entry.js +1 -0
  258. package/dist/{build/p-b645e414.entry.js → paperless/p-e633010e.entry.js} +1 -1
  259. package/dist/paperless/{p-92b6c76c.entry.js → p-ed08c398.entry.js} +1 -1
  260. package/dist/paperless/{p-1c9fe7e8.entry.js → p-f8fa3f28.entry.js} +1 -1
  261. package/dist/paperless/{p-c674026d.entry.js → p-f9d3bcb7.entry.js} +1 -1
  262. package/dist/paperless/paperless.css +214 -27
  263. package/dist/paperless/paperless.esm.js +1 -1
  264. package/dist/sw.js +1 -1
  265. package/dist/sw.js.map +1 -1
  266. package/dist/types/components/atoms/button/button.component.d.ts +9 -1
  267. package/dist/types/components/atoms/icon/icon.component.d.ts +1 -1
  268. package/dist/types/components/atoms/segment-item/segment-item.component.d.ts +1 -1
  269. package/dist/types/components/atoms/status/status.component.d.ts +1 -1
  270. package/dist/types/components/atoms/table-body/table-body.component.d.ts +3 -0
  271. package/dist/types/components/atoms/table-container/table-container.component.d.ts +3 -0
  272. package/dist/types/components/helpers/table-definition/table-definition.component.d.ts +48 -0
  273. package/dist/types/components/molecules/dropdown/dropdown.component.d.ts +8 -0
  274. package/dist/types/components/molecules/input-group/input-group.component.d.ts +7 -1
  275. package/dist/types/components/molecules/page-size-select/constants.d.ts +2 -0
  276. package/dist/types/components/molecules/page-size-select/page-size-select.component.d.ts +44 -0
  277. package/dist/types/components/molecules/pagination/pagination.component.d.ts +7 -0
  278. package/dist/types/components/molecules/table-footer/table-footer.component.d.ts +55 -0
  279. package/dist/types/components/molecules/table-header/table-header.component.d.ts +80 -0
  280. package/dist/types/components/molecules/table-row/table-row.component.d.ts +11 -0
  281. package/dist/types/components/organisms/table/table.component.d.ts +162 -0
  282. package/dist/types/components.d.ts +677 -1
  283. package/dist/types/index.d.ts +2 -0
  284. package/dist/types/types/index.d.ts +2 -0
  285. package/dist/types/types/table.d.ts +5 -0
  286. package/dist/types/{utils/types.d.ts → types/tailwind.d.ts} +0 -0
  287. package/dist/types/utils/icons.d.ts +1 -0
  288. package/dist/types/utils/index.d.ts +5 -0
  289. package/dist/types/utils/localization.d.ts +2 -0
  290. package/dist/types/utils/object-get-by-path.d.ts +1 -0
  291. package/package.json +4 -4
  292. package/dist/build/p-4deee897.entry.js +0 -1
  293. package/dist/build/p-58ce5668.entry.js +0 -1
  294. package/dist/build/p-6088647a.entry.js +0 -1
  295. package/dist/build/p-6835a9e3.entry.js +0 -1
  296. package/dist/build/p-705ab6e5.entry.js +0 -1
  297. package/dist/build/p-79d3258f.entry.js +0 -1
  298. package/dist/build/p-801d05b6.entry.js +0 -1
  299. package/dist/build/p-829c4101.entry.js +0 -1
  300. package/dist/build/p-938f52ee.entry.js +0 -1
  301. package/dist/build/p-9d98d0d9.entry.js +0 -1
  302. package/dist/build/p-a9e333cc.entry.js +0 -1
  303. package/dist/build/p-bc7e8cc4.js +0 -2
  304. package/dist/build/p-e2a98d53.entry.js +0 -1
  305. package/dist/build/p-e934ef94.entry.js +0 -1
  306. package/dist/cjs/p-dropdown-menu-container.cjs.entry.js +0 -19
  307. package/dist/cjs/p-dropdown-menu-item.cjs.entry.js +0 -23
  308. package/dist/cjs/p-dropdown.cjs.entry.js +0 -147
  309. package/dist/cjs/p-helper.cjs.entry.js +0 -23
  310. package/dist/cjs/p-input-group.cjs.entry.js +0 -51
  311. package/dist/cjs/p-pagination-item.cjs.entry.js +0 -23
  312. package/dist/cjs/p-pagination.cjs.entry.js +0 -171
  313. package/dist/cjs/p-segment-container.cjs.entry.js +0 -19
  314. package/dist/cjs/p-segment-item.cjs.entry.js +0 -29
  315. package/dist/cjs/p-tag.cjs.entry.js +0 -27
  316. package/dist/collection/utils/utils.js +0 -3
  317. package/dist/esm/p-dropdown-menu-container.entry.js +0 -15
  318. package/dist/esm/p-dropdown-menu-item.entry.js +0 -19
  319. package/dist/esm/p-dropdown.entry.js +0 -143
  320. package/dist/esm/p-helper.entry.js +0 -19
  321. package/dist/esm/p-input-group.entry.js +0 -47
  322. package/dist/esm/p-pagination-item.entry.js +0 -19
  323. package/dist/esm/p-pagination.entry.js +0 -167
  324. package/dist/esm/p-segment-container.entry.js +0 -15
  325. package/dist/esm/p-segment-item.entry.js +0 -25
  326. package/dist/esm/p-tag.entry.js +0 -23
  327. package/dist/paperless/p-4deee897.entry.js +0 -1
  328. package/dist/paperless/p-58ce5668.entry.js +0 -1
  329. package/dist/paperless/p-6088647a.entry.js +0 -1
  330. package/dist/paperless/p-6835a9e3.entry.js +0 -1
  331. package/dist/paperless/p-705ab6e5.entry.js +0 -1
  332. package/dist/paperless/p-79d3258f.entry.js +0 -1
  333. package/dist/paperless/p-801d05b6.entry.js +0 -1
  334. package/dist/paperless/p-829c4101.entry.js +0 -1
  335. package/dist/paperless/p-938f52ee.entry.js +0 -1
  336. package/dist/paperless/p-9d98d0d9.entry.js +0 -1
  337. package/dist/paperless/p-a9e333cc.entry.js +0 -1
  338. package/dist/paperless/p-bc7e8cc4.js +0 -2
  339. package/dist/paperless/p-e2a98d53.entry.js +0 -1
  340. package/dist/paperless/p-e934ef94.entry.js +0 -1
  341. package/dist/types/utils/utils.d.ts +0 -1
@@ -0,0 +1,195 @@
1
+ import { Component, Element, Event, h, Host, Listen, Prop, State, } from '@stencil/core';
2
+ import { formatTranslation, getLocaleComponentStrings, } from '../../../utils/localization';
3
+ import { defaultSize, defaultSizeOptions } from './constants';
4
+ export class PageSizeSelect {
5
+ constructor() {
6
+ /**
7
+ * The current page
8
+ */
9
+ this.size = defaultSize;
10
+ /**
11
+ * The available sizes
12
+ */
13
+ this.sizeOptions = defaultSizeOptions;
14
+ /**
15
+ * Chevron position
16
+ */
17
+ this.chevronPosition = 'start';
18
+ /**
19
+ * The size of the button
20
+ */
21
+ this.buttonSize = 'small';
22
+ /**
23
+ * The template for the data view
24
+ */
25
+ this.buttonTemplate = (size) => formatTranslation(this._locales.button, { size });
26
+ /**
27
+ * The template for the data view
28
+ */
29
+ this.itemTemplate = (size) => formatTranslation(this._locales.item, { size });
30
+ /**
31
+ * Locales used for this component
32
+ */
33
+ this._locales = {};
34
+ }
35
+ componentWillLoad() {
36
+ this._setLocales();
37
+ }
38
+ render() {
39
+ return (h(Host, { class: "p-page-size-select" },
40
+ h("p-dropdown", { placement: "top-start", chevronPosition: this.chevronPosition, chevronDirection: "down" },
41
+ h("p-button", { variant: "secondary", slot: "trigger", size: this.buttonSize }, this.buttonTemplate(this.size)),
42
+ h("slot", { slot: "items" }, this.sizeOptions.map((option) => (h("p-dropdown-menu-item", { active: option === this.size, onClick: () => this._changeSize(option) }, this.itemTemplate(option))))))));
43
+ }
44
+ async _setLocales() {
45
+ this._locales = await getLocaleComponentStrings(this._el);
46
+ }
47
+ _changeSize(s) {
48
+ if (!s) {
49
+ return;
50
+ }
51
+ this.size = s;
52
+ this.sizeChange.emit(this.size);
53
+ }
54
+ static get is() { return "p-page-size-select"; }
55
+ static get encapsulation() { return "shadow"; }
56
+ static get properties() { return {
57
+ "size": {
58
+ "type": "number",
59
+ "mutable": true,
60
+ "complexType": {
61
+ "original": "number",
62
+ "resolved": "number",
63
+ "references": {}
64
+ },
65
+ "required": false,
66
+ "optional": false,
67
+ "docs": {
68
+ "tags": [],
69
+ "text": "The current page"
70
+ },
71
+ "attribute": "size",
72
+ "reflect": true,
73
+ "defaultValue": "defaultSize"
74
+ },
75
+ "sizeOptions": {
76
+ "type": "unknown",
77
+ "mutable": false,
78
+ "complexType": {
79
+ "original": "number[]",
80
+ "resolved": "number[]",
81
+ "references": {}
82
+ },
83
+ "required": false,
84
+ "optional": false,
85
+ "docs": {
86
+ "tags": [],
87
+ "text": "The available sizes"
88
+ },
89
+ "defaultValue": "defaultSizeOptions"
90
+ },
91
+ "chevronPosition": {
92
+ "type": "string",
93
+ "mutable": false,
94
+ "complexType": {
95
+ "original": "'start' | 'end'",
96
+ "resolved": "\"end\" | \"start\"",
97
+ "references": {}
98
+ },
99
+ "required": false,
100
+ "optional": false,
101
+ "docs": {
102
+ "tags": [],
103
+ "text": "Chevron position"
104
+ },
105
+ "attribute": "chevron-position",
106
+ "reflect": false,
107
+ "defaultValue": "'start'"
108
+ },
109
+ "buttonSize": {
110
+ "type": "string",
111
+ "mutable": false,
112
+ "complexType": {
113
+ "original": "'small' | 'medium'",
114
+ "resolved": "\"medium\" | \"small\"",
115
+ "references": {}
116
+ },
117
+ "required": false,
118
+ "optional": false,
119
+ "docs": {
120
+ "tags": [],
121
+ "text": "The size of the button"
122
+ },
123
+ "attribute": "button-size",
124
+ "reflect": false,
125
+ "defaultValue": "'small'"
126
+ },
127
+ "buttonTemplate": {
128
+ "type": "unknown",
129
+ "mutable": false,
130
+ "complexType": {
131
+ "original": "templateFunc",
132
+ "resolved": "(value: number) => string",
133
+ "references": {
134
+ "templateFunc": {
135
+ "location": "local"
136
+ }
137
+ }
138
+ },
139
+ "required": false,
140
+ "optional": false,
141
+ "docs": {
142
+ "tags": [],
143
+ "text": "The template for the data view"
144
+ },
145
+ "defaultValue": "(size) =>\n formatTranslation(this._locales.button, { size })"
146
+ },
147
+ "itemTemplate": {
148
+ "type": "unknown",
149
+ "mutable": false,
150
+ "complexType": {
151
+ "original": "templateFunc",
152
+ "resolved": "(value: number) => string",
153
+ "references": {
154
+ "templateFunc": {
155
+ "location": "local"
156
+ }
157
+ }
158
+ },
159
+ "required": false,
160
+ "optional": false,
161
+ "docs": {
162
+ "tags": [],
163
+ "text": "The template for the data view"
164
+ },
165
+ "defaultValue": "(size) =>\n formatTranslation(this._locales.item, { size })"
166
+ }
167
+ }; }
168
+ static get states() { return {
169
+ "_locales": {}
170
+ }; }
171
+ static get events() { return [{
172
+ "method": "sizeChange",
173
+ "name": "sizeChange",
174
+ "bubbles": true,
175
+ "cancelable": true,
176
+ "composed": true,
177
+ "docs": {
178
+ "tags": [],
179
+ "text": "Event whenever the size changes"
180
+ },
181
+ "complexType": {
182
+ "original": "number",
183
+ "resolved": "number",
184
+ "references": {}
185
+ }
186
+ }]; }
187
+ static get elementRef() { return "_el"; }
188
+ static get listeners() { return [{
189
+ "name": "localeChanged",
190
+ "method": "_setLocales",
191
+ "target": "body",
192
+ "capture": false,
193
+ "passive": false
194
+ }]; }
195
+ }
@@ -1,3 +1,3 @@
1
1
  p-pagination {
2
2
  @apply flex;
3
- } .static{position:static!important}*{box-sizing:border-box}.static{position:static!important}*{box-sizing:border-box}
3
+ } .static{position:static!important}.flex{display:flex!important}.table{display:table!important}.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}.w-auto{width:auto!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}.font-semibold{font-weight:600!important}.text-storm-dark{--tw-text-opacity:1!important;color:rgb(39 40 56/var(--tw-text-opacity))!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}*{box-sizing:border-box}@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}}.static{position:static!important}*{box-sizing:border-box}.static{position:static!important}.hidden{display:none!important}*{box-sizing:border-box}@media (min-width:64rem){.desktop-xs\:flex{display:flex!important}}.static{position:static!important}.fixed{position:fixed!important}.bottom-0{bottom:0!important}.left-0{left:0!important}.ml-1{margin-left:.25rem!important}.block{display:block!important}.flex{display:flex!important}.hidden{display:none!important}.w-full{width:100%!important}.flex-col{flex-direction:column!important}.justify-end{justify-content:flex-end!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}.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}@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}}.static{position:static!important}*{box-sizing:border-box}.visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!important}.blur{--tw-blur:blur(8px)!important;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}.static{position:static!important}.m-0{margin:0!important}*{box-sizing:border-box}*{box-sizing:border-box}.static{position:static!important}.hidden{display:none!important}*{box-sizing:border-box}@media (min-width:64rem){.desktop-xs\:flex{display:flex!important}}*{box-sizing:border-box}.static{position:static!important}.hidden{display:none!important}*{box-sizing:border-box}.static{position:static!important}*{box-sizing:border-box}
@@ -9,6 +9,10 @@ export class Pagination {
9
9
  * The amount of items per page
10
10
  */
11
11
  this.pageSize = 12;
12
+ /**
13
+ * Wether to hide when there is only 1 page available
14
+ */
15
+ this.hideOnSinglePage = false;
12
16
  this._pages = [];
13
17
  this._set = [];
14
18
  this._nextClick = () => {
@@ -106,8 +110,8 @@ export class Pagination {
106
110
  this._generate();
107
111
  }
108
112
  render() {
109
- var _a;
110
- return (h(Host, { class: "p-pagination" }, (_a = this._set) === null || _a === void 0 ? void 0 : _a.map((p) => {
113
+ var _a, _b;
114
+ return (h(Host, { class: `p-pagination ${this.hideOnSinglePage && ((_a = this._set) === null || _a === void 0 ? void 0 : _a.length) === 3 && 'hidden'}` }, (_b = this._set) === null || _b === void 0 ? void 0 : _b.map((p) => {
111
115
  if (p.type === 'previous' || p.type === 'next') {
112
116
  return (h("p-pagination-item", { onClick: () => p.type === 'previous'
113
117
  ? this._previousClick()
@@ -195,6 +199,24 @@ export class Pagination {
195
199
  "reflect": false,
196
200
  "defaultValue": "12"
197
201
  },
202
+ "hideOnSinglePage": {
203
+ "type": "boolean",
204
+ "mutable": false,
205
+ "complexType": {
206
+ "original": "boolean",
207
+ "resolved": "boolean",
208
+ "references": {}
209
+ },
210
+ "required": false,
211
+ "optional": false,
212
+ "docs": {
213
+ "tags": [],
214
+ "text": "Wether to hide when there is only 1 page available"
215
+ },
216
+ "attribute": "hide-on-single-page",
217
+ "reflect": false,
218
+ "defaultValue": "false"
219
+ },
198
220
  "total": {
199
221
  "type": "number",
200
222
  "mutable": false,
@@ -221,7 +243,7 @@ export class Pagination {
221
243
  "composed": true,
222
244
  "docs": {
223
245
  "tags": [],
224
- "text": ""
246
+ "text": "Event whenever the page changes"
225
247
  },
226
248
  "complexType": {
227
249
  "original": "number",
@@ -0,0 +1,30 @@
1
+ :host {
2
+ @apply grid grid-cols-1 gap-4;
3
+ @apply w-full;
4
+ @apply p-6;
5
+ }
6
+ :host > p-pagination {
7
+ @apply flex justify-self-center col-start-1;
8
+ }
9
+ @screen desktop-xs {
10
+ :host {
11
+ @apply grid-cols-3;
12
+ grid-template-areas: "page-size pagination export";
13
+ }
14
+ :host > p-page-size-select {
15
+ @apply col-start-1;
16
+ }
17
+ :host > p-pagination {
18
+ @apply col-start-2;
19
+ }
20
+ :host > p-button {
21
+ @apply justify-self-end col-start-3;
22
+ }
23
+ }
24
+
25
+ :host(.page-size-disabled.export-disabled) {
26
+ @apply grid-cols-1;
27
+ }
28
+ :host(.page-size-disabled.export-disabled) > p-pagination {
29
+ @apply col-start-1;
30
+ } .static{position:static!important}.flex{display:flex!important}.table{display:table!important}.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}.w-auto{width:auto!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}.font-semibold{font-weight:600!important}.text-storm-dark{--tw-text-opacity:1!important;color:rgb(39 40 56/var(--tw-text-opacity))!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}*{box-sizing:border-box}@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}}.static{position:static!important}*{box-sizing:border-box}.static{position:static!important}.hidden{display:none!important}*{box-sizing:border-box}@media (min-width:64rem){.desktop-xs\:flex{display:flex!important}}.static{position:static!important}.fixed{position:fixed!important}.bottom-0{bottom:0!important}.left-0{left:0!important}.ml-1{margin-left:.25rem!important}.block{display:block!important}.flex{display:flex!important}.hidden{display:none!important}.w-full{width:100%!important}.flex-col{flex-direction:column!important}.justify-end{justify-content:flex-end!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}.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}@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}}.static{position:static!important}*{box-sizing:border-box}.visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!important}.blur{--tw-blur:blur(8px)!important;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}.static{position:static!important}.m-0{margin:0!important}*{box-sizing:border-box}*{box-sizing:border-box}.static{position:static!important}.hidden{display:none!important}*{box-sizing:border-box}@media (min-width:64rem){.desktop-xs\:flex{display:flex!important}}*{box-sizing:border-box}
@@ -0,0 +1,244 @@
1
+ import { Component, Element, Event, h, Host, Listen, Prop, State, } from '@stencil/core';
2
+ import { formatTranslation, getLocaleComponentStrings, } from '../../../utils/localization';
3
+ import { defaultSize, defaultSizeOptions } from '../page-size-select/constants';
4
+ export class TableFooter {
5
+ constructor() {
6
+ /**
7
+ * Wether to enable page size select
8
+ */
9
+ this.enablePageSize = true;
10
+ /**
11
+ * Wether to enable pagination
12
+ */
13
+ this.enablePagination = true;
14
+ /**
15
+ * Wether to enable export
16
+ */
17
+ this.enableExport = true;
18
+ /**
19
+ * The current page
20
+ */
21
+ this.page = 1;
22
+ /**
23
+ * The amount of items per page
24
+ */
25
+ this.pageSize = defaultSize;
26
+ /**
27
+ * The options for the page size
28
+ */
29
+ this.pageSizeOptions = defaultSizeOptions;
30
+ /**
31
+ * Locales used for this component
32
+ */
33
+ this._locales = {};
34
+ }
35
+ componentWillLoad() {
36
+ this._setLocales();
37
+ }
38
+ render() {
39
+ return (h(Host, { class: `p-table-footer ${!this.enablePageSize && 'page-size-disabled'} ${!this.enablePagination && 'pagination-disabled'} ${!this.enableExport && 'export-disabled'}` },
40
+ this.enablePagination && this.enablePageSize && (h("p-page-size-select", { class: "hidden desktop-xs:flex", size: this.pageSize, sizeOptions: this.pageSizeOptions, onSizeChange: ({ detail }) => this._changePageSize(detail) })),
41
+ this.enablePagination && (h("p-pagination", { pageSize: this.pageSize, total: this.total, page: this.page, hideOnSinglePage: true, onPageChange: ({ detail }) => this.pageChange.emit(detail) })),
42
+ this.enableExport && (h("p-button", { class: "hidden desktop-xs:flex", variant: "secondary", size: "small", icon: "download", onClick: () => this.export.emit() }, formatTranslation(this._locales.export)))));
43
+ }
44
+ async _setLocales() {
45
+ this._locales = await getLocaleComponentStrings(this._el);
46
+ }
47
+ _changePageSize(s) {
48
+ if (!s) {
49
+ return;
50
+ }
51
+ this.pageSize = s;
52
+ this.pageSizeChange.emit(this.pageSize);
53
+ }
54
+ static get is() { return "p-table-footer"; }
55
+ static get encapsulation() { return "shadow"; }
56
+ static get originalStyleUrls() { return {
57
+ "$": ["table-footer.component.scss"]
58
+ }; }
59
+ static get styleUrls() { return {
60
+ "$": ["table-footer.component.css"]
61
+ }; }
62
+ static get properties() { return {
63
+ "enablePageSize": {
64
+ "type": "boolean",
65
+ "mutable": false,
66
+ "complexType": {
67
+ "original": "boolean",
68
+ "resolved": "boolean",
69
+ "references": {}
70
+ },
71
+ "required": false,
72
+ "optional": false,
73
+ "docs": {
74
+ "tags": [],
75
+ "text": "Wether to enable page size select"
76
+ },
77
+ "attribute": "enable-page-size",
78
+ "reflect": false,
79
+ "defaultValue": "true"
80
+ },
81
+ "enablePagination": {
82
+ "type": "boolean",
83
+ "mutable": false,
84
+ "complexType": {
85
+ "original": "boolean",
86
+ "resolved": "boolean",
87
+ "references": {}
88
+ },
89
+ "required": false,
90
+ "optional": false,
91
+ "docs": {
92
+ "tags": [],
93
+ "text": "Wether to enable pagination"
94
+ },
95
+ "attribute": "enable-pagination",
96
+ "reflect": false,
97
+ "defaultValue": "true"
98
+ },
99
+ "enableExport": {
100
+ "type": "boolean",
101
+ "mutable": false,
102
+ "complexType": {
103
+ "original": "boolean",
104
+ "resolved": "boolean",
105
+ "references": {}
106
+ },
107
+ "required": false,
108
+ "optional": false,
109
+ "docs": {
110
+ "tags": [],
111
+ "text": "Wether to enable export"
112
+ },
113
+ "attribute": "enable-export",
114
+ "reflect": false,
115
+ "defaultValue": "true"
116
+ },
117
+ "page": {
118
+ "type": "number",
119
+ "mutable": true,
120
+ "complexType": {
121
+ "original": "number",
122
+ "resolved": "number",
123
+ "references": {}
124
+ },
125
+ "required": false,
126
+ "optional": false,
127
+ "docs": {
128
+ "tags": [],
129
+ "text": "The current page"
130
+ },
131
+ "attribute": "page",
132
+ "reflect": true,
133
+ "defaultValue": "1"
134
+ },
135
+ "total": {
136
+ "type": "number",
137
+ "mutable": false,
138
+ "complexType": {
139
+ "original": "number",
140
+ "resolved": "number",
141
+ "references": {}
142
+ },
143
+ "required": true,
144
+ "optional": false,
145
+ "docs": {
146
+ "tags": [],
147
+ "text": "The total amount of items"
148
+ },
149
+ "attribute": "total",
150
+ "reflect": false
151
+ },
152
+ "pageSize": {
153
+ "type": "number",
154
+ "mutable": false,
155
+ "complexType": {
156
+ "original": "number",
157
+ "resolved": "number",
158
+ "references": {}
159
+ },
160
+ "required": false,
161
+ "optional": false,
162
+ "docs": {
163
+ "tags": [],
164
+ "text": "The amount of items per page"
165
+ },
166
+ "attribute": "page-size",
167
+ "reflect": false,
168
+ "defaultValue": "defaultSize"
169
+ },
170
+ "pageSizeOptions": {
171
+ "type": "unknown",
172
+ "mutable": false,
173
+ "complexType": {
174
+ "original": "number[]",
175
+ "resolved": "number[]",
176
+ "references": {}
177
+ },
178
+ "required": false,
179
+ "optional": false,
180
+ "docs": {
181
+ "tags": [],
182
+ "text": "The options for the page size"
183
+ },
184
+ "defaultValue": "defaultSizeOptions"
185
+ }
186
+ }; }
187
+ static get states() { return {
188
+ "_locales": {}
189
+ }; }
190
+ static get events() { return [{
191
+ "method": "pageChange",
192
+ "name": "pageChange",
193
+ "bubbles": true,
194
+ "cancelable": true,
195
+ "composed": true,
196
+ "docs": {
197
+ "tags": [],
198
+ "text": "Event whenever the page changes"
199
+ },
200
+ "complexType": {
201
+ "original": "number",
202
+ "resolved": "number",
203
+ "references": {}
204
+ }
205
+ }, {
206
+ "method": "pageSizeChange",
207
+ "name": "pageSizeChange",
208
+ "bubbles": true,
209
+ "cancelable": true,
210
+ "composed": true,
211
+ "docs": {
212
+ "tags": [],
213
+ "text": "Event whenever the page changes"
214
+ },
215
+ "complexType": {
216
+ "original": "number",
217
+ "resolved": "number",
218
+ "references": {}
219
+ }
220
+ }, {
221
+ "method": "export",
222
+ "name": "export",
223
+ "bubbles": true,
224
+ "cancelable": true,
225
+ "composed": true,
226
+ "docs": {
227
+ "tags": [],
228
+ "text": "Event whenever the page changes"
229
+ },
230
+ "complexType": {
231
+ "original": "number",
232
+ "resolved": "number",
233
+ "references": {}
234
+ }
235
+ }]; }
236
+ static get elementRef() { return "_el"; }
237
+ static get listeners() { return [{
238
+ "name": "localeChanged",
239
+ "method": "_setLocales",
240
+ "target": "body",
241
+ "capture": false,
242
+ "passive": false
243
+ }]; }
244
+ }
@@ -0,0 +1,16 @@
1
+ :host {
2
+ @apply flex flex-col gap-4;
3
+ @apply w-full;
4
+ @apply p-4 desktop-xs:p-6;
5
+ }
6
+ @screen desktop-xs {
7
+ :host {
8
+ @apply grid grid-cols-2;
9
+ }
10
+ }
11
+ :host p-segment-container {
12
+ @apply justify-self-start col-start-1;
13
+ }
14
+ :host > div {
15
+ @apply col-start-2;
16
+ } .static{position:static!important}.flex{display:flex!important}.table{display:table!important}.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}.w-auto{width:auto!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}.font-semibold{font-weight:600!important}.text-storm-dark{--tw-text-opacity:1!important;color:rgb(39 40 56/var(--tw-text-opacity))!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}*{box-sizing:border-box}@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}}.static{position:static!important}*{box-sizing:border-box}.static{position:static!important}.hidden{display:none!important}*{box-sizing:border-box}@media (min-width:64rem){.desktop-xs\:flex{display:flex!important}}.static{position:static!important}.fixed{position:fixed!important}.bottom-0{bottom:0!important}.left-0{left:0!important}.ml-1{margin-left:.25rem!important}.block{display:block!important}.flex{display:flex!important}.hidden{display:none!important}.w-full{width:100%!important}.flex-col{flex-direction:column!important}.justify-end{justify-content:flex-end!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}.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}@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}}.static{position:static!important}*{box-sizing:border-box}.visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!important}.blur{--tw-blur:blur(8px)!important;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}.static{position:static!important}.m-0{margin:0!important}*{box-sizing:border-box}*{box-sizing:border-box}.static{position:static!important}.fixed{position:fixed!important}.bottom-0{bottom:0!important}.left-0{left:0!important}.ml-1{margin-left:.25rem!important}.block{display:block!important}.flex{display:flex!important}.hidden{display:none!important}.w-full{width:100%!important}.flex-col{flex-direction:column!important}.justify-end{justify-content:flex-end!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}.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}@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}}.static{position:static!important}*{box-sizing:border-box}.visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!important}.blur{--tw-blur:blur(8px)!important;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}