@ifsworld/granite-components 13.2.6 → 13.2.8
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/esm2022/lib/core/core.module.mjs +5 -2
- package/esm2022/lib/core/overlay-base.mjs +18 -0
- package/esm2022/lib/core/overlay-position-config.mjs +2 -0
- package/esm2022/lib/core/overlay-trigger-for-base.directive.mjs +121 -0
- package/esm2022/lib/core/overlay.service.mjs +90 -0
- package/esm2022/lib/input-field/input-field.component.mjs +4 -9
- package/esm2022/lib/progress-bar/progress-bar-legend/progress-bar-legend.component.mjs +2 -2
- package/esm2022/lib/progress-bar/progress-bar-legend-base.mjs +10 -13
- package/esm2022/lib/progress-bar/progress-bar-legend-trigger-for.directive.mjs +30 -167
- package/fesm2022/ifsworld-granite-components.mjs +238 -160
- package/fesm2022/ifsworld-granite-components.mjs.map +1 -1
- package/lib/core/core.module.d.ts +2 -1
- package/lib/core/overlay-base.d.ts +16 -0
- package/lib/core/overlay-position-config.d.ts +12 -0
- package/lib/core/overlay-trigger-for-base.directive.d.ts +32 -0
- package/lib/core/overlay.service.d.ts +21 -0
- package/lib/input-field/input-field.component.d.ts +0 -1
- package/lib/progress-bar/progress-bar-legend-base.d.ts +3 -12
- package/lib/progress-bar/progress-bar-legend-trigger-for.directive.d.ts +14 -37
- package/package.json +1 -1
|
@@ -4,8 +4,9 @@ import * as i2 from "./devices/client-output-touch.directive";
|
|
|
4
4
|
import * as i3 from "./devices/client-input-desktop.directive";
|
|
5
5
|
import * as i4 from "./devices/client-input-touch.directive";
|
|
6
6
|
import * as i5 from "./hide-on-overflow.directive";
|
|
7
|
+
import * as i6 from "./overlay-trigger-for-base.directive";
|
|
7
8
|
export declare class GraniteCoreModule {
|
|
8
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<GraniteCoreModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<GraniteCoreModule, [typeof i1.ClientOutputDesktopDirective, typeof i2.ClientOutputTouchDirective, typeof i3.ClientInputDesktopDirective, typeof i4.ClientInputTouchDirective, typeof i5.GraniteHideOnOverflowDirective], never, [typeof i1.ClientOutputDesktopDirective, typeof i2.ClientOutputTouchDirective, typeof i3.ClientInputDesktopDirective, typeof i4.ClientInputTouchDirective, typeof i5.GraniteHideOnOverflowDirective]>;
|
|
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]>;
|
|
10
11
|
static ɵinj: i0.ɵɵInjectorDeclaration<GraniteCoreModule>;
|
|
11
12
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
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, false, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { FlexibleConnectedPositionStrategy, Overlay, OverlayConfig, OverlayOutsideClickDispatcher, OverlayRef, PositionStrategy } from '@angular/cdk/overlay';
|
|
2
|
+
import { ElementRef, ViewContainerRef } from '@angular/core';
|
|
3
|
+
import { FocusMonitor, FocusOrigin } from '@angular/cdk/a11y';
|
|
4
|
+
import { OverlayPositionConfig } from './overlay-position-config';
|
|
5
|
+
import { OverlayBaseComponent } from './overlay-base';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class OverlayService {
|
|
8
|
+
private _overlay;
|
|
9
|
+
private _focusMonitor;
|
|
10
|
+
private _outsideClickDispatcher;
|
|
11
|
+
constructor(_overlay: Overlay, _focusMonitor: FocusMonitor, _outsideClickDispatcher: OverlayOutsideClickDispatcher);
|
|
12
|
+
createOverlay(config: OverlayConfig, component: OverlayBaseComponent, viewContainerRef: ViewContainerRef): OverlayRef;
|
|
13
|
+
closeOverlay(overlayRef: OverlayRef, element: ElementRef<HTMLElement>): void;
|
|
14
|
+
restoreFocus(element: ElementRef<HTMLElement>, origin?: FocusOrigin, options?: FocusOptions): void;
|
|
15
|
+
desktopPositionStrategy(element: ElementRef<HTMLElement>, selector: string): FlexibleConnectedPositionStrategy;
|
|
16
|
+
touchPositionStrategy(): PositionStrategy;
|
|
17
|
+
setPosition(positionStrategy: FlexibleConnectedPositionStrategy, positionConfig: OverlayPositionConfig): FlexibleConnectedPositionStrategy;
|
|
18
|
+
subscribeOutsideClick(overlayRef: OverlayRef, callback?: () => void): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OverlayService, never>;
|
|
20
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<OverlayService>;
|
|
21
|
+
}
|
|
@@ -31,7 +31,6 @@ export declare class GraniteInputFieldComponent implements OnInit, OnChanges {
|
|
|
31
31
|
ngOnChanges(changes: SimpleChanges): void;
|
|
32
32
|
focus(origin?: FocusOrigin, options?: FocusOptions): void;
|
|
33
33
|
_togglePassword(): void;
|
|
34
|
-
_onKeyUp(event: KeyboardEvent): void;
|
|
35
34
|
_onInput(event: Event): void;
|
|
36
35
|
protected _validateType(): void;
|
|
37
36
|
private _applyCharacterCount;
|
|
@@ -1,17 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { TemplateRef } from '@angular/core';
|
|
3
|
-
import { ClientInputInterface, ClientOutputInterface } from '../core/client-environment';
|
|
1
|
+
import { OverlayBaseComponent, PositionX } from '../core/overlay-base';
|
|
4
2
|
import * as i0 from "@angular/core";
|
|
5
|
-
export
|
|
6
|
-
export type PositionY = 'above' | 'below';
|
|
7
|
-
export declare class LegendBaseComponent {
|
|
8
|
-
templateRef: TemplateRef<any>;
|
|
9
|
-
xPosition: PositionX;
|
|
10
|
-
yPosition: PositionY;
|
|
11
|
-
direction: Direction;
|
|
3
|
+
export declare class LegendBaseComponent extends OverlayBaseComponent {
|
|
12
4
|
readonly panelId: string;
|
|
13
|
-
|
|
14
|
-
clientOutput: ClientOutputInterface;
|
|
5
|
+
xPosition: PositionX;
|
|
15
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<LegendBaseComponent, never>;
|
|
16
7
|
static ɵdir: i0.ɵɵDirectiveDeclaration<LegendBaseComponent, never, never, {}, {}, never, never, false, never>;
|
|
17
8
|
}
|
|
@@ -1,41 +1,18 @@
|
|
|
1
|
-
import { ElementRef, OnDestroy, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { Overlay, OverlayOutsideClickDispatcher } from '@angular/cdk/overlay';
|
|
3
|
-
import { ClientInputInterface, ClientOutputInterface } from '../core/client-environment';
|
|
4
|
-
import { Directionality } from '@angular/cdk/bidi';
|
|
5
|
-
import { FocusMonitor, FocusOrigin } from '@angular/cdk/a11y';
|
|
6
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';
|
|
7
5
|
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class GraniteProgressBarLegendTriggerForDirective
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
legend: GraniteProgressBarLegendComponent;
|
|
20
|
-
_isLegendOpen: boolean;
|
|
21
|
-
private _portal;
|
|
22
|
-
private _overlayRef;
|
|
23
|
-
constructor(_overlay: Overlay, _element: ElementRef<HTMLElement>, _viewContainerRef: ViewContainerRef, _outsideClickDispatcher: OverlayOutsideClickDispatcher,
|
|
24
|
-
/** Client input device information */
|
|
25
|
-
_clientInput: ClientInputInterface,
|
|
26
|
-
/** Client output device information */
|
|
27
|
-
_clientOutput: ClientOutputInterface, _dir: Directionality, _focusMonitor: FocusMonitor);
|
|
28
|
-
ngOnDestroy(): void;
|
|
29
|
-
openLegend(): void;
|
|
30
|
-
toggleLegend(): void;
|
|
31
|
-
closeLegend(): void;
|
|
32
|
-
_handleKeydown(event: KeyboardEvent): void;
|
|
33
|
-
_handleClick(): void;
|
|
34
|
-
_restoreFocus(origin?: FocusOrigin, options?: FocusOptions): void;
|
|
35
|
-
private _desktopPositionStrategy;
|
|
36
|
-
private _setPosition;
|
|
37
|
-
private _positionStrategy;
|
|
38
|
-
private _touchPositionStrategy;
|
|
39
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GraniteProgressBarLegendTriggerForDirective, [null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }, null]>;
|
|
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>;
|
|
40
17
|
static ɵdir: i0.ɵɵDirectiveDeclaration<GraniteProgressBarLegendTriggerForDirective, "[graniteProgressBarLegendTriggerFor]", never, { "legend": { "alias": "graniteProgressBarLegendTriggerFor"; "required": false; }; }, {}, never, never, false, never>;
|
|
41
18
|
}
|