@lucca-front/ng 22.1.1 → 22.1.2

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 (553) hide show
  1. package/fesm2022/lucca-front-ng-a11y.mjs +9 -9
  2. package/fesm2022/lucca-front-ng-activity-feed.mjs +12 -12
  3. package/fesm2022/lucca-front-ng-api.mjs +40 -40
  4. package/fesm2022/lucca-front-ng-app-layout.mjs +3 -3
  5. package/fesm2022/lucca-front-ng-approbation-inbox.mjs +33 -33
  6. package/fesm2022/lucca-front-ng-approbation-inbox.mjs.map +1 -1
  7. package/fesm2022/lucca-front-ng-box.mjs +3 -3
  8. package/fesm2022/lucca-front-ng-breadcrumbs.mjs +6 -6
  9. package/fesm2022/lucca-front-ng-bubble-icon.mjs +3 -3
  10. package/fesm2022/lucca-front-ng-bubble-illustration.mjs +7 -7
  11. package/fesm2022/lucca-front-ng-bubble-illustration.mjs.map +1 -1
  12. package/fesm2022/lucca-front-ng-callout.mjs +25 -25
  13. package/fesm2022/lucca-front-ng-callout.mjs.map +1 -1
  14. package/fesm2022/lucca-front-ng-chip.mjs +3 -3
  15. package/fesm2022/lucca-front-ng-clear.mjs +3 -3
  16. package/fesm2022/lucca-front-ng-code.mjs +3 -3
  17. package/fesm2022/lucca-front-ng-color.mjs +3 -3
  18. package/fesm2022/lucca-front-ng-comment.mjs +9 -9
  19. package/fesm2022/lucca-front-ng-container.mjs +3 -3
  20. package/fesm2022/lucca-front-ng-core-select-api.mjs +9 -9
  21. package/fesm2022/lucca-front-ng-core-select-department.mjs +6 -6
  22. package/fesm2022/lucca-front-ng-core-select-establishment.mjs +14 -10
  23. package/fesm2022/lucca-front-ng-core-select-establishment.mjs.map +1 -1
  24. package/fesm2022/lucca-front-ng-core-select-job-qualification.mjs +11 -7
  25. package/fesm2022/lucca-front-ng-core-select-job-qualification.mjs.map +1 -1
  26. package/fesm2022/lucca-front-ng-core-select-legal-units.mjs +6 -6
  27. package/fesm2022/lucca-front-ng-core-select-occupation-category.mjs +3 -3
  28. package/fesm2022/lucca-front-ng-core-select-user.mjs +18 -18
  29. package/fesm2022/lucca-front-ng-core-select.mjs +62 -54
  30. package/fesm2022/lucca-front-ng-core-select.mjs.map +1 -1
  31. package/fesm2022/lucca-front-ng-core.mjs +24 -19
  32. package/fesm2022/lucca-front-ng-core.mjs.map +1 -1
  33. package/fesm2022/lucca-front-ng-data-table.mjs +24 -24
  34. package/fesm2022/lucca-front-ng-date.mjs +44 -40
  35. package/fesm2022/lucca-front-ng-date.mjs.map +1 -1
  36. package/fesm2022/lucca-front-ng-date2.mjs +34 -37
  37. package/fesm2022/lucca-front-ng-date2.mjs.map +1 -1
  38. package/fesm2022/lucca-front-ng-department.mjs +28 -26
  39. package/fesm2022/lucca-front-ng-department.mjs.map +1 -1
  40. package/fesm2022/lucca-front-ng-dialog.mjs +40 -38
  41. package/fesm2022/lucca-front-ng-dialog.mjs.map +1 -1
  42. package/fesm2022/lucca-front-ng-divider.mjs +3 -3
  43. package/fesm2022/lucca-front-ng-dropdown.mjs +42 -41
  44. package/fesm2022/lucca-front-ng-dropdown.mjs.map +1 -1
  45. package/fesm2022/lucca-front-ng-empty-state.mjs +14 -14
  46. package/fesm2022/lucca-front-ng-empty-state.mjs.map +1 -1
  47. package/fesm2022/lucca-front-ng-error-page.mjs +5 -4
  48. package/fesm2022/lucca-front-ng-error-page.mjs.map +1 -1
  49. package/fesm2022/lucca-front-ng-establishment.mjs +36 -34
  50. package/fesm2022/lucca-front-ng-establishment.mjs.map +1 -1
  51. package/fesm2022/lucca-front-ng-fancy-box.mjs +5 -4
  52. package/fesm2022/lucca-front-ng-fancy-box.mjs.map +1 -1
  53. package/fesm2022/lucca-front-ng-file-upload.mjs +20 -20
  54. package/fesm2022/lucca-front-ng-file-upload.mjs.map +1 -1
  55. package/fesm2022/lucca-front-ng-filter-pills-core.mjs +6 -6
  56. package/fesm2022/lucca-front-ng-filter-pills.mjs +15 -15
  57. package/fesm2022/lucca-front-ng-footer.mjs +3 -3
  58. package/fesm2022/lucca-front-ng-form-field.mjs +18 -18
  59. package/fesm2022/lucca-front-ng-form-header.mjs +3 -3
  60. package/fesm2022/lucca-front-ng-form-label.mjs +3 -3
  61. package/fesm2022/lucca-front-ng-form.mjs +3 -3
  62. package/fesm2022/lucca-front-ng-formly.mjs +58 -58
  63. package/fesm2022/lucca-front-ng-forms-phone-number-input.mjs +10 -9
  64. package/fesm2022/lucca-front-ng-forms-phone-number-input.mjs.map +1 -1
  65. package/fesm2022/lucca-front-ng-forms-rich-text-input-formatters-html.mjs +3 -3
  66. package/fesm2022/lucca-front-ng-forms-rich-text-input-formatters-markdown.mjs +6 -6
  67. package/fesm2022/lucca-front-ng-forms-rich-text-input-formatters-plain-text.mjs +3 -3
  68. package/fesm2022/lucca-front-ng-forms-rich-text-input.mjs +35 -35
  69. package/fesm2022/lucca-front-ng-forms-rich-text-input.mjs.map +1 -1
  70. package/fesm2022/lucca-front-ng-forms.mjs +50 -40
  71. package/fesm2022/lucca-front-ng-forms.mjs.map +1 -1
  72. package/fesm2022/lucca-front-ng-gauge.mjs +3 -3
  73. package/fesm2022/lucca-front-ng-grid.mjs +6 -6
  74. package/fesm2022/lucca-front-ng-highlight-data.mjs +6 -6
  75. package/fesm2022/lucca-front-ng-highlight-data.mjs.map +1 -1
  76. package/fesm2022/lucca-front-ng-highlight-section.mjs +6 -6
  77. package/fesm2022/lucca-front-ng-highlight-section.mjs.map +1 -1
  78. package/fesm2022/lucca-front-ng-highlight-text.mjs +3 -3
  79. package/fesm2022/lucca-front-ng-horizontal-navigation.mjs +9 -9
  80. package/fesm2022/lucca-front-ng-impersonation.mjs +3 -3
  81. package/fesm2022/lucca-front-ng-index-table.mjs +30 -30
  82. package/fesm2022/lucca-front-ng-inline-message.mjs +3 -3
  83. package/fesm2022/lucca-front-ng-input.mjs +25 -23
  84. package/fesm2022/lucca-front-ng-input.mjs.map +1 -1
  85. package/fesm2022/lucca-front-ng-kbd.mjs +3 -3
  86. package/fesm2022/lucca-front-ng-link.mjs +6 -6
  87. package/fesm2022/lucca-front-ng-listbox.mjs +9 -9
  88. package/fesm2022/lucca-front-ng-listing.mjs +6 -6
  89. package/fesm2022/lucca-front-ng-loading.mjs +3 -3
  90. package/fesm2022/lucca-front-ng-main-layout.mjs +8 -8
  91. package/fesm2022/lucca-front-ng-main-layout.mjs.map +1 -1
  92. package/fesm2022/lucca-front-ng-markdown.mjs +3 -3
  93. package/fesm2022/lucca-front-ng-mobile-push.mjs +6 -5
  94. package/fesm2022/lucca-front-ng-mobile-push.mjs.map +1 -1
  95. package/fesm2022/lucca-front-ng-modal.mjs +22 -22
  96. package/fesm2022/lucca-front-ng-multi-select.mjs +39 -38
  97. package/fesm2022/lucca-front-ng-multi-select.mjs.map +1 -1
  98. package/fesm2022/lucca-front-ng-new-badge.mjs +3 -3
  99. package/fesm2022/lucca-front-ng-number-format.mjs +22 -13
  100. package/fesm2022/lucca-front-ng-number-format.mjs.map +1 -1
  101. package/fesm2022/lucca-front-ng-number.mjs +7 -7
  102. package/fesm2022/lucca-front-ng-option.mjs +164 -143
  103. package/fesm2022/lucca-front-ng-option.mjs.map +1 -1
  104. package/fesm2022/lucca-front-ng-page-header.mjs +3 -3
  105. package/fesm2022/lucca-front-ng-pagination.mjs +3 -3
  106. package/fesm2022/lucca-front-ng-plg-push.mjs +6 -5
  107. package/fesm2022/lucca-front-ng-plg-push.mjs.map +1 -1
  108. package/fesm2022/lucca-front-ng-popover.mjs +29 -17
  109. package/fesm2022/lucca-front-ng-popover.mjs.map +1 -1
  110. package/fesm2022/lucca-front-ng-popover2.mjs +6 -6
  111. package/fesm2022/lucca-front-ng-popup.mjs +10 -10
  112. package/fesm2022/lucca-front-ng-priority-level.mjs +3 -3
  113. package/fesm2022/lucca-front-ng-progress-bar.mjs +3 -3
  114. package/fesm2022/lucca-front-ng-progress-stepper.mjs +6 -6
  115. package/fesm2022/lucca-front-ng-read-more.mjs +3 -3
  116. package/fesm2022/lucca-front-ng-resource-card.mjs +12 -12
  117. package/fesm2022/lucca-front-ng-safe-content.mjs +10 -10
  118. package/fesm2022/lucca-front-ng-scroll-box.mjs +3 -3
  119. package/fesm2022/lucca-front-ng-scroll.mjs +7 -7
  120. package/fesm2022/lucca-front-ng-segmented-control-tabs.mjs +8 -8
  121. package/fesm2022/lucca-front-ng-segmented-control.mjs +8 -8
  122. package/fesm2022/lucca-front-ng-select.mjs +16 -15
  123. package/fesm2022/lucca-front-ng-select.mjs.map +1 -1
  124. package/fesm2022/lucca-front-ng-sidepanel.mjs +9 -8
  125. package/fesm2022/lucca-front-ng-sidepanel.mjs.map +1 -1
  126. package/fesm2022/lucca-front-ng-simple-select.mjs +16 -14
  127. package/fesm2022/lucca-front-ng-simple-select.mjs.map +1 -1
  128. package/fesm2022/lucca-front-ng-software-icon-wrapper.mjs +6 -6
  129. package/fesm2022/lucca-front-ng-software-icon.mjs +7 -5
  130. package/fesm2022/lucca-front-ng-software-icon.mjs.map +1 -1
  131. package/fesm2022/lucca-front-ng-sortable-list.mjs +6 -6
  132. package/fesm2022/lucca-front-ng-status-badge.mjs +3 -3
  133. package/fesm2022/lucca-front-ng-table-of-content.mjs +6 -6
  134. package/fesm2022/lucca-front-ng-text-flow.mjs +3 -3
  135. package/fesm2022/lucca-front-ng-time.mjs +36 -25
  136. package/fesm2022/lucca-front-ng-time.mjs.map +1 -1
  137. package/fesm2022/lucca-front-ng-title.mjs +10 -10
  138. package/fesm2022/lucca-front-ng-toast.mjs +10 -10
  139. package/fesm2022/lucca-front-ng-tree-select.mjs +6 -6
  140. package/fesm2022/lucca-front-ng-user-popover.mjs +19 -19
  141. package/fesm2022/lucca-front-ng-user.mjs +63 -61
  142. package/fesm2022/lucca-front-ng-user.mjs.map +1 -1
  143. package/fesm2022/lucca-front-ng-vertical-navigation.mjs +12 -12
  144. package/llms/SKILL.md +233 -0
  145. package/llms/references/components/activity-feed/activity-feed.component.md +339 -0
  146. package/llms/references/components/activity-feed/activity-feed.design.md +145 -0
  147. package/llms/references/components/activity-feed/activity-feed.md +129 -0
  148. package/llms/references/components/animations/animations.component.md +11 -0
  149. package/llms/references/components/animations/animations.md +7 -0
  150. package/llms/references/components/api-select/api-select.md +40 -0
  151. package/llms/references/components/app-layout/app-layout.component.md +65 -0
  152. package/llms/references/components/app-layout/app-layout.design.md +61 -0
  153. package/llms/references/components/app-layout/app-layout.md +80 -0
  154. package/llms/references/components/approbation-inbox/approbation-inbox.component.md +1062 -0
  155. package/llms/references/components/approbation-inbox/approbation-inbox.design.md +162 -0
  156. package/llms/references/components/approbation-inbox/approbation-inbox.md +177 -0
  157. package/llms/references/components/avatar/avatar.component.md +571 -0
  158. package/llms/references/components/avatar/avatar.md +97 -0
  159. package/llms/references/components/box/box.component.md +155 -0
  160. package/llms/references/components/box/box.md +98 -0
  161. package/llms/references/components/breadcrumbs/breadcrumbs.component.md +60 -0
  162. package/llms/references/components/breadcrumbs/breadcrumbs.design.md +11 -0
  163. package/llms/references/components/breadcrumbs/breadcrumbs.md +96 -0
  164. package/llms/references/components/bubble-icon/bubble-icon.component.md +56 -0
  165. package/llms/references/components/bubble-icon/bubble-icon.design.md +47 -0
  166. package/llms/references/components/bubble-icon/bubble-icon.md +83 -0
  167. package/llms/references/components/bubble-illustration/bubble-illustration.component.md +54 -0
  168. package/llms/references/components/bubble-illustration/bubble-illustration.design.md +69 -0
  169. package/llms/references/components/bubble-illustration/bubble-illustration.md +76 -0
  170. package/llms/references/components/button/button.component.md +275 -0
  171. package/llms/references/components/button/button.design.md +322 -0
  172. package/llms/references/components/button/button.md +134 -0
  173. package/llms/references/components/calendar/calendar.component.md +750 -0
  174. package/llms/references/components/calendar/calendar.design.md +43 -0
  175. package/llms/references/components/calendar/calendar.md +127 -0
  176. package/llms/references/components/calendar2/calendar2.md +74 -0
  177. package/llms/references/components/callout/callout.component.md +254 -0
  178. package/llms/references/components/callout/callout.design.md +197 -0
  179. package/llms/references/components/callout/callout.md +259 -0
  180. package/llms/references/components/callout-disclosure/callout-disclosure.component.md +240 -0
  181. package/llms/references/components/callout-disclosure/callout-disclosure.design.md +197 -0
  182. package/llms/references/components/callout-disclosure/callout-disclosure.md +207 -0
  183. package/llms/references/components/callout-popover/callout-popover.component.md +182 -0
  184. package/llms/references/components/callout-popover/callout-popover.design.md +197 -0
  185. package/llms/references/components/callout-popover/callout-popover.md +212 -0
  186. package/llms/references/components/card/card.component.md +62 -0
  187. package/llms/references/components/card/card.design.md +36 -0
  188. package/llms/references/components/card/card.md +7 -0
  189. package/llms/references/components/checkbox/checkbox.component.md +50 -0
  190. package/llms/references/components/checkbox/checkbox.design.md +196 -0
  191. package/llms/references/components/checkbox/checkbox.md +73 -0
  192. package/llms/references/components/chip/chip.component.md +145 -0
  193. package/llms/references/components/chip/chip.md +118 -0
  194. package/llms/references/components/clear/clear.component.md +38 -0
  195. package/llms/references/components/clear/clear.design.md +36 -0
  196. package/llms/references/components/clear/clear.md +88 -0
  197. package/llms/references/components/code/code.component.md +33 -0
  198. package/llms/references/components/code/code.md +47 -0
  199. package/llms/references/components/color/color.md +32 -0
  200. package/llms/references/components/color-input/color-input.md +43 -0
  201. package/llms/references/components/color-picker/color-picker.component.md +29 -0
  202. package/llms/references/components/color-picker/color-picker.design.md +42 -0
  203. package/llms/references/components/color-picker/color-picker.md +24 -0
  204. package/llms/references/components/comment/comment.component.md +451 -0
  205. package/llms/references/components/comment/comment.design.md +67 -0
  206. package/llms/references/components/comment/comment.md +137 -0
  207. package/llms/references/components/container/container.component.md +41 -0
  208. package/llms/references/components/container/container.md +74 -0
  209. package/llms/references/components/core-select-department/core-select-department.md +42 -0
  210. package/llms/references/components/core-select-establishment/core-select-establishment.md +45 -0
  211. package/llms/references/components/core-select-job-qualification/core-select-job-qualification.md +25 -0
  212. package/llms/references/components/core-select-occupation-category/core-select-occupation-category.md +25 -0
  213. package/llms/references/components/core-select-user/core-select-user.md +81 -0
  214. package/llms/references/components/data-presentation/data-presentation.component.md +47 -0
  215. package/llms/references/components/data-presentation/data-presentation.md +48 -0
  216. package/llms/references/components/data-table/data-table.component.md +1649 -0
  217. package/llms/references/components/data-table/data-table.design.md +159 -0
  218. package/llms/references/components/data-table/data-table.md +338 -0
  219. package/llms/references/components/date/date.component.md +31 -0
  220. package/llms/references/components/date/date.md +164 -0
  221. package/llms/references/components/dateinput/dateinput.component.md +127 -0
  222. package/llms/references/components/dateinput/dateinput.design.md +80 -0
  223. package/llms/references/components/dateinput/dateinput.md +224 -0
  224. package/llms/references/components/daterangeinput/daterangeinput.component.md +64 -0
  225. package/llms/references/components/daterangeinput/daterangeinput.design.md +76 -0
  226. package/llms/references/components/daterangeinput/daterangeinput.md +210 -0
  227. package/llms/references/components/departmentselect/departmentselect.component.md +44 -0
  228. package/llms/references/components/departmentselect/departmentselect.md +43 -0
  229. package/llms/references/components/dialog/dialog.component.md +475 -0
  230. package/llms/references/components/dialog/dialog.design.md +139 -0
  231. package/llms/references/components/dialog/dialog.md +357 -0
  232. package/llms/references/components/divider/divider.component.md +35 -0
  233. package/llms/references/components/divider/divider.md +87 -0
  234. package/llms/references/components/dropdown/dropdown.component.md +315 -0
  235. package/llms/references/components/dropdown/dropdown.md +189 -0
  236. package/llms/references/components/duration-picker/duration-picker.design.md +124 -0
  237. package/llms/references/components/duration-picker/duration-picker.md +165 -0
  238. package/llms/references/components/empty-state/empty-state.component.md +238 -0
  239. package/llms/references/components/empty-state/empty-state.design.md +124 -0
  240. package/llms/references/components/empty-state/empty-state.md +61 -0
  241. package/llms/references/components/errorpage/errorpage.component.md +57 -0
  242. package/llms/references/components/errorpage/errorpage.md +75 -0
  243. package/llms/references/components/establishmentselect/establishmentselect.component.md +31 -0
  244. package/llms/references/components/establishmentselect/establishmentselect.md +42 -0
  245. package/llms/references/components/fancy-dialog/fancy-dialog.component.md +9 -0
  246. package/llms/references/components/fancy-dialog/fancy-dialog.design.md +93 -0
  247. package/llms/references/components/fancy-dialog/fancy-dialog.md +128 -0
  248. package/llms/references/components/fancybox/fancybox.component.md +218 -0
  249. package/llms/references/components/fancybox/fancybox.design.md +72 -0
  250. package/llms/references/components/fancybox/fancybox.md +90 -0
  251. package/llms/references/components/fieldset/fieldset.component.md +86 -0
  252. package/llms/references/components/fieldset/fieldset.md +129 -0
  253. package/llms/references/components/filedropzone/filedropzone.component.md +16 -0
  254. package/llms/references/components/filedropzone/filedropzone.md +71 -0
  255. package/llms/references/components/fileentry/fileentry.component.md +56 -0
  256. package/llms/references/components/fileentry/fileentry.design.md +152 -0
  257. package/llms/references/components/fileentry/fileentry.md +272 -0
  258. package/llms/references/components/fileupload/fileupload.component.md +91 -0
  259. package/llms/references/components/fileupload/fileupload.design.md +152 -0
  260. package/llms/references/components/fileupload/fileupload.md +275 -0
  261. package/llms/references/components/filterbar/filterbar.component.md +299 -0
  262. package/llms/references/components/filterbar/filterbar.design.md +92 -0
  263. package/llms/references/components/filterbar/filterbar.md +168 -0
  264. package/llms/references/components/filterpills/filterpills.component.md +65 -0
  265. package/llms/references/components/filterpills/filterpills.design.md +60 -0
  266. package/llms/references/components/filterpills/filterpills.md +214 -0
  267. package/llms/references/components/footer/footer.component.md +66 -0
  268. package/llms/references/components/footer/footer.design.md +176 -0
  269. package/llms/references/components/footer/footer.md +125 -0
  270. package/llms/references/components/form/form.md +42 -0
  271. package/llms/references/components/form-field/form-field.component.md +46 -0
  272. package/llms/references/components/form-field/form-field.md +252 -0
  273. package/llms/references/components/form-header/form-header.md +29 -0
  274. package/llms/references/components/form-label/form-label.component.md +116 -0
  275. package/llms/references/components/form-label/form-label.md +121 -0
  276. package/llms/references/components/gauge/gauge.component.md +55 -0
  277. package/llms/references/components/gauge/gauge.md +72 -0
  278. package/llms/references/components/grid/grid.component.md +15 -0
  279. package/llms/references/components/grid/grid.md +124 -0
  280. package/llms/references/components/highlight-data/highlight-data.component.md +294 -0
  281. package/llms/references/components/highlight-data/highlight-data.design.md +97 -0
  282. package/llms/references/components/highlight-data/highlight-data.md +126 -0
  283. package/llms/references/components/highlight-section/highlight-section.component.md +195 -0
  284. package/llms/references/components/highlight-section/highlight-section.md +53 -0
  285. package/llms/references/components/highlight-text/highlight-text.component.md +53 -0
  286. package/llms/references/components/highlight-text/highlight-text.md +29 -0
  287. package/llms/references/components/horizontalnavigation/horizontalnavigation.component.md +247 -0
  288. package/llms/references/components/horizontalnavigation/horizontalnavigation.md +94 -0
  289. package/llms/references/components/icons/icons.component.md +59 -0
  290. package/llms/references/components/icons/icons.design.md +141 -0
  291. package/llms/references/components/icons/icons.md +195 -0
  292. package/llms/references/components/impersonation/impersonation.component.md +83 -0
  293. package/llms/references/components/impersonation/impersonation.design.md +58 -0
  294. package/llms/references/components/impersonation/impersonation.md +97 -0
  295. package/llms/references/components/index-table/index-table.component.md +2573 -0
  296. package/llms/references/components/index-table/index-table.design.md +250 -0
  297. package/llms/references/components/index-table/index-table.md +278 -0
  298. package/llms/references/components/inlinemessage/inlinemessage.component.md +58 -0
  299. package/llms/references/components/inlinemessage/inlinemessage.md +56 -0
  300. package/llms/references/components/input-framed/input-framed.component.md +731 -0
  301. package/llms/references/components/input-framed/input-framed.design.md +94 -0
  302. package/llms/references/components/input-framed/input-framed.md +49 -0
  303. package/llms/references/components/kbd/kbd.component.md +48 -0
  304. package/llms/references/components/kbd/kbd.md +40 -0
  305. package/llms/references/components/link/link.component.md +162 -0
  306. package/llms/references/components/link/link.design.md +48 -0
  307. package/llms/references/components/link/link.md +148 -0
  308. package/llms/references/components/listbox/listbox.component.md +11 -0
  309. package/llms/references/components/listbox/listbox.md +114 -0
  310. package/llms/references/components/listing/listing.component.md +416 -0
  311. package/llms/references/components/listing/listing.design.md +31 -0
  312. package/llms/references/components/listing/listing.md +124 -0
  313. package/llms/references/components/loading/loading.component.md +37 -0
  314. package/llms/references/components/loading/loading.design.md +32 -0
  315. package/llms/references/components/loading/loading.md +116 -0
  316. package/llms/references/components/main-layout/main-layout.component.md +157 -0
  317. package/llms/references/components/main-layout/main-layout.md +78 -0
  318. package/llms/references/components/markdown/markdown.component.md +15 -0
  319. package/llms/references/components/markdown/markdown.md +40 -0
  320. package/llms/references/components/mobile-push/mobile-push.component.md +67 -0
  321. package/llms/references/components/mobile-push/mobile-push.md +79 -0
  322. package/llms/references/components/mobileheader/mobileheader.component.md +31 -0
  323. package/llms/references/components/mobileheader/mobileheader.design.md +15 -0
  324. package/llms/references/components/mobileheader/mobileheader.md +7 -0
  325. package/llms/references/components/mobilenavigation/mobilenavigation.component.md +43 -0
  326. package/llms/references/components/mobilenavigation/mobilenavigation.design.md +9 -0
  327. package/llms/references/components/mobilenavigation/mobilenavigation.md +7 -0
  328. package/llms/references/components/modal/modal.component.md +37 -0
  329. package/llms/references/components/modal/modal.design.md +163 -0
  330. package/llms/references/components/modal/modal.md +60 -0
  331. package/llms/references/components/multi-select/multi-select.component.md +43 -0
  332. package/llms/references/components/multi-select/multi-select.design.md +346 -0
  333. package/llms/references/components/multi-select/multi-select.md +444 -0
  334. package/llms/references/components/multilanguagefield/multilanguagefield.component.md +83 -0
  335. package/llms/references/components/multilanguagefield/multilanguagefield.design.md +78 -0
  336. package/llms/references/components/multilanguagefield/multilanguagefield.md +383 -0
  337. package/llms/references/components/newbadge/newbadge.component.md +23 -0
  338. package/llms/references/components/newbadge/newbadge.design.md +25 -0
  339. package/llms/references/components/newbadge/newbadge.md +37 -0
  340. package/llms/references/components/number-format-input/number-format-input.md +63 -0
  341. package/llms/references/components/number-input/number-input.md +54 -0
  342. package/llms/references/components/numbers/numbers.component.md +46 -0
  343. package/llms/references/components/numbers/numbers.md +7 -0
  344. package/llms/references/components/numericbadge/numericbadge.component.md +66 -0
  345. package/llms/references/components/numericbadge/numericbadge.md +83 -0
  346. package/llms/references/components/onboarding-empty-state/onboarding-empty-state.design.md +124 -0
  347. package/llms/references/components/onboarding-empty-state/onboarding-empty-state.md +47 -0
  348. package/llms/references/components/pageheader/pageheader.component.md +401 -0
  349. package/llms/references/components/pageheader/pageheader.design.md +13 -0
  350. package/llms/references/components/pageheader/pageheader.md +154 -0
  351. package/llms/references/components/pagination/pagination.component.md +112 -0
  352. package/llms/references/components/pagination/pagination.md +128 -0
  353. package/llms/references/components/phonenumberfield/phonenumberfield.component.md +33 -0
  354. package/llms/references/components/phonenumberfield/phonenumberfield.design.md +59 -0
  355. package/llms/references/components/phonenumberfield/phonenumberfield.md +141 -0
  356. package/llms/references/components/plg-push/plg-push.component.md +91 -0
  357. package/llms/references/components/plg-push/plg-push.design.md +87 -0
  358. package/llms/references/components/plg-push/plg-push.md +91 -0
  359. package/llms/references/components/popover/popover.component.md +149 -0
  360. package/llms/references/components/popover/popover.md +253 -0
  361. package/llms/references/components/popover2/popover2.component.md +110 -0
  362. package/llms/references/components/popover2/popover2.md +95 -0
  363. package/llms/references/components/priority-level/priority-level.component.md +63 -0
  364. package/llms/references/components/priority-level/priority-level.design.md +79 -0
  365. package/llms/references/components/priority-level/priority-level.md +36 -0
  366. package/llms/references/components/progress-bar/progress-bar.component.md +33 -0
  367. package/llms/references/components/progress-bar/progress-bar.design.md +15 -0
  368. package/llms/references/components/progress-bar/progress-bar.md +50 -0
  369. package/llms/references/components/progress-stepper/progress-stepper.component.md +375 -0
  370. package/llms/references/components/progress-stepper/progress-stepper.design.md +54 -0
  371. package/llms/references/components/progress-stepper/progress-stepper.md +69 -0
  372. package/llms/references/components/radiofield/radiofield.component.md +307 -0
  373. package/llms/references/components/radiofield/radiofield.design.md +148 -0
  374. package/llms/references/components/radiofield/radiofield.md +132 -0
  375. package/llms/references/components/readmore/readmore.component.md +60 -0
  376. package/llms/references/components/readmore/readmore.md +97 -0
  377. package/llms/references/components/resource-card/resource-card.component.md +225 -0
  378. package/llms/references/components/resource-card/resource-card.md +118 -0
  379. package/llms/references/components/richtextinput/richtextinput.component.md +308 -0
  380. package/llms/references/components/richtextinput/richtextinput.design.md +83 -0
  381. package/llms/references/components/richtextinput/richtextinput.md +300 -0
  382. package/llms/references/components/scroll/scroll.md +45 -0
  383. package/llms/references/components/scrollbox/scrollbox.component.md +63 -0
  384. package/llms/references/components/scrollbox/scrollbox.design.md +11 -0
  385. package/llms/references/components/scrollbox/scrollbox.md +48 -0
  386. package/llms/references/components/section-empty-state/section-empty-state.component.md +9 -0
  387. package/llms/references/components/section-empty-state/section-empty-state.design.md +67 -0
  388. package/llms/references/components/section-empty-state/section-empty-state.md +41 -0
  389. package/llms/references/components/segmented-control-tabs/segmented-control-tabs.md +68 -0
  390. package/llms/references/components/segmentedcontrol/segmentedcontrol.component.md +208 -0
  391. package/llms/references/components/segmentedcontrol/segmentedcontrol.md +125 -0
  392. package/llms/references/components/select/select.component.md +247 -0
  393. package/llms/references/components/select/select.md +57 -0
  394. package/llms/references/components/select-templating/select-templating.md +141 -0
  395. package/llms/references/components/sidepanel/sidepanel.component.md +56 -0
  396. package/llms/references/components/sidepanel/sidepanel.md +7 -0
  397. package/llms/references/components/simple-select/simple-select.component.md +45 -0
  398. package/llms/references/components/simple-select/simple-select.design.md +353 -0
  399. package/llms/references/components/simple-select/simple-select.md +302 -0
  400. package/llms/references/components/skeleton/skeleton.component.md +145 -0
  401. package/llms/references/components/skeleton/skeleton.design.md +82 -0
  402. package/llms/references/components/skeleton/skeleton.md +230 -0
  403. package/llms/references/components/skiplinks/skiplinks.component.md +91 -0
  404. package/llms/references/components/skiplinks/skiplinks.md +73 -0
  405. package/llms/references/components/software-icon/software-icon.component.md +61 -0
  406. package/llms/references/components/software-icon/software-icon.design.md +23 -0
  407. package/llms/references/components/software-icon/software-icon.md +118 -0
  408. package/llms/references/components/sortable-list/sortable-list.component.md +150 -0
  409. package/llms/references/components/sortable-list/sortable-list.md +83 -0
  410. package/llms/references/components/statusbadge/statusbadge.component.md +56 -0
  411. package/llms/references/components/statusbadge/statusbadge.design.md +58 -0
  412. package/llms/references/components/statusbadge/statusbadge.md +62 -0
  413. package/llms/references/components/switchfield/switchfield.component.md +124 -0
  414. package/llms/references/components/switchfield/switchfield.md +55 -0
  415. package/llms/references/components/tableofcontent/tableofcontent.component.md +55 -0
  416. package/llms/references/components/tableofcontent/tableofcontent.md +41 -0
  417. package/llms/references/components/tags/tags.component.md +153 -0
  418. package/llms/references/components/tags/tags.design.md +84 -0
  419. package/llms/references/components/tags/tags.md +132 -0
  420. package/llms/references/components/text-flow/text-flow.component.md +71 -0
  421. package/llms/references/components/text-flow/text-flow.design.md +42 -0
  422. package/llms/references/components/text-flow/text-flow.md +62 -0
  423. package/llms/references/components/textareafield/textareafield.component.md +57 -0
  424. package/llms/references/components/textareafield/textareafield.design.md +94 -0
  425. package/llms/references/components/textareafield/textareafield.md +122 -0
  426. package/llms/references/components/textfield/textfield.component.md +610 -0
  427. package/llms/references/components/textfield/textfield.design.md +148 -0
  428. package/llms/references/components/textfield/textfield.md +178 -0
  429. package/llms/references/components/tile/tile.component.md +91 -0
  430. package/llms/references/components/tile/tile.md +91 -0
  431. package/llms/references/components/time/time.component.md +275 -0
  432. package/llms/references/components/time/time.md +140 -0
  433. package/llms/references/components/time-picker/time-picker.design.md +124 -0
  434. package/llms/references/components/time-picker/time-picker.md +169 -0
  435. package/llms/references/components/time-range-picker/time-range-picker.component.md +5 -0
  436. package/llms/references/components/time-range-picker/time-range-picker.design.md +57 -0
  437. package/llms/references/components/time-range-picker/time-range-picker.md +46 -0
  438. package/llms/references/components/timelines/timelines.component.md +168 -0
  439. package/llms/references/components/timelines/timelines.design.md +21 -0
  440. package/llms/references/components/timelines/timelines.md +7 -0
  441. package/llms/references/components/title-and-text/title-and-text.component.md +14 -0
  442. package/llms/references/components/title-and-text/title-and-text.design.md +57 -0
  443. package/llms/references/components/title-and-text/title-and-text.md +60 -0
  444. package/llms/references/components/toasts/toasts.component.md +54 -0
  445. package/llms/references/components/toasts/toasts.design.md +76 -0
  446. package/llms/references/components/toasts/toasts.md +124 -0
  447. package/llms/references/components/tooltip/tooltip.component.md +83 -0
  448. package/llms/references/components/tooltip/tooltip.design.md +68 -0
  449. package/llms/references/components/tooltip/tooltip.md +246 -0
  450. package/llms/references/components/treeselect/treeselect.component.md +62 -0
  451. package/llms/references/components/treeselect/treeselect.md +58 -0
  452. package/llms/references/components/user-select/user-select.md +52 -0
  453. package/llms/references/components/userpopover/userpopover.component.md +51 -0
  454. package/llms/references/components/userpopover/userpopover.design.md +74 -0
  455. package/llms/references/components/userpopover/userpopover.md +155 -0
  456. package/llms/references/components/verticalnavigation/verticalnavigation.component.md +247 -0
  457. package/llms/references/components/verticalnavigation/verticalnavigation.md +128 -0
  458. package/llms/references/documentation/content/accessibilite-contenu.md +147 -0
  459. package/llms/references/documentation/content/blocage-contenu.md +49 -0
  460. package/llms/references/documentation/content/criteres-essentiels.md +54 -0
  461. package/llms/references/documentation/content/dates.md +76 -0
  462. package/llms/references/documentation/content/grammaire-orthographe.md +118 -0
  463. package/llms/references/documentation/content/infinitif-imperatif.md +21 -0
  464. package/llms/references/documentation/content/jargon.md +30 -0
  465. package/llms/references/documentation/content/messages-erreur.md +279 -0
  466. package/llms/references/documentation/content/nombres.md +127 -0
  467. package/llms/references/documentation/content/ponctuation-typographie.md +343 -0
  468. package/llms/references/documentation/content/possessifs-pronoms.md +48 -0
  469. package/llms/references/documentation/content/ressources-definitions.md +58 -0
  470. package/llms/references/documentation/content/singulier-pluriel.md +72 -0
  471. package/llms/references/documentation/content/tester-clarte.md +141 -0
  472. package/llms/references/documentation/content/verbes-action.md +99 -0
  473. package/llms/references/documentation/content/voix-humaine.md +79 -0
  474. package/llms/references/documentation/deprecated/deprecated.md +151 -0
  475. package/llms/references/documentation/guidelines/guidelines-dev-ui.md +375 -0
  476. package/llms/references/documentation/patterns/actions-suppression.md +42 -0
  477. package/llms/references/documentation/patterns/aide-contextuelle.md +29 -0
  478. package/llms/references/documentation/patterns/card-et-box.md +56 -0
  479. package/llms/references/documentation/patterns/champs-conditionnels.md +38 -0
  480. package/llms/references/documentation/patterns/champs-effacables.md +34 -0
  481. package/llms/references/documentation/patterns/conception-formulaire.md +144 -0
  482. package/llms/references/documentation/patterns/cycle-vie-ressource.md +36 -0
  483. package/llms/references/documentation/patterns/dialogs-confirmation.md +160 -0
  484. package/llms/references/documentation/patterns/donnee-logiciel.md +66 -0
  485. package/llms/references/documentation/patterns/emails.md +99 -0
  486. package/llms/references/documentation/patterns/etats-chargement.md +90 -0
  487. package/llms/references/documentation/patterns/feedback.md +111 -0
  488. package/llms/references/documentation/patterns/gestion-erreurs-formulaire.md +48 -0
  489. package/llms/references/documentation/patterns/identification-pages.md +224 -0
  490. package/llms/references/documentation/patterns/metadonnees.md +79 -0
  491. package/llms/references/documentation/patterns/modes-affichage.md +51 -0
  492. package/llms/references/documentation/patterns/navigation-mobile.md +222 -0
  493. package/llms/references/documentation/patterns/niveaux-navigation.md +207 -0
  494. package/llms/references/documentation/patterns/parcours-creation-ressource-sans-diffusion.md +184 -0
  495. package/llms/references/documentation/patterns/parcours-creation-ressource.md +184 -0
  496. package/llms/references/documentation/patterns/pattern-ia.md +128 -0
  497. package/llms/references/documentation/patterns/placeholders.md +68 -0
  498. package/llms/references/documentation/patterns/push-notification-mobile.md +46 -0
  499. package/llms/references/documentation/patterns/quitter-formulaire.md +27 -0
  500. package/llms/references/documentation/patterns/regles-or.md +93 -0
  501. package/llms/references/documentation/patterns/responsive-design.md +119 -0
  502. package/llms/references/documentation/patterns/selection-population.md +135 -0
  503. package/llms/references/documentation/patterns/structure-accordeon.md +42 -0
  504. package/llms/references/documentation/patterns/traduction-formulaire.md +136 -0
  505. package/llms/references/documentation/patterns/vues-filtres-navigation.md +86 -0
  506. package/llms/references/documentation/patterns/widgets.md +64 -0
  507. package/llms/references/documentation/tokens/arrondis.md +65 -0
  508. package/llms/references/documentation/tokens/couleurs.md +560 -0
  509. package/llms/references/documentation/tokens/design-tokens.md +47 -0
  510. package/llms/references/documentation/tokens/elevations.md +78 -0
  511. package/llms/references/documentation/tokens/espacements.md +22 -0
  512. package/llms/references/documentation/tokens/noms-de-logiciels.md +81 -0
  513. package/llms/references/documentation/tokens/typographie.md +261 -0
  514. package/llms/references/migrations.md +31 -0
  515. package/llms/references/tools/angular-api.md +407 -0
  516. package/llms/references/tools/animations.md +177 -0
  517. package/llms/references/tools/mixins.md +119 -0
  518. package/llms/references/tools/numbers.md +81 -0
  519. package/llms/references/tools/scrollbox.md +11 -0
  520. package/llms/references/tools/utilitaires.md +998 -0
  521. package/llms/references/types/BubbleIllustration.md +5 -0
  522. package/llms/references/types/DecorativePalette.md +5 -0
  523. package/llms/references/types/Gap.md +5 -0
  524. package/llms/references/types/HighlightDataIllustration.md +5 -0
  525. package/llms/references/types/HighlightSectionIllustration.md +5 -0
  526. package/llms/references/types/LuccaIcon.md +5 -0
  527. package/llms/references/types/MainLayoutIllustrationEndStart.md +5 -0
  528. package/llms/references/types/MainLayoutIllustrationStartEnd.md +5 -0
  529. package/llms.txt +230 -0
  530. package/package.json +4 -4
  531. package/schematics/color-text/index.js +0 -1
  532. package/types/lucca-front-ng-bubble-illustration.d.ts +6 -2
  533. package/types/lucca-front-ng-core-select.d.ts +5 -0
  534. package/types/lucca-front-ng-core.d.ts +6 -1
  535. package/types/lucca-front-ng-date.d.ts +4 -0
  536. package/types/lucca-front-ng-date2.d.ts +0 -1
  537. package/types/lucca-front-ng-department.d.ts +4 -2
  538. package/types/lucca-front-ng-dropdown.d.ts +2 -1
  539. package/types/lucca-front-ng-establishment.d.ts +3 -1
  540. package/types/lucca-front-ng-forms-phone-number-input.d.ts +1 -0
  541. package/types/lucca-front-ng-forms.d.ts +11 -1
  542. package/types/lucca-front-ng-highlight-section.d.ts +1 -1
  543. package/types/lucca-front-ng-input.d.ts +4 -2
  544. package/types/lucca-front-ng-mobile-push.d.ts +1 -0
  545. package/types/lucca-front-ng-option.d.ts +38 -17
  546. package/types/lucca-front-ng-plg-push.d.ts +1 -0
  547. package/types/lucca-front-ng-popover.d.ts +12 -0
  548. package/types/lucca-front-ng-select.d.ts +2 -1
  549. package/types/lucca-front-ng-sidepanel.d.ts +2 -1
  550. package/types/lucca-front-ng-simple-select.d.ts +1 -0
  551. package/types/lucca-front-ng-software-icon.d.ts +2 -2
  552. package/types/lucca-front-ng-time.d.ts +3 -2
  553. package/types/lucca-front-ng-user.d.ts +5 -3
