@dereekb/dbx-core 4.0.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/action/action.handler.mjs +1 -1
- package/esm2020/lib/action/action.holder.mjs +1 -1
- package/esm2020/lib/action/action.machine.mjs +2 -2
- package/esm2020/lib/action/action.reference.mjs +1 -1
- package/esm2020/lib/action/action.store.mjs +3 -3
- package/esm2020/lib/action/action.store.source.mjs +5 -5
- package/esm2020/lib/action/directive/auto/action.automodify.directive.mjs +3 -6
- package/esm2020/lib/action/directive/auto/action.autotrigger.directive.mjs +3 -6
- package/esm2020/lib/action/directive/context/action.directive.mjs +4 -4
- package/esm2020/lib/action/directive/context/action.source.directive.mjs +5 -6
- package/esm2020/lib/action/directive/map/action.map.directive.mjs +3 -4
- package/esm2020/lib/action/directive/map/action.map.key.directive.mjs +5 -6
- package/esm2020/lib/action/directive/map/action.map.mjs +1 -1
- package/esm2020/lib/action/directive/state/action.disabled.directive.mjs +2 -3
- package/esm2020/lib/action/directive/state/action.handler.directive.mjs +2 -3
- package/esm2020/lib/action/directive/state/action.success.directive.mjs +1 -1
- package/esm2020/lib/action/directive/state/action.success.handler.directive.mjs +2 -3
- package/esm2020/lib/action/directive/state/action.value.directive.mjs +2 -3
- package/esm2020/lib/action/directive/state/action.value.stream.directive.mjs +4 -5
- package/esm2020/lib/action/directive/state/action.value.trigger.directive.mjs +2 -3
- package/esm2020/lib/action/directive/state/action.value.trigger.instance.mjs +4 -3
- package/esm2020/lib/action/directive/state/action.working.component.mjs +1 -1
- package/esm2020/lib/auth/auth.role.any.directive.mjs +1 -1
- package/esm2020/lib/auth/auth.role.has.directive.mjs +1 -1
- package/esm2020/lib/auth/router/provider/uirouter/hook.mjs +3 -2
- package/esm2020/lib/auth/router/provider/uirouter/redirect.mjs +1 -1
- package/esm2020/lib/auth/service/auth.service.rxjs.mjs +3 -3
- package/esm2020/lib/auth/state/reducer/user.reducer.mjs +1 -1
- package/esm2020/lib/button/action/action.button.directive.mjs +1 -1
- package/esm2020/lib/button/button.directive.mjs +5 -6
- package/esm2020/lib/button/button.mjs +2 -2
- package/esm2020/lib/button/router/button.segue.directive.mjs +2 -3
- package/esm2020/lib/context/state/effect/index.mjs +1 -1
- package/esm2020/lib/filter/filter.abstract.connector.directive.mjs +3 -2
- package/esm2020/lib/filter/filter.connector.directive.mjs +6 -6
- package/esm2020/lib/filter/filter.content.mjs +3 -3
- package/esm2020/lib/filter/filter.map.connector.directive.mjs +6 -6
- package/esm2020/lib/filter/filter.map.instance.directive.mjs +2 -3
- package/esm2020/lib/filter/filter.map.source.directive.mjs +4 -4
- package/esm2020/lib/filter/filter.source.directive.mjs +4 -4
- package/esm2020/lib/injection/injection.context.directive.mjs +4 -4
- package/esm2020/lib/injection/injection.context.forward.directive.mjs +1 -1
- package/esm2020/lib/injection/injection.context.mjs +2 -2
- package/esm2020/lib/injection/injection.directive.mjs +1 -1
- package/esm2020/lib/injection/injection.instance.mjs +3 -4
- package/esm2020/lib/injection/injection.mjs +1 -1
- package/esm2020/lib/ngrx/store.lockset.mjs +1 -1
- package/esm2020/lib/pipe/date/datedistance.pipe.mjs +4 -7
- package/esm2020/lib/pipe/date/dateformatdistance.pipe.mjs +1 -1
- package/esm2020/lib/pipe/date/datefromtoformat.pipe.mjs +4 -4
- package/esm2020/lib/pipe/date/timedistance.pipe.mjs +1 -1
- package/esm2020/lib/pipe/date/tojsdate.pipe.mjs +1 -1
- package/esm2020/lib/pipe/misc/prettyjson.pipe.mjs +1 -1
- package/esm2020/lib/router/anchor/anchor.directive.mjs +3 -4
- package/esm2020/lib/router/anchor/anchor.mjs +2 -2
- package/esm2020/lib/router/router/provider/angular/angular.router.service.mjs +2 -2
- package/esm2020/lib/router/router/provider/uirouter/index.mjs +1 -2
- package/esm2020/lib/router/router/provider/uirouter/uirouter.router.service.mjs +7 -14
- package/esm2020/lib/router/router/service/router.go.mjs +1 -1
- package/esm2020/lib/router/router/transition/transition.directive.mjs +1 -1
- package/esm2020/lib/router/segue.mjs +15 -3
- package/esm2020/lib/storage/storage.accessor.mjs +1 -1
- package/esm2020/lib/storage/storage.accessor.simple.mjs +2 -2
- package/esm2020/lib/storage/storage.accessor.string.mjs +4 -5
- package/esm2020/lib/subscription/subscription.directive.mjs +1 -1
- package/esm2020/lib/util/view.mjs +2 -2
- package/esm2020/lib/view/if.directive.mjs +1 -1
- package/fesm2015/dereekb-dbx-core.mjs +126 -164
- package/fesm2015/dereekb-dbx-core.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-core.mjs +126 -163
- package/fesm2020/dereekb-dbx-core.mjs.map +1 -1
- package/lib/action/action.handler.d.ts +8 -4
- package/lib/action/action.holder.d.ts +3 -3
- package/lib/action/action.machine.d.ts +2 -2
- package/lib/action/action.reference.d.ts +1 -1
- package/lib/action/action.store.d.ts +3 -3
- package/lib/action/action.store.source.d.ts +9 -10
- package/lib/action/directive/auto/action.autotrigger.directive.d.ts +4 -4
- package/lib/action/directive/context/action.directive.d.ts +2 -2
- package/lib/action/directive/context/action.source.directive.d.ts +1 -1
- package/lib/action/directive/map/action.map.d.ts +1 -1
- package/lib/action/directive/map/action.map.directive.d.ts +5 -6
- package/lib/action/directive/map/action.map.key.directive.d.ts +1 -1
- package/lib/action/directive/state/action.handler.directive.d.ts +5 -5
- package/lib/action/directive/state/action.success.directive.d.ts +1 -1
- package/lib/action/directive/state/action.value.directive.d.ts +2 -2
- package/lib/action/directive/state/action.value.stream.directive.d.ts +2 -3
- package/lib/action/directive/state/action.value.trigger.directive.d.ts +4 -4
- package/lib/action/directive/state/action.value.trigger.instance.d.ts +5 -5
- package/lib/action/directive/state/action.working.component.d.ts +1 -1
- package/lib/auth/auth.role.any.directive.d.ts +2 -3
- package/lib/auth/auth.role.has.directive.d.ts +2 -3
- package/lib/auth/router/provider/uirouter/hook.d.ts +2 -1
- package/lib/button/button.d.ts +2 -2
- package/lib/button/router/button.segue.directive.d.ts +1 -1
- package/lib/context/state/effect/index.d.ts +1 -1
- package/lib/filter/filter.abstract.connector.directive.d.ts +2 -3
- package/lib/filter/filter.connector.directive.d.ts +1 -1
- package/lib/filter/filter.content.d.ts +2 -2
- package/lib/filter/filter.map.instance.directive.d.ts +1 -1
- package/lib/injection/injection.context.d.ts +3 -3
- package/lib/injection/injection.context.directive.d.ts +3 -3
- package/lib/injection/injection.context.forward.directive.d.ts +1 -1
- package/lib/injection/injection.d.ts +5 -5
- package/lib/injection/injection.directive.d.ts +2 -2
- package/lib/pipe/date/datedistance.pipe.d.ts +1 -1
- package/lib/pipe/date/datefromtoformat.pipe.d.ts +1 -1
- package/lib/pipe/date/tojsdate.pipe.d.ts +1 -0
- package/lib/pipe/misc/prettyjson.pipe.d.ts +2 -2
- package/lib/router/anchor/anchor.d.ts +1 -1
- package/lib/router/anchor/anchor.directive.d.ts +0 -1
- package/lib/router/router/provider/uirouter/index.d.ts +0 -1
- package/lib/router/router/provider/uirouter/uirouter.router.service.d.ts +0 -1
- package/lib/router/router/service/router.go.d.ts +2 -2
- package/lib/router/segue.d.ts +13 -10
- package/lib/storage/storage.accessor.d.ts +1 -1
- package/lib/storage/storage.accessor.simple.d.ts +8 -5
- package/lib/storage/storage.accessor.string.d.ts +1 -1
- package/lib/util/view.d.ts +1 -1
- package/lib/view/if.directive.d.ts +3 -3
- package/package.json +5 -5
- package/esm2020/lib/router/router/provider/uirouter/util/future.mjs +0 -38
- package/esm2020/lib/router/router/provider/uirouter/util/index.mjs +0 -2
- package/lib/router/router/provider/uirouter/util/future.d.ts +0 -1
- package/lib/router/router/provider/uirouter/util/index.d.ts +0 -1
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Directive, Injectable, forwardRef, Host, Input, Optional, NgModule, InjectionToken, Inject, EventEmitter, Output, LOCALE_ID, Pipe, ViewChild, Injector, ViewContainerRef, Component } from '@angular/core';
|
|
3
3
|
import * as i1 from 'rxjs';
|
|
4
|
-
import { BehaviorSubject, combineLatest,
|
|
4
|
+
import { switchMap, first, BehaviorSubject, combineLatest, distinctUntilChanged, filter, Subject, debounce, interval, throttle, exhaustMap, mergeMap, map, shareReplay, EMPTY, withLatestFrom, of, startWith, tap, delay, catchError, firstValueFrom, takeUntil, Observable } from 'rxjs';
|
|
5
5
|
import * as i1$5 from '@dereekb/rxjs';
|
|
6
6
|
import { SubscriptionObject, LockSet, filterMaybe, LoadingStateType, beginLoading, idleLoadingState, errorResult, successResult, scanCount, combineLatestFromMapValuesObsFn, workFactory, emitDelayObs, asObservable, returnIfIs, skipFirstMaybe, onFalseToTrue, onTrueToFalse, setContainsAllValuesFrom, FilterSourceInstance, FilterSource, FilterSourceConnector, FilterMap } from '@dereekb/rxjs';
|
|
7
|
-
import { switchMap, first, distinctUntilChanged, filter, debounce, throttle, exhaustMap, mergeMap, map, shareReplay, withLatestFrom, startWith, tap, delay as delay$1 } from 'rxjs/operators';
|
|
8
7
|
import * as i1$6 from '@dereekb/util';
|
|
9
|
-
import { isDefinedAndNotFalse, hasValueOrNotEmpty, BooleanStringKeyArrayUtilityInstance, reduceBooleansWithOrFn, getValueFromGetter, isGetter, setIncludesFunction, maybeSet, isAllowed, expandTreeFunction, flattenTreeToArrayFunction, expandFlattenTreeFunction,
|
|
8
|
+
import { isDefinedAndNotFalse, hasValueOrNotEmpty, BooleanStringKeyArrayUtilityInstance, reduceBooleansWithOrFn, getValueFromGetter, toReadableError, isGetter, setIncludesFunction, maybeSet, isAllowed, expandTreeFunction, flattenTreeToArrayFunction, expandFlattenTreeFunction, mergeArrays, filterMaybeValues, mergeObjects, mergeArrayOrValueIntoArray, makePromiseFullRef, DataIsExpiredError, DataDoesNotExistError, filterMaybeValuesFn, StorageObjectUtility, SHARED_MEMORY_STORAGE } from '@dereekb/util';
|
|
10
9
|
import { ComponentStore } from '@ngrx/component-store';
|
|
11
10
|
import { CommonModule, formatDate } from '@angular/common';
|
|
12
11
|
import * as i1$3 from '@ngrx/effects';
|
|
@@ -16,6 +15,7 @@ import { createAction, props, createReducer, on, combineReducers, createFeatureS
|
|
|
16
15
|
import * as i1$1 from '@angular/router';
|
|
17
16
|
import { NavigationStart, NavigationEnd } from '@angular/router';
|
|
18
17
|
import { isArray } from 'class-validator';
|
|
18
|
+
import { map as map$1 } from 'rxjs/operators';
|
|
19
19
|
import * as i1$2 from '@uirouter/core';
|
|
20
20
|
import { addMinutes, isValid, isPast, formatDistance, formatDistanceToNow, startOfDay, isSameDay } from 'date-fns';
|
|
21
21
|
import { toJsDate, formatToTimeString, unixTimeNumberForNow, timeHasExpired } from '@dereekb/date';
|
|
@@ -200,7 +200,7 @@ const actionContextStoreSourceInstanceFactory = (source) => {
|
|
|
200
200
|
/**
|
|
201
201
|
* Provides an ActionContextStoreSource, as well as an DbxActionContextStoreSourceInstance.
|
|
202
202
|
*/
|
|
203
|
-
function
|
|
203
|
+
function provideActionStoreSource(sourceType) {
|
|
204
204
|
return [{
|
|
205
205
|
provide: ActionContextStoreSource,
|
|
206
206
|
useExisting: forwardRef(() => sourceType)
|
|
@@ -211,12 +211,12 @@ function ProvideActionStoreSource(sourceType) {
|
|
|
211
211
|
deps: [ActionContextStoreSource]
|
|
212
212
|
}];
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function provideSecondaryActionStoreSource(sourceType) {
|
|
215
215
|
return [{
|
|
216
216
|
provide: SecondaryActionContextStoreSource,
|
|
217
217
|
useExisting: forwardRef(() => sourceType)
|
|
218
218
|
},
|
|
219
|
-
...
|
|
219
|
+
...provideActionStoreSource(sourceType)
|
|
220
220
|
];
|
|
221
221
|
}
|
|
222
222
|
|
|
@@ -423,11 +423,11 @@ class dbxActionValueStreamDirective {
|
|
|
423
423
|
}
|
|
424
424
|
ngOnInit() {
|
|
425
425
|
// Update Modified value.
|
|
426
|
-
this._modifiedSub.subscription = this.modifiedValue$.subscribe(([isModified
|
|
426
|
+
this._modifiedSub.subscription = this.modifiedValue$.subscribe(([isModified]) => {
|
|
427
427
|
this.source.setIsModified(isModified);
|
|
428
428
|
});
|
|
429
429
|
// Set the value on triggers.
|
|
430
|
-
this._triggerSub.subscription = this.source.triggered$.pipe(switchMap(
|
|
430
|
+
this._triggerSub.subscription = this.source.triggered$.pipe(switchMap(() => this.modifiedValue$)).subscribe(([isModified, value]) => {
|
|
431
431
|
if (isModified) {
|
|
432
432
|
this.source.readyValue(value);
|
|
433
433
|
}
|
|
@@ -714,7 +714,7 @@ class ActionContextStore extends ComponentStore {
|
|
|
714
714
|
/**
|
|
715
715
|
* Completely resets the store.
|
|
716
716
|
*/
|
|
717
|
-
this.reset = this.updater((
|
|
717
|
+
this.reset = this.updater(() => ({ ...INITIAL_STATE }));
|
|
718
718
|
this.lockSet.addLock('working', this.isWorking$);
|
|
719
719
|
}
|
|
720
720
|
// MARK: Utility
|
|
@@ -817,13 +817,13 @@ class DbxActionDirective extends DbxActionContextBaseSource {
|
|
|
817
817
|
}
|
|
818
818
|
}
|
|
819
819
|
DbxActionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxActionDirective, deps: [{ token: SecondaryActionContextStoreSource, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
820
|
-
DbxActionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: DbxActionDirective, selector: "dbx-action,[dbxAction],dbx-action-context,[dbxActionContext]", providers:
|
|
820
|
+
DbxActionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: DbxActionDirective, selector: "dbx-action,[dbxAction],dbx-action-context,[dbxActionContext]", providers: provideActionStoreSource(DbxActionDirective), exportAs: ["action", "dbxAction"], usesInheritance: true, ngImport: i0 });
|
|
821
821
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxActionDirective, decorators: [{
|
|
822
822
|
type: Directive,
|
|
823
823
|
args: [{
|
|
824
824
|
selector: 'dbx-action,[dbxAction],dbx-action-context,[dbxActionContext]',
|
|
825
825
|
exportAs: 'action,dbxAction',
|
|
826
|
-
providers:
|
|
826
|
+
providers: provideActionStoreSource(DbxActionDirective)
|
|
827
827
|
}]
|
|
828
828
|
}], ctorParameters: function () { return [{ type: SecondaryActionContextStoreSource, decorators: [{
|
|
829
829
|
type: Optional
|
|
@@ -853,12 +853,12 @@ class DbxActionSourceDirective {
|
|
|
853
853
|
}
|
|
854
854
|
}
|
|
855
855
|
DbxActionSourceDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxActionSourceDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
856
|
-
DbxActionSourceDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: DbxActionSourceDirective, selector: "[dbxActionSource]", inputs: { source: ["dbxActionSource", "source"] }, providers:
|
|
856
|
+
DbxActionSourceDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: DbxActionSourceDirective, selector: "[dbxActionSource]", inputs: { source: ["dbxActionSource", "source"] }, providers: provideSecondaryActionStoreSource(DbxActionSourceDirective), ngImport: i0 });
|
|
857
857
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxActionSourceDirective, decorators: [{
|
|
858
858
|
type: Directive,
|
|
859
859
|
args: [{
|
|
860
860
|
selector: '[dbxActionSource]',
|
|
861
|
-
providers:
|
|
861
|
+
providers: provideSecondaryActionStoreSource(DbxActionSourceDirective)
|
|
862
862
|
}]
|
|
863
863
|
}], propDecorators: { source: [{
|
|
864
864
|
type: Input,
|
|
@@ -946,7 +946,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
946
946
|
exportAs: 'actionMap',
|
|
947
947
|
providers: [],
|
|
948
948
|
}]
|
|
949
|
-
}]
|
|
949
|
+
}] });
|
|
950
950
|
class DbxActionContextMapDirectiveSourceInstance {
|
|
951
951
|
constructor(parent, key) {
|
|
952
952
|
this.parent = parent;
|
|
@@ -977,12 +977,12 @@ class DbxActionFromMapDirective {
|
|
|
977
977
|
}
|
|
978
978
|
}
|
|
979
979
|
DbxActionFromMapDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxActionFromMapDirective, deps: [{ token: DbxActionContextMapDirective }], target: i0.ɵɵFactoryTarget.Directive });
|
|
980
|
-
DbxActionFromMapDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: DbxActionFromMapDirective, selector: "[dbxActionFromMap]", inputs: { key: ["dbxActionFromMap", "key"] }, providers:
|
|
980
|
+
DbxActionFromMapDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: DbxActionFromMapDirective, selector: "[dbxActionFromMap]", inputs: { key: ["dbxActionFromMap", "key"] }, providers: provideSecondaryActionStoreSource(DbxActionFromMapDirective), ngImport: i0 });
|
|
981
981
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxActionFromMapDirective, decorators: [{
|
|
982
982
|
type: Directive,
|
|
983
983
|
args: [{
|
|
984
984
|
selector: '[dbxActionFromMap]',
|
|
985
|
-
providers:
|
|
985
|
+
providers: provideSecondaryActionStoreSource(DbxActionFromMapDirective)
|
|
986
986
|
}]
|
|
987
987
|
}], ctorParameters: function () { return [{ type: DbxActionContextMapDirective }]; }, propDecorators: { key: [{
|
|
988
988
|
type: Input,
|
|
@@ -1190,7 +1190,7 @@ class AbstractIfDirective extends AbstractSubscriptionDirective {
|
|
|
1190
1190
|
this.viewContainer = viewContainer;
|
|
1191
1191
|
}
|
|
1192
1192
|
ngOnInit() {
|
|
1193
|
-
this.sub = this.show$.pipe(distinctUntilChanged
|
|
1193
|
+
this.sub = this.show$.pipe(distinctUntilChanged()).subscribe((show) => {
|
|
1194
1194
|
if (show) {
|
|
1195
1195
|
this.viewContainer.createEmbeddedView(this.templateRef);
|
|
1196
1196
|
}
|
|
@@ -1213,14 +1213,14 @@ class DbxActionHasSuccessDirective extends AbstractIfDirective {
|
|
|
1213
1213
|
constructor(templateRef, viewContainer, source) {
|
|
1214
1214
|
super(templateRef, viewContainer);
|
|
1215
1215
|
this.source = source;
|
|
1216
|
-
this.show$ = this.source.isSuccess$.pipe(exhaustMap
|
|
1216
|
+
this.show$ = this.source.isSuccess$.pipe(exhaustMap((success) => {
|
|
1217
1217
|
if (success) {
|
|
1218
1218
|
return emitDelayObs(true, false, this.hideAfter || undefined);
|
|
1219
1219
|
}
|
|
1220
1220
|
else {
|
|
1221
1221
|
return of(false);
|
|
1222
1222
|
}
|
|
1223
|
-
}), shareReplay
|
|
1223
|
+
}), shareReplay(1));
|
|
1224
1224
|
}
|
|
1225
1225
|
}
|
|
1226
1226
|
DbxActionHasSuccessDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxActionHasSuccessDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: DbxActionContextStoreSourceInstance }], target: i0.ɵɵFactoryTarget.Directive });
|
|
@@ -1329,14 +1329,14 @@ class DbxActionIsWorkingDirective extends AbstractIfDirective {
|
|
|
1329
1329
|
constructor(templateRef, viewContainer, source) {
|
|
1330
1330
|
super(templateRef, viewContainer);
|
|
1331
1331
|
this.source = source;
|
|
1332
|
-
this.show$ = this.source.isWorking$.pipe(exhaustMap
|
|
1332
|
+
this.show$ = this.source.isWorking$.pipe(exhaustMap((isWorking) => {
|
|
1333
1333
|
if (isWorking && this.showAfter) {
|
|
1334
1334
|
return emitDelayObs(false, true, this.showAfter || undefined);
|
|
1335
1335
|
}
|
|
1336
1336
|
else {
|
|
1337
1337
|
return of(isWorking);
|
|
1338
1338
|
}
|
|
1339
|
-
}), shareReplay
|
|
1339
|
+
}), shareReplay(1));
|
|
1340
1340
|
}
|
|
1341
1341
|
}
|
|
1342
1342
|
DbxActionIsWorkingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxActionIsWorkingDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: DbxActionContextStoreSourceInstance }], target: i0.ɵɵFactoryTarget.Directive });
|
|
@@ -1412,12 +1412,12 @@ class DbxActionValueOnTriggerInstance {
|
|
|
1412
1412
|
}
|
|
1413
1413
|
init() {
|
|
1414
1414
|
// Ready the value after the source is triggered. Do modified check one last time.
|
|
1415
|
-
this._triggeredSub.subscription = this.source.triggered$.pipe(switchMap
|
|
1415
|
+
this._triggeredSub.subscription = this.source.triggered$.pipe(switchMap(() => this.valueGetter$.pipe(switchMap((valueGetter) => asObservable(valueGetter())))
|
|
1416
1416
|
.pipe(
|
|
1417
1417
|
// If the value is not null/undefined and is considered modified, then pass the value.
|
|
1418
|
-
switchMap
|
|
1419
|
-
// Catch
|
|
1420
|
-
catchError((reject) => of({ reject }))))).subscribe((result) => {
|
|
1418
|
+
switchMap((value) => returnIfIs(this.isModifiedFunction, value, false).pipe(map((value) => ({ value })))),
|
|
1419
|
+
// Catch unknown errors and pass them to reject.
|
|
1420
|
+
catchError((reject) => of({ reject: toReadableError(reject) }))))).subscribe((result) => {
|
|
1421
1421
|
if (result.value != null) {
|
|
1422
1422
|
this.source.readyValue(result.value);
|
|
1423
1423
|
}
|
|
@@ -1495,8 +1495,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
1495
1495
|
selector: '[dbxActionValueOnTrigger]'
|
|
1496
1496
|
}]
|
|
1497
1497
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: DbxActionContextStoreSourceInstance }]; }, propDecorators: { dbxActionValueOnTrigger: [{
|
|
1498
|
-
type: Input
|
|
1499
|
-
args: ['dbxActionValueOnTrigger']
|
|
1498
|
+
type: Input
|
|
1500
1499
|
}], dbxActionValueTriggerModified: [{
|
|
1501
1500
|
type: Input
|
|
1502
1501
|
}] } });
|
|
@@ -1523,7 +1522,7 @@ class DbxActionContextMachine extends DbxActionContextBaseSource {
|
|
|
1523
1522
|
});
|
|
1524
1523
|
// If this is a one-time use, then destroy it after the first success comes through.
|
|
1525
1524
|
if (this.config.oneTimeUse) {
|
|
1526
|
-
this.sourceInstance.success$.pipe(first(), delay
|
|
1525
|
+
this.sourceInstance.success$.pipe(first(), delay(1000)).subscribe(() => {
|
|
1527
1526
|
this.destroy();
|
|
1528
1527
|
});
|
|
1529
1528
|
}
|
|
@@ -1583,6 +1582,39 @@ function makeDbxActionContextSourceReference(sourceInstance) {
|
|
|
1583
1582
|
};
|
|
1584
1583
|
}
|
|
1585
1584
|
|
|
1585
|
+
function isSegueRef(input) {
|
|
1586
|
+
return (typeof input === 'object') && hasValueOrNotEmpty(input.ref);
|
|
1587
|
+
}
|
|
1588
|
+
function asSegueRef(input) {
|
|
1589
|
+
const type = typeof input;
|
|
1590
|
+
if (type === 'string') {
|
|
1591
|
+
return refStringToSegueRef(input);
|
|
1592
|
+
}
|
|
1593
|
+
else if (isSegueRef(input)) {
|
|
1594
|
+
return input;
|
|
1595
|
+
}
|
|
1596
|
+
else {
|
|
1597
|
+
return undefined;
|
|
1598
|
+
}
|
|
1599
|
+
}
|
|
1600
|
+
function asSegueRefString(input) {
|
|
1601
|
+
if (typeof input === 'string') {
|
|
1602
|
+
return input;
|
|
1603
|
+
}
|
|
1604
|
+
else if (isSegueRef(input)) {
|
|
1605
|
+
return input.ref;
|
|
1606
|
+
}
|
|
1607
|
+
else {
|
|
1608
|
+
throw new Error(`asSegueRefString() failed to convert the input to a string: ${input}`);
|
|
1609
|
+
}
|
|
1610
|
+
}
|
|
1611
|
+
function refStringToSegueRef(ref, options) {
|
|
1612
|
+
return { ...options, ref };
|
|
1613
|
+
}
|
|
1614
|
+
function mapRefStringObsToSegueRefObs(obs, options) {
|
|
1615
|
+
return obs.pipe(map(x => refStringToSegueRef(x, options)));
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1586
1618
|
/**
|
|
1587
1619
|
* Client auth service used to retrieve info about the current state of client authentication and client roles they may have.
|
|
1588
1620
|
*/
|
|
@@ -1612,7 +1644,7 @@ function makeAuthTransitionHook(config) {
|
|
|
1612
1644
|
else {
|
|
1613
1645
|
resultObs = of(redirectTo);
|
|
1614
1646
|
}
|
|
1615
|
-
redirectToObs = resultObs.pipe(map
|
|
1647
|
+
redirectToObs = resultObs.pipe(map((stateRef) => {
|
|
1616
1648
|
let redirectTarget;
|
|
1617
1649
|
let redirectParams;
|
|
1618
1650
|
if (stateRef) {
|
|
@@ -1630,7 +1662,7 @@ function makeAuthTransitionHook(config) {
|
|
|
1630
1662
|
}
|
|
1631
1663
|
return redirectToObs;
|
|
1632
1664
|
}
|
|
1633
|
-
const resultObs = decisionObs.pipe(first
|
|
1665
|
+
const resultObs = decisionObs.pipe(first(), switchMap((decision) => {
|
|
1634
1666
|
if (typeof decision === 'boolean') {
|
|
1635
1667
|
if (decision) {
|
|
1636
1668
|
return of(true);
|
|
@@ -1640,7 +1672,7 @@ function makeAuthTransitionHook(config) {
|
|
|
1640
1672
|
}
|
|
1641
1673
|
}
|
|
1642
1674
|
else {
|
|
1643
|
-
return of($state.target(decision.ref, decision.refParams, decision.refOptions));
|
|
1675
|
+
return of($state.target(asSegueRefString(decision.ref), decision.refParams, decision.refOptions));
|
|
1644
1676
|
}
|
|
1645
1677
|
}), catchError((x) => {
|
|
1646
1678
|
console.warn('Encountered error in auth transition hook.', x);
|
|
@@ -1659,7 +1691,7 @@ function makeAuthTransitionHook(config) {
|
|
|
1659
1691
|
*/
|
|
1660
1692
|
function redirectBasedOnAuthUserState(stateMap) {
|
|
1661
1693
|
return (input) => {
|
|
1662
|
-
return input.authService.authUserState$.pipe(first
|
|
1694
|
+
return input.authService.authUserState$.pipe(first(), switchMap((authUserState) => {
|
|
1663
1695
|
const getter = stateMap[authUserState];
|
|
1664
1696
|
let result;
|
|
1665
1697
|
if (getter) {
|
|
@@ -1722,7 +1754,7 @@ function enableHasAuthRoleHook(transitionService, config) {
|
|
|
1722
1754
|
const data = targetState.state().data;
|
|
1723
1755
|
const requiredRoles = new Set(data.authRoles);
|
|
1724
1756
|
const setIncludes = setIncludesFunction(requiredRoles, data.authRolesMode);
|
|
1725
|
-
return authService.authUserState$.pipe(map
|
|
1757
|
+
return authService.authUserState$.pipe(map(x => setIncludes(x)));
|
|
1726
1758
|
}
|
|
1727
1759
|
});
|
|
1728
1760
|
// Register the "requires auth" hook with the TransitionsService
|
|
@@ -1751,7 +1783,7 @@ function enableHasAuthStateHook(transitionService, config) {
|
|
|
1751
1783
|
const data = targetState.state().data;
|
|
1752
1784
|
const config = toHasAuthStateObjectConfig(data.authStates);
|
|
1753
1785
|
const parsed = toParsedHasAuthStateConfig(config);
|
|
1754
|
-
return authService.authUserState$.pipe(map
|
|
1786
|
+
return authService.authUserState$.pipe(map(x => isAllowed(x, parsed)));
|
|
1755
1787
|
}
|
|
1756
1788
|
});
|
|
1757
1789
|
// Register the "requires auth" hook with the TransitionsService
|
|
@@ -1894,9 +1926,9 @@ class AbstractOnDbxAppContextStateEffects {
|
|
|
1894
1926
|
* @returns
|
|
1895
1927
|
*/
|
|
1896
1928
|
ngrxOnRunEffects(resolvedEffects$) {
|
|
1897
|
-
return this.actions$.pipe(ofType(setState), filter
|
|
1929
|
+
return this.actions$.pipe(ofType(setState), filter(({ state }) => {
|
|
1898
1930
|
return this._activeStatesSet.has(state);
|
|
1899
|
-
}), exhaustMap
|
|
1931
|
+
}), exhaustMap(() => resolvedEffects$.pipe(takeUntil(this.actions$.pipe(ofType(setState), filter(({ state }) => !this._activeStatesSet.has(state)))))));
|
|
1900
1932
|
}
|
|
1901
1933
|
}
|
|
1902
1934
|
|
|
@@ -2054,35 +2086,13 @@ function anchorTypeForAnchor(anchor, disabled) {
|
|
|
2054
2086
|
}
|
|
2055
2087
|
class DbxAnchor {
|
|
2056
2088
|
}
|
|
2057
|
-
function
|
|
2089
|
+
function provideDbxAnchor(sourceType) {
|
|
2058
2090
|
return [{
|
|
2059
2091
|
provide: DbxAnchor,
|
|
2060
2092
|
useExisting: forwardRef(() => sourceType)
|
|
2061
2093
|
}];
|
|
2062
2094
|
}
|
|
2063
2095
|
|
|
2064
|
-
function isSegueRef(input) {
|
|
2065
|
-
return (typeof input === 'object') && input.ref != null;
|
|
2066
|
-
}
|
|
2067
|
-
function asSegueRef(input) {
|
|
2068
|
-
const type = typeof input;
|
|
2069
|
-
if (type === 'string') {
|
|
2070
|
-
return refStringToSegueRef(input);
|
|
2071
|
-
}
|
|
2072
|
-
else if (isSegueRef(input)) {
|
|
2073
|
-
return input;
|
|
2074
|
-
}
|
|
2075
|
-
else {
|
|
2076
|
-
return { ref: undefined };
|
|
2077
|
-
}
|
|
2078
|
-
}
|
|
2079
|
-
function refStringToSegueRef(ref, options) {
|
|
2080
|
-
return { ...options, ref };
|
|
2081
|
-
}
|
|
2082
|
-
function mapRefStringObsToSegueRefObs(obs, options) {
|
|
2083
|
-
return obs.pipe(map$1(x => refStringToSegueRef(x, options)));
|
|
2084
|
-
}
|
|
2085
|
-
|
|
2086
2096
|
/**
|
|
2087
2097
|
* Abstract anchor directive.
|
|
2088
2098
|
*/
|
|
@@ -2121,7 +2131,7 @@ AbstractDbxAnchorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0
|
|
|
2121
2131
|
AbstractDbxAnchorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: AbstractDbxAnchorDirective, inputs: { ref: "ref", anchor: "anchor", disabled: "disabled" }, ngImport: i0 });
|
|
2122
2132
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AbstractDbxAnchorDirective, decorators: [{
|
|
2123
2133
|
type: Directive
|
|
2124
|
-
}],
|
|
2134
|
+
}], propDecorators: { ref: [{
|
|
2125
2135
|
type: Input
|
|
2126
2136
|
}], anchor: [{
|
|
2127
2137
|
type: Input
|
|
@@ -2149,7 +2159,7 @@ class DbxAngularRouterService {
|
|
|
2149
2159
|
this.router = router;
|
|
2150
2160
|
this.activatedRoute = activatedRoute;
|
|
2151
2161
|
this.params$ = this.activatedRoute.params;
|
|
2152
|
-
this.transitions$ = this.router.events.pipe(map((x) => {
|
|
2162
|
+
this.transitions$ = this.router.events.pipe(map$1((x) => {
|
|
2153
2163
|
let event;
|
|
2154
2164
|
if (x instanceof NavigationStart) {
|
|
2155
2165
|
event = {
|
|
@@ -2166,7 +2176,7 @@ class DbxAngularRouterService {
|
|
|
2166
2176
|
}
|
|
2167
2177
|
go(input) {
|
|
2168
2178
|
const segueRef = asSegueRef(input);
|
|
2169
|
-
|
|
2179
|
+
const ref = segueRef.ref;
|
|
2170
2180
|
if (isArray(ref)) {
|
|
2171
2181
|
return this.router.navigate(ref, {
|
|
2172
2182
|
...segueRef.refOptions,
|
|
@@ -2242,43 +2252,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
2242
2252
|
args: [{}]
|
|
2243
2253
|
}] });
|
|
2244
2254
|
|
|
2245
|
-
/**
|
|
2246
|
-
* Used for creating a future state that also captures any children urls.
|
|
2247
|
-
*
|
|
2248
|
-
* This is important for cases, such as /, where multiple urls should target a specific future so that
|
|
2249
|
-
* it can load that module and continue route resolution for the child url.
|
|
2250
|
-
*
|
|
2251
|
-
* For example:
|
|
2252
|
-
* - the urls /a and /b are declared in a lazy loaded module that is for /. This presents a problem, since
|
|
2253
|
-
* the root module does not know how to handle /a or /b, since they are children of /. We use
|
|
2254
|
-
* futureStateWithChildrenUrls() to build a future state with the child urls so the parent routing knows where
|
|
2255
|
-
* to send /a or /b.
|
|
2256
|
-
*
|
|
2257
|
-
* @param state
|
|
2258
|
-
* @param urls
|
|
2259
|
-
* @returns
|
|
2260
|
-
*
|
|
2261
|
-
* @deprecated not how this feature works. Consider adding it to ui-router later then re-export this function.
|
|
2262
|
-
*/
|
|
2263
|
-
function futureStateWithChildrenUrls(state, urls) {
|
|
2264
|
-
const states = [state];
|
|
2265
|
-
mergeArrayIntoArray(states, expandFutureStateWithUrls(state, urls));
|
|
2266
|
-
return states;
|
|
2267
|
-
}
|
|
2268
|
-
/**
|
|
2269
|
-
* Copies the input state and replaces the url in each of them with the passed urls.
|
|
2270
|
-
*
|
|
2271
|
-
* @param state
|
|
2272
|
-
* @param urls
|
|
2273
|
-
* @returns
|
|
2274
|
-
*
|
|
2275
|
-
* @deprecated
|
|
2276
|
-
*/
|
|
2277
|
-
function expandFutureStateWithUrls(state, urls) {
|
|
2278
|
-
const childrenStates = objectFlatMergeMatrix(state, urls.map(url => ({ url })));
|
|
2279
|
-
return childrenStates;
|
|
2280
|
-
}
|
|
2281
|
-
|
|
2282
2255
|
/**
|
|
2283
2256
|
* UIRouter implementation of DbxRouterService and DbxRouterTransitionService.
|
|
2284
2257
|
*/
|
|
@@ -2313,18 +2286,19 @@ class DbxUIRouterService {
|
|
|
2313
2286
|
go(input) {
|
|
2314
2287
|
const segueRef = asSegueRef(input);
|
|
2315
2288
|
const params = { ...this.uiRouterGlobals.current.params, ...segueRef.refParams };
|
|
2316
|
-
return this.state.go(segueRef.ref, params, segueRef.refOptions).then(
|
|
2289
|
+
return this.state.go(segueRef.ref, params, segueRef.refOptions).then(() => true).catch(() => false);
|
|
2317
2290
|
}
|
|
2318
2291
|
isActive(input) {
|
|
2319
2292
|
const segueRef = asSegueRef(input);
|
|
2320
|
-
const
|
|
2293
|
+
const ref = segueRef.ref;
|
|
2294
|
+
const refParams = segueRef.refParams;
|
|
2321
2295
|
const targetRef = (ref.startsWith('.') ? `^${ref}` : ref);
|
|
2322
2296
|
const active = this.state.includes(targetRef, refParams);
|
|
2323
2297
|
return active;
|
|
2324
2298
|
}
|
|
2325
2299
|
comparePrecision(aInput, bInput) {
|
|
2326
|
-
const aRef =
|
|
2327
|
-
const bRef =
|
|
2300
|
+
const aRef = asSegueRefString(aInput);
|
|
2301
|
+
const bRef = asSegueRefString(bInput);
|
|
2328
2302
|
const aLength = aRef.length;
|
|
2329
2303
|
const bLength = bRef.length;
|
|
2330
2304
|
return (aLength > bLength) ? 1 : (aLength === bLength) ? 0 : -1;
|
|
@@ -2335,14 +2309,6 @@ DbxUIRouterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", v
|
|
|
2335
2309
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxUIRouterService, decorators: [{
|
|
2336
2310
|
type: Injectable
|
|
2337
2311
|
}], ctorParameters: function () { return [{ type: i1$2.StateService }, { type: i1$2.TransitionService }, { type: i1$2.UIRouterGlobals }]; } });
|
|
2338
|
-
function readSegueRefString(input) {
|
|
2339
|
-
if (typeof input === 'string') {
|
|
2340
|
-
return input;
|
|
2341
|
-
}
|
|
2342
|
-
else {
|
|
2343
|
-
return input?.ref ?? '';
|
|
2344
|
-
}
|
|
2345
|
-
}
|
|
2346
2312
|
|
|
2347
2313
|
class DbxCoreUIRouterSegueModule {
|
|
2348
2314
|
static forRoot() {
|
|
@@ -2383,7 +2349,7 @@ function filterTransitionSuccess() {
|
|
|
2383
2349
|
return filterTransitionEvent(DbxRouterTransitionEventType.SUCCESS);
|
|
2384
2350
|
}
|
|
2385
2351
|
function filterTransitionEvent(type) {
|
|
2386
|
-
return filter
|
|
2352
|
+
return filter(x => x.type === type);
|
|
2387
2353
|
}
|
|
2388
2354
|
|
|
2389
2355
|
/**
|
|
@@ -2393,7 +2359,7 @@ class AbstractTransitionDirective {
|
|
|
2393
2359
|
constructor(dbxRouterTransitionService) {
|
|
2394
2360
|
this.dbxRouterTransitionService = dbxRouterTransitionService;
|
|
2395
2361
|
this.transitionSuccess$ = successTransition(this.dbxRouterTransitionService.transitions$);
|
|
2396
|
-
this.initAndUpdateOnTransitionSuccess$ = this.transitionSuccess$.pipe(startWith
|
|
2362
|
+
this.initAndUpdateOnTransitionSuccess$ = this.transitionSuccess$.pipe(startWith(undefined));
|
|
2397
2363
|
}
|
|
2398
2364
|
}
|
|
2399
2365
|
AbstractTransitionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AbstractTransitionDirective, deps: [{ token: DbxRouterTransitionService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
@@ -2506,11 +2472,11 @@ class DbxAppAuthRouterEffects extends AbstractOnDbxAppContextStateEffects {
|
|
|
2506
2472
|
/**
|
|
2507
2473
|
* Effect to redirect to the login when logout occurs.
|
|
2508
2474
|
*/
|
|
2509
|
-
this.redirectToLoginOnLogout = createEffect(() => this.actions$.pipe(ofType(loggedOut), exhaustMap
|
|
2475
|
+
this.redirectToLoginOnLogout = createEffect(() => this.actions$.pipe(ofType(loggedOut), exhaustMap(() => this.dbxAppAuthRouterService.goToLogin())), { dispatch: false });
|
|
2510
2476
|
/**
|
|
2511
2477
|
* Effect to redirect to the app when login occurs.
|
|
2512
2478
|
*/
|
|
2513
|
-
this.redirectToOnboardOnLogIn = createEffect(() => this.actions$.pipe(ofType(loggedIn), exhaustMap
|
|
2479
|
+
this.redirectToOnboardOnLogIn = createEffect(() => this.actions$.pipe(ofType(loggedIn), exhaustMap(() => this.dbxAppAuthRouterService.goToApp())), { dispatch: false });
|
|
2514
2480
|
}
|
|
2515
2481
|
}
|
|
2516
2482
|
DbxAppAuthRouterEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxAppAuthRouterEffects, deps: [{ token: DBX_APP_AUTH_ROUTER_EFFECTS_TOKEN, optional: true }, { token: i1$3.Actions }, { token: i1$4.Store }, { token: DbxAppAuthRouterService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
@@ -2581,7 +2547,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
2581
2547
|
* @returns
|
|
2582
2548
|
*/
|
|
2583
2549
|
function loggedInObsFromIsLoggedIn(isLoggedInObs) {
|
|
2584
|
-
return isLoggedInObs.pipe(onFalseToTrue(), map
|
|
2550
|
+
return isLoggedInObs.pipe(onFalseToTrue(), map(() => undefined));
|
|
2585
2551
|
}
|
|
2586
2552
|
/**
|
|
2587
2553
|
* Convenience operator that emits events when the input observable goes from true to false.
|
|
@@ -2590,7 +2556,7 @@ function loggedInObsFromIsLoggedIn(isLoggedInObs) {
|
|
|
2590
2556
|
* @returns
|
|
2591
2557
|
*/
|
|
2592
2558
|
function loggedOutObsFromIsLoggedIn(isLoggedInObs) {
|
|
2593
|
-
return isLoggedInObs.pipe(onTrueToFalse(), map
|
|
2559
|
+
return isLoggedInObs.pipe(onTrueToFalse(), map(() => undefined));
|
|
2594
2560
|
}
|
|
2595
2561
|
function authRolesSetContainsAllRolesFrom(roles) {
|
|
2596
2562
|
return setContainsAllValuesFrom(roles);
|
|
@@ -2691,22 +2657,22 @@ class DbxAppAuthEffects {
|
|
|
2691
2657
|
this.dbxAuthService = dbxAuthService;
|
|
2692
2658
|
// MARK: Auth
|
|
2693
2659
|
this.emitLoggedIn = createEffect(() => this.dbxAuthService.onLogIn$
|
|
2694
|
-
.pipe(map
|
|
2660
|
+
.pipe(map(() => loggedIn())));
|
|
2695
2661
|
this.emitLoggedOut = createEffect(() => this.dbxAuthService.onLogOut$
|
|
2696
|
-
.pipe(map
|
|
2697
|
-
this.forwardLogoutToAuthService = createEffect(() => this.actions$.pipe(ofType(logout), tap
|
|
2662
|
+
.pipe(map(() => loggedOut())));
|
|
2663
|
+
this.forwardLogoutToAuthService = createEffect(() => this.actions$.pipe(ofType(logout), tap(() => {
|
|
2698
2664
|
// Perform the logout
|
|
2699
2665
|
this.dbxAuthService.logOut();
|
|
2700
2666
|
})), { dispatch: false });
|
|
2701
2667
|
// MARK: Auth
|
|
2702
2668
|
this.setUserIdentifier = createEffect(() => this.dbxAuthService.userIdentifier$
|
|
2703
|
-
.pipe(map
|
|
2669
|
+
.pipe(map((id) => setUserIdentifier({ id }))));
|
|
2704
2670
|
this.setUserState = createEffect(() => this.dbxAuthService.authUserState$
|
|
2705
|
-
.pipe(map
|
|
2671
|
+
.pipe(map((state) => setUserState({ state }))));
|
|
2706
2672
|
this.setUserRoles = createEffect(() => this.dbxAuthService.authRoles$
|
|
2707
|
-
.pipe(map
|
|
2673
|
+
.pipe(map((roles) => setUserRoles({ roles: Array.from(roles ?? []) }))));
|
|
2708
2674
|
this.setUserIsOnboarded = createEffect(() => this.dbxAuthService.isOnboarded$
|
|
2709
|
-
.pipe(map
|
|
2675
|
+
.pipe(map((isOnboarded) => setUserIsOnboarded({ isOnboarded }))));
|
|
2710
2676
|
}
|
|
2711
2677
|
}
|
|
2712
2678
|
DbxAppAuthEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxAppAuthEffects, deps: [{ token: i1$3.Actions }, { token: i1$4.Store }, { token: DbxAuthService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
@@ -2761,7 +2727,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
2761
2727
|
* @returns
|
|
2762
2728
|
*/
|
|
2763
2729
|
function tapDetectChanges(cdRef, timeout = 0) {
|
|
2764
|
-
return tap
|
|
2730
|
+
return tap(() => setTimeout(() => safeDetectChanges(cdRef), timeout));
|
|
2765
2731
|
}
|
|
2766
2732
|
/**
|
|
2767
2733
|
* Triggers a detection change on the input view as long as the view has not been destroyed.
|
|
@@ -2786,7 +2752,7 @@ function safeMarkForCheck(cdRef) {
|
|
|
2786
2752
|
*/
|
|
2787
2753
|
function safeUseCdRef(cdRef, use) {
|
|
2788
2754
|
if (!cdRef.destroyed) {
|
|
2789
|
-
cdRef
|
|
2755
|
+
use(cdRef);
|
|
2790
2756
|
}
|
|
2791
2757
|
}
|
|
2792
2758
|
/**
|
|
@@ -2815,7 +2781,7 @@ function checkNgContentWrapperHasContent(ref) {
|
|
|
2815
2781
|
|
|
2816
2782
|
class DbxButton {
|
|
2817
2783
|
}
|
|
2818
|
-
function
|
|
2784
|
+
function provideDbxButton(sourceType) {
|
|
2819
2785
|
return [{
|
|
2820
2786
|
provide: DbxButton,
|
|
2821
2787
|
useExisting: forwardRef(() => sourceType)
|
|
@@ -3019,13 +2985,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
3019
2985
|
class DbxButtonDirective extends AbstractDbxButtonDirective {
|
|
3020
2986
|
}
|
|
3021
2987
|
DbxButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxButtonDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
3022
|
-
DbxButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: DbxButtonDirective, selector: "[dbxButton]", providers:
|
|
2988
|
+
DbxButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: DbxButtonDirective, selector: "[dbxButton]", providers: provideDbxButton(DbxButtonDirective), exportAs: ["dbxButton"], usesInheritance: true, ngImport: i0 });
|
|
3023
2989
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxButtonDirective, decorators: [{
|
|
3024
2990
|
type: Directive,
|
|
3025
2991
|
args: [{
|
|
3026
2992
|
selector: '[dbxButton]',
|
|
3027
2993
|
exportAs: 'dbxButton',
|
|
3028
|
-
providers:
|
|
2994
|
+
providers: provideDbxButton(DbxButtonDirective)
|
|
3029
2995
|
}]
|
|
3030
2996
|
}] });
|
|
3031
2997
|
|
|
@@ -3188,9 +3154,6 @@ class DateFromToTimePipe {
|
|
|
3188
3154
|
constructor(locale) {
|
|
3189
3155
|
this.locale = locale;
|
|
3190
3156
|
}
|
|
3191
|
-
transform(input, format, minutes) {
|
|
3192
|
-
return DateFromToTimePipe.formatFromTo(input, format, minutes, this.locale);
|
|
3193
|
-
}
|
|
3194
3157
|
static formatFromTo(input, format, minutes, locale) {
|
|
3195
3158
|
if (input) {
|
|
3196
3159
|
const date = toJsDate(input);
|
|
@@ -3200,6 +3163,9 @@ class DateFromToTimePipe {
|
|
|
3200
3163
|
}
|
|
3201
3164
|
return undefined;
|
|
3202
3165
|
}
|
|
3166
|
+
transform(input, format, minutes) {
|
|
3167
|
+
return DateFromToTimePipe.formatFromTo(input, format, minutes, this.locale);
|
|
3168
|
+
}
|
|
3203
3169
|
}
|
|
3204
3170
|
DateFromToTimePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DateFromToTimePipe, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
3205
3171
|
DateFromToTimePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DateFromToTimePipe, name: "dateFromPlusTo" });
|
|
@@ -3356,18 +3322,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
3356
3322
|
}] }]; } });
|
|
3357
3323
|
|
|
3358
3324
|
class DateDistancePipe {
|
|
3359
|
-
transform(input,
|
|
3325
|
+
transform(input, inputTo, unavailable = 'Not Available') {
|
|
3360
3326
|
if (input) {
|
|
3361
|
-
const
|
|
3362
|
-
if (useDefaultTo) {
|
|
3363
|
-
to = new Date();
|
|
3364
|
-
}
|
|
3327
|
+
const to = inputTo ?? new Date();
|
|
3365
3328
|
const from = ToJsDatePipe.toJsDate(input);
|
|
3366
3329
|
const fromStart = startOfDay(from);
|
|
3367
3330
|
const toStart = startOfDay(to);
|
|
3368
3331
|
if (isSameDay(fromStart, toStart)) {
|
|
3369
3332
|
let text;
|
|
3370
|
-
if (
|
|
3333
|
+
if (!inputTo || isSameDay(from, new Date())) {
|
|
3371
3334
|
text = 'Today';
|
|
3372
3335
|
}
|
|
3373
3336
|
else {
|
|
@@ -3565,7 +3528,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
3565
3528
|
class AbstractFilterSourceConnectorDirective {
|
|
3566
3529
|
constructor() {
|
|
3567
3530
|
this._source = new BehaviorSubject(undefined);
|
|
3568
|
-
this.filter$ = this._source.pipe(switchMap
|
|
3531
|
+
this.filter$ = this._source.pipe(switchMap(x => x?.filter$ ?? of(undefined)), filterMaybe(), shareReplay(1));
|
|
3569
3532
|
}
|
|
3570
3533
|
ngOnDestroy() {
|
|
3571
3534
|
this._source.complete();
|
|
@@ -3583,7 +3546,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
3583
3546
|
/**
|
|
3584
3547
|
* Angular provider convenience function for a FilterSource.
|
|
3585
3548
|
*/
|
|
3586
|
-
function
|
|
3549
|
+
function provideFilterSource(sourceType) {
|
|
3587
3550
|
return [{
|
|
3588
3551
|
provide: FilterSource,
|
|
3589
3552
|
useExisting: forwardRef(() => sourceType)
|
|
@@ -3592,7 +3555,7 @@ function ProvideFilterSource(sourceType) {
|
|
|
3592
3555
|
/**
|
|
3593
3556
|
* Angular provider convenience function for a FilterSourceConnector.
|
|
3594
3557
|
*/
|
|
3595
|
-
function
|
|
3558
|
+
function provideFilterSourceConnector(sourceType) {
|
|
3596
3559
|
return [{
|
|
3597
3560
|
provide: FilterSourceConnector,
|
|
3598
3561
|
useExisting: forwardRef(() => sourceType)
|
|
@@ -3609,16 +3572,16 @@ class DbxFilterSourceConnectorDirective extends AbstractFilterSourceConnectorDir
|
|
|
3609
3572
|
}
|
|
3610
3573
|
DbxFilterSourceConnectorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxFilterSourceConnectorDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
3611
3574
|
DbxFilterSourceConnectorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: DbxFilterSourceConnectorDirective, selector: "[dbxFilterSourceConnector]", providers: [
|
|
3612
|
-
...
|
|
3613
|
-
...
|
|
3575
|
+
...provideFilterSource(DbxFilterSourceConnectorDirective),
|
|
3576
|
+
...provideFilterSourceConnector(DbxFilterSourceConnectorDirective)
|
|
3614
3577
|
], usesInheritance: true, ngImport: i0 });
|
|
3615
3578
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxFilterSourceConnectorDirective, decorators: [{
|
|
3616
3579
|
type: Directive,
|
|
3617
3580
|
args: [{
|
|
3618
3581
|
selector: '[dbxFilterSourceConnector]',
|
|
3619
3582
|
providers: [
|
|
3620
|
-
...
|
|
3621
|
-
...
|
|
3583
|
+
...provideFilterSource(DbxFilterSourceConnectorDirective),
|
|
3584
|
+
...provideFilterSourceConnector(DbxFilterSourceConnectorDirective)
|
|
3622
3585
|
]
|
|
3623
3586
|
}]
|
|
3624
3587
|
}] });
|
|
@@ -3649,7 +3612,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
3649
3612
|
class DbxFilterMapSourceDirective extends AbstractDbxFilterMapInstanceDirective {
|
|
3650
3613
|
constructor() {
|
|
3651
3614
|
super(...arguments);
|
|
3652
|
-
this.filter$ = this.instance$.pipe(switchMap
|
|
3615
|
+
this.filter$ = this.instance$.pipe(switchMap(x => x.filter$));
|
|
3653
3616
|
}
|
|
3654
3617
|
get key() {
|
|
3655
3618
|
return this._key.value;
|
|
@@ -3658,12 +3621,12 @@ class DbxFilterMapSourceDirective extends AbstractDbxFilterMapInstanceDirective
|
|
|
3658
3621
|
this._key.next(key);
|
|
3659
3622
|
}
|
|
3660
3623
|
initWithFilter(filterObs) {
|
|
3661
|
-
this.instance$.pipe(first
|
|
3624
|
+
this.instance$.pipe(first()).subscribe((x) => x.initWithFilter(filterObs));
|
|
3662
3625
|
}
|
|
3663
3626
|
}
|
|
3664
3627
|
DbxFilterMapSourceDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxFilterMapSourceDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
3665
3628
|
DbxFilterMapSourceDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: DbxFilterMapSourceDirective, selector: "[dbxFilterMapSource]", inputs: { key: ["dbxFilterMapSource", "key"] }, providers: [
|
|
3666
|
-
...
|
|
3629
|
+
...provideFilterSource(DbxFilterMapSourceDirective)
|
|
3667
3630
|
], exportAs: ["dbxFilterMapSource"], usesInheritance: true, ngImport: i0 });
|
|
3668
3631
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxFilterMapSourceDirective, decorators: [{
|
|
3669
3632
|
type: Directive,
|
|
@@ -3671,7 +3634,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
3671
3634
|
selector: '[dbxFilterMapSource]',
|
|
3672
3635
|
exportAs: 'dbxFilterMapSource',
|
|
3673
3636
|
providers: [
|
|
3674
|
-
...
|
|
3637
|
+
...provideFilterSource(DbxFilterMapSourceDirective)
|
|
3675
3638
|
]
|
|
3676
3639
|
}]
|
|
3677
3640
|
}], propDecorators: { key: [{
|
|
@@ -3691,13 +3654,13 @@ class DbxFilterMapSourceConnectorDirective extends DbxFilterMapSourceDirective {
|
|
|
3691
3654
|
}
|
|
3692
3655
|
// MARK: FilterSourceConnector
|
|
3693
3656
|
connectWithSource(filterSource) {
|
|
3694
|
-
this.instance$.pipe(first
|
|
3657
|
+
this.instance$.pipe(first()).subscribe((x) => x.connectWithSource(filterSource));
|
|
3695
3658
|
}
|
|
3696
3659
|
}
|
|
3697
3660
|
DbxFilterMapSourceConnectorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxFilterMapSourceConnectorDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
3698
3661
|
DbxFilterMapSourceConnectorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: DbxFilterMapSourceConnectorDirective, selector: "[dbxFilterMapSourceConnector]", inputs: { key: ["dbxFilterMapSourceConnector", "key"] }, providers: [
|
|
3699
|
-
...
|
|
3700
|
-
...
|
|
3662
|
+
...provideFilterSource(DbxFilterMapSourceConnectorDirective),
|
|
3663
|
+
...provideFilterSourceConnector(DbxFilterMapSourceConnectorDirective)
|
|
3701
3664
|
], exportAs: ["dbxFilterMapSourceConnector"], usesInheritance: true, ngImport: i0 });
|
|
3702
3665
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxFilterMapSourceConnectorDirective, decorators: [{
|
|
3703
3666
|
type: Directive,
|
|
@@ -3705,8 +3668,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
3705
3668
|
selector: '[dbxFilterMapSourceConnector]',
|
|
3706
3669
|
exportAs: 'dbxFilterMapSourceConnector',
|
|
3707
3670
|
providers: [
|
|
3708
|
-
...
|
|
3709
|
-
...
|
|
3671
|
+
...provideFilterSource(DbxFilterMapSourceConnectorDirective),
|
|
3672
|
+
...provideFilterSourceConnector(DbxFilterMapSourceConnectorDirective)
|
|
3710
3673
|
]
|
|
3711
3674
|
}]
|
|
3712
3675
|
}], propDecorators: { key: [{
|
|
@@ -3742,12 +3705,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
3742
3705
|
class DbxFilterSourceDirective extends AbstractFilterSourceDirective {
|
|
3743
3706
|
}
|
|
3744
3707
|
DbxFilterSourceDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxFilterSourceDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
3745
|
-
DbxFilterSourceDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: DbxFilterSourceDirective, selector: "[dbxFilterSource]", providers:
|
|
3708
|
+
DbxFilterSourceDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: DbxFilterSourceDirective, selector: "[dbxFilterSource]", providers: provideFilterSource(DbxFilterSourceDirective), usesInheritance: true, ngImport: i0 });
|
|
3746
3709
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxFilterSourceDirective, decorators: [{
|
|
3747
3710
|
type: Directive,
|
|
3748
3711
|
args: [{
|
|
3749
3712
|
selector: '[dbxFilterSource]',
|
|
3750
|
-
providers:
|
|
3713
|
+
providers: provideFilterSource(DbxFilterSourceDirective)
|
|
3751
3714
|
}]
|
|
3752
3715
|
}] });
|
|
3753
3716
|
|
|
@@ -3878,7 +3841,7 @@ class DbxInjectionInstance {
|
|
|
3878
3841
|
const { init, injector: inputInjector, providers, ngModuleRef, componentClass, data } = config;
|
|
3879
3842
|
let injector;
|
|
3880
3843
|
const parentInjector = inputInjector ?? this._injector;
|
|
3881
|
-
if (
|
|
3844
|
+
if (providers || data) {
|
|
3882
3845
|
injector = Injector.create({
|
|
3883
3846
|
parent: parentInjector,
|
|
3884
3847
|
providers: mergeArrayOrValueIntoArray([{
|
|
@@ -3985,7 +3948,7 @@ class DbxInjectionContext {
|
|
|
3985
3948
|
/**
|
|
3986
3949
|
* Allows a directive to provide a formly context and form.
|
|
3987
3950
|
*/
|
|
3988
|
-
function
|
|
3951
|
+
function provideDbxInjectionContext(type) {
|
|
3989
3952
|
return [{
|
|
3990
3953
|
provide: DbxInjectionContext,
|
|
3991
3954
|
useExisting: type
|
|
@@ -4100,12 +4063,12 @@ class DbxInjectionContextDirective {
|
|
|
4100
4063
|
}
|
|
4101
4064
|
}
|
|
4102
4065
|
DbxInjectionContextDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxInjectionContextDirective, deps: [{ token: i0.Injector }, { token: i0.TemplateRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4103
|
-
DbxInjectionContextDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: DbxInjectionContextDirective, selector: "[dbxInjectionContext]", inputs: { config: "config" }, providers:
|
|
4066
|
+
DbxInjectionContextDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: DbxInjectionContextDirective, selector: "[dbxInjectionContext]", inputs: { config: "config" }, providers: provideDbxInjectionContext(DbxInjectionContextDirective), ngImport: i0 });
|
|
4104
4067
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxInjectionContextDirective, decorators: [{
|
|
4105
4068
|
type: Directive,
|
|
4106
4069
|
args: [{
|
|
4107
4070
|
selector: '[dbxInjectionContext]',
|
|
4108
|
-
providers:
|
|
4071
|
+
providers: provideDbxInjectionContext(DbxInjectionContextDirective)
|
|
4109
4072
|
}]
|
|
4110
4073
|
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i0.TemplateRef }, { type: i0.ViewContainerRef }]; }, propDecorators: { config: [{
|
|
4111
4074
|
type: Input
|
|
@@ -4189,7 +4152,7 @@ class LockSetComponentStore extends ComponentStore {
|
|
|
4189
4152
|
}
|
|
4190
4153
|
}
|
|
4191
4154
|
setParentLockSet(obs) {
|
|
4192
|
-
this.lockSet.setParentLockSet(asObservable(obs).pipe(map
|
|
4155
|
+
this.lockSet.setParentLockSet(asObservable(obs).pipe(map(x => x?.lockSet)));
|
|
4193
4156
|
}
|
|
4194
4157
|
addLock(key, obs) {
|
|
4195
4158
|
this.lockSet.addLock(key, obs);
|
|
@@ -4416,7 +4379,7 @@ class StringStorageAccessor {
|
|
|
4416
4379
|
});
|
|
4417
4380
|
}
|
|
4418
4381
|
all() {
|
|
4419
|
-
return this.allKeys().pipe(map(x => x.map(y => this._storage.getItem(y))), shareReplay(1));
|
|
4382
|
+
return this.allKeys().pipe(map(x => filterMaybeValues(x.map(y => this._storage.getItem(y)))), shareReplay(1));
|
|
4420
4383
|
}
|
|
4421
4384
|
allKeys() {
|
|
4422
4385
|
return new Observable((x) => {
|
|
@@ -4567,5 +4530,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
4567
4530
|
* Generated bundle index. Do not edit.
|
|
4568
4531
|
*/
|
|
4569
4532
|
|
|
4570
|
-
export { APP_ACTION_DISABLED_DIRECTIVE_KEY, APP_ACTION_ENFORCE_MODIFIED_DIRECTIVE_KEY, AbstractActionFilterSourceDirective, AbstractDbxActionValueOnTriggerDirective, AbstractDbxAnchorDirective, AbstractDbxButtonDirective, AbstractDbxFilterMapInstanceDirective, AbstractDbxInjectionDirective, AbstractFilterSourceConnectorDirective, AbstractFilterSourceDirective, AbstractForwardDbxInjectionContextDirective, AbstractIfDirective, AbstractLockSetSubscriptionDirective, AbstractSubscriptionDirective, AbstractTransitionDirective, AbstractTransitionWatcherDirective, ActionContextStore, ActionContextStoreSource, ActionContextStoreSourceMap, AnchorType, DBX_APP_APP_CONTEXT_STATE, DBX_APP_AUTH_ROUTER_EFFECTS_TOKEN, DBX_AUTH_APP_CONTEXT_STATE, DBX_INIT_APP_CONTEXT_STATE, DBX_INJECTION_COMPONENT_DATA, DBX_KNOWN_APP_CONTEXT_STATES, DBX_ONBOARDING_APP_CONTEXT_STATE, DBX_PUBLIC_APP_CONTEXT_STATE, DEFAULT_ACTION_DISABLED_KEY, DEFAULT_ACTION_MAP_WORKING_DISABLED_KEY, DEFAULT_STORAGE_ACCESSOR_FACTORY_TOKEN, DEFAULT_STORAGE_OBJECT_TOKEN, DateDistancePipe, DateFormatDistancePipe, DateFromToTimePipe, DbxActionAutoModifyDirective, DbxActionAutoTriggerDirective, DbxActionButtonDirective, DbxActionButtonTriggerDirective, DbxActionContextBaseSource, DbxActionContextLoggerDirective, DbxActionContextMachine, DbxActionContextMapDirective, DbxActionContextMapDirectiveSourceInstance, DbxActionContextStoreSourceInstance, DbxActionDirective, DbxActionDisabledDirective, DbxActionEnforceModifiedDirective, DbxActionFromMapDirective, DbxActionHandlerDirective, DbxActionHasSuccessDirective, DbxActionIsWorkingDirective, DbxActionMapSourceDirective, DbxActionMapWorkingDisableDirective, DbxActionSourceDirective, DbxActionState, DbxActionSuccessHandlerDirective, DbxActionValueDirective, DbxActionValueOnTriggerInstance, DbxActionValueTriggerDirective, DbxActionWorkInstanceDelegate, DbxAnchor, DbxAngularRouterService, DbxAppAuthRouterEffects, DbxAppAuthRouterModule, DbxAppAuthRouterService, DbxAppAuthRouterStateModule, DbxAppAuthRoutes, DbxAppAuthStateModule, DbxAppAuthStateService, DbxAppContextService, DbxAppContextStateDirective, DbxAppContextStateModule, DbxAuthHasAnyRoleDirective, DbxAuthHasRolesDirective, DbxAuthService, DbxButton, DbxButtonDirective, DbxButtonSegueDirective, DbxCoreActionModule, DbxCoreAngularRouterSegueModule, DbxCoreAuthModule, DbxCoreButtonModule, DbxCoreFilterModule, DbxCoreUIRouterSegueModule, DbxDatePipeModule, DbxFilterMapDirective, DbxFilterMapSourceConnectorDirective, DbxFilterMapSourceDirective, DbxFilterSourceConnectorDirective, DbxFilterSourceDirective, DbxInjectionComponent, DbxInjectionComponentModule, DbxInjectionContext, DbxInjectionContextDirective, DbxInjectionInstance, DbxLoadingButtonDirective, DbxMiscPipeModule, DbxPipesModule, DbxRouterService, DbxRouterTransitionEventType, DbxRouterTransitionService, DbxStorageModule, DbxUIRouterService, FullLocalStorageObject, InstantStorageAccessor, LimitedStorageAccessor, LockSetComponentStore, MemoryStorageObject, MinutesStringPipe, NO_AUTH_USER_IDENTIFIER, PrettyJsonPipe,
|
|
4533
|
+
export { APP_ACTION_DISABLED_DIRECTIVE_KEY, APP_ACTION_ENFORCE_MODIFIED_DIRECTIVE_KEY, AbstractActionFilterSourceDirective, AbstractDbxActionValueOnTriggerDirective, AbstractDbxAnchorDirective, AbstractDbxButtonDirective, AbstractDbxFilterMapInstanceDirective, AbstractDbxInjectionDirective, AbstractFilterSourceConnectorDirective, AbstractFilterSourceDirective, AbstractForwardDbxInjectionContextDirective, AbstractIfDirective, AbstractLockSetSubscriptionDirective, AbstractSubscriptionDirective, AbstractTransitionDirective, AbstractTransitionWatcherDirective, ActionContextStore, ActionContextStoreSource, ActionContextStoreSourceMap, AnchorType, DBX_APP_APP_CONTEXT_STATE, DBX_APP_AUTH_ROUTER_EFFECTS_TOKEN, DBX_AUTH_APP_CONTEXT_STATE, DBX_INIT_APP_CONTEXT_STATE, DBX_INJECTION_COMPONENT_DATA, DBX_KNOWN_APP_CONTEXT_STATES, DBX_ONBOARDING_APP_CONTEXT_STATE, DBX_PUBLIC_APP_CONTEXT_STATE, DEFAULT_ACTION_DISABLED_KEY, DEFAULT_ACTION_MAP_WORKING_DISABLED_KEY, DEFAULT_STORAGE_ACCESSOR_FACTORY_TOKEN, DEFAULT_STORAGE_OBJECT_TOKEN, DateDistancePipe, DateFormatDistancePipe, DateFromToTimePipe, DbxActionAutoModifyDirective, DbxActionAutoTriggerDirective, DbxActionButtonDirective, DbxActionButtonTriggerDirective, DbxActionContextBaseSource, DbxActionContextLoggerDirective, DbxActionContextMachine, DbxActionContextMapDirective, DbxActionContextMapDirectiveSourceInstance, DbxActionContextStoreSourceInstance, DbxActionDirective, DbxActionDisabledDirective, DbxActionEnforceModifiedDirective, DbxActionFromMapDirective, DbxActionHandlerDirective, DbxActionHasSuccessDirective, DbxActionIsWorkingDirective, DbxActionMapSourceDirective, DbxActionMapWorkingDisableDirective, DbxActionSourceDirective, DbxActionState, DbxActionSuccessHandlerDirective, DbxActionValueDirective, DbxActionValueOnTriggerInstance, DbxActionValueTriggerDirective, DbxActionWorkInstanceDelegate, DbxAnchor, DbxAngularRouterService, DbxAppAuthRouterEffects, DbxAppAuthRouterModule, DbxAppAuthRouterService, DbxAppAuthRouterStateModule, DbxAppAuthRoutes, DbxAppAuthStateModule, DbxAppAuthStateService, DbxAppContextService, DbxAppContextStateDirective, DbxAppContextStateModule, DbxAuthHasAnyRoleDirective, DbxAuthHasRolesDirective, DbxAuthService, DbxButton, DbxButtonDirective, DbxButtonSegueDirective, DbxCoreActionModule, DbxCoreAngularRouterSegueModule, DbxCoreAuthModule, DbxCoreButtonModule, DbxCoreFilterModule, DbxCoreUIRouterSegueModule, DbxDatePipeModule, DbxFilterMapDirective, DbxFilterMapSourceConnectorDirective, DbxFilterMapSourceDirective, DbxFilterSourceConnectorDirective, DbxFilterSourceDirective, DbxInjectionComponent, DbxInjectionComponentModule, DbxInjectionContext, DbxInjectionContextDirective, DbxInjectionInstance, DbxLoadingButtonDirective, DbxMiscPipeModule, DbxPipesModule, DbxRouterService, DbxRouterTransitionEventType, DbxRouterTransitionService, DbxStorageModule, DbxUIRouterService, FullLocalStorageObject, InstantStorageAccessor, LimitedStorageAccessor, LockSetComponentStore, MemoryStorageObject, MinutesStringPipe, NO_AUTH_USER_IDENTIFIER, PrettyJsonPipe, SecondaryActionContextStoreSource, SimpleStorageAccessor, SimpleStorageAccessorFactory, StorageAccessor, StringStorageAccessor, StringifySimpleStorageAccessorConverter, TimeDistanceCountdownPipe, TimeDistancePipe, ToJsDatePipe, ToMinutesPipe, WrapperSimpleStorageAccessorDelegate, actionContextHasNoErrorAndIsModifiedAndCanTrigger, actionContextIsModifiedAndCanTrigger, actionContextStoreSourceInstanceFactory, actionContextStoreSourcePipe, anchorTypeForAnchor, asSegueRef, asSegueRefString, authRolesSetContainsAllRolesFrom, authRolesSetContainsAnyRoleFrom, authUserIdentifier, canReadyValue, canTriggerAction, canTriggerActionState, checkNgContentWrapperHasContent, dbxActionValueStreamDirective, defaultStorageObjectFactory, enableHasAuthRoleHook, enableHasAuthStateHook, enableIsLoggedInHook, expandClickableAnchorLinkTree, expandClickableAnchorLinkTreeNode, expandClickableAnchorLinkTrees, filterTransitionEvent, filterTransitionSuccess, flattenExpandedClickableAnchorLinkTree, flattenExpandedClickableAnchorLinkTreeToLinks, index as fromDbxAppAuth, index$2 as fromDbxAppContext, goWithRouter, isActionContextDisabled, isActionContextEnabled, isDisabledActionContextState, isIdleActionState, isSegueRef, isWorkingActionState, loadingStateForActionContextState, loadingStateTypeForActionContextState, loadingStateTypeForActionState, loggedInObsFromIsLoggedIn, loggedOutObsFromIsLoggedIn, makeAuthTransitionHook, makeDbxActionContextSourceReference, mapRefStringObsToSegueRefObs, mergeDbxInjectionComponentConfigs, index$1 as onDbxAppAuth, index$3 as onDbxAppContext, pipeActionStore, provideActionStoreSource, provideDbxAnchor, provideDbxButton, provideDbxInjectionContext, provideFilterSource, provideFilterSourceConnector, provideSecondaryActionStoreSource, redirectBasedOnAuthUserState, refStringToSegueRef, safeDetectChanges, safeMarkForCheck, safeUseCdRef, successTransition, tapDetectChanges, useActionStore };
|
|
4571
4534
|
//# sourceMappingURL=dereekb-dbx-core.mjs.map
|