@lucca-front/ng 18.3.6 → 19.0.1

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 (836) hide show
  1. package/core-select/api/api.directive.d.ts +1 -1
  2. package/core-select/input/select-input.component.d.ts +1 -1
  3. package/dialog/dialog-routing/dialog-routing.component.d.ts +1 -1
  4. package/dropdown/item/dropdown-item.directive.d.ts +1 -1
  5. package/dropdown/item/dropdown-item.module.d.ts +4 -1
  6. package/dropdown/panel/dropdown-panel.component.d.ts +1 -1
  7. package/dropdown/panel/dropdown-panel.module.d.ts +4 -2
  8. package/dropdown/trigger/dropdown-trigger.directive.d.ts +1 -1
  9. package/dropdown/trigger/dropdown-trigger.module.d.ts +4 -2
  10. package/fesm2022/lucca-front-ng-a11y.mjs +3 -3
  11. package/fesm2022/lucca-front-ng-a11y.mjs.map +1 -1
  12. package/fesm2022/lucca-front-ng-animations.mjs.map +1 -1
  13. package/fesm2022/lucca-front-ng-api.mjs +48 -48
  14. package/fesm2022/lucca-front-ng-api.mjs.map +1 -1
  15. package/fesm2022/lucca-front-ng-button.mjs +3 -3
  16. package/fesm2022/lucca-front-ng-button.mjs.map +1 -1
  17. package/fesm2022/lucca-front-ng-callout.mjs +21 -21
  18. package/fesm2022/lucca-front-ng-callout.mjs.map +1 -1
  19. package/fesm2022/lucca-front-ng-comment.mjs +9 -9
  20. package/fesm2022/lucca-front-ng-comment.mjs.map +1 -1
  21. package/fesm2022/lucca-front-ng-core-select-api.mjs +9 -9
  22. package/fesm2022/lucca-front-ng-core-select-api.mjs.map +1 -1
  23. package/fesm2022/lucca-front-ng-core-select-establishment.mjs +9 -9
  24. package/fesm2022/lucca-front-ng-core-select-establishment.mjs.map +1 -1
  25. package/fesm2022/lucca-front-ng-core-select-job-qualification.mjs +6 -6
  26. package/fesm2022/lucca-front-ng-core-select-job-qualification.mjs.map +1 -1
  27. package/fesm2022/lucca-front-ng-core-select-user.mjs +15 -15
  28. package/fesm2022/lucca-front-ng-core-select-user.mjs.map +1 -1
  29. package/fesm2022/lucca-front-ng-core-select.mjs +36 -36
  30. package/fesm2022/lucca-front-ng-core-select.mjs.map +1 -1
  31. package/fesm2022/lucca-front-ng-core.mjs +16 -16
  32. package/fesm2022/lucca-front-ng-core.mjs.map +1 -1
  33. package/fesm2022/lucca-front-ng-date.mjs +48 -48
  34. package/fesm2022/lucca-front-ng-date.mjs.map +1 -1
  35. package/fesm2022/lucca-front-ng-date2.mjs +14 -14
  36. package/fesm2022/lucca-front-ng-date2.mjs.map +1 -1
  37. package/fesm2022/lucca-front-ng-department.mjs +28 -28
  38. package/fesm2022/lucca-front-ng-department.mjs.map +1 -1
  39. package/fesm2022/lucca-front-ng-dialog-testing.mjs.map +1 -1
  40. package/fesm2022/lucca-front-ng-dialog.mjs +39 -31
  41. package/fesm2022/lucca-front-ng-dialog.mjs.map +1 -1
  42. package/fesm2022/lucca-front-ng-dropdown.mjs +39 -35
  43. package/fesm2022/lucca-front-ng-dropdown.mjs.map +1 -1
  44. package/fesm2022/lucca-front-ng-empty-state.mjs +6 -6
  45. package/fesm2022/lucca-front-ng-empty-state.mjs.map +1 -1
  46. package/fesm2022/lucca-front-ng-establishment.mjs +49 -49
  47. package/fesm2022/lucca-front-ng-establishment.mjs.map +1 -1
  48. package/fesm2022/lucca-front-ng-form-field.mjs +6 -6
  49. package/fesm2022/lucca-front-ng-form-field.mjs.map +1 -1
  50. package/fesm2022/lucca-front-ng-formly.mjs +81 -79
  51. package/fesm2022/lucca-front-ng-formly.mjs.map +1 -1
  52. package/fesm2022/lucca-front-ng-forms-phone-number-input.mjs +10 -10
  53. package/fesm2022/lucca-front-ng-forms-phone-number-input.mjs.map +1 -1
  54. package/fesm2022/lucca-front-ng-forms.mjs +33 -33
  55. package/fesm2022/lucca-front-ng-forms.mjs.map +1 -1
  56. package/fesm2022/lucca-front-ng-icon.mjs +4 -4
  57. package/fesm2022/lucca-front-ng-icon.mjs.map +1 -1
  58. package/fesm2022/lucca-front-ng-inline-message.mjs +3 -3
  59. package/fesm2022/lucca-front-ng-inline-message.mjs.map +1 -1
  60. package/fesm2022/lucca-front-ng-input.mjs +21 -21
  61. package/fesm2022/lucca-front-ng-input.mjs.map +1 -1
  62. package/fesm2022/lucca-front-ng-modal.mjs +22 -22
  63. package/fesm2022/lucca-front-ng-modal.mjs.map +1 -1
  64. package/fesm2022/lucca-front-ng-multi-select.mjs +44 -44
  65. package/fesm2022/lucca-front-ng-multi-select.mjs.map +1 -1
  66. package/fesm2022/lucca-front-ng-new-badge.mjs +3 -3
  67. package/fesm2022/lucca-front-ng-new-badge.mjs.map +1 -1
  68. package/fesm2022/lucca-front-ng-number-format.mjs +7 -7
  69. package/fesm2022/lucca-front-ng-number-format.mjs.map +1 -1
  70. package/fesm2022/lucca-front-ng-number.mjs +7 -7
  71. package/fesm2022/lucca-front-ng-number.mjs.map +1 -1
  72. package/fesm2022/lucca-front-ng-numeric-badge.mjs +3 -3
  73. package/fesm2022/lucca-front-ng-numeric-badge.mjs.map +1 -1
  74. package/fesm2022/lucca-front-ng-option.mjs +154 -154
  75. package/fesm2022/lucca-front-ng-option.mjs.map +1 -1
  76. package/fesm2022/lucca-front-ng-plg-push.mjs +3 -3
  77. package/fesm2022/lucca-front-ng-plg-push.mjs.map +1 -1
  78. package/fesm2022/lucca-front-ng-popover.mjs +31 -26
  79. package/fesm2022/lucca-front-ng-popover.mjs.map +1 -1
  80. package/fesm2022/lucca-front-ng-popover2.mjs +9 -9
  81. package/fesm2022/lucca-front-ng-popover2.mjs.map +1 -1
  82. package/fesm2022/lucca-front-ng-popup-employee.mjs +21 -21
  83. package/fesm2022/lucca-front-ng-popup-employee.mjs.map +1 -1
  84. package/fesm2022/lucca-front-ng-popup.mjs +10 -10
  85. package/fesm2022/lucca-front-ng-popup.mjs.map +1 -1
  86. package/fesm2022/lucca-front-ng-qualification.mjs +15 -15
  87. package/fesm2022/lucca-front-ng-qualification.mjs.map +1 -1
  88. package/fesm2022/lucca-front-ng-safe-content.mjs +13 -12
  89. package/fesm2022/lucca-front-ng-safe-content.mjs.map +1 -1
  90. package/fesm2022/lucca-front-ng-scroll.mjs +7 -7
  91. package/fesm2022/lucca-front-ng-scroll.mjs.map +1 -1
  92. package/fesm2022/lucca-front-ng-select.mjs +14 -14
  93. package/fesm2022/lucca-front-ng-select.mjs.map +1 -1
  94. package/fesm2022/lucca-front-ng-sidepanel.mjs +7 -7
  95. package/fesm2022/lucca-front-ng-sidepanel.mjs.map +1 -1
  96. package/fesm2022/lucca-front-ng-simple-select.mjs +14 -14
  97. package/fesm2022/lucca-front-ng-simple-select.mjs.map +1 -1
  98. package/fesm2022/lucca-front-ng-skeleton.mjs +9 -9
  99. package/fesm2022/lucca-front-ng-skeleton.mjs.map +1 -1
  100. package/fesm2022/lucca-front-ng-tag.mjs +3 -3
  101. package/fesm2022/lucca-front-ng-tag.mjs.map +1 -1
  102. package/fesm2022/lucca-front-ng-time.mjs +18 -17
  103. package/fesm2022/lucca-front-ng-time.mjs.map +1 -1
  104. package/fesm2022/lucca-front-ng-title.mjs +10 -10
  105. package/fesm2022/lucca-front-ng-title.mjs.map +1 -1
  106. package/fesm2022/lucca-front-ng-toast.mjs +11 -11
  107. package/fesm2022/lucca-front-ng-toast.mjs.map +1 -1
  108. package/fesm2022/lucca-front-ng-tooltip.mjs +22 -22
  109. package/fesm2022/lucca-front-ng-tooltip.mjs.map +1 -1
  110. package/fesm2022/lucca-front-ng-user.mjs +94 -85
  111. package/fesm2022/lucca-front-ng-user.mjs.map +1 -1
  112. package/modal/modal-panel.component.d.ts +1 -1
  113. package/option/picker/option-picker-advanced.component.d.ts +1 -1
  114. package/option/picker/option-picker.component.d.ts +1 -1
  115. package/option/picker/tree-option-picker-advanced.component.d.ts +1 -1
  116. package/option/picker/tree-option-picker.component.d.ts +1 -1
  117. package/package.json +22 -132
  118. package/safe-content/safe-content.module.d.ts +3 -0
  119. package/schematics/action-icon/index.js +3 -2
  120. package/schematics/action-icon/migration.js +2 -3
  121. package/schematics/empty-state-title/index.js +2 -1
  122. package/schematics/lib/angular-template.js +6 -7
  123. package/schematics/lib/css-mapper.js +4 -4
  124. package/schematics/lib/file-update.js +2 -3
  125. package/schematics/lib/html-ast.js +4 -4
  126. package/schematics/lib/local-deps/installer.js +1 -2
  127. package/schematics/lib/local-deps/package-lock.json +30 -30
  128. package/schematics/lib/local-deps/package.json +2 -2
  129. package/schematics/lib/local-deps/postcss-selector-parser.js +1 -0
  130. package/schematics/lib/local-deps/postcss-value-parser.js +1 -0
  131. package/schematics/lib/migration-test.js +4 -5
  132. package/schematics/lib/schematics.js +1 -2
  133. package/schematics/lib/scss-ast.js +10 -11
  134. package/schematics/lib/typescript-ast.js +1 -2
  135. package/schematics/new-icons/index.js +4 -3
  136. package/schematics/new-icons/migration.js +3 -4
  137. package/schematics/ng-add/index.js +1 -2
  138. package/schematics/ng-add/tasks.js +4 -5
  139. package/schematics/palettes/index.js +1 -0
  140. package/schematics/tokens-spacing/index.js +1 -0
  141. package/select/input/select-input.component.d.ts +1 -1
  142. package/src/components/cdk/_overlay.scss +4 -0
  143. package/time/core/base-picker.component.d.ts +1 -1
  144. package/time/core/date.utils.d.ts +4 -4
  145. package/time/core/misc.utils.d.ts +1 -1
  146. package/user/picture/user-picture.component.d.ts +1 -1
  147. package/user/picture/user-picture.module.d.ts +4 -3
  148. package/user/tile/user-tile.component.d.ts +1 -1
  149. package/user/tile/user-tile.module.d.ts +4 -4
  150. package/esm2022/a11y/lucca-front-ng-a11y.mjs +0 -5
  151. package/esm2022/a11y/public-api.mjs +0 -3
  152. package/esm2022/a11y/skip-links/skip-links.component.mjs +0 -24
  153. package/esm2022/a11y/skip-links/skip-links.translate.mjs +0 -9
  154. package/esm2022/a11y/skip-links/translations.mjs +0 -51
  155. package/esm2022/animations/animation.factory.mjs +0 -15
  156. package/esm2022/animations/fade.animation.mjs +0 -8
  157. package/esm2022/animations/lucca-front-ng-animations.mjs +0 -5
  158. package/esm2022/animations/public-api.mjs +0 -5
  159. package/esm2022/animations/scale.animation.mjs +0 -126
  160. package/esm2022/animations/slide.animation.mjs +0 -110
  161. package/esm2022/api/api.model.mjs +0 -2
  162. package/esm2022/api/api.module.mjs +0 -16
  163. package/esm2022/api/lucca-front-ng-api.mjs +0 -5
  164. package/esm2022/api/public-api.mjs +0 -5
  165. package/esm2022/api/select/api-select.module.mjs +0 -19
  166. package/esm2022/api/select/feeder/api-feeder.component.mjs +0 -93
  167. package/esm2022/api/select/feeder/api-feeder.model.mjs +0 -11
  168. package/esm2022/api/select/feeder/api-feeder.module.mjs +0 -16
  169. package/esm2022/api/select/feeder/index.mjs +0 -4
  170. package/esm2022/api/select/index.mjs +0 -6
  171. package/esm2022/api/select/input/api-select-input.component.mjs +0 -52
  172. package/esm2022/api/select/input/api-select-input.module.mjs +0 -16
  173. package/esm2022/api/select/input/index.mjs +0 -3
  174. package/esm2022/api/select/pager/api-pager.component.mjs +0 -99
  175. package/esm2022/api/select/pager/api-pager.model.mjs +0 -56
  176. package/esm2022/api/select/pager/api-pager.module.mjs +0 -16
  177. package/esm2022/api/select/pager/index.mjs +0 -4
  178. package/esm2022/api/select/searcher/api-searcher.component.mjs +0 -235
  179. package/esm2022/api/select/searcher/api-searcher.model.mjs +0 -67
  180. package/esm2022/api/select/searcher/api-searcher.module.mjs +0 -16
  181. package/esm2022/api/select/searcher/index.mjs +0 -4
  182. package/esm2022/api/service/api-hybrid.service.mjs +0 -65
  183. package/esm2022/api/service/api-service.model.mjs +0 -3
  184. package/esm2022/api/service/api-v3.service.mjs +0 -72
  185. package/esm2022/api/service/api-v4.service.mjs +0 -71
  186. package/esm2022/api/service/index.mjs +0 -5
  187. package/esm2022/button/button.component.mjs +0 -90
  188. package/esm2022/button/lucca-front-ng-button.mjs +0 -5
  189. package/esm2022/button/public-api.mjs +0 -2
  190. package/esm2022/callout/callout/callout.component.mjs +0 -88
  191. package/esm2022/callout/callout-disclosure/callout-disclosure.component.mjs +0 -59
  192. package/esm2022/callout/callout-feedback-item/callout-feedback-item.component.mjs +0 -25
  193. package/esm2022/callout/callout-feedback-list/callout-feedback-list.component.mjs +0 -22
  194. package/esm2022/callout/callout-icon.pipe.mjs +0 -23
  195. package/esm2022/callout/callout-popover/callout-popover.component.mjs +0 -182
  196. package/esm2022/callout/callout-state.mjs +0 -16
  197. package/esm2022/callout/callout.translate.mjs +0 -7
  198. package/esm2022/callout/callout.utils.mjs +0 -20
  199. package/esm2022/callout/lucca-front-ng-callout.mjs +0 -5
  200. package/esm2022/callout/public-api.mjs +0 -7
  201. package/esm2022/callout/translations.mjs +0 -27
  202. package/esm2022/comment/comment/comment.component.mjs +0 -54
  203. package/esm2022/comment/comment-block/comment-block.component.mjs +0 -60
  204. package/esm2022/comment/comment-chat/comment-chat.component.mjs +0 -22
  205. package/esm2022/comment/lucca-front-ng-comment.mjs +0 -5
  206. package/esm2022/comment/public-api.mjs +0 -4
  207. package/esm2022/comment/token.mjs +0 -4
  208. package/esm2022/core/date/date-adapter.class.mjs +0 -54
  209. package/esm2022/core/date/date-adapter.interface.mjs +0 -2
  210. package/esm2022/core/date/date-granularity.enum.mjs +0 -8
  211. package/esm2022/core/date/index.mjs +0 -6
  212. package/esm2022/core/date/native/index.mjs +0 -3
  213. package/esm2022/core/date/native/native-date.adapter.mjs +0 -235
  214. package/esm2022/core/date/native/native-date.option.mjs +0 -6
  215. package/esm2022/core/date/string/index.mjs +0 -2
  216. package/esm2022/core/date/string/string-date.adapter.mjs +0 -83
  217. package/esm2022/core/event/index.mjs +0 -4
  218. package/esm2022/core/event/on-close.subscriber.mjs +0 -3
  219. package/esm2022/core/event/on-open.subscriber.mjs +0 -3
  220. package/esm2022/core/event/on-scroll-bottom.subscriber.mjs +0 -3
  221. package/esm2022/core/group/group.interface.mjs +0 -2
  222. package/esm2022/core/group/index.mjs +0 -2
  223. package/esm2022/core/id/id.generator.mjs +0 -9
  224. package/esm2022/core/id/index.mjs +0 -2
  225. package/esm2022/core/lucca-front-ng-core.mjs +0 -5
  226. package/esm2022/core/portal/index.mjs +0 -3
  227. package/esm2022/core/portal/portal-content.mjs +0 -3
  228. package/esm2022/core/portal/portal.directive.mjs +0 -107
  229. package/esm2022/core/public-api.mjs +0 -11
  230. package/esm2022/core/signal.mjs +0 -22
  231. package/esm2022/core/tools/class.mjs +0 -75
  232. package/esm2022/core/translate/index.mjs +0 -4
  233. package/esm2022/core/translate/intl-params.pipe.mjs +0 -20
  234. package/esm2022/core/translate/intl.model.mjs +0 -14
  235. package/esm2022/core/translate/translation.model.mjs +0 -2
  236. package/esm2022/core/tree/index.mjs +0 -2
  237. package/esm2022/core/tree/tree.model.mjs +0 -2
  238. package/esm2022/core/type/enum.mjs +0 -2
  239. package/esm2022/core/type/index.mjs +0 -3
  240. package/esm2022/core/type/style.mjs +0 -2
  241. package/esm2022/core-select/api/api-v3.directive.mjs +0 -81
  242. package/esm2022/core-select/api/api-v4.directive.mjs +0 -70
  243. package/esm2022/core-select/api/api.directive.mjs +0 -53
  244. package/esm2022/core-select/api/lucca-front-ng-core-select-api.mjs +0 -5
  245. package/esm2022/core-select/api/public-api.mjs +0 -4
  246. package/esm2022/core-select/displayer/displayer.directive.mjs +0 -26
  247. package/esm2022/core-select/displayer/index.mjs +0 -2
  248. package/esm2022/core-select/establishment/establishment-grouping.component.mjs +0 -21
  249. package/esm2022/core-select/establishment/establishment-grouping.service.mjs +0 -22
  250. package/esm2022/core-select/establishment/establishments.directive.mjs +0 -96
  251. package/esm2022/core-select/establishment/lucca-front-ng-core-select-establishment.mjs +0 -5
  252. package/esm2022/core-select/establishment/models.mjs +0 -2
  253. package/esm2022/core-select/establishment/public-api.mjs +0 -4
  254. package/esm2022/core-select/input/index.mjs +0 -4
  255. package/esm2022/core-select/input/select-input.component.mjs +0 -312
  256. package/esm2022/core-select/input/select-input.models.mjs +0 -37
  257. package/esm2022/core-select/input/total-count.directive.mjs +0 -33
  258. package/esm2022/core-select/job-qualification/job-qualification-grouping.component.mjs +0 -21
  259. package/esm2022/core-select/job-qualification/job-qualifications.directive.mjs +0 -78
  260. package/esm2022/core-select/job-qualification/lucca-front-ng-core-select-job-qualification.mjs +0 -5
  261. package/esm2022/core-select/job-qualification/models.mjs +0 -2
  262. package/esm2022/core-select/job-qualification/public-api.mjs +0 -3
  263. package/esm2022/core-select/lucca-front-ng-core-select.mjs +0 -5
  264. package/esm2022/core-select/option/default-option.component.mjs +0 -22
  265. package/esm2022/core-select/option/disabled.directive.mjs +0 -26
  266. package/esm2022/core-select/option/group.directive.mjs +0 -29
  267. package/esm2022/core-select/option/group.pipe.mjs +0 -43
  268. package/esm2022/core-select/option/index.mjs +0 -9
  269. package/esm2022/core-select/option/option-outlet.directive.mjs +0 -73
  270. package/esm2022/core-select/option/option.component.mjs +0 -89
  271. package/esm2022/core-select/option/option.directive.mjs +0 -26
  272. package/esm2022/core-select/option/option.token.mjs +0 -22
  273. package/esm2022/core-select/panel/index.mjs +0 -5
  274. package/esm2022/core-select/panel/key-manager.mjs +0 -79
  275. package/esm2022/core-select/panel/panel-header-template.directive.mjs +0 -25
  276. package/esm2022/core-select/panel/panel.models.mjs +0 -22
  277. package/esm2022/core-select/panel/panel.utils.mjs +0 -15
  278. package/esm2022/core-select/public-api.mjs +0 -8
  279. package/esm2022/core-select/select.model.mjs +0 -6
  280. package/esm2022/core-select/select.translate.mjs +0 -7
  281. package/esm2022/core-select/select.utils.mjs +0 -2
  282. package/esm2022/core-select/translations.mjs +0 -27
  283. package/esm2022/core-select/user/former-employees.component.mjs +0 -34
  284. package/esm2022/core-select/user/lucca-front-ng-core-select-user.mjs +0 -5
  285. package/esm2022/core-select/user/me.provider.mjs +0 -9
  286. package/esm2022/core-select/user/public-api.mjs +0 -5
  287. package/esm2022/core-select/user/translations.mjs +0 -35
  288. package/esm2022/core-select/user/user-displayer.component.mjs +0 -32
  289. package/esm2022/core-select/user/user-homonym.service.mjs +0 -63
  290. package/esm2022/core-select/user/user-option.component.mjs +0 -46
  291. package/esm2022/core-select/user/user-option.model.mjs +0 -2
  292. package/esm2022/core-select/user/user.translate.mjs +0 -7
  293. package/esm2022/core-select/user/users.directive.mjs +0 -149
  294. package/esm2022/date/adapter/date-adapter.module.mjs +0 -16
  295. package/esm2022/date/adapter/date-adapter.pipe.mjs +0 -25
  296. package/esm2022/date/adapter/index.mjs +0 -3
  297. package/esm2022/date/calendar/calendar-input.component.mjs +0 -332
  298. package/esm2022/date/calendar/calendar-input.module.mjs +0 -16
  299. package/esm2022/date/calendar/calendar-item.class.mjs +0 -43
  300. package/esm2022/date/calendar/calendar-item.factory.mjs +0 -37
  301. package/esm2022/date/calendar/calendar-item.interface.mjs +0 -2
  302. package/esm2022/date/calendar/index.mjs +0 -3
  303. package/esm2022/date/date.module.mjs +0 -20
  304. package/esm2022/date/humanize/humanize.formatter.mjs +0 -14
  305. package/esm2022/date/humanize/humanize.model.mjs +0 -2
  306. package/esm2022/date/humanize/humanize.pipe.mjs +0 -21
  307. package/esm2022/date/humanize/humanize.utils.mjs +0 -79
  308. package/esm2022/date/humanize/index.mjs +0 -5
  309. package/esm2022/date/input/date-input.directive.mjs +0 -137
  310. package/esm2022/date/input/date-input.module.mjs +0 -16
  311. package/esm2022/date/input/date-input.translate.mjs +0 -7
  312. package/esm2022/date/input/index.mjs +0 -4
  313. package/esm2022/date/input/translations.mjs +0 -43
  314. package/esm2022/date/lucca-front-ng-date.mjs +0 -5
  315. package/esm2022/date/picker/date-picker.component.mjs +0 -109
  316. package/esm2022/date/picker/date-picker.module.mjs +0 -16
  317. package/esm2022/date/picker/index.mjs +0 -3
  318. package/esm2022/date/public-api.mjs +0 -8
  319. package/esm2022/date/select/date-select-input.component.mjs +0 -106
  320. package/esm2022/date/select/date-select-input.module.mjs +0 -16
  321. package/esm2022/date/select/date-select-input.translate.mjs +0 -7
  322. package/esm2022/date/select/index.mjs +0 -4
  323. package/esm2022/date/select/translations.mjs +0 -43
  324. package/esm2022/date2/calendar.token.mjs +0 -22
  325. package/esm2022/date2/calendar2/calendar-cell-info.mjs +0 -2
  326. package/esm2022/date2/calendar2/calendar-mode.mjs +0 -2
  327. package/esm2022/date2/calendar2/calendar2-cell.directive.mjs +0 -111
  328. package/esm2022/date2/calendar2/calendar2.component.mjs +0 -279
  329. package/esm2022/date2/calendar2/calendar2.tokens.mjs +0 -4
  330. package/esm2022/date2/calendar2/cell-status.mjs +0 -2
  331. package/esm2022/date2/calendar2/date-range.mjs +0 -2
  332. package/esm2022/date2/date-format.mjs +0 -16
  333. package/esm2022/date2/date-input/date-input.component.mjs +0 -281
  334. package/esm2022/date2/date2.translate.mjs +0 -7
  335. package/esm2022/date2/lucca-front-ng-date2.mjs +0 -5
  336. package/esm2022/date2/public-api.mjs +0 -5
  337. package/esm2022/date2/repeat-times.directive.mjs +0 -27
  338. package/esm2022/date2/translations.mjs +0 -17
  339. package/esm2022/date2/utils.mjs +0 -24
  340. package/esm2022/department/department.model.mjs +0 -2
  341. package/esm2022/department/department.module.mjs +0 -16
  342. package/esm2022/department/lucca-front-ng-department.mjs +0 -5
  343. package/esm2022/department/public-api.mjs +0 -5
  344. package/esm2022/department/select/department-select.module.mjs +0 -17
  345. package/esm2022/department/select/feeder/department-feeder.component.mjs +0 -82
  346. package/esm2022/department/select/feeder/department-feeder.module.mjs +0 -16
  347. package/esm2022/department/select/feeder/index.mjs +0 -3
  348. package/esm2022/department/select/index.mjs +0 -4
  349. package/esm2022/department/select/input/department-select-input.component.mjs +0 -68
  350. package/esm2022/department/select/input/department-select-input.module.mjs +0 -16
  351. package/esm2022/department/select/input/department-select-input.translate.mjs +0 -7
  352. package/esm2022/department/select/input/index.mjs +0 -4
  353. package/esm2022/department/select/input/translations.mjs +0 -27
  354. package/esm2022/department/service/department-service.model.mjs +0 -4
  355. package/esm2022/department/service/department-v3.service.mjs +0 -46
  356. package/esm2022/department/service/department-v4.service.mjs +0 -46
  357. package/esm2022/department/service/index.mjs +0 -4
  358. package/esm2022/dialog/dialog/dialog.component.mjs +0 -31
  359. package/esm2022/dialog/dialog-content/dialog-content.component.mjs +0 -20
  360. package/esm2022/dialog/dialog-footer/dialog-footer.component.mjs +0 -13
  361. package/esm2022/dialog/dialog-header/dialog-header.component.mjs +0 -45
  362. package/esm2022/dialog/dialog-header/dialog-header.translate.mjs +0 -7
  363. package/esm2022/dialog/dialog-header/translations.mjs +0 -27
  364. package/esm2022/dialog/dialog-routing/dialog-routing.component.mjs +0 -100
  365. package/esm2022/dialog/dialog-routing/dialog-routing.models.mjs +0 -2
  366. package/esm2022/dialog/dialog-routing/dialog-routing.utils.mjs +0 -46
  367. package/esm2022/dialog/dialog-routing/index.mjs +0 -4
  368. package/esm2022/dialog/dialog.providers.mjs +0 -10
  369. package/esm2022/dialog/dialog.service.mjs +0 -75
  370. package/esm2022/dialog/directives/dialog-close.directive.mjs +0 -22
  371. package/esm2022/dialog/directives/dialog-dismiss.directive.mjs +0 -22
  372. package/esm2022/dialog/directives/dialog-open.directive.mjs +0 -35
  373. package/esm2022/dialog/lucca-front-ng-dialog.mjs +0 -5
  374. package/esm2022/dialog/model/dialog-config.mjs +0 -4
  375. package/esm2022/dialog/model/dialog-ref.mjs +0 -49
  376. package/esm2022/dialog/model/index.mjs +0 -4
  377. package/esm2022/dialog/model/injectors.mjs +0 -10
  378. package/esm2022/dialog/public-api.mjs +0 -13
  379. package/esm2022/dialog/testing/lucca-front-ng-dialog-testing.mjs +0 -5
  380. package/esm2022/dialog/testing/providers.mjs +0 -8
  381. package/esm2022/dialog/testing/public-api.mjs +0 -2
  382. package/esm2022/dropdown/dropdown.module.mjs +0 -18
  383. package/esm2022/dropdown/item/dropdown-item.directive.mjs +0 -55
  384. package/esm2022/dropdown/item/dropdown-item.model.mjs +0 -3
  385. package/esm2022/dropdown/item/dropdown-item.module.mjs +0 -17
  386. package/esm2022/dropdown/item/index.mjs +0 -4
  387. package/esm2022/dropdown/lucca-front-ng-dropdown.mjs +0 -5
  388. package/esm2022/dropdown/panel/dropdown-panel.component.mjs +0 -111
  389. package/esm2022/dropdown/panel/dropdown-panel.model.mjs +0 -2
  390. package/esm2022/dropdown/panel/dropdown-panel.module.mjs +0 -18
  391. package/esm2022/dropdown/panel/index.mjs +0 -4
  392. package/esm2022/dropdown/public-api.mjs +0 -5
  393. package/esm2022/dropdown/trigger/dropdown-trigger.directive.mjs +0 -121
  394. package/esm2022/dropdown/trigger/dropdown-trigger.module.mjs +0 -18
  395. package/esm2022/dropdown/trigger/index.mjs +0 -3
  396. package/esm2022/empty-state/empty-state-page/empty-state-page.component.mjs +0 -62
  397. package/esm2022/empty-state/empty-state-section/empty-state-section.component.mjs +0 -43
  398. package/esm2022/empty-state/lucca-front-ng-empty-state.mjs +0 -5
  399. package/esm2022/empty-state/public-api.mjs +0 -3
  400. package/esm2022/establishment/establishment.model.mjs +0 -2
  401. package/esm2022/establishment/establishment.module.mjs +0 -19
  402. package/esm2022/establishment/lucca-front-ng-establishment.mjs +0 -5
  403. package/esm2022/establishment/public-api.mjs +0 -5
  404. package/esm2022/establishment/select/establishment-select.module.mjs +0 -23
  405. package/esm2022/establishment/select/establishment-select.token.mjs +0 -4
  406. package/esm2022/establishment/select/for-legal-units/for-legal-units.directive.mjs +0 -47
  407. package/esm2022/establishment/select/for-legal-units/for-legal-units.module.mjs +0 -16
  408. package/esm2022/establishment/select/for-legal-units/index.mjs +0 -3
  409. package/esm2022/establishment/select/index.mjs +0 -7
  410. package/esm2022/establishment/select/input/establishment-select-input.component.mjs +0 -126
  411. package/esm2022/establishment/select/input/establishment-select-input.module.mjs +0 -16
  412. package/esm2022/establishment/select/input/establishment-select-input.translate.mjs +0 -7
  413. package/esm2022/establishment/select/input/index.mjs +0 -4
  414. package/esm2022/establishment/select/input/translations.mjs +0 -27
  415. package/esm2022/establishment/select/legal-unit-selector/index.mjs +0 -3
  416. package/esm2022/establishment/select/legal-unit-selector/legal-unit-selector.directive.mjs +0 -103
  417. package/esm2022/establishment/select/legal-unit-selector/legal-unit-selector.module.mjs +0 -16
  418. package/esm2022/establishment/select/searcher/establishment-searcher.component.mjs +0 -146
  419. package/esm2022/establishment/select/searcher/establishment-searcher.module.mjs +0 -16
  420. package/esm2022/establishment/select/searcher/index.mjs +0 -3
  421. package/esm2022/establishment/select/select-all/establishment-select-all.component.mjs +0 -94
  422. package/esm2022/establishment/select/select-all/establishment-select-all.module.mjs +0 -16
  423. package/esm2022/establishment/select/select-all/index.mjs +0 -3
  424. package/esm2022/establishment/service/establishment-service.model.mjs +0 -4
  425. package/esm2022/establishment/service/establishment.service.mjs +0 -37
  426. package/esm2022/establishment/service/index.mjs +0 -5
  427. package/esm2022/establishment/service/legal-unit-service.model.mjs +0 -4
  428. package/esm2022/establishment/service/legal-unit.service.mjs +0 -37
  429. package/esm2022/form-field/form-field-size.mjs +0 -2
  430. package/esm2022/form-field/form-field.component.mjs +0 -248
  431. package/esm2022/form-field/form-field.token.mjs +0 -3
  432. package/esm2022/form-field/form-field.translate.mjs +0 -7
  433. package/esm2022/form-field/input.directive.mjs +0 -36
  434. package/esm2022/form-field/lucca-front-ng-form-field.mjs +0 -5
  435. package/esm2022/form-field/public-api.mjs +0 -6
  436. package/esm2022/form-field/translations.mjs +0 -27
  437. package/esm2022/formly/formly.config.mjs +0 -79
  438. package/esm2022/formly/formly.module.mjs +0 -108
  439. package/esm2022/formly/formly.utils.mjs +0 -10
  440. package/esm2022/formly/lucca-front-ng-formly.mjs +0 -5
  441. package/esm2022/formly/public-api.mjs +0 -5
  442. package/esm2022/formly/types/api.mjs +0 -37
  443. package/esm2022/formly/types/checkbox.mjs +0 -22
  444. package/esm2022/formly/types/date.mjs +0 -22
  445. package/esm2022/formly/types/department.mjs +0 -22
  446. package/esm2022/formly/types/establishment.mjs +0 -22
  447. package/esm2022/formly/types/index.mjs +0 -12
  448. package/esm2022/formly/types/input.mjs +0 -26
  449. package/esm2022/formly/types/qualification.mjs +0 -22
  450. package/esm2022/formly/types/radios.mjs +0 -25
  451. package/esm2022/formly/types/select.mjs +0 -28
  452. package/esm2022/formly/types/textarea.mjs +0 -22
  453. package/esm2022/formly/types/user.mjs +0 -22
  454. package/esm2022/formly/wrappers/checkbox-layout.mjs +0 -30
  455. package/esm2022/formly/wrappers/error.mjs +0 -57
  456. package/esm2022/formly/wrappers/helper.mjs +0 -19
  457. package/esm2022/formly/wrappers/icon.mjs +0 -19
  458. package/esm2022/formly/wrappers/index.mjs +0 -8
  459. package/esm2022/formly/wrappers/radiosfield-layout.mjs +0 -30
  460. package/esm2022/formly/wrappers/suffix.mjs +0 -19
  461. package/esm2022/formly/wrappers/textfield-layout.mjs +0 -39
  462. package/esm2022/forms/checkbox-input/checkbox-input.component.mjs +0 -34
  463. package/esm2022/forms/form-field-id.directive.mjs +0 -52
  464. package/esm2022/forms/inject-ng-control.mjs +0 -25
  465. package/esm2022/forms/lucca-front-ng-forms.mjs +0 -5
  466. package/esm2022/forms/multilanguage-input/model/multilanguage-translation.mjs +0 -2
  467. package/esm2022/forms/multilanguage-input/multilanguage-input.component.mjs +0 -95
  468. package/esm2022/forms/multilanguage-input/multilanguage-input.translate.mjs +0 -6
  469. package/esm2022/forms/multilanguage-input/translations.mjs +0 -13
  470. package/esm2022/forms/multilanguage-input/validators.mjs +0 -7
  471. package/esm2022/forms/noop-value-accessor.directive.mjs +0 -35
  472. package/esm2022/forms/number-format-input/number-format-input.component.mjs +0 -92
  473. package/esm2022/forms/number-format-input/number-format-input.translate.mjs +0 -7
  474. package/esm2022/forms/number-format-input/translations.mjs +0 -27
  475. package/esm2022/forms/number-input/number-input.component.mjs +0 -38
  476. package/esm2022/forms/number-input/number-input.translate.mjs +0 -7
  477. package/esm2022/forms/number-input/translations.mjs +0 -27
  478. package/esm2022/forms/phone-number-input/formatter.mjs +0 -7
  479. package/esm2022/forms/phone-number-input/lucca-front-ng-forms-phone-number-input.mjs +0 -5
  480. package/esm2022/forms/phone-number-input/phone-number-format.pipe.mjs +0 -18
  481. package/esm2022/forms/phone-number-input/phone-number-input.component.mjs +0 -186
  482. package/esm2022/forms/phone-number-input/public-api.mjs +0 -6
  483. package/esm2022/forms/phone-number-input/types.mjs +0 -2
  484. package/esm2022/forms/phone-number-input/validators.mjs +0 -17
  485. package/esm2022/forms/public-api.mjs +0 -17
  486. package/esm2022/forms/radio-group-input/radio/radio.component.mjs +0 -54
  487. package/esm2022/forms/radio-group-input/radio-group-input.component.mjs +0 -45
  488. package/esm2022/forms/radio-group-input/radio-group-token.mjs +0 -3
  489. package/esm2022/forms/switch-input/switch-input.component.mjs +0 -26
  490. package/esm2022/forms/text-input/text-input-addon.mjs +0 -2
  491. package/esm2022/forms/text-input/text-input.component.mjs +0 -82
  492. package/esm2022/forms/text-input/text-input.translate.mjs +0 -7
  493. package/esm2022/forms/text-input/translations.mjs +0 -35
  494. package/esm2022/forms/textarea-input/textarea-input.component.mjs +0 -53
  495. package/esm2022/icon/icon.component.mjs +0 -29
  496. package/esm2022/icon/lucca-front-ng-icon.mjs +0 -5
  497. package/esm2022/icon/public-api.mjs +0 -2
  498. package/esm2022/inline-message/inline-message-state.mjs +0 -2
  499. package/esm2022/inline-message/inline-message.component.mjs +0 -33
  500. package/esm2022/inline-message/lucca-front-ng-inline-message.mjs +0 -5
  501. package/esm2022/inline-message/public-api.mjs +0 -3
  502. package/esm2022/input/clearer/clearer.component.mjs +0 -35
  503. package/esm2022/input/clearer/clearer.model.mjs +0 -3
  504. package/esm2022/input/clearer/clearer.module.mjs +0 -16
  505. package/esm2022/input/clearer/index.mjs +0 -4
  506. package/esm2022/input/displayer/index.mjs +0 -4
  507. package/esm2022/input/displayer/input-displayer.directive.mjs +0 -59
  508. package/esm2022/input/displayer/input-displayer.model.mjs +0 -6
  509. package/esm2022/input/displayer/input-displayer.module.mjs +0 -16
  510. package/esm2022/input/input.directive.mjs +0 -42
  511. package/esm2022/input/input.model.mjs +0 -54
  512. package/esm2022/input/input.module.mjs +0 -18
  513. package/esm2022/input/lucca-front-ng-input.mjs +0 -5
  514. package/esm2022/input/public-api.mjs +0 -6
  515. package/esm2022/lucca-front-ng.mjs +0 -5
  516. package/esm2022/modal/dialog-adapter/dialog-content-adapter/dialog-content-adapter.component.mjs +0 -100
  517. package/esm2022/modal/dialog-adapter/dialog-ref-adapter.mjs +0 -19
  518. package/esm2022/modal/lucca-front-ng-modal.mjs +0 -5
  519. package/esm2022/modal/modal-config.default.mjs +0 -17
  520. package/esm2022/modal/modal-config.model.mjs +0 -5
  521. package/esm2022/modal/modal-panel.component.mjs +0 -123
  522. package/esm2022/modal/modal-ref.factory.mjs +0 -60
  523. package/esm2022/modal/modal-ref.model.mjs +0 -11
  524. package/esm2022/modal/modal.model.mjs +0 -2
  525. package/esm2022/modal/modal.module.mjs +0 -28
  526. package/esm2022/modal/modal.service.mjs +0 -42
  527. package/esm2022/modal/modal.token.mjs +0 -9
  528. package/esm2022/modal/modal.translate.mjs +0 -7
  529. package/esm2022/modal/modal.utils.mjs +0 -9
  530. package/esm2022/modal/public-api.mjs +0 -12
  531. package/esm2022/modal/translations.mjs +0 -43
  532. package/esm2022/multi-select/displayer/counter-displayer/counter-displayer.component.mjs +0 -78
  533. package/esm2022/multi-select/displayer/default-displayer.component.mjs +0 -95
  534. package/esm2022/multi-select/displayer/default-displayer.translate.mjs +0 -7
  535. package/esm2022/multi-select/displayer/displayer-input.directive.mjs +0 -101
  536. package/esm2022/multi-select/displayer/displayer.directive.mjs +0 -26
  537. package/esm2022/multi-select/displayer/index.mjs +0 -6
  538. package/esm2022/multi-select/displayer/translations.mjs +0 -51
  539. package/esm2022/multi-select/input/index.mjs +0 -3
  540. package/esm2022/multi-select/input/panel-ref.factory.mjs +0 -119
  541. package/esm2022/multi-select/input/panel.model.mjs +0 -4
  542. package/esm2022/multi-select/input/select-all/index.mjs +0 -2
  543. package/esm2022/multi-select/input/select-all/multi-select-all-displayer.component.mjs +0 -99
  544. package/esm2022/multi-select/input/select-all/multi-select-all-header.component.mjs +0 -36
  545. package/esm2022/multi-select/input/select-all/select-all.models.mjs +0 -3
  546. package/esm2022/multi-select/input/select-all/with-select-all.directive.mjs +0 -160
  547. package/esm2022/multi-select/input/select-input.component.mjs +0 -111
  548. package/esm2022/multi-select/lucca-front-ng-multi-select.mjs +0 -5
  549. package/esm2022/multi-select/panel/index.mjs +0 -2
  550. package/esm2022/multi-select/panel/option-group-context.pipe.mjs +0 -24
  551. package/esm2022/multi-select/panel/option-selected.pipe.mjs +0 -19
  552. package/esm2022/multi-select/panel/panel.component.mjs +0 -109
  553. package/esm2022/multi-select/panel/selected-chip.directive.mjs +0 -26
  554. package/esm2022/multi-select/public-api.mjs +0 -5
  555. package/esm2022/multi-select/select.model.mjs +0 -23
  556. package/esm2022/multi-select/select.translate.mjs +0 -7
  557. package/esm2022/multi-select/select.utils.mjs +0 -32
  558. package/esm2022/multi-select/translations.mjs +0 -107
  559. package/esm2022/new-badge/lucca-front-ng-new-badge.mjs +0 -5
  560. package/esm2022/new-badge/new-badge.component.mjs +0 -20
  561. package/esm2022/new-badge/public-api.mjs +0 -2
  562. package/esm2022/number/lucca-front-ng-number.mjs +0 -5
  563. package/esm2022/number/number.module.mjs +0 -16
  564. package/esm2022/number/number.pipe.mjs +0 -36
  565. package/esm2022/number/public-api.mjs +0 -3
  566. package/esm2022/number-format/lucca-front-ng-number-format.mjs +0 -5
  567. package/esm2022/number-format/number-format.directive.mjs +0 -91
  568. package/esm2022/number-format/number-format.mjs +0 -175
  569. package/esm2022/number-format/number-format.models.mjs +0 -7
  570. package/esm2022/number-format/number-format.pipe.mjs +0 -18
  571. package/esm2022/number-format/public-api.mjs +0 -5
  572. package/esm2022/numeric-badge/lucca-front-ng-numeric-badge.mjs +0 -5
  573. package/esm2022/numeric-badge/numeric-badge.component.mjs +0 -43
  574. package/esm2022/numeric-badge/public-api.mjs +0 -2
  575. package/esm2022/option/item/index.mjs +0 -8
  576. package/esm2022/option/item/option-item.component.mjs +0 -76
  577. package/esm2022/option/item/option-item.model.mjs +0 -3
  578. package/esm2022/option/item/option-item.module.mjs +0 -16
  579. package/esm2022/option/item/translations.mjs +0 -35
  580. package/esm2022/option/item/tree-option-item.component.mjs +0 -136
  581. package/esm2022/option/item/tree-option-item.model.mjs +0 -7
  582. package/esm2022/option/item/tree-option-item.module.mjs +0 -16
  583. package/esm2022/option/item/tree-option-item.translate.mjs +0 -7
  584. package/esm2022/option/lucca-front-ng-option.mjs +0 -5
  585. package/esm2022/option/operator/feeder/index.mjs +0 -5
  586. package/esm2022/option/operator/feeder/option-feeder.component.mjs +0 -33
  587. package/esm2022/option/operator/feeder/option-feeder.module.mjs +0 -16
  588. package/esm2022/option/operator/feeder/tree-option-feeder.component.mjs +0 -33
  589. package/esm2022/option/operator/feeder/tree-option-feeder.module.mjs +0 -16
  590. package/esm2022/option/operator/for-groups/for-groups.directive.mjs +0 -89
  591. package/esm2022/option/operator/for-groups/for-groups.module.mjs +0 -16
  592. package/esm2022/option/operator/for-groups/index.mjs +0 -3
  593. package/esm2022/option/operator/for-options/for-options.directive.mjs +0 -50
  594. package/esm2022/option/operator/for-options/for-options.module.mjs +0 -16
  595. package/esm2022/option/operator/for-options/for-tree-options.directive.mjs +0 -29
  596. package/esm2022/option/operator/for-options/for-tree-options.module.mjs +0 -16
  597. package/esm2022/option/operator/for-options/index.mjs +0 -5
  598. package/esm2022/option/operator/index.mjs +0 -10
  599. package/esm2022/option/operator/option-operator.model.mjs +0 -3
  600. package/esm2022/option/operator/option-operator.module.mjs +0 -20
  601. package/esm2022/option/operator/pager/index.mjs +0 -5
  602. package/esm2022/option/operator/pager/option-pager.component.mjs +0 -53
  603. package/esm2022/option/operator/pager/option-pager.module.mjs +0 -16
  604. package/esm2022/option/operator/pager/tree-option-pager.component.mjs +0 -71
  605. package/esm2022/option/operator/pager/tree-option-pager.module.mjs +0 -16
  606. package/esm2022/option/operator/searcher/index.mjs +0 -5
  607. package/esm2022/option/operator/searcher/option-searcher.component.mjs +0 -66
  608. package/esm2022/option/operator/searcher/option-searcher.module.mjs +0 -16
  609. package/esm2022/option/operator/searcher/tree-option-searcher.component.mjs +0 -83
  610. package/esm2022/option/operator/searcher/tree-option-searcher.module.mjs +0 -16
  611. package/esm2022/option/operator/tree-option-operator.model.mjs +0 -4
  612. package/esm2022/option/operator/tree-option-operator.module.mjs +0 -19
  613. package/esm2022/option/option.module.mjs +0 -63
  614. package/esm2022/option/picker/index.mjs +0 -9
  615. package/esm2022/option/picker/option-picker-advanced.component.mjs +0 -150
  616. package/esm2022/option/picker/option-picker.component.mjs +0 -319
  617. package/esm2022/option/picker/option-picker.model.mjs +0 -69
  618. package/esm2022/option/picker/option-picker.module.mjs +0 -18
  619. package/esm2022/option/picker/tree-option-picker-advanced.component.mjs +0 -140
  620. package/esm2022/option/picker/tree-option-picker.component.mjs +0 -173
  621. package/esm2022/option/picker/tree-option-picker.model.mjs +0 -4
  622. package/esm2022/option/picker/tree-option-picker.module.mjs +0 -21
  623. package/esm2022/option/placeholder/index.mjs +0 -4
  624. package/esm2022/option/placeholder/option-placeholder.component.mjs +0 -23
  625. package/esm2022/option/placeholder/option-placeholder.module.mjs +0 -16
  626. package/esm2022/option/placeholder/option-placeholder.translate.mjs +0 -7
  627. package/esm2022/option/placeholder/translations.mjs +0 -35
  628. package/esm2022/option/public-api.mjs +0 -8
  629. package/esm2022/option/selector/all/index.mjs +0 -6
  630. package/esm2022/option/selector/all/select-all.component.mjs +0 -64
  631. package/esm2022/option/selector/all/select-all.module.mjs +0 -16
  632. package/esm2022/option/selector/all/select-all.translate.mjs +0 -7
  633. package/esm2022/option/selector/all/translations.mjs +0 -35
  634. package/esm2022/option/selector/all/tree-select-all.component.mjs +0 -67
  635. package/esm2022/option/selector/all/tree-select-all.module.mjs +0 -16
  636. package/esm2022/option/selector/index.mjs +0 -6
  637. package/esm2022/option/selector/option-selector.model.mjs +0 -3
  638. package/esm2022/option/selector/option-selector.module.mjs +0 -16
  639. package/esm2022/option/selector/tree-option-selector.model.mjs +0 -4
  640. package/esm2022/option/selector/tree-option-selector.module.mjs +0 -16
  641. package/esm2022/option/tree-option.module.mjs +0 -19
  642. package/esm2022/picker/input-picker.model.mjs +0 -4
  643. package/esm2022/picker/lucca-front-ng-picker.mjs +0 -5
  644. package/esm2022/picker/public-api.mjs +0 -2
  645. package/esm2022/plg-push/lucca-front-ng-plg-push.mjs +0 -5
  646. package/esm2022/plg-push/plg-push.component.mjs +0 -17
  647. package/esm2022/plg-push/public-api.mjs +0 -2
  648. package/esm2022/popover/animation/index.mjs +0 -2
  649. package/esm2022/popover/animation/popover.animation.mjs +0 -16
  650. package/esm2022/popover/lucca-front-ng-popover.mjs +0 -5
  651. package/esm2022/popover/panel/index.mjs +0 -4
  652. package/esm2022/popover/panel/popover-panel.component.mjs +0 -126
  653. package/esm2022/popover/panel/popover-panel.model.mjs +0 -120
  654. package/esm2022/popover/panel/popover-panel.module.mjs +0 -16
  655. package/esm2022/popover/popover.module.mjs +0 -18
  656. package/esm2022/popover/public-api.mjs +0 -6
  657. package/esm2022/popover/target/index.mjs +0 -4
  658. package/esm2022/popover/target/popover-target.directive.mjs +0 -53
  659. package/esm2022/popover/target/popover-target.model.mjs +0 -65
  660. package/esm2022/popover/target/popover-target.module.mjs +0 -16
  661. package/esm2022/popover/trigger/index.mjs +0 -4
  662. package/esm2022/popover/trigger/popover-trigger.directive.mjs +0 -186
  663. package/esm2022/popover/trigger/popover-trigger.model.mjs +0 -470
  664. package/esm2022/popover/trigger/popover-trigger.module.mjs +0 -17
  665. package/esm2022/popover2/content/popover-content/popover-content.component.mjs +0 -78
  666. package/esm2022/popover2/lucca-front-ng-popover2.mjs +0 -5
  667. package/esm2022/popover2/popover-focus-trap.mjs +0 -24
  668. package/esm2022/popover2/popover-tokens.mjs +0 -3
  669. package/esm2022/popover2/popover.directive.mjs +0 -257
  670. package/esm2022/popover2/popover.providers.mjs +0 -6
  671. package/esm2022/popover2/popover.translate.mjs +0 -7
  672. package/esm2022/popover2/popover2.translate.mjs +0 -19
  673. package/esm2022/popover2/public-api.mjs +0 -4
  674. package/esm2022/popover2/translations.mjs +0 -27
  675. package/esm2022/popup/lucca-front-ng-popup.mjs +0 -5
  676. package/esm2022/popup/popup-config.default.mjs +0 -9
  677. package/esm2022/popup/popup-config.model.mjs +0 -2
  678. package/esm2022/popup/popup-ref.factory.mjs +0 -28
  679. package/esm2022/popup/popup-ref.model.mjs +0 -139
  680. package/esm2022/popup/popup.module.mjs +0 -21
  681. package/esm2022/popup/popup.service.mjs +0 -21
  682. package/esm2022/popup/popup.token.mjs +0 -8
  683. package/esm2022/popup/public-api.mjs +0 -8
  684. package/esm2022/popup-employee/card/panel/user-popover-panel.component.mjs +0 -152
  685. package/esm2022/popup-employee/card/panel/user-popover-panel.model.mjs +0 -2
  686. package/esm2022/popup-employee/card/pipe/inject-parameter.pipe.mjs +0 -18
  687. package/esm2022/popup-employee/card/pipe/is-future.pipe.mjs +0 -32
  688. package/esm2022/popup-employee/card/pipe/leave-ends-display.pipe.mjs +0 -44
  689. package/esm2022/popup-employee/card/trigger/user-popover-trigger.directive.mjs +0 -178
  690. package/esm2022/popup-employee/lucca-front-ng-popup-employee.mjs +0 -5
  691. package/esm2022/popup-employee/popup-employee.translate.mjs +0 -7
  692. package/esm2022/popup-employee/public-api.mjs +0 -5
  693. package/esm2022/popup-employee/service/user-popover-service.model.mjs +0 -2
  694. package/esm2022/popup-employee/service/user-popover.store.mjs +0 -59
  695. package/esm2022/popup-employee/translations.mjs +0 -123
  696. package/esm2022/popup-employee/user-popover.model.mjs +0 -2
  697. package/esm2022/popup-employee/user-popover.providers.mjs +0 -14
  698. package/esm2022/public_api.mjs +0 -2
  699. package/esm2022/qualification/lucca-front-ng-qualification.mjs +0 -5
  700. package/esm2022/qualification/public-api.mjs +0 -4
  701. package/esm2022/qualification/qualification.model.mjs +0 -2
  702. package/esm2022/qualification/qualification.module.mjs +0 -19
  703. package/esm2022/qualification/select/index.mjs +0 -3
  704. package/esm2022/qualification/select/input/index.mjs +0 -4
  705. package/esm2022/qualification/select/input/qualification-select-input.component.mjs +0 -60
  706. package/esm2022/qualification/select/input/qualification-select-input.module.mjs +0 -19
  707. package/esm2022/qualification/select/input/qualification-select-input.translate.mjs +0 -7
  708. package/esm2022/qualification/select/input/translations.mjs +0 -27
  709. package/esm2022/qualification/select/qualification-select.module.mjs +0 -19
  710. package/esm2022/safe-content/lucca-front-ng-safe-content.mjs +0 -5
  711. package/esm2022/safe-content/public-api.mjs +0 -4
  712. package/esm2022/safe-content/safe-content.module.mjs +0 -18
  713. package/esm2022/safe-content/safe-external-svg.pipe.mjs +0 -42
  714. package/esm2022/safe-content/safe-html.pipe.mjs +0 -19
  715. package/esm2022/scroll/lucca-front-ng-scroll.mjs +0 -5
  716. package/esm2022/scroll/public-api.mjs +0 -4
  717. package/esm2022/scroll/scroll.directive.mjs +0 -77
  718. package/esm2022/scroll/scroll.model.mjs +0 -2
  719. package/esm2022/scroll/scroll.module.mjs +0 -16
  720. package/esm2022/select/input/index.mjs +0 -4
  721. package/esm2022/select/input/select-input.component.mjs +0 -249
  722. package/esm2022/select/input/select-input.model.mjs +0 -179
  723. package/esm2022/select/input/select-input.module.mjs +0 -19
  724. package/esm2022/select/lucca-front-ng-select.mjs +0 -5
  725. package/esm2022/select/public-api.mjs +0 -3
  726. package/esm2022/select/select.module.mjs +0 -19
  727. package/esm2022/sidepanel/lucca-front-ng-sidepanel.mjs +0 -5
  728. package/esm2022/sidepanel/public-api.mjs +0 -4
  729. package/esm2022/sidepanel/sidepanel.model.mjs +0 -32
  730. package/esm2022/sidepanel/sidepanel.module.mjs +0 -20
  731. package/esm2022/sidepanel/sidepanel.service.mjs +0 -25
  732. package/esm2022/simple-select/api/api-v3.directive.mjs +0 -6
  733. package/esm2022/simple-select/api/api-v4.directive.mjs +0 -6
  734. package/esm2022/simple-select/api/api.directive.mjs +0 -6
  735. package/esm2022/simple-select/api/lucca-front-ng-simple-select-api.mjs +0 -5
  736. package/esm2022/simple-select/api/public-api.mjs +0 -4
  737. package/esm2022/simple-select/input/index.mjs +0 -2
  738. package/esm2022/simple-select/input/panel-ref.factory.mjs +0 -106
  739. package/esm2022/simple-select/input/select-input.component.mjs +0 -60
  740. package/esm2022/simple-select/lucca-front-ng-simple-select.mjs +0 -5
  741. package/esm2022/simple-select/panel/index.mjs +0 -2
  742. package/esm2022/simple-select/panel/option-selected.pipe.mjs +0 -17
  743. package/esm2022/simple-select/panel/panel.component.mjs +0 -70
  744. package/esm2022/simple-select/public-api.mjs +0 -4
  745. package/esm2022/simple-select/select.model.mjs +0 -3
  746. package/esm2022/simple-select/select.translate.mjs +0 -7
  747. package/esm2022/simple-select/translations.mjs +0 -59
  748. package/esm2022/skeleton/lucca-front-ng-skeleton.mjs +0 -5
  749. package/esm2022/skeleton/public-api.mjs +0 -4
  750. package/esm2022/skeleton/skeleton-button/skeleton-button.component.mjs +0 -17
  751. package/esm2022/skeleton/skeleton-field/skeleton-field.component.mjs +0 -17
  752. package/esm2022/skeleton/skeleton-header/skeleton-header.component.mjs +0 -17
  753. package/esm2022/tag/lucca-front-ng-tag.mjs +0 -5
  754. package/esm2022/tag/public-api.mjs +0 -2
  755. package/esm2022/tag/tag.component.mjs +0 -61
  756. package/esm2022/time/core/base-picker.component.mjs +0 -47
  757. package/esm2022/time/core/date-primitives.mjs +0 -2
  758. package/esm2022/time/core/date.utils.mjs +0 -54
  759. package/esm2022/time/core/duration.utils.mjs +0 -55
  760. package/esm2022/time/core/math.utils.mjs +0 -17
  761. package/esm2022/time/core/misc.utils.mjs +0 -3
  762. package/esm2022/time/core/repeat-on-hold.directive.mjs +0 -73
  763. package/esm2022/time/core/time-picker-part.component.mjs +0 -148
  764. package/esm2022/time/duration-picker/duration-picker.component.mjs +0 -197
  765. package/esm2022/time/duration-picker/duration-picker.model.mjs +0 -2
  766. package/esm2022/time/duration-picker/duration-picker.translate.mjs +0 -7
  767. package/esm2022/time/duration-picker/translations.mjs +0 -43
  768. package/esm2022/time/lucca-front-ng-time.mjs +0 -5
  769. package/esm2022/time/public-api.mjs +0 -5
  770. package/esm2022/time/time-picker/time-picker.component.mjs +0 -232
  771. package/esm2022/time/time-picker/time-picker.model.mjs +0 -3
  772. package/esm2022/time/time-picker/time-picker.translate.mjs +0 -7
  773. package/esm2022/time/time-picker/translations.mjs +0 -43
  774. package/esm2022/title/lucca-front-ng-title.mjs +0 -5
  775. package/esm2022/title/public-api.mjs +0 -6
  776. package/esm2022/title/title-translate.service.mjs +0 -3
  777. package/esm2022/title/title.model.mjs +0 -2
  778. package/esm2022/title/title.module.mjs +0 -20
  779. package/esm2022/title/title.service.mjs +0 -55
  780. package/esm2022/title/title.strategy.mjs +0 -60
  781. package/esm2022/toast/lucca-front-ng-toast.mjs +0 -5
  782. package/esm2022/toast/public-api.mjs +0 -9
  783. package/esm2022/toast/toasts.component.mjs +0 -62
  784. package/esm2022/toast/toasts.model.mjs +0 -2
  785. package/esm2022/toast/toasts.module.mjs +0 -16
  786. package/esm2022/toast/toasts.service.mjs +0 -37
  787. package/esm2022/toast/toasts.translate.mjs +0 -7
  788. package/esm2022/toast/translations.mjs +0 -27
  789. package/esm2022/tooltip/animation/index.mjs +0 -2
  790. package/esm2022/tooltip/animation/tooltip.animation.mjs +0 -16
  791. package/esm2022/tooltip/lucca-front-ng-tooltip.mjs +0 -5
  792. package/esm2022/tooltip/panel/index.mjs +0 -3
  793. package/esm2022/tooltip/panel/tooltip-panel.component.mjs +0 -44
  794. package/esm2022/tooltip/panel/tooltip-panel.module.mjs +0 -16
  795. package/esm2022/tooltip/public-api.mjs +0 -5
  796. package/esm2022/tooltip/tooltip.module.mjs +0 -17
  797. package/esm2022/tooltip/trigger/ellipsis.ruler.mjs +0 -81
  798. package/esm2022/tooltip/trigger/index.mjs +0 -3
  799. package/esm2022/tooltip/trigger/tooltip-trigger.directive.mjs +0 -310
  800. package/esm2022/tooltip/trigger/tooltip-trigger.module.mjs +0 -17
  801. package/esm2022/user/display/display-format.model.mjs +0 -25
  802. package/esm2022/user/display/index.mjs +0 -4
  803. package/esm2022/user/display/user-display.module.mjs +0 -17
  804. package/esm2022/user/display/user-display.pipe.mjs +0 -72
  805. package/esm2022/user/lucca-front-ng-user.mjs +0 -5
  806. package/esm2022/user/picture/index.mjs +0 -3
  807. package/esm2022/user/picture/user-picture.component.mjs +0 -85
  808. package/esm2022/user/picture/user-picture.module.mjs +0 -19
  809. package/esm2022/user/public-api.mjs +0 -8
  810. package/esm2022/user/select/homonyms/index.mjs +0 -4
  811. package/esm2022/user/select/homonyms/user-homonyms.component.mjs +0 -72
  812. package/esm2022/user/select/homonyms/user-homonyms.module.mjs +0 -16
  813. package/esm2022/user/select/homonyms/user-homonyms.service.mjs +0 -53
  814. package/esm2022/user/select/index.mjs +0 -6
  815. package/esm2022/user/select/input/index.mjs +0 -4
  816. package/esm2022/user/select/input/translations.mjs +0 -35
  817. package/esm2022/user/select/input/user-select-input.component.mjs +0 -89
  818. package/esm2022/user/select/input/user-select-input.module.mjs +0 -19
  819. package/esm2022/user/select/input/user-select-input.translate.mjs +0 -7
  820. package/esm2022/user/select/me/index.mjs +0 -3
  821. package/esm2022/user/select/me/me-option.directive.mjs +0 -123
  822. package/esm2022/user/select/me/me-option.module.mjs +0 -16
  823. package/esm2022/user/select/searcher/index.mjs +0 -4
  824. package/esm2022/user/select/searcher/translations.mjs +0 -27
  825. package/esm2022/user/select/searcher/user-searcher.component.mjs +0 -187
  826. package/esm2022/user/select/searcher/user-searcher.module.mjs +0 -16
  827. package/esm2022/user/select/searcher/user-searcher.translate.mjs +0 -7
  828. package/esm2022/user/select/user-select.module.mjs +0 -22
  829. package/esm2022/user/service/index.mjs +0 -3
  830. package/esm2022/user/service/user-service.model.mjs +0 -4
  831. package/esm2022/user/service/user-v3.service.mjs +0 -51
  832. package/esm2022/user/tile/index.mjs +0 -3
  833. package/esm2022/user/tile/user-tile.component.mjs +0 -63
  834. package/esm2022/user/tile/user-tile.module.mjs +0 -20
  835. package/esm2022/user/user.model.mjs +0 -2
  836. package/esm2022/user/user.module.mjs +0 -19
