@lucca-front/ng 20.3.3-rc.3 → 20.3.3-rc.4

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 (228) hide show
  1. package/callout/index.d.ts +2 -8
  2. package/chip/index.d.ts +2 -3
  3. package/core-select/department/index.d.ts +1 -1
  4. package/core-select/index.d.ts +10 -2
  5. package/data-table/index.d.ts +14 -46
  6. package/dropdown/index.d.ts +2 -1
  7. package/fesm2022/lucca-front-ng-a11y.mjs +32 -32
  8. package/fesm2022/lucca-front-ng-a11y.mjs.map +1 -1
  9. package/fesm2022/lucca-front-ng-animations.mjs.map +1 -1
  10. package/fesm2022/lucca-front-ng-api.mjs +59 -58
  11. package/fesm2022/lucca-front-ng-api.mjs.map +1 -1
  12. package/fesm2022/lucca-front-ng-app-layout.mjs +6 -6
  13. package/fesm2022/lucca-front-ng-app-layout.mjs.map +1 -1
  14. package/fesm2022/lucca-front-ng-box.mjs +8 -8
  15. package/fesm2022/lucca-front-ng-box.mjs.map +1 -1
  16. package/fesm2022/lucca-front-ng-breadcrumbs.mjs +14 -14
  17. package/fesm2022/lucca-front-ng-breadcrumbs.mjs.map +1 -1
  18. package/fesm2022/lucca-front-ng-button.mjs +7 -12
  19. package/fesm2022/lucca-front-ng-button.mjs.map +1 -1
  20. package/fesm2022/lucca-front-ng-callout.mjs +64 -116
  21. package/fesm2022/lucca-front-ng-callout.mjs.map +1 -1
  22. package/fesm2022/lucca-front-ng-chip.mjs +24 -28
  23. package/fesm2022/lucca-front-ng-chip.mjs.map +1 -1
  24. package/fesm2022/lucca-front-ng-comment.mjs +31 -31
  25. package/fesm2022/lucca-front-ng-comment.mjs.map +1 -1
  26. package/fesm2022/lucca-front-ng-container.mjs +8 -8
  27. package/fesm2022/lucca-front-ng-container.mjs.map +1 -1
  28. package/fesm2022/lucca-front-ng-core-select-api.mjs +16 -14
  29. package/fesm2022/lucca-front-ng-core-select-api.mjs.map +1 -1
  30. package/fesm2022/lucca-front-ng-core-select-department.mjs +18 -16
  31. package/fesm2022/lucca-front-ng-core-select-department.mjs.map +1 -1
  32. package/fesm2022/lucca-front-ng-core-select-establishment.mjs +22 -19
  33. package/fesm2022/lucca-front-ng-core-select-establishment.mjs.map +1 -1
  34. package/fesm2022/lucca-front-ng-core-select-job-qualification.mjs +14 -12
  35. package/fesm2022/lucca-front-ng-core-select-job-qualification.mjs.map +1 -1
  36. package/fesm2022/lucca-front-ng-core-select-user.mjs +58 -55
  37. package/fesm2022/lucca-front-ng-core-select-user.mjs.map +1 -1
  38. package/fesm2022/lucca-front-ng-core-select.mjs +130 -103
  39. package/fesm2022/lucca-front-ng-core-select.mjs.map +1 -1
  40. package/fesm2022/lucca-front-ng-core.mjs +17 -15
  41. package/fesm2022/lucca-front-ng-core.mjs.map +1 -1
  42. package/fesm2022/lucca-front-ng-data-table.mjs +86 -219
  43. package/fesm2022/lucca-front-ng-data-table.mjs.map +1 -1
  44. package/fesm2022/lucca-front-ng-date.mjs +97 -95
  45. package/fesm2022/lucca-front-ng-date.mjs.map +1 -1
  46. package/fesm2022/lucca-front-ng-date2.mjs +134 -133
  47. package/fesm2022/lucca-front-ng-date2.mjs.map +1 -1
  48. package/fesm2022/lucca-front-ng-department.mjs +46 -46
  49. package/fesm2022/lucca-front-ng-department.mjs.map +1 -1
  50. package/fesm2022/lucca-front-ng-dialog.mjs +57 -52
  51. package/fesm2022/lucca-front-ng-dialog.mjs.map +1 -1
  52. package/fesm2022/lucca-front-ng-divider.mjs +10 -10
  53. package/fesm2022/lucca-front-ng-divider.mjs.map +1 -1
  54. package/fesm2022/lucca-front-ng-dropdown.mjs +55 -48
  55. package/fesm2022/lucca-front-ng-dropdown.mjs.map +1 -1
  56. package/fesm2022/lucca-front-ng-empty-state.mjs +9 -13
  57. package/fesm2022/lucca-front-ng-empty-state.mjs.map +1 -1
  58. package/fesm2022/lucca-front-ng-establishment.mjs +71 -70
  59. package/fesm2022/lucca-front-ng-establishment.mjs.map +1 -1
  60. package/fesm2022/lucca-front-ng-fancy-box.mjs +4 -4
  61. package/fesm2022/lucca-front-ng-fancy-box.mjs.map +1 -1
  62. package/fesm2022/lucca-front-ng-file-upload.mjs +111 -111
  63. package/fesm2022/lucca-front-ng-file-upload.mjs.map +1 -1
  64. package/fesm2022/lucca-front-ng-filter-pills.mjs +81 -78
  65. package/fesm2022/lucca-front-ng-filter-pills.mjs.map +1 -1
  66. package/fesm2022/lucca-front-ng-footer.mjs +10 -10
  67. package/fesm2022/lucca-front-ng-footer.mjs.map +1 -1
  68. package/fesm2022/lucca-front-ng-form-field.mjs +87 -87
  69. package/fesm2022/lucca-front-ng-form-field.mjs.map +1 -1
  70. package/fesm2022/lucca-front-ng-formly.mjs +77 -78
  71. package/fesm2022/lucca-front-ng-formly.mjs.map +1 -1
  72. package/fesm2022/lucca-front-ng-forms-phone-number-input.mjs +22 -21
  73. package/fesm2022/lucca-front-ng-forms-phone-number-input.mjs.map +1 -1
  74. package/fesm2022/lucca-front-ng-forms-rich-text-input-formatters-html.mjs.map +1 -1
  75. package/fesm2022/lucca-front-ng-forms-rich-text-input-formatters-markdown.mjs +4 -4
  76. package/fesm2022/lucca-front-ng-forms-rich-text-input-formatters-markdown.mjs.map +1 -1
  77. package/fesm2022/lucca-front-ng-forms-rich-text-input-formatters-plain-text.mjs.map +1 -1
  78. package/fesm2022/lucca-front-ng-forms-rich-text-input.mjs +175 -159
  79. package/fesm2022/lucca-front-ng-forms-rich-text-input.mjs.map +1 -1
  80. package/fesm2022/lucca-front-ng-forms.mjs +163 -176
  81. package/fesm2022/lucca-front-ng-forms.mjs.map +1 -1
  82. package/fesm2022/lucca-front-ng-gauge.mjs +20 -20
  83. package/fesm2022/lucca-front-ng-gauge.mjs.map +1 -1
  84. package/fesm2022/lucca-front-ng-grid.mjs +26 -25
  85. package/fesm2022/lucca-front-ng-grid.mjs.map +1 -1
  86. package/fesm2022/lucca-front-ng-highlight-data.mjs +20 -20
  87. package/fesm2022/lucca-front-ng-highlight-data.mjs.map +1 -1
  88. package/fesm2022/lucca-front-ng-horizontal-navigation.mjs +13 -13
  89. package/fesm2022/lucca-front-ng-horizontal-navigation.mjs.map +1 -1
  90. package/fesm2022/lucca-front-ng-icon.mjs +6 -6
  91. package/fesm2022/lucca-front-ng-icon.mjs.map +1 -1
  92. package/fesm2022/lucca-front-ng-inline-message.mjs +4 -4
  93. package/fesm2022/lucca-front-ng-inline-message.mjs.map +1 -1
  94. package/fesm2022/lucca-front-ng-input.mjs +59 -63
  95. package/fesm2022/lucca-front-ng-input.mjs.map +1 -1
  96. package/fesm2022/lucca-front-ng-link.mjs +26 -15
  97. package/fesm2022/lucca-front-ng-link.mjs.map +1 -1
  98. package/fesm2022/lucca-front-ng-listbox.mjs +30 -30
  99. package/fesm2022/lucca-front-ng-listbox.mjs.map +1 -1
  100. package/fesm2022/lucca-front-ng-listing.mjs +16 -16
  101. package/fesm2022/lucca-front-ng-listing.mjs.map +1 -1
  102. package/fesm2022/lucca-front-ng-loading.mjs +10 -10
  103. package/fesm2022/lucca-front-ng-loading.mjs.map +1 -1
  104. package/fesm2022/lucca-front-ng-main-layout.mjs +13 -12
  105. package/fesm2022/lucca-front-ng-main-layout.mjs.map +1 -1
  106. package/fesm2022/lucca-front-ng-mobile-push.mjs +31 -39
  107. package/fesm2022/lucca-front-ng-mobile-push.mjs.map +1 -1
  108. package/fesm2022/lucca-front-ng-modal.mjs +50 -50
  109. package/fesm2022/lucca-front-ng-modal.mjs.map +1 -1
  110. package/fesm2022/lucca-front-ng-multi-select.mjs +249 -221
  111. package/fesm2022/lucca-front-ng-multi-select.mjs.map +1 -1
  112. package/fesm2022/lucca-front-ng-new-badge.mjs +4 -4
  113. package/fesm2022/lucca-front-ng-new-badge.mjs.map +1 -1
  114. package/fesm2022/lucca-front-ng-number-format.mjs +13 -11
  115. package/fesm2022/lucca-front-ng-number-format.mjs.map +1 -1
  116. package/fesm2022/lucca-front-ng-number.mjs +8 -7
  117. package/fesm2022/lucca-front-ng-number.mjs.map +1 -1
  118. package/fesm2022/lucca-front-ng-numeric-badge.mjs +10 -22
  119. package/fesm2022/lucca-front-ng-numeric-badge.mjs.map +1 -1
  120. package/fesm2022/lucca-front-ng-option.mjs +234 -227
  121. package/fesm2022/lucca-front-ng-option.mjs.map +1 -1
  122. package/fesm2022/lucca-front-ng-page-header.mjs +10 -10
  123. package/fesm2022/lucca-front-ng-page-header.mjs.map +1 -1
  124. package/fesm2022/lucca-front-ng-pagination.mjs +38 -38
  125. package/fesm2022/lucca-front-ng-pagination.mjs.map +1 -1
  126. package/fesm2022/lucca-front-ng-plg-push.mjs +5 -54
  127. package/fesm2022/lucca-front-ng-plg-push.mjs.map +1 -1
  128. package/fesm2022/lucca-front-ng-popover.mjs +28 -26
  129. package/fesm2022/lucca-front-ng-popover.mjs.map +1 -1
  130. package/fesm2022/lucca-front-ng-popover2.mjs +33 -36
  131. package/fesm2022/lucca-front-ng-popover2.mjs.map +1 -1
  132. package/fesm2022/lucca-front-ng-popup.mjs +10 -10
  133. package/fesm2022/lucca-front-ng-popup.mjs.map +1 -1
  134. package/fesm2022/lucca-front-ng-read-more.mjs +32 -32
  135. package/fesm2022/lucca-front-ng-read-more.mjs.map +1 -1
  136. package/fesm2022/lucca-front-ng-safe-content.mjs +11 -10
  137. package/fesm2022/lucca-front-ng-safe-content.mjs.map +1 -1
  138. package/fesm2022/lucca-front-ng-scroll.mjs +8 -7
  139. package/fesm2022/lucca-front-ng-scroll.mjs.map +1 -1
  140. package/fesm2022/lucca-front-ng-scrollBox.mjs +66 -1
  141. package/fesm2022/lucca-front-ng-scrollBox.mjs.map +1 -1
  142. package/fesm2022/lucca-front-ng-segmentedControl.mjs +66 -1
  143. package/fesm2022/lucca-front-ng-segmentedControl.mjs.map +1 -1
  144. package/fesm2022/lucca-front-ng-segmentedControlTabs.mjs +93 -1
  145. package/fesm2022/lucca-front-ng-segmentedControlTabs.mjs.map +1 -1
  146. package/fesm2022/lucca-front-ng-select.mjs +20 -21
  147. package/fesm2022/lucca-front-ng-select.mjs.map +1 -1
  148. package/fesm2022/lucca-front-ng-sidepanel.mjs +7 -7
  149. package/fesm2022/lucca-front-ng-sidepanel.mjs.map +1 -1
  150. package/fesm2022/lucca-front-ng-simple-select.mjs +70 -75
  151. package/fesm2022/lucca-front-ng-simple-select.mjs.map +1 -1
  152. package/fesm2022/lucca-front-ng-skeleton.mjs +44 -44
  153. package/fesm2022/lucca-front-ng-skeleton.mjs.map +1 -1
  154. package/fesm2022/lucca-front-ng-statusBadge.mjs +29 -1
  155. package/fesm2022/lucca-front-ng-statusBadge.mjs.map +1 -1
  156. package/fesm2022/lucca-front-ng-tag.mjs +13 -35
  157. package/fesm2022/lucca-front-ng-tag.mjs.map +1 -1
  158. package/fesm2022/lucca-front-ng-time.mjs +120 -119
  159. package/fesm2022/lucca-front-ng-time.mjs.map +1 -1
  160. package/fesm2022/lucca-front-ng-title.mjs +10 -10
  161. package/fesm2022/lucca-front-ng-title.mjs.map +1 -1
  162. package/fesm2022/lucca-front-ng-toast.mjs +23 -23
  163. package/fesm2022/lucca-front-ng-toast.mjs.map +1 -1
  164. package/fesm2022/lucca-front-ng-tooltip.mjs +33 -32
  165. package/fesm2022/lucca-front-ng-tooltip.mjs.map +1 -1
  166. package/fesm2022/lucca-front-ng-tree-select.mjs +21 -20
  167. package/fesm2022/lucca-front-ng-tree-select.mjs.map +1 -1
  168. package/fesm2022/lucca-front-ng-user-popover.mjs +26 -22
  169. package/fesm2022/lucca-front-ng-user-popover.mjs.map +1 -1
  170. package/fesm2022/lucca-front-ng-user.mjs +110 -109
  171. package/fesm2022/lucca-front-ng-user.mjs.map +1 -1
  172. package/form-field/index.d.ts +6 -7
  173. package/forms/index.d.ts +1 -3
  174. package/forms/rich-text-input/index.d.ts +3 -1
  175. package/grid/index.d.ts +2 -2
  176. package/input/index.d.ts +17 -23
  177. package/link/index.d.ts +3 -0
  178. package/multi-select/index.d.ts +2 -1
  179. package/package.json +61 -109
  180. package/plg-push/index.d.ts +1 -13
  181. package/schematics/collection.json +0 -5
  182. package/schematics/lib/angular-component-ast.js +0 -29
  183. package/scrollBox/index.d.ts +19 -1
  184. package/segmentedControl/index.d.ts +28 -1
  185. package/segmentedControlTabs/index.d.ts +34 -1
  186. package/select/index.d.ts +4 -5
  187. package/simple-select/index.d.ts +2 -2
  188. package/statusBadge/index.d.ts +16 -1
  189. package/clear/index.d.ts +0 -30
  190. package/code/index.d.ts +0 -9
  191. package/fesm2022/lucca-front-ng-clear.mjs +0 -94
  192. package/fesm2022/lucca-front-ng-clear.mjs.map +0 -1
  193. package/fesm2022/lucca-front-ng-code.mjs +0 -21
  194. package/fesm2022/lucca-front-ng-code.mjs.map +0 -1
  195. package/fesm2022/lucca-front-ng-form-header.mjs +0 -23
  196. package/fesm2022/lucca-front-ng-form-header.mjs.map +0 -1
  197. package/fesm2022/lucca-front-ng-form.mjs +0 -24
  198. package/fesm2022/lucca-front-ng-form.mjs.map +0 -1
  199. package/fesm2022/lucca-front-ng-progress-bar.mjs +0 -28
  200. package/fesm2022/lucca-front-ng-progress-bar.mjs.map +0 -1
  201. package/fesm2022/lucca-front-ng-scroll-box.mjs +0 -46
  202. package/fesm2022/lucca-front-ng-scroll-box.mjs.map +0 -1
  203. package/fesm2022/lucca-front-ng-segmented-control-tabs.mjs +0 -97
  204. package/fesm2022/lucca-front-ng-segmented-control-tabs.mjs.map +0 -1
  205. package/fesm2022/lucca-front-ng-segmented-control.mjs +0 -71
  206. package/fesm2022/lucca-front-ng-segmented-control.mjs.map +0 -1
  207. package/fesm2022/lucca-front-ng-sortable-list.mjs +0 -43
  208. package/fesm2022/lucca-front-ng-sortable-list.mjs.map +0 -1
  209. package/fesm2022/lucca-front-ng-status-badge.mjs +0 -34
  210. package/fesm2022/lucca-front-ng-status-badge.mjs.map +0 -1
  211. package/fesm2022/lucca-front-ng-table-of-content.mjs +0 -39
  212. package/fesm2022/lucca-front-ng-table-of-content.mjs.map +0 -1
  213. package/fesm2022/lucca-front-ng-vertical-navigation.mjs +0 -91
  214. package/fesm2022/lucca-front-ng-vertical-navigation.mjs.map +0 -1
  215. package/form/index.d.ts +0 -9
  216. package/form-header/index.d.ts +0 -9
  217. package/progress-bar/index.d.ts +0 -14
  218. package/schematics/lu-text-input/index.js +0 -24
  219. package/schematics/lu-text-input/migration.js +0 -104
  220. package/schematics/lu-text-input/migration.spec.js +0 -23
  221. package/schematics/lu-text-input/schema.json +0 -23
  222. package/scroll-box/index.d.ts +0 -15
  223. package/segmented-control/index.d.ts +0 -28
  224. package/segmented-control-tabs/index.d.ts +0 -34
  225. package/sortable-list/index.d.ts +0 -20
  226. package/status-badge/index.d.ts +0 -16
  227. package/table-of-content/index.d.ts +0 -16
  228. package/vertical-navigation/index.d.ts +0 -42
