@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,15 +0,0 @@
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
- }
@@ -1,23 +0,0 @@
1
- import { QueryList, AfterContentChecked, TemplateRef, ChangeDetectorRef, OnChanges, SimpleChanges } 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, OnChanges {
7
- private cd;
8
- name: string;
9
- firstName: string;
10
- lastName: string;
11
- avatar: string;
12
- status: AvatarDefaultStatuses;
13
- ariaLabel: string | null;
14
- _customStatusesQueryList: QueryList<GraniteCustomAvatarStatusDirective>;
15
- _customStatusDirectives: Record<string, TemplateRef<unknown>>;
16
- _nameInitials: string;
17
- avatarAriaLabel: string;
18
- constructor(cd: ChangeDetectorRef);
19
- ngOnChanges(changes: SimpleChanges): void;
20
- ngAfterContentChecked(): void;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteAvatarComponent, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<GraniteAvatarComponent, "granite-avatar", ["graniteAvatar"], { "name": { "alias": "name"; "required": false; }; "firstName": { "alias": "firstName"; "required": false; }; "lastName": { "alias": "lastName"; "required": false; }; "avatar": { "alias": "avatar"; "required": false; }; "status": { "alias": "status"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; }, {}, ["_customStatusesQueryList"], never, false, never>;
23
- }
@@ -1,7 +0,0 @@
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
- };
@@ -1,11 +0,0 @@
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
- }
@@ -1,9 +0,0 @@
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
- }
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class GraniteEmptyAvatarComponent {
3
- initials: string;
4
- ariaLabel: string | null;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteEmptyAvatarComponent, never>;
6
- static ɵcmp: i0.ɵɵComponentDeclaration<GraniteEmptyAvatarComponent, "granite-empty-avatar", never, { "initials": { "alias": "initials"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; }, {}, never, never, false, never>;
7
- }
@@ -1,19 +0,0 @@
1
- import { OnChanges, SimpleChanges, ElementRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class GraniteBadgeComponent implements OnChanges {
4
- private elementRef;
5
- /**
6
- * Design token name to get the value for the Background color
7
- */
8
- backgroundColor: string;
9
- /**
10
- * Design token name to get the value for the Font color
11
- */
12
- color: string;
13
- /** Pill style badge */
14
- pill: boolean;
15
- constructor(elementRef: ElementRef);
16
- ngOnChanges(changes: SimpleChanges): void;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteBadgeComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<GraniteBadgeComponent, "granite-badge", ["graniteBadge"], { "backgroundColor": { "alias": "backgroundColor"; "required": false; }; "color": { "alias": "color"; "required": false; }; "pill": { "alias": "pill"; "required": false; }; }, {}, never, ["*"], false, never>;
19
- }
@@ -1,8 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./badge.component";
3
- import * as i2 from "@angular/common";
4
- export declare class GraniteBadgeModule {
5
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteBadgeModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<GraniteBadgeModule, [typeof i1.GraniteBadgeComponent], [typeof i2.CommonModule], [typeof i1.GraniteBadgeComponent]>;
7
- static ɵinj: i0.ɵɵInjectorDeclaration<GraniteBadgeModule>;
8
- }
@@ -1,21 +0,0 @@
1
- import { ComponentHarness, BaseHarnessFilters, HarnessPredicate } from '@angular/cdk/testing';
2
- export declare class GraniteBadgeHarness extends ComponentHarness {
3
- static hostSelector: string;
4
- /**
5
- * Gets a `HarnessPredicate` that can be used to search for a `GraniteBadgeHarness` that meets
6
- * certain criteria.
7
- * @param options Options for filtering which badge instances are considered a match.
8
- * @return a `HarnessPredicate` configured with the given options.
9
- */
10
- static with(options?: GraniteBadgeHarnessFilters): HarnessPredicate<GraniteBadgeHarness>;
11
- /** Gets the Badge text. */
12
- getText(): Promise<string>;
13
- /** Whether it's a Pill type badge. */
14
- isPill(): Promise<boolean>;
15
- }
16
- /** A set of criteria that can be used to filter a list of `GraniteBadgeHarness` instances. */
17
- export interface GraniteBadgeHarnessFilters extends BaseHarnessFilters {
18
- /** Only find instances whose text matches the given value. */
19
- text?: string | RegExp;
20
- pill?: boolean;
21
- }
@@ -1,38 +0,0 @@
1
- import { FocusMonitor, FocusOrigin } from '@angular/cdk/a11y';
2
- import { ElementRef, OnChanges, SimpleChanges } from '@angular/core';
3
- import * as i0 from "@angular/core";
4
- export declare enum ButtonSelectors {
5
- graniteButton = "granite-button",
6
- granitePrimaryButton = "granite-primary-button",
7
- graniteFlatButton = "granite-flat-button",
8
- graniteToolbarButton = "granite-toolbar-button"
9
- }
10
- declare const ButtonComponentMixin: {
11
- new (...args: any[]): {
12
- [x: string]: unknown;
13
- disabled: boolean;
14
- ngOnChanges(changes: SimpleChanges): void;
15
- };
16
- } & (new (...args: any[]) => Record<string, unknown>);
17
- export declare class GraniteButtonComponent extends ButtonComponentMixin implements OnChanges {
18
- protected _focusMonitor: FocusMonitor;
19
- protected _elementRef: ElementRef;
20
- toggled: boolean;
21
- _buttonToggled: boolean;
22
- constructor(_focusMonitor: FocusMonitor, _elementRef: ElementRef);
23
- ngOnChanges(changes: SimpleChanges): void;
24
- focus(origin?: FocusOrigin, options?: FocusOptions): void;
25
- private _getHostElement;
26
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteButtonComponent, never>;
27
- static ɵcmp: i0.ɵɵComponentDeclaration<GraniteButtonComponent, "button[graniteButton], button[granitePrimaryButton], button[graniteFlatButton], button[graniteToolbarButton] ", ["graniteButton"], { "disabled": { "alias": "disabled"; "required": false; }; "toggled": { "alias": "toggled"; "required": false; }; }, {}, never, ["*"], false, never>;
28
- }
29
- export declare class GraniteAnchorComponent extends GraniteButtonComponent implements OnChanges {
30
- protected _focusMonitor: FocusMonitor;
31
- protected _elementRef: ElementRef;
32
- constructor(_focusMonitor: FocusMonitor, _elementRef: ElementRef);
33
- _anchorClick(event: Event): void;
34
- ngOnChanges(changes: SimpleChanges): void;
35
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteAnchorComponent, never>;
36
- static ɵcmp: i0.ɵɵComponentDeclaration<GraniteAnchorComponent, "a[graniteButton], a[graniteFlatButton]", ["graniteAnchor"], { "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, ["*"], false, never>;
37
- }
38
- export {};
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./button.component";
3
- export declare class GraniteButtonModule {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteButtonModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<GraniteButtonModule, [typeof i1.GraniteButtonComponent, typeof i1.GraniteAnchorComponent], never, [typeof i1.GraniteButtonComponent, typeof i1.GraniteAnchorComponent]>;
6
- static ɵinj: i0.ɵɵInjectorDeclaration<GraniteButtonModule>;
7
- }
@@ -1,5 +0,0 @@
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
- }
@@ -1,5 +0,0 @@
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
- }
@@ -1,5 +0,0 @@
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
- }
@@ -1,5 +0,0 @@
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
- }
@@ -1,5 +0,0 @@
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
- }
@@ -1,5 +0,0 @@
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
- }
@@ -1,5 +0,0 @@
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
- }
@@ -1,5 +0,0 @@
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
- }
@@ -1,5 +0,0 @@
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
- }
@@ -1,9 +0,0 @@
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
- }
@@ -1,18 +0,0 @@
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
- import * as i12 from "@angular/cdk/scrolling";
14
- export declare class GraniteCardListModule {
15
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteCardListModule, never>;
16
- 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 i12.ScrollingModule], [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]>;
17
- static ɵinj: i0.ɵɵInjectorDeclaration<GraniteCardListModule>;
18
- }
@@ -1,6 +0,0 @@
1
- import { GraniteRadioCheckboxBase } from '../core/radio-checkbox-base';
2
- import * as i0 from "@angular/core";
3
- export declare class GraniteCheckboxGroupComponent extends GraniteRadioCheckboxBase {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteCheckboxGroupComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<GraniteCheckboxGroupComponent, "granite-checkbox-group", never, {}, {}, never, ["*"], false, never>;
6
- }
@@ -1,29 +0,0 @@
1
- import { FocusMonitor, FocusOrigin } from '@angular/cdk/a11y';
2
- import { OnChanges, SimpleChanges, EventEmitter } from '@angular/core';
3
- import { Position } from '../core/types';
4
- import * as i0 from "@angular/core";
5
- export declare class GraniteCheckboxComponent implements OnChanges {
6
- private _focusMonitor;
7
- id: string | null;
8
- checked: boolean;
9
- disabled: boolean;
10
- readonly: boolean;
11
- labelPosition: Position;
12
- ariaLabel: string | null;
13
- ariaLabelledby: string | null;
14
- readonly valueChange: EventEmitter<boolean>;
15
- readonly checkboxChange: EventEmitter<void>;
16
- readonly checkboxBlur: EventEmitter<void>;
17
- private _inputElement;
18
- _positionBefore: boolean;
19
- _checkboxDisabled: boolean;
20
- constructor(_focusMonitor: FocusMonitor);
21
- ngOnChanges(changes: SimpleChanges): void;
22
- focus(origin?: FocusOrigin, options?: FocusOptions): void;
23
- _onBlur(): void;
24
- _checkboxChange(): void;
25
- _checkboxClick(): void;
26
- private _getInputElement;
27
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteCheckboxComponent, never>;
28
- static ɵcmp: i0.ɵɵComponentDeclaration<GraniteCheckboxComponent, "granite-checkbox", ["graniteCheckbox"], { "id": { "alias": "id"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "labelPosition": { "alias": "labelPosition"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; }; }, { "valueChange": "valueChange"; "checkboxChange": "checkboxChange"; "checkboxBlur": "checkboxBlur"; }, never, ["*"], false, never>;
29
- }
@@ -1,8 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./checkbox.component";
3
- import * as i2 from "./checkbox-group.component";
4
- export declare class GraniteCheckboxModule {
5
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteCheckboxModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<GraniteCheckboxModule, [typeof i1.GraniteCheckboxComponent, typeof i2.GraniteCheckboxGroupComponent], never, [typeof i1.GraniteCheckboxComponent, typeof i2.GraniteCheckboxGroupComponent]>;
7
- static ɵinj: i0.ɵɵInjectorDeclaration<GraniteCheckboxModule>;
8
- }
@@ -1,89 +0,0 @@
1
- import { AfterContentInit, ElementRef, EventEmitter, OnChanges, OnDestroy } from '@angular/core';
2
- import { GraniteChipListComponent } from './chip-list.component';
3
- import * as i0 from "@angular/core";
4
- export interface GraniteChipTextControl {
5
- /** Unique identifier for the text control. */
6
- id: string;
7
- /** The text control's placeholder text. */
8
- placeholder: string;
9
- /** Whether the text control has browser focus. */
10
- focused: boolean;
11
- /** Whether the text control is empty. */
12
- empty: boolean;
13
- /** Focuses the text control. */
14
- setFocus(options?: FocusOptions): void;
15
- }
16
- /** Represents an input event on a `graniteChipInput`. */
17
- export interface GraniteChipInputEvent {
18
- /** The native `<input>` element that the event is being fired for. */
19
- input: HTMLInputElement;
20
- /** The value of the input. */
21
- value: string;
22
- /** Reference to the chip input that emitted the event. */
23
- chipInput: GraniteChipInputDirective;
24
- }
25
- export declare class GraniteChipInputDirective implements GraniteChipTextControl, OnChanges, OnDestroy, AfterContentInit {
26
- protected _elementRef: ElementRef<HTMLInputElement>;
27
- /** Unique id for the input. */
28
- id: string;
29
- /** The input's placeholder text. */
30
- placeholder: string;
31
- /** Emitted when a chip is to be added. */
32
- readonly graniteChipInputTokenEnd: EventEmitter<GraniteChipInputEvent>;
33
- /** Register input for chip list */
34
- set graniteChipInputFor(value: GraniteChipListComponent);
35
- /**
36
- * The list of key codes that will trigger a chipEnd event.
37
- *
38
- * Defaults to `[ENTER]`.
39
- */
40
- graniteChipInputSeparatorKeyCodes: readonly number[] | ReadonlySet<number>;
41
- /**
42
- * Whether or not the chipEnd event will be emitted when the input is blurred.
43
- */
44
- get graniteChipInputAddOnBlur(): boolean;
45
- set graniteChipInputAddOnBlur(value: boolean);
46
- _addOnBlur: boolean;
47
- /**
48
- * Whether this is a required field, currently we use it only for setting aria-required.
49
- */
50
- get required(): boolean;
51
- set required(value: boolean);
52
- /** The native input element to which this directive is attached. */
53
- readonly inputElement: HTMLInputElement;
54
- _chipList: GraniteChipListComponent;
55
- focused: boolean;
56
- protected _required: boolean | undefined;
57
- /** Whether the input is disabled. */
58
- get disabled(): boolean;
59
- set disabled(value: boolean);
60
- /** Whether the input is empty. */
61
- get empty(): boolean;
62
- private _disabled;
63
- /** Used to prevent focus moving to chips while user is holding backspace */
64
- private _focusLastChipOnBackspace;
65
- constructor(_elementRef: ElementRef<HTMLInputElement>);
66
- ngOnChanges(): void;
67
- ngOnDestroy(): void;
68
- ngAfterContentInit(): void;
69
- /** Utility method to make host definition/tests more clear. */
70
- _keydown(event?: KeyboardEvent): void;
71
- /**
72
- * Pass events to the keyboard manager. Available here for tests.
73
- */
74
- _keyup(event: KeyboardEvent): void;
75
- /** Checks to see if the blur should emit the (chipEnd) event. */
76
- _blur(): void;
77
- _focus(): void;
78
- /** Checks to see if the (chipEnd) event needs to be emitted. */
79
- _emitChipEnd(event?: KeyboardEvent): void;
80
- _onInput(): void;
81
- /** Focuses the input (called from parent level). */
82
- setFocus(options?: FocusOptions): void;
83
- /** Clears the input */
84
- clear(): void;
85
- /** Checks whether a keycode is one of the configured separators. */
86
- private _isSeparatorKey;
87
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteChipInputDirective, never>;
88
- static ɵdir: i0.ɵɵDirectiveDeclaration<GraniteChipInputDirective, "input[graniteChipInputFor]", ["graniteChipInput", "graniteChipInputFor"], { "id": { "alias": "id"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "graniteChipInputFor": { "alias": "graniteChipInputFor"; "required": false; }; "graniteChipInputSeparatorKeyCodes": { "alias": "graniteChipInputSeparatorKeyCodes"; "required": false; }; "graniteChipInputAddOnBlur": { "alias": "graniteChipInputAddOnBlur"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "graniteChipInputTokenEnd": "graniteChipInputTokenEnd"; }, never, never, false, never>;
89
- }
@@ -1,185 +0,0 @@
1
- import { FocusKeyManager } from '@angular/cdk/a11y';
2
- import { Directionality } from '@angular/cdk/bidi';
3
- import { SelectionModel } from '@angular/cdk/collections';
4
- import { AfterContentInit, ChangeDetectorRef, DoCheck, ElementRef, OnDestroy, OnInit, QueryList, EventEmitter } from '@angular/core';
5
- import { ControlValueAccessor, FormGroupDirective, NgControl, NgForm } from '@angular/forms';
6
- import { Observable } from 'rxjs';
7
- import { GraniteChipComponent, GraniteChipEvent, GraniteChipSelectionChangeEvent } from './chip.component';
8
- import { GraniteChipTextControl } from './chip-input';
9
- import * as i0 from "@angular/core";
10
- declare abstract class GraniteChipListBase {
11
- _parentForm: NgForm;
12
- _parentFormGroup: FormGroupDirective;
13
- ngControl: NgControl;
14
- readonly stateChanges: EventEmitter<void>;
15
- constructor(_parentForm: NgForm, _parentFormGroup: FormGroupDirective, ngControl: NgControl);
16
- }
17
- export declare class GraniteChipListComponent extends GraniteChipListBase implements ControlValueAccessor, AfterContentInit, DoCheck, OnInit, OnDestroy {
18
- protected _elementRef: ElementRef<HTMLElement>;
19
- private _changeDetectorRef;
20
- private _dir;
21
- ariaLabel: string | null;
22
- ariaLabelledby: string | null;
23
- ariaOrientation: 'horizontal' | 'vertical';
24
- /** The chips contained within this chip list. */
25
- chips: QueryList<GraniteChipComponent>;
26
- readonly controlType: string;
27
- /** Uid of the chip list */
28
- _uid: string;
29
- /** Tab index for the chip list. */
30
- _tabIndex: number;
31
- /**
32
- * User defined tab index.
33
- * When it is not null, use user defined tab index. Otherwise use _tabIndex
34
- */
35
- _userTabIndex: number | null;
36
- /** The FocusKeyManager which handles focus. */
37
- _keyManager: FocusKeyManager<GraniteChipComponent>;
38
- _selectionModel: SelectionModel<GraniteChipComponent>;
39
- /** The chip input to add more chips */
40
- protected _chipInput: GraniteChipTextControl;
41
- protected _disabled: boolean;
42
- protected _selectable: boolean;
43
- /**
44
- * When a chip is destroyed, we store the index of the destroyed chip until the chips
45
- * query list notifies about the update. This is necessary because we cannot determine an
46
- * appropriate chip that should receive focus until the array of chips updated completely.
47
- */
48
- private _lastDestroyedChipIndex;
49
- /** Subject that emits when the component has been destroyed. */
50
- private readonly _destroyed;
51
- /** Subscription to focus changes in the chips. */
52
- private _chipFocusSubscription;
53
- /** Subscription to blur changes in the chips. */
54
- private _chipBlurSubscription;
55
- /** Subscription to selection changes in chips. */
56
- private _chipSelectionSubscription;
57
- /** Subscription to remove changes in chips. */
58
- private _chipRemoveSubscription;
59
- /** The ARIA role applied to the chip list. */
60
- get role(): string | null;
61
- set role(role: string | null);
62
- private _explicitRole?;
63
- /** Whether the user should be allowed to select multiselect chips. */
64
- get multiselect(): boolean;
65
- set multiselect(value: boolean);
66
- private _multiple;
67
- /**
68
- * Whether the chip list is disabled.
69
- */
70
- get disabled(): boolean;
71
- set disabled(value: boolean);
72
- /**
73
- * Whether or not this chip list is selectable. When a chip list is not selectable,
74
- * the selected states for all the chips inside the chip list are always ignored.
75
- */
76
- get selectable(): boolean;
77
- set selectable(value: boolean);
78
- set tabindex(value: number);
79
- /** Unique identifier for the chip list. */
80
- get id(): string;
81
- /** Whether any chips or the matChipInput inside of this chip-list has focus. */
82
- get focused(): boolean;
83
- /** Whether the chip list is empty. */
84
- get empty(): boolean;
85
- /** The array of selected chips inside chip list. */
86
- get selected(): GraniteChipComponent[] | GraniteChipComponent;
87
- /** Combined stream of all of the child chips' selection change events. */
88
- get chipSelectionChanges(): Observable<GraniteChipSelectionChangeEvent>;
89
- /** Combined stream of all of the child chips' focus change events. */
90
- get chipFocusChanges(): Observable<GraniteChipEvent>;
91
- /** Combined stream of all of the child chips' blur change events. */
92
- get chipBlurChanges(): Observable<GraniteChipEvent>;
93
- /** Combined stream of all of the child chips' remove change events. */
94
- get chipRemoveChanges(): Observable<GraniteChipEvent>;
95
- constructor(_elementRef: ElementRef<HTMLElement>, _changeDetectorRef: ChangeDetectorRef, _dir: Directionality, _parentForm: NgForm, _parentFormGroup: FormGroupDirective, ngControl: NgControl);
96
- /** Function when changed */
97
- _onChange: (value: any) => void;
98
- /** Function when changed */
99
- _onTouched: () => void;
100
- ngAfterContentInit(): void;
101
- ngOnInit(): void;
102
- ngDoCheck(): void;
103
- ngOnDestroy(): void;
104
- /** Associates an HTML input element with this chip list. */
105
- registerInput(inputElement: GraniteChipTextControl): void;
106
- writeValue(value: any): void;
107
- registerOnChange(fn: (value: any) => void): void;
108
- registerOnTouched(fn: () => void): void;
109
- setDisabledState(isDisabled: boolean): void;
110
- /**
111
- * Focus chip list when click on the container.
112
- */
113
- onContainerClick(event: MouseEvent): void;
114
- /**
115
- * Focuses the first non-disabled chip in this chip list, or the associated input when there
116
- * are no eligible chips.
117
- */
118
- focus(options?: FocusOptions): void;
119
- /** Attempt to focus an input if we have one. */
120
- _focusInput(options?: FocusOptions): void;
121
- /**
122
- * Pass events to the keyboard manager. Available here for tests.
123
- */
124
- _keydown(event: KeyboardEvent): void;
125
- /** When blurred, mark the field as touched when focus moved outside the chip list. */
126
- _blur(): void;
127
- /** Mark the field as touched */
128
- _markAsTouched(): void;
129
- /**
130
- * Removes the `tabindex` from the chip list and resets it back afterwards, allowing the
131
- * user to tab out of it. This prevents the list from capturing focus and redirecting
132
- * it back to the first chip, creating a focus trap, if it user tries to tab away.
133
- */
134
- _allowFocusEscape(): void;
135
- /**
136
- * Check the tab index as you should not be allowed to focus an empty list.
137
- */
138
- protected _updateTabIndex(): void;
139
- /**
140
- * If the amount of chips changed, we need to update the
141
- * key manager state and focus the next closest chip.
142
- */
143
- protected _updateFocusForDestroyedChips(): void;
144
- /**
145
- * Utility to ensure all indexes are valid.
146
- *
147
- * @param index The index to be checked.
148
- * @returns True if the index is valid for our list of chips.
149
- */
150
- private _isValidIndex;
151
- private _setSelectionByValue;
152
- /**
153
- * Finds and selects the chip based on its value.
154
- * @returns Chip that has the corresponding value.
155
- */
156
- private _selectValue;
157
- private _initializeSelection;
158
- /**
159
- * Deselects every chip in the list.
160
- * @param skip Chip that should not be deselected.
161
- */
162
- private _clearSelection;
163
- /**
164
- * Sorts the model values, ensuring that they keep the same
165
- * order that they have in the panel.
166
- */
167
- private _sortValues;
168
- private _compareWith;
169
- private _resetChips;
170
- private _dropSubscriptions;
171
- /** Listens to user-generated selection events on each chip. */
172
- private _listenToChipsSelection;
173
- /** Listens to user-generated selection events on each chip. */
174
- private _listenToChipsFocus;
175
- private _listenToChipsRemoved;
176
- /** Checks whether an event comes from inside a chip element. */
177
- private _originatesFromChip;
178
- /** Checks whether any of the chips is focused. */
179
- private _hasFocusedChip;
180
- /** Syncs the list's state with the individual chips. */
181
- private _syncChipsState;
182
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteChipListComponent, [null, null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; self: true; }]>;
183
- static ɵcmp: i0.ɵɵComponentDeclaration<GraniteChipListComponent, "granite-chip-list", ["graniteChipList"], { "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; }; "ariaOrientation": { "alias": "aria-orientation"; "required": false; }; "role": { "alias": "role"; "required": false; }; "multiselect": { "alias": "multiselect"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; }, {}, ["chips"], ["*"], false, never>;
184
- }
185
- export {};