@progressio_resources/gravity-design-system 3.4.7 → 3.4.8
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-attach-file/gravity-attach-file.component.mjs +1 -1
- package/esm2022/lib/components/gravity-button/gravity-button.component.mjs +7 -7
- package/esm2022/lib/components/gravity-calendar-next/components/day-calendar/day-calendar.component.mjs +1 -1
- package/esm2022/lib/components/gravity-calendar-next/components/month-calendar/month-calendar.component.mjs +1 -1
- package/esm2022/lib/components/gravity-calendar-next/components/year-calendar/year-calendar.component.mjs +1 -1
- package/esm2022/lib/components/gravity-dropdown-list/gravity-dropdown-list.component.mjs +46 -36
- package/esm2022/lib/components/gravity-modal/gravity-modal.component.mjs +3 -3
- package/esm2022/lib/components/gravity-modal/gravity-modal.model.mjs +1 -1
- package/esm2022/lib/components/gravity-table/gravity-table.component.mjs +1 -1
- package/esm2022/lib/services/gravity-dropdown-manager.service.mjs +21 -0
- package/fesm2022/progressio_resources-gravity-design-system.mjs +77 -49
- package/fesm2022/progressio_resources-gravity-design-system.mjs.map +1 -1
- package/lib/components/gravity-button/gravity-button.component.d.ts +4 -4
- package/lib/components/gravity-dropdown-list/gravity-dropdown-list.component.d.ts +11 -6
- package/lib/components/gravity-modal/gravity-modal.model.d.ts +2 -1
- package/lib/services/gravity-dropdown-manager.service.d.ts +9 -0
- package/package.json +1 -1
|
@@ -2,16 +2,16 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
export declare class GravityButtonComponent {
|
|
3
3
|
cypressTag: string;
|
|
4
4
|
disabled: boolean;
|
|
5
|
-
customState: 'active' | 'hover' | 'pressed' | null;
|
|
6
|
-
iconPosition: 'left' | 'right';
|
|
7
5
|
iconName: string | undefined;
|
|
8
6
|
isLoading: boolean;
|
|
9
7
|
showContent: boolean;
|
|
10
8
|
size: 'sm' | 'md' | 'lg';
|
|
11
|
-
|
|
9
|
+
iconPosition: 'left' | 'right';
|
|
10
|
+
customState: 'active' | 'hover' | 'pressed' | null;
|
|
11
|
+
type: 'primary' | 'secondary' | 'tertiary' | 'positive' | 'negative';
|
|
12
12
|
isNewIcon(iconName: string): boolean;
|
|
13
13
|
getSizeClass(size: string): "sm" | "md";
|
|
14
14
|
getIconSizeClass(size: string): "md-16" | "sm-12";
|
|
15
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<GravityButtonComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GravityButtonComponent, "gravity-button", never, { "cypressTag": { "alias": "cypressTag"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GravityButtonComponent, "gravity-button", never, { "cypressTag": { "alias": "cypressTag"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "iconName": { "alias": "iconName"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "showContent": { "alias": "showContent"; "required": false; }; "size": { "alias": "size"; "required": false; }; "iconPosition": { "alias": "iconPosition"; "required": false; }; "customState": { "alias": "customState"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
17
17
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ElementRef, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
1
|
+
import { GravityDropdownManagerService } from "../../services/gravity-dropdown-manager.service";
|
|
2
|
+
import { ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class GravityDropdownListComponent implements OnChanges {
|
|
5
|
-
private
|
|
4
|
+
export declare class GravityDropdownListComponent implements OnChanges, OnInit, OnDestroy {
|
|
5
|
+
private dropdownService;
|
|
6
6
|
private _eref;
|
|
7
7
|
label: string;
|
|
8
8
|
iconLeft: string;
|
|
@@ -44,20 +44,25 @@ export declare class GravityDropdownListComponent implements OnChanges {
|
|
|
44
44
|
iso: string;
|
|
45
45
|
id: number;
|
|
46
46
|
};
|
|
47
|
-
|
|
47
|
+
private dropdownManagerSubscription;
|
|
48
|
+
constructor(dropdownService: GravityDropdownManagerService, _eref: ElementRef);
|
|
49
|
+
ngOnInit(): void;
|
|
48
50
|
ngOnChanges(changes: SimpleChanges): void;
|
|
51
|
+
ngOnDestroy(): void;
|
|
49
52
|
getStatus(): string;
|
|
50
53
|
isIconLeftNew(): boolean;
|
|
51
54
|
toggleDropdown(): void;
|
|
55
|
+
private emitSelection;
|
|
52
56
|
selectItem(itemToAdd: any): void;
|
|
53
57
|
isPartiallySelected(item: any): boolean;
|
|
54
58
|
checkIfSelected(item?: any): boolean;
|
|
55
59
|
selectAllItems(event: MouseEvent): void;
|
|
56
60
|
private flattenItems;
|
|
57
61
|
clearSelection(): void;
|
|
58
|
-
private openParents;
|
|
59
62
|
filterItems(): void;
|
|
60
63
|
onDocumentClick($event: PointerEvent): void;
|
|
64
|
+
openDropdown(): void;
|
|
65
|
+
closeDropdown(): void;
|
|
61
66
|
getCurrencyIconSize(size: string): "sm-16" | "lg-32" | "xl-40" | "md-24";
|
|
62
67
|
getSpacingClass(size: string): "" | "gravity-margin-right-xxs" | "gravity-margin-right-xs" | "gravity-margin-right-sm" | "gravity-margin-right-md";
|
|
63
68
|
getMultilevelSpacingClass(size: string): "" | "gravity-margin-right-md" | "gravity-margin-right-lg";
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export interface ModalButtonConfig {
|
|
2
2
|
text?: string;
|
|
3
3
|
icon?: string;
|
|
4
|
+
disabled?: boolean;
|
|
4
5
|
callback?: () => void;
|
|
5
6
|
iconPosition?: 'right' | 'left';
|
|
6
|
-
type?: 'primary' | 'secondary' | 'tertiary' | 'positive' | 'negative'
|
|
7
|
+
type?: 'primary' | 'secondary' | 'tertiary' | 'positive' | 'negative';
|
|
7
8
|
}
|
|
8
9
|
export interface ModalLinkConfig {
|
|
9
10
|
url?: string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { GravityDropdownListComponent } from "../components/gravity-dropdown-list/gravity-dropdown-list.component";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class GravityDropdownManagerService {
|
|
4
|
+
private dropdownOpenedSource;
|
|
5
|
+
dropdownOpened$: import("rxjs").Observable<GravityDropdownListComponent>;
|
|
6
|
+
notifyDropdownOpened(dropdown: GravityDropdownListComponent): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GravityDropdownManagerService, never>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GravityDropdownManagerService>;
|
|
9
|
+
}
|
package/package.json
CHANGED