@dereekb/dbx-core 13.4.1 → 13.5.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/fesm2022/dereekb-dbx-core.mjs +611 -465
- package/fesm2022/dereekb-dbx-core.mjs.map +1 -1
- package/package.json +7 -7
- package/types/dereekb-dbx-core.d.ts +236 -70
|
@@ -27,6 +27,9 @@ import { formatDate } from '@angular/common';
|
|
|
27
27
|
* @example
|
|
28
28
|
* // Clean up a destroy function directly:
|
|
29
29
|
* clean(() => resource.release());
|
|
30
|
+
*
|
|
31
|
+
* @param input - The Destroyable object or destroy function to register for cleanup.
|
|
32
|
+
* @returns The same input, for chaining.
|
|
30
33
|
*/
|
|
31
34
|
function clean(input) {
|
|
32
35
|
const destroyRef = inject(DestroyRef);
|
|
@@ -51,6 +54,9 @@ function clean(input) {
|
|
|
51
54
|
* @example
|
|
52
55
|
* // Complete a ReplaySubject when the component is destroyed:
|
|
53
56
|
* readonly events$ = completeOnDestroy(new ReplaySubject<Event>(1));
|
|
57
|
+
*
|
|
58
|
+
* @param input - The Subject to register for completion on destroy.
|
|
59
|
+
* @returns The same input, for chaining.
|
|
54
60
|
*/
|
|
55
61
|
function completeOnDestroy(input) {
|
|
56
62
|
clean(() => input.complete());
|
|
@@ -70,6 +76,9 @@ function completeOnDestroy(input) {
|
|
|
70
76
|
* // Or create first, then set the subscription later:
|
|
71
77
|
* readonly _sub = cleanSubscription();
|
|
72
78
|
* this._sub.subscription = obs$.subscribe(handler);
|
|
79
|
+
*
|
|
80
|
+
* @param sub - Optional subscription or getter to wrap.
|
|
81
|
+
* @returns A SubscriptionObject that is automatically destroyed when the context is destroyed.
|
|
73
82
|
*/
|
|
74
83
|
function cleanSubscription(sub) {
|
|
75
84
|
const subscription = getValueFromGetter(sub);
|
|
@@ -83,7 +92,8 @@ function cleanSubscription(sub) {
|
|
|
83
92
|
*
|
|
84
93
|
* Must be run within an Angular injection context.
|
|
85
94
|
*
|
|
86
|
-
* @param config Optional configuration for destruction behavior and callbacks.
|
|
95
|
+
* @param config - Optional configuration for destruction behavior and callbacks.
|
|
96
|
+
* @returns A CleanLockSet that is automatically destroyed when the context is destroyed.
|
|
87
97
|
*
|
|
88
98
|
* @example
|
|
89
99
|
* // Create a simple lockset:
|
|
@@ -150,6 +160,9 @@ function cleanWithLockSet(lockSet, onDestroy) {
|
|
|
150
160
|
* // Create first, then set the subscription later:
|
|
151
161
|
* readonly _sub = cleanSubscriptionWithLockSet({ lockSet: this.lockSet });
|
|
152
162
|
* this._sub.subscription = obs$.subscribe(handler);
|
|
163
|
+
*
|
|
164
|
+
* @param input - Configuration specifying the lock set and optional initial subscription.
|
|
165
|
+
* @returns A SubscriptionObject that is destroyed when the context is destroyed and the lock set unlocks.
|
|
153
166
|
*/
|
|
154
167
|
function cleanSubscriptionWithLockSet(input) {
|
|
155
168
|
const subscription = getValueFromGetter(input.sub);
|
|
@@ -171,6 +184,9 @@ function cleanSubscriptionWithLockSet(input) {
|
|
|
171
184
|
* // Create empty, then set the observable source later:
|
|
172
185
|
* readonly context = cleanLoadingContext<MyData>();
|
|
173
186
|
* this.context.obs = this.data$;
|
|
187
|
+
*
|
|
188
|
+
* @param input - Optional loading state context input configuration.
|
|
189
|
+
* @returns A mutable loading state context that is automatically destroyed on cleanup.
|
|
174
190
|
*/
|
|
175
191
|
function cleanLoadingContext(input) {
|
|
176
192
|
return clean(loadingStateContext(input));
|
|
@@ -188,6 +204,9 @@ function cleanLoadingContext(input) {
|
|
|
188
204
|
* // Create empty, then set the observable source later:
|
|
189
205
|
* readonly listContext = cleanListLoadingContext<MyItem>();
|
|
190
206
|
* this.listContext.obs = this.items$;
|
|
207
|
+
*
|
|
208
|
+
* @param input - Optional list loading state context input configuration.
|
|
209
|
+
* @returns A mutable list loading state context that is automatically destroyed on cleanup.
|
|
191
210
|
*/
|
|
192
211
|
function cleanListLoadingContext(input) {
|
|
193
212
|
return clean(listLoadingStateContext(input));
|
|
@@ -206,6 +225,9 @@ function cleanListLoadingContext(input) {
|
|
|
206
225
|
* // Create first, then set the destroy function later:
|
|
207
226
|
* readonly _destroy = cleanDestroy();
|
|
208
227
|
* this._destroy.setDestroyFunction(() => resource.release());
|
|
228
|
+
*
|
|
229
|
+
* @param input - Optional destroy function to wrap.
|
|
230
|
+
* @returns A DestroyFunctionObject that will be automatically destroyed when the context is destroyed.
|
|
209
231
|
*/
|
|
210
232
|
function cleanDestroy(input) {
|
|
211
233
|
const destroyFunction = new DestroyFunctionObject(input);
|
|
@@ -460,7 +482,7 @@ class DbxActionContextStoreSourceInstance {
|
|
|
460
482
|
*/
|
|
461
483
|
class DbxActionAutoModifyDirective {
|
|
462
484
|
source = inject((DbxActionContextStoreSourceInstance), { host: true });
|
|
463
|
-
autoModifyEnabled = input(true, { ...(ngDevMode ? { debugName: "autoModifyEnabled" } : {}), alias: 'dbxActionAutoModify', transform: isNotFalse });
|
|
485
|
+
autoModifyEnabled = input(true, { ...(ngDevMode ? { debugName: "autoModifyEnabled" } : /* istanbul ignore next */ {}), alias: 'dbxActionAutoModify', transform: isNotFalse });
|
|
464
486
|
markAsModified$ = toObservable(this.autoModifyEnabled).pipe(distinctUntilChanged(), switchMap((x) => {
|
|
465
487
|
let obs;
|
|
466
488
|
if (x) {
|
|
@@ -479,10 +501,10 @@ class DbxActionAutoModifyDirective {
|
|
|
479
501
|
})
|
|
480
502
|
});
|
|
481
503
|
}
|
|
482
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
483
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.
|
|
504
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionAutoModifyDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
505
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.3", type: DbxActionAutoModifyDirective, isStandalone: true, selector: "dbxActionAutoModify, [dbxActionAutoModify]", inputs: { autoModifyEnabled: { classPropertyName: "autoModifyEnabled", publicName: "dbxActionAutoModify", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
484
506
|
}
|
|
485
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
507
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionAutoModifyDirective, decorators: [{
|
|
486
508
|
type: Directive,
|
|
487
509
|
args: [{
|
|
488
510
|
selector: 'dbxActionAutoModify, [dbxActionAutoModify]',
|
|
@@ -529,14 +551,14 @@ const DBX_ACTION_AUTO_TRIGGER_INSTANT_TRIGGER_DEBOUNCE = 10;
|
|
|
529
551
|
*/
|
|
530
552
|
class DbxActionAutoTriggerDirective {
|
|
531
553
|
source = inject((DbxActionContextStoreSourceInstance), { host: true });
|
|
532
|
-
triggerDebounce = input(undefined, ...(ngDevMode ? [{ debugName: "triggerDebounce" }] : []));
|
|
533
|
-
triggerThrottle = input(undefined, ...(ngDevMode ? [{ debugName: "triggerThrottle" }] : []));
|
|
534
|
-
triggerErrorThrottle = input(DEFAULT_ERROR_THROTTLE_MS, { ...(ngDevMode ? { debugName: "triggerErrorThrottle" } : {}), transform: (x) => x ?? DEFAULT_ERROR_THROTTLE_MS });
|
|
535
|
-
maxErrorsForThrottle = input(MAX_ERRORS_TO_THROTTLE_ON, { ...(ngDevMode ? { debugName: "maxErrorsForThrottle" } : {}), transform: (x) => x ?? MAX_ERRORS_TO_THROTTLE_ON });
|
|
536
|
-
triggerLimit = input(...(ngDevMode ? [undefined, { debugName: "triggerLimit" }] : []));
|
|
537
|
-
triggerEnabled = input(true, { ...(ngDevMode ? { debugName: "triggerEnabled" } : {}), alias: 'dbxActionAutoTrigger', transform: isNotFalse });
|
|
538
|
-
useFastTriggerPreset = input(false, { ...(ngDevMode ? { debugName: "useFastTriggerPreset" } : {}), transform: isDefinedAndNotFalse });
|
|
539
|
-
useInstantTriggerPreset = input(false, { ...(ngDevMode ? { debugName: "useInstantTriggerPreset" } : {}), transform: isDefinedAndNotFalse });
|
|
554
|
+
triggerDebounce = input(undefined, ...(ngDevMode ? [{ debugName: "triggerDebounce" }] : /* istanbul ignore next */ []));
|
|
555
|
+
triggerThrottle = input(undefined, ...(ngDevMode ? [{ debugName: "triggerThrottle" }] : /* istanbul ignore next */ []));
|
|
556
|
+
triggerErrorThrottle = input(DEFAULT_ERROR_THROTTLE_MS, { ...(ngDevMode ? { debugName: "triggerErrorThrottle" } : /* istanbul ignore next */ {}), transform: (x) => x ?? DEFAULT_ERROR_THROTTLE_MS });
|
|
557
|
+
maxErrorsForThrottle = input(MAX_ERRORS_TO_THROTTLE_ON, { ...(ngDevMode ? { debugName: "maxErrorsForThrottle" } : /* istanbul ignore next */ {}), transform: (x) => x ?? MAX_ERRORS_TO_THROTTLE_ON });
|
|
558
|
+
triggerLimit = input(...(ngDevMode ? [undefined, { debugName: "triggerLimit" }] : /* istanbul ignore next */ []));
|
|
559
|
+
triggerEnabled = input(true, { ...(ngDevMode ? { debugName: "triggerEnabled" } : /* istanbul ignore next */ {}), alias: 'dbxActionAutoTrigger', transform: isNotFalse });
|
|
560
|
+
useFastTriggerPreset = input(false, { ...(ngDevMode ? { debugName: "useFastTriggerPreset" } : /* istanbul ignore next */ {}), transform: isDefinedAndNotFalse });
|
|
561
|
+
useInstantTriggerPreset = input(false, { ...(ngDevMode ? { debugName: "useInstantTriggerPreset" } : /* istanbul ignore next */ {}), transform: isDefinedAndNotFalse });
|
|
540
562
|
triggerDebounceSignal = computed(() => {
|
|
541
563
|
let debounce = this.triggerDebounce();
|
|
542
564
|
if (debounce == null) {
|
|
@@ -550,7 +572,7 @@ class DbxActionAutoTriggerDirective {
|
|
|
550
572
|
}
|
|
551
573
|
}
|
|
552
574
|
return debounce ?? DEFAULT_DEBOUNCE_MS;
|
|
553
|
-
}, ...(ngDevMode ? [{ debugName: "triggerDebounceSignal" }] : []));
|
|
575
|
+
}, ...(ngDevMode ? [{ debugName: "triggerDebounceSignal" }] : /* istanbul ignore next */ []));
|
|
554
576
|
triggerThrottleSignal = computed(() => {
|
|
555
577
|
let throttle = this.triggerThrottle();
|
|
556
578
|
if (throttle == null) {
|
|
@@ -564,8 +586,8 @@ class DbxActionAutoTriggerDirective {
|
|
|
564
586
|
}
|
|
565
587
|
}
|
|
566
588
|
return throttle ?? DEFAULT_THROTTLE_MS;
|
|
567
|
-
}, ...(ngDevMode ? [{ debugName: "triggerThrottleSignal" }] : []));
|
|
568
|
-
triggerCountSignal = signal(0, ...(ngDevMode ? [{ debugName: "triggerCountSignal" }] : []));
|
|
589
|
+
}, ...(ngDevMode ? [{ debugName: "triggerThrottleSignal" }] : /* istanbul ignore next */ []));
|
|
590
|
+
triggerCountSignal = signal(0, ...(ngDevMode ? [{ debugName: "triggerCountSignal" }] : /* istanbul ignore next */ []));
|
|
569
591
|
_errorCount$ = this.source.errorCountSinceLastSuccess$;
|
|
570
592
|
_triggerCount$ = this.source.isModifiedAndCanTriggerUpdates$.pipe(
|
|
571
593
|
// each time something is triggered the
|
|
@@ -609,10 +631,10 @@ class DbxActionAutoTriggerDirective {
|
|
|
609
631
|
})
|
|
610
632
|
});
|
|
611
633
|
}
|
|
612
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
613
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.
|
|
634
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionAutoTriggerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
635
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.3", type: DbxActionAutoTriggerDirective, isStandalone: true, selector: "dbxActionAutoTrigger,[dbxActionAutoTrigger]", inputs: { triggerDebounce: { classPropertyName: "triggerDebounce", publicName: "triggerDebounce", isSignal: true, isRequired: false, transformFunction: null }, triggerThrottle: { classPropertyName: "triggerThrottle", publicName: "triggerThrottle", isSignal: true, isRequired: false, transformFunction: null }, triggerErrorThrottle: { classPropertyName: "triggerErrorThrottle", publicName: "triggerErrorThrottle", isSignal: true, isRequired: false, transformFunction: null }, maxErrorsForThrottle: { classPropertyName: "maxErrorsForThrottle", publicName: "maxErrorsForThrottle", isSignal: true, isRequired: false, transformFunction: null }, triggerLimit: { classPropertyName: "triggerLimit", publicName: "triggerLimit", isSignal: true, isRequired: false, transformFunction: null }, triggerEnabled: { classPropertyName: "triggerEnabled", publicName: "dbxActionAutoTrigger", isSignal: true, isRequired: false, transformFunction: null }, useFastTriggerPreset: { classPropertyName: "useFastTriggerPreset", publicName: "useFastTriggerPreset", isSignal: true, isRequired: false, transformFunction: null }, useInstantTriggerPreset: { classPropertyName: "useInstantTriggerPreset", publicName: "useInstantTriggerPreset", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
614
636
|
}
|
|
615
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
637
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionAutoTriggerDirective, decorators: [{
|
|
616
638
|
type: Directive,
|
|
617
639
|
args: [{
|
|
618
640
|
selector: 'dbxActionAutoTrigger,[dbxActionAutoTrigger]',
|
|
@@ -734,7 +756,9 @@ function isIdleActionState(actionState) {
|
|
|
734
756
|
case DbxActionState.REJECTED:
|
|
735
757
|
case DbxActionState.RESOLVED:
|
|
736
758
|
return true;
|
|
737
|
-
|
|
759
|
+
case DbxActionState.TRIGGERED:
|
|
760
|
+
case DbxActionState.VALUE_READY:
|
|
761
|
+
case DbxActionState.WORKING:
|
|
738
762
|
return false;
|
|
739
763
|
}
|
|
740
764
|
}
|
|
@@ -760,7 +784,9 @@ function loadingStateTypeForActionState(actionState) {
|
|
|
760
784
|
case DbxActionState.DISABLED:
|
|
761
785
|
loadingStateType = LoadingStateType.IDLE;
|
|
762
786
|
break;
|
|
763
|
-
|
|
787
|
+
case DbxActionState.TRIGGERED:
|
|
788
|
+
case DbxActionState.VALUE_READY:
|
|
789
|
+
case DbxActionState.WORKING:
|
|
764
790
|
loadingStateType = LoadingStateType.LOADING;
|
|
765
791
|
break;
|
|
766
792
|
}
|
|
@@ -893,7 +919,9 @@ function loadingStateForActionContextState(state) {
|
|
|
893
919
|
case DbxActionState.DISABLED:
|
|
894
920
|
loadingState = idleLoadingState();
|
|
895
921
|
break;
|
|
896
|
-
|
|
922
|
+
case DbxActionState.TRIGGERED:
|
|
923
|
+
case DbxActionState.VALUE_READY:
|
|
924
|
+
case DbxActionState.WORKING:
|
|
897
925
|
loadingState = beginLoading(state.workProgress != null ? { loadingProgress: state.workProgress } : undefined);
|
|
898
926
|
break;
|
|
899
927
|
}
|
|
@@ -1062,7 +1090,7 @@ class ActionContextStore extends ComponentStore {
|
|
|
1062
1090
|
*
|
|
1063
1091
|
* Updates every state update instead of when the value changes.
|
|
1064
1092
|
*/
|
|
1065
|
-
isModifiedAndCanTriggerUpdates$ = this.state$.pipe(map((x) => actionContextIsModifiedAndCanTrigger(x), shareReplay(1))
|
|
1093
|
+
isModifiedAndCanTriggerUpdates$ = this.state$.pipe(map((x) => actionContextIsModifiedAndCanTrigger(x)), shareReplay(1));
|
|
1066
1094
|
/**
|
|
1067
1095
|
* Whether or not it can be triggered and modified.
|
|
1068
1096
|
*/
|
|
@@ -1148,14 +1176,15 @@ class ActionContextStore extends ComponentStore {
|
|
|
1148
1176
|
map((x) => x[0]), shareReplay(1));
|
|
1149
1177
|
}
|
|
1150
1178
|
// MARK: Cleanup
|
|
1179
|
+
// eslint-disable-next-line @angular-eslint/no-empty-lifecycle-method
|
|
1151
1180
|
ngOnDestroy() {
|
|
1152
1181
|
// do not call super.destroy here, to keep the component store from destroying itself.
|
|
1153
1182
|
// the lockset is configured to cleanup the component store.
|
|
1154
1183
|
}
|
|
1155
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1156
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
1184
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: ActionContextStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1185
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: ActionContextStore });
|
|
1157
1186
|
}
|
|
1158
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1187
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: ActionContextStore, decorators: [{
|
|
1159
1188
|
type: Injectable
|
|
1160
1189
|
}], ctorParameters: () => [] });
|
|
1161
1190
|
function updateIsSameOnActionContextState(state, isSame) {
|
|
@@ -1236,6 +1265,7 @@ class DbxActionContextBaseSource {
|
|
|
1236
1265
|
}
|
|
1237
1266
|
/**
|
|
1238
1267
|
* Triggers the context and then readies the value.
|
|
1268
|
+
*
|
|
1239
1269
|
* @param value
|
|
1240
1270
|
*/
|
|
1241
1271
|
triggerWithValue(value) {
|
|
@@ -1312,10 +1342,10 @@ class DbxActionContextMachineAsService extends DbxActionContextMachine {
|
|
|
1312
1342
|
});
|
|
1313
1343
|
clean(() => this.destroy());
|
|
1314
1344
|
}
|
|
1315
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1316
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
1345
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionContextMachineAsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1346
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionContextMachineAsService });
|
|
1317
1347
|
}
|
|
1318
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1348
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionContextMachineAsService, decorators: [{
|
|
1319
1349
|
type: Injectable
|
|
1320
1350
|
}], ctorParameters: () => [] });
|
|
1321
1351
|
|
|
@@ -1419,10 +1449,10 @@ class DbxActionDirective extends DbxActionContextBaseSource {
|
|
|
1419
1449
|
});
|
|
1420
1450
|
});
|
|
1421
1451
|
}
|
|
1422
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1423
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
1452
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1453
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.3", type: DbxActionDirective, isStandalone: true, selector: "dbx-action,[dbxAction]", providers: provideActionStoreSource(DbxActionDirective), exportAs: ["action", "dbxAction"], usesInheritance: true, ngImport: i0 });
|
|
1424
1454
|
}
|
|
1425
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1455
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionDirective, decorators: [{
|
|
1426
1456
|
type: Directive,
|
|
1427
1457
|
args: [{
|
|
1428
1458
|
selector: 'dbx-action,[dbxAction]',
|
|
@@ -1454,12 +1484,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
1454
1484
|
* @see {@link SecondaryActionContextStoreSource}
|
|
1455
1485
|
*/
|
|
1456
1486
|
class DbxActionSourceDirective {
|
|
1457
|
-
dbxActionSource = input(...(ngDevMode ? [undefined, { debugName: "dbxActionSource" }] : []));
|
|
1487
|
+
dbxActionSource = input(...(ngDevMode ? [undefined, { debugName: "dbxActionSource" }] : /* istanbul ignore next */ []));
|
|
1458
1488
|
store$ = toObservable(this.dbxActionSource).pipe(filterMaybe(), switchMap((x) => actionContextStoreSourcePipe(x.store$)));
|
|
1459
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1460
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.
|
|
1489
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionSourceDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1490
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.3", type: DbxActionSourceDirective, isStandalone: true, selector: "[dbxActionSource]", inputs: { dbxActionSource: { classPropertyName: "dbxActionSource", publicName: "dbxActionSource", isSignal: true, isRequired: false, transformFunction: null } }, providers: provideSecondaryActionStoreSource(DbxActionSourceDirective), ngImport: i0 });
|
|
1461
1491
|
}
|
|
1462
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1492
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionSourceDirective, decorators: [{
|
|
1463
1493
|
type: Directive,
|
|
1464
1494
|
args: [{
|
|
1465
1495
|
selector: '[dbxActionSource]',
|
|
@@ -1492,10 +1522,10 @@ class DbxActionContextLoggerDirective {
|
|
|
1492
1522
|
})
|
|
1493
1523
|
});
|
|
1494
1524
|
}
|
|
1495
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1496
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
1525
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionContextLoggerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1526
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.3", type: DbxActionContextLoggerDirective, isStandalone: true, selector: "[dbxActionLogger],[dbxActionContextLogger]", ngImport: i0 });
|
|
1497
1527
|
}
|
|
1498
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1528
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionContextLoggerDirective, decorators: [{
|
|
1499
1529
|
type: Directive,
|
|
1500
1530
|
args: [{
|
|
1501
1531
|
selector: '[dbxActionLogger],[dbxActionContextLogger]',
|
|
@@ -1596,15 +1626,15 @@ function actionContextStoreSourceMap() {
|
|
|
1596
1626
|
*/
|
|
1597
1627
|
class DbxActionContextMapDirective {
|
|
1598
1628
|
actionContextStoreSourceMap = clean(inject(ActionContextStoreSourceMap));
|
|
1599
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1600
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
1629
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionContextMapDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1630
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.3", type: DbxActionContextMapDirective, isStandalone: true, selector: "[dbxActionContextMap]", providers: [
|
|
1601
1631
|
{
|
|
1602
1632
|
provide: ActionContextStoreSourceMap,
|
|
1603
1633
|
useFactory: actionContextStoreSourceMap
|
|
1604
1634
|
}
|
|
1605
1635
|
], exportAs: ["actionMap"], ngImport: i0 });
|
|
1606
1636
|
}
|
|
1607
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1637
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionContextMapDirective, decorators: [{
|
|
1608
1638
|
type: Directive,
|
|
1609
1639
|
args: [{
|
|
1610
1640
|
selector: '[dbxActionContextMap]',
|
|
@@ -1645,13 +1675,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
1645
1675
|
*/
|
|
1646
1676
|
class DbxActionFromMapDirective {
|
|
1647
1677
|
_actionContextStoreSourceMap = inject(ActionContextStoreSourceMap);
|
|
1648
|
-
key = input(undefined, { ...(ngDevMode ? { debugName: "key" } : {}), alias: 'dbxActionFromMap' });
|
|
1678
|
+
key = input(undefined, { ...(ngDevMode ? { debugName: "key" } : /* istanbul ignore next */ {}), alias: 'dbxActionFromMap' });
|
|
1649
1679
|
key$ = toObservable(this.key);
|
|
1650
1680
|
store$ = this.key$.pipe(filterMaybe(), switchMap((x) => this._actionContextStoreSourceMap.sourceForKey(x).store$));
|
|
1651
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1652
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.
|
|
1681
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionFromMapDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1682
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.3", type: DbxActionFromMapDirective, isStandalone: true, selector: "[dbxActionFromMap]", inputs: { key: { classPropertyName: "key", publicName: "dbxActionFromMap", isSignal: true, isRequired: false, transformFunction: null } }, providers: provideSecondaryActionStoreSource(DbxActionFromMapDirective), ngImport: i0 });
|
|
1653
1683
|
}
|
|
1654
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1684
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionFromMapDirective, decorators: [{
|
|
1655
1685
|
type: Directive,
|
|
1656
1686
|
args: [{
|
|
1657
1687
|
selector: '[dbxActionFromMap]',
|
|
@@ -1682,7 +1712,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
1682
1712
|
class DbxActionMapSourceDirective {
|
|
1683
1713
|
_actionContextStoreSourceMap = inject(ActionContextStoreSourceMap);
|
|
1684
1714
|
source = inject(ActionContextStoreSource, { host: true });
|
|
1685
|
-
key = input(undefined, { ...(ngDevMode ? { debugName: "key" } : {}), alias: 'dbxActionMapSource' });
|
|
1715
|
+
key = input(undefined, { ...(ngDevMode ? { debugName: "key" } : /* istanbul ignore next */ {}), alias: 'dbxActionMapSource' });
|
|
1686
1716
|
_currentKey;
|
|
1687
1717
|
_keyEffect = effect(() => {
|
|
1688
1718
|
const nextKey = this.key();
|
|
@@ -1691,7 +1721,7 @@ class DbxActionMapSourceDirective {
|
|
|
1691
1721
|
}
|
|
1692
1722
|
this._currentKey = nextKey;
|
|
1693
1723
|
this._addToStore();
|
|
1694
|
-
}, ...(ngDevMode ? [{ debugName: "_keyEffect" }] : []));
|
|
1724
|
+
}, ...(ngDevMode ? [{ debugName: "_keyEffect" }] : /* istanbul ignore next */ []));
|
|
1695
1725
|
ngOnDestroy() {
|
|
1696
1726
|
this._removeFromToStore();
|
|
1697
1727
|
}
|
|
@@ -1705,10 +1735,10 @@ class DbxActionMapSourceDirective {
|
|
|
1705
1735
|
this._actionContextStoreSourceMap.removeStoreSource(this._currentKey);
|
|
1706
1736
|
}
|
|
1707
1737
|
}
|
|
1708
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1709
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.
|
|
1738
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionMapSourceDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1739
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.3", type: DbxActionMapSourceDirective, isStandalone: true, selector: "[dbxActionMapSource]", inputs: { key: { classPropertyName: "key", publicName: "dbxActionMapSource", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
1710
1740
|
}
|
|
1711
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1741
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionMapSourceDirective, decorators: [{
|
|
1712
1742
|
type: Directive,
|
|
1713
1743
|
args: [{
|
|
1714
1744
|
selector: '[dbxActionMapSource]',
|
|
@@ -1787,7 +1817,7 @@ const DEFAULT_ACTION_MAP_WORKING_DISABLED_KEY = 'action_map_working_disable';
|
|
|
1787
1817
|
class DbxActionMapWorkingDisableDirective {
|
|
1788
1818
|
_actionContextStoreSourceMap = inject(ActionContextStoreSourceMap);
|
|
1789
1819
|
source = inject(DbxActionContextStoreSourceInstance, { host: true });
|
|
1790
|
-
disabledKey = input(undefined, { ...(ngDevMode ? { debugName: "disabledKey" } : {}), alias: 'dbxActionMapWorkingDisable' });
|
|
1820
|
+
disabledKey = input(undefined, { ...(ngDevMode ? { debugName: "disabledKey" } : /* istanbul ignore next */ {}), alias: 'dbxActionMapWorkingDisable' });
|
|
1791
1821
|
areAnySourcesWorking$ = actionContextStoreSourceMapReader(this._actionContextStoreSourceMap.actionKeySourceMap$).checkAny((x) => x.isWorking$, false);
|
|
1792
1822
|
constructor() {
|
|
1793
1823
|
cleanSubscription(this.areAnySourcesWorking$.subscribe((x) => {
|
|
@@ -1797,10 +1827,10 @@ class DbxActionMapWorkingDisableDirective {
|
|
|
1797
1827
|
this.source.enable(this.disabledKey() || DEFAULT_ACTION_MAP_WORKING_DISABLED_KEY);
|
|
1798
1828
|
});
|
|
1799
1829
|
}
|
|
1800
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1801
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.
|
|
1830
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionMapWorkingDisableDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1831
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.3", type: DbxActionMapWorkingDisableDirective, isStandalone: true, selector: "[dbxActionMapWorkingDisable]", inputs: { disabledKey: { classPropertyName: "disabledKey", publicName: "dbxActionMapWorkingDisable", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
1802
1832
|
}
|
|
1803
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1833
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionMapWorkingDisableDirective, decorators: [{
|
|
1804
1834
|
type: Directive,
|
|
1805
1835
|
args: [{
|
|
1806
1836
|
selector: '[dbxActionMapWorkingDisable]',
|
|
@@ -1837,7 +1867,7 @@ const APP_ACTION_DISABLED_DIRECTIVE_KEY = 'dbx_action_disabled';
|
|
|
1837
1867
|
*/
|
|
1838
1868
|
class DbxActionDisabledDirective {
|
|
1839
1869
|
source = inject((DbxActionContextStoreSourceInstance), { host: true });
|
|
1840
|
-
disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : {}), alias: 'dbxActionDisabled', transform: (value) => value !== false });
|
|
1870
|
+
disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), alias: 'dbxActionDisabled', transform: (value) => value !== false });
|
|
1841
1871
|
disabled$ = toObservable(this.disabled);
|
|
1842
1872
|
constructor() {
|
|
1843
1873
|
cleanSubscription(this.disabled$.subscribe((x) => {
|
|
@@ -1845,10 +1875,10 @@ class DbxActionDisabledDirective {
|
|
|
1845
1875
|
}));
|
|
1846
1876
|
clean(() => this.source.enable(APP_ACTION_DISABLED_DIRECTIVE_KEY));
|
|
1847
1877
|
}
|
|
1848
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1849
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.
|
|
1878
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionDisabledDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1879
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.3", type: DbxActionDisabledDirective, isStandalone: true, selector: "[dbxActionDisabled]", inputs: { disabled: { classPropertyName: "disabled", publicName: "dbxActionDisabled", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
1850
1880
|
}
|
|
1851
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1881
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionDisabledDirective, decorators: [{
|
|
1852
1882
|
type: Directive,
|
|
1853
1883
|
args: [{
|
|
1854
1884
|
selector: '[dbxActionDisabled]',
|
|
@@ -1887,7 +1917,7 @@ const APP_ACTION_DISABLED_ON_SUCCESS_DIRECTIVE_KEY = 'dbx_action_disabled_on_suc
|
|
|
1887
1917
|
*/
|
|
1888
1918
|
class DbxActionDisabledOnSuccessDirective {
|
|
1889
1919
|
source = inject((DbxActionContextStoreSourceInstance), { host: true });
|
|
1890
|
-
disabledOnSuccess = input(true, { ...(ngDevMode ? { debugName: "disabledOnSuccess" } : {}), alias: 'dbxActionDisabledOnSuccess', transform: (value) => value !== false });
|
|
1920
|
+
disabledOnSuccess = input(true, { ...(ngDevMode ? { debugName: "disabledOnSuccess" } : /* istanbul ignore next */ {}), alias: 'dbxActionDisabledOnSuccess', transform: (value) => value !== false });
|
|
1891
1921
|
disabledOnSuccess$ = toObservable(this.disabledOnSuccess);
|
|
1892
1922
|
constructor() {
|
|
1893
1923
|
cleanSubscription(combineLatest([this.disabledOnSuccess$, this.source.isSuccess$]).subscribe(([disableOnSuccess, success]) => {
|
|
@@ -1895,10 +1925,10 @@ class DbxActionDisabledOnSuccessDirective {
|
|
|
1895
1925
|
}));
|
|
1896
1926
|
clean(() => this.source.enable(APP_ACTION_DISABLED_ON_SUCCESS_DIRECTIVE_KEY));
|
|
1897
1927
|
}
|
|
1898
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1899
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.
|
|
1928
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionDisabledOnSuccessDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1929
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.3", type: DbxActionDisabledOnSuccessDirective, isStandalone: true, selector: "[dbxActionDisabledOnSuccess]", inputs: { disabledOnSuccess: { classPropertyName: "disabledOnSuccess", publicName: "dbxActionDisabledOnSuccess", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
1900
1930
|
}
|
|
1901
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1931
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionDisabledOnSuccessDirective, decorators: [{
|
|
1902
1932
|
type: Directive,
|
|
1903
1933
|
args: [{
|
|
1904
1934
|
selector: '[dbxActionDisabledOnSuccess]',
|
|
@@ -2003,10 +2033,10 @@ class AbstractDbxActionHandlerDirective {
|
|
|
2003
2033
|
constructor() {
|
|
2004
2034
|
this._dbxActionHandlerInstance.init();
|
|
2005
2035
|
}
|
|
2006
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2007
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
2036
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: AbstractDbxActionHandlerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2037
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.3", type: AbstractDbxActionHandlerDirective, isStandalone: true, ngImport: i0 });
|
|
2008
2038
|
}
|
|
2009
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2039
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: AbstractDbxActionHandlerDirective, decorators: [{
|
|
2010
2040
|
type: Directive
|
|
2011
2041
|
}], ctorParameters: () => [] });
|
|
2012
2042
|
/**
|
|
@@ -2030,14 +2060,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
2030
2060
|
* @see {@link DbxActionHandlerValueDirective} for the simpler value/getter variant.
|
|
2031
2061
|
*/
|
|
2032
2062
|
class DbxActionHandlerDirective extends AbstractDbxActionHandlerDirective {
|
|
2033
|
-
handlerFunction = input.required({ ...(ngDevMode ? { debugName: "handlerFunction" } : {}), alias: 'dbxActionHandler' });
|
|
2063
|
+
handlerFunction = input.required({ ...(ngDevMode ? { debugName: "handlerFunction" } : /* istanbul ignore next */ {}), alias: 'dbxActionHandler' });
|
|
2034
2064
|
_handlerFunctionEffect = effect(() => {
|
|
2035
2065
|
this._dbxActionHandlerInstance.setHandlerFunction(this.handlerFunction());
|
|
2036
|
-
}, ...(ngDevMode ? [{ debugName: "_handlerFunctionEffect" }] : []));
|
|
2037
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2038
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.
|
|
2066
|
+
}, ...(ngDevMode ? [{ debugName: "_handlerFunctionEffect" }] : /* istanbul ignore next */ []));
|
|
2067
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionHandlerDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
2068
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.3", type: DbxActionHandlerDirective, isStandalone: true, selector: "[dbxActionHandler]", inputs: { handlerFunction: { classPropertyName: "handlerFunction", publicName: "dbxActionHandler", isSignal: true, isRequired: true, transformFunction: null } }, usesInheritance: true, ngImport: i0 });
|
|
2039
2069
|
}
|
|
2040
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2070
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionHandlerDirective, decorators: [{
|
|
2041
2071
|
type: Directive,
|
|
2042
2072
|
args: [{
|
|
2043
2073
|
selector: '[dbxActionHandler]',
|
|
@@ -2065,14 +2095,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
2065
2095
|
* @see {@link DbxActionHandlerDirective} for the full work-function variant.
|
|
2066
2096
|
*/
|
|
2067
2097
|
class DbxActionHandlerValueDirective extends AbstractDbxActionHandlerDirective {
|
|
2068
|
-
handlerValue = input.required({ ...(ngDevMode ? { debugName: "handlerValue" } : {}), alias: 'dbxActionHandlerValue' });
|
|
2098
|
+
handlerValue = input.required({ ...(ngDevMode ? { debugName: "handlerValue" } : /* istanbul ignore next */ {}), alias: 'dbxActionHandlerValue' });
|
|
2069
2099
|
_handlerValueEffect = effect(() => {
|
|
2070
2100
|
this._dbxActionHandlerInstance.setHandlerValue(this.handlerValue());
|
|
2071
|
-
}, ...(ngDevMode ? [{ debugName: "_handlerValueEffect" }] : []));
|
|
2072
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2073
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.
|
|
2101
|
+
}, ...(ngDevMode ? [{ debugName: "_handlerValueEffect" }] : /* istanbul ignore next */ []));
|
|
2102
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionHandlerValueDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
2103
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.3", type: DbxActionHandlerValueDirective, isStandalone: true, selector: "[dbxActionHandlerValue]", inputs: { handlerValue: { classPropertyName: "handlerValue", publicName: "dbxActionHandlerValue", isSignal: true, isRequired: true, transformFunction: null } }, usesInheritance: true, ngImport: i0 });
|
|
2074
2104
|
}
|
|
2075
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2105
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionHandlerValueDirective, decorators: [{
|
|
2076
2106
|
type: Directive,
|
|
2077
2107
|
args: [{
|
|
2078
2108
|
selector: '[dbxActionHandlerValue]',
|
|
@@ -2114,10 +2144,10 @@ class AbstractIfDirective {
|
|
|
2114
2144
|
}
|
|
2115
2145
|
});
|
|
2116
2146
|
}
|
|
2117
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2118
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
2147
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: AbstractIfDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2148
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.3", type: AbstractIfDirective, isStandalone: true, ngImport: i0 });
|
|
2119
2149
|
}
|
|
2120
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2150
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: AbstractIfDirective, decorators: [{
|
|
2121
2151
|
type: Directive
|
|
2122
2152
|
}] });
|
|
2123
2153
|
|
|
@@ -2127,6 +2157,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
2127
2157
|
* Useful for Angular directive inputs where the attribute can be applied without a value
|
|
2128
2158
|
* (e.g., `<div myDirective>` passes `''`), and you want to treat that as "not provided".
|
|
2129
2159
|
*
|
|
2160
|
+
* @param value - The input value to transform.
|
|
2161
|
+
* @returns The original value, or `undefined` if the value is an empty string.
|
|
2162
|
+
*
|
|
2130
2163
|
* @example
|
|
2131
2164
|
* ```typescript
|
|
2132
2165
|
* @Directive({ selector: '[appHighlight]' })
|
|
@@ -2165,7 +2198,7 @@ const transformEmptyStringInputToUndefined = (value) => (value === '' ? undefine
|
|
|
2165
2198
|
*/
|
|
2166
2199
|
class DbxActionIdleDirective extends AbstractIfDirective {
|
|
2167
2200
|
_store = inject(DbxActionContextStoreSourceInstance);
|
|
2168
|
-
hideAfter = input(undefined, { ...(ngDevMode ? { debugName: "hideAfter" } : {}), alias: 'dbxActionIdle', transform: transformEmptyStringInputToUndefined });
|
|
2201
|
+
hideAfter = input(undefined, { ...(ngDevMode ? { debugName: "hideAfter" } : /* istanbul ignore next */ {}), alias: 'dbxActionIdle', transform: transformEmptyStringInputToUndefined });
|
|
2169
2202
|
show$ = this._store.idle$.pipe(exhaustMap((idle) => {
|
|
2170
2203
|
if (idle) {
|
|
2171
2204
|
return emitDelayObs(true, false, this.hideAfter());
|
|
@@ -2174,10 +2207,10 @@ class DbxActionIdleDirective extends AbstractIfDirective {
|
|
|
2174
2207
|
return of(false);
|
|
2175
2208
|
}
|
|
2176
2209
|
}), shareReplay(1));
|
|
2177
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2178
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.
|
|
2210
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionIdleDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
2211
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.3", type: DbxActionIdleDirective, isStandalone: true, selector: "[dbxActionIdle]", inputs: { hideAfter: { classPropertyName: "hideAfter", publicName: "dbxActionIdle", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0 });
|
|
2179
2212
|
}
|
|
2180
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2213
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionIdleDirective, decorators: [{
|
|
2181
2214
|
type: Directive,
|
|
2182
2215
|
args: [{
|
|
2183
2216
|
selector: '[dbxActionIdle]',
|
|
@@ -2213,7 +2246,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
2213
2246
|
*/
|
|
2214
2247
|
class DbxActionPreSuccessDirective extends AbstractIfDirective {
|
|
2215
2248
|
_store = inject(DbxActionContextStoreSourceInstance);
|
|
2216
|
-
hideFor = input(undefined, { ...(ngDevMode ? { debugName: "hideFor" } : {}), alias: 'dbxActionPreSuccess', transform: transformEmptyStringInputToUndefined });
|
|
2249
|
+
hideFor = input(undefined, { ...(ngDevMode ? { debugName: "hideFor" } : /* istanbul ignore next */ {}), alias: 'dbxActionPreSuccess', transform: transformEmptyStringInputToUndefined });
|
|
2217
2250
|
show$ = this._store.isSuccess$.pipe(exhaustMap((success) => {
|
|
2218
2251
|
if (success) {
|
|
2219
2252
|
return emitDelayObs(false, true, this.hideFor());
|
|
@@ -2222,10 +2255,10 @@ class DbxActionPreSuccessDirective extends AbstractIfDirective {
|
|
|
2222
2255
|
return of(true);
|
|
2223
2256
|
}
|
|
2224
2257
|
}), shareReplay(1));
|
|
2225
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2226
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.
|
|
2258
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionPreSuccessDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
2259
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.3", type: DbxActionPreSuccessDirective, isStandalone: true, selector: "[dbxActionPreSuccess]", inputs: { hideFor: { classPropertyName: "hideFor", publicName: "dbxActionPreSuccess", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0 });
|
|
2227
2260
|
}
|
|
2228
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2261
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionPreSuccessDirective, decorators: [{
|
|
2229
2262
|
type: Directive,
|
|
2230
2263
|
args: [{
|
|
2231
2264
|
selector: '[dbxActionPreSuccess]',
|
|
@@ -2259,7 +2292,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
2259
2292
|
*/
|
|
2260
2293
|
class DbxActionHasSuccessDirective extends AbstractIfDirective {
|
|
2261
2294
|
_store = inject(DbxActionContextStoreSourceInstance);
|
|
2262
|
-
hideAfter = input(undefined, { ...(ngDevMode ? { debugName: "hideAfter" } : {}), alias: 'dbxActionHasSuccess', transform: transformEmptyStringInputToUndefined });
|
|
2295
|
+
hideAfter = input(undefined, { ...(ngDevMode ? { debugName: "hideAfter" } : /* istanbul ignore next */ {}), alias: 'dbxActionHasSuccess', transform: transformEmptyStringInputToUndefined });
|
|
2263
2296
|
show$ = this._store.isSuccess$.pipe(exhaustMap((success) => {
|
|
2264
2297
|
if (success) {
|
|
2265
2298
|
return emitDelayObs(true, false, this.hideAfter());
|
|
@@ -2268,10 +2301,10 @@ class DbxActionHasSuccessDirective extends AbstractIfDirective {
|
|
|
2268
2301
|
return of(false);
|
|
2269
2302
|
}
|
|
2270
2303
|
}), shareReplay(1));
|
|
2271
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2272
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.
|
|
2304
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionHasSuccessDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
2305
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.3", type: DbxActionHasSuccessDirective, isStandalone: true, selector: "[dbxActionHasSuccess]", inputs: { hideAfter: { classPropertyName: "hideAfter", publicName: "dbxActionHasSuccess", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0 });
|
|
2273
2306
|
}
|
|
2274
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2307
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionHasSuccessDirective, decorators: [{
|
|
2275
2308
|
type: Directive,
|
|
2276
2309
|
args: [{
|
|
2277
2310
|
selector: '[dbxActionHasSuccess]',
|
|
@@ -2302,7 +2335,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
2302
2335
|
*/
|
|
2303
2336
|
class DbxActionSuccessHandlerDirective {
|
|
2304
2337
|
source = inject((DbxActionContextStoreSourceInstance), { host: true });
|
|
2305
|
-
dbxActionSuccessHandler = input(...(ngDevMode ? [undefined, { debugName: "dbxActionSuccessHandler" }] : []));
|
|
2338
|
+
dbxActionSuccessHandler = input(...(ngDevMode ? [undefined, { debugName: "dbxActionSuccessHandler" }] : /* istanbul ignore next */ []));
|
|
2306
2339
|
successFunction$ = toObservable(this.dbxActionSuccessHandler).pipe(filterMaybe(), shareReplay(1));
|
|
2307
2340
|
constructor() {
|
|
2308
2341
|
cleanSubscriptionWithLockSet({
|
|
@@ -2314,10 +2347,10 @@ class DbxActionSuccessHandlerDirective {
|
|
|
2314
2347
|
.subscribe()
|
|
2315
2348
|
});
|
|
2316
2349
|
}
|
|
2317
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2318
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.
|
|
2350
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionSuccessHandlerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2351
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.3", type: DbxActionSuccessHandlerDirective, isStandalone: true, selector: "[dbxActionSuccessHandler]", inputs: { dbxActionSuccessHandler: { classPropertyName: "dbxActionSuccessHandler", publicName: "dbxActionSuccessHandler", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
2319
2352
|
}
|
|
2320
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2353
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionSuccessHandlerDirective, decorators: [{
|
|
2321
2354
|
type: Directive,
|
|
2322
2355
|
args: [{
|
|
2323
2356
|
selector: '[dbxActionSuccessHandler]',
|
|
@@ -2347,7 +2380,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
2347
2380
|
*/
|
|
2348
2381
|
class DbxActionErrorHandlerDirective {
|
|
2349
2382
|
source = inject((DbxActionContextStoreSourceInstance), { host: true });
|
|
2350
|
-
dbxActionErrorHandler = input(...(ngDevMode ? [undefined, { debugName: "dbxActionErrorHandler" }] : []));
|
|
2383
|
+
dbxActionErrorHandler = input(...(ngDevMode ? [undefined, { debugName: "dbxActionErrorHandler" }] : /* istanbul ignore next */ []));
|
|
2351
2384
|
errorFunction$ = toObservable(this.dbxActionErrorHandler).pipe(filterMaybe(), shareReplay(1));
|
|
2352
2385
|
constructor() {
|
|
2353
2386
|
cleanSubscriptionWithLockSet({
|
|
@@ -2359,10 +2392,10 @@ class DbxActionErrorHandlerDirective {
|
|
|
2359
2392
|
.subscribe()
|
|
2360
2393
|
});
|
|
2361
2394
|
}
|
|
2362
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2363
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.
|
|
2395
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionErrorHandlerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2396
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.3", type: DbxActionErrorHandlerDirective, isStandalone: true, selector: "[dbxActionErrorHandler]", inputs: { dbxActionErrorHandler: { classPropertyName: "dbxActionErrorHandler", publicName: "dbxActionErrorHandler", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
2364
2397
|
}
|
|
2365
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2398
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionErrorHandlerDirective, decorators: [{
|
|
2366
2399
|
type: Directive,
|
|
2367
2400
|
args: [{
|
|
2368
2401
|
selector: '[dbxActionErrorHandler]',
|
|
@@ -2404,7 +2437,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
2404
2437
|
* @see {@link DbxActionValueStreamDirective} for reactive stream-based values.
|
|
2405
2438
|
*/
|
|
2406
2439
|
class DbxActionValueDirective {
|
|
2407
|
-
valueOrFunction = input('', { ...(ngDevMode ? { debugName: "valueOrFunction" } : {}), alias: 'dbxActionValue' });
|
|
2440
|
+
valueOrFunction = input('', { ...(ngDevMode ? { debugName: "valueOrFunction" } : /* istanbul ignore next */ {}), alias: 'dbxActionValue' });
|
|
2408
2441
|
source = inject((DbxActionContextStoreSourceInstance), { host: true });
|
|
2409
2442
|
_valueOrFunctionOverride = new BehaviorSubject(undefined);
|
|
2410
2443
|
valueOrFunction$ = combineLatest([this._valueOrFunctionOverride, toObservable(this.valueOrFunction)]).pipe(map(([x, y]) => x ?? y), filterMaybe(), shareReplay(1));
|
|
@@ -2420,10 +2453,10 @@ class DbxActionValueDirective {
|
|
|
2420
2453
|
setValueOrFunction(value) {
|
|
2421
2454
|
this._valueOrFunctionOverride.next(value);
|
|
2422
2455
|
}
|
|
2423
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2424
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.
|
|
2456
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionValueDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2457
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.3", type: DbxActionValueDirective, isStandalone: true, selector: "dbxActionValue,[dbxActionValue]", inputs: { valueOrFunction: { classPropertyName: "valueOrFunction", publicName: "dbxActionValue", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
2425
2458
|
}
|
|
2426
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2459
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionValueDirective, decorators: [{
|
|
2427
2460
|
type: Directive,
|
|
2428
2461
|
args: [{
|
|
2429
2462
|
selector: 'dbxActionValue,[dbxActionValue]',
|
|
@@ -2457,13 +2490,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
2457
2490
|
*/
|
|
2458
2491
|
class DbxActionIsWorkingDirective extends AbstractIfDirective {
|
|
2459
2492
|
_store = inject(DbxActionContextStoreSourceInstance);
|
|
2460
|
-
hideAfter = input(undefined, { ...(ngDevMode ? { debugName: "hideAfter" } : {}), alias: 'dbxActionWorking', transform: transformEmptyStringInputToUndefined });
|
|
2461
|
-
hideAfterIsWorking = input(undefined, { ...(ngDevMode ? { debugName: "hideAfterIsWorking" } : {}), alias: 'dbxActionIsWorking', transform: transformEmptyStringInputToUndefined });
|
|
2493
|
+
hideAfter = input(undefined, { ...(ngDevMode ? { debugName: "hideAfter" } : /* istanbul ignore next */ {}), alias: 'dbxActionWorking', transform: transformEmptyStringInputToUndefined });
|
|
2494
|
+
hideAfterIsWorking = input(undefined, { ...(ngDevMode ? { debugName: "hideAfterIsWorking" } : /* istanbul ignore next */ {}), alias: 'dbxActionIsWorking', transform: transformEmptyStringInputToUndefined });
|
|
2462
2495
|
hideAfterSignal = computed(() => {
|
|
2463
2496
|
const hideAfter = this.hideAfter();
|
|
2464
2497
|
const hideAfterIsWorking = this.hideAfterIsWorking();
|
|
2465
2498
|
return hideAfter ?? hideAfterIsWorking;
|
|
2466
|
-
}, ...(ngDevMode ? [{ debugName: "hideAfterSignal" }] : []));
|
|
2499
|
+
}, ...(ngDevMode ? [{ debugName: "hideAfterSignal" }] : /* istanbul ignore next */ []));
|
|
2467
2500
|
show$ = this._store.isWorking$.pipe(exhaustMap((isWorking) => {
|
|
2468
2501
|
const hideAfter = this.hideAfterSignal();
|
|
2469
2502
|
if (isWorking && hideAfter != null) {
|
|
@@ -2473,10 +2506,10 @@ class DbxActionIsWorkingDirective extends AbstractIfDirective {
|
|
|
2473
2506
|
return of(isWorking);
|
|
2474
2507
|
}
|
|
2475
2508
|
}), shareReplay(1));
|
|
2476
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2477
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.
|
|
2509
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionIsWorkingDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
2510
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.3", type: DbxActionIsWorkingDirective, isStandalone: true, selector: "[dbxActionWorking],[dbxActionIsWorking]", inputs: { hideAfter: { classPropertyName: "hideAfter", publicName: "dbxActionWorking", isSignal: true, isRequired: false, transformFunction: null }, hideAfterIsWorking: { classPropertyName: "hideAfterIsWorking", publicName: "dbxActionIsWorking", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0 });
|
|
2478
2511
|
}
|
|
2479
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2512
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionIsWorkingDirective, decorators: [{
|
|
2480
2513
|
type: Directive,
|
|
2481
2514
|
args: [{
|
|
2482
2515
|
selector: '[dbxActionWorking],[dbxActionIsWorking]',
|
|
@@ -2513,7 +2546,7 @@ const APP_ACTION_ENFORCE_MODIFIED_DIRECTIVE_KEY = 'dbx_action_enforce_modified';
|
|
|
2513
2546
|
*/
|
|
2514
2547
|
class DbxActionEnforceModifiedDirective {
|
|
2515
2548
|
source = inject(DbxActionContextStoreSourceInstance, { host: true });
|
|
2516
|
-
enabled = input(true, { ...(ngDevMode ? { debugName: "enabled" } : {}), alias: 'dbxActionEnforceModified', transform: (value) => value !== false });
|
|
2549
|
+
enabled = input(true, { ...(ngDevMode ? { debugName: "enabled" } : /* istanbul ignore next */ {}), alias: 'dbxActionEnforceModified', transform: (value) => value !== false });
|
|
2517
2550
|
enabled$ = toObservable(this.enabled);
|
|
2518
2551
|
constructor() {
|
|
2519
2552
|
cleanSubscription(combineLatest([this.source.isModified$, this.enabled$])
|
|
@@ -2524,10 +2557,10 @@ class DbxActionEnforceModifiedDirective {
|
|
|
2524
2557
|
}));
|
|
2525
2558
|
clean(() => this.source.enable(APP_ACTION_ENFORCE_MODIFIED_DIRECTIVE_KEY));
|
|
2526
2559
|
}
|
|
2527
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2528
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.
|
|
2560
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionEnforceModifiedDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2561
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.3", type: DbxActionEnforceModifiedDirective, isStandalone: true, selector: "[dbxActionEnforceModified]", inputs: { enabled: { classPropertyName: "enabled", publicName: "dbxActionEnforceModified", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
2529
2562
|
}
|
|
2530
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2563
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionEnforceModifiedDirective, decorators: [{
|
|
2531
2564
|
type: Directive,
|
|
2532
2565
|
args: [{
|
|
2533
2566
|
selector: '[dbxActionEnforceModified]',
|
|
@@ -2644,10 +2677,10 @@ class AbstractDbxActionValueGetterDirective {
|
|
|
2644
2677
|
});
|
|
2645
2678
|
});
|
|
2646
2679
|
}
|
|
2647
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2648
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
2680
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: AbstractDbxActionValueGetterDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2681
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.3", type: AbstractDbxActionValueGetterDirective, isStandalone: true, ngImport: i0 });
|
|
2649
2682
|
}
|
|
2650
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2683
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: AbstractDbxActionValueGetterDirective, decorators: [{
|
|
2651
2684
|
type: Directive
|
|
2652
2685
|
}], ctorParameters: () => [] });
|
|
2653
2686
|
/**
|
|
@@ -2674,9 +2707,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
2674
2707
|
* @see {@link DbxActionValueDirective} for the always-available value approach.
|
|
2675
2708
|
*/
|
|
2676
2709
|
class DbxActionValueTriggerDirective extends AbstractDbxActionValueGetterDirective {
|
|
2677
|
-
dbxActionValueGetter = input(...(ngDevMode ? [undefined, { debugName: "dbxActionValueGetter" }] : []));
|
|
2678
|
-
dbxActionValueGetterIsModified = input(...(ngDevMode ? [undefined, { debugName: "dbxActionValueGetterIsModified" }] : []));
|
|
2679
|
-
dbxActionValueGetterIsEqual = input(...(ngDevMode ? [undefined, { debugName: "dbxActionValueGetterIsEqual" }] : []));
|
|
2710
|
+
dbxActionValueGetter = input(...(ngDevMode ? [undefined, { debugName: "dbxActionValueGetter" }] : /* istanbul ignore next */ []));
|
|
2711
|
+
dbxActionValueGetterIsModified = input(...(ngDevMode ? [undefined, { debugName: "dbxActionValueGetterIsModified" }] : /* istanbul ignore next */ []));
|
|
2712
|
+
dbxActionValueGetterIsEqual = input(...(ngDevMode ? [undefined, { debugName: "dbxActionValueGetterIsEqual" }] : /* istanbul ignore next */ []));
|
|
2680
2713
|
constructor() {
|
|
2681
2714
|
super();
|
|
2682
2715
|
this.configureInputs({
|
|
@@ -2685,10 +2718,10 @@ class DbxActionValueTriggerDirective extends AbstractDbxActionValueGetterDirecti
|
|
|
2685
2718
|
isEqualSignal: this.dbxActionValueGetterIsEqual
|
|
2686
2719
|
});
|
|
2687
2720
|
}
|
|
2688
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2689
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.
|
|
2721
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionValueTriggerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2722
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.3", type: DbxActionValueTriggerDirective, isStandalone: true, selector: "[dbxActionValueGetter]", inputs: { dbxActionValueGetter: { classPropertyName: "dbxActionValueGetter", publicName: "dbxActionValueGetter", isSignal: true, isRequired: false, transformFunction: null }, dbxActionValueGetterIsModified: { classPropertyName: "dbxActionValueGetterIsModified", publicName: "dbxActionValueGetterIsModified", isSignal: true, isRequired: false, transformFunction: null }, dbxActionValueGetterIsEqual: { classPropertyName: "dbxActionValueGetterIsEqual", publicName: "dbxActionValueGetterIsEqual", isSignal: true, isRequired: false, transformFunction: null } }, exportAs: ["dbxActionValueGetter"], usesInheritance: true, ngImport: i0 });
|
|
2690
2723
|
}
|
|
2691
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2724
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionValueTriggerDirective, decorators: [{
|
|
2692
2725
|
type: Directive,
|
|
2693
2726
|
args: [{
|
|
2694
2727
|
exportAs: 'dbxActionValueGetter',
|
|
@@ -2724,9 +2757,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
2724
2757
|
*/
|
|
2725
2758
|
class DbxActionValueStreamDirective {
|
|
2726
2759
|
source = inject((DbxActionContextStoreSourceInstance), { host: true });
|
|
2727
|
-
dbxActionValueStream = input(EMPTY, ...(ngDevMode ? [{ debugName: "dbxActionValueStream" }] : []));
|
|
2728
|
-
dbxActionValueStreamIsEqualValue = input(...(ngDevMode ? [undefined, { debugName: "dbxActionValueStreamIsEqualValue" }] : []));
|
|
2729
|
-
dbxActionValueStreamIsModifiedValue = input(...(ngDevMode ? [undefined, { debugName: "dbxActionValueStreamIsModifiedValue" }] : []));
|
|
2760
|
+
dbxActionValueStream = input(EMPTY, ...(ngDevMode ? [{ debugName: "dbxActionValueStream" }] : /* istanbul ignore next */ []));
|
|
2761
|
+
dbxActionValueStreamIsEqualValue = input(...(ngDevMode ? [undefined, { debugName: "dbxActionValueStreamIsEqualValue" }] : /* istanbul ignore next */ []));
|
|
2762
|
+
dbxActionValueStreamIsModifiedValue = input(...(ngDevMode ? [undefined, { debugName: "dbxActionValueStreamIsModifiedValue" }] : /* istanbul ignore next */ []));
|
|
2730
2763
|
isModifiedFunction$ = makeIsModifiedFunctionObservable({
|
|
2731
2764
|
isModified: toObservable(this.dbxActionValueStreamIsModifiedValue),
|
|
2732
2765
|
isEqual: toObservable(this.dbxActionValueStreamIsEqualValue)
|
|
@@ -2760,10 +2793,10 @@ class DbxActionValueStreamDirective {
|
|
|
2760
2793
|
})
|
|
2761
2794
|
});
|
|
2762
2795
|
}
|
|
2763
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2764
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.
|
|
2796
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionValueStreamDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2797
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.3", type: DbxActionValueStreamDirective, isStandalone: true, selector: "[dbxActionValueStream]", inputs: { dbxActionValueStream: { classPropertyName: "dbxActionValueStream", publicName: "dbxActionValueStream", isSignal: true, isRequired: false, transformFunction: null }, dbxActionValueStreamIsEqualValue: { classPropertyName: "dbxActionValueStreamIsEqualValue", publicName: "dbxActionValueStreamIsEqualValue", isSignal: true, isRequired: false, transformFunction: null }, dbxActionValueStreamIsModifiedValue: { classPropertyName: "dbxActionValueStreamIsModifiedValue", publicName: "dbxActionValueStreamIsModifiedValue", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
2765
2798
|
}
|
|
2766
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2799
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionValueStreamDirective, decorators: [{
|
|
2767
2800
|
type: Directive,
|
|
2768
2801
|
args: [{
|
|
2769
2802
|
selector: '[dbxActionValueStream]',
|
|
@@ -2788,7 +2821,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
2788
2821
|
*/
|
|
2789
2822
|
class DbxActionTriggeredDirective extends AbstractIfDirective {
|
|
2790
2823
|
_store = inject(DbxActionContextStoreSourceInstance);
|
|
2791
|
-
hideAfter = input(undefined, { ...(ngDevMode ? { debugName: "hideAfter" } : {}), alias: 'dbxActionTriggered', transform: transformEmptyStringInputToUndefined });
|
|
2824
|
+
hideAfter = input(undefined, { ...(ngDevMode ? { debugName: "hideAfter" } : /* istanbul ignore next */ {}), alias: 'dbxActionTriggered', transform: transformEmptyStringInputToUndefined });
|
|
2792
2825
|
show$ = this._store.triggered$.pipe(exhaustMap((triggered) => {
|
|
2793
2826
|
if (triggered) {
|
|
2794
2827
|
return emitDelayObs(true, false, this.hideAfter());
|
|
@@ -2797,10 +2830,10 @@ class DbxActionTriggeredDirective extends AbstractIfDirective {
|
|
|
2797
2830
|
return of(false);
|
|
2798
2831
|
}
|
|
2799
2832
|
}), shareReplay(1));
|
|
2800
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2801
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.
|
|
2833
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionTriggeredDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
2834
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.3", type: DbxActionTriggeredDirective, isStandalone: true, selector: "[dbxActionTriggered]", inputs: { hideAfter: { classPropertyName: "hideAfter", publicName: "dbxActionTriggered", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0 });
|
|
2802
2835
|
}
|
|
2803
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2836
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionTriggeredDirective, decorators: [{
|
|
2804
2837
|
type: Directive,
|
|
2805
2838
|
args: [{
|
|
2806
2839
|
selector: '[dbxActionTriggered]',
|
|
@@ -2836,8 +2869,8 @@ const importsAndExports$2 = [
|
|
|
2836
2869
|
* Contains all base DbxAction components.
|
|
2837
2870
|
*/
|
|
2838
2871
|
class DbxCoreActionModule {
|
|
2839
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2840
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.
|
|
2872
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxCoreActionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2873
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.3", ngImport: i0, type: DbxCoreActionModule, imports: [DbxActionDirective,
|
|
2841
2874
|
DbxActionContextMapDirective,
|
|
2842
2875
|
DbxActionFromMapDirective,
|
|
2843
2876
|
DbxActionMapSourceDirective,
|
|
@@ -2880,9 +2913,9 @@ class DbxCoreActionModule {
|
|
|
2880
2913
|
DbxActionSuccessHandlerDirective,
|
|
2881
2914
|
DbxActionErrorHandlerDirective,
|
|
2882
2915
|
DbxActionIsWorkingDirective] });
|
|
2883
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.
|
|
2916
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxCoreActionModule });
|
|
2884
2917
|
}
|
|
2885
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2918
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxCoreActionModule, decorators: [{
|
|
2886
2919
|
type: NgModule,
|
|
2887
2920
|
args: [{
|
|
2888
2921
|
imports: importsAndExports$2,
|
|
@@ -3145,8 +3178,7 @@ function enableIsLoggedInHook(transitionService, config) {
|
|
|
3145
3178
|
const isSecureCriteria = {
|
|
3146
3179
|
entering: (state) => {
|
|
3147
3180
|
const data = state?.data;
|
|
3148
|
-
|
|
3149
|
-
return match;
|
|
3181
|
+
return Boolean(data?.requiredLogIn);
|
|
3150
3182
|
}
|
|
3151
3183
|
};
|
|
3152
3184
|
const assertIsLoggedIn = makeAuthTransitionHook({
|
|
@@ -3179,8 +3211,7 @@ function enableHasAuthRoleHook(transitionService, config) {
|
|
|
3179
3211
|
const isSecureCriteria = {
|
|
3180
3212
|
entering: (state) => {
|
|
3181
3213
|
const data = state?.data;
|
|
3182
|
-
|
|
3183
|
-
return match;
|
|
3214
|
+
return Boolean(data?.authRoles);
|
|
3184
3215
|
}
|
|
3185
3216
|
};
|
|
3186
3217
|
const assertHasAuthRole = makeAuthTransitionHook({
|
|
@@ -3227,10 +3258,10 @@ function hasAuthRoleDecisionPipe(stateData) {
|
|
|
3227
3258
|
});
|
|
3228
3259
|
let mapFn;
|
|
3229
3260
|
if (authRolesMode === 'any') {
|
|
3230
|
-
mapFn = map((x) => authRoleConfigs.
|
|
3261
|
+
mapFn = map((x) => authRoleConfigs.some((y) => setIncludes(x, y.requiredRoles, y.authRolesMode))); // find the first match
|
|
3231
3262
|
}
|
|
3232
3263
|
else {
|
|
3233
|
-
mapFn = map((x) => authRoleConfigs.
|
|
3264
|
+
mapFn = map((x) => !authRoleConfigs.some((y) => !setIncludes(x, y.requiredRoles, y.authRolesMode))); // find the first failed match
|
|
3234
3265
|
}
|
|
3235
3266
|
return mapFn;
|
|
3236
3267
|
}
|
|
@@ -3254,8 +3285,7 @@ function enableHasAuthStateHook(transitionService, config) {
|
|
|
3254
3285
|
const isSecureCriteria = {
|
|
3255
3286
|
entering: (state) => {
|
|
3256
3287
|
const data = state?.data;
|
|
3257
|
-
|
|
3258
|
-
return match;
|
|
3288
|
+
return Boolean(data?.authStates);
|
|
3259
3289
|
}
|
|
3260
3290
|
};
|
|
3261
3291
|
const assertHasAuthState = makeAuthTransitionHook({
|
|
@@ -3345,7 +3375,7 @@ var index$3 = /*#__PURE__*/Object.freeze({
|
|
|
3345
3375
|
/**
|
|
3346
3376
|
* The feature key for these items/reducers.
|
|
3347
3377
|
*/
|
|
3348
|
-
const
|
|
3378
|
+
const DBX_APP_CONTEXT_STATE_FEATURE_KEY = 'data';
|
|
3349
3379
|
const initialState$1 = {
|
|
3350
3380
|
state: DBX_INIT_APP_CONTEXT_STATE
|
|
3351
3381
|
};
|
|
@@ -3358,13 +3388,17 @@ on(setState, (_, { state }) => ({ state })));
|
|
|
3358
3388
|
/**
|
|
3359
3389
|
* Global feature key for our app.
|
|
3360
3390
|
*/
|
|
3361
|
-
const
|
|
3391
|
+
const FEATURE_KEY$1 = 'app.context';
|
|
3362
3392
|
/**
|
|
3363
3393
|
* Reducers mapping for the DbxAppContextFeatureState
|
|
3394
|
+
*
|
|
3395
|
+
* @param state - The current feature state, or undefined for initialization.
|
|
3396
|
+
* @param action - The dispatched action to reduce.
|
|
3397
|
+
* @returns The updated feature state.
|
|
3364
3398
|
*/
|
|
3365
3399
|
function reducers$1(state, action) {
|
|
3366
3400
|
return combineReducers({
|
|
3367
|
-
[
|
|
3401
|
+
[DBX_APP_CONTEXT_STATE_FEATURE_KEY]: reducer$1
|
|
3368
3402
|
})(state, action);
|
|
3369
3403
|
}
|
|
3370
3404
|
/**
|
|
@@ -3372,15 +3406,15 @@ function reducers$1(state, action) {
|
|
|
3372
3406
|
*
|
|
3373
3407
|
* Used by createSelector() to retrieve more specific data from the DbxAppContextFeatureState.
|
|
3374
3408
|
*/
|
|
3375
|
-
const selectAppContextFeature = createFeatureSelector(
|
|
3409
|
+
const selectAppContextFeature = createFeatureSelector(FEATURE_KEY$1);
|
|
3376
3410
|
/**
|
|
3377
3411
|
* Selector to retrieve the state value from our DbxAppContextStateData in our DbxAppContextFeatureState.
|
|
3378
3412
|
*/
|
|
3379
|
-
const selectDbxAppContextState = createSelector(selectAppContextFeature, (featureState) => featureState[
|
|
3413
|
+
const selectDbxAppContextState = createSelector(selectAppContextFeature, (featureState) => featureState[DBX_APP_CONTEXT_STATE_FEATURE_KEY].state);
|
|
3380
3414
|
|
|
3381
3415
|
var index$2 = /*#__PURE__*/Object.freeze({
|
|
3382
3416
|
__proto__: null,
|
|
3383
|
-
|
|
3417
|
+
FEATURE_KEY: FEATURE_KEY$1,
|
|
3384
3418
|
reducers: reducers$1,
|
|
3385
3419
|
selectAppContextFeature: selectAppContextFeature,
|
|
3386
3420
|
selectDbxAppContextState: selectDbxAppContextState
|
|
@@ -3535,7 +3569,7 @@ var index$1 = /*#__PURE__*/Object.freeze({
|
|
|
3535
3569
|
/**
|
|
3536
3570
|
* NgRx feature key for the auth user sub-state within the auth feature.
|
|
3537
3571
|
*/
|
|
3538
|
-
const
|
|
3572
|
+
const DBX_APP_AUTH_USER_FEATURE_KEY = 'user';
|
|
3539
3573
|
/**
|
|
3540
3574
|
* Initial state for the auth user reducer.
|
|
3541
3575
|
*
|
|
@@ -3548,14 +3582,14 @@ const initialState = {
|
|
|
3548
3582
|
userState: 'none',
|
|
3549
3583
|
userRoles: []
|
|
3550
3584
|
};
|
|
3551
|
-
const reducer = createReducer(initialState, on(loggedOut, () => ({ ...initialState })), on(setUserIdentifier, (state, { id: userId }) => ({ ...state, userId })), on(setUserIsOnboarded, (state, { isOnboarded }) => ({ ...state, isOnboarded })), on(setUserState, (state, { state: userState }) => ({ ...state, userState })), on(setUserRoles, (state, { roles: userRoles }) => ({ ...state, userRoles:
|
|
3585
|
+
const reducer = createReducer(initialState, on(loggedOut, () => ({ ...initialState })), on(setUserIdentifier, (state, { id: userId }) => ({ ...state, userId })), on(setUserIsOnboarded, (state, { isOnboarded }) => ({ ...state, isOnboarded })), on(setUserState, (state, { state: userState }) => ({ ...state, userState })), on(setUserRoles, (state, { roles: userRoles }) => ({ ...state, userRoles: [...userRoles] })));
|
|
3552
3586
|
|
|
3553
3587
|
/**
|
|
3554
3588
|
* NgRx feature key used to register the auth feature state in the global store.
|
|
3555
3589
|
*
|
|
3556
3590
|
* The auth state is registered under `'app.auth'` in the root NgRx state tree.
|
|
3557
3591
|
*/
|
|
3558
|
-
const
|
|
3592
|
+
const FEATURE_KEY = 'app.auth';
|
|
3559
3593
|
/**
|
|
3560
3594
|
* Combined reducer function for the auth feature state.
|
|
3561
3595
|
*
|
|
@@ -3568,13 +3602,13 @@ const featureKey = 'app.auth';
|
|
|
3568
3602
|
*/
|
|
3569
3603
|
function reducers(state, action) {
|
|
3570
3604
|
return combineReducers({
|
|
3571
|
-
[
|
|
3605
|
+
[DBX_APP_AUTH_USER_FEATURE_KEY]: reducer
|
|
3572
3606
|
})(state, action);
|
|
3573
3607
|
}
|
|
3574
3608
|
/**
|
|
3575
3609
|
* NgRx feature selector that retrieves the entire {@link DbxAppAuthFeatureState} from the global store.
|
|
3576
3610
|
*/
|
|
3577
|
-
const selectAppAuthFeature = createFeatureSelector(
|
|
3611
|
+
const selectAppAuthFeature = createFeatureSelector(FEATURE_KEY);
|
|
3578
3612
|
/**
|
|
3579
3613
|
* NgRx selector that retrieves the {@link DbxAppAuthStateUser} from the auth feature state.
|
|
3580
3614
|
*
|
|
@@ -3582,11 +3616,11 @@ const selectAppAuthFeature = createFeatureSelector(featureKey);
|
|
|
3582
3616
|
*
|
|
3583
3617
|
* @see {@link DbxAppAuthStateService.authStateUser$} for the observable wrapper.
|
|
3584
3618
|
*/
|
|
3585
|
-
const selectDbxAppAuthUser = createSelector(selectAppAuthFeature, (featureState) => featureState[
|
|
3619
|
+
const selectDbxAppAuthUser = createSelector(selectAppAuthFeature, (featureState) => featureState[DBX_APP_AUTH_USER_FEATURE_KEY]);
|
|
3586
3620
|
|
|
3587
3621
|
var index = /*#__PURE__*/Object.freeze({
|
|
3588
3622
|
__proto__: null,
|
|
3589
|
-
|
|
3623
|
+
FEATURE_KEY: FEATURE_KEY,
|
|
3590
3624
|
reducers: reducers,
|
|
3591
3625
|
selectAppAuthFeature: selectAppAuthFeature,
|
|
3592
3626
|
selectDbxAppAuthUser: selectDbxAppAuthUser
|
|
@@ -3722,9 +3756,13 @@ class DbxAppAuthRouterService {
|
|
|
3722
3756
|
dbxAppAuthRoutes = inject(DbxAppAuthRoutes);
|
|
3723
3757
|
_isAuthRouterEffectsEnabled = new BehaviorSubject(true);
|
|
3724
3758
|
_ignoredRoutes = new BehaviorSubject(new Set());
|
|
3725
|
-
/**
|
|
3759
|
+
/**
|
|
3760
|
+
* Observable of whether auth router effects are currently enabled.
|
|
3761
|
+
*/
|
|
3726
3762
|
isAuthRouterEffectsEnabled$ = this._isAuthRouterEffectsEnabled.asObservable();
|
|
3727
|
-
/**
|
|
3763
|
+
/**
|
|
3764
|
+
* Observable of the set of route refs that are excluded from auth redirect effects.
|
|
3765
|
+
*/
|
|
3728
3766
|
ignoredRoutes$ = this._ignoredRoutes.asObservable();
|
|
3729
3767
|
/**
|
|
3730
3768
|
* Observable that emits `true` when the current route is in the ignored set.
|
|
@@ -3749,6 +3787,8 @@ class DbxAppAuthRouterService {
|
|
|
3749
3787
|
// MARK: Effects
|
|
3750
3788
|
/**
|
|
3751
3789
|
* Whether or not DbxAppAuthRouterEffects are enabled.
|
|
3790
|
+
*
|
|
3791
|
+
* @returns Whether auth router effects are currently enabled.
|
|
3752
3792
|
*/
|
|
3753
3793
|
get isAuthRouterEffectsEnabled() {
|
|
3754
3794
|
return this._isAuthRouterEffectsEnabled.value;
|
|
@@ -3763,6 +3803,8 @@ class DbxAppAuthRouterService {
|
|
|
3763
3803
|
*
|
|
3764
3804
|
* Uses hierarchical matching — adding a parent route (e.g., `'/app/oauth'`)
|
|
3765
3805
|
* will also ignore all child routes (e.g., `'/app/oauth/login'`).
|
|
3806
|
+
*
|
|
3807
|
+
* @param ref - The route ref to add to the ignored set.
|
|
3766
3808
|
*/
|
|
3767
3809
|
addIgnoredRoute(ref) {
|
|
3768
3810
|
const current = this._ignoredRoutes.value;
|
|
@@ -3772,6 +3814,8 @@ class DbxAppAuthRouterService {
|
|
|
3772
3814
|
}
|
|
3773
3815
|
/**
|
|
3774
3816
|
* Removes a route from the ignored set.
|
|
3817
|
+
*
|
|
3818
|
+
* @param ref - The route ref to remove from the ignored set.
|
|
3775
3819
|
*/
|
|
3776
3820
|
removeIgnoredRoute(ref) {
|
|
3777
3821
|
const current = this._ignoredRoutes.value;
|
|
@@ -3781,6 +3825,8 @@ class DbxAppAuthRouterService {
|
|
|
3781
3825
|
}
|
|
3782
3826
|
/**
|
|
3783
3827
|
* Returns `true` if the current route matches any of the ignored routes.
|
|
3828
|
+
*
|
|
3829
|
+
* @returns Whether the current route is in the ignored set.
|
|
3784
3830
|
*/
|
|
3785
3831
|
get isCurrentRouteIgnoredByAuthEffects() {
|
|
3786
3832
|
return this._checkCurrentRouteIgnored(this._ignoredRoutes.value);
|
|
@@ -3826,10 +3872,10 @@ class DbxAppAuthRouterService {
|
|
|
3826
3872
|
goToApp() {
|
|
3827
3873
|
return goWithRouter(this.dbxRouterService)(this.dbxAppAuthRoutes.appRef);
|
|
3828
3874
|
}
|
|
3829
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
3830
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
3875
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxAppAuthRouterService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3876
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxAppAuthRouterService, providedIn: 'root' });
|
|
3831
3877
|
}
|
|
3832
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
3878
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxAppAuthRouterService, decorators: [{
|
|
3833
3879
|
type: Injectable,
|
|
3834
3880
|
args: [{
|
|
3835
3881
|
providedIn: 'root'
|
|
@@ -3877,10 +3923,10 @@ class DbxAppAuthRouterEffects extends AbstractOnDbxAppContextStateEffects {
|
|
|
3877
3923
|
* Effect to redirect to the app when login occurs.
|
|
3878
3924
|
*/
|
|
3879
3925
|
redirectToOnboardOnLogIn = createEffect(() => this.actions$.pipe(ofType(loggedIn), switchMap(() => this.dbxAppAuthRouterService.shouldAuthEffectsRedirect$.pipe(first())), filter((shouldRedirect) => shouldRedirect), exhaustMap(() => this.dbxAppAuthRouterService.goToApp())), { dispatch: false });
|
|
3880
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
3881
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
3926
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxAppAuthRouterEffects, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3927
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxAppAuthRouterEffects });
|
|
3882
3928
|
}
|
|
3883
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
3929
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxAppAuthRouterEffects, decorators: [{
|
|
3884
3930
|
type: Injectable
|
|
3885
3931
|
}], ctorParameters: () => [] });
|
|
3886
3932
|
|
|
@@ -4043,28 +4089,42 @@ class DbxAppAuthEffects {
|
|
|
4043
4089
|
actions$ = inject(Actions);
|
|
4044
4090
|
store = inject((Store));
|
|
4045
4091
|
// MARK: Auth
|
|
4046
|
-
/**
|
|
4092
|
+
/**
|
|
4093
|
+
* Dispatches {@link DbxAppAuthActions.loggedIn} when the auth service emits a login event.
|
|
4094
|
+
*/
|
|
4047
4095
|
emitLoggedIn = createEffect(() => this.dbxAuthService.onLogIn$.pipe(map(() => loggedIn())));
|
|
4048
|
-
/**
|
|
4096
|
+
/**
|
|
4097
|
+
* Dispatches {@link DbxAppAuthActions.loggedOut} when the auth service emits a logout event.
|
|
4098
|
+
*/
|
|
4049
4099
|
emitLoggedOut = createEffect(() => this.dbxAuthService.onLogOut$.pipe(map(() => loggedOut())));
|
|
4050
|
-
/**
|
|
4100
|
+
/**
|
|
4101
|
+
* Forwards the {@link DbxAppAuthActions.logout} command to {@link DbxAuthService.logOut}.
|
|
4102
|
+
*/
|
|
4051
4103
|
forwardLogoutToAuthService = createEffect(() => this.actions$.pipe(ofType(logout), tap(() => {
|
|
4052
4104
|
// Perform the logout
|
|
4053
|
-
this.dbxAuthService.logOut();
|
|
4105
|
+
void this.dbxAuthService.logOut();
|
|
4054
4106
|
})), { dispatch: false });
|
|
4055
4107
|
// MARK: User
|
|
4056
|
-
/**
|
|
4108
|
+
/**
|
|
4109
|
+
* Syncs the user identifier from the auth service into the NgRx store.
|
|
4110
|
+
*/
|
|
4057
4111
|
setUserIdentifier = createEffect(() => this.dbxAuthService.userIdentifier$.pipe(map((id) => setUserIdentifier({ id }))));
|
|
4058
|
-
/**
|
|
4112
|
+
/**
|
|
4113
|
+
* Syncs the user's {@link AuthUserState} from the auth service into the NgRx store.
|
|
4114
|
+
*/
|
|
4059
4115
|
setUserState = createEffect(() => this.dbxAuthService.authUserState$.pipe(map((state) => setUserState({ state }))));
|
|
4060
|
-
/**
|
|
4061
|
-
|
|
4062
|
-
|
|
4116
|
+
/**
|
|
4117
|
+
* Syncs the user's auth roles from the auth service into the NgRx store.
|
|
4118
|
+
*/
|
|
4119
|
+
setUserRoles = createEffect(() => this.dbxAuthService.authRoles$.pipe(map((roles) => setUserRoles({ roles: [...(roles ?? [])] }))));
|
|
4120
|
+
/**
|
|
4121
|
+
* Syncs the user's onboarding status from the auth service into the NgRx store.
|
|
4122
|
+
*/
|
|
4063
4123
|
setUserIsOnboarded = createEffect(() => this.dbxAuthService.isOnboarded$.pipe(map((isOnboarded) => setUserIsOnboarded({ isOnboarded }))));
|
|
4064
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4065
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
4124
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxAppAuthEffects, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4125
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxAppAuthEffects });
|
|
4066
4126
|
}
|
|
4067
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4127
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxAppAuthEffects, decorators: [{
|
|
4068
4128
|
type: Injectable
|
|
4069
4129
|
}] });
|
|
4070
4130
|
|
|
@@ -4083,7 +4143,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
4083
4143
|
* @see {@link fromDbxAppAuth}
|
|
4084
4144
|
*/
|
|
4085
4145
|
function provideDbxAppAuthState() {
|
|
4086
|
-
return makeEnvironmentProviders([provideState(
|
|
4146
|
+
return makeEnvironmentProviders([provideState(FEATURE_KEY, reducers), provideEffects(DbxAppAuthEffects)]);
|
|
4087
4147
|
}
|
|
4088
4148
|
|
|
4089
4149
|
/**
|
|
@@ -4141,13 +4201,13 @@ function provideDbxAppAuth(config) {
|
|
|
4141
4201
|
*/
|
|
4142
4202
|
class DbxAuthHasAnyRoleDirective extends AbstractIfDirective {
|
|
4143
4203
|
_authService = inject(DbxAuthService);
|
|
4144
|
-
targetRoles = input(undefined, { ...(ngDevMode ? { debugName: "targetRoles" } : {}), alias: 'dbxAuthHasAnyRole' });
|
|
4204
|
+
targetRoles = input(undefined, { ...(ngDevMode ? { debugName: "targetRoles" } : /* istanbul ignore next */ {}), alias: 'dbxAuthHasAnyRole' });
|
|
4145
4205
|
targetRoles$ = toObservable(this.targetRoles);
|
|
4146
4206
|
show$ = this._authService.authRoles$.pipe(authRolesSetContainsAnyRoleFrom(this.targetRoles$));
|
|
4147
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4148
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.
|
|
4207
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxAuthHasAnyRoleDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
4208
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.3", type: DbxAuthHasAnyRoleDirective, isStandalone: true, selector: "[dbxAuthHasAnyRole]", inputs: { targetRoles: { classPropertyName: "targetRoles", publicName: "dbxAuthHasAnyRole", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0 });
|
|
4149
4209
|
}
|
|
4150
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4210
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxAuthHasAnyRoleDirective, decorators: [{
|
|
4151
4211
|
type: Directive,
|
|
4152
4212
|
args: [{
|
|
4153
4213
|
selector: '[dbxAuthHasAnyRole]',
|
|
@@ -4177,13 +4237,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
4177
4237
|
*/
|
|
4178
4238
|
class DbxAuthHasRolesDirective extends AbstractIfDirective {
|
|
4179
4239
|
_authService = inject(DbxAuthService);
|
|
4180
|
-
targetRoles = input(undefined, { ...(ngDevMode ? { debugName: "targetRoles" } : {}), alias: 'dbxAuthHasRoles' });
|
|
4240
|
+
targetRoles = input(undefined, { ...(ngDevMode ? { debugName: "targetRoles" } : /* istanbul ignore next */ {}), alias: 'dbxAuthHasRoles' });
|
|
4181
4241
|
targetRoles$ = toObservable(this.targetRoles);
|
|
4182
4242
|
show$ = this._authService.authRoles$.pipe(authRolesSetContainsAllRolesFrom(this.targetRoles$));
|
|
4183
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4184
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.
|
|
4243
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxAuthHasRolesDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
4244
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.3", type: DbxAuthHasRolesDirective, isStandalone: true, selector: "[dbxAuthHasRoles]", inputs: { targetRoles: { classPropertyName: "targetRoles", publicName: "dbxAuthHasRoles", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0 });
|
|
4185
4245
|
}
|
|
4186
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4246
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxAuthHasRolesDirective, decorators: [{
|
|
4187
4247
|
type: Directive,
|
|
4188
4248
|
args: [{
|
|
4189
4249
|
selector: '[dbxAuthHasRoles]',
|
|
@@ -4213,13 +4273,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
4213
4273
|
*/
|
|
4214
4274
|
class DbxAuthNotAnyRoleDirective extends AbstractIfDirective {
|
|
4215
4275
|
_authService = inject(DbxAuthService);
|
|
4216
|
-
targetRoles = input(undefined, { ...(ngDevMode ? { debugName: "targetRoles" } : {}), alias: 'dbxAuthNotAnyRole' });
|
|
4276
|
+
targetRoles = input(undefined, { ...(ngDevMode ? { debugName: "targetRoles" } : /* istanbul ignore next */ {}), alias: 'dbxAuthNotAnyRole' });
|
|
4217
4277
|
targetRoles$ = toObservable(this.targetRoles);
|
|
4218
4278
|
show$ = this._authService.authRoles$.pipe(authRolesSetContainsNoRolesFrom(this.targetRoles$));
|
|
4219
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4220
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.
|
|
4279
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxAuthNotAnyRoleDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
4280
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.3", type: DbxAuthNotAnyRoleDirective, isStandalone: true, selector: "[dbxAuthNotAnyRole]", inputs: { targetRoles: { classPropertyName: "targetRoles", publicName: "dbxAuthNotAnyRole", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0 });
|
|
4221
4281
|
}
|
|
4222
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4282
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxAuthNotAnyRoleDirective, decorators: [{
|
|
4223
4283
|
type: Directive,
|
|
4224
4284
|
args: [{
|
|
4225
4285
|
selector: '[dbxAuthNotAnyRole]',
|
|
@@ -4248,14 +4308,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
4248
4308
|
* @see {@link fromDbxAppAuth.selectDbxAppAuthUser}
|
|
4249
4309
|
*/
|
|
4250
4310
|
class DbxAppAuthStateService {
|
|
4251
|
-
/**
|
|
4311
|
+
/**
|
|
4312
|
+
* NgRx store instance typed to the full auth state.
|
|
4313
|
+
*/
|
|
4252
4314
|
store = inject((Store));
|
|
4253
|
-
/**
|
|
4315
|
+
/**
|
|
4316
|
+
* Observable of the current {@link DbxAppAuthStateUser} from the NgRx store.
|
|
4317
|
+
*/
|
|
4254
4318
|
authStateUser$ = this.store.select(selectDbxAppAuthUser);
|
|
4255
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4256
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
4319
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxAppAuthStateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4320
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxAppAuthStateService, providedIn: 'root' });
|
|
4257
4321
|
}
|
|
4258
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4322
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxAppAuthStateService, decorators: [{
|
|
4259
4323
|
type: Injectable,
|
|
4260
4324
|
args: [{
|
|
4261
4325
|
providedIn: 'root'
|
|
@@ -4277,6 +4341,7 @@ class DbxButton {
|
|
|
4277
4341
|
* Creates Angular providers that register a {@link DbxButton} implementation for DI.
|
|
4278
4342
|
*
|
|
4279
4343
|
* @param sourceType - The concrete button directive or component class to provide.
|
|
4344
|
+
* @returns An array of Angular providers for the button.
|
|
4280
4345
|
*
|
|
4281
4346
|
* @example
|
|
4282
4347
|
* ```typescript
|
|
@@ -4333,10 +4398,10 @@ class DbxActionButtonTriggerDirective {
|
|
|
4333
4398
|
_buttonClicked() {
|
|
4334
4399
|
this.source.trigger();
|
|
4335
4400
|
}
|
|
4336
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4337
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
4401
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionButtonTriggerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4402
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.3", type: DbxActionButtonTriggerDirective, isStandalone: true, selector: "[dbxActionButtonTrigger]", ngImport: i0 });
|
|
4338
4403
|
}
|
|
4339
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4404
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionButtonTriggerDirective, decorators: [{
|
|
4340
4405
|
type: Directive,
|
|
4341
4406
|
args: [{
|
|
4342
4407
|
selector: '[dbxActionButtonTrigger]',
|
|
@@ -4368,10 +4433,10 @@ class DbxActionButtonDirective extends DbxActionButtonTriggerDirective {
|
|
|
4368
4433
|
this.dbxButton.setDisabled(disabled);
|
|
4369
4434
|
}));
|
|
4370
4435
|
}
|
|
4371
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4372
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
4436
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4437
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.3", type: DbxActionButtonDirective, isStandalone: true, selector: "[dbxActionButton]", usesInheritance: true, ngImport: i0 });
|
|
4373
4438
|
}
|
|
4374
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4439
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxActionButtonDirective, decorators: [{
|
|
4375
4440
|
type: Directive,
|
|
4376
4441
|
args: [{
|
|
4377
4442
|
selector: '[dbxActionButton]',
|
|
@@ -4400,19 +4465,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
4400
4465
|
class DbxButtonSegueDirective {
|
|
4401
4466
|
dbxButton = inject(DbxButton);
|
|
4402
4467
|
dbxRouterService = inject(DbxRouterService);
|
|
4403
|
-
segueRef = input(undefined, { ...(ngDevMode ? { debugName: "segueRef" } : {}), alias: 'dbxButtonSegue' });
|
|
4468
|
+
segueRef = input(undefined, { ...(ngDevMode ? { debugName: "segueRef" } : /* istanbul ignore next */ {}), alias: 'dbxButtonSegue' });
|
|
4404
4469
|
constructor() {
|
|
4405
4470
|
cleanSubscription(() => this.dbxButton.clicked$.subscribe(() => {
|
|
4406
4471
|
const segueRef = this.segueRef();
|
|
4407
4472
|
if (segueRef) {
|
|
4408
|
-
this.dbxRouterService.go(segueRef);
|
|
4473
|
+
void this.dbxRouterService.go(segueRef);
|
|
4409
4474
|
}
|
|
4410
4475
|
}));
|
|
4411
4476
|
}
|
|
4412
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4413
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.
|
|
4477
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxButtonSegueDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4478
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.3", type: DbxButtonSegueDirective, isStandalone: true, selector: "[dbxButtonSegue]", inputs: { segueRef: { classPropertyName: "segueRef", publicName: "dbxButtonSegue", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
4414
4479
|
}
|
|
4415
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4480
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxButtonSegueDirective, decorators: [{
|
|
4416
4481
|
type: Directive,
|
|
4417
4482
|
args: [{
|
|
4418
4483
|
selector: '[dbxButtonSegue]',
|
|
@@ -4442,32 +4507,32 @@ class AbstractDbxButtonDirective {
|
|
|
4442
4507
|
_buttonClick = completeOnDestroy(new Subject());
|
|
4443
4508
|
_buttonInterceptor = completeOnDestroy(new BehaviorSubject(undefined));
|
|
4444
4509
|
buttonClick = output();
|
|
4445
|
-
disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : {}), transform: Boolean });
|
|
4446
|
-
working = input(false, { ...(ngDevMode ? { debugName: "working" } : {}), transform: (x) => (x == null ? false : x) });
|
|
4447
|
-
buttonDisplay = input(undefined, ...(ngDevMode ? [{ debugName: "buttonDisplay" }] : []));
|
|
4448
|
-
_disabledSignal = signal(undefined, ...(ngDevMode ? [{ debugName: "_disabledSignal" }] : []));
|
|
4449
|
-
_workingSignal = signal(undefined, ...(ngDevMode ? [{ debugName: "_workingSignal" }] : []));
|
|
4450
|
-
_buttonDisplayContentSignal = signal(undefined, ...(ngDevMode ? [{ debugName: "_buttonDisplayContentSignal" }] : []));
|
|
4451
|
-
disabledSignal = computed(() => this._disabledSignal() ?? this.disabled(), ...(ngDevMode ? [{ debugName: "disabledSignal" }] : []));
|
|
4452
|
-
workingSignal = computed(() => this._workingSignal() ?? this.working(), ...(ngDevMode ? [{ debugName: "workingSignal" }] : []));
|
|
4510
|
+
disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: Boolean });
|
|
4511
|
+
working = input(false, { ...(ngDevMode ? { debugName: "working" } : /* istanbul ignore next */ {}), transform: (x) => (x == null ? false : x) });
|
|
4512
|
+
buttonDisplay = input(undefined, ...(ngDevMode ? [{ debugName: "buttonDisplay" }] : /* istanbul ignore next */ []));
|
|
4513
|
+
_disabledSignal = signal(undefined, ...(ngDevMode ? [{ debugName: "_disabledSignal" }] : /* istanbul ignore next */ []));
|
|
4514
|
+
_workingSignal = signal(undefined, ...(ngDevMode ? [{ debugName: "_workingSignal" }] : /* istanbul ignore next */ []));
|
|
4515
|
+
_buttonDisplayContentSignal = signal(undefined, ...(ngDevMode ? [{ debugName: "_buttonDisplayContentSignal" }] : /* istanbul ignore next */ []));
|
|
4516
|
+
disabledSignal = computed(() => this._disabledSignal() ?? this.disabled(), ...(ngDevMode ? [{ debugName: "disabledSignal" }] : /* istanbul ignore next */ []));
|
|
4517
|
+
workingSignal = computed(() => this._workingSignal() ?? this.working(), ...(ngDevMode ? [{ debugName: "workingSignal" }] : /* istanbul ignore next */ []));
|
|
4453
4518
|
isWorkingSignal = computed(() => {
|
|
4454
4519
|
const working = this.workingSignal();
|
|
4455
4520
|
return isDefinedAndNotFalse(working);
|
|
4456
|
-
}, ...(ngDevMode ? [{ debugName: "isWorkingSignal" }] : []));
|
|
4457
|
-
icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : []));
|
|
4458
|
-
text = input(...(ngDevMode ? [undefined, { debugName: "text" }] : []));
|
|
4521
|
+
}, ...(ngDevMode ? [{ debugName: "isWorkingSignal" }] : /* istanbul ignore next */ []));
|
|
4522
|
+
icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
4523
|
+
text = input(...(ngDevMode ? [undefined, { debugName: "text" }] : /* istanbul ignore next */ []));
|
|
4459
4524
|
buttonDisplayContentSignal = computed(() => {
|
|
4460
4525
|
const icon = this.icon();
|
|
4461
4526
|
const text = this.text();
|
|
4462
4527
|
const buttonDisplay = this.buttonDisplay();
|
|
4463
4528
|
const buttonDisplayContent = this._buttonDisplayContentSignal() ?? buttonDisplay;
|
|
4464
4529
|
return { icon: icon || buttonDisplayContent?.icon, text: text || buttonDisplayContent?.text };
|
|
4465
|
-
}, ...(ngDevMode ? [{ debugName: "buttonDisplayContentSignal" }] : []));
|
|
4530
|
+
}, ...(ngDevMode ? [{ debugName: "buttonDisplayContentSignal" }] : /* istanbul ignore next */ []));
|
|
4466
4531
|
buttonDisplayTypeSignal = computed(() => {
|
|
4467
4532
|
return dbxButtonDisplayType(this.buttonDisplayContentSignal());
|
|
4468
|
-
}, ...(ngDevMode ? [{ debugName: "buttonDisplayTypeSignal" }] : []));
|
|
4469
|
-
iconSignal = computed(() => this.buttonDisplayContentSignal()?.icon, ...(ngDevMode ? [{ debugName: "iconSignal" }] : []));
|
|
4470
|
-
textSignal = computed(() => this.buttonDisplayContentSignal()?.text, ...(ngDevMode ? [{ debugName: "textSignal" }] : []));
|
|
4533
|
+
}, ...(ngDevMode ? [{ debugName: "buttonDisplayTypeSignal" }] : /* istanbul ignore next */ []));
|
|
4534
|
+
iconSignal = computed(() => this.buttonDisplayContentSignal()?.icon, ...(ngDevMode ? [{ debugName: "iconSignal" }] : /* istanbul ignore next */ []));
|
|
4535
|
+
textSignal = computed(() => this.buttonDisplayContentSignal()?.text, ...(ngDevMode ? [{ debugName: "textSignal" }] : /* istanbul ignore next */ []));
|
|
4471
4536
|
disabled$ = toObservable(this.disabledSignal);
|
|
4472
4537
|
working$ = toObservable(this.workingSignal);
|
|
4473
4538
|
display$ = toObservable(this.buttonDisplayContentSignal);
|
|
@@ -4498,6 +4563,8 @@ class AbstractDbxButtonDirective {
|
|
|
4498
4563
|
}
|
|
4499
4564
|
/**
|
|
4500
4565
|
* Sets the button interceptor. If any interceptor is already set, it is replaced.
|
|
4566
|
+
*
|
|
4567
|
+
* @param interceptor - The interceptor to set on the button.
|
|
4501
4568
|
*/
|
|
4502
4569
|
setButtonInterceptor(interceptor) {
|
|
4503
4570
|
this._buttonInterceptor.next(interceptor);
|
|
@@ -4516,10 +4583,10 @@ class AbstractDbxButtonDirective {
|
|
|
4516
4583
|
_forceButtonClicked() {
|
|
4517
4584
|
this.buttonClick.emit();
|
|
4518
4585
|
}
|
|
4519
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4520
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.
|
|
4586
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: AbstractDbxButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4587
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.3", type: AbstractDbxButtonDirective, isStandalone: true, inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, working: { classPropertyName: "working", publicName: "working", isSignal: true, isRequired: false, transformFunction: null }, buttonDisplay: { classPropertyName: "buttonDisplay", publicName: "buttonDisplay", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { buttonClick: "buttonClick" }, ngImport: i0 });
|
|
4521
4588
|
}
|
|
4522
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4589
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: AbstractDbxButtonDirective, decorators: [{
|
|
4523
4590
|
type: Directive
|
|
4524
4591
|
}], ctorParameters: () => [], propDecorators: { buttonClick: [{ type: i0.Output, args: ["buttonClick"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], working: [{ type: i0.Input, args: [{ isSignal: true, alias: "working", required: false }] }], buttonDisplay: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonDisplay", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }] } });
|
|
4525
4592
|
// MARK: Implementation
|
|
@@ -4543,10 +4610,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
4543
4610
|
* ```
|
|
4544
4611
|
*/
|
|
4545
4612
|
class DbxButtonDirective extends AbstractDbxButtonDirective {
|
|
4546
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4547
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
4613
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxButtonDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
4614
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.3", type: DbxButtonDirective, isStandalone: true, selector: "[dbxButton]", providers: provideDbxButton(DbxButtonDirective), exportAs: ["dbxButton"], usesInheritance: true, ngImport: i0 });
|
|
4548
4615
|
}
|
|
4549
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4616
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxButtonDirective, decorators: [{
|
|
4550
4617
|
type: Directive,
|
|
4551
4618
|
args: [{
|
|
4552
4619
|
selector: '[dbxButton]',
|
|
@@ -4574,7 +4641,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
4574
4641
|
*/
|
|
4575
4642
|
class DbxLoadingButtonDirective {
|
|
4576
4643
|
dbxButton = inject(DbxButton, { host: true });
|
|
4577
|
-
context = input.required({ ...(ngDevMode ? { debugName: "context" } : {}), alias: 'dbxLoadingButton' });
|
|
4644
|
+
context = input.required({ ...(ngDevMode ? { debugName: "context" } : /* istanbul ignore next */ {}), alias: 'dbxLoadingButton' });
|
|
4578
4645
|
context$ = toObservable(this.context).pipe(maybeValueFromObservableOrValue(), distinctUntilChanged(), shareReplay(1));
|
|
4579
4646
|
contextSignal = toSignal(this.context$);
|
|
4580
4647
|
_loadingEffectSub = cleanSubscription();
|
|
@@ -4585,11 +4652,11 @@ class DbxLoadingButtonDirective {
|
|
|
4585
4652
|
subscription = context.stream$.subscribe((x) => this.dbxButton.setWorking(x.loading));
|
|
4586
4653
|
}
|
|
4587
4654
|
this._loadingEffectSub.setSub(subscription);
|
|
4588
|
-
}, ...(ngDevMode ? [{ debugName: "_loadingEffect" }] : []));
|
|
4589
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4590
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.
|
|
4655
|
+
}, ...(ngDevMode ? [{ debugName: "_loadingEffect" }] : /* istanbul ignore next */ []));
|
|
4656
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxLoadingButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4657
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.3", type: DbxLoadingButtonDirective, isStandalone: true, selector: "[dbxLoadingButton]", inputs: { context: { classPropertyName: "context", publicName: "dbxLoadingButton", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 });
|
|
4591
4658
|
}
|
|
4592
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4659
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxLoadingButtonDirective, decorators: [{
|
|
4593
4660
|
type: Directive,
|
|
4594
4661
|
args: [{
|
|
4595
4662
|
selector: '[dbxLoadingButton]',
|
|
@@ -4607,11 +4674,11 @@ const importsAndExports$1 = [DbxButtonDirective, DbxLoadingButtonDirective, DbxA
|
|
|
4607
4674
|
* - DbxButtonSegueDirective
|
|
4608
4675
|
*/
|
|
4609
4676
|
class DbxCoreButtonModule {
|
|
4610
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4611
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.
|
|
4612
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.
|
|
4677
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxCoreButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4678
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.3", ngImport: i0, type: DbxCoreButtonModule, imports: [DbxButtonDirective, DbxLoadingButtonDirective, DbxActionButtonTriggerDirective, DbxActionButtonDirective, DbxButtonSegueDirective], exports: [DbxButtonDirective, DbxLoadingButtonDirective, DbxActionButtonTriggerDirective, DbxActionButtonDirective, DbxButtonSegueDirective] });
|
|
4679
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxCoreButtonModule });
|
|
4613
4680
|
}
|
|
4614
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4681
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxCoreButtonModule, decorators: [{
|
|
4615
4682
|
type: NgModule,
|
|
4616
4683
|
args: [{
|
|
4617
4684
|
imports: importsAndExports$1,
|
|
@@ -4646,10 +4713,10 @@ class DbxAppContextService {
|
|
|
4646
4713
|
resetState() {
|
|
4647
4714
|
this.store.next(resetState());
|
|
4648
4715
|
}
|
|
4649
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4650
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
4716
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxAppContextService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4717
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxAppContextService, providedIn: 'root' });
|
|
4651
4718
|
}
|
|
4652
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4719
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxAppContextService, decorators: [{
|
|
4653
4720
|
type: Injectable,
|
|
4654
4721
|
args: [{
|
|
4655
4722
|
providedIn: 'root'
|
|
@@ -4676,17 +4743,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
4676
4743
|
*/
|
|
4677
4744
|
class DbxAppContextStateDirective {
|
|
4678
4745
|
dbxAppContextStateService = inject(DbxAppContextService);
|
|
4679
|
-
state = input(undefined, { ...(ngDevMode ? { debugName: "state" } : {}), alias: 'dbxAppContextState' });
|
|
4746
|
+
state = input(undefined, { ...(ngDevMode ? { debugName: "state" } : /* istanbul ignore next */ {}), alias: 'dbxAppContextState' });
|
|
4680
4747
|
_stateEffect = effect(() => {
|
|
4681
4748
|
const state = this.state();
|
|
4682
4749
|
if (state != null) {
|
|
4683
4750
|
this.dbxAppContextStateService.setState(state);
|
|
4684
4751
|
}
|
|
4685
|
-
}, ...(ngDevMode ? [{ debugName: "_stateEffect" }] : []));
|
|
4686
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4687
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.
|
|
4752
|
+
}, ...(ngDevMode ? [{ debugName: "_stateEffect" }] : /* istanbul ignore next */ []));
|
|
4753
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxAppContextStateDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4754
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.3", type: DbxAppContextStateDirective, isStandalone: true, selector: "[dbxAppContextState]", inputs: { state: { classPropertyName: "state", publicName: "dbxAppContextState", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
4688
4755
|
}
|
|
4689
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4756
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxAppContextStateDirective, decorators: [{
|
|
4690
4757
|
type: Directive,
|
|
4691
4758
|
args: [{
|
|
4692
4759
|
selector: '[dbxAppContextState]',
|
|
@@ -4700,7 +4767,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
4700
4767
|
* @returns EnvironmentProviders
|
|
4701
4768
|
*/
|
|
4702
4769
|
function provideDbxAppContextState() {
|
|
4703
|
-
return makeEnvironmentProviders([provideState(
|
|
4770
|
+
return makeEnvironmentProviders([provideState(FEATURE_KEY$1, reducers$1)]);
|
|
4704
4771
|
}
|
|
4705
4772
|
|
|
4706
4773
|
/**
|
|
@@ -4754,14 +4821,16 @@ class DbxAppEnviromentService {
|
|
|
4754
4821
|
}
|
|
4755
4822
|
/**
|
|
4756
4823
|
* Returns the environment, typed as a specific type.
|
|
4824
|
+
*
|
|
4825
|
+
* @returns The environment cast to the specified type.
|
|
4757
4826
|
*/
|
|
4758
4827
|
getEnvironment() {
|
|
4759
4828
|
return this.environment;
|
|
4760
4829
|
}
|
|
4761
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4762
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
4830
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxAppEnviromentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4831
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxAppEnviromentService });
|
|
4763
4832
|
}
|
|
4764
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4833
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxAppEnviromentService, decorators: [{
|
|
4765
4834
|
type: Injectable
|
|
4766
4835
|
}] });
|
|
4767
4836
|
|
|
@@ -4769,6 +4838,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
4769
4838
|
* Registers {@link DbxAppEnviroment} and {@link DbxAppEnviromentService} as environment-level providers.
|
|
4770
4839
|
*
|
|
4771
4840
|
* @param environment - The concrete environment configuration to provide.
|
|
4841
|
+
* @returns The environment providers for the application environment.
|
|
4772
4842
|
*
|
|
4773
4843
|
* @example
|
|
4774
4844
|
* ```typescript
|
|
@@ -4925,15 +4995,25 @@ function provideDbxAnchor(sourceType) {
|
|
|
4925
4995
|
* @see {@link anchorTypeForAnchor} for anchor type resolution logic
|
|
4926
4996
|
*/
|
|
4927
4997
|
class AbstractDbxAnchorDirective {
|
|
4928
|
-
/**
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
/**
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
/**
|
|
4998
|
+
/**
|
|
4999
|
+
* Model input for the segue ref or router link to navigate to.
|
|
5000
|
+
*/
|
|
5001
|
+
ref = model(...(ngDevMode ? [undefined, { debugName: "ref" }] : /* istanbul ignore next */ []));
|
|
5002
|
+
/**
|
|
5003
|
+
* Model input for the full anchor configuration object.
|
|
5004
|
+
*/
|
|
5005
|
+
anchor = model(...(ngDevMode ? [undefined, { debugName: "anchor" }] : /* istanbul ignore next */ []));
|
|
5006
|
+
/**
|
|
5007
|
+
* Model input for externally controlling the disabled state.
|
|
5008
|
+
*/
|
|
5009
|
+
disabled = model(...(ngDevMode ? [undefined, { debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
5010
|
+
/**
|
|
5011
|
+
* Model input for externally controlling the selected state.
|
|
5012
|
+
*/
|
|
5013
|
+
selected = model(...(ngDevMode ? [undefined, { debugName: "selected" }] : /* istanbul ignore next */ []));
|
|
5014
|
+
/**
|
|
5015
|
+
* Computed anchor that merges the `ref` input with the `anchor` input, preferring `ref` when set.
|
|
5016
|
+
*/
|
|
4937
5017
|
anchorSignal = computed(() => {
|
|
4938
5018
|
const ref = this.ref();
|
|
4939
5019
|
const anchor = this.anchor();
|
|
@@ -4942,54 +5022,80 @@ class AbstractDbxAnchorDirective {
|
|
|
4942
5022
|
result = asSegueRef(ref);
|
|
4943
5023
|
}
|
|
4944
5024
|
return result;
|
|
4945
|
-
}, ...(ngDevMode ? [{ debugName: "anchorSignal" }] : []));
|
|
4946
|
-
/**
|
|
5025
|
+
}, ...(ngDevMode ? [{ debugName: "anchorSignal" }] : /* istanbul ignore next */ []));
|
|
5026
|
+
/**
|
|
5027
|
+
* Computed selected state that combines the `selected` input with the anchor's own `selected` property.
|
|
5028
|
+
*/
|
|
4947
5029
|
selectedSignal = computed(() => {
|
|
4948
5030
|
const selected = this.selected();
|
|
4949
5031
|
const anchor = this.anchorSignal();
|
|
4950
5032
|
return selected || anchor?.selected;
|
|
4951
|
-
}, ...(ngDevMode ? [{ debugName: "selectedSignal" }] : []));
|
|
4952
|
-
/**
|
|
5033
|
+
}, ...(ngDevMode ? [{ debugName: "selectedSignal" }] : /* istanbul ignore next */ []));
|
|
5034
|
+
/**
|
|
5035
|
+
* Computed {@link ClickableAnchorType} derived from the current anchor and disabled state.
|
|
5036
|
+
*/
|
|
4953
5037
|
typeSignal = computed(() => {
|
|
4954
5038
|
const anchor = this.anchorSignal();
|
|
4955
5039
|
const disabled = this.disabled();
|
|
4956
5040
|
return anchorTypeForAnchor(anchor, disabled);
|
|
4957
|
-
}, ...(ngDevMode ? [{ debugName: "typeSignal" }] : []));
|
|
4958
|
-
/**
|
|
5041
|
+
}, ...(ngDevMode ? [{ debugName: "typeSignal" }] : /* istanbul ignore next */ []));
|
|
5042
|
+
/**
|
|
5043
|
+
* Computed disabled state that combines the `disabled` input with the anchor's own `disabled` property.
|
|
5044
|
+
*/
|
|
4959
5045
|
disabledSignal = computed(() => {
|
|
4960
5046
|
const disabled = this.disabled();
|
|
4961
5047
|
const anchor = this.anchorSignal();
|
|
4962
5048
|
return disabled || anchor?.disabled;
|
|
4963
|
-
}, ...(ngDevMode ? [{ debugName: "disabledSignal" }] : []));
|
|
4964
|
-
/**
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
5049
|
+
}, ...(ngDevMode ? [{ debugName: "disabledSignal" }] : /* istanbul ignore next */ []));
|
|
5050
|
+
/**
|
|
5051
|
+
* Computed URL extracted from the current anchor's `url` property.
|
|
5052
|
+
*/
|
|
5053
|
+
urlSignal = computed(() => this.anchorSignal()?.url, ...(ngDevMode ? [{ debugName: "urlSignal" }] : /* istanbul ignore next */ []));
|
|
5054
|
+
/**
|
|
5055
|
+
* Computed target (e.g., `_blank`) extracted from the current anchor's `target` property.
|
|
5056
|
+
*/
|
|
5057
|
+
targetSignal = computed(() => this.anchorSignal()?.target, ...(ngDevMode ? [{ debugName: "targetSignal" }] : /* istanbul ignore next */ []));
|
|
4968
5058
|
anchor$ = toObservable(this.anchorSignal);
|
|
4969
5059
|
disabled$ = toObservable(this.disabledSignal);
|
|
4970
5060
|
selected$ = toObservable(this.selectedSignal);
|
|
4971
5061
|
type$ = toObservable(this.typeSignal);
|
|
4972
5062
|
// MARK: Accessors
|
|
4973
|
-
/**
|
|
5063
|
+
/**
|
|
5064
|
+
* Sets the segue ref or router link for this anchor.
|
|
5065
|
+
*
|
|
5066
|
+
* @param ref - The segue ref or router link to set.
|
|
5067
|
+
*/
|
|
4974
5068
|
setRef(ref) {
|
|
4975
5069
|
this.ref.set(ref);
|
|
4976
5070
|
}
|
|
4977
|
-
/**
|
|
5071
|
+
/**
|
|
5072
|
+
* Sets the full anchor configuration object.
|
|
5073
|
+
*
|
|
5074
|
+
* @param anchor - The anchor configuration to set.
|
|
5075
|
+
*/
|
|
4978
5076
|
setAnchor(anchor) {
|
|
4979
5077
|
this.anchor.set(anchor);
|
|
4980
5078
|
}
|
|
4981
|
-
/**
|
|
5079
|
+
/**
|
|
5080
|
+
* Sets the external disabled state override.
|
|
5081
|
+
*
|
|
5082
|
+
* @param disabled - Whether the anchor should be disabled.
|
|
5083
|
+
*/
|
|
4982
5084
|
setDisabled(disabled) {
|
|
4983
5085
|
this.disabled.set(disabled);
|
|
4984
5086
|
}
|
|
4985
|
-
/**
|
|
5087
|
+
/**
|
|
5088
|
+
* Sets the external selected state override.
|
|
5089
|
+
*
|
|
5090
|
+
* @param selected - Whether the anchor should be selected.
|
|
5091
|
+
*/
|
|
4986
5092
|
setSelected(selected) {
|
|
4987
5093
|
this.selected.set(selected);
|
|
4988
5094
|
}
|
|
4989
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4990
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.
|
|
5095
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: AbstractDbxAnchorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
5096
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.3", type: AbstractDbxAnchorDirective, isStandalone: true, inputs: { ref: { classPropertyName: "ref", publicName: "ref", isSignal: true, isRequired: false, transformFunction: null }, anchor: { classPropertyName: "anchor", publicName: "anchor", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { ref: "refChange", anchor: "anchorChange", disabled: "disabledChange", selected: "selectedChange" }, ngImport: i0 });
|
|
4991
5097
|
}
|
|
4992
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
5098
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: AbstractDbxAnchorDirective, decorators: [{
|
|
4993
5099
|
type: Directive
|
|
4994
5100
|
}], propDecorators: { ref: [{ type: i0.Input, args: [{ isSignal: true, alias: "ref", required: false }] }, { type: i0.Output, args: ["refChange"] }], anchor: [{ type: i0.Input, args: [{ isSignal: true, alias: "anchor", required: false }] }, { type: i0.Output, args: ["anchorChange"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }, { type: i0.Output, args: ["disabledChange"] }], selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }, { type: i0.Output, args: ["selectedChange"] }] } });
|
|
4995
5101
|
|
|
@@ -5116,6 +5222,7 @@ const DEFAULT_REDIRECT_FOR_USER_IDENTIFIER_PARAM_KEY = 'uid';
|
|
|
5116
5222
|
* missing or matches the placeholder value.
|
|
5117
5223
|
*
|
|
5118
5224
|
* @param input - Configuration specifying the route criteria, access control logic, and optional parameter overrides.
|
|
5225
|
+
* @returns The result of registering the transition hook.
|
|
5119
5226
|
*
|
|
5120
5227
|
* @see {@link RedirectForUserIdentifierParamHookInput}
|
|
5121
5228
|
* @see {@link redirectForIdentifierParamHook}
|
|
@@ -5223,19 +5330,19 @@ class DbxAngularRouterService {
|
|
|
5223
5330
|
}));
|
|
5224
5331
|
return this.go(segueUpdate);
|
|
5225
5332
|
}
|
|
5226
|
-
isActive(
|
|
5333
|
+
isActive(_segueRef) {
|
|
5227
5334
|
return false; // TODO!
|
|
5228
5335
|
}
|
|
5229
|
-
isActiveExactly(
|
|
5336
|
+
isActiveExactly(_segueRef) {
|
|
5230
5337
|
return false; // TODO!
|
|
5231
5338
|
}
|
|
5232
|
-
comparePrecision(
|
|
5339
|
+
comparePrecision(_a, _b) {
|
|
5233
5340
|
return 0; // TODO!
|
|
5234
5341
|
}
|
|
5235
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5236
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
5342
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxAngularRouterService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5343
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxAngularRouterService });
|
|
5237
5344
|
}
|
|
5238
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
5345
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxAngularRouterService, decorators: [{
|
|
5239
5346
|
type: Injectable
|
|
5240
5347
|
}] });
|
|
5241
5348
|
|
|
@@ -5274,11 +5381,11 @@ class DbxCoreAngularRouterSegueModule {
|
|
|
5274
5381
|
]
|
|
5275
5382
|
};
|
|
5276
5383
|
}
|
|
5277
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5278
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.
|
|
5279
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.
|
|
5384
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxCoreAngularRouterSegueModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5385
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.3", ngImport: i0, type: DbxCoreAngularRouterSegueModule });
|
|
5386
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxCoreAngularRouterSegueModule });
|
|
5280
5387
|
}
|
|
5281
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
5388
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxCoreAngularRouterSegueModule, decorators: [{
|
|
5282
5389
|
type: NgModule,
|
|
5283
5390
|
args: [{}]
|
|
5284
5391
|
}] });
|
|
@@ -5388,13 +5495,12 @@ class DbxUIRouterService {
|
|
|
5388
5495
|
}
|
|
5389
5496
|
}
|
|
5390
5497
|
const targetRef = ref.startsWith('.') ? `^${ref}` : ref;
|
|
5391
|
-
|
|
5392
|
-
return active;
|
|
5498
|
+
return exactly ? this.state.is(targetRef, refParams) : this.state.includes(targetRef, refParams);
|
|
5393
5499
|
}
|
|
5394
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5395
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
5500
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxUIRouterService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5501
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxUIRouterService });
|
|
5396
5502
|
}
|
|
5397
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
5503
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxUIRouterService, decorators: [{
|
|
5398
5504
|
type: Injectable
|
|
5399
5505
|
}], ctorParameters: () => [] });
|
|
5400
5506
|
|
|
@@ -5508,8 +5614,7 @@ function isLatestSuccessfulRoute(config) {
|
|
|
5508
5614
|
const routes = asArray(config.routes);
|
|
5509
5615
|
const checkRoute = activeExactly ? (route) => dbxRouterService.isActiveExactly(route) : (route) => dbxRouterService.isActive(route);
|
|
5510
5616
|
return successTransition(dbxRouterTransitionService.transitions$).pipe(startWith(undefined), map(() => {
|
|
5511
|
-
|
|
5512
|
-
return isActive;
|
|
5617
|
+
return routes.some(checkRoute);
|
|
5513
5618
|
}), distinctUntilChanged(), shareReplay(1));
|
|
5514
5619
|
}
|
|
5515
5620
|
|
|
@@ -5534,14 +5639,18 @@ function isLatestSuccessfulRoute(config) {
|
|
|
5534
5639
|
*/
|
|
5535
5640
|
class AbstractTransitionDirective {
|
|
5536
5641
|
dbxRouterTransitionService = inject(DbxRouterTransitionService);
|
|
5537
|
-
/**
|
|
5642
|
+
/**
|
|
5643
|
+
* Observable that emits on each successful router transition.
|
|
5644
|
+
*/
|
|
5538
5645
|
transitionSuccess$ = successTransition(this.dbxRouterTransitionService.transitions$);
|
|
5539
|
-
/**
|
|
5646
|
+
/**
|
|
5647
|
+
* Observable that emits immediately on initialization and on each subsequent successful transition.
|
|
5648
|
+
*/
|
|
5540
5649
|
initAndUpdateOnTransitionSuccess$ = this.transitionSuccess$.pipe(startWith(undefined));
|
|
5541
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5542
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
5650
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: AbstractTransitionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
5651
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.3", type: AbstractTransitionDirective, isStandalone: true, ngImport: i0 });
|
|
5543
5652
|
}
|
|
5544
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
5653
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: AbstractTransitionDirective, decorators: [{
|
|
5545
5654
|
type: Directive
|
|
5546
5655
|
}] });
|
|
5547
5656
|
|
|
@@ -5579,10 +5688,10 @@ class AbstractTransitionWatcherDirective extends AbstractTransitionDirective {
|
|
|
5579
5688
|
// remove this function and replace, if necessary or remove entirely with angular zoneless implementation details.
|
|
5580
5689
|
this.ngZone.run(() => this.updateForSuccessfulTransition());
|
|
5581
5690
|
}
|
|
5582
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5583
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
5691
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: AbstractTransitionWatcherDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
5692
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.3", type: AbstractTransitionWatcherDirective, isStandalone: true, usesInheritance: true, ngImport: i0 });
|
|
5584
5693
|
}
|
|
5585
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
5694
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: AbstractTransitionWatcherDirective, decorators: [{
|
|
5586
5695
|
type: Directive
|
|
5587
5696
|
}], ctorParameters: () => [] });
|
|
5588
5697
|
|
|
@@ -5631,8 +5740,8 @@ function onRouterTransitionSuccessEvent(events$) {
|
|
|
5631
5740
|
/**
|
|
5632
5741
|
* Creates an observable that returns true when the route for the input segueRef is active.
|
|
5633
5742
|
*
|
|
5634
|
-
* @param
|
|
5635
|
-
* @
|
|
5743
|
+
* @param config - Configuration specifying the router service, segue ref, and matching options.
|
|
5744
|
+
* @returns An observable that emits `true` when the segue ref's route is active.
|
|
5636
5745
|
*/
|
|
5637
5746
|
function isSegueRefActiveOnTransitionSuccess(config) {
|
|
5638
5747
|
const isActiveFn = isSegueRefActiveFunction(config);
|
|
@@ -5641,8 +5750,8 @@ function isSegueRefActiveOnTransitionSuccess(config) {
|
|
|
5641
5750
|
/**
|
|
5642
5751
|
* Operator function that maps the input segueRef to a boolean depending on the current route state.
|
|
5643
5752
|
*
|
|
5644
|
-
* @param
|
|
5645
|
-
* @
|
|
5753
|
+
* @param config - Configuration specifying the router service and default behavior for null refs.
|
|
5754
|
+
* @returns An RxJS operator that maps a segue ref to whether it is currently active.
|
|
5646
5755
|
*/
|
|
5647
5756
|
function isSegueRefActive(config) {
|
|
5648
5757
|
const { defaultIfNull = false } = config;
|
|
@@ -5695,7 +5804,7 @@ function dbxRouteParamReaderInstance(dbxRouterService, defaultParamKey, defaultV
|
|
|
5695
5804
|
setParamValue(value) {
|
|
5696
5805
|
combineLatest([paramKey$, asObservableFromGetter(value)])
|
|
5697
5806
|
.pipe(first())
|
|
5698
|
-
.subscribe(([paramKey, value]) => dbxRouterService.updateParams({ [paramKey]: value }));
|
|
5807
|
+
.subscribe(([paramKey, value]) => void dbxRouterService.updateParams({ [paramKey]: value }));
|
|
5699
5808
|
}
|
|
5700
5809
|
};
|
|
5701
5810
|
return result;
|
|
@@ -5982,10 +6091,10 @@ class DbxRouteModelIdFromAuthUserIdDirective {
|
|
|
5982
6091
|
constructor() {
|
|
5983
6092
|
cleanSubscription(this.dbxRouteModelIdDelegate.useRouteModelIdParamsObservable(this.dbxAuthService.userIdentifier$, this.dbxAuthService.userIdentifier$));
|
|
5984
6093
|
}
|
|
5985
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5986
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
6094
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxRouteModelIdFromAuthUserIdDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
6095
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.3", type: DbxRouteModelIdFromAuthUserIdDirective, isStandalone: true, selector: "[dbxRouteModelIdFromAuthUserId]", ngImport: i0 });
|
|
5987
6096
|
}
|
|
5988
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
6097
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxRouteModelIdFromAuthUserIdDirective, decorators: [{
|
|
5989
6098
|
type: Directive,
|
|
5990
6099
|
args: [{
|
|
5991
6100
|
selector: '[dbxRouteModelIdFromAuthUserId]',
|
|
@@ -6049,10 +6158,10 @@ class DbxRouteModelIdDirective {
|
|
|
6049
6158
|
set dbxRouteModelIdDefaultDecision(decider) {
|
|
6050
6159
|
this._redirectInstance.setDecider(decider);
|
|
6051
6160
|
}
|
|
6052
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
6053
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
6161
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxRouteModelIdDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
6162
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.3", type: DbxRouteModelIdDirective, isStandalone: true, selector: "[dbxRouteModelId]", inputs: { idParam: ["dbxRouteModelId", "idParam"], dbxRouteModelIdDefault: "dbxRouteModelIdDefault", dbxRouteModelIdDefaultRedirect: "dbxRouteModelIdDefaultRedirect", dbxRouteModelIdDefaultDecision: "dbxRouteModelIdDefaultDecision" }, ngImport: i0 });
|
|
6054
6163
|
}
|
|
6055
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
6164
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxRouteModelIdDirective, decorators: [{
|
|
6056
6165
|
type: Directive,
|
|
6057
6166
|
args: [{
|
|
6058
6167
|
selector: '[dbxRouteModelId]',
|
|
@@ -6126,10 +6235,10 @@ class DbxRouteModelKeyDirective {
|
|
|
6126
6235
|
set dbxRouteModelKeyDefaultDecision(decider) {
|
|
6127
6236
|
this._redirectInstance.setDecider(decider);
|
|
6128
6237
|
}
|
|
6129
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
6130
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
6238
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxRouteModelKeyDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
6239
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.3", type: DbxRouteModelKeyDirective, isStandalone: true, selector: "[dbxRouteModelKey]", inputs: { keyParam: ["dbxRouteModelKey", "keyParam"], dbxRouteModelKeyDefault: "dbxRouteModelKeyDefault", dbxRouteModelKeyDefaultRedirect: "dbxRouteModelKeyDefaultRedirect", dbxRouteModelKeyDefaultDecision: "dbxRouteModelKeyDefaultDecision" }, ngImport: i0 });
|
|
6131
6240
|
}
|
|
6132
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
6241
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxRouteModelKeyDirective, decorators: [{
|
|
6133
6242
|
type: Directive,
|
|
6134
6243
|
args: [{
|
|
6135
6244
|
selector: '[dbxRouteModelKey]',
|
|
@@ -6161,10 +6270,10 @@ class AsObservablePipe {
|
|
|
6161
6270
|
transform(input) {
|
|
6162
6271
|
return asObservableFromGetter(input);
|
|
6163
6272
|
}
|
|
6164
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
6165
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.
|
|
6273
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: AsObservablePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
6274
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.3", ngImport: i0, type: AsObservablePipe, isStandalone: true, name: "asObservable" });
|
|
6166
6275
|
}
|
|
6167
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
6276
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: AsObservablePipe, decorators: [{
|
|
6168
6277
|
type: Pipe,
|
|
6169
6278
|
args: [{
|
|
6170
6279
|
name: 'asObservable',
|
|
@@ -6195,10 +6304,10 @@ class DateDayRangePipe {
|
|
|
6195
6304
|
return unavailable;
|
|
6196
6305
|
}
|
|
6197
6306
|
}
|
|
6198
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
6199
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.
|
|
6307
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DateDayRangePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
6308
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.3", ngImport: i0, type: DateDayRangePipe, isStandalone: true, name: "dateDayRange" });
|
|
6200
6309
|
}
|
|
6201
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
6310
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DateDayRangePipe, decorators: [{
|
|
6202
6311
|
type: Pipe,
|
|
6203
6312
|
args: [{
|
|
6204
6313
|
name: 'dateDayRange',
|
|
@@ -6235,10 +6344,10 @@ class ToJsDatePipe {
|
|
|
6235
6344
|
transform(input) {
|
|
6236
6345
|
return ToJsDatePipe.toJsDate(input);
|
|
6237
6346
|
}
|
|
6238
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
6239
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.
|
|
6347
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: ToJsDatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
6348
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.3", ngImport: i0, type: ToJsDatePipe, isStandalone: true, name: "toJsDate" });
|
|
6240
6349
|
}
|
|
6241
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
6350
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: ToJsDatePipe, decorators: [{
|
|
6242
6351
|
type: Pipe,
|
|
6243
6352
|
args: [{
|
|
6244
6353
|
name: 'toJsDate',
|
|
@@ -6275,10 +6384,10 @@ class DateDistancePipe {
|
|
|
6275
6384
|
return unavailable;
|
|
6276
6385
|
}
|
|
6277
6386
|
}
|
|
6278
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
6279
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.
|
|
6387
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DateDistancePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
6388
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.3", ngImport: i0, type: DateDistancePipe, isStandalone: true, name: "dateDistance", pure: false });
|
|
6280
6389
|
}
|
|
6281
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
6390
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DateDistancePipe, decorators: [{
|
|
6282
6391
|
type: Pipe,
|
|
6283
6392
|
args: [{
|
|
6284
6393
|
name: 'dateDistance',
|
|
@@ -6317,10 +6426,10 @@ class DateFormatDistancePipe {
|
|
|
6317
6426
|
}
|
|
6318
6427
|
return undefined;
|
|
6319
6428
|
}
|
|
6320
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
6321
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.
|
|
6429
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DateFormatDistancePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
6430
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.3", ngImport: i0, type: DateFormatDistancePipe, isStandalone: true, name: "dateFormatDistance", pure: false });
|
|
6322
6431
|
}
|
|
6323
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
6432
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DateFormatDistancePipe, decorators: [{
|
|
6324
6433
|
type: Pipe,
|
|
6325
6434
|
args: [{
|
|
6326
6435
|
name: 'dateFormatDistance',
|
|
@@ -6343,6 +6452,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
6343
6452
|
*/
|
|
6344
6453
|
class DateFormatFromToPipe {
|
|
6345
6454
|
locale = inject(LOCALE_ID);
|
|
6455
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
6346
6456
|
static formatFromTo(input, format, minutes, locale) {
|
|
6347
6457
|
if (input) {
|
|
6348
6458
|
const date = toJsDate(input);
|
|
@@ -6355,10 +6465,10 @@ class DateFormatFromToPipe {
|
|
|
6355
6465
|
transform(input, format, minutes) {
|
|
6356
6466
|
return DateFormatFromToPipe.formatFromTo(input, format, minutes, this.locale);
|
|
6357
6467
|
}
|
|
6358
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
6359
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.
|
|
6468
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DateFormatFromToPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
6469
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.3", ngImport: i0, type: DateFormatFromToPipe, isStandalone: true, name: "dateFormatFromTo" });
|
|
6360
6470
|
}
|
|
6361
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
6471
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DateFormatFromToPipe, decorators: [{
|
|
6362
6472
|
type: Pipe,
|
|
6363
6473
|
args: [{
|
|
6364
6474
|
name: 'dateFormatFromTo',
|
|
@@ -6390,10 +6500,10 @@ class DateDayTimeRangePipe {
|
|
|
6390
6500
|
return unavailable;
|
|
6391
6501
|
}
|
|
6392
6502
|
}
|
|
6393
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
6394
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.
|
|
6503
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DateDayTimeRangePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
6504
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.3", ngImport: i0, type: DateDayTimeRangePipe, isStandalone: true, name: "dateDayTimeRange" });
|
|
6395
6505
|
}
|
|
6396
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
6506
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DateDayTimeRangePipe, decorators: [{
|
|
6397
6507
|
type: Pipe,
|
|
6398
6508
|
args: [{
|
|
6399
6509
|
name: 'dateDayTimeRange',
|
|
@@ -6425,10 +6535,10 @@ class DateTimeRangePipe {
|
|
|
6425
6535
|
return unavailable;
|
|
6426
6536
|
}
|
|
6427
6537
|
}
|
|
6428
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
6429
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.
|
|
6538
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DateTimeRangePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
6539
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.3", ngImport: i0, type: DateTimeRangePipe, isStandalone: true, name: "dateTimeRange" });
|
|
6430
6540
|
}
|
|
6431
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
6541
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DateTimeRangePipe, decorators: [{
|
|
6432
6542
|
type: Pipe,
|
|
6433
6543
|
args: [{
|
|
6434
6544
|
name: 'dateTimeRange',
|
|
@@ -6461,10 +6571,10 @@ class DateRangeDistancePipe {
|
|
|
6461
6571
|
return unavailable;
|
|
6462
6572
|
}
|
|
6463
6573
|
}
|
|
6464
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
6465
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.
|
|
6574
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DateRangeDistancePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
6575
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.3", ngImport: i0, type: DateRangeDistancePipe, isStandalone: true, name: "dateRangeDistance", pure: false });
|
|
6466
6576
|
}
|
|
6467
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
6577
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DateRangeDistancePipe, decorators: [{
|
|
6468
6578
|
type: Pipe,
|
|
6469
6579
|
args: [{
|
|
6470
6580
|
name: 'dateRangeDistance',
|
|
@@ -6496,10 +6606,10 @@ class DateTimeRangeOnlyPipe {
|
|
|
6496
6606
|
return unavailable;
|
|
6497
6607
|
}
|
|
6498
6608
|
}
|
|
6499
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
6500
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.
|
|
6609
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DateTimeRangeOnlyPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
6610
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.3", ngImport: i0, type: DateTimeRangeOnlyPipe, isStandalone: true, name: "dateTimeRangeOnly" });
|
|
6501
6611
|
}
|
|
6502
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
6612
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DateTimeRangeOnlyPipe, decorators: [{
|
|
6503
6613
|
type: Pipe,
|
|
6504
6614
|
args: [{
|
|
6505
6615
|
name: 'dateTimeRangeOnly',
|
|
@@ -6530,10 +6640,10 @@ class TargetDateToSystemDatePipe {
|
|
|
6530
6640
|
return undefined;
|
|
6531
6641
|
}
|
|
6532
6642
|
}
|
|
6533
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
6534
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.
|
|
6643
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: TargetDateToSystemDatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
6644
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.3", ngImport: i0, type: TargetDateToSystemDatePipe, isStandalone: true, name: "targetDateToSystemDate", pure: false });
|
|
6535
6645
|
}
|
|
6536
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
6646
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: TargetDateToSystemDatePipe, decorators: [{
|
|
6537
6647
|
type: Pipe,
|
|
6538
6648
|
args: [{
|
|
6539
6649
|
name: 'targetDateToSystemDate',
|
|
@@ -6569,10 +6679,10 @@ class DateTimeRangeOnlyDistancePipe {
|
|
|
6569
6679
|
return unavailable;
|
|
6570
6680
|
}
|
|
6571
6681
|
}
|
|
6572
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
6573
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.
|
|
6682
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DateTimeRangeOnlyDistancePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
6683
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.3", ngImport: i0, type: DateTimeRangeOnlyDistancePipe, isStandalone: true, name: "dateTimeRangeOnlyDistance" });
|
|
6574
6684
|
}
|
|
6575
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
6685
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DateTimeRangeOnlyDistancePipe, decorators: [{
|
|
6576
6686
|
type: Pipe,
|
|
6577
6687
|
args: [{
|
|
6578
6688
|
name: 'dateTimeRangeOnlyDistance',
|
|
@@ -6606,10 +6716,10 @@ class TimezoneAbbreviationPipe {
|
|
|
6606
6716
|
return undefined;
|
|
6607
6717
|
}
|
|
6608
6718
|
}
|
|
6609
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
6610
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.
|
|
6719
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: TimezoneAbbreviationPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
6720
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.3", ngImport: i0, type: TimezoneAbbreviationPipe, isStandalone: true, name: "timezoneAbbreviation", pure: false });
|
|
6611
6721
|
}
|
|
6612
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
6722
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: TimezoneAbbreviationPipe, decorators: [{
|
|
6613
6723
|
type: Pipe,
|
|
6614
6724
|
args: [{
|
|
6615
6725
|
name: 'timezoneAbbreviation',
|
|
@@ -6639,10 +6749,10 @@ class SystemDateToTargetDatePipe {
|
|
|
6639
6749
|
return undefined;
|
|
6640
6750
|
}
|
|
6641
6751
|
}
|
|
6642
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
6643
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.
|
|
6752
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: SystemDateToTargetDatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
6753
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.3", ngImport: i0, type: SystemDateToTargetDatePipe, isStandalone: true, name: "systemDateToTargetDate", pure: false });
|
|
6644
6754
|
}
|
|
6645
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
6755
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: SystemDateToTargetDatePipe, decorators: [{
|
|
6646
6756
|
type: Pipe,
|
|
6647
6757
|
args: [{
|
|
6648
6758
|
name: 'systemDateToTargetDate',
|
|
@@ -6693,10 +6803,10 @@ class MinutesStringPipe {
|
|
|
6693
6803
|
}
|
|
6694
6804
|
return result;
|
|
6695
6805
|
}
|
|
6696
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
6697
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.
|
|
6806
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: MinutesStringPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
6807
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.3", ngImport: i0, type: MinutesStringPipe, isStandalone: true, name: "minutesString", pure: false });
|
|
6698
6808
|
}
|
|
6699
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
6809
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: MinutesStringPipe, decorators: [{
|
|
6700
6810
|
type: Pipe,
|
|
6701
6811
|
args: [{
|
|
6702
6812
|
name: 'minutesString',
|
|
@@ -6739,10 +6849,10 @@ class TimeDistanceCountdownPipe {
|
|
|
6739
6849
|
return unavailable;
|
|
6740
6850
|
}
|
|
6741
6851
|
}
|
|
6742
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
6743
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.
|
|
6852
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: TimeDistanceCountdownPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
6853
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.3", ngImport: i0, type: TimeDistanceCountdownPipe, isStandalone: true, name: "timeCountdownDistance", pure: false });
|
|
6744
6854
|
}
|
|
6745
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
6855
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: TimeDistanceCountdownPipe, decorators: [{
|
|
6746
6856
|
type: Pipe,
|
|
6747
6857
|
args: [{
|
|
6748
6858
|
name: 'timeCountdownDistance',
|
|
@@ -6780,10 +6890,10 @@ class TimeDistancePipe {
|
|
|
6780
6890
|
return unavailable;
|
|
6781
6891
|
}
|
|
6782
6892
|
}
|
|
6783
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
6784
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.
|
|
6893
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: TimeDistancePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
6894
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.3", ngImport: i0, type: TimeDistancePipe, isStandalone: true, name: "timeDistance", pure: false });
|
|
6785
6895
|
}
|
|
6786
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
6896
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: TimeDistancePipe, decorators: [{
|
|
6787
6897
|
type: Pipe,
|
|
6788
6898
|
args: [{
|
|
6789
6899
|
name: 'timeDistance',
|
|
@@ -6814,10 +6924,10 @@ class ToMinutesPipe {
|
|
|
6814
6924
|
}
|
|
6815
6925
|
return result;
|
|
6816
6926
|
}
|
|
6817
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
6818
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.
|
|
6927
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: ToMinutesPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
6928
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.3", ngImport: i0, type: ToMinutesPipe, isStandalone: true, name: "toMinutes" });
|
|
6819
6929
|
}
|
|
6820
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
6930
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: ToMinutesPipe, decorators: [{
|
|
6821
6931
|
type: Pipe,
|
|
6822
6932
|
args: [{
|
|
6823
6933
|
name: 'toMinutes',
|
|
@@ -6847,7 +6957,7 @@ class PrettyJsonPipe {
|
|
|
6847
6957
|
try {
|
|
6848
6958
|
json = JSON.stringify(input, null, spacing);
|
|
6849
6959
|
}
|
|
6850
|
-
catch
|
|
6960
|
+
catch {
|
|
6851
6961
|
console.error('prettyjson pipe failed parsing input: ', input);
|
|
6852
6962
|
json = 'ERROR';
|
|
6853
6963
|
}
|
|
@@ -6857,10 +6967,10 @@ class PrettyJsonPipe {
|
|
|
6857
6967
|
transform(input, spacing) {
|
|
6858
6968
|
return PrettyJsonPipe.toPrettyJson(input, spacing);
|
|
6859
6969
|
}
|
|
6860
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
6861
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.
|
|
6970
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: PrettyJsonPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
6971
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.3", ngImport: i0, type: PrettyJsonPipe, isStandalone: true, name: "prettyjson" });
|
|
6862
6972
|
}
|
|
6863
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
6973
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: PrettyJsonPipe, decorators: [{
|
|
6864
6974
|
type: Pipe,
|
|
6865
6975
|
args: [{
|
|
6866
6976
|
name: 'prettyjson',
|
|
@@ -6886,10 +6996,10 @@ class CutTextPipe {
|
|
|
6886
6996
|
transform(input, maxLength, endText) {
|
|
6887
6997
|
return input != null ? cutString(input, maxLength, endText) : input;
|
|
6888
6998
|
}
|
|
6889
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
6890
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.
|
|
6999
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: CutTextPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
7000
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.3", ngImport: i0, type: CutTextPipe, isStandalone: true, name: "cutText" });
|
|
6891
7001
|
}
|
|
6892
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
7002
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: CutTextPipe, decorators: [{
|
|
6893
7003
|
type: Pipe,
|
|
6894
7004
|
args: [{
|
|
6895
7005
|
name: 'cutText',
|
|
@@ -6915,10 +7025,10 @@ class GetValuePipe {
|
|
|
6915
7025
|
transform(input, args) {
|
|
6916
7026
|
return getValueFromGetter(input, args);
|
|
6917
7027
|
}
|
|
6918
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
6919
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.
|
|
7028
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: GetValuePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
7029
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.3", ngImport: i0, type: GetValuePipe, isStandalone: true, name: "getValue", pure: false });
|
|
6920
7030
|
}
|
|
6921
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
7031
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: GetValuePipe, decorators: [{
|
|
6922
7032
|
type: Pipe,
|
|
6923
7033
|
args: [{
|
|
6924
7034
|
name: 'getValue',
|
|
@@ -6941,10 +7051,10 @@ class GetValueOncePipe {
|
|
|
6941
7051
|
transform(input, args) {
|
|
6942
7052
|
return getValueFromGetter(input, args);
|
|
6943
7053
|
}
|
|
6944
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
6945
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.
|
|
7054
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: GetValueOncePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
7055
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.3", ngImport: i0, type: GetValueOncePipe, isStandalone: true, name: "getValueOnce" });
|
|
6946
7056
|
}
|
|
6947
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
7057
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: GetValueOncePipe, decorators: [{
|
|
6948
7058
|
type: Pipe,
|
|
6949
7059
|
args: [{
|
|
6950
7060
|
name: 'getValueOnce',
|
|
@@ -6971,10 +7081,10 @@ class DollarAmountPipe {
|
|
|
6971
7081
|
transform(input, defaultIfNull) {
|
|
6972
7082
|
return defaultIfNull == null || input != null ? dollarAmountString(input) : defaultIfNull;
|
|
6973
7083
|
}
|
|
6974
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
6975
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.
|
|
7084
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DollarAmountPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
7085
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.3", ngImport: i0, type: DollarAmountPipe, isStandalone: true, name: "dollarAmount" });
|
|
6976
7086
|
}
|
|
6977
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
7087
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DollarAmountPipe, decorators: [{
|
|
6978
7088
|
type: Pipe,
|
|
6979
7089
|
args: [{
|
|
6980
7090
|
name: 'dollarAmount',
|
|
@@ -7004,10 +7114,10 @@ class AbstractFilterSourceConnectorDirective {
|
|
|
7004
7114
|
connectWithSource(filterSource) {
|
|
7005
7115
|
this._source.next(filterSource);
|
|
7006
7116
|
}
|
|
7007
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
7008
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
7117
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: AbstractFilterSourceConnectorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
7118
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.3", type: AbstractFilterSourceConnectorDirective, isStandalone: true, ngImport: i0 });
|
|
7009
7119
|
}
|
|
7010
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
7120
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: AbstractFilterSourceConnectorDirective, decorators: [{
|
|
7011
7121
|
type: Directive
|
|
7012
7122
|
}] });
|
|
7013
7123
|
|
|
@@ -7015,6 +7125,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
7015
7125
|
* Creates Angular providers that register a {@link FilterSource} implementation for DI.
|
|
7016
7126
|
*
|
|
7017
7127
|
* @param sourceType - The concrete filter source class to provide.
|
|
7128
|
+
* @returns An array of Angular providers for the filter source.
|
|
7018
7129
|
*
|
|
7019
7130
|
* @example
|
|
7020
7131
|
* ```typescript
|
|
@@ -7037,6 +7148,7 @@ function provideFilterSource(sourceType) {
|
|
|
7037
7148
|
* Creates Angular providers that register both a {@link FilterSourceConnector} and {@link FilterSource} for DI.
|
|
7038
7149
|
*
|
|
7039
7150
|
* @param sourceType - The concrete connector class to provide.
|
|
7151
|
+
* @returns An array of Angular providers for the filter source connector.
|
|
7040
7152
|
*/
|
|
7041
7153
|
function provideFilterSourceConnector(sourceType) {
|
|
7042
7154
|
return [
|
|
@@ -7068,6 +7180,7 @@ class FilterSourceDirective {
|
|
|
7068
7180
|
*
|
|
7069
7181
|
* @param sourceType - The concrete directive class.
|
|
7070
7182
|
* @param defaultFilterFactory - Optional factory to provide an initial filter value via DI.
|
|
7183
|
+
* @returns An array of Angular providers for the filter source directive.
|
|
7071
7184
|
*
|
|
7072
7185
|
* @example
|
|
7073
7186
|
* ```typescript
|
|
@@ -7128,10 +7241,10 @@ class AbstractFilterSourceDirective {
|
|
|
7128
7241
|
setInitialFilterTakesPriority(initialFilterTakesPriority) {
|
|
7129
7242
|
this._defaultFilterSource.setInitialFilterTakesPriority(initialFilterTakesPriority);
|
|
7130
7243
|
}
|
|
7131
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
7132
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
7244
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: AbstractFilterSourceDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
7245
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.3", type: AbstractFilterSourceDirective, isStandalone: true, ngImport: i0 });
|
|
7133
7246
|
}
|
|
7134
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
7247
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: AbstractFilterSourceDirective, decorators: [{
|
|
7135
7248
|
type: Directive
|
|
7136
7249
|
}] });
|
|
7137
7250
|
|
|
@@ -7154,10 +7267,10 @@ class DbxFilterConnectSourceDirective {
|
|
|
7154
7267
|
ngOnInit() {
|
|
7155
7268
|
this.filterSourceConnector.connectWithSource(this.filterSource);
|
|
7156
7269
|
}
|
|
7157
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
7158
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
7270
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFilterConnectSourceDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
7271
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.3", type: DbxFilterConnectSourceDirective, isStandalone: true, selector: "[dbxFilterConnectSource]", ngImport: i0 });
|
|
7159
7272
|
}
|
|
7160
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
7273
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFilterConnectSourceDirective, decorators: [{
|
|
7161
7274
|
type: Directive,
|
|
7162
7275
|
args: [{
|
|
7163
7276
|
selector: '[dbxFilterConnectSource]',
|
|
@@ -7178,10 +7291,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
7178
7291
|
* ```
|
|
7179
7292
|
*/
|
|
7180
7293
|
class DbxFilterSourceConnectorDirective extends AbstractFilterSourceConnectorDirective {
|
|
7181
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
7182
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
7294
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFilterSourceConnectorDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
7295
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.3", type: DbxFilterSourceConnectorDirective, isStandalone: true, selector: "[dbxFilterSourceConnector]", providers: [...provideFilterSource(DbxFilterSourceConnectorDirective), ...provideFilterSourceConnector(DbxFilterSourceConnectorDirective)], usesInheritance: true, ngImport: i0 });
|
|
7183
7296
|
}
|
|
7184
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
7297
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFilterSourceConnectorDirective, decorators: [{
|
|
7185
7298
|
type: Directive,
|
|
7186
7299
|
args: [{
|
|
7187
7300
|
selector: '[dbxFilterSourceConnector]',
|
|
@@ -7208,10 +7321,10 @@ class AbstractDbxFilterMapInstanceDirective {
|
|
|
7208
7321
|
setFilterMapKey(filterMapKey) {
|
|
7209
7322
|
this._currentFilterMapKey.next(filterMapKey);
|
|
7210
7323
|
}
|
|
7211
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
7212
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
7324
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: AbstractDbxFilterMapInstanceDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
7325
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.3", type: AbstractDbxFilterMapInstanceDirective, isStandalone: true, ngImport: i0 });
|
|
7213
7326
|
}
|
|
7214
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
7327
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: AbstractDbxFilterMapInstanceDirective, decorators: [{
|
|
7215
7328
|
type: Directive
|
|
7216
7329
|
}] });
|
|
7217
7330
|
|
|
@@ -7226,10 +7339,10 @@ class AbstractDbxFilterMapSourceDirective extends AbstractDbxFilterMapInstanceDi
|
|
|
7226
7339
|
initWithFilter(filterObs) {
|
|
7227
7340
|
this.instance$.pipe(first()).subscribe((x) => x.initWithFilter(filterObs));
|
|
7228
7341
|
}
|
|
7229
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
7230
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
7342
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: AbstractDbxFilterMapSourceDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
7343
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.3", type: AbstractDbxFilterMapSourceDirective, isStandalone: true, usesInheritance: true, ngImport: i0 });
|
|
7231
7344
|
}
|
|
7232
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
7345
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: AbstractDbxFilterMapSourceDirective, decorators: [{
|
|
7233
7346
|
type: Directive
|
|
7234
7347
|
}] });
|
|
7235
7348
|
/**
|
|
@@ -7245,12 +7358,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
7245
7358
|
* ```
|
|
7246
7359
|
*/
|
|
7247
7360
|
class DbxFilterMapSourceDirective extends AbstractDbxFilterMapSourceDirective {
|
|
7248
|
-
dbxFilterMapSource = input(...(ngDevMode ? [undefined, { debugName: "dbxFilterMapSource" }] : []));
|
|
7249
|
-
_dbxFilterMapSourceEffect = effect(() => this.setFilterMapKey(this.dbxFilterMapSource()), ...(ngDevMode ? [{ debugName: "_dbxFilterMapSourceEffect" }] : []));
|
|
7250
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
7251
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.
|
|
7361
|
+
dbxFilterMapSource = input(...(ngDevMode ? [undefined, { debugName: "dbxFilterMapSource" }] : /* istanbul ignore next */ []));
|
|
7362
|
+
_dbxFilterMapSourceEffect = effect(() => this.setFilterMapKey(this.dbxFilterMapSource()), ...(ngDevMode ? [{ debugName: "_dbxFilterMapSourceEffect" }] : /* istanbul ignore next */ []));
|
|
7363
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFilterMapSourceDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
7364
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.3", type: DbxFilterMapSourceDirective, isStandalone: true, selector: "[dbxFilterMapSource]", inputs: { dbxFilterMapSource: { classPropertyName: "dbxFilterMapSource", publicName: "dbxFilterMapSource", isSignal: true, isRequired: false, transformFunction: null } }, providers: [provideFilterSource(DbxFilterMapSourceDirective)], exportAs: ["dbxFilterMapSource"], usesInheritance: true, ngImport: i0 });
|
|
7252
7365
|
}
|
|
7253
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
7366
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFilterMapSourceDirective, decorators: [{
|
|
7254
7367
|
type: Directive,
|
|
7255
7368
|
args: [{
|
|
7256
7369
|
selector: '[dbxFilterMapSource]',
|
|
@@ -7275,8 +7388,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
7275
7388
|
* ```
|
|
7276
7389
|
*/
|
|
7277
7390
|
class DbxFilterMapSourceConnectorDirective extends AbstractDbxFilterMapSourceDirective {
|
|
7278
|
-
dbxFilterMapSourceConnector = input(...(ngDevMode ? [undefined, { debugName: "dbxFilterMapSourceConnector" }] : []));
|
|
7279
|
-
_dbxFilterMapSourceConnectorEffect = effect(() => this.setFilterMapKey(this.dbxFilterMapSourceConnector()), ...(ngDevMode ? [{ debugName: "_dbxFilterMapSourceConnectorEffect" }] : []));
|
|
7391
|
+
dbxFilterMapSourceConnector = input(...(ngDevMode ? [undefined, { debugName: "dbxFilterMapSourceConnector" }] : /* istanbul ignore next */ []));
|
|
7392
|
+
_dbxFilterMapSourceConnectorEffect = effect(() => this.setFilterMapKey(this.dbxFilterMapSourceConnector()), ...(ngDevMode ? [{ debugName: "_dbxFilterMapSourceConnectorEffect" }] : /* istanbul ignore next */ []));
|
|
7280
7393
|
// MARK: FilterSourceConnector
|
|
7281
7394
|
connectWithSource(filterSource) {
|
|
7282
7395
|
this.instance$.pipe(first()).subscribe((x) => {
|
|
@@ -7286,10 +7399,10 @@ class DbxFilterMapSourceConnectorDirective extends AbstractDbxFilterMapSourceDir
|
|
|
7286
7399
|
}
|
|
7287
7400
|
});
|
|
7288
7401
|
}
|
|
7289
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
7290
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.
|
|
7402
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFilterMapSourceConnectorDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
7403
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.3", type: DbxFilterMapSourceConnectorDirective, isStandalone: true, selector: "[dbxFilterMapSourceConnector]", inputs: { dbxFilterMapSourceConnector: { classPropertyName: "dbxFilterMapSourceConnector", publicName: "dbxFilterMapSourceConnector", isSignal: true, isRequired: false, transformFunction: null } }, providers: [...provideFilterSource(DbxFilterMapSourceConnectorDirective), ...provideFilterSourceConnector(DbxFilterMapSourceConnectorDirective)], exportAs: ["dbxFilterMapSourceConnector"], usesInheritance: true, ngImport: i0 });
|
|
7291
7404
|
}
|
|
7292
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
7405
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFilterMapSourceConnectorDirective, decorators: [{
|
|
7293
7406
|
type: Directive,
|
|
7294
7407
|
args: [{
|
|
7295
7408
|
selector: '[dbxFilterMapSourceConnector]',
|
|
@@ -7315,10 +7428,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
7315
7428
|
*/
|
|
7316
7429
|
class DbxFilterMapDirective {
|
|
7317
7430
|
filterMap = clean(inject((FilterMap)));
|
|
7318
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
7319
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
7431
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFilterMapDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
7432
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.3", type: DbxFilterMapDirective, isStandalone: true, selector: "[dbxFilterMap]", providers: [FilterMap], exportAs: ["dbxFilterMap"], ngImport: i0 });
|
|
7320
7433
|
}
|
|
7321
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
7434
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFilterMapDirective, decorators: [{
|
|
7322
7435
|
type: Directive,
|
|
7323
7436
|
args: [{
|
|
7324
7437
|
selector: '[dbxFilterMap]',
|
|
@@ -7330,12 +7443,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
7330
7443
|
|
|
7331
7444
|
/**
|
|
7332
7445
|
* Type guard that checks if an object is a {@link ClickableFilterPreset}.
|
|
7446
|
+
*
|
|
7447
|
+
* @param preset - The object to check.
|
|
7448
|
+
* @returns `true` if the object has a `presetValue` property.
|
|
7333
7449
|
*/
|
|
7334
7450
|
function isClickableFilterPreset(preset) {
|
|
7335
7451
|
return objectHasKey(preset, 'presetValue');
|
|
7336
7452
|
}
|
|
7337
7453
|
/**
|
|
7338
7454
|
* Type guard that checks if an object is a {@link ClickablePartialFilterPreset}.
|
|
7455
|
+
*
|
|
7456
|
+
* @param preset - The object to check.
|
|
7457
|
+
* @returns `true` if the object has `partialPresetValue` and `isActive` properties.
|
|
7339
7458
|
*/
|
|
7340
7459
|
function isClickablePartialFilterPreset(preset) {
|
|
7341
7460
|
return objectHasKeys(preset, ['partialPresetValue', 'isActive']);
|
|
@@ -7352,10 +7471,10 @@ function isClickablePartialFilterPreset(preset) {
|
|
|
7352
7471
|
* ```
|
|
7353
7472
|
*/
|
|
7354
7473
|
class DbxFilterSourceDirective extends AbstractFilterSourceDirective {
|
|
7355
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
7356
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
7474
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFilterSourceDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
7475
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.3", type: DbxFilterSourceDirective, isStandalone: true, selector: "[dbxFilterSource]", providers: provideFilterSourceDirective(DbxFilterSourceDirective), usesInheritance: true, ngImport: i0 });
|
|
7357
7476
|
}
|
|
7358
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
7477
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFilterSourceDirective, decorators: [{
|
|
7359
7478
|
type: Directive,
|
|
7360
7479
|
args: [{
|
|
7361
7480
|
selector: '[dbxFilterSource]',
|
|
@@ -7366,11 +7485,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
7366
7485
|
|
|
7367
7486
|
const importsAndExports = [DbxFilterSourceDirective, DbxFilterMapSourceConnectorDirective, DbxFilterConnectSourceDirective, DbxFilterSourceConnectorDirective, DbxFilterMapDirective, DbxFilterMapSourceDirective];
|
|
7368
7487
|
class DbxCoreFilterModule {
|
|
7369
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
7370
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.
|
|
7371
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.
|
|
7488
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxCoreFilterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7489
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.3", ngImport: i0, type: DbxCoreFilterModule, imports: [DbxFilterSourceDirective, DbxFilterMapSourceConnectorDirective, DbxFilterConnectSourceDirective, DbxFilterSourceConnectorDirective, DbxFilterMapDirective, DbxFilterMapSourceDirective], exports: [DbxFilterSourceDirective, DbxFilterMapSourceConnectorDirective, DbxFilterConnectSourceDirective, DbxFilterSourceConnectorDirective, DbxFilterMapDirective, DbxFilterMapSourceDirective] });
|
|
7490
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxCoreFilterModule });
|
|
7372
7491
|
}
|
|
7373
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
7492
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxCoreFilterModule, decorators: [{
|
|
7374
7493
|
type: NgModule,
|
|
7375
7494
|
args: [{
|
|
7376
7495
|
imports: importsAndExports,
|
|
@@ -7391,16 +7510,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
7391
7510
|
* ```
|
|
7392
7511
|
*/
|
|
7393
7512
|
const DBX_INJECTION_COMPONENT_DATA = new InjectionToken('DbxInjectionComponentConfigData');
|
|
7394
|
-
/**
|
|
7395
|
-
* Merges multiple partial {@link DbxInjectionComponentConfig} objects into a single configuration.
|
|
7396
|
-
*
|
|
7397
|
-
* Provider arrays are concatenated (not overwritten) so that all providers from all configs
|
|
7398
|
-
* are preserved. All other properties are merged with later values taking precedence.
|
|
7399
|
-
*
|
|
7400
|
-
* @typeParam T - The component type for the configuration.
|
|
7401
|
-
* @param configs - An array of partial configs (may contain `undefined`/`null` entries which are filtered out).
|
|
7402
|
-
* @returns A single merged partial configuration.
|
|
7403
|
-
*/
|
|
7404
7513
|
/**
|
|
7405
7514
|
* Compares two {@link DbxInjectionComponentConfig} values for structural equality, safely handling nullish values.
|
|
7406
7515
|
*
|
|
@@ -7411,8 +7520,16 @@ const DBX_INJECTION_COMPONENT_DATA = new InjectionToken('DbxInjectionComponentCo
|
|
|
7411
7520
|
* When both values are nullish, uses strict equality (`null === null` is `true`,
|
|
7412
7521
|
* `null === undefined` is `false`). The comparator is only invoked when both are non-nullish.
|
|
7413
7522
|
*/
|
|
7414
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
7415
7523
|
const dbxInjectionComponentConfigIsEqual = safeEqualityComparatorFunction((a, b) => a.componentClass === b.componentClass && a.data === b.data && a.init === b.init && a.injector === b.injector);
|
|
7524
|
+
/**
|
|
7525
|
+
* Merges multiple partial {@link DbxInjectionComponentConfig} objects into a single configuration.
|
|
7526
|
+
*
|
|
7527
|
+
* Provider arrays are concatenated so that all providers from all configs are preserved.
|
|
7528
|
+
* All other properties are merged with later values taking precedence.
|
|
7529
|
+
*
|
|
7530
|
+
* @param configs - An array of partial configs to merge. May contain `undefined`/`null` entries which are filtered out.
|
|
7531
|
+
* @returns A single merged partial configuration.
|
|
7532
|
+
*/
|
|
7416
7533
|
function mergeDbxInjectionComponentConfigs(configs) {
|
|
7417
7534
|
const providers = mergeArrays(filterMaybeArrayValues(configs).map((x) => x.providers));
|
|
7418
7535
|
const result = mergeObjects(configs);
|
|
@@ -7619,10 +7736,10 @@ class AbstractDbxInjectionDirective {
|
|
|
7619
7736
|
setContent(content) {
|
|
7620
7737
|
this._instance.content = content;
|
|
7621
7738
|
}
|
|
7622
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
7623
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
7739
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: AbstractDbxInjectionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
7740
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.3", type: AbstractDbxInjectionDirective, isStandalone: true, ngImport: i0 });
|
|
7624
7741
|
}
|
|
7625
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
7742
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: AbstractDbxInjectionDirective, decorators: [{
|
|
7626
7743
|
type: Directive
|
|
7627
7744
|
}] });
|
|
7628
7745
|
|
|
@@ -7658,26 +7775,26 @@ class DbxInjectionComponent extends AbstractDbxInjectionDirective {
|
|
|
7658
7775
|
/**
|
|
7659
7776
|
* Reference to the internal view container where dynamic content is projected.
|
|
7660
7777
|
*/
|
|
7661
|
-
content = viewChild('content', { ...(ngDevMode ? { debugName: "content" } : {}), read: ViewContainerRef });
|
|
7778
|
+
content = viewChild('content', { ...(ngDevMode ? { debugName: "content" } : /* istanbul ignore next */ {}), read: ViewContainerRef });
|
|
7662
7779
|
/**
|
|
7663
7780
|
* The component injection configuration. Accepts an observable, getter, or static value.
|
|
7664
7781
|
*/
|
|
7665
|
-
config = input(...(ngDevMode ? [undefined, { debugName: "config" }] : []));
|
|
7782
|
+
config = input(...(ngDevMode ? [undefined, { debugName: "config" }] : /* istanbul ignore next */ []));
|
|
7666
7783
|
/**
|
|
7667
7784
|
* The template injection configuration. Accepts an observable, getter, or static value.
|
|
7668
7785
|
* Only used when `config` is not provided.
|
|
7669
7786
|
*/
|
|
7670
|
-
template = input(...(ngDevMode ? [undefined, { debugName: "template" }] : []));
|
|
7787
|
+
template = input(...(ngDevMode ? [undefined, { debugName: "template" }] : /* istanbul ignore next */ []));
|
|
7671
7788
|
// allow signal writes for each as during their initialization they may write to a signal in some cases when initializing
|
|
7672
|
-
_contentEffect = effect(() => this.setContent(this.content()), ...(ngDevMode ? [{ debugName: "_contentEffect" }] : []));
|
|
7673
|
-
_configEffect = effect(() => this.setConfig(this.config()), ...(ngDevMode ? [{ debugName: "_configEffect" }] : []));
|
|
7674
|
-
_templateEffect = effect(() => this.setTemplate(this.template()), ...(ngDevMode ? [{ debugName: "_templateEffect" }] : []));
|
|
7675
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
7676
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.
|
|
7789
|
+
_contentEffect = effect(() => this.setContent(this.content()), ...(ngDevMode ? [{ debugName: "_contentEffect" }] : /* istanbul ignore next */ []));
|
|
7790
|
+
_configEffect = effect(() => this.setConfig(this.config()), ...(ngDevMode ? [{ debugName: "_configEffect" }] : /* istanbul ignore next */ []));
|
|
7791
|
+
_templateEffect = effect(() => this.setTemplate(this.template()), ...(ngDevMode ? [{ debugName: "_templateEffect" }] : /* istanbul ignore next */ []));
|
|
7792
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxInjectionComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
7793
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.3", type: DbxInjectionComponent, isStandalone: true, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: false, transformFunction: null }, template: { classPropertyName: "template", publicName: "template", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true, read: ViewContainerRef, isSignal: true }], usesInheritance: true, ngImport: i0, template: `
|
|
7677
7794
|
<ng-template #content></ng-template>
|
|
7678
7795
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
7679
7796
|
}
|
|
7680
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
7797
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxInjectionComponent, decorators: [{
|
|
7681
7798
|
type: Component,
|
|
7682
7799
|
args: [{
|
|
7683
7800
|
selector: 'dbx-injection, [dbxInjection], [dbx-injection]',
|
|
@@ -7717,15 +7834,15 @@ class DbxInjectionArrayComponent {
|
|
|
7717
7834
|
/**
|
|
7718
7835
|
* The array of keyed injection entries to render. Each entry produces a `<dbx-injection>` component.
|
|
7719
7836
|
*/
|
|
7720
|
-
entries = input(undefined, ...(ngDevMode ? [{ debugName: "entries" }] : []));
|
|
7721
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
7722
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
7837
|
+
entries = input(undefined, ...(ngDevMode ? [{ debugName: "entries" }] : /* istanbul ignore next */ []));
|
|
7838
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxInjectionArrayComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
7839
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.3", type: DbxInjectionArrayComponent, isStandalone: true, selector: "dbx-injection-array", inputs: { entries: { classPropertyName: "entries", publicName: "entries", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
7723
7840
|
@for (entry of entries(); track entry.key) {
|
|
7724
7841
|
<dbx-injection [config]="entry.injectionConfig"></dbx-injection>
|
|
7725
7842
|
}
|
|
7726
7843
|
`, isInline: true, dependencies: [{ kind: "component", type: DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
7727
7844
|
}
|
|
7728
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
7845
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxInjectionArrayComponent, decorators: [{
|
|
7729
7846
|
type: Component,
|
|
7730
7847
|
args: [{
|
|
7731
7848
|
selector: 'dbx-injection-array',
|
|
@@ -7821,12 +7938,12 @@ class DbxInjectionContextDirective {
|
|
|
7821
7938
|
* Optional static component config input. When set, the directive replaces its content
|
|
7822
7939
|
* with the specified component. When cleared (`undefined`), the original content is restored.
|
|
7823
7940
|
*/
|
|
7824
|
-
config = input(...(ngDevMode ? [undefined, { debugName: "config" }] : []));
|
|
7941
|
+
config = input(...(ngDevMode ? [undefined, { debugName: "config" }] : /* istanbul ignore next */ []));
|
|
7825
7942
|
_configEffect = effect(() => {
|
|
7826
7943
|
this.setConfig(this.config());
|
|
7827
7944
|
// NOTE: we have/call setConfig() because the effect() may not respond to all value changes,
|
|
7828
7945
|
// especially when setConfig() ends up being called twice quickly in quick succession.
|
|
7829
|
-
}, ...(ngDevMode ? [{ debugName: "_configEffect" }] : []));
|
|
7946
|
+
}, ...(ngDevMode ? [{ debugName: "_configEffect" }] : /* istanbul ignore next */ []));
|
|
7830
7947
|
ngOnInit() {
|
|
7831
7948
|
this._instance.content = this._viewContainer;
|
|
7832
7949
|
this._instance.init();
|
|
@@ -7845,6 +7962,9 @@ class DbxInjectionContextDirective {
|
|
|
7845
7962
|
}
|
|
7846
7963
|
/**
|
|
7847
7964
|
* {@inheritDoc DbxInjectionContext.showContext}
|
|
7965
|
+
*
|
|
7966
|
+
* @param config - The injection context configuration describing the component and its usage.
|
|
7967
|
+
* @returns A promise that resolves with the output of the injected component's usage.
|
|
7848
7968
|
*/
|
|
7849
7969
|
async showContext(config) {
|
|
7850
7970
|
// clear the current context before showing something new.
|
|
@@ -7854,9 +7974,11 @@ class DbxInjectionContextDirective {
|
|
|
7854
7974
|
let error;
|
|
7855
7975
|
// wait for the promise to resolve and use to finish using that instance.
|
|
7856
7976
|
try {
|
|
7977
|
+
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
|
7857
7978
|
promiseRef = promiseReference(async (resolve, reject) => {
|
|
7858
7979
|
const injectionConfig = {
|
|
7859
7980
|
...config.config,
|
|
7981
|
+
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
|
7860
7982
|
init: async (instance) => {
|
|
7861
7983
|
// init if available in the base config.
|
|
7862
7984
|
if (config.config.init) {
|
|
@@ -7896,6 +8018,8 @@ class DbxInjectionContextDirective {
|
|
|
7896
8018
|
}
|
|
7897
8019
|
/**
|
|
7898
8020
|
* {@inheritDoc DbxInjectionContext.resetContext}
|
|
8021
|
+
*
|
|
8022
|
+
* @returns `true` if an active context was cleared, `false` otherwise.
|
|
7899
8023
|
*/
|
|
7900
8024
|
resetContext() {
|
|
7901
8025
|
let clearedValue = false;
|
|
@@ -7937,10 +8061,10 @@ class DbxInjectionContextDirective {
|
|
|
7937
8061
|
this._isDetached = false;
|
|
7938
8062
|
}
|
|
7939
8063
|
}
|
|
7940
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
7941
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.
|
|
8064
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxInjectionContextDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
8065
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.3", type: DbxInjectionContextDirective, isStandalone: true, selector: "[dbxInjectionContext]", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: false, transformFunction: null } }, providers: provideDbxInjectionContext(DbxInjectionContextDirective), ngImport: i0 });
|
|
7942
8066
|
}
|
|
7943
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
8067
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxInjectionContextDirective, decorators: [{
|
|
7944
8068
|
type: Directive,
|
|
7945
8069
|
args: [{
|
|
7946
8070
|
selector: '[dbxInjectionContext]',
|
|
@@ -7974,20 +8098,25 @@ class AbstractForwardDbxInjectionContextDirective {
|
|
|
7974
8098
|
// MARK: DbxInjectionContext
|
|
7975
8099
|
/**
|
|
7976
8100
|
* {@inheritDoc DbxInjectionContext.showContext}
|
|
8101
|
+
*
|
|
8102
|
+
* @param config - The injection context configuration to forward to the host context.
|
|
8103
|
+
* @returns A promise that resolves with the output of the injected component's usage.
|
|
7977
8104
|
*/
|
|
7978
8105
|
showContext(config) {
|
|
7979
8106
|
return this.dbxInjectionContext.showContext(config);
|
|
7980
8107
|
}
|
|
7981
8108
|
/**
|
|
7982
8109
|
* {@inheritDoc DbxInjectionContext.resetContext}
|
|
8110
|
+
*
|
|
8111
|
+
* @returns `true` if an active context was cleared, `false` otherwise.
|
|
7983
8112
|
*/
|
|
7984
8113
|
resetContext() {
|
|
7985
8114
|
return this.dbxInjectionContext.resetContext();
|
|
7986
8115
|
}
|
|
7987
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
7988
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
8116
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: AbstractForwardDbxInjectionContextDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
8117
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.3", type: AbstractForwardDbxInjectionContextDirective, isStandalone: true, ngImport: i0 });
|
|
7989
8118
|
}
|
|
7990
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
8119
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: AbstractForwardDbxInjectionContextDirective, decorators: [{
|
|
7991
8120
|
type: Directive
|
|
7992
8121
|
}] });
|
|
7993
8122
|
|
|
@@ -8126,10 +8255,10 @@ class LockSetComponentStore extends ComponentStore {
|
|
|
8126
8255
|
_destroyNow() {
|
|
8127
8256
|
this.lockSet.destroy();
|
|
8128
8257
|
}
|
|
8129
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
8130
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
8258
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: LockSetComponentStore, deps: [{ token: null, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8259
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: LockSetComponentStore });
|
|
8131
8260
|
}
|
|
8132
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
8261
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: LockSetComponentStore, decorators: [{
|
|
8133
8262
|
type: Injectable
|
|
8134
8263
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
8135
8264
|
type: Inject,
|
|
@@ -8192,6 +8321,8 @@ class WrapperSimpleStorageAccessorDelegate {
|
|
|
8192
8321
|
/**
|
|
8193
8322
|
* Validates that a storage key prefix is non-empty and does not contain the prefix splitter character.
|
|
8194
8323
|
*
|
|
8324
|
+
* @param prefix - The prefix string to validate.
|
|
8325
|
+
* @param prefixSplitter - The splitter string that separates the prefix from the key.
|
|
8195
8326
|
* @throws {Error} If the prefix is invalid or the splitter is empty.
|
|
8196
8327
|
*/
|
|
8197
8328
|
function assertValidStorageKeyPrefix(prefix, prefixSplitter) {
|
|
@@ -8204,9 +8335,13 @@ function assertValidStorageKeyPrefix(prefix, prefixSplitter) {
|
|
|
8204
8335
|
}
|
|
8205
8336
|
/**
|
|
8206
8337
|
* Checks whether a storage key prefix is valid (non-empty and does not contain the splitter).
|
|
8338
|
+
*
|
|
8339
|
+
* @param prefix - The prefix string to validate.
|
|
8340
|
+
* @param prefixSpltter - The splitter string that separates the prefix from the key.
|
|
8341
|
+
* @returns `true` if the prefix is valid.
|
|
8207
8342
|
*/
|
|
8208
8343
|
function isValidStorageKeyPrefix(prefix, prefixSpltter) {
|
|
8209
|
-
return Boolean(prefix
|
|
8344
|
+
return Boolean(prefix?.indexOf(prefixSpltter) === -1);
|
|
8210
8345
|
}
|
|
8211
8346
|
/**
|
|
8212
8347
|
* Full-featured {@link StorageAccessor} that adds key namespacing, JSON serialization,
|
|
@@ -8444,10 +8579,10 @@ class SimpleStorageAccessorFactory {
|
|
|
8444
8579
|
};
|
|
8445
8580
|
return new SimpleStorageAccessor(delegate, accessorConfig);
|
|
8446
8581
|
}
|
|
8447
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
8448
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
8582
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: SimpleStorageAccessorFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8583
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: SimpleStorageAccessorFactory });
|
|
8449
8584
|
}
|
|
8450
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
8585
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: SimpleStorageAccessorFactory, decorators: [{
|
|
8451
8586
|
type: Injectable
|
|
8452
8587
|
}] });
|
|
8453
8588
|
|
|
@@ -8509,7 +8644,7 @@ class FullLocalStorageObject {
|
|
|
8509
8644
|
this._localStorage.removeItem(test);
|
|
8510
8645
|
return true;
|
|
8511
8646
|
}
|
|
8512
|
-
catch
|
|
8647
|
+
catch {
|
|
8513
8648
|
return false;
|
|
8514
8649
|
}
|
|
8515
8650
|
}
|
|
@@ -8563,6 +8698,8 @@ class MemoryStorageObject extends FullLocalStorageObject {
|
|
|
8563
8698
|
* Creates the default {@link FullStorageObject}, preferring `localStorage` and
|
|
8564
8699
|
* falling back to an in-memory store if `localStorage` is unavailable.
|
|
8565
8700
|
*
|
|
8701
|
+
* @returns A FullStorageObject backed by localStorage or an in-memory fallback.
|
|
8702
|
+
*
|
|
8566
8703
|
* @example
|
|
8567
8704
|
* ```typescript
|
|
8568
8705
|
* const storage = defaultStorageObjectFactory();
|
|
@@ -8581,6 +8718,8 @@ function defaultStorageObjectFactory() {
|
|
|
8581
8718
|
*
|
|
8582
8719
|
* Call in your application config to enable storage-based services throughout the app.
|
|
8583
8720
|
*
|
|
8721
|
+
* @returns The environment providers for storage services.
|
|
8722
|
+
*
|
|
8584
8723
|
* @example
|
|
8585
8724
|
* ```typescript
|
|
8586
8725
|
* export const appConfig: ApplicationConfig = {
|
|
@@ -8617,6 +8756,7 @@ function provideDbxStorage() {
|
|
|
8617
8756
|
*
|
|
8618
8757
|
* @param cdRef - The change detector to trigger. If `null`/`undefined`, the operator is a no-op.
|
|
8619
8758
|
* @param timeout - Delay in milliseconds before calling `detectChanges`.
|
|
8759
|
+
* @returns An RxJS operator that triggers change detection on each emission.
|
|
8620
8760
|
*
|
|
8621
8761
|
* @example
|
|
8622
8762
|
* ```typescript
|
|
@@ -8624,6 +8764,7 @@ function provideDbxStorage() {
|
|
|
8624
8764
|
* ```
|
|
8625
8765
|
*/
|
|
8626
8766
|
function tapDetectChanges(cdRef, timeout = 0) {
|
|
8767
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
8627
8768
|
return cdRef ? tap(() => setTimeout(() => safeDetectChanges(cdRef), timeout)) : tap();
|
|
8628
8769
|
}
|
|
8629
8770
|
/**
|
|
@@ -8634,6 +8775,7 @@ function tapDetectChanges(cdRef, timeout = 0) {
|
|
|
8634
8775
|
* @param cdRef - The change detector to trigger.
|
|
8635
8776
|
*/
|
|
8636
8777
|
function safeDetectChanges(cdRef) {
|
|
8778
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
8637
8779
|
safeUseCdRef(cdRef, () => cdRef.detectChanges());
|
|
8638
8780
|
}
|
|
8639
8781
|
/**
|
|
@@ -8646,6 +8788,7 @@ function safeDetectChanges(cdRef) {
|
|
|
8646
8788
|
*
|
|
8647
8789
|
* @param cdRef - The change detector to mark. If `null`/`undefined`, the operator is a no-op.
|
|
8648
8790
|
* @param timeout - Delay in milliseconds before calling `markForCheck`.
|
|
8791
|
+
* @returns An RxJS operator that marks the view for check on each emission.
|
|
8649
8792
|
*
|
|
8650
8793
|
* @example
|
|
8651
8794
|
* ```typescript
|
|
@@ -8653,6 +8796,7 @@ function safeDetectChanges(cdRef) {
|
|
|
8653
8796
|
* ```
|
|
8654
8797
|
*/
|
|
8655
8798
|
function tapSafeMarkForCheck(cdRef, timeout = 0) {
|
|
8799
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
8656
8800
|
return cdRef ? tap(() => setTimeout(() => safeMarkForCheck(cdRef), timeout)) : tap();
|
|
8657
8801
|
}
|
|
8658
8802
|
/**
|
|
@@ -8663,6 +8807,7 @@ function tapSafeMarkForCheck(cdRef, timeout = 0) {
|
|
|
8663
8807
|
* @param cdRef - The change detector to mark.
|
|
8664
8808
|
*/
|
|
8665
8809
|
function safeMarkForCheck(cdRef) {
|
|
8810
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
8666
8811
|
safeUseCdRef(cdRef, () => cdRef.markForCheck());
|
|
8667
8812
|
}
|
|
8668
8813
|
/**
|
|
@@ -8685,6 +8830,7 @@ function safeUseCdRef(cdRef, use) {
|
|
|
8685
8830
|
* Useful for conditionally showing fallback content when no projection is provided.
|
|
8686
8831
|
*
|
|
8687
8832
|
* @param ref - Reference to the wrapper element around `ng-content`.
|
|
8833
|
+
* @returns `true` if the wrapper element has any child nodes.
|
|
8688
8834
|
*
|
|
8689
8835
|
* @example
|
|
8690
8836
|
* ```typescript
|