@@ -9,10 +9,10 @@ class NewBadgeComponent {
9
9
  this.label = input.required(/* @ts-ignore */
10
10
  ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
11
11
  }
12
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: NewBadgeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
13
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.2.1", type: NewBadgeComponent, isStandalone: true, selector: "lu-new-badge", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null } }, host: { classAttribute: "newBadge" }, ngImport: i0, template: "{{ label() }}\n", styles: ["@layer components{.newBadge{--components-newBadge-color: var(--palettes-brand-0);--components-newBadge-backgroundColor: var(--palettes-brand-700);display:inline-flex;font:var(--pr-t-font-body-XS);font-weight:var(--pr-t-font-fontWeight-semibold);background-color:var(--components-newBadge-backgroundColor);color:var(--components-newBadge-color);padding-block:0;padding-inline:var(--pr-t-spacings-50);border-radius:var(--pr-t-border-radius-small)}}@layer mods{.newBadge.mod-inverted{--components-newBadge-color: var(--palettes-brand-700);--components-newBadge-backgroundColor: var(--palettes-brand-0)}}@layer base{lu-new-badge{display:inline-flex}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
12
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: NewBadgeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
13
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.2.3", type: NewBadgeComponent, isStandalone: true, selector: "lu-new-badge", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null } }, host: { classAttribute: "newBadge" }, ngImport: i0, template: "{{ label() }}\n", styles: ["@layer components{.newBadge{--components-newBadge-color: var(--palettes-brand-0);--components-newBadge-backgroundColor: var(--palettes-brand-700);display:inline-flex;font:var(--pr-t-font-body-XS);font-weight:var(--pr-t-font-fontWeight-semibold);background-color:var(--components-newBadge-backgroundColor);color:var(--components-newBadge-color);padding-block:0;padding-inline:var(--pr-t-spacings-50);border-radius:var(--pr-t-border-radius-small)}}@layer mods{.newBadge.mod-inverted{--components-newBadge-color: var(--palettes-brand-700);--components-newBadge-backgroundColor: var(--palettes-brand-0)}}@layer base{lu-new-badge{display:inline-flex}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
14
14
  }
15
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: NewBadgeComponent, decorators: [{
15
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: NewBadgeComponent, decorators: [{
16
16
  type: Component,
17
17
  args: [{ selector: 'lu-new-badge', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
18
18
  class: 'newBadge',
@@ -16,30 +16,39 @@ const SUFFIX_PREFIX_TYPES = ['percent', 'percentSign', 'currency', 'unit'];
16
16
  class NumberFormat {
17
17
  #focusIntlNumberFormat;
18
18
  #intlNumberFormat;
19
+ // Resolved by Intl, so it holds the currency default when no fraction digits are given
20
+ #maximumFractionDigits;
19
21
  constructor({ locale, min, max, ...options }) {
20
22
  this.locale = locale;
21
23
  this.min = min;
22
24
  this.max = max;
23
25
  this.options = this.#applyBoundariesToDigitOptions(options);
24
26
  this.#intlNumberFormat = new Intl.NumberFormat(this.locale, this.options);
27
+ // Intl leaves fraction digits out of resolvedOptions() when significant digits take precedence
28
+ this.#maximumFractionDigits = this.#intlNumberFormat.resolvedOptions().maximumFractionDigits ?? this.options.maximumFractionDigits ?? 2;
25
29
  this.#focusIntlNumberFormat = new Intl.NumberFormat(this.locale, {
26
30
  ...this.options,
27
31
  minimumFractionDigits: 0,
32
+ maximumFractionDigits: this.#maximumFractionDigits,
28
33
  });
29
34
  }
30
35
  #applyBoundariesToDigitOptions({ style, minimumFractionDigits, maximumFractionDigits, minimumIntegerDigits, minimumSignificantDigits, maximumSignificantDigits, ...options }) {
31
36
  style = style ?? 'decimal';
32
37
  if (style !== 'currency') {
38
+ // Significant digits take precedence over fraction digits in Intl: only default them when no fraction digit is given
39
+ const useSignificantDigits = (minimumFractionDigits === undefined && maximumFractionDigits === undefined) || minimumSignificantDigits !== undefined || maximumSignificantDigits !== undefined;
33
40
  // https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#minimumfractiondigits
34
41
  minimumFractionDigits = Math.min(Math.max(minimumFractionDigits ?? 0, 0), 20);
35
42
  // https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#maximumfractiondigits
36
43
  maximumFractionDigits = Math.min(Math.max(maximumFractionDigits ?? 2, minimumFractionDigits), 20);
37
- // https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#maximumfractiondigits
38
- minimumIntegerDigits = Math.min(Math.max(minimumFractionDigits ?? 1, 1), 21);
39
- // https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#minimumsignificantdigits
40
- minimumSignificantDigits = Math.min(Math.max(minimumSignificantDigits ?? 1, 1), 21);
41
- // https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#maximumsignificantdigits
42
- maximumSignificantDigits = Math.min(Math.max(maximumSignificantDigits ?? 21, minimumSignificantDigits), 21);
44
+ // https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#minimumintegerdigits
45
+ minimumIntegerDigits = Math.min(Math.max(minimumIntegerDigits ?? 1, 1), 21);
46
+ if (useSignificantDigits) {
47
+ // https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#minimumsignificantdigits
48
+ minimumSignificantDigits = Math.min(Math.max(minimumSignificantDigits ?? 1, 1), 21);
49
+ // https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#maximumsignificantdigits
50
+ maximumSignificantDigits = Math.min(Math.max(maximumSignificantDigits ?? 21, minimumSignificantDigits), 21);
51
+ }
43
52
  }
44
53
  return {
45
54
  ...options,
@@ -105,7 +114,7 @@ class NumberFormat {
105
114
  .slice(1)
106
115
  .join('')
107
116
  //ignore digits above maximumFractionDigits
108
- .slice(0, this.options.maximumFractionDigits ?? 2);
117
+ .slice(0, this.#maximumFractionDigits);
109
118
  const delimiter = parts.length > 1 ? '.' : '';
110
119
  const splittedInput = {
111
120
  minusSign,
@@ -190,10 +199,10 @@ class LuFormatNumberPipe {
190
199
  transform(value, options) {
191
200
  return new NumberFormat(options).format(value);
192
201
  }
193
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: LuFormatNumberPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
194
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "22.2.1", ngImport: i0, type: LuFormatNumberPipe, isStandalone: true, name: "luNumberFormat" }); }
202
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: LuFormatNumberPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
203
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "22.2.3", ngImport: i0, type: LuFormatNumberPipe, isStandalone: true, name: "luNumberFormat" }); }
195
204
  }
196
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: LuFormatNumberPipe, decorators: [{
205
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: LuFormatNumberPipe, decorators: [{
197
206
  type: Pipe,
198
207
  args: [{
199
208
  name: 'luNumberFormat',
@@ -253,8 +262,8 @@ class NumberFormatDirective {
253
262
  this.#value.set(parsedInput.value);
254
263
  this.onChange?.(parsedInput.value);
255
264
  }
256
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: NumberFormatDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
257
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.2.1", 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: [
265
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: NumberFormatDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
266
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.2.3", 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: [
258
267
  {
259
268
  provide: NG_VALUE_ACCESSOR,
260
269
  useExisting: forwardRef(() => NumberFormatDirective),
@@ -262,7 +271,7 @@ class NumberFormatDirective {
262
271
  },
263
272
  ], ngImport: i0 }); }
264
273
  }
265
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: NumberFormatDirective, decorators: [{
274
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: NumberFormatDirective, decorators: [{
266
275
  type: Directive,
267
276
  args: [{
268
277
  selector: 'input[luNumberFormatInput]',
@@ -1 +1 @@
1
- {"version":3,"file":"lucca-front-ng-number-format.mjs","sources":["../../../packages/ng/number-format/number-format.models.ts","../../../packages/ng/number-format/number-format.ts","../../../packages/ng/number-format/number-format.pipe.ts","../../../packages/ng/number-format/number-format.directive.ts","../../../packages/ng/number-format/lucca-front-ng-number-format.ts"],"sourcesContent":["export type NumberFormatStyle = 'decimal' | 'currency' | 'percent' | 'unit';\n\nexport type NumberFormatUnit =\n\t| 'acre'\n\t| 'bit'\n\t| 'byte'\n\t| 'celsius'\n\t| 'centimeter'\n\t| 'day'\n\t| 'degree'\n\t| 'fahrenheit'\n\t| 'fluid-ounce'\n\t| 'foot'\n\t| 'gallon'\n\t| 'gigabit'\n\t| 'gigabyte'\n\t| 'gram'\n\t| 'hectare'\n\t| 'hour'\n\t| 'inch'\n\t| 'kilobit'\n\t| 'kilobyte'\n\t| 'kilogram'\n\t| 'kilometer'\n\t| 'liter'\n\t| 'megabit'\n\t| 'megabyte'\n\t| 'meter'\n\t| 'microsecond'\n\t| 'mile'\n\t| 'mile-scandinavian'\n\t| 'milliliter'\n\t| 'millimeter'\n\t| 'millisecond'\n\t| 'minute'\n\t| 'month'\n\t| 'nanosecond'\n\t| 'ounce'\n\t| 'percent'\n\t| 'petabyte'\n\t| 'pound'\n\t| 'second'\n\t| 'stone'\n\t| 'terabit'\n\t| 'terabyte'\n\t| 'week'\n\t| 'yard'\n\t| 'year';\n\nexport type NumberFormatUnitDisplay = 'short' | 'narrow' | 'long';\n\nexport type NumberFormatCurrencyDisplay = 'code' | 'symbol' | 'narrowSymbol' | 'name';\n\nexport interface NumberFormatOptions {\n\tlocale: string;\n\tmin?: number | undefined;\n\tmax?: number | undefined;\n\tstyle: NumberFormatStyle;\n\tcurrency?: string | undefined;\n\tcurrencyDisplay?: NumberFormatCurrencyDisplay | undefined;\n\tunit?: NumberFormatUnit | undefined;\n\tunitDisplay?: NumberFormatUnitDisplay | undefined;\n\tuseGrouping?: boolean | undefined;\n\tminimumIntegerDigits?: number | undefined;\n\tminimumFractionDigits?: number | undefined;\n\tmaximumFractionDigits?: number | undefined;\n\tminimumSignificantDigits?: number | undefined;\n\tmaximumSignificantDigits?: number | undefined;\n}\n\nexport interface NumberFormatSplittedInput {\n\tminusSign: string;\n\tinteger: string;\n\tdelimiter: string;\n\tfraction: string;\n}\n\nexport interface NumberFormatParsedInput {\n\tsplittedInput: NumberFormatSplittedInput;\n\tcleanInput: string;\n\tvalue: number | null;\n}\n\nexport function joinSplittedInput({ minusSign, integer, delimiter, fraction }: NumberFormatSplittedInput): string {\n\treturn `${minusSign}${integer}${delimiter}${fraction}`;\n}\n\nexport function canCastSplittedInputToNumber({ integer, fraction }: NumberFormatSplittedInput): boolean {\n\treturn integer !== '' || fraction !== '';\n}\n","import { isNil } from '@lucca-front/ng/core';\nimport { canCastSplittedInputToNumber, joinSplittedInput, NumberFormatOptions, NumberFormatParsedInput, NumberFormatSplittedInput } from './number-format.models';\n\nconst VALUE_TYPES: Intl.NumberFormatPartTypes[] = ['integer', 'decimal', 'fraction', 'group', 'minusSign'];\n\nconst DIGIT_TYPES: Intl.NumberFormatPartTypes[] = ['integer', 'decimal', 'fraction'];\n\nconst SUFFIX_PREFIX_TYPES: Intl.NumberFormatPartTypes[] = ['percent', 'percentSign', 'currency', 'unit'];\n\nexport class NumberFormat {\n\treadonly locale: string;\n\treadonly min: number | undefined;\n\treadonly max: number | undefined;\n\treadonly options: Intl.NumberFormatOptions;\n\treadonly #focusIntlNumberFormat: Intl.NumberFormat;\n\treadonly #intlNumberFormat: Intl.NumberFormat;\n\n\tconstructor({ locale, min, max, ...options }: NumberFormatOptions) {\n\t\tthis.locale = locale;\n\t\tthis.min = min;\n\t\tthis.max = max;\n\t\tthis.options = this.#applyBoundariesToDigitOptions(options);\n\t\tthis.#intlNumberFormat = new Intl.NumberFormat(this.locale, this.options);\n\t\tthis.#focusIntlNumberFormat = new Intl.NumberFormat(this.locale, {\n\t\t\t...this.options,\n\t\t\tminimumFractionDigits: 0,\n\t\t});\n\t}\n\n\t#applyBoundariesToDigitOptions({\n\t\tstyle,\n\t\tminimumFractionDigits,\n\t\tmaximumFractionDigits,\n\t\tminimumIntegerDigits,\n\t\tminimumSignificantDigits,\n\t\tmaximumSignificantDigits,\n\t\t...options\n\t}: Intl.NumberFormatOptions): Intl.NumberFormatOptions {\n\t\tstyle = style ?? 'decimal';\n\t\tif (style !== 'currency') {\n\t\t\t// https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#minimumfractiondigits\n\t\t\tminimumFractionDigits = Math.min(Math.max(minimumFractionDigits ?? 0, 0), 20);\n\t\t\t// https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#maximumfractiondigits\n\t\t\tmaximumFractionDigits = Math.min(Math.max(maximumFractionDigits ?? 2, minimumFractionDigits), 20);\n\t\t\t// https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#maximumfractiondigits\n\t\t\tminimumIntegerDigits = Math.min(Math.max(minimumFractionDigits ?? 1, 1), 21);\n\t\t\t// https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#minimumsignificantdigits\n\t\t\tminimumSignificantDigits = Math.min(Math.max(minimumSignificantDigits ?? 1, 1), 21);\n\t\t\t// https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#maximumsignificantdigits\n\t\t\tmaximumSignificantDigits = Math.min(Math.max(maximumSignificantDigits ?? 21, minimumSignificantDigits), 21);\n\t\t}\n\t\treturn {\n\t\t\t...options,\n\t\t\tstyle,\n\t\t\tminimumFractionDigits,\n\t\t\tmaximumFractionDigits,\n\t\t\tminimumIntegerDigits,\n\t\t\tminimumSignificantDigits,\n\t\t\tmaximumSignificantDigits,\n\t\t};\n\t}\n\n\tgetSuffix(value: number | null): string | null {\n\t\tvalue = value ?? 1;\n\n\t\t// Parts after digits are suffix\n\t\tconst parts = this.#intlNumberFormat.formatToParts(value).reverse();\n\t\tconst indexOfFirstDigit = parts.findIndex((p) => DIGIT_TYPES.includes(p.type));\n\t\tconst indexOfFirstSuffix = parts.findIndex((p) => SUFFIX_PREFIX_TYPES.includes(p.type));\n\t\tif (indexOfFirstSuffix >= 0 && indexOfFirstSuffix < indexOfFirstDigit) {\n\t\t\treturn parts[indexOfFirstSuffix].value;\n\t\t}\n\t\treturn null;\n\t}\n\n\tgetPrefix(value: number | null): string | null {\n\t\tvalue = value ?? 1;\n\n\t\t// Parts before digits are prefix\n\t\tconst parts = this.#intlNumberFormat.formatToParts(value);\n\t\tconst indexOfLastDigit = parts.findIndex((p) => DIGIT_TYPES.includes(p.type));\n\t\tconst indexOfLastSuffix = parts.findIndex((p) => SUFFIX_PREFIX_TYPES.includes(p.type));\n\t\tif (indexOfLastSuffix >= 0 && indexOfLastSuffix < indexOfLastDigit) {\n\t\t\treturn parts[indexOfLastSuffix].value;\n\t\t}\n\t\treturn null;\n\t}\n\n\tapplyRange(value: number | null | undefined): number | null {\n\t\tif (isNil(value)) {\n\t\t\treturn null;\n\t\t}\n\t\tif (this.min !== undefined) {\n\t\t\tvalue = Math.max(this.min, value);\n\t\t}\n\t\tif (this.max !== undefined) {\n\t\t\tvalue = Math.min(this.max, value);\n\t\t}\n\t\treturn value;\n\t}\n\n\t#parseAndSplitInput(input: string): NumberFormatSplittedInput {\n\t\tlet minusSign = /^-/g.exec(input)?.[0] ?? '';\n\t\t// if minus sign has been input but range only allows positive values, remove it\n\t\tif (this.min !== undefined && this.min >= 0) {\n\t\t\tminusSign = '';\n\t\t}\n\n\t\t// Add minus sign by default if range only allows negative values\n\t\tif (this.max !== undefined && this.max < 0) {\n\t\t\tminusSign = '-';\n\t\t}\n\n\t\t// Keep only digits and decimal delimiter\n\t\tinput = input.replace(/[^.,0-9]/g, '');\n\n\t\t// Replace decimal delimiter ',' by '.' before casting string to number\n\t\tinput = input.replace(/,/g, '.');\n\n\t\tconst parts = input.split('.');\n\t\tconst integer = parts[0];\n\t\tconst fraction = parts\n\t\t\t.slice(1)\n\t\t\t.join('')\n\t\t\t//ignore digits above maximumFractionDigits\n\t\t\t.slice(0, this.options.maximumFractionDigits ?? 2);\n\t\tconst delimiter = parts.length > 1 ? '.' : '';\n\n\t\tconst splittedInput: NumberFormatSplittedInput = {\n\t\t\tminusSign,\n\t\t\tinteger,\n\t\t\tdelimiter,\n\t\t\tfraction,\n\t\t};\n\n\t\t// cast input in number only if it has integer or fraction\n\t\tif (canCastSplittedInputToNumber(splittedInput)) {\n\t\t\tlet value = +joinSplittedInput(splittedInput);\n\t\t\tif (this.options.style === 'percent') {\n\t\t\t\tvalue /= 100;\n\t\t\t\tvalue = this.options.maximumFractionDigits ? +value.toFixed(this.options.maximumFractionDigits + 2) : value;\n\t\t\t}\n\n\t\t\t// if value is not in range, fix it and split again !\n\t\t\tconst valueInRange = this.applyRange(value);\n\t\t\tif (value !== valueInRange) {\n\t\t\t\treturn this.#parseAndSplitInput(this.getFocusFormat(valueInRange));\n\t\t\t}\n\t\t}\n\t\treturn splittedInput;\n\t}\n\n\tparse(input: string): NumberFormatParsedInput {\n\t\tconst splittedInput = this.#parseAndSplitInput(input);\n\t\tconst cleanInput = joinSplittedInput(splittedInput);\n\t\tlet value: number | null = null;\n\n\t\tif (canCastSplittedInputToNumber(splittedInput)) {\n\t\t\tvalue = +joinSplittedInput(splittedInput);\n\t\t\tif (this.options.style === 'percent') {\n\t\t\t\tvalue /= 100;\n\t\t\t\tvalue = this.options.maximumFractionDigits ? +value.toFixed(this.options.maximumFractionDigits + 2) : value;\n\t\t\t}\n\t\t}\n\t\treturn {\n\t\t\tsplittedInput,\n\t\t\tcleanInput,\n\t\t\tvalue,\n\t\t};\n\t}\n\n\tformat(value: number | null): string {\n\t\tif (value === null) {\n\t\t\treturn '';\n\t\t}\n\t\treturn this.#intlNumberFormat.format(value);\n\t}\n\n\tgetFocusFormat(value: number | undefined | null): string {\n\t\tif (isNil(value) || isNaN(value)) {\n\t\t\t// Add minus sign by default if range only allows negative values\n\t\t\treturn this.max !== undefined && this.max < 0 ? '-' : '';\n\t\t}\n\t\tconst parts = this.#focusIntlNumberFormat.formatToParts(value);\n\t\tconst minusSign = parts.find((p) => p.type === 'minusSign')?.value ?? '';\n\t\tconst integerPart = parts\n\t\t\t.filter((p) => p.type === 'integer')\n\t\t\t.map((p) => p.value)\n\t\t\t.join('');\n\t\tconst decimal = parts.find((p) => p.type === 'decimal') ? '.' : '';\n\t\tconst fractionPart = parts\n\t\t\t.filter((p) => p.type === 'fraction')\n\t\t\t.map((p) => p.value)\n\t\t\t.join('');\n\n\t\treturn `${minusSign}${integerPart}${decimal}${fractionPart}`;\n\t}\n\n\tgetBlurFormat(value: number | undefined | null): string {\n\t\tif (isNil(value)) {\n\t\t\treturn '';\n\t\t}\n\t\treturn this.#intlNumberFormat\n\t\t\t.formatToParts(value)\n\t\t\t.filter((p) => VALUE_TYPES.includes(p.type))\n\t\t\t.map((p) => {\n\t\t\t\tif (p.type === 'minusSign') {\n\t\t\t\t\treturn '−';\n\t\t\t\t}\n\t\t\t\treturn p.value;\n\t\t\t})\n\t\t\t.join('');\n\t}\n}\n","import { Pipe, PipeTransform } from '@angular/core';\nimport { NumberFormat } from './number-format';\nimport { NumberFormatOptions } from './number-format.models';\n\n@Pipe({\n\tname: 'luNumberFormat',\n})\nexport class LuFormatNumberPipe implements PipeTransform {\n\ttransform(value: number, options: NumberFormatOptions) {\n\t\treturn new NumberFormat(options).format(value);\n\t}\n}\n","// Based on Intl number input\n// (more info: https://dm4t2.github.io/)\n\nimport { computed, Directive, ElementRef, forwardRef, inject, input, Renderer2, signal } from '@angular/core';\nimport type { ControlValueAccessor } from '@angular/forms';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { NumberFormat } from './number-format';\nimport { NumberFormatOptions } from './number-format.models';\n\n@Directive({\n\tselector: 'input[luNumberFormatInput]',\n\thost: {\n\t\t'(focus)': 'focus()',\n\t\t'(blur)': 'lostFocus()',\n\t\t'(input)': 'input()',\n\t},\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: forwardRef(() => NumberFormatDirective),\n\t\t\tmulti: true,\n\t\t},\n\t],\n})\nexport class NumberFormatDirective implements ControlValueAccessor {\n\treadonly #inputElement = inject<ElementRef<HTMLInputElement>>(ElementRef<HTMLInputElement>).nativeElement;\n\treadonly #renderer = inject(Renderer2);\n\n\treadonly #value = signal<number | undefined | null>(null);\n\treadonly #isFocused = signal<boolean>(false);\n\n\treadonly formatOptions = input.required<NumberFormatOptions>();\n\treadonly #numberFormat = computed(() => {\n\t\treturn new NumberFormat(this.formatOptions());\n\t});\n\n\tonChange: (_value: number | undefined | null) => void = () => {};\n\n\tonTouched: () => void = (): void => {};\n\n\twriteValue(value: number | undefined | null): void {\n\t\tvalue = this.#numberFormat().applyRange(value);\n\t\tthis.#value.set(value);\n\t\tthis.#inputElement.value = this.#isFocused() ? this.#numberFormat().getFocusFormat(value) : this.#numberFormat().getBlurFormat(value);\n\t}\n\n\tregisterOnChange(fn: (_value: number | undefined | null) => void): void {\n\t\tthis.onChange = fn;\n\t}\n\n\tregisterOnTouched(fn: () => void): void {\n\t\tthis.onTouched = fn;\n\t}\n\n\tsetDisabledState(isDisabled: boolean): void {\n\t\tthis.#renderer.setProperty(this.#inputElement, 'disabled', isDisabled);\n\t}\n\tfocus(): void {\n\t\tthis.#isFocused.set(true);\n\t\tthis.#inputElement.value = this.#numberFormat().getFocusFormat(this.#value());\n\t}\n\n\tlostFocus(): void {\n\t\tthis.#isFocused.set(false);\n\t\tthis.#inputElement.value = this.#numberFormat().getBlurFormat(this.#value());\n\t\tthis.onTouched();\n\t}\n\n\tinput(): void {\n\t\tconst parsedInput = this.#numberFormat().parse(this.#inputElement.value);\n\n\t\tthis.#inputElement.value = parsedInput.cleanInput;\n\n\t\tthis.#value.set(parsedInput.value);\n\n\t\tthis.onChange?.(parsedInput.value);\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAmFM,SAAU,iBAAiB,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAA6B,EAAA;IACvG,OAAO,CAAA,EAAG,SAAS,CAAA,EAAG,OAAO,GAAG,SAAS,CAAA,EAAG,QAAQ,CAAA,CAAE;AACvD;SAEgB,4BAA4B,CAAC,EAAE,OAAO,EAAE,QAAQ,EAA6B,EAAA;AAC5F,IAAA,OAAO,OAAO,KAAK,EAAE,IAAI,QAAQ,KAAK,EAAE;AACzC;;ACtFA,MAAM,WAAW,GAAiC,CAAC,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,WAAW,CAAC;AAE1G,MAAM,WAAW,GAAiC,CAAC,SAAS,EAAE,SAAS,EAAE,UAAU,CAAC;AAEpF,MAAM,mBAAmB,GAAiC,CAAC,SAAS,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,CAAC;MAE3F,YAAY,CAAA;AAKf,IAAA,sBAAsB;AACtB,IAAA,iBAAiB;IAE1B,WAAA,CAAY,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,OAAO,EAAuB,EAAA;AAChE,QAAA,IAAI,CAAC,MAAM,GAAG,MAAM;AACpB,QAAA,IAAI,CAAC,GAAG,GAAG,GAAG;AACd,QAAA,IAAI,CAAC,GAAG,GAAG,GAAG;QACd,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,8BAA8B,CAAC,OAAO,CAAC;AAC3D,QAAA,IAAI,CAAC,iBAAiB,GAAG,IAAI,IAAI,CAAC,YAAY,CAAC,IAAI,CAA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AAO,EAAE,iBAAiB;AAC1B,gBAAA,WAAW,EAAE,UAAU,CAAC,MAAM,qBAAqB,CAAC;AACpD,gBAAA,KAAK,EAAE,IAAI;AACX,aAAA;AACD,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAEW,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAfjC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,4BAA4B;AACtC,oBAAA,IAAI,EAAE;AACL,wBAAA,SAAS,EAAE,SAAS;AACpB,wBAAA,QAAQ,EAAE,aAAa;AACvB,wBAAA,SAAS,EAAE,SAAS;AACpB,qBAAA;AACD,oBAAA,SAAS,EAAE;AACV,wBAAA;AACC,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAE,UAAU,CAAC,2BAA2B,CAAC;AACpD,4BAAA,KAAK,EAAE,IAAI;AACX,yBAAA;AACD,qBAAA;AACD,iBAAA;;;ACvBD;;AAEG;;"}
1
+ {"version":3,"file":"lucca-front-ng-number-format.mjs","sources":["../../../packages/ng/number-format/number-format.models.ts","../../../packages/ng/number-format/number-format.ts","../../../packages/ng/number-format/number-format.pipe.ts","../../../packages/ng/number-format/number-format.directive.ts","../../../packages/ng/number-format/lucca-front-ng-number-format.ts"],"sourcesContent":["export type NumberFormatStyle = 'decimal' | 'currency' | 'percent' | 'unit';\n\nexport type NumberFormatUnit =\n\t| 'acre'\n\t| 'bit'\n\t| 'byte'\n\t| 'celsius'\n\t| 'centimeter'\n\t| 'day'\n\t| 'degree'\n\t| 'fahrenheit'\n\t| 'fluid-ounce'\n\t| 'foot'\n\t| 'gallon'\n\t| 'gigabit'\n\t| 'gigabyte'\n\t| 'gram'\n\t| 'hectare'\n\t| 'hour'\n\t| 'inch'\n\t| 'kilobit'\n\t| 'kilobyte'\n\t| 'kilogram'\n\t| 'kilometer'\n\t| 'liter'\n\t| 'megabit'\n\t| 'megabyte'\n\t| 'meter'\n\t| 'microsecond'\n\t| 'mile'\n\t| 'mile-scandinavian'\n\t| 'milliliter'\n\t| 'millimeter'\n\t| 'millisecond'\n\t| 'minute'\n\t| 'month'\n\t| 'nanosecond'\n\t| 'ounce'\n\t| 'percent'\n\t| 'petabyte'\n\t| 'pound'\n\t| 'second'\n\t| 'stone'\n\t| 'terabit'\n\t| 'terabyte'\n\t| 'week'\n\t| 'yard'\n\t| 'year';\n\nexport type NumberFormatUnitDisplay = 'short' | 'narrow' | 'long';\n\nexport type NumberFormatCurrencyDisplay = 'code' | 'symbol' | 'narrowSymbol' | 'name';\n\nexport interface NumberFormatOptions {\n\tlocale: string;\n\tmin?: number | undefined;\n\tmax?: number | undefined;\n\tstyle: NumberFormatStyle;\n\tcurrency?: string | undefined;\n\tcurrencyDisplay?: NumberFormatCurrencyDisplay | undefined;\n\tunit?: NumberFormatUnit | undefined;\n\tunitDisplay?: NumberFormatUnitDisplay | undefined;\n\tuseGrouping?: boolean | undefined;\n\tminimumIntegerDigits?: number | undefined;\n\tminimumFractionDigits?: number | undefined;\n\tmaximumFractionDigits?: number | undefined;\n\tminimumSignificantDigits?: number | undefined;\n\tmaximumSignificantDigits?: number | undefined;\n}\n\nexport interface NumberFormatSplittedInput {\n\tminusSign: string;\n\tinteger: string;\n\tdelimiter: string;\n\tfraction: string;\n}\n\nexport interface NumberFormatParsedInput {\n\tsplittedInput: NumberFormatSplittedInput;\n\tcleanInput: string;\n\tvalue: number | null;\n}\n\nexport function joinSplittedInput({ minusSign, integer, delimiter, fraction }: NumberFormatSplittedInput): string {\n\treturn `${minusSign}${integer}${delimiter}${fraction}`;\n}\n\nexport function canCastSplittedInputToNumber({ integer, fraction }: NumberFormatSplittedInput): boolean {\n\treturn integer !== '' || fraction !== '';\n}\n","import { isNil } from '@lucca-front/ng/core';\nimport { canCastSplittedInputToNumber, joinSplittedInput, NumberFormatOptions, NumberFormatParsedInput, NumberFormatSplittedInput } from './number-format.models';\n\nconst VALUE_TYPES: Intl.NumberFormatPartTypes[] = ['integer', 'decimal', 'fraction', 'group', 'minusSign'];\n\nconst DIGIT_TYPES: Intl.NumberFormatPartTypes[] = ['integer', 'decimal', 'fraction'];\n\nconst SUFFIX_PREFIX_TYPES: Intl.NumberFormatPartTypes[] = ['percent', 'percentSign', 'currency', 'unit'];\n\nexport class NumberFormat {\n\treadonly locale: string;\n\treadonly min: number | undefined;\n\treadonly max: number | undefined;\n\treadonly options: Intl.NumberFormatOptions;\n\treadonly #focusIntlNumberFormat: Intl.NumberFormat;\n\treadonly #intlNumberFormat: Intl.NumberFormat;\n\t// Resolved by Intl, so it holds the currency default when no fraction digits are given\n\treadonly #maximumFractionDigits: number;\n\n\tconstructor({ locale, min, max, ...options }: NumberFormatOptions) {\n\t\tthis.locale = locale;\n\t\tthis.min = min;\n\t\tthis.max = max;\n\t\tthis.options = this.#applyBoundariesToDigitOptions(options);\n\t\tthis.#intlNumberFormat = new Intl.NumberFormat(this.locale, this.options);\n\t\t// Intl leaves fraction digits out of resolvedOptions() when significant digits take precedence\n\t\tthis.#maximumFractionDigits = this.#intlNumberFormat.resolvedOptions().maximumFractionDigits ?? this.options.maximumFractionDigits ?? 2;\n\t\tthis.#focusIntlNumberFormat = new Intl.NumberFormat(this.locale, {\n\t\t\t...this.options,\n\t\t\tminimumFractionDigits: 0,\n\t\t\tmaximumFractionDigits: this.#maximumFractionDigits,\n\t\t});\n\t}\n\n\t#applyBoundariesToDigitOptions({\n\t\tstyle,\n\t\tminimumFractionDigits,\n\t\tmaximumFractionDigits,\n\t\tminimumIntegerDigits,\n\t\tminimumSignificantDigits,\n\t\tmaximumSignificantDigits,\n\t\t...options\n\t}: Intl.NumberFormatOptions): Intl.NumberFormatOptions {\n\t\tstyle = style ?? 'decimal';\n\t\tif (style !== 'currency') {\n\t\t\t// Significant digits take precedence over fraction digits in Intl: only default them when no fraction digit is given\n\t\t\tconst useSignificantDigits = (minimumFractionDigits === undefined && maximumFractionDigits === undefined) || minimumSignificantDigits !== undefined || maximumSignificantDigits !== undefined;\n\t\t\t// https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#minimumfractiondigits\n\t\t\tminimumFractionDigits = Math.min(Math.max(minimumFractionDigits ?? 0, 0), 20);\n\t\t\t// https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#maximumfractiondigits\n\t\t\tmaximumFractionDigits = Math.min(Math.max(maximumFractionDigits ?? 2, minimumFractionDigits), 20);\n\t\t\t// https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#minimumintegerdigits\n\t\t\tminimumIntegerDigits = Math.min(Math.max(minimumIntegerDigits ?? 1, 1), 21);\n\t\t\tif (useSignificantDigits) {\n\t\t\t\t// https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#minimumsignificantdigits\n\t\t\t\tminimumSignificantDigits = Math.min(Math.max(minimumSignificantDigits ?? 1, 1), 21);\n\t\t\t\t// https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#maximumsignificantdigits\n\t\t\t\tmaximumSignificantDigits = Math.min(Math.max(maximumSignificantDigits ?? 21, minimumSignificantDigits), 21);\n\t\t\t}\n\t\t}\n\t\treturn {\n\t\t\t...options,\n\t\t\tstyle,\n\t\t\tminimumFractionDigits,\n\t\t\tmaximumFractionDigits,\n\t\t\tminimumIntegerDigits,\n\t\t\tminimumSignificantDigits,\n\t\t\tmaximumSignificantDigits,\n\t\t};\n\t}\n\n\tgetSuffix(value: number | null): string | null {\n\t\tvalue = value ?? 1;\n\n\t\t// Parts after digits are suffix\n\t\tconst parts = this.#intlNumberFormat.formatToParts(value).reverse();\n\t\tconst indexOfFirstDigit = parts.findIndex((p) => DIGIT_TYPES.includes(p.type));\n\t\tconst indexOfFirstSuffix = parts.findIndex((p) => SUFFIX_PREFIX_TYPES.includes(p.type));\n\t\tif (indexOfFirstSuffix >= 0 && indexOfFirstSuffix < indexOfFirstDigit) {\n\t\t\treturn parts[indexOfFirstSuffix].value;\n\t\t}\n\t\treturn null;\n\t}\n\n\tgetPrefix(value: number | null): string | null {\n\t\tvalue = value ?? 1;\n\n\t\t// Parts before digits are prefix\n\t\tconst parts = this.#intlNumberFormat.formatToParts(value);\n\t\tconst indexOfLastDigit = parts.findIndex((p) => DIGIT_TYPES.includes(p.type));\n\t\tconst indexOfLastSuffix = parts.findIndex((p) => SUFFIX_PREFIX_TYPES.includes(p.type));\n\t\tif (indexOfLastSuffix >= 0 && indexOfLastSuffix < indexOfLastDigit) {\n\t\t\treturn parts[indexOfLastSuffix].value;\n\t\t}\n\t\treturn null;\n\t}\n\n\tapplyRange(value: number | null | undefined): number | null {\n\t\tif (isNil(value)) {\n\t\t\treturn null;\n\t\t}\n\t\tif (this.min !== undefined) {\n\t\t\tvalue = Math.max(this.min, value);\n\t\t}\n\t\tif (this.max !== undefined) {\n\t\t\tvalue = Math.min(this.max, value);\n\t\t}\n\t\treturn value;\n\t}\n\n\t#parseAndSplitInput(input: string): NumberFormatSplittedInput {\n\t\tlet minusSign = /^-/g.exec(input)?.[0] ?? '';\n\t\t// if minus sign has been input but range only allows positive values, remove it\n\t\tif (this.min !== undefined && this.min >= 0) {\n\t\t\tminusSign = '';\n\t\t}\n\n\t\t// Add minus sign by default if range only allows negative values\n\t\tif (this.max !== undefined && this.max < 0) {\n\t\t\tminusSign = '-';\n\t\t}\n\n\t\t// Keep only digits and decimal delimiter\n\t\tinput = input.replace(/[^.,0-9]/g, '');\n\n\t\t// Replace decimal delimiter ',' by '.' before casting string to number\n\t\tinput = input.replace(/,/g, '.');\n\n\t\tconst parts = input.split('.');\n\t\tconst integer = parts[0];\n\t\tconst fraction = parts\n\t\t\t.slice(1)\n\t\t\t.join('')\n\t\t\t//ignore digits above maximumFractionDigits\n\t\t\t.slice(0, this.#maximumFractionDigits);\n\t\tconst delimiter = parts.length > 1 ? '.' : '';\n\n\t\tconst splittedInput: NumberFormatSplittedInput = {\n\t\t\tminusSign,\n\t\t\tinteger,\n\t\t\tdelimiter,\n\t\t\tfraction,\n\t\t};\n\n\t\t// cast input in number only if it has integer or fraction\n\t\tif (canCastSplittedInputToNumber(splittedInput)) {\n\t\t\tlet value = +joinSplittedInput(splittedInput);\n\t\t\tif (this.options.style === 'percent') {\n\t\t\t\tvalue /= 100;\n\t\t\t\tvalue = this.options.maximumFractionDigits ? +value.toFixed(this.options.maximumFractionDigits + 2) : value;\n\t\t\t}\n\n\t\t\t// if value is not in range, fix it and split again !\n\t\t\tconst valueInRange = this.applyRange(value);\n\t\t\tif (value !== valueInRange) {\n\t\t\t\treturn this.#parseAndSplitInput(this.getFocusFormat(valueInRange));\n\t\t\t}\n\t\t}\n\t\treturn splittedInput;\n\t}\n\n\tparse(input: string): NumberFormatParsedInput {\n\t\tconst splittedInput = this.#parseAndSplitInput(input);\n\t\tconst cleanInput = joinSplittedInput(splittedInput);\n\t\tlet value: number | null = null;\n\n\t\tif (canCastSplittedInputToNumber(splittedInput)) {\n\t\t\tvalue = +joinSplittedInput(splittedInput);\n\t\t\tif (this.options.style === 'percent') {\n\t\t\t\tvalue /= 100;\n\t\t\t\tvalue = this.options.maximumFractionDigits ? +value.toFixed(this.options.maximumFractionDigits + 2) : value;\n\t\t\t}\n\t\t}\n\t\treturn {\n\t\t\tsplittedInput,\n\t\t\tcleanInput,\n\t\t\tvalue,\n\t\t};\n\t}\n\n\tformat(value: number | null): string {\n\t\tif (value === null) {\n\t\t\treturn '';\n\t\t}\n\t\treturn this.#intlNumberFormat.format(value);\n\t}\n\n\tgetFocusFormat(value: number | undefined | null): string {\n\t\tif (isNil(value) || isNaN(value)) {\n\t\t\t// Add minus sign by default if range only allows negative values\n\t\t\treturn this.max !== undefined && this.max < 0 ? '-' : '';\n\t\t}\n\t\tconst parts = this.#focusIntlNumberFormat.formatToParts(value);\n\t\tconst minusSign = parts.find((p) => p.type === 'minusSign')?.value ?? '';\n\t\tconst integerPart = parts\n\t\t\t.filter((p) => p.type === 'integer')\n\t\t\t.map((p) => p.value)\n\t\t\t.join('');\n\t\tconst decimal = parts.find((p) => p.type === 'decimal') ? '.' : '';\n\t\tconst fractionPart = parts\n\t\t\t.filter((p) => p.type === 'fraction')\n\t\t\t.map((p) => p.value)\n\t\t\t.join('');\n\n\t\treturn `${minusSign}${integerPart}${decimal}${fractionPart}`;\n\t}\n\n\tgetBlurFormat(value: number | undefined | null): string {\n\t\tif (isNil(value)) {\n\t\t\treturn '';\n\t\t}\n\t\treturn this.#intlNumberFormat\n\t\t\t.formatToParts(value)\n\t\t\t.filter((p) => VALUE_TYPES.includes(p.type))\n\t\t\t.map((p) => {\n\t\t\t\tif (p.type === 'minusSign') {\n\t\t\t\t\treturn '−';\n\t\t\t\t}\n\t\t\t\treturn p.value;\n\t\t\t})\n\t\t\t.join('');\n\t}\n}\n","import { Pipe, PipeTransform } from '@angular/core';\nimport { NumberFormat } from './number-format';\nimport { NumberFormatOptions } from './number-format.models';\n\n@Pipe({\n\tname: 'luNumberFormat',\n})\nexport class LuFormatNumberPipe implements PipeTransform {\n\ttransform(value: number, options: NumberFormatOptions) {\n\t\treturn new NumberFormat(options).format(value);\n\t}\n}\n","// Based on Intl number input\n// (more info: https://dm4t2.github.io/)\n\nimport { computed, Directive, ElementRef, forwardRef, inject, input, Renderer2, signal } from '@angular/core';\nimport type { ControlValueAccessor } from '@angular/forms';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { NumberFormat } from './number-format';\nimport { NumberFormatOptions } from './number-format.models';\n\n@Directive({\n\tselector: 'input[luNumberFormatInput]',\n\thost: {\n\t\t'(focus)': 'focus()',\n\t\t'(blur)': 'lostFocus()',\n\t\t'(input)': 'input()',\n\t},\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: forwardRef(() => NumberFormatDirective),\n\t\t\tmulti: true,\n\t\t},\n\t],\n})\nexport class NumberFormatDirective implements ControlValueAccessor {\n\treadonly #inputElement = inject<ElementRef<HTMLInputElement>>(ElementRef<HTMLInputElement>).nativeElement;\n\treadonly #renderer = inject(Renderer2);\n\n\treadonly #value = signal<number | undefined | null>(null);\n\treadonly #isFocused = signal<boolean>(false);\n\n\treadonly formatOptions = input.required<NumberFormatOptions>();\n\treadonly #numberFormat = computed(() => {\n\t\treturn new NumberFormat(this.formatOptions());\n\t});\n\n\tonChange: (_value: number | undefined | null) => void = () => {};\n\n\tonTouched: () => void = (): void => {};\n\n\twriteValue(value: number | undefined | null): void {\n\t\tvalue = this.#numberFormat().applyRange(value);\n\t\tthis.#value.set(value);\n\t\tthis.#inputElement.value = this.#isFocused() ? this.#numberFormat().getFocusFormat(value) : this.#numberFormat().getBlurFormat(value);\n\t}\n\n\tregisterOnChange(fn: (_value: number | undefined | null) => void): void {\n\t\tthis.onChange = fn;\n\t}\n\n\tregisterOnTouched(fn: () => void): void {\n\t\tthis.onTouched = fn;\n\t}\n\n\tsetDisabledState(isDisabled: boolean): void {\n\t\tthis.#renderer.setProperty(this.#inputElement, 'disabled', isDisabled);\n\t}\n\tfocus(): void {\n\t\tthis.#isFocused.set(true);\n\t\tthis.#inputElement.value = this.#numberFormat().getFocusFormat(this.#value());\n\t}\n\n\tlostFocus(): void {\n\t\tthis.#isFocused.set(false);\n\t\tthis.#inputElement.value = this.#numberFormat().getBlurFormat(this.#value());\n\t\tthis.onTouched();\n\t}\n\n\tinput(): void {\n\t\tconst parsedInput = this.#numberFormat().parse(this.#inputElement.value);\n\n\t\tthis.#inputElement.value = parsedInput.cleanInput;\n\n\t\tthis.#value.set(parsedInput.value);\n\n\t\tthis.onChange?.(parsedInput.value);\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAmFM,SAAU,iBAAiB,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EA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AAA,EARtB;AACV,YAAA;AACC,gBAAA,OAAO,EAAE,iBAAiB;AAC1B,gBAAA,WAAW,EAAE,UAAU,CAAC,MAAM,qBAAqB,CAAC;AACpD,gBAAA,KAAK,EAAE,IAAI;AACX,aAAA;AACD,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAEW,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAfjC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,4BAA4B;AACtC,oBAAA,IAAI,EAAE;AACL,wBAAA,SAAS,EAAE,SAAS;AACpB,wBAAA,QAAQ,EAAE,aAAa;AACvB,wBAAA,SAAS,EAAE,SAAS;AACpB,qBAAA;AACD,oBAAA,SAAS,EAAE;AACV,wBAAA;AACC,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAE,UAAU,CAAC,2BAA2B,CAAC;AACpD,4BAAA,KAAK,EAAE,IAAI;AACX,yBAAA;AACD,qBAAA;AACD,iBAAA;;;ACvBD;;AAEG;;"}
@@ -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: "22.2.1", ngImport: i0, type: LuNumberPipe, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Pipe }); }
23
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "22.2.1", ngImport: i0, type: LuNumberPipe, isStandalone: true, name: "luNumber" }); }
22
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: LuNumberPipe, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Pipe }); }
23
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "22.2.3", ngImport: i0, type: LuNumberPipe, isStandalone: true, name: "luNumber" }); }
24
24
  }
25
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: LuNumberPipe, decorators: [{
25
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", 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: "22.2.1", ngImpor
37
37
  * @deprecated use `LuNumberPipe` instead
38
38
  */
39
39
  class LuNumberModule {
40
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: LuNumberModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
41
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.1", ngImport: i0, type: LuNumberModule, imports: [LuNumberPipe], exports: [LuNumberPipe] }); }
42
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: LuNumberModule }); }
40
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: LuNumberModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
41
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.3", ngImport: i0, type: LuNumberModule, imports: [LuNumberPipe], exports: [LuNumberPipe] }); }
42
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: LuNumberModule }); }
43
43
  }
44
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: LuNumberModule, decorators: [{
44
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: LuNumberModule, decorators: [{
45
45
  type: NgModule,
46
46
  args: [{
47
47
  imports: [LuNumberPipe],