@ifsworld/granite-components 11.1.2 → 11.3.0
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/index.mjs +12 -1
- package/esm2022/lib/card-list/card/card-avatar.component.mjs +11 -0
- package/esm2022/lib/card-list/card/card-content/card-actions.component.mjs +11 -0
- package/esm2022/lib/card-list/card/card-content/card-body.component.mjs +11 -0
- package/esm2022/lib/card-list/card/card-content/card-content.component.mjs +11 -0
- package/esm2022/lib/card-list/card/card-content/card-footer.component.mjs +11 -0
- package/esm2022/lib/card-list/card/card-content/card-header-subtitle.component.mjs +11 -0
- package/esm2022/lib/card-list/card/card-content/card-header-title.component.mjs +11 -0
- package/esm2022/lib/card-list/card/card-content/card-header.component.mjs +11 -0
- package/esm2022/lib/card-list/card/card.component.mjs +11 -0
- package/esm2022/lib/card-list/card-list.component.mjs +23 -0
- package/esm2022/lib/card-list/card-list.module.mjs +67 -0
- package/esm2022/lib/menu/menu-base.mjs +8 -2
- package/esm2022/lib/menu/menu-panel.mjs +1 -1
- package/esm2022/lib/menu/menu-trigger-for.directive.mjs +11 -1
- package/fesm2022/ifsworld-granite-components.mjs +174 -2
- package/fesm2022/ifsworld-granite-components.mjs.map +1 -1
- package/index.d.ts +11 -0
- package/lib/card-list/card/card-avatar.component.d.ts +5 -0
- package/lib/card-list/card/card-content/card-actions.component.d.ts +5 -0
- package/lib/card-list/card/card-content/card-body.component.d.ts +5 -0
- package/lib/card-list/card/card-content/card-content.component.d.ts +5 -0
- package/lib/card-list/card/card-content/card-footer.component.d.ts +5 -0
- package/lib/card-list/card/card-content/card-header-subtitle.component.d.ts +5 -0
- package/lib/card-list/card/card-content/card-header-title.component.d.ts +5 -0
- package/lib/card-list/card/card-content/card-header.component.d.ts +5 -0
- package/lib/card-list/card/card.component.d.ts +5 -0
- package/lib/card-list/card-list.component.d.ts +9 -0
- package/lib/card-list/card-list.module.d.ts +17 -0
- package/lib/menu/menu-base.d.ts +6 -2
- package/lib/menu/menu-panel.d.ts +2 -0
- package/lib/menu/menu-trigger-for.directive.d.ts +2 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -49,3 +49,14 @@ export * from './lib/core/common-behaviors/disabled';
|
|
|
49
49
|
export * from './lib/core/pipes/pure-pipes.module';
|
|
50
50
|
export * from './lib/core/pipes/title.pipe';
|
|
51
51
|
export * from './lib/core/types';
|
|
52
|
+
export * from './lib/card-list/card-list.module';
|
|
53
|
+
export * from './lib/card-list/card-list.component';
|
|
54
|
+
export * from './lib/card-list/card/card.component';
|
|
55
|
+
export * from './lib/card-list/card/card-content/card-content.component';
|
|
56
|
+
export * from './lib/card-list/card/card-content/card-actions.component';
|
|
57
|
+
export * from './lib/card-list/card/card-content/card-body.component';
|
|
58
|
+
export * from './lib/card-list/card/card-content/card-header.component';
|
|
59
|
+
export * from './lib/card-list/card/card-avatar.component';
|
|
60
|
+
export * from './lib/card-list/card/card-content/card-header-title.component';
|
|
61
|
+
export * from './lib/card-list/card/card-content/card-header-subtitle.component';
|
|
62
|
+
export * from './lib/card-list/card/card-content/card-footer.component';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class GraniteCardAvatarComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GraniteCardAvatarComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GraniteCardAvatarComponent, "granite-card-avatar", never, {}, {}, never, ["*"], false, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class GraniteCardActionsComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GraniteCardActionsComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GraniteCardActionsComponent, "granite-card-actions", never, {}, {}, never, ["*"], false, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class GraniteCardBodyComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GraniteCardBodyComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GraniteCardBodyComponent, "granite-card-body", never, {}, {}, never, ["*"], false, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class GraniteCardContentComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GraniteCardContentComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GraniteCardContentComponent, "granite-card-content", never, {}, {}, never, ["*"], false, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class GraniteCardFooterComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GraniteCardFooterComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GraniteCardFooterComponent, "granite-card-footer", never, {}, {}, never, ["*"], false, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class GraniteCardHeaderSubTitleComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GraniteCardHeaderSubTitleComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GraniteCardHeaderSubTitleComponent, "granite-card-header-sub-title", never, {}, {}, never, ["*"], false, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class GraniteCardHeaderTitleComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GraniteCardHeaderTitleComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GraniteCardHeaderTitleComponent, "granite-card-header-title", never, {}, {}, never, ["*"], false, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class GraniteCardHeaderComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GraniteCardHeaderComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GraniteCardHeaderComponent, "granite-card-header", never, {}, {}, never, ["granite-card-header-title", "granite-card-header-sub-title", "*"], false, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class GraniteCardComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GraniteCardComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GraniteCardComponent, "granite-card", never, {}, {}, never, ["*"], false, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class GraniteCardListComponent {
|
|
3
|
+
/**Present cards in vertically or horizontally */
|
|
4
|
+
orientation: 'horizontal' | 'vertical';
|
|
5
|
+
wrap: 'wrap' | 'nowrap';
|
|
6
|
+
gap: 'small' | 'medium' | 'large';
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GraniteCardListComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GraniteCardListComponent, "granite-card-list", never, { "orientation": { "alias": "orientation"; "required": false; }; "wrap": { "alias": "wrap"; "required": false; }; "gap": { "alias": "gap"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./card/card.component";
|
|
3
|
+
import * as i2 from "./card-list.component";
|
|
4
|
+
import * as i3 from "./card/card-content/card-content.component";
|
|
5
|
+
import * as i4 from "./card/card-content/card-header.component";
|
|
6
|
+
import * as i5 from "./card/card-content/card-actions.component";
|
|
7
|
+
import * as i6 from "./card/card-content/card-body.component";
|
|
8
|
+
import * as i7 from "./card/card-content/card-footer.component";
|
|
9
|
+
import * as i8 from "./card/card-avatar.component";
|
|
10
|
+
import * as i9 from "./card/card-content/card-header-title.component";
|
|
11
|
+
import * as i10 from "./card/card-content/card-header-subtitle.component";
|
|
12
|
+
import * as i11 from "@angular/common";
|
|
13
|
+
export declare class GraniteCardListModule {
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GraniteCardListModule, never>;
|
|
15
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<GraniteCardListModule, [typeof i1.GraniteCardComponent, typeof i2.GraniteCardListComponent, typeof i3.GraniteCardContentComponent, typeof i4.GraniteCardHeaderComponent, typeof i5.GraniteCardActionsComponent, typeof i6.GraniteCardBodyComponent, typeof i7.GraniteCardFooterComponent, typeof i8.GraniteCardAvatarComponent, typeof i9.GraniteCardHeaderTitleComponent, typeof i10.GraniteCardHeaderSubTitleComponent], [typeof i11.CommonModule], [typeof i1.GraniteCardComponent, typeof i2.GraniteCardListComponent, typeof i3.GraniteCardContentComponent, typeof i4.GraniteCardHeaderComponent, typeof i6.GraniteCardBodyComponent, typeof i5.GraniteCardActionsComponent, typeof i7.GraniteCardFooterComponent, typeof i8.GraniteCardAvatarComponent, typeof i9.GraniteCardHeaderTitleComponent, typeof i10.GraniteCardHeaderSubTitleComponent]>;
|
|
16
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<GraniteCardListModule>;
|
|
17
|
+
}
|
package/lib/menu/menu-base.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { AnimationEvent } from '@angular/animations';
|
|
|
5
5
|
import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
|
6
6
|
import { ClientInputInterface, ClientOutputInterface } from '../core/client-environment';
|
|
7
7
|
import { GraniteMenuItemComponent } from './menu-item.component';
|
|
8
|
-
import { ClosedEventType, GraniteMenuPanelInterface } from './menu-panel';
|
|
8
|
+
import { ClosedEventType, OpenedEventType, GraniteMenuPanelInterface } from './menu-panel';
|
|
9
9
|
import { MenuPositionX, MenuPositionY } from './menu-positions';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
/** Menu panel animation states */
|
|
@@ -46,6 +46,10 @@ export declare class _MenuBaseComponent implements AfterContentInit, OnDestroy,
|
|
|
46
46
|
* Event emitted when the menu is closed
|
|
47
47
|
*/
|
|
48
48
|
readonly closed: EventEmitter<ClosedEventType>;
|
|
49
|
+
/**
|
|
50
|
+
* Event emitted when the menu is opened
|
|
51
|
+
*/
|
|
52
|
+
readonly opened: EventEmitter<OpenedEventType>;
|
|
49
53
|
/**
|
|
50
54
|
* Used for locating the panel in tests and setting the aria-control attribute
|
|
51
55
|
* for the menu trigger.
|
|
@@ -185,6 +189,6 @@ export declare class _MenuBaseComponent implements AfterContentInit, OnDestroy,
|
|
|
185
189
|
*/
|
|
186
190
|
private _updateDirectDescendants;
|
|
187
191
|
static ɵfac: i0.ɵɵFactoryDeclaration<_MenuBaseComponent, never>;
|
|
188
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<_MenuBaseComponent, never, never, { "xPosition": { "alias": "xPosition"; "required": false; }; "yPosition": { "alias": "yPosition"; "required": false; }; "title": { "alias": "title"; "required": false; }; "closeLabel": { "alias": "closeLabel"; "required": false; }; "openOnHover": { "alias": "openOnHover"; "required": false; }; }, { "closed": "closed"; }, ["_allItems"], never, false, never>;
|
|
192
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<_MenuBaseComponent, never, never, { "xPosition": { "alias": "xPosition"; "required": false; }; "yPosition": { "alias": "yPosition"; "required": false; }; "title": { "alias": "title"; "required": false; }; "closeLabel": { "alias": "closeLabel"; "required": false; }; "openOnHover": { "alias": "openOnHover"; "required": false; }; }, { "closed": "closed"; "opened": "opened"; }, ["_allItems"], never, false, never>;
|
|
189
193
|
}
|
|
190
194
|
export {};
|
package/lib/menu/menu-panel.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { MenuPositionX, MenuPositionY } from './menu-positions';
|
|
|
8
8
|
*/
|
|
9
9
|
export declare const GRANITE_MENU_PANEL: InjectionToken<GraniteMenuPanelInterface>;
|
|
10
10
|
export type ClosedEventType = void | 'click' | 'keydown' | 'tab';
|
|
11
|
+
export type OpenedEventType = void | 'click' | 'keydown';
|
|
11
12
|
export interface GraniteMenuPanelInterface {
|
|
12
13
|
xPosition: MenuPositionX;
|
|
13
14
|
yPosition: MenuPositionY;
|
|
@@ -16,6 +17,7 @@ export interface GraniteMenuPanelInterface {
|
|
|
16
17
|
direction?: Direction;
|
|
17
18
|
focusFirstItem: (origin?: FocusOrigin) => void;
|
|
18
19
|
closed: EventEmitter<ClosedEventType>;
|
|
20
|
+
opened: EventEmitter<OpenedEventType>;
|
|
19
21
|
readonly panelId?: string;
|
|
20
22
|
showBackButton: boolean;
|
|
21
23
|
}
|
|
@@ -76,6 +76,8 @@ export declare class GraniteMenuTriggerForDirective implements AfterContentInit,
|
|
|
76
76
|
isOpen(): boolean;
|
|
77
77
|
/** Open the associated menu */
|
|
78
78
|
openMenu(): void;
|
|
79
|
+
/** Emits an eventtype when the menu is opened */
|
|
80
|
+
openedEvent(): void;
|
|
79
81
|
/** Whether the menu triggers a sub-menu or a top-level one. */
|
|
80
82
|
triggersSubmenu(): boolean;
|
|
81
83
|
/** Toggles the menu between the open and closed states. */
|