@datarailsshared/datarailsshared 1.6.191 → 1.6.199
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/datarailsshared-datarailsshared-1.6.199.tgz +0 -0
- package/esm2022/lib/dr-tooltip/components/tooltip-default/tooltip-default.component.mjs +5 -4
- package/esm2022/lib/dr-tooltip/components/tooltip-info/tooltip-info.component.mjs +6 -6
- package/esm2022/lib/dr-tooltip/dr-tooltip.component.mjs +6 -5
- package/esm2022/lib/dr-tooltip/dr-tooltip.directive.mjs +3 -2
- package/esm2022/lib/dr-tooltip/dr-tooltip.module.mjs +6 -9
- package/esm2022/lib/drawer/drawer-config.mjs +3 -1
- package/esm2022/lib/drawer/drawer-container.component.mjs +12 -9
- package/esm2022/lib/drawer/drawer-ref.mjs +5 -1
- package/esm2022/lib/drawer/drawer.service.mjs +82 -1
- package/esm2022/lib/filter-dropdown/filter-dropdown.component.mjs +3 -3
- package/fesm2022/datarailsshared-datarailsshared.mjs +115 -28
- package/fesm2022/datarailsshared-datarailsshared.mjs.map +1 -1
- package/lib/dr-tooltip/components/tooltip-default/tooltip-default.component.d.ts +1 -1
- package/lib/dr-tooltip/components/tooltip-info/tooltip-info.component.d.ts +1 -2
- package/lib/dr-tooltip/dr-tooltip.component.d.ts +1 -1
- package/lib/dr-tooltip/dr-tooltip.directive.d.ts +1 -1
- package/lib/dr-tooltip/dr-tooltip.module.d.ts +5 -6
- package/lib/drawer/drawer-config.d.ts +5 -0
- package/lib/drawer/drawer-container.component.d.ts +1 -1
- package/lib/drawer/drawer-ref.d.ts +2 -0
- package/lib/drawer/drawer.service.d.ts +17 -0
- package/package.json +1 -7
- package/datarailsshared-datarailsshared-1.6.191.tgz +0 -0
- package/esm2022/src/lib/drawer/drDrawer.mjs +0 -5
- package/esm2022/src/lib/drawer/drawer-animation.mjs +0 -18
- package/esm2022/src/lib/drawer/drawer-config.mjs +0 -35
- package/esm2022/src/lib/drawer/drawer-container.component.mjs +0 -179
- package/esm2022/src/lib/drawer/drawer-position-strategy.mjs +0 -14
- package/esm2022/src/lib/drawer/drawer-ref.mjs +0 -106
- package/esm2022/src/lib/drawer/drawer.module.mjs +0 -19
- package/esm2022/src/lib/drawer/drawer.service.mjs +0 -140
- package/esm2022/src/lib/drawer/public-api.mjs +0 -6
- package/fesm2022/drDrawer.mjs +0 -496
- package/fesm2022/drDrawer.mjs.map +0 -1
- package/src/lib/drawer/drawer-animation.d.ts +0 -5
- package/src/lib/drawer/drawer-config.d.ts +0 -68
- package/src/lib/drawer/drawer-container.component.d.ts +0 -45
- package/src/lib/drawer/drawer-position-strategy.d.ts +0 -10
- package/src/lib/drawer/drawer-ref.d.ts +0 -55
- package/src/lib/drawer/drawer.module.d.ts +0 -7
- package/src/lib/drawer/drawer.service.d.ts +0 -62
- package/src/lib/drawer/index.d.ts +0 -5
- package/src/lib/drawer/public-api.d.ts +0 -5
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { Direction } from '@angular/cdk/bidi';
|
|
2
|
-
import { ScrollStrategy } from '@angular/cdk/overlay';
|
|
3
|
-
import { Injector, ViewContainerRef } from '@angular/core';
|
|
4
|
-
/** Options for where to set focus to automatically on dialog open. */
|
|
5
|
-
export type AutoFocusTarget = 'dialog' | 'first-tabbable' | 'first-heading';
|
|
6
|
-
/** Possible overrides for a drawer's position. */
|
|
7
|
-
export type DrawerPosition = 'top' | 'bottom' | 'left' | 'right';
|
|
8
|
-
/**
|
|
9
|
-
* Configuration used when opening a drawer.
|
|
10
|
-
*/
|
|
11
|
-
export declare class DrawerConfig<D = any> {
|
|
12
|
-
/** The view container to place the overlay for the drawer into. */
|
|
13
|
-
viewContainerRef?: ViewContainerRef;
|
|
14
|
-
/** ID for the drawer. If omitted, a unique one will be generated. */
|
|
15
|
-
id?: string;
|
|
16
|
-
/** Extra CSS classes to be added to the drawer container. */
|
|
17
|
-
panelClass?: string | string[];
|
|
18
|
-
/** Text layout direction for the drawer. */
|
|
19
|
-
direction?: Direction;
|
|
20
|
-
/** Data being injected into the child component. */
|
|
21
|
-
data?: D | null;
|
|
22
|
-
/** Whether the drawer has a backdrop. */
|
|
23
|
-
hasBackdrop?: boolean;
|
|
24
|
-
/** Custom class for the backdrop. */
|
|
25
|
-
backdropClass?: string;
|
|
26
|
-
/** Whether the user can use escape or clicking outside to close the drawer. */
|
|
27
|
-
disableClose?: boolean;
|
|
28
|
-
/** Aria label to assign to the drawer element. */
|
|
29
|
-
ariaLabel?: string | null;
|
|
30
|
-
/**
|
|
31
|
-
* Whether the drawer should close when the user goes backwards/forwards in history.
|
|
32
|
-
* Note that this usually doesn't include clicking on links (unless the user is using
|
|
33
|
-
* the `HashLocationStrategy`).
|
|
34
|
-
*/
|
|
35
|
-
closeOnNavigation?: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Where the drawer should focus on open.
|
|
38
|
-
* @breaking-change 14.0.0 Remove boolean option from autoFocus. Use string or
|
|
39
|
-
* AutoFocusTarget instead.
|
|
40
|
-
*/
|
|
41
|
-
autoFocus?: AutoFocusTarget | string | boolean;
|
|
42
|
-
/**
|
|
43
|
-
* Whether the drawer should restore focus to the
|
|
44
|
-
* previously-focused element, after it's closed.
|
|
45
|
-
*/
|
|
46
|
-
restoreFocus?: boolean;
|
|
47
|
-
/** Scroll strategy to be used for the drawer. */
|
|
48
|
-
scrollStrategy?: ScrollStrategy;
|
|
49
|
-
/** Position of the drawer. */
|
|
50
|
-
position?: DrawerPosition;
|
|
51
|
-
/** Width of the drawer. */
|
|
52
|
-
width?: string;
|
|
53
|
-
/** Height of the drawer. */
|
|
54
|
-
height?: string;
|
|
55
|
-
/** Min-width of the drawer. If a number is provided, assumes pixel units. */
|
|
56
|
-
minWidth?: number | string;
|
|
57
|
-
/** Min-height of the drawer. If a number is provided, assumes pixel units. */
|
|
58
|
-
minHeight?: number | string;
|
|
59
|
-
/** Max-width of the drawer. If a number is provided, assumes pixel units. */
|
|
60
|
-
maxWidth?: number | string;
|
|
61
|
-
/** Max-height of the drawer. If a number is provided, assumes pixel units. */
|
|
62
|
-
maxHeight?: number | string;
|
|
63
|
-
/**
|
|
64
|
-
* Injector used for the instantiation of the component to be attached. If provided,
|
|
65
|
-
* takes precedence over the injector indirectly provided by `ViewContainerRef`.
|
|
66
|
-
*/
|
|
67
|
-
injector?: Injector;
|
|
68
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { AnimationEvent } from '@angular/animations';
|
|
2
|
-
import { FocusMonitor, FocusTrapFactory, InteractivityChecker } from '@angular/cdk/a11y';
|
|
3
|
-
import { CdkDialogContainer } from '@angular/cdk/dialog';
|
|
4
|
-
import { OverlayRef } from '@angular/cdk/overlay';
|
|
5
|
-
import { CdkPortalOutlet } from '@angular/cdk/portal';
|
|
6
|
-
import { AfterViewInit, ElementRef, EventEmitter, NgZone, OnDestroy } from '@angular/core';
|
|
7
|
-
import { DrawerConfig } from './drawer-config';
|
|
8
|
-
import { DrawerPositionStrategy } from './drawer-position-strategy';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
/**
|
|
11
|
-
* Internal component that wraps user-provided drawer content.
|
|
12
|
-
* @docs-private
|
|
13
|
-
*/
|
|
14
|
-
export declare class DrawerContainer extends CdkDialogContainer<DrawerConfig> implements OnDestroy, AfterViewInit {
|
|
15
|
-
private overlayRef;
|
|
16
|
-
/** The portal outlet inside of this container into which the content will be loaded. */
|
|
17
|
-
_portalOutlet: CdkPortalOutlet;
|
|
18
|
-
_handleRef: ElementRef<HTMLDivElement>;
|
|
19
|
-
/** The state of the drawer animations. */
|
|
20
|
-
_animationState: 'void' | 'visible' | 'hidden';
|
|
21
|
-
/** Emits whenever the state of the animation changes. */
|
|
22
|
-
readonly _animationStateChanged: EventEmitter<AnimationEvent>;
|
|
23
|
-
/** Whether the component has been destroyed. */
|
|
24
|
-
private _destroyed;
|
|
25
|
-
get _drawerPosition(): string;
|
|
26
|
-
private readonly _changeDetectorRef;
|
|
27
|
-
private readonly destroy$;
|
|
28
|
-
positionStrategy: DrawerPositionStrategy;
|
|
29
|
-
constructor(elementRef: ElementRef<HTMLElement>, focusTrapFactory: FocusTrapFactory, document: Document, config: DrawerConfig, checker: InteractivityChecker, ngZone: NgZone, overlayRef: OverlayRef, focusMonitor?: FocusMonitor);
|
|
30
|
-
protected _contentAttached(): void;
|
|
31
|
-
/** Begin animation of bottom sheet entrance into view. */
|
|
32
|
-
enter(): void;
|
|
33
|
-
/** Begin animation of the bottom sheet exiting from view. */
|
|
34
|
-
exit(): void;
|
|
35
|
-
ngAfterViewInit(): void;
|
|
36
|
-
private resolvePositionStrategy;
|
|
37
|
-
private setupDragListener;
|
|
38
|
-
private getContainerPosition;
|
|
39
|
-
ngOnDestroy(): void;
|
|
40
|
-
_onAnimationDone(event: AnimationEvent): void;
|
|
41
|
-
_onAnimationStart(event: AnimationEvent): void;
|
|
42
|
-
protected _captureInitialFocus(): void;
|
|
43
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DrawerContainer, [null, null, { optional: true; }, null, null, null, null, null]>;
|
|
44
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DrawerContainer, "dr-drawer-container", never, {}, {}, never, never, true, never>;
|
|
45
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export interface DrawerPositionStrategy {
|
|
2
|
-
extractMousePosition(event: MouseEvent): number;
|
|
3
|
-
calculateTransform(currentPosition: number, containerPosition: number): string;
|
|
4
|
-
shouldClose(currentPosition: number, initPosition: number, lastPosition: number): boolean;
|
|
5
|
-
}
|
|
6
|
-
export declare class BottomPositionStrategy implements DrawerPositionStrategy {
|
|
7
|
-
extractMousePosition(event: MouseEvent): number;
|
|
8
|
-
calculateTransform(currentPosition: number, containerPosition: number): string;
|
|
9
|
-
shouldClose(currentPosition: number, initPosition: number, lastPosition: number): boolean;
|
|
10
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { DialogRef } from '@angular/cdk/dialog';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { DrawerConfig } from './drawer-config';
|
|
4
|
-
import { DrawerContainer } from './drawer-container.component';
|
|
5
|
-
import { ComponentRef } from '@angular/core';
|
|
6
|
-
/**
|
|
7
|
-
* Reference to a drawer dispatched from the drawer service.
|
|
8
|
-
*/
|
|
9
|
-
export declare class DrawerRef<T = any, R = any> {
|
|
10
|
-
private _ref;
|
|
11
|
-
/** Instance of the component making up the content of the drawer. */
|
|
12
|
-
get instance(): T;
|
|
13
|
-
/**
|
|
14
|
-
* `ComponentRef` of the component opened into the drawer. Will be
|
|
15
|
-
* null when the drawer is opened using a `TemplateRef`.
|
|
16
|
-
*/
|
|
17
|
-
get componentRef(): ComponentRef<T> | null;
|
|
18
|
-
/**
|
|
19
|
-
* Instance of the component into which the drawer content is projected.
|
|
20
|
-
* @docs-private
|
|
21
|
-
*/
|
|
22
|
-
containerInstance: DrawerContainer;
|
|
23
|
-
/** Whether the user is allowed to close the drawer. */
|
|
24
|
-
disableClose: boolean | undefined;
|
|
25
|
-
/** Unique ID for the drawer. */
|
|
26
|
-
id: string;
|
|
27
|
-
/** Subject for notifying the user that the drawer has been dismissed. */
|
|
28
|
-
private readonly _afterDismissed;
|
|
29
|
-
/** Subject for notifying the user that the drawer has opened and appeared. */
|
|
30
|
-
private readonly _afterOpened;
|
|
31
|
-
/** Result to be passed down to the `afterDismissed` stream. */
|
|
32
|
-
private _result;
|
|
33
|
-
/** Handle to the timeout that's running as a fallback in case the exit animation doesn't fire. */
|
|
34
|
-
private _closeFallbackTimeout;
|
|
35
|
-
constructor(_ref: DialogRef<R, T>, config: DrawerConfig, containerInstance: DrawerContainer);
|
|
36
|
-
/**
|
|
37
|
-
* Dismisses the drawer.
|
|
38
|
-
* @param result Data to be passed back to the drawer opener.
|
|
39
|
-
*/
|
|
40
|
-
dismiss(result?: R): void;
|
|
41
|
-
/** Gets an observable that is notified when the drawer is dismissed. */
|
|
42
|
-
afterDismissed(): Observable<R | undefined>;
|
|
43
|
-
/** Gets an observable that is notified when the drawer is finished closing. */
|
|
44
|
-
afterClosed(): Observable<R | undefined>;
|
|
45
|
-
/** Gets an observable that is notified when the drawer has opened and appeared. */
|
|
46
|
-
afterOpened(): Observable<void>;
|
|
47
|
-
/**
|
|
48
|
-
* Gets an observable that emits when the overlay's backdrop has been clicked.
|
|
49
|
-
*/
|
|
50
|
-
backdropClick(): Observable<MouseEvent>;
|
|
51
|
-
/**
|
|
52
|
-
* Gets an observable that emits when keydown events are targeted on the overlay.
|
|
53
|
-
*/
|
|
54
|
-
keydownEvents(): Observable<KeyboardEvent>;
|
|
55
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./drawer-container.component";
|
|
3
|
-
export declare class DrawerModule {
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DrawerModule, never>;
|
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DrawerModule, never, [typeof i1.DrawerContainer], [typeof i1.DrawerContainer]>;
|
|
6
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<DrawerModule>;
|
|
7
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { Overlay } from '@angular/cdk/overlay';
|
|
2
|
-
import { ComponentType } from '@angular/cdk/portal';
|
|
3
|
-
import { InjectionToken, Injector, OnDestroy, TemplateRef } from '@angular/core';
|
|
4
|
-
import { Observable, Subject } from 'rxjs';
|
|
5
|
-
import { DrawerConfig } from './drawer-config';
|
|
6
|
-
import { DrawerRef } from './drawer-ref';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
/** Injection token that can be used to access the data that was passed in to a drawer. */
|
|
9
|
-
export declare const DR_DRAWER_DATA: InjectionToken<any>;
|
|
10
|
-
/** Injection token that can be used to specify default drawer options. */
|
|
11
|
-
export declare const DR_DRAWER_DEFAULT_OPTIONS: InjectionToken<DrawerConfig<any>>;
|
|
12
|
-
/**
|
|
13
|
-
* Service to trigger Material Design bottom sheets.
|
|
14
|
-
*/
|
|
15
|
-
export declare class Drawer implements OnDestroy {
|
|
16
|
-
private _overlay;
|
|
17
|
-
private _injector;
|
|
18
|
-
private _parentDrawer;
|
|
19
|
-
private _defaultOptions?;
|
|
20
|
-
private readonly _openDrawersAtThisLevel;
|
|
21
|
-
private readonly _afterAllDismissedAtThisLevel;
|
|
22
|
-
private readonly _afterOpenedAtThisLevel;
|
|
23
|
-
private _dialog;
|
|
24
|
-
/** Keeps track of the currently-open dialogs. */
|
|
25
|
-
get openDrawers(): DrawerRef[];
|
|
26
|
-
/** Stream that emits when a drawer has been opened. */
|
|
27
|
-
get afterOpened(): Subject<DrawerRef<any>>;
|
|
28
|
-
private _getAfterAllDismissed;
|
|
29
|
-
/**
|
|
30
|
-
* Stream that emits when all open drawer have finished closing.
|
|
31
|
-
* Will emit on subscribe if there are no open drawers to begin with.
|
|
32
|
-
*/
|
|
33
|
-
readonly afterAllDismissed: Observable<void>;
|
|
34
|
-
constructor(_overlay: Overlay, _injector: Injector, _parentDrawer: Drawer, _defaultOptions?: DrawerConfig);
|
|
35
|
-
/**
|
|
36
|
-
* Opens a drawer containing the given component.
|
|
37
|
-
* @param component Type of the component to load into the drawer.
|
|
38
|
-
* @param config Extra configuration options.
|
|
39
|
-
* @returns Reference to the newly-opened drawer.
|
|
40
|
-
*/
|
|
41
|
-
open<T, D = any, R = any>(component: ComponentType<T>, config?: DrawerConfig<D>): DrawerRef<T, R>;
|
|
42
|
-
/**
|
|
43
|
-
* Opens a drawer containing the given template.
|
|
44
|
-
* @param template TemplateRef to instantiate as the drawer content.
|
|
45
|
-
* @param config Extra configuration options.
|
|
46
|
-
* @returns Reference to the newly-opened drawer.
|
|
47
|
-
*/
|
|
48
|
-
open<T, D = any, R = any>(template: TemplateRef<T>, config?: DrawerConfig<D>): DrawerRef<T, R>;
|
|
49
|
-
/**
|
|
50
|
-
* Dismisses all of the currently-open drawers.
|
|
51
|
-
*/
|
|
52
|
-
dismissAll(): void;
|
|
53
|
-
/**
|
|
54
|
-
* Finds an open drawer by its id.
|
|
55
|
-
* @param id ID to use when looking up the drawer.
|
|
56
|
-
*/
|
|
57
|
-
getDrawerById(id: string): DrawerRef<any> | undefined;
|
|
58
|
-
ngOnDestroy(): void;
|
|
59
|
-
private _dismissDrawers;
|
|
60
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<Drawer, [null, null, { optional: true; skipSelf: true; }, { optional: true; }]>;
|
|
61
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<Drawer>;
|
|
62
|
-
}
|