@paperless/core 2.0.1-beta.17 → 2.0.1-beta.19

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 (1693) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/dist/assets/i18n/field-container.i18n.en.json +3 -0
  3. package/dist/assets/i18n/field-container.i18n.nl.json +3 -0
  4. package/dist/build/index.esm.js +1 -1
  5. package/dist/build/index.esm.js.map +1 -1
  6. package/dist/build/p-00534761.entry.js +2 -0
  7. package/dist/build/p-00534761.entry.js.map +1 -0
  8. package/dist/build/p-020a97e3.entry.js +2 -0
  9. package/dist/build/p-020a97e3.entry.js.map +1 -0
  10. package/dist/build/p-09f9b1c4.entry.js +2 -0
  11. package/dist/build/p-09f9b1c4.entry.js.map +1 -0
  12. package/dist/build/p-0f4e4b8f.entry.js +3 -0
  13. package/dist/build/p-0f4e4b8f.entry.js.map +1 -0
  14. package/dist/build/p-0ffb8f53.entry.js +2 -0
  15. package/dist/build/p-0ffb8f53.entry.js.map +1 -0
  16. package/dist/build/p-12acd75e.entry.js +2 -0
  17. package/dist/build/p-12acd75e.entry.js.map +1 -0
  18. package/dist/build/p-170077a4.js +2 -0
  19. package/dist/build/p-170077a4.js.map +1 -0
  20. package/dist/build/p-18e5002c.entry.js +2 -0
  21. package/dist/build/p-18e5002c.entry.js.map +1 -0
  22. package/dist/build/p-19945ca2.entry.js +2 -0
  23. package/dist/build/p-19945ca2.entry.js.map +1 -0
  24. package/dist/build/p-1d80e042.js +2 -0
  25. package/dist/build/p-1d80e042.js.map +1 -0
  26. package/dist/build/p-1f464c93.entry.js +2 -0
  27. package/dist/build/p-1f464c93.entry.js.map +1 -0
  28. package/dist/build/p-276d2804.entry.js +2 -0
  29. package/dist/build/p-276d2804.entry.js.map +1 -0
  30. package/dist/build/p-291573c4.entry.js +2 -0
  31. package/dist/build/p-291573c4.entry.js.map +1 -0
  32. package/dist/build/p-2beae871.entry.js +2 -0
  33. package/dist/build/p-2beae871.entry.js.map +1 -0
  34. package/dist/build/p-381e7f3f.entry.js +2 -0
  35. package/dist/build/p-381e7f3f.entry.js.map +1 -0
  36. package/dist/build/p-3b8209bc.js +2 -0
  37. package/dist/build/p-3b8209bc.js.map +1 -0
  38. package/dist/build/p-448b6640.entry.js +2 -0
  39. package/dist/build/p-448b6640.entry.js.map +1 -0
  40. package/dist/build/p-45ded510.js +3 -0
  41. package/dist/build/p-45ded510.js.map +1 -0
  42. package/dist/build/p-46cf79b4.entry.js +2 -0
  43. package/dist/build/p-46cf79b4.entry.js.map +1 -0
  44. package/dist/build/p-54a7b850.entry.js +2 -0
  45. package/dist/build/p-54a7b850.entry.js.map +1 -0
  46. package/dist/build/p-562029b4.entry.js +2 -0
  47. package/dist/build/p-562029b4.entry.js.map +1 -0
  48. package/dist/build/p-5c6050aa.entry.js +2 -0
  49. package/dist/build/p-5c6050aa.entry.js.map +1 -0
  50. package/dist/build/p-62b14ab7.entry.js +2 -0
  51. package/dist/build/p-62b14ab7.entry.js.map +1 -0
  52. package/dist/build/p-6578b0f1.entry.js +2 -0
  53. package/dist/build/p-6578b0f1.entry.js.map +1 -0
  54. package/dist/build/p-697ec23e.entry.js +2 -0
  55. package/dist/build/p-697ec23e.entry.js.map +1 -0
  56. package/dist/build/p-78626c51.entry.js +2 -0
  57. package/dist/build/p-78626c51.entry.js.map +1 -0
  58. package/dist/build/p-7ab0df67.entry.js +2 -0
  59. package/dist/build/p-7ab0df67.entry.js.map +1 -0
  60. package/dist/build/p-7aecc5f3.entry.js +2 -0
  61. package/dist/build/p-7aecc5f3.entry.js.map +1 -0
  62. package/dist/build/p-7eeb03a2.entry.js +2 -0
  63. package/dist/build/p-7eeb03a2.entry.js.map +1 -0
  64. package/dist/build/p-83b79ff9.js +2 -0
  65. package/dist/build/p-83b79ff9.js.map +1 -0
  66. package/dist/build/p-8a1a6e56.js.map +1 -1
  67. package/dist/build/p-8a5b8196.js.map +1 -1
  68. package/dist/build/p-8b28c5be.entry.js +2 -0
  69. package/dist/build/p-8b28c5be.entry.js.map +1 -0
  70. package/dist/build/p-9a613c80.entry.js +2 -0
  71. package/dist/build/p-9a613c80.entry.js.map +1 -0
  72. package/dist/build/p-9ab34fee.js +2 -0
  73. package/dist/build/p-9ab34fee.js.map +1 -0
  74. package/dist/build/p-9cac28b6.js +2 -0
  75. package/dist/build/p-9cac28b6.js.map +1 -0
  76. package/dist/build/p-a6ab63eb.entry.js +2 -0
  77. package/dist/build/p-a6ab63eb.entry.js.map +1 -0
  78. package/dist/build/p-a6ccc70e.entry.js +2 -0
  79. package/dist/build/p-a6ccc70e.entry.js.map +1 -0
  80. package/dist/build/p-adcded4d.entry.js +2 -0
  81. package/dist/build/p-adcded4d.entry.js.map +1 -0
  82. package/dist/build/p-b072eb35.entry.js +2 -0
  83. package/dist/build/p-b072eb35.entry.js.map +1 -0
  84. package/dist/build/p-b082e123.js +2 -0
  85. package/dist/build/p-b082e123.js.map +1 -0
  86. package/dist/build/p-b27bbec2.entry.js +2 -0
  87. package/dist/build/p-b27bbec2.entry.js.map +1 -0
  88. package/dist/build/p-b8a88966.css +1 -0
  89. package/dist/build/p-baef33b3.entry.js +2 -0
  90. package/dist/build/p-baef33b3.entry.js.map +1 -0
  91. package/dist/build/p-bbf56d19.entry.js +2 -0
  92. package/dist/build/p-bbf56d19.entry.js.map +1 -0
  93. package/dist/build/p-bd856f15.entry.js +2 -0
  94. package/dist/build/p-bd856f15.entry.js.map +1 -0
  95. package/dist/build/p-c4c6ce2d.entry.js +2 -0
  96. package/dist/build/p-c4c6ce2d.entry.js.map +1 -0
  97. package/dist/build/p-c906c741.entry.js +2 -0
  98. package/dist/build/p-c906c741.entry.js.map +1 -0
  99. package/dist/build/p-cdcf2ebd.entry.js +2 -0
  100. package/dist/build/p-cdcf2ebd.entry.js.map +1 -0
  101. package/dist/build/p-d12bb2d3.entry.js +2 -0
  102. package/dist/build/p-d12bb2d3.entry.js.map +1 -0
  103. package/dist/build/p-d26ee54b.entry.js +2 -0
  104. package/dist/build/p-d26ee54b.entry.js.map +1 -0
  105. package/dist/build/p-d3878a79.entry.js +2 -0
  106. package/dist/build/p-d3878a79.entry.js.map +1 -0
  107. package/dist/build/p-d5f0c5c4.entry.js +2 -0
  108. package/dist/build/p-d5f0c5c4.entry.js.map +1 -0
  109. package/dist/build/p-da7b6f2c.js.map +1 -1
  110. package/dist/build/p-de74e07c.js +2 -0
  111. package/dist/build/p-de74e07c.js.map +1 -0
  112. package/dist/build/p-e1255160.js +2 -0
  113. package/dist/build/p-e1255160.js.map +1 -0
  114. package/dist/build/p-e15305dc.entry.js +2 -0
  115. package/dist/build/p-e15305dc.entry.js.map +1 -0
  116. package/dist/build/p-e3522e35.js +2 -0
  117. package/dist/build/p-e5e6a277.entry.js +2 -0
  118. package/dist/build/p-e5e6a277.entry.js.map +1 -0
  119. package/dist/build/p-e89ffb5c.entry.js +2 -0
  120. package/dist/build/p-e89ffb5c.entry.js.map +1 -0
  121. package/dist/build/p-ea5f44ee.entry.js +2 -0
  122. package/dist/build/p-ea5f44ee.entry.js.map +1 -0
  123. package/dist/build/p-f04108c3.entry.js +2 -0
  124. package/dist/build/p-f04108c3.entry.js.map +1 -0
  125. package/dist/build/p-f26a3049.js +2 -0
  126. package/dist/build/p-f26a3049.js.map +1 -0
  127. package/dist/build/p-fdf020c9.entry.js +2 -0
  128. package/dist/build/p-fdf020c9.entry.js.map +1 -0
  129. package/dist/build/p-fe66cde8.js +2 -0
  130. package/dist/build/p-fe66cde8.js.map +1 -0
  131. package/dist/build/p-ff4312df.entry.js +2 -0
  132. package/dist/build/p-ff4312df.entry.js.map +1 -0
  133. package/dist/build/paperless.css +1 -1
  134. package/dist/build/paperless.esm.js +1 -1
  135. package/dist/build/paperless.esm.js.map +1 -1
  136. package/dist/build/paperless.js +24 -24
  137. package/dist/cjs/app-globals-3a1e7e63.js +7 -0
  138. package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
  139. package/dist/cjs/child-of-8fbd3ebe.js +11 -0
  140. package/dist/cjs/child-of-8fbd3ebe.js.map +1 -0
  141. package/dist/cjs/cn-b70f9965.js +2818 -0
  142. package/dist/cjs/cn-b70f9965.js.map +1 -0
  143. package/dist/cjs/floating-ui.dom.esm-ef421825.js +2072 -0
  144. package/dist/cjs/floating-ui.dom.esm-ef421825.js.map +1 -0
  145. package/dist/cjs/iban-ab94c561.js +16 -0
  146. package/dist/cjs/iban-ab94c561.js.map +1 -0
  147. package/dist/cjs/icons-10aa18f0.js +1549 -0
  148. package/dist/cjs/icons-10aa18f0.js.map +1 -0
  149. package/dist/cjs/icons-deprecated-4c476f5a.js +1123 -0
  150. package/dist/cjs/icons-deprecated-4c476f5a.js.map +1 -0
  151. package/dist/cjs/index-08db8a87.js +2333 -0
  152. package/dist/cjs/index-08db8a87.js.map +1 -0
  153. package/dist/cjs/index-3f9bbc0c.js +2343 -0
  154. package/dist/cjs/index-3f9bbc0c.js.map +1 -0
  155. package/dist/cjs/index.cjs.js +485 -485
  156. package/dist/cjs/index.cjs.js.map +1 -1
  157. package/dist/cjs/loader.cjs.js +5 -3
  158. package/dist/cjs/loader.cjs.js.map +1 -1
  159. package/dist/cjs/localization-3a0a71db.js +61 -0
  160. package/dist/cjs/localization-3a0a71db.js.map +1 -0
  161. package/dist/cjs/object-get-by-path-49caea95.js +130 -0
  162. package/dist/cjs/object-get-by-path-49caea95.js.map +1 -0
  163. package/dist/cjs/p-accordion.cjs.entry.js +26 -21
  164. package/dist/cjs/p-accordion.cjs.entry.js.map +1 -1
  165. package/dist/cjs/p-attachment.cjs.entry.js +28 -20
  166. package/dist/cjs/p-attachment.cjs.entry.js.map +1 -1
  167. package/dist/cjs/p-avatar-group.cjs.entry.js +10 -9
  168. package/dist/cjs/p-avatar-group.cjs.entry.js.map +1 -1
  169. package/dist/cjs/p-avatar.cjs.entry.js +45 -45
  170. package/dist/cjs/p-avatar.cjs.entry.js.map +1 -1
  171. package/dist/cjs/p-backdrop.cjs.entry.js +73 -68
  172. package/dist/cjs/p-backdrop.cjs.entry.js.map +1 -1
  173. package/dist/cjs/p-badge.cjs.entry.js +9 -8
  174. package/dist/cjs/p-badge.cjs.entry.js.map +1 -1
  175. package/dist/cjs/p-button-group.cjs.entry.js +33 -33
  176. package/dist/cjs/p-button-group.cjs.entry.js.map +1 -1
  177. package/dist/cjs/p-button_8.cjs.entry.js +972 -0
  178. package/dist/cjs/p-button_8.cjs.entry.js.map +1 -0
  179. package/dist/cjs/p-calendar.cjs.entry.js +338 -322
  180. package/dist/cjs/p-calendar.cjs.entry.js.map +1 -1
  181. package/dist/cjs/p-card-body.cjs.entry.js +10 -9
  182. package/dist/cjs/p-card-body.cjs.entry.js.map +1 -1
  183. package/dist/cjs/p-card-container.cjs.entry.js +11 -10
  184. package/dist/cjs/p-card-container.cjs.entry.js.map +1 -1
  185. package/dist/cjs/p-card-header.cjs.entry.js +21 -21
  186. package/dist/cjs/p-card-header.cjs.entry.js.map +1 -1
  187. package/dist/cjs/p-content-slider.cjs.entry.js +205 -199
  188. package/dist/cjs/p-content-slider.cjs.entry.js.map +1 -1
  189. package/dist/cjs/p-counter.cjs.entry.js +11 -10
  190. package/dist/cjs/p-counter.cjs.entry.js.map +1 -1
  191. package/dist/cjs/p-cropper.cjs.entry.js +403 -264
  192. package/dist/cjs/p-cropper.cjs.entry.js.map +1 -1
  193. package/dist/cjs/p-datepicker.cjs.entry.js +276 -305
  194. package/dist/cjs/p-datepicker.cjs.entry.js.map +1 -1
  195. package/dist/cjs/p-divider.cjs.entry.js +12 -12
  196. package/dist/cjs/p-divider.cjs.entry.js.map +1 -1
  197. package/dist/cjs/p-drawer-body_3.cjs.entry.js +33 -26
  198. package/dist/cjs/p-drawer-body_3.cjs.entry.js.map +1 -1
  199. package/dist/cjs/p-drawer.cjs.entry.js +66 -58
  200. package/dist/cjs/p-drawer.cjs.entry.js.map +1 -1
  201. package/dist/cjs/p-dropdown-menu-container.cjs.entry.js +67 -0
  202. package/dist/cjs/p-dropdown-menu-container.cjs.entry.js.map +1 -0
  203. package/dist/cjs/p-dropdown_2.cjs.entry.js +298 -289
  204. package/dist/cjs/p-dropdown_2.cjs.entry.js.map +1 -1
  205. package/dist/cjs/p-floating-menu-container_8.cjs.entry.js +263 -211
  206. package/dist/cjs/p-floating-menu-container_8.cjs.entry.js.map +1 -1
  207. package/dist/cjs/p-iban-icon.cjs.entry.js +33 -34
  208. package/dist/cjs/p-iban-icon.cjs.entry.js.map +1 -1
  209. package/dist/cjs/p-icon-deprecated.cjs.entry.js +49 -48
  210. package/dist/cjs/p-icon-deprecated.cjs.entry.js.map +1 -1
  211. package/dist/cjs/p-info-panel.cjs.entry.js +23 -18
  212. package/dist/cjs/p-info-panel.cjs.entry.js.map +1 -1
  213. package/dist/cjs/p-input-error.cjs.entry.js +21 -0
  214. package/dist/cjs/p-input-error.cjs.entry.js.map +1 -0
  215. package/dist/cjs/p-label_3.cjs.entry.js +50 -47
  216. package/dist/cjs/p-label_3.cjs.entry.js.map +1 -1
  217. package/dist/cjs/p-layout.cjs.entry.js +10 -9
  218. package/dist/cjs/p-layout.cjs.entry.js.map +1 -1
  219. package/dist/cjs/p-modal-body_4.cjs.entry.js +51 -43
  220. package/dist/cjs/p-modal-body_4.cjs.entry.js.map +1 -1
  221. package/dist/cjs/p-modal.cjs.entry.js +59 -52
  222. package/dist/cjs/p-modal.cjs.entry.js.map +1 -1
  223. package/dist/cjs/p-navbar.cjs.entry.js +44 -43
  224. package/dist/cjs/p-navbar.cjs.entry.js.map +1 -1
  225. package/dist/cjs/p-navigation-item.cjs.entry.js +43 -44
  226. package/dist/cjs/p-navigation-item.cjs.entry.js.map +1 -1
  227. package/dist/cjs/p-navigation-section.cjs.entry.js +10 -10
  228. package/dist/cjs/p-navigation-section.cjs.entry.js.map +1 -1
  229. package/dist/cjs/p-navigation-title.cjs.entry.js +9 -8
  230. package/dist/cjs/p-navigation-title.cjs.entry.js.map +1 -1
  231. package/dist/cjs/p-page-size-select_3.cjs.entry.js +203 -195
  232. package/dist/cjs/p-page-size-select_3.cjs.entry.js.map +1 -1
  233. package/dist/cjs/p-profile.cjs.entry.js +46 -45
  234. package/dist/cjs/p-profile.cjs.entry.js.map +1 -1
  235. package/dist/cjs/p-select.cjs.entry.js +418 -370
  236. package/dist/cjs/p-select.cjs.entry.js.map +1 -1
  237. package/dist/cjs/p-slider-indicator.cjs.entry.js +10 -9
  238. package/dist/cjs/p-slider-indicator.cjs.entry.js.map +1 -1
  239. package/dist/cjs/p-status.cjs.entry.js +37 -36
  240. package/dist/cjs/p-status.cjs.entry.js.map +1 -1
  241. package/dist/cjs/p-stepper-item.cjs.entry.js +14 -13
  242. package/dist/cjs/p-stepper-item.cjs.entry.js.map +1 -1
  243. package/dist/cjs/p-stepper-line.cjs.entry.js +11 -10
  244. package/dist/cjs/p-stepper-line.cjs.entry.js.map +1 -1
  245. package/dist/cjs/p-stepper.cjs.entry.js +91 -90
  246. package/dist/cjs/p-stepper.cjs.entry.js.map +1 -1
  247. package/dist/cjs/p-tab-group.cjs.entry.js +2 -2
  248. package/dist/cjs/p-tab-group.cjs.entry.js.map +1 -1
  249. package/dist/cjs/p-tab-item.cjs.entry.js +10 -9
  250. package/dist/cjs/p-tab-item.cjs.entry.js.map +1 -1
  251. package/dist/cjs/p-table-column.cjs.entry.js +24 -20
  252. package/dist/cjs/p-table-column.cjs.entry.js.map +1 -1
  253. package/dist/cjs/p-table-row-action.cjs.entry.js +17 -17
  254. package/dist/cjs/p-table-row-action.cjs.entry.js.map +1 -1
  255. package/dist/cjs/p-table.cjs.entry.js +584 -541
  256. package/dist/cjs/p-table.cjs.entry.js.map +1 -1
  257. package/dist/cjs/p-toast-container.cjs.entry.js +10 -9
  258. package/dist/cjs/p-toast-container.cjs.entry.js.map +1 -1
  259. package/dist/cjs/p-toast.cjs.entry.js +25 -21
  260. package/dist/cjs/p-toast.cjs.entry.js.map +1 -1
  261. package/dist/cjs/paperless.cjs.js +13 -11
  262. package/dist/cjs/paperless.cjs.js.map +1 -1
  263. package/dist/cjs/screens-e5439aeb.js +67 -0
  264. package/dist/cjs/screens-e5439aeb.js.map +1 -0
  265. package/dist/collection/collection-manifest.json +4 -3
  266. package/dist/collection/components/atoms/avatar/avatar.component.js +142 -135
  267. package/dist/collection/components/atoms/avatar/avatar.component.js.map +1 -1
  268. package/dist/collection/components/atoms/avatar-group/avatar-group.component.js +40 -38
  269. package/dist/collection/components/atoms/avatar-group/avatar-group.component.js.map +1 -1
  270. package/dist/collection/components/atoms/backdrop/backdrop.component.js +217 -199
  271. package/dist/collection/components/atoms/backdrop/backdrop.component.js.map +1 -1
  272. package/dist/collection/components/atoms/badge/badge.component.js +14 -14
  273. package/dist/collection/components/atoms/badge/badge.component.js.map +1 -1
  274. package/dist/collection/components/atoms/card-body/card-body.component.js +41 -39
  275. package/dist/collection/components/atoms/card-body/card-body.component.js.map +1 -1
  276. package/dist/collection/components/atoms/card-container/card-container.component.js +63 -59
  277. package/dist/collection/components/atoms/card-container/card-container.component.js.map +1 -1
  278. package/dist/collection/components/atoms/card-header/card-header.component.js +75 -68
  279. package/dist/collection/components/atoms/card-header/card-header.component.js.map +1 -1
  280. package/dist/collection/components/atoms/counter/counter.component.js +63 -59
  281. package/dist/collection/components/atoms/counter/counter.component.js.map +1 -1
  282. package/dist/collection/components/atoms/divider/divider.component.js +48 -43
  283. package/dist/collection/components/atoms/divider/divider.component.js.map +1 -1
  284. package/dist/collection/components/atoms/drawer-body/drawer-body.component.js +42 -40
  285. package/dist/collection/components/atoms/drawer-body/drawer-body.component.js.map +1 -1
  286. package/dist/collection/components/atoms/drawer-container/drawer-container.component.js +41 -39
  287. package/dist/collection/components/atoms/drawer-container/drawer-container.component.js.map +1 -1
  288. package/dist/collection/components/atoms/drawer-header/drawer-header.component.js +68 -62
  289. package/dist/collection/components/atoms/drawer-header/drawer-header.component.js.map +1 -1
  290. package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.js +157 -147
  291. package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.js.map +1 -1
  292. package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js +278 -264
  293. package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js.map +1 -1
  294. package/dist/collection/components/atoms/floating-menu-container/floating-menu-container.component.js +42 -40
  295. package/dist/collection/components/atoms/floating-menu-container/floating-menu-container.component.js.map +1 -1
  296. package/dist/collection/components/atoms/floating-menu-item/floating-menu-item.component.js +63 -59
  297. package/dist/collection/components/atoms/floating-menu-item/floating-menu-item.component.js.map +1 -1
  298. package/dist/collection/components/atoms/helper/helper.component.css +1 -1
  299. package/dist/collection/components/atoms/helper/helper.component.js +74 -70
  300. package/dist/collection/components/atoms/helper/helper.component.js.map +1 -1
  301. package/dist/collection/components/atoms/iban-icon/iban-icon.component.js +79 -76
  302. package/dist/collection/components/atoms/iban-icon/iban-icon.component.js.map +1 -1
  303. package/dist/collection/components/atoms/icon/icon.component.js +149 -141
  304. package/dist/collection/components/atoms/icon/icon.component.js.map +1 -1
  305. package/dist/collection/components/atoms/icon-deprecated/icon.component.js +161 -153
  306. package/dist/collection/components/atoms/icon-deprecated/icon.component.js.map +1 -1
  307. package/dist/collection/components/atoms/illustration/illustration.component.js +36 -34
  308. package/dist/collection/components/atoms/illustration/illustration.component.js.map +1 -1
  309. package/dist/collection/components/atoms/info-panel/info-panel.component.js +134 -118
  310. package/dist/collection/components/atoms/info-panel/info-panel.component.js.map +1 -1
  311. package/dist/collection/components/atoms/label/label.component.js +204 -188
  312. package/dist/collection/components/atoms/label/label.component.js.map +1 -1
  313. package/dist/collection/components/atoms/layout/layout.component.js +42 -40
  314. package/dist/collection/components/atoms/layout/layout.component.js.map +1 -1
  315. package/dist/collection/components/atoms/loader/loader.component.js +156 -144
  316. package/dist/collection/components/atoms/loader/loader.component.js.map +1 -1
  317. package/dist/collection/components/atoms/modal-body/modal-body.component.js +105 -97
  318. package/dist/collection/components/atoms/modal-body/modal-body.component.js.map +1 -1
  319. package/dist/collection/components/atoms/modal-container/modal-container.component.js +68 -64
  320. package/dist/collection/components/atoms/modal-container/modal-container.component.js.map +1 -1
  321. package/dist/collection/components/atoms/modal-footer/modal-footer.component.js +15 -15
  322. package/dist/collection/components/atoms/modal-footer/modal-footer.component.js.map +1 -1
  323. package/dist/collection/components/atoms/modal-header/modal-header.component.js +68 -62
  324. package/dist/collection/components/atoms/modal-header/modal-header.component.js.map +1 -1
  325. package/dist/collection/components/atoms/navigation-title/navigation-title.component.js +14 -14
  326. package/dist/collection/components/atoms/navigation-title/navigation-title.component.js.map +1 -1
  327. package/dist/collection/components/atoms/pagination-item/pagination-item.component.js +42 -40
  328. package/dist/collection/components/atoms/pagination-item/pagination-item.component.js.map +1 -1
  329. package/dist/collection/components/atoms/portal/portal.component.js +42 -39
  330. package/dist/collection/components/atoms/portal/portal.component.js.map +1 -1
  331. package/dist/collection/components/atoms/segment-container/segment-container.component.js +14 -14
  332. package/dist/collection/components/atoms/segment-container/segment-container.component.js.map +1 -1
  333. package/dist/collection/components/atoms/segment-item/segment-item.component.js +175 -159
  334. package/dist/collection/components/atoms/segment-item/segment-item.component.js.map +1 -1
  335. package/dist/collection/components/atoms/slider-indicator/slider-indicator.component.js +42 -40
  336. package/dist/collection/components/atoms/slider-indicator/slider-indicator.component.js.map +1 -1
  337. package/dist/collection/components/atoms/status/status.component.js +142 -134
  338. package/dist/collection/components/atoms/status/status.component.js.map +1 -1
  339. package/dist/collection/components/atoms/stepper-item/stepper-item.component.js +126 -116
  340. package/dist/collection/components/atoms/stepper-item/stepper-item.component.js.map +1 -1
  341. package/dist/collection/components/atoms/stepper-line/stepper-line.component.js +63 -59
  342. package/dist/collection/components/atoms/stepper-line/stepper-line.component.js.map +1 -1
  343. package/dist/collection/components/atoms/tab-group/tab-group.component.js +5 -5
  344. package/dist/collection/components/atoms/tab-group/tab-group.component.js.map +1 -1
  345. package/dist/collection/components/atoms/tab-item/tab-item.component.js +42 -40
  346. package/dist/collection/components/atoms/tab-item/tab-item.component.js.map +1 -1
  347. package/dist/collection/components/atoms/table-container/table-container.component.js +42 -40
  348. package/dist/collection/components/atoms/table-container/table-container.component.js.map +1 -1
  349. package/dist/collection/components/atoms/toast-container/toast-container.component.js +42 -40
  350. package/dist/collection/components/atoms/toast-container/toast-container.component.js.map +1 -1
  351. package/dist/collection/components/atoms/tooltip/tooltip.component.css +1 -1
  352. package/dist/collection/components/atoms/tooltip/tooltip.component.js +448 -363
  353. package/dist/collection/components/atoms/tooltip/tooltip.component.js.map +1 -1
  354. package/dist/collection/components/helpers/table-column/table-column.component.js +228 -206
  355. package/dist/collection/components/helpers/table-column/table-column.component.js.map +1 -1
  356. package/dist/collection/components/helpers/table-row-action/table-row-action.component.js +239 -219
  357. package/dist/collection/components/helpers/table-row-action/table-row-action.component.js.map +1 -1
  358. package/dist/collection/components/molecules/accordion/accordion.component.js +133 -121
  359. package/dist/collection/components/molecules/accordion/accordion.component.js.map +1 -1
  360. package/dist/collection/components/molecules/attachment/attachment.component.js +149 -134
  361. package/dist/collection/components/molecules/attachment/attachment.component.js.map +1 -1
  362. package/dist/collection/components/molecules/button/button.component.js +774 -731
  363. package/dist/collection/components/molecules/button/button.component.js.map +1 -1
  364. package/dist/collection/components/molecules/button-group/button-group.component.js +70 -64
  365. package/dist/collection/components/molecules/button-group/button-group.component.js.map +1 -1
  366. package/dist/collection/components/molecules/calendar/calendar.component.js +565 -529
  367. package/dist/collection/components/molecules/calendar/calendar.component.js.map +1 -1
  368. package/dist/collection/components/molecules/content-slider/content-slider.component.js +309 -292
  369. package/dist/collection/components/molecules/content-slider/content-slider.component.js.map +1 -1
  370. package/dist/collection/components/molecules/cropper/cropper.component.js +242 -228
  371. package/dist/collection/components/molecules/cropper/cropper.component.js.map +1 -1
  372. package/dist/collection/components/molecules/datepicker/datepicker.component.js +629 -582
  373. package/dist/collection/components/molecules/datepicker/datepicker.component.js.map +1 -1
  374. package/dist/collection/components/molecules/dropdown/dropdown.component.js +518 -477
  375. package/dist/collection/components/molecules/dropdown/dropdown.component.js.map +1 -1
  376. package/dist/collection/components/molecules/field/field.component.css +1 -0
  377. package/dist/collection/components/molecules/field/field.component.js +771 -0
  378. package/dist/collection/components/molecules/field/field.component.js.map +1 -0
  379. package/dist/collection/components/molecules/field-container/field-container.component.css +1 -0
  380. package/dist/collection/components/molecules/field-container/field-container.component.js +259 -0
  381. package/dist/collection/components/molecules/field-container/field-container.component.js.map +1 -0
  382. package/dist/collection/components/molecules/input-error/input-error.component.js +58 -54
  383. package/dist/collection/components/molecules/input-error/input-error.component.js.map +1 -1
  384. package/dist/collection/components/molecules/navigation-item/navigation-item.component.js +193 -180
  385. package/dist/collection/components/molecules/navigation-item/navigation-item.component.js.map +1 -1
  386. package/dist/collection/components/molecules/navigation-section/navigation-section.component.js +40 -39
  387. package/dist/collection/components/molecules/navigation-section/navigation-section.component.js.map +1 -1
  388. package/dist/collection/components/molecules/page-size-select/page-size-select.component.js +223 -201
  389. package/dist/collection/components/molecules/page-size-select/page-size-select.component.js.map +1 -1
  390. package/dist/collection/components/molecules/pagination/pagination.component.js +265 -255
  391. package/dist/collection/components/molecules/pagination/pagination.component.js.map +1 -1
  392. package/dist/collection/components/molecules/profile/profile.component.js +94 -88
  393. package/dist/collection/components/molecules/profile/profile.component.js.map +1 -1
  394. package/dist/collection/components/molecules/select/select.component.css +1 -1
  395. package/dist/collection/components/molecules/select/select.component.js +1261 -1134
  396. package/dist/collection/components/molecules/select/select.component.js.map +1 -1
  397. package/dist/collection/components/molecules/stepper/stepper.component.js +175 -165
  398. package/dist/collection/components/molecules/stepper/stepper.component.js.map +1 -1
  399. package/dist/collection/components/molecules/table-cell/table-cell.component.js +246 -225
  400. package/dist/collection/components/molecules/table-cell/table-cell.component.js.map +1 -1
  401. package/dist/collection/components/molecules/table-footer/table-footer.component.js +299 -266
  402. package/dist/collection/components/molecules/table-footer/table-footer.component.js.map +1 -1
  403. package/dist/collection/components/molecules/table-header/table-header.component.js +515 -463
  404. package/dist/collection/components/molecules/table-header/table-header.component.js.map +1 -1
  405. package/dist/collection/components/molecules/table-row/table-row.component.js +65 -61
  406. package/dist/collection/components/molecules/table-row/table-row.component.js.map +1 -1
  407. package/dist/collection/components/molecules/toast/toast.component.js +212 -195
  408. package/dist/collection/components/molecules/toast/toast.component.js.map +1 -1
  409. package/dist/collection/components/organisms/drawer/drawer.component.js +275 -250
  410. package/dist/collection/components/organisms/drawer/drawer.component.js.map +1 -1
  411. package/dist/collection/components/organisms/modal/modal.component.js +314 -283
  412. package/dist/collection/components/organisms/modal/modal.component.js.map +1 -1
  413. package/dist/collection/components/organisms/navbar/navbar.component.js +72 -72
  414. package/dist/collection/components/organisms/navbar/navbar.component.js.map +1 -1
  415. package/dist/collection/components/organisms/table/table.component.js +1720 -1585
  416. package/dist/collection/components/organisms/table/table.component.js.map +1 -1
  417. package/dist/collection/tailwind/paperless.js +33 -33
  418. package/dist/collection/tailwind/paperless.js.map +1 -1
  419. package/dist/collection/tailwind/plugins/hover.js +20 -20
  420. package/dist/collection/tailwind/plugins/hover.js.map +1 -1
  421. package/dist/collection/tailwind/plugins/safe-area.js +85 -85
  422. package/dist/collection/tailwind/plugins/safe-area.js.map +1 -1
  423. package/dist/collection/tailwind/theme/animation.js +83 -83
  424. package/dist/collection/tailwind/theme/animation.js.map +1 -1
  425. package/dist/collection/tailwind/theme/colors.js +176 -176
  426. package/dist/collection/tailwind/theme/colors.js.map +1 -1
  427. package/dist/collection/tailwind/theme/height.js +4 -4
  428. package/dist/collection/tailwind/theme/height.js.map +1 -1
  429. package/dist/collection/tailwind/theme/rotate.js +2 -2
  430. package/dist/collection/tailwind/theme/rotate.js.map +1 -1
  431. package/dist/collection/tailwind/theme/scale.js +1 -1
  432. package/dist/collection/tailwind/theme/scale.js.map +1 -1
  433. package/dist/collection/tailwind/theme/screens.js +13 -13
  434. package/dist/collection/tailwind/theme/screens.js.map +1 -1
  435. package/dist/collection/tailwind/theme/shadows.js +14 -14
  436. package/dist/collection/tailwind/theme/shadows.js.map +1 -1
  437. package/dist/collection/tailwind/theme/spacing.js +6 -6
  438. package/dist/collection/tailwind/theme/spacing.js.map +1 -1
  439. package/dist/collection/tailwind/theme/typography.js +15 -15
  440. package/dist/collection/tailwind/theme/typography.js.map +1 -1
  441. package/dist/collection/tailwind/theme/width.js +13 -13
  442. package/dist/collection/tailwind/theme/width.js.map +1 -1
  443. package/dist/collection/tailwind/theme/z-index.js +11 -11
  444. package/dist/collection/tailwind/theme/z-index.js.map +1 -1
  445. package/dist/collection/tailwind.config.js +7 -7
  446. package/dist/collection/tailwind.config.js.map +1 -1
  447. package/dist/collection/types/constants.js +7 -7
  448. package/dist/collection/types/constants.js.map +1 -1
  449. package/dist/collection/types/iban.js +8 -8
  450. package/dist/collection/types/iban.js.map +1 -1
  451. package/dist/collection/types/table.js +1 -1
  452. package/dist/collection/types/table.js.map +1 -1
  453. package/dist/collection/utils/child-of.js +3 -3
  454. package/dist/collection/utils/child-of.js.map +1 -1
  455. package/dist/collection/utils/cn.js +1 -1
  456. package/dist/collection/utils/cn.js.map +1 -1
  457. package/dist/collection/utils/icons-deprecated.js +66 -66
  458. package/dist/collection/utils/icons-deprecated.js.map +1 -1
  459. package/dist/collection/utils/icons.js +127 -127
  460. package/dist/collection/utils/icons.js.map +1 -1
  461. package/dist/collection/utils/illustrations.js +12 -12
  462. package/dist/collection/utils/illustrations.js.map +1 -1
  463. package/dist/collection/utils/localization.js +44 -45
  464. package/dist/collection/utils/localization.js.map +1 -1
  465. package/dist/collection/utils/object-get-by-path.js +6 -6
  466. package/dist/collection/utils/object-get-by-path.js.map +1 -1
  467. package/dist/collection/utils/screens.js +9 -9
  468. package/dist/collection/utils/screens.js.map +1 -1
  469. package/dist/collection/utils/table-helpers.js +96 -86
  470. package/dist/collection/utils/table-helpers.js.map +1 -1
  471. package/dist/collection/utils/transformers.js +2 -2
  472. package/dist/collection/utils/transformers.js.map +1 -1
  473. package/dist/components/avatar.component.js +65 -65
  474. package/dist/components/avatar.component.js.map +1 -1
  475. package/dist/components/backdrop.component.js +90 -85
  476. package/dist/components/backdrop.component.js.map +1 -1
  477. package/dist/components/badge.component.js +20 -19
  478. package/dist/components/badge.component.js.map +1 -1
  479. package/dist/components/button.component.js +363 -359
  480. package/dist/components/button.component.js.map +1 -1
  481. package/dist/components/calendar.component.js +417 -391
  482. package/dist/components/calendar.component.js.map +1 -1
  483. package/dist/components/child-of.js +3 -3
  484. package/dist/components/child-of.js.map +1 -1
  485. package/dist/components/cn.js +32 -33
  486. package/dist/components/cn.js.map +1 -1
  487. package/dist/components/divider.component.js +26 -26
  488. package/dist/components/divider.component.js.map +1 -1
  489. package/dist/components/drawer-body.component.js +24 -23
  490. package/dist/components/drawer-body.component.js.map +1 -1
  491. package/dist/components/drawer-container.component.js +23 -22
  492. package/dist/components/drawer-container.component.js.map +1 -1
  493. package/dist/components/drawer-header.component.js +44 -39
  494. package/dist/components/drawer-header.component.js.map +1 -1
  495. package/dist/components/dropdown-menu-container.component.js +65 -64
  496. package/dist/components/dropdown-menu-container.component.js.map +1 -1
  497. package/dist/components/dropdown-menu-item.component.js +157 -156
  498. package/dist/components/dropdown-menu-item.component.js.map +1 -1
  499. package/dist/components/dropdown.component.js +220 -212
  500. package/dist/components/dropdown.component.js.map +1 -1
  501. package/dist/components/field-container.component.js +99 -0
  502. package/dist/components/field-container.component.js.map +1 -0
  503. package/dist/components/field.component.js +307 -0
  504. package/dist/components/field.component.js.map +1 -0
  505. package/dist/components/floating-menu-container.component.js +24 -23
  506. package/dist/components/floating-menu-container.component.js.map +1 -1
  507. package/dist/components/floating-menu-item.component.js +26 -25
  508. package/dist/components/floating-menu-item.component.js.map +1 -1
  509. package/dist/components/floating-ui.dom.esm.js +1205 -466
  510. package/dist/components/floating-ui.dom.esm.js.map +1 -1
  511. package/dist/components/helper.component.js +38 -31
  512. package/dist/components/helper.component.js.map +1 -1
  513. package/dist/components/iban.js +8 -8
  514. package/dist/components/iban.js.map +1 -1
  515. package/dist/components/icon.component.js +58 -57
  516. package/dist/components/icon.component.js.map +1 -1
  517. package/dist/components/icons-deprecated.js +66 -66
  518. package/dist/components/icons-deprecated.js.map +1 -1
  519. package/dist/components/icons.js +127 -127
  520. package/dist/components/icons.js.map +1 -1
  521. package/dist/components/illustration.component.js +34 -34
  522. package/dist/components/illustration.component.js.map +1 -1
  523. package/dist/components/index.js +478 -478
  524. package/dist/components/index.js.map +1 -1
  525. package/dist/components/input-error.component.js +43 -37
  526. package/dist/components/input-error.component.js.map +1 -1
  527. package/dist/components/label.component.js +44 -43
  528. package/dist/components/label.component.js.map +1 -1
  529. package/dist/components/loader.component.js +59 -56
  530. package/dist/components/loader.component.js.map +1 -1
  531. package/dist/components/localization.js +44 -45
  532. package/dist/components/localization.js.map +1 -1
  533. package/dist/components/modal-body.component.js +30 -29
  534. package/dist/components/modal-body.component.js.map +1 -1
  535. package/dist/components/modal-container.component.js +31 -30
  536. package/dist/components/modal-container.component.js.map +1 -1
  537. package/dist/components/modal-footer.component.js +26 -25
  538. package/dist/components/modal-footer.component.js.map +1 -1
  539. package/dist/components/modal-header.component.js +44 -39
  540. package/dist/components/modal-header.component.js.map +1 -1
  541. package/dist/components/navigation-title.component.js +20 -19
  542. package/dist/components/navigation-title.component.js.map +1 -1
  543. package/dist/components/object-get-by-path.js +103 -93
  544. package/dist/components/object-get-by-path.js.map +1 -1
  545. package/dist/components/p-accordion.d.ts +2 -2
  546. package/dist/components/p-accordion.js +53 -48
  547. package/dist/components/p-accordion.js.map +1 -1
  548. package/dist/components/p-attachment.d.ts +2 -2
  549. package/dist/components/p-attachment.js +80 -66
  550. package/dist/components/p-attachment.js.map +1 -1
  551. package/dist/components/p-avatar-group.d.ts +2 -2
  552. package/dist/components/p-avatar-group.js +23 -22
  553. package/dist/components/p-avatar-group.js.map +1 -1
  554. package/dist/components/p-avatar.d.ts +2 -2
  555. package/dist/components/p-backdrop.d.ts +2 -2
  556. package/dist/components/p-badge.d.ts +2 -2
  557. package/dist/components/p-button-group.d.ts +2 -2
  558. package/dist/components/p-button-group.js +47 -47
  559. package/dist/components/p-button-group.js.map +1 -1
  560. package/dist/components/p-button.d.ts +2 -2
  561. package/dist/components/p-calendar.d.ts +2 -2
  562. package/dist/components/p-card-body.d.ts +2 -2
  563. package/dist/components/p-card-body.js +23 -22
  564. package/dist/components/p-card-body.js.map +1 -1
  565. package/dist/components/p-card-container.d.ts +2 -2
  566. package/dist/components/p-card-container.js +26 -25
  567. package/dist/components/p-card-container.js.map +1 -1
  568. package/dist/components/p-card-header.d.ts +2 -2
  569. package/dist/components/p-card-header.js +40 -40
  570. package/dist/components/p-card-header.js.map +1 -1
  571. package/dist/components/p-content-slider.d.ts +2 -2
  572. package/dist/components/p-content-slider.js +231 -225
  573. package/dist/components/p-content-slider.js.map +1 -1
  574. package/dist/components/p-counter.d.ts +2 -2
  575. package/dist/components/p-counter.js +26 -25
  576. package/dist/components/p-counter.js.map +1 -1
  577. package/dist/components/p-cropper.d.ts +2 -2
  578. package/dist/components/p-cropper.js +426 -287
  579. package/dist/components/p-cropper.js.map +1 -1
  580. package/dist/components/p-datepicker.d.ts +2 -2
  581. package/dist/components/p-datepicker.js +379 -408
  582. package/dist/components/p-datepicker.js.map +1 -1
  583. package/dist/components/p-divider.d.ts +2 -2
  584. package/dist/components/p-drawer-body.d.ts +2 -2
  585. package/dist/components/p-drawer-container.d.ts +2 -2
  586. package/dist/components/p-drawer-header.d.ts +2 -2
  587. package/dist/components/p-drawer.d.ts +2 -2
  588. package/dist/components/p-drawer.js +122 -114
  589. package/dist/components/p-drawer.js.map +1 -1
  590. package/dist/components/p-dropdown-menu-container.d.ts +2 -2
  591. package/dist/components/p-dropdown-menu-item.d.ts +2 -2
  592. package/dist/components/p-dropdown.d.ts +2 -2
  593. package/dist/components/p-field-container.d.ts +11 -0
  594. package/dist/components/p-field-container.js +8 -0
  595. package/dist/components/p-field-container.js.map +1 -0
  596. package/dist/components/p-field.d.ts +11 -0
  597. package/dist/components/p-field.js +8 -0
  598. package/dist/components/p-field.js.map +1 -0
  599. package/dist/components/p-floating-menu-container.d.ts +2 -2
  600. package/dist/components/p-floating-menu-item.d.ts +2 -2
  601. package/dist/components/p-helper.d.ts +2 -2
  602. package/dist/components/p-iban-icon.d.ts +2 -2
  603. package/dist/components/p-iban-icon.js +47 -48
  604. package/dist/components/p-iban-icon.js.map +1 -1
  605. package/dist/components/p-icon-deprecated.d.ts +2 -2
  606. package/dist/components/p-icon-deprecated.js +64 -63
  607. package/dist/components/p-icon-deprecated.js.map +1 -1
  608. package/dist/components/p-icon.d.ts +2 -2
  609. package/dist/components/p-illustration.d.ts +2 -2
  610. package/dist/components/p-info-panel.d.ts +2 -2
  611. package/dist/components/p-info-panel.js +45 -40
  612. package/dist/components/p-info-panel.js.map +1 -1
  613. package/dist/components/p-input-error.d.ts +2 -2
  614. package/dist/components/p-label.d.ts +2 -2
  615. package/dist/components/p-layout.d.ts +2 -2
  616. package/dist/components/p-layout.js +24 -23
  617. package/dist/components/p-layout.js.map +1 -1
  618. package/dist/components/p-loader.d.ts +2 -2
  619. package/dist/components/p-modal-body.d.ts +2 -2
  620. package/dist/components/p-modal-container.d.ts +2 -2
  621. package/dist/components/p-modal-footer.d.ts +2 -2
  622. package/dist/components/p-modal-header.d.ts +2 -2
  623. package/dist/components/p-modal.d.ts +2 -2
  624. package/dist/components/p-modal.js +128 -121
  625. package/dist/components/p-modal.js.map +1 -1
  626. package/dist/components/p-navbar.d.ts +2 -2
  627. package/dist/components/p-navbar.js +78 -77
  628. package/dist/components/p-navbar.js.map +1 -1
  629. package/dist/components/p-navigation-item.d.ts +2 -2
  630. package/dist/components/p-navigation-item.js +71 -71
  631. package/dist/components/p-navigation-item.js.map +1 -1
  632. package/dist/components/p-navigation-section.d.ts +2 -2
  633. package/dist/components/p-navigation-section.js +28 -28
  634. package/dist/components/p-navigation-section.js.map +1 -1
  635. package/dist/components/p-navigation-title.d.ts +2 -2
  636. package/dist/components/p-page-size-select.d.ts +2 -2
  637. package/dist/components/p-pagination-item.d.ts +2 -2
  638. package/dist/components/p-pagination.d.ts +2 -2
  639. package/dist/components/p-portal.d.ts +2 -2
  640. package/dist/components/p-profile.d.ts +2 -2
  641. package/dist/components/p-profile.js +89 -88
  642. package/dist/components/p-profile.js.map +1 -1
  643. package/dist/components/p-segment-container.d.ts +2 -2
  644. package/dist/components/p-segment-item.d.ts +2 -2
  645. package/dist/components/p-select.d.ts +2 -2
  646. package/dist/components/p-select.js +541 -488
  647. package/dist/components/p-select.js.map +1 -1
  648. package/dist/components/p-slider-indicator.d.ts +2 -2
  649. package/dist/components/p-status.d.ts +2 -2
  650. package/dist/components/p-status.js +58 -57
  651. package/dist/components/p-status.js.map +1 -1
  652. package/dist/components/p-stepper-item.d.ts +2 -2
  653. package/dist/components/p-stepper-item.js +37 -36
  654. package/dist/components/p-stepper-item.js.map +1 -1
  655. package/dist/components/p-stepper-line.d.ts +2 -2
  656. package/dist/components/p-stepper.d.ts +2 -2
  657. package/dist/components/p-stepper.js +115 -114
  658. package/dist/components/p-stepper.js.map +1 -1
  659. package/dist/components/p-tab-group.d.ts +2 -2
  660. package/dist/components/p-tab-group.js +24 -24
  661. package/dist/components/p-tab-group.js.map +1 -1
  662. package/dist/components/p-tab-item.d.ts +2 -2
  663. package/dist/components/p-tab-item.js +24 -23
  664. package/dist/components/p-tab-item.js.map +1 -1
  665. package/dist/components/p-table-cell.d.ts +2 -2
  666. package/dist/components/p-table-column.d.ts +2 -2
  667. package/dist/components/p-table-column.js +45 -41
  668. package/dist/components/p-table-column.js.map +1 -1
  669. package/dist/components/p-table-container.d.ts +2 -2
  670. package/dist/components/p-table-footer.d.ts +2 -2
  671. package/dist/components/p-table-header.d.ts +2 -2
  672. package/dist/components/p-table-row-action.d.ts +2 -2
  673. package/dist/components/p-table-row-action.js +39 -39
  674. package/dist/components/p-table-row-action.js.map +1 -1
  675. package/dist/components/p-table-row.d.ts +2 -2
  676. package/dist/components/p-table.d.ts +2 -2
  677. package/dist/components/p-table.js +787 -744
  678. package/dist/components/p-table.js.map +1 -1
  679. package/dist/components/p-toast-container.d.ts +2 -2
  680. package/dist/components/p-toast-container.js +24 -23
  681. package/dist/components/p-toast-container.js.map +1 -1
  682. package/dist/components/p-toast.d.ts +2 -2
  683. package/dist/components/p-toast.js +60 -56
  684. package/dist/components/p-toast.js.map +1 -1
  685. package/dist/components/p-tooltip.d.ts +2 -2
  686. package/dist/components/page-size-select.component.js +95 -91
  687. package/dist/components/page-size-select.component.js.map +1 -1
  688. package/dist/components/pagination-item.component.js +24 -23
  689. package/dist/components/pagination-item.component.js.map +1 -1
  690. package/dist/components/pagination.component.js +185 -182
  691. package/dist/components/pagination.component.js.map +1 -1
  692. package/dist/components/portal.component.js +32 -32
  693. package/dist/components/portal.component.js.map +1 -1
  694. package/dist/components/screens.js +29 -29
  695. package/dist/components/screens.js.map +1 -1
  696. package/dist/components/segment-container.component.js +20 -19
  697. package/dist/components/segment-container.component.js.map +1 -1
  698. package/dist/components/segment-item.component.js +49 -48
  699. package/dist/components/segment-item.component.js.map +1 -1
  700. package/dist/components/slider-indicator.component.js +24 -23
  701. package/dist/components/slider-indicator.component.js.map +1 -1
  702. package/dist/components/stepper-line.component.js +26 -25
  703. package/dist/components/stepper-line.component.js.map +1 -1
  704. package/dist/components/table-cell.component.js +75 -71
  705. package/dist/components/table-cell.component.js.map +1 -1
  706. package/dist/components/table-container.component.js +24 -23
  707. package/dist/components/table-container.component.js.map +1 -1
  708. package/dist/components/table-footer.component.js +121 -109
  709. package/dist/components/table-footer.component.js.map +1 -1
  710. package/dist/components/table-header.component.js +196 -158
  711. package/dist/components/table-header.component.js.map +1 -1
  712. package/dist/components/table-row.component.js +33 -32
  713. package/dist/components/table-row.component.js.map +1 -1
  714. package/dist/components/tooltip.component.js +214 -160
  715. package/dist/components/tooltip.component.js.map +1 -1
  716. package/dist/esm/app-globals-0f993ce5.js +5 -0
  717. package/dist/esm/app-globals-0f993ce5.js.map +1 -0
  718. package/dist/esm/child-of-2e1cac22.js +9 -0
  719. package/dist/esm/child-of-2e1cac22.js.map +1 -0
  720. package/dist/esm/cn-efefe9a7.js +2816 -0
  721. package/dist/esm/cn-efefe9a7.js.map +1 -0
  722. package/dist/esm/floating-ui.dom.esm-1ee67651.js +2066 -0
  723. package/dist/esm/floating-ui.dom.esm-1ee67651.js.map +1 -0
  724. package/dist/esm/iban-2645d629.js +14 -0
  725. package/dist/esm/iban-2645d629.js.map +1 -0
  726. package/dist/esm/icons-a3270aaf.js +1546 -0
  727. package/dist/esm/icons-a3270aaf.js.map +1 -0
  728. package/dist/esm/icons-deprecated-5df272a7.js +1121 -0
  729. package/dist/esm/icons-deprecated-5df272a7.js.map +1 -0
  730. package/dist/esm/index-2ef94580.js +2313 -0
  731. package/dist/esm/index-2ef94580.js.map +1 -0
  732. package/dist/esm/index-538f1fd8.js +2309 -0
  733. package/dist/esm/index-538f1fd8.js.map +1 -0
  734. package/dist/esm/index.js +486 -486
  735. package/dist/esm/index.js.map +1 -1
  736. package/dist/esm/loader.js +6 -4
  737. package/dist/esm/loader.js.map +1 -1
  738. package/dist/esm/localization-339ba26d.js +58 -0
  739. package/dist/esm/localization-339ba26d.js.map +1 -0
  740. package/dist/esm/object-get-by-path-b28a1923.js +124 -0
  741. package/dist/esm/object-get-by-path-b28a1923.js.map +1 -0
  742. package/dist/esm/p-accordion.entry.js +26 -21
  743. package/dist/esm/p-accordion.entry.js.map +1 -1
  744. package/dist/esm/p-attachment.entry.js +28 -20
  745. package/dist/esm/p-attachment.entry.js.map +1 -1
  746. package/dist/esm/p-avatar-group.entry.js +10 -9
  747. package/dist/esm/p-avatar-group.entry.js.map +1 -1
  748. package/dist/esm/p-avatar.entry.js +45 -45
  749. package/dist/esm/p-avatar.entry.js.map +1 -1
  750. package/dist/esm/p-backdrop.entry.js +73 -68
  751. package/dist/esm/p-backdrop.entry.js.map +1 -1
  752. package/dist/esm/p-badge.entry.js +9 -8
  753. package/dist/esm/p-badge.entry.js.map +1 -1
  754. package/dist/esm/p-button-group.entry.js +33 -33
  755. package/dist/esm/p-button-group.entry.js.map +1 -1
  756. package/dist/esm/p-button_8.entry.js +961 -0
  757. package/dist/esm/p-button_8.entry.js.map +1 -0
  758. package/dist/esm/p-calendar.entry.js +338 -322
  759. package/dist/esm/p-calendar.entry.js.map +1 -1
  760. package/dist/esm/p-card-body.entry.js +10 -9
  761. package/dist/esm/p-card-body.entry.js.map +1 -1
  762. package/dist/esm/p-card-container.entry.js +11 -10
  763. package/dist/esm/p-card-container.entry.js.map +1 -1
  764. package/dist/esm/p-card-header.entry.js +21 -21
  765. package/dist/esm/p-card-header.entry.js.map +1 -1
  766. package/dist/esm/p-content-slider.entry.js +205 -199
  767. package/dist/esm/p-content-slider.entry.js.map +1 -1
  768. package/dist/esm/p-counter.entry.js +11 -10
  769. package/dist/esm/p-counter.entry.js.map +1 -1
  770. package/dist/esm/p-cropper.entry.js +403 -264
  771. package/dist/esm/p-cropper.entry.js.map +1 -1
  772. package/dist/esm/p-datepicker.entry.js +280 -309
  773. package/dist/esm/p-datepicker.entry.js.map +1 -1
  774. package/dist/esm/p-divider.entry.js +12 -12
  775. package/dist/esm/p-divider.entry.js.map +1 -1
  776. package/dist/esm/p-drawer-body_3.entry.js +33 -26
  777. package/dist/esm/p-drawer-body_3.entry.js.map +1 -1
  778. package/dist/esm/p-drawer.entry.js +66 -58
  779. package/dist/esm/p-drawer.entry.js.map +1 -1
  780. package/dist/esm/p-dropdown-menu-container.entry.js +63 -0
  781. package/dist/esm/p-dropdown-menu-container.entry.js.map +1 -0
  782. package/dist/esm/p-dropdown_2.entry.js +298 -289
  783. package/dist/esm/p-dropdown_2.entry.js.map +1 -1
  784. package/dist/esm/p-floating-menu-container_8.entry.js +263 -211
  785. package/dist/esm/p-floating-menu-container_8.entry.js.map +1 -1
  786. package/dist/esm/p-iban-icon.entry.js +33 -34
  787. package/dist/esm/p-iban-icon.entry.js.map +1 -1
  788. package/dist/esm/p-icon-deprecated.entry.js +49 -48
  789. package/dist/esm/p-icon-deprecated.entry.js.map +1 -1
  790. package/dist/esm/p-info-panel.entry.js +23 -18
  791. package/dist/esm/p-info-panel.entry.js.map +1 -1
  792. package/dist/esm/p-input-error.entry.js +17 -0
  793. package/dist/esm/p-input-error.entry.js.map +1 -0
  794. package/dist/esm/p-label_3.entry.js +50 -47
  795. package/dist/esm/p-label_3.entry.js.map +1 -1
  796. package/dist/esm/p-layout.entry.js +10 -9
  797. package/dist/esm/p-layout.entry.js.map +1 -1
  798. package/dist/esm/p-modal-body_4.entry.js +51 -43
  799. package/dist/esm/p-modal-body_4.entry.js.map +1 -1
  800. package/dist/esm/p-modal.entry.js +59 -52
  801. package/dist/esm/p-modal.entry.js.map +1 -1
  802. package/dist/esm/p-navbar.entry.js +44 -43
  803. package/dist/esm/p-navbar.entry.js.map +1 -1
  804. package/dist/esm/p-navigation-item.entry.js +43 -44
  805. package/dist/esm/p-navigation-item.entry.js.map +1 -1
  806. package/dist/esm/p-navigation-section.entry.js +10 -10
  807. package/dist/esm/p-navigation-section.entry.js.map +1 -1
  808. package/dist/esm/p-navigation-title.entry.js +9 -8
  809. package/dist/esm/p-navigation-title.entry.js.map +1 -1
  810. package/dist/esm/p-page-size-select_3.entry.js +203 -195
  811. package/dist/esm/p-page-size-select_3.entry.js.map +1 -1
  812. package/dist/esm/p-profile.entry.js +46 -45
  813. package/dist/esm/p-profile.entry.js.map +1 -1
  814. package/dist/esm/p-select.entry.js +418 -370
  815. package/dist/esm/p-select.entry.js.map +1 -1
  816. package/dist/esm/p-slider-indicator.entry.js +10 -9
  817. package/dist/esm/p-slider-indicator.entry.js.map +1 -1
  818. package/dist/esm/p-status.entry.js +37 -36
  819. package/dist/esm/p-status.entry.js.map +1 -1
  820. package/dist/esm/p-stepper-item.entry.js +14 -13
  821. package/dist/esm/p-stepper-item.entry.js.map +1 -1
  822. package/dist/esm/p-stepper-line.entry.js +11 -10
  823. package/dist/esm/p-stepper-line.entry.js.map +1 -1
  824. package/dist/esm/p-stepper.entry.js +91 -90
  825. package/dist/esm/p-stepper.entry.js.map +1 -1
  826. package/dist/esm/p-tab-group.entry.js +2 -2
  827. package/dist/esm/p-tab-group.entry.js.map +1 -1
  828. package/dist/esm/p-tab-item.entry.js +10 -9
  829. package/dist/esm/p-tab-item.entry.js.map +1 -1
  830. package/dist/esm/p-table-column.entry.js +24 -20
  831. package/dist/esm/p-table-column.entry.js.map +1 -1
  832. package/dist/esm/p-table-row-action.entry.js +17 -17
  833. package/dist/esm/p-table-row-action.entry.js.map +1 -1
  834. package/dist/esm/p-table.entry.js +584 -541
  835. package/dist/esm/p-table.entry.js.map +1 -1
  836. package/dist/esm/p-toast-container.entry.js +10 -9
  837. package/dist/esm/p-toast-container.entry.js.map +1 -1
  838. package/dist/esm/p-toast.entry.js +25 -21
  839. package/dist/esm/p-toast.entry.js.map +1 -1
  840. package/dist/esm/paperless.js +14 -12
  841. package/dist/esm/paperless.js.map +1 -1
  842. package/dist/esm/screens-8702d56f.js +54 -0
  843. package/dist/esm/screens-8702d56f.js.map +1 -0
  844. package/dist/index.html +13 -13
  845. package/dist/paperless/index.esm.js +1 -1
  846. package/dist/paperless/index.esm.js.map +1 -1
  847. package/dist/paperless/p-00534761.entry.js +2 -0
  848. package/dist/paperless/p-00534761.entry.js.map +1 -0
  849. package/dist/paperless/p-020a97e3.entry.js +2 -0
  850. package/dist/paperless/p-020a97e3.entry.js.map +1 -0
  851. package/dist/paperless/p-09f9b1c4.entry.js +2 -0
  852. package/dist/paperless/p-09f9b1c4.entry.js.map +1 -0
  853. package/dist/paperless/p-0f4e4b8f.entry.js +3 -0
  854. package/dist/paperless/p-0f4e4b8f.entry.js.map +1 -0
  855. package/dist/paperless/p-0ffb8f53.entry.js +2 -0
  856. package/dist/paperless/p-0ffb8f53.entry.js.map +1 -0
  857. package/dist/paperless/p-12acd75e.entry.js +2 -0
  858. package/dist/paperless/p-12acd75e.entry.js.map +1 -0
  859. package/dist/paperless/p-170077a4.js +2 -0
  860. package/dist/paperless/p-170077a4.js.map +1 -0
  861. package/dist/paperless/p-18e5002c.entry.js +2 -0
  862. package/dist/paperless/p-18e5002c.entry.js.map +1 -0
  863. package/dist/paperless/p-19945ca2.entry.js +2 -0
  864. package/dist/paperless/p-19945ca2.entry.js.map +1 -0
  865. package/dist/paperless/p-1d80e042.js +2 -0
  866. package/dist/paperless/p-1d80e042.js.map +1 -0
  867. package/dist/paperless/p-1f464c93.entry.js +2 -0
  868. package/dist/paperless/p-1f464c93.entry.js.map +1 -0
  869. package/dist/paperless/p-276d2804.entry.js +2 -0
  870. package/dist/paperless/p-276d2804.entry.js.map +1 -0
  871. package/dist/paperless/p-291573c4.entry.js +2 -0
  872. package/dist/paperless/p-291573c4.entry.js.map +1 -0
  873. package/dist/paperless/p-2beae871.entry.js +2 -0
  874. package/dist/paperless/p-2beae871.entry.js.map +1 -0
  875. package/dist/paperless/p-381e7f3f.entry.js +2 -0
  876. package/dist/paperless/p-381e7f3f.entry.js.map +1 -0
  877. package/dist/paperless/p-3b8209bc.js +2 -0
  878. package/dist/paperless/p-3b8209bc.js.map +1 -0
  879. package/dist/paperless/p-448b6640.entry.js +2 -0
  880. package/dist/paperless/p-448b6640.entry.js.map +1 -0
  881. package/dist/paperless/p-45ded510.js +3 -0
  882. package/dist/paperless/p-45ded510.js.map +1 -0
  883. package/dist/paperless/p-46cf79b4.entry.js +2 -0
  884. package/dist/paperless/p-46cf79b4.entry.js.map +1 -0
  885. package/dist/paperless/p-54a7b850.entry.js +2 -0
  886. package/dist/paperless/p-54a7b850.entry.js.map +1 -0
  887. package/dist/paperless/p-562029b4.entry.js +2 -0
  888. package/dist/paperless/p-562029b4.entry.js.map +1 -0
  889. package/dist/paperless/p-5c6050aa.entry.js +2 -0
  890. package/dist/paperless/p-5c6050aa.entry.js.map +1 -0
  891. package/dist/paperless/p-62b14ab7.entry.js +2 -0
  892. package/dist/paperless/p-62b14ab7.entry.js.map +1 -0
  893. package/dist/paperless/p-6578b0f1.entry.js +2 -0
  894. package/dist/paperless/p-6578b0f1.entry.js.map +1 -0
  895. package/dist/paperless/p-697ec23e.entry.js +2 -0
  896. package/dist/paperless/p-697ec23e.entry.js.map +1 -0
  897. package/dist/paperless/p-78626c51.entry.js +2 -0
  898. package/dist/paperless/p-78626c51.entry.js.map +1 -0
  899. package/dist/paperless/p-7ab0df67.entry.js +2 -0
  900. package/dist/paperless/p-7ab0df67.entry.js.map +1 -0
  901. package/dist/paperless/p-7aecc5f3.entry.js +2 -0
  902. package/dist/paperless/p-7aecc5f3.entry.js.map +1 -0
  903. package/dist/paperless/p-7eeb03a2.entry.js +2 -0
  904. package/dist/paperless/p-7eeb03a2.entry.js.map +1 -0
  905. package/dist/paperless/p-83b79ff9.js +2 -0
  906. package/dist/paperless/p-83b79ff9.js.map +1 -0
  907. package/dist/paperless/p-8a1a6e56.js.map +1 -1
  908. package/dist/paperless/p-8a5b8196.js.map +1 -1
  909. package/dist/paperless/p-8b28c5be.entry.js +2 -0
  910. package/dist/paperless/p-8b28c5be.entry.js.map +1 -0
  911. package/dist/paperless/p-9a613c80.entry.js +2 -0
  912. package/dist/paperless/p-9a613c80.entry.js.map +1 -0
  913. package/dist/paperless/p-9ab34fee.js +2 -0
  914. package/dist/paperless/p-9ab34fee.js.map +1 -0
  915. package/dist/paperless/p-9cac28b6.js +2 -0
  916. package/dist/paperless/p-9cac28b6.js.map +1 -0
  917. package/dist/paperless/p-a6ab63eb.entry.js +2 -0
  918. package/dist/paperless/p-a6ab63eb.entry.js.map +1 -0
  919. package/dist/paperless/p-a6ccc70e.entry.js +2 -0
  920. package/dist/paperless/p-a6ccc70e.entry.js.map +1 -0
  921. package/dist/paperless/p-adcded4d.entry.js +2 -0
  922. package/dist/paperless/p-adcded4d.entry.js.map +1 -0
  923. package/dist/paperless/p-b072eb35.entry.js +2 -0
  924. package/dist/paperless/p-b072eb35.entry.js.map +1 -0
  925. package/dist/paperless/p-b082e123.js +2 -0
  926. package/dist/paperless/p-b082e123.js.map +1 -0
  927. package/dist/paperless/p-b27bbec2.entry.js +2 -0
  928. package/dist/paperless/p-b27bbec2.entry.js.map +1 -0
  929. package/dist/paperless/p-baef33b3.entry.js +2 -0
  930. package/dist/paperless/p-baef33b3.entry.js.map +1 -0
  931. package/dist/paperless/p-bbf56d19.entry.js +2 -0
  932. package/dist/paperless/p-bbf56d19.entry.js.map +1 -0
  933. package/dist/paperless/p-bd856f15.entry.js +2 -0
  934. package/dist/paperless/p-bd856f15.entry.js.map +1 -0
  935. package/dist/paperless/p-c4c6ce2d.entry.js +2 -0
  936. package/dist/paperless/p-c4c6ce2d.entry.js.map +1 -0
  937. package/dist/paperless/p-c906c741.entry.js +2 -0
  938. package/dist/paperless/p-c906c741.entry.js.map +1 -0
  939. package/dist/paperless/p-cdcf2ebd.entry.js +2 -0
  940. package/dist/paperless/p-cdcf2ebd.entry.js.map +1 -0
  941. package/dist/paperless/p-d12bb2d3.entry.js +2 -0
  942. package/dist/paperless/p-d12bb2d3.entry.js.map +1 -0
  943. package/dist/paperless/p-d26ee54b.entry.js +2 -0
  944. package/dist/paperless/p-d26ee54b.entry.js.map +1 -0
  945. package/dist/paperless/p-d3878a79.entry.js +2 -0
  946. package/dist/paperless/p-d3878a79.entry.js.map +1 -0
  947. package/dist/paperless/p-d5f0c5c4.entry.js +2 -0
  948. package/dist/paperless/p-d5f0c5c4.entry.js.map +1 -0
  949. package/dist/paperless/p-da7b6f2c.js.map +1 -1
  950. package/dist/paperless/p-de74e07c.js +2 -0
  951. package/dist/paperless/p-de74e07c.js.map +1 -0
  952. package/dist/paperless/p-e1255160.js +2 -0
  953. package/dist/paperless/p-e1255160.js.map +1 -0
  954. package/dist/paperless/p-e15305dc.entry.js +2 -0
  955. package/dist/paperless/p-e15305dc.entry.js.map +1 -0
  956. package/dist/paperless/p-e5e6a277.entry.js +2 -0
  957. package/dist/paperless/p-e5e6a277.entry.js.map +1 -0
  958. package/dist/paperless/p-e89ffb5c.entry.js +2 -0
  959. package/dist/paperless/p-e89ffb5c.entry.js.map +1 -0
  960. package/dist/paperless/p-ea5f44ee.entry.js +2 -0
  961. package/dist/paperless/p-ea5f44ee.entry.js.map +1 -0
  962. package/dist/paperless/p-f04108c3.entry.js +2 -0
  963. package/dist/paperless/p-f04108c3.entry.js.map +1 -0
  964. package/dist/paperless/p-f26a3049.js +2 -0
  965. package/dist/paperless/p-f26a3049.js.map +1 -0
  966. package/dist/paperless/p-fdf020c9.entry.js +2 -0
  967. package/dist/paperless/p-fdf020c9.entry.js.map +1 -0
  968. package/dist/paperless/p-fe66cde8.js +2 -0
  969. package/dist/paperless/p-fe66cde8.js.map +1 -0
  970. package/dist/paperless/p-ff4312df.entry.js +2 -0
  971. package/dist/paperless/p-ff4312df.entry.js.map +1 -0
  972. package/dist/paperless/paperless.css +1 -1
  973. package/dist/paperless/paperless.esm.js +1 -1
  974. package/dist/paperless/paperless.esm.js.map +1 -1
  975. package/dist/style/form/_mixins.scss +26 -15
  976. package/dist/sw.js +1 -1
  977. package/dist/sw.js.map +1 -1
  978. package/dist/types/components/atoms/avatar/avatar.component.d.ts +22 -22
  979. package/dist/types/components/atoms/avatar-group/avatar-group.component.d.ts +5 -5
  980. package/dist/types/components/atoms/backdrop/backdrop.component.d.ts +33 -33
  981. package/dist/types/components/atoms/badge/badge.component.d.ts +1 -1
  982. package/dist/types/components/atoms/card-body/card-body.component.d.ts +5 -5
  983. package/dist/types/components/atoms/card-container/card-container.component.d.ts +9 -9
  984. package/dist/types/components/atoms/card-header/card-header.component.d.ts +16 -16
  985. package/dist/types/components/atoms/counter/counter.component.d.ts +9 -9
  986. package/dist/types/components/atoms/divider/divider.component.d.ts +9 -9
  987. package/dist/types/components/atoms/drawer-body/drawer-body.component.d.ts +5 -5
  988. package/dist/types/components/atoms/drawer-container/drawer-container.component.d.ts +5 -5
  989. package/dist/types/components/atoms/drawer-header/drawer-header.component.d.ts +9 -9
  990. package/dist/types/components/atoms/dropdown-menu-container/dropdown-menu-container.component.d.ts +21 -21
  991. package/dist/types/components/atoms/dropdown-menu-item/dropdown-menu-item.component.d.ts +29 -29
  992. package/dist/types/components/atoms/floating-menu-container/floating-menu-container.component.d.ts +5 -5
  993. package/dist/types/components/atoms/floating-menu-item/floating-menu-item.component.d.ts +9 -9
  994. package/dist/types/components/atoms/helper/helper.component.d.ts +9 -9
  995. package/dist/types/components/atoms/iban-icon/iban-icon.component.d.ts +10 -10
  996. package/dist/types/components/atoms/icon/icon.component.d.ts +17 -17
  997. package/dist/types/components/atoms/icon-deprecated/icon.component.d.ts +17 -17
  998. package/dist/types/components/atoms/illustration/illustration.component.d.ts +5 -5
  999. package/dist/types/components/atoms/info-panel/info-panel.component.d.ts +26 -26
  1000. package/dist/types/components/atoms/label/label.component.d.ts +33 -33
  1001. package/dist/types/components/atoms/layout/layout.component.d.ts +5 -5
  1002. package/dist/types/components/atoms/loader/loader.component.d.ts +27 -27
  1003. package/dist/types/components/atoms/modal-body/modal-body.component.d.ts +17 -17
  1004. package/dist/types/components/atoms/modal-container/modal-container.component.d.ts +9 -9
  1005. package/dist/types/components/atoms/modal-footer/modal-footer.component.d.ts +1 -1
  1006. package/dist/types/components/atoms/modal-header/modal-header.component.d.ts +9 -9
  1007. package/dist/types/components/atoms/navigation-title/navigation-title.component.d.ts +1 -1
  1008. package/dist/types/components/atoms/pagination-item/pagination-item.component.d.ts +5 -5
  1009. package/dist/types/components/atoms/portal/portal.component.d.ts +7 -7
  1010. package/dist/types/components/atoms/segment-container/segment-container.component.d.ts +1 -1
  1011. package/dist/types/components/atoms/segment-item/segment-item.component.d.ts +32 -32
  1012. package/dist/types/components/atoms/slider-indicator/slider-indicator.component.d.ts +5 -5
  1013. package/dist/types/components/atoms/status/status.component.d.ts +19 -19
  1014. package/dist/types/components/atoms/stepper-item/stepper-item.component.d.ts +21 -21
  1015. package/dist/types/components/atoms/stepper-line/stepper-line.component.d.ts +9 -9
  1016. package/dist/types/components/atoms/tab-group/tab-group.component.d.ts +1 -1
  1017. package/dist/types/components/atoms/tab-item/tab-item.component.d.ts +5 -5
  1018. package/dist/types/components/atoms/table-container/table-container.component.d.ts +2 -2
  1019. package/dist/types/components/atoms/toast-container/toast-container.component.d.ts +5 -5
  1020. package/dist/types/components/atoms/tooltip/tooltip.component.d.ts +61 -57
  1021. package/dist/types/components/helpers/table-column/table-column.component.d.ts +44 -44
  1022. package/dist/types/components/helpers/table-row-action/table-row-action.component.d.ts +47 -47
  1023. package/dist/types/components/molecules/accordion/accordion.component.d.ts +22 -22
  1024. package/dist/types/components/molecules/attachment/attachment.component.d.ts +25 -25
  1025. package/dist/types/components/molecules/button/button.component.d.ts +87 -87
  1026. package/dist/types/components/molecules/button-group/button-group.component.d.ts +12 -12
  1027. package/dist/types/components/molecules/calendar/calendar.component.d.ts +74 -74
  1028. package/dist/types/components/molecules/content-slider/content-slider.component.d.ts +51 -51
  1029. package/dist/types/components/molecules/cropper/cropper.component.d.ts +34 -34
  1030. package/dist/types/components/molecules/datepicker/datepicker.component.d.ts +106 -106
  1031. package/dist/types/components/molecules/dropdown/dropdown.component.d.ts +88 -88
  1032. package/dist/types/components/molecules/field/field.component.d.ts +117 -0
  1033. package/dist/types/components/molecules/field-container/field-container.component.d.ts +47 -0
  1034. package/dist/types/components/molecules/input-error/input-error.component.d.ts +10 -10
  1035. package/dist/types/components/molecules/navigation-item/navigation-item.component.d.ts +29 -29
  1036. package/dist/types/components/molecules/navigation-section/navigation-section.component.d.ts +5 -5
  1037. package/dist/types/components/molecules/page-size-select/page-size-select.component.d.ts +46 -46
  1038. package/dist/types/components/molecules/pagination/pagination.component.d.ts +32 -32
  1039. package/dist/types/components/molecules/profile/profile.component.d.ts +17 -17
  1040. package/dist/types/components/molecules/select/select.component.d.ts +217 -216
  1041. package/dist/types/components/molecules/stepper/stepper.component.d.ts +24 -24
  1042. package/dist/types/components/molecules/table-cell/table-cell.component.d.ts +42 -42
  1043. package/dist/types/components/molecules/table-footer/table-footer.component.d.ts +60 -60
  1044. package/dist/types/components/molecules/table-header/table-header.component.d.ts +97 -97
  1045. package/dist/types/components/molecules/table-row/table-row.component.d.ts +9 -9
  1046. package/dist/types/components/molecules/toast/toast.component.d.ts +34 -34
  1047. package/dist/types/components/organisms/drawer/drawer.component.d.ts +51 -51
  1048. package/dist/types/components/organisms/modal/modal.component.d.ts +60 -60
  1049. package/dist/types/components/organisms/navbar/navbar.component.d.ts +4 -4
  1050. package/dist/types/components/organisms/table/table.component.d.ts +268 -268
  1051. package/dist/types/components.d.ts +614 -181
  1052. package/dist/types/stencil-public-runtime.d.ts +38 -10
  1053. package/dist/types/tailwind/paperless.d.ts +2 -2
  1054. package/dist/types/tailwind/plugins/hover.d.ts +1 -1
  1055. package/dist/types/tailwind/plugins/safe-area.d.ts +1 -1
  1056. package/dist/types/tailwind/theme/animation.d.ts +147 -147
  1057. package/dist/types/tailwind/theme/colors.d.ts +175 -175
  1058. package/dist/types/tailwind/theme/height.d.ts +4 -4
  1059. package/dist/types/tailwind/theme/scale.d.ts +1 -1
  1060. package/dist/types/tailwind/theme/screens.d.ts +12 -12
  1061. package/dist/types/tailwind/theme/shadows.d.ts +6 -6
  1062. package/dist/types/tailwind/theme/spacing.d.ts +5 -5
  1063. package/dist/types/tailwind/theme/typography.d.ts +15 -15
  1064. package/dist/types/tailwind/theme/width.d.ts +11 -11
  1065. package/dist/types/tailwind/theme/z-index.d.ts +11 -11
  1066. package/dist/types/tailwind.config.d.ts +2 -2
  1067. package/dist/types/types/table.d.ts +24 -24
  1068. package/dist/types/utils/icons-deprecated.d.ts +66 -66
  1069. package/dist/types/utils/icons.d.ts +120 -120
  1070. package/dist/types/utils/illustrations.d.ts +12 -12
  1071. package/dist/types/utils/table-helpers.d.ts +8 -8
  1072. package/dist/workbox-d13932f0.js +2 -0
  1073. package/dist/workbox-d13932f0.js.map +1 -0
  1074. package/hydrate/index.d.ts +37 -13
  1075. package/hydrate/index.js +29785 -16769
  1076. package/hydrate/index.mjs +43067 -0
  1077. package/hydrate/package.json +7 -1
  1078. package/loader/cdn.js +1 -3
  1079. package/loader/index.cjs.js +1 -3
  1080. package/loader/index.d.ts +3 -0
  1081. package/loader/index.es2017.js +1 -3
  1082. package/loader/index.js +1 -3
  1083. package/package.json +7 -7
  1084. package/dist/build/p-04f2c445.entry.js +0 -2
  1085. package/dist/build/p-04f2c445.entry.js.map +0 -1
  1086. package/dist/build/p-0b5a9b3b.entry.js +0 -2
  1087. package/dist/build/p-0b5a9b3b.entry.js.map +0 -1
  1088. package/dist/build/p-0fb58b95.entry.js +0 -2
  1089. package/dist/build/p-0fb58b95.entry.js.map +0 -1
  1090. package/dist/build/p-129b277f.entry.js +0 -2
  1091. package/dist/build/p-129b277f.entry.js.map +0 -1
  1092. package/dist/build/p-12f5d6c1.entry.js +0 -2
  1093. package/dist/build/p-12f5d6c1.entry.js.map +0 -1
  1094. package/dist/build/p-15abe9ab.entry.js +0 -2
  1095. package/dist/build/p-15abe9ab.entry.js.map +0 -1
  1096. package/dist/build/p-16c8c10d.entry.js +0 -2
  1097. package/dist/build/p-16c8c10d.entry.js.map +0 -1
  1098. package/dist/build/p-1926e607.entry.js +0 -2
  1099. package/dist/build/p-1926e607.entry.js.map +0 -1
  1100. package/dist/build/p-195ede81.entry.js +0 -2
  1101. package/dist/build/p-195ede81.entry.js.map +0 -1
  1102. package/dist/build/p-198b4653.entry.js +0 -2
  1103. package/dist/build/p-198b4653.entry.js.map +0 -1
  1104. package/dist/build/p-1c97ddaa.entry.js +0 -2
  1105. package/dist/build/p-1c97ddaa.entry.js.map +0 -1
  1106. package/dist/build/p-28fee2e1.entry.js +0 -2
  1107. package/dist/build/p-28fee2e1.entry.js.map +0 -1
  1108. package/dist/build/p-2bedd43c.entry.js +0 -2
  1109. package/dist/build/p-2bedd43c.entry.js.map +0 -1
  1110. package/dist/build/p-2e3b9db4.js +0 -2
  1111. package/dist/build/p-2e3b9db4.js.map +0 -1
  1112. package/dist/build/p-33fa21e3.js +0 -2
  1113. package/dist/build/p-33fa21e3.js.map +0 -1
  1114. package/dist/build/p-36d0d0e6.entry.js +0 -2
  1115. package/dist/build/p-36d0d0e6.entry.js.map +0 -1
  1116. package/dist/build/p-3885d19b.entry.js +0 -2
  1117. package/dist/build/p-3885d19b.entry.js.map +0 -1
  1118. package/dist/build/p-3b9d77dc.entry.js +0 -2
  1119. package/dist/build/p-3b9d77dc.entry.js.map +0 -1
  1120. package/dist/build/p-3dba9a43.entry.js +0 -2
  1121. package/dist/build/p-3dba9a43.entry.js.map +0 -1
  1122. package/dist/build/p-422b7dd3.entry.js +0 -2
  1123. package/dist/build/p-422b7dd3.entry.js.map +0 -1
  1124. package/dist/build/p-43cdfda1.entry.js +0 -2
  1125. package/dist/build/p-43cdfda1.entry.js.map +0 -1
  1126. package/dist/build/p-4c3cdddf.entry.js +0 -2
  1127. package/dist/build/p-4c3cdddf.entry.js.map +0 -1
  1128. package/dist/build/p-4d330cfc.js +0 -2
  1129. package/dist/build/p-4d330cfc.js.map +0 -1
  1130. package/dist/build/p-51b3884b.entry.js +0 -2
  1131. package/dist/build/p-51b3884b.entry.js.map +0 -1
  1132. package/dist/build/p-55752ba9.entry.js +0 -2
  1133. package/dist/build/p-55752ba9.entry.js.map +0 -1
  1134. package/dist/build/p-5a072ae3.entry.js +0 -2
  1135. package/dist/build/p-5a072ae3.entry.js.map +0 -1
  1136. package/dist/build/p-5a7c004d.entry.js +0 -2
  1137. package/dist/build/p-5a7c004d.entry.js.map +0 -1
  1138. package/dist/build/p-5afd99f1.entry.js +0 -2
  1139. package/dist/build/p-5afd99f1.entry.js.map +0 -1
  1140. package/dist/build/p-5df485b9.entry.js +0 -2
  1141. package/dist/build/p-5df485b9.entry.js.map +0 -1
  1142. package/dist/build/p-64765a81.js +0 -2
  1143. package/dist/build/p-64765a81.js.map +0 -1
  1144. package/dist/build/p-648c33b9.entry.js +0 -2
  1145. package/dist/build/p-648c33b9.entry.js.map +0 -1
  1146. package/dist/build/p-6521a730.entry.js +0 -2
  1147. package/dist/build/p-6521a730.entry.js.map +0 -1
  1148. package/dist/build/p-6cddc325.js +0 -2
  1149. package/dist/build/p-6cddc325.js.map +0 -1
  1150. package/dist/build/p-6d6bb913.entry.js +0 -3
  1151. package/dist/build/p-6d6bb913.entry.js.map +0 -1
  1152. package/dist/build/p-740bc1dc.entry.js +0 -2
  1153. package/dist/build/p-740bc1dc.entry.js.map +0 -1
  1154. package/dist/build/p-75006522.js +0 -2
  1155. package/dist/build/p-75006522.js.map +0 -1
  1156. package/dist/build/p-75330470.entry.js +0 -2
  1157. package/dist/build/p-75330470.entry.js.map +0 -1
  1158. package/dist/build/p-7eb4689d.entry.js +0 -2
  1159. package/dist/build/p-7eb4689d.entry.js.map +0 -1
  1160. package/dist/build/p-82c79faa.entry.js +0 -2
  1161. package/dist/build/p-82c79faa.entry.js.map +0 -1
  1162. package/dist/build/p-88f72088.entry.js +0 -2
  1163. package/dist/build/p-88f72088.entry.js.map +0 -1
  1164. package/dist/build/p-926d997e.entry.js +0 -2
  1165. package/dist/build/p-926d997e.entry.js.map +0 -1
  1166. package/dist/build/p-9d112705.entry.js +0 -2
  1167. package/dist/build/p-9d112705.entry.js.map +0 -1
  1168. package/dist/build/p-a26e1c6d.entry.js +0 -2
  1169. package/dist/build/p-a26e1c6d.entry.js.map +0 -1
  1170. package/dist/build/p-a3853fc7.js +0 -3
  1171. package/dist/build/p-a3853fc7.js.map +0 -1
  1172. package/dist/build/p-a5995873.entry.js +0 -2
  1173. package/dist/build/p-a5995873.entry.js.map +0 -1
  1174. package/dist/build/p-b11136c3.entry.js +0 -2
  1175. package/dist/build/p-b11136c3.entry.js.map +0 -1
  1176. package/dist/build/p-b18ef00d.entry.js +0 -2
  1177. package/dist/build/p-b18ef00d.entry.js.map +0 -1
  1178. package/dist/build/p-b7a45a0a.entry.js +0 -2
  1179. package/dist/build/p-b7a45a0a.entry.js.map +0 -1
  1180. package/dist/build/p-b9cdcb32.entry.js +0 -2
  1181. package/dist/build/p-b9cdcb32.entry.js.map +0 -1
  1182. package/dist/build/p-bf9965ea.entry.js +0 -2
  1183. package/dist/build/p-bf9965ea.entry.js.map +0 -1
  1184. package/dist/build/p-cada312c.entry.js +0 -2
  1185. package/dist/build/p-cada312c.entry.js.map +0 -1
  1186. package/dist/build/p-d3d8468b.js +0 -2
  1187. package/dist/build/p-d3d8468b.js.map +0 -1
  1188. package/dist/build/p-d5d413a1.js +0 -2
  1189. package/dist/build/p-d5d413a1.js.map +0 -1
  1190. package/dist/build/p-dc9bf641.entry.js +0 -2
  1191. package/dist/build/p-dc9bf641.entry.js.map +0 -1
  1192. package/dist/build/p-e4ab1d73.entry.js +0 -2
  1193. package/dist/build/p-e4ab1d73.entry.js.map +0 -1
  1194. package/dist/build/p-e74bd898.entry.js +0 -2
  1195. package/dist/build/p-e74bd898.entry.js.map +0 -1
  1196. package/dist/build/p-e78945ad.entry.js +0 -2
  1197. package/dist/build/p-e78945ad.entry.js.map +0 -1
  1198. package/dist/build/p-ea329388.entry.js +0 -2
  1199. package/dist/build/p-ea329388.entry.js.map +0 -1
  1200. package/dist/build/p-f8544f0c.js +0 -2
  1201. package/dist/build/p-f8544f0c.js.map +0 -1
  1202. package/dist/build/p-fdd2c026.js +0 -2
  1203. package/dist/build/p-fdd2c026.js.map +0 -1
  1204. package/dist/build/p-feb5c8e3.entry.js +0 -2
  1205. package/dist/build/p-feb5c8e3.entry.js.map +0 -1
  1206. package/dist/build/p-fef32402.js +0 -2
  1207. package/dist/build/p-fef32402.js.map +0 -1
  1208. package/dist/cjs/_commonjsHelpers-4213291f.js +0 -24
  1209. package/dist/cjs/_commonjsHelpers-4213291f.js.map +0 -1
  1210. package/dist/cjs/child-of-af405fc2.js +0 -11
  1211. package/dist/cjs/child-of-af405fc2.js.map +0 -1
  1212. package/dist/cjs/cn-e59a319f.js +0 -2819
  1213. package/dist/cjs/cn-e59a319f.js.map +0 -1
  1214. package/dist/cjs/floating-ui.dom.esm-62336770.js +0 -1334
  1215. package/dist/cjs/floating-ui.dom.esm-62336770.js.map +0 -1
  1216. package/dist/cjs/iban-71055b2d.js +0 -16
  1217. package/dist/cjs/iban-71055b2d.js.map +0 -1
  1218. package/dist/cjs/icons-deprecated-d4fd5f3e.js +0 -1123
  1219. package/dist/cjs/icons-deprecated-d4fd5f3e.js.map +0 -1
  1220. package/dist/cjs/icons-e50d4119.js +0 -1549
  1221. package/dist/cjs/icons-e50d4119.js.map +0 -1
  1222. package/dist/cjs/index-6d3f569b.js +0 -2730
  1223. package/dist/cjs/index-6d3f569b.js.map +0 -1
  1224. package/dist/cjs/index-b59a0544.js +0 -2324
  1225. package/dist/cjs/index-b59a0544.js.map +0 -1
  1226. package/dist/cjs/localization-9132fab0.js +0 -62
  1227. package/dist/cjs/localization-9132fab0.js.map +0 -1
  1228. package/dist/cjs/object-get-by-path-c2e8bf29.js +0 -120
  1229. package/dist/cjs/object-get-by-path-c2e8bf29.js.map +0 -1
  1230. package/dist/cjs/p-button_3.cjs.entry.js +0 -438
  1231. package/dist/cjs/p-button_3.cjs.entry.js.map +0 -1
  1232. package/dist/cjs/p-dropdown-menu-container_2.cjs.entry.js +0 -88
  1233. package/dist/cjs/p-dropdown-menu-container_2.cjs.entry.js.map +0 -1
  1234. package/dist/cjs/p-helper_3.cjs.entry.js +0 -155
  1235. package/dist/cjs/p-helper_3.cjs.entry.js.map +0 -1
  1236. package/dist/cjs/p-tooltip.cjs.entry.js +0 -164
  1237. package/dist/cjs/p-tooltip.cjs.entry.js.map +0 -1
  1238. package/dist/cjs/screens-eb3a3232.js +0 -67
  1239. package/dist/cjs/screens-eb3a3232.js.map +0 -1
  1240. package/dist/collection/components/atoms/avatar/test/avatar.component.e2e.js +0 -26
  1241. package/dist/collection/components/atoms/avatar/test/avatar.component.e2e.js.map +0 -1
  1242. package/dist/collection/components/atoms/avatar/test/avatar.component.spec.js +0 -35
  1243. package/dist/collection/components/atoms/avatar/test/avatar.component.spec.js.map +0 -1
  1244. package/dist/collection/components/atoms/avatar-group/test/avatar-group.component.e2e.js +0 -26
  1245. package/dist/collection/components/atoms/avatar-group/test/avatar-group.component.e2e.js.map +0 -1
  1246. package/dist/collection/components/atoms/avatar-group/test/avatar-group.component.spec.js +0 -17
  1247. package/dist/collection/components/atoms/avatar-group/test/avatar-group.component.spec.js.map +0 -1
  1248. package/dist/collection/components/atoms/backdrop/test/backdrop.component.e2e.js +0 -26
  1249. package/dist/collection/components/atoms/backdrop/test/backdrop.component.e2e.js.map +0 -1
  1250. package/dist/collection/components/atoms/backdrop/test/backdrop.component.spec.js +0 -17
  1251. package/dist/collection/components/atoms/backdrop/test/backdrop.component.spec.js.map +0 -1
  1252. package/dist/collection/components/atoms/badge/test/badge.component.e2e.js +0 -26
  1253. package/dist/collection/components/atoms/badge/test/badge.component.e2e.js.map +0 -1
  1254. package/dist/collection/components/atoms/badge/test/badge.component.spec.js +0 -17
  1255. package/dist/collection/components/atoms/badge/test/badge.component.spec.js.map +0 -1
  1256. package/dist/collection/components/atoms/card-body/test/card-body.component.e2e.js +0 -26
  1257. package/dist/collection/components/atoms/card-body/test/card-body.component.e2e.js.map +0 -1
  1258. package/dist/collection/components/atoms/card-body/test/card-body.component.spec.js +0 -18
  1259. package/dist/collection/components/atoms/card-body/test/card-body.component.spec.js.map +0 -1
  1260. package/dist/collection/components/atoms/card-container/test/card-container.component.e2e.js +0 -26
  1261. package/dist/collection/components/atoms/card-container/test/card-container.component.e2e.js.map +0 -1
  1262. package/dist/collection/components/atoms/card-container/test/card-container.component.spec.js +0 -18
  1263. package/dist/collection/components/atoms/card-container/test/card-container.component.spec.js.map +0 -1
  1264. package/dist/collection/components/atoms/card-header/test/card-header.component.e2e.js +0 -26
  1265. package/dist/collection/components/atoms/card-header/test/card-header.component.e2e.js.map +0 -1
  1266. package/dist/collection/components/atoms/card-header/test/card-header.component.spec.js +0 -18
  1267. package/dist/collection/components/atoms/card-header/test/card-header.component.spec.js.map +0 -1
  1268. package/dist/collection/components/atoms/counter/test/counter.component.e2e.js +0 -26
  1269. package/dist/collection/components/atoms/counter/test/counter.component.e2e.js.map +0 -1
  1270. package/dist/collection/components/atoms/counter/test/counter.component.spec.js +0 -18
  1271. package/dist/collection/components/atoms/counter/test/counter.component.spec.js.map +0 -1
  1272. package/dist/collection/components/atoms/divider/test/divider.component.e2e.js +0 -26
  1273. package/dist/collection/components/atoms/divider/test/divider.component.e2e.js.map +0 -1
  1274. package/dist/collection/components/atoms/divider/test/divider.component.spec.js +0 -17
  1275. package/dist/collection/components/atoms/divider/test/divider.component.spec.js.map +0 -1
  1276. package/dist/collection/components/atoms/drawer-body/test/drawer-body.component.e2e.js +0 -26
  1277. package/dist/collection/components/atoms/drawer-body/test/drawer-body.component.e2e.js.map +0 -1
  1278. package/dist/collection/components/atoms/drawer-body/test/drawer-body.component.spec.js +0 -17
  1279. package/dist/collection/components/atoms/drawer-body/test/drawer-body.component.spec.js.map +0 -1
  1280. package/dist/collection/components/atoms/drawer-container/test/drawer-container.component.e2e.js +0 -26
  1281. package/dist/collection/components/atoms/drawer-container/test/drawer-container.component.e2e.js.map +0 -1
  1282. package/dist/collection/components/atoms/drawer-container/test/drawer-container.component.spec.js +0 -17
  1283. package/dist/collection/components/atoms/drawer-container/test/drawer-container.component.spec.js.map +0 -1
  1284. package/dist/collection/components/atoms/drawer-header/test/drawer-header.component.e2e.js +0 -26
  1285. package/dist/collection/components/atoms/drawer-header/test/drawer-header.component.e2e.js.map +0 -1
  1286. package/dist/collection/components/atoms/drawer-header/test/drawer-header.component.spec.js +0 -17
  1287. package/dist/collection/components/atoms/drawer-header/test/drawer-header.component.spec.js.map +0 -1
  1288. package/dist/collection/components/atoms/dropdown-menu-container/test/dropdown-menu-container.component.e2e.js +0 -26
  1289. package/dist/collection/components/atoms/dropdown-menu-container/test/dropdown-menu-container.component.e2e.js.map +0 -1
  1290. package/dist/collection/components/atoms/dropdown-menu-container/test/dropdown-menu-item.component.spec.js +0 -17
  1291. package/dist/collection/components/atoms/dropdown-menu-container/test/dropdown-menu-item.component.spec.js.map +0 -1
  1292. package/dist/collection/components/atoms/dropdown-menu-item/test/dropdown-menu-item.component.e2e.js +0 -26
  1293. package/dist/collection/components/atoms/dropdown-menu-item/test/dropdown-menu-item.component.e2e.js.map +0 -1
  1294. package/dist/collection/components/atoms/dropdown-menu-item/test/dropdown-menu-item.component.spec.js +0 -18
  1295. package/dist/collection/components/atoms/dropdown-menu-item/test/dropdown-menu-item.component.spec.js.map +0 -1
  1296. package/dist/collection/components/atoms/floating-menu-container/test/floating-menu-container.component.e2e.js +0 -26
  1297. package/dist/collection/components/atoms/floating-menu-container/test/floating-menu-container.component.e2e.js.map +0 -1
  1298. package/dist/collection/components/atoms/floating-menu-container/test/floating-menu-container.component.spec.js +0 -17
  1299. package/dist/collection/components/atoms/floating-menu-container/test/floating-menu-container.component.spec.js.map +0 -1
  1300. package/dist/collection/components/atoms/floating-menu-item/test/floating-menu-container.component.e2e.js +0 -26
  1301. package/dist/collection/components/atoms/floating-menu-item/test/floating-menu-container.component.e2e.js.map +0 -1
  1302. package/dist/collection/components/atoms/floating-menu-item/test/floating-menu-container.component.spec.js +0 -17
  1303. package/dist/collection/components/atoms/floating-menu-item/test/floating-menu-container.component.spec.js.map +0 -1
  1304. package/dist/collection/components/atoms/helper/test/helper.component.e2e.js +0 -26
  1305. package/dist/collection/components/atoms/helper/test/helper.component.e2e.js.map +0 -1
  1306. package/dist/collection/components/atoms/helper/test/helper.component.spec.js +0 -35
  1307. package/dist/collection/components/atoms/helper/test/helper.component.spec.js.map +0 -1
  1308. package/dist/collection/components/atoms/iban-icon/test/iban-icon.component.e2e.js +0 -26
  1309. package/dist/collection/components/atoms/iban-icon/test/iban-icon.component.e2e.js.map +0 -1
  1310. package/dist/collection/components/atoms/iban-icon/test/iban-icon.component.spec.js +0 -17
  1311. package/dist/collection/components/atoms/iban-icon/test/iban-icon.component.spec.js.map +0 -1
  1312. package/dist/collection/components/atoms/icon/test/icon.component.e2e.js +0 -37
  1313. package/dist/collection/components/atoms/icon/test/icon.component.e2e.js.map +0 -1
  1314. package/dist/collection/components/atoms/icon/test/icon.component.spec.js +0 -47
  1315. package/dist/collection/components/atoms/icon/test/icon.component.spec.js.map +0 -1
  1316. package/dist/collection/components/atoms/icon-deprecated/test/icon.component.e2e.js +0 -37
  1317. package/dist/collection/components/atoms/icon-deprecated/test/icon.component.e2e.js.map +0 -1
  1318. package/dist/collection/components/atoms/icon-deprecated/test/icon.component.spec.js +0 -47
  1319. package/dist/collection/components/atoms/icon-deprecated/test/icon.component.spec.js.map +0 -1
  1320. package/dist/collection/components/atoms/illustration/test/illustration.component.e2e.js +0 -37
  1321. package/dist/collection/components/atoms/illustration/test/illustration.component.e2e.js.map +0 -1
  1322. package/dist/collection/components/atoms/illustration/test/illustration.component.spec.js +0 -47
  1323. package/dist/collection/components/atoms/illustration/test/illustration.component.spec.js.map +0 -1
  1324. package/dist/collection/components/atoms/info-panel/test/info-panel.component.e2e.js +0 -26
  1325. package/dist/collection/components/atoms/info-panel/test/info-panel.component.e2e.js.map +0 -1
  1326. package/dist/collection/components/atoms/info-panel/test/info-panel.component.spec.js +0 -18
  1327. package/dist/collection/components/atoms/info-panel/test/info-panel.component.spec.js.map +0 -1
  1328. package/dist/collection/components/atoms/label/test/label.component.e2e.js +0 -26
  1329. package/dist/collection/components/atoms/label/test/label.component.e2e.js.map +0 -1
  1330. package/dist/collection/components/atoms/label/test/label.component.spec.js +0 -17
  1331. package/dist/collection/components/atoms/label/test/label.component.spec.js.map +0 -1
  1332. package/dist/collection/components/atoms/layout/test/layout.component.e2e.js +0 -26
  1333. package/dist/collection/components/atoms/layout/test/layout.component.e2e.js.map +0 -1
  1334. package/dist/collection/components/atoms/layout/test/layout.component.spec.js +0 -17
  1335. package/dist/collection/components/atoms/layout/test/layout.component.spec.js.map +0 -1
  1336. package/dist/collection/components/atoms/loader/test/loader.component.e2e.js +0 -37
  1337. package/dist/collection/components/atoms/loader/test/loader.component.e2e.js.map +0 -1
  1338. package/dist/collection/components/atoms/loader/test/loader.component.spec.js +0 -47
  1339. package/dist/collection/components/atoms/loader/test/loader.component.spec.js.map +0 -1
  1340. package/dist/collection/components/atoms/modal-body/test/modal-body.component.e2e.js +0 -26
  1341. package/dist/collection/components/atoms/modal-body/test/modal-body.component.e2e.js.map +0 -1
  1342. package/dist/collection/components/atoms/modal-body/test/modal-body.component.spec.js +0 -17
  1343. package/dist/collection/components/atoms/modal-body/test/modal-body.component.spec.js.map +0 -1
  1344. package/dist/collection/components/atoms/modal-container/test/modal-container.component.e2e.js +0 -26
  1345. package/dist/collection/components/atoms/modal-container/test/modal-container.component.e2e.js.map +0 -1
  1346. package/dist/collection/components/atoms/modal-container/test/modal-container.component.spec.js +0 -17
  1347. package/dist/collection/components/atoms/modal-container/test/modal-container.component.spec.js.map +0 -1
  1348. package/dist/collection/components/atoms/modal-footer/test/modal-footer.component.e2e.js +0 -26
  1349. package/dist/collection/components/atoms/modal-footer/test/modal-footer.component.e2e.js.map +0 -1
  1350. package/dist/collection/components/atoms/modal-footer/test/modal-footer.component.spec.js +0 -17
  1351. package/dist/collection/components/atoms/modal-footer/test/modal-footer.component.spec.js.map +0 -1
  1352. package/dist/collection/components/atoms/modal-header/test/modal-header.component.e2e.js +0 -26
  1353. package/dist/collection/components/atoms/modal-header/test/modal-header.component.e2e.js.map +0 -1
  1354. package/dist/collection/components/atoms/modal-header/test/modal-header.component.spec.js +0 -17
  1355. package/dist/collection/components/atoms/modal-header/test/modal-header.component.spec.js.map +0 -1
  1356. package/dist/collection/components/atoms/navigation-title/test/navigation-title.component.e2e.js +0 -26
  1357. package/dist/collection/components/atoms/navigation-title/test/navigation-title.component.e2e.js.map +0 -1
  1358. package/dist/collection/components/atoms/navigation-title/test/navigation-title.component.spec.js +0 -17
  1359. package/dist/collection/components/atoms/navigation-title/test/navigation-title.component.spec.js.map +0 -1
  1360. package/dist/collection/components/atoms/pagination-item/test/pagination-item.component.e2e.js +0 -26
  1361. package/dist/collection/components/atoms/pagination-item/test/pagination-item.component.e2e.js.map +0 -1
  1362. package/dist/collection/components/atoms/pagination-item/test/pagination-item.component.spec.js +0 -18
  1363. package/dist/collection/components/atoms/pagination-item/test/pagination-item.component.spec.js.map +0 -1
  1364. package/dist/collection/components/atoms/portal/test/portal.component.e2e.js +0 -26
  1365. package/dist/collection/components/atoms/portal/test/portal.component.e2e.js.map +0 -1
  1366. package/dist/collection/components/atoms/portal/test/portal.component.spec.js +0 -17
  1367. package/dist/collection/components/atoms/portal/test/portal.component.spec.js.map +0 -1
  1368. package/dist/collection/components/atoms/segment-container/test/segment-container.component.e2e.js +0 -26
  1369. package/dist/collection/components/atoms/segment-container/test/segment-container.component.e2e.js.map +0 -1
  1370. package/dist/collection/components/atoms/segment-container/test/segment-container.component.spec.js +0 -17
  1371. package/dist/collection/components/atoms/segment-container/test/segment-container.component.spec.js.map +0 -1
  1372. package/dist/collection/components/atoms/segment-item/test/segment-item.component.e2e.js +0 -26
  1373. package/dist/collection/components/atoms/segment-item/test/segment-item.component.e2e.js.map +0 -1
  1374. package/dist/collection/components/atoms/segment-item/test/segment-item.component.spec.js +0 -17
  1375. package/dist/collection/components/atoms/segment-item/test/segment-item.component.spec.js.map +0 -1
  1376. package/dist/collection/components/atoms/slider-indicator/test/slider-indicator.component.e2e.js +0 -26
  1377. package/dist/collection/components/atoms/slider-indicator/test/slider-indicator.component.e2e.js.map +0 -1
  1378. package/dist/collection/components/atoms/slider-indicator/test/slider-indicator.component.spec.js +0 -17
  1379. package/dist/collection/components/atoms/slider-indicator/test/slider-indicator.component.spec.js.map +0 -1
  1380. package/dist/collection/components/atoms/status/test/status.component.e2e.js +0 -26
  1381. package/dist/collection/components/atoms/status/test/status.component.e2e.js.map +0 -1
  1382. package/dist/collection/components/atoms/status/test/status.component.spec.js +0 -17
  1383. package/dist/collection/components/atoms/status/test/status.component.spec.js.map +0 -1
  1384. package/dist/collection/components/atoms/stepper-item/test/stepper-item.component.e2e.js +0 -26
  1385. package/dist/collection/components/atoms/stepper-item/test/stepper-item.component.e2e.js.map +0 -1
  1386. package/dist/collection/components/atoms/stepper-item/test/stepper-item.component.spec.js +0 -17
  1387. package/dist/collection/components/atoms/stepper-item/test/stepper-item.component.spec.js.map +0 -1
  1388. package/dist/collection/components/atoms/stepper-line/test/stepper-line.component.e2e.js +0 -26
  1389. package/dist/collection/components/atoms/stepper-line/test/stepper-line.component.e2e.js.map +0 -1
  1390. package/dist/collection/components/atoms/stepper-line/test/stepper-line.component.spec.js +0 -17
  1391. package/dist/collection/components/atoms/stepper-line/test/stepper-line.component.spec.js.map +0 -1
  1392. package/dist/collection/components/atoms/tab-group/test/tab-group.component.e2e.js +0 -26
  1393. package/dist/collection/components/atoms/tab-group/test/tab-group.component.e2e.js.map +0 -1
  1394. package/dist/collection/components/atoms/tab-group/test/tab-group.component.spec.js +0 -17
  1395. package/dist/collection/components/atoms/tab-group/test/tab-group.component.spec.js.map +0 -1
  1396. package/dist/collection/components/atoms/tab-item/test/tab-item.component.e2e.js +0 -26
  1397. package/dist/collection/components/atoms/tab-item/test/tab-item.component.e2e.js.map +0 -1
  1398. package/dist/collection/components/atoms/tab-item/test/tab-item.component.spec.js +0 -17
  1399. package/dist/collection/components/atoms/tab-item/test/tab-item.component.spec.js.map +0 -1
  1400. package/dist/collection/components/atoms/table-container/test/table-container.component.e2e.js +0 -26
  1401. package/dist/collection/components/atoms/table-container/test/table-container.component.e2e.js.map +0 -1
  1402. package/dist/collection/components/atoms/table-container/test/table-container.component.spec.js +0 -17
  1403. package/dist/collection/components/atoms/table-container/test/table-container.component.spec.js.map +0 -1
  1404. package/dist/collection/components/atoms/toast-container/test/toast-container.component.e2e.js +0 -26
  1405. package/dist/collection/components/atoms/toast-container/test/toast-container.component.e2e.js.map +0 -1
  1406. package/dist/collection/components/atoms/toast-container/test/toast-container.component.spec.js +0 -17
  1407. package/dist/collection/components/atoms/toast-container/test/toast-container.component.spec.js.map +0 -1
  1408. package/dist/collection/components/atoms/tooltip/test/tooltip.component.e2e.js +0 -37
  1409. package/dist/collection/components/atoms/tooltip/test/tooltip.component.e2e.js.map +0 -1
  1410. package/dist/collection/components/atoms/tooltip/test/tooltip.component.spec.js +0 -12
  1411. package/dist/collection/components/atoms/tooltip/test/tooltip.component.spec.js.map +0 -1
  1412. package/dist/collection/components/molecules/accordion/test/accordion.component.e2e.js +0 -26
  1413. package/dist/collection/components/molecules/accordion/test/accordion.component.e2e.js.map +0 -1
  1414. package/dist/collection/components/molecules/accordion/test/accordion.component.spec.js +0 -17
  1415. package/dist/collection/components/molecules/accordion/test/accordion.component.spec.js.map +0 -1
  1416. package/dist/collection/components/molecules/attachment/test/attachment.component.e2e.js +0 -26
  1417. package/dist/collection/components/molecules/attachment/test/attachment.component.e2e.js.map +0 -1
  1418. package/dist/collection/components/molecules/attachment/test/attachment.component.spec.js +0 -17
  1419. package/dist/collection/components/molecules/attachment/test/attachment.component.spec.js.map +0 -1
  1420. package/dist/collection/components/molecules/button/test/button.component.e2e.js +0 -26
  1421. package/dist/collection/components/molecules/button/test/button.component.e2e.js.map +0 -1
  1422. package/dist/collection/components/molecules/button/test/button.component.spec.js +0 -35
  1423. package/dist/collection/components/molecules/button/test/button.component.spec.js.map +0 -1
  1424. package/dist/collection/components/molecules/button-group/test/button-group.component.e2e.js +0 -26
  1425. package/dist/collection/components/molecules/button-group/test/button-group.component.e2e.js.map +0 -1
  1426. package/dist/collection/components/molecules/button-group/test/button-group.component.spec.js +0 -35
  1427. package/dist/collection/components/molecules/button-group/test/button-group.component.spec.js.map +0 -1
  1428. package/dist/collection/components/molecules/calendar/test/calendar.component.e2e.js +0 -26
  1429. package/dist/collection/components/molecules/calendar/test/calendar.component.e2e.js.map +0 -1
  1430. package/dist/collection/components/molecules/calendar/test/calendar.component.spec.js +0 -17
  1431. package/dist/collection/components/molecules/calendar/test/calendar.component.spec.js.map +0 -1
  1432. package/dist/collection/components/molecules/content-slider/test/content-slider.component.e2e.js +0 -26
  1433. package/dist/collection/components/molecules/content-slider/test/content-slider.component.e2e.js.map +0 -1
  1434. package/dist/collection/components/molecules/content-slider/test/content-slider.component.spec.js +0 -17
  1435. package/dist/collection/components/molecules/content-slider/test/content-slider.component.spec.js.map +0 -1
  1436. package/dist/collection/components/molecules/cropper/test/cropper.component.e2e.js +0 -26
  1437. package/dist/collection/components/molecules/cropper/test/cropper.component.e2e.js.map +0 -1
  1438. package/dist/collection/components/molecules/cropper/test/cropper.component.spec.js +0 -17
  1439. package/dist/collection/components/molecules/cropper/test/cropper.component.spec.js.map +0 -1
  1440. package/dist/collection/components/molecules/datepicker/test/datepicker.component.e2e.js +0 -26
  1441. package/dist/collection/components/molecules/datepicker/test/datepicker.component.e2e.js.map +0 -1
  1442. package/dist/collection/components/molecules/datepicker/test/datepicker.component.spec.js +0 -17
  1443. package/dist/collection/components/molecules/datepicker/test/datepicker.component.spec.js.map +0 -1
  1444. package/dist/collection/components/molecules/dropdown/test/dropdown.component.e2e.js +0 -26
  1445. package/dist/collection/components/molecules/dropdown/test/dropdown.component.e2e.js.map +0 -1
  1446. package/dist/collection/components/molecules/dropdown/test/dropdown.component.spec.js +0 -17
  1447. package/dist/collection/components/molecules/dropdown/test/dropdown.component.spec.js.map +0 -1
  1448. package/dist/collection/components/molecules/input-error/test/input-error.component.e2e.js +0 -26
  1449. package/dist/collection/components/molecules/input-error/test/input-error.component.e2e.js.map +0 -1
  1450. package/dist/collection/components/molecules/input-error/test/input-error.component.spec.js +0 -17
  1451. package/dist/collection/components/molecules/input-error/test/input-error.component.spec.js.map +0 -1
  1452. package/dist/collection/components/molecules/input-group/input-group.component.css +0 -1
  1453. package/dist/collection/components/molecules/input-group/input-group.component.js +0 -448
  1454. package/dist/collection/components/molecules/input-group/input-group.component.js.map +0 -1
  1455. package/dist/collection/components/molecules/input-group/test/input-group.component.e2e.js +0 -26
  1456. package/dist/collection/components/molecules/input-group/test/input-group.component.e2e.js.map +0 -1
  1457. package/dist/collection/components/molecules/input-group/test/input-group.component.spec.js +0 -17
  1458. package/dist/collection/components/molecules/input-group/test/input-group.component.spec.js.map +0 -1
  1459. package/dist/collection/components/molecules/navigation-item/test/navigation-item.component.e2e.js +0 -26
  1460. package/dist/collection/components/molecules/navigation-item/test/navigation-item.component.e2e.js.map +0 -1
  1461. package/dist/collection/components/molecules/navigation-item/test/navigation-item.component.spec.js +0 -18
  1462. package/dist/collection/components/molecules/navigation-item/test/navigation-item.component.spec.js.map +0 -1
  1463. package/dist/collection/components/molecules/navigation-section/test/navigation-section.component.e2e.js +0 -26
  1464. package/dist/collection/components/molecules/navigation-section/test/navigation-section.component.e2e.js.map +0 -1
  1465. package/dist/collection/components/molecules/navigation-section/test/navigation-section.component.spec.js +0 -17
  1466. package/dist/collection/components/molecules/navigation-section/test/navigation-section.component.spec.js.map +0 -1
  1467. package/dist/collection/components/molecules/page-size-select/test/page-size-select.component.e2e.js +0 -26
  1468. package/dist/collection/components/molecules/page-size-select/test/page-size-select.component.e2e.js.map +0 -1
  1469. package/dist/collection/components/molecules/page-size-select/test/page-size-select.component.spec.js +0 -17
  1470. package/dist/collection/components/molecules/page-size-select/test/page-size-select.component.spec.js.map +0 -1
  1471. package/dist/collection/components/molecules/pagination/test/pagination.component.e2e.js +0 -27
  1472. package/dist/collection/components/molecules/pagination/test/pagination.component.e2e.js.map +0 -1
  1473. package/dist/collection/components/molecules/pagination/test/pagination.component.spec.js +0 -18
  1474. package/dist/collection/components/molecules/pagination/test/pagination.component.spec.js.map +0 -1
  1475. package/dist/collection/components/molecules/profile/test/profile.component.e2e.js +0 -26
  1476. package/dist/collection/components/molecules/profile/test/profile.component.e2e.js.map +0 -1
  1477. package/dist/collection/components/molecules/profile/test/profile.component.spec.js +0 -17
  1478. package/dist/collection/components/molecules/profile/test/profile.component.spec.js.map +0 -1
  1479. package/dist/collection/components/molecules/select/test/select.component.e2e.js +0 -26
  1480. package/dist/collection/components/molecules/select/test/select.component.e2e.js.map +0 -1
  1481. package/dist/collection/components/molecules/select/test/select.component.spec.js +0 -17
  1482. package/dist/collection/components/molecules/select/test/select.component.spec.js.map +0 -1
  1483. package/dist/collection/components/molecules/stepper/test/stepper.component.e2e.js +0 -26
  1484. package/dist/collection/components/molecules/stepper/test/stepper.component.e2e.js.map +0 -1
  1485. package/dist/collection/components/molecules/stepper/test/stepper.component.spec.js +0 -17
  1486. package/dist/collection/components/molecules/stepper/test/stepper.component.spec.js.map +0 -1
  1487. package/dist/collection/components/molecules/table-cell/test/table-cell.component.e2e.js +0 -26
  1488. package/dist/collection/components/molecules/table-cell/test/table-cell.component.e2e.js.map +0 -1
  1489. package/dist/collection/components/molecules/table-cell/test/table-cell.component.spec.js +0 -17
  1490. package/dist/collection/components/molecules/table-cell/test/table-cell.component.spec.js.map +0 -1
  1491. package/dist/collection/components/molecules/table-footer/test/table-footer.component.e2e.js +0 -26
  1492. package/dist/collection/components/molecules/table-footer/test/table-footer.component.e2e.js.map +0 -1
  1493. package/dist/collection/components/molecules/table-footer/test/table-footer.component.spec.js +0 -17
  1494. package/dist/collection/components/molecules/table-footer/test/table-footer.component.spec.js.map +0 -1
  1495. package/dist/collection/components/molecules/table-header/test/table-header.component.e2e.js +0 -26
  1496. package/dist/collection/components/molecules/table-header/test/table-header.component.e2e.js.map +0 -1
  1497. package/dist/collection/components/molecules/table-header/test/table-header.component.spec.js +0 -17
  1498. package/dist/collection/components/molecules/table-header/test/table-header.component.spec.js.map +0 -1
  1499. package/dist/collection/components/molecules/table-row/test/table-row.component.e2e.js +0 -26
  1500. package/dist/collection/components/molecules/table-row/test/table-row.component.e2e.js.map +0 -1
  1501. package/dist/collection/components/molecules/table-row/test/table-row.component.spec.js +0 -17
  1502. package/dist/collection/components/molecules/table-row/test/table-row.component.spec.js.map +0 -1
  1503. package/dist/collection/components/molecules/toast/test/toast.component.e2e.js +0 -26
  1504. package/dist/collection/components/molecules/toast/test/toast.component.e2e.js.map +0 -1
  1505. package/dist/collection/components/molecules/toast/test/toast.component.spec.js +0 -17
  1506. package/dist/collection/components/molecules/toast/test/toast.component.spec.js.map +0 -1
  1507. package/dist/collection/components/organisms/drawer/test/drawer.component.e2e.js +0 -26
  1508. package/dist/collection/components/organisms/drawer/test/drawer.component.e2e.js.map +0 -1
  1509. package/dist/collection/components/organisms/drawer/test/drawer.component.spec.js +0 -17
  1510. package/dist/collection/components/organisms/drawer/test/drawer.component.spec.js.map +0 -1
  1511. package/dist/collection/components/organisms/modal/test/modal.component.e2e.js +0 -26
  1512. package/dist/collection/components/organisms/modal/test/modal.component.e2e.js.map +0 -1
  1513. package/dist/collection/components/organisms/modal/test/modal.component.spec.js +0 -17
  1514. package/dist/collection/components/organisms/modal/test/modal.component.spec.js.map +0 -1
  1515. package/dist/collection/components/organisms/navbar/test/navbar.component.e2e.js +0 -26
  1516. package/dist/collection/components/organisms/navbar/test/navbar.component.e2e.js.map +0 -1
  1517. package/dist/collection/components/organisms/navbar/test/navbar.component.spec.js +0 -17
  1518. package/dist/collection/components/organisms/navbar/test/navbar.component.spec.js.map +0 -1
  1519. package/dist/collection/components/organisms/table/test/table.component.e2e.js +0 -26
  1520. package/dist/collection/components/organisms/table/test/table.component.e2e.js.map +0 -1
  1521. package/dist/collection/components/organisms/table/test/table.component.spec.js +0 -18
  1522. package/dist/collection/components/organisms/table/test/table.component.spec.js.map +0 -1
  1523. package/dist/components/_commonjsHelpers.js +0 -21
  1524. package/dist/components/_commonjsHelpers.js.map +0 -1
  1525. package/dist/components/input-group.component.js +0 -180
  1526. package/dist/components/input-group.component.js.map +0 -1
  1527. package/dist/components/p-input-group.d.ts +0 -11
  1528. package/dist/components/p-input-group.js +0 -8
  1529. package/dist/components/p-input-group.js.map +0 -1
  1530. package/dist/esm/_commonjsHelpers-e9b9b14e.js +0 -21
  1531. package/dist/esm/_commonjsHelpers-e9b9b14e.js.map +0 -1
  1532. package/dist/esm/child-of-fec6ab3a.js +0 -9
  1533. package/dist/esm/child-of-fec6ab3a.js.map +0 -1
  1534. package/dist/esm/cn-616e5396.js +0 -2817
  1535. package/dist/esm/cn-616e5396.js.map +0 -1
  1536. package/dist/esm/floating-ui.dom.esm-314a52b2.js +0 -1327
  1537. package/dist/esm/floating-ui.dom.esm-314a52b2.js.map +0 -1
  1538. package/dist/esm/iban-c412c889.js +0 -14
  1539. package/dist/esm/iban-c412c889.js.map +0 -1
  1540. package/dist/esm/icons-cf12e4d2.js +0 -1546
  1541. package/dist/esm/icons-cf12e4d2.js.map +0 -1
  1542. package/dist/esm/icons-deprecated-2e1d124f.js +0 -1121
  1543. package/dist/esm/icons-deprecated-2e1d124f.js.map +0 -1
  1544. package/dist/esm/index-5fa2e728.js +0 -2300
  1545. package/dist/esm/index-5fa2e728.js.map +0 -1
  1546. package/dist/esm/index-7f8d27cf.js +0 -2701
  1547. package/dist/esm/index-7f8d27cf.js.map +0 -1
  1548. package/dist/esm/localization-2c641f90.js +0 -59
  1549. package/dist/esm/localization-2c641f90.js.map +0 -1
  1550. package/dist/esm/object-get-by-path-273a7106.js +0 -114
  1551. package/dist/esm/object-get-by-path-273a7106.js.map +0 -1
  1552. package/dist/esm/p-button_3.entry.js +0 -432
  1553. package/dist/esm/p-button_3.entry.js.map +0 -1
  1554. package/dist/esm/p-dropdown-menu-container_2.entry.js +0 -83
  1555. package/dist/esm/p-dropdown-menu-container_2.entry.js.map +0 -1
  1556. package/dist/esm/p-helper_3.entry.js +0 -149
  1557. package/dist/esm/p-helper_3.entry.js.map +0 -1
  1558. package/dist/esm/p-tooltip.entry.js +0 -160
  1559. package/dist/esm/p-tooltip.entry.js.map +0 -1
  1560. package/dist/esm/polyfills/core-js.js +0 -11
  1561. package/dist/esm/polyfills/dom.js +0 -79
  1562. package/dist/esm/polyfills/es5-html-element.js +0 -1
  1563. package/dist/esm/polyfills/index.js +0 -34
  1564. package/dist/esm/polyfills/system.js +0 -6
  1565. package/dist/esm/screens-c0e0dee2.js +0 -54
  1566. package/dist/esm/screens-c0e0dee2.js.map +0 -1
  1567. package/dist/paperless/p-04f2c445.entry.js +0 -2
  1568. package/dist/paperless/p-04f2c445.entry.js.map +0 -1
  1569. package/dist/paperless/p-0b5a9b3b.entry.js +0 -2
  1570. package/dist/paperless/p-0b5a9b3b.entry.js.map +0 -1
  1571. package/dist/paperless/p-0fb58b95.entry.js +0 -2
  1572. package/dist/paperless/p-0fb58b95.entry.js.map +0 -1
  1573. package/dist/paperless/p-129b277f.entry.js +0 -2
  1574. package/dist/paperless/p-129b277f.entry.js.map +0 -1
  1575. package/dist/paperless/p-12f5d6c1.entry.js +0 -2
  1576. package/dist/paperless/p-12f5d6c1.entry.js.map +0 -1
  1577. package/dist/paperless/p-15abe9ab.entry.js +0 -2
  1578. package/dist/paperless/p-15abe9ab.entry.js.map +0 -1
  1579. package/dist/paperless/p-16c8c10d.entry.js +0 -2
  1580. package/dist/paperless/p-16c8c10d.entry.js.map +0 -1
  1581. package/dist/paperless/p-1926e607.entry.js +0 -2
  1582. package/dist/paperless/p-1926e607.entry.js.map +0 -1
  1583. package/dist/paperless/p-195ede81.entry.js +0 -2
  1584. package/dist/paperless/p-195ede81.entry.js.map +0 -1
  1585. package/dist/paperless/p-198b4653.entry.js +0 -2
  1586. package/dist/paperless/p-198b4653.entry.js.map +0 -1
  1587. package/dist/paperless/p-1c97ddaa.entry.js +0 -2
  1588. package/dist/paperless/p-1c97ddaa.entry.js.map +0 -1
  1589. package/dist/paperless/p-28fee2e1.entry.js +0 -2
  1590. package/dist/paperless/p-28fee2e1.entry.js.map +0 -1
  1591. package/dist/paperless/p-2bedd43c.entry.js +0 -2
  1592. package/dist/paperless/p-2bedd43c.entry.js.map +0 -1
  1593. package/dist/paperless/p-2e3b9db4.js +0 -2
  1594. package/dist/paperless/p-2e3b9db4.js.map +0 -1
  1595. package/dist/paperless/p-33fa21e3.js +0 -2
  1596. package/dist/paperless/p-33fa21e3.js.map +0 -1
  1597. package/dist/paperless/p-36d0d0e6.entry.js +0 -2
  1598. package/dist/paperless/p-36d0d0e6.entry.js.map +0 -1
  1599. package/dist/paperless/p-3885d19b.entry.js +0 -2
  1600. package/dist/paperless/p-3885d19b.entry.js.map +0 -1
  1601. package/dist/paperless/p-3b9d77dc.entry.js +0 -2
  1602. package/dist/paperless/p-3b9d77dc.entry.js.map +0 -1
  1603. package/dist/paperless/p-3dba9a43.entry.js +0 -2
  1604. package/dist/paperless/p-3dba9a43.entry.js.map +0 -1
  1605. package/dist/paperless/p-422b7dd3.entry.js +0 -2
  1606. package/dist/paperless/p-422b7dd3.entry.js.map +0 -1
  1607. package/dist/paperless/p-43cdfda1.entry.js +0 -2
  1608. package/dist/paperless/p-43cdfda1.entry.js.map +0 -1
  1609. package/dist/paperless/p-4c3cdddf.entry.js +0 -2
  1610. package/dist/paperless/p-4c3cdddf.entry.js.map +0 -1
  1611. package/dist/paperless/p-4d330cfc.js +0 -2
  1612. package/dist/paperless/p-4d330cfc.js.map +0 -1
  1613. package/dist/paperless/p-51b3884b.entry.js +0 -2
  1614. package/dist/paperless/p-51b3884b.entry.js.map +0 -1
  1615. package/dist/paperless/p-55752ba9.entry.js +0 -2
  1616. package/dist/paperless/p-55752ba9.entry.js.map +0 -1
  1617. package/dist/paperless/p-5a072ae3.entry.js +0 -2
  1618. package/dist/paperless/p-5a072ae3.entry.js.map +0 -1
  1619. package/dist/paperless/p-5a7c004d.entry.js +0 -2
  1620. package/dist/paperless/p-5a7c004d.entry.js.map +0 -1
  1621. package/dist/paperless/p-5afd99f1.entry.js +0 -2
  1622. package/dist/paperless/p-5afd99f1.entry.js.map +0 -1
  1623. package/dist/paperless/p-5df485b9.entry.js +0 -2
  1624. package/dist/paperless/p-5df485b9.entry.js.map +0 -1
  1625. package/dist/paperless/p-64765a81.js +0 -2
  1626. package/dist/paperless/p-64765a81.js.map +0 -1
  1627. package/dist/paperless/p-648c33b9.entry.js +0 -2
  1628. package/dist/paperless/p-648c33b9.entry.js.map +0 -1
  1629. package/dist/paperless/p-6521a730.entry.js +0 -2
  1630. package/dist/paperless/p-6521a730.entry.js.map +0 -1
  1631. package/dist/paperless/p-6cddc325.js +0 -2
  1632. package/dist/paperless/p-6cddc325.js.map +0 -1
  1633. package/dist/paperless/p-6d6bb913.entry.js +0 -3
  1634. package/dist/paperless/p-6d6bb913.entry.js.map +0 -1
  1635. package/dist/paperless/p-740bc1dc.entry.js +0 -2
  1636. package/dist/paperless/p-740bc1dc.entry.js.map +0 -1
  1637. package/dist/paperless/p-75006522.js +0 -2
  1638. package/dist/paperless/p-75006522.js.map +0 -1
  1639. package/dist/paperless/p-75330470.entry.js +0 -2
  1640. package/dist/paperless/p-75330470.entry.js.map +0 -1
  1641. package/dist/paperless/p-7eb4689d.entry.js +0 -2
  1642. package/dist/paperless/p-7eb4689d.entry.js.map +0 -1
  1643. package/dist/paperless/p-82c79faa.entry.js +0 -2
  1644. package/dist/paperless/p-82c79faa.entry.js.map +0 -1
  1645. package/dist/paperless/p-88f72088.entry.js +0 -2
  1646. package/dist/paperless/p-88f72088.entry.js.map +0 -1
  1647. package/dist/paperless/p-926d997e.entry.js +0 -2
  1648. package/dist/paperless/p-926d997e.entry.js.map +0 -1
  1649. package/dist/paperless/p-9d112705.entry.js +0 -2
  1650. package/dist/paperless/p-9d112705.entry.js.map +0 -1
  1651. package/dist/paperless/p-a26e1c6d.entry.js +0 -2
  1652. package/dist/paperless/p-a26e1c6d.entry.js.map +0 -1
  1653. package/dist/paperless/p-a3853fc7.js +0 -3
  1654. package/dist/paperless/p-a3853fc7.js.map +0 -1
  1655. package/dist/paperless/p-a5995873.entry.js +0 -2
  1656. package/dist/paperless/p-a5995873.entry.js.map +0 -1
  1657. package/dist/paperless/p-b11136c3.entry.js +0 -2
  1658. package/dist/paperless/p-b11136c3.entry.js.map +0 -1
  1659. package/dist/paperless/p-b18ef00d.entry.js +0 -2
  1660. package/dist/paperless/p-b18ef00d.entry.js.map +0 -1
  1661. package/dist/paperless/p-b7a45a0a.entry.js +0 -2
  1662. package/dist/paperless/p-b7a45a0a.entry.js.map +0 -1
  1663. package/dist/paperless/p-b9cdcb32.entry.js +0 -2
  1664. package/dist/paperless/p-b9cdcb32.entry.js.map +0 -1
  1665. package/dist/paperless/p-bf9965ea.entry.js +0 -2
  1666. package/dist/paperless/p-bf9965ea.entry.js.map +0 -1
  1667. package/dist/paperless/p-cada312c.entry.js +0 -2
  1668. package/dist/paperless/p-cada312c.entry.js.map +0 -1
  1669. package/dist/paperless/p-d3d8468b.js +0 -2
  1670. package/dist/paperless/p-d3d8468b.js.map +0 -1
  1671. package/dist/paperless/p-d5d413a1.js +0 -2
  1672. package/dist/paperless/p-d5d413a1.js.map +0 -1
  1673. package/dist/paperless/p-dc9bf641.entry.js +0 -2
  1674. package/dist/paperless/p-dc9bf641.entry.js.map +0 -1
  1675. package/dist/paperless/p-e4ab1d73.entry.js +0 -2
  1676. package/dist/paperless/p-e4ab1d73.entry.js.map +0 -1
  1677. package/dist/paperless/p-e74bd898.entry.js +0 -2
  1678. package/dist/paperless/p-e74bd898.entry.js.map +0 -1
  1679. package/dist/paperless/p-e78945ad.entry.js +0 -2
  1680. package/dist/paperless/p-e78945ad.entry.js.map +0 -1
  1681. package/dist/paperless/p-ea329388.entry.js +0 -2
  1682. package/dist/paperless/p-ea329388.entry.js.map +0 -1
  1683. package/dist/paperless/p-f8544f0c.js +0 -2
  1684. package/dist/paperless/p-f8544f0c.js.map +0 -1
  1685. package/dist/paperless/p-fdd2c026.js +0 -2
  1686. package/dist/paperless/p-fdd2c026.js.map +0 -1
  1687. package/dist/paperless/p-feb5c8e3.entry.js +0 -2
  1688. package/dist/paperless/p-feb5c8e3.entry.js.map +0 -1
  1689. package/dist/paperless/p-fef32402.js +0 -2
  1690. package/dist/paperless/p-fef32402.js.map +0 -1
  1691. package/dist/types/components/molecules/input-group/input-group.component.d.ts +0 -81
  1692. package/dist/workbox-bc53c9ad.js +0 -2
  1693. package/dist/workbox-bc53c9ad.js.map +0 -1
