@paperless/core 0.1.0-alpha.15 → 0.1.0-alpha.151

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 (541) hide show
  1. package/CHANGELOG.md +1430 -0
  2. package/README.md +1 -1
  3. package/dist/assets/i18n/page-size-select.i18n.en.json +4 -0
  4. package/dist/assets/i18n/page-size-select.i18n.nl.json +4 -0
  5. package/dist/assets/i18n/table-footer.i18n.en.json +3 -0
  6. package/dist/assets/i18n/table-footer.i18n.nl.json +3 -0
  7. package/dist/assets/i18n/table-header.i18n.en.json +6 -0
  8. package/dist/assets/i18n/table-header.i18n.nl.json +6 -0
  9. package/dist/assets/icons/camera.svg +10 -0
  10. package/dist/assets/icons/checklist.svg +17 -0
  11. package/dist/assets/icons/folder.svg +19 -0
  12. package/dist/assets/icons/integration.svg +17 -0
  13. package/dist/assets/icons/menu.svg +25 -0
  14. package/dist/assets/icons/more.svg +18 -0
  15. package/dist/assets/icons/signout.svg +23 -0
  16. package/dist/assets/icons/switch.svg +20 -0
  17. package/dist/assets/icons/task.svg +17 -0
  18. package/dist/assets/icons/template.svg +17 -0
  19. package/dist/assets/illustrations/e-mail.svg +1 -0
  20. package/dist/build/index.esm.js +1 -0
  21. package/dist/build/p-04b7fb67.entry.js +1 -0
  22. package/dist/build/p-08ff155d.entry.js +1 -0
  23. package/dist/build/p-09ea2a1a.js +1 -0
  24. package/dist/build/p-0ca1b35a.entry.js +1 -0
  25. package/dist/build/p-0cf8e23a.entry.js +1 -0
  26. package/dist/build/p-11275959.entry.js +1 -0
  27. package/dist/build/p-13b56212.entry.js +1 -0
  28. package/dist/build/p-197c58f1.entry.js +1 -0
  29. package/dist/build/p-1d160328.entry.js +1 -0
  30. package/dist/build/p-3ef5e549.js +1 -0
  31. package/dist/build/p-4f7152f2.entry.js +1 -0
  32. package/dist/build/p-5d768271.entry.js +1 -0
  33. package/dist/build/p-5f233f4b.entry.js +1 -0
  34. package/dist/build/p-66b0c60c.entry.js +1 -0
  35. package/dist/build/p-677d0647.entry.js +1 -0
  36. package/dist/build/p-6c60fd3d.js +1 -0
  37. package/dist/build/p-721d414a.entry.js +1 -0
  38. package/dist/build/p-759b427a.entry.js +1 -0
  39. package/dist/build/p-7d9aa349.entry.js +1 -0
  40. package/dist/build/p-7febed77.entry.js +1 -0
  41. package/dist/build/p-83b95dd4.entry.js +1 -0
  42. package/dist/build/p-8a6728d5.js +1 -0
  43. package/dist/build/{p-8501ba07.entry.js → p-954e3737.entry.js} +1 -1
  44. package/dist/build/p-a7086ffa.js +1 -0
  45. package/dist/build/p-a81035d0.js +2 -0
  46. package/dist/build/p-b12f4b10.entry.js +1 -0
  47. package/dist/build/p-b2596561.entry.js +1 -0
  48. package/dist/build/p-b2edfc61.entry.js +1 -0
  49. package/dist/build/p-b74773de.entry.js +1 -0
  50. package/dist/build/p-cfe0f01b.entry.js +1 -0
  51. package/dist/build/p-d2c6ba5f.entry.js +1 -0
  52. package/dist/build/p-df66367d.entry.js +1 -0
  53. package/dist/build/p-e2407e98.entry.js +1 -0
  54. package/dist/build/p-e633010e.entry.js +1 -0
  55. package/dist/build/p-ed08c398.entry.js +1 -0
  56. package/dist/build/p-f8fa3f28.entry.js +1 -0
  57. package/dist/build/p-f9d3bcb7.entry.js +1 -0
  58. package/dist/build/p-fc299f0f.entry.js +1 -0
  59. package/dist/build/paperless.css +315 -20
  60. package/dist/build/paperless.esm.js +1 -1
  61. package/dist/cjs/child-of-e472f812.js +9 -0
  62. package/dist/cjs/constants-a4459ec9.js +7 -0
  63. package/dist/cjs/{index-a46a39a5.js → index-16bca782.js} +190 -5
  64. package/dist/cjs/index.cjs.js +12 -0
  65. package/dist/cjs/loader.cjs.js +3 -3
  66. package/dist/cjs/localization-9c989018.js +60 -0
  67. package/dist/cjs/object-get-by-path-6dc21ed5.js +12 -0
  68. package/dist/cjs/p-accordion.cjs.entry.js +42 -0
  69. package/dist/cjs/p-avatar-group.cjs.entry.js +19 -0
  70. package/dist/cjs/p-avatar.cjs.entry.js +19 -5
  71. package/dist/cjs/p-button_3.cjs.entry.js +337 -65
  72. package/dist/cjs/p-card-body.cjs.entry.js +23 -0
  73. package/dist/cjs/p-card-container.cjs.entry.js +27 -0
  74. package/dist/cjs/p-card-header.cjs.entry.js +24 -0
  75. package/dist/cjs/p-content-slider.cjs.entry.js +221 -0
  76. package/dist/cjs/p-counter.cjs.entry.js +11 -3
  77. package/dist/cjs/p-divider.cjs.entry.js +6 -3
  78. package/dist/cjs/p-dropdown-menu-item_4.cjs.entry.js +268 -0
  79. package/dist/cjs/p-dropdown_2.cjs.entry.js +163 -0
  80. package/dist/cjs/p-helper_5.cjs.entry.js +138 -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-layout.cjs.entry.js +23 -0
  84. package/dist/cjs/p-modal-backdrop_5.cjs.entry.js +101 -0
  85. package/dist/cjs/p-modal.cjs.entry.js +48 -0
  86. package/dist/cjs/p-navbar.cjs.entry.js +34 -0
  87. package/dist/cjs/p-navigation-item.cjs.entry.js +23 -0
  88. package/dist/cjs/p-profile.cjs.entry.js +49 -0
  89. package/dist/cjs/p-slider-indicator.cjs.entry.js +23 -0
  90. package/dist/cjs/p-status.cjs.entry.js +49 -0
  91. package/dist/cjs/p-stepper-item_2.cjs.entry.js +56 -0
  92. package/dist/cjs/p-stepper.cjs.entry.js +71 -0
  93. package/dist/cjs/p-tab-group.cjs.entry.js +19 -0
  94. package/dist/cjs/p-tab-item.cjs.entry.js +23 -0
  95. package/dist/cjs/p-table-body.cjs.entry.js +19 -0
  96. package/dist/cjs/p-table-container_4.cjs.entry.js +1075 -0
  97. package/dist/cjs/p-table-definition.cjs.entry.js +36 -0
  98. package/dist/cjs/p-table.cjs.entry.js +395 -0
  99. package/dist/cjs/p-tooltip.cjs.entry.js +35 -1807
  100. package/dist/cjs/paperless.cjs.js +3 -3
  101. package/dist/cjs/popper-e0c4ed4c.js +1790 -0
  102. package/dist/collection/assets/icons/camera.svg +10 -0
  103. package/dist/collection/assets/icons/checklist.svg +17 -0
  104. package/dist/collection/assets/icons/folder.svg +19 -0
  105. package/dist/collection/assets/icons/integration.svg +17 -0
  106. package/dist/collection/assets/icons/menu.svg +25 -0
  107. package/dist/collection/assets/icons/more.svg +18 -0
  108. package/dist/collection/assets/icons/signout.svg +23 -0
  109. package/dist/collection/assets/icons/switch.svg +20 -0
  110. package/dist/collection/assets/icons/task.svg +17 -0
  111. package/dist/collection/assets/icons/template.svg +17 -0
  112. package/dist/collection/assets/illustrations/e-mail.svg +1 -0
  113. package/dist/collection/collection-manifest.json +40 -2
  114. package/dist/collection/components/atoms/avatar/avatar.component.css +13 -20
  115. package/dist/collection/components/atoms/avatar/avatar.component.js +21 -7
  116. package/dist/collection/components/atoms/avatar-group/avatar-group.component.css +18 -0
  117. package/dist/collection/components/atoms/avatar-group/avatar-group.component.js +36 -0
  118. package/dist/collection/components/atoms/button/button.component.css +60 -23
  119. package/dist/collection/components/atoms/button/button.component.js +133 -11
  120. package/dist/collection/components/atoms/card-body/card-body.component.css +9 -0
  121. package/dist/collection/components/atoms/card-body/card-body.component.js +40 -0
  122. package/dist/collection/components/atoms/card-container/card-container.component.css +17 -0
  123. package/dist/collection/components/atoms/card-container/card-container.component.js +63 -0
  124. package/dist/collection/components/atoms/card-header/card-header.component.css +17 -0
  125. package/dist/collection/components/atoms/card-header/card-header.component.js +61 -0
  126. package/dist/collection/components/atoms/counter/counter.component.css +26 -1
  127. package/dist/collection/components/atoms/counter/counter.component.js +50 -2
  128. package/dist/collection/components/atoms/divider/divider.component.css +9 -2
  129. package/dist/collection/components/atoms/divider/divider.component.js +8 -2
  130. package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.css +6 -0
  131. package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.js +14 -0
  132. package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.css +13 -0
  133. package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js +64 -0
  134. package/dist/collection/components/atoms/helper/helper.component.css +1 -1
  135. package/dist/collection/components/atoms/helper/helper.component.js +33 -2
  136. package/dist/collection/components/atoms/icon/icon.component.css +1 -0
  137. package/dist/collection/components/atoms/icon/icon.component.js +62 -13
  138. package/dist/collection/components/atoms/illustration/illustration.component.js +1 -1
  139. package/dist/collection/components/atoms/info-panel/info-panel.component.css +1 -1
  140. package/dist/collection/components/atoms/layout/layout.component.css +73 -0
  141. package/dist/collection/components/atoms/layout/layout.component.js +47 -0
  142. package/dist/collection/components/atoms/loader/loader.component.css +30 -9
  143. package/dist/collection/components/atoms/loader/loader.component.js +9 -5
  144. package/dist/collection/components/atoms/modal-backdrop/modal-backdrop.component.css +7 -0
  145. package/dist/collection/components/atoms/modal-backdrop/modal-backdrop.component.js +15 -0
  146. package/dist/collection/components/atoms/modal-body/modal-body.component.css +7 -0
  147. package/dist/collection/components/atoms/modal-body/modal-body.component.js +41 -0
  148. package/dist/collection/components/atoms/modal-container/modal-container.component.css +6 -0
  149. package/dist/collection/components/atoms/modal-container/modal-container.component.js +53 -0
  150. package/dist/collection/components/atoms/modal-footer/modal-footer.component.css +8 -0
  151. package/dist/collection/components/atoms/modal-footer/modal-footer.component.js +42 -0
  152. package/dist/collection/components/atoms/modal-header/modal-header.component.css +16 -0
  153. package/dist/collection/components/atoms/modal-header/modal-header.component.js +64 -0
  154. package/dist/collection/components/atoms/pagination-item/pagination-item.component.css +1 -1
  155. package/dist/collection/components/atoms/segment-container/segment-container.component.css +5 -0
  156. package/dist/collection/components/atoms/segment-container/segment-container.component.js +14 -0
  157. package/dist/collection/components/atoms/segment-item/segment-item.component.css +21 -0
  158. package/dist/collection/components/atoms/segment-item/segment-item.component.js +112 -0
  159. package/dist/collection/components/atoms/slider-indicator/slider-indicator.component.css +7 -0
  160. package/dist/collection/components/atoms/slider-indicator/slider-indicator.component.js +40 -0
  161. package/dist/collection/components/atoms/status/status.component.css +16 -0
  162. package/dist/collection/components/atoms/status/status.component.js +133 -0
  163. package/dist/collection/components/atoms/stepper-item/stepper-item.component.css +59 -0
  164. package/dist/collection/components/atoms/stepper-item/stepper-item.component.js +109 -0
  165. package/dist/collection/components/atoms/stepper-line/stepper-line.component.css +18 -0
  166. package/dist/collection/components/atoms/stepper-line/stepper-line.component.js +62 -0
  167. package/dist/collection/components/atoms/tab-group/tab-group.component.css +9 -0
  168. package/dist/collection/components/atoms/tab-group/tab-group.component.js +17 -0
  169. package/dist/collection/components/atoms/tab-item/tab-item.component.css +10 -0
  170. package/dist/collection/components/atoms/tab-item/tab-item.component.js +41 -0
  171. package/dist/collection/components/atoms/table-body/table-body.component.css +3 -0
  172. package/dist/collection/components/atoms/table-body/table-body.component.js +15 -0
  173. package/dist/collection/components/atoms/table-container/table-container.component.css +5 -0
  174. package/dist/collection/components/atoms/table-container/table-container.component.js +15 -0
  175. package/dist/collection/components/atoms/tag/tag.component.css +51 -0
  176. package/dist/collection/components/atoms/tag/tag.component.js +64 -0
  177. package/dist/collection/components/atoms/tooltip/tooltip.component.css +19 -13
  178. package/dist/collection/components/atoms/tooltip/tooltip.component.js +77 -24
  179. package/dist/collection/components/helpers/table-definition/table-definition.component.js +159 -0
  180. package/dist/collection/components/molecules/accordion/accordion.component.css +3 -0
  181. package/dist/collection/components/molecules/accordion/accordion.component.js +133 -0
  182. package/dist/collection/components/molecules/content-slider/content-slider.component.css +44 -0
  183. package/dist/collection/components/molecules/content-slider/content-slider.component.js +322 -0
  184. package/dist/collection/components/molecules/dropdown/dropdown.component.css +12 -0
  185. package/dist/collection/components/molecules/dropdown/dropdown.component.js +310 -0
  186. package/dist/collection/components/molecules/input-group/input-group.component.css +306 -0
  187. package/dist/collection/components/molecules/input-group/input-group.component.js +295 -0
  188. package/dist/collection/components/molecules/navigation-item/navigation-item.component.css +22 -0
  189. package/dist/collection/components/molecules/navigation-item/navigation-item.component.js +118 -0
  190. package/dist/collection/components/molecules/page-size-select/constants.js +2 -0
  191. package/dist/collection/components/molecules/page-size-select/page-size-select.component.js +217 -0
  192. package/dist/collection/components/molecules/pagination/pagination.component.css +1 -1
  193. package/dist/collection/components/molecules/pagination/pagination.component.js +34 -6
  194. package/dist/collection/components/molecules/profile/profile.component.css +60 -0
  195. package/dist/collection/components/molecules/profile/profile.component.js +95 -0
  196. package/dist/collection/components/molecules/stepper/stepper.component.css +12 -0
  197. package/dist/collection/components/molecules/stepper/stepper.component.js +106 -0
  198. package/dist/collection/components/molecules/table-footer/table-footer.component.css +30 -0
  199. package/dist/collection/components/molecules/table-footer/table-footer.component.js +268 -0
  200. package/dist/collection/components/molecules/table-header/table-header.component.css +16 -0
  201. package/dist/collection/components/molecules/table-header/table-header.component.js +370 -0
  202. package/dist/collection/components/molecules/table-row/table-row.component.css +21 -0
  203. package/dist/collection/components/molecules/table-row/table-row.component.js +67 -0
  204. package/dist/collection/components/organisms/modal/modal.component.js +175 -0
  205. package/dist/collection/components/organisms/navbar/navbar.component.css +59 -0
  206. package/dist/collection/components/organisms/navbar/navbar.component.js +99 -0
  207. package/dist/collection/components/organisms/table/table.component.css +3 -0
  208. package/dist/collection/components/organisms/table/table.component.js +1020 -0
  209. package/dist/collection/index.js +2 -1
  210. package/dist/collection/tailwind/animation.js +17 -0
  211. package/dist/collection/tailwind/backdrop-blur.js +3 -0
  212. package/dist/collection/tailwind/border-radius.js +8 -7
  213. package/dist/collection/tailwind/height.js +3 -0
  214. package/dist/collection/tailwind/screens.js +8 -0
  215. package/dist/collection/tailwind/shadows.js +9 -5
  216. package/dist/collection/tailwind/spacing.js +10 -0
  217. package/dist/collection/tailwind/typography.js +21 -0
  218. package/dist/collection/tailwind/width.js +18 -0
  219. package/dist/collection/tailwind/z-index.js +3 -0
  220. package/dist/collection/tailwind.config.js +28 -14
  221. package/dist/collection/types/index.js +2 -0
  222. package/dist/collection/types/table.js +1 -0
  223. package/dist/collection/types/tailwind.js +1 -0
  224. package/dist/collection/utils/child-of.js +5 -0
  225. package/dist/collection/utils/icons.js +20 -0
  226. package/dist/collection/utils/illustrations.js +2 -0
  227. package/dist/collection/utils/index.js +5 -0
  228. package/dist/collection/utils/localization.js +55 -0
  229. package/dist/collection/utils/object-get-by-path.js +8 -0
  230. package/dist/components/button.component.js +125 -0
  231. package/dist/components/counter.component.js +41 -0
  232. package/dist/components/divider.component.js +33 -0
  233. package/dist/components/dropdown-menu-container.component.js +29 -0
  234. package/dist/components/dropdown-menu-item.component.js +43 -0
  235. package/dist/components/dropdown.component.js +180 -0
  236. package/dist/components/helper.component.js +42 -0
  237. package/dist/components/icon.component.js +248 -5
  238. package/dist/components/index.d.ts +50 -12
  239. package/dist/components/index.js +40 -0
  240. package/dist/components/input-group.component.js +107 -0
  241. package/dist/components/loader.component.js +8 -4
  242. package/dist/components/localization.js +57 -0
  243. package/dist/components/modal-backdrop.component.js +30 -0
  244. package/dist/components/modal-body.component.js +36 -0
  245. package/dist/components/modal-container.component.js +48 -0
  246. package/dist/components/modal-footer.component.js +42 -0
  247. package/dist/components/modal-header.component.js +43 -0
  248. package/dist/components/p-accordion.d.ts +11 -0
  249. package/dist/components/p-accordion.js +73 -0
  250. package/dist/components/p-avatar-group.d.ts +11 -0
  251. package/dist/components/p-avatar-group.js +34 -0
  252. package/dist/components/p-avatar.js +21 -8
  253. package/dist/components/p-button.js +1 -93
  254. package/dist/components/p-card-body.d.ts +11 -0
  255. package/dist/components/p-card-body.js +38 -0
  256. package/dist/components/p-card-container.d.ts +11 -0
  257. package/dist/components/p-card-container.js +44 -0
  258. package/dist/components/p-card-header.d.ts +11 -0
  259. package/dist/components/p-card-header.js +46 -0
  260. package/dist/components/p-content-slider.d.ts +11 -0
  261. package/dist/components/p-content-slider.js +250 -0
  262. package/dist/components/p-counter.js +1 -28
  263. package/dist/components/p-divider.js +1 -28
  264. package/dist/components/p-dropdown-menu-container.d.ts +11 -0
  265. package/dist/components/p-dropdown-menu-container.js +6 -0
  266. package/dist/components/p-dropdown-menu-item.d.ts +11 -0
  267. package/dist/components/p-dropdown-menu-item.js +6 -0
  268. package/dist/components/p-dropdown.d.ts +11 -0
  269. package/dist/components/p-dropdown.js +6 -0
  270. package/dist/components/p-helper.js +1 -34
  271. package/dist/components/p-illustration.js +3 -0
  272. package/dist/components/p-info-panel.js +1 -1
  273. package/dist/components/p-input-group.d.ts +11 -0
  274. package/dist/components/p-input-group.js +6 -0
  275. package/dist/components/p-layout.d.ts +11 -0
  276. package/dist/components/p-layout.js +39 -0
  277. package/dist/components/p-modal-backdrop.d.ts +11 -0
  278. package/dist/components/p-modal-backdrop.js +6 -0
  279. package/dist/components/p-modal-body.d.ts +11 -0
  280. package/dist/components/p-modal-body.js +6 -0
  281. package/dist/components/p-modal-container.d.ts +11 -0
  282. package/dist/components/p-modal-container.js +6 -0
  283. package/dist/components/p-modal-footer.d.ts +11 -0
  284. package/dist/components/p-modal-footer.js +6 -0
  285. package/dist/components/p-modal-header.d.ts +11 -0
  286. package/dist/components/p-modal-header.js +6 -0
  287. package/dist/components/p-modal.d.ts +11 -0
  288. package/dist/components/p-modal.js +111 -0
  289. package/dist/components/p-navbar.d.ts +11 -0
  290. package/dist/components/p-navbar.js +70 -0
  291. package/dist/components/p-navigation-item.d.ts +11 -0
  292. package/dist/components/p-navigation-item.js +55 -0
  293. package/dist/components/p-page-size-select.d.ts +11 -0
  294. package/dist/components/p-page-size-select.js +6 -0
  295. package/dist/components/p-pagination.js +1 -189
  296. package/dist/components/p-profile.d.ts +11 -0
  297. package/dist/components/p-profile.js +85 -0
  298. package/dist/components/p-segment-container.d.ts +11 -0
  299. package/dist/components/p-segment-container.js +6 -0
  300. package/dist/components/p-segment-item.d.ts +11 -0
  301. package/dist/components/p-segment-item.js +6 -0
  302. package/dist/components/p-slider-indicator.d.ts +11 -0
  303. package/dist/components/p-slider-indicator.js +6 -0
  304. package/dist/components/p-status.d.ts +11 -0
  305. package/dist/components/p-status.js +73 -0
  306. package/dist/components/p-stepper-item.d.ts +11 -0
  307. package/dist/components/p-stepper-item.js +6 -0
  308. package/dist/components/p-stepper-line.d.ts +11 -0
  309. package/dist/components/p-stepper-line.js +6 -0
  310. package/dist/components/p-stepper.d.ts +11 -0
  311. package/dist/components/p-stepper.js +106 -0
  312. package/dist/components/p-tab-group.d.ts +11 -0
  313. package/dist/components/p-tab-group.js +39 -0
  314. package/dist/components/p-tab-item.d.ts +11 -0
  315. package/dist/components/p-tab-item.js +39 -0
  316. package/dist/components/p-table-body.d.ts +11 -0
  317. package/dist/components/p-table-body.js +33 -0
  318. package/dist/components/p-table-container.d.ts +11 -0
  319. package/dist/components/p-table-container.js +6 -0
  320. package/dist/components/p-table-definition.d.ts +11 -0
  321. package/dist/components/p-table-definition.js +57 -0
  322. package/dist/components/p-table-footer.d.ts +11 -0
  323. package/dist/components/p-table-footer.js +6 -0
  324. package/dist/components/p-table-header.d.ts +11 -0
  325. package/dist/components/p-table-header.js +6 -0
  326. package/dist/components/p-table-row.d.ts +11 -0
  327. package/dist/components/p-table-row.js +6 -0
  328. package/dist/components/p-table.d.ts +11 -0
  329. package/dist/components/p-table.js +563 -0
  330. package/dist/components/p-tag.d.ts +11 -0
  331. package/dist/components/p-tag.js +6 -0
  332. package/dist/components/page-size-select.component.js +123 -0
  333. package/dist/components/pagination-item.component.js +1 -1
  334. package/dist/components/pagination.component.js +202 -0
  335. package/dist/components/popper.js +1788 -0
  336. package/dist/components/segment-container.component.js +29 -0
  337. package/dist/components/segment-item.component.js +51 -0
  338. package/dist/components/slider-indicator.component.js +36 -0
  339. package/dist/components/stepper-item.component.js +57 -0
  340. package/dist/components/stepper-line.component.js +41 -0
  341. package/dist/components/table-container.component.js +30 -0
  342. package/dist/components/table-footer.component.js +146 -0
  343. package/dist/components/table-header.component.js +1052 -0
  344. package/dist/components/table-row.component.js +49 -0
  345. package/dist/components/tag.component.js +41 -0
  346. package/dist/components/tooltip.component.js +37 -1808
  347. package/dist/esm/child-of-90a8c4b5.js +7 -0
  348. package/dist/esm/constants-826f9460.js +4 -0
  349. package/dist/esm/{index-a68e547b.js → index-1ac329a8.js} +190 -5
  350. package/dist/esm/index.js +3 -1
  351. package/dist/esm/loader.js +3 -3
  352. package/dist/esm/localization-abb97f67.js +57 -0
  353. package/dist/esm/object-get-by-path-d6427a61.js +10 -0
  354. package/dist/esm/p-accordion.entry.js +38 -0
  355. package/dist/esm/p-avatar-group.entry.js +15 -0
  356. package/dist/esm/p-avatar.entry.js +19 -5
  357. package/dist/esm/p-button_3.entry.js +337 -65
  358. package/dist/esm/p-card-body.entry.js +19 -0
  359. package/dist/esm/p-card-container.entry.js +23 -0
  360. package/dist/esm/p-card-header.entry.js +20 -0
  361. package/dist/esm/p-content-slider.entry.js +217 -0
  362. package/dist/esm/p-counter.entry.js +11 -3
  363. package/dist/esm/p-divider.entry.js +6 -3
  364. package/dist/esm/p-dropdown-menu-item_4.entry.js +261 -0
  365. package/dist/esm/p-dropdown_2.entry.js +158 -0
  366. package/dist/esm/p-helper_5.entry.js +130 -0
  367. package/dist/esm/p-illustration.entry.js +5 -2
  368. package/dist/esm/p-info-panel.entry.js +2 -2
  369. package/dist/esm/p-layout.entry.js +19 -0
  370. package/dist/esm/p-modal-backdrop_5.entry.js +93 -0
  371. package/dist/esm/p-modal.entry.js +44 -0
  372. package/dist/esm/p-navbar.entry.js +30 -0
  373. package/dist/esm/p-navigation-item.entry.js +19 -0
  374. package/dist/esm/p-profile.entry.js +45 -0
  375. package/dist/esm/p-slider-indicator.entry.js +19 -0
  376. package/dist/esm/p-status.entry.js +45 -0
  377. package/dist/esm/p-stepper-item_2.entry.js +51 -0
  378. package/dist/esm/p-stepper.entry.js +67 -0
  379. package/dist/esm/p-tab-group.entry.js +15 -0
  380. package/dist/esm/p-tab-item.entry.js +19 -0
  381. package/dist/esm/p-table-body.entry.js +15 -0
  382. package/dist/esm/p-table-container_4.entry.js +1068 -0
  383. package/dist/esm/p-table-definition.entry.js +32 -0
  384. package/dist/esm/p-table.entry.js +391 -0
  385. package/dist/esm/p-tooltip.entry.js +35 -1807
  386. package/dist/esm/paperless.js +3 -3
  387. package/dist/esm/polyfills/core-js.js +0 -0
  388. package/dist/esm/polyfills/dom.js +0 -0
  389. package/dist/esm/polyfills/es5-html-element.js +0 -0
  390. package/dist/esm/polyfills/index.js +0 -0
  391. package/dist/esm/polyfills/system.js +0 -0
  392. package/dist/esm/popper-41c6f9cd.js +1788 -0
  393. package/dist/index.html +1 -1
  394. package/dist/paperless/index.esm.js +1 -0
  395. package/dist/paperless/p-04b7fb67.entry.js +1 -0
  396. package/dist/paperless/p-08ff155d.entry.js +1 -0
  397. package/dist/paperless/p-09ea2a1a.js +1 -0
  398. package/dist/paperless/p-0ca1b35a.entry.js +1 -0
  399. package/dist/paperless/p-0cf8e23a.entry.js +1 -0
  400. package/dist/paperless/p-11275959.entry.js +1 -0
  401. package/dist/paperless/p-13b56212.entry.js +1 -0
  402. package/dist/paperless/p-197c58f1.entry.js +1 -0
  403. package/dist/paperless/p-1d160328.entry.js +1 -0
  404. package/dist/paperless/p-3ef5e549.js +1 -0
  405. package/dist/paperless/p-4f7152f2.entry.js +1 -0
  406. package/dist/paperless/p-5d768271.entry.js +1 -0
  407. package/dist/paperless/p-5f233f4b.entry.js +1 -0
  408. package/dist/paperless/p-66b0c60c.entry.js +1 -0
  409. package/dist/paperless/p-677d0647.entry.js +1 -0
  410. package/dist/paperless/p-6c60fd3d.js +1 -0
  411. package/dist/paperless/p-721d414a.entry.js +1 -0
  412. package/dist/paperless/p-759b427a.entry.js +1 -0
  413. package/dist/paperless/p-7d9aa349.entry.js +1 -0
  414. package/dist/paperless/p-7febed77.entry.js +1 -0
  415. package/dist/paperless/p-83b95dd4.entry.js +1 -0
  416. package/dist/paperless/p-8a6728d5.js +1 -0
  417. package/dist/paperless/{p-8501ba07.entry.js → p-954e3737.entry.js} +1 -1
  418. package/dist/paperless/p-a7086ffa.js +1 -0
  419. package/dist/paperless/p-a81035d0.js +2 -0
  420. package/dist/paperless/p-b12f4b10.entry.js +1 -0
  421. package/dist/paperless/p-b2596561.entry.js +1 -0
  422. package/dist/paperless/p-b2edfc61.entry.js +1 -0
  423. package/dist/paperless/p-b74773de.entry.js +1 -0
  424. package/dist/paperless/p-cfe0f01b.entry.js +1 -0
  425. package/dist/paperless/p-d2c6ba5f.entry.js +1 -0
  426. package/dist/paperless/p-df66367d.entry.js +1 -0
  427. package/dist/paperless/p-e2407e98.entry.js +1 -0
  428. package/dist/paperless/p-e633010e.entry.js +1 -0
  429. package/dist/paperless/p-ed08c398.entry.js +1 -0
  430. package/dist/paperless/p-f8fa3f28.entry.js +1 -0
  431. package/dist/paperless/p-f9d3bcb7.entry.js +1 -0
  432. package/dist/paperless/p-fc299f0f.entry.js +1 -0
  433. package/dist/paperless/paperless.css +459 -26403
  434. package/dist/paperless/paperless.esm.js +1 -1
  435. package/dist/sw.js +2 -444
  436. package/dist/sw.js.map +1 -0
  437. package/dist/tailwind/animation.js +17 -0
  438. package/dist/tailwind/backdrop-blur.js +3 -0
  439. package/dist/tailwind/border-radius.js +10 -0
  440. package/dist/tailwind/colors.js +52 -0
  441. package/dist/tailwind/height.js +3 -0
  442. package/dist/tailwind/rotate.js +8 -0
  443. package/dist/tailwind/scale.js +3 -0
  444. package/dist/tailwind/screens.js +8 -0
  445. package/dist/tailwind/shadows.js +11 -0
  446. package/dist/tailwind/spacing.js +10 -0
  447. package/dist/tailwind/typography.js +21 -0
  448. package/dist/tailwind/width.js +18 -0
  449. package/dist/tailwind/z-index.js +3 -0
  450. package/dist/tailwind.config.js +28 -14
  451. package/dist/types/components/atoms/avatar/avatar.component.d.ts +2 -0
  452. package/dist/types/components/atoms/avatar-group/avatar-group.component.d.ts +7 -0
  453. package/dist/types/components/atoms/button/button.component.d.ts +26 -1
  454. package/dist/types/components/atoms/card-body/card-body.component.d.ts +7 -0
  455. package/dist/types/components/atoms/card-container/card-container.component.d.ts +11 -0
  456. package/dist/types/components/atoms/card-header/card-header.component.d.ts +11 -0
  457. package/dist/types/components/atoms/counter/counter.component.d.ts +8 -0
  458. package/dist/types/components/atoms/divider/divider.component.d.ts +4 -0
  459. package/dist/types/components/atoms/dropdown-menu-container/dropdown-menu-container.component.d.ts +3 -0
  460. package/dist/types/components/atoms/dropdown-menu-item/dropdown-menu-item.component.d.ts +12 -0
  461. package/dist/types/components/atoms/helper/helper.component.d.ts +5 -0
  462. package/dist/types/components/atoms/icon/icon.component.d.ts +3 -3
  463. package/dist/types/components/atoms/layout/layout.component.d.ts +7 -0
  464. package/dist/types/components/atoms/loader/loader.component.d.ts +1 -1
  465. package/dist/types/components/atoms/modal-backdrop/modal-backdrop.component.d.ts +3 -0
  466. package/dist/types/components/atoms/modal-body/modal-body.component.d.ts +7 -0
  467. package/dist/types/components/atoms/modal-container/modal-container.component.d.ts +7 -0
  468. package/dist/types/components/atoms/modal-footer/modal-footer.component.d.ts +7 -0
  469. package/dist/types/components/atoms/modal-header/modal-header.component.d.ts +12 -0
  470. package/dist/types/components/atoms/segment-container/segment-container.component.d.ts +3 -0
  471. package/dist/types/components/atoms/segment-item/segment-item.component.d.ts +22 -0
  472. package/dist/types/components/atoms/slider-indicator/slider-indicator.component.d.ts +7 -0
  473. package/dist/types/components/atoms/status/status.component.d.ts +23 -0
  474. package/dist/types/components/atoms/stepper-item/stepper-item.component.d.ts +19 -0
  475. package/dist/types/components/atoms/stepper-line/stepper-line.component.d.ts +11 -0
  476. package/dist/types/components/atoms/tab-group/tab-group.component.d.ts +3 -0
  477. package/dist/types/components/atoms/tab-item/tab-item.component.d.ts +7 -0
  478. package/dist/types/components/atoms/table-body/table-body.component.d.ts +3 -0
  479. package/dist/types/components/atoms/table-container/table-container.component.d.ts +3 -0
  480. package/dist/types/components/atoms/tag/tag.component.d.ts +11 -0
  481. package/dist/types/components/atoms/tooltip/tooltip.component.d.ts +12 -3
  482. package/dist/types/components/helpers/table-definition/table-definition.component.d.ts +48 -0
  483. package/dist/types/components/molecules/accordion/accordion.component.d.ts +25 -0
  484. package/dist/types/components/molecules/content-slider/content-slider.component.d.ts +53 -0
  485. package/dist/types/components/molecules/dropdown/dropdown.component.d.ts +55 -0
  486. package/dist/types/components/molecules/input-group/input-group.component.d.ts +59 -0
  487. package/dist/types/components/molecules/navigation-item/navigation-item.component.d.ts +24 -0
  488. package/dist/types/components/molecules/page-size-select/constants.d.ts +2 -0
  489. package/dist/types/components/molecules/page-size-select/page-size-select.component.d.ts +48 -0
  490. package/dist/types/components/molecules/pagination/pagination.component.d.ts +7 -0
  491. package/dist/types/components/molecules/profile/profile.component.d.ts +20 -0
  492. package/dist/types/components/molecules/stepper/stepper.component.d.ts +18 -0
  493. package/dist/types/components/molecules/table-footer/table-footer.component.d.ts +59 -0
  494. package/dist/types/components/molecules/table-header/table-header.component.d.ts +80 -0
  495. package/dist/types/components/molecules/table-row/table-row.component.d.ts +11 -0
  496. package/dist/types/components/organisms/modal/modal.component.d.ts +38 -0
  497. package/dist/types/components/organisms/navbar/navbar.component.d.ts +14 -0
  498. package/dist/types/components/organisms/table/table.component.d.ts +179 -0
  499. package/dist/types/components.d.ts +1921 -120
  500. package/dist/types/index.d.ts +2 -0
  501. package/dist/types/types/index.d.ts +2 -0
  502. package/dist/types/types/table.d.ts +6 -0
  503. package/dist/types/types/tailwind.d.ts +2 -0
  504. package/dist/types/utils/child-of.d.ts +1 -0
  505. package/dist/types/utils/icons.d.ts +10 -0
  506. package/dist/types/utils/illustrations.d.ts +1 -0
  507. package/dist/types/utils/index.d.ts +5 -0
  508. package/dist/types/utils/localization.d.ts +2 -0
  509. package/dist/types/utils/object-get-by-path.d.ts +1 -0
  510. package/dist/workbox-5fe694da.js +2 -0
  511. package/dist/workbox-5fe694da.js.map +1 -0
  512. package/package.json +61 -61
  513. package/dist/build/p-17c11169.entry.js +0 -1
  514. package/dist/build/p-42dab9d4.entry.js +0 -1
  515. package/dist/build/p-47b52f92.entry.js +0 -1
  516. package/dist/build/p-554b5a22.entry.js +0 -1
  517. package/dist/build/p-76464e0b.js +0 -2
  518. package/dist/build/p-aae3d4f0.entry.js +0 -1
  519. package/dist/build/p-adcb0b93.entry.js +0 -1
  520. package/dist/build/p-bbec0e86.entry.js +0 -1
  521. package/dist/build/p-d23e4d57.entry.js +0 -1
  522. package/dist/build/p-f65d7bbf.entry.js +0 -1
  523. package/dist/cjs/p-helper.cjs.entry.js +0 -19
  524. package/dist/cjs/p-pagination-item.cjs.entry.js +0 -23
  525. package/dist/cjs/p-pagination.cjs.entry.js +0 -165
  526. package/dist/collection/tailwind/grid.js +0 -26
  527. package/dist/collection/utils/utils.js +0 -3
  528. package/dist/esm/p-helper.entry.js +0 -15
  529. package/dist/esm/p-pagination-item.entry.js +0 -19
  530. package/dist/esm/p-pagination.entry.js +0 -161
  531. package/dist/paperless/p-17c11169.entry.js +0 -1
  532. package/dist/paperless/p-42dab9d4.entry.js +0 -1
  533. package/dist/paperless/p-47b52f92.entry.js +0 -1
  534. package/dist/paperless/p-554b5a22.entry.js +0 -1
  535. package/dist/paperless/p-76464e0b.js +0 -2
  536. package/dist/paperless/p-aae3d4f0.entry.js +0 -1
  537. package/dist/paperless/p-adcb0b93.entry.js +0 -1
  538. package/dist/paperless/p-bbec0e86.entry.js +0 -1
  539. package/dist/paperless/p-d23e4d57.entry.js +0 -1
  540. package/dist/paperless/p-f65d7bbf.entry.js +0 -1
  541. package/dist/types/utils/utils.d.ts +0 -1
