@paperless/core 2.0.1-beta.22 → 2.0.1-beta.24

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 (351) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/build/{p-0b883fbb.entry.js → p-0669c7e2.entry.js} +2 -2
  3. package/dist/build/{p-c2825667.entry.js → p-0a1cf938.entry.js} +2 -2
  4. package/dist/{paperless/p-f6fcedff.entry.js → build/p-129d5cbd.entry.js} +2 -2
  5. package/dist/build/{p-020a97e3.entry.js → p-20ea5e27.entry.js} +2 -2
  6. package/dist/build/p-20ea5e27.entry.js.map +1 -0
  7. package/dist/{paperless/p-af175b74.entry.js → build/p-250b3f90.entry.js} +2 -2
  8. package/dist/build/p-2f613a2a.entry.js +2 -0
  9. package/dist/build/{p-c18827fc.entry.js → p-2f821184.entry.js} +2 -2
  10. package/dist/build/p-3b276ae0.entry.js +2 -0
  11. package/dist/build/p-3b276ae0.entry.js.map +1 -0
  12. package/dist/build/p-3ffe9aca.js +2 -0
  13. package/dist/build/{p-fe5637cc.entry.js → p-401ff01b.entry.js} +2 -2
  14. package/dist/build/{p-1fdda214.entry.js → p-479bdcc8.entry.js} +2 -2
  15. package/dist/{paperless/p-70d427af.entry.js → build/p-4a642ff9.entry.js} +2 -2
  16. package/dist/build/{p-c1142e26.entry.js → p-4cb8f3db.entry.js} +2 -2
  17. package/dist/build/{p-412a9f4d.entry.js → p-4e31af7e.entry.js} +2 -2
  18. package/dist/build/{p-3fdd326e.entry.js → p-57fc0eb5.entry.js} +2 -2
  19. package/dist/build/{p-6bcae357.entry.js → p-68ae68c8.entry.js} +2 -2
  20. package/dist/{paperless/p-b708b7e3.entry.js → build/p-6f3a4499.entry.js} +2 -2
  21. package/dist/build/{p-7f3cad06.entry.js → p-716a92ae.entry.js} +2 -2
  22. package/dist/build/{p-b2b69ce0.entry.js → p-83055eac.entry.js} +2 -2
  23. package/dist/{paperless/p-e9008b5f.entry.js → build/p-868d5746.entry.js} +2 -2
  24. package/dist/build/p-8a8663ae.entry.js +2 -0
  25. package/dist/build/p-8a8663ae.entry.js.map +1 -0
  26. package/dist/{paperless/p-8c094336.entry.js → build/p-8b1a485b.entry.js} +2 -2
  27. package/dist/build/{p-99688230.entry.js → p-955d149f.entry.js} +2 -2
  28. package/dist/{paperless/p-6cf35b72.entry.js → build/p-9a9c8ce9.entry.js} +2 -2
  29. package/dist/{paperless/p-a80dc54a.entry.js → build/p-b26d5130.entry.js} +2 -2
  30. package/dist/build/p-cb8ecae7.entry.js +2 -0
  31. package/dist/build/p-cb8ecae7.entry.js.map +1 -0
  32. package/dist/build/{p-9f790bea.entry.js → p-ccbd2de0.entry.js} +2 -2
  33. package/dist/build/{p-881a012e.entry.js → p-d31d6714.entry.js} +2 -2
  34. package/dist/build/p-dbbf732c.entry.js +2 -0
  35. package/dist/build/p-dbbf732c.entry.js.map +1 -0
  36. package/dist/build/{p-eb6d1fed.entry.js → p-dc01bfa8.entry.js} +2 -2
  37. package/dist/build/{p-11c446d6.entry.js → p-e3b04c17.entry.js} +2 -2
  38. package/dist/build/p-e5a54d05.entry.js +2 -0
  39. package/dist/build/p-e5a54d05.entry.js.map +1 -0
  40. package/dist/{paperless/p-109a8a56.entry.js → build/p-f56de35e.entry.js} +2 -2
  41. package/dist/build/p-fc9cfbd1.entry.js +2 -0
  42. package/dist/build/{p-955283d1.entry.js → p-fde8b75b.entry.js} +2 -2
  43. package/dist/build/paperless.esm.js +1 -1
  44. package/dist/build/paperless.esm.js.map +1 -1
  45. package/dist/cjs/index-3f9bbc0c.js +16 -8
  46. package/dist/cjs/loader.cjs.js +1 -1
  47. package/dist/cjs/p-accordion.cjs.entry.js +1 -1
  48. package/dist/cjs/p-attachment.cjs.entry.js +4 -4
  49. package/dist/cjs/p-badge_3.cjs.entry.js +26 -16
  50. package/dist/cjs/p-badge_3.cjs.entry.js.map +1 -1
  51. package/dist/cjs/p-button-group.cjs.entry.js +1 -1
  52. package/dist/cjs/p-button_3.cjs.entry.js +4 -4
  53. package/dist/cjs/p-calendar.cjs.entry.js +1 -1
  54. package/dist/cjs/p-checkbox_3.cjs.entry.js +3 -3
  55. package/dist/cjs/p-content-slider.cjs.entry.js +2 -2
  56. package/dist/cjs/p-cropper.cjs.entry.js +2 -2
  57. package/dist/cjs/p-datepicker.cjs.entry.js +1 -1
  58. package/dist/cjs/{p-field_3.cjs.entry.js → p-field_2.cjs.entry.js} +18 -20
  59. package/dist/cjs/p-field_2.cjs.entry.js.map +1 -0
  60. package/dist/cjs/p-floating-menu-container_8.cjs.entry.js +5 -5
  61. package/dist/cjs/{p-portal_2.cjs.entry.js → p-helper_2.cjs.entry.js} +14 -19
  62. package/dist/cjs/p-helper_2.cjs.entry.js.map +1 -0
  63. package/dist/cjs/p-icon-deprecated.cjs.entry.js +4 -1
  64. package/dist/cjs/p-icon-deprecated.cjs.entry.js.map +1 -1
  65. package/dist/cjs/p-input-error.cjs.entry.js +1 -1
  66. package/dist/cjs/p-input-group.cjs.entry.js +130 -0
  67. package/dist/cjs/p-input-group.cjs.entry.js.map +1 -0
  68. package/dist/cjs/p-label.cjs.entry.js +3 -3
  69. package/dist/cjs/p-navbar.cjs.entry.js +1 -1
  70. package/dist/cjs/p-navigation-item.cjs.entry.js +2 -2
  71. package/dist/cjs/p-navigation-section.cjs.entry.js +1 -1
  72. package/dist/cjs/p-page-size-select_3.cjs.entry.js +1 -1
  73. package/dist/cjs/p-portal.cjs.entry.js +29 -0
  74. package/dist/cjs/p-portal.cjs.entry.js.map +1 -0
  75. package/dist/cjs/p-profile.cjs.entry.js +1 -1
  76. package/dist/cjs/p-select.cjs.entry.js +1 -1
  77. package/dist/cjs/p-slider-indicator.cjs.entry.js +1 -1
  78. package/dist/cjs/p-status.cjs.entry.js +2 -2
  79. package/dist/cjs/p-stepper-item.cjs.entry.js +1 -1
  80. package/dist/cjs/p-stepper-line.cjs.entry.js +1 -1
  81. package/dist/cjs/p-stepper.cjs.entry.js +1 -1
  82. package/dist/cjs/p-tab-group.cjs.entry.js +1 -1
  83. package/dist/cjs/p-tab-item.cjs.entry.js +1 -1
  84. package/dist/cjs/p-toast-container.cjs.entry.js +1 -1
  85. package/dist/cjs/p-toast.cjs.entry.js +1 -1
  86. package/dist/cjs/p-toggle.cjs.entry.js +3 -3
  87. package/dist/cjs/paperless.cjs.js +1 -1
  88. package/dist/collection/collection-manifest.json +1 -0
  89. package/dist/collection/components/atoms/icon-deprecated/icon.component.js +4 -1
  90. package/dist/collection/components/atoms/icon-deprecated/icon.component.js.map +1 -1
  91. package/dist/collection/components/atoms/segment-container/segment-container.component.css +1 -1
  92. package/dist/collection/components/atoms/segment-container/segment-container.component.js +2 -2
  93. package/dist/collection/components/atoms/segment-container/segment-container.component.js.map +1 -1
  94. package/dist/collection/components/atoms/segment-item/segment-item.component.css +1 -1
  95. package/dist/collection/components/atoms/segment-item/segment-item.component.js +23 -39
  96. package/dist/collection/components/atoms/segment-item/segment-item.component.js.map +1 -1
  97. package/dist/collection/components/atoms/slider-indicator/slider-indicator.component.js +1 -1
  98. package/dist/collection/components/atoms/status/status.component.js +2 -2
  99. package/dist/collection/components/atoms/stepper-item/stepper-item.component.js +1 -1
  100. package/dist/collection/components/atoms/stepper-line/stepper-line.component.js +1 -1
  101. package/dist/collection/components/atoms/tab-group/tab-group.component.js +1 -1
  102. package/dist/collection/components/atoms/tab-item/tab-item.component.js +1 -1
  103. package/dist/collection/components/atoms/table-container/table-container.component.js +1 -1
  104. package/dist/collection/components/atoms/toast-container/toast-container.component.js +1 -1
  105. package/dist/collection/components/atoms/toggle/toggle.component.js +3 -3
  106. package/dist/collection/components/atoms/tooltip/tooltip.component.js +4 -4
  107. package/dist/collection/components/molecules/accordion/accordion.component.js +1 -1
  108. package/dist/collection/components/molecules/attachment/attachment.component.js +4 -4
  109. package/dist/collection/components/molecules/button/button.component.js +4 -4
  110. package/dist/collection/components/molecules/button-group/button-group.component.js +1 -1
  111. package/dist/collection/components/molecules/calendar/calendar.component.js +1 -1
  112. package/dist/collection/components/molecules/content-slider/content-slider.component.js +2 -2
  113. package/dist/collection/components/molecules/cropper/cropper.component.js +2 -2
  114. package/dist/collection/components/molecules/datepicker/datepicker.component.js +1 -1
  115. package/dist/collection/components/molecules/dropdown/dropdown.component.js +3 -3
  116. package/dist/collection/components/molecules/field/field.component.js +37 -3
  117. package/dist/collection/components/molecules/field/field.component.js.map +1 -1
  118. package/dist/collection/components/molecules/input-error/input-error.component.js +1 -1
  119. package/dist/collection/components/molecules/input-group/input-group.component.css +1 -0
  120. package/dist/collection/components/molecules/input-group/input-group.component.js +486 -0
  121. package/dist/collection/components/molecules/input-group/input-group.component.js.map +1 -0
  122. package/dist/collection/components/molecules/label/label.component.js +3 -3
  123. package/dist/collection/components/molecules/navigation-item/navigation-item.component.js +2 -2
  124. package/dist/collection/components/molecules/navigation-section/navigation-section.component.js +1 -1
  125. package/dist/collection/components/molecules/pagination/pagination.component.js +1 -1
  126. package/dist/collection/components/molecules/profile/profile.component.js +1 -1
  127. package/dist/collection/components/molecules/select/select.component.js +1 -1
  128. package/dist/collection/components/molecules/stepper/stepper.component.js +1 -1
  129. package/dist/collection/components/molecules/table-cell/table-cell.component.js +1 -1
  130. package/dist/collection/components/molecules/table-footer/table-footer.component.js +1 -1
  131. package/dist/collection/components/molecules/table-row/table-row.component.js +2 -2
  132. package/dist/collection/components/molecules/toast/toast.component.js +1 -1
  133. package/dist/collection/components/organisms/navbar/navbar.component.js +1 -1
  134. package/dist/components/button.component.js +4 -4
  135. package/dist/components/calendar.component.js +1 -1
  136. package/dist/components/dropdown.component.js +3 -3
  137. package/dist/components/field.component.js +18 -3
  138. package/dist/components/field.component.js.map +1 -1
  139. package/dist/components/input-error.component.js +1 -1
  140. package/dist/components/p-accordion.js +1 -1
  141. package/dist/components/p-attachment.js +4 -4
  142. package/dist/components/p-button-group.js +1 -1
  143. package/dist/components/p-content-slider.js +2 -2
  144. package/dist/components/p-cropper.js +2 -2
  145. package/dist/components/p-datepicker.js +1 -1
  146. package/dist/components/p-icon-deprecated.js +4 -1
  147. package/dist/components/p-icon-deprecated.js.map +1 -1
  148. package/dist/components/p-input-group.d.ts +11 -0
  149. package/dist/components/p-input-group.js +192 -0
  150. package/dist/components/p-input-group.js.map +1 -0
  151. package/dist/components/p-label.js +3 -3
  152. package/dist/components/p-navbar.js +1 -1
  153. package/dist/components/p-navigation-item.js +2 -2
  154. package/dist/components/p-navigation-section.js +1 -1
  155. package/dist/components/p-profile.js +1 -1
  156. package/dist/components/p-select.js +1 -1
  157. package/dist/components/p-status.js +2 -2
  158. package/dist/components/p-stepper-item.js +1 -1
  159. package/dist/components/p-stepper.js +1 -1
  160. package/dist/components/p-tab-group.js +1 -1
  161. package/dist/components/p-tab-item.js +1 -1
  162. package/dist/components/p-toast-container.js +1 -1
  163. package/dist/components/p-toast.js +1 -1
  164. package/dist/components/p-toggle.js +3 -3
  165. package/dist/components/pagination.component.js +1 -1
  166. package/dist/components/segment-container.component.js +2 -2
  167. package/dist/components/segment-container.component.js.map +1 -1
  168. package/dist/components/segment-item.component.js +24 -17
  169. package/dist/components/segment-item.component.js.map +1 -1
  170. package/dist/components/slider-indicator.component.js +1 -1
  171. package/dist/components/stepper-line.component.js +1 -1
  172. package/dist/components/table-cell.component.js +1 -1
  173. package/dist/components/table-container.component.js +1 -1
  174. package/dist/components/table-footer.component.js +1 -1
  175. package/dist/components/table-row.component.js +2 -2
  176. package/dist/components/tooltip.component.js +4 -4
  177. package/dist/esm/index-2ef94580.js +16 -8
  178. package/dist/esm/loader.js +1 -1
  179. package/dist/esm/p-accordion.entry.js +1 -1
  180. package/dist/esm/p-attachment.entry.js +4 -4
  181. package/dist/esm/p-badge_3.entry.js +27 -17
  182. package/dist/esm/p-badge_3.entry.js.map +1 -1
  183. package/dist/esm/p-button-group.entry.js +1 -1
  184. package/dist/esm/p-button_3.entry.js +4 -4
  185. package/dist/esm/p-calendar.entry.js +1 -1
  186. package/dist/esm/p-checkbox_3.entry.js +3 -3
  187. package/dist/esm/p-content-slider.entry.js +2 -2
  188. package/dist/esm/p-cropper.entry.js +2 -2
  189. package/dist/esm/p-datepicker.entry.js +1 -1
  190. package/dist/esm/{p-field_3.entry.js → p-field_2.entry.js} +19 -20
  191. package/dist/esm/p-field_2.entry.js.map +1 -0
  192. package/dist/esm/p-floating-menu-container_8.entry.js +5 -5
  193. package/dist/esm/{p-portal_2.entry.js → p-helper_2.entry.js} +15 -20
  194. package/dist/esm/p-helper_2.entry.js.map +1 -0
  195. package/dist/esm/p-icon-deprecated.entry.js +4 -1
  196. package/dist/esm/p-icon-deprecated.entry.js.map +1 -1
  197. package/dist/esm/p-input-error.entry.js +1 -1
  198. package/dist/esm/p-input-group.entry.js +126 -0
  199. package/dist/esm/p-input-group.entry.js.map +1 -0
  200. package/dist/esm/p-label.entry.js +3 -3
  201. package/dist/esm/p-navbar.entry.js +1 -1
  202. package/dist/esm/p-navigation-item.entry.js +2 -2
  203. package/dist/esm/p-navigation-section.entry.js +1 -1
  204. package/dist/esm/p-page-size-select_3.entry.js +1 -1
  205. package/dist/esm/p-portal.entry.js +25 -0
  206. package/dist/esm/p-portal.entry.js.map +1 -0
  207. package/dist/esm/p-profile.entry.js +1 -1
  208. package/dist/esm/p-select.entry.js +1 -1
  209. package/dist/esm/p-slider-indicator.entry.js +1 -1
  210. package/dist/esm/p-status.entry.js +2 -2
  211. package/dist/esm/p-stepper-item.entry.js +1 -1
  212. package/dist/esm/p-stepper-line.entry.js +1 -1
  213. package/dist/esm/p-stepper.entry.js +1 -1
  214. package/dist/esm/p-tab-group.entry.js +1 -1
  215. package/dist/esm/p-tab-item.entry.js +1 -1
  216. package/dist/esm/p-toast-container.entry.js +1 -1
  217. package/dist/esm/p-toast.entry.js +1 -1
  218. package/dist/esm/p-toggle.entry.js +3 -3
  219. package/dist/esm/paperless.js +1 -1
  220. package/dist/index.html +1 -1
  221. package/dist/paperless/{p-0b883fbb.entry.js → p-0669c7e2.entry.js} +2 -2
  222. package/dist/paperless/{p-c2825667.entry.js → p-0a1cf938.entry.js} +2 -2
  223. package/dist/{build/p-f6fcedff.entry.js → paperless/p-129d5cbd.entry.js} +2 -2
  224. package/dist/paperless/{p-020a97e3.entry.js → p-20ea5e27.entry.js} +2 -2
  225. package/dist/paperless/p-20ea5e27.entry.js.map +1 -0
  226. package/dist/{build/p-af175b74.entry.js → paperless/p-250b3f90.entry.js} +2 -2
  227. package/dist/paperless/p-2f613a2a.entry.js +2 -0
  228. package/dist/paperless/{p-c18827fc.entry.js → p-2f821184.entry.js} +2 -2
  229. package/dist/paperless/p-3b276ae0.entry.js +2 -0
  230. package/dist/paperless/p-3b276ae0.entry.js.map +1 -0
  231. package/dist/paperless/{p-fe5637cc.entry.js → p-401ff01b.entry.js} +2 -2
  232. package/dist/paperless/{p-1fdda214.entry.js → p-479bdcc8.entry.js} +2 -2
  233. package/dist/{build/p-70d427af.entry.js → paperless/p-4a642ff9.entry.js} +2 -2
  234. package/dist/paperless/{p-c1142e26.entry.js → p-4cb8f3db.entry.js} +2 -2
  235. package/dist/paperless/{p-412a9f4d.entry.js → p-4e31af7e.entry.js} +2 -2
  236. package/dist/paperless/{p-3fdd326e.entry.js → p-57fc0eb5.entry.js} +2 -2
  237. package/dist/paperless/{p-6bcae357.entry.js → p-68ae68c8.entry.js} +2 -2
  238. package/dist/{build/p-b708b7e3.entry.js → paperless/p-6f3a4499.entry.js} +2 -2
  239. package/dist/paperless/{p-7f3cad06.entry.js → p-716a92ae.entry.js} +2 -2
  240. package/dist/paperless/{p-b2b69ce0.entry.js → p-83055eac.entry.js} +2 -2
  241. package/dist/{build/p-e9008b5f.entry.js → paperless/p-868d5746.entry.js} +2 -2
  242. package/dist/paperless/p-8a8663ae.entry.js +2 -0
  243. package/dist/paperless/p-8a8663ae.entry.js.map +1 -0
  244. package/dist/{build/p-8c094336.entry.js → paperless/p-8b1a485b.entry.js} +2 -2
  245. package/dist/paperless/{p-99688230.entry.js → p-955d149f.entry.js} +2 -2
  246. package/dist/{build/p-6cf35b72.entry.js → paperless/p-9a9c8ce9.entry.js} +2 -2
  247. package/dist/{build/p-a80dc54a.entry.js → paperless/p-b26d5130.entry.js} +2 -2
  248. package/dist/paperless/p-cb8ecae7.entry.js +2 -0
  249. package/dist/paperless/p-cb8ecae7.entry.js.map +1 -0
  250. package/dist/paperless/{p-9f790bea.entry.js → p-ccbd2de0.entry.js} +2 -2
  251. package/dist/paperless/{p-881a012e.entry.js → p-d31d6714.entry.js} +2 -2
  252. package/dist/paperless/p-dbbf732c.entry.js +2 -0
  253. package/dist/paperless/p-dbbf732c.entry.js.map +1 -0
  254. package/dist/paperless/{p-eb6d1fed.entry.js → p-dc01bfa8.entry.js} +2 -2
  255. package/dist/paperless/{p-11c446d6.entry.js → p-e3b04c17.entry.js} +2 -2
  256. package/dist/paperless/p-e5a54d05.entry.js +2 -0
  257. package/dist/paperless/p-e5a54d05.entry.js.map +1 -0
  258. package/dist/{build/p-109a8a56.entry.js → paperless/p-f56de35e.entry.js} +2 -2
  259. package/dist/paperless/p-fc9cfbd1.entry.js +2 -0
  260. package/dist/paperless/{p-955283d1.entry.js → p-fde8b75b.entry.js} +2 -2
  261. package/dist/paperless/paperless.esm.js +1 -1
  262. package/dist/paperless/paperless.esm.js.map +1 -1
  263. package/dist/sw.js +1 -1
  264. package/dist/sw.js.map +1 -1
  265. package/dist/types/components/atoms/icon-deprecated/icon.component.d.ts +1 -0
  266. package/dist/types/components/atoms/segment-item/segment-item.component.d.ts +0 -11
  267. package/dist/types/components/molecules/field/field.component.d.ts +6 -0
  268. package/dist/types/components/molecules/input-group/input-group.component.d.ts +82 -0
  269. package/dist/types/components.d.ts +149 -8
  270. package/hydrate/index.js +249 -76
  271. package/hydrate/index.mjs +249 -76
  272. package/package.json +1 -1
  273. package/dist/build/p-020a97e3.entry.js.map +0 -1
  274. package/dist/build/p-05ca30af.entry.js +0 -2
  275. package/dist/build/p-05ca30af.entry.js.map +0 -1
  276. package/dist/build/p-314d396f.entry.js +0 -2
  277. package/dist/build/p-314d396f.entry.js.map +0 -1
  278. package/dist/build/p-45b82020.entry.js +0 -2
  279. package/dist/build/p-4eeba18a.entry.js +0 -2
  280. package/dist/build/p-4eeba18a.entry.js.map +0 -1
  281. package/dist/build/p-859c4fb1.entry.js +0 -2
  282. package/dist/build/p-b868a720.js +0 -2
  283. package/dist/cjs/p-field_3.cjs.entry.js.map +0 -1
  284. package/dist/cjs/p-portal_2.cjs.entry.js.map +0 -1
  285. package/dist/esm/p-field_3.entry.js.map +0 -1
  286. package/dist/esm/p-portal_2.entry.js.map +0 -1
  287. package/dist/paperless/p-020a97e3.entry.js.map +0 -1
  288. package/dist/paperless/p-05ca30af.entry.js +0 -2
  289. package/dist/paperless/p-05ca30af.entry.js.map +0 -1
  290. package/dist/paperless/p-314d396f.entry.js +0 -2
  291. package/dist/paperless/p-314d396f.entry.js.map +0 -1
  292. package/dist/paperless/p-45b82020.entry.js +0 -2
  293. package/dist/paperless/p-4eeba18a.entry.js +0 -2
  294. package/dist/paperless/p-4eeba18a.entry.js.map +0 -1
  295. package/dist/paperless/p-859c4fb1.entry.js +0 -2
  296. /package/dist/build/{p-0b883fbb.entry.js.map → p-0669c7e2.entry.js.map} +0 -0
  297. /package/dist/build/{p-c2825667.entry.js.map → p-0a1cf938.entry.js.map} +0 -0
  298. /package/dist/build/{p-f6fcedff.entry.js.map → p-129d5cbd.entry.js.map} +0 -0
  299. /package/dist/build/{p-af175b74.entry.js.map → p-250b3f90.entry.js.map} +0 -0
  300. /package/dist/build/{p-859c4fb1.entry.js.map → p-2f613a2a.entry.js.map} +0 -0
  301. /package/dist/build/{p-c18827fc.entry.js.map → p-2f821184.entry.js.map} +0 -0
  302. /package/dist/build/{p-fe5637cc.entry.js.map → p-401ff01b.entry.js.map} +0 -0
  303. /package/dist/build/{p-1fdda214.entry.js.map → p-479bdcc8.entry.js.map} +0 -0
  304. /package/dist/build/{p-70d427af.entry.js.map → p-4a642ff9.entry.js.map} +0 -0
  305. /package/dist/build/{p-c1142e26.entry.js.map → p-4cb8f3db.entry.js.map} +0 -0
  306. /package/dist/build/{p-412a9f4d.entry.js.map → p-4e31af7e.entry.js.map} +0 -0
  307. /package/dist/build/{p-3fdd326e.entry.js.map → p-57fc0eb5.entry.js.map} +0 -0
  308. /package/dist/build/{p-6bcae357.entry.js.map → p-68ae68c8.entry.js.map} +0 -0
  309. /package/dist/build/{p-b708b7e3.entry.js.map → p-6f3a4499.entry.js.map} +0 -0
  310. /package/dist/build/{p-7f3cad06.entry.js.map → p-716a92ae.entry.js.map} +0 -0
  311. /package/dist/build/{p-b2b69ce0.entry.js.map → p-83055eac.entry.js.map} +0 -0
  312. /package/dist/build/{p-e9008b5f.entry.js.map → p-868d5746.entry.js.map} +0 -0
  313. /package/dist/build/{p-8c094336.entry.js.map → p-8b1a485b.entry.js.map} +0 -0
  314. /package/dist/build/{p-99688230.entry.js.map → p-955d149f.entry.js.map} +0 -0
  315. /package/dist/build/{p-6cf35b72.entry.js.map → p-9a9c8ce9.entry.js.map} +0 -0
  316. /package/dist/build/{p-a80dc54a.entry.js.map → p-b26d5130.entry.js.map} +0 -0
  317. /package/dist/build/{p-9f790bea.entry.js.map → p-ccbd2de0.entry.js.map} +0 -0
  318. /package/dist/build/{p-881a012e.entry.js.map → p-d31d6714.entry.js.map} +0 -0
  319. /package/dist/build/{p-eb6d1fed.entry.js.map → p-dc01bfa8.entry.js.map} +0 -0
  320. /package/dist/build/{p-11c446d6.entry.js.map → p-e3b04c17.entry.js.map} +0 -0
  321. /package/dist/build/{p-109a8a56.entry.js.map → p-f56de35e.entry.js.map} +0 -0
  322. /package/dist/build/{p-45b82020.entry.js.map → p-fc9cfbd1.entry.js.map} +0 -0
  323. /package/dist/build/{p-955283d1.entry.js.map → p-fde8b75b.entry.js.map} +0 -0
  324. /package/dist/paperless/{p-0b883fbb.entry.js.map → p-0669c7e2.entry.js.map} +0 -0
  325. /package/dist/paperless/{p-c2825667.entry.js.map → p-0a1cf938.entry.js.map} +0 -0
  326. /package/dist/paperless/{p-f6fcedff.entry.js.map → p-129d5cbd.entry.js.map} +0 -0
  327. /package/dist/paperless/{p-af175b74.entry.js.map → p-250b3f90.entry.js.map} +0 -0
  328. /package/dist/paperless/{p-859c4fb1.entry.js.map → p-2f613a2a.entry.js.map} +0 -0
  329. /package/dist/paperless/{p-c18827fc.entry.js.map → p-2f821184.entry.js.map} +0 -0
  330. /package/dist/paperless/{p-fe5637cc.entry.js.map → p-401ff01b.entry.js.map} +0 -0
  331. /package/dist/paperless/{p-1fdda214.entry.js.map → p-479bdcc8.entry.js.map} +0 -0
  332. /package/dist/paperless/{p-70d427af.entry.js.map → p-4a642ff9.entry.js.map} +0 -0
  333. /package/dist/paperless/{p-c1142e26.entry.js.map → p-4cb8f3db.entry.js.map} +0 -0
  334. /package/dist/paperless/{p-412a9f4d.entry.js.map → p-4e31af7e.entry.js.map} +0 -0
  335. /package/dist/paperless/{p-3fdd326e.entry.js.map → p-57fc0eb5.entry.js.map} +0 -0
  336. /package/dist/paperless/{p-6bcae357.entry.js.map → p-68ae68c8.entry.js.map} +0 -0
  337. /package/dist/paperless/{p-b708b7e3.entry.js.map → p-6f3a4499.entry.js.map} +0 -0
  338. /package/dist/paperless/{p-7f3cad06.entry.js.map → p-716a92ae.entry.js.map} +0 -0
  339. /package/dist/paperless/{p-b2b69ce0.entry.js.map → p-83055eac.entry.js.map} +0 -0
  340. /package/dist/paperless/{p-e9008b5f.entry.js.map → p-868d5746.entry.js.map} +0 -0
  341. /package/dist/paperless/{p-8c094336.entry.js.map → p-8b1a485b.entry.js.map} +0 -0
  342. /package/dist/paperless/{p-99688230.entry.js.map → p-955d149f.entry.js.map} +0 -0
  343. /package/dist/paperless/{p-6cf35b72.entry.js.map → p-9a9c8ce9.entry.js.map} +0 -0
  344. /package/dist/paperless/{p-a80dc54a.entry.js.map → p-b26d5130.entry.js.map} +0 -0
  345. /package/dist/paperless/{p-9f790bea.entry.js.map → p-ccbd2de0.entry.js.map} +0 -0
  346. /package/dist/paperless/{p-881a012e.entry.js.map → p-d31d6714.entry.js.map} +0 -0
  347. /package/dist/paperless/{p-eb6d1fed.entry.js.map → p-dc01bfa8.entry.js.map} +0 -0
  348. /package/dist/paperless/{p-11c446d6.entry.js.map → p-e3b04c17.entry.js.map} +0 -0
  349. /package/dist/paperless/{p-109a8a56.entry.js.map → p-f56de35e.entry.js.map} +0 -0
  350. /package/dist/paperless/{p-45b82020.entry.js.map → p-fc9cfbd1.entry.js.map} +0 -0
  351. /package/dist/paperless/{p-955283d1.entry.js.map → p-fde8b75b.entry.js.map} +0 -0
