@paperless/core 0.1.0-alpha.25 → 0.1.0-alpha.250

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 (583) hide show
  1. package/CHANGELOG.md +2273 -0
  2. package/README.md +9 -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/i18n/table.i18n.en.json +13 -0
  10. package/dist/assets/i18n/table.i18n.nl.json +13 -0
  11. package/dist/assets/icons/camera.svg +10 -0
  12. package/dist/assets/icons/checklist.svg +17 -0
  13. package/dist/assets/icons/folder.svg +19 -0
  14. package/dist/assets/icons/integration.svg +17 -0
  15. package/dist/assets/icons/menu.svg +25 -0
  16. package/dist/assets/icons/more.svg +18 -0
  17. package/dist/assets/icons/signout.svg +23 -0
  18. package/dist/assets/icons/switch.svg +20 -0
  19. package/dist/assets/icons/task.svg +17 -0
  20. package/dist/assets/icons/template.svg +17 -0
  21. package/dist/assets/illustrations/e-mail.svg +1 -0
  22. package/dist/assets/illustrations/empty-state-overview.svg +65 -0
  23. package/dist/assets/illustrations/empty-state-search.svg +88 -0
  24. package/dist/build/index.esm.js +1 -0
  25. package/dist/build/p-06899ffb.entry.js +1 -0
  26. package/dist/build/p-0818aeaa.entry.js +1 -0
  27. package/dist/build/p-09ea2a1a.js +1 -0
  28. package/dist/build/p-150aadaf.entry.js +1 -0
  29. package/dist/build/p-15d13147.entry.js +1 -0
  30. package/dist/build/p-18730832.entry.js +1 -0
  31. package/dist/build/p-187cbac2.entry.js +1 -0
  32. package/dist/build/p-25ed4eb4.entry.js +1 -0
  33. package/dist/build/p-2f15d6f7.entry.js +1 -0
  34. package/dist/build/p-3180c96e.entry.js +1 -0
  35. package/dist/build/p-32f01550.entry.js +1 -0
  36. package/dist/build/p-337ad423.entry.js +1 -0
  37. package/dist/build/p-41588819.entry.js +1 -0
  38. package/dist/build/p-44d46765.entry.js +1 -0
  39. package/dist/build/p-4588a510.entry.js +1 -0
  40. package/dist/build/p-4ac1f4de.entry.js +1 -0
  41. package/dist/build/p-4e650fe4.js +1 -0
  42. package/dist/build/p-52ab1f62.entry.js +1 -0
  43. package/dist/build/p-55c5a1bd.entry.js +1 -0
  44. package/dist/build/p-58dd41be.entry.js +1 -0
  45. package/dist/build/p-5a71d6ae.entry.js +1 -0
  46. package/dist/build/p-5be7193c.entry.js +1 -0
  47. package/dist/build/p-6c60fd3d.js +1 -0
  48. package/dist/build/p-7e40c097.entry.js +1 -0
  49. package/dist/build/p-7e9a866e.entry.js +1 -0
  50. package/dist/build/p-8614bd10.entry.js +1 -0
  51. package/dist/build/p-86a6c56a.entry.js +1 -0
  52. package/dist/build/p-8a6728d5.js +1 -0
  53. package/dist/build/p-8f179b0d.entry.js +1 -0
  54. package/dist/build/p-a7086ffa.js +1 -0
  55. package/dist/build/p-ad147b1b.entry.js +1 -0
  56. package/dist/build/p-c11282d2.entry.js +1 -0
  57. package/dist/build/p-c4110c09.entry.js +1 -0
  58. package/dist/build/p-ccbcbb08.entry.js +1 -0
  59. package/dist/build/p-d0a9b97b.entry.js +1 -0
  60. package/dist/build/p-d17b038f.entry.js +1 -0
  61. package/dist/build/p-d9c1fe13.js +2 -0
  62. package/dist/build/p-ddeaf320.entry.js +1 -0
  63. package/dist/build/p-e575463c.entry.js +1 -0
  64. package/dist/build/paperless.css +331 -20
  65. package/dist/build/paperless.esm.js +1 -1
  66. package/dist/cjs/child-of-e472f812.js +9 -0
  67. package/dist/cjs/constants-a4459ec9.js +7 -0
  68. package/dist/cjs/{index-a46a39a5.js → index-cf92051a.js} +197 -5
  69. package/dist/cjs/index.cjs.js +17 -0
  70. package/dist/cjs/loader.cjs.js +3 -3
  71. package/dist/cjs/localization-9e2ac7f3.js +60 -0
  72. package/dist/cjs/object-get-by-path-6dc21ed5.js +12 -0
  73. package/dist/cjs/p-accordion.cjs.entry.js +42 -0
  74. package/dist/cjs/p-avatar-group.cjs.entry.js +19 -0
  75. package/dist/cjs/p-avatar.cjs.entry.js +19 -5
  76. package/dist/cjs/p-button_3.cjs.entry.js +333 -62
  77. package/dist/cjs/p-card-body.cjs.entry.js +23 -0
  78. package/dist/cjs/p-card-container.cjs.entry.js +27 -0
  79. package/dist/cjs/p-card-header.cjs.entry.js +24 -0
  80. package/dist/cjs/p-content-slider.cjs.entry.js +221 -0
  81. package/dist/cjs/p-counter.cjs.entry.js +11 -3
  82. package/dist/cjs/p-divider.cjs.entry.js +6 -3
  83. package/dist/cjs/p-dropdown_3.cjs.entry.js +205 -0
  84. package/dist/cjs/p-helper_2.cjs.entry.js +160 -0
  85. package/dist/cjs/p-illustration_6.cjs.entry.js +2772 -0
  86. package/dist/cjs/p-info-panel.cjs.entry.js +2 -2
  87. package/dist/cjs/p-input-group_4.cjs.entry.js +144 -0
  88. package/dist/cjs/p-layout.cjs.entry.js +23 -0
  89. package/dist/cjs/p-modal-backdrop_5.cjs.entry.js +101 -0
  90. package/dist/cjs/p-modal.cjs.entry.js +53 -0
  91. package/dist/cjs/p-navbar.cjs.entry.js +34 -0
  92. package/dist/cjs/p-navigation-item.cjs.entry.js +3 -3
  93. package/dist/cjs/p-page-size-select_3.cjs.entry.js +257 -0
  94. package/dist/cjs/p-profile.cjs.entry.js +49 -0
  95. package/dist/cjs/p-select.cjs.entry.js +182 -0
  96. package/dist/cjs/p-slider-indicator.cjs.entry.js +23 -0
  97. package/dist/cjs/p-status.cjs.entry.js +49 -0
  98. package/dist/cjs/p-stepper-item_2.cjs.entry.js +56 -0
  99. package/dist/cjs/p-stepper.cjs.entry.js +49 -0
  100. package/dist/cjs/p-tab-group.cjs.entry.js +19 -0
  101. package/dist/cjs/p-tab-item.cjs.entry.js +23 -0
  102. package/dist/cjs/p-table-column.cjs.entry.js +36 -0
  103. package/dist/cjs/p-table.cjs.entry.js +380 -0
  104. package/dist/cjs/p-toast-container.cjs.entry.js +23 -0
  105. package/dist/cjs/p-toast.cjs.entry.js +38 -0
  106. package/dist/cjs/paperless.cjs.js +3 -3
  107. package/dist/{esm/p-tooltip.entry.js → cjs/popper-e0c4ed4c.js} +2 -123
  108. package/dist/collection/assets/icons/camera.svg +10 -0
  109. package/dist/collection/assets/icons/checklist.svg +17 -0
  110. package/dist/collection/assets/icons/folder.svg +19 -0
  111. package/dist/collection/assets/icons/integration.svg +17 -0
  112. package/dist/collection/assets/icons/menu.svg +25 -0
  113. package/dist/collection/assets/icons/more.svg +18 -0
  114. package/dist/collection/assets/icons/signout.svg +23 -0
  115. package/dist/collection/assets/icons/switch.svg +20 -0
  116. package/dist/collection/assets/icons/task.svg +17 -0
  117. package/dist/collection/assets/icons/template.svg +17 -0
  118. package/dist/collection/assets/illustrations/e-mail.svg +1 -0
  119. package/dist/collection/assets/illustrations/empty-state-overview.svg +65 -0
  120. package/dist/collection/assets/illustrations/empty-state-search.svg +88 -0
  121. package/dist/collection/collection-manifest.json +42 -2
  122. package/dist/collection/components/atoms/avatar/avatar.component.css +16 -20
  123. package/dist/collection/components/atoms/avatar/avatar.component.js +23 -9
  124. package/dist/collection/components/atoms/avatar-group/avatar-group.component.css +18 -0
  125. package/dist/collection/components/atoms/avatar-group/avatar-group.component.js +36 -0
  126. package/dist/collection/components/atoms/button/button.component.css +60 -23
  127. package/dist/collection/components/atoms/button/button.component.js +133 -11
  128. package/dist/collection/components/atoms/card-body/card-body.component.css +9 -0
  129. package/dist/collection/components/atoms/card-body/card-body.component.js +40 -0
  130. package/dist/collection/components/atoms/card-container/card-container.component.css +17 -0
  131. package/dist/collection/components/atoms/card-container/card-container.component.js +63 -0
  132. package/dist/collection/components/atoms/card-header/card-header.component.css +17 -0
  133. package/dist/collection/components/atoms/card-header/card-header.component.js +61 -0
  134. package/dist/collection/components/atoms/counter/counter.component.css +26 -1
  135. package/dist/collection/components/atoms/counter/counter.component.js +50 -2
  136. package/dist/collection/components/atoms/divider/divider.component.css +9 -2
  137. package/dist/collection/components/atoms/divider/divider.component.js +8 -2
  138. package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.css +8 -0
  139. package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.js +40 -0
  140. package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.css +16 -0
  141. package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js +87 -0
  142. package/dist/collection/components/atoms/helper/helper.component.css +1 -1
  143. package/dist/collection/components/atoms/helper/helper.component.js +33 -2
  144. package/dist/collection/components/atoms/icon/icon.component.css +1 -0
  145. package/dist/collection/components/atoms/icon/icon.component.js +62 -13
  146. package/dist/collection/components/atoms/illustration/illustration.component.js +1 -1
  147. package/dist/collection/components/atoms/info-panel/info-panel.component.css +1 -1
  148. package/dist/collection/components/atoms/label/label.component.css +85 -0
  149. package/dist/collection/components/atoms/label/label.component.js +203 -0
  150. package/dist/collection/components/atoms/layout/layout.component.css +73 -0
  151. package/dist/collection/components/atoms/layout/layout.component.js +47 -0
  152. package/dist/collection/components/atoms/loader/loader.component.css +29 -8
  153. package/dist/collection/components/atoms/loader/loader.component.js +5 -2
  154. package/dist/collection/components/atoms/modal-backdrop/modal-backdrop.component.css +7 -0
  155. package/dist/collection/components/atoms/modal-backdrop/modal-backdrop.component.js +15 -0
  156. package/dist/collection/components/atoms/modal-body/modal-body.component.css +7 -0
  157. package/dist/collection/components/atoms/modal-body/modal-body.component.js +41 -0
  158. package/dist/collection/components/atoms/modal-container/modal-container.component.css +6 -0
  159. package/dist/collection/components/atoms/modal-container/modal-container.component.js +53 -0
  160. package/dist/collection/components/atoms/modal-footer/modal-footer.component.css +8 -0
  161. package/dist/collection/components/atoms/modal-footer/modal-footer.component.js +42 -0
  162. package/dist/collection/components/atoms/modal-header/modal-header.component.css +7 -0
  163. package/dist/collection/components/atoms/modal-header/modal-header.component.js +63 -0
  164. package/dist/collection/components/atoms/pagination-item/pagination-item.component.css +1 -1
  165. package/dist/collection/components/atoms/segment-container/segment-container.component.css +5 -0
  166. package/dist/collection/components/atoms/segment-container/segment-container.component.js +14 -0
  167. package/dist/collection/components/atoms/segment-item/segment-item.component.css +21 -0
  168. package/dist/collection/components/atoms/segment-item/segment-item.component.js +112 -0
  169. package/dist/collection/components/atoms/slider-indicator/slider-indicator.component.css +7 -0
  170. package/dist/collection/components/atoms/slider-indicator/slider-indicator.component.js +40 -0
  171. package/dist/collection/components/atoms/status/status.component.css +16 -0
  172. package/dist/collection/components/atoms/status/status.component.js +133 -0
  173. package/dist/collection/components/atoms/stepper-item/stepper-item.component.css +59 -0
  174. package/dist/collection/components/atoms/stepper-item/stepper-item.component.js +109 -0
  175. package/dist/collection/components/atoms/stepper-line/stepper-line.component.css +18 -0
  176. package/dist/collection/components/atoms/stepper-line/stepper-line.component.js +62 -0
  177. package/dist/collection/components/atoms/tab-group/tab-group.component.css +9 -0
  178. package/dist/collection/components/atoms/tab-group/tab-group.component.js +17 -0
  179. package/dist/collection/components/atoms/tab-item/tab-item.component.css +10 -0
  180. package/dist/collection/components/atoms/tab-item/tab-item.component.js +41 -0
  181. package/dist/collection/components/atoms/table-container/table-container.component.css +5 -0
  182. package/dist/collection/components/atoms/table-container/table-container.component.js +15 -0
  183. package/dist/collection/components/atoms/toast-container/toast-container.component.css +27 -0
  184. package/dist/collection/components/atoms/toast-container/toast-container.component.js +41 -0
  185. package/dist/collection/components/atoms/tooltip/tooltip.component.css +19 -13
  186. package/dist/collection/components/atoms/tooltip/tooltip.component.js +77 -24
  187. package/dist/collection/components/helpers/table-column/table-column.component.js +157 -0
  188. package/dist/collection/components/molecules/accordion/accordion.component.css +3 -0
  189. package/dist/collection/components/molecules/accordion/accordion.component.js +133 -0
  190. package/dist/collection/components/molecules/content-slider/content-slider.component.css +44 -0
  191. package/dist/collection/components/molecules/content-slider/content-slider.component.js +322 -0
  192. package/dist/collection/components/molecules/dropdown/dropdown.component.css +12 -0
  193. package/dist/collection/components/molecules/dropdown/dropdown.component.js +346 -0
  194. package/dist/collection/components/molecules/input-group/input-group.component.css +324 -0
  195. package/dist/collection/components/molecules/input-group/input-group.component.js +339 -0
  196. package/dist/collection/components/molecules/navigation-item/navigation-item.component.css +6 -12
  197. package/dist/collection/components/molecules/navigation-item/navigation-item.component.js +2 -2
  198. package/dist/collection/components/molecules/page-size-select/constants.js +2 -0
  199. package/dist/collection/components/molecules/page-size-select/page-size-select.component.js +223 -0
  200. package/dist/collection/components/molecules/pagination/pagination.component.css +1 -1
  201. package/dist/collection/components/molecules/pagination/pagination.component.js +25 -3
  202. package/dist/collection/components/molecules/profile/profile.component.css +60 -0
  203. package/dist/collection/components/molecules/profile/profile.component.js +95 -0
  204. package/dist/collection/components/molecules/select/select.component.css +6 -0
  205. package/dist/collection/components/molecules/select/select.component.js +557 -0
  206. package/dist/collection/components/molecules/stepper/stepper.component.css +12 -0
  207. package/dist/collection/components/molecules/stepper/stepper.component.js +84 -0
  208. package/dist/collection/components/molecules/table-cell/table-cell.component.css +3 -0
  209. package/dist/collection/components/molecules/table-cell/table-cell.component.js +258 -0
  210. package/dist/collection/components/molecules/table-footer/table-footer.component.css +30 -0
  211. package/dist/collection/components/molecules/table-footer/table-footer.component.js +268 -0
  212. package/dist/collection/components/molecules/table-header/table-header.component.css +16 -0
  213. package/dist/collection/components/molecules/table-header/table-header.component.js +386 -0
  214. package/dist/collection/components/molecules/table-row/table-row.component.css +21 -0
  215. package/dist/collection/components/molecules/table-row/table-row.component.js +67 -0
  216. package/dist/collection/components/molecules/toast/toast.component.css +23 -0
  217. package/dist/collection/components/molecules/toast/toast.component.js +197 -0
  218. package/dist/collection/components/organisms/modal/modal.component.js +180 -0
  219. package/dist/collection/components/organisms/navbar/navbar.component.css +59 -0
  220. package/dist/collection/components/organisms/navbar/navbar.component.js +99 -0
  221. package/dist/collection/components/organisms/table/table.component.css +3 -0
  222. package/dist/collection/components/organisms/table/table.component.js +1163 -0
  223. package/dist/collection/index.js +2 -1
  224. package/dist/collection/tailwind/animation.js +17 -0
  225. package/dist/collection/tailwind/backdrop-blur.js +3 -0
  226. package/dist/collection/tailwind/border-radius.js +8 -7
  227. package/dist/collection/tailwind/height.js +3 -0
  228. package/dist/collection/tailwind/screens.js +8 -0
  229. package/dist/collection/tailwind/shadows.js +9 -5
  230. package/dist/collection/tailwind/spacing.js +10 -0
  231. package/dist/collection/tailwind/typography.js +21 -0
  232. package/dist/collection/tailwind/width.js +18 -0
  233. package/dist/collection/tailwind/z-index.js +11 -0
  234. package/dist/collection/tailwind.config.js +28 -14
  235. package/dist/collection/types/index.js +2 -0
  236. package/dist/collection/types/table.js +1 -0
  237. package/dist/collection/types/tailwind.js +1 -0
  238. package/dist/collection/utils/child-of.js +5 -0
  239. package/dist/collection/utils/icons.js +20 -0
  240. package/dist/collection/utils/illustrations.js +6 -0
  241. package/dist/collection/utils/index.js +6 -0
  242. package/dist/collection/utils/localization.js +55 -0
  243. package/dist/collection/utils/object-get-by-path.js +8 -0
  244. package/dist/collection/utils/transformers.js +4 -0
  245. package/dist/components/button.component.js +125 -0
  246. package/dist/components/counter.component.js +14 -3
  247. package/dist/components/divider.component.js +33 -0
  248. package/dist/components/dropdown-menu-container.component.js +35 -0
  249. package/dist/components/dropdown-menu-item.component.js +48 -0
  250. package/dist/components/dropdown.component.js +198 -0
  251. package/dist/components/helper.component.js +42 -0
  252. package/dist/components/icon.component.js +248 -5
  253. package/dist/{cjs/p-illustration.cjs.entry.js → components/illustration.component.js} +187 -16
  254. package/dist/components/index.d.ts +53 -13
  255. package/dist/components/index.js +50 -0
  256. package/dist/components/input-group.component.js +116 -0
  257. package/dist/components/label.component.js +69 -0
  258. package/dist/components/loader.component.js +4 -1
  259. package/dist/components/localization.js +57 -0
  260. package/dist/components/modal-backdrop.component.js +30 -0
  261. package/dist/components/modal-body.component.js +36 -0
  262. package/dist/components/modal-container.component.js +48 -0
  263. package/dist/components/modal-footer.component.js +42 -0
  264. package/dist/components/modal-header.component.js +55 -0
  265. package/dist/components/p-accordion.d.ts +11 -0
  266. package/dist/components/p-accordion.js +73 -0
  267. package/dist/components/p-avatar-group.d.ts +11 -0
  268. package/dist/components/p-avatar-group.js +34 -0
  269. package/dist/components/p-avatar.js +21 -8
  270. package/dist/components/p-button.js +1 -93
  271. package/dist/components/p-card-body.d.ts +11 -0
  272. package/dist/components/p-card-body.js +38 -0
  273. package/dist/components/p-card-container.d.ts +11 -0
  274. package/dist/components/p-card-container.js +44 -0
  275. package/dist/components/p-card-header.d.ts +11 -0
  276. package/dist/components/p-card-header.js +46 -0
  277. package/dist/components/p-content-slider.d.ts +11 -0
  278. package/dist/components/p-content-slider.js +250 -0
  279. package/dist/components/p-divider.js +1 -28
  280. package/dist/components/p-dropdown-menu-container.d.ts +11 -0
  281. package/dist/components/p-dropdown-menu-container.js +6 -0
  282. package/dist/components/p-dropdown-menu-item.d.ts +11 -0
  283. package/dist/components/p-dropdown-menu-item.js +6 -0
  284. package/dist/components/p-dropdown.d.ts +11 -0
  285. package/dist/components/p-dropdown.js +6 -0
  286. package/dist/components/p-helper.js +1 -34
  287. package/dist/components/p-illustration.js +1 -1432
  288. package/dist/components/p-info-panel.js +1 -1
  289. package/dist/components/p-input-group.d.ts +11 -0
  290. package/dist/components/p-input-group.js +6 -0
  291. package/dist/components/p-label.d.ts +11 -0
  292. package/dist/components/p-label.js +6 -0
  293. package/dist/components/p-layout.d.ts +11 -0
  294. package/dist/components/p-layout.js +39 -0
  295. package/dist/components/p-modal-backdrop.d.ts +11 -0
  296. package/dist/components/p-modal-backdrop.js +6 -0
  297. package/dist/components/p-modal-body.d.ts +11 -0
  298. package/dist/components/p-modal-body.js +6 -0
  299. package/dist/components/p-modal-container.d.ts +11 -0
  300. package/dist/components/p-modal-container.js +6 -0
  301. package/dist/components/p-modal-footer.d.ts +11 -0
  302. package/dist/components/p-modal-footer.js +6 -0
  303. package/dist/components/p-modal-header.d.ts +11 -0
  304. package/dist/components/p-modal-header.js +6 -0
  305. package/dist/components/p-modal.d.ts +11 -0
  306. package/dist/components/p-modal.js +128 -0
  307. package/dist/components/p-navbar.d.ts +11 -0
  308. package/dist/components/p-navbar.js +70 -0
  309. package/dist/components/p-navigation-item.js +2 -2
  310. package/dist/components/p-page-size-select.d.ts +11 -0
  311. package/dist/components/p-page-size-select.js +6 -0
  312. package/dist/components/p-pagination.js +1 -195
  313. package/dist/components/p-profile.d.ts +11 -0
  314. package/dist/components/p-profile.js +85 -0
  315. package/dist/components/p-segment-container.d.ts +11 -0
  316. package/dist/components/p-segment-container.js +6 -0
  317. package/dist/components/p-segment-item.d.ts +11 -0
  318. package/dist/components/p-segment-item.js +6 -0
  319. package/dist/components/p-select.d.ts +11 -0
  320. package/dist/components/p-select.js +264 -0
  321. package/dist/components/p-slider-indicator.d.ts +11 -0
  322. package/dist/components/p-slider-indicator.js +6 -0
  323. package/dist/components/p-status.d.ts +11 -0
  324. package/dist/components/p-status.js +73 -0
  325. package/dist/components/p-stepper-item.d.ts +11 -0
  326. package/dist/components/p-stepper-item.js +6 -0
  327. package/dist/components/p-stepper-line.d.ts +11 -0
  328. package/dist/components/p-stepper-line.js +6 -0
  329. package/dist/components/p-stepper.d.ts +11 -0
  330. package/dist/components/p-stepper.js +84 -0
  331. package/dist/components/p-tab-group.d.ts +11 -0
  332. package/dist/components/p-tab-group.js +39 -0
  333. package/dist/components/p-tab-item.d.ts +11 -0
  334. package/dist/components/p-tab-item.js +39 -0
  335. package/dist/components/p-table-cell.d.ts +11 -0
  336. package/dist/components/p-table-cell.js +6 -0
  337. package/dist/components/p-table-column.d.ts +11 -0
  338. package/dist/components/p-table-column.js +56 -0
  339. package/dist/components/p-table-container.d.ts +11 -0
  340. package/dist/components/p-table-container.js +6 -0
  341. package/dist/components/p-table-footer.d.ts +11 -0
  342. package/dist/components/p-table-footer.js +6 -0
  343. package/dist/components/p-table-header.d.ts +11 -0
  344. package/dist/components/p-table-header.js +6 -0
  345. package/dist/components/p-table-row.d.ts +11 -0
  346. package/dist/components/p-table-row.js +6 -0
  347. package/dist/components/p-table.d.ts +11 -0
  348. package/dist/components/p-table.js +558 -0
  349. package/dist/components/p-toast-container.d.ts +11 -0
  350. package/dist/components/p-toast-container.js +39 -0
  351. package/dist/components/p-toast.d.ts +11 -0
  352. package/dist/components/p-toast.js +78 -0
  353. package/dist/components/page-size-select.component.js +129 -0
  354. package/dist/components/pagination-item.component.js +1 -1
  355. package/dist/components/pagination.component.js +202 -0
  356. package/dist/{cjs/p-tooltip.cjs.entry.js → components/popper.js} +1 -128
  357. package/dist/components/segment-container.component.js +29 -0
  358. package/dist/components/segment-item.component.js +51 -0
  359. package/dist/components/slider-indicator.component.js +36 -0
  360. package/dist/components/stepper-item.component.js +57 -0
  361. package/dist/components/stepper-line.component.js +41 -0
  362. package/dist/components/table-cell.component.js +143 -0
  363. package/dist/components/table-container.component.js +30 -0
  364. package/dist/components/table-footer.component.js +146 -0
  365. package/dist/components/table-header.component.js +1068 -0
  366. package/dist/components/table-row.component.js +49 -0
  367. package/dist/components/tooltip.component.js +37 -1808
  368. package/dist/esm/child-of-90a8c4b5.js +7 -0
  369. package/dist/esm/constants-826f9460.js +4 -0
  370. package/dist/esm/{index-a68e547b.js → index-7c99f044.js} +197 -5
  371. package/dist/esm/index.js +9 -0
  372. package/dist/esm/loader.js +3 -3
  373. package/dist/esm/localization-901dc2d3.js +57 -0
  374. package/dist/esm/object-get-by-path-d6427a61.js +10 -0
  375. package/dist/esm/p-accordion.entry.js +38 -0
  376. package/dist/esm/p-avatar-group.entry.js +15 -0
  377. package/dist/esm/p-avatar.entry.js +19 -5
  378. package/dist/esm/p-button_3.entry.js +333 -62
  379. package/dist/esm/p-card-body.entry.js +19 -0
  380. package/dist/esm/p-card-container.entry.js +23 -0
  381. package/dist/esm/p-card-header.entry.js +20 -0
  382. package/dist/esm/p-content-slider.entry.js +217 -0
  383. package/dist/esm/p-counter.entry.js +11 -3
  384. package/dist/esm/p-divider.entry.js +6 -3
  385. package/dist/esm/p-dropdown_3.entry.js +199 -0
  386. package/dist/esm/p-helper_2.entry.js +155 -0
  387. package/dist/esm/{p-illustration.entry.js → p-illustration_6.entry.js} +1347 -3
  388. package/dist/esm/p-info-panel.entry.js +2 -2
  389. package/dist/esm/p-input-group_4.entry.js +137 -0
  390. package/dist/esm/p-layout.entry.js +19 -0
  391. package/dist/esm/p-modal-backdrop_5.entry.js +93 -0
  392. package/dist/esm/p-modal.entry.js +49 -0
  393. package/dist/esm/p-navbar.entry.js +30 -0
  394. package/dist/esm/p-navigation-item.entry.js +3 -3
  395. package/dist/esm/p-page-size-select_3.entry.js +251 -0
  396. package/dist/esm/p-profile.entry.js +45 -0
  397. package/dist/esm/p-select.entry.js +178 -0
  398. package/dist/esm/p-slider-indicator.entry.js +19 -0
  399. package/dist/esm/p-status.entry.js +45 -0
  400. package/dist/esm/p-stepper-item_2.entry.js +51 -0
  401. package/dist/esm/p-stepper.entry.js +45 -0
  402. package/dist/esm/p-tab-group.entry.js +15 -0
  403. package/dist/esm/p-tab-item.entry.js +19 -0
  404. package/dist/esm/p-table-column.entry.js +32 -0
  405. package/dist/esm/p-table.entry.js +376 -0
  406. package/dist/esm/p-toast-container.entry.js +19 -0
  407. package/dist/esm/p-toast.entry.js +34 -0
  408. package/dist/esm/paperless.js +3 -3
  409. package/dist/esm/polyfills/core-js.js +0 -0
  410. package/dist/esm/polyfills/dom.js +0 -0
  411. package/dist/esm/polyfills/es5-html-element.js +0 -0
  412. package/dist/esm/polyfills/index.js +0 -0
  413. package/dist/esm/polyfills/system.js +0 -0
  414. package/dist/esm/popper-41c6f9cd.js +1788 -0
  415. package/dist/index.html +1 -1
  416. package/dist/paperless/index.esm.js +1 -0
  417. package/dist/paperless/p-06899ffb.entry.js +1 -0
  418. package/dist/paperless/p-0818aeaa.entry.js +1 -0
  419. package/dist/paperless/p-09ea2a1a.js +1 -0
  420. package/dist/paperless/p-150aadaf.entry.js +1 -0
  421. package/dist/paperless/p-15d13147.entry.js +1 -0
  422. package/dist/paperless/p-18730832.entry.js +1 -0
  423. package/dist/paperless/p-187cbac2.entry.js +1 -0
  424. package/dist/paperless/p-25ed4eb4.entry.js +1 -0
  425. package/dist/paperless/p-2f15d6f7.entry.js +1 -0
  426. package/dist/paperless/p-3180c96e.entry.js +1 -0
  427. package/dist/paperless/p-32f01550.entry.js +1 -0
  428. package/dist/paperless/p-337ad423.entry.js +1 -0
  429. package/dist/paperless/p-41588819.entry.js +1 -0
  430. package/dist/paperless/p-44d46765.entry.js +1 -0
  431. package/dist/paperless/p-4588a510.entry.js +1 -0
  432. package/dist/paperless/p-4ac1f4de.entry.js +1 -0
  433. package/dist/paperless/p-4e650fe4.js +1 -0
  434. package/dist/paperless/p-52ab1f62.entry.js +1 -0
  435. package/dist/paperless/p-55c5a1bd.entry.js +1 -0
  436. package/dist/paperless/p-58dd41be.entry.js +1 -0
  437. package/dist/paperless/p-5a71d6ae.entry.js +1 -0
  438. package/dist/paperless/p-5be7193c.entry.js +1 -0
  439. package/dist/paperless/p-6c60fd3d.js +1 -0
  440. package/dist/paperless/p-7e40c097.entry.js +1 -0
  441. package/dist/paperless/p-7e9a866e.entry.js +1 -0
  442. package/dist/paperless/p-8614bd10.entry.js +1 -0
  443. package/dist/paperless/p-86a6c56a.entry.js +1 -0
  444. package/dist/paperless/p-8a6728d5.js +1 -0
  445. package/dist/paperless/p-8f179b0d.entry.js +1 -0
  446. package/dist/paperless/p-a7086ffa.js +1 -0
  447. package/dist/paperless/p-ad147b1b.entry.js +1 -0
  448. package/dist/paperless/p-c11282d2.entry.js +1 -0
  449. package/dist/paperless/p-c4110c09.entry.js +1 -0
  450. package/dist/paperless/p-ccbcbb08.entry.js +1 -0
  451. package/dist/paperless/p-d0a9b97b.entry.js +1 -0
  452. package/dist/paperless/p-d17b038f.entry.js +1 -0
  453. package/dist/paperless/p-d9c1fe13.js +2 -0
  454. package/dist/paperless/p-ddeaf320.entry.js +1 -0
  455. package/dist/paperless/p-e575463c.entry.js +1 -0
  456. package/dist/paperless/paperless.css +475 -26447
  457. package/dist/paperless/paperless.esm.js +1 -1
  458. package/dist/style/_fonts.scss +70 -0
  459. package/dist/style/_reset.scss +31 -0
  460. package/dist/style/_tailwind.scss +3 -0
  461. package/dist/style/_typograhpy.scss +29 -0
  462. package/dist/style/_variables.scss +2 -0
  463. package/dist/style/form/_checkbox.scss +62 -0
  464. package/dist/style/form/_input.scss +22 -0
  465. package/dist/style/form/_mixins.scss +107 -0
  466. package/dist/style/form/_radio.scss +58 -0
  467. package/dist/style/form/_textarea.scss +18 -0
  468. package/dist/style/form/index.scss +4 -0
  469. package/dist/style/paperless.scss +10 -0
  470. package/dist/sw.js +2 -471
  471. package/dist/sw.js.map +1 -0
  472. package/dist/tailwind/animation.js +17 -0
  473. package/dist/tailwind/backdrop-blur.js +3 -0
  474. package/dist/tailwind/border-radius.js +10 -0
  475. package/dist/tailwind/colors.js +52 -0
  476. package/dist/tailwind/height.js +3 -0
  477. package/dist/tailwind/rotate.js +8 -0
  478. package/dist/tailwind/scale.js +3 -0
  479. package/dist/tailwind/screens.js +8 -0
  480. package/dist/tailwind/shadows.js +11 -0
  481. package/dist/tailwind/spacing.js +10 -0
  482. package/dist/tailwind/typography.js +21 -0
  483. package/dist/tailwind/width.js +18 -0
  484. package/dist/tailwind/z-index.js +11 -0
  485. package/dist/tailwind.config.js +28 -14
  486. package/dist/types/components/atoms/avatar/avatar.component.d.ts +3 -1
  487. package/dist/types/components/atoms/avatar-group/avatar-group.component.d.ts +7 -0
  488. package/dist/types/components/atoms/button/button.component.d.ts +26 -1
  489. package/dist/types/components/atoms/card-body/card-body.component.d.ts +7 -0
  490. package/dist/types/components/atoms/card-container/card-container.component.d.ts +11 -0
  491. package/dist/types/components/atoms/card-header/card-header.component.d.ts +11 -0
  492. package/dist/types/components/atoms/counter/counter.component.d.ts +8 -0
  493. package/dist/types/components/atoms/divider/divider.component.d.ts +4 -0
  494. package/dist/types/components/atoms/dropdown-menu-container/dropdown-menu-container.component.d.ts +7 -0
  495. package/dist/types/components/atoms/dropdown-menu-item/dropdown-menu-item.component.d.ts +16 -0
  496. package/dist/types/components/atoms/helper/helper.component.d.ts +5 -0
  497. package/dist/types/components/atoms/icon/icon.component.d.ts +3 -3
  498. package/dist/types/components/atoms/label/label.component.d.ts +37 -0
  499. package/dist/types/components/atoms/layout/layout.component.d.ts +7 -0
  500. package/dist/types/components/atoms/loader/loader.component.d.ts +1 -1
  501. package/dist/types/components/atoms/modal-backdrop/modal-backdrop.component.d.ts +3 -0
  502. package/dist/types/components/atoms/modal-body/modal-body.component.d.ts +7 -0
  503. package/dist/types/components/atoms/modal-container/modal-container.component.d.ts +7 -0
  504. package/dist/types/components/atoms/modal-footer/modal-footer.component.d.ts +7 -0
  505. package/dist/types/components/atoms/modal-header/modal-header.component.d.ts +12 -0
  506. package/dist/types/components/atoms/segment-container/segment-container.component.d.ts +3 -0
  507. package/dist/types/components/atoms/segment-item/segment-item.component.d.ts +22 -0
  508. package/dist/types/components/atoms/slider-indicator/slider-indicator.component.d.ts +7 -0
  509. package/dist/types/components/atoms/status/status.component.d.ts +23 -0
  510. package/dist/types/components/atoms/stepper-item/stepper-item.component.d.ts +19 -0
  511. package/dist/types/components/atoms/stepper-line/stepper-line.component.d.ts +11 -0
  512. package/dist/types/components/atoms/tab-group/tab-group.component.d.ts +3 -0
  513. package/dist/types/components/atoms/tab-item/tab-item.component.d.ts +7 -0
  514. package/dist/types/components/atoms/table-container/table-container.component.d.ts +3 -0
  515. package/dist/types/components/atoms/toast-container/toast-container.component.d.ts +7 -0
  516. package/dist/types/components/atoms/tooltip/tooltip.component.d.ts +12 -3
  517. package/dist/types/components/helpers/table-column/table-column.component.d.ts +34 -0
  518. package/dist/types/components/molecules/accordion/accordion.component.d.ts +25 -0
  519. package/dist/types/components/molecules/content-slider/content-slider.component.d.ts +53 -0
  520. package/dist/types/components/molecules/dropdown/dropdown.component.d.ts +61 -0
  521. package/dist/types/components/molecules/input-group/input-group.component.d.ts +67 -0
  522. package/dist/types/components/molecules/page-size-select/constants.d.ts +2 -0
  523. package/dist/types/components/molecules/page-size-select/page-size-select.component.d.ts +50 -0
  524. package/dist/types/components/molecules/pagination/pagination.component.d.ts +7 -0
  525. package/dist/types/components/molecules/profile/profile.component.d.ts +20 -0
  526. package/dist/types/components/molecules/select/select.component.d.ts +112 -0
  527. package/dist/types/components/molecules/stepper/stepper.component.d.ts +18 -0
  528. package/dist/types/components/molecules/table-cell/table-cell.component.d.ts +42 -0
  529. package/dist/types/components/molecules/table-footer/table-footer.component.d.ts +59 -0
  530. package/dist/types/components/molecules/table-header/table-header.component.d.ts +83 -0
  531. package/dist/types/components/molecules/table-row/table-row.component.d.ts +11 -0
  532. package/dist/types/components/molecules/toast/toast.component.d.ts +39 -0
  533. package/dist/types/components/organisms/modal/modal.component.d.ts +39 -0
  534. package/dist/types/components/organisms/navbar/navbar.component.d.ts +14 -0
  535. package/dist/types/components/organisms/table/table.component.d.ts +206 -0
  536. package/dist/types/components.d.ts +2392 -197
  537. package/dist/types/index.d.ts +2 -0
  538. package/dist/types/types/index.d.ts +2 -0
  539. package/dist/types/types/table.d.ts +27 -0
  540. package/dist/types/types/tailwind.d.ts +2 -0
  541. package/dist/types/utils/child-of.d.ts +1 -0
  542. package/dist/types/utils/icons.d.ts +10 -0
  543. package/dist/types/utils/illustrations.d.ts +3 -0
  544. package/dist/types/utils/index.d.ts +6 -0
  545. package/dist/types/utils/localization.d.ts +2 -0
  546. package/dist/types/utils/object-get-by-path.d.ts +1 -0
  547. package/dist/types/utils/transformers.d.ts +2 -0
  548. package/dist/workbox-5fe694da.js +2 -0
  549. package/dist/workbox-5fe694da.js.map +1 -0
  550. package/package.json +61 -61
  551. package/dist/build/p-17c11169.entry.js +0 -1
  552. package/dist/build/p-42dab9d4.entry.js +0 -1
  553. package/dist/build/p-47b52f92.entry.js +0 -1
  554. package/dist/build/p-5ec6ea71.entry.js +0 -1
  555. package/dist/build/p-76464e0b.js +0 -2
  556. package/dist/build/p-8501ba07.entry.js +0 -1
  557. package/dist/build/p-aae3d4f0.entry.js +0 -1
  558. package/dist/build/p-adcb0b93.entry.js +0 -1
  559. package/dist/build/p-b39e8fc9.entry.js +0 -1
  560. package/dist/build/p-bbec0e86.entry.js +0 -1
  561. package/dist/build/p-f65d7bbf.entry.js +0 -1
  562. package/dist/build/p-f689996b.entry.js +0 -1
  563. package/dist/cjs/p-helper.cjs.entry.js +0 -19
  564. package/dist/cjs/p-pagination-item.cjs.entry.js +0 -23
  565. package/dist/cjs/p-pagination.cjs.entry.js +0 -171
  566. package/dist/collection/tailwind/grid.js +0 -26
  567. package/dist/collection/utils/utils.js +0 -3
  568. package/dist/esm/p-helper.entry.js +0 -15
  569. package/dist/esm/p-pagination-item.entry.js +0 -19
  570. package/dist/esm/p-pagination.entry.js +0 -167
  571. package/dist/paperless/p-17c11169.entry.js +0 -1
  572. package/dist/paperless/p-42dab9d4.entry.js +0 -1
  573. package/dist/paperless/p-47b52f92.entry.js +0 -1
  574. package/dist/paperless/p-5ec6ea71.entry.js +0 -1
  575. package/dist/paperless/p-76464e0b.js +0 -2
  576. package/dist/paperless/p-8501ba07.entry.js +0 -1
  577. package/dist/paperless/p-aae3d4f0.entry.js +0 -1
  578. package/dist/paperless/p-adcb0b93.entry.js +0 -1
  579. package/dist/paperless/p-b39e8fc9.entry.js +0 -1
  580. package/dist/paperless/p-bbec0e86.entry.js +0 -1
  581. package/dist/paperless/p-f65d7bbf.entry.js +0 -1
  582. package/dist/paperless/p-f689996b.entry.js +0 -1
  583. package/dist/types/utils/utils.d.ts +0 -1
