@lucca-front/ng 21.3.1 → 21.4.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (236) hide show
  1. package/fesm2022/lucca-front-ng-a11y.mjs +23 -16
  2. package/fesm2022/lucca-front-ng-a11y.mjs.map +1 -1
  3. package/fesm2022/lucca-front-ng-activity-feed.mjs +27 -18
  4. package/fesm2022/lucca-front-ng-activity-feed.mjs.map +1 -1
  5. package/fesm2022/lucca-front-ng-api.mjs +42 -42
  6. package/fesm2022/lucca-front-ng-api.mjs.map +1 -1
  7. package/fesm2022/lucca-front-ng-app-layout.mjs +3 -3
  8. package/fesm2022/lucca-front-ng-app-layout.mjs.map +1 -1
  9. package/fesm2022/lucca-front-ng-box.mjs +5 -4
  10. package/fesm2022/lucca-front-ng-box.mjs.map +1 -1
  11. package/fesm2022/lucca-front-ng-breadcrumbs.mjs +12 -9
  12. package/fesm2022/lucca-front-ng-breadcrumbs.mjs.map +1 -1
  13. package/fesm2022/lucca-front-ng-bubble-icon.mjs +19 -11
  14. package/fesm2022/lucca-front-ng-bubble-icon.mjs.map +1 -1
  15. package/fesm2022/lucca-front-ng-bubble-illustration.mjs +13 -8
  16. package/fesm2022/lucca-front-ng-bubble-illustration.mjs.map +1 -1
  17. package/fesm2022/lucca-front-ng-callout.mjs +90 -57
  18. package/fesm2022/lucca-front-ng-callout.mjs.map +1 -1
  19. package/fesm2022/lucca-front-ng-chip.mjs +21 -12
  20. package/fesm2022/lucca-front-ng-chip.mjs.map +1 -1
  21. package/fesm2022/lucca-front-ng-clear.mjs +11 -7
  22. package/fesm2022/lucca-front-ng-clear.mjs.map +1 -1
  23. package/fesm2022/lucca-front-ng-code.mjs +3 -3
  24. package/fesm2022/lucca-front-ng-code.mjs.map +1 -1
  25. package/fesm2022/lucca-front-ng-color.mjs +9 -6
  26. package/fesm2022/lucca-front-ng-color.mjs.map +1 -1
  27. package/fesm2022/lucca-front-ng-comment.mjs +41 -25
  28. package/fesm2022/lucca-front-ng-comment.mjs.map +1 -1
  29. package/fesm2022/lucca-front-ng-container.mjs +7 -5
  30. package/fesm2022/lucca-front-ng-container.mjs.map +1 -1
  31. package/fesm2022/lucca-front-ng-core-select-api.mjs +17 -13
  32. package/fesm2022/lucca-front-ng-core-select-api.mjs.map +1 -1
  33. package/fesm2022/lucca-front-ng-core-select-department.mjs +22 -14
  34. package/fesm2022/lucca-front-ng-core-select-department.mjs.map +1 -1
  35. package/fesm2022/lucca-front-ng-core-select-establishment.mjs +21 -15
  36. package/fesm2022/lucca-front-ng-core-select-establishment.mjs.map +1 -1
  37. package/fesm2022/lucca-front-ng-core-select-job-qualification.mjs +12 -9
  38. package/fesm2022/lucca-front-ng-core-select-job-qualification.mjs.map +1 -1
  39. package/fesm2022/lucca-front-ng-core-select-occupation-category.mjs +9 -6
  40. package/fesm2022/lucca-front-ng-core-select-occupation-category.mjs.map +1 -1
  41. package/fesm2022/lucca-front-ng-core-select-user.mjs +48 -33
  42. package/fesm2022/lucca-front-ng-core-select-user.mjs.map +1 -1
  43. package/fesm2022/lucca-front-ng-core-select.mjs +103 -77
  44. package/fesm2022/lucca-front-ng-core-select.mjs.map +1 -1
  45. package/fesm2022/lucca-front-ng-core.mjs +19 -17
  46. package/fesm2022/lucca-front-ng-core.mjs.map +1 -1
  47. package/fesm2022/lucca-front-ng-data-table.mjs +92 -58
  48. package/fesm2022/lucca-front-ng-data-table.mjs.map +1 -1
  49. package/fesm2022/lucca-front-ng-date.mjs +45 -43
  50. package/fesm2022/lucca-front-ng-date.mjs.map +1 -1
  51. package/fesm2022/lucca-front-ng-date2.mjs +183 -101
  52. package/fesm2022/lucca-front-ng-date2.mjs.map +1 -1
  53. package/fesm2022/lucca-front-ng-department.mjs +26 -25
  54. package/fesm2022/lucca-front-ng-department.mjs.map +1 -1
  55. package/fesm2022/lucca-front-ng-dialog.mjs +51 -42
  56. package/fesm2022/lucca-front-ng-dialog.mjs.map +1 -1
  57. package/fesm2022/lucca-front-ng-divider.mjs +7 -5
  58. package/fesm2022/lucca-front-ng-divider.mjs.map +1 -1
  59. package/fesm2022/lucca-front-ng-dropdown.mjs +42 -41
  60. package/fesm2022/lucca-front-ng-dropdown.mjs.map +1 -1
  61. package/fesm2022/lucca-front-ng-empty-state.mjs +49 -29
  62. package/fesm2022/lucca-front-ng-empty-state.mjs.map +1 -1
  63. package/fesm2022/lucca-front-ng-error-page.mjs +9 -6
  64. package/fesm2022/lucca-front-ng-error-page.mjs.map +1 -1
  65. package/fesm2022/lucca-front-ng-establishment.mjs +36 -35
  66. package/fesm2022/lucca-front-ng-establishment.mjs.map +1 -1
  67. package/fesm2022/lucca-front-ng-fancy-box.mjs +17 -10
  68. package/fesm2022/lucca-front-ng-fancy-box.mjs.map +1 -1
  69. package/fesm2022/lucca-front-ng-file-upload.mjs +81 -48
  70. package/fesm2022/lucca-front-ng-file-upload.mjs.map +1 -1
  71. package/fesm2022/lucca-front-ng-filter-pills.mjs +74 -46
  72. package/fesm2022/lucca-front-ng-filter-pills.mjs.map +1 -1
  73. package/fesm2022/lucca-front-ng-footer.mjs +9 -6
  74. package/fesm2022/lucca-front-ng-footer.mjs.map +1 -1
  75. package/fesm2022/lucca-front-ng-form-field.mjs +88 -53
  76. package/fesm2022/lucca-front-ng-form-field.mjs.map +1 -1
  77. package/fesm2022/lucca-front-ng-form-header.mjs +5 -4
  78. package/fesm2022/lucca-front-ng-form-header.mjs.map +1 -1
  79. package/fesm2022/lucca-front-ng-form-label.mjs +15 -9
  80. package/fesm2022/lucca-front-ng-form-label.mjs.map +1 -1
  81. package/fesm2022/lucca-front-ng-form.mjs +3 -3
  82. package/fesm2022/lucca-front-ng-form.mjs.map +1 -1
  83. package/fesm2022/lucca-front-ng-formly.mjs +58 -58
  84. package/fesm2022/lucca-front-ng-formly.mjs.map +1 -1
  85. package/fesm2022/lucca-front-ng-forms-phone-number-input.mjs +33 -20
  86. package/fesm2022/lucca-front-ng-forms-phone-number-input.mjs.map +1 -1
  87. package/fesm2022/lucca-front-ng-forms-rich-text-input-formatters-html.mjs +3 -3
  88. package/fesm2022/lucca-front-ng-forms-rich-text-input-formatters-html.mjs.map +1 -1
  89. package/fesm2022/lucca-front-ng-forms-rich-text-input-formatters-markdown.mjs +6 -6
  90. package/fesm2022/lucca-front-ng-forms-rich-text-input-formatters-markdown.mjs.map +1 -1
  91. package/fesm2022/lucca-front-ng-forms-rich-text-input-formatters-plain-text.mjs +3 -3
  92. package/fesm2022/lucca-front-ng-forms-rich-text-input-formatters-plain-text.mjs.map +1 -1
  93. package/fesm2022/lucca-front-ng-forms-rich-text-input.mjs +123 -78
  94. package/fesm2022/lucca-front-ng-forms-rich-text-input.mjs.map +1 -1
  95. package/fesm2022/lucca-front-ng-forms.mjs +209 -125
  96. package/fesm2022/lucca-front-ng-forms.mjs.map +1 -1
  97. package/fesm2022/lucca-front-ng-gauge.mjs +23 -13
  98. package/fesm2022/lucca-front-ng-gauge.mjs.map +1 -1
  99. package/fesm2022/lucca-front-ng-grid.mjs +24 -15
  100. package/fesm2022/lucca-front-ng-grid.mjs.map +1 -1
  101. package/fesm2022/lucca-front-ng-highlight-data.mjs +25 -14
  102. package/fesm2022/lucca-front-ng-highlight-data.mjs.map +1 -1
  103. package/fesm2022/lucca-front-ng-highlight-text.mjs +7 -5
  104. package/fesm2022/lucca-front-ng-highlight-text.mjs.map +1 -1
  105. package/fesm2022/lucca-front-ng-horizontal-navigation.mjs +33 -21
  106. package/fesm2022/lucca-front-ng-horizontal-navigation.mjs.map +1 -1
  107. package/fesm2022/lucca-front-ng-impersonation.mjs +13 -8
  108. package/fesm2022/lucca-front-ng-impersonation.mjs.map +1 -1
  109. package/fesm2022/lucca-front-ng-index-table.mjs +62 -46
  110. package/fesm2022/lucca-front-ng-index-table.mjs.map +1 -1
  111. package/fesm2022/lucca-front-ng-inline-message.mjs +9 -6
  112. package/fesm2022/lucca-front-ng-inline-message.mjs.map +1 -1
  113. package/fesm2022/lucca-front-ng-input.mjs +23 -22
  114. package/fesm2022/lucca-front-ng-input.mjs.map +1 -1
  115. package/fesm2022/lucca-front-ng-link.mjs +8 -7
  116. package/fesm2022/lucca-front-ng-link.mjs.map +1 -1
  117. package/fesm2022/lucca-front-ng-listbox.mjs +25 -17
  118. package/fesm2022/lucca-front-ng-listbox.mjs.map +1 -1
  119. package/fesm2022/lucca-front-ng-listing.mjs +14 -10
  120. package/fesm2022/lucca-front-ng-listing.mjs.map +1 -1
  121. package/fesm2022/lucca-front-ng-loading.mjs +7 -5
  122. package/fesm2022/lucca-front-ng-loading.mjs.map +1 -1
  123. package/fesm2022/lucca-front-ng-main-layout.mjs +6 -6
  124. package/fesm2022/lucca-front-ng-main-layout.mjs.map +1 -1
  125. package/fesm2022/lucca-front-ng-mobile-push.mjs +5 -4
  126. package/fesm2022/lucca-front-ng-mobile-push.mjs.map +1 -1
  127. package/fesm2022/lucca-front-ng-modal.mjs +24 -23
  128. package/fesm2022/lucca-front-ng-modal.mjs.map +1 -1
  129. package/fesm2022/lucca-front-ng-multi-select.mjs +84 -60
  130. package/fesm2022/lucca-front-ng-multi-select.mjs.map +1 -1
  131. package/fesm2022/lucca-front-ng-new-badge.mjs +5 -4
  132. package/fesm2022/lucca-front-ng-new-badge.mjs.map +1 -1
  133. package/fesm2022/lucca-front-ng-number-format.mjs +14 -10
  134. package/fesm2022/lucca-front-ng-number-format.mjs.map +1 -1
  135. package/fesm2022/lucca-front-ng-number.mjs +7 -7
  136. package/fesm2022/lucca-front-ng-number.mjs.map +1 -1
  137. package/fesm2022/lucca-front-ng-numeric-badge.mjs +17 -10
  138. package/fesm2022/lucca-front-ng-numeric-badge.mjs.map +1 -1
  139. package/fesm2022/lucca-front-ng-option.mjs +136 -132
  140. package/fesm2022/lucca-front-ng-option.mjs.map +1 -1
  141. package/fesm2022/lucca-front-ng-page-header.mjs +11 -7
  142. package/fesm2022/lucca-front-ng-page-header.mjs.map +1 -1
  143. package/fesm2022/lucca-front-ng-pagination.mjs +13 -8
  144. package/fesm2022/lucca-front-ng-pagination.mjs.map +1 -1
  145. package/fesm2022/lucca-front-ng-plg-push.mjs +9 -6
  146. package/fesm2022/lucca-front-ng-plg-push.mjs.map +1 -1
  147. package/fesm2022/lucca-front-ng-popover.mjs +17 -17
  148. package/fesm2022/lucca-front-ng-popover.mjs.map +1 -1
  149. package/fesm2022/lucca-front-ng-popover2.mjs +33 -21
  150. package/fesm2022/lucca-front-ng-popover2.mjs.map +1 -1
  151. package/fesm2022/lucca-front-ng-popup.mjs +10 -10
  152. package/fesm2022/lucca-front-ng-popup.mjs.map +1 -1
  153. package/fesm2022/lucca-front-ng-progress-bar.mjs +7 -5
  154. package/fesm2022/lucca-front-ng-progress-bar.mjs.map +1 -1
  155. package/fesm2022/lucca-front-ng-progress-stepper.mjs +16 -11
  156. package/fesm2022/lucca-front-ng-progress-stepper.mjs.map +1 -1
  157. package/fesm2022/lucca-front-ng-read-more.mjs +27 -15
  158. package/fesm2022/lucca-front-ng-read-more.mjs.map +1 -1
  159. package/fesm2022/lucca-front-ng-resource-card.mjs +18 -15
  160. package/fesm2022/lucca-front-ng-resource-card.mjs.map +1 -1
  161. package/fesm2022/lucca-front-ng-safe-content.mjs +10 -10
  162. package/fesm2022/lucca-front-ng-safe-content.mjs.map +1 -1
  163. package/fesm2022/lucca-front-ng-scroll-box.mjs +7 -5
  164. package/fesm2022/lucca-front-ng-scroll-box.mjs.map +1 -1
  165. package/fesm2022/lucca-front-ng-scroll.mjs +9 -8
  166. package/fesm2022/lucca-front-ng-scroll.mjs.map +1 -1
  167. package/fesm2022/lucca-front-ng-segmented-control-tabs.mjs +18 -12
  168. package/fesm2022/lucca-front-ng-segmented-control-tabs.mjs.map +1 -1
  169. package/fesm2022/lucca-front-ng-segmented-control.mjs +10 -8
  170. package/fesm2022/lucca-front-ng-segmented-control.mjs.map +1 -1
  171. package/fesm2022/lucca-front-ng-select.mjs +14 -14
  172. package/fesm2022/lucca-front-ng-select.mjs.map +1 -1
  173. package/fesm2022/lucca-front-ng-sidepanel.mjs +7 -7
  174. package/fesm2022/lucca-front-ng-sidepanel.mjs.map +1 -1
  175. package/fesm2022/lucca-front-ng-simple-select.mjs +23 -18
  176. package/fesm2022/lucca-front-ng-simple-select.mjs.map +1 -1
  177. package/fesm2022/lucca-front-ng-skeleton.mjs +62 -43
  178. package/fesm2022/lucca-front-ng-skeleton.mjs.map +1 -1
  179. package/fesm2022/lucca-front-ng-software-icon-wrapper.mjs +16 -11
  180. package/fesm2022/lucca-front-ng-software-icon-wrapper.mjs.map +1 -1
  181. package/fesm2022/lucca-front-ng-software-icon.mjs +11 -7
  182. package/fesm2022/lucca-front-ng-software-icon.mjs.map +1 -1
  183. package/fesm2022/lucca-front-ng-sortable-list.mjs +10 -8
  184. package/fesm2022/lucca-front-ng-sortable-list.mjs.map +1 -1
  185. package/fesm2022/lucca-front-ng-status-badge.mjs +9 -6
  186. package/fesm2022/lucca-front-ng-status-badge.mjs.map +1 -1
  187. package/fesm2022/lucca-front-ng-table-of-content.mjs +8 -7
  188. package/fesm2022/lucca-front-ng-table-of-content.mjs.map +1 -1
  189. package/fesm2022/lucca-front-ng-tag.mjs +15 -9
  190. package/fesm2022/lucca-front-ng-tag.mjs.map +1 -1
  191. package/fesm2022/lucca-front-ng-text-flow.mjs +3 -3
  192. package/fesm2022/lucca-front-ng-text-flow.mjs.map +1 -1
  193. package/fesm2022/lucca-front-ng-time.mjs +137 -78
  194. package/fesm2022/lucca-front-ng-time.mjs.map +1 -1
  195. package/fesm2022/lucca-front-ng-title.mjs +10 -10
  196. package/fesm2022/lucca-front-ng-title.mjs.map +1 -1
  197. package/fesm2022/lucca-front-ng-toast.mjs +16 -13
  198. package/fesm2022/lucca-front-ng-toast.mjs.map +1 -1
  199. package/fesm2022/lucca-front-ng-tooltip.mjs +39 -28
  200. package/fesm2022/lucca-front-ng-tooltip.mjs.map +1 -1
  201. package/fesm2022/lucca-front-ng-tree-select.mjs +20 -13
  202. package/fesm2022/lucca-front-ng-tree-select.mjs.map +1 -1
  203. package/fesm2022/lucca-front-ng-user-popover.mjs +22 -20
  204. package/fesm2022/lucca-front-ng-user-popover.mjs.map +1 -1
  205. package/fesm2022/lucca-front-ng-user.mjs +94 -77
  206. package/fesm2022/lucca-front-ng-user.mjs.map +1 -1
  207. package/fesm2022/lucca-front-ng-vertical-navigation.mjs +32 -22
  208. package/fesm2022/lucca-front-ng-vertical-navigation.mjs.map +1 -1
  209. package/package.json +8 -8
  210. package/schematics/action-icon/index.js +34 -1
  211. package/schematics/action-icon/migration.spec.js +36 -3
  212. package/schematics/alignment-utilities/migration.spec.js +36 -3
  213. package/schematics/cdn-urls/migration.spec.js +36 -3
  214. package/schematics/class-prefix/migration.spec.js +36 -3
  215. package/schematics/color-text/migration.spec.js +36 -3
  216. package/schematics/component-path/migration.spec.js +36 -3
  217. package/schematics/deprecated-resolver/migration.spec.js +35 -2
  218. package/schematics/empty-state-title/migration.spec.js +35 -2
  219. package/schematics/lib/css-mapper.js +36 -3
  220. package/schematics/lib/lf-schematic-context.js +34 -1
  221. package/schematics/lib/local-deps/postcss.js +34 -1
  222. package/schematics/lib/migration-test.js +5 -2
  223. package/schematics/lu-button/migration.spec.js +34 -1
  224. package/schematics/lu-container/migration.spec.js +34 -1
  225. package/schematics/lu-grid/migration.spec.js +34 -1
  226. package/schematics/lu-icon/migration.spec.js +34 -1
  227. package/schematics/lu-loading/migration.spec.js +34 -1
  228. package/schematics/lu-select/migration.spec.js +34 -1
  229. package/schematics/lu-text-input/migration.spec.js +34 -1
  230. package/schematics/new-icons/index.js +35 -2
  231. package/schematics/new-icons/migration.spec.js +36 -3
  232. package/schematics/palettes/migration.spec.js +36 -3
  233. package/schematics/tokens-radius/migration.spec.js +36 -3
  234. package/schematics/tokens-spacing/migration.spec.js +36 -3
  235. package/schematics/tokens-typo/migration.spec.js +36 -3
  236. package/types/lucca-front-ng-forms-phone-number-input.d.ts +3 -3
