@paperless/core 0.1.0-alpha.7 → 0.1.0-alpha.72

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 (415) hide show
  1. package/CHANGELOG.md +646 -0
  2. package/README.md +1 -1
  3. package/dist/assets/icons/checklist.svg +17 -0
  4. package/dist/assets/icons/folder.svg +19 -0
  5. package/dist/assets/icons/integration.svg +17 -0
  6. package/dist/assets/icons/task.svg +17 -0
  7. package/dist/assets/icons/template.svg +17 -0
  8. package/dist/assets/images/avatar/company-default.svg +12 -0
  9. package/dist/assets/images/avatar/user-default.svg +12 -0
  10. package/dist/assets/images/{helper-hover.svg → helper/helper-hover.svg} +0 -0
  11. package/dist/assets/images/{helper.svg → helper/helper.svg} +0 -0
  12. package/dist/build/p-0100c1a2.js +2 -0
  13. package/dist/build/p-11d24001.entry.js +1 -0
  14. package/dist/build/p-19254809.entry.js +1 -0
  15. package/dist/build/p-2120a0b7.entry.js +1 -0
  16. package/dist/build/p-2a3dd70b.entry.js +1 -0
  17. package/dist/build/p-2c7eebe0.entry.js +1 -0
  18. package/dist/build/p-30026c58.entry.js +1 -0
  19. package/dist/build/p-3f6d3736.entry.js +1 -0
  20. package/dist/build/p-40f9ac13.entry.js +1 -0
  21. package/dist/build/p-41693695.entry.js +1 -0
  22. package/dist/build/p-4a85b858.entry.js +1 -0
  23. package/dist/build/p-62797992.entry.js +1 -0
  24. package/dist/build/p-6421cd2a.entry.js +1 -0
  25. package/dist/build/p-75c92a9d.entry.js +1 -0
  26. package/dist/build/p-7784ee14.entry.js +1 -0
  27. package/dist/build/p-7933cf7c.entry.js +1 -0
  28. package/dist/build/p-7e05bc4b.entry.js +1 -0
  29. package/dist/build/p-86283ebd.entry.js +1 -0
  30. package/dist/build/p-864ac423.entry.js +1 -0
  31. package/dist/build/p-a30a5f69.entry.js +1 -0
  32. package/dist/build/p-a5b0a5bd.entry.js +1 -0
  33. package/dist/build/p-a69581db.entry.js +1 -0
  34. package/dist/build/p-a7086ffa.js +1 -0
  35. package/dist/build/p-b68368f3.entry.js +1 -0
  36. package/dist/build/p-b9f5cac6.entry.js +1 -0
  37. package/dist/build/p-c64e2313.entry.js +1 -0
  38. package/dist/build/{p-f04c4de0.entry.js → p-d069673f.entry.js} +1 -1
  39. package/dist/build/p-df237d9a.entry.js +1 -0
  40. package/dist/build/p-e4930555.entry.js +1 -0
  41. package/dist/build/p-e8dfce4a.entry.js +1 -0
  42. package/dist/build/p-f8bb6e8d.entry.js +1 -0
  43. package/dist/build/p-fb1e33eb.entry.js +1 -0
  44. package/dist/build/p-fcd30824.entry.js +1 -0
  45. package/dist/build/p-ffeed7c6.entry.js +1 -0
  46. package/dist/build/paperless.css +186 -18
  47. package/dist/build/paperless.esm.js +1 -1
  48. package/dist/cjs/{index-a2da05ae.js → index-f9c302b6.js} +229 -3
  49. package/dist/cjs/loader.cjs.js +2 -2
  50. package/dist/cjs/p-accordion.cjs.entry.js +42 -0
  51. package/dist/cjs/p-avatar-group.cjs.entry.js +19 -0
  52. package/dist/cjs/p-avatar.cjs.entry.js +38 -0
  53. package/dist/cjs/p-button_3.cjs.entry.js +167 -17
  54. package/dist/cjs/p-card-body.cjs.entry.js +23 -0
  55. package/dist/cjs/p-card-container.cjs.entry.js +27 -0
  56. package/dist/cjs/p-card-header.cjs.entry.js +24 -0
  57. package/dist/cjs/p-counter.cjs.entry.js +19 -0
  58. package/dist/cjs/p-divider.cjs.entry.js +23 -0
  59. package/dist/cjs/p-dropdown-menu-container.cjs.entry.js +19 -0
  60. package/dist/cjs/p-dropdown-menu-item.cjs.entry.js +23 -0
  61. package/dist/cjs/p-dropdown.cjs.entry.js +141 -0
  62. package/dist/cjs/p-helper.cjs.entry.js +7 -3
  63. package/dist/cjs/p-illustration.cjs.entry.js +9 -12
  64. package/dist/cjs/p-info-panel.cjs.entry.js +31 -0
  65. package/dist/cjs/p-input-group.cjs.entry.js +41 -0
  66. package/dist/cjs/p-layout.cjs.entry.js +23 -0
  67. package/dist/cjs/p-modal-backdrop_5.cjs.entry.js +92 -0
  68. package/dist/cjs/p-modal.cjs.entry.js +39 -0
  69. package/dist/cjs/p-navigation-item.cjs.entry.js +23 -0
  70. package/dist/cjs/p-pagination-item.cjs.entry.js +23 -0
  71. package/dist/cjs/p-pagination.cjs.entry.js +171 -0
  72. package/dist/cjs/p-profile.cjs.entry.js +26 -0
  73. package/dist/cjs/p-segment-container.cjs.entry.js +19 -0
  74. package/dist/cjs/p-segment-item.cjs.entry.js +29 -0
  75. package/dist/cjs/p-status.cjs.entry.js +49 -0
  76. package/dist/cjs/p-stepper-item_2.cjs.entry.js +56 -0
  77. package/dist/cjs/p-stepper.cjs.entry.js +71 -0
  78. package/dist/cjs/p-tab-group.cjs.entry.js +19 -0
  79. package/dist/cjs/p-tab-item.cjs.entry.js +23 -0
  80. package/dist/cjs/p-tag.cjs.entry.js +27 -0
  81. package/dist/cjs/p-tooltip.cjs.entry.js +76 -1812
  82. package/dist/cjs/paperless.cjs.js +2 -2
  83. package/dist/cjs/popper-e0c4ed4c.js +1790 -0
  84. package/dist/collection/assets/icons/checklist.svg +17 -0
  85. package/dist/collection/assets/icons/folder.svg +19 -0
  86. package/dist/collection/assets/icons/integration.svg +17 -0
  87. package/dist/collection/assets/icons/task.svg +17 -0
  88. package/dist/collection/assets/icons/template.svg +17 -0
  89. package/dist/collection/assets/images/avatar/company-default.svg +12 -0
  90. package/dist/collection/assets/images/avatar/user-default.svg +12 -0
  91. package/dist/collection/assets/images/{helper-hover.svg → helper/helper-hover.svg} +0 -0
  92. package/dist/collection/assets/images/{helper.svg → helper/helper.svg} +0 -0
  93. package/dist/collection/collection-manifest.json +34 -1
  94. package/dist/collection/components/atoms/avatar/avatar.component.css +24 -0
  95. package/dist/collection/components/atoms/avatar/avatar.component.js +110 -0
  96. package/dist/collection/components/atoms/avatar-group/avatar-group.component.css +18 -0
  97. package/dist/collection/components/atoms/avatar-group/avatar-group.component.js +36 -0
  98. package/dist/collection/components/atoms/button/button.component.css +28 -2
  99. package/dist/collection/components/atoms/button/button.component.js +108 -10
  100. package/dist/collection/components/atoms/card-body/card-body.component.css +9 -0
  101. package/dist/collection/components/atoms/card-body/card-body.component.js +40 -0
  102. package/dist/collection/components/atoms/card-container/card-container.component.css +17 -0
  103. package/dist/collection/components/atoms/card-container/card-container.component.js +63 -0
  104. package/dist/collection/components/atoms/card-header/card-header.component.css +17 -0
  105. package/dist/collection/components/atoms/card-header/card-header.component.js +61 -0
  106. package/dist/collection/components/atoms/counter/counter.component.css +5 -0
  107. package/dist/collection/components/atoms/counter/counter.component.js +15 -0
  108. package/dist/collection/components/atoms/divider/divider.component.css +10 -0
  109. package/dist/collection/components/atoms/divider/divider.component.js +21 -0
  110. package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.css +5 -0
  111. package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.js +14 -0
  112. package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.css +13 -0
  113. package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js +41 -0
  114. package/dist/collection/components/atoms/helper/helper.component.css +3 -3
  115. package/dist/collection/components/atoms/helper/helper.component.js +34 -3
  116. package/dist/collection/components/atoms/icon/icon.component.css +1 -0
  117. package/dist/collection/components/atoms/icon/icon.component.js +64 -20
  118. package/dist/collection/components/atoms/illustration/illustration.component.js +2 -9
  119. package/dist/collection/components/atoms/info-panel/info-panel.component.css +28 -0
  120. package/dist/collection/components/atoms/info-panel/info-panel.component.js +106 -0
  121. package/dist/collection/components/atoms/layout/layout.component.css +64 -0
  122. package/dist/collection/components/atoms/layout/layout.component.js +47 -0
  123. package/dist/collection/components/atoms/loader/loader.component.css +2 -2
  124. package/dist/collection/components/atoms/loader/loader.component.js +4 -3
  125. package/dist/collection/components/atoms/modal-backdrop/modal-backdrop.component.css +7 -0
  126. package/dist/collection/components/atoms/modal-backdrop/modal-backdrop.component.js +15 -0
  127. package/dist/collection/components/atoms/modal-body/modal-body.component.css +7 -0
  128. package/dist/collection/components/atoms/modal-body/modal-body.component.js +41 -0
  129. package/dist/collection/components/atoms/modal-container/modal-container.component.css +6 -0
  130. package/dist/collection/components/atoms/modal-container/modal-container.component.js +53 -0
  131. package/dist/collection/components/atoms/modal-footer/modal-footer.component.css +4 -0
  132. package/dist/collection/components/atoms/modal-footer/modal-footer.component.js +16 -0
  133. package/dist/collection/components/atoms/modal-header/modal-header.component.css +6 -0
  134. package/dist/collection/components/atoms/modal-header/modal-header.component.js +15 -0
  135. package/dist/collection/components/atoms/pagination-item/pagination-item.component.css +16 -0
  136. package/dist/collection/components/atoms/pagination-item/pagination-item.component.js +41 -0
  137. package/dist/collection/components/atoms/profile/profile.component.css +13 -0
  138. package/dist/collection/components/atoms/profile/profile.component.js +25 -0
  139. package/dist/collection/components/atoms/segment-container/segment-container.component.css +5 -0
  140. package/dist/collection/components/atoms/segment-container/segment-container.component.js +14 -0
  141. package/dist/collection/components/atoms/segment-item/segment-item.component.css +21 -0
  142. package/dist/collection/components/atoms/segment-item/segment-item.component.js +112 -0
  143. package/dist/collection/components/atoms/status/status.component.css +16 -0
  144. package/dist/collection/components/atoms/status/status.component.js +133 -0
  145. package/dist/collection/components/atoms/stepper-item/stepper-item.component.css +59 -0
  146. package/dist/collection/components/atoms/stepper-item/stepper-item.component.js +109 -0
  147. package/dist/collection/components/atoms/stepper-line/stepper-line.component.css +18 -0
  148. package/dist/collection/components/atoms/stepper-line/stepper-line.component.js +62 -0
  149. package/dist/collection/components/atoms/tab-group/tab-group.component.css +9 -0
  150. package/dist/collection/components/atoms/tab-group/tab-group.component.js +17 -0
  151. package/dist/collection/components/atoms/tab-item/tab-item.component.css +10 -0
  152. package/dist/collection/components/atoms/tab-item/tab-item.component.js +41 -0
  153. package/dist/collection/components/atoms/tag/tag.component.css +51 -0
  154. package/dist/collection/components/atoms/tag/tag.component.js +64 -0
  155. package/dist/collection/components/atoms/tooltip/tooltip.component.css +19 -13
  156. package/dist/collection/components/atoms/tooltip/tooltip.component.js +133 -35
  157. package/dist/collection/components/molecules/accordion/accordion.component.css +3 -0
  158. package/dist/collection/components/molecules/accordion/accordion.component.js +133 -0
  159. package/dist/collection/components/molecules/dropdown/dropdown.component.css +9 -0
  160. package/dist/collection/components/molecules/dropdown/dropdown.component.js +233 -0
  161. package/dist/collection/components/molecules/input-group/input-group.component.css +205 -0
  162. package/dist/collection/components/molecules/input-group/input-group.component.js +237 -0
  163. package/dist/collection/components/molecules/navigation-item/navigation-item.component.css +28 -0
  164. package/dist/collection/components/molecules/navigation-item/navigation-item.component.js +118 -0
  165. package/dist/collection/components/molecules/pagination/pagination.component.css +3 -0
  166. package/dist/collection/components/molecules/pagination/pagination.component.js +242 -0
  167. package/dist/collection/components/molecules/stepper/stepper.component.css +12 -0
  168. package/dist/collection/components/molecules/stepper/stepper.component.js +106 -0
  169. package/dist/collection/components/organisms/modal/modal.component.js +111 -0
  170. package/dist/collection/tailwind/animation.js +17 -0
  171. package/dist/collection/tailwind/backdrop-blur.js +3 -0
  172. package/dist/collection/tailwind/border-radius.js +8 -6
  173. package/dist/collection/tailwind/screens.js +8 -0
  174. package/dist/collection/tailwind/spacing.js +10 -0
  175. package/dist/collection/tailwind/typography.js +21 -0
  176. package/dist/collection/tailwind/width.js +18 -0
  177. package/dist/collection/tailwind/z-index.js +3 -0
  178. package/dist/collection/tailwind.config.js +26 -14
  179. package/dist/collection/utils/child-of.js +5 -0
  180. package/dist/collection/utils/icons.js +10 -0
  181. package/dist/collection/utils/types.js +1 -0
  182. package/dist/components/avatar.component.js +54 -0
  183. package/dist/components/counter.component.js +30 -0
  184. package/dist/components/divider.component.js +34 -0
  185. package/dist/components/dropdown-menu-container.component.js +29 -0
  186. package/dist/components/helper.component.js +42 -0
  187. package/dist/components/icon.component.js +138 -9
  188. package/dist/components/index.d.ts +33 -0
  189. package/dist/components/index.js +33 -0
  190. package/dist/components/loader.component.js +5 -4
  191. package/dist/components/modal-backdrop.component.js +30 -0
  192. package/dist/components/modal-body.component.js +36 -0
  193. package/dist/components/modal-container.component.js +48 -0
  194. package/dist/components/modal-footer.component.js +36 -0
  195. package/dist/components/modal-header.component.js +30 -0
  196. package/dist/components/p-accordion.d.ts +11 -0
  197. package/dist/components/p-accordion.js +73 -0
  198. package/dist/components/p-avatar-group.d.ts +11 -0
  199. package/dist/components/p-avatar-group.js +34 -0
  200. package/dist/components/p-avatar.d.ts +11 -0
  201. package/dist/components/p-avatar.js +6 -0
  202. package/dist/components/p-button.js +28 -4
  203. package/dist/components/p-card-body.d.ts +11 -0
  204. package/dist/components/p-card-body.js +38 -0
  205. package/dist/components/p-card-container.d.ts +11 -0
  206. package/dist/components/p-card-container.js +44 -0
  207. package/dist/components/p-card-header.d.ts +11 -0
  208. package/dist/components/p-card-header.js +46 -0
  209. package/dist/components/p-counter.d.ts +11 -0
  210. package/dist/components/p-counter.js +6 -0
  211. package/dist/components/p-divider.d.ts +11 -0
  212. package/dist/components/p-divider.js +6 -0
  213. package/dist/components/p-dropdown-menu-container.d.ts +11 -0
  214. package/dist/components/p-dropdown-menu-container.js +6 -0
  215. package/dist/components/p-dropdown-menu-item.d.ts +11 -0
  216. package/dist/components/p-dropdown-menu-item.js +39 -0
  217. package/dist/components/p-dropdown.d.ts +11 -0
  218. package/dist/components/p-dropdown.js +166 -0
  219. package/dist/components/p-helper.js +1 -34
  220. package/dist/components/p-illustration.js +0 -4
  221. package/dist/components/p-info-panel.d.ts +11 -0
  222. package/dist/components/p-info-panel.js +56 -0
  223. package/dist/components/p-input-group.d.ts +11 -0
  224. package/dist/components/p-input-group.js +84 -0
  225. package/dist/components/p-layout.d.ts +11 -0
  226. package/dist/components/p-layout.js +39 -0
  227. package/dist/components/p-modal-backdrop.d.ts +11 -0
  228. package/dist/components/p-modal-backdrop.js +6 -0
  229. package/dist/components/p-modal-body.d.ts +11 -0
  230. package/dist/components/p-modal-body.js +6 -0
  231. package/dist/components/p-modal-container.d.ts +11 -0
  232. package/dist/components/p-modal-container.js +6 -0
  233. package/dist/components/p-modal-footer.d.ts +11 -0
  234. package/dist/components/p-modal-footer.js +6 -0
  235. package/dist/components/p-modal-header.d.ts +11 -0
  236. package/dist/components/p-modal-header.js +6 -0
  237. package/dist/components/p-modal.d.ts +11 -0
  238. package/dist/components/p-modal.js +94 -0
  239. package/dist/components/p-navigation-item.d.ts +11 -0
  240. package/dist/components/p-navigation-item.js +55 -0
  241. package/dist/components/p-pagination-item.d.ts +11 -0
  242. package/dist/components/p-pagination-item.js +6 -0
  243. package/dist/components/p-pagination.d.ts +11 -0
  244. package/dist/components/p-pagination.js +200 -0
  245. package/dist/components/p-profile.d.ts +11 -0
  246. package/dist/components/p-profile.js +46 -0
  247. package/dist/components/p-segment-container.d.ts +11 -0
  248. package/dist/components/p-segment-container.js +32 -0
  249. package/dist/components/p-segment-item.d.ts +11 -0
  250. package/dist/components/p-segment-item.js +54 -0
  251. package/dist/components/p-status.d.ts +11 -0
  252. package/dist/components/p-status.js +73 -0
  253. package/dist/components/p-stepper-item.d.ts +11 -0
  254. package/dist/components/p-stepper-item.js +6 -0
  255. package/dist/components/p-stepper-line.d.ts +11 -0
  256. package/dist/components/p-stepper-line.js +6 -0
  257. package/dist/components/p-stepper.d.ts +11 -0
  258. package/dist/components/p-stepper.js +106 -0
  259. package/dist/components/p-tab-group.d.ts +11 -0
  260. package/dist/components/p-tab-group.js +39 -0
  261. package/dist/components/p-tab-item.d.ts +11 -0
  262. package/dist/components/p-tab-item.js +39 -0
  263. package/dist/components/p-tag.d.ts +11 -0
  264. package/dist/components/p-tag.js +44 -0
  265. package/dist/components/pagination-item.component.js +36 -0
  266. package/dist/components/popper.js +1788 -0
  267. package/dist/components/stepper-item.component.js +57 -0
  268. package/dist/components/stepper-line.component.js +41 -0
  269. package/dist/components/tooltip.component.js +82 -1816
  270. package/dist/esm/{index-d08bfe75.js → index-fff70567.js} +229 -3
  271. package/dist/esm/loader.js +2 -2
  272. package/dist/esm/p-accordion.entry.js +38 -0
  273. package/dist/esm/p-avatar-group.entry.js +15 -0
  274. package/dist/esm/p-avatar.entry.js +34 -0
  275. package/dist/esm/p-button_3.entry.js +167 -17
  276. package/dist/esm/p-card-body.entry.js +19 -0
  277. package/dist/esm/p-card-container.entry.js +23 -0
  278. package/dist/esm/p-card-header.entry.js +20 -0
  279. package/dist/esm/p-counter.entry.js +15 -0
  280. package/dist/esm/p-divider.entry.js +19 -0
  281. package/dist/esm/p-dropdown-menu-container.entry.js +15 -0
  282. package/dist/esm/p-dropdown-menu-item.entry.js +19 -0
  283. package/dist/esm/p-dropdown.entry.js +137 -0
  284. package/dist/esm/p-helper.entry.js +7 -3
  285. package/dist/esm/p-illustration.entry.js +9 -12
  286. package/dist/esm/p-info-panel.entry.js +27 -0
  287. package/dist/esm/p-input-group.entry.js +37 -0
  288. package/dist/esm/p-layout.entry.js +19 -0
  289. package/dist/esm/p-modal-backdrop_5.entry.js +84 -0
  290. package/dist/esm/p-modal.entry.js +35 -0
  291. package/dist/esm/p-navigation-item.entry.js +19 -0
  292. package/dist/esm/p-pagination-item.entry.js +19 -0
  293. package/dist/esm/p-pagination.entry.js +167 -0
  294. package/dist/esm/p-profile.entry.js +22 -0
  295. package/dist/esm/p-segment-container.entry.js +15 -0
  296. package/dist/esm/p-segment-item.entry.js +25 -0
  297. package/dist/esm/p-status.entry.js +45 -0
  298. package/dist/esm/p-stepper-item_2.entry.js +51 -0
  299. package/dist/esm/p-stepper.entry.js +67 -0
  300. package/dist/esm/p-tab-group.entry.js +15 -0
  301. package/dist/esm/p-tab-item.entry.js +19 -0
  302. package/dist/esm/p-tag.entry.js +23 -0
  303. package/dist/esm/p-tooltip.entry.js +76 -1812
  304. package/dist/esm/paperless.js +2 -2
  305. package/dist/esm/polyfills/core-js.js +0 -0
  306. package/dist/esm/polyfills/dom.js +0 -0
  307. package/dist/esm/polyfills/es5-html-element.js +0 -0
  308. package/dist/esm/polyfills/index.js +0 -0
  309. package/dist/esm/polyfills/system.js +0 -0
  310. package/dist/esm/popper-41c6f9cd.js +1788 -0
  311. package/dist/index.html +1 -1
  312. package/dist/paperless/p-0100c1a2.js +2 -0
  313. package/dist/paperless/p-11d24001.entry.js +1 -0
  314. package/dist/paperless/p-19254809.entry.js +1 -0
  315. package/dist/paperless/p-2120a0b7.entry.js +1 -0
  316. package/dist/paperless/p-2a3dd70b.entry.js +1 -0
  317. package/dist/paperless/p-2c7eebe0.entry.js +1 -0
  318. package/dist/paperless/p-30026c58.entry.js +1 -0
  319. package/dist/paperless/p-3f6d3736.entry.js +1 -0
  320. package/dist/paperless/p-40f9ac13.entry.js +1 -0
  321. package/dist/paperless/p-41693695.entry.js +1 -0
  322. package/dist/paperless/p-4a85b858.entry.js +1 -0
  323. package/dist/paperless/p-62797992.entry.js +1 -0
  324. package/dist/paperless/p-6421cd2a.entry.js +1 -0
  325. package/dist/paperless/p-75c92a9d.entry.js +1 -0
  326. package/dist/paperless/p-7784ee14.entry.js +1 -0
  327. package/dist/paperless/p-7933cf7c.entry.js +1 -0
  328. package/dist/paperless/p-7e05bc4b.entry.js +1 -0
  329. package/dist/paperless/p-86283ebd.entry.js +1 -0
  330. package/dist/paperless/p-864ac423.entry.js +1 -0
  331. package/dist/paperless/p-a30a5f69.entry.js +1 -0
  332. package/dist/paperless/p-a5b0a5bd.entry.js +1 -0
  333. package/dist/paperless/p-a69581db.entry.js +1 -0
  334. package/dist/paperless/p-a7086ffa.js +1 -0
  335. package/dist/paperless/p-b68368f3.entry.js +1 -0
  336. package/dist/paperless/p-b9f5cac6.entry.js +1 -0
  337. package/dist/paperless/p-c64e2313.entry.js +1 -0
  338. package/dist/paperless/{p-f04c4de0.entry.js → p-d069673f.entry.js} +1 -1
  339. package/dist/paperless/p-df237d9a.entry.js +1 -0
  340. package/dist/paperless/p-e4930555.entry.js +1 -0
  341. package/dist/paperless/p-e8dfce4a.entry.js +1 -0
  342. package/dist/paperless/p-f8bb6e8d.entry.js +1 -0
  343. package/dist/paperless/p-fb1e33eb.entry.js +1 -0
  344. package/dist/paperless/p-fcd30824.entry.js +1 -0
  345. package/dist/paperless/p-ffeed7c6.entry.js +1 -0
  346. package/dist/paperless/paperless.css +284 -26355
  347. package/dist/paperless/paperless.esm.js +1 -1
  348. package/dist/sw.js +2 -290
  349. package/dist/sw.js.map +1 -0
  350. package/dist/tailwind/animation.js +17 -0
  351. package/dist/tailwind/backdrop-blur.js +3 -0
  352. package/dist/tailwind/border-radius.js +10 -0
  353. package/dist/tailwind/colors.js +52 -0
  354. package/dist/tailwind/rotate.js +8 -0
  355. package/dist/tailwind/scale.js +3 -0
  356. package/dist/tailwind/screens.js +8 -0
  357. package/dist/tailwind/shadows.js +7 -0
  358. package/dist/tailwind/spacing.js +10 -0
  359. package/dist/tailwind/typography.js +21 -0
  360. package/dist/tailwind/width.js +18 -0
  361. package/dist/tailwind/z-index.js +3 -0
  362. package/dist/tailwind.config.js +26 -14
  363. package/dist/types/components/atoms/avatar/avatar.component.d.ts +21 -0
  364. package/dist/types/components/atoms/avatar-group/avatar-group.component.d.ts +7 -0
  365. package/dist/types/components/atoms/button/button.component.d.ts +18 -1
  366. package/dist/types/components/atoms/card-body/card-body.component.d.ts +7 -0
  367. package/dist/types/components/atoms/card-container/card-container.component.d.ts +11 -0
  368. package/dist/types/components/atoms/card-header/card-header.component.d.ts +11 -0
  369. package/dist/types/components/atoms/counter/counter.component.d.ts +3 -0
  370. package/dist/types/components/atoms/divider/divider.component.d.ts +7 -0
  371. package/dist/types/components/atoms/dropdown-menu-container/dropdown-menu-container.component.d.ts +3 -0
  372. package/dist/types/components/atoms/dropdown-menu-item/dropdown-menu-item.component.d.ts +7 -0
  373. package/dist/types/components/atoms/helper/helper.component.d.ts +5 -0
  374. package/dist/types/components/atoms/icon/icon.component.d.ts +3 -3
  375. package/dist/types/components/atoms/info-panel/info-panel.component.d.ts +24 -0
  376. package/dist/types/components/atoms/layout/layout.component.d.ts +7 -0
  377. package/dist/types/components/atoms/modal-backdrop/modal-backdrop.component.d.ts +3 -0
  378. package/dist/types/components/atoms/modal-body/modal-body.component.d.ts +7 -0
  379. package/dist/types/components/atoms/modal-container/modal-container.component.d.ts +7 -0
  380. package/dist/types/components/atoms/modal-footer/modal-footer.component.d.ts +3 -0
  381. package/dist/types/components/atoms/modal-header/modal-header.component.d.ts +3 -0
  382. package/dist/types/components/atoms/pagination-item/pagination-item.component.d.ts +7 -0
  383. package/dist/types/components/atoms/profile/profile.component.d.ts +8 -0
  384. package/dist/types/components/atoms/segment-container/segment-container.component.d.ts +3 -0
  385. package/dist/types/components/atoms/segment-item/segment-item.component.d.ts +22 -0
  386. package/dist/types/components/atoms/status/status.component.d.ts +23 -0
  387. package/dist/types/components/atoms/stepper-item/stepper-item.component.d.ts +19 -0
  388. package/dist/types/components/atoms/stepper-line/stepper-line.component.d.ts +11 -0
  389. package/dist/types/components/atoms/tab-group/tab-group.component.d.ts +3 -0
  390. package/dist/types/components/atoms/tab-item/tab-item.component.d.ts +7 -0
  391. package/dist/types/components/atoms/tag/tag.component.d.ts +11 -0
  392. package/dist/types/components/atoms/tooltip/tooltip.component.d.ts +20 -8
  393. package/dist/types/components/molecules/accordion/accordion.component.d.ts +25 -0
  394. package/dist/types/components/molecules/dropdown/dropdown.component.d.ts +42 -0
  395. package/dist/types/components/molecules/input-group/input-group.component.d.ts +49 -0
  396. package/dist/types/components/molecules/navigation-item/navigation-item.component.d.ts +24 -0
  397. package/dist/types/components/molecules/pagination/pagination.component.d.ts +28 -0
  398. package/dist/types/components/molecules/stepper/stepper.component.d.ts +18 -0
  399. package/dist/types/components/organisms/modal/modal.component.d.ts +25 -0
  400. package/dist/types/components.d.ts +1078 -21
  401. package/dist/types/utils/child-of.d.ts +1 -0
  402. package/dist/types/utils/icons.d.ts +5 -0
  403. package/dist/types/utils/types.d.ts +2 -0
  404. package/dist/workbox-5fe694da.js +2 -0
  405. package/dist/workbox-5fe694da.js.map +1 -0
  406. package/package.json +61 -61
  407. package/dist/build/p-092ba1be.entry.js +0 -1
  408. package/dist/build/p-c04e9d44.entry.js +0 -1
  409. package/dist/build/p-f33e1285.js +0 -2
  410. package/dist/build/p-f64e0b3a.entry.js +0 -1
  411. package/dist/collection/tailwind/grid.js +0 -6
  412. package/dist/paperless/p-092ba1be.entry.js +0 -1
  413. package/dist/paperless/p-c04e9d44.entry.js +0 -1
  414. package/dist/paperless/p-f33e1285.js +0 -2
  415. package/dist/paperless/p-f64e0b3a.entry.js +0 -1
