@dereekb/dbx-web 9.21.0 → 9.22.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/calendar/package.json +2 -2
- package/esm2020/lib/action/snackbar/action.snackbar.component.mjs +1 -1
- package/esm2020/lib/action/transition/transition.safety.dialog.component.mjs +1 -1
- package/esm2020/lib/button/button.component.mjs +14 -2
- package/esm2020/lib/button/progress/base.progress.button.directive.mjs +3 -1
- package/esm2020/lib/button/progress/button.progress.config.mjs +1 -1
- package/esm2020/lib/button/progress/spinner.button.component.mjs +7 -4
- package/esm2020/lib/extension/model/model.tracker.view.storage.mjs +2 -3
- package/esm2020/lib/extension/model/model.types.service.mjs +2 -3
- package/esm2020/lib/extension/model/state/effects/tracker.effects.mjs +2 -2
- package/esm2020/lib/interaction/filter/filter.preset.menu.component.mjs +2 -3
- package/esm2020/lib/interaction/filter/filter.preset.mjs +2 -3
- package/esm2020/lib/interaction/filter/filter.wrapper.component.mjs +1 -1
- package/esm2020/lib/interaction/popup/popup.controls.buttons.component.mjs +1 -1
- package/esm2020/lib/layout/column/two/two.column.sref.showright.directive.mjs +2 -3
- package/esm2020/lib/layout/content/content.pit.directive.mjs +1 -1
- package/esm2020/mapbox/lib/mapbox.change.service.mjs +2 -3
- package/esm2020/table/lib/date/date.table.column.header.component.mjs +1 -1
- package/esm2020/table/lib/date/daterange.table.cell.input.component.mjs +1 -1
- package/esm2020/table/lib/table.cell.input.component.mjs +1 -1
- package/esm2020/table/lib/table.cell.summarystart.component.mjs +1 -1
- package/esm2020/table/lib/table.column.directive.mjs +1 -1
- package/esm2020/table/lib/table.component.mjs +2 -3
- package/esm2020/table/lib/table.directive.mjs +1 -1
- package/esm2020/table/lib/table.item.action.component.mjs +1 -1
- package/esm2020/table/lib/table.item.directive.mjs +1 -1
- package/esm2020/table/lib/table.item.header.component.mjs +1 -1
- package/esm2020/table/lib/table.mjs +1 -1
- package/esm2020/table/lib/table.store.mjs +1 -1
- package/fesm2015/dereekb-dbx-web-mapbox.mjs +1 -2
- package/fesm2015/dereekb-dbx-web-mapbox.mjs.map +1 -1
- package/fesm2015/dereekb-dbx-web-table.mjs +3 -4
- package/fesm2015/dereekb-dbx-web-table.mjs.map +1 -1
- package/fesm2015/dereekb-dbx-web.mjs +41 -25
- package/fesm2015/dereekb-dbx-web.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-web-mapbox.mjs +1 -2
- package/fesm2020/dereekb-dbx-web-mapbox.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-web-table.mjs +3 -4
- package/fesm2020/dereekb-dbx-web-table.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-web.mjs +41 -25
- package/fesm2020/dereekb-dbx-web.mjs.map +1 -1
- package/lib/button/_button.scss +4 -0
- package/lib/button/button.component.d.ts +5 -2
- package/lib/button/progress/button.progress.config.d.ts +7 -0
- package/lib/button/progress/spinner.button.component.d.ts +1 -0
- package/mapbox/esm2020/lib/mapbox.change.service.mjs +2 -3
- package/mapbox/fesm2015/dereekb-dbx-web-mapbox.mjs +1 -2
- package/mapbox/fesm2015/dereekb-dbx-web-mapbox.mjs.map +1 -1
- package/mapbox/fesm2020/dereekb-dbx-web-mapbox.mjs +1 -2
- package/mapbox/fesm2020/dereekb-dbx-web-mapbox.mjs.map +1 -1
- package/mapbox/package.json +3 -3
- package/package.json +3 -3
- package/table/esm2020/lib/date/date.table.column.header.component.mjs +1 -1
- package/table/esm2020/lib/date/daterange.table.cell.input.component.mjs +1 -1
- package/table/esm2020/lib/table.cell.input.component.mjs +1 -1
- package/table/esm2020/lib/table.cell.summarystart.component.mjs +1 -1
- package/table/esm2020/lib/table.column.directive.mjs +1 -1
- package/table/esm2020/lib/table.component.mjs +2 -3
- package/table/esm2020/lib/table.directive.mjs +1 -1
- package/table/esm2020/lib/table.item.action.component.mjs +1 -1
- package/table/esm2020/lib/table.item.directive.mjs +1 -1
- package/table/esm2020/lib/table.item.header.component.mjs +1 -1
- package/table/esm2020/lib/table.mjs +1 -1
- package/table/esm2020/lib/table.store.mjs +1 -1
- package/table/fesm2015/dereekb-dbx-web-table.mjs +3 -4
- package/table/fesm2015/dereekb-dbx-web-table.mjs.map +1 -1
- package/table/fesm2020/dereekb-dbx-web-table.mjs +3 -4
- package/table/fesm2020/dereekb-dbx-web-table.mjs.map +1 -1
- package/table/lib/table.cell.input.component.d.ts +1 -1
- package/table/lib/table.cell.summarystart.component.d.ts +1 -1
- package/table/lib/table.item.action.component.d.ts +1 -2
- package/table/lib/table.item.header.component.d.ts +1 -2
- package/table/package.json +3 -3
|
@@ -34,7 +34,6 @@ import * as i4 from '@angular/material/divider';
|
|
|
34
34
|
import { MatDividerModule } from '@angular/material/divider';
|
|
35
35
|
import * as i3$2 from '@angular/flex-layout/flex';
|
|
36
36
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
|
37
|
-
import { shareReplay as shareReplay$1, mergeMap as mergeMap$1, map as map$1, catchError as catchError$1, distinctUntilChanged as distinctUntilChanged$1, tap as tap$1, filter as filter$1 } from 'rxjs/operators';
|
|
38
37
|
import * as i4$1 from '@angular/material/list';
|
|
39
38
|
import { MatListModule } from '@angular/material/list';
|
|
40
39
|
import * as i4$3 from '@angular/material/tabs';
|
|
@@ -103,6 +102,7 @@ class AbstractProgressButtonDirective extends AbstractSubscriptionDirective {
|
|
|
103
102
|
working: options?.working || working,
|
|
104
103
|
disabled: options?.disabled || disabled
|
|
105
104
|
};
|
|
105
|
+
completeOptions.buttonIcon = completeOptions.buttonIcon || completeOptions.icon;
|
|
106
106
|
}
|
|
107
107
|
return completeOptions;
|
|
108
108
|
}), filterMaybe(), distinctUntilChanged(), shareReplay(1));
|
|
@@ -125,6 +125,7 @@ class AbstractProgressButtonDirective extends AbstractSubscriptionDirective {
|
|
|
125
125
|
this.options$.pipe(first()).subscribe((options) => {
|
|
126
126
|
if (!options.disabled && !options.working) {
|
|
127
127
|
this.btnClick.emit(event);
|
|
128
|
+
event.stopImmediatePropagation();
|
|
128
129
|
}
|
|
129
130
|
});
|
|
130
131
|
}
|
|
@@ -173,13 +174,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
173
174
|
}] } });
|
|
174
175
|
|
|
175
176
|
class DbxSpinnerButtonComponent extends AbstractProgressButtonDirective {
|
|
177
|
+
get showText() {
|
|
178
|
+
return !(this.options.fab || this.options.iconOnly);
|
|
179
|
+
}
|
|
176
180
|
calcSpinnerSize() {
|
|
177
181
|
const options = this.options;
|
|
178
182
|
const elem = this.buttonRef?.nativeElement;
|
|
179
183
|
const height = elem.clientHeight;
|
|
180
184
|
let size;
|
|
181
185
|
if (options) {
|
|
182
|
-
if (options.fab) {
|
|
186
|
+
if (options.fab || options.iconOnly) {
|
|
183
187
|
size = height;
|
|
184
188
|
}
|
|
185
189
|
else {
|
|
@@ -196,10 +200,10 @@ class DbxSpinnerButtonComponent extends AbstractProgressButtonDirective {
|
|
|
196
200
|
}
|
|
197
201
|
}
|
|
198
202
|
DbxSpinnerButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxSpinnerButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
199
|
-
DbxSpinnerButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: DbxSpinnerButtonComponent, selector: "dbx-spinner-button", viewQueries: [{ propertyName: "buttonRef", first: true, predicate: ["button"], descendants: true, read: ElementRef, static: true }], usesInheritance: true, ngImport: i0, template: "<button class=\"dbx-spinner-button\" #button mat-button [type]=\"options.type\" [color]=\"options.buttonColor\" [class.working]=\"options.working\" [class.fullWidth]=\"options.fullWidth\" [class.mat-raised-button]=\"options.raised\" [class.mat-stroked-button]=\"options.stroked\" [class.mat-flat-button]=\"options.flat\" [class.mat-fab]=\"options.fab\" [ngClass]=\"options.customClass!\" [ngStyle]=\"options.customStyle!\" [disabled]=\"options.working || options.disabled\">\n <ng-container *ngIf=\"options.buttonIcon\">\n
|
|
203
|
+
DbxSpinnerButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: DbxSpinnerButtonComponent, selector: "dbx-spinner-button", viewQueries: [{ propertyName: "buttonRef", first: true, predicate: ["button"], descendants: true, read: ElementRef, static: true }], usesInheritance: true, ngImport: i0, template: "<button class=\"dbx-spinner-button\" #button mat-button [type]=\"options.type\" [color]=\"options.buttonColor\" [class.working]=\"options.working\" [class.fullWidth]=\"options.fullWidth\" [class.mat-raised-button]=\"options.raised\" [class.mat-stroked-button]=\"options.stroked\" [class.mat-flat-button]=\"options.flat\" [class.mat-icon-button]=\"options.iconOnly\" [class.mat-fab]=\"options.fab\" [ngClass]=\"options.customClass!\" [ngStyle]=\"options.customStyle!\" [disabled]=\"options.working || options.disabled\">\n <ng-container *ngIf=\"showText\">\n <ng-container *ngIf=\"options.buttonIcon\">\n <mat-icon class=\"mat-button-icon\" [class.is-mat-icon]=\"!options.buttonIcon.fontSet\" [class.working]=\"options.working && !options.disabled\" [ngClass]=\"options.buttonIcon.customClass!\" [fontSet]=\"options.buttonIcon.fontSet!\" [fontIcon]=\"options.buttonIcon.fontIcon!\" [color]=\"options.buttonIcon.color!\" [svgIcon]=\"options.buttonIcon.svgIcon!\">\n {{ options.buttonIcon.fontSet ? '' : options.buttonIcon.fontIcon }}\n </mat-icon>\n </ng-container>\n\n <span class=\"button-text\" [class.working]=\"options.working && !options.disabled\">\n {{ options.text }}\n <ng-content></ng-content>\n </span>\n </ng-container>\n\n <ng-container *ngIf=\"!showText && options.buttonIcon\">\n <mat-icon class=\"mat-fab-icon\" [fontSet]=\"options.buttonIcon.fontSet!\" [fontIcon]=\"options.buttonIcon.fontIcon!\" [color]=\"options.buttonIcon.color!\" [svgIcon]=\"options.buttonIcon.svgIcon!\" [inline]=\"options.fab && options.buttonIcon.inline!\">\n {{ options.buttonIcon.fontSet ? '' : options.buttonIcon.fontIcon }}\n </mat-icon>\n </ng-container>\n\n <mat-spinner class=\"spinner\" *ngIf=\"options.working && !options.disabled\" [diameter]=\"calcSpinnerSize()\" [color]=\"options.spinnerColor!\" [mode]=\"options.mode!\" [value]=\"options.value!\" [ngStyle]=\"customSpinnerStyle!\" [ngClass]=\"{ 'dbx-spinner-custom': customSpinnerStyle! }\" [class.working]=\"options.working && !options.disabled\"></mat-spinner>\n</button>\n", styles: [":host button{outline:none}:host button.working{cursor:not-allowed}:host button ::ng-deep .mat-button-wrapper{display:flex;align-items:center;justify-content:center}:host button.fullWidth{width:100%}:host button .spinner{position:absolute;opacity:0;transition:opacity .3s ease-in-out}:host button .spinner.working{opacity:1}:host button .button-text{opacity:1;transition:opacity .3s ease-in-out}:host button .button-text.working{opacity:0}:host button mat-icon.mat-button-icon{padding-right:5px;transition:opacity .3s ease-in-out}:host button mat-icon.mat-button-icon.is-mat-icon{font-size:18px;position:relative;top:3px}:host button mat-icon.mat-button-icon.working{opacity:0}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", 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"] }, { kind: "component", type: i3.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "diameter", "strokeWidth", "mode", "value"], exportAs: ["matProgressSpinner"] }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
200
204
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxSpinnerButtonComponent, decorators: [{
|
|
201
205
|
type: Component,
|
|
202
|
-
args: [{ selector: 'dbx-spinner-button', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button class=\"dbx-spinner-button\" #button mat-button [type]=\"options.type\" [color]=\"options.buttonColor\" [class.working]=\"options.working\" [class.fullWidth]=\"options.fullWidth\" [class.mat-raised-button]=\"options.raised\" [class.mat-stroked-button]=\"options.stroked\" [class.mat-flat-button]=\"options.flat\" [class.mat-fab]=\"options.fab\" [ngClass]=\"options.customClass!\" [ngStyle]=\"options.customStyle!\" [disabled]=\"options.working || options.disabled\">\n <ng-container *ngIf=\"options.buttonIcon\">\n
|
|
206
|
+
args: [{ selector: 'dbx-spinner-button', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button class=\"dbx-spinner-button\" #button mat-button [type]=\"options.type\" [color]=\"options.buttonColor\" [class.working]=\"options.working\" [class.fullWidth]=\"options.fullWidth\" [class.mat-raised-button]=\"options.raised\" [class.mat-stroked-button]=\"options.stroked\" [class.mat-flat-button]=\"options.flat\" [class.mat-icon-button]=\"options.iconOnly\" [class.mat-fab]=\"options.fab\" [ngClass]=\"options.customClass!\" [ngStyle]=\"options.customStyle!\" [disabled]=\"options.working || options.disabled\">\n <ng-container *ngIf=\"showText\">\n <ng-container *ngIf=\"options.buttonIcon\">\n <mat-icon class=\"mat-button-icon\" [class.is-mat-icon]=\"!options.buttonIcon.fontSet\" [class.working]=\"options.working && !options.disabled\" [ngClass]=\"options.buttonIcon.customClass!\" [fontSet]=\"options.buttonIcon.fontSet!\" [fontIcon]=\"options.buttonIcon.fontIcon!\" [color]=\"options.buttonIcon.color!\" [svgIcon]=\"options.buttonIcon.svgIcon!\">\n {{ options.buttonIcon.fontSet ? '' : options.buttonIcon.fontIcon }}\n </mat-icon>\n </ng-container>\n\n <span class=\"button-text\" [class.working]=\"options.working && !options.disabled\">\n {{ options.text }}\n <ng-content></ng-content>\n </span>\n </ng-container>\n\n <ng-container *ngIf=\"!showText && options.buttonIcon\">\n <mat-icon class=\"mat-fab-icon\" [fontSet]=\"options.buttonIcon.fontSet!\" [fontIcon]=\"options.buttonIcon.fontIcon!\" [color]=\"options.buttonIcon.color!\" [svgIcon]=\"options.buttonIcon.svgIcon!\" [inline]=\"options.fab && options.buttonIcon.inline!\">\n {{ options.buttonIcon.fontSet ? '' : options.buttonIcon.fontIcon }}\n </mat-icon>\n </ng-container>\n\n <mat-spinner class=\"spinner\" *ngIf=\"options.working && !options.disabled\" [diameter]=\"calcSpinnerSize()\" [color]=\"options.spinnerColor!\" [mode]=\"options.mode!\" [value]=\"options.value!\" [ngStyle]=\"customSpinnerStyle!\" [ngClass]=\"{ 'dbx-spinner-custom': customSpinnerStyle! }\" [class.working]=\"options.working && !options.disabled\"></mat-spinner>\n</button>\n", styles: [":host button{outline:none}:host button.working{cursor:not-allowed}:host button ::ng-deep .mat-button-wrapper{display:flex;align-items:center;justify-content:center}:host button.fullWidth{width:100%}:host button .spinner{position:absolute;opacity:0;transition:opacity .3s ease-in-out}:host button .spinner.working{opacity:1}:host button .button-text{opacity:1;transition:opacity .3s ease-in-out}:host button .button-text.working{opacity:0}:host button mat-icon.mat-button-icon{padding-right:5px;transition:opacity .3s ease-in-out}:host button mat-icon.mat-button-icon.is-mat-icon{font-size:18px;position:relative;top:3px}:host button mat-icon.mat-button-icon.working{opacity:0}\n"] }]
|
|
203
207
|
}], propDecorators: { buttonRef: [{
|
|
204
208
|
type: ViewChild,
|
|
205
209
|
args: ['button', { static: true, read: ElementRef }]
|
|
@@ -210,6 +214,7 @@ var DbxButtonDisplayType;
|
|
|
210
214
|
DbxButtonDisplayType[DbxButtonDisplayType["RAISED"] = 0] = "RAISED";
|
|
211
215
|
DbxButtonDisplayType[DbxButtonDisplayType["STROKED"] = 1] = "STROKED";
|
|
212
216
|
DbxButtonDisplayType[DbxButtonDisplayType["FLAT"] = 2] = "FLAT";
|
|
217
|
+
DbxButtonDisplayType[DbxButtonDisplayType["ICON_ONLY"] = 3] = "ICON_ONLY";
|
|
213
218
|
})(DbxButtonDisplayType || (DbxButtonDisplayType = {}));
|
|
214
219
|
/**
|
|
215
220
|
* Complex button that supports loading states.
|
|
@@ -243,6 +248,14 @@ class DbxButtonComponent extends AbstractDbxButtonDirective {
|
|
|
243
248
|
this.type = DbxButtonDisplayType.FLAT;
|
|
244
249
|
}
|
|
245
250
|
}
|
|
251
|
+
get iconOnly() {
|
|
252
|
+
return this.type === DbxButtonDisplayType.ICON_ONLY;
|
|
253
|
+
}
|
|
254
|
+
set iconOnly(iconOnly) {
|
|
255
|
+
if (iconOnly) {
|
|
256
|
+
this.type = DbxButtonDisplayType.ICON_ONLY;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
246
259
|
get btnOptions() {
|
|
247
260
|
const buttonIcon = this.icon
|
|
248
261
|
? {
|
|
@@ -271,6 +284,7 @@ class DbxButtonComponent extends AbstractDbxButtonDirective {
|
|
|
271
284
|
raised: this.raised,
|
|
272
285
|
stroked: this.stroked,
|
|
273
286
|
flat: this.flat,
|
|
287
|
+
iconOnly: this.iconOnly,
|
|
274
288
|
mode: 'indeterminate',
|
|
275
289
|
spinnerColor: this.color === 'primary' ? 'accent' : 'primary',
|
|
276
290
|
customSpinnerColor,
|
|
@@ -279,7 +293,7 @@ class DbxButtonComponent extends AbstractDbxButtonDirective {
|
|
|
279
293
|
}
|
|
280
294
|
}
|
|
281
295
|
DbxButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
282
|
-
DbxButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: DbxButtonComponent, selector: "dbx-button", inputs: { type: "type", raised: "raised", stroked: "stroked", flat: "flat", color: "color", customButtonColor: "customButtonColor", customTextColor: "customTextColor", customSpinnerColor: "customSpinnerColor" }, providers: provideDbxButton(DbxButtonComponent), usesInheritance: true, ngImport: i0, template: `
|
|
296
|
+
DbxButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: DbxButtonComponent, selector: "dbx-button", inputs: { type: "type", raised: "raised", stroked: "stroked", flat: "flat", iconOnly: "iconOnly", color: "color", customButtonColor: "customButtonColor", customTextColor: "customTextColor", customSpinnerColor: "customSpinnerColor" }, providers: provideDbxButton(DbxButtonComponent), usesInheritance: true, ngImport: i0, template: `
|
|
283
297
|
<dbx-spinner-button class="page-button" (btnClick)="clickButton()" [options]="btnOptions">
|
|
284
298
|
<ng-content></ng-content>
|
|
285
299
|
</dbx-spinner-button>
|
|
@@ -303,6 +317,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
303
317
|
type: Input
|
|
304
318
|
}], flat: [{
|
|
305
319
|
type: Input
|
|
320
|
+
}], iconOnly: [{
|
|
321
|
+
type: Input
|
|
306
322
|
}], color: [{
|
|
307
323
|
type: Input
|
|
308
324
|
}], customButtonColor: [{
|
|
@@ -404,7 +420,7 @@ class DbxActionSnackbarComponent extends AbstractSubscriptionDirective {
|
|
|
404
420
|
}
|
|
405
421
|
}
|
|
406
422
|
DbxActionSnackbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxActionSnackbarComponent, deps: [{ token: i1$1.MatSnackBarRef }, { token: MAT_SNACK_BAR_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
407
|
-
DbxActionSnackbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", 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\" [dbxActionSuccessHandler]=\"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", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: DbxSpacerDirective, selector: "dbx-spacer, [dbxSpacer]" }, { kind: "directive", type: i1$2.DbxActionDirective, selector: "dbx-action,[dbxAction],dbx-action-context,[dbxActionContext]", exportAs: ["action", "dbxAction"] }, { kind: "directive", type: i1$2.DbxActionSourceDirective, selector: "[dbxActionSource]", inputs: ["dbxActionSource"] }, { kind: "directive", type: i1$2.dbxActionValueStreamDirective, selector: "[dbxActionValueStream]", inputs: ["dbxActionValueStream", "dbxActionValueStreamIsNotEmpty", "dbxActionValueStreamModified"] }, { kind: "directive", type: i1$2.DbxActionSuccessHandlerDirective, selector: "[dbxActionSuccessHandler]", inputs: ["dbxActionSuccessHandler"] }, { kind: "directive", type: i1$2.DbxActionButtonDirective, selector: "[dbxActionButton]" }, { kind: "component", type: DbxButtonComponent, selector: "dbx-button", inputs: ["type", "raised", "stroked", "flat", "color", "customButtonColor", "customTextColor", "customSpinnerColor"] }, { kind: "directive", type: DbxButtonSpacerDirective, selector: "dbx-button-spacer,[dbxButtonSpacer]" }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }] });
|
|
423
|
+
DbxActionSnackbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", 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\" [dbxActionSuccessHandler]=\"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", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: DbxSpacerDirective, selector: "dbx-spacer, [dbxSpacer]" }, { kind: "directive", type: i1$2.DbxActionDirective, selector: "dbx-action,[dbxAction],dbx-action-context,[dbxActionContext]", exportAs: ["action", "dbxAction"] }, { kind: "directive", type: i1$2.DbxActionSourceDirective, selector: "[dbxActionSource]", inputs: ["dbxActionSource"] }, { kind: "directive", type: i1$2.dbxActionValueStreamDirective, selector: "[dbxActionValueStream]", inputs: ["dbxActionValueStream", "dbxActionValueStreamIsNotEmpty", "dbxActionValueStreamModified"] }, { kind: "directive", type: i1$2.DbxActionSuccessHandlerDirective, selector: "[dbxActionSuccessHandler]", inputs: ["dbxActionSuccessHandler"] }, { kind: "directive", type: i1$2.DbxActionButtonDirective, selector: "[dbxActionButton]" }, { kind: "component", type: DbxButtonComponent, selector: "dbx-button", inputs: ["type", "raised", "stroked", "flat", "iconOnly", "color", "customButtonColor", "customTextColor", "customSpinnerColor"] }, { kind: "directive", type: DbxButtonSpacerDirective, selector: "dbx-button-spacer,[dbxButtonSpacer]" }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }] });
|
|
408
424
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxActionSnackbarComponent, decorators: [{
|
|
409
425
|
type: Component,
|
|
410
426
|
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\" [dbxActionSuccessHandler]=\"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" }]
|
|
@@ -2032,7 +2048,7 @@ class DbxFilterWrapperComponent extends AbstractDbxActionHandlerDirective {
|
|
|
2032
2048
|
}
|
|
2033
2049
|
}
|
|
2034
2050
|
DbxFilterWrapperComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxFilterWrapperComponent, deps: [{ token: i1$2.DbxActionContextStoreSourceInstance }, { token: i1$2.FilterSourceDirective }], target: i0.ɵɵFactoryTarget.Component });
|
|
2035
|
-
DbxFilterWrapperComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: DbxFilterWrapperComponent, selector: "dbx-filter-wrapper", inputs: { applyRaised: "applyRaised", applyIcon: "applyIcon", applyText: "applyText" }, providers: [provideActionStoreSource(null)], usesInheritance: true, 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 <dbx-button dbxActionButton [raised]=\"applyRaised\" [text]=\"applyText\" [icon]=\"applyIcon\"></dbx-button>\n <div class=\"spacer\"></div>\n <button mat-icon-button (click)=\"resetFilter()\">\n <mat-icon>clear</mat-icon>\n </button>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i1$2.DbxActionButtonDirective, selector: "[dbxActionButton]" }, { kind: "component", type: DbxButtonComponent, selector: "dbx-button", inputs: ["type", "raised", "stroked", "flat", "color", "customButtonColor", "customTextColor", "customSpinnerColor"] }, { kind: "directive", type: i3$2.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"] }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", 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"] }] });
|
|
2051
|
+
DbxFilterWrapperComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: DbxFilterWrapperComponent, selector: "dbx-filter-wrapper", inputs: { applyRaised: "applyRaised", applyIcon: "applyIcon", applyText: "applyText" }, providers: [provideActionStoreSource(null)], usesInheritance: true, 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 <dbx-button dbxActionButton [raised]=\"applyRaised\" [text]=\"applyText\" [icon]=\"applyIcon\"></dbx-button>\n <div class=\"spacer\"></div>\n <button mat-icon-button (click)=\"resetFilter()\">\n <mat-icon>clear</mat-icon>\n </button>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i1$2.DbxActionButtonDirective, selector: "[dbxActionButton]" }, { kind: "component", type: DbxButtonComponent, selector: "dbx-button", inputs: ["type", "raised", "stroked", "flat", "iconOnly", "color", "customButtonColor", "customTextColor", "customSpinnerColor"] }, { kind: "directive", type: i3$2.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"] }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", 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"] }] });
|
|
2036
2052
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxFilterWrapperComponent, decorators: [{
|
|
2037
2053
|
type: Component,
|
|
2038
2054
|
args: [{ selector: 'dbx-filter-wrapper', providers: [provideActionStoreSource(null)], 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 <dbx-button dbxActionButton [raised]=\"applyRaised\" [text]=\"applyText\" [icon]=\"applyIcon\"></dbx-button>\n <div class=\"spacer\"></div>\n <button mat-icon-button (click)=\"resetFilter()\">\n <mat-icon>clear</mat-icon>\n </button>\n </div>\n</div>\n" }]
|
|
@@ -2061,10 +2077,10 @@ class AbstractDbxPresetFilterMenuComponent {
|
|
|
2061
2077
|
this.selectPreset(x);
|
|
2062
2078
|
}
|
|
2063
2079
|
}));
|
|
2064
|
-
}), shareReplay
|
|
2080
|
+
}), shareReplay(1));
|
|
2065
2081
|
this.selectedPreset$ = combineLatest([this._presets, this.selectedPresetString$]).pipe(map(([presets, selectedPresetString]) => {
|
|
2066
2082
|
return selectedPresetString != null ? presets.find((x) => x.preset === selectedPresetString) : undefined;
|
|
2067
|
-
}), shareReplay
|
|
2083
|
+
}), shareReplay(1));
|
|
2068
2084
|
}
|
|
2069
2085
|
get presets() {
|
|
2070
2086
|
return this._presets.value;
|
|
@@ -2344,7 +2360,7 @@ class DbxPresetFilterMenuComponent extends AbstractDbxPresetFilterMenuComponent
|
|
|
2344
2360
|
this.buttonText$ = combineLatest([this._config, this.selectedPreset$]).pipe(map(([config, preset]) => {
|
|
2345
2361
|
const buttonText = preset?.title ?? config.unknownSelectionText ?? 'Filter';
|
|
2346
2362
|
return buttonText;
|
|
2347
|
-
}), distinctUntilChanged(), shareReplay
|
|
2363
|
+
}), distinctUntilChanged(), shareReplay(1));
|
|
2348
2364
|
this.buttonIcon$ = this._config.pipe(switchMap((config) => {
|
|
2349
2365
|
const filterIcon = config.filterIcon === false ? '' : config.filterIcon || 'arrow_drop_down';
|
|
2350
2366
|
return this.selectedPreset$.pipe(map((preset) => {
|
|
@@ -2362,7 +2378,7 @@ class DbxPresetFilterMenuComponent extends AbstractDbxPresetFilterMenuComponent
|
|
|
2362
2378
|
}
|
|
2363
2379
|
return icon;
|
|
2364
2380
|
}));
|
|
2365
|
-
}), distinctUntilChanged(), shareReplay
|
|
2381
|
+
}), distinctUntilChanged(), shareReplay(1));
|
|
2366
2382
|
}
|
|
2367
2383
|
get config() {
|
|
2368
2384
|
return this._config.value;
|
|
@@ -4092,7 +4108,7 @@ class DbxTwoColumnSrefShowRightDirective extends AbstractSubscriptionDirective {
|
|
|
4092
4108
|
this._dbxRouterService = _dbxRouterService;
|
|
4093
4109
|
this.showRight$ = this._twoColumnsContextStore.backRef$.pipe(
|
|
4094
4110
|
// Only show right when the backRef is not exactly active
|
|
4095
|
-
isSegueRefActive({ dbxRouterService: this._dbxRouterService, activeExactly: true }), isNot(), distinctUntilChanged(), shareReplay
|
|
4111
|
+
isSegueRefActive({ dbxRouterService: this._dbxRouterService, activeExactly: true }), isNot(), distinctUntilChanged(), shareReplay(1));
|
|
4096
4112
|
}
|
|
4097
4113
|
ngOnInit() {
|
|
4098
4114
|
this.sub = this._twoColumnsContextStore.setShowRight(this.showRight$);
|
|
@@ -7151,7 +7167,7 @@ DbxPopupControlButtonsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion:
|
|
|
7151
7167
|
</ng-container>
|
|
7152
7168
|
<dbx-button-spacer></dbx-button-spacer>
|
|
7153
7169
|
<dbx-button [flat]="true" icon="close" color="warn" (buttonClick)="closeClicked()"></dbx-button>
|
|
7154
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "component", type: DbxButtonComponent, selector: "dbx-button", inputs: ["type", "raised", "stroked", "flat", "color", "customButtonColor", "customTextColor", "customSpinnerColor"] }, { kind: "directive", type: DbxButtonSpacerDirective, selector: "dbx-button-spacer,[dbxButtonSpacer]" }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }] });
|
|
7170
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "component", type: DbxButtonComponent, selector: "dbx-button", inputs: ["type", "raised", "stroked", "flat", "iconOnly", "color", "customButtonColor", "customTextColor", "customSpinnerColor"] }, { kind: "directive", type: DbxButtonSpacerDirective, selector: "dbx-button-spacer,[dbxButtonSpacer]" }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }] });
|
|
7155
7171
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxPopupControlButtonsComponent, decorators: [{
|
|
7156
7172
|
type: Component,
|
|
7157
7173
|
args: [{
|
|
@@ -7693,7 +7709,7 @@ DbxActionUIRouterTransitionSafetyDialogComponent.ɵcmp = i0.ɵɵngDeclareCompone
|
|
|
7693
7709
|
<dbx-button-spacer></dbx-button-spacer>
|
|
7694
7710
|
</ng-container>
|
|
7695
7711
|
</dbx-prompt-confirm>
|
|
7696
|
-
`, isInline: true, dependencies: [{ kind: "component", type: DbxPromptConfirmComponent, selector: "dbx-prompt-confirm", inputs: ["config"], outputs: ["confirm", "cancel"] }, { kind: "directive", type: i1$2.DbxActionButtonDirective, selector: "[dbxActionButton]" }, { kind: "component", type: DbxButtonComponent, selector: "dbx-button", inputs: ["type", "raised", "stroked", "flat", "color", "customButtonColor", "customTextColor", "customSpinnerColor"] }, { kind: "directive", type: DbxButtonSpacerDirective, selector: "dbx-button-spacer,[dbxButtonSpacer]" }, { kind: "component", type: DbxReadableErrorComponent, selector: "dbx-error", inputs: ["error"] }, { kind: "directive", type: DbxActionErrorDirective, selector: "[dbxActionError]" }] });
|
|
7712
|
+
`, isInline: true, dependencies: [{ kind: "component", type: DbxPromptConfirmComponent, selector: "dbx-prompt-confirm", inputs: ["config"], outputs: ["confirm", "cancel"] }, { kind: "directive", type: i1$2.DbxActionButtonDirective, selector: "[dbxActionButton]" }, { kind: "component", type: DbxButtonComponent, selector: "dbx-button", inputs: ["type", "raised", "stroked", "flat", "iconOnly", "color", "customButtonColor", "customTextColor", "customSpinnerColor"] }, { kind: "directive", type: DbxButtonSpacerDirective, selector: "dbx-button-spacer,[dbxButtonSpacer]" }, { kind: "component", type: DbxReadableErrorComponent, selector: "dbx-error", inputs: ["error"] }, { kind: "directive", type: DbxActionErrorDirective, selector: "[dbxActionError]" }] });
|
|
7697
7713
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxActionUIRouterTransitionSafetyDialogComponent, decorators: [{
|
|
7698
7714
|
type: Component,
|
|
7699
7715
|
args: [{
|
|
@@ -7918,7 +7934,7 @@ class DbxModelViewTrackerStorage {
|
|
|
7918
7934
|
}
|
|
7919
7935
|
addTrackerEvent(event) {
|
|
7920
7936
|
const storageKey = this.getStorageKeyForFolder(event.folder);
|
|
7921
|
-
return this._getEventSetForStorageKey(storageKey).pipe(mergeMap
|
|
7937
|
+
return this._getEventSetForStorageKey(storageKey).pipe(mergeMap((set) => {
|
|
7922
7938
|
const nextEvent = {
|
|
7923
7939
|
d: event.d ?? unixTimeNumberForNow(),
|
|
7924
7940
|
c: event.c,
|
|
@@ -7934,16 +7950,16 @@ class DbxModelViewTrackerStorage {
|
|
|
7934
7950
|
}));
|
|
7935
7951
|
}
|
|
7936
7952
|
getAllEvents(folder) {
|
|
7937
|
-
return this.getEventSet(folder).pipe(map
|
|
7953
|
+
return this.getEventSet(folder).pipe(map((x) => x.e));
|
|
7938
7954
|
}
|
|
7939
7955
|
getEventSet(folder) {
|
|
7940
7956
|
const storageKey = this.getStorageKeyForFolder(folder);
|
|
7941
7957
|
return this._getEventSetForStorageKey(storageKey);
|
|
7942
7958
|
}
|
|
7943
7959
|
_getEventSetForStorageKey(storageKey) {
|
|
7944
|
-
return this.storageAccessor.get(storageKey).pipe(catchError
|
|
7960
|
+
return this.storageAccessor.get(storageKey).pipe(catchError((e) => {
|
|
7945
7961
|
return of(undefined);
|
|
7946
|
-
}), map
|
|
7962
|
+
}), map((result) => result ?? { e: [], l: 0 }));
|
|
7947
7963
|
}
|
|
7948
7964
|
getStorageKeyForFolder(folder) {
|
|
7949
7965
|
const storageKey = `${this.storageKey}_${folder ?? 'default'}`;
|
|
@@ -8015,10 +8031,10 @@ class DbxModelTrackerEffects {
|
|
|
8015
8031
|
constructor(actions$, dbxModelTrackerService) {
|
|
8016
8032
|
this.actions$ = actions$;
|
|
8017
8033
|
this.dbxModelTrackerService = dbxModelTrackerService;
|
|
8018
|
-
this.trackModelViewed$ = createEffect(() => this.actions$.pipe(ofType(emitObjectViewEvent), distinctUntilChanged
|
|
8034
|
+
this.trackModelViewed$ = createEffect(() => this.actions$.pipe(ofType(emitObjectViewEvent), distinctUntilChanged((a, b) => a?.modelKeyTypeNamePair.key === b?.modelKeyTypeNamePair.key && a?.type === b?.type && a?.context === b?.context), tap((x) => {
|
|
8019
8035
|
this.dbxModelTrackerService.trackViewedObject(x.modelKeyTypeNamePair, x.context);
|
|
8020
8036
|
})), { dispatch: false });
|
|
8021
|
-
this.changeTrackerFolderToMatchAuth$ = createEffect(() => this.actions$.pipe(ofType(onDbxAppAuth.DbxAppAuthUserActions.setUserIdentifier), map
|
|
8037
|
+
this.changeTrackerFolderToMatchAuth$ = createEffect(() => this.actions$.pipe(ofType(onDbxAppAuth.DbxAppAuthUserActions.setUserIdentifier), map((x) => x.id), filter((x) => Boolean(x)), distinctUntilChanged(), tap((accountId) => {
|
|
8022
8038
|
this.dbxModelTrackerService.defaultFolder = accountId;
|
|
8023
8039
|
})), { dispatch: false });
|
|
8024
8040
|
}
|
|
@@ -8114,7 +8130,7 @@ class DbxModelTypesService {
|
|
|
8114
8130
|
this.injector = injector;
|
|
8115
8131
|
this._configs = new BehaviorSubject({});
|
|
8116
8132
|
// MARK: Accessors
|
|
8117
|
-
this.typesMap$ = this._configs.pipe(map
|
|
8133
|
+
this.typesMap$ = this._configs.pipe(map((types) => {
|
|
8118
8134
|
const typesMap = {};
|
|
8119
8135
|
Object.keys(types).forEach((type) => {
|
|
8120
8136
|
const config = types[type];
|
|
@@ -8131,14 +8147,14 @@ class DbxModelTypesService {
|
|
|
8131
8147
|
};
|
|
8132
8148
|
});
|
|
8133
8149
|
return typesMap;
|
|
8134
|
-
}), shareReplay
|
|
8135
|
-
this.iconMap$ = this.typesMap$.pipe(map
|
|
8150
|
+
}), shareReplay(1));
|
|
8151
|
+
this.iconMap$ = this.typesMap$.pipe(map((types) => {
|
|
8136
8152
|
const iconsMap = {};
|
|
8137
8153
|
Object.keys(types).forEach((type) => {
|
|
8138
8154
|
iconsMap[type] = types[type].icon;
|
|
8139
8155
|
});
|
|
8140
8156
|
return iconsMap;
|
|
8141
|
-
}), shareReplay
|
|
8157
|
+
}), shareReplay(1));
|
|
8142
8158
|
}
|
|
8143
8159
|
// MARK: Configuration
|
|
8144
8160
|
addTypeConfigs(configs) {
|
|
@@ -8158,7 +8174,7 @@ class DbxModelTypesService {
|
|
|
8158
8174
|
this._configs.next(newConfig);
|
|
8159
8175
|
}
|
|
8160
8176
|
iconForType(type) {
|
|
8161
|
-
return this.iconMap$.pipe(map
|
|
8177
|
+
return this.iconMap$.pipe(map((x) => x[type]));
|
|
8162
8178
|
}
|
|
8163
8179
|
}
|
|
8164
8180
|
DbxModelTypesService.DEFAULT_ICON = 'help_outline';
|