@@ -6,11 +6,37 @@
6
6
  */
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
8
  import { IconFlipOptions, IconVariant } from "./components/atoms/icon/icon.component";
9
+ import { RotateOptions, TextSizeOptions } from "./types/tailwind";
10
+ import { Placement, PositioningStrategy } from "@popperjs/core";
9
11
  import { IconFlipOptions as IconFlipOptions1, IconVariant as IconVariant1 } from "./components/atoms/icon/icon.component";
10
12
  import { IllustrationVariant } from "./components/atoms/illustration/illustration.component";
13
+ import { RotateOptions as RotateOptions1, TableDefinitionData, TableDefinitionTemplateFunc } from "./types";
11
14
  import { Observable } from "rxjs";
12
- import { Placement } from "@popperjs/core";
15
+ import { templateFunc } from "./components/molecules/page-size-select/page-size-select.component";
16
+ import { QuickFilter, RowClickEvent, TableColumnSizes } from "./types/table";
17
+ import { templateFunc as templateFunc1 } from "./components/organisms/table/table.component";
18
+ import { buttonTemplateFunc } from "./components/molecules/table-header/table-header.component";
19
+ import { TableColumn } from "./components/helpers/table-column/table-column.component";
20
+ import { buttonTemplateFunc as buttonTemplateFunc1, templateFunc as templateFunc2 } from "./components/molecules/table-header/table-header.component";
13
21
  export namespace Components {
22
+ interface PAccordion {
23
+ /**
24
+ * Wether the accordion can be closed
25
+ */
26
+ "closeable": boolean;
27
+ /**
28
+ * Header of the accordion
29
+ */
30
+ "header": string;
31
+ /**
32
+ * Wether the accordion is open
33
+ */
34
+ "open": boolean;
35
+ /**
36
+ * Wether the accordion can be opened
37
+ */
38
+ "openable": boolean;
39
+ }
14
40
  interface PAvatar {
15
41
  /**
16
42
  * The default image to show on errors
@@ -19,7 +45,7 @@ export namespace Components {
19
45
  /**
20
46
  * The size of the avatar
21
47
  */
22
- "size": 'small' | 'medium' | 'large';
48
+ "size": 'small' | 'medium' | 'large' | 'xlarge';
23
49
  /**
24
50
  * The image used for the avatar
25
51
  */
@@ -29,7 +55,21 @@ export namespace Components {
29
55
  */
30
56
  "variant": 'user' | 'company';
31
57
  }
58
+ interface PAvatarGroup {
59
+ /**
60
+ * The amount to show after the avatars
61
+ */
62
+ "extra": number;
63
+ }
32
64
  interface PButton {
65
+ /**
66
+ * Wether to show a chevron or not
67
+ */
68
+ "chevron": boolean | 'up' | 'down';
69
+ /**
70
+ * Chevron position
71
+ */
72
+ "chevronPosition": 'start' | 'end';
33
73
  /**
34
74
  * Wether the button is disabled
35
75
  */
@@ -46,6 +86,10 @@ export namespace Components {
46
86
  * Icon flip
47
87
  */
48
88
  "iconFlip": IconFlipOptions;
89
+ /**
90
+ * Wether the button is icon only
91
+ */
92
+ "iconOnly": boolean;
49
93
  /**
50
94
  * Icon position
51
95
  */
@@ -53,7 +97,11 @@ export namespace Components {
53
97
  /**
54
98
  * Icon rotate
55
99
  */
56
- "iconRotate": number;
100
+ "iconRotate": RotateOptions;
101
+ /**
102
+ * Wether the button should inherit text styles
103
+ */
104
+ "inheritText": boolean;
57
105
  /**
58
106
  * Wether to show a loader or not
59
107
  */
@@ -70,12 +118,126 @@ export namespace Components {
70
118
  * The variant of the button
71
119
  */
72
120
  "variant": 'primary' | 'secondary' | 'text';
121
+ /**
122
+ * The width of the button
123
+ */
124
+ "width": 'auto' | 'full';
125
+ }
126
+ interface PCardBody {
127
+ /**
128
+ * Wether the button should inherit text styles
129
+ */
130
+ "inheritText": boolean;
131
+ }
132
+ interface PCardContainer {
133
+ /**
134
+ * Wether the card should be hoverable
135
+ */
136
+ "hoverable": boolean;
137
+ /**
138
+ * Wether the card should have shadow
139
+ */
140
+ "shadow": boolean;
141
+ }
142
+ interface PCardHeader {
143
+ /**
144
+ * Enable the title arrow
145
+ */
146
+ "arrow": boolean;
147
+ /**
148
+ * Content of the card header
149
+ */
150
+ "header": string;
151
+ }
152
+ interface PContentSlider {
153
+ /**
154
+ * Wether to disable auto centering the content
155
+ */
156
+ "disableAutoCenter": boolean;
157
+ /**
158
+ * Wether to disable dragging the content
159
+ */
160
+ "disableDrag": boolean;
161
+ /**
162
+ * Wether to disable clicking the indicator scrolls content
163
+ */
164
+ "disableIndicatorClick": boolean;
165
+ /**
166
+ * Wether to hide the indicator on mobile
167
+ */
168
+ "hideMobileIndicator": boolean;
73
169
  }
74
170
  interface PCounter {
171
+ /**
172
+ * The size of the counter
173
+ */
174
+ "size": 'default' | 'mini';
175
+ /**
176
+ * The variant of the counter
177
+ */
178
+ "variant": 'info' | 'negative' | 'positive' | 'unbiased';
75
179
  }
76
180
  interface PDivider {
77
181
  }
182
+ interface PDropdown {
183
+ /**
184
+ * Wether to automatically calculate the width of the menu based on the trigger
185
+ */
186
+ "calculateWidth": boolean;
187
+ /**
188
+ * Chevron direction
189
+ */
190
+ "chevronDirection": 'up' | 'down';
191
+ /**
192
+ * Chevron position
193
+ */
194
+ "chevronPosition": 'start' | 'end';
195
+ /**
196
+ * Wether to automatically close the dropdown menu after clicking inside
197
+ */
198
+ "disableTriggerClick": boolean;
199
+ /**
200
+ * Wether to automatically close the dropdown menu after clicking inside
201
+ */
202
+ "insideClick": boolean;
203
+ /**
204
+ * The content of the dropdown menu
205
+ */
206
+ "placement": Placement;
207
+ /**
208
+ * Wether to show the dropdown menu
209
+ */
210
+ "show": boolean;
211
+ /**
212
+ * The strategy of the popover placement
213
+ */
214
+ "strategy": PositioningStrategy;
215
+ }
216
+ interface PDropdownMenuContainer {
217
+ /**
218
+ * Wether the container applies it's max width
219
+ */
220
+ "maxWidth": boolean;
221
+ }
222
+ interface PDropdownMenuItem {
223
+ /**
224
+ * Wether the dropdown menu item is active
225
+ */
226
+ "active": boolean;
227
+ /**
228
+ * Wether to enable the hover state
229
+ */
230
+ "enableHover": boolean;
231
+ /**
232
+ * Icon of the navigation item
233
+ */
234
+ "icon": IconVariant;
235
+ }
78
236
  interface PHelper {
237
+ /**
238
+ * The placement of the helper popover
239
+ */
240
+ "placement": Placement;
79
241
  }
80
242
  interface PIcon {
81
243
  /**
@@ -85,11 +247,11 @@ export namespace Components {
85
247
  /**
86
248
  * Wether to rotate the icon x degrees
87
249
  */
88
- "rotate": number;
250
+ "rotate": RotateOptions;
89
251
  /**
90
252
  * The size of the icon, using tailwind sizes
91
253
  */
92
- "size": string;
254
+ "size": TextSizeOptions;
93
255
  /**
94
256
  * The icon the be displayed
95
257
  */
@@ -119,6 +281,103 @@ export namespace Components {
119
281
  */
120
282
  "variant": 'info' | 'negative' | 'positive' | 'unbiased';
121
283
  }
284
+ interface PInputGroup {
285
+ /**
286
+ * Wether the input group is disabled
287
+ */
288
+ "disabled": boolean;
289
+ /**
290
+ * The helper of the input group
291
+ */
292
+ "error": string;
293
+ /**
294
+ * Wether the input group is focused
295
+ */
296
+ "focused": boolean;
297
+ /**
298
+ * The helper of the input group
299
+ */
300
+ "helper": string;
301
+ /**
302
+ * Icon of the navigation item
303
+ */
304
+ "icon": IconVariant;
305
+ /**
306
+ * Icon flip
307
+ */
308
+ "iconFlip": IconFlipOptions;
309
+ /**
310
+ * Icon position
311
+ */
312
+ "iconPosition": 'start' | 'end';
313
+ /**
314
+ * Icon rotate
315
+ */
316
+ "iconRotate": RotateOptions;
317
+ /**
318
+ * The label of the input group
319
+ */
320
+ "label": string;
321
+ /**
322
+ * The prefix of the input group
323
+ */
324
+ "prefix": string;
325
+ /**
326
+ * Wether the field is required
327
+ */
328
+ "required": boolean;
329
+ /**
330
+ * The size of the input group
331
+ */
332
+ "size": 'small' | 'medium';
333
+ /**
334
+ * The suffix of the input group
335
+ */
336
+ "suffix": string;
337
+ }
338
+ interface PLabel {
339
+ /**
340
+ * Wether to add the circle or not
341
+ */
342
+ "circle": boolean;
343
+ /**
344
+ * Icon to show on the button
345
+ */
346
+ "icon": IconVariant;
347
+ /**
348
+ * Icon flip
349
+ */
350
+ "iconFlip": IconFlipOptions;
351
+ /**
352
+ * Wether it's icon only
353
+ */
354
+ "iconOnly": boolean;
355
+ /**
356
+ * Icon rotate
357
+ */
358
+ "iconRotate": RotateOptions1;
359
+ /**
360
+ * Wether to show icon on mobile
361
+ */
362
+ "mobileIcon": boolean;
363
+ /**
364
+ * The size of the label
365
+ */
366
+ "size": 'small' | 'default';
367
+ /**
368
+ * Variant of the label
369
+ */
370
+ "variant": | 'positive'
371
+ | 'unbiased'
372
+ | 'negative'
373
+ | 'info';
374
+ }
375
+ interface PLayout {
376
+ /**
377
+ * Variant of the layout
378
+ */
379
+ "variant": 'default' | 'login';
380
+ }
122
381
  interface PLoader {
123
382
  /**
124
383
  * Color of the loader
@@ -139,7 +398,73 @@ export namespace Components {
139
398
  /**
140
399
  * Variant of loader
141
400
  */
142
- "variant": 'inline' | 'full-width' | 'full-screen' | 'modal';
401
+ "variant": | 'inline'
402
+ | 'full-width'
403
+ | 'full-screen'
404
+ | 'modal'
405
+ | 'ghost';
406
+ }
407
+ interface PModal {
408
+ /**
409
+ * The Header of the modal
410
+ */
411
+ "header"?: string;
412
+ /**
413
+ * Wether to show the modal or not
414
+ */
415
+ "show": boolean;
416
+ /**
417
+ * Wether to show the close on mobile in the header
418
+ */
419
+ "showMobileClose": boolean;
420
+ /**
421
+ * Wether to show the footer on mobile
422
+ */
423
+ "showMobileFooter": boolean;
424
+ /**
425
+ * The size of the modal container
426
+ */
427
+ "size": 'sm' | 'md' | 'lg' | 'xl';
428
+ /**
429
+ * The variant of the modal body
430
+ */
431
+ "variant": 'default' | 'table';
432
+ }
433
+ interface PModalBackdrop {
434
+ }
435
+ interface PModalBody {
436
+ /**
437
+ * The variant of the modal body
438
+ */
439
+ "variant": 'default' | 'table';
440
+ }
441
+ interface PModalContainer {
442
+ /**
443
+ * The size of the modal container
444
+ */
445
+ "size": 'sm' | 'md' | 'lg' | 'xl';
446
+ }
447
+ interface PModalFooter {
448
+ /**
449
+ * Wether to show the footer on mobile
450
+ */
451
+ "hideOnMobile": boolean;
452
+ }
453
+ interface PModalHeader {
454
+ /**
455
+ * Wether to show the close button on mobile
456
+ */
457
+ "showMobileClose": boolean;
458
+ }
459
+ interface PNavbar {
460
+ /**
461
+ * The text to display for the close button
462
+ */
463
+ "closeText": string;
464
+ /**
465
+ * The text to display for the menu button & sidebar title
466
+ */
467
+ "menuText": string;
143
468
  }
144
469
  interface PNavigationItem {
145
470
  /**
@@ -163,7 +488,41 @@ export namespace Components {
163
488
  */
164
489
  "target": string;
165
490
  }
491
+ interface PPageSizeSelect {
492
+ /**
493
+ * The size of the button
494
+ */
495
+ "buttonSize": 'small' | 'medium';
496
+ /**
497
+ * The template for the data view
498
+ */
499
+ "buttonTemplate": templateFunc;
500
+ /**
501
+ * Chevron position
502
+ */
503
+ "chevronPosition": 'start' | 'end';
504
+ /**
505
+ * Wether to hide when there is only 1 page available
506
+ */
507
+ "hidden": boolean;
508
+ /**
509
+ * The template for the data view
510
+ */
511
+ "itemTemplate": templateFunc;
512
+ /**
513
+ * The current page
514
+ */
515
+ "size": number;
516
+ /**
517
+ * The available sizes
518
+ */
519
+ "sizeOptions": number[];
520
+ }
166
521
  interface PPagination {
522
+ /**
523
+ * Wether to hide when there is only 1 page available
524
+ */
525
+ "hideOnSinglePage": boolean;
167
526
  /**
168
527
  * The current page
169
528
  */
@@ -183,162 +542,1614 @@ export namespace Components {
183
542
  */
184
543
  "active": boolean;
185
544
  }
186
- interface PTooltip {
545
+ interface PProfile {
187
546
  /**
188
- * Wether to someone can manually close the popover
547
+ * The size of the profile avatar
189
548
  */
190
- "canManuallyClose": boolean;
549
+ "size": 'small' | 'medium' | 'large';
191
550
  /**
192
- * The content of the popover
551
+ * The variant of the profile
193
552
  */
194
- "placement": Placement;
553
+ "variant": 'company' | 'user';
554
+ }
555
+ interface PSegmentContainer {
556
+ }
557
+ interface PSegmentItem {
195
558
  /**
196
- * The content of the popover
559
+ * Wether the segment item is active
197
560
  */
198
- "popover": any;
561
+ "active": boolean;
199
562
  /**
200
- * Wether to show the popover
563
+ * Icon to show on the segment item
201
564
  */
202
- "show": boolean;
565
+ "icon": IconVariant;
203
566
  /**
204
- * The variant of the popover
567
+ * Icon flip
205
568
  */
206
- "variant": 'hover' | 'click';
207
- }
208
- }
209
- export interface PButtonCustomEvent<T> extends CustomEvent<T> {
210
- detail: T;
211
- target: HTMLPButtonElement;
212
- }
213
- export interface PPaginationCustomEvent<T> extends CustomEvent<T> {
214
- detail: T;
215
- target: HTMLPPaginationElement;
216
- }
217
- declare global {
218
- interface HTMLPAvatarElement extends Components.PAvatar, HTMLStencilElement {
219
- }
220
- var HTMLPAvatarElement: {
221
- prototype: HTMLPAvatarElement;
222
- new (): HTMLPAvatarElement;
223
- };
224
- interface HTMLPButtonElement extends Components.PButton, HTMLStencilElement {
225
- }
226
- var HTMLPButtonElement: {
227
- prototype: HTMLPButtonElement;
228
- new (): HTMLPButtonElement;
229
- };
230
- interface HTMLPCounterElement extends Components.PCounter, HTMLStencilElement {
231
- }
232
- var HTMLPCounterElement: {
233
- prototype: HTMLPCounterElement;
234
- new (): HTMLPCounterElement;
235
- };
236
- interface HTMLPDividerElement extends Components.PDivider, HTMLStencilElement {
569
+ "iconFlip": IconFlipOptions;
570
+ /**
571
+ * Icon rotate
572
+ */
573
+ "iconRotate": RotateOptions;
237
574
  }
238
- var HTMLPDividerElement: {
239
- prototype: HTMLPDividerElement;
240
- new (): HTMLPDividerElement;
241
- };
242
- interface HTMLPHelperElement extends Components.PHelper, HTMLStencilElement {
575
+ interface PSelect {
576
+ /**
577
+ * Wether the input uses async filtering
578
+ */
579
+ "asyncFilter": boolean;
580
+ /**
581
+ * Wether to automatically select the first item
582
+ */
583
+ "autoSelectFirst": boolean;
584
+ /**
585
+ * The placeholder of the input when auto completing
586
+ */
587
+ "autocompletePlaceholder": string;
588
+ /**
589
+ * Wether the input group is disabled used by the select
590
+ */
591
+ "disabled": boolean;
592
+ /**
593
+ * The key of the object to display
594
+ */
595
+ "displayKey": string;
596
+ /**
597
+ * Wether to enable autocomplete
598
+ */
599
+ "enableAutocomplete": boolean;
600
+ /**
601
+ * The helper of the input group used by the select
602
+ */
603
+ "error": string;
604
+ /**
605
+ * The helper of the input group used by the select
606
+ */
607
+ "helper": string;
608
+ /**
609
+ * The items to show in the dropdown
610
+ */
611
+ "items": string | any[];
612
+ /**
613
+ * The label of the input group used by the select
614
+ */
615
+ "label": string;
616
+ /**
617
+ * Wether to show loading items
618
+ */
619
+ "loading": boolean;
620
+ /**
621
+ * The maximum amount of items to display
622
+ */
623
+ "maxDisplayedItems": number;
624
+ /**
625
+ * The placeholder of the input
626
+ */
627
+ "placeholder": string;
628
+ /**
629
+ * The prefix of the input group used by the select
630
+ */
631
+ "prefix": string;
632
+ /**
633
+ * The current query
634
+ */
635
+ "query": string;
636
+ /**
637
+ * The key of the object to display
638
+ */
639
+ "queryKey"?: string;
640
+ /**
641
+ * The size of the input group used by the select
642
+ */
643
+ "size": 'small' | 'medium';
644
+ /**
645
+ * The current value
646
+ */
647
+ "value": any;
648
+ /**
649
+ * The key of the object to return
650
+ */
651
+ "valueKey": string;
652
+ }
653
+ interface PSliderIndicator {
654
+ /**
655
+ * Wether the slider indicator is active
656
+ */
657
+ "active": boolean;
658
+ }
659
+ interface PStatus {
660
+ /**
661
+ * Icon to show on the status
662
+ */
663
+ "icon": IconVariant;
664
+ /**
665
+ * Icon flip
666
+ */
667
+ "iconFlip": IconFlipOptions;
668
+ /**
669
+ * Icon rotate
670
+ */
671
+ "iconRotate": RotateOptions;
672
+ /**
673
+ * The variant of the status
674
+ */
675
+ "variant": 'default' | 'positive' | 'unbiased' | 'negative';
676
+ }
677
+ interface PStepper {
678
+ /**
679
+ * The currently active step
680
+ */
681
+ "activeStep": number;
682
+ /**
683
+ * The direction of the stepper
684
+ */
685
+ "direction": 'horizontal' | 'vertical';
686
+ }
687
+ interface PStepperItem {
688
+ /**
689
+ * Wether the step is active
690
+ */
691
+ "active": boolean;
692
+ /**
693
+ * The alignment of the step content
694
+ */
695
+ "align": 'start' | 'center' | 'end';
696
+ /**
697
+ * The direction of the stepper step
698
+ */
699
+ "direction": 'horizontal' | 'vertical';
700
+ /**
701
+ * Wether the step is finished
702
+ */
703
+ "finished": boolean;
704
+ }
705
+ interface PStepperLine {
706
+ /**
707
+ * Wether the line is active
708
+ */
709
+ "active": boolean;
710
+ /**
711
+ * The direction of the stepper line
712
+ */
713
+ "direction": 'horizontal' | 'vertical';
714
+ }
715
+ interface PTabGroup {
716
+ }
717
+ interface PTabItem {
718
+ /**
719
+ * Wether the tab item is active
720
+ */
721
+ "active": boolean;
722
+ }
723
+ interface PTable {
724
+ /**
725
+ * Active quick filter identifier
726
+ */
727
+ "activeQuickFilterIdentifier": string;
728
+ /**
729
+ * The amount of loading rows to show
730
+ */
731
+ "amountOfLoadingRows": number;
732
+ /**
733
+ * A key to determine if a row can be selected
734
+ */
735
+ "canSelectKey": string;
736
+ /**
737
+ * The template for the edit button text
738
+ */
739
+ "editButtonTemplate": buttonTemplateFunc;
740
+ "emptyStateAction": templateFunc;
741
+ "emptyStateContent": templateFunc;
742
+ "emptyStateFilteredContent": templateFunc;
743
+ "emptyStateFilteredHeader": templateFunc;
744
+ "emptyStateHeader": templateFunc;
745
+ /**
746
+ * Wether to show the edit button
747
+ */
748
+ "enableEdit": boolean;
749
+ /**
750
+ * Wether to enable export
751
+ */
752
+ "enableExport": boolean;
753
+ /**
754
+ * Wether to show the filter button
755
+ */
756
+ "enableFilter": boolean;
757
+ /**
758
+ * Wether to enable page size select
759
+ */
760
+ "enablePageSize": boolean;
761
+ /**
762
+ * Wether to enable pagination
763
+ */
764
+ "enablePagination": boolean;
765
+ /**
766
+ * Wether to enable row clicking
767
+ */
768
+ "enableRowClick": boolean;
769
+ /**
770
+ * Wether to enable selection
771
+ */
772
+ "enableRowSelection": boolean;
773
+ /**
774
+ * Wether to show the search input
775
+ */
776
+ "enableSearch": boolean;
777
+ /**
778
+ * The template for the filter button text
779
+ */
780
+ "filterButtonTemplate": templateFunc;
781
+ /**
782
+ * Wether to hide when there is only 1 page available
783
+ */
784
+ "hideOnSinglePage": boolean;
785
+ /**
786
+ * The items to be fed to the table
787
+ */
788
+ "items": string;
789
+ /**
790
+ * Wether data is loading
791
+ */
792
+ "loading": boolean;
793
+ /**
794
+ * The current page
795
+ */
796
+ "page": number;
797
+ /**
798
+ * The amount of items per page
799
+ */
800
+ "pageSize": number;
801
+ /**
802
+ * The options for the page size
803
+ */
804
+ "pageSizeOptions": number[];
805
+ /**
806
+ * The query to show in the search bar
807
+ */
808
+ "query": string;
809
+ /**
810
+ * Quick filters to show
811
+ */
812
+ "quickFilters": QuickFilter[];
813
+ /**
814
+ * The amount of filters being selected
815
+ */
816
+ "selectedFiltersAmount": number;
817
+ /**
818
+ * The current selection of items
819
+ */
820
+ "selectedRows": any[];
821
+ /**
822
+ * The key to determine if a row is selected
823
+ */
824
+ "selectionKey": string;
825
+ /**
826
+ * The total amount of items
827
+ */
828
+ "total": number;
829
+ }
830
+ interface PTableCell {
831
+ /**
832
+ * The checkbox to show
833
+ */
834
+ "checkbox": any;
835
+ /**
836
+ * The definition of the table column
837
+ */
838
+ "definition"?: TableColumn;
839
+ /**
840
+ * The index of the column
841
+ */
842
+ "index": number;
843
+ /**
844
+ * The item in question
845
+ */
846
+ "item": any;
847
+ /**
848
+ * The index of the row
849
+ */
850
+ "rowIndex": number;
851
+ /**
852
+ * The template to show
853
+ */
854
+ "template": TableDefinitionTemplateFunc;
855
+ /**
856
+ * The value of the column
857
+ */
858
+ "value": any;
859
+ /**
860
+ * The variant of the column
861
+ */
862
+ "variant": 'default' | 'loading' | 'header';
863
+ }
864
+ interface PTableColumn {
865
+ /**
866
+ * The alignment of the column
867
+ */
868
+ "align": 'start' | 'center' | 'end';
869
+ /**
870
+ * The name of the column
871
+ */
872
+ "name": string;
873
+ /**
874
+ * The path of the value of the item you want to display
875
+ */
876
+ "path": string;
877
+ /**
878
+ * The sizes of the column
879
+ */
880
+ "sizes": 'auto' | number | TableColumnSizes;
881
+ /**
882
+ * The type of the column
883
+ */
884
+ "type": 'td' | 'th';
885
+ /**
886
+ * Wether the column should use the slot
887
+ */
888
+ "useSlot": boolean;
889
+ }
890
+ interface PTableContainer {
891
+ }
892
+ interface PTableFooter {
893
+ /**
894
+ * Wether to enable export
895
+ */
896
+ "enableExport": boolean;
897
+ /**
898
+ * Wether to enable page size select
899
+ */
900
+ "enablePageSize": boolean;
901
+ /**
902
+ * Wether to enable pagination
903
+ */
904
+ "enablePagination": boolean;
905
+ /**
906
+ * Wether to hide when there is only 1 page available
907
+ */
908
+ "hideOnSinglePage": boolean;
909
+ /**
910
+ * The current page
911
+ */
912
+ "page": number;
913
+ /**
914
+ * The amount of items per page
915
+ */
916
+ "pageSize": number;
917
+ /**
918
+ * The options for the page size
919
+ */
920
+ "pageSizeOptions": number[];
921
+ /**
922
+ * The total amount of items
923
+ */
924
+ "total": number;
925
+ }
926
+ interface PTableHeader {
927
+ /**
928
+ * Active quick filter identifier
929
+ */
930
+ "activeQuickFilterIdentifier": string;
931
+ /**
932
+ * Wether to enable the edit button
933
+ */
934
+ "canEdit": boolean;
935
+ /**
936
+ * The template for the edit button text
937
+ */
938
+ "editButtonTemplate": buttonTemplateFunc;
939
+ /**
940
+ * Wether to show the edit button
941
+ */
942
+ "enableEdit": boolean;
943
+ /**
944
+ * Wether to show the filter button
945
+ */
946
+ "enableFilter": boolean;
947
+ /**
948
+ * Wether to show the search input
949
+ */
950
+ "enableSearch": boolean;
951
+ /**
952
+ * The template for the filter button text
953
+ */
954
+ "filterButtonTemplate": templateFunc;
955
+ /**
956
+ * The amount of items that are selected
957
+ */
958
+ "itemsSelectedAmount": number;
959
+ /**
960
+ * The query to show in the search bar
961
+ */
962
+ "query": string;
963
+ /**
964
+ * Quick filters to show
965
+ */
966
+ "quickFilters": QuickFilter[];
967
+ /**
968
+ * The amount of filters being selected
969
+ */
970
+ "selectedFiltersAmount": number;
971
+ }
972
+ interface PTableRow {
973
+ /**
974
+ * Enable hover
975
+ */
976
+ "enableHover": boolean;
977
+ /**
978
+ * Variant of the header
979
+ */
980
+ "variant": 'default' | 'header';
981
+ }
982
+ interface PToast {
983
+ /**
984
+ * Icon to show on the button
985
+ */
986
+ "actionIcon": IconVariant;
987
+ /**
988
+ * Icon flip
989
+ */
990
+ "actionIconFlip": IconFlipOptions;
991
+ /**
992
+ * Icon rotate
993
+ */
994
+ "actionIconRotate": RotateOptions1;
995
+ /**
996
+ * The content of the toast
997
+ */
998
+ "content"?: string;
999
+ /**
1000
+ * Wether to enable the close button
1001
+ */
1002
+ "enableAction": boolean;
1003
+ /**
1004
+ * The header of the toast
1005
+ */
1006
+ "header"?: string;
1007
+ /**
1008
+ * The variant of the toast
1009
+ */
1010
+ "variant": 'positive' | 'unbiased' | 'negative';
1011
+ }
1012
+ interface PToastContainer {
1013
+ /**
1014
+ * The placement of the container
1015
+ */
1016
+ "placement": 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end';
1017
+ }
1018
+ interface PTooltip {
1019
+ /**
1020
+ * Wether to someone can manually close the popover
1021
+ */
1022
+ "canManuallyClose": boolean;
1023
+ /**
1024
+ * The placement of the popover
1025
+ */
1026
+ "placement": Placement;
1027
+ /**
1028
+ * The content of the popover
1029
+ */
1030
+ "popover": any;
1031
+ /**
1032
+ * Wether to show the popover
1033
+ */
1034
+ "show": boolean;
1035
+ /**
1036
+ * The strategy of the popover placement
1037
+ */
1038
+ "strategy": PositioningStrategy;
1039
+ /**
1040
+ * The variant of the popover
1041
+ */
1042
+ "variant": 'hover' | 'click' | 'error';
1043
+ }
1044
+ }
1045
+ export interface PAccordionCustomEvent<T> extends CustomEvent<T> {
1046
+ detail: T;
1047
+ target: HTMLPAccordionElement;
1048
+ }
1049
+ export interface PButtonCustomEvent<T> extends CustomEvent<T> {
1050
+ detail: T;
1051
+ target: HTMLPButtonElement;
1052
+ }
1053
+ export interface PDropdownCustomEvent<T> extends CustomEvent<T> {
1054
+ detail: T;
1055
+ target: HTMLPDropdownElement;
1056
+ }
1057
+ export interface PModalCustomEvent<T> extends CustomEvent<T> {
1058
+ detail: T;
1059
+ target: HTMLPModalElement;
1060
+ }
1061
+ export interface PModalHeaderCustomEvent<T> extends CustomEvent<T> {
1062
+ detail: T;
1063
+ target: HTMLPModalHeaderElement;
1064
+ }
1065
+ export interface PPageSizeSelectCustomEvent<T> extends CustomEvent<T> {
1066
+ detail: T;
1067
+ target: HTMLPPageSizeSelectElement;
1068
+ }
1069
+ export interface PPaginationCustomEvent<T> extends CustomEvent<T> {
1070
+ detail: T;
1071
+ target: HTMLPPaginationElement;
1072
+ }
1073
+ export interface PSelectCustomEvent<T> extends CustomEvent<T> {
1074
+ detail: T;
1075
+ target: HTMLPSelectElement;
1076
+ }
1077
+ export interface PTableCustomEvent<T> extends CustomEvent<T> {
1078
+ detail: T;
1079
+ target: HTMLPTableElement;
1080
+ }
1081
+ export interface PTableColumnCustomEvent<T> extends CustomEvent<T> {
1082
+ detail: T;
1083
+ target: HTMLPTableColumnElement;
1084
+ }
1085
+ export interface PTableFooterCustomEvent<T> extends CustomEvent<T> {
1086
+ detail: T;
1087
+ target: HTMLPTableFooterElement;
1088
+ }
1089
+ export interface PTableHeaderCustomEvent<T> extends CustomEvent<T> {
1090
+ detail: T;
1091
+ target: HTMLPTableHeaderElement;
1092
+ }
1093
+ export interface PToastCustomEvent<T> extends CustomEvent<T> {
1094
+ detail: T;
1095
+ target: HTMLPToastElement;
1096
+ }
1097
+ export interface PTooltipCustomEvent<T> extends CustomEvent<T> {
1098
+ detail: T;
1099
+ target: HTMLPTooltipElement;
1100
+ }
1101
+ declare global {
1102
+ interface HTMLPAccordionElement extends Components.PAccordion, HTMLStencilElement {
1103
+ }
1104
+ var HTMLPAccordionElement: {
1105
+ prototype: HTMLPAccordionElement;
1106
+ new (): HTMLPAccordionElement;
1107
+ };
1108
+ interface HTMLPAvatarElement extends Components.PAvatar, HTMLStencilElement {
1109
+ }
1110
+ var HTMLPAvatarElement: {
1111
+ prototype: HTMLPAvatarElement;
1112
+ new (): HTMLPAvatarElement;
1113
+ };
1114
+ interface HTMLPAvatarGroupElement extends Components.PAvatarGroup, HTMLStencilElement {
1115
+ }
1116
+ var HTMLPAvatarGroupElement: {
1117
+ prototype: HTMLPAvatarGroupElement;
1118
+ new (): HTMLPAvatarGroupElement;
1119
+ };
1120
+ interface HTMLPButtonElement extends Components.PButton, HTMLStencilElement {
1121
+ }
1122
+ var HTMLPButtonElement: {
1123
+ prototype: HTMLPButtonElement;
1124
+ new (): HTMLPButtonElement;
1125
+ };
1126
+ interface HTMLPCardBodyElement extends Components.PCardBody, HTMLStencilElement {
1127
+ }
1128
+ var HTMLPCardBodyElement: {
1129
+ prototype: HTMLPCardBodyElement;
1130
+ new (): HTMLPCardBodyElement;
1131
+ };
1132
+ interface HTMLPCardContainerElement extends Components.PCardContainer, HTMLStencilElement {
1133
+ }
1134
+ var HTMLPCardContainerElement: {
1135
+ prototype: HTMLPCardContainerElement;
1136
+ new (): HTMLPCardContainerElement;
1137
+ };
1138
+ interface HTMLPCardHeaderElement extends Components.PCardHeader, HTMLStencilElement {
1139
+ }
1140
+ var HTMLPCardHeaderElement: {
1141
+ prototype: HTMLPCardHeaderElement;
1142
+ new (): HTMLPCardHeaderElement;
1143
+ };
1144
+ interface HTMLPContentSliderElement extends Components.PContentSlider, HTMLStencilElement {
1145
+ }
1146
+ var HTMLPContentSliderElement: {
1147
+ prototype: HTMLPContentSliderElement;
1148
+ new (): HTMLPContentSliderElement;
1149
+ };
1150
+ interface HTMLPCounterElement extends Components.PCounter, HTMLStencilElement {
1151
+ }
1152
+ var HTMLPCounterElement: {
1153
+ prototype: HTMLPCounterElement;
1154
+ new (): HTMLPCounterElement;
1155
+ };
1156
+ interface HTMLPDividerElement extends Components.PDivider, HTMLStencilElement {
1157
+ }
1158
+ var HTMLPDividerElement: {
1159
+ prototype: HTMLPDividerElement;
1160
+ new (): HTMLPDividerElement;
1161
+ };
1162
+ interface HTMLPDropdownElement extends Components.PDropdown, HTMLStencilElement {
1163
+ }
1164
+ var HTMLPDropdownElement: {
1165
+ prototype: HTMLPDropdownElement;
1166
+ new (): HTMLPDropdownElement;
1167
+ };
1168
+ interface HTMLPDropdownMenuContainerElement extends Components.PDropdownMenuContainer, HTMLStencilElement {
1169
+ }
1170
+ var HTMLPDropdownMenuContainerElement: {
1171
+ prototype: HTMLPDropdownMenuContainerElement;
1172
+ new (): HTMLPDropdownMenuContainerElement;
1173
+ };
1174
+ interface HTMLPDropdownMenuItemElement extends Components.PDropdownMenuItem, HTMLStencilElement {
1175
+ }
1176
+ var HTMLPDropdownMenuItemElement: {
1177
+ prototype: HTMLPDropdownMenuItemElement;
1178
+ new (): HTMLPDropdownMenuItemElement;
1179
+ };
1180
+ interface HTMLPHelperElement extends Components.PHelper, HTMLStencilElement {
1181
+ }
1182
+ var HTMLPHelperElement: {
1183
+ prototype: HTMLPHelperElement;
1184
+ new (): HTMLPHelperElement;
1185
+ };
1186
+ interface HTMLPIconElement extends Components.PIcon, HTMLStencilElement {
1187
+ }
1188
+ var HTMLPIconElement: {
1189
+ prototype: HTMLPIconElement;
1190
+ new (): HTMLPIconElement;
1191
+ };
1192
+ interface HTMLPIllustrationElement extends Components.PIllustration, HTMLStencilElement {
1193
+ }
1194
+ var HTMLPIllustrationElement: {
1195
+ prototype: HTMLPIllustrationElement;
1196
+ new (): HTMLPIllustrationElement;
1197
+ };
1198
+ interface HTMLPInfoPanelElement extends Components.PInfoPanel, HTMLStencilElement {
1199
+ }
1200
+ var HTMLPInfoPanelElement: {
1201
+ prototype: HTMLPInfoPanelElement;
1202
+ new (): HTMLPInfoPanelElement;
1203
+ };
1204
+ interface HTMLPInputGroupElement extends Components.PInputGroup, HTMLStencilElement {
1205
+ }
1206
+ var HTMLPInputGroupElement: {
1207
+ prototype: HTMLPInputGroupElement;
1208
+ new (): HTMLPInputGroupElement;
1209
+ };
1210
+ interface HTMLPLabelElement extends Components.PLabel, HTMLStencilElement {
1211
+ }
1212
+ var HTMLPLabelElement: {
1213
+ prototype: HTMLPLabelElement;
1214
+ new (): HTMLPLabelElement;
1215
+ };
1216
+ interface HTMLPLayoutElement extends Components.PLayout, HTMLStencilElement {
1217
+ }
1218
+ var HTMLPLayoutElement: {
1219
+ prototype: HTMLPLayoutElement;
1220
+ new (): HTMLPLayoutElement;
1221
+ };
1222
+ interface HTMLPLoaderElement extends Components.PLoader, HTMLStencilElement {
1223
+ }
1224
+ var HTMLPLoaderElement: {
1225
+ prototype: HTMLPLoaderElement;
1226
+ new (): HTMLPLoaderElement;
1227
+ };
1228
+ interface HTMLPModalElement extends Components.PModal, HTMLStencilElement {
1229
+ }
1230
+ var HTMLPModalElement: {
1231
+ prototype: HTMLPModalElement;
1232
+ new (): HTMLPModalElement;
1233
+ };
1234
+ interface HTMLPModalBackdropElement extends Components.PModalBackdrop, HTMLStencilElement {
1235
+ }
1236
+ var HTMLPModalBackdropElement: {
1237
+ prototype: HTMLPModalBackdropElement;
1238
+ new (): HTMLPModalBackdropElement;
1239
+ };
1240
+ interface HTMLPModalBodyElement extends Components.PModalBody, HTMLStencilElement {
1241
+ }
1242
+ var HTMLPModalBodyElement: {
1243
+ prototype: HTMLPModalBodyElement;
1244
+ new (): HTMLPModalBodyElement;
1245
+ };
1246
+ interface HTMLPModalContainerElement extends Components.PModalContainer, HTMLStencilElement {
1247
+ }
1248
+ var HTMLPModalContainerElement: {
1249
+ prototype: HTMLPModalContainerElement;
1250
+ new (): HTMLPModalContainerElement;
1251
+ };
1252
+ interface HTMLPModalFooterElement extends Components.PModalFooter, HTMLStencilElement {
1253
+ }
1254
+ var HTMLPModalFooterElement: {
1255
+ prototype: HTMLPModalFooterElement;
1256
+ new (): HTMLPModalFooterElement;
1257
+ };
1258
+ interface HTMLPModalHeaderElement extends Components.PModalHeader, HTMLStencilElement {
1259
+ }
1260
+ var HTMLPModalHeaderElement: {
1261
+ prototype: HTMLPModalHeaderElement;
1262
+ new (): HTMLPModalHeaderElement;
1263
+ };
1264
+ interface HTMLPNavbarElement extends Components.PNavbar, HTMLStencilElement {
1265
+ }
1266
+ var HTMLPNavbarElement: {
1267
+ prototype: HTMLPNavbarElement;
1268
+ new (): HTMLPNavbarElement;
1269
+ };
1270
+ interface HTMLPNavigationItemElement extends Components.PNavigationItem, HTMLStencilElement {
1271
+ }
1272
+ var HTMLPNavigationItemElement: {
1273
+ prototype: HTMLPNavigationItemElement;
1274
+ new (): HTMLPNavigationItemElement;
1275
+ };
1276
+ interface HTMLPPageSizeSelectElement extends Components.PPageSizeSelect, HTMLStencilElement {
1277
+ }
1278
+ var HTMLPPageSizeSelectElement: {
1279
+ prototype: HTMLPPageSizeSelectElement;
1280
+ new (): HTMLPPageSizeSelectElement;
1281
+ };
1282
+ interface HTMLPPaginationElement extends Components.PPagination, HTMLStencilElement {
1283
+ }
1284
+ var HTMLPPaginationElement: {
1285
+ prototype: HTMLPPaginationElement;
1286
+ new (): HTMLPPaginationElement;
1287
+ };
1288
+ interface HTMLPPaginationItemElement extends Components.PPaginationItem, HTMLStencilElement {
1289
+ }
1290
+ var HTMLPPaginationItemElement: {
1291
+ prototype: HTMLPPaginationItemElement;
1292
+ new (): HTMLPPaginationItemElement;
1293
+ };
1294
+ interface HTMLPProfileElement extends Components.PProfile, HTMLStencilElement {
1295
+ }
1296
+ var HTMLPProfileElement: {
1297
+ prototype: HTMLPProfileElement;
1298
+ new (): HTMLPProfileElement;
1299
+ };
1300
+ interface HTMLPSegmentContainerElement extends Components.PSegmentContainer, HTMLStencilElement {
1301
+ }
1302
+ var HTMLPSegmentContainerElement: {
1303
+ prototype: HTMLPSegmentContainerElement;
1304
+ new (): HTMLPSegmentContainerElement;
1305
+ };
1306
+ interface HTMLPSegmentItemElement extends Components.PSegmentItem, HTMLStencilElement {
1307
+ }
1308
+ var HTMLPSegmentItemElement: {
1309
+ prototype: HTMLPSegmentItemElement;
1310
+ new (): HTMLPSegmentItemElement;
1311
+ };
1312
+ interface HTMLPSelectElement extends Components.PSelect, HTMLStencilElement {
1313
+ }
1314
+ var HTMLPSelectElement: {
1315
+ prototype: HTMLPSelectElement;
1316
+ new (): HTMLPSelectElement;
1317
+ };
1318
+ interface HTMLPSliderIndicatorElement extends Components.PSliderIndicator, HTMLStencilElement {
1319
+ }
1320
+ var HTMLPSliderIndicatorElement: {
1321
+ prototype: HTMLPSliderIndicatorElement;
1322
+ new (): HTMLPSliderIndicatorElement;
1323
+ };
1324
+ interface HTMLPStatusElement extends Components.PStatus, HTMLStencilElement {
1325
+ }
1326
+ var HTMLPStatusElement: {
1327
+ prototype: HTMLPStatusElement;
1328
+ new (): HTMLPStatusElement;
1329
+ };
1330
+ interface HTMLPStepperElement extends Components.PStepper, HTMLStencilElement {
1331
+ }
1332
+ var HTMLPStepperElement: {
1333
+ prototype: HTMLPStepperElement;
1334
+ new (): HTMLPStepperElement;
1335
+ };
1336
+ interface HTMLPStepperItemElement extends Components.PStepperItem, HTMLStencilElement {
1337
+ }
1338
+ var HTMLPStepperItemElement: {
1339
+ prototype: HTMLPStepperItemElement;
1340
+ new (): HTMLPStepperItemElement;
1341
+ };
1342
+ interface HTMLPStepperLineElement extends Components.PStepperLine, HTMLStencilElement {
1343
+ }
1344
+ var HTMLPStepperLineElement: {
1345
+ prototype: HTMLPStepperLineElement;
1346
+ new (): HTMLPStepperLineElement;
1347
+ };
1348
+ interface HTMLPTabGroupElement extends Components.PTabGroup, HTMLStencilElement {
1349
+ }
1350
+ var HTMLPTabGroupElement: {
1351
+ prototype: HTMLPTabGroupElement;
1352
+ new (): HTMLPTabGroupElement;
1353
+ };
1354
+ interface HTMLPTabItemElement extends Components.PTabItem, HTMLStencilElement {
1355
+ }
1356
+ var HTMLPTabItemElement: {
1357
+ prototype: HTMLPTabItemElement;
1358
+ new (): HTMLPTabItemElement;
1359
+ };
1360
+ interface HTMLPTableElement extends Components.PTable, HTMLStencilElement {
1361
+ }
1362
+ var HTMLPTableElement: {
1363
+ prototype: HTMLPTableElement;
1364
+ new (): HTMLPTableElement;
1365
+ };
1366
+ interface HTMLPTableCellElement extends Components.PTableCell, HTMLStencilElement {
1367
+ }
1368
+ var HTMLPTableCellElement: {
1369
+ prototype: HTMLPTableCellElement;
1370
+ new (): HTMLPTableCellElement;
1371
+ };
1372
+ interface HTMLPTableColumnElement extends Components.PTableColumn, HTMLStencilElement {
1373
+ }
1374
+ var HTMLPTableColumnElement: {
1375
+ prototype: HTMLPTableColumnElement;
1376
+ new (): HTMLPTableColumnElement;
1377
+ };
1378
+ interface HTMLPTableContainerElement extends Components.PTableContainer, HTMLStencilElement {
1379
+ }
1380
+ var HTMLPTableContainerElement: {
1381
+ prototype: HTMLPTableContainerElement;
1382
+ new (): HTMLPTableContainerElement;
1383
+ };
1384
+ interface HTMLPTableFooterElement extends Components.PTableFooter, HTMLStencilElement {
1385
+ }
1386
+ var HTMLPTableFooterElement: {
1387
+ prototype: HTMLPTableFooterElement;
1388
+ new (): HTMLPTableFooterElement;
1389
+ };
1390
+ interface HTMLPTableHeaderElement extends Components.PTableHeader, HTMLStencilElement {
1391
+ }
1392
+ var HTMLPTableHeaderElement: {
1393
+ prototype: HTMLPTableHeaderElement;
1394
+ new (): HTMLPTableHeaderElement;
1395
+ };
1396
+ interface HTMLPTableRowElement extends Components.PTableRow, HTMLStencilElement {
1397
+ }
1398
+ var HTMLPTableRowElement: {
1399
+ prototype: HTMLPTableRowElement;
1400
+ new (): HTMLPTableRowElement;
1401
+ };
1402
+ interface HTMLPToastElement extends Components.PToast, HTMLStencilElement {
1403
+ }
1404
+ var HTMLPToastElement: {
1405
+ prototype: HTMLPToastElement;
1406
+ new (): HTMLPToastElement;
1407
+ };
1408
+ interface HTMLPToastContainerElement extends Components.PToastContainer, HTMLStencilElement {
1409
+ }
1410
+ var HTMLPToastContainerElement: {
1411
+ prototype: HTMLPToastContainerElement;
1412
+ new (): HTMLPToastContainerElement;
1413
+ };
1414
+ interface HTMLPTooltipElement extends Components.PTooltip, HTMLStencilElement {
1415
+ }
1416
+ var HTMLPTooltipElement: {
1417
+ prototype: HTMLPTooltipElement;
1418
+ new (): HTMLPTooltipElement;
1419
+ };
1420
+ interface HTMLElementTagNameMap {
1421
+ "p-accordion": HTMLPAccordionElement;
1422
+ "p-avatar": HTMLPAvatarElement;
1423
+ "p-avatar-group": HTMLPAvatarGroupElement;
1424
+ "p-button": HTMLPButtonElement;
1425
+ "p-card-body": HTMLPCardBodyElement;
1426
+ "p-card-container": HTMLPCardContainerElement;
1427
+ "p-card-header": HTMLPCardHeaderElement;
1428
+ "p-content-slider": HTMLPContentSliderElement;
1429
+ "p-counter": HTMLPCounterElement;
1430
+ "p-divider": HTMLPDividerElement;
1431
+ "p-dropdown": HTMLPDropdownElement;
1432
+ "p-dropdown-menu-container": HTMLPDropdownMenuContainerElement;
1433
+ "p-dropdown-menu-item": HTMLPDropdownMenuItemElement;
1434
+ "p-helper": HTMLPHelperElement;
1435
+ "p-icon": HTMLPIconElement;
1436
+ "p-illustration": HTMLPIllustrationElement;
1437
+ "p-info-panel": HTMLPInfoPanelElement;
1438
+ "p-input-group": HTMLPInputGroupElement;
1439
+ "p-label": HTMLPLabelElement;
1440
+ "p-layout": HTMLPLayoutElement;
1441
+ "p-loader": HTMLPLoaderElement;
1442
+ "p-modal": HTMLPModalElement;
1443
+ "p-modal-backdrop": HTMLPModalBackdropElement;
1444
+ "p-modal-body": HTMLPModalBodyElement;
1445
+ "p-modal-container": HTMLPModalContainerElement;
1446
+ "p-modal-footer": HTMLPModalFooterElement;
1447
+ "p-modal-header": HTMLPModalHeaderElement;
1448
+ "p-navbar": HTMLPNavbarElement;
1449
+ "p-navigation-item": HTMLPNavigationItemElement;
1450
+ "p-page-size-select": HTMLPPageSizeSelectElement;
1451
+ "p-pagination": HTMLPPaginationElement;
1452
+ "p-pagination-item": HTMLPPaginationItemElement;
1453
+ "p-profile": HTMLPProfileElement;
1454
+ "p-segment-container": HTMLPSegmentContainerElement;
1455
+ "p-segment-item": HTMLPSegmentItemElement;
1456
+ "p-select": HTMLPSelectElement;
1457
+ "p-slider-indicator": HTMLPSliderIndicatorElement;
1458
+ "p-status": HTMLPStatusElement;
1459
+ "p-stepper": HTMLPStepperElement;
1460
+ "p-stepper-item": HTMLPStepperItemElement;
1461
+ "p-stepper-line": HTMLPStepperLineElement;
1462
+ "p-tab-group": HTMLPTabGroupElement;
1463
+ "p-tab-item": HTMLPTabItemElement;
1464
+ "p-table": HTMLPTableElement;
1465
+ "p-table-cell": HTMLPTableCellElement;
1466
+ "p-table-column": HTMLPTableColumnElement;
1467
+ "p-table-container": HTMLPTableContainerElement;
1468
+ "p-table-footer": HTMLPTableFooterElement;
1469
+ "p-table-header": HTMLPTableHeaderElement;
1470
+ "p-table-row": HTMLPTableRowElement;
1471
+ "p-toast": HTMLPToastElement;
1472
+ "p-toast-container": HTMLPToastContainerElement;
1473
+ "p-tooltip": HTMLPTooltipElement;
1474
+ }
1475
+ }
1476
+ declare namespace LocalJSX {
1477
+ interface PAccordion {
1478
+ /**
1479
+ * Wether the accordion can be closed
1480
+ */
1481
+ "closeable"?: boolean;
1482
+ /**
1483
+ * Header of the accordion
1484
+ */
1485
+ "header": string;
1486
+ /**
1487
+ * Open change event
1488
+ */
1489
+ "onIsOpen"?: (event: PAccordionCustomEvent<boolean>) => void;
1490
+ /**
1491
+ * Wether the accordion is open
1492
+ */
1493
+ "open"?: boolean;
1494
+ /**
1495
+ * Wether the accordion can be opened
1496
+ */
1497
+ "openable"?: boolean;
1498
+ }
1499
+ interface PAvatar {
1500
+ /**
1501
+ * The default image to show on errors
1502
+ */
1503
+ "defaultImage"?: string;
1504
+ /**
1505
+ * The size of the avatar
1506
+ */
1507
+ "size"?: 'small' | 'medium' | 'large' | 'xlarge';
1508
+ /**
1509
+ * The image used for the avatar
1510
+ */
1511
+ "src": string;
1512
+ /**
1513
+ * The variant of the avatar
1514
+ */
1515
+ "variant"?: 'user' | 'company';
1516
+ }
1517
+ interface PAvatarGroup {
1518
+ /**
1519
+ * The amount to show after the avatars
1520
+ */
1521
+ "extra"?: number;
1522
+ }
1523
+ interface PButton {
1524
+ /**
1525
+ * Wether to show a chevron or not
1526
+ */
1527
+ "chevron"?: boolean | 'up' | 'down';
1528
+ /**
1529
+ * Chevron position
1530
+ */
1531
+ "chevronPosition"?: 'start' | 'end';
1532
+ /**
1533
+ * Wether the button is disabled
1534
+ */
1535
+ "disabled"?: boolean;
1536
+ /**
1537
+ * Href in case of "text" version
1538
+ */
1539
+ "href"?: string;
1540
+ /**
1541
+ * Icon to show on the button
1542
+ */
1543
+ "icon"?: IconVariant;
1544
+ /**
1545
+ * Icon flip
1546
+ */
1547
+ "iconFlip"?: IconFlipOptions;
1548
+ /**
1549
+ * Wether the button is icon only
1550
+ */
1551
+ "iconOnly"?: boolean;
1552
+ /**
1553
+ * Icon position
1554
+ */
1555
+ "iconPosition"?: 'start' | 'end';
1556
+ /**
1557
+ * Icon rotate
1558
+ */
1559
+ "iconRotate"?: RotateOptions;
1560
+ /**
1561
+ * Wether the button should inherit text styles
1562
+ */
1563
+ "inheritText"?: boolean;
1564
+ /**
1565
+ * Wether to show a loader or not
1566
+ */
1567
+ "loading"?: boolean;
1568
+ /**
1569
+ * Button click event
1570
+ */
1571
+ "onOnClick"?: (event: PButtonCustomEvent<MouseEvent>) => void;
1572
+ /**
1573
+ * The size of the button
1574
+ */
1575
+ "size"?: 'small' | 'medium';
1576
+ /**
1577
+ * Target in case of "text" version
1578
+ */
1579
+ "target"?: string;
1580
+ /**
1581
+ * The variant of the button
1582
+ */
1583
+ "variant"?: 'primary' | 'secondary' | 'text';
1584
+ /**
1585
+ * The width of the button
1586
+ */
1587
+ "width"?: 'auto' | 'full';
1588
+ }
1589
+ interface PCardBody {
1590
+ /**
1591
+ * Wether the button should inherit text styles
1592
+ */
1593
+ "inheritText"?: boolean;
1594
+ }
1595
+ interface PCardContainer {
1596
+ /**
1597
+ * Wether the card should be hoverable
1598
+ */
1599
+ "hoverable"?: boolean;
1600
+ /**
1601
+ * Wether the card should have shadow
1602
+ */
1603
+ "shadow"?: boolean;
1604
+ }
1605
+ interface PCardHeader {
1606
+ /**
1607
+ * Enable the title arrow
1608
+ */
1609
+ "arrow"?: boolean;
1610
+ /**
1611
+ * Content of the card header
1612
+ */
1613
+ "header"?: string;
1614
+ }
1615
+ interface PContentSlider {
1616
+ /**
1617
+ * Wether to disable auto centering the content
1618
+ */
1619
+ "disableAutoCenter"?: boolean;
1620
+ /**
1621
+ * Wether to disable dragging the content
1622
+ */
1623
+ "disableDrag"?: boolean;
1624
+ /**
1625
+ * Wether to disable clicking the indicator scrolls content
1626
+ */
1627
+ "disableIndicatorClick"?: boolean;
1628
+ /**
1629
+ * Wether to hide the indicator on mobile
1630
+ */
1631
+ "hideMobileIndicator"?: boolean;
1632
+ }
1633
+ interface PCounter {
1634
+ /**
1635
+ * The size of the counter
1636
+ */
1637
+ "size"?: 'default' | 'mini';
1638
+ /**
1639
+ * The variant of the counter
1640
+ */
1641
+ "variant"?: 'info' | 'negative' | 'positive' | 'unbiased';
1642
+ }
1643
+ interface PDivider {
1644
+ }
1645
+ interface PDropdown {
1646
+ /**
1647
+ * Wether to automatically calculate the width of the menu based on the trigger
1648
+ */
1649
+ "calculateWidth"?: boolean;
1650
+ /**
1651
+ * Chevron direction
1652
+ */
1653
+ "chevronDirection"?: 'up' | 'down';
1654
+ /**
1655
+ * Chevron position
1656
+ */
1657
+ "chevronPosition"?: 'start' | 'end';
1658
+ /**
1659
+ * Wether to automatically close the dropdown menu after clicking inside
1660
+ */
1661
+ "disableTriggerClick"?: boolean;
1662
+ /**
1663
+ * Wether to automatically close the dropdown menu after clicking inside
1664
+ */
1665
+ "insideClick"?: boolean;
1666
+ /**
1667
+ * Open change event
1668
+ */
1669
+ "onIsOpen"?: (event: PDropdownCustomEvent<boolean>) => void;
1670
+ /**
1671
+ * The content of the dropdown menu
1672
+ */
1673
+ "placement"?: Placement;
1674
+ /**
1675
+ * Wether to show the dropdown menu
1676
+ */
1677
+ "show"?: boolean;
1678
+ /**
1679
+ * The strategy of the popover placement
1680
+ */
1681
+ "strategy"?: PositioningStrategy;
1682
+ }
1683
+ interface PDropdownMenuContainer {
1684
+ /**
1685
+ * Wether the container applies it's max width
1686
+ */
1687
+ "maxWidth"?: boolean;
1688
+ }
1689
+ interface PDropdownMenuItem {
1690
+ /**
1691
+ * Wether the dropdown menu item is active
1692
+ */
1693
+ "active"?: boolean;
1694
+ /**
1695
+ * Wether to enable the hover state
1696
+ */
1697
+ "enableHover"?: boolean;
1698
+ /**
1699
+ * Icon of the navigation item
1700
+ */
1701
+ "icon"?: IconVariant;
1702
+ }
1703
+ interface PHelper {
1704
+ /**
1705
+ * The placement of the helper popover
1706
+ */
1707
+ "placement"?: Placement;
1708
+ }
1709
+ interface PIcon {
1710
+ /**
1711
+ * Wether to flip the icon horizontally or vertically
1712
+ */
1713
+ "flip"?: IconFlipOptions;
1714
+ /**
1715
+ * Wether to rotate the icon x degrees
1716
+ */
1717
+ "rotate"?: RotateOptions;
1718
+ /**
1719
+ * The size of the icon, using tailwind sizes
1720
+ */
1721
+ "size"?: TextSizeOptions;
1722
+ /**
1723
+ * The icon the be displayed
1724
+ */
1725
+ "variant": IconVariant;
1726
+ }
1727
+ interface PIllustration {
1728
+ /**
1729
+ * The icon the be displayed
1730
+ */
1731
+ "variant": IllustrationVariant;
1732
+ }
1733
+ interface PInfoPanel {
1734
+ /**
1735
+ * Wether the panel can be closed
1736
+ */
1737
+ "closeable"?: boolean;
1738
+ /**
1739
+ * The content of the info panel
1740
+ */
1741
+ "content"?: string;
1742
+ /**
1743
+ * The header of the info panel
1744
+ */
1745
+ "header"?: string;
1746
+ /**
1747
+ * The variant of the info panel
1748
+ */
1749
+ "variant"?: 'info' | 'negative' | 'positive' | 'unbiased';
1750
+ }
1751
+ interface PInputGroup {
1752
+ /**
1753
+ * Wether the input group is disabled
1754
+ */
1755
+ "disabled"?: boolean;
1756
+ /**
1757
+ * The helper of the input group
1758
+ */
1759
+ "error"?: string;
1760
+ /**
1761
+ * Wether the input group is focused
1762
+ */
1763
+ "focused"?: boolean;
1764
+ /**
1765
+ * The helper of the input group
1766
+ */
1767
+ "helper"?: string;
1768
+ /**
1769
+ * Icon of the navigation item
1770
+ */
1771
+ "icon"?: IconVariant;
1772
+ /**
1773
+ * Icon flip
1774
+ */
1775
+ "iconFlip"?: IconFlipOptions;
1776
+ /**
1777
+ * Icon position
1778
+ */
1779
+ "iconPosition"?: 'start' | 'end';
1780
+ /**
1781
+ * Icon rotate
1782
+ */
1783
+ "iconRotate"?: RotateOptions;
1784
+ /**
1785
+ * The label of the input group
1786
+ */
1787
+ "label"?: string;
1788
+ /**
1789
+ * The prefix of the input group
1790
+ */
1791
+ "prefix"?: string;
1792
+ /**
1793
+ * Wether the field is required
1794
+ */
1795
+ "required"?: boolean;
1796
+ /**
1797
+ * The size of the input group
1798
+ */
1799
+ "size"?: 'small' | 'medium';
1800
+ /**
1801
+ * The suffix of the input group
1802
+ */
1803
+ "suffix"?: string;
243
1804
  }
244
- var HTMLPHelperElement: {
245
- prototype: HTMLPHelperElement;
246
- new (): HTMLPHelperElement;
247
- };
248
- interface HTMLPIconElement extends Components.PIcon, HTMLStencilElement {
1805
+ interface PLabel {
1806
+ /**
1807
+ * Wether to add the circle or not
1808
+ */
1809
+ "circle"?: boolean;
1810
+ /**
1811
+ * Icon to show on the button
1812
+ */
1813
+ "icon"?: IconVariant;
1814
+ /**
1815
+ * Icon flip
1816
+ */
1817
+ "iconFlip"?: IconFlipOptions;
1818
+ /**
1819
+ * Wether it's icon only
1820
+ */
1821
+ "iconOnly"?: boolean;
1822
+ /**
1823
+ * Icon rotate
1824
+ */
1825
+ "iconRotate"?: RotateOptions1;
1826
+ /**
1827
+ * Wether to show icon on mobile
1828
+ */
1829
+ "mobileIcon"?: boolean;
1830
+ /**
1831
+ * The size of the label
1832
+ */
1833
+ "size"?: 'small' | 'default';
1834
+ /**
1835
+ * Variant of the label
1836
+ */
1837
+ "variant"?: | 'positive'
1838
+ | 'unbiased'
1839
+ | 'negative'
1840
+ | 'info';
249
1841
  }
250
- var HTMLPIconElement: {
251
- prototype: HTMLPIconElement;
252
- new (): HTMLPIconElement;
253
- };
254
- interface HTMLPIllustrationElement extends Components.PIllustration, HTMLStencilElement {
1842
+ interface PLayout {
1843
+ /**
1844
+ * Variant of the layout
1845
+ */
1846
+ "variant"?: 'default' | 'login';
255
1847
  }
256
- var HTMLPIllustrationElement: {
257
- prototype: HTMLPIllustrationElement;
258
- new (): HTMLPIllustrationElement;
259
- };
260
- interface HTMLPInfoPanelElement extends Components.PInfoPanel, HTMLStencilElement {
1848
+ interface PLoader {
1849
+ /**
1850
+ * Color of the loader
1851
+ */
1852
+ "color"?: 'indigo' | 'white' | 'storm';
1853
+ /**
1854
+ * !NOT IMPLEMENTED! Modal description for modal variant
1855
+ */
1856
+ "modalDescription"?: string;
1857
+ /**
1858
+ * !NOT IMPLEMENTED! Modal title for modal variant
1859
+ */
1860
+ "modalTitle"?: string;
1861
+ /**
1862
+ * Wether to show or hide the loader
1863
+ */
1864
+ "show"?: boolean | Observable<boolean>;
1865
+ /**
1866
+ * Variant of loader
1867
+ */
1868
+ "variant"?: | 'inline'
1869
+ | 'full-width'
1870
+ | 'full-screen'
1871
+ | 'modal'
1872
+ | 'ghost';
261
1873
  }
262
- var HTMLPInfoPanelElement: {
263
- prototype: HTMLPInfoPanelElement;
264
- new (): HTMLPInfoPanelElement;
265
- };
266
- interface HTMLPLoaderElement extends Components.PLoader, HTMLStencilElement {
1874
+ interface PModal {
1875
+ /**
1876
+ * The Header of the modal
1877
+ */
1878
+ "header"?: string;
1879
+ /**
1880
+ * Close click event
1881
+ */
1882
+ "onClose"?: (event: PModalCustomEvent<MouseEvent>) => void;
1883
+ /**
1884
+ * Wether to show the modal or not
1885
+ */
1886
+ "show"?: boolean;
1887
+ /**
1888
+ * Wether to show the close on mobile in the header
1889
+ */
1890
+ "showMobileClose"?: boolean;
1891
+ /**
1892
+ * Wether to show the footer on mobile
1893
+ */
1894
+ "showMobileFooter"?: boolean;
1895
+ /**
1896
+ * The size of the modal container
1897
+ */
1898
+ "size"?: 'sm' | 'md' | 'lg' | 'xl';
1899
+ /**
1900
+ * The variant of the modal body
1901
+ */
1902
+ "variant"?: 'default' | 'table';
267
1903
  }
268
- var HTMLPLoaderElement: {
269
- prototype: HTMLPLoaderElement;
270
- new (): HTMLPLoaderElement;
271
- };
272
- interface HTMLPNavigationItemElement extends Components.PNavigationItem, HTMLStencilElement {
1904
+ interface PModalBackdrop {
273
1905
  }
274
- var HTMLPNavigationItemElement: {
275
- prototype: HTMLPNavigationItemElement;
276
- new (): HTMLPNavigationItemElement;
277
- };
278
- interface HTMLPPaginationElement extends Components.PPagination, HTMLStencilElement {
1906
+ interface PModalBody {
1907
+ /**
1908
+ * The variant of the modal body
1909
+ */
1910
+ "variant"?: 'default' | 'table';
279
1911
  }
280
- var HTMLPPaginationElement: {
281
- prototype: HTMLPPaginationElement;
282
- new (): HTMLPPaginationElement;
283
- };
284
- interface HTMLPPaginationItemElement extends Components.PPaginationItem, HTMLStencilElement {
1912
+ interface PModalContainer {
1913
+ /**
1914
+ * The size of the modal container
1915
+ */
1916
+ "size"?: 'sm' | 'md' | 'lg' | 'xl';
285
1917
  }
286
- var HTMLPPaginationItemElement: {
287
- prototype: HTMLPPaginationItemElement;
288
- new (): HTMLPPaginationItemElement;
289
- };
290
- interface HTMLPTooltipElement extends Components.PTooltip, HTMLStencilElement {
1918
+ interface PModalFooter {
1919
+ /**
1920
+ * Wether to show the footer on mobile
1921
+ */
1922
+ "hideOnMobile"?: boolean;
291
1923
  }
292
- var HTMLPTooltipElement: {
293
- prototype: HTMLPTooltipElement;
294
- new (): HTMLPTooltipElement;
295
- };
296
- interface HTMLElementTagNameMap {
297
- "p-avatar": HTMLPAvatarElement;
298
- "p-button": HTMLPButtonElement;
299
- "p-counter": HTMLPCounterElement;
300
- "p-divider": HTMLPDividerElement;
301
- "p-helper": HTMLPHelperElement;
302
- "p-icon": HTMLPIconElement;
303
- "p-illustration": HTMLPIllustrationElement;
304
- "p-info-panel": HTMLPInfoPanelElement;
305
- "p-loader": HTMLPLoaderElement;
306
- "p-navigation-item": HTMLPNavigationItemElement;
307
- "p-pagination": HTMLPPaginationElement;
308
- "p-pagination-item": HTMLPPaginationItemElement;
309
- "p-tooltip": HTMLPTooltipElement;
1924
+ interface PModalHeader {
1925
+ /**
1926
+ * Close click event
1927
+ */
1928
+ "onClose"?: (event: PModalHeaderCustomEvent<MouseEvent>) => void;
1929
+ /**
1930
+ * Wether to show the close button on mobile
1931
+ */
1932
+ "showMobileClose"?: boolean;
310
1933
  }
311
- }
312
- declare namespace LocalJSX {
313
- interface PAvatar {
1934
+ interface PNavbar {
1935
+ /**
1936
+ * The text to display for the close button
1937
+ */
1938
+ "closeText"?: string;
1939
+ /**
1940
+ * The text to display for the menu button & sidebar title
1941
+ */
1942
+ "menuText"?: string;
1943
+ }
1944
+ interface PNavigationItem {
1945
+ /**
1946
+ * Wether the navigation item is active
1947
+ */
1948
+ "active"?: boolean;
1949
+ /**
1950
+ * Icon of the navigation item
1951
+ */
1952
+ "counter"?: number | string;
1953
+ /**
1954
+ * The href of the navigation item
1955
+ */
1956
+ "href"?: string;
1957
+ /**
1958
+ * Icon of the navigation item
1959
+ */
1960
+ "icon"?: IconVariant;
1961
+ /**
1962
+ * The target of the navigation item
1963
+ */
1964
+ "target"?: string;
1965
+ }
1966
+ interface PPageSizeSelect {
1967
+ /**
1968
+ * The size of the button
1969
+ */
1970
+ "buttonSize"?: 'small' | 'medium';
1971
+ /**
1972
+ * The template for the data view
1973
+ */
1974
+ "buttonTemplate"?: templateFunc;
1975
+ /**
1976
+ * Chevron position
1977
+ */
1978
+ "chevronPosition"?: 'start' | 'end';
1979
+ /**
1980
+ * Wether to hide when there is only 1 page available
1981
+ */
1982
+ "hidden"?: boolean;
1983
+ /**
1984
+ * The template for the data view
1985
+ */
1986
+ "itemTemplate"?: templateFunc;
1987
+ /**
1988
+ * Event whenever the size changes
1989
+ */
1990
+ "onSizeChange"?: (event: PPageSizeSelectCustomEvent<number>) => void;
1991
+ /**
1992
+ * The current page
1993
+ */
1994
+ "size"?: number;
1995
+ /**
1996
+ * The available sizes
1997
+ */
1998
+ "sizeOptions"?: number[];
1999
+ }
2000
+ interface PPagination {
2001
+ /**
2002
+ * Wether to hide when there is only 1 page available
2003
+ */
2004
+ "hideOnSinglePage"?: boolean;
2005
+ /**
2006
+ * Event whenever the page changes
2007
+ */
2008
+ "onPageChange"?: (event: PPaginationCustomEvent<number>) => void;
2009
+ /**
2010
+ * The current page
2011
+ */
2012
+ "page"?: number;
2013
+ /**
2014
+ * The amount of items per page
2015
+ */
2016
+ "pageSize"?: number;
2017
+ /**
2018
+ * The total amount of items
2019
+ */
2020
+ "total": number;
2021
+ }
2022
+ interface PPaginationItem {
2023
+ /**
2024
+ * Wether the pagination item is active
2025
+ */
2026
+ "active"?: boolean;
2027
+ }
2028
+ interface PProfile {
2029
+ /**
2030
+ * The size of the profile avatar
2031
+ */
2032
+ "size"?: 'small' | 'medium' | 'large';
2033
+ /**
2034
+ * The variant of the profile
2035
+ */
2036
+ "variant"?: 'company' | 'user';
2037
+ }
2038
+ interface PSegmentContainer {
2039
+ }
2040
+ interface PSegmentItem {
2041
+ /**
2042
+ * Wether the segment item is active
2043
+ */
2044
+ "active"?: boolean;
2045
+ /**
2046
+ * Icon to show on the segment item
2047
+ */
2048
+ "icon"?: IconVariant;
2049
+ /**
2050
+ * Icon flip
2051
+ */
2052
+ "iconFlip"?: IconFlipOptions;
2053
+ /**
2054
+ * Icon rotate
2055
+ */
2056
+ "iconRotate"?: RotateOptions;
2057
+ }
2058
+ interface PSelect {
2059
+ /**
2060
+ * Wether the input uses async filtering
2061
+ */
2062
+ "asyncFilter"?: boolean;
2063
+ /**
2064
+ * Wether to automatically select the first item
2065
+ */
2066
+ "autoSelectFirst"?: boolean;
2067
+ /**
2068
+ * The placeholder of the input when auto completing
2069
+ */
2070
+ "autocompletePlaceholder"?: string;
2071
+ /**
2072
+ * Wether the input group is disabled used by the select
2073
+ */
2074
+ "disabled"?: boolean;
2075
+ /**
2076
+ * The key of the object to display
2077
+ */
2078
+ "displayKey"?: string;
2079
+ /**
2080
+ * Wether to enable autocomplete
2081
+ */
2082
+ "enableAutocomplete"?: boolean;
2083
+ /**
2084
+ * The helper of the input group used by the select
2085
+ */
2086
+ "error"?: string;
2087
+ /**
2088
+ * The helper of the input group used by the select
2089
+ */
2090
+ "helper"?: string;
2091
+ /**
2092
+ * The items to show in the dropdown
2093
+ */
2094
+ "items"?: string | any[];
2095
+ /**
2096
+ * The label of the input group used by the select
2097
+ */
2098
+ "label"?: string;
2099
+ /**
2100
+ * Wether to show loading items
2101
+ */
2102
+ "loading"?: boolean;
2103
+ /**
2104
+ * The maximum amount of items to display
2105
+ */
2106
+ "maxDisplayedItems"?: number;
2107
+ /**
2108
+ * Event when the query of the autocomplete changes
2109
+ */
2110
+ "onQueryChange"?: (event: PSelectCustomEvent<string>) => void;
2111
+ /**
2112
+ * Event when the value changes
2113
+ */
2114
+ "onValueChange"?: (event: PSelectCustomEvent<any>) => void;
314
2115
  /**
315
- * The default image to show on errors
2116
+ * The placeholder of the input
316
2117
  */
317
- "defaultImage"?: string;
2118
+ "placeholder"?: string;
318
2119
  /**
319
- * The size of the avatar
2120
+ * The prefix of the input group used by the select
320
2121
  */
321
- "size"?: 'small' | 'medium' | 'large';
2122
+ "prefix"?: string;
322
2123
  /**
323
- * The image used for the avatar
2124
+ * The current query
324
2125
  */
325
- "src": string;
2126
+ "query"?: string;
326
2127
  /**
327
- * The variant of the avatar
2128
+ * The key of the object to display
328
2129
  */
329
- "variant"?: 'user' | 'company';
330
- }
331
- interface PButton {
2130
+ "queryKey"?: string;
332
2131
  /**
333
- * Wether the button is disabled
2132
+ * The size of the input group used by the select
334
2133
  */
335
- "disabled"?: boolean;
2134
+ "size"?: 'small' | 'medium';
336
2135
  /**
337
- * Href in case of "text" version
2136
+ * The current value
338
2137
  */
339
- "href"?: string;
2138
+ "value"?: any;
340
2139
  /**
341
- * Icon to show on the button
2140
+ * The key of the object to return
2141
+ */
2142
+ "valueKey"?: string;
2143
+ }
2144
+ interface PSliderIndicator {
2145
+ /**
2146
+ * Wether the slider indicator is active
2147
+ */
2148
+ "active"?: boolean;
2149
+ }
2150
+ interface PStatus {
2151
+ /**
2152
+ * Icon to show on the status
342
2153
  */
343
2154
  "icon"?: IconVariant;
344
2155
  /**
@@ -346,128 +2157,314 @@ declare namespace LocalJSX {
346
2157
  */
347
2158
  "iconFlip"?: IconFlipOptions;
348
2159
  /**
349
- * Icon position
2160
+ * Icon rotate
350
2161
  */
351
- "iconPosition"?: 'start' | 'end';
2162
+ "iconRotate"?: RotateOptions;
352
2163
  /**
353
- * Icon rotate
2164
+ * The variant of the status
354
2165
  */
355
- "iconRotate"?: number;
2166
+ "variant"?: 'default' | 'positive' | 'unbiased' | 'negative';
2167
+ }
2168
+ interface PStepper {
356
2169
  /**
357
- * Wether to show a loader or not
2170
+ * The currently active step
358
2171
  */
359
- "loading"?: boolean;
2172
+ "activeStep"?: number;
360
2173
  /**
361
- * Button click event
2174
+ * The direction of the stepper
362
2175
  */
363
- "onOnClick"?: (event: PButtonCustomEvent<MouseEvent>) => void;
2176
+ "direction"?: 'horizontal' | 'vertical';
2177
+ }
2178
+ interface PStepperItem {
364
2179
  /**
365
- * The size of the button
2180
+ * Wether the step is active
366
2181
  */
367
- "size"?: 'small' | 'medium';
2182
+ "active"?: boolean;
368
2183
  /**
369
- * Target in case of "text" version
2184
+ * The alignment of the step content
370
2185
  */
371
- "target"?: string;
2186
+ "align"?: 'start' | 'center' | 'end';
372
2187
  /**
373
- * The variant of the button
2188
+ * The direction of the stepper step
374
2189
  */
375
- "variant"?: 'primary' | 'secondary' | 'text';
2190
+ "direction"?: 'horizontal' | 'vertical';
2191
+ /**
2192
+ * Wether the step is finished
2193
+ */
2194
+ "finished"?: boolean;
376
2195
  }
377
- interface PCounter {
2196
+ interface PStepperLine {
2197
+ /**
2198
+ * Wether the line is active
2199
+ */
2200
+ "active"?: boolean;
2201
+ /**
2202
+ * The direction of the stepper line
2203
+ */
2204
+ "direction"?: 'horizontal' | 'vertical';
378
2205
  }
379
- interface PDivider {
2206
+ interface PTabGroup {
380
2207
  }
381
- interface PHelper {
2208
+ interface PTabItem {
2209
+ /**
2210
+ * Wether the tab item is active
2211
+ */
2212
+ "active"?: boolean;
382
2213
  }
383
- interface PIcon {
2214
+ interface PTable {
384
2215
  /**
385
- * Wether to flip the icon horizontally or vertically
2216
+ * Active quick filter identifier
386
2217
  */
387
- "flip"?: IconFlipOptions;
2218
+ "activeQuickFilterIdentifier"?: string;
388
2219
  /**
389
- * Wether to rotate the icon x degrees
2220
+ * The amount of loading rows to show
390
2221
  */
391
- "rotate"?: number;
2222
+ "amountOfLoadingRows"?: number;
392
2223
  /**
393
- * The size of the icon, using tailwind sizes
2224
+ * A key to determine if a row can be selected
394
2225
  */
395
- "size"?: string;
2226
+ "canSelectKey"?: string;
396
2227
  /**
397
- * The icon the be displayed
2228
+ * The template for the edit button text
398
2229
  */
399
- "variant": IconVariant;
400
- }
401
- interface PIllustration {
2230
+ "editButtonTemplate"?: buttonTemplateFunc;
2231
+ "emptyStateAction"?: templateFunc;
2232
+ "emptyStateContent"?: templateFunc;
2233
+ "emptyStateFilteredContent"?: templateFunc;
2234
+ "emptyStateFilteredHeader"?: templateFunc;
2235
+ "emptyStateHeader"?: templateFunc;
402
2236
  /**
403
- * The icon the be displayed
2237
+ * Wether to show the edit button
404
2238
  */
405
- "variant": IllustrationVariant;
406
- }
407
- interface PInfoPanel {
2239
+ "enableEdit"?: boolean;
408
2240
  /**
409
- * Wether the panel can be closed
2241
+ * Wether to enable export
410
2242
  */
411
- "closeable"?: boolean;
2243
+ "enableExport"?: boolean;
412
2244
  /**
413
- * The content of the info panel
2245
+ * Wether to show the filter button
414
2246
  */
415
- "content"?: string;
2247
+ "enableFilter"?: boolean;
416
2248
  /**
417
- * The header of the info panel
2249
+ * Wether to enable page size select
418
2250
  */
419
- "header"?: string;
2251
+ "enablePageSize"?: boolean;
420
2252
  /**
421
- * The variant of the info panel
2253
+ * Wether to enable pagination
422
2254
  */
423
- "variant"?: 'info' | 'negative' | 'positive' | 'unbiased';
2255
+ "enablePagination"?: boolean;
2256
+ /**
2257
+ * Wether to enable row clicking
2258
+ */
2259
+ "enableRowClick"?: boolean;
2260
+ /**
2261
+ * Wether to enable selection
2262
+ */
2263
+ "enableRowSelection"?: boolean;
2264
+ /**
2265
+ * Wether to show the search input
2266
+ */
2267
+ "enableSearch"?: boolean;
2268
+ /**
2269
+ * The template for the filter button text
2270
+ */
2271
+ "filterButtonTemplate"?: templateFunc;
2272
+ /**
2273
+ * Wether to hide when there is only 1 page available
2274
+ */
2275
+ "hideOnSinglePage"?: boolean;
2276
+ /**
2277
+ * The items to be fed to the table
2278
+ */
2279
+ "items"?: string;
2280
+ /**
2281
+ * Wether data is loading
2282
+ */
2283
+ "loading"?: boolean;
2284
+ /**
2285
+ * Event when the edit button is clicked
2286
+ */
2287
+ "onEdit"?: (event: PTableCustomEvent<null>) => void;
2288
+ /**
2289
+ * Event whenever the empty state is clicked
2290
+ */
2291
+ "onEmptyStateActionClick"?: (event: PTableCustomEvent<null>) => void;
2292
+ /**
2293
+ * Event whenever the page changes
2294
+ */
2295
+ "onExport"?: (event: PTableCustomEvent<number>) => void;
2296
+ /**
2297
+ * Event when the filter button is clicked
2298
+ */
2299
+ "onFilter"?: (event: PTableCustomEvent<null>) => void;
2300
+ /**
2301
+ * Event when the table has rendered
2302
+ */
2303
+ "onHasRendered"?: (event: PTableCustomEvent<number>) => void;
2304
+ /**
2305
+ * Event whenever the page changes
2306
+ */
2307
+ "onPageChange"?: (event: PTableCustomEvent<number>) => void;
2308
+ /**
2309
+ * Event whenever the page changes
2310
+ */
2311
+ "onPageSizeChange"?: (event: PTableCustomEvent<number>) => void;
2312
+ /**
2313
+ * Event when the query changes
2314
+ */
2315
+ "onQueryChange"?: (event: PTableCustomEvent<string>) => void;
2316
+ /**
2317
+ * Event when one of the quick filters is clicked
2318
+ */
2319
+ "onQuickFilter"?: (event: PTableCustomEvent<QuickFilter>) => void;
2320
+ /**
2321
+ * Event whenever a row is clicked
2322
+ */
2323
+ "onRowClick"?: (event: PTableCustomEvent<RowClickEvent>) => void;
2324
+ /**
2325
+ * Event whenever a row is deselected
2326
+ */
2327
+ "onRowDeselected"?: (event: PTableCustomEvent<any>) => void;
2328
+ /**
2329
+ * Event whenever a row is selected
2330
+ */
2331
+ "onRowSelected"?: (event: PTableCustomEvent<any>) => void;
2332
+ /**
2333
+ * Event whenever the current selection changes
2334
+ */
2335
+ "onSelectedRowsChange"?: (event: PTableCustomEvent<any>) => void;
2336
+ /**
2337
+ * The current page
2338
+ */
2339
+ "page"?: number;
2340
+ /**
2341
+ * The amount of items per page
2342
+ */
2343
+ "pageSize"?: number;
2344
+ /**
2345
+ * The options for the page size
2346
+ */
2347
+ "pageSizeOptions"?: number[];
2348
+ /**
2349
+ * The query to show in the search bar
2350
+ */
2351
+ "query"?: string;
2352
+ /**
2353
+ * Quick filters to show
2354
+ */
2355
+ "quickFilters"?: QuickFilter[];
2356
+ /**
2357
+ * The amount of filters being selected
2358
+ */
2359
+ "selectedFiltersAmount"?: number;
2360
+ /**
2361
+ * The current selection of items
2362
+ */
2363
+ "selectedRows"?: any[];
2364
+ /**
2365
+ * The key to determine if a row is selected
2366
+ */
2367
+ "selectionKey"?: string;
2368
+ /**
2369
+ * The total amount of items
2370
+ */
2371
+ "total": number;
424
2372
  }
425
- interface PLoader {
2373
+ interface PTableCell {
426
2374
  /**
427
- * Color of the loader
2375
+ * The checkbox to show
428
2376
  */
429
- "color"?: 'indigo' | 'white' | 'storm';
2377
+ "checkbox"?: any;
430
2378
  /**
431
- * !NOT IMPLEMENTED! Modal description for modal variant
2379
+ * The definition of the table column
432
2380
  */
433
- "modalDescription"?: string;
2381
+ "definition"?: TableColumn;
434
2382
  /**
435
- * !NOT IMPLEMENTED! Modal title for modal variant
2383
+ * The index of the column
436
2384
  */
437
- "modalTitle"?: string;
2385
+ "index"?: number;
438
2386
  /**
439
- * Wether to show or hide the loader
2387
+ * The item in question
440
2388
  */
441
- "show"?: boolean | Observable<boolean>;
2389
+ "item"?: any;
442
2390
  /**
443
- * Variant of loader
2391
+ * The index of the row
2392
+ */
2393
+ "rowIndex"?: number;
2394
+ /**
2395
+ * The template to show
2396
+ */
2397
+ "template"?: TableDefinitionTemplateFunc;
2398
+ /**
2399
+ * The value of the column
2400
+ */
2401
+ "value"?: any;
2402
+ /**
2403
+ * The variant of the column
444
2404
  */
445
- "variant"?: 'inline' | 'full-width' | 'full-screen' | 'modal';
2405
+ "variant"?: 'default' | 'loading' | 'header';
446
2406
  }
447
- interface PNavigationItem {
2407
+ interface PTableColumn {
448
2408
  /**
449
- * Wether the navigation item is active
2409
+ * The alignment of the column
450
2410
  */
451
- "active"?: boolean;
2411
+ "align"?: 'start' | 'center' | 'end';
452
2412
  /**
453
- * Icon of the navigation item
2413
+ * The name of the column
454
2414
  */
455
- "counter"?: number | string;
2415
+ "name"?: string;
456
2416
  /**
457
- * The href of the navigation item
2417
+ * Event to let the table know it has to re render
458
2418
  */
459
- "href"?: string;
2419
+ "onTableDefinitionChanged"?: (event: PTableColumnCustomEvent<boolean>) => void;
460
2420
  /**
461
- * Icon of the navigation item
2421
+ * The path of the value of the item you want to display
462
2422
  */
463
- "icon"?: IconVariant;
2423
+ "path"?: string;
464
2424
  /**
465
- * The target of the navigation item
2425
+ * The sizes of the column
466
2426
  */
467
- "target"?: string;
2427
+ "sizes"?: 'auto' | number | TableColumnSizes;
2428
+ /**
2429
+ * The type of the column
2430
+ */
2431
+ "type"?: 'td' | 'th';
2432
+ /**
2433
+ * Wether the column should use the slot
2434
+ */
2435
+ "useSlot"?: boolean;
468
2436
  }
469
- interface PPagination {
470
- "onPageChange"?: (event: PPaginationCustomEvent<number>) => void;
2437
+ interface PTableContainer {
2438
+ }
2439
+ interface PTableFooter {
2440
+ /**
2441
+ * Wether to enable export
2442
+ */
2443
+ "enableExport"?: boolean;
2444
+ /**
2445
+ * Wether to enable page size select
2446
+ */
2447
+ "enablePageSize"?: boolean;
2448
+ /**
2449
+ * Wether to enable pagination
2450
+ */
2451
+ "enablePagination"?: boolean;
2452
+ /**
2453
+ * Wether to hide when there is only 1 page available
2454
+ */
2455
+ "hideOnSinglePage"?: boolean;
2456
+ /**
2457
+ * Event whenever the page changes
2458
+ */
2459
+ "onExport"?: (event: PTableFooterCustomEvent<number>) => void;
2460
+ /**
2461
+ * Event whenever the page changes
2462
+ */
2463
+ "onPageChange"?: (event: PTableFooterCustomEvent<number>) => void;
2464
+ /**
2465
+ * Event whenever the page changes
2466
+ */
2467
+ "onPageSizeChange"?: (event: PTableFooterCustomEvent<number>) => void;
471
2468
  /**
472
2469
  * The current page
473
2470
  */
@@ -476,16 +2473,126 @@ declare namespace LocalJSX {
476
2473
  * The amount of items per page
477
2474
  */
478
2475
  "pageSize"?: number;
2476
+ /**
2477
+ * The options for the page size
2478
+ */
2479
+ "pageSizeOptions"?: number[];
479
2480
  /**
480
2481
  * The total amount of items
481
2482
  */
482
2483
  "total": number;
483
2484
  }
484
- interface PPaginationItem {
2485
+ interface PTableHeader {
485
2486
  /**
486
- * Wether the pagination item is active
2487
+ * Active quick filter identifier
487
2488
  */
488
- "active"?: boolean;
2489
+ "activeQuickFilterIdentifier"?: string;
2490
+ /**
2491
+ * Wether to enable the edit button
2492
+ */
2493
+ "canEdit"?: boolean;
2494
+ /**
2495
+ * The template for the edit button text
2496
+ */
2497
+ "editButtonTemplate"?: buttonTemplateFunc;
2498
+ /**
2499
+ * Wether to show the edit button
2500
+ */
2501
+ "enableEdit"?: boolean;
2502
+ /**
2503
+ * Wether to show the filter button
2504
+ */
2505
+ "enableFilter"?: boolean;
2506
+ /**
2507
+ * Wether to show the search input
2508
+ */
2509
+ "enableSearch"?: boolean;
2510
+ /**
2511
+ * The template for the filter button text
2512
+ */
2513
+ "filterButtonTemplate"?: templateFunc;
2514
+ /**
2515
+ * The amount of items that are selected
2516
+ */
2517
+ "itemsSelectedAmount"?: number;
2518
+ /**
2519
+ * Event when the edit button is clicked
2520
+ */
2521
+ "onEdit"?: (event: PTableHeaderCustomEvent<null>) => void;
2522
+ /**
2523
+ * Event when the filter button is clicked
2524
+ */
2525
+ "onFilter"?: (event: PTableHeaderCustomEvent<null>) => void;
2526
+ /**
2527
+ * Event when the query changes
2528
+ */
2529
+ "onQueryChange"?: (event: PTableHeaderCustomEvent<string>) => void;
2530
+ /**
2531
+ * Event when one of the quick filters is clicked
2532
+ */
2533
+ "onQuickFilter"?: (event: PTableHeaderCustomEvent<QuickFilter>) => void;
2534
+ /**
2535
+ * The query to show in the search bar
2536
+ */
2537
+ "query"?: string;
2538
+ /**
2539
+ * Quick filters to show
2540
+ */
2541
+ "quickFilters"?: QuickFilter[];
2542
+ /**
2543
+ * The amount of filters being selected
2544
+ */
2545
+ "selectedFiltersAmount"?: number;
2546
+ }
2547
+ interface PTableRow {
2548
+ /**
2549
+ * Enable hover
2550
+ */
2551
+ "enableHover"?: boolean;
2552
+ /**
2553
+ * Variant of the header
2554
+ */
2555
+ "variant"?: 'default' | 'header';
2556
+ }
2557
+ interface PToast {
2558
+ /**
2559
+ * Icon to show on the button
2560
+ */
2561
+ "actionIcon"?: IconVariant;
2562
+ /**
2563
+ * Icon flip
2564
+ */
2565
+ "actionIconFlip"?: IconFlipOptions;
2566
+ /**
2567
+ * Icon rotate
2568
+ */
2569
+ "actionIconRotate"?: RotateOptions1;
2570
+ /**
2571
+ * The content of the toast
2572
+ */
2573
+ "content"?: string;
2574
+ /**
2575
+ * Wether to enable the close button
2576
+ */
2577
+ "enableAction"?: boolean;
2578
+ /**
2579
+ * The header of the toast
2580
+ */
2581
+ "header"?: string;
2582
+ /**
2583
+ * Button click event
2584
+ */
2585
+ "onAction"?: (event: PToastCustomEvent<MouseEvent>) => void;
2586
+ /**
2587
+ * The variant of the toast
2588
+ */
2589
+ "variant"?: 'positive' | 'unbiased' | 'negative';
2590
+ }
2591
+ interface PToastContainer {
2592
+ /**
2593
+ * The placement of the container
2594
+ */
2595
+ "placement"?: 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end';
489
2596
  }
490
2597
  interface PTooltip {
491
2598
  /**
@@ -493,7 +2600,11 @@ declare namespace LocalJSX {
493
2600
  */
494
2601
  "canManuallyClose"?: boolean;
495
2602
  /**
496
- * The content of the popover
2603
+ * Open change event
2604
+ */
2605
+ "onIsOpen"?: (event: PTooltipCustomEvent<boolean>) => void;
2606
+ /**
2607
+ * The placement of the popover
497
2608
  */
498
2609
  "placement"?: Placement;
499
2610
  /**
@@ -504,24 +2615,68 @@ declare namespace LocalJSX {
504
2615
  * Wether to show the popover
505
2616
  */
506
2617
  "show"?: boolean;
2618
+ /**
2619
+ * The strategy of the popover placement
2620
+ */
2621
+ "strategy"?: PositioningStrategy;
507
2622
  /**
508
2623
  * The variant of the popover
509
2624
  */
510
- "variant"?: 'hover' | 'click';
2625
+ "variant"?: 'hover' | 'click' | 'error';
511
2626
  }
512
2627
  interface IntrinsicElements {
2628
+ "p-accordion": PAccordion;
513
2629
  "p-avatar": PAvatar;
2630
+ "p-avatar-group": PAvatarGroup;
514
2631
  "p-button": PButton;
2632
+ "p-card-body": PCardBody;
2633
+ "p-card-container": PCardContainer;
2634
+ "p-card-header": PCardHeader;
2635
+ "p-content-slider": PContentSlider;
515
2636
  "p-counter": PCounter;
516
2637
  "p-divider": PDivider;
2638
+ "p-dropdown": PDropdown;
2639
+ "p-dropdown-menu-container": PDropdownMenuContainer;
2640
+ "p-dropdown-menu-item": PDropdownMenuItem;
517
2641
  "p-helper": PHelper;
518
2642
  "p-icon": PIcon;
519
2643
  "p-illustration": PIllustration;
520
2644
  "p-info-panel": PInfoPanel;
2645
+ "p-input-group": PInputGroup;
2646
+ "p-label": PLabel;
2647
+ "p-layout": PLayout;
521
2648
  "p-loader": PLoader;
2649
+ "p-modal": PModal;
2650
+ "p-modal-backdrop": PModalBackdrop;
2651
+ "p-modal-body": PModalBody;
2652
+ "p-modal-container": PModalContainer;
2653
+ "p-modal-footer": PModalFooter;
2654
+ "p-modal-header": PModalHeader;
2655
+ "p-navbar": PNavbar;
522
2656
  "p-navigation-item": PNavigationItem;
2657
+ "p-page-size-select": PPageSizeSelect;
523
2658
  "p-pagination": PPagination;
524
2659
  "p-pagination-item": PPaginationItem;
2660
+ "p-profile": PProfile;
2661
+ "p-segment-container": PSegmentContainer;
2662
+ "p-segment-item": PSegmentItem;
2663
+ "p-select": PSelect;
2664
+ "p-slider-indicator": PSliderIndicator;
2665
+ "p-status": PStatus;
2666
+ "p-stepper": PStepper;
2667
+ "p-stepper-item": PStepperItem;
2668
+ "p-stepper-line": PStepperLine;
2669
+ "p-tab-group": PTabGroup;
2670
+ "p-tab-item": PTabItem;
2671
+ "p-table": PTable;
2672
+ "p-table-cell": PTableCell;
2673
+ "p-table-column": PTableColumn;
2674
+ "p-table-container": PTableContainer;
2675
+ "p-table-footer": PTableFooter;
2676
+ "p-table-header": PTableHeader;
2677
+ "p-table-row": PTableRow;
2678
+ "p-toast": PToast;
2679
+ "p-toast-container": PToastContainer;
525
2680
  "p-tooltip": PTooltip;
526
2681
  }
527
2682
  }
@@ -529,18 +2684,58 @@ export { LocalJSX as JSX };
529
2684
  declare module "@stencil/core" {
530
2685
  export namespace JSX {
531
2686
  interface IntrinsicElements {
2687
+ "p-accordion": LocalJSX.PAccordion & JSXBase.HTMLAttributes<HTMLPAccordionElement>;
532
2688
  "p-avatar": LocalJSX.PAvatar & JSXBase.HTMLAttributes<HTMLPAvatarElement>;
2689
+ "p-avatar-group": LocalJSX.PAvatarGroup & JSXBase.HTMLAttributes<HTMLPAvatarGroupElement>;
533
2690
  "p-button": LocalJSX.PButton & JSXBase.HTMLAttributes<HTMLPButtonElement>;
2691
+ "p-card-body": LocalJSX.PCardBody & JSXBase.HTMLAttributes<HTMLPCardBodyElement>;
2692
+ "p-card-container": LocalJSX.PCardContainer & JSXBase.HTMLAttributes<HTMLPCardContainerElement>;
2693
+ "p-card-header": LocalJSX.PCardHeader & JSXBase.HTMLAttributes<HTMLPCardHeaderElement>;
2694
+ "p-content-slider": LocalJSX.PContentSlider & JSXBase.HTMLAttributes<HTMLPContentSliderElement>;
534
2695
  "p-counter": LocalJSX.PCounter & JSXBase.HTMLAttributes<HTMLPCounterElement>;
535
2696
  "p-divider": LocalJSX.PDivider & JSXBase.HTMLAttributes<HTMLPDividerElement>;
2697
+ "p-dropdown": LocalJSX.PDropdown & JSXBase.HTMLAttributes<HTMLPDropdownElement>;
2698
+ "p-dropdown-menu-container": LocalJSX.PDropdownMenuContainer & JSXBase.HTMLAttributes<HTMLPDropdownMenuContainerElement>;
2699
+ "p-dropdown-menu-item": LocalJSX.PDropdownMenuItem & JSXBase.HTMLAttributes<HTMLPDropdownMenuItemElement>;
536
2700
  "p-helper": LocalJSX.PHelper & JSXBase.HTMLAttributes<HTMLPHelperElement>;
537
2701
  "p-icon": LocalJSX.PIcon & JSXBase.HTMLAttributes<HTMLPIconElement>;
538
2702
  "p-illustration": LocalJSX.PIllustration & JSXBase.HTMLAttributes<HTMLPIllustrationElement>;
539
2703
  "p-info-panel": LocalJSX.PInfoPanel & JSXBase.HTMLAttributes<HTMLPInfoPanelElement>;
2704
+ "p-input-group": LocalJSX.PInputGroup & JSXBase.HTMLAttributes<HTMLPInputGroupElement>;
2705
+ "p-label": LocalJSX.PLabel & JSXBase.HTMLAttributes<HTMLPLabelElement>;
2706
+ "p-layout": LocalJSX.PLayout & JSXBase.HTMLAttributes<HTMLPLayoutElement>;
540
2707
  "p-loader": LocalJSX.PLoader & JSXBase.HTMLAttributes<HTMLPLoaderElement>;
2708
+ "p-modal": LocalJSX.PModal & JSXBase.HTMLAttributes<HTMLPModalElement>;
2709
+ "p-modal-backdrop": LocalJSX.PModalBackdrop & JSXBase.HTMLAttributes<HTMLPModalBackdropElement>;
2710
+ "p-modal-body": LocalJSX.PModalBody & JSXBase.HTMLAttributes<HTMLPModalBodyElement>;
2711
+ "p-modal-container": LocalJSX.PModalContainer & JSXBase.HTMLAttributes<HTMLPModalContainerElement>;
2712
+ "p-modal-footer": LocalJSX.PModalFooter & JSXBase.HTMLAttributes<HTMLPModalFooterElement>;
2713
+ "p-modal-header": LocalJSX.PModalHeader & JSXBase.HTMLAttributes<HTMLPModalHeaderElement>;
2714
+ "p-navbar": LocalJSX.PNavbar & JSXBase.HTMLAttributes<HTMLPNavbarElement>;
541
2715
  "p-navigation-item": LocalJSX.PNavigationItem & JSXBase.HTMLAttributes<HTMLPNavigationItemElement>;
2716
+ "p-page-size-select": LocalJSX.PPageSizeSelect & JSXBase.HTMLAttributes<HTMLPPageSizeSelectElement>;
542
2717
  "p-pagination": LocalJSX.PPagination & JSXBase.HTMLAttributes<HTMLPPaginationElement>;
543
2718
  "p-pagination-item": LocalJSX.PPaginationItem & JSXBase.HTMLAttributes<HTMLPPaginationItemElement>;
2719
+ "p-profile": LocalJSX.PProfile & JSXBase.HTMLAttributes<HTMLPProfileElement>;
2720
+ "p-segment-container": LocalJSX.PSegmentContainer & JSXBase.HTMLAttributes<HTMLPSegmentContainerElement>;
2721
+ "p-segment-item": LocalJSX.PSegmentItem & JSXBase.HTMLAttributes<HTMLPSegmentItemElement>;
2722
+ "p-select": LocalJSX.PSelect & JSXBase.HTMLAttributes<HTMLPSelectElement>;
2723
+ "p-slider-indicator": LocalJSX.PSliderIndicator & JSXBase.HTMLAttributes<HTMLPSliderIndicatorElement>;
2724
+ "p-status": LocalJSX.PStatus & JSXBase.HTMLAttributes<HTMLPStatusElement>;
2725
+ "p-stepper": LocalJSX.PStepper & JSXBase.HTMLAttributes<HTMLPStepperElement>;
2726
+ "p-stepper-item": LocalJSX.PStepperItem & JSXBase.HTMLAttributes<HTMLPStepperItemElement>;
2727
+ "p-stepper-line": LocalJSX.PStepperLine & JSXBase.HTMLAttributes<HTMLPStepperLineElement>;
2728
+ "p-tab-group": LocalJSX.PTabGroup & JSXBase.HTMLAttributes<HTMLPTabGroupElement>;
2729
+ "p-tab-item": LocalJSX.PTabItem & JSXBase.HTMLAttributes<HTMLPTabItemElement>;
2730
+ "p-table": LocalJSX.PTable & JSXBase.HTMLAttributes<HTMLPTableElement>;
2731
+ "p-table-cell": LocalJSX.PTableCell & JSXBase.HTMLAttributes<HTMLPTableCellElement>;
2732
+ "p-table-column": LocalJSX.PTableColumn & JSXBase.HTMLAttributes<HTMLPTableColumnElement>;
2733
+ "p-table-container": LocalJSX.PTableContainer & JSXBase.HTMLAttributes<HTMLPTableContainerElement>;
2734
+ "p-table-footer": LocalJSX.PTableFooter & JSXBase.HTMLAttributes<HTMLPTableFooterElement>;
2735
+ "p-table-header": LocalJSX.PTableHeader & JSXBase.HTMLAttributes<HTMLPTableHeaderElement>;
2736
+ "p-table-row": LocalJSX.PTableRow & JSXBase.HTMLAttributes<HTMLPTableRowElement>;
2737
+ "p-toast": LocalJSX.PToast & JSXBase.HTMLAttributes<HTMLPToastElement>;
2738
+ "p-toast-container": LocalJSX.PToastContainer & JSXBase.HTMLAttributes<HTMLPToastContainerElement>;
544
2739
  "p-tooltip": LocalJSX.PTooltip & JSXBase.HTMLAttributes<HTMLPTooltipElement>;
545
2740
  }
546
2741
  }