@dereekb/dbx-web 1.2.0 → 2.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/README.md +1 -1
- package/_index.scss +5 -2
- package/esm2020/lib/action/action.confirm.directive.mjs +5 -5
- package/esm2020/lib/action/action.module.mjs +1 -6
- package/esm2020/lib/action/index.mjs +2 -2
- package/esm2020/lib/action/key.trigger.directive.mjs +4 -4
- package/esm2020/lib/action/snackbar/action.snackbar.component.mjs +95 -0
- package/esm2020/lib/action/snackbar/action.snackbar.default.mjs +107 -0
- package/esm2020/lib/action/snackbar/action.snackbar.directive.mjs +62 -0
- package/esm2020/lib/action/snackbar/action.snackbar.generator.mjs +44 -0
- package/esm2020/lib/action/snackbar/action.snackbar.mjs +2 -0
- package/esm2020/lib/action/snackbar/action.snackbar.module.mjs +51 -0
- package/esm2020/lib/action/snackbar/action.snackbar.service.mjs +82 -0
- package/esm2020/lib/action/snackbar/index.mjs +8 -0
- package/esm2020/lib/action/transition/transition.safety.dialog.component.mjs +5 -4
- package/esm2020/lib/action/transition/transition.safety.directive.mjs +4 -4
- package/esm2020/lib/button/button.component.mjs +1 -2
- package/esm2020/lib/button/button.module.mjs +12 -8
- package/esm2020/lib/button/button.spacer.component.mjs +12 -10
- package/esm2020/lib/error/error.action.directive.mjs +4 -4
- package/esm2020/lib/interaction/popover/popover.action.button.directive.mjs +7 -7
- package/esm2020/lib/interaction/popover/popover.action.directive.mjs +4 -4
- package/esm2020/lib/interaction/popup/popup.controls.buttons.component.mjs +3 -3
- package/esm2020/lib/interaction/prompt/prompt.confirm.component.mjs +1 -1
- package/esm2020/lib/layout/section/section.header.component.mjs +6 -3
- package/esm2020/lib/layout/text/icon.spacer.component.mjs +19 -0
- package/esm2020/lib/layout/text/index.mjs +2 -1
- package/esm2020/lib/layout/text/text.module.mjs +10 -5
- package/esm2020/lib/loading/index.mjs +2 -1
- package/esm2020/lib/loading/loading.action.directive.mjs +37 -0
- package/esm2020/lib/loading/loading.module.mjs +10 -5
- package/esm2020/lib/router/layout/anchor/anchor.content.component.mjs +21 -0
- package/esm2020/lib/router/layout/anchor/anchor.module.mjs +10 -5
- package/esm2020/lib/router/layout/anchor/index.mjs +2 -1
- package/esm2020/lib/router/layout/sidenav/sidenav.pagebar.component.mjs +1 -1
- package/fesm2015/dereekb-dbx-web.mjs +839 -452
- package/fesm2015/dereekb-dbx-web.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-web.mjs +830 -443
- package/fesm2020/dereekb-dbx-web.mjs.map +1 -1
- package/lib/action/_action.scss +8 -35
- package/lib/action/action.confirm.directive.d.ts +13 -4
- package/lib/action/action.module.d.ts +9 -10
- package/lib/action/index.d.ts +1 -1
- package/lib/action/key.trigger.directive.d.ts +3 -3
- package/lib/action/snackbar/_snackbar.scss +33 -0
- package/lib/action/snackbar/action.snackbar.component.d.ts +36 -0
- package/lib/action/snackbar/action.snackbar.d.ts +52 -0
- package/lib/action/snackbar/action.snackbar.default.d.ts +2 -0
- package/lib/action/snackbar/action.snackbar.directive.d.ts +25 -0
- package/lib/action/snackbar/action.snackbar.generator.d.ts +32 -0
- package/lib/action/snackbar/action.snackbar.module.d.ts +14 -0
- package/lib/action/snackbar/action.snackbar.service.d.ts +39 -0
- package/lib/action/snackbar/index.d.ts +7 -0
- package/lib/action/transition/transition.safety.directive.d.ts +3 -3
- package/lib/button/button.module.d.ts +2 -1
- package/lib/button/button.spacer.component.d.ts +4 -4
- package/lib/error/error.action.directive.d.ts +3 -3
- package/lib/interaction/popover/popover.action.button.directive.d.ts +3 -3
- package/lib/interaction/popover/popover.action.directive.d.ts +3 -3
- package/lib/layout/content/_content.scss +13 -0
- package/lib/layout/section/section.header.component.d.ts +1 -0
- package/lib/layout/text/icon.spacer.component.d.ts +8 -0
- package/lib/layout/text/index.d.ts +1 -0
- package/lib/layout/text/text.module.d.ts +6 -5
- package/lib/loading/index.d.ts +1 -0
- package/lib/loading/loading.action.directive.d.ts +19 -0
- package/lib/loading/loading.module.d.ts +6 -5
- package/lib/router/layout/anchor/anchor.content.component.d.ts +11 -0
- package/lib/router/layout/anchor/anchor.module.d.ts +6 -5
- package/lib/router/layout/anchor/index.d.ts +1 -0
- package/lib/style/_all-core.scss +2 -0
- package/lib/style/_all-theme.scss +2 -0
- package/lib/style/_all-typography.scss +2 -0
- package/lib/style/_function.scss +4 -0
- package/package.json +6 -5
- package/esm2020/lib/action/action.snackbar.component.mjs +0 -104
- package/lib/action/action.snackbar.component.d.ts +0 -22
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ClickableAnchorLink } from '@dereekb/dbx-core';
|
|
2
|
+
import { Maybe } from '@dereekb/util';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Component that displays an anchor and a span with the title.
|
|
6
|
+
*/
|
|
7
|
+
export declare class DbxAnchorContentComponent {
|
|
8
|
+
anchor: Maybe<Partial<ClickableAnchorLink>>;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxAnchorContentComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxAnchorContentComponent, "dbx-anchor-content", never, { "anchor": "anchor"; }, {}, never, never>;
|
|
11
|
+
}
|
|
@@ -2,12 +2,13 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./anchor.component";
|
|
3
3
|
import * as i2 from "./anchor.icon.component";
|
|
4
4
|
import * as i3 from "./anchor.link.component";
|
|
5
|
-
import * as i4 from "
|
|
6
|
-
import * as i5 from "@angular/
|
|
7
|
-
import * as i6 from "@angular/material/
|
|
8
|
-
import * as i7 from "@
|
|
5
|
+
import * as i4 from "./anchor.content.component";
|
|
6
|
+
import * as i5 from "@angular/common";
|
|
7
|
+
import * as i6 from "@angular/material/icon";
|
|
8
|
+
import * as i7 from "@angular/material/button";
|
|
9
|
+
import * as i8 from "@dereekb/dbx-core";
|
|
9
10
|
export declare class DbxAnchorModule {
|
|
10
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxAnchorModule, never>;
|
|
11
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxAnchorModule, [typeof i1.DbxAnchorComponent, typeof i2.DbxAnchorIconComponent, typeof i3.DbxAnchorLinkComponent], [typeof
|
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxAnchorModule, [typeof i1.DbxAnchorComponent, typeof i2.DbxAnchorIconComponent, typeof i3.DbxAnchorLinkComponent, typeof i4.DbxAnchorContentComponent], [typeof i5.CommonModule, typeof i6.MatIconModule, typeof i7.MatButtonModule, typeof i8.DbxInjectedComponentModule], [typeof i1.DbxAnchorComponent, typeof i2.DbxAnchorIconComponent, typeof i3.DbxAnchorLinkComponent, typeof i4.DbxAnchorContentComponent]>;
|
|
12
13
|
static ɵinj: i0.ɵɵInjectorDeclaration<DbxAnchorModule>;
|
|
13
14
|
}
|
package/lib/style/_all-core.scss
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use '../action/action';
|
|
1
2
|
@use '../button/button';
|
|
2
3
|
@use '../error/error';
|
|
3
4
|
@use '../interaction/interaction';
|
|
@@ -8,6 +9,7 @@
|
|
|
8
9
|
@mixin all-component-core() {
|
|
9
10
|
@include button.core();
|
|
10
11
|
@include error.core();
|
|
12
|
+
@include action.all-action-core();
|
|
11
13
|
@include interaction.all-interaction-core();
|
|
12
14
|
@include layout.all-layout-core();
|
|
13
15
|
@include router.all-router-core();
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@use './theming';
|
|
2
|
+
@use '../action/action';
|
|
2
3
|
@use '../button/button';
|
|
3
4
|
@use '../error/error';
|
|
4
5
|
@use '../interaction/interaction';
|
|
@@ -9,6 +10,7 @@
|
|
|
9
10
|
@mixin all-component-themes($theme-config) {
|
|
10
11
|
@include button.theme($theme-config);
|
|
11
12
|
@include error.theme($theme-config);
|
|
13
|
+
@include action.all-action-theme($theme-config);
|
|
12
14
|
@include interaction.all-interaction-theme($theme-config);
|
|
13
15
|
@include layout.all-layout-theme($theme-config);
|
|
14
16
|
@include router.all-router-theme($theme-config);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@use './theming';
|
|
2
|
+
@use '../action/action';
|
|
2
3
|
@use '../button/button';
|
|
3
4
|
@use '../error/error';
|
|
4
5
|
@use '../interaction/interaction';
|
|
@@ -9,6 +10,7 @@
|
|
|
9
10
|
@mixin all-component-typographies($typography-config) {
|
|
10
11
|
@include button.typography($typography-config);
|
|
11
12
|
@include error.typography($typography-config);
|
|
13
|
+
@include action.all-action-typography($typography-config);
|
|
12
14
|
@include interaction.all-interaction-typography($typography-config);
|
|
13
15
|
@include layout.all-layout-typography($typography-config);
|
|
14
16
|
@include router.all-router-typography($typography-config);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/dbx-web",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"tslib": "^2.3.0"
|
|
6
6
|
},
|
|
@@ -27,12 +27,13 @@
|
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"@angular/core": "^13.0.0",
|
|
29
29
|
"@angular/material": "^13.0.0",
|
|
30
|
-
"@dereekb/rxjs": "
|
|
30
|
+
"@dereekb/rxjs": "2.0.0",
|
|
31
31
|
"rxjs": "^7.5.2",
|
|
32
|
-
"@dereekb/util": "
|
|
32
|
+
"@dereekb/util": "2.0.0",
|
|
33
33
|
"extra-set": "^2.2.11",
|
|
34
|
+
"make-error": "^1.3.0",
|
|
34
35
|
"ms": "^3.0.0-canary.1",
|
|
35
|
-
"@dereekb/dbx-core": "
|
|
36
|
+
"@dereekb/dbx-core": "2.0.0",
|
|
36
37
|
"@angular/common": "^13.0.0",
|
|
37
38
|
"@ngrx/component-store": "^13.0.2",
|
|
38
39
|
"@ngrx/data": "^13.0.2",
|
|
@@ -41,7 +42,7 @@
|
|
|
41
42
|
"@ngrx/store": "^13.0.2",
|
|
42
43
|
"@angular/platform-browser": "^13.0.0",
|
|
43
44
|
"date-fns": "^2.28.0",
|
|
44
|
-
"@dereekb/date": "
|
|
45
|
+
"@dereekb/date": "2.0.0",
|
|
45
46
|
"class-transformer": "^0.5.1",
|
|
46
47
|
"class-validator": "^0.13.2",
|
|
47
48
|
"date-fns-tz": "^1.2.2",
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { distinctUntilChanged, shareReplay } from 'rxjs';
|
|
2
|
-
import { Component, Inject } from '@angular/core';
|
|
3
|
-
import { MatSnackBarRef, MAT_SNACK_BAR_DATA } from '@angular/material/snack-bar';
|
|
4
|
-
import ms from 'ms';
|
|
5
|
-
import { map } from 'rxjs/operators';
|
|
6
|
-
import { ActionState } from '@dereekb/dbx-core';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "@angular/material/snack-bar";
|
|
9
|
-
import * as i2 from "../button/button.component";
|
|
10
|
-
import * as i3 from "../button/button.spacer.component";
|
|
11
|
-
import * as i4 from "@angular/common";
|
|
12
|
-
import * as i5 from "@dereekb/dbx-core";
|
|
13
|
-
/**
|
|
14
|
-
* Component for a snackbar that contains an action.
|
|
15
|
-
*/
|
|
16
|
-
export class DbxActionSnackbarComponent {
|
|
17
|
-
constructor(snackbar, data) {
|
|
18
|
-
this.snackbar = snackbar;
|
|
19
|
-
this.data = data;
|
|
20
|
-
this.complete$ = this.actionSourceInstance.isSuccess$;
|
|
21
|
-
this.snackbarStatusClass$ = this.actionSourceInstance.actionState$.pipe(map((x) => {
|
|
22
|
-
let classes = 'dbx-action-snackbar-';
|
|
23
|
-
switch (x) {
|
|
24
|
-
case ActionState.Rejected:
|
|
25
|
-
classes += 'error';
|
|
26
|
-
break;
|
|
27
|
-
case ActionState.Success:
|
|
28
|
-
classes += 'success';
|
|
29
|
-
break;
|
|
30
|
-
default:
|
|
31
|
-
classes += 'idle';
|
|
32
|
-
break;
|
|
33
|
-
}
|
|
34
|
-
return classes;
|
|
35
|
-
}), distinctUntilChanged(), shareReplay(1));
|
|
36
|
-
this.dismissEarly = () => {
|
|
37
|
-
this.snackbar._dismissAfter(ms('3s'));
|
|
38
|
-
};
|
|
39
|
-
this.dismiss = () => {
|
|
40
|
-
this.snackbar.dismiss();
|
|
41
|
-
};
|
|
42
|
-
if (!data.actionSource) {
|
|
43
|
-
throw new Error('No action was provided to ActionSnackbar.');
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
get message() {
|
|
47
|
-
return this.data.message;
|
|
48
|
-
}
|
|
49
|
-
get action() {
|
|
50
|
-
return this.data.action;
|
|
51
|
-
}
|
|
52
|
-
get actionSourceInstance() {
|
|
53
|
-
return this.data.actionSource;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
DbxActionSnackbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionSnackbarComponent, deps: [{ token: i1.MatSnackBarRef }, { token: MAT_SNACK_BAR_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
57
|
-
DbxActionSnackbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxActionSnackbarComponent, selector: "ng-component", ngImport: i0, template: `
|
|
58
|
-
<div class="dbx-action-snackbar" [ngClass]="(snackbarStatusClass$ | async)!">
|
|
59
|
-
<ng-container [ngSwitch]="complete$ | async">
|
|
60
|
-
<ng-container *ngSwitchCase="true">
|
|
61
|
-
<div class="spacer"></div>
|
|
62
|
-
<dbx-button (buttonClick)="dismiss()" color="accent" icon="done" text="Success"></dbx-button>
|
|
63
|
-
</ng-container>
|
|
64
|
-
<ng-container *ngSwitchCase="false">
|
|
65
|
-
<span>{{ message }}</span>
|
|
66
|
-
<div class="spacer"></div>
|
|
67
|
-
<dbx-action dbxActionValue [dbxActionSource]="actionSourceInstance" [dbxActionSuccess]="dismissEarly">
|
|
68
|
-
<dbx-button dbxActionButton color="warn" [text]="action"></dbx-button>
|
|
69
|
-
</dbx-action>
|
|
70
|
-
<dbx-button-spacer></dbx-button-spacer>
|
|
71
|
-
<dbx-button (buttonClick)="dismiss()" color="accent" icon="close"></dbx-button>
|
|
72
|
-
</ng-container>
|
|
73
|
-
</ng-container>
|
|
74
|
-
</div>
|
|
75
|
-
`, isInline: true, components: [{ type: i2.DbxButtonComponent, selector: "dbx-button", inputs: ["type", "raised", "stroked", "flat", "color"] }, { type: i3.DbxButtonSpacerComponent, selector: "dbx-button-spacer" }], directives: [{ type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i4.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i5.DbxActionDirective, selector: "dbx-action,[dbxAction],dbx-action-context,[dbxActionContext]", exportAs: ["action"] }, { type: i5.DbxActionValueDirective, selector: "[dbxActionValue]", inputs: ["dbxActionValue"] }, { type: i5.DbxActionSourceDirective, selector: "[dbxActionSource]", inputs: ["dbxActionSource"] }, { type: i5.DbxActionSuccessDirective, selector: "[dbxActionSuccess]", inputs: ["dbxActionSuccess"] }], pipes: { "async": i4.AsyncPipe } });
|
|
76
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionSnackbarComponent, decorators: [{
|
|
77
|
-
type: Component,
|
|
78
|
-
args: [{
|
|
79
|
-
template: `
|
|
80
|
-
<div class="dbx-action-snackbar" [ngClass]="(snackbarStatusClass$ | async)!">
|
|
81
|
-
<ng-container [ngSwitch]="complete$ | async">
|
|
82
|
-
<ng-container *ngSwitchCase="true">
|
|
83
|
-
<div class="spacer"></div>
|
|
84
|
-
<dbx-button (buttonClick)="dismiss()" color="accent" icon="done" text="Success"></dbx-button>
|
|
85
|
-
</ng-container>
|
|
86
|
-
<ng-container *ngSwitchCase="false">
|
|
87
|
-
<span>{{ message }}</span>
|
|
88
|
-
<div class="spacer"></div>
|
|
89
|
-
<dbx-action dbxActionValue [dbxActionSource]="actionSourceInstance" [dbxActionSuccess]="dismissEarly">
|
|
90
|
-
<dbx-button dbxActionButton color="warn" [text]="action"></dbx-button>
|
|
91
|
-
</dbx-action>
|
|
92
|
-
<dbx-button-spacer></dbx-button-spacer>
|
|
93
|
-
<dbx-button (buttonClick)="dismiss()" color="accent" icon="close"></dbx-button>
|
|
94
|
-
</ng-container>
|
|
95
|
-
</ng-container>
|
|
96
|
-
</div>
|
|
97
|
-
`,
|
|
98
|
-
// TODO: styleUrls: ['./action.scss']
|
|
99
|
-
}]
|
|
100
|
-
}], ctorParameters: function () { return [{ type: i1.MatSnackBarRef }, { type: undefined, decorators: [{
|
|
101
|
-
type: Inject,
|
|
102
|
-
args: [MAT_SNACK_BAR_DATA]
|
|
103
|
-
}] }]; } });
|
|
104
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aW9uLnNuYWNrYmFyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2RieC13ZWIvc3JjL2xpYi9hY3Rpb24vYWN0aW9uLnNuYWNrYmFyLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsb0JBQW9CLEVBQWMsV0FBVyxFQUFFLE1BQU0sTUFBTSxDQUFDO0FBQ3JFLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ2xELE9BQU8sRUFBRSxjQUFjLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSw2QkFBNkIsQ0FBQztBQUVqRixPQUFPLEVBQUUsTUFBTSxJQUFJLENBQUM7QUFDcEIsT0FBTyxFQUFFLEdBQUcsRUFBRSxNQUFNLG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PSAoKTogdm9pZCA9PiB7XG4gICAgdGhpcy5zbmFja2Jhci5fZGlzbWlzc0FmdGVyKG1zKCczcycpKTtcbiAgfVxuXG4gIGRpc21pc3MgPSAoKTogdm9pZCA9PiB7XG4gICAgdGhpcy5zbmFja2Jhci5kaXNtaXNzKCk7XG4gIH1cblxufVxuIl19
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { MatSnackBarRef } from '@angular/material/snack-bar';
|
|
3
|
-
import { Maybe } from '@dereekb/util';
|
|
4
|
-
import { ActionContextStoreSourceInstance, DbxActionSnackbarComponentConfig } from '@dereekb/dbx-core';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
/**
|
|
7
|
-
* Component for a snackbar that contains an action.
|
|
8
|
-
*/
|
|
9
|
-
export declare class DbxActionSnackbarComponent {
|
|
10
|
-
readonly snackbar: MatSnackBarRef<DbxActionSnackbarComponent>;
|
|
11
|
-
readonly data: DbxActionSnackbarComponentConfig;
|
|
12
|
-
constructor(snackbar: MatSnackBarRef<DbxActionSnackbarComponent>, data: DbxActionSnackbarComponentConfig);
|
|
13
|
-
readonly complete$: Observable<boolean>;
|
|
14
|
-
readonly snackbarStatusClass$: Observable<string>;
|
|
15
|
-
get message(): Maybe<string>;
|
|
16
|
-
get action(): string;
|
|
17
|
-
get actionSourceInstance(): ActionContextStoreSourceInstance;
|
|
18
|
-
dismissEarly: () => void;
|
|
19
|
-
dismiss: () => void;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionSnackbarComponent, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DbxActionSnackbarComponent, "ng-component", never, {}, {}, never, never>;
|
|
22
|
-
}
|