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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (341) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/assets/i18n/page-size-select.i18n.en.json +4 -0
  3. package/dist/assets/i18n/page-size-select.i18n.nl.json +4 -0
  4. package/dist/assets/i18n/table-footer.i18n.en.json +3 -0
  5. package/dist/assets/i18n/table-footer.i18n.nl.json +3 -0
  6. package/dist/assets/i18n/table-header.i18n.en.json +6 -0
  7. package/dist/assets/i18n/table-header.i18n.nl.json +6 -0
  8. package/dist/assets/icons/camera.svg +10 -0
  9. package/dist/build/index.esm.js +1 -0
  10. package/dist/build/p-0436439c.entry.js +1 -0
  11. package/dist/build/{p-e20a1842.entry.js → p-04b7fb67.entry.js} +1 -1
  12. package/dist/build/{p-ec2a5f95.entry.js → p-08ff155d.entry.js} +1 -1
  13. package/dist/build/p-09ea2a1a.js +1 -0
  14. package/dist/build/{p-c27046e6.entry.js → p-0ca1b35a.entry.js} +1 -1
  15. package/dist/build/p-0cf8e23a.entry.js +1 -0
  16. package/dist/build/p-11275959.entry.js +1 -0
  17. package/dist/{paperless/p-a5ebbd0c.entry.js → build/p-1d160328.entry.js} +1 -1
  18. package/dist/build/p-52f0e66c.entry.js +1 -0
  19. package/dist/build/p-5b893ad4.entry.js +1 -0
  20. package/dist/{paperless/p-41b72ca0.entry.js → build/p-5d768271.entry.js} +1 -1
  21. package/dist/build/{p-d32f2578.entry.js → p-5f233f4b.entry.js} +1 -1
  22. package/dist/build/p-6628b145.js +1 -0
  23. package/dist/{paperless/p-f38de980.entry.js → build/p-66b0c60c.entry.js} +1 -1
  24. package/dist/build/{p-8ac8a69d.entry.js → p-677d0647.entry.js} +1 -1
  25. package/dist/build/p-6c60fd3d.js +1 -0
  26. package/dist/{paperless/p-c59d9fc2.entry.js → build/p-721d414a.entry.js} +1 -1
  27. package/dist/build/{p-4336cbbc.entry.js → p-759b427a.entry.js} +1 -1
  28. package/dist/build/{p-bd50db3d.entry.js → p-7febed77.entry.js} +1 -1
  29. package/dist/build/p-8a6728d5.js +1 -0
  30. package/dist/build/{p-8b743795.entry.js → p-954e3737.entry.js} +1 -1
  31. package/dist/build/p-9d0a94fb.entry.js +1 -0
  32. package/dist/build/p-9d9dcf0c.entry.js +1 -0
  33. package/dist/build/p-a3902b42.entry.js +1 -0
  34. package/dist/build/p-a81035d0.js +2 -0
  35. package/dist/build/p-a93693cd.entry.js +1 -0
  36. package/dist/build/{p-42277d1e.entry.js → p-b12f4b10.entry.js} +1 -1
  37. package/dist/{paperless/p-3f6c9d44.entry.js → build/p-b2edfc61.entry.js} +1 -1
  38. package/dist/build/{p-54e0f74b.entry.js → p-b74773de.entry.js} +1 -1
  39. package/dist/{paperless/p-e9e20ac3.entry.js → build/p-cfe0f01b.entry.js} +1 -1
  40. package/dist/{paperless/p-2beaf0e8.entry.js → build/p-d2c6ba5f.entry.js} +1 -1
  41. package/dist/build/{p-f3fda8cd.entry.js → p-e2407e98.entry.js} +1 -1
  42. package/dist/build/p-e56512f0.entry.js +1 -0
  43. package/dist/{paperless/p-b645e414.entry.js → build/p-e633010e.entry.js} +1 -1
  44. package/dist/build/{p-92b6c76c.entry.js → p-ed08c398.entry.js} +1 -1
  45. package/dist/build/{p-1c9fe7e8.entry.js → p-f8fa3f28.entry.js} +1 -1
  46. package/dist/build/{p-c674026d.entry.js → p-f9d3bcb7.entry.js} +1 -1
  47. package/dist/build/paperless.css +101 -0
  48. package/dist/build/paperless.esm.js +1 -1
  49. package/dist/cjs/child-of-e472f812.js +9 -0
  50. package/dist/cjs/constants-a4459ec9.js +7 -0
  51. package/dist/cjs/{index-9d3b51c9.js → index-16bca782.js} +27 -34
  52. package/dist/cjs/index.cjs.js +12 -0
  53. package/dist/cjs/loader.cjs.js +2 -2
  54. package/dist/cjs/localization-791c9a22.js +61 -0
  55. package/dist/cjs/object-get-by-path-6dc21ed5.js +12 -0
  56. package/dist/cjs/p-accordion.cjs.entry.js +1 -1
  57. package/dist/cjs/p-avatar-group.cjs.entry.js +1 -1
  58. package/dist/cjs/p-avatar.cjs.entry.js +1 -1
  59. package/dist/cjs/p-button_3.cjs.entry.js +95 -78
  60. package/dist/cjs/p-card-body.cjs.entry.js +1 -1
  61. package/dist/cjs/p-card-container.cjs.entry.js +1 -1
  62. package/dist/cjs/p-card-header.cjs.entry.js +1 -1
  63. package/dist/cjs/p-content-slider.cjs.entry.js +1 -1
  64. package/dist/cjs/p-counter.cjs.entry.js +1 -1
  65. package/dist/cjs/p-divider.cjs.entry.js +2 -2
  66. package/dist/cjs/p-dropdown-menu-item_4.cjs.entry.js +264 -0
  67. package/dist/cjs/p-dropdown_2.cjs.entry.js +163 -0
  68. package/dist/cjs/p-helper_5.cjs.entry.js +138 -0
  69. package/dist/cjs/p-illustration.cjs.entry.js +1 -1
  70. package/dist/cjs/p-info-panel.cjs.entry.js +1 -1
  71. package/dist/cjs/p-layout.cjs.entry.js +1 -1
  72. package/dist/cjs/p-modal-backdrop_5.cjs.entry.js +1 -1
  73. package/dist/cjs/p-modal.cjs.entry.js +1 -1
  74. package/dist/cjs/p-navbar.cjs.entry.js +1 -1
  75. package/dist/cjs/p-navigation-item.cjs.entry.js +1 -1
  76. package/dist/cjs/p-profile.cjs.entry.js +1 -1
  77. package/dist/cjs/p-slider-indicator.cjs.entry.js +1 -1
  78. package/dist/cjs/p-status.cjs.entry.js +1 -1
  79. package/dist/cjs/p-stepper-item_2.cjs.entry.js +1 -1
  80. package/dist/cjs/p-stepper.cjs.entry.js +1 -1
  81. package/dist/cjs/p-tab-group.cjs.entry.js +1 -1
  82. package/dist/cjs/p-tab-item.cjs.entry.js +1 -1
  83. package/dist/cjs/p-table-body.cjs.entry.js +19 -0
  84. package/dist/cjs/p-table-container_4.cjs.entry.js +1067 -0
  85. package/dist/cjs/p-table-definition.cjs.entry.js +36 -0
  86. package/dist/cjs/p-table.cjs.entry.js +328 -0
  87. package/dist/cjs/p-tooltip.cjs.entry.js +2 -2
  88. package/dist/cjs/paperless.cjs.js +2 -2
  89. package/dist/collection/assets/icons/camera.svg +10 -0
  90. package/dist/collection/collection-manifest.json +9 -1
  91. package/dist/collection/components/atoms/button/button.component.css +19 -7
  92. package/dist/collection/components/atoms/button/button.component.js +29 -5
  93. package/dist/collection/components/atoms/divider/divider.component.css +1 -1
  94. package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.css +2 -2
  95. package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.css +1 -1
  96. package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js +1 -1
  97. package/dist/collection/components/atoms/helper/helper.component.css +1 -1
  98. package/dist/collection/components/atoms/icon/icon.component.css +1 -1
  99. package/dist/collection/components/atoms/icon/icon.component.js +3 -3
  100. package/dist/collection/components/atoms/loader/loader.component.css +1 -1
  101. package/dist/collection/components/atoms/pagination-item/pagination-item.component.css +1 -1
  102. package/dist/collection/components/atoms/segment-container/segment-container.component.css +1 -1
  103. package/dist/collection/components/atoms/segment-item/segment-item.component.css +1 -1
  104. package/dist/collection/components/atoms/segment-item/segment-item.component.js +2 -2
  105. package/dist/collection/components/atoms/status/status.component.js +2 -2
  106. package/dist/collection/components/atoms/table-body/table-body.component.css +3 -0
  107. package/dist/collection/components/atoms/table-body/table-body.component.js +15 -0
  108. package/dist/collection/components/atoms/table-container/table-container.component.css +5 -0
  109. package/dist/collection/components/atoms/table-container/table-container.component.js +15 -0
  110. package/dist/collection/components/atoms/tag/tag.component.css +1 -1
  111. package/dist/collection/components/atoms/tooltip/tooltip.component.css +1 -1
  112. package/dist/collection/components/helpers/table-definition/table-definition.component.js +159 -0
  113. package/dist/collection/components/molecules/dropdown/dropdown.component.css +1 -1
  114. package/dist/collection/components/molecules/dropdown/dropdown.component.js +45 -2
  115. package/dist/collection/components/molecules/input-group/input-group.component.css +72 -1
  116. package/dist/collection/components/molecules/input-group/input-group.component.js +36 -5
  117. package/dist/collection/components/molecules/navigation-item/navigation-item.component.js +1 -1
  118. package/dist/collection/components/molecules/page-size-select/constants.js +2 -0
  119. package/dist/collection/components/molecules/page-size-select/page-size-select.component.js +195 -0
  120. package/dist/collection/components/molecules/pagination/pagination.component.css +1 -1
  121. package/dist/collection/components/molecules/pagination/pagination.component.js +25 -3
  122. package/dist/collection/components/molecules/table-footer/table-footer.component.css +30 -0
  123. package/dist/collection/components/molecules/table-footer/table-footer.component.js +244 -0
  124. package/dist/collection/components/molecules/table-header/table-header.component.css +16 -0
  125. package/dist/collection/components/molecules/table-header/table-header.component.js +368 -0
  126. package/dist/collection/components/molecules/table-row/table-row.component.css +21 -0
  127. package/dist/collection/components/molecules/table-row/table-row.component.js +67 -0
  128. package/dist/collection/components/organisms/table/table.component.css +3 -0
  129. package/dist/collection/components/organisms/table/table.component.js +879 -0
  130. package/dist/collection/index.js +2 -1
  131. package/dist/collection/types/index.js +2 -0
  132. package/dist/collection/{utils/types.js → types/table.js} +0 -0
  133. package/dist/collection/types/tailwind.js +1 -0
  134. package/dist/collection/utils/icons.js +2 -0
  135. package/dist/collection/utils/index.js +5 -0
  136. package/dist/collection/utils/localization.js +56 -0
  137. package/dist/collection/utils/object-get-by-path.js +8 -0
  138. package/dist/components/button.component.js +9 -3
  139. package/dist/components/divider.component.js +1 -1
  140. package/dist/components/dropdown-menu-container.component.js +1 -1
  141. package/dist/components/dropdown-menu-item.component.js +43 -0
  142. package/dist/components/dropdown.component.js +15 -5
  143. package/dist/components/helper.component.js +1 -1
  144. package/dist/components/icon.component.js +13 -1
  145. package/dist/components/index.d.ts +8 -0
  146. package/dist/components/index.js +10 -0
  147. package/dist/components/input-group.component.js +107 -0
  148. package/dist/components/loader.component.js +1 -1
  149. package/dist/components/localization.js +58 -0
  150. package/dist/components/p-dropdown-menu-item.js +1 -41
  151. package/dist/components/p-input-group.js +1 -91
  152. package/dist/components/p-page-size-select.d.ts +11 -0
  153. package/dist/components/p-page-size-select.js +6 -0
  154. package/dist/components/p-pagination.js +1 -195
  155. package/dist/components/p-segment-container.js +1 -27
  156. package/dist/components/p-segment-item.js +1 -49
  157. package/dist/components/p-table-body.d.ts +11 -0
  158. package/dist/components/p-table-body.js +33 -0
  159. package/dist/components/p-table-container.d.ts +11 -0
  160. package/dist/components/p-table-container.js +6 -0
  161. package/dist/components/p-table-definition.d.ts +11 -0
  162. package/dist/components/p-table-definition.js +57 -0
  163. package/dist/components/p-table-footer.d.ts +11 -0
  164. package/dist/components/p-table-footer.js +6 -0
  165. package/dist/components/p-table-header.d.ts +11 -0
  166. package/dist/components/p-table-header.js +6 -0
  167. package/dist/components/p-table-row.d.ts +11 -0
  168. package/dist/components/p-table-row.js +6 -0
  169. package/dist/components/p-table.d.ts +11 -0
  170. package/dist/components/p-table.js +492 -0
  171. package/dist/components/p-tag.js +1 -39
  172. package/dist/components/page-size-select.component.js +118 -0
  173. package/dist/components/pagination-item.component.js +1 -1
  174. package/dist/components/pagination.component.js +202 -0
  175. package/dist/components/segment-container.component.js +29 -0
  176. package/dist/components/segment-item.component.js +51 -0
  177. package/dist/components/table-container.component.js +30 -0
  178. package/dist/components/table-footer.component.js +139 -0
  179. package/dist/components/table-header.component.js +1050 -0
  180. package/dist/components/table-row.component.js +49 -0
  181. package/dist/components/tag.component.js +41 -0
  182. package/dist/components/tooltip.component.js +1 -1
  183. package/dist/esm/child-of-90a8c4b5.js +7 -0
  184. package/dist/esm/constants-826f9460.js +4 -0
  185. package/dist/esm/{index-9062156b.js → index-1ac329a8.js} +27 -34
  186. package/dist/esm/index.js +3 -1
  187. package/dist/esm/loader.js +2 -2
  188. package/dist/esm/localization-550c043d.js +58 -0
  189. package/dist/esm/object-get-by-path-d6427a61.js +10 -0
  190. package/dist/esm/p-accordion.entry.js +1 -1
  191. package/dist/esm/p-avatar-group.entry.js +1 -1
  192. package/dist/esm/p-avatar.entry.js +1 -1
  193. package/dist/esm/p-button_3.entry.js +95 -78
  194. package/dist/esm/p-card-body.entry.js +1 -1
  195. package/dist/esm/p-card-container.entry.js +1 -1
  196. package/dist/esm/p-card-header.entry.js +1 -1
  197. package/dist/esm/p-content-slider.entry.js +1 -1
  198. package/dist/esm/p-counter.entry.js +1 -1
  199. package/dist/esm/p-divider.entry.js +2 -2
  200. package/dist/esm/p-dropdown-menu-item_4.entry.js +257 -0
  201. package/dist/esm/p-dropdown_2.entry.js +158 -0
  202. package/dist/esm/p-helper_5.entry.js +130 -0
  203. package/dist/esm/p-illustration.entry.js +1 -1
  204. package/dist/esm/p-info-panel.entry.js +1 -1
  205. package/dist/esm/p-layout.entry.js +1 -1
  206. package/dist/esm/p-modal-backdrop_5.entry.js +1 -1
  207. package/dist/esm/p-modal.entry.js +1 -1
  208. package/dist/esm/p-navbar.entry.js +1 -1
  209. package/dist/esm/p-navigation-item.entry.js +1 -1
  210. package/dist/esm/p-profile.entry.js +1 -1
  211. package/dist/esm/p-slider-indicator.entry.js +1 -1
  212. package/dist/esm/p-status.entry.js +1 -1
  213. package/dist/esm/p-stepper-item_2.entry.js +1 -1
  214. package/dist/esm/p-stepper.entry.js +1 -1
  215. package/dist/esm/p-tab-group.entry.js +1 -1
  216. package/dist/esm/p-tab-item.entry.js +1 -1
  217. package/dist/esm/p-table-body.entry.js +15 -0
  218. package/dist/esm/p-table-container_4.entry.js +1060 -0
  219. package/dist/esm/p-table-definition.entry.js +32 -0
  220. package/dist/esm/p-table.entry.js +324 -0
  221. package/dist/esm/p-tooltip.entry.js +2 -2
  222. package/dist/esm/paperless.js +2 -2
  223. package/dist/index.html +1 -1
  224. package/dist/paperless/index.esm.js +1 -0
  225. package/dist/paperless/p-0436439c.entry.js +1 -0
  226. package/dist/paperless/{p-e20a1842.entry.js → p-04b7fb67.entry.js} +1 -1
  227. package/dist/paperless/{p-ec2a5f95.entry.js → p-08ff155d.entry.js} +1 -1
  228. package/dist/paperless/p-09ea2a1a.js +1 -0
  229. package/dist/paperless/{p-c27046e6.entry.js → p-0ca1b35a.entry.js} +1 -1
  230. package/dist/paperless/p-0cf8e23a.entry.js +1 -0
  231. package/dist/paperless/p-11275959.entry.js +1 -0
  232. package/dist/{build/p-a5ebbd0c.entry.js → paperless/p-1d160328.entry.js} +1 -1
  233. package/dist/paperless/p-52f0e66c.entry.js +1 -0
  234. package/dist/paperless/p-5b893ad4.entry.js +1 -0
  235. package/dist/{build/p-41b72ca0.entry.js → paperless/p-5d768271.entry.js} +1 -1
  236. package/dist/paperless/{p-d32f2578.entry.js → p-5f233f4b.entry.js} +1 -1
  237. package/dist/paperless/p-6628b145.js +1 -0
  238. package/dist/{build/p-f38de980.entry.js → paperless/p-66b0c60c.entry.js} +1 -1
  239. package/dist/paperless/{p-8ac8a69d.entry.js → p-677d0647.entry.js} +1 -1
  240. package/dist/paperless/p-6c60fd3d.js +1 -0
  241. package/dist/{build/p-c59d9fc2.entry.js → paperless/p-721d414a.entry.js} +1 -1
  242. package/dist/paperless/{p-4336cbbc.entry.js → p-759b427a.entry.js} +1 -1
  243. package/dist/paperless/{p-bd50db3d.entry.js → p-7febed77.entry.js} +1 -1
  244. package/dist/paperless/p-8a6728d5.js +1 -0
  245. package/dist/paperless/{p-8b743795.entry.js → p-954e3737.entry.js} +1 -1
  246. package/dist/paperless/p-9d0a94fb.entry.js +1 -0
  247. package/dist/paperless/p-9d9dcf0c.entry.js +1 -0
  248. package/dist/paperless/p-a3902b42.entry.js +1 -0
  249. package/dist/paperless/p-a81035d0.js +2 -0
  250. package/dist/paperless/p-a93693cd.entry.js +1 -0
  251. package/dist/paperless/{p-42277d1e.entry.js → p-b12f4b10.entry.js} +1 -1
  252. package/dist/{build/p-3f6c9d44.entry.js → paperless/p-b2edfc61.entry.js} +1 -1
  253. package/dist/paperless/{p-54e0f74b.entry.js → p-b74773de.entry.js} +1 -1
  254. package/dist/{build/p-e9e20ac3.entry.js → paperless/p-cfe0f01b.entry.js} +1 -1
  255. package/dist/{build/p-2beaf0e8.entry.js → paperless/p-d2c6ba5f.entry.js} +1 -1
  256. package/dist/paperless/{p-f3fda8cd.entry.js → p-e2407e98.entry.js} +1 -1
  257. package/dist/paperless/p-e56512f0.entry.js +1 -0
  258. package/dist/{build/p-b645e414.entry.js → paperless/p-e633010e.entry.js} +1 -1
  259. package/dist/paperless/{p-92b6c76c.entry.js → p-ed08c398.entry.js} +1 -1
  260. package/dist/paperless/{p-1c9fe7e8.entry.js → p-f8fa3f28.entry.js} +1 -1
  261. package/dist/paperless/{p-c674026d.entry.js → p-f9d3bcb7.entry.js} +1 -1
  262. package/dist/paperless/paperless.css +214 -27
  263. package/dist/paperless/paperless.esm.js +1 -1
  264. package/dist/sw.js +1 -1
  265. package/dist/sw.js.map +1 -1
  266. package/dist/types/components/atoms/button/button.component.d.ts +9 -1
  267. package/dist/types/components/atoms/icon/icon.component.d.ts +1 -1
  268. package/dist/types/components/atoms/segment-item/segment-item.component.d.ts +1 -1
  269. package/dist/types/components/atoms/status/status.component.d.ts +1 -1
  270. package/dist/types/components/atoms/table-body/table-body.component.d.ts +3 -0
  271. package/dist/types/components/atoms/table-container/table-container.component.d.ts +3 -0
  272. package/dist/types/components/helpers/table-definition/table-definition.component.d.ts +48 -0
  273. package/dist/types/components/molecules/dropdown/dropdown.component.d.ts +8 -0
  274. package/dist/types/components/molecules/input-group/input-group.component.d.ts +7 -1
  275. package/dist/types/components/molecules/page-size-select/constants.d.ts +2 -0
  276. package/dist/types/components/molecules/page-size-select/page-size-select.component.d.ts +44 -0
  277. package/dist/types/components/molecules/pagination/pagination.component.d.ts +7 -0
  278. package/dist/types/components/molecules/table-footer/table-footer.component.d.ts +55 -0
  279. package/dist/types/components/molecules/table-header/table-header.component.d.ts +80 -0
  280. package/dist/types/components/molecules/table-row/table-row.component.d.ts +11 -0
  281. package/dist/types/components/organisms/table/table.component.d.ts +162 -0
  282. package/dist/types/components.d.ts +677 -1
  283. package/dist/types/index.d.ts +2 -0
  284. package/dist/types/types/index.d.ts +2 -0
  285. package/dist/types/types/table.d.ts +5 -0
  286. package/dist/types/{utils/types.d.ts → types/tailwind.d.ts} +0 -0
  287. package/dist/types/utils/icons.d.ts +1 -0
  288. package/dist/types/utils/index.d.ts +5 -0
  289. package/dist/types/utils/localization.d.ts +2 -0
  290. package/dist/types/utils/object-get-by-path.d.ts +1 -0
  291. package/package.json +4 -4
  292. package/dist/build/p-4deee897.entry.js +0 -1
  293. package/dist/build/p-58ce5668.entry.js +0 -1
  294. package/dist/build/p-6088647a.entry.js +0 -1
  295. package/dist/build/p-6835a9e3.entry.js +0 -1
  296. package/dist/build/p-705ab6e5.entry.js +0 -1
  297. package/dist/build/p-79d3258f.entry.js +0 -1
  298. package/dist/build/p-801d05b6.entry.js +0 -1
  299. package/dist/build/p-829c4101.entry.js +0 -1
  300. package/dist/build/p-938f52ee.entry.js +0 -1
  301. package/dist/build/p-9d98d0d9.entry.js +0 -1
  302. package/dist/build/p-a9e333cc.entry.js +0 -1
  303. package/dist/build/p-bc7e8cc4.js +0 -2
  304. package/dist/build/p-e2a98d53.entry.js +0 -1
  305. package/dist/build/p-e934ef94.entry.js +0 -1
  306. package/dist/cjs/p-dropdown-menu-container.cjs.entry.js +0 -19
  307. package/dist/cjs/p-dropdown-menu-item.cjs.entry.js +0 -23
  308. package/dist/cjs/p-dropdown.cjs.entry.js +0 -147
  309. package/dist/cjs/p-helper.cjs.entry.js +0 -23
  310. package/dist/cjs/p-input-group.cjs.entry.js +0 -51
  311. package/dist/cjs/p-pagination-item.cjs.entry.js +0 -23
  312. package/dist/cjs/p-pagination.cjs.entry.js +0 -171
  313. package/dist/cjs/p-segment-container.cjs.entry.js +0 -19
  314. package/dist/cjs/p-segment-item.cjs.entry.js +0 -29
  315. package/dist/cjs/p-tag.cjs.entry.js +0 -27
  316. package/dist/collection/utils/utils.js +0 -3
  317. package/dist/esm/p-dropdown-menu-container.entry.js +0 -15
  318. package/dist/esm/p-dropdown-menu-item.entry.js +0 -19
  319. package/dist/esm/p-dropdown.entry.js +0 -143
  320. package/dist/esm/p-helper.entry.js +0 -19
  321. package/dist/esm/p-input-group.entry.js +0 -47
  322. package/dist/esm/p-pagination-item.entry.js +0 -19
  323. package/dist/esm/p-pagination.entry.js +0 -167
  324. package/dist/esm/p-segment-container.entry.js +0 -15
  325. package/dist/esm/p-segment-item.entry.js +0 -25
  326. package/dist/esm/p-tag.entry.js +0 -23
  327. package/dist/paperless/p-4deee897.entry.js +0 -1
  328. package/dist/paperless/p-58ce5668.entry.js +0 -1
  329. package/dist/paperless/p-6088647a.entry.js +0 -1
  330. package/dist/paperless/p-6835a9e3.entry.js +0 -1
  331. package/dist/paperless/p-705ab6e5.entry.js +0 -1
  332. package/dist/paperless/p-79d3258f.entry.js +0 -1
  333. package/dist/paperless/p-801d05b6.entry.js +0 -1
  334. package/dist/paperless/p-829c4101.entry.js +0 -1
  335. package/dist/paperless/p-938f52ee.entry.js +0 -1
  336. package/dist/paperless/p-9d98d0d9.entry.js +0 -1
  337. package/dist/paperless/p-a9e333cc.entry.js +0 -1
  338. package/dist/paperless/p-bc7e8cc4.js +0 -2
  339. package/dist/paperless/p-e2a98d53.entry.js +0 -1
  340. package/dist/paperless/p-e934ef94.entry.js +0 -1
  341. package/dist/types/utils/utils.d.ts +0 -1
