@ifsworld/granite-components 4.0.0-beta.10 → 4.0.0-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/ifsworld-granite-components.umd.js +63 -19
- package/bundles/ifsworld-granite-components.umd.js.map +1 -1
- package/bundles/ifsworld-granite-components.umd.min.js +2 -2
- package/bundles/ifsworld-granite-components.umd.min.js.map +1 -1
- package/esm2015/index.js +1 -0
- package/esm2015/index.js.map +1 -1
- package/esm2015/index.metadata.json +1 -1
- package/esm2015/lib/button/button.component.js +15 -9
- package/esm2015/lib/button/button.component.js.map +1 -1
- package/esm2015/lib/button/button.component.metadata.json +1 -1
- package/esm2015/lib/input-field/input-field.component.js.map +1 -1
- package/esm2015/lib/menu/menu-item.component.js +1 -1
- package/esm2015/lib/menu/menu-item.component.metadata.json +1 -1
- package/esm2015/lib/menu/menu-touch-close.component.js +1 -1
- package/esm2015/lib/menu/menu-touch-close.component.metadata.json +1 -1
- package/esm2015/lib/menu/menu-touch-title.component.js +1 -1
- package/esm2015/lib/menu/menu-touch-title.component.metadata.json +1 -1
- package/esm2015/lib/menu/menu-trigger-for.directive.js +14 -5
- package/esm2015/lib/menu/menu-trigger-for.directive.js.map +1 -1
- package/esm2015/lib/menu/menu-trigger-for.directive.metadata.json +1 -1
- package/esm2015/lib/menu/menu.component.js +11 -3
- package/esm2015/lib/menu/menu.component.js.map +1 -1
- package/esm2015/lib/menu/menu.component.metadata.json +1 -1
- package/esm2015/lib/menu/menu.module.js +3 -0
- package/esm2015/lib/menu/menu.module.js.map +1 -1
- package/esm2015/lib/menu/menu.module.metadata.json +1 -1
- package/esm2015/lib/menu/title.directive.js +13 -0
- package/esm2015/lib/menu/title.directive.js.map +1 -0
- package/esm2015/lib/menu/title.directive.metadata.json +1 -0
- package/esm2015/lib/toggle-switch/toggle-switch.component.js.map +1 -1
- package/fesm2015/ifsworld-granite-components.js +58 -21
- package/fesm2015/ifsworld-granite-components.js.map +1 -1
- package/ifsworld-granite-components.metadata.json +1 -1
- package/index.d.ts +1 -0
- package/lib/button/button.component.d.ts +7 -0
- package/lib/input-field/input-field.component.d.ts +1 -1
- package/lib/menu/menu-trigger-for.directive.d.ts +2 -0
- package/lib/menu/menu.component.d.ts +5 -2
- package/lib/menu/title.directive.d.ts +2 -0
- package/lib/toggle-switch/toggle-switch.component.d.ts +3 -3
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export * from './lib/menu/menu-item.component';
|
|
|
14
14
|
export * from './lib/menu/menu-trigger-for.directive';
|
|
15
15
|
export * from './lib/menu/testing/menu.harness';
|
|
16
16
|
export * from './lib/menu/divider.directive';
|
|
17
|
+
export * from './lib/menu/title.directive';
|
|
17
18
|
export * from './lib/menu/menu-touch-close.component';
|
|
18
19
|
export * from './lib/menu/menu-touch-title.component';
|
|
19
20
|
export * from './lib/icon/icon.module';
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { FocusMonitor, FocusOrigin } from '@angular/cdk/a11y';
|
|
2
2
|
import { ElementRef, OnChanges, SimpleChanges } from '@angular/core';
|
|
3
|
+
export declare const BUTTON_CLASS = "granite-button";
|
|
4
|
+
export declare const PRIMARY_BUTTON_CLASS = "granite-primary-button";
|
|
5
|
+
export declare const FLAT_BUTTON_CLASS = "granite-flat-button";
|
|
6
|
+
export declare const NAV_BUTTON_CLASS = "granite-nav-button";
|
|
7
|
+
export declare const ButtonSelectors: {
|
|
8
|
+
[key: string]: string;
|
|
9
|
+
};
|
|
3
10
|
declare const ButtonComponentMixin: {
|
|
4
11
|
new (...args: any[]): {
|
|
5
12
|
[x: string]: unknown;
|
|
@@ -16,7 +16,7 @@ export declare class GraniteInputFieldComponent implements OnInit, OnChanges {
|
|
|
16
16
|
countcharacters: boolean;
|
|
17
17
|
ariaLabel: string | null;
|
|
18
18
|
ariaLabelledby: string | null;
|
|
19
|
-
valueChange: EventEmitter<string>;
|
|
19
|
+
readonly valueChange: EventEmitter<string>;
|
|
20
20
|
private _inputElement;
|
|
21
21
|
private _textareaElement;
|
|
22
22
|
_supported: boolean;
|
|
@@ -32,6 +32,7 @@ export declare class GraniteMenuTriggerForDirective implements AfterContentInit,
|
|
|
32
32
|
private _focusMonitor;
|
|
33
33
|
/** References the menu instance that the trigger is associated with. */
|
|
34
34
|
menu: _MenuBaseComponent;
|
|
35
|
+
openOnHover: boolean;
|
|
35
36
|
/** Whether the associated menu is open */
|
|
36
37
|
_isMenuOpen: boolean;
|
|
37
38
|
_openedBy: 'mouse' | 'touch' | null;
|
|
@@ -71,6 +72,7 @@ export declare class GraniteMenuTriggerForDirective implements AfterContentInit,
|
|
|
71
72
|
ngOnDestroy(): void;
|
|
72
73
|
/** Handles change of associated menu */
|
|
73
74
|
_handleMenuChange(): void;
|
|
75
|
+
isOpen(): boolean;
|
|
74
76
|
/** Open the associated menu */
|
|
75
77
|
openMenu(): void;
|
|
76
78
|
/** Whether the menu triggers a sub-menu or a top-level one. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AfterContentInit, ChangeDetectorRef, EventEmitter, OnDestroy, QueryList, TemplateRef } from '@angular/core';
|
|
1
|
+
import { AfterContentChecked, AfterContentInit, ChangeDetectorRef, EventEmitter, OnDestroy, QueryList, TemplateRef } from '@angular/core';
|
|
2
2
|
import { FocusOrigin } from '@angular/cdk/a11y';
|
|
3
3
|
import { Direction } from '@angular/cdk/bidi';
|
|
4
4
|
import { AnimationEvent } from '@angular/animations';
|
|
@@ -22,7 +22,7 @@ declare type TransformMenu = {
|
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
24
|
/** Base class with all of the menu functionality. */
|
|
25
|
-
export declare class _MenuBaseComponent implements AfterContentInit, OnDestroy, GraniteMenuPanelInterface {
|
|
25
|
+
export declare class _MenuBaseComponent implements AfterContentInit, OnDestroy, AfterContentChecked, GraniteMenuPanelInterface {
|
|
26
26
|
private _changeDetectorRef;
|
|
27
27
|
/** Position of the menu in the X axis. */
|
|
28
28
|
get xPosition(): MenuPositionX;
|
|
@@ -71,6 +71,8 @@ export declare class _MenuBaseComponent implements AfterContentInit, OnDestroy,
|
|
|
71
71
|
_clientInput: ClientInputInterface;
|
|
72
72
|
/** Client output device information */
|
|
73
73
|
_clientOutput: ClientOutputInterface;
|
|
74
|
+
_isMenuEmpty$: BehaviorSubject<boolean>;
|
|
75
|
+
isMenuEmpty$: Observable<boolean>;
|
|
74
76
|
/** Only the direct descendant menu items. */
|
|
75
77
|
private _directDescendantItems;
|
|
76
78
|
private _keyManager;
|
|
@@ -86,6 +88,7 @@ export declare class _MenuBaseComponent implements AfterContentInit, OnDestroy,
|
|
|
86
88
|
*/
|
|
87
89
|
private xOffset;
|
|
88
90
|
constructor(_changeDetectorRef: ChangeDetectorRef);
|
|
91
|
+
ngAfterContentChecked(): void;
|
|
89
92
|
ngAfterContentInit(): void;
|
|
90
93
|
ngOnDestroy(): void;
|
|
91
94
|
/**
|
|
@@ -10,9 +10,9 @@ export declare class GraniteToggleSwitchComponent implements OnChanges {
|
|
|
10
10
|
labelPosition: Position;
|
|
11
11
|
ariaLabel: string | null;
|
|
12
12
|
ariaLabelledby: string | null;
|
|
13
|
-
valueChange: EventEmitter<boolean>;
|
|
14
|
-
toggleChange: EventEmitter<void>;
|
|
15
|
-
toggleBlur: EventEmitter<void>;
|
|
13
|
+
readonly valueChange: EventEmitter<boolean>;
|
|
14
|
+
readonly toggleChange: EventEmitter<void>;
|
|
15
|
+
readonly toggleBlur: EventEmitter<void>;
|
|
16
16
|
private _inputElement;
|
|
17
17
|
_positionBefore: boolean;
|
|
18
18
|
_toggleSwitchDisabled: boolean;
|