@dereekb/dbx-web 1.1.0 → 2.1.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/dialog/abstract.dialog.directive.mjs +4 -1
- package/esm2020/lib/interaction/dialog/dialog.action.directive.mjs +41 -0
- package/esm2020/lib/interaction/dialog/dialog.module.mjs +9 -4
- package/esm2020/lib/interaction/dialog/index.mjs +2 -1
- package/esm2020/lib/interaction/popover/index.mjs +1 -2
- package/esm2020/lib/interaction/popover/popover.action.directive.mjs +19 -57
- package/esm2020/lib/interaction/popover/popover.module.mjs +6 -11
- 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 +43 -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 +968 -582
- package/fesm2015/dereekb-dbx-web.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-web.mjs +965 -579
- 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/dialog/abstract.dialog.directive.d.ts +1 -0
- package/lib/interaction/dialog/dialog.action.directive.d.ts +21 -0
- package/lib/interaction/dialog/dialog.module.d.ts +4 -3
- package/lib/interaction/dialog/index.d.ts +1 -0
- package/lib/interaction/popover/index.d.ts +0 -1
- package/lib/interaction/popover/popover.action.directive.d.ts +15 -24
- package/lib/interaction/popover/popover.module.d.ts +20 -21
- 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.scss +5 -0
- package/lib/router/layout/anchor/anchor.content.component.d.ts +22 -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 +35 -36
- package/esm2020/lib/action/action.snackbar.component.mjs +0 -104
- package/esm2020/lib/interaction/popover/popover.action.button.directive.mjs +0 -29
- package/lib/action/action.snackbar.component.d.ts +0 -22
- package/lib/interaction/popover/popover.action.button.directive.d.ts +0 -14
|
@@ -1,24 +1,29 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { filterMaybe, LoadingStateType, loadingStateType, skipFirstMaybe, initialize, asObservable, SubscriptionObject, ListLoadingStateContextInstance, loadingStateHasFinishedLoading, beginLoading, getter, LoadingStateContextInstance, switchMapMaybeObs, LockSet } from '@dereekb/rxjs';
|
|
2
|
+
import { Subject, BehaviorSubject, of, switchMap, startWith, shareReplay, distinctUntilChanged, first, combineLatest, map as map$1, delay, throttleTime, 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, mergeMap, tap } from 'rxjs/operators';
|
|
8
|
+
import * as i1$2 from '@dereekb/dbx-core';
|
|
9
|
+
import { AbstractDbxButtonDirective, ProvideDbxButton, AbstractSubscriptionDirective, DbxCoreButtonModule, AbstractTransitionWatcherDirective, AbstractDbxActionValueOnTriggerDirective, safeDetectChanges, AbstractDbxAnchorDirective, DbxInjectedComponentModule, expandClickableAnchorLinkTrees, AbstractTransitionDirective, tapDetectChanges, checkNgContentWrapperHasContent, anchorTypeForAnchor, AnchorType, DbxCoreActionModule, DbxCoreFilterModule, isIdleActionState, canTriggerAction } from '@dereekb/dbx-core';
|
|
10
|
+
import ms from 'ms';
|
|
11
|
+
import * as i1 from 'mat-progress-buttons';
|
|
12
|
+
import { MatProgressButtonsModule } from 'mat-progress-buttons';
|
|
13
|
+
import * as i3 from '@angular/common';
|
|
14
|
+
import { CommonModule } from '@angular/common';
|
|
15
|
+
import { getValueFromObjectOrGetter, mergeObjects, splitCommaSeparatedStringToSet, applyBestFit, convertToReadableError, ServerErrorResponse, UnauthorizedServerErrorResponse } from '@dereekb/util';
|
|
16
|
+
import * as i1$3 from '@angular/material/dialog';
|
|
6
17
|
import { MAT_DIALOG_DATA, MatDialogRef, MatDialogModule } from '@angular/material/dialog';
|
|
7
|
-
import * as i1 from '@dereekb/dbx-core';
|
|
8
|
-
import { AbstractTransitionWatcherDirective, AbstractSubscriptionDirective, safeDetectChanges, AbstractDbxAnchorDirective, DbxInjectedComponentModule, expandClickableAnchorLinkTrees, AbstractTransitionDirective, tapDetectChanges, AbstractDbxButtonDirective, ProvideDbxButton, checkNgContentWrapperHasContent, anchorTypeForAnchor, AnchorType, DbxActionButtonDirective, ActionState, DbxCoreActionModule, DbxCoreFilterModule, isIdleActionState, canTriggerAction } from '@dereekb/dbx-core';
|
|
9
|
-
import { splitCommaSeparatedStringToSet, applyBestFit, convertToReadableError, ServerErrorResponse, UnauthorizedServerErrorResponse } from '@dereekb/util';
|
|
10
|
-
import { BehaviorSubject, switchMap, distinctUntilChanged, shareReplay, combineLatest, map, delay, Subject, throttleTime, first, of, startWith, filter, merge, exhaustMap, catchError, from, race } from 'rxjs';
|
|
11
|
-
import { filterMaybe, skipFirstMaybe, initialize, asObservable, SubscriptionObject, ListLoadingStateContextInstance, loadingStateHasFinishedLoading, beginLoading, getter, switchMapMaybeObs, LockSet } from '@dereekb/rxjs';
|
|
12
18
|
import * as i2 from '@angular/material/button';
|
|
13
19
|
import { MatButtonModule } from '@angular/material/button';
|
|
14
|
-
import * as i1$
|
|
20
|
+
import * as i1$b from 'ng-overlay-container';
|
|
15
21
|
import { NgOverlayContainerService, NgOverlayContainerModule } from 'ng-overlay-container';
|
|
16
|
-
import
|
|
17
|
-
import * as i1$2 from '@angular/material/toolbar';
|
|
22
|
+
import * as i1$4 from '@angular/material/toolbar';
|
|
18
23
|
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
19
|
-
import * as i3 from '@angular/material/icon';
|
|
24
|
+
import * as i3$1 from '@angular/material/icon';
|
|
20
25
|
import { MatIconModule } from '@angular/material/icon';
|
|
21
|
-
import * as i1$
|
|
26
|
+
import * as i1$5 from '@angular/material/list';
|
|
22
27
|
import { MatListModule } from '@angular/material/list';
|
|
23
28
|
import * as i7 from '@angular/material/tabs';
|
|
24
29
|
import { MatTabsModule } from '@angular/material/tabs';
|
|
@@ -28,18 +33,16 @@ import * as i4 from '@angular/material/divider';
|
|
|
28
33
|
import { MatDividerModule } from '@angular/material/divider';
|
|
29
34
|
import * as i6 from '@angular/material/core';
|
|
30
35
|
import { MatRippleModule } from '@angular/material/core';
|
|
31
|
-
import * as i1$
|
|
36
|
+
import * as i1$6 from '@angular/cdk/layout';
|
|
32
37
|
import * as i3$2 from '@angular/material/sidenav';
|
|
33
38
|
import { MatSidenav, MatSidenavModule } from '@angular/material/sidenav';
|
|
34
39
|
import * as i2$1 from '@uirouter/angular';
|
|
35
40
|
import { UIRouterModule } from '@uirouter/angular';
|
|
36
|
-
import * as i1$
|
|
37
|
-
import { MatProgressButtonsModule } from 'mat-progress-buttons';
|
|
38
|
-
import * as i1$6 from 'angular-resize-event';
|
|
41
|
+
import * as i1$7 from 'angular-resize-event';
|
|
39
42
|
import { AngularResizeEventModule } from 'angular-resize-event';
|
|
40
43
|
import { ComponentStore } from '@ngrx/component-store';
|
|
41
44
|
import { isBoolean } from 'class-validator';
|
|
42
|
-
import * as i1$
|
|
45
|
+
import * as i1$8 from '@angular/material/progress-bar';
|
|
43
46
|
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
44
47
|
import * as i2$2 from '@angular/material/progress-spinner';
|
|
45
48
|
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
@@ -47,20 +50,528 @@ import * as i3$3 from 'ngx-infinite-scroll';
|
|
|
47
50
|
import { InfiniteScrollModule } from 'ngx-infinite-scroll';
|
|
48
51
|
import { HttpErrorResponse } from '@angular/common/http';
|
|
49
52
|
import linkifyStr from 'linkify-string';
|
|
50
|
-
import * as i1$
|
|
51
|
-
import * as i1$
|
|
53
|
+
import * as i1$9 from '@angular/platform-browser';
|
|
54
|
+
import * as i1$a from '@angular/material/chips';
|
|
52
55
|
import { MatChipsModule } from '@angular/material/chips';
|
|
53
56
|
import * as i3$4 from '@angular/material/tooltip';
|
|
54
57
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
55
|
-
import * as i1$
|
|
58
|
+
import * as i1$c from '@angular/cdk/overlay';
|
|
56
59
|
import { GlobalPositionStrategy } from '@angular/cdk/overlay';
|
|
57
|
-
import * as i1$c from '@angular/material/snack-bar';
|
|
58
|
-
import { MAT_SNACK_BAR_DATA, MatSnackBarModule } from '@angular/material/snack-bar';
|
|
59
|
-
import ms from 'ms';
|
|
60
60
|
import * as i3$5 from '@angular/flex-layout/flex';
|
|
61
61
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
|
62
62
|
import * as i2$3 from '@uirouter/core';
|
|
63
63
|
|
|
64
|
+
var DbxButtonDisplayType;
|
|
65
|
+
(function (DbxButtonDisplayType) {
|
|
66
|
+
DbxButtonDisplayType[DbxButtonDisplayType["RAISED"] = 0] = "RAISED";
|
|
67
|
+
DbxButtonDisplayType[DbxButtonDisplayType["STROKED"] = 1] = "STROKED";
|
|
68
|
+
DbxButtonDisplayType[DbxButtonDisplayType["FLAT"] = 2] = "FLAT";
|
|
69
|
+
})(DbxButtonDisplayType || (DbxButtonDisplayType = {}));
|
|
70
|
+
/**
|
|
71
|
+
* Complex button that supports loading states.
|
|
72
|
+
*/
|
|
73
|
+
class DbxButtonComponent extends AbstractDbxButtonDirective {
|
|
74
|
+
constructor() {
|
|
75
|
+
super(...arguments);
|
|
76
|
+
this.color = 'primary';
|
|
77
|
+
}
|
|
78
|
+
get raised() {
|
|
79
|
+
return this.type === DbxButtonDisplayType.RAISED;
|
|
80
|
+
}
|
|
81
|
+
set raised(raised) {
|
|
82
|
+
if (raised) {
|
|
83
|
+
this.type = DbxButtonDisplayType.RAISED;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
get stroked() {
|
|
87
|
+
return this.type === DbxButtonDisplayType.STROKED;
|
|
88
|
+
}
|
|
89
|
+
set stroked(stroked) {
|
|
90
|
+
if (stroked) {
|
|
91
|
+
this.type = DbxButtonDisplayType.STROKED;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
get flat() {
|
|
95
|
+
return this.type === DbxButtonDisplayType.FLAT;
|
|
96
|
+
}
|
|
97
|
+
set flat(flat) {
|
|
98
|
+
if (flat) {
|
|
99
|
+
this.type = DbxButtonDisplayType.FLAT;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
get btnOptions() {
|
|
103
|
+
const buttonIcon = (this.icon) ? {
|
|
104
|
+
fontIcon: this.icon
|
|
105
|
+
} : undefined;
|
|
106
|
+
return {
|
|
107
|
+
fab: false,
|
|
108
|
+
active: this.working,
|
|
109
|
+
buttonIcon,
|
|
110
|
+
customClass: 'dbx-button ' + ((buttonIcon && !this.text) ? 'dbx-button-no-text' : ''),
|
|
111
|
+
// buttonIcon: icon,
|
|
112
|
+
text: this.text ?? '',
|
|
113
|
+
buttonColor: this.color,
|
|
114
|
+
barColor: 'accent',
|
|
115
|
+
raised: this.raised,
|
|
116
|
+
stroked: this.stroked,
|
|
117
|
+
flat: this.flat,
|
|
118
|
+
mode: 'indeterminate',
|
|
119
|
+
spinnerSize: 18,
|
|
120
|
+
spinnerColor: 'accent',
|
|
121
|
+
// Only disabled if we're not working, in order to show the animation.
|
|
122
|
+
disabled: !this.working && this.disabled
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
DbxButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
127
|
+
DbxButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxButtonComponent, selector: "dbx-button", inputs: { type: "type", raised: "raised", stroked: "stroked", flat: "flat", color: "color" }, providers: ProvideDbxButton(DbxButtonComponent), usesInheritance: true, ngImport: i0, template: `
|
|
128
|
+
<mat-spinner-button class="page-button" (btnClick)="clickButton()" [options]="btnOptions"></mat-spinner-button>
|
|
129
|
+
`, isInline: true, components: [{ type: i1.MatSpinnerButtonComponent, selector: "mat-spinner-button", inputs: ["options", "buttonId", "active", "disabled"], outputs: ["btnClick"] }] });
|
|
130
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonComponent, decorators: [{
|
|
131
|
+
type: Component,
|
|
132
|
+
args: [{
|
|
133
|
+
selector: 'dbx-button',
|
|
134
|
+
template: `
|
|
135
|
+
<mat-spinner-button class="page-button" (btnClick)="clickButton()" [options]="btnOptions"></mat-spinner-button>
|
|
136
|
+
`,
|
|
137
|
+
providers: ProvideDbxButton(DbxButtonComponent)
|
|
138
|
+
}]
|
|
139
|
+
}], propDecorators: { type: [{
|
|
140
|
+
type: Input
|
|
141
|
+
}], raised: [{
|
|
142
|
+
type: Input
|
|
143
|
+
}], stroked: [{
|
|
144
|
+
type: Input
|
|
145
|
+
}], flat: [{
|
|
146
|
+
type: Input
|
|
147
|
+
}], color: [{
|
|
148
|
+
type: Input
|
|
149
|
+
}] } });
|
|
150
|
+
|
|
151
|
+
class DbxSpacerDirective {
|
|
152
|
+
}
|
|
153
|
+
DbxSpacerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSpacerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
154
|
+
DbxSpacerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: DbxSpacerDirective, selector: "dbx-spacer, [dbx-spacer]", host: { classAttribute: "dbx-spacer" }, ngImport: i0 });
|
|
155
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSpacerDirective, decorators: [{
|
|
156
|
+
type: Directive,
|
|
157
|
+
args: [{
|
|
158
|
+
selector: 'dbx-spacer, [dbx-spacer]',
|
|
159
|
+
host: {
|
|
160
|
+
'class': 'dbx-spacer'
|
|
161
|
+
}
|
|
162
|
+
}]
|
|
163
|
+
}] });
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Button spacer directive.
|
|
167
|
+
*/
|
|
168
|
+
class DbxButtonSpacerDirective {
|
|
169
|
+
}
|
|
170
|
+
DbxButtonSpacerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonSpacerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
171
|
+
DbxButtonSpacerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: DbxButtonSpacerDirective, selector: "dbx-button-spacer,dbxButtonSpacer", host: { classAttribute: "dbx-button-spacer d-inline" }, ngImport: i0 });
|
|
172
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonSpacerDirective, decorators: [{
|
|
173
|
+
type: Directive,
|
|
174
|
+
args: [{
|
|
175
|
+
selector: 'dbx-button-spacer,dbxButtonSpacer',
|
|
176
|
+
host: {
|
|
177
|
+
class: 'dbx-button-spacer d-inline'
|
|
178
|
+
}
|
|
179
|
+
}]
|
|
180
|
+
}] });
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Component for a snackbar that contains an action.
|
|
184
|
+
*/
|
|
185
|
+
class DbxActionSnackbarComponent extends AbstractSubscriptionDirective {
|
|
186
|
+
constructor(snackbar, data) {
|
|
187
|
+
super();
|
|
188
|
+
this.snackbar = snackbar;
|
|
189
|
+
this.data = data;
|
|
190
|
+
this._durationTimeout = new Subject();
|
|
191
|
+
this._actionRef = new BehaviorSubject(undefined);
|
|
192
|
+
this.value$ = of(0); // value passed to the action.
|
|
193
|
+
this.sourceInstance$ = this._actionRef.pipe(filterMaybe(), map(x => x?.sourceInstance));
|
|
194
|
+
this.complete$ = this.sourceInstance$.pipe(switchMap(x => x.isSuccess$), startWith(false), shareReplay(1));
|
|
195
|
+
this.loadingStateType$ = this.sourceInstance$.pipe(switchMap(x => x.loadingStateType$), startWith(LoadingStateType.IDLE), shareReplay(1));
|
|
196
|
+
this.snackbarStatusClass$ = this.loadingStateType$.pipe(map((x) => {
|
|
197
|
+
let classes = 'dbx-action-snackbar-';
|
|
198
|
+
switch (x) {
|
|
199
|
+
case LoadingStateType.ERROR:
|
|
200
|
+
classes += 'error';
|
|
201
|
+
break;
|
|
202
|
+
case LoadingStateType.SUCCESS:
|
|
203
|
+
classes += 'success';
|
|
204
|
+
break;
|
|
205
|
+
default:
|
|
206
|
+
classes += 'idle';
|
|
207
|
+
break;
|
|
208
|
+
}
|
|
209
|
+
return classes;
|
|
210
|
+
}), distinctUntilChanged(), shareReplay(1));
|
|
211
|
+
this.dismissAfterActionCompletes = () => {
|
|
212
|
+
this.snackbar._dismissAfter(ms('3s'));
|
|
213
|
+
};
|
|
214
|
+
this.dismiss = () => {
|
|
215
|
+
this.snackbar.dismiss();
|
|
216
|
+
};
|
|
217
|
+
this.button = this.data.action?.button ?? this.data.button;
|
|
218
|
+
this._actionRef.next(this.data.action?.reference);
|
|
219
|
+
}
|
|
220
|
+
get action() {
|
|
221
|
+
return this.data.action;
|
|
222
|
+
}
|
|
223
|
+
get hasAction() {
|
|
224
|
+
return Boolean(this._actionRef.value);
|
|
225
|
+
}
|
|
226
|
+
get message() {
|
|
227
|
+
return this.data.message;
|
|
228
|
+
}
|
|
229
|
+
get actionConfig() {
|
|
230
|
+
return this.data.action;
|
|
231
|
+
}
|
|
232
|
+
ngOnInit() {
|
|
233
|
+
// Subscribe and close if the duration is up and the action state is idle.
|
|
234
|
+
this.sub = this._durationTimeout.pipe(switchMap((x) => this.loadingStateType$), filter(x => x === LoadingStateType.IDLE)).subscribe(() => {
|
|
235
|
+
this.dismiss();
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
ngOnDestroy() {
|
|
239
|
+
super.ngOnDestroy();
|
|
240
|
+
this._actionRef.value?.destroy();
|
|
241
|
+
this._actionRef.complete();
|
|
242
|
+
this._durationTimeout.complete();
|
|
243
|
+
}
|
|
244
|
+
ngAfterViewInit() {
|
|
245
|
+
// Responsible for hiding itself if it has an action.
|
|
246
|
+
if (this.hasAction) {
|
|
247
|
+
setTimeout(() => {
|
|
248
|
+
this._durationTimeout.next();
|
|
249
|
+
}, this.action?.duration ?? ms('10s'));
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
DbxActionSnackbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionSnackbarComponent, deps: [{ token: i1$1.MatSnackBarRef }, { token: MAT_SNACK_BAR_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
254
|
+
DbxActionSnackbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxActionSnackbarComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<div class=\"dbx-action-snackbar\" [ngClass]=\"(snackbarStatusClass$ | async)!\">\n <ng-container [ngSwitch]=\"complete$ | async\">\n <ng-container *ngSwitchCase=\"true\">\n <dbx-spacer></dbx-spacer>\n <dbx-button (buttonClick)=\"dismiss()\" color=\"accent\" icon=\"done\" text=\"Success\"></dbx-button>\n </ng-container>\n <ng-container *ngSwitchCase=\"false\">\n <span>{{ message }}</span>\n <dbx-spacer></dbx-spacer>\n <ng-container *ngIf=\"hasAction\">\n <dbx-action [dbxActionValueStream]=\"value$\" [dbxActionSource]=\"sourceInstance$ | async\"\n [dbxActionSuccess]=\"dismissAfterActionCompletes\">\n <dbx-button dbxActionButton color=\"warn\" [text]=\"button\"></dbx-button>\n </dbx-action>\n <dbx-button-spacer></dbx-button-spacer>\n </ng-container>\n <dbx-button (buttonClick)=\"dismiss()\" color=\"accent\" icon=\"close\"></dbx-button>\n </ng-container>\n </ng-container>\n</div>\n", components: [{ type: DbxButtonComponent, selector: "dbx-button", inputs: ["type", "raised", "stroked", "flat", "color"] }], directives: [{ type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: DbxSpacerDirective, selector: "dbx-spacer, [dbx-spacer]" }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$2.DbxActionDirective, selector: "dbx-action,[dbxAction],dbx-action-context,[dbxActionContext]", exportAs: ["action", "dbxAction"] }, { type: i1$2.dbxActionValueStreamDirective, selector: "[dbxActionValueStream]", inputs: ["dbxActionValueStream", "dbxActionValueStreamIsNotEmpty", "dbxActionValueStreamModified"] }, { type: i1$2.DbxActionSourceDirective, selector: "[dbxActionSource]", inputs: ["dbxActionSource"] }, { type: i1$2.DbxActionSuccessDirective, selector: "[dbxActionSuccess]", inputs: ["dbxActionSuccess"] }, { type: i1$2.DbxActionButtonDirective, selector: "[dbxActionButton]" }, { type: DbxButtonSpacerDirective, selector: "dbx-button-spacer,dbxButtonSpacer" }], pipes: { "async": i3.AsyncPipe } });
|
|
255
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionSnackbarComponent, decorators: [{
|
|
256
|
+
type: Component,
|
|
257
|
+
args: [{ template: "<div class=\"dbx-action-snackbar\" [ngClass]=\"(snackbarStatusClass$ | async)!\">\n <ng-container [ngSwitch]=\"complete$ | async\">\n <ng-container *ngSwitchCase=\"true\">\n <dbx-spacer></dbx-spacer>\n <dbx-button (buttonClick)=\"dismiss()\" color=\"accent\" icon=\"done\" text=\"Success\"></dbx-button>\n </ng-container>\n <ng-container *ngSwitchCase=\"false\">\n <span>{{ message }}</span>\n <dbx-spacer></dbx-spacer>\n <ng-container *ngIf=\"hasAction\">\n <dbx-action [dbxActionValueStream]=\"value$\" [dbxActionSource]=\"sourceInstance$ | async\"\n [dbxActionSuccess]=\"dismissAfterActionCompletes\">\n <dbx-button dbxActionButton color=\"warn\" [text]=\"button\"></dbx-button>\n </dbx-action>\n <dbx-button-spacer></dbx-button-spacer>\n </ng-container>\n <dbx-button (buttonClick)=\"dismiss()\" color=\"accent\" icon=\"close\"></dbx-button>\n </ng-container>\n </ng-container>\n</div>\n" }]
|
|
258
|
+
}], ctorParameters: function () { return [{ type: i1$1.MatSnackBarRef }, { type: undefined, decorators: [{
|
|
259
|
+
type: Inject,
|
|
260
|
+
args: [MAT_SNACK_BAR_DATA]
|
|
261
|
+
}] }]; } });
|
|
262
|
+
|
|
263
|
+
const DBX_ACTION_SNACKBAR_DEFAULTS = {
|
|
264
|
+
'create': {
|
|
265
|
+
loading: {
|
|
266
|
+
message: 'Creating...'
|
|
267
|
+
},
|
|
268
|
+
success: {
|
|
269
|
+
button: 'Ok',
|
|
270
|
+
message: 'Created'
|
|
271
|
+
},
|
|
272
|
+
error: {
|
|
273
|
+
button: 'X',
|
|
274
|
+
message: 'Create Failed'
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
'save': {
|
|
278
|
+
loading: {
|
|
279
|
+
message: 'Saving...'
|
|
280
|
+
},
|
|
281
|
+
success: {
|
|
282
|
+
button: 'Ok',
|
|
283
|
+
message: 'Saved'
|
|
284
|
+
},
|
|
285
|
+
error: {
|
|
286
|
+
button: 'X',
|
|
287
|
+
message: 'Save Failed'
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
'merge': {
|
|
291
|
+
loading: {
|
|
292
|
+
message: 'Merging...'
|
|
293
|
+
},
|
|
294
|
+
success: {
|
|
295
|
+
button: 'Ok',
|
|
296
|
+
message: 'Merged'
|
|
297
|
+
},
|
|
298
|
+
error: {
|
|
299
|
+
button: 'X',
|
|
300
|
+
message: 'Merge Failed'
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
'delete': {
|
|
304
|
+
loading: {
|
|
305
|
+
message: 'Deleting...'
|
|
306
|
+
},
|
|
307
|
+
success: {
|
|
308
|
+
button: 'Ok',
|
|
309
|
+
message: 'Deleted'
|
|
310
|
+
},
|
|
311
|
+
error: {
|
|
312
|
+
button: 'X',
|
|
313
|
+
message: 'Delete Failed'
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
'cancel': {
|
|
317
|
+
loading: {
|
|
318
|
+
message: 'Cancelling...'
|
|
319
|
+
},
|
|
320
|
+
success: {
|
|
321
|
+
button: 'Ok',
|
|
322
|
+
message: 'Canceled'
|
|
323
|
+
},
|
|
324
|
+
error: {
|
|
325
|
+
button: 'X',
|
|
326
|
+
message: 'Cancel Failed'
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
'restore': {
|
|
330
|
+
loading: {
|
|
331
|
+
message: 'Restoring...'
|
|
332
|
+
},
|
|
333
|
+
success: {
|
|
334
|
+
button: 'Ok',
|
|
335
|
+
message: 'Restored'
|
|
336
|
+
},
|
|
337
|
+
error: {
|
|
338
|
+
button: 'X',
|
|
339
|
+
message: 'Restore Failed'
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
'refresh': {
|
|
343
|
+
loading: {
|
|
344
|
+
message: 'Refreshing...'
|
|
345
|
+
},
|
|
346
|
+
success: {
|
|
347
|
+
button: 'Ok',
|
|
348
|
+
message: 'Refreshed'
|
|
349
|
+
},
|
|
350
|
+
error: {
|
|
351
|
+
button: 'X',
|
|
352
|
+
message: 'Refresh Failed'
|
|
353
|
+
}
|
|
354
|
+
},
|
|
355
|
+
'do': {
|
|
356
|
+
loading: {
|
|
357
|
+
message: 'Doing...'
|
|
358
|
+
},
|
|
359
|
+
success: {
|
|
360
|
+
button: 'Ok',
|
|
361
|
+
message: 'Done'
|
|
362
|
+
},
|
|
363
|
+
error: {
|
|
364
|
+
button: 'X',
|
|
365
|
+
message: 'Failed'
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
};
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* Creates a DbxActionSnackbarDisplayConfigGeneratorFunction from the input config.
|
|
372
|
+
*
|
|
373
|
+
* @param config
|
|
374
|
+
* @returns
|
|
375
|
+
*/
|
|
376
|
+
function makeDbxActionSnackbarDisplayConfigGeneratorFunction(config) {
|
|
377
|
+
return (input) => {
|
|
378
|
+
const { event, undo: undoInput } = input;
|
|
379
|
+
const type = event.type;
|
|
380
|
+
const eventConfigObjectOrGetter = config[type];
|
|
381
|
+
const eventConfig = eventConfigObjectOrGetter && getValueFromObjectOrGetter(eventConfigObjectOrGetter);
|
|
382
|
+
let result;
|
|
383
|
+
if (eventConfig) {
|
|
384
|
+
const { undoButtonText } = eventConfig;
|
|
385
|
+
result = {
|
|
386
|
+
button: eventConfig.button,
|
|
387
|
+
message: eventConfig.message,
|
|
388
|
+
snackbar: eventConfig.snackbar
|
|
389
|
+
};
|
|
390
|
+
if (undoInput) {
|
|
391
|
+
let reference;
|
|
392
|
+
if (typeof undoInput === 'object') {
|
|
393
|
+
reference = undoInput.getUndoAction();
|
|
394
|
+
}
|
|
395
|
+
else {
|
|
396
|
+
reference = getValueFromObjectOrGetter(undoInput);
|
|
397
|
+
}
|
|
398
|
+
if (!reference) {
|
|
399
|
+
console.error('Expected action source reference was not provided to undo...');
|
|
400
|
+
}
|
|
401
|
+
else {
|
|
402
|
+
result.action = {
|
|
403
|
+
button: undoButtonText ?? 'Undo',
|
|
404
|
+
reference
|
|
405
|
+
};
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
return result;
|
|
410
|
+
};
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
const DBX_ACTION_SNACKBAR_SERVICE_CONFIG = new InjectionToken('DbxActionSnackbarServiceConfig');
|
|
414
|
+
const DEFAULT_SNACKBAR_DIRECTIVE_DURATION = ms('4s');
|
|
415
|
+
/**
|
|
416
|
+
* Used for managing/configuring the snackbar default values and pushing snackbar events.
|
|
417
|
+
*/
|
|
418
|
+
class DbxActionSnackbarService {
|
|
419
|
+
constructor(matSnackBar, inputConfig) {
|
|
420
|
+
this.matSnackBar = matSnackBar;
|
|
421
|
+
inputConfig = inputConfig ?? {};
|
|
422
|
+
this.config = {
|
|
423
|
+
...inputConfig,
|
|
424
|
+
componentClass: inputConfig.componentClass ?? DbxActionSnackbarComponent,
|
|
425
|
+
defaultDuration: inputConfig.defaultDuration || DEFAULT_SNACKBAR_DIRECTIVE_DURATION,
|
|
426
|
+
eventTypeConfigs: mergeObjects([DBX_ACTION_SNACKBAR_DEFAULTS, inputConfig.eventTypeConfigs])
|
|
427
|
+
};
|
|
428
|
+
}
|
|
429
|
+
get componentClass() {
|
|
430
|
+
return this.config.componentClass;
|
|
431
|
+
}
|
|
432
|
+
get eventTypeConfigs() {
|
|
433
|
+
return this.config.eventTypeConfigs;
|
|
434
|
+
}
|
|
435
|
+
/**
|
|
436
|
+
* Opens a new snackbar given the input configuration.
|
|
437
|
+
*
|
|
438
|
+
* @param config
|
|
439
|
+
* @returns
|
|
440
|
+
*/
|
|
441
|
+
openSnackbar(config) {
|
|
442
|
+
const { snackbar: inputSnackbarConfig } = config;
|
|
443
|
+
const { snackbar: defaultSnackbarConfig, defaultDuration } = this.config;
|
|
444
|
+
const matSnackbarConfig = {
|
|
445
|
+
...defaultSnackbarConfig,
|
|
446
|
+
...inputSnackbarConfig,
|
|
447
|
+
data: config
|
|
448
|
+
};
|
|
449
|
+
const duration = config.action?.duration ?? matSnackbarConfig.duration ?? defaultDuration ?? DEFAULT_SNACKBAR_DIRECTIVE_DURATION;
|
|
450
|
+
if (config.action) {
|
|
451
|
+
// Set the duration on the action
|
|
452
|
+
config.action = {
|
|
453
|
+
...config.action,
|
|
454
|
+
duration
|
|
455
|
+
};
|
|
456
|
+
}
|
|
457
|
+
else {
|
|
458
|
+
// The snackbar does not close here. The duration is passed to the component and it will close it.
|
|
459
|
+
matSnackbarConfig.duration = duration;
|
|
460
|
+
}
|
|
461
|
+
return this.matSnackBar.openFromComponent(this.componentClass, matSnackbarConfig);
|
|
462
|
+
}
|
|
463
|
+
generateDisplayConfig(type, input) {
|
|
464
|
+
const configForType = this.eventTypeConfigs[type ?? 'none'];
|
|
465
|
+
let result;
|
|
466
|
+
if (configForType) {
|
|
467
|
+
result = makeDbxActionSnackbarDisplayConfigGeneratorFunction(configForType)(input);
|
|
468
|
+
}
|
|
469
|
+
return result;
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
DbxActionSnackbarService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionSnackbarService, deps: [{ token: i1$1.MatSnackBar }, { token: DBX_ACTION_SNACKBAR_SERVICE_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
473
|
+
DbxActionSnackbarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionSnackbarService, providedIn: 'root' });
|
|
474
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionSnackbarService, decorators: [{
|
|
475
|
+
type: Injectable,
|
|
476
|
+
args: [{
|
|
477
|
+
providedIn: 'root'
|
|
478
|
+
}]
|
|
479
|
+
}], ctorParameters: function () { return [{ type: i1$1.MatSnackBar }, { type: undefined, decorators: [{
|
|
480
|
+
type: Optional
|
|
481
|
+
}, {
|
|
482
|
+
type: Inject,
|
|
483
|
+
args: [DBX_ACTION_SNACKBAR_SERVICE_CONFIG]
|
|
484
|
+
}] }]; } });
|
|
485
|
+
|
|
486
|
+
/**
|
|
487
|
+
* Action directive that displays a snackbar when the action context hits a certain state.
|
|
488
|
+
*/
|
|
489
|
+
class DbxActionSnackbarDirective extends AbstractSubscriptionDirective {
|
|
490
|
+
constructor(source, dbxActionSnackbarService) {
|
|
491
|
+
super();
|
|
492
|
+
this.source = source;
|
|
493
|
+
this.dbxActionSnackbarService = dbxActionSnackbarService;
|
|
494
|
+
}
|
|
495
|
+
get snackbarFunction() {
|
|
496
|
+
return this._snackbarFunction;
|
|
497
|
+
}
|
|
498
|
+
set snackbarFunction(snackbarFunction) {
|
|
499
|
+
if (snackbarFunction) {
|
|
500
|
+
this._snackbarFunction = snackbarFunction;
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
ngOnInit() {
|
|
504
|
+
this.sub = this.source.pipeStore((store) => store.loadingState$).subscribe((loadingState) => {
|
|
505
|
+
const event = { value: loadingState.value, error: loadingState.error, type: loadingStateType(loadingState) };
|
|
506
|
+
const config = this.buildConfigurationForEvent(event);
|
|
507
|
+
if (config) {
|
|
508
|
+
this.showSnackbarForConfiguration(config, event);
|
|
509
|
+
}
|
|
510
|
+
});
|
|
511
|
+
}
|
|
512
|
+
buildConfigurationForEvent(event) {
|
|
513
|
+
const input = {
|
|
514
|
+
event,
|
|
515
|
+
undo: event.type === LoadingStateType.SUCCESS ? this.dbxActionSnackbarUndo : undefined // only show undo on success.
|
|
516
|
+
};
|
|
517
|
+
return (this.snackbarFunction) ? this.snackbarFunction(input) : this.dbxActionSnackbarService.generateDisplayConfig(this.dbxActionSnackbarDefault, input);
|
|
518
|
+
}
|
|
519
|
+
showSnackbarForConfiguration(config, event) {
|
|
520
|
+
this.dbxActionSnackbarService.openSnackbar(config);
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
DbxActionSnackbarDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionSnackbarDirective, deps: [{ token: i1$2.DbxActionContextStoreSourceInstance, host: true }, { token: DbxActionSnackbarService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
524
|
+
DbxActionSnackbarDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: DbxActionSnackbarDirective, selector: "[dbxActionSnackbar]", inputs: { snackbarFunction: ["dbxActionSnackbar", "snackbarFunction"], dbxActionSnackbarDefault: "dbxActionSnackbarDefault", dbxActionSnackbarUndo: "dbxActionSnackbarUndo" }, usesInheritance: true, ngImport: i0 });
|
|
525
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionSnackbarDirective, decorators: [{
|
|
526
|
+
type: Directive,
|
|
527
|
+
args: [{
|
|
528
|
+
selector: '[dbxActionSnackbar]'
|
|
529
|
+
}]
|
|
530
|
+
}], ctorParameters: function () { return [{ type: i1$2.DbxActionContextStoreSourceInstance, decorators: [{
|
|
531
|
+
type: Host
|
|
532
|
+
}] }, { type: DbxActionSnackbarService }]; }, propDecorators: { snackbarFunction: [{
|
|
533
|
+
type: Input,
|
|
534
|
+
args: ['dbxActionSnackbar']
|
|
535
|
+
}], dbxActionSnackbarDefault: [{
|
|
536
|
+
type: Input
|
|
537
|
+
}], dbxActionSnackbarUndo: [{
|
|
538
|
+
type: Input
|
|
539
|
+
}] } });
|
|
540
|
+
|
|
541
|
+
class DbxButtonModule {
|
|
542
|
+
}
|
|
543
|
+
DbxButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
544
|
+
DbxButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonModule, declarations: [DbxButtonComponent,
|
|
545
|
+
DbxButtonSpacerDirective], imports: [CommonModule,
|
|
546
|
+
MatProgressButtonsModule], exports: [DbxCoreButtonModule,
|
|
547
|
+
MatProgressButtonsModule,
|
|
548
|
+
DbxButtonComponent,
|
|
549
|
+
DbxButtonSpacerDirective] });
|
|
550
|
+
DbxButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonModule, imports: [[
|
|
551
|
+
CommonModule,
|
|
552
|
+
MatProgressButtonsModule
|
|
553
|
+
], DbxCoreButtonModule,
|
|
554
|
+
MatProgressButtonsModule] });
|
|
555
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonModule, decorators: [{
|
|
556
|
+
type: NgModule,
|
|
557
|
+
args: [{
|
|
558
|
+
imports: [
|
|
559
|
+
CommonModule,
|
|
560
|
+
MatProgressButtonsModule
|
|
561
|
+
],
|
|
562
|
+
declarations: [
|
|
563
|
+
DbxButtonComponent,
|
|
564
|
+
DbxButtonSpacerDirective
|
|
565
|
+
],
|
|
566
|
+
exports: [
|
|
567
|
+
DbxCoreButtonModule,
|
|
568
|
+
MatProgressButtonsModule,
|
|
569
|
+
DbxButtonComponent,
|
|
570
|
+
DbxButtonSpacerDirective
|
|
571
|
+
],
|
|
572
|
+
}]
|
|
573
|
+
}] });
|
|
574
|
+
|
|
64
575
|
/**
|
|
65
576
|
* Abstract dialog component that closes when a transition is successful.
|
|
66
577
|
*/
|
|
@@ -73,11 +584,14 @@ class AbstractDialogDirective extends AbstractTransitionWatcherDirective {
|
|
|
73
584
|
updateForSuccessfulTransition() {
|
|
74
585
|
this.close();
|
|
75
586
|
}
|
|
587
|
+
returnValue(value) {
|
|
588
|
+
this.close(value);
|
|
589
|
+
}
|
|
76
590
|
close(value) {
|
|
77
591
|
this.dialogRef.close(value);
|
|
78
592
|
}
|
|
79
593
|
}
|
|
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 });
|
|
594
|
+
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
595
|
AbstractDialogDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: AbstractDialogDirective, usesInheritance: true, ngImport: i0 });
|
|
82
596
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: AbstractDialogDirective, decorators: [{
|
|
83
597
|
type: Directive
|
|
@@ -86,10 +600,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
86
600
|
}, {
|
|
87
601
|
type: Inject,
|
|
88
602
|
args: [MAT_DIALOG_DATA]
|
|
89
|
-
}] }, { type: i1$
|
|
603
|
+
}] }, { type: i1$3.MatDialogRef, decorators: [{
|
|
90
604
|
type: Inject,
|
|
91
605
|
args: [MatDialogRef]
|
|
92
|
-
}] }, { type: i1.DbxRouterTransitionService }, { type: i0.NgZone }]; } });
|
|
606
|
+
}] }, { type: i1$2.DbxRouterTransitionService }, { type: i0.NgZone }]; } });
|
|
93
607
|
|
|
94
608
|
/**
|
|
95
609
|
* Component used to style a dialog.
|
|
@@ -114,6 +628,42 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
114
628
|
type: Input
|
|
115
629
|
}] } });
|
|
116
630
|
|
|
631
|
+
/**
|
|
632
|
+
* Action directive that is used to trigger/display a dialog, then watches that dialog for a value.
|
|
633
|
+
*/
|
|
634
|
+
class DbxActionDialogDirective extends AbstractDbxActionValueOnTriggerDirective {
|
|
635
|
+
constructor(elementRef, source) {
|
|
636
|
+
super(source, () => this._getDataFromDialog());
|
|
637
|
+
this.elementRef = elementRef;
|
|
638
|
+
}
|
|
639
|
+
set dbxActionDialogModified(isModifiedFunction) {
|
|
640
|
+
this.isModifiedFunction = isModifiedFunction;
|
|
641
|
+
}
|
|
642
|
+
_getDataFromDialog() {
|
|
643
|
+
return this._makeDialogRef().afterClosed().pipe(first());
|
|
644
|
+
}
|
|
645
|
+
_makeDialogRef() {
|
|
646
|
+
if (!this.fn) {
|
|
647
|
+
throw new Error('dbxActionDialog has no dialog function provided to it.');
|
|
648
|
+
}
|
|
649
|
+
return this.fn();
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
DbxActionDialogDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionDialogDirective, deps: [{ token: i0.ElementRef }, { token: i1$2.DbxActionContextStoreSourceInstance }], target: i0.ɵɵFactoryTarget.Directive });
|
|
653
|
+
DbxActionDialogDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: DbxActionDialogDirective, selector: "[dbxActionDialog]", inputs: { fn: ["dbxActionDialog", "fn"], dbxActionDialogModified: "dbxActionDialogModified" }, exportAs: ["dbxActionDialog"], usesInheritance: true, ngImport: i0 });
|
|
654
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionDialogDirective, decorators: [{
|
|
655
|
+
type: Directive,
|
|
656
|
+
args: [{
|
|
657
|
+
exportAs: 'dbxActionDialog',
|
|
658
|
+
selector: '[dbxActionDialog]'
|
|
659
|
+
}]
|
|
660
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1$2.DbxActionContextStoreSourceInstance }]; }, propDecorators: { fn: [{
|
|
661
|
+
type: Input,
|
|
662
|
+
args: ['dbxActionDialog']
|
|
663
|
+
}], dbxActionDialogModified: [{
|
|
664
|
+
type: Input
|
|
665
|
+
}] } });
|
|
666
|
+
|
|
117
667
|
const DBX_STYLE_DEFAULT_CONFIG_TOKEN = new InjectionToken('DbxStyleServiceDefaultConfig');
|
|
118
668
|
/**
|
|
119
669
|
* Used for managing styles within an app.
|
|
@@ -142,7 +692,7 @@ class DbxStyleService {
|
|
|
142
692
|
this._suffix.next(suffix);
|
|
143
693
|
}
|
|
144
694
|
getStyleWithConfig(configObs) {
|
|
145
|
-
return combineLatest([configObs, this.suffix$]).pipe(map(([config, suffix]) => {
|
|
695
|
+
return combineLatest([configObs, this.suffix$]).pipe(map$1(([config, suffix]) => {
|
|
146
696
|
let style = config.style;
|
|
147
697
|
if (suffix != null && config.suffixes) {
|
|
148
698
|
const sanitizedSuffix = ((suffix[0] === '-') ? suffix?.slice(1) : suffix);
|
|
@@ -199,8 +749,8 @@ class DbxSetStyleDirective extends AbstractSubscriptionDirective {
|
|
|
199
749
|
this._suffixes = new BehaviorSubject(undefined);
|
|
200
750
|
this._style = new BehaviorSubject(undefined);
|
|
201
751
|
this.style$ = this._style.pipe(filterMaybe());
|
|
202
|
-
this.suffixes$ = this._suffixes.pipe(distinctUntilChanged(), map(splitCommaSeparatedStringToSet));
|
|
203
|
-
this.config$ = combineLatest([this.style$, this.suffixes$]).pipe(map(([style, suffixes]) => ({ style, suffixes })), shareReplay(1));
|
|
752
|
+
this.suffixes$ = this._suffixes.pipe(distinctUntilChanged(), map$1(splitCommaSeparatedStringToSet));
|
|
753
|
+
this.config$ = combineLatest([this.style$, this.suffixes$]).pipe(map$1(([style, suffixes]) => ({ style, suffixes })), shareReplay(1));
|
|
204
754
|
this.outputStyle$ = this.styleService.getStyleWithConfig(this.config$);
|
|
205
755
|
this.outputStyle = '';
|
|
206
756
|
}
|
|
@@ -272,20 +822,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
272
822
|
}]
|
|
273
823
|
}], ctorParameters: function () { return [{ type: DbxStyleService }, { type: i0.ChangeDetectorRef }]; } });
|
|
274
824
|
|
|
275
|
-
class DbxSpacerDirective {
|
|
276
|
-
}
|
|
277
|
-
DbxSpacerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSpacerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
278
|
-
DbxSpacerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: DbxSpacerDirective, selector: "dbx-spacer, [dbx-spacer]", host: { classAttribute: "dbx-spacer" }, ngImport: i0 });
|
|
279
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSpacerDirective, decorators: [{
|
|
280
|
-
type: Directive,
|
|
281
|
-
args: [{
|
|
282
|
-
selector: 'dbx-spacer, [dbx-spacer]',
|
|
283
|
-
host: {
|
|
284
|
-
'class': 'dbx-spacer'
|
|
285
|
-
}
|
|
286
|
-
}]
|
|
287
|
-
}] });
|
|
288
|
-
|
|
289
825
|
/**
|
|
290
826
|
* Used to style the body document using the style provided by DbxStyleService.
|
|
291
827
|
*/
|
|
@@ -355,8 +891,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
355
891
|
class DbxDialogInteractionModule {
|
|
356
892
|
}
|
|
357
893
|
DbxDialogInteractionModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxDialogInteractionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
358
|
-
DbxDialogInteractionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxDialogInteractionModule, declarations: [DbxDialogContentDirective
|
|
359
|
-
|
|
894
|
+
DbxDialogInteractionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxDialogInteractionModule, declarations: [DbxDialogContentDirective,
|
|
895
|
+
DbxActionDialogDirective], imports: [CommonModule,
|
|
896
|
+
DbxStyleLayoutModule], exports: [DbxDialogContentDirective,
|
|
897
|
+
DbxActionDialogDirective] });
|
|
360
898
|
DbxDialogInteractionModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxDialogInteractionModule, imports: [[
|
|
361
899
|
CommonModule,
|
|
362
900
|
DbxStyleLayoutModule
|
|
@@ -370,9 +908,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
370
908
|
],
|
|
371
909
|
declarations: [
|
|
372
910
|
DbxDialogContentDirective,
|
|
911
|
+
DbxActionDialogDirective
|
|
373
912
|
],
|
|
374
913
|
exports: [
|
|
375
|
-
DbxDialogContentDirective
|
|
914
|
+
DbxDialogContentDirective,
|
|
915
|
+
DbxActionDialogDirective
|
|
376
916
|
]
|
|
377
917
|
}]
|
|
378
918
|
}] });
|
|
@@ -471,7 +1011,7 @@ DbxBarHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
471
1011
|
<mat-icon class="button-spacer" *ngIf="icon">{{ icon }}</mat-icon>
|
|
472
1012
|
<span *ngIf="text">{{ text }}</span>
|
|
473
1013
|
</dbx-bar>
|
|
474
|
-
`, isInline: true, components: [{ type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: DbxBarDirective, selector: "dbx-bar", inputs: ["color"] }, { type: i3
|
|
1014
|
+
`, isInline: true, components: [{ type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: DbxBarDirective, selector: "dbx-bar", inputs: ["color"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
475
1015
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxBarHeaderComponent, decorators: [{
|
|
476
1016
|
type: Component,
|
|
477
1017
|
args: [{
|
|
@@ -497,7 +1037,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
497
1037
|
class DbxPagebarComponent {
|
|
498
1038
|
}
|
|
499
1039
|
DbxPagebarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPagebarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
500
|
-
DbxPagebarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxPagebarComponent, selector: "dbx-pagebar", inputs: { color: "color" }, ngImport: i0, template: "<mat-toolbar class=\"dbx-pagebar\" [ngClass]=\"(color) ? ('dbx-bar-' + color) : ''\">\n <ng-content select=\"[left]\"></ng-content>\n <span class=\"spacer\"></span>\n <ng-content select=\"[right]\"></ng-content>\n</mat-toolbar>\n", components: [{ type: i1$
|
|
1040
|
+
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$4.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }], directives: [{ type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
501
1041
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPagebarComponent, decorators: [{
|
|
502
1042
|
type: Component,
|
|
503
1043
|
args: [{ selector: 'dbx-pagebar', template: "<mat-toolbar class=\"dbx-pagebar\" [ngClass]=\"(color) ? ('dbx-bar-' + color) : ''\">\n <ng-content select=\"[left]\"></ng-content>\n <span class=\"spacer\"></span>\n <ng-content select=\"[right]\"></ng-content>\n</mat-toolbar>\n" }]
|
|
@@ -556,8 +1096,8 @@ class DbxAnchorComponent extends AbstractDbxAnchorDirective {
|
|
|
556
1096
|
this.dbNgxRouterWebProviderConfig = dbNgxRouterWebProviderConfig;
|
|
557
1097
|
this._templateRef = new BehaviorSubject(undefined);
|
|
558
1098
|
this.templateRef$ = this._templateRef.pipe(skipFirstMaybe(), shareReplay$1(1));
|
|
559
|
-
this.url$ = this.anchor$.pipe(map
|
|
560
|
-
this.target$ = this.anchor$.pipe(map
|
|
1099
|
+
this.url$ = this.anchor$.pipe(map(x => x?.url), distinctUntilChanged$1(), shareReplay$1(1));
|
|
1100
|
+
this.target$ = this.anchor$.pipe(map(x => x?.target), distinctUntilChanged$1(), shareReplay$1(1));
|
|
561
1101
|
}
|
|
562
1102
|
get templateRef() {
|
|
563
1103
|
return this._templateRef.value;
|
|
@@ -573,7 +1113,7 @@ class DbxAnchorComponent extends AbstractDbxAnchorDirective {
|
|
|
573
1113
|
}
|
|
574
1114
|
}
|
|
575
1115
|
DbxAnchorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxAnchorComponent, deps: [{ token: DbxRouterWebProviderConfig }], target: i0.ɵɵFactoryTarget.Component });
|
|
576
|
-
DbxAnchorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxAnchorComponent, selector: "dbx-anchor, [dbx-anchor]", inputs: { block: "block" }, host: { attributes: { "dbx-anchor-block": "block" }, classAttribute: "d-inline dbx-anchor" }, viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["content"], descendants: true, read: TemplateRef }], usesInheritance: true, ngImport: i0, template: "<ng-container [ngSwitch]=\"(type$ | async)\">\n <!-- Plain -->\n <ng-container *ngSwitchCase=\"0\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </ng-container>\n <!-- Click -->\n <a class=\"dbx-anchor-a dbx-anchor-click\" (click)=\"clickAnchor()\" *ngSwitchCase=\"1\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </a>\n <!-- Router -->\n <dbx-injected-content [config]=\"srefAnchorConfig\" *ngSwitchCase=\"2\">\n <!-- Injected in child. -->\n </dbx-injected-content>\n <!-- Href -->\n <a class=\"dbx-anchor-a dbx-anchor-href\" [href]=\"url$ | async\" [attr.target]=\"target$ | async\"\n *ngSwitchCase=\"3\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </a>\n <!-- Disabled or None -->\n <a class=\"dbx-anchor-a dbx-anchor-disabled\" *ngSwitchDefault>\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </a>\n</ng-container>\n<!-- Template content -->\n<ng-template #content>\n <ng-content></ng-content>\n</ng-template>\n", components: [{ type: i1.DbxInjectedComponent, selector: "dbx-injected-content, [dbx-injected-content]", inputs: ["config", "template"] }], directives: [{ type: i3
|
|
1116
|
+
DbxAnchorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxAnchorComponent, selector: "dbx-anchor, [dbx-anchor]", inputs: { block: "block" }, host: { attributes: { "dbx-anchor-block": "block" }, classAttribute: "d-inline dbx-anchor" }, viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["content"], descendants: true, read: TemplateRef }], usesInheritance: true, ngImport: i0, template: "<ng-container [ngSwitch]=\"(type$ | async)\">\n <!-- Plain -->\n <ng-container *ngSwitchCase=\"0\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </ng-container>\n <!-- Click -->\n <a class=\"dbx-anchor-a dbx-anchor-click\" (click)=\"clickAnchor()\" *ngSwitchCase=\"1\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </a>\n <!-- Router -->\n <dbx-injected-content [config]=\"srefAnchorConfig\" *ngSwitchCase=\"2\">\n <!-- Injected in child. -->\n </dbx-injected-content>\n <!-- Href -->\n <a class=\"dbx-anchor-a dbx-anchor-href\" [href]=\"url$ | async\" [attr.target]=\"target$ | async\"\n *ngSwitchCase=\"3\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </a>\n <!-- Disabled or None -->\n <a class=\"dbx-anchor-a dbx-anchor-disabled\" *ngSwitchDefault>\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </a>\n</ng-container>\n<!-- Template content -->\n<ng-template #content>\n <ng-content></ng-content>\n</ng-template>\n", components: [{ type: i1$2.DbxInjectedComponent, selector: "dbx-injected-content, [dbx-injected-content]", inputs: ["config", "template"] }], directives: [{ type: i3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i3.NgSwitchDefault, selector: "[ngSwitchDefault]" }], pipes: { "async": i3.AsyncPipe } });
|
|
577
1117
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxAnchorComponent, decorators: [{
|
|
578
1118
|
type: Component,
|
|
579
1119
|
args: [{ selector: 'dbx-anchor, [dbx-anchor]', host: {
|
|
@@ -597,7 +1137,7 @@ DbxAnchorIconComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
597
1137
|
<dbx-anchor [anchor]="anchor">
|
|
598
1138
|
<button mat-icon-button><mat-icon>{{ anchor?.icon }}</mat-icon></button>
|
|
599
1139
|
</dbx-anchor>
|
|
600
|
-
`, isInline: true, components: [{ type: DbxAnchorComponent, selector: "dbx-anchor, [dbx-anchor]", inputs: ["block"] }, { type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] });
|
|
1140
|
+
`, 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: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] });
|
|
601
1141
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxAnchorIconComponent, decorators: [{
|
|
602
1142
|
type: Component,
|
|
603
1143
|
args: [{
|
|
@@ -658,17 +1198,55 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
658
1198
|
type: Input
|
|
659
1199
|
}] } });
|
|
660
1200
|
|
|
1201
|
+
/**
|
|
1202
|
+
* Component that displays an anchor and a span with the title.
|
|
1203
|
+
*/
|
|
1204
|
+
class DbxAnchorContentComponent {
|
|
1205
|
+
constructor(parent) {
|
|
1206
|
+
this.parent = parent;
|
|
1207
|
+
this._parentAnchor = (this.parent) ? this.parent.anchor$ : of(undefined);
|
|
1208
|
+
this._inputAnchor = new BehaviorSubject(undefined);
|
|
1209
|
+
this.anchor$ = combineLatest([this._inputAnchor, this._parentAnchor]).pipe(map$1(([input, parent]) => input ?? parent), shareReplay(1));
|
|
1210
|
+
this.icon$ = this.anchor$.pipe(map$1(x => x?.icon));
|
|
1211
|
+
this.title$ = this.anchor$.pipe(map$1(x => x?.title));
|
|
1212
|
+
}
|
|
1213
|
+
set anchor(anchor) {
|
|
1214
|
+
this._inputAnchor.next(anchor);
|
|
1215
|
+
}
|
|
1216
|
+
ngOnDestroy() {
|
|
1217
|
+
this._inputAnchor.complete();
|
|
1218
|
+
}
|
|
1219
|
+
}
|
|
1220
|
+
DbxAnchorContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxAnchorContentComponent, deps: [{ token: DbxAnchorComponent, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
1221
|
+
DbxAnchorContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxAnchorContentComponent, selector: "dbx-anchor-content", inputs: { anchor: "anchor" }, host: { classAttribute: "dbx-anchor-content" }, ngImport: i0, template: `<mat-icon class="dbx-icon-spacer" *ngIf="icon$ | async">{{ icon$ | async }}</mat-icon><span *ngIf="title$ | async">{{ title$ | async }}</span>`, isInline: true, components: [{ type: i3$1.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 } });
|
|
1222
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxAnchorContentComponent, decorators: [{
|
|
1223
|
+
type: Component,
|
|
1224
|
+
args: [{
|
|
1225
|
+
selector: 'dbx-anchor-content',
|
|
1226
|
+
template: `<mat-icon class="dbx-icon-spacer" *ngIf="icon$ | async">{{ icon$ | async }}</mat-icon><span *ngIf="title$ | async">{{ title$ | async }}</span>`,
|
|
1227
|
+
host: {
|
|
1228
|
+
'class': 'dbx-anchor-content'
|
|
1229
|
+
}
|
|
1230
|
+
}]
|
|
1231
|
+
}], ctorParameters: function () { return [{ type: DbxAnchorComponent, decorators: [{
|
|
1232
|
+
type: Optional
|
|
1233
|
+
}] }]; }, propDecorators: { anchor: [{
|
|
1234
|
+
type: Input
|
|
1235
|
+
}] } });
|
|
1236
|
+
|
|
661
1237
|
class DbxAnchorModule {
|
|
662
1238
|
}
|
|
663
1239
|
DbxAnchorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxAnchorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
664
1240
|
DbxAnchorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxAnchorModule, declarations: [DbxAnchorComponent,
|
|
665
1241
|
DbxAnchorIconComponent,
|
|
666
|
-
DbxAnchorLinkComponent
|
|
1242
|
+
DbxAnchorLinkComponent,
|
|
1243
|
+
DbxAnchorContentComponent], imports: [CommonModule,
|
|
667
1244
|
MatIconModule,
|
|
668
1245
|
MatButtonModule,
|
|
669
1246
|
DbxInjectedComponentModule], exports: [DbxAnchorComponent,
|
|
670
1247
|
DbxAnchorIconComponent,
|
|
671
|
-
DbxAnchorLinkComponent
|
|
1248
|
+
DbxAnchorLinkComponent,
|
|
1249
|
+
DbxAnchorContentComponent] });
|
|
672
1250
|
DbxAnchorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxAnchorModule, imports: [[
|
|
673
1251
|
CommonModule,
|
|
674
1252
|
MatIconModule,
|
|
@@ -687,12 +1265,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
687
1265
|
declarations: [
|
|
688
1266
|
DbxAnchorComponent,
|
|
689
1267
|
DbxAnchorIconComponent,
|
|
690
|
-
DbxAnchorLinkComponent
|
|
1268
|
+
DbxAnchorLinkComponent,
|
|
1269
|
+
DbxAnchorContentComponent
|
|
691
1270
|
],
|
|
692
1271
|
exports: [
|
|
693
1272
|
DbxAnchorComponent,
|
|
694
1273
|
DbxAnchorIconComponent,
|
|
695
|
-
DbxAnchorLinkComponent
|
|
1274
|
+
DbxAnchorLinkComponent,
|
|
1275
|
+
DbxAnchorContentComponent
|
|
696
1276
|
]
|
|
697
1277
|
}]
|
|
698
1278
|
}] });
|
|
@@ -704,10 +1284,10 @@ class AbstractDbxSegueAnchorDirective {
|
|
|
704
1284
|
constructor(parent) {
|
|
705
1285
|
this.parent = parent;
|
|
706
1286
|
this.target$ = this.parent.target$;
|
|
707
|
-
this.ref$ = this.parent.anchor$.pipe(map
|
|
708
|
-
this.refParams$ = this.parent.anchor$.pipe(map
|
|
709
|
-
this.refOptions$ = this.parent.anchor$.pipe(map
|
|
710
|
-
this.template$ = this.parent.templateRef$.pipe(distinctUntilChanged$1(), map
|
|
1287
|
+
this.ref$ = this.parent.anchor$.pipe(map(x => x?.ref), distinctUntilChanged$1(), shareReplay$1(1));
|
|
1288
|
+
this.refParams$ = this.parent.anchor$.pipe(map(x => x?.refParams), distinctUntilChanged$1(), shareReplay$1(1));
|
|
1289
|
+
this.refOptions$ = this.parent.anchor$.pipe(map(x => x?.refOptions), distinctUntilChanged$1(), shareReplay$1(1));
|
|
1290
|
+
this.template$ = this.parent.templateRef$.pipe(distinctUntilChanged$1(), map(templateRef => ({
|
|
711
1291
|
templateRef
|
|
712
1292
|
})), shareReplay$1(1));
|
|
713
1293
|
}
|
|
@@ -727,7 +1307,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
727
1307
|
class DbxAnchorListComponent {
|
|
728
1308
|
constructor() {
|
|
729
1309
|
this._anchors = new BehaviorSubject([]);
|
|
730
|
-
this.expandedAnchors$ = this._anchors.pipe(distinctUntilChanged(), map(x => expandClickableAnchorLinkTrees(x)), shareReplay(1));
|
|
1310
|
+
this.expandedAnchors$ = this._anchors.pipe(distinctUntilChanged(), map$1(x => expandClickableAnchorLinkTrees(x)), shareReplay(1));
|
|
731
1311
|
}
|
|
732
1312
|
set anchors(anchors) {
|
|
733
1313
|
this._anchors.next(anchors ?? []);
|
|
@@ -737,7 +1317,7 @@ class DbxAnchorListComponent {
|
|
|
737
1317
|
}
|
|
738
1318
|
}
|
|
739
1319
|
DbxAnchorListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxAnchorListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
740
|
-
DbxAnchorListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxAnchorListComponent, selector: "dbx-anchor-list", inputs: { anchors: "anchors" }, ngImport: i0, template: "<mat-nav-list class=\"dbx-anchor-list\">\n <ng-container *ngFor=\"let expanded of expandedAnchors$ | async; let last = last;\">\n <span dbx-anchor [anchor]=\"expanded.value\">\n <a mat-list-item [ngClass]=\"(expanded.depth) ? 'dbx-anchor-list-child' : 'dbx-anchor-list-root'\">\n <mat-icon mat-list-icon *ngIf=\"expanded.value.icon\">{{ expanded.value.icon }}</mat-icon>\n <!-- TODO: Add an icon from a letter if anchor.icon is unavailable. -->\n <div mat-line>{{ expanded.value.title }}</div>\n <mat-divider *ngIf=\"!last\"></mat-divider>\n </a>\n </span>\n </ng-container>\n</mat-nav-list>\n", components: [{ type: i1$
|
|
1320
|
+
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$5.MatNavList, selector: "mat-nav-list", inputs: ["disableRipple", "disabled"], exportAs: ["matNavList"] }, { type: DbxAnchorComponent, selector: "dbx-anchor, [dbx-anchor]", inputs: ["block"] }, { type: i1$5.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["disableRipple", "disabled"], exportAs: ["matListItem"] }, { type: i3$1.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$5.MatListIconCssMatStyler, selector: "[mat-list-icon], [matListIcon]" }, { type: i6.MatLine, selector: "[mat-line], [matLine]" }], pipes: { "async": i3.AsyncPipe } });
|
|
741
1321
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxAnchorListComponent, decorators: [{
|
|
742
1322
|
type: Component,
|
|
743
1323
|
args: [{ selector: 'dbx-anchor-list', template: "<mat-nav-list class=\"dbx-anchor-list\">\n <ng-container *ngFor=\"let expanded of expandedAnchors$ | async; let last = last;\">\n <span dbx-anchor [anchor]=\"expanded.value\">\n <a mat-list-item [ngClass]=\"(expanded.depth) ? 'dbx-anchor-list-child' : 'dbx-anchor-list-root'\">\n <mat-icon mat-list-icon *ngIf=\"expanded.value.icon\">{{ expanded.value.icon }}</mat-icon>\n <!-- TODO: Add an icon from a letter if anchor.icon is unavailable. -->\n <div mat-line>{{ expanded.value.title }}</div>\n <mat-divider *ngIf=\"!last\"></mat-divider>\n </a>\n </span>\n </ng-container>\n</mat-nav-list>\n" }]
|
|
@@ -827,8 +1407,8 @@ class DbxScreenMediaService {
|
|
|
827
1407
|
this._media = _media;
|
|
828
1408
|
this._updateWidth = new Subject();
|
|
829
1409
|
this._updateHeight = new Subject();
|
|
830
|
-
this.widthType$ = this._updateWidth.pipe(initialize(() => this._updateWidth.next()), throttleTime(100, undefined, { leading: true, trailing: true }), map(() => this._readWidthType()), distinctUntilChanged(), shareReplay(1));
|
|
831
|
-
this.heightType$ = this._updateWidth.pipe(initialize(() => this._updateHeight.next()), throttleTime(100, undefined, { leading: true, trailing: true }), map(() => this._readHeightType()), distinctUntilChanged(), shareReplay(1));
|
|
1410
|
+
this.widthType$ = this._updateWidth.pipe(initialize(() => this._updateWidth.next()), throttleTime(100, undefined, { leading: true, trailing: true }), map$1(() => this._readWidthType()), distinctUntilChanged(), shareReplay(1));
|
|
1411
|
+
this.heightType$ = this._updateWidth.pipe(initialize(() => this._updateHeight.next()), throttleTime(100, undefined, { leading: true, trailing: true }), map$1(() => this._readHeightType()), distinctUntilChanged(), shareReplay(1));
|
|
832
1412
|
const { microScreenWidthMax, smallScreenWidthMax, tabletScreenWidthMax, largeScreenWidthMax } = config;
|
|
833
1413
|
this._microQuery = this._media.matchMedia(`screen and (max-width:${microScreenWidthMax}px)`);
|
|
834
1414
|
this._smallQuery = this._media.matchMedia(`screen and (max-width:${smallScreenWidthMax}px)`);
|
|
@@ -858,7 +1438,7 @@ class DbxScreenMediaService {
|
|
|
858
1438
|
* @returns
|
|
859
1439
|
*/
|
|
860
1440
|
isBreakpointActive(inputBreakpoint) {
|
|
861
|
-
return combineLatest([this.widthType$, asObservable(inputBreakpoint)]).pipe(map(([current, breakpoint]) => screenMediaWidthTypeIsActive(current, breakpoint)), distinctUntilChanged(), shareReplay(1));
|
|
1441
|
+
return combineLatest([this.widthType$, asObservable(inputBreakpoint)]).pipe(map$1(([current, breakpoint]) => screenMediaWidthTypeIsActive(current, breakpoint)), distinctUntilChanged(), shareReplay(1));
|
|
862
1442
|
}
|
|
863
1443
|
_readWidthType() {
|
|
864
1444
|
let width;
|
|
@@ -888,11 +1468,11 @@ class DbxScreenMediaService {
|
|
|
888
1468
|
}
|
|
889
1469
|
}
|
|
890
1470
|
}
|
|
891
|
-
DbxScreenMediaService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxScreenMediaService, deps: [{ token: i1$
|
|
1471
|
+
DbxScreenMediaService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxScreenMediaService, deps: [{ token: i1$6.MediaMatcher }, { token: DbxScreenMediaServiceConfig }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
892
1472
|
DbxScreenMediaService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxScreenMediaService });
|
|
893
1473
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxScreenMediaService, decorators: [{
|
|
894
1474
|
type: Injectable
|
|
895
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
1475
|
+
}], ctorParameters: function () { return [{ type: i1$6.MediaMatcher }, { type: DbxScreenMediaServiceConfig }]; } });
|
|
896
1476
|
|
|
897
1477
|
/**
|
|
898
1478
|
* Component that displays a navbar.
|
|
@@ -908,10 +1488,10 @@ class DbxNavbarComponent extends AbstractTransitionDirective {
|
|
|
908
1488
|
this._breakpoint = new BehaviorSubject('large');
|
|
909
1489
|
this._anchors = new BehaviorSubject([]);
|
|
910
1490
|
this.isBreakpointActive$ = this._dbxScreenMediaService.isBreakpointActive(this._breakpoint);
|
|
911
|
-
this.mode$ = combineLatest([this._inputMode, this.isBreakpointActive$]).pipe(map(([inputMode, breakpointActive]) => {
|
|
1491
|
+
this.mode$ = combineLatest([this._inputMode, this.isBreakpointActive$]).pipe(map$1(([inputMode, breakpointActive]) => {
|
|
912
1492
|
return (breakpointActive) ? (inputMode ?? 'bar') : 'button';
|
|
913
1493
|
}), distinctUntilChanged(), tapDetectChanges(this.cdRef), shareReplay(1));
|
|
914
|
-
this.anchors$ = combineLatest([this._anchors, this.initAndUpdateOnTransitionSuccess$]).pipe(map(([anchors]) => {
|
|
1494
|
+
this.anchors$ = combineLatest([this._anchors, this.initAndUpdateOnTransitionSuccess$]).pipe(map$1(([anchors]) => {
|
|
915
1495
|
const results = anchors.map((anchor) => {
|
|
916
1496
|
let selected = this._dbxRouterService.isActive(anchor);
|
|
917
1497
|
return {
|
|
@@ -938,14 +1518,14 @@ class DbxNavbarComponent extends AbstractTransitionDirective {
|
|
|
938
1518
|
this._breakpoint.next(breakpoint);
|
|
939
1519
|
}
|
|
940
1520
|
}
|
|
941
|
-
DbxNavbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxNavbarComponent, deps: [{ token: i1.DbxRouterTransitionService }, { token: i0.ChangeDetectorRef }, { token: DbxScreenMediaService }, { token: i1.DbxRouterService }], target: i0.ɵɵFactoryTarget.Component });
|
|
942
|
-
DbxNavbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxNavbarComponent, selector: "dbx-navbar", inputs: { navAlign: "navAlign", anchors: "anchors", mode: "mode", breakpoint: "breakpoint" }, host: { classAttribute: "dbx-navbar" }, usesInheritance: true, ngImport: i0, template: "<ng-container [ngSwitch]=\"mode$ | async\">\n <!-- Button -->\n <ng-container *ngSwitchCase=\"'button'\">\n <button mat-icon-button [matMenuTriggerFor]=\"menu\" class=\"nav-menu-button\" aria-label=\"open navigation\">\n <mat-icon>menu</mat-icon>\n </button>\n <mat-menu #menu>\n <dbx-anchor *ngFor=\"let x of anchors$ | async\" [anchor]=\"x.anchor\">\n <button mat-menu-item [ngClass]=\"(x.selected) ? 'active' : ''\">{{ x.anchor.title }}</button>\n </dbx-anchor>\n </mat-menu>\n </ng-container>\n <!-- Bar -->\n <nav *ngSwitchDefault mat-tab-nav-bar [attr.mat-align-tabs]=\"navAlign\">\n <dbx-anchor *ngFor=\"let x of anchors$ | async\" [anchor]=\"x.anchor\">\n <a mat-tab-link [active]=\"x.selected\">{{ x.anchor.title }}</a>\n </dbx-anchor>\n </nav>\n</ng-container>\n", components: [{ type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i3.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
|
|
1521
|
+
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 });
|
|
1522
|
+
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: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i5.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { type: DbxAnchorComponent, selector: "dbx-anchor, [dbx-anchor]", inputs: ["block"] }, { type: i5.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { type: i7.MatTabNav, selector: "[mat-tab-nav-bar]", inputs: ["color"], exportAs: ["matTabNavBar", "matTabNav"] }], directives: [{ type: i3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i5.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { type: i7.MatTabLink, selector: "[mat-tab-link], [matTabLink]", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matTabLink"] }], pipes: { "async": i3.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
943
1523
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxNavbarComponent, decorators: [{
|
|
944
1524
|
type: Component,
|
|
945
1525
|
args: [{ selector: 'dbx-navbar', changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
946
1526
|
'class': 'dbx-navbar'
|
|
947
1527
|
}, template: "<ng-container [ngSwitch]=\"mode$ | async\">\n <!-- Button -->\n <ng-container *ngSwitchCase=\"'button'\">\n <button mat-icon-button [matMenuTriggerFor]=\"menu\" class=\"nav-menu-button\" aria-label=\"open navigation\">\n <mat-icon>menu</mat-icon>\n </button>\n <mat-menu #menu>\n <dbx-anchor *ngFor=\"let x of anchors$ | async\" [anchor]=\"x.anchor\">\n <button mat-menu-item [ngClass]=\"(x.selected) ? 'active' : ''\">{{ x.anchor.title }}</button>\n </dbx-anchor>\n </mat-menu>\n </ng-container>\n <!-- Bar -->\n <nav *ngSwitchDefault mat-tab-nav-bar [attr.mat-align-tabs]=\"navAlign\">\n <dbx-anchor *ngFor=\"let x of anchors$ | async\" [anchor]=\"x.anchor\">\n <a mat-tab-link [active]=\"x.selected\">{{ x.anchor.title }}</a>\n </dbx-anchor>\n </nav>\n</ng-container>\n" }]
|
|
948
|
-
}], ctorParameters: function () { return [{ type: i1.DbxRouterTransitionService }, { type: i0.ChangeDetectorRef }, { type: DbxScreenMediaService }, { type: i1.DbxRouterService }]; }, propDecorators: { navAlign: [{
|
|
1528
|
+
}], ctorParameters: function () { return [{ type: i1$2.DbxRouterTransitionService }, { type: i0.ChangeDetectorRef }, { type: DbxScreenMediaService }, { type: i1$2.DbxRouterService }]; }, propDecorators: { navAlign: [{
|
|
949
1529
|
type: Input
|
|
950
1530
|
}], anchors: [{
|
|
951
1531
|
type: Input
|
|
@@ -1027,7 +1607,7 @@ class DbxSidenavComponent extends AbstractTransitionWatcherDirective {
|
|
|
1027
1607
|
constructor(dbxRouterTransitionService, ngZone, _screenMediaService) {
|
|
1028
1608
|
super(dbxRouterTransitionService, ngZone);
|
|
1029
1609
|
this._screenMediaService = _screenMediaService;
|
|
1030
|
-
this.mode$ = this._screenMediaService.widthType$.pipe(distinctUntilChanged(), map((width) => {
|
|
1610
|
+
this.mode$ = this._screenMediaService.widthType$.pipe(distinctUntilChanged(), map$1((width) => {
|
|
1031
1611
|
let mode;
|
|
1032
1612
|
switch (width) {
|
|
1033
1613
|
case 'micro':
|
|
@@ -1044,9 +1624,9 @@ class DbxSidenavComponent extends AbstractTransitionWatcherDirective {
|
|
|
1044
1624
|
}
|
|
1045
1625
|
return mode;
|
|
1046
1626
|
}), shareReplay(1));
|
|
1047
|
-
this.disableBackdrop$ = this.mode$.pipe(map(x => x !== SideNavDisplayMode.MOBILE), distinctUntilChanged(), shareReplay(1));
|
|
1048
|
-
this.sizeClass$ = this.mode$.pipe(map((mode) => `dbx-sidenav-${mode}`), distinctUntilChanged(), shareReplay(1));
|
|
1049
|
-
this.state$ = this.mode$.pipe(map((mode) => {
|
|
1627
|
+
this.disableBackdrop$ = this.mode$.pipe(map$1(x => x !== SideNavDisplayMode.MOBILE), distinctUntilChanged(), shareReplay(1));
|
|
1628
|
+
this.sizeClass$ = this.mode$.pipe(map$1((mode) => `dbx-sidenav-${mode}`), distinctUntilChanged(), shareReplay(1));
|
|
1629
|
+
this.state$ = this.mode$.pipe(map$1((mode) => {
|
|
1050
1630
|
let drawer;
|
|
1051
1631
|
let open;
|
|
1052
1632
|
switch (mode) {
|
|
@@ -1066,7 +1646,7 @@ class DbxSidenavComponent extends AbstractTransitionWatcherDirective {
|
|
|
1066
1646
|
open
|
|
1067
1647
|
};
|
|
1068
1648
|
}), shareReplay(1));
|
|
1069
|
-
this.drawer$ = this.state$.pipe(map(x => x.drawer), distinctUntilChanged(), shareReplay(1));
|
|
1649
|
+
this.drawer$ = this.state$.pipe(map$1(x => x.drawer), distinctUntilChanged(), shareReplay(1));
|
|
1070
1650
|
this._watcherSub = new SubscriptionObject();
|
|
1071
1651
|
this._stateSub = new SubscriptionObject();
|
|
1072
1652
|
}
|
|
@@ -1122,12 +1702,12 @@ class DbxSidenavComponent extends AbstractTransitionWatcherDirective {
|
|
|
1122
1702
|
});
|
|
1123
1703
|
}
|
|
1124
1704
|
}
|
|
1125
|
-
DbxSidenavComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSidenavComponent, deps: [{ token: i1.DbxRouterTransitionService }, { token: i0.NgZone }, { token: DbxScreenMediaService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1126
|
-
DbxSidenavComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxSidenavComponent, selector: "dbx-sidenav", inputs: { anchors: "anchors" }, viewQueries: [{ propertyName: "sidenav", first: true, predicate: MatSidenav, descendants: true, static: true }], exportAs: ["sidenav"], usesInheritance: true, ngImport: i0, template: "<mat-sidenav-container class=\"dbx-sidenav\" [ngClass]=\"(sizeClass$ | async) ?? ''\">\n <mat-sidenav class=\"dbx-sidenav-nav\" [disableClose]=\"disableBackdrop$ | async\" [mode]=\"(drawer$ | async)!\">\n <ng-content select=\"[top]\"></ng-content>\n <dbx-anchor-list class=\"dbx-sidenav-anchor-list\" [anchors]=\"anchors\"></dbx-anchor-list>\n <span class=\"spacer\"></span>\n <ng-content select=\"[bottom]\"></ng-content>\n <div class=\"dbx-sidenav-nav-end\"></div>\n </mat-sidenav>\n <mat-sidenav-content>\n <ng-content></ng-content>\n </mat-sidenav-content>\n</mat-sidenav-container>\n", components: [{ type: i3$2.MatSidenavContainer, selector: "mat-sidenav-container", exportAs: ["matSidenavContainer"] }, { type: i3$2.MatSidenav, selector: "mat-sidenav", inputs: ["fixedInViewport", "fixedTopGap", "fixedBottomGap"], exportAs: ["matSidenav"] }, { type: DbxAnchorListComponent, selector: "dbx-anchor-list", inputs: ["anchors"] }, { type: i3$2.MatSidenavContent, selector: "mat-sidenav-content" }], directives: [{ type: i3
|
|
1705
|
+
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 });
|
|
1706
|
+
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$2.MatSidenavContainer, selector: "mat-sidenav-container", exportAs: ["matSidenavContainer"] }, { type: i3$2.MatSidenav, selector: "mat-sidenav", inputs: ["fixedInViewport", "fixedTopGap", "fixedBottomGap"], exportAs: ["matSidenav"] }, { type: DbxAnchorListComponent, selector: "dbx-anchor-list", inputs: ["anchors"] }, { type: i3$2.MatSidenavContent, selector: "mat-sidenav-content" }], directives: [{ type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "async": i3.AsyncPipe } });
|
|
1127
1707
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSidenavComponent, decorators: [{
|
|
1128
1708
|
type: Component,
|
|
1129
1709
|
args: [{ selector: 'dbx-sidenav', exportAs: 'sidenav', template: "<mat-sidenav-container class=\"dbx-sidenav\" [ngClass]=\"(sizeClass$ | async) ?? ''\">\n <mat-sidenav class=\"dbx-sidenav-nav\" [disableClose]=\"disableBackdrop$ | async\" [mode]=\"(drawer$ | async)!\">\n <ng-content select=\"[top]\"></ng-content>\n <dbx-anchor-list class=\"dbx-sidenav-anchor-list\" [anchors]=\"anchors\"></dbx-anchor-list>\n <span class=\"spacer\"></span>\n <ng-content select=\"[bottom]\"></ng-content>\n <div class=\"dbx-sidenav-nav-end\"></div>\n </mat-sidenav>\n <mat-sidenav-content>\n <ng-content></ng-content>\n </mat-sidenav-content>\n</mat-sidenav-container>\n" }]
|
|
1130
|
-
}], ctorParameters: function () { return [{ type: i1.DbxRouterTransitionService }, { type: i0.NgZone }, { type: DbxScreenMediaService }]; }, propDecorators: { anchors: [{
|
|
1710
|
+
}], ctorParameters: function () { return [{ type: i1$2.DbxRouterTransitionService }, { type: i0.NgZone }, { type: DbxScreenMediaService }]; }, propDecorators: { anchors: [{
|
|
1131
1711
|
type: Input
|
|
1132
1712
|
}], sidenav: [{
|
|
1133
1713
|
type: ViewChild,
|
|
@@ -1141,7 +1721,7 @@ class DbxSidenavButtonComponent {
|
|
|
1141
1721
|
constructor(parent) {
|
|
1142
1722
|
this.parent = parent;
|
|
1143
1723
|
this.mode$ = this.parent.mode$;
|
|
1144
|
-
this.showMenuButton$ = this.mode$.pipe(map
|
|
1724
|
+
this.showMenuButton$ = this.mode$.pipe(map(x => x === SideNavDisplayMode.MOBILE));
|
|
1145
1725
|
}
|
|
1146
1726
|
toggleNav() {
|
|
1147
1727
|
this.parent.toggleNav();
|
|
@@ -1152,7 +1732,7 @@ DbxSidenavButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
|
|
|
1152
1732
|
<button class="dbx-sidenav-button" mat-icon-button *ngIf="showMenuButton$ | async" (click)="toggleNav()" aria-label="open sidenav button">
|
|
1153
1733
|
<mat-icon>view_sidebar</mat-icon>
|
|
1154
1734
|
</button>
|
|
1155
|
-
`, isInline: true, components: [{ type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i3
|
|
1735
|
+
`, 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: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i3.AsyncPipe } });
|
|
1156
1736
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSidenavButtonComponent, decorators: [{
|
|
1157
1737
|
type: Component,
|
|
1158
1738
|
args: [{
|
|
@@ -1165,21 +1745,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
1165
1745
|
}]
|
|
1166
1746
|
}], ctorParameters: function () { return [{ type: DbxSidenavComponent }]; } });
|
|
1167
1747
|
|
|
1168
|
-
/**
|
|
1169
|
-
* Button spacer component.
|
|
1170
|
-
*/
|
|
1171
|
-
class DbxButtonSpacerComponent {
|
|
1172
|
-
}
|
|
1173
|
-
DbxButtonSpacerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonSpacerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1174
|
-
DbxButtonSpacerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxButtonSpacerComponent, selector: "dbx-button-spacer", ngImport: i0, template: `<span class="dbx-button-spacer"></span>`, isInline: true });
|
|
1175
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonSpacerComponent, decorators: [{
|
|
1176
|
-
type: Component,
|
|
1177
|
-
args: [{
|
|
1178
|
-
selector: 'dbx-button-spacer',
|
|
1179
|
-
template: `<span class="dbx-button-spacer"></span>`
|
|
1180
|
-
}]
|
|
1181
|
-
}] });
|
|
1182
|
-
|
|
1183
1748
|
/**
|
|
1184
1749
|
* Pre-configured pagebar used with DbxSidenavComponent.
|
|
1185
1750
|
*/
|
|
@@ -1195,7 +1760,7 @@ DbxSidenavPagebarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
|
|
|
1195
1760
|
</span>
|
|
1196
1761
|
<ng-content right></ng-content>
|
|
1197
1762
|
</dbx-pagebar>
|
|
1198
|
-
`, isInline: true, components: [{ type: DbxPagebarComponent, selector: "dbx-pagebar", inputs: ["color"] }, { type: DbxSidenavButtonComponent, selector: "dbx-sidenav-button" }, { type:
|
|
1763
|
+
`, isInline: true, components: [{ type: DbxPagebarComponent, selector: "dbx-pagebar", inputs: ["color"] }, { type: DbxSidenavButtonComponent, selector: "dbx-sidenav-button" }], directives: [{ type: DbxButtonSpacerDirective, selector: "dbx-button-spacer,dbxButtonSpacer" }] });
|
|
1199
1764
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSidenavPagebarComponent, decorators: [{
|
|
1200
1765
|
type: Component,
|
|
1201
1766
|
args: [{
|
|
@@ -1222,7 +1787,7 @@ class DbxSidenavPageComponent {
|
|
|
1222
1787
|
constructor(parent) {
|
|
1223
1788
|
this.parent = parent;
|
|
1224
1789
|
this._mobileOnly = new BehaviorSubject(false);
|
|
1225
|
-
this.hidePagebar$ = this._mobileOnly.pipe(switchMap((mobileOnly) => (mobileOnly) ? this.parent.mode$.pipe(map(x => x !== SideNavDisplayMode.MOBILE)) : of(true)), shareReplay(1));
|
|
1790
|
+
this.hidePagebar$ = this._mobileOnly.pipe(switchMap((mobileOnly) => (mobileOnly) ? this.parent.mode$.pipe(map$1(x => x !== SideNavDisplayMode.MOBILE)) : of(true)), shareReplay(1));
|
|
1226
1791
|
}
|
|
1227
1792
|
get mobileOnly() {
|
|
1228
1793
|
return this._mobileOnly.value;
|
|
@@ -1242,7 +1807,7 @@ DbxSidenavPageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
|
|
|
1242
1807
|
<ng-content></ng-content>
|
|
1243
1808
|
</div>
|
|
1244
1809
|
</div>
|
|
1245
|
-
`, isInline: true, components: [{ type: DbxSidenavPagebarComponent, selector: "dbx-sidenav-pagebar" }], directives: [{ type: i3
|
|
1810
|
+
`, isInline: true, components: [{ type: DbxSidenavPagebarComponent, selector: "dbx-sidenav-pagebar" }], directives: [{ type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "async": i3.AsyncPipe } });
|
|
1246
1811
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSidenavPageComponent, decorators: [{
|
|
1247
1812
|
type: Component,
|
|
1248
1813
|
args: [{
|
|
@@ -1262,127 +1827,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
1262
1827
|
}], ctorParameters: function () { return [{ type: DbxSidenavComponent }]; }, propDecorators: { color: [{
|
|
1263
1828
|
type: Input
|
|
1264
1829
|
}], mobileOnly: [{
|
|
1265
|
-
type: Input
|
|
1266
|
-
}] } });
|
|
1267
|
-
|
|
1268
|
-
var DbxButtonDisplayType;
|
|
1269
|
-
(function (DbxButtonDisplayType) {
|
|
1270
|
-
DbxButtonDisplayType[DbxButtonDisplayType["RAISED"] = 0] = "RAISED";
|
|
1271
|
-
DbxButtonDisplayType[DbxButtonDisplayType["STROKED"] = 1] = "STROKED";
|
|
1272
|
-
DbxButtonDisplayType[DbxButtonDisplayType["FLAT"] = 2] = "FLAT";
|
|
1273
|
-
})(DbxButtonDisplayType || (DbxButtonDisplayType = {}));
|
|
1274
|
-
/**
|
|
1275
|
-
* Complex button that supports loading states.
|
|
1276
|
-
*/
|
|
1277
|
-
class DbxButtonComponent extends AbstractDbxButtonDirective {
|
|
1278
|
-
constructor() {
|
|
1279
|
-
super(...arguments);
|
|
1280
|
-
this.color = 'primary';
|
|
1281
|
-
}
|
|
1282
|
-
get raised() {
|
|
1283
|
-
return this.type === DbxButtonDisplayType.RAISED;
|
|
1284
|
-
}
|
|
1285
|
-
set raised(raised) {
|
|
1286
|
-
if (raised) {
|
|
1287
|
-
this.type = DbxButtonDisplayType.RAISED;
|
|
1288
|
-
}
|
|
1289
|
-
}
|
|
1290
|
-
get stroked() {
|
|
1291
|
-
return this.type === DbxButtonDisplayType.STROKED;
|
|
1292
|
-
}
|
|
1293
|
-
set stroked(stroked) {
|
|
1294
|
-
if (stroked) {
|
|
1295
|
-
this.type = DbxButtonDisplayType.STROKED;
|
|
1296
|
-
}
|
|
1297
|
-
}
|
|
1298
|
-
get flat() {
|
|
1299
|
-
return this.type === DbxButtonDisplayType.FLAT;
|
|
1300
|
-
}
|
|
1301
|
-
set flat(flat) {
|
|
1302
|
-
if (flat) {
|
|
1303
|
-
this.type = DbxButtonDisplayType.FLAT;
|
|
1304
|
-
}
|
|
1305
|
-
}
|
|
1306
|
-
get btnOptions() {
|
|
1307
|
-
const buttonIcon = (this.icon) ? {
|
|
1308
|
-
fontIcon: this.icon
|
|
1309
|
-
} : undefined;
|
|
1310
|
-
return {
|
|
1311
|
-
fab: false,
|
|
1312
|
-
active: this.working,
|
|
1313
|
-
buttonIcon,
|
|
1314
|
-
customClass: 'dbx-button ' + ((buttonIcon && !this.text) ? 'dbx-button-no-text' : ''),
|
|
1315
|
-
// buttonIcon: icon,
|
|
1316
|
-
text: this.text ?? '',
|
|
1317
|
-
buttonColor: this.color,
|
|
1318
|
-
barColor: 'accent',
|
|
1319
|
-
raised: this.raised,
|
|
1320
|
-
stroked: this.stroked,
|
|
1321
|
-
flat: this.flat,
|
|
1322
|
-
mode: 'indeterminate',
|
|
1323
|
-
spinnerSize: 18,
|
|
1324
|
-
spinnerColor: 'accent',
|
|
1325
|
-
// Only disabled if we're not working, in order to show the animation.
|
|
1326
|
-
disabled: !this.working && this.disabled
|
|
1327
|
-
};
|
|
1328
|
-
}
|
|
1329
|
-
}
|
|
1330
|
-
DbxButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1331
|
-
DbxButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxButtonComponent, selector: "dbx-button", inputs: { type: "type", raised: "raised", stroked: "stroked", flat: "flat", color: "color" }, providers: ProvideDbxButton(DbxButtonComponent), usesInheritance: true, ngImport: i0, template: `
|
|
1332
|
-
<mat-spinner-button class="page-button" (btnClick)="clickButton()" [options]="btnOptions"></mat-spinner-button>
|
|
1333
|
-
`, isInline: true, components: [{ type: i1$5.MatSpinnerButtonComponent, selector: "mat-spinner-button", inputs: ["options", "buttonId", "active", "disabled"], outputs: ["btnClick"] }] });
|
|
1334
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonComponent, decorators: [{
|
|
1335
|
-
type: Component,
|
|
1336
|
-
args: [{
|
|
1337
|
-
selector: 'dbx-button',
|
|
1338
|
-
template: `
|
|
1339
|
-
<mat-spinner-button class="page-button" (btnClick)="clickButton()" [options]="btnOptions"></mat-spinner-button>
|
|
1340
|
-
`,
|
|
1341
|
-
// TODO: styleUrls: ['./button.scss'],
|
|
1342
|
-
providers: ProvideDbxButton(DbxButtonComponent)
|
|
1343
|
-
}]
|
|
1344
|
-
}], propDecorators: { type: [{
|
|
1345
|
-
type: Input
|
|
1346
|
-
}], raised: [{
|
|
1347
|
-
type: Input
|
|
1348
|
-
}], stroked: [{
|
|
1349
|
-
type: Input
|
|
1350
|
-
}], flat: [{
|
|
1351
|
-
type: Input
|
|
1352
|
-
}], color: [{
|
|
1353
|
-
type: Input
|
|
1354
|
-
}] } });
|
|
1355
|
-
|
|
1356
|
-
class DbxButtonModule {
|
|
1357
|
-
}
|
|
1358
|
-
DbxButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1359
|
-
DbxButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonModule, declarations: [DbxButtonComponent,
|
|
1360
|
-
DbxButtonSpacerComponent], imports: [CommonModule,
|
|
1361
|
-
MatProgressButtonsModule], exports: [MatProgressButtonsModule,
|
|
1362
|
-
DbxButtonComponent,
|
|
1363
|
-
DbxButtonSpacerComponent] });
|
|
1364
|
-
DbxButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonModule, imports: [[
|
|
1365
|
-
CommonModule,
|
|
1366
|
-
MatProgressButtonsModule
|
|
1367
|
-
], MatProgressButtonsModule] });
|
|
1368
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonModule, decorators: [{
|
|
1369
|
-
type: NgModule,
|
|
1370
|
-
args: [{
|
|
1371
|
-
imports: [
|
|
1372
|
-
CommonModule,
|
|
1373
|
-
MatProgressButtonsModule
|
|
1374
|
-
],
|
|
1375
|
-
declarations: [
|
|
1376
|
-
DbxButtonComponent,
|
|
1377
|
-
DbxButtonSpacerComponent
|
|
1378
|
-
],
|
|
1379
|
-
exports: [
|
|
1380
|
-
MatProgressButtonsModule,
|
|
1381
|
-
DbxButtonComponent,
|
|
1382
|
-
DbxButtonSpacerComponent
|
|
1383
|
-
],
|
|
1384
|
-
}]
|
|
1385
|
-
}] });
|
|
1830
|
+
type: Input
|
|
1831
|
+
}] } });
|
|
1386
1832
|
|
|
1387
1833
|
/**
|
|
1388
1834
|
* Section used to elevate content in a pre-configured manner.
|
|
@@ -1649,7 +2095,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
1649
2095
|
class DbxAngularRouterSegueAnchorComponent extends AbstractDbxSegueAnchorDirective {
|
|
1650
2096
|
}
|
|
1651
2097
|
DbxAngularRouterSegueAnchorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxAngularRouterSegueAnchorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1652
|
-
DbxAngularRouterSegueAnchorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxAngularRouterSegueAnchorComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<a class=\"dbx-anchor-a dbx-anchor-sref\" [attr.target]=\"target$ | async\" [uiSref]=\"ref$ | async\"\n [uiParams]=\"refParams$ | async\" [uiOptions]=\"refOptions$ | async\">\n <dbx-injected-content></dbx-injected-content>\n</a>\n", components: [{ type: i1.DbxInjectedComponent, selector: "dbx-injected-content, [dbx-injected-content]", inputs: ["config", "template"] }], directives: [{ type: i2$1.AnchorUISref, selector: "a[uiSref]" }, { type: i2$1.UISref, selector: "[uiSref]", inputs: ["uiSref", "uiParams", "uiOptions"], exportAs: ["uiSref"] }], pipes: { "async": i3
|
|
2098
|
+
DbxAngularRouterSegueAnchorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxAngularRouterSegueAnchorComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<a class=\"dbx-anchor-a dbx-anchor-sref\" [attr.target]=\"target$ | async\" [uiSref]=\"ref$ | async\"\n [uiParams]=\"refParams$ | async\" [uiOptions]=\"refOptions$ | async\">\n <dbx-injected-content></dbx-injected-content>\n</a>\n", components: [{ type: i1$2.DbxInjectedComponent, selector: "dbx-injected-content, [dbx-injected-content]", inputs: ["config", "template"] }], directives: [{ type: i2$1.AnchorUISref, selector: "a[uiSref]" }, { type: i2$1.UISref, selector: "[uiSref]", inputs: ["uiSref", "uiParams", "uiOptions"], exportAs: ["uiSref"] }], pipes: { "async": i3.AsyncPipe } });
|
|
1653
2099
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxAngularRouterSegueAnchorComponent, decorators: [{
|
|
1654
2100
|
type: Component,
|
|
1655
2101
|
args: [{ template: "<a class=\"dbx-anchor-a dbx-anchor-sref\" [attr.target]=\"target$ | async\" [uiSref]=\"ref$ | async\"\n [uiParams]=\"refParams$ | async\" [uiOptions]=\"refOptions$ | async\">\n <dbx-injected-content></dbx-injected-content>\n</a>\n" }]
|
|
@@ -1700,7 +2146,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
1700
2146
|
class DbxUIRouterSegueAnchorComponent extends AbstractDbxSegueAnchorDirective {
|
|
1701
2147
|
}
|
|
1702
2148
|
DbxUIRouterSegueAnchorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxUIRouterSegueAnchorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1703
|
-
DbxUIRouterSegueAnchorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxUIRouterSegueAnchorComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<a class=\"dbx-anchor-a dbx-anchor-sref\" [attr.target]=\"target$ | async\" [uiSref]=\"ref$ | async\"\n [uiParams]=\"refParams$ | async\" [uiOptions]=\"refOptions$ | async\" uiSrefActive=\"dbx-anchor-active\" uiSrefActiveEq=\"dbx-anchor-active-eq\">\n <dbx-injected-content [template]=\"template$ | async\"></dbx-injected-content>\n</a>\n", components: [{ type: i1.DbxInjectedComponent, selector: "dbx-injected-content, [dbx-injected-content]", inputs: ["config", "template"] }], directives: [{ type: i2$1.AnchorUISref, selector: "a[uiSref]" }, { type: i2$1.UISrefActive, selector: "[uiSrefActive],[uiSrefActiveEq]", inputs: ["uiSrefActive", "uiSrefActiveEq"] }, { type: i2$1.UISrefStatus, selector: "[uiSrefStatus],[uiSrefActive],[uiSrefActiveEq]", outputs: ["uiSrefStatus"], exportAs: ["uiSrefStatus"] }, { type: i2$1.UISref, selector: "[uiSref]", inputs: ["uiSref", "uiParams", "uiOptions"], exportAs: ["uiSref"] }], pipes: { "async": i3
|
|
2149
|
+
DbxUIRouterSegueAnchorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxUIRouterSegueAnchorComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<a class=\"dbx-anchor-a dbx-anchor-sref\" [attr.target]=\"target$ | async\" [uiSref]=\"ref$ | async\"\n [uiParams]=\"refParams$ | async\" [uiOptions]=\"refOptions$ | async\" uiSrefActive=\"dbx-anchor-active\" uiSrefActiveEq=\"dbx-anchor-active-eq\">\n <dbx-injected-content [template]=\"template$ | async\"></dbx-injected-content>\n</a>\n", components: [{ type: i1$2.DbxInjectedComponent, selector: "dbx-injected-content, [dbx-injected-content]", inputs: ["config", "template"] }], directives: [{ type: i2$1.AnchorUISref, selector: "a[uiSref]" }, { type: i2$1.UISrefActive, selector: "[uiSrefActive],[uiSrefActiveEq]", inputs: ["uiSrefActive", "uiSrefActiveEq"] }, { type: i2$1.UISrefStatus, selector: "[uiSrefStatus],[uiSrefActive],[uiSrefActiveEq]", outputs: ["uiSrefStatus"], exportAs: ["uiSrefStatus"] }, { type: i2$1.UISref, selector: "[uiSref]", inputs: ["uiSref", "uiParams", "uiOptions"], exportAs: ["uiSref"] }], pipes: { "async": i3.AsyncPipe } });
|
|
1704
2150
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxUIRouterSegueAnchorComponent, decorators: [{
|
|
1705
2151
|
type: Component,
|
|
1706
2152
|
args: [{ template: "<a class=\"dbx-anchor-a dbx-anchor-sref\" [attr.target]=\"target$ | async\" [uiSref]=\"ref$ | async\"\n [uiParams]=\"refParams$ | async\" [uiOptions]=\"refOptions$ | async\" uiSrefActive=\"dbx-anchor-active\" uiSrefActiveEq=\"dbx-anchor-active-eq\">\n <dbx-injected-content [template]=\"template$ | async\"></dbx-injected-content>\n</a>\n" }]
|
|
@@ -1776,7 +2222,7 @@ DbxTwoBlocksComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
1776
2222
|
<ng-content></ng-content>
|
|
1777
2223
|
</div>
|
|
1778
2224
|
</div>
|
|
1779
|
-
`, isInline: true, directives: [{ type: i1$
|
|
2225
|
+
`, isInline: true, directives: [{ type: i1$7.ResizedDirective, selector: "[resized]", outputs: ["resized"] }] });
|
|
1780
2226
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxTwoBlocksComponent, decorators: [{
|
|
1781
2227
|
type: Component,
|
|
1782
2228
|
args: [{
|
|
@@ -1847,7 +2293,7 @@ DbxCardBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
|
|
|
1847
2293
|
<ng-content></ng-content>
|
|
1848
2294
|
</div>
|
|
1849
2295
|
</div>
|
|
1850
|
-
`, isInline: true, components: [{ type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i3
|
|
2296
|
+
`, isInline: true, components: [{ type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1851
2297
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxCardBoxComponent, decorators: [{
|
|
1852
2298
|
type: Component,
|
|
1853
2299
|
args: [{
|
|
@@ -1937,23 +2383,23 @@ class TwoColumnsContextStore extends ComponentStore {
|
|
|
1937
2383
|
/**
|
|
1938
2384
|
* Pipes the current state of showRight.
|
|
1939
2385
|
*/
|
|
1940
|
-
this.showRight$ = this.state$.pipe(map
|
|
2386
|
+
this.showRight$ = this.state$.pipe(map((x) => x.showRight));
|
|
1941
2387
|
/**
|
|
1942
2388
|
* Convenience function for the showRight compliment.
|
|
1943
2389
|
*/
|
|
1944
|
-
this.hideRight$ = this.state$.pipe(map
|
|
2390
|
+
this.hideRight$ = this.state$.pipe(map((x) => !x.showRight));
|
|
1945
2391
|
/**
|
|
1946
2392
|
* Pipes the current state of fullLeft.
|
|
1947
2393
|
*/
|
|
1948
|
-
this.fullLeft$ = this.state$.pipe(map
|
|
2394
|
+
this.fullLeft$ = this.state$.pipe(map((x) => x.fullLeft));
|
|
1949
2395
|
/**
|
|
1950
2396
|
* Whether or not to show the full left.
|
|
1951
2397
|
*/
|
|
1952
|
-
this.showFullLeft$ = this.state$.pipe(map
|
|
2398
|
+
this.showFullLeft$ = this.state$.pipe(map((x) => !x.showRight && x.fullLeft));
|
|
1953
2399
|
/**
|
|
1954
2400
|
* Pipes the current backRef value.
|
|
1955
2401
|
*/
|
|
1956
|
-
this.backRef$ = this.state$.pipe(map
|
|
2402
|
+
this.backRef$ = this.state$.pipe(map((x) => x.backRef), distinct());
|
|
1957
2403
|
/**
|
|
1958
2404
|
* Emits back events.
|
|
1959
2405
|
*/
|
|
@@ -2046,7 +2492,7 @@ class DbxTwoColumnsComponent {
|
|
|
2046
2492
|
}
|
|
2047
2493
|
}
|
|
2048
2494
|
DbxTwoColumnsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxTwoColumnsComponent, deps: [{ token: TwoColumnsContextStore }], target: i0.ɵɵFactoryTarget.Component });
|
|
2049
|
-
DbxTwoColumnsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxTwoColumnsComponent, selector: "dbx-two-columns", inputs: { reverseSizing: "reverseSizing", inSectionPage: "inSectionPage" }, exportAs: ["columns"], ngImport: i0, template: "<div class=\"two-column\" [ngClass]=\"{ 'two-column-reverse-sizing': reverseSizing, 'right-shown': showRight$ | async, 'full-left': (showFullLeft$ | async), 'dbx-section-page-two': inSectionPage }\">\n <div class=\"left-column\">\n <ng-content select=\"[left]\"></ng-content>\n </div>\n <div class=\"right-column\" *ngIf=\"showRight$ | async\">\n <!-- NOTE: This will only hide the content project. Be sure to use *ngIf separately on the right's content if needed. -->\n <!-- https://github.com/angular/angular/issues/17983 -->\n <ng-content select=\"[right]\"></ng-content>\n </div>\n</div>\n", directives: [{ type: i3
|
|
2495
|
+
DbxTwoColumnsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxTwoColumnsComponent, selector: "dbx-two-columns", inputs: { reverseSizing: "reverseSizing", inSectionPage: "inSectionPage" }, exportAs: ["columns"], ngImport: i0, template: "<div class=\"two-column\" [ngClass]=\"{ 'two-column-reverse-sizing': reverseSizing, 'right-shown': showRight$ | async, 'full-left': (showFullLeft$ | async), 'dbx-section-page-two': inSectionPage }\">\n <div class=\"left-column\">\n <ng-content select=\"[left]\"></ng-content>\n </div>\n <div class=\"right-column\" *ngIf=\"showRight$ | async\">\n <!-- NOTE: This will only hide the content project. Be sure to use *ngIf separately on the right's content if needed. -->\n <!-- https://github.com/angular/angular/issues/17983 -->\n <ng-content select=\"[right]\"></ng-content>\n </div>\n</div>\n", directives: [{ type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i3.AsyncPipe } });
|
|
2050
2496
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxTwoColumnsComponent, decorators: [{
|
|
2051
2497
|
type: Component,
|
|
2052
2498
|
args: [{ selector: 'dbx-two-columns', exportAs: 'columns', template: "<div class=\"two-column\" [ngClass]=\"{ 'two-column-reverse-sizing': reverseSizing, 'right-shown': showRight$ | async, 'full-left': (showFullLeft$ | async), 'dbx-section-page-two': inSectionPage }\">\n <div class=\"left-column\">\n <ng-content select=\"[left]\"></ng-content>\n </div>\n <div class=\"right-column\" *ngIf=\"showRight$ | async\">\n <!-- NOTE: This will only hide the content project. Be sure to use *ngIf separately on the right's content if needed. -->\n <!-- https://github.com/angular/angular/issues/17983 -->\n <ng-content select=\"[right]\"></ng-content>\n </div>\n</div>\n" }]
|
|
@@ -2104,7 +2550,7 @@ DbxTwoColumnsColumnHeadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion:
|
|
|
2104
2550
|
<div class="dbx-two-columns-head" [ngClass]="{ 'block': block, 'full': full }">
|
|
2105
2551
|
<ng-content></ng-content>
|
|
2106
2552
|
</div>
|
|
2107
|
-
`, isInline: true, directives: [{ type: i3
|
|
2553
|
+
`, isInline: true, directives: [{ type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
2108
2554
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxTwoColumnsColumnHeadComponent, decorators: [{
|
|
2109
2555
|
type: Component,
|
|
2110
2556
|
args: [{
|
|
@@ -2160,8 +2606,8 @@ class DbxTwoColumnsRightComponent {
|
|
|
2160
2606
|
this._showBack = new BehaviorSubject(true);
|
|
2161
2607
|
this.ref$ = this.twoColumnsContextStore.backRef$;
|
|
2162
2608
|
this.showBack$ = combineLatest([
|
|
2163
|
-
this._showBack, this.ref$.pipe(map
|
|
2164
|
-
]).pipe(map
|
|
2609
|
+
this._showBack, this.ref$.pipe(map((x) => !Boolean(x))) // TODO: Is this correct? Show back if ref is not defined?
|
|
2610
|
+
]).pipe(map(([a, b]) => a && b));
|
|
2165
2611
|
}
|
|
2166
2612
|
ngAfterViewInit() {
|
|
2167
2613
|
setTimeout(() => {
|
|
@@ -2182,7 +2628,7 @@ class DbxTwoColumnsRightComponent {
|
|
|
2182
2628
|
}
|
|
2183
2629
|
}
|
|
2184
2630
|
DbxTwoColumnsRightComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxTwoColumnsRightComponent, deps: [{ token: TwoColumnsContextStore }], target: i0.ɵɵFactoryTarget.Component });
|
|
2185
|
-
DbxTwoColumnsRightComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxTwoColumnsRightComponent, selector: "dbx-two-columns-right", inputs: { header: "header", showBack: "showBack" }, ngImport: i0, template: "<div class=\"two-columns-right\">\n <dbx-two-columns-head>\n <!-- Back Buttons -->\n <ng-container *ngIf=\"showBack$ | async\">\n <button mat-icon-button class=\"back-button\" (click)=\"backClicked()\" aria-label=\"back button\">\n <mat-icon>navigate_before</mat-icon>\n </button>\n </ng-container>\n <ng-container *ngIf=\"ref$ | async\">\n <dbx-anchor [anchor]=\"ref$ | async\">\n <button mat-icon-button class=\"back-button\" aria-label=\"back button\">\n <mat-icon>navigate_before</mat-icon>\n </button>\n </dbx-anchor>\n </ng-container>\n <span *ngIf=\"header\" class=\"right-nav-title\">{{ header }}</span>\n <span class=\"right-nav-spacer\"></span>\n <span class=\"spacer\"></span>\n <ng-content select=\"[nav]\"></ng-content>\n </dbx-two-columns-head>\n <div class=\"two-columns-right-content\">\n <ng-content></ng-content>\n </div>\n</div>\n", components: [{ type: DbxTwoColumnsColumnHeadComponent, selector: "dbx-two-columns-head", inputs: ["block", "full"] }, { type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: DbxAnchorComponent, selector: "dbx-anchor, [dbx-anchor]", inputs: ["block"] }], directives: [{ type: i3
|
|
2631
|
+
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: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: DbxAnchorComponent, selector: "dbx-anchor, [dbx-anchor]", inputs: ["block"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i3.AsyncPipe } });
|
|
2186
2632
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxTwoColumnsRightComponent, decorators: [{
|
|
2187
2633
|
type: Component,
|
|
2188
2634
|
args: [{ selector: 'dbx-two-columns-right', template: "<div class=\"two-columns-right\">\n <dbx-two-columns-head>\n <!-- Back Buttons -->\n <ng-container *ngIf=\"showBack$ | async\">\n <button mat-icon-button class=\"back-button\" (click)=\"backClicked()\" aria-label=\"back button\">\n <mat-icon>navigate_before</mat-icon>\n </button>\n </ng-container>\n <ng-container *ngIf=\"ref$ | async\">\n <dbx-anchor [anchor]=\"ref$ | async\">\n <button mat-icon-button class=\"back-button\" aria-label=\"back button\">\n <mat-icon>navigate_before</mat-icon>\n </button>\n </dbx-anchor>\n </ng-container>\n <span *ngIf=\"header\" class=\"right-nav-title\">{{ header }}</span>\n <span class=\"right-nav-spacer\"></span>\n <span class=\"spacer\"></span>\n <ng-content select=\"[nav]\"></ng-content>\n </dbx-two-columns-head>\n <div class=\"two-columns-right-content\">\n <ng-content></ng-content>\n </div>\n</div>\n" }]
|
|
@@ -2345,7 +2791,7 @@ function compactModeFromInput(input) {
|
|
|
2345
2791
|
}
|
|
2346
2792
|
function mapCompactModeObs(mode$, config) {
|
|
2347
2793
|
const modeObs = mode$ ?? of(config.defaultMode ?? CompactMode.FULL);
|
|
2348
|
-
return modeObs.pipe(map
|
|
2794
|
+
return modeObs.pipe(map((inputMode) => {
|
|
2349
2795
|
const isCompact = ((inputMode ?? config.defaultMode) === CompactMode.COMPACT);
|
|
2350
2796
|
if (isCompact) {
|
|
2351
2797
|
return config.compact;
|
|
@@ -2360,7 +2806,7 @@ class CompactContextStore extends ComponentStore {
|
|
|
2360
2806
|
constructor() {
|
|
2361
2807
|
super({ mode: CompactMode.FULL });
|
|
2362
2808
|
// MARK: Accessors
|
|
2363
|
-
this.mode$ = this.state$.pipe(map
|
|
2809
|
+
this.mode$ = this.state$.pipe(map(x => x.mode));
|
|
2364
2810
|
this.setMode = this.updater((state, mode) => ({ mode: compactModeFromInput(mode) }));
|
|
2365
2811
|
}
|
|
2366
2812
|
}
|
|
@@ -2436,7 +2882,7 @@ DbxFlagComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
|
|
|
2436
2882
|
<ng-content></ng-content>
|
|
2437
2883
|
</mat-toolbar>
|
|
2438
2884
|
</div>
|
|
2439
|
-
`, isInline: true, components: [{ type: i1$
|
|
2885
|
+
`, isInline: true, components: [{ type: i1$4.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }] });
|
|
2440
2886
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxFlagComponent, decorators: [{
|
|
2441
2887
|
type: Component,
|
|
2442
2888
|
args: [{
|
|
@@ -2533,7 +2979,7 @@ class DbxFlexGroupDirective extends AbstractSubscriptionDirective {
|
|
|
2533
2979
|
this.relative = false;
|
|
2534
2980
|
this._small = false;
|
|
2535
2981
|
this._breakpoint = new BehaviorSubject('tablet');
|
|
2536
|
-
this.isSmallScreen$ = this._dbxScreenMediaService.isBreakpointActive(this._breakpoint).pipe(map(x => !x), distinctUntilChanged(), shareReplay(1));
|
|
2982
|
+
this.isSmallScreen$ = this._dbxScreenMediaService.isBreakpointActive(this._breakpoint).pipe(map$1(x => !x), distinctUntilChanged(), shareReplay(1));
|
|
2537
2983
|
}
|
|
2538
2984
|
get small() {
|
|
2539
2985
|
return this._small;
|
|
@@ -2635,7 +3081,7 @@ DbxIconItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
2635
3081
|
</div>
|
|
2636
3082
|
</div>
|
|
2637
3083
|
</div>
|
|
2638
|
-
`, isInline: true, components: [{ type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i3
|
|
3084
|
+
`, isInline: true, components: [{ type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
2639
3085
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxIconItemComponent, decorators: [{
|
|
2640
3086
|
type: Component,
|
|
2641
3087
|
args: [{
|
|
@@ -2742,7 +3188,7 @@ DbxLoadingProgressComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.
|
|
|
2742
3188
|
</ng-container>
|
|
2743
3189
|
<div *ngIf="text" class="hint">{{ text }}</div>
|
|
2744
3190
|
</div>
|
|
2745
|
-
`, isInline: true, components: [{ type: i1$
|
|
3191
|
+
`, isInline: true, components: [{ type: i1$8.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { type: i2$2.MatProgressSpinner, selector: "mat-progress-spinner", inputs: ["color", "diameter", "strokeWidth", "mode", "value"], exportAs: ["matProgressSpinner"] }], directives: [{ type: i3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i3.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
2746
3192
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxLoadingProgressComponent, decorators: [{
|
|
2747
3193
|
type: Component,
|
|
2748
3194
|
args: [{
|
|
@@ -2788,7 +3234,7 @@ class DbxReadableErrorComponent {
|
|
|
2788
3234
|
}
|
|
2789
3235
|
}
|
|
2790
3236
|
DbxReadableErrorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxReadableErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2791
|
-
DbxReadableErrorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxReadableErrorComponent, selector: "dbx-error", inputs: { error: "error" }, ngImport: i0, template: "<div *ngIf=\"error\" class=\"dbx-error\">\n <h4>An error occured.</h4>\n <!-- <p class=\"dbx-error-code\" *ngIf=\"errorData.code\">{{ errorData.code }}</p> -->\n <p class=\"dbx-error-message\" *ngIf=\"message\">{{ message }}</p>\n</div>\n", directives: [{ type: i3
|
|
3237
|
+
DbxReadableErrorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxReadableErrorComponent, selector: "dbx-error", inputs: { error: "error" }, ngImport: i0, template: "<div *ngIf=\"error\" class=\"dbx-error\">\n <h4>An error occured.</h4>\n <!-- <p class=\"dbx-error-code\" *ngIf=\"errorData.code\">{{ errorData.code }}</p> -->\n <p class=\"dbx-error-message\" *ngIf=\"message\">{{ message }}</p>\n</div>\n", directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
2792
3238
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxReadableErrorComponent, decorators: [{
|
|
2793
3239
|
type: Component,
|
|
2794
3240
|
args: [{ selector: 'dbx-error', template: "<div *ngIf=\"error\" class=\"dbx-error\">\n <h4>An error occured.</h4>\n <!-- <p class=\"dbx-error-code\" *ngIf=\"errorData.code\">{{ errorData.code }}</p> -->\n <p class=\"dbx-error-message\" *ngIf=\"message\">{{ message }}</p>\n</div>\n" }]
|
|
@@ -2816,7 +3262,7 @@ class DbxBasicLoadingComponent {
|
|
|
2816
3262
|
this._error = new BehaviorSubject(undefined);
|
|
2817
3263
|
this._customErrorContent = new BehaviorSubject(undefined);
|
|
2818
3264
|
this._customLoadingContent = new BehaviorSubject(undefined);
|
|
2819
|
-
this.state$ = combineLatest([this._loading, this._show, this._error]).pipe(map(([loading, show, error]) => {
|
|
3265
|
+
this.state$ = combineLatest([this._loading, this._show, this._error]).pipe(map$1(([loading, show, error]) => {
|
|
2820
3266
|
let state;
|
|
2821
3267
|
if (error) {
|
|
2822
3268
|
state = LoadingComponentState.ERROR;
|
|
@@ -2833,8 +3279,8 @@ class DbxBasicLoadingComponent {
|
|
|
2833
3279
|
return state;
|
|
2834
3280
|
}), distinctUntilChanged(), startWith(LoadingComponentState.NONE), shareReplay(1));
|
|
2835
3281
|
this.error$ = this._error.asObservable();
|
|
2836
|
-
this.hasNoCustomError$ = this._customErrorContent.pipe(map(x => !checkNgContentWrapperHasContent(x)));
|
|
2837
|
-
this.hasNoCustomLoading$ = this._customLoadingContent.pipe(map(x => !checkNgContentWrapperHasContent(x)));
|
|
3282
|
+
this.hasNoCustomError$ = this._customErrorContent.pipe(map$1(x => !checkNgContentWrapperHasContent(x)));
|
|
3283
|
+
this.hasNoCustomLoading$ = this._customLoadingContent.pipe(map$1(x => !checkNgContentWrapperHasContent(x)));
|
|
2838
3284
|
this.mode = 'indeterminate';
|
|
2839
3285
|
this.color = 'primary';
|
|
2840
3286
|
this.linear = false;
|
|
@@ -2876,7 +3322,7 @@ class DbxBasicLoadingComponent {
|
|
|
2876
3322
|
}
|
|
2877
3323
|
}
|
|
2878
3324
|
DbxBasicLoadingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxBasicLoadingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2879
|
-
DbxBasicLoadingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxBasicLoadingComponent, selector: "dbx-basic-loading", inputs: { diameter: "diameter", mode: "mode", color: "color", text: "text", linear: "linear", show: "show", loading: "loading", error: "error" }, viewQueries: [{ propertyName: "customErrorContent", first: true, predicate: ["customError"], descendants: true }, { propertyName: "customLoadingContent", first: true, predicate: ["customLoading"], descendants: true }], ngImport: i0, template: "<ng-container [ngSwitch]=\"state$ | async\">\n <ng-container *ngSwitchCase=\"0\">\n <!-- Loading -->\n <ng-container *ngTemplateOutlet=\"loadingTemplate\"></ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"1\">\n <!-- Content -->\n <ng-content></ng-content>\n </ng-container>\n <ng-container *ngSwitchCase=\"2\">\n <!-- Error -->\n <ng-container *ngTemplateOutlet=\"errorTemplate\"></ng-container>\n </ng-container>\n</ng-container>\n\n<ng-template #loadingTemplate>\n <dbx-loading-progress *ngIf=\"hasNoCustomLoading$ | async\" [mode]=\"mode\" [color]=\"color\" [text]=\"text\"\n [linear]=\"linear\" [diameter]=\"diameter\"></dbx-loading-progress>\n <div #customLoading>\n <ng-content select=\"[loading]\"></ng-content>\n </div>\n</ng-template>\n\n<ng-template #errorTemplate>\n <dbx-error *ngIf=\"hasNoCustomError$ | async\" [error]=\"error$ | async\"></dbx-error>\n <div #customError>\n <ng-content select=\"[error]\"></ng-content>\n </div>\n <ng-content select=\"[errorAction]\"></ng-content>\n</ng-template>\n", components: [{ type: DbxLoadingProgressComponent, selector: "dbx-loading-progress", inputs: ["text", "linear", "mode", "color", "value", "bufferValue", "diameter"] }, { type: DbxReadableErrorComponent, selector: "dbx-error", inputs: ["error"] }], directives: [{ type: i3
|
|
3325
|
+
DbxBasicLoadingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxBasicLoadingComponent, selector: "dbx-basic-loading", inputs: { diameter: "diameter", mode: "mode", color: "color", text: "text", linear: "linear", show: "show", loading: "loading", error: "error" }, viewQueries: [{ propertyName: "customErrorContent", first: true, predicate: ["customError"], descendants: true }, { propertyName: "customLoadingContent", first: true, predicate: ["customLoading"], descendants: true }], ngImport: i0, template: "<ng-container [ngSwitch]=\"state$ | async\">\n <ng-container *ngSwitchCase=\"0\">\n <!-- Loading -->\n <ng-container *ngTemplateOutlet=\"loadingTemplate\"></ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"1\">\n <!-- Content -->\n <ng-content></ng-content>\n </ng-container>\n <ng-container *ngSwitchCase=\"2\">\n <!-- Error -->\n <ng-container *ngTemplateOutlet=\"errorTemplate\"></ng-container>\n </ng-container>\n</ng-container>\n\n<ng-template #loadingTemplate>\n <dbx-loading-progress *ngIf=\"hasNoCustomLoading$ | async\" [mode]=\"mode\" [color]=\"color\" [text]=\"text\"\n [linear]=\"linear\" [diameter]=\"diameter\"></dbx-loading-progress>\n <div #customLoading>\n <ng-content select=\"[loading]\"></ng-content>\n </div>\n</ng-template>\n\n<ng-template #errorTemplate>\n <dbx-error *ngIf=\"hasNoCustomError$ | async\" [error]=\"error$ | async\"></dbx-error>\n <div #customError>\n <ng-content select=\"[error]\"></ng-content>\n </div>\n <ng-content select=\"[errorAction]\"></ng-content>\n</ng-template>\n", components: [{ type: DbxLoadingProgressComponent, selector: "dbx-loading-progress", inputs: ["text", "linear", "mode", "color", "value", "bufferValue", "diameter"] }, { type: DbxReadableErrorComponent, selector: "dbx-error", inputs: ["error"] }], directives: [{ type: i3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i3.AsyncPipe } });
|
|
2880
3326
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxBasicLoadingComponent, decorators: [{
|
|
2881
3327
|
type: Component,
|
|
2882
3328
|
args: [{ selector: 'dbx-basic-loading', template: "<ng-container [ngSwitch]=\"state$ | async\">\n <ng-container *ngSwitchCase=\"0\">\n <!-- Loading -->\n <ng-container *ngTemplateOutlet=\"loadingTemplate\"></ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"1\">\n <!-- Content -->\n <ng-content></ng-content>\n </ng-container>\n <ng-container *ngSwitchCase=\"2\">\n <!-- Error -->\n <ng-container *ngTemplateOutlet=\"errorTemplate\"></ng-container>\n </ng-container>\n</ng-container>\n\n<ng-template #loadingTemplate>\n <dbx-loading-progress *ngIf=\"hasNoCustomLoading$ | async\" [mode]=\"mode\" [color]=\"color\" [text]=\"text\"\n [linear]=\"linear\" [diameter]=\"diameter\"></dbx-loading-progress>\n <div #customLoading>\n <ng-content select=\"[loading]\"></ng-content>\n </div>\n</ng-template>\n\n<ng-template #errorTemplate>\n <dbx-error *ngIf=\"hasNoCustomError$ | async\" [error]=\"error$ | async\"></dbx-error>\n <div #customError>\n <ng-content select=\"[error]\"></ng-content>\n </div>\n <ng-content select=\"[errorAction]\"></ng-content>\n</ng-template>\n" }]
|
|
@@ -2912,7 +3358,7 @@ class DbxLoadingComponent {
|
|
|
2912
3358
|
this._context = new BehaviorSubject(undefined);
|
|
2913
3359
|
this._inputLoading = new BehaviorSubject(true);
|
|
2914
3360
|
this._inputError = new BehaviorSubject(undefined);
|
|
2915
|
-
this.state$ = combineLatest([this._inputLoading, this._inputError, this._context.pipe(switchMap(x => (x != null) ? x.stream$ : of(undefined)))]).pipe(map(([inputLoading, inputError, loadingState]) => {
|
|
3361
|
+
this.state$ = combineLatest([this._inputLoading, this._inputError, this._context.pipe(switchMap(x => (x != null) ? x.stream$ : of(undefined)))]).pipe(map$1(([inputLoading, inputError, loadingState]) => {
|
|
2916
3362
|
if (loadingState) {
|
|
2917
3363
|
return loadingState;
|
|
2918
3364
|
}
|
|
@@ -2923,8 +3369,8 @@ class DbxLoadingComponent {
|
|
|
2923
3369
|
};
|
|
2924
3370
|
}
|
|
2925
3371
|
}), distinctUntilChanged((a, b) => a.loading === b.loading && a.error === b.error), shareReplay(1));
|
|
2926
|
-
this.loading$ = this.state$.pipe(map(x => x.loading), distinctUntilChanged(), shareReplay(1));
|
|
2927
|
-
this.error$ = this.state$.pipe(map(x => x.error), distinctUntilChanged(), shareReplay(1));
|
|
3372
|
+
this.loading$ = this.state$.pipe(map$1(x => x.loading), distinctUntilChanged(), shareReplay(1));
|
|
3373
|
+
this.error$ = this.state$.pipe(map$1(x => x.error), distinctUntilChanged(), shareReplay(1));
|
|
2928
3374
|
this.mode = 'indeterminate';
|
|
2929
3375
|
this.color = 'primary';
|
|
2930
3376
|
}
|
|
@@ -2960,7 +3406,7 @@ DbxLoadingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
|
|
|
2960
3406
|
<ng-content error select="[error]"></ng-content>
|
|
2961
3407
|
<ng-content errorAction select="[errorAction]"></ng-content>
|
|
2962
3408
|
</dbx-basic-loading>
|
|
2963
|
-
`, isInline: true, components: [{ type: DbxBasicLoadingComponent, selector: "dbx-basic-loading", inputs: ["diameter", "mode", "color", "text", "linear", "show", "loading", "error"] }], pipes: { "async": i3
|
|
3409
|
+
`, isInline: true, components: [{ type: DbxBasicLoadingComponent, selector: "dbx-basic-loading", inputs: ["diameter", "mode", "color", "text", "linear", "show", "loading", "error"] }], pipes: { "async": i3.AsyncPipe } });
|
|
2964
3410
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxLoadingComponent, decorators: [{
|
|
2965
3411
|
type: Component,
|
|
2966
3412
|
args: [{
|
|
@@ -3020,16 +3466,16 @@ class DbxListComponent {
|
|
|
3020
3466
|
this.context = new ListLoadingStateContextInstance({ showLoadingOnNoValue: false });
|
|
3021
3467
|
this.isEmpty$ = this.context.isEmpty$;
|
|
3022
3468
|
this.disabled$ = this._disabled.asObservable();
|
|
3023
|
-
this.hideOnEmpty$ = this._config.pipe(filterMaybe(), map(x => Boolean(x.hideOnEmpty)), distinctUntilChanged(), shareReplay(1));
|
|
3024
|
-
this.invertedList$ = this._config.pipe(filterMaybe(), map(x => Boolean(x?.throttle)), distinctUntilChanged(), shareReplay(1));
|
|
3025
|
-
this.throttleScroll$ = this._config.pipe(map(x => (x?.throttle) ?? this.DEFAULT_THROTTLE_SCROLL), distinctUntilChanged(), shareReplay(1));
|
|
3026
|
-
this.scrollDistance$ = this._config.pipe(map(x => (x?.scrollDistance) ?? this.DEFAULT_SCROLL_DISTANCE), distinctUntilChanged(), shareReplay(1));
|
|
3469
|
+
this.hideOnEmpty$ = this._config.pipe(filterMaybe(), map$1(x => Boolean(x.hideOnEmpty)), distinctUntilChanged(), shareReplay(1));
|
|
3470
|
+
this.invertedList$ = this._config.pipe(filterMaybe(), map$1(x => Boolean(x?.throttle)), distinctUntilChanged(), shareReplay(1));
|
|
3471
|
+
this.throttleScroll$ = this._config.pipe(map$1(x => (x?.throttle) ?? this.DEFAULT_THROTTLE_SCROLL), distinctUntilChanged(), shareReplay(1));
|
|
3472
|
+
this.scrollDistance$ = this._config.pipe(map$1(x => (x?.scrollDistance) ?? this.DEFAULT_SCROLL_DISTANCE), distinctUntilChanged(), shareReplay(1));
|
|
3027
3473
|
this.scrollLoadMoreTrigger$ = this._config.pipe(switchMap((config) => {
|
|
3028
3474
|
const loadNextDirection = config?.invertedList ? 'up' : 'down';
|
|
3029
|
-
return this._scrollTrigger.pipe(filter(x => x === loadNextDirection));
|
|
3475
|
+
return this._scrollTrigger.pipe(filter$1(x => x === loadNextDirection));
|
|
3030
3476
|
}));
|
|
3031
3477
|
this.loadMore$ = merge(this.scrollLoadMoreTrigger$, this._loadMoreTrigger);
|
|
3032
|
-
this.injectedComponentConfig$ = this._config.pipe(distinctUntilChanged(), map((config) => {
|
|
3478
|
+
this.injectedComponentConfig$ = this._config.pipe(distinctUntilChanged(), map$1((config) => {
|
|
3033
3479
|
let injectedComponentConfig;
|
|
3034
3480
|
if (config) {
|
|
3035
3481
|
const { componentClass, init, onClick, onSelectionChange, loadMore } = config;
|
|
@@ -3079,7 +3525,7 @@ class DbxListComponent {
|
|
|
3079
3525
|
}
|
|
3080
3526
|
return injectedComponentConfig;
|
|
3081
3527
|
}), distinctUntilChanged(), shareReplay(1));
|
|
3082
|
-
this.hideContent$ = this.context.stateChange$.pipe(switchMap(() => this.context.state$.pipe(filter((x) => loadingStateHasFinishedLoading(x)), first(), startWith(beginLoading()))), switchMap((state) => {
|
|
3528
|
+
this.hideContent$ = this.context.stateChange$.pipe(switchMap(() => this.context.state$.pipe(filter$1((x) => loadingStateHasFinishedLoading(x)), first(), startWith(beginLoading()))), switchMap((state) => {
|
|
3083
3529
|
if (state?.loading) {
|
|
3084
3530
|
return of(true);
|
|
3085
3531
|
}
|
|
@@ -3166,7 +3612,7 @@ class DbxListComponent {
|
|
|
3166
3612
|
}
|
|
3167
3613
|
}
|
|
3168
3614
|
DbxListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxListComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
3169
|
-
DbxListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxListComponent, selector: "dbx-list", inputs: { padded: "padded", state$: "state$", config: "config", disabled: "disabled" }, outputs: { contentScrolled: "contentScrolled" }, host: { properties: { "class.dbx-list-padded": "padded" }, classAttribute: "d-block dbx-list" }, ngImport: i0, template: "<dbx-loading [context]=\"context\" [linear]=\"true\"></dbx-loading>\n<div dbx-list-internal-content infinite-scroll [infiniteScrollDistance]=\"(scrollDistance$ | async) ?? DEFAULT_SCROLL_DISTANCE\"\n [infiniteScrollUpDistance]=\"(scrollDistance$ | async) ?? DEFAULT_SCROLL_DISTANCE\" [hide]=\"hideContent$ | async\"\n [infiniteScrollThrottle]=\"(throttleScroll$ | async) ?? DEFAULT_THROTTLE_SCROLL\" [scrollWindow]=\"false\"\n (scrolled)=\"onScrollDown()\" (scrolledUp)=\"onScrollUp()\">\n <ng-content select=\"[top]\"></ng-content>\n <dbx-injected-content [config]=\"injectedComponentConfig$ | async\"></dbx-injected-content>\n <ng-content select=\"[bottom]\"></ng-content>\n</div>\n<ng-content *ngIf=\"isEmpty$ | async\" select=\"[empty]\"></ng-content>\n", components: [{ type: i0.forwardRef(function () { return DbxLoadingComponent; }), selector: "dbx-loading", inputs: ["show", "text", "mode", "color", "diameter", "linear", "context", "loading", "error"] }, { type: i0.forwardRef(function () { return i1.DbxInjectedComponent; }), selector: "dbx-injected-content, [dbx-injected-content]", inputs: ["config", "template"] }], directives: [{ type: i0.forwardRef(function () { return DbxListInternalContentDirective; }), selector: "[dbx-list-internal-content]", inputs: ["hide"] }, { type: i0.forwardRef(function () { return i3$3.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
|
|
3615
|
+
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$3.InfiniteScrollDirective; }), selector: "[infiniteScroll], [infinite-scroll], [data-infinite-scroll]", inputs: ["infiniteScrollDistance", "infiniteScrollUpDistance", "infiniteScrollThrottle", "infiniteScrollDisabled", "infiniteScrollContainer", "scrollWindow", "immediateCheck", "horizontal", "alwaysCallback", "fromRoot"], outputs: ["scrolled", "scrolledUp"] }, { type: i0.forwardRef(function () { return i3.NgIf; }), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i0.forwardRef(function () { return i3.AsyncPipe; }) } });
|
|
3170
3616
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxListComponent, decorators: [{
|
|
3171
3617
|
type: Component,
|
|
3172
3618
|
args: [{ selector: 'dbx-list', host: {
|
|
@@ -3236,7 +3682,7 @@ class AbstractDbxListWrapperDirective {
|
|
|
3236
3682
|
constructor(initConfig) {
|
|
3237
3683
|
this.initConfig = initConfig;
|
|
3238
3684
|
this._init = new BehaviorSubject(undefined);
|
|
3239
|
-
this.config$ = this._init.pipe(filterMaybe(), getter(), map((x) => this._buildListConfig(x)), shareReplay(1));
|
|
3685
|
+
this.config$ = this._init.pipe(filterMaybe(), getter(), map$1((x) => this._buildListConfig(x)), shareReplay(1));
|
|
3240
3686
|
this.clickItem = new EventEmitter();
|
|
3241
3687
|
this.loadMore = new EventEmitter();
|
|
3242
3688
|
}
|
|
@@ -3306,7 +3752,7 @@ class DbxActionErrorDirective extends AbstractSubscriptionDirective {
|
|
|
3306
3752
|
});
|
|
3307
3753
|
}
|
|
3308
3754
|
}
|
|
3309
|
-
DbxActionErrorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionErrorDirective, deps: [{ token: DbxReadableErrorComponent, host: true }, { token: i1.
|
|
3755
|
+
DbxActionErrorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionErrorDirective, deps: [{ token: DbxReadableErrorComponent, host: true }, { token: i1$2.DbxActionContextStoreSourceInstance }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3310
3756
|
DbxActionErrorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: DbxActionErrorDirective, selector: "[dbxActionError]", usesInheritance: true, ngImport: i0 });
|
|
3311
3757
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionErrorDirective, decorators: [{
|
|
3312
3758
|
type: Directive,
|
|
@@ -3315,7 +3761,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
3315
3761
|
}]
|
|
3316
3762
|
}], ctorParameters: function () { return [{ type: DbxReadableErrorComponent, decorators: [{
|
|
3317
3763
|
type: Host
|
|
3318
|
-
}] }, { type: i1.
|
|
3764
|
+
}] }, { type: i1$2.DbxActionContextStoreSourceInstance }]; } });
|
|
3319
3765
|
|
|
3320
3766
|
/**
|
|
3321
3767
|
* Converts the error response to a POJO.
|
|
@@ -3443,19 +3889,51 @@ function catchErrorServerParams(action, mapError = (error) => error) {
|
|
|
3443
3889
|
return catchError$1((error) => of(action(mapError(convertServerErrorParams(error)))));
|
|
3444
3890
|
}
|
|
3445
3891
|
|
|
3892
|
+
/**
|
|
3893
|
+
* Context used for linking a loadingComponent to an ActionContext by providing a LoadingContext.
|
|
3894
|
+
*/
|
|
3895
|
+
class DbxActionLoadingContextDirective {
|
|
3896
|
+
constructor(loadingComponent, source) {
|
|
3897
|
+
this.loadingComponent = loadingComponent;
|
|
3898
|
+
this.source = source;
|
|
3899
|
+
this._context = new LoadingStateContextInstance({ obs: this.source.loadingState$ });
|
|
3900
|
+
}
|
|
3901
|
+
get context() {
|
|
3902
|
+
return this._context;
|
|
3903
|
+
}
|
|
3904
|
+
ngOnInit() {
|
|
3905
|
+
this.loadingComponent.context = this._context;
|
|
3906
|
+
}
|
|
3907
|
+
ngOnDestroy() {
|
|
3908
|
+
this._context.destroy();
|
|
3909
|
+
}
|
|
3910
|
+
}
|
|
3911
|
+
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 });
|
|
3912
|
+
DbxActionLoadingContextDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: DbxActionLoadingContextDirective, selector: "[dbxActionLoadingContext]", ngImport: i0 });
|
|
3913
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionLoadingContextDirective, decorators: [{
|
|
3914
|
+
type: Directive,
|
|
3915
|
+
args: [{
|
|
3916
|
+
selector: '[dbxActionLoadingContext]'
|
|
3917
|
+
}]
|
|
3918
|
+
}], ctorParameters: function () { return [{ type: DbxLoadingComponent, decorators: [{
|
|
3919
|
+
type: Host
|
|
3920
|
+
}] }, { type: i1$2.DbxActionContextStoreSourceInstance }]; } });
|
|
3921
|
+
|
|
3446
3922
|
class DbxLoadingModule {
|
|
3447
3923
|
}
|
|
3448
3924
|
DbxLoadingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxLoadingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3449
3925
|
DbxLoadingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxLoadingModule, declarations: [DbxLoadingComponent,
|
|
3450
3926
|
DbxBasicLoadingComponent,
|
|
3451
|
-
DbxLoadingProgressComponent
|
|
3927
|
+
DbxLoadingProgressComponent,
|
|
3928
|
+
DbxActionLoadingContextDirective], imports: [CommonModule,
|
|
3452
3929
|
DbxReadableErrorModule,
|
|
3453
3930
|
MatProgressSpinnerModule,
|
|
3454
3931
|
MatProgressBarModule], exports: [DbxLoadingComponent,
|
|
3455
3932
|
DbxBasicLoadingComponent,
|
|
3456
3933
|
DbxLoadingProgressComponent,
|
|
3457
3934
|
MatProgressSpinnerModule,
|
|
3458
|
-
MatProgressBarModule
|
|
3935
|
+
MatProgressBarModule,
|
|
3936
|
+
DbxActionLoadingContextDirective] });
|
|
3459
3937
|
DbxLoadingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxLoadingModule, imports: [[
|
|
3460
3938
|
CommonModule,
|
|
3461
3939
|
DbxReadableErrorModule,
|
|
@@ -3475,14 +3953,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
3475
3953
|
declarations: [
|
|
3476
3954
|
DbxLoadingComponent,
|
|
3477
3955
|
DbxBasicLoadingComponent,
|
|
3478
|
-
DbxLoadingProgressComponent
|
|
3956
|
+
DbxLoadingProgressComponent,
|
|
3957
|
+
DbxActionLoadingContextDirective
|
|
3479
3958
|
],
|
|
3480
3959
|
exports: [
|
|
3481
3960
|
DbxLoadingComponent,
|
|
3482
3961
|
DbxBasicLoadingComponent,
|
|
3483
3962
|
DbxLoadingProgressComponent,
|
|
3484
3963
|
MatProgressSpinnerModule,
|
|
3485
|
-
MatProgressBarModule
|
|
3964
|
+
MatProgressBarModule,
|
|
3965
|
+
DbxActionLoadingContextDirective
|
|
3486
3966
|
]
|
|
3487
3967
|
}]
|
|
3488
3968
|
}] });
|
|
@@ -3502,7 +3982,7 @@ function ProvideDbxListView(sourceType) {
|
|
|
3502
3982
|
const DBX_VALUE_LIST_VIEW_ITEM = new InjectionToken('DbxValueListViewItem');
|
|
3503
3983
|
const DEFAULT_DBX_VALUE_LIST_CONFIG_MAP_VALUES = (values) => of(values.map(value => ({ value })));
|
|
3504
3984
|
function mapValuesToValuesListItemConfigObs(listViewConfig, values) {
|
|
3505
|
-
return (listViewConfig.mapValuesToItemValues ?? DEFAULT_DBX_VALUE_LIST_CONFIG_MAP_VALUES)(values).pipe(map((itemValues) => {
|
|
3985
|
+
return (listViewConfig.mapValuesToItemValues ?? DEFAULT_DBX_VALUE_LIST_CONFIG_MAP_VALUES)(values).pipe(map$1((itemValues) => {
|
|
3506
3986
|
const items = mapItemValuesToValueListItemConfig(listViewConfig, itemValues);
|
|
3507
3987
|
return items;
|
|
3508
3988
|
}));
|
|
@@ -3561,13 +4041,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
3561
4041
|
class DbxSelectionValueListViewComponent extends AbstractDbxValueListViewDirective {
|
|
3562
4042
|
constructor(dbxListView) {
|
|
3563
4043
|
super(dbxListView);
|
|
3564
|
-
this.multiple$ = this.config$.pipe(map(x => x.multiple ?? true), distinctUntilChanged(), shareReplay(1));
|
|
4044
|
+
this.multiple$ = this.config$.pipe(map$1(x => x.multiple ?? true), distinctUntilChanged(), shareReplay(1));
|
|
3565
4045
|
}
|
|
3566
4046
|
}
|
|
3567
4047
|
DbxSelectionValueListViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSelectionValueListViewComponent, deps: [{ token: DbxListView }], target: i0.ɵɵFactoryTarget.Component });
|
|
3568
4048
|
DbxSelectionValueListViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxSelectionValueListViewComponent, selector: "dbx-selection-list-view", usesInheritance: true, ngImport: i0, template: `
|
|
3569
4049
|
<dbx-selection-list-view-content [multiple]="multiple$ | async" [items]="items$ | async"></dbx-selection-list-view-content>
|
|
3570
|
-
`, isInline: true, components: [{ type: i0.forwardRef(function () { return DbxSelectionValueListItemViewComponent; }), selector: "dbx-selection-list-view-content", inputs: ["multiple", "items"] }], pipes: { "async": i0.forwardRef(function () { return i3
|
|
4050
|
+
`, isInline: true, components: [{ type: i0.forwardRef(function () { return DbxSelectionValueListItemViewComponent; }), selector: "dbx-selection-list-view-content", inputs: ["multiple", "items"] }], pipes: { "async": i0.forwardRef(function () { return i3.AsyncPipe; }) } });
|
|
3571
4051
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSelectionValueListViewComponent, decorators: [{
|
|
3572
4052
|
type: Component,
|
|
3573
4053
|
args: [{
|
|
@@ -3610,7 +4090,7 @@ DbxSelectionValueListItemViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVe
|
|
|
3610
4090
|
<div dbx-injected-content [config]="item.config"></div>
|
|
3611
4091
|
</mat-list-option>
|
|
3612
4092
|
</mat-selection-list>
|
|
3613
|
-
`, isInline: true, components: [{ type: i1$
|
|
4093
|
+
`, isInline: true, components: [{ type: i1$5.MatSelectionList, selector: "mat-selection-list", inputs: ["disableRipple", "tabIndex", "color", "compareWith", "disabled", "multiple"], outputs: ["selectionChange"], exportAs: ["matSelectionList"] }, { type: i1$5.MatListOption, selector: "mat-list-option", inputs: ["disableRipple", "checkboxPosition", "color", "value", "disabled", "selected"], outputs: ["selectedChange"], exportAs: ["matListOption"] }, { type: i3$1.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$5.MatListIconCssMatStyler, selector: "[mat-list-icon], [matListIcon]" }], pipes: { "async": i3.AsyncPipe } });
|
|
3614
4094
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSelectionValueListItemViewComponent, decorators: [{
|
|
3615
4095
|
type: Component,
|
|
3616
4096
|
args: [{
|
|
@@ -3639,7 +4119,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
3639
4119
|
class DbxValueListViewComponent extends AbstractDbxValueListViewDirective {
|
|
3640
4120
|
constructor() {
|
|
3641
4121
|
super(...arguments);
|
|
3642
|
-
this.emitAllClicks$ = this.config$.pipe(map(x => x.emitAllClicks), shareReplay(1));
|
|
4122
|
+
this.emitAllClicks$ = this.config$.pipe(map$1(x => x.emitAllClicks), shareReplay(1));
|
|
3643
4123
|
}
|
|
3644
4124
|
onClickItem(item) {
|
|
3645
4125
|
// do not emit clicks for disabled items.
|
|
@@ -3663,7 +4143,7 @@ DbxValueListViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
|
|
|
3663
4143
|
</a>
|
|
3664
4144
|
</dbx-anchor>
|
|
3665
4145
|
</mat-nav-list>
|
|
3666
|
-
`, isInline: true, components: [{ type: i1$
|
|
4146
|
+
`, isInline: true, components: [{ type: i1$5.MatNavList, selector: "mat-nav-list", inputs: ["disableRipple", "disabled"], exportAs: ["matNavList"] }, { type: DbxAnchorComponent, selector: "dbx-anchor, [dbx-anchor]", inputs: ["block"] }, { type: i1$5.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["disableRipple", "disabled"], exportAs: ["matListItem"] }, { type: i3$1.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$5.MatListIconCssMatStyler, selector: "[mat-list-icon], [matListIcon]" }], pipes: { "async": i3.AsyncPipe } });
|
|
3667
4147
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxValueListViewComponent, decorators: [{
|
|
3668
4148
|
type: Component,
|
|
3669
4149
|
args: [{
|
|
@@ -3837,11 +4317,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
3837
4317
|
* Component used to style a section's header.
|
|
3838
4318
|
*/
|
|
3839
4319
|
class DbxSectionHeaderComponent {
|
|
4320
|
+
get showTitle() {
|
|
4321
|
+
return Boolean(this.header || this.icon);
|
|
4322
|
+
}
|
|
3840
4323
|
}
|
|
3841
4324
|
DbxSectionHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSectionHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3842
4325
|
DbxSectionHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxSectionHeaderComponent, selector: ".dbx-section-header", inputs: { h: "h", header: "header", icon: "icon", hint: "hint" }, ngImport: i0, template: `
|
|
3843
4326
|
<div class="dbx-section-header-content">
|
|
3844
|
-
<ng-container [ngSwitch]="h ?? 1">
|
|
4327
|
+
<ng-container [ngSwitch]="showTitle && (h ?? 1)">
|
|
3845
4328
|
<h1 *ngSwitchCase="1" class="dbx-section-header-content-title">
|
|
3846
4329
|
<ng-container *ngTemplateOutlet="headerContentTitleTemplate"></ng-container>
|
|
3847
4330
|
</h1>
|
|
@@ -3865,14 +4348,14 @@ DbxSectionHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
|
|
|
3865
4348
|
<ng-template #headerContentTitleTemplate>
|
|
3866
4349
|
<mat-icon *ngIf="icon">{{icon}}</mat-icon><span class="title-text">{{ header }}</span>
|
|
3867
4350
|
</ng-template>
|
|
3868
|
-
`, isInline: true, components: [{ type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i3
|
|
4351
|
+
`, isInline: true, components: [{ type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
3869
4352
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSectionHeaderComponent, decorators: [{
|
|
3870
4353
|
type: Component,
|
|
3871
4354
|
args: [{
|
|
3872
4355
|
selector: '.dbx-section-header',
|
|
3873
4356
|
template: `
|
|
3874
4357
|
<div class="dbx-section-header-content">
|
|
3875
|
-
<ng-container [ngSwitch]="h ?? 1">
|
|
4358
|
+
<ng-container [ngSwitch]="showTitle && (h ?? 1)">
|
|
3876
4359
|
<h1 *ngSwitchCase="1" class="dbx-section-header-content-title">
|
|
3877
4360
|
<ng-container *ngTemplateOutlet="headerContentTitleTemplate"></ng-container>
|
|
3878
4361
|
</h1>
|
|
@@ -3978,7 +4461,7 @@ DbxIntroActionSectionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
|
3978
4461
|
<ng-content></ng-content>
|
|
3979
4462
|
</ng-container>
|
|
3980
4463
|
</div>
|
|
3981
|
-
`, isInline: true, components: [{ type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i3
|
|
4464
|
+
`, isInline: true, components: [{ type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }] });
|
|
3982
4465
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxIntroActionSectionComponent, decorators: [{
|
|
3983
4466
|
type: Component,
|
|
3984
4467
|
args: [{
|
|
@@ -4126,7 +4609,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
4126
4609
|
class DbxStepComponent {
|
|
4127
4610
|
}
|
|
4128
4611
|
DbxStepComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxStepComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4129
|
-
DbxStepComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxStepComponent, selector: "dbx-step", inputs: { done: "done", step: "step", text: "text", hint: "hint" }, ngImport: i0, template: "<div class=\"step-section\" [ngClass]=\"(done) ? 'done' : ''\">\n <div class=\"step-section-header\">\n <span class=\"step\">{{ step }}.</span>\n <mat-icon class=\"done-check\" *ngIf=\"done\">done</mat-icon>\n <span class=\"text\">{{ text }}</span>\n <p *ngIf=\"hint\" class=\"hint\">{{ hint }}</p>\n </div>\n <div class=\"step-section-content\">\n <ng-content></ng-content>\n </div>\n</div>\n", components: [{ type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i3
|
|
4612
|
+
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: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
4130
4613
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxStepComponent, decorators: [{
|
|
4131
4614
|
type: Component,
|
|
4132
4615
|
args: [{ selector: 'dbx-step', template: "<div class=\"step-section\" [ngClass]=\"(done) ? 'done' : ''\">\n <div class=\"step-section-header\">\n <span class=\"step\">{{ step }}.</span>\n <mat-icon class=\"done-check\" *ngIf=\"done\">done</mat-icon>\n <span class=\"text\">{{ text }}</span>\n <p *ngIf=\"hint\" class=\"hint\">{{ hint }}</p>\n </div>\n <div class=\"step-section-content\">\n <ng-content></ng-content>\n </div>\n</div>\n" }]
|
|
@@ -4180,6 +4663,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
4180
4663
|
}]
|
|
4181
4664
|
}] });
|
|
4182
4665
|
|
|
4666
|
+
/**
|
|
4667
|
+
* Icon spacer directive.
|
|
4668
|
+
*/
|
|
4669
|
+
class DbxIconSpacerDirective {
|
|
4670
|
+
}
|
|
4671
|
+
DbxIconSpacerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxIconSpacerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4672
|
+
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 });
|
|
4673
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxIconSpacerDirective, decorators: [{
|
|
4674
|
+
type: Directive,
|
|
4675
|
+
args: [{
|
|
4676
|
+
selector: 'dbx-icon-spacer,dbxIconSpacer',
|
|
4677
|
+
host: {
|
|
4678
|
+
class: 'dbx-icon-spacer d-inline'
|
|
4679
|
+
}
|
|
4680
|
+
}]
|
|
4681
|
+
}] });
|
|
4682
|
+
|
|
4183
4683
|
class DbxLabelComponent {
|
|
4184
4684
|
}
|
|
4185
4685
|
DbxLabelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxLabelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -4202,13 +4702,13 @@ class DbxLinkifyComponent {
|
|
|
4202
4702
|
constructor(sanitizer) {
|
|
4203
4703
|
this.sanitizer = sanitizer;
|
|
4204
4704
|
this._text = new BehaviorSubject('');
|
|
4205
|
-
this.linkifiedText$ = this._text.pipe(distinctUntilChanged$1(), map
|
|
4705
|
+
this.linkifiedText$ = this._text.pipe(distinctUntilChanged$1(), map(x => linkifyStr(x, {
|
|
4206
4706
|
defaultProtocol: 'https',
|
|
4207
4707
|
target: {
|
|
4208
4708
|
url: '_blank'
|
|
4209
4709
|
}
|
|
4210
4710
|
})), shareReplay$1(1));
|
|
4211
|
-
this.linkifiedBody$ = this.linkifiedText$.pipe(map
|
|
4711
|
+
this.linkifiedBody$ = this.linkifiedText$.pipe(map(x => {
|
|
4212
4712
|
return this.sanitizer.bypassSecurityTrustHtml(x);
|
|
4213
4713
|
}), shareReplay$1(1));
|
|
4214
4714
|
}
|
|
@@ -4222,15 +4722,15 @@ class DbxLinkifyComponent {
|
|
|
4222
4722
|
this._text.next(text);
|
|
4223
4723
|
}
|
|
4224
4724
|
}
|
|
4225
|
-
DbxLinkifyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxLinkifyComponent, deps: [{ token: i1$
|
|
4226
|
-
DbxLinkifyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxLinkifyComponent, selector: "dbx-linkify", inputs: { text: "text" }, ngImport: i0, template: `<span class="dbx-linkify" [innerHTML]="linkifiedBody$ | async"></span>`, isInline: true, pipes: { "async": i3
|
|
4725
|
+
DbxLinkifyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxLinkifyComponent, deps: [{ token: i1$9.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component });
|
|
4726
|
+
DbxLinkifyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxLinkifyComponent, selector: "dbx-linkify", inputs: { text: "text" }, ngImport: i0, template: `<span class="dbx-linkify" [innerHTML]="linkifiedBody$ | async"></span>`, isInline: true, pipes: { "async": i3.AsyncPipe } });
|
|
4227
4727
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxLinkifyComponent, decorators: [{
|
|
4228
4728
|
type: Component,
|
|
4229
4729
|
args: [{
|
|
4230
4730
|
selector: 'dbx-linkify',
|
|
4231
4731
|
template: `<span class="dbx-linkify" [innerHTML]="linkifiedBody$ | async"></span>`
|
|
4232
4732
|
}]
|
|
4233
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
4733
|
+
}], ctorParameters: function () { return [{ type: i1$9.DomSanitizer }]; }, propDecorators: { text: [{
|
|
4234
4734
|
type: Input
|
|
4235
4735
|
}] } });
|
|
4236
4736
|
|
|
@@ -4303,7 +4803,7 @@ DbxTextChipsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
4303
4803
|
{{chip.text}}
|
|
4304
4804
|
</mat-chip>
|
|
4305
4805
|
</mat-chip-list>
|
|
4306
|
-
`, isInline: true, components: [{ type: i1$
|
|
4806
|
+
`, isInline: true, components: [{ type: i1$a.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$a.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$4.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }] });
|
|
4307
4807
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxTextChipsComponent, decorators: [{
|
|
4308
4808
|
type: Component,
|
|
4309
4809
|
args: [{
|
|
@@ -4346,7 +4846,8 @@ DbxTextModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version:
|
|
|
4346
4846
|
DbxLabelComponent,
|
|
4347
4847
|
DbxLinkifyComponent,
|
|
4348
4848
|
DbxOkComponent,
|
|
4349
|
-
DbxTextChipsComponent
|
|
4849
|
+
DbxTextChipsComponent,
|
|
4850
|
+
DbxIconSpacerDirective], imports: [CommonModule,
|
|
4350
4851
|
MatChipsModule,
|
|
4351
4852
|
MatTooltipModule,
|
|
4352
4853
|
MatIconModule], exports: [DbxNoteComponent,
|
|
@@ -4357,7 +4858,8 @@ DbxTextModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version:
|
|
|
4357
4858
|
DbxLabelComponent,
|
|
4358
4859
|
DbxLinkifyComponent,
|
|
4359
4860
|
DbxOkComponent,
|
|
4360
|
-
DbxTextChipsComponent
|
|
4861
|
+
DbxTextChipsComponent,
|
|
4862
|
+
DbxIconSpacerDirective] });
|
|
4361
4863
|
DbxTextModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxTextModule, imports: [[
|
|
4362
4864
|
CommonModule,
|
|
4363
4865
|
MatChipsModule,
|
|
@@ -4382,7 +4884,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
4382
4884
|
DbxLabelComponent,
|
|
4383
4885
|
DbxLinkifyComponent,
|
|
4384
4886
|
DbxOkComponent,
|
|
4385
|
-
DbxTextChipsComponent
|
|
4887
|
+
DbxTextChipsComponent,
|
|
4888
|
+
DbxIconSpacerDirective
|
|
4386
4889
|
],
|
|
4387
4890
|
exports: [
|
|
4388
4891
|
DbxNoteComponent,
|
|
@@ -4393,7 +4896,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
4393
4896
|
DbxLabelComponent,
|
|
4394
4897
|
DbxLinkifyComponent,
|
|
4395
4898
|
DbxOkComponent,
|
|
4396
|
-
DbxTextChipsComponent
|
|
4899
|
+
DbxTextChipsComponent,
|
|
4900
|
+
DbxIconSpacerDirective
|
|
4397
4901
|
],
|
|
4398
4902
|
}]
|
|
4399
4903
|
}] });
|
|
@@ -4498,7 +5002,7 @@ class DbxPopoverCoordinatorComponent {
|
|
|
4498
5002
|
constructor(service, popover) {
|
|
4499
5003
|
this.service = service;
|
|
4500
5004
|
this.popover = popover;
|
|
4501
|
-
this.isPopoverForKey$ = this.service.popovers$.pipe(map
|
|
5005
|
+
this.isPopoverForKey$ = this.service.popovers$.pipe(map(x => x.get(this.popover.key) === this.popover), shareReplay$1(1));
|
|
4502
5006
|
this.show$ = this.isPopoverForKey$.pipe(delay$1(0));
|
|
4503
5007
|
}
|
|
4504
5008
|
ngOnInit() {
|
|
@@ -4513,7 +5017,7 @@ DbxPopoverCoordinatorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
|
4513
5017
|
<ng-container *ngIf="show$ | async">
|
|
4514
5018
|
<ng-content></ng-content>
|
|
4515
5019
|
</ng-container>
|
|
4516
|
-
`, isInline: true, directives: [{ type: i3
|
|
5020
|
+
`, isInline: true, directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i3.AsyncPipe } });
|
|
4517
5021
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverCoordinatorComponent, decorators: [{
|
|
4518
5022
|
type: Component,
|
|
4519
5023
|
args: [{
|
|
@@ -4588,8 +5092,8 @@ class DbxPopoverComponent extends AbstractTransitionWatcherDirective {
|
|
|
4588
5092
|
this._startedClosing = false;
|
|
4589
5093
|
this._closing = new Subject();
|
|
4590
5094
|
this._triggerCloseKeys = [];
|
|
4591
|
-
this.isClosing$ = this._closing.pipe(first$1(), map
|
|
4592
|
-
this.closing$ = this.isClosing$.pipe(filter
|
|
5095
|
+
this.isClosing$ = this._closing.pipe(first$1(), map(x => true), startWith$1(false), shareReplay$1(1));
|
|
5096
|
+
this.closing$ = this.isClosing$.pipe(filter(x => x));
|
|
4593
5097
|
// Override Close to properly signal to listeners when a close is occuring.
|
|
4594
5098
|
const originalClose = this.popoverRef.close;
|
|
4595
5099
|
this.popoverRef.close = (x) => {
|
|
@@ -4658,7 +5162,7 @@ class DbxPopoverComponent extends AbstractTransitionWatcherDirective {
|
|
|
4658
5162
|
this.close();
|
|
4659
5163
|
}
|
|
4660
5164
|
}
|
|
4661
|
-
DbxPopoverComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverComponent, deps: [{ token: i1$
|
|
5165
|
+
DbxPopoverComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverComponent, deps: [{ token: i1$b.NgPopoverRef }, { token: CompactContextStore }, { token: i1$2.DbxRouterTransitionService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
4662
5166
|
DbxPopoverComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxPopoverComponent, selector: "ng-component", providers: [{
|
|
4663
5167
|
provide: DbxPopoverController,
|
|
4664
5168
|
useExisting: DbxPopoverComponent
|
|
@@ -4668,7 +5172,7 @@ DbxPopoverComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
|
|
|
4668
5172
|
<dbx-popover-coordinator (dbxWindowKeyDownListener)="handleKeydown($event)" [appWindowKeyDownFilter]="triggerCloseKeys">
|
|
4669
5173
|
<div dbx-style class="dbx-popover-component" dbx-injected-content [config]="contentConfig"></div>
|
|
4670
5174
|
</dbx-popover-coordinator>
|
|
4671
|
-
`, isInline: true, components: [{ type: DbxPopoverCoordinatorComponent, selector: "dbx-popover-coordinator" }, { type: i1.DbxInjectedComponent, selector: "dbx-injected-content, [dbx-injected-content]", inputs: ["config", "template"] }], directives: [{ type: DbxWindowKeyDownListenerDirective, selector: "[dbxWindowKeyDownListener]", inputs: ["appWindowKeyDownEnabled", "appWindowKeyDownFilter"], outputs: ["dbxWindowKeyDownListener"] }, { type: DbxStyleDirective, selector: "dbx-style, [dbx-style], .dbx-style" }] });
|
|
5175
|
+
`, isInline: true, components: [{ type: DbxPopoverCoordinatorComponent, selector: "dbx-popover-coordinator" }, { type: i1$2.DbxInjectedComponent, selector: "dbx-injected-content, [dbx-injected-content]", inputs: ["config", "template"] }], directives: [{ type: DbxWindowKeyDownListenerDirective, selector: "[dbxWindowKeyDownListener]", inputs: ["appWindowKeyDownEnabled", "appWindowKeyDownFilter"], outputs: ["dbxWindowKeyDownListener"] }, { type: DbxStyleDirective, selector: "dbx-style, [dbx-style], .dbx-style" }] });
|
|
4672
5176
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverComponent, decorators: [{
|
|
4673
5177
|
type: Component,
|
|
4674
5178
|
args: [{
|
|
@@ -4684,7 +5188,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
4684
5188
|
provide: CompactContextStore
|
|
4685
5189
|
}]
|
|
4686
5190
|
}]
|
|
4687
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
5191
|
+
}], ctorParameters: function () { return [{ type: i1$b.NgPopoverRef }, { type: CompactContextStore }, { type: i1$2.DbxRouterTransitionService }, { type: i0.NgZone }]; } });
|
|
4688
5192
|
|
|
4689
5193
|
/**
|
|
4690
5194
|
* Used for displaying a popover.
|
|
@@ -4719,11 +5223,11 @@ class DbxPopoverService {
|
|
|
4719
5223
|
});
|
|
4720
5224
|
}
|
|
4721
5225
|
}
|
|
4722
|
-
DbxPopoverService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverService, deps: [{ token: i1$
|
|
5226
|
+
DbxPopoverService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverService, deps: [{ token: i1$c.Overlay }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4723
5227
|
DbxPopoverService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverService });
|
|
4724
5228
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverService, decorators: [{
|
|
4725
5229
|
type: Injectable
|
|
4726
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
5230
|
+
}], ctorParameters: function () { return [{ type: i1$c.Overlay }, { type: i0.Injector }]; } });
|
|
4727
5231
|
|
|
4728
5232
|
/**
|
|
4729
5233
|
* Abstract popover directive.
|
|
@@ -4770,7 +5274,7 @@ DbxPopoverContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
|
|
|
4770
5274
|
<ng-content></ng-content>
|
|
4771
5275
|
</div>
|
|
4772
5276
|
</div>
|
|
4773
|
-
`, isInline: true, directives: [{ type: i1$
|
|
5277
|
+
`, isInline: true, directives: [{ type: i1$7.ResizedDirective, selector: "[resized]", outputs: ["resized"] }], pipes: { "async": i3.AsyncPipe } });
|
|
4774
5278
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverContentComponent, decorators: [{
|
|
4775
5279
|
type: Component,
|
|
4776
5280
|
args: [{
|
|
@@ -4806,7 +5310,7 @@ DbxPopoverHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
|
|
|
4806
5310
|
</div>
|
|
4807
5311
|
</div>
|
|
4808
5312
|
<mat-divider></mat-divider>
|
|
4809
|
-
`, isInline: true, components: [{ type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i4.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }], directives: [{ type: i3
|
|
5313
|
+
`, isInline: true, components: [{ type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i4.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
4810
5314
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverHeaderComponent, decorators: [{
|
|
4811
5315
|
type: Component,
|
|
4812
5316
|
args: [{
|
|
@@ -4883,7 +5387,7 @@ class DbxFilterPopoverComponent extends AbstractPopoverDirective {
|
|
|
4883
5387
|
this.showSwitchButtons = Boolean(this.config.customFilterComponentClass && this.config.presetFilterComponentClass);
|
|
4884
5388
|
this._showPreset = new BehaviorSubject(false);
|
|
4885
5389
|
this.showPreset$ = this._showPreset.asObservable();
|
|
4886
|
-
this.config$ = this._showPreset.pipe(map((showPreset) => {
|
|
5390
|
+
this.config$ = this._showPreset.pipe(map$1((showPreset) => {
|
|
4887
5391
|
const { connector, initialFilterObs, customFilterComponentClass, presetFilterComponentClass } = this.config;
|
|
4888
5392
|
let componentClass;
|
|
4889
5393
|
if (showPreset) {
|
|
@@ -4945,7 +5449,7 @@ class DbxFilterPopoverComponent extends AbstractPopoverDirective {
|
|
|
4945
5449
|
}
|
|
4946
5450
|
}
|
|
4947
5451
|
DbxFilterPopoverComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxFilterPopoverComponent, deps: [{ token: DbxPopoverComponent }], target: i0.ɵɵFactoryTarget.Component });
|
|
4948
|
-
DbxFilterPopoverComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxFilterPopoverComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<dbx-popover-content>\n <!-- Header -->\n <dbx-popover-header icon=\"filter\" header=\"Filter\">\n <ng-container *ngIf=\"showSwitchButtons\" [ngSwitch]=\"showPreset$ | async\">\n <button *ngSwitchCase=\"true\" mat-flat-button color=\"accent\" (click)=\"showCustom()\">Custom</button>\n <button *ngSwitchCase=\"false\" mat-flat-button color=\"accent\" (click)=\"showPresets()\">Presets</button>\n </ng-container>\n </dbx-popover-header>\n <!-- Content -->\n <dbx-popover-scroll-content>\n <dbx-injected-content [config]=\"config$ | async\"></dbx-injected-content>\n </dbx-popover-scroll-content>\n</dbx-popover-content>\n", components: [{ type: DbxPopoverContentComponent, selector: "dbx-popover-content" }, { type: DbxPopoverHeaderComponent, selector: "dbx-popover-header", inputs: ["header", "icon"] }, { type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: DbxPopoverScrollContentComponent, selector: "dbx-popover-scroll-content" }, { type: i1.DbxInjectedComponent, selector: "dbx-injected-content, [dbx-injected-content]", inputs: ["config", "template"] }], directives: [{ type: i3
|
|
5452
|
+
DbxFilterPopoverComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxFilterPopoverComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<dbx-popover-content>\n <!-- Header -->\n <dbx-popover-header icon=\"filter\" header=\"Filter\">\n <ng-container *ngIf=\"showSwitchButtons\" [ngSwitch]=\"showPreset$ | async\">\n <button *ngSwitchCase=\"true\" mat-flat-button color=\"accent\" (click)=\"showCustom()\">Custom</button>\n <button *ngSwitchCase=\"false\" mat-flat-button color=\"accent\" (click)=\"showPresets()\">Presets</button>\n </ng-container>\n </dbx-popover-header>\n <!-- Content -->\n <dbx-popover-scroll-content>\n <dbx-injected-content [config]=\"config$ | async\"></dbx-injected-content>\n </dbx-popover-scroll-content>\n</dbx-popover-content>\n", components: [{ type: DbxPopoverContentComponent, selector: "dbx-popover-content" }, { type: DbxPopoverHeaderComponent, selector: "dbx-popover-header", inputs: ["header", "icon"] }, { type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: DbxPopoverScrollContentComponent, selector: "dbx-popover-scroll-content" }, { type: i1$2.DbxInjectedComponent, selector: "dbx-injected-content, [dbx-injected-content]", inputs: ["config", "template"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }], pipes: { "async": i3.AsyncPipe } });
|
|
4949
5453
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxFilterPopoverComponent, decorators: [{
|
|
4950
5454
|
type: Component,
|
|
4951
5455
|
args: [{ template: "<dbx-popover-content>\n <!-- Header -->\n <dbx-popover-header icon=\"filter\" header=\"Filter\">\n <ng-container *ngIf=\"showSwitchButtons\" [ngSwitch]=\"showPreset$ | async\">\n <button *ngSwitchCase=\"true\" mat-flat-button color=\"accent\" (click)=\"showCustom()\">Custom</button>\n <button *ngSwitchCase=\"false\" mat-flat-button color=\"accent\" (click)=\"showPresets()\">Presets</button>\n </ng-container>\n </dbx-popover-header>\n <!-- Content -->\n <dbx-popover-scroll-content>\n <dbx-injected-content [config]=\"config$ | async\"></dbx-injected-content>\n </dbx-popover-scroll-content>\n</dbx-popover-content>\n" }]
|
|
@@ -4994,7 +5498,7 @@ DbxFilterPopoverButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion:
|
|
|
4994
5498
|
<button #button mat-icon-button (click)="showFilterPopover()" matTooltip="Filter" matTooltipPosition="above">
|
|
4995
5499
|
<mat-icon>filter_list</mat-icon>
|
|
4996
5500
|
</button>
|
|
4997
|
-
`, isInline: true, components: [{ type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] });
|
|
5501
|
+
`, 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: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] });
|
|
4998
5502
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxFilterPopoverButtonComponent, decorators: [{
|
|
4999
5503
|
type: Component,
|
|
5000
5504
|
args: [{
|
|
@@ -5035,107 +5539,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
5035
5539
|
}] }]; } });
|
|
5036
5540
|
|
|
5037
5541
|
/**
|
|
5038
|
-
*
|
|
5039
|
-
*/
|
|
5040
|
-
class AbstractPopoverRefDirective extends AbstractSubscriptionDirective {
|
|
5041
|
-
showPopover() {
|
|
5042
|
-
if (!this._popoverRef) {
|
|
5043
|
-
this._showPopoverRef();
|
|
5044
|
-
}
|
|
5045
|
-
}
|
|
5046
|
-
_showPopoverRef() {
|
|
5047
|
-
this._popoverRef = this._makePopoverRef();
|
|
5048
|
-
this._afterOpened(this._popoverRef);
|
|
5049
|
-
this.sub = this._popoverRef.afterClosed$.subscribe((x) => {
|
|
5050
|
-
this._afterClosed(x);
|
|
5051
|
-
this._popoverRef = undefined;
|
|
5052
|
-
});
|
|
5053
|
-
}
|
|
5054
|
-
_afterOpened(popoverRef) {
|
|
5055
|
-
// Do nothing.
|
|
5056
|
-
}
|
|
5057
|
-
_afterClosed(value) {
|
|
5058
|
-
// Do nothing.
|
|
5059
|
-
}
|
|
5060
|
-
}
|
|
5061
|
-
AbstractPopoverRefDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: AbstractPopoverRefDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
5062
|
-
AbstractPopoverRefDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: AbstractPopoverRefDirective, usesInheritance: true, ngImport: i0 });
|
|
5063
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: AbstractPopoverRefDirective, decorators: [{
|
|
5064
|
-
type: Directive
|
|
5065
|
-
}] });
|
|
5066
|
-
/**
|
|
5067
|
-
* {@link AbstractPopoverRefDirective} extension that includes open/closed events.
|
|
5068
|
-
*/
|
|
5069
|
-
class AbstractPopoverRefWithEventsDirective extends AbstractPopoverRefDirective {
|
|
5070
|
-
constructor() {
|
|
5071
|
-
super(...arguments);
|
|
5072
|
-
this.popoverOpened = new EventEmitter();
|
|
5073
|
-
this.popoverClosed = new EventEmitter();
|
|
5074
|
-
}
|
|
5075
|
-
ngOnDestroy() {
|
|
5076
|
-
super.ngOnDestroy();
|
|
5077
|
-
this.popoverClosed.complete();
|
|
5078
|
-
this.popoverOpened.complete();
|
|
5079
|
-
}
|
|
5080
|
-
_afterOpened(popoverRef) {
|
|
5081
|
-
this.popoverOpened.next(popoverRef);
|
|
5082
|
-
}
|
|
5083
|
-
_afterClosed(event) {
|
|
5084
|
-
this.popoverClosed.next(event);
|
|
5085
|
-
}
|
|
5086
|
-
}
|
|
5087
|
-
AbstractPopoverRefWithEventsDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: AbstractPopoverRefWithEventsDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
5088
|
-
AbstractPopoverRefWithEventsDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: AbstractPopoverRefWithEventsDirective, outputs: { popoverOpened: "popoverOpened", popoverClosed: "popoverClosed" }, usesInheritance: true, ngImport: i0 });
|
|
5089
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: AbstractPopoverRefWithEventsDirective, decorators: [{
|
|
5090
|
-
type: Directive
|
|
5091
|
-
}], propDecorators: { popoverOpened: [{
|
|
5092
|
-
type: Output
|
|
5093
|
-
}], popoverClosed: [{
|
|
5094
|
-
type: Output
|
|
5095
|
-
}] } });
|
|
5096
|
-
|
|
5097
|
-
/**
|
|
5098
|
-
* Action directive that is used to trigger/display a popover,
|
|
5099
|
-
* then watches that popover for a value.
|
|
5100
|
-
*
|
|
5101
|
-
* The value is passed to the isModified function (ifProvided), and if that returns true it will
|
|
5542
|
+
* Action directive that is used to trigger/display a popover, then watches that popover for a value.
|
|
5102
5543
|
*/
|
|
5103
|
-
class
|
|
5544
|
+
class DbxActionPopoverDirective extends AbstractDbxActionValueOnTriggerDirective {
|
|
5104
5545
|
constructor(elementRef, source) {
|
|
5105
|
-
super();
|
|
5546
|
+
super(source, () => this._getDataFromPopover());
|
|
5106
5547
|
this.elementRef = elementRef;
|
|
5107
|
-
this.source = source;
|
|
5108
|
-
this._popoverValue = new BehaviorSubject(undefined);
|
|
5109
|
-
this._triggeredSub = new SubscriptionObject();
|
|
5110
|
-
this._isModifiedSub = new SubscriptionObject();
|
|
5111
5548
|
}
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
this._isModifiedSub.subscription = this._popoverValue.pipe(filterMaybe(), switchMap$1((value) => {
|
|
5115
|
-
let isModifiedObs;
|
|
5116
|
-
if (this.appPopoverActionModified) {
|
|
5117
|
-
isModifiedObs = this.appPopoverActionModified(value).pipe(first$1());
|
|
5118
|
-
}
|
|
5119
|
-
else {
|
|
5120
|
-
isModifiedObs = of(true); // Considered modified
|
|
5121
|
-
}
|
|
5122
|
-
return isModifiedObs;
|
|
5123
|
-
})).subscribe((isModified) => {
|
|
5124
|
-
this.source.setIsModified(isModified);
|
|
5125
|
-
});
|
|
5126
|
-
// Ready the value after the source is triggered.
|
|
5127
|
-
this._triggeredSub.subscription = this.source.triggered$.pipe(switchMap$1(() => {
|
|
5128
|
-
return this._popoverValue.pipe(filterMaybe(), first$1());
|
|
5129
|
-
})).subscribe((x) => {
|
|
5130
|
-
this.source.readyValue(x);
|
|
5131
|
-
});
|
|
5549
|
+
set dbxActionPopoverModified(isModifiedFunction) {
|
|
5550
|
+
this.isModifiedFunction = isModifiedFunction;
|
|
5132
5551
|
}
|
|
5133
|
-
|
|
5134
|
-
this.
|
|
5135
|
-
super.ngOnDestroy();
|
|
5136
|
-
this._triggeredSub.destroy();
|
|
5137
|
-
this._popoverValue.complete();
|
|
5138
|
-
});
|
|
5552
|
+
_getDataFromPopover() {
|
|
5553
|
+
return this._makePopoverRef().afterClosed$.pipe(first(), map$1(x => x.data));
|
|
5139
5554
|
}
|
|
5140
5555
|
_makePopoverRef() {
|
|
5141
5556
|
const origin = this.elementRef;
|
|
@@ -5146,52 +5561,22 @@ class DbxPopoverActionDirective extends AbstractPopoverRefWithEventsDirective {
|
|
|
5146
5561
|
origin
|
|
5147
5562
|
});
|
|
5148
5563
|
}
|
|
5149
|
-
_afterClosed(event) {
|
|
5150
|
-
super._afterClosed(event);
|
|
5151
|
-
const { data } = event;
|
|
5152
|
-
if (data != null) {
|
|
5153
|
-
this._popoverValue.next(data);
|
|
5154
|
-
}
|
|
5155
|
-
}
|
|
5156
5564
|
}
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type:
|
|
5565
|
+
DbxActionPopoverDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionPopoverDirective, deps: [{ token: i0.ElementRef }, { token: i1$2.DbxActionContextStoreSourceInstance }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5566
|
+
DbxActionPopoverDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: DbxActionPopoverDirective, selector: "[dbxActionPopover]", inputs: { fn: ["dbxActionPopover", "fn"], dbxActionPopoverModified: "dbxActionPopoverModified" }, exportAs: ["dbxActionPopover"], usesInheritance: true, ngImport: i0 });
|
|
5567
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionPopoverDirective, decorators: [{
|
|
5160
5568
|
type: Directive,
|
|
5161
5569
|
args: [{
|
|
5162
|
-
exportAs: '
|
|
5163
|
-
selector: '[
|
|
5570
|
+
exportAs: 'dbxActionPopover',
|
|
5571
|
+
selector: '[dbxActionPopover]'
|
|
5164
5572
|
}]
|
|
5165
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.
|
|
5573
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1$2.DbxActionContextStoreSourceInstance }]; }, propDecorators: { fn: [{
|
|
5166
5574
|
type: Input,
|
|
5167
|
-
args: ['
|
|
5168
|
-
}],
|
|
5575
|
+
args: ['dbxActionPopover']
|
|
5576
|
+
}], dbxActionPopoverModified: [{
|
|
5169
5577
|
type: Input
|
|
5170
5578
|
}] } });
|
|
5171
5579
|
|
|
5172
|
-
/**
|
|
5173
|
-
* Action directive that is used to link an DbxButton to an DbxPopoverActionDirective.
|
|
5174
|
-
*/
|
|
5175
|
-
class DbxPopoverActionButtonDirective extends DbxActionButtonDirective {
|
|
5176
|
-
constructor(button, source, ngZone, appPopoverActionDirective) {
|
|
5177
|
-
super(button, source, ngZone);
|
|
5178
|
-
this.appPopoverActionDirective = appPopoverActionDirective;
|
|
5179
|
-
}
|
|
5180
|
-
_buttonClicked() {
|
|
5181
|
-
this.appPopoverActionDirective.showPopover();
|
|
5182
|
-
}
|
|
5183
|
-
}
|
|
5184
|
-
DbxPopoverActionButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverActionButtonDirective, deps: [{ token: i1.DbxButtonDirective, host: true }, { token: i1.ActionContextStoreSourceInstance }, { token: i0.NgZone }, { token: DbxPopoverActionDirective }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5185
|
-
DbxPopoverActionButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: DbxPopoverActionButtonDirective, selector: "[dbxPopoverActionButton]", usesInheritance: true, ngImport: i0 });
|
|
5186
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverActionButtonDirective, decorators: [{
|
|
5187
|
-
type: Directive,
|
|
5188
|
-
args: [{
|
|
5189
|
-
selector: '[dbxPopoverActionButton]'
|
|
5190
|
-
}]
|
|
5191
|
-
}], ctorParameters: function () { return [{ type: i1.DbxButtonDirective, decorators: [{
|
|
5192
|
-
type: Host
|
|
5193
|
-
}] }, { type: i1.ActionContextStoreSourceInstance }, { type: i0.NgZone }, { type: DbxPopoverActionDirective }]; } });
|
|
5194
|
-
|
|
5195
5580
|
class DbxKeypressModule {
|
|
5196
5581
|
}
|
|
5197
5582
|
DbxKeypressModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxKeypressModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -5233,14 +5618,14 @@ class DbxActionKeyTriggerDirective {
|
|
|
5233
5618
|
}
|
|
5234
5619
|
}
|
|
5235
5620
|
}
|
|
5236
|
-
DbxActionKeyTriggerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionKeyTriggerDirective, deps: [{ token: i1.
|
|
5621
|
+
DbxActionKeyTriggerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionKeyTriggerDirective, deps: [{ token: i1$2.DbxActionContextStoreSourceInstance, host: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5237
5622
|
DbxActionKeyTriggerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: DbxActionKeyTriggerDirective, selector: "[dbxActionKeyTrigger]", inputs: { inputKey: ["dbxActionKeyTrigger", "inputKey"] }, host: { listeners: { "document:keyup": "onKeyupHandler($event)" } }, ngImport: i0 });
|
|
5238
5623
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionKeyTriggerDirective, decorators: [{
|
|
5239
5624
|
type: Directive,
|
|
5240
5625
|
args: [{
|
|
5241
5626
|
selector: '[dbxActionKeyTrigger]',
|
|
5242
5627
|
}]
|
|
5243
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
5628
|
+
}], ctorParameters: function () { return [{ type: i1$2.DbxActionContextStoreSourceInstance, decorators: [{
|
|
5244
5629
|
type: Host
|
|
5245
5630
|
}] }]; }, propDecorators: { inputKey: [{
|
|
5246
5631
|
type: Input,
|
|
@@ -5250,98 +5635,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
5250
5635
|
args: ['document:keyup', ['$event']]
|
|
5251
5636
|
}] } });
|
|
5252
5637
|
|
|
5253
|
-
/**
|
|
5254
|
-
* Component for a snackbar that contains an action.
|
|
5255
|
-
*/
|
|
5256
|
-
class DbxActionSnackbarComponent {
|
|
5257
|
-
constructor(snackbar, data) {
|
|
5258
|
-
this.snackbar = snackbar;
|
|
5259
|
-
this.data = data;
|
|
5260
|
-
this.complete$ = this.actionSourceInstance.isSuccess$;
|
|
5261
|
-
this.snackbarStatusClass$ = this.actionSourceInstance.actionState$.pipe(map$1((x) => {
|
|
5262
|
-
let classes = 'dbx-action-snackbar-';
|
|
5263
|
-
switch (x) {
|
|
5264
|
-
case ActionState.Rejected:
|
|
5265
|
-
classes += 'error';
|
|
5266
|
-
break;
|
|
5267
|
-
case ActionState.Success:
|
|
5268
|
-
classes += 'success';
|
|
5269
|
-
break;
|
|
5270
|
-
default:
|
|
5271
|
-
classes += 'idle';
|
|
5272
|
-
break;
|
|
5273
|
-
}
|
|
5274
|
-
return classes;
|
|
5275
|
-
}), distinctUntilChanged(), shareReplay(1));
|
|
5276
|
-
this.dismissEarly = () => {
|
|
5277
|
-
this.snackbar._dismissAfter(ms('3s'));
|
|
5278
|
-
};
|
|
5279
|
-
this.dismiss = () => {
|
|
5280
|
-
this.snackbar.dismiss();
|
|
5281
|
-
};
|
|
5282
|
-
if (!data.actionSource) {
|
|
5283
|
-
throw new Error('No action was provided to ActionSnackbar.');
|
|
5284
|
-
}
|
|
5285
|
-
}
|
|
5286
|
-
get message() {
|
|
5287
|
-
return this.data.message;
|
|
5288
|
-
}
|
|
5289
|
-
get action() {
|
|
5290
|
-
return this.data.action;
|
|
5291
|
-
}
|
|
5292
|
-
get actionSourceInstance() {
|
|
5293
|
-
return this.data.actionSource;
|
|
5294
|
-
}
|
|
5295
|
-
}
|
|
5296
|
-
DbxActionSnackbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionSnackbarComponent, deps: [{ token: i1$c.MatSnackBarRef }, { token: MAT_SNACK_BAR_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
5297
|
-
DbxActionSnackbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxActionSnackbarComponent, selector: "ng-component", ngImport: i0, template: `
|
|
5298
|
-
<div class="dbx-action-snackbar" [ngClass]="(snackbarStatusClass$ | async)!">
|
|
5299
|
-
<ng-container [ngSwitch]="complete$ | async">
|
|
5300
|
-
<ng-container *ngSwitchCase="true">
|
|
5301
|
-
<div class="spacer"></div>
|
|
5302
|
-
<dbx-button (buttonClick)="dismiss()" color="accent" icon="done" text="Success"></dbx-button>
|
|
5303
|
-
</ng-container>
|
|
5304
|
-
<ng-container *ngSwitchCase="false">
|
|
5305
|
-
<span>{{ message }}</span>
|
|
5306
|
-
<div class="spacer"></div>
|
|
5307
|
-
<dbx-action dbxActionValue [dbxActionSource]="actionSourceInstance" [dbxActionSuccess]="dismissEarly">
|
|
5308
|
-
<dbx-button dbxActionButton color="warn" [text]="action"></dbx-button>
|
|
5309
|
-
</dbx-action>
|
|
5310
|
-
<dbx-button-spacer></dbx-button-spacer>
|
|
5311
|
-
<dbx-button (buttonClick)="dismiss()" color="accent" icon="close"></dbx-button>
|
|
5312
|
-
</ng-container>
|
|
5313
|
-
</ng-container>
|
|
5314
|
-
</div>
|
|
5315
|
-
`, isInline: true, components: [{ type: DbxButtonComponent, selector: "dbx-button", inputs: ["type", "raised", "stroked", "flat", "color"] }, { type: DbxButtonSpacerComponent, selector: "dbx-button-spacer" }], directives: [{ type: i3$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i3$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i1.DbxActionDirective, selector: "dbx-action,[dbxAction],dbx-action-context,[dbxActionContext]", exportAs: ["action"] }, { type: i1.DbxActionValueDirective, selector: "[dbxActionValue]", inputs: ["dbxActionValue"] }, { type: i1.DbxActionSourceDirective, selector: "[dbxActionSource]", inputs: ["dbxActionSource"] }, { type: i1.DbxActionSuccessDirective, selector: "[dbxActionSuccess]", inputs: ["dbxActionSuccess"] }], pipes: { "async": i3$1.AsyncPipe } });
|
|
5316
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionSnackbarComponent, decorators: [{
|
|
5317
|
-
type: Component,
|
|
5318
|
-
args: [{
|
|
5319
|
-
template: `
|
|
5320
|
-
<div class="dbx-action-snackbar" [ngClass]="(snackbarStatusClass$ | async)!">
|
|
5321
|
-
<ng-container [ngSwitch]="complete$ | async">
|
|
5322
|
-
<ng-container *ngSwitchCase="true">
|
|
5323
|
-
<div class="spacer"></div>
|
|
5324
|
-
<dbx-button (buttonClick)="dismiss()" color="accent" icon="done" text="Success"></dbx-button>
|
|
5325
|
-
</ng-container>
|
|
5326
|
-
<ng-container *ngSwitchCase="false">
|
|
5327
|
-
<span>{{ message }}</span>
|
|
5328
|
-
<div class="spacer"></div>
|
|
5329
|
-
<dbx-action dbxActionValue [dbxActionSource]="actionSourceInstance" [dbxActionSuccess]="dismissEarly">
|
|
5330
|
-
<dbx-button dbxActionButton color="warn" [text]="action"></dbx-button>
|
|
5331
|
-
</dbx-action>
|
|
5332
|
-
<dbx-button-spacer></dbx-button-spacer>
|
|
5333
|
-
<dbx-button (buttonClick)="dismiss()" color="accent" icon="close"></dbx-button>
|
|
5334
|
-
</ng-container>
|
|
5335
|
-
</ng-container>
|
|
5336
|
-
</div>
|
|
5337
|
-
`,
|
|
5338
|
-
// TODO: styleUrls: ['./action.scss']
|
|
5339
|
-
}]
|
|
5340
|
-
}], ctorParameters: function () { return [{ type: i1$c.MatSnackBarRef }, { type: undefined, decorators: [{
|
|
5341
|
-
type: Inject,
|
|
5342
|
-
args: [MAT_SNACK_BAR_DATA]
|
|
5343
|
-
}] }]; } });
|
|
5344
|
-
|
|
5345
5638
|
class DbxPromptConfirm {
|
|
5346
5639
|
}
|
|
5347
5640
|
function ProvideDbxPromptConfirm(sourceType) {
|
|
@@ -5418,7 +5711,7 @@ class DbxPromptConfirmComponent {
|
|
|
5418
5711
|
}
|
|
5419
5712
|
}
|
|
5420
5713
|
DbxPromptConfirmComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPromptConfirmComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5421
|
-
DbxPromptConfirmComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxPromptConfirmComponent, selector: "dbx-prompt-confirm", inputs: { config: "config" }, outputs: { confirm: "confirm", cancel: "cancel" }, ngImport: i0, template: "<dbx-prompt [header]=\"config.title\" [prompt]=\"config.prompt\">\n <ng-content></ng-content>\n <button mat-stroked-button (click)=\"onConfirm()\">{{ config.confirmText || 'Confirm' }}</button>\n <dbx-button-spacer></dbx-button-spacer>\n <button mat-stroked-button color=\"warn\" (click)=\"onCancel()\">{{ config.cancelText || 'Cancel' }}</button>\n</dbx-prompt>\n", components: [{ type: DbxPromptComponent, selector: "dbx-prompt", inputs: ["header", "prompt"] }, { type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type:
|
|
5714
|
+
DbxPromptConfirmComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxPromptConfirmComponent, selector: "dbx-prompt-confirm", inputs: { config: "config" }, outputs: { confirm: "confirm", cancel: "cancel" }, ngImport: i0, template: "<dbx-prompt [header]=\"config.title\" [prompt]=\"config.prompt\">\n <ng-content></ng-content>\n <button mat-stroked-button (click)=\"onConfirm()\">{{ config.confirmText || 'Confirm' }}</button>\n <dbx-button-spacer></dbx-button-spacer>\n <button mat-stroked-button color=\"warn\" (click)=\"onCancel()\">{{ config.cancelText || 'Cancel' }}</button>\n</dbx-prompt>\n", components: [{ type: DbxPromptComponent, selector: "dbx-prompt", inputs: ["header", "prompt"] }, { type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: DbxButtonSpacerDirective, selector: "dbx-button-spacer,dbxButtonSpacer" }] });
|
|
5422
5715
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPromptConfirmComponent, decorators: [{
|
|
5423
5716
|
type: Component,
|
|
5424
5717
|
args: [{ selector: 'dbx-prompt-confirm', template: "<dbx-prompt [header]=\"config.title\" [prompt]=\"config.prompt\">\n <ng-content></ng-content>\n <button mat-stroked-button (click)=\"onConfirm()\">{{ config.confirmText || 'Confirm' }}</button>\n <dbx-button-spacer></dbx-button-spacer>\n <button mat-stroked-button color=\"warn\" (click)=\"onCancel()\">{{ config.cancelText || 'Cancel' }}</button>\n</dbx-prompt>\n" }]
|
|
@@ -5461,7 +5754,7 @@ DbxPromptConfirmDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion:
|
|
|
5461
5754
|
<dbx-injected-content [config]="injectedConfig"></dbx-injected-content>
|
|
5462
5755
|
</dbx-prompt-confirm>
|
|
5463
5756
|
</dbx-dialog-content>
|
|
5464
|
-
`, isInline: true, components: [{ type: DbxPromptConfirmComponent, selector: "dbx-prompt-confirm", inputs: ["config"], outputs: ["confirm", "cancel"] }, { type: i1.DbxInjectedComponent, selector: "dbx-injected-content, [dbx-injected-content]", inputs: ["config", "template"] }], directives: [{ type: DbxDialogContentDirective, selector: "dbx-dialog-content,.dbx-dialog-content", inputs: ["width"] }] });
|
|
5757
|
+
`, isInline: true, components: [{ type: DbxPromptConfirmComponent, selector: "dbx-prompt-confirm", inputs: ["config"], outputs: ["confirm", "cancel"] }, { type: i1$2.DbxInjectedComponent, selector: "dbx-injected-content, [dbx-injected-content]", inputs: ["config", "template"] }], directives: [{ type: DbxDialogContentDirective, selector: "dbx-dialog-content,.dbx-dialog-content", inputs: ["width"] }] });
|
|
5465
5758
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPromptConfirmDialogComponent, decorators: [{
|
|
5466
5759
|
type: Component,
|
|
5467
5760
|
args: [{
|
|
@@ -5500,11 +5793,11 @@ class AbstractPromptConfirmDirective {
|
|
|
5500
5793
|
return result;
|
|
5501
5794
|
}
|
|
5502
5795
|
}
|
|
5503
|
-
AbstractPromptConfirmDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: AbstractPromptConfirmDirective, deps: [{ token: i1$
|
|
5796
|
+
AbstractPromptConfirmDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: AbstractPromptConfirmDirective, deps: [{ token: i1$3.MatDialog }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5504
5797
|
AbstractPromptConfirmDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: AbstractPromptConfirmDirective, ngImport: i0 });
|
|
5505
5798
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: AbstractPromptConfirmDirective, decorators: [{
|
|
5506
5799
|
type: Directive
|
|
5507
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
5800
|
+
}], ctorParameters: function () { return [{ type: i1$3.MatDialog }]; } });
|
|
5508
5801
|
// MARK: Directive
|
|
5509
5802
|
/**
|
|
5510
5803
|
* Directive that shows a confirmation screen.
|
|
@@ -5514,7 +5807,7 @@ class DbxPromptConfirmDirective extends AbstractPromptConfirmDirective {
|
|
|
5514
5807
|
super(dialog);
|
|
5515
5808
|
}
|
|
5516
5809
|
}
|
|
5517
|
-
DbxPromptConfirmDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPromptConfirmDirective, deps: [{ token: i1$
|
|
5810
|
+
DbxPromptConfirmDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPromptConfirmDirective, deps: [{ token: i1$3.MatDialog }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5518
5811
|
DbxPromptConfirmDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: DbxPromptConfirmDirective, selector: "[dbxPromptConfirm]", inputs: { config: ["dbxPromptConfirm", "config"] }, providers: ProvideDbxPromptConfirm(DbxPromptConfirmDirective), usesInheritance: true, ngImport: i0 });
|
|
5519
5812
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPromptConfirmDirective, decorators: [{
|
|
5520
5813
|
type: Directive,
|
|
@@ -5522,7 +5815,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
5522
5815
|
selector: '[dbxPromptConfirm]',
|
|
5523
5816
|
providers: ProvideDbxPromptConfirm(DbxPromptConfirmDirective)
|
|
5524
5817
|
}]
|
|
5525
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
5818
|
+
}], ctorParameters: function () { return [{ type: i1$3.MatDialog }]; }, propDecorators: { config: [{
|
|
5526
5819
|
type: Input,
|
|
5527
5820
|
args: ['dbxPromptConfirm']
|
|
5528
5821
|
}] } });
|
|
@@ -5549,7 +5842,7 @@ class DbxActionConfirmDirective extends AbstractPromptConfirmDirective {
|
|
|
5549
5842
|
}
|
|
5550
5843
|
_handleDialogResult(result) {
|
|
5551
5844
|
if (result) {
|
|
5552
|
-
this.source.readyValue(
|
|
5845
|
+
this.source.readyValue(this.config?.readyValue);
|
|
5553
5846
|
}
|
|
5554
5847
|
else {
|
|
5555
5848
|
this.source.reject(undefined);
|
|
@@ -5557,16 +5850,16 @@ class DbxActionConfirmDirective extends AbstractPromptConfirmDirective {
|
|
|
5557
5850
|
return result;
|
|
5558
5851
|
}
|
|
5559
5852
|
}
|
|
5560
|
-
DbxActionConfirmDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionConfirmDirective, deps: [{ token: i1.
|
|
5853
|
+
DbxActionConfirmDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionConfirmDirective, deps: [{ token: i1$2.DbxActionContextStoreSourceInstance, host: true }, { token: i1$3.MatDialog }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5561
5854
|
DbxActionConfirmDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: DbxActionConfirmDirective, selector: "[dbxActionConfirm]", inputs: { config: ["dbxActionConfirm", "config"] }, usesInheritance: true, ngImport: i0 });
|
|
5562
5855
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionConfirmDirective, decorators: [{
|
|
5563
5856
|
type: Directive,
|
|
5564
5857
|
args: [{
|
|
5565
5858
|
selector: '[dbxActionConfirm]'
|
|
5566
5859
|
}]
|
|
5567
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
5860
|
+
}], ctorParameters: function () { return [{ type: i1$2.DbxActionContextStoreSourceInstance, decorators: [{
|
|
5568
5861
|
type: Host
|
|
5569
|
-
}] }, { type: i1$
|
|
5862
|
+
}] }, { type: i1$3.MatDialog }]; }, propDecorators: { config: [{
|
|
5570
5863
|
type: Input,
|
|
5571
5864
|
args: ['dbxActionConfirm']
|
|
5572
5865
|
}] } });
|
|
@@ -5627,21 +5920,21 @@ class DbxPromptConfirmButtonDirective {
|
|
|
5627
5920
|
this.appButton = appButton;
|
|
5628
5921
|
this.prompt = prompt;
|
|
5629
5922
|
this.interceptButtonClick = () => {
|
|
5630
|
-
return this.prompt.showDialog().pipe(map
|
|
5923
|
+
return this.prompt.showDialog().pipe(map(x => Boolean(x)));
|
|
5631
5924
|
};
|
|
5632
5925
|
}
|
|
5633
5926
|
ngOnInit() {
|
|
5634
5927
|
this.appButton.setButtonInterceptor(this);
|
|
5635
5928
|
}
|
|
5636
5929
|
}
|
|
5637
|
-
DbxPromptConfirmButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPromptConfirmButtonDirective, deps: [{ token: i1.DbxButtonDirective, host: true }, { token: DbxPromptConfirm, host: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5930
|
+
DbxPromptConfirmButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPromptConfirmButtonDirective, deps: [{ token: i1$2.DbxButtonDirective, host: true }, { token: DbxPromptConfirm, host: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5638
5931
|
DbxPromptConfirmButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: DbxPromptConfirmButtonDirective, selector: "[dbxPromptConfirmButton]", ngImport: i0 });
|
|
5639
5932
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPromptConfirmButtonDirective, decorators: [{
|
|
5640
5933
|
type: Directive,
|
|
5641
5934
|
args: [{
|
|
5642
5935
|
selector: '[dbxPromptConfirmButton]',
|
|
5643
5936
|
}]
|
|
5644
|
-
}], ctorParameters: function () { return [{ type: i1.DbxButtonDirective, decorators: [{
|
|
5937
|
+
}], ctorParameters: function () { return [{ type: i1$2.DbxButtonDirective, decorators: [{
|
|
5645
5938
|
type: Host
|
|
5646
5939
|
}] }, { type: DbxPromptConfirm, decorators: [{
|
|
5647
5940
|
type: Host
|
|
@@ -5719,7 +6012,6 @@ class DbxActionModule {
|
|
|
5719
6012
|
}
|
|
5720
6013
|
DbxActionModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5721
6014
|
DbxActionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionModule, declarations: [DbxActionKeyTriggerDirective,
|
|
5722
|
-
DbxActionSnackbarComponent,
|
|
5723
6015
|
DbxActionConfirmDirective], imports: [CommonModule,
|
|
5724
6016
|
DbxCoreActionModule,
|
|
5725
6017
|
DbxButtonModule,
|
|
@@ -5728,7 +6020,6 @@ DbxActionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version
|
|
|
5728
6020
|
MatButtonModule,
|
|
5729
6021
|
DbxPromptModule], exports: [DbxCoreActionModule,
|
|
5730
6022
|
DbxActionKeyTriggerDirective,
|
|
5731
|
-
DbxActionSnackbarComponent,
|
|
5732
6023
|
DbxActionConfirmDirective] });
|
|
5733
6024
|
DbxActionModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionModule, imports: [[
|
|
5734
6025
|
CommonModule,
|
|
@@ -5753,13 +6044,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
5753
6044
|
],
|
|
5754
6045
|
declarations: [
|
|
5755
6046
|
DbxActionKeyTriggerDirective,
|
|
5756
|
-
DbxActionSnackbarComponent,
|
|
5757
6047
|
DbxActionConfirmDirective,
|
|
5758
6048
|
],
|
|
5759
6049
|
exports: [
|
|
5760
6050
|
DbxCoreActionModule,
|
|
5761
6051
|
DbxActionKeyTriggerDirective,
|
|
5762
|
-
DbxActionSnackbarComponent,
|
|
5763
6052
|
DbxActionConfirmDirective,
|
|
5764
6053
|
]
|
|
5765
6054
|
}]
|
|
@@ -5776,8 +6065,7 @@ class DbxPopoverInteractionModule {
|
|
|
5776
6065
|
}
|
|
5777
6066
|
}
|
|
5778
6067
|
DbxPopoverInteractionModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverInteractionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5779
|
-
DbxPopoverInteractionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverInteractionModule, declarations: [
|
|
5780
|
-
DbxPopoverActionDirective,
|
|
6068
|
+
DbxPopoverInteractionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverInteractionModule, declarations: [DbxActionPopoverDirective,
|
|
5781
6069
|
DbxPopoverComponent,
|
|
5782
6070
|
DbxPopoverCoordinatorComponent,
|
|
5783
6071
|
DbxPopoverContentComponent,
|
|
@@ -5794,8 +6082,7 @@ DbxPopoverInteractionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0
|
|
|
5794
6082
|
DbxStyleLayoutModule,
|
|
5795
6083
|
DbxInjectedComponentModule,
|
|
5796
6084
|
NgOverlayContainerModule,
|
|
5797
|
-
AngularResizeEventModule], exports: [
|
|
5798
|
-
DbxPopoverActionDirective,
|
|
6085
|
+
AngularResizeEventModule], exports: [DbxActionPopoverDirective,
|
|
5799
6086
|
DbxPopoverContentComponent,
|
|
5800
6087
|
DbxPopoverControlsDirective,
|
|
5801
6088
|
DbxPopoverHeaderComponent,
|
|
@@ -5834,8 +6121,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
5834
6121
|
AngularResizeEventModule
|
|
5835
6122
|
],
|
|
5836
6123
|
declarations: [
|
|
5837
|
-
|
|
5838
|
-
DbxPopoverActionDirective,
|
|
6124
|
+
DbxActionPopoverDirective,
|
|
5839
6125
|
DbxPopoverComponent,
|
|
5840
6126
|
DbxPopoverCoordinatorComponent,
|
|
5841
6127
|
DbxPopoverContentComponent,
|
|
@@ -5844,8 +6130,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
5844
6130
|
DbxPopoverScrollContentComponent
|
|
5845
6131
|
],
|
|
5846
6132
|
exports: [
|
|
5847
|
-
|
|
5848
|
-
DbxPopoverActionDirective,
|
|
6133
|
+
DbxActionPopoverDirective,
|
|
5849
6134
|
DbxPopoverContentComponent,
|
|
5850
6135
|
DbxPopoverControlsDirective,
|
|
5851
6136
|
DbxPopoverHeaderComponent,
|
|
@@ -5873,7 +6158,7 @@ class DbxFilterWrapperComponent {
|
|
|
5873
6158
|
}
|
|
5874
6159
|
}
|
|
5875
6160
|
DbxFilterWrapperComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxFilterWrapperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5876
|
-
DbxFilterWrapperComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxFilterWrapperComponent, selector: "dbx-filter-wrapper", inputs: { modified: "modified" }, outputs: { applyFilter: "applyFilter", resetFilter: "resetFilter" }, ngImport: i0, template: "<div class=\"dbx-filter-wrapper\">\n <div class=\"dbx-filter-wrapper-content\">\n <ng-content></ng-content>\n </div>\n <div fxLayout=\"row\">\n <button mat-raised-button (click)=\"filterClicked()\">Apply Filter</button>\n <div class=\"spacer\"></div>\n <button mat-icon-button (click)=\"resetClicked()\">\n <mat-icon>clear</mat-icon>\n </button>\n </div>\n</div>\n", components: [{ type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i3$5.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"] }] });
|
|
6161
|
+
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: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i3$5.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }] });
|
|
5877
6162
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxFilterWrapperComponent, decorators: [{
|
|
5878
6163
|
type: Component,
|
|
5879
6164
|
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" }]
|
|
@@ -5936,6 +6221,66 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
5936
6221
|
}]
|
|
5937
6222
|
}] });
|
|
5938
6223
|
|
|
6224
|
+
/**
|
|
6225
|
+
* Abstract class for showing and handling a popover ref.
|
|
6226
|
+
*/
|
|
6227
|
+
class AbstractPopoverRefDirective extends AbstractSubscriptionDirective {
|
|
6228
|
+
showPopover() {
|
|
6229
|
+
if (!this._popoverRef) {
|
|
6230
|
+
this._showPopoverRef();
|
|
6231
|
+
}
|
|
6232
|
+
}
|
|
6233
|
+
_showPopoverRef() {
|
|
6234
|
+
this._popoverRef = this._makePopoverRef();
|
|
6235
|
+
this._afterOpened(this._popoverRef);
|
|
6236
|
+
this.sub = this._popoverRef.afterClosed$.subscribe((x) => {
|
|
6237
|
+
this._afterClosed(x);
|
|
6238
|
+
this._popoverRef = undefined;
|
|
6239
|
+
});
|
|
6240
|
+
}
|
|
6241
|
+
_afterOpened(popoverRef) {
|
|
6242
|
+
// Do nothing.
|
|
6243
|
+
}
|
|
6244
|
+
_afterClosed(value) {
|
|
6245
|
+
// Do nothing.
|
|
6246
|
+
}
|
|
6247
|
+
}
|
|
6248
|
+
AbstractPopoverRefDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: AbstractPopoverRefDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6249
|
+
AbstractPopoverRefDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: AbstractPopoverRefDirective, usesInheritance: true, ngImport: i0 });
|
|
6250
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: AbstractPopoverRefDirective, decorators: [{
|
|
6251
|
+
type: Directive
|
|
6252
|
+
}] });
|
|
6253
|
+
/**
|
|
6254
|
+
* {@link AbstractPopoverRefDirective} extension that includes open/closed events.
|
|
6255
|
+
*/
|
|
6256
|
+
class AbstractPopoverRefWithEventsDirective extends AbstractPopoverRefDirective {
|
|
6257
|
+
constructor() {
|
|
6258
|
+
super(...arguments);
|
|
6259
|
+
this.popoverOpened = new EventEmitter();
|
|
6260
|
+
this.popoverClosed = new EventEmitter();
|
|
6261
|
+
}
|
|
6262
|
+
ngOnDestroy() {
|
|
6263
|
+
super.ngOnDestroy();
|
|
6264
|
+
this.popoverClosed.complete();
|
|
6265
|
+
this.popoverOpened.complete();
|
|
6266
|
+
}
|
|
6267
|
+
_afterOpened(popoverRef) {
|
|
6268
|
+
this.popoverOpened.next(popoverRef);
|
|
6269
|
+
}
|
|
6270
|
+
_afterClosed(event) {
|
|
6271
|
+
this.popoverClosed.next(event);
|
|
6272
|
+
}
|
|
6273
|
+
}
|
|
6274
|
+
AbstractPopoverRefWithEventsDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: AbstractPopoverRefWithEventsDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6275
|
+
AbstractPopoverRefWithEventsDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: AbstractPopoverRefWithEventsDirective, outputs: { popoverOpened: "popoverOpened", popoverClosed: "popoverClosed" }, usesInheritance: true, ngImport: i0 });
|
|
6276
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: AbstractPopoverRefWithEventsDirective, decorators: [{
|
|
6277
|
+
type: Directive
|
|
6278
|
+
}], propDecorators: { popoverOpened: [{
|
|
6279
|
+
type: Output
|
|
6280
|
+
}], popoverClosed: [{
|
|
6281
|
+
type: Output
|
|
6282
|
+
}] } });
|
|
6283
|
+
|
|
5939
6284
|
class PopupGlobalPositionStrategy extends GlobalPositionStrategy {
|
|
5940
6285
|
constructor(position = 'bottom_right', offset) {
|
|
5941
6286
|
super();
|
|
@@ -6029,7 +6374,7 @@ class DbxPopupCoordinatorComponent {
|
|
|
6029
6374
|
constructor(service, popup) {
|
|
6030
6375
|
this.service = service;
|
|
6031
6376
|
this.popup = popup;
|
|
6032
|
-
this.isPopupForKey$ = this.service.popups$.pipe(map
|
|
6377
|
+
this.isPopupForKey$ = this.service.popups$.pipe(map(x => x.get(this.popup.key) === this.popup), shareReplay$1(1));
|
|
6033
6378
|
this.show$ = this.isPopupForKey$.pipe(delay$1(0));
|
|
6034
6379
|
}
|
|
6035
6380
|
ngOnInit() {
|
|
@@ -6044,7 +6389,7 @@ DbxPopupCoordinatorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12
|
|
|
6044
6389
|
<ng-container *ngIf="show$ | async">
|
|
6045
6390
|
<ng-content></ng-content>
|
|
6046
6391
|
</ng-container>
|
|
6047
|
-
`, isInline: true, directives: [{ type: i3
|
|
6392
|
+
`, isInline: true, directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i3.AsyncPipe } });
|
|
6048
6393
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopupCoordinatorComponent, decorators: [{
|
|
6049
6394
|
type: Component,
|
|
6050
6395
|
args: [{
|
|
@@ -6075,8 +6420,8 @@ class DbxPopupComponent extends AbstractTransitionWatcherDirective {
|
|
|
6075
6420
|
init: this.config.init ? ((instance) => this.config.init(instance, this)) : undefined
|
|
6076
6421
|
};
|
|
6077
6422
|
this.closing = new Subject();
|
|
6078
|
-
this.isClosing$ = this.closing.pipe(first$1(), map
|
|
6079
|
-
this.closing$ = this.isClosing$.pipe(filter
|
|
6423
|
+
this.isClosing$ = this.closing.pipe(first$1(), map(x => true), startWith$1(false), shareReplay$1(1));
|
|
6424
|
+
this.closing$ = this.isClosing$.pipe(filter(x => x));
|
|
6080
6425
|
this._windowState = new BehaviorSubject(DbxPopupWindowState.NORMAL);
|
|
6081
6426
|
this.windowState$ = this._windowState.asObservable();
|
|
6082
6427
|
this.compactContextState.setMode(CompactMode.COMPACT);
|
|
@@ -6139,7 +6484,7 @@ class DbxPopupComponent extends AbstractTransitionWatcherDirective {
|
|
|
6139
6484
|
this._windowState.next(DbxPopupWindowState.FULLSCREEN);
|
|
6140
6485
|
}
|
|
6141
6486
|
}
|
|
6142
|
-
DbxPopupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopupComponent, deps: [{ token: i1$
|
|
6487
|
+
DbxPopupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopupComponent, deps: [{ token: i1$b.NgPopoverRef }, { token: CompactContextStore }, { token: i1$2.DbxRouterTransitionService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
6143
6488
|
DbxPopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxPopupComponent, selector: "ng-component", providers: [{
|
|
6144
6489
|
provide: DbxPopupController,
|
|
6145
6490
|
useExisting: DbxPopupComponent
|
|
@@ -6149,7 +6494,7 @@ DbxPopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
|
|
|
6149
6494
|
<dbx-popup-coordinator>
|
|
6150
6495
|
<div class="dbx-popup-component" dbx-injected-content [config]="contentConfig"></div>
|
|
6151
6496
|
</dbx-popup-coordinator>
|
|
6152
|
-
`, isInline: true, components: [{ type: DbxPopupCoordinatorComponent, selector: "dbx-popup-coordinator" }, { type: i1.DbxInjectedComponent, selector: "dbx-injected-content, [dbx-injected-content]", inputs: ["config", "template"] }] });
|
|
6497
|
+
`, isInline: true, components: [{ type: DbxPopupCoordinatorComponent, selector: "dbx-popup-coordinator" }, { type: i1$2.DbxInjectedComponent, selector: "dbx-injected-content, [dbx-injected-content]", inputs: ["config", "template"] }] });
|
|
6153
6498
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopupComponent, decorators: [{
|
|
6154
6499
|
type: Component,
|
|
6155
6500
|
args: [{
|
|
@@ -6165,7 +6510,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
6165
6510
|
provide: CompactContextStore
|
|
6166
6511
|
}]
|
|
6167
6512
|
}]
|
|
6168
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
6513
|
+
}], ctorParameters: function () { return [{ type: i1$b.NgPopoverRef }, { type: CompactContextStore }, { type: i1$2.DbxRouterTransitionService }, { type: i0.NgZone }]; } });
|
|
6169
6514
|
|
|
6170
6515
|
/**
|
|
6171
6516
|
* Abstract popup directive.
|
|
@@ -6190,7 +6535,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
6190
6535
|
class DbxPopupContentComponent {
|
|
6191
6536
|
constructor(appPopupController) {
|
|
6192
6537
|
this.appPopupController = appPopupController;
|
|
6193
|
-
this.showContent$ = this.appPopupController.windowState$.pipe(map
|
|
6538
|
+
this.showContent$ = this.appPopupController.windowState$.pipe(map(x => x !== DbxPopupWindowState.MINIMIZED));
|
|
6194
6539
|
}
|
|
6195
6540
|
}
|
|
6196
6541
|
DbxPopupContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopupContentComponent, deps: [{ token: DbxPopupController }], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -6199,7 +6544,7 @@ DbxPopupContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0
|
|
|
6199
6544
|
<div *ngIf="showContent$ | async" class="dbx-popup-content-container">
|
|
6200
6545
|
<ng-content></ng-content>
|
|
6201
6546
|
</div>
|
|
6202
|
-
`, isInline: true, directives: [{ type: i3
|
|
6547
|
+
`, isInline: true, directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i3.AsyncPipe } });
|
|
6203
6548
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopupContentComponent, decorators: [{
|
|
6204
6549
|
type: Component,
|
|
6205
6550
|
args: [{
|
|
@@ -6222,8 +6567,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
6222
6567
|
class DbxPopupControlButtonsComponent {
|
|
6223
6568
|
constructor(appPopupController) {
|
|
6224
6569
|
this.appPopupController = appPopupController;
|
|
6225
|
-
this.isMinimized$ = this.appPopupController.windowState$.pipe(map
|
|
6226
|
-
this.isFullscreen$ = this.appPopupController.windowState$.pipe(map
|
|
6570
|
+
this.isMinimized$ = this.appPopupController.windowState$.pipe(map(x => x === DbxPopupWindowState.MINIMIZED));
|
|
6571
|
+
this.isFullscreen$ = this.appPopupController.windowState$.pipe(map(x => x === DbxPopupWindowState.FULLSCREEN));
|
|
6227
6572
|
}
|
|
6228
6573
|
minimizeClicked() {
|
|
6229
6574
|
this.appPopupController.minimize();
|
|
@@ -6254,7 +6599,7 @@ DbxPopupControlButtonsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion:
|
|
|
6254
6599
|
</ng-container>
|
|
6255
6600
|
<dbx-button-spacer></dbx-button-spacer>
|
|
6256
6601
|
<dbx-button [flat]="true" icon="close" color="warn" (buttonClick)="closeClicked()"></dbx-button>
|
|
6257
|
-
`, isInline: true, components: [{ type: DbxButtonComponent, selector: "dbx-button", inputs: ["type", "raised", "stroked", "flat", "color"] }
|
|
6602
|
+
`, isInline: true, components: [{ type: DbxButtonComponent, selector: "dbx-button", inputs: ["type", "raised", "stroked", "flat", "color"] }], directives: [{ type: i3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: DbxButtonSpacerDirective, selector: "dbx-button-spacer,dbxButtonSpacer" }], pipes: { "async": i3.AsyncPipe } });
|
|
6258
6603
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopupControlButtonsComponent, decorators: [{
|
|
6259
6604
|
type: Component,
|
|
6260
6605
|
args: [{
|
|
@@ -6337,11 +6682,11 @@ class DbxPopupService {
|
|
|
6337
6682
|
});
|
|
6338
6683
|
}
|
|
6339
6684
|
}
|
|
6340
|
-
DbxPopupService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopupService, deps: [{ token: i1$
|
|
6685
|
+
DbxPopupService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopupService, deps: [{ token: i1$c.Overlay }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6341
6686
|
DbxPopupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopupService });
|
|
6342
6687
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopupService, decorators: [{
|
|
6343
6688
|
type: Injectable
|
|
6344
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
6689
|
+
}], ctorParameters: function () { return [{ type: i1$c.Overlay }, { type: i0.Injector }]; } });
|
|
6345
6690
|
|
|
6346
6691
|
class DbxPopupInteractionModule {
|
|
6347
6692
|
static forRoot() {
|
|
@@ -6440,6 +6785,47 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
6440
6785
|
}]
|
|
6441
6786
|
}] });
|
|
6442
6787
|
|
|
6788
|
+
class DbxActionSnackbarModule {
|
|
6789
|
+
}
|
|
6790
|
+
DbxActionSnackbarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionSnackbarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6791
|
+
DbxActionSnackbarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionSnackbarModule, declarations: [DbxActionSnackbarComponent,
|
|
6792
|
+
DbxActionSnackbarDirective], imports: [CommonModule,
|
|
6793
|
+
DbxStyleLayoutModule,
|
|
6794
|
+
DbxCoreActionModule,
|
|
6795
|
+
DbxPromptModule,
|
|
6796
|
+
DbxButtonModule,
|
|
6797
|
+
DbxReadableErrorModule], exports: [DbxActionSnackbarComponent,
|
|
6798
|
+
DbxActionSnackbarDirective] });
|
|
6799
|
+
DbxActionSnackbarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionSnackbarModule, imports: [[
|
|
6800
|
+
CommonModule,
|
|
6801
|
+
DbxStyleLayoutModule,
|
|
6802
|
+
DbxCoreActionModule,
|
|
6803
|
+
DbxPromptModule,
|
|
6804
|
+
DbxButtonModule,
|
|
6805
|
+
DbxReadableErrorModule
|
|
6806
|
+
]] });
|
|
6807
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionSnackbarModule, decorators: [{
|
|
6808
|
+
type: NgModule,
|
|
6809
|
+
args: [{
|
|
6810
|
+
imports: [
|
|
6811
|
+
CommonModule,
|
|
6812
|
+
DbxStyleLayoutModule,
|
|
6813
|
+
DbxCoreActionModule,
|
|
6814
|
+
DbxPromptModule,
|
|
6815
|
+
DbxButtonModule,
|
|
6816
|
+
DbxReadableErrorModule
|
|
6817
|
+
],
|
|
6818
|
+
declarations: [
|
|
6819
|
+
DbxActionSnackbarComponent,
|
|
6820
|
+
DbxActionSnackbarDirective
|
|
6821
|
+
],
|
|
6822
|
+
exports: [
|
|
6823
|
+
DbxActionSnackbarComponent,
|
|
6824
|
+
DbxActionSnackbarDirective
|
|
6825
|
+
]
|
|
6826
|
+
}]
|
|
6827
|
+
}] });
|
|
6828
|
+
|
|
6443
6829
|
var DbxActionTransitionSafetyDialogResult;
|
|
6444
6830
|
(function (DbxActionTransitionSafetyDialogResult) {
|
|
6445
6831
|
DbxActionTransitionSafetyDialogResult[DbxActionTransitionSafetyDialogResult["SUCCESS"] = 0] = "SUCCESS";
|
|
@@ -6477,7 +6863,7 @@ DbxActionUIRouterTransitionSafetyDialogComponent.ɵcmp = i0.ɵɵngDeclareCompone
|
|
|
6477
6863
|
<dbx-button-spacer></dbx-button-spacer>
|
|
6478
6864
|
</ng-container>
|
|
6479
6865
|
</dbx-prompt-confirm>
|
|
6480
|
-
`, isInline: true, components: [{ type: DbxPromptConfirmComponent, selector: "dbx-prompt-confirm", inputs: ["config"], outputs: ["confirm", "cancel"] }, { type: DbxReadableErrorComponent, selector: "dbx-error", inputs: ["error"] }, { type: DbxButtonComponent, selector: "dbx-button", inputs: ["type", "raised", "stroked", "flat", "color"] }, { type:
|
|
6866
|
+
`, isInline: true, components: [{ type: DbxPromptConfirmComponent, selector: "dbx-prompt-confirm", inputs: ["config"], outputs: ["confirm", "cancel"] }, { type: DbxReadableErrorComponent, selector: "dbx-error", inputs: ["error"] }, { type: DbxButtonComponent, selector: "dbx-button", inputs: ["type", "raised", "stroked", "flat", "color"] }], directives: [{ type: DbxActionErrorDirective, selector: "[dbxActionError]" }, { type: i1$2.DbxActionButtonDirective, selector: "[dbxActionButton]" }, { type: DbxButtonSpacerDirective, selector: "dbx-button-spacer,dbxButtonSpacer" }] });
|
|
6481
6867
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionUIRouterTransitionSafetyDialogComponent, decorators: [{
|
|
6482
6868
|
type: Component,
|
|
6483
6869
|
args: [{
|
|
@@ -6530,9 +6916,9 @@ class DbxActionTransitionSafetyDirective {
|
|
|
6530
6916
|
if (isModified) {
|
|
6531
6917
|
return race([
|
|
6532
6918
|
// Watch for success to occur. At that point, close everything.
|
|
6533
|
-
this.source.success$.pipe(first$1(), map
|
|
6534
|
-
this._handleIsModifiedState(transition).pipe(first$1(), map
|
|
6535
|
-
]).pipe(map
|
|
6919
|
+
this.source.success$.pipe(first$1(), map((x) => [true, undefined])),
|
|
6920
|
+
this._handleIsModifiedState(transition).pipe(first$1(), map((x) => [undefined, x]))
|
|
6921
|
+
]).pipe(map(([saveSuccess, handleResult]) => {
|
|
6536
6922
|
if (saveSuccess) {
|
|
6537
6923
|
return true;
|
|
6538
6924
|
}
|
|
@@ -6589,7 +6975,7 @@ class DbxActionTransitionSafetyDirective {
|
|
|
6589
6975
|
viewContainerRef: this.viewContainerRef
|
|
6590
6976
|
});
|
|
6591
6977
|
}
|
|
6592
|
-
return this._dialogRef.afterClosed().pipe(first$1(), map
|
|
6978
|
+
return this._dialogRef.afterClosed().pipe(first$1(), map((result = DbxActionTransitionSafetyDialogResult.STAY) => {
|
|
6593
6979
|
// Default to Stay if the user clicks outside.
|
|
6594
6980
|
switch (result) {
|
|
6595
6981
|
case DbxActionTransitionSafetyDialogResult.DISCARD:
|
|
@@ -6608,14 +6994,14 @@ class DbxActionTransitionSafetyDirective {
|
|
|
6608
6994
|
this._dialogRef = undefined;
|
|
6609
6995
|
}
|
|
6610
6996
|
}
|
|
6611
|
-
DbxActionTransitionSafetyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionTransitionSafetyDirective, deps: [{ token: i1.
|
|
6997
|
+
DbxActionTransitionSafetyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionTransitionSafetyDirective, deps: [{ token: i1$2.DbxActionContextStoreSourceInstance }, { token: i2$3.TransitionService }, { token: i0.ViewContainerRef }, { token: i1$3.MatDialog }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6612
6998
|
DbxActionTransitionSafetyDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: DbxActionTransitionSafetyDirective, selector: "[dbxActionTransitionSafety]", inputs: { inputSafetyType: ["dbxActionTransitionSafety", "inputSafetyType"] }, ngImport: i0 });
|
|
6613
6999
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionTransitionSafetyDirective, decorators: [{
|
|
6614
7000
|
type: Directive,
|
|
6615
7001
|
args: [{
|
|
6616
7002
|
selector: '[dbxActionTransitionSafety]',
|
|
6617
7003
|
}]
|
|
6618
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
7004
|
+
}], ctorParameters: function () { return [{ type: i1$2.DbxActionContextStoreSourceInstance }, { type: i2$3.TransitionService }, { type: i0.ViewContainerRef }, { type: i1$3.MatDialog }]; }, propDecorators: { inputSafetyType: [{
|
|
6619
7005
|
type: Input,
|
|
6620
7006
|
args: ['dbxActionTransitionSafety']
|
|
6621
7007
|
}] } });
|
|
@@ -6689,7 +7075,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
6689
7075
|
class DbxWebRootModule {
|
|
6690
7076
|
}
|
|
6691
7077
|
DbxWebRootModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxWebRootModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6692
|
-
DbxWebRootModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxWebRootModule, imports: [i1
|
|
7078
|
+
DbxWebRootModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxWebRootModule, imports: [i1.MatProgressButtonsModule] });
|
|
6693
7079
|
DbxWebRootModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxWebRootModule, imports: [[
|
|
6694
7080
|
MatProgressButtonsModule.forRoot()
|
|
6695
7081
|
]] });
|
|
@@ -6706,5 +7092,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
6706
7092
|
* Generated bundle index. Do not edit.
|
|
6707
7093
|
*/
|
|
6708
7094
|
|
|
6709
|
-
export { APP_POPUP_MINIMIZED_WIDTH, APP_POPUP_NORMAL_HEIGHT, APP_POPUP_NORMAL_WIDTH, AbstractDbxListViewDirective, AbstractDbxListWrapperDirective, AbstractDbxSegueAnchorDirective, AbstractDbxSelectionListWrapperDirective, AbstractDbxSelectionValueListViewItemComponent, AbstractDbxValueListViewDirective, AbstractDialogDirective, AbstractFilterPopoverButtonDirective, AbstractPopoverDirective, AbstractPopoverRefDirective, AbstractPopoverRefWithEventsDirective, AbstractPopupDirective, AbstractPromptConfirmDirective, AbstractSelectionValueListViewDirective, CompactContextStore, CompactMode, DBX_STYLE_DEFAULT_CONFIG_TOKEN, DBX_VALUE_LIST_VIEW_ITEM, DEFAULT_DBX_PROMPT_CONFIRM_DIALOG_CONFIG, DEFAULT_DBX_VALUE_LIST_CONFIG_MAP_VALUES, DEFAULT_FILTER_POPOVER_KEY, DEFAULT_LIST_WRAPPER_DIRECTIVE_TEMPLATE, DEFAULT_LOADING_PROGRESS_DIAMETER, DEFAULT_SCREEN_MEDIA_SERVICE_CONFIG, DEFAULT_STATIC_LIST_DIRECTIVE_TEMPLATE, DbxActionConfirmDirective, DbxActionErrorDirective, DbxActionKeyTriggerDirective, DbxActionModule, DbxActionSnackbarComponent, DbxActionTransitionSafetyDialogResult, DbxActionTransitionSafetyDirective, DbxActionUIRouterTransitionModule, DbxActionUIRouterTransitionSafetyDialogComponent, DbxAnchorComponent, DbxAnchorIconComponent, DbxAnchorLinkComponent, DbxAnchorListComponent, DbxAnchorListModule, DbxAnchorModule, DbxAngularRouterSegueAnchorComponent, DbxBarDirective, DbxBarHeaderComponent, DbxBarLayoutModule, DbxBasicLoadingComponent, DbxBlockLayoutModule, DbxButtonComponent, DbxButtonDisplayType, DbxButtonModule,
|
|
7095
|
+
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, DbxActionDialogDirective, DbxActionErrorDirective, DbxActionKeyTriggerDirective, DbxActionLoadingContextDirective, DbxActionModule, DbxActionPopoverDirective, 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, DbxPopoverComponent, DbxPopoverComponentController, DbxPopoverContentComponent, DbxPopoverController, DbxPopoverControlsDirective, DbxPopoverCoordinatorComponent, DbxPopoverCoordinatorService, DbxPopoverHeaderComponent, DbxPopoverInteractionModule, DbxPopoverScrollContentComponent, DbxPopoverService, DbxPopupComponent, DbxPopupComponentController, DbxPopupContentComponent, DbxPopupControlButtonsComponent, DbxPopupController, DbxPopupControlsComponent, DbxPopupCoordinatorComponent, DbxPopupCoordinatorService, DbxPopupInteractionModule, DbxPopupService, DbxPopupWindowState, DbxPromptBoxComponent, DbxPromptComponent, DbxPromptConfirm, DbxPromptConfirmButtonDirective, DbxPromptConfirmComponent, DbxPromptConfirmDialogComponent, DbxPromptConfirmDirective, DbxPromptConfirmTypes, DbxPromptModule, DbxPromptPageComponent, DbxReadableErrorComponent, DbxReadableErrorModule, DbxRouterLayoutModule, DbxRouterWebProviderConfig, DbxScreenMediaService, DbxScreenMediaServiceConfig, DbxScreenModule, DbxSectionComponent, DbxSectionHeaderComponent, DbxSectionLayoutModule, DbxSectionPageComponent, DbxSelectionValueListItemViewComponent, DbxSelectionValueListViewComponent, DbxSetStyleDirective, DbxSidenavButtonComponent, DbxSidenavComponent, DbxSidenavModule, DbxSidenavPageComponent, DbxSidenavPagebarComponent, DbxSpacerDirective, DbxStepComponent, DbxStepLayoutModule, DbxStyleBodyDirective, DbxStyleDirective, DbxStyleLayoutModule, DbxStyleService, DbxSubSectionComponent, DbxSuccessComponent, DbxTextChipsComponent, DbxTextModule, DbxTwoBlocksComponent, DbxTwoColumnLayoutModule, DbxTwoColumnsBackDirective, DbxTwoColumnsColumnHeadComponent, DbxTwoColumnsComponent, DbxTwoColumnsFullLeftDirective, DbxTwoColumnsRightComponent, DbxTwoColumnsSrefDirective, DbxUIRouterSegueAnchorComponent, DbxValueListViewComponent, DbxWarnComponent, DbxWebAngularRouterModule, DbxWebModule, DbxWebRootModule, DbxWebUIRouterModule, DbxWindowKeyDownListenerDirective, LoadingComponentState, PopoverPositionStrategy, PopupGlobalPositionStrategy, ProvideDbxListView, ProvideDbxPromptConfirm, ProvideTwoColumnsContext, SCREEN_MEDIA_WIDTH_TYPE_SIZE_MAP, SideNavDisplayMode, TwoColumnsContextStore, catchErrorServerParams, compactModeFromInput, compareScreenMediaWidthTypes, convertServerErrorParams, convertToPOJOServerErrorResponse, convertToServerErrorResponse, makeDbxActionSnackbarDisplayConfigGeneratorFunction, mapCompactModeObs, mapItemValuesToValueListItemConfig, mapValuesToValuesListItemConfigObs, screenMediaWidthTypeIsActive };
|
|
6710
7096
|
//# sourceMappingURL=dereekb-dbx-web.mjs.map
|