@4sh/ui-kit 0.7.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. package/README.fr.md +12 -11
  2. package/README.md +12 -11
  3. package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs +3 -3
  4. package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs.map +1 -1
  5. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +7 -5
  6. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -1
  7. package/fesm2022/4sh-ui-kit-actions-ui-link.mjs +4 -4
  8. package/fesm2022/4sh-ui-kit-actions-ui-link.mjs.map +1 -1
  9. package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs +3 -3
  10. package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs.map +1 -1
  11. package/fesm2022/4sh-ui-kit-base-ui-icon.mjs +6 -6
  12. package/fesm2022/4sh-ui-kit-base-ui-image.mjs +4 -4
  13. package/fesm2022/4sh-ui-kit-base-ui-image.mjs.map +1 -1
  14. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +8 -6
  15. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -1
  16. package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs +5 -5
  17. package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs.map +1 -1
  18. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +211 -27
  19. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -1
  20. package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs +4 -4
  21. package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs.map +1 -1
  22. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +18 -5
  23. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -1
  24. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +11 -9
  25. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
  26. package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs +7 -7
  27. package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs.map +1 -1
  28. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs +5 -5
  29. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs.map +1 -1
  30. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +5 -5
  31. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
  32. package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs +5 -5
  33. package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs.map +1 -1
  34. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +5 -5
  35. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -1
  36. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +4 -4
  37. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -1
  38. package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs +282 -0
  39. package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs.map +1 -0
  40. package/fesm2022/4sh-ui-kit-forms-ui-label.mjs +4 -4
  41. package/fesm2022/4sh-ui-kit-forms-ui-label.mjs.map +1 -1
  42. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs +4 -4
  43. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs.map +1 -1
  44. package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs +4 -4
  45. package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs.map +1 -1
  46. package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs +4 -4
  47. package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs.map +1 -1
  48. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs +8 -6
  49. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs.map +1 -1
  50. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +7 -5
  51. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -1
  52. package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs +4 -4
  53. package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs.map +1 -1
  54. package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs +4 -4
  55. package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs.map +1 -1
  56. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs +5 -5
  57. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs.map +1 -1
  58. package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs +215 -0
  59. package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs.map +1 -0
  60. package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs +8 -6
  61. package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs.map +1 -1
  62. package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs +4 -4
  63. package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs.map +1 -1
  64. package/fesm2022/4sh-ui-kit-forms.mjs +12 -7
  65. package/fesm2022/4sh-ui-kit-forms.mjs.map +1 -1
  66. package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs +13 -13
  67. package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs.map +1 -1
  68. package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs +4 -4
  69. package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs.map +1 -1
  70. package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs +3 -3
  71. package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs +4 -4
  72. package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs.map +1 -1
  73. package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs +4 -4
  74. package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs.map +1 -1
  75. package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs +4 -4
  76. package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs.map +1 -1
  77. package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs +10 -10
  78. package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs.map +1 -1
  79. package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs +4 -4
  80. package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs.map +1 -1
  81. package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs +4 -4
  82. package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs.map +1 -1
  83. package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs +4 -4
  84. package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs.map +1 -1
  85. package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs +4 -4
  86. package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs.map +1 -1
  87. package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs +3 -3
  88. package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs +4 -4
  89. package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs.map +1 -1
  90. package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs +4 -4
  91. package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs.map +1 -1
  92. package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs +10 -10
  93. package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs.map +1 -1
  94. package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs +45 -26
  95. package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs.map +1 -1
  96. package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs +629 -0
  97. package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs.map +1 -0
  98. package/fesm2022/4sh-ui-kit-layout-ui-card.mjs +16 -16
  99. package/fesm2022/4sh-ui-kit-layout-ui-card.mjs.map +1 -1
  100. package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs +4 -4
  101. package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs.map +1 -1
  102. package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs +4 -4
  103. package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs.map +1 -1
  104. package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs +4 -4
  105. package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs.map +1 -1
  106. package/fesm2022/4sh-ui-kit-motion.mjs +3 -3
  107. package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs +370 -0
  108. package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs.map +1 -0
  109. package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs +4 -4
  110. package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs.map +1 -1
  111. package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs +7 -5
  112. package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs.map +1 -1
  113. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs +7 -5
  114. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
  115. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs +14 -12
  116. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs.map +1 -1
  117. package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs +22 -22
  118. package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs.map +1 -1
  119. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs +25 -21
  120. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs.map +1 -1
  121. package/fesm2022/4sh-ui-kit-ripple.mjs +298 -0
  122. package/fesm2022/4sh-ui-kit-ripple.mjs.map +1 -0
  123. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs +7 -5
  124. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -1
  125. package/fesm2022/4sh-ui-kit-table-ui-table.mjs +34 -34
  126. package/fesm2022/4sh-ui-kit-table-ui-table.mjs.map +1 -1
  127. package/fesm2022/4sh-ui-kit-theming.mjs +6 -6
  128. package/mcp/data/text-search-docs.json +741 -71
  129. package/mcp/data/ui-config.json +25927 -11496
  130. package/mcp/package.json +1 -1
  131. package/package.json +21 -1
  132. package/styles/base/_ripple.scss +53 -0
  133. package/styles/component-vars.scss +1426 -687
  134. package/styles/index.scss +1 -0
  135. package/styles/settings/_ui-config.scss +54 -2
  136. package/styles/utils/_mixins.scss +32 -30
  137. package/styles/utils/_overlay.scss +1 -1
  138. package/styles.css +1 -1
  139. package/types/4sh-ui-kit-actions-ui-button.d.ts +3 -1
  140. package/types/4sh-ui-kit-forms-ui-autocomplete.d.ts +3 -1
  141. package/types/4sh-ui-kit-forms-ui-datepicker.d.ts +59 -2
  142. package/types/4sh-ui-kit-forms-ui-field.d.ts +13 -1
  143. package/types/4sh-ui-kit-forms-ui-file-upload.d.ts +3 -1
  144. package/types/4sh-ui-kit-forms-ui-knob.d.ts +93 -0
  145. package/types/4sh-ui-kit-forms-ui-segment-control.d.ts +3 -1
  146. package/types/4sh-ui-kit-forms-ui-select.d.ts +3 -1
  147. package/types/4sh-ui-kit-forms-ui-toggle-block.d.ts +114 -0
  148. package/types/4sh-ui-kit-forms-ui-toggle-button.d.ts +3 -1
  149. package/types/4sh-ui-kit-forms.d.ts +5 -1
  150. package/types/4sh-ui-kit-informative-ui-tooltip.d.ts +4 -4
  151. package/types/4sh-ui-kit-layout-ui-bottom-sheet.d.ts +256 -0
  152. package/types/4sh-ui-kit-navigation-ui-bottom-tab-bar.d.ts +201 -0
  153. package/types/4sh-ui-kit-navigation-ui-context-menu.d.ts +3 -1
  154. package/types/4sh-ui-kit-navigation-ui-menu.d.ts +3 -1
  155. package/types/4sh-ui-kit-navigation-ui-sidebar.d.ts +3 -1
  156. package/types/4sh-ui-kit-navigation-ui-tabs.d.ts +3 -1
  157. package/types/4sh-ui-kit-ripple.d.ts +156 -0
  158. package/types/4sh-ui-kit-table-ui-paginator.d.ts +3 -1
