@paperless/core 2.0.1-beta.113 → 2.0.1-beta.114

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 (937) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/build/p-01a2b5af.entry.js +2 -0
  3. package/dist/build/p-01a2b5af.entry.js.map +1 -0
  4. package/dist/build/p-08cff47b.entry.js +2 -0
  5. package/dist/build/{p-96cd5cff.entry.js → p-0c0ebb15.entry.js} +2 -2
  6. package/dist/{paperless/p-96cb3e48.entry.js → build/p-0c257fa2.entry.js} +2 -2
  7. package/dist/build/p-0cf505a8.entry.js +2 -0
  8. package/dist/build/{p-505650b6.entry.js.map → p-0cf505a8.entry.js.map} +1 -1
  9. package/dist/build/p-0da54170.entry.js +2 -0
  10. package/dist/build/p-0da54170.entry.js.map +1 -0
  11. package/dist/{paperless/p-8d4c7827.entry.js → build/p-0fe51ad0.entry.js} +2 -2
  12. package/dist/build/{p-35c50504.entry.js → p-128f3811.entry.js} +2 -2
  13. package/dist/build/{p-0a0ef10d.entry.js → p-1778732a.entry.js} +2 -2
  14. package/dist/build/p-1a544806.entry.js +2 -0
  15. package/dist/build/p-22e7fde5.entry.js +2 -0
  16. package/dist/build/p-22e7fde5.entry.js.map +1 -0
  17. package/dist/{paperless/p-41949138.entry.js → build/p-29d452d0.entry.js} +2 -2
  18. package/dist/build/{p-1c9405d8.entry.js → p-30f6e463.entry.js} +2 -2
  19. package/dist/build/p-3d341a83.entry.js +2 -0
  20. package/dist/build/p-3d341a83.entry.js.map +1 -0
  21. package/dist/{paperless/p-dc4121c6.entry.js → build/p-4e95f16d.entry.js} +2 -2
  22. package/dist/build/p-4e95f16d.entry.js.map +1 -0
  23. package/dist/build/{p-6cddddb7.entry.js → p-52149e0e.entry.js} +2 -2
  24. package/dist/build/p-5451207c.entry.js +2 -0
  25. package/dist/build/{p-6d54b0a5.entry.js.map → p-5451207c.entry.js.map} +1 -1
  26. package/dist/build/{p-fd4a25eb.entry.js → p-58f9ac89.entry.js} +2 -2
  27. package/dist/build/p-5c3167c8.entry.js +2 -0
  28. package/dist/build/p-5c3167c8.entry.js.map +1 -0
  29. package/dist/build/{p-bc366236.entry.js → p-5ee4e9c7.entry.js} +2 -2
  30. package/dist/{paperless/p-4906fd4d.entry.js → build/p-5fa74e2e.entry.js} +2 -2
  31. package/dist/{paperless/p-26b75731.entry.js → build/p-66adc33a.entry.js} +2 -2
  32. package/dist/build/p-6c5f6d8a.entry.js +2 -0
  33. package/dist/build/p-6c5f6d8a.entry.js.map +1 -0
  34. package/dist/build/{p-b1b12e88.entry.js → p-7046dc66.entry.js} +2 -2
  35. package/dist/build/p-730bcacd.entry.js +2 -0
  36. package/dist/build/p-730bcacd.entry.js.map +1 -0
  37. package/dist/build/{p-a3da31c4.entry.js → p-7658fd89.entry.js} +2 -2
  38. package/dist/{paperless/p-697c465d.entry.js → build/p-76a4f70e.entry.js} +2 -2
  39. package/dist/build/p-79b42a23.entry.js +2 -0
  40. package/dist/build/p-79b42a23.entry.js.map +1 -0
  41. package/dist/build/{p-929b47c9.entry.js → p-7ddf5875.entry.js} +2 -2
  42. package/dist/build/{p-929b47c9.entry.js.map → p-7ddf5875.entry.js.map} +1 -1
  43. package/dist/{paperless/p-7a878e24.entry.js → build/p-8249382f.entry.js} +2 -2
  44. package/dist/build/p-8577755d.entry.js +2 -0
  45. package/dist/build/p-8577755d.entry.js.map +1 -0
  46. package/dist/build/{p-53e0b8a1.entry.js → p-868f9ee9.entry.js} +2 -2
  47. package/dist/{paperless/p-d4f4fe62.entry.js → build/p-912ce588.entry.js} +2 -2
  48. package/dist/build/p-91ea22cd.entry.js +2 -0
  49. package/dist/build/p-91ea22cd.entry.js.map +1 -0
  50. package/dist/build/{p-1bde15ae.entry.js → p-9409dfd7.entry.js} +2 -2
  51. package/dist/build/p-9409dfd7.entry.js.map +1 -0
  52. package/dist/build/p-a48262c6.entry.js +2 -0
  53. package/dist/{paperless/p-922fba03.entry.js.map → build/p-a48262c6.entry.js.map} +1 -1
  54. package/dist/build/{p-8a63e1d9.entry.js → p-a5bc8b63.entry.js} +2 -2
  55. package/dist/build/{p-8a63e1d9.entry.js.map → p-a5bc8b63.entry.js.map} +1 -1
  56. package/dist/build/{p-d894e0b1.entry.js → p-a5f29193.entry.js} +2 -2
  57. package/dist/build/p-ab23f388.js +2 -0
  58. package/dist/build/p-abd13a2a.entry.js +2 -0
  59. package/dist/build/p-accordion.entry.esm.js.map +1 -1
  60. package/dist/{paperless/p-b029529c.entry.js → build/p-ae64bdf2.entry.js} +2 -2
  61. package/dist/build/p-attachment.entry.esm.js.map +1 -1
  62. package/dist/build/p-avatar-group.entry.esm.js.map +1 -1
  63. package/dist/build/p-badge.p-segment-container.p-segment-item.entry.esm.js.map +1 -1
  64. package/dist/build/p-bfda8061.entry.js +2 -0
  65. package/dist/build/{p-4205f7e2.entry.js.map → p-bfda8061.entry.js.map} +1 -1
  66. package/dist/build/p-button-group.entry.esm.js.map +1 -1
  67. package/dist/build/p-button.p-icon.p-loader.entry.esm.js.map +1 -1
  68. package/dist/build/p-c1041af9.entry.js +2 -0
  69. package/dist/build/p-c1041af9.entry.js.map +1 -0
  70. package/dist/build/p-c7139e78.entry.js +2 -0
  71. package/dist/build/p-c7139e78.entry.js.map +1 -0
  72. package/dist/build/{p-0ffe0165.entry.js → p-cac630d2.entry.js} +2 -2
  73. package/dist/build/p-cc379751.entry.js +2 -0
  74. package/dist/build/p-cc379751.entry.js.map +1 -0
  75. package/dist/build/p-checkbox.p-dropdown.p-dropdown-menu-container.p-dropdown-menu-item.entry.esm.js.map +1 -1
  76. package/dist/build/p-content-slider.entry.esm.js.map +1 -1
  77. package/dist/build/{p-5667f8bf.entry.js → p-d0968c28.entry.js} +2 -2
  78. package/dist/build/p-d0968c28.entry.js.map +1 -0
  79. package/dist/build/{p-df7f9328.entry.js → p-d18ee52f.entry.js} +2 -2
  80. package/dist/{paperless/p-df7f9328.entry.js.map → build/p-d18ee52f.entry.js.map} +1 -1
  81. package/dist/build/p-datepicker.entry.esm.js.map +1 -1
  82. package/dist/build/p-drawer-body.p-drawer-container.p-drawer-header.entry.esm.js.map +1 -1
  83. package/dist/{paperless/p-7a05c8ca.entry.js → build/p-e9db1b2d.entry.js} +2 -2
  84. package/dist/build/p-eef52967.entry.js +2 -0
  85. package/dist/build/p-empty-state.p-floating-menu-container.p-floating-menu-item.p-table-cell.p-table-container.p-table-footer.p-table-header.p-table-row.p-table-row-actions-container.entry.esm.js.map +1 -1
  86. package/dist/build/{p-5cd98f23.entry.js → p-f1f14a3f.entry.js} +2 -2
  87. package/dist/build/p-field.p-field-container.entry.esm.js.map +1 -1
  88. package/dist/build/p-helper.p-tooltip.entry.esm.js.map +1 -1
  89. package/dist/build/p-iban-icon.entry.esm.js.map +1 -1
  90. package/dist/build/p-illustration.entry.esm.js.map +1 -1
  91. package/dist/build/p-info-panel.entry.esm.js.map +1 -1
  92. package/dist/build/p-label.entry.esm.js.map +1 -1
  93. package/dist/build/p-layout.entry.esm.js.map +1 -1
  94. package/dist/build/p-modal-body.p-modal-container.p-modal-footer.p-modal-header.entry.esm.js.map +1 -1
  95. package/dist/build/p-navigation-section.entry.esm.js.map +1 -1
  96. package/dist/build/p-navigation-title.entry.esm.js.map +1 -1
  97. package/dist/build/p-radio.entry.esm.js.map +1 -1
  98. package/dist/build/p-toggle.entry.esm.js.map +1 -1
  99. package/dist/build/paperless.esm.js +1 -1
  100. package/dist/cjs/index-BDuPp9vl.js +0 -20
  101. package/dist/cjs/loader.cjs.js +1 -1
  102. package/dist/cjs/p-accordion.cjs.entry.js +2 -2
  103. package/dist/cjs/p-accordion.cjs.entry.js.map +1 -1
  104. package/dist/cjs/p-accordion.entry.cjs.js.map +1 -1
  105. package/dist/cjs/p-attachment.cjs.entry.js +62 -11
  106. package/dist/cjs/p-attachment.cjs.entry.js.map +1 -1
  107. package/dist/cjs/p-attachment.entry.cjs.js.map +1 -1
  108. package/dist/cjs/p-avatar-group.cjs.entry.js +1 -1
  109. package/dist/cjs/p-avatar-group.cjs.entry.js.map +1 -1
  110. package/dist/cjs/p-avatar-group.entry.cjs.js.map +1 -1
  111. package/dist/cjs/p-avatar.cjs.entry.js +1 -1
  112. package/dist/cjs/p-backdrop.cjs.entry.js +3 -3
  113. package/dist/cjs/p-badge.p-segment-container.p-segment-item.entry.cjs.js.map +1 -1
  114. package/dist/cjs/p-badge_3.cjs.entry.js +4 -4
  115. package/dist/cjs/p-badge_3.cjs.entry.js.map +1 -1
  116. package/dist/cjs/p-button-group.cjs.entry.js +1 -1
  117. package/dist/cjs/p-button-group.cjs.entry.js.map +1 -1
  118. package/dist/cjs/p-button-group.entry.cjs.js.map +1 -1
  119. package/dist/cjs/p-button.p-icon.p-loader.entry.cjs.js.map +1 -1
  120. package/dist/cjs/p-button_3.cjs.entry.js +16 -14
  121. package/dist/cjs/p-button_3.cjs.entry.js.map +1 -1
  122. package/dist/cjs/p-calendar.cjs.entry.js +1 -1
  123. package/dist/cjs/p-card-body.cjs.entry.js +1 -1
  124. package/dist/cjs/p-card-container.cjs.entry.js +2 -2
  125. package/dist/cjs/p-card-header.cjs.entry.js +3 -3
  126. package/dist/cjs/p-checkbox.p-dropdown.p-dropdown-menu-container.p-dropdown-menu-item.entry.cjs.js.map +1 -1
  127. package/dist/cjs/p-checkbox_4.cjs.entry.js +14 -14
  128. package/dist/cjs/p-checkbox_4.cjs.entry.js.map +1 -1
  129. package/dist/cjs/p-content-slider.cjs.entry.js +8 -3
  130. package/dist/cjs/p-content-slider.cjs.entry.js.map +1 -1
  131. package/dist/cjs/p-content-slider.entry.cjs.js.map +1 -1
  132. package/dist/cjs/p-cropper.cjs.entry.js +2 -2
  133. package/dist/cjs/p-datepicker.cjs.entry.js +2 -2
  134. package/dist/cjs/p-datepicker.cjs.entry.js.map +1 -1
  135. package/dist/cjs/p-datepicker.entry.cjs.js.map +1 -1
  136. package/dist/cjs/p-divider.cjs.entry.js +2 -2
  137. package/dist/cjs/p-drawer-body.p-drawer-container.p-drawer-header.entry.cjs.js.map +1 -1
  138. package/dist/cjs/p-drawer-body_3.cjs.entry.js +6 -6
  139. package/dist/cjs/p-drawer-body_3.cjs.entry.js.map +1 -1
  140. package/dist/cjs/p-empty-state.p-floating-menu-container.p-floating-menu-item.p-table-cell.p-table-container.p-table-footer.p-table-header.p-table-row.p-table-row-actions-container.entry.cjs.js.map +1 -1
  141. package/dist/cjs/p-empty-state_9.cjs.entry.js +20 -20
  142. package/dist/cjs/p-empty-state_9.cjs.entry.js.map +1 -1
  143. package/dist/cjs/p-field.p-field-container.entry.cjs.js.map +1 -1
  144. package/dist/cjs/p-field_2.cjs.entry.js +37 -16
  145. package/dist/cjs/p-field_2.cjs.entry.js.map +1 -1
  146. package/dist/cjs/p-helper.p-tooltip.entry.cjs.js.map +1 -1
  147. package/dist/cjs/p-helper_2.cjs.entry.js +5 -5
  148. package/dist/cjs/p-helper_2.cjs.entry.js.map +1 -1
  149. package/dist/cjs/p-iban-icon.cjs.entry.js +1 -1
  150. package/dist/cjs/p-iban-icon.cjs.entry.js.map +1 -1
  151. package/dist/cjs/p-iban-icon.entry.cjs.js.map +1 -1
  152. package/dist/cjs/p-illustration-deprecated.cjs.entry.js +1 -1
  153. package/dist/cjs/p-illustration.cjs.entry.js +1 -1
  154. package/dist/cjs/p-illustration.cjs.entry.js.map +1 -1
  155. package/dist/cjs/p-illustration.entry.cjs.js.map +1 -1
  156. package/dist/cjs/p-info-panel.cjs.entry.js +4 -4
  157. package/dist/cjs/p-info-panel.cjs.entry.js.map +1 -1
  158. package/dist/cjs/p-info-panel.entry.cjs.js.map +1 -1
  159. package/dist/cjs/p-label.cjs.entry.js +3 -3
  160. package/dist/cjs/p-label.cjs.entry.js.map +1 -1
  161. package/dist/cjs/p-label.entry.cjs.js.map +1 -1
  162. package/dist/cjs/p-layout.cjs.entry.js +1 -1
  163. package/dist/cjs/p-layout.cjs.entry.js.map +1 -1
  164. package/dist/cjs/p-layout.entry.cjs.js.map +1 -1
  165. package/dist/cjs/p-listing-item.cjs.entry.js +1 -1
  166. package/dist/cjs/p-listing-line.cjs.entry.js +1 -1
  167. package/dist/cjs/p-listing.cjs.entry.js +1 -1
  168. package/dist/cjs/p-modal-body.p-modal-container.p-modal-footer.p-modal-header.entry.cjs.js.map +1 -1
  169. package/dist/cjs/p-modal-body_4.cjs.entry.js +8 -7
  170. package/dist/cjs/p-modal-body_4.cjs.entry.js.map +1 -1
  171. package/dist/cjs/p-navbar.cjs.entry.js +1 -1
  172. package/dist/cjs/p-navigation-item.cjs.entry.js +2 -2
  173. package/dist/cjs/p-navigation-section.cjs.entry.js +1 -1
  174. package/dist/cjs/p-navigation-section.cjs.entry.js.map +1 -1
  175. package/dist/cjs/p-navigation-section.entry.cjs.js.map +1 -1
  176. package/dist/cjs/p-navigation-title.cjs.entry.js +1 -1
  177. package/dist/cjs/p-navigation-title.cjs.entry.js.map +1 -1
  178. package/dist/cjs/p-navigation-title.entry.cjs.js.map +1 -1
  179. package/dist/cjs/p-pagination-pages-item.cjs.entry.js +2 -2
  180. package/dist/cjs/p-pagination_3.cjs.entry.js +7 -7
  181. package/dist/cjs/p-portal.cjs.entry.js +1 -1
  182. package/dist/cjs/p-radio.cjs.entry.js +4 -4
  183. package/dist/cjs/p-radio.cjs.entry.js.map +1 -1
  184. package/dist/cjs/p-radio.entry.cjs.js.map +1 -1
  185. package/dist/cjs/p-select.cjs.entry.js +1 -1
  186. package/dist/cjs/p-smile.cjs.entry.js +1 -1
  187. package/dist/cjs/p-stepper-item.cjs.entry.js +4 -4
  188. package/dist/cjs/p-stepper-line.cjs.entry.js +1 -1
  189. package/dist/cjs/p-stepper.cjs.entry.js +1 -1
  190. package/dist/cjs/p-tab-container.cjs.entry.js +1 -1
  191. package/dist/cjs/p-tab-item.cjs.entry.js +1 -1
  192. package/dist/cjs/p-table.cjs.entry.js +3 -3
  193. package/dist/cjs/p-toast-container.cjs.entry.js +2 -2
  194. package/dist/cjs/p-toast.cjs.entry.js +1 -1
  195. package/dist/cjs/p-toggle.cjs.entry.js +4 -4
  196. package/dist/cjs/p-toggle.cjs.entry.js.map +1 -1
  197. package/dist/cjs/p-toggle.entry.cjs.js.map +1 -1
  198. package/dist/cjs/paperless.cjs.js +1 -1
  199. package/dist/collection/collection-manifest.json +5 -10
  200. package/dist/collection/components/atoms/avatar/avatar/avatar.component.js +1 -1
  201. package/dist/collection/components/atoms/avatar/avatar-group/avatar-group.component.js +1 -1
  202. package/dist/collection/components/atoms/avatar/avatar-group/avatar-group.component.js.map +1 -1
  203. package/dist/collection/components/atoms/backdrop/backdrop.component.js +3 -3
  204. package/dist/collection/components/atoms/badge/badge.component.js +1 -1
  205. package/dist/collection/components/atoms/card/body/card-body.component.js +1 -1
  206. package/dist/collection/components/atoms/card/container/card-container.component.js +2 -2
  207. package/dist/collection/components/atoms/card/header/card-header.component.js +3 -3
  208. package/dist/collection/components/atoms/checkbox/checkbox.component.js +6 -6
  209. package/dist/collection/components/atoms/checkbox/checkbox.component.js.map +1 -1
  210. package/dist/collection/components/atoms/divider/divider.component.js +2 -2
  211. package/dist/collection/components/atoms/drawer/body/drawer-body.component.js +1 -1
  212. package/dist/collection/components/atoms/drawer/container/drawer-container.component.css +1 -1
  213. package/dist/collection/components/atoms/drawer/container/drawer-container.component.js +2 -2
  214. package/dist/collection/components/atoms/drawer/header/drawer-header.component.css +1 -1
  215. package/dist/collection/components/atoms/drawer/header/drawer-header.component.js +1 -1
  216. package/dist/collection/components/atoms/dropdown-menu/container/dropdown-menu-container.component.js +2 -2
  217. package/dist/collection/components/atoms/dropdown-menu/item/dropdown-menu-item.component.js +3 -3
  218. package/dist/collection/components/atoms/floating-menu/container/floating-menu-container.component.css +1 -1
  219. package/dist/collection/components/atoms/floating-menu/container/floating-menu-container.component.js +2 -2
  220. package/dist/collection/components/atoms/floating-menu/item/floating-menu-item.component.css +1 -1
  221. package/dist/collection/components/atoms/floating-menu/item/floating-menu-item.component.js +2 -2
  222. package/dist/collection/components/atoms/helper/helper.component.js +2 -2
  223. package/dist/collection/components/atoms/helper/helper.component.js.map +1 -1
  224. package/dist/collection/components/atoms/iban-icon/iban-icon.component.js +2 -2
  225. package/dist/collection/components/atoms/iban-icon/iban-icon.component.js.map +1 -1
  226. package/dist/collection/components/atoms/icon/icon.component.css +1 -1
  227. package/dist/collection/components/atoms/icon/icon.component.js +3 -3
  228. package/dist/collection/components/atoms/icon/icon.component.js.map +1 -1
  229. package/dist/collection/components/atoms/illustration/illustration.component.js +1 -1
  230. package/dist/collection/components/atoms/illustration/illustration.component.js.map +1 -1
  231. package/dist/collection/components/atoms/info-panel/info-panel.component.js +7 -7
  232. package/dist/collection/components/atoms/info-panel/info-panel.component.js.map +1 -1
  233. package/dist/collection/components/{deprecated/atoms → atoms}/layout/layout.component.js +1 -1
  234. package/dist/collection/components/atoms/layout/layout.component.js.map +1 -0
  235. package/dist/collection/components/atoms/listing/item/listing-item.component.js +1 -1
  236. package/dist/collection/components/atoms/listing/line/listing-line.component.js +1 -1
  237. package/dist/collection/components/atoms/loader/loader.component.css +1 -0
  238. package/dist/collection/components/{deprecated/atoms → atoms}/loader/loader.component.js +7 -7
  239. package/dist/collection/components/atoms/loader/loader.component.js.map +1 -0
  240. package/dist/collection/components/atoms/modal/body/modal-body.component.js +2 -2
  241. package/dist/collection/components/atoms/modal/container/modal-container.component.js +2 -2
  242. package/dist/collection/components/atoms/modal/footer/modal-footer.component.js +1 -1
  243. package/dist/collection/components/atoms/modal/header/modal-header.component.css +1 -1
  244. package/dist/collection/components/atoms/modal/header/modal-header.component.js +2 -1
  245. package/dist/collection/components/atoms/modal/header/modal-header.component.js.map +1 -1
  246. package/dist/collection/components/atoms/navigation-title/navigation-title.component.js +1 -1
  247. package/dist/collection/components/atoms/navigation-title/navigation-title.component.js.map +1 -1
  248. package/dist/collection/components/atoms/pagination/pages-item/pagination-pages-item.component.js +2 -2
  249. package/dist/collection/components/atoms/radio/radio.component.js +5 -5
  250. package/dist/collection/components/atoms/radio/radio.component.js.map +1 -1
  251. package/dist/collection/components/atoms/segment/container/segment-container.component.js +1 -1
  252. package/dist/collection/components/atoms/segment/container/segment-container.component.js.map +1 -1
  253. package/dist/collection/components/atoms/segment/item/segment-item.component.js +2 -2
  254. package/dist/collection/components/atoms/smile/smile.component.js +1 -1
  255. package/dist/collection/components/atoms/stepper/item/stepper-item.component.js +4 -4
  256. package/dist/collection/components/atoms/stepper/line/stepper-line.component.js +1 -1
  257. package/dist/collection/components/atoms/tab/container/tab-container.component.js +1 -1
  258. package/dist/collection/components/atoms/tab/item/tab-item.component.js +1 -1
  259. package/dist/collection/components/atoms/table/actions-container/table-container.component.js +1 -1
  260. package/dist/collection/components/atoms/table/container/table-row-actions-container.component.js +1 -1
  261. package/dist/collection/components/atoms/toast-container/toast-container.component.js +2 -2
  262. package/dist/collection/components/atoms/toggle/toggle.component.js +5 -5
  263. package/dist/collection/components/atoms/toggle/toggle.component.js.map +1 -1
  264. package/dist/collection/components/atoms/tooltip/tooltip.component.js +4 -4
  265. package/dist/collection/components/atoms/tooltip/tooltip.component.js.map +1 -1
  266. package/dist/collection/components/deprecated/atoms/illustration-deprecated/illustration-deprecated.component.js +1 -1
  267. package/dist/collection/components/deprecated/molecules/cropper/cropper.component.js +2 -2
  268. package/dist/collection/components/helpers/portal/portal.component.js +1 -1
  269. package/dist/collection/components/molecules/accordion/accordion.component.css +1 -0
  270. package/dist/collection/components/{deprecated/molecules → molecules}/accordion/accordion.component.js +2 -2
  271. package/dist/collection/components/molecules/accordion/accordion.component.js.map +1 -0
  272. package/dist/collection/components/molecules/attachment/attachment.component.css +1 -0
  273. package/dist/collection/components/molecules/attachment/attachment.component.js +377 -0
  274. package/dist/collection/components/molecules/attachment/attachment.component.js.map +1 -0
  275. package/dist/collection/components/molecules/button/button.component.js +7 -5
  276. package/dist/collection/components/molecules/button/button.component.js.map +1 -1
  277. package/dist/collection/components/molecules/button-group/button-group.component.js +1 -1
  278. package/dist/collection/components/molecules/button-group/button-group.component.js.map +1 -1
  279. package/dist/collection/components/molecules/calendar/calendar.component.js +1 -1
  280. package/dist/collection/components/{deprecated/molecules → molecules}/content-slider/content-slider.component.css +1 -1
  281. package/dist/collection/components/{deprecated/molecules → molecules}/content-slider/content-slider.component.js +6 -2
  282. package/dist/collection/components/molecules/content-slider/content-slider.component.js.map +1 -0
  283. package/dist/collection/components/molecules/datepicker/datepicker.component.js +3 -3
  284. package/dist/collection/components/molecules/datepicker/datepicker.component.js.map +1 -1
  285. package/dist/collection/components/molecules/dropdown/dropdown.component.js +4 -4
  286. package/dist/collection/components/molecules/dropdown/dropdown.component.js.map +1 -1
  287. package/dist/collection/components/molecules/empty-state/empty-state.component.css +1 -1
  288. package/dist/collection/components/molecules/empty-state/empty-state.component.js +2 -2
  289. package/dist/collection/components/molecules/field/container/field-container.component.js +5 -5
  290. package/dist/collection/components/molecules/field/container/field-container.component.js.map +1 -1
  291. package/dist/collection/components/molecules/field/field/field.component.css +1 -1
  292. package/dist/collection/components/molecules/field/field/field.component.js +34 -13
  293. package/dist/collection/components/molecules/field/field/field.component.js.map +1 -1
  294. package/dist/collection/components/molecules/label/label.component.js +4 -4
  295. package/dist/collection/components/molecules/label/label.component.js.map +1 -1
  296. package/dist/collection/components/molecules/navigation/item/navigation-item.component.js +2 -2
  297. package/dist/collection/components/molecules/navigation/section/navigation-section.component.js +1 -1
  298. package/dist/collection/components/molecules/navigation/section/navigation-section.component.js.map +1 -1
  299. package/dist/collection/components/molecules/pagination/pages/pagination-pages.component.js +1 -1
  300. package/dist/collection/components/molecules/pagination/pagination/pagination.component.js +3 -3
  301. package/dist/collection/components/molecules/pagination/size/pagination-size.component.js +3 -3
  302. package/dist/collection/components/molecules/select/select.component.js +1 -1
  303. package/dist/collection/components/molecules/table/cell/table-cell.component.js +1 -1
  304. package/dist/collection/components/molecules/table/footer/table-footer.component.js +2 -2
  305. package/dist/collection/components/molecules/table/header/table-header.component.js +3 -3
  306. package/dist/collection/components/molecules/table/row/table-row.component.js +3 -3
  307. package/dist/collection/components/molecules/toast/toast.component.js +1 -1
  308. package/dist/collection/components/organisms/listing/listing.component.js +1 -1
  309. package/dist/collection/components/organisms/navbar/navbar.component.js +1 -1
  310. package/dist/collection/components/organisms/stepper/stepper.component.js +1 -1
  311. package/dist/collection/components/organisms/table/table.component.js +3 -3
  312. package/dist/components/index.js +2 -2
  313. package/dist/components/{p-B-dtByez.js → p-192xXCKV.js} +10 -10
  314. package/dist/components/p-192xXCKV.js.map +1 -0
  315. package/dist/components/{p-DdK27Obl.js → p-2DRqcElr.js} +3 -3
  316. package/dist/components/{p-DdK27Obl.js.map → p-2DRqcElr.js.map} +1 -1
  317. package/dist/components/{p-MQ5NAuIf.js → p-A5puW8KH.js} +13 -11
  318. package/dist/components/p-A5puW8KH.js.map +1 -0
  319. package/dist/components/{p-C1FkmkFJ.js → p-B4MNLDXF.js} +3 -3
  320. package/dist/components/{p-C1FkmkFJ.js.map → p-B4MNLDXF.js.map} +1 -1
  321. package/dist/components/{p-CSIFLNsS.js → p-BBKYP-Cm.js} +3 -3
  322. package/dist/components/{p-CSIFLNsS.js.map → p-BBKYP-Cm.js.map} +1 -1
  323. package/dist/components/{p-BEuvmIBQ.js → p-BE9wqNth.js} +4 -4
  324. package/dist/components/{p-BEuvmIBQ.js.map → p-BE9wqNth.js.map} +1 -1
  325. package/dist/components/{p-DXsCtVm-.js → p-BFKshVEl.js} +3 -3
  326. package/dist/components/{p-DXsCtVm-.js.map → p-BFKshVEl.js.map} +1 -1
  327. package/dist/components/{p-D2Em0Yy7.js → p-BP1aeBcW.js} +9 -9
  328. package/dist/components/p-BP1aeBcW.js.map +1 -0
  329. package/dist/components/{p-BPkSg0bc.js → p-BPXS3EM8.js} +6 -6
  330. package/dist/components/{p-BPkSg0bc.js.map → p-BPXS3EM8.js.map} +1 -1
  331. package/dist/components/{p-p2WG_YKz.js → p-BSAVV_6x.js} +7 -7
  332. package/dist/components/{p-p2WG_YKz.js.map → p-BSAVV_6x.js.map} +1 -1
  333. package/dist/components/{p-CXH4yAMZ.js → p-Bev8J8ks.js} +10 -9
  334. package/dist/components/p-Bev8J8ks.js.map +1 -0
  335. package/dist/components/{p-CSMO4KRK.js → p-BnyZAlkn.js} +44 -23
  336. package/dist/components/p-BnyZAlkn.js.map +1 -0
  337. package/dist/components/{p-DlFumKvb.js → p-Bxt_h1P2.js} +8 -8
  338. package/dist/components/{p-DlFumKvb.js.map → p-Bxt_h1P2.js.map} +1 -1
  339. package/dist/components/p-C-1aZ7t0.js +92 -0
  340. package/dist/components/p-C-1aZ7t0.js.map +1 -0
  341. package/dist/components/p-C2CsD_zr.js +115 -0
  342. package/dist/components/{p-DJzH_A-R.js.map → p-C2CsD_zr.js.map} +1 -1
  343. package/dist/components/{p-C0yOzPit.js → p-CA3joyV6.js} +3 -3
  344. package/dist/components/{p-C0yOzPit.js.map → p-CA3joyV6.js.map} +1 -1
  345. package/dist/components/{p-D09jozUL.js → p-CA6-0EkK.js} +5 -5
  346. package/dist/components/{p-D09jozUL.js.map → p-CA6-0EkK.js.map} +1 -1
  347. package/dist/components/{p-4hDfHOnN.js → p-CBWjHURv.js} +4 -4
  348. package/dist/components/p-CBWjHURv.js.map +1 -0
  349. package/dist/components/{p-BpWSyLrS.js → p-CKTvcFFn.js} +3 -3
  350. package/dist/components/{p-BpWSyLrS.js.map → p-CKTvcFFn.js.map} +1 -1
  351. package/dist/components/{p-Ma26TfrN.js → p-CMY9PhJV.js} +5 -5
  352. package/dist/components/{p-Ma26TfrN.js.map → p-CMY9PhJV.js.map} +1 -1
  353. package/dist/components/{p-olyt1_RK.js → p-CS8aLBBd.js} +3 -3
  354. package/dist/components/{p-olyt1_RK.js.map → p-CS8aLBBd.js.map} +1 -1
  355. package/dist/components/{p-Cb5QxFb_.js → p-CT54OXR2.js} +3 -3
  356. package/dist/components/{p-Cb5QxFb_.js.map → p-CT54OXR2.js.map} +1 -1
  357. package/dist/components/{p-tf3ZTq-9.js → p-CgHBpaJ2.js} +16 -16
  358. package/dist/components/{p-tf3ZTq-9.js.map → p-CgHBpaJ2.js.map} +1 -1
  359. package/dist/components/p-ChV9xqsO.js +6 -0
  360. package/dist/components/p-ChV9xqsO.js.map +1 -0
  361. package/dist/components/{p-DQsUJhL8.js → p-Cp8IEnaB.js} +12 -12
  362. package/dist/components/{p-DQsUJhL8.js.map → p-Cp8IEnaB.js.map} +1 -1
  363. package/dist/components/{p-BmuXuYR6.js → p-Cr5nmZn3.js} +6 -6
  364. package/dist/components/{p-BmuXuYR6.js.map → p-Cr5nmZn3.js.map} +1 -1
  365. package/dist/components/{p-CmzpquGH.js → p-Cs06wZSM.js} +8 -8
  366. package/dist/components/{p-CmzpquGH.js.map → p-Cs06wZSM.js.map} +1 -1
  367. package/dist/components/{p-BIf14u2D.js → p-Ct_1clhY.js} +9 -9
  368. package/dist/components/{p-BIf14u2D.js.map → p-Ct_1clhY.js.map} +1 -1
  369. package/dist/components/{p-CEoo55FK.js → p-Cv1xoKQ6.js} +5 -5
  370. package/dist/components/{p-CEoo55FK.js.map → p-Cv1xoKQ6.js.map} +1 -1
  371. package/dist/components/{p-C7OuWaSr.js → p-CyPGXubm.js} +4 -4
  372. package/dist/components/{p-C7OuWaSr.js.map → p-CyPGXubm.js.map} +1 -1
  373. package/dist/components/{p-BlzjYdn5.js → p-D4wHNR58.js} +6 -6
  374. package/dist/components/{p-BlzjYdn5.js.map → p-D4wHNR58.js.map} +1 -1
  375. package/dist/components/{p-DH9lFbRX.js → p-D7OHNXA8.js} +5 -5
  376. package/dist/components/{p-DH9lFbRX.js.map → p-D7OHNXA8.js.map} +1 -1
  377. package/dist/components/{p-oN2NV1VP.js → p-DB4h1B2U.js} +4 -4
  378. package/dist/components/{p-oN2NV1VP.js.map → p-DB4h1B2U.js.map} +1 -1
  379. package/dist/components/{p-ZBndlSp5.js → p-DNHN-J6Y.js} +7 -7
  380. package/dist/components/p-DNHN-J6Y.js.map +1 -0
  381. package/dist/components/{p-DNuBtBUG.js → p-DO22qLlU.js} +8 -8
  382. package/dist/components/{p-DNuBtBUG.js.map → p-DO22qLlU.js.map} +1 -1
  383. package/dist/components/{p-CUgIFdxM.js → p-DfRQHBer.js} +3 -3
  384. package/dist/components/{p-CUgIFdxM.js.map → p-DfRQHBer.js.map} +1 -1
  385. package/dist/components/{p-CYGYOpps.js → p-DlGX7eAs.js} +12 -12
  386. package/dist/components/p-DlGX7eAs.js.map +1 -0
  387. package/dist/components/p-Dlmv9Uk2.js +58 -0
  388. package/dist/components/{p-BYnq9fQl.js.map → p-Dlmv9Uk2.js.map} +1 -1
  389. package/dist/components/{p-CzmLJq-j.js → p-DwUkFgs3.js} +18 -18
  390. package/dist/components/{p-CzmLJq-j.js.map → p-DwUkFgs3.js.map} +1 -1
  391. package/dist/components/{p-CErvgq5z.js → p-FJZcncHr.js} +4 -4
  392. package/dist/components/{p-CErvgq5z.js.map → p-FJZcncHr.js.map} +1 -1
  393. package/dist/components/{p-C_t2sBf3.js → p-HLwIOGJt.js} +8 -8
  394. package/dist/components/{p-C_t2sBf3.js.map → p-HLwIOGJt.js.map} +1 -1
  395. package/dist/components/{p-CxHSXAkq.js → p-Hj0dtQOu.js} +10 -10
  396. package/dist/components/{p-CxHSXAkq.js.map → p-Hj0dtQOu.js.map} +1 -1
  397. package/dist/components/{p-CKc3SL1J.js → p-OY7iMMA5.js} +6 -6
  398. package/dist/components/{p-CKc3SL1J.js.map → p-OY7iMMA5.js.map} +1 -1
  399. package/dist/components/p-accordion.js +4 -4
  400. package/dist/components/p-accordion.js.map +1 -1
  401. package/dist/components/p-attachment.js +86 -23
  402. package/dist/components/p-attachment.js.map +1 -1
  403. package/dist/components/p-avatar-group.js +1 -1
  404. package/dist/components/p-avatar-group.js.map +1 -1
  405. package/dist/components/p-avatar.js +1 -1
  406. package/dist/components/{p-BELUs4d5.js → p-b3Miuuib.js} +16 -16
  407. package/dist/components/{p-BELUs4d5.js.map → p-b3Miuuib.js.map} +1 -1
  408. package/dist/components/p-backdrop.js +1 -1
  409. package/dist/components/p-badge.js +1 -1
  410. package/dist/components/p-button-group.js +1 -1
  411. package/dist/components/p-button-group.js.map +1 -1
  412. package/dist/components/p-button.js +1 -1
  413. package/dist/components/{p-CQcp92mr.js → p-cCxwgzDB.js} +7 -7
  414. package/dist/components/p-cCxwgzDB.js.map +1 -0
  415. package/dist/components/p-calendar.js +1 -1
  416. package/dist/components/p-card-body.js +1 -1
  417. package/dist/components/p-card-container.js +3 -3
  418. package/dist/components/p-card-header.js +7 -7
  419. package/dist/components/p-checkbox.js +1 -1
  420. package/dist/components/p-content-slider.js +8 -10
  421. package/dist/components/p-content-slider.js.map +1 -1
  422. package/dist/components/p-cropper.js +4 -4
  423. package/dist/components/p-datepicker.js +14 -14
  424. package/dist/components/p-datepicker.js.map +1 -1
  425. package/dist/components/p-divider.js +1 -1
  426. package/dist/components/p-drawer-body.js +1 -1
  427. package/dist/components/p-drawer-container.js +1 -1
  428. package/dist/components/p-drawer-header.js +1 -1
  429. package/dist/components/p-drawer.js +8 -8
  430. package/dist/components/p-dropdown-menu-container.js +1 -1
  431. package/dist/components/p-dropdown-menu-item.js +1 -1
  432. package/dist/components/p-dropdown.js +1 -1
  433. package/dist/components/p-empty-state.js +1 -1
  434. package/dist/components/p-field-container.js +1 -1
  435. package/dist/components/p-field.js +1 -1
  436. package/dist/components/p-floating-menu-container.js +1 -1
  437. package/dist/components/p-floating-menu-item.js +1 -1
  438. package/dist/components/p-helper.js +1 -1
  439. package/dist/components/{p-abTHpIy3.js → p-i-upzqfe.js} +4 -4
  440. package/dist/components/{p-abTHpIy3.js.map → p-i-upzqfe.js.map} +1 -1
  441. package/dist/components/p-iban-icon.js +2 -2
  442. package/dist/components/p-iban-icon.js.map +1 -1
  443. package/dist/components/p-icon.js +1 -1
  444. package/dist/components/p-illustration-deprecated.js +1 -1
  445. package/dist/components/p-illustration.js +1 -1
  446. package/dist/components/p-info-panel.js +6 -6
  447. package/dist/components/p-info-panel.js.map +1 -1
  448. package/dist/components/p-label.js +7 -7
  449. package/dist/components/p-label.js.map +1 -1
  450. package/dist/components/p-layout.js +1 -1
  451. package/dist/components/p-layout.js.map +1 -1
  452. package/dist/components/p-listing-item.js +2 -2
  453. package/dist/components/p-listing-line.js +1 -1
  454. package/dist/components/p-listing.js +2 -2
  455. package/dist/components/p-loader.js +1 -1
  456. package/dist/components/p-modal-body.js +1 -1
  457. package/dist/components/p-modal-container.js +1 -1
  458. package/dist/components/p-modal-footer.js +1 -1
  459. package/dist/components/p-modal-header.js +1 -1
  460. package/dist/components/p-modal.js +10 -10
  461. package/dist/components/p-navbar.js +6 -6
  462. package/dist/components/p-navigation-item.js +7 -7
  463. package/dist/components/p-navigation-section.js +2 -2
  464. package/dist/components/p-navigation-section.js.map +1 -1
  465. package/dist/components/p-navigation-title.js +1 -1
  466. package/dist/components/{p-ElOvIDKN.js → p-oan6Th3h.js} +3 -3
  467. package/dist/components/{p-ElOvIDKN.js.map → p-oan6Th3h.js.map} +1 -1
  468. package/dist/components/p-pagination-pages-item.js +1 -1
  469. package/dist/components/p-pagination-pages.js +1 -1
  470. package/dist/components/p-pagination-size.js +1 -1
  471. package/dist/components/p-pagination.js +1 -1
  472. package/dist/components/p-portal.js +1 -1
  473. package/dist/components/p-profile.js +7 -7
  474. package/dist/components/p-radio.js +6 -6
  475. package/dist/components/p-radio.js.map +1 -1
  476. package/dist/components/p-segment-container.js +1 -1
  477. package/dist/components/p-segment-item.js +1 -1
  478. package/dist/components/p-select.js +15 -15
  479. package/dist/components/p-smile.js +1 -1
  480. package/dist/components/p-stepper-item.js +5 -5
  481. package/dist/components/p-stepper-line.js +1 -1
  482. package/dist/components/p-stepper.js +3 -3
  483. package/dist/components/p-tab-container.js +2 -2
  484. package/dist/components/p-tab-item.js +2 -2
  485. package/dist/components/p-table-cell.js +1 -1
  486. package/dist/components/p-table-container.js +1 -1
  487. package/dist/components/p-table-footer.js +1 -1
  488. package/dist/components/p-table-header.js +1 -1
  489. package/dist/components/p-table-row-actions-container.js +1 -1
  490. package/dist/components/p-table-row.js +1 -1
  491. package/dist/components/p-table.js +35 -35
  492. package/dist/components/p-toast-container.js +3 -3
  493. package/dist/components/p-toast.js +5 -5
  494. package/dist/components/p-toggle.js +6 -6
  495. package/dist/components/p-toggle.js.map +1 -1
  496. package/dist/components/p-tooltip.js +1 -1
  497. package/dist/components/{p-dHqdW8fy.js → p-vxD7JU3i.js} +5 -5
  498. package/dist/components/{p-dHqdW8fy.js.map → p-vxD7JU3i.js.map} +1 -1
  499. package/dist/esm/index-DhGo7hbh.js +0 -20
  500. package/dist/esm/loader.js +1 -1
  501. package/dist/esm/p-accordion.entry.js +2 -2
  502. package/dist/esm/p-accordion.entry.js.map +1 -1
  503. package/dist/esm/p-attachment.entry.js +63 -12
  504. package/dist/esm/p-attachment.entry.js.map +1 -1
  505. package/dist/esm/p-avatar-group.entry.js +1 -1
  506. package/dist/esm/p-avatar-group.entry.js.map +1 -1
  507. package/dist/esm/p-avatar.entry.js +1 -1
  508. package/dist/esm/p-backdrop.entry.js +3 -3
  509. package/dist/esm/p-badge.p-segment-container.p-segment-item.entry.js.map +1 -1
  510. package/dist/esm/p-badge_3.entry.js +4 -4
  511. package/dist/esm/p-badge_3.entry.js.map +1 -1
  512. package/dist/esm/p-button-group.entry.js +1 -1
  513. package/dist/esm/p-button-group.entry.js.map +1 -1
  514. package/dist/esm/p-button.p-icon.p-loader.entry.js.map +1 -1
  515. package/dist/esm/p-button_3.entry.js +16 -14
  516. package/dist/esm/p-button_3.entry.js.map +1 -1
  517. package/dist/esm/p-calendar.entry.js +1 -1
  518. package/dist/esm/p-card-body.entry.js +1 -1
  519. package/dist/esm/p-card-container.entry.js +2 -2
  520. package/dist/esm/p-card-header.entry.js +3 -3
  521. package/dist/esm/p-checkbox.p-dropdown.p-dropdown-menu-container.p-dropdown-menu-item.entry.js.map +1 -1
  522. package/dist/esm/p-checkbox_4.entry.js +15 -15
  523. package/dist/esm/p-checkbox_4.entry.js.map +1 -1
  524. package/dist/esm/p-content-slider.entry.js +8 -3
  525. package/dist/esm/p-content-slider.entry.js.map +1 -1
  526. package/dist/esm/p-cropper.entry.js +2 -2
  527. package/dist/esm/p-datepicker.entry.js +3 -3
  528. package/dist/esm/p-datepicker.entry.js.map +1 -1
  529. package/dist/esm/p-divider.entry.js +2 -2
  530. package/dist/esm/p-drawer-body.p-drawer-container.p-drawer-header.entry.js.map +1 -1
  531. package/dist/esm/p-drawer-body_3.entry.js +6 -6
  532. package/dist/esm/p-drawer-body_3.entry.js.map +1 -1
  533. package/dist/esm/p-empty-state.p-floating-menu-container.p-floating-menu-item.p-table-cell.p-table-container.p-table-footer.p-table-header.p-table-row.p-table-row-actions-container.entry.js.map +1 -1
  534. package/dist/esm/p-empty-state_9.entry.js +20 -20
  535. package/dist/esm/p-empty-state_9.entry.js.map +1 -1
  536. package/dist/esm/p-field.p-field-container.entry.js.map +1 -1
  537. package/dist/esm/p-field_2.entry.js +38 -17
  538. package/dist/esm/p-field_2.entry.js.map +1 -1
  539. package/dist/esm/p-helper.p-tooltip.entry.js.map +1 -1
  540. package/dist/esm/p-helper_2.entry.js +6 -6
  541. package/dist/esm/p-helper_2.entry.js.map +1 -1
  542. package/dist/esm/p-iban-icon.entry.js +2 -2
  543. package/dist/esm/p-iban-icon.entry.js.map +1 -1
  544. package/dist/esm/p-illustration-deprecated.entry.js +1 -1
  545. package/dist/esm/p-illustration.entry.js +1 -1
  546. package/dist/esm/p-illustration.entry.js.map +1 -1
  547. package/dist/esm/p-info-panel.entry.js +4 -4
  548. package/dist/esm/p-info-panel.entry.js.map +1 -1
  549. package/dist/esm/p-label.entry.js +4 -4
  550. package/dist/esm/p-label.entry.js.map +1 -1
  551. package/dist/esm/p-layout.entry.js +1 -1
  552. package/dist/esm/p-layout.entry.js.map +1 -1
  553. package/dist/esm/p-listing-item.entry.js +1 -1
  554. package/dist/esm/p-listing-line.entry.js +1 -1
  555. package/dist/esm/p-listing.entry.js +1 -1
  556. package/dist/esm/p-modal-body.p-modal-container.p-modal-footer.p-modal-header.entry.js.map +1 -1
  557. package/dist/esm/p-modal-body_4.entry.js +8 -7
  558. package/dist/esm/p-modal-body_4.entry.js.map +1 -1
  559. package/dist/esm/p-navbar.entry.js +1 -1
  560. package/dist/esm/p-navigation-item.entry.js +2 -2
  561. package/dist/esm/p-navigation-section.entry.js +1 -1
  562. package/dist/esm/p-navigation-section.entry.js.map +1 -1
  563. package/dist/esm/p-navigation-title.entry.js +1 -1
  564. package/dist/esm/p-navigation-title.entry.js.map +1 -1
  565. package/dist/esm/p-pagination-pages-item.entry.js +2 -2
  566. package/dist/esm/p-pagination_3.entry.js +7 -7
  567. package/dist/esm/p-portal.entry.js +1 -1
  568. package/dist/esm/p-radio.entry.js +5 -5
  569. package/dist/esm/p-radio.entry.js.map +1 -1
  570. package/dist/esm/p-select.entry.js +1 -1
  571. package/dist/esm/p-smile.entry.js +1 -1
  572. package/dist/esm/p-stepper-item.entry.js +4 -4
  573. package/dist/esm/p-stepper-line.entry.js +1 -1
  574. package/dist/esm/p-stepper.entry.js +1 -1
  575. package/dist/esm/p-tab-container.entry.js +1 -1
  576. package/dist/esm/p-tab-item.entry.js +1 -1
  577. package/dist/esm/p-table.entry.js +3 -3
  578. package/dist/esm/p-toast-container.entry.js +2 -2
  579. package/dist/esm/p-toast.entry.js +1 -1
  580. package/dist/esm/p-toggle.entry.js +5 -5
  581. package/dist/esm/p-toggle.entry.js.map +1 -1
  582. package/dist/esm/paperless.js +1 -1
  583. package/dist/index.html +1 -1
  584. package/dist/paperless/p-01a2b5af.entry.js +2 -0
  585. package/dist/paperless/p-01a2b5af.entry.js.map +1 -0
  586. package/dist/paperless/p-08cff47b.entry.js +2 -0
  587. package/dist/paperless/{p-96cd5cff.entry.js → p-0c0ebb15.entry.js} +2 -2
  588. package/dist/{build/p-96cb3e48.entry.js → paperless/p-0c257fa2.entry.js} +2 -2
  589. package/dist/paperless/p-0cf505a8.entry.js +2 -0
  590. package/dist/paperless/{p-505650b6.entry.js.map → p-0cf505a8.entry.js.map} +1 -1
  591. package/dist/paperless/p-0da54170.entry.js +2 -0
  592. package/dist/paperless/p-0da54170.entry.js.map +1 -0
  593. package/dist/{build/p-8d4c7827.entry.js → paperless/p-0fe51ad0.entry.js} +2 -2
  594. package/dist/paperless/{p-35c50504.entry.js → p-128f3811.entry.js} +2 -2
  595. package/dist/paperless/{p-0a0ef10d.entry.js → p-1778732a.entry.js} +2 -2
  596. package/dist/paperless/p-1a544806.entry.js +2 -0
  597. package/dist/paperless/p-22e7fde5.entry.js +2 -0
  598. package/dist/paperless/p-22e7fde5.entry.js.map +1 -0
  599. package/dist/{build/p-41949138.entry.js → paperless/p-29d452d0.entry.js} +2 -2
  600. package/dist/paperless/{p-1c9405d8.entry.js → p-30f6e463.entry.js} +2 -2
  601. package/dist/paperless/p-3d341a83.entry.js +2 -0
  602. package/dist/paperless/p-3d341a83.entry.js.map +1 -0
  603. package/dist/{build/p-dc4121c6.entry.js → paperless/p-4e95f16d.entry.js} +2 -2
  604. package/dist/paperless/p-4e95f16d.entry.js.map +1 -0
  605. package/dist/paperless/{p-6cddddb7.entry.js → p-52149e0e.entry.js} +2 -2
  606. package/dist/paperless/p-5451207c.entry.js +2 -0
  607. package/dist/paperless/{p-6d54b0a5.entry.js.map → p-5451207c.entry.js.map} +1 -1
  608. package/dist/paperless/{p-fd4a25eb.entry.js → p-58f9ac89.entry.js} +2 -2
  609. package/dist/paperless/p-5c3167c8.entry.js +2 -0
  610. package/dist/paperless/p-5c3167c8.entry.js.map +1 -0
  611. package/dist/paperless/{p-bc366236.entry.js → p-5ee4e9c7.entry.js} +2 -2
  612. package/dist/{build/p-4906fd4d.entry.js → paperless/p-5fa74e2e.entry.js} +2 -2
  613. package/dist/{build/p-26b75731.entry.js → paperless/p-66adc33a.entry.js} +2 -2
  614. package/dist/paperless/p-6c5f6d8a.entry.js +2 -0
  615. package/dist/paperless/p-6c5f6d8a.entry.js.map +1 -0
  616. package/dist/paperless/{p-b1b12e88.entry.js → p-7046dc66.entry.js} +2 -2
  617. package/dist/paperless/p-730bcacd.entry.js +2 -0
  618. package/dist/paperless/p-730bcacd.entry.js.map +1 -0
  619. package/dist/paperless/{p-a3da31c4.entry.js → p-7658fd89.entry.js} +2 -2
  620. package/dist/{build/p-697c465d.entry.js → paperless/p-76a4f70e.entry.js} +2 -2
  621. package/dist/paperless/p-79b42a23.entry.js +2 -0
  622. package/dist/paperless/p-79b42a23.entry.js.map +1 -0
  623. package/dist/paperless/{p-929b47c9.entry.js → p-7ddf5875.entry.js} +2 -2
  624. package/dist/paperless/{p-929b47c9.entry.js.map → p-7ddf5875.entry.js.map} +1 -1
  625. package/dist/{build/p-7a878e24.entry.js → paperless/p-8249382f.entry.js} +2 -2
  626. package/dist/paperless/p-8577755d.entry.js +2 -0
  627. package/dist/paperless/p-8577755d.entry.js.map +1 -0
  628. package/dist/paperless/{p-53e0b8a1.entry.js → p-868f9ee9.entry.js} +2 -2
  629. package/dist/{build/p-d4f4fe62.entry.js → paperless/p-912ce588.entry.js} +2 -2
  630. package/dist/paperless/p-91ea22cd.entry.js +2 -0
  631. package/dist/paperless/p-91ea22cd.entry.js.map +1 -0
  632. package/dist/paperless/{p-1bde15ae.entry.js → p-9409dfd7.entry.js} +2 -2
  633. package/dist/paperless/p-9409dfd7.entry.js.map +1 -0
  634. package/dist/paperless/p-a48262c6.entry.js +2 -0
  635. package/dist/{build/p-922fba03.entry.js.map → paperless/p-a48262c6.entry.js.map} +1 -1
  636. package/dist/paperless/{p-8a63e1d9.entry.js → p-a5bc8b63.entry.js} +2 -2
  637. package/dist/paperless/{p-8a63e1d9.entry.js.map → p-a5bc8b63.entry.js.map} +1 -1
  638. package/dist/paperless/{p-d894e0b1.entry.js → p-a5f29193.entry.js} +2 -2
  639. package/dist/paperless/p-abd13a2a.entry.js +2 -0
  640. package/dist/paperless/p-accordion.entry.esm.js.map +1 -1
  641. package/dist/{build/p-b029529c.entry.js → paperless/p-ae64bdf2.entry.js} +2 -2
  642. package/dist/paperless/p-attachment.entry.esm.js.map +1 -1
  643. package/dist/paperless/p-avatar-group.entry.esm.js.map +1 -1
  644. package/dist/paperless/p-badge.p-segment-container.p-segment-item.entry.esm.js.map +1 -1
  645. package/dist/paperless/p-bfda8061.entry.js +2 -0
  646. package/dist/paperless/{p-4205f7e2.entry.js.map → p-bfda8061.entry.js.map} +1 -1
  647. package/dist/paperless/p-button-group.entry.esm.js.map +1 -1
  648. package/dist/paperless/p-button.p-icon.p-loader.entry.esm.js.map +1 -1
  649. package/dist/paperless/p-c1041af9.entry.js +2 -0
  650. package/dist/paperless/p-c1041af9.entry.js.map +1 -0
  651. package/dist/paperless/p-c7139e78.entry.js +2 -0
  652. package/dist/paperless/p-c7139e78.entry.js.map +1 -0
  653. package/dist/paperless/{p-0ffe0165.entry.js → p-cac630d2.entry.js} +2 -2
  654. package/dist/paperless/p-cc379751.entry.js +2 -0
  655. package/dist/paperless/p-cc379751.entry.js.map +1 -0
  656. package/dist/paperless/p-checkbox.p-dropdown.p-dropdown-menu-container.p-dropdown-menu-item.entry.esm.js.map +1 -1
  657. package/dist/paperless/p-content-slider.entry.esm.js.map +1 -1
  658. package/dist/paperless/{p-5667f8bf.entry.js → p-d0968c28.entry.js} +2 -2
  659. package/dist/paperless/p-d0968c28.entry.js.map +1 -0
  660. package/dist/paperless/{p-df7f9328.entry.js → p-d18ee52f.entry.js} +2 -2
  661. package/dist/{build/p-df7f9328.entry.js.map → paperless/p-d18ee52f.entry.js.map} +1 -1
  662. package/dist/paperless/p-datepicker.entry.esm.js.map +1 -1
  663. package/dist/paperless/p-drawer-body.p-drawer-container.p-drawer-header.entry.esm.js.map +1 -1
  664. package/dist/{build/p-7a05c8ca.entry.js → paperless/p-e9db1b2d.entry.js} +2 -2
  665. package/dist/paperless/p-eef52967.entry.js +2 -0
  666. package/dist/paperless/p-empty-state.p-floating-menu-container.p-floating-menu-item.p-table-cell.p-table-container.p-table-footer.p-table-header.p-table-row.p-table-row-actions-container.entry.esm.js.map +1 -1
  667. package/dist/paperless/{p-5cd98f23.entry.js → p-f1f14a3f.entry.js} +2 -2
  668. package/dist/paperless/p-field.p-field-container.entry.esm.js.map +1 -1
  669. package/dist/paperless/p-helper.p-tooltip.entry.esm.js.map +1 -1
  670. package/dist/paperless/p-iban-icon.entry.esm.js.map +1 -1
  671. package/dist/paperless/p-illustration.entry.esm.js.map +1 -1
  672. package/dist/paperless/p-info-panel.entry.esm.js.map +1 -1
  673. package/dist/paperless/p-label.entry.esm.js.map +1 -1
  674. package/dist/paperless/p-layout.entry.esm.js.map +1 -1
  675. package/dist/paperless/p-modal-body.p-modal-container.p-modal-footer.p-modal-header.entry.esm.js.map +1 -1
  676. package/dist/paperless/p-navigation-section.entry.esm.js.map +1 -1
  677. package/dist/paperless/p-navigation-title.entry.esm.js.map +1 -1
  678. package/dist/paperless/p-radio.entry.esm.js.map +1 -1
  679. package/dist/paperless/p-toggle.entry.esm.js.map +1 -1
  680. package/dist/paperless/paperless.esm.js +1 -1
  681. package/dist/sw.js +1 -1
  682. package/dist/sw.js.map +1 -1
  683. package/dist/types/components/atoms/info-panel/info-panel.component.d.ts +1 -1
  684. package/dist/types/components/{deprecated/atoms → atoms}/layout/layout.component.d.ts +1 -1
  685. package/dist/types/components/{deprecated/atoms → atoms}/loader/loader.component.d.ts +1 -1
  686. package/dist/types/components/{deprecated/molecules → molecules}/accordion/accordion.component.d.ts +1 -1
  687. package/dist/types/components/molecules/attachment/attachment.component.d.ts +60 -0
  688. package/dist/types/components/molecules/field/container/field-container.component.d.ts +1 -1
  689. package/dist/types/components.d.ts +77 -281
  690. package/package.json +1 -1
  691. package/dist/build/p-05791ffa.entry.js +0 -2
  692. package/dist/build/p-05791ffa.entry.js.map +0 -1
  693. package/dist/build/p-11b1e718.entry.js +0 -2
  694. package/dist/build/p-11b1e718.entry.js.map +0 -1
  695. package/dist/build/p-1bde15ae.entry.js.map +0 -1
  696. package/dist/build/p-21fb542a.entry.js +0 -2
  697. package/dist/build/p-21fb542a.entry.js.map +0 -1
  698. package/dist/build/p-3b14bbef.entry.js +0 -2
  699. package/dist/build/p-3b14bbef.entry.js.map +0 -1
  700. package/dist/build/p-3cf73b2c.js +0 -2
  701. package/dist/build/p-4205f7e2.entry.js +0 -2
  702. package/dist/build/p-476985ba.entry.js +0 -2
  703. package/dist/build/p-476985ba.entry.js.map +0 -1
  704. package/dist/build/p-4c6e5337.entry.js +0 -2
  705. package/dist/build/p-505650b6.entry.js +0 -2
  706. package/dist/build/p-5667f8bf.entry.js.map +0 -1
  707. package/dist/build/p-6620dc05.entry.js +0 -2
  708. package/dist/build/p-6620dc05.entry.js.map +0 -1
  709. package/dist/build/p-6d54b0a5.entry.js +0 -2
  710. package/dist/build/p-72eb70f4.entry.js +0 -2
  711. package/dist/build/p-72eb70f4.entry.js.map +0 -1
  712. package/dist/build/p-7c7e6f26.entry.js +0 -2
  713. package/dist/build/p-7c7e6f26.entry.js.map +0 -1
  714. package/dist/build/p-7f4d26c4.entry.js +0 -2
  715. package/dist/build/p-7f4d26c4.entry.js.map +0 -1
  716. package/dist/build/p-8cc3f69f.entry.js +0 -2
  717. package/dist/build/p-8cc3f69f.entry.js.map +0 -1
  718. package/dist/build/p-922fba03.entry.js +0 -2
  719. package/dist/build/p-9da1d488.entry.js +0 -2
  720. package/dist/build/p-9da1d488.entry.js.map +0 -1
  721. package/dist/build/p-a6c618fb.entry.js +0 -2
  722. package/dist/build/p-a6c618fb.entry.js.map +0 -1
  723. package/dist/build/p-adfddeb6.entry.js +0 -2
  724. package/dist/build/p-adfddeb6.entry.js.map +0 -1
  725. package/dist/build/p-b08f490b.entry.js +0 -2
  726. package/dist/build/p-bce08b0e.entry.js +0 -2
  727. package/dist/build/p-c9c0ae8d.entry.js +0 -2
  728. package/dist/build/p-c9c0ae8d.entry.js.map +0 -1
  729. package/dist/build/p-counter.entry.esm.js.map +0 -1
  730. package/dist/build/p-d37e0e66.entry.js +0 -2
  731. package/dist/build/p-d37e0e66.entry.js.map +0 -1
  732. package/dist/build/p-dc4121c6.entry.js.map +0 -1
  733. package/dist/build/p-e526cd42.entry.js +0 -2
  734. package/dist/build/p-e526cd42.entry.js.map +0 -1
  735. package/dist/build/p-e63adc0d.entry.js +0 -2
  736. package/dist/build/p-e63adc0d.entry.js.map +0 -1
  737. package/dist/build/p-ed2e7409.entry.js +0 -2
  738. package/dist/build/p-ed2e7409.entry.js.map +0 -1
  739. package/dist/build/p-ff2b5ed0.entry.js +0 -2
  740. package/dist/build/p-input-error.entry.esm.js.map +0 -1
  741. package/dist/build/p-input-group.entry.esm.js.map +0 -1
  742. package/dist/build/p-slider-indicator.entry.esm.js.map +0 -1
  743. package/dist/build/p-status.entry.esm.js.map +0 -1
  744. package/dist/cjs/p-counter.cjs.entry.js +0 -28
  745. package/dist/cjs/p-counter.cjs.entry.js.map +0 -1
  746. package/dist/cjs/p-counter.entry.cjs.js.map +0 -1
  747. package/dist/cjs/p-input-error.cjs.entry.js +0 -26
  748. package/dist/cjs/p-input-error.cjs.entry.js.map +0 -1
  749. package/dist/cjs/p-input-error.entry.cjs.js.map +0 -1
  750. package/dist/cjs/p-input-group.cjs.entry.js +0 -176
  751. package/dist/cjs/p-input-group.cjs.entry.js.map +0 -1
  752. package/dist/cjs/p-input-group.entry.cjs.js.map +0 -1
  753. package/dist/cjs/p-slider-indicator.cjs.entry.js +0 -24
  754. package/dist/cjs/p-slider-indicator.cjs.entry.js.map +0 -1
  755. package/dist/cjs/p-slider-indicator.entry.cjs.js.map +0 -1
  756. package/dist/cjs/p-status.cjs.entry.js +0 -62
  757. package/dist/cjs/p-status.cjs.entry.js.map +0 -1
  758. package/dist/cjs/p-status.entry.cjs.js.map +0 -1
  759. package/dist/collection/components/deprecated/atoms/counter/counter.component.css +0 -1
  760. package/dist/collection/components/deprecated/atoms/counter/counter.component.js +0 -71
  761. package/dist/collection/components/deprecated/atoms/counter/counter.component.js.map +0 -1
  762. package/dist/collection/components/deprecated/atoms/layout/layout.component.js.map +0 -1
  763. package/dist/collection/components/deprecated/atoms/loader/loader.component.css +0 -1
  764. package/dist/collection/components/deprecated/atoms/loader/loader.component.js.map +0 -1
  765. package/dist/collection/components/deprecated/atoms/slider-indicator/slider-indicator.component.css +0 -1
  766. package/dist/collection/components/deprecated/atoms/slider-indicator/slider-indicator.component.js +0 -47
  767. package/dist/collection/components/deprecated/atoms/slider-indicator/slider-indicator.component.js.map +0 -1
  768. package/dist/collection/components/deprecated/atoms/status/status.component.css +0 -1
  769. package/dist/collection/components/deprecated/atoms/status/status.component.js +0 -159
  770. package/dist/collection/components/deprecated/atoms/status/status.component.js.map +0 -1
  771. package/dist/collection/components/deprecated/molecules/accordion/accordion.component.css +0 -1
  772. package/dist/collection/components/deprecated/molecules/accordion/accordion.component.js.map +0 -1
  773. package/dist/collection/components/deprecated/molecules/attachment/attachment.component.css +0 -1
  774. package/dist/collection/components/deprecated/molecules/attachment/attachment.component.js +0 -166
  775. package/dist/collection/components/deprecated/molecules/attachment/attachment.component.js.map +0 -1
  776. package/dist/collection/components/deprecated/molecules/content-slider/content-slider.component.js.map +0 -1
  777. package/dist/collection/components/deprecated/molecules/input/error/input-error.component.js +0 -66
  778. package/dist/collection/components/deprecated/molecules/input/error/input-error.component.js.map +0 -1
  779. package/dist/collection/components/deprecated/molecules/input/group/input-group.component.css +0 -1
  780. package/dist/collection/components/deprecated/molecules/input/group/input-group.component.js +0 -532
  781. package/dist/collection/components/deprecated/molecules/input/group/input-group.component.js.map +0 -1
  782. package/dist/components/p-4hDfHOnN.js.map +0 -1
  783. package/dist/components/p-B-dtByez.js.map +0 -1
  784. package/dist/components/p-BFBKoX9I.js +0 -92
  785. package/dist/components/p-BFBKoX9I.js.map +0 -1
  786. package/dist/components/p-BYnq9fQl.js +0 -58
  787. package/dist/components/p-CQcp92mr.js.map +0 -1
  788. package/dist/components/p-CSMO4KRK.js.map +0 -1
  789. package/dist/components/p-CXH4yAMZ.js.map +0 -1
  790. package/dist/components/p-CYGYOpps.js.map +0 -1
  791. package/dist/components/p-D2Em0Yy7.js.map +0 -1
  792. package/dist/components/p-DJzH_A-R.js +0 -115
  793. package/dist/components/p-DeKgadpt.js +0 -62
  794. package/dist/components/p-DeKgadpt.js.map +0 -1
  795. package/dist/components/p-DoBSOpu3.js +0 -40
  796. package/dist/components/p-DoBSOpu3.js.map +0 -1
  797. package/dist/components/p-MQ5NAuIf.js.map +0 -1
  798. package/dist/components/p-ZBndlSp5.js.map +0 -1
  799. package/dist/components/p-counter.d.ts +0 -11
  800. package/dist/components/p-counter.js +0 -48
  801. package/dist/components/p-counter.js.map +0 -1
  802. package/dist/components/p-input-error.d.ts +0 -11
  803. package/dist/components/p-input-error.js +0 -9
  804. package/dist/components/p-input-error.js.map +0 -1
  805. package/dist/components/p-input-group.d.ts +0 -11
  806. package/dist/components/p-input-group.js +0 -241
  807. package/dist/components/p-input-group.js.map +0 -1
  808. package/dist/components/p-slider-indicator.d.ts +0 -11
  809. package/dist/components/p-slider-indicator.js +0 -9
  810. package/dist/components/p-slider-indicator.js.map +0 -1
  811. package/dist/components/p-status.d.ts +0 -11
  812. package/dist/components/p-status.js +0 -89
  813. package/dist/components/p-status.js.map +0 -1
  814. package/dist/esm/p-counter.entry.js +0 -26
  815. package/dist/esm/p-counter.entry.js.map +0 -1
  816. package/dist/esm/p-input-error.entry.js +0 -24
  817. package/dist/esm/p-input-error.entry.js.map +0 -1
  818. package/dist/esm/p-input-group.entry.js +0 -174
  819. package/dist/esm/p-input-group.entry.js.map +0 -1
  820. package/dist/esm/p-slider-indicator.entry.js +0 -22
  821. package/dist/esm/p-slider-indicator.entry.js.map +0 -1
  822. package/dist/esm/p-status.entry.js +0 -60
  823. package/dist/esm/p-status.entry.js.map +0 -1
  824. package/dist/paperless/p-05791ffa.entry.js +0 -2
  825. package/dist/paperless/p-05791ffa.entry.js.map +0 -1
  826. package/dist/paperless/p-11b1e718.entry.js +0 -2
  827. package/dist/paperless/p-11b1e718.entry.js.map +0 -1
  828. package/dist/paperless/p-1bde15ae.entry.js.map +0 -1
  829. package/dist/paperless/p-21fb542a.entry.js +0 -2
  830. package/dist/paperless/p-21fb542a.entry.js.map +0 -1
  831. package/dist/paperless/p-3b14bbef.entry.js +0 -2
  832. package/dist/paperless/p-3b14bbef.entry.js.map +0 -1
  833. package/dist/paperless/p-4205f7e2.entry.js +0 -2
  834. package/dist/paperless/p-476985ba.entry.js +0 -2
  835. package/dist/paperless/p-476985ba.entry.js.map +0 -1
  836. package/dist/paperless/p-4c6e5337.entry.js +0 -2
  837. package/dist/paperless/p-505650b6.entry.js +0 -2
  838. package/dist/paperless/p-5667f8bf.entry.js.map +0 -1
  839. package/dist/paperless/p-6620dc05.entry.js +0 -2
  840. package/dist/paperless/p-6620dc05.entry.js.map +0 -1
  841. package/dist/paperless/p-6d54b0a5.entry.js +0 -2
  842. package/dist/paperless/p-72eb70f4.entry.js +0 -2
  843. package/dist/paperless/p-72eb70f4.entry.js.map +0 -1
  844. package/dist/paperless/p-7c7e6f26.entry.js +0 -2
  845. package/dist/paperless/p-7c7e6f26.entry.js.map +0 -1
  846. package/dist/paperless/p-7f4d26c4.entry.js +0 -2
  847. package/dist/paperless/p-7f4d26c4.entry.js.map +0 -1
  848. package/dist/paperless/p-8cc3f69f.entry.js +0 -2
  849. package/dist/paperless/p-8cc3f69f.entry.js.map +0 -1
  850. package/dist/paperless/p-922fba03.entry.js +0 -2
  851. package/dist/paperless/p-9da1d488.entry.js +0 -2
  852. package/dist/paperless/p-9da1d488.entry.js.map +0 -1
  853. package/dist/paperless/p-a6c618fb.entry.js +0 -2
  854. package/dist/paperless/p-a6c618fb.entry.js.map +0 -1
  855. package/dist/paperless/p-adfddeb6.entry.js +0 -2
  856. package/dist/paperless/p-adfddeb6.entry.js.map +0 -1
  857. package/dist/paperless/p-b08f490b.entry.js +0 -2
  858. package/dist/paperless/p-bce08b0e.entry.js +0 -2
  859. package/dist/paperless/p-c9c0ae8d.entry.js +0 -2
  860. package/dist/paperless/p-c9c0ae8d.entry.js.map +0 -1
  861. package/dist/paperless/p-counter.entry.esm.js.map +0 -1
  862. package/dist/paperless/p-d37e0e66.entry.js +0 -2
  863. package/dist/paperless/p-d37e0e66.entry.js.map +0 -1
  864. package/dist/paperless/p-dc4121c6.entry.js.map +0 -1
  865. package/dist/paperless/p-e526cd42.entry.js +0 -2
  866. package/dist/paperless/p-e526cd42.entry.js.map +0 -1
  867. package/dist/paperless/p-e63adc0d.entry.js +0 -2
  868. package/dist/paperless/p-e63adc0d.entry.js.map +0 -1
  869. package/dist/paperless/p-ed2e7409.entry.js +0 -2
  870. package/dist/paperless/p-ed2e7409.entry.js.map +0 -1
  871. package/dist/paperless/p-ff2b5ed0.entry.js +0 -2
  872. package/dist/paperless/p-input-error.entry.esm.js.map +0 -1
  873. package/dist/paperless/p-input-group.entry.esm.js.map +0 -1
  874. package/dist/paperless/p-slider-indicator.entry.esm.js.map +0 -1
  875. package/dist/paperless/p-status.entry.esm.js.map +0 -1
  876. package/dist/types/components/deprecated/atoms/counter/counter.component.d.ts +0 -11
  877. package/dist/types/components/deprecated/atoms/slider-indicator/slider-indicator.component.d.ts +0 -7
  878. package/dist/types/components/deprecated/atoms/status/status.component.d.ts +0 -23
  879. package/dist/types/components/deprecated/molecules/attachment/attachment.component.d.ts +0 -28
  880. package/dist/types/components/deprecated/molecules/input/error/input-error.component.d.ts +0 -12
  881. package/dist/types/components/deprecated/molecules/input/group/input-group.component.d.ts +0 -82
  882. /package/dist/build/{p-bce08b0e.entry.js.map → p-08cff47b.entry.js.map} +0 -0
  883. /package/dist/build/{p-96cd5cff.entry.js.map → p-0c0ebb15.entry.js.map} +0 -0
  884. /package/dist/build/{p-96cb3e48.entry.js.map → p-0c257fa2.entry.js.map} +0 -0
  885. /package/dist/build/{p-8d4c7827.entry.js.map → p-0fe51ad0.entry.js.map} +0 -0
  886. /package/dist/build/{p-35c50504.entry.js.map → p-128f3811.entry.js.map} +0 -0
  887. /package/dist/build/{p-0a0ef10d.entry.js.map → p-1778732a.entry.js.map} +0 -0
  888. /package/dist/build/{p-ff2b5ed0.entry.js.map → p-1a544806.entry.js.map} +0 -0
  889. /package/dist/build/{p-41949138.entry.js.map → p-29d452d0.entry.js.map} +0 -0
  890. /package/dist/build/{p-1c9405d8.entry.js.map → p-30f6e463.entry.js.map} +0 -0
  891. /package/dist/build/{p-6cddddb7.entry.js.map → p-52149e0e.entry.js.map} +0 -0
  892. /package/dist/build/{p-fd4a25eb.entry.js.map → p-58f9ac89.entry.js.map} +0 -0
  893. /package/dist/build/{p-bc366236.entry.js.map → p-5ee4e9c7.entry.js.map} +0 -0
  894. /package/dist/build/{p-4906fd4d.entry.js.map → p-5fa74e2e.entry.js.map} +0 -0
  895. /package/dist/build/{p-26b75731.entry.js.map → p-66adc33a.entry.js.map} +0 -0
  896. /package/dist/build/{p-b1b12e88.entry.js.map → p-7046dc66.entry.js.map} +0 -0
  897. /package/dist/build/{p-a3da31c4.entry.js.map → p-7658fd89.entry.js.map} +0 -0
  898. /package/dist/build/{p-697c465d.entry.js.map → p-76a4f70e.entry.js.map} +0 -0
  899. /package/dist/build/{p-7a878e24.entry.js.map → p-8249382f.entry.js.map} +0 -0
  900. /package/dist/build/{p-53e0b8a1.entry.js.map → p-868f9ee9.entry.js.map} +0 -0
  901. /package/dist/build/{p-d4f4fe62.entry.js.map → p-912ce588.entry.js.map} +0 -0
  902. /package/dist/build/{p-d894e0b1.entry.js.map → p-a5f29193.entry.js.map} +0 -0
  903. /package/dist/build/{p-b08f490b.entry.js.map → p-abd13a2a.entry.js.map} +0 -0
  904. /package/dist/build/{p-b029529c.entry.js.map → p-ae64bdf2.entry.js.map} +0 -0
  905. /package/dist/build/{p-0ffe0165.entry.js.map → p-cac630d2.entry.js.map} +0 -0
  906. /package/dist/build/{p-7a05c8ca.entry.js.map → p-e9db1b2d.entry.js.map} +0 -0
  907. /package/dist/build/{p-4c6e5337.entry.js.map → p-eef52967.entry.js.map} +0 -0
  908. /package/dist/build/{p-5cd98f23.entry.js.map → p-f1f14a3f.entry.js.map} +0 -0
  909. /package/dist/collection/components/{deprecated/atoms → atoms}/layout/layout.component.css +0 -0
  910. /package/dist/paperless/{p-bce08b0e.entry.js.map → p-08cff47b.entry.js.map} +0 -0
  911. /package/dist/paperless/{p-96cd5cff.entry.js.map → p-0c0ebb15.entry.js.map} +0 -0
  912. /package/dist/paperless/{p-96cb3e48.entry.js.map → p-0c257fa2.entry.js.map} +0 -0
  913. /package/dist/paperless/{p-8d4c7827.entry.js.map → p-0fe51ad0.entry.js.map} +0 -0
  914. /package/dist/paperless/{p-35c50504.entry.js.map → p-128f3811.entry.js.map} +0 -0
  915. /package/dist/paperless/{p-0a0ef10d.entry.js.map → p-1778732a.entry.js.map} +0 -0
  916. /package/dist/paperless/{p-ff2b5ed0.entry.js.map → p-1a544806.entry.js.map} +0 -0
  917. /package/dist/paperless/{p-41949138.entry.js.map → p-29d452d0.entry.js.map} +0 -0
  918. /package/dist/paperless/{p-1c9405d8.entry.js.map → p-30f6e463.entry.js.map} +0 -0
  919. /package/dist/paperless/{p-6cddddb7.entry.js.map → p-52149e0e.entry.js.map} +0 -0
  920. /package/dist/paperless/{p-fd4a25eb.entry.js.map → p-58f9ac89.entry.js.map} +0 -0
  921. /package/dist/paperless/{p-bc366236.entry.js.map → p-5ee4e9c7.entry.js.map} +0 -0
  922. /package/dist/paperless/{p-4906fd4d.entry.js.map → p-5fa74e2e.entry.js.map} +0 -0
  923. /package/dist/paperless/{p-26b75731.entry.js.map → p-66adc33a.entry.js.map} +0 -0
  924. /package/dist/paperless/{p-b1b12e88.entry.js.map → p-7046dc66.entry.js.map} +0 -0
  925. /package/dist/paperless/{p-a3da31c4.entry.js.map → p-7658fd89.entry.js.map} +0 -0
  926. /package/dist/paperless/{p-697c465d.entry.js.map → p-76a4f70e.entry.js.map} +0 -0
  927. /package/dist/paperless/{p-7a878e24.entry.js.map → p-8249382f.entry.js.map} +0 -0
  928. /package/dist/paperless/{p-53e0b8a1.entry.js.map → p-868f9ee9.entry.js.map} +0 -0
  929. /package/dist/paperless/{p-d4f4fe62.entry.js.map → p-912ce588.entry.js.map} +0 -0
  930. /package/dist/paperless/{p-d894e0b1.entry.js.map → p-a5f29193.entry.js.map} +0 -0
  931. /package/dist/paperless/{p-b08f490b.entry.js.map → p-abd13a2a.entry.js.map} +0 -0
  932. /package/dist/paperless/{p-b029529c.entry.js.map → p-ae64bdf2.entry.js.map} +0 -0
  933. /package/dist/paperless/{p-0ffe0165.entry.js.map → p-cac630d2.entry.js.map} +0 -0
  934. /package/dist/paperless/{p-7a05c8ca.entry.js.map → p-e9db1b2d.entry.js.map} +0 -0
  935. /package/dist/paperless/{p-4c6e5337.entry.js.map → p-eef52967.entry.js.map} +0 -0
  936. /package/dist/paperless/{p-5cd98f23.entry.js.map → p-f1f14a3f.entry.js.map} +0 -0
  937. /package/dist/types/components/{deprecated/molecules → molecules}/content-slider/content-slider.component.d.ts +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content-slider.component.js","sourceRoot":"","sources":["../../../../src/components/molecules/content-slider/content-slider.component.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,SAAS,EACT,OAAO,EACP,CAAC,EACD,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,KAAK,GACL,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AAOpC,MAAM,OAAO,aAAa;IACzB;;OAEG;IACK,mBAAmB,GAAY,KAAK,CAAC;IAE7C;;OAEG;IACK,WAAW,GAAY,KAAK,CAAC;IAErC;;OAEG;IACK,iBAAiB,GAAY,KAAK,CAAC;IAE3C;;OAEG;IACK,qBAAqB,GAAY,KAAK,CAAC;IAE/C;;OAEG;IACgB,GAAG,CAAc;IAEnB,aAAa,CAAS;IACtB,YAAY,GAAG,CAAC,CAAC;IACjB,WAAW,GAAG,CAAC,CAAC;IACzB,UAAU,CAAc;IACxB,eAAe,CAAc;IAC7B,MAAM,GAAkB,EAAE,CAAC;IAC3B,0BAA0B,CAAiB;IAEnD,uBAAuB;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D,MAAM,gBAAgB,GAAG,gBAAgB,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAChE,MAAM,GAAG,GAAG,QAAQ,CAAC,gBAAgB,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QAEtE,UAAU,IAAI,OAAO,GAAG,GAAG,CAAC;QAE5B,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;IAC/B,CAAC;IAEO,gBAAgB;QACvB,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,qBAAqB,EAAE,CAAC,MAAM,CAAC;QACrE,IAAI,WAAW,IAAI,IAAI,CAAC,YAAY,EAAE,CAAC;YACtC,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;QACjC,CAAC;IACF,CAAC;IAEO,SAAS,CAAC,EAAgB;QACjC,IAAI,CAAC,EAAE,EAAE,CAAC;YACT,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QACxB,CAAC;QAED,MAAM,MAAM,GAAG,EAAE,CAAC,qBAAqB,EAAE,CAAC;QAC1C,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,qBAAqB,EAAE,CAAC;QAE3D,OAAO,UAAU,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,GAAG,EAAE,CAAC;IAC7C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {\n\tComponent,\n\tElement,\n\th,\n\tHost,\n\tListen,\n\tProp,\n\tState,\n} from '@stencil/core';\nimport { cn } from '../../../utils';\n\n@Component({\n\ttag: 'p-content-slider',\n\tstyleUrl: 'content-slider.component.scss',\n\tshadow: true,\n})\nexport class ContentSlider {\n\t/**\n\t * Wether to hide the indicator on mobile\n\t */\n\t@Prop() hideMobileIndicator: boolean = false;\n\n\t/**\n\t * Wether to disable dragging the content\n\t */\n\t@Prop() disableDrag: boolean = false;\n\n\t/**\n\t * Wether to disable auto centering the content\n\t */\n\t@Prop() disableAutoCenter: boolean = false;\n\n\t/**\n\t * Wether to disable clicking the indicator scrolls content\n\t */\n\t@Prop() disableIndicatorClick: boolean = false;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t@State() private _visibleIndex: number;\n\t@State() private _outerHeight = 0;\n\t@State() private _totalWidth = 0;\n\tprivate _sliderRef: HTMLElement;\n\tprivate _innerSliderRef: HTMLElement;\n\tprivate _items: HTMLElement[] = [];\n\tprivate _innerSliderResizeObserver: ResizeObserver;\n\n\t// mouse movement stuff\n\tprivate _startX: number;\n\tprivate _startMouseX: number;\n\tprivate _lastMouseX: number;\n\tprivate _lastIndex: number;\n\tprivate _shouldCheckLocation = false;\n\t@State() private _dragging = false;\n\n\tcomponentWillRender() {\n\t\tconst items = this._el.querySelectorAll(':scope > *');\n\t\tthis._items = Array.from(items) as HTMLElement[];\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis._innerSliderRef.style.setProperty('--tw-translate-x', `0px`);\n\t\tthis._calculateWidth();\n\t\tthis._calculateIndicator();\n\t}\n\n\tdisconnectedCallback() {\n\t\tif (this._innerSliderResizeObserver) {\n\t\t\tthis._innerSliderResizeObserver.disconnect();\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class=\"p-content-slider\">\n\t\t\t\t<div\n\t\t\t\t\tclass={`slider ${!this.disableDrag && 'draggable'} ${\n\t\t\t\t\t\tthis._dragging && 'dragging'\n\t\t\t\t\t}`}\n\t\t\t\t\tstyle={{\n\t\t\t\t\t\theight: `${this._outerHeight}px`,\n\t\t\t\t\t}}\n\t\t\t\t\tref={(el) => (this._sliderRef = el)}\n\t\t\t\t\tonMouseDown={(e) => this._mouseDownHandler(e)}\n\t\t\t\t\tonTouchStart={(e) => this._mouseDownHandler(e)}\n\t\t\t\t\tonMouseMove={(e) => this._mouseMoveHandler(e)}\n\t\t\t\t\tonTouchMove={(e) => this._mouseMoveHandler(e)}\n\t\t\t\t>\n\t\t\t\t\t<div\n\t\t\t\t\t\tclass=\"inner-slider\"\n\t\t\t\t\t\tref={(ref) => this._setInnerSliderReft(ref)}\n\t\t\t\t\t\tonTransitionEnd={() => this._transitionEndHandler()}\n\t\t\t\t\t>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div\n\t\t\t\t\tclass={`indicator ${this.hideMobileIndicator && 'hidden'}`}\n\t\t\t\t>\n\t\t\t\t\t{this._items.map((_, i) => (\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tonClick={() => this._scrollTo(i, true)}\n\t\t\t\t\t\t\tclass={`item ${\n\t\t\t\t\t\t\t\t!this.disableIndicatorClick && 'cursor-pointer'\n\t\t\t\t\t\t\t}`}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<div class={cn('block w-2 h-2 rounded-full', {\n\t\t\t\t\t\t\t\t'bg-dark-teal-600': i === this._visibleIndex,\n\t\t\t\t\t\t\t\t'bg-dark-teal-400': i !== this._visibleIndex,\n\t\t\t\t\t\t\t})} />\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\tprivate _mouseDownHandler(e) {\n\t\tif (this.disableDrag || this._dragging) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst innerSliderStyle = getComputedStyle(this._innerSliderRef);\n\t\tif (innerSliderStyle.flexWrap === 'wrap') {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._startMouseX = e.x;\n\t\tconst sliderRect = this._sliderRef.getBoundingClientRect();\n\t\tif (e.type === 'touchstart') {\n\t\t\tthis._startMouseX = e.touches?.[0].clientX;\n\t\t}\n\n\t\tconst innerSliderRect = this._innerSliderRef.getBoundingClientRect();\n\t\tconst offsetLeft = innerSliderRect.x - sliderRect.x;\n\n\t\tthis._startX = this._startMouseX - sliderRect.x - offsetLeft;\n\t\tthis._lastIndex = this._visibleIndex;\n\t\tthis._dragging = true;\n\t}\n\n\tprivate _mouseMoveHandler(e) {\n\t\tif (!e || !this._dragging || this.disableDrag) {\n\t\t\treturn;\n\t\t}\n\n\t\te.preventDefault();\n\n\t\tthis._shouldCheckLocation = true;\n\n\t\tif (\n\t\t\tthis._innerSliderRef.style.getPropertyValue('pointer-events') === ''\n\t\t) {\n\t\t\tthis._innerSliderRef.style.pointerEvents = 'none';\n\t\t}\n\n\t\tconst sliderRect = this._sliderRef.getBoundingClientRect();\n\t\tlet x = e.clientX - sliderRect.left;\n\t\tthis._lastMouseX = e.x;\n\t\tif (e.type === 'touchmove') {\n\t\t\tx = e.touches?.[0].clientX - sliderRect.left;\n\t\t\tthis._lastMouseX = e.touches?.[0].clientX;\n\t\t}\n\n\t\tthis._innerSliderRef.style.setProperty(\n\t\t\t'--tw-translate-x',\n\t\t\t`${x - this._startX}px`\n\t\t);\n\n\t\tthis._checkBoundary();\n\t\tthis._calculateIndicator();\n\t}\n\n\tprivate _transitionEndHandler() {\n\t\tthis._calculateIndicator();\n\t}\n\n\t@Listen('mouseup', { target: 'window' })\n\t@Listen('touchend', { target: 'window' })\n\tmouseUpHandler() {\n\t\tthis._dragging = false;\n\t\tthis._innerSliderRef.style.removeProperty('pointer-events');\n\n\t\tthis._checkLocation();\n\t}\n\n\t@Listen('resize', { target: 'window' })\n\tresizeHandler() {\n\t\tif (this._innerSliderRef) {\n\t\t\tthis._innerSliderRef.style.setProperty('--tw-translate-x', '0px');\n\t\t\tthis._calculateWidth();\n\t\t\tthis._calculateIndicator();\n\t\t}\n\t}\n\n\tprivate _setInnerSliderReft(ref) {\n\t\tthis._innerSliderRef = ref;\n\t\tthis._innerSliderResizeObserver = new ResizeObserver(() =>\n\t\t\tthis._calculateHeight()\n\t\t);\n\t\tthis._innerSliderResizeObserver.observe(this._innerSliderRef);\n\t}\n\n\tprivate _scrollTo(i: number, manual = false) {\n\t\tif (this.disableIndicatorClick && manual) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst el = this._items[i];\n\n\t\tif (i === 0) {\n\t\t\tthis._innerSliderRef.style.setProperty('--tw-translate-x', `0px`);\n\t\t\treturn;\n\t\t}\n\n\t\tconst sliderRect = this._sliderRef.getBoundingClientRect();\n\t\tconst innerSliderRect = this._innerSliderRef.getBoundingClientRect();\n\t\tconst elRect = el.getBoundingClientRect();\n\n\t\tconst offsetLeft = elRect.x - innerSliderRect.x;\n\n\t\tconst centerOffset =\n\t\t\toffsetLeft + elRect.width / 2 - sliderRect.width / 2;\n\n\t\tthis._innerSliderRef.style.setProperty(\n\t\t\t'--tw-translate-x',\n\t\t\t`-${centerOffset}px`\n\t\t);\n\n\t\tthis._checkBoundary();\n\t\tthis._calculateIndicator();\n\t}\n\n\tprivate _checkBoundary() {\n\t\tlet outer = this._sliderRef.getBoundingClientRect();\n\n\t\tconst left = parseInt(\n\t\t\tthis._innerSliderRef.style.getPropertyValue('--tw-translate-x')\n\t\t);\n\t\tif (left > 0) {\n\t\t\tthis._innerSliderRef.style.setProperty('--tw-translate-x', `0px`);\n\t\t}\n\n\t\tconst maxLeft = (this._totalWidth - outer.width) * -1;\n\t\tif (left < maxLeft) {\n\t\t\tthis._innerSliderRef.style.setProperty(\n\t\t\t\t'--tw-translate-x',\n\t\t\t\t`${maxLeft}px`\n\t\t\t);\n\t\t}\n\t}\n\n\tprivate _calculateIndicator() {\n\t\tfor (let i = 0; i < this._items.length; i++) {\n\t\t\tconst item = this._items[i];\n\t\t\tconst visible = this._isVisible(item);\n\n\t\t\tif (visible) {\n\t\t\t\tthis._visibleIndex = i;\n\t\t\t}\n\n\t\t\tif (i === 0 && visible) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate _checkLocation() {\n\t\tif (!this._shouldCheckLocation) {\n\t\t\treturn;\n\t\t}\n\n\t\tlet scrollToIndex = null;\n\t\tif (this._lastIndex !== this._visibleIndex) {\n\t\t\tscrollToIndex = this._visibleIndex;\n\t\t}\n\n\t\tif (this._lastIndex === this._visibleIndex) {\n\t\t\tif (this._lastMouseX > this._startMouseX && this._lastIndex !== 0) {\n\t\t\t\tscrollToIndex = this._lastIndex - 1;\n\t\t\t}\n\n\t\t\tif (\n\t\t\t\tthis._lastMouseX < this._startMouseX &&\n\t\t\t\tthis._lastIndex !== this._items?.length - 1\n\t\t\t) {\n\t\t\t\tscrollToIndex = this._lastIndex + 1;\n\t\t\t}\n\t\t}\n\n\t\tif (scrollToIndex !== null) {\n\t\t\tthis._shouldCheckLocation = false;\n\t\t\tsetTimeout(() => this._scrollTo(scrollToIndex), 100);\n\t\t}\n\t}\n\n\tprivate _isVisible(el: HTMLElement) {\n\t\tif (!this._el || !el) {\n\t\t\treturn false;\n\t\t}\n\n\t\tconst elRect = el.getBoundingClientRect();\n\t\tconst sliderRect = this._sliderRef.getBoundingClientRect();\n\n\t\treturn (\n\t\t\t(elRect.left >= sliderRect.left &&\n\t\t\t\telRect.right <= sliderRect.right) ||\n\t\t\t(this._isMobile(el) &&\n\t\t\t\telRect.left + elRect.width / 2 >= sliderRect.left &&\n\t\t\t\telRect.left + elRect.width / 2 <= sliderRect.right)\n\t\t);\n\t}\n\n\tprivate _calculateWidth() {\n\t\tlet totalWidth = 0;\n\n\t\tfor (let item of this._items) {\n\t\t\tconst rect = item.getBoundingClientRect();\n\t\t\ttotalWidth += rect.width;\n\t\t}\n\n\t\tconst sliderStyle = getComputedStyle(this._sliderRef);\n\t\tconst padding = parseInt(sliderStyle.padding) * 2;\n\n\t\tconst innerSliderStyle = getComputedStyle(this._innerSliderRef);\n\t\tconst gap = parseInt(innerSliderStyle.gap) * (this._items.length - 1);\n\n\t\ttotalWidth += padding + gap;\n\n\t\tthis._totalWidth = totalWidth;\n\t}\n\n\tprivate _calculateHeight() {\n\t\tconst outerHeight = this._items.at(0).getBoundingClientRect().height;\n\t\tif (outerHeight != this._outerHeight) {\n\t\t\tthis._outerHeight = outerHeight;\n\t\t}\n\t}\n\n\tprivate _isMobile(el?: HTMLElement) {\n\t\tif (!el) {\n\t\t\tel = this._items.at(0);\n\t\t}\n\n\t\tconst elRect = el.getBoundingClientRect();\n\t\tconst sliderRect = this._sliderRef.getBoundingClientRect();\n\n\t\treturn sliderRect.width - elRect.width < 10;\n\t}\n}\n"]}
@@ -1,4 +1,4 @@
1
- import { h, Host, } from "@stencil/core";
1
+ import { h } from "@stencil/core";
2
2
  import { format, isAfter, isBefore, isSameDay, isValid, isWeekend, parse, startOfDay, startOfMonth, startOfYear, } from "date-fns";
3
3
  import { childOf, isMobileBrowser } from "../../../utils";
4
4
  import { asBoolean } from "../../../utils/as-boolean";
@@ -189,9 +189,9 @@ export class Datepicker {
189
189
  this.parseValue(this.value);
190
190
  }
191
191
  render() {
192
- return (h(Host, { key: 'd0136db628f15662450320848393bcc2919337e4', class: 'p-datepicker' }, h("p-dropdown", { key: '356b9bc99c5eba0a2017378cd6349b5426c05e00', strategy: this.strategy, placement: this.placement, disableTriggerClick: true, applyMaxWidth: false, applyFullWidth: false, insideClick: true, show: this._showDropdown }, h("p-field", { key: '1627cc2c915666aab7553a7af80c5e90315d4352', slot: 'trigger', icon: this.hideIconWhenFilled && !!this._value ? null : 'calendar-multi', iconPosition: 'start', size: this.size, prefix: this.prefix, label: this.label, loading: this.loading, helper: this.helper, required: asBoolean(this.required), error: this.error, disabled: asBoolean(this.disabled), focused: this._showDropdown, value: this._getFormattedDate(), placeholder: this.placeholder, onFocus: () => this._onFocus(), onBlur: () => this._onBlur(), onValueChange: ev => this._onValueChange(ev.detail), onInputRefChange: ev => (this._inputRef = ev.detail) }), this.enableNativePicker && this._isMobileBrowser && (h("input", { key: '05c737691f3481bcfa6750e8be318fa5a9aea1ad', slot: 'trigger', type: this.mode === 'day' ? 'date' : 'month', class: 'h-0 overflow-hidden' // we use h-0 here so location dependent pickers can correctly place itself
192
+ return (h("p-dropdown", { key: '702af705805cf225b1b7eb9506b6374b3f90eaa2', strategy: this.strategy, placement: this.placement, disableTriggerClick: true, applyMaxWidth: false, applyFullWidth: false, insideClick: true, show: this._showDropdown }, h("p-field", { key: '288726eb7a4aec32ede0bb2a53eb75e98b035ca2', slot: 'trigger', icon: this.hideIconWhenFilled && !!this._value ? null : 'calendar-multi', iconPosition: 'start', size: this.size, prefix: this.prefix, label: this.label, loading: this.loading, helper: this.helper, required: asBoolean(this.required), error: this.error, disabled: asBoolean(this.disabled), focused: this._showDropdown, value: this._getFormattedDate(), placeholder: this.placeholder, onFocus: () => this._onFocus(), onBlur: () => this._onBlur(), onValueChange: ev => this._onValueChange(ev.detail), onInputRefChange: ev => (this._inputRef = ev.detail) }), this.enableNativePicker && this._isMobileBrowser && (h("input", { key: '14386864e58de98d9de4c56977a6df2ba7d9dbbd', slot: 'trigger', type: this.mode === 'day' ? 'date' : 'month', class: 'h-0 overflow-hidden' // we use h-0 here so location dependent pickers can correctly place itself
193
193
  ,
194
- onInput: ev => this._onNativeInput(ev), ref: ref => (this._dateInputRef = ref), value: this._value && format(this._value, 'yyyy-MM-dd'), min: this.minDate && format(new Date(this.minDate), 'yyyy-MM-dd'), max: this.maxDate && format(new Date(this.maxDate), 'yyyy-MM-dd') })), h("div", { key: '79df53c11c78611e2efeab89c3ff02e94fd6134f', slot: 'items' }, h("p-calendar", { key: '7007920d9d1ede5e87c77154c9223bff3acebdd2', variant: 'embedded', value: this._value, onValueChange: ({ detail }) => (this.value = detail), preselectToday: this.preselectToday, disabledDates: this.disabledDates, minDate: this.minDate, maxDate: this.maxDate, disableWeekends: this.disableWeekends, mode: this.mode })))));
194
+ onInput: ev => this._onNativeInput(ev), ref: ref => (this._dateInputRef = ref), value: this._value && format(this._value, 'yyyy-MM-dd'), min: this.minDate && format(new Date(this.minDate), 'yyyy-MM-dd'), max: this.maxDate && format(new Date(this.maxDate), 'yyyy-MM-dd') })), h("div", { key: 'dbbd17771238ab3d77972088703a11bab0341590', slot: 'items' }, h("p-calendar", { key: '71dc313070bf6c6dd63b693bce0dec01e84ae836', variant: 'embedded', value: this._value, onValueChange: ({ detail }) => (this.value = detail), preselectToday: this.preselectToday, disabledDates: this.disabledDates, minDate: this.minDate, maxDate: this.maxDate, disableWeekends: this.disableWeekends, mode: this.mode }))));
195
195
  }
196
196
  documentClickHandler({ target }) {
197
197
  if (!this._showDropdown || childOf(target, this._el)) {
@@ -1 +1 @@
1
- {"version":3,"file":"datepicker.component.js","sourceRoot":"","sources":["../../../../src/components/molecules/datepicker/datepicker.component.tsx"],"names":[],"mappings":"AACA,OAAO,EACH,eAAe,EACf,SAAS,EACT,OAAO,EACP,KAAK,EAEL,CAAC,EACD,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,KAAK,EACL,KAAK,GACR,MAAM,eAAe,CAAC;AACvB,OAAO,EACH,MAAM,EACN,OAAO,EACP,QAAQ,EACR,SAAS,EACT,OAAO,EACP,SAAS,EACT,KAAK,EACL,UAAU,EACV,YAAY,EACZ,WAAW,GACd,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAQtD,MAAM,OAAO,UAAU;IACtB;;OAEG;IACK,WAAW,CAAS;IAE5B;;OAEG;IACK,KAAK,CAAmC;IAEhD;;OAEG;IACK,cAAc,GAAY,KAAK,CAAC;IAExC;;OAEG;IACK,kBAAkB,GAAY,IAAI,CAAC;IAE3C;;OAEG;IACK,aAAa,CAAiC;IAEtD;;OAEG;IACK,OAAO,CAAiB;IAEhC;;OAEG;IACK,OAAO,CAAiB;IAEhC;;OAEG;IACK,eAAe,GAAY,KAAK,CAAC;IAEzC;;OAEG;IACK,IAAI,GAA6B,KAAK,CAAC;IAE/C;;OAEG;IAIH,WAAW,CAAoB;IAE/B;;OAEG;IACK,MAAM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,CAAC,SAAS,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,CAChE,CAAC;IACH,CAAC;IAEO,iBAAiB;QACxB,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;YAClB,OAAO,EAAE,CAAC;QACX,CAAC;QAED,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IACzC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Placement, Strategy } from '@floating-ui/dom';\nimport {\n AttachInternals,\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Listen,\n Prop,\n State,\n Watch,\n} from '@stencil/core';\nimport {\n format,\n isAfter,\n isBefore,\n isSameDay,\n isValid,\n isWeekend,\n parse,\n startOfDay,\n startOfMonth,\n startOfYear,\n} from 'date-fns';\nimport { childOf, isMobileBrowser } from '../../../utils';\nimport { asBoolean } from '../../../utils/as-boolean';\n\n@Component({\n\ttag: 'p-datepicker',\n\tstyleUrl: 'datepicker.component.css',\n\tshadow: false,\n\tformAssociated: true\n})\nexport class Datepicker {\n\t/**\n\t * The placeholder of the input\n\t */\n\t@Prop() placeholder: string;\n\n\t/**\n\t * The current value\n\t */\n\t@Prop() value: Date | string | null | undefined;\n\n\t/**\n\t * Wethter to automatically preselect today\n\t */\n\t@Prop() preselectToday: boolean = false;\n\n\t/**\n\t * Enable native picker for mobile devices\n\t */\n\t@Prop() enableNativePicker: boolean = true;\n\n\t/**\n\t * Disabled dates\n\t */\n\t@Prop() disabledDates?: Array<Date | string> | string;\n\n\t/**\n\t * Min date\n\t */\n\t@Prop() minDate?: Date | string;\n\n\t/**\n\t * Max date\n\t */\n\t@Prop() maxDate?: Date | string;\n\n\t/**\n\t * Wether to disable the weekends\n\t */\n\t@Prop() disableWeekends: boolean = false;\n\n\t/**\n\t * The mode of the datepicker\n\t */\n\t@Prop() mode: 'year' | 'month' | 'day' = 'day';\n\n\t/**\n\t * Event when the value changes\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tvalueChange: EventEmitter<any>;\n\n\t/**\n\t * The display & parse format to use\n\t */\n\t@Prop() format: string = 'dd-MM-yyyy';\n\n\t/**\n\t * Hides the icon when filled\n\t */\n\t@Prop() hideIconWhenFilled: boolean = false;\n\n\t/**\n\t * The size of the input group used by the datepicker\n\t */\n\t@Prop() size: 'sm' | 'base' = 'base';\n\n\t/**\n\t * The prefix of the input group used by the datepicker\n\t */\n\t@Prop() prefix: string;\n\n\t/**\n\t * The label of the input group used by the datepicker\n\t */\n\t@Prop() label: string;\n\n\t/**\n\t * Wether the field is loading\n\t */\n\t@Prop() loading: boolean = false;\n\n\t/**\n\t * The helper of the input group used by the datepicker\n\t */\n\t@Prop() helper: string;\n\n\t/**\n\t * Wether the field is required\n\t */\n\t@Prop({ reflect: true }) required: boolean;\n\n\t/**\n\t * The helper of the input group used by the datepicker\n\t */\n\t@Prop({ reflect: true }) error: string;\n\n\t/**\n\t * Wether the input group is disabled used by the datepicker\n\t */\n\t@Prop({ reflect: true }) disabled: boolean = false;\n\n\t/**\n\t * The strategy of the dropdown placement\n\t */\n\t@Prop() strategy: Strategy = 'absolute';\n\n\t/**\n\t * The placement of the dropdown\n\t */\n\t@Prop({ reflect: true }) placement: Placement = 'bottom-start';\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t@State() private _showDropdown: any = false;\n\t@State() private _value: Date;\n\t@State() private _minDate: Date;\n\t@State() private _maxDate: Date;\n\t@State() private _disabledDates: Date[] = [];\n\t@State() private _isMobileBrowser: boolean = false;\n\n\t@AttachInternals() _internals: ElementInternals;\n\n\tprivate _onInputTimeout: NodeJS.Timeout;\n\tprivate _inputRef: HTMLInputElement | HTMLTextAreaElement;\n\tprivate _dateInputRef: HTMLInputElement;\n\n\tprivate _defaultFormats = {\n\t\tyear: 'yyyy',\n\t\tmonth: 'LLLL, yyyy',\n\t\tday: 'dd-MM-yyyy',\n\t};\n\n\t@Watch('value')\n\tprotected parseValue(value: string | Date) {\n\t\tif (!value && this.preselectToday) {\n\t\t\tvalue = new Date();\n\t\t}\n\n\t\tif (typeof value === 'string') {\n\t\t\tvalue = new Date(value);\n\t\t}\n\n\t\tthis._setValue(value);\n\t}\n\n\t@Watch('minDate')\n\tprotected parseMinDate(minDate: string | Date) {\n\t\tif (typeof minDate === 'string') {\n\t\t\tminDate = new Date(minDate);\n\t\t}\n\n\t\tif (!isValid(minDate)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._minDate = minDate;\n\n\t\tif (isBefore(this._value, this._minDate)) {\n\t\t\tthis._setValue(null);\n\t\t}\n\t}\n\n\t@Watch('maxDate')\n\tprotected parseMaxDate(maxDate: string | Date) {\n\t\tif (typeof maxDate === 'string') {\n\t\t\tmaxDate = new Date(maxDate);\n\t\t}\n\n\t\tif (!isValid(maxDate)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._maxDate = maxDate;\n\n\t\tif (isAfter(this._value, this._maxDate)) {\n\t\t\tthis._setValue(null);\n\t\t}\n\t}\n\n\t@Watch('disabledDates')\n\tprotected parseDisabledDates(disabledDates: Array<string | Date> | string) {\n\t\tif (typeof disabledDates === 'string') {\n\t\t\tdisabledDates = JSON.parse(disabledDates);\n\t\t}\n\n\t\tif (!disabledDates || !Array.isArray(disabledDates)) {\n\t\t\treturn;\n\t\t}\n\n\t\t// normalize all to date\n\t\tthis._disabledDates = disabledDates\n\t\t\t.map(date => {\n\t\t\t\tif (typeof date === 'string') {\n\t\t\t\t\treturn new Date(date);\n\t\t\t\t}\n\n\t\t\t\treturn date;\n\t\t\t})\n\t\t\t.filter(date => isValid(date));\n\n\t\tif (this._isDisabledDay(this._value)) {\n\t\t\tthis._setValue(null);\n\t\t}\n\t}\n\n\tformResetCallback() {\n\t\tthis._setValue(null);\n\t}\n\n\tformDisabledCallback(disabled: boolean) {\n\t\tif(!this._internals.form) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.disabled = disabled;\n\t}\n\n\tcomponentWillLoad() {\n\t\tif (this.disabledDates) {\n\t\t\tthis.parseDisabledDates(this.disabledDates);\n\t\t}\n\n\t\tif (this.minDate) {\n\t\t\tthis.parseMinDate(this.minDate);\n\t\t}\n\n\t\tif (this.maxDate) {\n\t\t\tthis.parseMaxDate(this.maxDate);\n\t\t}\n\n\t\tif (this.mode !== 'day' && this.format === this._defaultFormats['day']) {\n\t\t\tthis.format = this._defaultFormats[this.mode];\n\t\t}\n\n\t\tthis._isMobileBrowser = isMobileBrowser();\n\n\t\tthis.parseValue(this.value);\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class='p-datepicker'>\n\t\t\t\t<p-dropdown\n\t\t\t\t\tstrategy={this.strategy}\n\t\t\t\t\tplacement={this.placement}\n\t\t\t\t\tdisableTriggerClick={true}\n\t\t\t\t\tapplyMaxWidth={false}\n\t\t\t\t\tapplyFullWidth={false}\n\t\t\t\t\tinsideClick={true}\n\t\t\t\t\tshow={this._showDropdown}\n\t\t\t\t>\n\t\t\t\t\t<p-field\n\t\t\t\t\t\tslot='trigger'\n\t\t\t\t\t\ticon={\n\t\t\t\t\t\t\tthis.hideIconWhenFilled && !!this._value ? null : 'calendar-multi'\n\t\t\t\t\t\t}\n\t\t\t\t\t\ticonPosition='start'\n\t\t\t\t\t\tsize={this.size}\n\t\t\t\t\t\tprefix={this.prefix}\n\t\t\t\t\t\tlabel={this.label}\n\t\t\t\t\t\tloading={this.loading}\n\t\t\t\t\t\thelper={this.helper}\n\t\t\t\t\t\trequired={asBoolean(this.required)}\n\t\t\t\t\t\terror={this.error}\n\t\t\t\t\t\tdisabled={asBoolean(this.disabled)}\n\t\t\t\t\t\tfocused={this._showDropdown}\n\t\t\t\t\t\tvalue={this._getFormattedDate()}\n\t\t\t\t\t\tplaceholder={this.placeholder}\n\t\t\t\t\t\tonFocus={() => this._onFocus()}\n\t\t\t\t\t\tonBlur={() => this._onBlur()}\n\t\t\t\t\t\tonValueChange={ev => this._onValueChange(ev.detail)}\n\t\t\t\t\t\tonInputRefChange={ev => (this._inputRef = ev.detail)}\n\t\t\t\t\t></p-field>\n\n\t\t\t\t\t{this.enableNativePicker && this._isMobileBrowser && (\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tslot='trigger'\n\t\t\t\t\t\t\ttype={this.mode === 'day' ? 'date' : 'month'}\n\t\t\t\t\t\t\tclass='h-0 overflow-hidden' // we use h-0 here so location dependent pickers can correctly place itself\n\t\t\t\t\t\t\tonInput={ev => this._onNativeInput(ev)}\n\t\t\t\t\t\t\tref={ref => (this._dateInputRef = ref)}\n\t\t\t\t\t\t\tvalue={this._value && format(this._value, 'yyyy-MM-dd')}\n\t\t\t\t\t\t\tmin={this.minDate && format(new Date(this.minDate), 'yyyy-MM-dd')}\n\t\t\t\t\t\t\tmax={this.maxDate && format(new Date(this.maxDate), 'yyyy-MM-dd')}\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\t\t\t\t\t<div slot='items'>\n\t\t\t\t\t\t<p-calendar\n\t\t\t\t\t\t\tvariant='embedded'\n\t\t\t\t\t\t\tvalue={this._value}\n\t\t\t\t\t\t\tonValueChange={({ detail }) => (this.value = detail)}\n\t\t\t\t\t\t\tpreselectToday={this.preselectToday}\n\t\t\t\t\t\t\tdisabledDates={this.disabledDates}\n\t\t\t\t\t\t\tminDate={this.minDate}\n\t\t\t\t\t\t\tmaxDate={this.maxDate}\n\t\t\t\t\t\t\tdisableWeekends={this.disableWeekends}\n\t\t\t\t\t\t\tmode={this.mode}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t</p-dropdown>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t@Listen('click', { target: 'document', capture: true })\n\tprotected documentClickHandler({ target }) {\n\t\tif (!this._showDropdown || childOf(target, this._el)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._showDropdown = false;\n\t}\n\n\tprivate _onFocus() {\n\t\tif (this._isMobileBrowser && this._dateInputRef) {\n\t\t\tthis._dateInputRef.showPicker();\n\t\t\tthis._inputRef.blur();\n\t\t\treturn;\n\t\t}\n\n\t\tthis._showDropdown = true;\n\t}\n\n\tprivate _onBlur() {\n\t\tif (this._isMobileBrowser && this._dateInputRef) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst target = this._inputRef;\n\n\t\tif (target.value === null) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst value = parse(target.value, this.format, new Date());\n\n\t\tif (value === this._value) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!isValid(value) || this._isDisabledDay(value)) {\n\t\t\ttarget.value = this._getFormattedDate();\n\t\t\treturn;\n\t\t}\n\n\t\tthis._setValue(value, false);\n\t}\n\n\tprivate _onValueChange(value: string) {\n\t\tif (this._onInputTimeout) {\n\t\t\tclearTimeout(this._onInputTimeout);\n\t\t\tthis._onInputTimeout = null;\n\t\t}\n\n\t\tthis._onInputTimeout = setTimeout(() => {\n\t\t\tconst parsedValue = parse(value, this.format, new Date());\n\n\t\t\tif (!isValid(parsedValue) || format(parsedValue, this.format) !== value) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis._setValue(parsedValue, false);\n\t\t}, 300);\n\t}\n\n\tprivate _onNativeInput(ev) {\n\t\tif (!ev.target) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._onInputTimeout) {\n\t\t\tclearTimeout(this._onInputTimeout);\n\t\t\tthis._onInputTimeout = null;\n\t\t}\n\n\t\tthis._onInputTimeout = setTimeout(() => {\n\t\t\tthis._setValue(\n\t\t\t\tev.target.value === '' ? null : new Date(ev.target.value),\n\t\t\t\tfalse\n\t\t\t);\n\t\t});\n\t}\n\n\tprivate _setValue(value: Date | null, hideDropdown = true) {\n\t\tif (value === null) {\n\t\t\tthis._value = null;\n\t\t\tthis.valueChange.emit(null);\n\t\t\treturn;\n\t\t}\n\n\t\tif (!isValid(value)) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._isDisabledDay(value)) {\n\t\t\tif (!!this._dateInputRef?.value) {\n\t\t\t\tthis._dateInputRef.value = this._value\n\t\t\t\t\t? format(this._value, 'yyyy-MM-dd')\n\t\t\t\t\t: null;\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\n\t\tvalue =\n\t\t\tthis.mode === 'day'\n\t\t\t\t? startOfDay(value)\n\t\t\t\t: this.mode === 'month'\n\t\t\t\t? startOfMonth(value)\n\t\t\t\t: startOfYear(value);\n\t\tconst isSameValue = isSameDay(value, this._value);\n\n\t\tif (isSameValue) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (hideDropdown) {\n\t\t\tthis._showDropdown = false;\n\t\t}\n\n\t\tthis._value = value;\n\t\tthis.valueChange.emit(value);\n\t}\n\n\tprivate _isDisabledDay(day: Date) {\n\t\treturn (\n\t\t\t(this.disableWeekends && isWeekend(day)) ||\n\t\t\t(isBefore(day, this._minDate) && !isSameDay(day, this._minDate)) ||\n\t\t\t(isAfter(day, this._maxDate) && !isSameDay(day, this._maxDate)) ||\n\t\t\tthis._disabledDates.findIndex(date => isSameDay(date, day)) >= 0\n\t\t);\n\t}\n\n\tprivate _getFormattedDate() {\n\t\tif (!this._value) {\n\t\t\treturn '';\n\t\t}\n\n\t\treturn format(this._value, this.format);\n\t}\n}\n"]}
1
+ {"version":3,"file":"datepicker.component.js","sourceRoot":"","sources":["../../../../src/components/molecules/datepicker/datepicker.component.tsx"],"names":[],"mappings":"AACA,OAAO,EACH,eAAe,EACf,SAAS,EACT,OAAO,EACP,KAAK,EAEL,CAAC,EACD,MAAM,EACN,IAAI,EACJ,KAAK,EACL,KAAK,EACR,MAAM,eAAe,CAAC;AACvB,OAAO,EACH,MAAM,EACN,OAAO,EACP,QAAQ,EACR,SAAS,EACT,OAAO,EACP,SAAS,EACT,KAAK,EACL,UAAU,EACV,YAAY,EACZ,WAAW,GACd,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAQtD,MAAM,OAAO,UAAU;IACtB;;OAEG;IACK,WAAW,CAAS;IAE5B;;OAEG;IACK,KAAK,CAAmC;IAEhD;;OAEG;IACK,cAAc,GAAY,KAAK,CAAC;IAExC;;OAEG;IACK,kBAAkB,GAAY,IAAI,CAAC;IAE3C;;OAEG;IACK,aAAa,CAAiC;IAEtD;;OAEG;IACK,OAAO,CAAiB;IAEhC;;OAEG;IACK,OAAO,CAAiB;IAEhC;;OAEG;IACK,eAAe,GAAY,KAAK,CAAC;IAEzC;;OAEG;IACK,IAAI,GAA6B,KAAK,CAAC;IAE/C;;OAEG;IAIH,WAAW,CAAoB;IAE/B;;OAEG;IACK,MAAM,GAAW,YAAY,CAAC;IAEtC;;OAEG;IACK,kBAAkB,GAAY,KAAK,CAAC;IAE5C;;OAEG;IACK,IAAI,GAAkB,MAAM,CAAC;IAErC;;OAEG;IACK,MAAM,CAAS;IAEvB;;OAEG;IACK,KAAK,CAAS;IAEtB;;OAEG;IACK,OAAO,GAAY,KAAK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IACzC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Placement, Strategy } from '@floating-ui/dom';\nimport {\n AttachInternals,\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Listen,\n Prop,\n State,\n Watch\n} from '@stencil/core';\nimport {\n format,\n isAfter,\n isBefore,\n isSameDay,\n isValid,\n isWeekend,\n parse,\n startOfDay,\n startOfMonth,\n startOfYear,\n} from 'date-fns';\nimport { childOf, isMobileBrowser } from '../../../utils';\nimport { asBoolean } from '../../../utils/as-boolean';\n\n@Component({\n\ttag: 'p-datepicker',\n\tstyleUrl: 'datepicker.component.css',\n\tshadow: false,\n\tformAssociated: true\n})\nexport class Datepicker {\n\t/**\n\t * The placeholder of the input\n\t */\n\t@Prop() placeholder: string;\n\n\t/**\n\t * The current value\n\t */\n\t@Prop() value: Date | string | null | undefined;\n\n\t/**\n\t * Wethter to automatically preselect today\n\t */\n\t@Prop() preselectToday: boolean = false;\n\n\t/**\n\t * Enable native picker for mobile devices\n\t */\n\t@Prop() enableNativePicker: boolean = true;\n\n\t/**\n\t * Disabled dates\n\t */\n\t@Prop() disabledDates?: Array<Date | string> | string;\n\n\t/**\n\t * Min date\n\t */\n\t@Prop() minDate?: Date | string;\n\n\t/**\n\t * Max date\n\t */\n\t@Prop() maxDate?: Date | string;\n\n\t/**\n\t * Wether to disable the weekends\n\t */\n\t@Prop() disableWeekends: boolean = false;\n\n\t/**\n\t * The mode of the datepicker\n\t */\n\t@Prop() mode: 'year' | 'month' | 'day' = 'day';\n\n\t/**\n\t * Event when the value changes\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tvalueChange: EventEmitter<any>;\n\n\t/**\n\t * The display & parse format to use\n\t */\n\t@Prop() format: string = 'dd-MM-yyyy';\n\n\t/**\n\t * Hides the icon when filled\n\t */\n\t@Prop() hideIconWhenFilled: boolean = false;\n\n\t/**\n\t * The size of the input group used by the datepicker\n\t */\n\t@Prop() size: 'sm' | 'base' = 'base';\n\n\t/**\n\t * The prefix of the input group used by the datepicker\n\t */\n\t@Prop() prefix: string;\n\n\t/**\n\t * The label of the input group used by the datepicker\n\t */\n\t@Prop() label: string;\n\n\t/**\n\t * Wether the field is loading\n\t */\n\t@Prop() loading: boolean = false;\n\n\t/**\n\t * The helper of the input group used by the datepicker\n\t */\n\t@Prop() helper: string;\n\n\t/**\n\t * Wether the field is required\n\t */\n\t@Prop({ reflect: true }) required: boolean;\n\n\t/**\n\t * The helper of the input group used by the datepicker\n\t */\n\t@Prop({ reflect: true }) error: string;\n\n\t/**\n\t * Wether the input group is disabled used by the datepicker\n\t */\n\t@Prop({ reflect: true }) disabled: boolean = false;\n\n\t/**\n\t * The strategy of the dropdown placement\n\t */\n\t@Prop() strategy: Strategy = 'absolute';\n\n\t/**\n\t * The placement of the dropdown\n\t */\n\t@Prop({ reflect: true }) placement: Placement = 'bottom-start';\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t@State() private _showDropdown: any = false;\n\t@State() private _value: Date;\n\t@State() private _minDate: Date;\n\t@State() private _maxDate: Date;\n\t@State() private _disabledDates: Date[] = [];\n\t@State() private _isMobileBrowser: boolean = false;\n\n\t@AttachInternals() _internals: ElementInternals;\n\n\tprivate _onInputTimeout: NodeJS.Timeout;\n\tprivate _inputRef: HTMLInputElement | HTMLTextAreaElement;\n\tprivate _dateInputRef: HTMLInputElement;\n\n\tprivate _defaultFormats = {\n\t\tyear: 'yyyy',\n\t\tmonth: 'LLLL, yyyy',\n\t\tday: 'dd-MM-yyyy',\n\t};\n\n\t@Watch('value')\n\tprotected parseValue(value: string | Date) {\n\t\tif (!value && this.preselectToday) {\n\t\t\tvalue = new Date();\n\t\t}\n\n\t\tif (typeof value === 'string') {\n\t\t\tvalue = new Date(value);\n\t\t}\n\n\t\tthis._setValue(value);\n\t}\n\n\t@Watch('minDate')\n\tprotected parseMinDate(minDate: string | Date) {\n\t\tif (typeof minDate === 'string') {\n\t\t\tminDate = new Date(minDate);\n\t\t}\n\n\t\tif (!isValid(minDate)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._minDate = minDate;\n\n\t\tif (isBefore(this._value, this._minDate)) {\n\t\t\tthis._setValue(null);\n\t\t}\n\t}\n\n\t@Watch('maxDate')\n\tprotected parseMaxDate(maxDate: string | Date) {\n\t\tif (typeof maxDate === 'string') {\n\t\t\tmaxDate = new Date(maxDate);\n\t\t}\n\n\t\tif (!isValid(maxDate)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._maxDate = maxDate;\n\n\t\tif (isAfter(this._value, this._maxDate)) {\n\t\t\tthis._setValue(null);\n\t\t}\n\t}\n\n\t@Watch('disabledDates')\n\tprotected parseDisabledDates(disabledDates: Array<string | Date> | string) {\n\t\tif (typeof disabledDates === 'string') {\n\t\t\tdisabledDates = JSON.parse(disabledDates);\n\t\t}\n\n\t\tif (!disabledDates || !Array.isArray(disabledDates)) {\n\t\t\treturn;\n\t\t}\n\n\t\t// normalize all to date\n\t\tthis._disabledDates = disabledDates\n\t\t\t.map(date => {\n\t\t\t\tif (typeof date === 'string') {\n\t\t\t\t\treturn new Date(date);\n\t\t\t\t}\n\n\t\t\t\treturn date;\n\t\t\t})\n\t\t\t.filter(date => isValid(date));\n\n\t\tif (this._isDisabledDay(this._value)) {\n\t\t\tthis._setValue(null);\n\t\t}\n\t}\n\n\tformResetCallback() {\n\t\tthis._setValue(null);\n\t}\n\n\tformDisabledCallback(disabled: boolean) {\n\t\tif(!this._internals.form) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.disabled = disabled;\n\t}\n\n\tcomponentWillLoad() {\n\t\tif (this.disabledDates) {\n\t\t\tthis.parseDisabledDates(this.disabledDates);\n\t\t}\n\n\t\tif (this.minDate) {\n\t\t\tthis.parseMinDate(this.minDate);\n\t\t}\n\n\t\tif (this.maxDate) {\n\t\t\tthis.parseMaxDate(this.maxDate);\n\t\t}\n\n\t\tif (this.mode !== 'day' && this.format === this._defaultFormats['day']) {\n\t\t\tthis.format = this._defaultFormats[this.mode];\n\t\t}\n\n\t\tthis._isMobileBrowser = isMobileBrowser();\n\n\t\tthis.parseValue(this.value);\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<p-dropdown\n\t\t\t\tstrategy={this.strategy}\n\t\t\t\tplacement={this.placement}\n\t\t\t\tdisableTriggerClick={true}\n\t\t\t\tapplyMaxWidth={false}\n\t\t\t\tapplyFullWidth={false}\n\t\t\t\tinsideClick={true}\n\t\t\t\tshow={this._showDropdown}\n\t\t\t>\n\t\t\t\t<p-field\n\t\t\t\t\tslot='trigger'\n\t\t\t\t\ticon={\n\t\t\t\t\t\tthis.hideIconWhenFilled && !!this._value ? null : 'calendar-multi'\n\t\t\t\t\t}\n\t\t\t\t\ticonPosition='start'\n\t\t\t\t\tsize={this.size}\n\t\t\t\t\tprefix={this.prefix}\n\t\t\t\t\tlabel={this.label}\n\t\t\t\t\tloading={this.loading}\n\t\t\t\t\thelper={this.helper}\n\t\t\t\t\trequired={asBoolean(this.required)}\n\t\t\t\t\terror={this.error}\n\t\t\t\t\tdisabled={asBoolean(this.disabled)}\n\t\t\t\t\tfocused={this._showDropdown}\n\t\t\t\t\tvalue={this._getFormattedDate()}\n\t\t\t\t\tplaceholder={this.placeholder}\n\t\t\t\t\tonFocus={() => this._onFocus()}\n\t\t\t\t\tonBlur={() => this._onBlur()}\n\t\t\t\t\tonValueChange={ev => this._onValueChange(ev.detail)}\n\t\t\t\t\tonInputRefChange={ev => (this._inputRef = ev.detail)}\n\t\t\t\t></p-field>\n\n\t\t\t\t{this.enableNativePicker && this._isMobileBrowser && (\n\t\t\t\t\t<input\n\t\t\t\t\t\tslot='trigger'\n\t\t\t\t\t\ttype={this.mode === 'day' ? 'date' : 'month'}\n\t\t\t\t\t\tclass='h-0 overflow-hidden' // we use h-0 here so location dependent pickers can correctly place itself\n\t\t\t\t\t\tonInput={ev => this._onNativeInput(ev)}\n\t\t\t\t\t\tref={ref => (this._dateInputRef = ref)}\n\t\t\t\t\t\tvalue={this._value && format(this._value, 'yyyy-MM-dd')}\n\t\t\t\t\t\tmin={this.minDate && format(new Date(this.minDate), 'yyyy-MM-dd')}\n\t\t\t\t\t\tmax={this.maxDate && format(new Date(this.maxDate), 'yyyy-MM-dd')}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t\t<div slot='items'>\n\t\t\t\t\t<p-calendar\n\t\t\t\t\t\tvariant='embedded'\n\t\t\t\t\t\tvalue={this._value}\n\t\t\t\t\t\tonValueChange={({ detail }) => (this.value = detail)}\n\t\t\t\t\t\tpreselectToday={this.preselectToday}\n\t\t\t\t\t\tdisabledDates={this.disabledDates}\n\t\t\t\t\t\tminDate={this.minDate}\n\t\t\t\t\t\tmaxDate={this.maxDate}\n\t\t\t\t\t\tdisableWeekends={this.disableWeekends}\n\t\t\t\t\t\tmode={this.mode}\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t</p-dropdown>\n\t\t);\n\t}\n\n\t@Listen('click', { target: 'document', capture: true })\n\tprotected documentClickHandler({ target }) {\n\t\tif (!this._showDropdown || childOf(target, this._el)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._showDropdown = false;\n\t}\n\n\tprivate _onFocus() {\n\t\tif (this._isMobileBrowser && this._dateInputRef) {\n\t\t\tthis._dateInputRef.showPicker();\n\t\t\tthis._inputRef.blur();\n\t\t\treturn;\n\t\t}\n\n\t\tthis._showDropdown = true;\n\t}\n\n\tprivate _onBlur() {\n\t\tif (this._isMobileBrowser && this._dateInputRef) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst target = this._inputRef;\n\n\t\tif (target.value === null) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst value = parse(target.value, this.format, new Date());\n\n\t\tif (value === this._value) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!isValid(value) || this._isDisabledDay(value)) {\n\t\t\ttarget.value = this._getFormattedDate();\n\t\t\treturn;\n\t\t}\n\n\t\tthis._setValue(value, false);\n\t}\n\n\tprivate _onValueChange(value: string) {\n\t\tif (this._onInputTimeout) {\n\t\t\tclearTimeout(this._onInputTimeout);\n\t\t\tthis._onInputTimeout = null;\n\t\t}\n\n\t\tthis._onInputTimeout = setTimeout(() => {\n\t\t\tconst parsedValue = parse(value, this.format, new Date());\n\n\t\t\tif (!isValid(parsedValue) || format(parsedValue, this.format) !== value) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis._setValue(parsedValue, false);\n\t\t}, 300);\n\t}\n\n\tprivate _onNativeInput(ev) {\n\t\tif (!ev.target) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._onInputTimeout) {\n\t\t\tclearTimeout(this._onInputTimeout);\n\t\t\tthis._onInputTimeout = null;\n\t\t}\n\n\t\tthis._onInputTimeout = setTimeout(() => {\n\t\t\tthis._setValue(\n\t\t\t\tev.target.value === '' ? null : new Date(ev.target.value),\n\t\t\t\tfalse\n\t\t\t);\n\t\t});\n\t}\n\n\tprivate _setValue(value: Date | null, hideDropdown = true) {\n\t\tif (value === null) {\n\t\t\tthis._value = null;\n\t\t\tthis.valueChange.emit(null);\n\t\t\treturn;\n\t\t}\n\n\t\tif (!isValid(value)) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._isDisabledDay(value)) {\n\t\t\tif (!!this._dateInputRef?.value) {\n\t\t\t\tthis._dateInputRef.value = this._value\n\t\t\t\t\t? format(this._value, 'yyyy-MM-dd')\n\t\t\t\t\t: null;\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\n\t\tvalue =\n\t\t\tthis.mode === 'day'\n\t\t\t\t? startOfDay(value)\n\t\t\t\t: this.mode === 'month'\n\t\t\t\t? startOfMonth(value)\n\t\t\t\t: startOfYear(value);\n\t\tconst isSameValue = isSameDay(value, this._value);\n\n\t\tif (isSameValue) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (hideDropdown) {\n\t\t\tthis._showDropdown = false;\n\t\t}\n\n\t\tthis._value = value;\n\t\tthis.valueChange.emit(value);\n\t}\n\n\tprivate _isDisabledDay(day: Date) {\n\t\treturn (\n\t\t\t(this.disableWeekends && isWeekend(day)) ||\n\t\t\t(isBefore(day, this._minDate) && !isSameDay(day, this._minDate)) ||\n\t\t\t(isAfter(day, this._maxDate) && !isSameDay(day, this._maxDate)) ||\n\t\t\tthis._disabledDates.findIndex(date => isSameDay(date, day)) >= 0\n\t\t);\n\t}\n\n\tprivate _getFormattedDate() {\n\t\tif (!this._value) {\n\t\t\treturn '';\n\t\t}\n\n\t\treturn format(this._value, this.format);\n\t}\n}\n"]}
@@ -133,14 +133,14 @@ export class Dropdown {
133
133
  'data-strategy': this.strategy,
134
134
  };
135
135
  let dropdownContainer;
136
- const itemsSlot = h("slot", { key: 'fd150460798653fa855d3e9a44bfb8603993a9ba', name: 'items' });
136
+ const itemsSlot = h("slot", { key: '2231e6d8589ef6c62a6c108d9043ab1740729b91', name: 'items' });
137
137
  if (this.usePortal) {
138
- dropdownContainer = (h("p-portal", { key: '244863fad488167e46363bb6c340bef604093e1b', ...dropdownContainerProps }, h("p-dropdown-menu-container", { key: '828f7209e2000d63f2b2a16129e19cb836d79b58', variant: this.variant, maxWidth: !this.calculateWidth && this.applyMaxWidth, fullWidth: this.applyFullWidth && !this.applyMaxWidth, allowOverflow: this.allowOverflow, scrollable: this.scrollable }, itemsSlot)));
138
+ dropdownContainer = (h("p-portal", { key: 'e7c67d48560c83c6910c530ea420440f755eac4d', ...dropdownContainerProps }, h("p-dropdown-menu-container", { key: '6051774d7a9cf2d5348e23fba190a992808f7f9a', variant: this.variant, maxWidth: !this.calculateWidth && this.applyMaxWidth, fullWidth: this.applyFullWidth && !this.applyMaxWidth, allowOverflow: this.allowOverflow, scrollable: this.scrollable }, itemsSlot)));
139
139
  }
140
140
  else {
141
- dropdownContainer = (h("p-dropdown-menu-container", { key: '42b0ab00b8d36eeba9feefd51c2f077ec51e97b3', variant: this.variant, maxWidth: !this.calculateWidth && this.applyMaxWidth, fullWidth: this.applyFullWidth && !this.applyMaxWidth, allowOverflow: this.allowOverflow, scrollable: this.scrollable, ...dropdownContainerProps }, itemsSlot));
141
+ dropdownContainer = (h("p-dropdown-menu-container", { key: '3a17524559a9245d424426ecca54e22640ce0326', variant: this.variant, maxWidth: !this.calculateWidth && this.applyMaxWidth, fullWidth: this.applyFullWidth && !this.applyMaxWidth, allowOverflow: this.allowOverflow, scrollable: this.scrollable, ...dropdownContainerProps }, itemsSlot));
142
142
  }
143
- return (h(Host, { key: '5dc5323fd1e9b58924949016957d99f4e0b5a181', class: 'p-dropdown relative' }, h("div", { key: '12b03987c19063e249b7d0c1fdd844d71a2c61bb', class: 'trigger', ref: ref => (this._trigger = ref), onClick: () => this._triggerClickHandler() }, h("slot", { key: '0d98f805fb1eb9cff9a5c5abbb6a72efffe4b599', name: 'trigger' })), h("div", { key: '7512d58f9ff5aedc7f5b667b3905ed587a6cd17e', class: 'relative w-full' }, dropdownContainer)));
143
+ return (h(Host, { key: 'e4ff6cda426ec33ec9c3e7fddecf48205512d50a', class: 'relative' }, h("div", { key: '75f631d259eb3372443715c2008676373eaf6df9', class: 'trigger', ref: ref => (this._trigger = ref), onClick: () => this._triggerClickHandler() }, h("slot", { key: '0782dd7cab30da7e62dcc82544a5af7ba2d33bc4', name: 'trigger' })), h("div", { key: '75a402a6b368fa284477c2d348f1f6e1b93e5ebf', class: 'relative w-full' }, dropdownContainer)));
144
144
  }
