@ifsworld/granite-components 16.1.2 → 17.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.
Files changed (149) hide show
  1. package/README.md +0 -2
  2. package/carousel/index.d.ts +45 -2
  3. package/date-picker/index.d.ts +123 -4
  4. package/fesm2022/ifsworld-granite-components-carousel.mjs +11 -11
  5. package/fesm2022/ifsworld-granite-components-carousel.mjs.map +1 -1
  6. package/fesm2022/ifsworld-granite-components-date-picker.mjs +40 -53
  7. package/fesm2022/ifsworld-granite-components-date-picker.mjs.map +1 -1
  8. package/fesm2022/ifsworld-granite-components-file-upload.mjs +10 -10
  9. package/fesm2022/ifsworld-granite-components-file-upload.mjs.map +1 -1
  10. package/fesm2022/ifsworld-granite-components-table.mjs +29 -29
  11. package/fesm2022/ifsworld-granite-components-table.mjs.map +1 -1
  12. package/fesm2022/ifsworld-granite-components-tooltip.mjs +23 -24
  13. package/fesm2022/ifsworld-granite-components-tooltip.mjs.map +1 -1
  14. package/fesm2022/ifsworld-granite-components.mjs +480 -564
  15. package/fesm2022/ifsworld-granite-components.mjs.map +1 -1
  16. package/file-upload/index.d.ts +99 -2
  17. package/index.d.ts +1981 -86
  18. package/package.json +8 -8
  19. package/table/index.d.ts +112 -4
  20. package/tooltip/index.d.ts +50 -3
  21. package/carousel/lib/carousel.component.d.ts +0 -34
  22. package/carousel/lib/carousel.module.d.ts +0 -10
  23. package/date-picker/lib/date-picker-base.d.ts +0 -34
  24. package/date-picker/lib/date-picker-trigger-for.directive.d.ts +0 -70
  25. package/date-picker/lib/date-picker.component.d.ts +0 -10
  26. package/date-picker/lib/date-picker.module.d.ts +0 -15
  27. package/date-picker/lib/date-range-picker.component.d.ts +0 -12
  28. package/file-upload/lib/directives/file-drag-and-drop.directive.d.ts +0 -18
  29. package/file-upload/lib/file-upload.component.d.ts +0 -51
  30. package/file-upload/lib/file-upload.constants.d.ts +0 -37
  31. package/file-upload/lib/file-upload.module.d.ts +0 -11
  32. package/file-upload/lib/file-upload.utils.d.ts +0 -1
  33. package/lib/arrange-grid/arrange-grid-item.component.d.ts +0 -30
  34. package/lib/arrange-grid/arrange-grid.component.d.ts +0 -58
  35. package/lib/arrange-grid/arrange-grid.module.d.ts +0 -9
  36. package/lib/avatar/avatar-default-status/avatar-default-status.component.d.ts +0 -15
  37. package/lib/avatar/avatar.component.d.ts +0 -23
  38. package/lib/avatar/avatar.component.public-types.d.ts +0 -7
  39. package/lib/avatar/avatar.module.d.ts +0 -11
  40. package/lib/avatar/custom-avatar-status.directive.d.ts +0 -9
  41. package/lib/avatar/empty-avatar/empty-avatar.component.d.ts +0 -7
  42. package/lib/badge/badge.component.d.ts +0 -19
  43. package/lib/badge/badge.module.d.ts +0 -8
  44. package/lib/badge/testing/badge.harness.d.ts +0 -21
  45. package/lib/button/button.component.d.ts +0 -38
  46. package/lib/button/button.module.d.ts +0 -7
  47. package/lib/card-list/card/card-avatar.component.d.ts +0 -5
  48. package/lib/card-list/card/card-content/card-actions.component.d.ts +0 -5
  49. package/lib/card-list/card/card-content/card-body.component.d.ts +0 -5
  50. package/lib/card-list/card/card-content/card-content.component.d.ts +0 -5
  51. package/lib/card-list/card/card-content/card-footer.component.d.ts +0 -5
  52. package/lib/card-list/card/card-content/card-header-subtitle.component.d.ts +0 -5
  53. package/lib/card-list/card/card-content/card-header-title.component.d.ts +0 -5
  54. package/lib/card-list/card/card-content/card-header.component.d.ts +0 -5
  55. package/lib/card-list/card/card.component.d.ts +0 -5
  56. package/lib/card-list/card-list.component.d.ts +0 -9
  57. package/lib/card-list/card-list.module.d.ts +0 -18
  58. package/lib/checkbox/checkbox-group.component.d.ts +0 -6
  59. package/lib/checkbox/checkbox.component.d.ts +0 -29
  60. package/lib/checkbox/checkbox.module.d.ts +0 -8
  61. package/lib/chips/chip-input.d.ts +0 -89
  62. package/lib/chips/chip-list.component.d.ts +0 -185
  63. package/lib/chips/chip.component.d.ts +0 -104
  64. package/lib/chips/chips.module.d.ts +0 -12
  65. package/lib/collapsible-group/collapsible-group-body.directive.d.ts +0 -7
  66. package/lib/collapsible-group/collapsible-group-header.directive.d.ts +0 -7
  67. package/lib/collapsible-group/collapsible-group.component.d.ts +0 -16
  68. package/lib/collapsible-group/collapsible-group.module.d.ts +0 -11
  69. package/lib/contacts/contact-item/contact-item.component.d.ts +0 -11
  70. package/lib/contacts/contact-item-default-status/contact-item-default-status.component.d.ts +0 -15
  71. package/lib/contacts/contact-item-title/contact-item-title.component.d.ts +0 -7
  72. package/lib/contacts/contacts-profile/contacts-profile.component.d.ts +0 -8
  73. package/lib/contacts/contacts-trigger/contacts-trigger-data.d.ts +0 -23
  74. package/lib/contacts/contacts-trigger/contacts-trigger-for.directive.d.ts +0 -69
  75. package/lib/contacts/contacts-types/contacts.component.private-types.d.ts +0 -8
  76. package/lib/contacts/contacts-types/contacts.component.public-types.d.ts +0 -30
  77. package/lib/contacts/contacts.component.d.ts +0 -29
  78. package/lib/contacts/contacts.module.d.ts +0 -17
  79. package/lib/contacts/custom-profile.directive.d.ts +0 -8
  80. package/lib/contacts/custom-status.directive.d.ts +0 -9
  81. package/lib/core/animation.d.ts +0 -23
  82. package/lib/core/client-environment.d.ts +0 -26
  83. package/lib/core/common-behaviors/disabled.d.ts +0 -10
  84. package/lib/core/core.module.d.ts +0 -12
  85. package/lib/core/devices/client-input-desktop.directive.d.ts +0 -9
  86. package/lib/core/devices/client-input-touch.directive.d.ts +0 -9
  87. package/lib/core/devices/client-output-desktop.directive.d.ts +0 -9
  88. package/lib/core/devices/client-output-touch.directive.d.ts +0 -9
  89. package/lib/core/hide-on-overflow.directive.d.ts +0 -21
  90. package/lib/core/overlay-base.d.ts +0 -16
  91. package/lib/core/overlay-position-config.d.ts +0 -12
  92. package/lib/core/overlay-trigger-for-base.directive.d.ts +0 -32
  93. package/lib/core/overlay.service.d.ts +0 -21
  94. package/lib/core/pipes/pure-pipes.module.d.ts +0 -7
  95. package/lib/core/pipes/title.pipe.d.ts +0 -7
  96. package/lib/core/radio-checkbox-base.d.ts +0 -8
  97. package/lib/core/services/names-utils-service.d.ts +0 -17
  98. package/lib/core/theme.library.d.ts +0 -38
  99. package/lib/core/types.d.ts +0 -2
  100. package/lib/grid/grid.component.d.ts +0 -75
  101. package/lib/grid/grid.module.d.ts +0 -8
  102. package/lib/icon/icon.component.d.ts +0 -13
  103. package/lib/icon/icon.module.d.ts +0 -7
  104. package/lib/input-field/input-field.component.d.ts +0 -48
  105. package/lib/input-field/input-field.module.d.ts +0 -10
  106. package/lib/label/label.component.d.ts +0 -10
  107. package/lib/label/label.module.d.ts +0 -8
  108. package/lib/menu/divider.directive.d.ts +0 -6
  109. package/lib/menu/menu-base.d.ts +0 -219
  110. package/lib/menu/menu-custom-template.directive.d.ts +0 -14
  111. package/lib/menu/menu-desktop-animations.d.ts +0 -12
  112. package/lib/menu/menu-errors.d.ts +0 -24
  113. package/lib/menu/menu-item.component.d.ts +0 -36
  114. package/lib/menu/menu-panel.d.ts +0 -23
  115. package/lib/menu/menu-positions.d.ts +0 -9
  116. package/lib/menu/menu-touch-animations.d.ts +0 -17
  117. package/lib/menu/menu-touch-close.component.d.ts +0 -5
  118. package/lib/menu/menu-touch-title.component.d.ts +0 -14
  119. package/lib/menu/menu-trigger-for.directive.d.ts +0 -200
  120. package/lib/menu/menu.component.d.ts +0 -6
  121. package/lib/menu/menu.module.d.ts +0 -18
  122. package/lib/menu/testing/menu.harness.d.ts +0 -68
  123. package/lib/menu/title.directive.d.ts +0 -5
  124. package/lib/progress-bar/progress-bar-legend/progress-bar-legend.component.d.ts +0 -8
  125. package/lib/progress-bar/progress-bar-legend-base.d.ts +0 -8
  126. package/lib/progress-bar/progress-bar-legend-trigger-for.directive.d.ts +0 -18
  127. package/lib/progress-bar/progress-bar.component.d.ts +0 -28
  128. package/lib/progress-bar/progress-bar.model.d.ts +0 -11
  129. package/lib/progress-bar/progress-bar.module.d.ts +0 -14
  130. package/lib/radio-button/radio-button.component.d.ts +0 -34
  131. package/lib/radio-button/radio-button.module.d.ts +0 -8
  132. package/lib/radio-button/radio-group.component.d.ts +0 -6
  133. package/lib/toggle-switch/toggle-switch.component.d.ts +0 -29
  134. package/lib/toggle-switch/toggle-switch.module.d.ts +0 -7
  135. package/table/lib/cell/cell-align/cell-align-classes.directive.d.ts +0 -9
  136. package/table/lib/cell/cell.d.ts +0 -8
  137. package/table/lib/cell/table-data-cell.component.d.ts +0 -12
  138. package/table/lib/cell/table-header-cell.component.d.ts +0 -6
  139. package/table/lib/column/table-column.directive.d.ts +0 -23
  140. package/table/lib/column-size/column-size.directive.d.ts +0 -11
  141. package/table/lib/table-constants.library.d.ts +0 -6
  142. package/table/lib/table.component.d.ts +0 -26
  143. package/table/lib/table.model.d.ts +0 -6
  144. package/table/lib/table.module.d.ts +0 -16
  145. package/tooltip/lib/Services/granite-tooltip.service.d.ts +0 -10
  146. package/tooltip/lib/tooltip-constants.library.d.ts +0 -4
  147. package/tooltip/lib/tooltip-trigger-for.directive.d.ts +0 -39
  148. package/tooltip/lib/tooltip.component.d.ts +0 -7
  149. package/tooltip/lib/tooltip.module.d.ts +0 -9