@@ -0,0 +1,264 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-16bca782.js');
6
+ const localization = require('./localization-791c9a22.js');
7
+ const constants = require('./constants-a4459ec9.js');
8
+
9
+ const dropdownMenuItemComponentCss = ".visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!important}.bottom-0{bottom:0!important}.left-0{left:0!important}.m-0{margin:0!important}.ml-1{margin-left:.25rem!important}.block{display:block!important}.flex{display:flex!important}.table{display:table!important}.hidden{display:none!important}.h-8{height:2rem!important}.w-full{width:100%!important}.w-1{width:.25rem!important}.w-2{width:.5rem!important}.w-3{width:.75rem!important}.w-4{width:1rem!important}.w-5{width:1.25rem!important}.w-6{width:1.5rem!important}.w-7{width:1.75rem!important}.w-8{width:2rem!important}.w-9{width:2.25rem!important}.w-10{width:2.5rem!important}.w-11{width:2.75rem!important}.w-auto{width:auto!important}.rotate-0{--tw-rotate:0deg!important}.rotate-0,.rotate-25{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.rotate-25{--tw-rotate:25deg!important}.rotate-45{--tw-rotate:45deg!important}.rotate-45,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.rotate-90{--tw-rotate:90deg!important}.rotate-135{--tw-rotate:135deg!important}.rotate-135,.rotate-180{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.rotate-180{--tw-rotate:180deg!important}.rotate-225{--tw-rotate:225deg!important}.rotate-225,.rotate-270{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.rotate-270{--tw-rotate:270deg!important}.rotate-315{--tw-rotate:315deg!important}.-rotate-0,.rotate-315{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-rotate-0{--tw-rotate:-0deg!important}.-rotate-25{--tw-rotate:-25deg!important}.-rotate-25,.-rotate-45{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-rotate-45{--tw-rotate:-45deg!important}.-rotate-90{--tw-rotate:-90deg!important}.-rotate-135,.-rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-rotate-135{--tw-rotate:-135deg!important}.-rotate-180{--tw-rotate:-180deg!important}.-rotate-180,.-rotate-225{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-rotate-225{--tw-rotate:-225deg!important}.-rotate-270{--tw-rotate:-270deg!important}.-rotate-270,.-rotate-315{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-rotate-315{--tw-rotate:-315deg!important}.scale-x-flip{--tw-scale-x:-1!important}.scale-x-flip,.scale-y-flip{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.scale-y-flip{--tw-scale-y:-1!important}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.flex-col{flex-direction:column!important}.items-center{align-items:center!important}.justify-start{justify-content:flex-start!important}.justify-end{justify-content:flex-end!important}.justify-center{justify-content:center!important}.gap-4{gap:1rem!important}.justify-self-end{justify-self:end!important}.rounded{border-radius:.25rem!important}.border{border-width:1px!important}.border-solid{border-style:solid!important}.border-transparent{border-color:transparent!important}.border-t-mystic-dark{--tw-border-opacity:1!important;border-top-color:rgb(218 230 240/var(--tw-border-opacity))!important}.bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity))!important}.p-4{padding:1rem!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-xxs{font-size:.6875rem!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.text-base{font-size:1rem!important;line-height:1.5rem!important}.text-lg{font-size:1.125rem!important}.text-lg,.text-xl{line-height:1.75rem!important}.text-xl{font-size:1.25rem!important}.text-2xl{font-size:1.5rem!important;line-height:2rem!important}.text-3xl{font-size:1.875rem!important;line-height:2.25rem!important}.text-4xl{font-size:2.25rem!important;line-height:2.5rem!important}.text-5xl{font-size:3rem!important}.text-5xl,.text-6xl{line-height:1!important}.text-6xl{font-size:3.75rem!important}.font-semibold{font-weight:600!important}.text-storm{--tw-text-opacity:1!important;color:rgb(81 83 107/var(--tw-text-opacity))!important}.text-indigo{color:rgb(82 138 250/var(--tw-text-opacity))!important}.text-indigo,.text-storm-dark{--tw-text-opacity:1!important}.text-storm-dark{color:rgb(39 40 56/var(--tw-text-opacity))!important}.blur{--tw-blur:blur(8px)!important}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}*{box-sizing:border-box}:host{--tw-text-opacity:1;align-items:center;border-radius:.25rem;color:rgb(81 83 107/var(--tw-text-opacity));cursor:pointer;display:flex;font-size:.875rem;font-weight:600;gap:.5rem;height:2rem;line-height:1.25rem;padding-left:.5rem;padding-right:.5rem;width:100%}:host(:hover){--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity));color:rgb(81 83 107/var(--tw-text-opacity))}:host(.active){--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity));color:rgb(82 138 250/var(--tw-text-opacity))}.w-1\\/12{width:8.333333%!important}.w-2\\/12{width:16.666667%!important}.w-3\\/12{width:25%!important}.w-4\\/12{width:33.333333%!important}.w-5\\/12{width:41.666667%!important}.w-6\\/12{width:50%!important}.w-7\\/12{width:58.333333%!important}.w-8\\/12{width:66.666667%!important}.w-9\\/12{width:75%!important}.w-10\\/12{width:83.333333%!important}.w-11\\/12{width:91.666667%!important}@media (min-width:40rem){.tablet\\:w-1\\/12{width:8.333333%!important}.tablet\\:w-2\\/12{width:16.666667%!important}.tablet\\:w-3\\/12{width:25%!important}.tablet\\:w-4\\/12{width:33.333333%!important}.tablet\\:w-5\\/12{width:41.666667%!important}.tablet\\:w-6\\/12{width:50%!important}.tablet\\:w-7\\/12{width:58.333333%!important}.tablet\\:w-8\\/12{width:66.666667%!important}.tablet\\:w-9\\/12{width:75%!important}.tablet\\:w-10\\/12{width:83.333333%!important}.tablet\\:w-11\\/12{width:91.666667%!important}}@media (min-width:64rem){.desktop-xs\\:w-1\\/12{width:8.333333%!important}.desktop-xs\\:w-2\\/12{width:16.666667%!important}.desktop-xs\\:w-3\\/12{width:25%!important}.desktop-xs\\:w-4\\/12{width:33.333333%!important}.desktop-xs\\:w-5\\/12{width:41.666667%!important}.desktop-xs\\:w-6\\/12{width:50%!important}.desktop-xs\\:w-7\\/12{width:58.333333%!important}.desktop-xs\\:w-8\\/12{width:66.666667%!important}.desktop-xs\\:w-9\\/12{width:75%!important}.desktop-xs\\:w-10\\/12{width:83.333333%!important}.desktop-xs\\:w-11\\/12{width:91.666667%!important}}@media (min-width:80rem){.desktop-sm\\:w-1\\/12{width:8.333333%!important}.desktop-sm\\:w-2\\/12{width:16.666667%!important}.desktop-sm\\:w-3\\/12{width:25%!important}.desktop-sm\\:w-4\\/12{width:33.333333%!important}.desktop-sm\\:w-5\\/12{width:41.666667%!important}.desktop-sm\\:w-6\\/12{width:50%!important}.desktop-sm\\:w-7\\/12{width:58.333333%!important}.desktop-sm\\:w-8\\/12{width:66.666667%!important}.desktop-sm\\:w-9\\/12{width:75%!important}.desktop-sm\\:w-10\\/12{width:83.333333%!important}.desktop-sm\\:w-11\\/12{width:91.666667%!important}}@media (min-width:85.375rem){.desktop\\:w-1\\/12{width:8.333333%!important}.desktop\\:w-2\\/12{width:16.666667%!important}.desktop\\:w-3\\/12{width:25%!important}.desktop\\:w-4\\/12{width:33.333333%!important}.desktop\\:w-5\\/12{width:41.666667%!important}.desktop\\:w-6\\/12{width:50%!important}.desktop\\:w-7\\/12{width:58.333333%!important}.desktop\\:w-8\\/12{width:66.666667%!important}.desktop\\:w-9\\/12{width:75%!important}.desktop\\:w-10\\/12{width:83.333333%!important}.desktop\\:w-11\\/12{width:91.666667%!important}}@media (min-width:90rem){.desktop-lg\\:w-1\\/12{width:8.333333%!important}.desktop-lg\\:w-2\\/12{width:16.666667%!important}.desktop-lg\\:w-3\\/12{width:25%!important}.desktop-lg\\:w-4\\/12{width:33.333333%!important}.desktop-lg\\:w-5\\/12{width:41.666667%!important}.desktop-lg\\:w-6\\/12{width:50%!important}.desktop-lg\\:w-7\\/12{width:58.333333%!important}.desktop-lg\\:w-8\\/12{width:66.666667%!important}.desktop-lg\\:w-9\\/12{width:75%!important}.desktop-lg\\:w-10\\/12{width:83.333333%!important}.desktop-lg\\:w-11\\/12{width:91.666667%!important}}@media (min-width:120rem){.desktop-xl\\:w-1\\/12{width:8.333333%!important}.desktop-xl\\:w-2\\/12{width:16.666667%!important}.desktop-xl\\:w-3\\/12{width:25%!important}.desktop-xl\\:w-4\\/12{width:33.333333%!important}.desktop-xl\\:w-5\\/12{width:41.666667%!important}.desktop-xl\\:w-6\\/12{width:50%!important}.desktop-xl\\:w-7\\/12{width:58.333333%!important}.desktop-xl\\:w-8\\/12{width:66.666667%!important}.desktop-xl\\:w-9\\/12{width:75%!important}.desktop-xl\\:w-10\\/12{width:83.333333%!important}.desktop-xl\\:w-11\\/12{width:91.666667%!important}}@media (min-width:64rem){.desktop-xs\\:flex{display:flex!important}.desktop-xs\\:hidden{display:none!important}.desktop-xs\\:w-auto{width:auto!important}.desktop-xs\\:flex-row{flex-direction:row!important}}.-rotate-0,.-rotate-135,.-rotate-180,.-rotate-225,.-rotate-25,.-rotate-270,.-rotate-315,.-rotate-45,.-rotate-90,.rotate-0,.rotate-135,.rotate-180,.rotate-225,.rotate-25,.rotate-270,.rotate-315,.rotate-45,.rotate-90,.scale-x-flip,.scale-y-flip{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}";
10
+
11
+ const DropdownMenuItem = class {
12
+ constructor(hostRef) {
13
+ index.registerInstance(this, hostRef);
14
+ /**
15
+ * Wether the dropdown menu item is active
16
+ */
17
+ this.active = false;
18
+ }
19
+ render() {
20
+ return (index.h(index.Host, { class: `p-dropdown-menu-item ${this.active && 'active'}` }, this.icon && index.h("p-icon", { variant: this.icon }), index.h("slot", null)));
21
+ }
22
+ };
23
+ DropdownMenuItem.style = dropdownMenuItemComponentCss;
24
+
25
+ const PageSizeSelect = class {
26
+ constructor(hostRef) {
27
+ index.registerInstance(this, hostRef);
28
+ this.sizeChange = index.createEvent(this, "sizeChange", 7);
29
+ /**
30
+ * The current page
31
+ */
32
+ this.size = constants.defaultSize;
33
+ /**
34
+ * The available sizes
35
+ */
36
+ this.sizeOptions = constants.defaultSizeOptions;
37
+ /**
38
+ * Chevron position
39
+ */
40
+ this.chevronPosition = 'start';
41
+ /**
42
+ * The size of the button
43
+ */
44
+ this.buttonSize = 'small';
45
+ /**
46
+ * The template for the data view
47
+ */
48
+ this.buttonTemplate = (size) => localization.formatTranslation(this._locales.button, { size });
49
+ /**
50
+ * The template for the data view
51
+ */
52
+ this.itemTemplate = (size) => localization.formatTranslation(this._locales.item, { size });
53
+ /**
54
+ * Locales used for this component
55
+ */
56
+ this._locales = {};
57
+ }
58
+ componentWillLoad() {
59
+ this._setLocales();
60
+ }
61
+ render() {
62
+ return (index.h(index.Host, { class: "p-page-size-select" }, index.h("p-dropdown", { placement: "top-start", chevronPosition: this.chevronPosition, chevronDirection: "down" }, index.h("p-button", { variant: "secondary", slot: "trigger", size: this.buttonSize }, this.buttonTemplate(this.size)), index.h("slot", { slot: "items" }, this.sizeOptions.map((option) => (index.h("p-dropdown-menu-item", { active: option === this.size, onClick: () => this._changeSize(option) }, this.itemTemplate(option))))))));
63
+ }
64
+ async _setLocales() {
65
+ this._locales = await localization.getLocaleComponentStrings(this._el);
66
+ }
67
+ _changeSize(s) {
68
+ if (!s) {
69
+ return;
70
+ }
71
+ this.size = s;
72
+ this.sizeChange.emit(this.size);
73
+ }
74
+ get _el() { return index.getElement(this); }
75
+ };
76
+
77
+ const paginationComponentCss = ".visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!important}.bottom-0{bottom:0!important}.left-0{left:0!important}.m-0{margin:0!important}.ml-1{margin-left:.25rem!important}.block{display:block!important}.flex{display:flex!important}.table{display:table!important}.hidden{display:none!important}.w-1{width:.25rem!important}.w-2{width:.5rem!important}.w-3{width:.75rem!important}.w-4{width:1rem!important}.w-5{width:1.25rem!important}.w-6{width:1.5rem!important}.w-7{width:1.75rem!important}.w-8{width:2rem!important}.w-9{width:2.25rem!important}.w-10{width:2.5rem!important}.w-11{width:2.75rem!important}.w-auto{width:auto!important}.w-full{width:100%!important}.flex-col{flex-direction:column!important}.items-center{align-items:center!important}.justify-start{justify-content:flex-start!important}.justify-end{justify-content:flex-end!important}.justify-center{justify-content:center!important}.gap-4{gap:1rem!important}.justify-self-end{justify-self:end!important}.border{border-width:1px!important}.border-solid{border-style:solid!important}.border-transparent{border-color:transparent!important}.border-t-mystic-dark{--tw-border-opacity:1!important;border-top-color:rgb(218 230 240/var(--tw-border-opacity))!important}.bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity))!important}.p-4{padding:1rem!important}.font-semibold{font-weight:600!important}.text-storm-dark{--tw-text-opacity:1!important;color:rgb(39 40 56/var(--tw-text-opacity))!important}.blur{--tw-blur:blur(8px)!important}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}*{box-sizing:border-box}p-pagination{display:flex}.w-1\\/12{width:8.333333%!important}.w-2\\/12{width:16.666667%!important}.w-3\\/12{width:25%!important}.w-4\\/12{width:33.333333%!important}.w-5\\/12{width:41.666667%!important}.w-6\\/12{width:50%!important}.w-7\\/12{width:58.333333%!important}.w-8\\/12{width:66.666667%!important}.w-9\\/12{width:75%!important}.w-10\\/12{width:83.333333%!important}.w-11\\/12{width:91.666667%!important}@media (min-width:40rem){.tablet\\:w-1\\/12{width:8.333333%!important}.tablet\\:w-2\\/12{width:16.666667%!important}.tablet\\:w-3\\/12{width:25%!important}.tablet\\:w-4\\/12{width:33.333333%!important}.tablet\\:w-5\\/12{width:41.666667%!important}.tablet\\:w-6\\/12{width:50%!important}.tablet\\:w-7\\/12{width:58.333333%!important}.tablet\\:w-8\\/12{width:66.666667%!important}.tablet\\:w-9\\/12{width:75%!important}.tablet\\:w-10\\/12{width:83.333333%!important}.tablet\\:w-11\\/12{width:91.666667%!important}}@media (min-width:64rem){.desktop-xs\\:w-1\\/12{width:8.333333%!important}.desktop-xs\\:w-2\\/12{width:16.666667%!important}.desktop-xs\\:w-3\\/12{width:25%!important}.desktop-xs\\:w-4\\/12{width:33.333333%!important}.desktop-xs\\:w-5\\/12{width:41.666667%!important}.desktop-xs\\:w-6\\/12{width:50%!important}.desktop-xs\\:w-7\\/12{width:58.333333%!important}.desktop-xs\\:w-8\\/12{width:66.666667%!important}.desktop-xs\\:w-9\\/12{width:75%!important}.desktop-xs\\:w-10\\/12{width:83.333333%!important}.desktop-xs\\:w-11\\/12{width:91.666667%!important}}@media (min-width:80rem){.desktop-sm\\:w-1\\/12{width:8.333333%!important}.desktop-sm\\:w-2\\/12{width:16.666667%!important}.desktop-sm\\:w-3\\/12{width:25%!important}.desktop-sm\\:w-4\\/12{width:33.333333%!important}.desktop-sm\\:w-5\\/12{width:41.666667%!important}.desktop-sm\\:w-6\\/12{width:50%!important}.desktop-sm\\:w-7\\/12{width:58.333333%!important}.desktop-sm\\:w-8\\/12{width:66.666667%!important}.desktop-sm\\:w-9\\/12{width:75%!important}.desktop-sm\\:w-10\\/12{width:83.333333%!important}.desktop-sm\\:w-11\\/12{width:91.666667%!important}}@media (min-width:85.375rem){.desktop\\:w-1\\/12{width:8.333333%!important}.desktop\\:w-2\\/12{width:16.666667%!important}.desktop\\:w-3\\/12{width:25%!important}.desktop\\:w-4\\/12{width:33.333333%!important}.desktop\\:w-5\\/12{width:41.666667%!important}.desktop\\:w-6\\/12{width:50%!important}.desktop\\:w-7\\/12{width:58.333333%!important}.desktop\\:w-8\\/12{width:66.666667%!important}.desktop\\:w-9\\/12{width:75%!important}.desktop\\:w-10\\/12{width:83.333333%!important}.desktop\\:w-11\\/12{width:91.666667%!important}}@media (min-width:90rem){.desktop-lg\\:w-1\\/12{width:8.333333%!important}.desktop-lg\\:w-2\\/12{width:16.666667%!important}.desktop-lg\\:w-3\\/12{width:25%!important}.desktop-lg\\:w-4\\/12{width:33.333333%!important}.desktop-lg\\:w-5\\/12{width:41.666667%!important}.desktop-lg\\:w-6\\/12{width:50%!important}.desktop-lg\\:w-7\\/12{width:58.333333%!important}.desktop-lg\\:w-8\\/12{width:66.666667%!important}.desktop-lg\\:w-9\\/12{width:75%!important}.desktop-lg\\:w-10\\/12{width:83.333333%!important}.desktop-lg\\:w-11\\/12{width:91.666667%!important}}@media (min-width:120rem){.desktop-xl\\:w-1\\/12{width:8.333333%!important}.desktop-xl\\:w-2\\/12{width:16.666667%!important}.desktop-xl\\:w-3\\/12{width:25%!important}.desktop-xl\\:w-4\\/12{width:33.333333%!important}.desktop-xl\\:w-5\\/12{width:41.666667%!important}.desktop-xl\\:w-6\\/12{width:50%!important}.desktop-xl\\:w-7\\/12{width:58.333333%!important}.desktop-xl\\:w-8\\/12{width:66.666667%!important}.desktop-xl\\:w-9\\/12{width:75%!important}.desktop-xl\\:w-10\\/12{width:83.333333%!important}.desktop-xl\\:w-11\\/12{width:91.666667%!important}}@media (min-width:64rem){.desktop-xs\\:flex{display:flex!important}.desktop-xs\\:hidden{display:none!important}.desktop-xs\\:w-auto{width:auto!important}.desktop-xs\\:flex-row{flex-direction:row!important}}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}";
78
+
79
+ const Pagination = class {
80
+ constructor(hostRef) {
81
+ index.registerInstance(this, hostRef);
82
+ this.pageChange = index.createEvent(this, "pageChange", 7);
83
+ /**
84
+ * The current page
85
+ */
86
+ this.page = 1;
87
+ /**
88
+ * The amount of items per page
89
+ */
90
+ this.pageSize = 12;
91
+ /**
92
+ * Wether to hide when there is only 1 page available
93
+ */
94
+ this.hideOnSinglePage = false;
95
+ this._pages = [];
96
+ this._set = [];
97
+ this._nextClick = () => {
98
+ const nextPage = this.page + 1;
99
+ if (nextPage > this._pages[this._pages.length - 1]) {
100
+ return;
101
+ }
102
+ this._changePage(nextPage);
103
+ };
104
+ this._pageClick = (p) => this._changePage(p);
105
+ this._generateSet = (range = 1, enableBoundaries = true) => {
106
+ const totalPages = this._pages.length;
107
+ if (!totalPages) {
108
+ return [];
109
+ }
110
+ let start = this.page - range;
111
+ let end = this.page + range;
112
+ if (end > totalPages) {
113
+ end = totalPages;
114
+ start = totalPages - range * 2;
115
+ start = start < 1 ? 1 : start;
116
+ }
117
+ if (start <= 1) {
118
+ start = 1;
119
+ end = Math.min(range * 2 + 1, totalPages);
120
+ }
121
+ const set = [];
122
+ const previous = {
123
+ type: 'previous',
124
+ value: index.h("p-icon", { variant: "chevron", rotate: 90 }),
125
+ };
126
+ const next = {
127
+ type: 'next',
128
+ value: index.h("p-icon", { variant: "chevron", rotate: -90 }),
129
+ };
130
+ // Disable page range, display all the pages
131
+ if (range === null) {
132
+ const p = this._pages.map((p) => ({
133
+ type: 'page',
134
+ value: p,
135
+ }));
136
+ return enableBoundaries ? [previous, ...p, next] : p;
137
+ }
138
+ if (enableBoundaries) {
139
+ set.push(previous);
140
+ }
141
+ if (start <= 3) {
142
+ for (let i = 1; i < start; i++) {
143
+ set.push({
144
+ type: 'page',
145
+ value: this._pages[i - 1],
146
+ });
147
+ }
148
+ }
149
+ else {
150
+ set.push({
151
+ type: 'page',
152
+ value: 1,
153
+ });
154
+ set.push({
155
+ type: 'ellipsis',
156
+ value: 'ellipsis',
157
+ });
158
+ }
159
+ for (let i = start; i <= end; i++) {
160
+ set.push({
161
+ type: 'page',
162
+ value: this._pages[i - 1],
163
+ });
164
+ }
165
+ if (end >= totalPages - 2) {
166
+ for (let i = end + 1; i <= totalPages; i++) {
167
+ set.push({
168
+ type: 'page',
169
+ value: this._pages[i - 1],
170
+ });
171
+ }
172
+ }
173
+ else {
174
+ set.push({
175
+ type: 'ellipsis',
176
+ });
177
+ set.push({
178
+ type: 'page',
179
+ value: this._pages[this._pages.length - 1],
180
+ });
181
+ }
182
+ if (enableBoundaries) {
183
+ set.push(next);
184
+ }
185
+ return set;
186
+ };
187
+ }
188
+ componentWillRender() {
189
+ this._generate();
190
+ }
191
+ render() {
192
+ var _a, _b;
193
+ return (index.h(index.Host, { class: `p-pagination ${this.hideOnSinglePage && ((_a = this._set) === null || _a === void 0 ? void 0 : _a.length) === 3 && 'hidden'}` }, (_b = this._set) === null || _b === void 0 ? void 0 : _b.map((p) => {
194
+ if (p.type === 'previous' || p.type === 'next') {
195
+ return (index.h("p-pagination-item", { onClick: () => p.type === 'previous'
196
+ ? this._previousClick()
197
+ : this._nextClick() }, p.value));
198
+ }
199
+ if (p.type === 'ellipsis') {
200
+ return index.h("p-pagination-item", null, "...");
201
+ }
202
+ return (index.h("p-pagination-item", { active: p.value === this.page, onClick: () => this._pageClick(p.value) }, p.value));
203
+ })));
204
+ }
205
+ pageChangeHandler() {
206
+ this._generate();
207
+ }
208
+ _generate() {
209
+ var _a;
210
+ this._pages = this._generatePages();
211
+ this._set = this._generateSet();
212
+ if (this.page > ((_a = this._pages) === null || _a === void 0 ? void 0 : _a.length)) {
213
+ this._changePage(this._pages.length);
214
+ }
215
+ }
216
+ _changePage(p) {
217
+ if (!p) {
218
+ return;
219
+ }
220
+ this.page = p;
221
+ this.pageChange.emit(this.page);
222
+ }
223
+ _previousClick() {
224
+ const previousPage = this.page - 1;
225
+ if (previousPage < this._pages[0]) {
226
+ return;
227
+ }
228
+ this._changePage(previousPage);
229
+ }
230
+ _generatePages() {
231
+ if (!this.total || !this.pageSize) {
232
+ return [];
233
+ }
234
+ const pages = Math.ceil(this.total / this.pageSize);
235
+ return new Array(pages).fill(undefined).map((_, i) => i + 1);
236
+ }
237
+ static get watchers() { return {
238
+ "page": ["pageChangeHandler"],
239
+ "pageSize": ["pageChangeHandler"],
240
+ "total": ["pageChangeHandler"]
241
+ }; }
242
+ };
243
+ Pagination.style = paginationComponentCss;
244
+
245
+ const paginationItemComponentCss = ".visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!important}.bottom-0{bottom:0!important}.left-0{left:0!important}.m-0{margin:0!important}.ml-1{margin-left:.25rem!important}.block{display:block!important}.flex{display:flex!important}.table{display:table!important}.hidden{display:none!important}.h-8{height:2rem!important}.w-1{width:.25rem!important}.w-2{width:.5rem!important}.w-3{width:.75rem!important}.w-4{width:1rem!important}.w-5{width:1.25rem!important}.w-6{width:1.5rem!important}.w-7{width:1.75rem!important}.w-8{width:2rem!important}.w-9{width:2.25rem!important}.w-10{width:2.5rem!important}.w-11{width:2.75rem!important}.w-auto{width:auto!important}.w-full{width:100%!important}.flex-col{flex-direction:column!important}.items-center{align-items:center!important}.justify-start{justify-content:flex-start!important}.justify-end{justify-content:flex-end!important}.justify-center{justify-content:center!important}.gap-4{gap:1rem!important}.justify-self-end{justify-self:end!important}.rounded{border-radius:.25rem!important}.border{border-width:1px!important}.border-solid{border-style:solid!important}.border-transparent{border-color:transparent!important}.border-t-mystic-dark{--tw-border-opacity:1!important;border-top-color:rgb(218 230 240/var(--tw-border-opacity))!important}.bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity))!important}.p-4{padding:1rem!important}.font-semibold{font-weight:600!important}.text-storm-medium{--tw-text-opacity:1!important;color:rgb(128 130 158/var(--tw-text-opacity))!important}.text-indigo{color:rgb(82 138 250/var(--tw-text-opacity))!important}.text-indigo,.text-storm-dark{--tw-text-opacity:1!important}.text-storm-dark{color:rgb(39 40 56/var(--tw-text-opacity))!important}.blur{--tw-blur:blur(8px)!important}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}*{box-sizing:border-box}:host{--tw-text-opacity:1;align-items:center;border-radius:.25rem;color:rgb(128 130 158/var(--tw-text-opacity));cursor:pointer;display:flex;font-size:.875rem;font-weight:600;height:2rem;justify-content:center;line-height:1.25rem;width:2rem}:host(:focus),:host(:hover){--tw-text-opacity:1;color:rgb(81 83 107/var(--tw-text-opacity))}:host(.active){--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity));color:rgb(82 138 250/var(--tw-text-opacity))}.w-1\\/12{width:8.333333%!important}.w-2\\/12{width:16.666667%!important}.w-3\\/12{width:25%!important}.w-4\\/12{width:33.333333%!important}.w-5\\/12{width:41.666667%!important}.w-6\\/12{width:50%!important}.w-7\\/12{width:58.333333%!important}.w-8\\/12{width:66.666667%!important}.w-9\\/12{width:75%!important}.w-10\\/12{width:83.333333%!important}.w-11\\/12{width:91.666667%!important}@media (min-width:40rem){.tablet\\:w-1\\/12{width:8.333333%!important}.tablet\\:w-2\\/12{width:16.666667%!important}.tablet\\:w-3\\/12{width:25%!important}.tablet\\:w-4\\/12{width:33.333333%!important}.tablet\\:w-5\\/12{width:41.666667%!important}.tablet\\:w-6\\/12{width:50%!important}.tablet\\:w-7\\/12{width:58.333333%!important}.tablet\\:w-8\\/12{width:66.666667%!important}.tablet\\:w-9\\/12{width:75%!important}.tablet\\:w-10\\/12{width:83.333333%!important}.tablet\\:w-11\\/12{width:91.666667%!important}}@media (min-width:64rem){.desktop-xs\\:w-1\\/12{width:8.333333%!important}.desktop-xs\\:w-2\\/12{width:16.666667%!important}.desktop-xs\\:w-3\\/12{width:25%!important}.desktop-xs\\:w-4\\/12{width:33.333333%!important}.desktop-xs\\:w-5\\/12{width:41.666667%!important}.desktop-xs\\:w-6\\/12{width:50%!important}.desktop-xs\\:w-7\\/12{width:58.333333%!important}.desktop-xs\\:w-8\\/12{width:66.666667%!important}.desktop-xs\\:w-9\\/12{width:75%!important}.desktop-xs\\:w-10\\/12{width:83.333333%!important}.desktop-xs\\:w-11\\/12{width:91.666667%!important}}@media (min-width:80rem){.desktop-sm\\:w-1\\/12{width:8.333333%!important}.desktop-sm\\:w-2\\/12{width:16.666667%!important}.desktop-sm\\:w-3\\/12{width:25%!important}.desktop-sm\\:w-4\\/12{width:33.333333%!important}.desktop-sm\\:w-5\\/12{width:41.666667%!important}.desktop-sm\\:w-6\\/12{width:50%!important}.desktop-sm\\:w-7\\/12{width:58.333333%!important}.desktop-sm\\:w-8\\/12{width:66.666667%!important}.desktop-sm\\:w-9\\/12{width:75%!important}.desktop-sm\\:w-10\\/12{width:83.333333%!important}.desktop-sm\\:w-11\\/12{width:91.666667%!important}}@media (min-width:85.375rem){.desktop\\:w-1\\/12{width:8.333333%!important}.desktop\\:w-2\\/12{width:16.666667%!important}.desktop\\:w-3\\/12{width:25%!important}.desktop\\:w-4\\/12{width:33.333333%!important}.desktop\\:w-5\\/12{width:41.666667%!important}.desktop\\:w-6\\/12{width:50%!important}.desktop\\:w-7\\/12{width:58.333333%!important}.desktop\\:w-8\\/12{width:66.666667%!important}.desktop\\:w-9\\/12{width:75%!important}.desktop\\:w-10\\/12{width:83.333333%!important}.desktop\\:w-11\\/12{width:91.666667%!important}}@media (min-width:90rem){.desktop-lg\\:w-1\\/12{width:8.333333%!important}.desktop-lg\\:w-2\\/12{width:16.666667%!important}.desktop-lg\\:w-3\\/12{width:25%!important}.desktop-lg\\:w-4\\/12{width:33.333333%!important}.desktop-lg\\:w-5\\/12{width:41.666667%!important}.desktop-lg\\:w-6\\/12{width:50%!important}.desktop-lg\\:w-7\\/12{width:58.333333%!important}.desktop-lg\\:w-8\\/12{width:66.666667%!important}.desktop-lg\\:w-9\\/12{width:75%!important}.desktop-lg\\:w-10\\/12{width:83.333333%!important}.desktop-lg\\:w-11\\/12{width:91.666667%!important}}@media (min-width:120rem){.desktop-xl\\:w-1\\/12{width:8.333333%!important}.desktop-xl\\:w-2\\/12{width:16.666667%!important}.desktop-xl\\:w-3\\/12{width:25%!important}.desktop-xl\\:w-4\\/12{width:33.333333%!important}.desktop-xl\\:w-5\\/12{width:41.666667%!important}.desktop-xl\\:w-6\\/12{width:50%!important}.desktop-xl\\:w-7\\/12{width:58.333333%!important}.desktop-xl\\:w-8\\/12{width:66.666667%!important}.desktop-xl\\:w-9\\/12{width:75%!important}.desktop-xl\\:w-10\\/12{width:83.333333%!important}.desktop-xl\\:w-11\\/12{width:91.666667%!important}}@media (min-width:64rem){.desktop-xs\\:flex{display:flex!important}.desktop-xs\\:hidden{display:none!important}.desktop-xs\\:w-auto{width:auto!important}.desktop-xs\\:flex-row{flex-direction:row!important}}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}";
246
+
247
+ const PaginationItem = class {
248
+ constructor(hostRef) {
249
+ index.registerInstance(this, hostRef);
250
+ /**
251
+ * Wether the pagination item is active
252
+ */
253
+ this.active = false;
254
+ }
255
+ render() {
256
+ return (index.h(index.Host, { class: `p-pagination-item ${this.active && 'active'}` }, index.h("slot", null)));
257
+ }
258
+ };
259
+ PaginationItem.style = paginationItemComponentCss;
260
+
261
+ exports.p_dropdown_menu_item = DropdownMenuItem;
262
+ exports.p_page_size_select = PageSizeSelect;
263
+ exports.p_pagination = Pagination;
264
+ exports.p_pagination_item = PaginationItem;
@@ -0,0 +1,163 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-16bca782.js');
6
+ const childOf = require('./child-of-e472f812.js');
7
+ const popper = require('./popper-e0c4ed4c.js');
8
+
9
+ const dropdownComponentCss = ".visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!important}.absolute{position:absolute!important}.relative{position:relative!important}.bottom-0{bottom:0!important}.left-0{left:0!important}.m-0{margin:0!important}.ml-auto{margin-left:auto!important}.ml-1{margin-left:.25rem!important}.block{display:block!important}.flex{display:flex!important}.table{display:table!important}.hidden{display:none!important}.w-auto{width:auto!important}.w-1{width:.25rem!important}.w-2{width:.5rem!important}.w-3{width:.75rem!important}.w-4{width:1rem!important}.w-5{width:1.25rem!important}.w-6{width:1.5rem!important}.w-7{width:1.75rem!important}.w-8{width:2rem!important}.w-9{width:2.25rem!important}.w-10{width:2.5rem!important}.w-11{width:2.75rem!important}.w-full{width:100%!important}.min-w-0{min-width:0!important}.flex-col{flex-direction:column!important}.items-center{align-items:center!important}.justify-start{justify-content:flex-start!important}.justify-end{justify-content:flex-end!important}.justify-center{justify-content:center!important}.gap-4{gap:1rem!important}.justify-self-end{justify-self:end!important}.border{border-width:1px!important}.border-solid{border-style:solid!important}.border-transparent{border-color:transparent!important}.border-t-mystic-dark{--tw-border-opacity:1!important;border-top-color:rgb(218 230 240/var(--tw-border-opacity))!important}.bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity))!important}.p-4{padding:1rem!important}.font-semibold{font-weight:600!important}.text-storm-dark{--tw-text-opacity:1!important;color:rgb(39 40 56/var(--tw-text-opacity))!important}.blur{--tw-blur:blur(8px)!important}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}*{box-sizing:border-box}:host{position:relative}:host .trigger{height:auto;width:auto}:host p-dropdown-menu-container{display:none}:host p-dropdown-menu-container[data-show]{display:flex}.w-1\\/12{width:8.333333%!important}.w-2\\/12{width:16.666667%!important}.w-3\\/12{width:25%!important}.w-4\\/12{width:33.333333%!important}.w-5\\/12{width:41.666667%!important}.w-6\\/12{width:50%!important}.w-7\\/12{width:58.333333%!important}.w-8\\/12{width:66.666667%!important}.w-9\\/12{width:75%!important}.w-10\\/12{width:83.333333%!important}.w-11\\/12{width:91.666667%!important}@media (min-width:40rem){.tablet\\:w-1\\/12{width:8.333333%!important}.tablet\\:w-2\\/12{width:16.666667%!important}.tablet\\:w-3\\/12{width:25%!important}.tablet\\:w-4\\/12{width:33.333333%!important}.tablet\\:w-5\\/12{width:41.666667%!important}.tablet\\:w-6\\/12{width:50%!important}.tablet\\:w-7\\/12{width:58.333333%!important}.tablet\\:w-8\\/12{width:66.666667%!important}.tablet\\:w-9\\/12{width:75%!important}.tablet\\:w-10\\/12{width:83.333333%!important}.tablet\\:w-11\\/12{width:91.666667%!important}}@media (min-width:64rem){.desktop-xs\\:w-1\\/12{width:8.333333%!important}.desktop-xs\\:w-2\\/12{width:16.666667%!important}.desktop-xs\\:w-3\\/12{width:25%!important}.desktop-xs\\:w-4\\/12{width:33.333333%!important}.desktop-xs\\:w-5\\/12{width:41.666667%!important}.desktop-xs\\:w-6\\/12{width:50%!important}.desktop-xs\\:w-7\\/12{width:58.333333%!important}.desktop-xs\\:w-8\\/12{width:66.666667%!important}.desktop-xs\\:w-9\\/12{width:75%!important}.desktop-xs\\:w-10\\/12{width:83.333333%!important}.desktop-xs\\:w-11\\/12{width:91.666667%!important}}@media (min-width:80rem){.desktop-sm\\:w-1\\/12{width:8.333333%!important}.desktop-sm\\:w-2\\/12{width:16.666667%!important}.desktop-sm\\:w-3\\/12{width:25%!important}.desktop-sm\\:w-4\\/12{width:33.333333%!important}.desktop-sm\\:w-5\\/12{width:41.666667%!important}.desktop-sm\\:w-6\\/12{width:50%!important}.desktop-sm\\:w-7\\/12{width:58.333333%!important}.desktop-sm\\:w-8\\/12{width:66.666667%!important}.desktop-sm\\:w-9\\/12{width:75%!important}.desktop-sm\\:w-10\\/12{width:83.333333%!important}.desktop-sm\\:w-11\\/12{width:91.666667%!important}}@media (min-width:85.375rem){.desktop\\:w-1\\/12{width:8.333333%!important}.desktop\\:w-2\\/12{width:16.666667%!important}.desktop\\:w-3\\/12{width:25%!important}.desktop\\:w-4\\/12{width:33.333333%!important}.desktop\\:w-5\\/12{width:41.666667%!important}.desktop\\:w-6\\/12{width:50%!important}.desktop\\:w-7\\/12{width:58.333333%!important}.desktop\\:w-8\\/12{width:66.666667%!important}.desktop\\:w-9\\/12{width:75%!important}.desktop\\:w-10\\/12{width:83.333333%!important}.desktop\\:w-11\\/12{width:91.666667%!important}}@media (min-width:90rem){.desktop-lg\\:w-1\\/12{width:8.333333%!important}.desktop-lg\\:w-2\\/12{width:16.666667%!important}.desktop-lg\\:w-3\\/12{width:25%!important}.desktop-lg\\:w-4\\/12{width:33.333333%!important}.desktop-lg\\:w-5\\/12{width:41.666667%!important}.desktop-lg\\:w-6\\/12{width:50%!important}.desktop-lg\\:w-7\\/12{width:58.333333%!important}.desktop-lg\\:w-8\\/12{width:66.666667%!important}.desktop-lg\\:w-9\\/12{width:75%!important}.desktop-lg\\:w-10\\/12{width:83.333333%!important}.desktop-lg\\:w-11\\/12{width:91.666667%!important}}@media (min-width:120rem){.desktop-xl\\:w-1\\/12{width:8.333333%!important}.desktop-xl\\:w-2\\/12{width:16.666667%!important}.desktop-xl\\:w-3\\/12{width:25%!important}.desktop-xl\\:w-4\\/12{width:33.333333%!important}.desktop-xl\\:w-5\\/12{width:41.666667%!important}.desktop-xl\\:w-6\\/12{width:50%!important}.desktop-xl\\:w-7\\/12{width:58.333333%!important}.desktop-xl\\:w-8\\/12{width:66.666667%!important}.desktop-xl\\:w-9\\/12{width:75%!important}.desktop-xl\\:w-10\\/12{width:83.333333%!important}.desktop-xl\\:w-11\\/12{width:91.666667%!important}}@media (min-width:64rem){.desktop-xs\\:flex{display:flex!important}.desktop-xs\\:hidden{display:none!important}.desktop-xs\\:w-auto{width:auto!important}.desktop-xs\\:flex-row{flex-direction:row!important}}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}";
10
+
11
+ const Dropdown = class {
12
+ constructor(hostRef) {
13
+ index.registerInstance(this, hostRef);
14
+ this.isOpen = index.createEvent(this, "isOpen", 7);
15
+ /**
16
+ * The content of the dropdown menu
17
+ */
18
+ this.placement = 'bottom-start';
19
+ /**
20
+ * The strategy of the popover placement
21
+ */
22
+ this.strategy = 'fixed';
23
+ /**
24
+ * Wether to show the dropdown menu
25
+ */
26
+ this.show = false;
27
+ /**
28
+ * Wether to automatically close the dropdown menu after clicking inside
29
+ */
30
+ this.insideClick = false;
31
+ /**
32
+ * Wether to automatically close the dropdown menu after clicking inside
33
+ */
34
+ this.disableTriggerClick = false;
35
+ /**
36
+ * Chevron position
37
+ */
38
+ this.chevronPosition = 'end';
39
+ this._loaded = false;
40
+ }
41
+ componentShouldUpdate() {
42
+ this._setOptions();
43
+ if (this._loaded && this.show) {
44
+ this._show();
45
+ }
46
+ }
47
+ render() {
48
+ return (index.h(index.Host, { class: "p-dropdown" }, index.h("div", { class: "trigger", onClick: () => this._triggerClickHandler() }, index.h("slot", { onSlotchange: (ev) => this._checkButton(ev), name: "trigger" })), index.h("p-dropdown-menu-container", { role: "popover", ref: (el) => this._load(el), onClick: () => this._containerClickHandler() }, index.h("slot", { name: "items" }))));
49
+ }
50
+ _checkButton({ target }) {
51
+ const slot = target;
52
+ const children = slot.assignedElements();
53
+ for (let child of children) {
54
+ if (child.nodeName === 'P-BUTTON') {
55
+ child.chevronPosition = this.chevronPosition;
56
+ child.chevron = this.chevronDirection
57
+ ? this.chevronDirection
58
+ : this.placement.indexOf('top') >= 0
59
+ ? 'up'
60
+ : 'down';
61
+ }
62
+ }
63
+ }
64
+ _containerClickHandler() {
65
+ if (this.insideClick) {
66
+ return;
67
+ }
68
+ if (this._menu.hasAttribute('data-show')) {
69
+ this._hide();
70
+ }
71
+ }
72
+ _triggerClickHandler() {
73
+ if (this.disableTriggerClick) {
74
+ return;
75
+ }
76
+ if (this._menu.hasAttribute('data-show')) {
77
+ this._hide();
78
+ return;
79
+ }
80
+ this._show();
81
+ }
82
+ documentClickHandler({ target }) {
83
+ if (!this._menu.hasAttribute('data-show') ||
84
+ childOf.childOf(target, this._el)) {
85
+ return;
86
+ }
87
+ this._hide();
88
+ }
89
+ _load(popover) {
90
+ this._menu = popover;
91
+ if (popover) {
92
+ this._popper = popper.createPopper(this._el, popover, {
93
+ strategy: this.strategy,
94
+ });
95
+ this._setOptions();
96
+ this._loaded = true;
97
+ if (this.show) {
98
+ setTimeout(() => this._show(), 100);
99
+ }
100
+ }
101
+ }
102
+ _setOptions() {
103
+ if (!this._popper) {
104
+ return;
105
+ }
106
+ this._popper.setOptions({
107
+ placement: this.placement,
108
+ modifiers: [
109
+ {
110
+ name: 'offset',
111
+ options: {
112
+ offset: [0, 8],
113
+ },
114
+ },
115
+ ],
116
+ });
117
+ }
118
+ _show() {
119
+ if (!this._loaded) {
120
+ return;
121
+ }
122
+ // Make the popover visible
123
+ this._menu.setAttribute('data-show', '');
124
+ this.isOpen.emit(true);
125
+ // Enable the event listeners
126
+ this._popper.setOptions((options) => (Object.assign(Object.assign({}, options), { modifiers: [
127
+ ...options.modifiers,
128
+ { name: 'eventListeners', enabled: true },
129
+ ] })));
130
+ // Update its position
131
+ this._popper.update();
132
+ }
133
+ _hide() {
134
+ if (!this._loaded || this.show) {
135
+ return;
136
+ }
137
+ // Hide the popover
138
+ this._menu.removeAttribute('data-show');
139
+ this.isOpen.emit(false);
140
+ // Disable the event listeners
141
+ this._popper.setOptions((options) => (Object.assign(Object.assign({}, options), { modifiers: [
142
+ ...options.modifiers,
143
+ { name: 'eventListeners', enabled: false },
144
+ ] })));
145
+ }
146
+ get _el() { return index.getElement(this); }
147
+ };
148
+ Dropdown.style = dropdownComponentCss;
149
+
150
+ const dropdownMenuContainerComponentCss = ".visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!important}.absolute{position:absolute!important}.bottom-0{bottom:0!important}.left-0{left:0!important}.m-0{margin:0!important}.ml-auto{margin-left:auto!important}.ml-1{margin-left:.25rem!important}.block{display:block!important}.flex{display:flex!important}.table{display:table!important}.hidden{display:none!important}.w-1{width:.25rem!important}.w-2{width:.5rem!important}.w-3{width:.75rem!important}.w-4{width:1rem!important}.w-5{width:1.25rem!important}.w-6{width:1.5rem!important}.w-7{width:1.75rem!important}.w-8{width:2rem!important}.w-9{width:2.25rem!important}.w-10{width:2.5rem!important}.w-11{width:2.75rem!important}.w-full{width:100%!important}.w-auto{width:auto!important}.min-w-0{min-width:0!important}.max-w-\\[222px\\]{max-width:222px!important}.flex-col{flex-direction:column!important}.items-center{align-items:center!important}.justify-start{justify-content:flex-start!important}.justify-end{justify-content:flex-end!important}.justify-center{justify-content:center!important}.gap-\\[1px\\]{gap:1px!important}.gap-4{gap:1rem!important}.justify-self-end{justify-self:end!important}.border{border-width:1px!important}.border-solid{border-style:solid!important}.border-transparent{border-color:transparent!important}.border-t-mystic-dark{--tw-border-opacity:1!important;border-top-color:rgb(218 230 240/var(--tw-border-opacity))!important}.bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity))!important}.p-2{padding:.5rem!important}.p-4{padding:1rem!important}.font-semibold{font-weight:600!important}.text-storm-dark{--tw-text-opacity:1!important;color:rgb(39 40 56/var(--tw-text-opacity))!important}.blur{--tw-blur:blur(8px)!important}.blur,.drop-shadow-4{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.drop-shadow-4{--tw-drop-shadow:drop-shadow(0px 0.3125rem 1rem rgba(0,24,98,.08)) drop-shadow(0px 0.0625rem 0.1875rem rgba(0,24,98,.13))!important}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}*{box-sizing:border-box}p-dropdown-menu-container{--tw-bg-opacity:1;--tw-drop-shadow:drop-shadow(0px 0.3125rem 1rem rgba(0,24,98,.08)) drop-shadow(0px 0.0625rem 0.1875rem rgba(0,24,98,.13));background-color:rgb(255 255 255/var(--tw-bg-opacity));border-radius:.75rem;display:flex;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);flex-direction:column;gap:1px;max-width:222px;padding:.5rem;width:100%;z-index:10}.w-1\\/12{width:8.333333%!important}.w-2\\/12{width:16.666667%!important}.w-3\\/12{width:25%!important}.w-4\\/12{width:33.333333%!important}.w-5\\/12{width:41.666667%!important}.w-6\\/12{width:50%!important}.w-7\\/12{width:58.333333%!important}.w-8\\/12{width:66.666667%!important}.w-9\\/12{width:75%!important}.w-10\\/12{width:83.333333%!important}.w-11\\/12{width:91.666667%!important}@media (min-width:40rem){.tablet\\:w-1\\/12{width:8.333333%!important}.tablet\\:w-2\\/12{width:16.666667%!important}.tablet\\:w-3\\/12{width:25%!important}.tablet\\:w-4\\/12{width:33.333333%!important}.tablet\\:w-5\\/12{width:41.666667%!important}.tablet\\:w-6\\/12{width:50%!important}.tablet\\:w-7\\/12{width:58.333333%!important}.tablet\\:w-8\\/12{width:66.666667%!important}.tablet\\:w-9\\/12{width:75%!important}.tablet\\:w-10\\/12{width:83.333333%!important}.tablet\\:w-11\\/12{width:91.666667%!important}}@media (min-width:64rem){.desktop-xs\\:w-1\\/12{width:8.333333%!important}.desktop-xs\\:w-2\\/12{width:16.666667%!important}.desktop-xs\\:w-3\\/12{width:25%!important}.desktop-xs\\:w-4\\/12{width:33.333333%!important}.desktop-xs\\:w-5\\/12{width:41.666667%!important}.desktop-xs\\:w-6\\/12{width:50%!important}.desktop-xs\\:w-7\\/12{width:58.333333%!important}.desktop-xs\\:w-8\\/12{width:66.666667%!important}.desktop-xs\\:w-9\\/12{width:75%!important}.desktop-xs\\:w-10\\/12{width:83.333333%!important}.desktop-xs\\:w-11\\/12{width:91.666667%!important}}@media (min-width:80rem){.desktop-sm\\:w-1\\/12{width:8.333333%!important}.desktop-sm\\:w-2\\/12{width:16.666667%!important}.desktop-sm\\:w-3\\/12{width:25%!important}.desktop-sm\\:w-4\\/12{width:33.333333%!important}.desktop-sm\\:w-5\\/12{width:41.666667%!important}.desktop-sm\\:w-6\\/12{width:50%!important}.desktop-sm\\:w-7\\/12{width:58.333333%!important}.desktop-sm\\:w-8\\/12{width:66.666667%!important}.desktop-sm\\:w-9\\/12{width:75%!important}.desktop-sm\\:w-10\\/12{width:83.333333%!important}.desktop-sm\\:w-11\\/12{width:91.666667%!important}}@media (min-width:85.375rem){.desktop\\:w-1\\/12{width:8.333333%!important}.desktop\\:w-2\\/12{width:16.666667%!important}.desktop\\:w-3\\/12{width:25%!important}.desktop\\:w-4\\/12{width:33.333333%!important}.desktop\\:w-5\\/12{width:41.666667%!important}.desktop\\:w-6\\/12{width:50%!important}.desktop\\:w-7\\/12{width:58.333333%!important}.desktop\\:w-8\\/12{width:66.666667%!important}.desktop\\:w-9\\/12{width:75%!important}.desktop\\:w-10\\/12{width:83.333333%!important}.desktop\\:w-11\\/12{width:91.666667%!important}}@media (min-width:90rem){.desktop-lg\\:w-1\\/12{width:8.333333%!important}.desktop-lg\\:w-2\\/12{width:16.666667%!important}.desktop-lg\\:w-3\\/12{width:25%!important}.desktop-lg\\:w-4\\/12{width:33.333333%!important}.desktop-lg\\:w-5\\/12{width:41.666667%!important}.desktop-lg\\:w-6\\/12{width:50%!important}.desktop-lg\\:w-7\\/12{width:58.333333%!important}.desktop-lg\\:w-8\\/12{width:66.666667%!important}.desktop-lg\\:w-9\\/12{width:75%!important}.desktop-lg\\:w-10\\/12{width:83.333333%!important}.desktop-lg\\:w-11\\/12{width:91.666667%!important}}@media (min-width:120rem){.desktop-xl\\:w-1\\/12{width:8.333333%!important}.desktop-xl\\:w-2\\/12{width:16.666667%!important}.desktop-xl\\:w-3\\/12{width:25%!important}.desktop-xl\\:w-4\\/12{width:33.333333%!important}.desktop-xl\\:w-5\\/12{width:41.666667%!important}.desktop-xl\\:w-6\\/12{width:50%!important}.desktop-xl\\:w-7\\/12{width:58.333333%!important}.desktop-xl\\:w-8\\/12{width:66.666667%!important}.desktop-xl\\:w-9\\/12{width:75%!important}.desktop-xl\\:w-10\\/12{width:83.333333%!important}.desktop-xl\\:w-11\\/12{width:91.666667%!important}}@media (min-width:64rem){.desktop-xs\\:flex{display:flex!important}.desktop-xs\\:hidden{display:none!important}.desktop-xs\\:w-auto{width:auto!important}.desktop-xs\\:flex-row{flex-direction:row!important}}";
151
+
152
+ const DropdownMenuContainer = class {
153
+ constructor(hostRef) {
154
+ index.registerInstance(this, hostRef);
155
+ }
156
+ render() {
157
+ return (index.h(index.Host, { class: "p-dropdown-menu-container" }, index.h("slot", null)));
158
+ }
159
+ };
160
+ DropdownMenuContainer.style = dropdownMenuContainerComponentCss;
161
+
162
+ exports.p_dropdown = Dropdown;
163
+ exports.p_dropdown_menu_container = DropdownMenuContainer;