@@ -47,10 +47,10 @@ class ALuCoreSelectApiDirective {
47
47
  this.destroy$.next();
48
48
  this.destroy$.complete();
49
49
  }
50
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: ALuCoreSelectApiDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
51
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.1", type: ALuCoreSelectApiDirective, ngImport: i0 }); }
50
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: ALuCoreSelectApiDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
51
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.3", type: ALuCoreSelectApiDirective, isStandalone: true, ngImport: i0 }); }
52
52
  }
53
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: ALuCoreSelectApiDirective, decorators: [{
53
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: ALuCoreSelectApiDirective, decorators: [{
54
54
  type: Directive
55
55
  }] });
56
56
 
@@ -97,15 +97,15 @@ class LuCoreSelectApiV3Directive extends ALuCoreSelectApiDirective {
97
97
  },
98
98
  })), map((res) => res.data.items));
99
99
  }
100
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: LuCoreSelectApiV3Directive, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
101
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.1", type: LuCoreSelectApiV3Directive, isStandalone: true, selector: "lu-simple-select[apiV3],lu-multi-select[apiV3]", inputs: { apiV3: "apiV3", fields: "fields", orderBy: "orderBy", filters: "filters" }, providers: [
100
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: LuCoreSelectApiV3Directive, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
101
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.3", type: LuCoreSelectApiV3Directive, isStandalone: true, selector: "lu-simple-select[apiV3],lu-multi-select[apiV3]", inputs: { apiV3: "apiV3", fields: "fields", orderBy: "orderBy", filters: "filters" }, providers: [
102
102
  {
103
103
  provide: CORE_SELECT_API_TOTAL_COUNT_PROVIDER,
104
104
  useExisting: forwardRef(() => LuCoreSelectApiV3Directive),
105
105
  },
