@tedi-design-system/angular 9.0.0-rc.7 → 9.0.0-rc.9

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tedi-design-system/angular",
3
- "version": "9.0.0-rc.7",
3
+ "version": "9.0.0-rc.9",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "community.mjs",
package/tedi/index.d.ts CHANGED
@@ -3729,7 +3729,7 @@ declare function calculateArrowOffset(placement: OverlaySide, triggerEl: HTMLEle
3729
3729
 
3730
3730
  declare class PopoverTriggerDirective {
3731
3731
  /**
3732
- * Should add underline class to trigger element?
3732
+ * Underline the trigger element.
3733
3733
  * @default false
3734
3734
  */
3735
3735
  readonly underline: _angular_core.InputSignal<boolean>;
@@ -3757,38 +3757,47 @@ declare class PopoverComponent {
3757
3757
  */
3758
3758
  readonly position: _angular_core.InputSignal<OverlayPosition>;
3759
3759
  /**
3760
- * Should position flip to opposite direction when overflowing screen?
3760
+ * Flip to the opposite side when the popover would overflow the screen.
3761
3761
  * @default false
3762
3762
  */
3763
3763
  readonly preventOverflow: _angular_core.InputSignal<boolean>;
3764
3764
  /**
3765
- * Is dismissible by clicking outside of content?
3765
+ * Close the popover when clicking outside its content.
3766
3766
  * @default true
3767
3767
  */
3768
3768
  readonly dismissible: _angular_core.InputSignal<boolean>;
3769
3769
  /**
3770
- * Does popover content hide on scroll?
3770
+ * Close the popover when the page scrolls.
3771
3771
  * @default false
3772
3772
  */
3773
3773
  readonly hideOnScroll: _angular_core.InputSignal<boolean>;
3774
3774
  /**
3775
- * Does popover have illustrative border on the arrow side?
3775
+ * Show an illustrative border on the arrow side.
3776
3776
  * @default false
3777
3777
  */
3778
3778
  readonly withBorder: _angular_core.InputSignal<boolean>;
3779
3779
  /**
3780
- * Should show arrow?
3780
+ * Show the arrow pointing to the trigger.
3781
+ * @default true
3781
3782
  */
3782
3783
  readonly withArrow: _angular_core.InputSignal<boolean>;
3783
3784
  /**
3784
- * Lock scrolling on rest of the page?
3785
+ * Lock scrolling on the rest of the page while the popover is open.
3785
3786
  * @default false
3786
3787
  */
3787
3788
  readonly lockScroll: _angular_core.InputSignal<boolean>;
3788
- /** Delay time (in ms) for closing popover when not hovering trigger or content.
3789
+ /**
3790
+ * Delay in ms before the popover closes when neither the trigger nor the
3791
+ * content is hovered.
3789
3792
  * @default 100
3790
3793
  */
3791
3794
  readonly timeoutDelay: _angular_core.InputSignal<number>;
3795
+ /**
3796
+ * Gap in px between the trigger and the popover. The arrow's gap is added on
3797
+ * top when `withArrow` is `true`.
3798
+ * @default 8
3799
+ */
3800
+ readonly offset: _angular_core.InputSignal<number>;
3792
3801
  private readonly document;
3793
3802
  private readonly renderer;
3794
3803
  private readonly connectedOverlay;
@@ -3802,7 +3811,16 @@ declare class PopoverComponent {
3802
3811
  readonly arrowTop: _angular_core.WritableSignal<number | null>;
3803
3812
  readonly overlayOrigin: _angular_core.Signal<_angular_cdk_overlay.CdkOverlayOrigin>;
3804
3813
  private readonly arrowOffset;
3805
- readonly overlayPositions: _angular_core.Signal<_angular_cdk_overlay.ConnectedPosition[]>;
3814
+ readonly overlayPositions: _angular_core.Signal<{
3815
+ offsetX: number | undefined;
3816
+ offsetY: number | undefined;
3817
+ originX: "start" | "center" | "end";
3818
+ originY: "top" | "center" | "bottom";
3819
+ overlayX: "start" | "center" | "end";
3820
+ overlayY: "top" | "center" | "bottom";
3821
+ weight?: number;
3822
+ panelClass?: string | string[];
3823
+ }[]>;
3806
3824
  readonly panelClasses: _angular_core.Signal<string>;
3807
3825
  readonly ariaLabelledBy: _angular_core.Signal<string>;
3808
3826
  hideTimeout?: ReturnType<typeof setTimeout>;
@@ -3844,7 +3862,7 @@ declare class PopoverComponent {
3844
3862
  private isInsideOverlay;
3845
3863
  private handleClosePopoverEvent;
3846
3864
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<PopoverComponent, never>;
3847
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<PopoverComponent, "tedi-popover", never, { "position": { "alias": "position"; "required": false; "isSignal": true; }; "preventOverflow": { "alias": "preventOverflow"; "required": false; "isSignal": true; }; "dismissible": { "alias": "dismissible"; "required": false; "isSignal": true; }; "hideOnScroll": { "alias": "hideOnScroll"; "required": false; "isSignal": true; }; "withBorder": { "alias": "withBorder"; "required": false; "isSignal": true; }; "withArrow": { "alias": "withArrow"; "required": false; "isSignal": true; }; "lockScroll": { "alias": "lockScroll"; "required": false; "isSignal": true; }; "timeoutDelay": { "alias": "timeoutDelay"; "required": false; "isSignal": true; }; }, {}, ["popoverTrigger", "popoverContent"], ["[tedi-popover-trigger]", "tedi-popover-content"], true, never>;
3865
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<PopoverComponent, "tedi-popover", never, { "position": { "alias": "position"; "required": false; "isSignal": true; }; "preventOverflow": { "alias": "preventOverflow"; "required": false; "isSignal": true; }; "dismissible": { "alias": "dismissible"; "required": false; "isSignal": true; }; "hideOnScroll": { "alias": "hideOnScroll"; "required": false; "isSignal": true; }; "withBorder": { "alias": "withBorder"; "required": false; "isSignal": true; }; "withArrow": { "alias": "withArrow"; "required": false; "isSignal": true; }; "lockScroll": { "alias": "lockScroll"; "required": false; "isSignal": true; }; "timeoutDelay": { "alias": "timeoutDelay"; "required": false; "isSignal": true; }; "offset": { "alias": "offset"; "required": false; "isSignal": true; }; }, {}, ["popoverTrigger", "popoverContent"], ["[tedi-popover-trigger]", "tedi-popover-content"], true, never>;
3848
3866
  }
3849
3867
 
3850
3868
  type PopoverWidthPreset = "none" | "small" | "medium" | "large";
@@ -3862,11 +3880,11 @@ declare class PopoverContentComponent {
3862
3880
  */
3863
3881
  maxWidth: _angular_core.InputSignal<PopoverWidth>;
3864
3882
  /**
3865
- * Heading title of the content
3883
+ * Title shown at the top of the content.
3866
3884
  */
3867
3885
  title: _angular_core.InputSignal<string>;
3868
3886
  /**
3869
- * Should content show close button?
3887
+ * Show a close button in the content.
3870
3888
  * @default false
3871
3889
  */
3872
3890
  showClose: _angular_core.InputSignal<boolean>;
@@ -11118,6 +11136,11 @@ declare class ModalContentComponent {
11118
11136
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<ModalContentComponent, "tedi-modal-content", never, {}, {}, never, ["*"], true, [{ directive: typeof i1.CdkScrollable; inputs: {}; outputs: {}; }]>;
11119
11137
  }
11120
11138
 
11139
+ /**
11140
+ * Right-aligns its content. Add `tedi-modal-footer-start` to each element that
11141
+ * should sit on the left instead. Mark the elements themselves, not a wrapper,
11142
+ * so they keep the footer's gap.
11143
+ */
11121
11144
  declare class ModalFooterComponent {
11122
11145
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ModalFooterComponent, never>;
11123
11146
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<ModalFooterComponent, "tedi-modal-footer", never, {}, {}, never, ["*"], true, never>;