@lucca-front/ng 21.0.3 → 21.1.0-split.0

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 (243) hide show
  1. package/fesm2022/lucca-front-ng-a11y.mjs +8 -8
  2. package/fesm2022/lucca-front-ng-a11y.mjs.map +1 -1
  3. package/fesm2022/lucca-front-ng-api.mjs +51 -51
  4. package/fesm2022/lucca-front-ng-api.mjs.map +1 -1
  5. package/fesm2022/lucca-front-ng-app-layout.mjs +4 -4
  6. package/fesm2022/lucca-front-ng-app-layout.mjs.map +1 -1
  7. package/fesm2022/lucca-front-ng-box.mjs +3 -3
  8. package/fesm2022/lucca-front-ng-box.mjs.map +1 -1
  9. package/fesm2022/lucca-front-ng-breadcrumbs.mjs +10 -10
  10. package/fesm2022/lucca-front-ng-breadcrumbs.mjs.map +1 -1
  11. package/fesm2022/lucca-front-ng-bubble-icon.mjs +51 -0
  12. package/fesm2022/lucca-front-ng-bubble-icon.mjs.map +1 -0
  13. package/fesm2022/lucca-front-ng-bubble-illustration.mjs +135 -0
  14. package/fesm2022/lucca-front-ng-bubble-illustration.mjs.map +1 -0
  15. package/fesm2022/lucca-front-ng-button.mjs +1 -119
  16. package/fesm2022/lucca-front-ng-button.mjs.map +1 -1
  17. package/fesm2022/lucca-front-ng-callout.mjs +37 -63
  18. package/fesm2022/lucca-front-ng-callout.mjs.map +1 -1
  19. package/fesm2022/lucca-front-ng-chip.mjs +9 -39
  20. package/fesm2022/lucca-front-ng-chip.mjs.map +1 -1
  21. package/fesm2022/lucca-front-ng-clear.mjs +8 -23
  22. package/fesm2022/lucca-front-ng-clear.mjs.map +1 -1
  23. package/fesm2022/lucca-front-ng-code.mjs +3 -3
  24. package/fesm2022/lucca-front-ng-color.mjs +28 -0
  25. package/fesm2022/lucca-front-ng-color.mjs.map +1 -0
  26. package/fesm2022/lucca-front-ng-comment.mjs +26 -28
  27. package/fesm2022/lucca-front-ng-comment.mjs.map +1 -1
  28. package/fesm2022/lucca-front-ng-container.mjs +11 -9
  29. package/fesm2022/lucca-front-ng-container.mjs.map +1 -1
  30. package/fesm2022/lucca-front-ng-core-select-api.mjs +9 -9
  31. package/fesm2022/lucca-front-ng-core-select-department.mjs +6 -6
  32. package/fesm2022/lucca-front-ng-core-select-establishment.mjs +9 -9
  33. package/fesm2022/lucca-front-ng-core-select-job-qualification.mjs +8 -6
  34. package/fesm2022/lucca-front-ng-core-select-job-qualification.mjs.map +1 -1
  35. package/fesm2022/lucca-front-ng-core-select-occupation-category.mjs +3 -3
  36. package/fesm2022/lucca-front-ng-core-select-user.mjs +30 -30
  37. package/fesm2022/lucca-front-ng-core-select-user.mjs.map +1 -1
  38. package/fesm2022/lucca-front-ng-core-select.mjs +117 -96
  39. package/fesm2022/lucca-front-ng-core-select.mjs.map +1 -1
  40. package/fesm2022/lucca-front-ng-core.mjs +27 -87
  41. package/fesm2022/lucca-front-ng-core.mjs.map +1 -1
  42. package/fesm2022/lucca-front-ng-data-table.mjs +31 -31
  43. package/fesm2022/lucca-front-ng-data-table.mjs.map +1 -1
  44. package/fesm2022/lucca-front-ng-date.mjs +111 -112
  45. package/fesm2022/lucca-front-ng-date.mjs.map +1 -1
  46. package/fesm2022/lucca-front-ng-date2.mjs +50 -44
  47. package/fesm2022/lucca-front-ng-date2.mjs.map +1 -1
  48. package/fesm2022/lucca-front-ng-department.mjs +34 -34
  49. package/fesm2022/lucca-front-ng-department.mjs.map +1 -1
  50. package/fesm2022/lucca-front-ng-dialog.mjs +61 -38
  51. package/fesm2022/lucca-front-ng-dialog.mjs.map +1 -1
  52. package/fesm2022/lucca-front-ng-divider.mjs +4 -13
  53. package/fesm2022/lucca-front-ng-divider.mjs.map +1 -1
  54. package/fesm2022/lucca-front-ng-dropdown.mjs +40 -40
  55. package/fesm2022/lucca-front-ng-empty-state.mjs +56 -30
  56. package/fesm2022/lucca-front-ng-empty-state.mjs.map +1 -1
  57. package/fesm2022/lucca-front-ng-establishment.mjs +58 -58
  58. package/fesm2022/lucca-front-ng-establishment.mjs.map +1 -1
  59. package/fesm2022/lucca-front-ng-fancy-box.mjs +3 -15
  60. package/fesm2022/lucca-front-ng-fancy-box.mjs.map +1 -1
  61. package/fesm2022/lucca-front-ng-file-upload.mjs +67 -44
  62. package/fesm2022/lucca-front-ng-file-upload.mjs.map +1 -1
  63. package/fesm2022/lucca-front-ng-filter-pills.mjs +30 -29
  64. package/fesm2022/lucca-front-ng-filter-pills.mjs.map +1 -1
  65. package/fesm2022/lucca-front-ng-footer.mjs +3 -6
  66. package/fesm2022/lucca-front-ng-footer.mjs.map +1 -1
  67. package/fesm2022/lucca-front-ng-form-field.mjs +15 -15
  68. package/fesm2022/lucca-front-ng-form-field.mjs.map +1 -1
  69. package/fesm2022/lucca-front-ng-form-header.mjs +3 -6
  70. package/fesm2022/lucca-front-ng-form-header.mjs.map +1 -1
  71. package/fesm2022/lucca-front-ng-form.mjs +4 -4
  72. package/fesm2022/lucca-front-ng-form.mjs.map +1 -1
  73. package/fesm2022/lucca-front-ng-formly.mjs +58 -58
  74. package/fesm2022/lucca-front-ng-formly.mjs.map +1 -1
  75. package/fesm2022/lucca-front-ng-forms-phone-number-input.mjs +10 -9
  76. package/fesm2022/lucca-front-ng-forms-phone-number-input.mjs.map +1 -1
  77. package/fesm2022/lucca-front-ng-forms-rich-text-input.mjs +74 -74
  78. package/fesm2022/lucca-front-ng-forms-rich-text-input.mjs.map +1 -1
  79. package/fesm2022/lucca-front-ng-forms.mjs +136 -69
  80. package/fesm2022/lucca-front-ng-forms.mjs.map +1 -1
  81. package/fesm2022/lucca-front-ng-gauge.mjs +8 -31
  82. package/fesm2022/lucca-front-ng-gauge.mjs.map +1 -1
  83. package/fesm2022/lucca-front-ng-grid.mjs +9 -9
  84. package/fesm2022/lucca-front-ng-grid.mjs.map +1 -1
  85. package/fesm2022/lucca-front-ng-highlight-data.mjs +28 -33
  86. package/fesm2022/lucca-front-ng-highlight-data.mjs.map +1 -1
  87. package/fesm2022/lucca-front-ng-horizontal-navigation.mjs +7 -10
  88. package/fesm2022/lucca-front-ng-horizontal-navigation.mjs.map +1 -1
  89. package/fesm2022/lucca-front-ng-icon.mjs +1 -42
  90. package/fesm2022/lucca-front-ng-icon.mjs.map +1 -1
  91. package/fesm2022/lucca-front-ng-index-table.mjs +33 -33
  92. package/fesm2022/lucca-front-ng-index-table.mjs.map +1 -1
  93. package/fesm2022/lucca-front-ng-inline-message.mjs +3 -15
  94. package/fesm2022/lucca-front-ng-inline-message.mjs.map +1 -1
  95. package/fesm2022/lucca-front-ng-input.mjs +27 -27
  96. package/fesm2022/lucca-front-ng-input.mjs.map +1 -1
  97. package/fesm2022/lucca-front-ng-link.mjs +21 -30
  98. package/fesm2022/lucca-front-ng-link.mjs.map +1 -1
  99. package/fesm2022/lucca-front-ng-listbox.mjs +14 -26
  100. package/fesm2022/lucca-front-ng-listbox.mjs.map +1 -1
  101. package/fesm2022/lucca-front-ng-listing.mjs +13 -42
  102. package/fesm2022/lucca-front-ng-listing.mjs.map +1 -1
  103. package/fesm2022/lucca-front-ng-loading.mjs +3 -3
  104. package/fesm2022/lucca-front-ng-loading.mjs.map +1 -1
  105. package/fesm2022/lucca-front-ng-main-layout.mjs +7 -13
  106. package/fesm2022/lucca-front-ng-main-layout.mjs.map +1 -1
  107. package/fesm2022/lucca-front-ng-mobile-push.mjs +16 -24
  108. package/fesm2022/lucca-front-ng-mobile-push.mjs.map +1 -1
  109. package/fesm2022/lucca-front-ng-modal.mjs +22 -22
  110. package/fesm2022/lucca-front-ng-modal.mjs.map +1 -1
  111. package/fesm2022/lucca-front-ng-multi-select.mjs +61 -64
  112. package/fesm2022/lucca-front-ng-multi-select.mjs.map +1 -1
  113. package/fesm2022/lucca-front-ng-new-badge.mjs +3 -6
  114. package/fesm2022/lucca-front-ng-new-badge.mjs.map +1 -1
  115. package/fesm2022/lucca-front-ng-number-format.mjs +6 -6
  116. package/fesm2022/lucca-front-ng-number.mjs +7 -7
  117. package/fesm2022/lucca-front-ng-numeric-badge.mjs +4 -13
  118. package/fesm2022/lucca-front-ng-numeric-badge.mjs.map +1 -1
  119. package/fesm2022/lucca-front-ng-option.mjs +179 -177
  120. package/fesm2022/lucca-front-ng-option.mjs.map +1 -1
  121. package/fesm2022/lucca-front-ng-page-header.mjs +3 -12
  122. package/fesm2022/lucca-front-ng-page-header.mjs.map +1 -1
  123. package/fesm2022/lucca-front-ng-pagination.mjs +7 -31
  124. package/fesm2022/lucca-front-ng-pagination.mjs.map +1 -1
  125. package/fesm2022/lucca-front-ng-plg-push.mjs +7 -13
  126. package/fesm2022/lucca-front-ng-plg-push.mjs.map +1 -1
  127. package/fesm2022/lucca-front-ng-popover.mjs +25 -25
  128. package/fesm2022/lucca-front-ng-popover2.mjs +27 -37
  129. package/fesm2022/lucca-front-ng-popover2.mjs.map +1 -1
  130. package/fesm2022/lucca-front-ng-popup.mjs +10 -10
  131. package/fesm2022/lucca-front-ng-progress-bar.mjs +8 -15
  132. package/fesm2022/lucca-front-ng-progress-bar.mjs.map +1 -1
  133. package/fesm2022/lucca-front-ng-read-more.mjs +25 -38
  134. package/fesm2022/lucca-front-ng-read-more.mjs.map +1 -1
  135. package/fesm2022/lucca-front-ng-resource-card.mjs +19 -19
  136. package/fesm2022/lucca-front-ng-resource-card.mjs.map +1 -1
  137. package/fesm2022/lucca-front-ng-safe-content.mjs +10 -10
  138. package/fesm2022/lucca-front-ng-scroll-box.mjs +6 -9
  139. package/fesm2022/lucca-front-ng-scroll-box.mjs.map +1 -1
  140. package/fesm2022/lucca-front-ng-scroll.mjs +7 -7
  141. package/fesm2022/lucca-front-ng-segmented-control-tabs.mjs +9 -15
  142. package/fesm2022/lucca-front-ng-segmented-control-tabs.mjs.map +1 -1
  143. package/fesm2022/lucca-front-ng-segmented-control.mjs +7 -22
  144. package/fesm2022/lucca-front-ng-segmented-control.mjs.map +1 -1
  145. package/fesm2022/lucca-front-ng-select.mjs +14 -14
  146. package/fesm2022/lucca-front-ng-sidepanel.mjs +7 -7
  147. package/fesm2022/lucca-front-ng-simple-select.mjs +27 -27
  148. package/fesm2022/lucca-front-ng-simple-select.mjs.map +1 -1
  149. package/fesm2022/lucca-front-ng-skeleton.mjs +31 -82
  150. package/fesm2022/lucca-front-ng-skeleton.mjs.map +1 -1
  151. package/fesm2022/lucca-front-ng-sortable-list.mjs +6 -30
  152. package/fesm2022/lucca-front-ng-sortable-list.mjs.map +1 -1
  153. package/fesm2022/lucca-front-ng-status-badge.mjs +3 -15
  154. package/fesm2022/lucca-front-ng-status-badge.mjs.map +1 -1
  155. package/fesm2022/lucca-front-ng-table-of-content.mjs +6 -6
  156. package/fesm2022/lucca-front-ng-tag.mjs +3 -9
  157. package/fesm2022/lucca-front-ng-tag.mjs.map +1 -1
  158. package/fesm2022/lucca-front-ng-time.mjs +30 -30
  159. package/fesm2022/lucca-front-ng-time.mjs.map +1 -1
  160. package/fesm2022/lucca-front-ng-title.mjs +10 -10
  161. package/fesm2022/lucca-front-ng-toast.mjs +14 -14
  162. package/fesm2022/lucca-front-ng-toast.mjs.map +1 -1
  163. package/fesm2022/lucca-front-ng-tooltip.mjs +28 -26
  164. package/fesm2022/lucca-front-ng-tooltip.mjs.map +1 -1
  165. package/fesm2022/lucca-front-ng-tree-select.mjs +6 -6
  166. package/fesm2022/lucca-front-ng-tree-select.mjs.map +1 -1
  167. package/fesm2022/lucca-front-ng-user-popover.mjs +23 -23
  168. package/fesm2022/lucca-front-ng-user-popover.mjs.map +1 -1
  169. package/fesm2022/lucca-front-ng-user.mjs +72 -72
  170. package/fesm2022/lucca-front-ng-user.mjs.map +1 -1
  171. package/fesm2022/lucca-front-ng-vertical-navigation.mjs +12 -42
  172. package/fesm2022/lucca-front-ng-vertical-navigation.mjs.map +1 -1
  173. package/package.json +17 -3
  174. package/schematics/lib/local-deps/package-lock.json +2 -0
  175. package/schematics/lib/local-deps/package.json +1 -2
  176. package/src/components/cdk/_overlay.scss +0 -5
  177. package/src/definitions/option/_option-item.scss +0 -1
  178. package/types/lucca-front-ng-a11y.d.ts +3 -3
  179. package/types/lucca-front-ng-breadcrumbs.d.ts +9 -9
  180. package/types/lucca-front-ng-bubble-icon.d.ts +20 -0
  181. package/types/lucca-front-ng-bubble-illustration.d.ts +24 -0
  182. package/types/lucca-front-ng-button.d.ts +1 -61
  183. package/types/lucca-front-ng-callout.d.ts +3 -33
  184. package/types/lucca-front-ng-chip.d.ts +3 -33
  185. package/types/lucca-front-ng-clear.d.ts +6 -21
  186. package/types/lucca-front-ng-color.d.ts +12 -0
  187. package/types/lucca-front-ng-comment.d.ts +11 -19
  188. package/types/lucca-front-ng-container.d.ts +4 -4
  189. package/types/lucca-front-ng-core-select.d.ts +83 -78
  190. package/types/lucca-front-ng-core.d.ts +25 -19
  191. package/types/lucca-front-ng-data-table.d.ts +2 -2
  192. package/types/lucca-front-ng-date.d.ts +5 -5
  193. package/types/lucca-front-ng-date2.d.ts +6 -5
  194. package/types/lucca-front-ng-department.d.ts +2 -2
  195. package/types/lucca-front-ng-dialog.d.ts +12 -5
  196. package/types/lucca-front-ng-divider.d.ts +0 -10
  197. package/types/lucca-front-ng-empty-state.d.ts +6 -20
  198. package/types/lucca-front-ng-establishment.d.ts +2 -2
  199. package/types/lucca-front-ng-fancy-box.d.ts +0 -12
  200. package/types/lucca-front-ng-file-upload.d.ts +18 -8
  201. package/types/lucca-front-ng-filter-pills.d.ts +6 -5
  202. package/types/lucca-front-ng-footer.d.ts +0 -3
  203. package/types/lucca-front-ng-form-field.d.ts +2 -2
  204. package/types/lucca-front-ng-form-header.d.ts +0 -3
  205. package/types/lucca-front-ng-forms-rich-text-input.d.ts +14 -16
  206. package/types/lucca-front-ng-forms.d.ts +40 -13
  207. package/types/lucca-front-ng-gauge.d.ts +0 -25
  208. package/types/lucca-front-ng-grid.d.ts +1 -1
  209. package/types/lucca-front-ng-highlight-data.d.ts +15 -36
  210. package/types/lucca-front-ng-horizontal-navigation.d.ts +0 -3
  211. package/types/lucca-front-ng-icon.d.ts +1 -32
  212. package/types/lucca-front-ng-inline-message.d.ts +0 -12
  213. package/types/lucca-front-ng-input.d.ts +2 -2
  214. package/types/lucca-front-ng-link.d.ts +4 -20
  215. package/types/lucca-front-ng-listbox.d.ts +4 -16
  216. package/types/lucca-front-ng-listing.d.ts +2 -33
  217. package/types/lucca-front-ng-main-layout.d.ts +0 -6
  218. package/types/lucca-front-ng-mobile-push.d.ts +2 -9
  219. package/types/lucca-front-ng-multi-select.d.ts +26 -24
  220. package/types/lucca-front-ng-new-badge.d.ts +0 -3
  221. package/types/lucca-front-ng-numeric-badge.d.ts +0 -9
  222. package/types/lucca-front-ng-option.d.ts +8 -8
  223. package/types/lucca-front-ng-page-header.d.ts +0 -9
  224. package/types/lucca-front-ng-pagination.d.ts +2 -26
  225. package/types/lucca-front-ng-plg-push.d.ts +2 -8
  226. package/types/lucca-front-ng-popover2.d.ts +6 -8
  227. package/types/lucca-front-ng-progress-bar.d.ts +0 -9
  228. package/types/lucca-front-ng-read-more.d.ts +10 -25
  229. package/types/lucca-front-ng-resource-card.d.ts +0 -6
  230. package/types/lucca-front-ng-scroll-box.d.ts +1 -4
  231. package/types/lucca-front-ng-segmented-control-tabs.d.ts +1 -7
  232. package/types/lucca-front-ng-segmented-control.d.ts +1 -16
  233. package/types/lucca-front-ng-simple-select.d.ts +5 -4
  234. package/types/lucca-front-ng-skeleton.d.ts +6 -61
  235. package/types/lucca-front-ng-sortable-list.d.ts +0 -24
  236. package/types/lucca-front-ng-status-badge.d.ts +0 -12
  237. package/types/lucca-front-ng-tag.d.ts +0 -6
  238. package/types/lucca-front-ng-time.d.ts +6 -6
  239. package/types/lucca-front-ng-toast.d.ts +2 -2
  240. package/types/lucca-front-ng-tooltip.d.ts +5 -3
  241. package/types/lucca-front-ng-user-popover.d.ts +6 -7
  242. package/types/lucca-front-ng-user.d.ts +4 -4
  243. package/types/lucca-front-ng-vertical-navigation.d.ts +0 -30