106
106
  ], usesInheritance: true, ngImport: i0 }); }
107
107
  }
108
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: LuCoreSelectApiV3Directive, decorators: [{
108
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: LuCoreSelectApiV3Directive, decorators: [{
109
109
  type: Directive,
110
110
  args: [{
111
111
  // The attribute is already prefixed with "lu-simple-select"
@@ -168,15 +168,15 @@ class LuCoreSelectApiV4Directive extends ALuCoreSelectApiDirective {
168
168
  })
169
169
  .pipe(map((res) => (Array.isArray(res) ? res : res?.items) ?? []));
170
170
  }
171
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: LuCoreSelectApiV4Directive, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
172
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.0.1", type: LuCoreSelectApiV4Directive, isStandalone: true, selector: "lu-simple-select[apiV4],lu-multi-select[apiV4]", inputs: { apiV4: { classPropertyName: "apiV4", publicName: "apiV4", isSignal: true, isRequired: true, transformFunction: null }, sort: { classPropertyName: "sort", publicName: "sort", isSignal: true, isRequired: false, transformFunction: null }, filters: { classPropertyName: "filters", publicName: "filters", isSignal: true, isRequired: false, transformFunction: null }, searchDelimiter: { classPropertyName: "searchDelimiter", publicName: "searchDelimiter", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { apiV4: "apiV4Change" }, providers: [
171
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: LuCoreSelectApiV4Directive, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
172
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.0.3", type: LuCoreSelectApiV4Directive, isStandalone: true, selector: "lu-simple-select[apiV4],lu-multi-select[apiV4]", inputs: { apiV4: { classPropertyName: "apiV4", publicName: "apiV4", isSignal: true, isRequired: true, transformFunction: null }, sort: { classPropertyName: "sort", publicName: "sort", isSignal: true, isRequired: false, transformFunction: null }, filters: { classPropertyName: "filters", publicName: "filters", isSignal: true, isRequired: false, transformFunction: null }, searchDelimiter: { classPropertyName: "searchDelimiter", publicName: "searchDelimiter", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { apiV4: "apiV4Change" }, providers: [
173
173
  {
174
174
  provide: CORE_SELECT_API_TOTAL_COUNT_PROVIDER,
175
175
  useExisting: forwardRef(() => LuCoreSelectApiV4Directive),
176
176
  },
177
177
  ], usesInheritance: true, ngImport: i0 }); }
