@pecb-ui/components 1.1.11 → 1.1.12

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/index.d.ts CHANGED
@@ -975,6 +975,7 @@ declare class DropdownComponent implements ControlValueAccessor {
975
975
  private readonly overlay;
976
976
  readonly scrollStrategy: ScrollStrategy;
977
977
  searchInput?: ElementRef<HTMLInputElement>;
978
+ triggerEl?: ElementRef<HTMLElement>;
978
979
  id: _angular_core.InputSignal<string>;
979
980
  label: _angular_core.InputSignal<string | undefined>;
980
981
  /** Placeholder shown in the trigger when no option is selected. */
@@ -1000,6 +1001,13 @@ declare class DropdownComponent implements ControlValueAccessor {
1000
1001
  searchQuery: _angular_core.WritableSignal<string>;
1001
1002
  selectedValues: _angular_core.WritableSignal<unknown[]>;
1002
1003
  focusedIndex: _angular_core.WritableSignal<number>;
1004
+ /**
1005
+ * Width the overlay panel is pinned to, so it lines up edge-to-edge with the
1006
+ * trigger. Measured with `getBoundingClientRect()` rather than `offsetWidth`
1007
+ * because the latter rounds to whole pixels and leaves the panel a hair off in
1008
+ * fluid layouts.
1009
+ */
1010
+ triggerWidth: _angular_core.WritableSignal<number>;
1003
1011
  /** Overlay positions: prefer below the trigger, flip above when there's no room. */
1004
1012
  overlayPositions: ConnectedPosition[];
1005
1013
  private onChange;
@@ -1009,6 +1017,9 @@ declare class DropdownComponent implements ControlValueAccessor {
1009
1017
  get filteredOptions(): DropdownOption[];
1010
1018
  get displayText(): string;
1011
1019
  clearAll(event: MouseEvent): void;
1020
+ /** Re-measure the trigger so a resize doesn't leave an open panel misaligned. */
1021
+ syncTriggerWidth(): void;
1022
+ private measureTrigger;
1012
1023
  toggleDropdown(): void;
1013
1024
  selectOption(option: DropdownOption): void;
1014
1025
  isSelected(option: DropdownOption): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pecb-ui/components",
3
- "version": "1.1.11",
3
+ "version": "1.1.12",
4
4
  "description": "Professional Angular UI Components Library with TypeScript and SCSS by PECB",
5
5
  "author": "PECB",
6
6
  "license": "MIT",