@@ -1 +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,eA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,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,qBAAqB,EAAE,CAAC,MAAM,CAAC;IACrE,IAAI,WAAW,IAAI,IAAI,CAAC,YAAY,EAAE;MACrC,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;KAChC;EACF,CAAC;EAEO,SAAS,CAAC,EAAgB;IACjC,IAAI,CAAC,EAAE,EAAE;MACR,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;KACvB;IAED,MAAM,MAAM,GAAG,EAAE,CAAC,qBAAqB,EAAE,CAAC;IAC1C,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,qBAAqB,EAAE,CAAC;IAE3D,OAAO,UAAU,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,GAAG,EAAE,CAAC;EAC7C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {\n\tComponent,\n\tElement,\n\th,\n\tHost,\n\tListen,\n\tProp,\n\tState,\n} from '@stencil/core';\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<p-slider-indicator\n\t\t\t\t\t\t\t\tactive={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
+ {"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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,\n\tListen,\n\tProp,\n\tState,\n} from '@stencil/core';\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<p-slider-indicator\n\t\t\t\t\t\t\t\tactive={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"]}
@@ -2,234 +2,248 @@ import { Host, h, } from "@stencil/core";
2
2
  import { clsx } from "clsx";
3
3
  import "cropperjs";
4
4
  export class Cropper {
5
- constructor() {
6
- this._maxScale = 0;
7
- this._minScale = 0;
8
- this.variant = 'user';
9
- this.value = undefined;
10
- this.returnType = 'base64';
11
- this._loaded = false;
12
- this._currentScale = 0;
13
- }
14
- onResize() {
15
- if (this._resizeDebounceTimeout) {
16
- clearTimeout(this._resizeDebounceTimeout);
17
- }
18
- this._resizeDebounceTimeout = setTimeout(() => {
19
- this._selectionRef.$center();
20
- this._imageRef.$center();
21
- }, 200);
22
- }
23
- componentDidLoad() {
24
- setTimeout(() => {
25
- this._loaded = true;
26
- }, 200);
27
- }
28
- render() {
29
- return (h(Host, { class: "p-cropper" }, this._loaded && (h("cropper-canvas", { class: "h-[17.5rem] w-full border-0 border-b border-solid border-mystic-medium bg-white", onAction: () => this._onAction() }, h("cropper-image", { src: this.value, alt: "Picture", ref: (ref) => this._setImageRef(ref), scalable: true, crossorigin: "anonymous" }), h("cropper-shade", { class: clsx({
30
- 'rounded-round': this.variant === 'user',
31
- rounded: this.variant === 'company',
32
- }), "theme-color": "rgba(255, 255, 255, 0.5)", hidden: true }), h("cropper-selection", { "initial-coverage": "0.7", "aspect-ratio": "1", ref: (ref) => (this._selectionRef = ref) }), h("cropper-handle", { action: "move", plain: true }))), h("div", { class: "flex w-full items-center gap-2 px-14 text-storm-vague tablet:max-w-xs tablet:px-1" }, h("p-icon", { variant: "minus" }), h("input", { 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", { variant: "plus" }))));
33
- }
34
- _setImageRef(ref) {
35
- if (this._imageRef) {
36
- return;
37
- }
38
- this._imageRef = ref;
39
- this._imageRef.$ready((image) => setTimeout(() => this._setInitialState(image), 200));
40
- }
41
- _setInitialState(image) {
42
- let scale;
43
- if (image.naturalWidth > image.naturalHeight) {
44
- // set scale by height
45
- scale = 200 / image.naturalHeight;
46
- }
47
- if (image.naturalHeight >= image.naturalWidth) {
48
- // set scale by width
49
- scale = 200 / image.naturalWidth;
50
- }
51
- const current = this._imageRef.$getTransform();
52
- this._minScale = scale;
53
- this._maxScale = current[0];
54
- this._selectionRef.$resize('nw-resize', 200, 200, 1);
55
- this._selectionRef.$center();
56
- this._setScale(scale);
57
- this._toCanvas();
58
- }
59
- _onAction() {
60
- this._setCurrentScale();
61
- this._toCanvas();
62
- }
63
- _setScale(scale, setCenter = true, setCurrentScale = true) {
64
- const transform = this._imageRef.$getTransform();
65
- this._imageRef.$setTransform([
66
- scale,
67
- 0,
68
- 0,
69
- scale,
70
- transform[4],
71
- transform[5],
72
- ]);
73
- if (setCenter) {
74
- this._imageRef.$center();
75
- }
76
- if (setCurrentScale) {
77
- this._setCurrentScale();
78
- }
79
- }
80
- _setCurrentScale() {
81
- const transform = this._imageRef.$getTransform();
82
- const current = transform[0];
83
- if (current < this._minScale) {
84
- this._setScale(this._minScale, true, false);
85
- this._currentScale = 0;
86
- return;
87
- }
88
- if (current > this._maxScale) {
89
- this._setScale(this._maxScale, true, false);
90
- this._currentScale = 100;
91
- return;
92
- }
93
- if (current === this._minScale) {
94
- this._currentScale = 0;
95
- return;
96
- }
97
- if (current === this._maxScale) {
98
- this._currentScale = 100;
99
- return;
100
- }
101
- const minMaxDiff = this._maxScale - this._minScale;
102
- const currentDiff = current - this._minScale;
103
- const percentage = (currentDiff / minMaxDiff) * 100;
104
- this._currentScale = percentage;
105
- }
106
- _onInput(value) {
107
- const transform = this._imageRef.$getTransform();
108
- const current = transform[0];
109
- const minMaxDiff = this._maxScale - this._minScale;
110
- const toSet = minMaxDiff * (value / 100);
111
- if (toSet === current) {
112
- return;
113
- }
114
- this._setScale(toSet + this._minScale, false, false);
115
- this._currentScale = value;
116
- this._toCanvas();
117
- }
118
- _toCanvas() {
119
- if (this._toCanvasDebounceTimeout) {
120
- clearTimeout(this._toCanvasDebounceTimeout);
121
- }
122
- this._toCanvasDebounceTimeout = setTimeout(async () => {
123
- const canvas = await this._selectionRef.$toCanvas();
124
- if (this.returnType === 'canvas') {
125
- this.valueChange.emit(canvas);
126
- return;
127
- }
128
- const data = canvas.toDataURL('image/png');
129
- this.valueChange.emit(data);
130
- }, 200);
131
- }
132
- static get is() { return "p-cropper"; }
133
- static get encapsulation() { return "shadow"; }
134
- static get originalStyleUrls() {
135
- return {
136
- "$": ["cropper.component.scss"]
137
- };
138
- }
139
- static get styleUrls() {
140
- return {
141
- "$": ["cropper.component.css"]
142
- };
143
- }
144
- static get properties() {
145
- return {
146
- "variant": {
147
- "type": "string",
148
- "mutable": false,
149
- "complexType": {
150
- "original": "'user' | 'company'",
151
- "resolved": "\"company\" | \"user\"",
152
- "references": {}
153
- },
154
- "required": false,
155
- "optional": false,
156
- "docs": {
157
- "tags": [],
158
- "text": "Variant of the image that's being cropped"
159
- },
160
- "attribute": "variant",
161
- "reflect": true,
162
- "defaultValue": "'user'"
163
- },
164
- "value": {
165
- "type": "any",
166
- "mutable": false,
167
- "complexType": {
168
- "original": "any",
169
- "resolved": "any",
170
- "references": {}
171
- },
172
- "required": false,
173
- "optional": false,
174
- "docs": {
175
- "tags": [],
176
- "text": "The image to crop (url or base64)"
177
- },
178
- "attribute": "value",
179
- "reflect": false
180
- },
181
- "returnType": {
182
- "type": "string",
183
- "mutable": false,
184
- "complexType": {
185
- "original": "'canvas' | 'base64'",
186
- "resolved": "\"base64\" | \"canvas\"",
187
- "references": {}
188
- },
189
- "required": false,
190
- "optional": false,
191
- "docs": {
192
- "tags": [],
193
- "text": "The return type of the onchange"
194
- },
195
- "attribute": "return-type",
196
- "reflect": false,
197
- "defaultValue": "'base64'"
198
- }
199
- };
200
- }
201
- static get states() {
202
- return {
203
- "_loaded": {},
204
- "_currentScale": {}
205
- };
206
- }
207
- static get events() {
208
- return [{
209
- "method": "valueChange",
210
- "name": "valueChange",
211
- "bubbles": false,
212
- "cancelable": true,
213
- "composed": true,
214
- "docs": {
215
- "tags": [],
216
- "text": "Event when the value changes"
217
- },
218
- "complexType": {
219
- "original": "any",
220
- "resolved": "any",
221
- "references": {}
5
+ constructor() {
6
+ this.variant = 'user';
7
+ this.value = undefined;
8
+ this.returnType = 'base64';
9
+ this._loaded = false;
10
+ this._currentScale = 0;
11
+ }
12
+ /**
13
+ * Event when the value changes
14
+ */
15
+ valueChange;
16
+ _imageRef;
17
+ _selectionRef;
18
+ _maxScale = 0;
19
+ _minScale = 0;
20
+ _resizeDebounceTimeout;
21
+ _toCanvasDebounceTimeout;
22
+ onResize() {
23
+ if (this._resizeDebounceTimeout) {
24
+ clearTimeout(this._resizeDebounceTimeout);
25
+ }
26
+ this._resizeDebounceTimeout = setTimeout(() => {
27
+ this._selectionRef.$center();
28
+ this._imageRef.$center();
29
+ }, 200);
30
+ }
31
+ componentDidLoad() {
32
+ setTimeout(() => {
33
+ this._loaded = true;
34
+ }, 200);
35
+ }
36
+ render() {
37
+ return (h(Host, { key: '6ebd0a1fc3d389e08eb64366852829441faac870', class: 'p-cropper' }, this._loaded && (h("cropper-canvas", { key: 'ebd7739095487bc8342d3069fd49b4b1b931a0b8', class: 'h-[17.5rem] w-full border-0 border-b border-solid border-mystic-medium bg-white', onAction: () => this._onAction() }, h("cropper-image", { key: '8784c083f9bee21ce4cb07a8e5f42120312de9cd', src: this.value, alt: 'Picture', ref: ref => this._setImageRef(ref), scalable: true, crossorigin: 'anonymous' }), h("cropper-shade", { key: '396c9156c949aae95855797776396b11c129f9c6', class: clsx({
38
+ 'rounded-round': this.variant === 'user',
39
+ rounded: this.variant === 'company',
40
+ }), "theme-color": 'rgba(255, 255, 255, 0.5)', hidden: true }), h("cropper-selection", { key: 'b98f209132164b5d1dd0e86e322714b7c6a6daed', "initial-coverage": '0.7', "aspect-ratio": '1', ref: ref => (this._selectionRef = ref) }), h("cropper-handle", { key: '94d54608e41829f850f834d1000813337bec12a9', action: 'move', plain: true }))), h("div", { key: 'cfea8e12b32bc15f6ed553ba703ba4c56cb2fa36', class: 'flex w-full items-center gap-2 px-14 text-storm-vague tablet:max-w-xs tablet:px-1' }, h("p-icon", { key: '4175e10fb032840a115aeabd4925eedbeaa9162c', variant: 'minus' }), h("input", { key: '62ce062025d028a294a1e6b35e8cd57b0e1a1257', 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: 'e01c3c087fff137cb13f63a2923ab993333661a6', variant: 'plus' }))));
41
+ }
42
+ _setImageRef(ref) {
43
+ if (this._imageRef) {
44
+ return;
45
+ }
46
+ this._imageRef = ref;
47
+ this._imageRef.$ready(image => setTimeout(() => this._setInitialState(image), 200));
48
+ }
49
+ _setInitialState(image) {
50
+ let scale;
51
+ if (image.naturalWidth > image.naturalHeight) {
52
+ // set scale by height
53
+ scale = 200 / image.naturalHeight;
54
+ }
55
+ if (image.naturalHeight >= image.naturalWidth) {
56
+ // set scale by width
57
+ scale = 200 / image.naturalWidth;
58
+ }
59
+ const current = this._imageRef.$getTransform();
60
+ this._minScale = scale;
61
+ this._maxScale = current[0];
62
+ this._selectionRef.$resize('nw-resize', 200, 200, 1);
63
+ this._selectionRef.$center();
64
+ this._setScale(scale);
65
+ this._toCanvas();
66
+ }
67
+ _onAction() {
68
+ this._setCurrentScale();
69
+ this._toCanvas();
70
+ }
71
+ _setScale(scale, setCenter = true, setCurrentScale = true) {
72
+ const transform = this._imageRef.$getTransform();
73
+ this._imageRef.$setTransform([
74
+ scale,
75
+ 0,
76
+ 0,
77
+ scale,
78
+ transform[4],
79
+ transform[5],
80
+ ]);
81
+ if (setCenter) {
82
+ this._imageRef.$center();
83
+ }
84
+ if (setCurrentScale) {
85
+ this._setCurrentScale();
86
+ }
87
+ }
88
+ _setCurrentScale() {
89
+ const transform = this._imageRef.$getTransform();
90
+ const current = transform[0];
91
+ if (current < this._minScale) {
92
+ this._setScale(this._minScale, true, false);
93
+ this._currentScale = 0;
94
+ return;
222
95
  }
223
- }];
224
- }
225
- static get listeners() {
226
- return [{
227
- "name": "resize",
228
- "method": "onResize",
229
- "target": "window",
230
- "capture": false,
231
- "passive": true
232
- }];
233
- }
96
+ if (current > this._maxScale) {
97
+ this._setScale(this._maxScale, true, false);
98
+ this._currentScale = 100;
99
+ return;
100
+ }
101
+ if (current === this._minScale) {
102
+ this._currentScale = 0;
103
+ return;
104
+ }
105
+ if (current === this._maxScale) {
106
+ this._currentScale = 100;
107
+ return;
108
+ }
109
+ const minMaxDiff = this._maxScale - this._minScale;
110
+ const currentDiff = current - this._minScale;
111
+ const percentage = (currentDiff / minMaxDiff) * 100;
112
+ this._currentScale = percentage;
113
+ }
114
+ _onInput(value) {
115
+ const transform = this._imageRef.$getTransform();
116
+ const current = transform[0];
117
+ const minMaxDiff = this._maxScale - this._minScale;
118
+ const toSet = minMaxDiff * (value / 100);
119
+ if (toSet === current) {
120
+ return;
121
+ }
122
+ this._setScale(toSet + this._minScale, false, false);
123
+ this._currentScale = value;
124
+ this._toCanvas();
125
+ }
126
+ _toCanvas() {
127
+ if (this._toCanvasDebounceTimeout) {
128
+ clearTimeout(this._toCanvasDebounceTimeout);
129
+ }
130
+ this._toCanvasDebounceTimeout = setTimeout(async () => {
131
+ const canvas = await this._selectionRef.$toCanvas();
132
+ if (this.returnType === 'canvas') {
133
+ this.valueChange.emit(canvas);
134
+ return;
135
+ }
136
+ const data = canvas.toDataURL('image/png');
137
+ this.valueChange.emit(data);
138
+ }, 200);
139
+ }
140
+ static get is() { return "p-cropper"; }
141
+ static get encapsulation() { return "shadow"; }
142
+ static get originalStyleUrls() {
143
+ return {
144
+ "$": ["cropper.component.scss"]
145
+ };
146
+ }
147
+ static get styleUrls() {
148
+ return {
149
+ "$": ["cropper.component.css"]
150
+ };
151
+ }
152
+ static get properties() {
153
+ return {
154
+ "variant": {
155
+ "type": "string",
156
+ "mutable": false,
157
+ "complexType": {
158
+ "original": "'user' | 'company'",
159
+ "resolved": "\"company\" | \"user\"",
160
+ "references": {}
161
+ },
162
+ "required": false,
163
+ "optional": false,
164
+ "docs": {
165
+ "tags": [],
166
+ "text": "Variant of the image that's being cropped"
167
+ },
168
+ "getter": false,
169
+ "setter": false,
170
+ "attribute": "variant",
171
+ "reflect": true,
172
+ "defaultValue": "'user'"
173
+ },
174
+ "value": {
175
+ "type": "any",
176
+ "mutable": false,
177
+ "complexType": {
178
+ "original": "any",
179
+ "resolved": "any",
180
+ "references": {}
181
+ },
182
+ "required": false,
183
+ "optional": false,
184
+ "docs": {
185
+ "tags": [],
186
+ "text": "The image to crop (url or base64)"
187
+ },
188
+ "getter": false,
189
+ "setter": false,
190
+ "attribute": "value",
191
+ "reflect": false
192
+ },
193
+ "returnType": {
194
+ "type": "string",
195
+ "mutable": false,
196
+ "complexType": {
197
+ "original": "'canvas' | 'base64'",
198
+ "resolved": "\"base64\" | \"canvas\"",
199
+ "references": {}
200
+ },
201
+ "required": false,
202
+ "optional": false,
203
+ "docs": {
204
+ "tags": [],
205
+ "text": "The return type of the onchange"
206
+ },
207
+ "getter": false,
208
+ "setter": false,
209
+ "attribute": "return-type",
210
+ "reflect": false,
211
+ "defaultValue": "'base64'"
212
+ }
213
+ };
214
+ }
215
+ static get states() {
216
+ return {
217
+ "_loaded": {},
218
+ "_currentScale": {}
219
+ };
220
+ }
221
+ static get events() {
222
+ return [{
223
+ "method": "valueChange",
224
+ "name": "valueChange",
225
+ "bubbles": false,
226
+ "cancelable": true,
227
+ "composed": true,
228
+ "docs": {
229
+ "tags": [],
230
+ "text": "Event when the value changes"
231
+ },
232
+ "complexType": {
233
+ "original": "any",
234
+ "resolved": "any",
235
+ "references": {}
236
+ }
237
+ }];
238
+ }
239
+ static get listeners() {
240
+ return [{
241
+ "name": "resize",
242
+ "method": "onResize",
243
+ "target": "window",
244
+ "capture": false,
245
+ "passive": true
246
+ }];
247
+ }
234
248
  }
235
249
  //# sourceMappingURL=cropper.component.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cropper.component.js","sourceRoot":"","sources":["../../../../src/components/molecules/cropper/cropper.component.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,SAAS,EACT,KAAK,EAEL,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,KAAK,EACL,CAAC,GACD,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,WAAW,CAAC;AAQnB,MAAM,OAAO,OAAO;;IA2BX,cAAS,GAAG,CAAC,CAAC;IACd,cAAS,GAAG,CAAC,CAAC;mBAxBiC,MAAM;;sBAUnB,QAAQ;mBAoBhC,KAAK;yBAGC,CAAC;;EAGzB,QAAQ;IACP,IAAI,IAAI,CAAC,sBAAsB,EAAE;MAChC,YAAY,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC;KAC1C;IAED,IAAI,CAAC,sBAAsB,GAAG,UAAU,CAAC,GAAG,EAAE;MAC7C,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE,CAAC;MAC7B,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,CAAC;IAC1B,CAAC,EAAE,GAAG,CAAC,CAAC;EACT,CAAC;EAED,gBAAgB;IACf,UAAU,CAAC,GAAG,EAAE;MACf,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;IACrB,CAAC,EAAE,GAAG,CAAC,CAAC;EACT,CAAC;EAED,MAAM;IACL,OAAO,CACN,EAAC,IAAI,IAAC,KAAK,EAAC,WAAW;MACr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\tProp,\n\tState,\n\th,\n} from '@stencil/core';\nimport { clsx } from 'clsx';\nimport 'cropperjs';\nimport { CropperImage, CropperSelection } from 'cropperjs';\n\n@Component({\n\ttag: 'p-cropper',\n\tstyleUrl: 'cropper.component.scss',\n\tshadow: true,\n})\nexport class Cropper {\n\t/**\n\t * Variant of the image that's being cropped\n\t */\n\t@Prop({ reflect: true }) variant: 'user' | 'company' = 'user';\n\n\t/**\n\t * The image to crop (url or base64)\n\t */\n\t@Prop() value: any;\n\n\t/**\n\t * The return type of the onchange\n\t */\n\t@Prop() returnType: 'canvas' | 'base64' = 'base64';\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\tprivate _imageRef: CropperImage;\n\tprivate _selectionRef: CropperSelection;\n\n\tprivate _maxScale = 0;\n\tprivate _minScale = 0;\n\n\tprivate _resizeDebounceTimeout: NodeJS.Timer;\n\tprivate _toCanvasDebounceTimeout: NodeJS.Timer;\n\n\t@State()\n\tprivate _loaded = false;\n\n\t@State()\n\tprivate _currentScale = 0;\n\n\t@Listen('resize', { target: 'window' })\n\tonResize() {\n\t\tif (this._resizeDebounceTimeout) {\n\t\t\tclearTimeout(this._resizeDebounceTimeout);\n\t\t}\n\n\t\tthis._resizeDebounceTimeout = setTimeout(() => {\n\t\t\tthis._selectionRef.$center();\n\t\t\tthis._imageRef.$center();\n\t\t}, 200);\n\t}\n\n\tcomponentDidLoad() {\n\t\tsetTimeout(() => {\n\t\t\tthis._loaded = true;\n\t\t}, 200);\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class=\"p-cropper\">\n\t\t\t\t{this._loaded && (\n\t\t\t\t\t<cropper-canvas\n\t\t\t\t\t\tclass=\"h-[17.5rem] w-full border-0 border-b border-solid border-mystic-medium bg-white\"\n\t\t\t\t\t\tonAction={() => this._onAction()}\n\t\t\t\t\t>\n\t\t\t\t\t\t<cropper-image\n\t\t\t\t\t\t\tsrc={this.value}\n\t\t\t\t\t\t\talt=\"Picture\"\n\t\t\t\t\t\t\tref={(ref) =>\n\t\t\t\t\t\t\t\tthis._setImageRef(ref as CropperImage)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tscalable\n\t\t\t\t\t\t\tcrossorigin=\"anonymous\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<cropper-shade\n\t\t\t\t\t\t\tclass={clsx({\n\t\t\t\t\t\t\t\t'rounded-round': this.variant === 'user',\n\t\t\t\t\t\t\t\trounded: this.variant === 'company',\n\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\ttheme-color=\"rgba(255, 255, 255, 0.5)\"\n\t\t\t\t\t\t\thidden\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<cropper-selection\n\t\t\t\t\t\t\tinitial-coverage=\"0.7\"\n\t\t\t\t\t\t\taspect-ratio=\"1\"\n\t\t\t\t\t\t\tref={(ref) =>\n\t\t\t\t\t\t\t\t(this._selectionRef = ref as CropperSelection)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t/>\n\n\t\t\t\t\t\t<cropper-handle action=\"move\" plain></cropper-handle>\n\t\t\t\t\t</cropper-canvas>\n\t\t\t\t)}\n\n\t\t\t\t<div class=\"flex w-full items-center gap-2 px-14 text-storm-vague tablet:max-w-xs tablet:px-1\">\n\t\t\t\t\t<p-icon variant=\"minus\" />\n\t\t\t\t\t<input\n\t\t\t\t\t\tclass=\"p-input w-full\"\n\t\t\t\t\t\ttype=\"range\"\n\t\t\t\t\t\tmin=\"0\"\n\t\t\t\t\t\tmax=\"100\"\n\t\t\t\t\t\tvalue={this._currentScale}\n\t\t\t\t\t\tonInput={(ev) =>\n\t\t\t\t\t\t\tthis._onInput((ev.target as HTMLInputElement).value)\n\t\t\t\t\t\t}\n\t\t\t\t\t\tstep=\"0.5\"\n\t\t\t\t\t/>\n\t\t\t\t\t<p-icon variant=\"plus\" />\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate _setImageRef(ref: CropperImage) {\n\t\tif (this._imageRef) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._imageRef = ref;\n\t\tthis._imageRef.$ready((image) =>\n\t\t\tsetTimeout(() => this._setInitialState(image), 200)\n\t\t);\n\t}\n\n\tprivate _setInitialState(image) {\n\t\tlet scale: number;\n\t\tif (image.naturalWidth > image.naturalHeight) {\n\t\t\t// set scale by height\n\t\t\tscale = 200 / image.naturalHeight;\n\t\t}\n\n\t\tif (image.naturalHeight >= image.naturalWidth) {\n\t\t\t// set scale by width\n\t\t\tscale = 200 / image.naturalWidth;\n\t\t}\n\n\t\tconst current = this._imageRef.$getTransform();\n\n\t\tthis._minScale = scale;\n\t\tthis._maxScale = current[0];\n\n\t\tthis._selectionRef.$resize('nw-resize', 200, 200, 1);\n\t\tthis._selectionRef.$center();\n\n\t\tthis._setScale(scale);\n\t\tthis._toCanvas();\n\t}\n\n\tprivate _onAction() {\n\t\tthis._setCurrentScale();\n\t\tthis._toCanvas();\n\t}\n\n\tprivate _setScale(\n\t\tscale: number,\n\t\tsetCenter: boolean = true,\n\t\tsetCurrentScale: boolean = true\n\t) {\n\t\tconst transform = this._imageRef.$getTransform();\n\t\tthis._imageRef.$setTransform([\n\t\t\tscale,\n\t\t\t0,\n\t\t\t0,\n\t\t\tscale,\n\t\t\ttransform[4],\n\t\t\ttransform[5],\n\t\t]);\n\n\t\tif (setCenter) {\n\t\t\tthis._imageRef.$center();\n\t\t}\n\n\t\tif (setCurrentScale) {\n\t\t\tthis._setCurrentScale();\n\t\t}\n\t}\n\n\tprivate _setCurrentScale() {\n\t\tconst transform = this._imageRef.$getTransform();\n\t\tconst current = transform[0];\n\n\t\tif (current < this._minScale) {\n\t\t\tthis._setScale(this._minScale, true, false);\n\t\t\tthis._currentScale = 0;\n\t\t\treturn;\n\t\t}\n\n\t\tif (current > this._maxScale) {\n\t\t\tthis._setScale(this._maxScale, true, false);\n\t\t\tthis._currentScale = 100;\n\t\t\treturn;\n\t\t}\n\n\t\tif (current === this._minScale) {\n\t\t\tthis._currentScale = 0;\n\t\t\treturn;\n\t\t}\n\n\t\tif (current === this._maxScale) {\n\t\t\tthis._currentScale = 100;\n\t\t\treturn;\n\t\t}\n\n\t\tconst minMaxDiff = this._maxScale - this._minScale;\n\t\tconst currentDiff = current - this._minScale;\n\n\t\tconst percentage = (currentDiff / minMaxDiff) * 100;\n\t\tthis._currentScale = percentage;\n\t}\n\n\tprivate _onInput(value) {\n\t\tconst transform = this._imageRef.$getTransform();\n\t\tconst current = transform[0];\n\t\tconst minMaxDiff = this._maxScale - this._minScale;\n\n\t\tconst toSet = minMaxDiff * (value / 100);\n\n\t\tif (toSet === current) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._setScale(toSet + this._minScale, false, false);\n\t\tthis._currentScale = value;\n\n\t\tthis._toCanvas();\n\t}\n\n\tprivate _toCanvas() {\n\t\tif (this._toCanvasDebounceTimeout) {\n\t\t\tclearTimeout(this._toCanvasDebounceTimeout);\n\t\t}\n\n\t\tthis._toCanvasDebounceTimeout = setTimeout(async () => {\n\t\t\tconst canvas = await this._selectionRef.$toCanvas();\n\t\t\tif (this.returnType === 'canvas') {\n\t\t\t\tthis.valueChange.emit(canvas);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst data = canvas.toDataURL('image/png');\n\t\t\tthis.valueChange.emit(data);\n\t\t}, 200);\n\t}\n}\n"]}
1
+ {"version":3,"file":"cropper.component.js","sourceRoot":"","sources":["../../../../src/components/molecules/cropper/cropper.component.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,SAAS,EACT,KAAK,EAEL,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,KAAK,EACL,CAAC,GACD,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,WAAW,CAAC;AAQnB,MAAM,OAAO,OAAO;;uBAIoC,MAAM;;0BAUnB,QAAQ;uBAoBhC,KAAK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AC;QACrD,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAE3B,IAAI,CAAC,SAAS,EAAE,CAAC;IAClB,CAAC;IAEO,SAAS;QAChB,IAAI,IAAI,CAAC,wBAAwB,EAAE,CAAC;YACnC,YAAY,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC;QAC7C,CAAC;QAED,IAAI,CAAC,wBAAwB,GAAG,UAAU,CAAC,KAAK,IAAI,EAAE;YACrD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,SAAS,EAAE,CAAC;YACpD,IAAI,IAAI,CAAC,UAAU,KAAK,QAAQ,EAAE,CAAC;gBAClC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;gBAC9B,OAAO;YACR,CAAC;YAED,MAAM,IAAI,GAAG,MAAM,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;YAC3C,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC7B,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {\n\tComponent,\n\tEvent,\n\tEventEmitter,\n\tHost,\n\tListen,\n\tProp,\n\tState,\n\th,\n} from '@stencil/core';\nimport { clsx } from 'clsx';\nimport 'cropperjs';\nimport { CropperImage, CropperSelection } from 'cropperjs';\n\n@Component({\n\ttag: 'p-cropper',\n\tstyleUrl: 'cropper.component.scss',\n\tshadow: true,\n})\nexport class Cropper {\n\t/**\n\t * Variant of the image that's being cropped\n\t */\n\t@Prop({ reflect: true }) variant: 'user' | 'company' = 'user';\n\n\t/**\n\t * The image to crop (url or base64)\n\t */\n\t@Prop() value: any;\n\n\t/**\n\t * The return type of the onchange\n\t */\n\t@Prop() returnType: 'canvas' | 'base64' = 'base64';\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\tprivate _imageRef: CropperImage;\n\tprivate _selectionRef: CropperSelection;\n\n\tprivate _maxScale = 0;\n\tprivate _minScale = 0;\n\n\tprivate _resizeDebounceTimeout: NodeJS.Timeout | undefined;\n\tprivate _toCanvasDebounceTimeout: NodeJS.Timeout | undefined;\n\n\t@State()\n\tprivate _loaded = false;\n\n\t@State()\n\tprivate _currentScale = 0;\n\n\t@Listen('resize', { target: 'window' })\n\tonResize() {\n\t\tif (this._resizeDebounceTimeout) {\n\t\t\tclearTimeout(this._resizeDebounceTimeout);\n\t\t}\n\n\t\tthis._resizeDebounceTimeout = setTimeout(() => {\n\t\t\tthis._selectionRef.$center();\n\t\t\tthis._imageRef.$center();\n\t\t}, 200);\n\t}\n\n\tcomponentDidLoad() {\n\t\tsetTimeout(() => {\n\t\t\tthis._loaded = true;\n\t\t}, 200);\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class='p-cropper'>\n\t\t\t\t{this._loaded && (\n\t\t\t\t\t<cropper-canvas\n\t\t\t\t\t\tclass='h-[17.5rem] w-full border-0 border-b border-solid border-mystic-medium bg-white'\n\t\t\t\t\t\tonAction={() => this._onAction()}\n\t\t\t\t\t>\n\t\t\t\t\t\t<cropper-image\n\t\t\t\t\t\t\tsrc={this.value}\n\t\t\t\t\t\t\talt='Picture'\n\t\t\t\t\t\t\tref={ref => this._setImageRef(ref as CropperImage)}\n\t\t\t\t\t\t\tscalable\n\t\t\t\t\t\t\tcrossorigin='anonymous'\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<cropper-shade\n\t\t\t\t\t\t\tclass={clsx({\n\t\t\t\t\t\t\t\t'rounded-round': this.variant === 'user',\n\t\t\t\t\t\t\t\trounded: this.variant === 'company',\n\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\ttheme-color='rgba(255, 255, 255, 0.5)'\n\t\t\t\t\t\t\thidden\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<cropper-selection\n\t\t\t\t\t\t\tinitial-coverage='0.7'\n\t\t\t\t\t\t\taspect-ratio='1'\n\t\t\t\t\t\t\tref={ref => (this._selectionRef = ref as CropperSelection)}\n\t\t\t\t\t\t/>\n\n\t\t\t\t\t\t<cropper-handle\n\t\t\t\t\t\t\taction='move'\n\t\t\t\t\t\t\tplain\n\t\t\t\t\t\t></cropper-handle>\n\t\t\t\t\t</cropper-canvas>\n\t\t\t\t)}\n\n\t\t\t\t<div class='flex w-full items-center gap-2 px-14 text-storm-vague tablet:max-w-xs tablet:px-1'>\n\t\t\t\t\t<p-icon variant='minus' />\n\t\t\t\t\t<input\n\t\t\t\t\t\tclass='p-input w-full'\n\t\t\t\t\t\ttype='range'\n\t\t\t\t\t\tmin='0'\n\t\t\t\t\t\tmax='100'\n\t\t\t\t\t\tvalue={this._currentScale}\n\t\t\t\t\t\tonInput={ev => this._onInput((ev.target as HTMLInputElement).value)}\n\t\t\t\t\t\tstep='0.5'\n\t\t\t\t\t/>\n\t\t\t\t\t<p-icon variant='plus' />\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate _setImageRef(ref: CropperImage) {\n\t\tif (this._imageRef) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._imageRef = ref;\n\t\tthis._imageRef.$ready(image =>\n\t\t\tsetTimeout(() => this._setInitialState(image), 200)\n\t\t);\n\t}\n\n\tprivate _setInitialState(image) {\n\t\tlet scale: number;\n\t\tif (image.naturalWidth > image.naturalHeight) {\n\t\t\t// set scale by height\n\t\t\tscale = 200 / image.naturalHeight;\n\t\t}\n\n\t\tif (image.naturalHeight >= image.naturalWidth) {\n\t\t\t// set scale by width\n\t\t\tscale = 200 / image.naturalWidth;\n\t\t}\n\n\t\tconst current = this._imageRef.$getTransform();\n\n\t\tthis._minScale = scale;\n\t\tthis._maxScale = current[0];\n\n\t\tthis._selectionRef.$resize('nw-resize', 200, 200, 1);\n\t\tthis._selectionRef.$center();\n\n\t\tthis._setScale(scale);\n\t\tthis._toCanvas();\n\t}\n\n\tprivate _onAction() {\n\t\tthis._setCurrentScale();\n\t\tthis._toCanvas();\n\t}\n\n\tprivate _setScale(\n\t\tscale: number,\n\t\tsetCenter: boolean = true,\n\t\tsetCurrentScale: boolean = true\n\t) {\n\t\tconst transform = this._imageRef.$getTransform();\n\t\tthis._imageRef.$setTransform([\n\t\t\tscale,\n\t\t\t0,\n\t\t\t0,\n\t\t\tscale,\n\t\t\ttransform[4],\n\t\t\ttransform[5],\n\t\t]);\n\n\t\tif (setCenter) {\n\t\t\tthis._imageRef.$center();\n\t\t}\n\n\t\tif (setCurrentScale) {\n\t\t\tthis._setCurrentScale();\n\t\t}\n\t}\n\n\tprivate _setCurrentScale() {\n\t\tconst transform = this._imageRef.$getTransform();\n\t\tconst current = transform[0];\n\n\t\tif (current < this._minScale) {\n\t\t\tthis._setScale(this._minScale, true, false);\n\t\t\tthis._currentScale = 0;\n\t\t\treturn;\n\t\t}\n\n\t\tif (current > this._maxScale) {\n\t\t\tthis._setScale(this._maxScale, true, false);\n\t\t\tthis._currentScale = 100;\n\t\t\treturn;\n\t\t}\n\n\t\tif (current === this._minScale) {\n\t\t\tthis._currentScale = 0;\n\t\t\treturn;\n\t\t}\n\n\t\tif (current === this._maxScale) {\n\t\t\tthis._currentScale = 100;\n\t\t\treturn;\n\t\t}\n\n\t\tconst minMaxDiff = this._maxScale - this._minScale;\n\t\tconst currentDiff = current - this._minScale;\n\n\t\tconst percentage = (currentDiff / minMaxDiff) * 100;\n\t\tthis._currentScale = percentage;\n\t}\n\n\tprivate _onInput(value) {\n\t\tconst transform = this._imageRef.$getTransform();\n\t\tconst current = transform[0];\n\t\tconst minMaxDiff = this._maxScale - this._minScale;\n\n\t\tconst toSet = minMaxDiff * (value / 100);\n\n\t\tif (toSet === current) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._setScale(toSet + this._minScale, false, false);\n\t\tthis._currentScale = value;\n\n\t\tthis._toCanvas();\n\t}\n\n\tprivate _toCanvas() {\n\t\tif (this._toCanvasDebounceTimeout) {\n\t\t\tclearTimeout(this._toCanvasDebounceTimeout);\n\t\t}\n\n\t\tthis._toCanvasDebounceTimeout = setTimeout(async () => {\n\t\t\tconst canvas = await this._selectionRef.$toCanvas();\n\t\t\tif (this.returnType === 'canvas') {\n\t\t\t\tthis.valueChange.emit(canvas);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst data = canvas.toDataURL('image/png');\n\t\t\tthis.valueChange.emit(data);\n\t\t}, 200);\n\t}\n}\n"]}