178
178
  }
179
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: LuCoreSelectApiV4Directive, decorators: [{
179
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: LuCoreSelectApiV4Directive, decorators: [{
180
180
  type: Directive,
181
181
  args: [{
182
182
  // The attribute is already prefixed with "lu-simple-select"
@@ -1 +1 @@
1
- {"version":3,"file":"lucca-front-ng-core-select-api.mjs","sources":["../../../packages/ng/core-select/api/api.directive.ts","../../../packages/ng/core-select/api/api-v3.directive.ts","../../../packages/ng/core-select/api/api-v4.directive.ts","../../../packages/ng/core-select/api/lucca-front-ng-core-select-api.ts"],"sourcesContent":["import { Directive, inject, OnDestroy, OnInit } from '@angular/core';\nimport { ALuSelectInputComponent, LuOptionComparer } from '@lucca-front/ng/core-select';\nimport { catchError, combineLatest, concatMap, debounceTime, distinctUntilChanged, map, merge, Observable, of, pairwise, scan, startWith, Subject, switchMap, takeUntil, takeWhile, tap } from 'rxjs';\n\nexport const LU_SELECT_MAGIC_PAGE_SIZE = 20;\nexport const MAGIC_DEBOUNCE_DURATION = 250;\n\n@Directive()\nexport abstract class ALuCoreSelectApiDirective<TOption, TParams = Record<string, string | number | boolean>> implements OnDestroy, OnInit {\n\tprotected destroy$ = new Subject<void>();\n\tprotected pageSize = LU_SELECT_MAGIC_PAGE_SIZE;\n\tprotected debounceDuration = MAGIC_DEBOUNCE_DURATION;\n\n\tpublic select = inject<ALuSelectInputComponent<TOption, unknown>>(ALuSelectInputComponent);\n\n\tprotected page$ = this.select.nextPage.pipe(\n\t\tscan((page) => page + 1, 0),\n\t\tstartWith(0),\n\t);\n\n\tprotected clue$ = this.select.clueChange.pipe(debounceTime(this.debounceDuration), startWith(''));\n\n\t/**\n\t * Create an object that will be used as params for the api call\n\t */\n\tprotected abstract params$: Observable<TParams>;\n\n\t/**\n\t * Compare two options to know if they are the same. For example, compare by id or by JSON\n\t */\n\tprotected abstract optionComparer: LuOptionComparer<TOption>;\n\n\t/**\n\t * Return a key to identify the option in for-of loops\n\t */\n\tprotected abstract optionKey: (option: TOption) => unknown;\n\n\t/**\n\t * Return the options for the given params and page\n\t */\n\tprotected abstract getOptions(params: TParams, page: number): Observable<TOption[]>;\n\n\tpublic ngOnInit(): void {\n\t\tthis.select.optionComparer = this.optionComparer;\n\t\tthis.select.optionKey = this.optionKey;\n\n\t\tthis.buildOptions()\n\t\t\t.pipe(takeUntil(this.destroy$))\n\t\t\t.subscribe((options) => (this.select.options = options));\n\t}\n\n\tprotected buildOptions(): Observable<TOption[]> {\n\t\t// Prevent a double call to getOptions when the clue is changed while the panel is closed\n\t\tconst clueIsPendingDebounce$ = merge(this.select.clueChange.pipe(map(() => true)), this.clue$.pipe(map(() => false))).pipe(distinctUntilChanged());\n\t\tconst isOpen$ = combineLatest([this.select.isPanelOpen$, clueIsPendingDebounce$]).pipe(\n\t\t\tdebounceTime(0),\n\t\t\tstartWith([false, false]),\n\t\t\tpairwise(),\n\t\t\ttap(([[wasOpen], [isOpen, clueIsPendingDebounce]]) => {\n\t\t\t\t// Start the loader as soon as the panel is opened to avoid a short display of the \"no result\" message\n\t\t\t\tif (!wasOpen && isOpen && clueIsPendingDebounce) {\n\t\t\t\t\tthis.select.loading = true;\n\t\t\t\t}\n\t\t\t}),\n\t\t\tmap(([[wasOpen], [isOpen, clueIsPendingDebounce]]) => (isOpen && !wasOpen ? !clueIsPendingDebounce : isOpen)),\n\t\t\tdistinctUntilChanged(),\n\t\t);\n\n\t\treturn combineLatest([this.params$, isOpen$]).pipe(\n\t\t\tswitchMap(([params, isOpened]) =>\n\t\t\t\tisOpened\n\t\t\t\t\t? this.page$.pipe(\n\t\t\t\t\t\t\tconcatMap((page) => this.getOptionsPage(params, page).pipe(map(({ items, isLastPage }) => ({ items, isLastPage, page })))),\n\t\t\t\t\t\t\ttakeWhile(({ isLastPage }) => !isLastPage, true),\n\t\t\t\t\t\t\tscan(\n\t\t\t\t\t\t\t\t(acc, { items, page }) => {\n\t\t\t\t\t\t\t\t\tacc[page] = items;\n\t\t\t\t\t\t\t\t\treturn acc;\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{} as Record<number, TOption[]>,\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tmap((pages) => Object.values(pages).flat()),\n\t\t\t\t\t\t)\n\t\t\t\t\t: of([] as TOption[]),\n\t\t\t),\n\t\t);\n\t}\n\n\tprotected getOptionsPage(params: TParams, page: number): Observable<{ items: TOption[]; isLastPage: boolean }> {\n\t\tthis.select.loading = true;\n\n\t\treturn this.getOptions(params, page).pipe(\n\t\t\tcatchError(() => of([] as TOption[])),\n\t\t\ttap(() => (this.select.loading = false)),\n\t\t\tmap((items) => ({ items, isLastPage: items.length < this.pageSize })),\n\t\t);\n\t}\n\n\tpublic ngOnDestroy(): void {\n\t\tthis.destroy$.next();\n\t\tthis.destroy$.complete();\n\t}\n}\n","import { HttpClient } from '@angular/common/http';\nimport { Directive, forwardRef, inject, Input } from '@angular/core';\nimport { ILuApiCollectionResponse, ILuApiItem } from '@lucca-front/ng/api';\nimport { CORE_SELECT_API_TOTAL_COUNT_PROVIDER, CoreSelectApiTotalCountProvider } from '@lucca-front/ng/core-select';\nimport { BehaviorSubject, combineLatest, debounceTime, map, Observable, ReplaySubject, switchMap, take } from 'rxjs';\nimport { ALuCoreSelectApiDirective } from './api.directive';\n\n@Directive({\n\t// The attribute is already prefixed with \"lu-simple-select\"\n\t// eslint-disable-next-line @angular-eslint/directive-selector\n\tselector: 'lu-simple-select[apiV3],lu-multi-select[apiV3]',\n\tstandalone: true,\n\tproviders: [\n\t\t{\n\t\t\tprovide: CORE_SELECT_API_TOTAL_COUNT_PROVIDER,\n\t\t\tuseExisting: forwardRef(() => LuCoreSelectApiV3Directive),\n\t\t},\n\t],\n})\nexport class LuCoreSelectApiV3Directive<T extends ILuApiItem> extends ALuCoreSelectApiDirective<T> implements CoreSelectApiTotalCountProvider {\n\t@Input()\n\tpublic set apiV3(value: string) {\n\t\tthis.url$.next(value);\n\t}\n\n\t@Input()\n\tpublic set fields(value: string) {\n\t\tthis.fields$.next(value);\n\t}\n\n\t@Input()\n\tpublic set orderBy(value: string | null) {\n\t\tthis.orderBy$.next(value);\n\t}\n\n\t@Input()\n\tpublic set filters(value: Record<string, string | number | boolean>) {\n\t\tthis.filters$.next(value);\n\t}\n\n\tprotected url$ = new ReplaySubject<string>(1);\n\tprotected fields$ = new BehaviorSubject<string>('id,name');\n\tprotected orderBy$ = new BehaviorSubject<string | null>('name,asc');\n\tprotected filters$ = new BehaviorSubject<Record<string, string | number | boolean>>({});\n\n\tprotected httpClient = inject(HttpClient);\n\n\tprotected override params$ = combineLatest([this.fields$, this.filters$, this.orderBy$, this.clue$]).pipe(\n\t\tmap(([fields, filters, orderBy, clue]) => ({\n\t\t\t...filters,\n\t\t\t...(fields ? { fields } : {}),\n\t\t\t...(orderBy ? { orderBy } : {}),\n\t\t\t...(clue ? { name: `like,${clue}` } : {}),\n\t\t})),\n\t);\n\n\tpublic totalCount$ = combineLatest([this.url$, this.filters$]).pipe(\n\t\tdebounceTime(250),\n\t\tswitchMap(([url, params]) =>\n\t\t\tthis.httpClient.get<{ data: { count: number } }>(url, {\n\t\t\t\tparams: {\n\t\t\t\t\t...params,\n\t\t\t\t\tfields: 'collection.count',\n\t\t\t\t},\n\t\t\t}),\n\t\t),\n\t\tmap((res) => res.data?.count ?? 0),\n\t);\n\n\tprotected override getOptions(params: Record<string, string | number | boolean>, page: number): Observable<T[]> {\n\t\treturn this.url$.pipe(\n\t\t\ttake(1),\n\t\t\tswitchMap((url) =>\n\t\t\t\tthis.httpClient.get<ILuApiCollectionResponse<T>>(url, {\n\t\t\t\t\tparams: {\n\t\t\t\t\t\t...params,\n\t\t\t\t\t\tpaging: `${page * this.pageSize},${this.pageSize}`,\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t),\n\t\t\tmap((res) => res.data.items),\n\t\t);\n\t}\n\n\tprotected override optionComparer = (a: T, b: T) => a.id === b.id;\n\tprotected override optionKey = (option: T) => option.id;\n}\n","import { HttpClient } from '@angular/common/http';\nimport { computed, Directive, forwardRef, inject, input, model } from '@angular/core';\nimport { toObservable, toSignal } from '@angular/core/rxjs-interop';\nimport { ILuApiItem } from '@lucca-front/ng/api';\nimport { CORE_SELECT_API_TOTAL_COUNT_PROVIDER, CoreSelectApiTotalCountProvider, applySearchDelimiter } from '@lucca-front/ng/core-select';\nimport { debounceTime, map, Observable, switchMap } from 'rxjs';\nimport { ALuCoreSelectApiDirective } from './api.directive';\n\n@Directive({\n\t// The attribute is already prefixed with \"lu-simple-select\"\n\t// eslint-disable-next-line @angular-eslint/directive-selector\n\tselector: 'lu-simple-select[apiV4],lu-multi-select[apiV4]',\n\tstandalone: true,\n\tproviders: [\n\t\t{\n\t\t\tprovide: CORE_SELECT_API_TOTAL_COUNT_PROVIDER,\n\t\t\tuseExisting: forwardRef(() => LuCoreSelectApiV4Directive),\n\t\t},\n\t],\n})\nexport class LuCoreSelectApiV4Directive<T extends ILuApiItem> extends ALuCoreSelectApiDirective<T> implements CoreSelectApiTotalCountProvider {\n\tapiV4 = model.required<string>();\n\tsort = input<string | null>('+name');\n\tfilters = input<Record<string, string | number | boolean>>({});\n\tsearchDelimiter = input<string>(' ');\n\n\tprotected httpClient = inject(HttpClient);\n\n\tprotected clue = toSignal(this.clue$);\n\n\tprotected override params$: Observable<Record<string, string | number | boolean>> = toObservable(\n\t\tcomputed(() => {\n\t\t\tconst sort = this.sort();\n\t\t\tconst clue = this.clue();\n\t\t\tconst searchDelimiter = this.searchDelimiter();\n\t\t\treturn {\n\t\t\t\t...this.filters(),\n\t\t\t\t...(sort ? { sort } : {}),\n\t\t\t\t...(clue ? { search: applySearchDelimiter(clue, searchDelimiter) } : {}),\n\t\t\t};\n\t\t}),\n\t);\n\n\tpublic totalCount$ = toObservable(computed(() => ({ url: this.apiV4(), filters: this.filters() }))).pipe(\n\t\tdebounceTime(250),\n\t\tswitchMap(({ url, filters }) =>\n\t\t\tthis.httpClient.get<{ count: number }>(url, {\n\t\t\t\tparams: {\n\t\t\t\t\t...filters,\n\t\t\t\t\t['fields.root']: 'count',\n\t\t\t\t},\n\t\t\t}),\n\t\t),\n\t\tmap((res) => res?.count ?? 0),\n\t);\n\n\tprotected override getOptions(params: Record<string, string | number | boolean>, page: number): Observable<T[]> {\n\t\treturn this.httpClient\n\t\t\t.get<T[] | { items: T[] }>(this.apiV4(), {\n\t\t\t\tparams: {\n\t\t\t\t\t...params,\n\t\t\t\t\tpage: page + 1,\n\t\t\t\t\tlimit: this.pageSize,\n\t\t\t\t},\n\t\t\t})\n\t\t\t.pipe(map((res) => (Array.isArray(res) ? res : res?.items) ?? []));\n\t}\n\n\tprotected override optionComparer = (a: T, b: T) => a.id === b.id;\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BAAA;AACD,iBAAA,CAAA;;;ACnBD;;AAEG;;;;"}
1
+ {"version":3,"file":"lucca-front-ng-core-select-api.mjs","sources":["../../../packages/ng/core-select/api/api.directive.ts","../../../packages/ng/core-select/api/api-v3.directive.ts","../../../packages/ng/core-select/api/api-v4.directive.ts","../../../packages/ng/core-select/api/lucca-front-ng-core-select-api.ts"],"sourcesContent":["import { Directive, inject, OnDestroy, OnInit } from '@angular/core';\nimport { ALuSelectInputComponent, LuOptionComparer } from '@lucca-front/ng/core-select';\nimport { catchError, combineLatest, concatMap, debounceTime, distinctUntilChanged, map, merge, Observable, of, pairwise, scan, startWith, Subject, switchMap, takeUntil, takeWhile, tap } from 'rxjs';\n\nexport const LU_SELECT_MAGIC_PAGE_SIZE = 20;\nexport const MAGIC_DEBOUNCE_DURATION = 250;\n\n@Directive()\nexport abstract class ALuCoreSelectApiDirective<TOption, TParams = Record<string, string | number | boolean>> implements OnDestroy, OnInit {\n\tprotected destroy$ = new Subject<void>();\n\tprotected pageSize = LU_SELECT_MAGIC_PAGE_SIZE;\n\tprotected debounceDuration = MAGIC_DEBOUNCE_DURATION;\n\n\tpublic select = inject<ALuSelectInputComponent<TOption, unknown>>(ALuSelectInputComponent);\n\n\tprotected page$ = this.select.nextPage.pipe(\n\t\tscan((page) => page + 1, 0),\n\t\tstartWith(0),\n\t);\n\n\tprotected clue$ = this.select.clueChange.pipe(debounceTime(this.debounceDuration), startWith(''));\n\n\t/**\n\t * Create an object that will be used as params for the api call\n\t */\n\tprotected abstract params$: Observable<TParams>;\n\n\t/**\n\t * Compare two options to know if they are the same. For example, compare by id or by JSON\n\t */\n\tprotected abstract optionComparer: LuOptionComparer<TOption>;\n\n\t/**\n\t * Return a key to identify the option in for-of loops\n\t */\n\tprotected abstract optionKey: (option: TOption) => unknown;\n\n\t/**\n\t * Return the options for the given params and page\n\t */\n\tprotected abstract getOptions(params: TParams, page: number): Observable<TOption[]>;\n\n\tpublic ngOnInit(): void {\n\t\tthis.select.optionComparer = this.optionComparer;\n\t\tthis.select.optionKey = this.optionKey;\n\n\t\tthis.buildOptions()\n\t\t\t.pipe(takeUntil(this.destroy$))\n\t\t\t.subscribe((options) => (this.select.options = options));\n\t}\n\n\tprotected buildOptions(): Observable<TOption[]> {\n\t\t// Prevent a double call to getOptions when the clue is changed while the panel is closed\n\t\tconst clueIsPendingDebounce$ = merge(this.select.clueChange.pipe(map(() => true)), this.clue$.pipe(map(() => false))).pipe(distinctUntilChanged());\n\t\tconst isOpen$ = combineLatest([this.select.isPanelOpen$, clueIsPendingDebounce$]).pipe(\n\t\t\tdebounceTime(0),\n\t\t\tstartWith([false, false]),\n\t\t\tpairwise(),\n\t\t\ttap(([[wasOpen], [isOpen, clueIsPendingDebounce]]) => {\n\t\t\t\t// Start the loader as soon as the panel is opened to avoid a short display of the \"no result\" message\n\t\t\t\tif (!wasOpen && isOpen && clueIsPendingDebounce) {\n\t\t\t\t\tthis.select.loading = true;\n\t\t\t\t}\n\t\t\t}),\n\t\t\tmap(([[wasOpen], [isOpen, clueIsPendingDebounce]]) => (isOpen && !wasOpen ? !clueIsPendingDebounce : isOpen)),\n\t\t\tdistinctUntilChanged(),\n\t\t);\n\n\t\treturn combineLatest([this.params$, isOpen$]).pipe(\n\t\t\tswitchMap(([params, isOpened]) =>\n\t\t\t\tisOpened\n\t\t\t\t\t? this.page$.pipe(\n\t\t\t\t\t\t\tconcatMap((page) => this.getOptionsPage(params, page).pipe(map(({ items, isLastPage }) => ({ items, isLastPage, page })))),\n\t\t\t\t\t\t\ttakeWhile(({ isLastPage }) => !isLastPage, true),\n\t\t\t\t\t\t\tscan(\n\t\t\t\t\t\t\t\t(acc, { items, page }) => {\n\t\t\t\t\t\t\t\t\tacc[page] = items;\n\t\t\t\t\t\t\t\t\treturn acc;\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{} as Record<number, TOption[]>,\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tmap((pages) => Object.values(pages).flat()),\n\t\t\t\t\t\t)\n\t\t\t\t\t: of([] as TOption[]),\n\t\t\t),\n\t\t);\n\t}\n\n\tprotected getOptionsPage(params: TParams, page: number): Observable<{ items: TOption[]; isLastPage: boolean }> {\n\t\tthis.select.loading = true;\n\n\t\treturn this.getOptions(params, page).pipe(\n\t\t\tcatchError(() => of([] as TOption[])),\n\t\t\ttap(() => (this.select.loading = false)),\n\t\t\tmap((items) => ({ items, isLastPage: items.length < this.pageSize })),\n\t\t);\n\t}\n\n\tpublic ngOnDestroy(): void {\n\t\tthis.destroy$.next();\n\t\tthis.destroy$.complete();\n\t}\n}\n","import { HttpClient } from '@angular/common/http';\nimport { Directive, forwardRef, inject, Input } from '@angular/core';\nimport { ILuApiCollectionResponse, ILuApiItem } from '@lucca-front/ng/api';\nimport { CORE_SELECT_API_TOTAL_COUNT_PROVIDER, CoreSelectApiTotalCountProvider } from '@lucca-front/ng/core-select';\nimport { BehaviorSubject, combineLatest, debounceTime, map, Observable, ReplaySubject, switchMap, take } from 'rxjs';\nimport { ALuCoreSelectApiDirective } from './api.directive';\n\n@Directive({\n\t// The attribute is already prefixed with \"lu-simple-select\"\n\t// eslint-disable-next-line @angular-eslint/directive-selector\n\tselector: 'lu-simple-select[apiV3],lu-multi-select[apiV3]',\n\tstandalone: true,\n\tproviders: [\n\t\t{\n\t\t\tprovide: CORE_SELECT_API_TOTAL_COUNT_PROVIDER,\n\t\t\tuseExisting: forwardRef(() => LuCoreSelectApiV3Directive),\n\t\t},\n\t],\n})\nexport class LuCoreSelectApiV3Directive<T extends ILuApiItem> extends ALuCoreSelectApiDirective<T> implements CoreSelectApiTotalCountProvider {\n\t@Input()\n\tpublic set apiV3(value: string) {\n\t\tthis.url$.next(value);\n\t}\n\n\t@Input()\n\tpublic set fields(value: string) {\n\t\tthis.fields$.next(value);\n\t}\n\n\t@Input()\n\tpublic set orderBy(value: string | null) {\n\t\tthis.orderBy$.next(value);\n\t}\n\n\t@Input()\n\tpublic set filters(value: Record<string, string | number | boolean>) {\n\t\tthis.filters$.next(value);\n\t}\n\n\tprotected url$ = new ReplaySubject<string>(1);\n\tprotected fields$ = new BehaviorSubject<string>('id,name');\n\tprotected orderBy$ = new BehaviorSubject<string | null>('name,asc');\n\tprotected filters$ = new BehaviorSubject<Record<string, string | number | boolean>>({});\n\n\tprotected httpClient = inject(HttpClient);\n\n\tprotected override params$ = combineLatest([this.fields$, this.filters$, this.orderBy$, this.clue$]).pipe(\n\t\tmap(([fields, filters, orderBy, clue]) => ({\n\t\t\t...filters,\n\t\t\t...(fields ? { fields } : {}),\n\t\t\t...(orderBy ? { orderBy } : {}),\n\t\t\t...(clue ? { name: `like,${clue}` } : {}),\n\t\t})),\n\t);\n\n\tpublic totalCount$ = combineLatest([this.url$, this.filters$]).pipe(\n\t\tdebounceTime(250),\n\t\tswitchMap(([url, params]) =>\n\t\t\tthis.httpClient.get<{ data: { count: number } }>(url, {\n\t\t\t\tparams: {\n\t\t\t\t\t...params,\n\t\t\t\t\tfields: 'collection.count',\n\t\t\t\t},\n\t\t\t}),\n\t\t),\n\t\tmap((res) => res.data?.count ?? 0),\n\t);\n\n\tprotected override getOptions(params: Record<string, string | number | boolean>, page: number): Observable<T[]> {\n\t\treturn this.url$.pipe(\n\t\t\ttake(1),\n\t\t\tswitchMap((url) =>\n\t\t\t\tthis.httpClient.get<ILuApiCollectionResponse<T>>(url, {\n\t\t\t\t\tparams: {\n\t\t\t\t\t\t...params,\n\t\t\t\t\t\tpaging: `${page * this.pageSize},${this.pageSize}`,\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t),\n\t\t\tmap((res) => res.data.items),\n\t\t);\n\t}\n\n\tprotected override optionComparer = (a: T, b: T) => a.id === b.id;\n\tprotected override optionKey = (option: T) => option.id;\n}\n","import { HttpClient } from '@angular/common/http';\nimport { computed, Directive, forwardRef, inject, input, model } from '@angular/core';\nimport { toObservable, toSignal } from '@angular/core/rxjs-interop';\nimport { ILuApiItem } from '@lucca-front/ng/api';\nimport { CORE_SELECT_API_TOTAL_COUNT_PROVIDER, CoreSelectApiTotalCountProvider, applySearchDelimiter } from '@lucca-front/ng/core-select';\nimport { debounceTime, map, Observable, switchMap } from 'rxjs';\nimport { ALuCoreSelectApiDirective } from './api.directive';\n\n@Directive({\n\t// The attribute is already prefixed with \"lu-simple-select\"\n\t// eslint-disable-next-line @angular-eslint/directive-selector\n\tselector: 'lu-simple-select[apiV4],lu-multi-select[apiV4]',\n\tstandalone: true,\n\tproviders: [\n\t\t{\n\t\t\tprovide: CORE_SELECT_API_TOTAL_COUNT_PROVIDER,\n\t\t\tuseExisting: forwardRef(() => LuCoreSelectApiV4Directive),\n\t\t},\n\t],\n})\nexport class LuCoreSelectApiV4Directive<T extends ILuApiItem> extends ALuCoreSelectApiDirective<T> implements CoreSelectApiTotalCountProvider {\n\tapiV4 = model.required<string>();\n\tsort = input<string | null>('+name');\n\tfilters = input<Record<string, string | number | boolean>>({});\n\tsearchDelimiter = input<string>(' ');\n\n\tprotected httpClient = inject(HttpClient);\n\n\tprotected clue = toSignal(this.clue$);\n\n\tprotected override params$: Observable<Record<string, string | number | boolean>> = toObservable(\n\t\tcomputed(() => {\n\t\t\tconst sort = this.sort();\n\t\t\tconst clue = this.clue();\n\t\t\tconst searchDelimiter = this.searchDelimiter();\n\t\t\treturn {\n\t\t\t\t...this.filters(),\n\t\t\t\t...(sort ? { sort } : {}),\n\t\t\t\t...(clue ? { search: applySearchDelimiter(clue, searchDelimiter) } : {}),\n\t\t\t};\n\t\t}),\n\t);\n\n\tpublic totalCount$ = toObservable(computed(() => ({ url: this.apiV4(), filters: this.filters() }))).pipe(\n\t\tdebounceTime(250),\n\t\tswitchMap(({ url, filters }) =>\n\t\t\tthis.httpClient.get<{ count: number }>(url, {\n\t\t\t\tparams: {\n\t\t\t\t\t...filters,\n\t\t\t\t\t['fields.root']: 'count',\n\t\t\t\t},\n\t\t\t}),\n\t\t),\n\t\tmap((res) => res?.count ?? 0),\n\t);\n\n\tprotected override getOptions(params: Record<string, string | number | boolean>, page: number): Observable<T[]> {\n\t\treturn this.httpClient\n\t\t\t.get<T[] | { items: T[] }>(this.apiV4(), {\n\t\t\t\tparams: {\n\t\t\t\t\t...params,\n\t\t\t\t\tpage: page + 1,\n\t\t\t\t\tlimit: this.pageSize,\n\t\t\t\t},\n\t\t\t})\n\t\t\t.pipe(map((res) => (Array.isArray(res) ? res : res?.items) ?? []));\n\t}\n\n\tprotected override optionComparer = (a: T, b: T) => a.id === b.id;\n\tprotected override optionKey = (option: T) => option.id;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AAIO,MAAM,yBAAyB,GAAG;AAClC,MAAM,uBAAuB,GAAG,GAAG;MAGpB,yBAAyB,CAAA;AAD/C,IAAA,WAAA,GAAA;AAEW,QAAA,IAAA,CAAA,QAAQ,GAAG,IAAI,OAAO,EAAQ;QAC9B,IAAQ,CAAA,QAAA,GAAG,yBAAyB;QACpC,IAAgB,CAAA,gBAAA,GAAG,uBAAuB;AAE7C,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAA4C,uBAAuB,CAAC;AAEhF,QAAA,IAAA,CAAA,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAC1C,IAAI,CAAC,CAAC,IAAI,KAAK,IAAI,GAAG,CAAC,EAAE,CAAC,CAAC,EAC3B,SAAS,CAAC,CAAC,CAAC,CACZ;QAES,IAAK,CAAA,KAAA,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,gBAAgB,CAAC,EAAE,SAAS,CAAC,EAAE,CAAC,CAAC;AAkFjG;IA5DO,QAAQ,GAAA;QACd,IAAI,CAAC,MAAM,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc;QAChD,IAAI,CAAC,MAAM,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS;QAEtC,IAAI,CAAC,YAAY;AACf,aAAA,IA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ams }).pipe(map((res) => res.count));
19
19
  this.useGrouping$ = combineLatest([this.legalUnitsCount$, this.establishmentsCount$]).pipe(map(([luCount, establishmentCount]) => luCount > 1 && establishmentCount > 1 && luCount !== establishmentCount), shareReplay());
20
20
  }
21
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: EstablishmentGroupingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
22
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: EstablishmentGroupingService, providedIn: 'root' }); }
21
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: EstablishmentGroupingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
22
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: EstablishmentGroupingService, providedIn: 'root' }); }
23
23
  }
24
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: EstablishmentGroupingService, decorators: [{
24
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: EstablishmentGroupingService, decorators: [{
25
25
  type: Injectable,
26
26
  args: [{ providedIn: 'root' }]
27
27
  }] });
@@ -30,10 +30,10 @@ class LuEstablishmentGroupingComponent {
30
30
  constructor() {
31
31
  this.group = inject(PORTAL_CONTEXT).$implicit;
32
32
  }
33
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: LuEstablishmentGroupingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
34
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.1", type: LuEstablishmentGroupingComponent, isStandalone: true, selector: "lu-establishment-grouping", ngImport: i0, template: `{{ group.options[0].legalUnit.name }}`, isInline: true }); }
33
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: LuEstablishmentGroupingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
34
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: LuEstablishmentGroupingComponent, isStandalone: true, selector: "lu-establishment-grouping", ngImport: i0, template: `{{ group.options[0].legalUnit.name }}`, isInline: true }); }
35
35
  }
