@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,22 +1,27 @@
|
|
|
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
|
|
15
|
-
import * as i1$2 from '@angular/material/toolbar';
|
|
20
|
+
import * as i1$5 from '@angular/material/toolbar';
|
|
16
21
|
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
17
|
-
import * as
|
|
22
|
+
import * as i1$4 from '@angular/material/icon';
|
|
18
23
|
import { MatIconModule } from '@angular/material/icon';
|
|
19
|
-
import * as i1$
|
|
24
|
+
import * as i1$6 from '@angular/material/list';
|
|
20
25
|
import { MatListModule } from '@angular/material/list';
|
|
21
26
|
import * as i7 from '@angular/material/tabs';
|
|
22
27
|
import { MatTabsModule } from '@angular/material/tabs';
|
|
@@ -26,41 +31,547 @@ import * as i4 from '@angular/material/divider';
|
|
|
26
31
|
import { MatDividerModule } from '@angular/material/divider';
|
|
27
32
|
import * as i6 from '@angular/material/core';
|
|
28
33
|
import { MatRippleModule } from '@angular/material/core';
|
|
29
|
-
import * as i1$
|
|
30
|
-
import * as i3$
|
|
34
|
+
import * as i1$7 from '@angular/cdk/layout';
|
|
35
|
+
import * as i3$1 from '@angular/material/sidenav';
|
|
31
36
|
import { MatSidenav, MatSidenavModule } from '@angular/material/sidenav';
|
|
32
37
|
import * as i2$1 from '@uirouter/angular';
|
|
33
38
|
import { UIRouterModule } from '@uirouter/angular';
|
|
34
|
-
import * as i1$
|
|
35
|
-
import { MatProgressButtonsModule } from 'mat-progress-buttons';
|
|
36
|
-
import * as i1$6 from 'angular-resize-event';
|
|
39
|
+
import * as i1$8 from 'angular-resize-event';
|
|
37
40
|
import { AngularResizeEventModule } from 'angular-resize-event';
|
|
38
41
|
import { ComponentStore } from '@ngrx/component-store';
|
|
39
42
|
import { isBoolean } from 'class-validator';
|
|
40
|
-
import * as i1$
|
|
43
|
+
import * as i1$9 from '@angular/material/progress-bar';
|
|
41
44
|
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
42
45
|
import * as i2$2 from '@angular/material/progress-spinner';
|
|
43
46
|
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
44
|
-
import * as i3$
|
|
47
|
+
import * as i3$2 from 'ngx-infinite-scroll';
|
|
45
48
|
import { InfiniteScrollModule } from 'ngx-infinite-scroll';
|
|
46
49
|
import { HttpErrorResponse } from '@angular/common/http';
|
|
47
50
|
import linkifyStr from 'linkify-string';
|
|
48
|
-
import * as i1$
|
|
49
|
-
import * as i1$
|
|
51
|
+
import * as i1$a from '@angular/platform-browser';
|
|
52
|
+
import * as i1$b from '@angular/material/chips';
|
|
50
53
|
import { MatChipsModule } from '@angular/material/chips';
|
|
51
|
-
import * as i3$
|
|
54
|
+
import * as i3$3 from '@angular/material/tooltip';
|
|
52
55
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
53
|
-
import * as i1$
|
|
56
|
+
import * as i1$c from 'ng-overlay-container';
|
|
54
57
|
import { NgOverlayContainerService, NgOverlayContainerModule } from 'ng-overlay-container';
|
|
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
|
+
var _a;
|
|
104
|
+
const buttonIcon = (this.icon) ? {
|
|
105
|
+
fontIcon: this.icon
|
|
106
|
+
} : undefined;
|
|
107
|
+
return {
|
|
108
|
+
fab: false,
|
|
109
|
+
active: this.working,
|
|
110
|
+
buttonIcon,
|
|
111
|
+
customClass: 'dbx-button ' + ((buttonIcon && !this.text) ? 'dbx-button-no-text' : ''),
|
|
112
|
+
// buttonIcon: icon,
|
|
113
|
+
text: (_a = this.text) !== null && _a !== void 0 ? _a : '',
|
|
114
|
+
buttonColor: this.color,
|
|
115
|
+
barColor: 'accent',
|
|
116
|
+
raised: this.raised,
|
|
117
|
+
stroked: this.stroked,
|
|
118
|
+
flat: this.flat,
|
|
119
|
+
mode: 'indeterminate',
|
|
120
|
+
spinnerSize: 18,
|
|
121
|
+
spinnerColor: 'accent',
|
|
122
|
+
// Only disabled if we're not working, in order to show the animation.
|
|
123
|
+
disabled: !this.working && this.disabled
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
DbxButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
128
|
+
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: `
|
|
129
|
+
<mat-spinner-button class="page-button" (btnClick)="clickButton()" [options]="btnOptions"></mat-spinner-button>
|
|
130
|
+
`, isInline: true, components: [{ type: i1.MatSpinnerButtonComponent, selector: "mat-spinner-button", inputs: ["options", "buttonId", "active", "disabled"], outputs: ["btnClick"] }] });
|
|
131
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonComponent, decorators: [{
|
|
132
|
+
type: Component,
|
|
133
|
+
args: [{
|
|
134
|
+
selector: 'dbx-button',
|
|
135
|
+
template: `
|
|
136
|
+
<mat-spinner-button class="page-button" (btnClick)="clickButton()" [options]="btnOptions"></mat-spinner-button>
|
|
137
|
+
`,
|
|
138
|
+
providers: ProvideDbxButton(DbxButtonComponent)
|
|
139
|
+
}]
|
|
140
|
+
}], propDecorators: { type: [{
|
|
141
|
+
type: Input
|
|
142
|
+
}], raised: [{
|
|
143
|
+
type: Input
|
|
144
|
+
}], stroked: [{
|
|
145
|
+
type: Input
|
|
146
|
+
}], flat: [{
|
|
147
|
+
type: Input
|
|
148
|
+
}], color: [{
|
|
149
|
+
type: Input
|
|
150
|
+
}] } });
|
|
151
|
+
|
|
152
|
+
class DbxSpacerDirective {
|
|
153
|
+
}
|
|
154
|
+
DbxSpacerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSpacerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
155
|
+
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 });
|
|
156
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSpacerDirective, decorators: [{
|
|
157
|
+
type: Directive,
|
|
158
|
+
args: [{
|
|
159
|
+
selector: 'dbx-spacer, [dbx-spacer]',
|
|
160
|
+
host: {
|
|
161
|
+
'class': 'dbx-spacer'
|
|
162
|
+
}
|
|
163
|
+
}]
|
|
164
|
+
}] });
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Button spacer directive.
|
|
168
|
+
*/
|
|
169
|
+
class DbxButtonSpacerDirective {
|
|
170
|
+
}
|
|
171
|
+
DbxButtonSpacerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonSpacerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
172
|
+
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 });
|
|
173
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonSpacerDirective, decorators: [{
|
|
174
|
+
type: Directive,
|
|
175
|
+
args: [{
|
|
176
|
+
selector: 'dbx-button-spacer,dbxButtonSpacer',
|
|
177
|
+
host: {
|
|
178
|
+
class: 'dbx-button-spacer d-inline'
|
|
179
|
+
}
|
|
180
|
+
}]
|
|
181
|
+
}] });
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Component for a snackbar that contains an action.
|
|
185
|
+
*/
|
|
186
|
+
class DbxActionSnackbarComponent extends AbstractSubscriptionDirective {
|
|
187
|
+
constructor(snackbar, data) {
|
|
188
|
+
var _a, _b, _c;
|
|
189
|
+
super();
|
|
190
|
+
this.snackbar = snackbar;
|
|
191
|
+
this.data = data;
|
|
192
|
+
this._durationTimeout = new Subject();
|
|
193
|
+
this._actionRef = new BehaviorSubject(undefined);
|
|
194
|
+
this.value$ = of(0); // value passed to the action.
|
|
195
|
+
this.sourceInstance$ = this._actionRef.pipe(filterMaybe(), map(x => x === null || x === void 0 ? void 0 : x.sourceInstance));
|
|
196
|
+
this.complete$ = this.sourceInstance$.pipe(switchMap(x => x.isSuccess$), startWith(false), shareReplay(1));
|
|
197
|
+
this.loadingStateType$ = this.sourceInstance$.pipe(switchMap(x => x.loadingStateType$), startWith(LoadingStateType.IDLE), shareReplay(1));
|
|
198
|
+
this.snackbarStatusClass$ = this.loadingStateType$.pipe(map((x) => {
|
|
199
|
+
let classes = 'dbx-action-snackbar-';
|
|
200
|
+
switch (x) {
|
|
201
|
+
case LoadingStateType.ERROR:
|
|
202
|
+
classes += 'error';
|
|
203
|
+
break;
|
|
204
|
+
case LoadingStateType.SUCCESS:
|
|
205
|
+
classes += 'success';
|
|
206
|
+
break;
|
|
207
|
+
default:
|
|
208
|
+
classes += 'idle';
|
|
209
|
+
break;
|
|
210
|
+
}
|
|
211
|
+
return classes;
|
|
212
|
+
}), distinctUntilChanged(), shareReplay(1));
|
|
213
|
+
this.dismissAfterActionCompletes = () => {
|
|
214
|
+
this.snackbar._dismissAfter(ms('3s'));
|
|
215
|
+
};
|
|
216
|
+
this.dismiss = () => {
|
|
217
|
+
this.snackbar.dismiss();
|
|
218
|
+
};
|
|
219
|
+
this.button = (_b = (_a = this.data.action) === null || _a === void 0 ? void 0 : _a.button) !== null && _b !== void 0 ? _b : this.data.button;
|
|
220
|
+
this._actionRef.next((_c = this.data.action) === null || _c === void 0 ? void 0 : _c.reference);
|
|
221
|
+
}
|
|
222
|
+
get action() {
|
|
223
|
+
return this.data.action;
|
|
224
|
+
}
|
|
225
|
+
get hasAction() {
|
|
226
|
+
return Boolean(this._actionRef.value);
|
|
227
|
+
}
|
|
228
|
+
get message() {
|
|
229
|
+
return this.data.message;
|
|
230
|
+
}
|
|
231
|
+
get actionConfig() {
|
|
232
|
+
return this.data.action;
|
|
233
|
+
}
|
|
234
|
+
ngOnInit() {
|
|
235
|
+
// Subscribe and close if the duration is up and the action state is idle.
|
|
236
|
+
this.sub = this._durationTimeout.pipe(switchMap((x) => this.loadingStateType$), filter(x => x === LoadingStateType.IDLE)).subscribe(() => {
|
|
237
|
+
this.dismiss();
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
ngOnDestroy() {
|
|
241
|
+
var _a;
|
|
242
|
+
super.ngOnDestroy();
|
|
243
|
+
(_a = this._actionRef.value) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
244
|
+
this._actionRef.complete();
|
|
245
|
+
this._durationTimeout.complete();
|
|
246
|
+
}
|
|
247
|
+
ngAfterViewInit() {
|
|
248
|
+
var _a, _b;
|
|
249
|
+
// Responsible for hiding itself if it has an action.
|
|
250
|
+
if (this.hasAction) {
|
|
251
|
+
setTimeout(() => {
|
|
252
|
+
this._durationTimeout.next();
|
|
253
|
+
}, (_b = (_a = this.action) === null || _a === void 0 ? void 0 : _a.duration) !== null && _b !== void 0 ? _b : ms('10s'));
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
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 });
|
|
258
|
+
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 } });
|
|
259
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionSnackbarComponent, decorators: [{
|
|
260
|
+
type: Component,
|
|
261
|
+
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" }]
|
|
262
|
+
}], ctorParameters: function () {
|
|
263
|
+
return [{ type: i1$1.MatSnackBarRef }, { type: undefined, decorators: [{
|
|
264
|
+
type: Inject,
|
|
265
|
+
args: [MAT_SNACK_BAR_DATA]
|
|
266
|
+
}] }];
|
|
267
|
+
} });
|
|
268
|
+
|
|
269
|
+
const DBX_ACTION_SNACKBAR_DEFAULTS = {
|
|
270
|
+
'create': {
|
|
271
|
+
loading: {
|
|
272
|
+
message: 'Creating...'
|
|
273
|
+
},
|
|
274
|
+
success: {
|
|
275
|
+
button: 'Ok',
|
|
276
|
+
message: 'Created'
|
|
277
|
+
},
|
|
278
|
+
error: {
|
|
279
|
+
button: 'X',
|
|
280
|
+
message: 'Create Failed'
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
'save': {
|
|
284
|
+
loading: {
|
|
285
|
+
message: 'Saving...'
|
|
286
|
+
},
|
|
287
|
+
success: {
|
|
288
|
+
button: 'Ok',
|
|
289
|
+
message: 'Saved'
|
|
290
|
+
},
|
|
291
|
+
error: {
|
|
292
|
+
button: 'X',
|
|
293
|
+
message: 'Save Failed'
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
'merge': {
|
|
297
|
+
loading: {
|
|
298
|
+
message: 'Merging...'
|
|
299
|
+
},
|
|
300
|
+
success: {
|
|
301
|
+
button: 'Ok',
|
|
302
|
+
message: 'Merged'
|
|
303
|
+
},
|
|
304
|
+
error: {
|
|
305
|
+
button: 'X',
|
|
306
|
+
message: 'Merge Failed'
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
'delete': {
|
|
310
|
+
loading: {
|
|
311
|
+
message: 'Deleting...'
|
|
312
|
+
},
|
|
313
|
+
success: {
|
|
314
|
+
button: 'Ok',
|
|
315
|
+
message: 'Deleted'
|
|
316
|
+
},
|
|
317
|
+
error: {
|
|
318
|
+
button: 'X',
|
|
319
|
+
message: 'Delete Failed'
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
'cancel': {
|
|
323
|
+
loading: {
|
|
324
|
+
message: 'Cancelling...'
|
|
325
|
+
},
|
|
326
|
+
success: {
|
|
327
|
+
button: 'Ok',
|
|
328
|
+
message: 'Canceled'
|
|
329
|
+
},
|
|
330
|
+
error: {
|
|
331
|
+
button: 'X',
|
|
332
|
+
message: 'Cancel Failed'
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
'restore': {
|
|
336
|
+
loading: {
|
|
337
|
+
message: 'Restoring...'
|
|
338
|
+
},
|
|
339
|
+
success: {
|
|
340
|
+
button: 'Ok',
|
|
341
|
+
message: 'Restored'
|
|
342
|
+
},
|
|
343
|
+
error: {
|
|
344
|
+
button: 'X',
|
|
345
|
+
message: 'Restore Failed'
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
'refresh': {
|
|
349
|
+
loading: {
|
|
350
|
+
message: 'Refreshing...'
|
|
351
|
+
},
|
|
352
|
+
success: {
|
|
353
|
+
button: 'Ok',
|
|
354
|
+
message: 'Refreshed'
|
|
355
|
+
},
|
|
356
|
+
error: {
|
|
357
|
+
button: 'X',
|
|
358
|
+
message: 'Refresh Failed'
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
'do': {
|
|
362
|
+
loading: {
|
|
363
|
+
message: 'Doing...'
|
|
364
|
+
},
|
|
365
|
+
success: {
|
|
366
|
+
button: 'Ok',
|
|
367
|
+
message: 'Done'
|
|
368
|
+
},
|
|
369
|
+
error: {
|
|
370
|
+
button: 'X',
|
|
371
|
+
message: 'Failed'
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
};
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* Creates a DbxActionSnackbarDisplayConfigGeneratorFunction from the input config.
|
|
378
|
+
*
|
|
379
|
+
* @param config
|
|
380
|
+
* @returns
|
|
381
|
+
*/
|
|
382
|
+
function makeDbxActionSnackbarDisplayConfigGeneratorFunction(config) {
|
|
383
|
+
return (input) => {
|
|
384
|
+
const { event, undo: undoInput } = input;
|
|
385
|
+
const type = event.type;
|
|
386
|
+
const eventConfigObjectOrGetter = config[type];
|
|
387
|
+
const eventConfig = eventConfigObjectOrGetter && getValueFromObjectOrGetter(eventConfigObjectOrGetter);
|
|
388
|
+
let result;
|
|
389
|
+
if (eventConfig) {
|
|
390
|
+
const { undoButtonText } = eventConfig;
|
|
391
|
+
result = {
|
|
392
|
+
button: eventConfig.button,
|
|
393
|
+
message: eventConfig.message,
|
|
394
|
+
snackbar: eventConfig.snackbar
|
|
395
|
+
};
|
|
396
|
+
if (undoInput) {
|
|
397
|
+
let reference;
|
|
398
|
+
if (typeof undoInput === 'object') {
|
|
399
|
+
reference = undoInput.getUndoAction();
|
|
400
|
+
}
|
|
401
|
+
else {
|
|
402
|
+
reference = getValueFromObjectOrGetter(undoInput);
|
|
403
|
+
}
|
|
404
|
+
if (!reference) {
|
|
405
|
+
console.error('Expected action source reference was not provided to undo...');
|
|
406
|
+
}
|
|
407
|
+
else {
|
|
408
|
+
result.action = {
|
|
409
|
+
button: undoButtonText !== null && undoButtonText !== void 0 ? undoButtonText : 'Undo',
|
|
410
|
+
reference
|
|
411
|
+
};
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
return result;
|
|
416
|
+
};
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
const DBX_ACTION_SNACKBAR_SERVICE_CONFIG = new InjectionToken('DbxActionSnackbarServiceConfig');
|
|
420
|
+
const DEFAULT_SNACKBAR_DIRECTIVE_DURATION = ms('4s');
|
|
421
|
+
/**
|
|
422
|
+
* Used for managing/configuring the snackbar default values and pushing snackbar events.
|
|
423
|
+
*/
|
|
424
|
+
class DbxActionSnackbarService {
|
|
425
|
+
constructor(matSnackBar, inputConfig) {
|
|
426
|
+
var _a;
|
|
427
|
+
this.matSnackBar = matSnackBar;
|
|
428
|
+
inputConfig = inputConfig !== null && inputConfig !== void 0 ? inputConfig : {};
|
|
429
|
+
this.config = Object.assign(Object.assign({}, inputConfig), { componentClass: (_a = inputConfig.componentClass) !== null && _a !== void 0 ? _a : DbxActionSnackbarComponent, defaultDuration: inputConfig.defaultDuration || DEFAULT_SNACKBAR_DIRECTIVE_DURATION, eventTypeConfigs: mergeObjects([DBX_ACTION_SNACKBAR_DEFAULTS, inputConfig.eventTypeConfigs]) });
|
|
430
|
+
}
|
|
431
|
+
get componentClass() {
|
|
432
|
+
return this.config.componentClass;
|
|
433
|
+
}
|
|
434
|
+
get eventTypeConfigs() {
|
|
435
|
+
return this.config.eventTypeConfigs;
|
|
436
|
+
}
|
|
437
|
+
/**
|
|
438
|
+
* Opens a new snackbar given the input configuration.
|
|
439
|
+
*
|
|
440
|
+
* @param config
|
|
441
|
+
* @returns
|
|
442
|
+
*/
|
|
443
|
+
openSnackbar(config) {
|
|
444
|
+
var _a, _b, _c, _d;
|
|
445
|
+
const { snackbar: inputSnackbarConfig } = config;
|
|
446
|
+
const { snackbar: defaultSnackbarConfig, defaultDuration } = this.config;
|
|
447
|
+
const matSnackbarConfig = Object.assign(Object.assign(Object.assign({}, defaultSnackbarConfig), inputSnackbarConfig), { data: config });
|
|
448
|
+
const duration = (_d = (_c = (_b = (_a = config.action) === null || _a === void 0 ? void 0 : _a.duration) !== null && _b !== void 0 ? _b : matSnackbarConfig.duration) !== null && _c !== void 0 ? _c : defaultDuration) !== null && _d !== void 0 ? _d : DEFAULT_SNACKBAR_DIRECTIVE_DURATION;
|
|
449
|
+
if (config.action) {
|
|
450
|
+
// Set the duration on the action
|
|
451
|
+
config.action = Object.assign(Object.assign({}, config.action), { duration });
|
|
452
|
+
}
|
|
453
|
+
else {
|
|
454
|
+
// The snackbar does not close here. The duration is passed to the component and it will close it.
|
|
455
|
+
matSnackbarConfig.duration = duration;
|
|
456
|
+
}
|
|
457
|
+
return this.matSnackBar.openFromComponent(this.componentClass, matSnackbarConfig);
|
|
458
|
+
}
|
|
459
|
+
generateDisplayConfig(type, input) {
|
|
460
|
+
const configForType = this.eventTypeConfigs[type !== null && type !== void 0 ? type : 'none'];
|
|
461
|
+
let result;
|
|
462
|
+
if (configForType) {
|
|
463
|
+
result = makeDbxActionSnackbarDisplayConfigGeneratorFunction(configForType)(input);
|
|
464
|
+
}
|
|
465
|
+
return result;
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
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 });
|
|
469
|
+
DbxActionSnackbarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionSnackbarService, providedIn: 'root' });
|
|
470
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionSnackbarService, decorators: [{
|
|
471
|
+
type: Injectable,
|
|
472
|
+
args: [{
|
|
473
|
+
providedIn: 'root'
|
|
474
|
+
}]
|
|
475
|
+
}], ctorParameters: function () {
|
|
476
|
+
return [{ type: i1$1.MatSnackBar }, { type: undefined, decorators: [{
|
|
477
|
+
type: Optional
|
|
478
|
+
}, {
|
|
479
|
+
type: Inject,
|
|
480
|
+
args: [DBX_ACTION_SNACKBAR_SERVICE_CONFIG]
|
|
481
|
+
}] }];
|
|
482
|
+
} });
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* Action directive that displays a snackbar when the action context hits a certain state.
|
|
486
|
+
*/
|
|
487
|
+
class DbxActionSnackbarDirective extends AbstractSubscriptionDirective {
|
|
488
|
+
constructor(source, dbxActionSnackbarService) {
|
|
489
|
+
super();
|
|
490
|
+
this.source = source;
|
|
491
|
+
this.dbxActionSnackbarService = dbxActionSnackbarService;
|
|
492
|
+
}
|
|
493
|
+
get snackbarFunction() {
|
|
494
|
+
return this._snackbarFunction;
|
|
495
|
+
}
|
|
496
|
+
set snackbarFunction(snackbarFunction) {
|
|
497
|
+
if (snackbarFunction) {
|
|
498
|
+
this._snackbarFunction = snackbarFunction;
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
ngOnInit() {
|
|
502
|
+
this.sub = this.source.pipeStore((store) => store.loadingState$).subscribe((loadingState) => {
|
|
503
|
+
const event = { value: loadingState.value, error: loadingState.error, type: loadingStateType(loadingState) };
|
|
504
|
+
const config = this.buildConfigurationForEvent(event);
|
|
505
|
+
if (config) {
|
|
506
|
+
this.showSnackbarForConfiguration(config, event);
|
|
507
|
+
}
|
|
508
|
+
});
|
|
509
|
+
}
|
|
510
|
+
buildConfigurationForEvent(event) {
|
|
511
|
+
const input = {
|
|
512
|
+
event,
|
|
513
|
+
undo: event.type === LoadingStateType.SUCCESS ? this.dbxActionSnackbarUndo : undefined // only show undo on success.
|
|
514
|
+
};
|
|
515
|
+
return (this.snackbarFunction) ? this.snackbarFunction(input) : this.dbxActionSnackbarService.generateDisplayConfig(this.dbxActionSnackbarDefault, input);
|
|
516
|
+
}
|
|
517
|
+
showSnackbarForConfiguration(config, event) {
|
|
518
|
+
this.dbxActionSnackbarService.openSnackbar(config);
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
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 });
|
|
522
|
+
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 });
|
|
523
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionSnackbarDirective, decorators: [{
|
|
524
|
+
type: Directive,
|
|
525
|
+
args: [{
|
|
526
|
+
selector: '[dbxActionSnackbar]'
|
|
527
|
+
}]
|
|
528
|
+
}], ctorParameters: function () {
|
|
529
|
+
return [{ type: i1$2.DbxActionContextStoreSourceInstance, decorators: [{
|
|
530
|
+
type: Host
|
|
531
|
+
}] }, { type: DbxActionSnackbarService }];
|
|
532
|
+
}, 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
|
|
@@ -87,10 +598,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
87
598
|
}, {
|
|
88
599
|
type: Inject,
|
|
89
600
|
args: [MAT_DIALOG_DATA]
|
|
90
|
-
}] }, { type: i1$
|
|
601
|
+
}] }, { type: i1$3.MatDialogRef, decorators: [{
|
|
91
602
|
type: Inject,
|
|
92
603
|
args: [MatDialogRef]
|
|
93
|
-
}] }, { type: i1.DbxRouterTransitionService }, { type: i0.NgZone }];
|
|
604
|
+
}] }, { type: i1$2.DbxRouterTransitionService }, { type: i0.NgZone }];
|
|
94
605
|
} });
|
|
95
606
|
|
|
96
607
|
/**
|
|
@@ -144,7 +655,7 @@ class DbxStyleService {
|
|
|
144
655
|
this._suffix.next(suffix);
|
|
145
656
|
}
|
|
146
657
|
getStyleWithConfig(configObs) {
|
|
147
|
-
return combineLatest([configObs, this.suffix$]).pipe(map(([config, suffix]) => {
|
|
658
|
+
return combineLatest([configObs, this.suffix$]).pipe(map$1(([config, suffix]) => {
|
|
148
659
|
let style = config.style;
|
|
149
660
|
if (suffix != null && config.suffixes) {
|
|
150
661
|
const sanitizedSuffix = ((suffix[0] === '-') ? suffix === null || suffix === void 0 ? void 0 : suffix.slice(1) : suffix);
|
|
@@ -203,8 +714,8 @@ class DbxSetStyleDirective extends AbstractSubscriptionDirective {
|
|
|
203
714
|
this._suffixes = new BehaviorSubject(undefined);
|
|
204
715
|
this._style = new BehaviorSubject(undefined);
|
|
205
716
|
this.style$ = this._style.pipe(filterMaybe());
|
|
206
|
-
this.suffixes$ = this._suffixes.pipe(distinctUntilChanged(), map(splitCommaSeparatedStringToSet));
|
|
207
|
-
this.config$ = combineLatest([this.style$, this.suffixes$]).pipe(map(([style, suffixes]) => ({ style, suffixes })), shareReplay(1));
|
|
717
|
+
this.suffixes$ = this._suffixes.pipe(distinctUntilChanged(), map$1(splitCommaSeparatedStringToSet));
|
|
718
|
+
this.config$ = combineLatest([this.style$, this.suffixes$]).pipe(map$1(([style, suffixes]) => ({ style, suffixes })), shareReplay(1));
|
|
208
719
|
this.outputStyle$ = this.styleService.getStyleWithConfig(this.config$);
|
|
209
720
|
this.outputStyle = '';
|
|
210
721
|
}
|
|
@@ -265,31 +776,17 @@ class DbxStyleDirective extends AbstractSubscriptionDirective {
|
|
|
265
776
|
this.style = '';
|
|
266
777
|
}
|
|
267
778
|
}
|
|
268
|
-
DbxStyleDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxStyleDirective, deps: [{ token: DbxStyleService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
269
|
-
DbxStyleDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: DbxStyleDirective, selector: "dbx-style, [dbx-style], .dbx-style", host: { properties: { "class": "style" } }, usesInheritance: true, ngImport: i0 });
|
|
270
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxStyleDirective, decorators: [{
|
|
271
|
-
type: Directive,
|
|
272
|
-
args: [{
|
|
273
|
-
selector: 'dbx-style, [dbx-style], .dbx-style',
|
|
274
|
-
host: {
|
|
275
|
-
'[class]': 'style'
|
|
276
|
-
}
|
|
277
|
-
}]
|
|
278
|
-
}], ctorParameters: function () { return [{ type: DbxStyleService }, { type: i0.ChangeDetectorRef }]; } });
|
|
279
|
-
|
|
280
|
-
class DbxSpacerDirective {
|
|
281
|
-
}
|
|
282
|
-
DbxSpacerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSpacerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
283
|
-
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 });
|
|
284
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSpacerDirective, decorators: [{
|
|
779
|
+
DbxStyleDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxStyleDirective, deps: [{ token: DbxStyleService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
780
|
+
DbxStyleDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: DbxStyleDirective, selector: "dbx-style, [dbx-style], .dbx-style", host: { properties: { "class": "style" } }, usesInheritance: true, ngImport: i0 });
|
|
781
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxStyleDirective, decorators: [{
|
|
285
782
|
type: Directive,
|
|
286
783
|
args: [{
|
|
287
|
-
selector: 'dbx-
|
|
784
|
+
selector: 'dbx-style, [dbx-style], .dbx-style',
|
|
288
785
|
host: {
|
|
289
|
-
'class': '
|
|
786
|
+
'[class]': 'style'
|
|
290
787
|
}
|
|
291
788
|
}]
|
|
292
|
-
}] });
|
|
789
|
+
}], ctorParameters: function () { return [{ type: DbxStyleService }, { type: i0.ChangeDetectorRef }]; } });
|
|
293
790
|
|
|
294
791
|
/**
|
|
295
792
|
* Used to style the body document using the style provided by DbxStyleService.
|
|
@@ -476,7 +973,7 @@ DbxBarHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
476
973
|
<mat-icon class="button-spacer" *ngIf="icon">{{ icon }}</mat-icon>
|
|
477
974
|
<span *ngIf="text">{{ text }}</span>
|
|
478
975
|
</dbx-bar>
|
|
479
|
-
`, isInline: true, components: [{ type:
|
|
976
|
+
`, 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"] }] });
|
|
480
977
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxBarHeaderComponent, decorators: [{
|
|
481
978
|
type: Component,
|
|
482
979
|
args: [{
|
|
@@ -502,7 +999,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
502
999
|
class DbxPagebarComponent {
|
|
503
1000
|
}
|
|
504
1001
|
DbxPagebarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPagebarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
505
|
-
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$
|
|
1002
|
+
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"] }] });
|
|
506
1003
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPagebarComponent, decorators: [{
|
|
507
1004
|
type: Component,
|
|
508
1005
|
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" }]
|
|
@@ -561,8 +1058,8 @@ class DbxAnchorComponent extends AbstractDbxAnchorDirective {
|
|
|
561
1058
|
this.dbNgxRouterWebProviderConfig = dbNgxRouterWebProviderConfig;
|
|
562
1059
|
this._templateRef = new BehaviorSubject(undefined);
|
|
563
1060
|
this.templateRef$ = this._templateRef.pipe(skipFirstMaybe(), shareReplay$1(1));
|
|
564
|
-
this.url$ = this.anchor$.pipe(map
|
|
565
|
-
this.target$ = this.anchor$.pipe(map
|
|
1061
|
+
this.url$ = this.anchor$.pipe(map(x => x === null || x === void 0 ? void 0 : x.url), distinctUntilChanged$1(), shareReplay$1(1));
|
|
1062
|
+
this.target$ = this.anchor$.pipe(map(x => x === null || x === void 0 ? void 0 : x.target), distinctUntilChanged$1(), shareReplay$1(1));
|
|
566
1063
|
}
|
|
567
1064
|
get templateRef() {
|
|
568
1065
|
return this._templateRef.value;
|
|
@@ -579,7 +1076,7 @@ class DbxAnchorComponent extends AbstractDbxAnchorDirective {
|
|
|
579
1076
|
}
|
|
580
1077
|
}
|
|
581
1078
|
DbxAnchorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxAnchorComponent, deps: [{ token: DbxRouterWebProviderConfig }], target: i0.ɵɵFactoryTarget.Component });
|
|
582
|
-
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
|
|
1079
|
+
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 } });
|
|
583
1080
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxAnchorComponent, decorators: [{
|
|
584
1081
|
type: Component,
|
|
585
1082
|
args: [{ selector: 'dbx-anchor, [dbx-anchor]', host: {
|
|
@@ -603,7 +1100,7 @@ DbxAnchorIconComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
603
1100
|
<dbx-anchor [anchor]="anchor">
|
|
604
1101
|
<button mat-icon-button><mat-icon>{{ anchor?.icon }}</mat-icon></button>
|
|
605
1102
|
</dbx-anchor>
|
|
606
|
-
`, 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:
|
|
1103
|
+
`, 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"] }] });
|
|
607
1104
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxAnchorIconComponent, decorators: [{
|
|
608
1105
|
type: Component,
|
|
609
1106
|
args: [{
|
|
@@ -664,17 +1161,36 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
664
1161
|
type: Input
|
|
665
1162
|
}] } });
|
|
666
1163
|
|
|
1164
|
+
/**
|
|
1165
|
+
* Component that displays an anchor and a span with the title.
|
|
1166
|
+
*/
|
|
1167
|
+
class DbxAnchorContentComponent {
|
|
1168
|
+
}
|
|
1169
|
+
DbxAnchorContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxAnchorContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1170
|
+
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"] }] });
|
|
1171
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxAnchorContentComponent, decorators: [{
|
|
1172
|
+
type: Component,
|
|
1173
|
+
args: [{
|
|
1174
|
+
selector: 'dbx-anchor-content',
|
|
1175
|
+
template: `<mat-icon *ngIf="anchor?.icon">{{ anchor?.icon }}</mat-icon><span *ngIf="anchor?.title">{{ anchor?.title }}</span>`
|
|
1176
|
+
}]
|
|
1177
|
+
}], propDecorators: { anchor: [{
|
|
1178
|
+
type: Input
|
|
1179
|
+
}] } });
|
|
1180
|
+
|
|
667
1181
|
class DbxAnchorModule {
|
|
668
1182
|
}
|
|
669
1183
|
DbxAnchorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxAnchorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
670
1184
|
DbxAnchorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxAnchorModule, declarations: [DbxAnchorComponent,
|
|
671
1185
|
DbxAnchorIconComponent,
|
|
672
|
-
DbxAnchorLinkComponent
|
|
1186
|
+
DbxAnchorLinkComponent,
|
|
1187
|
+
DbxAnchorContentComponent], imports: [CommonModule,
|
|
673
1188
|
MatIconModule,
|
|
674
1189
|
MatButtonModule,
|
|
675
1190
|
DbxInjectedComponentModule], exports: [DbxAnchorComponent,
|
|
676
1191
|
DbxAnchorIconComponent,
|
|
677
|
-
DbxAnchorLinkComponent
|
|
1192
|
+
DbxAnchorLinkComponent,
|
|
1193
|
+
DbxAnchorContentComponent] });
|
|
678
1194
|
DbxAnchorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxAnchorModule, imports: [[
|
|
679
1195
|
CommonModule,
|
|
680
1196
|
MatIconModule,
|
|
@@ -693,12 +1209,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
693
1209
|
declarations: [
|
|
694
1210
|
DbxAnchorComponent,
|
|
695
1211
|
DbxAnchorIconComponent,
|
|
696
|
-
DbxAnchorLinkComponent
|
|
1212
|
+
DbxAnchorLinkComponent,
|
|
1213
|
+
DbxAnchorContentComponent
|
|
697
1214
|
],
|
|
698
1215
|
exports: [
|
|
699
1216
|
DbxAnchorComponent,
|
|
700
1217
|
DbxAnchorIconComponent,
|
|
701
|
-
DbxAnchorLinkComponent
|
|
1218
|
+
DbxAnchorLinkComponent,
|
|
1219
|
+
DbxAnchorContentComponent
|
|
702
1220
|
]
|
|
703
1221
|
}]
|
|
704
1222
|
}] });
|
|
@@ -710,10 +1228,10 @@ class AbstractDbxSegueAnchorDirective {
|
|
|
710
1228
|
constructor(parent) {
|
|
711
1229
|
this.parent = parent;
|
|
712
1230
|
this.target$ = this.parent.target$;
|
|
713
|
-
this.ref$ = this.parent.anchor$.pipe(map
|
|
714
|
-
this.refParams$ = this.parent.anchor$.pipe(map
|
|
715
|
-
this.refOptions$ = this.parent.anchor$.pipe(map
|
|
716
|
-
this.template$ = this.parent.templateRef$.pipe(distinctUntilChanged$1(), map
|
|
1231
|
+
this.ref$ = this.parent.anchor$.pipe(map(x => x === null || x === void 0 ? void 0 : x.ref), distinctUntilChanged$1(), shareReplay$1(1));
|
|
1232
|
+
this.refParams$ = this.parent.anchor$.pipe(map(x => x === null || x === void 0 ? void 0 : x.refParams), distinctUntilChanged$1(), shareReplay$1(1));
|
|
1233
|
+
this.refOptions$ = this.parent.anchor$.pipe(map(x => x === null || x === void 0 ? void 0 : x.refOptions), distinctUntilChanged$1(), shareReplay$1(1));
|
|
1234
|
+
this.template$ = this.parent.templateRef$.pipe(distinctUntilChanged$1(), map(templateRef => ({
|
|
717
1235
|
templateRef
|
|
718
1236
|
})), shareReplay$1(1));
|
|
719
1237
|
}
|
|
@@ -733,7 +1251,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
733
1251
|
class DbxAnchorListComponent {
|
|
734
1252
|
constructor() {
|
|
735
1253
|
this._anchors = new BehaviorSubject([]);
|
|
736
|
-
this.expandedAnchors$ = this._anchors.pipe(distinctUntilChanged(), map(x => expandClickableAnchorLinkTrees(x)), shareReplay(1));
|
|
1254
|
+
this.expandedAnchors$ = this._anchors.pipe(distinctUntilChanged(), map$1(x => expandClickableAnchorLinkTrees(x)), shareReplay(1));
|
|
737
1255
|
}
|
|
738
1256
|
set anchors(anchors) {
|
|
739
1257
|
this._anchors.next(anchors !== null && anchors !== void 0 ? anchors : []);
|
|
@@ -743,7 +1261,7 @@ class DbxAnchorListComponent {
|
|
|
743
1261
|
}
|
|
744
1262
|
}
|
|
745
1263
|
DbxAnchorListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxAnchorListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
746
|
-
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$
|
|
1264
|
+
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 } });
|
|
747
1265
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxAnchorListComponent, decorators: [{
|
|
748
1266
|
type: Component,
|
|
749
1267
|
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" }]
|
|
@@ -833,8 +1351,8 @@ class DbxScreenMediaService {
|
|
|
833
1351
|
this._media = _media;
|
|
834
1352
|
this._updateWidth = new Subject();
|
|
835
1353
|
this._updateHeight = new Subject();
|
|
836
|
-
this.widthType$ = this._updateWidth.pipe(initialize(() => this._updateWidth.next()), throttleTime(100, undefined, { leading: true, trailing: true }), map(() => this._readWidthType()), distinctUntilChanged(), shareReplay(1));
|
|
837
|
-
this.heightType$ = this._updateWidth.pipe(initialize(() => this._updateHeight.next()), throttleTime(100, undefined, { leading: true, trailing: true }), map(() => this._readHeightType()), distinctUntilChanged(), shareReplay(1));
|
|
1354
|
+
this.widthType$ = this._updateWidth.pipe(initialize(() => this._updateWidth.next()), throttleTime(100, undefined, { leading: true, trailing: true }), map$1(() => this._readWidthType()), distinctUntilChanged(), shareReplay(1));
|
|
1355
|
+
this.heightType$ = this._updateWidth.pipe(initialize(() => this._updateHeight.next()), throttleTime(100, undefined, { leading: true, trailing: true }), map$1(() => this._readHeightType()), distinctUntilChanged(), shareReplay(1));
|
|
838
1356
|
const { microScreenWidthMax, smallScreenWidthMax, tabletScreenWidthMax, largeScreenWidthMax } = config;
|
|
839
1357
|
this._microQuery = this._media.matchMedia(`screen and (max-width:${microScreenWidthMax}px)`);
|
|
840
1358
|
this._smallQuery = this._media.matchMedia(`screen and (max-width:${smallScreenWidthMax}px)`);
|
|
@@ -864,7 +1382,7 @@ class DbxScreenMediaService {
|
|
|
864
1382
|
* @returns
|
|
865
1383
|
*/
|
|
866
1384
|
isBreakpointActive(inputBreakpoint) {
|
|
867
|
-
return combineLatest([this.widthType$, asObservable(inputBreakpoint)]).pipe(map(([current, breakpoint]) => screenMediaWidthTypeIsActive(current, breakpoint)), distinctUntilChanged(), shareReplay(1));
|
|
1385
|
+
return combineLatest([this.widthType$, asObservable(inputBreakpoint)]).pipe(map$1(([current, breakpoint]) => screenMediaWidthTypeIsActive(current, breakpoint)), distinctUntilChanged(), shareReplay(1));
|
|
868
1386
|
}
|
|
869
1387
|
_readWidthType() {
|
|
870
1388
|
let width;
|
|
@@ -894,11 +1412,11 @@ class DbxScreenMediaService {
|
|
|
894
1412
|
}
|
|
895
1413
|
}
|
|
896
1414
|
}
|
|
897
|
-
DbxScreenMediaService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxScreenMediaService, deps: [{ token: i1$
|
|
1415
|
+
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 });
|
|
898
1416
|
DbxScreenMediaService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxScreenMediaService });
|
|
899
1417
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxScreenMediaService, decorators: [{
|
|
900
1418
|
type: Injectable
|
|
901
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
1419
|
+
}], ctorParameters: function () { return [{ type: i1$7.MediaMatcher }, { type: DbxScreenMediaServiceConfig }]; } });
|
|
902
1420
|
|
|
903
1421
|
/**
|
|
904
1422
|
* Component that displays a navbar.
|
|
@@ -914,10 +1432,10 @@ class DbxNavbarComponent extends AbstractTransitionDirective {
|
|
|
914
1432
|
this._breakpoint = new BehaviorSubject('large');
|
|
915
1433
|
this._anchors = new BehaviorSubject([]);
|
|
916
1434
|
this.isBreakpointActive$ = this._dbxScreenMediaService.isBreakpointActive(this._breakpoint);
|
|
917
|
-
this.mode$ = combineLatest([this._inputMode, this.isBreakpointActive$]).pipe(map(([inputMode, breakpointActive]) => {
|
|
1435
|
+
this.mode$ = combineLatest([this._inputMode, this.isBreakpointActive$]).pipe(map$1(([inputMode, breakpointActive]) => {
|
|
918
1436
|
return (breakpointActive) ? (inputMode !== null && inputMode !== void 0 ? inputMode : 'bar') : 'button';
|
|
919
1437
|
}), distinctUntilChanged(), tapDetectChanges(this.cdRef), shareReplay(1));
|
|
920
|
-
this.anchors$ = combineLatest([this._anchors, this.initAndUpdateOnTransitionSuccess$]).pipe(map(([anchors]) => {
|
|
1438
|
+
this.anchors$ = combineLatest([this._anchors, this.initAndUpdateOnTransitionSuccess$]).pipe(map$1(([anchors]) => {
|
|
921
1439
|
const results = anchors.map((anchor) => {
|
|
922
1440
|
let selected = this._dbxRouterService.isActive(anchor);
|
|
923
1441
|
return {
|
|
@@ -944,14 +1462,14 @@ class DbxNavbarComponent extends AbstractTransitionDirective {
|
|
|
944
1462
|
this._breakpoint.next(breakpoint);
|
|
945
1463
|
}
|
|
946
1464
|
}
|
|
947
|
-
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 });
|
|
948
|
-
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:
|
|
1465
|
+
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 });
|
|
1466
|
+
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 });
|
|
949
1467
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxNavbarComponent, decorators: [{
|
|
950
1468
|
type: Component,
|
|
951
1469
|
args: [{ selector: 'dbx-navbar', changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
952
1470
|
'class': 'dbx-navbar'
|
|
953
1471
|
}, 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" }]
|
|
954
|
-
}], ctorParameters: function () { return [{ type: i1.DbxRouterTransitionService }, { type: i0.ChangeDetectorRef }, { type: DbxScreenMediaService }, { type: i1.DbxRouterService }]; }, propDecorators: { navAlign: [{
|
|
1472
|
+
}], ctorParameters: function () { return [{ type: i1$2.DbxRouterTransitionService }, { type: i0.ChangeDetectorRef }, { type: DbxScreenMediaService }, { type: i1$2.DbxRouterService }]; }, propDecorators: { navAlign: [{
|
|
955
1473
|
type: Input
|
|
956
1474
|
}], anchors: [{
|
|
957
1475
|
type: Input
|
|
@@ -1033,7 +1551,7 @@ class DbxSidenavComponent extends AbstractTransitionWatcherDirective {
|
|
|
1033
1551
|
constructor(dbxRouterTransitionService, ngZone, _screenMediaService) {
|
|
1034
1552
|
super(dbxRouterTransitionService, ngZone);
|
|
1035
1553
|
this._screenMediaService = _screenMediaService;
|
|
1036
|
-
this.mode$ = this._screenMediaService.widthType$.pipe(distinctUntilChanged(), map((width) => {
|
|
1554
|
+
this.mode$ = this._screenMediaService.widthType$.pipe(distinctUntilChanged(), map$1((width) => {
|
|
1037
1555
|
let mode;
|
|
1038
1556
|
switch (width) {
|
|
1039
1557
|
case 'micro':
|
|
@@ -1050,9 +1568,9 @@ class DbxSidenavComponent extends AbstractTransitionWatcherDirective {
|
|
|
1050
1568
|
}
|
|
1051
1569
|
return mode;
|
|
1052
1570
|
}), shareReplay(1));
|
|
1053
|
-
this.disableBackdrop$ = this.mode$.pipe(map(x => x !== SideNavDisplayMode.MOBILE), distinctUntilChanged(), shareReplay(1));
|
|
1054
|
-
this.sizeClass$ = this.mode$.pipe(map((mode) => `dbx-sidenav-${mode}`), distinctUntilChanged(), shareReplay(1));
|
|
1055
|
-
this.state$ = this.mode$.pipe(map((mode) => {
|
|
1571
|
+
this.disableBackdrop$ = this.mode$.pipe(map$1(x => x !== SideNavDisplayMode.MOBILE), distinctUntilChanged(), shareReplay(1));
|
|
1572
|
+
this.sizeClass$ = this.mode$.pipe(map$1((mode) => `dbx-sidenav-${mode}`), distinctUntilChanged(), shareReplay(1));
|
|
1573
|
+
this.state$ = this.mode$.pipe(map$1((mode) => {
|
|
1056
1574
|
let drawer;
|
|
1057
1575
|
let open;
|
|
1058
1576
|
switch (mode) {
|
|
@@ -1072,7 +1590,7 @@ class DbxSidenavComponent extends AbstractTransitionWatcherDirective {
|
|
|
1072
1590
|
open
|
|
1073
1591
|
};
|
|
1074
1592
|
}), shareReplay(1));
|
|
1075
|
-
this.drawer$ = this.state$.pipe(map(x => x.drawer), distinctUntilChanged(), shareReplay(1));
|
|
1593
|
+
this.drawer$ = this.state$.pipe(map$1(x => x.drawer), distinctUntilChanged(), shareReplay(1));
|
|
1076
1594
|
this._watcherSub = new SubscriptionObject();
|
|
1077
1595
|
this._stateSub = new SubscriptionObject();
|
|
1078
1596
|
}
|
|
@@ -1128,12 +1646,12 @@ class DbxSidenavComponent extends AbstractTransitionWatcherDirective {
|
|
|
1128
1646
|
});
|
|
1129
1647
|
}
|
|
1130
1648
|
}
|
|
1131
|
-
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 });
|
|
1132
|
-
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$
|
|
1649
|
+
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 });
|
|
1650
|
+
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 } });
|
|
1133
1651
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSidenavComponent, decorators: [{
|
|
1134
1652
|
type: Component,
|
|
1135
1653
|
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" }]
|
|
1136
|
-
}], ctorParameters: function () { return [{ type: i1.DbxRouterTransitionService }, { type: i0.NgZone }, { type: DbxScreenMediaService }]; }, propDecorators: { anchors: [{
|
|
1654
|
+
}], ctorParameters: function () { return [{ type: i1$2.DbxRouterTransitionService }, { type: i0.NgZone }, { type: DbxScreenMediaService }]; }, propDecorators: { anchors: [{
|
|
1137
1655
|
type: Input
|
|
1138
1656
|
}], sidenav: [{
|
|
1139
1657
|
type: ViewChild,
|
|
@@ -1147,7 +1665,7 @@ class DbxSidenavButtonComponent {
|
|
|
1147
1665
|
constructor(parent) {
|
|
1148
1666
|
this.parent = parent;
|
|
1149
1667
|
this.mode$ = this.parent.mode$;
|
|
1150
|
-
this.showMenuButton$ = this.mode$.pipe(map
|
|
1668
|
+
this.showMenuButton$ = this.mode$.pipe(map(x => x === SideNavDisplayMode.MOBILE));
|
|
1151
1669
|
}
|
|
1152
1670
|
toggleNav() {
|
|
1153
1671
|
this.parent.toggleNav();
|
|
@@ -1158,7 +1676,7 @@ DbxSidenavButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
|
|
|
1158
1676
|
<button class="dbx-sidenav-button" mat-icon-button *ngIf="showMenuButton$ | async" (click)="toggleNav()" aria-label="open sidenav button">
|
|
1159
1677
|
<mat-icon>view_sidebar</mat-icon>
|
|
1160
1678
|
</button>
|
|
1161
|
-
`, 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:
|
|
1679
|
+
`, 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 } });
|
|
1162
1680
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSidenavButtonComponent, decorators: [{
|
|
1163
1681
|
type: Component,
|
|
1164
1682
|
args: [{
|
|
@@ -1171,21 +1689,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
1171
1689
|
}]
|
|
1172
1690
|
}], ctorParameters: function () { return [{ type: DbxSidenavComponent }]; } });
|
|
1173
1691
|
|
|
1174
|
-
/**
|
|
1175
|
-
* Button spacer component.
|
|
1176
|
-
*/
|
|
1177
|
-
class DbxButtonSpacerComponent {
|
|
1178
|
-
}
|
|
1179
|
-
DbxButtonSpacerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonSpacerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1180
|
-
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 });
|
|
1181
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonSpacerComponent, decorators: [{
|
|
1182
|
-
type: Component,
|
|
1183
|
-
args: [{
|
|
1184
|
-
selector: 'dbx-button-spacer',
|
|
1185
|
-
template: `<span class="dbx-button-spacer"></span>`
|
|
1186
|
-
}]
|
|
1187
|
-
}] });
|
|
1188
|
-
|
|
1189
1692
|
/**
|
|
1190
1693
|
* Pre-configured pagebar used with DbxSidenavComponent.
|
|
1191
1694
|
*/
|
|
@@ -1201,7 +1704,7 @@ DbxSidenavPagebarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
|
|
|
1201
1704
|
</span>
|
|
1202
1705
|
<ng-content right></ng-content>
|
|
1203
1706
|
</dbx-pagebar>
|
|
1204
|
-
`, isInline: true, components: [{ type: DbxPagebarComponent, selector: "dbx-pagebar", inputs: ["color"] }, { type: DbxSidenavButtonComponent, selector: "dbx-sidenav-button" }, { type:
|
|
1707
|
+
`, isInline: true, components: [{ type: DbxPagebarComponent, selector: "dbx-pagebar", inputs: ["color"] }, { type: DbxSidenavButtonComponent, selector: "dbx-sidenav-button" }], directives: [{ type: DbxButtonSpacerDirective, selector: "dbx-button-spacer,dbxButtonSpacer" }] });
|
|
1205
1708
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSidenavPagebarComponent, decorators: [{
|
|
1206
1709
|
type: Component,
|
|
1207
1710
|
args: [{
|
|
@@ -1228,7 +1731,7 @@ class DbxSidenavPageComponent {
|
|
|
1228
1731
|
constructor(parent) {
|
|
1229
1732
|
this.parent = parent;
|
|
1230
1733
|
this._mobileOnly = new BehaviorSubject(false);
|
|
1231
|
-
this.hidePagebar$ = this._mobileOnly.pipe(switchMap((mobileOnly) => (mobileOnly) ? this.parent.mode$.pipe(map(x => x !== SideNavDisplayMode.MOBILE)) : of(true)), shareReplay(1));
|
|
1734
|
+
this.hidePagebar$ = this._mobileOnly.pipe(switchMap((mobileOnly) => (mobileOnly) ? this.parent.mode$.pipe(map$1(x => x !== SideNavDisplayMode.MOBILE)) : of(true)), shareReplay(1));
|
|
1232
1735
|
}
|
|
1233
1736
|
get mobileOnly() {
|
|
1234
1737
|
return this._mobileOnly.value;
|
|
@@ -1248,7 +1751,7 @@ DbxSidenavPageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
|
|
|
1248
1751
|
<ng-content></ng-content>
|
|
1249
1752
|
</div>
|
|
1250
1753
|
</div>
|
|
1251
|
-
`, isInline: true, components: [{ type: DbxSidenavPagebarComponent, selector: "dbx-sidenav-pagebar" }], directives: [{ type: i3
|
|
1754
|
+
`, isInline: true, components: [{ type: DbxSidenavPagebarComponent, selector: "dbx-sidenav-pagebar" }], directives: [{ type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "async": i3.AsyncPipe } });
|
|
1252
1755
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSidenavPageComponent, decorators: [{
|
|
1253
1756
|
type: Component,
|
|
1254
1757
|
args: [{
|
|
@@ -1271,126 +1774,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
1271
1774
|
type: Input
|
|
1272
1775
|
}] } });
|
|
1273
1776
|
|
|
1274
|
-
var DbxButtonDisplayType;
|
|
1275
|
-
(function (DbxButtonDisplayType) {
|
|
1276
|
-
DbxButtonDisplayType[DbxButtonDisplayType["RAISED"] = 0] = "RAISED";
|
|
1277
|
-
DbxButtonDisplayType[DbxButtonDisplayType["STROKED"] = 1] = "STROKED";
|
|
1278
|
-
DbxButtonDisplayType[DbxButtonDisplayType["FLAT"] = 2] = "FLAT";
|
|
1279
|
-
})(DbxButtonDisplayType || (DbxButtonDisplayType = {}));
|
|
1280
|
-
/**
|
|
1281
|
-
* Complex button that supports loading states.
|
|
1282
|
-
*/
|
|
1283
|
-
class DbxButtonComponent extends AbstractDbxButtonDirective {
|
|
1284
|
-
constructor() {
|
|
1285
|
-
super(...arguments);
|
|
1286
|
-
this.color = 'primary';
|
|
1287
|
-
}
|
|
1288
|
-
get raised() {
|
|
1289
|
-
return this.type === DbxButtonDisplayType.RAISED;
|
|
1290
|
-
}
|
|
1291
|
-
set raised(raised) {
|
|
1292
|
-
if (raised) {
|
|
1293
|
-
this.type = DbxButtonDisplayType.RAISED;
|
|
1294
|
-
}
|
|
1295
|
-
}
|
|
1296
|
-
get stroked() {
|
|
1297
|
-
return this.type === DbxButtonDisplayType.STROKED;
|
|
1298
|
-
}
|
|
1299
|
-
set stroked(stroked) {
|
|
1300
|
-
if (stroked) {
|
|
1301
|
-
this.type = DbxButtonDisplayType.STROKED;
|
|
1302
|
-
}
|
|
1303
|
-
}
|
|
1304
|
-
get flat() {
|
|
1305
|
-
return this.type === DbxButtonDisplayType.FLAT;
|
|
1306
|
-
}
|
|
1307
|
-
set flat(flat) {
|
|
1308
|
-
if (flat) {
|
|
1309
|
-
this.type = DbxButtonDisplayType.FLAT;
|
|
1310
|
-
}
|
|
1311
|
-
}
|
|
1312
|
-
get btnOptions() {
|
|
1313
|
-
var _a;
|
|
1314
|
-
const buttonIcon = (this.icon) ? {
|
|
1315
|
-
fontIcon: this.icon
|
|
1316
|
-
} : undefined;
|
|
1317
|
-
return {
|
|
1318
|
-
fab: false,
|
|
1319
|
-
active: this.working,
|
|
1320
|
-
buttonIcon,
|
|
1321
|
-
customClass: 'dbx-button ' + ((buttonIcon && !this.text) ? 'dbx-button-no-text' : ''),
|
|
1322
|
-
// buttonIcon: icon,
|
|
1323
|
-
text: (_a = this.text) !== null && _a !== void 0 ? _a : '',
|
|
1324
|
-
buttonColor: this.color,
|
|
1325
|
-
barColor: 'accent',
|
|
1326
|
-
raised: this.raised,
|
|
1327
|
-
stroked: this.stroked,
|
|
1328
|
-
flat: this.flat,
|
|
1329
|
-
mode: 'indeterminate',
|
|
1330
|
-
spinnerSize: 18,
|
|
1331
|
-
spinnerColor: 'accent',
|
|
1332
|
-
// Only disabled if we're not working, in order to show the animation.
|
|
1333
|
-
disabled: !this.working && this.disabled
|
|
1334
|
-
};
|
|
1335
|
-
}
|
|
1336
|
-
}
|
|
1337
|
-
DbxButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1338
|
-
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: `
|
|
1339
|
-
<mat-spinner-button class="page-button" (btnClick)="clickButton()" [options]="btnOptions"></mat-spinner-button>
|
|
1340
|
-
`, isInline: true, components: [{ type: i1$5.MatSpinnerButtonComponent, selector: "mat-spinner-button", inputs: ["options", "buttonId", "active", "disabled"], outputs: ["btnClick"] }] });
|
|
1341
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonComponent, decorators: [{
|
|
1342
|
-
type: Component,
|
|
1343
|
-
args: [{
|
|
1344
|
-
selector: 'dbx-button',
|
|
1345
|
-
template: `
|
|
1346
|
-
<mat-spinner-button class="page-button" (btnClick)="clickButton()" [options]="btnOptions"></mat-spinner-button>
|
|
1347
|
-
`,
|
|
1348
|
-
// TODO: styleUrls: ['./button.scss'],
|
|
1349
|
-
providers: ProvideDbxButton(DbxButtonComponent)
|
|
1350
|
-
}]
|
|
1351
|
-
}], propDecorators: { type: [{
|
|
1352
|
-
type: Input
|
|
1353
|
-
}], raised: [{
|
|
1354
|
-
type: Input
|
|
1355
|
-
}], stroked: [{
|
|
1356
|
-
type: Input
|
|
1357
|
-
}], flat: [{
|
|
1358
|
-
type: Input
|
|
1359
|
-
}], color: [{
|
|
1360
|
-
type: Input
|
|
1361
|
-
}] } });
|
|
1362
|
-
|
|
1363
|
-
class DbxButtonModule {
|
|
1364
|
-
}
|
|
1365
|
-
DbxButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1366
|
-
DbxButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonModule, declarations: [DbxButtonComponent,
|
|
1367
|
-
DbxButtonSpacerComponent], imports: [CommonModule,
|
|
1368
|
-
MatProgressButtonsModule], exports: [MatProgressButtonsModule,
|
|
1369
|
-
DbxButtonComponent,
|
|
1370
|
-
DbxButtonSpacerComponent] });
|
|
1371
|
-
DbxButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonModule, imports: [[
|
|
1372
|
-
CommonModule,
|
|
1373
|
-
MatProgressButtonsModule
|
|
1374
|
-
], MatProgressButtonsModule] });
|
|
1375
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonModule, decorators: [{
|
|
1376
|
-
type: NgModule,
|
|
1377
|
-
args: [{
|
|
1378
|
-
imports: [
|
|
1379
|
-
CommonModule,
|
|
1380
|
-
MatProgressButtonsModule
|
|
1381
|
-
],
|
|
1382
|
-
declarations: [
|
|
1383
|
-
DbxButtonComponent,
|
|
1384
|
-
DbxButtonSpacerComponent
|
|
1385
|
-
],
|
|
1386
|
-
exports: [
|
|
1387
|
-
MatProgressButtonsModule,
|
|
1388
|
-
DbxButtonComponent,
|
|
1389
|
-
DbxButtonSpacerComponent
|
|
1390
|
-
],
|
|
1391
|
-
}]
|
|
1392
|
-
}] });
|
|
1393
|
-
|
|
1394
1777
|
/**
|
|
1395
1778
|
* Section used to elevate content in a pre-configured manner.
|
|
1396
1779
|
*/
|
|
@@ -1656,7 +2039,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
1656
2039
|
class DbxAngularRouterSegueAnchorComponent extends AbstractDbxSegueAnchorDirective {
|
|
1657
2040
|
}
|
|
1658
2041
|
DbxAngularRouterSegueAnchorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxAngularRouterSegueAnchorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1659
|
-
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
|
|
2042
|
+
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 } });
|
|
1660
2043
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxAngularRouterSegueAnchorComponent, decorators: [{
|
|
1661
2044
|
type: Component,
|
|
1662
2045
|
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" }]
|
|
@@ -1707,7 +2090,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
1707
2090
|
class DbxUIRouterSegueAnchorComponent extends AbstractDbxSegueAnchorDirective {
|
|
1708
2091
|
}
|
|
1709
2092
|
DbxUIRouterSegueAnchorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxUIRouterSegueAnchorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1710
|
-
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
|
|
2093
|
+
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 } });
|
|
1711
2094
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxUIRouterSegueAnchorComponent, decorators: [{
|
|
1712
2095
|
type: Component,
|
|
1713
2096
|
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" }]
|
|
@@ -1783,7 +2166,7 @@ DbxTwoBlocksComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
1783
2166
|
<ng-content></ng-content>
|
|
1784
2167
|
</div>
|
|
1785
2168
|
</div>
|
|
1786
|
-
`, isInline: true, directives: [{ type: i1$
|
|
2169
|
+
`, isInline: true, directives: [{ type: i1$8.ResizedDirective, selector: "[resized]", outputs: ["resized"] }] });
|
|
1787
2170
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxTwoBlocksComponent, decorators: [{
|
|
1788
2171
|
type: Component,
|
|
1789
2172
|
args: [{
|
|
@@ -1854,7 +2237,7 @@ DbxCardBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
|
|
|
1854
2237
|
<ng-content></ng-content>
|
|
1855
2238
|
</div>
|
|
1856
2239
|
</div>
|
|
1857
|
-
`, isInline: true, components: [{ type:
|
|
2240
|
+
`, 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"] }] });
|
|
1858
2241
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxCardBoxComponent, decorators: [{
|
|
1859
2242
|
type: Component,
|
|
1860
2243
|
args: [{
|
|
@@ -1944,23 +2327,23 @@ class TwoColumnsContextStore extends ComponentStore {
|
|
|
1944
2327
|
/**
|
|
1945
2328
|
* Pipes the current state of showRight.
|
|
1946
2329
|
*/
|
|
1947
|
-
this.showRight$ = this.state$.pipe(map
|
|
2330
|
+
this.showRight$ = this.state$.pipe(map((x) => x.showRight));
|
|
1948
2331
|
/**
|
|
1949
2332
|
* Convenience function for the showRight compliment.
|
|
1950
2333
|
*/
|
|
1951
|
-
this.hideRight$ = this.state$.pipe(map
|
|
2334
|
+
this.hideRight$ = this.state$.pipe(map((x) => !x.showRight));
|
|
1952
2335
|
/**
|
|
1953
2336
|
* Pipes the current state of fullLeft.
|
|
1954
2337
|
*/
|
|
1955
|
-
this.fullLeft$ = this.state$.pipe(map
|
|
2338
|
+
this.fullLeft$ = this.state$.pipe(map((x) => x.fullLeft));
|
|
1956
2339
|
/**
|
|
1957
2340
|
* Whether or not to show the full left.
|
|
1958
2341
|
*/
|
|
1959
|
-
this.showFullLeft$ = this.state$.pipe(map
|
|
2342
|
+
this.showFullLeft$ = this.state$.pipe(map((x) => !x.showRight && x.fullLeft));
|
|
1960
2343
|
/**
|
|
1961
2344
|
* Pipes the current backRef value.
|
|
1962
2345
|
*/
|
|
1963
|
-
this.backRef$ = this.state$.pipe(map
|
|
2346
|
+
this.backRef$ = this.state$.pipe(map((x) => x.backRef), distinct());
|
|
1964
2347
|
/**
|
|
1965
2348
|
* Emits back events.
|
|
1966
2349
|
*/
|
|
@@ -2053,7 +2436,7 @@ class DbxTwoColumnsComponent {
|
|
|
2053
2436
|
}
|
|
2054
2437
|
}
|
|
2055
2438
|
DbxTwoColumnsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxTwoColumnsComponent, deps: [{ token: TwoColumnsContextStore }], target: i0.ɵɵFactoryTarget.Component });
|
|
2056
|
-
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
|
|
2439
|
+
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 } });
|
|
2057
2440
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxTwoColumnsComponent, decorators: [{
|
|
2058
2441
|
type: Component,
|
|
2059
2442
|
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" }]
|
|
@@ -2113,7 +2496,7 @@ DbxTwoColumnsColumnHeadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion:
|
|
|
2113
2496
|
<div class="dbx-two-columns-head" [ngClass]="{ 'block': block, 'full': full }">
|
|
2114
2497
|
<ng-content></ng-content>
|
|
2115
2498
|
</div>
|
|
2116
|
-
`, isInline: true, directives: [{ type: i3
|
|
2499
|
+
`, isInline: true, directives: [{ type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
2117
2500
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxTwoColumnsColumnHeadComponent, decorators: [{
|
|
2118
2501
|
type: Component,
|
|
2119
2502
|
args: [{
|
|
@@ -2169,8 +2552,8 @@ class DbxTwoColumnsRightComponent {
|
|
|
2169
2552
|
this._showBack = new BehaviorSubject(true);
|
|
2170
2553
|
this.ref$ = this.twoColumnsContextStore.backRef$;
|
|
2171
2554
|
this.showBack$ = combineLatest([
|
|
2172
|
-
this._showBack, this.ref$.pipe(map
|
|
2173
|
-
]).pipe(map
|
|
2555
|
+
this._showBack, this.ref$.pipe(map((x) => !Boolean(x))) // TODO: Is this correct? Show back if ref is not defined?
|
|
2556
|
+
]).pipe(map(([a, b]) => a && b));
|
|
2174
2557
|
}
|
|
2175
2558
|
ngAfterViewInit() {
|
|
2176
2559
|
setTimeout(() => {
|
|
@@ -2191,7 +2574,7 @@ class DbxTwoColumnsRightComponent {
|
|
|
2191
2574
|
}
|
|
2192
2575
|
}
|
|
2193
2576
|
DbxTwoColumnsRightComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxTwoColumnsRightComponent, deps: [{ token: TwoColumnsContextStore }], target: i0.ɵɵFactoryTarget.Component });
|
|
2194
|
-
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:
|
|
2577
|
+
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 } });
|
|
2195
2578
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxTwoColumnsRightComponent, decorators: [{
|
|
2196
2579
|
type: Component,
|
|
2197
2580
|
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" }]
|
|
@@ -2359,7 +2742,7 @@ function compactModeFromInput(input) {
|
|
|
2359
2742
|
function mapCompactModeObs(mode$, config) {
|
|
2360
2743
|
var _a;
|
|
2361
2744
|
const modeObs = mode$ !== null && mode$ !== void 0 ? mode$ : of((_a = config.defaultMode) !== null && _a !== void 0 ? _a : CompactMode.FULL);
|
|
2362
|
-
return modeObs.pipe(map
|
|
2745
|
+
return modeObs.pipe(map((inputMode) => {
|
|
2363
2746
|
const isCompact = ((inputMode !== null && inputMode !== void 0 ? inputMode : config.defaultMode) === CompactMode.COMPACT);
|
|
2364
2747
|
if (isCompact) {
|
|
2365
2748
|
return config.compact;
|
|
@@ -2374,7 +2757,7 @@ class CompactContextStore extends ComponentStore {
|
|
|
2374
2757
|
constructor() {
|
|
2375
2758
|
super({ mode: CompactMode.FULL });
|
|
2376
2759
|
// MARK: Accessors
|
|
2377
|
-
this.mode$ = this.state$.pipe(map
|
|
2760
|
+
this.mode$ = this.state$.pipe(map(x => x.mode));
|
|
2378
2761
|
this.setMode = this.updater((state, mode) => ({ mode: compactModeFromInput(mode) }));
|
|
2379
2762
|
}
|
|
2380
2763
|
}
|
|
@@ -2450,7 +2833,7 @@ DbxFlagComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
|
|
|
2450
2833
|
<ng-content></ng-content>
|
|
2451
2834
|
</mat-toolbar>
|
|
2452
2835
|
</div>
|
|
2453
|
-
`, isInline: true, components: [{ type: i1$
|
|
2836
|
+
`, isInline: true, components: [{ type: i1$5.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }] });
|
|
2454
2837
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxFlagComponent, decorators: [{
|
|
2455
2838
|
type: Component,
|
|
2456
2839
|
args: [{
|
|
@@ -2547,7 +2930,7 @@ class DbxFlexGroupDirective extends AbstractSubscriptionDirective {
|
|
|
2547
2930
|
this.relative = false;
|
|
2548
2931
|
this._small = false;
|
|
2549
2932
|
this._breakpoint = new BehaviorSubject('tablet');
|
|
2550
|
-
this.isSmallScreen$ = this._dbxScreenMediaService.isBreakpointActive(this._breakpoint).pipe(map(x => !x), distinctUntilChanged(), shareReplay(1));
|
|
2933
|
+
this.isSmallScreen$ = this._dbxScreenMediaService.isBreakpointActive(this._breakpoint).pipe(map$1(x => !x), distinctUntilChanged(), shareReplay(1));
|
|
2551
2934
|
}
|
|
2552
2935
|
get small() {
|
|
2553
2936
|
return this._small;
|
|
@@ -2649,7 +3032,7 @@ DbxIconItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
2649
3032
|
</div>
|
|
2650
3033
|
</div>
|
|
2651
3034
|
</div>
|
|
2652
|
-
`, isInline: true, components: [{ type:
|
|
3035
|
+
`, 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"] }] });
|
|
2653
3036
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxIconItemComponent, decorators: [{
|
|
2654
3037
|
type: Component,
|
|
2655
3038
|
args: [{
|
|
@@ -2756,7 +3139,7 @@ DbxLoadingProgressComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.
|
|
|
2756
3139
|
</ng-container>
|
|
2757
3140
|
<div *ngIf="text" class="hint">{{ text }}</div>
|
|
2758
3141
|
</div>
|
|
2759
|
-
`, isInline: true, components: [{ type: i1$
|
|
3142
|
+
`, 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"] }] });
|
|
2760
3143
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxLoadingProgressComponent, decorators: [{
|
|
2761
3144
|
type: Component,
|
|
2762
3145
|
args: [{
|
|
@@ -2803,7 +3186,7 @@ class DbxReadableErrorComponent {
|
|
|
2803
3186
|
}
|
|
2804
3187
|
}
|
|
2805
3188
|
DbxReadableErrorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxReadableErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2806
|
-
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
|
|
3189
|
+
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"] }] });
|
|
2807
3190
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxReadableErrorComponent, decorators: [{
|
|
2808
3191
|
type: Component,
|
|
2809
3192
|
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" }]
|
|
@@ -2831,7 +3214,7 @@ class DbxBasicLoadingComponent {
|
|
|
2831
3214
|
this._error = new BehaviorSubject(undefined);
|
|
2832
3215
|
this._customErrorContent = new BehaviorSubject(undefined);
|
|
2833
3216
|
this._customLoadingContent = new BehaviorSubject(undefined);
|
|
2834
|
-
this.state$ = combineLatest([this._loading, this._show, this._error]).pipe(map(([loading, show, error]) => {
|
|
3217
|
+
this.state$ = combineLatest([this._loading, this._show, this._error]).pipe(map$1(([loading, show, error]) => {
|
|
2835
3218
|
let state;
|
|
2836
3219
|
if (error) {
|
|
2837
3220
|
state = LoadingComponentState.ERROR;
|
|
@@ -2848,8 +3231,8 @@ class DbxBasicLoadingComponent {
|
|
|
2848
3231
|
return state;
|
|
2849
3232
|
}), distinctUntilChanged(), startWith(LoadingComponentState.NONE), shareReplay(1));
|
|
2850
3233
|
this.error$ = this._error.asObservable();
|
|
2851
|
-
this.hasNoCustomError$ = this._customErrorContent.pipe(map(x => !checkNgContentWrapperHasContent(x)));
|
|
2852
|
-
this.hasNoCustomLoading$ = this._customLoadingContent.pipe(map(x => !checkNgContentWrapperHasContent(x)));
|
|
3234
|
+
this.hasNoCustomError$ = this._customErrorContent.pipe(map$1(x => !checkNgContentWrapperHasContent(x)));
|
|
3235
|
+
this.hasNoCustomLoading$ = this._customLoadingContent.pipe(map$1(x => !checkNgContentWrapperHasContent(x)));
|
|
2853
3236
|
this.mode = 'indeterminate';
|
|
2854
3237
|
this.color = 'primary';
|
|
2855
3238
|
this.linear = false;
|
|
@@ -2891,7 +3274,7 @@ class DbxBasicLoadingComponent {
|
|
|
2891
3274
|
}
|
|
2892
3275
|
}
|
|
2893
3276
|
DbxBasicLoadingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxBasicLoadingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2894
|
-
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
|
|
3277
|
+
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 } });
|
|
2895
3278
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxBasicLoadingComponent, decorators: [{
|
|
2896
3279
|
type: Component,
|
|
2897
3280
|
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" }]
|
|
@@ -2927,7 +3310,7 @@ class DbxLoadingComponent {
|
|
|
2927
3310
|
this._context = new BehaviorSubject(undefined);
|
|
2928
3311
|
this._inputLoading = new BehaviorSubject(true);
|
|
2929
3312
|
this._inputError = new BehaviorSubject(undefined);
|
|
2930
|
-
this.state$ = combineLatest([this._inputLoading, this._inputError, this._context.pipe(switchMap(x => (x != null) ? x.stream$ : of(undefined)))]).pipe(map(([inputLoading, inputError, loadingState]) => {
|
|
3313
|
+
this.state$ = combineLatest([this._inputLoading, this._inputError, this._context.pipe(switchMap(x => (x != null) ? x.stream$ : of(undefined)))]).pipe(map$1(([inputLoading, inputError, loadingState]) => {
|
|
2931
3314
|
if (loadingState) {
|
|
2932
3315
|
return loadingState;
|
|
2933
3316
|
}
|
|
@@ -2938,8 +3321,8 @@ class DbxLoadingComponent {
|
|
|
2938
3321
|
};
|
|
2939
3322
|
}
|
|
2940
3323
|
}), distinctUntilChanged((a, b) => a.loading === b.loading && a.error === b.error), shareReplay(1));
|
|
2941
|
-
this.loading$ = this.state$.pipe(map(x => x.loading), distinctUntilChanged(), shareReplay(1));
|
|
2942
|
-
this.error$ = this.state$.pipe(map(x => x.error), distinctUntilChanged(), shareReplay(1));
|
|
3324
|
+
this.loading$ = this.state$.pipe(map$1(x => x.loading), distinctUntilChanged(), shareReplay(1));
|
|
3325
|
+
this.error$ = this.state$.pipe(map$1(x => x.error), distinctUntilChanged(), shareReplay(1));
|
|
2943
3326
|
this.mode = 'indeterminate';
|
|
2944
3327
|
this.color = 'primary';
|
|
2945
3328
|
}
|
|
@@ -2975,7 +3358,7 @@ DbxLoadingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
|
|
|
2975
3358
|
<ng-content error select="[error]"></ng-content>
|
|
2976
3359
|
<ng-content errorAction select="[errorAction]"></ng-content>
|
|
2977
3360
|
</dbx-basic-loading>
|
|
2978
|
-
`, isInline: true, components: [{ type: DbxBasicLoadingComponent, selector: "dbx-basic-loading", inputs: ["diameter", "mode", "color", "text", "linear", "show", "loading", "error"] }], pipes: { "async": i3
|
|
3361
|
+
`, isInline: true, components: [{ type: DbxBasicLoadingComponent, selector: "dbx-basic-loading", inputs: ["diameter", "mode", "color", "text", "linear", "show", "loading", "error"] }], pipes: { "async": i3.AsyncPipe } });
|
|
2979
3362
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxLoadingComponent, decorators: [{
|
|
2980
3363
|
type: Component,
|
|
2981
3364
|
args: [{
|
|
@@ -3035,16 +3418,16 @@ class DbxListComponent {
|
|
|
3035
3418
|
this.context = new ListLoadingStateContextInstance({ showLoadingOnNoValue: false });
|
|
3036
3419
|
this.isEmpty$ = this.context.isEmpty$;
|
|
3037
3420
|
this.disabled$ = this._disabled.asObservable();
|
|
3038
|
-
this.hideOnEmpty$ = this._config.pipe(filterMaybe(), map(x => Boolean(x.hideOnEmpty)), distinctUntilChanged(), shareReplay(1));
|
|
3039
|
-
this.invertedList$ = this._config.pipe(filterMaybe(), map(x => Boolean(x === null || x === void 0 ? void 0 : x.throttle)), distinctUntilChanged(), shareReplay(1));
|
|
3040
|
-
this.throttleScroll$ = this._config.pipe(map(x => { var _a; return (_a = (x === null || x === void 0 ? void 0 : x.throttle)) !== null && _a !== void 0 ? _a : this.DEFAULT_THROTTLE_SCROLL; }), distinctUntilChanged(), shareReplay(1));
|
|
3041
|
-
this.scrollDistance$ = this._config.pipe(map(x => { var _a; return (_a = (x === null || x === void 0 ? void 0 : x.scrollDistance)) !== null && _a !== void 0 ? _a : this.DEFAULT_SCROLL_DISTANCE; }), distinctUntilChanged(), shareReplay(1));
|
|
3421
|
+
this.hideOnEmpty$ = this._config.pipe(filterMaybe(), map$1(x => Boolean(x.hideOnEmpty)), distinctUntilChanged(), shareReplay(1));
|
|
3422
|
+
this.invertedList$ = this._config.pipe(filterMaybe(), map$1(x => Boolean(x === null || x === void 0 ? void 0 : x.throttle)), distinctUntilChanged(), shareReplay(1));
|
|
3423
|
+
this.throttleScroll$ = this._config.pipe(map$1(x => { var _a; return (_a = (x === null || x === void 0 ? void 0 : x.throttle)) !== null && _a !== void 0 ? _a : this.DEFAULT_THROTTLE_SCROLL; }), distinctUntilChanged(), shareReplay(1));
|
|
3424
|
+
this.scrollDistance$ = this._config.pipe(map$1(x => { var _a; return (_a = (x === null || x === void 0 ? void 0 : x.scrollDistance)) !== null && _a !== void 0 ? _a : this.DEFAULT_SCROLL_DISTANCE; }), distinctUntilChanged(), shareReplay(1));
|
|
3042
3425
|
this.scrollLoadMoreTrigger$ = this._config.pipe(switchMap((config) => {
|
|
3043
3426
|
const loadNextDirection = (config === null || config === void 0 ? void 0 : config.invertedList) ? 'up' : 'down';
|
|
3044
|
-
return this._scrollTrigger.pipe(filter(x => x === loadNextDirection));
|
|
3427
|
+
return this._scrollTrigger.pipe(filter$1(x => x === loadNextDirection));
|
|
3045
3428
|
}));
|
|
3046
3429
|
this.loadMore$ = merge(this.scrollLoadMoreTrigger$, this._loadMoreTrigger);
|
|
3047
|
-
this.injectedComponentConfig$ = this._config.pipe(distinctUntilChanged(), map((config) => {
|
|
3430
|
+
this.injectedComponentConfig$ = this._config.pipe(distinctUntilChanged(), map$1((config) => {
|
|
3048
3431
|
let injectedComponentConfig;
|
|
3049
3432
|
if (config) {
|
|
3050
3433
|
const { componentClass, init, onClick, onSelectionChange, loadMore } = config;
|
|
@@ -3094,7 +3477,7 @@ class DbxListComponent {
|
|
|
3094
3477
|
}
|
|
3095
3478
|
return injectedComponentConfig;
|
|
3096
3479
|
}), distinctUntilChanged(), shareReplay(1));
|
|
3097
|
-
this.hideContent$ = this.context.stateChange$.pipe(switchMap(() => this.context.state$.pipe(filter((x) => loadingStateHasFinishedLoading(x)), first(), startWith(beginLoading()))), switchMap((state) => {
|
|
3480
|
+
this.hideContent$ = this.context.stateChange$.pipe(switchMap(() => this.context.state$.pipe(filter$1((x) => loadingStateHasFinishedLoading(x)), first(), startWith(beginLoading()))), switchMap((state) => {
|
|
3098
3481
|
if (state === null || state === void 0 ? void 0 : state.loading) {
|
|
3099
3482
|
return of(true);
|
|
3100
3483
|
}
|
|
@@ -3181,7 +3564,7 @@ class DbxListComponent {
|
|
|
3181
3564
|
}
|
|
3182
3565
|
}
|
|
3183
3566
|
DbxListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxListComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
3184
|
-
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$
|
|
3567
|
+
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; }) } });
|
|
3185
3568
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxListComponent, decorators: [{
|
|
3186
3569
|
type: Component,
|
|
3187
3570
|
args: [{ selector: 'dbx-list', host: {
|
|
@@ -3251,7 +3634,7 @@ class AbstractDbxListWrapperDirective {
|
|
|
3251
3634
|
constructor(initConfig) {
|
|
3252
3635
|
this.initConfig = initConfig;
|
|
3253
3636
|
this._init = new BehaviorSubject(undefined);
|
|
3254
|
-
this.config$ = this._init.pipe(filterMaybe(), getter(), map((x) => this._buildListConfig(x)), shareReplay(1));
|
|
3637
|
+
this.config$ = this._init.pipe(filterMaybe(), getter(), map$1((x) => this._buildListConfig(x)), shareReplay(1));
|
|
3255
3638
|
this.clickItem = new EventEmitter();
|
|
3256
3639
|
this.loadMore = new EventEmitter();
|
|
3257
3640
|
}
|
|
@@ -3317,7 +3700,7 @@ class DbxActionErrorDirective extends AbstractSubscriptionDirective {
|
|
|
3317
3700
|
});
|
|
3318
3701
|
}
|
|
3319
3702
|
}
|
|
3320
|
-
DbxActionErrorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionErrorDirective, deps: [{ token: DbxReadableErrorComponent, host: true }, { token: i1.
|
|
3703
|
+
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 });
|
|
3321
3704
|
DbxActionErrorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: DbxActionErrorDirective, selector: "[dbxActionError]", usesInheritance: true, ngImport: i0 });
|
|
3322
3705
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionErrorDirective, decorators: [{
|
|
3323
3706
|
type: Directive,
|
|
@@ -3327,7 +3710,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
3327
3710
|
}], ctorParameters: function () {
|
|
3328
3711
|
return [{ type: DbxReadableErrorComponent, decorators: [{
|
|
3329
3712
|
type: Host
|
|
3330
|
-
}] }, { type: i1.
|
|
3713
|
+
}] }, { type: i1$2.DbxActionContextStoreSourceInstance }];
|
|
3331
3714
|
} });
|
|
3332
3715
|
|
|
3333
3716
|
/**
|
|
@@ -3459,19 +3842,53 @@ function catchErrorServerParams(action, mapError = (error) => error) {
|
|
|
3459
3842
|
return catchError$1((error) => of(action(mapError(convertServerErrorParams(error)))));
|
|
3460
3843
|
}
|
|
3461
3844
|
|
|
3845
|
+
/**
|
|
3846
|
+
* Context used for linking a loadingComponent to an ActionContext by providing a LoadingContext.
|
|
3847
|
+
*/
|
|
3848
|
+
class DbxActionLoadingContextDirective {
|
|
3849
|
+
constructor(loadingComponent, source) {
|
|
3850
|
+
this.loadingComponent = loadingComponent;
|
|
3851
|
+
this.source = source;
|
|
3852
|
+
this._context = new LoadingStateContextInstance({ obs: this.source.loadingState$ });
|
|
3853
|
+
}
|
|
3854
|
+
get context() {
|
|
3855
|
+
return this._context;
|
|
3856
|
+
}
|
|
3857
|
+
ngOnInit() {
|
|
3858
|
+
this.loadingComponent.context = this._context;
|
|
3859
|
+
}
|
|
3860
|
+
ngOnDestroy() {
|
|
3861
|
+
this._context.destroy();
|
|
3862
|
+
}
|
|
3863
|
+
}
|
|
3864
|
+
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 });
|
|
3865
|
+
DbxActionLoadingContextDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: DbxActionLoadingContextDirective, selector: "[dbxActionLoadingContext]", ngImport: i0 });
|
|
3866
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionLoadingContextDirective, decorators: [{
|
|
3867
|
+
type: Directive,
|
|
3868
|
+
args: [{
|
|
3869
|
+
selector: '[dbxActionLoadingContext]'
|
|
3870
|
+
}]
|
|
3871
|
+
}], ctorParameters: function () {
|
|
3872
|
+
return [{ type: DbxLoadingComponent, decorators: [{
|
|
3873
|
+
type: Host
|
|
3874
|
+
}] }, { type: i1$2.DbxActionContextStoreSourceInstance }];
|
|
3875
|
+
} });
|
|
3876
|
+
|
|
3462
3877
|
class DbxLoadingModule {
|
|
3463
3878
|
}
|
|
3464
3879
|
DbxLoadingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxLoadingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3465
3880
|
DbxLoadingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxLoadingModule, declarations: [DbxLoadingComponent,
|
|
3466
3881
|
DbxBasicLoadingComponent,
|
|
3467
|
-
DbxLoadingProgressComponent
|
|
3882
|
+
DbxLoadingProgressComponent,
|
|
3883
|
+
DbxActionLoadingContextDirective], imports: [CommonModule,
|
|
3468
3884
|
DbxReadableErrorModule,
|
|
3469
3885
|
MatProgressSpinnerModule,
|
|
3470
3886
|
MatProgressBarModule], exports: [DbxLoadingComponent,
|
|
3471
3887
|
DbxBasicLoadingComponent,
|
|
3472
3888
|
DbxLoadingProgressComponent,
|
|
3473
3889
|
MatProgressSpinnerModule,
|
|
3474
|
-
MatProgressBarModule
|
|
3890
|
+
MatProgressBarModule,
|
|
3891
|
+
DbxActionLoadingContextDirective] });
|
|
3475
3892
|
DbxLoadingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxLoadingModule, imports: [[
|
|
3476
3893
|
CommonModule,
|
|
3477
3894
|
DbxReadableErrorModule,
|
|
@@ -3491,14 +3908,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
3491
3908
|
declarations: [
|
|
3492
3909
|
DbxLoadingComponent,
|
|
3493
3910
|
DbxBasicLoadingComponent,
|
|
3494
|
-
DbxLoadingProgressComponent
|
|
3911
|
+
DbxLoadingProgressComponent,
|
|
3912
|
+
DbxActionLoadingContextDirective
|
|
3495
3913
|
],
|
|
3496
3914
|
exports: [
|
|
3497
3915
|
DbxLoadingComponent,
|
|
3498
3916
|
DbxBasicLoadingComponent,
|
|
3499
3917
|
DbxLoadingProgressComponent,
|
|
3500
3918
|
MatProgressSpinnerModule,
|
|
3501
|
-
MatProgressBarModule
|
|
3919
|
+
MatProgressBarModule,
|
|
3920
|
+
DbxActionLoadingContextDirective
|
|
3502
3921
|
]
|
|
3503
3922
|
}]
|
|
3504
3923
|
}] });
|
|
@@ -3507,7 +3926,7 @@ const DBX_VALUE_LIST_VIEW_ITEM = new InjectionToken('DbxValueListViewItem');
|
|
|
3507
3926
|
const DEFAULT_DBX_VALUE_LIST_CONFIG_MAP_VALUES = (values) => of(values.map(value => ({ value })));
|
|
3508
3927
|
function mapValuesToValuesListItemConfigObs(listViewConfig, values) {
|
|
3509
3928
|
var _a;
|
|
3510
|
-
return ((_a = listViewConfig.mapValuesToItemValues) !== null && _a !== void 0 ? _a : DEFAULT_DBX_VALUE_LIST_CONFIG_MAP_VALUES)(values).pipe(map((itemValues) => {
|
|
3929
|
+
return ((_a = listViewConfig.mapValuesToItemValues) !== null && _a !== void 0 ? _a : DEFAULT_DBX_VALUE_LIST_CONFIG_MAP_VALUES)(values).pipe(map$1((itemValues) => {
|
|
3511
3930
|
const items = mapItemValuesToValueListItemConfig(listViewConfig, itemValues);
|
|
3512
3931
|
return items;
|
|
3513
3932
|
}));
|
|
@@ -3579,13 +3998,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
3579
3998
|
class DbxSelectionValueListViewComponent extends AbstractDbxValueListViewDirective {
|
|
3580
3999
|
constructor(dbxListView) {
|
|
3581
4000
|
super(dbxListView);
|
|
3582
|
-
this.multiple$ = this.config$.pipe(map(x => { var _a; return (_a = x.multiple) !== null && _a !== void 0 ? _a : true; }), distinctUntilChanged(), shareReplay(1));
|
|
4001
|
+
this.multiple$ = this.config$.pipe(map$1(x => { var _a; return (_a = x.multiple) !== null && _a !== void 0 ? _a : true; }), distinctUntilChanged(), shareReplay(1));
|
|
3583
4002
|
}
|
|
3584
4003
|
}
|
|
3585
4004
|
DbxSelectionValueListViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSelectionValueListViewComponent, deps: [{ token: DbxListView }], target: i0.ɵɵFactoryTarget.Component });
|
|
3586
4005
|
DbxSelectionValueListViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxSelectionValueListViewComponent, selector: "dbx-selection-list-view", usesInheritance: true, ngImport: i0, template: `
|
|
3587
4006
|
<dbx-selection-list-view-content [multiple]="multiple$ | async" [items]="items$ | async"></dbx-selection-list-view-content>
|
|
3588
|
-
`, 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
|
|
4007
|
+
`, 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; }) } });
|
|
3589
4008
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSelectionValueListViewComponent, decorators: [{
|
|
3590
4009
|
type: Component,
|
|
3591
4010
|
args: [{
|
|
@@ -3629,7 +4048,7 @@ DbxSelectionValueListItemViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVe
|
|
|
3629
4048
|
<div dbx-injected-content [config]="item.config"></div>
|
|
3630
4049
|
</mat-list-option>
|
|
3631
4050
|
</mat-selection-list>
|
|
3632
|
-
`, isInline: true, components: [{ type: i1$
|
|
4051
|
+
`, 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 } });
|
|
3633
4052
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSelectionValueListItemViewComponent, decorators: [{
|
|
3634
4053
|
type: Component,
|
|
3635
4054
|
args: [{
|
|
@@ -3658,7 +4077,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
3658
4077
|
class DbxValueListViewComponent extends AbstractDbxValueListViewDirective {
|
|
3659
4078
|
constructor() {
|
|
3660
4079
|
super(...arguments);
|
|
3661
|
-
this.emitAllClicks$ = this.config$.pipe(map(x => x.emitAllClicks), shareReplay(1));
|
|
4080
|
+
this.emitAllClicks$ = this.config$.pipe(map$1(x => x.emitAllClicks), shareReplay(1));
|
|
3662
4081
|
}
|
|
3663
4082
|
onClickItem(item) {
|
|
3664
4083
|
// do not emit clicks for disabled items.
|
|
@@ -3682,7 +4101,7 @@ DbxValueListViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
|
|
|
3682
4101
|
</a>
|
|
3683
4102
|
</dbx-anchor>
|
|
3684
4103
|
</mat-nav-list>
|
|
3685
|
-
`, isInline: true, components: [{ type: i1$
|
|
4104
|
+
`, 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 } });
|
|
3686
4105
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxValueListViewComponent, decorators: [{
|
|
3687
4106
|
type: Component,
|
|
3688
4107
|
args: [{
|
|
@@ -3858,11 +4277,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
3858
4277
|
* Component used to style a section's header.
|
|
3859
4278
|
*/
|
|
3860
4279
|
class DbxSectionHeaderComponent {
|
|
4280
|
+
get showTitle() {
|
|
4281
|
+
return Boolean(this.header || this.icon);
|
|
4282
|
+
}
|
|
3861
4283
|
}
|
|
3862
4284
|
DbxSectionHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSectionHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3863
4285
|
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: `
|
|
3864
4286
|
<div class="dbx-section-header-content">
|
|
3865
|
-
<ng-container [ngSwitch]="h ?? 1">
|
|
4287
|
+
<ng-container [ngSwitch]="showTitle && (h ?? 1)">
|
|
3866
4288
|
<h1 *ngSwitchCase="1" class="dbx-section-header-content-title">
|
|
3867
4289
|
<ng-container *ngTemplateOutlet="headerContentTitleTemplate"></ng-container>
|
|
3868
4290
|
</h1>
|
|
@@ -3886,14 +4308,14 @@ DbxSectionHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
|
|
|
3886
4308
|
<ng-template #headerContentTitleTemplate>
|
|
3887
4309
|
<mat-icon *ngIf="icon">{{icon}}</mat-icon><span class="title-text">{{ header }}</span>
|
|
3888
4310
|
</ng-template>
|
|
3889
|
-
`, isInline: true, components: [{ type:
|
|
4311
|
+
`, 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"] }] });
|
|
3890
4312
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSectionHeaderComponent, decorators: [{
|
|
3891
4313
|
type: Component,
|
|
3892
4314
|
args: [{
|
|
3893
4315
|
selector: '.dbx-section-header',
|
|
3894
4316
|
template: `
|
|
3895
4317
|
<div class="dbx-section-header-content">
|
|
3896
|
-
<ng-container [ngSwitch]="h ?? 1">
|
|
4318
|
+
<ng-container [ngSwitch]="showTitle && (h ?? 1)">
|
|
3897
4319
|
<h1 *ngSwitchCase="1" class="dbx-section-header-content-title">
|
|
3898
4320
|
<ng-container *ngTemplateOutlet="headerContentTitleTemplate"></ng-container>
|
|
3899
4321
|
</h1>
|
|
@@ -3999,7 +4421,7 @@ DbxIntroActionSectionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
|
3999
4421
|
<ng-content></ng-content>
|
|
4000
4422
|
</ng-container>
|
|
4001
4423
|
</div>
|
|
4002
|
-
`, 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
|
|
4424
|
+
`, 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"] }] });
|
|
4003
4425
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxIntroActionSectionComponent, decorators: [{
|
|
4004
4426
|
type: Component,
|
|
4005
4427
|
args: [{
|
|
@@ -4147,7 +4569,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
4147
4569
|
class DbxStepComponent {
|
|
4148
4570
|
}
|
|
4149
4571
|
DbxStepComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxStepComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4150
|
-
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:
|
|
4572
|
+
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"] }] });
|
|
4151
4573
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxStepComponent, decorators: [{
|
|
4152
4574
|
type: Component,
|
|
4153
4575
|
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" }]
|
|
@@ -4201,6 +4623,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
4201
4623
|
}]
|
|
4202
4624
|
}] });
|
|
4203
4625
|
|
|
4626
|
+
/**
|
|
4627
|
+
* Icon spacer directive.
|
|
4628
|
+
*/
|
|
4629
|
+
class DbxIconSpacerDirective {
|
|
4630
|
+
}
|
|
4631
|
+
DbxIconSpacerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxIconSpacerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4632
|
+
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 });
|
|
4633
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxIconSpacerDirective, decorators: [{
|
|
4634
|
+
type: Directive,
|
|
4635
|
+
args: [{
|
|
4636
|
+
selector: 'dbx-icon-spacer,dbxIconSpacer',
|
|
4637
|
+
host: {
|
|
4638
|
+
class: 'dbx-icon-spacer d-inline'
|
|
4639
|
+
}
|
|
4640
|
+
}]
|
|
4641
|
+
}] });
|
|
4642
|
+
|
|
4204
4643
|
class DbxLabelComponent {
|
|
4205
4644
|
}
|
|
4206
4645
|
DbxLabelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxLabelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -4223,13 +4662,13 @@ class DbxLinkifyComponent {
|
|
|
4223
4662
|
constructor(sanitizer) {
|
|
4224
4663
|
this.sanitizer = sanitizer;
|
|
4225
4664
|
this._text = new BehaviorSubject('');
|
|
4226
|
-
this.linkifiedText$ = this._text.pipe(distinctUntilChanged$1(), map
|
|
4665
|
+
this.linkifiedText$ = this._text.pipe(distinctUntilChanged$1(), map(x => linkifyStr(x, {
|
|
4227
4666
|
defaultProtocol: 'https',
|
|
4228
4667
|
target: {
|
|
4229
4668
|
url: '_blank'
|
|
4230
4669
|
}
|
|
4231
4670
|
})), shareReplay$1(1));
|
|
4232
|
-
this.linkifiedBody$ = this.linkifiedText$.pipe(map
|
|
4671
|
+
this.linkifiedBody$ = this.linkifiedText$.pipe(map(x => {
|
|
4233
4672
|
return this.sanitizer.bypassSecurityTrustHtml(x);
|
|
4234
4673
|
}), shareReplay$1(1));
|
|
4235
4674
|
}
|
|
@@ -4243,15 +4682,15 @@ class DbxLinkifyComponent {
|
|
|
4243
4682
|
this._text.next(text);
|
|
4244
4683
|
}
|
|
4245
4684
|
}
|
|
4246
|
-
DbxLinkifyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxLinkifyComponent, deps: [{ token: i1$
|
|
4247
|
-
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
|
|
4685
|
+
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 });
|
|
4686
|
+
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 } });
|
|
4248
4687
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxLinkifyComponent, decorators: [{
|
|
4249
4688
|
type: Component,
|
|
4250
4689
|
args: [{
|
|
4251
4690
|
selector: 'dbx-linkify',
|
|
4252
4691
|
template: `<span class="dbx-linkify" [innerHTML]="linkifiedBody$ | async"></span>`
|
|
4253
4692
|
}]
|
|
4254
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
4693
|
+
}], ctorParameters: function () { return [{ type: i1$a.DomSanitizer }]; }, propDecorators: { text: [{
|
|
4255
4694
|
type: Input
|
|
4256
4695
|
}] } });
|
|
4257
4696
|
|
|
@@ -4324,7 +4763,7 @@ DbxTextChipsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
4324
4763
|
{{chip.text}}
|
|
4325
4764
|
</mat-chip>
|
|
4326
4765
|
</mat-chip-list>
|
|
4327
|
-
`, isInline: true, components: [{ type: i1$
|
|
4766
|
+
`, 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"] }] });
|
|
4328
4767
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxTextChipsComponent, decorators: [{
|
|
4329
4768
|
type: Component,
|
|
4330
4769
|
args: [{
|
|
@@ -4367,7 +4806,8 @@ DbxTextModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version:
|
|
|
4367
4806
|
DbxLabelComponent,
|
|
4368
4807
|
DbxLinkifyComponent,
|
|
4369
4808
|
DbxOkComponent,
|
|
4370
|
-
DbxTextChipsComponent
|
|
4809
|
+
DbxTextChipsComponent,
|
|
4810
|
+
DbxIconSpacerDirective], imports: [CommonModule,
|
|
4371
4811
|
MatChipsModule,
|
|
4372
4812
|
MatTooltipModule,
|
|
4373
4813
|
MatIconModule], exports: [DbxNoteComponent,
|
|
@@ -4378,7 +4818,8 @@ DbxTextModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version:
|
|
|
4378
4818
|
DbxLabelComponent,
|
|
4379
4819
|
DbxLinkifyComponent,
|
|
4380
4820
|
DbxOkComponent,
|
|
4381
|
-
DbxTextChipsComponent
|
|
4821
|
+
DbxTextChipsComponent,
|
|
4822
|
+
DbxIconSpacerDirective] });
|
|
4382
4823
|
DbxTextModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxTextModule, imports: [[
|
|
4383
4824
|
CommonModule,
|
|
4384
4825
|
MatChipsModule,
|
|
@@ -4403,7 +4844,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
4403
4844
|
DbxLabelComponent,
|
|
4404
4845
|
DbxLinkifyComponent,
|
|
4405
4846
|
DbxOkComponent,
|
|
4406
|
-
DbxTextChipsComponent
|
|
4847
|
+
DbxTextChipsComponent,
|
|
4848
|
+
DbxIconSpacerDirective
|
|
4407
4849
|
],
|
|
4408
4850
|
exports: [
|
|
4409
4851
|
DbxNoteComponent,
|
|
@@ -4414,7 +4856,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
4414
4856
|
DbxLabelComponent,
|
|
4415
4857
|
DbxLinkifyComponent,
|
|
4416
4858
|
DbxOkComponent,
|
|
4417
|
-
DbxTextChipsComponent
|
|
4859
|
+
DbxTextChipsComponent,
|
|
4860
|
+
DbxIconSpacerDirective
|
|
4418
4861
|
],
|
|
4419
4862
|
}]
|
|
4420
4863
|
}] });
|
|
@@ -4519,7 +4962,7 @@ class DbxPopoverCoordinatorComponent {
|
|
|
4519
4962
|
constructor(service, popover) {
|
|
4520
4963
|
this.service = service;
|
|
4521
4964
|
this.popover = popover;
|
|
4522
|
-
this.isPopoverForKey$ = this.service.popovers$.pipe(map
|
|
4965
|
+
this.isPopoverForKey$ = this.service.popovers$.pipe(map(x => x.get(this.popover.key) === this.popover), shareReplay$1(1));
|
|
4523
4966
|
this.show$ = this.isPopoverForKey$.pipe(delay$1(0));
|
|
4524
4967
|
}
|
|
4525
4968
|
ngOnInit() {
|
|
@@ -4534,7 +4977,7 @@ DbxPopoverCoordinatorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
|
4534
4977
|
<ng-container *ngIf="show$ | async">
|
|
4535
4978
|
<ng-content></ng-content>
|
|
4536
4979
|
</ng-container>
|
|
4537
|
-
`, isInline: true, directives: [{ type: i3
|
|
4980
|
+
`, isInline: true, directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i3.AsyncPipe } });
|
|
4538
4981
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverCoordinatorComponent, decorators: [{
|
|
4539
4982
|
type: Component,
|
|
4540
4983
|
args: [{
|
|
@@ -4609,8 +5052,8 @@ class DbxPopoverComponent extends AbstractTransitionWatcherDirective {
|
|
|
4609
5052
|
this._startedClosing = false;
|
|
4610
5053
|
this._closing = new Subject();
|
|
4611
5054
|
this._triggerCloseKeys = [];
|
|
4612
|
-
this.isClosing$ = this._closing.pipe(first$1(), map
|
|
4613
|
-
this.closing$ = this.isClosing$.pipe(filter
|
|
5055
|
+
this.isClosing$ = this._closing.pipe(first$1(), map(x => true), startWith$1(false), shareReplay$1(1));
|
|
5056
|
+
this.closing$ = this.isClosing$.pipe(filter(x => x));
|
|
4614
5057
|
// Override Close to properly signal to listeners when a close is occuring.
|
|
4615
5058
|
const originalClose = this.popoverRef.close;
|
|
4616
5059
|
this.popoverRef.close = (x) => {
|
|
@@ -4679,7 +5122,7 @@ class DbxPopoverComponent extends AbstractTransitionWatcherDirective {
|
|
|
4679
5122
|
this.close();
|
|
4680
5123
|
}
|
|
4681
5124
|
}
|
|
4682
|
-
DbxPopoverComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverComponent, deps: [{ token: i1$
|
|
5125
|
+
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 });
|
|
4683
5126
|
DbxPopoverComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxPopoverComponent, selector: "ng-component", providers: [{
|
|
4684
5127
|
provide: DbxPopoverController,
|
|
4685
5128
|
useExisting: DbxPopoverComponent
|
|
@@ -4689,7 +5132,7 @@ DbxPopoverComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
|
|
|
4689
5132
|
<dbx-popover-coordinator (dbxWindowKeyDownListener)="handleKeydown($event)" [appWindowKeyDownFilter]="triggerCloseKeys">
|
|
4690
5133
|
<div dbx-style class="dbx-popover-component" dbx-injected-content [config]="contentConfig"></div>
|
|
4691
5134
|
</dbx-popover-coordinator>
|
|
4692
|
-
`, 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" }] });
|
|
5135
|
+
`, 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" }] });
|
|
4693
5136
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverComponent, decorators: [{
|
|
4694
5137
|
type: Component,
|
|
4695
5138
|
args: [{
|
|
@@ -4705,7 +5148,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
4705
5148
|
provide: CompactContextStore
|
|
4706
5149
|
}]
|
|
4707
5150
|
}]
|
|
4708
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
5151
|
+
}], ctorParameters: function () { return [{ type: i1$c.NgPopoverRef }, { type: CompactContextStore }, { type: i1$2.DbxRouterTransitionService }, { type: i0.NgZone }]; } });
|
|
4709
5152
|
|
|
4710
5153
|
/**
|
|
4711
5154
|
* Abstract popover directive.
|
|
@@ -4752,7 +5195,7 @@ DbxPopoverContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
|
|
|
4752
5195
|
<ng-content></ng-content>
|
|
4753
5196
|
</div>
|
|
4754
5197
|
</div>
|
|
4755
|
-
`, isInline: true, directives: [{ type: i1$
|
|
5198
|
+
`, isInline: true, directives: [{ type: i1$8.ResizedDirective, selector: "[resized]", outputs: ["resized"] }], pipes: { "async": i3.AsyncPipe } });
|
|
4756
5199
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverContentComponent, decorators: [{
|
|
4757
5200
|
type: Component,
|
|
4758
5201
|
args: [{
|
|
@@ -4788,7 +5231,7 @@ DbxPopoverHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
|
|
|
4788
5231
|
</div>
|
|
4789
5232
|
</div>
|
|
4790
5233
|
<mat-divider></mat-divider>
|
|
4791
|
-
`, isInline: true, components: [{ type:
|
|
5234
|
+
`, 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"] }] });
|
|
4792
5235
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverHeaderComponent, decorators: [{
|
|
4793
5236
|
type: Component,
|
|
4794
5237
|
args: [{
|
|
@@ -4867,7 +5310,7 @@ class DbxFilterPopoverComponent extends AbstractPopoverDirective {
|
|
|
4867
5310
|
this.showSwitchButtons = Boolean(this.config.customFilterComponentClass && this.config.presetFilterComponentClass);
|
|
4868
5311
|
this._showPreset = new BehaviorSubject(false);
|
|
4869
5312
|
this.showPreset$ = this._showPreset.asObservable();
|
|
4870
|
-
this.config$ = this._showPreset.pipe(map((showPreset) => {
|
|
5313
|
+
this.config$ = this._showPreset.pipe(map$1((showPreset) => {
|
|
4871
5314
|
const { connector, initialFilterObs, customFilterComponentClass, presetFilterComponentClass } = this.config;
|
|
4872
5315
|
let componentClass;
|
|
4873
5316
|
if (showPreset) {
|
|
@@ -4929,7 +5372,7 @@ class DbxFilterPopoverComponent extends AbstractPopoverDirective {
|
|
|
4929
5372
|
}
|
|
4930
5373
|
}
|
|
4931
5374
|
DbxFilterPopoverComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxFilterPopoverComponent, deps: [{ token: DbxPopoverComponent }], target: i0.ɵɵFactoryTarget.Component });
|
|
4932
|
-
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
|
|
5375
|
+
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 } });
|
|
4933
5376
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxFilterPopoverComponent, decorators: [{
|
|
4934
5377
|
type: Component,
|
|
4935
5378
|
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" }]
|
|
@@ -4966,11 +5409,11 @@ class DbxPopoverService {
|
|
|
4966
5409
|
});
|
|
4967
5410
|
}
|
|
4968
5411
|
}
|
|
4969
|
-
DbxPopoverService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverService, deps: [{ token: i1$
|
|
5412
|
+
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 });
|
|
4970
5413
|
DbxPopoverService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverService });
|
|
4971
5414
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverService, decorators: [{
|
|
4972
5415
|
type: Injectable
|
|
4973
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
5416
|
+
}], ctorParameters: function () { return [{ type: i1$d.Overlay }, { type: i0.Injector }]; } });
|
|
4974
5417
|
|
|
4975
5418
|
class AbstractFilterPopoverButtonDirective extends AbstractSubscriptionDirective {
|
|
4976
5419
|
constructor(popupService) {
|
|
@@ -5012,7 +5455,7 @@ DbxFilterPopoverButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion:
|
|
|
5012
5455
|
<button #button mat-icon-button (click)="showFilterPopover()" matTooltip="Filter" matTooltipPosition="above">
|
|
5013
5456
|
<mat-icon>filter_list</mat-icon>
|
|
5014
5457
|
</button>
|
|
5015
|
-
`, 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:
|
|
5458
|
+
`, 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"] }] });
|
|
5016
5459
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxFilterPopoverButtonComponent, decorators: [{
|
|
5017
5460
|
type: Component,
|
|
5018
5461
|
args: [{
|
|
@@ -5174,7 +5617,7 @@ class DbxPopoverActionDirective extends AbstractPopoverRefWithEventsDirective {
|
|
|
5174
5617
|
}
|
|
5175
5618
|
}
|
|
5176
5619
|
}
|
|
5177
|
-
DbxPopoverActionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverActionDirective, deps: [{ token: i0.ElementRef }, { token: i1.
|
|
5620
|
+
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 });
|
|
5178
5621
|
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 });
|
|
5179
5622
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverActionDirective, decorators: [{
|
|
5180
5623
|
type: Directive,
|
|
@@ -5182,7 +5625,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
5182
5625
|
exportAs: 'popoverAction',
|
|
5183
5626
|
selector: '[dbxPopoverAction]'
|
|
5184
5627
|
}]
|
|
5185
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.
|
|
5628
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1$2.DbxActionContextStoreSourceInstance }]; }, propDecorators: { fn: [{
|
|
5186
5629
|
type: Input,
|
|
5187
5630
|
args: ['dbxPopoverAction']
|
|
5188
5631
|
}], appPopoverActionModified: [{
|
|
@@ -5193,15 +5636,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
5193
5636
|
* Action directive that is used to link an DbxButton to an DbxPopoverActionDirective.
|
|
5194
5637
|
*/
|
|
5195
5638
|
class DbxPopoverActionButtonDirective extends DbxActionButtonDirective {
|
|
5196
|
-
constructor(button, source,
|
|
5197
|
-
super(button, source,
|
|
5639
|
+
constructor(button, source, cdRef, appPopoverActionDirective) {
|
|
5640
|
+
super(button, source, cdRef);
|
|
5198
5641
|
this.appPopoverActionDirective = appPopoverActionDirective;
|
|
5199
5642
|
}
|
|
5200
5643
|
_buttonClicked() {
|
|
5201
5644
|
this.appPopoverActionDirective.showPopover();
|
|
5202
5645
|
}
|
|
5203
5646
|
}
|
|
5204
|
-
DbxPopoverActionButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverActionButtonDirective, deps: [{ token: i1.DbxButtonDirective, host: true }, { token: i1.
|
|
5647
|
+
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 });
|
|
5205
5648
|
DbxPopoverActionButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: DbxPopoverActionButtonDirective, selector: "[dbxPopoverActionButton]", usesInheritance: true, ngImport: i0 });
|
|
5206
5649
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverActionButtonDirective, decorators: [{
|
|
5207
5650
|
type: Directive,
|
|
@@ -5209,9 +5652,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
5209
5652
|
selector: '[dbxPopoverActionButton]'
|
|
5210
5653
|
}]
|
|
5211
5654
|
}], ctorParameters: function () {
|
|
5212
|
-
return [{ type: i1.DbxButtonDirective, decorators: [{
|
|
5655
|
+
return [{ type: i1$2.DbxButtonDirective, decorators: [{
|
|
5213
5656
|
type: Host
|
|
5214
|
-
}] }, { type: i1.
|
|
5657
|
+
}] }, { type: i1$2.DbxActionContextStoreSourceInstance }, { type: i0.ChangeDetectorRef }, { type: DbxPopoverActionDirective }];
|
|
5215
5658
|
} });
|
|
5216
5659
|
|
|
5217
5660
|
class DbxKeypressModule {
|
|
@@ -5255,7 +5698,7 @@ class DbxActionKeyTriggerDirective {
|
|
|
5255
5698
|
}
|
|
5256
5699
|
}
|
|
5257
5700
|
}
|
|
5258
|
-
DbxActionKeyTriggerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionKeyTriggerDirective, deps: [{ token: i1.
|
|
5701
|
+
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 });
|
|
5259
5702
|
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 });
|
|
5260
5703
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionKeyTriggerDirective, decorators: [{
|
|
5261
5704
|
type: Directive,
|
|
@@ -5263,7 +5706,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
5263
5706
|
selector: '[dbxActionKeyTrigger]',
|
|
5264
5707
|
}]
|
|
5265
5708
|
}], ctorParameters: function () {
|
|
5266
|
-
return [{ type: i1.
|
|
5709
|
+
return [{ type: i1$2.DbxActionContextStoreSourceInstance, decorators: [{
|
|
5267
5710
|
type: Host
|
|
5268
5711
|
}] }];
|
|
5269
5712
|
}, propDecorators: { inputKey: [{
|
|
@@ -5274,100 +5717,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
5274
5717
|
args: ['document:keyup', ['$event']]
|
|
5275
5718
|
}] } });
|
|
5276
5719
|
|
|
5277
|
-
/**
|
|
5278
|
-
* Component for a snackbar that contains an action.
|
|
5279
|
-
*/
|
|
5280
|
-
class DbxActionSnackbarComponent {
|
|
5281
|
-
constructor(snackbar, data) {
|
|
5282
|
-
this.snackbar = snackbar;
|
|
5283
|
-
this.data = data;
|
|
5284
|
-
this.complete$ = this.actionSourceInstance.isSuccess$;
|
|
5285
|
-
this.snackbarStatusClass$ = this.actionSourceInstance.actionState$.pipe(map$1((x) => {
|
|
5286
|
-
let classes = 'dbx-action-snackbar-';
|
|
5287
|
-
switch (x) {
|
|
5288
|
-
case ActionState.Rejected:
|
|
5289
|
-
classes += 'error';
|
|
5290
|
-
break;
|
|
5291
|
-
case ActionState.Success:
|
|
5292
|
-
classes += 'success';
|
|
5293
|
-
break;
|
|
5294
|
-
default:
|
|
5295
|
-
classes += 'idle';
|
|
5296
|
-
break;
|
|
5297
|
-
}
|
|
5298
|
-
return classes;
|
|
5299
|
-
}), distinctUntilChanged(), shareReplay(1));
|
|
5300
|
-
this.dismissEarly = () => {
|
|
5301
|
-
this.snackbar._dismissAfter(ms('3s'));
|
|
5302
|
-
};
|
|
5303
|
-
this.dismiss = () => {
|
|
5304
|
-
this.snackbar.dismiss();
|
|
5305
|
-
};
|
|
5306
|
-
if (!data.actionSource) {
|
|
5307
|
-
throw new Error('No action was provided to ActionSnackbar.');
|
|
5308
|
-
}
|
|
5309
|
-
}
|
|
5310
|
-
get message() {
|
|
5311
|
-
return this.data.message;
|
|
5312
|
-
}
|
|
5313
|
-
get action() {
|
|
5314
|
-
return this.data.action;
|
|
5315
|
-
}
|
|
5316
|
-
get actionSourceInstance() {
|
|
5317
|
-
return this.data.actionSource;
|
|
5318
|
-
}
|
|
5319
|
-
}
|
|
5320
|
-
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 });
|
|
5321
|
-
DbxActionSnackbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxActionSnackbarComponent, selector: "ng-component", ngImport: i0, template: `
|
|
5322
|
-
<div class="dbx-action-snackbar" [ngClass]="(snackbarStatusClass$ | async)!">
|
|
5323
|
-
<ng-container [ngSwitch]="complete$ | async">
|
|
5324
|
-
<ng-container *ngSwitchCase="true">
|
|
5325
|
-
<div class="spacer"></div>
|
|
5326
|
-
<dbx-button (buttonClick)="dismiss()" color="accent" icon="done" text="Success"></dbx-button>
|
|
5327
|
-
</ng-container>
|
|
5328
|
-
<ng-container *ngSwitchCase="false">
|
|
5329
|
-
<span>{{ message }}</span>
|
|
5330
|
-
<div class="spacer"></div>
|
|
5331
|
-
<dbx-action dbxActionValue [dbxActionSource]="actionSourceInstance" [dbxActionSuccess]="dismissEarly">
|
|
5332
|
-
<dbx-button dbxActionButton color="warn" [text]="action"></dbx-button>
|
|
5333
|
-
</dbx-action>
|
|
5334
|
-
<dbx-button-spacer></dbx-button-spacer>
|
|
5335
|
-
<dbx-button (buttonClick)="dismiss()" color="accent" icon="close"></dbx-button>
|
|
5336
|
-
</ng-container>
|
|
5337
|
-
</ng-container>
|
|
5338
|
-
</div>
|
|
5339
|
-
`, 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 } });
|
|
5340
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionSnackbarComponent, decorators: [{
|
|
5341
|
-
type: Component,
|
|
5342
|
-
args: [{
|
|
5343
|
-
template: `
|
|
5344
|
-
<div class="dbx-action-snackbar" [ngClass]="(snackbarStatusClass$ | async)!">
|
|
5345
|
-
<ng-container [ngSwitch]="complete$ | async">
|
|
5346
|
-
<ng-container *ngSwitchCase="true">
|
|
5347
|
-
<div class="spacer"></div>
|
|
5348
|
-
<dbx-button (buttonClick)="dismiss()" color="accent" icon="done" text="Success"></dbx-button>
|
|
5349
|
-
</ng-container>
|
|
5350
|
-
<ng-container *ngSwitchCase="false">
|
|
5351
|
-
<span>{{ message }}</span>
|
|
5352
|
-
<div class="spacer"></div>
|
|
5353
|
-
<dbx-action dbxActionValue [dbxActionSource]="actionSourceInstance" [dbxActionSuccess]="dismissEarly">
|
|
5354
|
-
<dbx-button dbxActionButton color="warn" [text]="action"></dbx-button>
|
|
5355
|
-
</dbx-action>
|
|
5356
|
-
<dbx-button-spacer></dbx-button-spacer>
|
|
5357
|
-
<dbx-button (buttonClick)="dismiss()" color="accent" icon="close"></dbx-button>
|
|
5358
|
-
</ng-container>
|
|
5359
|
-
</ng-container>
|
|
5360
|
-
</div>
|
|
5361
|
-
`,
|
|
5362
|
-
// TODO: styleUrls: ['./action.scss']
|
|
5363
|
-
}]
|
|
5364
|
-
}], ctorParameters: function () {
|
|
5365
|
-
return [{ type: i1$c.MatSnackBarRef }, { type: undefined, decorators: [{
|
|
5366
|
-
type: Inject,
|
|
5367
|
-
args: [MAT_SNACK_BAR_DATA]
|
|
5368
|
-
}] }];
|
|
5369
|
-
} });
|
|
5370
|
-
|
|
5371
5720
|
class DbxPromptConfirm {
|
|
5372
5721
|
}
|
|
5373
5722
|
function ProvideDbxPromptConfirm(sourceType) {
|
|
@@ -5444,7 +5793,7 @@ class DbxPromptConfirmComponent {
|
|
|
5444
5793
|
}
|
|
5445
5794
|
}
|
|
5446
5795
|
DbxPromptConfirmComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPromptConfirmComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5447
|
-
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:
|
|
5796
|
+
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" }] });
|
|
5448
5797
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPromptConfirmComponent, decorators: [{
|
|
5449
5798
|
type: Component,
|
|
5450
5799
|
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" }]
|
|
@@ -5487,7 +5836,7 @@ DbxPromptConfirmDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion:
|
|
|
5487
5836
|
<dbx-injected-content [config]="injectedConfig"></dbx-injected-content>
|
|
5488
5837
|
</dbx-prompt-confirm>
|
|
5489
5838
|
</dbx-dialog-content>
|
|
5490
|
-
`, 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"] }] });
|
|
5839
|
+
`, 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"] }] });
|
|
5491
5840
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPromptConfirmDialogComponent, decorators: [{
|
|
5492
5841
|
type: Component,
|
|
5493
5842
|
args: [{
|
|
@@ -5526,11 +5875,11 @@ class AbstractPromptConfirmDirective {
|
|
|
5526
5875
|
return result;
|
|
5527
5876
|
}
|
|
5528
5877
|
}
|
|
5529
|
-
AbstractPromptConfirmDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: AbstractPromptConfirmDirective, deps: [{ token: i1$
|
|
5878
|
+
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 });
|
|
5530
5879
|
AbstractPromptConfirmDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: AbstractPromptConfirmDirective, ngImport: i0 });
|
|
5531
5880
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: AbstractPromptConfirmDirective, decorators: [{
|
|
5532
5881
|
type: Directive
|
|
5533
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
5882
|
+
}], ctorParameters: function () { return [{ type: i1$3.MatDialog }]; } });
|
|
5534
5883
|
// MARK: Directive
|
|
5535
5884
|
/**
|
|
5536
5885
|
* Directive that shows a confirmation screen.
|
|
@@ -5540,7 +5889,7 @@ class DbxPromptConfirmDirective extends AbstractPromptConfirmDirective {
|
|
|
5540
5889
|
super(dialog);
|
|
5541
5890
|
}
|
|
5542
5891
|
}
|
|
5543
|
-
DbxPromptConfirmDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPromptConfirmDirective, deps: [{ token: i1$
|
|
5892
|
+
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 });
|
|
5544
5893
|
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 });
|
|
5545
5894
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPromptConfirmDirective, decorators: [{
|
|
5546
5895
|
type: Directive,
|
|
@@ -5548,7 +5897,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
5548
5897
|
selector: '[dbxPromptConfirm]',
|
|
5549
5898
|
providers: ProvideDbxPromptConfirm(DbxPromptConfirmDirective)
|
|
5550
5899
|
}]
|
|
5551
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
5900
|
+
}], ctorParameters: function () { return [{ type: i1$3.MatDialog }]; }, propDecorators: { config: [{
|
|
5552
5901
|
type: Input,
|
|
5553
5902
|
args: ['dbxPromptConfirm']
|
|
5554
5903
|
}] } });
|
|
@@ -5574,8 +5923,9 @@ class DbxActionConfirmDirective extends AbstractPromptConfirmDirective {
|
|
|
5574
5923
|
this._sourceSubscription.destroy();
|
|
5575
5924
|
}
|
|
5576
5925
|
_handleDialogResult(result) {
|
|
5926
|
+
var _a;
|
|
5577
5927
|
if (result) {
|
|
5578
|
-
this.source.readyValue(null);
|
|
5928
|
+
this.source.readyValue((_a = this.config) === null || _a === void 0 ? void 0 : _a.readyValue);
|
|
5579
5929
|
}
|
|
5580
5930
|
else {
|
|
5581
5931
|
this.source.reject(undefined);
|
|
@@ -5583,7 +5933,7 @@ class DbxActionConfirmDirective extends AbstractPromptConfirmDirective {
|
|
|
5583
5933
|
return result;
|
|
5584
5934
|
}
|
|
5585
5935
|
}
|
|
5586
|
-
DbxActionConfirmDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionConfirmDirective, deps: [{ token: i1.
|
|
5936
|
+
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 });
|
|
5587
5937
|
DbxActionConfirmDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: DbxActionConfirmDirective, selector: "[dbxActionConfirm]", inputs: { config: ["dbxActionConfirm", "config"] }, usesInheritance: true, ngImport: i0 });
|
|
5588
5938
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionConfirmDirective, decorators: [{
|
|
5589
5939
|
type: Directive,
|
|
@@ -5591,9 +5941,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
5591
5941
|
selector: '[dbxActionConfirm]'
|
|
5592
5942
|
}]
|
|
5593
5943
|
}], ctorParameters: function () {
|
|
5594
|
-
return [{ type: i1.
|
|
5944
|
+
return [{ type: i1$2.DbxActionContextStoreSourceInstance, decorators: [{
|
|
5595
5945
|
type: Host
|
|
5596
|
-
}] }, { type: i1$
|
|
5946
|
+
}] }, { type: i1$3.MatDialog }];
|
|
5597
5947
|
}, propDecorators: { config: [{
|
|
5598
5948
|
type: Input,
|
|
5599
5949
|
args: ['dbxActionConfirm']
|
|
@@ -5655,14 +6005,14 @@ class DbxPromptConfirmButtonDirective {
|
|
|
5655
6005
|
this.appButton = appButton;
|
|
5656
6006
|
this.prompt = prompt;
|
|
5657
6007
|
this.interceptButtonClick = () => {
|
|
5658
|
-
return this.prompt.showDialog().pipe(map
|
|
6008
|
+
return this.prompt.showDialog().pipe(map(x => Boolean(x)));
|
|
5659
6009
|
};
|
|
5660
6010
|
}
|
|
5661
6011
|
ngOnInit() {
|
|
5662
6012
|
this.appButton.setButtonInterceptor(this);
|
|
5663
6013
|
}
|
|
5664
6014
|
}
|
|
5665
|
-
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 });
|
|
6015
|
+
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 });
|
|
5666
6016
|
DbxPromptConfirmButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: DbxPromptConfirmButtonDirective, selector: "[dbxPromptConfirmButton]", ngImport: i0 });
|
|
5667
6017
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPromptConfirmButtonDirective, decorators: [{
|
|
5668
6018
|
type: Directive,
|
|
@@ -5670,7 +6020,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
5670
6020
|
selector: '[dbxPromptConfirmButton]',
|
|
5671
6021
|
}]
|
|
5672
6022
|
}], ctorParameters: function () {
|
|
5673
|
-
return [{ type: i1.DbxButtonDirective, decorators: [{
|
|
6023
|
+
return [{ type: i1$2.DbxButtonDirective, decorators: [{
|
|
5674
6024
|
type: Host
|
|
5675
6025
|
}] }, { type: DbxPromptConfirm, decorators: [{
|
|
5676
6026
|
type: Host
|
|
@@ -5749,7 +6099,6 @@ class DbxActionModule {
|
|
|
5749
6099
|
}
|
|
5750
6100
|
DbxActionModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5751
6101
|
DbxActionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionModule, declarations: [DbxActionKeyTriggerDirective,
|
|
5752
|
-
DbxActionSnackbarComponent,
|
|
5753
6102
|
DbxActionConfirmDirective], imports: [CommonModule,
|
|
5754
6103
|
DbxCoreActionModule,
|
|
5755
6104
|
DbxButtonModule,
|
|
@@ -5758,7 +6107,6 @@ DbxActionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version
|
|
|
5758
6107
|
MatButtonModule,
|
|
5759
6108
|
DbxPromptModule], exports: [DbxCoreActionModule,
|
|
5760
6109
|
DbxActionKeyTriggerDirective,
|
|
5761
|
-
DbxActionSnackbarComponent,
|
|
5762
6110
|
DbxActionConfirmDirective] });
|
|
5763
6111
|
DbxActionModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionModule, imports: [[
|
|
5764
6112
|
CommonModule,
|
|
@@ -5783,13 +6131,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
5783
6131
|
],
|
|
5784
6132
|
declarations: [
|
|
5785
6133
|
DbxActionKeyTriggerDirective,
|
|
5786
|
-
DbxActionSnackbarComponent,
|
|
5787
6134
|
DbxActionConfirmDirective,
|
|
5788
6135
|
],
|
|
5789
6136
|
exports: [
|
|
5790
6137
|
DbxCoreActionModule,
|
|
5791
6138
|
DbxActionKeyTriggerDirective,
|
|
5792
|
-
DbxActionSnackbarComponent,
|
|
5793
6139
|
DbxActionConfirmDirective,
|
|
5794
6140
|
]
|
|
5795
6141
|
}]
|
|
@@ -5903,7 +6249,7 @@ class DbxFilterWrapperComponent {
|
|
|
5903
6249
|
}
|
|
5904
6250
|
}
|
|
5905
6251
|
DbxFilterWrapperComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxFilterWrapperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5906
|
-
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:
|
|
6252
|
+
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"] }] });
|
|
5907
6253
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxFilterWrapperComponent, decorators: [{
|
|
5908
6254
|
type: Component,
|
|
5909
6255
|
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" }]
|
|
@@ -6060,7 +6406,7 @@ class DbxPopupCoordinatorComponent {
|
|
|
6060
6406
|
constructor(service, popup) {
|
|
6061
6407
|
this.service = service;
|
|
6062
6408
|
this.popup = popup;
|
|
6063
|
-
this.isPopupForKey$ = this.service.popups$.pipe(map
|
|
6409
|
+
this.isPopupForKey$ = this.service.popups$.pipe(map(x => x.get(this.popup.key) === this.popup), shareReplay$1(1));
|
|
6064
6410
|
this.show$ = this.isPopupForKey$.pipe(delay$1(0));
|
|
6065
6411
|
}
|
|
6066
6412
|
ngOnInit() {
|
|
@@ -6075,7 +6421,7 @@ DbxPopupCoordinatorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12
|
|
|
6075
6421
|
<ng-container *ngIf="show$ | async">
|
|
6076
6422
|
<ng-content></ng-content>
|
|
6077
6423
|
</ng-container>
|
|
6078
|
-
`, isInline: true, directives: [{ type: i3
|
|
6424
|
+
`, isInline: true, directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i3.AsyncPipe } });
|
|
6079
6425
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopupCoordinatorComponent, decorators: [{
|
|
6080
6426
|
type: Component,
|
|
6081
6427
|
args: [{
|
|
@@ -6106,8 +6452,8 @@ class DbxPopupComponent extends AbstractTransitionWatcherDirective {
|
|
|
6106
6452
|
init: this.config.init ? ((instance) => this.config.init(instance, this)) : undefined
|
|
6107
6453
|
};
|
|
6108
6454
|
this.closing = new Subject();
|
|
6109
|
-
this.isClosing$ = this.closing.pipe(first$1(), map
|
|
6110
|
-
this.closing$ = this.isClosing$.pipe(filter
|
|
6455
|
+
this.isClosing$ = this.closing.pipe(first$1(), map(x => true), startWith$1(false), shareReplay$1(1));
|
|
6456
|
+
this.closing$ = this.isClosing$.pipe(filter(x => x));
|
|
6111
6457
|
this._windowState = new BehaviorSubject(DbxPopupWindowState.NORMAL);
|
|
6112
6458
|
this.windowState$ = this._windowState.asObservable();
|
|
6113
6459
|
this.compactContextState.setMode(CompactMode.COMPACT);
|
|
@@ -6170,7 +6516,7 @@ class DbxPopupComponent extends AbstractTransitionWatcherDirective {
|
|
|
6170
6516
|
this._windowState.next(DbxPopupWindowState.FULLSCREEN);
|
|
6171
6517
|
}
|
|
6172
6518
|
}
|
|
6173
|
-
DbxPopupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopupComponent, deps: [{ token: i1$
|
|
6519
|
+
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 });
|
|
6174
6520
|
DbxPopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxPopupComponent, selector: "ng-component", providers: [{
|
|
6175
6521
|
provide: DbxPopupController,
|
|
6176
6522
|
useExisting: DbxPopupComponent
|
|
@@ -6180,7 +6526,7 @@ DbxPopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
|
|
|
6180
6526
|
<dbx-popup-coordinator>
|
|
6181
6527
|
<div class="dbx-popup-component" dbx-injected-content [config]="contentConfig"></div>
|
|
6182
6528
|
</dbx-popup-coordinator>
|
|
6183
|
-
`, isInline: true, components: [{ type: DbxPopupCoordinatorComponent, selector: "dbx-popup-coordinator" }, { type: i1.DbxInjectedComponent, selector: "dbx-injected-content, [dbx-injected-content]", inputs: ["config", "template"] }] });
|
|
6529
|
+
`, isInline: true, components: [{ type: DbxPopupCoordinatorComponent, selector: "dbx-popup-coordinator" }, { type: i1$2.DbxInjectedComponent, selector: "dbx-injected-content, [dbx-injected-content]", inputs: ["config", "template"] }] });
|
|
6184
6530
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopupComponent, decorators: [{
|
|
6185
6531
|
type: Component,
|
|
6186
6532
|
args: [{
|
|
@@ -6196,7 +6542,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
6196
6542
|
provide: CompactContextStore
|
|
6197
6543
|
}]
|
|
6198
6544
|
}]
|
|
6199
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
6545
|
+
}], ctorParameters: function () { return [{ type: i1$c.NgPopoverRef }, { type: CompactContextStore }, { type: i1$2.DbxRouterTransitionService }, { type: i0.NgZone }]; } });
|
|
6200
6546
|
|
|
6201
6547
|
/**
|
|
6202
6548
|
* Abstract popup directive.
|
|
@@ -6221,7 +6567,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
6221
6567
|
class DbxPopupContentComponent {
|
|
6222
6568
|
constructor(appPopupController) {
|
|
6223
6569
|
this.appPopupController = appPopupController;
|
|
6224
|
-
this.showContent$ = this.appPopupController.windowState$.pipe(map
|
|
6570
|
+
this.showContent$ = this.appPopupController.windowState$.pipe(map(x => x !== DbxPopupWindowState.MINIMIZED));
|
|
6225
6571
|
}
|
|
6226
6572
|
}
|
|
6227
6573
|
DbxPopupContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopupContentComponent, deps: [{ token: DbxPopupController }], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -6230,7 +6576,7 @@ DbxPopupContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0
|
|
|
6230
6576
|
<div *ngIf="showContent$ | async" class="dbx-popup-content-container">
|
|
6231
6577
|
<ng-content></ng-content>
|
|
6232
6578
|
</div>
|
|
6233
|
-
`, isInline: true, directives: [{ type: i3
|
|
6579
|
+
`, isInline: true, directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i3.AsyncPipe } });
|
|
6234
6580
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopupContentComponent, decorators: [{
|
|
6235
6581
|
type: Component,
|
|
6236
6582
|
args: [{
|
|
@@ -6253,8 +6599,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
6253
6599
|
class DbxPopupControlButtonsComponent {
|
|
6254
6600
|
constructor(appPopupController) {
|
|
6255
6601
|
this.appPopupController = appPopupController;
|
|
6256
|
-
this.isMinimized$ = this.appPopupController.windowState$.pipe(map
|
|
6257
|
-
this.isFullscreen$ = this.appPopupController.windowState$.pipe(map
|
|
6602
|
+
this.isMinimized$ = this.appPopupController.windowState$.pipe(map(x => x === DbxPopupWindowState.MINIMIZED));
|
|
6603
|
+
this.isFullscreen$ = this.appPopupController.windowState$.pipe(map(x => x === DbxPopupWindowState.FULLSCREEN));
|
|
6258
6604
|
}
|
|
6259
6605
|
minimizeClicked() {
|
|
6260
6606
|
this.appPopupController.minimize();
|
|
@@ -6285,7 +6631,7 @@ DbxPopupControlButtonsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion:
|
|
|
6285
6631
|
</ng-container>
|
|
6286
6632
|
<dbx-button-spacer></dbx-button-spacer>
|
|
6287
6633
|
<dbx-button [flat]="true" icon="close" color="warn" (buttonClick)="closeClicked()"></dbx-button>
|
|
6288
|
-
`, isInline: true, components: [{ type: DbxButtonComponent, selector: "dbx-button", inputs: ["type", "raised", "stroked", "flat", "color"] }
|
|
6634
|
+
`, 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 } });
|
|
6289
6635
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopupControlButtonsComponent, decorators: [{
|
|
6290
6636
|
type: Component,
|
|
6291
6637
|
args: [{
|
|
@@ -6366,11 +6712,11 @@ class DbxPopupService {
|
|
|
6366
6712
|
});
|
|
6367
6713
|
}
|
|
6368
6714
|
}
|
|
6369
|
-
DbxPopupService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopupService, deps: [{ token: i1$
|
|
6715
|
+
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 });
|
|
6370
6716
|
DbxPopupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopupService });
|
|
6371
6717
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopupService, decorators: [{
|
|
6372
6718
|
type: Injectable
|
|
6373
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
6719
|
+
}], ctorParameters: function () { return [{ type: i1$d.Overlay }, { type: i0.Injector }]; } });
|
|
6374
6720
|
|
|
6375
6721
|
class DbxPopupInteractionModule {
|
|
6376
6722
|
static forRoot() {
|
|
@@ -6469,6 +6815,47 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
6469
6815
|
}]
|
|
6470
6816
|
}] });
|
|
6471
6817
|
|
|
6818
|
+
class DbxActionSnackbarModule {
|
|
6819
|
+
}
|
|
6820
|
+
DbxActionSnackbarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionSnackbarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6821
|
+
DbxActionSnackbarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionSnackbarModule, declarations: [DbxActionSnackbarComponent,
|
|
6822
|
+
DbxActionSnackbarDirective], imports: [CommonModule,
|
|
6823
|
+
DbxStyleLayoutModule,
|
|
6824
|
+
DbxCoreActionModule,
|
|
6825
|
+
DbxPromptModule,
|
|
6826
|
+
DbxButtonModule,
|
|
6827
|
+
DbxReadableErrorModule], exports: [DbxActionSnackbarComponent,
|
|
6828
|
+
DbxActionSnackbarDirective] });
|
|
6829
|
+
DbxActionSnackbarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionSnackbarModule, imports: [[
|
|
6830
|
+
CommonModule,
|
|
6831
|
+
DbxStyleLayoutModule,
|
|
6832
|
+
DbxCoreActionModule,
|
|
6833
|
+
DbxPromptModule,
|
|
6834
|
+
DbxButtonModule,
|
|
6835
|
+
DbxReadableErrorModule
|
|
6836
|
+
]] });
|
|
6837
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionSnackbarModule, decorators: [{
|
|
6838
|
+
type: NgModule,
|
|
6839
|
+
args: [{
|
|
6840
|
+
imports: [
|
|
6841
|
+
CommonModule,
|
|
6842
|
+
DbxStyleLayoutModule,
|
|
6843
|
+
DbxCoreActionModule,
|
|
6844
|
+
DbxPromptModule,
|
|
6845
|
+
DbxButtonModule,
|
|
6846
|
+
DbxReadableErrorModule
|
|
6847
|
+
],
|
|
6848
|
+
declarations: [
|
|
6849
|
+
DbxActionSnackbarComponent,
|
|
6850
|
+
DbxActionSnackbarDirective
|
|
6851
|
+
],
|
|
6852
|
+
exports: [
|
|
6853
|
+
DbxActionSnackbarComponent,
|
|
6854
|
+
DbxActionSnackbarDirective
|
|
6855
|
+
]
|
|
6856
|
+
}]
|
|
6857
|
+
}] });
|
|
6858
|
+
|
|
6472
6859
|
var DbxActionTransitionSafetyDialogResult;
|
|
6473
6860
|
(function (DbxActionTransitionSafetyDialogResult) {
|
|
6474
6861
|
DbxActionTransitionSafetyDialogResult[DbxActionTransitionSafetyDialogResult["SUCCESS"] = 0] = "SUCCESS";
|
|
@@ -6506,7 +6893,7 @@ DbxActionUIRouterTransitionSafetyDialogComponent.ɵcmp = i0.ɵɵngDeclareCompone
|
|
|
6506
6893
|
<dbx-button-spacer></dbx-button-spacer>
|
|
6507
6894
|
</ng-container>
|
|
6508
6895
|
</dbx-prompt-confirm>
|
|
6509
|
-
`, 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:
|
|
6896
|
+
`, 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" }] });
|
|
6510
6897
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionUIRouterTransitionSafetyDialogComponent, decorators: [{
|
|
6511
6898
|
type: Component,
|
|
6512
6899
|
args: [{
|
|
@@ -6560,9 +6947,9 @@ class DbxActionTransitionSafetyDirective {
|
|
|
6560
6947
|
if (isModified) {
|
|
6561
6948
|
return race([
|
|
6562
6949
|
// Watch for success to occur. At that point, close everything.
|
|
6563
|
-
this.source.success$.pipe(first$1(), map
|
|
6564
|
-
this._handleIsModifiedState(transition).pipe(first$1(), map
|
|
6565
|
-
]).pipe(map
|
|
6950
|
+
this.source.success$.pipe(first$1(), map((x) => [true, undefined])),
|
|
6951
|
+
this._handleIsModifiedState(transition).pipe(first$1(), map((x) => [undefined, x]))
|
|
6952
|
+
]).pipe(map(([saveSuccess, handleResult]) => {
|
|
6566
6953
|
if (saveSuccess) {
|
|
6567
6954
|
return true;
|
|
6568
6955
|
}
|
|
@@ -6619,7 +7006,7 @@ class DbxActionTransitionSafetyDirective {
|
|
|
6619
7006
|
viewContainerRef: this.viewContainerRef
|
|
6620
7007
|
});
|
|
6621
7008
|
}
|
|
6622
|
-
return this._dialogRef.afterClosed().pipe(first$1(), map
|
|
7009
|
+
return this._dialogRef.afterClosed().pipe(first$1(), map((result = DbxActionTransitionSafetyDialogResult.STAY) => {
|
|
6623
7010
|
// Default to Stay if the user clicks outside.
|
|
6624
7011
|
switch (result) {
|
|
6625
7012
|
case DbxActionTransitionSafetyDialogResult.DISCARD:
|
|
@@ -6638,14 +7025,14 @@ class DbxActionTransitionSafetyDirective {
|
|
|
6638
7025
|
this._dialogRef = undefined;
|
|
6639
7026
|
}
|
|
6640
7027
|
}
|
|
6641
|
-
DbxActionTransitionSafetyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionTransitionSafetyDirective, deps: [{ token: i1.
|
|
7028
|
+
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 });
|
|
6642
7029
|
DbxActionTransitionSafetyDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: DbxActionTransitionSafetyDirective, selector: "[dbxActionTransitionSafety]", inputs: { inputSafetyType: ["dbxActionTransitionSafety", "inputSafetyType"] }, ngImport: i0 });
|
|
6643
7030
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionTransitionSafetyDirective, decorators: [{
|
|
6644
7031
|
type: Directive,
|
|
6645
7032
|
args: [{
|
|
6646
7033
|
selector: '[dbxActionTransitionSafety]',
|
|
6647
7034
|
}]
|
|
6648
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
7035
|
+
}], ctorParameters: function () { return [{ type: i1$2.DbxActionContextStoreSourceInstance }, { type: i2$3.TransitionService }, { type: i0.ViewContainerRef }, { type: i1$3.MatDialog }]; }, propDecorators: { inputSafetyType: [{
|
|
6649
7036
|
type: Input,
|
|
6650
7037
|
args: ['dbxActionTransitionSafety']
|
|
6651
7038
|
}] } });
|
|
@@ -6719,7 +7106,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
6719
7106
|
class DbxWebRootModule {
|
|
6720
7107
|
}
|
|
6721
7108
|
DbxWebRootModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxWebRootModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6722
|
-
DbxWebRootModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxWebRootModule, imports: [i1
|
|
7109
|
+
DbxWebRootModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxWebRootModule, imports: [i1.MatProgressButtonsModule] });
|
|
6723
7110
|
DbxWebRootModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxWebRootModule, imports: [[
|
|
6724
7111
|
MatProgressButtonsModule.forRoot()
|
|
6725
7112
|
]] });
|
|
@@ -6736,5 +7123,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
6736
7123
|
* Generated bundle index. Do not edit.
|
|
6737
7124
|
*/
|
|
6738
7125
|
|
|
6739
|
-
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,
|
|
7126
|
+
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 };
|
|
6740
7127
|
//# sourceMappingURL=dereekb-dbx-web.mjs.map
|