@progressio_resources/gravity-design-system 4.0.3 → 4.0.5

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@progressio_resources/gravity-design-system",
3
3
  "description": "Gravity Design System",
4
- "version": "4.0.3",
4
+ "version": "4.0.5",
5
5
  "license": "SEE LICENSE IN LIBRARY-LICENSE",
6
6
  "peerDependencies": {
7
7
  "@angular/common": "^21.1.4",
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { OnChanges, TemplateRef, EventEmitter, ElementRef, ComponentFactoryResolver, ApplicationRef, Injector, SimpleChanges, ModuleWithProviders, AfterViewInit, OnInit, OnDestroy, PipeTransform, Input, Renderer2, ChangeDetectorRef, ViewContainerRef, QueryList } from '@angular/core';
2
+ import { OnChanges, TemplateRef, EventEmitter, ElementRef, ComponentFactoryResolver, ApplicationRef, Injector, SimpleChanges, ModuleWithProviders, AfterViewInit, OnInit, OnDestroy, PipeTransform, Input, ChangeDetectorRef, Renderer2, ViewContainerRef, QueryList } from '@angular/core';
3
3
  import * as i1$1 from 'angular-svg-icon';
4
4
  import { SvgIconRegistryService } from 'angular-svg-icon';
5
5
  import * as i2 from 'angular-svg-icon-preloader';
@@ -729,9 +729,10 @@ declare class GravityDropdownManagerService {
729
729
  static ɵprov: i0.ɵɵInjectableDeclaration<GravityDropdownManagerService>;
730
730
  }
731
731
 
732
- declare class GravityDropdownListComponent implements OnChanges, OnInit, OnDestroy {
732
+ declare class GravityDropdownListComponent implements OnChanges, OnInit, OnDestroy, AfterViewInit {
733
733
  private dropdownService;
734
734
  private _eref;
735
+ private cdr;
735
736
  label: string;
736
737
  iconLeft: string;
737
738
  items: Array<any>;
@@ -760,11 +761,14 @@ declare class GravityDropdownListComponent implements OnChanges, OnInit, OnDestr
760
761
  dropdownStateChange: EventEmitter<boolean>;
761
762
  selectedItemsResponse: EventEmitter<any[] | any>;
762
763
  set watch(searchInput: ElementRef<HTMLInputElement>);
764
+ searchInput: Input;
765
+ inputField: ElementRef<HTMLDivElement>;
763
766
  containerRef: ElementRef<HTMLDivElement>;
764
767
  searchText: string;
765
768
  selectedItems: any[];
766
769
  isoConfig: string;
767
770
  nameConfig: string;
771
+ maxNetworkPills: number;
768
772
  availableOptions: any[];
769
773
  dropdownOpened: boolean;
770
774
  openChildrenMap: Map<any, boolean>;
@@ -773,10 +777,17 @@ declare class GravityDropdownListComponent implements OnChanges, OnInit, OnDestr
773
777
  iso: string;
774
778
  id: number;
775
779
  };
780
+ networkPillsDisplay: {
781
+ items: any[];
782
+ hasMore: boolean;
783
+ };
784
+ private readonly PILL_WIDTH_PX;
785
+ private readonly AVG_CHAR_WIDTH_PX;
786
+ private inputFieldResizeObserver;
776
787
  private dropdownManagerSubscription;
777
- searchInput: Input;
778
- constructor(dropdownService: GravityDropdownManagerService, _eref: ElementRef);
788
+ constructor(dropdownService: GravityDropdownManagerService, _eref: ElementRef, cdr: ChangeDetectorRef);
779
789
  ngOnInit(): void;
790
+ ngAfterViewInit(): void;
780
791
  ngOnChanges(changes: SimpleChanges): void;
781
792
  ngOnDestroy(): void;
782
793
  getStatus(): string;
@@ -804,10 +815,8 @@ declare class GravityDropdownListComponent implements OnChanges, OnInit, OnDestr
804
815
  label: string;
805
816
  }): string;
806
817
  inputDisplayValue(): string;
807
- getDisplayValueNetwork(): {
808
- items: any[];
809
- hasMore: boolean;
810
- };
818
+ private updateMaxNetworkPills;
819
+ private updateNetworkPillsDisplay;
811
820
  private truncate;
812
821
  clearSearch(): void;
813
822
  preventTypingWhenLocked(event: KeyboardEvent, input: HTMLInputElement): void;