@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,9 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- export type MenuPositionX = 'before' | 'after' | 'center';
9
- export type MenuPositionY = 'above' | 'below' | 'center';
@@ -1,17 +0,0 @@
1
- import { AnimationTriggerMetadata } from '@angular/animations';
2
- /**
3
- * Animations used by the `granite-menu` component, showing the touch interface.
4
- * @docs-private
5
- */
6
- export declare const graniteMenuTouchAnimations: {
7
- /**
8
- * This animation trigger controls the menu panel's entry and exit from the
9
- * stage on touch output devices.
10
- */
11
- readonly transformMenuTouch: AnimationTriggerMetadata;
12
- /**
13
- * This animation trigger controls the close button's entry and exit from the
14
- * stage on touch output devices, using the same states as the menu panel.
15
- */
16
- readonly transformCloseButton: AnimationTriggerMetadata;
17
- };
@@ -1,5 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class GraniteMenuTouchCloseComponent {
3
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteMenuTouchCloseComponent, never>;
4
- static ɵcmp: i0.ɵɵComponentDeclaration<GraniteMenuTouchCloseComponent, "[graniteMenuTouchCloseItem]", ["graniteMenuTouchCloseItem"], {}, {}, never, ["*"], false, never>;
5
- }
@@ -1,14 +0,0 @@
1
- import { _MenuBaseComponent } from './menu-base';
2
- import * as i0 from "@angular/core";
3
- export declare class GraniteMenuTouchTitleItemComponent {
4
- /**
5
- * Whether the menu item acts as a trigger to return to a parent menu
6
- * (used for styling)
7
- */
8
- _triggersBack: boolean;
9
- constructor(
10
- /** If this is an item on a _submenu_, its parent menu will have a parent */
11
- _parentMenu: _MenuBaseComponent);
12
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteMenuTouchTitleItemComponent, [{ optional: true; }]>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<GraniteMenuTouchTitleItemComponent, "[graniteMenuTouchTitleItem]", ["graniteMenuTouchTitleItem"], {}, {}, never, ["*"], false, never>;
14
- }
@@ -1,200 +0,0 @@
1
- import { AfterContentInit, ChangeDetectorRef, ElementRef, OnChanges, OnDestroy, SimpleChanges, ViewContainerRef } from '@angular/core';
2
- import { FocusMonitor, FocusOrigin } from '@angular/cdk/a11y';
3
- import { Directionality } from '@angular/cdk/bidi';
4
- import { Overlay } from '@angular/cdk/overlay';
5
- import { _MenuBaseComponent } from './menu-base';
6
- import { GraniteMenuItemComponent } from './menu-item.component';
7
- import { ClientInputInterface, ClientOutputInterface } from '../core/client-environment';
8
- import * as i0 from "@angular/core";
9
- /**
10
- * Directive used to turn a button element into a (popup) menu trigger
11
- *
12
- * Stripped-down version of Angular Material's menu trigger directive (.../menu/menu-trigger.ts)
13
- */
14
- export declare class GraniteMenuTriggerForDirective implements AfterContentInit, OnDestroy, OnChanges {
15
- private _overlay;
16
- private _element;
17
- private _viewContainerRef;
18
- private _changeDetectionRef;
19
- /** If this is a _submenu_ trigger, it will have a parent menu */
20
- private _parentMenu;
21
- /** Client input device information */
22
- private _clientInput;
23
- /** Client output device information */
24
- private _clientOutput;
25
- /**
26
- * If this is a _submenu_ trigger, there should be a corresponding menu
27
- * item directive present as well:
28
- *
29
- * <button graniteMenuItem [graniteMenuTriggerFor]="...">
30
- * ^-- This one
31
- */
32
- private _menuItemInstance;
33
- private _dir;
34
- private _focusMonitor;
35
- /** References the menu instance that the trigger is associated with. */
36
- menu: _MenuBaseComponent;
37
- openOnClick?: boolean;
38
- /** Whether the associated menu is open */
39
- isMenuOpened: boolean;
40
- private openedBy;
41
- private _hoverSubscription;
42
- private _menuCloseSubscription;
43
- private _closingActionsSubscription;
44
- private _portal;
45
- private _overlayRef;
46
- private _document?;
47
- private _touchStartTime;
48
- private _touchTimeTaken;
49
- private _touchStartX;
50
- private _touchStartY;
51
- private _touchCurrentX;
52
- private _touchCurrentY;
53
- private _touchTranslateX;
54
- private _touchLockedX;
55
- private _touchMaxX;
56
- private _touchTouchingElement;
57
- constructor(_overlay: Overlay, _element: ElementRef<HTMLElement>, _viewContainerRef: ViewContainerRef, _changeDetectionRef: ChangeDetectorRef,
58
- /** If this is a _submenu_ trigger, it will have a parent menu */
59
- _parentMenu: _MenuBaseComponent,
60
- /** Client input device information */
61
- _clientInput: ClientInputInterface,
62
- /** Client output device information */
63
- _clientOutput: ClientOutputInterface,
64
- /**
65
- * If this is a _submenu_ trigger, there should be a corresponding menu
66
- * item directive present as well:
67
- *
68
- * <button graniteMenuItem [graniteMenuTriggerFor]="...">
69
- * ^-- This one
70
- */
71
- _menuItemInstance: GraniteMenuItemComponent, _dir: Directionality, _focusMonitor: FocusMonitor, document?: any);
72
- ngOnChanges(changes: SimpleChanges): void;
73
- ngAfterContentInit(): void;
74
- ngOnDestroy(): void;
75
- /** Handles change of associated menu */
76
- _handleMenuChange(): void;
77
- isOpen(): boolean;
78
- /** Open the associated menu */
79
- openMenu(): void;
80
- /** Emits an eventtype when the menu is opened */
81
- openedEvent(): void;
82
- /** Whether the menu triggers a sub-menu or a top-level one. */
83
- triggersSubmenu(): boolean;
84
- /** Toggles the menu between the open and closed states. */
85
- toggleMenu(): void;
86
- /** Close the associated menu */
87
- closeMenu(): void;
88
- /**
89
- * Focuses the menu trigger.
90
- * @param origin Source of the menu trigger's focus.
91
- */
92
- focus(origin?: FocusOrigin, options?: FocusOptions): void;
93
- /** Detach menu portal from overlay and update open state */
94
- _destroyMenu(): void;
95
- /** Handles mouse presses on the trigger. */
96
- _handleMousedown(event: MouseEvent): void;
97
- /** Handles key presses on the trigger. */
98
- _handleKeydown(event: KeyboardEvent): void;
99
- /** Handles click events on the trigger. */
100
- _handleClick(event: MouseEvent): void;
101
- /**
102
- * Handles touch start events on the trigger.
103
- * Needs to be an arrow function so we can easily use addEventListener and removeEventListener.
104
- */
105
- private _handleTouchStart;
106
- /** Handles the cases where the user hovers over the trigger. */
107
- private _handleHover;
108
- /**
109
- * Restores focus to the element that was focused before the menu was open.
110
- * Could be the root trigger button or a submenu trigger item
111
- */
112
- private _restoreFocus;
113
- private _setIsMenuOpen;
114
- /**
115
- * This method checks that a valid instance of MenuComponent has been passed into
116
- * graniteMenuTriggerFor. If not, an exception is thrown.
117
- */
118
- private _checkMenu;
119
- /**
120
- * Returns strategy for positioning the overlay for desktop devices:
121
- * Place adjacent to the trigger button (preferably immediately below)
122
- * in order to show as much of the menu as possible.
123
- */
124
- private _desktopPositionStrategy;
125
- /**
126
- * Sets the appropriate positions on a position strategy
127
- * so the overlay connects with the trigger correctly.
128
- * @param positionStrategy Strategy whose position to update.
129
- */
130
- private _setPosition;
131
- /** Returns a stream that emits whenever an action that should close the menu occurs. */
132
- private _menuClosingActions;
133
- /**
134
- * Whether to automatically open submenus on hover. This is true when showing
135
- * desktop menus and having mouse support.
136
- */
137
- private _openOnHover;
138
- /**
139
- * Whether to toggle submenus on click. This is true when showing desktop menus
140
- * without mouse support. Which, by the way, is not a great idea to begin with.
141
- */
142
- private _toggleOnSubmenuClick;
143
- /** Set animation state to bring a newly opened menu into view */
144
- private animateOpenMenu;
145
- private animateTouchOpenMenu;
146
- /** Set animation state to close the active menu */
147
- private animateCloseMenu;
148
- private _animateTouchCloseMenu;
149
- /**
150
- * Set animation state to place the menu and any parent at the given
151
- * horizontal position, i.e. following touch pan movement.
152
- *
153
- * @param xOffset Horizontal offset
154
- */
155
- private animateSetMenuPosition;
156
- /**
157
- * Returns strategy for positioning the overlay depending on what type of
158
- * device the menu is being shown on
159
- */
160
- private _positionStrategy;
161
- /**
162
- * Returns strategy for positioning the overlay for touch devices:
163
- * Place centered at the bottom of the screen.
164
- */
165
- private _touchPositionStrategy;
166
- /**
167
- * Handles touch start events on the overlay host element (wrapper).
168
- * Needs to be an arrow function so we can easily use addEventListener and removeEventListener.
169
- */
170
- private _handleOverlayTouchStart;
171
- private _handleOverlayTouchMove;
172
- private _handleOverlayTouchEnd;
173
- /**
174
- * Remove touch device pan/swipe listeners from overlay host element
175
- */
176
- private addOverlayListeners;
177
- /**
178
- * Remove touch device pan/swipe listeners from overlay host element
179
- */
180
- private removeOverlayListeners;
181
- /**
182
- * Standard exponential ease out function
183
- *
184
- * @param current Current value
185
- * @param offset Offset value, to which calculated value will be added
186
- * @param target The target value
187
- * @param end Value to which current value is compared
188
- */
189
- private easeOutExpo;
190
- /**
191
- * Sets the scroll strategy for the overlay based on the client output device and menu scroll strategy input.
192
- *
193
- * @param {OutputDeviceTypes} clientOutputDevice - The type of client output device (e.g., 'touch').
194
- * @param {'reposition' | 'close'} menuScrollStrategyInput - The scroll strategy input for the menu.
195
- * @returns {ScrollStrategy} The appropriate scroll strategy for the overlay.
196
- */
197
- private setScrollStrategyToOverylay;
198
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteMenuTriggerForDirective, [null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; self: true; }, { optional: true; }, null, null]>;
199
- static ɵdir: i0.ɵɵDirectiveDeclaration<GraniteMenuTriggerForDirective, "[graniteMenuTriggerFor]", ["graniteMenuTriggerFor"], { "menu": { "alias": "graniteMenuTriggerFor"; "required": false; }; "openOnClick": { "alias": "openOnClick"; "required": false; }; }, {}, never, never, false, never>;
200
- }
@@ -1,6 +0,0 @@
1
- import { _MenuBaseComponent } from './menu-base';
2
- import * as i0 from "@angular/core";
3
- export declare class GraniteMenuComponent extends _MenuBaseComponent {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteMenuComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<GraniteMenuComponent, "granite-menu", ["graniteMenu"], {}, {}, never, ["*"], false, never>;
6
- }
@@ -1,18 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./menu.component";
3
- import * as i2 from "./menu-item.component";
4
- import * as i3 from "./menu-trigger-for.directive";
5
- import * as i4 from "./menu-touch-close.component";
6
- import * as i5 from "./menu-touch-title.component";
7
- import * as i6 from "./divider.directive";
8
- import * as i7 from "./title.directive";
9
- import * as i8 from "./menu-custom-template.directive";
10
- import * as i9 from "@angular/common";
11
- import * as i10 from "@angular/cdk/overlay";
12
- import * as i11 from "@angular/cdk/portal";
13
- import * as i12 from "../icon/icon.module";
14
- export declare class GraniteMenuModule {
15
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteMenuModule, never>;
16
- static ɵmod: i0.ɵɵNgModuleDeclaration<GraniteMenuModule, [typeof i1.GraniteMenuComponent, typeof i2.GraniteMenuItemComponent, typeof i3.GraniteMenuTriggerForDirective, typeof i4.GraniteMenuTouchCloseComponent, typeof i5.GraniteMenuTouchTitleItemComponent, typeof i6.GraniteDividerDirective, typeof i7.GraniteTitleDirective, typeof i8.GraniteMenuCustomTemplateDirective], [typeof i9.CommonModule, typeof i10.OverlayModule, typeof i11.PortalModule, typeof i12.GraniteIconModule], [typeof i1.GraniteMenuComponent, typeof i2.GraniteMenuItemComponent, typeof i3.GraniteMenuTriggerForDirective, typeof i4.GraniteMenuTouchCloseComponent, typeof i5.GraniteMenuTouchTitleItemComponent, typeof i6.GraniteDividerDirective, typeof i7.GraniteTitleDirective, typeof i8.GraniteMenuCustomTemplateDirective]>;
17
- static ɵinj: i0.ɵɵInjectorDeclaration<GraniteMenuModule>;
18
- }
@@ -1,68 +0,0 @@
1
- import { ComponentHarness, BaseHarnessFilters, HarnessPredicate } from '@angular/cdk/testing';
2
- /**
3
- * Test harness for menu component
4
- *
5
- * Stripped-down version of the Angular Material menu test harness (.../menu/menu-harness.ts)
6
- * just to get things going.
7
- */
8
- export declare class GraniteMenuHarness extends ComponentHarness {
9
- /**
10
- * The selector for the host element of a `MenuComponent` instance,
11
- * i.e. the button element used to open the menu.
12
- */
13
- static hostSelector: string;
14
- private _documentRootLocator;
15
- /**
16
- * Gets a `HarnessPredicate` that can be used to search for a `MenuHarness` that meets
17
- * certain criteria.
18
- * @param options Options for filtering which menu item instances are considered a match.
19
- * @return a `HarnessPredicate` configured with the given options.
20
- */
21
- static with(options?: GraniteMenuHarnessFilters): HarnessPredicate<GraniteMenuHarness>;
22
- /** Gets the text of the menu trigger */
23
- getText(): Promise<string>;
24
- /** Opens the menu, unless already open */
25
- open(): Promise<void>;
26
- /** Closes the menu, unless already closed */
27
- close(): Promise<void>;
28
- /** Whether the menu is open */
29
- isOpen(): Promise<boolean>;
30
- /**
31
- * Gets a list of `GraniteMenuItemHarness` representing the items in the menu.
32
- * @param filters Optionally filters which menu items are included.
33
- */
34
- getItems(filters?: Omit<GraniteMenuItemHarnessFilters, 'ancestor'>): Promise<GraniteMenuItemHarness[]>;
35
- /** Gets the menu panel (popup) associated with the menu */
36
- private _getMenuPanel;
37
- /** Gets the id of the menu panel (popup) associated with this menu */
38
- private _getPanelId;
39
- }
40
- export declare class GraniteMenuItemHarness extends ComponentHarness {
41
- /** The selector for the host element of a `MenuItemComponent` instance. */
42
- static hostSelector: string;
43
- /**
44
- * Gets a `HarnessPredicate` that can be used to search for a `GraniteMenuItemHarness` that meets
45
- * certain criteria.
46
- * @param options Options for filtering which menu item instances are considered a match.
47
- * @return a `HarnessPredicate` configured with the given options.
48
- */
49
- static with(options?: GraniteMenuItemHarnessFilters): HarnessPredicate<GraniteMenuItemHarness>;
50
- /** Gets the text of the menu item. */
51
- getText(): Promise<string>;
52
- /** Whether this item has a submenu. */
53
- hasSubmenu(): Promise<boolean>;
54
- /** Gets the submenu associated with this menu item, or null if none. */
55
- getSubmenu(): Promise<GraniteMenuHarness | null>;
56
- /** Clicks the menu item. */
57
- click(): Promise<void>;
58
- }
59
- /** A set of criteria that can be used to filter a list of `MenuHarness` instances. */
60
- export interface GraniteMenuHarnessFilters extends BaseHarnessFilters {
61
- /** Only find instances whose text matches the given value. */
62
- text?: string | RegExp;
63
- }
64
- /** A set of criteria that can be used to filter a list of `GraniteMenuItemHarness` instances. */
65
- export interface GraniteMenuItemHarnessFilters extends BaseHarnessFilters {
66
- /** Only find instances whose text matches the given value. */
67
- text?: string | RegExp;
68
- }
@@ -1,5 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class GraniteTitleDirective {
3
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteTitleDirective, never>;
4
- static ɵdir: i0.ɵɵDirectiveDeclaration<GraniteTitleDirective, "[graniteTitle]", ["graniteTitle"], {}, {}, never, never, false, never>;
5
- }
@@ -1,8 +0,0 @@
1
- import { LegendBaseComponent } from '../progress-bar-legend-base';
2
- import { GraniteProgressLegendInterface } from '../progress-bar.model';
3
- import * as i0 from "@angular/core";
4
- export declare class GraniteProgressBarLegendComponent extends LegendBaseComponent {
5
- legendItems: GraniteProgressLegendInterface[];
6
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteProgressBarLegendComponent, never>;
7
- static ɵcmp: i0.ɵɵComponentDeclaration<GraniteProgressBarLegendComponent, "granite-progress-bar-legend", never, { "legendItems": { "alias": "legendItems"; "required": false; }; }, {}, never, never, false, never>;
8
- }
@@ -1,8 +0,0 @@
1
- import { OverlayBaseComponent, PositionX } from '../core/overlay-base';
2
- import * as i0 from "@angular/core";
3
- export declare class LegendBaseComponent extends OverlayBaseComponent {
4
- readonly panelId: string;
5
- xPosition: PositionX;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<LegendBaseComponent, never>;
7
- static ɵdir: i0.ɵɵDirectiveDeclaration<LegendBaseComponent, never, never, {}, {}, never, never, true, never>;
8
- }
@@ -1,18 +0,0 @@
1
- import { GraniteProgressBarLegendComponent } from './progress-bar-legend/progress-bar-legend.component';
2
- import { GraniteOverlayTriggerForBaseDirective } from '../core/overlay-trigger-for-base.directive';
3
- import { OverlayBaseComponent } from '../core/overlay-base';
4
- import { BlockScrollStrategy, CloseScrollStrategy, RepositionScrollStrategy } from '@angular/cdk/overlay';
5
- import * as i0 from "@angular/core";
6
- export declare class GraniteProgressBarLegendTriggerForDirective extends GraniteOverlayTriggerForBaseDirective {
7
- get legend(): OverlayBaseComponent;
8
- set legend(value: GraniteProgressBarLegendComponent);
9
- isLegendOpen: boolean;
10
- protected selector: string;
11
- protected offsetY: number;
12
- handleKeydown(event: KeyboardEvent): void;
13
- handleClick(): void;
14
- onOutsideClick(): void;
15
- getScrollStrategy(): RepositionScrollStrategy | BlockScrollStrategy | CloseScrollStrategy;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteProgressBarLegendTriggerForDirective, never>;
17
- static ɵdir: i0.ɵɵDirectiveDeclaration<GraniteProgressBarLegendTriggerForDirective, "[graniteProgressBarLegendTriggerFor]", never, { "legend": { "alias": "graniteProgressBarLegendTriggerFor"; "required": false; }; }, {}, never, never, false, never>;
18
- }
@@ -1,28 +0,0 @@
1
- import { OnChanges, SimpleChanges } from '@angular/core';
2
- import { GraniteProgressInterface, GraniteProgressLegendInterface } from './progress-bar.model';
3
- import * as i0 from "@angular/core";
4
- export declare class GraniteProgressBarComponent implements OnChanges {
5
- progressBarData: GraniteProgressInterface[];
6
- legendData: GraniteProgressLegendInterface[];
7
- showLabel: boolean;
8
- showLegend: boolean;
9
- DEFAULT_TOTAL: number;
10
- DEFAULT_BACKGROUND: string;
11
- DEFAULT_STACK_COLOR: string;
12
- DEFAULT_COLOR: string;
13
- total: number;
14
- legendItems: GraniteProgressLegendInterface[];
15
- getBackgroundColor(): string;
16
- getFontColor(color: string): string;
17
- getStackColor(color: string): string;
18
- getColorVar(color: string): string;
19
- getWidth(value: number): number;
20
- getStringOfWidth(width: number): string;
21
- checkStackTotal(): void;
22
- getStackTotal(): number;
23
- setLegendItems(): void;
24
- getLegendItems(data: GraniteProgressInterface[] | GraniteProgressLegendInterface[]): GraniteProgressLegendInterface[];
25
- ngOnChanges(changes: SimpleChanges): void;
26
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteProgressBarComponent, 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>;
28
- }
@@ -1,11 +0,0 @@
1
- export interface GraniteProgressInterface {
2
- value: number;
3
- label?: string;
4
- valueLabel?: string;
5
- backgroundColor?: string;
6
- foregroundColor?: string;
7
- }
8
- export interface GraniteProgressLegendInterface {
9
- label: string;
10
- backgroundColor: string;
11
- }
@@ -1,14 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./progress-bar.component";
3
- import * as i2 from "./progress-bar-legend/progress-bar-legend.component";
4
- import * as i3 from "./progress-bar-legend-trigger-for.directive";
5
- import * as i4 from "@angular/common";
6
- import * as i5 from "../core/core.module";
7
- import * as i6 from "@ifsworld/granite-components/tooltip";
8
- import * as i7 from "../icon/icon.module";
9
- import * as i8 from "../button/button.module";
10
- export declare class GraniteProgressBarModule {
11
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteProgressBarModule, never>;
12
- static ɵmod: i0.ɵɵNgModuleDeclaration<GraniteProgressBarModule, [typeof i1.GraniteProgressBarComponent, typeof i2.GraniteProgressBarLegendComponent, typeof i3.GraniteProgressBarLegendTriggerForDirective], [typeof i4.CommonModule, typeof i5.GraniteCoreModule, typeof i6.GraniteTooltipModule, typeof i7.GraniteIconModule, typeof i8.GraniteButtonModule], [typeof i1.GraniteProgressBarComponent]>;
13
- static ɵinj: i0.ɵɵInjectorDeclaration<GraniteProgressBarModule>;
14
- }
@@ -1,34 +0,0 @@
1
- import { EventEmitter, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
2
- import { FocusMonitor, FocusOrigin } from '@angular/cdk/a11y';
3
- import { UniqueSelectionDispatcher } from '@angular/cdk/collections';
4
- import { Position } from '../core/types';
5
- import * as i0 from "@angular/core";
6
- export declare class GraniteRadioButtonComponent implements OnChanges, OnDestroy {
7
- private _focusMonitor;
8
- private _radioDispatcher;
9
- value: any;
10
- id: string | null;
11
- name: string;
12
- checked: boolean;
13
- required: boolean;
14
- disabled: boolean;
15
- readonly: boolean;
16
- labelPosition: Position;
17
- ariaLabel: string | null;
18
- ariaLabelledby: string | null;
19
- readonly radioChange: EventEmitter<any>;
20
- readonly radioBlur: EventEmitter<void>;
21
- private _inputElement;
22
- _positionBefore: boolean;
23
- _radioDisabled: boolean;
24
- private _removeUniqueSelectionListenerFn;
25
- constructor(_focusMonitor: FocusMonitor, _radioDispatcher: UniqueSelectionDispatcher);
26
- ngOnChanges(changes: SimpleChanges): void;
27
- ngOnDestroy(): void;
28
- focus(origin?: FocusOrigin, options?: FocusOptions): void;
29
- _radioChange(element: Partial<HTMLInputElement>): void;
30
- _onBlur(): void;
31
- private _getInputElement;
32
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteRadioButtonComponent, never>;
33
- static ɵcmp: i0.ɵɵComponentDeclaration<GraniteRadioButtonComponent, "granite-radio-button", ["graniteRadioButton"], { "value": { "alias": "value"; "required": false; }; "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "required": { "alias": "required"; "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; }; }, { "radioChange": "radioChange"; "radioBlur": "radioBlur"; }, never, ["*"], false, never>;
34
- }
@@ -1,8 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./radio-button.component";
3
- import * as i2 from "./radio-group.component";
4
- export declare class GraniteRadioButtonModule {
5
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteRadioButtonModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<GraniteRadioButtonModule, [typeof i1.GraniteRadioButtonComponent, typeof i2.GraniteRadioGroupComponent], never, [typeof i1.GraniteRadioButtonComponent, typeof i2.GraniteRadioGroupComponent]>;
7
- static ɵinj: i0.ɵɵInjectorDeclaration<GraniteRadioButtonModule>;
8
- }
@@ -1,6 +0,0 @@
1
- import { GraniteRadioCheckboxBase } from '../core/radio-checkbox-base';
2
- import * as i0 from "@angular/core";
3
- export declare class GraniteRadioGroupComponent extends GraniteRadioCheckboxBase {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteRadioGroupComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<GraniteRadioGroupComponent, "granite-radio-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 GraniteToggleSwitchComponent 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 toggleChange: EventEmitter<void>;
16
- readonly toggleBlur: EventEmitter<void>;
17
- private _inputElement;
18
- _positionBefore: boolean;
19
- _toggleSwitchDisabled: boolean;
20
- constructor(_focusMonitor: FocusMonitor);
21
- ngOnChanges(changes: SimpleChanges): void;
22
- focus(origin?: FocusOrigin, options?: FocusOptions): void;
23
- _onBlur(): void;
24
- _toggleSwitchChange(): void;
25
- _toggleSwitchClick(): void;
26
- private _getInputElement;
27
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteToggleSwitchComponent, never>;
28
- static ɵcmp: i0.ɵɵComponentDeclaration<GraniteToggleSwitchComponent, "granite-toggle-switch", ["graniteToggleSwitch"], { "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"; "toggleChange": "toggleChange"; "toggleBlur": "toggleBlur"; }, never, ["*"], false, never>;
29
- }
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./toggle-switch.component";
3
- export declare class GraniteToggleSwitchModule {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteToggleSwitchModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<GraniteToggleSwitchModule, [typeof i1.GraniteToggleSwitchComponent], never, [typeof i1.GraniteToggleSwitchComponent]>;
6
- static ɵinj: i0.ɵɵInjectorDeclaration<GraniteToggleSwitchModule>;
7
- }
@@ -1,9 +0,0 @@
1
- import { GranitTableColumnAlign } from '../../column/table-column.directive';
2
- import * as i0 from "@angular/core";
3
- export declare class GraniteCellAlignClassesDirective {
4
- graniteCellAlignClasses?: string | string[];
5
- textAlign: GranitTableColumnAlign;
6
- get alignmentClass(): string;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteCellAlignClassesDirective, never>;
8
- static ɵdir: i0.ɵɵDirectiveDeclaration<GraniteCellAlignClassesDirective, "[graniteCellAlignClasses]", never, { "graniteCellAlignClasses": { "alias": "graniteCellAlignClasses"; "required": false; }; "textAlign": { "alias": "textAlign"; "required": false; }; }, {}, never, never, false, never>;
9
- }
@@ -1,8 +0,0 @@
1
- import { GraniteTableColumnDirective } from '../column/table-column.directive';
2
- import * as i0 from "@angular/core";
3
- export declare abstract class GraniteCell {
4
- id: string;
5
- column: GraniteTableColumnDirective;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteCell, never>;
7
- static ɵdir: i0.ɵɵDirectiveDeclaration<GraniteCell, never, never, { "id": { "alias": "id"; "required": false; }; "column": { "alias": "column"; "required": false; }; }, {}, never, never, true, never>;
8
- }
@@ -1,12 +0,0 @@
1
- import { TemplateRef } from '@angular/core';
2
- import { GraniteCell } from './cell';
3
- import * as i0 from "@angular/core";
4
- export declare class GraniteTableDataCellComponent extends GraniteCell {
5
- value: any;
6
- rowIndex: number;
7
- columnIndex: number;
8
- row: any;
9
- tableCellTemplateRef: TemplateRef<any>;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteTableDataCellComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<GraniteTableDataCellComponent, "granite-table-data-cell", never, { "value": { "alias": "value"; "required": false; }; "rowIndex": { "alias": "rowIndex"; "required": false; }; "columnIndex": { "alias": "columnIndex"; "required": false; }; "row": { "alias": "row"; "required": false; }; "tableCellTemplateRef": { "alias": "tableCellTemplateRef"; "required": false; }; }, {}, never, never, false, never>;
12
- }
@@ -1,6 +0,0 @@
1
- import { GraniteCell } from './cell';
2
- import * as i0 from "@angular/core";
3
- export declare class GraniteTableHeaderCellComponent extends GraniteCell {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteTableHeaderCellComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<GraniteTableHeaderCellComponent, "th[graniteTableHeaderCell]", never, {}, {}, never, ["*"], false, never>;
6
- }
@@ -1,23 +0,0 @@
1
- import { TemplateRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export type GranitTableColumnAlign = 'start' | 'center' | 'end';
4
- export type GranitTableColumnSize = 'small' | 'medium' | 'large';
5
- export interface GraniteTableColumnInterface {
6
- name: string;
7
- title?: string;
8
- class?: string | string[];
9
- headerClass?: string | string[];
10
- textAlign?: GranitTableColumnAlign;
11
- size?: GranitTableColumnSize;
12
- }
13
- export declare class GraniteTableColumnDirective implements GraniteTableColumnInterface {
14
- name: string;
15
- title?: string;
16
- class?: string | string[];
17
- headerClass?: string | string[];
18
- textAlign: GranitTableColumnAlign;
19
- size: GranitTableColumnSize;
20
- tableCellTemplateRef: TemplateRef<any>;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteTableColumnDirective, never>;
22
- static ɵdir: i0.ɵɵDirectiveDeclaration<GraniteTableColumnDirective, "granite-table-column", never, { "name": { "alias": "name"; "required": false; }; "title": { "alias": "title"; "required": false; }; "class": { "alias": "class"; "required": false; }; "headerClass": { "alias": "headerClass"; "required": false; }; "textAlign": { "alias": "textAlign"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, {}, ["tableCellTemplateRef"], never, false, never>;
23
- }
@@ -1,11 +0,0 @@
1
- import { OnChanges } from '@angular/core';
2
- import { GranitTableColumnSize } from '../column/table-column.directive';
3
- import * as i0 from "@angular/core";
4
- export declare class GraniteColumnSizeDirective implements OnChanges {
5
- graniteColumnSize: GranitTableColumnSize;
6
- get columnSizeClass(): string;
7
- private readonly sizeMap;
8
- ngOnChanges(): void;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<GraniteColumnSizeDirective, never>;
10
- static ɵdir: i0.ɵɵDirectiveDeclaration<GraniteColumnSizeDirective, "[graniteColumnSize]", never, { "graniteColumnSize": { "alias": "graniteColumnSize"; "required": false; }; }, {}, never, never, false, never>;
11
- }
@@ -1,6 +0,0 @@
1
- export declare class GraniteTableCellConstants {
2
- static readonly CELL_ID_PREFIX: string;
3
- static readonly START_ALIGN: string;
4
- static readonly CENTER_ALIGN: string;
5
- static readonly END_ALIGN: string;
6
- }