@progressio_resources/gravity-design-system 3.4.8 → 3.4.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/esm2022/lib/components/gravity-currency-display-v2/gravity-currency-display-v2.component.mjs +3 -3
- package/esm2022/lib/components/gravity-dropdown-list-display/gravity-dropdown-list-display.component.mjs +43 -18
- package/esm2022/lib/services/gravity-dropdown-manager.service.mjs +1 -1
- package/fesm2022/progressio_resources-gravity-design-system.mjs +37 -13
- package/fesm2022/progressio_resources-gravity-design-system.mjs.map +1 -1
- package/lib/components/gravity-currency-display-v2/gravity-currency-display-v2.component.d.ts +1 -1
- package/lib/components/gravity-dropdown-list-display/gravity-dropdown-list-display.component.d.ts +10 -3
- package/lib/services/gravity-dropdown-manager.service.d.ts +5 -2
- package/package.json +1 -1
package/lib/components/gravity-currency-display-v2/gravity-currency-display-v2.component.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export declare class GravityCurrencyDisplayV2Component {
|
|
|
4
4
|
type: 'full' | 'short-hrz' | 'short-vrt' | 'fiat-short';
|
|
5
5
|
currency: {
|
|
6
6
|
currency_name?: string;
|
|
7
|
-
currency_id
|
|
7
|
+
currency_id?: number;
|
|
8
8
|
currency_iso: string;
|
|
9
9
|
network_id?: number;
|
|
10
10
|
network_iso?: string;
|
package/lib/components/gravity-dropdown-list-display/gravity-dropdown-list-display.component.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { DisplayCurrencyItems } from "./display-currency-items";
|
|
2
2
|
import { FilterByPipe } from "../gravity-dropdown-list/filter-by.pipe";
|
|
3
|
-
import { ElementRef, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
3
|
+
import { ElementRef, EventEmitter, OnChanges, SimpleChanges, OnInit, OnDestroy } from '@angular/core';
|
|
4
|
+
import { GravityDropdownManagerService } from "../../services/gravity-dropdown-manager.service";
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class GravityDropdownListDisplayComponent implements OnChanges {
|
|
6
|
+
export declare class GravityDropdownListDisplayComponent implements OnInit, OnChanges, OnDestroy {
|
|
7
|
+
private dropdownService;
|
|
6
8
|
private readonly filterByPipe;
|
|
7
9
|
private _eref;
|
|
8
10
|
selectedItemsResponse: EventEmitter<any[] | any>;
|
|
@@ -23,11 +25,16 @@ export declare class GravityDropdownListDisplayComponent implements OnChanges {
|
|
|
23
25
|
availableOptions: any[];
|
|
24
26
|
dropdownOpened: boolean;
|
|
25
27
|
selectedItem: DisplayCurrencyItems;
|
|
26
|
-
|
|
28
|
+
private dropdownManagerSubscription;
|
|
29
|
+
constructor(dropdownService: GravityDropdownManagerService, filterByPipe: FilterByPipe, _eref: ElementRef);
|
|
30
|
+
ngOnInit(): void;
|
|
27
31
|
ngOnChanges(changes: SimpleChanges): void;
|
|
32
|
+
ngOnDestroy(): void;
|
|
28
33
|
private loadItems;
|
|
29
34
|
getStatus(): string;
|
|
30
35
|
toggleDropdown(): void;
|
|
36
|
+
openDropdown(): void;
|
|
37
|
+
closeDropdown(): void;
|
|
31
38
|
selectItem(itemToAdd: any): void;
|
|
32
39
|
checkIfSelected(itemToFind: any): boolean;
|
|
33
40
|
filterItems(): void;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { GravityDropdownListComponent } from "../components/gravity-dropdown-list/gravity-dropdown-list.component";
|
|
2
|
+
import { GravityDropdownListDisplayComponent } from "../components/gravity-dropdown-list-display/gravity-dropdown-list-display.component";
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
type DropdownComponent = GravityDropdownListComponent | GravityDropdownListDisplayComponent;
|
|
3
5
|
export declare class GravityDropdownManagerService {
|
|
4
6
|
private dropdownOpenedSource;
|
|
5
|
-
dropdownOpened$: import("rxjs").Observable<
|
|
6
|
-
notifyDropdownOpened(dropdown:
|
|
7
|
+
dropdownOpened$: import("rxjs").Observable<DropdownComponent>;
|
|
8
|
+
notifyDropdownOpened(dropdown: DropdownComponent): void;
|
|
7
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<GravityDropdownManagerService, never>;
|
|
8
10
|
static ɵprov: i0.ɵɵInjectableDeclaration<GravityDropdownManagerService>;
|
|
9
11
|
}
|
|
12
|
+
export {};
|
package/package.json
CHANGED