@@ -1 +1 @@
1
- {"version":3,"file":"lucca-front-ng-new-badge.mjs","sources":["../../../packages/ng/new-badge/new-badge.component.ts","../../../packages/ng/new-badge/new-badge.component.html","../../../packages/ng/new-badge/lucca-front-ng-new-badge.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input, ViewEncapsulation } from '@angular/core';\n\n@Component({\n\tselector: 'lu-new-badge',\n\ttemplateUrl: './new-badge.component.html',\n\tstyleUrl: './new-badge.component.scss',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tencapsulation: ViewEncapsulation.None,\n\thost: {\n\t\tclass: 'newBadge',\n\t},\n})\nexport class NewBadgeComponent {\n\t/**\n\t * Changes the text displayed by the newBadge\n\t */\n\treadonly label = input.required<string>();\n}\n","{{ label() }}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAYa,iBAAiB,CAAA;AAV9B,IAAA,WAAA,GAAA;AAWC;;AAEG;AACM,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAC,QAAQ,gDAAU;AACzC,IAAA;8GALY,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAjB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,iBAAiB,iPCZ9B,iBACA,EAAA,MAAA,EAAA,CAAA,0oBAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;2FDWa,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAV7B,SAAS;+BACC,cAAc,EAAA,eAAA,EAGP,uBAAuB,CAAC,MAAM,iBAChC,iBAAiB,CAAC,IAAI,EAAA,IAAA,EAC/B;AACL,wBAAA,KAAK,EAAE,UAAU;AACjB,qBAAA,EAAA,QAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,CAAA,0oBAAA,CAAA,EAAA;;;AEVF;;AAEG;;;;"}
1
+ {"version":3,"file":"lucca-front-ng-new-badge.mjs","sources":["../../../packages/ng/new-badge/new-badge.component.ts","../../../packages/ng/new-badge/new-badge.component.html","../../../packages/ng/new-badge/lucca-front-ng-new-badge.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input, ViewEncapsulation } from '@angular/core';\n\n@Component({\n\tselector: 'lu-new-badge',\n\ttemplateUrl: './new-badge.component.html',\n\tstyleUrl: './new-badge.component.scss',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tencapsulation: ViewEncapsulation.None,\n\thost: {\n\t\tclass: 'newBadge',\n\t},\n})\nexport class NewBadgeComponent {\n\treadonly label = input.required<string>();\n}\n","{{ label() }}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAYa,iBAAiB,CAAA;AAV9B,IAAA,WAAA,GAAA;AAWU,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAC,QAAQ,gDAAU;AACzC,IAAA;8GAFY,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAjB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,iBAAiB,iPCZ9B,iBACA,EAAA,MAAA,EAAA,CAAA,0oBAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;2FDWa,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAV7B,SAAS;+BACC,cAAc,EAAA,eAAA,EAGP,uBAAuB,CAAC,MAAM,iBAChC,iBAAiB,CAAC,IAAI,EAAA,IAAA,EAC/B;AACL,wBAAA,KAAK,EAAE,UAAU;AACjB,qBAAA,EAAA,QAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,CAAA,0oBAAA,CAAA,EAAA;;;AEVF;;AAEG;;;;"}
@@ -189,10 +189,10 @@ class LuFormatNumberPipe {
189
189
  transform(value, options) {
190
190
  return new NumberFormat(options).format(value);
191
191
  }
192
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: LuFormatNumberPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
193
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.0.6", ngImport: i0, type: LuFormatNumberPipe, isStandalone: true, name: "luNumberFormat" }); }
192
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: LuFormatNumberPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
193
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.0.8", ngImport: i0, type: LuFormatNumberPipe, isStandalone: true, name: "luNumberFormat" }); }
194
194
  }
195
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: LuFormatNumberPipe, decorators: [{
195
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: LuFormatNumberPipe, decorators: [{
196
196
  type: Pipe,
197
197
  args: [{
198
198
  name: 'luNumberFormat',
@@ -248,8 +248,8 @@ class NumberFormatDirective {
248
248
  this.#value.set(parsedInput.value);
249
249
  this.onChange?.(parsedInput.value);
250
250
  }
251
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: NumberFormatDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
252
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.0.6", type: NumberFormatDirective, isStandalone: true, selector: "input[luNumberFormatInput]", inputs: { formatOptions: { classPropertyName: "formatOptions", publicName: "formatOptions", isSignal: true, isRequired: true, transformFunction: null } }, host: { listeners: { "focus": "focus()", "blur": "lostFocus()", "input": "input()" } }, providers: [
251
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: NumberFormatDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
252
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.0.8", type: NumberFormatDirective, isStandalone: true, selector: "input[luNumberFormatInput]", inputs: { formatOptions: { classPropertyName: "formatOptions", publicName: "formatOptions", isSignal: true, isRequired: true, transformFunction: null } }, host: { listeners: { "focus": "focus()", "blur": "lostFocus()", "input": "input()" } }, providers: [
253
253
  {
254
254
  provide: NG_VALUE_ACCESSOR,
255
255
  useExisting: forwardRef(() => NumberFormatDirective),
@@ -257,7 +257,7 @@ class NumberFormatDirective {
257
257
  },
258
258
  ], ngImport: i0 }); }
259
259
  }
260
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: NumberFormatDirective, decorators: [{
260
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: NumberFormatDirective, decorators: [{
261
261
  type: Directive,
262
262
  args: [{
263
263
  selector: 'input[luNumberFormatInput]',
@@ -19,10 +19,10 @@ class LuNumberPipe {
19
19
  return integral;
20
20
  }
21
21
  }
22
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: LuNumberPipe, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Pipe }); }
23
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.0.6", ngImport: i0, type: LuNumberPipe, isStandalone: true, name: "luNumber" }); }
22
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: LuNumberPipe, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Pipe }); }
23
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.0.8", ngImport: i0, type: LuNumberPipe, isStandalone: true, name: "luNumber" }); }
24
24
  }
25
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: LuNumberPipe, decorators: [{
25
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: LuNumberPipe, decorators: [{
26
26
  type: Pipe,
27
27
  args: [{
28
28
  name: 'luNumber',
@@ -37,11 +37,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImpor
37
37
  * @deprecated use `LuNumberPipe` instead
38
38
  */
39
39
  class LuNumberModule {
40
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: LuNumberModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
41
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.6", ngImport: i0, type: LuNumberModule, imports: [LuNumberPipe], exports: [LuNumberPipe] }); }
42
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: LuNumberModule }); }
40
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: LuNumberModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
41
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.8", ngImport: i0, type: LuNumberModule, imports: [LuNumberPipe], exports: [LuNumberPipe] }); }
42
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: LuNumberModule }); }
43
43
  }
44
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: LuNumberModule, decorators: [{
44
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: LuNumberModule, decorators: [{
45
45
  type: NgModule,
46
46
  args: [{
47
47
  imports: [LuNumberPipe],
@@ -20,22 +20,13 @@ class NumericBadgeComponent {
20
20
  * The palette to use for this badge. Defaults to 'none' (inherits parent palette)
21
21
  */
22
22
  this.palette = input('none', ...(ngDevMode ? [{ debugName: "palette" }] : []));
23
- /**
24
- * Applies the loading state
25
- */
26
23
  this.loading = input(false, { ...(ngDevMode ? { debugName: "loading" } : {}), transform: booleanAttribute });
27
- /**
28
- * Indicates the maximum value of number for the numeric badge
29
- */
30
24
  this.maxValue = input(999, ...(ngDevMode ? [{ debugName: "maxValue" }] : []));
31
- /**
32
- * Disabled tooltip on numeric badge
33
- */
34
25
  this.disableTooltip = input(false, { ...(ngDevMode ? { debugName: "disableTooltip" } : {}), transform: booleanAttribute });
35
26
  this.numericBadgeClasses = computed(() => {
36
27
  const palette = this.palette();
37
28
  const size = this.size();
38
- return { [`palette-${palette}`]: !!palette, [`mod-${size}`]: !!size };
29
+ return { [`palette-${palette}`]: !!this.palette(), [`mod-${size}`]: !!this.size() };
39
30
  }, ...(ngDevMode ? [{ debugName: "numericBadgeClasses" }] : []));
40
31
  this.displayValue = computed(() => {
41
32
  const value = this.value();
@@ -57,10 +48,10 @@ class NumericBadgeComponent {
57
48
  }
58
49
  });
59
50
  }
60
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: NumericBadgeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
61
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.6", type: NumericBadgeComponent, isStandalone: true, selector: "lu-numeric-badge", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, palette: { classPropertyName: "palette", publicName: "palette", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, maxValue: { classPropertyName: "maxValue", publicName: "maxValue", isSignal: true, isRequired: false, transformFunction: null }, disableTooltip: { classPropertyName: "disableTooltip", publicName: "disableTooltip", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.is-loading": "loading()", "attr.aria-hidden": "loading()" }, classAttribute: "numericBadge" }, providers: [LuClass], ngImport: i0, template: "<span class=\"numericBadge-value\" [luTooltip]=\"value()\" [luTooltipDisabled]=\"isDisabled()\">{{ displayValue() }}</span>\n", styles: ["@charset \"UTF-8\";@layer components{.numericBadge{--components-numericBadge-background: var(--palettes-200, var(--palettes-neutral-200));--components-numericBadge-color: var(--palettes-800, var(--palettes-neutral-700));--components-numericBadge-loadingColor: var(--palettes-500, var(--palettes-neutral-500));--components-numericBadge-size: 1.5rem;--components-numericBadge-font: var(--pr-t-font-body-S);--components-numericBadge-borderRadius: var(--pr-t-border-radius-default);--components-numericBadge-fontSize: var(--pr-t-font-body-S-fontSize);--components-numericBadge-lineHeight: var(--pr-t-font-body-S-lineHeight);display:inline-flex;align-items:center;justify-content:center;block-size:var(--components-numericBadge-size);min-inline-size:var(--components-numericBadge-size);padding:var(--pr-t-spacings-50);font:var(--components-numericBadge-font);font-size:var(--components-numericBadge-fontSize);line-height:var(--components-numericBadge-lineHeight);font-weight:var(--pr-t-font-fontWeight-semibold);background-color:var(--components-numericBadge-background);color:var(--components-numericBadge-color);border-radius:var(--components-numericBadge-borderRadius);transition-timing-function:ease;white-space:nowrap;position:relative;transition-duration:var(--commons-animations-durations-fast);transition-property:color}.numericBadge:empty:before{content:\"\\a0\"/\"\"}.numericBadge-value{outline:none}}@layer mods{.numericBadge.mod-S{--components-numericBadge-size: 1.25rem;--components-numericBadge-borderRadius: var(--pr-t-border-radius-small);--components-numericBadge-font: var(--pr-t-font-body-XS);--components-numericBadge-fontSize: var(--pr-t-font-body-XS-fontSize);--components-numericBadge-lineHeight: var(--pr-t-font-body-XS-lineHeight)}.numericBadge.mod-XS{--components-numericBadge-size: 1rem;--components-numericBadge-borderRadius: var(--pr-t-border-radius-small);--components-numericBadge-font: var(--pr-t-font-body-XS);--components-numericBadge-fontSize: var(--pr-t-font-body-XS-fontSize);--components-numericBadge-lineHeight: var(--pr-t-font-body-XS-lineHeight)}.numericBadge.is-loading{--commons-loading-frontground: var(--components-numericBadge-loadingColor);--commons-loading-borderWidth: 2px;--components-numericBadge-color: transparent}.numericBadge.is-loading:after{content:\"\";inline-size:calc(var(--components-numericBadge-size) - var(--pr-t-spacings-100));block-size:calc(var(--components-numericBadge-size) - var(--pr-t-spacings-100));border-radius:var(--pr-t-border-radius-full);line-height:.8rem;border-width:var(--commons-loading-borderWidth);inset:0;margin:auto;position:absolute;border-style:solid;animation-name:rotate;animation-duration:var(--commons-loading-speed);animation-timing-function:linear;animation-iteration-count:infinite;border-color:var(--commons-loading-frontground);border-block-start-color:transparent}@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.numericBadge.is-loading.mod-S{--commons-loading-borderWidth: 1.5px}.numericBadge.is-loading.mod-XS{--commons-loading-borderWidth: 1px}.numericBadge:focus-within{outline:2px solid var(--palettes-product-700);outline-offset:2px}}@layer base{lu-numeric-badge{display:inline-flex}}\n"], dependencies: [{ kind: "ngmodule", type: LuTooltipModule }, { kind: "directive", type: i1.LuTooltipTriggerDirective, selector: "[luTooltip]", inputs: ["luTooltip", "luTooltipEnterDelay", "luTooltipLeaveDelay", "luTooltipDisabled", "luTooltipOnlyForDisplay", "luTooltipPosition", "luTooltipWhenEllipsis", "luTooltipAnchor", "id"], exportAs: ["luTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
51
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: NumericBadgeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
52
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.8", type: NumericBadgeComponent, isStandalone: true, selector: "lu-numeric-badge", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, palette: { classPropertyName: "palette", publicName: "palette", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, maxValue: { classPropertyName: "maxValue", publicName: "maxValue", isSignal: true, isRequired: false, transformFunction: null }, disableTooltip: { classPropertyName: "disableTooltip", publicName: "disableTooltip", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.is-loading": "loading()", "attr.aria-hidden": "loading()" }, classAttribute: "numericBadge" }, providers: [LuClass], ngImport: i0, template: "<span class=\"numericBadge-value\" [luTooltip]=\"value()\" [luTooltipDisabled]=\"isDisabled()\">{{ displayValue() }}</span>\n", styles: ["@charset \"UTF-8\";@layer components{.numericBadge{--components-numericBadge-background: var(--palettes-200, var(--palettes-neutral-200));--components-numericBadge-color: var(--palettes-800, var(--palettes-neutral-700));--components-numericBadge-loadingColor: var(--palettes-500, var(--palettes-neutral-500));--components-numericBadge-size: 1.5rem;--components-numericBadge-font: var(--pr-t-font-body-S);--components-numericBadge-borderRadius: var(--pr-t-border-radius-default);--components-numericBadge-fontSize: var(--pr-t-font-body-S-fontSize);--components-numericBadge-lineHeight: var(--pr-t-font-body-S-lineHeight);display:inline-flex;align-items:center;justify-content:center;block-size:var(--components-numericBadge-size);min-inline-size:var(--components-numericBadge-size);padding:var(--pr-t-spacings-50);font:var(--components-numericBadge-font);font-size:var(--components-numericBadge-fontSize);line-height:var(--components-numericBadge-lineHeight);font-weight:var(--pr-t-font-fontWeight-semibold);background-color:var(--components-numericBadge-background);color:var(--components-numericBadge-color);border-radius:var(--components-numericBadge-borderRadius);transition-timing-function:ease;white-space:nowrap;position:relative;transition-duration:var(--commons-animations-durations-fast);transition-property:color}.numericBadge:empty:before{content:\"\\a0\"/\"\"}.numericBadge-value{outline:none}}@layer mods{.numericBadge.mod-S{--components-numericBadge-size: 1.25rem;--components-numericBadge-borderRadius: var(--pr-t-border-radius-small);--components-numericBadge-font: var(--pr-t-font-body-XS);--components-numericBadge-fontSize: var(--pr-t-font-body-XS-fontSize);--components-numericBadge-lineHeight: var(--pr-t-font-body-XS-lineHeight)}.numericBadge.mod-XS{--components-numericBadge-size: 1rem;--components-numericBadge-borderRadius: var(--pr-t-border-radius-small);--components-numericBadge-font: var(--pr-t-font-body-XS);--components-numericBadge-fontSize: var(--pr-t-font-body-XS-fontSize);--components-numericBadge-lineHeight: var(--pr-t-font-body-XS-lineHeight)}.numericBadge.is-loading{--commons-loading-frontground: var(--components-numericBadge-loadingColor);--commons-loading-borderWidth: 2px;--components-numericBadge-color: transparent}.numericBadge.is-loading:after{content:\"\";inline-size:calc(var(--components-numericBadge-size) - var(--pr-t-spacings-100));block-size:calc(var(--components-numericBadge-size) - var(--pr-t-spacings-100));border-radius:var(--pr-t-border-radius-full);line-height:.8rem;border-width:var(--commons-loading-borderWidth);inset:0;margin:auto;position:absolute;border-style:solid;animation-name:rotate;animation-duration:var(--commons-loading-speed);animation-timing-function:linear;animation-iteration-count:infinite;border-color:var(--commons-loading-frontground);border-block-start-color:transparent}@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.numericBadge.is-loading.mod-S{--commons-loading-borderWidth: 1.5px}.numericBadge.is-loading.mod-XS{--commons-loading-borderWidth: 1px}.numericBadge:focus-within{outline:2px solid var(--palettes-product-700);outline-offset:2px}}@layer base{lu-numeric-badge{display:inline-flex}}\n"], dependencies: [{ kind: "ngmodule", type: LuTooltipModule }, { kind: "directive", type: i1.LuTooltipTriggerDirective, selector: "[luTooltip]", inputs: ["luTooltip", "luTooltipEnterDelay", "luTooltipLeaveDelay", "luTooltipDisabled", "luTooltipOnlyForDisplay", "luTooltipPosition", "luTooltipWhenEllipsis", "luTooltipAnchor", "id"], exportAs: ["luTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
62
53
  }
63
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: NumericBadgeComponent, decorators: [{
54
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: NumericBadgeComponent, decorators: [{
64
55
  type: Component,
65
56
  args: [{ selector: 'lu-numeric-badge', changeDetection: ChangeDetectionStrategy.OnPush, imports: [LuTooltipModule], providers: [LuClass], host: {
66
57
  class: 'numericBadge',
@@ -1 +1 @@
1
- {"version":3,"file":"lucca-front-ng-numeric-badge.mjs","sources":["../../../packages/ng/numeric-badge/numeric-badge.component.ts","../../../packages/ng/numeric-badge/numeric-badge.component.html","../../../packages/ng/numeric-badge/lucca-front-ng-numeric-badge.ts"],"sourcesContent":["import { booleanAttribute, ChangeDetectionStrategy, Component, computed, inject, input, ViewEncapsulation } from '@angular/core';\nimport { LuClass, Palette, ɵeffectWithDeps } from '@lucca-front/ng/core';\nimport { LuTooltipModule } from '@lucca-front/ng/tooltip';\n\n@Component({\n\tselector: 'lu-numeric-badge',\n\ttemplateUrl: './numeric-badge.component.html',\n\tstyleUrl: './numeric-badge.component.scss',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\timports: [LuTooltipModule],\n\tproviders: [LuClass],\n\thost: {\n\t\tclass: 'numericBadge',\n\t\t'[class.is-loading]': 'loading()',\n\t\t'[attr.aria-hidden]': 'loading()',\n\t},\n\tencapsulation: ViewEncapsulation.None,\n})\nexport class NumericBadgeComponent {\n\t#luClass = inject(LuClass);\n\n\t/**\n\t * The value to display, number or string contains number only.\n\t */\n\treadonly value = input.required<number | string>();\n\n\t/**\n\t * The size of the badge\n\t */\n\treadonly size = input<'XS' | 'S' | 'M'>();\n\n\t/**\n\t * The palette to use for this badge. Defaults to 'none' (inherits parent palette)\n\t */\n\treadonly palette = input<Palette>('none');\n\n\t/**\n\t * Applies the loading state\n\t */\n\treadonly loading = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Indicates the maximum value of number for the numeric badge\n\t */\n\treadonly maxValue = input<number>(999);\n\n\t/**\n\t * Disabled tooltip on numeric badge\n\t */\n\treadonly disableTooltip = input(false, { transform: booleanAttribute });\n\n\treadonly numericBadgeClasses = computed(() => {\n\t\tconst palette = this.palette();\n\t\tconst size = this.size();\n\t\treturn { [`palette-${palette}`]: !!palette, [`mod-${size}`]: !!size };\n\t});\n\n\treadonly displayValue = computed(() => {\n\t\tconst value = this.value();\n\t\tconst maxValue = this.maxValue();\n\t\tif (typeof value === 'number') {\n\t\t\treturn +value > maxValue ? `${maxValue}+` : value;\n\t\t} else {\n\t\t\treturn value;\n\t\t}\n\t});\n\n\treadonly isDisabled = computed<boolean>(() => {\n\t\tconst value = this.value();\n\t\treturn this.disableTooltip() || typeof value !== 'number' || this.loading() || this.maxValue() >= +value;\n\t});\n\n\tconstructor() {\n\t\tɵeffectWithDeps([this.numericBadgeClasses], (numericBadgeClasses) => {\n\t\t\tif (numericBadgeClasses) {\n\t\t\t\tthis.#luClass.setState(numericBadgeClasses);\n\t\t\t}\n\t\t});\n\t}\n}\n","<span class=\"numericBadge-value\" [luTooltip]=\"value()\" [luTooltipDisabled]=\"isDisabled()\">{{ displayValue() }}</span>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ɵeffectWithDeps"],"mappings":";;;;;;MAkBa,qBAAqB,CAAA;AACjC,IAAA,QAAQ;AAqDR,IAAA,WAAA,G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A,CAAA,WAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;2FASb,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAdjC,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,kBAAkB,EAAA,eAAA,EAGX,uBAAuB,CAAC,MAAM,EAAA,OAAA,EACtC,CAAC,eAAe,CAAC,EAAA,SAAA,EACf,CAAC,OAAO,CAAC,EAAA,IAAA,EACd;AACL,wBAAA,KAAK,EAAE,cAAc;AACrB,wBAAA,oBAAoB,EAAE,WAAW;AACjC,wBAAA,oBAAoB,EAAE,WAAW;qBACjC,EAAA,aAAA,EACc,iBAAiB,CAAC,IAAI,EAAA,QAAA,EAAA,+HAAA,EAAA,MAAA,EAAA,CAAA,0oGAAA,CAAA,EAAA;;;AEhBtC;;AAEG;;;;"}
1
+ {"version":3,"file":"lucca-front-ng-numeric-badge.mjs","sources":["../../../packages/ng/numeric-badge/numeric-badge.component.ts","../../../packages/ng/numeric-badge/numeric-badge.component.html","../../../packages/ng/numeric-badge/lucca-front-ng-numeric-badge.ts"],"sourcesContent":["import { booleanAttribute, ChangeDetectionStrategy, Component, computed, inject, input, ViewEncapsulation } from '@angular/core';\nimport { LuClass, Palette, ɵeffectWithDeps } from '@lucca-front/ng/core';\nimport { LuTooltipModule } from '@lucca-front/ng/tooltip';\n\n@Component({\n\tselector: 'lu-numeric-badge',\n\ttemplateUrl: './numeric-badge.component.html',\n\tstyleUrl: './numeric-badge.component.scss',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\timports: [LuTooltipModule],\n\tproviders: [LuClass],\n\thost: {\n\t\tclass: 'numericBadge',\n\t\t'[class.is-loading]': 'loading()',\n\t\t'[attr.aria-hidden]': 'loading()',\n\t},\n\tencapsulation: ViewEncapsulation.None,\n})\nexport class NumericBadgeComponent {\n\t#luClass = inject(LuClass);\n\n\t/**\n\t * The value to display, number or string contains number only.\n\t */\n\treadonly value = input.required<number | string>();\n\n\t/**\n\t * The size of the badge\n\t */\n\treadonly size = input<'XS' | 'S' | 'M'>();\n\n\t/**\n\t * The palette to use for this badge. Defaults to 'none' (inherits parent palette)\n\t */\n\treadonly palette = input<Palette>('none');\n\n\treadonly loading = input(false, { transform: booleanAttribute });\n\n\treadonly maxValue = input<number>(999);\n\n\treadonly disableTooltip = input(false, { transform: booleanAttribute });\n\n\treadonly numericBadgeClasses = computed(() => {\n\t\tconst palette = this.palette();\n\t\tconst size = this.size();\n\t\treturn { [`palette-${palette}`]: !!this.palette(), [`mod-${size}`]: !!this.size() };\n\t});\n\n\treadonly displayValue = computed(() => {\n\t\tconst value = this.value();\n\t\tconst maxValue = this.maxValue();\n\t\tif (typeof value === 'number') {\n\t\t\treturn +value > maxValue ? `${maxValue}+` : value;\n\t\t} else {\n\t\t\treturn value;\n\t\t}\n\t});\n\n\treadonly isDisabled = computed<boolean>(() => {\n\t\tconst value = this.value();\n\t\treturn this.disableTooltip() || typeof value !== 'number' || this.loading() || this.maxValue() >= +value;\n\t});\n\n\tconstructor() {\n\t\tɵeffectWithDeps([this.numericBadgeClasses], (numericBadgeClasses) => {\n\t\t\tif (numericBadgeClasses) {\n\t\t\t\tthis.#luClass.setState(numericBadgeClasses);\n\t\t\t}\n\t\t});\n\t}\n}\n","<span class=\"numericBadge-value\" [luTooltip]=\"value()\" [luTooltipDisabled]=\"isDisabled()\">{{ displayValue() }}</span>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ɵeffectWithDeps"],"mappings":";;;;;;MAkBa,qBAAqB,CAAA;AACjC,IAAA,QAAQ;AA4CR,IAAA,WAAA,GAAA;AA5CA,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC;AAE1B;;AAEG;AACM,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,C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