@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
|
@@ -3,10 +3,9 @@ import { Directive, Injectable, forwardRef, Host, Input, Optional, NgModule, Inj
|
|
|
3
3
|
import * as i1$5 from '@dereekb/rxjs';
|
|
4
4
|
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';
|
|
5
5
|
import * as i1 from 'rxjs';
|
|
6
|
-
import { BehaviorSubject, combineLatest,
|
|
7
|
-
import { switchMap, first, distinctUntilChanged, filter, debounce, throttle, exhaustMap, mergeMap, map, shareReplay, withLatestFrom, startWith, tap, delay as delay$1 } from 'rxjs/operators';
|
|
6
|
+
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';
|
|
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';
|
|
@@ -201,7 +201,7 @@ const actionContextStoreSourceInstanceFactory = (source) => {
|
|
|
201
201
|
/**
|
|
202
202
|
* Provides an ActionContextStoreSource, as well as an DbxActionContextStoreSourceInstance.
|
|
203
203
|
*/
|
|
204
|
-
function
|
|
204
|
+
function provideActionStoreSource(sourceType) {
|
|
205
205
|
return [{
|
|
206
206
|
provide: ActionContextStoreSource,
|
|
207
207
|
useExisting: forwardRef(() => sourceType)
|
|
@@ -212,12 +212,12 @@ function ProvideActionStoreSource(sourceType) {
|
|
|
212
212
|
deps: [ActionContextStoreSource]
|
|
213
213
|
}];
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function provideSecondaryActionStoreSource(sourceType) {
|
|
216
216
|
return [{
|
|
217
217
|
provide: SecondaryActionContextStoreSource,
|
|
218
218
|
useExisting: forwardRef(() => sourceType)
|
|
219
219
|
},
|
|
220
|
-
...
|
|
220
|
+
...provideActionStoreSource(sourceType)
|
|
221
221
|
];
|
|
222
222
|
}
|
|
223
223
|
|
|
@@ -428,11 +428,11 @@ class dbxActionValueStreamDirective {
|
|
|
428
428
|
}
|
|
429
429
|
ngOnInit() {
|
|
430
430
|
// Update Modified value.
|
|
431
|
-
this._modifiedSub.subscription = this.modifiedValue$.subscribe(([isModified
|
|
431
|
+
this._modifiedSub.subscription = this.modifiedValue$.subscribe(([isModified]) => {
|
|
432
432
|
this.source.setIsModified(isModified);
|
|
433
433
|
});
|
|
434
434
|
// Set the value on triggers.
|
|
435
|
-
this._triggerSub.subscription = this.source.triggered$.pipe(switchMap(
|
|
435
|
+
this._triggerSub.subscription = this.source.triggered$.pipe(switchMap(() => this.modifiedValue$)).subscribe(([isModified, value]) => {
|
|
436
436
|
if (isModified) {
|
|
437
437
|
this.source.readyValue(value);
|
|
438
438
|
}
|
|
@@ -711,7 +711,7 @@ class ActionContextStore extends ComponentStore {
|
|
|
711
711
|
/**
|
|
712
712
|
* Completely resets the store.
|
|
713
713
|
*/
|
|
714
|
-
this.reset = this.updater((
|
|
714
|
+
this.reset = this.updater(() => (Object.assign({}, INITIAL_STATE)));
|
|
715
715
|
this.lockSet.addLock('working', this.isWorking$);
|
|
716
716
|
}
|
|
717
717
|
// MARK: Utility
|
|
@@ -814,13 +814,13 @@ class DbxActionDirective extends DbxActionContextBaseSource {
|
|
|
814
814
|
}
|
|
815
815
|
}
|
|
816
816
|
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 });
|
|
817
|
-
DbxActionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: DbxActionDirective, selector: "dbx-action,[dbxAction],dbx-action-context,[dbxActionContext]", providers:
|
|
817
|
+
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 });
|
|
818
818
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxActionDirective, decorators: [{
|
|
819
819
|
type: Directive,
|
|
820
820
|
args: [{
|
|
821
821
|
selector: 'dbx-action,[dbxAction],dbx-action-context,[dbxActionContext]',
|
|
822
822
|
exportAs: 'action,dbxAction',
|
|
823
|
-
providers:
|
|
823
|
+
providers: provideActionStoreSource(DbxActionDirective)
|
|
824
824
|
}]
|
|
825
825
|
}], ctorParameters: function () {
|
|
826
826
|
return [{ type: SecondaryActionContextStoreSource, decorators: [{
|
|
@@ -852,12 +852,12 @@ class DbxActionSourceDirective {
|
|
|
852
852
|
}
|
|
853
853
|
}
|
|
854
854
|
DbxActionSourceDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxActionSourceDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
855
|
-
DbxActionSourceDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: DbxActionSourceDirective, selector: "[dbxActionSource]", inputs: { source: ["dbxActionSource", "source"] }, providers:
|
|
855
|
+
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 });
|
|
856
856
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxActionSourceDirective, decorators: [{
|
|
857
857
|
type: Directive,
|
|
858
858
|
args: [{
|
|
859
859
|
selector: '[dbxActionSource]',
|
|
860
|
-
providers:
|
|
860
|
+
providers: provideSecondaryActionStoreSource(DbxActionSourceDirective)
|
|
861
861
|
}]
|
|
862
862
|
}], propDecorators: { source: [{
|
|
863
863
|
type: Input,
|
|
@@ -947,7 +947,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
947
947
|
exportAs: 'actionMap',
|
|
948
948
|
providers: [],
|
|
949
949
|
}]
|
|
950
|
-
}]
|
|
950
|
+
}] });
|
|
951
951
|
class DbxActionContextMapDirectiveSourceInstance {
|
|
952
952
|
constructor(parent, key) {
|
|
953
953
|
this.parent = parent;
|
|
@@ -978,12 +978,12 @@ class DbxActionFromMapDirective {
|
|
|
978
978
|
}
|
|
979
979
|
}
|
|
980
980
|
DbxActionFromMapDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxActionFromMapDirective, deps: [{ token: DbxActionContextMapDirective }], target: i0.ɵɵFactoryTarget.Directive });
|
|
981
|
-
DbxActionFromMapDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: DbxActionFromMapDirective, selector: "[dbxActionFromMap]", inputs: { key: ["dbxActionFromMap", "key"] }, providers:
|
|
981
|
+
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 });
|
|
982
982
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxActionFromMapDirective, decorators: [{
|
|
983
983
|
type: Directive,
|
|
984
984
|
args: [{
|
|
985
985
|
selector: '[dbxActionFromMap]',
|
|
986
|
-
providers:
|
|
986
|
+
providers: provideSecondaryActionStoreSource(DbxActionFromMapDirective)
|
|
987
987
|
}]
|
|
988
988
|
}], ctorParameters: function () { return [{ type: DbxActionContextMapDirective }]; }, propDecorators: { key: [{
|
|
989
989
|
type: Input,
|
|
@@ -1199,7 +1199,7 @@ class AbstractIfDirective extends AbstractSubscriptionDirective {
|
|
|
1199
1199
|
this.viewContainer = viewContainer;
|
|
1200
1200
|
}
|
|
1201
1201
|
ngOnInit() {
|
|
1202
|
-
this.sub = this.show$.pipe(distinctUntilChanged
|
|
1202
|
+
this.sub = this.show$.pipe(distinctUntilChanged()).subscribe((show) => {
|
|
1203
1203
|
if (show) {
|
|
1204
1204
|
this.viewContainer.createEmbeddedView(this.templateRef);
|
|
1205
1205
|
}
|
|
@@ -1222,14 +1222,14 @@ class DbxActionHasSuccessDirective extends AbstractIfDirective {
|
|
|
1222
1222
|
constructor(templateRef, viewContainer, source) {
|
|
1223
1223
|
super(templateRef, viewContainer);
|
|
1224
1224
|
this.source = source;
|
|
1225
|
-
this.show$ = this.source.isSuccess$.pipe(exhaustMap
|
|
1225
|
+
this.show$ = this.source.isSuccess$.pipe(exhaustMap((success) => {
|
|
1226
1226
|
if (success) {
|
|
1227
1227
|
return emitDelayObs(true, false, this.hideAfter || undefined);
|
|
1228
1228
|
}
|
|
1229
1229
|
else {
|
|
1230
1230
|
return of(false);
|
|
1231
1231
|
}
|
|
1232
|
-
}), shareReplay
|
|
1232
|
+
}), shareReplay(1));
|
|
1233
1233
|
}
|
|
1234
1234
|
}
|
|
1235
1235
|
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 });
|
|
@@ -1342,14 +1342,14 @@ class DbxActionIsWorkingDirective extends AbstractIfDirective {
|
|
|
1342
1342
|
constructor(templateRef, viewContainer, source) {
|
|
1343
1343
|
super(templateRef, viewContainer);
|
|
1344
1344
|
this.source = source;
|
|
1345
|
-
this.show$ = this.source.isWorking$.pipe(exhaustMap
|
|
1345
|
+
this.show$ = this.source.isWorking$.pipe(exhaustMap((isWorking) => {
|
|
1346
1346
|
if (isWorking && this.showAfter) {
|
|
1347
1347
|
return emitDelayObs(false, true, this.showAfter || undefined);
|
|
1348
1348
|
}
|
|
1349
1349
|
else {
|
|
1350
1350
|
return of(isWorking);
|
|
1351
1351
|
}
|
|
1352
|
-
}), shareReplay
|
|
1352
|
+
}), shareReplay(1));
|
|
1353
1353
|
}
|
|
1354
1354
|
}
|
|
1355
1355
|
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 });
|
|
@@ -1428,12 +1428,12 @@ class DbxActionValueOnTriggerInstance {
|
|
|
1428
1428
|
}
|
|
1429
1429
|
init() {
|
|
1430
1430
|
// Ready the value after the source is triggered. Do modified check one last time.
|
|
1431
|
-
this._triggeredSub.subscription = this.source.triggered$.pipe(switchMap
|
|
1431
|
+
this._triggeredSub.subscription = this.source.triggered$.pipe(switchMap(() => this.valueGetter$.pipe(switchMap((valueGetter) => asObservable(valueGetter())))
|
|
1432
1432
|
.pipe(
|
|
1433
1433
|
// If the value is not null/undefined and is considered modified, then pass the value.
|
|
1434
|
-
switchMap
|
|
1435
|
-
// Catch
|
|
1436
|
-
catchError((reject) => of({ reject }))))).subscribe((result) => {
|
|
1434
|
+
switchMap((value) => returnIfIs(this.isModifiedFunction, value, false).pipe(map((value) => ({ value })))),
|
|
1435
|
+
// Catch unknown errors and pass them to reject.
|
|
1436
|
+
catchError((reject) => of({ reject: toReadableError(reject) }))))).subscribe((result) => {
|
|
1437
1437
|
if (result.value != null) {
|
|
1438
1438
|
this.source.readyValue(result.value);
|
|
1439
1439
|
}
|
|
@@ -1511,8 +1511,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
1511
1511
|
selector: '[dbxActionValueOnTrigger]'
|
|
1512
1512
|
}]
|
|
1513
1513
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: DbxActionContextStoreSourceInstance }]; }, propDecorators: { dbxActionValueOnTrigger: [{
|
|
1514
|
-
type: Input
|
|
1515
|
-
args: ['dbxActionValueOnTrigger']
|
|
1514
|
+
type: Input
|
|
1516
1515
|
}], dbxActionValueTriggerModified: [{
|
|
1517
1516
|
type: Input
|
|
1518
1517
|
}] } });
|
|
@@ -1539,7 +1538,7 @@ class DbxActionContextMachine extends DbxActionContextBaseSource {
|
|
|
1539
1538
|
});
|
|
1540
1539
|
// If this is a one-time use, then destroy it after the first success comes through.
|
|
1541
1540
|
if (this.config.oneTimeUse) {
|
|
1542
|
-
this.sourceInstance.success$.pipe(first(), delay
|
|
1541
|
+
this.sourceInstance.success$.pipe(first(), delay(1000)).subscribe(() => {
|
|
1543
1542
|
this.destroy();
|
|
1544
1543
|
});
|
|
1545
1544
|
}
|
|
@@ -1599,6 +1598,39 @@ function makeDbxActionContextSourceReference(sourceInstance) {
|
|
|
1599
1598
|
};
|
|
1600
1599
|
}
|
|
1601
1600
|
|
|
1601
|
+
function isSegueRef(input) {
|
|
1602
|
+
return (typeof input === 'object') && hasValueOrNotEmpty(input.ref);
|
|
1603
|
+
}
|
|
1604
|
+
function asSegueRef(input) {
|
|
1605
|
+
const type = typeof input;
|
|
1606
|
+
if (type === 'string') {
|
|
1607
|
+
return refStringToSegueRef(input);
|
|
1608
|
+
}
|
|
1609
|
+
else if (isSegueRef(input)) {
|
|
1610
|
+
return input;
|
|
1611
|
+
}
|
|
1612
|
+
else {
|
|
1613
|
+
return undefined;
|
|
1614
|
+
}
|
|
1615
|
+
}
|
|
1616
|
+
function asSegueRefString(input) {
|
|
1617
|
+
if (typeof input === 'string') {
|
|
1618
|
+
return input;
|
|
1619
|
+
}
|
|
1620
|
+
else if (isSegueRef(input)) {
|
|
1621
|
+
return input.ref;
|
|
1622
|
+
}
|
|
1623
|
+
else {
|
|
1624
|
+
throw new Error(`asSegueRefString() failed to convert the input to a string: ${input}`);
|
|
1625
|
+
}
|
|
1626
|
+
}
|
|
1627
|
+
function refStringToSegueRef(ref, options) {
|
|
1628
|
+
return Object.assign(Object.assign({}, options), { ref });
|
|
1629
|
+
}
|
|
1630
|
+
function mapRefStringObsToSegueRefObs(obs, options) {
|
|
1631
|
+
return obs.pipe(map(x => refStringToSegueRef(x, options)));
|
|
1632
|
+
}
|
|
1633
|
+
|
|
1602
1634
|
/**
|
|
1603
1635
|
* Client auth service used to retrieve info about the current state of client authentication and client roles they may have.
|
|
1604
1636
|
*/
|
|
@@ -1628,7 +1660,7 @@ function makeAuthTransitionHook(config) {
|
|
|
1628
1660
|
else {
|
|
1629
1661
|
resultObs = of(redirectTo);
|
|
1630
1662
|
}
|
|
1631
|
-
redirectToObs = resultObs.pipe(map
|
|
1663
|
+
redirectToObs = resultObs.pipe(map((stateRef) => {
|
|
1632
1664
|
let redirectTarget;
|
|
1633
1665
|
let redirectParams;
|
|
1634
1666
|
if (stateRef) {
|
|
@@ -1646,7 +1678,7 @@ function makeAuthTransitionHook(config) {
|
|
|
1646
1678
|
}
|
|
1647
1679
|
return redirectToObs;
|
|
1648
1680
|
}
|
|
1649
|
-
const resultObs = decisionObs.pipe(first
|
|
1681
|
+
const resultObs = decisionObs.pipe(first(), switchMap((decision) => {
|
|
1650
1682
|
if (typeof decision === 'boolean') {
|
|
1651
1683
|
if (decision) {
|
|
1652
1684
|
return of(true);
|
|
@@ -1656,7 +1688,7 @@ function makeAuthTransitionHook(config) {
|
|
|
1656
1688
|
}
|
|
1657
1689
|
}
|
|
1658
1690
|
else {
|
|
1659
|
-
return of($state.target(decision.ref, decision.refParams, decision.refOptions));
|
|
1691
|
+
return of($state.target(asSegueRefString(decision.ref), decision.refParams, decision.refOptions));
|
|
1660
1692
|
}
|
|
1661
1693
|
}), catchError((x) => {
|
|
1662
1694
|
console.warn('Encountered error in auth transition hook.', x);
|
|
@@ -1675,7 +1707,7 @@ function makeAuthTransitionHook(config) {
|
|
|
1675
1707
|
*/
|
|
1676
1708
|
function redirectBasedOnAuthUserState(stateMap) {
|
|
1677
1709
|
return (input) => {
|
|
1678
|
-
return input.authService.authUserState$.pipe(first
|
|
1710
|
+
return input.authService.authUserState$.pipe(first(), switchMap((authUserState) => {
|
|
1679
1711
|
const getter = stateMap[authUserState];
|
|
1680
1712
|
let result;
|
|
1681
1713
|
if (getter) {
|
|
@@ -1733,7 +1765,7 @@ function enableHasAuthRoleHook(transitionService, config) {
|
|
|
1733
1765
|
const data = targetState.state().data;
|
|
1734
1766
|
const requiredRoles = new Set(data.authRoles);
|
|
1735
1767
|
const setIncludes = setIncludesFunction(requiredRoles, data.authRolesMode);
|
|
1736
|
-
return authService.authUserState$.pipe(map
|
|
1768
|
+
return authService.authUserState$.pipe(map(x => setIncludes(x)));
|
|
1737
1769
|
} }));
|
|
1738
1770
|
// Register the "requires auth" hook with the TransitionsService
|
|
1739
1771
|
transitionService.onBefore(isSecureCriteria, assertHasAuthRole, { priority: 100 });
|
|
@@ -1759,7 +1791,7 @@ function enableHasAuthStateHook(transitionService, config) {
|
|
|
1759
1791
|
const data = targetState.state().data;
|
|
1760
1792
|
const config = toHasAuthStateObjectConfig(data.authStates);
|
|
1761
1793
|
const parsed = toParsedHasAuthStateConfig(config);
|
|
1762
|
-
return authService.authUserState$.pipe(map
|
|
1794
|
+
return authService.authUserState$.pipe(map(x => isAllowed(x, parsed)));
|
|
1763
1795
|
} }));
|
|
1764
1796
|
// Register the "requires auth" hook with the TransitionsService
|
|
1765
1797
|
transitionService.onBefore(isSecureCriteria, assertHasAuthState, { priority: 100 });
|
|
@@ -1901,9 +1933,9 @@ class AbstractOnDbxAppContextStateEffects {
|
|
|
1901
1933
|
* @returns
|
|
1902
1934
|
*/
|
|
1903
1935
|
ngrxOnRunEffects(resolvedEffects$) {
|
|
1904
|
-
return this.actions$.pipe(ofType(setState), filter
|
|
1936
|
+
return this.actions$.pipe(ofType(setState), filter(({ state }) => {
|
|
1905
1937
|
return this._activeStatesSet.has(state);
|
|
1906
|
-
}), exhaustMap
|
|
1938
|
+
}), exhaustMap(() => resolvedEffects$.pipe(takeUntil(this.actions$.pipe(ofType(setState), filter(({ state }) => !this._activeStatesSet.has(state)))))));
|
|
1907
1939
|
}
|
|
1908
1940
|
}
|
|
1909
1941
|
|
|
@@ -2061,35 +2093,13 @@ function anchorTypeForAnchor(anchor, disabled) {
|
|
|
2061
2093
|
}
|
|
2062
2094
|
class DbxAnchor {
|
|
2063
2095
|
}
|
|
2064
|
-
function
|
|
2096
|
+
function provideDbxAnchor(sourceType) {
|
|
2065
2097
|
return [{
|
|
2066
2098
|
provide: DbxAnchor,
|
|
2067
2099
|
useExisting: forwardRef(() => sourceType)
|
|
2068
2100
|
}];
|
|
2069
2101
|
}
|
|
2070
2102
|
|
|
2071
|
-
function isSegueRef(input) {
|
|
2072
|
-
return (typeof input === 'object') && input.ref != null;
|
|
2073
|
-
}
|
|
2074
|
-
function asSegueRef(input) {
|
|
2075
|
-
const type = typeof input;
|
|
2076
|
-
if (type === 'string') {
|
|
2077
|
-
return refStringToSegueRef(input);
|
|
2078
|
-
}
|
|
2079
|
-
else if (isSegueRef(input)) {
|
|
2080
|
-
return input;
|
|
2081
|
-
}
|
|
2082
|
-
else {
|
|
2083
|
-
return { ref: undefined };
|
|
2084
|
-
}
|
|
2085
|
-
}
|
|
2086
|
-
function refStringToSegueRef(ref, options) {
|
|
2087
|
-
return Object.assign(Object.assign({}, options), { ref });
|
|
2088
|
-
}
|
|
2089
|
-
function mapRefStringObsToSegueRefObs(obs, options) {
|
|
2090
|
-
return obs.pipe(map$1(x => refStringToSegueRef(x, options)));
|
|
2091
|
-
}
|
|
2092
|
-
|
|
2093
2103
|
/**
|
|
2094
2104
|
* Abstract anchor directive.
|
|
2095
2105
|
*/
|
|
@@ -2128,7 +2138,7 @@ AbstractDbxAnchorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0
|
|
|
2128
2138
|
AbstractDbxAnchorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: AbstractDbxAnchorDirective, inputs: { ref: "ref", anchor: "anchor", disabled: "disabled" }, ngImport: i0 });
|
|
2129
2139
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AbstractDbxAnchorDirective, decorators: [{
|
|
2130
2140
|
type: Directive
|
|
2131
|
-
}],
|
|
2141
|
+
}], propDecorators: { ref: [{
|
|
2132
2142
|
type: Input
|
|
2133
2143
|
}], anchor: [{
|
|
2134
2144
|
type: Input
|
|
@@ -2156,7 +2166,7 @@ class DbxAngularRouterService {
|
|
|
2156
2166
|
this.router = router;
|
|
2157
2167
|
this.activatedRoute = activatedRoute;
|
|
2158
2168
|
this.params$ = this.activatedRoute.params;
|
|
2159
|
-
this.transitions$ = this.router.events.pipe(map((x) => {
|
|
2169
|
+
this.transitions$ = this.router.events.pipe(map$1((x) => {
|
|
2160
2170
|
let event;
|
|
2161
2171
|
if (x instanceof NavigationStart) {
|
|
2162
2172
|
event = {
|
|
@@ -2173,7 +2183,7 @@ class DbxAngularRouterService {
|
|
|
2173
2183
|
}
|
|
2174
2184
|
go(input) {
|
|
2175
2185
|
const segueRef = asSegueRef(input);
|
|
2176
|
-
|
|
2186
|
+
const ref = segueRef.ref;
|
|
2177
2187
|
if (isArray(ref)) {
|
|
2178
2188
|
return this.router.navigate(ref, Object.assign(Object.assign({}, segueRef.refOptions), { queryParams: segueRef.refParams }));
|
|
2179
2189
|
}
|
|
@@ -2244,43 +2254,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
2244
2254
|
args: [{}]
|
|
2245
2255
|
}] });
|
|
2246
2256
|
|
|
2247
|
-
/**
|
|
2248
|
-
* Used for creating a future state that also captures any children urls.
|
|
2249
|
-
*
|
|
2250
|
-
* This is important for cases, such as /, where multiple urls should target a specific future so that
|
|
2251
|
-
* it can load that module and continue route resolution for the child url.
|
|
2252
|
-
*
|
|
2253
|
-
* For example:
|
|
2254
|
-
* - the urls /a and /b are declared in a lazy loaded module that is for /. This presents a problem, since
|
|
2255
|
-
* the root module does not know how to handle /a or /b, since they are children of /. We use
|
|
2256
|
-
* futureStateWithChildrenUrls() to build a future state with the child urls so the parent routing knows where
|
|
2257
|
-
* to send /a or /b.
|
|
2258
|
-
*
|
|
2259
|
-
* @param state
|
|
2260
|
-
* @param urls
|
|
2261
|
-
* @returns
|
|
2262
|
-
*
|
|
2263
|
-
* @deprecated not how this feature works. Consider adding it to ui-router later then re-export this function.
|
|
2264
|
-
*/
|
|
2265
|
-
function futureStateWithChildrenUrls(state, urls) {
|
|
2266
|
-
const states = [state];
|
|
2267
|
-
mergeArrayIntoArray(states, expandFutureStateWithUrls(state, urls));
|
|
2268
|
-
return states;
|
|
2269
|
-
}
|
|
2270
|
-
/**
|
|
2271
|
-
* Copies the input state and replaces the url in each of them with the passed urls.
|
|
2272
|
-
*
|
|
2273
|
-
* @param state
|
|
2274
|
-
* @param urls
|
|
2275
|
-
* @returns
|
|
2276
|
-
*
|
|
2277
|
-
* @deprecated
|
|
2278
|
-
*/
|
|
2279
|
-
function expandFutureStateWithUrls(state, urls) {
|
|
2280
|
-
const childrenStates = objectFlatMergeMatrix(state, urls.map(url => ({ url })));
|
|
2281
|
-
return childrenStates;
|
|
2282
|
-
}
|
|
2283
|
-
|
|
2284
2257
|
/**
|
|
2285
2258
|
* UIRouter implementation of DbxRouterService and DbxRouterTransitionService.
|
|
2286
2259
|
*/
|
|
@@ -2315,18 +2288,19 @@ class DbxUIRouterService {
|
|
|
2315
2288
|
go(input) {
|
|
2316
2289
|
const segueRef = asSegueRef(input);
|
|
2317
2290
|
const params = Object.assign(Object.assign({}, this.uiRouterGlobals.current.params), segueRef.refParams);
|
|
2318
|
-
return this.state.go(segueRef.ref, params, segueRef.refOptions).then(
|
|
2291
|
+
return this.state.go(segueRef.ref, params, segueRef.refOptions).then(() => true).catch(() => false);
|
|
2319
2292
|
}
|
|
2320
2293
|
isActive(input) {
|
|
2321
2294
|
const segueRef = asSegueRef(input);
|
|
2322
|
-
const
|
|
2295
|
+
const ref = segueRef.ref;
|
|
2296
|
+
const refParams = segueRef.refParams;
|
|
2323
2297
|
const targetRef = (ref.startsWith('.') ? `^${ref}` : ref);
|
|
2324
2298
|
const active = this.state.includes(targetRef, refParams);
|
|
2325
2299
|
return active;
|
|
2326
2300
|
}
|
|
2327
2301
|
comparePrecision(aInput, bInput) {
|
|
2328
|
-
const aRef =
|
|
2329
|
-
const bRef =
|
|
2302
|
+
const aRef = asSegueRefString(aInput);
|
|
2303
|
+
const bRef = asSegueRefString(bInput);
|
|
2330
2304
|
const aLength = aRef.length;
|
|
2331
2305
|
const bLength = bRef.length;
|
|
2332
2306
|
return (aLength > bLength) ? 1 : (aLength === bLength) ? 0 : -1;
|
|
@@ -2337,15 +2311,6 @@ DbxUIRouterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", v
|
|
|
2337
2311
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxUIRouterService, decorators: [{
|
|
2338
2312
|
type: Injectable
|
|
2339
2313
|
}], ctorParameters: function () { return [{ type: i1$2.StateService }, { type: i1$2.TransitionService }, { type: i1$2.UIRouterGlobals }]; } });
|
|
2340
|
-
function readSegueRefString(input) {
|
|
2341
|
-
var _a;
|
|
2342
|
-
if (typeof input === 'string') {
|
|
2343
|
-
return input;
|
|
2344
|
-
}
|
|
2345
|
-
else {
|
|
2346
|
-
return (_a = input === null || input === void 0 ? void 0 : input.ref) !== null && _a !== void 0 ? _a : '';
|
|
2347
|
-
}
|
|
2348
|
-
}
|
|
2349
2314
|
|
|
2350
2315
|
class DbxCoreUIRouterSegueModule {
|
|
2351
2316
|
static forRoot() {
|
|
@@ -2386,7 +2351,7 @@ function filterTransitionSuccess() {
|
|
|
2386
2351
|
return filterTransitionEvent(DbxRouterTransitionEventType.SUCCESS);
|
|
2387
2352
|
}
|
|
2388
2353
|
function filterTransitionEvent(type) {
|
|
2389
|
-
return filter
|
|
2354
|
+
return filter(x => x.type === type);
|
|
2390
2355
|
}
|
|
2391
2356
|
|
|
2392
2357
|
/**
|
|
@@ -2396,7 +2361,7 @@ class AbstractTransitionDirective {
|
|
|
2396
2361
|
constructor(dbxRouterTransitionService) {
|
|
2397
2362
|
this.dbxRouterTransitionService = dbxRouterTransitionService;
|
|
2398
2363
|
this.transitionSuccess$ = successTransition(this.dbxRouterTransitionService.transitions$);
|
|
2399
|
-
this.initAndUpdateOnTransitionSuccess$ = this.transitionSuccess$.pipe(startWith
|
|
2364
|
+
this.initAndUpdateOnTransitionSuccess$ = this.transitionSuccess$.pipe(startWith(undefined));
|
|
2400
2365
|
}
|
|
2401
2366
|
}
|
|
2402
2367
|
AbstractTransitionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AbstractTransitionDirective, deps: [{ token: DbxRouterTransitionService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
@@ -2511,11 +2476,11 @@ class DbxAppAuthRouterEffects extends AbstractOnDbxAppContextStateEffects {
|
|
|
2511
2476
|
/**
|
|
2512
2477
|
* Effect to redirect to the login when logout occurs.
|
|
2513
2478
|
*/
|
|
2514
|
-
this.redirectToLoginOnLogout = createEffect(() => this.actions$.pipe(ofType(loggedOut), exhaustMap
|
|
2479
|
+
this.redirectToLoginOnLogout = createEffect(() => this.actions$.pipe(ofType(loggedOut), exhaustMap(() => this.dbxAppAuthRouterService.goToLogin())), { dispatch: false });
|
|
2515
2480
|
/**
|
|
2516
2481
|
* Effect to redirect to the app when login occurs.
|
|
2517
2482
|
*/
|
|
2518
|
-
this.redirectToOnboardOnLogIn = createEffect(() => this.actions$.pipe(ofType(loggedIn), exhaustMap
|
|
2483
|
+
this.redirectToOnboardOnLogIn = createEffect(() => this.actions$.pipe(ofType(loggedIn), exhaustMap(() => this.dbxAppAuthRouterService.goToApp())), { dispatch: false });
|
|
2519
2484
|
}
|
|
2520
2485
|
}
|
|
2521
2486
|
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 });
|
|
@@ -2588,7 +2553,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
2588
2553
|
* @returns
|
|
2589
2554
|
*/
|
|
2590
2555
|
function loggedInObsFromIsLoggedIn(isLoggedInObs) {
|
|
2591
|
-
return isLoggedInObs.pipe(onFalseToTrue(), map
|
|
2556
|
+
return isLoggedInObs.pipe(onFalseToTrue(), map(() => undefined));
|
|
2592
2557
|
}
|
|
2593
2558
|
/**
|
|
2594
2559
|
* Convenience operator that emits events when the input observable goes from true to false.
|
|
@@ -2597,7 +2562,7 @@ function loggedInObsFromIsLoggedIn(isLoggedInObs) {
|
|
|
2597
2562
|
* @returns
|
|
2598
2563
|
*/
|
|
2599
2564
|
function loggedOutObsFromIsLoggedIn(isLoggedInObs) {
|
|
2600
|
-
return isLoggedInObs.pipe(onTrueToFalse(), map
|
|
2565
|
+
return isLoggedInObs.pipe(onTrueToFalse(), map(() => undefined));
|
|
2601
2566
|
}
|
|
2602
2567
|
function authRolesSetContainsAllRolesFrom(roles) {
|
|
2603
2568
|
return setContainsAllValuesFrom(roles);
|
|
@@ -2698,22 +2663,22 @@ class DbxAppAuthEffects {
|
|
|
2698
2663
|
this.dbxAuthService = dbxAuthService;
|
|
2699
2664
|
// MARK: Auth
|
|
2700
2665
|
this.emitLoggedIn = createEffect(() => this.dbxAuthService.onLogIn$
|
|
2701
|
-
.pipe(map
|
|
2666
|
+
.pipe(map(() => loggedIn())));
|
|
2702
2667
|
this.emitLoggedOut = createEffect(() => this.dbxAuthService.onLogOut$
|
|
2703
|
-
.pipe(map
|
|
2704
|
-
this.forwardLogoutToAuthService = createEffect(() => this.actions$.pipe(ofType(logout), tap
|
|
2668
|
+
.pipe(map(() => loggedOut())));
|
|
2669
|
+
this.forwardLogoutToAuthService = createEffect(() => this.actions$.pipe(ofType(logout), tap(() => {
|
|
2705
2670
|
// Perform the logout
|
|
2706
2671
|
this.dbxAuthService.logOut();
|
|
2707
2672
|
})), { dispatch: false });
|
|
2708
2673
|
// MARK: Auth
|
|
2709
2674
|
this.setUserIdentifier = createEffect(() => this.dbxAuthService.userIdentifier$
|
|
2710
|
-
.pipe(map
|
|
2675
|
+
.pipe(map((id) => setUserIdentifier({ id }))));
|
|
2711
2676
|
this.setUserState = createEffect(() => this.dbxAuthService.authUserState$
|
|
2712
|
-
.pipe(map
|
|
2677
|
+
.pipe(map((state) => setUserState({ state }))));
|
|
2713
2678
|
this.setUserRoles = createEffect(() => this.dbxAuthService.authRoles$
|
|
2714
|
-
.pipe(map
|
|
2679
|
+
.pipe(map((roles) => setUserRoles({ roles: Array.from(roles !== null && roles !== void 0 ? roles : []) }))));
|
|
2715
2680
|
this.setUserIsOnboarded = createEffect(() => this.dbxAuthService.isOnboarded$
|
|
2716
|
-
.pipe(map
|
|
2681
|
+
.pipe(map((isOnboarded) => setUserIsOnboarded({ isOnboarded }))));
|
|
2717
2682
|
}
|
|
2718
2683
|
}
|
|
2719
2684
|
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 });
|
|
@@ -2768,7 +2733,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
2768
2733
|
* @returns
|
|
2769
2734
|
*/
|
|
2770
2735
|
function tapDetectChanges(cdRef, timeout = 0) {
|
|
2771
|
-
return tap
|
|
2736
|
+
return tap(() => setTimeout(() => safeDetectChanges(cdRef), timeout));
|
|
2772
2737
|
}
|
|
2773
2738
|
/**
|
|
2774
2739
|
* Triggers a detection change on the input view as long as the view has not been destroyed.
|
|
@@ -2793,7 +2758,7 @@ function safeMarkForCheck(cdRef) {
|
|
|
2793
2758
|
*/
|
|
2794
2759
|
function safeUseCdRef(cdRef, use) {
|
|
2795
2760
|
if (!cdRef.destroyed) {
|
|
2796
|
-
cdRef
|
|
2761
|
+
use(cdRef);
|
|
2797
2762
|
}
|
|
2798
2763
|
}
|
|
2799
2764
|
/**
|
|
@@ -2822,7 +2787,7 @@ function checkNgContentWrapperHasContent(ref) {
|
|
|
2822
2787
|
|
|
2823
2788
|
class DbxButton {
|
|
2824
2789
|
}
|
|
2825
|
-
function
|
|
2790
|
+
function provideDbxButton(sourceType) {
|
|
2826
2791
|
return [{
|
|
2827
2792
|
provide: DbxButton,
|
|
2828
2793
|
useExisting: forwardRef(() => sourceType)
|
|
@@ -3030,13 +2995,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
3030
2995
|
class DbxButtonDirective extends AbstractDbxButtonDirective {
|
|
3031
2996
|
}
|
|
3032
2997
|
DbxButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxButtonDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
3033
|
-
DbxButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: DbxButtonDirective, selector: "[dbxButton]", providers:
|
|
2998
|
+
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 });
|
|
3034
2999
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxButtonDirective, decorators: [{
|
|
3035
3000
|
type: Directive,
|
|
3036
3001
|
args: [{
|
|
3037
3002
|
selector: '[dbxButton]',
|
|
3038
3003
|
exportAs: 'dbxButton',
|
|
3039
|
-
providers:
|
|
3004
|
+
providers: provideDbxButton(DbxButtonDirective)
|
|
3040
3005
|
}]
|
|
3041
3006
|
}] });
|
|
3042
3007
|
|
|
@@ -3201,9 +3166,6 @@ class DateFromToTimePipe {
|
|
|
3201
3166
|
constructor(locale) {
|
|
3202
3167
|
this.locale = locale;
|
|
3203
3168
|
}
|
|
3204
|
-
transform(input, format, minutes) {
|
|
3205
|
-
return DateFromToTimePipe.formatFromTo(input, format, minutes, this.locale);
|
|
3206
|
-
}
|
|
3207
3169
|
static formatFromTo(input, format, minutes, locale) {
|
|
3208
3170
|
if (input) {
|
|
3209
3171
|
const date = toJsDate(input);
|
|
@@ -3213,6 +3175,9 @@ class DateFromToTimePipe {
|
|
|
3213
3175
|
}
|
|
3214
3176
|
return undefined;
|
|
3215
3177
|
}
|
|
3178
|
+
transform(input, format, minutes) {
|
|
3179
|
+
return DateFromToTimePipe.formatFromTo(input, format, minutes, this.locale);
|
|
3180
|
+
}
|
|
3216
3181
|
}
|
|
3217
3182
|
DateFromToTimePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DateFromToTimePipe, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
3218
3183
|
DateFromToTimePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DateFromToTimePipe, name: "dateFromPlusTo" });
|
|
@@ -3373,18 +3338,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
3373
3338
|
} });
|
|
3374
3339
|
|
|
3375
3340
|
class DateDistancePipe {
|
|
3376
|
-
transform(input,
|
|
3341
|
+
transform(input, inputTo, unavailable = 'Not Available') {
|
|
3377
3342
|
if (input) {
|
|
3378
|
-
const
|
|
3379
|
-
if (useDefaultTo) {
|
|
3380
|
-
to = new Date();
|
|
3381
|
-
}
|
|
3343
|
+
const to = inputTo !== null && inputTo !== void 0 ? inputTo : new Date();
|
|
3382
3344
|
const from = ToJsDatePipe.toJsDate(input);
|
|
3383
3345
|
const fromStart = startOfDay(from);
|
|
3384
3346
|
const toStart = startOfDay(to);
|
|
3385
3347
|
if (isSameDay(fromStart, toStart)) {
|
|
3386
3348
|
let text;
|
|
3387
|
-
if (
|
|
3349
|
+
if (!inputTo || isSameDay(from, new Date())) {
|
|
3388
3350
|
text = 'Today';
|
|
3389
3351
|
}
|
|
3390
3352
|
else {
|
|
@@ -3582,7 +3544,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
3582
3544
|
class AbstractFilterSourceConnectorDirective {
|
|
3583
3545
|
constructor() {
|
|
3584
3546
|
this._source = new BehaviorSubject(undefined);
|
|
3585
|
-
this.filter$ = this._source.pipe(switchMap
|
|
3547
|
+
this.filter$ = this._source.pipe(switchMap(x => { var _a; return (_a = x === null || x === void 0 ? void 0 : x.filter$) !== null && _a !== void 0 ? _a : of(undefined); }), filterMaybe(), shareReplay(1));
|
|
3586
3548
|
}
|
|
3587
3549
|
ngOnDestroy() {
|
|
3588
3550
|
this._source.complete();
|
|
@@ -3600,7 +3562,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
3600
3562
|
/**
|
|
3601
3563
|
* Angular provider convenience function for a FilterSource.
|
|
3602
3564
|
*/
|
|
3603
|
-
function
|
|
3565
|
+
function provideFilterSource(sourceType) {
|
|
3604
3566
|
return [{
|
|
3605
3567
|
provide: FilterSource,
|
|
3606
3568
|
useExisting: forwardRef(() => sourceType)
|
|
@@ -3609,7 +3571,7 @@ function ProvideFilterSource(sourceType) {
|
|
|
3609
3571
|
/**
|
|
3610
3572
|
* Angular provider convenience function for a FilterSourceConnector.
|
|
3611
3573
|
*/
|
|
3612
|
-
function
|
|
3574
|
+
function provideFilterSourceConnector(sourceType) {
|
|
3613
3575
|
return [{
|
|
3614
3576
|
provide: FilterSourceConnector,
|
|
3615
3577
|
useExisting: forwardRef(() => sourceType)
|
|
@@ -3626,16 +3588,16 @@ class DbxFilterSourceConnectorDirective extends AbstractFilterSourceConnectorDir
|
|
|
3626
3588
|
}
|
|
3627
3589
|
DbxFilterSourceConnectorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxFilterSourceConnectorDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
3628
3590
|
DbxFilterSourceConnectorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: DbxFilterSourceConnectorDirective, selector: "[dbxFilterSourceConnector]", providers: [
|
|
3629
|
-
...
|
|
3630
|
-
...
|
|
3591
|
+
...provideFilterSource(DbxFilterSourceConnectorDirective),
|
|
3592
|
+
...provideFilterSourceConnector(DbxFilterSourceConnectorDirective)
|
|
3631
3593
|
], usesInheritance: true, ngImport: i0 });
|
|
3632
3594
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxFilterSourceConnectorDirective, decorators: [{
|
|
3633
3595
|
type: Directive,
|
|
3634
3596
|
args: [{
|
|
3635
3597
|
selector: '[dbxFilterSourceConnector]',
|
|
3636
3598
|
providers: [
|
|
3637
|
-
...
|
|
3638
|
-
...
|
|
3599
|
+
...provideFilterSource(DbxFilterSourceConnectorDirective),
|
|
3600
|
+
...provideFilterSourceConnector(DbxFilterSourceConnectorDirective)
|
|
3639
3601
|
]
|
|
3640
3602
|
}]
|
|
3641
3603
|
}] });
|
|
@@ -3666,7 +3628,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
3666
3628
|
class DbxFilterMapSourceDirective extends AbstractDbxFilterMapInstanceDirective {
|
|
3667
3629
|
constructor() {
|
|
3668
3630
|
super(...arguments);
|
|
3669
|
-
this.filter$ = this.instance$.pipe(switchMap
|
|
3631
|
+
this.filter$ = this.instance$.pipe(switchMap(x => x.filter$));
|
|
3670
3632
|
}
|
|
3671
3633
|
get key() {
|
|
3672
3634
|
return this._key.value;
|
|
@@ -3675,12 +3637,12 @@ class DbxFilterMapSourceDirective extends AbstractDbxFilterMapInstanceDirective
|
|
|
3675
3637
|
this._key.next(key);
|
|
3676
3638
|
}
|
|
3677
3639
|
initWithFilter(filterObs) {
|
|
3678
|
-
this.instance$.pipe(first
|
|
3640
|
+
this.instance$.pipe(first()).subscribe((x) => x.initWithFilter(filterObs));
|
|
3679
3641
|
}
|
|
3680
3642
|
}
|
|
3681
3643
|
DbxFilterMapSourceDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxFilterMapSourceDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
3682
3644
|
DbxFilterMapSourceDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: DbxFilterMapSourceDirective, selector: "[dbxFilterMapSource]", inputs: { key: ["dbxFilterMapSource", "key"] }, providers: [
|
|
3683
|
-
...
|
|
3645
|
+
...provideFilterSource(DbxFilterMapSourceDirective)
|
|
3684
3646
|
], exportAs: ["dbxFilterMapSource"], usesInheritance: true, ngImport: i0 });
|
|
3685
3647
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxFilterMapSourceDirective, decorators: [{
|
|
3686
3648
|
type: Directive,
|
|
@@ -3688,7 +3650,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
3688
3650
|
selector: '[dbxFilterMapSource]',
|
|
3689
3651
|
exportAs: 'dbxFilterMapSource',
|
|
3690
3652
|
providers: [
|
|
3691
|
-
...
|
|
3653
|
+
...provideFilterSource(DbxFilterMapSourceDirective)
|
|
3692
3654
|
]
|
|
3693
3655
|
}]
|
|
3694
3656
|
}], propDecorators: { key: [{
|
|
@@ -3708,13 +3670,13 @@ class DbxFilterMapSourceConnectorDirective extends DbxFilterMapSourceDirective {
|
|
|
3708
3670
|
}
|
|
3709
3671
|
// MARK: FilterSourceConnector
|
|
3710
3672
|
connectWithSource(filterSource) {
|
|
3711
|
-
this.instance$.pipe(first
|
|
3673
|
+
this.instance$.pipe(first()).subscribe((x) => x.connectWithSource(filterSource));
|
|
3712
3674
|
}
|
|
3713
3675
|
}
|
|
3714
3676
|
DbxFilterMapSourceConnectorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxFilterMapSourceConnectorDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
3715
3677
|
DbxFilterMapSourceConnectorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: DbxFilterMapSourceConnectorDirective, selector: "[dbxFilterMapSourceConnector]", inputs: { key: ["dbxFilterMapSourceConnector", "key"] }, providers: [
|
|
3716
|
-
...
|
|
3717
|
-
...
|
|
3678
|
+
...provideFilterSource(DbxFilterMapSourceConnectorDirective),
|
|
3679
|
+
...provideFilterSourceConnector(DbxFilterMapSourceConnectorDirective)
|
|
3718
3680
|
], exportAs: ["dbxFilterMapSourceConnector"], usesInheritance: true, ngImport: i0 });
|
|
3719
3681
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxFilterMapSourceConnectorDirective, decorators: [{
|
|
3720
3682
|
type: Directive,
|
|
@@ -3722,8 +3684,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
3722
3684
|
selector: '[dbxFilterMapSourceConnector]',
|
|
3723
3685
|
exportAs: 'dbxFilterMapSourceConnector',
|
|
3724
3686
|
providers: [
|
|
3725
|
-
...
|
|
3726
|
-
...
|
|
3687
|
+
...provideFilterSource(DbxFilterMapSourceConnectorDirective),
|
|
3688
|
+
...provideFilterSourceConnector(DbxFilterMapSourceConnectorDirective)
|
|
3727
3689
|
]
|
|
3728
3690
|
}]
|
|
3729
3691
|
}], propDecorators: { key: [{
|
|
@@ -3759,12 +3721,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
3759
3721
|
class DbxFilterSourceDirective extends AbstractFilterSourceDirective {
|
|
3760
3722
|
}
|
|
3761
3723
|
DbxFilterSourceDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxFilterSourceDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
3762
|
-
DbxFilterSourceDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: DbxFilterSourceDirective, selector: "[dbxFilterSource]", providers:
|
|
3724
|
+
DbxFilterSourceDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: DbxFilterSourceDirective, selector: "[dbxFilterSource]", providers: provideFilterSource(DbxFilterSourceDirective), usesInheritance: true, ngImport: i0 });
|
|
3763
3725
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxFilterSourceDirective, decorators: [{
|
|
3764
3726
|
type: Directive,
|
|
3765
3727
|
args: [{
|
|
3766
3728
|
selector: '[dbxFilterSource]',
|
|
3767
|
-
providers:
|
|
3729
|
+
providers: provideFilterSource(DbxFilterSourceDirective)
|
|
3768
3730
|
}]
|
|
3769
3731
|
}] });
|
|
3770
3732
|
|
|
@@ -3895,7 +3857,7 @@ class DbxInjectionInstance {
|
|
|
3895
3857
|
const { init, injector: inputInjector, providers, ngModuleRef, componentClass, data } = config;
|
|
3896
3858
|
let injector;
|
|
3897
3859
|
const parentInjector = inputInjector !== null && inputInjector !== void 0 ? inputInjector : this._injector;
|
|
3898
|
-
if (
|
|
3860
|
+
if (providers || data) {
|
|
3899
3861
|
injector = Injector.create({
|
|
3900
3862
|
parent: parentInjector,
|
|
3901
3863
|
providers: mergeArrayOrValueIntoArray([{
|
|
@@ -4002,7 +3964,7 @@ class DbxInjectionContext {
|
|
|
4002
3964
|
/**
|
|
4003
3965
|
* Allows a directive to provide a formly context and form.
|
|
4004
3966
|
*/
|
|
4005
|
-
function
|
|
3967
|
+
function provideDbxInjectionContext(type) {
|
|
4006
3968
|
return [{
|
|
4007
3969
|
provide: DbxInjectionContext,
|
|
4008
3970
|
useExisting: type
|
|
@@ -4117,12 +4079,12 @@ class DbxInjectionContextDirective {
|
|
|
4117
4079
|
}
|
|
4118
4080
|
}
|
|
4119
4081
|
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 });
|
|
4120
|
-
DbxInjectionContextDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: DbxInjectionContextDirective, selector: "[dbxInjectionContext]", inputs: { config: "config" }, providers:
|
|
4082
|
+
DbxInjectionContextDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: DbxInjectionContextDirective, selector: "[dbxInjectionContext]", inputs: { config: "config" }, providers: provideDbxInjectionContext(DbxInjectionContextDirective), ngImport: i0 });
|
|
4121
4083
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxInjectionContextDirective, decorators: [{
|
|
4122
4084
|
type: Directive,
|
|
4123
4085
|
args: [{
|
|
4124
4086
|
selector: '[dbxInjectionContext]',
|
|
4125
|
-
providers:
|
|
4087
|
+
providers: provideDbxInjectionContext(DbxInjectionContextDirective)
|
|
4126
4088
|
}]
|
|
4127
4089
|
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i0.TemplateRef }, { type: i0.ViewContainerRef }]; }, propDecorators: { config: [{
|
|
4128
4090
|
type: Input
|
|
@@ -4208,7 +4170,7 @@ class LockSetComponentStore extends ComponentStore {
|
|
|
4208
4170
|
}
|
|
4209
4171
|
}
|
|
4210
4172
|
setParentLockSet(obs) {
|
|
4211
|
-
this.lockSet.setParentLockSet(asObservable(obs).pipe(map
|
|
4173
|
+
this.lockSet.setParentLockSet(asObservable(obs).pipe(map(x => x === null || x === void 0 ? void 0 : x.lockSet)));
|
|
4212
4174
|
}
|
|
4213
4175
|
addLock(key, obs) {
|
|
4214
4176
|
this.lockSet.addLock(key, obs);
|
|
@@ -4432,7 +4394,7 @@ class StringStorageAccessor {
|
|
|
4432
4394
|
});
|
|
4433
4395
|
}
|
|
4434
4396
|
all() {
|
|
4435
|
-
return this.allKeys().pipe(map(x => x.map(y => this._storage.getItem(y))), shareReplay(1));
|
|
4397
|
+
return this.allKeys().pipe(map(x => filterMaybeValues(x.map(y => this._storage.getItem(y)))), shareReplay(1));
|
|
4436
4398
|
}
|
|
4437
4399
|
allKeys() {
|
|
4438
4400
|
return new Observable((x) => {
|
|
@@ -4586,5 +4548,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
4586
4548
|
* Generated bundle index. Do not edit.
|
|
4587
4549
|
*/
|
|
4588
4550
|
|
|
4589
|
-
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,
|
|
4551
|
+
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 };
|
|
4590
4552
|
//# sourceMappingURL=dereekb-dbx-core.mjs.map
|