@ifsworld/granite-components 12.3.3 → 13.0.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 +7 -1
- package/esm2022/lib/avatar/avatar-default-status/avatar-default-status.component.mjs +36 -0
- package/esm2022/lib/avatar/avatar.component.mjs +39 -0
- package/esm2022/lib/avatar/avatar.component.public-types.mjs +7 -0
- package/esm2022/lib/avatar/avatar.module.mjs +37 -0
- package/esm2022/lib/avatar/custom-avatar-status.directive.mjs +18 -0
- package/esm2022/lib/avatar/empty-avatar/empty-avatar.component.mjs +47 -0
- package/esm2022/lib/contacts/contacts-profile/contacts-profile.component.mjs +4 -4
- package/esm2022/lib/contacts/contacts.module.mjs +5 -4
- package/esm2022/lib/progress-bar/progress-bar.component.mjs +19 -7
- package/fesm2022/ifsworld-granite-components.mjs +187 -12
- package/fesm2022/ifsworld-granite-components.mjs.map +1 -1
- package/index.d.ts +6 -0
- package/lib/avatar/avatar-default-status/avatar-default-status.component.d.ts +15 -0
- package/lib/avatar/avatar.component.d.ts +16 -0
- package/lib/avatar/avatar.component.public-types.d.ts +7 -0
- package/lib/avatar/avatar.module.d.ts +11 -0
- package/lib/avatar/custom-avatar-status.directive.d.ts +9 -0
- package/lib/avatar/empty-avatar/empty-avatar.component.d.ts +11 -0
- package/lib/contacts/contacts.module.d.ts +3 -2
- package/lib/progress-bar/progress-bar.component.d.ts +3 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -48,6 +48,12 @@ export * from './lib/contacts/contacts-trigger/contacts-trigger-for.directive';
|
|
|
48
48
|
export * from './lib/contacts/custom-status.directive';
|
|
49
49
|
export * from './lib/contacts/custom-profile.directive';
|
|
50
50
|
export * from './lib/contacts/contacts-types/contacts.component.public-types';
|
|
51
|
+
export * from './lib/avatar/avatar.module';
|
|
52
|
+
export * from './lib/avatar/avatar.component';
|
|
53
|
+
export * from './lib/avatar/avatar-default-status/avatar-default-status.component';
|
|
54
|
+
export * from './lib/avatar/custom-avatar-status.directive';
|
|
55
|
+
export * from './lib/avatar/empty-avatar/empty-avatar.component';
|
|
56
|
+
export * from './lib/avatar/avatar.component.public-types';
|
|
51
57
|
export * from './lib/progress-bar/progress-bar.module';
|
|
52
58
|
export * from './lib/progress-bar/progress-bar.component';
|
|
53
59
|
export * from './lib/progress-bar/progress-bar.model';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AvatarDefaultStatuses } from '../avatar.component.public-types';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export type StatusClasses = 'available' | 'do-not-disturb' | 'disabled' | 'away';
|
|
4
|
+
export declare class GraniteAvatarDefaultStatusComponent {
|
|
5
|
+
status: AvatarDefaultStatuses;
|
|
6
|
+
AVATAR_STATUS: {
|
|
7
|
+
readonly AVAILABLE: "Available";
|
|
8
|
+
readonly DO_NOT_DISTURB: "DoNotDisturb";
|
|
9
|
+
readonly DISABLED: "Disabled";
|
|
10
|
+
readonly AWAY: "Away";
|
|
11
|
+
};
|
|
12
|
+
get statusClass(): StatusClasses;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GraniteAvatarDefaultStatusComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GraniteAvatarDefaultStatusComponent, "granite-avatar-default-status", never, { "status": { "alias": "status"; "required": false; }; }, {}, never, never, false, never>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { QueryList, AfterContentChecked, TemplateRef } from '@angular/core';
|
|
2
|
+
import { ContactsTriggerDataComponent } from '../contacts/contacts-trigger/contacts-trigger-data';
|
|
3
|
+
import { GraniteCustomAvatarStatusDirective } from './custom-avatar-status.directive';
|
|
4
|
+
import { AvatarDefaultStatuses } from './avatar.component.public-types';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class GraniteAvatarComponent extends ContactsTriggerDataComponent implements AfterContentChecked {
|
|
7
|
+
name: string;
|
|
8
|
+
surname: string;
|
|
9
|
+
avatar: string;
|
|
10
|
+
status: AvatarDefaultStatuses;
|
|
11
|
+
_customStatusesQueryList: QueryList<GraniteCustomAvatarStatusDirective>;
|
|
12
|
+
_customStatusDirectives: Record<string, TemplateRef<unknown>>;
|
|
13
|
+
ngAfterContentChecked(): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GraniteAvatarComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GraniteAvatarComponent, "granite-avatar", ["graniteAvatar"], { "name": { "alias": "name"; "required": false; }; "surname": { "alias": "surname"; "required": false; }; "avatar": { "alias": "avatar"; "required": false; }; "status": { "alias": "status"; "required": false; }; }, {}, ["_customStatusesQueryList"], never, false, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type AvatarDefaultStatuses = (typeof AVATAR_DEFAULT_STATUS)[keyof typeof AVATAR_DEFAULT_STATUS];
|
|
2
|
+
export declare const AVATAR_DEFAULT_STATUS: {
|
|
3
|
+
readonly AVAILABLE: "Available";
|
|
4
|
+
readonly DO_NOT_DISTURB: "DoNotDisturb";
|
|
5
|
+
readonly DISABLED: "Disabled";
|
|
6
|
+
readonly AWAY: "Away";
|
|
7
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./avatar.component";
|
|
3
|
+
import * as i2 from "./avatar-default-status/avatar-default-status.component";
|
|
4
|
+
import * as i3 from "./custom-avatar-status.directive";
|
|
5
|
+
import * as i4 from "./empty-avatar/empty-avatar.component";
|
|
6
|
+
import * as i5 from "@angular/common";
|
|
7
|
+
export declare class GraniteAvatarModule {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GraniteAvatarModule, never>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<GraniteAvatarModule, [typeof i1.GraniteAvatarComponent, typeof i2.GraniteAvatarDefaultStatusComponent, typeof i3.GraniteCustomAvatarStatusDirective, typeof i4.GraniteEmptyAvatarComponent], [typeof i5.CommonModule], [typeof i1.GraniteAvatarComponent, typeof i2.GraniteAvatarDefaultStatusComponent, typeof i3.GraniteCustomAvatarStatusDirective, typeof i4.GraniteEmptyAvatarComponent]>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<GraniteAvatarModule>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class GraniteCustomAvatarStatusDirective {
|
|
4
|
+
templateRef: TemplateRef<unknown>;
|
|
5
|
+
graniteCustomAvatarStatus: string;
|
|
6
|
+
constructor(templateRef: TemplateRef<unknown>);
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GraniteCustomAvatarStatusDirective, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<GraniteCustomAvatarStatusDirective, "[graniteCustomAvatarStatus]", never, { "graniteCustomAvatarStatus": { "alias": "graniteCustomAvatarStatus"; "required": false; }; }, {}, never, never, false, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class GraniteEmptyAvatarComponent implements OnChanges {
|
|
4
|
+
name: string;
|
|
5
|
+
surname: string;
|
|
6
|
+
_firstNameLetter: string;
|
|
7
|
+
_firstSurnameLetter: string;
|
|
8
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GraniteEmptyAvatarComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GraniteEmptyAvatarComponent, "granite-empty-avatar", never, { "name": { "alias": "name"; "required": false; }; "surname": { "alias": "surname"; "required": false; }; }, {}, never, never, false, never>;
|
|
11
|
+
}
|
|
@@ -8,9 +8,10 @@ import * as i6 from "./contacts-trigger/contacts-trigger-for.directive";
|
|
|
8
8
|
import * as i7 from "./custom-status.directive";
|
|
9
9
|
import * as i8 from "./custom-profile.directive";
|
|
10
10
|
import * as i9 from "../icon/icon.module";
|
|
11
|
-
import * as i10 from "
|
|
11
|
+
import * as i10 from "../avatar/avatar.module";
|
|
12
|
+
import * as i11 from "@angular/common";
|
|
12
13
|
export declare class GraniteContactsModule {
|
|
13
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<GraniteContactsModule, never>;
|
|
14
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<GraniteContactsModule, [typeof i1.GraniteContactsComponent, typeof i2.GraniteContactsProfileComponent, typeof i3.GraniteContactItemComponent, typeof i4.ContactItemDefaultStatusComponent, typeof i5.GraniteContactItemTitleComponent, typeof i6.GraniteContactsTriggerForDirective, typeof i7.GraniteCustomStatusDirective, typeof i8.GraniteCustomProfileDirective], [typeof i9.GraniteIconModule, typeof i10.CommonModule], [typeof i1.GraniteContactsComponent, typeof i6.GraniteContactsTriggerForDirective, typeof i3.GraniteContactItemComponent, typeof i7.GraniteCustomStatusDirective, typeof i8.GraniteCustomProfileDirective]>;
|
|
15
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<GraniteContactsModule, [typeof i1.GraniteContactsComponent, typeof i2.GraniteContactsProfileComponent, typeof i3.GraniteContactItemComponent, typeof i4.ContactItemDefaultStatusComponent, typeof i5.GraniteContactItemTitleComponent, typeof i6.GraniteContactsTriggerForDirective, typeof i7.GraniteCustomStatusDirective, typeof i8.GraniteCustomProfileDirective], [typeof i9.GraniteIconModule, typeof i10.GraniteAvatarModule, typeof i11.CommonModule], [typeof i1.GraniteContactsComponent, typeof i6.GraniteContactsTriggerForDirective, typeof i3.GraniteContactItemComponent, typeof i7.GraniteCustomStatusDirective, typeof i8.GraniteCustomProfileDirective]>;
|
|
15
16
|
static ɵinj: i0.ɵɵInjectorDeclaration<GraniteContactsModule>;
|
|
16
17
|
}
|
|
@@ -3,6 +3,7 @@ import { GraniteProgressInterface, GraniteProgressLegendInterface } from './prog
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class GraniteProgressBarComponent implements OnChanges {
|
|
5
5
|
progressBarData: GraniteProgressInterface[];
|
|
6
|
+
legendData: GraniteProgressLegendInterface[];
|
|
6
7
|
showLabel: boolean;
|
|
7
8
|
showLegend: boolean;
|
|
8
9
|
DEFAULT_TOTAL: number;
|
|
@@ -20,7 +21,8 @@ export declare class GraniteProgressBarComponent implements OnChanges {
|
|
|
20
21
|
checkStackTotal(): void;
|
|
21
22
|
getStackTotal(): number;
|
|
22
23
|
setLegendItems(): void;
|
|
24
|
+
getLegendItems(data: GraniteProgressInterface[] | GraniteProgressLegendInterface[]): GraniteProgressLegendInterface[];
|
|
23
25
|
ngOnChanges(changes: SimpleChanges): void;
|
|
24
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<GraniteProgressBarComponent, never>;
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GraniteProgressBarComponent, "granite-progress-bar", ["graniteProgressBar"], { "progressBarData": { "alias": "progressBarData"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "showLegend": { "alias": "showLegend"; "required": false; }; }, {}, never, never, false, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GraniteProgressBarComponent, "granite-progress-bar", ["graniteProgressBar"], { "progressBarData": { "alias": "progressBarData"; "required": false; }; "legendData": { "alias": "legendData"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "showLegend": { "alias": "showLegend"; "required": false; }; }, {}, never, never, false, never>;
|
|
26
28
|
}
|