@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,22 +1,27 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { filterMaybe, LoadingStateType, loadingStateType, skipFirstMaybe, initialize, asObservable, SubscriptionObject, ListLoadingStateContextInstance, loadingStateHasFinishedLoading, beginLoading, getter, LoadingStateContextInstance, switchMapMaybeObs, LockSet } from '@dereekb/rxjs';
|
|
2
|
+
import { Subject, BehaviorSubject, of, switchMap, startWith, shareReplay, distinctUntilChanged, 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
|
|
15
|
-
import * as i1$2 from '@angular/material/toolbar';
|
|
20
|
+
import * as i1$4 from '@angular/material/toolbar';
|
|
16
21
|
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
17
|
-
import * as i3 from '@angular/material/icon';
|
|
22
|
+
import * as i3$1 from '@angular/material/icon';
|
|
18
23
|
import { MatIconModule } from '@angular/material/icon';
|
|
19
|
-
import * as i1$
|
|
24
|
+
import * as i1$5 from '@angular/material/list';
|
|
20
25
|
import { MatListModule } from '@angular/material/list';
|
|
21
26
|
import * as i7 from '@angular/material/tabs';
|
|
22
27
|
import { MatTabsModule } from '@angular/material/tabs';
|
|
@@ -26,18 +31,16 @@ import * as i4 from '@angular/material/divider';
|
|
|
26
31
|
import { MatDividerModule } from '@angular/material/divider';
|
|
27
32
|
import * as i6 from '@angular/material/core';
|
|
28
33
|
import { MatRippleModule } from '@angular/material/core';
|
|
29
|
-
import * as i1$
|
|
34
|
+
import * as i1$6 from '@angular/cdk/layout';
|
|
30
35
|
import * as i3$2 from '@angular/material/sidenav';
|
|
31
36
|
import { MatSidenav, MatSidenavModule } from '@angular/material/sidenav';
|
|
32
37
|
import * as i2$1 from '@uirouter/angular';
|
|
33
38
|
import { UIRouterModule } from '@uirouter/angular';
|
|
34
|
-
import * as i1$
|
|
35
|
-
import { MatProgressButtonsModule } from 'mat-progress-buttons';
|
|
36
|
-
import * as i1$6 from 'angular-resize-event';
|
|
39
|
+
import * as i1$7 from 'angular-resize-event';
|
|
37
40
|
import { AngularResizeEventModule } from 'angular-resize-event';
|
|
38
41
|
import { ComponentStore } from '@ngrx/component-store';
|
|
39
42
|
import { isBoolean } from 'class-validator';
|
|
40
|
-
import * as i1$
|
|
43
|
+
import * as i1$8 from '@angular/material/progress-bar';
|
|
41
44
|
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
42
45
|
import * as i2$2 from '@angular/material/progress-spinner';
|
|
43
46
|
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
@@ -45,22 +48,530 @@ import * as i3$3 from 'ngx-infinite-scroll';
|
|
|
45
48
|
import { InfiniteScrollModule } from 'ngx-infinite-scroll';
|
|
46
49
|
import { HttpErrorResponse } from '@angular/common/http';
|
|
47
50
|
import linkifyStr from 'linkify-string';
|
|
48
|
-
import * as i1$
|
|
49
|
-
import * as i1$
|
|
51
|
+
import * as i1$9 from '@angular/platform-browser';
|
|
52
|
+
import * as i1$a from '@angular/material/chips';
|
|
50
53
|
import { MatChipsModule } from '@angular/material/chips';
|
|
51
54
|
import * as i3$4 from '@angular/material/tooltip';
|
|
52
55
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
53
|
-
import * as i1$
|
|
56
|
+
import * as i1$b from 'ng-overlay-container';
|
|
54
57
|
import { NgOverlayContainerService, NgOverlayContainerModule } from 'ng-overlay-container';
|
|
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
|
+
var _a;
|
|
104
|
+
const buttonIcon = (this.icon) ? {
|
|
105
|
+
fontIcon: this.icon
|
|
106
|
+
} : undefined;
|
|
107
|
+
return {
|
|
108
|
+
fab: false,
|
|
109
|
+
active: this.working,
|
|
110
|
+
buttonIcon,
|
|
111
|
+
customClass: 'dbx-button ' + ((buttonIcon && !this.text) ? 'dbx-button-no-text' : ''),
|
|
112
|
+
// buttonIcon: icon,
|
|
113
|
+
text: (_a = this.text) !== null && _a !== void 0 ? _a : '',
|
|
114
|
+
buttonColor: this.color,
|
|
115
|
+
barColor: 'accent',
|
|
116
|
+
raised: this.raised,
|
|
117
|
+
stroked: this.stroked,
|
|
118
|
+
flat: this.flat,
|
|
119
|
+
mode: 'indeterminate',
|
|
120
|
+
spinnerSize: 18,
|
|
121
|
+
spinnerColor: 'accent',
|
|
122
|
+
// Only disabled if we're not working, in order to show the animation.
|
|
123
|
+
disabled: !this.working && this.disabled
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
DbxButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
128
|
+
DbxButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxButtonComponent, selector: "dbx-button", inputs: { type: "type", raised: "raised", stroked: "stroked", flat: "flat", color: "color" }, providers: ProvideDbxButton(DbxButtonComponent), usesInheritance: true, ngImport: i0, template: `
|
|
129
|
+
<mat-spinner-button class="page-button" (btnClick)="clickButton()" [options]="btnOptions"></mat-spinner-button>
|
|
130
|
+
`, isInline: true, components: [{ type: i1.MatSpinnerButtonComponent, selector: "mat-spinner-button", inputs: ["options", "buttonId", "active", "disabled"], outputs: ["btnClick"] }] });
|
|
131
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonComponent, decorators: [{
|
|
132
|
+
type: Component,
|
|
133
|
+
args: [{
|
|
134
|
+
selector: 'dbx-button',
|
|
135
|
+
template: `
|
|
136
|
+
<mat-spinner-button class="page-button" (btnClick)="clickButton()" [options]="btnOptions"></mat-spinner-button>
|
|
137
|
+
`,
|
|
138
|
+
providers: ProvideDbxButton(DbxButtonComponent)
|
|
139
|
+
}]
|
|
140
|
+
}], propDecorators: { type: [{
|
|
141
|
+
type: Input
|
|
142
|
+
}], raised: [{
|
|
143
|
+
type: Input
|
|
144
|
+
}], stroked: [{
|
|
145
|
+
type: Input
|
|
146
|
+
}], flat: [{
|
|
147
|
+
type: Input
|
|
148
|
+
}], color: [{
|
|
149
|
+
type: Input
|
|
150
|
+
}] } });
|
|
151
|
+
|
|
152
|
+
class DbxSpacerDirective {
|
|
153
|
+
}
|
|
154
|
+
DbxSpacerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSpacerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
155
|
+
DbxSpacerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: DbxSpacerDirective, selector: "dbx-spacer, [dbx-spacer]", host: { classAttribute: "dbx-spacer" }, ngImport: i0 });
|
|
156
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSpacerDirective, decorators: [{
|
|
157
|
+
type: Directive,
|
|
158
|
+
args: [{
|
|
159
|
+
selector: 'dbx-spacer, [dbx-spacer]',
|
|
160
|
+
host: {
|
|
161
|
+
'class': 'dbx-spacer'
|
|
162
|
+
}
|
|
163
|
+
}]
|
|
164
|
+
}] });
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Button spacer directive.
|
|
168
|
+
*/
|
|
169
|
+
class DbxButtonSpacerDirective {
|
|
170
|
+
}
|
|
171
|
+
DbxButtonSpacerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonSpacerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
172
|
+
DbxButtonSpacerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: DbxButtonSpacerDirective, selector: "dbx-button-spacer,dbxButtonSpacer", host: { classAttribute: "dbx-button-spacer d-inline" }, ngImport: i0 });
|
|
173
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonSpacerDirective, decorators: [{
|
|
174
|
+
type: Directive,
|
|
175
|
+
args: [{
|
|
176
|
+
selector: 'dbx-button-spacer,dbxButtonSpacer',
|
|
177
|
+
host: {
|
|
178
|
+
class: 'dbx-button-spacer d-inline'
|
|
179
|
+
}
|
|
180
|
+
}]
|
|
181
|
+
}] });
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Component for a snackbar that contains an action.
|
|
185
|
+
*/
|
|
186
|
+
class DbxActionSnackbarComponent extends AbstractSubscriptionDirective {
|
|
187
|
+
constructor(snackbar, data) {
|
|
188
|
+
var _a, _b, _c;
|
|
189
|
+
super();
|
|
190
|
+
this.snackbar = snackbar;
|
|
191
|
+
this.data = data;
|
|
192
|
+
this._durationTimeout = new Subject();
|
|
193
|
+
this._actionRef = new BehaviorSubject(undefined);
|
|
194
|
+
this.value$ = of(0); // value passed to the action.
|
|
195
|
+
this.sourceInstance$ = this._actionRef.pipe(filterMaybe(), map(x => x === null || x === void 0 ? void 0 : x.sourceInstance));
|
|
196
|
+
this.complete$ = this.sourceInstance$.pipe(switchMap(x => x.isSuccess$), startWith(false), shareReplay(1));
|
|
197
|
+
this.loadingStateType$ = this.sourceInstance$.pipe(switchMap(x => x.loadingStateType$), startWith(LoadingStateType.IDLE), shareReplay(1));
|
|
198
|
+
this.snackbarStatusClass$ = this.loadingStateType$.pipe(map((x) => {
|
|
199
|
+
let classes = 'dbx-action-snackbar-';
|
|
200
|
+
switch (x) {
|
|
201
|
+
case LoadingStateType.ERROR:
|
|
202
|
+
classes += 'error';
|
|
203
|
+
break;
|
|
204
|
+
case LoadingStateType.SUCCESS:
|
|
205
|
+
classes += 'success';
|
|
206
|
+
break;
|
|
207
|
+
default:
|
|
208
|
+
classes += 'idle';
|
|
209
|
+
break;
|
|
210
|
+
}
|
|
211
|
+
return classes;
|
|
212
|
+
}), distinctUntilChanged(), shareReplay(1));
|
|
213
|
+
this.dismissAfterActionCompletes = () => {
|
|
214
|
+
this.snackbar._dismissAfter(ms('3s'));
|
|
215
|
+
};
|
|
216
|
+
this.dismiss = () => {
|
|
217
|
+
this.snackbar.dismiss();
|
|
218
|
+
};
|
|
219
|
+
this.button = (_b = (_a = this.data.action) === null || _a === void 0 ? void 0 : _a.button) !== null && _b !== void 0 ? _b : this.data.button;
|
|
220
|
+
this._actionRef.next((_c = this.data.action) === null || _c === void 0 ? void 0 : _c.reference);
|
|
221
|
+
}
|
|
222
|
+
get action() {
|
|
223
|
+
return this.data.action;
|
|
224
|
+
}
|
|
225
|
+
get hasAction() {
|
|
226
|
+
return Boolean(this._actionRef.value);
|
|
227
|
+
}
|
|
228
|
+
get message() {
|
|
229
|
+
return this.data.message;
|
|
230
|
+
}
|
|
231
|
+
get actionConfig() {
|
|
232
|
+
return this.data.action;
|
|
233
|
+
}
|
|
234
|
+
ngOnInit() {
|
|
235
|
+
// Subscribe and close if the duration is up and the action state is idle.
|
|
236
|
+
this.sub = this._durationTimeout.pipe(switchMap((x) => this.loadingStateType$), filter(x => x === LoadingStateType.IDLE)).subscribe(() => {
|
|
237
|
+
this.dismiss();
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
ngOnDestroy() {
|
|
241
|
+
var _a;
|
|
242
|
+
super.ngOnDestroy();
|
|
243
|
+
(_a = this._actionRef.value) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
244
|
+
this._actionRef.complete();
|
|
245
|
+
this._durationTimeout.complete();
|
|
246
|
+
}
|
|
247
|
+
ngAfterViewInit() {
|
|
248
|
+
var _a, _b;
|
|
249
|
+
// Responsible for hiding itself if it has an action.
|
|
250
|
+
if (this.hasAction) {
|
|
251
|
+
setTimeout(() => {
|
|
252
|
+
this._durationTimeout.next();
|
|
253
|
+
}, (_b = (_a = this.action) === null || _a === void 0 ? void 0 : _a.duration) !== null && _b !== void 0 ? _b : ms('10s'));
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
DbxActionSnackbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionSnackbarComponent, deps: [{ token: i1$1.MatSnackBarRef }, { token: MAT_SNACK_BAR_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
258
|
+
DbxActionSnackbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxActionSnackbarComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<div class=\"dbx-action-snackbar\" [ngClass]=\"(snackbarStatusClass$ | async)!\">\n <ng-container [ngSwitch]=\"complete$ | async\">\n <ng-container *ngSwitchCase=\"true\">\n <dbx-spacer></dbx-spacer>\n <dbx-button (buttonClick)=\"dismiss()\" color=\"accent\" icon=\"done\" text=\"Success\"></dbx-button>\n </ng-container>\n <ng-container *ngSwitchCase=\"false\">\n <span>{{ message }}</span>\n <dbx-spacer></dbx-spacer>\n <ng-container *ngIf=\"hasAction\">\n <dbx-action [dbxActionValueStream]=\"value$\" [dbxActionSource]=\"sourceInstance$ | async\"\n [dbxActionSuccess]=\"dismissAfterActionCompletes\">\n <dbx-button dbxActionButton color=\"warn\" [text]=\"button\"></dbx-button>\n </dbx-action>\n <dbx-button-spacer></dbx-button-spacer>\n </ng-container>\n <dbx-button (buttonClick)=\"dismiss()\" color=\"accent\" icon=\"close\"></dbx-button>\n </ng-container>\n </ng-container>\n</div>\n", components: [{ type: DbxButtonComponent, selector: "dbx-button", inputs: ["type", "raised", "stroked", "flat", "color"] }], directives: [{ type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: DbxSpacerDirective, selector: "dbx-spacer, [dbx-spacer]" }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$2.DbxActionDirective, selector: "dbx-action,[dbxAction],dbx-action-context,[dbxActionContext]", exportAs: ["action", "dbxAction"] }, { type: i1$2.dbxActionValueStreamDirective, selector: "[dbxActionValueStream]", inputs: ["dbxActionValueStream", "dbxActionValueStreamIsNotEmpty", "dbxActionValueStreamModified"] }, { type: i1$2.DbxActionSourceDirective, selector: "[dbxActionSource]", inputs: ["dbxActionSource"] }, { type: i1$2.DbxActionSuccessDirective, selector: "[dbxActionSuccess]", inputs: ["dbxActionSuccess"] }, { type: i1$2.DbxActionButtonDirective, selector: "[dbxActionButton]" }, { type: DbxButtonSpacerDirective, selector: "dbx-button-spacer,dbxButtonSpacer" }], pipes: { "async": i3.AsyncPipe } });
|
|
259
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionSnackbarComponent, decorators: [{
|
|
260
|
+
type: Component,
|
|
261
|
+
args: [{ template: "<div class=\"dbx-action-snackbar\" [ngClass]=\"(snackbarStatusClass$ | async)!\">\n <ng-container [ngSwitch]=\"complete$ | async\">\n <ng-container *ngSwitchCase=\"true\">\n <dbx-spacer></dbx-spacer>\n <dbx-button (buttonClick)=\"dismiss()\" color=\"accent\" icon=\"done\" text=\"Success\"></dbx-button>\n </ng-container>\n <ng-container *ngSwitchCase=\"false\">\n <span>{{ message }}</span>\n <dbx-spacer></dbx-spacer>\n <ng-container *ngIf=\"hasAction\">\n <dbx-action [dbxActionValueStream]=\"value$\" [dbxActionSource]=\"sourceInstance$ | async\"\n [dbxActionSuccess]=\"dismissAfterActionCompletes\">\n <dbx-button dbxActionButton color=\"warn\" [text]=\"button\"></dbx-button>\n </dbx-action>\n <dbx-button-spacer></dbx-button-spacer>\n </ng-container>\n <dbx-button (buttonClick)=\"dismiss()\" color=\"accent\" icon=\"close\"></dbx-button>\n </ng-container>\n </ng-container>\n</div>\n" }]
|
|
262
|
+
}], ctorParameters: function () {
|
|
263
|
+
return [{ type: i1$1.MatSnackBarRef }, { type: undefined, decorators: [{
|
|
264
|
+
type: Inject,
|
|
265
|
+
args: [MAT_SNACK_BAR_DATA]
|
|
266
|
+
}] }];
|
|
267
|
+
} });
|
|
268
|
+
|
|
269
|
+
const DBX_ACTION_SNACKBAR_DEFAULTS = {
|
|
270
|
+
'create': {
|
|
271
|
+
loading: {
|
|
272
|
+
message: 'Creating...'
|
|
273
|
+
},
|
|
274
|
+
success: {
|
|
275
|
+
button: 'Ok',
|
|
276
|
+
message: 'Created'
|
|
277
|
+
},
|
|
278
|
+
error: {
|
|
279
|
+
button: 'X',
|
|
280
|
+
message: 'Create Failed'
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
'save': {
|
|
284
|
+
loading: {
|
|
285
|
+
message: 'Saving...'
|
|
286
|
+
},
|
|
287
|
+
success: {
|
|
288
|
+
button: 'Ok',
|
|
289
|
+
message: 'Saved'
|
|
290
|
+
},
|
|
291
|
+
error: {
|
|
292
|
+
button: 'X',
|
|
293
|
+
message: 'Save Failed'
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
'merge': {
|
|
297
|
+
loading: {
|
|
298
|
+
message: 'Merging...'
|
|
299
|
+
},
|
|
300
|
+
success: {
|
|
301
|
+
button: 'Ok',
|
|
302
|
+
message: 'Merged'
|
|
303
|
+
},
|
|
304
|
+
error: {
|
|
305
|
+
button: 'X',
|
|
306
|
+
message: 'Merge Failed'
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
'delete': {
|
|
310
|
+
loading: {
|
|
311
|
+
message: 'Deleting...'
|
|
312
|
+
},
|
|
313
|
+
success: {
|
|
314
|
+
button: 'Ok',
|
|
315
|
+
message: 'Deleted'
|
|
316
|
+
},
|
|
317
|
+
error: {
|
|
318
|
+
button: 'X',
|
|
319
|
+
message: 'Delete Failed'
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
'cancel': {
|
|
323
|
+
loading: {
|
|
324
|
+
message: 'Cancelling...'
|
|
325
|
+
},
|
|
326
|
+
success: {
|
|
327
|
+
button: 'Ok',
|
|
328
|
+
message: 'Canceled'
|
|
329
|
+
},
|
|
330
|
+
error: {
|
|
331
|
+
button: 'X',
|
|
332
|
+
message: 'Cancel Failed'
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
'restore': {
|
|
336
|
+
loading: {
|
|
337
|
+
message: 'Restoring...'
|
|
338
|
+
},
|
|
339
|
+
success: {
|
|
340
|
+
button: 'Ok',
|
|
341
|
+
message: 'Restored'
|
|
342
|
+
},
|
|
343
|
+
error: {
|
|
344
|
+
button: 'X',
|
|
345
|
+
message: 'Restore Failed'
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
'refresh': {
|
|
349
|
+
loading: {
|
|
350
|
+
message: 'Refreshing...'
|
|
351
|
+
},
|
|
352
|
+
success: {
|
|
353
|
+
button: 'Ok',
|
|
354
|
+
message: 'Refreshed'
|
|
355
|
+
},
|
|
356
|
+
error: {
|
|
357
|
+
button: 'X',
|
|
358
|
+
message: 'Refresh Failed'
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
'do': {
|
|
362
|
+
loading: {
|
|
363
|
+
message: 'Doing...'
|
|
364
|
+
},
|
|
365
|
+
success: {
|
|
366
|
+
button: 'Ok',
|
|
367
|
+
message: 'Done'
|
|
368
|
+
},
|
|
369
|
+
error: {
|
|
370
|
+
button: 'X',
|
|
371
|
+
message: 'Failed'
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
};
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* Creates a DbxActionSnackbarDisplayConfigGeneratorFunction from the input config.
|
|
378
|
+
*
|
|
379
|
+
* @param config
|
|
380
|
+
* @returns
|
|
381
|
+
*/
|
|
382
|
+
function makeDbxActionSnackbarDisplayConfigGeneratorFunction(config) {
|
|
383
|
+
return (input) => {
|
|
384
|
+
const { event, undo: undoInput } = input;
|
|
385
|
+
const type = event.type;
|
|
386
|
+
const eventConfigObjectOrGetter = config[type];
|
|
387
|
+
const eventConfig = eventConfigObjectOrGetter && getValueFromObjectOrGetter(eventConfigObjectOrGetter);
|
|
388
|
+
let result;
|
|
389
|
+
if (eventConfig) {
|
|
390
|
+
const { undoButtonText } = eventConfig;
|
|
391
|
+
result = {
|
|
392
|
+
button: eventConfig.button,
|
|
393
|
+
message: eventConfig.message,
|
|
394
|
+
snackbar: eventConfig.snackbar
|
|
395
|
+
};
|
|
396
|
+
if (undoInput) {
|
|
397
|
+
let reference;
|
|
398
|
+
if (typeof undoInput === 'object') {
|
|
399
|
+
reference = undoInput.getUndoAction();
|
|
400
|
+
}
|
|
401
|
+
else {
|
|
402
|
+
reference = getValueFromObjectOrGetter(undoInput);
|
|
403
|
+
}
|
|
404
|
+
if (!reference) {
|
|
405
|
+
console.error('Expected action source reference was not provided to undo...');
|
|
406
|
+
}
|
|
407
|
+
else {
|
|
408
|
+
result.action = {
|
|
409
|
+
button: undoButtonText !== null && undoButtonText !== void 0 ? undoButtonText : 'Undo',
|
|
410
|
+
reference
|
|
411
|
+
};
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
return result;
|
|
416
|
+
};
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
const DBX_ACTION_SNACKBAR_SERVICE_CONFIG = new InjectionToken('DbxActionSnackbarServiceConfig');
|
|
420
|
+
const DEFAULT_SNACKBAR_DIRECTIVE_DURATION = ms('4s');
|
|
421
|
+
/**
|
|
422
|
+
* Used for managing/configuring the snackbar default values and pushing snackbar events.
|
|
423
|
+
*/
|
|
424
|
+
class DbxActionSnackbarService {
|
|
425
|
+
constructor(matSnackBar, inputConfig) {
|
|
426
|
+
var _a;
|
|
427
|
+
this.matSnackBar = matSnackBar;
|
|
428
|
+
inputConfig = inputConfig !== null && inputConfig !== void 0 ? inputConfig : {};
|
|
429
|
+
this.config = Object.assign(Object.assign({}, inputConfig), { componentClass: (_a = inputConfig.componentClass) !== null && _a !== void 0 ? _a : DbxActionSnackbarComponent, defaultDuration: inputConfig.defaultDuration || DEFAULT_SNACKBAR_DIRECTIVE_DURATION, eventTypeConfigs: mergeObjects([DBX_ACTION_SNACKBAR_DEFAULTS, inputConfig.eventTypeConfigs]) });
|
|
430
|
+
}
|
|
431
|
+
get componentClass() {
|
|
432
|
+
return this.config.componentClass;
|
|
433
|
+
}
|
|
434
|
+
get eventTypeConfigs() {
|
|
435
|
+
return this.config.eventTypeConfigs;
|
|
436
|
+
}
|
|
437
|
+
/**
|
|
438
|
+
* Opens a new snackbar given the input configuration.
|
|
439
|
+
*
|
|
440
|
+
* @param config
|
|
441
|
+
* @returns
|
|
442
|
+
*/
|
|
443
|
+
openSnackbar(config) {
|
|
444
|
+
var _a, _b, _c, _d;
|
|
445
|
+
const { snackbar: inputSnackbarConfig } = config;
|
|
446
|
+
const { snackbar: defaultSnackbarConfig, defaultDuration } = this.config;
|
|
447
|
+
const matSnackbarConfig = Object.assign(Object.assign(Object.assign({}, defaultSnackbarConfig), inputSnackbarConfig), { data: config });
|
|
448
|
+
const duration = (_d = (_c = (_b = (_a = config.action) === null || _a === void 0 ? void 0 : _a.duration) !== null && _b !== void 0 ? _b : matSnackbarConfig.duration) !== null && _c !== void 0 ? _c : defaultDuration) !== null && _d !== void 0 ? _d : DEFAULT_SNACKBAR_DIRECTIVE_DURATION;
|
|
449
|
+
if (config.action) {
|
|
450
|
+
// Set the duration on the action
|
|
451
|
+
config.action = Object.assign(Object.assign({}, config.action), { duration });
|
|
452
|
+
}
|
|
453
|
+
else {
|
|
454
|
+
// The snackbar does not close here. The duration is passed to the component and it will close it.
|
|
455
|
+
matSnackbarConfig.duration = duration;
|
|
456
|
+
}
|
|
457
|
+
return this.matSnackBar.openFromComponent(this.componentClass, matSnackbarConfig);
|
|
458
|
+
}
|
|
459
|
+
generateDisplayConfig(type, input) {
|
|
460
|
+
const configForType = this.eventTypeConfigs[type !== null && type !== void 0 ? type : 'none'];
|
|
461
|
+
let result;
|
|
462
|
+
if (configForType) {
|
|
463
|
+
result = makeDbxActionSnackbarDisplayConfigGeneratorFunction(configForType)(input);
|
|
464
|
+
}
|
|
465
|
+
return result;
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
DbxActionSnackbarService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionSnackbarService, deps: [{ token: i1$1.MatSnackBar }, { token: DBX_ACTION_SNACKBAR_SERVICE_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
469
|
+
DbxActionSnackbarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionSnackbarService, providedIn: 'root' });
|
|
470
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionSnackbarService, decorators: [{
|
|
471
|
+
type: Injectable,
|
|
472
|
+
args: [{
|
|
473
|
+
providedIn: 'root'
|
|
474
|
+
}]
|
|
475
|
+
}], ctorParameters: function () {
|
|
476
|
+
return [{ type: i1$1.MatSnackBar }, { type: undefined, decorators: [{
|
|
477
|
+
type: Optional
|
|
478
|
+
}, {
|
|
479
|
+
type: Inject,
|
|
480
|
+
args: [DBX_ACTION_SNACKBAR_SERVICE_CONFIG]
|
|
481
|
+
}] }];
|
|
482
|
+
} });
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* Action directive that displays a snackbar when the action context hits a certain state.
|
|
486
|
+
*/
|
|
487
|
+
class DbxActionSnackbarDirective extends AbstractSubscriptionDirective {
|
|
488
|
+
constructor(source, dbxActionSnackbarService) {
|
|
489
|
+
super();
|
|
490
|
+
this.source = source;
|
|
491
|
+
this.dbxActionSnackbarService = dbxActionSnackbarService;
|
|
492
|
+
}
|
|
493
|
+
get snackbarFunction() {
|
|
494
|
+
return this._snackbarFunction;
|
|
495
|
+
}
|
|
496
|
+
set snackbarFunction(snackbarFunction) {
|
|
497
|
+
if (snackbarFunction) {
|
|
498
|
+
this._snackbarFunction = snackbarFunction;
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
ngOnInit() {
|
|
502
|
+
this.sub = this.source.pipeStore((store) => store.loadingState$).subscribe((loadingState) => {
|
|
503
|
+
const event = { value: loadingState.value, error: loadingState.error, type: loadingStateType(loadingState) };
|
|
504
|
+
const config = this.buildConfigurationForEvent(event);
|
|
505
|
+
if (config) {
|
|
506
|
+
this.showSnackbarForConfiguration(config, event);
|
|
507
|
+
}
|
|
508
|
+
});
|
|
509
|
+
}
|
|
510
|
+
buildConfigurationForEvent(event) {
|
|
511
|
+
const input = {
|
|
512
|
+
event,
|
|
513
|
+
undo: event.type === LoadingStateType.SUCCESS ? this.dbxActionSnackbarUndo : undefined // only show undo on success.
|
|
514
|
+
};
|
|
515
|
+
return (this.snackbarFunction) ? this.snackbarFunction(input) : this.dbxActionSnackbarService.generateDisplayConfig(this.dbxActionSnackbarDefault, input);
|
|
516
|
+
}
|
|
517
|
+
showSnackbarForConfiguration(config, event) {
|
|
518
|
+
this.dbxActionSnackbarService.openSnackbar(config);
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
DbxActionSnackbarDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionSnackbarDirective, deps: [{ token: i1$2.DbxActionContextStoreSourceInstance, host: true }, { token: DbxActionSnackbarService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
522
|
+
DbxActionSnackbarDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: DbxActionSnackbarDirective, selector: "[dbxActionSnackbar]", inputs: { snackbarFunction: ["dbxActionSnackbar", "snackbarFunction"], dbxActionSnackbarDefault: "dbxActionSnackbarDefault", dbxActionSnackbarUndo: "dbxActionSnackbarUndo" }, usesInheritance: true, ngImport: i0 });
|
|
523
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionSnackbarDirective, decorators: [{
|
|
524
|
+
type: Directive,
|
|
525
|
+
args: [{
|
|
526
|
+
selector: '[dbxActionSnackbar]'
|
|
527
|
+
}]
|
|
528
|
+
}], ctorParameters: function () {
|
|
529
|
+
return [{ type: i1$2.DbxActionContextStoreSourceInstance, decorators: [{
|
|
530
|
+
type: Host
|
|
531
|
+
}] }, { type: DbxActionSnackbarService }];
|
|
532
|
+
}, propDecorators: { snackbarFunction: [{
|
|
533
|
+
type: Input,
|
|
534
|
+
args: ['dbxActionSnackbar']
|
|
535
|
+
}], dbxActionSnackbarDefault: [{
|
|
536
|
+
type: Input
|
|
537
|
+
}], dbxActionSnackbarUndo: [{
|
|
538
|
+
type: Input
|
|
539
|
+
}] } });
|
|
540
|
+
|
|
541
|
+
class DbxButtonModule {
|
|
542
|
+
}
|
|
543
|
+
DbxButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
544
|
+
DbxButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonModule, declarations: [DbxButtonComponent,
|
|
545
|
+
DbxButtonSpacerDirective], imports: [CommonModule,
|
|
546
|
+
MatProgressButtonsModule], exports: [DbxCoreButtonModule,
|
|
547
|
+
MatProgressButtonsModule,
|
|
548
|
+
DbxButtonComponent,
|
|
549
|
+
DbxButtonSpacerDirective] });
|
|
550
|
+
DbxButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonModule, imports: [[
|
|
551
|
+
CommonModule,
|
|
552
|
+
MatProgressButtonsModule
|
|
553
|
+
], DbxCoreButtonModule,
|
|
554
|
+
MatProgressButtonsModule] });
|
|
555
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonModule, decorators: [{
|
|
556
|
+
type: NgModule,
|
|
557
|
+
args: [{
|
|
558
|
+
imports: [
|
|
559
|
+
CommonModule,
|
|
560
|
+
MatProgressButtonsModule
|
|
561
|
+
],
|
|
562
|
+
declarations: [
|
|
563
|
+
DbxButtonComponent,
|
|
564
|
+
DbxButtonSpacerDirective
|
|
565
|
+
],
|
|
566
|
+
exports: [
|
|
567
|
+
DbxCoreButtonModule,
|
|
568
|
+
MatProgressButtonsModule,
|
|
569
|
+
DbxButtonComponent,
|
|
570
|
+
DbxButtonSpacerDirective
|
|
571
|
+
],
|
|
572
|
+
}]
|
|
573
|
+
}] });
|
|
574
|
+
|
|
64
575
|
/**
|
|
65
576
|
* Abstract dialog component that closes when a transition is successful.
|
|
66
577
|
*/
|
|
@@ -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
|
|
@@ -87,10 +601,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
87
601
|
}, {
|
|
88
602
|
type: Inject,
|
|
89
603
|
args: [MAT_DIALOG_DATA]
|
|
90
|
-
}] }, { type: i1$
|
|
604
|
+
}] }, { type: i1$3.MatDialogRef, decorators: [{
|
|
91
605
|
type: Inject,
|
|
92
606
|
args: [MatDialogRef]
|
|
93
|
-
}] }, { type: i1.DbxRouterTransitionService }, { type: i0.NgZone }];
|
|
607
|
+
}] }, { type: i1$2.DbxRouterTransitionService }, { type: i0.NgZone }];
|
|
94
608
|
} });
|
|
95
609
|
|
|
96
610
|
/**
|
|
@@ -116,6 +630,42 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
116
630
|
type: Input
|
|
117
631
|
}] } });
|
|
118
632
|
|
|
633
|
+
/**
|
|
634
|
+
* Action directive that is used to trigger/display a dialog, then watches that dialog for a value.
|
|
635
|
+
*/
|
|
636
|
+
class DbxActionDialogDirective extends AbstractDbxActionValueOnTriggerDirective {
|
|
637
|
+
constructor(elementRef, source) {
|
|
638
|
+
super(source, () => this._getDataFromDialog());
|
|
639
|
+
this.elementRef = elementRef;
|
|
640
|
+
}
|
|
641
|
+
set dbxActionDialogModified(isModifiedFunction) {
|
|
642
|
+
this.isModifiedFunction = isModifiedFunction;
|
|
643
|
+
}
|
|
644
|
+
_getDataFromDialog() {
|
|
645
|
+
return this._makeDialogRef().afterClosed().pipe(first());
|
|
646
|
+
}
|
|
647
|
+
_makeDialogRef() {
|
|
648
|
+
if (!this.fn) {
|
|
649
|
+
throw new Error('dbxActionDialog has no dialog function provided to it.');
|
|
650
|
+
}
|
|
651
|
+
return this.fn();
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
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 });
|
|
655
|
+
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 });
|
|
656
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionDialogDirective, decorators: [{
|
|
657
|
+
type: Directive,
|
|
658
|
+
args: [{
|
|
659
|
+
exportAs: 'dbxActionDialog',
|
|
660
|
+
selector: '[dbxActionDialog]'
|
|
661
|
+
}]
|
|
662
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1$2.DbxActionContextStoreSourceInstance }]; }, propDecorators: { fn: [{
|
|
663
|
+
type: Input,
|
|
664
|
+
args: ['dbxActionDialog']
|
|
665
|
+
}], dbxActionDialogModified: [{
|
|
666
|
+
type: Input
|
|
667
|
+
}] } });
|
|
668
|
+
|
|
119
669
|
const DBX_STYLE_DEFAULT_CONFIG_TOKEN = new InjectionToken('DbxStyleServiceDefaultConfig');
|
|
120
670
|
/**
|
|
121
671
|
* Used for managing styles within an app.
|
|
@@ -144,7 +694,7 @@ class DbxStyleService {
|
|
|
144
694
|
this._suffix.next(suffix);
|
|
145
695
|
}
|
|
146
696
|
getStyleWithConfig(configObs) {
|
|
147
|
-
return combineLatest([configObs, this.suffix$]).pipe(map(([config, suffix]) => {
|
|
697
|
+
return combineLatest([configObs, this.suffix$]).pipe(map$1(([config, suffix]) => {
|
|
148
698
|
let style = config.style;
|
|
149
699
|
if (suffix != null && config.suffixes) {
|
|
150
700
|
const sanitizedSuffix = ((suffix[0] === '-') ? suffix === null || suffix === void 0 ? void 0 : suffix.slice(1) : suffix);
|
|
@@ -203,8 +753,8 @@ class DbxSetStyleDirective extends AbstractSubscriptionDirective {
|
|
|
203
753
|
this._suffixes = new BehaviorSubject(undefined);
|
|
204
754
|
this._style = new BehaviorSubject(undefined);
|
|
205
755
|
this.style$ = this._style.pipe(filterMaybe());
|
|
206
|
-
this.suffixes$ = this._suffixes.pipe(distinctUntilChanged(), map(splitCommaSeparatedStringToSet));
|
|
207
|
-
this.config$ = combineLatest([this.style$, this.suffixes$]).pipe(map(([style, suffixes]) => ({ style, suffixes })), shareReplay(1));
|
|
756
|
+
this.suffixes$ = this._suffixes.pipe(distinctUntilChanged(), map$1(splitCommaSeparatedStringToSet));
|
|
757
|
+
this.config$ = combineLatest([this.style$, this.suffixes$]).pipe(map$1(([style, suffixes]) => ({ style, suffixes })), shareReplay(1));
|
|
208
758
|
this.outputStyle$ = this.styleService.getStyleWithConfig(this.config$);
|
|
209
759
|
this.outputStyle = '';
|
|
210
760
|
}
|
|
@@ -277,20 +827,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
277
827
|
}]
|
|
278
828
|
}], ctorParameters: function () { return [{ type: DbxStyleService }, { type: i0.ChangeDetectorRef }]; } });
|
|
279
829
|
|
|
280
|
-
class DbxSpacerDirective {
|
|
281
|
-
}
|
|
282
|
-
DbxSpacerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSpacerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
283
|
-
DbxSpacerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: DbxSpacerDirective, selector: "dbx-spacer, [dbx-spacer]", host: { classAttribute: "dbx-spacer" }, ngImport: i0 });
|
|
284
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSpacerDirective, decorators: [{
|
|
285
|
-
type: Directive,
|
|
286
|
-
args: [{
|
|
287
|
-
selector: 'dbx-spacer, [dbx-spacer]',
|
|
288
|
-
host: {
|
|
289
|
-
'class': 'dbx-spacer'
|
|
290
|
-
}
|
|
291
|
-
}]
|
|
292
|
-
}] });
|
|
293
|
-
|
|
294
830
|
/**
|
|
295
831
|
* Used to style the body document using the style provided by DbxStyleService.
|
|
296
832
|
*/
|
|
@@ -360,8 +896,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
360
896
|
class DbxDialogInteractionModule {
|
|
361
897
|
}
|
|
362
898
|
DbxDialogInteractionModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxDialogInteractionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
363
|
-
DbxDialogInteractionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxDialogInteractionModule, declarations: [DbxDialogContentDirective
|
|
364
|
-
|
|
899
|
+
DbxDialogInteractionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxDialogInteractionModule, declarations: [DbxDialogContentDirective,
|
|
900
|
+
DbxActionDialogDirective], imports: [CommonModule,
|
|
901
|
+
DbxStyleLayoutModule], exports: [DbxDialogContentDirective,
|
|
902
|
+
DbxActionDialogDirective] });
|
|
365
903
|
DbxDialogInteractionModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxDialogInteractionModule, imports: [[
|
|
366
904
|
CommonModule,
|
|
367
905
|
DbxStyleLayoutModule
|
|
@@ -375,9 +913,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
375
913
|
],
|
|
376
914
|
declarations: [
|
|
377
915
|
DbxDialogContentDirective,
|
|
916
|
+
DbxActionDialogDirective
|
|
378
917
|
],
|
|
379
918
|
exports: [
|
|
380
|
-
DbxDialogContentDirective
|
|
919
|
+
DbxDialogContentDirective,
|
|
920
|
+
DbxActionDialogDirective
|
|
381
921
|
]
|
|
382
922
|
}]
|
|
383
923
|
}] });
|
|
@@ -476,7 +1016,7 @@ DbxBarHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
476
1016
|
<mat-icon class="button-spacer" *ngIf="icon">{{ icon }}</mat-icon>
|
|
477
1017
|
<span *ngIf="text">{{ text }}</span>
|
|
478
1018
|
</dbx-bar>
|
|
479
|
-
`, 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
|
|
1019
|
+
`, 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"] }] });
|
|
480
1020
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxBarHeaderComponent, decorators: [{
|
|
481
1021
|
type: Component,
|
|
482
1022
|
args: [{
|
|
@@ -502,7 +1042,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
502
1042
|
class DbxPagebarComponent {
|
|
503
1043
|
}
|
|
504
1044
|
DbxPagebarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPagebarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
505
|
-
DbxPagebarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxPagebarComponent, selector: "dbx-pagebar", inputs: { color: "color" }, ngImport: i0, template: "<mat-toolbar class=\"dbx-pagebar\" [ngClass]=\"(color) ? ('dbx-bar-' + color) : ''\">\n <ng-content select=\"[left]\"></ng-content>\n <span class=\"spacer\"></span>\n <ng-content select=\"[right]\"></ng-content>\n</mat-toolbar>\n", components: [{ type: i1$
|
|
1045
|
+
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"] }] });
|
|
506
1046
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPagebarComponent, decorators: [{
|
|
507
1047
|
type: Component,
|
|
508
1048
|
args: [{ selector: 'dbx-pagebar', template: "<mat-toolbar class=\"dbx-pagebar\" [ngClass]=\"(color) ? ('dbx-bar-' + color) : ''\">\n <ng-content select=\"[left]\"></ng-content>\n <span class=\"spacer\"></span>\n <ng-content select=\"[right]\"></ng-content>\n</mat-toolbar>\n" }]
|
|
@@ -561,8 +1101,8 @@ class DbxAnchorComponent extends AbstractDbxAnchorDirective {
|
|
|
561
1101
|
this.dbNgxRouterWebProviderConfig = dbNgxRouterWebProviderConfig;
|
|
562
1102
|
this._templateRef = new BehaviorSubject(undefined);
|
|
563
1103
|
this.templateRef$ = this._templateRef.pipe(skipFirstMaybe(), shareReplay$1(1));
|
|
564
|
-
this.url$ = this.anchor$.pipe(map
|
|
565
|
-
this.target$ = this.anchor$.pipe(map
|
|
1104
|
+
this.url$ = this.anchor$.pipe(map(x => x === null || x === void 0 ? void 0 : x.url), distinctUntilChanged$1(), shareReplay$1(1));
|
|
1105
|
+
this.target$ = this.anchor$.pipe(map(x => x === null || x === void 0 ? void 0 : x.target), distinctUntilChanged$1(), shareReplay$1(1));
|
|
566
1106
|
}
|
|
567
1107
|
get templateRef() {
|
|
568
1108
|
return this._templateRef.value;
|
|
@@ -579,7 +1119,7 @@ class DbxAnchorComponent extends AbstractDbxAnchorDirective {
|
|
|
579
1119
|
}
|
|
580
1120
|
}
|
|
581
1121
|
DbxAnchorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxAnchorComponent, deps: [{ token: DbxRouterWebProviderConfig }], target: i0.ɵɵFactoryTarget.Component });
|
|
582
|
-
DbxAnchorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxAnchorComponent, selector: "dbx-anchor, [dbx-anchor]", inputs: { block: "block" }, host: { attributes: { "dbx-anchor-block": "block" }, classAttribute: "d-inline dbx-anchor" }, viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["content"], descendants: true, read: TemplateRef }], usesInheritance: true, ngImport: i0, template: "<ng-container [ngSwitch]=\"(type$ | async)\">\n <!-- Plain -->\n <ng-container *ngSwitchCase=\"0\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </ng-container>\n <!-- Click -->\n <a class=\"dbx-anchor-a dbx-anchor-click\" (click)=\"clickAnchor()\" *ngSwitchCase=\"1\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </a>\n <!-- Router -->\n <dbx-injected-content [config]=\"srefAnchorConfig\" *ngSwitchCase=\"2\">\n <!-- Injected in child. -->\n </dbx-injected-content>\n <!-- Href -->\n <a class=\"dbx-anchor-a dbx-anchor-href\" [href]=\"url$ | async\" [attr.target]=\"target$ | async\"\n *ngSwitchCase=\"3\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </a>\n <!-- Disabled or None -->\n <a class=\"dbx-anchor-a dbx-anchor-disabled\" *ngSwitchDefault>\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </a>\n</ng-container>\n<!-- Template content -->\n<ng-template #content>\n <ng-content></ng-content>\n</ng-template>\n", components: [{ type: i1.DbxInjectedComponent, selector: "dbx-injected-content, [dbx-injected-content]", inputs: ["config", "template"] }], directives: [{ type: i3
|
|
1122
|
+
DbxAnchorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxAnchorComponent, selector: "dbx-anchor, [dbx-anchor]", inputs: { block: "block" }, host: { attributes: { "dbx-anchor-block": "block" }, classAttribute: "d-inline dbx-anchor" }, viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["content"], descendants: true, read: TemplateRef }], usesInheritance: true, ngImport: i0, template: "<ng-container [ngSwitch]=\"(type$ | async)\">\n <!-- Plain -->\n <ng-container *ngSwitchCase=\"0\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </ng-container>\n <!-- Click -->\n <a class=\"dbx-anchor-a dbx-anchor-click\" (click)=\"clickAnchor()\" *ngSwitchCase=\"1\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </a>\n <!-- Router -->\n <dbx-injected-content [config]=\"srefAnchorConfig\" *ngSwitchCase=\"2\">\n <!-- Injected in child. -->\n </dbx-injected-content>\n <!-- Href -->\n <a class=\"dbx-anchor-a dbx-anchor-href\" [href]=\"url$ | async\" [attr.target]=\"target$ | async\"\n *ngSwitchCase=\"3\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </a>\n <!-- Disabled or None -->\n <a class=\"dbx-anchor-a dbx-anchor-disabled\" *ngSwitchDefault>\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </a>\n</ng-container>\n<!-- Template content -->\n<ng-template #content>\n <ng-content></ng-content>\n</ng-template>\n", components: [{ type: i1$2.DbxInjectedComponent, selector: "dbx-injected-content, [dbx-injected-content]", inputs: ["config", "template"] }], directives: [{ type: i3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i3.NgSwitchDefault, selector: "[ngSwitchDefault]" }], pipes: { "async": i3.AsyncPipe } });
|
|
583
1123
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxAnchorComponent, decorators: [{
|
|
584
1124
|
type: Component,
|
|
585
1125
|
args: [{ selector: 'dbx-anchor, [dbx-anchor]', host: {
|
|
@@ -603,7 +1143,7 @@ DbxAnchorIconComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
603
1143
|
<dbx-anchor [anchor]="anchor">
|
|
604
1144
|
<button mat-icon-button><mat-icon>{{ anchor?.icon }}</mat-icon></button>
|
|
605
1145
|
</dbx-anchor>
|
|
606
|
-
`, isInline: true, components: [{ type: DbxAnchorComponent, selector: "dbx-anchor, [dbx-anchor]", inputs: ["block"] }, { type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] });
|
|
1146
|
+
`, 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"] }] });
|
|
607
1147
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxAnchorIconComponent, decorators: [{
|
|
608
1148
|
type: Component,
|
|
609
1149
|
args: [{
|
|
@@ -664,17 +1204,57 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
664
1204
|
type: Input
|
|
665
1205
|
}] } });
|
|
666
1206
|
|
|
1207
|
+
/**
|
|
1208
|
+
* Component that displays an anchor and a span with the title.
|
|
1209
|
+
*/
|
|
1210
|
+
class DbxAnchorContentComponent {
|
|
1211
|
+
constructor(parent) {
|
|
1212
|
+
this.parent = parent;
|
|
1213
|
+
this._parentAnchor = (this.parent) ? this.parent.anchor$ : of(undefined);
|
|
1214
|
+
this._inputAnchor = new BehaviorSubject(undefined);
|
|
1215
|
+
this.anchor$ = combineLatest([this._inputAnchor, this._parentAnchor]).pipe(map$1(([input, parent]) => input !== null && input !== void 0 ? input : parent), shareReplay(1));
|
|
1216
|
+
this.icon$ = this.anchor$.pipe(map$1(x => x === null || x === void 0 ? void 0 : x.icon));
|
|
1217
|
+
this.title$ = this.anchor$.pipe(map$1(x => x === null || x === void 0 ? void 0 : x.title));
|
|
1218
|
+
}
|
|
1219
|
+
set anchor(anchor) {
|
|
1220
|
+
this._inputAnchor.next(anchor);
|
|
1221
|
+
}
|
|
1222
|
+
ngOnDestroy() {
|
|
1223
|
+
this._inputAnchor.complete();
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
1226
|
+
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 });
|
|
1227
|
+
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 } });
|
|
1228
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxAnchorContentComponent, decorators: [{
|
|
1229
|
+
type: Component,
|
|
1230
|
+
args: [{
|
|
1231
|
+
selector: 'dbx-anchor-content',
|
|
1232
|
+
template: `<mat-icon class="dbx-icon-spacer" *ngIf="icon$ | async">{{ icon$ | async }}</mat-icon><span *ngIf="title$ | async">{{ title$ | async }}</span>`,
|
|
1233
|
+
host: {
|
|
1234
|
+
'class': 'dbx-anchor-content'
|
|
1235
|
+
}
|
|
1236
|
+
}]
|
|
1237
|
+
}], ctorParameters: function () {
|
|
1238
|
+
return [{ type: DbxAnchorComponent, decorators: [{
|
|
1239
|
+
type: Optional
|
|
1240
|
+
}] }];
|
|
1241
|
+
}, propDecorators: { anchor: [{
|
|
1242
|
+
type: Input
|
|
1243
|
+
}] } });
|
|
1244
|
+
|
|
667
1245
|
class DbxAnchorModule {
|
|
668
1246
|
}
|
|
669
1247
|
DbxAnchorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxAnchorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
670
1248
|
DbxAnchorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxAnchorModule, declarations: [DbxAnchorComponent,
|
|
671
1249
|
DbxAnchorIconComponent,
|
|
672
|
-
DbxAnchorLinkComponent
|
|
1250
|
+
DbxAnchorLinkComponent,
|
|
1251
|
+
DbxAnchorContentComponent], imports: [CommonModule,
|
|
673
1252
|
MatIconModule,
|
|
674
1253
|
MatButtonModule,
|
|
675
1254
|
DbxInjectedComponentModule], exports: [DbxAnchorComponent,
|
|
676
1255
|
DbxAnchorIconComponent,
|
|
677
|
-
DbxAnchorLinkComponent
|
|
1256
|
+
DbxAnchorLinkComponent,
|
|
1257
|
+
DbxAnchorContentComponent] });
|
|
678
1258
|
DbxAnchorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxAnchorModule, imports: [[
|
|
679
1259
|
CommonModule,
|
|
680
1260
|
MatIconModule,
|
|
@@ -693,12 +1273,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
693
1273
|
declarations: [
|
|
694
1274
|
DbxAnchorComponent,
|
|
695
1275
|
DbxAnchorIconComponent,
|
|
696
|
-
DbxAnchorLinkComponent
|
|
1276
|
+
DbxAnchorLinkComponent,
|
|
1277
|
+
DbxAnchorContentComponent
|
|
697
1278
|
],
|
|
698
1279
|
exports: [
|
|
699
1280
|
DbxAnchorComponent,
|
|
700
1281
|
DbxAnchorIconComponent,
|
|
701
|
-
DbxAnchorLinkComponent
|
|
1282
|
+
DbxAnchorLinkComponent,
|
|
1283
|
+
DbxAnchorContentComponent
|
|
702
1284
|
]
|
|
703
1285
|
}]
|
|
704
1286
|
}] });
|
|
@@ -710,10 +1292,10 @@ class AbstractDbxSegueAnchorDirective {
|
|
|
710
1292
|
constructor(parent) {
|
|
711
1293
|
this.parent = parent;
|
|
712
1294
|
this.target$ = this.parent.target$;
|
|
713
|
-
this.ref$ = this.parent.anchor$.pipe(map
|
|
714
|
-
this.refParams$ = this.parent.anchor$.pipe(map
|
|
715
|
-
this.refOptions$ = this.parent.anchor$.pipe(map
|
|
716
|
-
this.template$ = this.parent.templateRef$.pipe(distinctUntilChanged$1(), map
|
|
1295
|
+
this.ref$ = this.parent.anchor$.pipe(map(x => x === null || x === void 0 ? void 0 : x.ref), distinctUntilChanged$1(), shareReplay$1(1));
|
|
1296
|
+
this.refParams$ = this.parent.anchor$.pipe(map(x => x === null || x === void 0 ? void 0 : x.refParams), distinctUntilChanged$1(), shareReplay$1(1));
|
|
1297
|
+
this.refOptions$ = this.parent.anchor$.pipe(map(x => x === null || x === void 0 ? void 0 : x.refOptions), distinctUntilChanged$1(), shareReplay$1(1));
|
|
1298
|
+
this.template$ = this.parent.templateRef$.pipe(distinctUntilChanged$1(), map(templateRef => ({
|
|
717
1299
|
templateRef
|
|
718
1300
|
})), shareReplay$1(1));
|
|
719
1301
|
}
|
|
@@ -733,7 +1315,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
733
1315
|
class DbxAnchorListComponent {
|
|
734
1316
|
constructor() {
|
|
735
1317
|
this._anchors = new BehaviorSubject([]);
|
|
736
|
-
this.expandedAnchors$ = this._anchors.pipe(distinctUntilChanged(), map(x => expandClickableAnchorLinkTrees(x)), shareReplay(1));
|
|
1318
|
+
this.expandedAnchors$ = this._anchors.pipe(distinctUntilChanged(), map$1(x => expandClickableAnchorLinkTrees(x)), shareReplay(1));
|
|
737
1319
|
}
|
|
738
1320
|
set anchors(anchors) {
|
|
739
1321
|
this._anchors.next(anchors !== null && anchors !== void 0 ? anchors : []);
|
|
@@ -743,7 +1325,7 @@ class DbxAnchorListComponent {
|
|
|
743
1325
|
}
|
|
744
1326
|
}
|
|
745
1327
|
DbxAnchorListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxAnchorListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
746
|
-
DbxAnchorListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxAnchorListComponent, selector: "dbx-anchor-list", inputs: { anchors: "anchors" }, ngImport: i0, template: "<mat-nav-list class=\"dbx-anchor-list\">\n <ng-container *ngFor=\"let expanded of expandedAnchors$ | async; let last = last;\">\n <span dbx-anchor [anchor]=\"expanded.value\">\n <a mat-list-item [ngClass]=\"(expanded.depth) ? 'dbx-anchor-list-child' : 'dbx-anchor-list-root'\">\n <mat-icon mat-list-icon *ngIf=\"expanded.value.icon\">{{ expanded.value.icon }}</mat-icon>\n <!-- TODO: Add an icon from a letter if anchor.icon is unavailable. -->\n <div mat-line>{{ expanded.value.title }}</div>\n <mat-divider *ngIf=\"!last\"></mat-divider>\n </a>\n </span>\n </ng-container>\n</mat-nav-list>\n", components: [{ type: i1$
|
|
1328
|
+
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 } });
|
|
747
1329
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxAnchorListComponent, decorators: [{
|
|
748
1330
|
type: Component,
|
|
749
1331
|
args: [{ selector: 'dbx-anchor-list', template: "<mat-nav-list class=\"dbx-anchor-list\">\n <ng-container *ngFor=\"let expanded of expandedAnchors$ | async; let last = last;\">\n <span dbx-anchor [anchor]=\"expanded.value\">\n <a mat-list-item [ngClass]=\"(expanded.depth) ? 'dbx-anchor-list-child' : 'dbx-anchor-list-root'\">\n <mat-icon mat-list-icon *ngIf=\"expanded.value.icon\">{{ expanded.value.icon }}</mat-icon>\n <!-- TODO: Add an icon from a letter if anchor.icon is unavailable. -->\n <div mat-line>{{ expanded.value.title }}</div>\n <mat-divider *ngIf=\"!last\"></mat-divider>\n </a>\n </span>\n </ng-container>\n</mat-nav-list>\n" }]
|
|
@@ -833,8 +1415,8 @@ class DbxScreenMediaService {
|
|
|
833
1415
|
this._media = _media;
|
|
834
1416
|
this._updateWidth = new Subject();
|
|
835
1417
|
this._updateHeight = new Subject();
|
|
836
|
-
this.widthType$ = this._updateWidth.pipe(initialize(() => this._updateWidth.next()), throttleTime(100, undefined, { leading: true, trailing: true }), map(() => this._readWidthType()), distinctUntilChanged(), shareReplay(1));
|
|
837
|
-
this.heightType$ = this._updateWidth.pipe(initialize(() => this._updateHeight.next()), throttleTime(100, undefined, { leading: true, trailing: true }), map(() => this._readHeightType()), distinctUntilChanged(), shareReplay(1));
|
|
1418
|
+
this.widthType$ = this._updateWidth.pipe(initialize(() => this._updateWidth.next()), throttleTime(100, undefined, { leading: true, trailing: true }), map$1(() => this._readWidthType()), distinctUntilChanged(), shareReplay(1));
|
|
1419
|
+
this.heightType$ = this._updateWidth.pipe(initialize(() => this._updateHeight.next()), throttleTime(100, undefined, { leading: true, trailing: true }), map$1(() => this._readHeightType()), distinctUntilChanged(), shareReplay(1));
|
|
838
1420
|
const { microScreenWidthMax, smallScreenWidthMax, tabletScreenWidthMax, largeScreenWidthMax } = config;
|
|
839
1421
|
this._microQuery = this._media.matchMedia(`screen and (max-width:${microScreenWidthMax}px)`);
|
|
840
1422
|
this._smallQuery = this._media.matchMedia(`screen and (max-width:${smallScreenWidthMax}px)`);
|
|
@@ -864,7 +1446,7 @@ class DbxScreenMediaService {
|
|
|
864
1446
|
* @returns
|
|
865
1447
|
*/
|
|
866
1448
|
isBreakpointActive(inputBreakpoint) {
|
|
867
|
-
return combineLatest([this.widthType$, asObservable(inputBreakpoint)]).pipe(map(([current, breakpoint]) => screenMediaWidthTypeIsActive(current, breakpoint)), distinctUntilChanged(), shareReplay(1));
|
|
1449
|
+
return combineLatest([this.widthType$, asObservable(inputBreakpoint)]).pipe(map$1(([current, breakpoint]) => screenMediaWidthTypeIsActive(current, breakpoint)), distinctUntilChanged(), shareReplay(1));
|
|
868
1450
|
}
|
|
869
1451
|
_readWidthType() {
|
|
870
1452
|
let width;
|
|
@@ -894,11 +1476,11 @@ class DbxScreenMediaService {
|
|
|
894
1476
|
}
|
|
895
1477
|
}
|
|
896
1478
|
}
|
|
897
|
-
DbxScreenMediaService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxScreenMediaService, deps: [{ token: i1$
|
|
1479
|
+
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 });
|
|
898
1480
|
DbxScreenMediaService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxScreenMediaService });
|
|
899
1481
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxScreenMediaService, decorators: [{
|
|
900
1482
|
type: Injectable
|
|
901
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
1483
|
+
}], ctorParameters: function () { return [{ type: i1$6.MediaMatcher }, { type: DbxScreenMediaServiceConfig }]; } });
|
|
902
1484
|
|
|
903
1485
|
/**
|
|
904
1486
|
* Component that displays a navbar.
|
|
@@ -914,10 +1496,10 @@ class DbxNavbarComponent extends AbstractTransitionDirective {
|
|
|
914
1496
|
this._breakpoint = new BehaviorSubject('large');
|
|
915
1497
|
this._anchors = new BehaviorSubject([]);
|
|
916
1498
|
this.isBreakpointActive$ = this._dbxScreenMediaService.isBreakpointActive(this._breakpoint);
|
|
917
|
-
this.mode$ = combineLatest([this._inputMode, this.isBreakpointActive$]).pipe(map(([inputMode, breakpointActive]) => {
|
|
1499
|
+
this.mode$ = combineLatest([this._inputMode, this.isBreakpointActive$]).pipe(map$1(([inputMode, breakpointActive]) => {
|
|
918
1500
|
return (breakpointActive) ? (inputMode !== null && inputMode !== void 0 ? inputMode : 'bar') : 'button';
|
|
919
1501
|
}), distinctUntilChanged(), tapDetectChanges(this.cdRef), shareReplay(1));
|
|
920
|
-
this.anchors$ = combineLatest([this._anchors, this.initAndUpdateOnTransitionSuccess$]).pipe(map(([anchors]) => {
|
|
1502
|
+
this.anchors$ = combineLatest([this._anchors, this.initAndUpdateOnTransitionSuccess$]).pipe(map$1(([anchors]) => {
|
|
921
1503
|
const results = anchors.map((anchor) => {
|
|
922
1504
|
let selected = this._dbxRouterService.isActive(anchor);
|
|
923
1505
|
return {
|
|
@@ -944,14 +1526,14 @@ class DbxNavbarComponent extends AbstractTransitionDirective {
|
|
|
944
1526
|
this._breakpoint.next(breakpoint);
|
|
945
1527
|
}
|
|
946
1528
|
}
|
|
947
|
-
DbxNavbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxNavbarComponent, deps: [{ token: i1.DbxRouterTransitionService }, { token: i0.ChangeDetectorRef }, { token: DbxScreenMediaService }, { token: i1.DbxRouterService }], target: i0.ɵɵFactoryTarget.Component });
|
|
948
|
-
DbxNavbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxNavbarComponent, selector: "dbx-navbar", inputs: { navAlign: "navAlign", anchors: "anchors", mode: "mode", breakpoint: "breakpoint" }, host: { classAttribute: "dbx-navbar" }, usesInheritance: true, ngImport: i0, template: "<ng-container [ngSwitch]=\"mode$ | async\">\n <!-- Button -->\n <ng-container *ngSwitchCase=\"'button'\">\n <button mat-icon-button [matMenuTriggerFor]=\"menu\" class=\"nav-menu-button\" aria-label=\"open navigation\">\n <mat-icon>menu</mat-icon>\n </button>\n <mat-menu #menu>\n <dbx-anchor *ngFor=\"let x of anchors$ | async\" [anchor]=\"x.anchor\">\n <button mat-menu-item [ngClass]=\"(x.selected) ? 'active' : ''\">{{ x.anchor.title }}</button>\n </dbx-anchor>\n </mat-menu>\n </ng-container>\n <!-- Bar -->\n <nav *ngSwitchDefault mat-tab-nav-bar [attr.mat-align-tabs]=\"navAlign\">\n <dbx-anchor *ngFor=\"let x of anchors$ | async\" [anchor]=\"x.anchor\">\n <a mat-tab-link [active]=\"x.selected\">{{ x.anchor.title }}</a>\n </dbx-anchor>\n </nav>\n</ng-container>\n", components: [{ type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: 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
|
|
1529
|
+
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 });
|
|
1530
|
+
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 });
|
|
949
1531
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxNavbarComponent, decorators: [{
|
|
950
1532
|
type: Component,
|
|
951
1533
|
args: [{ selector: 'dbx-navbar', changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
952
1534
|
'class': 'dbx-navbar'
|
|
953
1535
|
}, template: "<ng-container [ngSwitch]=\"mode$ | async\">\n <!-- Button -->\n <ng-container *ngSwitchCase=\"'button'\">\n <button mat-icon-button [matMenuTriggerFor]=\"menu\" class=\"nav-menu-button\" aria-label=\"open navigation\">\n <mat-icon>menu</mat-icon>\n </button>\n <mat-menu #menu>\n <dbx-anchor *ngFor=\"let x of anchors$ | async\" [anchor]=\"x.anchor\">\n <button mat-menu-item [ngClass]=\"(x.selected) ? 'active' : ''\">{{ x.anchor.title }}</button>\n </dbx-anchor>\n </mat-menu>\n </ng-container>\n <!-- Bar -->\n <nav *ngSwitchDefault mat-tab-nav-bar [attr.mat-align-tabs]=\"navAlign\">\n <dbx-anchor *ngFor=\"let x of anchors$ | async\" [anchor]=\"x.anchor\">\n <a mat-tab-link [active]=\"x.selected\">{{ x.anchor.title }}</a>\n </dbx-anchor>\n </nav>\n</ng-container>\n" }]
|
|
954
|
-
}], ctorParameters: function () { return [{ type: i1.DbxRouterTransitionService }, { type: i0.ChangeDetectorRef }, { type: DbxScreenMediaService }, { type: i1.DbxRouterService }]; }, propDecorators: { navAlign: [{
|
|
1536
|
+
}], ctorParameters: function () { return [{ type: i1$2.DbxRouterTransitionService }, { type: i0.ChangeDetectorRef }, { type: DbxScreenMediaService }, { type: i1$2.DbxRouterService }]; }, propDecorators: { navAlign: [{
|
|
955
1537
|
type: Input
|
|
956
1538
|
}], anchors: [{
|
|
957
1539
|
type: Input
|
|
@@ -1033,7 +1615,7 @@ class DbxSidenavComponent extends AbstractTransitionWatcherDirective {
|
|
|
1033
1615
|
constructor(dbxRouterTransitionService, ngZone, _screenMediaService) {
|
|
1034
1616
|
super(dbxRouterTransitionService, ngZone);
|
|
1035
1617
|
this._screenMediaService = _screenMediaService;
|
|
1036
|
-
this.mode$ = this._screenMediaService.widthType$.pipe(distinctUntilChanged(), map((width) => {
|
|
1618
|
+
this.mode$ = this._screenMediaService.widthType$.pipe(distinctUntilChanged(), map$1((width) => {
|
|
1037
1619
|
let mode;
|
|
1038
1620
|
switch (width) {
|
|
1039
1621
|
case 'micro':
|
|
@@ -1050,9 +1632,9 @@ class DbxSidenavComponent extends AbstractTransitionWatcherDirective {
|
|
|
1050
1632
|
}
|
|
1051
1633
|
return mode;
|
|
1052
1634
|
}), shareReplay(1));
|
|
1053
|
-
this.disableBackdrop$ = this.mode$.pipe(map(x => x !== SideNavDisplayMode.MOBILE), distinctUntilChanged(), shareReplay(1));
|
|
1054
|
-
this.sizeClass$ = this.mode$.pipe(map((mode) => `dbx-sidenav-${mode}`), distinctUntilChanged(), shareReplay(1));
|
|
1055
|
-
this.state$ = this.mode$.pipe(map((mode) => {
|
|
1635
|
+
this.disableBackdrop$ = this.mode$.pipe(map$1(x => x !== SideNavDisplayMode.MOBILE), distinctUntilChanged(), shareReplay(1));
|
|
1636
|
+
this.sizeClass$ = this.mode$.pipe(map$1((mode) => `dbx-sidenav-${mode}`), distinctUntilChanged(), shareReplay(1));
|
|
1637
|
+
this.state$ = this.mode$.pipe(map$1((mode) => {
|
|
1056
1638
|
let drawer;
|
|
1057
1639
|
let open;
|
|
1058
1640
|
switch (mode) {
|
|
@@ -1072,7 +1654,7 @@ class DbxSidenavComponent extends AbstractTransitionWatcherDirective {
|
|
|
1072
1654
|
open
|
|
1073
1655
|
};
|
|
1074
1656
|
}), shareReplay(1));
|
|
1075
|
-
this.drawer$ = this.state$.pipe(map(x => x.drawer), distinctUntilChanged(), shareReplay(1));
|
|
1657
|
+
this.drawer$ = this.state$.pipe(map$1(x => x.drawer), distinctUntilChanged(), shareReplay(1));
|
|
1076
1658
|
this._watcherSub = new SubscriptionObject();
|
|
1077
1659
|
this._stateSub = new SubscriptionObject();
|
|
1078
1660
|
}
|
|
@@ -1128,12 +1710,12 @@ class DbxSidenavComponent extends AbstractTransitionWatcherDirective {
|
|
|
1128
1710
|
});
|
|
1129
1711
|
}
|
|
1130
1712
|
}
|
|
1131
|
-
DbxSidenavComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSidenavComponent, deps: [{ token: i1.DbxRouterTransitionService }, { token: i0.NgZone }, { token: DbxScreenMediaService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1132
|
-
DbxSidenavComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxSidenavComponent, selector: "dbx-sidenav", inputs: { anchors: "anchors" }, viewQueries: [{ propertyName: "sidenav", first: true, predicate: MatSidenav, descendants: true, static: true }], exportAs: ["sidenav"], usesInheritance: true, ngImport: i0, template: "<mat-sidenav-container class=\"dbx-sidenav\" [ngClass]=\"(sizeClass$ | async) ?? ''\">\n <mat-sidenav class=\"dbx-sidenav-nav\" [disableClose]=\"disableBackdrop$ | async\" [mode]=\"(drawer$ | async)!\">\n <ng-content select=\"[top]\"></ng-content>\n <dbx-anchor-list class=\"dbx-sidenav-anchor-list\" [anchors]=\"anchors\"></dbx-anchor-list>\n <span class=\"spacer\"></span>\n <ng-content select=\"[bottom]\"></ng-content>\n <div class=\"dbx-sidenav-nav-end\"></div>\n </mat-sidenav>\n <mat-sidenav-content>\n <ng-content></ng-content>\n </mat-sidenav-content>\n</mat-sidenav-container>\n", components: [{ type: i3$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
|
|
1713
|
+
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 });
|
|
1714
|
+
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 } });
|
|
1133
1715
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSidenavComponent, decorators: [{
|
|
1134
1716
|
type: Component,
|
|
1135
1717
|
args: [{ selector: 'dbx-sidenav', exportAs: 'sidenav', template: "<mat-sidenav-container class=\"dbx-sidenav\" [ngClass]=\"(sizeClass$ | async) ?? ''\">\n <mat-sidenav class=\"dbx-sidenav-nav\" [disableClose]=\"disableBackdrop$ | async\" [mode]=\"(drawer$ | async)!\">\n <ng-content select=\"[top]\"></ng-content>\n <dbx-anchor-list class=\"dbx-sidenav-anchor-list\" [anchors]=\"anchors\"></dbx-anchor-list>\n <span class=\"spacer\"></span>\n <ng-content select=\"[bottom]\"></ng-content>\n <div class=\"dbx-sidenav-nav-end\"></div>\n </mat-sidenav>\n <mat-sidenav-content>\n <ng-content></ng-content>\n </mat-sidenav-content>\n</mat-sidenav-container>\n" }]
|
|
1136
|
-
}], ctorParameters: function () { return [{ type: i1.DbxRouterTransitionService }, { type: i0.NgZone }, { type: DbxScreenMediaService }]; }, propDecorators: { anchors: [{
|
|
1718
|
+
}], ctorParameters: function () { return [{ type: i1$2.DbxRouterTransitionService }, { type: i0.NgZone }, { type: DbxScreenMediaService }]; }, propDecorators: { anchors: [{
|
|
1137
1719
|
type: Input
|
|
1138
1720
|
}], sidenav: [{
|
|
1139
1721
|
type: ViewChild,
|
|
@@ -1147,7 +1729,7 @@ class DbxSidenavButtonComponent {
|
|
|
1147
1729
|
constructor(parent) {
|
|
1148
1730
|
this.parent = parent;
|
|
1149
1731
|
this.mode$ = this.parent.mode$;
|
|
1150
|
-
this.showMenuButton$ = this.mode$.pipe(map
|
|
1732
|
+
this.showMenuButton$ = this.mode$.pipe(map(x => x === SideNavDisplayMode.MOBILE));
|
|
1151
1733
|
}
|
|
1152
1734
|
toggleNav() {
|
|
1153
1735
|
this.parent.toggleNav();
|
|
@@ -1158,7 +1740,7 @@ DbxSidenavButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
|
|
|
1158
1740
|
<button class="dbx-sidenav-button" mat-icon-button *ngIf="showMenuButton$ | async" (click)="toggleNav()" aria-label="open sidenav button">
|
|
1159
1741
|
<mat-icon>view_sidebar</mat-icon>
|
|
1160
1742
|
</button>
|
|
1161
|
-
`, isInline: true, components: [{ type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i3
|
|
1743
|
+
`, 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 } });
|
|
1162
1744
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSidenavButtonComponent, decorators: [{
|
|
1163
1745
|
type: Component,
|
|
1164
1746
|
args: [{
|
|
@@ -1171,21 +1753,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
1171
1753
|
}]
|
|
1172
1754
|
}], ctorParameters: function () { return [{ type: DbxSidenavComponent }]; } });
|
|
1173
1755
|
|
|
1174
|
-
/**
|
|
1175
|
-
* Button spacer component.
|
|
1176
|
-
*/
|
|
1177
|
-
class DbxButtonSpacerComponent {
|
|
1178
|
-
}
|
|
1179
|
-
DbxButtonSpacerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonSpacerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1180
|
-
DbxButtonSpacerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxButtonSpacerComponent, selector: "dbx-button-spacer", ngImport: i0, template: `<span class="dbx-button-spacer"></span>`, isInline: true });
|
|
1181
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonSpacerComponent, decorators: [{
|
|
1182
|
-
type: Component,
|
|
1183
|
-
args: [{
|
|
1184
|
-
selector: 'dbx-button-spacer',
|
|
1185
|
-
template: `<span class="dbx-button-spacer"></span>`
|
|
1186
|
-
}]
|
|
1187
|
-
}] });
|
|
1188
|
-
|
|
1189
1756
|
/**
|
|
1190
1757
|
* Pre-configured pagebar used with DbxSidenavComponent.
|
|
1191
1758
|
*/
|
|
@@ -1201,7 +1768,7 @@ DbxSidenavPagebarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
|
|
|
1201
1768
|
</span>
|
|
1202
1769
|
<ng-content right></ng-content>
|
|
1203
1770
|
</dbx-pagebar>
|
|
1204
|
-
`, isInline: true, components: [{ type: DbxPagebarComponent, selector: "dbx-pagebar", inputs: ["color"] }, { type: DbxSidenavButtonComponent, selector: "dbx-sidenav-button" }, { type:
|
|
1771
|
+
`, isInline: true, components: [{ type: DbxPagebarComponent, selector: "dbx-pagebar", inputs: ["color"] }, { type: DbxSidenavButtonComponent, selector: "dbx-sidenav-button" }], directives: [{ type: DbxButtonSpacerDirective, selector: "dbx-button-spacer,dbxButtonSpacer" }] });
|
|
1205
1772
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSidenavPagebarComponent, decorators: [{
|
|
1206
1773
|
type: Component,
|
|
1207
1774
|
args: [{
|
|
@@ -1228,7 +1795,7 @@ class DbxSidenavPageComponent {
|
|
|
1228
1795
|
constructor(parent) {
|
|
1229
1796
|
this.parent = parent;
|
|
1230
1797
|
this._mobileOnly = new BehaviorSubject(false);
|
|
1231
|
-
this.hidePagebar$ = this._mobileOnly.pipe(switchMap((mobileOnly) => (mobileOnly) ? this.parent.mode$.pipe(map(x => x !== SideNavDisplayMode.MOBILE)) : of(true)), shareReplay(1));
|
|
1798
|
+
this.hidePagebar$ = this._mobileOnly.pipe(switchMap((mobileOnly) => (mobileOnly) ? this.parent.mode$.pipe(map$1(x => x !== SideNavDisplayMode.MOBILE)) : of(true)), shareReplay(1));
|
|
1232
1799
|
}
|
|
1233
1800
|
get mobileOnly() {
|
|
1234
1801
|
return this._mobileOnly.value;
|
|
@@ -1248,7 +1815,7 @@ DbxSidenavPageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
|
|
|
1248
1815
|
<ng-content></ng-content>
|
|
1249
1816
|
</div>
|
|
1250
1817
|
</div>
|
|
1251
|
-
`, isInline: true, components: [{ type: DbxSidenavPagebarComponent, selector: "dbx-sidenav-pagebar" }], directives: [{ type: i3
|
|
1818
|
+
`, isInline: true, components: [{ type: DbxSidenavPagebarComponent, selector: "dbx-sidenav-pagebar" }], directives: [{ type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "async": i3.AsyncPipe } });
|
|
1252
1819
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSidenavPageComponent, decorators: [{
|
|
1253
1820
|
type: Component,
|
|
1254
1821
|
args: [{
|
|
@@ -1271,126 +1838,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
1271
1838
|
type: Input
|
|
1272
1839
|
}] } });
|
|
1273
1840
|
|
|
1274
|
-
var DbxButtonDisplayType;
|
|
1275
|
-
(function (DbxButtonDisplayType) {
|
|
1276
|
-
DbxButtonDisplayType[DbxButtonDisplayType["RAISED"] = 0] = "RAISED";
|
|
1277
|
-
DbxButtonDisplayType[DbxButtonDisplayType["STROKED"] = 1] = "STROKED";
|
|
1278
|
-
DbxButtonDisplayType[DbxButtonDisplayType["FLAT"] = 2] = "FLAT";
|
|
1279
|
-
})(DbxButtonDisplayType || (DbxButtonDisplayType = {}));
|
|
1280
|
-
/**
|
|
1281
|
-
* Complex button that supports loading states.
|
|
1282
|
-
*/
|
|
1283
|
-
class DbxButtonComponent extends AbstractDbxButtonDirective {
|
|
1284
|
-
constructor() {
|
|
1285
|
-
super(...arguments);
|
|
1286
|
-
this.color = 'primary';
|
|
1287
|
-
}
|
|
1288
|
-
get raised() {
|
|
1289
|
-
return this.type === DbxButtonDisplayType.RAISED;
|
|
1290
|
-
}
|
|
1291
|
-
set raised(raised) {
|
|
1292
|
-
if (raised) {
|
|
1293
|
-
this.type = DbxButtonDisplayType.RAISED;
|
|
1294
|
-
}
|
|
1295
|
-
}
|
|
1296
|
-
get stroked() {
|
|
1297
|
-
return this.type === DbxButtonDisplayType.STROKED;
|
|
1298
|
-
}
|
|
1299
|
-
set stroked(stroked) {
|
|
1300
|
-
if (stroked) {
|
|
1301
|
-
this.type = DbxButtonDisplayType.STROKED;
|
|
1302
|
-
}
|
|
1303
|
-
}
|
|
1304
|
-
get flat() {
|
|
1305
|
-
return this.type === DbxButtonDisplayType.FLAT;
|
|
1306
|
-
}
|
|
1307
|
-
set flat(flat) {
|
|
1308
|
-
if (flat) {
|
|
1309
|
-
this.type = DbxButtonDisplayType.FLAT;
|
|
1310
|
-
}
|
|
1311
|
-
}
|
|
1312
|
-
get btnOptions() {
|
|
1313
|
-
var _a;
|
|
1314
|
-
const buttonIcon = (this.icon) ? {
|
|
1315
|
-
fontIcon: this.icon
|
|
1316
|
-
} : undefined;
|
|
1317
|
-
return {
|
|
1318
|
-
fab: false,
|
|
1319
|
-
active: this.working,
|
|
1320
|
-
buttonIcon,
|
|
1321
|
-
customClass: 'dbx-button ' + ((buttonIcon && !this.text) ? 'dbx-button-no-text' : ''),
|
|
1322
|
-
// buttonIcon: icon,
|
|
1323
|
-
text: (_a = this.text) !== null && _a !== void 0 ? _a : '',
|
|
1324
|
-
buttonColor: this.color,
|
|
1325
|
-
barColor: 'accent',
|
|
1326
|
-
raised: this.raised,
|
|
1327
|
-
stroked: this.stroked,
|
|
1328
|
-
flat: this.flat,
|
|
1329
|
-
mode: 'indeterminate',
|
|
1330
|
-
spinnerSize: 18,
|
|
1331
|
-
spinnerColor: 'accent',
|
|
1332
|
-
// Only disabled if we're not working, in order to show the animation.
|
|
1333
|
-
disabled: !this.working && this.disabled
|
|
1334
|
-
};
|
|
1335
|
-
}
|
|
1336
|
-
}
|
|
1337
|
-
DbxButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1338
|
-
DbxButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxButtonComponent, selector: "dbx-button", inputs: { type: "type", raised: "raised", stroked: "stroked", flat: "flat", color: "color" }, providers: ProvideDbxButton(DbxButtonComponent), usesInheritance: true, ngImport: i0, template: `
|
|
1339
|
-
<mat-spinner-button class="page-button" (btnClick)="clickButton()" [options]="btnOptions"></mat-spinner-button>
|
|
1340
|
-
`, isInline: true, components: [{ type: i1$5.MatSpinnerButtonComponent, selector: "mat-spinner-button", inputs: ["options", "buttonId", "active", "disabled"], outputs: ["btnClick"] }] });
|
|
1341
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonComponent, decorators: [{
|
|
1342
|
-
type: Component,
|
|
1343
|
-
args: [{
|
|
1344
|
-
selector: 'dbx-button',
|
|
1345
|
-
template: `
|
|
1346
|
-
<mat-spinner-button class="page-button" (btnClick)="clickButton()" [options]="btnOptions"></mat-spinner-button>
|
|
1347
|
-
`,
|
|
1348
|
-
// TODO: styleUrls: ['./button.scss'],
|
|
1349
|
-
providers: ProvideDbxButton(DbxButtonComponent)
|
|
1350
|
-
}]
|
|
1351
|
-
}], propDecorators: { type: [{
|
|
1352
|
-
type: Input
|
|
1353
|
-
}], raised: [{
|
|
1354
|
-
type: Input
|
|
1355
|
-
}], stroked: [{
|
|
1356
|
-
type: Input
|
|
1357
|
-
}], flat: [{
|
|
1358
|
-
type: Input
|
|
1359
|
-
}], color: [{
|
|
1360
|
-
type: Input
|
|
1361
|
-
}] } });
|
|
1362
|
-
|
|
1363
|
-
class DbxButtonModule {
|
|
1364
|
-
}
|
|
1365
|
-
DbxButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1366
|
-
DbxButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonModule, declarations: [DbxButtonComponent,
|
|
1367
|
-
DbxButtonSpacerComponent], imports: [CommonModule,
|
|
1368
|
-
MatProgressButtonsModule], exports: [MatProgressButtonsModule,
|
|
1369
|
-
DbxButtonComponent,
|
|
1370
|
-
DbxButtonSpacerComponent] });
|
|
1371
|
-
DbxButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonModule, imports: [[
|
|
1372
|
-
CommonModule,
|
|
1373
|
-
MatProgressButtonsModule
|
|
1374
|
-
], MatProgressButtonsModule] });
|
|
1375
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxButtonModule, decorators: [{
|
|
1376
|
-
type: NgModule,
|
|
1377
|
-
args: [{
|
|
1378
|
-
imports: [
|
|
1379
|
-
CommonModule,
|
|
1380
|
-
MatProgressButtonsModule
|
|
1381
|
-
],
|
|
1382
|
-
declarations: [
|
|
1383
|
-
DbxButtonComponent,
|
|
1384
|
-
DbxButtonSpacerComponent
|
|
1385
|
-
],
|
|
1386
|
-
exports: [
|
|
1387
|
-
MatProgressButtonsModule,
|
|
1388
|
-
DbxButtonComponent,
|
|
1389
|
-
DbxButtonSpacerComponent
|
|
1390
|
-
],
|
|
1391
|
-
}]
|
|
1392
|
-
}] });
|
|
1393
|
-
|
|
1394
1841
|
/**
|
|
1395
1842
|
* Section used to elevate content in a pre-configured manner.
|
|
1396
1843
|
*/
|
|
@@ -1656,7 +2103,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
1656
2103
|
class DbxAngularRouterSegueAnchorComponent extends AbstractDbxSegueAnchorDirective {
|
|
1657
2104
|
}
|
|
1658
2105
|
DbxAngularRouterSegueAnchorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxAngularRouterSegueAnchorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1659
|
-
DbxAngularRouterSegueAnchorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxAngularRouterSegueAnchorComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<a class=\"dbx-anchor-a dbx-anchor-sref\" [attr.target]=\"target$ | async\" [uiSref]=\"ref$ | async\"\n [uiParams]=\"refParams$ | async\" [uiOptions]=\"refOptions$ | async\">\n <dbx-injected-content></dbx-injected-content>\n</a>\n", components: [{ type: i1.DbxInjectedComponent, selector: "dbx-injected-content, [dbx-injected-content]", inputs: ["config", "template"] }], directives: [{ type: i2$1.AnchorUISref, selector: "a[uiSref]" }, { type: i2$1.UISref, selector: "[uiSref]", inputs: ["uiSref", "uiParams", "uiOptions"], exportAs: ["uiSref"] }], pipes: { "async": i3
|
|
2106
|
+
DbxAngularRouterSegueAnchorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxAngularRouterSegueAnchorComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<a class=\"dbx-anchor-a dbx-anchor-sref\" [attr.target]=\"target$ | async\" [uiSref]=\"ref$ | async\"\n [uiParams]=\"refParams$ | async\" [uiOptions]=\"refOptions$ | async\">\n <dbx-injected-content></dbx-injected-content>\n</a>\n", components: [{ type: i1$2.DbxInjectedComponent, selector: "dbx-injected-content, [dbx-injected-content]", inputs: ["config", "template"] }], directives: [{ type: i2$1.AnchorUISref, selector: "a[uiSref]" }, { type: i2$1.UISref, selector: "[uiSref]", inputs: ["uiSref", "uiParams", "uiOptions"], exportAs: ["uiSref"] }], pipes: { "async": i3.AsyncPipe } });
|
|
1660
2107
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxAngularRouterSegueAnchorComponent, decorators: [{
|
|
1661
2108
|
type: Component,
|
|
1662
2109
|
args: [{ template: "<a class=\"dbx-anchor-a dbx-anchor-sref\" [attr.target]=\"target$ | async\" [uiSref]=\"ref$ | async\"\n [uiParams]=\"refParams$ | async\" [uiOptions]=\"refOptions$ | async\">\n <dbx-injected-content></dbx-injected-content>\n</a>\n" }]
|
|
@@ -1707,7 +2154,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
1707
2154
|
class DbxUIRouterSegueAnchorComponent extends AbstractDbxSegueAnchorDirective {
|
|
1708
2155
|
}
|
|
1709
2156
|
DbxUIRouterSegueAnchorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxUIRouterSegueAnchorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1710
|
-
DbxUIRouterSegueAnchorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxUIRouterSegueAnchorComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<a class=\"dbx-anchor-a dbx-anchor-sref\" [attr.target]=\"target$ | async\" [uiSref]=\"ref$ | async\"\n [uiParams]=\"refParams$ | async\" [uiOptions]=\"refOptions$ | async\" uiSrefActive=\"dbx-anchor-active\" uiSrefActiveEq=\"dbx-anchor-active-eq\">\n <dbx-injected-content [template]=\"template$ | async\"></dbx-injected-content>\n</a>\n", components: [{ type: i1.DbxInjectedComponent, selector: "dbx-injected-content, [dbx-injected-content]", inputs: ["config", "template"] }], directives: [{ type: i2$1.AnchorUISref, selector: "a[uiSref]" }, { type: i2$1.UISrefActive, selector: "[uiSrefActive],[uiSrefActiveEq]", inputs: ["uiSrefActive", "uiSrefActiveEq"] }, { type: i2$1.UISrefStatus, selector: "[uiSrefStatus],[uiSrefActive],[uiSrefActiveEq]", outputs: ["uiSrefStatus"], exportAs: ["uiSrefStatus"] }, { type: i2$1.UISref, selector: "[uiSref]", inputs: ["uiSref", "uiParams", "uiOptions"], exportAs: ["uiSref"] }], pipes: { "async": i3
|
|
2157
|
+
DbxUIRouterSegueAnchorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxUIRouterSegueAnchorComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<a class=\"dbx-anchor-a dbx-anchor-sref\" [attr.target]=\"target$ | async\" [uiSref]=\"ref$ | async\"\n [uiParams]=\"refParams$ | async\" [uiOptions]=\"refOptions$ | async\" uiSrefActive=\"dbx-anchor-active\" uiSrefActiveEq=\"dbx-anchor-active-eq\">\n <dbx-injected-content [template]=\"template$ | async\"></dbx-injected-content>\n</a>\n", components: [{ type: i1$2.DbxInjectedComponent, selector: "dbx-injected-content, [dbx-injected-content]", inputs: ["config", "template"] }], directives: [{ type: i2$1.AnchorUISref, selector: "a[uiSref]" }, { type: i2$1.UISrefActive, selector: "[uiSrefActive],[uiSrefActiveEq]", inputs: ["uiSrefActive", "uiSrefActiveEq"] }, { type: i2$1.UISrefStatus, selector: "[uiSrefStatus],[uiSrefActive],[uiSrefActiveEq]", outputs: ["uiSrefStatus"], exportAs: ["uiSrefStatus"] }, { type: i2$1.UISref, selector: "[uiSref]", inputs: ["uiSref", "uiParams", "uiOptions"], exportAs: ["uiSref"] }], pipes: { "async": i3.AsyncPipe } });
|
|
1711
2158
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxUIRouterSegueAnchorComponent, decorators: [{
|
|
1712
2159
|
type: Component,
|
|
1713
2160
|
args: [{ template: "<a class=\"dbx-anchor-a dbx-anchor-sref\" [attr.target]=\"target$ | async\" [uiSref]=\"ref$ | async\"\n [uiParams]=\"refParams$ | async\" [uiOptions]=\"refOptions$ | async\" uiSrefActive=\"dbx-anchor-active\" uiSrefActiveEq=\"dbx-anchor-active-eq\">\n <dbx-injected-content [template]=\"template$ | async\"></dbx-injected-content>\n</a>\n" }]
|
|
@@ -1783,7 +2230,7 @@ DbxTwoBlocksComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
1783
2230
|
<ng-content></ng-content>
|
|
1784
2231
|
</div>
|
|
1785
2232
|
</div>
|
|
1786
|
-
`, isInline: true, directives: [{ type: i1$
|
|
2233
|
+
`, isInline: true, directives: [{ type: i1$7.ResizedDirective, selector: "[resized]", outputs: ["resized"] }] });
|
|
1787
2234
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxTwoBlocksComponent, decorators: [{
|
|
1788
2235
|
type: Component,
|
|
1789
2236
|
args: [{
|
|
@@ -1854,7 +2301,7 @@ DbxCardBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
|
|
|
1854
2301
|
<ng-content></ng-content>
|
|
1855
2302
|
</div>
|
|
1856
2303
|
</div>
|
|
1857
|
-
`, isInline: true, components: [{ type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i3
|
|
2304
|
+
`, 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"] }] });
|
|
1858
2305
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxCardBoxComponent, decorators: [{
|
|
1859
2306
|
type: Component,
|
|
1860
2307
|
args: [{
|
|
@@ -1944,23 +2391,23 @@ class TwoColumnsContextStore extends ComponentStore {
|
|
|
1944
2391
|
/**
|
|
1945
2392
|
* Pipes the current state of showRight.
|
|
1946
2393
|
*/
|
|
1947
|
-
this.showRight$ = this.state$.pipe(map
|
|
2394
|
+
this.showRight$ = this.state$.pipe(map((x) => x.showRight));
|
|
1948
2395
|
/**
|
|
1949
2396
|
* Convenience function for the showRight compliment.
|
|
1950
2397
|
*/
|
|
1951
|
-
this.hideRight$ = this.state$.pipe(map
|
|
2398
|
+
this.hideRight$ = this.state$.pipe(map((x) => !x.showRight));
|
|
1952
2399
|
/**
|
|
1953
2400
|
* Pipes the current state of fullLeft.
|
|
1954
2401
|
*/
|
|
1955
|
-
this.fullLeft$ = this.state$.pipe(map
|
|
2402
|
+
this.fullLeft$ = this.state$.pipe(map((x) => x.fullLeft));
|
|
1956
2403
|
/**
|
|
1957
2404
|
* Whether or not to show the full left.
|
|
1958
2405
|
*/
|
|
1959
|
-
this.showFullLeft$ = this.state$.pipe(map
|
|
2406
|
+
this.showFullLeft$ = this.state$.pipe(map((x) => !x.showRight && x.fullLeft));
|
|
1960
2407
|
/**
|
|
1961
2408
|
* Pipes the current backRef value.
|
|
1962
2409
|
*/
|
|
1963
|
-
this.backRef$ = this.state$.pipe(map
|
|
2410
|
+
this.backRef$ = this.state$.pipe(map((x) => x.backRef), distinct());
|
|
1964
2411
|
/**
|
|
1965
2412
|
* Emits back events.
|
|
1966
2413
|
*/
|
|
@@ -2053,7 +2500,7 @@ class DbxTwoColumnsComponent {
|
|
|
2053
2500
|
}
|
|
2054
2501
|
}
|
|
2055
2502
|
DbxTwoColumnsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxTwoColumnsComponent, deps: [{ token: TwoColumnsContextStore }], target: i0.ɵɵFactoryTarget.Component });
|
|
2056
|
-
DbxTwoColumnsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxTwoColumnsComponent, selector: "dbx-two-columns", inputs: { reverseSizing: "reverseSizing", inSectionPage: "inSectionPage" }, exportAs: ["columns"], ngImport: i0, template: "<div class=\"two-column\" [ngClass]=\"{ 'two-column-reverse-sizing': reverseSizing, 'right-shown': showRight$ | async, 'full-left': (showFullLeft$ | async), 'dbx-section-page-two': inSectionPage }\">\n <div class=\"left-column\">\n <ng-content select=\"[left]\"></ng-content>\n </div>\n <div class=\"right-column\" *ngIf=\"showRight$ | async\">\n <!-- NOTE: This will only hide the content project. Be sure to use *ngIf separately on the right's content if needed. -->\n <!-- https://github.com/angular/angular/issues/17983 -->\n <ng-content select=\"[right]\"></ng-content>\n </div>\n</div>\n", directives: [{ type: i3
|
|
2503
|
+
DbxTwoColumnsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxTwoColumnsComponent, selector: "dbx-two-columns", inputs: { reverseSizing: "reverseSizing", inSectionPage: "inSectionPage" }, exportAs: ["columns"], ngImport: i0, template: "<div class=\"two-column\" [ngClass]=\"{ 'two-column-reverse-sizing': reverseSizing, 'right-shown': showRight$ | async, 'full-left': (showFullLeft$ | async), 'dbx-section-page-two': inSectionPage }\">\n <div class=\"left-column\">\n <ng-content select=\"[left]\"></ng-content>\n </div>\n <div class=\"right-column\" *ngIf=\"showRight$ | async\">\n <!-- NOTE: This will only hide the content project. Be sure to use *ngIf separately on the right's content if needed. -->\n <!-- https://github.com/angular/angular/issues/17983 -->\n <ng-content select=\"[right]\"></ng-content>\n </div>\n</div>\n", directives: [{ type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i3.AsyncPipe } });
|
|
2057
2504
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxTwoColumnsComponent, decorators: [{
|
|
2058
2505
|
type: Component,
|
|
2059
2506
|
args: [{ selector: 'dbx-two-columns', exportAs: 'columns', template: "<div class=\"two-column\" [ngClass]=\"{ 'two-column-reverse-sizing': reverseSizing, 'right-shown': showRight$ | async, 'full-left': (showFullLeft$ | async), 'dbx-section-page-two': inSectionPage }\">\n <div class=\"left-column\">\n <ng-content select=\"[left]\"></ng-content>\n </div>\n <div class=\"right-column\" *ngIf=\"showRight$ | async\">\n <!-- NOTE: This will only hide the content project. Be sure to use *ngIf separately on the right's content if needed. -->\n <!-- https://github.com/angular/angular/issues/17983 -->\n <ng-content select=\"[right]\"></ng-content>\n </div>\n</div>\n" }]
|
|
@@ -2113,7 +2560,7 @@ DbxTwoColumnsColumnHeadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion:
|
|
|
2113
2560
|
<div class="dbx-two-columns-head" [ngClass]="{ 'block': block, 'full': full }">
|
|
2114
2561
|
<ng-content></ng-content>
|
|
2115
2562
|
</div>
|
|
2116
|
-
`, isInline: true, directives: [{ type: i3
|
|
2563
|
+
`, isInline: true, directives: [{ type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
2117
2564
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxTwoColumnsColumnHeadComponent, decorators: [{
|
|
2118
2565
|
type: Component,
|
|
2119
2566
|
args: [{
|
|
@@ -2169,8 +2616,8 @@ class DbxTwoColumnsRightComponent {
|
|
|
2169
2616
|
this._showBack = new BehaviorSubject(true);
|
|
2170
2617
|
this.ref$ = this.twoColumnsContextStore.backRef$;
|
|
2171
2618
|
this.showBack$ = combineLatest([
|
|
2172
|
-
this._showBack, this.ref$.pipe(map
|
|
2173
|
-
]).pipe(map
|
|
2619
|
+
this._showBack, this.ref$.pipe(map((x) => !Boolean(x))) // TODO: Is this correct? Show back if ref is not defined?
|
|
2620
|
+
]).pipe(map(([a, b]) => a && b));
|
|
2174
2621
|
}
|
|
2175
2622
|
ngAfterViewInit() {
|
|
2176
2623
|
setTimeout(() => {
|
|
@@ -2191,7 +2638,7 @@ class DbxTwoColumnsRightComponent {
|
|
|
2191
2638
|
}
|
|
2192
2639
|
}
|
|
2193
2640
|
DbxTwoColumnsRightComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxTwoColumnsRightComponent, deps: [{ token: TwoColumnsContextStore }], target: i0.ɵɵFactoryTarget.Component });
|
|
2194
|
-
DbxTwoColumnsRightComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxTwoColumnsRightComponent, selector: "dbx-two-columns-right", inputs: { header: "header", showBack: "showBack" }, ngImport: i0, template: "<div class=\"two-columns-right\">\n <dbx-two-columns-head>\n <!-- Back Buttons -->\n <ng-container *ngIf=\"showBack$ | async\">\n <button mat-icon-button class=\"back-button\" (click)=\"backClicked()\" aria-label=\"back button\">\n <mat-icon>navigate_before</mat-icon>\n </button>\n </ng-container>\n <ng-container *ngIf=\"ref$ | async\">\n <dbx-anchor [anchor]=\"ref$ | async\">\n <button mat-icon-button class=\"back-button\" aria-label=\"back button\">\n <mat-icon>navigate_before</mat-icon>\n </button>\n </dbx-anchor>\n </ng-container>\n <span *ngIf=\"header\" class=\"right-nav-title\">{{ header }}</span>\n <span class=\"right-nav-spacer\"></span>\n <span class=\"spacer\"></span>\n <ng-content select=\"[nav]\"></ng-content>\n </dbx-two-columns-head>\n <div class=\"two-columns-right-content\">\n <ng-content></ng-content>\n </div>\n</div>\n", components: [{ type: DbxTwoColumnsColumnHeadComponent, selector: "dbx-two-columns-head", inputs: ["block", "full"] }, { type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: 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
|
|
2641
|
+
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 } });
|
|
2195
2642
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxTwoColumnsRightComponent, decorators: [{
|
|
2196
2643
|
type: Component,
|
|
2197
2644
|
args: [{ selector: 'dbx-two-columns-right', template: "<div class=\"two-columns-right\">\n <dbx-two-columns-head>\n <!-- Back Buttons -->\n <ng-container *ngIf=\"showBack$ | async\">\n <button mat-icon-button class=\"back-button\" (click)=\"backClicked()\" aria-label=\"back button\">\n <mat-icon>navigate_before</mat-icon>\n </button>\n </ng-container>\n <ng-container *ngIf=\"ref$ | async\">\n <dbx-anchor [anchor]=\"ref$ | async\">\n <button mat-icon-button class=\"back-button\" aria-label=\"back button\">\n <mat-icon>navigate_before</mat-icon>\n </button>\n </dbx-anchor>\n </ng-container>\n <span *ngIf=\"header\" class=\"right-nav-title\">{{ header }}</span>\n <span class=\"right-nav-spacer\"></span>\n <span class=\"spacer\"></span>\n <ng-content select=\"[nav]\"></ng-content>\n </dbx-two-columns-head>\n <div class=\"two-columns-right-content\">\n <ng-content></ng-content>\n </div>\n</div>\n" }]
|
|
@@ -2359,7 +2806,7 @@ function compactModeFromInput(input) {
|
|
|
2359
2806
|
function mapCompactModeObs(mode$, config) {
|
|
2360
2807
|
var _a;
|
|
2361
2808
|
const modeObs = mode$ !== null && mode$ !== void 0 ? mode$ : of((_a = config.defaultMode) !== null && _a !== void 0 ? _a : CompactMode.FULL);
|
|
2362
|
-
return modeObs.pipe(map
|
|
2809
|
+
return modeObs.pipe(map((inputMode) => {
|
|
2363
2810
|
const isCompact = ((inputMode !== null && inputMode !== void 0 ? inputMode : config.defaultMode) === CompactMode.COMPACT);
|
|
2364
2811
|
if (isCompact) {
|
|
2365
2812
|
return config.compact;
|
|
@@ -2374,7 +2821,7 @@ class CompactContextStore extends ComponentStore {
|
|
|
2374
2821
|
constructor() {
|
|
2375
2822
|
super({ mode: CompactMode.FULL });
|
|
2376
2823
|
// MARK: Accessors
|
|
2377
|
-
this.mode$ = this.state$.pipe(map
|
|
2824
|
+
this.mode$ = this.state$.pipe(map(x => x.mode));
|
|
2378
2825
|
this.setMode = this.updater((state, mode) => ({ mode: compactModeFromInput(mode) }));
|
|
2379
2826
|
}
|
|
2380
2827
|
}
|
|
@@ -2450,7 +2897,7 @@ DbxFlagComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
|
|
|
2450
2897
|
<ng-content></ng-content>
|
|
2451
2898
|
</mat-toolbar>
|
|
2452
2899
|
</div>
|
|
2453
|
-
`, isInline: true, components: [{ type: i1$
|
|
2900
|
+
`, isInline: true, components: [{ type: i1$4.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }] });
|
|
2454
2901
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxFlagComponent, decorators: [{
|
|
2455
2902
|
type: Component,
|
|
2456
2903
|
args: [{
|
|
@@ -2547,7 +2994,7 @@ class DbxFlexGroupDirective extends AbstractSubscriptionDirective {
|
|
|
2547
2994
|
this.relative = false;
|
|
2548
2995
|
this._small = false;
|
|
2549
2996
|
this._breakpoint = new BehaviorSubject('tablet');
|
|
2550
|
-
this.isSmallScreen$ = this._dbxScreenMediaService.isBreakpointActive(this._breakpoint).pipe(map(x => !x), distinctUntilChanged(), shareReplay(1));
|
|
2997
|
+
this.isSmallScreen$ = this._dbxScreenMediaService.isBreakpointActive(this._breakpoint).pipe(map$1(x => !x), distinctUntilChanged(), shareReplay(1));
|
|
2551
2998
|
}
|
|
2552
2999
|
get small() {
|
|
2553
3000
|
return this._small;
|
|
@@ -2649,7 +3096,7 @@ DbxIconItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
2649
3096
|
</div>
|
|
2650
3097
|
</div>
|
|
2651
3098
|
</div>
|
|
2652
|
-
`, isInline: true, components: [{ type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i3
|
|
3099
|
+
`, 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"] }] });
|
|
2653
3100
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxIconItemComponent, decorators: [{
|
|
2654
3101
|
type: Component,
|
|
2655
3102
|
args: [{
|
|
@@ -2756,7 +3203,7 @@ DbxLoadingProgressComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.
|
|
|
2756
3203
|
</ng-container>
|
|
2757
3204
|
<div *ngIf="text" class="hint">{{ text }}</div>
|
|
2758
3205
|
</div>
|
|
2759
|
-
`, isInline: true, components: [{ type: i1$
|
|
3206
|
+
`, 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"] }] });
|
|
2760
3207
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxLoadingProgressComponent, decorators: [{
|
|
2761
3208
|
type: Component,
|
|
2762
3209
|
args: [{
|
|
@@ -2803,7 +3250,7 @@ class DbxReadableErrorComponent {
|
|
|
2803
3250
|
}
|
|
2804
3251
|
}
|
|
2805
3252
|
DbxReadableErrorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxReadableErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2806
|
-
DbxReadableErrorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxReadableErrorComponent, selector: "dbx-error", inputs: { error: "error" }, ngImport: i0, template: "<div *ngIf=\"error\" class=\"dbx-error\">\n <h4>An error occured.</h4>\n <!-- <p class=\"dbx-error-code\" *ngIf=\"errorData.code\">{{ errorData.code }}</p> -->\n <p class=\"dbx-error-message\" *ngIf=\"message\">{{ message }}</p>\n</div>\n", directives: [{ type: i3
|
|
3253
|
+
DbxReadableErrorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxReadableErrorComponent, selector: "dbx-error", inputs: { error: "error" }, ngImport: i0, template: "<div *ngIf=\"error\" class=\"dbx-error\">\n <h4>An error occured.</h4>\n <!-- <p class=\"dbx-error-code\" *ngIf=\"errorData.code\">{{ errorData.code }}</p> -->\n <p class=\"dbx-error-message\" *ngIf=\"message\">{{ message }}</p>\n</div>\n", directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
2807
3254
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxReadableErrorComponent, decorators: [{
|
|
2808
3255
|
type: Component,
|
|
2809
3256
|
args: [{ selector: 'dbx-error', template: "<div *ngIf=\"error\" class=\"dbx-error\">\n <h4>An error occured.</h4>\n <!-- <p class=\"dbx-error-code\" *ngIf=\"errorData.code\">{{ errorData.code }}</p> -->\n <p class=\"dbx-error-message\" *ngIf=\"message\">{{ message }}</p>\n</div>\n" }]
|
|
@@ -2831,7 +3278,7 @@ class DbxBasicLoadingComponent {
|
|
|
2831
3278
|
this._error = new BehaviorSubject(undefined);
|
|
2832
3279
|
this._customErrorContent = new BehaviorSubject(undefined);
|
|
2833
3280
|
this._customLoadingContent = new BehaviorSubject(undefined);
|
|
2834
|
-
this.state$ = combineLatest([this._loading, this._show, this._error]).pipe(map(([loading, show, error]) => {
|
|
3281
|
+
this.state$ = combineLatest([this._loading, this._show, this._error]).pipe(map$1(([loading, show, error]) => {
|
|
2835
3282
|
let state;
|
|
2836
3283
|
if (error) {
|
|
2837
3284
|
state = LoadingComponentState.ERROR;
|
|
@@ -2848,8 +3295,8 @@ class DbxBasicLoadingComponent {
|
|
|
2848
3295
|
return state;
|
|
2849
3296
|
}), distinctUntilChanged(), startWith(LoadingComponentState.NONE), shareReplay(1));
|
|
2850
3297
|
this.error$ = this._error.asObservable();
|
|
2851
|
-
this.hasNoCustomError$ = this._customErrorContent.pipe(map(x => !checkNgContentWrapperHasContent(x)));
|
|
2852
|
-
this.hasNoCustomLoading$ = this._customLoadingContent.pipe(map(x => !checkNgContentWrapperHasContent(x)));
|
|
3298
|
+
this.hasNoCustomError$ = this._customErrorContent.pipe(map$1(x => !checkNgContentWrapperHasContent(x)));
|
|
3299
|
+
this.hasNoCustomLoading$ = this._customLoadingContent.pipe(map$1(x => !checkNgContentWrapperHasContent(x)));
|
|
2853
3300
|
this.mode = 'indeterminate';
|
|
2854
3301
|
this.color = 'primary';
|
|
2855
3302
|
this.linear = false;
|
|
@@ -2891,7 +3338,7 @@ class DbxBasicLoadingComponent {
|
|
|
2891
3338
|
}
|
|
2892
3339
|
}
|
|
2893
3340
|
DbxBasicLoadingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxBasicLoadingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2894
|
-
DbxBasicLoadingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxBasicLoadingComponent, selector: "dbx-basic-loading", inputs: { diameter: "diameter", mode: "mode", color: "color", text: "text", linear: "linear", show: "show", loading: "loading", error: "error" }, viewQueries: [{ propertyName: "customErrorContent", first: true, predicate: ["customError"], descendants: true }, { propertyName: "customLoadingContent", first: true, predicate: ["customLoading"], descendants: true }], ngImport: i0, template: "<ng-container [ngSwitch]=\"state$ | async\">\n <ng-container *ngSwitchCase=\"0\">\n <!-- Loading -->\n <ng-container *ngTemplateOutlet=\"loadingTemplate\"></ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"1\">\n <!-- Content -->\n <ng-content></ng-content>\n </ng-container>\n <ng-container *ngSwitchCase=\"2\">\n <!-- Error -->\n <ng-container *ngTemplateOutlet=\"errorTemplate\"></ng-container>\n </ng-container>\n</ng-container>\n\n<ng-template #loadingTemplate>\n <dbx-loading-progress *ngIf=\"hasNoCustomLoading$ | async\" [mode]=\"mode\" [color]=\"color\" [text]=\"text\"\n [linear]=\"linear\" [diameter]=\"diameter\"></dbx-loading-progress>\n <div #customLoading>\n <ng-content select=\"[loading]\"></ng-content>\n </div>\n</ng-template>\n\n<ng-template #errorTemplate>\n <dbx-error *ngIf=\"hasNoCustomError$ | async\" [error]=\"error$ | async\"></dbx-error>\n <div #customError>\n <ng-content select=\"[error]\"></ng-content>\n </div>\n <ng-content select=\"[errorAction]\"></ng-content>\n</ng-template>\n", components: [{ type: DbxLoadingProgressComponent, selector: "dbx-loading-progress", inputs: ["text", "linear", "mode", "color", "value", "bufferValue", "diameter"] }, { type: DbxReadableErrorComponent, selector: "dbx-error", inputs: ["error"] }], directives: [{ type: i3
|
|
3341
|
+
DbxBasicLoadingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxBasicLoadingComponent, selector: "dbx-basic-loading", inputs: { diameter: "diameter", mode: "mode", color: "color", text: "text", linear: "linear", show: "show", loading: "loading", error: "error" }, viewQueries: [{ propertyName: "customErrorContent", first: true, predicate: ["customError"], descendants: true }, { propertyName: "customLoadingContent", first: true, predicate: ["customLoading"], descendants: true }], ngImport: i0, template: "<ng-container [ngSwitch]=\"state$ | async\">\n <ng-container *ngSwitchCase=\"0\">\n <!-- Loading -->\n <ng-container *ngTemplateOutlet=\"loadingTemplate\"></ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"1\">\n <!-- Content -->\n <ng-content></ng-content>\n </ng-container>\n <ng-container *ngSwitchCase=\"2\">\n <!-- Error -->\n <ng-container *ngTemplateOutlet=\"errorTemplate\"></ng-container>\n </ng-container>\n</ng-container>\n\n<ng-template #loadingTemplate>\n <dbx-loading-progress *ngIf=\"hasNoCustomLoading$ | async\" [mode]=\"mode\" [color]=\"color\" [text]=\"text\"\n [linear]=\"linear\" [diameter]=\"diameter\"></dbx-loading-progress>\n <div #customLoading>\n <ng-content select=\"[loading]\"></ng-content>\n </div>\n</ng-template>\n\n<ng-template #errorTemplate>\n <dbx-error *ngIf=\"hasNoCustomError$ | async\" [error]=\"error$ | async\"></dbx-error>\n <div #customError>\n <ng-content select=\"[error]\"></ng-content>\n </div>\n <ng-content select=\"[errorAction]\"></ng-content>\n</ng-template>\n", components: [{ type: DbxLoadingProgressComponent, selector: "dbx-loading-progress", inputs: ["text", "linear", "mode", "color", "value", "bufferValue", "diameter"] }, { type: DbxReadableErrorComponent, selector: "dbx-error", inputs: ["error"] }], directives: [{ type: i3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i3.AsyncPipe } });
|
|
2895
3342
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxBasicLoadingComponent, decorators: [{
|
|
2896
3343
|
type: Component,
|
|
2897
3344
|
args: [{ selector: 'dbx-basic-loading', template: "<ng-container [ngSwitch]=\"state$ | async\">\n <ng-container *ngSwitchCase=\"0\">\n <!-- Loading -->\n <ng-container *ngTemplateOutlet=\"loadingTemplate\"></ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"1\">\n <!-- Content -->\n <ng-content></ng-content>\n </ng-container>\n <ng-container *ngSwitchCase=\"2\">\n <!-- Error -->\n <ng-container *ngTemplateOutlet=\"errorTemplate\"></ng-container>\n </ng-container>\n</ng-container>\n\n<ng-template #loadingTemplate>\n <dbx-loading-progress *ngIf=\"hasNoCustomLoading$ | async\" [mode]=\"mode\" [color]=\"color\" [text]=\"text\"\n [linear]=\"linear\" [diameter]=\"diameter\"></dbx-loading-progress>\n <div #customLoading>\n <ng-content select=\"[loading]\"></ng-content>\n </div>\n</ng-template>\n\n<ng-template #errorTemplate>\n <dbx-error *ngIf=\"hasNoCustomError$ | async\" [error]=\"error$ | async\"></dbx-error>\n <div #customError>\n <ng-content select=\"[error]\"></ng-content>\n </div>\n <ng-content select=\"[errorAction]\"></ng-content>\n</ng-template>\n" }]
|
|
@@ -2927,7 +3374,7 @@ class DbxLoadingComponent {
|
|
|
2927
3374
|
this._context = new BehaviorSubject(undefined);
|
|
2928
3375
|
this._inputLoading = new BehaviorSubject(true);
|
|
2929
3376
|
this._inputError = new BehaviorSubject(undefined);
|
|
2930
|
-
this.state$ = combineLatest([this._inputLoading, this._inputError, this._context.pipe(switchMap(x => (x != null) ? x.stream$ : of(undefined)))]).pipe(map(([inputLoading, inputError, loadingState]) => {
|
|
3377
|
+
this.state$ = combineLatest([this._inputLoading, this._inputError, this._context.pipe(switchMap(x => (x != null) ? x.stream$ : of(undefined)))]).pipe(map$1(([inputLoading, inputError, loadingState]) => {
|
|
2931
3378
|
if (loadingState) {
|
|
2932
3379
|
return loadingState;
|
|
2933
3380
|
}
|
|
@@ -2938,8 +3385,8 @@ class DbxLoadingComponent {
|
|
|
2938
3385
|
};
|
|
2939
3386
|
}
|
|
2940
3387
|
}), distinctUntilChanged((a, b) => a.loading === b.loading && a.error === b.error), shareReplay(1));
|
|
2941
|
-
this.loading$ = this.state$.pipe(map(x => x.loading), distinctUntilChanged(), shareReplay(1));
|
|
2942
|
-
this.error$ = this.state$.pipe(map(x => x.error), distinctUntilChanged(), shareReplay(1));
|
|
3388
|
+
this.loading$ = this.state$.pipe(map$1(x => x.loading), distinctUntilChanged(), shareReplay(1));
|
|
3389
|
+
this.error$ = this.state$.pipe(map$1(x => x.error), distinctUntilChanged(), shareReplay(1));
|
|
2943
3390
|
this.mode = 'indeterminate';
|
|
2944
3391
|
this.color = 'primary';
|
|
2945
3392
|
}
|
|
@@ -2975,7 +3422,7 @@ DbxLoadingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
|
|
|
2975
3422
|
<ng-content error select="[error]"></ng-content>
|
|
2976
3423
|
<ng-content errorAction select="[errorAction]"></ng-content>
|
|
2977
3424
|
</dbx-basic-loading>
|
|
2978
|
-
`, isInline: true, components: [{ type: DbxBasicLoadingComponent, selector: "dbx-basic-loading", inputs: ["diameter", "mode", "color", "text", "linear", "show", "loading", "error"] }], pipes: { "async": i3
|
|
3425
|
+
`, isInline: true, components: [{ type: DbxBasicLoadingComponent, selector: "dbx-basic-loading", inputs: ["diameter", "mode", "color", "text", "linear", "show", "loading", "error"] }], pipes: { "async": i3.AsyncPipe } });
|
|
2979
3426
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxLoadingComponent, decorators: [{
|
|
2980
3427
|
type: Component,
|
|
2981
3428
|
args: [{
|
|
@@ -3035,16 +3482,16 @@ class DbxListComponent {
|
|
|
3035
3482
|
this.context = new ListLoadingStateContextInstance({ showLoadingOnNoValue: false });
|
|
3036
3483
|
this.isEmpty$ = this.context.isEmpty$;
|
|
3037
3484
|
this.disabled$ = this._disabled.asObservable();
|
|
3038
|
-
this.hideOnEmpty$ = this._config.pipe(filterMaybe(), map(x => Boolean(x.hideOnEmpty)), distinctUntilChanged(), shareReplay(1));
|
|
3039
|
-
this.invertedList$ = this._config.pipe(filterMaybe(), map(x => Boolean(x === null || x === void 0 ? void 0 : x.throttle)), distinctUntilChanged(), shareReplay(1));
|
|
3040
|
-
this.throttleScroll$ = this._config.pipe(map(x => { var _a; return (_a = (x === null || x === void 0 ? void 0 : x.throttle)) !== null && _a !== void 0 ? _a : this.DEFAULT_THROTTLE_SCROLL; }), distinctUntilChanged(), shareReplay(1));
|
|
3041
|
-
this.scrollDistance$ = this._config.pipe(map(x => { var _a; return (_a = (x === null || x === void 0 ? void 0 : x.scrollDistance)) !== null && _a !== void 0 ? _a : this.DEFAULT_SCROLL_DISTANCE; }), distinctUntilChanged(), shareReplay(1));
|
|
3485
|
+
this.hideOnEmpty$ = this._config.pipe(filterMaybe(), map$1(x => Boolean(x.hideOnEmpty)), distinctUntilChanged(), shareReplay(1));
|
|
3486
|
+
this.invertedList$ = this._config.pipe(filterMaybe(), map$1(x => Boolean(x === null || x === void 0 ? void 0 : x.throttle)), distinctUntilChanged(), shareReplay(1));
|
|
3487
|
+
this.throttleScroll$ = this._config.pipe(map$1(x => { var _a; return (_a = (x === null || x === void 0 ? void 0 : x.throttle)) !== null && _a !== void 0 ? _a : this.DEFAULT_THROTTLE_SCROLL; }), distinctUntilChanged(), shareReplay(1));
|
|
3488
|
+
this.scrollDistance$ = this._config.pipe(map$1(x => { var _a; return (_a = (x === null || x === void 0 ? void 0 : x.scrollDistance)) !== null && _a !== void 0 ? _a : this.DEFAULT_SCROLL_DISTANCE; }), distinctUntilChanged(), shareReplay(1));
|
|
3042
3489
|
this.scrollLoadMoreTrigger$ = this._config.pipe(switchMap((config) => {
|
|
3043
3490
|
const loadNextDirection = (config === null || config === void 0 ? void 0 : config.invertedList) ? 'up' : 'down';
|
|
3044
|
-
return this._scrollTrigger.pipe(filter(x => x === loadNextDirection));
|
|
3491
|
+
return this._scrollTrigger.pipe(filter$1(x => x === loadNextDirection));
|
|
3045
3492
|
}));
|
|
3046
3493
|
this.loadMore$ = merge(this.scrollLoadMoreTrigger$, this._loadMoreTrigger);
|
|
3047
|
-
this.injectedComponentConfig$ = this._config.pipe(distinctUntilChanged(), map((config) => {
|
|
3494
|
+
this.injectedComponentConfig$ = this._config.pipe(distinctUntilChanged(), map$1((config) => {
|
|
3048
3495
|
let injectedComponentConfig;
|
|
3049
3496
|
if (config) {
|
|
3050
3497
|
const { componentClass, init, onClick, onSelectionChange, loadMore } = config;
|
|
@@ -3094,7 +3541,7 @@ class DbxListComponent {
|
|
|
3094
3541
|
}
|
|
3095
3542
|
return injectedComponentConfig;
|
|
3096
3543
|
}), distinctUntilChanged(), shareReplay(1));
|
|
3097
|
-
this.hideContent$ = this.context.stateChange$.pipe(switchMap(() => this.context.state$.pipe(filter((x) => loadingStateHasFinishedLoading(x)), first(), startWith(beginLoading()))), switchMap((state) => {
|
|
3544
|
+
this.hideContent$ = this.context.stateChange$.pipe(switchMap(() => this.context.state$.pipe(filter$1((x) => loadingStateHasFinishedLoading(x)), first(), startWith(beginLoading()))), switchMap((state) => {
|
|
3098
3545
|
if (state === null || state === void 0 ? void 0 : state.loading) {
|
|
3099
3546
|
return of(true);
|
|
3100
3547
|
}
|
|
@@ -3181,7 +3628,7 @@ class DbxListComponent {
|
|
|
3181
3628
|
}
|
|
3182
3629
|
}
|
|
3183
3630
|
DbxListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxListComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
3184
|
-
DbxListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxListComponent, selector: "dbx-list", inputs: { padded: "padded", state$: "state$", config: "config", disabled: "disabled" }, outputs: { contentScrolled: "contentScrolled" }, host: { properties: { "class.dbx-list-padded": "padded" }, classAttribute: "d-block dbx-list" }, ngImport: i0, template: "<dbx-loading [context]=\"context\" [linear]=\"true\"></dbx-loading>\n<div dbx-list-internal-content infinite-scroll [infiniteScrollDistance]=\"(scrollDistance$ | async) ?? DEFAULT_SCROLL_DISTANCE\"\n [infiniteScrollUpDistance]=\"(scrollDistance$ | async) ?? DEFAULT_SCROLL_DISTANCE\" [hide]=\"hideContent$ | async\"\n [infiniteScrollThrottle]=\"(throttleScroll$ | async) ?? DEFAULT_THROTTLE_SCROLL\" [scrollWindow]=\"false\"\n (scrolled)=\"onScrollDown()\" (scrolledUp)=\"onScrollUp()\">\n <ng-content select=\"[top]\"></ng-content>\n <dbx-injected-content [config]=\"injectedComponentConfig$ | async\"></dbx-injected-content>\n <ng-content select=\"[bottom]\"></ng-content>\n</div>\n<ng-content *ngIf=\"isEmpty$ | async\" select=\"[empty]\"></ng-content>\n", components: [{ type: i0.forwardRef(function () { return DbxLoadingComponent; }), selector: "dbx-loading", inputs: ["show", "text", "mode", "color", "diameter", "linear", "context", "loading", "error"] }, { type: i0.forwardRef(function () { return i1.DbxInjectedComponent; }), selector: "dbx-injected-content, [dbx-injected-content]", inputs: ["config", "template"] }], directives: [{ type: i0.forwardRef(function () { return DbxListInternalContentDirective; }), selector: "[dbx-list-internal-content]", inputs: ["hide"] }, { type: i0.forwardRef(function () { return i3$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
|
|
3631
|
+
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; }) } });
|
|
3185
3632
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxListComponent, decorators: [{
|
|
3186
3633
|
type: Component,
|
|
3187
3634
|
args: [{ selector: 'dbx-list', host: {
|
|
@@ -3251,7 +3698,7 @@ class AbstractDbxListWrapperDirective {
|
|
|
3251
3698
|
constructor(initConfig) {
|
|
3252
3699
|
this.initConfig = initConfig;
|
|
3253
3700
|
this._init = new BehaviorSubject(undefined);
|
|
3254
|
-
this.config$ = this._init.pipe(filterMaybe(), getter(), map((x) => this._buildListConfig(x)), shareReplay(1));
|
|
3701
|
+
this.config$ = this._init.pipe(filterMaybe(), getter(), map$1((x) => this._buildListConfig(x)), shareReplay(1));
|
|
3255
3702
|
this.clickItem = new EventEmitter();
|
|
3256
3703
|
this.loadMore = new EventEmitter();
|
|
3257
3704
|
}
|
|
@@ -3317,7 +3764,7 @@ class DbxActionErrorDirective extends AbstractSubscriptionDirective {
|
|
|
3317
3764
|
});
|
|
3318
3765
|
}
|
|
3319
3766
|
}
|
|
3320
|
-
DbxActionErrorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionErrorDirective, deps: [{ token: DbxReadableErrorComponent, host: true }, { token: i1.
|
|
3767
|
+
DbxActionErrorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionErrorDirective, deps: [{ token: DbxReadableErrorComponent, host: true }, { token: i1$2.DbxActionContextStoreSourceInstance }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3321
3768
|
DbxActionErrorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: DbxActionErrorDirective, selector: "[dbxActionError]", usesInheritance: true, ngImport: i0 });
|
|
3322
3769
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionErrorDirective, decorators: [{
|
|
3323
3770
|
type: Directive,
|
|
@@ -3327,7 +3774,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
3327
3774
|
}], ctorParameters: function () {
|
|
3328
3775
|
return [{ type: DbxReadableErrorComponent, decorators: [{
|
|
3329
3776
|
type: Host
|
|
3330
|
-
}] }, { type: i1.
|
|
3777
|
+
}] }, { type: i1$2.DbxActionContextStoreSourceInstance }];
|
|
3331
3778
|
} });
|
|
3332
3779
|
|
|
3333
3780
|
/**
|
|
@@ -3459,19 +3906,53 @@ function catchErrorServerParams(action, mapError = (error) => error) {
|
|
|
3459
3906
|
return catchError$1((error) => of(action(mapError(convertServerErrorParams(error)))));
|
|
3460
3907
|
}
|
|
3461
3908
|
|
|
3909
|
+
/**
|
|
3910
|
+
* Context used for linking a loadingComponent to an ActionContext by providing a LoadingContext.
|
|
3911
|
+
*/
|
|
3912
|
+
class DbxActionLoadingContextDirective {
|
|
3913
|
+
constructor(loadingComponent, source) {
|
|
3914
|
+
this.loadingComponent = loadingComponent;
|
|
3915
|
+
this.source = source;
|
|
3916
|
+
this._context = new LoadingStateContextInstance({ obs: this.source.loadingState$ });
|
|
3917
|
+
}
|
|
3918
|
+
get context() {
|
|
3919
|
+
return this._context;
|
|
3920
|
+
}
|
|
3921
|
+
ngOnInit() {
|
|
3922
|
+
this.loadingComponent.context = this._context;
|
|
3923
|
+
}
|
|
3924
|
+
ngOnDestroy() {
|
|
3925
|
+
this._context.destroy();
|
|
3926
|
+
}
|
|
3927
|
+
}
|
|
3928
|
+
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 });
|
|
3929
|
+
DbxActionLoadingContextDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: DbxActionLoadingContextDirective, selector: "[dbxActionLoadingContext]", ngImport: i0 });
|
|
3930
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionLoadingContextDirective, decorators: [{
|
|
3931
|
+
type: Directive,
|
|
3932
|
+
args: [{
|
|
3933
|
+
selector: '[dbxActionLoadingContext]'
|
|
3934
|
+
}]
|
|
3935
|
+
}], ctorParameters: function () {
|
|
3936
|
+
return [{ type: DbxLoadingComponent, decorators: [{
|
|
3937
|
+
type: Host
|
|
3938
|
+
}] }, { type: i1$2.DbxActionContextStoreSourceInstance }];
|
|
3939
|
+
} });
|
|
3940
|
+
|
|
3462
3941
|
class DbxLoadingModule {
|
|
3463
3942
|
}
|
|
3464
3943
|
DbxLoadingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxLoadingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3465
3944
|
DbxLoadingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxLoadingModule, declarations: [DbxLoadingComponent,
|
|
3466
3945
|
DbxBasicLoadingComponent,
|
|
3467
|
-
DbxLoadingProgressComponent
|
|
3946
|
+
DbxLoadingProgressComponent,
|
|
3947
|
+
DbxActionLoadingContextDirective], imports: [CommonModule,
|
|
3468
3948
|
DbxReadableErrorModule,
|
|
3469
3949
|
MatProgressSpinnerModule,
|
|
3470
3950
|
MatProgressBarModule], exports: [DbxLoadingComponent,
|
|
3471
3951
|
DbxBasicLoadingComponent,
|
|
3472
3952
|
DbxLoadingProgressComponent,
|
|
3473
3953
|
MatProgressSpinnerModule,
|
|
3474
|
-
MatProgressBarModule
|
|
3954
|
+
MatProgressBarModule,
|
|
3955
|
+
DbxActionLoadingContextDirective] });
|
|
3475
3956
|
DbxLoadingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxLoadingModule, imports: [[
|
|
3476
3957
|
CommonModule,
|
|
3477
3958
|
DbxReadableErrorModule,
|
|
@@ -3491,14 +3972,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
3491
3972
|
declarations: [
|
|
3492
3973
|
DbxLoadingComponent,
|
|
3493
3974
|
DbxBasicLoadingComponent,
|
|
3494
|
-
DbxLoadingProgressComponent
|
|
3975
|
+
DbxLoadingProgressComponent,
|
|
3976
|
+
DbxActionLoadingContextDirective
|
|
3495
3977
|
],
|
|
3496
3978
|
exports: [
|
|
3497
3979
|
DbxLoadingComponent,
|
|
3498
3980
|
DbxBasicLoadingComponent,
|
|
3499
3981
|
DbxLoadingProgressComponent,
|
|
3500
3982
|
MatProgressSpinnerModule,
|
|
3501
|
-
MatProgressBarModule
|
|
3983
|
+
MatProgressBarModule,
|
|
3984
|
+
DbxActionLoadingContextDirective
|
|
3502
3985
|
]
|
|
3503
3986
|
}]
|
|
3504
3987
|
}] });
|
|
@@ -3507,7 +3990,7 @@ const DBX_VALUE_LIST_VIEW_ITEM = new InjectionToken('DbxValueListViewItem');
|
|
|
3507
3990
|
const DEFAULT_DBX_VALUE_LIST_CONFIG_MAP_VALUES = (values) => of(values.map(value => ({ value })));
|
|
3508
3991
|
function mapValuesToValuesListItemConfigObs(listViewConfig, values) {
|
|
3509
3992
|
var _a;
|
|
3510
|
-
return ((_a = listViewConfig.mapValuesToItemValues) !== null && _a !== void 0 ? _a : DEFAULT_DBX_VALUE_LIST_CONFIG_MAP_VALUES)(values).pipe(map((itemValues) => {
|
|
3993
|
+
return ((_a = listViewConfig.mapValuesToItemValues) !== null && _a !== void 0 ? _a : DEFAULT_DBX_VALUE_LIST_CONFIG_MAP_VALUES)(values).pipe(map$1((itemValues) => {
|
|
3511
3994
|
const items = mapItemValuesToValueListItemConfig(listViewConfig, itemValues);
|
|
3512
3995
|
return items;
|
|
3513
3996
|
}));
|
|
@@ -3579,13 +4062,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
3579
4062
|
class DbxSelectionValueListViewComponent extends AbstractDbxValueListViewDirective {
|
|
3580
4063
|
constructor(dbxListView) {
|
|
3581
4064
|
super(dbxListView);
|
|
3582
|
-
this.multiple$ = this.config$.pipe(map(x => { var _a; return (_a = x.multiple) !== null && _a !== void 0 ? _a : true; }), distinctUntilChanged(), shareReplay(1));
|
|
4065
|
+
this.multiple$ = this.config$.pipe(map$1(x => { var _a; return (_a = x.multiple) !== null && _a !== void 0 ? _a : true; }), distinctUntilChanged(), shareReplay(1));
|
|
3583
4066
|
}
|
|
3584
4067
|
}
|
|
3585
4068
|
DbxSelectionValueListViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSelectionValueListViewComponent, deps: [{ token: DbxListView }], target: i0.ɵɵFactoryTarget.Component });
|
|
3586
4069
|
DbxSelectionValueListViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxSelectionValueListViewComponent, selector: "dbx-selection-list-view", usesInheritance: true, ngImport: i0, template: `
|
|
3587
4070
|
<dbx-selection-list-view-content [multiple]="multiple$ | async" [items]="items$ | async"></dbx-selection-list-view-content>
|
|
3588
|
-
`, isInline: true, components: [{ type: i0.forwardRef(function () { return DbxSelectionValueListItemViewComponent; }), selector: "dbx-selection-list-view-content", inputs: ["multiple", "items"] }], pipes: { "async": i0.forwardRef(function () { return i3
|
|
4071
|
+
`, isInline: true, components: [{ type: i0.forwardRef(function () { return DbxSelectionValueListItemViewComponent; }), selector: "dbx-selection-list-view-content", inputs: ["multiple", "items"] }], pipes: { "async": i0.forwardRef(function () { return i3.AsyncPipe; }) } });
|
|
3589
4072
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSelectionValueListViewComponent, decorators: [{
|
|
3590
4073
|
type: Component,
|
|
3591
4074
|
args: [{
|
|
@@ -3629,7 +4112,7 @@ DbxSelectionValueListItemViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVe
|
|
|
3629
4112
|
<div dbx-injected-content [config]="item.config"></div>
|
|
3630
4113
|
</mat-list-option>
|
|
3631
4114
|
</mat-selection-list>
|
|
3632
|
-
`, isInline: true, components: [{ type: i1$
|
|
4115
|
+
`, 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 } });
|
|
3633
4116
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSelectionValueListItemViewComponent, decorators: [{
|
|
3634
4117
|
type: Component,
|
|
3635
4118
|
args: [{
|
|
@@ -3658,7 +4141,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
3658
4141
|
class DbxValueListViewComponent extends AbstractDbxValueListViewDirective {
|
|
3659
4142
|
constructor() {
|
|
3660
4143
|
super(...arguments);
|
|
3661
|
-
this.emitAllClicks$ = this.config$.pipe(map(x => x.emitAllClicks), shareReplay(1));
|
|
4144
|
+
this.emitAllClicks$ = this.config$.pipe(map$1(x => x.emitAllClicks), shareReplay(1));
|
|
3662
4145
|
}
|
|
3663
4146
|
onClickItem(item) {
|
|
3664
4147
|
// do not emit clicks for disabled items.
|
|
@@ -3682,7 +4165,7 @@ DbxValueListViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
|
|
|
3682
4165
|
</a>
|
|
3683
4166
|
</dbx-anchor>
|
|
3684
4167
|
</mat-nav-list>
|
|
3685
|
-
`, isInline: true, components: [{ type: i1$
|
|
4168
|
+
`, 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 } });
|
|
3686
4169
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxValueListViewComponent, decorators: [{
|
|
3687
4170
|
type: Component,
|
|
3688
4171
|
args: [{
|
|
@@ -3858,11 +4341,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
3858
4341
|
* Component used to style a section's header.
|
|
3859
4342
|
*/
|
|
3860
4343
|
class DbxSectionHeaderComponent {
|
|
4344
|
+
get showTitle() {
|
|
4345
|
+
return Boolean(this.header || this.icon);
|
|
4346
|
+
}
|
|
3861
4347
|
}
|
|
3862
4348
|
DbxSectionHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSectionHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3863
4349
|
DbxSectionHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxSectionHeaderComponent, selector: ".dbx-section-header", inputs: { h: "h", header: "header", icon: "icon", hint: "hint" }, ngImport: i0, template: `
|
|
3864
4350
|
<div class="dbx-section-header-content">
|
|
3865
|
-
<ng-container [ngSwitch]="h ?? 1">
|
|
4351
|
+
<ng-container [ngSwitch]="showTitle && (h ?? 1)">
|
|
3866
4352
|
<h1 *ngSwitchCase="1" class="dbx-section-header-content-title">
|
|
3867
4353
|
<ng-container *ngTemplateOutlet="headerContentTitleTemplate"></ng-container>
|
|
3868
4354
|
</h1>
|
|
@@ -3886,14 +4372,14 @@ DbxSectionHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
|
|
|
3886
4372
|
<ng-template #headerContentTitleTemplate>
|
|
3887
4373
|
<mat-icon *ngIf="icon">{{icon}}</mat-icon><span class="title-text">{{ header }}</span>
|
|
3888
4374
|
</ng-template>
|
|
3889
|
-
`, isInline: true, components: [{ type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i3
|
|
4375
|
+
`, 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"] }] });
|
|
3890
4376
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxSectionHeaderComponent, decorators: [{
|
|
3891
4377
|
type: Component,
|
|
3892
4378
|
args: [{
|
|
3893
4379
|
selector: '.dbx-section-header',
|
|
3894
4380
|
template: `
|
|
3895
4381
|
<div class="dbx-section-header-content">
|
|
3896
|
-
<ng-container [ngSwitch]="h ?? 1">
|
|
4382
|
+
<ng-container [ngSwitch]="showTitle && (h ?? 1)">
|
|
3897
4383
|
<h1 *ngSwitchCase="1" class="dbx-section-header-content-title">
|
|
3898
4384
|
<ng-container *ngTemplateOutlet="headerContentTitleTemplate"></ng-container>
|
|
3899
4385
|
</h1>
|
|
@@ -3999,7 +4485,7 @@ DbxIntroActionSectionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
|
3999
4485
|
<ng-content></ng-content>
|
|
4000
4486
|
</ng-container>
|
|
4001
4487
|
</div>
|
|
4002
|
-
`, isInline: true, components: [{ type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i3
|
|
4488
|
+
`, isInline: true, components: [{ type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }] });
|
|
4003
4489
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxIntroActionSectionComponent, decorators: [{
|
|
4004
4490
|
type: Component,
|
|
4005
4491
|
args: [{
|
|
@@ -4147,7 +4633,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
4147
4633
|
class DbxStepComponent {
|
|
4148
4634
|
}
|
|
4149
4635
|
DbxStepComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxStepComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4150
|
-
DbxStepComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxStepComponent, selector: "dbx-step", inputs: { done: "done", step: "step", text: "text", hint: "hint" }, ngImport: i0, template: "<div class=\"step-section\" [ngClass]=\"(done) ? 'done' : ''\">\n <div class=\"step-section-header\">\n <span class=\"step\">{{ step }}.</span>\n <mat-icon class=\"done-check\" *ngIf=\"done\">done</mat-icon>\n <span class=\"text\">{{ text }}</span>\n <p *ngIf=\"hint\" class=\"hint\">{{ hint }}</p>\n </div>\n <div class=\"step-section-content\">\n <ng-content></ng-content>\n </div>\n</div>\n", components: [{ type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i3
|
|
4636
|
+
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"] }] });
|
|
4151
4637
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxStepComponent, decorators: [{
|
|
4152
4638
|
type: Component,
|
|
4153
4639
|
args: [{ selector: 'dbx-step', template: "<div class=\"step-section\" [ngClass]=\"(done) ? 'done' : ''\">\n <div class=\"step-section-header\">\n <span class=\"step\">{{ step }}.</span>\n <mat-icon class=\"done-check\" *ngIf=\"done\">done</mat-icon>\n <span class=\"text\">{{ text }}</span>\n <p *ngIf=\"hint\" class=\"hint\">{{ hint }}</p>\n </div>\n <div class=\"step-section-content\">\n <ng-content></ng-content>\n </div>\n</div>\n" }]
|
|
@@ -4201,6 +4687,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
4201
4687
|
}]
|
|
4202
4688
|
}] });
|
|
4203
4689
|
|
|
4690
|
+
/**
|
|
4691
|
+
* Icon spacer directive.
|
|
4692
|
+
*/
|
|
4693
|
+
class DbxIconSpacerDirective {
|
|
4694
|
+
}
|
|
4695
|
+
DbxIconSpacerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxIconSpacerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4696
|
+
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 });
|
|
4697
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxIconSpacerDirective, decorators: [{
|
|
4698
|
+
type: Directive,
|
|
4699
|
+
args: [{
|
|
4700
|
+
selector: 'dbx-icon-spacer,dbxIconSpacer',
|
|
4701
|
+
host: {
|
|
4702
|
+
class: 'dbx-icon-spacer d-inline'
|
|
4703
|
+
}
|
|
4704
|
+
}]
|
|
4705
|
+
}] });
|
|
4706
|
+
|
|
4204
4707
|
class DbxLabelComponent {
|
|
4205
4708
|
}
|
|
4206
4709
|
DbxLabelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxLabelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -4223,13 +4726,13 @@ class DbxLinkifyComponent {
|
|
|
4223
4726
|
constructor(sanitizer) {
|
|
4224
4727
|
this.sanitizer = sanitizer;
|
|
4225
4728
|
this._text = new BehaviorSubject('');
|
|
4226
|
-
this.linkifiedText$ = this._text.pipe(distinctUntilChanged$1(), map
|
|
4729
|
+
this.linkifiedText$ = this._text.pipe(distinctUntilChanged$1(), map(x => linkifyStr(x, {
|
|
4227
4730
|
defaultProtocol: 'https',
|
|
4228
4731
|
target: {
|
|
4229
4732
|
url: '_blank'
|
|
4230
4733
|
}
|
|
4231
4734
|
})), shareReplay$1(1));
|
|
4232
|
-
this.linkifiedBody$ = this.linkifiedText$.pipe(map
|
|
4735
|
+
this.linkifiedBody$ = this.linkifiedText$.pipe(map(x => {
|
|
4233
4736
|
return this.sanitizer.bypassSecurityTrustHtml(x);
|
|
4234
4737
|
}), shareReplay$1(1));
|
|
4235
4738
|
}
|
|
@@ -4243,15 +4746,15 @@ class DbxLinkifyComponent {
|
|
|
4243
4746
|
this._text.next(text);
|
|
4244
4747
|
}
|
|
4245
4748
|
}
|
|
4246
|
-
DbxLinkifyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxLinkifyComponent, deps: [{ token: i1$
|
|
4247
|
-
DbxLinkifyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxLinkifyComponent, selector: "dbx-linkify", inputs: { text: "text" }, ngImport: i0, template: `<span class="dbx-linkify" [innerHTML]="linkifiedBody$ | async"></span>`, isInline: true, pipes: { "async": i3
|
|
4749
|
+
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 });
|
|
4750
|
+
DbxLinkifyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxLinkifyComponent, selector: "dbx-linkify", inputs: { text: "text" }, ngImport: i0, template: `<span class="dbx-linkify" [innerHTML]="linkifiedBody$ | async"></span>`, isInline: true, pipes: { "async": i3.AsyncPipe } });
|
|
4248
4751
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxLinkifyComponent, decorators: [{
|
|
4249
4752
|
type: Component,
|
|
4250
4753
|
args: [{
|
|
4251
4754
|
selector: 'dbx-linkify',
|
|
4252
4755
|
template: `<span class="dbx-linkify" [innerHTML]="linkifiedBody$ | async"></span>`
|
|
4253
4756
|
}]
|
|
4254
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
4757
|
+
}], ctorParameters: function () { return [{ type: i1$9.DomSanitizer }]; }, propDecorators: { text: [{
|
|
4255
4758
|
type: Input
|
|
4256
4759
|
}] } });
|
|
4257
4760
|
|
|
@@ -4324,7 +4827,7 @@ DbxTextChipsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
4324
4827
|
{{chip.text}}
|
|
4325
4828
|
</mat-chip>
|
|
4326
4829
|
</mat-chip-list>
|
|
4327
|
-
`, isInline: true, components: [{ type: i1$
|
|
4830
|
+
`, 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"] }] });
|
|
4328
4831
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxTextChipsComponent, decorators: [{
|
|
4329
4832
|
type: Component,
|
|
4330
4833
|
args: [{
|
|
@@ -4367,7 +4870,8 @@ DbxTextModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version:
|
|
|
4367
4870
|
DbxLabelComponent,
|
|
4368
4871
|
DbxLinkifyComponent,
|
|
4369
4872
|
DbxOkComponent,
|
|
4370
|
-
DbxTextChipsComponent
|
|
4873
|
+
DbxTextChipsComponent,
|
|
4874
|
+
DbxIconSpacerDirective], imports: [CommonModule,
|
|
4371
4875
|
MatChipsModule,
|
|
4372
4876
|
MatTooltipModule,
|
|
4373
4877
|
MatIconModule], exports: [DbxNoteComponent,
|
|
@@ -4378,7 +4882,8 @@ DbxTextModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version:
|
|
|
4378
4882
|
DbxLabelComponent,
|
|
4379
4883
|
DbxLinkifyComponent,
|
|
4380
4884
|
DbxOkComponent,
|
|
4381
|
-
DbxTextChipsComponent
|
|
4885
|
+
DbxTextChipsComponent,
|
|
4886
|
+
DbxIconSpacerDirective] });
|
|
4382
4887
|
DbxTextModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxTextModule, imports: [[
|
|
4383
4888
|
CommonModule,
|
|
4384
4889
|
MatChipsModule,
|
|
@@ -4403,7 +4908,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
4403
4908
|
DbxLabelComponent,
|
|
4404
4909
|
DbxLinkifyComponent,
|
|
4405
4910
|
DbxOkComponent,
|
|
4406
|
-
DbxTextChipsComponent
|
|
4911
|
+
DbxTextChipsComponent,
|
|
4912
|
+
DbxIconSpacerDirective
|
|
4407
4913
|
],
|
|
4408
4914
|
exports: [
|
|
4409
4915
|
DbxNoteComponent,
|
|
@@ -4414,7 +4920,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
4414
4920
|
DbxLabelComponent,
|
|
4415
4921
|
DbxLinkifyComponent,
|
|
4416
4922
|
DbxOkComponent,
|
|
4417
|
-
DbxTextChipsComponent
|
|
4923
|
+
DbxTextChipsComponent,
|
|
4924
|
+
DbxIconSpacerDirective
|
|
4418
4925
|
],
|
|
4419
4926
|
}]
|
|
4420
4927
|
}] });
|
|
@@ -4519,7 +5026,7 @@ class DbxPopoverCoordinatorComponent {
|
|
|
4519
5026
|
constructor(service, popover) {
|
|
4520
5027
|
this.service = service;
|
|
4521
5028
|
this.popover = popover;
|
|
4522
|
-
this.isPopoverForKey$ = this.service.popovers$.pipe(map
|
|
5029
|
+
this.isPopoverForKey$ = this.service.popovers$.pipe(map(x => x.get(this.popover.key) === this.popover), shareReplay$1(1));
|
|
4523
5030
|
this.show$ = this.isPopoverForKey$.pipe(delay$1(0));
|
|
4524
5031
|
}
|
|
4525
5032
|
ngOnInit() {
|
|
@@ -4534,7 +5041,7 @@ DbxPopoverCoordinatorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
|
4534
5041
|
<ng-container *ngIf="show$ | async">
|
|
4535
5042
|
<ng-content></ng-content>
|
|
4536
5043
|
</ng-container>
|
|
4537
|
-
`, isInline: true, directives: [{ type: i3
|
|
5044
|
+
`, isInline: true, directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i3.AsyncPipe } });
|
|
4538
5045
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverCoordinatorComponent, decorators: [{
|
|
4539
5046
|
type: Component,
|
|
4540
5047
|
args: [{
|
|
@@ -4609,8 +5116,8 @@ class DbxPopoverComponent extends AbstractTransitionWatcherDirective {
|
|
|
4609
5116
|
this._startedClosing = false;
|
|
4610
5117
|
this._closing = new Subject();
|
|
4611
5118
|
this._triggerCloseKeys = [];
|
|
4612
|
-
this.isClosing$ = this._closing.pipe(first$1(), map
|
|
4613
|
-
this.closing$ = this.isClosing$.pipe(filter
|
|
5119
|
+
this.isClosing$ = this._closing.pipe(first$1(), map(x => true), startWith$1(false), shareReplay$1(1));
|
|
5120
|
+
this.closing$ = this.isClosing$.pipe(filter(x => x));
|
|
4614
5121
|
// Override Close to properly signal to listeners when a close is occuring.
|
|
4615
5122
|
const originalClose = this.popoverRef.close;
|
|
4616
5123
|
this.popoverRef.close = (x) => {
|
|
@@ -4679,7 +5186,7 @@ class DbxPopoverComponent extends AbstractTransitionWatcherDirective {
|
|
|
4679
5186
|
this.close();
|
|
4680
5187
|
}
|
|
4681
5188
|
}
|
|
4682
|
-
DbxPopoverComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverComponent, deps: [{ token: i1$
|
|
5189
|
+
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 });
|
|
4683
5190
|
DbxPopoverComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxPopoverComponent, selector: "ng-component", providers: [{
|
|
4684
5191
|
provide: DbxPopoverController,
|
|
4685
5192
|
useExisting: DbxPopoverComponent
|
|
@@ -4689,7 +5196,7 @@ DbxPopoverComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
|
|
|
4689
5196
|
<dbx-popover-coordinator (dbxWindowKeyDownListener)="handleKeydown($event)" [appWindowKeyDownFilter]="triggerCloseKeys">
|
|
4690
5197
|
<div dbx-style class="dbx-popover-component" dbx-injected-content [config]="contentConfig"></div>
|
|
4691
5198
|
</dbx-popover-coordinator>
|
|
4692
|
-
`, isInline: true, components: [{ type: DbxPopoverCoordinatorComponent, selector: "dbx-popover-coordinator" }, { type: i1.DbxInjectedComponent, selector: "dbx-injected-content, [dbx-injected-content]", inputs: ["config", "template"] }], directives: [{ type: DbxWindowKeyDownListenerDirective, selector: "[dbxWindowKeyDownListener]", inputs: ["appWindowKeyDownEnabled", "appWindowKeyDownFilter"], outputs: ["dbxWindowKeyDownListener"] }, { type: DbxStyleDirective, selector: "dbx-style, [dbx-style], .dbx-style" }] });
|
|
5199
|
+
`, isInline: true, components: [{ type: DbxPopoverCoordinatorComponent, selector: "dbx-popover-coordinator" }, { type: i1$2.DbxInjectedComponent, selector: "dbx-injected-content, [dbx-injected-content]", inputs: ["config", "template"] }], directives: [{ type: DbxWindowKeyDownListenerDirective, selector: "[dbxWindowKeyDownListener]", inputs: ["appWindowKeyDownEnabled", "appWindowKeyDownFilter"], outputs: ["dbxWindowKeyDownListener"] }, { type: DbxStyleDirective, selector: "dbx-style, [dbx-style], .dbx-style" }] });
|
|
4693
5200
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverComponent, decorators: [{
|
|
4694
5201
|
type: Component,
|
|
4695
5202
|
args: [{
|
|
@@ -4705,7 +5212,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
4705
5212
|
provide: CompactContextStore
|
|
4706
5213
|
}]
|
|
4707
5214
|
}]
|
|
4708
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
5215
|
+
}], ctorParameters: function () { return [{ type: i1$b.NgPopoverRef }, { type: CompactContextStore }, { type: i1$2.DbxRouterTransitionService }, { type: i0.NgZone }]; } });
|
|
4709
5216
|
|
|
4710
5217
|
/**
|
|
4711
5218
|
* Abstract popover directive.
|
|
@@ -4752,7 +5259,7 @@ DbxPopoverContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
|
|
|
4752
5259
|
<ng-content></ng-content>
|
|
4753
5260
|
</div>
|
|
4754
5261
|
</div>
|
|
4755
|
-
`, isInline: true, directives: [{ type: i1$
|
|
5262
|
+
`, isInline: true, directives: [{ type: i1$7.ResizedDirective, selector: "[resized]", outputs: ["resized"] }], pipes: { "async": i3.AsyncPipe } });
|
|
4756
5263
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverContentComponent, decorators: [{
|
|
4757
5264
|
type: Component,
|
|
4758
5265
|
args: [{
|
|
@@ -4788,7 +5295,7 @@ DbxPopoverHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
|
|
|
4788
5295
|
</div>
|
|
4789
5296
|
</div>
|
|
4790
5297
|
<mat-divider></mat-divider>
|
|
4791
|
-
`, 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
|
|
5298
|
+
`, 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"] }] });
|
|
4792
5299
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverHeaderComponent, decorators: [{
|
|
4793
5300
|
type: Component,
|
|
4794
5301
|
args: [{
|
|
@@ -4867,7 +5374,7 @@ class DbxFilterPopoverComponent extends AbstractPopoverDirective {
|
|
|
4867
5374
|
this.showSwitchButtons = Boolean(this.config.customFilterComponentClass && this.config.presetFilterComponentClass);
|
|
4868
5375
|
this._showPreset = new BehaviorSubject(false);
|
|
4869
5376
|
this.showPreset$ = this._showPreset.asObservable();
|
|
4870
|
-
this.config$ = this._showPreset.pipe(map((showPreset) => {
|
|
5377
|
+
this.config$ = this._showPreset.pipe(map$1((showPreset) => {
|
|
4871
5378
|
const { connector, initialFilterObs, customFilterComponentClass, presetFilterComponentClass } = this.config;
|
|
4872
5379
|
let componentClass;
|
|
4873
5380
|
if (showPreset) {
|
|
@@ -4929,7 +5436,7 @@ class DbxFilterPopoverComponent extends AbstractPopoverDirective {
|
|
|
4929
5436
|
}
|
|
4930
5437
|
}
|
|
4931
5438
|
DbxFilterPopoverComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxFilterPopoverComponent, deps: [{ token: DbxPopoverComponent }], target: i0.ɵɵFactoryTarget.Component });
|
|
4932
|
-
DbxFilterPopoverComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxFilterPopoverComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<dbx-popover-content>\n <!-- Header -->\n <dbx-popover-header icon=\"filter\" header=\"Filter\">\n <ng-container *ngIf=\"showSwitchButtons\" [ngSwitch]=\"showPreset$ | async\">\n <button *ngSwitchCase=\"true\" mat-flat-button color=\"accent\" (click)=\"showCustom()\">Custom</button>\n <button *ngSwitchCase=\"false\" mat-flat-button color=\"accent\" (click)=\"showPresets()\">Presets</button>\n </ng-container>\n </dbx-popover-header>\n <!-- Content -->\n <dbx-popover-scroll-content>\n <dbx-injected-content [config]=\"config$ | async\"></dbx-injected-content>\n </dbx-popover-scroll-content>\n</dbx-popover-content>\n", components: [{ type: DbxPopoverContentComponent, selector: "dbx-popover-content" }, { type: DbxPopoverHeaderComponent, selector: "dbx-popover-header", inputs: ["header", "icon"] }, { type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: DbxPopoverScrollContentComponent, selector: "dbx-popover-scroll-content" }, { type: i1.DbxInjectedComponent, selector: "dbx-injected-content, [dbx-injected-content]", inputs: ["config", "template"] }], directives: [{ type: i3
|
|
5439
|
+
DbxFilterPopoverComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxFilterPopoverComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<dbx-popover-content>\n <!-- Header -->\n <dbx-popover-header icon=\"filter\" header=\"Filter\">\n <ng-container *ngIf=\"showSwitchButtons\" [ngSwitch]=\"showPreset$ | async\">\n <button *ngSwitchCase=\"true\" mat-flat-button color=\"accent\" (click)=\"showCustom()\">Custom</button>\n <button *ngSwitchCase=\"false\" mat-flat-button color=\"accent\" (click)=\"showPresets()\">Presets</button>\n </ng-container>\n </dbx-popover-header>\n <!-- Content -->\n <dbx-popover-scroll-content>\n <dbx-injected-content [config]=\"config$ | async\"></dbx-injected-content>\n </dbx-popover-scroll-content>\n</dbx-popover-content>\n", components: [{ type: DbxPopoverContentComponent, selector: "dbx-popover-content" }, { type: DbxPopoverHeaderComponent, selector: "dbx-popover-header", inputs: ["header", "icon"] }, { type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: DbxPopoverScrollContentComponent, selector: "dbx-popover-scroll-content" }, { type: i1$2.DbxInjectedComponent, selector: "dbx-injected-content, [dbx-injected-content]", inputs: ["config", "template"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }], pipes: { "async": i3.AsyncPipe } });
|
|
4933
5440
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxFilterPopoverComponent, decorators: [{
|
|
4934
5441
|
type: Component,
|
|
4935
5442
|
args: [{ template: "<dbx-popover-content>\n <!-- Header -->\n <dbx-popover-header icon=\"filter\" header=\"Filter\">\n <ng-container *ngIf=\"showSwitchButtons\" [ngSwitch]=\"showPreset$ | async\">\n <button *ngSwitchCase=\"true\" mat-flat-button color=\"accent\" (click)=\"showCustom()\">Custom</button>\n <button *ngSwitchCase=\"false\" mat-flat-button color=\"accent\" (click)=\"showPresets()\">Presets</button>\n </ng-container>\n </dbx-popover-header>\n <!-- Content -->\n <dbx-popover-scroll-content>\n <dbx-injected-content [config]=\"config$ | async\"></dbx-injected-content>\n </dbx-popover-scroll-content>\n</dbx-popover-content>\n" }]
|
|
@@ -4966,11 +5473,11 @@ class DbxPopoverService {
|
|
|
4966
5473
|
});
|
|
4967
5474
|
}
|
|
4968
5475
|
}
|
|
4969
|
-
DbxPopoverService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverService, deps: [{ token: i1$
|
|
5476
|
+
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 });
|
|
4970
5477
|
DbxPopoverService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverService });
|
|
4971
5478
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverService, decorators: [{
|
|
4972
5479
|
type: Injectable
|
|
4973
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
5480
|
+
}], ctorParameters: function () { return [{ type: i1$c.Overlay }, { type: i0.Injector }]; } });
|
|
4974
5481
|
|
|
4975
5482
|
class AbstractFilterPopoverButtonDirective extends AbstractSubscriptionDirective {
|
|
4976
5483
|
constructor(popupService) {
|
|
@@ -5012,7 +5519,7 @@ DbxFilterPopoverButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion:
|
|
|
5012
5519
|
<button #button mat-icon-button (click)="showFilterPopover()" matTooltip="Filter" matTooltipPosition="above">
|
|
5013
5520
|
<mat-icon>filter_list</mat-icon>
|
|
5014
5521
|
</button>
|
|
5015
|
-
`, isInline: true, components: [{ type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] });
|
|
5522
|
+
`, 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"] }] });
|
|
5016
5523
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxFilterPopoverButtonComponent, decorators: [{
|
|
5017
5524
|
type: Component,
|
|
5018
5525
|
args: [{
|
|
@@ -5055,107 +5562,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
5055
5562
|
} });
|
|
5056
5563
|
|
|
5057
5564
|
/**
|
|
5058
|
-
*
|
|
5059
|
-
*/
|
|
5060
|
-
class AbstractPopoverRefDirective extends AbstractSubscriptionDirective {
|
|
5061
|
-
showPopover() {
|
|
5062
|
-
if (!this._popoverRef) {
|
|
5063
|
-
this._showPopoverRef();
|
|
5064
|
-
}
|
|
5065
|
-
}
|
|
5066
|
-
_showPopoverRef() {
|
|
5067
|
-
this._popoverRef = this._makePopoverRef();
|
|
5068
|
-
this._afterOpened(this._popoverRef);
|
|
5069
|
-
this.sub = this._popoverRef.afterClosed$.subscribe((x) => {
|
|
5070
|
-
this._afterClosed(x);
|
|
5071
|
-
this._popoverRef = undefined;
|
|
5072
|
-
});
|
|
5073
|
-
}
|
|
5074
|
-
_afterOpened(popoverRef) {
|
|
5075
|
-
// Do nothing.
|
|
5076
|
-
}
|
|
5077
|
-
_afterClosed(value) {
|
|
5078
|
-
// Do nothing.
|
|
5079
|
-
}
|
|
5080
|
-
}
|
|
5081
|
-
AbstractPopoverRefDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: AbstractPopoverRefDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
5082
|
-
AbstractPopoverRefDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: AbstractPopoverRefDirective, usesInheritance: true, ngImport: i0 });
|
|
5083
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: AbstractPopoverRefDirective, decorators: [{
|
|
5084
|
-
type: Directive
|
|
5085
|
-
}] });
|
|
5086
|
-
/**
|
|
5087
|
-
* {@link AbstractPopoverRefDirective} extension that includes open/closed events.
|
|
5088
|
-
*/
|
|
5089
|
-
class AbstractPopoverRefWithEventsDirective extends AbstractPopoverRefDirective {
|
|
5090
|
-
constructor() {
|
|
5091
|
-
super(...arguments);
|
|
5092
|
-
this.popoverOpened = new EventEmitter();
|
|
5093
|
-
this.popoverClosed = new EventEmitter();
|
|
5094
|
-
}
|
|
5095
|
-
ngOnDestroy() {
|
|
5096
|
-
super.ngOnDestroy();
|
|
5097
|
-
this.popoverClosed.complete();
|
|
5098
|
-
this.popoverOpened.complete();
|
|
5099
|
-
}
|
|
5100
|
-
_afterOpened(popoverRef) {
|
|
5101
|
-
this.popoverOpened.next(popoverRef);
|
|
5102
|
-
}
|
|
5103
|
-
_afterClosed(event) {
|
|
5104
|
-
this.popoverClosed.next(event);
|
|
5105
|
-
}
|
|
5106
|
-
}
|
|
5107
|
-
AbstractPopoverRefWithEventsDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: AbstractPopoverRefWithEventsDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
5108
|
-
AbstractPopoverRefWithEventsDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: AbstractPopoverRefWithEventsDirective, outputs: { popoverOpened: "popoverOpened", popoverClosed: "popoverClosed" }, usesInheritance: true, ngImport: i0 });
|
|
5109
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: AbstractPopoverRefWithEventsDirective, decorators: [{
|
|
5110
|
-
type: Directive
|
|
5111
|
-
}], propDecorators: { popoverOpened: [{
|
|
5112
|
-
type: Output
|
|
5113
|
-
}], popoverClosed: [{
|
|
5114
|
-
type: Output
|
|
5115
|
-
}] } });
|
|
5116
|
-
|
|
5117
|
-
/**
|
|
5118
|
-
* Action directive that is used to trigger/display a popover,
|
|
5119
|
-
* then watches that popover for a value.
|
|
5120
|
-
*
|
|
5121
|
-
* The value is passed to the isModified function (ifProvided), and if that returns true it will
|
|
5565
|
+
* Action directive that is used to trigger/display a popover, then watches that popover for a value.
|
|
5122
5566
|
*/
|
|
5123
|
-
class
|
|
5567
|
+
class DbxActionPopoverDirective extends AbstractDbxActionValueOnTriggerDirective {
|
|
5124
5568
|
constructor(elementRef, source) {
|
|
5125
|
-
super();
|
|
5569
|
+
super(source, () => this._getDataFromPopover());
|
|
5126
5570
|
this.elementRef = elementRef;
|
|
5127
|
-
this.source = source;
|
|
5128
|
-
this._popoverValue = new BehaviorSubject(undefined);
|
|
5129
|
-
this._triggeredSub = new SubscriptionObject();
|
|
5130
|
-
this._isModifiedSub = new SubscriptionObject();
|
|
5131
5571
|
}
|
|
5132
|
-
|
|
5133
|
-
|
|
5134
|
-
this._isModifiedSub.subscription = this._popoverValue.pipe(filterMaybe(), switchMap$1((value) => {
|
|
5135
|
-
let isModifiedObs;
|
|
5136
|
-
if (this.appPopoverActionModified) {
|
|
5137
|
-
isModifiedObs = this.appPopoverActionModified(value).pipe(first$1());
|
|
5138
|
-
}
|
|
5139
|
-
else {
|
|
5140
|
-
isModifiedObs = of(true); // Considered modified
|
|
5141
|
-
}
|
|
5142
|
-
return isModifiedObs;
|
|
5143
|
-
})).subscribe((isModified) => {
|
|
5144
|
-
this.source.setIsModified(isModified);
|
|
5145
|
-
});
|
|
5146
|
-
// Ready the value after the source is triggered.
|
|
5147
|
-
this._triggeredSub.subscription = this.source.triggered$.pipe(switchMap$1(() => {
|
|
5148
|
-
return this._popoverValue.pipe(filterMaybe(), first$1());
|
|
5149
|
-
})).subscribe((x) => {
|
|
5150
|
-
this.source.readyValue(x);
|
|
5151
|
-
});
|
|
5572
|
+
set dbxActionPopoverModified(isModifiedFunction) {
|
|
5573
|
+
this.isModifiedFunction = isModifiedFunction;
|
|
5152
5574
|
}
|
|
5153
|
-
|
|
5154
|
-
this.
|
|
5155
|
-
super.ngOnDestroy();
|
|
5156
|
-
this._triggeredSub.destroy();
|
|
5157
|
-
this._popoverValue.complete();
|
|
5158
|
-
});
|
|
5575
|
+
_getDataFromPopover() {
|
|
5576
|
+
return this._makePopoverRef().afterClosed$.pipe(first(), map$1(x => x.data));
|
|
5159
5577
|
}
|
|
5160
5578
|
_makePopoverRef() {
|
|
5161
5579
|
const origin = this.elementRef;
|
|
@@ -5166,54 +5584,22 @@ class DbxPopoverActionDirective extends AbstractPopoverRefWithEventsDirective {
|
|
|
5166
5584
|
origin
|
|
5167
5585
|
});
|
|
5168
5586
|
}
|
|
5169
|
-
_afterClosed(event) {
|
|
5170
|
-
super._afterClosed(event);
|
|
5171
|
-
const { data } = event;
|
|
5172
|
-
if (data != null) {
|
|
5173
|
-
this._popoverValue.next(data);
|
|
5174
|
-
}
|
|
5175
|
-
}
|
|
5176
5587
|
}
|
|
5177
|
-
|
|
5178
|
-
|
|
5179
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type:
|
|
5588
|
+
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 });
|
|
5589
|
+
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 });
|
|
5590
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionPopoverDirective, decorators: [{
|
|
5180
5591
|
type: Directive,
|
|
5181
5592
|
args: [{
|
|
5182
|
-
exportAs: '
|
|
5183
|
-
selector: '[
|
|
5593
|
+
exportAs: 'dbxActionPopover',
|
|
5594
|
+
selector: '[dbxActionPopover]'
|
|
5184
5595
|
}]
|
|
5185
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.
|
|
5596
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1$2.DbxActionContextStoreSourceInstance }]; }, propDecorators: { fn: [{
|
|
5186
5597
|
type: Input,
|
|
5187
|
-
args: ['
|
|
5188
|
-
}],
|
|
5598
|
+
args: ['dbxActionPopover']
|
|
5599
|
+
}], dbxActionPopoverModified: [{
|
|
5189
5600
|
type: Input
|
|
5190
5601
|
}] } });
|
|
5191
5602
|
|
|
5192
|
-
/**
|
|
5193
|
-
* Action directive that is used to link an DbxButton to an DbxPopoverActionDirective.
|
|
5194
|
-
*/
|
|
5195
|
-
class DbxPopoverActionButtonDirective extends DbxActionButtonDirective {
|
|
5196
|
-
constructor(button, source, ngZone, appPopoverActionDirective) {
|
|
5197
|
-
super(button, source, ngZone);
|
|
5198
|
-
this.appPopoverActionDirective = appPopoverActionDirective;
|
|
5199
|
-
}
|
|
5200
|
-
_buttonClicked() {
|
|
5201
|
-
this.appPopoverActionDirective.showPopover();
|
|
5202
|
-
}
|
|
5203
|
-
}
|
|
5204
|
-
DbxPopoverActionButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverActionButtonDirective, deps: [{ token: i1.DbxButtonDirective, host: true }, { token: i1.ActionContextStoreSourceInstance }, { token: i0.NgZone }, { token: DbxPopoverActionDirective }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5205
|
-
DbxPopoverActionButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: DbxPopoverActionButtonDirective, selector: "[dbxPopoverActionButton]", usesInheritance: true, ngImport: i0 });
|
|
5206
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverActionButtonDirective, decorators: [{
|
|
5207
|
-
type: Directive,
|
|
5208
|
-
args: [{
|
|
5209
|
-
selector: '[dbxPopoverActionButton]'
|
|
5210
|
-
}]
|
|
5211
|
-
}], ctorParameters: function () {
|
|
5212
|
-
return [{ type: i1.DbxButtonDirective, decorators: [{
|
|
5213
|
-
type: Host
|
|
5214
|
-
}] }, { type: i1.ActionContextStoreSourceInstance }, { type: i0.NgZone }, { type: DbxPopoverActionDirective }];
|
|
5215
|
-
} });
|
|
5216
|
-
|
|
5217
5603
|
class DbxKeypressModule {
|
|
5218
5604
|
}
|
|
5219
5605
|
DbxKeypressModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxKeypressModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -5255,7 +5641,7 @@ class DbxActionKeyTriggerDirective {
|
|
|
5255
5641
|
}
|
|
5256
5642
|
}
|
|
5257
5643
|
}
|
|
5258
|
-
DbxActionKeyTriggerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionKeyTriggerDirective, deps: [{ token: i1.
|
|
5644
|
+
DbxActionKeyTriggerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionKeyTriggerDirective, deps: [{ token: i1$2.DbxActionContextStoreSourceInstance, host: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5259
5645
|
DbxActionKeyTriggerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: DbxActionKeyTriggerDirective, selector: "[dbxActionKeyTrigger]", inputs: { inputKey: ["dbxActionKeyTrigger", "inputKey"] }, host: { listeners: { "document:keyup": "onKeyupHandler($event)" } }, ngImport: i0 });
|
|
5260
5646
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionKeyTriggerDirective, decorators: [{
|
|
5261
5647
|
type: Directive,
|
|
@@ -5263,7 +5649,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
5263
5649
|
selector: '[dbxActionKeyTrigger]',
|
|
5264
5650
|
}]
|
|
5265
5651
|
}], ctorParameters: function () {
|
|
5266
|
-
return [{ type: i1.
|
|
5652
|
+
return [{ type: i1$2.DbxActionContextStoreSourceInstance, decorators: [{
|
|
5267
5653
|
type: Host
|
|
5268
5654
|
}] }];
|
|
5269
5655
|
}, propDecorators: { inputKey: [{
|
|
@@ -5274,100 +5660,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
5274
5660
|
args: ['document:keyup', ['$event']]
|
|
5275
5661
|
}] } });
|
|
5276
5662
|
|
|
5277
|
-
/**
|
|
5278
|
-
* Component for a snackbar that contains an action.
|
|
5279
|
-
*/
|
|
5280
|
-
class DbxActionSnackbarComponent {
|
|
5281
|
-
constructor(snackbar, data) {
|
|
5282
|
-
this.snackbar = snackbar;
|
|
5283
|
-
this.data = data;
|
|
5284
|
-
this.complete$ = this.actionSourceInstance.isSuccess$;
|
|
5285
|
-
this.snackbarStatusClass$ = this.actionSourceInstance.actionState$.pipe(map$1((x) => {
|
|
5286
|
-
let classes = 'dbx-action-snackbar-';
|
|
5287
|
-
switch (x) {
|
|
5288
|
-
case ActionState.Rejected:
|
|
5289
|
-
classes += 'error';
|
|
5290
|
-
break;
|
|
5291
|
-
case ActionState.Success:
|
|
5292
|
-
classes += 'success';
|
|
5293
|
-
break;
|
|
5294
|
-
default:
|
|
5295
|
-
classes += 'idle';
|
|
5296
|
-
break;
|
|
5297
|
-
}
|
|
5298
|
-
return classes;
|
|
5299
|
-
}), distinctUntilChanged(), shareReplay(1));
|
|
5300
|
-
this.dismissEarly = () => {
|
|
5301
|
-
this.snackbar._dismissAfter(ms('3s'));
|
|
5302
|
-
};
|
|
5303
|
-
this.dismiss = () => {
|
|
5304
|
-
this.snackbar.dismiss();
|
|
5305
|
-
};
|
|
5306
|
-
if (!data.actionSource) {
|
|
5307
|
-
throw new Error('No action was provided to ActionSnackbar.');
|
|
5308
|
-
}
|
|
5309
|
-
}
|
|
5310
|
-
get message() {
|
|
5311
|
-
return this.data.message;
|
|
5312
|
-
}
|
|
5313
|
-
get action() {
|
|
5314
|
-
return this.data.action;
|
|
5315
|
-
}
|
|
5316
|
-
get actionSourceInstance() {
|
|
5317
|
-
return this.data.actionSource;
|
|
5318
|
-
}
|
|
5319
|
-
}
|
|
5320
|
-
DbxActionSnackbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionSnackbarComponent, deps: [{ token: i1$c.MatSnackBarRef }, { token: MAT_SNACK_BAR_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
5321
|
-
DbxActionSnackbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxActionSnackbarComponent, selector: "ng-component", ngImport: i0, template: `
|
|
5322
|
-
<div class="dbx-action-snackbar" [ngClass]="(snackbarStatusClass$ | async)!">
|
|
5323
|
-
<ng-container [ngSwitch]="complete$ | async">
|
|
5324
|
-
<ng-container *ngSwitchCase="true">
|
|
5325
|
-
<div class="spacer"></div>
|
|
5326
|
-
<dbx-button (buttonClick)="dismiss()" color="accent" icon="done" text="Success"></dbx-button>
|
|
5327
|
-
</ng-container>
|
|
5328
|
-
<ng-container *ngSwitchCase="false">
|
|
5329
|
-
<span>{{ message }}</span>
|
|
5330
|
-
<div class="spacer"></div>
|
|
5331
|
-
<dbx-action dbxActionValue [dbxActionSource]="actionSourceInstance" [dbxActionSuccess]="dismissEarly">
|
|
5332
|
-
<dbx-button dbxActionButton color="warn" [text]="action"></dbx-button>
|
|
5333
|
-
</dbx-action>
|
|
5334
|
-
<dbx-button-spacer></dbx-button-spacer>
|
|
5335
|
-
<dbx-button (buttonClick)="dismiss()" color="accent" icon="close"></dbx-button>
|
|
5336
|
-
</ng-container>
|
|
5337
|
-
</ng-container>
|
|
5338
|
-
</div>
|
|
5339
|
-
`, isInline: true, components: [{ type: DbxButtonComponent, selector: "dbx-button", inputs: ["type", "raised", "stroked", "flat", "color"] }, { type: DbxButtonSpacerComponent, selector: "dbx-button-spacer" }], directives: [{ type: i3$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i3$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i1.DbxActionDirective, selector: "dbx-action,[dbxAction],dbx-action-context,[dbxActionContext]", exportAs: ["action"] }, { type: i1.DbxActionValueDirective, selector: "[dbxActionValue]", inputs: ["dbxActionValue"] }, { type: i1.DbxActionSourceDirective, selector: "[dbxActionSource]", inputs: ["dbxActionSource"] }, { type: i1.DbxActionSuccessDirective, selector: "[dbxActionSuccess]", inputs: ["dbxActionSuccess"] }], pipes: { "async": i3$1.AsyncPipe } });
|
|
5340
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionSnackbarComponent, decorators: [{
|
|
5341
|
-
type: Component,
|
|
5342
|
-
args: [{
|
|
5343
|
-
template: `
|
|
5344
|
-
<div class="dbx-action-snackbar" [ngClass]="(snackbarStatusClass$ | async)!">
|
|
5345
|
-
<ng-container [ngSwitch]="complete$ | async">
|
|
5346
|
-
<ng-container *ngSwitchCase="true">
|
|
5347
|
-
<div class="spacer"></div>
|
|
5348
|
-
<dbx-button (buttonClick)="dismiss()" color="accent" icon="done" text="Success"></dbx-button>
|
|
5349
|
-
</ng-container>
|
|
5350
|
-
<ng-container *ngSwitchCase="false">
|
|
5351
|
-
<span>{{ message }}</span>
|
|
5352
|
-
<div class="spacer"></div>
|
|
5353
|
-
<dbx-action dbxActionValue [dbxActionSource]="actionSourceInstance" [dbxActionSuccess]="dismissEarly">
|
|
5354
|
-
<dbx-button dbxActionButton color="warn" [text]="action"></dbx-button>
|
|
5355
|
-
</dbx-action>
|
|
5356
|
-
<dbx-button-spacer></dbx-button-spacer>
|
|
5357
|
-
<dbx-button (buttonClick)="dismiss()" color="accent" icon="close"></dbx-button>
|
|
5358
|
-
</ng-container>
|
|
5359
|
-
</ng-container>
|
|
5360
|
-
</div>
|
|
5361
|
-
`,
|
|
5362
|
-
// TODO: styleUrls: ['./action.scss']
|
|
5363
|
-
}]
|
|
5364
|
-
}], ctorParameters: function () {
|
|
5365
|
-
return [{ type: i1$c.MatSnackBarRef }, { type: undefined, decorators: [{
|
|
5366
|
-
type: Inject,
|
|
5367
|
-
args: [MAT_SNACK_BAR_DATA]
|
|
5368
|
-
}] }];
|
|
5369
|
-
} });
|
|
5370
|
-
|
|
5371
5663
|
class DbxPromptConfirm {
|
|
5372
5664
|
}
|
|
5373
5665
|
function ProvideDbxPromptConfirm(sourceType) {
|
|
@@ -5444,7 +5736,7 @@ class DbxPromptConfirmComponent {
|
|
|
5444
5736
|
}
|
|
5445
5737
|
}
|
|
5446
5738
|
DbxPromptConfirmComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPromptConfirmComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5447
|
-
DbxPromptConfirmComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxPromptConfirmComponent, selector: "dbx-prompt-confirm", inputs: { config: "config" }, outputs: { confirm: "confirm", cancel: "cancel" }, ngImport: i0, template: "<dbx-prompt [header]=\"config.title\" [prompt]=\"config.prompt\">\n <ng-content></ng-content>\n <button mat-stroked-button (click)=\"onConfirm()\">{{ config.confirmText || 'Confirm' }}</button>\n <dbx-button-spacer></dbx-button-spacer>\n <button mat-stroked-button color=\"warn\" (click)=\"onCancel()\">{{ config.cancelText || 'Cancel' }}</button>\n</dbx-prompt>\n", components: [{ type: DbxPromptComponent, selector: "dbx-prompt", inputs: ["header", "prompt"] }, { type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type:
|
|
5739
|
+
DbxPromptConfirmComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxPromptConfirmComponent, selector: "dbx-prompt-confirm", inputs: { config: "config" }, outputs: { confirm: "confirm", cancel: "cancel" }, ngImport: i0, template: "<dbx-prompt [header]=\"config.title\" [prompt]=\"config.prompt\">\n <ng-content></ng-content>\n <button mat-stroked-button (click)=\"onConfirm()\">{{ config.confirmText || 'Confirm' }}</button>\n <dbx-button-spacer></dbx-button-spacer>\n <button mat-stroked-button color=\"warn\" (click)=\"onCancel()\">{{ config.cancelText || 'Cancel' }}</button>\n</dbx-prompt>\n", components: [{ type: DbxPromptComponent, selector: "dbx-prompt", inputs: ["header", "prompt"] }, { type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: DbxButtonSpacerDirective, selector: "dbx-button-spacer,dbxButtonSpacer" }] });
|
|
5448
5740
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPromptConfirmComponent, decorators: [{
|
|
5449
5741
|
type: Component,
|
|
5450
5742
|
args: [{ selector: 'dbx-prompt-confirm', template: "<dbx-prompt [header]=\"config.title\" [prompt]=\"config.prompt\">\n <ng-content></ng-content>\n <button mat-stroked-button (click)=\"onConfirm()\">{{ config.confirmText || 'Confirm' }}</button>\n <dbx-button-spacer></dbx-button-spacer>\n <button mat-stroked-button color=\"warn\" (click)=\"onCancel()\">{{ config.cancelText || 'Cancel' }}</button>\n</dbx-prompt>\n" }]
|
|
@@ -5487,7 +5779,7 @@ DbxPromptConfirmDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion:
|
|
|
5487
5779
|
<dbx-injected-content [config]="injectedConfig"></dbx-injected-content>
|
|
5488
5780
|
</dbx-prompt-confirm>
|
|
5489
5781
|
</dbx-dialog-content>
|
|
5490
|
-
`, isInline: true, components: [{ type: DbxPromptConfirmComponent, selector: "dbx-prompt-confirm", inputs: ["config"], outputs: ["confirm", "cancel"] }, { type: i1.DbxInjectedComponent, selector: "dbx-injected-content, [dbx-injected-content]", inputs: ["config", "template"] }], directives: [{ type: DbxDialogContentDirective, selector: "dbx-dialog-content,.dbx-dialog-content", inputs: ["width"] }] });
|
|
5782
|
+
`, isInline: true, components: [{ type: DbxPromptConfirmComponent, selector: "dbx-prompt-confirm", inputs: ["config"], outputs: ["confirm", "cancel"] }, { type: i1$2.DbxInjectedComponent, selector: "dbx-injected-content, [dbx-injected-content]", inputs: ["config", "template"] }], directives: [{ type: DbxDialogContentDirective, selector: "dbx-dialog-content,.dbx-dialog-content", inputs: ["width"] }] });
|
|
5491
5783
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPromptConfirmDialogComponent, decorators: [{
|
|
5492
5784
|
type: Component,
|
|
5493
5785
|
args: [{
|
|
@@ -5526,11 +5818,11 @@ class AbstractPromptConfirmDirective {
|
|
|
5526
5818
|
return result;
|
|
5527
5819
|
}
|
|
5528
5820
|
}
|
|
5529
|
-
AbstractPromptConfirmDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: AbstractPromptConfirmDirective, deps: [{ token: i1$
|
|
5821
|
+
AbstractPromptConfirmDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: AbstractPromptConfirmDirective, deps: [{ token: i1$3.MatDialog }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5530
5822
|
AbstractPromptConfirmDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: AbstractPromptConfirmDirective, ngImport: i0 });
|
|
5531
5823
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: AbstractPromptConfirmDirective, decorators: [{
|
|
5532
5824
|
type: Directive
|
|
5533
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
5825
|
+
}], ctorParameters: function () { return [{ type: i1$3.MatDialog }]; } });
|
|
5534
5826
|
// MARK: Directive
|
|
5535
5827
|
/**
|
|
5536
5828
|
* Directive that shows a confirmation screen.
|
|
@@ -5540,7 +5832,7 @@ class DbxPromptConfirmDirective extends AbstractPromptConfirmDirective {
|
|
|
5540
5832
|
super(dialog);
|
|
5541
5833
|
}
|
|
5542
5834
|
}
|
|
5543
|
-
DbxPromptConfirmDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPromptConfirmDirective, deps: [{ token: i1$
|
|
5835
|
+
DbxPromptConfirmDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPromptConfirmDirective, deps: [{ token: i1$3.MatDialog }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5544
5836
|
DbxPromptConfirmDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: DbxPromptConfirmDirective, selector: "[dbxPromptConfirm]", inputs: { config: ["dbxPromptConfirm", "config"] }, providers: ProvideDbxPromptConfirm(DbxPromptConfirmDirective), usesInheritance: true, ngImport: i0 });
|
|
5545
5837
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPromptConfirmDirective, decorators: [{
|
|
5546
5838
|
type: Directive,
|
|
@@ -5548,7 +5840,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
5548
5840
|
selector: '[dbxPromptConfirm]',
|
|
5549
5841
|
providers: ProvideDbxPromptConfirm(DbxPromptConfirmDirective)
|
|
5550
5842
|
}]
|
|
5551
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
5843
|
+
}], ctorParameters: function () { return [{ type: i1$3.MatDialog }]; }, propDecorators: { config: [{
|
|
5552
5844
|
type: Input,
|
|
5553
5845
|
args: ['dbxPromptConfirm']
|
|
5554
5846
|
}] } });
|
|
@@ -5574,8 +5866,9 @@ class DbxActionConfirmDirective extends AbstractPromptConfirmDirective {
|
|
|
5574
5866
|
this._sourceSubscription.destroy();
|
|
5575
5867
|
}
|
|
5576
5868
|
_handleDialogResult(result) {
|
|
5869
|
+
var _a;
|
|
5577
5870
|
if (result) {
|
|
5578
|
-
this.source.readyValue(null);
|
|
5871
|
+
this.source.readyValue((_a = this.config) === null || _a === void 0 ? void 0 : _a.readyValue);
|
|
5579
5872
|
}
|
|
5580
5873
|
else {
|
|
5581
5874
|
this.source.reject(undefined);
|
|
@@ -5583,7 +5876,7 @@ class DbxActionConfirmDirective extends AbstractPromptConfirmDirective {
|
|
|
5583
5876
|
return result;
|
|
5584
5877
|
}
|
|
5585
5878
|
}
|
|
5586
|
-
DbxActionConfirmDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionConfirmDirective, deps: [{ token: i1.
|
|
5879
|
+
DbxActionConfirmDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionConfirmDirective, deps: [{ token: i1$2.DbxActionContextStoreSourceInstance, host: true }, { token: i1$3.MatDialog }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5587
5880
|
DbxActionConfirmDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: DbxActionConfirmDirective, selector: "[dbxActionConfirm]", inputs: { config: ["dbxActionConfirm", "config"] }, usesInheritance: true, ngImport: i0 });
|
|
5588
5881
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionConfirmDirective, decorators: [{
|
|
5589
5882
|
type: Directive,
|
|
@@ -5591,9 +5884,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
5591
5884
|
selector: '[dbxActionConfirm]'
|
|
5592
5885
|
}]
|
|
5593
5886
|
}], ctorParameters: function () {
|
|
5594
|
-
return [{ type: i1.
|
|
5887
|
+
return [{ type: i1$2.DbxActionContextStoreSourceInstance, decorators: [{
|
|
5595
5888
|
type: Host
|
|
5596
|
-
}] }, { type: i1$
|
|
5889
|
+
}] }, { type: i1$3.MatDialog }];
|
|
5597
5890
|
}, propDecorators: { config: [{
|
|
5598
5891
|
type: Input,
|
|
5599
5892
|
args: ['dbxActionConfirm']
|
|
@@ -5655,14 +5948,14 @@ class DbxPromptConfirmButtonDirective {
|
|
|
5655
5948
|
this.appButton = appButton;
|
|
5656
5949
|
this.prompt = prompt;
|
|
5657
5950
|
this.interceptButtonClick = () => {
|
|
5658
|
-
return this.prompt.showDialog().pipe(map
|
|
5951
|
+
return this.prompt.showDialog().pipe(map(x => Boolean(x)));
|
|
5659
5952
|
};
|
|
5660
5953
|
}
|
|
5661
5954
|
ngOnInit() {
|
|
5662
5955
|
this.appButton.setButtonInterceptor(this);
|
|
5663
5956
|
}
|
|
5664
5957
|
}
|
|
5665
|
-
DbxPromptConfirmButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPromptConfirmButtonDirective, deps: [{ token: i1.DbxButtonDirective, host: true }, { token: DbxPromptConfirm, host: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5958
|
+
DbxPromptConfirmButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPromptConfirmButtonDirective, deps: [{ token: i1$2.DbxButtonDirective, host: true }, { token: DbxPromptConfirm, host: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5666
5959
|
DbxPromptConfirmButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: DbxPromptConfirmButtonDirective, selector: "[dbxPromptConfirmButton]", ngImport: i0 });
|
|
5667
5960
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPromptConfirmButtonDirective, decorators: [{
|
|
5668
5961
|
type: Directive,
|
|
@@ -5670,7 +5963,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
5670
5963
|
selector: '[dbxPromptConfirmButton]',
|
|
5671
5964
|
}]
|
|
5672
5965
|
}], ctorParameters: function () {
|
|
5673
|
-
return [{ type: i1.DbxButtonDirective, decorators: [{
|
|
5966
|
+
return [{ type: i1$2.DbxButtonDirective, decorators: [{
|
|
5674
5967
|
type: Host
|
|
5675
5968
|
}] }, { type: DbxPromptConfirm, decorators: [{
|
|
5676
5969
|
type: Host
|
|
@@ -5749,7 +6042,6 @@ class DbxActionModule {
|
|
|
5749
6042
|
}
|
|
5750
6043
|
DbxActionModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5751
6044
|
DbxActionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionModule, declarations: [DbxActionKeyTriggerDirective,
|
|
5752
|
-
DbxActionSnackbarComponent,
|
|
5753
6045
|
DbxActionConfirmDirective], imports: [CommonModule,
|
|
5754
6046
|
DbxCoreActionModule,
|
|
5755
6047
|
DbxButtonModule,
|
|
@@ -5758,7 +6050,6 @@ DbxActionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version
|
|
|
5758
6050
|
MatButtonModule,
|
|
5759
6051
|
DbxPromptModule], exports: [DbxCoreActionModule,
|
|
5760
6052
|
DbxActionKeyTriggerDirective,
|
|
5761
|
-
DbxActionSnackbarComponent,
|
|
5762
6053
|
DbxActionConfirmDirective] });
|
|
5763
6054
|
DbxActionModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionModule, imports: [[
|
|
5764
6055
|
CommonModule,
|
|
@@ -5783,13 +6074,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
5783
6074
|
],
|
|
5784
6075
|
declarations: [
|
|
5785
6076
|
DbxActionKeyTriggerDirective,
|
|
5786
|
-
DbxActionSnackbarComponent,
|
|
5787
6077
|
DbxActionConfirmDirective,
|
|
5788
6078
|
],
|
|
5789
6079
|
exports: [
|
|
5790
6080
|
DbxCoreActionModule,
|
|
5791
6081
|
DbxActionKeyTriggerDirective,
|
|
5792
|
-
DbxActionSnackbarComponent,
|
|
5793
6082
|
DbxActionConfirmDirective,
|
|
5794
6083
|
]
|
|
5795
6084
|
}]
|
|
@@ -5806,8 +6095,7 @@ class DbxPopoverInteractionModule {
|
|
|
5806
6095
|
}
|
|
5807
6096
|
}
|
|
5808
6097
|
DbxPopoverInteractionModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverInteractionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5809
|
-
DbxPopoverInteractionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverInteractionModule, declarations: [
|
|
5810
|
-
DbxPopoverActionDirective,
|
|
6098
|
+
DbxPopoverInteractionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopoverInteractionModule, declarations: [DbxActionPopoverDirective,
|
|
5811
6099
|
DbxPopoverComponent,
|
|
5812
6100
|
DbxPopoverCoordinatorComponent,
|
|
5813
6101
|
DbxPopoverContentComponent,
|
|
@@ -5824,8 +6112,7 @@ DbxPopoverInteractionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0
|
|
|
5824
6112
|
DbxStyleLayoutModule,
|
|
5825
6113
|
DbxInjectedComponentModule,
|
|
5826
6114
|
NgOverlayContainerModule,
|
|
5827
|
-
AngularResizeEventModule], exports: [
|
|
5828
|
-
DbxPopoverActionDirective,
|
|
6115
|
+
AngularResizeEventModule], exports: [DbxActionPopoverDirective,
|
|
5829
6116
|
DbxPopoverContentComponent,
|
|
5830
6117
|
DbxPopoverControlsDirective,
|
|
5831
6118
|
DbxPopoverHeaderComponent,
|
|
@@ -5864,8 +6151,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
5864
6151
|
AngularResizeEventModule
|
|
5865
6152
|
],
|
|
5866
6153
|
declarations: [
|
|
5867
|
-
|
|
5868
|
-
DbxPopoverActionDirective,
|
|
6154
|
+
DbxActionPopoverDirective,
|
|
5869
6155
|
DbxPopoverComponent,
|
|
5870
6156
|
DbxPopoverCoordinatorComponent,
|
|
5871
6157
|
DbxPopoverContentComponent,
|
|
@@ -5874,8 +6160,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
5874
6160
|
DbxPopoverScrollContentComponent
|
|
5875
6161
|
],
|
|
5876
6162
|
exports: [
|
|
5877
|
-
|
|
5878
|
-
DbxPopoverActionDirective,
|
|
6163
|
+
DbxActionPopoverDirective,
|
|
5879
6164
|
DbxPopoverContentComponent,
|
|
5880
6165
|
DbxPopoverControlsDirective,
|
|
5881
6166
|
DbxPopoverHeaderComponent,
|
|
@@ -5903,7 +6188,7 @@ class DbxFilterWrapperComponent {
|
|
|
5903
6188
|
}
|
|
5904
6189
|
}
|
|
5905
6190
|
DbxFilterWrapperComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxFilterWrapperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5906
|
-
DbxFilterWrapperComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxFilterWrapperComponent, selector: "dbx-filter-wrapper", inputs: { modified: "modified" }, outputs: { applyFilter: "applyFilter", resetFilter: "resetFilter" }, ngImport: i0, template: "<div class=\"dbx-filter-wrapper\">\n <div class=\"dbx-filter-wrapper-content\">\n <ng-content></ng-content>\n </div>\n <div fxLayout=\"row\">\n <button mat-raised-button (click)=\"filterClicked()\">Apply Filter</button>\n <div class=\"spacer\"></div>\n <button mat-icon-button (click)=\"resetClicked()\">\n <mat-icon>clear</mat-icon>\n </button>\n </div>\n</div>\n", components: [{ type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: 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"] }] });
|
|
6191
|
+
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"] }] });
|
|
5907
6192
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxFilterWrapperComponent, decorators: [{
|
|
5908
6193
|
type: Component,
|
|
5909
6194
|
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" }]
|
|
@@ -5966,6 +6251,66 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
5966
6251
|
}]
|
|
5967
6252
|
}] });
|
|
5968
6253
|
|
|
6254
|
+
/**
|
|
6255
|
+
* Abstract class for showing and handling a popover ref.
|
|
6256
|
+
*/
|
|
6257
|
+
class AbstractPopoverRefDirective extends AbstractSubscriptionDirective {
|
|
6258
|
+
showPopover() {
|
|
6259
|
+
if (!this._popoverRef) {
|
|
6260
|
+
this._showPopoverRef();
|
|
6261
|
+
}
|
|
6262
|
+
}
|
|
6263
|
+
_showPopoverRef() {
|
|
6264
|
+
this._popoverRef = this._makePopoverRef();
|
|
6265
|
+
this._afterOpened(this._popoverRef);
|
|
6266
|
+
this.sub = this._popoverRef.afterClosed$.subscribe((x) => {
|
|
6267
|
+
this._afterClosed(x);
|
|
6268
|
+
this._popoverRef = undefined;
|
|
6269
|
+
});
|
|
6270
|
+
}
|
|
6271
|
+
_afterOpened(popoverRef) {
|
|
6272
|
+
// Do nothing.
|
|
6273
|
+
}
|
|
6274
|
+
_afterClosed(value) {
|
|
6275
|
+
// Do nothing.
|
|
6276
|
+
}
|
|
6277
|
+
}
|
|
6278
|
+
AbstractPopoverRefDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: AbstractPopoverRefDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6279
|
+
AbstractPopoverRefDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: AbstractPopoverRefDirective, usesInheritance: true, ngImport: i0 });
|
|
6280
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: AbstractPopoverRefDirective, decorators: [{
|
|
6281
|
+
type: Directive
|
|
6282
|
+
}] });
|
|
6283
|
+
/**
|
|
6284
|
+
* {@link AbstractPopoverRefDirective} extension that includes open/closed events.
|
|
6285
|
+
*/
|
|
6286
|
+
class AbstractPopoverRefWithEventsDirective extends AbstractPopoverRefDirective {
|
|
6287
|
+
constructor() {
|
|
6288
|
+
super(...arguments);
|
|
6289
|
+
this.popoverOpened = new EventEmitter();
|
|
6290
|
+
this.popoverClosed = new EventEmitter();
|
|
6291
|
+
}
|
|
6292
|
+
ngOnDestroy() {
|
|
6293
|
+
super.ngOnDestroy();
|
|
6294
|
+
this.popoverClosed.complete();
|
|
6295
|
+
this.popoverOpened.complete();
|
|
6296
|
+
}
|
|
6297
|
+
_afterOpened(popoverRef) {
|
|
6298
|
+
this.popoverOpened.next(popoverRef);
|
|
6299
|
+
}
|
|
6300
|
+
_afterClosed(event) {
|
|
6301
|
+
this.popoverClosed.next(event);
|
|
6302
|
+
}
|
|
6303
|
+
}
|
|
6304
|
+
AbstractPopoverRefWithEventsDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: AbstractPopoverRefWithEventsDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6305
|
+
AbstractPopoverRefWithEventsDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: AbstractPopoverRefWithEventsDirective, outputs: { popoverOpened: "popoverOpened", popoverClosed: "popoverClosed" }, usesInheritance: true, ngImport: i0 });
|
|
6306
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: AbstractPopoverRefWithEventsDirective, decorators: [{
|
|
6307
|
+
type: Directive
|
|
6308
|
+
}], propDecorators: { popoverOpened: [{
|
|
6309
|
+
type: Output
|
|
6310
|
+
}], popoverClosed: [{
|
|
6311
|
+
type: Output
|
|
6312
|
+
}] } });
|
|
6313
|
+
|
|
5969
6314
|
class PopupGlobalPositionStrategy extends GlobalPositionStrategy {
|
|
5970
6315
|
constructor(position = 'bottom_right', offset) {
|
|
5971
6316
|
super();
|
|
@@ -6060,7 +6405,7 @@ class DbxPopupCoordinatorComponent {
|
|
|
6060
6405
|
constructor(service, popup) {
|
|
6061
6406
|
this.service = service;
|
|
6062
6407
|
this.popup = popup;
|
|
6063
|
-
this.isPopupForKey$ = this.service.popups$.pipe(map
|
|
6408
|
+
this.isPopupForKey$ = this.service.popups$.pipe(map(x => x.get(this.popup.key) === this.popup), shareReplay$1(1));
|
|
6064
6409
|
this.show$ = this.isPopupForKey$.pipe(delay$1(0));
|
|
6065
6410
|
}
|
|
6066
6411
|
ngOnInit() {
|
|
@@ -6075,7 +6420,7 @@ DbxPopupCoordinatorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12
|
|
|
6075
6420
|
<ng-container *ngIf="show$ | async">
|
|
6076
6421
|
<ng-content></ng-content>
|
|
6077
6422
|
</ng-container>
|
|
6078
|
-
`, isInline: true, directives: [{ type: i3
|
|
6423
|
+
`, isInline: true, directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i3.AsyncPipe } });
|
|
6079
6424
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopupCoordinatorComponent, decorators: [{
|
|
6080
6425
|
type: Component,
|
|
6081
6426
|
args: [{
|
|
@@ -6106,8 +6451,8 @@ class DbxPopupComponent extends AbstractTransitionWatcherDirective {
|
|
|
6106
6451
|
init: this.config.init ? ((instance) => this.config.init(instance, this)) : undefined
|
|
6107
6452
|
};
|
|
6108
6453
|
this.closing = new Subject();
|
|
6109
|
-
this.isClosing$ = this.closing.pipe(first$1(), map
|
|
6110
|
-
this.closing$ = this.isClosing$.pipe(filter
|
|
6454
|
+
this.isClosing$ = this.closing.pipe(first$1(), map(x => true), startWith$1(false), shareReplay$1(1));
|
|
6455
|
+
this.closing$ = this.isClosing$.pipe(filter(x => x));
|
|
6111
6456
|
this._windowState = new BehaviorSubject(DbxPopupWindowState.NORMAL);
|
|
6112
6457
|
this.windowState$ = this._windowState.asObservable();
|
|
6113
6458
|
this.compactContextState.setMode(CompactMode.COMPACT);
|
|
@@ -6170,7 +6515,7 @@ class DbxPopupComponent extends AbstractTransitionWatcherDirective {
|
|
|
6170
6515
|
this._windowState.next(DbxPopupWindowState.FULLSCREEN);
|
|
6171
6516
|
}
|
|
6172
6517
|
}
|
|
6173
|
-
DbxPopupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopupComponent, deps: [{ token: i1$
|
|
6518
|
+
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 });
|
|
6174
6519
|
DbxPopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: DbxPopupComponent, selector: "ng-component", providers: [{
|
|
6175
6520
|
provide: DbxPopupController,
|
|
6176
6521
|
useExisting: DbxPopupComponent
|
|
@@ -6180,7 +6525,7 @@ DbxPopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
|
|
|
6180
6525
|
<dbx-popup-coordinator>
|
|
6181
6526
|
<div class="dbx-popup-component" dbx-injected-content [config]="contentConfig"></div>
|
|
6182
6527
|
</dbx-popup-coordinator>
|
|
6183
|
-
`, isInline: true, components: [{ type: DbxPopupCoordinatorComponent, selector: "dbx-popup-coordinator" }, { type: i1.DbxInjectedComponent, selector: "dbx-injected-content, [dbx-injected-content]", inputs: ["config", "template"] }] });
|
|
6528
|
+
`, isInline: true, components: [{ type: DbxPopupCoordinatorComponent, selector: "dbx-popup-coordinator" }, { type: i1$2.DbxInjectedComponent, selector: "dbx-injected-content, [dbx-injected-content]", inputs: ["config", "template"] }] });
|
|
6184
6529
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopupComponent, decorators: [{
|
|
6185
6530
|
type: Component,
|
|
6186
6531
|
args: [{
|
|
@@ -6196,7 +6541,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
6196
6541
|
provide: CompactContextStore
|
|
6197
6542
|
}]
|
|
6198
6543
|
}]
|
|
6199
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
6544
|
+
}], ctorParameters: function () { return [{ type: i1$b.NgPopoverRef }, { type: CompactContextStore }, { type: i1$2.DbxRouterTransitionService }, { type: i0.NgZone }]; } });
|
|
6200
6545
|
|
|
6201
6546
|
/**
|
|
6202
6547
|
* Abstract popup directive.
|
|
@@ -6221,7 +6566,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
6221
6566
|
class DbxPopupContentComponent {
|
|
6222
6567
|
constructor(appPopupController) {
|
|
6223
6568
|
this.appPopupController = appPopupController;
|
|
6224
|
-
this.showContent$ = this.appPopupController.windowState$.pipe(map
|
|
6569
|
+
this.showContent$ = this.appPopupController.windowState$.pipe(map(x => x !== DbxPopupWindowState.MINIMIZED));
|
|
6225
6570
|
}
|
|
6226
6571
|
}
|
|
6227
6572
|
DbxPopupContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopupContentComponent, deps: [{ token: DbxPopupController }], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -6230,7 +6575,7 @@ DbxPopupContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0
|
|
|
6230
6575
|
<div *ngIf="showContent$ | async" class="dbx-popup-content-container">
|
|
6231
6576
|
<ng-content></ng-content>
|
|
6232
6577
|
</div>
|
|
6233
|
-
`, isInline: true, directives: [{ type: i3
|
|
6578
|
+
`, isInline: true, directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i3.AsyncPipe } });
|
|
6234
6579
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopupContentComponent, decorators: [{
|
|
6235
6580
|
type: Component,
|
|
6236
6581
|
args: [{
|
|
@@ -6253,8 +6598,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
6253
6598
|
class DbxPopupControlButtonsComponent {
|
|
6254
6599
|
constructor(appPopupController) {
|
|
6255
6600
|
this.appPopupController = appPopupController;
|
|
6256
|
-
this.isMinimized$ = this.appPopupController.windowState$.pipe(map
|
|
6257
|
-
this.isFullscreen$ = this.appPopupController.windowState$.pipe(map
|
|
6601
|
+
this.isMinimized$ = this.appPopupController.windowState$.pipe(map(x => x === DbxPopupWindowState.MINIMIZED));
|
|
6602
|
+
this.isFullscreen$ = this.appPopupController.windowState$.pipe(map(x => x === DbxPopupWindowState.FULLSCREEN));
|
|
6258
6603
|
}
|
|
6259
6604
|
minimizeClicked() {
|
|
6260
6605
|
this.appPopupController.minimize();
|
|
@@ -6285,7 +6630,7 @@ DbxPopupControlButtonsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion:
|
|
|
6285
6630
|
</ng-container>
|
|
6286
6631
|
<dbx-button-spacer></dbx-button-spacer>
|
|
6287
6632
|
<dbx-button [flat]="true" icon="close" color="warn" (buttonClick)="closeClicked()"></dbx-button>
|
|
6288
|
-
`, isInline: true, components: [{ type: DbxButtonComponent, selector: "dbx-button", inputs: ["type", "raised", "stroked", "flat", "color"] }
|
|
6633
|
+
`, isInline: true, components: [{ type: DbxButtonComponent, selector: "dbx-button", inputs: ["type", "raised", "stroked", "flat", "color"] }], directives: [{ type: i3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: DbxButtonSpacerDirective, selector: "dbx-button-spacer,dbxButtonSpacer" }], pipes: { "async": i3.AsyncPipe } });
|
|
6289
6634
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopupControlButtonsComponent, decorators: [{
|
|
6290
6635
|
type: Component,
|
|
6291
6636
|
args: [{
|
|
@@ -6366,11 +6711,11 @@ class DbxPopupService {
|
|
|
6366
6711
|
});
|
|
6367
6712
|
}
|
|
6368
6713
|
}
|
|
6369
|
-
DbxPopupService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopupService, deps: [{ token: i1$
|
|
6714
|
+
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 });
|
|
6370
6715
|
DbxPopupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopupService });
|
|
6371
6716
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxPopupService, decorators: [{
|
|
6372
6717
|
type: Injectable
|
|
6373
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
6718
|
+
}], ctorParameters: function () { return [{ type: i1$c.Overlay }, { type: i0.Injector }]; } });
|
|
6374
6719
|
|
|
6375
6720
|
class DbxPopupInteractionModule {
|
|
6376
6721
|
static forRoot() {
|
|
@@ -6469,6 +6814,47 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
6469
6814
|
}]
|
|
6470
6815
|
}] });
|
|
6471
6816
|
|
|
6817
|
+
class DbxActionSnackbarModule {
|
|
6818
|
+
}
|
|
6819
|
+
DbxActionSnackbarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionSnackbarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6820
|
+
DbxActionSnackbarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionSnackbarModule, declarations: [DbxActionSnackbarComponent,
|
|
6821
|
+
DbxActionSnackbarDirective], imports: [CommonModule,
|
|
6822
|
+
DbxStyleLayoutModule,
|
|
6823
|
+
DbxCoreActionModule,
|
|
6824
|
+
DbxPromptModule,
|
|
6825
|
+
DbxButtonModule,
|
|
6826
|
+
DbxReadableErrorModule], exports: [DbxActionSnackbarComponent,
|
|
6827
|
+
DbxActionSnackbarDirective] });
|
|
6828
|
+
DbxActionSnackbarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionSnackbarModule, imports: [[
|
|
6829
|
+
CommonModule,
|
|
6830
|
+
DbxStyleLayoutModule,
|
|
6831
|
+
DbxCoreActionModule,
|
|
6832
|
+
DbxPromptModule,
|
|
6833
|
+
DbxButtonModule,
|
|
6834
|
+
DbxReadableErrorModule
|
|
6835
|
+
]] });
|
|
6836
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionSnackbarModule, decorators: [{
|
|
6837
|
+
type: NgModule,
|
|
6838
|
+
args: [{
|
|
6839
|
+
imports: [
|
|
6840
|
+
CommonModule,
|
|
6841
|
+
DbxStyleLayoutModule,
|
|
6842
|
+
DbxCoreActionModule,
|
|
6843
|
+
DbxPromptModule,
|
|
6844
|
+
DbxButtonModule,
|
|
6845
|
+
DbxReadableErrorModule
|
|
6846
|
+
],
|
|
6847
|
+
declarations: [
|
|
6848
|
+
DbxActionSnackbarComponent,
|
|
6849
|
+
DbxActionSnackbarDirective
|
|
6850
|
+
],
|
|
6851
|
+
exports: [
|
|
6852
|
+
DbxActionSnackbarComponent,
|
|
6853
|
+
DbxActionSnackbarDirective
|
|
6854
|
+
]
|
|
6855
|
+
}]
|
|
6856
|
+
}] });
|
|
6857
|
+
|
|
6472
6858
|
var DbxActionTransitionSafetyDialogResult;
|
|
6473
6859
|
(function (DbxActionTransitionSafetyDialogResult) {
|
|
6474
6860
|
DbxActionTransitionSafetyDialogResult[DbxActionTransitionSafetyDialogResult["SUCCESS"] = 0] = "SUCCESS";
|
|
@@ -6506,7 +6892,7 @@ DbxActionUIRouterTransitionSafetyDialogComponent.ɵcmp = i0.ɵɵngDeclareCompone
|
|
|
6506
6892
|
<dbx-button-spacer></dbx-button-spacer>
|
|
6507
6893
|
</ng-container>
|
|
6508
6894
|
</dbx-prompt-confirm>
|
|
6509
|
-
`, isInline: true, components: [{ type: DbxPromptConfirmComponent, selector: "dbx-prompt-confirm", inputs: ["config"], outputs: ["confirm", "cancel"] }, { type: DbxReadableErrorComponent, selector: "dbx-error", inputs: ["error"] }, { type: DbxButtonComponent, selector: "dbx-button", inputs: ["type", "raised", "stroked", "flat", "color"] }, { type:
|
|
6895
|
+
`, isInline: true, components: [{ type: DbxPromptConfirmComponent, selector: "dbx-prompt-confirm", inputs: ["config"], outputs: ["confirm", "cancel"] }, { type: DbxReadableErrorComponent, selector: "dbx-error", inputs: ["error"] }, { type: DbxButtonComponent, selector: "dbx-button", inputs: ["type", "raised", "stroked", "flat", "color"] }], directives: [{ type: DbxActionErrorDirective, selector: "[dbxActionError]" }, { type: i1$2.DbxActionButtonDirective, selector: "[dbxActionButton]" }, { type: DbxButtonSpacerDirective, selector: "dbx-button-spacer,dbxButtonSpacer" }] });
|
|
6510
6896
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionUIRouterTransitionSafetyDialogComponent, decorators: [{
|
|
6511
6897
|
type: Component,
|
|
6512
6898
|
args: [{
|
|
@@ -6560,9 +6946,9 @@ class DbxActionTransitionSafetyDirective {
|
|
|
6560
6946
|
if (isModified) {
|
|
6561
6947
|
return race([
|
|
6562
6948
|
// Watch for success to occur. At that point, close everything.
|
|
6563
|
-
this.source.success$.pipe(first$1(), map
|
|
6564
|
-
this._handleIsModifiedState(transition).pipe(first$1(), map
|
|
6565
|
-
]).pipe(map
|
|
6949
|
+
this.source.success$.pipe(first$1(), map((x) => [true, undefined])),
|
|
6950
|
+
this._handleIsModifiedState(transition).pipe(first$1(), map((x) => [undefined, x]))
|
|
6951
|
+
]).pipe(map(([saveSuccess, handleResult]) => {
|
|
6566
6952
|
if (saveSuccess) {
|
|
6567
6953
|
return true;
|
|
6568
6954
|
}
|
|
@@ -6619,7 +7005,7 @@ class DbxActionTransitionSafetyDirective {
|
|
|
6619
7005
|
viewContainerRef: this.viewContainerRef
|
|
6620
7006
|
});
|
|
6621
7007
|
}
|
|
6622
|
-
return this._dialogRef.afterClosed().pipe(first$1(), map
|
|
7008
|
+
return this._dialogRef.afterClosed().pipe(first$1(), map((result = DbxActionTransitionSafetyDialogResult.STAY) => {
|
|
6623
7009
|
// Default to Stay if the user clicks outside.
|
|
6624
7010
|
switch (result) {
|
|
6625
7011
|
case DbxActionTransitionSafetyDialogResult.DISCARD:
|
|
@@ -6638,14 +7024,14 @@ class DbxActionTransitionSafetyDirective {
|
|
|
6638
7024
|
this._dialogRef = undefined;
|
|
6639
7025
|
}
|
|
6640
7026
|
}
|
|
6641
|
-
DbxActionTransitionSafetyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionTransitionSafetyDirective, deps: [{ token: i1.
|
|
7027
|
+
DbxActionTransitionSafetyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionTransitionSafetyDirective, deps: [{ token: i1$2.DbxActionContextStoreSourceInstance }, { token: i2$3.TransitionService }, { token: i0.ViewContainerRef }, { token: i1$3.MatDialog }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6642
7028
|
DbxActionTransitionSafetyDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: DbxActionTransitionSafetyDirective, selector: "[dbxActionTransitionSafety]", inputs: { inputSafetyType: ["dbxActionTransitionSafety", "inputSafetyType"] }, ngImport: i0 });
|
|
6643
7029
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxActionTransitionSafetyDirective, decorators: [{
|
|
6644
7030
|
type: Directive,
|
|
6645
7031
|
args: [{
|
|
6646
7032
|
selector: '[dbxActionTransitionSafety]',
|
|
6647
7033
|
}]
|
|
6648
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
7034
|
+
}], ctorParameters: function () { return [{ type: i1$2.DbxActionContextStoreSourceInstance }, { type: i2$3.TransitionService }, { type: i0.ViewContainerRef }, { type: i1$3.MatDialog }]; }, propDecorators: { inputSafetyType: [{
|
|
6649
7035
|
type: Input,
|
|
6650
7036
|
args: ['dbxActionTransitionSafety']
|
|
6651
7037
|
}] } });
|
|
@@ -6719,7 +7105,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
6719
7105
|
class DbxWebRootModule {
|
|
6720
7106
|
}
|
|
6721
7107
|
DbxWebRootModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxWebRootModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6722
|
-
DbxWebRootModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxWebRootModule, imports: [i1
|
|
7108
|
+
DbxWebRootModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxWebRootModule, imports: [i1.MatProgressButtonsModule] });
|
|
6723
7109
|
DbxWebRootModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: DbxWebRootModule, imports: [[
|
|
6724
7110
|
MatProgressButtonsModule.forRoot()
|
|
6725
7111
|
]] });
|
|
@@ -6736,5 +7122,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
|
6736
7122
|
* Generated bundle index. Do not edit.
|
|
6737
7123
|
*/
|
|
6738
7124
|
|
|
6739
|
-
export { APP_POPUP_MINIMIZED_WIDTH, APP_POPUP_NORMAL_HEIGHT, APP_POPUP_NORMAL_WIDTH, AbstractDbxListViewDirective, AbstractDbxListWrapperDirective, AbstractDbxSegueAnchorDirective, AbstractDbxSelectionListWrapperDirective, AbstractDbxSelectionValueListViewItemComponent, AbstractDbxValueListViewDirective, AbstractDialogDirective, AbstractFilterPopoverButtonDirective, AbstractPopoverDirective, AbstractPopoverRefDirective, AbstractPopoverRefWithEventsDirective, AbstractPopupDirective, AbstractPromptConfirmDirective, AbstractSelectionValueListViewDirective, CompactContextStore, CompactMode, DBX_STYLE_DEFAULT_CONFIG_TOKEN, DBX_VALUE_LIST_VIEW_ITEM, DEFAULT_DBX_PROMPT_CONFIRM_DIALOG_CONFIG, DEFAULT_DBX_VALUE_LIST_CONFIG_MAP_VALUES, DEFAULT_FILTER_POPOVER_KEY, DEFAULT_LIST_WRAPPER_DIRECTIVE_TEMPLATE, DEFAULT_LOADING_PROGRESS_DIAMETER, DEFAULT_SCREEN_MEDIA_SERVICE_CONFIG, DEFAULT_STATIC_LIST_DIRECTIVE_TEMPLATE, DbxActionConfirmDirective, DbxActionErrorDirective, DbxActionKeyTriggerDirective, DbxActionModule, DbxActionSnackbarComponent, DbxActionTransitionSafetyDialogResult, DbxActionTransitionSafetyDirective, DbxActionUIRouterTransitionModule, DbxActionUIRouterTransitionSafetyDialogComponent, DbxAnchorComponent, DbxAnchorIconComponent, DbxAnchorLinkComponent, DbxAnchorListComponent, DbxAnchorListModule, DbxAnchorModule, DbxAngularRouterSegueAnchorComponent, DbxBarDirective, DbxBarHeaderComponent, DbxBarLayoutModule, DbxBasicLoadingComponent, DbxBlockLayoutModule, DbxButtonComponent, DbxButtonDisplayType, DbxButtonModule,
|
|
7125
|
+
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 };
|
|
6740
7126
|
//# sourceMappingURL=dereekb-dbx-web.mjs.map
|