@@ -1,4 +1,4 @@
1
- import { Component, Event, h, Host, Prop, Watch } from '@stencil/core';
1
+ import { Component, Event, h, Host, Prop, Watch, } from '@stencil/core';
2
2
  export class Pagination {
3
3
  constructor() {
4
4
  /**
@@ -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 = () => {
@@ -46,7 +50,7 @@ export class Pagination {
46
50
  };
47
51
  // Disable page range, display all the pages
48
52
  if (range === null) {
49
- const p = this._pages.map(p => ({
53
+ const p = this._pages.map((p) => ({
50
54
  type: 'page',
51
55
  value: p,
52
56
  }));
@@ -106,10 +110,12 @@ 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
- return h("p-pagination-item", { onClick: () => (p.type === 'previous' ? this._previousClick() : this._nextClick()) }, p.value);
116
+ return (h("p-pagination-item", { onClick: () => p.type === 'previous'
117
+ ? this._previousClick()
118
+ : this._nextClick() }, p.value));
113
119
  }
114
120
  if (p.type === 'ellipsis') {
115
121
  return h("p-pagination-item", null, "...");
@@ -121,8 +127,12 @@ export class Pagination {
121
127
  this._generate();
122
128
  }
123
129
  _generate() {
130
+ var _a;
124
131
  this._pages = this._generatePages();
125
132
  this._set = this._generateSet();
133
+ if (this.page > ((_a = this._pages) === null || _a === void 0 ? void 0 : _a.length)) {
134
+ this._changePage(this._pages.length);
135
+ }
126
136
  }
127
137
  _changePage(p) {
128
138
  if (!p) {
@@ -189,6 +199,24 @@ export class Pagination {
189
199
  "reflect": false,
190
200
  "defaultValue": "12"
191
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
+ },
192
220
  "total": {
193
221
  "type": "number",
194
222
  "mutable": false,
@@ -215,7 +243,7 @@ export class Pagination {
215
243
  "composed": true,
216
244
  "docs": {
217
245
  "tags": [],
218
- "text": ""
246
+ "text": "Event whenever the page changes"
219
247
  },
220
248
  "complexType": {
221
249
  "original": "number",
@@ -0,0 +1,60 @@
1
+ :host {
2
+ @apply flex;
3
+ }
4
+ :host .content {
5
+ @apply flex gap-3 items-center w-full;
6
+ }
7
+ :host .content .name {
8
+ @apply flex flex-col justify-center overflow-hidden;
9
+ }
10
+ :host .content .name > *:nth-child(1) {
11
+ @apply text-sm text-storm-dark;
12
+ @apply font-semibold;
13
+ }
14
+ :host .content .name > *:nth-child(2) {
15
+ @apply text-sm text-storm-vague;
16
+ }
17
+ :host .content .name ::slotted(*) {
18
+ @apply text-ellipsis overflow-hidden whitespace-nowrap;
19
+ }
20
+
21
+ :host([size=small]) {
22
+ @apply h-8;
23
+ }
24
+
25
+ :host([size=medium]) {
26
+ @apply h-[3.125rem];
27
+ }
28
+
29
+ :host([size=large]) {
30
+ @apply h-16;
31
+ }
32
+
33
+ :host(.has-dropdown) {
34
+ @apply cursor-pointer;
35
+ }
36
+ :host(.has-dropdown) .content {
37
+ @apply p-2 rounded;
38
+ @apply border border-solid border-mystic-dark !important;
39
+ }
40
+
41
+ :host(.has-dropdown[size=small]) {
42
+ @apply h-12;
43
+ }
44
+
45
+ :host(.has-dropdown[size=medium]) {
46
+ @apply h-[4.125rem];
47
+ }
48
+
49
+ :host(.has-dropdown[size=large]) {
50
+ @apply h-20;
51
+ }
52
+
53
+ :host(.has-dropdown:hover) .content,
54
+ :host(.active) .content {
55
+ @apply shadow-4;
56
+ }
57
+
58
+ :host(.active) .content p-icon {
59
+ @apply text-indigo;
60
+ } .static{position:static!important}.absolute{position:absolute!important}.ml-auto{margin-left:auto!important}.w-full{width:100%!important}.min-w-0{min-width:0!important}*{box-sizing:border-box}
@@ -0,0 +1,95 @@
1
+ import { Component, Element, h, Host, Prop, State } from '@stencil/core';
2
+ export class Profile {
3
+ constructor() {
4
+ /**
5
+ * The variant of the profile
6
+ */
7
+ this.variant = 'user';
8
+ /**
9
+ * The size of the profile avatar
10
+ */
11
+ this.size = 'small';
12
+ this._dropdownOpen = false;
13
+ }
14
+ componentWillRender() {
15
+ this._updateAvatar();
16
+ }
17
+ render() {
18
+ const hasDropdownSlot = !!this._el.querySelector('[slot="dropdown"]');
19
+ const content = this._getContent(hasDropdownSlot);
20
+ return (h(Host, { class: `p-profile ${hasDropdownSlot && 'has-dropdown'} ${this._dropdownOpen && 'active'}` }, hasDropdownSlot ? (h("p-dropdown", { class: "w-full min-w-0", strategy: "absolute", placement: this.variant === 'user' ? 'top-end' : 'bottom-end', onIsOpen: (ev) => (this._dropdownOpen = ev.detail) },
21
+ content,
22
+ h("div", { slot: "items" },
23
+ h("slot", { name: "dropdown" })))) : (content)));
24
+ }
25
+ _getContent(hasDropdownSlot) {
26
+ return (h("div", { class: "content", slot: "trigger" },
27
+ h("slot", { name: "avatar" }),
28
+ h("div", { class: "name" },
29
+ h("slot", { name: "title" }),
30
+ h("slot", { name: "subtitle" })),
31
+ hasDropdownSlot && this._getIcon()));
32
+ }
33
+ _updateAvatar() {
34
+ var _a, _b;
35
+ const avatar = this._el.querySelector('p-avatar[slot="avatar"]');
36
+ if (!avatar) {
37
+ return;
38
+ }
39
+ avatar.variant = (_a = this.variant) !== null && _a !== void 0 ? _a : avatar.variant;
40
+ avatar.size = (_b = this.size) !== null && _b !== void 0 ? _b : avatar === null || avatar === void 0 ? void 0 : avatar.size;
41
+ }
42
+ _getIcon() {
43
+ return (h("p-icon", { class: "ml-auto", variant: this.variant === 'company' ? 'chevron' : 'more' }));
44
+ }
45
+ static get is() { return "p-profile"; }
46
+ static get encapsulation() { return "shadow"; }
47
+ static get originalStyleUrls() { return {
48
+ "$": ["profile.component.scss"]
49
+ }; }
50
+ static get styleUrls() { return {
51
+ "$": ["profile.component.css"]
52
+ }; }
53
+ static get properties() { return {
54
+ "variant": {
55
+ "type": "string",
56
+ "mutable": false,
57
+ "complexType": {
58
+ "original": "'company' | 'user'",
59
+ "resolved": "\"company\" | \"user\"",
60
+ "references": {}
61
+ },
62
+ "required": false,
63
+ "optional": false,
64
+ "docs": {
65
+ "tags": [],
66
+ "text": "The variant of the profile"
67
+ },
68
+ "attribute": "variant",
69
+ "reflect": false,
70
+ "defaultValue": "'user'"
71
+ },
72
+ "size": {
73
+ "type": "string",
74
+ "mutable": false,
75
+ "complexType": {
76
+ "original": "'small' | 'medium' | 'large'",
77
+ "resolved": "\"large\" | \"medium\" | \"small\"",
78
+ "references": {}
79
+ },
80
+ "required": false,
81
+ "optional": false,
82
+ "docs": {
83
+ "tags": [],
84
+ "text": "The size of the profile avatar"
85
+ },
86
+ "attribute": "size",
87
+ "reflect": true,
88
+ "defaultValue": "'small'"
89
+ }
90
+ }; }
91
+ static get states() { return {
92
+ "_dropdownOpen": {}
93
+ }; }
94
+ static get elementRef() { return "_el"; }
95
+ }
@@ -0,0 +1,12 @@
1
+ :host {
2
+ @apply flex;
3
+ }
4
+
5
+ :host([direction=horizontal]) {
6
+ @apply h-auto items-end;
7
+ }
8
+
9
+ :host([direction=vertical]) {
10
+ @apply flex-col flex-wrap items-start;
11
+ @apply w-full min-h-full;
12
+ } .static{position:static!important}.mb-3{margin-bottom:.75rem!important}.ml-2{margin-left:.5rem!important}.flex-auto{flex:1 1 auto!important}.-translate-y-1\/2{--tw-translate-y:-50%!important}.-translate-x-1\/2,.-translate-y-1\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-translate-x-1\/2{--tw-translate-x:-50%!important}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.border-t-2{border-top-width:2px!important}.border-r-2{border-right-width:2px!important}.border-indigo{--tw-border-opacity:1!important;border-color:rgb(82 138 250/var(--tw-border-opacity))!important}.border-mystic-dark{--tw-border-opacity:1!important;border-color:rgb(218 230 240/var(--tw-border-opacity))!important}.transition{transition-duration:.15s!important;transition-property:color,background-color,border-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-text-decoration-color,-webkit-backdrop-filter!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-text-decoration-color,-webkit-backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.duration-500{transition-duration:.5s!important}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)!important}*{box-sizing:border-box}.static{position:static!important}*{box-sizing:border-box}.static{position:static!important}*{box-sizing:border-box}
@@ -0,0 +1,106 @@
1
+ import { Component, Element, h, Host, Prop } from '@stencil/core';
2
+ export class Stepper {
3
+ constructor() {
4
+ /**
5
+ * The currently active step
6
+ */
7
+ this.activeStep = 1;
8
+ /**
9
+ * The direction of the stepper
10
+ */
11
+ this.direction = 'horizontal';
12
+ }
13
+ componentWillRender() {
14
+ const activeStep = this.activeStep - 1;
15
+ this._steps = this._generateSteps(activeStep);
16
+ }
17
+ render() {
18
+ return h(Host, { class: "p-stepper" }, this._steps);
19
+ }
20
+ _generateSteps(activeStep) {
21
+ const elements = [];
22
+ const items = this._el.querySelectorAll('p-stepper-item');
23
+ for (let i = 0; i < (items === null || items === void 0 ? void 0 : items.length); i++) {
24
+ const item = items.item(i);
25
+ if (i > 0) {
26
+ elements.push(h("p-stepper-line", { direction: this.direction, active: i <= activeStep }));
27
+ }
28
+ const newItem = (h("p-stepper-item", { active: i === activeStep, finished: i < activeStep, direction: this.direction, align: i === 0
29
+ ? 'start'
30
+ : i === (items === null || items === void 0 ? void 0 : items.length) - 1
31
+ ? 'end'
32
+ : 'center' }, item.innerHTML));
33
+ elements.push(newItem);
34
+ }
35
+ return elements;
36
+ // return this._el
37
+ // .querySelectorAll('p-stepper-step')
38
+ // .map((child: any, index) => {
39
+ // return (
40
+ // <>
41
+ // {index > 0 && (
42
+ // <div
43
+ // className={`flex-auto transform ${
44
+ // direction === 'horizontal'
45
+ // ? 'border-t-2 mb-3 -translate-y-1/2'
46
+ // : 'border-r-2 ml-2 -translate-x-1/2'
47
+ // } transition duration-500 ease-in-out ${
48
+ // index <= activeStep
49
+ // ? 'border-indigo'
50
+ // : 'border-mystic-dark'
51
+ // }`}
52
+ // ></div>
53
+ // )}
54
+ // {child}
55
+ // </>
56
+ // );
57
+ // });
58
+ }
59
+ static get is() { return "p-stepper"; }
60
+ static get encapsulation() { return "shadow"; }
61
+ static get originalStyleUrls() { return {
62
+ "$": ["stepper.component.scss"]
63
+ }; }
64
+ static get styleUrls() { return {
65
+ "$": ["stepper.component.css"]
66
+ }; }
67
+ static get properties() { return {
68
+ "activeStep": {
69
+ "type": "number",
70
+ "mutable": false,
71
+ "complexType": {
72
+ "original": "number",
73
+ "resolved": "number",
74
+ "references": {}
75
+ },
76
+ "required": false,
77
+ "optional": false,
78
+ "docs": {
79
+ "tags": [],
80
+ "text": "The currently active step"
81
+ },
82
+ "attribute": "active-step",
83
+ "reflect": false,
84
+ "defaultValue": "1"
85
+ },
86
+ "direction": {
87
+ "type": "string",
88
+ "mutable": false,
89
+ "complexType": {
90
+ "original": "'horizontal' | 'vertical'",
91
+ "resolved": "\"horizontal\" | \"vertical\"",
92
+ "references": {}
93
+ },
94
+ "required": false,
95
+ "optional": false,
96
+ "docs": {
97
+ "tags": [],
98
+ "text": "The direction of the stepper"
99
+ },
100
+ "attribute": "direction",
101
+ "reflect": true,
102
+ "defaultValue": "'horizontal'"
103
+ }
104
+ }; }
105
+ static get elementRef() { return "_el"; }
106
+ }
@@ -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}.h-6{height:1.5rem!important}.w-full{width:100%!important}.w-6{width:1.5rem!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-1{flex:1 1 0%!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}.rounded{border-radius:.25rem!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}.m-0{margin:0!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}*{box-sizing:border-box}*{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,268 @@
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
+ * Wether to hide when there is only 1 page available
32
+ */
33
+ this.hideOnSinglePage = true;
34
+ /**
35
+ * Locales used for this component
36
+ */
37
+ this._locales = {};
38
+ }
39
+ componentWillLoad() {
40
+ this._setLocales();
41
+ }
42
+ render() {
43
+ var _a;
44
+ const hidePageSizeSelect = this.hideOnSinglePage && this.total < ((_a = this.pageSizeOptions) === null || _a === void 0 ? void 0 : _a[0]);
45
+ return (h(Host, { class: `p-table-footer ${!this.enablePageSize && 'page-size-disabled'} ${!this.enablePagination && 'pagination-disabled'} ${!this.enableExport && 'export-disabled'}` },
46
+ this.enablePagination && this.enablePageSize && (h("p-page-size-select", { class: !hidePageSizeSelect && 'hidden desktop-xs:flex', hidden: hidePageSizeSelect, size: this.pageSize, sizeOptions: this.pageSizeOptions, onSizeChange: ({ detail }) => this._changePageSize(detail) })),
47
+ this.enablePagination && (h("p-pagination", { pageSize: this.pageSize, total: this.total, page: this.page, hideOnSinglePage: this.hideOnSinglePage, onPageChange: ({ detail }) => this.pageChange.emit(detail) })),
48
+ this.enableExport && (h("p-button", { class: "hidden desktop-xs:flex", variant: "secondary", size: "small", icon: "download", onClick: () => this.export.emit() }, formatTranslation(this._locales.export)))));
49
+ }
50
+ async _setLocales() {
51
+ this._locales = await getLocaleComponentStrings(this._el);
52
+ }
53
+ _changePageSize(s) {
54
+ if (!s) {
55
+ return;
56
+ }
57
+ this.pageSize = s;
58
+ this.pageSizeChange.emit(this.pageSize);
59
+ }
60
+ static get is() { return "p-table-footer"; }
61
+ static get encapsulation() { return "shadow"; }
62
+ static get originalStyleUrls() { return {
63
+ "$": ["table-footer.component.scss"]
64
+ }; }
65
+ static get styleUrls() { return {
66
+ "$": ["table-footer.component.css"]
67
+ }; }
68
+ static get properties() { return {
69
+ "enablePageSize": {
70
+ "type": "boolean",
71
+ "mutable": false,
72
+ "complexType": {
73
+ "original": "boolean",
74
+ "resolved": "boolean",
75
+ "references": {}
76
+ },
77
+ "required": false,
78
+ "optional": false,
79
+ "docs": {
80
+ "tags": [],
81
+ "text": "Wether to enable page size select"
82
+ },
83
+ "attribute": "enable-page-size",
84
+ "reflect": false,
85
+ "defaultValue": "true"
86
+ },
87
+ "enablePagination": {
88
+ "type": "boolean",
89
+ "mutable": false,
90
+ "complexType": {
91
+ "original": "boolean",
92
+ "resolved": "boolean",
93
+ "references": {}
94
+ },
95
+ "required": false,
96
+ "optional": false,
97
+ "docs": {
98
+ "tags": [],
99
+ "text": "Wether to enable pagination"
100
+ },
101
+ "attribute": "enable-pagination",
102
+ "reflect": false,
103
+ "defaultValue": "true"
104
+ },
105
+ "enableExport": {
106
+ "type": "boolean",
107
+ "mutable": false,
108
+ "complexType": {
109
+ "original": "boolean",
110
+ "resolved": "boolean",
111
+ "references": {}
112
+ },
113
+ "required": false,
114
+ "optional": false,
115
+ "docs": {
116
+ "tags": [],
117
+ "text": "Wether to enable export"
118
+ },
119
+ "attribute": "enable-export",
120
+ "reflect": false,
121
+ "defaultValue": "true"
122
+ },
123
+ "page": {
124
+ "type": "number",
125
+ "mutable": true,
126
+ "complexType": {
127
+ "original": "number",
128
+ "resolved": "number",
129
+ "references": {}
130
+ },
131
+ "required": false,
132
+ "optional": false,
133
+ "docs": {
134
+ "tags": [],
135
+ "text": "The current page"
136
+ },
137
+ "attribute": "page",
138
+ "reflect": true,
139
+ "defaultValue": "1"
140
+ },
141
+ "total": {
142
+ "type": "number",
143
+ "mutable": false,
144
+ "complexType": {
145
+ "original": "number",
146
+ "resolved": "number",
147
+ "references": {}
148
+ },
149
+ "required": true,
150
+ "optional": false,
151
+ "docs": {
152
+ "tags": [],
153
+ "text": "The total amount of items"
154
+ },
155
+ "attribute": "total",
156
+ "reflect": false
157
+ },
158
+ "pageSize": {
159
+ "type": "number",
160
+ "mutable": false,
161
+ "complexType": {
162
+ "original": "number",
163
+ "resolved": "number",
164
+ "references": {}
165
+ },
166
+ "required": false,
167
+ "optional": false,
168
+ "docs": {
169
+ "tags": [],
170
+ "text": "The amount of items per page"
171
+ },
172
+ "attribute": "page-size",
173
+ "reflect": false,
174
+ "defaultValue": "defaultSize"
175
+ },
176
+ "pageSizeOptions": {
177
+ "type": "unknown",
178
+ "mutable": false,
179
+ "complexType": {
180
+ "original": "number[]",
181
+ "resolved": "number[]",
182
+ "references": {}
183
+ },
184
+ "required": false,
185
+ "optional": false,
186
+ "docs": {
187
+ "tags": [],
188
+ "text": "The options for the page size"
189
+ },
190
+ "defaultValue": "defaultSizeOptions"
191
+ },
192
+ "hideOnSinglePage": {
193
+ "type": "boolean",
194
+ "mutable": false,
195
+ "complexType": {
196
+ "original": "boolean",
197
+ "resolved": "boolean",
198
+ "references": {}
199
+ },
200
+ "required": false,
201
+ "optional": false,
202
+ "docs": {
203
+ "tags": [],
204
+ "text": "Wether to hide when there is only 1 page available"
205
+ },
206
+ "attribute": "hide-on-single-page",
207
+ "reflect": false,
208
+ "defaultValue": "true"
209
+ }
210
+ }; }
211
+ static get states() { return {
212
+ "_locales": {}
213
+ }; }
214
+ static get events() { return [{
215
+ "method": "pageChange",
216
+ "name": "pageChange",
217
+ "bubbles": true,
218
+ "cancelable": true,
219
+ "composed": true,
220
+ "docs": {
221
+ "tags": [],
222
+ "text": "Event whenever the page changes"
223
+ },
224
+ "complexType": {
225
+ "original": "number",
226
+ "resolved": "number",
227
+ "references": {}
228
+ }
229
+ }, {
230
+ "method": "pageSizeChange",
231
+ "name": "pageSizeChange",
232
+ "bubbles": true,
233
+ "cancelable": true,
234
+ "composed": true,
235
+ "docs": {
236
+ "tags": [],
237
+ "text": "Event whenever the page changes"
238
+ },
239
+ "complexType": {
240
+ "original": "number",
241
+ "resolved": "number",
242
+ "references": {}
243
+ }
244
+ }, {
245
+ "method": "export",
246
+ "name": "export",
247
+ "bubbles": true,
248
+ "cancelable": true,
249
+ "composed": true,
250
+ "docs": {
251
+ "tags": [],
252
+ "text": "Event whenever the page changes"
253
+ },
254
+ "complexType": {
255
+ "original": "number",
256
+ "resolved": "number",
257
+ "references": {}
258
+ }
259
+ }]; }
260
+ static get elementRef() { return "_el"; }
261
+ static get listeners() { return [{
262
+ "name": "localeChanged",
263
+ "method": "_setLocales",
264
+ "target": "body",
265
+ "capture": false,
266
+ "passive": false
267
+ }]; }
268
+ }