145
145
  _checkButtons(active = false) {
146
146
  if (!this.applyChevron) {
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown.component.js","sourceRoot":"","sources":["../../../../src/components/molecules/dropdown/dropdown.component.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,UAAU,EACV,eAAe,EACf,IAAI,EACJ,MAAM,EAEN,KAAK,GAEL,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACN,SAAS,EACT,OAAO,EACP,KAAK,EAEL,CAAC,EACD,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,KAAK,GACL,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,MAAM,sBAAsB,GAAG,GAAG,CAAC,CAAC,mBAAmB,CAAC,EAAE;IACzD,QAAQ,EAAE;QACT,QAAQ,EAAE;YACT,QAAQ,EAAE,UAAU;YACpB,KAAK,EAAE,OAAO;SACd;QACD,SAAS,EAAE;YACV,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,QAAQ;SACd;QACD,QAAQ,EAAE;YACT,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,mBAAmB;SACzB;KACD;IACD,gBAAgB,EAAE;QACjB;YACC,SAAS,EAAE,KAAK;YAChB,QAAQ,EAAE,IAAI;YACd,KAAK,EAAE,QAAQ;SACf;KACD;CACD,CAAC,CAAC;AAOH,MAAM,OAAO,QAAQ;IACpB;;OAEG;IACK,OAAO,GAA4B,SAAS,CAAC;IAErD;;OAEG;IACsB,SAAS,GAAc,cAAc,CAAC;IAE/D;;OAEG;IACK,MAAM,GA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {\n\tautoUpdate,\n\tcomputePosition,\n\tflip,\n\toffset,\n\tPlacement,\n\tshift,\n\tStrategy,\n} from '@floating-ui/dom';\nimport {\n\tComponent,\n\tElement,\n\tEvent,\n\tEventEmitter,\n\th,\n\tHost,\n\tListen,\n\tProp,\n\tWatch,\n} from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport { childOfComposed } from '../../../utils/child-of';\n\nconst dropdownContainerClass = cva(['z-dropdown hidden'], {\n\tvariants: {\n\t\tstrategy: {\n\t\t\tabsolute: 'absolute',\n\t\t\tfixed: 'fixed',\n\t\t},\n\t\tfullWidth: {\n\t\t\tfalse: null,\n\t\t\ttrue: 'w-full',\n\t\t},\n\t\tmaxWidth: {\n\t\t\tfalse: null,\n\t\t\ttrue: 'max-w-[13.875rem]',\n\t\t},\n\t},\n\tcompoundVariants: [\n\t\t{\n\t\t\tfullWidth: false,\n\t\t\tmaxWidth: true,\n\t\t\tclass: 'w-auto',\n\t\t},\n\t],\n});\n\n@Component({\n\ttag: 'p-dropdown',\n\tstyleUrl: 'dropdown.component.css',\n\tshadow: true,\n})\nexport class Dropdown {\n\t/**\n\t * The variant of the dropdown\n\t */\n\t@Prop() variant: 'default' | 'dark-teal' = 'default';\n\n\t/**\n\t * The content of the dropdown menu\n\t */\n\t@Prop({ reflect: true }) placement: Placement = 'bottom-start';\n\n\t/**\n\t * The offset of the dropdown menu\n\t */\n\t@Prop() offset: number = 8;\n\n\t/**\n\t * The strategy of the dropdown placement\n\t */\n\t@Prop() strategy: Strategy = 'absolute';\n\n\t/**\n\t * Wether to show the dropdown menu\n\t */\n\t@Prop() show: boolean = false;\n\n\t/**\n\t * Wether to use a portal for the dropdown container\n\t */\n\t@Prop() usePortal: boolean = false;\n\n\t/**\n\t * Wether to automatically calculate the width of the menu based on the trigger\n\t */\n\t@Prop() calculateWidth: boolean = false;\n\n\t/**\n\t * Wether to apply the max width\n\t */\n\t@Prop() applyMaxWidth: boolean = true;\n\n\t/**\n\t * Wether to apply the full width\n\t */\n\t@Prop() applyFullWidth: boolean = true;\n\n\t/**\n\t * Wether to allow overflow in the container\n\t */\n\t@Prop() allowOverflow: boolean = false;\n\n\t/**\n\t * Wether the dropdown container should be scrollable when the threshold is met.\n\t */\n\t@Prop() scrollable: boolean | 'default' | 'large' = false;\n\n\t/**\n\t * Wether to automatically close the dropdown menu after clicking inside\n\t */\n\t@Prop() insideClick: boolean = false;\n\n\t/**\n\t * Wether to automatically close the dropdown menu after clicking inside\n\t */\n\t@Prop() disableTriggerClick: boolean = false;\n\n\t/**\n\t * Wether to apply chevron automatically\n\t */\n\t@Prop() applyChevron: boolean = true;\n\n\t/**\n\t * Chevron position\n\t */\n\t@Prop() chevronPosition: 'start' | 'end' = 'end';\n\n\t/**\n\t * Chevron direction\n\t */\n\t@Prop() chevronDirection: 'up' | 'down';\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t/**\n\t * Open change event\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tisOpen: EventEmitter<boolean>;\n\n\tprivate _loaded = false;\n\tprivate _trigger: HTMLElement;\n\tprivate _menu: HTMLElement;\n\tprivate _cleanup: () => void;\n\n\tcomponentShouldUpdate() {\n\t\tthis._update();\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis._checkButtons();\n\t}\n\n\tdisconnectedCallback() {\n\t\tif (this._cleanup) {\n\t\t\tthis._cleanup();\n\t\t\tthis._cleanup = null;\n\t\t}\n\n\t\tthis._menu.remove();\n\t}\n\n\tcomponentDidRender() {\n\t\tthis._checkButtons();\n\t\tthis._checkItems();\n\t}\n\n\trender() {\n\t\tconst dropdownContainerProps = {\n\t\t\tclass: dropdownContainerClass({\n\t\t\t\tstrategy: this.strategy,\n\t\t\t\tmaxWidth: !this.calculateWidth && this.applyMaxWidth,\n\t\t\t\tfullWidth: this.applyFullWidth && !this.applyMaxWidth,\n\t\t\t}),\n\t\t\tref: el => this._load(el),\n\t\t\tonClick: () => this._containerClickHandler(),\n\t\t\trole: 'popover',\n\t\t\t'data-placement': this.placement,\n\t\t\t'data-strategy': this.strategy,\n\t\t};\n\n\t\tlet dropdownContainer: HTMLElement;\n\t\tconst itemsSlot = <slot name='items' />;\n\n\t\tif (this.usePortal) {\n\t\t\tdropdownContainer = (\n\t\t\t\t<p-portal {...dropdownContainerProps}>\n\t\t\t\t\t<p-dropdown-menu-container\n\t\t\t\t\t\tvariant={this.variant}\n\t\t\t\t\t\tmaxWidth={!this.calculateWidth && this.applyMaxWidth}\n\t\t\t\t\t\tfullWidth={this.applyFullWidth && !this.applyMaxWidth}\n\t\t\t\t\t\tallowOverflow={this.allowOverflow}\n\t\t\t\t\t\tscrollable={this.scrollable}\n\t\t\t\t\t>\n\t\t\t\t\t\t{itemsSlot}\n\t\t\t\t\t</p-dropdown-menu-container>\n\t\t\t\t</p-portal>\n\t\t\t);\n\t\t} else {\n\t\t\tdropdownContainer = (\n\t\t\t\t<p-dropdown-menu-container\n\t\t\t\t\tvariant={this.variant}\n\t\t\t\t\tmaxWidth={!this.calculateWidth && this.applyMaxWidth}\n\t\t\t\t\tfullWidth={this.applyFullWidth && !this.applyMaxWidth}\n\t\t\t\t\tallowOverflow={this.allowOverflow}\n\t\t\t\t\tscrollable={this.scrollable}\n\t\t\t\t\t{...dropdownContainerProps}\n\t\t\t\t>\n\t\t\t\t\t{itemsSlot}\n\t\t\t\t</p-dropdown-menu-container>\n\t\t\t);\n\t\t}\n\n\t\treturn (\n\t\t\t<Host class='p-dropdown relative'>\n\t\t\t\t<div\n\t\t\t\t\tclass='trigger'\n\t\t\t\t\tref={ref => (this._trigger = ref)}\n\t\t\t\t\tonClick={() => this._triggerClickHandler()}\n\t\t\t\t>\n\t\t\t\t\t<slot name='trigger' />\n\t\t\t\t</div>\n\t\t\t\t<div class='relative w-full'>{dropdownContainer}</div>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate _checkButtons(active: boolean = false) {\n\t\tif (!this.applyChevron) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst buttons = this._el.querySelectorAll<HTMLPButtonElement>(\n\t\t\t'p-button[slot=\"trigger\"]'\n\t\t);\n\n\t\tfor (let button of [...buttons]) {\n\t\t\tbutton.disabled = this.disableTriggerClick;\n\t\t\tbutton.active = active;\n\n\t\t\tif (button.iconOnly) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tbutton.chevronPosition = this.chevronPosition;\n\t\t\tbutton.chevron = this.chevronDirection\n\t\t\t\t? this.chevronDirection\n\t\t\t\t: this.placement.indexOf('top') >= 0\n\t\t\t\t? 'up'\n\t\t\t\t: 'down';\n\t\t}\n\t}\n\n\tprivate _checkItems() {\n\t\tconst items = this._el.querySelectorAll<HTMLPDropdownMenuItemElement>(\n\t\t\t'p-dropdown-menu-item'\n\t\t);\n\n\t\tfor (let item of [...items]) {\n\t\t\titem.variant = this.variant;\n\t\t}\n\t}\n\n\t@Watch('show')\n\tprotected onShowChange(show) {\n\t\tif (!this._loaded) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!show) {\n\t\t\tthis._hide();\n\t\t\treturn;\n\t\t}\n\n\t\tthis._show();\n\t}\n\n\t@Listen('click', { target: 'document', capture: true })\n\tprotected documentClickHandler(event) {\n\t\tif (!this._menu.hasAttribute('data-show') || childOfComposed(event, this._menu)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._hide();\n\t}\n\n\tprivate _containerClickHandler() {\n\t\tif (this.insideClick) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._menu.hasAttribute('data-show')) {\n\t\t\tthis._hide();\n\t\t}\n\t}\n\n\tprivate _triggerClickHandler() {\n\t\tif (this.disableTriggerClick) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._menu.hasAttribute('data-show')) {\n\t\t\tthis._hide();\n\t\t\treturn;\n\t\t}\n\n\t\tthis._show();\n\t}\n\n\tprivate _load(popover: HTMLElement) {\n\t\tthis._menu = popover;\n\t\tif (popover) {\n\t\t\tthis._update();\n\t\t\tthis._loaded = true;\n\n\t\t\tif (this.show) {\n\t\t\t\tsetTimeout(() => this._show(), 100);\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate _show() {\n\t\tif (!this._loaded) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Make the popover visible\n\t\tif (this.calculateWidth) {\n\t\t\tthis._menu.style.width = `${this._trigger.clientWidth}px`;\n\t\t}\n\n\t\tthis._cleanup = autoUpdate(this._el, this._menu, () => this._update());\n\n\t\tthis._menu.setAttribute('data-show', '');\n\t\tthis._menu.classList.remove('hidden');\n\t\tthis._menu.classList.add('block');\n\n\t\tthis.isOpen.emit(true);\n\t\tthis._checkButtons(true);\n\t}\n\n\tprivate _hide() {\n\t\tif (!this._loaded || this.show) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._cleanup) {\n\t\t\tthis._cleanup();\n\t\t\tthis._cleanup = null;\n\t\t}\n\n\t\t// Hide the popover\n\t\tthis._menu.removeAttribute('data-show');\n\t\tthis._menu.classList.remove('block');\n\t\tthis._menu.classList.add('hidden');\n\n\t\tthis.isOpen.emit(false);\n\t\tthis._checkButtons(false);\n\t}\n\n\tprivate _update() {\n\t\tif (!this._menu) {\n\t\t\treturn;\n\t\t}\n\n\t\tcomputePosition(this._el, this._menu, {\n\t\t\tplacement: this.placement,\n\t\t\tstrategy: this.strategy,\n\t\t\tmiddleware: [offset(this.offset), flip(), shift()],\n\t\t}).then(({ x, y, placement }) => {\n\t\t\tthis._menu.dataset.placement = placement;\n\t\t\tObject.assign(this._menu.style, {\n\t\t\t\ttop: `${y}px`,\n\t\t\t\tleft: `${x}px`,\n\t\t\t});\n\t\t});\n\t}\n}\n"]}
1
+ {"version":3,"file":"dropdown.component.js","sourceRoot":"","sources":["../../../../src/components/molecules/dropdown/dropdown.component.tsx"],"names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AAG,EAAE,IAAI,CAAC,KAAK,EAAE;YACrC,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,UAAU,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,CAAC;SAClD,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE;YAC/B,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC;YACzC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE;gBAC/B,GAAG,EAAE,GAAG,CAAC,IAAI;gBACb,IAAI,EAAE,GAAG,CAAC,IAAI;aACd,CAAC,CAAC;QACJ,CAAC,CAAC,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {\n\tautoUpdate,\n\tcomputePosition,\n\tflip,\n\toffset,\n\tPlacement,\n\tshift,\n\tStrategy,\n} from '@floating-ui/dom';\nimport {\n\tComponent,\n\tElement,\n\tEvent,\n\tEventEmitter,\n\th,\n\tHost,\n\tListen,\n\tProp,\n\tWatch,\n} from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport { childOfComposed } from '../../../utils/child-of';\n\nconst dropdownContainerClass = cva(['z-dropdown hidden'], {\n\tvariants: {\n\t\tstrategy: {\n\t\t\tabsolute: 'absolute',\n\t\t\tfixed: 'fixed',\n\t\t},\n\t\tfullWidth: {\n\t\t\tfalse: null,\n\t\t\ttrue: 'w-full',\n\t\t},\n\t\tmaxWidth: {\n\t\t\tfalse: null,\n\t\t\ttrue: 'max-w-[13.875rem]',\n\t\t},\n\t},\n\tcompoundVariants: [\n\t\t{\n\t\t\tfullWidth: false,\n\t\t\tmaxWidth: true,\n\t\t\tclass: 'w-auto',\n\t\t},\n\t],\n});\n\n@Component({\n\ttag: 'p-dropdown',\n\tstyleUrl: 'dropdown.component.css',\n\tshadow: true,\n})\nexport class Dropdown {\n\t/**\n\t * The variant of the dropdown\n\t */\n\t@Prop() variant: 'default' | 'dark-teal' = 'default';\n\n\t/**\n\t * The content of the dropdown menu\n\t */\n\t@Prop({ reflect: true }) placement: Placement = 'bottom-start';\n\n\t/**\n\t * The offset of the dropdown menu\n\t */\n\t@Prop() offset: number = 8;\n\n\t/**\n\t * The strategy of the dropdown placement\n\t */\n\t@Prop() strategy: Strategy = 'absolute';\n\n\t/**\n\t * Wether to show the dropdown menu\n\t */\n\t@Prop() show: boolean = false;\n\n\t/**\n\t * Wether to use a portal for the dropdown container\n\t */\n\t@Prop() usePortal: boolean = false;\n\n\t/**\n\t * Wether to automatically calculate the width of the menu based on the trigger\n\t */\n\t@Prop() calculateWidth: boolean = false;\n\n\t/**\n\t * Wether to apply the max width\n\t */\n\t@Prop() applyMaxWidth: boolean = true;\n\n\t/**\n\t * Wether to apply the full width\n\t */\n\t@Prop() applyFullWidth: boolean = true;\n\n\t/**\n\t * Wether to allow overflow in the container\n\t */\n\t@Prop() allowOverflow: boolean = false;\n\n\t/**\n\t * Wether the dropdown container should be scrollable when the threshold is met.\n\t */\n\t@Prop() scrollable: boolean | 'default' | 'large' = false;\n\n\t/**\n\t * Wether to automatically close the dropdown menu after clicking inside\n\t */\n\t@Prop() insideClick: boolean = false;\n\n\t/**\n\t * Wether to automatically close the dropdown menu after clicking inside\n\t */\n\t@Prop() disableTriggerClick: boolean = false;\n\n\t/**\n\t * Wether to apply chevron automatically\n\t */\n\t@Prop() applyChevron: boolean = true;\n\n\t/**\n\t * Chevron position\n\t */\n\t@Prop() chevronPosition: 'start' | 'end' = 'end';\n\n\t/**\n\t * Chevron direction\n\t */\n\t@Prop() chevronDirection: 'up' | 'down';\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t/**\n\t * Open change event\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tisOpen: EventEmitter<boolean>;\n\n\tprivate _loaded = false;\n\tprivate _trigger: HTMLElement;\n\tprivate _menu: HTMLElement;\n\tprivate _cleanup: () => void;\n\n\tcomponentShouldUpdate() {\n\t\tthis._update();\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis._checkButtons();\n\t}\n\n\tdisconnectedCallback() {\n\t\tif (this._cleanup) {\n\t\t\tthis._cleanup();\n\t\t\tthis._cleanup = null;\n\t\t}\n\n\t\tthis._menu.remove();\n\t}\n\n\tcomponentDidRender() {\n\t\tthis._checkButtons();\n\t\tthis._checkItems();\n\t}\n\n\trender() {\n\t\tconst dropdownContainerProps = {\n\t\t\tclass: dropdownContainerClass({\n\t\t\t\tstrategy: this.strategy,\n\t\t\t\tmaxWidth: !this.calculateWidth && this.applyMaxWidth,\n\t\t\t\tfullWidth: this.applyFullWidth && !this.applyMaxWidth,\n\t\t\t}),\n\t\t\tref: el => this._load(el),\n\t\t\tonClick: () => this._containerClickHandler(),\n\t\t\trole: 'popover',\n\t\t\t'data-placement': this.placement,\n\t\t\t'data-strategy': this.strategy,\n\t\t};\n\n\t\tlet dropdownContainer: HTMLElement;\n\t\tconst itemsSlot = <slot name='items' />;\n\n\t\tif (this.usePortal) {\n\t\t\tdropdownContainer = (\n\t\t\t\t<p-portal {...dropdownContainerProps}>\n\t\t\t\t\t<p-dropdown-menu-container\n\t\t\t\t\t\tvariant={this.variant}\n\t\t\t\t\t\tmaxWidth={!this.calculateWidth && this.applyMaxWidth}\n\t\t\t\t\t\tfullWidth={this.applyFullWidth && !this.applyMaxWidth}\n\t\t\t\t\t\tallowOverflow={this.allowOverflow}\n\t\t\t\t\t\tscrollable={this.scrollable}\n\t\t\t\t\t>\n\t\t\t\t\t\t{itemsSlot}\n\t\t\t\t\t</p-dropdown-menu-container>\n\t\t\t\t</p-portal>\n\t\t\t);\n\t\t} else {\n\t\t\tdropdownContainer = (\n\t\t\t\t<p-dropdown-menu-container\n\t\t\t\t\tvariant={this.variant}\n\t\t\t\t\tmaxWidth={!this.calculateWidth && this.applyMaxWidth}\n\t\t\t\t\tfullWidth={this.applyFullWidth && !this.applyMaxWidth}\n\t\t\t\t\tallowOverflow={this.allowOverflow}\n\t\t\t\t\tscrollable={this.scrollable}\n\t\t\t\t\t{...dropdownContainerProps}\n\t\t\t\t>\n\t\t\t\t\t{itemsSlot}\n\t\t\t\t</p-dropdown-menu-container>\n\t\t\t);\n\t\t}\n\n\t\treturn (\n\t\t\t<Host class='relative'>\n\t\t\t\t<div\n\t\t\t\t\tclass='trigger'\n\t\t\t\t\tref={ref => (this._trigger = ref)}\n\t\t\t\t\tonClick={() => this._triggerClickHandler()}\n\t\t\t\t>\n\t\t\t\t\t<slot name='trigger' />\n\t\t\t\t</div>\n\t\t\t\t<div class='relative w-full'>{dropdownContainer}</div>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate _checkButtons(active: boolean = false) {\n\t\tif (!this.applyChevron) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst buttons = this._el.querySelectorAll<HTMLPButtonElement>(\n\t\t\t'p-button[slot=\"trigger\"]'\n\t\t);\n\n\t\tfor (let button of [...buttons]) {\n\t\t\tbutton.disabled = this.disableTriggerClick;\n\t\t\tbutton.active = active;\n\n\t\t\tif (button.iconOnly) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tbutton.chevronPosition = this.chevronPosition;\n\t\t\tbutton.chevron = this.chevronDirection\n\t\t\t\t? this.chevronDirection\n\t\t\t\t: this.placement.indexOf('top') >= 0\n\t\t\t\t? 'up'\n\t\t\t\t: 'down';\n\t\t}\n\t}\n\n\tprivate _checkItems() {\n\t\tconst items = this._el.querySelectorAll<HTMLPDropdownMenuItemElement>(\n\t\t\t'p-dropdown-menu-item'\n\t\t);\n\n\t\tfor (let item of [...items]) {\n\t\t\titem.variant = this.variant;\n\t\t}\n\t}\n\n\t@Watch('show')\n\tprotected onShowChange(show) {\n\t\tif (!this._loaded) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!show) {\n\t\t\tthis._hide();\n\t\t\treturn;\n\t\t}\n\n\t\tthis._show();\n\t}\n\n\t@Listen('click', { target: 'document', capture: true })\n\tprotected documentClickHandler(event) {\n\t\tif (!this._menu.hasAttribute('data-show') || childOfComposed(event, this._menu)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._hide();\n\t}\n\n\tprivate _containerClickHandler() {\n\t\tif (this.insideClick) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._menu.hasAttribute('data-show')) {\n\t\t\tthis._hide();\n\t\t}\n\t}\n\n\tprivate _triggerClickHandler() {\n\t\tif (this.disableTriggerClick) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._menu.hasAttribute('data-show')) {\n\t\t\tthis._hide();\n\t\t\treturn;\n\t\t}\n\n\t\tthis._show();\n\t}\n\n\tprivate _load(popover: HTMLElement) {\n\t\tthis._menu = popover;\n\t\tif (popover) {\n\t\t\tthis._update();\n\t\t\tthis._loaded = true;\n\n\t\t\tif (this.show) {\n\t\t\t\tsetTimeout(() => this._show(), 100);\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate _show() {\n\t\tif (!this._loaded) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Make the popover visible\n\t\tif (this.calculateWidth) {\n\t\t\tthis._menu.style.width = `${this._trigger.clientWidth}px`;\n\t\t}\n\n\t\tthis._cleanup = autoUpdate(this._el, this._menu, () => this._update());\n\n\t\tthis._menu.setAttribute('data-show', '');\n\t\tthis._menu.classList.remove('hidden');\n\t\tthis._menu.classList.add('block');\n\n\t\tthis.isOpen.emit(true);\n\t\tthis._checkButtons(true);\n\t}\n\n\tprivate _hide() {\n\t\tif (!this._loaded || this.show) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._cleanup) {\n\t\t\tthis._cleanup();\n\t\t\tthis._cleanup = null;\n\t\t}\n\n\t\t// Hide the popover\n\t\tthis._menu.removeAttribute('data-show');\n\t\tthis._menu.classList.remove('block');\n\t\tthis._menu.classList.add('hidden');\n\n\t\tthis.isOpen.emit(false);\n\t\tthis._checkButtons(false);\n\t}\n\n\tprivate _update() {\n\t\tif (!this._menu) {\n\t\t\treturn;\n\t\t}\n\n\t\tcomputePosition(this._el, this._menu, {\n\t\t\tplacement: this.placement,\n\t\t\tstrategy: this.strategy,\n\t\t\tmiddleware: [offset(this.offset), flip(), shift()],\n\t\t}).then(({ x, y, placement }) => {\n\t\t\tthis._menu.dataset.placement = placement;\n\t\t\tObject.assign(this._menu.style, {\n\t\t\t\ttop: `${y}px`,\n\t\t\t\tleft: `${x}px`,\n\t\t\t});\n\t\t});\n\t}\n}\n"]}
@@ -1 +1 @@
1
- *{box-sizing:border-box}p-divider{--tw-content:""}.my-0{margin-bottom:0!important;margin-top:0!important}.mb-8{margin-bottom:2rem!important}.mt-4{margin-top:1rem!important}.flex{display:flex!important}.w-full{width:100%!important}.max-w-\[20rem\]{max-width:20rem!important}.cursor-pointer{cursor:pointer!important}.flex-col{flex-direction:column!important}.items-center{align-items:center!important}.justify-start{justify-content:flex-start!important}.text-center{text-align:center!important}.font-ambit{font-family:Ambit,sans-serif!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.font-bold{font-weight:700!important}.text-black-teal{--tw-text-opacity:1!important;color:rgb(3 42 36/var(--tw-text-opacity,1))!important}.text-black-teal-300{--tw-text-opacity:1!important;color:rgb(104 127 124/var(--tw-text-opacity,1))!important}.text-teal{--tw-text-opacity:1!important;color:rgb(8 136 121/var(--tw-text-opacity,1))!important}
1
+ *{box-sizing:border-box}p-divider{--tw-content:""}.static{position:static!important}.my-0{margin-bottom:0!important;margin-top:0!important}.mb-8{margin-bottom:2rem!important}.mt-4{margin-top:1rem!important}.flex{display:flex!important}.w-full{width:100%!important}.max-w-\[20rem\]{max-width:20rem!important}.cursor-pointer{cursor:pointer!important}.flex-col{flex-direction:column!important}.items-center{align-items:center!important}.justify-start{justify-content:flex-start!important}.text-center{text-align:center!important}.font-ambit{font-family:Ambit,sans-serif!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.font-bold{font-weight:700!important}.text-black-teal{--tw-text-opacity:1!important;color:rgb(3 42 36/var(--tw-text-opacity,1))!important}.text-black-teal-300{--tw-text-opacity:1!important;color:rgb(104 127 124/var(--tw-text-opacity,1))!important}.text-teal{--tw-text-opacity:1!important;color:rgb(8 136 121/var(--tw-text-opacity,1))!important}
@@ -54,11 +54,11 @@ export class EmptyState {
54
54
  const hasHeaderSlot = !!this._el.querySelector(':scope > [slot="header"]');
55
55
  const hasContentSlot = !!this._el.querySelector(':scope > [slot="content"]');
56
56
  const hasActionSlot = !!this._el.querySelector(':scope > [slot="action"]');
57
- return (h("div", { key: 'fc0d6b16fc63c0bf971eeb637c867d250938d5bd', class: emptyState({
57
+ return (h("div", { key: '3cabf463f134857beb1f960df8147c73f06dca6e', class: emptyState({
58
58
  enableAction: asBoolean(this.enableAction, true),
59
59
  }), onClick: ev => this.enableAction && !this.actionLoading
60
60
  ? this.action.emit(ev)
61
- : undefined }, this.illustration && (h("p-illustration", { key: '5392ff97c3672e096915e5e7c6c140df05ea9127', class: 'mb-8 text-teal', variant: this.illustration })), hasHeaderSlot ? (h("slot", { name: 'header' })) : (this.header?.length && (h("p", { class: 'my-0 text-center font-ambit text-sm font-bold text-black-teal' }, this.header))), hasContentSlot ? (h("slot", { name: 'content' })) : (this.content?.length && (h("p", { class: 'my-0 text-center text-sm text-black-teal-300' }, this.content))), this.enableAction &&
61
+ : undefined }, this.illustration && (h("p-illustration", { key: 'f8e845bf6a87df689b617c1dca14dbe32457e37d', class: 'mb-8 text-teal', variant: this.illustration })), hasHeaderSlot ? (h("slot", { name: 'header' })) : (this.header?.length && (h("p", { class: 'my-0 text-center font-ambit text-sm font-bold text-black-teal' }, this.header))), hasContentSlot ? (h("slot", { name: 'content' })) : (this.content?.length && (h("p", { class: 'my-0 text-center text-sm text-black-teal-300' }, this.content))), this.enableAction &&
62
62
  (hasActionSlot ? (h("slot", { name: 'action' })) : (h("p-button", { class: 'mt-4', icon: this.actionIcon, loading: this.actionLoading, variant: this.actionVariant }, this.actionText)))));
63
63
  }
64
64
  static get is() { return "p-empty-state"; }
@@ -1,7 +1,7 @@
1
- import { h, Host, Fragment, } from "@stencil/core";
1
+ import { Fragment, h } from "@stencil/core";
2
+ import { cva } from "class-variance-authority";
2
3
  import { formatTranslation, getLocaleComponentStrings, } from "../../../../utils";
3
4
  import { asBoolean } from "../../../../utils/as-boolean";
4
- import { cva } from "class-variance-authority";
5
5
  const loader = cva(['rounded-lg w-full'], {
6
6
  variants: {
7
7
  variant: {
@@ -96,11 +96,11 @@ export class FieldContainer {
96
96
  }
97
97
  render() {
98
98
  const { hasHeaderSlot, hasErrorSlot, helper, label, errorAndErrorIsNotBoolean, } = this._getSlotInfo();
99
- let contentSlot = (h("slot", { key: 'bc37a25f940bc54f5774cfa3afe5856a9dd87232', name: 'content', slot: 'trigger' }));
99
+ let contentSlot = (h("slot", { key: 'bdbe235fbb6c90a1abe39de37b8a0276da402314', name: 'content', slot: 'trigger' }));
100
100
  if (this.loading) {
101
- contentSlot = (h("p-loader", { key: 'a2d7ddf9781f8c3c2969945927787725434bc490', variant: 'ghost', class: loader({ variant: this.variant, size: this.loadingSize }), slot: 'trigger' }));
101
+ contentSlot = (h("p-loader", { key: 'd2d0ec77dbbd09572f332131fa2b181025616880', variant: 'ghost', class: loader({ variant: this.variant, size: this.loadingSize }), slot: 'trigger' }));
102
102
  }
103
- return (h(Host, { key: '566be9c6f861fec7da15a99e5affaec31dbb2c13', class: 'p-field-container' }, h("label", { key: '21740dbf10d060c77e75d1c384bc86345cbd9678', htmlFor: this.id, class: 'flex w-inherit flex-col gap-1' }, h("div", { key: 'cf2cba4dede7316203f289d2394364c109421ba8', class: 'flex items-end justify-between gap-1 empty:hidden' }, !!label?.length && (h("div", { key: '6bcfa17b2fa671ae6162e706110196655fd2eca9', class: 'text-xs font-medium text-black-teal-300', onClick: () => this.focus.emit() }, label)), (!asBoolean(this.required) || helper || hasHeaderSlot) && (h("div", { key: '905d740eb5b7c87ee9173337a5357196c294e934', class: 'flex items-center gap-1' }, !asBoolean(this.required) && this.variant === 'write' && (h("span", { key: 'd08ca607090fc957d457f8d3f0d058959561f458', class: 'text-xs font-medium text-black-teal-200' }, this.optionalTemplate())), (helper || hasHeaderSlot) && (h(Fragment, { key: '60bdb02085812a20de05f5b65b52b83fa5adcb9d' }, hasHeaderSlot && h("slot", { key: '05d5245c341fba8c5ba8a85e7712601e34538080', name: 'header' }), helper && (h("p-helper", { key: 'f3ed26b542a647003ddbbb92c745e87506edff0a', class: `flex ${hasHeaderSlot ? 'ml-2' : ''}`, placement: 'top-end' }, helper))))))), h("p-tooltip", { key: 'bda69cca47670a3238ad75db7438c9bb01bd0b0d', class: this.variant === 'write' || this.loading ? 'w-full' : '', variant: 'error', content: this.error, show: errorAndErrorIsNotBoolean && asBoolean(this.forceShowTooltip), enableUserInput: false, placement: this.errorPlacement }, hasErrorSlot && (h("slot", { key: 'b7c9a4d61ee29a85b86b259ecfe6e53e46c78c4a', name: 'error', slot: 'content' })), contentSlot))));
103
+ return (h("label", { key: '3a741982c3a3803e27ee6e88fbb0fc40969d8d3b', htmlFor: this.id, class: 'flex w-inherit flex-col gap-1' }, h("div", { key: 'fbcf6774ee7f7258d9c6cad9fd906d1865248bc5', class: 'flex items-end justify-between gap-1 empty:hidden' }, !!label?.length && (h("div", { key: '80c694ae509da5bae222118d5da5caf3369fbb88', class: 'text-xs font-medium text-black-teal-300', onClick: () => this.focus.emit() }, label)), (!asBoolean(this.required) || helper || hasHeaderSlot) && (h("div", { key: 'ac389cbe3c590ea7b67b7215e43d3bbf2daac892', class: 'flex items-center gap-1' }, !asBoolean(this.required) && this.variant === 'write' && (h("span", { key: '0728e2ca201600fa0d843f6d7f5849bb4044f6b4', class: 'text-xs font-medium text-black-teal-200' }, this.optionalTemplate())), (helper || hasHeaderSlot) && (h(Fragment, { key: 'e504a81368982005204b1782b329cd59f836699f' }, hasHeaderSlot && h("slot", { key: '904f15fbc33bcab64ddc9e9b4d587898da22182b', name: 'header' }), helper && (h("p-helper", { key: '9ce12c4b9c534397e90e8566a2ef07ab8781b5e8', class: `flex ${hasHeaderSlot ? 'ml-2' : ''}`, placement: 'top-end' }, helper))))))), h("p-tooltip", { key: 'd5b6353bf29739da57bfb42569e44bfb5e1b2d1f', class: this.variant === 'write' || this.loading ? 'w-full' : '', variant: 'error', content: this.error, show: errorAndErrorIsNotBoolean && asBoolean(this.forceShowTooltip), enableUserInput: false, placement: this.errorPlacement }, hasErrorSlot && (h("slot", { key: '99e9c142a73ca1a5f09106cd8be77f0066b5c6a4', name: 'error', slot: 'content' })), contentSlot)));
104
104
  }
105
105
  async _setLocales() {
106
106
  this._locales = await getLocaleComponentStrings(this._el);
@@ -1 +1 @@
1
- {"version":3,"file":"field-container.component.js","sourceRoot":"","sources":["../../../../../src/components/molecules/field/container/field-container.component.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,SAAS,EACT,OAAO,EAEP,CAAC,EACD,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,MAAM,GACN,MAAM,eAAe,CAAC;AACvB,OAAO,EACN,iBAAiB,EACjB,yBAAyB,GACzB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,SAAS,EAAE,MAAM,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AC,CAAC;QAEzE,MAAM,MAAM,GAAG,aAAa,CAAC,CAAC,CAAC,YAAM,IAAI,EAAC,QAAQ,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;QACpE,MAAM,KAAK,GAAG,YAAY,CAAC,CAAC,CAAC,YAAM,IAAI,EAAC,OAAO,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC;QAEhE,MAAM,yBAAyB,GAC9B,YAAY;YACZ,CAAC,IAAI,CAAC,KAAK,IAAI,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,IAAI,IAAI,CAAC,KAAK,KAAK,MAAM,CAAC,CAAC;QAEzE,OAAO;YACN,aAAa;YACb,YAAY;YACZ,aAAa;YACb,YAAY;YACZ,MAAM;YACN,KAAK;YACL,yBAAyB;SACzB,CAAC;IACH,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {\n\tComponent,\n\tElement,\n\tEventEmitter,\n\th,\n\tHost,\n\tEvent,\n\tProp,\n\tFragment,\n\tState,\n\tListen,\n} from '@stencil/core';\nimport {\n\tformatTranslation,\n\tgetLocaleComponentStrings,\n} from '../../../../utils';\nimport { Placement } from '@floating-ui/dom';\nimport { asBoolean } from '../../../../utils/as-boolean';\nimport { cva } from 'class-variance-authority';\n\nconst loader = cva(['rounded-lg w-full'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tread: null,\n\t\t\twrite: null,\n\t\t},\n\t\tsize: {\n\t\t\tbase: null,\n\t\t\tsm: null,\n\t\t},\n\t},\n\tcompoundVariants: [\n\t\t{\n\t\t\tvariant: 'read',\n\t\t\tsize: 'base',\n\t\t\tclass: 'h-5',\n\t\t},\n\t\t{\n\t\t\tvariant: 'read',\n\t\t\tsize: 'sm',\n\t\t\tclass: 'h-4',\n\t\t},\n\n\t\t{\n\t\t\tvariant: 'write',\n\t\t\tsize: 'base',\n\t\t\tclass: 'h-8',\n\t\t},\n\t\t{\n\t\t\tvariant: 'write',\n\t\t\tsize: 'sm',\n\t\t\tclass: 'h-6',\n\t\t},\n\t],\n});\n\nexport type templateFunc = () => string;\n\n@Component({\n\ttag: 'p-field-container',\n\tstyleUrl: 'field-container.component.css',\n\tshadow: true,\n})\nexport class FieldContainer {\n\tprivate _defaultOptionalTemplate: templateFunc = () =>\n\t\tformatTranslation(this._locales.optional);\n\t/**\n\t * The id for the label\n\t */\n\t@Prop() id: string;\n\n\t/**\n\t * The label of the input group\n\t */\n\t@Prop() label: string | HTMLSlotElement;\n\n\t/**\n\t * Wether the field container is in loading state\n\t */\n\t@Prop() loading: boolean = false;\n\n\t/**\n\t * The size of the loader\n\t */\n\t@Prop() loadingSize: 'base' | 'sm' = 'base';\n\n\t/**\n\t * The variant of the field container\n\t */\n\t@Prop() variant: 'read' | 'write';\n\n\t/**\n\t * The helper of the input group\n\t */\n\t@Prop() helper: string | HTMLSlotElement;\n\n\t/**\n\t * Wether the field is required\n\t */\n\t@Prop({ reflect: true }) required: boolean;\n\n\t/**\n\t * The helper of the input group\n\t */\n\t@Prop({ reflect: true }) error: string | HTMLSlotElement;\n\n\t/**\n\t * The placement of the error popover\n\t */\n\t@Prop() errorPlacement: Placement;\n\n\t/**\n\t * Force show the error tooltip\n\t */\n\t@Prop({ reflect: true }) forceShowTooltip: boolean = false;\n\n\t/**\n\t * The template for the optional text\n\t */\n\t@Prop() optionalTemplate: templateFunc = this._defaultOptionalTemplate;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t@Event() focus: EventEmitter<void>;\n\n\t/**\n\t * Locales used for this component\n\t */\n\t@State() private _locales: any = {};\n\n\tcomponentWillLoad() {\n\t\tthis._setLocales();\n\t}\n\n\trender() {\n\t\tconst {\n\t\t\thasHeaderSlot,\n\t\t\thasErrorSlot,\n\t\t\thelper,\n\t\t\tlabel,\n\t\t\terrorAndErrorIsNotBoolean,\n\t\t} = this._getSlotInfo();\n\n\t\tlet contentSlot = (\n\t\t\t<slot\n\t\t\t\tname='content'\n\t\t\t\tslot='trigger'\n\t\t\t/>\n\t\t);\n\n\t\tif (this.loading) {\n\t\t\tcontentSlot = (\n\t\t\t\t<p-loader\n\t\t\t\t\tvariant='ghost'\n\t\t\t\t\tclass={loader({ variant: this.variant, size: this.loadingSize })}\n\t\t\t\t\tslot='trigger'\n\t\t\t\t/>\n\t\t\t);\n\t\t}\n\n\t\treturn (\n\t\t\t<Host class='p-field-container'>\n\t\t\t\t<label\n\t\t\t\t\thtmlFor={this.id}\n\t\t\t\t\tclass='flex w-inherit flex-col gap-1'\n\t\t\t\t>\n\t\t\t\t\t<div class='flex items-end justify-between gap-1 empty:hidden'>\n\t\t\t\t\t\t{!!label?.length && (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclass='text-xs font-medium text-black-teal-300'\n\t\t\t\t\t\t\t\tonClick={() => this.focus.emit()}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{label}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t{(!asBoolean(this.required) || helper || hasHeaderSlot) && (\n\t\t\t\t\t\t\t<div class='flex items-center gap-1'>\n\t\t\t\t\t\t\t\t{!asBoolean(this.required) && this.variant === 'write' && (\n\t\t\t\t\t\t\t\t\t<span class='text-xs font-medium text-black-teal-200'>\n\t\t\t\t\t\t\t\t\t\t{this.optionalTemplate()}\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t\t\t{(helper || hasHeaderSlot) && (\n\t\t\t\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t\t\t\t{hasHeaderSlot && <slot name='header' />}\n\t\t\t\t\t\t\t\t\t\t{helper && (\n\t\t\t\t\t\t\t\t\t\t\t<p-helper\n\t\t\t\t\t\t\t\t\t\t\t\tclass={`flex ${hasHeaderSlot ? 'ml-2' : ''}`}\n\t\t\t\t\t\t\t\t\t\t\t\tplacement='top-end'\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t{helper}\n\t\t\t\t\t\t\t\t\t\t\t</p-helper>\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t</Fragment>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<p-tooltip\n\t\t\t\t\t\tclass={this.variant === 'write' || this.loading ? 'w-full' : ''}\n\t\t\t\t\t\tvariant='error'\n\t\t\t\t\t\tcontent={this.error}\n\t\t\t\t\t\tshow={errorAndErrorIsNotBoolean && asBoolean(this.forceShowTooltip)}\n\t\t\t\t\t\tenableUserInput={false}\n\t\t\t\t\t\tplacement={this.errorPlacement}\n\t\t\t\t\t>\n\t\t\t\t\t\t{hasErrorSlot && (\n\t\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\t\tname='error'\n\t\t\t\t\t\t\t\tslot='content'\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t{contentSlot}\n\t\t\t\t\t</p-tooltip>\n\t\t\t\t</label>\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 _getSlotInfo() {\n\t\tconst hasHelperSlot = !!this._el.querySelector(':scope > [slot=\"helper\"]');\n\t\tconst hasLabelSlot = !!this._el.querySelector(':scope > [slot=\"label\"]');\n\t\tconst hasHeaderSlot = !!this._el.querySelector(':scope > [slot=\"header\"]');\n\t\tconst hasErrorSlot = !!this._el.querySelector(':scope > [slot=\"error\"]');\n\n\t\tconst helper = hasHelperSlot ? <slot name='helper' /> : this.helper;\n\t\tconst label = hasLabelSlot ? <slot name='label' /> : this.label;\n\n\t\tconst errorAndErrorIsNotBoolean =\n\t\t\thasErrorSlot ||\n\t\t\t(this.error && typeof this.error === 'string' && this.error !== 'true');\n\n\t\treturn {\n\t\t\thasHelperSlot,\n\t\t\thasLabelSlot,\n\t\t\thasHeaderSlot,\n\t\t\thasErrorSlot,\n\t\t\thelper,\n\t\t\tlabel,\n\t\t\terrorAndErrorIsNotBoolean,\n\t\t};\n\t}\n}\n"]}
1
+ {"version":3,"file":"field-container.component.js","sourceRoot":"","sources":["../../../../../src/components/molecules/field/container/field-container.component.tsx"],"names":[],"mappings":"AACA,OAAO,EACH,SAAS,EACT,OAAO,EACP,KAAK,EAEL,QAAQ,EACR,CAAC,EACD,MAAM,EACN,IAAI,EACJ,KAAK,EACR,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,EACH,iBAAiB,EACjB,yBAAyB,GAC5B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAEzD,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,mBAAmB,CAAC,EAAE;IACzC,QAAQ,EAAE;QACT,OAAO,EAAE;YACR,IAAI,EAAE,IAAI;YACV,KAAK,EAAE,IAAI;SACX;QACD,IAAI,EAAE;YACL,IAAI,EAAE,IAAI;YACV,EAAE,EAAE,IAAI;SACR;KACD;IACD,gBAAgB,EAAE;QACjB;YACC,OAAO,EAAE,MAAM;YACf,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,KAAK;SACZ;QACD;YACC,OAAO,EAAE,MAAM;YACf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AAM;YACN,KAAK;YACL,yBAAyB;SACzB,CAAC;IACH,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Placement } from '@floating-ui/dom';\nimport {\n Component,\n Element,\n Event,\n EventEmitter,\n Fragment,\n h,\n Listen,\n Prop,\n State\n} from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport {\n formatTranslation,\n getLocaleComponentStrings,\n} from '../../../../utils';\nimport { asBoolean } from '../../../../utils/as-boolean';\n\nconst loader = cva(['rounded-lg w-full'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tread: null,\n\t\t\twrite: null,\n\t\t},\n\t\tsize: {\n\t\t\tbase: null,\n\t\t\tsm: null,\n\t\t},\n\t},\n\tcompoundVariants: [\n\t\t{\n\t\t\tvariant: 'read',\n\t\t\tsize: 'base',\n\t\t\tclass: 'h-5',\n\t\t},\n\t\t{\n\t\t\tvariant: 'read',\n\t\t\tsize: 'sm',\n\t\t\tclass: 'h-4',\n\t\t},\n\n\t\t{\n\t\t\tvariant: 'write',\n\t\t\tsize: 'base',\n\t\t\tclass: 'h-8',\n\t\t},\n\t\t{\n\t\t\tvariant: 'write',\n\t\t\tsize: 'sm',\n\t\t\tclass: 'h-6',\n\t\t},\n\t],\n});\n\nexport type templateFunc = () => string;\n\n@Component({\n\ttag: 'p-field-container',\n\tstyleUrl: 'field-container.component.css',\n\tshadow: true,\n})\nexport class FieldContainer {\n\tprivate _defaultOptionalTemplate: templateFunc = () =>\n\t\tformatTranslation(this._locales.optional);\n\t/**\n\t * The id for the label\n\t */\n\t@Prop() id: string;\n\n\t/**\n\t * The label of the input group\n\t */\n\t@Prop() label: string | HTMLSlotElement;\n\n\t/**\n\t * Wether the field container is in loading state\n\t */\n\t@Prop() loading: boolean = false;\n\n\t/**\n\t * The size of the loader\n\t */\n\t@Prop() loadingSize: 'base' | 'sm' = 'base';\n\n\t/**\n\t * The variant of the field container\n\t */\n\t@Prop() variant: 'read' | 'write';\n\n\t/**\n\t * The helper of the input group\n\t */\n\t@Prop() helper: string | HTMLSlotElement;\n\n\t/**\n\t * Wether the field is required\n\t */\n\t@Prop({ reflect: true }) required: boolean;\n\n\t/**\n\t * The helper of the input group\n\t */\n\t@Prop({ reflect: true }) error: string | HTMLSlotElement;\n\n\t/**\n\t * The placement of the error popover\n\t */\n\t@Prop() errorPlacement: Placement;\n\n\t/**\n\t * Force show the error tooltip\n\t */\n\t@Prop({ reflect: true }) forceShowTooltip: boolean = false;\n\n\t/**\n\t * The template for the optional text\n\t */\n\t@Prop() optionalTemplate: templateFunc = this._defaultOptionalTemplate;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t@Event() focus: EventEmitter<void>;\n\n\t/**\n\t * Locales used for this component\n\t */\n\t@State() private _locales: any = {};\n\n\tcomponentWillLoad() {\n\t\tthis._setLocales();\n\t}\n\n\trender() {\n\t\tconst {\n\t\t\thasHeaderSlot,\n\t\t\thasErrorSlot,\n\t\t\thelper,\n\t\t\tlabel,\n\t\t\terrorAndErrorIsNotBoolean,\n\t\t} = this._getSlotInfo();\n\n\t\tlet contentSlot = (\n\t\t\t<slot\n\t\t\t\tname='content'\n\t\t\t\tslot='trigger'\n\t\t\t/>\n\t\t);\n\n\t\tif (this.loading) {\n\t\t\tcontentSlot = (\n\t\t\t\t<p-loader\n\t\t\t\t\tvariant='ghost'\n\t\t\t\t\tclass={loader({ variant: this.variant, size: this.loadingSize })}\n\t\t\t\t\tslot='trigger'\n\t\t\t\t/>\n\t\t\t);\n\t\t}\n\n\t\treturn (\n\t\t\t<label\n\t\t\t\thtmlFor={this.id}\n\t\t\t\tclass='flex w-inherit flex-col gap-1'\n\t\t\t>\n\t\t\t\t<div class='flex items-end justify-between gap-1 empty:hidden'>\n\t\t\t\t\t{!!label?.length && (\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclass='text-xs font-medium text-black-teal-300'\n\t\t\t\t\t\t\tonClick={() => this.focus.emit()}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{label}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{(!asBoolean(this.required) || helper || hasHeaderSlot) && (\n\t\t\t\t\t\t<div class='flex items-center gap-1'>\n\t\t\t\t\t\t\t{!asBoolean(this.required) && this.variant === 'write' && (\n\t\t\t\t\t\t\t\t<span class='text-xs font-medium text-black-teal-200'>\n\t\t\t\t\t\t\t\t\t{this.optionalTemplate()}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t\t{(helper || hasHeaderSlot) && (\n\t\t\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t\t\t{hasHeaderSlot && <slot name='header' />}\n\t\t\t\t\t\t\t\t\t{helper && (\n\t\t\t\t\t\t\t\t\t\t<p-helper\n\t\t\t\t\t\t\t\t\t\t\tclass={`flex ${hasHeaderSlot ? 'ml-2' : ''}`}\n\t\t\t\t\t\t\t\t\t\t\tplacement='top-end'\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t{helper}\n\t\t\t\t\t\t\t\t\t\t</p-helper>\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t</Fragment>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\n\t\t\t\t<p-tooltip\n\t\t\t\t\tclass={this.variant === 'write' || this.loading ? 'w-full' : ''}\n\t\t\t\t\tvariant='error'\n\t\t\t\t\tcontent={this.error}\n\t\t\t\t\tshow={errorAndErrorIsNotBoolean && asBoolean(this.forceShowTooltip)}\n\t\t\t\t\tenableUserInput={false}\n\t\t\t\t\tplacement={this.errorPlacement}\n\t\t\t\t>\n\t\t\t\t\t{hasErrorSlot && (\n\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\tname='error'\n\t\t\t\t\t\t\tslot='content'\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{contentSlot}\n\t\t\t\t</p-tooltip>\n\t\t\t</label>\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 _getSlotInfo() {\n\t\tconst hasHelperSlot = !!this._el.querySelector(':scope > [slot=\"helper\"]');\n\t\tconst hasLabelSlot = !!this._el.querySelector(':scope > [slot=\"label\"]');\n\t\tconst hasHeaderSlot = !!this._el.querySelector(':scope > [slot=\"header\"]');\n\t\tconst hasErrorSlot = !!this._el.querySelector(':scope > [slot=\"error\"]');\n\n\t\tconst helper = hasHelperSlot ? <slot name='helper' /> : this.helper;\n\t\tconst label = hasLabelSlot ? <slot name='label' /> : this.label;\n\n\t\tconst errorAndErrorIsNotBoolean =\n\t\t\thasErrorSlot ||\n\t\t\t(this.error && typeof this.error === 'string' && this.error !== 'true');\n\n\t\treturn {\n\t\t\thasHelperSlot,\n\t\t\thasLabelSlot,\n\t\t\thasHeaderSlot,\n\t\t\thasErrorSlot,\n\t\t\thelper,\n\t\t\tlabel,\n\t\t\terrorAndErrorIsNotBoolean,\n\t\t};\n\t}\n}\n"]}
@@ -1 +1 @@
1
- *{box-sizing:border-box}.static{position:static!important}.mt-\[0\.125rem\]{margin-top:.125rem!important}.flex{display:flex!important}.h-6{height:1.5rem!important}.h-8{height:2rem!important}.h-full{height:100%!important}.min-h-4{min-height:1rem!important}.min-h-5{min-height:1.25rem!important}.w-inherit{width:inherit!important}.min-w-0{min-width:0!important}.flex-1{flex:1 1 0%!important}.flex-shrink-0{flex-shrink:0!important}.cursor-not-allowed{cursor:not-allowed!important}.items-start{align-items:flex-start!important}.items-center{align-items:center!important}.justify-center{justify-content:center!important}.gap-2{gap:.5rem!important}.rounded-lg{border-radius:.5rem!important}.border{border-width:1px!important}.border-0{border-width:0!important}.border-solid{border-style:solid!important}.border-none{border-style:none!important}.border-black-teal-100{--tw-border-opacity:1!important;border-color:rgb(205 212 211/var(--tw-border-opacity,1))!important}.border-negative-red{--tw-border-opacity:1!important;border-color:rgb(230 30 30/var(--tw-border-opacity,1))!important}.border-supportive-lilac-800{--tw-border-opacity:1!important;border-color:rgb(189 140 255/var(--tw-border-opacity,1))!important}.bg-transparent{background-color:transparent!important}.bg-white{background-color:rgb(255 255 255/var(--tw-bg-opacity,1))!important}.bg-white,.bg-white-600{--tw-bg-opacity:1!important}.bg-white-600{background-color:rgb(250 250 250/var(--tw-bg-opacity,1))!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.text-center{text-align:center!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.text-black-teal{--tw-text-opacity:1!important;color:rgb(3 42 36/var(--tw-text-opacity,1))!important}.text-black-teal-100{--tw-text-opacity:1!important;color:rgb(205 212 211/var(--tw-text-opacity,1))!important}.text-black-teal-300{--tw-text-opacity:1!important;color:rgb(104 127 124/var(--tw-text-opacity,1))!important}.text-black-teal-500{--tw-text-opacity:1!important;color:rgb(3 42 36/var(--tw-text-opacity,1))!important}.text-negative-red{--tw-text-opacity:1!important;color:rgb(230 30 30/var(--tw-text-opacity,1))!important}.text-negative-red-800{--tw-text-opacity:1!important;color:rgb(141 16 16/var(--tw-text-opacity,1))!important}.outline-none{outline:2px solid transparent!important;outline-offset:2px!important}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.ring-negative-red-50{--tw-ring-opacity:1!important;--tw-ring-color:rgb(253 237 237/var(--tw-ring-opacity,1))!important}.ring-supportive-lilac-100{--tw-ring-opacity:1!important;--tw-ring-color:rgb(246 239 255/var(--tw-ring-opacity,1))!important}.selection\:bg-negative-red-50 ::selection{--tw-bg-opacity:1!important;background-color:rgb(253 237 237/var(--tw-bg-opacity,1))!important}.selection\:bg-supportive-lilac ::selection{--tw-bg-opacity:1!important;background-color:rgb(209 174 255/var(--tw-bg-opacity,1))!important}.selection\:bg-negative-red-50::selection{--tw-bg-opacity:1!important;background-color:rgb(253 237 237/var(--tw-bg-opacity,1))!important}.selection\:bg-supportive-lilac::selection{--tw-bg-opacity:1!important;background-color:rgb(209 174 255/var(--tw-bg-opacity,1))!important}.placeholder\:text-sm::placeholder{font-size:.875rem!important;line-height:1.25rem!important}.placeholder\:text-black-teal-200::placeholder{--tw-text-opacity:1!important;color:rgb(154 170 167/var(--tw-text-opacity,1))!important}.focus\:outline-none:focus{outline:2px solid transparent!important;outline-offset:2px!important}
1
+ *{box-sizing:border-box}.static{position:static!important}.mt-1{margin-top:.25rem!important}.mt-2{margin-top:.5rem!important}.mt-\[0\.125rem\]{margin-top:.125rem!important}.flex{display:flex!important}.h-6{height:1.5rem!important}.h-8{height:2rem!important}.h-full{height:100%!important}.min-h-4{min-height:1rem!important}.min-h-5{min-height:1.25rem!important}.w-inherit{width:inherit!important}.min-w-0{min-width:0!important}.flex-1{flex:1 1 0%!important}.flex-shrink-0{flex-shrink:0!important}.cursor-not-allowed{cursor:not-allowed!important}.items-start{align-items:flex-start!important}.items-center{align-items:center!important}.justify-center{justify-content:center!important}.gap-2{gap:.5rem!important}.rounded-lg{border-radius:.5rem!important}.border{border-width:1px!important}.border-0{border-width:0!important}.border-solid{border-style:solid!important}.border-none{border-style:none!important}.border-black-teal-100{--tw-border-opacity:1!important;border-color:rgb(205 212 211/var(--tw-border-opacity,1))!important}.border-negative-red{--tw-border-opacity:1!important;border-color:rgb(230 30 30/var(--tw-border-opacity,1))!important}.border-supportive-lilac-800{--tw-border-opacity:1!important;border-color:rgb(189 140 255/var(--tw-border-opacity,1))!important}.bg-transparent{background-color:transparent!important}.bg-white{background-color:rgb(255 255 255/var(--tw-bg-opacity,1))!important}.bg-white,.bg-white-600{--tw-bg-opacity:1!important}.bg-white-600{background-color:rgb(250 250 250/var(--tw-bg-opacity,1))!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.text-center{text-align:center!important}.font-geist{font-family:Geist,serif!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.text-black-teal{--tw-text-opacity:1!important;color:rgb(3 42 36/var(--tw-text-opacity,1))!important}.text-black-teal-100{--tw-text-opacity:1!important;color:rgb(205 212 211/var(--tw-text-opacity,1))!important}.text-black-teal-300{--tw-text-opacity:1!important;color:rgb(104 127 124/var(--tw-text-opacity,1))!important}.text-black-teal-500{--tw-text-opacity:1!important;color:rgb(3 42 36/var(--tw-text-opacity,1))!important}.text-negative-red{--tw-text-opacity:1!important;color:rgb(230 30 30/var(--tw-text-opacity,1))!important}.text-negative-red-800{--tw-text-opacity:1!important;color:rgb(141 16 16/var(--tw-text-opacity,1))!important}.outline-none{outline:2px solid transparent!important;outline-offset:2px!important}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.ring-negative-red-50{--tw-ring-opacity:1!important;--tw-ring-color:rgb(253 237 237/var(--tw-ring-opacity,1))!important}.ring-supportive-lilac-100{--tw-ring-opacity:1!important;--tw-ring-color:rgb(246 239 255/var(--tw-ring-opacity,1))!important}.selection\:bg-negative-red-50 ::selection{--tw-bg-opacity:1!important;background-color:rgb(253 237 237/var(--tw-bg-opacity,1))!important}.selection\:bg-supportive-lilac ::selection{--tw-bg-opacity:1!important;background-color:rgb(209 174 255/var(--tw-bg-opacity,1))!important}.selection\:bg-negative-red-50::selection{--tw-bg-opacity:1!important;background-color:rgb(253 237 237/var(--tw-bg-opacity,1))!important}.selection\:bg-supportive-lilac::selection{--tw-bg-opacity:1!important;background-color:rgb(209 174 255/var(--tw-bg-opacity,1))!important}.placeholder\:text-sm::placeholder{font-size:.875rem!important;line-height:1.25rem!important}.placeholder\:text-black-teal-200::placeholder{--tw-text-opacity:1!important;color:rgb(154 170 167/var(--tw-text-opacity,1))!important}.focus\:outline-none:focus{outline:2px solid transparent!important;outline-offset:2px!important}
@@ -1,7 +1,7 @@
1
- import { h, Host, } from "@stencil/core";
1
+ import { h } from "@stencil/core";
2
2
  import { cva } from "class-variance-authority";
3
- import { cn } from "../../../../utils/cn";
4
3
  import { asBoolean } from "../../../../utils/as-boolean";
4
+ import { cn } from "../../../../utils/cn";
5
5
  import { nonce } from "../../../../utils/nonce";
6
6
  const field = cva(['flex gap-2', 'w-inherit', 'border-solid rounded-lg'], {
7
7
  variants: {
@@ -14,8 +14,8 @@ const field = cva(['flex gap-2', 'w-inherit', 'border-solid rounded-lg'], {
14
14
  base: null,
15
15
  },
16
16
  disabled: {
17
- false: 'bg-white',
18
- true: 'bg-white-600 cursor-not-allowed',
17
+ false: null,
18
+ true: null,
19
19
  },
20
20
  focused: {
21
21
  false: null,
@@ -27,7 +27,7 @@ const field = cva(['flex gap-2', 'w-inherit', 'border-solid rounded-lg'], {
27
27
  },
28
28
  isTextarea: {
29
29
  false: null,
30
- true: null,
30
+ true: 'items-start',
31
31
  },
32
32
  },
33
33
  compoundVariants: [
@@ -66,6 +66,16 @@ const field = cva(['flex gap-2', 'w-inherit', 'border-solid rounded-lg'], {
66
66
  error: false,
67
67
  class: 'border-supportive-lilac-800 ring ring-supportive-lilac-100 selection:bg-supportive-lilac',
68
68
  },
69
+ {
70
+ variant: 'write',
71
+ disabled: false,
72
+ class: 'bg-white'
73
+ },
74
+ {
75
+ variant: 'write',
76
+ disabled: true,
77
+ class: 'bg-white-600 cursor-not-allowed'
78
+ },
69
79
  {
70
80
  disabled: false,
71
81
  error: true,
@@ -79,11 +89,16 @@ const field = cva(['flex gap-2', 'w-inherit', 'border-solid rounded-lg'], {
79
89
  },
80
90
  ],
81
91
  });
82
- const input = cva('text-sm placeholder:text-sm placeholder:text-black-teal-200 text-black-teal border-none outline-none focus:outline-none bg-transparent flex-1 min-w-0', {
92
+ const input = cva([
93
+ 'text-sm placeholder:text-sm placeholder:text-black-teal-200 text-black-teal',
94
+ 'border-none bg-transparent flex-1 min-w-0',
95
+ 'outline-none focus:outline-none',
96
+ 'font-geist'
97
+ ], {
83
98
  variants: {
84
99
  isTextarea: {
85
100
  false: 'h-full',
86
- true: null,
101
+ true: 'mt-1',
87
102
  },
88
103
  disabled: {
89
104
  false: null,
@@ -109,6 +124,10 @@ const prefixAndSuffix = cva(['flex flex-shrink-0 justify-center items-center tex
109
124
  false: null,
110
125
  true: 'text-sm',
111
126
  },
127
+ isTextarea: {
128
+ false: null,
129
+ true: 'mt-2',
130
+ },
112
131
  },
113
132
  compoundVariants: [
114
133
  {
@@ -272,26 +291,28 @@ export class Field {
272
291
  }
273
292
  render() {
274
293
  const { id, prefix, suffix, hasHeaderSlot, hasLabelSlot, hasHelperSlot, hasErrorSlot, hasValueSlot, } = this._getSlotInfo();
275
- return (h(Host, { key: 'bba3b79d9f8879655e64aa0d5cdd27dfd0072db0', class: 'p-field' }, h("p-field-container", { key: 'ab309b2165c2675dd35b7de24fed7dd0b78b3659', forceShowTooltip: this.forceShowTooltip || this._focused, id: id, label: this.label, loading: this.loading, loadingSize: this.size, helper: this.helper, error: this.error, required: this.required, variant: this.variant }, hasLabelSlot && (h("slot", { key: '7db5148cc771af5cc4ec0e35497d3b7b877c5036', name: 'label', slot: 'label' })), hasHeaderSlot && (h("slot", { key: 'db118e699dab37a94c74f7dce5a02416964c7bc3', name: 'header', slot: 'header' })), hasHelperSlot && (h("slot", { key: '2ab48fc81d2b091ece7969a7bfb0bc7a61d54878', name: 'helper', slot: 'helper' })), hasErrorSlot && (h("slot", { key: 'f608b80c9ddc251d3deb1909996dfa61b4d5e3b5', name: 'error', slot: 'error' })), h("div", { key: 'c49036d0dc55eacf43d8ef8c58188bb3b88a6abe', class: field({
294
+ return (h("p-field-container", { key: '3a9bb5df0271e63bac0043bcf821203aed741e83', forceShowTooltip: this.forceShowTooltip || this._focused, id: id, label: this.label, loading: this.loading, loadingSize: this.size, helper: this.helper, error: this.error, required: this.required, variant: this.variant }, hasLabelSlot && (h("slot", { key: '1dc261303e97637ce1d25d2c70a702c9635e7926', name: 'label', slot: 'label' })), hasHeaderSlot && (h("slot", { key: 'd2befd0055da55defc20b9ba66d3dca560d8e70f', name: 'header', slot: 'header' })), hasHelperSlot && (h("slot", { key: '4e96fe040c5483b535d943c368dc7e4214013f8c', name: 'helper', slot: 'helper' })), hasErrorSlot && (h("slot", { key: '97eee1faebc51c7fe3f4140879407785ab6f1ee2', name: 'error', slot: 'error' })), h("div", { key: '5669b02570bad759ddf5b0da4d05878a61c02efc', class: field({
276
295
  error: !!this.error?.length,
277
296
  disabled: asBoolean(this.disabled),
278
297
  focused: asBoolean(this.focused) || this._focused,
279
298
  size: this.size,
280
299
  variant: this.variant,
281
300
  isTextarea: this.type === 'textarea',
282
- }), title: this.variant === 'read' && !hasValueSlot ? this.value : undefined, slot: 'content' }, (prefix || (this.icon && this.iconPosition === 'start')) && (h("div", { key: 'b9d04f97d9117916dc4a32fe2ef9efebeafdd55c', class: prefixAndSuffix({
301
+ }), title: this.variant === 'read' && !hasValueSlot ? this.value : undefined, slot: 'content' }, (this.error?.length || prefix || (this.icon && this.iconPosition === 'start')) && (h("div", { key: 'e757225c592b034f85b296919e4effa5ba838c03', class: prefixAndSuffix({
283
302
  error: !!this.error?.length,
284
303
  disabled: asBoolean(this.disabled),
285
304
  focused: asBoolean(this.focused) || this._focused,
286
305
  isText: typeof suffix === 'string',
287
- }), onClick: () => this._focusInput() }, this.icon && this.iconPosition === 'start' ? (h("p-icon", { class: cn('flex', {
306
+ isTextarea: this.type === 'textarea',
307
+ }), onClick: () => this._focusInput() }, (this.icon && this.iconPosition === 'start') || this.error?.length ? (h("p-icon", { class: cn('flex', {
288
308
  'mt-[0.125rem]': this.variant === 'read' && this.size === 'base',
289
- }), variant: this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (prefix))), this._getContent(hasValueSlot, id), (suffix || (this.icon && this.iconPosition === 'end')) && (h("div", { key: 'fcb147d7effb432e7b1319d754aa4a651ca5ed0c', class: prefixAndSuffix({
309
+ }), variant: this.error?.length ? 'warning' : this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (prefix))), this._getContent(hasValueSlot, id), (suffix || (this.icon && this.iconPosition === 'end')) && (h("div", { key: '52f0f31d5bc353e40b7a1d3db2f39c6e4c340fb9', class: prefixAndSuffix({
290
310
  error: !!this.error?.length,
291
311
  disabled: asBoolean(this.disabled),
292
312
  focused: asBoolean(this.focused) || this._focused,
293
313
  isText: typeof suffix === 'string',
294
- }), onClick: () => this._focusInput() }, this.icon && this.iconPosition === 'end' ? (h("p-icon", { class: 'flex', variant: this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (suffix)))))));
314
+ isTextarea: this.type === 'textarea',
315
+ }), onClick: () => this._focusInput() }, this.icon && this.iconPosition === 'end' ? (h("p-icon", { class: 'flex', variant: this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (suffix))))));
295
316
  }
296
317
  handleFocusIn() {
297
318
  if (this.disabled) {
@@ -330,7 +351,7 @@ export class Field {
330
351
  const prefix = hasPrefixSlot ? h("slot", { name: 'prefix' }) : this.prefix;
331
352
  const suffix = hasSuffixSlot ? h("slot", { name: 'suffix' }) : this.suffix;
332
353
  const errorAndErrorIsNotBoolean = this.error && typeof this.error === 'string' && this.error !== 'true';
333
- const id = this.id?.length ? `${this.id}-${this._nonce}` : this._nonce;
354
+ const id = this.id?.length ? this.id : this._nonce;
334
355
  return {
335
356
  id,
336
357
  hasHelperSlot,