@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
|
@@ -1,24 +1,29 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { filterMaybe, LoadingStateType, loadingStateType, skipFirstMaybe, initialize, asObservable, SubscriptionObject, ListLoadingStateContextInstance, loadingStateHasFinishedLoading, beginLoading, getter, LoadingStateContextInstance, switchMapMaybeObs, LockSet } from '@dereekb/rxjs';
|
|
2
|
+
import { Subject, BehaviorSubject, of, switchMap, startWith, shareReplay, distinctUntilChanged, combineLatest, map as map$1, delay, throttleTime, first, filter as filter$1, merge, exhaustMap, catchError, from, race } from 'rxjs';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import {
|
|
5
|
-
import * as i1$1 from '@angular/material/
|
|
4
|
+
import { Component, Input, Directive, Inject, InjectionToken, Injectable, Optional, Host, NgModule, TemplateRef, ViewChild, ChangeDetectionStrategy, ElementRef, EventEmitter, Output, HostListener, forwardRef } from '@angular/core';
|
|
5
|
+
import * as i1$1 from '@angular/material/snack-bar';
|
|
6
|
+
import { MAT_SNACK_BAR_DATA, MatSnackBarModule } from '@angular/material/snack-bar';
|
|
7
|
+
import { map, filter, shareReplay as shareReplay$1, distinctUntilChanged as distinctUntilChanged$1, distinct, catchError as catchError$1, delay as delay$1, first as first$1, startWith as startWith$1, throttleTime as throttleTime$1, switchMap as switchMap$1, mergeMap, tap } from 'rxjs/operators';
|
|
8
|
+
import * as i1$2 from '@dereekb/dbx-core';
|
|
9
|
+
import { AbstractDbxButtonDirective, ProvideDbxButton, AbstractSubscriptionDirective, DbxCoreButtonModule, AbstractTransitionWatcherDirective, safeDetectChanges, AbstractDbxAnchorDirective, DbxInjectedComponentModule, expandClickableAnchorLinkTrees, AbstractTransitionDirective, tapDetectChanges, checkNgContentWrapperHasContent, anchorTypeForAnchor, AnchorType, DbxActionButtonDirective, DbxCoreActionModule, DbxCoreFilterModule, isIdleActionState, canTriggerAction } from '@dereekb/dbx-core';
|
|
10
|
+
import ms from 'ms';
|
|
11
|
+
import * as i1 from 'mat-progress-buttons';
|
|
12
|
+
import { MatProgressButtonsModule } from 'mat-progress-buttons';
|
|
13
|
+
import * as i3 from '@angular/common';
|
|
14
|
+
import { CommonModule } from '@angular/common';
|
|
15
|
+
import { getValueFromObjectOrGetter, mergeObjects, splitCommaSeparatedStringToSet, applyBestFit, convertToReadableError, ServerErrorResponse, UnauthorizedServerErrorResponse } from '@dereekb/util';
|
|
16
|
+
import * as i1$3 from '@angular/material/dialog';
|
|
6
17
|
import { MAT_DIALOG_DATA, MatDialogRef, MatDialogModule } from '@angular/material/dialog';
|
|
7
|
-
import * as i1 from '@dereekb/dbx-core';
|
|
8
|
-
import { AbstractTransitionWatcherDirective, AbstractSubscriptionDirective, safeDetectChanges, AbstractDbxAnchorDirective, DbxInjectedComponentModule, expandClickableAnchorLinkTrees, AbstractTransitionDirective, tapDetectChanges, AbstractDbxButtonDirective, ProvideDbxButton, checkNgContentWrapperHasContent, anchorTypeForAnchor, AnchorType, DbxActionButtonDirective, ActionState, DbxCoreActionModule, DbxCoreFilterModule, isIdleActionState, canTriggerAction } from '@dereekb/dbx-core';
|
|
9
|
-
import { splitCommaSeparatedStringToSet, applyBestFit, convertToReadableError, ServerErrorResponse, UnauthorizedServerErrorResponse } from '@dereekb/util';
|
|
10
|
-
import { BehaviorSubject, switchMap, distinctUntilChanged, shareReplay, combineLatest, map, delay, Subject, throttleTime, first, of, startWith, filter, merge, exhaustMap, catchError, from, race } from 'rxjs';
|
|
11
|
-
import { filterMaybe, skipFirstMaybe, initialize, asObservable, SubscriptionObject, ListLoadingStateContextInstance, loadingStateHasFinishedLoading, beginLoading, getter, switchMapMaybeObs, LockSet } from '@dereekb/rxjs';
|
|
12
18
|
import * as i2 from '@angular/material/button';
|
|
13
19
|
import { MatButtonModule } from '@angular/material/button';
|
|
14
|
-
import * as i1$
|
|
20
|
+
import * as i1$c from 'ng-overlay-container';
|
|
15
21
|
import { NgOverlayContainerService, NgOverlayContainerModule } from 'ng-overlay-container';
|
|
16
|
-
import
|
|
17
|
-
import * as i1$2 from '@angular/material/toolbar';
|
|
22
|
+
import * as i1$5 from '@angular/material/toolbar';
|
|
18
23
|
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
19
|
-
import * as
|
|
24
|
+
import * as i1$4 from '@angular/material/icon';
|
|
20
25
|
import { MatIconModule } from '@angular/material/icon';
|
|
21
|
-
import * as i1$
|
|
26
|
+
import * as i1$6 from '@angular/material/list';
|
|
22
27
|
import { MatListModule } from '@angular/material/list';
|
|
23
28
|
import * as i7 from '@angular/material/tabs';
|
|
24
29
|
import { MatTabsModule } from '@angular/material/tabs';
|
|
@@ -28,39 +33,545 @@ import * as i4 from '@angular/material/divider';
|
|
|
28
33
|
import { MatDividerModule } from '@angular/material/divider';
|
|
29
34
|
import * as i6 from '@angular/material/core';
|
|
30
35
|
import { MatRippleModule } from '@angular/material/core';
|
|
31
|
-
import * as i1$
|
|
32
|
-
import * as i3$
|
|
36
|
+
import * as i1$7 from '@angular/cdk/layout';
|
|
37
|
+
import * as i3$1 from '@angular/material/sidenav';
|
|
33
38
|
import { MatSidenav, MatSidenavModule } from '@angular/material/sidenav';
|
|
34
39
|
import * as i2$1 from '@uirouter/angular';
|
|
35
40
|
import { UIRouterModule } from '@uirouter/angular';
|
|
36
|
-
import * as i1$
|
|
37
|
-
import { MatProgressButtonsModule } from 'mat-progress-buttons';
|
|
38
|
-
import * as i1$6 from 'angular-resize-event';
|
|
41
|
+
import * as i1$8 from 'angular-resize-event';
|
|
39
42
|
import { AngularResizeEventModule } from 'angular-resize-event';
|
|
40
43
|
import { ComponentStore } from '@ngrx/component-store';
|
|
41
44
|
import { isBoolean } from 'class-validator';
|
|
42
|
-
import * as i1$
|
|
45
|
+
import * as i1$9 from '@angular/material/progress-bar';
|
|
43
46
|
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
44
47
|
import * as i2$2 from '@angular/material/progress-spinner';
|
|
45
48
|
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
46
|
-
import * as i3$
|
|
49
|
+
import * as i3$2 from 'ngx-infinite-scroll';
|
|
47
50
|
import { InfiniteScrollModule } from 'ngx-infinite-scroll';
|
|
48
51
|
import { HttpErrorResponse } from '@angular/common/http';
|
|
49
52
|
import linkifyStr from 'linkify-string';
|
|
50
|
-
import * as i1$
|
|
51
|
-
import * as i1$
|
|
53
|
+
import * as i1$a from '@angular/platform-browser';
|
|
54
|
+
import * as i1$b from '@angular/material/chips';
|
|
52
55
|
import { MatChipsModule } from '@angular/material/chips';
|
|
53
|
-
import * as i3$
|
|
56
|
+
import * as i3$3 from '@angular/material/tooltip';
|
|
54
57
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
55
|
-
import * as i1$
|
|
58
|
+
import * as i1$d from '@angular/cdk/overlay';
|
|
56
59
|
import { GlobalPositionStrategy } from '@angular/cdk/overlay';
|
|
57
|
-
import * as
|
|
58
|
-
import { MAT_SNACK_BAR_DATA, MatSnackBarModule } from '@angular/material/snack-bar';
|
|
59
|
-
import ms from 'ms';
|
|
60
|
-
import * as i3$5 from '@angular/flex-layout/flex';
|
|
60
|
+
import * as i3$4 from '@angular/flex-layout/flex';
|
|
61
61
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
|
62
62
|
import * as i2$3 from '@uirouter/core';
|
|
63
63
|
|
|
64
|
+
var DbxButtonDisplayType;
|
|
65
|
+
(function (DbxButtonDisplayType) {
|
|
66
|
+
DbxButtonDisplayType[DbxButtonDisplayType["RAISED"] = 0] = "RAISED";
|
|
67
|
+
DbxButtonDisplayType[DbxButtonDisplayType["STROKED"] = 1] = "STROKED";
|
|
68
|
+
DbxButtonDisplayType[DbxButtonDisplayType["FLAT"] = 2] = "FLAT";
|
|
69
|
+
})(DbxButtonDisplayType || (DbxButtonDisplayType = {}));
|
|
70
|
+
/**
|
|
71
|
+
* Complex button that supports loading states.
|
|
72
|
+
*/
|
|
73
|
+
class DbxButtonComponent extends AbstractDbxButtonDirective {
|
|
74
|
+
constructor() {
|
|
75
|
+
super(...arguments);
|
|
76
|
+
this.color = 'primary';
|
|
77
|
+
}
|
|
78
|
+
get raised() {
|
|
79
|
+
return this.type === DbxButtonDisplayType.RAISED;
|
|
80
|
+
}
|
|
81
|
+
set raised(raised) {
|
|
82
|
+
if (raised) {
|
|
83
|
+
this.type = DbxButtonDisplayType.RAISED;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
get stroked() {
|
|
87
|
+
return this.type === DbxButtonDisplayType.STROKED;
|
|
88
|
+
}
|
|
89
|
+
set stroked(stroked) {
|
|
90
|
+
if (stroked) {
|
|
91
|
+
this.type = DbxButtonDisplayType.STROKED;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
get flat() {
|
|
95
|
+
return this.type === DbxButtonDisplayType.FLAT;
|
|
96
|
+
}
|
|
97
|
+
set flat(flat) {
|
|
98
|
+
if (flat) {
|
|
99
|
+
this.type = DbxButtonDisplayType.FLAT;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
get btnOptions() {
|
|
103
|
+
const buttonIcon = (this.icon) ? {
|
|
104
|
+
fontIcon: this.icon
|
|
105
|
+
} : undefined;
|
|
106
|
+
return {
|
|
107
|
+
fab: false,
|
|
108
|
+
active: this.working,
|
|
109
|
+
buttonIcon,
|
|
110
|
+
customClass: 'dbx-button ' + ((buttonIcon && !this.text) ? 'dbx-button-no-text' : ''),
|
|
111
|
+
// buttonIcon: icon,
|
|
112
|
+
text: this.text ?? '',
|
|
113
|
+
buttonColor: this.color,
|
|
114
|
+
barColor: 'accent',
|
|
115
|
+
raised: this.raised,
|
|
116
|
+
stroked: this.stroked,
|
|
117
|
+
flat: this.flat,
|
|
118
|
+
mode: 'indeterminate',
|
|
119
|
+
spinnerSize: 18,
|
|
120
|
+
spinnerColor: 'accent',
|
|
121
|
+
// Only disabled if we're not working, in order to show the animation.
|
|
122
|
+
disabled: !this.working && this.disabled
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
DbxButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
127
|
+
DbxButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxButtonComponent, selector: "dbx-button", inputs: { type: "type", raised: "raised", stroked: "stroked", flat: "flat", color: "color" }, providers: ProvideDbxButton(DbxButtonComponent), usesInheritance: true, ngImport: i0, template: `
|
|
128
|
+
<mat-spinner-button class="page-button" (btnClick)="clickButton()" [options]="btnOptions"></mat-spinner-button>
|
|
129
|
+
`, isInline: true, components: [{ type: i1.MatSpinnerButtonComponent, selector: "mat-spinner-button", inputs: ["options", "buttonId", "active", "disabled"], outputs: ["btnClick"] }] });
|
|
130
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonComponent, decorators: [{
|
|
131
|
+
type: Component,
|
|
132
|
+
args: [{
|
|
133
|
+
selector: 'dbx-button',
|
|
134
|
+
template: `
|
|
135
|
+
<mat-spinner-button class="page-button" (btnClick)="clickButton()" [options]="btnOptions"></mat-spinner-button>
|
|
136
|
+
`,
|
|
137
|
+
providers: ProvideDbxButton(DbxButtonComponent)
|
|
138
|
+
}]
|
|
139
|
+
}], propDecorators: { type: [{
|
|
140
|
+
type: Input
|
|
141
|
+
}], raised: [{
|
|
142
|
+
type: Input
|
|
143
|
+
}], stroked: [{
|
|
144
|
+
type: Input
|
|
145
|
+
}], flat: [{
|
|
146
|
+
type: Input
|
|
147
|
+
}], color: [{
|
|
148
|
+
type: Input
|
|
149
|
+
}] } });
|
|
150
|
+
|
|
151
|
+
class DbxSpacerDirective {
|
|
152
|
+
}
|
|
153
|
+
DbxSpacerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSpacerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
154
|
+
DbxSpacerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: DbxSpacerDirective, selector: "dbx-spacer, [dbx-spacer]", host: { classAttribute: "dbx-spacer" }, ngImport: i0 });
|
|
155
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSpacerDirective, decorators: [{
|
|
156
|
+
type: Directive,
|
|
157
|
+
args: [{
|
|
158
|
+
selector: 'dbx-spacer, [dbx-spacer]',
|
|
159
|
+
host: {
|
|
160
|
+
'class': 'dbx-spacer'
|
|
161
|
+
}
|
|
162
|
+
}]
|
|
163
|
+
}] });
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Button spacer directive.
|
|
167
|
+
*/
|
|
168
|
+
class DbxButtonSpacerDirective {
|
|
169
|
+
}
|
|
170
|
+
DbxButtonSpacerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonSpacerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
171
|
+
DbxButtonSpacerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: DbxButtonSpacerDirective, selector: "dbx-button-spacer,dbxButtonSpacer", host: { classAttribute: "dbx-button-spacer d-inline" }, ngImport: i0 });
|
|
172
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonSpacerDirective, decorators: [{
|
|
173
|
+
type: Directive,
|
|
174
|
+
args: [{
|
|
175
|
+
selector: 'dbx-button-spacer,dbxButtonSpacer',
|
|
176
|
+
host: {
|
|
177
|
+
class: 'dbx-button-spacer d-inline'
|
|
178
|
+
}
|
|
179
|
+
}]
|
|
180
|
+
}] });
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Component for a snackbar that contains an action.
|
|
184
|
+
*/
|
|
185
|
+
class DbxActionSnackbarComponent extends AbstractSubscriptionDirective {
|
|
186
|
+
constructor(snackbar, data) {
|
|
187
|
+
super();
|
|
188
|
+
this.snackbar = snackbar;
|
|
189
|
+
this.data = data;
|
|
190
|
+
this._durationTimeout = new Subject();
|
|
191
|
+
this._actionRef = new BehaviorSubject(undefined);
|
|
192
|
+
this.value$ = of(0); // value passed to the action.
|
|
193
|
+
this.sourceInstance$ = this._actionRef.pipe(filterMaybe(), map(x => x?.sourceInstance));
|
|
194
|
+
this.complete$ = this.sourceInstance$.pipe(switchMap(x => x.isSuccess$), startWith(false), shareReplay(1));
|
|
195
|
+
this.loadingStateType$ = this.sourceInstance$.pipe(switchMap(x => x.loadingStateType$), startWith(LoadingStateType.IDLE), shareReplay(1));
|
|
196
|
+
this.snackbarStatusClass$ = this.loadingStateType$.pipe(map((x) => {
|
|
197
|
+
let classes = 'dbx-action-snackbar-';
|
|
198
|
+
switch (x) {
|
|
199
|
+
case LoadingStateType.ERROR:
|
|
200
|
+
classes += 'error';
|
|
201
|
+
break;
|
|
202
|
+
case LoadingStateType.SUCCESS:
|
|
203
|
+
classes += 'success';
|
|
204
|
+
break;
|
|
205
|
+
default:
|
|
206
|
+
classes += 'idle';
|
|
207
|
+
break;
|
|
208
|
+
}
|
|
209
|
+
return classes;
|
|
210
|
+
}), distinctUntilChanged(), shareReplay(1));
|
|
211
|
+
this.dismissAfterActionCompletes = () => {
|
|
212
|
+
this.snackbar._dismissAfter(ms('3s'));
|
|
213
|
+
};
|
|
214
|
+
this.dismiss = () => {
|
|
215
|
+
this.snackbar.dismiss();
|
|
216
|
+
};
|
|
217
|
+
this.button = this.data.action?.button ?? this.data.button;
|
|
218
|
+
this._actionRef.next(this.data.action?.reference);
|
|
219
|
+
}
|
|
220
|
+
get action() {
|
|
221
|
+
return this.data.action;
|
|
222
|
+
}
|
|
223
|
+
get hasAction() {
|
|
224
|
+
return Boolean(this._actionRef.value);
|
|
225
|
+
}
|
|
226
|
+
get message() {
|
|
227
|
+
return this.data.message;
|
|
228
|
+
}
|
|
229
|
+
get actionConfig() {
|
|
230
|
+
return this.data.action;
|
|
231
|
+
}
|
|
232
|
+
ngOnInit() {
|
|
233
|
+
// Subscribe and close if the duration is up and the action state is idle.
|
|
234
|
+
this.sub = this._durationTimeout.pipe(switchMap((x) => this.loadingStateType$), filter(x => x === LoadingStateType.IDLE)).subscribe(() => {
|
|
235
|
+
this.dismiss();
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
ngOnDestroy() {
|
|
239
|
+
super.ngOnDestroy();
|
|
240
|
+
this._actionRef.value?.destroy();
|
|
241
|
+
this._actionRef.complete();
|
|
242
|
+
this._durationTimeout.complete();
|
|
243
|
+
}
|
|
244
|
+
ngAfterViewInit() {
|
|
245
|
+
// Responsible for hiding itself if it has an action.
|
|
246
|
+
if (this.hasAction) {
|
|
247
|
+
setTimeout(() => {
|
|
248
|
+
this._durationTimeout.next();
|
|
249
|
+
}, this.action?.duration ?? ms('10s'));
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
DbxActionSnackbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionSnackbarComponent, deps: [{ token: i1$1.MatSnackBarRef }, { token: MAT_SNACK_BAR_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
254
|
+
DbxActionSnackbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxActionSnackbarComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<div class=\"dbx-action-snackbar\" [ngClass]=\"(snackbarStatusClass$ | async)!\">\n <ng-container [ngSwitch]=\"complete$ | async\">\n <ng-container *ngSwitchCase=\"true\">\n <dbx-spacer></dbx-spacer>\n <dbx-button (buttonClick)=\"dismiss()\" color=\"accent\" icon=\"done\" text=\"Success\"></dbx-button>\n </ng-container>\n <ng-container *ngSwitchCase=\"false\">\n <span>{{ message }}</span>\n <dbx-spacer></dbx-spacer>\n <ng-container *ngIf=\"hasAction\">\n <dbx-action [dbxActionValueStream]=\"value$\" [dbxActionSource]=\"sourceInstance$ | async\"\n [dbxActionSuccess]=\"dismissAfterActionCompletes\">\n <dbx-button dbxActionButton color=\"warn\" [text]=\"button\"></dbx-button>\n </dbx-action>\n <dbx-button-spacer></dbx-button-spacer>\n </ng-container>\n <dbx-button (buttonClick)=\"dismiss()\" color=\"accent\" icon=\"close\"></dbx-button>\n </ng-container>\n </ng-container>\n</div>\n", components: [{ type: DbxButtonComponent, selector: "dbx-button", inputs: ["type", "raised", "stroked", "flat", "color"] }], directives: [{ type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: DbxSpacerDirective, selector: "dbx-spacer, [dbx-spacer]" }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$2.DbxActionDirective, selector: "dbx-action,[dbxAction],dbx-action-context,[dbxActionContext]", exportAs: ["action", "dbxAction"] }, { type: i1$2.dbxActionValueStreamDirective, selector: "[dbxActionValueStream]", inputs: ["dbxActionValueStream", "dbxActionValueStreamIsNotEmpty", "dbxActionValueStreamModified"] }, { type: i1$2.DbxActionSourceDirective, selector: "[dbxActionSource]", inputs: ["dbxActionSource"] }, { type: i1$2.DbxActionSuccessDirective, selector: "[dbxActionSuccess]", inputs: ["dbxActionSuccess"] }, { type: i1$2.DbxActionButtonDirective, selector: "[dbxActionButton]" }, { type: DbxButtonSpacerDirective, selector: "dbx-button-spacer,dbxButtonSpacer" }], pipes: { "async": i3.AsyncPipe } });
|
|
255
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionSnackbarComponent, decorators: [{
|
|
256
|
+
type: Component,
|
|
257
|
+
args: [{ template: "<div class=\"dbx-action-snackbar\" [ngClass]=\"(snackbarStatusClass$ | async)!\">\n <ng-container [ngSwitch]=\"complete$ | async\">\n <ng-container *ngSwitchCase=\"true\">\n <dbx-spacer></dbx-spacer>\n <dbx-button (buttonClick)=\"dismiss()\" color=\"accent\" icon=\"done\" text=\"Success\"></dbx-button>\n </ng-container>\n <ng-container *ngSwitchCase=\"false\">\n <span>{{ message }}</span>\n <dbx-spacer></dbx-spacer>\n <ng-container *ngIf=\"hasAction\">\n <dbx-action [dbxActionValueStream]=\"value$\" [dbxActionSource]=\"sourceInstance$ | async\"\n [dbxActionSuccess]=\"dismissAfterActionCompletes\">\n <dbx-button dbxActionButton color=\"warn\" [text]=\"button\"></dbx-button>\n </dbx-action>\n <dbx-button-spacer></dbx-button-spacer>\n </ng-container>\n <dbx-button (buttonClick)=\"dismiss()\" color=\"accent\" icon=\"close\"></dbx-button>\n </ng-container>\n </ng-container>\n</div>\n" }]
|
|
258
|
+
}], ctorParameters: function () { return [{ type: i1$1.MatSnackBarRef }, { type: undefined, decorators: [{
|
|
259
|
+
type: Inject,
|
|
260
|
+
args: [MAT_SNACK_BAR_DATA]
|
|
261
|
+
}] }]; } });
|
|
262
|
+
|
|
263
|
+
const DBX_ACTION_SNACKBAR_DEFAULTS = {
|
|
264
|
+
'create': {
|
|
265
|
+
loading: {
|
|
266
|
+
message: 'Creating...'
|
|
267
|
+
},
|
|
268
|
+
success: {
|
|
269
|
+
button: 'Ok',
|
|
270
|
+
message: 'Created'
|
|
271
|
+
},
|
|
272
|
+
error: {
|
|
273
|
+
button: 'X',
|
|
274
|
+
message: 'Create Failed'
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
'save': {
|
|
278
|
+
loading: {
|
|
279
|
+
message: 'Saving...'
|
|
280
|
+
},
|
|
281
|
+
success: {
|
|
282
|
+
button: 'Ok',
|
|
283
|
+
message: 'Saved'
|
|
284
|
+
},
|
|
285
|
+
error: {
|
|
286
|
+
button: 'X',
|
|
287
|
+
message: 'Save Failed'
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
'merge': {
|
|
291
|
+
loading: {
|
|
292
|
+
message: 'Merging...'
|
|
293
|
+
},
|
|
294
|
+
success: {
|
|
295
|
+
button: 'Ok',
|
|
296
|
+
message: 'Merged'
|
|
297
|
+
},
|
|
298
|
+
error: {
|
|
299
|
+
button: 'X',
|
|
300
|
+
message: 'Merge Failed'
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
'delete': {
|
|
304
|
+
loading: {
|
|
305
|
+
message: 'Deleting...'
|
|
306
|
+
},
|
|
307
|
+
success: {
|
|
308
|
+
button: 'Ok',
|
|
309
|
+
message: 'Deleted'
|
|
310
|
+
},
|
|
311
|
+
error: {
|
|
312
|
+
button: 'X',
|
|
313
|
+
message: 'Delete Failed'
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
'cancel': {
|
|
317
|
+
loading: {
|
|
318
|
+
message: 'Cancelling...'
|
|
319
|
+
},
|
|
320
|
+
success: {
|
|
321
|
+
button: 'Ok',
|
|
322
|
+
message: 'Canceled'
|
|
323
|
+
},
|
|
324
|
+
error: {
|
|
325
|
+
button: 'X',
|
|
326
|
+
message: 'Cancel Failed'
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
'restore': {
|
|
330
|
+
loading: {
|
|
331
|
+
message: 'Restoring...'
|
|
332
|
+
},
|
|
333
|
+
success: {
|
|
334
|
+
button: 'Ok',
|
|
335
|
+
message: 'Restored'
|
|
336
|
+
},
|
|
337
|
+
error: {
|
|
338
|
+
button: 'X',
|
|
339
|
+
message: 'Restore Failed'
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
'refresh': {
|
|
343
|
+
loading: {
|
|
344
|
+
message: 'Refreshing...'
|
|
345
|
+
},
|
|
346
|
+
success: {
|
|
347
|
+
button: 'Ok',
|
|
348
|
+
message: 'Refreshed'
|
|
349
|
+
},
|
|
350
|
+
error: {
|
|
351
|
+
button: 'X',
|
|
352
|
+
message: 'Refresh Failed'
|
|
353
|
+
}
|
|
354
|
+
},
|
|
355
|
+
'do': {
|
|
356
|
+
loading: {
|
|
357
|
+
message: 'Doing...'
|
|
358
|
+
},
|
|
359
|
+
success: {
|
|
360
|
+
button: 'Ok',
|
|
361
|
+
message: 'Done'
|
|
362
|
+
},
|
|
363
|
+
error: {
|
|
364
|
+
button: 'X',
|
|
365
|
+
message: 'Failed'
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
};
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* Creates a DbxActionSnackbarDisplayConfigGeneratorFunction from the input config.
|
|
372
|
+
*
|
|
373
|
+
* @param config
|
|
374
|
+
* @returns
|
|
375
|
+
*/
|
|
376
|
+
function makeDbxActionSnackbarDisplayConfigGeneratorFunction(config) {
|
|
377
|
+
return (input) => {
|
|
378
|
+
const { event, undo: undoInput } = input;
|
|
379
|
+
const type = event.type;
|
|
380
|
+
const eventConfigObjectOrGetter = config[type];
|
|
381
|
+
const eventConfig = eventConfigObjectOrGetter && getValueFromObjectOrGetter(eventConfigObjectOrGetter);
|
|
382
|
+
let result;
|
|
383
|
+
if (eventConfig) {
|
|
384
|
+
const { undoButtonText } = eventConfig;
|
|
385
|
+
result = {
|
|
386
|
+
button: eventConfig.button,
|
|
387
|
+
message: eventConfig.message,
|
|
388
|
+
snackbar: eventConfig.snackbar
|
|
389
|
+
};
|
|
390
|
+
if (undoInput) {
|
|
391
|
+
let reference;
|
|
392
|
+
if (typeof undoInput === 'object') {
|
|
393
|
+
reference = undoInput.getUndoAction();
|
|
394
|
+
}
|
|
395
|
+
else {
|
|
396
|
+
reference = getValueFromObjectOrGetter(undoInput);
|
|
397
|
+
}
|
|
398
|
+
if (!reference) {
|
|
399
|
+
console.error('Expected action source reference was not provided to undo...');
|
|
400
|
+
}
|
|
401
|
+
else {
|
|
402
|
+
result.action = {
|
|
403
|
+
button: undoButtonText ?? 'Undo',
|
|
404
|
+
reference
|
|
405
|
+
};
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
return result;
|
|
410
|
+
};
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
const DBX_ACTION_SNACKBAR_SERVICE_CONFIG = new InjectionToken('DbxActionSnackbarServiceConfig');
|
|
414
|
+
const DEFAULT_SNACKBAR_DIRECTIVE_DURATION = ms('4s');
|
|
415
|
+
/**
|
|
416
|
+
* Used for managing/configuring the snackbar default values and pushing snackbar events.
|
|
417
|
+
*/
|
|
418
|
+
class DbxActionSnackbarService {
|
|
419
|
+
constructor(matSnackBar, inputConfig) {
|
|
420
|
+
this.matSnackBar = matSnackBar;
|
|
421
|
+
inputConfig = inputConfig ?? {};
|
|
422
|
+
this.config = {
|
|
423
|
+
...inputConfig,
|
|
424
|
+
componentClass: inputConfig.componentClass ?? DbxActionSnackbarComponent,
|
|
425
|
+
defaultDuration: inputConfig.defaultDuration || DEFAULT_SNACKBAR_DIRECTIVE_DURATION,
|
|
426
|
+
eventTypeConfigs: mergeObjects([DBX_ACTION_SNACKBAR_DEFAULTS, inputConfig.eventTypeConfigs])
|
|
427
|
+
};
|
|
428
|
+
}
|
|
429
|
+
get componentClass() {
|
|
430
|
+
return this.config.componentClass;
|
|
431
|
+
}
|
|
432
|
+
get eventTypeConfigs() {
|
|
433
|
+
return this.config.eventTypeConfigs;
|
|
434
|
+
}
|
|
435
|
+
/**
|
|
436
|
+
* Opens a new snackbar given the input configuration.
|
|
437
|
+
*
|
|
438
|
+
* @param config
|
|
439
|
+
* @returns
|
|
440
|
+
*/
|
|
441
|
+
openSnackbar(config) {
|
|
442
|
+
const { snackbar: inputSnackbarConfig } = config;
|
|
443
|
+
const { snackbar: defaultSnackbarConfig, defaultDuration } = this.config;
|
|
444
|
+
const matSnackbarConfig = {
|
|
445
|
+
...defaultSnackbarConfig,
|
|
446
|
+
...inputSnackbarConfig,
|
|
447
|
+
data: config
|
|
448
|
+
};
|
|
449
|
+
const duration = config.action?.duration ?? matSnackbarConfig.duration ?? defaultDuration ?? DEFAULT_SNACKBAR_DIRECTIVE_DURATION;
|
|
450
|
+
if (config.action) {
|
|
451
|
+
// Set the duration on the action
|
|
452
|
+
config.action = {
|
|
453
|
+
...config.action,
|
|
454
|
+
duration
|
|
455
|
+
};
|
|
456
|
+
}
|
|
457
|
+
else {
|
|
458
|
+
// The snackbar does not close here. The duration is passed to the component and it will close it.
|
|
459
|
+
matSnackbarConfig.duration = duration;
|
|
460
|
+
}
|
|
461
|
+
return this.matSnackBar.openFromComponent(this.componentClass, matSnackbarConfig);
|
|
462
|
+
}
|
|
463
|
+
generateDisplayConfig(type, input) {
|
|
464
|
+
const configForType = this.eventTypeConfigs[type ?? 'none'];
|
|
465
|
+
let result;
|
|
466
|
+
if (configForType) {
|
|
467
|
+
result = makeDbxActionSnackbarDisplayConfigGeneratorFunction(configForType)(input);
|
|
468
|
+
}
|
|
469
|
+
return result;
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
DbxActionSnackbarService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionSnackbarService, deps: [{ token: i1$1.MatSnackBar }, { token: DBX_ACTION_SNACKBAR_SERVICE_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
473
|
+
DbxActionSnackbarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionSnackbarService, providedIn: 'root' });
|
|
474
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionSnackbarService, decorators: [{
|
|
475
|
+
type: Injectable,
|
|
476
|
+
args: [{
|
|
477
|
+
providedIn: 'root'
|
|
478
|
+
}]
|
|
479
|
+
}], ctorParameters: function () { return [{ type: i1$1.MatSnackBar }, { type: undefined, decorators: [{
|
|
480
|
+
type: Optional
|
|
481
|
+
}, {
|
|
482
|
+
type: Inject,
|
|
483
|
+
args: [DBX_ACTION_SNACKBAR_SERVICE_CONFIG]
|
|
484
|
+
}] }]; } });
|
|
485
|
+
|
|
486
|
+
/**
|
|
487
|
+
* Action directive that displays a snackbar when the action context hits a certain state.
|
|
488
|
+
*/
|
|
489
|
+
class DbxActionSnackbarDirective extends AbstractSubscriptionDirective {
|
|
490
|
+
constructor(source, dbxActionSnackbarService) {
|
|
491
|
+
super();
|
|
492
|
+
this.source = source;
|
|
493
|
+
this.dbxActionSnackbarService = dbxActionSnackbarService;
|
|
494
|
+
}
|
|
495
|
+
get snackbarFunction() {
|
|
496
|
+
return this._snackbarFunction;
|
|
497
|
+
}
|
|
498
|
+
set snackbarFunction(snackbarFunction) {
|
|
499
|
+
if (snackbarFunction) {
|
|
500
|
+
this._snackbarFunction = snackbarFunction;
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
ngOnInit() {
|
|
504
|
+
this.sub = this.source.pipeStore((store) => store.loadingState$).subscribe((loadingState) => {
|
|
505
|
+
const event = { value: loadingState.value, error: loadingState.error, type: loadingStateType(loadingState) };
|
|
506
|
+
const config = this.buildConfigurationForEvent(event);
|
|
507
|
+
if (config) {
|
|
508
|
+
this.showSnackbarForConfiguration(config, event);
|
|
509
|
+
}
|
|
510
|
+
});
|
|
511
|
+
}
|
|
512
|
+
buildConfigurationForEvent(event) {
|
|
513
|
+
const input = {
|
|
514
|
+
event,
|
|
515
|
+
undo: event.type === LoadingStateType.SUCCESS ? this.dbxActionSnackbarUndo : undefined // only show undo on success.
|
|
516
|
+
};
|
|
517
|
+
return (this.snackbarFunction) ? this.snackbarFunction(input) : this.dbxActionSnackbarService.generateDisplayConfig(this.dbxActionSnackbarDefault, input);
|
|
518
|
+
}
|
|
519
|
+
showSnackbarForConfiguration(config, event) {
|
|
520
|
+
this.dbxActionSnackbarService.openSnackbar(config);
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
DbxActionSnackbarDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionSnackbarDirective, deps: [{ token: i1$2.DbxActionContextStoreSourceInstance, host: true }, { token: DbxActionSnackbarService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
524
|
+
DbxActionSnackbarDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: DbxActionSnackbarDirective, selector: "[dbxActionSnackbar]", inputs: { snackbarFunction: ["dbxActionSnackbar", "snackbarFunction"], dbxActionSnackbarDefault: "dbxActionSnackbarDefault", dbxActionSnackbarUndo: "dbxActionSnackbarUndo" }, usesInheritance: true, ngImport: i0 });
|
|
525
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionSnackbarDirective, decorators: [{
|
|
526
|
+
type: Directive,
|
|
527
|
+
args: [{
|
|
528
|
+
selector: '[dbxActionSnackbar]'
|
|
529
|
+
}]
|
|
530
|
+
}], ctorParameters: function () { return [{ type: i1$2.DbxActionContextStoreSourceInstance, decorators: [{
|
|
531
|
+
type: Host
|
|
532
|
+
}] }, { type: DbxActionSnackbarService }]; }, propDecorators: { snackbarFunction: [{
|
|
533
|
+
type: Input,
|
|
534
|
+
args: ['dbxActionSnackbar']
|
|
535
|
+
}], dbxActionSnackbarDefault: [{
|
|
536
|
+
type: Input
|
|
537
|
+
}], dbxActionSnackbarUndo: [{
|
|
538
|
+
type: Input
|
|
539
|
+
}] } });
|
|
540
|
+
|
|
541
|
+
class DbxButtonModule {
|
|
542
|
+
}
|
|
543
|
+
DbxButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
544
|
+
DbxButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonModule, declarations: [DbxButtonComponent,
|
|
545
|
+
DbxButtonSpacerDirective], imports: [CommonModule,
|
|
546
|
+
MatProgressButtonsModule], exports: [DbxCoreButtonModule,
|
|
547
|
+
MatProgressButtonsModule,
|
|
548
|
+
DbxButtonComponent,
|
|
549
|
+
DbxButtonSpacerDirective] });
|
|
550
|
+
DbxButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonModule, imports: [[
|
|
551
|
+
CommonModule,
|
|
552
|
+
MatProgressButtonsModule
|
|
553
|
+
], DbxCoreButtonModule,
|
|
554
|
+
MatProgressButtonsModule] });
|
|
555
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonModule, decorators: [{
|
|
556
|
+
type: NgModule,
|
|
557
|
+
args: [{
|
|
558
|
+
imports: [
|
|
559
|
+
CommonModule,
|
|
560
|
+
MatProgressButtonsModule
|
|
561
|
+
],
|
|
562
|
+
declarations: [
|
|
563
|
+
DbxButtonComponent,
|
|
564
|
+
DbxButtonSpacerDirective
|
|
565
|
+
],
|
|
566
|
+
exports: [
|
|
567
|
+
DbxCoreButtonModule,
|
|
568
|
+
MatProgressButtonsModule,
|
|
569
|
+
DbxButtonComponent,
|
|
570
|
+
DbxButtonSpacerDirective
|
|
571
|
+
],
|
|
572
|
+
}]
|
|
573
|
+
}] });
|
|
574
|
+
|
|
64
575
|
/**
|
|
65
576
|
* Abstract dialog component that closes when a transition is successful.
|
|
66
577
|
*/
|
|
@@ -77,7 +588,7 @@ class AbstractDialogDirective extends AbstractTransitionWatcherDirective {
|
|
|
77
588
|
this.dialogRef.close(value);
|
|
78
589
|
}
|
|
79
590
|
}
|
|
80
|
-
AbstractDialogDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: AbstractDialogDirective, deps: [{ token: MAT_DIALOG_DATA, optional: true }, { token: MatDialogRef }, { token: i1.DbxRouterTransitionService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
591
|
+
AbstractDialogDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: AbstractDialogDirective, deps: [{ token: MAT_DIALOG_DATA, optional: true }, { token: MatDialogRef }, { token: i1$2.DbxRouterTransitionService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
81
592
|
AbstractDialogDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: AbstractDialogDirective, usesInheritance: true, ngImport: i0 });
|
|
82
593
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: AbstractDialogDirective, decorators: [{
|
|
83
594
|
type: Directive
|
|
@@ -86,10 +597,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
86
597
|
}, {
|
|
87
598
|
type: Inject,
|
|
88
599
|
args: [MAT_DIALOG_DATA]
|
|
89
|
-
}] }, { type: i1$
|
|
600
|
+
}] }, { type: i1$3.MatDialogRef, decorators: [{
|
|
90
601
|
type: Inject,
|
|
91
602
|
args: [MatDialogRef]
|
|
92
|
-
}] }, { type: i1.DbxRouterTransitionService }, { type: i0.NgZone }]; } });
|
|
603
|
+
}] }, { type: i1$2.DbxRouterTransitionService }, { type: i0.NgZone }]; } });
|
|
93
604
|
|
|
94
605
|
/**
|
|
95
606
|
* Component used to style a dialog.
|
|
@@ -142,7 +653,7 @@ class DbxStyleService {
|
|
|
142
653
|
this._suffix.next(suffix);
|
|
143
654
|
}
|
|
144
655
|
getStyleWithConfig(configObs) {
|
|
145
|
-
return combineLatest([configObs, this.suffix$]).pipe(map(([config, suffix]) => {
|
|
656
|
+
return combineLatest([configObs, this.suffix$]).pipe(map$1(([config, suffix]) => {
|
|
146
657
|
let style = config.style;
|
|
147
658
|
if (suffix != null && config.suffixes) {
|
|
148
659
|
const sanitizedSuffix = ((suffix[0] === '-') ? suffix?.slice(1) : suffix);
|
|
@@ -199,8 +710,8 @@ class DbxSetStyleDirective extends AbstractSubscriptionDirective {
|
|
|
199
710
|
this._suffixes = new BehaviorSubject(undefined);
|
|
200
711
|
this._style = new BehaviorSubject(undefined);
|
|
201
712
|
this.style$ = this._style.pipe(filterMaybe());
|
|
202
|
-
this.suffixes$ = this._suffixes.pipe(distinctUntilChanged(), map(splitCommaSeparatedStringToSet));
|
|
203
|
-
this.config$ = combineLatest([this.style$, this.suffixes$]).pipe(map(([style, suffixes]) => ({ style, suffixes })), shareReplay(1));
|
|
713
|
+
this.suffixes$ = this._suffixes.pipe(distinctUntilChanged(), map$1(splitCommaSeparatedStringToSet));
|
|
714
|
+
this.config$ = combineLatest([this.style$, this.suffixes$]).pipe(map$1(([style, suffixes]) => ({ style, suffixes })), shareReplay(1));
|
|
204
715
|
this.outputStyle$ = this.styleService.getStyleWithConfig(this.config$);
|
|
205
716
|
this.outputStyle = '';
|
|
206
717
|
}
|
|
@@ -272,20 +783,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
272
783
|
}]
|
|
273
784
|
}], ctorParameters: function () { return [{ type: DbxStyleService }, { type: i0.ChangeDetectorRef }]; } });
|
|
274
785
|
|
|
275
|
-
class DbxSpacerDirective {
|
|
276
|
-
}
|
|
277
|
-
DbxSpacerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSpacerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
278
|
-
DbxSpacerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: DbxSpacerDirective, selector: "dbx-spacer, [dbx-spacer]", host: { classAttribute: "dbx-spacer" }, ngImport: i0 });
|
|
279
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSpacerDirective, decorators: [{
|
|
280
|
-
type: Directive,
|
|
281
|
-
args: [{
|
|
282
|
-
selector: 'dbx-spacer, [dbx-spacer]',
|
|
283
|
-
host: {
|
|
284
|
-
'class': 'dbx-spacer'
|
|
285
|
-
}
|
|
286
|
-
}]
|
|
287
|
-
}] });
|
|
288
|
-
|
|
289
786
|
/**
|
|
290
787
|
* Used to style the body document using the style provided by DbxStyleService.
|
|
291
788
|
*/
|
|
@@ -471,7 +968,7 @@ DbxBarHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
471
968
|
<mat-icon class="button-spacer" *ngIf="icon">{{ icon }}</mat-icon>
|
|
472
969
|
<span *ngIf="text">{{ text }}</span>
|
|
473
970
|
</dbx-bar>
|
|
474
|
-
`, isInline: true, components: [{ type:
|
|
971
|
+
`, isInline: true, components: [{ type: i1$4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: DbxBarDirective, selector: "dbx-bar", inputs: ["color"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
475
972
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxBarHeaderComponent, decorators: [{
|
|
476
973
|
type: Component,
|
|
477
974
|
args: [{
|
|
@@ -497,7 +994,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
497
994
|
class DbxPagebarComponent {
|
|
498
995
|
}
|
|
499
996
|
DbxPagebarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPagebarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
500
|
-
DbxPagebarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxPagebarComponent, selector: "dbx-pagebar", inputs: { color: "color" }, ngImport: i0, template: "<mat-toolbar class=\"dbx-pagebar\" [ngClass]=\"(color) ? ('dbx-bar-' + color) : ''\">\n <ng-content select=\"[left]\"></ng-content>\n <span class=\"spacer\"></span>\n <ng-content select=\"[right]\"></ng-content>\n</mat-toolbar>\n", components: [{ type: i1$
|
|
997
|
+
DbxPagebarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxPagebarComponent, selector: "dbx-pagebar", inputs: { color: "color" }, ngImport: i0, template: "<mat-toolbar class=\"dbx-pagebar\" [ngClass]=\"(color) ? ('dbx-bar-' + color) : ''\">\n <ng-content select=\"[left]\"></ng-content>\n <span class=\"spacer\"></span>\n <ng-content select=\"[right]\"></ng-content>\n</mat-toolbar>\n", components: [{ type: i1$5.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }], directives: [{ type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
501
998
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPagebarComponent, decorators: [{
|
|
502
999
|
type: Component,
|
|
503
1000
|
args: [{ selector: 'dbx-pagebar', template: "<mat-toolbar class=\"dbx-pagebar\" [ngClass]=\"(color) ? ('dbx-bar-' + color) : ''\">\n <ng-content select=\"[left]\"></ng-content>\n <span class=\"spacer\"></span>\n <ng-content select=\"[right]\"></ng-content>\n</mat-toolbar>\n" }]
|
|
@@ -556,8 +1053,8 @@ class DbxAnchorComponent extends AbstractDbxAnchorDirective {
|
|
|
556
1053
|
this.dbNgxRouterWebProviderConfig = dbNgxRouterWebProviderConfig;
|
|
557
1054
|
this._templateRef = new BehaviorSubject(undefined);
|
|
558
1055
|
this.templateRef$ = this._templateRef.pipe(skipFirstMaybe(), shareReplay$1(1));
|
|
559
|
-
this.url$ = this.anchor$.pipe(map
|
|
560
|
-
this.target$ = this.anchor$.pipe(map
|
|
1056
|
+
this.url$ = this.anchor$.pipe(map(x => x?.url), distinctUntilChanged$1(), shareReplay$1(1));
|
|
1057
|
+
this.target$ = this.anchor$.pipe(map(x => x?.target), distinctUntilChanged$1(), shareReplay$1(1));
|
|
561
1058
|
}
|
|
562
1059
|
get templateRef() {
|
|
563
1060
|
return this._templateRef.value;
|
|
@@ -573,7 +1070,7 @@ class DbxAnchorComponent extends AbstractDbxAnchorDirective {
|
|
|
573
1070
|
}
|
|
574
1071
|
}
|
|
575
1072
|
DbxAnchorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxAnchorComponent, deps: [{ token: DbxRouterWebProviderConfig }], target: i0.ɵɵFactoryTarget.Component });
|
|
576
|
-
DbxAnchorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxAnchorComponent, selector: "dbx-anchor, [dbx-anchor]", inputs: { block: "block" }, host: { attributes: { "dbx-anchor-block": "block" }, classAttribute: "d-inline dbx-anchor" }, viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["content"], descendants: true, read: TemplateRef }], usesInheritance: true, ngImport: i0, template: "<ng-container [ngSwitch]=\"(type$ | async)\">\n <!-- Plain -->\n <ng-container *ngSwitchCase=\"0\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </ng-container>\n <!-- Click -->\n <a class=\"dbx-anchor-a dbx-anchor-click\" (click)=\"clickAnchor()\" *ngSwitchCase=\"1\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </a>\n <!-- Router -->\n <dbx-injected-content [config]=\"srefAnchorConfig\" *ngSwitchCase=\"2\">\n <!-- Injected in child. -->\n </dbx-injected-content>\n <!-- Href -->\n <a class=\"dbx-anchor-a dbx-anchor-href\" [href]=\"url$ | async\" [attr.target]=\"target$ | async\"\n *ngSwitchCase=\"3\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </a>\n <!-- Disabled or None -->\n <a class=\"dbx-anchor-a dbx-anchor-disabled\" *ngSwitchDefault>\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </a>\n</ng-container>\n<!-- Template content -->\n<ng-template #content>\n <ng-content></ng-content>\n</ng-template>\n", components: [{ type: i1.DbxInjectedComponent, selector: "dbx-injected-content, [dbx-injected-content]", inputs: ["config", "template"] }], directives: [{ type: i3
|
|
1073
|
+
DbxAnchorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxAnchorComponent, selector: "dbx-anchor, [dbx-anchor]", inputs: { block: "block" }, host: { attributes: { "dbx-anchor-block": "block" }, classAttribute: "d-inline dbx-anchor" }, viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["content"], descendants: true, read: TemplateRef }], usesInheritance: true, ngImport: i0, template: "<ng-container [ngSwitch]=\"(type$ | async)\">\n <!-- Plain -->\n <ng-container *ngSwitchCase=\"0\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </ng-container>\n <!-- Click -->\n <a class=\"dbx-anchor-a dbx-anchor-click\" (click)=\"clickAnchor()\" *ngSwitchCase=\"1\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </a>\n <!-- Router -->\n <dbx-injected-content [config]=\"srefAnchorConfig\" *ngSwitchCase=\"2\">\n <!-- Injected in child. -->\n </dbx-injected-content>\n <!-- Href -->\n <a class=\"dbx-anchor-a dbx-anchor-href\" [href]=\"url$ | async\" [attr.target]=\"target$ | async\"\n *ngSwitchCase=\"3\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </a>\n <!-- Disabled or None -->\n <a class=\"dbx-anchor-a dbx-anchor-disabled\" *ngSwitchDefault>\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </a>\n</ng-container>\n<!-- Template content -->\n<ng-template #content>\n <ng-content></ng-content>\n</ng-template>\n", components: [{ type: i1$2.DbxInjectedComponent, selector: "dbx-injected-content, [dbx-injected-content]", inputs: ["config", "template"] }], directives: [{ type: i3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i3.NgSwitchDefault, selector: "[ngSwitchDefault]" }], pipes: { "async": i3.AsyncPipe } });
|
|
577
1074
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxAnchorComponent, decorators: [{
|
|
578
1075
|
type: Component,
|
|
579
1076
|
args: [{ selector: 'dbx-anchor, [dbx-anchor]', host: {
|
|
@@ -597,7 +1094,7 @@ DbxAnchorIconComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
597
1094
|
<dbx-anchor [anchor]="anchor">
|
|
598
1095
|
<button mat-icon-button><mat-icon>{{ anchor?.icon }}</mat-icon></button>
|
|
599
1096
|
</dbx-anchor>
|
|
600
|
-
`, isInline: true, components: [{ type: DbxAnchorComponent, selector: "dbx-anchor, [dbx-anchor]", inputs: ["block"] }, { type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type:
|
|
1097
|
+
`, isInline: true, components: [{ type: DbxAnchorComponent, selector: "dbx-anchor, [dbx-anchor]", inputs: ["block"] }, { type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i1$4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] });
|
|
601
1098
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxAnchorIconComponent, decorators: [{
|
|
602
1099
|
type: Component,
|
|
603
1100
|
args: [{
|
|
@@ -658,17 +1155,36 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
658
1155
|
type: Input
|
|
659
1156
|
}] } });
|
|
660
1157
|
|
|
1158
|
+
/**
|
|
1159
|
+
* Component that displays an anchor and a span with the title.
|
|
1160
|
+
*/
|
|
1161
|
+
class DbxAnchorContentComponent {
|
|
1162
|
+
}
|
|
1163
|
+
DbxAnchorContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxAnchorContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1164
|
+
DbxAnchorContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxAnchorContentComponent, selector: "dbx-anchor-content", inputs: { anchor: "anchor" }, ngImport: i0, template: `<mat-icon *ngIf="anchor?.icon">{{ anchor?.icon }}</mat-icon><span *ngIf="anchor?.title">{{ anchor?.title }}</span>`, isInline: true, components: [{ type: i1$4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1165
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxAnchorContentComponent, decorators: [{
|
|
1166
|
+
type: Component,
|
|
1167
|
+
args: [{
|
|
1168
|
+
selector: 'dbx-anchor-content',
|
|
1169
|
+
template: `<mat-icon *ngIf="anchor?.icon">{{ anchor?.icon }}</mat-icon><span *ngIf="anchor?.title">{{ anchor?.title }}</span>`
|
|
1170
|
+
}]
|
|
1171
|
+
}], propDecorators: { anchor: [{
|
|
1172
|
+
type: Input
|
|
1173
|
+
}] } });
|
|
1174
|
+
|
|
661
1175
|
class DbxAnchorModule {
|
|
662
1176
|
}
|
|
663
1177
|
DbxAnchorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxAnchorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
664
1178
|
DbxAnchorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxAnchorModule, declarations: [DbxAnchorComponent,
|
|
665
1179
|
DbxAnchorIconComponent,
|
|
666
|
-
DbxAnchorLinkComponent
|
|
1180
|
+
DbxAnchorLinkComponent,
|
|
1181
|
+
DbxAnchorContentComponent], imports: [CommonModule,
|
|
667
1182
|
MatIconModule,
|
|
668
1183
|
MatButtonModule,
|
|
669
1184
|
DbxInjectedComponentModule], exports: [DbxAnchorComponent,
|
|
670
1185
|
DbxAnchorIconComponent,
|
|
671
|
-
DbxAnchorLinkComponent
|
|
1186
|
+
DbxAnchorLinkComponent,
|
|
1187
|
+
DbxAnchorContentComponent] });
|
|
672
1188
|
DbxAnchorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxAnchorModule, imports: [[
|
|
673
1189
|
CommonModule,
|
|
674
1190
|
MatIconModule,
|
|
@@ -687,12 +1203,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
687
1203
|
declarations: [
|
|
688
1204
|
DbxAnchorComponent,
|
|
689
1205
|
DbxAnchorIconComponent,
|
|
690
|
-
DbxAnchorLinkComponent
|
|
1206
|
+
DbxAnchorLinkComponent,
|
|
1207
|
+
DbxAnchorContentComponent
|
|
691
1208
|
],
|
|
692
1209
|
exports: [
|
|
693
1210
|
DbxAnchorComponent,
|
|
694
1211
|
DbxAnchorIconComponent,
|
|
695
|
-
DbxAnchorLinkComponent
|
|
1212
|
+
DbxAnchorLinkComponent,
|
|
1213
|
+
DbxAnchorContentComponent
|
|
696
1214
|
]
|
|
697
1215
|
}]
|
|
698
1216
|
}] });
|
|
@@ -704,10 +1222,10 @@ class AbstractDbxSegueAnchorDirective {
|
|
|
704
1222
|
constructor(parent) {
|
|
705
1223
|
this.parent = parent;
|
|
706
1224
|
this.target$ = this.parent.target$;
|
|
707
|
-
this.ref$ = this.parent.anchor$.pipe(map
|
|
708
|
-
this.refParams$ = this.parent.anchor$.pipe(map
|
|
709
|
-
this.refOptions$ = this.parent.anchor$.pipe(map
|
|
710
|
-
this.template$ = this.parent.templateRef$.pipe(distinctUntilChanged$1(), map
|
|
1225
|
+
this.ref$ = this.parent.anchor$.pipe(map(x => x?.ref), distinctUntilChanged$1(), shareReplay$1(1));
|
|
1226
|
+
this.refParams$ = this.parent.anchor$.pipe(map(x => x?.refParams), distinctUntilChanged$1(), shareReplay$1(1));
|
|
1227
|
+
this.refOptions$ = this.parent.anchor$.pipe(map(x => x?.refOptions), distinctUntilChanged$1(), shareReplay$1(1));
|
|
1228
|
+
this.template$ = this.parent.templateRef$.pipe(distinctUntilChanged$1(), map(templateRef => ({
|
|
711
1229
|
templateRef
|
|
712
1230
|
})), shareReplay$1(1));
|
|
713
1231
|
}
|
|
@@ -727,7 +1245,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
727
1245
|
class DbxAnchorListComponent {
|
|
728
1246
|
constructor() {
|
|
729
1247
|
this._anchors = new BehaviorSubject([]);
|
|
730
|
-
this.expandedAnchors$ = this._anchors.pipe(distinctUntilChanged(), map(x => expandClickableAnchorLinkTrees(x)), shareReplay(1));
|
|
1248
|
+
this.expandedAnchors$ = this._anchors.pipe(distinctUntilChanged(), map$1(x => expandClickableAnchorLinkTrees(x)), shareReplay(1));
|
|
731
1249
|
}
|
|
732
1250
|
set anchors(anchors) {
|
|
733
1251
|
this._anchors.next(anchors ?? []);
|
|
@@ -737,7 +1255,7 @@ class DbxAnchorListComponent {
|
|
|
737
1255
|
}
|
|
738
1256
|
}
|
|
739
1257
|
DbxAnchorListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxAnchorListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
740
|
-
DbxAnchorListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxAnchorListComponent, selector: "dbx-anchor-list", inputs: { anchors: "anchors" }, ngImport: i0, template: "<mat-nav-list class=\"dbx-anchor-list\">\n <ng-container *ngFor=\"let expanded of expandedAnchors$ | async; let last = last;\">\n <span dbx-anchor [anchor]=\"expanded.value\">\n <a mat-list-item [ngClass]=\"(expanded.depth) ? 'dbx-anchor-list-child' : 'dbx-anchor-list-root'\">\n <mat-icon mat-list-icon *ngIf=\"expanded.value.icon\">{{ expanded.value.icon }}</mat-icon>\n <!-- TODO: Add an icon from a letter if anchor.icon is unavailable. -->\n <div mat-line>{{ expanded.value.title }}</div>\n <mat-divider *ngIf=\"!last\"></mat-divider>\n </a>\n </span>\n </ng-container>\n</mat-nav-list>\n", components: [{ type: i1$
|
|
1258
|
+
DbxAnchorListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxAnchorListComponent, selector: "dbx-anchor-list", inputs: { anchors: "anchors" }, ngImport: i0, template: "<mat-nav-list class=\"dbx-anchor-list\">\n <ng-container *ngFor=\"let expanded of expandedAnchors$ | async; let last = last;\">\n <span dbx-anchor [anchor]=\"expanded.value\">\n <a mat-list-item [ngClass]=\"(expanded.depth) ? 'dbx-anchor-list-child' : 'dbx-anchor-list-root'\">\n <mat-icon mat-list-icon *ngIf=\"expanded.value.icon\">{{ expanded.value.icon }}</mat-icon>\n <!-- TODO: Add an icon from a letter if anchor.icon is unavailable. -->\n <div mat-line>{{ expanded.value.title }}</div>\n <mat-divider *ngIf=\"!last\"></mat-divider>\n </a>\n </span>\n </ng-container>\n</mat-nav-list>\n", components: [{ type: i1$6.MatNavList, selector: "mat-nav-list", inputs: ["disableRipple", "disabled"], exportAs: ["matNavList"] }, { type: DbxAnchorComponent, selector: "dbx-anchor, [dbx-anchor]", inputs: ["block"] }, { type: i1$6.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["disableRipple", "disabled"], exportAs: ["matListItem"] }, { type: i1$4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i4.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }], directives: [{ type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$6.MatListIconCssMatStyler, selector: "[mat-list-icon], [matListIcon]" }, { type: i6.MatLine, selector: "[mat-line], [matLine]" }], pipes: { "async": i3.AsyncPipe } });
|
|
741
1259
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxAnchorListComponent, decorators: [{
|
|
742
1260
|
type: Component,
|
|
743
1261
|
args: [{ selector: 'dbx-anchor-list', template: "<mat-nav-list class=\"dbx-anchor-list\">\n <ng-container *ngFor=\"let expanded of expandedAnchors$ | async; let last = last;\">\n <span dbx-anchor [anchor]=\"expanded.value\">\n <a mat-list-item [ngClass]=\"(expanded.depth) ? 'dbx-anchor-list-child' : 'dbx-anchor-list-root'\">\n <mat-icon mat-list-icon *ngIf=\"expanded.value.icon\">{{ expanded.value.icon }}</mat-icon>\n <!-- TODO: Add an icon from a letter if anchor.icon is unavailable. -->\n <div mat-line>{{ expanded.value.title }}</div>\n <mat-divider *ngIf=\"!last\"></mat-divider>\n </a>\n </span>\n </ng-container>\n</mat-nav-list>\n" }]
|
|
@@ -827,8 +1345,8 @@ class DbxScreenMediaService {
|
|
|
827
1345
|
this._media = _media;
|
|
828
1346
|
this._updateWidth = new Subject();
|
|
829
1347
|
this._updateHeight = new Subject();
|
|
830
|
-
this.widthType$ = this._updateWidth.pipe(initialize(() => this._updateWidth.next()), throttleTime(100, undefined, { leading: true, trailing: true }), map(() => this._readWidthType()), distinctUntilChanged(), shareReplay(1));
|
|
831
|
-
this.heightType$ = this._updateWidth.pipe(initialize(() => this._updateHeight.next()), throttleTime(100, undefined, { leading: true, trailing: true }), map(() => this._readHeightType()), distinctUntilChanged(), shareReplay(1));
|
|
1348
|
+
this.widthType$ = this._updateWidth.pipe(initialize(() => this._updateWidth.next()), throttleTime(100, undefined, { leading: true, trailing: true }), map$1(() => this._readWidthType()), distinctUntilChanged(), shareReplay(1));
|
|
1349
|
+
this.heightType$ = this._updateWidth.pipe(initialize(() => this._updateHeight.next()), throttleTime(100, undefined, { leading: true, trailing: true }), map$1(() => this._readHeightType()), distinctUntilChanged(), shareReplay(1));
|
|
832
1350
|
const { microScreenWidthMax, smallScreenWidthMax, tabletScreenWidthMax, largeScreenWidthMax } = config;
|
|
833
1351
|
this._microQuery = this._media.matchMedia(`screen and (max-width:${microScreenWidthMax}px)`);
|
|
834
1352
|
this._smallQuery = this._media.matchMedia(`screen and (max-width:${smallScreenWidthMax}px)`);
|
|
@@ -858,7 +1376,7 @@ class DbxScreenMediaService {
|
|
|
858
1376
|
* @returns
|
|
859
1377
|
*/
|
|
860
1378
|
isBreakpointActive(inputBreakpoint) {
|
|
861
|
-
return combineLatest([this.widthType$, asObservable(inputBreakpoint)]).pipe(map(([current, breakpoint]) => screenMediaWidthTypeIsActive(current, breakpoint)), distinctUntilChanged(), shareReplay(1));
|
|
1379
|
+
return combineLatest([this.widthType$, asObservable(inputBreakpoint)]).pipe(map$1(([current, breakpoint]) => screenMediaWidthTypeIsActive(current, breakpoint)), distinctUntilChanged(), shareReplay(1));
|
|
862
1380
|
}
|
|
863
1381
|
_readWidthType() {
|
|
864
1382
|
let width;
|
|
@@ -888,11 +1406,11 @@ class DbxScreenMediaService {
|
|
|
888
1406
|
}
|
|
889
1407
|
}
|
|
890
1408
|
}
|
|
891
|
-
DbxScreenMediaService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxScreenMediaService, deps: [{ token: i1$
|
|
1409
|
+
DbxScreenMediaService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxScreenMediaService, deps: [{ token: i1$7.MediaMatcher }, { token: DbxScreenMediaServiceConfig }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
892
1410
|
DbxScreenMediaService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxScreenMediaService });
|
|
893
1411
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxScreenMediaService, decorators: [{
|
|
894
1412
|
type: Injectable
|
|
895
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
1413
|
+
}], ctorParameters: function () { return [{ type: i1$7.MediaMatcher }, { type: DbxScreenMediaServiceConfig }]; } });
|
|
896
1414
|
|
|
897
1415
|
/**
|
|
898
1416
|
* Component that displays a navbar.
|
|
@@ -908,10 +1426,10 @@ class DbxNavbarComponent extends AbstractTransitionDirective {
|
|
|
908
1426
|
this._breakpoint = new BehaviorSubject('large');
|
|
909
1427
|
this._anchors = new BehaviorSubject([]);
|
|
910
1428
|
this.isBreakpointActive$ = this._dbxScreenMediaService.isBreakpointActive(this._breakpoint);
|
|
911
|
-
this.mode$ = combineLatest([this._inputMode, this.isBreakpointActive$]).pipe(map(([inputMode, breakpointActive]) => {
|
|
1429
|
+
this.mode$ = combineLatest([this._inputMode, this.isBreakpointActive$]).pipe(map$1(([inputMode, breakpointActive]) => {
|
|
912
1430
|
return (breakpointActive) ? (inputMode ?? 'bar') : 'button';
|
|
913
1431
|
}), distinctUntilChanged(), tapDetectChanges(this.cdRef), shareReplay(1));
|
|
914
|
-
this.anchors$ = combineLatest([this._anchors, this.initAndUpdateOnTransitionSuccess$]).pipe(map(([anchors]) => {
|
|
1432
|
+
this.anchors$ = combineLatest([this._anchors, this.initAndUpdateOnTransitionSuccess$]).pipe(map$1(([anchors]) => {
|
|
915
1433
|
const results = anchors.map((anchor) => {
|
|
916
1434
|
let selected = this._dbxRouterService.isActive(anchor);
|
|
917
1435
|
return {
|
|
@@ -938,14 +1456,14 @@ class DbxNavbarComponent extends AbstractTransitionDirective {
|
|
|
938
1456
|
this._breakpoint.next(breakpoint);
|
|
939
1457
|
}
|
|
940
1458
|
}
|
|
941
|
-
DbxNavbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxNavbarComponent, deps: [{ token: i1.DbxRouterTransitionService }, { token: i0.ChangeDetectorRef }, { token: DbxScreenMediaService }, { token: i1.DbxRouterService }], target: i0.ɵɵFactoryTarget.Component });
|
|
942
|
-
DbxNavbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxNavbarComponent, selector: "dbx-navbar", inputs: { navAlign: "navAlign", anchors: "anchors", mode: "mode", breakpoint: "breakpoint" }, host: { classAttribute: "dbx-navbar" }, usesInheritance: true, ngImport: i0, template: "<ng-container [ngSwitch]=\"mode$ | async\">\n <!-- Button -->\n <ng-container *ngSwitchCase=\"'button'\">\n <button mat-icon-button [matMenuTriggerFor]=\"menu\" class=\"nav-menu-button\" aria-label=\"open navigation\">\n <mat-icon>menu</mat-icon>\n </button>\n <mat-menu #menu>\n <dbx-anchor *ngFor=\"let x of anchors$ | async\" [anchor]=\"x.anchor\">\n <button mat-menu-item [ngClass]=\"(x.selected) ? 'active' : ''\">{{ x.anchor.title }}</button>\n </dbx-anchor>\n </mat-menu>\n </ng-container>\n <!-- Bar -->\n <nav *ngSwitchDefault mat-tab-nav-bar [attr.mat-align-tabs]=\"navAlign\">\n <dbx-anchor *ngFor=\"let x of anchors$ | async\" [anchor]=\"x.anchor\">\n <a mat-tab-link [active]=\"x.selected\">{{ x.anchor.title }}</a>\n </dbx-anchor>\n </nav>\n</ng-container>\n", components: [{ type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type:
|
|
1459
|
+
DbxNavbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxNavbarComponent, deps: [{ token: i1$2.DbxRouterTransitionService }, { token: i0.ChangeDetectorRef }, { token: DbxScreenMediaService }, { token: i1$2.DbxRouterService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1460
|
+
DbxNavbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxNavbarComponent, selector: "dbx-navbar", inputs: { navAlign: "navAlign", anchors: "anchors", mode: "mode", breakpoint: "breakpoint" }, host: { classAttribute: "dbx-navbar" }, usesInheritance: true, ngImport: i0, template: "<ng-container [ngSwitch]=\"mode$ | async\">\n <!-- Button -->\n <ng-container *ngSwitchCase=\"'button'\">\n <button mat-icon-button [matMenuTriggerFor]=\"menu\" class=\"nav-menu-button\" aria-label=\"open navigation\">\n <mat-icon>menu</mat-icon>\n </button>\n <mat-menu #menu>\n <dbx-anchor *ngFor=\"let x of anchors$ | async\" [anchor]=\"x.anchor\">\n <button mat-menu-item [ngClass]=\"(x.selected) ? 'active' : ''\">{{ x.anchor.title }}</button>\n </dbx-anchor>\n </mat-menu>\n </ng-container>\n <!-- Bar -->\n <nav *ngSwitchDefault mat-tab-nav-bar [attr.mat-align-tabs]=\"navAlign\">\n <dbx-anchor *ngFor=\"let x of anchors$ | async\" [anchor]=\"x.anchor\">\n <a mat-tab-link [active]=\"x.selected\">{{ x.anchor.title }}</a>\n </dbx-anchor>\n </nav>\n</ng-container>\n", components: [{ type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i1$4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i5.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { type: DbxAnchorComponent, selector: "dbx-anchor, [dbx-anchor]", inputs: ["block"] }, { type: i5.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { type: i7.MatTabNav, selector: "[mat-tab-nav-bar]", inputs: ["color"], exportAs: ["matTabNavBar", "matTabNav"] }], directives: [{ type: i3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i5.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { type: i7.MatTabLink, selector: "[mat-tab-link], [matTabLink]", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matTabLink"] }], pipes: { "async": i3.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
943
1461
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxNavbarComponent, decorators: [{
|
|
944
1462
|
type: Component,
|
|
945
1463
|
args: [{ selector: 'dbx-navbar', changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
946
1464
|
'class': 'dbx-navbar'
|
|
947
1465
|
}, template: "<ng-container [ngSwitch]=\"mode$ | async\">\n <!-- Button -->\n <ng-container *ngSwitchCase=\"'button'\">\n <button mat-icon-button [matMenuTriggerFor]=\"menu\" class=\"nav-menu-button\" aria-label=\"open navigation\">\n <mat-icon>menu</mat-icon>\n </button>\n <mat-menu #menu>\n <dbx-anchor *ngFor=\"let x of anchors$ | async\" [anchor]=\"x.anchor\">\n <button mat-menu-item [ngClass]=\"(x.selected) ? 'active' : ''\">{{ x.anchor.title }}</button>\n </dbx-anchor>\n </mat-menu>\n </ng-container>\n <!-- Bar -->\n <nav *ngSwitchDefault mat-tab-nav-bar [attr.mat-align-tabs]=\"navAlign\">\n <dbx-anchor *ngFor=\"let x of anchors$ | async\" [anchor]=\"x.anchor\">\n <a mat-tab-link [active]=\"x.selected\">{{ x.anchor.title }}</a>\n </dbx-anchor>\n </nav>\n</ng-container>\n" }]
|
|
948
|
-
}], ctorParameters: function () { return [{ type: i1.DbxRouterTransitionService }, { type: i0.ChangeDetectorRef }, { type: DbxScreenMediaService }, { type: i1.DbxRouterService }]; }, propDecorators: { navAlign: [{
|
|
1466
|
+
}], ctorParameters: function () { return [{ type: i1$2.DbxRouterTransitionService }, { type: i0.ChangeDetectorRef }, { type: DbxScreenMediaService }, { type: i1$2.DbxRouterService }]; }, propDecorators: { navAlign: [{
|
|
949
1467
|
type: Input
|
|
950
1468
|
}], anchors: [{
|
|
951
1469
|
type: Input
|
|
@@ -1027,7 +1545,7 @@ class DbxSidenavComponent extends AbstractTransitionWatcherDirective {
|
|
|
1027
1545
|
constructor(dbxRouterTransitionService, ngZone, _screenMediaService) {
|
|
1028
1546
|
super(dbxRouterTransitionService, ngZone);
|
|
1029
1547
|
this._screenMediaService = _screenMediaService;
|
|
1030
|
-
this.mode$ = this._screenMediaService.widthType$.pipe(distinctUntilChanged(), map((width) => {
|
|
1548
|
+
this.mode$ = this._screenMediaService.widthType$.pipe(distinctUntilChanged(), map$1((width) => {
|
|
1031
1549
|
let mode;
|
|
1032
1550
|
switch (width) {
|
|
1033
1551
|
case 'micro':
|
|
@@ -1044,9 +1562,9 @@ class DbxSidenavComponent extends AbstractTransitionWatcherDirective {
|
|
|
1044
1562
|
}
|
|
1045
1563
|
return mode;
|
|
1046
1564
|
}), shareReplay(1));
|
|
1047
|
-
this.disableBackdrop$ = this.mode$.pipe(map(x => x !== SideNavDisplayMode.MOBILE), distinctUntilChanged(), shareReplay(1));
|
|
1048
|
-
this.sizeClass$ = this.mode$.pipe(map((mode) => `dbx-sidenav-${mode}`), distinctUntilChanged(), shareReplay(1));
|
|
1049
|
-
this.state$ = this.mode$.pipe(map((mode) => {
|
|
1565
|
+
this.disableBackdrop$ = this.mode$.pipe(map$1(x => x !== SideNavDisplayMode.MOBILE), distinctUntilChanged(), shareReplay(1));
|
|
1566
|
+
this.sizeClass$ = this.mode$.pipe(map$1((mode) => `dbx-sidenav-${mode}`), distinctUntilChanged(), shareReplay(1));
|
|
1567
|
+
this.state$ = this.mode$.pipe(map$1((mode) => {
|
|
1050
1568
|
let drawer;
|
|
1051
1569
|
let open;
|
|
1052
1570
|
switch (mode) {
|
|
@@ -1066,7 +1584,7 @@ class DbxSidenavComponent extends AbstractTransitionWatcherDirective {
|
|
|
1066
1584
|
open
|
|
1067
1585
|
};
|
|
1068
1586
|
}), shareReplay(1));
|
|
1069
|
-
this.drawer$ = this.state$.pipe(map(x => x.drawer), distinctUntilChanged(), shareReplay(1));
|
|
1587
|
+
this.drawer$ = this.state$.pipe(map$1(x => x.drawer), distinctUntilChanged(), shareReplay(1));
|
|
1070
1588
|
this._watcherSub = new SubscriptionObject();
|
|
1071
1589
|
this._stateSub = new SubscriptionObject();
|
|
1072
1590
|
}
|
|
@@ -1122,12 +1640,12 @@ class DbxSidenavComponent extends AbstractTransitionWatcherDirective {
|
|
|
1122
1640
|
});
|
|
1123
1641
|
}
|
|
1124
1642
|
}
|
|
1125
|
-
DbxSidenavComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSidenavComponent, deps: [{ token: i1.DbxRouterTransitionService }, { token: i0.NgZone }, { token: DbxScreenMediaService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1126
|
-
DbxSidenavComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxSidenavComponent, selector: "dbx-sidenav", inputs: { anchors: "anchors" }, viewQueries: [{ propertyName: "sidenav", first: true, predicate: MatSidenav, descendants: true, static: true }], exportAs: ["sidenav"], usesInheritance: true, ngImport: i0, template: "<mat-sidenav-container class=\"dbx-sidenav\" [ngClass]=\"(sizeClass$ | async) ?? ''\">\n <mat-sidenav class=\"dbx-sidenav-nav\" [disableClose]=\"disableBackdrop$ | async\" [mode]=\"(drawer$ | async)!\">\n <ng-content select=\"[top]\"></ng-content>\n <dbx-anchor-list class=\"dbx-sidenav-anchor-list\" [anchors]=\"anchors\"></dbx-anchor-list>\n <span class=\"spacer\"></span>\n <ng-content select=\"[bottom]\"></ng-content>\n <div class=\"dbx-sidenav-nav-end\"></div>\n </mat-sidenav>\n <mat-sidenav-content>\n <ng-content></ng-content>\n </mat-sidenav-content>\n</mat-sidenav-container>\n", components: [{ type: i3$
|
|
1643
|
+
DbxSidenavComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSidenavComponent, deps: [{ token: i1$2.DbxRouterTransitionService }, { token: i0.NgZone }, { token: DbxScreenMediaService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1644
|
+
DbxSidenavComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxSidenavComponent, selector: "dbx-sidenav", inputs: { anchors: "anchors" }, viewQueries: [{ propertyName: "sidenav", first: true, predicate: MatSidenav, descendants: true, static: true }], exportAs: ["sidenav"], usesInheritance: true, ngImport: i0, template: "<mat-sidenav-container class=\"dbx-sidenav\" [ngClass]=\"(sizeClass$ | async) ?? ''\">\n <mat-sidenav class=\"dbx-sidenav-nav\" [disableClose]=\"disableBackdrop$ | async\" [mode]=\"(drawer$ | async)!\">\n <ng-content select=\"[top]\"></ng-content>\n <dbx-anchor-list class=\"dbx-sidenav-anchor-list\" [anchors]=\"anchors\"></dbx-anchor-list>\n <span class=\"spacer\"></span>\n <ng-content select=\"[bottom]\"></ng-content>\n <div class=\"dbx-sidenav-nav-end\"></div>\n </mat-sidenav>\n <mat-sidenav-content>\n <ng-content></ng-content>\n </mat-sidenav-content>\n</mat-sidenav-container>\n", components: [{ type: i3$1.MatSidenavContainer, selector: "mat-sidenav-container", exportAs: ["matSidenavContainer"] }, { type: i3$1.MatSidenav, selector: "mat-sidenav", inputs: ["fixedInViewport", "fixedTopGap", "fixedBottomGap"], exportAs: ["matSidenav"] }, { type: DbxAnchorListComponent, selector: "dbx-anchor-list", inputs: ["anchors"] }, { type: i3$1.MatSidenavContent, selector: "mat-sidenav-content" }], directives: [{ type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "async": i3.AsyncPipe } });
|
|
1127
1645
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSidenavComponent, decorators: [{
|
|
1128
1646
|
type: Component,
|
|
1129
1647
|
args: [{ selector: 'dbx-sidenav', exportAs: 'sidenav', template: "<mat-sidenav-container class=\"dbx-sidenav\" [ngClass]=\"(sizeClass$ | async) ?? ''\">\n <mat-sidenav class=\"dbx-sidenav-nav\" [disableClose]=\"disableBackdrop$ | async\" [mode]=\"(drawer$ | async)!\">\n <ng-content select=\"[top]\"></ng-content>\n <dbx-anchor-list class=\"dbx-sidenav-anchor-list\" [anchors]=\"anchors\"></dbx-anchor-list>\n <span class=\"spacer\"></span>\n <ng-content select=\"[bottom]\"></ng-content>\n <div class=\"dbx-sidenav-nav-end\"></div>\n </mat-sidenav>\n <mat-sidenav-content>\n <ng-content></ng-content>\n </mat-sidenav-content>\n</mat-sidenav-container>\n" }]
|
|
1130
|
-
}], ctorParameters: function () { return [{ type: i1.DbxRouterTransitionService }, { type: i0.NgZone }, { type: DbxScreenMediaService }]; }, propDecorators: { anchors: [{
|
|
1648
|
+
}], ctorParameters: function () { return [{ type: i1$2.DbxRouterTransitionService }, { type: i0.NgZone }, { type: DbxScreenMediaService }]; }, propDecorators: { anchors: [{
|
|
1131
1649
|
type: Input
|
|
1132
1650
|
}], sidenav: [{
|
|
1133
1651
|
type: ViewChild,
|
|
@@ -1141,7 +1659,7 @@ class DbxSidenavButtonComponent {
|
|
|
1141
1659
|
constructor(parent) {
|
|
1142
1660
|
this.parent = parent;
|
|
1143
1661
|
this.mode$ = this.parent.mode$;
|
|
1144
|
-
this.showMenuButton$ = this.mode$.pipe(map
|
|
1662
|
+
this.showMenuButton$ = this.mode$.pipe(map(x => x === SideNavDisplayMode.MOBILE));
|
|
1145
1663
|
}
|
|
1146
1664
|
toggleNav() {
|
|
1147
1665
|
this.parent.toggleNav();
|
|
@@ -1152,7 +1670,7 @@ DbxSidenavButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
|
|
|
1152
1670
|
<button class="dbx-sidenav-button" mat-icon-button *ngIf="showMenuButton$ | async" (click)="toggleNav()" aria-label="open sidenav button">
|
|
1153
1671
|
<mat-icon>view_sidebar</mat-icon>
|
|
1154
1672
|
</button>
|
|
1155
|
-
`, isInline: true, components: [{ type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type:
|
|
1673
|
+
`, isInline: true, components: [{ type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i1$4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i3.AsyncPipe } });
|
|
1156
1674
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSidenavButtonComponent, decorators: [{
|
|
1157
1675
|
type: Component,
|
|
1158
1676
|
args: [{
|
|
@@ -1165,21 +1683,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
1165
1683
|
}]
|
|
1166
1684
|
}], ctorParameters: function () { return [{ type: DbxSidenavComponent }]; } });
|
|
1167
1685
|
|
|
1168
|
-
/**
|
|
1169
|
-
* Button spacer component.
|
|
1170
|
-
*/
|
|
1171
|
-
class DbxButtonSpacerComponent {
|
|
1172
|
-
}
|
|
1173
|
-
DbxButtonSpacerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonSpacerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1174
|
-
DbxButtonSpacerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxButtonSpacerComponent, selector: "dbx-button-spacer", ngImport: i0, template: `<span class="dbx-button-spacer"></span>`, isInline: true });
|
|
1175
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonSpacerComponent, decorators: [{
|
|
1176
|
-
type: Component,
|
|
1177
|
-
args: [{
|
|
1178
|
-
selector: 'dbx-button-spacer',
|
|
1179
|
-
template: `<span class="dbx-button-spacer"></span>`
|
|
1180
|
-
}]
|
|
1181
|
-
}] });
|
|
1182
|
-
|
|
1183
1686
|
/**
|
|
1184
1687
|
* Pre-configured pagebar used with DbxSidenavComponent.
|
|
1185
1688
|
*/
|
|
@@ -1195,7 +1698,7 @@ DbxSidenavPagebarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
|
|
|
1195
1698
|
</span>
|
|
1196
1699
|
<ng-content right></ng-content>
|
|
1197
1700
|
</dbx-pagebar>
|
|
1198
|
-
`, isInline: true, components: [{ type: DbxPagebarComponent, selector: "dbx-pagebar", inputs: ["color"] }, { type: DbxSidenavButtonComponent, selector: "dbx-sidenav-button" }, { type:
|
|
1701
|
+
`, isInline: true, components: [{ type: DbxPagebarComponent, selector: "dbx-pagebar", inputs: ["color"] }, { type: DbxSidenavButtonComponent, selector: "dbx-sidenav-button" }], directives: [{ type: DbxButtonSpacerDirective, selector: "dbx-button-spacer,dbxButtonSpacer" }] });
|
|
1199
1702
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSidenavPagebarComponent, decorators: [{
|
|
1200
1703
|
type: Component,
|
|
1201
1704
|
args: [{
|
|
@@ -1222,7 +1725,7 @@ class DbxSidenavPageComponent {
|
|
|
1222
1725
|
constructor(parent) {
|
|
1223
1726
|
this.parent = parent;
|
|
1224
1727
|
this._mobileOnly = new BehaviorSubject(false);
|
|
1225
|
-
this.hidePagebar$ = this._mobileOnly.pipe(switchMap((mobileOnly) => (mobileOnly) ? this.parent.mode$.pipe(map(x => x !== SideNavDisplayMode.MOBILE)) : of(true)), shareReplay(1));
|
|
1728
|
+
this.hidePagebar$ = this._mobileOnly.pipe(switchMap((mobileOnly) => (mobileOnly) ? this.parent.mode$.pipe(map$1(x => x !== SideNavDisplayMode.MOBILE)) : of(true)), shareReplay(1));
|
|
1226
1729
|
}
|
|
1227
1730
|
get mobileOnly() {
|
|
1228
1731
|
return this._mobileOnly.value;
|
|
@@ -1242,7 +1745,7 @@ DbxSidenavPageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
|
|
|
1242
1745
|
<ng-content></ng-content>
|
|
1243
1746
|
</div>
|
|
1244
1747
|
</div>
|
|
1245
|
-
`, isInline: true, components: [{ type: DbxSidenavPagebarComponent, selector: "dbx-sidenav-pagebar" }], directives: [{ type: i3
|
|
1748
|
+
`, isInline: true, components: [{ type: DbxSidenavPagebarComponent, selector: "dbx-sidenav-pagebar" }], directives: [{ type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "async": i3.AsyncPipe } });
|
|
1246
1749
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSidenavPageComponent, decorators: [{
|
|
1247
1750
|
type: Component,
|
|
1248
1751
|
args: [{
|
|
@@ -1265,125 +1768,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
1265
1768
|
type: Input
|
|
1266
1769
|
}] } });
|
|
1267
1770
|
|
|
1268
|
-
var DbxButtonDisplayType;
|
|
1269
|
-
(function (DbxButtonDisplayType) {
|
|
1270
|
-
DbxButtonDisplayType[DbxButtonDisplayType["RAISED"] = 0] = "RAISED";
|
|
1271
|
-
DbxButtonDisplayType[DbxButtonDisplayType["STROKED"] = 1] = "STROKED";
|
|
1272
|
-
DbxButtonDisplayType[DbxButtonDisplayType["FLAT"] = 2] = "FLAT";
|
|
1273
|
-
})(DbxButtonDisplayType || (DbxButtonDisplayType = {}));
|
|
1274
|
-
/**
|
|
1275
|
-
* Complex button that supports loading states.
|
|
1276
|
-
*/
|
|
1277
|
-
class DbxButtonComponent extends AbstractDbxButtonDirective {
|
|
1278
|
-
constructor() {
|
|
1279
|
-
super(...arguments);
|
|
1280
|
-
this.color = 'primary';
|
|
1281
|
-
}
|
|
1282
|
-
get raised() {
|
|
1283
|
-
return this.type === DbxButtonDisplayType.RAISED;
|
|
1284
|
-
}
|
|
1285
|
-
set raised(raised) {
|
|
1286
|
-
if (raised) {
|
|
1287
|
-
this.type = DbxButtonDisplayType.RAISED;
|
|
1288
|
-
}
|
|
1289
|
-
}
|
|
1290
|
-
get stroked() {
|
|
1291
|
-
return this.type === DbxButtonDisplayType.STROKED;
|
|
1292
|
-
}
|
|
1293
|
-
set stroked(stroked) {
|
|
1294
|
-
if (stroked) {
|
|
1295
|
-
this.type = DbxButtonDisplayType.STROKED;
|
|
1296
|
-
}
|
|
1297
|
-
}
|
|
1298
|
-
get flat() {
|
|
1299
|
-
return this.type === DbxButtonDisplayType.FLAT;
|
|
1300
|
-
}
|
|
1301
|
-
set flat(flat) {
|
|
1302
|
-
if (flat) {
|
|
1303
|
-
this.type = DbxButtonDisplayType.FLAT;
|
|
1304
|
-
}
|
|
1305
|
-
}
|
|
1306
|
-
get btnOptions() {
|
|
1307
|
-
const buttonIcon = (this.icon) ? {
|
|
1308
|
-
fontIcon: this.icon
|
|
1309
|
-
} : undefined;
|
|
1310
|
-
return {
|
|
1311
|
-
fab: false,
|
|
1312
|
-
active: this.working,
|
|
1313
|
-
buttonIcon,
|
|
1314
|
-
customClass: 'dbx-button ' + ((buttonIcon && !this.text) ? 'dbx-button-no-text' : ''),
|
|
1315
|
-
// buttonIcon: icon,
|
|
1316
|
-
text: this.text ?? '',
|
|
1317
|
-
buttonColor: this.color,
|
|
1318
|
-
barColor: 'accent',
|
|
1319
|
-
raised: this.raised,
|
|
1320
|
-
stroked: this.stroked,
|
|
1321
|
-
flat: this.flat,
|
|
1322
|
-
mode: 'indeterminate',
|
|
1323
|
-
spinnerSize: 18,
|
|
1324
|
-
spinnerColor: 'accent',
|
|
1325
|
-
// Only disabled if we're not working, in order to show the animation.
|
|
1326
|
-
disabled: !this.working && this.disabled
|
|
1327
|
-
};
|
|
1328
|
-
}
|
|
1329
|
-
}
|
|
1330
|
-
DbxButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1331
|
-
DbxButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxButtonComponent, selector: "dbx-button", inputs: { type: "type", raised: "raised", stroked: "stroked", flat: "flat", color: "color" }, providers: ProvideDbxButton(DbxButtonComponent), usesInheritance: true, ngImport: i0, template: `
|
|
1332
|
-
<mat-spinner-button class="page-button" (btnClick)="clickButton()" [options]="btnOptions"></mat-spinner-button>
|
|
1333
|
-
`, isInline: true, components: [{ type: i1$5.MatSpinnerButtonComponent, selector: "mat-spinner-button", inputs: ["options", "buttonId", "active", "disabled"], outputs: ["btnClick"] }] });
|
|
1334
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonComponent, decorators: [{
|
|
1335
|
-
type: Component,
|
|
1336
|
-
args: [{
|
|
1337
|
-
selector: 'dbx-button',
|
|
1338
|
-
template: `
|
|
1339
|
-
<mat-spinner-button class="page-button" (btnClick)="clickButton()" [options]="btnOptions"></mat-spinner-button>
|
|
1340
|
-
`,
|
|
1341
|
-
// TODO: styleUrls: ['./button.scss'],
|
|
1342
|
-
providers: ProvideDbxButton(DbxButtonComponent)
|
|
1343
|
-
}]
|
|
1344
|
-
}], propDecorators: { type: [{
|
|
1345
|
-
type: Input
|
|
1346
|
-
}], raised: [{
|
|
1347
|
-
type: Input
|
|
1348
|
-
}], stroked: [{
|
|
1349
|
-
type: Input
|
|
1350
|
-
}], flat: [{
|
|
1351
|
-
type: Input
|
|
1352
|
-
}], color: [{
|
|
1353
|
-
type: Input
|
|
1354
|
-
}] } });
|
|
1355
|
-
|
|
1356
|
-
class DbxButtonModule {
|
|
1357
|
-
}
|
|
1358
|
-
DbxButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1359
|
-
DbxButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonModule, declarations: [DbxButtonComponent,
|
|
1360
|
-
DbxButtonSpacerComponent], imports: [CommonModule,
|
|
1361
|
-
MatProgressButtonsModule], exports: [MatProgressButtonsModule,
|
|
1362
|
-
DbxButtonComponent,
|
|
1363
|
-
DbxButtonSpacerComponent] });
|
|
1364
|
-
DbxButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonModule, imports: [[
|
|
1365
|
-
CommonModule,
|
|
1366
|
-
MatProgressButtonsModule
|
|
1367
|
-
], MatProgressButtonsModule] });
|
|
1368
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonModule, decorators: [{
|
|
1369
|
-
type: NgModule,
|
|
1370
|
-
args: [{
|
|
1371
|
-
imports: [
|
|
1372
|
-
CommonModule,
|
|
1373
|
-
MatProgressButtonsModule
|
|
1374
|
-
],
|
|
1375
|
-
declarations: [
|
|
1376
|
-
DbxButtonComponent,
|
|
1377
|
-
DbxButtonSpacerComponent
|
|
1378
|
-
],
|
|
1379
|
-
exports: [
|
|
1380
|
-
MatProgressButtonsModule,
|
|
1381
|
-
DbxButtonComponent,
|
|
1382
|
-
DbxButtonSpacerComponent
|
|
1383
|
-
],
|
|
1384
|
-
}]
|
|
1385
|
-
}] });
|
|
1386
|
-
|
|
1387
1771
|
/**
|
|
1388
1772
|
* Section used to elevate content in a pre-configured manner.
|
|
1389
1773
|
*/
|
|
@@ -1649,7 +2033,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
1649
2033
|
class DbxAngularRouterSegueAnchorComponent extends AbstractDbxSegueAnchorDirective {
|
|
1650
2034
|
}
|
|
1651
2035
|
DbxAngularRouterSegueAnchorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxAngularRouterSegueAnchorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1652
|
-
DbxAngularRouterSegueAnchorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxAngularRouterSegueAnchorComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<a class=\"dbx-anchor-a dbx-anchor-sref\" [attr.target]=\"target$ | async\" [uiSref]=\"ref$ | async\"\n [uiParams]=\"refParams$ | async\" [uiOptions]=\"refOptions$ | async\">\n <dbx-injected-content></dbx-injected-content>\n</a>\n", components: [{ type: i1.DbxInjectedComponent, selector: "dbx-injected-content, [dbx-injected-content]", inputs: ["config", "template"] }], directives: [{ type: i2$1.AnchorUISref, selector: "a[uiSref]" }, { type: i2$1.UISref, selector: "[uiSref]", inputs: ["uiSref", "uiParams", "uiOptions"], exportAs: ["uiSref"] }], pipes: { "async": i3
|
|
2036
|
+
DbxAngularRouterSegueAnchorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxAngularRouterSegueAnchorComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<a class=\"dbx-anchor-a dbx-anchor-sref\" [attr.target]=\"target$ | async\" [uiSref]=\"ref$ | async\"\n [uiParams]=\"refParams$ | async\" [uiOptions]=\"refOptions$ | async\">\n <dbx-injected-content></dbx-injected-content>\n</a>\n", components: [{ type: i1$2.DbxInjectedComponent, selector: "dbx-injected-content, [dbx-injected-content]", inputs: ["config", "template"] }], directives: [{ type: i2$1.AnchorUISref, selector: "a[uiSref]" }, { type: i2$1.UISref, selector: "[uiSref]", inputs: ["uiSref", "uiParams", "uiOptions"], exportAs: ["uiSref"] }], pipes: { "async": i3.AsyncPipe } });
|
|
1653
2037
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxAngularRouterSegueAnchorComponent, decorators: [{
|
|
1654
2038
|
type: Component,
|
|
1655
2039
|
args: [{ template: "<a class=\"dbx-anchor-a dbx-anchor-sref\" [attr.target]=\"target$ | async\" [uiSref]=\"ref$ | async\"\n [uiParams]=\"refParams$ | async\" [uiOptions]=\"refOptions$ | async\">\n <dbx-injected-content></dbx-injected-content>\n</a>\n" }]
|
|
@@ -1700,7 +2084,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
1700
2084
|
class DbxUIRouterSegueAnchorComponent extends AbstractDbxSegueAnchorDirective {
|
|
1701
2085
|
}
|
|
1702
2086
|
DbxUIRouterSegueAnchorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxUIRouterSegueAnchorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1703
|
-
DbxUIRouterSegueAnchorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxUIRouterSegueAnchorComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<a class=\"dbx-anchor-a dbx-anchor-sref\" [attr.target]=\"target$ | async\" [uiSref]=\"ref$ | async\"\n [uiParams]=\"refParams$ | async\" [uiOptions]=\"refOptions$ | async\" uiSrefActive=\"dbx-anchor-active\" uiSrefActiveEq=\"dbx-anchor-active-eq\">\n <dbx-injected-content [template]=\"template$ | async\"></dbx-injected-content>\n</a>\n", components: [{ type: i1.DbxInjectedComponent, selector: "dbx-injected-content, [dbx-injected-content]", inputs: ["config", "template"] }], directives: [{ type: i2$1.AnchorUISref, selector: "a[uiSref]" }, { type: i2$1.UISrefActive, selector: "[uiSrefActive],[uiSrefActiveEq]", inputs: ["uiSrefActive", "uiSrefActiveEq"] }, { type: i2$1.UISrefStatus, selector: "[uiSrefStatus],[uiSrefActive],[uiSrefActiveEq]", outputs: ["uiSrefStatus"], exportAs: ["uiSrefStatus"] }, { type: i2$1.UISref, selector: "[uiSref]", inputs: ["uiSref", "uiParams", "uiOptions"], exportAs: ["uiSref"] }], pipes: { "async": i3
|
|
2087
|
+
DbxUIRouterSegueAnchorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxUIRouterSegueAnchorComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<a class=\"dbx-anchor-a dbx-anchor-sref\" [attr.target]=\"target$ | async\" [uiSref]=\"ref$ | async\"\n [uiParams]=\"refParams$ | async\" [uiOptions]=\"refOptions$ | async\" uiSrefActive=\"dbx-anchor-active\" uiSrefActiveEq=\"dbx-anchor-active-eq\">\n <dbx-injected-content [template]=\"template$ | async\"></dbx-injected-content>\n</a>\n", components: [{ type: i1$2.DbxInjectedComponent, selector: "dbx-injected-content, [dbx-injected-content]", inputs: ["config", "template"] }], directives: [{ type: i2$1.AnchorUISref, selector: "a[uiSref]" }, { type: i2$1.UISrefActive, selector: "[uiSrefActive],[uiSrefActiveEq]", inputs: ["uiSrefActive", "uiSrefActiveEq"] }, { type: i2$1.UISrefStatus, selector: "[uiSrefStatus],[uiSrefActive],[uiSrefActiveEq]", outputs: ["uiSrefStatus"], exportAs: ["uiSrefStatus"] }, { type: i2$1.UISref, selector: "[uiSref]", inputs: ["uiSref", "uiParams", "uiOptions"], exportAs: ["uiSref"] }], pipes: { "async": i3.AsyncPipe } });
|
|
1704
2088
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxUIRouterSegueAnchorComponent, decorators: [{
|
|
1705
2089
|
type: Component,
|
|
1706
2090
|
args: [{ template: "<a class=\"dbx-anchor-a dbx-anchor-sref\" [attr.target]=\"target$ | async\" [uiSref]=\"ref$ | async\"\n [uiParams]=\"refParams$ | async\" [uiOptions]=\"refOptions$ | async\" uiSrefActive=\"dbx-anchor-active\" uiSrefActiveEq=\"dbx-anchor-active-eq\">\n <dbx-injected-content [template]=\"template$ | async\"></dbx-injected-content>\n</a>\n" }]
|
|
@@ -1776,7 +2160,7 @@ DbxTwoBlocksComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
1776
2160
|
<ng-content></ng-content>
|
|
1777
2161
|
</div>
|
|
1778
2162
|
</div>
|
|
1779
|
-
`, isInline: true, directives: [{ type: i1$
|
|
2163
|
+
`, isInline: true, directives: [{ type: i1$8.ResizedDirective, selector: "[resized]", outputs: ["resized"] }] });
|
|
1780
2164
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxTwoBlocksComponent, decorators: [{
|
|
1781
2165
|
type: Component,
|
|
1782
2166
|
args: [{
|
|
@@ -1847,7 +2231,7 @@ DbxCardBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
|
|
|
1847
2231
|
<ng-content></ng-content>
|
|
1848
2232
|
</div>
|
|
1849
2233
|
</div>
|
|
1850
|
-
`, isInline: true, components: [{ type:
|
|
2234
|
+
`, isInline: true, components: [{ type: i1$4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1851
2235
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxCardBoxComponent, decorators: [{
|
|
1852
2236
|
type: Component,
|
|
1853
2237
|
args: [{
|
|
@@ -1937,23 +2321,23 @@ class TwoColumnsContextStore extends ComponentStore {
|
|
|
1937
2321
|
/**
|
|
1938
2322
|
* Pipes the current state of showRight.
|
|
1939
2323
|
*/
|
|
1940
|
-
this.showRight$ = this.state$.pipe(map
|
|
2324
|
+
this.showRight$ = this.state$.pipe(map((x) => x.showRight));
|
|
1941
2325
|
/**
|
|
1942
2326
|
* Convenience function for the showRight compliment.
|
|
1943
2327
|
*/
|
|
1944
|
-
this.hideRight$ = this.state$.pipe(map
|
|
2328
|
+
this.hideRight$ = this.state$.pipe(map((x) => !x.showRight));
|
|
1945
2329
|
/**
|
|
1946
2330
|
* Pipes the current state of fullLeft.
|
|
1947
2331
|
*/
|
|
1948
|
-
this.fullLeft$ = this.state$.pipe(map
|
|
2332
|
+
this.fullLeft$ = this.state$.pipe(map((x) => x.fullLeft));
|
|
1949
2333
|
/**
|
|
1950
2334
|
* Whether or not to show the full left.
|
|
1951
2335
|
*/
|
|
1952
|
-
this.showFullLeft$ = this.state$.pipe(map
|
|
2336
|
+
this.showFullLeft$ = this.state$.pipe(map((x) => !x.showRight && x.fullLeft));
|
|
1953
2337
|
/**
|
|
1954
2338
|
* Pipes the current backRef value.
|
|
1955
2339
|
*/
|
|
1956
|
-
this.backRef$ = this.state$.pipe(map
|
|
2340
|
+
this.backRef$ = this.state$.pipe(map((x) => x.backRef), distinct());
|
|
1957
2341
|
/**
|
|
1958
2342
|
* Emits back events.
|
|
1959
2343
|
*/
|
|
@@ -2046,7 +2430,7 @@ class DbxTwoColumnsComponent {
|
|
|
2046
2430
|
}
|
|
2047
2431
|
}
|
|
2048
2432
|
DbxTwoColumnsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxTwoColumnsComponent, deps: [{ token: TwoColumnsContextStore }], target: i0.ɵɵFactoryTarget.Component });
|
|
2049
|
-
DbxTwoColumnsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxTwoColumnsComponent, selector: "dbx-two-columns", inputs: { reverseSizing: "reverseSizing", inSectionPage: "inSectionPage" }, exportAs: ["columns"], ngImport: i0, template: "<div class=\"two-column\" [ngClass]=\"{ 'two-column-reverse-sizing': reverseSizing, 'right-shown': showRight$ | async, 'full-left': (showFullLeft$ | async), 'dbx-section-page-two': inSectionPage }\">\n <div class=\"left-column\">\n <ng-content select=\"[left]\"></ng-content>\n </div>\n <div class=\"right-column\" *ngIf=\"showRight$ | async\">\n <!-- NOTE: This will only hide the content project. Be sure to use *ngIf separately on the right's content if needed. -->\n <!-- https://github.com/angular/angular/issues/17983 -->\n <ng-content select=\"[right]\"></ng-content>\n </div>\n</div>\n", directives: [{ type: i3
|
|
2433
|
+
DbxTwoColumnsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxTwoColumnsComponent, selector: "dbx-two-columns", inputs: { reverseSizing: "reverseSizing", inSectionPage: "inSectionPage" }, exportAs: ["columns"], ngImport: i0, template: "<div class=\"two-column\" [ngClass]=\"{ 'two-column-reverse-sizing': reverseSizing, 'right-shown': showRight$ | async, 'full-left': (showFullLeft$ | async), 'dbx-section-page-two': inSectionPage }\">\n <div class=\"left-column\">\n <ng-content select=\"[left]\"></ng-content>\n </div>\n <div class=\"right-column\" *ngIf=\"showRight$ | async\">\n <!-- NOTE: This will only hide the content project. Be sure to use *ngIf separately on the right's content if needed. -->\n <!-- https://github.com/angular/angular/issues/17983 -->\n <ng-content select=\"[right]\"></ng-content>\n </div>\n</div>\n", directives: [{ type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i3.AsyncPipe } });
|
|
2050
2434
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxTwoColumnsComponent, decorators: [{
|
|
2051
2435
|
type: Component,
|
|
2052
2436
|
args: [{ selector: 'dbx-two-columns', exportAs: 'columns', template: "<div class=\"two-column\" [ngClass]=\"{ 'two-column-reverse-sizing': reverseSizing, 'right-shown': showRight$ | async, 'full-left': (showFullLeft$ | async), 'dbx-section-page-two': inSectionPage }\">\n <div class=\"left-column\">\n <ng-content select=\"[left]\"></ng-content>\n </div>\n <div class=\"right-column\" *ngIf=\"showRight$ | async\">\n <!-- NOTE: This will only hide the content project. Be sure to use *ngIf separately on the right's content if needed. -->\n <!-- https://github.com/angular/angular/issues/17983 -->\n <ng-content select=\"[right]\"></ng-content>\n </div>\n</div>\n" }]
|
|
@@ -2104,7 +2488,7 @@ DbxTwoColumnsColumnHeadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion:
|
|
|
2104
2488
|
<div class="dbx-two-columns-head" [ngClass]="{ 'block': block, 'full': full }">
|
|
2105
2489
|
<ng-content></ng-content>
|
|
2106
2490
|
</div>
|
|
2107
|
-
`, isInline: true, directives: [{ type: i3
|
|
2491
|
+
`, isInline: true, directives: [{ type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
2108
2492
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxTwoColumnsColumnHeadComponent, decorators: [{
|
|
2109
2493
|
type: Component,
|
|
2110
2494
|
args: [{
|
|
@@ -2160,8 +2544,8 @@ class DbxTwoColumnsRightComponent {
|
|
|
2160
2544
|
this._showBack = new BehaviorSubject(true);
|
|
2161
2545
|
this.ref$ = this.twoColumnsContextStore.backRef$;
|
|
2162
2546
|
this.showBack$ = combineLatest([
|
|
2163
|
-
this._showBack, this.ref$.pipe(map
|
|
2164
|
-
]).pipe(map
|
|
2547
|
+
this._showBack, this.ref$.pipe(map((x) => !Boolean(x))) // TODO: Is this correct? Show back if ref is not defined?
|
|
2548
|
+
]).pipe(map(([a, b]) => a && b));
|
|
2165
2549
|
}
|
|
2166
2550
|
ngAfterViewInit() {
|
|
2167
2551
|
setTimeout(() => {
|
|
@@ -2182,7 +2566,7 @@ class DbxTwoColumnsRightComponent {
|
|
|
2182
2566
|
}
|
|
2183
2567
|
}
|
|
2184
2568
|
DbxTwoColumnsRightComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxTwoColumnsRightComponent, deps: [{ token: TwoColumnsContextStore }], target: i0.ɵɵFactoryTarget.Component });
|
|
2185
|
-
DbxTwoColumnsRightComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxTwoColumnsRightComponent, selector: "dbx-two-columns-right", inputs: { header: "header", showBack: "showBack" }, ngImport: i0, template: "<div class=\"two-columns-right\">\n <dbx-two-columns-head>\n <!-- Back Buttons -->\n <ng-container *ngIf=\"showBack$ | async\">\n <button mat-icon-button class=\"back-button\" (click)=\"backClicked()\" aria-label=\"back button\">\n <mat-icon>navigate_before</mat-icon>\n </button>\n </ng-container>\n <ng-container *ngIf=\"ref$ | async\">\n <dbx-anchor [anchor]=\"ref$ | async\">\n <button mat-icon-button class=\"back-button\" aria-label=\"back button\">\n <mat-icon>navigate_before</mat-icon>\n </button>\n </dbx-anchor>\n </ng-container>\n <span *ngIf=\"header\" class=\"right-nav-title\">{{ header }}</span>\n <span class=\"right-nav-spacer\"></span>\n <span class=\"spacer\"></span>\n <ng-content select=\"[nav]\"></ng-content>\n </dbx-two-columns-head>\n <div class=\"two-columns-right-content\">\n <ng-content></ng-content>\n </div>\n</div>\n", components: [{ type: DbxTwoColumnsColumnHeadComponent, selector: "dbx-two-columns-head", inputs: ["block", "full"] }, { type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type:
|
|
2569
|
+
DbxTwoColumnsRightComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxTwoColumnsRightComponent, selector: "dbx-two-columns-right", inputs: { header: "header", showBack: "showBack" }, ngImport: i0, template: "<div class=\"two-columns-right\">\n <dbx-two-columns-head>\n <!-- Back Buttons -->\n <ng-container *ngIf=\"showBack$ | async\">\n <button mat-icon-button class=\"back-button\" (click)=\"backClicked()\" aria-label=\"back button\">\n <mat-icon>navigate_before</mat-icon>\n </button>\n </ng-container>\n <ng-container *ngIf=\"ref$ | async\">\n <dbx-anchor [anchor]=\"ref$ | async\">\n <button mat-icon-button class=\"back-button\" aria-label=\"back button\">\n <mat-icon>navigate_before</mat-icon>\n </button>\n </dbx-anchor>\n </ng-container>\n <span *ngIf=\"header\" class=\"right-nav-title\">{{ header }}</span>\n <span class=\"right-nav-spacer\"></span>\n <span class=\"spacer\"></span>\n <ng-content select=\"[nav]\"></ng-content>\n </dbx-two-columns-head>\n <div class=\"two-columns-right-content\">\n <ng-content></ng-content>\n </div>\n</div>\n", components: [{ type: DbxTwoColumnsColumnHeadComponent, selector: "dbx-two-columns-head", inputs: ["block", "full"] }, { type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i1$4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: DbxAnchorComponent, selector: "dbx-anchor, [dbx-anchor]", inputs: ["block"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i3.AsyncPipe } });
|
|
2186
2570
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxTwoColumnsRightComponent, decorators: [{
|
|
2187
2571
|
type: Component,
|
|
2188
2572
|
args: [{ selector: 'dbx-two-columns-right', template: "<div class=\"two-columns-right\">\n <dbx-two-columns-head>\n <!-- Back Buttons -->\n <ng-container *ngIf=\"showBack$ | async\">\n <button mat-icon-button class=\"back-button\" (click)=\"backClicked()\" aria-label=\"back button\">\n <mat-icon>navigate_before</mat-icon>\n </button>\n </ng-container>\n <ng-container *ngIf=\"ref$ | async\">\n <dbx-anchor [anchor]=\"ref$ | async\">\n <button mat-icon-button class=\"back-button\" aria-label=\"back button\">\n <mat-icon>navigate_before</mat-icon>\n </button>\n </dbx-anchor>\n </ng-container>\n <span *ngIf=\"header\" class=\"right-nav-title\">{{ header }}</span>\n <span class=\"right-nav-spacer\"></span>\n <span class=\"spacer\"></span>\n <ng-content select=\"[nav]\"></ng-content>\n </dbx-two-columns-head>\n <div class=\"two-columns-right-content\">\n <ng-content></ng-content>\n </div>\n</div>\n" }]
|
|
@@ -2345,7 +2729,7 @@ function compactModeFromInput(input) {
|
|
|
2345
2729
|
}
|
|
2346
2730
|
function mapCompactModeObs(mode$, config) {
|
|
2347
2731
|
const modeObs = mode$ ?? of(config.defaultMode ?? CompactMode.FULL);
|
|
2348
|
-
return modeObs.pipe(map
|
|
2732
|
+
return modeObs.pipe(map((inputMode) => {
|
|
2349
2733
|
const isCompact = ((inputMode ?? config.defaultMode) === CompactMode.COMPACT);
|
|
2350
2734
|
if (isCompact) {
|
|
2351
2735
|
return config.compact;
|
|
@@ -2360,7 +2744,7 @@ class CompactContextStore extends ComponentStore {
|
|
|
2360
2744
|
constructor() {
|
|
2361
2745
|
super({ mode: CompactMode.FULL });
|
|
2362
2746
|
// MARK: Accessors
|
|
2363
|
-
this.mode$ = this.state$.pipe(map
|
|
2747
|
+
this.mode$ = this.state$.pipe(map(x => x.mode));
|
|
2364
2748
|
this.setMode = this.updater((state, mode) => ({ mode: compactModeFromInput(mode) }));
|
|
2365
2749
|
}
|
|
2366
2750
|
}
|
|
@@ -2436,7 +2820,7 @@ DbxFlagComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
|
|
|
2436
2820
|
<ng-content></ng-content>
|
|
2437
2821
|
</mat-toolbar>
|
|
2438
2822
|
</div>
|
|
2439
|
-
`, isInline: true, components: [{ type: i1$
|
|
2823
|
+
`, isInline: true, components: [{ type: i1$5.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }] });
|
|
2440
2824
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxFlagComponent, decorators: [{
|
|
2441
2825
|
type: Component,
|
|
2442
2826
|
args: [{
|
|
@@ -2533,7 +2917,7 @@ class DbxFlexGroupDirective extends AbstractSubscriptionDirective {
|
|
|
2533
2917
|
this.relative = false;
|
|
2534
2918
|
this._small = false;
|
|
2535
2919
|
this._breakpoint = new BehaviorSubject('tablet');
|
|
2536
|
-
this.isSmallScreen$ = this._dbxScreenMediaService.isBreakpointActive(this._breakpoint).pipe(map(x => !x), distinctUntilChanged(), shareReplay(1));
|
|
2920
|
+
this.isSmallScreen$ = this._dbxScreenMediaService.isBreakpointActive(this._breakpoint).pipe(map$1(x => !x), distinctUntilChanged(), shareReplay(1));
|
|
2537
2921
|
}
|
|
2538
2922
|
get small() {
|
|
2539
2923
|
return this._small;
|
|
@@ -2635,7 +3019,7 @@ DbxIconItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
2635
3019
|
</div>
|
|
2636
3020
|
</div>
|
|
2637
3021
|
</div>
|
|
2638
|
-
`, isInline: true, components: [{ type:
|
|
3022
|
+
`, isInline: true, components: [{ type: i1$4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
2639
3023
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxIconItemComponent, decorators: [{
|
|
2640
3024
|
type: Component,
|
|
2641
3025
|
args: [{
|
|
@@ -2742,7 +3126,7 @@ DbxLoadingProgressComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.
|
|
|
2742
3126
|
</ng-container>
|
|
2743
3127
|
<div *ngIf="text" class="hint">{{ text }}</div>
|
|
2744
3128
|
</div>
|
|
2745
|
-
`, isInline: true, components: [{ type: i1$
|
|
3129
|
+
`, isInline: true, components: [{ type: i1$9.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { type: i2$2.MatProgressSpinner, selector: "mat-progress-spinner", inputs: ["color", "diameter", "strokeWidth", "mode", "value"], exportAs: ["matProgressSpinner"] }], directives: [{ type: i3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i3.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
2746
3130
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxLoadingProgressComponent, decorators: [{
|
|
2747
3131
|
type: Component,
|
|
2748
3132
|
args: [{
|
|
@@ -2788,7 +3172,7 @@ class DbxReadableErrorComponent {
|
|
|
2788
3172
|
}
|
|
2789
3173
|
}
|
|
2790
3174
|
DbxReadableErrorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxReadableErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2791
|
-
DbxReadableErrorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxReadableErrorComponent, selector: "dbx-error", inputs: { error: "error" }, ngImport: i0, template: "<div *ngIf=\"error\" class=\"dbx-error\">\n <h4>An error occured.</h4>\n <!-- <p class=\"dbx-error-code\" *ngIf=\"errorData.code\">{{ errorData.code }}</p> -->\n <p class=\"dbx-error-message\" *ngIf=\"message\">{{ message }}</p>\n</div>\n", directives: [{ type: i3
|
|
3175
|
+
DbxReadableErrorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxReadableErrorComponent, selector: "dbx-error", inputs: { error: "error" }, ngImport: i0, template: "<div *ngIf=\"error\" class=\"dbx-error\">\n <h4>An error occured.</h4>\n <!-- <p class=\"dbx-error-code\" *ngIf=\"errorData.code\">{{ errorData.code }}</p> -->\n <p class=\"dbx-error-message\" *ngIf=\"message\">{{ message }}</p>\n</div>\n", directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
2792
3176
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxReadableErrorComponent, decorators: [{
|
|
2793
3177
|
type: Component,
|
|
2794
3178
|
args: [{ selector: 'dbx-error', template: "<div *ngIf=\"error\" class=\"dbx-error\">\n <h4>An error occured.</h4>\n <!-- <p class=\"dbx-error-code\" *ngIf=\"errorData.code\">{{ errorData.code }}</p> -->\n <p class=\"dbx-error-message\" *ngIf=\"message\">{{ message }}</p>\n</div>\n" }]
|
|
@@ -2816,7 +3200,7 @@ class DbxBasicLoadingComponent {
|
|
|
2816
3200
|
this._error = new BehaviorSubject(undefined);
|
|
2817
3201
|
this._customErrorContent = new BehaviorSubject(undefined);
|
|
2818
3202
|
this._customLoadingContent = new BehaviorSubject(undefined);
|
|
2819
|
-
this.state$ = combineLatest([this._loading, this._show, this._error]).pipe(map(([loading, show, error]) => {
|
|
3203
|
+
this.state$ = combineLatest([this._loading, this._show, this._error]).pipe(map$1(([loading, show, error]) => {
|
|
2820
3204
|
let state;
|
|
2821
3205
|
if (error) {
|
|
2822
3206
|
state = LoadingComponentState.ERROR;
|
|
@@ -2833,8 +3217,8 @@ class DbxBasicLoadingComponent {
|
|
|
2833
3217
|
return state;
|
|
2834
3218
|
}), distinctUntilChanged(), startWith(LoadingComponentState.NONE), shareReplay(1));
|
|
2835
3219
|
this.error$ = this._error.asObservable();
|
|
2836
|
-
this.hasNoCustomError$ = this._customErrorContent.pipe(map(x => !checkNgContentWrapperHasContent(x)));
|
|
2837
|
-
this.hasNoCustomLoading$ = this._customLoadingContent.pipe(map(x => !checkNgContentWrapperHasContent(x)));
|
|
3220
|
+
this.hasNoCustomError$ = this._customErrorContent.pipe(map$1(x => !checkNgContentWrapperHasContent(x)));
|
|
3221
|
+
this.hasNoCustomLoading$ = this._customLoadingContent.pipe(map$1(x => !checkNgContentWrapperHasContent(x)));
|
|
2838
3222
|
this.mode = 'indeterminate';
|
|
2839
3223
|
this.color = 'primary';
|
|
2840
3224
|
this.linear = false;
|
|
@@ -2876,7 +3260,7 @@ class DbxBasicLoadingComponent {
|
|
|
2876
3260
|
}
|
|
2877
3261
|
}
|
|
2878
3262
|
DbxBasicLoadingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxBasicLoadingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2879
|
-
DbxBasicLoadingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxBasicLoadingComponent, selector: "dbx-basic-loading", inputs: { diameter: "diameter", mode: "mode", color: "color", text: "text", linear: "linear", show: "show", loading: "loading", error: "error" }, viewQueries: [{ propertyName: "customErrorContent", first: true, predicate: ["customError"], descendants: true }, { propertyName: "customLoadingContent", first: true, predicate: ["customLoading"], descendants: true }], ngImport: i0, template: "<ng-container [ngSwitch]=\"state$ | async\">\n <ng-container *ngSwitchCase=\"0\">\n <!-- Loading -->\n <ng-container *ngTemplateOutlet=\"loadingTemplate\"></ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"1\">\n <!-- Content -->\n <ng-content></ng-content>\n </ng-container>\n <ng-container *ngSwitchCase=\"2\">\n <!-- Error -->\n <ng-container *ngTemplateOutlet=\"errorTemplate\"></ng-container>\n </ng-container>\n</ng-container>\n\n<ng-template #loadingTemplate>\n <dbx-loading-progress *ngIf=\"hasNoCustomLoading$ | async\" [mode]=\"mode\" [color]=\"color\" [text]=\"text\"\n [linear]=\"linear\" [diameter]=\"diameter\"></dbx-loading-progress>\n <div #customLoading>\n <ng-content select=\"[loading]\"></ng-content>\n </div>\n</ng-template>\n\n<ng-template #errorTemplate>\n <dbx-error *ngIf=\"hasNoCustomError$ | async\" [error]=\"error$ | async\"></dbx-error>\n <div #customError>\n <ng-content select=\"[error]\"></ng-content>\n </div>\n <ng-content select=\"[errorAction]\"></ng-content>\n</ng-template>\n", components: [{ type: DbxLoadingProgressComponent, selector: "dbx-loading-progress", inputs: ["text", "linear", "mode", "color", "value", "bufferValue", "diameter"] }, { type: DbxReadableErrorComponent, selector: "dbx-error", inputs: ["error"] }], directives: [{ type: i3
|
|
3263
|
+
DbxBasicLoadingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxBasicLoadingComponent, selector: "dbx-basic-loading", inputs: { diameter: "diameter", mode: "mode", color: "color", text: "text", linear: "linear", show: "show", loading: "loading", error: "error" }, viewQueries: [{ propertyName: "customErrorContent", first: true, predicate: ["customError"], descendants: true }, { propertyName: "customLoadingContent", first: true, predicate: ["customLoading"], descendants: true }], ngImport: i0, template: "<ng-container [ngSwitch]=\"state$ | async\">\n <ng-container *ngSwitchCase=\"0\">\n <!-- Loading -->\n <ng-container *ngTemplateOutlet=\"loadingTemplate\"></ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"1\">\n <!-- Content -->\n <ng-content></ng-content>\n </ng-container>\n <ng-container *ngSwitchCase=\"2\">\n <!-- Error -->\n <ng-container *ngTemplateOutlet=\"errorTemplate\"></ng-container>\n </ng-container>\n</ng-container>\n\n<ng-template #loadingTemplate>\n <dbx-loading-progress *ngIf=\"hasNoCustomLoading$ | async\" [mode]=\"mode\" [color]=\"color\" [text]=\"text\"\n [linear]=\"linear\" [diameter]=\"diameter\"></dbx-loading-progress>\n <div #customLoading>\n <ng-content select=\"[loading]\"></ng-content>\n </div>\n</ng-template>\n\n<ng-template #errorTemplate>\n <dbx-error *ngIf=\"hasNoCustomError$ | async\" [error]=\"error$ | async\"></dbx-error>\n <div #customError>\n <ng-content select=\"[error]\"></ng-content>\n </div>\n <ng-content select=\"[errorAction]\"></ng-content>\n</ng-template>\n", components: [{ type: DbxLoadingProgressComponent, selector: "dbx-loading-progress", inputs: ["text", "linear", "mode", "color", "value", "bufferValue", "diameter"] }, { type: DbxReadableErrorComponent, selector: "dbx-error", inputs: ["error"] }], directives: [{ type: i3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i3.AsyncPipe } });
|
|
2880
3264
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxBasicLoadingComponent, decorators: [{
|
|
2881
3265
|
type: Component,
|
|
2882
3266
|
args: [{ selector: 'dbx-basic-loading', template: "<ng-container [ngSwitch]=\"state$ | async\">\n <ng-container *ngSwitchCase=\"0\">\n <!-- Loading -->\n <ng-container *ngTemplateOutlet=\"loadingTemplate\"></ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"1\">\n <!-- Content -->\n <ng-content></ng-content>\n </ng-container>\n <ng-container *ngSwitchCase=\"2\">\n <!-- Error -->\n <ng-container *ngTemplateOutlet=\"errorTemplate\"></ng-container>\n </ng-container>\n</ng-container>\n\n<ng-template #loadingTemplate>\n <dbx-loading-progress *ngIf=\"hasNoCustomLoading$ | async\" [mode]=\"mode\" [color]=\"color\" [text]=\"text\"\n [linear]=\"linear\" [diameter]=\"diameter\"></dbx-loading-progress>\n <div #customLoading>\n <ng-content select=\"[loading]\"></ng-content>\n </div>\n</ng-template>\n\n<ng-template #errorTemplate>\n <dbx-error *ngIf=\"hasNoCustomError$ | async\" [error]=\"error$ | async\"></dbx-error>\n <div #customError>\n <ng-content select=\"[error]\"></ng-content>\n </div>\n <ng-content select=\"[errorAction]\"></ng-content>\n</ng-template>\n" }]
|
|
@@ -2912,7 +3296,7 @@ class DbxLoadingComponent {
|
|
|
2912
3296
|
this._context = new BehaviorSubject(undefined);
|
|
2913
3297
|
this._inputLoading = new BehaviorSubject(true);
|
|
2914
3298
|
this._inputError = new BehaviorSubject(undefined);
|
|
2915
|
-
this.state$ = combineLatest([this._inputLoading, this._inputError, this._context.pipe(switchMap(x => (x != null) ? x.stream$ : of(undefined)))]).pipe(map(([inputLoading, inputError, loadingState]) => {
|
|
3299
|
+
this.state$ = combineLatest([this._inputLoading, this._inputError, this._context.pipe(switchMap(x => (x != null) ? x.stream$ : of(undefined)))]).pipe(map$1(([inputLoading, inputError, loadingState]) => {
|
|
2916
3300
|
if (loadingState) {
|
|
2917
3301
|
return loadingState;
|
|
2918
3302
|
}
|
|
@@ -2923,8 +3307,8 @@ class DbxLoadingComponent {
|
|
|
2923
3307
|
};
|
|
2924
3308
|
}
|
|
2925
3309
|
}), distinctUntilChanged((a, b) => a.loading === b.loading && a.error === b.error), shareReplay(1));
|
|
2926
|
-
this.loading$ = this.state$.pipe(map(x => x.loading), distinctUntilChanged(), shareReplay(1));
|
|
2927
|
-
this.error$ = this.state$.pipe(map(x => x.error), distinctUntilChanged(), shareReplay(1));
|
|
3310
|
+
this.loading$ = this.state$.pipe(map$1(x => x.loading), distinctUntilChanged(), shareReplay(1));
|
|
3311
|
+
this.error$ = this.state$.pipe(map$1(x => x.error), distinctUntilChanged(), shareReplay(1));
|
|
2928
3312
|
this.mode = 'indeterminate';
|
|
2929
3313
|
this.color = 'primary';
|
|
2930
3314
|
}
|
|
@@ -2960,7 +3344,7 @@ DbxLoadingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
|
|
|
2960
3344
|
<ng-content error select="[error]"></ng-content>
|
|
2961
3345
|
<ng-content errorAction select="[errorAction]"></ng-content>
|
|
2962
3346
|
</dbx-basic-loading>
|
|
2963
|
-
`, isInline: true, components: [{ type: DbxBasicLoadingComponent, selector: "dbx-basic-loading", inputs: ["diameter", "mode", "color", "text", "linear", "show", "loading", "error"] }], pipes: { "async": i3
|
|
3347
|
+
`, isInline: true, components: [{ type: DbxBasicLoadingComponent, selector: "dbx-basic-loading", inputs: ["diameter", "mode", "color", "text", "linear", "show", "loading", "error"] }], pipes: { "async": i3.AsyncPipe } });
|
|
2964
3348
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxLoadingComponent, decorators: [{
|
|
2965
3349
|
type: Component,
|
|
2966
3350
|
args: [{
|
|
@@ -3020,16 +3404,16 @@ class DbxListComponent {
|
|
|
3020
3404
|
this.context = new ListLoadingStateContextInstance({ showLoadingOnNoValue: false });
|
|
3021
3405
|
this.isEmpty$ = this.context.isEmpty$;
|
|
3022
3406
|
this.disabled$ = this._disabled.asObservable();
|
|
3023
|
-
this.hideOnEmpty$ = this._config.pipe(filterMaybe(), map(x => Boolean(x.hideOnEmpty)), distinctUntilChanged(), shareReplay(1));
|
|
3024
|
-
this.invertedList$ = this._config.pipe(filterMaybe(), map(x => Boolean(x?.throttle)), distinctUntilChanged(), shareReplay(1));
|
|
3025
|
-
this.throttleScroll$ = this._config.pipe(map(x => (x?.throttle) ?? this.DEFAULT_THROTTLE_SCROLL), distinctUntilChanged(), shareReplay(1));
|
|
3026
|
-
this.scrollDistance$ = this._config.pipe(map(x => (x?.scrollDistance) ?? this.DEFAULT_SCROLL_DISTANCE), distinctUntilChanged(), shareReplay(1));
|
|
3407
|
+
this.hideOnEmpty$ = this._config.pipe(filterMaybe(), map$1(x => Boolean(x.hideOnEmpty)), distinctUntilChanged(), shareReplay(1));
|
|
3408
|
+
this.invertedList$ = this._config.pipe(filterMaybe(), map$1(x => Boolean(x?.throttle)), distinctUntilChanged(), shareReplay(1));
|
|
3409
|
+
this.throttleScroll$ = this._config.pipe(map$1(x => (x?.throttle) ?? this.DEFAULT_THROTTLE_SCROLL), distinctUntilChanged(), shareReplay(1));
|
|
3410
|
+
this.scrollDistance$ = this._config.pipe(map$1(x => (x?.scrollDistance) ?? this.DEFAULT_SCROLL_DISTANCE), distinctUntilChanged(), shareReplay(1));
|
|
3027
3411
|
this.scrollLoadMoreTrigger$ = this._config.pipe(switchMap((config) => {
|
|
3028
3412
|
const loadNextDirection = config?.invertedList ? 'up' : 'down';
|
|
3029
|
-
return this._scrollTrigger.pipe(filter(x => x === loadNextDirection));
|
|
3413
|
+
return this._scrollTrigger.pipe(filter$1(x => x === loadNextDirection));
|
|
3030
3414
|
}));
|
|
3031
3415
|
this.loadMore$ = merge(this.scrollLoadMoreTrigger$, this._loadMoreTrigger);
|
|
3032
|
-
this.injectedComponentConfig$ = this._config.pipe(distinctUntilChanged(), map((config) => {
|
|
3416
|
+
this.injectedComponentConfig$ = this._config.pipe(distinctUntilChanged(), map$1((config) => {
|
|
3033
3417
|
let injectedComponentConfig;
|
|
3034
3418
|
if (config) {
|
|
3035
3419
|
const { componentClass, init, onClick, onSelectionChange, loadMore } = config;
|
|
@@ -3079,7 +3463,7 @@ class DbxListComponent {
|
|
|
3079
3463
|
}
|
|
3080
3464
|
return injectedComponentConfig;
|
|
3081
3465
|
}), distinctUntilChanged(), shareReplay(1));
|
|
3082
|
-
this.hideContent$ = this.context.stateChange$.pipe(switchMap(() => this.context.state$.pipe(filter((x) => loadingStateHasFinishedLoading(x)), first(), startWith(beginLoading()))), switchMap((state) => {
|
|
3466
|
+
this.hideContent$ = this.context.stateChange$.pipe(switchMap(() => this.context.state$.pipe(filter$1((x) => loadingStateHasFinishedLoading(x)), first(), startWith(beginLoading()))), switchMap((state) => {
|
|
3083
3467
|
if (state?.loading) {
|
|
3084
3468
|
return of(true);
|
|
3085
3469
|
}
|
|
@@ -3166,7 +3550,7 @@ class DbxListComponent {
|
|
|
3166
3550
|
}
|
|
3167
3551
|
}
|
|
3168
3552
|
DbxListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxListComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
3169
|
-
DbxListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxListComponent, selector: "dbx-list", inputs: { padded: "padded", state$: "state$", config: "config", disabled: "disabled" }, outputs: { contentScrolled: "contentScrolled" }, host: { properties: { "class.dbx-list-padded": "padded" }, classAttribute: "d-block dbx-list" }, ngImport: i0, template: "<dbx-loading [context]=\"context\" [linear]=\"true\"></dbx-loading>\n<div dbx-list-internal-content infinite-scroll [infiniteScrollDistance]=\"(scrollDistance$ | async) ?? DEFAULT_SCROLL_DISTANCE\"\n [infiniteScrollUpDistance]=\"(scrollDistance$ | async) ?? DEFAULT_SCROLL_DISTANCE\" [hide]=\"hideContent$ | async\"\n [infiniteScrollThrottle]=\"(throttleScroll$ | async) ?? DEFAULT_THROTTLE_SCROLL\" [scrollWindow]=\"false\"\n (scrolled)=\"onScrollDown()\" (scrolledUp)=\"onScrollUp()\">\n <ng-content select=\"[top]\"></ng-content>\n <dbx-injected-content [config]=\"injectedComponentConfig$ | async\"></dbx-injected-content>\n <ng-content select=\"[bottom]\"></ng-content>\n</div>\n<ng-content *ngIf=\"isEmpty$ | async\" select=\"[empty]\"></ng-content>\n", components: [{ type: i0.forwardRef(function () { return DbxLoadingComponent; }), selector: "dbx-loading", inputs: ["show", "text", "mode", "color", "diameter", "linear", "context", "loading", "error"] }, { type: i0.forwardRef(function () { return i1.DbxInjectedComponent; }), selector: "dbx-injected-content, [dbx-injected-content]", inputs: ["config", "template"] }], directives: [{ type: i0.forwardRef(function () { return DbxListInternalContentDirective; }), selector: "[dbx-list-internal-content]", inputs: ["hide"] }, { type: i0.forwardRef(function () { return i3$
|
|
3553
|
+
DbxListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxListComponent, selector: "dbx-list", inputs: { padded: "padded", state$: "state$", config: "config", disabled: "disabled" }, outputs: { contentScrolled: "contentScrolled" }, host: { properties: { "class.dbx-list-padded": "padded" }, classAttribute: "d-block dbx-list" }, ngImport: i0, template: "<dbx-loading [context]=\"context\" [linear]=\"true\"></dbx-loading>\n<div dbx-list-internal-content infinite-scroll [infiniteScrollDistance]=\"(scrollDistance$ | async) ?? DEFAULT_SCROLL_DISTANCE\"\n [infiniteScrollUpDistance]=\"(scrollDistance$ | async) ?? DEFAULT_SCROLL_DISTANCE\" [hide]=\"hideContent$ | async\"\n [infiniteScrollThrottle]=\"(throttleScroll$ | async) ?? DEFAULT_THROTTLE_SCROLL\" [scrollWindow]=\"false\"\n (scrolled)=\"onScrollDown()\" (scrolledUp)=\"onScrollUp()\">\n <ng-content select=\"[top]\"></ng-content>\n <dbx-injected-content [config]=\"injectedComponentConfig$ | async\"></dbx-injected-content>\n <ng-content select=\"[bottom]\"></ng-content>\n</div>\n<ng-content *ngIf=\"isEmpty$ | async\" select=\"[empty]\"></ng-content>\n", components: [{ type: i0.forwardRef(function () { return DbxLoadingComponent; }), selector: "dbx-loading", inputs: ["show", "text", "mode", "color", "diameter", "linear", "context", "loading", "error"] }, { type: i0.forwardRef(function () { return i1$2.DbxInjectedComponent; }), selector: "dbx-injected-content, [dbx-injected-content]", inputs: ["config", "template"] }], directives: [{ type: i0.forwardRef(function () { return DbxListInternalContentDirective; }), selector: "[dbx-list-internal-content]", inputs: ["hide"] }, { type: i0.forwardRef(function () { return i3$2.InfiniteScrollDirective; }), selector: "[infiniteScroll], [infinite-scroll], [data-infinite-scroll]", inputs: ["infiniteScrollDistance", "infiniteScrollUpDistance", "infiniteScrollThrottle", "infiniteScrollDisabled", "infiniteScrollContainer", "scrollWindow", "immediateCheck", "horizontal", "alwaysCallback", "fromRoot"], outputs: ["scrolled", "scrolledUp"] }, { type: i0.forwardRef(function () { return i3.NgIf; }), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i0.forwardRef(function () { return i3.AsyncPipe; }) } });
|
|
3170
3554
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxListComponent, decorators: [{
|
|
3171
3555
|
type: Component,
|
|
3172
3556
|
args: [{ selector: 'dbx-list', host: {
|
|
@@ -3236,7 +3620,7 @@ class AbstractDbxListWrapperDirective {
|
|
|
3236
3620
|
constructor(initConfig) {
|
|
3237
3621
|
this.initConfig = initConfig;
|
|
3238
3622
|
this._init = new BehaviorSubject(undefined);
|
|
3239
|
-
this.config$ = this._init.pipe(filterMaybe(), getter(), map((x) => this._buildListConfig(x)), shareReplay(1));
|
|
3623
|
+
this.config$ = this._init.pipe(filterMaybe(), getter(), map$1((x) => this._buildListConfig(x)), shareReplay(1));
|
|
3240
3624
|
this.clickItem = new EventEmitter();
|
|
3241
3625
|
this.loadMore = new EventEmitter();
|
|
3242
3626
|
}
|
|
@@ -3306,7 +3690,7 @@ class DbxActionErrorDirective extends AbstractSubscriptionDirective {
|
|
|
3306
3690
|
});
|
|
3307
3691
|
}
|
|
3308
3692
|
}
|
|
3309
|
-
DbxActionErrorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionErrorDirective, deps: [{ token: DbxReadableErrorComponent, host: true }, { token: i1.
|
|
3693
|
+
DbxActionErrorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionErrorDirective, deps: [{ token: DbxReadableErrorComponent, host: true }, { token: i1$2.DbxActionContextStoreSourceInstance }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3310
3694
|
DbxActionErrorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: DbxActionErrorDirective, selector: "[dbxActionError]", usesInheritance: true, ngImport: i0 });
|
|
3311
3695
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionErrorDirective, decorators: [{
|
|
3312
3696
|
type: Directive,
|
|
@@ -3315,7 +3699,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
3315
3699
|
}]
|
|
3316
3700
|
}], ctorParameters: function () { return [{ type: DbxReadableErrorComponent, decorators: [{
|
|
3317
3701
|
type: Host
|
|
3318
|
-
}] }, { type: i1.
|
|
3702
|
+
}] }, { type: i1$2.DbxActionContextStoreSourceInstance }]; } });
|
|
3319
3703
|
|
|
3320
3704
|
/**
|
|
3321
3705
|
* Converts the error response to a POJO.
|
|
@@ -3443,19 +3827,51 @@ function catchErrorServerParams(action, mapError = (error) => error) {
|
|
|
3443
3827
|
return catchError$1((error) => of(action(mapError(convertServerErrorParams(error)))));
|
|
3444
3828
|
}
|
|
3445
3829
|
|
|
3830
|
+
/**
|
|
3831
|
+
* Context used for linking a loadingComponent to an ActionContext by providing a LoadingContext.
|
|
3832
|
+
*/
|
|
3833
|
+
class DbxActionLoadingContextDirective {
|
|
3834
|
+
constructor(loadingComponent, source) {
|
|
3835
|
+
this.loadingComponent = loadingComponent;
|
|
3836
|
+
this.source = source;
|
|
3837
|
+
this._context = new LoadingStateContextInstance({ obs: this.source.loadingState$ });
|
|
3838
|
+
}
|
|
3839
|
+
get context() {
|
|
3840
|
+
return this._context;
|
|
3841
|
+
}
|
|
3842
|
+
ngOnInit() {
|
|
3843
|
+
this.loadingComponent.context = this._context;
|
|
3844
|
+
}
|
|
3845
|
+
ngOnDestroy() {
|
|
3846
|
+
this._context.destroy();
|
|
3847
|
+
}
|
|
3848
|
+
}
|
|
3849
|
+
DbxActionLoadingContextDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionLoadingContextDirective, deps: [{ token: DbxLoadingComponent, host: true }, { token: i1$2.DbxActionContextStoreSourceInstance }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3850
|
+
DbxActionLoadingContextDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: DbxActionLoadingContextDirective, selector: "[dbxActionLoadingContext]", ngImport: i0 });
|
|
3851
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionLoadingContextDirective, decorators: [{
|
|
3852
|
+
type: Directive,
|
|
3853
|
+
args: [{
|
|
3854
|
+
selector: '[dbxActionLoadingContext]'
|
|
3855
|
+
}]
|
|
3856
|
+
}], ctorParameters: function () { return [{ type: DbxLoadingComponent, decorators: [{
|
|
3857
|
+
type: Host
|
|
3858
|
+
}] }, { type: i1$2.DbxActionContextStoreSourceInstance }]; } });
|
|
3859
|
+
|
|
3446
3860
|
class DbxLoadingModule {
|
|
3447
3861
|
}
|
|
3448
3862
|
DbxLoadingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxLoadingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3449
3863
|
DbxLoadingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxLoadingModule, declarations: [DbxLoadingComponent,
|
|
3450
3864
|
DbxBasicLoadingComponent,
|
|
3451
|
-
DbxLoadingProgressComponent
|
|
3865
|
+
DbxLoadingProgressComponent,
|
|
3866
|
+
DbxActionLoadingContextDirective], imports: [CommonModule,
|
|
3452
3867
|
DbxReadableErrorModule,
|
|
3453
3868
|
MatProgressSpinnerModule,
|
|
3454
3869
|
MatProgressBarModule], exports: [DbxLoadingComponent,
|
|
3455
3870
|
DbxBasicLoadingComponent,
|
|
3456
3871
|
DbxLoadingProgressComponent,
|
|
3457
3872
|
MatProgressSpinnerModule,
|
|
3458
|
-
MatProgressBarModule
|
|
3873
|
+
MatProgressBarModule,
|
|
3874
|
+
DbxActionLoadingContextDirective] });
|
|
3459
3875
|
DbxLoadingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxLoadingModule, imports: [[
|
|
3460
3876
|
CommonModule,
|
|
3461
3877
|
DbxReadableErrorModule,
|
|
@@ -3475,14 +3891,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
3475
3891
|
declarations: [
|
|
3476
3892
|
DbxLoadingComponent,
|
|
3477
3893
|
DbxBasicLoadingComponent,
|
|
3478
|
-
DbxLoadingProgressComponent
|
|
3894
|
+
DbxLoadingProgressComponent,
|
|
3895
|
+
DbxActionLoadingContextDirective
|
|
3479
3896
|
],
|
|
3480
3897
|
exports: [
|
|
3481
3898
|
DbxLoadingComponent,
|
|
3482
3899
|
DbxBasicLoadingComponent,
|
|
3483
3900
|
DbxLoadingProgressComponent,
|
|
3484
3901
|
MatProgressSpinnerModule,
|
|
3485
|
-
MatProgressBarModule
|
|
3902
|
+
MatProgressBarModule,
|
|
3903
|
+
DbxActionLoadingContextDirective
|
|
3486
3904
|
]
|
|
3487
3905
|
}]
|
|
3488
3906
|
}] });
|
|
@@ -3502,7 +3920,7 @@ function ProvideDbxListView(sourceType) {
|
|
|
3502
3920
|
const DBX_VALUE_LIST_VIEW_ITEM = new InjectionToken('DbxValueListViewItem');
|
|
3503
3921
|
const DEFAULT_DBX_VALUE_LIST_CONFIG_MAP_VALUES = (values) => of(values.map(value => ({ value })));
|
|
3504
3922
|
function mapValuesToValuesListItemConfigObs(listViewConfig, values) {
|
|
3505
|
-
return (listViewConfig.mapValuesToItemValues ?? DEFAULT_DBX_VALUE_LIST_CONFIG_MAP_VALUES)(values).pipe(map((itemValues) => {
|
|
3923
|
+
return (listViewConfig.mapValuesToItemValues ?? DEFAULT_DBX_VALUE_LIST_CONFIG_MAP_VALUES)(values).pipe(map$1((itemValues) => {
|
|
3506
3924
|
const items = mapItemValuesToValueListItemConfig(listViewConfig, itemValues);
|
|
3507
3925
|
return items;
|
|
3508
3926
|
}));
|
|
@@ -3561,13 +3979,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
3561
3979
|
class DbxSelectionValueListViewComponent extends AbstractDbxValueListViewDirective {
|
|
3562
3980
|
constructor(dbxListView) {
|
|
3563
3981
|
super(dbxListView);
|
|
3564
|
-
this.multiple$ = this.config$.pipe(map(x => x.multiple ?? true), distinctUntilChanged(), shareReplay(1));
|
|
3982
|
+
this.multiple$ = this.config$.pipe(map$1(x => x.multiple ?? true), distinctUntilChanged(), shareReplay(1));
|
|
3565
3983
|
}
|
|
3566
3984
|
}
|
|
3567
3985
|
DbxSelectionValueListViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSelectionValueListViewComponent, deps: [{ token: DbxListView }], target: i0.ɵɵFactoryTarget.Component });
|
|
3568
3986
|
DbxSelectionValueListViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxSelectionValueListViewComponent, selector: "dbx-selection-list-view", usesInheritance: true, ngImport: i0, template: `
|
|
3569
3987
|
<dbx-selection-list-view-content [multiple]="multiple$ | async" [items]="items$ | async"></dbx-selection-list-view-content>
|
|
3570
|
-
`, isInline: true, components: [{ type: i0.forwardRef(function () { return DbxSelectionValueListItemViewComponent; }), selector: "dbx-selection-list-view-content", inputs: ["multiple", "items"] }], pipes: { "async": i0.forwardRef(function () { return i3
|
|
3988
|
+
`, isInline: true, components: [{ type: i0.forwardRef(function () { return DbxSelectionValueListItemViewComponent; }), selector: "dbx-selection-list-view-content", inputs: ["multiple", "items"] }], pipes: { "async": i0.forwardRef(function () { return i3.AsyncPipe; }) } });
|
|
3571
3989
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSelectionValueListViewComponent, decorators: [{
|
|
3572
3990
|
type: Component,
|
|
3573
3991
|
args: [{
|
|
@@ -3610,7 +4028,7 @@ DbxSelectionValueListItemViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVe
|
|
|
3610
4028
|
<div dbx-injected-content [config]="item.config"></div>
|
|
3611
4029
|
</mat-list-option>
|
|
3612
4030
|
</mat-selection-list>
|
|
3613
|
-
`, isInline: true, components: [{ type: i1$
|
|
4031
|
+
`, isInline: true, components: [{ type: i1$6.MatSelectionList, selector: "mat-selection-list", inputs: ["disableRipple", "tabIndex", "color", "compareWith", "disabled", "multiple"], outputs: ["selectionChange"], exportAs: ["matSelectionList"] }, { type: i1$6.MatListOption, selector: "mat-list-option", inputs: ["disableRipple", "checkboxPosition", "color", "value", "disabled", "selected"], outputs: ["selectedChange"], exportAs: ["matListOption"] }, { type: i1$4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i1$2.DbxInjectedComponent, selector: "dbx-injected-content, [dbx-injected-content]", inputs: ["config", "template"] }], directives: [{ type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$6.MatListIconCssMatStyler, selector: "[mat-list-icon], [matListIcon]" }], pipes: { "async": i3.AsyncPipe } });
|
|
3614
4032
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSelectionValueListItemViewComponent, decorators: [{
|
|
3615
4033
|
type: Component,
|
|
3616
4034
|
args: [{
|
|
@@ -3639,7 +4057,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
3639
4057
|
class DbxValueListViewComponent extends AbstractDbxValueListViewDirective {
|
|
3640
4058
|
constructor() {
|
|
3641
4059
|
super(...arguments);
|
|
3642
|
-
this.emitAllClicks$ = this.config$.pipe(map(x => x.emitAllClicks), shareReplay(1));
|
|
4060
|
+
this.emitAllClicks$ = this.config$.pipe(map$1(x => x.emitAllClicks), shareReplay(1));
|
|
3643
4061
|
}
|
|
3644
4062
|
onClickItem(item) {
|
|
3645
4063
|
// do not emit clicks for disabled items.
|
|
@@ -3663,7 +4081,7 @@ DbxValueListViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
|
|
|
3663
4081
|
</a>
|
|
3664
4082
|
</dbx-anchor>
|
|
3665
4083
|
</mat-nav-list>
|
|
3666
|
-
`, isInline: true, components: [{ type: i1$
|
|
4084
|
+
`, isInline: true, components: [{ type: i1$6.MatNavList, selector: "mat-nav-list", inputs: ["disableRipple", "disabled"], exportAs: ["matNavList"] }, { type: DbxAnchorComponent, selector: "dbx-anchor, [dbx-anchor]", inputs: ["block"] }, { type: i1$6.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["disableRipple", "disabled"], exportAs: ["matListItem"] }, { type: i1$4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i1$2.DbxInjectedComponent, selector: "dbx-injected-content, [dbx-injected-content]", inputs: ["config", "template"] }], directives: [{ type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$6.MatListIconCssMatStyler, selector: "[mat-list-icon], [matListIcon]" }], pipes: { "async": i3.AsyncPipe } });
|
|
3667
4085
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxValueListViewComponent, decorators: [{
|
|
3668
4086
|
type: Component,
|
|
3669
4087
|
args: [{
|
|
@@ -3837,11 +4255,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
3837
4255
|
* Component used to style a section's header.
|
|
3838
4256
|
*/
|
|
3839
4257
|
class DbxSectionHeaderComponent {
|
|
4258
|
+
get showTitle() {
|
|
4259
|
+
return Boolean(this.header || this.icon);
|
|
4260
|
+
}
|
|
3840
4261
|
}
|
|
3841
4262
|
DbxSectionHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSectionHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3842
4263
|
DbxSectionHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxSectionHeaderComponent, selector: ".dbx-section-header", inputs: { h: "h", header: "header", icon: "icon", hint: "hint" }, ngImport: i0, template: `
|
|
3843
4264
|
<div class="dbx-section-header-content">
|
|
3844
|
-
<ng-container [ngSwitch]="h ?? 1">
|
|
4265
|
+
<ng-container [ngSwitch]="showTitle && (h ?? 1)">
|
|
3845
4266
|
<h1 *ngSwitchCase="1" class="dbx-section-header-content-title">
|
|
3846
4267
|
<ng-container *ngTemplateOutlet="headerContentTitleTemplate"></ng-container>
|
|
3847
4268
|
</h1>
|
|
@@ -3865,14 +4286,14 @@ DbxSectionHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
|
|
|
3865
4286
|
<ng-template #headerContentTitleTemplate>
|
|
3866
4287
|
<mat-icon *ngIf="icon">{{icon}}</mat-icon><span class="title-text">{{ header }}</span>
|
|
3867
4288
|
</ng-template>
|
|
3868
|
-
`, isInline: true, components: [{ type:
|
|
4289
|
+
`, isInline: true, components: [{ type: i1$4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
3869
4290
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSectionHeaderComponent, decorators: [{
|
|
3870
4291
|
type: Component,
|
|
3871
4292
|
args: [{
|
|
3872
4293
|
selector: '.dbx-section-header',
|
|
3873
4294
|
template: `
|
|
3874
4295
|
<div class="dbx-section-header-content">
|
|
3875
|
-
<ng-container [ngSwitch]="h ?? 1">
|
|
4296
|
+
<ng-container [ngSwitch]="showTitle && (h ?? 1)">
|
|
3876
4297
|
<h1 *ngSwitchCase="1" class="dbx-section-header-content-title">
|
|
3877
4298
|
<ng-container *ngTemplateOutlet="headerContentTitleTemplate"></ng-container>
|
|
3878
4299
|
</h1>
|
|
@@ -3978,7 +4399,7 @@ DbxIntroActionSectionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
|
3978
4399
|
<ng-content></ng-content>
|
|
3979
4400
|
</ng-container>
|
|
3980
4401
|
</div>
|
|
3981
|
-
`, isInline: true, components: [{ type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i3
|
|
4402
|
+
`, isInline: true, components: [{ type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }] });
|
|
3982
4403
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxIntroActionSectionComponent, decorators: [{
|
|
3983
4404
|
type: Component,
|
|
3984
4405
|
args: [{
|
|
@@ -4126,7 +4547,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
4126
4547
|
class DbxStepComponent {
|
|
4127
4548
|
}
|
|
4128
4549
|
DbxStepComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxStepComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4129
|
-
DbxStepComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxStepComponent, selector: "dbx-step", inputs: { done: "done", step: "step", text: "text", hint: "hint" }, ngImport: i0, template: "<div class=\"step-section\" [ngClass]=\"(done) ? 'done' : ''\">\n <div class=\"step-section-header\">\n <span class=\"step\">{{ step }}.</span>\n <mat-icon class=\"done-check\" *ngIf=\"done\">done</mat-icon>\n <span class=\"text\">{{ text }}</span>\n <p *ngIf=\"hint\" class=\"hint\">{{ hint }}</p>\n </div>\n <div class=\"step-section-content\">\n <ng-content></ng-content>\n </div>\n</div>\n", components: [{ type:
|
|
4550
|
+
DbxStepComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxStepComponent, selector: "dbx-step", inputs: { done: "done", step: "step", text: "text", hint: "hint" }, ngImport: i0, template: "<div class=\"step-section\" [ngClass]=\"(done) ? 'done' : ''\">\n <div class=\"step-section-header\">\n <span class=\"step\">{{ step }}.</span>\n <mat-icon class=\"done-check\" *ngIf=\"done\">done</mat-icon>\n <span class=\"text\">{{ text }}</span>\n <p *ngIf=\"hint\" class=\"hint\">{{ hint }}</p>\n </div>\n <div class=\"step-section-content\">\n <ng-content></ng-content>\n </div>\n</div>\n", components: [{ type: i1$4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
4130
4551
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxStepComponent, decorators: [{
|
|
4131
4552
|
type: Component,
|
|
4132
4553
|
args: [{ selector: 'dbx-step', template: "<div class=\"step-section\" [ngClass]=\"(done) ? 'done' : ''\">\n <div class=\"step-section-header\">\n <span class=\"step\">{{ step }}.</span>\n <mat-icon class=\"done-check\" *ngIf=\"done\">done</mat-icon>\n <span class=\"text\">{{ text }}</span>\n <p *ngIf=\"hint\" class=\"hint\">{{ hint }}</p>\n </div>\n <div class=\"step-section-content\">\n <ng-content></ng-content>\n </div>\n</div>\n" }]
|
|
@@ -4180,6 +4601,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
4180
4601
|
}]
|
|
4181
4602
|
}] });
|
|
4182
4603
|
|
|
4604
|
+
/**
|
|
4605
|
+
* Icon spacer directive.
|
|
4606
|
+
*/
|
|
4607
|
+
class DbxIconSpacerDirective {
|
|
4608
|
+
}
|
|
4609
|
+
DbxIconSpacerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxIconSpacerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4610
|
+
DbxIconSpacerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: DbxIconSpacerDirective, selector: "dbx-icon-spacer,dbxIconSpacer", host: { classAttribute: "dbx-icon-spacer d-inline" }, ngImport: i0 });
|
|
4611
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxIconSpacerDirective, decorators: [{
|
|
4612
|
+
type: Directive,
|
|
4613
|
+
args: [{
|
|
4614
|
+
selector: 'dbx-icon-spacer,dbxIconSpacer',
|
|
4615
|
+
host: {
|
|
4616
|
+
class: 'dbx-icon-spacer d-inline'
|
|
4617
|
+
}
|
|
4618
|
+
}]
|
|
4619
|
+
}] });
|
|
4620
|
+
|
|
4183
4621
|
class DbxLabelComponent {
|
|
4184
4622
|
}
|
|
4185
4623
|
DbxLabelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxLabelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -4202,13 +4640,13 @@ class DbxLinkifyComponent {
|
|
|
4202
4640
|
constructor(sanitizer) {
|
|
4203
4641
|
this.sanitizer = sanitizer;
|
|
4204
4642
|
this._text = new BehaviorSubject('');
|
|
4205
|
-
this.linkifiedText$ = this._text.pipe(distinctUntilChanged$1(), map
|
|
4643
|
+
this.linkifiedText$ = this._text.pipe(distinctUntilChanged$1(), map(x => linkifyStr(x, {
|
|
4206
4644
|
defaultProtocol: 'https',
|
|
4207
4645
|
target: {
|
|
4208
4646
|
url: '_blank'
|
|
4209
4647
|
}
|
|
4210
4648
|
})), shareReplay$1(1));
|
|
4211
|
-
this.linkifiedBody$ = this.linkifiedText$.pipe(map
|
|
4649
|
+
this.linkifiedBody$ = this.linkifiedText$.pipe(map(x => {
|
|
4212
4650
|
return this.sanitizer.bypassSecurityTrustHtml(x);
|
|
4213
4651
|
}), shareReplay$1(1));
|
|
4214
4652
|
}
|
|
@@ -4222,15 +4660,15 @@ class DbxLinkifyComponent {
|
|
|
4222
4660
|
this._text.next(text);
|
|
4223
4661
|
}
|
|
4224
4662
|
}
|
|
4225
|
-
DbxLinkifyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxLinkifyComponent, deps: [{ token: i1$
|
|
4226
|
-
DbxLinkifyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxLinkifyComponent, selector: "dbx-linkify", inputs: { text: "text" }, ngImport: i0, template: `<span class="dbx-linkify" [innerHTML]="linkifiedBody$ | async"></span>`, isInline: true, pipes: { "async": i3
|
|
4663
|
+
DbxLinkifyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxLinkifyComponent, deps: [{ token: i1$a.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component });
|
|
4664
|
+
DbxLinkifyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxLinkifyComponent, selector: "dbx-linkify", inputs: { text: "text" }, ngImport: i0, template: `<span class="dbx-linkify" [innerHTML]="linkifiedBody$ | async"></span>`, isInline: true, pipes: { "async": i3.AsyncPipe } });
|
|
4227
4665
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxLinkifyComponent, decorators: [{
|
|
4228
4666
|
type: Component,
|
|
4229
4667
|
args: [{
|
|
4230
4668
|
selector: 'dbx-linkify',
|
|
4231
4669
|
template: `<span class="dbx-linkify" [innerHTML]="linkifiedBody$ | async"></span>`
|
|
4232
4670
|
}]
|
|
4233
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
4671
|
+
}], ctorParameters: function () { return [{ type: i1$a.DomSanitizer }]; }, propDecorators: { text: [{
|
|
4234
4672
|
type: Input
|
|
4235
4673
|
}] } });
|
|
4236
4674
|
|
|
@@ -4303,7 +4741,7 @@ DbxTextChipsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
4303
4741
|
{{chip.text}}
|
|
4304
4742
|
</mat-chip>
|
|
4305
4743
|
</mat-chip-list>
|
|
4306
|
-
`, isInline: true, components: [{ type: i1$
|
|
4744
|
+
`, isInline: true, components: [{ type: i1$b.MatChipList, selector: "mat-chip-list", inputs: ["errorStateMatcher", "multiple", "compareWith", "value", "required", "placeholder", "disabled", "aria-orientation", "selectable", "tabIndex"], outputs: ["change", "valueChange"], exportAs: ["matChipList"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1$b.MatChip, selector: "mat-basic-chip, [mat-basic-chip], mat-chip, [mat-chip]", inputs: ["color", "disableRipple", "tabIndex", "selected", "value", "selectable", "disabled", "removable"], outputs: ["selectionChange", "destroyed", "removed"], exportAs: ["matChip"] }, { type: i3$3.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }] });
|
|
4307
4745
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxTextChipsComponent, decorators: [{
|
|
4308
4746
|
type: Component,
|
|
4309
4747
|
args: [{
|
|
@@ -4346,7 +4784,8 @@ DbxTextModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version:
|
|
|
4346
4784
|
DbxLabelComponent,
|
|
4347
4785
|
DbxLinkifyComponent,
|
|
4348
4786
|
DbxOkComponent,
|
|
4349
|
-
DbxTextChipsComponent
|
|
4787
|
+
DbxTextChipsComponent,
|
|
4788
|
+
DbxIconSpacerDirective], imports: [CommonModule,
|
|
4350
4789
|
MatChipsModule,
|
|
4351
4790
|
MatTooltipModule,
|
|
4352
4791
|
MatIconModule], exports: [DbxNoteComponent,
|
|
@@ -4357,7 +4796,8 @@ DbxTextModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version:
|
|
|
4357
4796
|
DbxLabelComponent,
|
|
4358
4797
|
DbxLinkifyComponent,
|
|
4359
4798
|
DbxOkComponent,
|
|
4360
|
-
DbxTextChipsComponent
|
|
4799
|
+
DbxTextChipsComponent,
|
|
4800
|
+
DbxIconSpacerDirective] });
|
|
4361
4801
|
DbxTextModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxTextModule, imports: [[
|
|
4362
4802
|
CommonModule,
|
|
4363
4803
|
MatChipsModule,
|
|
@@ -4382,7 +4822,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
4382
4822
|
DbxLabelComponent,
|
|
4383
4823
|
DbxLinkifyComponent,
|
|
4384
4824
|
DbxOkComponent,
|
|
4385
|
-
DbxTextChipsComponent
|
|
4825
|
+
DbxTextChipsComponent,
|
|
4826
|
+
DbxIconSpacerDirective
|
|
4386
4827
|
],
|
|
4387
4828
|
exports: [
|
|
4388
4829
|
DbxNoteComponent,
|
|
@@ -4393,7 +4834,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
4393
4834
|
DbxLabelComponent,
|
|
4394
4835
|
DbxLinkifyComponent,
|
|
4395
4836
|
DbxOkComponent,
|
|
4396
|
-
DbxTextChipsComponent
|
|
4837
|
+
DbxTextChipsComponent,
|
|
4838
|
+
DbxIconSpacerDirective
|
|
4397
4839
|
],
|
|
4398
4840
|
}]
|
|
4399
4841
|
}] });
|
|
@@ -4498,7 +4940,7 @@ class DbxPopoverCoordinatorComponent {
|
|
|
4498
4940
|
constructor(service, popover) {
|
|
4499
4941
|
this.service = service;
|
|
4500
4942
|
this.popover = popover;
|
|
4501
|
-
this.isPopoverForKey$ = this.service.popovers$.pipe(map
|
|
4943
|
+
this.isPopoverForKey$ = this.service.popovers$.pipe(map(x => x.get(this.popover.key) === this.popover), shareReplay$1(1));
|
|
4502
4944
|
this.show$ = this.isPopoverForKey$.pipe(delay$1(0));
|
|
4503
4945
|
}
|
|
4504
4946
|
ngOnInit() {
|
|
@@ -4513,7 +4955,7 @@ DbxPopoverCoordinatorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
|
4513
4955
|
<ng-container *ngIf="show$ | async">
|
|
4514
4956
|
<ng-content></ng-content>
|
|
4515
4957
|
</ng-container>
|
|
4516
|
-
`, isInline: true, directives: [{ type: i3
|
|
4958
|
+
`, isInline: true, directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i3.AsyncPipe } });
|
|
4517
4959
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverCoordinatorComponent, decorators: [{
|
|
4518
4960
|
type: Component,
|
|
4519
4961
|
args: [{
|
|
@@ -4588,8 +5030,8 @@ class DbxPopoverComponent extends AbstractTransitionWatcherDirective {
|
|
|
4588
5030
|
this._startedClosing = false;
|
|
4589
5031
|
this._closing = new Subject();
|
|
4590
5032
|
this._triggerCloseKeys = [];
|
|
4591
|
-
this.isClosing$ = this._closing.pipe(first$1(), map
|
|
4592
|
-
this.closing$ = this.isClosing$.pipe(filter
|
|
5033
|
+
this.isClosing$ = this._closing.pipe(first$1(), map(x => true), startWith$1(false), shareReplay$1(1));
|
|
5034
|
+
this.closing$ = this.isClosing$.pipe(filter(x => x));
|
|
4593
5035
|
// Override Close to properly signal to listeners when a close is occuring.
|
|
4594
5036
|
const originalClose = this.popoverRef.close;
|
|
4595
5037
|
this.popoverRef.close = (x) => {
|
|
@@ -4658,7 +5100,7 @@ class DbxPopoverComponent extends AbstractTransitionWatcherDirective {
|
|
|
4658
5100
|
this.close();
|
|
4659
5101
|
}
|
|
4660
5102
|
}
|
|
4661
|
-
DbxPopoverComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverComponent, deps: [{ token: i1$
|
|
5103
|
+
DbxPopoverComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverComponent, deps: [{ token: i1$c.NgPopoverRef }, { token: CompactContextStore }, { token: i1$2.DbxRouterTransitionService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
4662
5104
|
DbxPopoverComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxPopoverComponent, selector: "ng-component", providers: [{
|
|
4663
5105
|
provide: DbxPopoverController,
|
|
4664
5106
|
useExisting: DbxPopoverComponent
|
|
@@ -4668,7 +5110,7 @@ DbxPopoverComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
|
|
|
4668
5110
|
<dbx-popover-coordinator (dbxWindowKeyDownListener)="handleKeydown($event)" [appWindowKeyDownFilter]="triggerCloseKeys">
|
|
4669
5111
|
<div dbx-style class="dbx-popover-component" dbx-injected-content [config]="contentConfig"></div>
|
|
4670
5112
|
</dbx-popover-coordinator>
|
|
4671
|
-
`, isInline: true, components: [{ type: DbxPopoverCoordinatorComponent, selector: "dbx-popover-coordinator" }, { type: i1.DbxInjectedComponent, selector: "dbx-injected-content, [dbx-injected-content]", inputs: ["config", "template"] }], directives: [{ type: DbxWindowKeyDownListenerDirective, selector: "[dbxWindowKeyDownListener]", inputs: ["appWindowKeyDownEnabled", "appWindowKeyDownFilter"], outputs: ["dbxWindowKeyDownListener"] }, { type: DbxStyleDirective, selector: "dbx-style, [dbx-style], .dbx-style" }] });
|
|
5113
|
+
`, isInline: true, components: [{ type: DbxPopoverCoordinatorComponent, selector: "dbx-popover-coordinator" }, { type: i1$2.DbxInjectedComponent, selector: "dbx-injected-content, [dbx-injected-content]", inputs: ["config", "template"] }], directives: [{ type: DbxWindowKeyDownListenerDirective, selector: "[dbxWindowKeyDownListener]", inputs: ["appWindowKeyDownEnabled", "appWindowKeyDownFilter"], outputs: ["dbxWindowKeyDownListener"] }, { type: DbxStyleDirective, selector: "dbx-style, [dbx-style], .dbx-style" }] });
|
|
4672
5114
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverComponent, decorators: [{
|
|
4673
5115
|
type: Component,
|
|
4674
5116
|
args: [{
|
|
@@ -4684,7 +5126,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
4684
5126
|
provide: CompactContextStore
|
|
4685
5127
|
}]
|
|
4686
5128
|
}]
|
|
4687
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
5129
|
+
}], ctorParameters: function () { return [{ type: i1$c.NgPopoverRef }, { type: CompactContextStore }, { type: i1$2.DbxRouterTransitionService }, { type: i0.NgZone }]; } });
|
|
4688
5130
|
|
|
4689
5131
|
/**
|
|
4690
5132
|
* Used for displaying a popover.
|
|
@@ -4719,11 +5161,11 @@ class DbxPopoverService {
|
|
|
4719
5161
|
});
|
|
4720
5162
|
}
|
|
4721
5163
|
}
|
|
4722
|
-
DbxPopoverService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverService, deps: [{ token: i1$
|
|
5164
|
+
DbxPopoverService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverService, deps: [{ token: i1$d.Overlay }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4723
5165
|
DbxPopoverService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverService });
|
|
4724
5166
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverService, decorators: [{
|
|
4725
5167
|
type: Injectable
|
|
4726
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
5168
|
+
}], ctorParameters: function () { return [{ type: i1$d.Overlay }, { type: i0.Injector }]; } });
|
|
4727
5169
|
|
|
4728
5170
|
/**
|
|
4729
5171
|
* Abstract popover directive.
|
|
@@ -4770,7 +5212,7 @@ DbxPopoverContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
|
|
|
4770
5212
|
<ng-content></ng-content>
|
|
4771
5213
|
</div>
|
|
4772
5214
|
</div>
|
|
4773
|
-
`, isInline: true, directives: [{ type: i1$
|
|
5215
|
+
`, isInline: true, directives: [{ type: i1$8.ResizedDirective, selector: "[resized]", outputs: ["resized"] }], pipes: { "async": i3.AsyncPipe } });
|
|
4774
5216
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverContentComponent, decorators: [{
|
|
4775
5217
|
type: Component,
|
|
4776
5218
|
args: [{
|
|
@@ -4806,7 +5248,7 @@ DbxPopoverHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
|
|
|
4806
5248
|
</div>
|
|
4807
5249
|
</div>
|
|
4808
5250
|
<mat-divider></mat-divider>
|
|
4809
|
-
`, isInline: true, components: [{ type:
|
|
5251
|
+
`, isInline: true, components: [{ type: i1$4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i4.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
4810
5252
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverHeaderComponent, decorators: [{
|
|
4811
5253
|
type: Component,
|
|
4812
5254
|
args: [{
|
|
@@ -4883,7 +5325,7 @@ class DbxFilterPopoverComponent extends AbstractPopoverDirective {
|
|
|
4883
5325
|
this.showSwitchButtons = Boolean(this.config.customFilterComponentClass && this.config.presetFilterComponentClass);
|
|
4884
5326
|
this._showPreset = new BehaviorSubject(false);
|
|
4885
5327
|
this.showPreset$ = this._showPreset.asObservable();
|
|
4886
|
-
this.config$ = this._showPreset.pipe(map((showPreset) => {
|
|
5328
|
+
this.config$ = this._showPreset.pipe(map$1((showPreset) => {
|
|
4887
5329
|
const { connector, initialFilterObs, customFilterComponentClass, presetFilterComponentClass } = this.config;
|
|
4888
5330
|
let componentClass;
|
|
4889
5331
|
if (showPreset) {
|
|
@@ -4945,7 +5387,7 @@ class DbxFilterPopoverComponent extends AbstractPopoverDirective {
|
|
|
4945
5387
|
}
|
|
4946
5388
|
}
|
|
4947
5389
|
DbxFilterPopoverComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxFilterPopoverComponent, deps: [{ token: DbxPopoverComponent }], target: i0.ɵɵFactoryTarget.Component });
|
|
4948
|
-
DbxFilterPopoverComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxFilterPopoverComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<dbx-popover-content>\n <!-- Header -->\n <dbx-popover-header icon=\"filter\" header=\"Filter\">\n <ng-container *ngIf=\"showSwitchButtons\" [ngSwitch]=\"showPreset$ | async\">\n <button *ngSwitchCase=\"true\" mat-flat-button color=\"accent\" (click)=\"showCustom()\">Custom</button>\n <button *ngSwitchCase=\"false\" mat-flat-button color=\"accent\" (click)=\"showPresets()\">Presets</button>\n </ng-container>\n </dbx-popover-header>\n <!-- Content -->\n <dbx-popover-scroll-content>\n <dbx-injected-content [config]=\"config$ | async\"></dbx-injected-content>\n </dbx-popover-scroll-content>\n</dbx-popover-content>\n", components: [{ type: DbxPopoverContentComponent, selector: "dbx-popover-content" }, { type: DbxPopoverHeaderComponent, selector: "dbx-popover-header", inputs: ["header", "icon"] }, { type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: DbxPopoverScrollContentComponent, selector: "dbx-popover-scroll-content" }, { type: i1.DbxInjectedComponent, selector: "dbx-injected-content, [dbx-injected-content]", inputs: ["config", "template"] }], directives: [{ type: i3
|
|
5390
|
+
DbxFilterPopoverComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxFilterPopoverComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<dbx-popover-content>\n <!-- Header -->\n <dbx-popover-header icon=\"filter\" header=\"Filter\">\n <ng-container *ngIf=\"showSwitchButtons\" [ngSwitch]=\"showPreset$ | async\">\n <button *ngSwitchCase=\"true\" mat-flat-button color=\"accent\" (click)=\"showCustom()\">Custom</button>\n <button *ngSwitchCase=\"false\" mat-flat-button color=\"accent\" (click)=\"showPresets()\">Presets</button>\n </ng-container>\n </dbx-popover-header>\n <!-- Content -->\n <dbx-popover-scroll-content>\n <dbx-injected-content [config]=\"config$ | async\"></dbx-injected-content>\n </dbx-popover-scroll-content>\n</dbx-popover-content>\n", components: [{ type: DbxPopoverContentComponent, selector: "dbx-popover-content" }, { type: DbxPopoverHeaderComponent, selector: "dbx-popover-header", inputs: ["header", "icon"] }, { type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: DbxPopoverScrollContentComponent, selector: "dbx-popover-scroll-content" }, { type: i1$2.DbxInjectedComponent, selector: "dbx-injected-content, [dbx-injected-content]", inputs: ["config", "template"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }], pipes: { "async": i3.AsyncPipe } });
|
|
4949
5391
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxFilterPopoverComponent, decorators: [{
|
|
4950
5392
|
type: Component,
|
|
4951
5393
|
args: [{ template: "<dbx-popover-content>\n <!-- Header -->\n <dbx-popover-header icon=\"filter\" header=\"Filter\">\n <ng-container *ngIf=\"showSwitchButtons\" [ngSwitch]=\"showPreset$ | async\">\n <button *ngSwitchCase=\"true\" mat-flat-button color=\"accent\" (click)=\"showCustom()\">Custom</button>\n <button *ngSwitchCase=\"false\" mat-flat-button color=\"accent\" (click)=\"showPresets()\">Presets</button>\n </ng-container>\n </dbx-popover-header>\n <!-- Content -->\n <dbx-popover-scroll-content>\n <dbx-injected-content [config]=\"config$ | async\"></dbx-injected-content>\n </dbx-popover-scroll-content>\n</dbx-popover-content>\n" }]
|
|
@@ -4994,7 +5436,7 @@ DbxFilterPopoverButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion:
|
|
|
4994
5436
|
<button #button mat-icon-button (click)="showFilterPopover()" matTooltip="Filter" matTooltipPosition="above">
|
|
4995
5437
|
<mat-icon>filter_list</mat-icon>
|
|
4996
5438
|
</button>
|
|
4997
|
-
`, isInline: true, components: [{ type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type:
|
|
5439
|
+
`, isInline: true, components: [{ type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i1$4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] });
|
|
4998
5440
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxFilterPopoverButtonComponent, decorators: [{
|
|
4999
5441
|
type: Component,
|
|
5000
5442
|
args: [{
|
|
@@ -5154,7 +5596,7 @@ class DbxPopoverActionDirective extends AbstractPopoverRefWithEventsDirective {
|
|
|
5154
5596
|
}
|
|
5155
5597
|
}
|
|
5156
5598
|
}
|
|
5157
|
-
DbxPopoverActionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverActionDirective, deps: [{ token: i0.ElementRef }, { token: i1.
|
|
5599
|
+
DbxPopoverActionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverActionDirective, deps: [{ token: i0.ElementRef }, { token: i1$2.DbxActionContextStoreSourceInstance }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5158
5600
|
DbxPopoverActionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: DbxPopoverActionDirective, selector: "[dbxPopoverAction]", inputs: { fn: ["dbxPopoverAction", "fn"], appPopoverActionModified: "appPopoverActionModified" }, exportAs: ["popoverAction"], usesInheritance: true, ngImport: i0 });
|
|
5159
5601
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverActionDirective, decorators: [{
|
|
5160
5602
|
type: Directive,
|
|
@@ -5162,7 +5604,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
5162
5604
|
exportAs: 'popoverAction',
|
|
5163
5605
|
selector: '[dbxPopoverAction]'
|
|
5164
5606
|
}]
|
|
5165
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.
|
|
5607
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1$2.DbxActionContextStoreSourceInstance }]; }, propDecorators: { fn: [{
|
|
5166
5608
|
type: Input,
|
|
5167
5609
|
args: ['dbxPopoverAction']
|
|
5168
5610
|
}], appPopoverActionModified: [{
|
|
@@ -5173,24 +5615,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
5173
5615
|
* Action directive that is used to link an DbxButton to an DbxPopoverActionDirective.
|
|
5174
5616
|
*/
|
|
5175
5617
|
class DbxPopoverActionButtonDirective extends DbxActionButtonDirective {
|
|
5176
|
-
constructor(button, source,
|
|
5177
|
-
super(button, source,
|
|
5618
|
+
constructor(button, source, cdRef, appPopoverActionDirective) {
|
|
5619
|
+
super(button, source, cdRef);
|
|
5178
5620
|
this.appPopoverActionDirective = appPopoverActionDirective;
|
|
5179
5621
|
}
|
|
5180
5622
|
_buttonClicked() {
|
|
5181
5623
|
this.appPopoverActionDirective.showPopover();
|
|
5182
5624
|
}
|
|
5183
5625
|
}
|
|
5184
|
-
DbxPopoverActionButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverActionButtonDirective, deps: [{ token: i1.DbxButtonDirective, host: true }, { token: i1.
|
|
5626
|
+
DbxPopoverActionButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverActionButtonDirective, deps: [{ token: i1$2.DbxButtonDirective, host: true }, { token: i1$2.DbxActionContextStoreSourceInstance }, { token: i0.ChangeDetectorRef }, { token: DbxPopoverActionDirective }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5185
5627
|
DbxPopoverActionButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: DbxPopoverActionButtonDirective, selector: "[dbxPopoverActionButton]", usesInheritance: true, ngImport: i0 });
|
|
5186
5628
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverActionButtonDirective, decorators: [{
|
|
5187
5629
|
type: Directive,
|
|
5188
5630
|
args: [{
|
|
5189
5631
|
selector: '[dbxPopoverActionButton]'
|
|
5190
5632
|
}]
|
|
5191
|
-
}], ctorParameters: function () { return [{ type: i1.DbxButtonDirective, decorators: [{
|
|
5633
|
+
}], ctorParameters: function () { return [{ type: i1$2.DbxButtonDirective, decorators: [{
|
|
5192
5634
|
type: Host
|
|
5193
|
-
}] }, { type: i1.
|
|
5635
|
+
}] }, { type: i1$2.DbxActionContextStoreSourceInstance }, { type: i0.ChangeDetectorRef }, { type: DbxPopoverActionDirective }]; } });
|
|
5194
5636
|
|
|
5195
5637
|
class DbxKeypressModule {
|
|
5196
5638
|
}
|
|
@@ -5233,14 +5675,14 @@ class DbxActionKeyTriggerDirective {
|
|
|
5233
5675
|
}
|
|
5234
5676
|
}
|
|
5235
5677
|
}
|
|
5236
|
-
DbxActionKeyTriggerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionKeyTriggerDirective, deps: [{ token: i1.
|
|
5678
|
+
DbxActionKeyTriggerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionKeyTriggerDirective, deps: [{ token: i1$2.DbxActionContextStoreSourceInstance, host: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5237
5679
|
DbxActionKeyTriggerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: DbxActionKeyTriggerDirective, selector: "[dbxActionKeyTrigger]", inputs: { inputKey: ["dbxActionKeyTrigger", "inputKey"] }, host: { listeners: { "document:keyup": "onKeyupHandler($event)" } }, ngImport: i0 });
|
|
5238
5680
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionKeyTriggerDirective, decorators: [{
|
|
5239
5681
|
type: Directive,
|
|
5240
5682
|
args: [{
|
|
5241
5683
|
selector: '[dbxActionKeyTrigger]',
|
|
5242
5684
|
}]
|
|
5243
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
5685
|
+
}], ctorParameters: function () { return [{ type: i1$2.DbxActionContextStoreSourceInstance, decorators: [{
|
|
5244
5686
|
type: Host
|
|
5245
5687
|
}] }]; }, propDecorators: { inputKey: [{
|
|
5246
5688
|
type: Input,
|
|
@@ -5250,98 +5692,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
5250
5692
|
args: ['document:keyup', ['$event']]
|
|
5251
5693
|
}] } });
|
|
5252
5694
|
|
|
5253
|
-
/**
|
|
5254
|
-
* Component for a snackbar that contains an action.
|
|
5255
|
-
*/
|
|
5256
|
-
class DbxActionSnackbarComponent {
|
|
5257
|
-
constructor(snackbar, data) {
|
|
5258
|
-
this.snackbar = snackbar;
|
|
5259
|
-
this.data = data;
|
|
5260
|
-
this.complete$ = this.actionSourceInstance.isSuccess$;
|
|
5261
|
-
this.snackbarStatusClass$ = this.actionSourceInstance.actionState$.pipe(map$1((x) => {
|
|
5262
|
-
let classes = 'dbx-action-snackbar-';
|
|
5263
|
-
switch (x) {
|
|
5264
|
-
case ActionState.Rejected:
|
|
5265
|
-
classes += 'error';
|
|
5266
|
-
break;
|
|
5267
|
-
case ActionState.Success:
|
|
5268
|
-
classes += 'success';
|
|
5269
|
-
break;
|
|
5270
|
-
default:
|
|
5271
|
-
classes += 'idle';
|
|
5272
|
-
break;
|
|
5273
|
-
}
|
|
5274
|
-
return classes;
|
|
5275
|
-
}), distinctUntilChanged(), shareReplay(1));
|
|
5276
|
-
this.dismissEarly = () => {
|
|
5277
|
-
this.snackbar._dismissAfter(ms('3s'));
|
|
5278
|
-
};
|
|
5279
|
-
this.dismiss = () => {
|
|
5280
|
-
this.snackbar.dismiss();
|
|
5281
|
-
};
|
|
5282
|
-
if (!data.actionSource) {
|
|
5283
|
-
throw new Error('No action was provided to ActionSnackbar.');
|
|
5284
|
-
}
|
|
5285
|
-
}
|
|
5286
|
-
get message() {
|
|
5287
|
-
return this.data.message;
|
|
5288
|
-
}
|
|
5289
|
-
get action() {
|
|
5290
|
-
return this.data.action;
|
|
5291
|
-
}
|
|
5292
|
-
get actionSourceInstance() {
|
|
5293
|
-
return this.data.actionSource;
|
|
5294
|
-
}
|
|
5295
|
-
}
|
|
5296
|
-
DbxActionSnackbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionSnackbarComponent, deps: [{ token: i1$c.MatSnackBarRef }, { token: MAT_SNACK_BAR_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
5297
|
-
DbxActionSnackbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxActionSnackbarComponent, selector: "ng-component", ngImport: i0, template: `
|
|
5298
|
-
<div class="dbx-action-snackbar" [ngClass]="(snackbarStatusClass$ | async)!">
|
|
5299
|
-
<ng-container [ngSwitch]="complete$ | async">
|
|
5300
|
-
<ng-container *ngSwitchCase="true">
|
|
5301
|
-
<div class="spacer"></div>
|
|
5302
|
-
<dbx-button (buttonClick)="dismiss()" color="accent" icon="done" text="Success"></dbx-button>
|
|
5303
|
-
</ng-container>
|
|
5304
|
-
<ng-container *ngSwitchCase="false">
|
|
5305
|
-
<span>{{ message }}</span>
|
|
5306
|
-
<div class="spacer"></div>
|
|
5307
|
-
<dbx-action dbxActionValue [dbxActionSource]="actionSourceInstance" [dbxActionSuccess]="dismissEarly">
|
|
5308
|
-
<dbx-button dbxActionButton color="warn" [text]="action"></dbx-button>
|
|
5309
|
-
</dbx-action>
|
|
5310
|
-
<dbx-button-spacer></dbx-button-spacer>
|
|
5311
|
-
<dbx-button (buttonClick)="dismiss()" color="accent" icon="close"></dbx-button>
|
|
5312
|
-
</ng-container>
|
|
5313
|
-
</ng-container>
|
|
5314
|
-
</div>
|
|
5315
|
-
`, isInline: true, components: [{ type: DbxButtonComponent, selector: "dbx-button", inputs: ["type", "raised", "stroked", "flat", "color"] }, { type: DbxButtonSpacerComponent, selector: "dbx-button-spacer" }], directives: [{ type: i3$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i3$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i1.DbxActionDirective, selector: "dbx-action,[dbxAction],dbx-action-context,[dbxActionContext]", exportAs: ["action"] }, { type: i1.DbxActionValueDirective, selector: "[dbxActionValue]", inputs: ["dbxActionValue"] }, { type: i1.DbxActionSourceDirective, selector: "[dbxActionSource]", inputs: ["dbxActionSource"] }, { type: i1.DbxActionSuccessDirective, selector: "[dbxActionSuccess]", inputs: ["dbxActionSuccess"] }], pipes: { "async": i3$1.AsyncPipe } });
|
|
5316
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionSnackbarComponent, decorators: [{
|
|
5317
|
-
type: Component,
|
|
5318
|
-
args: [{
|
|
5319
|
-
template: `
|
|
5320
|
-
<div class="dbx-action-snackbar" [ngClass]="(snackbarStatusClass$ | async)!">
|
|
5321
|
-
<ng-container [ngSwitch]="complete$ | async">
|
|
5322
|
-
<ng-container *ngSwitchCase="true">
|
|
5323
|
-
<div class="spacer"></div>
|
|
5324
|
-
<dbx-button (buttonClick)="dismiss()" color="accent" icon="done" text="Success"></dbx-button>
|
|
5325
|
-
</ng-container>
|
|
5326
|
-
<ng-container *ngSwitchCase="false">
|
|
5327
|
-
<span>{{ message }}</span>
|
|
5328
|
-
<div class="spacer"></div>
|
|
5329
|
-
<dbx-action dbxActionValue [dbxActionSource]="actionSourceInstance" [dbxActionSuccess]="dismissEarly">
|
|
5330
|
-
<dbx-button dbxActionButton color="warn" [text]="action"></dbx-button>
|
|
5331
|
-
</dbx-action>
|
|
5332
|
-
<dbx-button-spacer></dbx-button-spacer>
|
|
5333
|
-
<dbx-button (buttonClick)="dismiss()" color="accent" icon="close"></dbx-button>
|
|
5334
|
-
</ng-container>
|
|
5335
|
-
</ng-container>
|
|
5336
|
-
</div>
|
|
5337
|
-
`,
|
|
5338
|
-
// TODO: styleUrls: ['./action.scss']
|
|
5339
|
-
}]
|
|
5340
|
-
}], ctorParameters: function () { return [{ type: i1$c.MatSnackBarRef }, { type: undefined, decorators: [{
|
|
5341
|
-
type: Inject,
|
|
5342
|
-
args: [MAT_SNACK_BAR_DATA]
|
|
5343
|
-
}] }]; } });
|
|
5344
|
-
|
|
5345
5695
|
class DbxPromptConfirm {
|
|
5346
5696
|
}
|
|
5347
5697
|
function ProvideDbxPromptConfirm(sourceType) {
|
|
@@ -5418,7 +5768,7 @@ class DbxPromptConfirmComponent {
|
|
|
5418
5768
|
}
|
|
5419
5769
|
}
|
|
5420
5770
|
DbxPromptConfirmComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPromptConfirmComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5421
|
-
DbxPromptConfirmComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxPromptConfirmComponent, selector: "dbx-prompt-confirm", inputs: { config: "config" }, outputs: { confirm: "confirm", cancel: "cancel" }, ngImport: i0, template: "<dbx-prompt [header]=\"config.title\" [prompt]=\"config.prompt\">\n <ng-content></ng-content>\n <button mat-stroked-button (click)=\"onConfirm()\">{{ config.confirmText || 'Confirm' }}</button>\n <dbx-button-spacer></dbx-button-spacer>\n <button mat-stroked-button color=\"warn\" (click)=\"onCancel()\">{{ config.cancelText || 'Cancel' }}</button>\n</dbx-prompt>\n", components: [{ type: DbxPromptComponent, selector: "dbx-prompt", inputs: ["header", "prompt"] }, { type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type:
|
|
5771
|
+
DbxPromptConfirmComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxPromptConfirmComponent, selector: "dbx-prompt-confirm", inputs: { config: "config" }, outputs: { confirm: "confirm", cancel: "cancel" }, ngImport: i0, template: "<dbx-prompt [header]=\"config.title\" [prompt]=\"config.prompt\">\n <ng-content></ng-content>\n <button mat-stroked-button (click)=\"onConfirm()\">{{ config.confirmText || 'Confirm' }}</button>\n <dbx-button-spacer></dbx-button-spacer>\n <button mat-stroked-button color=\"warn\" (click)=\"onCancel()\">{{ config.cancelText || 'Cancel' }}</button>\n</dbx-prompt>\n", components: [{ type: DbxPromptComponent, selector: "dbx-prompt", inputs: ["header", "prompt"] }, { type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: DbxButtonSpacerDirective, selector: "dbx-button-spacer,dbxButtonSpacer" }] });
|
|
5422
5772
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPromptConfirmComponent, decorators: [{
|
|
5423
5773
|
type: Component,
|
|
5424
5774
|
args: [{ selector: 'dbx-prompt-confirm', template: "<dbx-prompt [header]=\"config.title\" [prompt]=\"config.prompt\">\n <ng-content></ng-content>\n <button mat-stroked-button (click)=\"onConfirm()\">{{ config.confirmText || 'Confirm' }}</button>\n <dbx-button-spacer></dbx-button-spacer>\n <button mat-stroked-button color=\"warn\" (click)=\"onCancel()\">{{ config.cancelText || 'Cancel' }}</button>\n</dbx-prompt>\n" }]
|
|
@@ -5461,7 +5811,7 @@ DbxPromptConfirmDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion:
|
|
|
5461
5811
|
<dbx-injected-content [config]="injectedConfig"></dbx-injected-content>
|
|
5462
5812
|
</dbx-prompt-confirm>
|
|
5463
5813
|
</dbx-dialog-content>
|
|
5464
|
-
`, isInline: true, components: [{ type: DbxPromptConfirmComponent, selector: "dbx-prompt-confirm", inputs: ["config"], outputs: ["confirm", "cancel"] }, { type: i1.DbxInjectedComponent, selector: "dbx-injected-content, [dbx-injected-content]", inputs: ["config", "template"] }], directives: [{ type: DbxDialogContentDirective, selector: "dbx-dialog-content,.dbx-dialog-content", inputs: ["width"] }] });
|
|
5814
|
+
`, isInline: true, components: [{ type: DbxPromptConfirmComponent, selector: "dbx-prompt-confirm", inputs: ["config"], outputs: ["confirm", "cancel"] }, { type: i1$2.DbxInjectedComponent, selector: "dbx-injected-content, [dbx-injected-content]", inputs: ["config", "template"] }], directives: [{ type: DbxDialogContentDirective, selector: "dbx-dialog-content,.dbx-dialog-content", inputs: ["width"] }] });
|
|
5465
5815
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPromptConfirmDialogComponent, decorators: [{
|
|
5466
5816
|
type: Component,
|
|
5467
5817
|
args: [{
|
|
@@ -5500,11 +5850,11 @@ class AbstractPromptConfirmDirective {
|
|
|
5500
5850
|
return result;
|
|
5501
5851
|
}
|
|
5502
5852
|
}
|
|
5503
|
-
AbstractPromptConfirmDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: AbstractPromptConfirmDirective, deps: [{ token: i1$
|
|
5853
|
+
AbstractPromptConfirmDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: AbstractPromptConfirmDirective, deps: [{ token: i1$3.MatDialog }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5504
5854
|
AbstractPromptConfirmDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: AbstractPromptConfirmDirective, ngImport: i0 });
|
|
5505
5855
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: AbstractPromptConfirmDirective, decorators: [{
|
|
5506
5856
|
type: Directive
|
|
5507
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
5857
|
+
}], ctorParameters: function () { return [{ type: i1$3.MatDialog }]; } });
|
|
5508
5858
|
// MARK: Directive
|
|
5509
5859
|
/**
|
|
5510
5860
|
* Directive that shows a confirmation screen.
|
|
@@ -5514,7 +5864,7 @@ class DbxPromptConfirmDirective extends AbstractPromptConfirmDirective {
|
|
|
5514
5864
|
super(dialog);
|
|
5515
5865
|
}
|
|
5516
5866
|
}
|
|
5517
|
-
DbxPromptConfirmDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPromptConfirmDirective, deps: [{ token: i1$
|
|
5867
|
+
DbxPromptConfirmDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPromptConfirmDirective, deps: [{ token: i1$3.MatDialog }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5518
5868
|
DbxPromptConfirmDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: DbxPromptConfirmDirective, selector: "[dbxPromptConfirm]", inputs: { config: ["dbxPromptConfirm", "config"] }, providers: ProvideDbxPromptConfirm(DbxPromptConfirmDirective), usesInheritance: true, ngImport: i0 });
|
|
5519
5869
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPromptConfirmDirective, decorators: [{
|
|
5520
5870
|
type: Directive,
|
|
@@ -5522,7 +5872,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
5522
5872
|
selector: '[dbxPromptConfirm]',
|
|
5523
5873
|
providers: ProvideDbxPromptConfirm(DbxPromptConfirmDirective)
|
|
5524
5874
|
}]
|
|
5525
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
5875
|
+
}], ctorParameters: function () { return [{ type: i1$3.MatDialog }]; }, propDecorators: { config: [{
|
|
5526
5876
|
type: Input,
|
|
5527
5877
|
args: ['dbxPromptConfirm']
|
|
5528
5878
|
}] } });
|
|
@@ -5549,7 +5899,7 @@ class DbxActionConfirmDirective extends AbstractPromptConfirmDirective {
|
|
|
5549
5899
|
}
|
|
5550
5900
|
_handleDialogResult(result) {
|
|
5551
5901
|
if (result) {
|
|
5552
|
-
this.source.readyValue(
|
|
5902
|
+
this.source.readyValue(this.config?.readyValue);
|
|
5553
5903
|
}
|
|
5554
5904
|
else {
|
|
5555
5905
|
this.source.reject(undefined);
|
|
@@ -5557,16 +5907,16 @@ class DbxActionConfirmDirective extends AbstractPromptConfirmDirective {
|
|
|
5557
5907
|
return result;
|
|
5558
5908
|
}
|
|
5559
5909
|
}
|
|
5560
|
-
DbxActionConfirmDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionConfirmDirective, deps: [{ token: i1.
|
|
5910
|
+
DbxActionConfirmDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionConfirmDirective, deps: [{ token: i1$2.DbxActionContextStoreSourceInstance, host: true }, { token: i1$3.MatDialog }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5561
5911
|
DbxActionConfirmDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: DbxActionConfirmDirective, selector: "[dbxActionConfirm]", inputs: { config: ["dbxActionConfirm", "config"] }, usesInheritance: true, ngImport: i0 });
|
|
5562
5912
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionConfirmDirective, decorators: [{
|
|
5563
5913
|
type: Directive,
|
|
5564
5914
|
args: [{
|
|
5565
5915
|
selector: '[dbxActionConfirm]'
|
|
5566
5916
|
}]
|
|
5567
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
5917
|
+
}], ctorParameters: function () { return [{ type: i1$2.DbxActionContextStoreSourceInstance, decorators: [{
|
|
5568
5918
|
type: Host
|
|
5569
|
-
}] }, { type: i1$
|
|
5919
|
+
}] }, { type: i1$3.MatDialog }]; }, propDecorators: { config: [{
|
|
5570
5920
|
type: Input,
|
|
5571
5921
|
args: ['dbxActionConfirm']
|
|
5572
5922
|
}] } });
|
|
@@ -5627,21 +5977,21 @@ class DbxPromptConfirmButtonDirective {
|
|
|
5627
5977
|
this.appButton = appButton;
|
|
5628
5978
|
this.prompt = prompt;
|
|
5629
5979
|
this.interceptButtonClick = () => {
|
|
5630
|
-
return this.prompt.showDialog().pipe(map
|
|
5980
|
+
return this.prompt.showDialog().pipe(map(x => Boolean(x)));
|
|
5631
5981
|
};
|
|
5632
5982
|
}
|
|
5633
5983
|
ngOnInit() {
|
|
5634
5984
|
this.appButton.setButtonInterceptor(this);
|
|
5635
5985
|
}
|
|
5636
5986
|
}
|
|
5637
|
-
DbxPromptConfirmButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPromptConfirmButtonDirective, deps: [{ token: i1.DbxButtonDirective, host: true }, { token: DbxPromptConfirm, host: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5987
|
+
DbxPromptConfirmButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPromptConfirmButtonDirective, deps: [{ token: i1$2.DbxButtonDirective, host: true }, { token: DbxPromptConfirm, host: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5638
5988
|
DbxPromptConfirmButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: DbxPromptConfirmButtonDirective, selector: "[dbxPromptConfirmButton]", ngImport: i0 });
|
|
5639
5989
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPromptConfirmButtonDirective, decorators: [{
|
|
5640
5990
|
type: Directive,
|
|
5641
5991
|
args: [{
|
|
5642
5992
|
selector: '[dbxPromptConfirmButton]',
|
|
5643
5993
|
}]
|
|
5644
|
-
}], ctorParameters: function () { return [{ type: i1.DbxButtonDirective, decorators: [{
|
|
5994
|
+
}], ctorParameters: function () { return [{ type: i1$2.DbxButtonDirective, decorators: [{
|
|
5645
5995
|
type: Host
|
|
5646
5996
|
}] }, { type: DbxPromptConfirm, decorators: [{
|
|
5647
5997
|
type: Host
|
|
@@ -5719,7 +6069,6 @@ class DbxActionModule {
|
|
|
5719
6069
|
}
|
|
5720
6070
|
DbxActionModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5721
6071
|
DbxActionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionModule, declarations: [DbxActionKeyTriggerDirective,
|
|
5722
|
-
DbxActionSnackbarComponent,
|
|
5723
6072
|
DbxActionConfirmDirective], imports: [CommonModule,
|
|
5724
6073
|
DbxCoreActionModule,
|
|
5725
6074
|
DbxButtonModule,
|
|
@@ -5728,7 +6077,6 @@ DbxActionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version
|
|
|
5728
6077
|
MatButtonModule,
|
|
5729
6078
|
DbxPromptModule], exports: [DbxCoreActionModule,
|
|
5730
6079
|
DbxActionKeyTriggerDirective,
|
|
5731
|
-
DbxActionSnackbarComponent,
|
|
5732
6080
|
DbxActionConfirmDirective] });
|
|
5733
6081
|
DbxActionModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionModule, imports: [[
|
|
5734
6082
|
CommonModule,
|
|
@@ -5753,13 +6101,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
5753
6101
|
],
|
|
5754
6102
|
declarations: [
|
|
5755
6103
|
DbxActionKeyTriggerDirective,
|
|
5756
|
-
DbxActionSnackbarComponent,
|
|
5757
6104
|
DbxActionConfirmDirective,
|
|
5758
6105
|
],
|
|
5759
6106
|
exports: [
|
|
5760
6107
|
DbxCoreActionModule,
|
|
5761
6108
|
DbxActionKeyTriggerDirective,
|
|
5762
|
-
DbxActionSnackbarComponent,
|
|
5763
6109
|
DbxActionConfirmDirective,
|
|
5764
6110
|
]
|
|
5765
6111
|
}]
|
|
@@ -5873,7 +6219,7 @@ class DbxFilterWrapperComponent {
|
|
|
5873
6219
|
}
|
|
5874
6220
|
}
|
|
5875
6221
|
DbxFilterWrapperComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxFilterWrapperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5876
|
-
DbxFilterWrapperComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxFilterWrapperComponent, selector: "dbx-filter-wrapper", inputs: { modified: "modified" }, outputs: { applyFilter: "applyFilter", resetFilter: "resetFilter" }, ngImport: i0, template: "<div class=\"dbx-filter-wrapper\">\n <div class=\"dbx-filter-wrapper-content\">\n <ng-content></ng-content>\n </div>\n <div fxLayout=\"row\">\n <button mat-raised-button (click)=\"filterClicked()\">Apply Filter</button>\n <div class=\"spacer\"></div>\n <button mat-icon-button (click)=\"resetClicked()\">\n <mat-icon>clear</mat-icon>\n </button>\n </div>\n</div>\n", components: [{ type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type:
|
|
6222
|
+
DbxFilterWrapperComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxFilterWrapperComponent, selector: "dbx-filter-wrapper", inputs: { modified: "modified" }, outputs: { applyFilter: "applyFilter", resetFilter: "resetFilter" }, ngImport: i0, template: "<div class=\"dbx-filter-wrapper\">\n <div class=\"dbx-filter-wrapper-content\">\n <ng-content></ng-content>\n </div>\n <div fxLayout=\"row\">\n <button mat-raised-button (click)=\"filterClicked()\">Apply Filter</button>\n <div class=\"spacer\"></div>\n <button mat-icon-button (click)=\"resetClicked()\">\n <mat-icon>clear</mat-icon>\n </button>\n </div>\n</div>\n", components: [{ type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i1$4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i3$4.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }] });
|
|
5877
6223
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxFilterWrapperComponent, decorators: [{
|
|
5878
6224
|
type: Component,
|
|
5879
6225
|
args: [{ selector: 'dbx-filter-wrapper', template: "<div class=\"dbx-filter-wrapper\">\n <div class=\"dbx-filter-wrapper-content\">\n <ng-content></ng-content>\n </div>\n <div fxLayout=\"row\">\n <button mat-raised-button (click)=\"filterClicked()\">Apply Filter</button>\n <div class=\"spacer\"></div>\n <button mat-icon-button (click)=\"resetClicked()\">\n <mat-icon>clear</mat-icon>\n </button>\n </div>\n</div>\n" }]
|
|
@@ -6029,7 +6375,7 @@ class DbxPopupCoordinatorComponent {
|
|
|
6029
6375
|
constructor(service, popup) {
|
|
6030
6376
|
this.service = service;
|
|
6031
6377
|
this.popup = popup;
|
|
6032
|
-
this.isPopupForKey$ = this.service.popups$.pipe(map
|
|
6378
|
+
this.isPopupForKey$ = this.service.popups$.pipe(map(x => x.get(this.popup.key) === this.popup), shareReplay$1(1));
|
|
6033
6379
|
this.show$ = this.isPopupForKey$.pipe(delay$1(0));
|
|
6034
6380
|
}
|
|
6035
6381
|
ngOnInit() {
|
|
@@ -6044,7 +6390,7 @@ DbxPopupCoordinatorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12
|
|
|
6044
6390
|
<ng-container *ngIf="show$ | async">
|
|
6045
6391
|
<ng-content></ng-content>
|
|
6046
6392
|
</ng-container>
|
|
6047
|
-
`, isInline: true, directives: [{ type: i3
|
|
6393
|
+
`, isInline: true, directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i3.AsyncPipe } });
|
|
6048
6394
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopupCoordinatorComponent, decorators: [{
|
|
6049
6395
|
type: Component,
|
|
6050
6396
|
args: [{
|
|
@@ -6075,8 +6421,8 @@ class DbxPopupComponent extends AbstractTransitionWatcherDirective {
|
|
|
6075
6421
|
init: this.config.init ? ((instance) => this.config.init(instance, this)) : undefined
|
|
6076
6422
|
};
|
|
6077
6423
|
this.closing = new Subject();
|
|
6078
|
-
this.isClosing$ = this.closing.pipe(first$1(), map
|
|
6079
|
-
this.closing$ = this.isClosing$.pipe(filter
|
|
6424
|
+
this.isClosing$ = this.closing.pipe(first$1(), map(x => true), startWith$1(false), shareReplay$1(1));
|
|
6425
|
+
this.closing$ = this.isClosing$.pipe(filter(x => x));
|
|
6080
6426
|
this._windowState = new BehaviorSubject(DbxPopupWindowState.NORMAL);
|
|
6081
6427
|
this.windowState$ = this._windowState.asObservable();
|
|
6082
6428
|
this.compactContextState.setMode(CompactMode.COMPACT);
|
|
@@ -6139,7 +6485,7 @@ class DbxPopupComponent extends AbstractTransitionWatcherDirective {
|
|
|
6139
6485
|
this._windowState.next(DbxPopupWindowState.FULLSCREEN);
|
|
6140
6486
|
}
|
|
6141
6487
|
}
|
|
6142
|
-
DbxPopupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopupComponent, deps: [{ token: i1$
|
|
6488
|
+
DbxPopupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopupComponent, deps: [{ token: i1$c.NgPopoverRef }, { token: CompactContextStore }, { token: i1$2.DbxRouterTransitionService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
6143
6489
|
DbxPopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxPopupComponent, selector: "ng-component", providers: [{
|
|
6144
6490
|
provide: DbxPopupController,
|
|
6145
6491
|
useExisting: DbxPopupComponent
|
|
@@ -6149,7 +6495,7 @@ DbxPopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
|
|
|
6149
6495
|
<dbx-popup-coordinator>
|
|
6150
6496
|
<div class="dbx-popup-component" dbx-injected-content [config]="contentConfig"></div>
|
|
6151
6497
|
</dbx-popup-coordinator>
|
|
6152
|
-
`, isInline: true, components: [{ type: DbxPopupCoordinatorComponent, selector: "dbx-popup-coordinator" }, { type: i1.DbxInjectedComponent, selector: "dbx-injected-content, [dbx-injected-content]", inputs: ["config", "template"] }] });
|
|
6498
|
+
`, isInline: true, components: [{ type: DbxPopupCoordinatorComponent, selector: "dbx-popup-coordinator" }, { type: i1$2.DbxInjectedComponent, selector: "dbx-injected-content, [dbx-injected-content]", inputs: ["config", "template"] }] });
|
|
6153
6499
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopupComponent, decorators: [{
|
|
6154
6500
|
type: Component,
|
|
6155
6501
|
args: [{
|
|
@@ -6165,7 +6511,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
6165
6511
|
provide: CompactContextStore
|
|
6166
6512
|
}]
|
|
6167
6513
|
}]
|
|
6168
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
6514
|
+
}], ctorParameters: function () { return [{ type: i1$c.NgPopoverRef }, { type: CompactContextStore }, { type: i1$2.DbxRouterTransitionService }, { type: i0.NgZone }]; } });
|
|
6169
6515
|
|
|
6170
6516
|
/**
|
|
6171
6517
|
* Abstract popup directive.
|
|
@@ -6190,7 +6536,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
6190
6536
|
class DbxPopupContentComponent {
|
|
6191
6537
|
constructor(appPopupController) {
|
|
6192
6538
|
this.appPopupController = appPopupController;
|
|
6193
|
-
this.showContent$ = this.appPopupController.windowState$.pipe(map
|
|
6539
|
+
this.showContent$ = this.appPopupController.windowState$.pipe(map(x => x !== DbxPopupWindowState.MINIMIZED));
|
|
6194
6540
|
}
|
|
6195
6541
|
}
|
|
6196
6542
|
DbxPopupContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopupContentComponent, deps: [{ token: DbxPopupController }], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -6199,7 +6545,7 @@ DbxPopupContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0
|
|
|
6199
6545
|
<div *ngIf="showContent$ | async" class="dbx-popup-content-container">
|
|
6200
6546
|
<ng-content></ng-content>
|
|
6201
6547
|
</div>
|
|
6202
|
-
`, isInline: true, directives: [{ type: i3
|
|
6548
|
+
`, isInline: true, directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i3.AsyncPipe } });
|
|
6203
6549
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopupContentComponent, decorators: [{
|
|
6204
6550
|
type: Component,
|
|
6205
6551
|
args: [{
|
|
@@ -6222,8 +6568,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
6222
6568
|
class DbxPopupControlButtonsComponent {
|
|
6223
6569
|
constructor(appPopupController) {
|
|
6224
6570
|
this.appPopupController = appPopupController;
|
|
6225
|
-
this.isMinimized$ = this.appPopupController.windowState$.pipe(map
|
|
6226
|
-
this.isFullscreen$ = this.appPopupController.windowState$.pipe(map
|
|
6571
|
+
this.isMinimized$ = this.appPopupController.windowState$.pipe(map(x => x === DbxPopupWindowState.MINIMIZED));
|
|
6572
|
+
this.isFullscreen$ = this.appPopupController.windowState$.pipe(map(x => x === DbxPopupWindowState.FULLSCREEN));
|
|
6227
6573
|
}
|
|
6228
6574
|
minimizeClicked() {
|
|
6229
6575
|
this.appPopupController.minimize();
|
|
@@ -6254,7 +6600,7 @@ DbxPopupControlButtonsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion:
|
|
|
6254
6600
|
</ng-container>
|
|
6255
6601
|
<dbx-button-spacer></dbx-button-spacer>
|
|
6256
6602
|
<dbx-button [flat]="true" icon="close" color="warn" (buttonClick)="closeClicked()"></dbx-button>
|
|
6257
|
-
`, isInline: true, components: [{ type: DbxButtonComponent, selector: "dbx-button", inputs: ["type", "raised", "stroked", "flat", "color"] }
|
|
6603
|
+
`, isInline: true, components: [{ type: DbxButtonComponent, selector: "dbx-button", inputs: ["type", "raised", "stroked", "flat", "color"] }], directives: [{ type: i3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: DbxButtonSpacerDirective, selector: "dbx-button-spacer,dbxButtonSpacer" }], pipes: { "async": i3.AsyncPipe } });
|
|
6258
6604
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopupControlButtonsComponent, decorators: [{
|
|
6259
6605
|
type: Component,
|
|
6260
6606
|
args: [{
|
|
@@ -6337,11 +6683,11 @@ class DbxPopupService {
|
|
|
6337
6683
|
});
|
|
6338
6684
|
}
|
|
6339
6685
|
}
|
|
6340
|
-
DbxPopupService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopupService, deps: [{ token: i1$
|
|
6686
|
+
DbxPopupService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopupService, deps: [{ token: i1$d.Overlay }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6341
6687
|
DbxPopupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopupService });
|
|
6342
6688
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopupService, decorators: [{
|
|
6343
6689
|
type: Injectable
|
|
6344
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
6690
|
+
}], ctorParameters: function () { return [{ type: i1$d.Overlay }, { type: i0.Injector }]; } });
|
|
6345
6691
|
|
|
6346
6692
|
class DbxPopupInteractionModule {
|
|
6347
6693
|
static forRoot() {
|
|
@@ -6440,6 +6786,47 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
6440
6786
|
}]
|
|
6441
6787
|
}] });
|
|
6442
6788
|
|
|
6789
|
+
class DbxActionSnackbarModule {
|
|
6790
|
+
}
|
|
6791
|
+
DbxActionSnackbarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionSnackbarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6792
|
+
DbxActionSnackbarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionSnackbarModule, declarations: [DbxActionSnackbarComponent,
|
|
6793
|
+
DbxActionSnackbarDirective], imports: [CommonModule,
|
|
6794
|
+
DbxStyleLayoutModule,
|
|
6795
|
+
DbxCoreActionModule,
|
|
6796
|
+
DbxPromptModule,
|
|
6797
|
+
DbxButtonModule,
|
|
6798
|
+
DbxReadableErrorModule], exports: [DbxActionSnackbarComponent,
|
|
6799
|
+
DbxActionSnackbarDirective] });
|
|
6800
|
+
DbxActionSnackbarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionSnackbarModule, imports: [[
|
|
6801
|
+
CommonModule,
|
|
6802
|
+
DbxStyleLayoutModule,
|
|
6803
|
+
DbxCoreActionModule,
|
|
6804
|
+
DbxPromptModule,
|
|
6805
|
+
DbxButtonModule,
|
|
6806
|
+
DbxReadableErrorModule
|
|
6807
|
+
]] });
|
|
6808
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionSnackbarModule, decorators: [{
|
|
6809
|
+
type: NgModule,
|
|
6810
|
+
args: [{
|
|
6811
|
+
imports: [
|
|
6812
|
+
CommonModule,
|
|
6813
|
+
DbxStyleLayoutModule,
|
|
6814
|
+
DbxCoreActionModule,
|
|
6815
|
+
DbxPromptModule,
|
|
6816
|
+
DbxButtonModule,
|
|
6817
|
+
DbxReadableErrorModule
|
|
6818
|
+
],
|
|
6819
|
+
declarations: [
|
|
6820
|
+
DbxActionSnackbarComponent,
|
|
6821
|
+
DbxActionSnackbarDirective
|
|
6822
|
+
],
|
|
6823
|
+
exports: [
|
|
6824
|
+
DbxActionSnackbarComponent,
|
|
6825
|
+
DbxActionSnackbarDirective
|
|
6826
|
+
]
|
|
6827
|
+
}]
|
|
6828
|
+
}] });
|
|
6829
|
+
|
|
6443
6830
|
var DbxActionTransitionSafetyDialogResult;
|
|
6444
6831
|
(function (DbxActionTransitionSafetyDialogResult) {
|
|
6445
6832
|
DbxActionTransitionSafetyDialogResult[DbxActionTransitionSafetyDialogResult["SUCCESS"] = 0] = "SUCCESS";
|
|
@@ -6477,7 +6864,7 @@ DbxActionUIRouterTransitionSafetyDialogComponent.ɵcmp = i0.ɵɵngDeclareCompone
|
|
|
6477
6864
|
<dbx-button-spacer></dbx-button-spacer>
|
|
6478
6865
|
</ng-container>
|
|
6479
6866
|
</dbx-prompt-confirm>
|
|
6480
|
-
`, isInline: true, components: [{ type: DbxPromptConfirmComponent, selector: "dbx-prompt-confirm", inputs: ["config"], outputs: ["confirm", "cancel"] }, { type: DbxReadableErrorComponent, selector: "dbx-error", inputs: ["error"] }, { type: DbxButtonComponent, selector: "dbx-button", inputs: ["type", "raised", "stroked", "flat", "color"] }, { type:
|
|
6867
|
+
`, isInline: true, components: [{ type: DbxPromptConfirmComponent, selector: "dbx-prompt-confirm", inputs: ["config"], outputs: ["confirm", "cancel"] }, { type: DbxReadableErrorComponent, selector: "dbx-error", inputs: ["error"] }, { type: DbxButtonComponent, selector: "dbx-button", inputs: ["type", "raised", "stroked", "flat", "color"] }], directives: [{ type: DbxActionErrorDirective, selector: "[dbxActionError]" }, { type: i1$2.DbxActionButtonDirective, selector: "[dbxActionButton]" }, { type: DbxButtonSpacerDirective, selector: "dbx-button-spacer,dbxButtonSpacer" }] });
|
|
6481
6868
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionUIRouterTransitionSafetyDialogComponent, decorators: [{
|
|
6482
6869
|
type: Component,
|
|
6483
6870
|
args: [{
|
|
@@ -6530,9 +6917,9 @@ class DbxActionTransitionSafetyDirective {
|
|
|
6530
6917
|
if (isModified) {
|
|
6531
6918
|
return race([
|
|
6532
6919
|
// Watch for success to occur. At that point, close everything.
|
|
6533
|
-
this.source.success$.pipe(first$1(), map
|
|
6534
|
-
this._handleIsModifiedState(transition).pipe(first$1(), map
|
|
6535
|
-
]).pipe(map
|
|
6920
|
+
this.source.success$.pipe(first$1(), map((x) => [true, undefined])),
|
|
6921
|
+
this._handleIsModifiedState(transition).pipe(first$1(), map((x) => [undefined, x]))
|
|
6922
|
+
]).pipe(map(([saveSuccess, handleResult]) => {
|
|
6536
6923
|
if (saveSuccess) {
|
|
6537
6924
|
return true;
|
|
6538
6925
|
}
|
|
@@ -6589,7 +6976,7 @@ class DbxActionTransitionSafetyDirective {
|
|
|
6589
6976
|
viewContainerRef: this.viewContainerRef
|
|
6590
6977
|
});
|
|
6591
6978
|
}
|
|
6592
|
-
return this._dialogRef.afterClosed().pipe(first$1(), map
|
|
6979
|
+
return this._dialogRef.afterClosed().pipe(first$1(), map((result = DbxActionTransitionSafetyDialogResult.STAY) => {
|
|
6593
6980
|
// Default to Stay if the user clicks outside.
|
|
6594
6981
|
switch (result) {
|
|
6595
6982
|
case DbxActionTransitionSafetyDialogResult.DISCARD:
|
|
@@ -6608,14 +6995,14 @@ class DbxActionTransitionSafetyDirective {
|
|
|
6608
6995
|
this._dialogRef = undefined;
|
|
6609
6996
|
}
|
|
6610
6997
|
}
|
|
6611
|
-
DbxActionTransitionSafetyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionTransitionSafetyDirective, deps: [{ token: i1.
|
|
6998
|
+
DbxActionTransitionSafetyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionTransitionSafetyDirective, deps: [{ token: i1$2.DbxActionContextStoreSourceInstance }, { token: i2$3.TransitionService }, { token: i0.ViewContainerRef }, { token: i1$3.MatDialog }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6612
6999
|
DbxActionTransitionSafetyDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: DbxActionTransitionSafetyDirective, selector: "[dbxActionTransitionSafety]", inputs: { inputSafetyType: ["dbxActionTransitionSafety", "inputSafetyType"] }, ngImport: i0 });
|
|
6613
7000
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionTransitionSafetyDirective, decorators: [{
|
|
6614
7001
|
type: Directive,
|
|
6615
7002
|
args: [{
|
|
6616
7003
|
selector: '[dbxActionTransitionSafety]',
|
|
6617
7004
|
}]
|
|
6618
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
7005
|
+
}], ctorParameters: function () { return [{ type: i1$2.DbxActionContextStoreSourceInstance }, { type: i2$3.TransitionService }, { type: i0.ViewContainerRef }, { type: i1$3.MatDialog }]; }, propDecorators: { inputSafetyType: [{
|
|
6619
7006
|
type: Input,
|
|
6620
7007
|
args: ['dbxActionTransitionSafety']
|
|
6621
7008
|
}] } });
|
|
@@ -6689,7 +7076,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
6689
7076
|
class DbxWebRootModule {
|
|
6690
7077
|
}
|
|
6691
7078
|
DbxWebRootModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxWebRootModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6692
|
-
DbxWebRootModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxWebRootModule, imports: [i1
|
|
7079
|
+
DbxWebRootModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxWebRootModule, imports: [i1.MatProgressButtonsModule] });
|
|
6693
7080
|
DbxWebRootModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxWebRootModule, imports: [[
|
|
6694
7081
|
MatProgressButtonsModule.forRoot()
|
|
6695
7082
|
]] });
|
|
@@ -6706,5 +7093,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
6706
7093
|
* Generated bundle index. Do not edit.
|
|
6707
7094
|
*/
|
|
6708
7095
|
|
|
6709
|
-
export { APP_POPUP_MINIMIZED_WIDTH, APP_POPUP_NORMAL_HEIGHT, APP_POPUP_NORMAL_WIDTH, AbstractDbxListViewDirective, AbstractDbxListWrapperDirective, AbstractDbxSegueAnchorDirective, AbstractDbxSelectionListWrapperDirective, AbstractDbxSelectionValueListViewItemComponent, AbstractDbxValueListViewDirective, AbstractDialogDirective, AbstractFilterPopoverButtonDirective, AbstractPopoverDirective, AbstractPopoverRefDirective, AbstractPopoverRefWithEventsDirective, AbstractPopupDirective, AbstractPromptConfirmDirective, AbstractSelectionValueListViewDirective, CompactContextStore, CompactMode, DBX_STYLE_DEFAULT_CONFIG_TOKEN, DBX_VALUE_LIST_VIEW_ITEM, DEFAULT_DBX_PROMPT_CONFIRM_DIALOG_CONFIG, DEFAULT_DBX_VALUE_LIST_CONFIG_MAP_VALUES, DEFAULT_FILTER_POPOVER_KEY, DEFAULT_LIST_WRAPPER_DIRECTIVE_TEMPLATE, DEFAULT_LOADING_PROGRESS_DIAMETER, DEFAULT_SCREEN_MEDIA_SERVICE_CONFIG, DEFAULT_STATIC_LIST_DIRECTIVE_TEMPLATE, DbxActionConfirmDirective, DbxActionErrorDirective, DbxActionKeyTriggerDirective, DbxActionModule, DbxActionSnackbarComponent, DbxActionTransitionSafetyDialogResult, DbxActionTransitionSafetyDirective, DbxActionUIRouterTransitionModule, DbxActionUIRouterTransitionSafetyDialogComponent, DbxAnchorComponent, DbxAnchorIconComponent, DbxAnchorLinkComponent, DbxAnchorListComponent, DbxAnchorListModule, DbxAnchorModule, DbxAngularRouterSegueAnchorComponent, DbxBarDirective, DbxBarHeaderComponent, DbxBarLayoutModule, DbxBasicLoadingComponent, DbxBlockLayoutModule, DbxButtonComponent, DbxButtonDisplayType, DbxButtonModule,
|
|
7096
|
+
export { APP_POPUP_MINIMIZED_WIDTH, APP_POPUP_NORMAL_HEIGHT, APP_POPUP_NORMAL_WIDTH, AbstractDbxListViewDirective, AbstractDbxListWrapperDirective, AbstractDbxSegueAnchorDirective, AbstractDbxSelectionListWrapperDirective, AbstractDbxSelectionValueListViewItemComponent, AbstractDbxValueListViewDirective, AbstractDialogDirective, AbstractFilterPopoverButtonDirective, AbstractPopoverDirective, AbstractPopoverRefDirective, AbstractPopoverRefWithEventsDirective, AbstractPopupDirective, AbstractPromptConfirmDirective, AbstractSelectionValueListViewDirective, CompactContextStore, CompactMode, DBX_ACTION_SNACKBAR_DEFAULTS, DBX_ACTION_SNACKBAR_SERVICE_CONFIG, DBX_STYLE_DEFAULT_CONFIG_TOKEN, DBX_VALUE_LIST_VIEW_ITEM, DEFAULT_DBX_PROMPT_CONFIRM_DIALOG_CONFIG, DEFAULT_DBX_VALUE_LIST_CONFIG_MAP_VALUES, DEFAULT_FILTER_POPOVER_KEY, DEFAULT_LIST_WRAPPER_DIRECTIVE_TEMPLATE, DEFAULT_LOADING_PROGRESS_DIAMETER, DEFAULT_SCREEN_MEDIA_SERVICE_CONFIG, DEFAULT_SNACKBAR_DIRECTIVE_DURATION, DEFAULT_STATIC_LIST_DIRECTIVE_TEMPLATE, DbxActionConfirmDirective, DbxActionErrorDirective, DbxActionKeyTriggerDirective, DbxActionLoadingContextDirective, DbxActionModule, DbxActionSnackbarComponent, DbxActionSnackbarDirective, DbxActionSnackbarModule, DbxActionSnackbarService, DbxActionTransitionSafetyDialogResult, DbxActionTransitionSafetyDirective, DbxActionUIRouterTransitionModule, DbxActionUIRouterTransitionSafetyDialogComponent, DbxAnchorComponent, DbxAnchorContentComponent, DbxAnchorIconComponent, DbxAnchorLinkComponent, DbxAnchorListComponent, DbxAnchorListModule, DbxAnchorModule, DbxAngularRouterSegueAnchorComponent, DbxBarDirective, DbxBarHeaderComponent, DbxBarLayoutModule, DbxBasicLoadingComponent, DbxBlockLayoutModule, DbxButtonComponent, DbxButtonDisplayType, DbxButtonModule, DbxButtonSpacerDirective, DbxCardBoxComponent, DbxCardBoxContainerComponent, DbxCardBoxLayoutModule, DbxColumnLayoutModule, DbxCompactDirective, DbxCompactLayoutModule, DbxContentBorderDirective, DbxContentBoxDirective, DbxContentContainerDirective, DbxContentDirective, DbxContentElevateDirective, DbxContentLayoutModule, DbxContentPageDirective, DbxDialogContentDirective, DbxDialogInteractionModule, DbxFilterInteractionModule, DbxFilterPopoverButtonComponent, DbxFilterPopoverComponent, DbxFilterWrapperComponent, DbxFlagComponent, DbxFlagLayoutModule, DbxFlagPromptComponent, DbxFlexGroupDirective, DbxFlexLayoutModule, DbxFlexSizeDirective, DbxHintComponent, DbxIconItemComponent, DbxIconSpacerDirective, DbxInteractionModule, DbxIntroActionSectionComponent, DbxItemLayoutModule, DbxKeypressModule, DbxLabelComponent, DbxLayoutModule, DbxLinkifyComponent, DbxListComponent, DbxListEmptyContentComponent, DbxListInternalContentDirective, DbxListLayoutModule, DbxListView, DbxLoadingComponent, DbxLoadingErrorDirective, DbxLoadingModule, DbxLoadingProgressComponent, DbxNavbarComponent, DbxNavbarModule, DbxNoteComponent, DbxNoticeComponent, DbxOkComponent, DbxOneColumnComponent, DbxOneColumnLayoutModule, DbxPagebarComponent, DbxPopoverActionButtonDirective, DbxPopoverActionDirective, DbxPopoverComponent, DbxPopoverComponentController, DbxPopoverContentComponent, DbxPopoverController, DbxPopoverControlsDirective, DbxPopoverCoordinatorComponent, DbxPopoverCoordinatorService, DbxPopoverHeaderComponent, DbxPopoverInteractionModule, DbxPopoverScrollContentComponent, DbxPopoverService, DbxPopupComponent, DbxPopupComponentController, DbxPopupContentComponent, DbxPopupControlButtonsComponent, DbxPopupController, DbxPopupControlsComponent, DbxPopupCoordinatorComponent, DbxPopupCoordinatorService, DbxPopupInteractionModule, DbxPopupService, DbxPopupWindowState, DbxPromptBoxComponent, DbxPromptComponent, DbxPromptConfirm, DbxPromptConfirmButtonDirective, DbxPromptConfirmComponent, DbxPromptConfirmDialogComponent, DbxPromptConfirmDirective, DbxPromptConfirmTypes, DbxPromptModule, DbxPromptPageComponent, DbxReadableErrorComponent, DbxReadableErrorModule, DbxRouterLayoutModule, DbxRouterWebProviderConfig, DbxScreenMediaService, DbxScreenMediaServiceConfig, DbxScreenModule, DbxSectionComponent, DbxSectionHeaderComponent, DbxSectionLayoutModule, DbxSectionPageComponent, DbxSelectionValueListItemViewComponent, DbxSelectionValueListViewComponent, DbxSetStyleDirective, DbxSidenavButtonComponent, DbxSidenavComponent, DbxSidenavModule, DbxSidenavPageComponent, DbxSidenavPagebarComponent, DbxSpacerDirective, DbxStepComponent, DbxStepLayoutModule, DbxStyleBodyDirective, DbxStyleDirective, DbxStyleLayoutModule, DbxStyleService, DbxSubSectionComponent, DbxSuccessComponent, DbxTextChipsComponent, DbxTextModule, DbxTwoBlocksComponent, DbxTwoColumnLayoutModule, DbxTwoColumnsBackDirective, DbxTwoColumnsColumnHeadComponent, DbxTwoColumnsComponent, DbxTwoColumnsFullLeftDirective, DbxTwoColumnsRightComponent, DbxTwoColumnsSrefDirective, DbxUIRouterSegueAnchorComponent, DbxValueListViewComponent, DbxWarnComponent, DbxWebAngularRouterModule, DbxWebModule, DbxWebRootModule, DbxWebUIRouterModule, DbxWindowKeyDownListenerDirective, LoadingComponentState, PopoverPositionStrategy, PopupGlobalPositionStrategy, ProvideDbxListView, ProvideDbxPromptConfirm, ProvideTwoColumnsContext, SCREEN_MEDIA_WIDTH_TYPE_SIZE_MAP, SideNavDisplayMode, TwoColumnsContextStore, catchErrorServerParams, compactModeFromInput, compareScreenMediaWidthTypes, convertServerErrorParams, convertToPOJOServerErrorResponse, convertToServerErrorResponse, makeDbxActionSnackbarDisplayConfigGeneratorFunction, mapCompactModeObs, mapItemValuesToValueListItemConfig, mapValuesToValuesListItemConfigObs, screenMediaWidthTypeIsActive };
|
|
6710
7097
|
//# sourceMappingURL=dereekb-dbx-web.mjs.map
|