@@ -1,104 +0,0 @@
1
- import { FocusableOption } from '@angular/cdk/a11y';
2
- import { ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnDestroy } from '@angular/core';
3
- import * as i0 from "@angular/core";
4
- /** Event fired on an individual `granite-chip` element. */
5
- export interface GraniteChipEvent {
6
- /** The chip the event was fired on. */
7
- chip: GraniteChipComponent;
8
- }
9
- /** Event object emitted by GraniteChip when selected or deselected. */
10
- export declare class GraniteChipSelectionChangeEvent {
11
- /** Reference to the chip that emitted the event. */
12
- source: GraniteChipComponent;
13
- /** Whether the chip that emitted the event is selected. */
14
- selected: boolean;
15
- /** Whether the selection change was a result of a user interaction. */
16
- isUserInput: boolean;
17
- }
18
- export declare class GraniteChipComponent implements FocusableOption, OnDestroy {
19
- _elementRef: ElementRef;
20
- private _ngZone;
21
- private _changeDetectorRef;
22
- /** ARIA role that should be applied to the chip. */
23
- role: string;
24
- ariaLabel: string | null;
25
- ariaLabelledby: string | null;
26
- /** Emitted when the chip is selected or deselected. */
27
- readonly selectionChange: EventEmitter<GraniteChipSelectionChangeEvent>;
28
- /** Emitted when a chip is to be removed. */
29
- readonly removed: EventEmitter<GraniteChipEvent>;
30
- /** Emitted when the chip is destroyed. */
31
- readonly destroyed: EventEmitter<GraniteChipEvent>;
32
- /** Emits when the chip is focused. */
33
- readonly chipFocus: EventEmitter<GraniteChipEvent>;
34
- /** Emits when the chip is blurred. */
35
- readonly chipBlur: EventEmitter<GraniteChipEvent>;
36
- /** Whether the chip has focus. */
37
- _hasFocus: boolean;
38
- /** Whether the chip list is selectable */
39
- _chipListSelectable: boolean;
40
- /** Whether the chip list is in multi-selection mode. */
41
- _chipListMultiple: boolean;
42
- /** Whether the chip list as a whole is disabled. */
43
- _chipListDisabled: boolean;
44
- tabIndex: number;
45
- inputChip: boolean;
46
- protected _selected: boolean;
47
- protected _selectable: boolean;
48
- protected _disabled: boolean;
49
- protected _removable: boolean;
50
- protected _invalid: boolean;
51
- /** Whether the chip is selected. */
52
- get selected(): boolean;
53
- set selected(value: boolean);
54
- /** The value of the chip. Defaults to the text content inside `<granite-chip>` tags. */
55
- get value(): any;
56
- set value(val: any);
57
- private _value;
58
- /**
59
- * Whether or not the chip is selectable. When a chip is not selectable,
60
- * changes to its selected state are always ignored. By default a chip is
61
- * selectable, and it becomes non-selectable if its parent chip list is
62
- * not selectable.
63
- */
64
- get selectable(): boolean;
65
- set selectable(value: boolean);
66
- /** Whether the chip is disabled. Also the individual chips are disabled when chip list is disabled */
67
- get disabled(): boolean;
68
- set disabled(value: boolean);
69
- /**
70
- * Whether the chip can be removed from the list
71
- */
72
- get removable(): boolean;
73
- set removable(value: boolean);
74
- /** Whether the chip is in an invalid state. */
75
- get invalid(): boolean;
76
- set invalid(value: boolean);
77
- constructor(_elementRef: ElementRef, _ngZone: NgZone, _changeDetectorRef: ChangeDetectorRef, tabIndex?: string);
78
- ngOnDestroy(): void;
79
- /** Selects the chip. */
80
- select(isUserInput?: boolean): void;
81
- /** Deselects the chip. */
82
- deselect(): void;
83
- /** Toggles the current selected state of this chip. */
84
- toggleSelected(isUserInput?: boolean): boolean;
85
- /** Allows for programmatic focusing of the chip unless it's disabled. */
86
- focus(): void;
87
- /**
88
- * Allows for programmatic removal of the chip.
89
- * Called by the GraniteChipList when the DELETE or BACKSPACE keys are pressed.
90
- * Informs any listeners of the removal request. Does not remove the chip from the DOM.
91
- */
92
- remove(): void;
93
- /** Handles click events on the chip. */
94
- _handleClick(event: Event): void;
95
- /** Handle custom key presses. */
96
- _handleKeydown(event: KeyboardEvent): void;
97
- _handleRemoveClick(event: Event): void;
98
- _blur(): void;
99
- private _dispatchSelectionChange;
100
- /** The ARIA selected applied to the chip. */
101
- get ariaSelected(): string | null;
102
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteChipComponent, [null, null, { optional: true; }, { attribute: "tabindex"; }]>;
103
- static ɵcmp: i0.ɵɵComponentDeclaration<GraniteChipComponent, "granite-chip, granite-input-chip", ["graniteChip"], { "tabIndex": { "alias": "tabIndex"; "required": false; }; "role": { "alias": "role"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "value": { "alias": "value"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "removable": { "alias": "removable"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; }, { "selectionChange": "selectionChange"; "removed": "removed"; "destroyed": "destroyed"; "chipFocus": "chipFocus"; "chipBlur": "chipBlur"; }, never, ["*"], false, never>;
104
- }
@@ -1,12 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./chip-list.component";
3
- import * as i2 from "./chip.component";
4
- import * as i3 from "./chip-input";
5
- import * as i4 from "@angular/common";
6
- import * as i5 from "@angular/forms";
7
- import * as i6 from "../icon/icon.module";
8
- export declare class GraniteChipsModule {
9
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteChipsModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<GraniteChipsModule, [typeof i1.GraniteChipListComponent, typeof i2.GraniteChipComponent, typeof i3.GraniteChipInputDirective], [typeof i4.CommonModule, typeof i5.FormsModule, typeof i5.ReactiveFormsModule, typeof i6.GraniteIconModule], [typeof i1.GraniteChipListComponent, typeof i2.GraniteChipComponent, typeof i3.GraniteChipInputDirective]>;
11
- static ɵinj: i0.ɵɵInjectorDeclaration<GraniteChipsModule>;
12
- }
@@ -1,7 +0,0 @@
1
- import { TemplateRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class GraniteCollapsibleConditionalBodyDirective {
4
- template: TemplateRef<any>;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteCollapsibleConditionalBodyDirective, never>;
6
- static ɵdir: i0.ɵɵDirectiveDeclaration<GraniteCollapsibleConditionalBodyDirective, "[graniteCollapsibleGroupBody]", ["graniteCollapsibleGroupBody"], {}, {}, never, never, false, never>;
7
- }
@@ -1,7 +0,0 @@
1
- import { TemplateRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class GraniteCollapsibleConditionalHeaderDirective {
4
- template: TemplateRef<any>;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteCollapsibleConditionalHeaderDirective, never>;
6
- static ɵdir: i0.ɵɵDirectiveDeclaration<GraniteCollapsibleConditionalHeaderDirective, "[graniteCollapsibleGroupHeader]", ["graniteCollapsibleGroupHeader"], {}, {}, never, never, false, never>;
7
- }
@@ -1,16 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { GraniteCollapsibleConditionalBodyDirective } from './collapsible-group-body.directive';
3
- import { GraniteCollapsibleConditionalHeaderDirective } from './collapsible-group-header.directive';
4
- import * as i0 from "@angular/core";
5
- export declare class GraniteCollapsibleGroupComponent {
6
- collapsed: boolean;
7
- id: string;
8
- arialabel: string | null;
9
- readonly collapsedChanged: EventEmitter<boolean>;
10
- conditionalBodyContentRef: GraniteCollapsibleConditionalBodyDirective;
11
- conditionalHeaderContentRef: GraniteCollapsibleConditionalHeaderDirective;
12
- toggleCollapsibleGroup(): void;
13
- _toogleCollapsing(event: KeyboardEvent): void;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteCollapsibleGroupComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<GraniteCollapsibleGroupComponent, "granite-collapsible-group", never, { "collapsed": { "alias": "collapsed"; "required": false; }; "id": { "alias": "id"; "required": false; }; "arialabel": { "alias": "arialabel"; "required": false; }; }, { "collapsedChanged": "collapsedChanged"; }, ["conditionalBodyContentRef", "conditionalHeaderContentRef"], never, false, never>;
16
- }
@@ -1,11 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./collapsible-group.component";
3
- import * as i2 from "./collapsible-group-header.directive";
4
- import * as i3 from "./collapsible-group-body.directive";
5
- import * as i4 from "@angular/common";
6
- import * as i5 from "../icon/icon.module";
7
- export declare class GraniteCollapsibleGroupModule {
8
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteCollapsibleGroupModule, never>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<GraniteCollapsibleGroupModule, [typeof i1.GraniteCollapsibleGroupComponent, typeof i2.GraniteCollapsibleConditionalHeaderDirective, typeof i3.GraniteCollapsibleConditionalBodyDirective], [typeof i4.CommonModule, typeof i5.GraniteIconModule], [typeof i1.GraniteCollapsibleGroupComponent, typeof i2.GraniteCollapsibleConditionalHeaderDirective, typeof i3.GraniteCollapsibleConditionalBodyDirective]>;
10
- static ɵinj: i0.ɵɵInjectorDeclaration<GraniteCollapsibleGroupModule>;
11
- }
@@ -1,11 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { SelectedContact } from '../contacts-types/contacts.component.public-types';
3
- import { ContactExtended } from '../contacts-types/contacts.component.private-types';
4
- import * as i0 from "@angular/core";
5
- export declare class GraniteContactItemComponent {
6
- contact: ContactExtended;
7
- readonly selectedContact: EventEmitter<SelectedContact<unknown>>;
8
- emitSelectedContact(selectedContact: SelectedContact): void;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteContactItemComponent, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<GraniteContactItemComponent, "granite-contact-item", never, { "contact": { "alias": "contact"; "required": false; }; }, { "selectedContact": "selectedContact"; }, never, never, false, never>;
11
- }
@@ -1,15 +0,0 @@
1
- import { ContactDefaultStatuses } from '../contacts-types/contacts.component.public-types';
2
- import * as i0 from "@angular/core";
3
- export declare class ContactItemDefaultStatusComponent {
4
- status: ContactDefaultStatuses;
5
- CONTACT_STATUS: {
6
- readonly AVAILABLE: "Available";
7
- readonly AWAY: "Away";
8
- readonly BE_RIGHT_BACK: "BeRightBack";
9
- readonly BUSY: "Busy";
10
- readonly DO_NOT_DISTURB: "DoNotDisturb";
11
- readonly OFFLINE: "Offline";
12
- };
13
- static ɵfac: i0.ɵɵFactoryDeclaration<ContactItemDefaultStatusComponent, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<ContactItemDefaultStatusComponent, "granite-contact-item-default-status", never, { "status": { "alias": "status"; "required": false; }; }, {}, never, never, false, never>;
15
- }
@@ -1,7 +0,0 @@
1
- import { ContactExtended } from '../contacts-types/contacts.component.private-types';
2
- import * as i0 from "@angular/core";
3
- export declare class GraniteContactItemTitleComponent {
4
- contact: ContactExtended;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteContactItemTitleComponent, never>;
6
- static ɵcmp: i0.ɵɵComponentDeclaration<GraniteContactItemTitleComponent, "granite-contact-item-title", never, { "contact": { "alias": "contact"; "required": false; }; }, {}, never, never, false, never>;
7
- }
@@ -1,8 +0,0 @@
1
- import { ProfileData } from '../contacts-types/contacts.component.private-types';
2
- import * as i0 from "@angular/core";
3
- export declare class GraniteContactsProfileComponent {
4
- profile: ProfileData;
5
- profileClass: any;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteContactsProfileComponent, never>;
7
- static ɵcmp: i0.ɵɵComponentDeclaration<GraniteContactsProfileComponent, "granite-contacts-profile", never, { "profile": { "alias": "profile"; "required": false; }; "profileClass": { "alias": "profileClass"; "required": false; }; }, {}, never, never, false, never>;
8
- }
@@ -1,23 +0,0 @@
1
- import { TemplateRef } from '@angular/core';
2
- import { ClientInputInterface, ClientOutputInterface } from '../../core/client-environment';
3
- import { Direction } from '@angular/cdk/bidi';
4
- import * as i0 from "@angular/core";
5
- export type PositionX = 'before' | 'after';
6
- export type PositionY = 'above' | 'below';
7
- export declare class ContactsTriggerDataComponent {
8
- templateRef: TemplateRef<unknown>;
9
- xPosition: PositionX;
10
- yPosition: PositionY;
11
- direction: Direction;
12
- /**
13
- * Used for locating the panel in tests and setting the aria-control attribute
14
- * for the contacts trigger.
15
- */
16
- readonly panelId: string;
17
- /** Client input device information */
18
- clientInput: ClientInputInterface;
19
- /** Client output device information */
20
- clientOutput: ClientOutputInterface;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<ContactsTriggerDataComponent, never>;
22
- static ɵdir: i0.ɵɵDirectiveDeclaration<ContactsTriggerDataComponent, never, never, {}, {}, never, never, true, never>;
23
- }
@@ -1,69 +0,0 @@
1
- import { AfterContentInit, ElementRef, OnDestroy, ViewContainerRef } from '@angular/core';
2
- import { FocusMonitor, FocusOrigin } from '@angular/cdk/a11y';
3
- import { Directionality } from '@angular/cdk/bidi';
4
- import { Overlay, OverlayOutsideClickDispatcher } from '@angular/cdk/overlay';
5
- import { GraniteContactsComponent } from '../contacts.component';
6
- import { ClientInputInterface, ClientOutputInterface } from '../../core/client-environment';
7
- import * as i0 from "@angular/core";
8
- export declare class GraniteContactsTriggerForDirective implements AfterContentInit, OnDestroy {
9
- private _overlay;
10
- private _element;
11
- private _viewContainerRef;
12
- private _outsideClickDispatcher;
13
- /** Client input device information */
14
- _clientInput: ClientInputInterface;
15
- /** Client output device information */
16
- _clientOutput: ClientOutputInterface;
17
- private _dir;
18
- private _focusMonitor;
19
- /** References the contacts instance that the trigger is associated with. */
20
- contacts: GraniteContactsComponent;
21
- /** Whether the associated contacts is open */
22
- _isContactsOpen: boolean;
23
- private _contactsCloseSubscription;
24
- private _portal;
25
- private _overlayRef;
26
- constructor(_overlay: Overlay, _element: ElementRef<HTMLElement>, _viewContainerRef: ViewContainerRef, _outsideClickDispatcher: OverlayOutsideClickDispatcher,
27
- /** Client input device information */
28
- _clientInput: ClientInputInterface,
29
- /** Client output device information */
30
- _clientOutput: ClientOutputInterface, _dir: Directionality, _focusMonitor: FocusMonitor);
31
- ngAfterContentInit(): void;
32
- ngOnDestroy(): void;
33
- isOpen(): boolean;
34
- openContacts(): void;
35
- /** Toggles the contacts between the open and closed states. */
36
- toggleContacts(): void;
37
- /** Close the associated contacts */
38
- closeContacts(): void;
39
- /** Handles key presses on the trigger. */
40
- _handleKeydown(event: KeyboardEvent): void;
41
- /** Handles click events on the trigger. */
42
- _handleClick(): void;
43
- /**
44
- * Restores focus to the element that was focused before the contacts was open.
45
- */
46
- _restoreFocus(origin?: FocusOrigin, options?: FocusOptions): void;
47
- /**
48
- * Returns strategy for positioning the overlay for desktop devices:
49
- */
50
- private _desktopPositionStrategy;
51
- /**
52
- * Sets the appropriate positions on a position strategy
53
- * so the overlay connects with the trigger correctly.
54
- * @param positionStrategy Strategy whose position to update.
55
- */
56
- private _setPosition;
57
- /**
58
- * Returns strategy for positioning the overlay depending on what type of
59
- * device the contacts is being shown on
60
- */
61
- private _positionStrategy;
62
- /**
63
- * Returns strategy for positioning the overlay for touch devices:
64
- * Place centered in the screen.
65
- */
66
- private _touchPositionStrategy;
67
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteContactsTriggerForDirective, [null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }, null]>;
68
- static ɵdir: i0.ɵɵDirectiveDeclaration<GraniteContactsTriggerForDirective, "[graniteContactsTriggerFor]", never, { "contacts": { "alias": "graniteContactsTriggerFor"; "required": false; }; }, {}, never, never, false, never>;
69
- }
@@ -1,8 +0,0 @@
1
- import { TemplateRef } from '@angular/core';
2
- import { Contact, Profile } from './contacts.component.public-types';
3
- export interface ContactExtended extends Contact {
4
- statusTemplate?: TemplateRef<unknown>;
5
- }
6
- export type ProfileData = Omit<Profile, 'name'> & {
7
- initials: string;
8
- };
@@ -1,30 +0,0 @@
1
- export type ContactDefaultStatuses = (typeof CONTACT_DEFAULT_STATUS)[keyof typeof CONTACT_DEFAULT_STATUS];
2
- export declare const CONTACT_DEFAULT_STATUS: {
3
- readonly AVAILABLE: "Available";
4
- readonly AWAY: "Away";
5
- readonly BE_RIGHT_BACK: "BeRightBack";
6
- readonly BUSY: "Busy";
7
- readonly DO_NOT_DISTURB: "DoNotDisturb";
8
- readonly OFFLINE: "Offline";
9
- };
10
- export interface Contact<T = unknown> {
11
- name: string;
12
- label: string;
13
- iconName?: string;
14
- status?: ContactDefaultStatuses | string;
15
- options?: ContactOption<T>[];
16
- disabled?: boolean;
17
- data?: T;
18
- }
19
- export interface SelectedContact<T = unknown> {
20
- contact: ContactOption<T>;
21
- parent?: Contact<T>;
22
- }
23
- export type ContactOption<T = unknown> = Omit<Contact<T>, 'options'>;
24
- export interface Profile {
25
- firstName?: string;
26
- lastName?: string;
27
- name?: string;
28
- jobTitle?: string;
29
- avatar?: string;
30
- }
@@ -1,29 +0,0 @@
1
- import { EventEmitter, QueryList, AfterContentChecked, OnChanges, SimpleChanges, ChangeDetectorRef } from '@angular/core';
2
- import { Contact, Profile, SelectedContact } from './contacts-types/contacts.component.public-types';
3
- import { ContactsTriggerDataComponent } from './contacts-trigger/contacts-trigger-data';
4
- import { GraniteCustomStatusDirective } from './custom-status.directive';
5
- import { ContactExtended, ProfileData } from './contacts-types/contacts.component.private-types';
6
- import { GraniteCustomProfileDirective } from './custom-profile.directive';
7
- import * as i0 from "@angular/core";
8
- export declare class GraniteContactsComponent extends ContactsTriggerDataComponent implements OnChanges, AfterContentChecked {
9
- private cd;
10
- contacts: Contact[];
11
- contactsClass: string;
12
- profile: Profile | unknown;
13
- profileClass: string;
14
- defaultShow: boolean;
15
- readonly selectedContact: EventEmitter<SelectedContact<unknown>>;
16
- _customStatuses: QueryList<GraniteCustomStatusDirective>;
17
- customProfileDirective: GraniteCustomProfileDirective;
18
- _contactsExtended: ContactExtended[];
19
- _profile: ProfileData;
20
- constructor(cd: ChangeDetectorRef);
21
- ngOnChanges(changes: SimpleChanges): void;
22
- ngAfterContentChecked(): void;
23
- onSelectedContact(contact: SelectedContact): void;
24
- private setProperCustomStatusTemplates;
25
- private applyTemplates;
26
- private createProfileData;
27
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteContactsComponent, never>;
28
- static ɵcmp: i0.ɵɵComponentDeclaration<GraniteContactsComponent, "granite-contacts", ["graniteContacts"], { "contacts": { "alias": "contacts"; "required": false; }; "contactsClass": { "alias": "contactsClass"; "required": false; }; "profile": { "alias": "profile"; "required": false; }; "profileClass": { "alias": "profileClass"; "required": false; }; "defaultShow": { "alias": "defaultShow"; "required": false; }; }, { "selectedContact": "selectedContact"; }, ["customProfileDirective", "_customStatuses"], never, false, never>;
29
- }
@@ -1,17 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./contacts.component";
3
- import * as i2 from "./contacts-profile/contacts-profile.component";
4
- import * as i3 from "./contact-item/contact-item.component";
5
- import * as i4 from "./contact-item-default-status/contact-item-default-status.component";
6
- import * as i5 from "./contact-item-title/contact-item-title.component";
7
- import * as i6 from "./contacts-trigger/contacts-trigger-for.directive";
8
- import * as i7 from "./custom-status.directive";
9
- import * as i8 from "./custom-profile.directive";
10
- import * as i9 from "../icon/icon.module";
11
- import * as i10 from "../avatar/avatar.module";
12
- import * as i11 from "@angular/common";
13
- export declare class GraniteContactsModule {
14
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteContactsModule, never>;
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]>;
16
- static ɵinj: i0.ɵɵInjectorDeclaration<GraniteContactsModule>;
17
- }
@@ -1,8 +0,0 @@
1
- import { TemplateRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class GraniteCustomProfileDirective {
4
- templateRef: TemplateRef<unknown>;
5
- constructor(templateRef: TemplateRef<unknown>);
6
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteCustomProfileDirective, never>;
7
- static ɵdir: i0.ɵɵDirectiveDeclaration<GraniteCustomProfileDirective, "[graniteCustomProfile]", never, {}, {}, never, never, false, never>;
8
- }
@@ -1,9 +0,0 @@
1
- import { TemplateRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class GraniteCustomStatusDirective {
4
- templateRef: TemplateRef<unknown>;
5
- graniteCustomStatus: string;
6
- constructor(templateRef: TemplateRef<unknown>);
7
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteCustomStatusDirective, never>;
8
- static ɵdir: i0.ɵɵDirectiveDeclaration<GraniteCustomStatusDirective, "[graniteCustomStatus]", never, { "graniteCustomStatus": { "alias": "graniteCustomStatus"; "required": false; }; }, {}, never, never, false, never>;
9
- }
@@ -1,23 +0,0 @@
1
- /**
2
- * Returns an ease-out CSS animation string with a slightly steeper curve
3
- * than usual.
4
- *
5
- * @param duration Duration in milliseconds
6
- * @param delay Delay in milliseconds
7
- */
8
- export declare function getEaseOutSteep(duration: number, delay?: number): string;
9
- /**
10
- * Returns an ease-out-back CSS animation string with a slightly steeper
11
- * curve than usual.
12
- *
13
- * @param duration Duration in milliseconds
14
- * @param delay Delay in milliseconds
15
- */
16
- export declare function getEaseOutSteepBack(duration: number, delay?: number): string;
17
- /**
18
- * Returns a linear CSS animation string
19
- *
20
- * @param duration Duration in milliseconds
21
- * @param delay Delay in milliseconds
22
- */
23
- export declare function getEaseLinear(duration: number, delay?: number): string;
@@ -1,26 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- /**
3
- * Injection token used to provide components knowledge of what device types
4
- * are being used for input.
5
- */
6
- export declare const GRANITE_CLIENT_INPUT: InjectionToken<ClientInputInterface>;
7
- /**
8
- * Injection token used to provide components knowledge of what device type
9
- * is being used for output.
10
- */
11
- export declare const GRANITE_CLIENT_OUTPUT: InjectionToken<ClientOutputInterface>;
12
- export type InputDeviceTypes = void | 'touch' | 'mouse' | 'keyboard' | 'onscreen-keyboard';
13
- export type OutputDeviceTypes = void | 'touch' | 'desktop';
14
- export interface ClientInputInterface {
15
- devices: InputDeviceTypes[];
16
- }
17
- export interface ClientOutputInterface {
18
- device: OutputDeviceTypes;
19
- }
20
- interface DevicePrefabInterface {
21
- input: ClientInputInterface;
22
- output: ClientOutputInterface;
23
- }
24
- export declare const deviceDesktop: DevicePrefabInterface;
25
- export declare const deviceTouch: DevicePrefabInterface;
26
- export {};
@@ -1,10 +0,0 @@
1
- import { SimpleChanges } from '@angular/core';
2
- type Constructor<T> = new (...args: any[]) => T;
3
- export declare const disabledMixin: <T extends Constructor<Record<string, unknown>>>(Base?: T) => {
4
- new (...args: any[]): {
5
- [x: string]: unknown;
6
- disabled: boolean;
7
- ngOnChanges(changes: SimpleChanges): void;
8
- };
9
- } & T;
10
- export {};
@@ -1,12 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./devices/client-output-desktop.directive";
3
- import * as i2 from "./devices/client-output-touch.directive";
4
- import * as i3 from "./devices/client-input-desktop.directive";
5
- import * as i4 from "./devices/client-input-touch.directive";
6
- import * as i5 from "./hide-on-overflow.directive";
7
- import * as i6 from "./overlay-trigger-for-base.directive";
8
- export declare class GraniteCoreModule {
9
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteCoreModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<GraniteCoreModule, [typeof i1.ClientOutputDesktopDirective, typeof i2.ClientOutputTouchDirective, typeof i3.ClientInputDesktopDirective, typeof i4.ClientInputTouchDirective, typeof i5.GraniteHideOnOverflowDirective, typeof i6.GraniteOverlayTriggerForBaseDirective], never, [typeof i1.ClientOutputDesktopDirective, typeof i2.ClientOutputTouchDirective, typeof i3.ClientInputDesktopDirective, typeof i4.ClientInputTouchDirective, typeof i5.GraniteHideOnOverflowDirective]>;
11
- static ɵinj: i0.ɵɵInjectorDeclaration<GraniteCoreModule>;
12
- }
@@ -1,9 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- /**
3
- * Directive used to tell components and their sub components that client input
4
- * should be adapted for desktop devices, like personal computers.
5
- */
6
- export declare class ClientInputDesktopDirective {
7
- static ɵfac: i0.ɵɵFactoryDeclaration<ClientInputDesktopDirective, never>;
8
- static ɵdir: i0.ɵɵDirectiveDeclaration<ClientInputDesktopDirective, "[graniteClientInputDesktop]", never, {}, {}, never, never, false, never>;
9
- }
@@ -1,9 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- /**
3
- * Directive used to tell components and their sub components that client input
4
- * should be adapted for touch devices, like mobiles and tablets.
5
- */
6
- export declare class ClientInputTouchDirective {
7
- static ɵfac: i0.ɵɵFactoryDeclaration<ClientInputTouchDirective, never>;
8
- static ɵdir: i0.ɵɵDirectiveDeclaration<ClientInputTouchDirective, "[graniteClientInputTouch]", never, {}, {}, never, never, false, never>;
9
- }
@@ -1,9 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- /**
3
- * Directive used to tell components and their sub components that client output
4
- * should be adapted for desktop devices like personal computers.
5
- */
6
- export declare class ClientOutputDesktopDirective {
7
- static ɵfac: i0.ɵɵFactoryDeclaration<ClientOutputDesktopDirective, never>;
8
- static ɵdir: i0.ɵɵDirectiveDeclaration<ClientOutputDesktopDirective, "[graniteClientOutputDesktop]", never, {}, {}, never, never, false, never>;
9
- }
@@ -1,9 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- /**
3
- * Directive used to tell components and their sub components that client output
4
- * should be adapted for touch devices like mobiles and tablets.
5
- */
6
- export declare class ClientOutputTouchDirective {
7
- static ɵfac: i0.ɵɵFactoryDeclaration<ClientOutputTouchDirective, never>;
8
- static ɵdir: i0.ɵɵDirectiveDeclaration<ClientOutputTouchDirective, "[graniteClientOutputTouch]", never, {}, {}, never, never, false, never>;
9
- }
@@ -1,21 +0,0 @@
1
- import { AfterViewInit, ElementRef, OnDestroy, Renderer2 } from '@angular/core';
2
- import { Subscription } from 'rxjs';
3
- import * as i0 from "@angular/core";
4
- export declare class GraniteHideOnOverflowDirective implements AfterViewInit, OnDestroy {
5
- private _elementRef;
6
- private renderer;
7
- resizeObserver: ResizeObserver;
8
- resizeSubscription: Subscription;
9
- mutationObserver: MutationObserver;
10
- constructor(_elementRef: ElementRef, renderer: Renderer2);
11
- ngAfterViewInit(): void;
12
- ngOnDestroy(): void;
13
- hideOnOverflow(): void;
14
- observeResize(): void;
15
- unObserveResize(): void;
16
- subscribeToResize(): void;
17
- observeContentChange(): void;
18
- unObserveContentChange(): void;
19
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteHideOnOverflowDirective, never>;
20
- static ɵdir: i0.ɵɵDirectiveDeclaration<GraniteHideOnOverflowDirective, "[graniteHideOnOverflow]", ["graniteHideOnOverflow"], {}, {}, never, never, false, never>;
21
- }
@@ -1,16 +0,0 @@
1
- import { Direction } from '@angular/cdk/bidi';
2
- import { TemplateRef } from '@angular/core';
3
- import { ClientInputInterface, ClientOutputInterface } from './client-environment';
4
- import * as i0 from "@angular/core";
5
- export type PositionX = 'before' | 'after';
6
- export type PositionY = 'above' | 'below';
7
- export declare class OverlayBaseComponent {
8
- templateRef: TemplateRef<any>;
9
- xPosition: PositionX;
10
- yPosition: PositionY;
11
- direction: Direction;
12
- clientInput: ClientInputInterface;
13
- clientOutput: ClientOutputInterface;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<OverlayBaseComponent, never>;
15
- static ɵdir: i0.ɵɵDirectiveDeclaration<OverlayBaseComponent, never, never, {}, {}, never, never, true, never>;
16
- }
@@ -1,12 +0,0 @@
1
- export interface OverlayPositionConfig {
2
- originX?: 'start' | 'center' | 'end';
3
- originFallbackX?: 'start' | 'center' | 'end';
4
- originY?: 'top' | 'center' | 'bottom';
5
- originFallbackY?: 'top' | 'center' | 'bottom';
6
- overlayX?: 'start' | 'center' | 'end';
7
- overlayFallbackX?: 'start' | 'center' | 'end';
8
- overlayY?: 'top' | 'center' | 'bottom';
9
- overlayFallbackY?: 'top' | 'center' | 'bottom';
10
- offsetX?: number;
11
- offsetY?: number;
12
- }
@@ -1,32 +0,0 @@
1
- import { BlockScrollStrategy, CloseScrollStrategy, PositionStrategy, RepositionScrollStrategy } from '@angular/cdk/overlay';
2
- import { OnDestroy } from '@angular/core';
3
- import { OverlayPositionConfig } from './overlay-position-config';
4
- import { OverlayBaseComponent } from './overlay-base';
5
- import * as i0 from "@angular/core";
6
- export declare class GraniteOverlayTriggerForBaseDirective implements OnDestroy {
7
- /** Client output device information */
8
- private _clientOutput;
9
- /** Client input device information */
10
- private _clientInput;
11
- private _dir;
12
- protected componentRef: OverlayBaseComponent;
13
- protected selector: string;
14
- protected offsetX: number;
15
- protected offsetY: number;
16
- private _overlayRef;
17
- private _overlay;
18
- private _element;
19
- private _viewContainerRef;
20
- private _overlayService;
21
- ngOnDestroy(): void;
22
- protected getPositionConfig(): OverlayPositionConfig;
23
- protected getPositionStrategy(): PositionStrategy;
24
- protected getScrollStrategy(): RepositionScrollStrategy | BlockScrollStrategy | CloseScrollStrategy;
25
- protected setScrollStrategy(scrollStrategy: 'reposition' | 'block' | 'close'): RepositionScrollStrategy | BlockScrollStrategy | CloseScrollStrategy;
26
- protected toggleOverlay(isOpen: boolean): boolean;
27
- protected onOutsideClick(): void;
28
- private _openOverlay;
29
- private _closeOverlay;
30
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteOverlayTriggerForBaseDirective, never>;
31
- static ɵdir: i0.ɵɵDirectiveDeclaration<GraniteOverlayTriggerForBaseDirective, "[graniteOverlayTriggerForBase]", never, {}, {}, never, never, false, never>;
32
- }