@paperless/core 2.0.1-beta.21 → 2.0.1-beta.23

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 (382) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/build/index.esm.js +1 -1
  3. package/dist/build/index.esm.js.map +1 -1
  4. package/dist/build/{p-d9d8c17c.entry.js → p-0a1cf938.entry.js} +2 -2
  5. package/dist/build/{p-d70b3539.entry.js → p-0a6d3edd.entry.js} +2 -2
  6. package/dist/{paperless/p-214a2978.entry.js → build/p-0ce335d4.entry.js} +2 -2
  7. package/dist/build/p-0ce335d4.entry.js.map +1 -0
  8. package/dist/build/{p-2bd123f4.entry.js → p-129d5cbd.entry.js} +2 -2
  9. package/dist/{paperless/p-af468e9f.entry.js → build/p-14e20144.entry.js} +2 -2
  10. package/dist/build/{p-0413fcd0.entry.js → p-250b3f90.entry.js} +2 -2
  11. package/dist/build/p-2f613a2a.entry.js +2 -0
  12. package/dist/build/{p-a56474ea.entry.js → p-2f821184.entry.js} +2 -2
  13. package/dist/build/{p-14e63599.entry.js → p-35080e8e.entry.js} +2 -2
  14. package/dist/build/{p-0bbd4d1c.entry.js → p-3a4ff7f6.entry.js} +2 -2
  15. package/dist/build/{p-3a428a06.entry.js → p-3feb4bd9.entry.js} +2 -2
  16. package/dist/build/p-46d0e091.entry.js +2 -0
  17. package/dist/build/p-46d0e091.entry.js.map +1 -0
  18. package/dist/build/{p-ea577bae.entry.js → p-4a642ff9.entry.js} +2 -2
  19. package/dist/build/p-4cb8f3db.entry.js +2 -0
  20. package/dist/build/{p-d9fae6bd.entry.js → p-57fc0eb5.entry.js} +2 -2
  21. package/dist/{paperless/p-cc3445fc.entry.js → build/p-5b93f608.entry.js} +2 -2
  22. package/dist/{paperless/p-c3ba61ac.entry.js → build/p-5cecb014.entry.js} +2 -2
  23. package/dist/build/{p-a5934232.entry.js → p-68ae68c8.entry.js} +2 -2
  24. package/dist/build/{p-1ed4a75e.entry.js → p-6f3a4499.entry.js} +2 -2
  25. package/dist/build/{p-1b5ec2b1.entry.js → p-716a92ae.entry.js} +2 -2
  26. package/dist/{paperless/p-48efb6e4.entry.js → build/p-868d5746.entry.js} +2 -2
  27. package/dist/build/p-8a8663ae.entry.js +2 -0
  28. package/dist/build/p-8a8663ae.entry.js.map +1 -0
  29. package/dist/{paperless/p-d044f441.entry.js → build/p-8d165db5.entry.js} +2 -2
  30. package/dist/build/{p-f40f89a7.entry.js → p-955d149f.entry.js} +2 -2
  31. package/dist/{paperless/p-cfe6ec9a.entry.js → build/p-9a9c8ce9.entry.js} +2 -2
  32. package/dist/build/{p-3e393301.entry.js → p-9cc50361.entry.js} +2 -2
  33. package/dist/build/{p-eec56c71.entry.js → p-b26d5130.entry.js} +2 -2
  34. package/dist/build/p-b9eb5691.js +2 -0
  35. package/dist/{paperless/p-d8eb3b7b.entry.js → build/p-d19f3457.entry.js} +2 -2
  36. package/dist/build/{p-46362798.entry.js → p-d31d6714.entry.js} +2 -2
  37. package/dist/build/{p-d6ca5bce.entry.js → p-d9c32e3e.entry.js} +2 -2
  38. package/dist/{paperless/p-fd53acd3.entry.js → build/p-dc01bfa8.entry.js} +2 -2
  39. package/dist/build/p-dceb94a4.entry.js +2 -0
  40. package/dist/{paperless/p-958f3c09.entry.js → build/p-e3b04c17.entry.js} +2 -2
  41. package/dist/build/{p-65d9a61f.entry.js → p-ec082bfe.entry.js} +2 -2
  42. package/dist/build/{p-036bb6f4.entry.js → p-fb51eccd.entry.js} +2 -2
  43. package/dist/build/paperless.esm.js +1 -1
  44. package/dist/build/paperless.esm.js.map +1 -1
  45. package/dist/cjs/index-3f9bbc0c.js +8 -8
  46. package/dist/cjs/index.cjs.js +1 -1
  47. package/dist/cjs/index.cjs.js.map +1 -1
  48. package/dist/cjs/loader.cjs.js +1 -1
  49. package/dist/cjs/p-accordion.cjs.entry.js +1 -1
  50. package/dist/cjs/p-attachment.cjs.entry.js +4 -4
  51. package/dist/cjs/p-badge_3.cjs.entry.js +77 -0
  52. package/dist/cjs/p-badge_3.cjs.entry.js.map +1 -0
  53. package/dist/cjs/p-button-group.cjs.entry.js +1 -1
  54. package/dist/cjs/p-button_3.cjs.entry.js +4 -4
  55. package/dist/cjs/p-calendar.cjs.entry.js +1 -1
  56. package/dist/cjs/p-checkbox_3.cjs.entry.js +3 -3
  57. package/dist/cjs/p-content-slider.cjs.entry.js +2 -2
  58. package/dist/cjs/p-cropper.cjs.entry.js +2 -2
  59. package/dist/cjs/p-datepicker.cjs.entry.js +1 -1
  60. package/dist/cjs/p-field_3.cjs.entry.js +3 -3
  61. package/dist/cjs/p-floating-menu-container_8.cjs.entry.js +6 -6
  62. package/dist/cjs/p-floating-menu-container_8.cjs.entry.js.map +1 -1
  63. package/dist/cjs/p-input-error.cjs.entry.js +1 -1
  64. package/dist/cjs/p-label.cjs.entry.js +64 -0
  65. package/dist/cjs/p-label.cjs.entry.js.map +1 -0
  66. package/dist/cjs/p-layout.cjs.entry.js +1 -1
  67. package/dist/cjs/p-modal-body_4.cjs.entry.js +4 -4
  68. package/dist/cjs/p-navbar.cjs.entry.js +1 -1
  69. package/dist/cjs/p-navigation-item.cjs.entry.js +2 -2
  70. package/dist/cjs/p-navigation-section.cjs.entry.js +1 -1
  71. package/dist/cjs/p-navigation-title.cjs.entry.js +1 -1
  72. package/dist/cjs/p-page-size-select_3.cjs.entry.js +2 -2
  73. package/dist/cjs/p-portal_2.cjs.entry.js +5 -5
  74. package/dist/cjs/p-profile.cjs.entry.js +1 -1
  75. package/dist/cjs/p-radio.cjs.entry.js +3 -3
  76. package/dist/cjs/p-select.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 +2 -2
  79. package/dist/cjs/p-stepper-item.cjs.entry.js +1 -1
  80. package/dist/cjs/p-stepper-line.cjs.entry.js +1 -1
  81. package/dist/cjs/p-stepper.cjs.entry.js +1 -1
  82. package/dist/cjs/p-tab-group.cjs.entry.js +1 -1
  83. package/dist/cjs/p-tab-item.cjs.entry.js +1 -1
  84. package/dist/cjs/p-toast-container.cjs.entry.js +1 -1
  85. package/dist/cjs/p-toast.cjs.entry.js +1 -1
  86. package/dist/cjs/p-toggle.cjs.entry.js +3 -3
  87. package/dist/cjs/paperless.cjs.js +1 -1
  88. package/dist/collection/collection-manifest.json +1 -1
  89. package/dist/collection/components/atoms/layout/layout.component.js +1 -1
  90. package/dist/collection/components/atoms/modal-body/modal-body.component.js +1 -1
  91. package/dist/collection/components/atoms/modal-container/modal-container.component.js +1 -1
  92. package/dist/collection/components/atoms/modal-footer/modal-footer.component.js +1 -1
  93. package/dist/collection/components/atoms/modal-header/modal-header.component.js +1 -1
  94. package/dist/collection/components/atoms/navigation-title/navigation-title.component.js +1 -1
  95. package/dist/collection/components/atoms/pagination-item/pagination-item.component.js +1 -1
  96. package/dist/collection/components/atoms/portal/portal.component.js +1 -1
  97. package/dist/collection/components/atoms/radio/radio.component.js +3 -3
  98. package/dist/collection/components/atoms/segment-container/segment-container.component.css +1 -1
  99. package/dist/collection/components/atoms/segment-container/segment-container.component.js +2 -2
  100. package/dist/collection/components/atoms/segment-container/segment-container.component.js.map +1 -1
  101. package/dist/collection/components/atoms/segment-item/segment-item.component.css +1 -1
  102. package/dist/collection/components/atoms/segment-item/segment-item.component.js +23 -39
  103. package/dist/collection/components/atoms/segment-item/segment-item.component.js.map +1 -1
  104. package/dist/collection/components/atoms/slider-indicator/slider-indicator.component.js +1 -1
  105. package/dist/collection/components/atoms/status/status.component.js +2 -2
  106. package/dist/collection/components/atoms/stepper-item/stepper-item.component.js +1 -1
  107. package/dist/collection/components/atoms/stepper-line/stepper-line.component.js +1 -1
  108. package/dist/collection/components/atoms/tab-group/tab-group.component.js +1 -1
  109. package/dist/collection/components/atoms/tab-item/tab-item.component.js +1 -1
  110. package/dist/collection/components/atoms/table-container/table-container.component.js +1 -1
  111. package/dist/collection/components/atoms/toast-container/toast-container.component.js +1 -1
  112. package/dist/collection/components/atoms/toggle/toggle.component.js +3 -3
  113. package/dist/collection/components/atoms/tooltip/tooltip.component.js +4 -4
  114. package/dist/collection/components/molecules/accordion/accordion.component.js +1 -1
  115. package/dist/collection/components/molecules/attachment/attachment.component.js +4 -4
  116. package/dist/collection/components/molecules/button/button.component.js +4 -4
  117. package/dist/collection/components/molecules/button-group/button-group.component.js +1 -1
  118. package/dist/collection/components/molecules/calendar/calendar.component.js +1 -1
  119. package/dist/collection/components/molecules/content-slider/content-slider.component.js +2 -2
  120. package/dist/collection/components/molecules/cropper/cropper.component.js +2 -2
  121. package/dist/collection/components/molecules/datepicker/datepicker.component.js +1 -1
  122. package/dist/collection/components/molecules/dropdown/dropdown.component.js +3 -3
  123. package/dist/collection/components/molecules/field/field.component.js +3 -3
  124. package/dist/collection/components/molecules/input-error/input-error.component.js +1 -1
  125. package/dist/collection/components/molecules/label/label.component.css +1 -0
  126. package/dist/collection/components/{atoms → molecules}/label/label.component.js +49 -57
  127. package/dist/collection/components/molecules/label/label.component.js.map +1 -0
  128. package/dist/collection/components/molecules/navigation-item/navigation-item.component.js +2 -2
  129. package/dist/collection/components/molecules/navigation-section/navigation-section.component.js +1 -1
  130. package/dist/collection/components/molecules/pagination/pagination.component.js +1 -1
  131. package/dist/collection/components/molecules/profile/profile.component.js +1 -1
  132. package/dist/collection/components/molecules/select/select.component.js +1 -1
  133. package/dist/collection/components/molecules/stepper/stepper.component.js +1 -1
  134. package/dist/collection/components/molecules/table-cell/table-cell.component.js +1 -1
  135. package/dist/collection/components/molecules/table-footer/table-footer.component.js +1 -1
  136. package/dist/collection/components/molecules/table-header/table-header.component.js +1 -1
  137. package/dist/collection/components/molecules/table-header/table-header.component.js.map +1 -1
  138. package/dist/collection/components/molecules/table-row/table-row.component.js +2 -2
  139. package/dist/collection/components/molecules/toast/toast.component.js +1 -1
  140. package/dist/collection/components/organisms/navbar/navbar.component.js +1 -1
  141. package/dist/collection/tailwind/theme/colors.js +1 -1
  142. package/dist/collection/tailwind/theme/colors.js.map +1 -1
  143. package/dist/components/button.component.js +4 -4
  144. package/dist/components/calendar.component.js +1 -1
  145. package/dist/components/dropdown.component.js +3 -3
  146. package/dist/components/field.component.js +3 -3
  147. package/dist/components/index.js +1 -1
  148. package/dist/components/index.js.map +1 -1
  149. package/dist/components/input-error.component.js +1 -1
  150. package/dist/components/modal-body.component.js +1 -1
  151. package/dist/components/modal-container.component.js +1 -1
  152. package/dist/components/modal-footer.component.js +1 -1
  153. package/dist/components/modal-header.component.js +1 -1
  154. package/dist/components/navigation-title.component.js +1 -1
  155. package/dist/components/p-accordion.js +1 -1
  156. package/dist/components/p-attachment.js +4 -4
  157. package/dist/components/p-button-group.js +1 -1
  158. package/dist/components/p-content-slider.js +2 -2
  159. package/dist/components/p-cropper.js +2 -2
  160. package/dist/components/p-datepicker.js +1 -1
  161. package/dist/components/p-label.js +83 -1
  162. package/dist/components/p-label.js.map +1 -1
  163. package/dist/components/p-layout.js +1 -1
  164. package/dist/components/p-navbar.js +1 -1
  165. package/dist/components/p-navigation-item.js +2 -2
  166. package/dist/components/p-navigation-section.js +1 -1
  167. package/dist/components/p-profile.js +1 -1
  168. package/dist/components/p-radio.js +3 -3
  169. package/dist/components/p-select.js +1 -1
  170. package/dist/components/p-status.js +2 -2
  171. package/dist/components/p-stepper-item.js +1 -1
  172. package/dist/components/p-stepper.js +1 -1
  173. package/dist/components/p-tab-group.js +1 -1
  174. package/dist/components/p-tab-item.js +1 -1
  175. package/dist/components/p-table.js +29 -29
  176. package/dist/components/p-toast-container.js +1 -1
  177. package/dist/components/p-toast.js +1 -1
  178. package/dist/components/p-toggle.js +3 -3
  179. package/dist/components/pagination-item.component.js +1 -1
  180. package/dist/components/pagination.component.js +1 -1
  181. package/dist/components/portal.component.js +1 -1
  182. package/dist/components/segment-container.component.js +2 -2
  183. package/dist/components/segment-container.component.js.map +1 -1
  184. package/dist/components/segment-item.component.js +24 -17
  185. package/dist/components/segment-item.component.js.map +1 -1
  186. package/dist/components/slider-indicator.component.js +1 -1
  187. package/dist/components/stepper-line.component.js +1 -1
  188. package/dist/components/table-cell.component.js +1 -1
  189. package/dist/components/table-container.component.js +1 -1
  190. package/dist/components/table-footer.component.js +1 -1
  191. package/dist/components/table-header.component.js +14 -14
  192. package/dist/components/table-header.component.js.map +1 -1
  193. package/dist/components/table-row.component.js +2 -2
  194. package/dist/components/tooltip.component.js +4 -4
  195. package/dist/esm/index-2ef94580.js +8 -8
  196. package/dist/esm/index.js +1 -1
  197. package/dist/esm/index.js.map +1 -1
  198. package/dist/esm/loader.js +1 -1
  199. package/dist/esm/p-accordion.entry.js +1 -1
  200. package/dist/esm/p-attachment.entry.js +4 -4
  201. package/dist/esm/p-badge_3.entry.js +71 -0
  202. package/dist/esm/p-badge_3.entry.js.map +1 -0
  203. package/dist/esm/p-button-group.entry.js +1 -1
  204. package/dist/esm/p-button_3.entry.js +4 -4
  205. package/dist/esm/p-calendar.entry.js +1 -1
  206. package/dist/esm/p-checkbox_3.entry.js +3 -3
  207. package/dist/esm/p-content-slider.entry.js +2 -2
  208. package/dist/esm/p-cropper.entry.js +2 -2
  209. package/dist/esm/p-datepicker.entry.js +1 -1
  210. package/dist/esm/p-field_3.entry.js +3 -3
  211. package/dist/esm/p-floating-menu-container_8.entry.js +6 -6
  212. package/dist/esm/p-floating-menu-container_8.entry.js.map +1 -1
  213. package/dist/esm/p-input-error.entry.js +1 -1
  214. package/dist/esm/p-label.entry.js +60 -0
  215. package/dist/esm/p-label.entry.js.map +1 -0
  216. package/dist/esm/p-layout.entry.js +1 -1
  217. package/dist/esm/p-modal-body_4.entry.js +4 -4
  218. package/dist/esm/p-navbar.entry.js +1 -1
  219. package/dist/esm/p-navigation-item.entry.js +2 -2
  220. package/dist/esm/p-navigation-section.entry.js +1 -1
  221. package/dist/esm/p-navigation-title.entry.js +1 -1
  222. package/dist/esm/p-page-size-select_3.entry.js +2 -2
  223. package/dist/esm/p-portal_2.entry.js +5 -5
  224. package/dist/esm/p-profile.entry.js +1 -1
  225. package/dist/esm/p-radio.entry.js +3 -3
  226. package/dist/esm/p-select.entry.js +1 -1
  227. package/dist/esm/p-slider-indicator.entry.js +1 -1
  228. package/dist/esm/p-status.entry.js +2 -2
  229. package/dist/esm/p-stepper-item.entry.js +1 -1
  230. package/dist/esm/p-stepper-line.entry.js +1 -1
  231. package/dist/esm/p-stepper.entry.js +1 -1
  232. package/dist/esm/p-tab-group.entry.js +1 -1
  233. package/dist/esm/p-tab-item.entry.js +1 -1
  234. package/dist/esm/p-toast-container.entry.js +1 -1
  235. package/dist/esm/p-toast.entry.js +1 -1
  236. package/dist/esm/p-toggle.entry.js +3 -3
  237. package/dist/esm/paperless.js +1 -1
  238. package/dist/index.html +1 -1
  239. package/dist/paperless/index.esm.js +1 -1
  240. package/dist/paperless/index.esm.js.map +1 -1
  241. package/dist/paperless/{p-d9d8c17c.entry.js → p-0a1cf938.entry.js} +2 -2
  242. package/dist/paperless/{p-d70b3539.entry.js → p-0a6d3edd.entry.js} +2 -2
  243. package/dist/{build/p-214a2978.entry.js → paperless/p-0ce335d4.entry.js} +2 -2
  244. package/dist/paperless/p-0ce335d4.entry.js.map +1 -0
  245. package/dist/paperless/{p-2bd123f4.entry.js → p-129d5cbd.entry.js} +2 -2
  246. package/dist/{build/p-af468e9f.entry.js → paperless/p-14e20144.entry.js} +2 -2
  247. package/dist/paperless/{p-0413fcd0.entry.js → p-250b3f90.entry.js} +2 -2
  248. package/dist/paperless/p-2f613a2a.entry.js +2 -0
  249. package/dist/paperless/{p-a56474ea.entry.js → p-2f821184.entry.js} +2 -2
  250. package/dist/paperless/{p-14e63599.entry.js → p-35080e8e.entry.js} +2 -2
  251. package/dist/paperless/{p-0bbd4d1c.entry.js → p-3a4ff7f6.entry.js} +2 -2
  252. package/dist/paperless/{p-3a428a06.entry.js → p-3feb4bd9.entry.js} +2 -2
  253. package/dist/paperless/p-46d0e091.entry.js +2 -0
  254. package/dist/paperless/p-46d0e091.entry.js.map +1 -0
  255. package/dist/paperless/{p-ea577bae.entry.js → p-4a642ff9.entry.js} +2 -2
  256. package/dist/paperless/p-4cb8f3db.entry.js +2 -0
  257. package/dist/paperless/{p-d9fae6bd.entry.js → p-57fc0eb5.entry.js} +2 -2
  258. package/dist/{build/p-cc3445fc.entry.js → paperless/p-5b93f608.entry.js} +2 -2
  259. package/dist/{build/p-c3ba61ac.entry.js → paperless/p-5cecb014.entry.js} +2 -2
  260. package/dist/paperless/{p-a5934232.entry.js → p-68ae68c8.entry.js} +2 -2
  261. package/dist/paperless/{p-1ed4a75e.entry.js → p-6f3a4499.entry.js} +2 -2
  262. package/dist/paperless/{p-1b5ec2b1.entry.js → p-716a92ae.entry.js} +2 -2
  263. package/dist/{build/p-48efb6e4.entry.js → paperless/p-868d5746.entry.js} +2 -2
  264. package/dist/paperless/p-8a8663ae.entry.js +2 -0
  265. package/dist/paperless/p-8a8663ae.entry.js.map +1 -0
  266. package/dist/{build/p-d044f441.entry.js → paperless/p-8d165db5.entry.js} +2 -2
  267. package/dist/paperless/{p-f40f89a7.entry.js → p-955d149f.entry.js} +2 -2
  268. package/dist/{build/p-cfe6ec9a.entry.js → paperless/p-9a9c8ce9.entry.js} +2 -2
  269. package/dist/paperless/{p-3e393301.entry.js → p-9cc50361.entry.js} +2 -2
  270. package/dist/paperless/{p-eec56c71.entry.js → p-b26d5130.entry.js} +2 -2
  271. package/dist/{build/p-d8eb3b7b.entry.js → paperless/p-d19f3457.entry.js} +2 -2
  272. package/dist/paperless/{p-46362798.entry.js → p-d31d6714.entry.js} +2 -2
  273. package/dist/paperless/{p-d6ca5bce.entry.js → p-d9c32e3e.entry.js} +2 -2
  274. package/dist/{build/p-fd53acd3.entry.js → paperless/p-dc01bfa8.entry.js} +2 -2
  275. package/dist/paperless/p-dceb94a4.entry.js +2 -0
  276. package/dist/{build/p-958f3c09.entry.js → paperless/p-e3b04c17.entry.js} +2 -2
  277. package/dist/paperless/{p-65d9a61f.entry.js → p-ec082bfe.entry.js} +2 -2
  278. package/dist/paperless/{p-036bb6f4.entry.js → p-fb51eccd.entry.js} +2 -2
  279. package/dist/paperless/paperless.esm.js +1 -1
  280. package/dist/paperless/paperless.esm.js.map +1 -1
  281. package/dist/sw.js +1 -1
  282. package/dist/sw.js.map +1 -1
  283. package/dist/tailwind/theme/colors.ts +1 -1
  284. package/dist/types/components/atoms/segment-item/segment-item.component.d.ts +0 -11
  285. package/dist/types/components/{atoms → molecules}/label/label.component.d.ts +4 -12
  286. package/dist/types/components.d.ts +12 -46
  287. package/hydrate/index.js +128 -93
  288. package/hydrate/index.mjs +128 -93
  289. package/package.json +1 -1
  290. package/dist/build/p-214a2978.entry.js.map +0 -1
  291. package/dist/build/p-50134fa1.entry.js +0 -2
  292. package/dist/build/p-50134fa1.entry.js.map +0 -1
  293. package/dist/build/p-6d8852ca.entry.js +0 -2
  294. package/dist/build/p-889eb696.js +0 -2
  295. package/dist/build/p-bf261165.entry.js +0 -2
  296. package/dist/build/p-c8e79e30.entry.js +0 -2
  297. package/dist/build/p-e15305dc.entry.js +0 -2
  298. package/dist/build/p-e15305dc.entry.js.map +0 -1
  299. package/dist/cjs/p-badge.cjs.entry.js +0 -22
  300. package/dist/cjs/p-badge.cjs.entry.js.map +0 -1
  301. package/dist/cjs/p-label_3.cjs.entry.js +0 -76
  302. package/dist/cjs/p-label_3.cjs.entry.js.map +0 -1
  303. package/dist/collection/components/atoms/label/label.component.css +0 -1
  304. package/dist/collection/components/atoms/label/label.component.js.map +0 -1
  305. package/dist/components/label.component.js +0 -57
  306. package/dist/components/label.component.js.map +0 -1
  307. package/dist/esm/p-badge.entry.js +0 -18
  308. package/dist/esm/p-badge.entry.js.map +0 -1
  309. package/dist/esm/p-label_3.entry.js +0 -70
  310. package/dist/esm/p-label_3.entry.js.map +0 -1
  311. package/dist/paperless/p-214a2978.entry.js.map +0 -1
  312. package/dist/paperless/p-50134fa1.entry.js +0 -2
  313. package/dist/paperless/p-50134fa1.entry.js.map +0 -1
  314. package/dist/paperless/p-6d8852ca.entry.js +0 -2
  315. package/dist/paperless/p-bf261165.entry.js +0 -2
  316. package/dist/paperless/p-c8e79e30.entry.js +0 -2
  317. package/dist/paperless/p-e15305dc.entry.js +0 -2
  318. package/dist/paperless/p-e15305dc.entry.js.map +0 -1
  319. /package/dist/build/{p-d9d8c17c.entry.js.map → p-0a1cf938.entry.js.map} +0 -0
  320. /package/dist/build/{p-d70b3539.entry.js.map → p-0a6d3edd.entry.js.map} +0 -0
  321. /package/dist/build/{p-2bd123f4.entry.js.map → p-129d5cbd.entry.js.map} +0 -0
  322. /package/dist/build/{p-af468e9f.entry.js.map → p-14e20144.entry.js.map} +0 -0
  323. /package/dist/build/{p-0413fcd0.entry.js.map → p-250b3f90.entry.js.map} +0 -0
  324. /package/dist/build/{p-6d8852ca.entry.js.map → p-2f613a2a.entry.js.map} +0 -0
  325. /package/dist/build/{p-a56474ea.entry.js.map → p-2f821184.entry.js.map} +0 -0
  326. /package/dist/build/{p-14e63599.entry.js.map → p-35080e8e.entry.js.map} +0 -0
  327. /package/dist/build/{p-0bbd4d1c.entry.js.map → p-3a4ff7f6.entry.js.map} +0 -0
  328. /package/dist/build/{p-3a428a06.entry.js.map → p-3feb4bd9.entry.js.map} +0 -0
  329. /package/dist/build/{p-ea577bae.entry.js.map → p-4a642ff9.entry.js.map} +0 -0
  330. /package/dist/build/{p-c8e79e30.entry.js.map → p-4cb8f3db.entry.js.map} +0 -0
  331. /package/dist/build/{p-d9fae6bd.entry.js.map → p-57fc0eb5.entry.js.map} +0 -0
  332. /package/dist/build/{p-cc3445fc.entry.js.map → p-5b93f608.entry.js.map} +0 -0
  333. /package/dist/build/{p-c3ba61ac.entry.js.map → p-5cecb014.entry.js.map} +0 -0
  334. /package/dist/build/{p-a5934232.entry.js.map → p-68ae68c8.entry.js.map} +0 -0
  335. /package/dist/build/{p-1ed4a75e.entry.js.map → p-6f3a4499.entry.js.map} +0 -0
  336. /package/dist/build/{p-1b5ec2b1.entry.js.map → p-716a92ae.entry.js.map} +0 -0
  337. /package/dist/build/{p-48efb6e4.entry.js.map → p-868d5746.entry.js.map} +0 -0
  338. /package/dist/build/{p-d044f441.entry.js.map → p-8d165db5.entry.js.map} +0 -0
  339. /package/dist/build/{p-f40f89a7.entry.js.map → p-955d149f.entry.js.map} +0 -0
  340. /package/dist/build/{p-cfe6ec9a.entry.js.map → p-9a9c8ce9.entry.js.map} +0 -0
  341. /package/dist/build/{p-3e393301.entry.js.map → p-9cc50361.entry.js.map} +0 -0
  342. /package/dist/build/{p-eec56c71.entry.js.map → p-b26d5130.entry.js.map} +0 -0
  343. /package/dist/build/{p-d8eb3b7b.entry.js.map → p-d19f3457.entry.js.map} +0 -0
  344. /package/dist/build/{p-46362798.entry.js.map → p-d31d6714.entry.js.map} +0 -0
  345. /package/dist/build/{p-d6ca5bce.entry.js.map → p-d9c32e3e.entry.js.map} +0 -0
  346. /package/dist/build/{p-fd53acd3.entry.js.map → p-dc01bfa8.entry.js.map} +0 -0
  347. /package/dist/build/{p-bf261165.entry.js.map → p-dceb94a4.entry.js.map} +0 -0
  348. /package/dist/build/{p-958f3c09.entry.js.map → p-e3b04c17.entry.js.map} +0 -0
  349. /package/dist/build/{p-65d9a61f.entry.js.map → p-ec082bfe.entry.js.map} +0 -0
  350. /package/dist/build/{p-036bb6f4.entry.js.map → p-fb51eccd.entry.js.map} +0 -0
  351. /package/dist/paperless/{p-d9d8c17c.entry.js.map → p-0a1cf938.entry.js.map} +0 -0
  352. /package/dist/paperless/{p-d70b3539.entry.js.map → p-0a6d3edd.entry.js.map} +0 -0
  353. /package/dist/paperless/{p-2bd123f4.entry.js.map → p-129d5cbd.entry.js.map} +0 -0
  354. /package/dist/paperless/{p-af468e9f.entry.js.map → p-14e20144.entry.js.map} +0 -0
  355. /package/dist/paperless/{p-0413fcd0.entry.js.map → p-250b3f90.entry.js.map} +0 -0
  356. /package/dist/paperless/{p-6d8852ca.entry.js.map → p-2f613a2a.entry.js.map} +0 -0
  357. /package/dist/paperless/{p-a56474ea.entry.js.map → p-2f821184.entry.js.map} +0 -0
  358. /package/dist/paperless/{p-14e63599.entry.js.map → p-35080e8e.entry.js.map} +0 -0
  359. /package/dist/paperless/{p-0bbd4d1c.entry.js.map → p-3a4ff7f6.entry.js.map} +0 -0
  360. /package/dist/paperless/{p-3a428a06.entry.js.map → p-3feb4bd9.entry.js.map} +0 -0
  361. /package/dist/paperless/{p-ea577bae.entry.js.map → p-4a642ff9.entry.js.map} +0 -0
  362. /package/dist/paperless/{p-c8e79e30.entry.js.map → p-4cb8f3db.entry.js.map} +0 -0
  363. /package/dist/paperless/{p-d9fae6bd.entry.js.map → p-57fc0eb5.entry.js.map} +0 -0
  364. /package/dist/paperless/{p-cc3445fc.entry.js.map → p-5b93f608.entry.js.map} +0 -0
  365. /package/dist/paperless/{p-c3ba61ac.entry.js.map → p-5cecb014.entry.js.map} +0 -0
  366. /package/dist/paperless/{p-a5934232.entry.js.map → p-68ae68c8.entry.js.map} +0 -0
  367. /package/dist/paperless/{p-1ed4a75e.entry.js.map → p-6f3a4499.entry.js.map} +0 -0
  368. /package/dist/paperless/{p-1b5ec2b1.entry.js.map → p-716a92ae.entry.js.map} +0 -0
  369. /package/dist/paperless/{p-48efb6e4.entry.js.map → p-868d5746.entry.js.map} +0 -0
  370. /package/dist/paperless/{p-d044f441.entry.js.map → p-8d165db5.entry.js.map} +0 -0
  371. /package/dist/paperless/{p-f40f89a7.entry.js.map → p-955d149f.entry.js.map} +0 -0
  372. /package/dist/paperless/{p-cfe6ec9a.entry.js.map → p-9a9c8ce9.entry.js.map} +0 -0
  373. /package/dist/paperless/{p-3e393301.entry.js.map → p-9cc50361.entry.js.map} +0 -0
  374. /package/dist/paperless/{p-eec56c71.entry.js.map → p-b26d5130.entry.js.map} +0 -0
  375. /package/dist/paperless/{p-d8eb3b7b.entry.js.map → p-d19f3457.entry.js.map} +0 -0
  376. /package/dist/paperless/{p-46362798.entry.js.map → p-d31d6714.entry.js.map} +0 -0
  377. /package/dist/paperless/{p-d6ca5bce.entry.js.map → p-d9c32e3e.entry.js.map} +0 -0
  378. /package/dist/paperless/{p-fd53acd3.entry.js.map → p-dc01bfa8.entry.js.map} +0 -0
  379. /package/dist/paperless/{p-bf261165.entry.js.map → p-dceb94a4.entry.js.map} +0 -0
  380. /package/dist/paperless/{p-958f3c09.entry.js.map → p-e3b04c17.entry.js.map} +0 -0
  381. /package/dist/paperless/{p-65d9a61f.entry.js.map → p-ec082bfe.entry.js.map} +0 -0
  382. /package/dist/paperless/{p-036bb6f4.entry.js.map → p-fb51eccd.entry.js.map} +0 -0