@@ -0,0 +1,28 @@
1
+ :host {
2
+ @apply w-full inline-block mb-1;
3
+ }
4
+ :host > a {
5
+ @apply w-full h-8 px-2 cursor-pointer rounded-large;
6
+ @apply flex items-center;
7
+ @apply text-storm-medium font-medium;
8
+ @apply hover:bg-indigo-light hover:text-storm-dark;
9
+ }
10
+ :host > a > p-icon {
11
+ @apply text-mystic-dark mr-3;
12
+ }
13
+ :host > a > p-counter {
14
+ @apply ml-auto;
15
+ }
16
+ :host > a > span.has-counter {
17
+ @apply mr-3;
18
+ }
19
+ :host > a:hover > p-icon {
20
+ @apply text-storm-vague;
21
+ }
22
+
23
+ :host(.active) > a {
24
+ @apply text-indigo bg-indigo-light;
25
+ }
26
+ :host(.active) > a > p-icon {
27
+ @apply text-indigo;
28
+ } .static{position:static!important}
@@ -0,0 +1,118 @@
1
+ import { Component, h, Host, Prop } from '@stencil/core';
2
+ export class NavigationItem {
3
+ constructor() {
4
+ /**
5
+ * Wether the navigation item is active
6
+ */
7
+ this.active = false;
8
+ }
9
+ render() {
10
+ return (h(Host, { class: `p-navigation-item ${this.active && 'active'}` },
11
+ h("a", { href: this.href, target: this.target },
12
+ this.icon && h("p-icon", { variant: this.icon }),
13
+ h("span", { class: this.counter && 'has-counter' },
14
+ h("slot", null)),
15
+ this.counter && h("p-counter", null, this.counter))));
16
+ }
17
+ static get is() { return "p-navigation-item"; }
18
+ static get encapsulation() { return "shadow"; }
19
+ static get originalStyleUrls() { return {
20
+ "$": ["navigation-item.component.scss"]
21
+ }; }
22
+ static get styleUrls() { return {
23
+ "$": ["navigation-item.component.css"]
24
+ }; }
25
+ static get properties() { return {
26
+ "active": {
27
+ "type": "boolean",
28
+ "mutable": false,
29
+ "complexType": {
30
+ "original": "boolean",
31
+ "resolved": "boolean",
32
+ "references": {}
33
+ },
34
+ "required": false,
35
+ "optional": false,
36
+ "docs": {
37
+ "tags": [],
38
+ "text": "Wether the navigation item is active"
39
+ },
40
+ "attribute": "active",
41
+ "reflect": false,
42
+ "defaultValue": "false"
43
+ },
44
+ "icon": {
45
+ "type": "string",
46
+ "mutable": false,
47
+ "complexType": {
48
+ "original": "IconVariant",
49
+ "resolved": "\"arrow\" | \"attachment\" | \"bread\" | \"calendar\" | \"car\" | \"checklist\" | \"checkmark\" | \"chevron\" | \"clock\" | \"cogs\" | \"comment\" | \"document\" | \"download\" | \"envelope\" | \"explanation\" | \"eye\" | \"filter\" | \"folder\" | \"grid\" | \"headset\" | \"integration\" | \"list\" | \"location\" | \"megaphone\" | \"minus\" | \"negative\" | \"pagination\" | \"payment\" | \"pencil\" | \"person\" | \"plus\" | \"question\" | \"receipt\" | \"report\" | \"search\" | \"settings\" | \"sick\" | \"tachometer\" | \"task\" | \"template\" | \"tool\" | \"trash\" | \"turn\" | \"upload\" | \"warning\"",
50
+ "references": {
51
+ "IconVariant": {
52
+ "location": "import",
53
+ "path": "../../atoms/icon/icon.component"
54
+ }
55
+ }
56
+ },
57
+ "required": false,
58
+ "optional": false,
59
+ "docs": {
60
+ "tags": [],
61
+ "text": "Icon of the navigation item"
62
+ },
63
+ "attribute": "icon",
64
+ "reflect": false
65
+ },
66
+ "counter": {
67
+ "type": "any",
68
+ "mutable": false,
69
+ "complexType": {
70
+ "original": "number | string",
71
+ "resolved": "number | string",
72
+ "references": {}
73
+ },
74
+ "required": false,
75
+ "optional": false,
76
+ "docs": {
77
+ "tags": [],
78
+ "text": "Icon of the navigation item"
79
+ },
80
+ "attribute": "counter",
81
+ "reflect": false
82
+ },
83
+ "href": {
84
+ "type": "string",
85
+ "mutable": false,
86
+ "complexType": {
87
+ "original": "string",
88
+ "resolved": "string",
89
+ "references": {}
90
+ },
91
+ "required": false,
92
+ "optional": false,
93
+ "docs": {
94
+ "tags": [],
95
+ "text": "The href of the navigation item"
96
+ },
97
+ "attribute": "href",
98
+ "reflect": false
99
+ },
100
+ "target": {
101
+ "type": "string",
102
+ "mutable": false,
103
+ "complexType": {
104
+ "original": "string",
105
+ "resolved": "string",
106
+ "references": {}
107
+ },
108
+ "required": false,
109
+ "optional": false,
110
+ "docs": {
111
+ "tags": [],
112
+ "text": "The target of the navigation item"
113
+ },
114
+ "attribute": "target",
115
+ "reflect": false
116
+ }
117
+ }; }
118
+ }
@@ -0,0 +1,3 @@
1
+ p-pagination {
2
+ @apply flex;
3
+ } .static{position:static!important}.static{position:static!important}
@@ -0,0 +1,242 @@
1
+ import { Component, Event, h, Host, Prop, Watch, } from '@stencil/core';
2
+ export class Pagination {
3
+ constructor() {
4
+ /**
5
+ * The current page
6
+ */
7
+ this.page = 1;
8
+ /**
9
+ * The amount of items per page
10
+ */
11
+ this.pageSize = 12;
12
+ this._pages = [];
13
+ this._set = [];
14
+ this._nextClick = () => {
15
+ const nextPage = this.page + 1;
16
+ if (nextPage > this._pages[this._pages.length - 1]) {
17
+ return;
18
+ }
19
+ this._changePage(nextPage);
20
+ };
21
+ this._pageClick = (p) => this._changePage(p);
22
+ this._generateSet = (range = 1, enableBoundaries = true) => {
23
+ const totalPages = this._pages.length;
24
+ if (!totalPages) {
25
+ return [];
26
+ }
27
+ let start = this.page - range;
28
+ let end = this.page + range;
29
+ if (end > totalPages) {
30
+ end = totalPages;
31
+ start = totalPages - range * 2;
32
+ start = start < 1 ? 1 : start;
33
+ }
34
+ if (start <= 1) {
35
+ start = 1;
36
+ end = Math.min(range * 2 + 1, totalPages);
37
+ }
38
+ const set = [];
39
+ const previous = {
40
+ type: 'previous',
41
+ value: h("p-icon", { variant: "chevron", rotate: 90 }),
42
+ };
43
+ const next = {
44
+ type: 'next',
45
+ value: h("p-icon", { variant: "chevron", rotate: -90 }),
46
+ };
47
+ // Disable page range, display all the pages
48
+ if (range === null) {
49
+ const p = this._pages.map((p) => ({
50
+ type: 'page',
51
+ value: p,
52
+ }));
53
+ return enableBoundaries ? [previous, ...p, next] : p;
54
+ }
55
+ if (enableBoundaries) {
56
+ set.push(previous);
57
+ }
58
+ if (start <= 3) {
59
+ for (let i = 1; i < start; i++) {
60
+ set.push({
61
+ type: 'page',
62
+ value: this._pages[i - 1],
63
+ });
64
+ }
65
+ }
66
+ else {
67
+ set.push({
68
+ type: 'page',
69
+ value: 1,
70
+ });
71
+ set.push({
72
+ type: 'ellipsis',
73
+ value: 'ellipsis',
74
+ });
75
+ }
76
+ for (let i = start; i <= end; i++) {
77
+ set.push({
78
+ type: 'page',
79
+ value: this._pages[i - 1],
80
+ });
81
+ }
82
+ if (end >= totalPages - 2) {
83
+ for (let i = end + 1; i <= totalPages; i++) {
84
+ set.push({
85
+ type: 'page',
86
+ value: this._pages[i - 1],
87
+ });
88
+ }
89
+ }
90
+ else {
91
+ set.push({
92
+ type: 'ellipsis',
93
+ });
94
+ set.push({
95
+ type: 'page',
96
+ value: this._pages[this._pages.length - 1],
97
+ });
98
+ }
99
+ if (enableBoundaries) {
100
+ set.push(next);
101
+ }
102
+ return set;
103
+ };
104
+ }
105
+ componentWillRender() {
106
+ this._generate();
107
+ }
108
+ render() {
109
+ var _a;
110
+ return (h(Host, { class: "p-pagination" }, (_a = this._set) === null || _a === void 0 ? void 0 : _a.map((p) => {
111
+ if (p.type === 'previous' || p.type === 'next') {
112
+ return (h("p-pagination-item", { onClick: () => p.type === 'previous'
113
+ ? this._previousClick()
114
+ : this._nextClick() }, p.value));
115
+ }
116
+ if (p.type === 'ellipsis') {
117
+ return h("p-pagination-item", null, "...");
118
+ }
119
+ return (h("p-pagination-item", { active: p.value === this.page, onClick: () => this._pageClick(p.value) }, p.value));
120
+ })));
121
+ }
122
+ pageChangeHandler() {
123
+ this._generate();
124
+ }
125
+ _generate() {
126
+ var _a;
127
+ this._pages = this._generatePages();
128
+ this._set = this._generateSet();
129
+ if (this.page > ((_a = this._pages) === null || _a === void 0 ? void 0 : _a.length)) {
130
+ this._changePage(this._pages.length);
131
+ }
132
+ }
133
+ _changePage(p) {
134
+ if (!p) {
135
+ return;
136
+ }
137
+ this.page = p;
138
+ this.pageChange.emit(this.page);
139
+ }
140
+ _previousClick() {
141
+ const previousPage = this.page - 1;
142
+ if (previousPage < this._pages[0]) {
143
+ return;
144
+ }
145
+ this._changePage(previousPage);
146
+ }
147
+ _generatePages() {
148
+ if (!this.total || !this.pageSize) {
149
+ return [];
150
+ }
151
+ const pages = Math.ceil(this.total / this.pageSize);
152
+ return new Array(pages).fill(undefined).map((_, i) => i + 1);
153
+ }
154
+ static get is() { return "p-pagination"; }
155
+ static get originalStyleUrls() { return {
156
+ "$": ["pagination.component.scss"]
157
+ }; }
158
+ static get styleUrls() { return {
159
+ "$": ["pagination.component.css"]
160
+ }; }
161
+ static get properties() { return {
162
+ "page": {
163
+ "type": "number",
164
+ "mutable": true,
165
+ "complexType": {
166
+ "original": "number",
167
+ "resolved": "number",
168
+ "references": {}
169
+ },
170
+ "required": false,
171
+ "optional": false,
172
+ "docs": {
173
+ "tags": [],
174
+ "text": "The current page"
175
+ },
176
+ "attribute": "page",
177
+ "reflect": true,
178
+ "defaultValue": "1"
179
+ },
180
+ "pageSize": {
181
+ "type": "number",
182
+ "mutable": false,
183
+ "complexType": {
184
+ "original": "number",
185
+ "resolved": "number",
186
+ "references": {}
187
+ },
188
+ "required": false,
189
+ "optional": false,
190
+ "docs": {
191
+ "tags": [],
192
+ "text": "The amount of items per page"
193
+ },
194
+ "attribute": "page-size",
195
+ "reflect": false,
196
+ "defaultValue": "12"
197
+ },
198
+ "total": {
199
+ "type": "number",
200
+ "mutable": false,
201
+ "complexType": {
202
+ "original": "number",
203
+ "resolved": "number",
204
+ "references": {}
205
+ },
206
+ "required": true,
207
+ "optional": false,
208
+ "docs": {
209
+ "tags": [],
210
+ "text": "The total amount of items"
211
+ },
212
+ "attribute": "total",
213
+ "reflect": false
214
+ }
215
+ }; }
216
+ static get events() { return [{
217
+ "method": "pageChange",
218
+ "name": "pageChange",
219
+ "bubbles": true,
220
+ "cancelable": true,
221
+ "composed": true,
222
+ "docs": {
223
+ "tags": [],
224
+ "text": ""
225
+ },
226
+ "complexType": {
227
+ "original": "number",
228
+ "resolved": "number",
229
+ "references": {}
230
+ }
231
+ }]; }
232
+ static get watchers() { return [{
233
+ "propName": "page",
234
+ "methodName": "pageChangeHandler"
235
+ }, {
236
+ "propName": "pageSize",
237
+ "methodName": "pageChangeHandler"
238
+ }, {
239
+ "propName": "total",
240
+ "methodName": "pageChangeHandler"
241
+ }]; }
242
+ }
@@ -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{border-color:rgb(82 138 250/var(--tw-border-opacity))!important}.border-indigo,.border-mystic-dark{--tw-border-opacity:1!important}.border-mystic-dark{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}.static{position:static!important}.static{position:static!important}
@@ -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,111 @@
1
+ import { Component, Element, h, Host, Prop } from '@stencil/core';
2
+ export class Modal {
3
+ constructor() {
4
+ /**
5
+ * The size of the modal container
6
+ */
7
+ this.size = 'md';
8
+ /**
9
+ * The variant of the modal body
10
+ */
11
+ this.variant = 'default';
12
+ /**
13
+ * Wether to show the modal or not
14
+ */
15
+ this.show = false;
16
+ this._hasFooterSlot = false;
17
+ }
18
+ componentWillLoad() {
19
+ this._hasFooterSlot = !!this._el.querySelector('[slot="footer"]');
20
+ }
21
+ render() {
22
+ if (!this.show) {
23
+ return;
24
+ }
25
+ const headerContent = h("slot", { name: "header" });
26
+ const bodyContent = h("slot", { name: "content" });
27
+ const footerContent = h("slot", { name: "footer" });
28
+ return (h(Host, { class: "p-modal" },
29
+ h("p-modal-backdrop", null,
30
+ h("p-modal-container", { size: this.size },
31
+ h("p-modal-header", null, this.header ? this.header : headerContent),
32
+ h("p-modal-body", { variant: this.variant }, bodyContent),
33
+ this._hasFooterSlot && (h("p-modal-footer", null, footerContent))))));
34
+ }
35
+ static get is() { return "p-modal"; }
36
+ static get encapsulation() { return "shadow"; }
37
+ static get properties() { return {
38
+ "size": {
39
+ "type": "string",
40
+ "mutable": false,
41
+ "complexType": {
42
+ "original": "'sm' | 'md' | 'lg' | 'xl'",
43
+ "resolved": "\"lg\" | \"md\" | \"sm\" | \"xl\"",
44
+ "references": {}
45
+ },
46
+ "required": false,
47
+ "optional": false,
48
+ "docs": {
49
+ "tags": [],
50
+ "text": "The size of the modal container"
51
+ },
52
+ "attribute": "size",
53
+ "reflect": false,
54
+ "defaultValue": "'md'"
55
+ },
56
+ "variant": {
57
+ "type": "string",
58
+ "mutable": false,
59
+ "complexType": {
60
+ "original": "'default' | 'table'",
61
+ "resolved": "\"default\" | \"table\"",
62
+ "references": {}
63
+ },
64
+ "required": false,
65
+ "optional": false,
66
+ "docs": {
67
+ "tags": [],
68
+ "text": "The variant of the modal body"
69
+ },
70
+ "attribute": "variant",
71
+ "reflect": false,
72
+ "defaultValue": "'default'"
73
+ },
74
+ "header": {
75
+ "type": "string",
76
+ "mutable": false,
77
+ "complexType": {
78
+ "original": "string",
79
+ "resolved": "string",
80
+ "references": {}
81
+ },
82
+ "required": false,
83
+ "optional": false,
84
+ "docs": {
85
+ "tags": [],
86
+ "text": "The Header of the modal"
87
+ },
88
+ "attribute": "header",
89
+ "reflect": false
90
+ },
91
+ "show": {
92
+ "type": "boolean",
93
+ "mutable": false,
94
+ "complexType": {
95
+ "original": "boolean",
96
+ "resolved": "boolean",
97
+ "references": {}
98
+ },
99
+ "required": false,
100
+ "optional": false,
101
+ "docs": {
102
+ "tags": [],
103
+ "text": "Wether to show the modal or not"
104
+ },
105
+ "attribute": "show",
106
+ "reflect": false,
107
+ "defaultValue": "false"
108
+ }
109
+ }; }
110
+ static get elementRef() { return "_el"; }
111
+ }
@@ -0,0 +1,17 @@
1
+ module.exports = {
2
+ animation: {
3
+ 'fade-in': 'fadeIn .2s ease-in-out',
4
+ 'fade-out': 'fadeOut .2s ease-in-out',
5
+ },
6
+
7
+ keyframes: {
8
+ fadeIn: {
9
+ '0%': { opacity: 0 },
10
+ '100%': { opacity: 100 },
11
+ },
12
+ fadeOut: {
13
+ '0%': { opacity: 100 },
14
+ '100%': { opacity: 0 },
15
+ },
16
+ },
17
+ };
@@ -0,0 +1,3 @@
1
+ module.exports = {
2
+ xs: '2px',
3
+ };
@@ -1,8 +1,10 @@
1
1
  module.exports = {
2
- large: '0.375rem',
3
- DEFAULT: '0.25rem',
4
- medium: '0.25rem',
5
- small: '0.125rem',
6
- none: 0,
7
- round: '100%',
2
+ xxlarge: '0.75rem',
3
+ xlarge: '0.5625rem',
4
+ large: '0.375rem',
5
+ DEFAULT: '0.25rem',
6
+ medium: '0.25rem',
7
+ small: '0.125rem',
8
+ none: 0,
9
+ round: '100%',
8
10
  };
@@ -0,0 +1,8 @@
1
+ module.exports = {
2
+ tablet: '40rem',
3
+ 'desktop-xs': '64rem',
4
+ 'desktop-sm': '80rem',
5
+ desktop: '85.375rem',
6
+ 'desktop-lg': '90rem',
7
+ 'desktop-xl': '120rem',
8
+ };
@@ -0,0 +1,10 @@
1
+ module.exports = {
2
+ // default variant layout
3
+ 'content-mobile-x': '1rem',
4
+ 'content-mobile-y': '1.5rem',
5
+
6
+ 'content-desktop-x': '2rem',
7
+ 'content-desktop-y': '2rem',
8
+
9
+ 18: '4.5rem',
10
+ };