@@ -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 { 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\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\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<readonly number[] | null>(null);\n\tuniqueOperationIds = input<readonly 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 uniqueOperationIds = this.uniqueOperationIds();\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...(uniqueOperationIds ? { uniqueOperations: uniqueOperationIds.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 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,CAAC,IAAI,CAAC,GAAG,CAAoB,IAAI,CAAC,iBAAiB,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,KAAK,GAAG,CAAC,KAAK,CAAC,CAAC;AAC3I,QAAA,IAAA,CAAA,gBAAgB,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAoB,IAAI,CAAC,aAAa,EAAE,EAAE,MAAM,EAAE,I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,EAAE,oCAAoC;AAC7C,4BAAA,WAAW,EAAE,UAAU,CAAC,yCAAyC,CAAC;AAClE,yBAAA;AACD,qBAAA;AACD,iBAAA;;;ACrBD;;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 { 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\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<readonly number[] | null>(null);\n\tuniqueOperationIds = input<readonly 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.groupingSignal.set({\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\tconst options$ = 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\n\t\treturn this.#groupingService.useGrouping$.pipe(switchMap(() => options$));\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 uniqueOperationIds = this.uniqueOperationIds();\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...(uniqueOperationIds ? { uniqueOperations: uniqueOperationIds.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 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,IAAA,CAAA,iBAAiB,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,CAAC,IAAI,CAAC,GAAG,CAAoB,IAAI,CAAC,iBAAiB,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,KAAK,GAAG,CAAC,KAAK,CAAC,CAAC;AAC3I,QAAA,IAAA,CAAA,gBAAgB,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAoB,IAAI,CAAC,aAAa,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,KAAK,GAAG,CAAC,KAAK,CAAC,CAAC;AAEtI,QAAA,IAAA,CAAA,YAAY,GAAG,aAAa,CAAC,CAAC,IAAI,CAAC,gBAAgB,EAAE,IAAI,CAAC,oBAAoB,CAAC,CAAC,CAAC,IAAI,CAC3F,GAAG,CAAC,CAAC,CAAC,OAAO,E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AoC;AAC7C,4BAAA,WAAW,EAAE,UAAU,CAAC,yCAAyC,CAAC;AAClE,yBAAA;AACD,qBAAA;AACD,iBAAA;;;ACtBD;;AAEG;;;;"}
@@ -12,13 +12,14 @@ 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: "20.0.2", ngImport: i0, type: LuJobQualificationGroupingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
16
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.2", 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: "20.3.12", ngImport: i0, type: LuJobQualificationGroupingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
16
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.12", 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: "20.0.2", ngImport: i0, type: LuJobQualificationGroupingComponent, decorators: [{
18
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: LuJobQualificationGroupingComponent, decorators: [{
19
19
  type: Component,
20
20
  args: [{
21
21
  selector: 'lu-job-qualification-grouping',
22
+ standalone: true,
22
23
  imports: [AsyncPipe],
23
24
  template: `{{ group.options[0].job.name }}`,
24
25
  }]
@@ -28,9 +29,9 @@ class LuCoreSelectJobQualificationsDirective extends ALuCoreSelectApiDirective {
28
29
  constructor() {
29
30
  super();
30
31
  this.httpClient = inject(HttpClient);
31
- this.url = input('/organization/structure/api/job-qualifications');
32
- this.filters = input(null);
33
- this.searchDelimiter = input(' ');
32
+ this.url = input('/organization/structure/api/job-qualifications', ...(ngDevMode ? [{ debugName: "url" }] : []));
33
+ this.filters = input(null, ...(ngDevMode ? [{ debugName: "filters" }] : []));
34
+ this.searchDelimiter = input(' ', ...(ngDevMode ? [{ debugName: "searchDelimiter" }] : []));
34
35
  this.clue = toSignal(this.clue$);
35
36
  this.params$ = toObservable(computed(() => {
36
37
  const filters = this.filters();
@@ -52,10 +53,10 @@ class LuCoreSelectJobQualificationsDirective extends ALuCoreSelectApiDirective {
52
53
  },
53
54
  })), map((res) => res?.count ?? 0));
54
55
  this.optionKey = (option) => option.id;
55
- this.select.grouping = {
56
+ this.select.groupingSignal.set({
56
57
  selector: (option) => option.job.id,
57
58
  content: LuJobQualificationGroupingComponent,
58
- };
59
+ });
59
60
  }
60
61
  getOptions(params, page) {
61
62
  return this.httpClient
@@ -68,20 +69,21 @@ class LuCoreSelectJobQualificationsDirective extends ALuCoreSelectApiDirective {
68
69
  })
69
70
  .pipe(map((res) => (Array.isArray(res) ? res : res?.items) ?? []));
70
71
  }
71
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: LuCoreSelectJobQualificationsDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
72
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.0.2", 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: [
72
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: LuCoreSelectJobQualificationsDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
73
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.12", 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
74
  {
74
75
  provide: CORE_SELECT_API_TOTAL_COUNT_PROVIDER,
75
76
  useExisting: forwardRef(() => LuCoreSelectJobQualificationsDirective),
76
77
  },
77
78
  ], exportAs: ["jobQualifications"], usesInheritance: true, ngImport: i0 }); }
78
79
  }
79
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: LuCoreSelectJobQualificationsDirective, decorators: [{
80
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: LuCoreSelectJobQualificationsDirective, decorators: [{
80
81
  type: Directive,
81
82
  args: [{
82
83
  // The attribute is already prefixed with "lu-simple-select" / "lu-multi-select"
83
84
  // eslint-disable-next-line @angular-eslint/directive-selector
84
85
  selector: 'lu-simple-select[jobQualifications],lu-multi-select[jobQualifications]',
86
+ standalone: true,
85
87
  exportAs: 'jobQualifications',
86
88
  providers: [
87
89
  {
@@ -90,7 +92,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.2", ngImpor
90
92
  },
91
93
  ],
92
94
  }]
93
- }], ctorParameters: () => [] });
95
+ }], ctorParameters: () => [], propDecorators: { url: [{ type: i0.Input, args: [{ isSignal: true, alias: "url", required: false }] }], filters: [{ type: i0.Input, args: [{ isSignal: true, alias: "filters", required: false }] }], searchDelimiter: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchDelimiter", required: false }] }] } });
94
96
 
95
97
  /**
96
98
  * Generated bundle index. Do not edit.
@@ -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\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\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 optionKey = (option: T) => option.id;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;MAWa,mCAAmC,CAAA;AALhD,IAAA,WAAA,GAAA;AAMC,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAA+D,cAAc,CAAC,CAAC,SAAS;AACtG;8GAFY,mCAAmC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;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;;2FAE/B,mCAAmC,EAAA,UAAA,EAAA,CAAA;kBAL/C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,+BAA+B;oBACzC,OAAO,EAAE,CAAC,SAAS,CAAC;AACpB,oBAAA,QAAQ,EAAE,CAAiC,+BAAA,CAAA;AAC3C,iBAAA;;;ACWK,MAAO,sCACZ,SAAQ,yBAA4B,CAAA;AAWpC,IAAA,WAAA,GAAA;AACC,QAAA,KAAK,EAAE;AATE,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;AAEzC,QAAA,IAAA,CAAA,GAAG,GAAG,KAAK,CAAS,gDAAgD,CAAC;AACrE,QAAA,IAAA,CAAA,OAAO,GAAG,KAAK,CAAmD,IAAI,CAAC;AACvE,QAAA,IAAA,CAAA,eAAe,GAAG,KAAK,CAAS,GAAG,CAA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;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;;2FAEW,sCAAsC,EAAA,UAAA,EAAA,CAAA;kBAZlD,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;;;AAGV,oBAAA,QAAQ,EAAE,wEAAwE;AAClF,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;;;ACpBD;;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.groupingSignal.set({\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 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;AACtG,IAAA;+GAFY,mCAAmC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAnC,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,mCAAmC,yFAFrC,CAAA,+BAAA,CAAiC,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,CAAA;;4FAE/B,mCAAmC,EAAA,UAAA,EAAA,CAAA;kBAN/C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oB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- includeFormerEmployees: 'Inclusief medewerkers die zijn vertrokken',
23
+ en: {
24
+ me: 'Me:',
25
+ includeFormerEmployees: 'Include former employees',
26
26
  },
27
- nl: {
28
- me: 'Ik:',
29
- includeFormerEmployees: 'Inclusief medewerkers die zijn vertrokken',
27
+ de: {
28
+ me: 'Ich:',
29
+ includeFormerEmployees: 'Ausgeschiedene Mitarbeitende einbeziehen',
30
+ },
31
+ fr: {
32
+ me: 'Moi :',
33
+ includeFormerEmployees: 'Inclure les collaborateurs partis',
30
34
  },
31
35
  it: {
32
36
  me: 'Io:',
33
37
  includeFormerEmployees: 'Includere gli ex collaboratori',
34
38
  },
35
- fr: {
36
- me: 'Moi :',
37
- includeFormerEmployees: 'Inclure les collaborateurs partis',
39
+ nl: {
40
+ me: 'Ik:',
41
+ includeFormerEmployees: 'Inclusief medewerkers die zijn vertrokken',
38
42
  },
39
- pt: {
40
- me: 'Eu:',
41
- includeFormerEmployees: 'Incluir os trabalhadores que saíram',
43
+ 'nl-BE': {
44
+ me: 'Ik:',
45
+ includeFormerEmployees: 'Inclusief medewerkers die zijn vertrokken',
42
46
  },
43
47
  es: {
44
48
  me: 'Yo:',
45
49
  includeFormerEmployees: 'Incluir a los empleados inactivos',
46
50
  },
47
- de: {
48
- me: 'Ich:',
49
- includeFormerEmployees: 'Ausgeschiedene Mitarbeitende einbeziehen',
50
- },
51
- en: {
52
- me: 'Me:',
53
- includeFormerEmployees: 'Include former employees',
51
+ pt: {
52
+ me: 'Eu:',
53
+ includeFormerEmployees: 'Incluir os trabalhadores que saíram',
54
54
  },
55
55
  };
56
56
 
@@ -73,8 +73,8 @@ class LuCoreSelectFormerEmployeesComponent {
73
73
  this.context.includeFormerEmployees.set(!this.context.includeFormerEmployees());
74
74
  });
75
75
  }
76
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: LuCoreSelectFormerEmployeesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
77
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.2", type: LuCoreSelectFormerEmployeesComponent, isStandalone: true, selector: "lu-core-select-former-employees", hostDirectives: [{ directive: i1.ɵCoreSelectPanelElement }], ngImport: i0, template: `
76
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: LuCoreSelectFormerEmployeesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
77
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.12", type: LuCoreSelectFormerEmployeesComponent, isStandalone: true, selector: "lu-core-select-former-employees", hostDirectives: [{ directive: i1.ɵCoreSelectPanelElement }], ngImport: i0, template: `
78
78
  <div class="formerEmployeeDisplayer optionItem">
79
79
  <div class="optionItem-value" [class.is-selected]="context.includeFormerEmployees()" (click)="context.includeFormerEmployees.set(!context.includeFormerEmployees())">
80
80
  {{ intl.includeFormerEmployees }}
@@ -82,9 +82,9 @@ class LuCoreSelectFormerEmployeesComponent {
82
82
  </div>
83
83
  `, isInline: true, styles: ["@charset \"UTF-8\";@layer base{:root{--components-options-item-padding-vertical: var(--pr-t-spacings-50);--components-options-item-padding-horizontal: var(--pr-t-spacings-100);--components-options-item-multiple-padding: 2.25rem;--components-options-item-icon-color: var(--palettes-neutral-800);--components-options-checkbox-size: 1.25rem;--components-options-checkbox-color: var(--palettes-700, var(--palettes-product-700));--components-options-checkbox-border-radius: var(--pr-t-border-radius-small);--components-options-checkbox-border-color: var(--palettes-neutral-700);--components-options-establishment-multiple-padding: 2rem}}@layer reset,base,components,mods,product,utils;@layer components{:host{--components-options-checkbox-color: var(--palettes-700, var(--palettes-product-700));display:block;scroll-margin:var(--pr-t-spacings-50)}.lu-picker-content-group :host{scroll-margin-block-start:var(--pr-t-spacings-400)}}@layer mods{:host.withAddOption{scroll-margin-block-end:var(--pr-t-spacings-600)}}@layer components{.optionItem{position:relative}}@layer components{.optionItem-value{position:relative;border-radius:var(--pr-t-border-radius-default);display:block;padding-block:var(--components-options-item-padding-vertical);padding-inline:var(--components-options-item-padding-horizontal);transition:background-color 50ms;cursor:pointer}}@layer mods{.optionItem-value.is-selected,:host-context([aria-selected=true]) .optionItem-value{background-color:var(--palettes-50, var(--palettes-product-50))}.optionItem-value.is-selected:before,:host-context([aria-selected=true]) .optionItem-value:before{content:\"\";position:absolute;inset-block:0;inset-inline-start:calc(var(--pr-t-spacings-50) * -1);inline-size:2px;background-color:var(--palettes-700, var(--palettes-product-700));border-start-end-radius:var(--pr-t-border-radius-default);border-end-end-radius:var(--pr-t-border-radius-default)}.optionItem-value.is-selected:hover,:host-context([aria-selected=true]) .optionItem-value:hover{background-color:var(--palettes-100, var(--palettes-product-100))}.optionItem-value.is-selected:active,:host-context([aria-selected=true]) .optionItem-value:active{background-color:var(--palettes-200, var(--palettes-product-200))}:host-context(.is-highlighted) .optionItem-value.is-selected,:host-context(.is-highlighted) :host-context([aria-selected=true]) .optionItem-value{background-color:var(--palettes-100, var(--palettes-product-100))}:host-context(.is-highlighted) .optionItem-value.is-selected:hover,:host-context(.is-highlighted) :host-context([aria-selected=true]) .optionItem-value:hover{background-color:var(--palettes-200, var(--palettes-product-200))}.optionItem-value:hover{background-color:var(--palettes-neutral-50)}:host-context(.is-highlighted) .optionItem-value{background-color:var(--palettes-neutral-50)}:host-context(.is-highlighted) .optionItem-value:hover{background-color:var(--palettes-neutral-50)}:host-context(.is-highlighted) .optionItem-value:active{background-color:var(--palettes-neutral-100)}.optionItem-value:active{background-color:var(--palettes-neutral-100)}}@layer components{.optionItem-value-group{color:var(--palettes-neutral-600);font:var(--pr-t-font-body-S)}}@layer components{:host-context(.lu-select-value) .optionItem-value{padding:0;overflow:hidden;text-overflow:ellipsis}}@layer mods{:host-context(.lu-select-value) .optionItem-value:hover,:host-context(.is-highlighted) :host-context(.lu-select-value) .optionItem-value{background-color:inherit}}@layer mods{:host-context(.mod-multiple) .optionItem-value,.formerEmployeeDisplayer .optionItem-value{position:relative;padding-inline-start:var(--components-options-item-multiple-padding)}:host-context(.mod-multiple) .optionItem-value:after,:host-context(.mod-multiple) .optionItem-value:before,.formerEmployeeDisplayer .optionItem-value:after,.formerEmployeeDisplayer .optionItem-value:before{display:block;position:absolute;inset-inline-start:var(--pr-t-spacings-100);inset-block-start:var(--pr-t-spacings-75)}:host-context(.mod-multiple) .optionItem-value:before,.formerEmployeeDisplayer .optionItem-value:before{content:\"\";background-color:var(--palettes-neutral-0);border-radius:var(--components-options-checkbox-border-radius);box-shadow:inset 0 0 0 2px var(--components-options-checkbox-border-color);display:block;block-size:var(--components-options-checkbox-size);transition-property:background-color,box-shadow;transition-duration:var(--commons-animations-durations-fast);inline-size:var(--components-options-checkbox-size)}:host-context(.mod-multiple) .optionItem-value:after,.formerEmployeeDisplayer .optionItem-value:after{--icon-content: \"\\e97d\";font-weight:var(--pr-t-font-fontWeight-regular);display:inline-block;vertical-align:text-bottom;font-style:normal;font-family:Lucca icons;content:var(--icon-content)/\"\";-webkit-font-smoothing:antialiased;text-transform:none;color:transparent;font-size:var(--pr-t-font-body-S-lineHeight);line-height:var(--components-options-checkbox-size);position:absolute;text-align:center;transform:scale(0);transition:all .1s;inline-size:var(--components-options-checkbox-size)}:host-context(.mod-multiple) .optionItem-value.is-selected:before,:host-context([aria-selected=true]) :host-context(.mod-multiple) .optionItem-value:before,.formerEmployeeDisplayer .optionItem-value.is-selected:before,:host-context([aria-selected=true]) .formerEmployeeDisplayer .optionItem-value:before{background-color:var(--components-options-checkbox-color);box-shadow:inset 0 0 0 2px var(--components-options-checkbox-color)}:host-context(.mod-multiple) .optionItem-value.is-selected:after,:host-context([aria-selected=true]) :host-context(.mod-multiple) .optionItem-value:after,.formerEmployeeDisplayer .optionItem-value.is-selected:after,:host-context([aria-selected=true]) .formerEmployeeDisplayer .optionItem-value:after{color:var(--palettes-neutral-0);transform:scale(1)}:host-context(.mod-multiple) .optionItem-value.is-selected.is-disabled,:host-context([aria-selected=true]) :host-context(.mod-multiple) .optionItem-value.is-disabled,.formerEmployeeDisplayer .optionItem-value.is-selected.is-disabled,:host-context([aria-selected=true]) .formerEmployeeDisplayer .optionItem-value.is-disabled{--components-options-checkbox-color: var(--commons-disabled-background);background-color:transparent}:host-context(.mod-multiple) .optionItem-value.is-selected.is-disabled:after,:host-context([aria-selected=true]) :host-context(.mod-multiple) .optionItem-value.is-disabled:after,.formerEmployeeDisplayer .optionItem-value.is-selected.is-disabled:after,:host-context([aria-selected=true]) .formerEmployeeDisplayer .optionItem-value.is-disabled:after{color:var(--palettes-neutral-500)}:host-context(.mod-multiple) .optionItem-value.is-disabled,.formerEmployeeDisplayer .optionItem-value.is-disabled{--components-options-checkbox-border-color: var(--palettes-neutral-500)}:host-context(.mod-multiple) .optionItem-value:not(.is-disabled):hover:before,.formerEmployeeDisplayer .optionItem-value:not(.is-disabled):hover:before{box-shadow:inset 0 0 0 2px var(--components-options-checkbox-color)}}@layer components{:host-context(.mod-multiple).establishmentOption .optionItem-value,.formerEmployeeDisplayer.establishmentOption .optionItem-value{position:relative;padding-inline-start:calc(var(--components-options-checkbox-size) + var(--pr-t-spacings-100) * 2)}:host-context(.mod-multiple).establishmentOption .optionItem-value:before,:host-context(.mod-multiple).establishmentOption .optionItem-value:after,.formerEmployeeDisplayer.establishmentOption .optionItem-value:before,.formerEmployeeDisplayer.establishmentOption .optionItem-value:after{inset-inline-start:var(--pr-t-spacings-100)}}@layer components{:host{display:block;background-color:var(--palettes-neutral-0);border-block-end:1px solid var(--commons-border-200);padding-block:0 var(--components-options-item-padding-vertical);padding-inline:var(--pr-t-spacings-50);margin-block:0 var(--components-options-item-padding-vertical);margin-inline:calc(-1 * var(--pr-t-spacings-50))}}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }] }); }
84
84
  }
85
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: LuCoreSelectFormerEmployeesComponent, decorators: [{
85
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: LuCoreSelectFormerEmployeesComponent, decorators: [{
86
86
  type: Component,
87
- args: [{ selector: 'lu-core-select-former-employees', imports: [FormsModule], hostDirectives: [_CoreSelectPanelElement], template: `
87
+ args: [{ selector: 'lu-core-select-former-employees', standalone: true, imports: [FormsModule], hostDirectives: [_CoreSelectPanelElement], template: `
88
88
  <div class="formerEmployeeDisplayer optionItem">
89
89
  <div class="optionItem-value" [class.is-selected]="context.includeFormerEmployees()" (click)="context.includeFormerEmployees.set(!context.includeFormerEmployees())">
90
90
  {{ intl.includeFormerEmployees }}
@@ -98,14 +98,14 @@ class LuUserDisplayerComponent {
98
98
  this.context = inject(LU_OPTION_CONTEXT);
99
99
  this.userDirective = inject(LuCoreSelectUsersDirective);
100
100
  }
101
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: LuUserDisplayerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
102
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.2", type: LuUserDisplayerComponent, isStandalone: true, selector: "lu-user-displayer", ngImport: i0, template: `
101
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: LuUserDisplayerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
102
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.12", type: LuUserDisplayerComponent, isStandalone: true, selector: "lu-user-displayer", ngImport: i0, template: `
103
103
  @if (context.option$ | async; as user) {
104
104
  <span translate="no">{{ user | luUserDisplay: userDirective.displayFormat() }}</span>
105
105
  }
106
106
  `, isInline: true, dependencies: [{ kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: LuUserDisplayPipe, name: "luUserDisplay" }] }); }
107
107
  }
108
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: LuUserDisplayerComponent, decorators: [{
108
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: LuUserDisplayerComponent, decorators: [{
109
109
  type: Component,
110
110
  args: [{
111
111
  selector: 'lu-user-displayer',
@@ -115,6 +115,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.2", ngImpor
115
115
  <span translate="no">{{ user | luUserDisplay: userDirective.displayFormat() }}</span>
116
116
  }
117
117
  `,
118
+ standalone: true,
118
119
  }]
119
120
  }] });
120
121
 
@@ -168,10 +169,10 @@ class LuCoreSelectUserHomonymsService {
168
169
  };
169
170
  }));
170
171
  }
171
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: LuCoreSelectUserHomonymsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
172
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: LuCoreSelectUserHomonymsService, providedIn: 'root' }); }
172
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: LuCoreSelectUserHomonymsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
173
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: LuCoreSelectUserHomonymsService, providedIn: 'root' }); }
173
174
  }
174
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: LuCoreSelectUserHomonymsService, decorators: [{
175
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: LuCoreSelectUserHomonymsService, decorators: [{
175
176
  type: Injectable,
176
177
  args: [{ providedIn: 'root' }]
177
178
  }] });
@@ -184,8 +185,8 @@ class LuUserOptionComponent {
184
185
  this.hasEmptyClue$ = this.userDirective.select.clueChange.pipe(startWith(this.userDirective.select.clue), map((clue) => !clue));
185
186
  this.customUserOptionTpl = this.userDirective.customUserOptionTpl;
186
187
  }
187
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: LuUserOptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
188
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.2", type: LuUserOptionComponent, isStandalone: true, selector: "lu-user-option", ngImport: i0, template: `
188
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: LuUserOptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
189
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.12", type: LuUserOptionComponent, isStandalone: true, selector: "lu-user-option", ngImport: i0, template: `
189
190
  @if (context.option$ | async; as user) {
190
191
  @if (userDirective.displayMeOption() && user.id === userDirective.currentUserId && hasEmptyClue$ | async) {
191
192
  <div>
@@ -204,9 +205,9 @@ class LuUserOptionComponent {
204
205
  <ng-template #defaultUserTpl let-user>
205
206
  <span translate="no">{{ user | luUserDisplay: userDirective.displayFormat() }}</span>
206
207
  </ng-template>
207
- `, isInline: true, styles: [".lu-select-additionalInformation{font-size:80%;font-style:italic;margin-block-start:-.25em}\n"], dependencies: [{ kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: LuUserDisplayPipe, name: "luUserDisplay" }, { kind: "directive", type: _LuOptionOutletDirective, selector: "[luOptionOutlet]", inputs: ["luOptionOutlet", "luOptionOutletValue", "luOptionShowNull"] }] }); }
208
+ `, isInline: true, styles: [".lu-select-additionalInformation{font-size:80%;font-style:italic;margin-block-start:-.25em}\n"], dependencies: [{ kind: "directive", type: _LuOptionOutletDirective, selector: "[luOptionOutlet]", inputs: ["luOptionOutlet", "luOptionOutletValue", "luOptionShowNull"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: LuUserDisplayPipe, name: "luUserDisplay" }] }); }
208
209
  }
209
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: LuUserOptionComponent, decorators: [{
210
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: LuUserOptionComponent, decorators: [{
210
211
  type: Component,
211
212
  args: [{ selector: 'lu-user-option', imports: [AsyncPipe, LuUserDisplayPipe, _LuOptionOutletDirective], template: `
212
213
  @if (context.option$ | async; as user) {
@@ -227,7 +228,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.2", ngImpor
227
228
  <ng-template #defaultUserTpl let-user>
228
229
  <span translate="no">{{ user | luUserDisplay: userDirective.displayFormat() }}</span>
229
230
  </ng-template>
230
- `, styles: [".lu-select-additionalInformation{font-size:80%;font-style:italic;margin-block-start:-.25em}\n"] }]
231
+ `, standalone: true, styles: [".lu-select-additionalInformation{font-size:80%;font-style:italic;margin-block-start:-.25em}\n"] }]
231
232
  }] });
232
233
 
233
234
  function provideCoreSelectUsersContext(directiveFn) {
@@ -266,20 +267,20 @@ class LuCoreSelectUsersDirective extends ALuCoreSelectApiDirective {
266
267
  this.#userFields = 'id,firstName,lastName,picture.href';
267
268
  this.httpClient = inject(HttpClient);
268
269
  this.currentUserId = inject(LU_CORE_SELECT_CURRENT_USER_ID);
269
- this.displayFormat = input(LuDisplayFullname.lastfirst);
270
- this.filters = input({});
271
- this.url = input(null);
272
- this.orderBy = input(null);
273
- this.operationIds = input(null);
274
- this.uniqueOperationIds = input(null);
275
- this.appInstanceId = input(null);
276
- this.enableFormerEmployees = input(false, { transform: booleanAttribute });
277
- this.displayMeOption = input(true);
278
- this.customUserOptionTpl = model();
279
- this.includeFormerEmployees = signal(false);
280
- this.searchDelimiter = input(' ');
281
- this.defaultUrl = computed(() => (this.uniqueOperationIds()?.length || (this.appInstanceId() && this.operationIds()?.length) ? this.#defaultScopedSearchUrl : this.#defaultSearchUrl));
282
- this.urlOrDefault = computed(() => this.url() ?? this.defaultUrl());
270
+ this.displayFormat = input(LuDisplayFullname.lastfirst, ...(ngDevMode ? [{ debugName: "displayFormat" }] : []));
271
+ this.filters = input({}, ...(ngDevMode ? [{ debugName: "filters" }] : []));
272
+ this.url = input(null, ...(ngDevMode ? [{ debugName: "url" }] : []));
273
+ this.orderBy = input(null, ...(ngDevMode ? [{ debugName: "orderBy" }] : []));
274
+ this.operationIds = input(null, ...(ngDevMode ? [{ debugName: "operationIds" }] : []));
275
+ this.uniqueOperationIds = input(null, ...(ngDevMode ? [{ debugName: "uniqueOperationIds" }] : []));
276
+ this.appInstanceId = input(null, ...(ngDevMode ? [{ debugName: "appInstanceId" }] : []));
277
+ this.enableFormerEmployees = input(false, ...(ngDevMode ? [{ debugName: "enableFormerEmployees", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
278
+ this.displayMeOption = input(true, ...(ngDevMode ? [{ debugName: "displayMeOption" }] : []));
279
+ this.customUserOptionTpl = model(...(ngDevMode ? [undefined, { debugName: "customUserOptionTpl" }] : []));
280
+ this.includeFormerEmployees = signal(false, ...(ngDevMode ? [{ debugName: "includeFormerEmployees" }] : []));
281
+ this.searchDelimiter = input(' ', ...(ngDevMode ? [{ debugName: "searchDelimiter" }] : []));
282
+ this.defaultUrl = computed(() => (this.uniqueOperationIds()?.length || (this.appInstanceId() && this.operationIds()?.length) ? this.#defaultScopedSearchUrl : this.#defaultSearchUrl), ...(ngDevMode ? [{ debugName: "defaultUrl" }] : []));
283
+ this.urlOrDefault = computed(() => this.url() ?? this.defaultUrl(), ...(ngDevMode ? [{ debugName: "urlOrDefault" }] : []));
283
284
  this.clue = toSignal(this.clue$);
284
285
  this.params$ = toObservable(computed(() => {
285
286
  const orderBy = this.orderBy();
@@ -357,19 +358,20 @@ class LuCoreSelectUsersDirective extends ALuCoreSelectApiDirective {
357
358
  isLastPage: page.isLastPage,
358
359
  })))));
359
360
  }
360
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: LuCoreSelectUsersDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
361
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.0.2", 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 }, uniqueOperationIds: { classPropertyName: "uniqueOperationIds", publicName: "uniqueOperationIds", 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 }, customUserOptionTpl: { classPropertyName: "customUserOptionTpl", publicName: "customUserOptionTpl", isSignal: true, isRequired: false, transformFunction: null }, searchDelimiter: { classPropertyName: "searchDelimiter", publicName: "searchDelimiter", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { customUserOptionTpl: "customUserOptionTplChange" }, providers: [provideBaseCoreSelectUsersContext(() => LuCoreSelectUsersDirective)], exportAs: ["luUsers"], usesInheritance: true, ngImport: i0 }); }
361
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: LuCoreSelectUsersDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
362
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.12", 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 }, uniqueOperationIds: { classPropertyName: "uniqueOperationIds", publicName: "uniqueOperationIds", 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 }, customUserOptionTpl: { classPropertyName: "customUserOptionTpl", publicName: "customUserOptionTpl", isSignal: true, isRequired: false, transformFunction: null }, searchDelimiter: { classPropertyName: "searchDelimiter", publicName: "searchDelimiter", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { customUserOptionTpl: "customUserOptionTplChange" }, providers: [provideBaseCoreSelectUsersContext(() => LuCoreSelectUsersDirective)], exportAs: ["luUsers"], usesInheritance: true, ngImport: i0 }); }
362
363
  }
363
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: LuCoreSelectUsersDirective, decorators: [{
364
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: LuCoreSelectUsersDirective, decorators: [{
364
365
  type: Directive,
365
366
  args: [{
366
367
  // The attribute is already prefixed with "lu-simple-select"
367
368
  // eslint-disable-next-line @angular-eslint/directive-selector
368
369
  selector: 'lu-simple-select[users],lu-multi-select[users]',
370
+ standalone: true,
369
371
  exportAs: 'luUsers',
370
372
  providers: [provideBaseCoreSelectUsersContext(() => LuCoreSelectUsersDirective)],
371
373
  }]
372
- }], ctorParameters: () => [] });
374
+ }], ctorParameters: () => [], propDecorators: { displayFormat: [{ type: i0.Input, args: [{ isSignal: true, alias: "displayFormat", required: false }] }], filters: [{ type: i0.Input, args: [{ isSignal: true, alias: "filters", required: false }] }], url: [{ type: i0.Input, args: [{ isSignal: true, alias: "url", required: false }] }], orderBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "orderBy", required: false }] }], operationIds: [{ type: i0.Input, args: [{ isSignal: true, alias: "operationIds", required: false }] }], uniqueOperationIds: [{ type: i0.Input, args: [{ isSignal: true, alias: "uniqueOperationIds", required: false }] }], appInstanceId: [{ type: i0.Input, args: [{ isSignal: true, alias: "appInstanceId", required: false }] }], enableFormerEmployees: [{ type: i0.Input, args: [{ isSignal: true, alias: "enableFormerEmployees", required: false }] }], displayMeOption: [{ type: i0.Input, args: [{ isSignal: true, alias: "displayMeOption", required: false }] }], customUserOptionTpl: [{ type: i0.Input, args: [{ isSignal: true, alias: "customUserOptionTpl", required: false }] }, { type: i0.Output, args: ["customUserOptionTplChange"] }], searchDelimiter: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchDelimiter", required: false }] }] } });
373
375
  class LuCoreSelectUserOptionDirective {
374
376
  #templateRef = inject((TemplateRef));
375
377
  set usersDirective(usersDirective) {
@@ -378,13 +380,14 @@ class LuCoreSelectUserOptionDirective {
378
380
  static ngTemplateContextGuard(_dir, ctx) {
379
381
  return true;
380
382
  }
381
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: LuCoreSelectUserOptionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
382
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.2", type: LuCoreSelectUserOptionDirective, isStandalone: true, selector: "[luUserOption]", inputs: { usersDirective: ["luUserOptionUsersRef", "usersDirective"] }, ngImport: i0 }); }
383
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: LuCoreSelectUserOptionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
384
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.12", type: LuCoreSelectUserOptionDirective, isStandalone: true, selector: "[luUserOption]", inputs: { usersDirective: ["luUserOptionUsersRef", "usersDirective"] }, ngImport: i0 }); }
383
385
  }
384
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: LuCoreSelectUserOptionDirective, decorators: [{
386
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: LuCoreSelectUserOptionDirective, decorators: [{
385
387
  type: Directive,
386
388
  args: [{
387
389
  selector: '[luUserOption]',
390
+ standalone: true,
388
391
  }]
389
392
  }], propDecorators: { usersDirective: [{
390
393
  type: Input,