36
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: LuEstablishmentGroupingComponent, decorators: [{
36
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: LuEstablishmentGroupingComponent, decorators: [{
37
37
  type: Component,
38
38
  args: [{
39
39
  selector: 'lu-establishment-grouping',
@@ -105,15 +105,15 @@ class LuCoreSelectEstablishmentsDirective extends ALuCoreSelectApiDirective {
105
105
  })
106
106
  .pipe(map((res) => (Array.isArray(res) ? res : res?.items) ?? []));
107
107
  }
108
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: LuCoreSelectEstablishmentsDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
109
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.0.1", type: LuCoreSelectEstablishmentsDirective, isStandalone: true, selector: "lu-simple-select[establishments],lu-multi-select[establishments]", inputs: { url: { classPropertyName: "url", publicName: "url", isSignal: true, isRequired: false, transformFunction: null }, filters: { classPropertyName: "filters", publicName: "filters", isSignal: true, isRequired: false, transformFunction: null }, operationIds: { classPropertyName: "operationIds", publicName: "operationIds", isSignal: true, isRequired: false, transformFunction: null }, appInstanceId: { classPropertyName: "appInstanceId", publicName: "appInstanceId", isSignal: true, isRequired: false, transformFunction: null }, searchDelimiter: { classPropertyName: "searchDelimiter", publicName: "searchDelimiter", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
108
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: LuCoreSelectEstablishmentsDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
109
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.0.3", type: LuCoreSelectEstablishmentsDirective, isStandalone: true, selector: "lu-simple-select[establishments],lu-multi-select[establishments]", inputs: { url: { classPropertyName: "url", publicName: "url", isSignal: true, isRequired: false, transformFunction: null }, filters: { classPropertyName: "filters", publicName: "filters", isSignal: true, isRequired: false, transformFunction: null }, operationIds: { classPropertyName: "operationIds", publicName: "operationIds", isSignal: true, isRequired: false, transformFunction: null }, appInstanceId: { classPropertyName: "appInstanceId", publicName: "appInstanceId", isSignal: true, isRequired: false, transformFunction: null }, searchDelimiter: { classPropertyName: "searchDelimiter", publicName: "searchDelimiter", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
110
110
  {
111
111
  provide: CORE_SELECT_API_TOTAL_COUNT_PROVIDER,
112
112
  useExisting: forwardRef(() => LuCoreSelectEstablishmentsDirective),
113
113
  },
114
114
  ], exportAs: ["luEstablishments"], usesInheritance: true, ngImport: i0 }); }