@@ -1,24 +1,56 @@
1
1
  import { h, Host } from "@stencil/core";
2
+ import { cva } from "class-variance-authority";
3
+ import { cn } from "../../../utils/cn";
4
+ const label = cva(['flex items-center justify-center gap-2', 'h-6 rounded-full'], {
5
+ variants: {
6
+ variant: {
7
+ positive: 'bg-positive-green-100 text-positive-green-800',
8
+ biased: 'bg-amber-100 text-amber-800',
9
+ negative: 'bg-negative-red-100 text-negative-red-800',
10
+ neutral: 'bg-supportive-lilac-100 text-supportive-lilac-900',
11
+ unavailable: 'bg-white-700 text-dark-teal-800',
12
+ },
13
+ iconOnly: {
14
+ false: 'px-2',
15
+ true: 'p-2 w-6',
16
+ },
17
+ keepMobileContent: {
18
+ false: null,
19
+ true: null,
20
+ },
21
+ },
22
+ compoundVariants: [
23
+ {
24
+ keepMobileContent: false,
25
+ iconOnly: false,
26
+ class: 'p-2 w-6 desktop-xs:w-auto desktop-xs:py-0',
27
+ },
28
+ ],
29
+ });
2
30
  export class Label {
3
31
  constructor() {
4
32
  this.variant = 'neutral';
5
- this.behavior = 'circle';
6
- this.iconPosition = 'start';
33
+ this.iconOnly = false;
7
34
  this.icon = undefined;
8
35
  this.iconFlip = undefined;
9
36
  this.iconRotate = undefined;
10
- this.size = 'default';
11
37
  this.keepMobileContent = false;
12
38
  }
13
39
  render() {
14
- return (h(Host, { key: '8ba10d3dc16336fa12a22be608713816e04c3aa0', class: "p-label" }, this.icon && this.iconPosition === 'start' && (h("p-icon", { key: '34f7daa79756f34cb957d9cfb1bb6f0e71ff5dc7', variant: this.icon, flip: this.iconFlip, rotate: this.iconRotate })), (this.behavior === 'circle' ||
15
- this.behavior === 'combination') && (h("div", { key: 'daf1ac4d3f85cbc542db3ff74de2901254b4758a', class: "circle" })), h("div", { key: 'f8481d947f4e51bd94c63179707816ca8e2b5696', class: "content" }, h("slot", { key: '81bf0d5bff0879b811d66234f3dfe6e03ce3b13f' })), this.icon && this.iconPosition === 'end' && (h("p-icon", { key: '46ebacc526e2f28a4b1a4c6df09bfaf18bd490be', variant: this.icon, flip: this.iconFlip, rotate: this.iconRotate }))));
40
+ return (h(Host, { key: 'b65dfe6ae11bfa1309561cd1aa1fb0c2c71b5535', class: 'p-label' }, h("div", { key: '4e6b4648f1778aadee757fab902bae7281f5a5ff', class: label({
41
+ variant: this.variant,
42
+ iconOnly: this.iconOnly,
43
+ keepMobileContent: this.keepMobileContent,
44
+ }) }, this.icon && (h("p-icon", { key: 'a1ef1bf1d58046c3ceeadb1def0030b547a6297c', class: 'flex-shrink-0', variant: this.icon, flip: this.iconFlip, rotate: this.iconRotate })), !this.iconOnly && (h("div", { key: '961a9f05c969fdb3b1d31f706a370084dd365ab1', class: cn('flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-sm', {
45
+ hidden: !this.keepMobileContent,
46
+ 'desktop-xs:block': !this.keepMobileContent,
47
+ }) }, h("slot", { key: 'ffa41b6d694819b6b438c4ea58485e78c41d34a6' }))))));
16
48
  }
17
49
  static get is() { return "p-label"; }
18
50
  static get encapsulation() { return "shadow"; }
19
51
  static get originalStyleUrls() {
20
52
  return {
21
- "$": ["label.component.scss"]
53
+ "$": ["label.component.css"]
22
54
  };
23
55
  }
24
56
  static get styleUrls() {
@@ -32,8 +64,8 @@ export class Label {
32
64
  "type": "string",
33
65
  "mutable": false,
34
66
  "complexType": {
35
- "original": "| 'neutral'\n\t\t| 'positive'\n\t\t| 'unbiased'\n\t\t| 'negative'\n\t\t| 'special'\n\t\t| 'info'",
36
- "resolved": "\"info\" | \"negative\" | \"neutral\" | \"positive\" | \"special\" | \"unbiased\"",
67
+ "original": "| 'positive'\n\t\t| 'biased'\n\t\t| 'negative'\n\t\t| 'neutral'\n\t\t| 'unavailable'",
68
+ "resolved": "\"biased\" | \"negative\" | \"neutral\" | \"positive\" | \"unavailable\"",
37
69
  "references": {}
38
70
  },
39
71
  "required": false,
@@ -48,45 +80,25 @@ export class Label {
48
80
  "reflect": true,
49
81
  "defaultValue": "'neutral'"
50
82
  },
51
- "behavior": {
52
- "type": "string",
83
+ "iconOnly": {
84
+ "type": "boolean",
53
85
  "mutable": false,
54
86
  "complexType": {
55
- "original": "| 'icon'\n\t\t| 'circle'\n\t\t| 'combination'\n\t\t| 'text'\n\t\t| 'icon-only'",
56
- "resolved": "\"circle\" | \"combination\" | \"icon\" | \"icon-only\" | \"text\"",
87
+ "original": "boolean",
88
+ "resolved": "boolean",
57
89
  "references": {}
58
90
  },
59
91
  "required": false,
60
92
  "optional": false,
61
93
  "docs": {
62
94
  "tags": [],
63
- "text": "Define the behavior of the label"
95
+ "text": "Wether to only show the icon"
64
96
  },
65
97
  "getter": false,
66
98
  "setter": false,
67
- "attribute": "behavior",
99
+ "attribute": "icon-only",
68
100
  "reflect": true,
69
- "defaultValue": "'circle'"
70
- },
71
- "iconPosition": {
72
- "type": "string",
73
- "mutable": false,
74
- "complexType": {
75
- "original": "'start' | 'end'",
76
- "resolved": "\"end\" | \"start\"",
77
- "references": {}
78
- },
79
- "required": false,
80
- "optional": false,
81
- "docs": {
82
- "tags": [],
83
- "text": "Icon position"
84
- },
85
- "getter": false,
86
- "setter": false,
87
- "attribute": "icon-position",
88
- "reflect": false,
89
- "defaultValue": "'start'"
101
+ "defaultValue": "false"
90
102
  },
91
103
  "icon": {
92
104
  "type": "string",
@@ -97,7 +109,7 @@ export class Label {
97
109
  "references": {
98
110
  "IconVariant": {
99
111
  "location": "import",
100
- "path": "../icon/icon.component",
112
+ "path": "../../atoms/icon/icon.component",
101
113
  "id": "src/components/atoms/icon/icon.component.tsx::IconVariant"
102
114
  }
103
115
  }
@@ -122,7 +134,7 @@ export class Label {
122
134
  "references": {
123
135
  "IconFlipOptions": {
124
136
  "location": "import",
125
- "path": "../icon/icon.component",
137
+ "path": "../../atoms/icon/icon.component",
126
138
  "id": "src/components/atoms/icon/icon.component.tsx::IconFlipOptions"
127
139
  }
128
140
  }
@@ -163,26 +175,6 @@ export class Label {
163
175
  "attribute": "icon-rotate",
164
176
  "reflect": false
165
177
  },
166
- "size": {
167
- "type": "string",
168
- "mutable": false,
169
- "complexType": {
170
- "original": "'small' | 'default'",
171
- "resolved": "\"default\" | \"small\"",
172
- "references": {}
173
- },
174
- "required": false,
175
- "optional": false,
176
- "docs": {
177
- "tags": [],
178
- "text": "The size of the label"
179
- },
180
- "getter": false,
181
- "setter": false,
182
- "attribute": "size",
183
- "reflect": true,
184
- "defaultValue": "'default'"
185
- },
186
178
  "keepMobileContent": {
187
179
  "type": "boolean",
188
180
  "mutable": false,
@@ -0,0 +1 @@
1
+ {"version":3,"file":"label.component.js","sourceRoot":"","sources":["../../../../src/components/molecules/label/label.component.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAGzD,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAC;AAEvC,MAAM,KAAK,GAAG,GAAG,CAChB,CAAC,wCAAwC,EAAE,kBAAkB,CAAC,EAC9D;IACC,QAAQ,EAAE;QACT,OAAO,EAAE;YACR,QAAQ,EAAE,+CAA+C;YACzD,MAAM,EAAE,8BAA8B;YACtC,QAAQ,EAAE,2CAA2C;YACrD,OAAO,EAAE,mDAAmD;YAC5D,WAAW,EAAE,iCAAiC;SAC9C;QACD,QAAQ,EAAE;YACT,KAAK,EAAE,MAAM;YACb,IAAI,EAAE,SAAS;SACf;QACD,iBAAiB,EAAE;YAClB,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,IAAI;SACV;KACD;IACD,gBAAgB,EAAE;QACjB;YACC,iBAAiB,EAAE,KAAK;YACxB,QAAQ,EAAE,KAAK;YACf,KAAK,EAAE,2CAA2C;SAClD;KACD;CACD,CACD,CAAC;AAOF,MAAM,OAAO,KAAK;;uBASE,SAAS;wBAKiB,KAAK;;;;iCAoBI,KAAK;;IAE3D,MAAM;QACL,OAAO,CACN,EAAC,IAAI,qDAAC,KAAK,EAAC,SAAS;YACpB,4DACC,KAAK,EAAE,KAAK,CAAC;oBACZ,OAAO,EAAE,IAAI,CAAC,OAAO;oBACrB,QAAQ,EAAE,IAAI,CAAC,QAAQ;oBACvB,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;iBACzC,CAAC;gBAED,IAAI,CAAC,IAAI,IAAI,CACb,+DACC,KAAK,EAAC,eAAe,EACrB,OAAO,EAAE,IAAI,CAAC,IAAI,EAClB,IAAI,EAAE,IAAI,CAAC,QAAQ,EACnB,MAAM,EAAE,IAAI,CAAC,UAAU,GACtB,CACF;gBAEA,CAAC,IAAI,CAAC,QAAQ,IAAI,CAClB,4DACC,KAAK,EAAE,EAAE,CACR,gEAAgE,EAChE;wBACC,MAAM,EAAE,CAAC,IAAI,CAAC,iBAAiB;wBAC/B,kBAAkB,EAAE,CAAC,IAAI,CAAC,iBAAiB;qBAC3C,CACD;oBAED,8DAAQ,CACH,CACN,CACI,CACA,CACP,CAAC;IACH,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, h, Host, Prop } from '@stencil/core';\nimport { RotateOptions } from '../../../types';\nimport { IconFlipOptions, IconVariant } from '../../atoms/icon/icon.component';\nimport { cva } from 'class-variance-authority';\nimport { cn } from '../../../utils/cn';\n\nconst label = cva(\n\t['flex items-center justify-center gap-2', 'h-6 rounded-full'],\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tpositive: 'bg-positive-green-100 text-positive-green-800',\n\t\t\t\tbiased: 'bg-amber-100 text-amber-800',\n\t\t\t\tnegative: 'bg-negative-red-100 text-negative-red-800',\n\t\t\t\tneutral: 'bg-supportive-lilac-100 text-supportive-lilac-900',\n\t\t\t\tunavailable: 'bg-white-700 text-dark-teal-800',\n\t\t\t},\n\t\t\ticonOnly: {\n\t\t\t\tfalse: 'px-2',\n\t\t\t\ttrue: 'p-2 w-6',\n\t\t\t},\n\t\t\tkeepMobileContent: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [\n\t\t\t{\n\t\t\t\tkeepMobileContent: false,\n\t\t\t\ticonOnly: false,\n\t\t\t\tclass: 'p-2 w-6 desktop-xs:w-auto desktop-xs:py-0',\n\t\t\t},\n\t\t],\n\t}\n);\n\n@Component({\n\ttag: 'p-label',\n\tstyleUrl: 'label.component.css',\n\tshadow: true,\n})\nexport class Label {\n\t/**\n\t * Variant of the label\n\t */\n\t@Prop({ reflect: true }) variant:\n\t\t| 'positive'\n\t\t| 'biased'\n\t\t| 'negative'\n\t\t| 'neutral'\n\t\t| 'unavailable' = 'neutral';\n\n\t/**\n\t * Wether to only show the icon\n\t */\n\t@Prop({ reflect: true }) iconOnly: boolean = false;\n\n\t/**\n\t * Icon to show on the label\n\t */\n\t@Prop({ reflect: true }) icon: IconVariant;\n\n\t/**\n\t * Icon flip\n\t */\n\t@Prop() iconFlip: IconFlipOptions;\n\n\t/**\n\t * Icon rotate\n\t */\n\t@Prop() iconRotate: RotateOptions;\n\n\t/**\n\t * Wether to keep the content on mobile\n\t */\n\t@Prop({ reflect: true }) keepMobileContent: boolean = false;\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class='p-label'>\n\t\t\t\t<div\n\t\t\t\t\tclass={label({\n\t\t\t\t\t\tvariant: this.variant,\n\t\t\t\t\t\ticonOnly: this.iconOnly,\n\t\t\t\t\t\tkeepMobileContent: this.keepMobileContent,\n\t\t\t\t\t})}\n\t\t\t\t>\n\t\t\t\t\t{this.icon && (\n\t\t\t\t\t\t<p-icon\n\t\t\t\t\t\t\tclass='flex-shrink-0'\n\t\t\t\t\t\t\tvariant={this.icon}\n\t\t\t\t\t\t\tflip={this.iconFlip}\n\t\t\t\t\t\t\trotate={this.iconRotate}\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{!this.iconOnly && (\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclass={cn(\n\t\t\t\t\t\t\t\t'flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-sm',\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\thidden: !this.keepMobileContent,\n\t\t\t\t\t\t\t\t\t'desktop-xs:block': !this.keepMobileContent,\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<slot />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"]}
@@ -43,10 +43,10 @@ export class NavigationItem {
43
43
  render() {
44
44
  const TagType = this.as;
45
45
  const active = this.active || this.class?.includes('active');
46
- return (h(Host, { key: 'd87d8e76973078637e8c2d184b495d630f4fd556', class: cn('p-navigation-item inline-block', this.class) }, h(TagType, { key: 'db37312225ef973cb75c71b0b0b918ed2f8799c3', class: navigationItem({
46
+ return (h(Host, { key: 'f87e67e61239b95e49d93b9bd07686b7b70477a9', class: cn('p-navigation-item inline-block', this.class) }, h(TagType, { key: '67c327313aa12d7fe54389bc298ca23b3e17437a', class: navigationItem({
47
47
  icon: !!this.icon,
48
48
  active,
49
- }), href: this.href, target: this.target }, h("div", { key: '5f56c4395729260e25e6a71da5ac716b09193bd5', class: navigationItemIconContainer({ active }) }, h("p-icon", { key: '0cc4e9b0f0cdf1ad574ef8ba5b8b80f3ce376d3f', variant: this.icon })), h("span", { key: 'a52984e8227ec3af005d1b240944ff85ba58a37e', class: this.counter && 'has-counter' }, h("slot", { key: 'eaa1a3e88f0d7517fc383d96fae3194522e4efb1' })), !!this.counter && this.counter !== '0' && (h("p-badge", { key: 'eb7b69d6235d7f1c72ca1045255d70764a9b179d' }, this.counter)), !!this.loading && h("p-loader", { key: '081c5f8b49dfb3a80429815de87f717cd70e39ae', class: 'ml-auto' }))));
49
+ }), href: this.href, target: this.target }, h("div", { key: 'b1de70235c4bb1bff509db3f1723c106e50614d9', class: navigationItemIconContainer({ active }) }, h("p-icon", { key: 'debe4fce9441178c12c4198cab3c94247db0cd49', variant: this.icon })), h("span", { key: 'f6e9daee27dc7fc467c1d6e5d50b3f2d9aaa3cf8', class: this.counter && 'has-counter' }, h("slot", { key: 'c10c72c8c3ad0f8b238ed69636ca2b8e3291dc44' })), !!this.counter && this.counter !== '0' && (h("p-badge", { key: '4bb1889d85efdac8e80a398fcb3769dc55b26ee3' }, this.counter)), !!this.loading && h("p-loader", { key: '80b43031e00df08c342df9872caa928dcbc87650', class: 'ml-auto' }))));
50
50
  }
51
51
  static get is() { return "p-navigation-item"; }
52
52
  static get originalStyleUrls() {
@@ -4,7 +4,7 @@ export class NavigationSection {
4
4
  this.header = undefined;
5
5
  }
6
6
  render() {
7
- return (h(Host, { key: '796e5ed44de63dc1f59630dad492272b6451ed0e', class: 'p-navigation-section flex flex-col gap-2' }, this.header?.length > 0 && (h("p-navigation-title", { key: '09d6b3680a110b5cd88d5cc9b5265c4b604c8ab3' }, this.header)), h("div", { key: '646ea16ad875dcfdf40aeb12657d946c39f44b3b', class: 'flex flex-col' }, h("slot", { key: 'c11b12a07b3a65b5ca1e8d61910d8a5160e32ea7' }))));
7
+ return (h(Host, { key: '2498f9f2121a61e9a086faa32e676ac8a59bbe7b', class: 'p-navigation-section flex flex-col gap-2' }, this.header?.length > 0 && (h("p-navigation-title", { key: '04a310fc04574b350c1d36cb57b23537a25a8b6e' }, this.header)), h("div", { key: 'd444fee83c080992f04ed3e0c977b8687198633c', class: 'flex flex-col' }, h("slot", { key: 'fde7c2c5be6223b0ae89c2708c74bd0d840de2f1' }))));
8
8
  }
9
9
  static get is() { return "p-navigation-section"; }
10
10
  static get originalStyleUrls() {
@@ -16,7 +16,7 @@ export class Pagination {
16
16
  this._generate();
17
17
  }
18
18
  render() {
19
- return (h(Host, { key: '81016401bd076834a83260a0a081fc738867c08e', class: `p-pagination ${this.hideOnSinglePage && this._set?.length === 3 && 'hidden'}` }, this._set?.map(p => {
19
+ return (h(Host, { key: 'b78ab074e0cbaf260070e2ae6689c58d44474132', class: `p-pagination ${this.hideOnSinglePage && this._set?.length === 3 && 'hidden'}` }, this._set?.map(p => {
20
20
  if (p.type === 'previous' || p.type === 'next') {
21
21
  return (h("p-pagination-item", { onClick: () => p.type === 'previous'
22
22
  ? this._previousClick()
@@ -26,7 +26,7 @@ export class Profile {
26
26
  }
27
27
  render() {
28
28
  const content = this._getContent();
29
- return (h(Host, { key: '1ff9fb75ed53f1e4c9e53dd942f150fae77484d4', class: 'p-profile inline-block w-inherit' }, this._hasDropdownSlot ? (h("p-dropdown", { class: 'block', strategy: 'absolute', placement: this.dropdownLocation, applyFullWidth: true, applyMaxWidth: false, onIsOpen: ev => (this._dropdownOpen = ev.detail) }, h("p-button", { variant: 'dropdown', chevron: this._dropdownOpen ? 'up' : 'down', active: this._dropdownOpen, slot: 'trigger', size: 'lg', class: 'w-full' }, content), h("div", { slot: 'items' }, h("slot", { name: 'dropdown', onSlotchange: () => this._checkDropdownSlot() })))) : (content)));
29
+ return (h(Host, { key: '9313ef616b33a4491b7a8bd6ebe647b3e334c168', class: 'p-profile inline-block w-inherit' }, this._hasDropdownSlot ? (h("p-dropdown", { class: 'block', strategy: 'absolute', placement: this.dropdownLocation, applyFullWidth: true, applyMaxWidth: false, onIsOpen: ev => (this._dropdownOpen = ev.detail) }, h("p-button", { variant: 'dropdown', chevron: this._dropdownOpen ? 'up' : 'down', active: this._dropdownOpen, slot: 'trigger', size: 'lg', class: 'w-full' }, content), h("div", { slot: 'items' }, h("slot", { name: 'dropdown', onSlotchange: () => this._checkDropdownSlot() })))) : (content)));
30
30
  }
31
31
  slotchange() {
32
32
  this._checkDropdownSlot();
@@ -174,7 +174,7 @@ export class Select {
174
174
  }
175
175
  }
176
176
  render() {
177
- return (h(Host, { key: '9090270a3b0048ffbe8e8c37cbbcca384daf5f4d', class: 'p-select' }, h("p-dropdown", { key: '6050a5d6358631b969c9675e5ae070def18b7f58', disableTriggerClick: true, calculateWidth: true, insideClick: true, scrollable: this.enableAutocomplete ? 'large' : true, show: this._showDropdown, onIsOpen: ev => this._onDropdownOpen(ev) }, h("p-field-container", { key: '074697f053f77cd31719f4b892cdd329061f8d9f', slot: 'trigger', prefix: this.prefix, label: this.label, helper: this.helper, required: this.required, error: this.error, errorPlacement: 'top-start', forceShowTooltip: this.error?.length && this._showDropdown }, h("p-button", { key: '0b5986bf4408654eba76d85a5d43988971af866b', class: 'w-full', slot: 'content', variant: 'secondary', size: this.size, chevron: this.showChevron, disabled: this.disabled, active: this._showDropdown, icon: this.icon, onClick: ev => this._onClick(ev) }, h("div", { key: '6bb8b4780aca7a525377c55611fba654764deaf5', class: 'relative flex-1', ref: ref => (this._inputRef = ref) }, this._displayValue))), this.loading ? this._getLoadingItems() : this._getItems(), this.showAddItem && this._getAddItem())));
177
+ return (h(Host, { key: 'bbcf5a411b3516151b5cde49e83e637e8f275d6d', class: 'p-select' }, h("p-dropdown", { key: '0a75a3e234fe53fd205cda607860b12ae864c998', disableTriggerClick: true, calculateWidth: true, insideClick: true, scrollable: this.enableAutocomplete ? 'large' : true, show: this._showDropdown, onIsOpen: ev => this._onDropdownOpen(ev) }, h("p-field-container", { key: 'd09b7269c07ab493d9372481165f88c383210230', slot: 'trigger', prefix: this.prefix, label: this.label, helper: this.helper, required: this.required, error: this.error, errorPlacement: 'top-start', forceShowTooltip: this.error?.length && this._showDropdown }, h("p-button", { key: 'ae1626f92d3a509e0cab45faa11a9965b12d27aa', class: 'w-full', slot: 'content', variant: 'secondary', size: this.size, chevron: this.showChevron, disabled: this.disabled, active: this._showDropdown, icon: this.icon, onClick: ev => this._onClick(ev) }, h("div", { key: '9d53222285fdc827c4df5468e38a491399496f01', class: 'relative flex-1', ref: ref => (this._inputRef = ref) }, this._displayValue))), this.loading ? this._getLoadingItems() : this._getItems(), this.showAddItem && this._getAddItem())));
178
178
  }
179
179
  documentClickHandler({ target }) {
180
180
  if (!this._showDropdown || childOf(target, this._el)) {
@@ -91,7 +91,7 @@ export class Stepper {
91
91
  this._generateSteps(true);
92
92
  }
93
93
  render() {
94
- return (h(Host, { key: '08618e878d073d704ee23f62df4c855d4a0cb86d', class: 'p-stepper' }, h("slot", { key: 'd8dd06cb1ee5d662ea3b8aa4379b0d1e8877dbbd', onSlotchange: this._onSlotChange })));
94
+ return (h(Host, { key: 'dab66ec915bdfc6db37204746035c9fa25beb364', class: 'p-stepper' }, h("slot", { key: '614787c115b5f21dd50d589acfb830c84fc84173', onSlotchange: this._onSlotChange })));
95
95
  }
96
96
  _onActiveStepChange() {
97
97
  this._generateSteps();
@@ -83,7 +83,7 @@ export class TableCell {
83
83
  };
84
84
  }
85
85
  render() {
86
- return (h(Host, { key: '9d0c40d23049e13123b42e026cf617abe4e5f5f0', class: {
86
+ return (h(Host, { key: 'e9622200c7747ae2dd3611252f87c1781ecfc0c0', class: {
87
87
  'p-table-cell': true,
88
88
  [`variant-${this.variant}`]: true,
89
89
  ...this._getColumnClasses(),
@@ -35,7 +35,7 @@ export class TableFooter {
35
35
  }
36
36
  render() {
37
37
  const hidePageSizeSelect = this.hideOnSinglePage && this.total < this.pageSizeOptions?.[0];
38
- return (h(Host, { key: '5d741b128761060367791b642d9105ab84b85fbd', class: `p-table-footer ${!this.enablePageSize && 'page-size-disabled'} ${!this.enablePagination && 'pagination-disabled'} ${!this.enableExport && 'export-disabled'}` }, !this.loading && this.enablePagination && this.enablePageSize && (h("p-page-size-select", { key: 'f2cd843ef2002d2c5efeeb6e0b0cc19e9ddcc459', class: !hidePageSizeSelect && 'hidden desktop-xs:flex', hidden: hidePageSizeSelect, size: this.pageSize, sizeOptions: this.pageSizeOptions, onSizeChange: ({ detail }) => this._changePageSize(detail) })), this.loading && (h("p-loader", { key: 'ba98725795479f4394f389af953a3691bc652504', variant: 'ghost', class: 'h-8 w-full rounded' })), !this.loading && this.enablePagination && (h("p-pagination", { key: 'a450cb9a2b7fcbb0ee63cd33466d4df2a34938e6', pageSize: this.pageSize, total: this.total, page: this.page, hideOnSinglePage: this.hideOnSinglePage, onPageChange: ({ detail }) => this.pageChange.emit(detail) })), !this.loading && this.enableExport && (h("p-button", { key: 'ae71744adf3ed536d30570e69d7f54f6bd411028', class: 'hidden desktop-xs:flex', variant: 'secondary', size: 'sm', icon: 'download', onClick: () => this.export.emit() }, formatTranslation(this._locales.export)))));
38
+ return (h(Host, { key: '16588e28b4c1a74e0d8fd1324ad0ca5f3d9764ec', class: `p-table-footer ${!this.enablePageSize && 'page-size-disabled'} ${!this.enablePagination && 'pagination-disabled'} ${!this.enableExport && 'export-disabled'}` }, !this.loading && this.enablePagination && this.enablePageSize && (h("p-page-size-select", { key: 'a09d397cc4f1792809aa2226280baf00db625b51', class: !hidePageSizeSelect && 'hidden desktop-xs:flex', hidden: hidePageSizeSelect, size: this.pageSize, sizeOptions: this.pageSizeOptions, onSizeChange: ({ detail }) => this._changePageSize(detail) })), this.loading && (h("p-loader", { key: '949f8e777163603ad66142ec7da8957c8eeb4600', variant: 'ghost', class: 'h-8 w-full rounded' })), !this.loading && this.enablePagination && (h("p-pagination", { key: '296c3e4d342def9fd72fff8c6d27561b3fbab522', pageSize: this.pageSize, total: this.total, page: this.page, hideOnSinglePage: this.hideOnSinglePage, onPageChange: ({ detail }) => this.pageChange.emit(detail) })), !this.loading && this.enableExport && (h("p-button", { key: 'be27ba3f224e267b80f43d03d07be3359f22ef76', class: 'hidden desktop-xs:flex', variant: 'secondary', size: 'sm', icon: 'download', onClick: () => this.export.emit() }, formatTranslation(this._locales.export)))));
39
39
  }
40
40
  async _setLocales() {
41
41
  this._locales = await getLocaleComponentStrings(this._el);
@@ -80,7 +80,7 @@ export class TableHeader {
80
80
  : this._defaultActionButtonTemplate(mobile ? this.itemsSelectedAmount : 0)));
81
81
  }
82
82
  _getLabel(amount, variant = 'default') {
83
- return (h("p-label", { size: 'small', variant: 'negative', behavior: 'text', class: `ml-1 ${variant === 'default'
83
+ return (h("p-badge", { class: `ml-1 ${variant === 'default'
84
84
  ? 'hidden desktop-xs:flex'
85
85
  : 'flex desktop-xs:hidden'}` }, amount));
86
86
  }
@@ -1 +1 @@
1
- {"version":3,"file":"table-header.component.js","sourceRoot":"","sources":["../../../../src/components/molecules/table-header/table-header.component.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,SAAS,EACT,OAAO,EACP,KAAK,EAEL,CAAC,EACD,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,KAAK,GACL,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAGnE,OAAO,EACN,iBAAiB,EACjB,yBAAyB,GACzB,MAAM,6BAA6B,CAAC;AAUrC,MAAM,OAAO,WAAW;;4BAkBe,EAAE;;uBAUb,KAAK;4BAKA,IAAI;mCAKE,CAAC;;4BAUP,IAAI;mCAKG,IAAI;;oCAW1C,IAAI,CAAC,4BAA4B;4BAKF,IAAI;6BAKH,KAAK;0BAKJ,QAAQ;;4BAUO,KAAK;oCAMrD,IAAI,CAAC,4BAA4B;wBA0CD,EAAE;;IAxI3B,4BAA4B,GAAiB,GAAG,EAAE,CACzD,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,M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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {\n\tComponent,\n\tElement,\n\tEvent,\n\tEventEmitter,\n\th,\n\tHost,\n\tListen,\n\tProp,\n\tState,\n} from '@stencil/core';\nimport { debounceTime, distinctUntilChanged, Subject } from 'rxjs';\nimport { IconVariant } from '../../../components';\nimport { QuickFilter } from '../../../types/table';\nimport {\n\tformatTranslation,\n\tgetLocaleComponentStrings,\n} from '../../../utils/localization';\n\nexport type templateFunc = () => string;\nexport type buttonTemplateFunc = (amount: number) => string;\n\n@Component({\n\ttag: 'p-table-header',\n\tstyleUrl: 'table-header.component.scss',\n\tshadow: true,\n})\nexport class TableHeader {\n\tprivate _defaultFilterButtonTemplate: templateFunc = () =>\n\t\tformatTranslation(this._locales.filter);\n\tprivate _defaultActionButtonTemplate: buttonTemplateFunc = (amount: number) =>\n\t\tthis.actionText\n\t\t\t? this.actionText\n\t\t\t: formatTranslation(\n\t\t\t\t\tamount === 0\n\t\t\t\t\t\t? this._locales.edit\n\t\t\t\t\t\t: amount === 1\n\t\t\t\t\t\t? this._locales.edit_single\n\t\t\t\t\t\t: this._locales.edit_plural,\n\t\t\t\t\t{ amount }\n\t\t\t );\n\n\t/**\n\t * Quick filters to show\n\t */\n\t@Prop() quickFilters: QuickFilter[] = [];\n\n\t/**\n\t * Active quick filter identifier\n\t */\n\t@Prop() activeQuickFilterIdentifier: string;\n\n\t/**\n\t * Wether we want to show loading state\n\t */\n\t@Prop() loading: boolean = false;\n\n\t/**\n\t * Wether to show the search input\n\t */\n\t@Prop() enableSearch: boolean = true;\n\n\t/**\n\t * The amount of items that are selected\n\t */\n\t@Prop() itemsSelectedAmount: number = 0;\n\n\t/**\n\t * The query to show in the search bar\n\t */\n\t@Prop({ mutable: true }) query: string;\n\n\t/**\n\t * Wether to show the filter button\n\t */\n\t@Prop() enableFilter: boolean = true;\n\n\t/**\n\t * Wether to show the filter button on desktop\n\t */\n\t@Prop() enableFilterDesktop: boolean = true;\n\n\t/**\n\t * The amount of filters being selected\n\t */\n\t@Prop() selectedFiltersAmount: number;\n\n\t/**\n\t * The template for the filter button text\n\t */\n\t@Prop() filterButtonTemplate: templateFunc =\n\t\tthis._defaultFilterButtonTemplate;\n\n\t/**\n\t * Wether to show the action button\n\t */\n\t@Prop() enableAction: boolean = true;\n\n\t/**\n\t * Wether the action button is loading\n\t */\n\t@Prop() actionLoading: boolean = false;\n\n\t/**\n\t * The action button icon\n\t */\n\t@Prop() actionIcon: IconVariant = 'pencil';\n\n\t/**\n\t * The action button text if changed\n\t */\n\t@Prop() actionText: string;\n\n\t/**\n\t * Wether to enable the action button\n\t */\n\t@Prop({ mutable: true }) canUseAction: boolean = false;\n\n\t/**\n\t * The template for the action button text\n\t */\n\t@Prop() actionButtonTemplate: buttonTemplateFunc =\n\t\tthis._defaultActionButtonTemplate;\n\n\t/**\n\t * Event when one of the quick filters is clicked\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tquickFilter: EventEmitter<QuickFilter>;\n\n\t/**\n\t * Event when the query changes\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tqueryChange: EventEmitter<string>;\n\n\t/**\n\t * Event when the filter button is clicked\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tfilter: EventEmitter<null>;\n\n\t/**\n\t * Event when the action button is clicked\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\taction: EventEmitter<null>;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t/**\n\t * Locales used for this component\n\t */\n\t@State() private _locales: any = {};\n\n\tprivate _queryObserver = new Subject<string>();\n\n\tcomponentWillLoad() {\n\t\tthis._setLocales();\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis._queryObserver\n\t\t\t.pipe(debounceTime(300), distinctUntilChanged())\n\t\t\t.subscribe(value => this.queryChange.emit(value));\n\t}\n\n\trender() {\n\t\tconst activeQuickFilter = this.quickFilters.find(\n\t\t\tf => f.identifier === this.activeQuickFilterIdentifier\n\t\t);\n\t\tconst mobileTotal =\n\t\t\t(this.selectedFiltersAmount || 0) + (activeQuickFilter?.default ? 0 : 1);\n\n\t\tconst hasCustomFilterSlot = !!this._el.querySelector(\n\t\t\t':scope > [slot=\"custom-filter\"]'\n\t\t);\n\n\t\tconst hasCustomActionsSlot = !!this._el.querySelector(\n\t\t\t':scope > [slot=\"custom-actions\"]'\n\t\t);\n\n\t\treturn (\n\t\t\t<Host class='p-table-header'>\n\t\t\t\t{this.loading && (\n\t\t\t\t\t<p-loader\n\t\t\t\t\t\tvariant='ghost'\n\t\t\t\t\t\tclass='hidden h-8 w-3/4 rounded desktop-xs:flex'\n\t\t\t\t\t></p-loader>\n\t\t\t\t)}\n\n\t\t\t\t{!this.loading &&\n\t\t\t\t\t(hasCustomFilterSlot || this.quickFilters.length > 0) && (\n\t\t\t\t\t\t<div class='left-side flex flex-col justify-start gap-4 desktop-xs:flex-row'>\n\t\t\t\t\t\t\t{hasCustomFilterSlot && <slot name='custom-filter' />}\n\n\t\t\t\t\t\t\t{this.quickFilters.length > 0 && (\n\t\t\t\t\t\t\t\t<p-segment-container class='hidden desktop-xs:flex'>\n\t\t\t\t\t\t\t\t\t{this.quickFilters.map(item => (\n\t\t\t\t\t\t\t\t\t\t<p-segment-item\n\t\t\t\t\t\t\t\t\t\t\tactive={\n\t\t\t\t\t\t\t\t\t\t\t\titem.identifier === this.activeQuickFilterIdentifier\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tonClick={() => this.quickFilter.emit(item)}\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t{typeof item.text === 'string' ? item.text : item.text()}{' '}\n\t\t\t\t\t\t\t\t\t\t\t{item?.count >= 0 ? `(${item.count})` : ''}\n\t\t\t\t\t\t\t\t\t\t</p-segment-item>\n\t\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t\t</p-segment-container>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\n\t\t\t\t<div class='right-side flex flex-col justify-end gap-4 desktop-xs:flex-row'>\n\t\t\t\t\t{this.enableSearch && (\n\t\t\t\t\t\t<p-field\n\t\t\t\t\t\t\ticon='search'\n\t\t\t\t\t\t\tsize='sm'\n\t\t\t\t\t\t\tclass='desktop-xs:w-48'\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\ttype='text'\n\t\t\t\t\t\t\t\tslot='input'\n\t\t\t\t\t\t\t\tplaceholder='Zoeken...'\n\t\t\t\t\t\t\t\tvalue={this.query}\n\t\t\t\t\t\t\t\tonInput={ev =>\n\t\t\t\t\t\t\t\t\tthis._queryObserver.next(\n\t\t\t\t\t\t\t\t\t\t(ev.target as HTMLInputElement).value\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</p-field>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{this.enableFilter && (\n\t\t\t\t\t\t<p-button\n\t\t\t\t\t\t\ticon='filter'\n\t\t\t\t\t\t\tvariant='secondary'\n\t\t\t\t\t\t\tsize='sm'\n\t\t\t\t\t\t\tclass={`w-full ${\n\t\t\t\t\t\t\t\tthis.enableFilterDesktop\n\t\t\t\t\t\t\t\t\t? 'desktop-xs:w-auto'\n\t\t\t\t\t\t\t\t\t: 'desktop-xs:hidden'\n\t\t\t\t\t\t\t}`}\n\t\t\t\t\t\t\tonClick={() => this.filter.emit()}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{this.filterButtonTemplate\n\t\t\t\t\t\t\t\t? this.filterButtonTemplate()\n\t\t\t\t\t\t\t\t: this._defaultFilterButtonTemplate()}\n\t\t\t\t\t\t\t{this.selectedFiltersAmount &&\n\t\t\t\t\t\t\t\tthis._getLabel(this.selectedFiltersAmount)}\n\t\t\t\t\t\t\t{mobileTotal > 0 && this._getLabel(mobileTotal, 'mobile')}\n\t\t\t\t\t\t</p-button>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{this.enableAction && this._buttonTemplate()}\n\n\t\t\t\t\t{hasCustomActionsSlot && <slot name='custom-actions' />}\n\t\t\t\t</div>\n\n\t\t\t\t{this.enableAction && this.canUseAction && (\n\t\t\t\t\t<div class='fixed bottom-0 left-0 block w-full border border-solid border-transparent border-t-mystic-dark bg-white p-4 desktop-xs:hidden'>\n\t\t\t\t\t\t{this._buttonTemplate(true)}\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t@Listen('localeChanged', { target: 'body' })\n\tprivate async _setLocales(): Promise<void> {\n\t\tthis._locales = await getLocaleComponentStrings(this._el);\n\t}\n\n\tprivate _buttonTemplate(mobile = false) {\n\t\treturn (\n\t\t\t<p-button\n\t\t\t\tclass={mobile ? 'w-full' : 'hidden desktop-xs:flex'}\n\t\t\t\ticon={this.actionIcon}\n\t\t\t\tsize='sm'\n\t\t\t\tdisabled={!this.canUseAction}\n\t\t\t\tonClick={() => this.action.emit()}\n\t\t\t\tloading={this.actionLoading}\n\t\t\t>\n\t\t\t\t{this.actionButtonTemplate\n\t\t\t\t\t? this.actionButtonTemplate(mobile ? this.itemsSelectedAmount : 0)\n\t\t\t\t\t: this._defaultActionButtonTemplate(\n\t\t\t\t\t\t\tmobile ? this.itemsSelectedAmount : 0\n\t\t\t\t\t )}\n\t\t\t</p-button>\n\t\t);\n\t}\n\n\tprivate _getLabel(amount, variant: 'mobile' | 'default' = 'default') {\n\t\treturn (\n\t\t\t<p-label\n\t\t\t\tsize='small'\n\t\t\t\tvariant='negative'\n\t\t\t\tbehavior='text'\n\t\t\t\tclass={`ml-1 ${\n\t\t\t\t\tvariant === 'default'\n\t\t\t\t\t\t? 'hidden desktop-xs:flex'\n\t\t\t\t\t\t: 'flex desktop-xs:hidden'\n\t\t\t\t}`}\n\t\t\t>\n\t\t\t\t{amount}\n\t\t\t</p-label>\n\t\t);\n\t}\n}\n"]}
1
+ {"version":3,"file":"table-header.component.js","sourceRoot":"","sources":["../../../../src/components/molecules/table-header/table-header.component.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,SAAS,EACT,OAAO,EACP,KAAK,EAEL,CAAC,EACD,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,KAAK,GACL,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAGnE,OAAO,EACN,iBAAiB,EACjB,yBAAyB,GACzB,MAAM,6BAA6B,CAAC;AAUrC,MAAM,OAAO,WAAW;;4BAkBe,EAAE;;uBAUb,KAAK;4BAKA,IAAI;mCAKE,CAAC;;4BAUP,IAAI;mCAKG,IAAI;;oCAW1C,IAAI,CAAC,4BAA4B;4BAKF,IAAI;6BAKH,KAAK;0BAKJ,QAAQ;;4BAUO,KAAK;oCAMrD,IAAI,CAAC,4BAA4B;wBA0CD,EAAE;;IAxI3B,4BAA4B,GAAiB,GAAG,EAAE,CACzD,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IACjC,4BAA4B,GAAuB,CAAC,MAAc,EAAE,EAAE,CAC7E,IAAI,CAAC,UAAU;QACd,CAAC,CAAC,IAAI,CAAC,UAAU;QACjB,CAAC,CAAC,iBAAiB,CACjB,MAAM,KAAK,CAAC;YACX,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI;YACpB,CAAC,CAAC,MAAM,KAAK,CAAC;gBACd,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW;gBAC3B,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW,EAC5B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AAa,IAE1B,IAAI,CAAC,oBAAoB;YACzB,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC;YAClE,CAAC,CAAC,IAAI,CAAC,4BAA4B,CACjC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,CACpC,CACM,CACX,CAAC;IACH,CAAC;IAEO,SAAS,CAAC,MAAM,EAAE,UAAgC,SAAS;QAClE,OAAO,CACN,eACC,KAAK,EAAE,QACN,OAAO,KAAK,SAAS;gBACpB,CAAC,CAAC,wBAAwB;gBAC1B,CAAC,CAAC,wBACJ,EAAE,IAED,MAAM,CACE,CACV,CAAC;IACH,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {\n\tComponent,\n\tElement,\n\tEvent,\n\tEventEmitter,\n\th,\n\tHost,\n\tListen,\n\tProp,\n\tState,\n} from '@stencil/core';\nimport { debounceTime, distinctUntilChanged, Subject } from 'rxjs';\nimport { IconVariant } from '../../../components';\nimport { QuickFilter } from '../../../types/table';\nimport {\n\tformatTranslation,\n\tgetLocaleComponentStrings,\n} from '../../../utils/localization';\n\nexport type templateFunc = () => string;\nexport type buttonTemplateFunc = (amount: number) => string;\n\n@Component({\n\ttag: 'p-table-header',\n\tstyleUrl: 'table-header.component.scss',\n\tshadow: true,\n})\nexport class TableHeader {\n\tprivate _defaultFilterButtonTemplate: templateFunc = () =>\n\t\tformatTranslation(this._locales.filter);\n\tprivate _defaultActionButtonTemplate: buttonTemplateFunc = (amount: number) =>\n\t\tthis.actionText\n\t\t\t? this.actionText\n\t\t\t: formatTranslation(\n\t\t\t\t\tamount === 0\n\t\t\t\t\t\t? this._locales.edit\n\t\t\t\t\t\t: amount === 1\n\t\t\t\t\t\t? this._locales.edit_single\n\t\t\t\t\t\t: this._locales.edit_plural,\n\t\t\t\t\t{ amount }\n\t\t\t );\n\n\t/**\n\t * Quick filters to show\n\t */\n\t@Prop() quickFilters: QuickFilter[] = [];\n\n\t/**\n\t * Active quick filter identifier\n\t */\n\t@Prop() activeQuickFilterIdentifier: string;\n\n\t/**\n\t * Wether we want to show loading state\n\t */\n\t@Prop() loading: boolean = false;\n\n\t/**\n\t * Wether to show the search input\n\t */\n\t@Prop() enableSearch: boolean = true;\n\n\t/**\n\t * The amount of items that are selected\n\t */\n\t@Prop() itemsSelectedAmount: number = 0;\n\n\t/**\n\t * The query to show in the search bar\n\t */\n\t@Prop({ mutable: true }) query: string;\n\n\t/**\n\t * Wether to show the filter button\n\t */\n\t@Prop() enableFilter: boolean = true;\n\n\t/**\n\t * Wether to show the filter button on desktop\n\t */\n\t@Prop() enableFilterDesktop: boolean = true;\n\n\t/**\n\t * The amount of filters being selected\n\t */\n\t@Prop() selectedFiltersAmount: number;\n\n\t/**\n\t * The template for the filter button text\n\t */\n\t@Prop() filterButtonTemplate: templateFunc =\n\t\tthis._defaultFilterButtonTemplate;\n\n\t/**\n\t * Wether to show the action button\n\t */\n\t@Prop() enableAction: boolean = true;\n\n\t/**\n\t * Wether the action button is loading\n\t */\n\t@Prop() actionLoading: boolean = false;\n\n\t/**\n\t * The action button icon\n\t */\n\t@Prop() actionIcon: IconVariant = 'pencil';\n\n\t/**\n\t * The action button text if changed\n\t */\n\t@Prop() actionText: string;\n\n\t/**\n\t * Wether to enable the action button\n\t */\n\t@Prop({ mutable: true }) canUseAction: boolean = false;\n\n\t/**\n\t * The template for the action button text\n\t */\n\t@Prop() actionButtonTemplate: buttonTemplateFunc =\n\t\tthis._defaultActionButtonTemplate;\n\n\t/**\n\t * Event when one of the quick filters is clicked\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tquickFilter: EventEmitter<QuickFilter>;\n\n\t/**\n\t * Event when the query changes\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tqueryChange: EventEmitter<string>;\n\n\t/**\n\t * Event when the filter button is clicked\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tfilter: EventEmitter<null>;\n\n\t/**\n\t * Event when the action button is clicked\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\taction: EventEmitter<null>;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t/**\n\t * Locales used for this component\n\t */\n\t@State() private _locales: any = {};\n\n\tprivate _queryObserver = new Subject<string>();\n\n\tcomponentWillLoad() {\n\t\tthis._setLocales();\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis._queryObserver\n\t\t\t.pipe(debounceTime(300), distinctUntilChanged())\n\t\t\t.subscribe(value => this.queryChange.emit(value));\n\t}\n\n\trender() {\n\t\tconst activeQuickFilter = this.quickFilters.find(\n\t\t\tf => f.identifier === this.activeQuickFilterIdentifier\n\t\t);\n\t\tconst mobileTotal =\n\t\t\t(this.selectedFiltersAmount || 0) + (activeQuickFilter?.default ? 0 : 1);\n\n\t\tconst hasCustomFilterSlot = !!this._el.querySelector(\n\t\t\t':scope > [slot=\"custom-filter\"]'\n\t\t);\n\n\t\tconst hasCustomActionsSlot = !!this._el.querySelector(\n\t\t\t':scope > [slot=\"custom-actions\"]'\n\t\t);\n\n\t\treturn (\n\t\t\t<Host class='p-table-header'>\n\t\t\t\t{this.loading && (\n\t\t\t\t\t<p-loader\n\t\t\t\t\t\tvariant='ghost'\n\t\t\t\t\t\tclass='hidden h-8 w-3/4 rounded desktop-xs:flex'\n\t\t\t\t\t></p-loader>\n\t\t\t\t)}\n\n\t\t\t\t{!this.loading &&\n\t\t\t\t\t(hasCustomFilterSlot || this.quickFilters.length > 0) && (\n\t\t\t\t\t\t<div class='left-side flex flex-col justify-start gap-4 desktop-xs:flex-row'>\n\t\t\t\t\t\t\t{hasCustomFilterSlot && <slot name='custom-filter' />}\n\n\t\t\t\t\t\t\t{this.quickFilters.length > 0 && (\n\t\t\t\t\t\t\t\t<p-segment-container class='hidden desktop-xs:flex'>\n\t\t\t\t\t\t\t\t\t{this.quickFilters.map(item => (\n\t\t\t\t\t\t\t\t\t\t<p-segment-item\n\t\t\t\t\t\t\t\t\t\t\tactive={\n\t\t\t\t\t\t\t\t\t\t\t\titem.identifier === this.activeQuickFilterIdentifier\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tonClick={() => this.quickFilter.emit(item)}\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t{typeof item.text === 'string' ? item.text : item.text()}{' '}\n\t\t\t\t\t\t\t\t\t\t\t{item?.count >= 0 ? `(${item.count})` : ''}\n\t\t\t\t\t\t\t\t\t\t</p-segment-item>\n\t\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t\t</p-segment-container>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\n\t\t\t\t<div class='right-side flex flex-col justify-end gap-4 desktop-xs:flex-row'>\n\t\t\t\t\t{this.enableSearch && (\n\t\t\t\t\t\t<p-field\n\t\t\t\t\t\t\ticon='search'\n\t\t\t\t\t\t\tsize='sm'\n\t\t\t\t\t\t\tclass='desktop-xs:w-48'\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\ttype='text'\n\t\t\t\t\t\t\t\tslot='input'\n\t\t\t\t\t\t\t\tplaceholder='Zoeken...'\n\t\t\t\t\t\t\t\tvalue={this.query}\n\t\t\t\t\t\t\t\tonInput={ev =>\n\t\t\t\t\t\t\t\t\tthis._queryObserver.next(\n\t\t\t\t\t\t\t\t\t\t(ev.target as HTMLInputElement).value\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</p-field>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{this.enableFilter && (\n\t\t\t\t\t\t<p-button\n\t\t\t\t\t\t\ticon='filter'\n\t\t\t\t\t\t\tvariant='secondary'\n\t\t\t\t\t\t\tsize='sm'\n\t\t\t\t\t\t\tclass={`w-full ${\n\t\t\t\t\t\t\t\tthis.enableFilterDesktop\n\t\t\t\t\t\t\t\t\t? 'desktop-xs:w-auto'\n\t\t\t\t\t\t\t\t\t: 'desktop-xs:hidden'\n\t\t\t\t\t\t\t}`}\n\t\t\t\t\t\t\tonClick={() => this.filter.emit()}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{this.filterButtonTemplate\n\t\t\t\t\t\t\t\t? this.filterButtonTemplate()\n\t\t\t\t\t\t\t\t: this._defaultFilterButtonTemplate()}\n\t\t\t\t\t\t\t{this.selectedFiltersAmount &&\n\t\t\t\t\t\t\t\tthis._getLabel(this.selectedFiltersAmount)}\n\t\t\t\t\t\t\t{mobileTotal > 0 && this._getLabel(mobileTotal, 'mobile')}\n\t\t\t\t\t\t</p-button>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{this.enableAction && this._buttonTemplate()}\n\n\t\t\t\t\t{hasCustomActionsSlot && <slot name='custom-actions' />}\n\t\t\t\t</div>\n\n\t\t\t\t{this.enableAction && this.canUseAction && (\n\t\t\t\t\t<div class='fixed bottom-0 left-0 block w-full border border-solid border-transparent border-t-mystic-dark bg-white p-4 desktop-xs:hidden'>\n\t\t\t\t\t\t{this._buttonTemplate(true)}\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t@Listen('localeChanged', { target: 'body' })\n\tprivate async _setLocales(): Promise<void> {\n\t\tthis._locales = await getLocaleComponentStrings(this._el);\n\t}\n\n\tprivate _buttonTemplate(mobile = false) {\n\t\treturn (\n\t\t\t<p-button\n\t\t\t\tclass={mobile ? 'w-full' : 'hidden desktop-xs:flex'}\n\t\t\t\ticon={this.actionIcon}\n\t\t\t\tsize='sm'\n\t\t\t\tdisabled={!this.canUseAction}\n\t\t\t\tonClick={() => this.action.emit()}\n\t\t\t\tloading={this.actionLoading}\n\t\t\t>\n\t\t\t\t{this.actionButtonTemplate\n\t\t\t\t\t? this.actionButtonTemplate(mobile ? this.itemsSelectedAmount : 0)\n\t\t\t\t\t: this._defaultActionButtonTemplate(\n\t\t\t\t\t\t\tmobile ? this.itemsSelectedAmount : 0\n\t\t\t\t\t )}\n\t\t\t</p-button>\n\t\t);\n\t}\n\n\tprivate _getLabel(amount, variant: 'mobile' | 'default' = 'default') {\n\t\treturn (\n\t\t\t<p-badge\n\t\t\t\tclass={`ml-1 ${\n\t\t\t\t\tvariant === 'default'\n\t\t\t\t\t\t? 'hidden desktop-xs:flex'\n\t\t\t\t\t\t: 'flex desktop-xs:hidden'\n\t\t\t\t}`}\n\t\t\t>\n\t\t\t\t{amount}\n\t\t\t</p-badge>\n\t\t);\n\t}\n}\n"]}
@@ -5,9 +5,9 @@ export class TableRow {
5
5
  this.enableHover = true;
6
6
  }
7
7
  render() {
8
- return (h(Host, { key: '5d5245faf40bfcfaf3008117ec6e604c45a716ea', class: `p-table-row variant-${this.variant} ${this.enableHover &&
8
+ return (h(Host, { key: '84fafc96af5423eca823b2702a4b878a03c76565', class: `p-table-row variant-${this.variant} ${this.enableHover &&
9
9
  this.variant === 'default' &&
10
- 'enable-hover'} group` }, h("div", { key: '1ed45114cb5478ad37461fb4c7957b89e2f4e7d9', class: "content" }, h("slot", { key: '029596bda8f0b019ec48fdf7b5cb00e2878f939d' })), this.variant === 'default' && h("p-divider", { key: '5263474be1ce89579330294f80218e92a86d0a87', class: "m-0" })));
10
+ 'enable-hover'} group` }, h("div", { key: '968888482a3d22ec973cda8a9618e3a3b59c2ff4', class: "content" }, h("slot", { key: '934e900af0720877e705d78a9cfbddf033206326' })), this.variant === 'default' && h("p-divider", { key: '5c443bc203dd2cdb0641b41db9824a26646239eb', class: "m-0" })));
11
11
  }
12
12
  static get is() { return "p-table-row"; }
13
13
  static get encapsulation() { return "shadow"; }
@@ -14,7 +14,7 @@ export class Toast {
14
14
  */
15
15
  action;
16
16
  render() {
17
- return (h(Host, { key: '5e4d83ec435671553c45eeda6da3e0eca5abd816', class: `p-toast variant-${this.variant}`, onClick: () => this._onClick() }, h("div", { key: 'cb8b4792e9911b09a0a75dad80df62180029b6d7', class: 'flex w-full min-w-0 flex-col' }, h("p", { key: '058db9e698fbbffa1206c9b55251e8452008c9b5', class: 'font-semibold text-storm' }, this.header?.length ? this.header : h("slot", { name: 'header' })), h("p", { key: '4d52640787c919fa2d2b7e0c18a0443b0ab3a554', class: 'w-full text-sm text-storm-medium' }, this.content?.length ? this.content : h("slot", { name: 'content' }))), this.enableAction && (h("p-button", { key: '69c6b038b1ea91492d77fc55144ca7d95fc00116', variant: 'secondary', iconOnly: true, size: 'sm', icon: this.actionIcon, iconFlip: this.actionIconFlip, iconRotate: this.actionIconRotate, class: 'flex-shrink-0' }))));
17
+ return (h(Host, { key: '45995dbf55e1f5da083853de2a84a8b2fabecae3', class: `p-toast variant-${this.variant}`, onClick: () => this._onClick() }, h("div", { key: '21cc758c734909d3ac31b57174ac48117086ea8b', class: 'flex w-full min-w-0 flex-col' }, h("p", { key: '6d9e38a1ff99eb3cca01492a1b23b1855d47e6c2', class: 'font-semibold text-storm' }, this.header?.length ? this.header : h("slot", { name: 'header' })), h("p", { key: 'e9cb052a385dc14e0485944518548365f743a3e4', class: 'w-full text-sm text-storm-medium' }, this.content?.length ? this.content : h("slot", { name: 'content' }))), this.enableAction && (h("p-button", { key: '3622337e6595749610b400498a5c8860adc9ab32', variant: 'secondary', iconOnly: true, size: 'sm', icon: this.actionIcon, iconFlip: this.actionIconFlip, iconRotate: this.actionIconRotate, class: 'flex-shrink-0' }))));
18
18
  }
19
19
  _onClick() {
20
20
  if (this.enableAction) {
@@ -44,7 +44,7 @@ export class Navbar {
44
44
  this._show = false;
45
45
  }
46
46
  render() {
47
- return (h(Host, { key: 'd0fb08c272ed8209ba4b4eeb0e84db3af7f56b6c', class: 'p-navbar w-full max-h-screen-safe layout-1280:w-60 layout-1680:w-72' }, h("p-backdrop", { key: '03c3f5a31cdb369c0fc9e2e2758c6124f8874323', class: backdrop({ show: this._show }), scrollLock: this._show, onClicked: () => (this._show = false) }), h("div", { key: 'e436eb63373ce0460d04c1e6bf9d2a6d5dd77a22', class: sidebar({ class: sidebarAndTopbar(), show: this._show }) }, h("div", { key: '5cc267234e3f93766244c241c896004f0312e7ab', class: 'flex w-full items-center justify-between layout-1280:hidden' }, h("p-button", { key: 'a1cf06f679fe209a5d9fee1e3f59e4ab1e2b3628', variant: 'secondary', icon: 'menu-arrow', iconFlip: 'horizontal', iconOnly: true, size: 'sm', onClick: () => (this._show = false) })), h("div", { key: '3c2bc5439cfb75cc9d3134f987dc80ebd3971298', class: 'flex w-full flex-col items-stretch' }, h("slot", { key: '9fc8ab5a7648ee33fe8fd7aeadcc6f612b636971', name: 'company' })), h("div", { key: 'b7be3f50a653bb6ec6b175a0d5391555689f7b5d', class: 'flex w-full flex-col gap-6 overflow-y-auto' }, h("slot", { key: '941a9dea07c2270d9ccea702ed1bce4af6dda0a7', name: 'content' })), h("div", { key: 'd104fa1db346b0f6fcd09d55ba3d2cb474a725f2', class: 'mt-auto hidden w-full flex-col layout-1280:flex' }, h("slot", { key: 'a20c417a192f6ec4c5eef06fe12118270fd299ac', name: 'user' }))), h("div", { key: '3a1d9b69bde033789e2e420e49f8702b8a0c92bf', class: topbar({ class: sidebarAndTopbar() }) }, h("p-button", { key: 'bbb50411a3ce918bfbd33f1bacfc14a053f7d118', variant: 'secondary', iconOnly: true, icon: 'menu-arrow', size: 'sm', onClick: () => (this._show = true) }), h("slot", { key: 'a931c9bc1a090b004788693f2fea96d76d2c43bd', name: 'topbar' }))));
47
+ return (h(Host, { key: '933b55e6875b50546cd980e5c4f7c923cd6cbd11', class: 'p-navbar w-full max-h-screen-safe layout-1280:w-60 layout-1680:w-72' }, h("p-backdrop", { key: '9fb8220b757a0571b77620f394b92fe78d578ba5', class: backdrop({ show: this._show }), scrollLock: this._show, onClicked: () => (this._show = false) }), h("div", { key: 'c24c80eca5ec18ee39df438c591e55ff683a9c06', class: sidebar({ class: sidebarAndTopbar(), show: this._show }) }, h("div", { key: '6338aee239fa25bef1555f5b085d0682c8122c94', class: 'flex w-full items-center justify-between layout-1280:hidden' }, h("p-button", { key: '7768db8078e996b9b0d08a38d7a63329513d4d7b', variant: 'secondary', icon: 'menu-arrow', iconFlip: 'horizontal', iconOnly: true, size: 'sm', onClick: () => (this._show = false) })), h("div", { key: 'b736053b767173fe3da99b1c270ce95eff3376fd', class: 'flex w-full flex-col items-stretch' }, h("slot", { key: '570c7aab38574229bf5f118c7b8196cc93b69992', name: 'company' })), h("div", { key: 'e0d69dc2869eda05e854eb167d72436412669978', class: 'flex w-full flex-col gap-6 overflow-y-auto' }, h("slot", { key: '02e79fdd87b22514e602fa8ace2b4091dde7126a', name: 'content' })), h("div", { key: 'dc66843c8beabbbcb21b1e3c937192b2dba656d2', class: 'mt-auto hidden w-full flex-col layout-1280:flex' }, h("slot", { key: 'b08ed35bb831aa4bc6076a4d5b4d5d1fb4c960d3', name: 'user' }))), h("div", { key: 'b15ae515d4872501b143aa3dc30d40e7004da088', class: topbar({ class: sidebarAndTopbar() }) }, h("p-button", { key: '96628a7f7741fc9d71d68e1744e727a95dec9552', variant: 'secondary', iconOnly: true, icon: 'menu-arrow', size: 'sm', onClick: () => (this._show = true) }), h("slot", { key: '22a596e750b0541a9dabf0d9857c294d77acea58', name: 'topbar' }))));
48
48
  }
49
49
  handleCloseNavbar() {
50
50
  this._show = false;
@@ -21,7 +21,7 @@ export default {
21
21
  800: '#2F6407',
22
22
  DEFAULT: '#5CC30E',
23
23
  500: '#5CC30E',
24
- 100: '#5CC30E',
24
+ 100: '#D5FBC7',
25
25
  50: '#EAFDE3',
26
26
  },
27
27
  amber: {
@@ -1 +1 @@
1
- {"version":3,"file":"colors.js","sourceRoot":"","sources":["../../../src/tailwind/theme/colors.ts"],"names":[],"mappings":"AAAA,eAAe;IACd,OAAO,EAAE,SAAS;IAClB,WAAW,EAAE,aAAa;IAC1B,OAAO,EAAE,cAAc;IACvB,KAAK,EAAE,MAAM;IAEb,KAAK,EAAE;QACN,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,SAAS;QACd,OAAO,EAAE,SAAS;QAClB,GAAG,EAAE,SAAS;KACd;IACD,cAAc,EAAE;QACf,GAAG,EAAE,SAAS;QACd,OAAO,EAAE,SAAS;QAClB,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,SAAS;QACd,EAAE,EAAE,SAAS;KACb;IACD,gBAAgB,EAAE;QACjB,GAAG,EAAE,SAAS;QACd,OAAO,EAAE,SAAS;QAClB,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,SAAS;QACd,EAAE,EAAE,SAAS;KACb;IACD,KAAK,EAAE;QACN,GAAG,EAAE,SAAS;QACd,OAAO,EAAE,SAAS;QAClB,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,SAAS;QACd,EAAE,EAAE,SAAS;KACb;IAED,aAAa,EAAE;QACd,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,SAAS;QACd,OAAO,EAAE,SAAS;QAClB,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,S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ChB;IACD,QAAQ,EAAE;QACT,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,SAAS;QAClB,KAAK,EAAE,SAAS;KAChB;IACD,QAAQ,EAAE;QACT,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,SAAS;QAClB,KAAK,EAAE,SAAS;KAChB;IACD,QAAQ,EAAE;QACT,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,SAAS;QAClB,KAAK,EAAE,SAAS;KAChB;CACD,CAAC","sourcesContent":["export default {\n\tinherit: 'inherit',\n\ttransparent: 'transparent',\n\tcurrent: 'currentColor',\n\tblack: '#000',\n\n\twhite: {\n\t\t800: '#E4E3E3',\n\t\t700: '#F2F2F2',\n\t\t600: '#FAFAFA',\n\t\tDEFAULT: '#FFFFFF',\n\t\t500: '#FFFFFF',\n\t},\n\t'negative-red': {\n\t\t800: '#8D1010',\n\t\tDEFAULT: '#E61E1E',\n\t\t500: '#E61E1E',\n\t\t100: '#FFDDDD',\n\t\t50: '#FDEDED',\n\t},\n\t'positive-green': {\n\t\t800: '#2F6407',\n\t\tDEFAULT: '#5CC30E',\n\t\t500: '#5CC30E',\n\t\t100: '#5CC30E',\n\t\t50: '#EAFDE3',\n\t},\n\tamber: {\n\t\t800: '#944D0B',\n\t\tDEFAULT: '#E19F23',\n\t\t500: '#E19F23',\n\t\t100: '#FFF6C2',\n\t\t50: '#FFFAE0',\n\t},\n\n\t'human-beige': {\n\t\t800: '#DEC9B7',\n\t\t700: '#E7D8CB',\n\t\t600: '#EDE0D5',\n\t\tDEFAULT: '#EEE4DB',\n\t\t500: '#EEE4DB',\n\t\t400: '#F1E9E2',\n\t\t300: '#F5EFE9',\n\t\t200: '#F8F4F1',\n\t\t100: '#FCFAF8',\n\t\t50: '#FDFCFB',\n\t},\n\t'off-white': {\n\t\t800: '#D5D0C3',\n\t\t700: '#DEDBD5',\n\t\t600: '#ECEAE5',\n\t\tDEFAULT: '#F3F1ED',\n\t\t500: '#F3F1ED',\n\t\t400: '#F5F4F1',\n\t\t300: '#F8F7F4',\n\t\t200: '#FAF9F8',\n\t\t100: '#FDFCFB',\n\t\t50: '#FEFEFD',\n\t},\n\n\t'supportive-lilac': {\n\t\t900: '#5009B3',\n\t\t800: '#BD8CFF',\n\t\t700: '#C89FFF',\n\t\t600: '#CCA8FC',\n\t\tDEFAULT: '#D1AEFF',\n\t\t500: '#D1AEFF',\n\t\t400: '#DABEFF',\n\t\t300: '#E3CEFF',\n\t\t200: '#EDDFFF',\n\t\t100: '#F6EFFF',\n\t\t50: '#FAF7FF',\n\t},\n\t'growth-green': {\n\t\t800: '#81EF2B',\n\t\t700: '#7FF424',\n\t\t600: '#8CFC35',\n\t\tDEFAULT: '#A0FF56',\n\t\t500: '#A0FF56',\n\t\t400: '#B3FF78',\n\t\t300: '#C6FF9A',\n\t\t200: '#D9FFBB',\n\t\t100: '#ECFFDD',\n\t\t50: '#F5FFEE',\n\t},\n\t'tech-breeze': {\n\t\t800: '#3DEACC',\n\t\t700: '#66F2DA',\n\t\t600: '#83FAE6',\n\t\tDEFAULT: '#94FFED',\n\t\t500: '#94FFED',\n\t\t400: '#A9FFF1',\n\t\t300: '#BFFFF4',\n\t\t200: '#D4FFF8',\n\t\t100: '#EAFFFB',\n\t\t50: '#F4FFFD',\n\t},\n\n\tteal: {\n\t\t800: '#02665C',\n\t\t700: '#047367',\n\t\t600: '#047F72',\n\t\tDEFAULT: '#088879',\n\t\t500: '#088879',\n\t\t400: '#39A094',\n\t\t300: '#6BB8AF',\n\t\t200: '#9CCFC9',\n\t\t100: '#CEE7E4',\n\t\t50: '#E6F3F2',\n\t},\n\t'dark-teal': {\n\t\t800: '#012521',\n\t\t700: '#003832',\n\t\t600: '#004840',\n\t\tDEFAULT: '#005148',\n\t\t500: '#005148',\n\t\t400: '#33746D',\n\t\t300: '#669791',\n\t\t200: '#99B9B6',\n\t\t100: '#CCDCDA',\n\t\t50: '#E5EEED',\n\t},\n\t'black-teal': {\n\t\t800: '#000202',\n\t\t700: '#000D0B',\n\t\t600: '#011815',\n\t\tDEFAULT: '#032A24',\n\t\t500: '#032A24',\n\t\t400: '#355550',\n\t\t300: '#687F7C',\n\t\t200: '#9AAAA7',\n\t\t100: '#CDD4D3',\n\t\t50: '#E6EAE9',\n\t},\n\n\t// OLD, REMOVE THIS\n\tindigo: {\n\t\tdark: '#2C4BA9',\n\t\tDEFAULT: '#528AFA',\n\t\tlight: '#F1F6FF',\n\t},\n\tsky: {\n\t\tdark: '#30C2C9',\n\t\tDEFAULT: '#1EDAE3',\n\t\tlight: '#F5FEFF',\n\t\tvague: '#BBF4F6',\n\t},\n\tmystic: {\n\t\tblank: '#FFF',\n\t\tdark: '#DAE6F0',\n\t\tDEFAULT: '#F7FAFC',\n\t\tlight: '#FCFDFE',\n\t\tmedium: '#E3ECF3',\n\t},\n\tredberry: {\n\t\tdark: '#BD0F1E',\n\t\tDEFAULT: '#E63241',\n\t\tlight: '#FFE8EA',\n\t\tmedium: '#FF7D88',\n\t},\n\tstorm: {\n\t\tdark: '#272838',\n\t\tDEFAULT: '#51536B',\n\t\tlight: '#B0B2CB',\n\t\tmedium: '#80829E',\n\t\tvague: '#989AB7',\n\t},\n\tnegative: {\n\t\tdark: '#8A0F1D',\n\t\tDEFAULT: '#B91E28',\n\t\tlight: '#FFCCD3',\n\t},\n\tpositive: {\n\t\tdark: '#1DA360',\n\t\tDEFAULT: '#28D17C',\n\t\tlight: '#E5FFF2',\n\t},\n\tunbiased: {\n\t\tdark: '#FFA231',\n\t\tDEFAULT: '#FFC72D',\n\t\tlight: '#FFF6DC',\n\t},\n};\n"]}
1
+ {"version":3,"file":"colors.js","sourceRoot":"","sources":["../../../src/tailwind/theme/colors.ts"],"names":[],"mappings":"AAAA,eAAe;IACd,OAAO,EAAE,SAAS;IAClB,WAAW,EAAE,aAAa;IAC1B,OAAO,EAAE,cAAc;IACvB,KAAK,EAAE,MAAM;IAEb,KAAK,EAAE;QACN,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,SAAS;QAC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,EAAE,SAAS;QACd,GAAG,EAAE,SAAS;QACd,EAAE,EAAE,SAAS;KACb;IAED,mBAAmB;IACnB,MAAM,EAAE;QACP,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,SAAS;QAClB,KAAK,EAAE,SAAS;KAChB;IACD,GAAG,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,SAAS;QAClB,KAAK,EAAE,SAAS;QAChB,KAAK,EAAE,SAAS;KAChB;IACD,MAAM,EAAE;QACP,KAAK,EAAE,MAAM;QACb,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,SAAS;QAClB,KAAK,EAAE,SAAS;QAChB,MAAM,EAAE,SAAS;KACjB;IACD,QAAQ,EAAE;QACT,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,SAAS;QAClB,KAAK,EAAE,SAAS;QAChB,MAAM,EAAE,SAAS;KACjB;IACD,KAAK,EAAE;QACN,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,SAAS;QAClB,KAAK,EAAE,SAAS;QAChB,MAAM,EAAE,SAAS;QACjB,KAAK,EAAE,SAAS;KAChB;IACD,QAAQ,EAAE;QACT,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,SAAS;QAClB,KAAK,EAAE,SAAS;KAChB;IACD,QAAQ,EAAE;QACT,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,SAAS;QAClB,KAAK,EAAE,SAAS;KAChB;IACD,QAAQ,EAAE;QACT,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,SAAS;QAClB,KAAK,EAAE,SAAS;KAChB;CACD,CAAC","sourcesContent":["export default {\n\tinherit: 'inherit',\n\ttransparent: 'transparent',\n\tcurrent: 'currentColor',\n\tblack: '#000',\n\n\twhite: {\n\t\t800: '#E4E3E3',\n\t\t700: '#F2F2F2',\n\t\t600: '#FAFAFA',\n\t\tDEFAULT: '#FFFFFF',\n\t\t500: '#FFFFFF',\n\t},\n\t'negative-red': {\n\t\t800: '#8D1010',\n\t\tDEFAULT: '#E61E1E',\n\t\t500: '#E61E1E',\n\t\t100: '#FFDDDD',\n\t\t50: '#FDEDED',\n\t},\n\t'positive-green': {\n\t\t800: '#2F6407',\n\t\tDEFAULT: '#5CC30E',\n\t\t500: '#5CC30E',\n\t\t100: '#D5FBC7',\n\t\t50: '#EAFDE3',\n\t},\n\tamber: {\n\t\t800: '#944D0B',\n\t\tDEFAULT: '#E19F23',\n\t\t500: '#E19F23',\n\t\t100: '#FFF6C2',\n\t\t50: '#FFFAE0',\n\t},\n\n\t'human-beige': {\n\t\t800: '#DEC9B7',\n\t\t700: '#E7D8CB',\n\t\t600: '#EDE0D5',\n\t\tDEFAULT: '#EEE4DB',\n\t\t500: '#EEE4DB',\n\t\t400: '#F1E9E2',\n\t\t300: '#F5EFE9',\n\t\t200: '#F8F4F1',\n\t\t100: '#FCFAF8',\n\t\t50: '#FDFCFB',\n\t},\n\t'off-white': {\n\t\t800: '#D5D0C3',\n\t\t700: '#DEDBD5',\n\t\t600: '#ECEAE5',\n\t\tDEFAULT: '#F3F1ED',\n\t\t500: '#F3F1ED',\n\t\t400: '#F5F4F1',\n\t\t300: '#F8F7F4',\n\t\t200: '#FAF9F8',\n\t\t100: '#FDFCFB',\n\t\t50: '#FEFEFD',\n\t},\n\n\t'supportive-lilac': {\n\t\t900: '#5009B3',\n\t\t800: '#BD8CFF',\n\t\t700: '#C89FFF',\n\t\t600: '#CCA8FC',\n\t\tDEFAULT: '#D1AEFF',\n\t\t500: '#D1AEFF',\n\t\t400: '#DABEFF',\n\t\t300: '#E3CEFF',\n\t\t200: '#EDDFFF',\n\t\t100: '#F6EFFF',\n\t\t50: '#FAF7FF',\n\t},\n\t'growth-green': {\n\t\t800: '#81EF2B',\n\t\t700: '#7FF424',\n\t\t600: '#8CFC35',\n\t\tDEFAULT: '#A0FF56',\n\t\t500: '#A0FF56',\n\t\t400: '#B3FF78',\n\t\t300: '#C6FF9A',\n\t\t200: '#D9FFBB',\n\t\t100: '#ECFFDD',\n\t\t50: '#F5FFEE',\n\t},\n\t'tech-breeze': {\n\t\t800: '#3DEACC',\n\t\t700: '#66F2DA',\n\t\t600: '#83FAE6',\n\t\tDEFAULT: '#94FFED',\n\t\t500: '#94FFED',\n\t\t400: '#A9FFF1',\n\t\t300: '#BFFFF4',\n\t\t200: '#D4FFF8',\n\t\t100: '#EAFFFB',\n\t\t50: '#F4FFFD',\n\t},\n\n\tteal: {\n\t\t800: '#02665C',\n\t\t700: '#047367',\n\t\t600: '#047F72',\n\t\tDEFAULT: '#088879',\n\t\t500: '#088879',\n\t\t400: '#39A094',\n\t\t300: '#6BB8AF',\n\t\t200: '#9CCFC9',\n\t\t100: '#CEE7E4',\n\t\t50: '#E6F3F2',\n\t},\n\t'dark-teal': {\n\t\t800: '#012521',\n\t\t700: '#003832',\n\t\t600: '#004840',\n\t\tDEFAULT: '#005148',\n\t\t500: '#005148',\n\t\t400: '#33746D',\n\t\t300: '#669791',\n\t\t200: '#99B9B6',\n\t\t100: '#CCDCDA',\n\t\t50: '#E5EEED',\n\t},\n\t'black-teal': {\n\t\t800: '#000202',\n\t\t700: '#000D0B',\n\t\t600: '#011815',\n\t\tDEFAULT: '#032A24',\n\t\t500: '#032A24',\n\t\t400: '#355550',\n\t\t300: '#687F7C',\n\t\t200: '#9AAAA7',\n\t\t100: '#CDD4D3',\n\t\t50: '#E6EAE9',\n\t},\n\n\t// OLD, REMOVE THIS\n\tindigo: {\n\t\tdark: '#2C4BA9',\n\t\tDEFAULT: '#528AFA',\n\t\tlight: '#F1F6FF',\n\t},\n\tsky: {\n\t\tdark: '#30C2C9',\n\t\tDEFAULT: '#1EDAE3',\n\t\tlight: '#F5FEFF',\n\t\tvague: '#BBF4F6',\n\t},\n\tmystic: {\n\t\tblank: '#FFF',\n\t\tdark: '#DAE6F0',\n\t\tDEFAULT: '#F7FAFC',\n\t\tlight: '#FCFDFE',\n\t\tmedium: '#E3ECF3',\n\t},\n\tredberry: {\n\t\tdark: '#BD0F1E',\n\t\tDEFAULT: '#E63241',\n\t\tlight: '#FFE8EA',\n\t\tmedium: '#FF7D88',\n\t},\n\tstorm: {\n\t\tdark: '#272838',\n\t\tDEFAULT: '#51536B',\n\t\tlight: '#B0B2CB',\n\t\tmedium: '#80829E',\n\t\tvague: '#989AB7',\n\t},\n\tnegative: {\n\t\tdark: '#8A0F1D',\n\t\tDEFAULT: '#B91E28',\n\t\tlight: '#FFCCD3',\n\t},\n\tpositive: {\n\t\tdark: '#1DA360',\n\t\tDEFAULT: '#28D17C',\n\t\tlight: '#E5FFF2',\n\t},\n\tunbiased: {\n\t\tdark: '#FFA231',\n\t\tDEFAULT: '#FFC72D',\n\t\tlight: '#FFF6DC',\n\t},\n};\n"]}
@@ -298,7 +298,7 @@ const Button = /*@__PURE__*/ proxyCustomElement(class Button extends HTMLElement
298
298
  ? 'a'
299
299
  : 'button';
300
300
  const active = this.active || this.class?.includes('active');
301
- return (h(Host, { key: 'c528dd1f603ec9602af623f74ff422d1745f5f88', class: 'p-button block' }, h(VariableTag, { key: 'ed0b7309950f72321c0c355288afdaa3ffbe9a3c', disabled: this.disabled, href: this.href, type: this.variant !== 'text' ? this.type : undefined, target: this.target, class: button({
301
+ return (h(Host, { key: '6424b147500f9e23b58e9130969b3a6551207793', class: 'p-button block' }, h(VariableTag, { key: '7e8ff2d9c88e22a000462e58f4b192403067843e', disabled: this.disabled, href: this.href, type: this.variant !== 'text' ? this.type : undefined, target: this.target, class: button({
302
302
  variant: this.variant,
303
303
  size: this.size,
304
304
  underline: this.underline,
@@ -307,14 +307,14 @@ const Button = /*@__PURE__*/ proxyCustomElement(class Button extends HTMLElement
307
307
  buttonGroupPosition: this.buttonGroupPosition,
308
308
  iconOnly: this.iconOnly,
309
309
  active,
310
- }) }, this.chevron && this.chevronPosition === 'start' && (h("p-icon", { key: '4f20df27c82f4b43f4b3d0ce1584571e0854c61d', variant: 'caret', rotate: this.chevron === 'up' ? 180 : 0 })), this.icon &&
310
+ }) }, this.chevron && this.chevronPosition === 'start' && (h("p-icon", { key: 'efb172d6b7e7ec4a50f4afc85af7a0c83a65ebfd', variant: 'caret', rotate: this.chevron === 'up' ? 180 : 0 })), this.icon &&
311
311
  this.iconPosition === 'start' &&
312
312
  !(this.iconOnly && this.loading) &&
313
- this._getIcon(), h("slot", { key: 'ce4ed96beafa7bebb83e8f8346350e56a27fc8e3' }), this.icon &&
313
+ this._getIcon(), h("slot", { key: '0baa166aedacae64b04d99cd539224e9315fc106' }), this.icon &&
314
314
  this.iconPosition === 'end' &&
315
315
  !this.loading &&
316
316
  !this.chevron &&
317
- this._getIcon(), this.chevron && !this.loading && this.chevronPosition === 'end' && (h("p-icon", { key: '1f2613670560b7ce499df4d08dddb011c92971a7', variant: 'caret', rotate: this.chevron === 'up' ? 180 : 0 })), this.loading && h("p-loader", { key: '282534a7fb06fa16769cdb6dbd736564f8d41beb', color: loaderColor }))));
317
+ this._getIcon(), this.chevron && !this.loading && this.chevronPosition === 'end' && (h("p-icon", { key: '2add95303af94434a77a0c6b1935c886d4a3ddfa', variant: 'caret', rotate: this.chevron === 'up' ? 180 : 0 })), this.loading && h("p-loader", { key: '3aaa904697024393c651dcba83075bfcf07af844', color: loaderColor }))));
318
318
  }
319
319
  handleClick(ev) {
320
320
  if (this.loading || this.disabled) {
@@ -2840,7 +2840,7 @@ const Calendar = /*@__PURE__*/ proxyCustomElement(class Calendar extends HTMLEle
2840
2840
  .filter(date => isValid(date));
2841
2841
  }
2842
2842
  render() {
2843
- return (h(Host, { key: '624da5939a3391fc98be636153ca8a296af47390', class: calendar({ variant: this.variant }) }, this._getView()));
2843
+ return (h(Host, { key: 'f63b07df1328a57cc35e085d1571e181ef7d4bc6', class: calendar({ variant: this.variant }) }, this._getView()));
2844
2844
  }
2845
2845
  _getView() {
2846
2846
  if (this._view === 'year') {
@@ -75,12 +75,12 @@ const Dropdown = /*@__PURE__*/ proxyCustomElement(class Dropdown extends HTMLEle
75
75
  };
76
76
  let dropdownContainer;
77
77
  if (this.usePortal) {
78
- dropdownContainer = (h("p-portal", { key: '5d9510a6759f791fb120fc06a31329a21f623f02', ...dropdownContainerProps }, h("p-dropdown-menu-container", { key: 'ea8ef6c6bba695321c530e12051881613fb73fac', maxWidth: !this.calculateWidth && this.applyMaxWidth, fullWidth: this.applyFullWidth && !this.applyMaxWidth, allowOverflow: this.allowOverflow, scrollable: this.scrollable }, h("slot", { key: '6ab8276bd86e17e48cea60aee12809edaf4d59ad', name: 'items' }))));
78
+ dropdownContainer = (h("p-portal", { key: '86ffcff551d96bc243504d6d6b3d07bbfc34a0b5', ...dropdownContainerProps }, h("p-dropdown-menu-container", { key: '0765572d22af5a168383b1d108d737f15c5fac27', maxWidth: !this.calculateWidth && this.applyMaxWidth, fullWidth: this.applyFullWidth && !this.applyMaxWidth, allowOverflow: this.allowOverflow, scrollable: this.scrollable }, h("slot", { key: '7e07948c37401209ad263d489d84d3b228c1ebc9', name: 'items' }))));
79
79
  }
80
80
  else {
81
- dropdownContainer = (h("p-dropdown-menu-container", { key: 'fa587ed2bf372b31843d0e39b2cf5309d62fc0b5', maxWidth: !this.calculateWidth && this.applyMaxWidth, fullWidth: this.applyFullWidth && !this.applyMaxWidth, allowOverflow: this.allowOverflow, scrollable: this.scrollable, ...dropdownContainerProps }, h("slot", { key: '91a76863819e3c4d2cfd97f7b935b0b444d9dacc', name: 'items' })));
81
+ dropdownContainer = (h("p-dropdown-menu-container", { key: '02a521eec91448042ebe06a44eda62f3f7f2721d', maxWidth: !this.calculateWidth && this.applyMaxWidth, fullWidth: this.applyFullWidth && !this.applyMaxWidth, allowOverflow: this.allowOverflow, scrollable: this.scrollable, ...dropdownContainerProps }, h("slot", { key: '9feadf39471cf9a21cc54f254e9606bed0a22add', name: 'items' })));
82
82
  }
83
- return (h(Host, { key: 'b5feffa63e8b3539ea8f7a00fcafab83d0be9c4e', class: 'p-dropdown relative' }, h("div", { key: 'ffe6f1d230d2281e6c704683dd08c9e74261dbe3', class: 'trigger', ref: ref => (this._trigger = ref), onClick: () => this._triggerClickHandler() }, h("slot", { key: 'f01bb68c26c92da98d639ba49aa1723a841c6c92', name: 'trigger' })), dropdownContainer));
83
+ return (h(Host, { key: 'f5553c381b470b227e88cd89c9cd54f8c3b6a3a5', class: 'p-dropdown relative' }, h("div", { key: 'b69a4afd2b82c44b3fe0a07f0de0c9f2c2298993', class: 'trigger', ref: ref => (this._trigger = ref), onClick: () => this._triggerClickHandler() }, h("slot", { key: '88ee2ccfb753c4f8e8cc29c161124ad451f2530f', name: 'trigger' })), dropdownContainer));
84
84
  }
85
85
  _checkButtons(active = false) {
86
86
  if (!this.applyChevron) {
@@ -146,16 +146,16 @@ const Field = /*@__PURE__*/ proxyCustomElement(class Field extends HTMLElement {
146
146
  _inputRef;
147
147
  render() {
148
148
  const { prefix, suffix, hasHeaderSlot, hasLabelSlot, hasHelperSlot, hasErrorSlot, } = this._getSlotInfo();
149
- return (h(Host, { key: 'b4229a4e7257f7a929cc3208834d95ab97990bcf', class: 'p-field' }, h("p-field-container", { key: '66c1e5bdc10bdc948e1e943fde89355e861135ae', forceShowTooltip: this.forceShowTooltip || this._focused, label: this.label, helper: this.helper, error: this.error, required: this.required }, hasLabelSlot && (h("slot", { key: '045626975fa0861371d2ad830d9bf8ec5b80720d', name: 'label', slot: 'label' })), hasHeaderSlot && (h("slot", { key: '43e613371e67f46a0c8ed5c9201b2b4e5fe91d7e', name: 'header', slot: 'header' })), hasHelperSlot && (h("slot", { key: 'e26723ffb55166d67c50e761410cd62100d70fa1', name: 'helper', slot: 'helper' })), hasErrorSlot && (h("slot", { key: 'b833ce639c3ff30e88ba86cdeb45dcf01ef866ac', name: 'error', slot: 'error' })), h("div", { key: 'd6b045356bca57b02a4ea32096969b5e017e3884', class: field({
149
+ return (h(Host, { key: '6ee18d3003f95e306599804827d24bccb869fbac', class: 'p-field' }, h("p-field-container", { key: '253178a1a1f9d85dc5a2515d7daa3bdec3756685', forceShowTooltip: this.forceShowTooltip || this._focused, label: this.label, helper: this.helper, error: this.error, required: this.required }, hasLabelSlot && (h("slot", { key: '9ae351e4b130f2097c459889614d627426eb73f1', name: 'label', slot: 'label' })), hasHeaderSlot && (h("slot", { key: '06b232eb4d1101e51027b1fcb296076252ec73da', name: 'header', slot: 'header' })), hasHelperSlot && (h("slot", { key: '28bae575c273efc6373d30d80a403508bac4b5f5', name: 'helper', slot: 'helper' })), hasErrorSlot && (h("slot", { key: '9c43b918c2b1901f1e374f300d6189cb31608ecb', name: 'error', slot: 'error' })), h("div", { key: 'e170a99bfbc5fa17c9c4465051219132360a8c3d', class: field({
150
150
  error: !!this.error?.length,
151
151
  disabled: this.disabled,
152
152
  focused: this.focused || this._focused,
153
153
  size: this.size,
154
- }), slot: 'content' }, (prefix || (this.icon && this.iconPosition === 'start')) && (h("div", { key: '6edc4f2c7b1b3bf470f7ab4a390655cdf0cf4d7f', class: prefixAndSuffic({
154
+ }), slot: 'content' }, (prefix || (this.icon && this.iconPosition === 'start')) && (h("div", { key: 'ecf1fb9ec811e26c4123f97f5ba18d6cbc07750b', class: prefixAndSuffic({
155
155
  error: !!this.error?.length,
156
156
  disabled: this.disabled,
157
157
  focused: this.focused || this._focused,
158
- }), onClick: () => this._focusInput() }, this.icon && this.iconPosition === 'start' ? (h("p-icon", { class: 'flex', variant: this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (prefix))), this._getInput(), (suffix || (this.icon && this.iconPosition === 'end')) && (h("div", { key: '4b9d7579b8f08fb7fd7b6a2b69d0fb1a8a2bead5', class: prefixAndSuffic({
158
+ }), onClick: () => this._focusInput() }, this.icon && this.iconPosition === 'start' ? (h("p-icon", { class: 'flex', variant: this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (prefix))), this._getInput(), (suffix || (this.icon && this.iconPosition === 'end')) && (h("div", { key: 'fb6fcf5c393812d91b01cdb7ebb5bd74767656be', class: prefixAndSuffic({
159
159
  error: !!this.error?.length,
160
160
  disabled: this.disabled,
161
161
  focused: this.focused || this._focused,
@@ -183,7 +183,7 @@ const colors = {
183
183
  800: '#2F6407',
184
184
  DEFAULT: '#5CC30E',
185
185
  500: '#5CC30E',
186
- 100: '#5CC30E',
186
+ 100: '#D5FBC7',
187
187
  50: '#EAFDE3',
188
188
  },
189
189
  amber: {