@@ -8,10 +8,10 @@ class HorizontalNavigationLinkDirective {
8
8
  constructor() {
9
9
  this.template = inject(TemplateRef);
10
10
  }
11
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: HorizontalNavigationLinkDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
12
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.14", type: HorizontalNavigationLinkDirective, isStandalone: true, selector: "[luHorizontalNavigationLink]", ngImport: i0 }); }
11
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: HorizontalNavigationLinkDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
12
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.4", type: HorizontalNavigationLinkDirective, isStandalone: true, selector: "[luHorizontalNavigationLink]", ngImport: i0 }); }
13
13
  }
14
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: HorizontalNavigationLinkDirective, decorators: [{
14
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: HorizontalNavigationLinkDirective, decorators: [{
15
15
  type: Directive,
16
16
  args: [{
17
17
  selector: '[luHorizontalNavigationLink]',
@@ -23,15 +23,18 @@ const LU_HORIZONTALNAVIGATION_INSTANCE = new InjectionToken('LU_HORIZONTALNAVIGA
23
23
  class HorizontalNavigationTabComponent {
24
24
  constructor() {
25
25
  this.horizontalNavigationRef = inject(LU_HORIZONTALNAVIGATION_INSTANCE);
26
- this.label = input.required(...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
26
+ this.label = input.required(/* @ts-ignore */
27
+ ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
27
28
  this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
28
- this.index = computed(() => this.horizontalNavigationRef.getTabIndex(this), ...(ngDevMode ? [{ debugName: "index" }] : /* istanbul ignore next */ []));
29
- this.selected = computed(() => !this.disabled() && this.index() === this.horizontalNavigationRef.selectedIndex(), ...(ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []));
29
+ this.index = computed(() => this.horizontalNavigationRef.getTabIndex(this), /* @ts-ignore */
30
+ ...(ngDevMode ? [{ debugName: "index" }] : /* istanbul ignore next */ []));
31
+ this.selected = computed(() => !this.disabled() && this.index() === this.horizontalNavigationRef.selectedIndex(), /* @ts-ignore */
32
+ ...(ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []));
30
33
  }
31
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: HorizontalNavigationTabComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
32
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.14", type: HorizontalNavigationTabComponent, isStandalone: true, selector: "lu-horizontal-navigation-tab", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "tabpanel", "tabindex": "0" }, properties: { "class.is-active": "selected()", "id": "'panel-' + index()", "aria-labelledby": "'tab-' + index()" }, classAttribute: "horizontalNavigation_panel" }, ngImport: i0, template: '<ng-content/>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
34
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: HorizontalNavigationTabComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
35
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.4", type: HorizontalNavigationTabComponent, isStandalone: true, selector: "lu-horizontal-navigation-tab", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "tabpanel", "tabindex": "0" }, properties: { "class.is-active": "selected()", "id": "'panel-' + index()", "aria-labelledby": "'tab-' + index()" }, classAttribute: "horizontalNavigation_panel" }, ngImport: i0, template: '<ng-content/>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
33
36
  }
34
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: HorizontalNavigationTabComponent, decorators: [{
37
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: HorizontalNavigationTabComponent, decorators: [{
35
38
  type: Component,
36
39
  args: [{
37
40
  selector: 'lu-horizontal-navigation-tab',
@@ -51,20 +54,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
51
54
  class HorizontalNavigationComponent {
52
55
  constructor() {
53
56
  this.dialogRef = inject(LuDialogRef, { optional: true });
54
- this.links = contentChildren(HorizontalNavigationLinkDirective, ...(ngDevMode ? [{ debugName: "links" }] : /* istanbul ignore next */ []));
55
- this.tabs = contentChildren(HorizontalNavigationTabComponent, ...(ngDevMode ? [{ debugName: "tabs" }] : /* istanbul ignore next */ []));
56
- this.buttons = viewChildren('tabButton', ...(ngDevMode ? [{ debugName: "buttons" }] : /* istanbul ignore next */ []));
57
+ this.links = contentChildren(HorizontalNavigationLinkDirective, /* @ts-ignore */
58
+ ...(ngDevMode ? [{ debugName: "links" }] : /* istanbul ignore next */ []));
59
+ this.tabs = contentChildren(HorizontalNavigationTabComponent, /* @ts-ignore */
60
+ ...(ngDevMode ? [{ debugName: "tabs" }] : /* istanbul ignore next */ []));
61
+ this.buttons = viewChildren('tabButton', /* @ts-ignore */
62
+ ...(ngDevMode ? [{ debugName: "buttons" }] : /* istanbul ignore next */ []));
57
63
  this.noBorder = input(false, { ...(ngDevMode ? { debugName: "noBorder" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
58
64
  this.container = input(false, { ...(ngDevMode ? { debugName: "container" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
59
65
  this.vertical = input(false, { ...(ngDevMode ? { debugName: "vertical" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
60
- this.palette = input(null, ...(ngDevMode ? [{ debugName: "palette" }] : /* istanbul ignore next */ []));
61
- this.paletteClass = computed(() => ({ [`palette-${this.palette()}`]: !!this.palette() }), ...(ngDevMode ? [{ debugName: "paletteClass" }] : /* istanbul ignore next */ []));
66
+ this.palette = input(null, /* @ts-ignore */
67
+ ...(ngDevMode ? [{ debugName: "palette" }] : /* istanbul ignore next */ []));
68
+ this.paletteClass = computed(() => ({ [`palette-${this.palette()}`]: !!this.palette() }), /* @ts-ignore */
69
+ ...(ngDevMode ? [{ debugName: "paletteClass" }] : /* istanbul ignore next */ []));
62
70
  /**
63
71
  * Which size should the horizontal navigation be? Defaults and small
64
72
  */
65
- this.size = input(null, ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
66
- this.isTablist = computed(() => this.tabs().length > 0, ...(ngDevMode ? [{ debugName: "isTablist" }] : /* istanbul ignore next */ []));
67
- this.currentIndex = model(0, ...(ngDevMode ? [{ debugName: "currentIndex" }] : /* istanbul ignore next */ []));
73
+ this.size = input(null, /* @ts-ignore */
74
+ ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
75
+ this.isTablist = computed(() => this.tabs().length > 0, /* @ts-ignore */
76
+ ...(ngDevMode ? [{ debugName: "isTablist" }] : /* istanbul ignore next */ []));
77
+ this.currentIndex = model(0, /* @ts-ignore */
78
+ ...(ngDevMode ? [{ debugName: "currentIndex" }] : /* istanbul ignore next */ []));
68
79
  this.selectedIndex = computed(() => {
69
80
  const tabCount = this.tabs().length;
70
81
  if (tabCount === 0) {
@@ -77,7 +88,8 @@ class HorizontalNavigationComponent {
77
88
  return normalizedIndex;
78
89
  }
79
90
  return this.findAccessibleTabIndex(normalizedIndex + 1, 1);
80
- }, ...(ngDevMode ? [{ debugName: "selectedIndex" }] : /* istanbul ignore next */ []));
91
+ }, /* @ts-ignore */
92
+ ...(ngDevMode ? [{ debugName: "selectedIndex" }] : /* istanbul ignore next */ []));
81
93
  effect(() => {
82
94
  const normalizedIndex = this.selectedIndex();
83
95
  if (isNil(normalizedIndex)) {
@@ -160,15 +172,15 @@ class HorizontalNavigationComponent {
160
172
  this.navigateToLastEnabledTab();
161
173
  }
162
174
  }
163
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: HorizontalNavigationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
164
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.14", type: HorizontalNavigationComponent, isStandalone: true, selector: "lu-horizontal-navigation", inputs: { noBorder: { classPropertyName: "noBorder", publicName: "noBorder", isSignal: true, isRequired: false, transformFunction: null }, container: { classPropertyName: "container", publicName: "container", isSignal: true, isRequired: false, transformFunction: null }, vertical: { classPropertyName: "vertical", publicName: "vertical", isSignal: true, isRequired: false, transformFunction: null }, palette: { classPropertyName: "palette", publicName: "palette", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, currentIndex: { classPropertyName: "currentIndex", publicName: "currentIndex", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { currentIndex: "currentIndexChange" }, host: { properties: { "class.horizontalNavigationWrapper": "this.dialogRef !== null" } }, providers: [
175
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: HorizontalNavigationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
176
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.4", type: HorizontalNavigationComponent, isStandalone: true, selector: "lu-horizontal-navigation", inputs: { noBorder: { classPropertyName: "noBorder", publicName: "noBorder", isSignal: true, isRequired: false, transformFunction: null }, container: { classPropertyName: "container", publicName: "container", isSignal: true, isRequired: false, transformFunction: null }, vertical: { classPropertyName: "vertical", publicName: "vertical", isSignal: true, isRequired: false, transformFunction: null }, palette: { classPropertyName: "palette", publicName: "palette", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, currentIndex: { classPropertyName: "currentIndex", publicName: "currentIndex", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { currentIndex: "currentIndexChange" }, host: { properties: { "class.horizontalNavigationWrapper": "this.dialogRef !== null" } }, providers: [
165
177
  {
166
178
  provide: LU_HORIZONTALNAVIGATION_INSTANCE,
167
179
  useExisting: forwardRef(() => HorizontalNavigationComponent),
168
180
  },
169
181
  ], queries: [{ propertyName: "links", predicate: HorizontalNavigationLinkDirective, isSignal: true }, { propertyName: "tabs", predicate: HorizontalNavigationTabComponent, isSignal: true }], viewQueries: [{ propertyName: "buttons", predicate: ["tabButton"], descendants: true, isSignal: true }], ngImport: i0, template: "<div\n\tclass=\"horizontalNavigation\"\n\t[class]=\"paletteClass()\"\n\t[class.mod-noBorder]=\"noBorder()\"\n\t[class.mod-S]=\"size() === `S`\"\n\t[class.mod-vertical]=\"vertical()\"\n>\n\t@if (container() || this.dialogRef !== null) {\n\t\t<div class=\"horizontalNavigation-containerOptional\">\n\t\t\t<ng-container *ngTemplateOutlet=\"horizontalNavigationList\" />\n\t\t</div>\n\t} @else {\n\t\t<ng-container *ngTemplateOutlet=\"horizontalNavigationList\" />\n\t}\n</div>\n\n@if (isTablist()) {\n\t<ng-content />\n}\n\n<ng-template #horizontalNavigationList>\n\t<ul class=\"horizontalNavigation-list\" [attr.role]=\"isTablist() ? 'tablist' : null\">\n\t\t@if (isTablist()) {\n\t\t\t@for (tab of tabs(); track $index) {\n\t\t\t\t<li class=\"horizontalNavigation-list-item\">\n\t\t\t\t\t<button\n\t\t\t\t\t\t#tabButton\n\t\t\t\t\t\t[attr.tabindex]=\"selectedIndex() !== $index ? '-1' : null\"\n\t\t\t\t\t\t[attr.aria-selected]=\"selectedIndex() === $index\"\n\t\t\t\t\t\t[attr.disabled]=\"tab.disabled() ? 'disabled' : null\"\n\t\t\t\t\t\taria-controls=\"panel-{{ tab.index() }}\"\n\t\t\t\t\t\tid=\"tab-{{ tab.index() }}\"\n\t\t\t\t\t\t(keydown)=\"changeTab($event, $index)\"\n\t\t\t\t\t\t(click)=\"navigateToTabByIndex($index)\"\n\t\t\t\t\t\trole=\"tab\"\n\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\tclass=\"horizontalNavigation-list-item-action\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<ng-container *luPortal=\"tab.label()\" />\n\t\t\t\t\t</button>\n\t\t\t\t</li>\n\t\t\t}\n\t\t} @else {\n\t\t\t@for (link of links(); track $index) {\n\t\t\t\t<li class=\"horizontalNavigation-list-item\">\n\t\t\t\t\t<ng-container *ngTemplateOutlet=\"link.template\" />\n\t\t\t\t</li>\n\t\t\t}\n\t\t}\n\t</ul>\n</ng-template>\n", styles: ["@layer components{.menu,.horizontalNavigation{--components-horizontalNavigation-borderContent: \"\";--components-horizontalNavigation-listPadding: 0;--components-horizontalNavigation-listItemActionPaddingBlock: var(--pr-t-spacings-200);--components-horizontalNavigation-listItemActionPaddingInline: 0px;--components-horizontalNavigation-listItemActionPadding: var(--components-horizontalNavigation-listItemActionPaddingBlock) var(--components-horizontalNavigation-listItemActionPaddingInline);--components-horizontalNavigation-listGap: 0 var(--pr-t-spacings-400);--components-horizontalNavigation-listDirection: row;--components-horizontalNavigation-listAlign: flex-end;--components-horizontalNavigation-listItemActionAlign: center;--components-horizontalNavigation-listItemActionTransform: scale(0, 1);--components-horizontalNavigation-listItemActionColor: var(--pr-t-color-text);--components-horizontalNavigation-listItemActionSize: 2px;--components-horizontalNavigation-listItemActionFont: inherit;--components-horizontalNavigation-listItemActionInset: auto 0 0 0;--components-horizontalNavigation-listItemActionRadius: var(--pr-t-border-radius-default) var(--pr-t-border-radius-default) 0 0;--components-horizontalNavigation-listItemActionRadiusWidth: auto;--components-horizontalNavigation-listItemActionRadiusHeight: var(--components-horizontalNavigation-listItemActionSize);--components-horizontalNavigation-containerOptional-padding: var(--commons-container-padding);column-gap:var(--pr-t-spacings-400);align-items:center;display:flex;position:relative;flex-wrap:wrap;padding:var(--components-horizontalNavigation-listPadding)}.menu:after,.horizontalNavigation:after{content:var(--components-horizontalNavigation-borderContent);border-block-end-width:var(--commons-divider-width);border-block-end-color:var(--commons-divider-color);border-block-end-style:solid;position:absolute;block-size:1px;inset:auto 0 0}.menu .label,.horizontalNavigation .label{margin-inline-end:0;background-color:var(--palettes-neutral-100);color:var(--palettes-neutral-700)}.horizontalNavigationWrapper{grid-area:overflow;min-block-size:0;display:flex;flex-direction:column}.menu-containerOptional,.horizontalNavigation-containerOptional{max-inline-size:var(--commons-container-maxWidth);padding:var(--components-horizontalNavigation-containerOptional-padding)}.menu-list,.horizontalNavigation-list{margin:0;padding:0;list-style-type:none;align-items:var(--components-horizontalNavigation-listAlign);gap:var(--components-horizontalNavigation-listGap);flex-direction:var(--components-horizontalNavigation-listDirection);display:flex;flex-grow:1;flex-wrap:wrap}.scrollBox .menu-list,.scrollBox .horizontalNavigation-list{flex-wrap:nowrap}.menu-link,.menu-list-item-action,.horizontalNavigation-list-item-action{padding:0;border:0;inline-size:100%;background-color:transparent;color:inherit;text-align:start;display:block;font:inherit;cursor:pointer;font:var(--components-horizontalNavigation-listItemActionFont);padding:var(--components-horizontalNavigation-listItemActionPadding);border-radius:var(--pr-t-border-radius-small);color:var(--components-horizontalNavigation-listItemActionColor);display:inline-flex;text-align:var(--components-horizontalNavigation-listItemActionAlign);transition-duration:var(--commons-animations-durations-fast);gap:var(--pr-t-spacings-100);align-items:center;transition-property:color;position:relative;text-decoration:none;inline-size:auto;z-index:1;scroll-margin-inline:var(--pr-t-spacings-200)}.menu-link:before,.menu-list-item-action:before,.horizontalNavigation-list-item-action:before{content:\"\";position:absolute;inset-block:calc(var(--components-horizontalNavigation-listItemActionPaddingBlock) - var(--pr-t-spacings-25));inset-inline:calc(var(--components-horizontalNavigation-listItemActionPaddingInline) - var(--pr-t-spacings-25));border-radius:var(--pr-t-border-radius-small)}.menu-link:after,.menu-list-item-action:after,.horizontalNavigation-list-item-action:after{background-color:var(--palettes-700, var(--palettes-product-700));border-radius:var(--components-horizontalNavigation-listItemActionRadius);transition-duration:var(--commons-animations-durations-fast);block-size:var(--components-horizontalNavigation-listItemActionRadiusHeight);inline-size:var(--components-horizontalNavigation-listItemActionRadiusWidth);transform:var(--components-horizontalNavigation-listItemActionTransform);inset:var(--components-horizontalNavigation-listItemActionInset);transition-property:transform;display:block;position:absolute;z-index:1;content:\"\"}.menu-link:focus-visible,.menu-list-item-action:focus-visible,.horizontalNavigation-list-item-action:focus-visible{outline:none!important}.menu-link:focus-visible:before,.menu-list-item-action:focus-visible:before,.horizontalNavigation-list-item-action:focus-visible:before{outline:2px solid var(--palettes-700, var(--palettes-product-700));outline-offset:2px}.menu-link:not(.is-disabled,[disabled]):hover:not(.is-active,[aria-current=page]),.menu-list-item-action:not(.is-disabled,[disabled]):hover:not(.is-active,[aria-current=page]),.horizontalNavigation-list-item-action:not(.is-disabled,[disabled]):hover:not(.is-active,[aria-current=page]){color:var(--palettes-neutral-900)}.menu-link:not(.is-disabled,[disabled]):hover .label,.menu-list-item-action:not(.is-disabled,[disabled]):hover .label,.horizontalNavigation-list-item-action:not(.is-disabled,[disabled]):hover .label{background-color:var(--palettes-100, var(--palettes-product-100));color:var(--palettes-700, var(--palettes-product-700))}.menu-link:not(.is-disabled,[disabled]):hover:after,.menu-list-item-action:not(.is-disabled,[disabled]):hover:after,.horizontalNavigation-list-item-action:not(.is-disabled,[disabled]):hover:after{--components-horizontalNavigation-listItemActionTransform: scale(.75, 1)}.menu-link .link-text,.menu-list-item-action .link-text,.horizontalNavigation-list-item-action .link-text{text-decoration:none}.menu-link-placeholder:after,.horizontalNavigation-link-placeholder:after{content:attr(data-content-after);display:block;block-size:0;overflow:hidden;font-weight:var(--pr-t-font-fontWeight-semibold)}.horizontalNavigation_panel{display:var(--components-horizontalNavigation-panel-display);overflow:var(--components-horizontalNavigation-panel-overflow);min-height:0;flex-direction:column}.horizontalNavigation_panel:focus-visible{outline:2px solid var(--palettes-700, var(--palettes-product-700));outline-offset:-2px;border-radius:var(--pr-t-border-radius-small)}.horizontalNavigation_panel:not(.is-active){display:none}}@layer mods{.menu.mod-header,.horizontalNavigation.mod-header{--components-horizontalNavigation-listPadding: 0 var(--pr-t-spacings-500)}.menu.mod-S .menu-list-item-action,.menu.mod-S .menu-link,.menu.mod-S .horizontalNavigation-list-item-action,.horizontalNavigation.mod-S .menu-list-item-action,.horizontalNavigation.mod-S .menu-link,.horizontalNavigation.mod-S .horizontalNavigation-list-item-action{--components-horizontalNavigation-listItemActionFont: var(--pr-t-font-body-S);--components-horizontalNavigation-listItemActionPadding: var(--pr-t-spacings-150) 0}.menu.mod-S .menu-list-item-action:before,.menu.mod-S .menu-link:before,.menu.mod-S .horizontalNavigation-list-item-action:before,.horizontalNavigation.mod-S .menu-list-item-action:before,.horizontalNavigation.mod-S .menu-link:before,.horizontalNavigation.mod-S .horizontalNavigation-list-item-action:before{inset-block:calc(var(--components-horizontalNavigation-listItemActionPaddingBlock) - var(--pr-t-spacings-75));inset-inline:calc(var(--components-horizontalNavigation-listItemActionPaddingInline) - var(--pr-t-spacings-25))}.menu.mod-S .menu-link,.horizontalNavigation.mod-S .menu-link{margin-inline-end:var(--pr-t-spacings-300)}.menu.mod-S .label,.horizontalNavigation.mod-S .label{block-size:var(--pr-t-font-body-S-lineHeight);min-inline-size:var(--pr-t-font-body-S-lineHeight);line-height:var(--pr-t-font-body-S-lineHeight);padding:0}.menu.mod-S .numericBadge,.horizontalNavigation.mod-S .numericBadge{--components-numericBadge-size: 1.25rem;--components-numericBadge-borderRadius: var(--pr-t-border-radius-small);--components-numericBadge-font: var(--pr-t-font-body-XS)}.menu.mod-noBorder:after,.horizontalNavigation.mod-noBorder:after{--components-horizontalNavigation-borderContent: none}.dialog .menu,.dialog .horizontalNavigation{--components-horizontalNavigation-containerOptional-padding: 0 var(--components-dialog-insideContent-paddingInline)}.menu.mod-vertical:after,.horizontalNavigation.mod-vertical:after{--components-horizontalNavigation-borderContent: none}.menu.mod-vertical .menu-list,.menu.mod-vertical .horizontalNavigation-list,.horizontalNavigation.mod-vertical .menu-list,.horizontalNavigation.mod-vertical .horizontalNavigation-list{--components-horizontalNavigation-listDirection: column;--components-horizontalNavigation-listGap: 0;--components-horizontalNavigation-listAlign: stretch}.menu.mod-vertical .menu-list-item-action,.menu.mod-vertical .horizontalNavigation-list-item-action,.horizontalNavigation.mod-vertical .menu-list-item-action,.horizontalNavigation.mod-vertical .horizontalNavigation-list-item-action{--components-horizontalNavigation-listItemActionPadding: var(--pr-t-spacings-50) var(--pr-t-spacings-200);--components-horizontalNavigation-listItemActionAlign: left}.menu.mod-vertical .menu-list-item-action:before,.menu.mod-vertical .horizontalNavigation-list-item-action:before,.horizontalNavigation.mod-vertical .menu-list-item-action:before,.horizontalNavigation.mod-vertical .horizontalNavigation-list-item-action:before{inset-block:calc(var(--components-horizontalNavigation-listItemActionPaddingBlock) - var(--pr-t-spacings-150) - var(--pr-t-spacings-25));inset-inline:calc(var(--components-horizontalNavigation-listItemActionPaddingInline) + var(--pr-t-spacings-150) + var(--pr-t-spacings-25))}.menu.mod-vertical .menu-list-item-action:after,.menu.mod-vertical .horizontalNavigation-list-item-action:after,.horizontalNavigation.mod-vertical .menu-list-item-action:after,.horizontalNavigation.mod-vertical .horizontalNavigation-list-item-action:after{--components-horizontalNavigation-listItemActionTransform: scale(1, 0);--components-horizontalNavigation-listItemActionInset: 0 auto 0 0;--components-horizontalNavigation-listItemActionRadius: 0 var(--pr-t-border-radius-default) var(--pr-t-border-radius-default) 0;--components-horizontalNavigation-listItemActionRadiusWidth: var(--components-horizontalNavigation-listItemActionSize);--components-horizontalNavigation-listItemActionRadiusHeight: auto}.menu.mod-vertical .menu-list-item-action:hover:after,.menu.mod-vertical .menu-list-item-action[aria-current=page]:hover:after,.menu.mod-vertical .horizontalNavigation-list-item-action:hover:after,.menu.mod-vertical .horizontalNavigation-list-item-action[aria-current=page]:hover:after,.horizontalNavigation.mod-vertical .menu-list-item-action:hover:after,.horizontalNavigation.mod-vertical .menu-list-item-action[aria-current=page]:hover:after,.horizontalNavigation.mod-vertical .horizontalNavigation-list-item-action:hover:after,.horizontalNavigation.mod-vertical .horizontalNavigation-list-item-action[aria-current=page]:hover:after{--components-horizontalNavigation-listItemActionTransform: scale(1, .75)}.menu.mod-vertical .menu-list-item-action[aria-current=page]:after,.menu.mod-vertical .menu-list-item-action[aria-selected=true]:after,.menu.mod-vertical .menu-list-item-action.is-active:after,.menu.mod-vertical .horizontalNavigation-list-item-action[aria-current=page]:after,.menu.mod-vertical .horizontalNavigation-list-item-action[aria-selected=true]:after,.menu.mod-vertical .horizontalNavigation-list-item-action.is-active:after,.horizontalNavigation.mod-vertical .menu-list-item-action[aria-current=page]:after,.horizontalNavigation.mod-vertical .menu-list-item-action[aria-selected=true]:after,.horizontalNavigation.mod-vertical .menu-list-item-action.is-active:after,.horizontalNavigation.mod-vertical .horizontalNavigation-list-item-action[aria-current=page]:after,.horizontalNavigation.mod-vertical .horizontalNavigation-list-item-action[aria-selected=true]:after,.horizontalNavigation.mod-vertical .horizontalNavigation-list-item-action.is-active:after{--components-horizontalNavigation-listItemActionTransform: scale(1)}.menu.mod-vertical.mod-S .menu-list-item-action,.menu.mod-vertical.mod-S .horizontalNavigation-list-item-action,.horizontalNavigation.mod-vertical.mod-S .menu-list-item-action,.horizontalNavigation.mod-vertical.mod-S .horizontalNavigation-list-item-action{--components-horizontalNavigation-listItemActionPadding: var(--pr-t-spacings-50) var(--pr-t-spacings-150)}.menu.mod-vertical.mod-S .menu-list-item-action:before,.menu.mod-vertical.mod-S .horizontalNavigation-list-item-action:before,.horizontalNavigation.mod-vertical.mod-S .menu-list-item-action:before,.horizontalNavigation.mod-vertical.mod-S .horizontalNavigation-list-item-action:before{inset-block:calc(var(--components-horizontalNavigation-listItemActionPaddingBlock) - var(--pr-t-spacings-150) - var(--pr-t-spacings-25));inset-inline:calc(var(--components-horizontalNavigation-listItemActionPaddingInline) + var(--pr-t-spacings-100) + var(--pr-t-spacings-25))}}@layer components{.horizontalNavigation_panel{--components-horizontalNavigation-panel-display: block;--components-horizontalNavigation-panel-overflow: visible}}@layer mods{.dialog .horizontalNavigation_panel{--components-horizontalNavigation-panel-display: flex;--components-horizontalNavigation-panel-overflow: auto}.dialog .horizontalNavigation_panel:focus-visible{outline:2px solid var(--palettes-700, var(--palettes-product-700));outline-offset:-4px;border-radius:var(--pr-t-border-radius-structure)}}@layer mods{.menu-link.active,.menu-link[aria-current=page],.menu-link[aria-selected=true],.menu-link.is-active,.menu-list-item-action.active,.menu-list-item-action[aria-current=page],.menu-list-item-action[aria-selected=true],.menu-list-item-action.is-active,.horizontalNavigation-list-item-action.active,.horizontalNavigation-list-item-action[aria-current=page],.horizontalNavigation-list-item-action[aria-selected=true],.horizontalNavigation-list-item-action.is-active{--components-horizontalNavigation-listItemActionColor: var(--palettes-700, var(--palettes-product-700))}.menu-link.active .label,.menu-link[aria-current=page] .label,.menu-link[aria-selected=true] .label,.menu-link.is-active .label,.menu-list-item-action.active .label,.menu-list-item-action[aria-current=page] .label,.menu-list-item-action[aria-selected=true] .label,.menu-list-item-action.is-active .label,.horizontalNavigation-list-item-action.active .label,.horizontalNavigation-list-item-action[aria-current=page] .label,.horizontalNavigation-list-item-action[aria-selected=true] .label,.horizontalNavigation-list-item-action.is-active .label{background-color:var(--palettes-100, var(--palettes-product-100));color:var(--palettes-700, var(--palettes-product-700))}.menu-link.active:after,.menu-link[aria-current=page]:after,.menu-link[aria-selected=true]:after,.menu-link.is-active:after,.menu-list-item-action.active:after,.menu-list-item-action[aria-current=page]:after,.menu-list-item-action[aria-selected=true]:after,.menu-list-item-action.is-active:after,.horizontalNavigation-list-item-action.active:after,.horizontalNavigation-list-item-action[aria-current=page]:after,.horizontalNavigation-list-item-action[aria-selected=true]:after,.horizontalNavigation-list-item-action.is-active:after{--components-horizontalNavigation-listItemActionTransform: scale(1)}.menu-link.active:focus-visible:after,.menu-link[aria-current=page]:focus-visible:after,.menu-link[aria-selected=true]:focus-visible:after,.menu-link.is-active:focus-visible:after,.menu-list-item-action.active:focus-visible:after,.menu-list-item-action[aria-current=page]:focus-visible:after,.menu-list-item-action[aria-selected=true]:focus-visible:after,.menu-list-item-action.is-active:focus-visible:after,.horizontalNavigation-list-item-action.active:focus-visible:after,.horizontalNavigation-list-item-action[aria-current=page]:focus-visible:after,.horizontalNavigation-list-item-action[aria-selected=true]:focus-visible:after,.horizontalNavigation-list-item-action.is-active:focus-visible:after{--components-horizontalNavigation-listItemActionTransform: scale(.75, 1)}.menu-link.active .numericBadge,.menu-link[aria-current=page] .numericBadge,.menu-link[aria-selected=true] .numericBadge,.menu-link.is-active .numericBadge,.menu-list-item-action.active .numericBadge,.menu-list-item-action[aria-current=page] .numericBadge,.menu-list-item-action[aria-selected=true] .numericBadge,.menu-list-item-action.is-active .numericBadge,.horizontalNavigation-list-item-action.active .numericBadge,.horizontalNavigation-list-item-action[aria-current=page] .numericBadge,.horizontalNavigation-list-item-action[aria-selected=true] .numericBadge,.horizontalNavigation-list-item-action.is-active .numericBadge{--components-numericBadge-background: var(--palettes-200, var(--palettes-product-200));--components-numericBadge-color: var(--palettes-800, var(--palettes-product-800))}.menu-link:not(.active,[aria-current=page],[aria-selected=true]) .numericBadge,.menu-list-item-action:not(.active,[aria-current=page],[aria-selected=true]) .numericBadge,.horizontalNavigation-list-item-action:not(.active,[aria-current=page],[aria-selected=true]) .numericBadge{--palettes-text: var(--palettes-text);--palettes-0: var(--palettes-0);--palettes-25: var(--palettes-25);--palettes-50: var(--palettes-50);--palettes-100: var(--palettes-100);--palettes-200: var(--palettes-200);--palettes-300: var(--palettes-300);--palettes-400: var(--palettes-400);--palettes-500: var(--palettes-500);--palettes-600: var(--palettes-600);--palettes-700: var(--palettes-700);--palettes-800: var(--palettes-800);--palettes-900: var(--palettes-900)}.menu-link.disabled .label,.menu-link.disabled,.menu-link[disabled] .label,.menu-link[disabled],.menu-link.is-disabled .label,.menu-link.is-disabled,.menu-list-item-action.disabled .label,.menu-list-item-action.disabled,.menu-list-item-action[disabled] .label,.menu-list-item-action[disabled],.menu-list-item-action.is-disabled .label,.menu-list-item-action.is-disabled,.horizontalNavigation-list-item-action.disabled .label,.horizontalNavigation-list-item-action.disabled,.horizontalNavigation-list-item-action[disabled] .label,.horizontalNavigation-list-item-action[disabled],.horizontalNavigation-list-item-action.is-disabled .label,.horizontalNavigation-list-item-action.is-disabled{color:var(--palettes-neutral-500);pointer-events:none}.menu-link.disabled .numericBadge,.menu-link[disabled] .numericBadge,.menu-link.is-disabled .numericBadge,.menu-list-item-action.disabled .numericBadge,.menu-list-item-action[disabled] .numericBadge,.menu-list-item-action.is-disabled .numericBadge,.horizontalNavigation-list-item-action.disabled .numericBadge,.horizontalNavigation-list-item-action[disabled] .numericBadge,.horizontalNavigation-list-item-action.is-disabled .numericBadge{--components-numericBadge-background: var(--palettes-neutral-200);--components-numericBadge-color: var(--palettes-neutral-500)}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: PortalDirective, selector: "[luPortal]", inputs: ["luPortal", "luPortalContext"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
170
182
  }
171
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: HorizontalNavigationComponent, decorators: [{
183
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: HorizontalNavigationComponent, decorators: [{
172
184
  type: Component,
173
185
  args: [{ selector: 'lu-horizontal-navigation', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
174
186
  '[class.horizontalNavigationWrapper]': 'this.dialogRef !== null',
@@ -1 +1 @@
1
- {"version":3,"file":"lucca-front-ng-horizontal-navigation.mjs","sources":["../../../packages/ng/horizontal-navigation/horizontal-navigation-link.directive.ts","../../../packages/ng/horizontal-navigation/horizontal-navigation.token.ts","../../../packages/ng/horizontal-navigation/horizontal-navigation-tab.component.ts","../../../packages/ng/horizontal-navigation/horizontal-navigation.component.ts","../../../packages/ng/horizontal-navigation/horizontal-navigation.component.html","../../../packages/ng/horizontal-navigation/horizontal-navigation.type.ts","../../../packages/ng/horizontal-navigation/lucca-front-ng-horizontal-navigation.ts"],"sourcesContent":["import { Directive, inject, TemplateRef } from '@angular/core';\n\n@Directive({\n\tselector: '[luHorizontalNavigationLink]',\n})\nexport class HorizontalNavigationLinkDirective {\n\tpublic template = inject(TemplateRef);\n}\n","import { InjectionToken } from '@angular/core';\nimport { HorizontalNavigationComponent } from './horizontal-navigation.component';\n\nexport const LU_HORIZONTALNAVIGATION_INSTANCE = new InjectionToken<HorizontalNavigationComponent>('LU_HORIZONTALNAVIGATION_INSTANCE');\n","import { booleanAttribute, ChangeDetectionStrategy, Component, computed, inject, input } from '@angular/core';\nimport { PortalContent } from '@lucca-front/ng/core';\nimport { LU_HORIZONTALNAVIGATION_INSTANCE } from './horizontal-navigation.token';\n\n@Component({\n\tselector: 'lu-horizontal-navigation-tab',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\ttemplate: '<ng-content/>',\n\thost: {\n\t\tclass: 'horizontalNavigation_panel',\n\t\trole: 'tabpanel',\n\t\ttabindex: '0',\n\t\t'[class.is-active]': 'selected()',\n\t\t'[id]': \"'panel-' + index()\",\n\t\t'[aria-labelledby]': \"'tab-' + index()\",\n\t},\n})\nexport class HorizontalNavigationTabComponent {\n\tprotected horizontalNavigationRef = inject(LU_HORIZONTALNAVIGATION_INSTANCE);\n\n\treadonly label = input.required<PortalContent>();\n\treadonly disabled = input(false, { transform: booleanAttribute });\n\treadonly index = computed(() => this.horizontalNavigationRef.getTabIndex(this));\n\treadonly selected = computed(() => !this.disabled() && this.index() === this.horizontalNavigationRef.selectedIndex());\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { booleanAttribute, ChangeDetectionStrategy, Component, computed, contentChildren, effect, ElementRef, forwardRef, inject, input, model, viewChildren, ViewEncapsulation } from '@angular/core';\nimport { DecorativePalette, isNil, isNotNil, Palette, PortalDirective } from '@lucca-front/ng/core';\nimport { LuDialogRef } from '@lucca-front/ng/dialog';\nimport { HorizontalNavigationLinkDirective } from './horizontal-navigation-link.directive';\nimport { HorizontalNavigationTabComponent } from './horizontal-navigation-tab.component';\nimport { LU_HORIZONTALNAVIGATION_INSTANCE } from './horizontal-navigation.token';\nimport { HorizontalNavigationSize } from './horizontal-navigation.type';\n\n@Component({\n\tselector: 'lu-horizontal-navigation',\n\ttemplateUrl: './horizontal-navigation.component.html',\n\tstyleUrl: './horizontal-navigation.component.scss',\n\tencapsulation: ViewEncapsulation.None,\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thost: {\n\t\t'[class.horizontalNavigationWrapper]': 'this.dialogRef !== null',\n\t},\n\timports: [NgTemplateOutlet, PortalDirective],\n\tproviders: [\n\t\t{\n\t\t\tprovide: LU_HORIZONTALNAVIGATION_INSTANCE,\n\t\t\tuseExisting: forwardRef(() => HorizontalNavigationComponent),\n\t\t},\n\t],\n})\nexport class HorizontalNavigationComponent {\n\treadonly dialogRef = inject(LuDialogRef, { optional: true });\n\n\treadonly links = contentChildren(HorizontalNavigationLinkDirective);\n\n\treadonly tabs = contentChildren(HorizontalNavigationTabComponent);\n\n\treadonly buttons = viewChildren<ElementRef<HTMLButtonElement>>('tabButton');\n\n\treadonly noBorder = input(false, { transform: booleanAttribute });\n\n\treadonly container = input(false, { transform: booleanAttribute });\n\n\treadonly vertical = input(false, { transform: booleanAttribute });\n\n\treadonly palette = input<Palette | DecorativePalette | null>(null);\n\treadonly paletteClass = computed(() => ({ [`palette-${this.palette()}`]: !!this.palette() }));\n\n\t/**\n\t * Which size should the horizontal navigation be? Defaults and small\n\t */\n\treadonly size = input<HorizontalNavigationSize | null>(null);\n\n\treadonly isTablist = computed(() => this.tabs().length > 0);\n\n\treadonly currentIndex = model<number>(0);\n\n\treadonly selectedIndex = computed(() => {\n\t\tconst tabCount = this.tabs().length;\n\t\tif (tabCount === 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tconst requestedIndex = this.currentIndex();\n\t\tconst normalizedIndex = ((requestedIndex % tabCount) + tabCount) % tabCount;\n\n\t\tconst requestedTab = this.tabs()[normalizedIndex];\n\t\tif (isNotNil(requestedTab) && !requestedTab.disabled()) {\n\t\t\treturn normalizedIndex;\n\t\t}\n\n\t\treturn this.findAccessibleTabIndex(normalizedIndex + 1, 1);\n\t});\n\n\tconstructor() {\n\t\teffect(() => {\n\t\t\tconst normalizedIndex = this.selectedIndex();\n\t\t\tif (isNil(normalizedIndex)) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (this.currentIndex() !== normalizedIndex) {\n\t\t\t\tthis.currentIndex.set(normalizedIndex);\n\t\t\t}\n\t\t});\n\t}\n\n\tnavigateToFirstEnabledTab(): void {\n\t\tconst firstEnabledIndex = this.findAccessibleTabIndex(0, 1);\n\t\tif (isNotNil(firstEnabledIndex)) {\n\t\t\tthis.currentIndex.set(firstEnabledIndex);\n\t\t\tthis.buttons()[firstEnabledIndex].nativeElement.focus();\n\t\t}\n\t}\n\n\tnavigateToLastEnabledTab(): void {\n\t\tconst lastTabIndex = this.tabs().length - 1;\n\t\tif (lastTabIndex < 0) return;\n\n\t\tconst lastEnabledIndex = this.findAccessibleTabIndex(lastTabIndex, -1);\n\t\tif (isNotNil(lastEnabledIndex)) {\n\t\t\tthis.currentIndex.set(lastEnabledIndex);\n\t\t\tthis.buttons()[lastEnabledIndex].nativeElement.focus();\n\t\t}\n\t}\n\n\tgetTabIndex(tab: HorizontalNavigationTabComponent): number {\n\t\treturn this.tabs().indexOf(tab);\n\t}\n\n\tnavigateToTabByIndex(index: number): void {\n\t\tconst tab = this.tabs()[index];\n\t\tif (!tab || tab.disabled()) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.currentIndex.set(index);\n\t\tthis.buttons()[index].nativeElement.focus();\n\t}\n\n\tprivate findAccessibleTabIndex(startIndex: number, direction: number): number | null {\n\t\tconst tabCount = this.tabs().length;\n\t\tif (tabCount === 0) return null;\n\t\tif (direction !== 1 && direction !== -1) return null;\n\n\t\tconst tabs = this.tabs();\n\t\tlet attempts = 0;\n\t\tlet currentIndex = ((startIndex % tabCount) + tabCount) % tabCount;\n\n\t\twhile (attempts < tabCount) {\n\t\t\tconst tab = tabs[currentIndex];\n\t\t\tif (isNotNil(tab) && !tab.disabled()) {\n\t\t\t\treturn currentIndex;\n\t\t\t}\n\n\t\t\tcurrentIndex = (currentIndex + direction + tabCount) % tabCount;\n\t\t\tattempts++;\n\t\t}\n\n\t\treturn null;\n\t}\n\n\tchangeTab(event: KeyboardEvent, currentIndex: number): void {\n\t\tconst key = event.key;\n\n\t\tif (key === 'ArrowLeft' || key === 'ArrowUp') {\n\t\t\tevent.preventDefault();\n\t\t\tconst nextEnabledIndex = this.findAccessibleTabIndex(currentIndex - 1, -1);\n\t\t\tif (isNotNil(nextEnabledIndex)) {\n\t\t\t\tthis.navigateToTabByIndex(nextEnabledIndex);\n\t\t\t}\n\t\t} else if (key === 'ArrowRight' || key === 'ArrowDown') {\n\t\t\tevent.preventDefault();\n\t\t\tconst nextEnabledIndex = this.findAccessibleTabIndex(currentIndex + 1, 1);\n\t\t\tif (isNotNil(nextEnabledIndex)) {\n\t\t\t\tthis.navigateToTabByIndex(nextEnabledIndex);\n\t\t\t}\n\t\t} else if (key === 'Home') {\n\t\t\tevent.preventDefault();\n\t\t\tthis.navigateToFirstEnabledTab();\n\t\t} else if (key === 'End') {\n\t\t\tevent.preventDefault();\n\t\t\tthis.navigateToLastEnabledTab();\n\t\t}\n\t}\n}\n","<div\n\tclass=\"horizontalNavigation\"\n\t[class]=\"paletteClass()\"\n\t[class.mod-noBorder]=\"noBorder()\"\n\t[class.mod-S]=\"size() === `S`\"\n\t[class.mod-vertical]=\"vertical()\"\n>\n\t@if (container() || this.dialogRef !== null) {\n\t\t<div class=\"horizontalNavigation-containerOptional\">\n\t\t\t<ng-container *ngTemplateOutlet=\"horizontalNavigationList\" />\n\t\t</div>\n\t} @else {\n\t\t<ng-container *ngTemplateOutlet=\"horizontalNavigationList\" />\n\t}\n</div>\n\n@if (isTablist()) {\n\t<ng-content />\n}\n\n<ng-template #horizontalNavigationList>\n\t<ul class=\"horizontalNavigation-list\" [attr.role]=\"isTablist() ? 'tablist' : null\">\n\t\t@if (isTablist()) {\n\t\t\t@for (tab of tabs(); track $index) {\n\t\t\t\t<li class=\"horizontalNavigation-list-item\">\n\t\t\t\t\t<button\n\t\t\t\t\t\t#tabButton\n\t\t\t\t\t\t[attr.tabindex]=\"selectedIndex() !== $index ? '-1' : null\"\n\t\t\t\t\t\t[attr.aria-selected]=\"selectedIndex() === $index\"\n\t\t\t\t\t\t[attr.disabled]=\"tab.disabled() ? 'disabled' : null\"\n\t\t\t\t\t\taria-controls=\"panel-{{ tab.index() }}\"\n\t\t\t\t\t\tid=\"tab-{{ tab.index() }}\"\n\t\t\t\t\t\t(keydown)=\"changeTab($event, $index)\"\n\t\t\t\t\t\t(click)=\"navigateToTabByIndex($index)\"\n\t\t\t\t\t\trole=\"tab\"\n\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\tclass=\"horizontalNavigation-list-item-action\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<ng-container *luPortal=\"tab.label()\" />\n\t\t\t\t\t</button>\n\t\t\t\t</li>\n\t\t\t}\n\t\t} @else {\n\t\t\t@for (link of links(); track $index) {\n\t\t\t\t<li class=\"horizontalNavigation-list-item\">\n\t\t\t\t\t<ng-container *ngTemplateOutlet=\"link.template\" />\n\t\t\t\t</li>\n\t\t\t}\n\t\t}\n\t</ul>\n</ng-template>\n","/**\n * Available HorizontalNavigationComponent Types\n */\n\nexport const HORIZONTAL_NAVIGATION_SIZE = ['S'] as const;\nexport type HorizontalNavigationSize = (typeof HORIZONTAL_NAVIGATION_SIZE)[number];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;MAKa,iCAAiC,CAAA;AAH9C,IAAA,WAAA,GAAA;AAIQ,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,WAAW,CAAC;AACrC,IAAA;+GAFY,iCAAiC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAjC,iCAAiC,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,8BAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAjC,iCAAiC,EAAA,UAAA,EAAA,CAAA;kBAH7C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,8BAA8B;AACxC,iBAAA;;;ACDM,MAAM,gCAAgC,GAAG,IAAI,cAAc,CAAgC,kCAAkC,CAAC;;MCcxH,gCAAgC,CAAA;AAb7C,IAAA,WAAA,GAAA;AAcW,QAAA,IAAA,CAAA,uBAAuB,GAAG,MAAM,CAAC,gCAAgC,CAAC;AAEnE,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAC,QAAQ,2EAAiB;QACvC,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AACxD,QAAA,IAAA,CAAA,KAAK,GAAG,QAAQ,CAAC,MAAM,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,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,MAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,cAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEjC3E;;AAEG;AAEI,MAAM,0BAA0B,GAAG,CAAC,GAAG;;ACJ9C;;AAEG;;;;"}
1
+ {"version":3,"file":"lucca-front-ng-horizontal-navigation.mjs","sources":["../../../packages/ng/horizontal-navigation/horizontal-navigation-link.directive.ts","../../../packages/ng/horizontal-navigation/horizontal-navigation.token.ts","../../../packages/ng/horizontal-navigation/horizontal-navigation-tab.component.ts","../../../packages/ng/horizontal-navigation/horizontal-navigation.component.ts","../../../packages/ng/horizontal-navigation/horizontal-navigation.component.html","../../../packages/ng/horizontal-navigation/horizontal-navigation.type.ts","../../../packages/ng/horizontal-navigation/lucca-front-ng-horizontal-navigation.ts"],"sourcesContent":["import { Directive, inject, TemplateRef } from '@angular/core';\n\n@Directive({\n\tselector: '[luHorizontalNavigationLink]',\n})\nexport class HorizontalNavigationLinkDirective {\n\tpublic template = inject(TemplateRef);\n}\n","import { InjectionToken } from '@angular/core';\nimport { HorizontalNavigationComponent } from './horizontal-navigation.component';\n\nexport const LU_HORIZONTALNAVIGATION_INSTANCE = new InjectionToken<HorizontalNavigationComponent>('LU_HORIZONTALNAVIGATION_INSTANCE');\n","import { booleanAttribute, ChangeDetectionStrategy, Component, computed, inject, input } from '@angular/core';\nimport { PortalContent } from '@lucca-front/ng/core';\nimport { LU_HORIZONTALNAVIGATION_INSTANCE } from './horizontal-navigation.token';\n\n@Component({\n\tselector: 'lu-horizontal-navigation-tab',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\ttemplate: '<ng-content/>',\n\thost: {\n\t\tclass: 'horizontalNavigation_panel',\n\t\trole: 'tabpanel',\n\t\ttabindex: '0',\n\t\t'[class.is-active]': 'selected()',\n\t\t'[id]': \"'panel-' + index()\",\n\t\t'[aria-labelledby]': \"'tab-' + index()\",\n\t},\n})\nexport class HorizontalNavigationTabComponent {\n\tprotected horizontalNavigationRef = inject(LU_HORIZONTALNAVIGATION_INSTANCE);\n\n\treadonly label = input.required<PortalContent>();\n\treadonly disabled = input(false, { transform: booleanAttribute });\n\treadonly index = computed(() => this.horizontalNavigationRef.getTabIndex(this));\n\treadonly selected = computed(() => !this.disabled() && this.index() === this.horizontalNavigationRef.selectedIndex());\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { booleanAttribute, ChangeDetectionStrategy, Component, computed, contentChildren, effect, ElementRef, forwardRef, inject, input, model, viewChildren, ViewEncapsulation } from '@angular/core';\nimport { DecorativePalette, isNil, isNotNil, Palette, PortalDirective } from '@lucca-front/ng/core';\nimport { LuDialogRef } from '@lucca-front/ng/dialog';\nimport { HorizontalNavigationLinkDirective } from './horizontal-navigation-link.directive';\nimport { HorizontalNavigationTabComponent } from './horizontal-navigation-tab.component';\nimport { LU_HORIZONTALNAVIGATION_INSTANCE } from './horizontal-navigation.token';\nimport { HorizontalNavigationSize } from './horizontal-navigation.type';\n\n@Component({\n\tselector: 'lu-horizontal-navigation',\n\ttemplateUrl: './horizontal-navigation.component.html',\n\tstyleUrl: './horizontal-navigation.component.scss',\n\tencapsulation: ViewEncapsulation.None,\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thost: {\n\t\t'[class.horizontalNavigationWrapper]': 'this.dialogRef !== null',\n\t},\n\timports: [NgTemplateOutlet, PortalDirective],\n\tproviders: [\n\t\t{\n\t\t\tprovide: LU_HORIZONTALNAVIGATION_INSTANCE,\n\t\t\tuseExisting: forwardRef(() => HorizontalNavigationComponent),\n\t\t},\n\t],\n})\nexport class HorizontalNavigationComponent {\n\treadonly dialogRef = inject(LuDialogRef, { optional: true });\n\n\treadonly links = contentChildren(HorizontalNavigationLinkDirective);\n\n\treadonly tabs = contentChildren(HorizontalNavigationTabComponent);\n\n\treadonly buttons = viewChildren<ElementRef<HTMLButtonElement>>('tabButton');\n\n\treadonly noBorder = input(false, { transform: booleanAttribute });\n\n\treadonly container = input(false, { transform: booleanAttribute });\n\n\treadonly vertical = input(false, { transform: booleanAttribute });\n\n\treadonly palette = input<Palette | DecorativePalette | null>(null);\n\treadonly paletteClass = computed(() => ({ [`palette-${this.palette()}`]: !!this.palette() }));\n\n\t/**\n\t * Which size should the horizontal navigation be? Defaults and small\n\t */\n\treadonly size = input<HorizontalNavigationSize | null>(null);\n\n\treadonly isTablist = computed(() => this.tabs().length > 0);\n\n\treadonly currentIndex = model<number>(0);\n\n\treadonly selectedIndex = computed(() => {\n\t\tconst tabCount = this.tabs().length;\n\t\tif (tabCount === 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tconst requestedIndex = this.currentIndex();\n\t\tconst normalizedIndex = ((requestedIndex % tabCount) + tabCount) % tabCount;\n\n\t\tconst requestedTab = this.tabs()[normalizedIndex];\n\t\tif (isNotNil(requestedTab) && !requestedTab.disabled()) {\n\t\t\treturn normalizedIndex;\n\t\t}\n\n\t\treturn this.findAccessibleTabIndex(normalizedIndex + 1, 1);\n\t});\n\n\tconstructor() {\n\t\teffect(() => {\n\t\t\tconst normalizedIndex = this.selectedIndex();\n\t\t\tif (isNil(normalizedIndex)) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (this.currentIndex() !== normalizedIndex) {\n\t\t\t\tthis.currentIndex.set(normalizedIndex);\n\t\t\t}\n\t\t});\n\t}\n\n\tnavigateToFirstEnabledTab(): void {\n\t\tconst firstEnabledIndex = this.findAccessibleTabIndex(0, 1);\n\t\tif (isNotNil(firstEnabledIndex)) {\n\t\t\tthis.currentIndex.set(firstEnabledIndex);\n\t\t\tthis.buttons()[firstEnabledIndex].nativeElement.focus();\n\t\t}\n\t}\n\n\tnavigateToLastEnabledTab(): void {\n\t\tconst lastTabIndex = this.tabs().length - 1;\n\t\tif (lastTabIndex < 0) return;\n\n\t\tconst lastEnabledIndex = this.findAccessibleTabIndex(lastTabIndex, -1);\n\t\tif (isNotNil(lastEnabledIndex)) {\n\t\t\tthis.currentIndex.set(lastEnabledIndex);\n\t\t\tthis.buttons()[lastEnabledIndex].nativeElement.focus();\n\t\t}\n\t}\n\n\tgetTabIndex(tab: HorizontalNavigationTabComponent): number {\n\t\treturn this.tabs().indexOf(tab);\n\t}\n\n\tnavigateToTabByIndex(index: number): void {\n\t\tconst tab = this.tabs()[index];\n\t\tif (!tab || tab.disabled()) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.currentIndex.set(index);\n\t\tthis.buttons()[index].nativeElement.focus();\n\t}\n\n\tprivate findAccessibleTabIndex(startIndex: number, direction: number): number | null {\n\t\tconst tabCount = this.tabs().length;\n\t\tif (tabCount === 0) return null;\n\t\tif (direction !== 1 && direction !== -1) return null;\n\n\t\tconst tabs = this.tabs();\n\t\tlet attempts = 0;\n\t\tlet currentIndex = ((startIndex % tabCount) + tabCount) % tabCount;\n\n\t\twhile (attempts < tabCount) {\n\t\t\tconst tab = tabs[currentIndex];\n\t\t\tif (isNotNil(tab) && !tab.disabled()) {\n\t\t\t\treturn currentIndex;\n\t\t\t}\n\n\t\t\tcurrentIndex = (currentIndex + direction + tabCount) % tabCount;\n\t\t\tattempts++;\n\t\t}\n\n\t\treturn null;\n\t}\n\n\tchangeTab(event: KeyboardEvent, currentIndex: number): void {\n\t\tconst key = event.key;\n\n\t\tif (key === 'ArrowLeft' || key === 'ArrowUp') {\n\t\t\tevent.preventDefault();\n\t\t\tconst nextEnabledIndex = this.findAccessibleTabIndex(currentIndex - 1, -1);\n\t\t\tif (isNotNil(nextEnabledIndex)) {\n\t\t\t\tthis.navigateToTabByIndex(nextEnabledIndex);\n\t\t\t}\n\t\t} else if (key === 'ArrowRight' || key === 'ArrowDown') {\n\t\t\tevent.preventDefault();\n\t\t\tconst nextEnabledIndex = this.findAccessibleTabIndex(currentIndex + 1, 1);\n\t\t\tif (isNotNil(nextEnabledIndex)) {\n\t\t\t\tthis.navigateToTabByIndex(nextEnabledIndex);\n\t\t\t}\n\t\t} else if (key === 'Home') {\n\t\t\tevent.preventDefault();\n\t\t\tthis.navigateToFirstEnabledTab();\n\t\t} else if (key === 'End') {\n\t\t\tevent.preventDefault();\n\t\t\tthis.navigateToLastEnabledTab();\n\t\t}\n\t}\n}\n","<div\n\tclass=\"horizontalNavigation\"\n\t[class]=\"paletteClass()\"\n\t[class.mod-noBorder]=\"noBorder()\"\n\t[class.mod-S]=\"size() === `S`\"\n\t[class.mod-vertical]=\"vertical()\"\n>\n\t@if (container() || this.dialogRef !== null) {\n\t\t<div class=\"horizontalNavigation-containerOptional\">\n\t\t\t<ng-container *ngTemplateOutlet=\"horizontalNavigationList\" />\n\t\t</div>\n\t} @else {\n\t\t<ng-container *ngTemplateOutlet=\"horizontalNavigationList\" />\n\t}\n</div>\n\n@if (isTablist()) {\n\t<ng-content />\n}\n\n<ng-template #horizontalNavigationList>\n\t<ul class=\"horizontalNavigation-list\" [attr.role]=\"isTablist() ? 'tablist' : null\">\n\t\t@if (isTablist()) {\n\t\t\t@for (tab of tabs(); track $index) {\n\t\t\t\t<li class=\"horizontalNavigation-list-item\">\n\t\t\t\t\t<button\n\t\t\t\t\t\t#tabButton\n\t\t\t\t\t\t[attr.tabindex]=\"selectedIndex() !== $index ? '-1' : null\"\n\t\t\t\t\t\t[attr.aria-selected]=\"selectedIndex() === $index\"\n\t\t\t\t\t\t[attr.disabled]=\"tab.disabled() ? 'disabled' : null\"\n\t\t\t\t\t\taria-controls=\"panel-{{ tab.index() }}\"\n\t\t\t\t\t\tid=\"tab-{{ tab.index() }}\"\n\t\t\t\t\t\t(keydown)=\"changeTab($event, $index)\"\n\t\t\t\t\t\t(click)=\"navigateToTabByIndex($index)\"\n\t\t\t\t\t\trole=\"tab\"\n\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\tclass=\"horizontalNavigation-list-item-action\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<ng-container *luPortal=\"tab.label()\" />\n\t\t\t\t\t</button>\n\t\t\t\t</li>\n\t\t\t}\n\t\t} @else {\n\t\t\t@for (link of links(); track $index) {\n\t\t\t\t<li class=\"horizontalNavigation-list-item\">\n\t\t\t\t\t<ng-container *ngTemplateOutlet=\"link.template\" />\n\t\t\t\t</li>\n\t\t\t}\n\t\t}\n\t</ul>\n</ng-template>\n","/**\n * Available HorizontalNavigationComponent Types\n */\n\nexport const HORIZONTAL_NAVIGATION_SIZE = ['S'] as const;\nexport type HorizontalNavigationSize = (typeof HORIZONTAL_NAVIGATION_SIZE)[number];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;MAKa,iCAAiC,CAAA;AAH9C,IAAA,WAAA,GAAA;AAIQ,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,WAAW,CAAC;AACrC,IAAA;8GAFY,iCAAiC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAjC,iCAAiC,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,8BAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAjC,iCAAiC,EAAA,UAAA,EAAA,CAAA;kBAH7C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,8BAA8B;AACxC,iBAAA;;;ACDM,MAAM,gCAAgC,GAAG,IAAI,cAAc,CAAgC,kCAAkC,CAAC;;MCcxH,gCAAgC,CAAA;AAb7C,IAAA,WAAA,GAAA;AAcW,QAAA,IAAA,CAAA,u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AA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,MAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,cAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEjC3E;;AAEG;AAEI,MAAM,0BAA0B,GAAG,CAAC,GAAG;;ACJ9C;;AAEG;;;;"}
@@ -63,13 +63,18 @@ const luImpersonationTranslations = Translations;
63
63
  class ImpersonationComponent {
64
64
  constructor() {
65
65
  this.elementRef = inject(ElementRef);
66
- this.intl = input(...intlInputOptions(LU_CORE_SELECT_USER_TRANSLATIONS, LU_IMPERSONATION_TRANSLATIONS), ...(ngDevMode ? [{ debugName: "intl" }] : /* istanbul ignore next */ []));
66
+ this.intl = input(...intlInputOptions(LU_CORE_SELECT_USER_TRANSLATIONS, LU_IMPERSONATION_TRANSLATIONS), /* @ts-ignore */
67
+ ...(ngDevMode ? [{ debugName: "intl" }] : /* istanbul ignore next */ []));
67
68
  this.currentUserId = inject(_LU_CORE_SELECT_CURRENT_USER_ID);
68
- this.inputComponentRef = viewChild(LuSimpleSelectInputComponent, ...(ngDevMode ? [{ debugName: "inputComponentRef" }] : /* istanbul ignore next */ []));
69
- this.popoverRef = viewChild(PopoverDirective, ...(ngDevMode ? [{ debugName: "popoverRef" }] : /* istanbul ignore next */ []));
70
- this.selectedUser = model(...(ngDevMode ? [undefined, { debugName: "selectedUser" }] : /* istanbul ignore next */ []));
69
+ this.inputComponentRef = viewChild(LuSimpleSelectInputComponent, /* @ts-ignore */
70
+ ...(ngDevMode ? [{ debugName: "inputComponentRef" }] : /* istanbul ignore next */ []));
71
+ this.popoverRef = viewChild(PopoverDirective, /* @ts-ignore */
72
+ ...(ngDevMode ? [{ debugName: "popoverRef" }] : /* istanbul ignore next */ []));
73
+ this.selectedUser = model(/* @ts-ignore */
74
+ ...(ngDevMode ? [undefined, { debugName: "selectedUser" }] : /* istanbul ignore next */ []));
71
75
  this.enableFormerEmployees = input(false, { ...(ngDevMode ? { debugName: "enableFormerEmployees" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
72
- this.isNotMe = computed(() => this.selectedUser()?.id !== this.currentUserId, ...(ngDevMode ? [{ debugName: "isNotMe" }] : /* istanbul ignore next */ []));
76
+ this.isNotMe = computed(() => this.selectedUser()?.id !== this.currentUserId, /* @ts-ignore */
77
+ ...(ngDevMode ? [{ debugName: "isNotMe" }] : /* istanbul ignore next */ []));
73
78
  this.clear = output();
74
79
  this.popoverPositions = [
75
80
  new ConnectionPositionPair({ originX: 'start', originY: 'bottom' }, {
@@ -101,10 +106,10 @@ class ImpersonationComponent {
101
106
  }
102
107
  });
103
108
  }
104
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: ImpersonationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
105
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.14", type: ImpersonationComponent, isStandalone: true, selector: "lu-impersonation", inputs: { intl: { classPropertyName: "intl", publicName: "intl", isSignal: true, isRequired: false, transformFunction: null }, selectedUser: { classPropertyName: "selectedUser", publicName: "selectedUser", isSignal: true, isRequired: false, transformFunction: null }, enableFormerEmployees: { classPropertyName: "enableFormerEmployees", publicName: "enableFormerEmployees", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectedUser: "selectedUserChange", clear: "clear" }, host: { classAttribute: "impersonation" }, viewQueries: [{ propertyName: "inputComponentRef", first: true, predicate: LuSimpleSelectInputComponent, descendants: true, isSignal: true }, { propertyName: "popoverRef", first: true, predicate: PopoverDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<button\n\ttype=\"button\"\n\tclass=\"impersonation-trigger\"\n\t[class.is-active]=\"isNotMe() && selectedUser()\"\n\t[luPopover2]=\"impersonationPopover\"\n\t[luPopoverNoCloseButton]=\"true\"\n\t[customPositions]=\"popoverPositions\"\n\t[luPopoverAnchor]=\"elementRef\"\n\t#popoverRef=\"luPopover2\"\n\t[attr.aria-expanded]=\"popoverRef.opened()\"\n\t(keydown.arrowDown)=\"$event.preventDefault(); popoverRef.openPopover(true)\"\n\t(keydown.arrowUp)=\"$event.preventDefault(); popoverRef.openPopover(true)\"\n>\n\t<span class=\"pr-u-mask\">{{ intl().switchProfile }}</span>\n\n\t@let user = selectedUser();\n\t@if (user) {\n\t\t<lu-user-picture aria-hidden=\"true\" [user]=\"user\" size=\"S\" softRounded />\n\t\t{{ user | luUserDisplay }}\n\t} @else {\n\t\t<lu-user-picture placeholder aria-hidden=\"true\" size=\"S\" softRounded />\n\t\t<div class=\"skeleton is-loading\" style=\"inline-size: 5.5rem\">\n\t\t\t<span class=\"skeleton-item\"></span>\n\t\t</div>\n\t}\n\t<span class=\"pr-u-mask\">{{ intl().a11yNavigationDescription }}</span>\n\t<lu-icon class=\"impersonation-trigger-icon\" icon=\"chevronBottom\" />\n</button>\n<lu-clear class=\"impersonation-clear\" (onClear)=\"clear.emit()\" [intl]=\"{ clear: intl().clear }\" />\n\n<ng-template #impersonationPopover>\n\t<div class=\"impersonation_popover-content popover-contentOptional\">\n\t\t<lu-simple-select impersonation [(ngModel)]=\"selectedUser\" users [enableFormerEmployees]=\"enableFormerEmployees()\" #selectRef>\n\t\t\t<ng-container *luOption=\"let user; select: selectRef\">\n\t\t\t\t<div class=\"impersonation_popover-content-option\" [class.mod-me]=\"currentUserId === user.id\">\n\t\t\t\t\t<lu-user-picture aria-hidden=\"true\" [user]=\"user\" size=\"XS\" softRounded />\n\t\t\t\t\t<div>\n\t\t\t\t\t\t@if (currentUserId === user.id) {\n\t\t\t\t\t\t\t{{ intl().me }} <span translate=\"no\">{{ user | luUserDisplay }}</span>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<span translate=\"no\">{{ user | luUserDisplay }}</span>\n\t\t\t\t\t\t}\n\t\t\t\t\t\t<!-- Handle homonyms -->\n\t\t\t\t\t\t@if (user.additionalInformation) {\n\t\t\t\t\t\t\t<div class=\"option-additional\">\n\t\t\t\t\t\t\t\t{{ user.additionalInformation }}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</ng-container>\n\t\t</lu-simple-select>\n\t</div>\n</ng-template>\n", styles: ["@layer components{.impersonation{--components-impersonation-trigger-borderColor: var(--palettes-neutral-100);--components-impersonation-trigger-icon-rotate: 0deg;--components-impersonation-trigger-backgroundColor: var(--palettes-neutral-0);--components-impersonation-trigger-fontWeight: var(--pr-t-font-fontWeight-regular);--components-impersonation-trigger-color: var(--pr-t-color-text);--components-impersonation-trigger-icon-color: var(--pr-t-color-text-subtle);--components-impersonation-clear-display: none;--components-impersonation-trigger-icon-marginInlineStart: auto;position:relative;inline-size:fit-content;display:block}.impersonation-trigger{padding:0;border:0;inline-size:100%;background-color:transparent;color:inherit;text-align:start;display:block;font:inherit;cursor:pointer;box-shadow:0 0 0 1px var(--components-impersonation-trigger-borderColor);background-color:var(--components-impersonation-trigger-backgroundColor);border-radius:var(--pr-t-border-radius-200);inline-size:fit-content;display:flex;align-items:center;gap:var(--pr-t-spacings-100);padding:var(--pr-t-spacings-50);padding-inline-end:var(--pr-t-spacings-100);min-block-size:var(--pr-t-spacings-500);font-weight:var(--components-impersonation-trigger-fontWeight);color:var(--components-impersonation-trigger-color);transition-property:box-shadow,border-color;transition-duration:var(--commons-animations-durations-fast)}.impersonation-trigger-icon{color:var(--components-impersonation-trigger-icon-color);rotate:var(--components-impersonation-trigger-icon-rotate);transition-property:rotate;transition-duration:var(--commons-animations-durations-fast);margin-inline-start:var(--components-impersonation-trigger-icon-marginInlineStart)}.impersonation-clear.clear{position:absolute;z-index:1;inset-inline-end:calc(var(--pr-t-spacings-400) + var(--pr-t-spacings-75));inset-block-start:calc(var(--pr-t-spacings-150) + 1px);display:var(--components-impersonation-clear-display);--components-clear-cross-color: var(--palettes-neutral-0);--components-clear-background: var(--palettes-product-800)}.impersonation-clear.clear:hover{--components-clear-background: var(--palettes-product-700)}.impersonation-clear.clear:active{--components-clear-background: var(--palettes-product-900)}.impersonation_popover-content-option{display:flex;color:var(--pr-t-color-text)}.impersonation_popover-content-option.mod-me{font-weight:var(--pr-t-font-fontWeight-semibold)}}@layer mods{.impersonation:has(.impersonation-trigger.is-active){--components-impersonation-trigger-backgroundColor: var(--palettes-product-50);--components-impersonation-trigger-borderColor: var(--palettes-product-200);--components-impersonation-trigger-fontWeight: var(--pr-t-font-fontWeight-semibold);--components-impersonation-trigger-color: var(--palettes-product-800);--components-impersonation-trigger-icon-color: var(--palettes-product-700);--components-impersonation-clear-display: grid;--components-impersonation-trigger-icon-marginInlineStart: var(--pr-t-spacings-250)}.impersonation:has(.impersonation-trigger:hover){--components-impersonation-trigger-borderColor: var(--palettes-product-400);--components-impersonation-trigger-shadow: var(--pr-t-elevation-shadow-button)}.impersonation:has(.impersonation-trigger[aria-expanded=true]){--components-impersonation-trigger-icon-rotate: 180deg}}\n"], dependencies: [{ kind: "directive", type: PopoverDirective, selector: "[luPopover2]", inputs: ["intl", "luPopover2", "luPopoverPosition", "luPopoverMaxBlockSize", "luPopoverMaxInlineSize", "overlayScrollStrategy", "luPopoverDisabled", "luPopoverTrigger", "customPositions", "luPopoverNoCloseButton", "luPopoverAnchor", "luPopoverOpenDelay", "luPopoverCloseDelay"], outputs: ["luPopoverTriggerChange", "luPopoverClosed", "luPopoverOpened"], exportAs: ["luPopover2"] }, { 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: LuSimpleSelectInputComponent, selector: "lu-simple-select", inputs: ["intl", "autocomplete", "impersonation"] }, { kind: "directive", type: LuCoreSelectUsersDirective, selector: "lu-simple-select[users],lu-multi-select[users]", inputs: ["displayFormat", "filters", "url", "orderBy", "operationIds", "uniqueOperationIds", "appInstanceId", "enableFormerEmployees", "displayMeOption", "customUserOptionTpl", "searchDelimiter"], outputs: ["customUserOptionTplChange"], exportAs: ["luUsers"] }, { kind: "directive", type: LuOptionDirective, selector: "[luOption]", inputs: ["luOptionSelect"] }, { kind: "component", type: LuUserPictureComponent, selector: "lu-user-picture", inputs: ["displayFormat", "user", "AI", "placeholder", "softRounded", "size", "imageLoadingAttribute"] }, { kind: "component", type: IconComponent, selector: "lu-icon, pr-icon", inputs: ["icon", "alt", "size", "color", "AI"] }, { kind: "component", type: ClearComponent, selector: "lu-clear", inputs: ["intl", "size", "disabled", "palette", "inverted"], outputs: ["onClear"], exportAs: ["luClearer"] }, { kind: "pipe", type: LuUserDisplayPipe, name: "luUserDisplay" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
109
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: ImpersonationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
110
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.4", type: ImpersonationComponent, isStandalone: true, selector: "lu-impersonation", inputs: { intl: { classPropertyName: "intl", publicName: "intl", isSignal: true, isRequired: false, transformFunction: null }, selectedUser: { classPropertyName: "selectedUser", publicName: "selectedUser", isSignal: true, isRequired: false, transformFunction: null }, enableFormerEmployees: { classPropertyName: "enableFormerEmployees", publicName: "enableFormerEmployees", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectedUser: "selectedUserChange", clear: "clear" }, host: { classAttribute: "impersonation" }, viewQueries: [{ propertyName: "inputComponentRef", first: true, predicate: LuSimpleSelectInputComponent, descendants: true, isSignal: true }, { propertyName: "popoverRef", first: true, predicate: PopoverDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<button\n\ttype=\"button\"\n\tclass=\"impersonation-trigger\"\n\t[class.is-active]=\"isNotMe() && selectedUser()\"\n\t[luPopover2]=\"impersonationPopover\"\n\t[luPopoverNoCloseButton]=\"true\"\n\t[customPositions]=\"popoverPositions\"\n\t[luPopoverAnchor]=\"elementRef\"\n\t#popoverRef=\"luPopover2\"\n\t[attr.aria-expanded]=\"popoverRef.opened()\"\n\t(keydown.arrowDown)=\"$event.preventDefault(); popoverRef.openPopover(true)\"\n\t(keydown.arrowUp)=\"$event.preventDefault(); popoverRef.openPopover(true)\"\n>\n\t<span class=\"pr-u-mask\">{{ intl().switchProfile }}</span>\n\n\t@let user = selectedUser();\n\t@if (user) {\n\t\t<lu-user-picture aria-hidden=\"true\" [user]=\"user\" size=\"S\" softRounded />\n\t\t{{ user | luUserDisplay }}\n\t} @else {\n\t\t<lu-user-picture placeholder aria-hidden=\"true\" size=\"S\" softRounded />\n\t\t<div class=\"skeleton is-loading\" style=\"inline-size: 5.5rem\">\n\t\t\t<span class=\"skeleton-item\"></span>\n\t\t</div>\n\t}\n\t<span class=\"pr-u-mask\">{{ intl().a11yNavigationDescription }}</span>\n\t<lu-icon class=\"impersonation-trigger-icon\" icon=\"chevronBottom\" />\n</button>\n<lu-clear class=\"impersonation-clear\" (onClear)=\"clear.emit()\" [intl]=\"{ clear: intl().clear }\" />\n\n<ng-template #impersonationPopover>\n\t<div class=\"impersonation_popover-content popover-contentOptional\">\n\t\t<lu-simple-select impersonation [(ngModel)]=\"selectedUser\" users [enableFormerEmployees]=\"enableFormerEmployees()\" #selectRef>\n\t\t\t<ng-container *luOption=\"let user; select: selectRef\">\n\t\t\t\t<div class=\"impersonation_popover-content-option\" [class.mod-me]=\"currentUserId === user.id\">\n\t\t\t\t\t<lu-user-picture aria-hidden=\"true\" [user]=\"user\" size=\"XS\" softRounded />\n\t\t\t\t\t<div>\n\t\t\t\t\t\t@if (currentUserId === user.id) {\n\t\t\t\t\t\t\t{{ intl().me }} <span translate=\"no\">{{ user | luUserDisplay }}</span>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<span translate=\"no\">{{ user | luUserDisplay }}</span>\n\t\t\t\t\t\t}\n\t\t\t\t\t\t<!-- Handle homonyms -->\n\t\t\t\t\t\t@if (user.additionalInformation) {\n\t\t\t\t\t\t\t<div class=\"option-additional\">\n\t\t\t\t\t\t\t\t{{ user.additionalInformation }}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</ng-container>\n\t\t</lu-simple-select>\n\t</div>\n</ng-template>\n", styles: ["@layer components{.impersonation{--components-impersonation-trigger-borderColor: var(--palettes-neutral-100);--components-impersonation-trigger-icon-rotate: 0deg;--components-impersonation-trigger-backgroundColor: var(--palettes-neutral-0);--components-impersonation-trigger-fontWeight: var(--pr-t-font-fontWeight-regular);--components-impersonation-trigger-color: var(--pr-t-color-text);--components-impersonation-trigger-icon-color: var(--pr-t-color-text-subtle);--components-impersonation-clear-display: none;--components-impersonation-trigger-icon-marginInlineStart: auto;position:relative;inline-size:fit-content;display:block}.impersonation-trigger{padding:0;border:0;inline-size:100%;background-color:transparent;color:inherit;text-align:start;display:block;font:inherit;cursor:pointer;box-shadow:0 0 0 1px var(--components-impersonation-trigger-borderColor);background-color:var(--components-impersonation-trigger-backgroundColor);border-radius:var(--pr-t-border-radius-200);inline-size:fit-content;display:flex;align-items:center;gap:var(--pr-t-spacings-100);padding:var(--pr-t-spacings-50);padding-inline-end:var(--pr-t-spacings-100);min-block-size:var(--pr-t-spacings-500);font-weight:var(--components-impersonation-trigger-fontWeight);color:var(--components-impersonation-trigger-color);transition-property:box-shadow,border-color;transition-duration:var(--commons-animations-durations-fast)}.impersonation-trigger-icon{color:var(--components-impersonation-trigger-icon-color);rotate:var(--components-impersonation-trigger-icon-rotate);transition-property:rotate;transition-duration:var(--commons-animations-durations-fast);margin-inline-start:var(--components-impersonation-trigger-icon-marginInlineStart)}.impersonation-clear.clear{position:absolute;z-index:1;inset-inline-end:calc(var(--pr-t-spacings-400) + var(--pr-t-spacings-75));inset-block-start:calc(var(--pr-t-spacings-150) + 1px);display:var(--components-impersonation-clear-display);--components-clear-cross-color: var(--palettes-neutral-0);--components-clear-background: var(--palettes-product-800)}.impersonation-clear.clear:hover{--components-clear-background: var(--palettes-product-700)}.impersonation-clear.clear:active{--components-clear-background: var(--palettes-product-900)}.impersonation_popover-content-option{display:flex;color:var(--pr-t-color-text)}.impersonation_popover-content-option.mod-me{font-weight:var(--pr-t-font-fontWeight-semibold)}}@layer mods{.impersonation:has(.impersonation-trigger.is-active){--components-impersonation-trigger-backgroundColor: var(--palettes-product-50);--components-impersonation-trigger-borderColor: var(--palettes-product-200);--components-impersonation-trigger-fontWeight: var(--pr-t-font-fontWeight-semibold);--components-impersonation-trigger-color: var(--palettes-product-800);--components-impersonation-trigger-icon-color: var(--palettes-product-700);--components-impersonation-clear-display: grid;--components-impersonation-trigger-icon-marginInlineStart: var(--pr-t-spacings-250)}.impersonation:has(.impersonation-trigger:hover){--components-impersonation-trigger-borderColor: var(--palettes-product-400);--components-impersonation-trigger-shadow: var(--pr-t-elevation-shadow-button)}.impersonation:has(.impersonation-trigger[aria-expanded=true]){--components-impersonation-trigger-icon-rotate: 180deg}}\n"], dependencies: [{ kind: "directive", type: PopoverDirective, selector: "[luPopover2]", inputs: ["intl", "luPopover2", "luPopoverPosition", "luPopoverMaxBlockSize", "luPopoverMaxInlineSize", "overlayScrollStrategy", "luPopoverDisabled", "luPopoverTrigger", "customPositions", "luPopoverNoCloseButton", "luPopoverAnchor", "luPopoverOpenDelay", "luPopoverCloseDelay"], outputs: ["luPopoverTriggerChange", "luPopoverClosed", "luPopoverOpened"], exportAs: ["luPopover2"] }, { 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: LuSimpleSelectInputComponent, selector: "lu-simple-select", inputs: ["intl", "autocomplete", "impersonation"] }, { kind: "directive", type: LuCoreSelectUsersDirective, selector: "lu-simple-select[users],lu-multi-select[users]", inputs: ["displayFormat", "filters", "url", "orderBy", "operationIds", "uniqueOperationIds", "appInstanceId", "enableFormerEmployees", "displayMeOption", "customUserOptionTpl", "searchDelimiter"], outputs: ["customUserOptionTplChange"], exportAs: ["luUsers"] }, { kind: "directive", type: LuOptionDirective, selector: "[luOption]", inputs: ["luOptionSelect"] }, { kind: "component", type: LuUserPictureComponent, selector: "lu-user-picture", inputs: ["displayFormat", "user", "AI", "placeholder", "softRounded", "size", "imageLoadingAttribute"] }, { kind: "component", type: IconComponent, selector: "lu-icon, pr-icon", inputs: ["icon", "alt", "size", "color", "AI"] }, { kind: "component", type: ClearComponent, selector: "lu-clear", inputs: ["intl", "size", "disabled", "palette", "inverted"], outputs: ["onClear"], exportAs: ["luClearer"] }, { kind: "pipe", type: LuUserDisplayPipe, name: "luUserDisplay" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
106
111
  }
107
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: ImpersonationComponent, decorators: [{
112
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: ImpersonationComponent, decorators: [{
108
113
  type: Component,
109
114
  args: [{ selector: 'lu-impersonation', imports: [PopoverDirective, FormsModule, LuSimpleSelectInputComponent, LuCoreSelectUsersDirective, LuUserDisplayPipe, LuOptionDirective, LuUserPictureComponent, IconComponent, ClearComponent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
110
115
  class: 'impersonation',
@@ -1 +1 @@
1
- {"version":3,"file":"lucca-front-ng-impersonation.mjs","sources":["../../../packages/ng/impersonation/impersonation/translations.ts","../../../packages/ng/impersonation/impersonation/impersonation.translate.ts","../../../packages/ng/impersonation/impersonation/impersonation.component.ts","../../../packages/ng/impersonation/impersonation/impersonation.component.html","../../../packages/ng/impersonation/lucca-front-ng-impersonation.ts"],"sourcesContent":["export const Translations = {\n\t'nl-BE': {\n\t\ta11yNavigationDescription: '– De inhoud van de pagina wordt bijgewerkt zodra dit filter wordt gewijzigd',\n\t\tswitchProfile: 'Profiel wijzigen:',\n\t\tclear: 'Terug naar standaardprofiel',\n\t},\n\tnl: {\n\t\ta11yNavigationDescription: '– De inhoud van de pagina wordt bijgewerkt zodra dit filter wordt gewijzigd',\n\t\tswitchProfile: 'Profiel wijzigen:',\n\t\tclear: 'Terug naar standaardprofiel',\n\t},\n\tit: {\n\t\ta11yNavigationDescription: '– Il contenuto della pagina si aggiorna non appena questo filtro viene modificato',\n\t\tswitchProfile: 'Cambia profilo:',\n\t\tclear: 'Torna al profilo predefinito',\n\t},\n\tfr: {\n\t\ta11yNavigationDescription: '– Le contenu de la page s’actualise dès que ce filtre est modifié',\n\t\tswitchProfile: 'Changer de profil :',\n\t\tclear: 'Revenir au profil par défaut',\n\t},\n\tpt: {\n\t\ta11yNavigationDescription: '– O conteúdo da página é atualizado assim que este filtro é alterado',\n\t\tswitchProfile: 'Alterar perfil:',\n\t\tclear: 'Voltar ao perfil predefinido',\n\t},\n\tes: {\n\t\ta11yNavigationDescription: '– El contenido de la página se actualiza en cuanto se cambia este filtro',\n\t\tswitchProfile: 'Cambiar de perfil:',\n\t\tclear: 'Volver al perfil predeterminado',\n\t},\n\tde: {\n\t\ta11yNavigationDescription: '– Der Seiteninhalt wird aktualisiert, sobald dieser Filter geändert wird',\n\t\tswitchProfile: 'Profil wechseln:',\n\t\tclear: 'Zurück zum Standardprofil',\n\t},\n\ten: {\n\t\ta11yNavigationDescription: '– Page content updates as soon as this filter is changed',\n\t\tswitchProfile: 'Switch profile:',\n\t\tclear: 'Back to default profile',\n\t},\n};\n","import { InjectionToken } from '@angular/core';\nimport { LuTranslation } from '@lucca-front/ng/core';\nimport { Translations } from './translations';\n\nexport const LU_IMPERSONATION_TRANSLATIONS = new InjectionToken('LuImpersonationTranslations', {\n\tfactory: () => luImpersonationTranslations,\n});\n\nexport interface LuImpersonationTranslations {\n\ta11yNavigationDescription: string;\n\tswitchProfile: string;\n\tclear: string;\n}\n\nexport const luImpersonationTranslations: LuTranslation<LuImpersonationTranslations> = Translations;\n","import { ConnectionPositionPair } from '@angular/cdk/overlay';\nimport { booleanAttribute, ChangeDetectionStrategy, Component, computed, effect, ElementRef, inject, input, model, output, untracked, viewChild, ViewEncapsulation } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { ClearComponent } from '@lucca-front/ng/clear';\nimport { LuOptionDirective } from '@lucca-front/ng/core-select';\nimport { LU_CORE_SELECT_USER_TRANSLATIONS, LuCoreSelectUsersDirective, ɵLU_CORE_SELECT_CURRENT_USER_ID } from '@lucca-front/ng/core-select/user';\nimport { PopoverDirective } from '@lucca-front/ng/popover2';\nimport { LuSimpleSelectInputComponent } from '@lucca-front/ng/simple-select';\nimport { ILuUser, LuUserDisplayPipe, LuUserPictureComponent } from '@lucca-front/ng/user';\nimport { IconComponent } from '@lucca/prisme/icon';\nimport { LU_IMPERSONATION_TRANSLATIONS } from './impersonation.translate';\nimport { intlInputOptions } from '@lucca-front/ng/core';\n\n@Component({\n\tselector: 'lu-impersonation',\n\timports: [PopoverDirective, FormsModule, LuSimpleSelectInputComponent, LuCoreSelectUsersDirective, LuUserDisplayPipe, LuOptionDirective, LuUserPictureComponent, IconComponent, ClearComponent],\n\ttemplateUrl: './impersonation.component.html',\n\tstyleUrl: './impersonation.component.scss',\n\tencapsulation: ViewEncapsulation.None,\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thost: {\n\t\tclass: 'impersonation',\n\t},\n})\nexport class ImpersonationComponent {\n\tprotected readonly elementRef = inject(ElementRef);\n\treadonly intl = input(...intlInputOptions(LU_CORE_SELECT_USER_TRANSLATIONS, LU_IMPERSONATION_TRANSLATIONS));\n\tprotected readonly currentUserId = inject(ɵLU_CORE_SELECT_CURRENT_USER_ID);\n\n\treadonly inputComponentRef = viewChild<LuSimpleSelectInputComponent<ILuUser>>(LuSimpleSelectInputComponent);\n\n\treadonly popoverRef = viewChild(PopoverDirective);\n\n\treadonly selectedUser = model<ILuUser>();\n\n\treadonly enableFormerEmployees = input(false, { transform: booleanAttribute });\n\n\treadonly isNotMe = computed(() => this.selectedUser()?.id !== this.currentUserId);\n\treadonly clear = output<void>();\n\n\treadonly popoverPositions: ConnectionPositionPair[] = [\n\t\tnew ConnectionPositionPair(\n\t\t\t{ originX: 'start', originY: 'bottom' },\n\t\t\t{\n\t\t\t\toverlayX: 'start',\n\t\t\t\toverlayY: 'top',\n\t\t\t},\n\t\t\t-4,\n\t\t\t0,\n\t\t),\n\t\tnew ConnectionPositionPair(\n\t\t\t{ originX: 'start', originY: 'top' },\n\t\t\t{\n\t\t\t\toverlayX: 'start',\n\t\t\t\toverlayY: 'bottom',\n\t\t\t},\n\t\t\t-4,\n\t\t\t0,\n\t\t),\n\t];\n\n\tconstructor() {\n\t\teffect(() => {\n\t\t\tconst ref = this.inputComponentRef();\n\t\t\t// Because ref appears only when opening the panel, we're going to call the impersonation opened hook too\n\t\t\tif (ref) {\n\t\t\t\tuntracked(() => {\n\t\t\t\t\tref.enableFilterPillMode();\n\t\t\t\t\tref.registerFilterPillClosePopover(this.closePopover);\n\t\t\t\t\tref.registerFilterPillUpdatePosition?.(this.updatePosition);\n\t\t\t\t\tref.onFilterPillOpened?.();\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t}\n\n\tclosePopover = () => {\n\t\tthis.popoverRef()?.close();\n\t\tthis.inputComponentRef()?.onFilterPillClosed?.();\n\t};\n\n\tupdatePosition = () => {\n\t\tthis.popoverRef()?.updatePosition();\n\t};\n}\n","<button\n\ttype=\"button\"\n\tclass=\"impersonation-trigger\"\n\t[class.is-active]=\"isNotMe() && selectedUser()\"\n\t[luPopover2]=\"impersonationPopover\"\n\t[luPopoverNoCloseButton]=\"true\"\n\t[customPositions]=\"popoverPositions\"\n\t[luPopoverAnchor]=\"elementRef\"\n\t#popoverRef=\"luPopover2\"\n\t[attr.aria-expanded]=\"popoverRef.opened()\"\n\t(keydown.arrowDown)=\"$event.preventDefault(); popoverRef.openPopover(true)\"\n\t(keydown.arrowUp)=\"$event.preventDefault(); popoverRef.openPopover(true)\"\n>\n\t<span class=\"pr-u-mask\">{{ intl().switchProfile }}</span>\n\n\t@let user = selectedUser();\n\t@if (user) {\n\t\t<lu-user-picture aria-hidden=\"true\" [user]=\"user\" size=\"S\" softRounded />\n\t\t{{ user | luUserDisplay }}\n\t} @else {\n\t\t<lu-user-picture placeholder aria-hidden=\"true\" size=\"S\" softRounded />\n\t\t<div class=\"skeleton is-loading\" style=\"inline-size: 5.5rem\">\n\t\t\t<span class=\"skeleton-item\"></span>\n\t\t</div>\n\t}\n\t<span class=\"pr-u-mask\">{{ intl().a11yNavigationDescription }}</span>\n\t<lu-icon class=\"impersonation-trigger-icon\" icon=\"chevronBottom\" />\n</button>\n<lu-clear class=\"impersonation-clear\" (onClear)=\"clear.emit()\" [intl]=\"{ clear: intl().clear }\" />\n\n<ng-template #impersonationPopover>\n\t<div class=\"impersonation_popover-content popover-contentOptional\">\n\t\t<lu-simple-select impersonation [(ngModel)]=\"selectedUser\" users [enableFormerEmployees]=\"enableFormerEmployees()\" #selectRef>\n\t\t\t<ng-container *luOption=\"let user; select: selectRef\">\n\t\t\t\t<div class=\"impersonation_popover-content-option\" [class.mod-me]=\"currentUserId === user.id\">\n\t\t\t\t\t<lu-user-picture aria-hidden=\"true\" [user]=\"user\" size=\"XS\" softRounded />\n\t\t\t\t\t<div>\n\t\t\t\t\t\t@if (currentUserId === user.id) {\n\t\t\t\t\t\t\t{{ intl().me }} <span translate=\"no\">{{ user | luUserDisplay }}</span>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<span translate=\"no\">{{ user | luUserDisplay }}</span>\n\t\t\t\t\t\t}\n\t\t\t\t\t\t<!-- Handle homonyms -->\n\t\t\t\t\t\t@if (user.additionalInformation) {\n\t\t\t\t\t\t\t<div class=\"option-additional\">\n\t\t\t\t\t\t\t\t{{ user.additionalInformation }}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</ng-container>\n\t\t</lu-simple-select>\n\t</div>\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ɵLU_CORE_SELECT_CURRENT_USER_ID"],"mappings":";;;;;;;;;;;;;;AAAO,MAAM,YAAY,GAAG;AAC3B,IAAA,OAAO,EAAE;AACR,QAAA,yBAAyB,EAAE,6EAA6E;AACxG,QAAA,aAAa,EAAE,mBAAmB;AAClC,QAAA,KAAK,EAAE,6BAA6B;AACpC,KAAA;AACD,IAAA,EAAE,EAAE;AACH,QAAA,yBAAyB,EAAE,6EAA6E;AACxG,QAAA,aAAa,EAAE,mBAAmB;AAClC,QAAA,KAAK,EAAE,6BAA6B;AACpC,KAAA;AACD,IAAA,EAAE,EAAE;AACH,QAAA,yBAAyB,EAAE,mFAAmF;AAC9G,QAAA,aAAa,EAAE,iBAAiB;AAChC,QAAA,KAAK,EAAE,8BAA8B;AACrC,KAAA;AACD,IAAA,EAAE,EAAE;AACH,QAAA,yBAAyB,EAAE,mEAAmE;AAC9F,QAAA,aAAa,EAAE,qBAAqB;AACpC,QAAA,KAAK,EAAE,8BAA8B;AACrC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B,qBAAA,EAAA,QAAA,EAAA,qyEAAA,EAAA,MAAA,EAAA,CAAA,6wGAAA,CAAA,EAAA;AAO6E,SAAA,CAAA,EAAA,cAAA,EAAA,MAAA,EAAA,EAAA,cAAA,EAAA,EAAA,IAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,MAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,iBAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAAA,4BAA4B,yFAE1E,gBAAgB,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,cAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,CAAA,EAAA,qBAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,uBAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,KAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,OAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE/BjD;;AAEG;;;;"}
1
+ {"version":3,"file":"lucca-front-ng-impersonation.mjs","sources":["../../../packages/ng/impersonation/impersonation/translations.ts","../../../packages/ng/impersonation/impersonation/impersonation.translate.ts","../../../packages/ng/impersonation/impersonation/impersonation.component.ts","../../../packages/ng/impersonation/impersonation/impersonation.component.html","../../../packages/ng/impersonation/lucca-front-ng-impersonation.ts"],"sourcesContent":["export const Translations = {\n\t'nl-BE': {\n\t\ta11yNavigationDescription: '– De inhoud van de pagina wordt bijgewerkt zodra dit filter wordt gewijzigd',\n\t\tswitchProfile: 'Profiel wijzigen:',\n\t\tclear: 'Terug naar standaardprofiel',\n\t},\n\tnl: {\n\t\ta11yNavigationDescription: '– De inhoud van de pagina wordt bijgewerkt zodra dit filter wordt gewijzigd',\n\t\tswitchProfile: 'Profiel wijzigen:',\n\t\tclear: 'Terug naar standaardprofiel',\n\t},\n\tit: {\n\t\ta11yNavigationDescription: '– Il contenuto della pagina si aggiorna non appena questo filtro viene modificato',\n\t\tswitchProfile: 'Cambia profilo:',\n\t\tclear: 'Torna al profilo predefinito',\n\t},\n\tfr: {\n\t\ta11yNavigationDescription: '– Le contenu de la page s’actualise dès que ce filtre est modifié',\n\t\tswitchProfile: 'Changer de profil :',\n\t\tclear: 'Revenir au profil par défaut',\n\t},\n\tpt: {\n\t\ta11yNavigationDescription: '– O conteúdo da página é atualizado assim que este filtro é alterado',\n\t\tswitchProfile: 'Alterar perfil:',\n\t\tclear: 'Voltar ao perfil predefinido',\n\t},\n\tes: {\n\t\ta11yNavigationDescription: '– El contenido de la página se actualiza en cuanto se cambia este filtro',\n\t\tswitchProfile: 'Cambiar de perfil:',\n\t\tclear: 'Volver al perfil predeterminado',\n\t},\n\tde: {\n\t\ta11yNavigationDescription: '– Der Seiteninhalt wird aktualisiert, sobald dieser Filter geändert wird',\n\t\tswitchProfile: 'Profil wechseln:',\n\t\tclear: 'Zurück zum Standardprofil',\n\t},\n\ten: {\n\t\ta11yNavigationDescription: '– Page content updates as soon as this filter is changed',\n\t\tswitchProfile: 'Switch profile:',\n\t\tclear: 'Back to default profile',\n\t},\n};\n","import { InjectionToken } from '@angular/core';\nimport { LuTranslation } from '@lucca-front/ng/core';\nimport { Translations } from './translations';\n\nexport const LU_IMPERSONATION_TRANSLATIONS = new InjectionToken('LuImpersonationTranslations', {\n\tfactory: () => luImpersonationTranslations,\n});\n\nexport interface LuImpersonationTranslations {\n\ta11yNavigationDescription: string;\n\tswitchProfile: string;\n\tclear: string;\n}\n\nexport const luImpersonationTranslations: LuTranslation<LuImpersonationTranslations> = Translations;\n","import { ConnectionPositionPair } from '@angular/cdk/overlay';\nimport { booleanAttribute, ChangeDetectionStrategy, Component, computed, effect, ElementRef, inject, input, model, output, untracked, viewChild, ViewEncapsulation } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { ClearComponent } from '@lucca-front/ng/clear';\nimport { LuOptionDirective } from '@lucca-front/ng/core-select';\nimport { LU_CORE_SELECT_USER_TRANSLATIONS, LuCoreSelectUsersDirective, ɵLU_CORE_SELECT_CURRENT_USER_ID } from '@lucca-front/ng/core-select/user';\nimport { PopoverDirective } from '@lucca-front/ng/popover2';\nimport { LuSimpleSelectInputComponent } from '@lucca-front/ng/simple-select';\nimport { ILuUser, LuUserDisplayPipe, LuUserPictureComponent } from '@lucca-front/ng/user';\nimport { IconComponent } from '@lucca/prisme/icon';\nimport { LU_IMPERSONATION_TRANSLATIONS } from './impersonation.translate';\nimport { intlInputOptions } from '@lucca-front/ng/core';\n\n@Component({\n\tselector: 'lu-impersonation',\n\timports: [PopoverDirective, FormsModule, LuSimpleSelectInputComponent, LuCoreSelectUsersDirective, LuUserDisplayPipe, LuOptionDirective, LuUserPictureComponent, IconComponent, ClearComponent],\n\ttemplateUrl: './impersonation.component.html',\n\tstyleUrl: './impersonation.component.scss',\n\tencapsulation: ViewEncapsulation.None,\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thost: {\n\t\tclass: 'impersonation',\n\t},\n})\nexport class ImpersonationComponent {\n\tprotected readonly elementRef = inject(ElementRef);\n\treadonly intl = input(...intlInputOptions(LU_CORE_SELECT_USER_TRANSLATIONS, LU_IMPERSONATION_TRANSLATIONS));\n\tprotected readonly currentUserId = inject(ɵLU_CORE_SELECT_CURRENT_USER_ID);\n\n\treadonly inputComponentRef = viewChild<LuSimpleSelectInputComponent<ILuUser>>(LuSimpleSelectInputComponent);\n\n\treadonly popoverRef = viewChild(PopoverDirective);\n\n\treadonly selectedUser = model<ILuUser>();\n\n\treadonly enableFormerEmployees = input(false, { transform: booleanAttribute });\n\n\treadonly isNotMe = computed(() => this.selectedUser()?.id !== this.currentUserId);\n\treadonly clear = output<void>();\n\n\treadonly popoverPositions: ConnectionPositionPair[] = [\n\t\tnew ConnectionPositionPair(\n\t\t\t{ originX: 'start', originY: 'bottom' },\n\t\t\t{\n\t\t\t\toverlayX: 'start',\n\t\t\t\toverlayY: 'top',\n\t\t\t},\n\t\t\t-4,\n\t\t\t0,\n\t\t),\n\t\tnew ConnectionPositionPair(\n\t\t\t{ originX: 'start', originY: 'top' },\n\t\t\t{\n\t\t\t\toverlayX: 'start',\n\t\t\t\toverlayY: 'bottom',\n\t\t\t},\n\t\t\t-4,\n\t\t\t0,\n\t\t),\n\t];\n\n\tconstructor() {\n\t\teffect(() => {\n\t\t\tconst ref = this.inputComponentRef();\n\t\t\t// Because ref appears only when opening the panel, we're going to call the impersonation opened hook too\n\t\t\tif (ref) {\n\t\t\t\tuntracked(() => {\n\t\t\t\t\tref.enableFilterPillMode();\n\t\t\t\t\tref.registerFilterPillClosePopover(this.closePopover);\n\t\t\t\t\tref.registerFilterPillUpdatePosition?.(this.updatePosition);\n\t\t\t\t\tref.onFilterPillOpened?.();\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t}\n\n\tclosePopover = () => {\n\t\tthis.popoverRef()?.close();\n\t\tthis.inputComponentRef()?.onFilterPillClosed?.();\n\t};\n\n\tupdatePosition = () => {\n\t\tthis.popoverRef()?.updatePosition();\n\t};\n}\n","<button\n\ttype=\"button\"\n\tclass=\"impersonation-trigger\"\n\t[class.is-active]=\"isNotMe() && selectedUser()\"\n\t[luPopover2]=\"impersonationPopover\"\n\t[luPopoverNoCloseButton]=\"true\"\n\t[customPositions]=\"popoverPositions\"\n\t[luPopoverAnchor]=\"elementRef\"\n\t#popoverRef=\"luPopover2\"\n\t[attr.aria-expanded]=\"popoverRef.opened()\"\n\t(keydown.arrowDown)=\"$event.preventDefault(); popoverRef.openPopover(true)\"\n\t(keydown.arrowUp)=\"$event.preventDefault(); popoverRef.openPopover(true)\"\n>\n\t<span class=\"pr-u-mask\">{{ intl().switchProfile }}</span>\n\n\t@let user = selectedUser();\n\t@if (user) {\n\t\t<lu-user-picture aria-hidden=\"true\" [user]=\"user\" size=\"S\" softRounded />\n\t\t{{ user | luUserDisplay }}\n\t} @else {\n\t\t<lu-user-picture placeholder aria-hidden=\"true\" size=\"S\" softRounded />\n\t\t<div class=\"skeleton is-loading\" style=\"inline-size: 5.5rem\">\n\t\t\t<span class=\"skeleton-item\"></span>\n\t\t</div>\n\t}\n\t<span class=\"pr-u-mask\">{{ intl().a11yNavigationDescription }}</span>\n\t<lu-icon class=\"impersonation-trigger-icon\" icon=\"chevronBottom\" />\n</button>\n<lu-clear class=\"impersonation-clear\" (onClear)=\"clear.emit()\" [intl]=\"{ clear: intl().clear }\" />\n\n<ng-template #impersonationPopover>\n\t<div class=\"impersonation_popover-content popover-contentOptional\">\n\t\t<lu-simple-select impersonation [(ngModel)]=\"selectedUser\" users [enableFormerEmployees]=\"enableFormerEmployees()\" #selectRef>\n\t\t\t<ng-container *luOption=\"let user; select: selectRef\">\n\t\t\t\t<div class=\"impersonation_popover-content-option\" [class.mod-me]=\"currentUserId === user.id\">\n\t\t\t\t\t<lu-user-picture aria-hidden=\"true\" [user]=\"user\" size=\"XS\" softRounded />\n\t\t\t\t\t<div>\n\t\t\t\t\t\t@if (currentUserId === user.id) {\n\t\t\t\t\t\t\t{{ intl().me }} <span translate=\"no\">{{ user | luUserDisplay }}</span>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<span translate=\"no\">{{ user | luUserDisplay }}</span>\n\t\t\t\t\t\t}\n\t\t\t\t\t\t<!-- Handle homonyms -->\n\t\t\t\t\t\t@if (user.additionalInformation) {\n\t\t\t\t\t\t\t<div class=\"option-additional\">\n\t\t\t\t\t\t\t\t{{ user.additionalInformation }}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</ng-container>\n\t\t</lu-simple-select>\n\t</div>\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ɵLU_CORE_SELECT_CURRENT_USER_ID"],"mappings":";;;;;;;;;;;;;;AAAO,MAAM,YAAY,GAAG;AAC3B,IAAA,OAAO,EAAE;AACR,QAAA,yBAAyB,EAAE,6EAA6E;AACxG,QAAA,aAAa,EAAE,mBAAmB;AAClC,QAAA,KAAK,EAAE,6BAA6B;AACpC,KAAA;AACD,IAAA,EAAE,EAAE;AACH,QAAA,yBAAyB,EAAE,6EAA6E;AACxG,QAAA,aAAa,EAAE,mBAAmB;AAClC,QAAA,KAAK,EAAE,6BAA6B;AACpC,KAAA;AACD,IAAA,EAAE,EAAE;AACH,QAAA,yBAAyB,EAAE,mFAAmF;AAC9G,QAAA,aAAa,EAAE,iBAAiB;AAChC,QAAA,KAAK,EAAE,8BAA8B;AACrC,KAAA;AACD,IAAA,EAAE,EAAE;AACH,QAAA,yBAAyB,EAAE,mEAAmE;AAC9F,QAAA,aAAa,EAAE,qBAAqB;AACpC,QAAA,KAAK,EAAE,8BAA8B;AACrC,KAAA;AACD,IAAA,EAAE,EAAE;AACH,QAAA,yBAAyB,EAAE,sEAAsE;AACjG,QAAA,aAAa,EAAE,iBAAiB;AAChC,QAAA,KAAK,EAAE,8BAA8B;AACrC,KAAA;AACD,IAAA,EAAE,EAAE;AACH,QAAA,yBAAyB,EAAE,0EAA0E;AACrG,QAAA,aAAa,EAAE,oBAAoB;AACnC,QAAA,KAAK,EAAE,iCAAiC;AACxC,KAAA;AACD,IAAA,EAAE,EAAE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