115
115
  }
116
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: LuCoreSelectEstablishmentsDirective, decorators: [{
116
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: LuCoreSelectEstablishmentsDirective, decorators: [{
117
117
  type: Directive,
118
118
  args: [{
119
119
  // The attribute is already prefixed with "lu-simple-select" / "lu-multi-select"
@@ -1 +1 @@
1
- {"version":3,"file":"lucca-front-ng-core-select-establishment.mjs","sources":["../../../packages/ng/core-select/establishment/establishment-grouping.service.ts","../../../packages/ng/core-select/establishment/establishment-grouping.component.ts","../../../packages/ng/core-select/establishment/establishments.directive.ts","../../../packages/ng/core-select/establishment/lucca-front-ng-core-select-establishment.ts"],"sourcesContent":["import { HttpClient, HttpParams } from '@angular/common/http';\nimport { Injectable, inject } from '@angular/core';\nimport { combineLatest, map, shareReplay } from 'rxjs';\n\n@Injectable({ providedIn: 'root' })\nexport class EstablishmentGroupingService {\n\tprotected http = inject(HttpClient);\n\tprotected establishmentsUrl = '/organization/structure/api/establishments';\n\tprotected legalUnitsUrl = '/organization/structure/api/legal-units';\n\n\tprotected countParams: HttpParams = new HttpParams().set('fields.root', 'count').set('limit', 0);\n\tprotected establishmentsCount$ = this.http.get<{ count: number }>(this.establishmentsUrl, { params: this.countParams }).pipe(map((res) => res.count));\n\tprotected legalUnitsCount$ = this.http.get<{ count: number }>(this.legalUnitsUrl, { params: this.countParams }).pipe(map((res) => res.count));\n\n\tpublic useGrouping$ = combineLatest([this.legalUnitsCount$, this.establishmentsCount$]).pipe(\n\t\tmap(([luCount, establishmentCount]) => luCount > 1 && establishmentCount > 1 && luCount !== establishmentCount),\n\t\tshareReplay(),\n\t);\n}\n","import { AsyncPipe } from '@angular/common';\nimport { Component, inject } from '@angular/core';\nimport { PORTAL_CONTEXT } from '@lucca-front/ng/core';\nimport { LuOptionGroupByContext } from '@lucca-front/ng/core-select';\nimport { LuCoreSelectEstablishment } from './models';\n\n@Component({\n\tselector: 'lu-establishment-grouping',\n\tstandalone: true,\n\timports: [AsyncPipe],\n\ttemplate: `{{ group.options[0].legalUnit.name }}`,\n})\nexport class LuEstablishmentGroupingComponent {\n\tgroup = inject<LuOptionGroupByContext<LuCoreSelectEstablishment, number>>(PORTAL_CONTEXT).$implicit;\n}\n","import { HttpClient } from '@angular/common/http';\nimport { DestroyRef, Directive, OnInit, computed, forwardRef, inject, input } from '@angular/core';\nimport { takeUntilDestroyed, toObservable, toSignal } from '@angular/core/rxjs-interop';\nimport { CORE_SELECT_API_TOTAL_COUNT_PROVIDER, CoreSelectApiTotalCountProvider, applySearchDelimiter } from '@lucca-front/ng/core-select';\nimport { ALuCoreSelectApiDirective } from '@lucca-front/ng/core-select/api';\nimport { Observable, debounceTime, filter, map, switchMap } from 'rxjs';\nimport { LuEstablishmentGroupingComponent } from './establishment-grouping.component';\nimport { EstablishmentGroupingService } from './establishment-grouping.service';\nimport { LuCoreSelectEstablishment } from './models';\n\n@Directive({\n\t// The attribute is already prefixed with \"lu-simple-select\" / \"lu-multi-select\"\n\t// eslint-disable-next-line @angular-eslint/directive-selector\n\tselector: 'lu-simple-select[establishments],lu-multi-select[establishments]',\n\tstandalone: true,\n\texportAs: 'luEstablishments',\n\tproviders: [\n\t\t{\n\t\t\tprovide: CORE_SELECT_API_TOTAL_COUNT_PROVIDER,\n\t\t\tuseExisting: forwardRef(() => LuCoreSelectEstablishmentsDirective),\n\t\t},\n\t],\n})\nexport class LuCoreSelectEstablishmentsDirective<T extends LuCoreSelectEstablishment = LuCoreSelectEstablishment>\n\textends ALuCoreSelectApiDirective<T>\n\timplements OnInit, CoreSelectApiTotalCountProvider\n{\n\t#groupingService = inject(EstablishmentGroupingService);\n\t#destroyRef = inject(DestroyRef);\n\n\tprotected httpClient = inject(HttpClient);\n\n\turl = input<string>('/organization/structure/api/establishments');\n\tfilters = input<Record<string, string | number | boolean> | null>(null);\n\toperationIds = input<number[] | null>(null);\n\tappInstanceId = input<number | null>(null);\n\tsearchDelimiter = input<string>(' ');\n\n\tprotected clue = toSignal(this.clue$);\n\n\tpublic override ngOnInit(): void {\n\t\tsuper.ngOnInit();\n\t\tthis.initGrouping();\n\t}\n\n\tprotected initGrouping() {\n\t\tthis.#groupingService.useGrouping$.pipe(filter(Boolean), takeUntilDestroyed(this.#destroyRef)).subscribe(() => {\n\t\t\tthis.select.grouping = {\n\t\t\t\tselector: (option) => option.legalUnitId,\n\t\t\t\tcontent: LuEstablishmentGroupingComponent,\n\t\t\t};\n\t\t});\n\t}\n\n\tprotected override getOptions(params: Record<string, string | number | boolean> | null, page: number): Observable<T[]> {\n\t\treturn this.httpClient\n\t\t\t.get<T[] | { items: T[] }>(this.url(), {\n\t\t\t\tparams: {\n\t\t\t\t\t...params,\n\t\t\t\t\tpage: page + 1,\n\t\t\t\t\tlimit: this.pageSize,\n\t\t\t\t},\n\t\t\t})\n\t\t\t.pipe(map((res) => (Array.isArray(res) ? res : res?.items) ?? []));\n\t}\n\n\tprotected override params$: Observable<Record<string, string | number | boolean>> = toObservable(\n\t\tcomputed(() => {\n\t\t\tconst operationIds = this.operationIds();\n\t\t\tconst appInstanceId = this.appInstanceId();\n\t\t\tconst clue = this.clue();\n\t\t\tconst searchDelimiter = this.searchDelimiter();\n\t\t\treturn {\n\t\t\t\t...this.filters(),\n\t\t\t\t...(clue\n\t\t\t\t\t? // When the clue is not empty, sort establishments by name\n\t\t\t\t\t\t{ search: applySearchDelimiter(clue, searchDelimiter), sort: 'name' }\n\t\t\t\t\t: // When the clue is empty, establishments are grouped by legal unit, so sort them by legal unit name and then by name\n\t\t\t\t\t\t{ sort: 'legalunit.name,name' }),\n\t\t\t\t...(operationIds ? { operations: operationIds.join(',') } : {}),\n\t\t\t\t...(appInstanceId ? { appInstanceId } : {}),\n\t\t\t};\n\t\t}),\n\t);\n\n\tpublic totalCount$ = toObservable(computed(() => ({ url: this.url(), filters: this.filters() }))).pipe(\n\t\tdebounceTime(250),\n\t\tswitchMap(({ url, filters }) =>\n\t\t\tthis.httpClient.get<{ count: number }>(url, {\n\t\t\t\tparams: {\n\t\t\t\t\t...filters,\n\t\t\t\t\t['fields.root']: 'count',\n\t\t\t\t},\n\t\t\t}),\n\t\t),\n\t\tmap((res) => res?.count ?? 0),\n\t);\n\n\tprotected override optionComparer = (a: T, b: T) => a.id === b.id;\n\tprotected override optionKey = (option: T) => option.id;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;MAKa,4BAA4B,CAAA;AADzC,IAAA,WAAA,GAAA;AAEW,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,U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AA,iBAAA,EAAA,IAAA,EAAA,EAAA,eAAA,EAAA,EAAA,iBAAA,EAAA,iBAAA,EAAA,UAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,SAAA,EAAA;AACV,YAAA;AACC,gBAAA,OAAO,EAAE,oCAAoC;AAC7C,gBAAA,WAAW,EAAE,UAAU,CAAC,MAAM,mCAAmC,CAAC;AAClE,aAAA;AACD,SAAA,EAAA,QAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;2FAEW,mCAAmC,EAAA,UAAA,EAAA,CAAA;kBAb/C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;;;AAGV,oBAAA,QAAQ,EAAE,kEAAkE;AAC5E,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,kBAAkB;AAC5B,oBAAA,SAAS,EAAE;AACV,wBAAA;AACC,4BAAA,OAAO,EAAE,oCAAoC;AAC7C,4BAAA,WAAW,EAAE,UAAU,CAAC,yCAAyC,CAAC;AAClE,yBAAA;AACD,qBAAA;AACD,iBAAA,CAAA;;;ACtBD;;AAEG;;;;"}
1
+ {"version":3,"file":"lucca-front-ng-core-select-establishment.mjs","sources":["../../../packages/ng/core-select/establishment/establishment-grouping.service.ts","../../../packages/ng/core-select/establishment/establishment-grouping.component.ts","../../../packages/ng/core-select/establishment/establishments.directive.ts","../../../packages/ng/core-select/establishment/lucca-front-ng-core-select-establishment.ts"],"sourcesContent":["import { HttpClient, HttpParams } from '@angular/common/http';\nimport { Injectable, inject } from '@angular/core';\nimport { combineLatest, map, shareReplay } from 'rxjs';\n\n@Injectable({ providedIn: 'root' })\nexport class EstablishmentGroupingService {\n\tprotected http = inject(HttpClient);\n\tprotected establishmentsUrl = '/organization/structure/api/establishments';\n\tprotected legalUnitsUrl = '/organization/structure/api/legal-units';\n\n\tprotected countParams: HttpParams = new HttpParams().set('fields.root', 'count').set('limit', 0);\n\tprotected establishmentsCount$ = this.http.get<{ count: number }>(this.establishmentsUrl, { params: this.countParams }).pipe(map((res) => res.count));\n\tprotected legalUnitsCount$ = this.http.get<{ count: number }>(this.legalUnitsUrl, { params: this.countParams }).pipe(map((res) => res.count));\n\n\tpublic useGrouping$ = combineLatest([this.legalUnitsCount$, this.establishmentsCount$]).pipe(\n\t\tmap(([luCount, establishmentCount]) => luCount > 1 && establishmentCount > 1 && luCount !== establishmentCount),\n\t\tshareReplay(),\n\t);\n}\n","import { AsyncPipe } from '@angular/common';\nimport { Component, inject } from '@angular/core';\nimport { PORTAL_CONTEXT } from '@lucca-front/ng/core';\nimport { LuOptionGroupByContext } from '@lucca-front/ng/core-select';\nimport { LuCoreSelectEstablishment } from './models';\n\n@Component({\n\tselector: 'lu-establishment-grouping',\n\tstandalone: true,\n\timports: [AsyncPipe],\n\ttemplate: `{{ group.options[0].legalUnit.name }}`,\n})\nexport class LuEstablishmentGroupingComponent {\n\tgroup = inject<LuOptionGroupByContext<LuCoreSelectEstablishment, number>>(PORTAL_CONTEXT).$implicit;\n}\n","import { HttpClient } from '@angular/common/http';\nimport { DestroyRef, Directive, OnInit, computed, forwardRef, inject, input } from '@angular/core';\nimport { takeUntilDestroyed, toObservable, toSignal } from '@angular/core/rxjs-interop';\nimport { CORE_SELECT_API_TOTAL_COUNT_PROVIDER, CoreSelectApiTotalCountProvider, applySearchDelimiter } from '@lucca-front/ng/core-select';\nimport { ALuCoreSelectApiDirective } from '@lucca-front/ng/core-select/api';\nimport { Observable, debounceTime, filter, map, switchMap } from 'rxjs';\nimport { LuEstablishmentGroupingComponent } from './establishment-grouping.component';\nimport { EstablishmentGroupingService } from './establishment-grouping.service';\nimport { LuCoreSelectEstablishment } from './models';\n\n@Directive({\n\t// The attribute is already prefixed with \"lu-simple-select\" / \"lu-multi-select\"\n\t// eslint-disable-next-line @angular-eslint/directive-selector\n\tselector: 'lu-simple-select[establishments],lu-multi-select[establishments]',\n\tstandalone: true,\n\texportAs: 'luEstablishments',\n\tproviders: [\n\t\t{\n\t\t\tprovide: CORE_SELECT_API_TOTAL_COUNT_PROVIDER,\n\t\t\tuseExisting: forwardRef(() => LuCoreSelectEstablishmentsDirective),\n\t\t},\n\t],\n})\nexport class LuCoreSelectEstablishmentsDirective<T extends LuCoreSelectEstablishment = LuCoreSelectEstablishment>\n\textends ALuCoreSelectApiDirective<T>\n\timplements OnInit, CoreSelectApiTotalCountProvider\n{\n\t#groupingService = inject(EstablishmentGroupingService);\n\t#destroyRef = inject(DestroyRef);\n\n\tprotected httpClient = inject(HttpClient);\n\n\turl = input<string>('/organization/structure/api/establishments');\n\tfilters = input<Record<string, string | number | boolean> | null>(null);\n\toperationIds = input<number[] | null>(null);\n\tappInstanceId = input<number | null>(null);\n\tsearchDelimiter = input<string>(' ');\n\n\tprotected clue = toSignal(this.clue$);\n\n\tpublic override ngOnInit(): void {\n\t\tsuper.ngOnInit();\n\t\tthis.initGrouping();\n\t}\n\n\tprotected initGrouping() {\n\t\tthis.#groupingService.useGrouping$.pipe(filter(Boolean), takeUntilDestroyed(this.#destroyRef)).subscribe(() => {\n\t\t\tthis.select.grouping = {\n\t\t\t\tselector: (option) => option.legalUnitId,\n\t\t\t\tcontent: LuEstablishmentGroupingComponent,\n\t\t\t};\n\t\t});\n\t}\n\n\tprotected override getOptions(params: Record<string, string | number | boolean> | null, page: number): Observable<T[]> {\n\t\treturn this.httpClient\n\t\t\t.get<T[] | { items: T[] }>(this.url(), {\n\t\t\t\tparams: {\n\t\t\t\t\t...params,\n\t\t\t\t\tpage: page + 1,\n\t\t\t\t\tlimit: this.pageSize,\n\t\t\t\t},\n\t\t\t})\n\t\t\t.pipe(map((res) => (Array.isArray(res) ? res : res?.items) ?? []));\n\t}\n\n\tprotected override params$: Observable<Record<string, string | number | boolean>> = toObservable(\n\t\tcomputed(() => {\n\t\t\tconst operationIds = this.operationIds();\n\t\t\tconst appInstanceId = this.appInstanceId();\n\t\t\tconst clue = this.clue();\n\t\t\tconst searchDelimiter = this.searchDelimiter();\n\t\t\treturn {\n\t\t\t\t...this.filters(),\n\t\t\t\t...(clue\n\t\t\t\t\t? // When the clue is not empty, sort establishments by name\n\t\t\t\t\t\t{ search: applySearchDelimiter(clue, searchDelimiter), sort: 'name' }\n\t\t\t\t\t: // When the clue is empty, establishments are grouped by legal unit, so sort them by legal unit name and then by name\n\t\t\t\t\t\t{ sort: 'legalunit.name,name' }),\n\t\t\t\t...(operationIds ? { operations: operationIds.join(',') } : {}),\n\t\t\t\t...(appInstanceId ? { appInstanceId } : {}),\n\t\t\t};\n\t\t}),\n\t);\n\n\tpublic totalCount$ = toObservable(computed(() => ({ url: this.url(), filters: this.filters() }))).pipe(\n\t\tdebounceTime(250),\n\t\tswitchMap(({ url, filters }) =>\n\t\t\tthis.httpClient.get<{ count: number }>(url, {\n\t\t\t\tparams: {\n\t\t\t\t\t...filters,\n\t\t\t\t\t['fields.root']: 'count',\n\t\t\t\t},\n\t\t\t}),\n\t\t),\n\t\tmap((res) => res?.count ?? 0),\n\t);\n\n\tprotected override optionComparer = (a: T, b: T) => a.id === b.id;\n\tprotected override optionKey = (option: T) => option.id;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;MAKa,4BAA4B,CAAA;AADzC,IAAA,WAAA,GAAA;AAEW,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,UAAU,CAAC;QACzB,IAAiB,CAAA,iBAAA,GAAG,4CAA4C;QAChE,IAAa,CAAA,aAAA,GAAG,yCAAyC;AAEzD,QAAA,IAAA,CAAA,WAAW,GAAe,IAAI,UAAU,EAAE,CAAC,GAAG,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;AACtF,QAAA,IAAA,CAAA,oBAAoB,GAAG,IAAI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AC5E,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,kBAAkB;AAC5B,oBAAA,SAAS,EAAE;AACV,wBAAA;AACC,4BAAA,OAAO,EAAE,oCAAoC;AAC7C,4BAAA,WAAW,EAAE,UAAU,CAAC,yCAAyC,CAAC;AAClE,yBAAA;AACD,qBAAA;AACD,iBAAA;;;ACtBD;;AAEG;;;;"}
@@ -12,10 +12,10 @@ class LuJobQualificationGroupingComponent {
12
12
  constructor() {
13
13
  this.group = inject(PORTAL_CONTEXT).$implicit;
14
14
  }
15
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: LuJobQualificationGroupingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
16
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.1", type: LuJobQualificationGroupingComponent, isStandalone: true, selector: "lu-job-qualification-grouping", ngImport: i0, template: `{{ group.options[0].job.name }}`, isInline: true }); }
15
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: LuJobQualificationGroupingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
16
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: LuJobQualificationGroupingComponent, isStandalone: true, selector: "lu-job-qualification-grouping", ngImport: i0, template: `{{ group.options[0].job.name }}`, isInline: true }); }
17
17
  }
18
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: LuJobQualificationGroupingComponent, decorators: [{
18
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: LuJobQualificationGroupingComponent, decorators: [{
19
19
  type: Component,
20
20
  args: [{
21
21
  selector: 'lu-job-qualification-grouping',
@@ -70,15 +70,15 @@ class LuCoreSelectJobQualificationsDirective extends ALuCoreSelectApiDirective {
70
70
  })
71
71
  .pipe(map((res) => (Array.isArray(res) ? res : res?.items) ?? []));
72
72
  }
73
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: LuCoreSelectJobQualificationsDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
74
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.0.1", type: LuCoreSelectJobQualificationsDirective, isStandalone: true, selector: "lu-simple-select[jobQualifications],lu-multi-select[jobQualifications]", inputs: { url: { classPropertyName: "url", publicName: "url", isSignal: true, isRequired: false, transformFunction: null }, filters: { classPropertyName: "filters", publicName: "filters", isSignal: true, isRequired: false, transformFunction: null }, searchDelimiter: { classPropertyName: "searchDelimiter", publicName: "searchDelimiter", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
73
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: LuCoreSelectJobQualificationsDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
74
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.0.3", type: LuCoreSelectJobQualificationsDirective, isStandalone: true, selector: "lu-simple-select[jobQualifications],lu-multi-select[jobQualifications]", inputs: { url: { classPropertyName: "url", publicName: "url", isSignal: true, isRequired: false, transformFunction: null }, filters: { classPropertyName: "filters", publicName: "filters", isSignal: true, isRequired: false, transformFunction: null }, searchDelimiter: { classPropertyName: "searchDelimiter", publicName: "searchDelimiter", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
75
75
  {
76
76
  provide: CORE_SELECT_API_TOTAL_COUNT_PROVIDER,
77
77
  useExisting: forwardRef(() => LuCoreSelectJobQualificationsDirective),
78
78
  },
79
79
  ], exportAs: ["jobQualifications"], usesInheritance: true, ngImport: i0 }); }
80
80
  }
81
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: LuCoreSelectJobQualificationsDirective, decorators: [{
81
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: LuCoreSelectJobQualificationsDirective, decorators: [{
82
82
  type: Directive,
83
83
  args: [{
84
84
  // The attribute is already prefixed with "lu-simple-select" / "lu-multi-select"
@@ -1 +1 @@
1
- {"version":3,"file":"lucca-front-ng-core-select-job-qualification.mjs","sources":["../../../packages/ng/core-select/job-qualification/job-qualification-grouping.component.ts","../../../packages/ng/core-select/job-qualification/job-qualifications.directive.ts","../../../packages/ng/core-select/job-qualification/lucca-front-ng-core-select-job-qualification.ts"],"sourcesContent":["import { AsyncPipe } from '@angular/common';\nimport { Component, inject } from '@angular/core';\nimport { PORTAL_CONTEXT } from '@lucca-front/ng/core';\nimport { LuOptionGroupByContext } from '@lucca-front/ng/core-select';\nimport { LuCoreSelectJobQualification } from './models';\n\n@Component({\n\tselector: 'lu-job-qualification-grouping',\n\tstandalone: true,\n\timports: [AsyncPipe],\n\ttemplate: `{{ group.options[0].job.name }}`,\n})\nexport class LuJobQualificationGroupingComponent {\n\tgroup = inject<LuOptionGroupByContext<LuCoreSelectJobQualification, number>>(PORTAL_CONTEXT).$implicit;\n}\n","import { HttpClient } from '@angular/common/http';\nimport { Directive, OnInit, computed, forwardRef, inject, input } from '@angular/core';\nimport { toObservable, toSignal } from '@angular/core/rxjs-interop';\nimport { CORE_SELECT_API_TOTAL_COUNT_PROVIDER, CoreSelectApiTotalCountProvider, applySearchDelimiter } from '@lucca-front/ng/core-select';\nimport { ALuCoreSelectApiDirective } from '@lucca-front/ng/core-select/api';\nimport { Observable, debounceTime, map, switchMap } from 'rxjs';\nimport { LuJobQualificationGroupingComponent } from './job-qualification-grouping.component';\nimport { LuCoreSelectJobQualification } from './models';\n\n@Directive({\n\t// The attribute is already prefixed with \"lu-simple-select\" / \"lu-multi-select\"\n\t// eslint-disable-next-line @angular-eslint/directive-selector\n\tselector: 'lu-simple-select[jobQualifications],lu-multi-select[jobQualifications]',\n\tstandalone: true,\n\texportAs: 'jobQualifications',\n\tproviders: [\n\t\t{\n\t\t\tprovide: CORE_SELECT_API_TOTAL_COUNT_PROVIDER,\n\t\t\tuseExisting: forwardRef(() => LuCoreSelectJobQualificationsDirective),\n\t\t},\n\t],\n})\nexport class LuCoreSelectJobQualificationsDirective<T extends LuCoreSelectJobQualification = LuCoreSelectJobQualification>\n\textends ALuCoreSelectApiDirective<T>\n\timplements OnInit, CoreSelectApiTotalCountProvider\n{\n\tprotected httpClient = inject(HttpClient);\n\n\turl = input<string>('/organization/structure/api/job-qualifications');\n\tfilters = input<Record<string, string | number | boolean> | null>(null);\n\tsearchDelimiter = input<string>(' ');\n\n\tprotected clue = toSignal(this.clue$);\n\n\tpublic constructor() {\n\t\tsuper();\n\n\t\tthis.select.grouping = {\n\t\t\tselector: (option) => option.job.id,\n\t\t\tcontent: LuJobQualificationGroupingComponent,\n\t\t};\n\t}\n\n\tprotected override getOptions(params: Record<string, string | number | boolean> | null, page: number): Observable<T[]> {\n\t\treturn this.httpClient\n\t\t\t.get<T[] | { items: T[] }>(this.url(), {\n\t\t\t\tparams: {\n\t\t\t\t\t...params,\n\t\t\t\t\tpage: page + 1,\n\t\t\t\t\tlimit: this.pageSize,\n\t\t\t\t},\n\t\t\t})\n\t\t\t.pipe(map((res) => (Array.isArray(res) ? res : res?.items) ?? []));\n\t}\n\n\tprotected override params$: Observable<Record<string, string | number | boolean>> = toObservable(\n\t\tcomputed(() => {\n\t\t\tconst filters = this.filters();\n\t\t\tconst clue = this.clue();\n\t\t\treturn {\n\t\t\t\t...filters,\n\t\t\t\t...(clue\n\t\t\t\t\t? {\n\t\t\t\t\t\t\tsearch: applySearchDelimiter(clue, this.searchDelimiter()),\n\t\t\t\t\t\t\tsort: 'name',\n\t\t\t\t\t\t}\n\t\t\t\t\t: { sort: 'job.name,level.position' }),\n\t\t\t};\n\t\t}),\n\t);\n\n\tpublic totalCount$ = toObservable(computed(() => ({ url: this.url(), filters: this.filters() }))).pipe(\n\t\tdebounceTime(250),\n\t\tswitchMap(({ url, filters }) =>\n\t\t\tthis.httpClient.get<{ count: number }>(url, {\n\t\t\t\tparams: {\n\t\t\t\t\t...filters,\n\t\t\t\t\t['fields.root']: 'count',\n\t\t\t\t},\n\t\t\t}),\n\t\t),\n\t\tmap((res) => res?.count ?? 0),\n\t);\n\n\tprotected override optionComparer = (a: T, b: T) => a.id === b.id;\n\tprotected override optionKey = (option: T) => option.id;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;MAYa,mCAAmC,CAAA;AANhD,IAAA,WAAA,GAAA;AAOC,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAA+D,cAAc,CAAC,CAAC,SAAS,CAAC;AACvG,KAAA;8GAFY,mCAAmC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAnC,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,mCAAmC,yFAFrC,CAAiC,+BAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,CAAA,EAAA;;2FAE/B,mCAAmC,EAAA,UAAA,EAAA,CAAA;kBAN/C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,+BAA+B;AACzC,oBAAA,UAAU,EAAE,IAAI;oBAChB,OAAO,EAAE,CAAC,SAAS,CAAC;AACpB,oBAAA,QAAQ,EAAE,CAAiC,+BAAA,CAAA;AAC3C,iBAAA,CAAA;;;ACWK,MAAO,sCACZ,SAAQ,yBAA4B,CAAA;AAWpC,IAAA,WAAA,GAAA;AACC,QAAA,KAAK,EAAE,CAAC;AATC,QAAA,IAAA,CAA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AA,EAAA,KAAA,EAAA,UAAA,EAAA,KAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,OAAA,EAAA,EAAA,iBAAA,EAAA,SAAA,EAAA,UAAA,EAAA,SAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,eAAA,EAAA,EAAA,iBAAA,EAAA,iBAAA,EAAA,UAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,SAAA,EAAA;AACV,YAAA;AACC,gBAAA,OAAO,EAAE,oCAAoC;AAC7C,gBAAA,WAAW,EAAE,UAAU,CAAC,MAAM,sCAAsC,CAAC;AACrE,aAAA;AACD,SAAA,EAAA,QAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;2FAEW,sCAAsC,EAAA,UAAA,EAAA,CAAA;kBAblD,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;;;AAGV,oBAAA,QAAQ,EAAE,wEAAwE;AAClF,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,mBAAmB;AAC7B,oBAAA,SAAS,EAAE;AACV,wBAAA;AACC,4BAAA,OAAO,EAAE,oCAAoC;AAC7C,4BAAA,WAAW,EAAE,UAAU,CAAC,4CAA4C,CAAC;AACrE,yBAAA;AACD,qBAAA;AACD,iBAAA,CAAA;;;ACrBD;;AAEG;;;;"}
1
+ {"version":3,"file":"lucca-front-ng-core-select-job-qualification.mjs","sources":["../../../packages/ng/core-select/job-qualification/job-qualification-grouping.component.ts","../../../packages/ng/core-select/job-qualification/job-qualifications.directive.ts","../../../packages/ng/core-select/job-qualification/lucca-front-ng-core-select-job-qualification.ts"],"sourcesContent":["import { AsyncPipe } from '@angular/common';\nimport { Component, inject } from '@angular/core';\nimport { PORTAL_CONTEXT } from '@lucca-front/ng/core';\nimport { LuOptionGroupByContext } from '@lucca-front/ng/core-select';\nimport { LuCoreSelectJobQualification } from './models';\n\n@Component({\n\tselector: 'lu-job-qualification-grouping',\n\tstandalone: true,\n\timports: [AsyncPipe],\n\ttemplate: `{{ group.options[0].job.name }}`,\n})\nexport class LuJobQualificationGroupingComponent {\n\tgroup = inject<LuOptionGroupByContext<LuCoreSelectJobQualification, number>>(PORTAL_CONTEXT).$implicit;\n}\n","import { HttpClient } from '@angular/common/http';\nimport { Directive, OnInit, computed, forwardRef, inject, input } from '@angular/core';\nimport { toObservable, toSignal } from '@angular/core/rxjs-interop';\nimport { CORE_SELECT_API_TOTAL_COUNT_PROVIDER, CoreSelectApiTotalCountProvider, applySearchDelimiter } from '@lucca-front/ng/core-select';\nimport { ALuCoreSelectApiDirective } from '@lucca-front/ng/core-select/api';\nimport { Observable, debounceTime, map, switchMap } from 'rxjs';\nimport { LuJobQualificationGroupingComponent } from './job-qualification-grouping.component';\nimport { LuCoreSelectJobQualification } from './models';\n\n@Directive({\n\t// The attribute is already prefixed with \"lu-simple-select\" / \"lu-multi-select\"\n\t// eslint-disable-next-line @angular-eslint/directive-selector\n\tselector: 'lu-simple-select[jobQualifications],lu-multi-select[jobQualifications]',\n\tstandalone: true,\n\texportAs: 'jobQualifications',\n\tproviders: [\n\t\t{\n\t\t\tprovide: CORE_SELECT_API_TOTAL_COUNT_PROVIDER,\n\t\t\tuseExisting: forwardRef(() => LuCoreSelectJobQualificationsDirective),\n\t\t},\n\t],\n})\nexport class LuCoreSelectJobQualificationsDirective<T extends LuCoreSelectJobQualification = LuCoreSelectJobQualification>\n\textends ALuCoreSelectApiDirective<T>\n\timplements OnInit, CoreSelectApiTotalCountProvider\n{\n\tprotected httpClient = inject(HttpClient);\n\n\turl = input<string>('/organization/structure/api/job-qualifications');\n\tfilters = input<Record<string, string | number | boolean> | null>(null);\n\tsearchDelimiter = input<string>(' ');\n\n\tprotected clue = toSignal(this.clue$);\n\n\tpublic constructor() {\n\t\tsuper();\n\n\t\tthis.select.grouping = {\n\t\t\tselector: (option) => option.job.id,\n\t\t\tcontent: LuJobQualificationGroupingComponent,\n\t\t};\n\t}\n\n\tprotected override getOptions(params: Record<string, string | number | boolean> | null, page: number): Observable<T[]> {\n\t\treturn this.httpClient\n\t\t\t.get<T[] | { items: T[] }>(this.url(), {\n\t\t\t\tparams: {\n\t\t\t\t\t...params,\n\t\t\t\t\tpage: page + 1,\n\t\t\t\t\tlimit: this.pageSize,\n\t\t\t\t},\n\t\t\t})\n\t\t\t.pipe(map((res) => (Array.isArray(res) ? res : res?.items) ?? []));\n\t}\n\n\tprotected override params$: Observable<Record<string, string | number | boolean>> = toObservable(\n\t\tcomputed(() => {\n\t\t\tconst filters = this.filters();\n\t\t\tconst clue = this.clue();\n\t\t\treturn {\n\t\t\t\t...filters,\n\t\t\t\t...(clue\n\t\t\t\t\t? {\n\t\t\t\t\t\t\tsearch: applySearchDelimiter(clue, this.searchDelimiter()),\n\t\t\t\t\t\t\tsort: 'name',\n\t\t\t\t\t\t}\n\t\t\t\t\t: { sort: 'job.name,level.position' }),\n\t\t\t};\n\t\t}),\n\t);\n\n\tpublic totalCount$ = toObservable(computed(() => ({ url: this.url(), filters: this.filters() }))).pipe(\n\t\tdebounceTime(250),\n\t\tswitchMap(({ url, filters }) =>\n\t\t\tthis.httpClient.get<{ count: number }>(url, {\n\t\t\t\tparams: {\n\t\t\t\t\t...filters,\n\t\t\t\t\t['fields.root']: 'count',\n\t\t\t\t},\n\t\t\t}),\n\t\t),\n\t\tmap((res) => res?.count ?? 0),\n\t);\n\n\tprotected override optionComparer = (a: T, b: T) => a.id === b.id;\n\tprotected override optionKey = (option: T) => option.id;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;MAYa,mCAAmC,CAAA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,EAAA,QAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAEW,sCAAsC,EAAA,UAAA,EAAA,CAAA;kBAblD,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;;;AAGV,oBAAA,QAAQ,EAAE,wEAAwE;AAClF,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,mBAAmB;AAC7B,oBAAA,SAAS,EAAE;AACV,wBAAA;AACC,4BAAA,OAAO,EAAE,oCAAoC;AAC7C,4BAAA,WAAW,EAAE,UAAU,CAAC,4CAA4C,CAAC;AACrE,yBAAA;AACD,qBAAA;AACD,iBAAA;;;ACrBD;;AAEG;;;;"}
@@ -67,8 +67,8 @@ class LuCoreSelectFormerEmployeesComponent {
67
67
  this.intl = getIntl(LU_CORE_SELECT_USER_TRANSLATIONS);
68
68
  this.context = inject(FORMER_EMPLOYEES_CONTEXT);
69
69
  }
70
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: LuCoreSelectFormerEmployeesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
71
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.1", type: LuCoreSelectFormerEmployeesComponent, isStandalone: true, selector: "lu-core-select-former-employees", ngImport: i0, template: `
70
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: LuCoreSelectFormerEmployeesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
71
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: LuCoreSelectFormerEmployeesComponent, isStandalone: true, selector: "lu-core-select-former-employees", ngImport: i0, template: `
72
72
  <div class="formerEmployeeDisplayer">
73
73
  <lu-form-field [label]="intl.includeFormerEmployees">
74
74
  <lu-checkbox-input class="formerEmployeeDisplayer-checkbox" [(ngModel)]="context.includeFormerEmployees" />
@@ -76,7 +76,7 @@ class LuCoreSelectFormerEmployeesComponent {
76
76
  </div>
77
77
  `, isInline: true, styles: [":host{display:block;background-color:var(--palettes-neutral-0);border-block-end:1px solid var(--commons-border-200);padding:0 var(--pr-t-spacings-50) var(--components-options-item-padding-vertical);margin:0 calc(-1 * var(--pr-t-spacings-50)) var(--components-options-item-padding-vertical)}.formerEmployeeDisplayer{border-radius:var(--commons-borderRadius-M);cursor:pointer}.formerEmployeeDisplayer:hover{background-color:var(--palettes-neutral-50)}.formerEmployeeDisplayer:has(.checkboxField-input:checked){background-color:var(--palettes-product-50)}.formerEmployeeDisplayer:has(.checkboxField-input:checked):hover{background-color:var(--palettes-product-100)}.formerEmployeeDisplayer ::ng-deep .formLabel{width:100%;padding:var(--components-options-item-padding-vertical) 0}.formerEmployeeDisplayer-checkbox{margin:var(--components-options-item-padding-vertical) 0 0 var(--components-options-item-padding-horizontal)}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: CheckboxInputComponent, selector: "lu-checkbox-input", inputs: ["mixed"] }, { kind: "component", type: FormFieldComponent, selector: "lu-form-field", inputs: ["label", "hiddenLabel", "rolePresentationLabel", "inline", "statusControl", "tooltip", "invalid", "inlineMessage", "errorInlineMessage", "inlineMessageState", "size", "layout", "counter"] }] }); }
78
78
  }
79
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: LuCoreSelectFormerEmployeesComponent, decorators: [{
79
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: LuCoreSelectFormerEmployeesComponent, decorators: [{
80
80
  type: Component,
81
81
  args: [{ selector: 'lu-core-select-former-employees', standalone: true, imports: [FormsModule, CheckboxInputComponent, FormFieldComponent], template: `
82
82
  <div class="formerEmployeeDisplayer">
@@ -92,14 +92,14 @@ class LuUserDisplayerComponent {
92
92
  this.context = inject(LU_OPTION_CONTEXT);
93
93
  this.userDirective = inject(LuCoreSelectUsersDirective);
94
94
  }
95
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: LuUserDisplayerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
96
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.1", type: LuUserDisplayerComponent, isStandalone: true, selector: "lu-user-displayer", ngImport: i0, template: `
95
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: LuUserDisplayerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
96
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: LuUserDisplayerComponent, isStandalone: true, selector: "lu-user-displayer", ngImport: i0, template: `
97
97
  <ng-container *ngIf="context.option$ | async as user">
98
98
  {{ user | luUserDisplay: userDirective.displayFormat() }}
99
99
  </ng-container>
100
100
  `, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: LuUserDisplayPipe, name: "luUserDisplay" }] }); }
101
101
  }
102
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: LuUserDisplayerComponent, decorators: [{
102
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: LuUserDisplayerComponent, decorators: [{
103
103
  type: Component,
104
104
  args: [{
105
105
  selector: 'lu-user-displayer',
@@ -163,10 +163,10 @@ class LuCoreSelectUserHomonymsService {
163
163
  };
164
164
  }));
165
165
  }
166
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: LuCoreSelectUserHomonymsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
167
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: LuCoreSelectUserHomonymsService, providedIn: 'root' }); }
166
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: LuCoreSelectUserHomonymsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
167
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: LuCoreSelectUserHomonymsService, providedIn: 'root' }); }
168
168
  }
169
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: LuCoreSelectUserHomonymsService, decorators: [{
169
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: LuCoreSelectUserHomonymsService, decorators: [{
170
170
  type: Injectable,
171
171
  args: [{ providedIn: 'root' }]
172
172
  }] });
@@ -178,8 +178,8 @@ class LuUserOptionComponent {
178
178
  this.intl = getIntl(LU_CORE_SELECT_USER_TRANSLATIONS);
179
179
  this.hasEmptyClue$ = this.userDirective.select.clueChange.pipe(startWith(this.userDirective.select.clue), map((clue) => !clue));
180
180
  }
181
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: LuUserOptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
182
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.1", type: LuUserOptionComponent, isStandalone: true, selector: "lu-user-option", ngImport: i0, template: `
181
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: LuUserOptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
182
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: LuUserOptionComponent, isStandalone: true, selector: "lu-user-option", ngImport: i0, template: `
183
183
  <ng-container *ngIf="context.option$ | async as user">
184
184
  <div *ngIf="userDirective.displayMeOption() && user.id === userDirective.currentUserId && hasEmptyClue$ | async; else notMe">
185
185
  <b>{{ intl.me }} {{ user | luUserDisplay: userDirective.displayFormat() }}</b>
@@ -192,7 +192,7 @@ class LuUserOptionComponent {
192
192
  </ng-container>
193
193
  `, isInline: true, styles: [".lu-select-additionalInformation{font-size:80%;font-style:italic;margin-top:-.25em}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: LuUserDisplayPipe, name: "luUserDisplay" }] }); }
194
194
  }
195
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: LuUserOptionComponent, decorators: [{
195
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: LuUserOptionComponent, decorators: [{
196
196
  type: Component,
197
197
  args: [{ selector: 'lu-user-option', imports: [NgIf, AsyncPipe, LuUserDisplayPipe], template: `
198
198
  <ng-container *ngIf="context.option$ | async as user">
@@ -329,10 +329,10 @@ class LuCoreSelectUsersDirective extends ALuCoreSelectApiDirective {
329
329
  isLastPage: page.isLastPage,
330
330
  })))));
331
331
  }
332
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: LuCoreSelectUsersDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
333
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.0.1", type: LuCoreSelectUsersDirective, isStandalone: true, selector: "lu-simple-select[users],lu-multi-select[users]", inputs: { displayFormat: { classPropertyName: "displayFormat", publicName: "displayFormat", isSignal: true, isRequired: false, transformFunction: null }, filters: { classPropertyName: "filters", publicName: "filters", isSignal: true, isRequired: false, transformFunction: null }, url: { classPropertyName: "url", publicName: "url", isSignal: true, isRequired: false, transformFunction: null }, orderBy: { classPropertyName: "orderBy", publicName: "orderBy", isSignal: true, isRequired: false, transformFunction: null }, operationIds: { classPropertyName: "operationIds", publicName: "operationIds", isSignal: true, isRequired: false, transformFunction: null }, appInstanceId: { classPropertyName: "appInstanceId", publicName: "appInstanceId", isSignal: true, isRequired: false, transformFunction: null }, enableFormerEmployees: { classPropertyName: "enableFormerEmployees", publicName: "enableFormerEmployees", isSignal: true, isRequired: false, transformFunction: null }, displayMeOption: { classPropertyName: "displayMeOption", publicName: "displayMeOption", isSignal: true, isRequired: false, transformFunction: null }, searchDelimiter: { classPropertyName: "searchDelimiter", publicName: "searchDelimiter", isSignal: true, isRequired: false, transformFunction: null } }, providers: [provideBaseCoreSelectUsersContext(() => LuCoreSelectUsersDirective)], exportAs: ["luUsers"], usesInheritance: true, ngImport: i0 }); }
332
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: LuCoreSelectUsersDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
333
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.0.3", type: LuCoreSelectUsersDirective, isStandalone: true, selector: "lu-simple-select[users],lu-multi-select[users]", inputs: { displayFormat: { classPropertyName: "displayFormat", publicName: "displayFormat", isSignal: true, isRequired: false, transformFunction: null }, filters: { classPropertyName: "filters", publicName: "filters", isSignal: true, isRequired: false, transformFunction: null }, url: { classPropertyName: "url", publicName: "url", isSignal: true, isRequired: false, transformFunction: null }, orderBy: { classPropertyName: "orderBy", publicName: "orderBy", isSignal: true, isRequired: false, transformFunction: null }, operationIds: { classPropertyName: "operationIds", publicName: "operationIds", isSignal: true, isRequired: false, transformFunction: null }, appInstanceId: { classPropertyName: "appInstanceId", publicName: "appInstanceId", isSignal: true, isRequired: false, transformFunction: null }, enableFormerEmployees: { classPropertyName: "enableFormerEmployees", publicName: "enableFormerEmployees", isSignal: true, isRequired: false, transformFunction: null }, displayMeOption: { classPropertyName: "displayMeOption", publicName: "displayMeOption", isSignal: true, isRequired: false, transformFunction: null }, searchDelimiter: { classPropertyName: "searchDelimiter", publicName: "searchDelimiter", isSignal: true, isRequired: false, transformFunction: null } }, providers: [provideBaseCoreSelectUsersContext(() => LuCoreSelectUsersDirective)], exportAs: ["luUsers"], usesInheritance: true, ngImport: i0 }); }
334
334
  }
335
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: LuCoreSelectUsersDirective, decorators: [{
335
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: LuCoreSelectUsersDirective, decorators: [{
336
336
  type: Directive,
337
337
  args: [{
338
338
  // The attribute is already prefixed with "lu-simple-select"