@@ -7,8 +7,8 @@ export class Status {
7
7
  this.iconRotate = undefined;
8
8
  }
9
9
  render() {
10
- return (h(Host, { key: '9b538283ce0517c77e00bd51a9d683b24bb3d70c', class: `p-status variant-${this.variant}
11
- }` }, this._getIcon(), h("slot", { key: 'fdadde949efb67b1f45314cb72ec048c437c1939' })));
10
+ return (h(Host, { key: 'c22a53f6a938b6b474cc0d3b48bafd1b86ac12ce', class: `p-status variant-${this.variant}
11
+ }` }, this._getIcon(), h("slot", { key: '488fd658de93d5f4a7a32cfea4407df0953eb092' })));
12
12
  }
13
13
  _getIcon() {
14
14
  const icon = this.icon || this._getVariantIcon();
@@ -8,7 +8,7 @@ export class StepperItem {
8
8
  this.active = false;
9
9
  }
10
10
  render() {
11
- return (h(Host, { key: 'fdb8be45614926e6e49e020f37b2220b57fc4c4a', class: "p-stepper-item" }, h("div", { key: 'f6a682601cf37da44aba81c8c252657fa81fccee', class: "circle" }, this.finished && h("p-icon", { key: '6f255a564f8862711dc3d3617b8a52446e4c2aed', variant: "checkmark" })), h("div", { key: '7e87bad4eeeb5858efdba5fd03a02ad49d6fbf55', class: "content" }, h("slot", { key: '99076927549c510ae73bf7e0c1c248ab6f681a09', name: "content" }))));
11
+ return (h(Host, { key: '1920bc6191385c5b1bcb32ffecfded7f7c1a3f40', class: "p-stepper-item" }, h("div", { key: '743a51150e95b15bfd194498d9568821c50b4311', class: "circle" }, this.finished && h("p-icon", { key: '876d225ca1f3c974c4f5c0cebd8d7eabff7a8336', variant: "checkmark" })), h("div", { key: '42dfe103a364e5c8183bced9825f7d899fd7c01f', class: "content" }, h("slot", { key: 'a9db4797ad8649458649df53a4edb91c46a8199e', name: "content" }))));
12
12
  }
13
13
  static get is() { return "p-stepper-item"; }
14
14
  static get encapsulation() { return "shadow"; }
@@ -5,7 +5,7 @@ export class StepperLine {
5
5
  this.direction = 'horizontal';
6
6
  }
7
7
  render() {
8
- return h(Host, { key: '9afe16b1b44c0af870416074eb6bfee7c50d7d1a', class: "p-stepper-line" });
8
+ return h(Host, { key: '9c523b4c1c77f12e65b9e8e97e447682089c6259', class: "p-stepper-line" });
9
9
  }
10
10
  static get is() { return "p-stepper-line"; }
11
11
  static get encapsulation() { return "shadow"; }
@@ -1,7 +1,7 @@
1
1
  import { h, Host } from "@stencil/core";
2
2
  export class TabGroup {
3
3
  render() {
4
- return (h(Host, { key: 'aa88a446769f313f5efbc20661cb38b8540178a5', class: "p-tab-group relative flex w-full flex-col" }, h("div", { key: '076cab05927dc55d65ff6bcefd9439ae35432c33', class: "scrollbar-hide z-10 flex w-full gap-5 overflow-x-auto" }, h("slot", { key: 'bbc31cf25e62f3a77d5ba08363ce1a8b28f00853' })), h("p-divider", { key: '617439542832dac0732b4d9f985e3d10b4a209b0', class: "absolute bottom-0 left-0 m-0 w-full" })));
4
+ return (h(Host, { key: 'c2373e9bf105402dcb9fcdea9f00e96c3d22234f', class: "p-tab-group relative flex w-full flex-col" }, h("div", { key: 'b5cd3a1a953b63d00ef2e5ab6ccb3a8dae482905', class: "scrollbar-hide z-10 flex w-full gap-5 overflow-x-auto" }, h("slot", { key: '27402e28fe9d870007ce31601a0b5512df1f8e56' })), h("p-divider", { key: '0abf3dd0edd40ec56abb9781d28a28d8336fc816', class: "absolute bottom-0 left-0 m-0 w-full" })));
5
5
  }
6
6
  static get is() { return "p-tab-group"; }
7
7
  static get encapsulation() { return "shadow"; }
@@ -4,7 +4,7 @@ export class TabItem {
4
4
  this.active = false;
5
5
  }
6
6
  render() {
7
- return (h(Host, { key: 'fa6aea3812d850f94a74a6cf1f88bc86b6351fa8', class: `p-tab-item ${this.active && 'active'}` }, h("slot", { key: 'b20e0b0695ec3a8e65506d004af650a6bee87d6b' })));
7
+ return (h(Host, { key: '5bd9aae0c6b920150ab95027e301519ffdfa9b5c', class: `p-tab-item ${this.active && 'active'}` }, h("slot", { key: '221acbe500445e4f104f7f26dc7a0d37c4818a99' })));
8
8
  }
9
9
  static get is() { return "p-tab-item"; }
10
10
  static get encapsulation() { return "shadow"; }
@@ -4,7 +4,7 @@ export class TableContainer {
4
4
  this.shadow = true;
5
5
  }
6
6
  render() {
7
- return (h(Host, { key: '4e0ae2ffb330d59f65fea3060a733589789b6238', class: `p-table-container ${!this.shadow && 'no-shadow'}` }, h("slot", { key: '4e5330fd7cfe7b021e8dd2a86a819170762a431a' })));
7
+ return (h(Host, { key: '8400210ea3f34d240b032c875ef5e86dc218e7d5', class: `p-table-container ${!this.shadow && 'no-shadow'}` }, h("slot", { key: '6abc0755ec890cd9001aef58ac24acb3f2e4f529' })));
8
8
  }
9
9
  static get is() { return "p-table-container"; }
10
10
  static get encapsulation() { return "shadow"; }
@@ -4,7 +4,7 @@ export class ToastContainer {
4
4
  this.placement = 'top-end';
5
5
  }
6
6
  render() {
7
- return (h(Host, { key: '58603ebc78b238e44f447f59c4f16c82de5ddcb6', class: `p-toast-container placement-${this.placement}` }, h("slot", { key: '1a3ba94eadae2d79b46ade86520284423324b2b7' })));
7
+ return (h(Host, { key: '7ca829b625cb054e8d78fefdf89ecb42fc0b16e1', class: `p-toast-container placement-${this.placement}` }, h("slot", { key: '8f2bbca37514fbb8db6e60e24c96e32320ebee8d' })));
8
8
  }
9
9
  static get is() { return "p-toast-container"; }
10
10
  static get encapsulation() { return "shadow"; }
@@ -104,13 +104,13 @@ export class Toggle {
104
104
  */
105
105
  indeterminateChange;
106
106
  render() {
107
- return (h(Host, { key: 'c0dabd76bf6665ffdd747f3418cc4e1a22f96a5f', class: 'p-checkbox' }, h("label", { key: 'ffd7c2d536568ba6a350ace76f731c2938bfd2de', htmlFor: this.id ?? this._nonce, class: 'flex items-center justify-start gap-2 text-black-teal' }, h("div", { key: 'e53e83e770f6ed573d5cadeb11d45b86f2a4ddce', class: 'group relative flex flex-shrink-0 items-center' }, h("input", { key: '5d8b6cb60decc05e162a68ead269f7b9d4890b72', class: checkbox({
107
+ return (h(Host, { key: '1f27b7358ddfe7998b7353f8365b728e9fb576cd', class: 'p-checkbox' }, h("label", { key: 'b055b9953c464554baf6c2c958806ae6995a6359', htmlFor: this.id ?? this._nonce, class: 'flex items-center justify-start gap-2 text-black-teal' }, h("div", { key: 'd8da28b8229fba7a35af8a57c5dec386a93b543f', class: 'group relative flex flex-shrink-0 items-center' }, h("input", { key: '275d3d8e8f0cad0bb62c6c7b19cb8553f08e27c0', class: checkbox({
108
108
  size: this.size,
109
109
  disabled: this.disabled,
110
- }), type: 'checkbox', id: this.id ?? this._nonce, name: this.name, required: this.required, checked: !!this.checked, indeterminate: this.indeterminate, disabled: this.disabled, onChange: ev => this._onChange(ev) }), h("div", { key: 'd20d1ef90cf7cedc4b48ba44826f2d5ad22878ed', class: circle({
110
+ }), type: 'checkbox', id: this.id ?? this._nonce, name: this.name, required: this.required, checked: !!this.checked, indeterminate: this.indeterminate, disabled: this.disabled, onChange: ev => this._onChange(ev) }), h("div", { key: 'b0c8d090f118586f92e88f3c9eac715ee7c8da7d', class: circle({
111
111
  size: this.size,
112
112
  disabled: this.disabled,
113
- }) })), h("slot", { key: 'ce3e1ee30f727d6f941f93df26403257018ef7fc' }))));
113
+ }) })), h("slot", { key: '8e0571323057af097c6bf41a5ac7c0f0dc9dd71a' }))));
114
114
  }
115
115
  _onChange(ev) {
116
116
  if (this.disabled) {
@@ -83,19 +83,19 @@ export class Tooltip {
83
83
  ref: el => this._load(el),
84
84
  };
85
85
  let tooltip;
86
- const tooltipElement = (h("div", { key: '56d0d0e1a7cb6d1e97b3367aee6adb5ae293b53b', class: popover({
86
+ const tooltipElement = (h("div", { key: '0a9e167ddc84ee7f583d37aed323c2cf02c1fa9f', class: popover({
87
87
  variant: this.variant,
88
88
  strategy: this.usePortal ? 'none' : this.strategy,
89
- }), ...(this.usePortal ? {} : tooltipProps) }, h("div", { key: '00d635edb79b804c7424e1d0860e9187ae306e7f', class: 'flex gap-2' }, this.variant === 'error' && (h("div", { key: '3db71eb65444549657f9720e9ab1c8fe06f5b0ca', class: 'w-[2px] bg-negative-red' })), this.content ? this.content : h("slot", { name: 'content' }))));
89
+ }), ...(this.usePortal ? {} : tooltipProps) }, h("div", { key: 'df2ac0c2212bdf2d0649ddb2a302fb74c654b262', class: 'flex gap-2' }, this.variant === 'error' && (h("div", { key: '102d4eca5af055bd733edd49191787bf7cffdf02', class: 'w-[2px] bg-negative-red' })), this.content ? this.content : h("slot", { name: 'content' }))));
90
90
  if (this.usePortal) {
91
- tooltip = (h("p-portal", { key: '34c9d947df9c8724cf6f0a30532fa7a8b8f0d94e', class: portal({
91
+ tooltip = (h("p-portal", { key: '1b8c71e02362b745c0db665215c3484f730b4261', class: portal({
92
92
  strategy: this.strategy,
93
93
  }), ...tooltipProps }, tooltipElement));
94
94
  }
95
95
  else {
96
96
  tooltip = tooltipElement;
97
97
  }
98
- return (h(Host, { key: '7eb41fb620f29211b4dfa7a8bf788625a8027393', class: 'p-popover flex cursor-pointer' }, h("div", { key: 'baa27f78e76a4a3218a6ca95b14941a71cb860ff', class: 'relative h-inherit w-inherit' }, h("slot", { key: '88c466a87263e47d96e29ef570f6a78298b8529c', name: 'trigger' }), tooltip)));
98
+ return (h(Host, { key: '7a6070e29497d134306025162f4c6fb23dcf8a37', class: 'p-popover flex cursor-pointer' }, h("div", { key: '0482d4946e076d56d7264727eab6f6467472f195', class: 'relative h-inherit w-inherit' }, h("slot", { key: '7db62f696ce194cdded44a511d2f7dfd06ad7517', name: 'trigger' }), tooltip)));
99
99
  }
100
100
  clickHandler() {
101
101
  if (this.variant === 'hover' || !this.enableUserInput) {
@@ -11,7 +11,7 @@ export class Accordion {
11
11
  */
12
12
  isOpen;
13
13
  render() {
14
- return (h(Host, { key: '310eabf3edef4a28e9aad349c62709aba8b8b07c', class: 'p-accordion' }, h("div", { key: '9d9d3fb6dc68292ad5f90de15ebc884f289e5792', class: 'flex cursor-pointer items-center gap-3 text-storm-vague', onClick: () => this._onClick() }, h("p-icon", { key: '35f18b0cca23dd68fc527e4494b1acbe5478d338', class: 'flex', variant: 'caret', rotate: this.open ? 0 : -90 }), h("p", { key: 'ac21ad37327f5b73b23174aaa47547b997205b97', class: 'm-0 whitespace-nowrap text-lg font-medium' }, this.header), h("p-divider", { key: '18fe537bf51d29d4477f9355b299a5bce82e7a9b' })), this.open && (h("div", { key: 'b6d0a3c7cc497ec86a8adcca3fc4f2f815cd5ba0', class: 'mt-6' }, h("slot", { key: 'b44e3a118822173be502213d82b6a95365917b41' })))));
14
+ return (h(Host, { key: '0f0edc75d92baaea28a9e4b4193dbfbc24b0dca8', class: 'p-accordion' }, h("div", { key: '43df383fad37eb55fc3f2c25d468deae9dcbed1e', class: 'flex cursor-pointer items-center gap-3 text-storm-vague', onClick: () => this._onClick() }, h("p-icon", { key: '12527b51ce59eee60d78b3370d6108c6f726a5a4', class: 'flex', variant: 'caret', rotate: this.open ? 0 : -90 }), h("p", { key: '54a6d7034150bbca73d086538d3dfbd048d49293', class: 'm-0 whitespace-nowrap text-lg font-medium' }, this.header), h("p-divider", { key: 'd4b96c50ca1a1c27b2b5da2a1cae9266427163bd' })), this.open && (h("div", { key: 'b206b9f9f46a2c85c9b96377f011318af8108d6b', class: 'mt-6' }, h("slot", { key: '95c99c9bb3a6f8da060271afe3f7e788c002df69' })))));
15
15
  }
16
16
  _onClick() {
17
17
  if (!this.closeable && this.open) {
@@ -15,14 +15,14 @@ export class Attachment {
15
15
  */
16
16
  delete;
17
17
  render() {
18
- let prefix = h("p-icon", { key: '0f6fdd0e2d04701633d2159ec6dd3e7a6805d81f', variant: 'attachment' });
18
+ let prefix = h("p-icon", { key: 'fc2ff12026a3d49835f060e38af081d923437e92', variant: 'attachment' });
19
19
  if (this.loading) {
20
- prefix = h("p-loader", { key: '13ab45a77fc4bef011ab08760539459e68df943e' });
20
+ prefix = h("p-loader", { key: '13f037239a365ff64c3e1dafb693bd91307a5d4c' });
21
21
  }
22
22
  if (this.error) {
23
- prefix = (h("p-icon", { key: 'e8d352fe5293af4fa7704df89a55d1a22a86756f', variant: 'warning', class: 'text-negative' }));
23
+ prefix = (h("p-icon", { key: '1d0b3853ea3f84afe570a91bc0186f611fd228bb', variant: 'warning', class: 'text-negative' }));
24
24
  }
25
- return (h(Host, { key: '5d94032752397283496ad42f3034be1dc41a70e3', class: 'p-attachment flex items-start gap-4' }, h("div", { key: '0abebda5e4f17d6a00e07fe4d5853a3083046bf9', class: `flex h-8 min-w-0 flex-1 items-center justify-start gap-2 rounded-lg bg-mystic px-2 ${this.error?.length ? 'text-negative' : 'text-storm-medium'}` }, prefix, h("span", { key: '179dd7e6c759bc6205e9d9e2521c945553d3a0cb', class: 'min-w-0 flex-1 overflow-hidden text-ellipsis whitespace-nowrap' }, h("slot", { key: '0b99553205320b53f5389a721cd4c993fd6da95a' })), this.error?.length && h("p-input-error", { key: '39d53a690670b83dc859a9a667aeada3182e7a35', error: this.error })), h("p-button", { key: 'a8a726acacae0c0e82d979e31a2de2afff34acf5', variant: 'secondary', iconOnly: true, icon: this.mode === 'read' ? 'download' : 'trash', disabled: this.loading, loading: this.mode === 'read' && this.downloading, size: 'sm', onOnClick: () => (this.mode === 'read' ? this.download : this.delete).emit() })));
25
+ return (h(Host, { key: '28770175f555d1e0c84707dce0ca4f2ce5106625', class: 'p-attachment flex items-start gap-4' }, h("div", { key: 'e42f8fa6c30fe3b11c82c0de6887871e26f01446', class: `flex h-8 min-w-0 flex-1 items-center justify-start gap-2 rounded-lg bg-mystic px-2 ${this.error?.length ? 'text-negative' : 'text-storm-medium'}` }, prefix, h("span", { key: 'b8ab8bc0dd28eef5db6061a2efd659d029a1260d', class: 'min-w-0 flex-1 overflow-hidden text-ellipsis whitespace-nowrap' }, h("slot", { key: '7a55028d58a7d959be7ff9dbd0c3673b179fdc19' })), this.error?.length && h("p-input-error", { key: '50a187071f5857dcb283245d8e94389fea97fff6', error: this.error })), h("p-button", { key: '2bc5660510cb29ed05961d21bff89c977126ecfe', variant: 'secondary', iconOnly: true, icon: this.mode === 'read' ? 'download' : 'trash', disabled: this.loading, loading: this.mode === 'read' && this.downloading, size: 'sm', onOnClick: () => (this.mode === 'read' ? this.download : this.delete).emit() })));
26
26
  }
27
27
  static get is() { return "p-attachment"; }
28
28
  static get encapsulation() { return "shadow"; }
@@ -289,7 +289,7 @@ export class Button {
289
289
  ? 'a'
290
290
  : 'button';
291
291
  const active = this.active || this.class?.includes('active');
292
- return (h(Host, { key: 'b21137921cfdf8cef894f31aceec317b76f8e0dd', class: 'p-button block' }, h(VariableTag, { key: '3b796d5754b8e089b5dffe8d91e6f61e00538e0a', disabled: this.disabled, href: this.href, type: this.variant !== 'text' ? this.type : undefined, target: this.target, class: button({
292
+ return (h(Host, { key: '6424b147500f9e23b58e9130969b3a6551207793', class: 'p-button block' }, h(VariableTag, { key: '7e8ff2d9c88e22a000462e58f4b192403067843e', disabled: this.disabled, href: this.href, type: this.variant !== 'text' ? this.type : undefined, target: this.target, class: button({
293
293
  variant: this.variant,
294
294
  size: this.size,
295
295
  underline: this.underline,
@@ -298,14 +298,14 @@ export class Button {
298
298
  buttonGroupPosition: this.buttonGroupPosition,
299
299
  iconOnly: this.iconOnly,
300
300
  active,
301
- }) }, this.chevron && this.chevronPosition === 'start' && (h("p-icon", { key: 'dd238bf0b2d040ed90a8e439dfb563d9168c61b7', variant: 'caret', rotate: this.chevron === 'up' ? 180 : 0 })), this.icon &&
301
+ }) }, this.chevron && this.chevronPosition === 'start' && (h("p-icon", { key: 'efb172d6b7e7ec4a50f4afc85af7a0c83a65ebfd', variant: 'caret', rotate: this.chevron === 'up' ? 180 : 0 })), this.icon &&
302
302
  this.iconPosition === 'start' &&
303
303
  !(this.iconOnly && this.loading) &&
304
- this._getIcon(), h("slot", { key: '9e06619e8b75a3afff008ef990bf3e04553d1d4b' }), this.icon &&
304
+ this._getIcon(), h("slot", { key: '0baa166aedacae64b04d99cd539224e9315fc106' }), this.icon &&
305
305
  this.iconPosition === 'end' &&
306
306
  !this.loading &&
307
307
  !this.chevron &&
308
- this._getIcon(), this.chevron && !this.loading && this.chevronPosition === 'end' && (h("p-icon", { key: '8864bae307de1ddb69f1c466a428e2b05d907234', variant: 'caret', rotate: this.chevron === 'up' ? 180 : 0 })), this.loading && h("p-loader", { key: 'e5901475f799e01b5dc29a8a848a9e3fd239681f', color: loaderColor }))));
308
+ this._getIcon(), this.chevron && !this.loading && this.chevronPosition === 'end' && (h("p-icon", { key: '2add95303af94434a77a0c6b1935c886d4a3ddfa', variant: 'caret', rotate: this.chevron === 'up' ? 180 : 0 })), this.loading && h("p-loader", { key: '3aaa904697024393c651dcba83075bfcf07af844', color: loaderColor }))));
309
309
  }
310
310
  handleClick(ev) {
311
311
  if (this.loading || this.disabled) {
@@ -11,7 +11,7 @@ export class ButtonGroup {
11
11
  this._checkButtons();
12
12
  }
13
13
  render() {
14
- return (h(Host, { key: '2b21e710322939b988c56ec93315f294e141fd8b', class: 'p-button-group flex items-center' }, h("slot", { key: '8df0ce25df38771b78d6152368d00c45aec74dc4' })));
14
+ return (h(Host, { key: '5320f683d3a2458172e091d07c79fb59ddf8890e', class: 'p-button-group flex items-center' }, h("slot", { key: 'a9d1f6af847795a20f8389188a7e6fedd4ab2c60' })));
15
15
  }
16
16
  slotchange() {
17
17
  this._checkButtons();
@@ -139,7 +139,7 @@ export class Calendar {
139
139
  .filter(date => isValid(date));
140
140
  }
141
141
  render() {
142
- return (h(Host, { key: 'bdac26a59422c5e8f2958bdbde5c2e2716926cc2', class: calendar({ variant: this.variant }) }, this._getView()));
142
+ return (h(Host, { key: 'f63b07df1328a57cc35e085d1571e181ef7d4bc6', class: calendar({ variant: this.variant }) }, this._getView()));
143
143
  }
144
144
  _getView() {
145
145
  if (this._view === 'year') {
@@ -39,9 +39,9 @@ export class ContentSlider {
39
39
  }
40
40
  }
41
41
  render() {
42
- return (h(Host, { key: '75da799f01accf4047ac83242a1200509947c1f5', class: "p-content-slider" }, h("div", { key: '4146cd50da6e230f179612844beb835914a89632', class: `slider ${!this.disableDrag && 'draggable'} ${this._dragging && 'dragging'}`, style: {
42
+ return (h(Host, { key: 'e783ded65669f94fb8f4890624b967de22aaa356', class: "p-content-slider" }, h("div", { key: '596098993bda1ca9ae97a625986885c48eb6849b', class: `slider ${!this.disableDrag && 'draggable'} ${this._dragging && 'dragging'}`, style: {
43
43
  height: `${this._outerHeight}px`,
44
- }, ref: (el) => (this._sliderRef = el), onMouseDown: (e) => this._mouseDownHandler(e), onTouchStart: (e) => this._mouseDownHandler(e), onMouseMove: (e) => this._mouseMoveHandler(e), onTouchMove: (e) => this._mouseMoveHandler(e) }, h("div", { key: 'fdbbd773f07938dd8906bb456e7739f6c717092c', class: "inner-slider", ref: (ref) => this._setInnerSliderReft(ref), onTransitionEnd: () => this._transitionEndHandler() }, h("slot", { key: '7a3d5dd2a3234d27c8ab6acfc5a64f98cf52c1c8' }))), h("div", { key: '56cd4bdee286d29a469bf30ac842977c80ed6195', class: `indicator ${this.hideMobileIndicator && 'hidden'}` }, this._items.map((_, i) => (h("div", { onClick: () => this._scrollTo(i, true), class: `item ${!this.disableIndicatorClick && 'cursor-pointer'}` }, h("p-slider-indicator", { active: i === this._visibleIndex })))))));
44
+ }, ref: (el) => (this._sliderRef = el), onMouseDown: (e) => this._mouseDownHandler(e), onTouchStart: (e) => this._mouseDownHandler(e), onMouseMove: (e) => this._mouseMoveHandler(e), onTouchMove: (e) => this._mouseMoveHandler(e) }, h("div", { key: '40b9daccd158e980521b92d1e8bdfa85336c527f', class: "inner-slider", ref: (ref) => this._setInnerSliderReft(ref), onTransitionEnd: () => this._transitionEndHandler() }, h("slot", { key: '5ed5d24d35a24f2b69345d40aea7c488bc381ba3' }))), h("div", { key: '9eed8a08f02b7aba97e04ff55e72c651347a7ac6', class: `indicator ${this.hideMobileIndicator && 'hidden'}` }, this._items.map((_, i) => (h("div", { onClick: () => this._scrollTo(i, true), class: `item ${!this.disableIndicatorClick && 'cursor-pointer'}` }, h("p-slider-indicator", { active: i === this._visibleIndex })))))));
45
45
  }
46
46
  _mouseDownHandler(e) {
47
47
  if (this.disableDrag || this._dragging) {
@@ -34,10 +34,10 @@ export class Cropper {
34
34
  }, 200);
35
35
  }
36
36
  render() {
37
- return (h(Host, { key: '7390aec5b5f81ffd67e54811ca821cc9772fddc5', class: 'p-cropper' }, this._loaded && (h("cropper-canvas", { key: '95ecbd9acce466e81d90810cc7297dcf6ea5cdbe', class: 'h-[17.5rem] w-full border-0 border-b border-solid border-mystic-medium bg-white', onAction: () => this._onAction() }, h("cropper-image", { key: '76534002ee9c7dc3e8e073393b35235c187d7656', src: this.value, alt: 'Picture', ref: ref => this._setImageRef(ref), scalable: true, crossorigin: 'anonymous' }), h("cropper-shade", { key: '597dba1bcc2d306c4161b9a45bcb061d8acc9e2d', class: clsx({
37
+ return (h(Host, { key: 'cf3ff15123161c366d73c97eae8eaef57baa5452', class: 'p-cropper' }, this._loaded && (h("cropper-canvas", { key: '28611bd08b26638165dbe3f18bec490a6ab2d90d', class: 'h-[17.5rem] w-full border-0 border-b border-solid border-mystic-medium bg-white', onAction: () => this._onAction() }, h("cropper-image", { key: '67bbbf0f4a0e835a410ec9812547624bc2b83909', src: this.value, alt: 'Picture', ref: ref => this._setImageRef(ref), scalable: true, crossorigin: 'anonymous' }), h("cropper-shade", { key: '264614024cdfc56792f2508203ebfc0a1d4ee8dc', class: clsx({
38
38
  'rounded-round': this.variant === 'user',
39
39
  rounded: this.variant === 'company',
40
- }), "theme-color": 'rgba(255, 255, 255, 0.5)', hidden: true }), h("cropper-selection", { key: 'e00c6e0b5541edce749b7837769cb35b26b2e3b6', "initial-coverage": '0.7', "aspect-ratio": '1', ref: ref => (this._selectionRef = ref) }), h("cropper-handle", { key: 'adee5991926e23ed24349ca87b69f4e5002185a1', action: 'move', plain: true }))), h("div", { key: '76041ecf8ca26fd74b50acdc5543e94efc4326dd', class: 'flex w-full items-center gap-2 px-14 text-storm-vague tablet:max-w-xs tablet:px-1' }, h("p-icon", { key: 'e0ae20d0717c42c24a554527f032564ef62400c7', variant: 'minus' }), h("input", { key: 'e1f7facd9c9e6012e577688ba13b8119effce06d', class: 'p-input w-full', type: 'range', min: '0', max: '100', value: this._currentScale, onInput: ev => this._onInput(ev.target.value), step: '0.5' }), h("p-icon", { key: '25815296c58d77cc72a1d7de328e8f44c897b608', variant: 'plus' }))));
40
+ }), "theme-color": 'rgba(255, 255, 255, 0.5)', hidden: true }), h("cropper-selection", { key: '3dcc1ed6c57736a627b510f5294291b5c1214683', "initial-coverage": '0.7', "aspect-ratio": '1', ref: ref => (this._selectionRef = ref) }), h("cropper-handle", { key: 'e987c84b87f01162c7ab093d606463f189a16bf7', action: 'move', plain: true }))), h("div", { key: 'f75de6ebbd0e0e5e27ef6d455c5dad7467240d2e', class: 'flex w-full items-center gap-2 px-14 text-storm-vague tablet:max-w-xs tablet:px-1' }, h("p-icon", { key: '115a2f9d9cd815b172ecf132db230fa6ed0d0855', variant: 'minus' }), h("input", { key: '83aa40b551425dc62588d9308cc6c7a683fbbdf0', class: 'p-input w-full', type: 'range', min: '0', max: '100', value: this._currentScale, onInput: ev => this._onInput(ev.target.value), step: '0.5' }), h("p-icon", { key: '64e60553e7ea9ee72fde7acdc6ff05fe298a639d', variant: 'plus' }))));
41
41
  }
42
42
  _setImageRef(ref) {
43
43
  if (this._imageRef) {
@@ -112,7 +112,7 @@ export class Datepicker {
112
112
  this.parseValue(this.value);
113
113
  }
114
114
  render() {
115
- return (h(Host, { key: '0de36ac63a8498aa89896203a95b32990ff09005', class: 'p-datepicker' }, h("p-dropdown", { key: '03c3fd3666a07cafd8c972627637a335f4dbd31f', strategy: this.strategy, placement: this.placement, disableTriggerClick: true, applyMaxWidth: false, applyFullWidth: false, insideClick: true, show: this._showDropdown }, h("p-field", { key: '79f0be9fbc485923a05f884d7ab215d53d56ea46', slot: 'trigger', icon: this.hideIconWhenFilled && !!this._value ? null : 'calendar-multi', iconPosition: 'start', size: this.size, prefix: this.prefix, label: this.label, helper: this.helper, required: this.required, error: this.error, disabled: 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) }), h("div", { key: '3f096013cc6cde840576d9a71cd8ff6bdbf5c0d7', slot: 'items' }, h("p-calendar", { key: 'e40c1f2a0c1458a836268f4d39e64bb3bb637b5a', 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 })))));
115
+ return (h(Host, { key: '63453905266faabeedd7d701572cf9ac2a7722c1', class: 'p-datepicker' }, h("p-dropdown", { key: '06f85b59084cd8ca887bf4299f7fc9f5dd4ca311', strategy: this.strategy, placement: this.placement, disableTriggerClick: true, applyMaxWidth: false, applyFullWidth: false, insideClick: true, show: this._showDropdown }, h("p-field", { key: 'fb5a0f909aa2ea65afd25227b54bbeb76e11f0bf', slot: 'trigger', icon: this.hideIconWhenFilled && !!this._value ? null : 'calendar-multi', iconPosition: 'start', size: this.size, prefix: this.prefix, label: this.label, helper: this.helper, required: this.required, error: this.error, disabled: 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) }), h("div", { key: 'f073cd37126b6540dc308b4c1770e906e31e95be', slot: 'items' }, h("p-calendar", { key: 'd1ca3cf3058485e7bc5197f398bc2f7f3342cd7d', 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 })))));
116
116
  }
117
117
  documentClickHandler({ target }) {
118
118
  if (!this._showDropdown || childOf(target, this._el)) {
@@ -69,12 +69,12 @@ export class Dropdown {
69
69
  };
70
70
  let dropdownContainer;
71
71
  if (this.usePortal) {
72
- dropdownContainer = (h("p-portal", { key: '81ed3076cb5ac5af3c6fcf097ad343cede28bebb', ...dropdownContainerProps }, h("p-dropdown-menu-container", { key: '1a237f89a54eef8dbd5a992fb7c2aac0d207af48', maxWidth: !this.calculateWidth && this.applyMaxWidth, fullWidth: this.applyFullWidth && !this.applyMaxWidth, allowOverflow: this.allowOverflow, scrollable: this.scrollable }, h("slot", { key: '9615d965a064a4c0d3844b9baa0710049c78aa40', name: 'items' }))));
72
+ dropdownContainer = (h("p-portal", { key: '86ffcff551d96bc243504d6d6b3d07bbfc34a0b5', ...dropdownContainerProps }, h("p-dropdown-menu-container", { key: '0765572d22af5a168383b1d108d737f15c5fac27', maxWidth: !this.calculateWidth && this.applyMaxWidth, fullWidth: this.applyFullWidth && !this.applyMaxWidth, allowOverflow: this.allowOverflow, scrollable: this.scrollable }, h("slot", { key: '7e07948c37401209ad263d489d84d3b228c1ebc9', name: 'items' }))));
73
73
  }
74
74
  else {
75
- dropdownContainer = (h("p-dropdown-menu-container", { key: '9c84750f3ac8235467b4d877ce8c71848352c053', maxWidth: !this.calculateWidth && this.applyMaxWidth, fullWidth: this.applyFullWidth && !this.applyMaxWidth, allowOverflow: this.allowOverflow, scrollable: this.scrollable, ...dropdownContainerProps }, h("slot", { key: '94521db2dcb1fe662dff6b05d740fdfd5e1e8571', name: 'items' })));
75
+ dropdownContainer = (h("p-dropdown-menu-container", { key: '02a521eec91448042ebe06a44eda62f3f7f2721d', maxWidth: !this.calculateWidth && this.applyMaxWidth, fullWidth: this.applyFullWidth && !this.applyMaxWidth, allowOverflow: this.allowOverflow, scrollable: this.scrollable, ...dropdownContainerProps }, h("slot", { key: '9feadf39471cf9a21cc54f254e9606bed0a22add', name: 'items' })));
76
76
  }
77
- return (h(Host, { key: '460ac62023f171b2e115af2d3de8bb77b55415dc', class: 'p-dropdown relative' }, h("div", { key: 'bba16627eac8cde7593ed69e0e7fec5d02987e52', class: 'trigger', ref: ref => (this._trigger = ref), onClick: () => this._triggerClickHandler() }, h("slot", { key: '6af8feb795d8b2e2401a1a70e7ec3029e7194132', name: 'trigger' })), dropdownContainer));
77
+ return (h(Host, { key: 'f5553c381b470b227e88cd89c9cd54f8c3b6a3a5', class: 'p-dropdown relative' }, h("div", { key: 'b69a4afd2b82c44b3fe0a07f0de0c9f2c2298993', class: 'trigger', ref: ref => (this._trigger = ref), onClick: () => this._triggerClickHandler() }, h("slot", { key: '88ee2ccfb753c4f8e8cc29c161124ad451f2530f', name: 'trigger' })), dropdownContainer));
78
78
  }
79
79
  _checkButtons(active = false) {
80
80
  if (!this.applyChevron) {
@@ -110,6 +110,7 @@ export class Field {
110
110
  this.placeholder = undefined;
111
111
  this.helper = undefined;
112
112
  this.required = true;
113
+ this.autofocus = false;
113
114
  this.error = undefined;
114
115
  this.errorPlacement = undefined;
115
116
  this.disabled = false;
@@ -133,18 +134,21 @@ export class Field {
133
134
  */
134
135
  _el;
135
136
  _inputRef;
137
+ componentDidLoad() {
138
+ this._checkAutoFocus();
139
+ }
136
140
  render() {
137
141
  const { prefix, suffix, hasHeaderSlot, hasLabelSlot, hasHelperSlot, hasErrorSlot, } = this._getSlotInfo();
138
- return (h(Host, { key: '369e15b85e845790a9df07aa20508c953bb39ff3', class: 'p-field' }, h("p-field-container", { key: '232ac448fdd71b051d6e6d5ebcd65e5ce8effa38', forceShowTooltip: this.forceShowTooltip || this._focused, label: this.label, helper: this.helper, error: this.error, required: this.required }, hasLabelSlot && (h("slot", { key: '14db4b1e32a88d4936ed42e7b02fce2aa842484b', name: 'label', slot: 'label' })), hasHeaderSlot && (h("slot", { key: '30b883d2b9804772883690e2e02c480124f036c1', name: 'header', slot: 'header' })), hasHelperSlot && (h("slot", { key: '63dd8b1491818988bd2c3cf34064139f40a80824', name: 'helper', slot: 'helper' })), hasErrorSlot && (h("slot", { key: '9d764d0293a6085ef4d4e62f3a0899fb65951988', name: 'error', slot: 'error' })), h("div", { key: '7d439bcdbc4f9c6d7ee39732b9661c3c99aaa49e', class: field({
142
+ return (h(Host, { key: 'cf990118b7fb2b397a4ed1d00026893fb5d65651', class: 'p-field' }, h("p-field-container", { key: '8957ddbafafbe9be741359ae9c4265bb5c2ab08d', forceShowTooltip: this.forceShowTooltip || this._focused, label: this.label, helper: this.helper, error: this.error, required: this.required }, hasLabelSlot && (h("slot", { key: 'f60081c6a1485f8066715a2e422ea5903f0963a8', name: 'label', slot: 'label' })), hasHeaderSlot && (h("slot", { key: 'e4b78626d1a79acb5b95692158b5809a4b24dd63', name: 'header', slot: 'header' })), hasHelperSlot && (h("slot", { key: '4346e4bc124d1de2ceb4ee4005eb9b661bf677dd', name: 'helper', slot: 'helper' })), hasErrorSlot && (h("slot", { key: '6d0408efce0e27da7d14dfb4aa9fffb38d3b927a', name: 'error', slot: 'error' })), h("div", { key: 'cf6aed5c63d0652a7fa0ca66c562a7c79d57dafa', class: field({
139
143
  error: !!this.error?.length,
140
144
  disabled: this.disabled,
141
145
  focused: this.focused || this._focused,
142
146
  size: this.size,
143
- }), slot: 'content' }, (prefix || (this.icon && this.iconPosition === 'start')) && (h("div", { key: '4eff37bc22e6706a6546a4367bb89d25f4a6f91f', class: prefixAndSuffic({
147
+ }), slot: 'content' }, (prefix || (this.icon && this.iconPosition === 'start')) && (h("div", { key: 'fb6c0aa6cebc783dc15a44462bc04e89fcd13f13', class: prefixAndSuffic({
144
148
  error: !!this.error?.length,
145
149
  disabled: this.disabled,
146
150
  focused: this.focused || this._focused,
147
- }), onClick: () => this._focusInput() }, this.icon && this.iconPosition === 'start' ? (h("p-icon", { class: 'flex', variant: this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (prefix))), this._getInput(), (suffix || (this.icon && this.iconPosition === 'end')) && (h("div", { key: '25f300b997455353e9563035288902de694b3130', class: prefixAndSuffic({
151
+ }), onClick: () => this._focusInput() }, this.icon && this.iconPosition === 'start' ? (h("p-icon", { class: 'flex', variant: this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (prefix))), this._getInput(), (suffix || (this.icon && this.iconPosition === 'end')) && (h("div", { key: '2822280cb543d2315d062b00b52729f1603b8c6f', class: prefixAndSuffic({
148
152
  error: !!this.error?.length,
149
153
  disabled: this.disabled,
150
154
  focused: this.focused || this._focused,
@@ -230,6 +234,16 @@ export class Field {
230
234
  this.value = value;
231
235
  this.valueChange.emit(value);
232
236
  }
237
+ _checkAutoFocus() {
238
+ if (!this.autofocus) {
239
+ return;
240
+ }
241
+ if (!this._inputRef) {
242
+ setTimeout(() => this._checkAutoFocus(), 100);
243
+ return;
244
+ }
245
+ this._focusInput();
246
+ }
233
247
  static get is() { return "p-field"; }
234
248
  static get encapsulation() { return "shadow"; }
235
249
  static get originalStyleUrls() {
@@ -539,6 +553,26 @@ export class Field {
539
553
  "reflect": true,
540
554
  "defaultValue": "true"
541
555
  },
556
+ "autofocus": {
557
+ "type": "boolean",
558
+ "mutable": false,
559
+ "complexType": {
560
+ "original": "boolean",
561
+ "resolved": "boolean",
562
+ "references": {}
563
+ },
564
+ "required": false,
565
+ "optional": false,
566
+ "docs": {
567
+ "tags": [],
568
+ "text": "Wether to autofocus the field"
569
+ },
570
+ "getter": false,
571
+ "setter": false,
572
+ "attribute": "autofocus",
573
+ "reflect": true,
574
+ "defaultValue": "false"
575
+ },
542
576
  "error": {
543
577
  "type": "string",
544
578
  "mutable": false,
@@ -1 +1 @@
1
- {"version":3,"file":"field.component.js","sourceRoot":"","sources":["../../../../src/components/molecules/field/field.component.tsx"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I,CAAC,WAAW,CAAC,EAAE,CAAC;IAC5C,CAAC;IAEO,UAAU;QACjB,IAAI,CAAC,IAAI,CAAC,SAAS,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,CAAC;YAC/C,OAAO;QACR,CAAC;QAED,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC;IACzB,CAAC;IAEO,YAAY,CAAC,EAAE;QACtB,MAAM,KAAK,GAAI,EAAE,CAAC,MAAiD,CAAC,KAAK,CAAC;QAC1E,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC9B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Placement } from '@floating-ui/dom';\nimport {\n\tComponent,\n\tElement,\n\tEvent,\n\tEventEmitter,\n\th,\n\tHost,\n\tListen,\n\tProp,\n\tState,\n} from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport { HTMLInputTypeAttribute } from 'react';\nimport { RotateOptions } from '../../../types/tailwind';\nimport { IconFlipOptions, IconVariant } from '../../atoms/icon/icon.component';\nimport { templateFunc } from '../field-container/field-container.component';\n\nconst field = cva(\n\t['flex gap-2', 'w-inherit px-2', 'border border-solid rounded-lg'],\n\t{\n\t\tvariants: {\n\t\t\tsize: {\n\t\t\t\tsm: 'h-6',\n\t\t\t\tbase: 'h-8',\n\t\t\t},\n\t\t\tdisabled: {\n\t\t\t\tfalse: 'bg-white',\n\t\t\t\ttrue: 'bg-white-600 cursor-not-allowed',\n\t\t\t},\n\t\t\tfocused: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t\terror: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [\n\t\t\t{\n\t\t\t\tfocused: false,\n\t\t\t\terror: false,\n\t\t\t\tclass: 'border-black-teal-100',\n\t\t\t},\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\tfocused: true,\n\t\t\t\terror: false,\n\t\t\t\tclass:\n\t\t\t\t\t'border-supportive-lilac-800 ring ring-supportive-lilac-100 selection:bg-supportive-lilac',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\terror: true,\n\t\t\t\tclass: 'border-negative-red',\n\t\t\t},\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\tfocused: true,\n\t\t\t\terror: true,\n\t\t\t\tclass: 'ring ring-negative-red-50 selection:bg-negative-red-50',\n\t\t\t},\n\t\t],\n\t}\n);\n\nconst input = cva(\n\t'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 h-full',\n\t{\n\t\tvariants: {\n\t\t\tdisabled: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: 'cursor-not-allowed',\n\t\t\t},\n\t\t},\n\t}\n);\n\nconst prefixAndSuffic = cva(\n\t['flex flex-shrink-0 justify-center items-center text-center'],\n\t{\n\t\tvariants: {\n\t\t\tdisabled: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: 'text-black-teal-100',\n\t\t\t},\n\t\t\tfocused: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t\terror: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\tfocused: false,\n\t\t\t\terror: false,\n\t\t\t\tclass: 'text-black-teal-300',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\tfocused: true,\n\t\t\t\terror: false,\n\t\t\t\tclass: 'text-black-teal-500',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\tfocused: false,\n\t\t\t\terror: true,\n\t\t\t\tclass: 'text-negative-red',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\tfocused: true,\n\t\t\t\terror: true,\n\t\t\t\tclass: 'text-negative-red-800',\n\t\t\t},\n\t\t],\n\t}\n);\n\n@Component({\n\ttag: 'p-field',\n\tstyleUrl: './field.component.css',\n\tshadow: true,\n})\nexport class Field {\n\t/**\n\t * The size of the input group\n\t */\n\t@Prop() size: 'sm' | 'base' = 'base';\n\n\t/**\n\t * The type of the input group\n\t */\n\t@Prop() type: HTMLInputTypeAttribute | 'textarea' | 'slot' = 'text';\n\n\t/**\n\t * The size of the input group\n\t */\n\t@Prop() properties: any | string = {};\n\n\t/**\n\t * The prefix of the input group\n\t */\n\t@Prop() prefix: string;\n\n\t/**\n\t * The suffix of the input group\n\t */\n\t@Prop() suffix: string;\n\n\t/**\n\t * Icon of the input group\n\t */\n\t@Prop() icon: IconVariant;\n\n\t/**\n\t * Icon flip */\n\t@Prop() iconFlip: IconFlipOptions;\n\n\t/**\n\t * Icon rotate\n\t */\n\t@Prop() iconRotate: RotateOptions;\n\n\t/**\n\t * Icon position\n\t */\n\t@Prop() iconPosition: 'start' | 'end' = 'start';\n\n\t/**\n\t * The value of the input\n\t */\n\t@Prop() value: string;\n\n\t/**\n\t * The label of the input group\n\t */\n\t@Prop() label: string;\n\n\t/**\n\t * The placeholder of the input\n\t */\n\t@Prop() placeholder: string;\n\n\t/**\n\t * The helper of the input group\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 = true;\n\n\t/**\n\t * The error to display\n\t */\n\t@Prop({ reflect: true }) error: string;\n\n\t/**\n\t * The placement of the error popover\n\t */\n\t@Prop() errorPlacement: Placement;\n\n\t/**\n\t * Wether the input group is disabled\n\t */\n\t@Prop({ reflect: true }) disabled: boolean = false;\n\n\t/**\n\t * Wether the input group is focused\n\t */\n\t@Prop({ reflect: true }) focused: boolean = false;\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 * Wether to select all text on focus\n\t */\n\t@Prop({ reflect: true }) selectAllOnFocus: boolean = true;\n\n\t/**\n\t * The method to use when focusing the input\n\t */\n\t@Prop() focusMethod: 'focus' | 'click' = 'focus';\n\n\t/**\n\t * The template for the optional text\n\t */\n\t@Prop() optionalTemplate: templateFunc;\n\n\t/**\n\t * Event whenever the value changes\n\t */\n\t@Event() valueChange: EventEmitter<string>;\n\n\t/**\n\t * Event whenever the input ref changes\n\t */\n\t@Event() inputRefChange: EventEmitter<HTMLInputElement | HTMLTextAreaElement>;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t@State() private _focused = false;\n\n\tprivate _inputRef: HTMLInputElement | HTMLTextAreaElement;\n\n\trender() {\n\t\tconst {\n\t\t\tprefix,\n\t\t\tsuffix,\n\t\t\thasHeaderSlot,\n\t\t\thasLabelSlot,\n\t\t\thasHelperSlot,\n\t\t\thasErrorSlot,\n\t\t} = this._getSlotInfo();\n\n\t\treturn (\n\t\t\t<Host class='p-field'>\n\t\t\t\t<p-field-container\n\t\t\t\t\tforceShowTooltip={this.forceShowTooltip || this._focused}\n\t\t\t\t\tlabel={this.label}\n\t\t\t\t\thelper={this.helper}\n\t\t\t\t\terror={this.error}\n\t\t\t\t\trequired={this.required}\n\t\t\t\t>\n\t\t\t\t\t{hasLabelSlot && (\n\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\tname='label'\n\t\t\t\t\t\t\tslot='label'\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{hasHeaderSlot && (\n\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\tname='header'\n\t\t\t\t\t\t\tslot='header'\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{hasHelperSlot && (\n\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\tname='helper'\n\t\t\t\t\t\t\tslot='helper'\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\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='error'\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\n\t\t\t\t\t<div\n\t\t\t\t\t\tclass={field({\n\t\t\t\t\t\t\terror: !!this.error?.length,\n\t\t\t\t\t\t\tdisabled: this.disabled,\n\t\t\t\t\t\t\tfocused: this.focused || this._focused,\n\t\t\t\t\t\t\tsize: this.size,\n\t\t\t\t\t\t})}\n\t\t\t\t\t\tslot='content'\n\t\t\t\t\t>\n\t\t\t\t\t\t{(prefix || (this.icon && this.iconPosition === 'start')) && (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclass={prefixAndSuffic({\n\t\t\t\t\t\t\t\t\terror: !!this.error?.length,\n\t\t\t\t\t\t\t\t\tdisabled: this.disabled,\n\t\t\t\t\t\t\t\t\tfocused: this.focused || this._focused,\n\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t\tonClick={() => this._focusInput()}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{this.icon && this.iconPosition === 'start' ? (\n\t\t\t\t\t\t\t\t\t<p-icon\n\t\t\t\t\t\t\t\t\t\tclass='flex'\n\t\t\t\t\t\t\t\t\t\tvariant={this.icon}\n\t\t\t\t\t\t\t\t\t\trotate={this.iconRotate}\n\t\t\t\t\t\t\t\t\t\tflip={this.iconFlip}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\tprefix\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\n\t\t\t\t\t\t{this._getInput()}\n\n\t\t\t\t\t\t{(suffix || (this.icon && this.iconPosition === 'end')) && (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclass={prefixAndSuffic({\n\t\t\t\t\t\t\t\t\terror: !!this.error?.length,\n\t\t\t\t\t\t\t\t\tdisabled: this.disabled,\n\t\t\t\t\t\t\t\t\tfocused: this.focused || this._focused,\n\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t\tonClick={() => this._focusInput()}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{this.icon && this.iconPosition === 'end' ? (\n\t\t\t\t\t\t\t\t\t<p-icon\n\t\t\t\t\t\t\t\t\t\tclass='flex'\n\t\t\t\t\t\t\t\t\t\tvariant={this.icon}\n\t\t\t\t\t\t\t\t\t\trotate={this.iconRotate}\n\t\t\t\t\t\t\t\t\t\tflip={this.iconFlip}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\tsuffix\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\t\t\t\t</p-field-container>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t@Listen('focusin')\n\thandleFocusIn() {\n\t\tif (this.disabled) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._focused = true;\n\t\tthis._selectAll();\n\t}\n\n\t@Listen('focusout')\n\thandleFocusOut() {\n\t\tif (this.disabled) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._focused = false;\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 hasPrefixSlot = !!this._el.querySelector(':scope > [slot=\"prefix\"]');\n\t\tconst hasSuffixSlot = !!this._el.querySelector(':scope > [slot=\"suffix\"]');\n\t\tconst hasHeaderSlot = !!this._el.querySelector(':scope > [slot=\"header\"]');\n\t\tconst hasErrorSlot = !!this._el.querySelector(':scope > [slot=\"error\"]');\n\n\t\tconst prefix = hasPrefixSlot ? <slot name='prefix' /> : this.prefix;\n\t\tconst suffix = hasSuffixSlot ? <slot name='suffix' /> : this.suffix;\n\n\t\tconst errorAndErrorIsNotBoolean =\n\t\t\tthis.error && typeof this.error === 'string' && this.error !== 'true';\n\n\t\treturn {\n\t\t\thasHelperSlot,\n\t\t\thasLabelSlot,\n\t\t\thasPrefixSlot,\n\t\t\thasSuffixSlot,\n\t\t\thasHeaderSlot,\n\t\t\thasErrorSlot,\n\t\t\tprefix,\n\t\t\tsuffix,\n\t\t\terrorAndErrorIsNotBoolean,\n\t\t};\n\t}\n\n\tprivate _getInput() {\n\t\tif (this.type === 'custom') {\n\t\t\treturn <slot name='input' />;\n\t\t}\n\n\t\tconst props = {\n\t\t\tclass: input({\n\t\t\t\tdisabled: this.disabled,\n\t\t\t}),\n\t\t\tvalue: this.value,\n\t\t\tplaceholder: this.placeholder,\n\t\t\tdisabled: this.disabled,\n\t\t\tonInput: (ev: Event) => this._valueChange(ev),\n\t\t};\n\n\t\tlet properties = this.properties ?? {};\n\t\tif (typeof properties === 'string') {\n\t\t\tproperties = JSON.parse(this.properties);\n\t\t}\n\n\t\tif (this.type === 'textarea') {\n\t\t\t<textarea\n\t\t\t\tref={ref => this._setInputRef(ref)}\n\t\t\t\t{...props}\n\t\t\t\t{...properties}\n\t\t\t/>;\n\t\t}\n\n\t\treturn (\n\t\t\t<input\n\t\t\t\ttype={this.type}\n\t\t\t\tref={ref => this._setInputRef(ref)}\n\t\t\t\t{...props}\n\t\t\t\t{...properties}\n\t\t\t/>\n\t\t);\n\t}\n\n\tprivate _setInputRef(ref: HTMLInputElement | HTMLTextAreaElement) {\n\t\tthis._inputRef = ref;\n\t\tthis.inputRefChange.emit(ref);\n\t}\n\n\tprivate _focusInput() {\n\t\tif (this._inputRef) {\n\t\t\tthis._inputRef.focus();\n\t\t\treturn;\n\t\t}\n\n\t\tconst input = this._el.querySelector(':scope > [slot=\"input\"]');\n\t\t(input as HTMLElement)[this.focusMethod]();\n\t}\n\n\tprivate _selectAll() {\n\t\tif (!this._inputRef || !this.selectAllOnFocus) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._inputRef.select();\n\t}\n\n\tprivate _valueChange(ev) {\n\t\tconst value = (ev.target as HTMLTextAreaElement | HTMLInputElement).value;\n\t\tthis.value = value;\n\t\tthis.valueChange.emit(value);\n\t}\n}\n"]}
1
+ {"version":3,"file":"field.component.js","sourceRoot":"","sources":["../../../../src/components/molecules/field/field.component.tsx"],"names":[],"mappings":"AACA,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;AAM/C,MAAM,KAAK,GAAG,GAAG,CAChB,CAAC,YAAY,EAAE,gBAAgB,EAAE,gCAAgC,CAAC,EAClE;IACC,QAAQ,EAAE;QACT,IAAI,EAAE;YACL,EAAE,EAAE,KAAK;YACT,IAAI,EAAE,KAAK;SACX;QACD,QAA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CAAC;QAC1E,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC9B,CAAC;IAEO,eAAe;QACtB,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC;YACrB,OAAO;QACR,CAAC;QAED,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC;YACrB,UAAU,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,GAAG,CAAC,CAAC;YAC9C,OAAO;QACR,CAAC;QAED,IAAI,CAAC,WAAW,EAAE,CAAC;IACpB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Placement } from '@floating-ui/dom';\nimport {\n\tComponent,\n\tElement,\n\tEvent,\n\tEventEmitter,\n\th,\n\tHost,\n\tListen,\n\tProp,\n\tState,\n} from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport { HTMLInputTypeAttribute } from 'react';\nimport { RotateOptions } from '../../../types/tailwind';\nimport { IconFlipOptions, IconVariant } from '../../atoms/icon/icon.component';\nimport { templateFunc } from '../field-container/field-container.component';\n\nconst field = cva(\n\t['flex gap-2', 'w-inherit px-2', 'border border-solid rounded-lg'],\n\t{\n\t\tvariants: {\n\t\t\tsize: {\n\t\t\t\tsm: 'h-6',\n\t\t\t\tbase: 'h-8',\n\t\t\t},\n\t\t\tdisabled: {\n\t\t\t\tfalse: 'bg-white',\n\t\t\t\ttrue: 'bg-white-600 cursor-not-allowed',\n\t\t\t},\n\t\t\tfocused: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t\terror: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [\n\t\t\t{\n\t\t\t\tfocused: false,\n\t\t\t\terror: false,\n\t\t\t\tclass: 'border-black-teal-100',\n\t\t\t},\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\tfocused: true,\n\t\t\t\terror: false,\n\t\t\t\tclass:\n\t\t\t\t\t'border-supportive-lilac-800 ring ring-supportive-lilac-100 selection:bg-supportive-lilac',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\terror: true,\n\t\t\t\tclass: 'border-negative-red',\n\t\t\t},\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\tfocused: true,\n\t\t\t\terror: true,\n\t\t\t\tclass: 'ring ring-negative-red-50 selection:bg-negative-red-50',\n\t\t\t},\n\t\t],\n\t}\n);\n\nconst input = cva(\n\t'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 h-full',\n\t{\n\t\tvariants: {\n\t\t\tdisabled: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: 'cursor-not-allowed',\n\t\t\t},\n\t\t},\n\t}\n);\n\nconst prefixAndSuffic = cva(\n\t['flex flex-shrink-0 justify-center items-center text-center'],\n\t{\n\t\tvariants: {\n\t\t\tdisabled: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: 'text-black-teal-100',\n\t\t\t},\n\t\t\tfocused: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t\terror: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\tfocused: false,\n\t\t\t\terror: false,\n\t\t\t\tclass: 'text-black-teal-300',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\tfocused: true,\n\t\t\t\terror: false,\n\t\t\t\tclass: 'text-black-teal-500',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\tfocused: false,\n\t\t\t\terror: true,\n\t\t\t\tclass: 'text-negative-red',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\tfocused: true,\n\t\t\t\terror: true,\n\t\t\t\tclass: 'text-negative-red-800',\n\t\t\t},\n\t\t],\n\t}\n);\n\n@Component({\n\ttag: 'p-field',\n\tstyleUrl: './field.component.css',\n\tshadow: true,\n})\nexport class Field {\n\t/**\n\t * The size of the input group\n\t */\n\t@Prop() size: 'sm' | 'base' = 'base';\n\n\t/**\n\t * The type of the input group\n\t */\n\t@Prop() type: HTMLInputTypeAttribute | 'textarea' | 'slot' = 'text';\n\n\t/**\n\t * The size of the input group\n\t */\n\t@Prop() properties: any | string = {};\n\n\t/**\n\t * The prefix of the input group\n\t */\n\t@Prop() prefix: string;\n\n\t/**\n\t * The suffix of the input group\n\t */\n\t@Prop() suffix: string;\n\n\t/**\n\t * Icon of the input group\n\t */\n\t@Prop() icon: IconVariant;\n\n\t/**\n\t * Icon flip */\n\t@Prop() iconFlip: IconFlipOptions;\n\n\t/**\n\t * Icon rotate\n\t */\n\t@Prop() iconRotate: RotateOptions;\n\n\t/**\n\t * Icon position\n\t */\n\t@Prop() iconPosition: 'start' | 'end' = 'start';\n\n\t/**\n\t * The value of the input\n\t */\n\t@Prop() value: string;\n\n\t/**\n\t * The label of the input group\n\t */\n\t@Prop() label: string;\n\n\t/**\n\t * The placeholder of the input\n\t */\n\t@Prop() placeholder: string;\n\n\t/**\n\t * The helper of the input group\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 = true;\n\n\t/**\n\t * Wether to autofocus the field\n\t */\n\t@Prop({ reflect: true }) autofocus: boolean = false;\n\n\t/**\n\t * The error to display\n\t */\n\t@Prop({ reflect: true }) error: string;\n\n\t/**\n\t * The placement of the error popover\n\t */\n\t@Prop() errorPlacement: Placement;\n\n\t/**\n\t * Wether the input group is disabled\n\t */\n\t@Prop({ reflect: true }) disabled: boolean = false;\n\n\t/**\n\t * Wether the input group is focused\n\t */\n\t@Prop({ reflect: true }) focused: boolean = false;\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 * Wether to select all text on focus\n\t */\n\t@Prop({ reflect: true }) selectAllOnFocus: boolean = true;\n\n\t/**\n\t * The method to use when focusing the input\n\t */\n\t@Prop() focusMethod: 'focus' | 'click' = 'focus';\n\n\t/**\n\t * The template for the optional text\n\t */\n\t@Prop() optionalTemplate: templateFunc;\n\n\t/**\n\t * Event whenever the value changes\n\t */\n\t@Event() valueChange: EventEmitter<string>;\n\n\t/**\n\t * Event whenever the input ref changes\n\t */\n\t@Event() inputRefChange: EventEmitter<HTMLInputElement | HTMLTextAreaElement>;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t@State() private _focused = false;\n\n\tprivate _inputRef: HTMLInputElement | HTMLTextAreaElement;\n\n\tcomponentDidLoad() {\n\t\tthis._checkAutoFocus();\n\t}\n\n\trender() {\n\t\tconst {\n\t\t\tprefix,\n\t\t\tsuffix,\n\t\t\thasHeaderSlot,\n\t\t\thasLabelSlot,\n\t\t\thasHelperSlot,\n\t\t\thasErrorSlot,\n\t\t} = this._getSlotInfo();\n\n\t\treturn (\n\t\t\t<Host class='p-field'>\n\t\t\t\t<p-field-container\n\t\t\t\t\tforceShowTooltip={this.forceShowTooltip || this._focused}\n\t\t\t\t\tlabel={this.label}\n\t\t\t\t\thelper={this.helper}\n\t\t\t\t\terror={this.error}\n\t\t\t\t\trequired={this.required}\n\t\t\t\t>\n\t\t\t\t\t{hasLabelSlot && (\n\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\tname='label'\n\t\t\t\t\t\t\tslot='label'\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{hasHeaderSlot && (\n\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\tname='header'\n\t\t\t\t\t\t\tslot='header'\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{hasHelperSlot && (\n\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\tname='helper'\n\t\t\t\t\t\t\tslot='helper'\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\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='error'\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\n\t\t\t\t\t<div\n\t\t\t\t\t\tclass={field({\n\t\t\t\t\t\t\terror: !!this.error?.length,\n\t\t\t\t\t\t\tdisabled: this.disabled,\n\t\t\t\t\t\t\tfocused: this.focused || this._focused,\n\t\t\t\t\t\t\tsize: this.size,\n\t\t\t\t\t\t})}\n\t\t\t\t\t\tslot='content'\n\t\t\t\t\t>\n\t\t\t\t\t\t{(prefix || (this.icon && this.iconPosition === 'start')) && (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclass={prefixAndSuffic({\n\t\t\t\t\t\t\t\t\terror: !!this.error?.length,\n\t\t\t\t\t\t\t\t\tdisabled: this.disabled,\n\t\t\t\t\t\t\t\t\tfocused: this.focused || this._focused,\n\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t\tonClick={() => this._focusInput()}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{this.icon && this.iconPosition === 'start' ? (\n\t\t\t\t\t\t\t\t\t<p-icon\n\t\t\t\t\t\t\t\t\t\tclass='flex'\n\t\t\t\t\t\t\t\t\t\tvariant={this.icon}\n\t\t\t\t\t\t\t\t\t\trotate={this.iconRotate}\n\t\t\t\t\t\t\t\t\t\tflip={this.iconFlip}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\tprefix\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\n\t\t\t\t\t\t{this._getInput()}\n\n\t\t\t\t\t\t{(suffix || (this.icon && this.iconPosition === 'end')) && (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclass={prefixAndSuffic({\n\t\t\t\t\t\t\t\t\terror: !!this.error?.length,\n\t\t\t\t\t\t\t\t\tdisabled: this.disabled,\n\t\t\t\t\t\t\t\t\tfocused: this.focused || this._focused,\n\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t\tonClick={() => this._focusInput()}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{this.icon && this.iconPosition === 'end' ? (\n\t\t\t\t\t\t\t\t\t<p-icon\n\t\t\t\t\t\t\t\t\t\tclass='flex'\n\t\t\t\t\t\t\t\t\t\tvariant={this.icon}\n\t\t\t\t\t\t\t\t\t\trotate={this.iconRotate}\n\t\t\t\t\t\t\t\t\t\tflip={this.iconFlip}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\tsuffix\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\t\t\t\t</p-field-container>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t@Listen('focusin')\n\thandleFocusIn() {\n\t\tif (this.disabled) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._focused = true;\n\t\tthis._selectAll();\n\t}\n\n\t@Listen('focusout')\n\thandleFocusOut() {\n\t\tif (this.disabled) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._focused = false;\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 hasPrefixSlot = !!this._el.querySelector(':scope > [slot=\"prefix\"]');\n\t\tconst hasSuffixSlot = !!this._el.querySelector(':scope > [slot=\"suffix\"]');\n\t\tconst hasHeaderSlot = !!this._el.querySelector(':scope > [slot=\"header\"]');\n\t\tconst hasErrorSlot = !!this._el.querySelector(':scope > [slot=\"error\"]');\n\n\t\tconst prefix = hasPrefixSlot ? <slot name='prefix' /> : this.prefix;\n\t\tconst suffix = hasSuffixSlot ? <slot name='suffix' /> : this.suffix;\n\n\t\tconst errorAndErrorIsNotBoolean =\n\t\t\tthis.error && typeof this.error === 'string' && this.error !== 'true';\n\n\t\treturn {\n\t\t\thasHelperSlot,\n\t\t\thasLabelSlot,\n\t\t\thasPrefixSlot,\n\t\t\thasSuffixSlot,\n\t\t\thasHeaderSlot,\n\t\t\thasErrorSlot,\n\t\t\tprefix,\n\t\t\tsuffix,\n\t\t\terrorAndErrorIsNotBoolean,\n\t\t};\n\t}\n\n\tprivate _getInput() {\n\t\tif (this.type === 'custom') {\n\t\t\treturn <slot name='input' />;\n\t\t}\n\n\t\tconst props = {\n\t\t\tclass: input({\n\t\t\t\tdisabled: this.disabled,\n\t\t\t}),\n\t\t\tvalue: this.value,\n\t\t\tplaceholder: this.placeholder,\n\t\t\tdisabled: this.disabled,\n\t\t\tonInput: (ev: Event) => this._valueChange(ev),\n\t\t};\n\n\t\tlet properties = this.properties ?? {};\n\t\tif (typeof properties === 'string') {\n\t\t\tproperties = JSON.parse(this.properties);\n\t\t}\n\n\t\tif (this.type === 'textarea') {\n\t\t\t<textarea\n\t\t\t\tref={ref => this._setInputRef(ref)}\n\t\t\t\t{...props}\n\t\t\t\t{...properties}\n\t\t\t/>;\n\t\t}\n\n\t\treturn (\n\t\t\t<input\n\t\t\t\ttype={this.type}\n\t\t\t\tref={ref => this._setInputRef(ref)}\n\t\t\t\t{...props}\n\t\t\t\t{...properties}\n\t\t\t/>\n\t\t);\n\t}\n\n\tprivate _setInputRef(ref: HTMLInputElement | HTMLTextAreaElement) {\n\t\tthis._inputRef = ref;\n\t\tthis.inputRefChange.emit(ref);\n\t}\n\n\tprivate _focusInput() {\n\t\tif (this._inputRef) {\n\t\t\tthis._inputRef.focus();\n\t\t\treturn;\n\t\t}\n\n\t\tconst input = this._el.querySelector(':scope > [slot=\"input\"]');\n\t\t(input as HTMLElement)[this.focusMethod]();\n\t}\n\n\tprivate _selectAll() {\n\t\tif (!this._inputRef || !this.selectAllOnFocus) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._inputRef.select();\n\t}\n\n\tprivate _valueChange(ev) {\n\t\tconst value = (ev.target as HTMLTextAreaElement | HTMLInputElement).value;\n\t\tthis.value = value;\n\t\tthis.valueChange.emit(value);\n\t}\n\n\tprivate _checkAutoFocus() {\n\t\tif (!this.autofocus) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!this._inputRef) {\n\t\t\tsetTimeout(() => this._checkAutoFocus(), 100);\n\t\t\treturn;\n\t\t}\n\n\t\tthis._focusInput();\n\t}\n}\n"]}
@@ -6,7 +6,7 @@ export class InputError {
6
6
  this._showTooltip = false;
7
7
  }
8
8
  render() {
9
- return (h(Host, { key: 'ac5ab660850ac1908dd9645aec4e96238946ecf2', class: 'p-input-error' }, h("p-tooltip", { key: 'f9d2588446e1f675c4de4d58fd0d24e7d2af1fe9', variant: 'error', content: this.error, show: this.forceShowTooltip, onIsOpen: ev => (this._showTooltip = ev.detail) }, h("p-icon", { key: '4e6eaa812e9b30b07299a617c1fcb24261c00fee', class: `${this._showTooltip ? 'text-negative' : 'text-negative-light'} hover:text-negative`, slot: 'trigger', variant: 'question-circle' }))));
9
+ return (h(Host, { key: '1dfbd30a1da9a7662166b86f498a085c12b23f2a', class: 'p-input-error' }, h("p-tooltip", { key: 'c90ceaf3df4e65de6f52009ac1bd131783849911', variant: 'error', content: this.error, show: this.forceShowTooltip, onIsOpen: ev => (this._showTooltip = ev.detail) }, h("p-icon", { key: '6cf02d8edb26b1b1a8f0b961ae61ab70fbf38846', class: `${this._showTooltip ? 'text-negative' : 'text-negative-light'} hover:text-negative`, slot: 'trigger', variant: 'question-circle' }))));
10
10
  }
11
11
  static get is() { return "p-input-error"; }
12
12
  static get encapsulation() { return "shadow"; }
@@ -0,0 +1 @@
1
+ .mb-\[2px\]{margin-bottom:2px!important}.box-border{box-sizing:border-box!important}.flex{display:flex!important}.w-full{width:100%!important}.flex-1{flex:1 1 0%!important}.items-start{align-items:flex-start!important}.items-end{align-items:flex-end!important}.rounded-bl-none{border-bottom-left-radius:0!important}.rounded-br-none{border-bottom-right-radius:0!important}.border-l-0{border-left-width:0!important}.border-r-0{border-right-width:0!important}.py-\[calc\(0\.75rem-1px\)\]{padding-bottom:calc(.75rem - 1px)!important;padding-top:calc(.75rem - 1px)!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.font-semibold{font-weight:600!important}.uppercase{text-transform:uppercase!important}.tracking-wider{letter-spacing:.05em!important}.outline-none{outline:2px solid transparent!important;outline-offset:2px!important}*{box-sizing:border-box}:host{display:flex;flex-direction:column;outline:2px solid transparent!important;outline-offset:2px!important;width:100%}:host .input-label{--tw-text-opacity:1;color:rgb(152 154 183/var(--tw-text-opacity,1));font-size:.75rem;font-weight:600;letter-spacing:.05em;line-height:1rem;margin-bottom:2px;text-transform:uppercase}:host .input-header{align-items:flex-end;display:flex;gap:.5rem;margin-bottom:2px}:host .content{display:flex;width:100%}:host .content .prefix,:host .content .suffix{--tw-text-opacity:1;box-sizing:border-box;color:rgb(81 83 107/var(--tw-text-opacity,1));flex:1 1 0%;height:100%}:host .content .prefix{border-bottom-right-radius:0;border-right-width:0!important;border-top-right-radius:0;order:1;padding-right:.5rem}:host .content .suffix{border-bottom-left-radius:0;border-left-width:0!important;border-top-left-radius:0;order:3;padding-left:.5rem}:host(.focused),:host(:focus),:host(:focus-within),:host([focused]){outline:2px solid transparent!important;outline-offset:2px!important}:host(.focused) .prefix,:host(.focused) .suffix,:host(:focus) .prefix,:host(:focus) .suffix,:host(:focus-within) .prefix,:host(:focus-within) .suffix,:host([focused]) .prefix,:host([focused]) .suffix{--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity,1))}:host(.error) .prefix,:host(.error) .suffix,:host([error]) .prefix,:host([error]) .suffix{--tw-text-opacity:1;color:rgb(185 30 40/var(--tw-text-opacity,1))}:host(.error) .suffix,:host([error]) .suffix{align-items:flex-start;padding-bottom:calc(.75rem - 1px);padding-top:calc(.75rem - 1px)}:host(.size-small.error) .suffix,:host(.size-small[error]) .suffix{padding-bottom:.5rem;padding-top:.5rem}.static{position:static!important}.ml-1{margin-left:.25rem!important}.ml-2{margin-left:.5rem!important}.justify-between{justify-content:space-between!important}.rounded-tl-none{border-top-left-radius:0!important}.rounded-tr-none{border-top-right-radius:0!important}.pl-0{padding-left:0!important}.pr-0{padding-right:0!important}.text-negative{--tw-text-opacity:1!important;color:rgb(185 30 40/var(--tw-text-opacity,1))!important}