@ifsworld/granite-components 13.0.2 → 13.1.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.
@@ -4,7 +4,7 @@ import { ContactExtended } from '../contacts-types/contacts.component.private-ty
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class GraniteContactItemComponent {
6
6
  contact: ContactExtended;
7
- readonly selectedContact: EventEmitter<SelectedContact>;
7
+ readonly selectedContact: EventEmitter<SelectedContact<unknown>>;
8
8
  emitSelectedContact(selectedContact: SelectedContact): void;
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<GraniteContactItemComponent, never>;
10
10
  static ɵcmp: i0.ɵɵComponentDeclaration<GraniteContactItemComponent, "granite-contact-item", never, { "contact": { "alias": "contact"; "required": false; }; }, { "selectedContact": "selectedContact"; }, never, never, false, never>;
@@ -7,20 +7,20 @@ export declare const CONTACT_DEFAULT_STATUS: {
7
7
  readonly DO_NOT_DISTURB: "DoNotDisturb";
8
8
  readonly OFFLINE: "Offline";
9
9
  };
10
- export interface Contact {
10
+ export interface Contact<T = unknown> {
11
11
  name: string;
12
12
  label: string;
13
13
  iconName?: string;
14
14
  status?: ContactDefaultStatuses | string;
15
- options?: ContactOption[];
15
+ options?: ContactOption<T>[];
16
16
  disabled?: boolean;
17
- data?: unknown;
17
+ data?: T;
18
18
  }
19
- export interface SelectedContact {
20
- contact: ContactOption;
21
- parent?: Contact;
19
+ export interface SelectedContact<T = unknown> {
20
+ contact: ContactOption<T>;
21
+ parent?: Contact<T>;
22
22
  }
23
- export type ContactOption = Omit<Contact, 'options'>;
23
+ export type ContactOption<T = unknown> = Omit<Contact<T>, 'options'>;
24
24
  export interface Profile {
25
25
  name?: string;
26
26
  surname?: string;
@@ -10,7 +10,7 @@ export declare class GraniteContactsComponent extends ContactsTriggerDataCompone
10
10
  profile: Profile | unknown;
11
11
  profileClass: string;
12
12
  defaultShow: boolean;
13
- readonly selectedContact: EventEmitter<SelectedContact>;
13
+ readonly selectedContact: EventEmitter<SelectedContact<unknown>>;
14
14
  _customStatuses: QueryList<GraniteCustomStatusDirective>;
15
15
  customProfileDirective: GraniteCustomProfileDirective;
16
16
  _contactsExtended: ContactExtended[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ifsworld/granite-components",
3
- "version": "13.0.2",
3
+ "version": "13.1.0",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "peerDependencies": {
6
6
  "@angular/cdk": ">=17.3.4",
@@ -35,17 +35,17 @@
35
35
  "esm": "./esm2022/date-picker/ifsworld-granite-components-date-picker.mjs",
36
36
  "default": "./fesm2022/ifsworld-granite-components-date-picker.mjs"
37
37
  },
38
- "./tooltip": {
39
- "types": "./tooltip/index.d.ts",
40
- "esm2022": "./esm2022/tooltip/ifsworld-granite-components-tooltip.mjs",
41
- "esm": "./esm2022/tooltip/ifsworld-granite-components-tooltip.mjs",
42
- "default": "./fesm2022/ifsworld-granite-components-tooltip.mjs"
43
- },
44
38
  "./table": {
45
39
  "types": "./table/index.d.ts",
46
40
  "esm2022": "./esm2022/table/ifsworld-granite-components-table.mjs",
47
41
  "esm": "./esm2022/table/ifsworld-granite-components-table.mjs",
48
42
  "default": "./fesm2022/ifsworld-granite-components-table.mjs"
43
+ },
44
+ "./tooltip": {
45
+ "types": "./tooltip/index.d.ts",
46
+ "esm2022": "./esm2022/tooltip/ifsworld-granite-components-tooltip.mjs",
47
+ "esm": "./esm2022/tooltip/ifsworld-granite-components-tooltip.mjs",
48
+ "default": "./fesm2022/ifsworld-granite-components-tooltip.mjs"
49
49
  }
50
50
  },
51
51
  "sideEffects": false