@@ -1 +1 @@
1
- {"version":3,"file":"4sh-ui-kit-navigation-ui-tabs.mjs","sources":["../../../projects/ui-kit/navigation/ui-tabs/src/lib/ui-tabs.ts","../../../projects/ui-kit/navigation/ui-tabs/src/lib/ui-tab-list.html","../../../projects/ui-kit/navigation/ui-tabs/src/public-api.ts","../../../projects/ui-kit/navigation/ui-tabs/src/4sh-ui-kit-navigation-ui-tabs.ts"],"sourcesContent":["import {\n afterNextRender,\n afterRenderEffect,\n booleanAttribute,\n Component,\n computed,\n contentChild,\n contentChildren,\n DestroyRef,\n effect,\n ElementRef,\n forwardRef,\n inject,\n input,\n model,\n numberAttribute,\n output,\n signal,\n TemplateRef,\n untracked,\n viewChild,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { UiIcon } from '@4sh/ui-kit/base/ui-icon';\n\n/** Identifier of a tab / panel pair (matched against the container `value`). */\nexport type UiTabValue = string | number;\n/** Layout axis of the tab list. */\nexport type UiTabsOrientation = 'horizontal' | 'vertical';\n/** Position of a tab's icon relative to its label. */\nexport type UiTabIconPos = 'left' | 'right';\n\n/** Payload emitted when the active tab changes. */\nexport interface UiTabsChangeEvent {\n /** Value of the tab that became active. */\n value: UiTabValue;\n /** Originating DOM event (click / keyboard / focus). */\n originalEvent: Event;\n}\n\n/** @ignore Measured geometry of the active-tab indicator bar. */\ninterface ActiveBarMetrics {\n /** Offset along the main axis (px) from the tab list origin. */\n offset: number;\n /** Length along the main axis (px): tab width (horizontal) or height (vertical). */\n length: number;\n}\n\n/** Process-wide counter for unique tab/panel ids (aria wiring). */\nlet nextUid = 0;\n\n/**\n * ui-tab , a single tab button inside a {@link UiTabList}.\n *\n * Renders a real native `<button role=\"tab\">` (the `ui-tab` host is\n * `display: contents`, so the button sits directly inside the `role=\"tablist\"`).\n * Keyboard roving and the active indicator are driven by the list; this element\n * only reports its value/state and activates on click or `selectOnFocus`.\n *\n * Declared before {@link UiTabList} / {@link UiTabs} so their content queries\n * can reference it without a temporal-dead-zone error at class-definition time.\n */\n@Component({\n selector: 'ui-tab',\n imports: [UiIcon],\n template: `\n <button\n #tabBtn\n type=\"button\"\n role=\"tab\"\n class=\"ui-tab-button\"\n [id]=\"tabs.tabId(value())\"\n [attr.aria-controls]=\"tabs.panelId(value())\"\n [attr.aria-selected]=\"active()\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [disabled]=\"disabled()\"\n [attr.tabindex]=\"tabindex()\"\n (click)=\"onClick($event)\"\n (focus)=\"onFocus($event)\"\n >\n @if (icon(); as name) {\n <ui-icon class=\"ui-tab-icon\" [name]=\"name\" size=\"default\" />\n }\n <span class=\"ui-tab-label\"><ng-content /></span>\n </button>\n `,\n styleUrl: './ui-tab.scss',\n host: {\n class: 'ui-tab',\n '[class._active]': 'active()',\n '[class._disabled]': 'disabled()',\n '[class._icon-right]': \"iconPos() === 'right'\",\n '[class._vertical]': \"tabs.orientation() === 'vertical'\",\n },\n})\nexport class UiTab {\n /** Identifier of this tab (matched against the container `value`). */\n value = input.required<UiTabValue>();\n /** Disable the tab (not selectable, skipped by keyboard navigation). */\n disabled = input(false, { transform: booleanAttribute });\n /** Optional leading (or trailing) icon name. */\n icon = input<string>();\n /** Icon position relative to the label. */\n iconPos = input<UiTabIconPos>('left');\n /** Accessible name override (falls back to the projected label). */\n ariaLabel = input<string>();\n\n /** @ignore Parent container (owns the active state + group options). */\n protected readonly tabs = inject(UiTabs);\n\n /** @ignore The native tab button (for focus + indicator measurement). */\n readonly buttonEl = viewChild.required<ElementRef<HTMLButtonElement>>('tabBtn');\n\n /** @ignore Whether this tab is the active one. */\n readonly active = computed(() => this.tabs.isActive(this.value()));\n\n /** @ignore Roving tabindex: only the group's tab stop is reachable via Tab. */\n protected readonly tabindex = computed(() =>\n this.tabs.tabStopValue() === this.value() ? this.tabs.tabindex() : -1,\n );\n\n /** Move focus to this tab's button. */\n focus(options?: FocusOptions): void {\n this.buttonEl().nativeElement.focus(options);\n }\n\n /** @ignore */\n protected onClick(event: MouseEvent): void {\n if (this.disabled()) return;\n this.tabs.updateValue(this.value(), event);\n }\n\n /** @ignore Automatic activation on focus (when the group opts in). */\n protected onFocus(event: FocusEvent): void {\n if (this.tabs.selectOnFocus() && !this.disabled()) {\n this.tabs.updateValue(this.value(), event);\n }\n }\n}\n\n/**\n * ui-tab-panel , the content region tied to a {@link UiTab} by shared `value`.\n *\n * The panel stays in the DOM but is `hidden` (and skipped by AT) when inactive,\n * so its state is preserved. With `lazy` (per panel or group-wide) the content\n * is rendered only once the panel is first activated; wrap expensive content in\n * a `<ng-template #content>` so it initialises lazily.\n */\n@Component({\n selector: 'ui-tab-panel',\n imports: [NgTemplateOutlet],\n template: `\n <ng-template #defaultContent><ng-content /></ng-template>\n @if (shouldRender()) {\n <ng-container [ngTemplateOutlet]=\"content() ?? defaultContent\" />\n }\n `,\n styleUrl: './ui-tab-panel.scss',\n host: {\n class: 'ui-tab-panel',\n role: 'tabpanel',\n tabindex: '0',\n '[id]': 'tabs.panelId(value())',\n '[attr.aria-labelledby]': 'tabs.tabId(value())',\n '[hidden]': '!active()',\n '[class._active]': 'active()',\n '[class._no-motion]': '!tabs.motion()',\n },\n})\nexport class UiTabPanel {\n /** Identifier of this panel (matched against the container `value`). */\n value = input.required<UiTabValue>();\n /** Render this panel's content only once it is first activated (overrides the group default). */\n lazy = input<boolean, unknown>(undefined, {\n transform: (v) => (v == null ? undefined : booleanAttribute(v)),\n });\n\n /** Optional lazy content template (`<ng-template #content>`). */\n protected readonly content = contentChild<TemplateRef<unknown>>('content');\n\n /** @ignore Parent container (active state + group `lazy` default). */\n protected readonly tabs = inject(UiTabs);\n\n /** @ignore */\n protected readonly active = computed(() => this.tabs.isActive(this.value()));\n /** @ignore Panel-level `lazy` overrides the group default when explicitly set. */\n private readonly isLazy = computed(() => this.lazy() ?? this.tabs.lazy());\n /** @ignore Sticks once the panel has been activated at least once. */\n private readonly hasRendered = signal(false);\n\n constructor() {\n effect(() => {\n if (this.active()) this.hasRendered.set(true);\n });\n }\n\n /** @ignore Eager panels always render; lazy ones only after first activation. */\n protected readonly shouldRender = computed(\n () => !this.isLazy() || this.hasRendered() || this.active(),\n );\n}\n\n/**\n * ui-tab-list , the horizontal (or vertical) strip of {@link UiTab} buttons.\n *\n * Owns the WAI-ARIA `role=\"tablist\"`, the roving-focus keyboard navigation\n * (Arrow keys along the axis, Home/End), the sliding active indicator measured\n * from the active tab, and , when the container is `scrollable` , the prev/next\n * navigators that scroll the overflowing strip.\n */\n@Component({\n selector: 'ui-tab-list',\n imports: [UiIcon],\n templateUrl: './ui-tab-list.html',\n styleUrl: './ui-tab-list.scss',\n host: {\n class: 'ui-tab-list',\n '[class._vertical]': \"orientation() === 'vertical'\",\n '[class._scrollable]': 'scrollable()',\n '[class._no-motion]': '!tabs.motion()',\n '(keydown)': 'onKeydown($event)',\n },\n})\nexport class UiTabList {\n /** Accessible name for the tab list (recommended). */\n ariaLabel = input<string>();\n /** Accessible name of the \"previous\" scroll navigator. */\n prevAriaLabel = input<string>('Défiler vers les onglets précédents');\n /** Accessible name of the \"next\" scroll navigator. */\n nextAriaLabel = input<string>('Défiler vers les onglets suivants');\n\n /** @ignore Parent container (state + group options). */\n protected readonly tabs = inject(UiTabs);\n /** @ignore */\n private readonly destroyRef = inject(DestroyRef);\n\n /** @ignore Tabs projected into this list, in DOM order. */\n private readonly tabItems = contentChildren(UiTab);\n /** @ignore Scroll viewport around the tab strip. */\n private readonly scrollEl = viewChild.required<ElementRef<HTMLElement>>('scroll');\n /** @ignore The `role=\"tablist\"` inner element (indicator's offset parent). */\n private readonly innerEl = viewChild.required<ElementRef<HTMLElement>>('inner');\n\n /** @ignore Measured indicator geometry (null when there is no active tab). */\n protected readonly bar = signal<ActiveBarMetrics | null>(null);\n /** @ignore Bumped by the ResizeObserver / scroll to re-measure. */\n private readonly resizeTick = signal(0);\n /** @ignore Whether scrolling further back is possible. */\n protected readonly prevEnabled = signal(false);\n /** @ignore Whether scrolling further forward is possible. */\n protected readonly nextEnabled = signal(false);\n\n /** @ignore */\n protected readonly orientation = computed(() => this.tabs.orientation());\n /** @ignore */\n protected readonly scrollable = computed(() => this.tabs.scrollable());\n /** @ignore Navigators render only when scrollable AND explicitly enabled. */\n protected readonly showNavigators = computed(\n () => this.scrollable() && this.tabs.showNavigators(),\n );\n\n constructor() {\n // Re-measure the indicator and the navigator state on any geometry change.\n afterNextRender(() => {\n const ro = new ResizeObserver(() => {\n this.resizeTick.update((v) => v + 1);\n this.updateNavigators();\n });\n ro.observe(this.scrollEl().nativeElement);\n ro.observe(this.innerEl().nativeElement);\n this.updateNavigators();\n this.destroyRef.onDestroy(() => ro.disconnect());\n });\n\n // Track the active tab with the sliding indicator.\n afterRenderEffect(() => {\n const activeValue = this.tabs.value();\n this.orientation();\n this.resizeTick();\n const items = this.tabItems();\n\n const item = items.find((t) => t.value() === activeValue && !t.disabled());\n if (!item) {\n this.bar.set(null);\n return;\n }\n const btn = item.buttonEl().nativeElement;\n const horizontal = this.orientation() === 'horizontal';\n const next: ActiveBarMetrics = horizontal\n ? { offset: btn.offsetLeft, length: btn.offsetWidth }\n : { offset: btn.offsetTop, length: btn.offsetHeight };\n\n const cur = untracked(this.bar);\n if (!cur || cur.offset !== next.offset || cur.length !== next.length) {\n this.bar.set(next);\n }\n });\n\n afterRenderEffect(() => {\n const activeValue = this.tabs.value();\n if (!this.scrollable()) return;\n const item = this.tabItems().find((t) => t.value() === activeValue && !t.disabled());\n if (item) this.scrollIntoView(item.buttonEl().nativeElement);\n });\n }\n\n /** @ignore CSS transform positioning the indicator along the main axis. */\n protected readonly barTransform = computed(() => {\n const b = this.bar();\n if (!b) return null;\n return this.orientation() === 'horizontal'\n ? `translateX(${b.offset}px)`\n : `translateY(${b.offset}px)`;\n });\n\n /** @ignore Roving focus across enabled tabs (WAI-ARIA tabs pattern). */\n protected onKeydown(event: KeyboardEvent): void {\n const horizontal = this.orientation() === 'horizontal';\n const nextKey = horizontal ? 'ArrowRight' : 'ArrowDown';\n const prevKey = horizontal ? 'ArrowLeft' : 'ArrowUp';\n if (![nextKey, prevKey, 'Home', 'End'].includes(event.key)) return;\n\n const enabled = this.tabItems().filter((t) => !t.disabled());\n if (!enabled.length) return;\n\n const active = document.activeElement;\n let pos = enabled.findIndex((t) => t.buttonEl().nativeElement === active);\n if (pos === -1) return; // focus is not on a tab , let the event through.\n\n event.preventDefault();\n switch (event.key) {\n case nextKey:\n pos = (pos + 1) % enabled.length;\n break;\n case prevKey:\n pos = (pos - 1 + enabled.length) % enabled.length;\n break;\n case 'Home':\n pos = 0;\n break;\n case 'End':\n pos = enabled.length - 1;\n break;\n }\n const target = enabled[pos];\n target.focus();\n this.scrollIntoView(target.buttonEl().nativeElement);\n }\n\n /**\n * @ignore Bring the given tab fully inside the scroll viewport, scrolling by\n * the minimum needed along the active axis. Uses the viewport's own metrics\n * (never the page): a tab clipped at either edge slides back into view.\n */\n private scrollIntoView(el: HTMLElement): void {\n if (!this.scrollable()) return;\n const viewport = this.scrollEl().nativeElement;\n const horizontal = this.orientation() === 'horizontal';\n const start = horizontal ? el.offsetLeft : el.offsetTop;\n const size = horizontal ? el.offsetWidth : el.offsetHeight;\n const viewStart = horizontal ? viewport.scrollLeft : viewport.scrollTop;\n const viewSize = horizontal ? viewport.clientWidth : viewport.clientHeight;\n if (viewSize === 0) return; // not laid out yet , a later pass will re-run.\n\n let target: number;\n if (start < viewStart) {\n target = start; // clipped at the start edge , align to it.\n } else if (start + size > viewStart + viewSize) {\n target = start + size - viewSize; // clipped at the end edge , align flush.\n } else {\n return; // already fully visible.\n }\n // Plain scrollTo (no `behavior` option) , the animation comes from the\n // container's CSS `scroll-behavior`, which the motion system tunes and\n // reduced-motion disables.\n viewport.scrollTo(horizontal ? { left: target } : { top: target });\n }\n\n /** @ignore Refresh the prev/next enabled state from the scroll position. */\n private updateNavigators(): void {\n if (!this.scrollable()) return;\n const el = this.scrollEl().nativeElement;\n if (this.orientation() === 'horizontal') {\n const max = el.scrollWidth - el.clientWidth;\n this.prevEnabled.set(el.scrollLeft > 1);\n this.nextEnabled.set(el.scrollLeft < max - 1);\n } else {\n const max = el.scrollHeight - el.clientHeight;\n this.prevEnabled.set(el.scrollTop > 1);\n this.nextEnabled.set(el.scrollTop < max - 1);\n }\n }\n\n /** @ignore */\n protected onScroll(): void {\n this.updateNavigators();\n }\n\n /**\n * @ignore Scroll the strip by roughly one viewport in the given direction.\n * Smoothness comes from the container's CSS `scroll-behavior` (motion-aware),\n * not the JS `behavior` option.\n */\n protected scrollBy(direction: -1 | 1): void {\n const el = this.scrollEl().nativeElement;\n if (this.orientation() === 'horizontal') {\n el.scrollBy({ left: direction * el.clientWidth * 0.8 });\n } else {\n el.scrollBy({ top: direction * el.clientHeight * 0.8 });\n }\n }\n}\n\n/**\n * ui-tab-panels , thin wrapper grouping the {@link UiTabPanel}s. Fills the\n * remaining space beside/under the tab list.\n */\n@Component({\n selector: 'ui-tab-panels',\n template: '<ng-content />',\n styles: `\n :host {\n display: block;\n flex: 1 1 auto;\n min-width: 0;\n }\n `,\n host: { class: 'ui-tab-panels' },\n})\nexport class UiTabPanels {}\n\n/**\n * ui-tabs , headless container orchestrating a set of tabs and their panels.\n *\n * Composition API: a root `ui-tabs` owns the shared state (`value` two-way\n * model, `orientation`, `scrollable`, `lazy`, `selectOnFocus`, `motion`), a\n * `ui-tab-list` renders the strip of `ui-tab` buttons (plus the sliding active\n * indicator and, when scrollable, the prev/next navigators), and a\n * `ui-tab-panels` holds one `ui-tab-panel` per tab. Every colour/metric comes\n * from the `navigation.*` design tokens; the active indicator glides , and each\n * panel fades in , via the shared motion system (reduced-motion aware).\n *\n * @example\n * ```html\n * <ui-tabs [(value)]=\"active\">\n * <ui-tab-list ariaLabel=\"Sections\">\n * <ui-tab [value]=\"0\">Onglet 1</ui-tab>\n * <ui-tab [value]=\"1\">Onglet 2</ui-tab>\n * </ui-tab-list>\n * <ui-tab-panels>\n * <ui-tab-panel [value]=\"0\">Contenu 1…</ui-tab-panel>\n * <ui-tab-panel [value]=\"1\">Contenu 2…</ui-tab-panel>\n * </ui-tab-panels>\n * </ui-tabs>\n * ```\n */\n@Component({\n selector: 'ui-tabs',\n template: '<ng-content />',\n styles: `\n :host {\n display: flex;\n flex-direction: column;\n width: 100%;\n }\n :host(._vertical) {\n flex-direction: row;\n align-items: flex-start;\n }\n `,\n host: {\n class: 'ui-tabs',\n '[class._vertical]': \"orientation() === 'vertical'\",\n },\n})\nexport class UiTabs {\n /** Value of the active tab (two-way). `undefined` = no active tab. */\n value = model<UiTabValue | undefined>(undefined);\n /** Layout axis: `horizontal` (list on top) or `vertical` (list on the side). */\n orientation = input<UiTabsOrientation>('horizontal');\n /** Enable overflow scrolling of the tab list with prev/next navigators. */\n scrollable = input(false, { transform: booleanAttribute });\n /** Group default: render an inactive tab's panel only once it is first activated. */\n lazy = input(false, { transform: booleanAttribute });\n /** Activate a tab as soon as it receives keyboard focus (automatic activation). */\n selectOnFocus = input(false, { transform: booleanAttribute });\n /** Show the prev/next navigators when `scrollable` (they still gate on overflow). */\n showNavigators = input(true, { transform: booleanAttribute });\n /** Animate the active indicator and panel transitions (reduced-motion always wins). */\n motion = input(true, { transform: booleanAttribute });\n /** Tabindex applied to the active tab (the group's single tab stop). */\n tabindex = input(0, { transform: numberAttribute });\n\n /** Fired whenever the active tab changes (user click / keyboard / focus). */\n tabChange = output<UiTabsChangeEvent>();\n\n /** @ignore Unique id root for aria wiring between tabs and panels. */\n readonly id = `ui-tabs-${nextUid++}`;\n\n /** @ignore All tabs projected under this container (across the list boundary). */\n private readonly tabs = contentChildren(\n forwardRef(() => UiTab),\n { descendants: true },\n );\n /** @ignore Whether a `ui-tab-panels` wrapper is projected at all — some consumers use\n * `ui-tabs` as a navigation menu with no panel (a router outlet renders the content\n * instead, see the `TabMenu` story). `aria-controls` must not point at an id that resolves\n * to nothing. A single presence check on the wrapper (rather than a second\n * `contentChildren` query matched per tab value) — two sibling content-children queries on\n * this component broke `<ng-content>` projection for every `UiTab` but the first, a real\n * Angular/Ivy interaction, not something worth chasing further; this is the query-count-1\n * workaround. */\n private readonly hasPanels = contentChild(\n forwardRef(() => UiTabPanels),\n { descendants: true },\n );\n\n /** @ignore id of the tab button for a given value. */\n tabId(value: UiTabValue): string {\n return `${this.id}-tab-${value}`;\n }\n /** @ignore id of the panel for a given value — `null` when no `ui-tab-panels` wrapper is\n * projected at all (see `hasPanels` above), so the tab omits `aria-controls` rather than\n * dangle it. */\n panelId(value: UiTabValue): string | null {\n return this.hasPanels() ? `${this.id}-panel-${value}` : null;\n }\n\n /** @ignore Whether the given value is the active tab. */\n isActive(value: UiTabValue): boolean {\n return this.value() === value;\n }\n\n /**\n * @ignore Value that owns the group's single tab stop (roving tabindex):\n * the active tab, or the first enabled tab when none is active.\n */\n readonly tabStopValue = computed<UiTabValue | undefined>(() => {\n const enabled = this.tabs().filter((t) => !t.disabled());\n if (!enabled.length) return undefined;\n const active = enabled.find((t) => t.value() === this.value());\n return (active ?? enabled[0]).value();\n });\n\n /** @ignore Activate a tab (no-op if already active); emits `tabChange`. */\n updateValue(value: UiTabValue, event: Event): void {\n if (this.value() === value) return;\n this.value.set(value);\n this.tabChange.emit({ value, originalEvent: event });\n }\n}\n","@if (showNavigators()) {\n <button\n type=\"button\"\n class=\"ui-tab-list-nav _prev\"\n [attr.aria-label]=\"prevAriaLabel() || null\"\n tabindex=\"-1\"\n [disabled]=\"!prevEnabled()\"\n (click)=\"scrollBy(-1)\"\n >\n <ui-icon [name]=\"orientation() === 'vertical' ? 'chevron-up' : 'chevron-left'\" size=\"sm\" />\n </button>\n}\n\n<div #scroll class=\"ui-tab-list-scroll\" (scroll)=\"onScroll()\">\n <div\n #inner\n class=\"ui-tab-list-tabs\"\n role=\"tablist\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-orientation]=\"orientation()\"\n >\n <ng-content />\n\n <span\n class=\"ui-tab-list-active-bar\"\n aria-hidden=\"true\"\n [class._hidden]=\"!bar()\"\n [style.transform]=\"barTransform()\"\n [style.width.px]=\"orientation() === 'horizontal' ? bar()?.length : null\"\n [style.height.px]=\"orientation() === 'vertical' ? bar()?.length : null\"\n ></span>\n </div>\n</div>\n\n@if (showNavigators()) {\n <button\n type=\"button\"\n class=\"ui-tab-list-nav _next\"\n [attr.aria-label]=\"nextAriaLabel() || null\"\n tabindex=\"-1\"\n [disabled]=\"!nextEnabled()\"\n (click)=\"scrollBy(1)\"\n >\n <ui-icon [name]=\"orientation() === 'vertical' ? 'chevron-down' : 'chevron-right'\" size=\"sm\" />\n </button>\n}\n","/*\n * Public API Surface of ui-kit/ui-tabs\n */\n\nexport * from './lib/ui-tabs';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAgDA;AACA,IAAI,OAAO,GAAG,CAAC;AAEf;;;;;;;;;;AAUG;MAkCU,KAAK,CAAA;AAjClB,IAAA,WAAA,GAAA;;QAmCE,IAAA,CAAA,KAAK,GAAG,KAAK,CAAC,QAAQ;kFAAc;;QAEpC,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;AAExD,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK;4FAAU;;QAEtB,IAAA,CAAA,OAAO,GAAG,KAAK,CAAe,MAAM;oFAAC;;AAErC,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK;iGAAU;;AAGR,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC;;AAG/B,QAAA,IAAA,CAAA,QAAQ,GAAG,SAAS,CAAC,QAAQ,CAAgC,QAAQ;qFAAC;;AAGtE,QAAA,IAAA,CAAA,MAAM,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;mFAAC;;AAG/C,QAAA,IAA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,EAAE,IAAI,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AElgBzB;;AAEG;;ACFH;;AAEG;;"}
1
+ {"version":3,"file":"4sh-ui-kit-navigation-ui-tabs.mjs","sources":["../../../projects/ui-kit/navigation/ui-tabs/src/lib/ui-tabs.ts","../../../projects/ui-kit/navigation/ui-tabs/src/lib/ui-tab-list.html","../../../projects/ui-kit/navigation/ui-tabs/src/public-api.ts","../../../projects/ui-kit/navigation/ui-tabs/src/4sh-ui-kit-navigation-ui-tabs.ts"],"sourcesContent":["import {\n afterNextRender,\n afterRenderEffect,\n booleanAttribute,\n Component,\n computed,\n contentChild,\n contentChildren,\n DestroyRef,\n effect,\n ElementRef,\n forwardRef,\n inject,\n input,\n model,\n numberAttribute,\n output,\n signal,\n TemplateRef,\n untracked,\n viewChild,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { UiIcon } from '@4sh/ui-kit/base/ui-icon';\n\n/** Identifier of a tab / panel pair (matched against the container `value`). */\nexport type UiTabValue = string | number;\n/** Layout axis of the tab list. */\nexport type UiTabsOrientation = 'horizontal' | 'vertical';\n/** Position of a tab's icon relative to its label. */\nexport type UiTabIconPos = 'left' | 'right';\n\n/** Payload emitted when the active tab changes. */\nexport interface UiTabsChangeEvent {\n /** Value of the tab that became active. */\n value: UiTabValue;\n /** Originating DOM event (click / keyboard / focus). */\n originalEvent: Event;\n}\n\n/** @ignore Measured geometry of the active-tab indicator bar. */\ninterface ActiveBarMetrics {\n /** Offset along the main axis (px) from the tab list origin. */\n offset: number;\n /** Length along the main axis (px): tab width (horizontal) or height (vertical). */\n length: number;\n}\n\n/** Process-wide counter for unique tab/panel ids (aria wiring). */\nlet nextUid = 0;\n\n/**\n * ui-tab , a single tab button inside a {@link UiTabList}.\n *\n * Renders a real native `<button role=\"tab\">` (the `ui-tab` host is\n * `display: contents`, so the button sits directly inside the `role=\"tablist\"`).\n * Keyboard roving and the active indicator are driven by the list; this element\n * only reports its value/state and activates on click or `selectOnFocus`.\n *\n * Declared before {@link UiTabList} / {@link UiTabs} so their content queries\n * can reference it without a temporal-dead-zone error at class-definition time.\n */\n@Component({\n selector: 'ui-tab',\n imports: [UiIcon],\n template: `\n <button\n #tabBtn\n type=\"button\"\n role=\"tab\"\n class=\"ui-tab-button\"\n [attr.data-ripple]=\"tabs.ripple() ? 'on' : 'off'\"\n [id]=\"tabs.tabId(value())\"\n [attr.aria-controls]=\"tabs.panelId(value())\"\n [attr.aria-selected]=\"active()\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [disabled]=\"disabled()\"\n [attr.tabindex]=\"tabindex()\"\n (click)=\"onClick($event)\"\n (focus)=\"onFocus($event)\"\n >\n @if (icon(); as name) {\n <ui-icon class=\"ui-tab-icon\" [name]=\"name\" size=\"default\" />\n }\n <span class=\"ui-tab-label\"><ng-content /></span>\n </button>\n `,\n styleUrl: './ui-tab.scss',\n host: {\n class: 'ui-tab',\n '[class._active]': 'active()',\n '[class._disabled]': 'disabled()',\n '[class._icon-right]': \"iconPos() === 'right'\",\n '[class._vertical]': \"tabs.orientation() === 'vertical'\",\n },\n})\nexport class UiTab {\n /** Identifier of this tab (matched against the container `value`). */\n value = input.required<UiTabValue>();\n /** Disable the tab (not selectable, skipped by keyboard navigation). */\n disabled = input(false, { transform: booleanAttribute });\n /** Optional leading (or trailing) icon name. */\n icon = input<string>();\n /** Icon position relative to the label. */\n iconPos = input<UiTabIconPos>('left');\n /** Accessible name override (falls back to the projected label). */\n ariaLabel = input<string>();\n\n /** @ignore Parent container (owns the active state + group options). */\n protected readonly tabs = inject(UiTabs);\n\n /** @ignore The native tab button (for focus + indicator measurement). */\n readonly buttonEl = viewChild.required<ElementRef<HTMLButtonElement>>('tabBtn');\n\n /** @ignore Whether this tab is the active one. */\n readonly active = computed(() => this.tabs.isActive(this.value()));\n\n /** @ignore Roving tabindex: only the group's tab stop is reachable via Tab. */\n protected readonly tabindex = computed(() =>\n this.tabs.tabStopValue() === this.value() ? this.tabs.tabindex() : -1,\n );\n\n /** Move focus to this tab's button. */\n focus(options?: FocusOptions): void {\n this.buttonEl().nativeElement.focus(options);\n }\n\n /** @ignore */\n protected onClick(event: MouseEvent): void {\n if (this.disabled()) return;\n this.tabs.updateValue(this.value(), event);\n }\n\n /** @ignore Automatic activation on focus (when the group opts in). */\n protected onFocus(event: FocusEvent): void {\n if (this.tabs.selectOnFocus() && !this.disabled()) {\n this.tabs.updateValue(this.value(), event);\n }\n }\n}\n\n/**\n * ui-tab-panel , the content region tied to a {@link UiTab} by shared `value`.\n *\n * The panel stays in the DOM but is `hidden` (and skipped by AT) when inactive,\n * so its state is preserved. With `lazy` (per panel or group-wide) the content\n * is rendered only once the panel is first activated; wrap expensive content in\n * a `<ng-template #content>` so it initialises lazily.\n */\n@Component({\n selector: 'ui-tab-panel',\n imports: [NgTemplateOutlet],\n template: `\n <ng-template #defaultContent><ng-content /></ng-template>\n @if (shouldRender()) {\n <ng-container [ngTemplateOutlet]=\"content() ?? defaultContent\" />\n }\n `,\n styleUrl: './ui-tab-panel.scss',\n host: {\n class: 'ui-tab-panel',\n role: 'tabpanel',\n tabindex: '0',\n '[id]': 'tabs.panelId(value())',\n '[attr.aria-labelledby]': 'tabs.tabId(value())',\n '[hidden]': '!active()',\n '[class._active]': 'active()',\n '[class._no-motion]': '!tabs.motion()',\n },\n})\nexport class UiTabPanel {\n /** Identifier of this panel (matched against the container `value`). */\n value = input.required<UiTabValue>();\n /** Render this panel's content only once it is first activated (overrides the group default). */\n lazy = input<boolean, unknown>(undefined, {\n transform: (v) => (v == null ? undefined : booleanAttribute(v)),\n });\n\n /** Optional lazy content template (`<ng-template #content>`). */\n protected readonly content = contentChild<TemplateRef<unknown>>('content');\n\n /** @ignore Parent container (active state + group `lazy` default). */\n protected readonly tabs = inject(UiTabs);\n\n /** @ignore */\n protected readonly active = computed(() => this.tabs.isActive(this.value()));\n /** @ignore Panel-level `lazy` overrides the group default when explicitly set. */\n private readonly isLazy = computed(() => this.lazy() ?? this.tabs.lazy());\n /** @ignore Sticks once the panel has been activated at least once. */\n private readonly hasRendered = signal(false);\n\n constructor() {\n effect(() => {\n if (this.active()) this.hasRendered.set(true);\n });\n }\n\n /** @ignore Eager panels always render; lazy ones only after first activation. */\n protected readonly shouldRender = computed(\n () => !this.isLazy() || this.hasRendered() || this.active(),\n );\n}\n\n/**\n * ui-tab-list , the horizontal (or vertical) strip of {@link UiTab} buttons.\n *\n * Owns the WAI-ARIA `role=\"tablist\"`, the roving-focus keyboard navigation\n * (Arrow keys along the axis, Home/End), the sliding active indicator measured\n * from the active tab, and , when the container is `scrollable` , the prev/next\n * navigators that scroll the overflowing strip.\n */\n@Component({\n selector: 'ui-tab-list',\n imports: [UiIcon],\n templateUrl: './ui-tab-list.html',\n styleUrl: './ui-tab-list.scss',\n host: {\n class: 'ui-tab-list',\n '[class._vertical]': \"orientation() === 'vertical'\",\n '[class._scrollable]': 'scrollable()',\n '[class._no-motion]': '!tabs.motion()',\n '(keydown)': 'onKeydown($event)',\n },\n})\nexport class UiTabList {\n /** Accessible name for the tab list (recommended). */\n ariaLabel = input<string>();\n /** Accessible name of the \"previous\" scroll navigator. */\n prevAriaLabel = input<string>('Défiler vers les onglets précédents');\n /** Accessible name of the \"next\" scroll navigator. */\n nextAriaLabel = input<string>('Défiler vers les onglets suivants');\n\n /** @ignore Parent container (state + group options). */\n protected readonly tabs = inject(UiTabs);\n /** @ignore */\n private readonly destroyRef = inject(DestroyRef);\n\n /** @ignore Tabs projected into this list, in DOM order. */\n private readonly tabItems = contentChildren(UiTab);\n /** @ignore Scroll viewport around the tab strip. */\n private readonly scrollEl = viewChild.required<ElementRef<HTMLElement>>('scroll');\n /** @ignore The `role=\"tablist\"` inner element (indicator's offset parent). */\n private readonly innerEl = viewChild.required<ElementRef<HTMLElement>>('inner');\n\n /** @ignore Measured indicator geometry (null when there is no active tab). */\n protected readonly bar = signal<ActiveBarMetrics | null>(null);\n /** @ignore Bumped by the ResizeObserver / scroll to re-measure. */\n private readonly resizeTick = signal(0);\n /** @ignore Whether scrolling further back is possible. */\n protected readonly prevEnabled = signal(false);\n /** @ignore Whether scrolling further forward is possible. */\n protected readonly nextEnabled = signal(false);\n\n /** @ignore */\n protected readonly orientation = computed(() => this.tabs.orientation());\n /** @ignore */\n protected readonly scrollable = computed(() => this.tabs.scrollable());\n /** @ignore Navigators render only when scrollable AND explicitly enabled. */\n protected readonly showNavigators = computed(\n () => this.scrollable() && this.tabs.showNavigators(),\n );\n\n constructor() {\n // Re-measure the indicator and the navigator state on any geometry change.\n afterNextRender(() => {\n const ro = new ResizeObserver(() => {\n this.resizeTick.update((v) => v + 1);\n this.updateNavigators();\n });\n ro.observe(this.scrollEl().nativeElement);\n ro.observe(this.innerEl().nativeElement);\n this.updateNavigators();\n this.destroyRef.onDestroy(() => ro.disconnect());\n });\n\n // Track the active tab with the sliding indicator.\n afterRenderEffect(() => {\n const activeValue = this.tabs.value();\n this.orientation();\n this.resizeTick();\n const items = this.tabItems();\n\n const item = items.find((t) => t.value() === activeValue && !t.disabled());\n if (!item) {\n this.bar.set(null);\n return;\n }\n const btn = item.buttonEl().nativeElement;\n const horizontal = this.orientation() === 'horizontal';\n const next: ActiveBarMetrics = horizontal\n ? { offset: btn.offsetLeft, length: btn.offsetWidth }\n : { offset: btn.offsetTop, length: btn.offsetHeight };\n\n const cur = untracked(this.bar);\n if (!cur || cur.offset !== next.offset || cur.length !== next.length) {\n this.bar.set(next);\n }\n });\n\n afterRenderEffect(() => {\n const activeValue = this.tabs.value();\n if (!this.scrollable()) return;\n const item = this.tabItems().find((t) => t.value() === activeValue && !t.disabled());\n if (item) this.scrollIntoView(item.buttonEl().nativeElement);\n });\n }\n\n /** @ignore CSS transform positioning the indicator along the main axis. */\n protected readonly barTransform = computed(() => {\n const b = this.bar();\n if (!b) return null;\n return this.orientation() === 'horizontal'\n ? `translateX(${b.offset}px)`\n : `translateY(${b.offset}px)`;\n });\n\n /** @ignore Roving focus across enabled tabs (WAI-ARIA tabs pattern). */\n protected onKeydown(event: KeyboardEvent): void {\n const horizontal = this.orientation() === 'horizontal';\n const nextKey = horizontal ? 'ArrowRight' : 'ArrowDown';\n const prevKey = horizontal ? 'ArrowLeft' : 'ArrowUp';\n if (![nextKey, prevKey, 'Home', 'End'].includes(event.key)) return;\n\n const enabled = this.tabItems().filter((t) => !t.disabled());\n if (!enabled.length) return;\n\n const active = document.activeElement;\n let pos = enabled.findIndex((t) => t.buttonEl().nativeElement === active);\n if (pos === -1) return; // focus is not on a tab , let the event through.\n\n event.preventDefault();\n switch (event.key) {\n case nextKey:\n pos = (pos + 1) % enabled.length;\n break;\n case prevKey:\n pos = (pos - 1 + enabled.length) % enabled.length;\n break;\n case 'Home':\n pos = 0;\n break;\n case 'End':\n pos = enabled.length - 1;\n break;\n }\n const target = enabled[pos];\n target.focus();\n this.scrollIntoView(target.buttonEl().nativeElement);\n }\n\n /**\n * @ignore Bring the given tab fully inside the scroll viewport, scrolling by\n * the minimum needed along the active axis. Uses the viewport's own metrics\n * (never the page): a tab clipped at either edge slides back into view.\n */\n private scrollIntoView(el: HTMLElement): void {\n if (!this.scrollable()) return;\n const viewport = this.scrollEl().nativeElement;\n const horizontal = this.orientation() === 'horizontal';\n const start = horizontal ? el.offsetLeft : el.offsetTop;\n const size = horizontal ? el.offsetWidth : el.offsetHeight;\n const viewStart = horizontal ? viewport.scrollLeft : viewport.scrollTop;\n const viewSize = horizontal ? viewport.clientWidth : viewport.clientHeight;\n if (viewSize === 0) return; // not laid out yet , a later pass will re-run.\n\n let target: number;\n if (start < viewStart) {\n target = start; // clipped at the start edge , align to it.\n } else if (start + size > viewStart + viewSize) {\n target = start + size - viewSize; // clipped at the end edge , align flush.\n } else {\n return; // already fully visible.\n }\n // Plain scrollTo (no `behavior` option) , the animation comes from the\n // container's CSS `scroll-behavior`, which the motion system tunes and\n // reduced-motion disables.\n viewport.scrollTo(horizontal ? { left: target } : { top: target });\n }\n\n /** @ignore Refresh the prev/next enabled state from the scroll position. */\n private updateNavigators(): void {\n if (!this.scrollable()) return;\n const el = this.scrollEl().nativeElement;\n if (this.orientation() === 'horizontal') {\n const max = el.scrollWidth - el.clientWidth;\n this.prevEnabled.set(el.scrollLeft > 1);\n this.nextEnabled.set(el.scrollLeft < max - 1);\n } else {\n const max = el.scrollHeight - el.clientHeight;\n this.prevEnabled.set(el.scrollTop > 1);\n this.nextEnabled.set(el.scrollTop < max - 1);\n }\n }\n\n /** @ignore */\n protected onScroll(): void {\n this.updateNavigators();\n }\n\n /**\n * @ignore Scroll the strip by roughly one viewport in the given direction.\n * Smoothness comes from the container's CSS `scroll-behavior` (motion-aware),\n * not the JS `behavior` option.\n */\n protected scrollBy(direction: -1 | 1): void {\n const el = this.scrollEl().nativeElement;\n if (this.orientation() === 'horizontal') {\n el.scrollBy({ left: direction * el.clientWidth * 0.8 });\n } else {\n el.scrollBy({ top: direction * el.clientHeight * 0.8 });\n }\n }\n}\n\n/**\n * ui-tab-panels , thin wrapper grouping the {@link UiTabPanel}s. Fills the\n * remaining space beside/under the tab list.\n */\n@Component({\n selector: 'ui-tab-panels',\n template: '<ng-content />',\n styles: `\n :host {\n display: block;\n flex: 1 1 auto;\n min-width: 0;\n }\n `,\n host: { class: 'ui-tab-panels' },\n})\nexport class UiTabPanels {}\n\n/**\n * ui-tabs , headless container orchestrating a set of tabs and their panels.\n *\n * Composition API: a root `ui-tabs` owns the shared state (`value` two-way\n * model, `orientation`, `scrollable`, `lazy`, `selectOnFocus`, `motion`), a\n * `ui-tab-list` renders the strip of `ui-tab` buttons (plus the sliding active\n * indicator and, when scrollable, the prev/next navigators), and a\n * `ui-tab-panels` holds one `ui-tab-panel` per tab. Every colour/metric comes\n * from the `navigation.*` design tokens; the active indicator glides , and each\n * panel fades in , via the shared motion system (reduced-motion aware).\n *\n * @example\n * ```html\n * <ui-tabs [(value)]=\"active\">\n * <ui-tab-list ariaLabel=\"Sections\">\n * <ui-tab [value]=\"0\">Onglet 1</ui-tab>\n * <ui-tab [value]=\"1\">Onglet 2</ui-tab>\n * </ui-tab-list>\n * <ui-tab-panels>\n * <ui-tab-panel [value]=\"0\">Contenu 1…</ui-tab-panel>\n * <ui-tab-panel [value]=\"1\">Contenu 2…</ui-tab-panel>\n * </ui-tab-panels>\n * </ui-tabs>\n * ```\n */\n@Component({\n selector: 'ui-tabs',\n template: '<ng-content />',\n styles: `\n :host {\n display: flex;\n flex-direction: column;\n width: 100%;\n }\n :host(._vertical) {\n flex-direction: row;\n align-items: flex-start;\n }\n `,\n host: {\n class: 'ui-tabs',\n '[class._vertical]': \"orientation() === 'vertical'\",\n },\n})\nexport class UiTabs {\n /** Value of the active tab (two-way). `undefined` = no active tab. */\n value = model<UiTabValue | undefined>(undefined);\n /** Layout axis: `horizontal` (list on top) or `vertical` (list on the side). */\n orientation = input<UiTabsOrientation>('horizontal');\n /** Enable overflow scrolling of the tab list with prev/next navigators. */\n scrollable = input(false, { transform: booleanAttribute });\n /** Group default: render an inactive tab's panel only once it is first activated. */\n lazy = input(false, { transform: booleanAttribute });\n /** Activate a tab as soon as it receives keyboard focus (automatic activation). */\n selectOnFocus = input(false, { transform: booleanAttribute });\n /** Show the prev/next navigators when `scrollable` (they still gate on overflow). */\n showNavigators = input(true, { transform: booleanAttribute });\n /** Animate the active indicator and panel transitions (reduced-motion always wins). */\n motion = input(true, { transform: booleanAttribute });\n /** Ripple Effect */\n ripple = input(true, { transform: booleanAttribute });\n /** Tabindex applied to the active tab (the group's single tab stop). */\n tabindex = input(0, { transform: numberAttribute });\n\n /** Fired whenever the active tab changes (user click / keyboard / focus). */\n tabChange = output<UiTabsChangeEvent>();\n\n /** @ignore Unique id root for aria wiring between tabs and panels. */\n readonly id = `ui-tabs-${nextUid++}`;\n\n /** @ignore All tabs projected under this container (across the list boundary). */\n private readonly tabs = contentChildren(\n forwardRef(() => UiTab),\n { descendants: true },\n );\n /** @ignore Whether a `ui-tab-panels` wrapper is projected at all — some consumers use\n * `ui-tabs` as a navigation menu with no panel (a router outlet renders the content\n * instead, see the `TabMenu` story). `aria-controls` must not point at an id that resolves\n * to nothing. A single presence check on the wrapper (rather than a second\n * `contentChildren` query matched per tab value) — two sibling content-children queries on\n * this component broke `<ng-content>` projection for every `UiTab` but the first, a real\n * Angular/Ivy interaction, not something worth chasing further; this is the query-count-1\n * workaround. */\n private readonly hasPanels = contentChild(\n forwardRef(() => UiTabPanels),\n { descendants: true },\n );\n\n /** @ignore id of the tab button for a given value. */\n tabId(value: UiTabValue): string {\n return `${this.id}-tab-${value}`;\n }\n /** @ignore id of the panel for a given value — `null` when no `ui-tab-panels` wrapper is\n * projected at all (see `hasPanels` above), so the tab omits `aria-controls` rather than\n * dangle it. */\n panelId(value: UiTabValue): string | null {\n return this.hasPanels() ? `${this.id}-panel-${value}` : null;\n }\n\n /** @ignore Whether the given value is the active tab. */\n isActive(value: UiTabValue): boolean {\n return this.value() === value;\n }\n\n /**\n * @ignore Value that owns the group's single tab stop (roving tabindex):\n * the active tab, or the first enabled tab when none is active.\n */\n readonly tabStopValue = computed<UiTabValue | undefined>(() => {\n const enabled = this.tabs().filter((t) => !t.disabled());\n if (!enabled.length) return undefined;\n const active = enabled.find((t) => t.value() === this.value());\n return (active ?? enabled[0]).value();\n });\n\n /** @ignore Activate a tab (no-op if already active); emits `tabChange`. */\n updateValue(value: UiTabValue, event: Event): void {\n if (this.value() === value) return;\n this.value.set(value);\n this.tabChange.emit({ value, originalEvent: event });\n }\n}\n","@if (showNavigators()) {\n <button\n type=\"button\"\n class=\"ui-tab-list-nav _prev\"\n [attr.aria-label]=\"prevAriaLabel() || null\"\n tabindex=\"-1\"\n [disabled]=\"!prevEnabled()\"\n (click)=\"scrollBy(-1)\"\n >\n <ui-icon [name]=\"orientation() === 'vertical' ? 'chevron-up' : 'chevron-left'\" size=\"sm\" />\n </button>\n}\n\n<div #scroll class=\"ui-tab-list-scroll\" (scroll)=\"onScroll()\">\n <div\n #inner\n class=\"ui-tab-list-tabs\"\n role=\"tablist\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-orientation]=\"orientation()\"\n >\n <ng-content />\n\n <span\n class=\"ui-tab-list-active-bar\"\n aria-hidden=\"true\"\n [class._hidden]=\"!bar()\"\n [style.transform]=\"barTransform()\"\n [style.width.px]=\"orientation() === 'horizontal' ? bar()?.length : null\"\n [style.height.px]=\"orientation() === 'vertical' ? bar()?.length : null\"\n ></span>\n </div>\n</div>\n\n@if (showNavigators()) {\n <button\n type=\"button\"\n class=\"ui-tab-list-nav _next\"\n [attr.aria-label]=\"nextAriaLabel() || null\"\n tabindex=\"-1\"\n [disabled]=\"!nextEnabled()\"\n (click)=\"scrollBy(1)\"\n >\n <ui-icon [name]=\"orientation() === 'vertical' ? 'chevron-down' : 'chevron-right'\" size=\"sm\" />\n </button>\n}\n","/*\n * Public API Surface of ui-kit/ui-tabs\n */\n\nexport * from './lib/ui-tabs';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAgDA;AACA,IAAI,OAAO,GAAG,CAAC;AAEf;;;;;;;;;;AAUG;MAmCU,KAAK,CAAA;AAlClB,IAAA,WAAA,GAAA;;QAoCE,IAAA,CAAA,KAAK,GAAG,KAAK,CAAC,QAAQ;kFAAc;;QAEpC,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;AAExD,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK;4FAAU;;QAEtB,IAAA,CAAA,OAAO,GAAG,KAAK,CAAe,MAAM;oFAAC;;AAErC,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK;iGAAU;;AAGR,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC;;AAG/B,QAAA,IAAA,CAAA,QAAQ,GAAG,SAAS,CAAC,QAAQ,CAAgC,QAAQ;qFAAC;;AAGtE,QAAA,IAAA,CAAA,MAAM,GAAG,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kBAnBlB,SAAS;+BACE,SAAS,EAAA,QAAA,EACT,gBAAgB,EAAA,IAAA,EAYpB;AACJ,wBAAA,KAAK,EAAE,SAAS;AAChB,wBAAA,mBAAmB,EAAE,8BAA8B;AACpD,qBAAA,EAAA,MAAA,EAAA,CAAA,oHAAA,CAAA,EAAA;qhCA8BC,UAAU,CAAC,MAAM,KAAK,CAAC,EAAA,EAAA,GACvB,EAAE,WAAW,EAAE,IAAI,EAAE,oEAWrB,UAAU,CAAC,MAAM,WAAW,CAAC,EAAA,EAAA,GAC7B,EAAE,WAAW,EAAE,IAAI,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AErgBzB;;AAEG;;ACFH;;AAEG;;"}
@@ -0,0 +1,298 @@
1
+ import { DOCUMENT, isPlatformBrowser } from '@angular/common';
2
+ import * as i0 from '@angular/core';
3
+ import { InjectionToken, inject, NgZone, PLATFORM_ID, DestroyRef, Injectable, makeEnvironmentProviders, provideEnvironmentInitializer, input, booleanAttribute, ElementRef, Directive } from '@angular/core';
4
+
5
+ /**
6
+ * What a delegated root (global scope or `[uiRippleScope]`) makes rippling by
7
+ * default: only what declares itself, i.e. the kit's curated controls (which
8
+ * carry `data-ripple="on"`) and whatever the application marks the same way.
9
+ * A design system paints no wave on markup it does not own.
10
+ */
11
+ const UI_RIPPLE_DEFAULT_SELECTOR = '[data-ripple="on"]';
12
+ /**
13
+ * Everything clickable, curated set included. Pass it to
14
+ * `provideUiRipple({ selector: UI_RIPPLE_INTERACTIVE_SELECTOR })` to ripple the
15
+ * application's own controls too, without listing them one by one.
16
+ */
17
+ const UI_RIPPLE_INTERACTIVE_SELECTOR = 'button, [role="button"], a[href], [data-ripple="on"]';
18
+ const UI_RIPPLE_OPTIONS = new InjectionToken('UI_RIPPLE_OPTIONS');
19
+ const CLAIMED = Symbol.for('@4sh/ui-kit/ripple:claimed');
20
+ const LAYER_CLASS = 'ui-ripple-layer';
21
+ const INK_CLASS = 'ui-ripple-ink';
22
+ /** Waves alive at once on one host, so a fast clicker cannot pile up nodes. */
23
+ const MAX_INK = 4;
24
+ /** One press, one wave: the innermost binding claims it, every other root stands down. */
25
+ function isClaimed(event) {
26
+ return event[CLAIMED] === true;
27
+ }
28
+ function claim(event) {
29
+ event[CLAIMED] = true;
30
+ }
31
+ /**
32
+ * Engine behind `[uiRipple]`, `[uiRippleScope]` and `provideUiRipple()`.
33
+ *
34
+ * One `pointerdown` listener per binding (passive, registered outside Angular:
35
+ * a press never triggers change detection), one clipping layer per host created
36
+ * on first use, one `<span>` per wave removed on `animationend`. Nothing is
37
+ * measured until a press actually happens.
38
+ *
39
+ * Appearance is not its business: the layer and the ink read the inherited
40
+ * `--ui-ripple-*` custom properties (`styles/base/_ripple.scss`).
41
+ */
42
+ class UiRippleEngine {
43
+ constructor() {
44
+ this.document = inject(DOCUMENT);
45
+ this.zone = inject(NgZone);
46
+ this.isBrowser = isPlatformBrowser(inject(PLATFORM_ID));
47
+ this.options = inject(UI_RIPPLE_OPTIONS, { optional: true }) ?? {};
48
+ this.layers = new WeakMap();
49
+ /** Settings a binding starts from. */
50
+ this.defaults = {
51
+ enabled: true,
52
+ centered: false,
53
+ selector: this.options.selector ?? UI_RIPPLE_DEFAULT_SELECTOR,
54
+ };
55
+ inject(DestroyRef).onDestroy(() => this.uninstallGlobal?.());
56
+ }
57
+ /** Ripples the whole document. Called by `provideUiRipple()`. */
58
+ installGlobal() {
59
+ if (this.options.global === false || this.uninstallGlobal)
60
+ return;
61
+ this.uninstallGlobal = this.delegate(this.document.body, () => this.defaults);
62
+ }
63
+ /** The host itself ripples. Returns the teardown. */
64
+ bind(host, settings) {
65
+ const stop = this.listen(host, (event) => {
66
+ // Claimed even when off: an explicit directive always wins over an outer root.
67
+ claim(event);
68
+ const { enabled, centered } = settings();
69
+ if (enabled)
70
+ this.launch(host, event, centered);
71
+ });
72
+ return () => {
73
+ stop();
74
+ this.layers.get(host)?.remove();
75
+ this.layers.delete(host);
76
+ };
77
+ }
78
+ /** Descendants matching the selector ripple. Returns the teardown. */
79
+ delegate(root, settings) {
80
+ return this.listen(root, (event) => {
81
+ const { enabled, centered, selector } = settings();
82
+ if (!enabled)
83
+ return;
84
+ const target = event.target?.closest(selector);
85
+ // `closest` can climb past the root: that match belongs to an outer binding.
86
+ if (!(target instanceof HTMLElement) || !root.contains(target))
87
+ return;
88
+ claim(event);
89
+ this.launch(target, event, centered);
90
+ });
91
+ }
92
+ /**
93
+ * Spawns one wave on `host`, from the pointer position or from its centre.
94
+ * Public so an application can ripple from its own trigger (a keyboard
95
+ * shortcut, a remote event) without a press.
96
+ */
97
+ launch(host, event, centered = false) {
98
+ if (!this.isBrowser || this.stilled() || this.inert(host))
99
+ return;
100
+ const rect = host.getBoundingClientRect();
101
+ if (!rect.width || !rect.height)
102
+ return;
103
+ const x = event && !centered ? event.clientX - rect.left : rect.width / 2;
104
+ const y = event && !centered ? event.clientY - rect.top : rect.height / 2;
105
+ // Farthest corner, so the wave always covers the whole element.
106
+ const radius = Math.hypot(Math.max(x, rect.width - x), Math.max(y, rect.height - y));
107
+ const layer = this.layerFor(host);
108
+ while (layer.childElementCount >= MAX_INK && layer.firstElementChild) {
109
+ layer.firstElementChild.remove();
110
+ }
111
+ const ink = this.document.createElement('span');
112
+ ink.className = INK_CLASS;
113
+ ink.style.cssText = `left:${x - radius}px;top:${y - radius}px;width:${radius * 2}px;height:${radius * 2}px`;
114
+ ink.addEventListener('animationend', () => ink.remove(), { once: true });
115
+ layer.appendChild(ink);
116
+ }
117
+ listen(node, handle) {
118
+ if (!this.isBrowser)
119
+ return () => undefined;
120
+ const onPointerDown = (event) => {
121
+ if (event.button > 0 || !event.isPrimary || isClaimed(event))
122
+ return;
123
+ handle(event);
124
+ };
125
+ this.zone.runOutsideAngular(() => node.addEventListener('pointerdown', onPointerDown, { passive: true }));
126
+ return () => node.removeEventListener('pointerdown', onPointerDown);
127
+ }
128
+ /** Clipping layer of a host, created on first press. */
129
+ layerFor(host) {
130
+ const cached = this.layers.get(host);
131
+ if (cached?.parentElement === host)
132
+ return cached;
133
+ // Une autre instance du moteur a pu équiper cet hôte avant nous : sa couche
134
+ // vaut la nôtre, et en créer une seconde les empilerait sur l'élément.
135
+ const existing = host.querySelector(`:scope > .${LAYER_CLASS}`);
136
+ if (existing) {
137
+ this.layers.set(host, existing);
138
+ return existing;
139
+ }
140
+ // The layer anchors on the host, which must therefore establish the
141
+ // containing block. A host already positioned is left untouched.
142
+ if (this.document.defaultView?.getComputedStyle(host).position === 'static') {
143
+ host.style.position = 'relative';
144
+ }
145
+ const layer = this.document.createElement('span');
146
+ layer.className = LAYER_CLASS;
147
+ layer.setAttribute('aria-hidden', 'true');
148
+ host.appendChild(layer);
149
+ this.layers.set(host, layer);
150
+ return layer;
151
+ }
152
+ /** Disabled host, or a subtree opted out with `data-ripple="off"`. */
153
+ inert(host) {
154
+ return (host.disabled === true ||
155
+ host.getAttribute('aria-disabled') === 'true' ||
156
+ host.closest('[data-ripple="off"]') !== null);
157
+ }
158
+ /** Reduced-motion preference, or the kit-wide `data-motion="off"` switch. */
159
+ stilled() {
160
+ // Optional call: a non-browser DOM (jsdom) has no `matchMedia`.
161
+ this.reducedMotion ??= this.document.defaultView?.matchMedia?.('(prefers-reduced-motion: reduce)');
162
+ return (this.reducedMotion?.matches === true ||
163
+ this.document.documentElement.dataset['motion'] === 'off');
164
+ }
165
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiRippleEngine, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
166
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiRippleEngine, providedIn: 'root' }); }
167
+ }
168
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiRippleEngine, decorators: [{
169
+ type: Injectable,
170
+ args: [{ providedIn: 'root' }]
171
+ }], ctorParameters: () => [] });
172
+
173
+ /**
174
+ * Turns the ripple on for the WHOLE application: every `<button>`, every
175
+ * `[role="button"]` and everything marked `data-ripple="on"` answers a press
176
+ * with a wave, kit components included (the effect lands on their inner native
177
+ * control, not on the custom element).
178
+ *
179
+ * ```ts
180
+ * // app.config.ts
181
+ * providers: [provideUiRipple()];
182
+ *
183
+ * // widen what ripples
184
+ * providers: [provideUiRipple({ selector: 'button, [role="button"], a[href]' })];
185
+ *
186
+ * // set the kit-wide selector without turning the effect on everywhere
187
+ * providers: [provideUiRipple({ global: false, selector: '.card, button' })];
188
+ * ```
189
+ *
190
+ * Any element or subtree opts out with `data-ripple="off"` (or `[uiRipple]="false"`
191
+ * / `[uiRippleScope]="false"`). No provider is needed to use the directives.
192
+ */
193
+ function provideUiRipple(options = {}) {
194
+ return makeEnvironmentProviders([
195
+ { provide: UI_RIPPLE_OPTIONS, useValue: options },
196
+ provideEnvironmentInitializer(() => inject(UiRippleEngine).installGlobal()),
197
+ ]);
198
+ }
199
+ /**
200
+ * uiRipple, targeted: THIS element answers a press with a wave starting at the
201
+ * pointer.
202
+ *
203
+ * ```html
204
+ * <button uiRipple>Valider</button>
205
+ * <div class="tile" uiRipple rippleCentered>…</div>
206
+ * <button uiRipple [uiRipple]="false">jamais d'onde, ici ni au-dessous</button>
207
+ * ```
208
+ *
209
+ * The wave is clipped by the element's own box and follows its `border-radius`.
210
+ * Retune it with the inherited `--ui-ripple-*` custom properties, on the element
211
+ * or on any ancestor. Put the directive on a native control rather than on a kit
212
+ * component: `<ui-button uiRipple>` would ripple the custom element's square box,
213
+ * where `<ui-button uiRippleScope>` reaches its inner `<button>`.
214
+ */
215
+ class UiRipple {
216
+ constructor() {
217
+ /** Wave on this element. `false` opts it and its subtree out, global effect included. */
218
+ this.enabled = input(true, { ...(ngDevMode ? { debugName: "enabled" } : /* istanbul ignore next */ {}), alias: 'uiRipple', transform: booleanAttribute });
219
+ /** Start at the centre rather than at the pointer (icon-only controls). */
220
+ this.rippleCentered = input(false, { ...(ngDevMode ? { debugName: "rippleCentered" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
221
+ const host = inject(ElementRef).nativeElement;
222
+ const engine = inject(UiRippleEngine);
223
+ inject(DestroyRef).onDestroy(engine.bind(host, () => ({
224
+ ...engine.defaults,
225
+ enabled: this.enabled(),
226
+ centered: this.rippleCentered(),
227
+ })));
228
+ }
229
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiRipple, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
230
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.5", type: UiRipple, isStandalone: true, selector: "[uiRipple]", inputs: { enabled: { classPropertyName: "enabled", publicName: "uiRipple", isSignal: true, isRequired: false, transformFunction: null }, rippleCentered: { classPropertyName: "rippleCentered", publicName: "rippleCentered", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-ripple": "enabled() ? null : \"off\"" } }, ngImport: i0 }); }
231
+ }
232
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiRipple, decorators: [{
233
+ type: Directive,
234
+ args: [{
235
+ selector: '[uiRipple]',
236
+ host: { '[attr.data-ripple]': 'enabled() ? null : "off"' },
237
+ }]
238
+ }], ctorParameters: () => [], propDecorators: { enabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "uiRipple", required: false }] }], rippleCentered: [{ type: i0.Input, args: [{ isSignal: true, alias: "rippleCentered", required: false }] }] } });
239
+ /**
240
+ * uiRippleScope, local: everything interactive INSIDE this element ripples, with
241
+ * a single listener on the container rather than one directive per control.
242
+ *
243
+ * ```html
244
+ * <div class="toolbar" uiRippleScope>
245
+ * <ui-button label="Enregistrer" />
246
+ * <button>Annuler</button>
247
+ * </div>
248
+ *
249
+ * <nav uiRippleScope rippleSelector="a, button">…</nav>
250
+ * <section [uiRippleScope]="false">…</section>
251
+ * ```
252
+ *
253
+ * Also the way to ripple a single kit component: `<ui-button uiRippleScope />`
254
+ * reaches the native `<button>` it renders, so the wave follows its radius.
255
+ * Nested scopes and `[uiRipple]` do not stack: the innermost declaration wins.
256
+ */
257
+ class UiRippleScope {
258
+ constructor() {
259
+ /** Ripple inside this element. `false` opts the whole subtree out. */
260
+ this.enabled = input(true, { ...(ngDevMode ? { debugName: "enabled" } : /* istanbul ignore next */ {}), alias: 'uiRippleScope', transform: booleanAttribute });
261
+ /** Start at the centre rather than at the pointer. */
262
+ this.rippleCentered = input(false, { ...(ngDevMode ? { debugName: "rippleCentered" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
263
+ /** What ripples inside. Defaults to the kit-wide selector. */
264
+ this.rippleSelector = input(/* @ts-ignore */
265
+ ...(ngDevMode ? [undefined, { debugName: "rippleSelector" }] : /* istanbul ignore next */ []));
266
+ const root = inject(ElementRef).nativeElement;
267
+ const engine = inject(UiRippleEngine);
268
+ inject(DestroyRef).onDestroy(engine.delegate(root, () => ({
269
+ enabled: this.enabled(),
270
+ centered: this.rippleCentered(),
271
+ selector: this.rippleSelector() || engine.defaults.selector,
272
+ })));
273
+ }
274
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiRippleScope, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
275
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.5", type: UiRippleScope, isStandalone: true, selector: "[uiRippleScope]", inputs: { enabled: { classPropertyName: "enabled", publicName: "uiRippleScope", isSignal: true, isRequired: false, transformFunction: null }, rippleCentered: { classPropertyName: "rippleCentered", publicName: "rippleCentered", isSignal: true, isRequired: false, transformFunction: null }, rippleSelector: { classPropertyName: "rippleSelector", publicName: "rippleSelector", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-ripple": "enabled() ? null : \"off\"" } }, ngImport: i0 }); }
276
+ }
277
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiRippleScope, decorators: [{
278
+ type: Directive,
279
+ args: [{
280
+ selector: '[uiRippleScope]',
281
+ host: { '[attr.data-ripple]': 'enabled() ? null : "off"' },
282
+ }]
283
+ }], ctorParameters: () => [], propDecorators: { enabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "uiRippleScope", required: false }] }], rippleCentered: [{ type: i0.Input, args: [{ isSignal: true, alias: "rippleCentered", required: false }] }], rippleSelector: [{ type: i0.Input, args: [{ isSignal: true, alias: "rippleSelector", required: false }] }] } });
284
+
285
+ /*
286
+ * Public API Surface of ui-kit/ripple
287
+ *
288
+ * `UiRipple` / `UiRippleScope` directives + `provideUiRipple()`. The wave's own
289
+ * styles live in the package's global stylesheet (`styles/base/_ripple.scss` →
290
+ * `styles.css`), shipped with the design tokens.
291
+ */
292
+
293
+ /**
294
+ * Generated bundle index. Do not edit.
295
+ */
296
+
297
+ export { UI_RIPPLE_DEFAULT_SELECTOR, UI_RIPPLE_INTERACTIVE_SELECTOR, UI_RIPPLE_OPTIONS, UiRipple, UiRippleEngine, UiRippleScope, provideUiRipple };
298
+ //# sourceMappingURL=4sh-ui-kit-ripple.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"4sh-ui-kit-ripple.mjs","sources":["../../../projects/ui-kit/ripple/src/lib/ui-ripple.engine.ts","../../../projects/ui-kit/ripple/src/lib/ui-ripple.ts","../../../projects/ui-kit/ripple/src/public-api.ts","../../../projects/ui-kit/ripple/src/4sh-ui-kit-ripple.ts"],"sourcesContent":["import { DOCUMENT, isPlatformBrowser } from '@angular/common';\nimport { DestroyRef, inject, Injectable, InjectionToken, NgZone, PLATFORM_ID } from '@angular/core';\n\n/**\n * What a delegated root (global scope or `[uiRippleScope]`) makes rippling by\n * default: only what declares itself, i.e. the kit's curated controls (which\n * carry `data-ripple=\"on\"`) and whatever the application marks the same way.\n * A design system paints no wave on markup it does not own.\n */\nexport const UI_RIPPLE_DEFAULT_SELECTOR = '[data-ripple=\"on\"]';\n\n/**\n * Everything clickable, curated set included. Pass it to\n * `provideUiRipple({ selector: UI_RIPPLE_INTERACTIVE_SELECTOR })` to ripple the\n * application's own controls too, without listing them one by one.\n */\nexport const UI_RIPPLE_INTERACTIVE_SELECTOR =\n 'button, [role=\"button\"], a[href], [data-ripple=\"on\"]';\n\n/** Kit-wide ripple options, set once through `provideUiRipple()`. */\nexport interface UiRippleOptions {\n /** Ripple the whole document (delegated on `<body>`). Default `true`. */\n global?: boolean;\n /** Elements a delegated root ripples. Default {@link UI_RIPPLE_DEFAULT_SELECTOR}. */\n selector?: string;\n}\n\nexport const UI_RIPPLE_OPTIONS = new InjectionToken<UiRippleOptions>('UI_RIPPLE_OPTIONS');\n\n/** Settings of one binding, read at press time so signal inputs stay live. */\nexport interface UiRippleSettings {\n /** `false` stands the binding down without unwiring it. */\n enabled: boolean;\n /** Start the wave at the element's centre rather than at the pointer. */\n centered: boolean;\n /** Delegation only: what ripples inside the root. */\n selector: string;\n}\n\nconst CLAIMED = Symbol.for('@4sh/ui-kit/ripple:claimed');\ntype Claimable = Record<symbol, true | undefined>;\nconst LAYER_CLASS = 'ui-ripple-layer';\nconst INK_CLASS = 'ui-ripple-ink';\n/** Waves alive at once on one host, so a fast clicker cannot pile up nodes. */\nconst MAX_INK = 4;\n\n/** One press, one wave: the innermost binding claims it, every other root stands down. */\nfunction isClaimed(event: Event): boolean {\n return (event as unknown as Claimable)[CLAIMED] === true;\n}\n\nfunction claim(event: Event): void {\n (event as unknown as Claimable)[CLAIMED] = true;\n}\n\n/**\n * Engine behind `[uiRipple]`, `[uiRippleScope]` and `provideUiRipple()`.\n *\n * One `pointerdown` listener per binding (passive, registered outside Angular:\n * a press never triggers change detection), one clipping layer per host created\n * on first use, one `<span>` per wave removed on `animationend`. Nothing is\n * measured until a press actually happens.\n *\n * Appearance is not its business: the layer and the ink read the inherited\n * `--ui-ripple-*` custom properties (`styles/base/_ripple.scss`).\n */\n@Injectable({ providedIn: 'root' })\nexport class UiRippleEngine {\n private readonly document = inject(DOCUMENT);\n private readonly zone = inject(NgZone);\n private readonly isBrowser = isPlatformBrowser(inject(PLATFORM_ID));\n private readonly options = inject(UI_RIPPLE_OPTIONS, { optional: true }) ?? {};\n\n private readonly layers = new WeakMap<Element, HTMLElement>();\n private reducedMotion: MediaQueryList | undefined;\n private uninstallGlobal: (() => void) | undefined;\n\n /** Settings a binding starts from. */\n readonly defaults: UiRippleSettings = {\n enabled: true,\n centered: false,\n selector: this.options.selector ?? UI_RIPPLE_DEFAULT_SELECTOR,\n };\n\n constructor() {\n inject(DestroyRef).onDestroy(() => this.uninstallGlobal?.());\n }\n\n /** Ripples the whole document. Called by `provideUiRipple()`. */\n installGlobal(): void {\n if (this.options.global === false || this.uninstallGlobal) return;\n this.uninstallGlobal = this.delegate(this.document.body, () => this.defaults);\n }\n\n /** The host itself ripples. Returns the teardown. */\n bind(host: HTMLElement, settings: () => UiRippleSettings): () => void {\n const stop = this.listen(host, (event) => {\n // Claimed even when off: an explicit directive always wins over an outer root.\n claim(event);\n const { enabled, centered } = settings();\n if (enabled) this.launch(host, event, centered);\n });\n\n return () => {\n stop();\n this.layers.get(host)?.remove();\n this.layers.delete(host);\n };\n }\n\n /** Descendants matching the selector ripple. Returns the teardown. */\n delegate(root: HTMLElement, settings: () => UiRippleSettings): () => void {\n return this.listen(root, (event) => {\n const { enabled, centered, selector } = settings();\n if (!enabled) return;\n\n const target = (event.target as Element | null)?.closest(selector);\n // `closest` can climb past the root: that match belongs to an outer binding.\n if (!(target instanceof HTMLElement) || !root.contains(target)) return;\n\n claim(event);\n this.launch(target, event, centered);\n });\n }\n\n /**\n * Spawns one wave on `host`, from the pointer position or from its centre.\n * Public so an application can ripple from its own trigger (a keyboard\n * shortcut, a remote event) without a press.\n */\n launch(host: HTMLElement, event?: PointerEvent, centered = false): void {\n if (!this.isBrowser || this.stilled() || this.inert(host)) return;\n\n const rect = host.getBoundingClientRect();\n if (!rect.width || !rect.height) return;\n\n const x = event && !centered ? event.clientX - rect.left : rect.width / 2;\n const y = event && !centered ? event.clientY - rect.top : rect.height / 2;\n // Farthest corner, so the wave always covers the whole element.\n const radius = Math.hypot(Math.max(x, rect.width - x), Math.max(y, rect.height - y));\n\n const layer = this.layerFor(host);\n while (layer.childElementCount >= MAX_INK && layer.firstElementChild) {\n layer.firstElementChild.remove();\n }\n\n const ink = this.document.createElement('span');\n ink.className = INK_CLASS;\n ink.style.cssText = `left:${x - radius}px;top:${y - radius}px;width:${radius * 2}px;height:${radius * 2}px`;\n ink.addEventListener('animationend', () => ink.remove(), { once: true });\n layer.appendChild(ink);\n }\n\n private listen(node: HTMLElement, handle: (event: PointerEvent) => void): () => void {\n if (!this.isBrowser) return () => undefined;\n\n const onPointerDown = (event: PointerEvent) => {\n if (event.button > 0 || !event.isPrimary || isClaimed(event)) return;\n handle(event);\n };\n\n this.zone.runOutsideAngular(() =>\n node.addEventListener('pointerdown', onPointerDown, { passive: true }),\n );\n return () => node.removeEventListener('pointerdown', onPointerDown);\n }\n\n /** Clipping layer of a host, created on first press. */\n private layerFor(host: HTMLElement): HTMLElement {\n const cached = this.layers.get(host);\n if (cached?.parentElement === host) return cached;\n\n // Une autre instance du moteur a pu équiper cet hôte avant nous : sa couche\n // vaut la nôtre, et en créer une seconde les empilerait sur l'élément.\n const existing = host.querySelector<HTMLElement>(`:scope > .${LAYER_CLASS}`);\n if (existing) {\n this.layers.set(host, existing);\n return existing;\n }\n\n // The layer anchors on the host, which must therefore establish the\n // containing block. A host already positioned is left untouched.\n if (this.document.defaultView?.getComputedStyle(host).position === 'static') {\n host.style.position = 'relative';\n }\n\n const layer = this.document.createElement('span');\n layer.className = LAYER_CLASS;\n layer.setAttribute('aria-hidden', 'true');\n host.appendChild(layer);\n this.layers.set(host, layer);\n return layer;\n }\n\n /** Disabled host, or a subtree opted out with `data-ripple=\"off\"`. */\n private inert(host: HTMLElement): boolean {\n return (\n (host as HTMLButtonElement).disabled === true ||\n host.getAttribute('aria-disabled') === 'true' ||\n host.closest('[data-ripple=\"off\"]') !== null\n );\n }\n\n /** Reduced-motion preference, or the kit-wide `data-motion=\"off\"` switch. */\n private stilled(): boolean {\n // Optional call: a non-browser DOM (jsdom) has no `matchMedia`.\n this.reducedMotion ??= this.document.defaultView?.matchMedia?.(\n '(prefers-reduced-motion: reduce)',\n );\n return (\n this.reducedMotion?.matches === true ||\n this.document.documentElement.dataset['motion'] === 'off'\n );\n }\n}\n","import {\n booleanAttribute,\n DestroyRef,\n Directive,\n ElementRef,\n EnvironmentProviders,\n inject,\n input,\n makeEnvironmentProviders,\n provideEnvironmentInitializer,\n} from '@angular/core';\nimport { UI_RIPPLE_OPTIONS, UiRippleEngine, UiRippleOptions } from './ui-ripple.engine';\n\n/**\n * Turns the ripple on for the WHOLE application: every `<button>`, every\n * `[role=\"button\"]` and everything marked `data-ripple=\"on\"` answers a press\n * with a wave, kit components included (the effect lands on their inner native\n * control, not on the custom element).\n *\n * ```ts\n * // app.config.ts\n * providers: [provideUiRipple()];\n *\n * // widen what ripples\n * providers: [provideUiRipple({ selector: 'button, [role=\"button\"], a[href]' })];\n *\n * // set the kit-wide selector without turning the effect on everywhere\n * providers: [provideUiRipple({ global: false, selector: '.card, button' })];\n * ```\n *\n * Any element or subtree opts out with `data-ripple=\"off\"` (or `[uiRipple]=\"false\"`\n * / `[uiRippleScope]=\"false\"`). No provider is needed to use the directives.\n */\nexport function provideUiRipple(options: UiRippleOptions = {}): EnvironmentProviders {\n return makeEnvironmentProviders([\n { provide: UI_RIPPLE_OPTIONS, useValue: options },\n provideEnvironmentInitializer(() => inject(UiRippleEngine).installGlobal()),\n ]);\n}\n\n/**\n * uiRipple, targeted: THIS element answers a press with a wave starting at the\n * pointer.\n *\n * ```html\n * <button uiRipple>Valider</button>\n * <div class=\"tile\" uiRipple rippleCentered>…</div>\n * <button uiRipple [uiRipple]=\"false\">jamais d'onde, ici ni au-dessous</button>\n * ```\n *\n * The wave is clipped by the element's own box and follows its `border-radius`.\n * Retune it with the inherited `--ui-ripple-*` custom properties, on the element\n * or on any ancestor. Put the directive on a native control rather than on a kit\n * component: `<ui-button uiRipple>` would ripple the custom element's square box,\n * where `<ui-button uiRippleScope>` reaches its inner `<button>`.\n */\n@Directive({\n selector: '[uiRipple]',\n host: { '[attr.data-ripple]': 'enabled() ? null : \"off\"' },\n})\nexport class UiRipple {\n /** Wave on this element. `false` opts it and its subtree out, global effect included. */\n readonly enabled = input(true, { alias: 'uiRipple', transform: booleanAttribute });\n /** Start at the centre rather than at the pointer (icon-only controls). */\n readonly rippleCentered = input(false, { transform: booleanAttribute });\n\n constructor() {\n const host = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n const engine = inject(UiRippleEngine);\n\n inject(DestroyRef).onDestroy(\n engine.bind(host, () => ({\n ...engine.defaults,\n enabled: this.enabled(),\n centered: this.rippleCentered(),\n })),\n );\n }\n}\n\n/**\n * uiRippleScope, local: everything interactive INSIDE this element ripples, with\n * a single listener on the container rather than one directive per control.\n *\n * ```html\n * <div class=\"toolbar\" uiRippleScope>\n * <ui-button label=\"Enregistrer\" />\n * <button>Annuler</button>\n * </div>\n *\n * <nav uiRippleScope rippleSelector=\"a, button\">…</nav>\n * <section [uiRippleScope]=\"false\">…</section>\n * ```\n *\n * Also the way to ripple a single kit component: `<ui-button uiRippleScope />`\n * reaches the native `<button>` it renders, so the wave follows its radius.\n * Nested scopes and `[uiRipple]` do not stack: the innermost declaration wins.\n */\n@Directive({\n selector: '[uiRippleScope]',\n host: { '[attr.data-ripple]': 'enabled() ? null : \"off\"' },\n})\nexport class UiRippleScope {\n /** Ripple inside this element. `false` opts the whole subtree out. */\n readonly enabled = input(true, { alias: 'uiRippleScope', transform: booleanAttribute });\n /** Start at the centre rather than at the pointer. */\n readonly rippleCentered = input(false, { transform: booleanAttribute });\n /** What ripples inside. Defaults to the kit-wide selector. */\n readonly rippleSelector = input<string>();\n\n constructor() {\n const root = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n const engine = inject(UiRippleEngine);\n\n inject(DestroyRef).onDestroy(\n engine.delegate(root, () => ({\n enabled: this.enabled(),\n centered: this.rippleCentered(),\n selector: this.rippleSelector() || engine.defaults.selector,\n })),\n );\n }\n}\n","/*\n * Public API Surface of ui-kit/ripple\n *\n * `UiRipple` / `UiRippleScope` directives + `provideUiRipple()`. The wave's own\n * styles live in the package's global stylesheet (`styles/base/_ripple.scss` →\n * `styles.css`), shipped with the design tokens.\n */\n\nexport * from './lib/ui-ripple.engine';\nexport * from './lib/ui-ripple';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAGA;;;;;AAKG;AACI,MAAM,0BAA0B,GAAG;AAE1C;;;;AAIG;AACI,MAAM,8BAA8B,GACzC;MAUW,iBAAiB,GAAG,IAAI,cAAc,CAAkB,mBAAmB;AAYxF,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,4BAA4B,CAAC;AAExD,MAAM,WAAW,GAAG,iBAAiB;AACrC,MAAM,SAAS,GAAG,eAAe;AACjC;AACA,MAAM,OAAO,GAAG,CAAC;AAEjB;AACA,SAAS,SAAS,CAAC,KAAY,EAAA;AAC7B,IAAA,OAAQ,KAA8B,CAAC,OAAO,CAAC,KAAK,IAAI;AAC1D;AAEA,SAAS,KAAK,CAAC,KAAY,EAAA;AACxB,IAAA,KAA8B,CAAC,OAAO,CAAC,GAAG,IAAI;AACjD;AAEA;;;;;;;;;;AAUG;MAEU,cAAc,CAAA;AAiBzB,IAAA,WAAA,GAAA;AAhBiB,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC3B,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC;QACrB,IAAA,CAAA,SAAS,GAAG,iBAAiB,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;AAClD,QAAA,IAAA,CAAA,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