ps-helix 6.0.1 → 6.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/fesm2022/ps-helix.mjs +221 -107
- package/fesm2022/ps-helix.mjs.map +1 -1
- package/package.json +1 -1
- package/types/ps-helix.d.ts +25 -1
package/package.json
CHANGED
package/types/ps-helix.d.ts
CHANGED
|
@@ -796,7 +796,11 @@ declare class PshDropdownComponent<T = string> {
|
|
|
796
796
|
private elementRef;
|
|
797
797
|
private readonly isBrowser;
|
|
798
798
|
private readonly overlayPosition;
|
|
799
|
-
private readonly
|
|
799
|
+
private readonly portal;
|
|
800
|
+
private readonly viewContainer;
|
|
801
|
+
private readonly menuTpl;
|
|
802
|
+
private portalRef;
|
|
803
|
+
private readonly repositionHandler;
|
|
800
804
|
appearance: _angular_core.InputSignal<DropdownAppearance>;
|
|
801
805
|
variant: _angular_core.InputSignal<DropdownVariant>;
|
|
802
806
|
size: _angular_core.InputSignal<DropdownSize>;
|
|
@@ -822,6 +826,8 @@ declare class PshDropdownComponent<T = string> {
|
|
|
822
826
|
state: _angular_core.Signal<string>;
|
|
823
827
|
private getState;
|
|
824
828
|
constructor();
|
|
829
|
+
private openPanel;
|
|
830
|
+
private closePanel;
|
|
825
831
|
private reposition;
|
|
826
832
|
toggleDropdown(): void;
|
|
827
833
|
selectItem(item: DropdownItem<T>): void;
|
|
@@ -873,6 +879,12 @@ declare class PshInputComponent implements ControlValueAccessor, FormValueContro
|
|
|
873
879
|
private readonly elementRef;
|
|
874
880
|
private readonly cdr;
|
|
875
881
|
private readonly destroyRef;
|
|
882
|
+
private readonly portal;
|
|
883
|
+
private readonly viewContainer;
|
|
884
|
+
private readonly overlayPosition;
|
|
885
|
+
private readonly suggestionsTpl;
|
|
886
|
+
private portalRef;
|
|
887
|
+
private readonly repositionHandler;
|
|
876
888
|
private static nextId;
|
|
877
889
|
readonly inputId: string;
|
|
878
890
|
readonly value: _angular_core.ModelSignal<string>;
|
|
@@ -916,6 +928,11 @@ declare class PshInputComponent implements ControlValueAccessor, FormValueContro
|
|
|
916
928
|
state: _angular_core.Signal<string>;
|
|
917
929
|
private getState;
|
|
918
930
|
constructor();
|
|
931
|
+
/** Attaches / detaches / repositions the teleported suggestions panel to match visibility. */
|
|
932
|
+
private syncPanel;
|
|
933
|
+
private openPanel;
|
|
934
|
+
private closePanel;
|
|
935
|
+
private reposition;
|
|
919
936
|
private onChange;
|
|
920
937
|
private onTouched;
|
|
921
938
|
writeValue(value: unknown): void;
|
|
@@ -2868,6 +2885,12 @@ interface PshPortalRef {
|
|
|
2868
2885
|
* viewport space so the panel never overflows the screen.
|
|
2869
2886
|
*/
|
|
2870
2887
|
position(anchor: HTMLElement, side: 'top' | 'bottom', gap: number): void;
|
|
2888
|
+
/**
|
|
2889
|
+
* Positions the panel as `fixed` from `anchor`'s viewport rect for a
|
|
2890
|
+
* `<side>-<align>` placement (e.g. `bottom-start`, `top-end`). The panel keeps
|
|
2891
|
+
* its content width; the aligned edge (start/end) is anchored to the trigger.
|
|
2892
|
+
*/
|
|
2893
|
+
positionByPlacement(anchor: HTMLElement, placement: string, gap: number): void;
|
|
2871
2894
|
/** Destroys the embedded view and removes the panel from the overlay layer. */
|
|
2872
2895
|
detach(): void;
|
|
2873
2896
|
}
|
|
@@ -2890,6 +2913,7 @@ declare class PshPortalService {
|
|
|
2890
2913
|
/** Teleports `tpl` into the overlay layer and returns a handle to control it. */
|
|
2891
2914
|
attach(tpl: TemplateRef<unknown>, vcr: ViewContainerRef): PshPortalRef;
|
|
2892
2915
|
private position;
|
|
2916
|
+
private positionByPlacement;
|
|
2893
2917
|
private detach;
|
|
2894
2918
|
private ensureLayer;
|
|
2895
2919
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PshPortalService, never>;
|