@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
@@ -292,12 +292,12 @@ class UiPopover {
292
292
  const focusable = panelEl.querySelector(FOCUSABLE_SELECTOR);
293
293
  (focusable ?? panelEl).focus();
294
294
  }
295
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiPopover, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
296
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.2", type: UiPopover, isStandalone: true, selector: "ui-popover", inputs: { dismissable: { classPropertyName: "dismissable", publicName: "dismissable", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, showArrow: { classPropertyName: "showArrow", publicName: "showArrow", isSignal: true, isRequired: false, transformFunction: null }, modal: { classPropertyName: "modal", publicName: "modal", isSignal: true, isRequired: false, transformFunction: null }, role: { classPropertyName: "role", publicName: "role", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, focusOnShow: { classPropertyName: "focusOnShow", publicName: "focusOnShow", isSignal: true, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: true, isRequired: false, transformFunction: null }, motion: { classPropertyName: "motion", publicName: "motion", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { shown: "shown", hidden: "hidden" }, viewQueries: [{ propertyName: "panel", first: true, predicate: ["panel"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"origin()!\"\n [cdkConnectedOverlayOpen]=\"visible()\"\n [cdkConnectedOverlayPositions]=\"positions()\"\n [cdkConnectedOverlayHasBackdrop]=\"false\"\n [cdkConnectedOverlayPush]=\"false\"\n [cdkConnectedOverlayFlexibleDimensions]=\"false\"\n [cdkConnectedOverlayViewportMargin]=\"8\"\n (overlayOutsideClick)=\"onOutsideClick($event)\"\n (positionChange)=\"onPositionChange($event)\"\n (detach)=\"hide()\"\n>\n <div\n #panel\n [class]=\"panelClasses()\"\n [attr.id]=\"panelId\"\n [attr.role]=\"role()\"\n [attr.aria-modal]=\"modal() ? 'true' : null\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n tabindex=\"-1\"\n [cdkTrapFocus]=\"modal()\"\n [uiMotion]=\"'zoom'\"\n [motionDisabled]=\"!motion()\"\n #panelMotion=\"uiMotion\"\n motionOnInsert\n (keydown.escape)=\"onEscape($event)\"\n >\n @if (showArrow()) {\n <span class=\"ui-popover-arrow\" aria-hidden=\"true\"></span>\n }\n <div class=\"ui-popover-content\">\n <ng-content />\n </div>\n </div>\n</ng-template>\n", styles: [".ui-popover{position:relative;display:block;width:max-content;max-width:var(--ui-popover-max-width, 20rem);color:var(--global-text-default);box-sizing:border-box;border:var(--ui-control-stroke-width, var(--stroke-default)) solid var(--ui-overlay-stroke, var(--global-border-default));border-radius:var(--ui-overlay-radius, var(--ui-overlay-panel-radius, var(--radius-default)));background-color:var(--ui-overlay-surface, var(--global-background-default));box-shadow:var(--ui-overlay-shadow, var(--ui-overlay-panel-shadow, var(--shadow-default-md)));font-family:var(--fontfamily-base);overflow:visible}.ui-popover:focus{outline:none}.ui-popover-content{box-sizing:border-box;padding:var(--ui-popover-padding, var(--units-md));max-height:var(--ui-popover-max-height);overflow:auto;border-radius:inherit}.ui-popover-arrow{position:absolute;width:var(--ui-popover-arrow-size, .5rem);height:var(--ui-popover-arrow-size, .5rem);background-color:var(--global-background-default);border:var(--ui-control-stroke-width, var(--stroke-default)) solid var(--global-border-default);rotate:45deg}.ui-popover._no-arrow .ui-popover-arrow{display:none}.ui-popover._top .ui-popover-arrow{bottom:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));left:50%;margin-left:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-top:0;border-left:0}.ui-popover._bottom .ui-popover-arrow{top:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));left:50%;margin-left:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-right:0;border-bottom:0}.ui-popover._left .ui-popover-arrow{right:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));top:50%;margin-top:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-bottom:0;border-left:0}.ui-popover._right .ui-popover-arrow{left:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));top:50%;margin-top:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-top:0;border-right:0}\n"], dependencies: [{ kind: "ngmodule", type: OverlayModule }, { kind: "directive", type: i1.CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation", "cdkConnectedOverlayUsePopover", "cdkConnectedOverlayMatchWidth", "cdkConnectedOverlay"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i2.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "directive", type: UiMotion, selector: "[uiMotion]", inputs: ["uiMotion", "motionDuration", "motionDelay", "motionEasing", "motionEnterEasing", "motionLeaveEasing", "motionDistance", "motionScale", "motionDisabled", "motionOnInsert"], exportAs: ["uiMotion"] }] }); }
295
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiPopover, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
296
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: UiPopover, isStandalone: true, selector: "ui-popover", inputs: { dismissable: { classPropertyName: "dismissable", publicName: "dismissable", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, showArrow: { classPropertyName: "showArrow", publicName: "showArrow", isSignal: true, isRequired: false, transformFunction: null }, modal: { classPropertyName: "modal", publicName: "modal", isSignal: true, isRequired: false, transformFunction: null }, role: { classPropertyName: "role", publicName: "role", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, focusOnShow: { classPropertyName: "focusOnShow", publicName: "focusOnShow", isSignal: true, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: true, isRequired: false, transformFunction: null }, motion: { classPropertyName: "motion", publicName: "motion", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { shown: "shown", hidden: "hidden" }, viewQueries: [{ propertyName: "panel", first: true, predicate: ["panel"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"origin()!\"\n [cdkConnectedOverlayOpen]=\"visible()\"\n [cdkConnectedOverlayPositions]=\"positions()\"\n [cdkConnectedOverlayHasBackdrop]=\"false\"\n [cdkConnectedOverlayPush]=\"false\"\n [cdkConnectedOverlayFlexibleDimensions]=\"false\"\n [cdkConnectedOverlayViewportMargin]=\"8\"\n (overlayOutsideClick)=\"onOutsideClick($event)\"\n (positionChange)=\"onPositionChange($event)\"\n (detach)=\"hide()\"\n>\n <div\n #panel\n [class]=\"panelClasses()\"\n [attr.id]=\"panelId\"\n [attr.role]=\"role()\"\n [attr.aria-modal]=\"modal() ? 'true' : null\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n tabindex=\"-1\"\n [cdkTrapFocus]=\"modal()\"\n [uiMotion]=\"'zoom'\"\n [motionDisabled]=\"!motion()\"\n #panelMotion=\"uiMotion\"\n motionOnInsert\n (keydown.escape)=\"onEscape($event)\"\n >\n @if (showArrow()) {\n <span class=\"ui-popover-arrow\" aria-hidden=\"true\"></span>\n }\n <div class=\"ui-popover-content\">\n <ng-content />\n </div>\n </div>\n</ng-template>\n", styles: [".ui-popover{position:relative;display:block;width:max-content;max-width:var(--ui-popover-max-width, 20rem);color:var(--ui-popover-color, var(--global-text-default));box-sizing:border-box;border:var(--ui-control-stroke-width, var(--stroke-default)) solid var(--ui-overlay-stroke, var(--ui-popover-stroke, var(--global-border-default)));border-radius:var(--ui-overlay-radius, var(--ui-overlay-panel-radius, var(--radius-default)));background-color:var(--ui-overlay-surface, var(--ui-popover-surface, var(--global-background-default)));box-shadow:var(--ui-overlay-shadow, var(--ui-overlay-panel-shadow, var(--shadow-default-md)));font-family:var(--ui-overlay-panel-font-family, var(--fontfamily-base));overflow:visible}.ui-popover:focus{outline:none}.ui-popover-content{box-sizing:border-box;padding:var(--ui-popover-padding, var(--units-md));max-height:var(--ui-popover-max-height);overflow:auto;border-radius:inherit}.ui-popover-arrow{position:absolute;width:var(--ui-popover-arrow-size, .5rem);height:var(--ui-popover-arrow-size, .5rem);background-color:var(--ui-popover-surface, var(--global-background-default));border:var(--ui-control-stroke-width, var(--stroke-default)) solid var(--ui-popover-stroke, var(--global-border-default));rotate:45deg}.ui-popover._no-arrow .ui-popover-arrow{display:none}.ui-popover._top .ui-popover-arrow{bottom:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));left:50%;margin-left:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-top:0;border-left:0}.ui-popover._bottom .ui-popover-arrow{top:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));left:50%;margin-left:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-right:0;border-bottom:0}.ui-popover._left .ui-popover-arrow{right:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));top:50%;margin-top:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-bottom:0;border-left:0}.ui-popover._right .ui-popover-arrow{left:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));top:50%;margin-top:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-top:0;border-right:0}\n"], dependencies: [{ kind: "ngmodule", type: OverlayModule }, { kind: "directive", type: i1.CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation", "cdkConnectedOverlayUsePopover", "cdkConnectedOverlayMatchWidth", "cdkConnectedOverlay"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i2.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "directive", type: UiMotion, selector: "[uiMotion]", inputs: ["uiMotion", "motionDuration", "motionDelay", "motionEasing", "motionEnterEasing", "motionLeaveEasing", "motionDistance", "motionScale", "motionDisabled", "motionOnInsert"], exportAs: ["uiMotion"] }] }); }
297
297
  }
298
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiPopover, decorators: [{
298
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiPopover, decorators: [{
299
299
  type: Component,
300
- args: [{ selector: 'ui-popover', imports: [OverlayModule, A11yModule, UiMotion], template: "<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"origin()!\"\n [cdkConnectedOverlayOpen]=\"visible()\"\n [cdkConnectedOverlayPositions]=\"positions()\"\n [cdkConnectedOverlayHasBackdrop]=\"false\"\n [cdkConnectedOverlayPush]=\"false\"\n [cdkConnectedOverlayFlexibleDimensions]=\"false\"\n [cdkConnectedOverlayViewportMargin]=\"8\"\n (overlayOutsideClick)=\"onOutsideClick($event)\"\n (positionChange)=\"onPositionChange($event)\"\n (detach)=\"hide()\"\n>\n <div\n #panel\n [class]=\"panelClasses()\"\n [attr.id]=\"panelId\"\n [attr.role]=\"role()\"\n [attr.aria-modal]=\"modal() ? 'true' : null\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n tabindex=\"-1\"\n [cdkTrapFocus]=\"modal()\"\n [uiMotion]=\"'zoom'\"\n [motionDisabled]=\"!motion()\"\n #panelMotion=\"uiMotion\"\n motionOnInsert\n (keydown.escape)=\"onEscape($event)\"\n >\n @if (showArrow()) {\n <span class=\"ui-popover-arrow\" aria-hidden=\"true\"></span>\n }\n <div class=\"ui-popover-content\">\n <ng-content />\n </div>\n </div>\n</ng-template>\n", styles: [".ui-popover{position:relative;display:block;width:max-content;max-width:var(--ui-popover-max-width, 20rem);color:var(--global-text-default);box-sizing:border-box;border:var(--ui-control-stroke-width, var(--stroke-default)) solid var(--ui-overlay-stroke, var(--global-border-default));border-radius:var(--ui-overlay-radius, var(--ui-overlay-panel-radius, var(--radius-default)));background-color:var(--ui-overlay-surface, var(--global-background-default));box-shadow:var(--ui-overlay-shadow, var(--ui-overlay-panel-shadow, var(--shadow-default-md)));font-family:var(--fontfamily-base);overflow:visible}.ui-popover:focus{outline:none}.ui-popover-content{box-sizing:border-box;padding:var(--ui-popover-padding, var(--units-md));max-height:var(--ui-popover-max-height);overflow:auto;border-radius:inherit}.ui-popover-arrow{position:absolute;width:var(--ui-popover-arrow-size, .5rem);height:var(--ui-popover-arrow-size, .5rem);background-color:var(--global-background-default);border:var(--ui-control-stroke-width, var(--stroke-default)) solid var(--global-border-default);rotate:45deg}.ui-popover._no-arrow .ui-popover-arrow{display:none}.ui-popover._top .ui-popover-arrow{bottom:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));left:50%;margin-left:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-top:0;border-left:0}.ui-popover._bottom .ui-popover-arrow{top:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));left:50%;margin-left:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-right:0;border-bottom:0}.ui-popover._left .ui-popover-arrow{right:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));top:50%;margin-top:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-bottom:0;border-left:0}.ui-popover._right .ui-popover-arrow{left:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));top:50%;margin-top:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-top:0;border-right:0}\n"] }]
300
+ args: [{ selector: 'ui-popover', imports: [OverlayModule, A11yModule, UiMotion], template: "<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"origin()!\"\n [cdkConnectedOverlayOpen]=\"visible()\"\n [cdkConnectedOverlayPositions]=\"positions()\"\n [cdkConnectedOverlayHasBackdrop]=\"false\"\n [cdkConnectedOverlayPush]=\"false\"\n [cdkConnectedOverlayFlexibleDimensions]=\"false\"\n [cdkConnectedOverlayViewportMargin]=\"8\"\n (overlayOutsideClick)=\"onOutsideClick($event)\"\n (positionChange)=\"onPositionChange($event)\"\n (detach)=\"hide()\"\n>\n <div\n #panel\n [class]=\"panelClasses()\"\n [attr.id]=\"panelId\"\n [attr.role]=\"role()\"\n [attr.aria-modal]=\"modal() ? 'true' : null\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n tabindex=\"-1\"\n [cdkTrapFocus]=\"modal()\"\n [uiMotion]=\"'zoom'\"\n [motionDisabled]=\"!motion()\"\n #panelMotion=\"uiMotion\"\n motionOnInsert\n (keydown.escape)=\"onEscape($event)\"\n >\n @if (showArrow()) {\n <span class=\"ui-popover-arrow\" aria-hidden=\"true\"></span>\n }\n <div class=\"ui-popover-content\">\n <ng-content />\n </div>\n </div>\n</ng-template>\n", styles: [".ui-popover{position:relative;display:block;width:max-content;max-width:var(--ui-popover-max-width, 20rem);color:var(--ui-popover-color, var(--global-text-default));box-sizing:border-box;border:var(--ui-control-stroke-width, var(--stroke-default)) solid var(--ui-overlay-stroke, var(--ui-popover-stroke, var(--global-border-default)));border-radius:var(--ui-overlay-radius, var(--ui-overlay-panel-radius, var(--radius-default)));background-color:var(--ui-overlay-surface, var(--ui-popover-surface, var(--global-background-default)));box-shadow:var(--ui-overlay-shadow, var(--ui-overlay-panel-shadow, var(--shadow-default-md)));font-family:var(--ui-overlay-panel-font-family, var(--fontfamily-base));overflow:visible}.ui-popover:focus{outline:none}.ui-popover-content{box-sizing:border-box;padding:var(--ui-popover-padding, var(--units-md));max-height:var(--ui-popover-max-height);overflow:auto;border-radius:inherit}.ui-popover-arrow{position:absolute;width:var(--ui-popover-arrow-size, .5rem);height:var(--ui-popover-arrow-size, .5rem);background-color:var(--ui-popover-surface, var(--global-background-default));border:var(--ui-control-stroke-width, var(--stroke-default)) solid var(--ui-popover-stroke, var(--global-border-default));rotate:45deg}.ui-popover._no-arrow .ui-popover-arrow{display:none}.ui-popover._top .ui-popover-arrow{bottom:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));left:50%;margin-left:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-top:0;border-left:0}.ui-popover._bottom .ui-popover-arrow{top:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));left:50%;margin-left:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-right:0;border-bottom:0}.ui-popover._left .ui-popover-arrow{right:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));top:50%;margin-top:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-bottom:0;border-left:0}.ui-popover._right .ui-popover-arrow{left:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));top:50%;margin-top:calc(-1 * calc(var(--ui-popover-arrow-size, .5rem) / 2));border-top:0;border-right:0}\n"] }]
301
301
  }], ctorParameters: () => [], propDecorators: { dismissable: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissable", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], showArrow: [{ type: i0.Input, args: [{ isSignal: true, alias: "showArrow", required: false }] }], modal: [{ type: i0.Input, args: [{ isSignal: true, alias: "modal", required: false }] }], role: [{ type: i0.Input, args: [{ isSignal: true, alias: "role", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], focusOnShow: [{ type: i0.Input, args: [{ isSignal: true, alias: "focusOnShow", required: false }] }], closeOnEscape: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnEscape", required: false }] }], motion: [{ type: i0.Input, args: [{ isSignal: true, alias: "motion", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], shown: [{ type: i0.Output, args: ["shown"] }], hidden: [{ type: i0.Output, args: ["hidden"] }], panel: [{ type: i0.ViewChild, args: ['panel', { isSignal: true }] }] } });
302
302
 
303
303
  /*
@@ -1 +1 @@
1
- {"version":3,"file":"4sh-ui-kit-layout-ui-popover.mjs","sources":["../../../projects/ui-kit/layout/ui-popover/src/lib/ui-popover.ts","../../../projects/ui-kit/layout/ui-popover/src/lib/ui-popover.html","../../../projects/ui-kit/layout/ui-popover/src/public-api.ts","../../../projects/ui-kit/layout/ui-popover/src/4sh-ui-kit-layout-ui-popover.ts"],"sourcesContent":["import {\n booleanAttribute,\n Component,\n computed,\n DOCUMENT,\n effect,\n ElementRef,\n inject,\n input,\n isDevMode,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport {\n ConnectedOverlayPositionChange,\n ConnectedPosition,\n OverlayModule,\n} from '@angular/cdk/overlay';\nimport { A11yModule } from '@angular/cdk/a11y';\nimport { UiMotion } from '@4sh/ui-kit/motion';\nimport { closeOnNavigation } from '@4sh/ui-kit/overlay';\n\n/** Preferred side of the trigger the panel is displayed on (drives the arrow). */\nexport type PopoverPosition = 'top' | 'bottom' | 'left' | 'right';\n\n/** Accepted shapes for the anchor passed to `show` / `toggle`. */\nexport type PopoverTarget = HTMLElement | ElementRef<HTMLElement>;\n\n/** Gap (px) between the trigger and the panel, leaving room for the arrow — mirrors `$popover-arrow-size` in the SCSS. */\nconst ARROW_GAP = 8;\n\n/** Focusable descendants used to move focus into the panel on open. */\nconst FOCUSABLE_SELECTOR = [\n 'a[href]',\n 'button:not([disabled])',\n 'input:not([disabled])',\n 'select:not([disabled])',\n 'textarea:not([disabled])',\n '[tabindex]:not([tabindex=\"-1\"])',\n].join(',');\n\n/** Process-wide counter for unique panel ids (aria-controls wiring). */\nlet nextId = 0;\n\n/**\n * ui-popover — headless floating panel anchored to a trigger.\n *\n * A token-styled surface (shared `overlay-panel` shell + `global.*` tokens)\n * rendered in a CDK connected overlay, driven imperatively through the public\n * `show` / `hide` / `toggle` methods. The consumer keeps a template reference\n * variable on the popover and wires a trigger to it; the panel holds arbitrary\n * projected content.\n *\n * Built for accessibility: `role=\"dialog\"`, non-modal WAI-ARIA pattern by\n * default (no `aria-modal`, focus not trapped — see the `modal` input to opt\n * into a blocking dialog with `aria-modal` + a permanent focus trap via\n * `@angular/cdk/a11y`), the first focusable element (or an element carrying\n * `autofocus`) focused on open, `Escape` to close and return focus to the\n * trigger, and `aria-expanded` / `aria-controls` reflected on the trigger.\n *\n * Positioning, viewport flipping and scroll re-alignment are delegated to the\n * CDK connected overlay (no manual geometry); the arrow follows the effective\n * side.\n *\n * @example\n * ```html\n * <!-- Basic: the trigger's click event carries the anchor -->\n * <ui-button label=\"Détails\" (buttonClick)=\"op.toggle($event)\" />\n * <ui-popover #op ariaLabel=\"Détails du produit\">…</ui-popover>\n *\n * <!-- Controlled: pass the trigger element as the second argument -->\n * <span #anchor>Ancre</span>\n * <ui-button label=\"Ouvrir\" (buttonClick)=\"op.show($event, anchor)\" />\n * <ui-popover #op ariaLabel=\"Détails\">…</ui-popover>\n * ```\n */\n@Component({\n selector: 'ui-popover',\n imports: [OverlayModule, A11yModule, UiMotion],\n templateUrl: './ui-popover.html',\n styleUrl: './ui-popover.scss',\n})\nexport class UiPopover {\n /** Hide the panel when a click lands outside it (and outside the trigger). */\n dismissable = input(true, { transform: booleanAttribute });\n /** Preferred side of the trigger; the overlay flips it when space is lacking. */\n position = input<PopoverPosition>('bottom');\n /** Render the arrow pointing back to the trigger. */\n showArrow = input(true, { transform: booleanAttribute });\n /** Make the panel modal: `aria-modal` reflected + permanent focus trap. */\n modal = input(false, { transform: booleanAttribute });\n /** ARIA role of the panel. */\n role = input<string>('dialog');\n /** Accessible name of the panel (recommended). */\n ariaLabel = input<string>();\n /** Id of an external element naming the panel. */\n ariaLabelledBy = input<string>();\n /** Move focus into the panel when it opens. */\n focusOnShow = input(true, { transform: booleanAttribute });\n /** Close the panel when `Escape` is pressed. */\n closeOnEscape = input(true, { transform: booleanAttribute });\n /** Animate the panel entrance (reduced-motion / `data-motion=\"off\"` always win). */\n motion = input(true, { transform: booleanAttribute });\n /** Extra class(es) applied to the panel (scoped custom styling). */\n styleClass = input<string>();\n\n /** Emitted after the panel becomes visible. */\n shown = output<void>();\n /** Emitted after the panel is hidden. */\n hidden = output<void>();\n\n /** @ignore */\n private readonly doc = inject(DOCUMENT);\n /** @ignore Panel root (only present while open — queried after the overlay attaches). */\n private readonly panel = viewChild<ElementRef<HTMLElement>>('panel');\n\n /** @ignore Panel visibility. */\n private readonly _open = signal(false);\n /** Read-only open state (for host bindings / conditional logic). */\n readonly visible = this._open.asReadonly();\n\n /** @ignore Element the overlay is anchored to. */\n protected readonly origin = signal<HTMLElement | null>(null);\n /** @ignore Effective side (updated from the CDK connection pair) — drives the arrow. */\n protected readonly side = signal<PopoverPosition>('bottom');\n /** @ignore Unique panel id, wired to the trigger via `aria-controls`. */\n protected readonly panelId = `ui-popover-${nextId++}`;\n\n /** @ignore Resolved trigger element (kept for focus restore + aria cleanup). */\n private targetEl: HTMLElement | null = null;\n\n constructor() {\n // A popover declared in an app shell outlives the routed view: dismiss it\n // rather than carrying it over to the next page.\n closeOnNavigation(() => this.hide());\n\n // A11y safeguard: an open dialog must have an accessible name.\n if (isDevMode()) {\n effect(() => {\n if (this._open() && !this.ariaLabel() && !this.ariaLabelledBy()) {\n console.warn(\n '[ui-popover] Popover has no accessible name: provide `ariaLabel` or `ariaLabelledBy`.',\n );\n }\n });\n }\n }\n\n // --- Public API ---------------------------------------------------------\n\n /**\n * Show the panel anchored to `target` (or the event's `currentTarget`).\n * @param event Browser event whose `currentTarget` is used as a fallback anchor.\n * @param target Explicit anchor element (kept anchored to it).\n */\n show(event?: Event, target?: PopoverTarget): void {\n const anchor = this.resolveTarget(target) ?? this.resolveEventTarget(event);\n if (!anchor) return;\n event?.stopPropagation();\n\n this.targetEl = anchor;\n this.origin.set(anchor);\n if (!this._open()) {\n this._open.set(true);\n this.applyTriggerAria(anchor);\n this.shown.emit();\n }\n if (this.focusOnShow()) this.queueFocus();\n }\n\n /** Hide the panel; returns focus to the trigger when focus was inside it. */\n hide(): void {\n if (!this._open()) return;\n const panelEl = this.panel()?.nativeElement;\n const active = this.doc.activeElement;\n const focusWasInside = !!panelEl && active instanceof Node && panelEl.contains(active);\n\n this._open.set(false);\n this.clearTriggerAria();\n if (focusWasInside) this.targetEl?.focus();\n this.hidden.emit();\n }\n\n /** Toggle the panel, anchoring it like {@link show} when it opens. */\n toggle(event?: Event, target?: PopoverTarget): void {\n this._open() ? this.hide() : this.show(event, target);\n }\n\n // --- Positioning ----------------------------------------------------------\n\n /** @ignore Ordered positions (preferred first, then fallbacks) for CDK auto-flip. */\n protected readonly positions = computed<ConnectedPosition[]>(() => {\n const top: ConnectedPosition = {\n originX: 'center',\n originY: 'top',\n overlayX: 'center',\n overlayY: 'bottom',\n offsetY: -ARROW_GAP,\n };\n const bottom: ConnectedPosition = {\n originX: 'center',\n originY: 'bottom',\n overlayX: 'center',\n overlayY: 'top',\n offsetY: ARROW_GAP,\n };\n const left: ConnectedPosition = {\n originX: 'start',\n originY: 'center',\n overlayX: 'end',\n overlayY: 'center',\n offsetX: -ARROW_GAP,\n };\n const right: ConnectedPosition = {\n originX: 'end',\n originY: 'center',\n overlayX: 'start',\n overlayY: 'center',\n offsetX: ARROW_GAP,\n };\n const order: Record<PopoverPosition, ConnectedPosition[]> = {\n top: [top, bottom, right, left],\n bottom: [bottom, top, right, left],\n left: [left, right, top, bottom],\n right: [right, left, top, bottom],\n };\n return order[this.position()];\n });\n\n /** @ignore */\n protected readonly panelClasses = computed(() => {\n const c = ['ui-popover', `_${this.side()}`];\n if (!this.showArrow()) c.push('_no-arrow');\n const extra = this.styleClass();\n if (extra) c.push(extra);\n return c.join(' ');\n });\n\n /** @ignore Map the active CDK connection pair back to the visual side (for the arrow). */\n protected onPositionChange(change: ConnectedOverlayPositionChange): void {\n // The trigger can be gone while the popover lives on (its page was\n // destroyed): re-positioning on a detached anchor measures 0×0 and would\n // snap the panel to the top-left corner.\n if (this.targetEl && !this.targetEl.isConnected) {\n this.hide();\n return;\n }\n const pair = change.connectionPair;\n if (pair.overlayY === 'bottom') this.side.set('top');\n else if (pair.overlayY === 'top' && pair.originY === 'bottom') this.side.set('bottom');\n else if (pair.overlayX === 'end') this.side.set('left');\n else if (pair.overlayX === 'start' && pair.originX === 'end') this.side.set('right');\n else this.side.set(this.position());\n }\n\n // --- Interactions ---------------------------------------------------------\n\n /** @ignore A click outside the panel closes it — unless it lands on the trigger,\n * whose own handler owns the toggle (avoids close-then-reopen races). */\n protected onOutsideClick(event: MouseEvent): void {\n if (!this.dismissable()) return;\n const target = event.target;\n if (target instanceof Node && this.targetEl?.contains(target)) return;\n this.hide();\n }\n\n /** @ignore */\n protected onEscape(event: Event): void {\n if (!this.closeOnEscape()) return;\n event.stopPropagation();\n this.hide();\n }\n\n // --- Internals ------------------------------------------------------------\n\n /** @ignore */\n private resolveTarget(target?: PopoverTarget): HTMLElement | null {\n if (!target) return null;\n return target instanceof ElementRef ? target.nativeElement : target;\n }\n\n /** @ignore */\n private resolveEventTarget(event?: Event): HTMLElement | null {\n const el = event?.currentTarget ?? event?.target;\n return el instanceof HTMLElement ? el : null;\n }\n\n /** @ignore Reflect the open relationship on the trigger. */\n private applyTriggerAria(el: HTMLElement): void {\n el.setAttribute('aria-expanded', 'true');\n el.setAttribute('aria-controls', this.panelId);\n }\n\n /** @ignore */\n private clearTriggerAria(): void {\n const el = this.targetEl;\n if (!el) return;\n el.setAttribute('aria-expanded', 'false');\n el.removeAttribute('aria-controls');\n }\n\n /** @ignore Focus the first focusable (or `[autofocus]`) once the overlay renders.\n * The overlay attaches after change detection: retry over macrotasks\n * (NOT rAF — it never fires in throttled/background tabs). */\n private queueFocus(attempts = 20): void {\n setTimeout(() => {\n const panelEl = this.panel()?.nativeElement;\n if (panelEl) this.focusFirst(panelEl);\n else if (attempts > 0) this.queueFocus(attempts - 1);\n });\n }\n\n /** @ignore */\n private focusFirst(panelEl: HTMLElement): void {\n const auto = panelEl.querySelector<HTMLElement>('[autofocus]');\n if (auto) {\n auto.focus();\n return;\n }\n const focusable = panelEl.querySelector<HTMLElement>(FOCUSABLE_SELECTOR);\n (focusable ?? panelEl).focus();\n }\n}\n","<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"origin()!\"\n [cdkConnectedOverlayOpen]=\"visible()\"\n [cdkConnectedOverlayPositions]=\"positions()\"\n [cdkConnectedOverlayHasBackdrop]=\"false\"\n [cdkConnectedOverlayPush]=\"false\"\n [cdkConnectedOverlayFlexibleDimensions]=\"false\"\n [cdkConnectedOverlayViewportMargin]=\"8\"\n (overlayOutsideClick)=\"onOutsideClick($event)\"\n (positionChange)=\"onPositionChange($event)\"\n (detach)=\"hide()\"\n>\n <div\n #panel\n [class]=\"panelClasses()\"\n [attr.id]=\"panelId\"\n [attr.role]=\"role()\"\n [attr.aria-modal]=\"modal() ? 'true' : null\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n tabindex=\"-1\"\n [cdkTrapFocus]=\"modal()\"\n [uiMotion]=\"'zoom'\"\n [motionDisabled]=\"!motion()\"\n #panelMotion=\"uiMotion\"\n motionOnInsert\n (keydown.escape)=\"onEscape($event)\"\n >\n @if (showArrow()) {\n <span class=\"ui-popover-arrow\" aria-hidden=\"true\"></span>\n }\n <div class=\"ui-popover-content\">\n <ng-content />\n </div>\n </div>\n</ng-template>\n","/*\n * Public API Surface of ui-kit/ui-popover\n */\n\nexport * from './lib/ui-popover';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;AA6BA;AACA,MAAM,SAAS,GAAG,CAAC;AAEnB;AACA,MAAM,kBAAkB,GAAG;IACzB,SAAS;IACT,wBAAwB;IACxB,uBAAuB;IACvB,wBAAwB;IACxB,0BAA0B;IAC1B,iCAAiC;AAClC,CAAA,CAAC,IAAI,CAAC,GAAG,CAAC;AAEX;AACA,IAAI,MAAM,GAAG,CAAC;AAEd;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BG;MAOU,SAAS,CAAA;AAiDpB,IAAA,WAAA,GAAA;;QA/CA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAC,IAAI,mFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;QAE1D,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAkB,QAAQ;qFAAC;;QAE3C,IAAA,CAAA,SAAS,GAAG,KAAK,CAAC,IAAI,iFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;QAExD,IAAA,CAAA,KAAK,GAAG,KAAK,CAAC,KAAK,6EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;QAErD,IAAA,CAAA,IAAI,GAAG,KAAK,CAAS,QAAQ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G;;ACFH;;AAEG;;"}
1
+ {"version":3,"file":"4sh-ui-kit-layout-ui-popover.mjs","sources":["../../../projects/ui-kit/layout/ui-popover/src/lib/ui-popover.ts","../../../projects/ui-kit/layout/ui-popover/src/lib/ui-popover.html","../../../projects/ui-kit/layout/ui-popover/src/public-api.ts","../../../projects/ui-kit/layout/ui-popover/src/4sh-ui-kit-layout-ui-popover.ts"],"sourcesContent":["import {\n booleanAttribute,\n Component,\n computed,\n DOCUMENT,\n effect,\n ElementRef,\n inject,\n input,\n isDevMode,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport {\n ConnectedOverlayPositionChange,\n ConnectedPosition,\n OverlayModule,\n} from '@angular/cdk/overlay';\nimport { A11yModule } from '@angular/cdk/a11y';\nimport { UiMotion } from '@4sh/ui-kit/motion';\nimport { closeOnNavigation } from '@4sh/ui-kit/overlay';\n\n/** Preferred side of the trigger the panel is displayed on (drives the arrow). */\nexport type PopoverPosition = 'top' | 'bottom' | 'left' | 'right';\n\n/** Accepted shapes for the anchor passed to `show` / `toggle`. */\nexport type PopoverTarget = HTMLElement | ElementRef<HTMLElement>;\n\n/** Gap (px) between the trigger and the panel, leaving room for the arrow — mirrors `$popover-arrow-size` in the SCSS. */\nconst ARROW_GAP = 8;\n\n/** Focusable descendants used to move focus into the panel on open. */\nconst FOCUSABLE_SELECTOR = [\n 'a[href]',\n 'button:not([disabled])',\n 'input:not([disabled])',\n 'select:not([disabled])',\n 'textarea:not([disabled])',\n '[tabindex]:not([tabindex=\"-1\"])',\n].join(',');\n\n/** Process-wide counter for unique panel ids (aria-controls wiring). */\nlet nextId = 0;\n\n/**\n * ui-popover — headless floating panel anchored to a trigger.\n *\n * A token-styled surface (shared `overlay-panel` shell + `global.*` tokens)\n * rendered in a CDK connected overlay, driven imperatively through the public\n * `show` / `hide` / `toggle` methods. The consumer keeps a template reference\n * variable on the popover and wires a trigger to it; the panel holds arbitrary\n * projected content.\n *\n * Built for accessibility: `role=\"dialog\"`, non-modal WAI-ARIA pattern by\n * default (no `aria-modal`, focus not trapped — see the `modal` input to opt\n * into a blocking dialog with `aria-modal` + a permanent focus trap via\n * `@angular/cdk/a11y`), the first focusable element (or an element carrying\n * `autofocus`) focused on open, `Escape` to close and return focus to the\n * trigger, and `aria-expanded` / `aria-controls` reflected on the trigger.\n *\n * Positioning, viewport flipping and scroll re-alignment are delegated to the\n * CDK connected overlay (no manual geometry); the arrow follows the effective\n * side.\n *\n * @example\n * ```html\n * <!-- Basic: the trigger's click event carries the anchor -->\n * <ui-button label=\"Détails\" (buttonClick)=\"op.toggle($event)\" />\n * <ui-popover #op ariaLabel=\"Détails du produit\">…</ui-popover>\n *\n * <!-- Controlled: pass the trigger element as the second argument -->\n * <span #anchor>Ancre</span>\n * <ui-button label=\"Ouvrir\" (buttonClick)=\"op.show($event, anchor)\" />\n * <ui-popover #op ariaLabel=\"Détails\">…</ui-popover>\n * ```\n */\n@Component({\n selector: 'ui-popover',\n imports: [OverlayModule, A11yModule, UiMotion],\n templateUrl: './ui-popover.html',\n styleUrl: './ui-popover.scss',\n})\nexport class UiPopover {\n /** Hide the panel when a click lands outside it (and outside the trigger). */\n dismissable = input(true, { transform: booleanAttribute });\n /** Preferred side of the trigger; the overlay flips it when space is lacking. */\n position = input<PopoverPosition>('bottom');\n /** Render the arrow pointing back to the trigger. */\n showArrow = input(true, { transform: booleanAttribute });\n /** Make the panel modal: `aria-modal` reflected + permanent focus trap. */\n modal = input(false, { transform: booleanAttribute });\n /** ARIA role of the panel. */\n role = input<string>('dialog');\n /** Accessible name of the panel (recommended). */\n ariaLabel = input<string>();\n /** Id of an external element naming the panel. */\n ariaLabelledBy = input<string>();\n /** Move focus into the panel when it opens. */\n focusOnShow = input(true, { transform: booleanAttribute });\n /** Close the panel when `Escape` is pressed. */\n closeOnEscape = input(true, { transform: booleanAttribute });\n /** Animate the panel entrance (reduced-motion / `data-motion=\"off\"` always win). */\n motion = input(true, { transform: booleanAttribute });\n /** Extra class(es) applied to the panel (scoped custom styling). */\n styleClass = input<string>();\n\n /** Emitted after the panel becomes visible. */\n shown = output<void>();\n /** Emitted after the panel is hidden. */\n hidden = output<void>();\n\n /** @ignore */\n private readonly doc = inject(DOCUMENT);\n /** @ignore Panel root (only present while open — queried after the overlay attaches). */\n private readonly panel = viewChild<ElementRef<HTMLElement>>('panel');\n\n /** @ignore Panel visibility. */\n private readonly _open = signal(false);\n /** Read-only open state (for host bindings / conditional logic). */\n readonly visible = this._open.asReadonly();\n\n /** @ignore Element the overlay is anchored to. */\n protected readonly origin = signal<HTMLElement | null>(null);\n /** @ignore Effective side (updated from the CDK connection pair) — drives the arrow. */\n protected readonly side = signal<PopoverPosition>('bottom');\n /** @ignore Unique panel id, wired to the trigger via `aria-controls`. */\n protected readonly panelId = `ui-popover-${nextId++}`;\n\n /** @ignore Resolved trigger element (kept for focus restore + aria cleanup). */\n private targetEl: HTMLElement | null = null;\n\n constructor() {\n // A popover declared in an app shell outlives the routed view: dismiss it\n // rather than carrying it over to the next page.\n closeOnNavigation(() => this.hide());\n\n // A11y safeguard: an open dialog must have an accessible name.\n if (isDevMode()) {\n effect(() => {\n if (this._open() && !this.ariaLabel() && !this.ariaLabelledBy()) {\n console.warn(\n '[ui-popover] Popover has no accessible name: provide `ariaLabel` or `ariaLabelledBy`.',\n );\n }\n });\n }\n }\n\n // --- Public API ---------------------------------------------------------\n\n /**\n * Show the panel anchored to `target` (or the event's `currentTarget`).\n * @param event Browser event whose `currentTarget` is used as a fallback anchor.\n * @param target Explicit anchor element (kept anchored to it).\n */\n show(event?: Event, target?: PopoverTarget): void {\n const anchor = this.resolveTarget(target) ?? this.resolveEventTarget(event);\n if (!anchor) return;\n event?.stopPropagation();\n\n this.targetEl = anchor;\n this.origin.set(anchor);\n if (!this._open()) {\n this._open.set(true);\n this.applyTriggerAria(anchor);\n this.shown.emit();\n }\n if (this.focusOnShow()) this.queueFocus();\n }\n\n /** Hide the panel; returns focus to the trigger when focus was inside it. */\n hide(): void {\n if (!this._open()) return;\n const panelEl = this.panel()?.nativeElement;\n const active = this.doc.activeElement;\n const focusWasInside = !!panelEl && active instanceof Node && panelEl.contains(active);\n\n this._open.set(false);\n this.clearTriggerAria();\n if (focusWasInside) this.targetEl?.focus();\n this.hidden.emit();\n }\n\n /** Toggle the panel, anchoring it like {@link show} when it opens. */\n toggle(event?: Event, target?: PopoverTarget): void {\n this._open() ? this.hide() : this.show(event, target);\n }\n\n // --- Positioning ----------------------------------------------------------\n\n /** @ignore Ordered positions (preferred first, then fallbacks) for CDK auto-flip. */\n protected readonly positions = computed<ConnectedPosition[]>(() => {\n const top: ConnectedPosition = {\n originX: 'center',\n originY: 'top',\n overlayX: 'center',\n overlayY: 'bottom',\n offsetY: -ARROW_GAP,\n };\n const bottom: ConnectedPosition = {\n originX: 'center',\n originY: 'bottom',\n overlayX: 'center',\n overlayY: 'top',\n offsetY: ARROW_GAP,\n };\n const left: ConnectedPosition = {\n originX: 'start',\n originY: 'center',\n overlayX: 'end',\n overlayY: 'center',\n offsetX: -ARROW_GAP,\n };\n const right: ConnectedPosition = {\n originX: 'end',\n originY: 'center',\n overlayX: 'start',\n overlayY: 'center',\n offsetX: ARROW_GAP,\n };\n const order: Record<PopoverPosition, ConnectedPosition[]> = {\n top: [top, bottom, right, left],\n bottom: [bottom, top, right, left],\n left: [left, right, top, bottom],\n right: [right, left, top, bottom],\n };\n return order[this.position()];\n });\n\n /** @ignore */\n protected readonly panelClasses = computed(() => {\n const c = ['ui-popover', `_${this.side()}`];\n if (!this.showArrow()) c.push('_no-arrow');\n const extra = this.styleClass();\n if (extra) c.push(extra);\n return c.join(' ');\n });\n\n /** @ignore Map the active CDK connection pair back to the visual side (for the arrow). */\n protected onPositionChange(change: ConnectedOverlayPositionChange): void {\n // The trigger can be gone while the popover lives on (its page was\n // destroyed): re-positioning on a detached anchor measures 0×0 and would\n // snap the panel to the top-left corner.\n if (this.targetEl && !this.targetEl.isConnected) {\n this.hide();\n return;\n }\n const pair = change.connectionPair;\n if (pair.overlayY === 'bottom') this.side.set('top');\n else if (pair.overlayY === 'top' && pair.originY === 'bottom') this.side.set('bottom');\n else if (pair.overlayX === 'end') this.side.set('left');\n else if (pair.overlayX === 'start' && pair.originX === 'end') this.side.set('right');\n else this.side.set(this.position());\n }\n\n // --- Interactions ---------------------------------------------------------\n\n /** @ignore A click outside the panel closes it — unless it lands on the trigger,\n * whose own handler owns the toggle (avoids close-then-reopen races). */\n protected onOutsideClick(event: MouseEvent): void {\n if (!this.dismissable()) return;\n const target = event.target;\n if (target instanceof Node && this.targetEl?.contains(target)) return;\n this.hide();\n }\n\n /** @ignore */\n protected onEscape(event: Event): void {\n if (!this.closeOnEscape()) return;\n event.stopPropagation();\n this.hide();\n }\n\n // --- Internals ------------------------------------------------------------\n\n /** @ignore */\n private resolveTarget(target?: PopoverTarget): HTMLElement | null {\n if (!target) return null;\n return target instanceof ElementRef ? target.nativeElement : target;\n }\n\n /** @ignore */\n private resolveEventTarget(event?: Event): HTMLElement | null {\n const el = event?.currentTarget ?? event?.target;\n return el instanceof HTMLElement ? el : null;\n }\n\n /** @ignore Reflect the open relationship on the trigger. */\n private applyTriggerAria(el: HTMLElement): void {\n el.setAttribute('aria-expanded', 'true');\n el.setAttribute('aria-controls', this.panelId);\n }\n\n /** @ignore */\n private clearTriggerAria(): void {\n const el = this.targetEl;\n if (!el) return;\n el.setAttribute('aria-expanded', 'false');\n el.removeAttribute('aria-controls');\n }\n\n /** @ignore Focus the first focusable (or `[autofocus]`) once the overlay renders.\n * The overlay attaches after change detection: retry over macrotasks\n * (NOT rAF — it never fires in throttled/background tabs). */\n private queueFocus(attempts = 20): void {\n setTimeout(() => {\n const panelEl = this.panel()?.nativeElement;\n if (panelEl) this.focusFirst(panelEl);\n else if (attempts > 0) this.queueFocus(attempts - 1);\n });\n }\n\n /** @ignore */\n private focusFirst(panelEl: HTMLElement): void {\n const auto = panelEl.querySelector<HTMLElement>('[autofocus]');\n if (auto) {\n auto.focus();\n return;\n }\n const focusable = panelEl.querySelector<HTMLElement>(FOCUSABLE_SELECTOR);\n (focusable ?? panelEl).focus();\n }\n}\n","<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"origin()!\"\n [cdkConnectedOverlayOpen]=\"visible()\"\n [cdkConnectedOverlayPositions]=\"positions()\"\n [cdkConnectedOverlayHasBackdrop]=\"false\"\n [cdkConnectedOverlayPush]=\"false\"\n [cdkConnectedOverlayFlexibleDimensions]=\"false\"\n [cdkConnectedOverlayViewportMargin]=\"8\"\n (overlayOutsideClick)=\"onOutsideClick($event)\"\n (positionChange)=\"onPositionChange($event)\"\n (detach)=\"hide()\"\n>\n <div\n #panel\n [class]=\"panelClasses()\"\n [attr.id]=\"panelId\"\n [attr.role]=\"role()\"\n [attr.aria-modal]=\"modal() ? 'true' : null\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n tabindex=\"-1\"\n [cdkTrapFocus]=\"modal()\"\n [uiMotion]=\"'zoom'\"\n [motionDisabled]=\"!motion()\"\n #panelMotion=\"uiMotion\"\n motionOnInsert\n (keydown.escape)=\"onEscape($event)\"\n >\n @if (showArrow()) {\n <span class=\"ui-popover-arrow\" aria-hidden=\"true\"></span>\n }\n <div class=\"ui-popover-content\">\n <ng-content />\n </div>\n </div>\n</ng-template>\n","/*\n * Public API Surface of ui-kit/ui-popover\n */\n\nexport * from './lib/ui-popover';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;AA6BA;AACA,MAAM,SAAS,GAAG,CAAC;AAEnB;AACA,MAAM,kBAAkB,GAAG;IACzB,SAAS;IACT,wBAAwB;IACxB,uBAAuB;IACvB,wBAAwB;IACxB,0BAA0B;IAC1B,iCAAiC;AAClC,CAAA,CAAC,IAAI,CAAC,GAAG,CAAC;AAEX;AACA,IAAI,MAAM,GAAG,CAAC;AAEd;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BG;MAO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,gBAAA,EAAA,gBAAA,CAAA,EAAA,QAAA,EAAA,CAAA,UAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAIlC,SAAS,EAAA,UAAA,EAAA,CAAA;kBANrB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,YAAY,WACb,CAAC,aAAa,EAAE,UAAU,EAAE,QAAQ,CAAC,EAAA,QAAA,EAAA,6nCAAA,EAAA,MAAA,EAAA,CAAA,8kEAAA,CAAA,EAAA;qvCAoCc,OAAO,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEnHrE;;AAEG;;ACFH;;AAEG;;"}
@@ -119,10 +119,10 @@ class UiMotion {
119
119
  }, /* @ts-ignore */
120
120
  ...(ngDevMode ? [{ debugName: "_scale" }] : /* istanbul ignore next */ []));
121
121
  }
122
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiMotion, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
123
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.2", type: UiMotion, isStandalone: true, selector: "[uiMotion]", inputs: { preset: { classPropertyName: "preset", publicName: "uiMotion", isSignal: true, isRequired: true, transformFunction: null }, motionDuration: { classPropertyName: "motionDuration", publicName: "motionDuration", isSignal: true, isRequired: false, transformFunction: null }, motionDelay: { classPropertyName: "motionDelay", publicName: "motionDelay", isSignal: true, isRequired: false, transformFunction: null }, motionEasing: { classPropertyName: "motionEasing", publicName: "motionEasing", isSignal: true, isRequired: false, transformFunction: null }, motionEnterEasing: { classPropertyName: "motionEnterEasing", publicName: "motionEnterEasing", isSignal: true, isRequired: false, transformFunction: null }, motionLeaveEasing: { classPropertyName: "motionLeaveEasing", publicName: "motionLeaveEasing", isSignal: true, isRequired: false, transformFunction: null }, motionDistance: { classPropertyName: "motionDistance", publicName: "motionDistance", isSignal: true, isRequired: false, transformFunction: null }, motionScale: { classPropertyName: "motionScale", publicName: "motionScale", isSignal: true, isRequired: false, transformFunction: null }, motionDisabled: { classPropertyName: "motionDisabled", publicName: "motionDisabled", isSignal: true, isRequired: false, transformFunction: null }, motionOnInsert: { classPropertyName: "motionOnInsert", publicName: "motionOnInsert", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_insertClass()", "style.--ui-motion-duration": "_duration()", "style.--ui-motion-delay": "_delay()", "style.--ui-motion-easing-enter": "_enterEasing()", "style.--ui-motion-easing-leave": "_leaveEasing()", "style.--ui-motion-distance": "_distance()", "style.--ui-motion-scale": "_scale()" } }, exportAs: ["uiMotion"], ngImport: i0 }); }
122
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiMotion, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
123
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.5", type: UiMotion, isStandalone: true, selector: "[uiMotion]", inputs: { preset: { classPropertyName: "preset", publicName: "uiMotion", isSignal: true, isRequired: true, transformFunction: null }, motionDuration: { classPropertyName: "motionDuration", publicName: "motionDuration", isSignal: true, isRequired: false, transformFunction: null }, motionDelay: { classPropertyName: "motionDelay", publicName: "motionDelay", isSignal: true, isRequired: false, transformFunction: null }, motionEasing: { classPropertyName: "motionEasing", publicName: "motionEasing", isSignal: true, isRequired: false, transformFunction: null }, motionEnterEasing: { classPropertyName: "motionEnterEasing", publicName: "motionEnterEasing", isSignal: true, isRequired: false, transformFunction: null }, motionLeaveEasing: { classPropertyName: "motionLeaveEasing", publicName: "motionLeaveEasing", isSignal: true, isRequired: false, transformFunction: null }, motionDistance: { classPropertyName: "motionDistance", publicName: "motionDistance", isSignal: true, isRequired: false, transformFunction: null }, motionScale: { classPropertyName: "motionScale", publicName: "motionScale", isSignal: true, isRequired: false, transformFunction: null }, motionDisabled: { classPropertyName: "motionDisabled", publicName: "motionDisabled", isSignal: true, isRequired: false, transformFunction: null }, motionOnInsert: { classPropertyName: "motionOnInsert", publicName: "motionOnInsert", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_insertClass()", "style.--ui-motion-duration": "_duration()", "style.--ui-motion-delay": "_delay()", "style.--ui-motion-easing-enter": "_enterEasing()", "style.--ui-motion-easing-leave": "_leaveEasing()", "style.--ui-motion-distance": "_distance()", "style.--ui-motion-scale": "_scale()" } }, exportAs: ["uiMotion"], ngImport: i0 }); }
124
124
  }
125
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiMotion, decorators: [{
125
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiMotion, decorators: [{
126
126
  type: Directive,
127
127
  args: [{
128
128
  selector: '[uiMotion]',