@dereekb/dbx-web 4.1.0 → 5.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.
- package/LICENSE +21 -0
- package/esm2020/lib/action/key.trigger.directive.mjs +1 -1
- package/esm2020/lib/action/snackbar/action.snackbar.component.mjs +5 -6
- package/esm2020/lib/action/snackbar/action.snackbar.directive.mjs +1 -1
- package/esm2020/lib/action/snackbar/action.snackbar.generator.mjs +1 -1
- package/esm2020/lib/action/snackbar/action.snackbar.mjs +1 -1
- package/esm2020/lib/action/snackbar/action.snackbar.service.mjs +1 -1
- package/esm2020/lib/action/transition/transition.safety.dialog.component.mjs +1 -1
- package/esm2020/lib/action/transition/transition.safety.directive.mjs +3 -4
- package/esm2020/lib/button/button.component.mjs +7 -7
- package/esm2020/lib/button/button.spacer.component.mjs +3 -3
- package/esm2020/lib/button/progress/base.progress.button.directive.mjs +5 -6
- package/esm2020/lib/button/progress/button.progress.config.mjs +1 -1
- package/esm2020/lib/error/error.action.directive.mjs +1 -1
- package/esm2020/lib/error/error.api.mjs +16 -12
- package/esm2020/lib/error/error.component.mjs +3 -3
- package/esm2020/lib/error/state.mjs +9 -5
- package/esm2020/lib/interaction/dialog/abstract.dialog.directive.mjs +1 -1
- package/esm2020/lib/interaction/dialog/dialog.action.directive.mjs +1 -1
- package/esm2020/lib/interaction/dialog/dialog.content.component.mjs +3 -3
- package/esm2020/lib/interaction/filter/filter.popover.button.component.mjs +1 -1
- package/esm2020/lib/interaction/filter/filter.popover.button.directive.mjs +1 -1
- package/esm2020/lib/interaction/filter/filter.popover.component.mjs +1 -1
- package/esm2020/lib/interaction/popover/abstract.popover.directive.mjs +1 -1
- package/esm2020/lib/interaction/popover/abstract.popover.ref.directive.mjs +4 -4
- package/esm2020/lib/interaction/popover/popover.action.directive.mjs +2 -3
- package/esm2020/lib/interaction/popover/popover.component.mjs +11 -11
- package/esm2020/lib/interaction/popover/popover.content.component.mjs +2 -3
- package/esm2020/lib/interaction/popover/popover.controls.directive.mjs +3 -3
- package/esm2020/lib/interaction/popover/popover.coordinator.component.mjs +2 -2
- package/esm2020/lib/interaction/popover/popover.mjs +1 -1
- package/esm2020/lib/interaction/popover/popover.module.mjs +1 -1
- package/esm2020/lib/interaction/popup/abstract.popup.directive.mjs +1 -1
- package/esm2020/lib/interaction/popup/popup.component.mjs +3 -4
- package/esm2020/lib/interaction/popup/popup.content.component.mjs +2 -2
- package/esm2020/lib/interaction/popup/popup.controls.buttons.component.mjs +3 -3
- package/esm2020/lib/interaction/popup/popup.coordinator.component.mjs +2 -2
- package/esm2020/lib/interaction/popup/popup.coordinator.service.mjs +2 -2
- package/esm2020/lib/interaction/popup/popup.mjs +1 -1
- package/esm2020/lib/interaction/popup/popup.module.mjs +1 -1
- package/esm2020/lib/interaction/prompt/prompt.button.confirm.directive.mjs +2 -2
- package/esm2020/lib/interaction/prompt/prompt.confirm.component.mjs +1 -1
- package/esm2020/lib/interaction/prompt/prompt.confirm.dialog.component.mjs +1 -1
- package/esm2020/lib/interaction/prompt/prompt.confirm.directive.mjs +4 -4
- package/esm2020/lib/interaction/prompt/prompt.confirm.mjs +2 -2
- package/esm2020/lib/interaction/prompt/prompt.page.component.mjs +1 -1
- package/esm2020/lib/keypress/keydown.listener.directive.mjs +2 -3
- package/esm2020/lib/layout/bar/bar.directive.mjs +3 -3
- package/esm2020/lib/layout/bar/bar.header.component.mjs +1 -1
- package/esm2020/lib/layout/block/two.block.component.mjs +1 -1
- package/esm2020/lib/layout/card/card.box.container.component.mjs +1 -1
- package/esm2020/lib/layout/column/two/two.column.component.mjs +3 -5
- package/esm2020/lib/layout/column/two/two.column.context.directive.mjs +5 -6
- package/esm2020/lib/layout/column/two/two.column.full.left.directive.mjs +2 -2
- package/esm2020/lib/layout/column/two/two.column.right.component.mjs +3 -4
- package/esm2020/lib/layout/column/two/two.column.store.mjs +4 -5
- package/esm2020/lib/layout/compact/compact.mjs +2 -3
- package/esm2020/lib/layout/compact/compact.store.mjs +2 -2
- package/esm2020/lib/layout/content/content.border.directive.mjs +3 -3
- package/esm2020/lib/layout/content/content.box.directive.mjs +3 -3
- package/esm2020/lib/layout/content/content.container.directive.mjs +3 -3
- package/esm2020/lib/layout/content/content.directive.mjs +3 -3
- package/esm2020/lib/layout/content/content.elevate.directive.mjs +3 -3
- package/esm2020/lib/layout/content/content.page.directive.mjs +3 -3
- package/esm2020/lib/layout/flex/flex.group.directive.mjs +1 -1
- package/esm2020/lib/layout/list/list.component.mjs +15 -11
- package/esm2020/lib/layout/list/list.content.empty.component.mjs +1 -1
- package/esm2020/lib/layout/list/list.directive.mjs +1 -1
- package/esm2020/lib/layout/list/list.view.directive.mjs +3 -4
- package/esm2020/lib/layout/list/list.view.mjs +3 -2
- package/esm2020/lib/layout/list/list.view.value.component.mjs +1 -1
- package/esm2020/lib/layout/list/list.view.value.directive.mjs +1 -1
- package/esm2020/lib/layout/list/list.view.value.item.directive.mjs +1 -1
- package/esm2020/lib/layout/list/list.view.value.mjs +2 -2
- package/esm2020/lib/layout/list/list.view.value.modifier.directive.mjs +5 -5
- package/esm2020/lib/layout/list/list.view.value.modifier.mjs +2 -2
- package/esm2020/lib/layout/list/list.view.value.modifier.ripple.directive.mjs +2 -3
- package/esm2020/lib/layout/list/list.view.value.selection.component.mjs +1 -1
- package/esm2020/lib/layout/list/list.wrapper.mjs +2 -2
- package/esm2020/lib/layout/section/section.component.mjs +1 -1
- package/esm2020/lib/layout/section/section.header.component.mjs +3 -3
- package/esm2020/lib/layout/section/section.intro.component.mjs +1 -1
- package/esm2020/lib/layout/section/section.page.component.mjs +2 -2
- package/esm2020/lib/layout/section/subsection.component.mjs +2 -2
- package/esm2020/lib/layout/step/step.component.mjs +1 -1
- package/esm2020/lib/layout/style/spacer.directive.mjs +3 -3
- package/esm2020/lib/layout/style/style.body.directive.mjs +1 -1
- package/esm2020/lib/layout/style/style.directive.mjs +3 -3
- package/esm2020/lib/layout/style/style.service.mjs +2 -2
- package/esm2020/lib/layout/style/style.set.directive.mjs +2 -3
- package/esm2020/lib/layout/text/icon.spacer.component.mjs +3 -3
- package/esm2020/lib/layout/text/linkify.component.mjs +2 -3
- package/esm2020/lib/layout/text/text.chips.component.mjs +1 -1
- package/esm2020/lib/layout/text/warn.component.mjs +1 -1
- package/esm2020/lib/loading/basic-loading.component.mjs +2 -3
- package/esm2020/lib/loading/loading-progress.component.mjs +2 -2
- package/esm2020/lib/router/layout/anchor/anchor.component.mjs +2 -3
- package/esm2020/lib/router/layout/anchor/anchor.segue.directive.mjs +2 -2
- package/esm2020/lib/router/layout/anchorlist/anchorlist.component.mjs +2 -2
- package/esm2020/lib/router/layout/navbar/navbar.component.mjs +3 -3
- package/esm2020/lib/router/layout/sidenav/sidenav.button.component.mjs +2 -2
- package/esm2020/lib/router/layout/sidenav/sidenav.pagebar.component.mjs +1 -1
- package/esm2020/lib/router/provider/ngrouter/anchor.component.mjs +4 -5
- package/esm2020/lib/router/provider/uirouter/anchor.component.mjs +9 -3
- package/esm2020/lib/screen/screen.service.mjs +3 -4
- package/fesm2015/dereekb-dbx-web.mjs +178 -162
- package/fesm2015/dereekb-dbx-web.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-web.mjs +178 -162
- package/fesm2020/dereekb-dbx-web.mjs.map +1 -1
- package/lib/action/key.trigger.directive.d.ts +1 -1
- package/lib/action/snackbar/action.snackbar.component.d.ts +3 -4
- package/lib/action/snackbar/action.snackbar.d.ts +5 -5
- package/lib/action/snackbar/action.snackbar.directive.d.ts +6 -6
- package/lib/action/snackbar/action.snackbar.generator.d.ts +7 -7
- package/lib/action/snackbar/action.snackbar.service.d.ts +3 -3
- package/lib/button/button.spacer.component.d.ts +1 -1
- package/lib/button/progress/base.progress.button.directive.d.ts +2 -3
- package/lib/button/progress/button.progress.config.d.ts +1 -1
- package/lib/error/error.api.d.ts +2 -2
- package/lib/error/error.component.d.ts +2 -3
- package/lib/error/state.d.ts +3 -3
- package/lib/interaction/dialog/abstract.dialog.directive.d.ts +1 -1
- package/lib/interaction/dialog/dialog.action.directive.d.ts +4 -4
- package/lib/interaction/dialog/dialog.content.component.d.ts +1 -1
- package/lib/interaction/filter/filter.popover.button.component.d.ts +1 -1
- package/lib/interaction/filter/filter.popover.button.directive.d.ts +1 -2
- package/lib/interaction/filter/filter.popover.component.d.ts +6 -6
- package/lib/interaction/popover/abstract.popover.directive.d.ts +1 -1
- package/lib/interaction/popover/abstract.popover.ref.directive.d.ts +3 -4
- package/lib/interaction/popover/popover.action.directive.d.ts +4 -4
- package/lib/interaction/popover/popover.component.d.ts +2 -2
- package/lib/interaction/popover/popover.controls.directive.d.ts +1 -1
- package/lib/interaction/popover/popover.coordinator.service.d.ts +1 -1
- package/lib/interaction/popover/popover.d.ts +1 -1
- package/lib/interaction/popup/abstract.popup.directive.d.ts +1 -1
- package/lib/interaction/popup/popup.component.d.ts +1 -1
- package/lib/interaction/popup/popup.coordinator.service.d.ts +1 -2
- package/lib/interaction/popup/popup.d.ts +1 -1
- package/lib/interaction/prompt/prompt.confirm.d.ts +1 -1
- package/lib/interaction/prompt/prompt.confirm.directive.d.ts +3 -3
- package/lib/layout/bar/bar.directive.d.ts +1 -1
- package/lib/layout/column/two/two.column.component.d.ts +1 -2
- package/lib/layout/column/two/two.column.context.directive.d.ts +1 -2
- package/lib/layout/column/two/two.column.full.left.directive.d.ts +2 -3
- package/lib/layout/column/two/two.column.store.d.ts +3 -3
- package/lib/layout/content/content.border.directive.d.ts +1 -1
- package/lib/layout/content/content.box.directive.d.ts +1 -1
- package/lib/layout/content/content.container.directive.d.ts +1 -1
- package/lib/layout/content/content.directive.d.ts +1 -1
- package/lib/layout/content/content.elevate.directive.d.ts +1 -1
- package/lib/layout/content/content.page.directive.d.ts +1 -1
- package/lib/layout/flex/flex.group.directive.d.ts +2 -2
- package/lib/layout/list/list.component.d.ts +5 -5
- package/lib/layout/list/list.directive.d.ts +3 -5
- package/lib/layout/list/list.view.d.ts +1 -1
- package/lib/layout/list/list.view.directive.d.ts +0 -1
- package/lib/layout/list/list.view.value.component.d.ts +2 -2
- package/lib/layout/list/list.view.value.d.ts +7 -7
- package/lib/layout/list/list.view.value.directive.d.ts +1 -1
- package/lib/layout/list/list.view.value.modifier.d.ts +2 -2
- package/lib/layout/list/list.view.value.modifier.directive.d.ts +0 -1
- package/lib/layout/list/list.view.value.modifier.ripple.directive.d.ts +1 -1
- package/lib/layout/list/list.view.value.selection.component.d.ts +2 -2
- package/lib/layout/list/list.wrapper.d.ts +2 -2
- package/lib/layout/section/section.header.component.d.ts +1 -1
- package/lib/layout/section/section.intro.component.d.ts +1 -2
- package/lib/layout/style/spacer.directive.d.ts +1 -1
- package/lib/layout/style/style.directive.d.ts +1 -1
- package/lib/layout/style/style.service.d.ts +1 -2
- package/lib/layout/style/style.set.directive.d.ts +1 -1
- package/lib/layout/text/icon.spacer.component.d.ts +1 -1
- package/lib/layout/text/text.chips.component.d.ts +2 -2
- package/lib/loading/basic-loading.component.d.ts +1 -2
- package/lib/loading/loading.action.directive.d.ts +1 -1
- package/lib/router/layout/anchor/anchor.component.d.ts +3 -3
- package/lib/router/layout/anchor/anchor.segue.directive.d.ts +2 -2
- package/lib/router/provider/uirouter/anchor.component.d.ts +4 -0
- package/package.json +6 -5
|
@@ -6,7 +6,7 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
*
|
|
7
7
|
* Events/Keys to respond to should be lowercase.
|
|
8
8
|
*/
|
|
9
|
-
export declare class DbxActionKeyTriggerDirective<T =
|
|
9
|
+
export declare class DbxActionKeyTriggerDirective<T = unknown, O = unknown> {
|
|
10
10
|
readonly source: DbxActionContextStoreSourceInstance<T, O>;
|
|
11
11
|
inputKey: Maybe<string>;
|
|
12
12
|
constructor(source: DbxActionContextStoreSourceInstance<T, O>);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
1
|
+
import { OnInit, OnDestroy, AfterViewInit } from '@angular/core';
|
|
2
2
|
import { LoadingStateType } from '@dereekb/rxjs';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
|
-
import { OnDestroy, AfterViewInit } from '@angular/core';
|
|
5
4
|
import { MatSnackBarRef } from '@angular/material/snack-bar';
|
|
6
5
|
import { Maybe } from '@dereekb/util';
|
|
7
6
|
import { DbxActionSnackbarDisplayConfig, DbxActionSnackbarActionConfig } from './action.snackbar';
|
|
@@ -16,12 +15,12 @@ export declare class DbxActionSnackbarComponent extends AbstractSubscriptionDire
|
|
|
16
15
|
private _durationTimeout;
|
|
17
16
|
private _actionRef;
|
|
18
17
|
readonly value$: Observable<number>;
|
|
19
|
-
readonly sourceInstance$: Observable<import("@dereekb/dbx-core").DbxActionContextStoreSourceInstance<
|
|
18
|
+
readonly sourceInstance$: Observable<import("@dereekb/dbx-core").DbxActionContextStoreSourceInstance<unknown, unknown>>;
|
|
20
19
|
readonly complete$: Observable<boolean>;
|
|
21
20
|
readonly loadingStateType$: Observable<LoadingStateType>;
|
|
22
21
|
readonly snackbarStatusClass$: Observable<string>;
|
|
23
22
|
readonly button: Maybe<string>;
|
|
24
|
-
get action(): DbxActionSnackbarActionConfig | undefined;
|
|
23
|
+
get action(): DbxActionSnackbarActionConfig<unknown, unknown> | undefined;
|
|
25
24
|
get hasAction(): boolean;
|
|
26
25
|
get message(): Maybe<string>;
|
|
27
26
|
get actionConfig(): Maybe<DbxActionSnackbarActionConfig>;
|
|
@@ -7,13 +7,13 @@ export declare type DbxActionSnackbarKnownType = 'none' | 'create' | 'save' | 'd
|
|
|
7
7
|
/**
|
|
8
8
|
* ActionSnackbar event. Depending on the type, a value or error is also available.
|
|
9
9
|
*/
|
|
10
|
-
export interface DbxActionSnackbarEvent<O =
|
|
10
|
+
export interface DbxActionSnackbarEvent<O = unknown> extends Omit<LoadingState<O>, 'loading'> {
|
|
11
11
|
type: LoadingStateType;
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
14
|
* Configuration for the actual snackbar popup.
|
|
15
15
|
*/
|
|
16
|
-
export interface DbxActionSnackbarDisplayConfig {
|
|
16
|
+
export interface DbxActionSnackbarDisplayConfig<T = unknown, O = unknown> {
|
|
17
17
|
/**
|
|
18
18
|
* Text to be shown on the close button. If action is defined, this is ignored and the action text is used.
|
|
19
19
|
*/
|
|
@@ -25,7 +25,7 @@ export interface DbxActionSnackbarDisplayConfig {
|
|
|
25
25
|
/**
|
|
26
26
|
* Additional action that can occur.
|
|
27
27
|
*/
|
|
28
|
-
action?: DbxActionSnackbarActionConfig
|
|
28
|
+
action?: DbxActionSnackbarActionConfig<T, O>;
|
|
29
29
|
/**
|
|
30
30
|
* MatSnackBar configuration
|
|
31
31
|
*/
|
|
@@ -34,7 +34,7 @@ export interface DbxActionSnackbarDisplayConfig {
|
|
|
34
34
|
/**
|
|
35
35
|
* Used for configuring an action on the snackbar component.
|
|
36
36
|
*/
|
|
37
|
-
export interface DbxActionSnackbarActionConfig {
|
|
37
|
+
export interface DbxActionSnackbarActionConfig<T = unknown, O = unknown> {
|
|
38
38
|
/**
|
|
39
39
|
* Action label to display on the button.
|
|
40
40
|
*/
|
|
@@ -44,7 +44,7 @@ export interface DbxActionSnackbarActionConfig {
|
|
|
44
44
|
*
|
|
45
45
|
* The referred to action is used for triggering and lifecycle.
|
|
46
46
|
*/
|
|
47
|
-
reference: DbxActionContextSourceReference
|
|
47
|
+
reference: DbxActionContextSourceReference<T, O>;
|
|
48
48
|
/**
|
|
49
49
|
* Duration to show the action.
|
|
50
50
|
*/
|
|
@@ -8,18 +8,18 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
/**
|
|
9
9
|
* Action directive that displays a snackbar when the action context hits a certain state.
|
|
10
10
|
*/
|
|
11
|
-
export declare class DbxActionSnackbarDirective<T =
|
|
11
|
+
export declare class DbxActionSnackbarDirective<T = unknown, O = unknown> extends AbstractSubscriptionDirective implements OnInit {
|
|
12
12
|
readonly source: DbxActionContextStoreSourceInstance<T, O>;
|
|
13
13
|
readonly dbxActionSnackbarService: DbxActionSnackbarService;
|
|
14
14
|
private _snackbarFunction?;
|
|
15
|
-
get snackbarFunction(): Maybe<DbxActionSnackbarDisplayConfigGeneratorFunction
|
|
16
|
-
set snackbarFunction(snackbarFunction: Maybe<'' | DbxActionSnackbarDisplayConfigGeneratorFunction
|
|
15
|
+
get snackbarFunction(): Maybe<DbxActionSnackbarDisplayConfigGeneratorFunction>;
|
|
16
|
+
set snackbarFunction(snackbarFunction: Maybe<'' | DbxActionSnackbarDisplayConfigGeneratorFunction>);
|
|
17
17
|
dbxActionSnackbarDefault?: Maybe<DbxActionSnackbarType>;
|
|
18
|
-
dbxActionSnackbarUndo?: DbxActionSnackbarGeneratorUndoInput
|
|
18
|
+
dbxActionSnackbarUndo?: DbxActionSnackbarGeneratorUndoInput<T, O>;
|
|
19
19
|
constructor(source: DbxActionContextStoreSourceInstance<T, O>, dbxActionSnackbarService: DbxActionSnackbarService);
|
|
20
20
|
ngOnInit(): void;
|
|
21
|
-
protected buildConfigurationForEvent(event: DbxActionSnackbarEvent): Maybe<DbxActionSnackbarDisplayConfig
|
|
22
|
-
protected showSnackbarForConfiguration(config: DbxActionSnackbarDisplayConfig, event: DbxActionSnackbarEvent): void;
|
|
21
|
+
protected buildConfigurationForEvent(event: DbxActionSnackbarEvent<O>): Maybe<DbxActionSnackbarDisplayConfig<T, O>>;
|
|
22
|
+
protected showSnackbarForConfiguration(config: DbxActionSnackbarDisplayConfig<T, O>, event: DbxActionSnackbarEvent<O>): void;
|
|
23
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionSnackbarDirective<any, any>, [{ host: true; }, null]>;
|
|
24
24
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionSnackbarDirective<any, any>, "[dbxActionSnackbar]", never, { "snackbarFunction": "dbxActionSnackbar"; "dbxActionSnackbarDefault": "dbxActionSnackbarDefault"; "dbxActionSnackbarUndo": "dbxActionSnackbarUndo"; }, {}, never>;
|
|
25
25
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { DbxActionContextSourceReference } from "@dereekb/dbx-core";
|
|
2
2
|
import { Milliseconds, Maybe, GetterOrValue, Getter } from "@dereekb/util";
|
|
3
3
|
import { DbxActionSnackbarDisplayConfig, DbxActionSnackbarEvent } from "./action.snackbar";
|
|
4
|
-
export interface DbxActionSnackbarGeneratorInput<O =
|
|
4
|
+
export interface DbxActionSnackbarGeneratorInput<T = unknown, O = unknown> {
|
|
5
5
|
event: DbxActionSnackbarEvent<O>;
|
|
6
|
-
undo?: Maybe<DbxActionSnackbarGeneratorUndoInput
|
|
6
|
+
undo?: Maybe<DbxActionSnackbarGeneratorUndoInput<T, O>>;
|
|
7
7
|
}
|
|
8
|
-
export declare type DbxActionSnackbarGeneratorUndoInput =
|
|
9
|
-
export interface DbxActionSnackbarGeneratorUndoInputConfig {
|
|
8
|
+
export declare type DbxActionSnackbarGeneratorUndoInput<T = unknown, O = unknown> = Getter<DbxActionContextSourceReference<T, O>> | DbxActionSnackbarGeneratorUndoInputConfig<T, O>;
|
|
9
|
+
export interface DbxActionSnackbarGeneratorUndoInputConfig<T = unknown, O = unknown> {
|
|
10
10
|
duration?: Milliseconds;
|
|
11
|
-
getUndoAction: Getter<DbxActionContextSourceReference
|
|
11
|
+
getUndoAction: Getter<DbxActionContextSourceReference<T, O>>;
|
|
12
12
|
}
|
|
13
|
-
export declare type DbxActionSnackbarDisplayConfigGeneratorFunction<
|
|
13
|
+
export declare type DbxActionSnackbarDisplayConfigGeneratorFunction = <T = unknown, O = unknown>(input: DbxActionSnackbarGeneratorInput<T, O>) => Maybe<DbxActionSnackbarDisplayConfig<T, O>>;
|
|
14
14
|
export interface DbxMakeActionSnackbarGeneratorConfiguration {
|
|
15
15
|
idle?: GetterOrValue<DbxMakeActionSnackbarGeneratorEventConfiguration>;
|
|
16
16
|
loading?: GetterOrValue<DbxMakeActionSnackbarGeneratorEventConfiguration>;
|
|
@@ -29,4 +29,4 @@ export interface DbxMakeActionSnackbarGeneratorEventConfiguration extends Omit<D
|
|
|
29
29
|
* @param config
|
|
30
30
|
* @returns
|
|
31
31
|
*/
|
|
32
|
-
export declare function makeDbxActionSnackbarDisplayConfigGeneratorFunction
|
|
32
|
+
export declare function makeDbxActionSnackbarDisplayConfigGeneratorFunction(config: DbxMakeActionSnackbarGeneratorConfiguration): DbxActionSnackbarDisplayConfigGeneratorFunction;
|
|
@@ -10,7 +10,7 @@ export declare const DEFAULT_SNACKBAR_DIRECTIVE_DURATION: number;
|
|
|
10
10
|
export interface DbxActionSnackbarEventMakeConfig {
|
|
11
11
|
[key: string]: DbxMakeActionSnackbarGeneratorConfiguration;
|
|
12
12
|
}
|
|
13
|
-
export interface DbxActionSnackbarServiceConfig<C =
|
|
13
|
+
export interface DbxActionSnackbarServiceConfig<C = unknown> {
|
|
14
14
|
readonly componentClass: Type<C>;
|
|
15
15
|
readonly snackbar?: Pick<MatSnackBarConfig, 'horizontalPosition' | 'verticalPosition'>;
|
|
16
16
|
readonly defaultDuration?: Milliseconds;
|
|
@@ -32,8 +32,8 @@ export declare class DbxActionSnackbarService<C = DbxActionSnackbarComponent> {
|
|
|
32
32
|
* @param config
|
|
33
33
|
* @returns
|
|
34
34
|
*/
|
|
35
|
-
openSnackbar(config: DbxActionSnackbarDisplayConfig): MatSnackBarRef<C>;
|
|
36
|
-
generateDisplayConfig(type: Maybe<DbxActionSnackbarType>, input: DbxActionSnackbarGeneratorInput): Maybe<DbxActionSnackbarDisplayConfig
|
|
35
|
+
openSnackbar<T = unknown, O = unknown>(config: DbxActionSnackbarDisplayConfig<T, O>): MatSnackBarRef<C>;
|
|
36
|
+
generateDisplayConfig<T = unknown, O = unknown>(type: Maybe<DbxActionSnackbarType>, input: DbxActionSnackbarGeneratorInput<T, O>): Maybe<DbxActionSnackbarDisplayConfig<T, O>>;
|
|
37
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionSnackbarService<any>, [null, { optional: true; }]>;
|
|
38
38
|
static ɵprov: i0.ɵɵInjectableDeclaration<DbxActionSnackbarService<any>>;
|
|
39
39
|
}
|
|
@@ -4,5 +4,5 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
*/
|
|
5
5
|
export declare class DbxButtonSpacerDirective {
|
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxButtonSpacerDirective, never>;
|
|
7
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxButtonSpacerDirective, "dbx-button-spacer,dbxButtonSpacer", never, {}, {}, never>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxButtonSpacerDirective, "dbx-button-spacer,[dbxButtonSpacer]", never, {}, {}, never>;
|
|
8
8
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy, OnInit, EventEmitter } from '@angular/core';
|
|
2
2
|
import { AbstractSubscriptionDirective } from '@dereekb/dbx-core';
|
|
3
3
|
import { Maybe } from '@dereekb/util';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
|
-
import { EventEmitter } from '@angular/core';
|
|
6
5
|
import { DbxProgressButtonGlobalConfig, DbxProgressButtonOptions } from './button.progress.config';
|
|
7
6
|
import * as i0 from "@angular/core";
|
|
8
7
|
export declare abstract class AbstractProgressButtonDirective extends AbstractSubscriptionDirective implements OnInit, OnDestroy {
|
|
@@ -20,10 +19,10 @@ export declare abstract class AbstractProgressButtonDirective extends AbstractSu
|
|
|
20
19
|
ngOnInit(): void;
|
|
21
20
|
ngOnDestroy(): void;
|
|
22
21
|
handleClick(event: MouseEvent): void;
|
|
23
|
-
get options(): DbxProgressButtonOptions;
|
|
24
22
|
get customSpinnerStyle(): {
|
|
25
23
|
stroke: string;
|
|
26
24
|
} | undefined;
|
|
25
|
+
get options(): DbxProgressButtonOptions;
|
|
27
26
|
set options(options: DbxProgressButtonOptions);
|
|
28
27
|
set buttonId(buttonId: string);
|
|
29
28
|
/**
|
package/lib/error/error.api.d.ts
CHANGED
|
@@ -3,11 +3,11 @@ import { ServerError, ServerErrorResponse } from '@dereekb/util';
|
|
|
3
3
|
/**
|
|
4
4
|
* Converts the error response to a POJO.
|
|
5
5
|
*/
|
|
6
|
-
export declare function convertToPOJOServerErrorResponse(httpError: HttpErrorResponse |
|
|
6
|
+
export declare function convertToPOJOServerErrorResponse(httpError: HttpErrorResponse | object): ServerError;
|
|
7
7
|
/**
|
|
8
8
|
* Converts an HTTP Error Response to a ServerErrorResponse type.
|
|
9
9
|
*
|
|
10
10
|
* @param error
|
|
11
11
|
* @returns
|
|
12
12
|
*/
|
|
13
|
-
export declare function convertToServerErrorResponse(error: HttpErrorResponse |
|
|
13
|
+
export declare function convertToServerErrorResponse(error: HttpErrorResponse | object): ServerErrorResponse | undefined;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Maybe } from '@dereekb/util';
|
|
2
|
-
import { ErrorInput, ReadableError } from '@dereekb/util';
|
|
1
|
+
import { Maybe, ErrorInput, ReadableError } from '@dereekb/util';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
/**
|
|
5
4
|
* Basic error component.
|
|
@@ -7,7 +6,7 @@ import * as i0 from "@angular/core";
|
|
|
7
6
|
export declare class DbxReadableErrorComponent {
|
|
8
7
|
private _error?;
|
|
9
8
|
get error(): Maybe<ReadableError>;
|
|
10
|
-
set error(error: Maybe<ErrorInput
|
|
9
|
+
set error(error: Maybe<ErrorInput>);
|
|
11
10
|
get message(): Maybe<string>;
|
|
12
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxReadableErrorComponent, never>;
|
|
13
12
|
static ɵcmp: i0.ɵɵComponentDeclaration<DbxReadableErrorComponent, "dbx-error", never, { "error": "error"; }, {}, never, never>;
|
package/lib/error/state.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpErrorResponse } from '@angular/common/http';
|
|
2
|
-
import {
|
|
2
|
+
import { MonoTypeOperatorFunction } from 'rxjs';
|
|
3
3
|
import { ActionCreator, TypedAction } from '@ngrx/store/src/models';
|
|
4
4
|
import { ServerError } from '@dereekb/util';
|
|
5
5
|
export interface ServerErrorParams {
|
|
@@ -8,8 +8,8 @@ export interface ServerErrorParams {
|
|
|
8
8
|
/**
|
|
9
9
|
* Converts the error response to ServerErrorParams.
|
|
10
10
|
*/
|
|
11
|
-
export declare function convertServerErrorParams(httpError: HttpErrorResponse |
|
|
11
|
+
export declare function convertServerErrorParams(httpError: HttpErrorResponse | object): ServerErrorParams;
|
|
12
12
|
/**
|
|
13
13
|
* Catches error server params and feeds them to an action that takes ServerErrorParams as a prop.
|
|
14
14
|
*/
|
|
15
|
-
export declare function catchErrorServerParams<E extends ServerErrorParams, T extends string>(action: ActionCreator<T, (props: E) => E & TypedAction<T>>, mapError?: (error: ServerErrorParams) => E):
|
|
15
|
+
export declare function catchErrorServerParams<E extends ServerErrorParams, T extends string>(action: ActionCreator<T, (props: E) => E & TypedAction<T>>, mapError?: (error: ServerErrorParams) => E): MonoTypeOperatorFunction<E & TypedAction<T>>;
|
|
@@ -5,7 +5,7 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
/**
|
|
6
6
|
* Abstract dialog component that closes when a transition is successful.
|
|
7
7
|
*/
|
|
8
|
-
export declare abstract class AbstractDialogDirective<R =
|
|
8
|
+
export declare abstract class AbstractDialogDirective<R = unknown, D = unknown, T = unknown> extends AbstractTransitionWatcherDirective {
|
|
9
9
|
readonly data: D;
|
|
10
10
|
readonly dialogRef: MatDialogRef<T, R>;
|
|
11
11
|
constructor(data: D, dialogRef: MatDialogRef<T, R>, dbxRouterTransitionService: DbxRouterTransitionService, ngZone: NgZone);
|
|
@@ -5,17 +5,17 @@ import { IsModifiedFunction } from '@dereekb/rxjs';
|
|
|
5
5
|
import { Maybe } from '@dereekb/util';
|
|
6
6
|
import { MatDialogRef } from '@angular/material/dialog';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
|
-
export declare type DbxActionDialogFunction<T =
|
|
8
|
+
export declare type DbxActionDialogFunction<T = unknown> = () => MatDialogRef<unknown, Maybe<T>>;
|
|
9
9
|
/**
|
|
10
10
|
* Action directive that is used to trigger/display a dialog, then watches that dialog for a value.
|
|
11
11
|
*/
|
|
12
|
-
export declare class DbxActionDialogDirective<T =
|
|
12
|
+
export declare class DbxActionDialogDirective<T = unknown> extends AbstractDbxActionValueOnTriggerDirective<T> implements OnInit, OnDestroy {
|
|
13
13
|
readonly elementRef: ElementRef;
|
|
14
14
|
fn?: DbxActionDialogFunction<T>;
|
|
15
15
|
set dbxActionDialogModified(isModifiedFunction: Maybe<IsModifiedFunction>);
|
|
16
|
-
constructor(elementRef: ElementRef, source: DbxActionContextStoreSourceInstance<T,
|
|
16
|
+
constructor(elementRef: ElementRef, source: DbxActionContextStoreSourceInstance<T, unknown>);
|
|
17
17
|
protected _getDataFromDialog(): Observable<Maybe<T>>;
|
|
18
|
-
protected _makeDialogRef(): MatDialogRef<
|
|
18
|
+
protected _makeDialogRef(): MatDialogRef<unknown, Maybe<T>>;
|
|
19
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionDialogDirective<any>, never>;
|
|
20
20
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionDialogDirective<any>, "[dbxActionDialog]", ["dbxActionDialog"], { "fn": "dbxActionDialog"; "dbxActionDialogModified": "dbxActionDialogModified"; }, {}, never>;
|
|
21
21
|
}
|
|
@@ -6,5 +6,5 @@ export declare type DbxDialogContentContainerWidth = 'normal' | 'wide';
|
|
|
6
6
|
export declare class DbxDialogContentDirective {
|
|
7
7
|
width: string;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxDialogContentDirective, never>;
|
|
9
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxDialogContentDirective, "dbx-dialog-content
|
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxDialogContentDirective, "dbx-dialog-content,[dbxDialogContent].dbx-dialog-content", never, { "width": "width"; }, {}, never>;
|
|
10
10
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ElementRef } from '@angular/core';
|
|
2
2
|
import { AbstractFilterPopoverButtonDirective } from './filter.popover.button.directive';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class DbxFilterPopoverButtonComponent<F =
|
|
4
|
+
export declare class DbxFilterPopoverButtonComponent<F = object> extends AbstractFilterPopoverButtonDirective<F> {
|
|
5
5
|
buttonElement: ElementRef;
|
|
6
6
|
showFilterPopover(): void;
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFilterPopoverButtonComponent<any>, never>;
|
|
@@ -3,8 +3,7 @@ import { DbxPopoverService } from '../popover/popover.service';
|
|
|
3
3
|
import { AbstractSubscriptionDirective } from '@dereekb/dbx-core';
|
|
4
4
|
import { DbxFilterComponentParams } from './filter.popover.component';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export
|
|
7
|
-
}
|
|
6
|
+
export declare type DbxFilterButtonConfig<F> = DbxFilterComponentParams<F>;
|
|
8
7
|
export declare abstract class AbstractFilterPopoverButtonDirective<F> extends AbstractSubscriptionDirective {
|
|
9
8
|
private readonly popupService;
|
|
10
9
|
config?: DbxFilterButtonConfig<F>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DbxInjectionComponentConfig } from '@dereekb/dbx-core';
|
|
2
|
-
import { ElementRef, Type, OnInit } from '@angular/core';
|
|
2
|
+
import { ElementRef, Type, OnInit, OnDestroy } from '@angular/core';
|
|
3
3
|
import { NgPopoverRef } from 'ng-overlay-container';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
import { AbstractPopoverDirective } from '../popover/abstract.popover.directive';
|
|
@@ -8,7 +8,7 @@ import { DbxPopoverService } from '../popover/popover.service';
|
|
|
8
8
|
import { FilterSource, FilterSourceConnector, PresetFilterSource } from '@dereekb/rxjs';
|
|
9
9
|
import { DbxPopoverKey } from '../popover/popover';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
|
-
export interface DbxFilterComponentParams<F =
|
|
11
|
+
export interface DbxFilterComponentParams<F = object> {
|
|
12
12
|
/**
|
|
13
13
|
* Custom filter component to initialize.
|
|
14
14
|
*/
|
|
@@ -26,23 +26,23 @@ export interface DbxFilterComponentParams<F = any> {
|
|
|
26
26
|
*/
|
|
27
27
|
initialFilterObs?: Observable<F>;
|
|
28
28
|
}
|
|
29
|
-
export interface DbxFilterPopoverComponentParams<F =
|
|
29
|
+
export interface DbxFilterPopoverComponentParams<F = object> extends DbxFilterComponentParams<F> {
|
|
30
30
|
/**
|
|
31
31
|
* Origin to add the popover to.
|
|
32
32
|
*/
|
|
33
33
|
origin: ElementRef;
|
|
34
34
|
}
|
|
35
35
|
export declare const DEFAULT_FILTER_POPOVER_KEY = "filter";
|
|
36
|
-
export declare class DbxFilterPopoverComponent<F> extends AbstractPopoverDirective implements OnInit {
|
|
36
|
+
export declare class DbxFilterPopoverComponent<F> extends AbstractPopoverDirective<unknown, DbxFilterComponentParams<F>> implements OnInit, OnDestroy {
|
|
37
37
|
/**
|
|
38
38
|
* Whether or not to display buttons to toggle between custom and preset filters.
|
|
39
39
|
*/
|
|
40
40
|
readonly showSwitchButtons: boolean;
|
|
41
41
|
private _showPreset;
|
|
42
42
|
readonly showPreset$: Observable<boolean>;
|
|
43
|
-
readonly config$: Observable<DbxInjectionComponentConfig
|
|
43
|
+
readonly config$: Observable<DbxInjectionComponentConfig<FilterSource<F>>>;
|
|
44
44
|
static openPopover<F>(popupService: DbxPopoverService, { origin, initialFilterObs: inputSource, connector, customFilterComponentClass, presetFilterComponentClass }: DbxFilterPopoverComponentParams<F>, popoverKey?: DbxPopoverKey): NgPopoverRef;
|
|
45
|
-
constructor(popover: DbxPopoverComponent);
|
|
45
|
+
constructor(popover: DbxPopoverComponent<unknown, DbxFilterComponentParams<F>>);
|
|
46
46
|
get config(): DbxFilterComponentParams<F>;
|
|
47
47
|
ngOnInit(): void;
|
|
48
48
|
ngOnDestroy(): void;
|
|
@@ -3,7 +3,7 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
/**
|
|
4
4
|
* Abstract popover directive.
|
|
5
5
|
*/
|
|
6
|
-
export declare abstract class AbstractPopoverDirective<O =
|
|
6
|
+
export declare abstract class AbstractPopoverDirective<O = unknown, I = unknown, T = unknown> {
|
|
7
7
|
readonly popover: DbxPopoverComponent<O, I, T>;
|
|
8
8
|
constructor(popover: DbxPopoverComponent<O, I, T>);
|
|
9
9
|
close(): void;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
|
1
|
+
import { OnDestroy, EventEmitter } from '@angular/core';
|
|
2
2
|
import { AbstractSubscriptionDirective } from '@dereekb/dbx-core';
|
|
3
|
-
import { EventEmitter } from '@angular/core';
|
|
4
3
|
import { NgPopoverCloseEvent, NgPopoverRef } from 'ng-overlay-container';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
/**
|
|
7
6
|
* Abstract class for showing and handling a popover ref.
|
|
8
7
|
*/
|
|
9
|
-
export declare abstract class AbstractPopoverRefDirective<T =
|
|
8
|
+
export declare abstract class AbstractPopoverRefDirective<T = unknown, R = unknown> extends AbstractSubscriptionDirective {
|
|
10
9
|
private _popoverRef?;
|
|
11
10
|
showPopover(): void;
|
|
12
11
|
private _showPopoverRef;
|
|
@@ -19,7 +18,7 @@ export declare abstract class AbstractPopoverRefDirective<T = any, R = any> exte
|
|
|
19
18
|
/**
|
|
20
19
|
* {@link AbstractPopoverRefDirective} extension that includes open/closed events.
|
|
21
20
|
*/
|
|
22
|
-
export declare abstract class AbstractPopoverRefWithEventsDirective<T =
|
|
21
|
+
export declare abstract class AbstractPopoverRefWithEventsDirective<T = unknown, R = unknown> extends AbstractPopoverRefDirective<T, R> implements OnDestroy {
|
|
23
22
|
readonly popoverOpened: EventEmitter<NgPopoverRef<T, R>>;
|
|
24
23
|
readonly popoverClosed: EventEmitter<NgPopoverCloseEvent<R>>;
|
|
25
24
|
ngOnDestroy(): void;
|
|
@@ -8,17 +8,17 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
export interface DbxActionPopoverFunctionParams {
|
|
9
9
|
origin: ElementRef;
|
|
10
10
|
}
|
|
11
|
-
export declare type DbxActionPopoverFunction<T =
|
|
11
|
+
export declare type DbxActionPopoverFunction<T = unknown> = (params: DbxActionPopoverFunctionParams) => NgPopoverRef<unknown, Maybe<T>>;
|
|
12
12
|
/**
|
|
13
13
|
* Action directive that is used to trigger/display a popover, then watches that popover for a value.
|
|
14
14
|
*/
|
|
15
|
-
export declare class DbxActionPopoverDirective<T =
|
|
15
|
+
export declare class DbxActionPopoverDirective<T = unknown> extends AbstractDbxActionValueOnTriggerDirective<T> implements OnInit, OnDestroy {
|
|
16
16
|
readonly elementRef: ElementRef;
|
|
17
17
|
fn?: DbxActionPopoverFunction<T>;
|
|
18
18
|
set dbxActionPopoverModified(isModifiedFunction: Maybe<IsModifiedFunction>);
|
|
19
|
-
constructor(elementRef: ElementRef, source: DbxActionContextStoreSourceInstance<T,
|
|
19
|
+
constructor(elementRef: ElementRef, source: DbxActionContextStoreSourceInstance<T, unknown>);
|
|
20
20
|
protected _getDataFromPopover(): Observable<Maybe<T>>;
|
|
21
|
-
protected _makePopoverRef(): NgPopoverRef<
|
|
21
|
+
protected _makePopoverRef(): NgPopoverRef<unknown, Maybe<T>>;
|
|
22
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionPopoverDirective<any>, never>;
|
|
23
23
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionPopoverDirective<any>, "[dbxActionPopover]", ["dbxActionPopover"], { "fn": "dbxActionPopover"; "dbxActionPopoverModified": "dbxActionPopoverModified"; }, {}, never>;
|
|
24
24
|
}
|
|
@@ -46,7 +46,7 @@ export interface FullDbxPopoverComponentConfig<O, I, T> extends DbxPopoverCompon
|
|
|
46
46
|
/**
|
|
47
47
|
* Popover component.
|
|
48
48
|
*/
|
|
49
|
-
export declare class DbxPopoverComponent<O =
|
|
49
|
+
export declare class DbxPopoverComponent<O = unknown, I = unknown, T = unknown> extends AbstractTransitionWatcherDirective implements DbxPopoverController<O, I>, OnInit, OnDestroy {
|
|
50
50
|
private popoverRef;
|
|
51
51
|
private compactContextState;
|
|
52
52
|
readonly lockSet: LockSet;
|
|
@@ -67,7 +67,7 @@ export declare class DbxPopoverComponent<O = any, I = any, T = any> extends Abst
|
|
|
67
67
|
protected updateForSuccessfulTransition(): void;
|
|
68
68
|
close(): void;
|
|
69
69
|
return(value?: O): void;
|
|
70
|
-
handleKeydown(
|
|
70
|
+
handleKeydown(): void;
|
|
71
71
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxPopoverComponent<any, any, any>, never>;
|
|
72
72
|
static ɵcmp: i0.ɵɵComponentDeclaration<DbxPopoverComponent<any, any, any>, "ng-component", never, {}, {}, never, never>;
|
|
73
73
|
}
|
|
@@ -6,5 +6,5 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
export declare class DbxPopoverControlsDirective {
|
|
7
7
|
constructor(appPopoverContentComponent: DbxPopoverContentComponent);
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxPopoverControlsDirective, [{ optional: true; }]>;
|
|
9
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxPopoverControlsDirective, "dbx-popover-controls,[
|
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxPopoverControlsDirective, "dbx-popover-controls,[dbxPopoverControls],.dbx-popover-controls", never, {}, {}, never>;
|
|
10
10
|
}
|
|
@@ -6,7 +6,7 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
*/
|
|
7
7
|
export declare class DbxPopoverCoordinatorService implements OnDestroy {
|
|
8
8
|
private _popovers;
|
|
9
|
-
readonly popovers$: import("rxjs").Observable<Map<string, DbxPopoverController<
|
|
9
|
+
readonly popovers$: import("rxjs").Observable<Map<string, DbxPopoverController<unknown, unknown>>>;
|
|
10
10
|
ngOnDestroy(): void;
|
|
11
11
|
get popovers(): Map<DbxPopoverKey, DbxPopoverController>;
|
|
12
12
|
addPopover(popover: DbxPopoverController): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Maybe } from "@dereekb/util";
|
|
2
2
|
import { Observable } from "rxjs";
|
|
3
3
|
export declare type DbxPopoverKey = string;
|
|
4
|
-
export declare abstract class DbxPopoverController<O =
|
|
4
|
+
export declare abstract class DbxPopoverController<O = unknown, I = unknown> {
|
|
5
5
|
abstract readonly key: DbxPopoverKey;
|
|
6
6
|
abstract readonly data?: Maybe<I>;
|
|
7
7
|
abstract readonly closing$: Observable<boolean>;
|
|
@@ -3,7 +3,7 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
/**
|
|
4
4
|
* Abstract popup directive.
|
|
5
5
|
*/
|
|
6
|
-
export declare abstract class AbstractPopupDirective<O =
|
|
6
|
+
export declare abstract class AbstractPopupDirective<O = unknown, I = unknown, T = unknown> {
|
|
7
7
|
readonly popup: DbxPopupComponent<O, I, T>;
|
|
8
8
|
constructor(popup: DbxPopupComponent<O, I, T>);
|
|
9
9
|
closePopup(): void;
|
|
@@ -30,7 +30,7 @@ export interface DbxPopupComponentConfig<O, I, T> {
|
|
|
30
30
|
/**
|
|
31
31
|
* Popup component.
|
|
32
32
|
*/
|
|
33
|
-
export declare class DbxPopupComponent<O =
|
|
33
|
+
export declare class DbxPopupComponent<O = unknown, I = unknown, T = unknown> extends AbstractTransitionWatcherDirective implements DbxPopupController<O, I>, OnDestroy {
|
|
34
34
|
private popoverRef;
|
|
35
35
|
private compactContextState;
|
|
36
36
|
private _position;
|
|
@@ -6,8 +6,7 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
*/
|
|
7
7
|
export declare class DbxPopupCoordinatorService implements OnDestroy {
|
|
8
8
|
private _popups;
|
|
9
|
-
readonly popups$: import("rxjs").Observable<Map<string, DbxPopupController<
|
|
10
|
-
constructor();
|
|
9
|
+
readonly popups$: import("rxjs").Observable<Map<string, DbxPopupController<unknown, unknown>>>;
|
|
11
10
|
ngOnDestroy(): void;
|
|
12
11
|
get popups(): Map<DbxPopupKey, DbxPopupController>;
|
|
13
12
|
addPopup(popup: DbxPopupController): void;
|
|
@@ -6,7 +6,7 @@ export declare enum DbxPopupWindowState {
|
|
|
6
6
|
MINIMIZED = "minimized",
|
|
7
7
|
FULLSCREEN = "fullscreen"
|
|
8
8
|
}
|
|
9
|
-
export declare abstract class DbxPopupController<O =
|
|
9
|
+
export declare abstract class DbxPopupController<O = unknown, I = unknown> {
|
|
10
10
|
abstract readonly key: DbxPopupKey;
|
|
11
11
|
abstract readonly data?: Maybe<I>;
|
|
12
12
|
abstract readonly windowState$: Observable<DbxPopupWindowState>;
|
|
@@ -4,4 +4,4 @@ import { Observable } from 'rxjs';
|
|
|
4
4
|
export declare abstract class DbxPromptConfirm {
|
|
5
5
|
abstract showDialog(): Observable<Maybe<boolean>>;
|
|
6
6
|
}
|
|
7
|
-
export declare function
|
|
7
|
+
export declare function provideDbxPromptConfirm<S extends DbxPromptConfirm>(sourceType: Type<S>): Provider[];
|
|
@@ -20,9 +20,9 @@ export declare abstract class AbstractPromptConfirmDirective implements DbxPromp
|
|
|
20
20
|
/**
|
|
21
21
|
* Directive that shows a confirmation screen.
|
|
22
22
|
*/
|
|
23
|
-
export declare class DbxPromptConfirmDirective
|
|
23
|
+
export declare class DbxPromptConfirmDirective extends AbstractPromptConfirmDirective {
|
|
24
24
|
config?: DbxPromptConfirmConfig;
|
|
25
25
|
constructor(dialog: MatDialog);
|
|
26
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DbxPromptConfirmDirective
|
|
27
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxPromptConfirmDirective
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxPromptConfirmDirective, never>;
|
|
27
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxPromptConfirmDirective, "[dbxPromptConfirm]", never, { "config": "dbxPromptConfirm"; }, {}, never>;
|
|
28
28
|
}
|
|
@@ -7,5 +7,5 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
export declare class DbxBarDirective {
|
|
8
8
|
color?: Maybe<DbxBarColor>;
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxBarDirective, never>;
|
|
10
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxBarDirective, "dbx-bar", never, { "color": "color"; }, {}, never>;
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxBarDirective, "dbx-bar,[dbxBar]", never, { "color": "color"; }, {}, never>;
|
|
11
11
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { ChangeDetectorRef, OnDestroy } from '@angular/core';
|
|
2
|
-
import { OnInit } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
3
2
|
import { AbstractSubscriptionDirective } from '@dereekb/dbx-core';
|
|
4
3
|
import { Observable } from 'rxjs';
|
|
5
4
|
import { TwoColumnsContextStore } from './two.column.store';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
|
2
|
-
import { OnInit } from '@angular/core';
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
3
2
|
import { Maybe } from '@dereekb/util';
|
|
4
3
|
import { TwoColumnsContextStore } from './two.column.store';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { OnDestroy } from '@angular/core';
|
|
1
|
+
import { OnInit, OnDestroy } from '@angular/core';
|
|
3
2
|
import { TwoColumnsContextStore } from './two.column.store';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
/**
|
|
@@ -9,7 +8,7 @@ export declare class DbxTwoColumnFullLeftDirective implements OnInit, OnDestroy
|
|
|
9
8
|
private readonly _twoColumnsContextStore;
|
|
10
9
|
private _fullLeft;
|
|
11
10
|
get fullLeft(): boolean;
|
|
12
|
-
set fullLeft(fullLeft: boolean);
|
|
11
|
+
set fullLeft(fullLeft: boolean | '');
|
|
13
12
|
constructor(_twoColumnsContextStore: TwoColumnsContextStore);
|
|
14
13
|
ngOnInit(): void;
|
|
15
14
|
ngOnDestroy(): void;
|
|
@@ -36,7 +36,7 @@ export declare class TwoColumnsContextStore extends ComponentStore<TwoColumnsSta
|
|
|
36
36
|
/**
|
|
37
37
|
* Pipes the current backRef value.
|
|
38
38
|
*/
|
|
39
|
-
readonly backRef$: import("rxjs").Observable<SegueRef<
|
|
39
|
+
readonly backRef$: import("rxjs").Observable<SegueRef<object> | undefined>;
|
|
40
40
|
/**
|
|
41
41
|
* Emits back events.
|
|
42
42
|
*/
|
|
@@ -56,7 +56,7 @@ export declare class TwoColumnsContextStore extends ComponentStore<TwoColumnsSta
|
|
|
56
56
|
/**
|
|
57
57
|
* Sets the new back ref.
|
|
58
58
|
*/
|
|
59
|
-
readonly setBackRef: (observableOrValue: SegueRef<
|
|
59
|
+
readonly setBackRef: (observableOrValue: SegueRef<object> | import("rxjs").Observable<SegueRef<object>>) => import("rxjs").Subscription;
|
|
60
60
|
/**
|
|
61
61
|
* Emits a back event.
|
|
62
62
|
*/
|
|
@@ -65,4 +65,4 @@ export declare class TwoColumnsContextStore extends ComponentStore<TwoColumnsSta
|
|
|
65
65
|
static ɵfac: i0.ɵɵFactoryDeclaration<TwoColumnsContextStore, never>;
|
|
66
66
|
static ɵprov: i0.ɵɵInjectableDeclaration<TwoColumnsContextStore>;
|
|
67
67
|
}
|
|
68
|
-
export declare function
|
|
68
|
+
export declare function provideTwoColumnsContext(): Provider[];
|
|
@@ -4,5 +4,5 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
*/
|
|
5
5
|
export declare class DbxContentBorderDirective {
|
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxContentBorderDirective, never>;
|
|
7
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxContentBorderDirective, "dbx-content-border,[
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxContentBorderDirective, "dbx-content-border,[dbxContentBorder]", never, {}, {}, never>;
|
|
8
8
|
}
|
|
@@ -6,5 +6,5 @@ export declare class DbxContentBoxDirective {
|
|
|
6
6
|
elevated: boolean;
|
|
7
7
|
wide: boolean;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxContentBoxDirective, never>;
|
|
9
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxContentBoxDirective, "dbx-content-box, [
|
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxContentBoxDirective, "dbx-content-box, [dbxContentBox]", never, { "elevated": "elevated"; "wide": "wide"; }, {}, never>;
|
|
10
10
|
}
|