@dereekb/dbx-core 5.0.0 → 5.0.1

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.
Files changed (145) hide show
  1. package/esm2020/lib/action/action.handler.mjs +1 -1
  2. package/esm2020/lib/action/action.holder.mjs +1 -1
  3. package/esm2020/lib/action/action.machine.mjs +1 -1
  4. package/esm2020/lib/action/action.mjs +2 -2
  5. package/esm2020/lib/action/action.module.mjs +70 -22
  6. package/esm2020/lib/action/action.reference.mjs +1 -1
  7. package/esm2020/lib/action/action.store.mjs +30 -28
  8. package/esm2020/lib/action/action.store.source.mjs +26 -23
  9. package/esm2020/lib/action/directive/auto/action.automodify.directive.mjs +3 -3
  10. package/esm2020/lib/action/directive/auto/action.autotrigger.directive.mjs +7 -7
  11. package/esm2020/lib/action/directive/context/action.directive.mjs +1 -1
  12. package/esm2020/lib/action/directive/context/action.source.directive.mjs +1 -1
  13. package/esm2020/lib/action/directive/debug/action.logger.directive.mjs +1 -1
  14. package/esm2020/lib/action/directive/map/action.map.directive.mjs +4 -4
  15. package/esm2020/lib/action/directive/map/action.map.key.directive.mjs +1 -1
  16. package/esm2020/lib/action/directive/map/action.map.source.directive.mjs +1 -1
  17. package/esm2020/lib/action/directive/map/action.map.working.disable.directive.mjs +1 -1
  18. package/esm2020/lib/action/directive/state/action.disabled.directive.mjs +1 -1
  19. package/esm2020/lib/action/directive/state/action.enforce.modified.directive.mjs +4 -2
  20. package/esm2020/lib/action/directive/state/action.handler.directive.mjs +7 -5
  21. package/esm2020/lib/action/directive/state/action.success.directive.mjs +1 -1
  22. package/esm2020/lib/action/directive/state/action.success.handler.directive.mjs +6 -4
  23. package/esm2020/lib/action/directive/state/action.value.directive.mjs +6 -4
  24. package/esm2020/lib/action/directive/state/action.value.stream.directive.mjs +2 -2
  25. package/esm2020/lib/action/directive/state/action.value.trigger.directive.mjs +5 -5
  26. package/esm2020/lib/action/directive/state/action.value.trigger.instance.mjs +5 -4
  27. package/esm2020/lib/action/directive/state/action.working.component.mjs +1 -1
  28. package/esm2020/lib/auth/auth.module.mjs +4 -12
  29. package/esm2020/lib/auth/auth.role.any.directive.mjs +1 -1
  30. package/esm2020/lib/auth/auth.role.has.directive.mjs +1 -1
  31. package/esm2020/lib/auth/auth.state.module.mjs +3 -9
  32. package/esm2020/lib/auth/auth.state.service.mjs +3 -3
  33. package/esm2020/lib/auth/auth.user.mjs +2 -2
  34. package/esm2020/lib/auth/index.mjs +1 -1
  35. package/esm2020/lib/auth/router/auth.router.module.mjs +5 -3
  36. package/esm2020/lib/auth/router/auth.router.service.mjs +5 -5
  37. package/esm2020/lib/auth/router/provider/uirouter/auth.hook.mjs +1 -1
  38. package/esm2020/lib/auth/router/provider/uirouter/hook.mjs +1 -1
  39. package/esm2020/lib/auth/router/provider/uirouter/redirect.mjs +2 -2
  40. package/esm2020/lib/auth/router/provider/uirouter/role.hook.mjs +2 -2
  41. package/esm2020/lib/auth/router/provider/uirouter/state.hook.mjs +3 -3
  42. package/esm2020/lib/auth/router/state/auth.router.state.module.mjs +7 -9
  43. package/esm2020/lib/auth/router/state/effect/auth.router.state.effect.mjs +1 -1
  44. package/esm2020/lib/auth/service/auth.service.mjs +1 -1
  45. package/esm2020/lib/auth/service/auth.service.rxjs.mjs +1 -1
  46. package/esm2020/lib/auth/state/action/auth.action.mjs +1 -1
  47. package/esm2020/lib/auth/state/action/user.action.mjs +1 -1
  48. package/esm2020/lib/auth/state/effect/auth.effect.mjs +7 -13
  49. package/esm2020/lib/auth/state/reducer/index.mjs +2 -2
  50. package/esm2020/lib/button/action/action.button.directive.mjs +1 -1
  51. package/esm2020/lib/button/action/action.button.trigger.directive.mjs +1 -1
  52. package/esm2020/lib/button/button.directive.mjs +5 -3
  53. package/esm2020/lib/button/button.loading.directive.mjs +2 -2
  54. package/esm2020/lib/button/button.mjs +5 -3
  55. package/esm2020/lib/button/button.module.mjs +4 -24
  56. package/esm2020/lib/button/router/button.segue.directive.mjs +5 -3
  57. package/esm2020/lib/context/context.directive.mjs +3 -3
  58. package/esm2020/lib/context/context.mjs +1 -1
  59. package/esm2020/lib/context/context.module.mjs +5 -13
  60. package/esm2020/lib/context/context.service.mjs +3 -3
  61. package/esm2020/lib/context/state/action/data.action.mjs +1 -1
  62. package/esm2020/lib/context/state/effect/index.mjs +1 -1
  63. package/esm2020/lib/context/state/reducer/index.mjs +2 -2
  64. package/esm2020/lib/context/state/state.mjs +1 -1
  65. package/esm2020/lib/filter/action/action.filter.source.directive.mjs +1 -1
  66. package/esm2020/lib/filter/filter.abstract.connector.directive.mjs +2 -2
  67. package/esm2020/lib/filter/filter.abstract.source.directive.mjs +1 -1
  68. package/esm2020/lib/filter/filter.connector.directive.mjs +3 -9
  69. package/esm2020/lib/filter/filter.content.mjs +12 -7
  70. package/esm2020/lib/filter/filter.map.connector.directive.mjs +3 -9
  71. package/esm2020/lib/filter/filter.map.directive.mjs +1 -1
  72. package/esm2020/lib/filter/filter.map.instance.directive.mjs +1 -1
  73. package/esm2020/lib/filter/filter.map.source.directive.mjs +4 -8
  74. package/esm2020/lib/filter/filter.module.mjs +6 -30
  75. package/esm2020/lib/filter/filter.source.directive.mjs +1 -1
  76. package/esm2020/lib/injection/injection.component.mjs +7 -3
  77. package/esm2020/lib/injection/injection.component.module.mjs +6 -18
  78. package/esm2020/lib/injection/injection.context.directive.mjs +1 -1
  79. package/esm2020/lib/injection/injection.context.forward.directive.mjs +3 -3
  80. package/esm2020/lib/injection/injection.context.mjs +5 -3
  81. package/esm2020/lib/injection/injection.directive.mjs +1 -1
  82. package/esm2020/lib/injection/injection.instance.mjs +5 -3
  83. package/esm2020/lib/injection/injection.mjs +4 -4
  84. package/esm2020/lib/ngrx/store.lockset.mjs +3 -3
  85. package/esm2020/lib/pipe/date/date.pipe.module.mjs +4 -36
  86. package/esm2020/lib/pipe/date/datedistance.pipe.mjs +1 -1
  87. package/esm2020/lib/pipe/date/dateformatdistance.pipe.mjs +1 -1
  88. package/esm2020/lib/pipe/date/datefromtoformat.pipe.mjs +1 -1
  89. package/esm2020/lib/pipe/date/minutesstring.pipe.mjs +3 -3
  90. package/esm2020/lib/pipe/date/timedistance.pipe.mjs +1 -1
  91. package/esm2020/lib/pipe/date/tojsdate.pipe.mjs +1 -1
  92. package/esm2020/lib/pipe/date/tominutes.pipe.mjs +1 -1
  93. package/esm2020/lib/pipe/misc/misc.pipe.module.mjs +3 -7
  94. package/esm2020/lib/pipe/misc/prettyjson.pipe.mjs +1 -1
  95. package/esm2020/lib/pipe/pipe.module.mjs +4 -9
  96. package/esm2020/lib/router/anchor/anchor.directive.mjs +1 -1
  97. package/esm2020/lib/router/anchor/anchor.mjs +5 -3
  98. package/esm2020/lib/router/anchor/clickable.mjs +1 -1
  99. package/esm2020/lib/router/router/provider/angular/angular.router.service.mjs +6 -6
  100. package/esm2020/lib/router/router/provider/angular/angular.router.service.module.mjs +1 -1
  101. package/esm2020/lib/router/router/provider/uirouter/uirouter.router.service.mjs +9 -6
  102. package/esm2020/lib/router/router/provider/uirouter/uirouter.router.service.module.mjs +1 -1
  103. package/esm2020/lib/router/router/service/router.go.mjs +4 -4
  104. package/esm2020/lib/router/router/service/router.service.mjs +1 -1
  105. package/esm2020/lib/router/router/service/router.transition.service.mjs +1 -1
  106. package/esm2020/lib/router/router/transition/transition.directive.mjs +1 -1
  107. package/esm2020/lib/router/router/transition/transition.rxjs.mjs +4 -4
  108. package/esm2020/lib/router/router/transition/transition.watcher.directive.mjs +1 -1
  109. package/esm2020/lib/router/segue.mjs +3 -3
  110. package/esm2020/lib/storage/storage.accessor.mjs +1 -1
  111. package/esm2020/lib/storage/storage.accessor.simple.factory.mjs +1 -1
  112. package/esm2020/lib/storage/storage.accessor.simple.mjs +6 -4
  113. package/esm2020/lib/storage/storage.accessor.string.mjs +2 -2
  114. package/esm2020/lib/storage/storage.module.mjs +9 -5
  115. package/esm2020/lib/storage/storage.object.localstorage.mjs +2 -2
  116. package/esm2020/lib/storage/storage.object.memory.mjs +1 -1
  117. package/esm2020/lib/subscription/subscription.directive.mjs +1 -1
  118. package/esm2020/lib/util/view.mjs +1 -1
  119. package/esm2020/lib/view/if.directive.mjs +4 -4
  120. package/fesm2015/dereekb-dbx-core.mjs +290 -336
  121. package/fesm2015/dereekb-dbx-core.mjs.map +1 -1
  122. package/fesm2020/dereekb-dbx-core.mjs +287 -336
  123. package/fesm2020/dereekb-dbx-core.mjs.map +1 -1
  124. package/lib/action/action.d.ts +1 -1
  125. package/lib/action/action.reference.d.ts +2 -2
  126. package/lib/action/directive/state/action.value.trigger.directive.d.ts +5 -5
  127. package/lib/auth/auth.state.service.d.ts +2 -2
  128. package/lib/auth/auth.user.d.ts +1 -1
  129. package/lib/auth/router/auth.router.service.d.ts +2 -2
  130. package/lib/auth/router/provider/uirouter/redirect.d.ts +2 -2
  131. package/lib/context/context.directive.d.ts +2 -2
  132. package/lib/context/context.service.d.ts +2 -2
  133. package/lib/filter/filter.content.d.ts +1 -1
  134. package/lib/injection/injection.context.d.ts +2 -2
  135. package/lib/injection/injection.context.forward.directive.d.ts +1 -1
  136. package/lib/injection/injection.d.ts +2 -2
  137. package/lib/router/anchor/clickable.d.ts +1 -1
  138. package/lib/router/router/provider/angular/angular.router.service.d.ts +2 -2
  139. package/lib/router/router/provider/uirouter/uirouter.router.service.d.ts +2 -2
  140. package/lib/router/router/service/router.go.d.ts +3 -3
  141. package/lib/router/router/service/router.service.d.ts +3 -3
  142. package/lib/router/router/transition/transition.rxjs.d.ts +2 -2
  143. package/lib/util/view.d.ts +2 -2
  144. package/lib/view/if.directive.d.ts +4 -4
  145. package/package.json +4 -4
@@ -108,64 +108,64 @@ class DbxActionContextStoreSourceInstance {
108
108
  return useActionStore(this.source, useFn);
109
109
  }
110
110
  get state$() {
111
- return this.pipeStore(x => x.state$);
111
+ return this.pipeStore((x) => x.state$);
112
112
  }
113
113
  get triggered$() {
114
- return this.pipeStore(x => x.triggered$);
114
+ return this.pipeStore((x) => x.triggered$);
115
115
  }
116
116
  get valueReady$() {
117
- return this.pipeStore(x => x.valueReady$);
117
+ return this.pipeStore((x) => x.valueReady$);
118
118
  }
119
119
  get success$() {
120
- return this.pipeStore(x => x.success$);
120
+ return this.pipeStore((x) => x.success$);
121
121
  }
122
122
  get error$() {
123
- return this.pipeStore(x => x.error$);
123
+ return this.pipeStore((x) => x.error$);
124
124
  }
125
125
  get rejected$() {
126
- return this.pipeStore(x => x.rejected$);
126
+ return this.pipeStore((x) => x.rejected$);
127
127
  }
128
128
  get isModified$() {
129
- return this.pipeStore(x => x.isModified$);
129
+ return this.pipeStore((x) => x.isModified$);
130
130
  }
131
131
  get canTrigger$() {
132
- return this.pipeStore(x => x.canTrigger$);
132
+ return this.pipeStore((x) => x.canTrigger$);
133
133
  }
134
134
  get isModifiedAndCanTriggerUpdates$() {
135
- return this.pipeStore(x => x.isModifiedAndCanTriggerUpdates$);
135
+ return this.pipeStore((x) => x.isModifiedAndCanTriggerUpdates$);
136
136
  }
137
137
  get isModifiedAndCanTrigger$() {
138
- return this.pipeStore(x => x.isModifiedAndCanTrigger$);
138
+ return this.pipeStore((x) => x.isModifiedAndCanTrigger$);
139
139
  }
140
140
  get actionState$() {
141
- return this.pipeStore(x => x.actionState$);
141
+ return this.pipeStore((x) => x.actionState$);
142
142
  }
143
143
  get loadingState$() {
144
- return this.pipeStore(x => x.loadingState$);
144
+ return this.pipeStore((x) => x.loadingState$);
145
145
  }
146
146
  get loadingStateType$() {
147
- return this.pipeStore(x => x.loadingStateType$);
147
+ return this.pipeStore((x) => x.loadingStateType$);
148
148
  }
149
149
  get isWorking$() {
150
- return this.pipeStore(x => x.isWorking$);
150
+ return this.pipeStore((x) => x.isWorking$);
151
151
  }
152
152
  get isSuccess$() {
153
- return this.pipeStore(x => x.isSuccess$);
153
+ return this.pipeStore((x) => x.isSuccess$);
154
154
  }
155
155
  get disabledKeys$() {
156
- return this.pipeStore(x => x.disabledKeys$);
156
+ return this.pipeStore((x) => x.disabledKeys$);
157
157
  }
158
158
  get isDisabled$() {
159
- return this.pipeStore(x => x.isDisabled$);
159
+ return this.pipeStore((x) => x.isDisabled$);
160
160
  }
161
161
  get errorCountSinceLastSuccess$() {
162
- return this.pipeStore(x => x.errorCountSinceLastSuccess$);
162
+ return this.pipeStore((x) => x.errorCountSinceLastSuccess$);
163
163
  }
164
164
  enable(key, enable = true) {
165
165
  this.disable(key, !enable);
166
166
  }
167
167
  disable(key, disable = true) {
168
- this.useStore((x) => (disable) ? x.disable(key) : x.enable(key));
168
+ this.useStore((x) => (disable ? x.disable(key) : x.enable(key)));
169
169
  }
170
170
  setIsModified(isModified) {
171
171
  this.useStore((x) => x.setIsModified(isModified));
@@ -201,7 +201,8 @@ const actionContextStoreSourceInstanceFactory = (source) => {
201
201
  * Provides an ActionContextStoreSource, as well as an DbxActionContextStoreSourceInstance.
202
202
  */
203
203
  function provideActionStoreSource(sourceType) {
204
- return [{
204
+ return [
205
+ {
205
206
  provide: ActionContextStoreSource,
206
207
  useExisting: forwardRef(() => sourceType)
207
208
  },
@@ -209,10 +210,12 @@ function provideActionStoreSource(sourceType) {
209
210
  provide: DbxActionContextStoreSourceInstance,
210
211
  useFactory: actionContextStoreSourceInstanceFactory,
211
212
  deps: [ActionContextStoreSource]
212
- }];
213
+ }
214
+ ];
213
215
  }
214
216
  function provideSecondaryActionStoreSource(sourceType) {
215
- return [{
217
+ return [
218
+ {
216
219
  provide: SecondaryActionContextStoreSource,
217
220
  useExisting: forwardRef(() => sourceType)
218
221
  },
@@ -235,7 +238,7 @@ class DbxActionAutoModifyDirective extends AbstractSubscriptionDirective {
235
238
  ngOnInit() {
236
239
  const obs = combineLatest([
237
240
  this._autoModifyEnabled.pipe(distinctUntilChanged()),
238
- this.source.isModified$.pipe(filter(x => !x)) // Only when not modified send a value.
241
+ this.source.isModified$.pipe(filter((x) => !x)) // Only when not modified send a value.
239
242
  ]);
240
243
  this.sub = obs.subscribe(([autoModifyEnabled, isModified]) => {
241
244
  if (autoModifyEnabled && !isModified) {
@@ -255,7 +258,7 @@ DbxActionAutoModifyDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12
255
258
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxActionAutoModifyDirective, decorators: [{
256
259
  type: Directive,
257
260
  args: [{
258
- selector: '[dbxActionAutoModify]',
261
+ selector: '[dbxActionAutoModify]'
259
262
  }]
260
263
  }], ctorParameters: function () { return [{ type: DbxActionContextStoreSourceInstance, decorators: [{
261
264
  type: Host
@@ -284,9 +287,9 @@ class DbxActionAutoTriggerDirective extends AbstractSubscriptionDirective {
284
287
  this.maxErrorsForThrottle = MAX_ERRORS_TO_THROTTLE_ON;
285
288
  this._triggerCount = 0;
286
289
  this._errorCount$ = this.source.errorCountSinceLastSuccess$;
287
- this._triggerCount$ = this.source.isModifiedAndCanTriggerUpdates$.pipe(filter(() => this.isEnabled), filter((x) => x), debounce(() => interval(this.triggerDebounce)), throttle(() => this._errorCount$.pipe(first(), exhaustMap((count) => interval(this.triggerThrottle + (Math.min(count, this.maxErrorsForThrottle) * this.triggerErrorThrottle)))), { leading: true, trailing: true }),
290
+ this._triggerCount$ = this.source.isModifiedAndCanTriggerUpdates$.pipe(filter(() => this.isEnabled), filter((x) => x), debounce(() => interval(this.triggerDebounce)), throttle(() => this._errorCount$.pipe(first(), exhaustMap((count) => interval(this.triggerThrottle + Math.min(count, this.maxErrorsForThrottle) * this.triggerErrorThrottle))), { leading: true, trailing: true }),
288
291
  // Check again for the "trailing" piece.
289
- filter(() => this.isEnabled), mergeMap(() => this.source.isModifiedAndCanTrigger$.pipe(first())), filter((x) => x), map(() => this._triggerCount += 1), shareReplay(1));
292
+ filter(() => this.isEnabled), mergeMap(() => this.source.isModifiedAndCanTrigger$.pipe(first())), filter((x) => x), map(() => (this._triggerCount += 1)), shareReplay(1));
290
293
  /**
291
294
  * Observable for the trigger mechanism.
292
295
  */
@@ -298,9 +301,9 @@ class DbxActionAutoTriggerDirective extends AbstractSubscriptionDirective {
298
301
  return EMPTY;
299
302
  }
300
303
  }));
301
- this._isTriggerLimited$ = combineLatest([this.triggerCount$, this._triggerLimit]).pipe(map(([triggerCount, limit]) => [triggerCount, ((limit) ? (triggerCount > limit) : false)]), shareReplay(1));
302
- this.isTriggerLimited$ = this._isTriggerLimited$.pipe(map(x => x[1]));
303
- this.trigger$ = this._isTriggerLimited$.pipe(filter(x => !x[1]), distinctUntilChanged((a, b) => a[0] === b[0]), // Only trigger when the count changes.
304
+ this._isTriggerLimited$ = combineLatest([this.triggerCount$, this._triggerLimit]).pipe(map(([triggerCount, limit]) => [triggerCount, limit ? triggerCount > limit : false]), shareReplay(1));
305
+ this.isTriggerLimited$ = this._isTriggerLimited$.pipe(map((x) => x[1]));
306
+ this.trigger$ = this._isTriggerLimited$.pipe(filter((x) => !x[1]), distinctUntilChanged((a, b) => a[0] === b[0]), // Only trigger when the count changes.
304
307
  map(() => undefined));
305
308
  }
306
309
  /**
@@ -366,7 +369,7 @@ DbxActionAutoTriggerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "1
366
369
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxActionAutoTriggerDirective, decorators: [{
367
370
  type: Directive,
368
371
  args: [{
369
- selector: 'dbxActionAutoTrigger, [dbxActionAutoTrigger]',
372
+ selector: 'dbxActionAutoTrigger, [dbxActionAutoTrigger]'
370
373
  }]
371
374
  }], ctorParameters: function () { return [{ type: DbxActionContextStoreSourceInstance, decorators: [{
372
375
  type: Host
@@ -447,7 +450,7 @@ dbxActionValueStreamDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "1
447
450
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: dbxActionValueStreamDirective, decorators: [{
448
451
  type: Directive,
449
452
  args: [{
450
- selector: '[dbxActionValueStream]',
453
+ selector: '[dbxActionValueStream]'
451
454
  }]
452
455
  }], ctorParameters: function () { return [{ type: DbxActionContextStoreSourceInstance, decorators: [{
453
456
  type: Host
@@ -588,11 +591,11 @@ class ActionContextStore extends ComponentStore {
588
591
  super({ ...INITIAL_STATE });
589
592
  this.lockSet = new LockSet();
590
593
  // MARK: Accessors
591
- this.actionState$ = this.state$.pipe(map(x => isDisabledActionContextState(x) ? DbxActionState.DISABLED : x.actionState), shareReplay(1));
594
+ this.actionState$ = this.state$.pipe(map((x) => (isDisabledActionContextState(x) ? DbxActionState.DISABLED : x.actionState)), shareReplay(1));
592
595
  /**
593
596
  * Returns the current disabled reasons/keys.
594
597
  */
595
- this.disabledKeys$ = this.state$.pipe(map(x => [...x.disabled ?? []]), distinctUntilChanged(), shareReplay(1));
598
+ this.disabledKeys$ = this.state$.pipe(map((x) => [...(x.disabled ?? [])]), distinctUntilChanged(), shareReplay(1));
596
599
  /**
597
600
  * Maps the current state to true or not when the action state changes to/from disabled.
598
601
  */
@@ -600,7 +603,7 @@ class ActionContextStore extends ComponentStore {
600
603
  /**
601
604
  * Pipes when idle but modified.
602
605
  */
603
- this.isModified$ = this.afterDistinctBoolean(x => x.isModified);
606
+ this.isModified$ = this.afterDistinctBoolean((x) => x.isModified);
604
607
  /**
605
608
  * Pipes true when triggered.
606
609
  */
@@ -608,11 +611,11 @@ class ActionContextStore extends ComponentStore {
608
611
  /**
609
612
  * Pipes the readied value on ValueReady.
610
613
  */
611
- this.valueReady$ = this.afterDistinctActionState(DbxActionState.VALUE_READY, x => x.value);
614
+ this.valueReady$ = this.afterDistinctActionState(DbxActionState.VALUE_READY, (x) => x.value);
612
615
  /**
613
616
  * Pipes the error on the rejection state.
614
617
  */
615
- this.rejected$ = this.afterDistinctActionState(DbxActionState.REJECTED, x => x.error);
618
+ this.rejected$ = this.afterDistinctActionState(DbxActionState.REJECTED, (x) => x.error);
616
619
  /**
617
620
  * Pipes the result when the ActionState becomes working.
618
621
  */
@@ -620,27 +623,27 @@ class ActionContextStore extends ComponentStore {
620
623
  /**
621
624
  * Whether or not it is currently in a working state.
622
625
  */
623
- this.isWorking$ = this.afterDistinctBoolean(x => isWorkingActionState(x.actionState));
626
+ this.isWorking$ = this.afterDistinctBoolean((x) => isWorkingActionState(x.actionState));
624
627
  /**
625
628
  * Pipes the current error.
626
629
  */
627
- this.error$ = this.state$.pipe(map(x => x.error), distinctUntilChanged(), shareReplay(1));
630
+ this.error$ = this.state$.pipe(map((x) => x.error), distinctUntilChanged(), shareReplay(1));
628
631
  /**
629
632
  * Pipes the result when the ActionState becomes success.
630
633
  */
631
- this.success$ = this.afterDistinctActionState(DbxActionState.RESOLVED, x => x.result);
634
+ this.success$ = this.afterDistinctActionState(DbxActionState.RESOLVED, (x) => x.result);
632
635
  /**
633
636
  * Whether or not it is currently in a success state.
634
637
  */
635
- this.isSuccess$ = this.afterDistinctBoolean(x => x.actionState === DbxActionState.RESOLVED);
638
+ this.isSuccess$ = this.afterDistinctBoolean((x) => x.actionState === DbxActionState.RESOLVED);
636
639
  /**
637
640
  * Returns a loading state based on the current state.
638
641
  */
639
- this.loadingState$ = this.afterDistinctLoadingStateTypeChange().pipe(map(x => loadingStateForActionContextState(x)), shareReplay(1));
642
+ this.loadingState$ = this.afterDistinctLoadingStateTypeChange().pipe(map((x) => loadingStateForActionContextState(x)), shareReplay(1));
640
643
  /**
641
644
  * Returns the current LoadingStateType based on the current state.
642
645
  */
643
- this.loadingStateType$ = this.state$.pipe(map(x => loadingStateTypeForActionContextState(x)), distinctUntilChanged(), shareReplay(1));
646
+ this.loadingStateType$ = this.state$.pipe(map((x) => loadingStateTypeForActionContextState(x)), distinctUntilChanged(), shareReplay(1));
644
647
  /**
645
648
  * Number of errors since last success.
646
649
  */
@@ -666,21 +669,21 @@ class ActionContextStore extends ComponentStore {
666
669
  */
667
670
  this.disable = this.updater((state, key) => ({
668
671
  ...state,
669
- disabled: BooleanStringKeyArrayUtilityInstance.insert(state.disabled, (key ?? DEFAULT_ACTION_DISABLED_KEY))
672
+ disabled: BooleanStringKeyArrayUtilityInstance.insert(state.disabled, key ?? DEFAULT_ACTION_DISABLED_KEY)
670
673
  }));
671
674
  /**
672
675
  * Removes a disabled reason.
673
676
  */
674
677
  this.enable = this.updater((state, key) => ({
675
678
  ...state,
676
- disabled: BooleanStringKeyArrayUtilityInstance.remove(state.disabled, (key ?? DEFAULT_ACTION_DISABLED_KEY))
679
+ disabled: BooleanStringKeyArrayUtilityInstance.remove(state.disabled, key ?? DEFAULT_ACTION_DISABLED_KEY)
677
680
  }));
678
681
  /**
679
682
  * Triggers the modified state, if not disabled.
680
683
  */
681
684
  this.setIsModified = this.updater((state, isModified) => ({
682
685
  ...state,
683
- actionState: (state.actionState === DbxActionState.RESOLVED) ? DbxActionState.IDLE : state.actionState,
686
+ actionState: state.actionState === DbxActionState.RESOLVED ? DbxActionState.IDLE : state.actionState,
684
687
  isModified: isModified ?? true
685
688
  }));
686
689
  /**
@@ -688,15 +691,11 @@ class ActionContextStore extends ComponentStore {
688
691
  *
689
692
  * Will not fire if the action is disabled.
690
693
  */
691
- this.trigger = this.updater((state) => canTriggerAction(state)
692
- ? ({ isModified: state.isModified, actionState: DbxActionState.TRIGGERED, error: state.error, value: undefined })
693
- : state);
694
+ this.trigger = this.updater((state) => (canTriggerAction(state) ? { isModified: state.isModified, actionState: DbxActionState.TRIGGERED, error: state.error, value: undefined } : state));
694
695
  /**
695
696
  * Updates the value, setting value ready. The current result is cleared.
696
697
  */
697
- this.readyValue = this.updater((state, value) => canReadyValue(state)
698
- ? ({ ...state, actionState: DbxActionState.VALUE_READY, value, result: undefined })
699
- : state);
698
+ this.readyValue = this.updater((state, value) => (canReadyValue(state) ? { ...state, actionState: DbxActionState.VALUE_READY, value, result: undefined } : state));
700
699
  /**
701
700
  * Notifys the context that the action is in progress.
702
701
  */
@@ -704,7 +703,13 @@ class ActionContextStore extends ComponentStore {
704
703
  /**
705
704
  * Triggers rejection of the action. The value is cleared.
706
705
  */
707
- this.reject = this.updater((state, error) => ({ isModified: state.isModified, actionState: DbxActionState.REJECTED, error, errorCount: (state.errorCount ?? 0) + 1, disabled: state.disabled }));
706
+ this.reject = this.updater((state, error) => ({
707
+ isModified: state.isModified,
708
+ actionState: DbxActionState.REJECTED,
709
+ error,
710
+ errorCount: (state.errorCount ?? 0) + 1,
711
+ disabled: state.disabled
712
+ }));
708
713
  /**
709
714
  * Updates the state to success, and optionally sets a result.
710
715
  *
@@ -719,19 +724,19 @@ class ActionContextStore extends ComponentStore {
719
724
  }
720
725
  // MARK: Utility
721
726
  afterDistinctBoolean(fromState) {
722
- return this.state$.pipe(map(x => fromState(x)), distinctUntilChanged(), shareReplay(1));
727
+ return this.state$.pipe(map((x) => fromState(x)), distinctUntilChanged(), shareReplay(1));
723
728
  }
724
729
  afterDistinctActionState(actionState, fromState) {
725
730
  return this.afterDistinctActionStateChange().pipe(filter((x) => x.actionState === actionState), // Only pipe when the new action state matches.
726
- map(x => fromState(x)), shareReplay(1));
731
+ map((x) => fromState(x)), shareReplay(1));
727
732
  }
728
733
  afterDistinctActionStateChange() {
729
- return this.state$.pipe(map((x) => ([x, x.actionState])), distinctUntilChanged((a, b) => a?.[1] === b?.[1]), // Filter out when the state remains the same.
730
- map(x => x[0]), shareReplay(1));
734
+ return this.state$.pipe(map((x) => [x, x.actionState]), distinctUntilChanged((a, b) => a?.[1] === b?.[1]), // Filter out when the state remains the same.
735
+ map((x) => x[0]), shareReplay(1));
731
736
  }
732
737
  afterDistinctLoadingStateTypeChange() {
733
- return this.state$.pipe(map((x) => ([x, loadingStateForActionContextState(x)])), distinctUntilChanged((a, b) => a?.[1] === b?.[1]), // Filter out when the loading state remains the same.
734
- map(x => x[0]), shareReplay(1));
738
+ return this.state$.pipe(map((x) => [x, loadingStateForActionContextState(x)]), distinctUntilChanged((a, b) => a?.[1] === b?.[1]), // Filter out when the loading state remains the same.
739
+ map((x) => x[0]), shareReplay(1));
735
740
  }
736
741
  // MARK: Cleanup
737
742
  ngOnDestroy() {
@@ -899,7 +904,7 @@ class DbxActionContextMapDirective {
899
904
  constructor() {
900
905
  this._map = new BehaviorSubject(new Map());
901
906
  this.map$ = this._map.asObservable();
902
- this.areAnyWorking$ = this.checkAnyAre(x => x.isWorking$, false);
907
+ this.areAnyWorking$ = this.checkAnyAre((x) => x.isWorking$, false);
903
908
  }
904
909
  get map() {
905
910
  return this._map.value;
@@ -944,14 +949,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
944
949
  args: [{
945
950
  selector: '[dbxActionContextMap]',
946
951
  exportAs: 'actionMap',
947
- providers: [],
952
+ providers: []
948
953
  }]
949
954
  }] });
950
955
  class DbxActionContextMapDirectiveSourceInstance {
951
956
  constructor(parent, key) {
952
957
  this.parent = parent;
953
958
  this.key = key;
954
- this._source$ = this.parent.map$.pipe(map(x => x.get(this.key)), distinctUntilChanged());
959
+ this._source$ = this.parent.map$.pipe(map((x) => x.get(this.key)), distinctUntilChanged());
955
960
  this._store$ = this._source$.pipe(switchMap((x) => x?.store$ ?? of(undefined)), shareReplay(1));
956
961
  this.store$ = actionContextStoreSourcePipe(this._store$);
957
962
  }
@@ -1151,13 +1156,15 @@ class DbxActionHandlerDirective extends AbstractSubscriptionDirective {
1151
1156
  this._handlerFunction.next(handlerFunction);
1152
1157
  }
1153
1158
  ngOnInit() {
1154
- this.sub = this.handlerFunction$.pipe(switchMap(work => this.source.valueReady$.pipe(tap((value) => {
1159
+ this.sub = this.handlerFunction$
1160
+ .pipe(switchMap((work) => this.source.valueReady$.pipe(tap((value) => {
1155
1161
  const context = workFactory({ work, delegate: this._delegate })(value);
1156
1162
  if (context) {
1157
1163
  // Add the action to the lockSet for the source to prevent it from being destroyed until the action completes.
1158
- this.source.lockSet.addLock('dbxActionHandler', context.isComplete$.pipe(map(x => !x)));
1164
+ this.source.lockSet.addLock('dbxActionHandler', context.isComplete$.pipe(map((x) => !x)));
1159
1165
  }
1160
- })))).subscribe();
1166
+ }))))
1167
+ .subscribe();
1161
1168
  }
1162
1169
  ngOnDestroy() {
1163
1170
  this.source.lockSet.onNextUnlock(() => {
@@ -1171,7 +1178,7 @@ DbxActionHandlerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.
1171
1178
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxActionHandlerDirective, decorators: [{
1172
1179
  type: Directive,
1173
1180
  args: [{
1174
- selector: '[dbxActionHandler]',
1181
+ selector: '[dbxActionHandler]'
1175
1182
  }]
1176
1183
  }], ctorParameters: function () { return [{ type: DbxActionContextStoreSourceInstance, decorators: [{
1177
1184
  type: Host
@@ -1252,9 +1259,11 @@ class DbxActionSuccessHandlerDirective extends AbstractSubscriptionDirective {
1252
1259
  this._successFunction.next(successFunction);
1253
1260
  }
1254
1261
  ngOnInit() {
1255
- this.sub = this.successFunction$.pipe(switchMap(successFunction => this.source.success$.pipe(map(x => [successFunction, x]), tap(([successFn, result]) => {
1262
+ this.sub = this.successFunction$
1263
+ .pipe(switchMap((successFunction) => this.source.success$.pipe(map((x) => [successFunction, x]), tap(([successFn, result]) => {
1256
1264
  successFn(result);
1257
- })))).subscribe();
1265
+ }))))
1266
+ .subscribe();
1258
1267
  }
1259
1268
  ngOnDestroy() {
1260
1269
  super.ngOnDestroy();
@@ -1266,7 +1275,7 @@ DbxActionSuccessHandlerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion:
1266
1275
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxActionSuccessHandlerDirective, decorators: [{
1267
1276
  type: Directive,
1268
1277
  args: [{
1269
- selector: '[dbxActionSuccessHandler]',
1278
+ selector: '[dbxActionSuccessHandler]'
1270
1279
  }]
1271
1280
  }], ctorParameters: function () { return [{ type: DbxActionContextStoreSourceInstance, decorators: [{
1272
1281
  type: Host
@@ -1294,10 +1303,12 @@ class DbxActionValueDirective extends AbstractSubscriptionDirective {
1294
1303
  this._valueOrFunction.next(valueOrFunction);
1295
1304
  }
1296
1305
  ngOnInit() {
1297
- this.sub = this.valueOrFunction$.pipe(switchMap(valueOrFunction => this.source.triggered$.pipe(tap(() => {
1306
+ this.sub = this.valueOrFunction$
1307
+ .pipe(switchMap((valueOrFunction) => this.source.triggered$.pipe(tap(() => {
1298
1308
  const value = getValueFromGetter(valueOrFunction);
1299
1309
  this.source.readyValue(value);
1300
- })))).subscribe();
1310
+ }))))
1311
+ .subscribe();
1301
1312
  }
1302
1313
  ngOnDestroy() {
1303
1314
  this.source.lockSet.onNextUnlock(() => {
@@ -1311,7 +1322,7 @@ DbxActionValueDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0"
1311
1322
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxActionValueDirective, decorators: [{
1312
1323
  type: Directive,
1313
1324
  args: [{
1314
- selector: '[dbxActionValue]',
1325
+ selector: '[dbxActionValue]'
1315
1326
  }]
1316
1327
  }], ctorParameters: function () { return [{ type: DbxActionContextStoreSourceInstance, decorators: [{
1317
1328
  type: Host
@@ -1362,7 +1373,9 @@ class DbxActionEnforceModifiedDirective extends AbstractSubscriptionDirective {
1362
1373
  this._enabled = new BehaviorSubject(true);
1363
1374
  }
1364
1375
  ngOnInit() {
1365
- this.sub = combineLatest([this.source.isModified$, this._enabled]).pipe(delay(0)).subscribe(([modified, enableDirective]) => {
1376
+ this.sub = combineLatest([this.source.isModified$, this._enabled])
1377
+ .pipe(delay(0))
1378
+ .subscribe(([modified, enableDirective]) => {
1366
1379
  const disable = enableDirective && !modified;
1367
1380
  this.source.disable(APP_ACTION_ENFORCE_MODIFIED_DIRECTIVE_KEY, disable);
1368
1381
  });
@@ -1412,12 +1425,13 @@ class DbxActionValueOnTriggerInstance {
1412
1425
  }
1413
1426
  init() {
1414
1427
  // Ready the value after the source is triggered. Do modified check one last time.
1415
- this._triggeredSub.subscription = this.source.triggered$.pipe(switchMap(() => this.valueGetter$.pipe(switchMap((valueGetter) => asObservable(valueGetter())))
1416
- .pipe(
1428
+ this._triggeredSub.subscription = this.source.triggered$
1429
+ .pipe(switchMap(() => this.valueGetter$.pipe(switchMap((valueGetter) => asObservable(valueGetter()))).pipe(
1417
1430
  // If the value is not null/undefined and is considered modified, then pass the value.
1418
1431
  switchMap((value) => returnIfIs(this.isModifiedFunction, value, false).pipe(map((value) => ({ value })))),
1419
1432
  // Catch unknown errors and pass them to reject.
1420
- catchError((reject) => of({ reject: toReadableError(reject) }))))).subscribe((result) => {
1433
+ catchError((reject) => of({ reject: toReadableError(reject) })))))
1434
+ .subscribe((result) => {
1421
1435
  if (result.value != null) {
1422
1436
  this.source.readyValue(result.value);
1423
1437
  }
@@ -1544,33 +1558,81 @@ class DbxActionContextMachine extends DbxActionContextBaseSource {
1544
1558
  class DbxCoreActionModule {
1545
1559
  }
1546
1560
  DbxCoreActionModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxCoreActionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1547
- DbxCoreActionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxCoreActionModule, declarations: [DbxActionDirective, DbxActionContextMapDirective, DbxActionFromMapDirective, DbxActionMapSourceDirective,
1548
- DbxActionMapWorkingDisableDirective, DbxActionSourceDirective, DbxActionHandlerDirective, DbxActionDisabledDirective, DbxActionEnforceModifiedDirective,
1549
- DbxActionAutoTriggerDirective, dbxActionValueStreamDirective, DbxActionAutoModifyDirective, DbxActionValueDirective, DbxActionContextLoggerDirective,
1550
- DbxActionHasSuccessDirective, DbxActionSuccessHandlerDirective, DbxActionIsWorkingDirective], imports: [CommonModule], exports: [DbxActionDirective, DbxActionContextMapDirective, DbxActionFromMapDirective, DbxActionMapSourceDirective,
1551
- DbxActionMapWorkingDisableDirective, DbxActionSourceDirective, DbxActionHandlerDirective, DbxActionDisabledDirective, DbxActionEnforceModifiedDirective,
1552
- DbxActionAutoTriggerDirective, dbxActionValueStreamDirective, DbxActionAutoModifyDirective, DbxActionValueDirective, DbxActionContextLoggerDirective,
1553
- DbxActionHasSuccessDirective, DbxActionSuccessHandlerDirective, DbxActionIsWorkingDirective] });
1554
- DbxCoreActionModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxCoreActionModule, imports: [[
1555
- CommonModule
1556
- ]] });
1561
+ DbxCoreActionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxCoreActionModule, declarations: [DbxActionDirective,
1562
+ DbxActionContextMapDirective,
1563
+ DbxActionFromMapDirective,
1564
+ DbxActionMapSourceDirective,
1565
+ DbxActionMapWorkingDisableDirective,
1566
+ DbxActionSourceDirective,
1567
+ DbxActionHandlerDirective,
1568
+ DbxActionDisabledDirective,
1569
+ DbxActionEnforceModifiedDirective,
1570
+ DbxActionAutoTriggerDirective,
1571
+ dbxActionValueStreamDirective,
1572
+ DbxActionAutoModifyDirective,
1573
+ DbxActionValueDirective,
1574
+ DbxActionContextLoggerDirective,
1575
+ DbxActionHasSuccessDirective,
1576
+ DbxActionSuccessHandlerDirective,
1577
+ DbxActionIsWorkingDirective], imports: [CommonModule], exports: [DbxActionDirective,
1578
+ DbxActionContextMapDirective,
1579
+ DbxActionFromMapDirective,
1580
+ DbxActionMapSourceDirective,
1581
+ DbxActionMapWorkingDisableDirective,
1582
+ DbxActionSourceDirective,
1583
+ DbxActionHandlerDirective,
1584
+ DbxActionDisabledDirective,
1585
+ DbxActionEnforceModifiedDirective,
1586
+ DbxActionAutoTriggerDirective,
1587
+ dbxActionValueStreamDirective,
1588
+ DbxActionAutoModifyDirective,
1589
+ DbxActionValueDirective,
1590
+ DbxActionContextLoggerDirective,
1591
+ DbxActionHasSuccessDirective,
1592
+ DbxActionSuccessHandlerDirective,
1593
+ DbxActionIsWorkingDirective] });
1594
+ DbxCoreActionModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxCoreActionModule, imports: [[CommonModule]] });
1557
1595
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxCoreActionModule, decorators: [{
1558
1596
  type: NgModule,
1559
1597
  args: [{
1560
- imports: [
1561
- CommonModule
1562
- ],
1598
+ imports: [CommonModule],
1563
1599
  declarations: [
1564
- DbxActionDirective, DbxActionContextMapDirective, DbxActionFromMapDirective, DbxActionMapSourceDirective,
1565
- DbxActionMapWorkingDisableDirective, DbxActionSourceDirective, DbxActionHandlerDirective, DbxActionDisabledDirective, DbxActionEnforceModifiedDirective,
1566
- DbxActionAutoTriggerDirective, dbxActionValueStreamDirective, DbxActionAutoModifyDirective, DbxActionValueDirective, DbxActionContextLoggerDirective,
1567
- DbxActionHasSuccessDirective, DbxActionSuccessHandlerDirective, DbxActionIsWorkingDirective,
1600
+ DbxActionDirective,
1601
+ DbxActionContextMapDirective,
1602
+ DbxActionFromMapDirective,
1603
+ DbxActionMapSourceDirective,
1604
+ DbxActionMapWorkingDisableDirective,
1605
+ DbxActionSourceDirective,
1606
+ DbxActionHandlerDirective,
1607
+ DbxActionDisabledDirective,
1608
+ DbxActionEnforceModifiedDirective,
1609
+ DbxActionAutoTriggerDirective,
1610
+ dbxActionValueStreamDirective,
1611
+ DbxActionAutoModifyDirective,
1612
+ DbxActionValueDirective,
1613
+ DbxActionContextLoggerDirective,
1614
+ DbxActionHasSuccessDirective,
1615
+ DbxActionSuccessHandlerDirective,
1616
+ DbxActionIsWorkingDirective
1568
1617
  ],
1569
1618
  exports: [
1570
- DbxActionDirective, DbxActionContextMapDirective, DbxActionFromMapDirective, DbxActionMapSourceDirective,
1571
- DbxActionMapWorkingDisableDirective, DbxActionSourceDirective, DbxActionHandlerDirective, DbxActionDisabledDirective, DbxActionEnforceModifiedDirective,
1572
- DbxActionAutoTriggerDirective, dbxActionValueStreamDirective, DbxActionAutoModifyDirective, DbxActionValueDirective, DbxActionContextLoggerDirective,
1573
- DbxActionHasSuccessDirective, DbxActionSuccessHandlerDirective, DbxActionIsWorkingDirective
1619
+ DbxActionDirective,
1620
+ DbxActionContextMapDirective,
1621
+ DbxActionFromMapDirective,
1622
+ DbxActionMapSourceDirective,
1623
+ DbxActionMapWorkingDisableDirective,
1624
+ DbxActionSourceDirective,
1625
+ DbxActionHandlerDirective,
1626
+ DbxActionDisabledDirective,
1627
+ DbxActionEnforceModifiedDirective,
1628
+ DbxActionAutoTriggerDirective,
1629
+ dbxActionValueStreamDirective,
1630
+ DbxActionAutoModifyDirective,
1631
+ DbxActionValueDirective,
1632
+ DbxActionContextLoggerDirective,
1633
+ DbxActionHasSuccessDirective,
1634
+ DbxActionSuccessHandlerDirective,
1635
+ DbxActionIsWorkingDirective
1574
1636
  ]
1575
1637
  }]
1576
1638
  }] });
@@ -1583,7 +1645,7 @@ function makeDbxActionContextSourceReference(sourceInstance) {
1583
1645
  }
1584
1646
 
1585
1647
  function isSegueRef(input) {
1586
- return (typeof input === 'object') && hasValueOrNotEmpty(input.ref);
1648
+ return typeof input === 'object' && hasValueOrNotEmpty(input.ref);
1587
1649
  }
1588
1650
  function asSegueRef(input) {
1589
1651
  const type = typeof input;
@@ -1612,7 +1674,7 @@ function refStringToSegueRef(ref, options) {
1612
1674
  return { ...options, ref };
1613
1675
  }
1614
1676
  function mapRefStringObsToSegueRefObs(obs, options) {
1615
- return obs.pipe(map(x => refStringToSegueRef(x, options)));
1677
+ return obs.pipe(map((x) => refStringToSegueRef(x, options)));
1616
1678
  }
1617
1679
 
1618
1680
  /**
@@ -1754,7 +1816,7 @@ function enableHasAuthRoleHook(transitionService, config) {
1754
1816
  const data = targetState.state().data;
1755
1817
  const requiredRoles = new Set(data.authRoles);
1756
1818
  const setIncludes = setIncludesFunction(requiredRoles, data.authRolesMode);
1757
- return authService.authUserState$.pipe(map(x => setIncludes(x)));
1819
+ return authService.authUserState$.pipe(map((x) => setIncludes(x)));
1758
1820
  }
1759
1821
  });
1760
1822
  // Register the "requires auth" hook with the TransitionsService
@@ -1783,7 +1845,7 @@ function enableHasAuthStateHook(transitionService, config) {
1783
1845
  const data = targetState.state().data;
1784
1846
  const config = toHasAuthStateObjectConfig(data.authStates);
1785
1847
  const parsed = toParsedHasAuthStateConfig(config);
1786
- return authService.authUserState$.pipe(map(x => isAllowed(x, parsed)));
1848
+ return authService.authUserState$.pipe(map((x) => isAllowed(x, parsed)));
1787
1849
  }
1788
1850
  });
1789
1851
  // Register the "requires auth" hook with the TransitionsService
@@ -1792,7 +1854,7 @@ function enableHasAuthStateHook(transitionService, config) {
1792
1854
  // MARK: Utility
1793
1855
  function toHasAuthStateObjectConfig(input) {
1794
1856
  const isString = typeof input === 'string';
1795
- if ((Array.isArray(input) || isString)) {
1857
+ if (Array.isArray(input) || isString) {
1796
1858
  if (isString) {
1797
1859
  input = [input];
1798
1860
  }
@@ -1940,7 +2002,7 @@ const NO_AUTH_USER_IDENTIFIER = '0';
1940
2002
  * @returns
1941
2003
  */
1942
2004
  function authUserIdentifier(inputId) {
1943
- return (inputId) ? inputId : NO_AUTH_USER_IDENTIFIER;
2005
+ return inputId ? inputId : NO_AUTH_USER_IDENTIFIER;
1944
2006
  }
1945
2007
 
1946
2008
  /**
@@ -2087,10 +2149,12 @@ function anchorTypeForAnchor(anchor, disabled) {
2087
2149
  class DbxAnchor {
2088
2150
  }
2089
2151
  function provideDbxAnchor(sourceType) {
2090
- return [{
2152
+ return [
2153
+ {
2091
2154
  provide: DbxAnchor,
2092
2155
  useExisting: forwardRef(() => sourceType)
2093
- }];
2156
+ }
2157
+ ];
2094
2158
  }
2095
2159
 
2096
2160
  /**
@@ -2216,7 +2280,7 @@ class DbxRouterService {
2216
2280
  */
2217
2281
  function goWithRouter(dbxRouterService) {
2218
2282
  return (route) => {
2219
- return firstValueFrom(asObservable(route)).then(x => dbxRouterService.go(x));
2283
+ return firstValueFrom(asObservable(route)).then((x) => dbxRouterService.go(x));
2220
2284
  };
2221
2285
  }
2222
2286
 
@@ -2286,13 +2350,16 @@ class DbxUIRouterService {
2286
2350
  go(input) {
2287
2351
  const segueRef = asSegueRef(input);
2288
2352
  const params = { ...this.uiRouterGlobals.current.params, ...segueRef.refParams };
2289
- return this.state.go(segueRef.ref, params, segueRef.refOptions).then(() => true).catch(() => false);
2353
+ return this.state
2354
+ .go(segueRef.ref, params, segueRef.refOptions)
2355
+ .then(() => true)
2356
+ .catch(() => false);
2290
2357
  }
2291
2358
  isActive(input) {
2292
2359
  const segueRef = asSegueRef(input);
2293
2360
  const ref = segueRef.ref;
2294
2361
  const refParams = segueRef.refParams;
2295
- const targetRef = (ref.startsWith('.') ? `^${ref}` : ref);
2362
+ const targetRef = ref.startsWith('.') ? `^${ref}` : ref;
2296
2363
  const active = this.state.includes(targetRef, refParams);
2297
2364
  return active;
2298
2365
  }
@@ -2301,7 +2368,7 @@ class DbxUIRouterService {
2301
2368
  const bRef = asSegueRefString(bInput);
2302
2369
  const aLength = aRef.length;
2303
2370
  const bLength = bRef.length;
2304
- return (aLength > bLength) ? 1 : (aLength === bLength) ? 0 : -1;
2371
+ return aLength > bLength ? 1 : aLength === bLength ? 0 : -1;
2305
2372
  }
2306
2373
  }
2307
2374
  DbxUIRouterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxUIRouterService, deps: [{ token: i1$2.StateService }, { token: i1$2.TransitionService }, { token: i1$2.UIRouterGlobals }], target: i0.ɵɵFactoryTarget.Injectable });
@@ -2349,7 +2416,7 @@ function filterTransitionSuccess() {
2349
2416
  return filterTransitionEvent(DbxRouterTransitionEventType.SUCCESS);
2350
2417
  }
2351
2418
  function filterTransitionEvent(type) {
2352
- return filter(x => x.type === type);
2419
+ return filter((x) => x.type === type);
2353
2420
  }
2354
2421
 
2355
2422
  /**
@@ -2494,24 +2561,22 @@ class DbxAppAuthRouterStateModule {
2494
2561
  static forRoot(config) {
2495
2562
  return {
2496
2563
  ngModule: DbxAppAuthRouterStateModule,
2497
- providers: [{
2564
+ providers: [
2565
+ {
2498
2566
  provide: DBX_APP_AUTH_ROUTER_EFFECTS_TOKEN,
2499
2567
  useValue: config.activeRoutesToApplyEffects
2500
- }]
2568
+ }
2569
+ ]
2501
2570
  };
2502
2571
  }
2503
2572
  }
2504
2573
  DbxAppAuthRouterStateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxAppAuthRouterStateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2505
2574
  DbxAppAuthRouterStateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxAppAuthRouterStateModule, imports: [i1$3.EffectsFeatureModule] });
2506
- DbxAppAuthRouterStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxAppAuthRouterStateModule, imports: [[
2507
- EffectsModule.forFeature([DbxAppAuthRouterEffects])
2508
- ]] });
2575
+ DbxAppAuthRouterStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxAppAuthRouterStateModule, imports: [[EffectsModule.forFeature([DbxAppAuthRouterEffects])]] });
2509
2576
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxAppAuthRouterStateModule, decorators: [{
2510
2577
  type: NgModule,
2511
2578
  args: [{
2512
- imports: [
2513
- EffectsModule.forFeature([DbxAppAuthRouterEffects])
2514
- ],
2579
+ imports: [EffectsModule.forFeature([DbxAppAuthRouterEffects])],
2515
2580
  declarations: [],
2516
2581
  exports: []
2517
2582
  }]
@@ -2521,10 +2586,12 @@ class DbxAppAuthRouterModule {
2521
2586
  static forRoot(dbxAppAuthRoutes) {
2522
2587
  return {
2523
2588
  ngModule: DbxAppAuthRouterModule,
2524
- providers: [{
2589
+ providers: [
2590
+ {
2525
2591
  provide: DbxAppAuthRoutes,
2526
2592
  useValue: dbxAppAuthRoutes
2527
- }]
2593
+ }
2594
+ ]
2528
2595
  };
2529
2596
  }
2530
2597
  }
@@ -2628,22 +2695,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
2628
2695
  class DbxCoreAuthModule {
2629
2696
  }
2630
2697
  DbxCoreAuthModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxCoreAuthModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2631
- DbxCoreAuthModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxCoreAuthModule, declarations: [DbxAuthHasRolesDirective,
2632
- DbxAuthHasAnyRoleDirective], exports: [DbxAuthHasRolesDirective,
2633
- DbxAuthHasAnyRoleDirective] });
2698
+ DbxCoreAuthModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxCoreAuthModule, declarations: [DbxAuthHasRolesDirective, DbxAuthHasAnyRoleDirective], exports: [DbxAuthHasRolesDirective, DbxAuthHasAnyRoleDirective] });
2634
2699
  DbxCoreAuthModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxCoreAuthModule, imports: [[]] });
2635
2700
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxCoreAuthModule, decorators: [{
2636
2701
  type: NgModule,
2637
2702
  args: [{
2638
2703
  imports: [],
2639
- declarations: [
2640
- DbxAuthHasRolesDirective,
2641
- DbxAuthHasAnyRoleDirective
2642
- ],
2643
- exports: [
2644
- DbxAuthHasRolesDirective,
2645
- DbxAuthHasAnyRoleDirective
2646
- ]
2704
+ declarations: [DbxAuthHasRolesDirective, DbxAuthHasAnyRoleDirective],
2705
+ exports: [DbxAuthHasRolesDirective, DbxAuthHasAnyRoleDirective]
2647
2706
  }]
2648
2707
  }] });
2649
2708
 
@@ -2656,23 +2715,17 @@ class DbxAppAuthEffects {
2656
2715
  this.store = store;
2657
2716
  this.dbxAuthService = dbxAuthService;
2658
2717
  // MARK: Auth
2659
- this.emitLoggedIn = createEffect(() => this.dbxAuthService.onLogIn$
2660
- .pipe(map(() => loggedIn())));
2661
- this.emitLoggedOut = createEffect(() => this.dbxAuthService.onLogOut$
2662
- .pipe(map(() => loggedOut())));
2718
+ this.emitLoggedIn = createEffect(() => this.dbxAuthService.onLogIn$.pipe(map(() => loggedIn())));
2719
+ this.emitLoggedOut = createEffect(() => this.dbxAuthService.onLogOut$.pipe(map(() => loggedOut())));
2663
2720
  this.forwardLogoutToAuthService = createEffect(() => this.actions$.pipe(ofType(logout), tap(() => {
2664
2721
  // Perform the logout
2665
2722
  this.dbxAuthService.logOut();
2666
2723
  })), { dispatch: false });
2667
2724
  // MARK: Auth
2668
- this.setUserIdentifier = createEffect(() => this.dbxAuthService.userIdentifier$
2669
- .pipe(map((id) => setUserIdentifier({ id }))));
2670
- this.setUserState = createEffect(() => this.dbxAuthService.authUserState$
2671
- .pipe(map((state) => setUserState({ state }))));
2672
- this.setUserRoles = createEffect(() => this.dbxAuthService.authRoles$
2673
- .pipe(map((roles) => setUserRoles({ roles: Array.from(roles ?? []) }))));
2674
- this.setUserIsOnboarded = createEffect(() => this.dbxAuthService.isOnboarded$
2675
- .pipe(map((isOnboarded) => setUserIsOnboarded({ isOnboarded }))));
2725
+ this.setUserIdentifier = createEffect(() => this.dbxAuthService.userIdentifier$.pipe(map((id) => setUserIdentifier({ id }))));
2726
+ this.setUserState = createEffect(() => this.dbxAuthService.authUserState$.pipe(map((state) => setUserState({ state }))));
2727
+ this.setUserRoles = createEffect(() => this.dbxAuthService.authRoles$.pipe(map((roles) => setUserRoles({ roles: Array.from(roles ?? []) }))));
2728
+ this.setUserIsOnboarded = createEffect(() => this.dbxAuthService.isOnboarded$.pipe(map((isOnboarded) => setUserIsOnboarded({ isOnboarded }))));
2676
2729
  }
2677
2730
  }
2678
2731
  DbxAppAuthEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxAppAuthEffects, deps: [{ token: i1$3.Actions }, { token: i1$4.Store }, { token: DbxAuthService }], target: i0.ɵɵFactoryTarget.Injectable });
@@ -2685,17 +2738,11 @@ class DbxAppAuthStateModule {
2685
2738
  }
2686
2739
  DbxAppAuthStateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxAppAuthStateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2687
2740
  DbxAppAuthStateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxAppAuthStateModule, imports: [i1$4.StoreFeatureModule, i1$3.EffectsFeatureModule] });
2688
- DbxAppAuthStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxAppAuthStateModule, imports: [[
2689
- StoreModule.forFeature(featureKey, reducers),
2690
- EffectsModule.forFeature([DbxAppAuthEffects])
2691
- ]] });
2741
+ DbxAppAuthStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxAppAuthStateModule, imports: [[StoreModule.forFeature(featureKey, reducers), EffectsModule.forFeature([DbxAppAuthEffects])]] });
2692
2742
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxAppAuthStateModule, decorators: [{
2693
2743
  type: NgModule,
2694
2744
  args: [{
2695
- imports: [
2696
- StoreModule.forFeature(featureKey, reducers),
2697
- EffectsModule.forFeature([DbxAppAuthEffects])
2698
- ],
2745
+ imports: [StoreModule.forFeature(featureKey, reducers), EffectsModule.forFeature([DbxAppAuthEffects])],
2699
2746
  declarations: [],
2700
2747
  exports: []
2701
2748
  }]
@@ -2782,10 +2829,12 @@ function checkNgContentWrapperHasContent(ref) {
2782
2829
  class DbxButton {
2783
2830
  }
2784
2831
  function provideDbxButton(sourceType) {
2785
- return [{
2832
+ return [
2833
+ {
2786
2834
  provide: DbxButton,
2787
2835
  useExisting: forwardRef(() => sourceType)
2788
- }];
2836
+ }
2837
+ ];
2789
2838
  }
2790
2839
 
2791
2840
  /**
@@ -2871,9 +2920,11 @@ class DbxButtonSegueDirective extends AbstractSubscriptionDirective {
2871
2920
  this._segueRef.next(segueRef);
2872
2921
  }
2873
2922
  ngOnInit() {
2874
- this.sub = this.segueRef$.pipe(switchMap(segueRef => this.dbxButton.clicked$.pipe(tap(() => {
2923
+ this.sub = this.segueRef$
2924
+ .pipe(switchMap((segueRef) => this.dbxButton.clicked$.pipe(tap(() => {
2875
2925
  this.dbxRouterService.go(segueRef);
2876
- })))).subscribe();
2926
+ }))))
2927
+ .subscribe();
2877
2928
  }
2878
2929
  ngOnDestroy() {
2879
2930
  super.ngOnDestroy();
@@ -2923,7 +2974,8 @@ class AbstractDbxButtonDirective extends AbstractSubscriptionDirective {
2923
2974
  this._working.next(working);
2924
2975
  }
2925
2976
  ngOnInit() {
2926
- this.sub = this._buttonClick.pipe(switchMap(() => this._buttonInterceptor.pipe(switchMap((x) => {
2977
+ this.sub = this._buttonClick
2978
+ .pipe(switchMap(() => this._buttonInterceptor.pipe(switchMap((x) => {
2927
2979
  if (x) {
2928
2980
  return x.interceptButtonClick().pipe(first());
2929
2981
  }
@@ -2931,7 +2983,8 @@ class AbstractDbxButtonDirective extends AbstractSubscriptionDirective {
2931
2983
  return of(true);
2932
2984
  }
2933
2985
  }), filter((x) => Boolean(x)) // Ignore false values.
2934
- ))).subscribe(() => {
2986
+ )))
2987
+ .subscribe(() => {
2935
2988
  this._forceButtonClicked();
2936
2989
  });
2937
2990
  }
@@ -3013,7 +3066,7 @@ class DbxLoadingButtonDirective extends AbstractSubscriptionDirective {
3013
3066
  let subscription;
3014
3067
  if (context) {
3015
3068
  subscription = context.stream$.subscribe((x) => {
3016
- this.ngZone.run(() => this.button.working = x.loading);
3069
+ this.ngZone.run(() => (this.button.working = x.loading));
3017
3070
  });
3018
3071
  }
3019
3072
  this.sub = subscription;
@@ -3036,34 +3089,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
3036
3089
  class DbxCoreButtonModule {
3037
3090
  }
3038
3091
  DbxCoreButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxCoreButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3039
- DbxCoreButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxCoreButtonModule, declarations: [DbxButtonDirective,
3040
- DbxLoadingButtonDirective,
3041
- DbxActionButtonTriggerDirective,
3042
- DbxActionButtonDirective,
3043
- DbxButtonSegueDirective], exports: [DbxButtonDirective,
3044
- DbxLoadingButtonDirective,
3045
- DbxActionButtonTriggerDirective,
3046
- DbxActionButtonDirective,
3047
- DbxButtonSegueDirective] });
3092
+ DbxCoreButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxCoreButtonModule, declarations: [DbxButtonDirective, DbxLoadingButtonDirective, DbxActionButtonTriggerDirective, DbxActionButtonDirective, DbxButtonSegueDirective], exports: [DbxButtonDirective, DbxLoadingButtonDirective, DbxActionButtonTriggerDirective, DbxActionButtonDirective, DbxButtonSegueDirective] });
3048
3093
  DbxCoreButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxCoreButtonModule, imports: [[]] });
3049
3094
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxCoreButtonModule, decorators: [{
3050
3095
  type: NgModule,
3051
3096
  args: [{
3052
3097
  imports: [],
3053
- declarations: [
3054
- DbxButtonDirective,
3055
- DbxLoadingButtonDirective,
3056
- DbxActionButtonTriggerDirective,
3057
- DbxActionButtonDirective,
3058
- DbxButtonSegueDirective
3059
- ],
3060
- exports: [
3061
- DbxButtonDirective,
3062
- DbxLoadingButtonDirective,
3063
- DbxActionButtonTriggerDirective,
3064
- DbxActionButtonDirective,
3065
- DbxButtonSegueDirective
3066
- ],
3098
+ declarations: [DbxButtonDirective, DbxLoadingButtonDirective, DbxActionButtonTriggerDirective, DbxActionButtonDirective, DbxButtonSegueDirective],
3099
+ exports: [DbxButtonDirective, DbxLoadingButtonDirective, DbxActionButtonTriggerDirective, DbxActionButtonDirective, DbxButtonSegueDirective]
3067
3100
  }]
3068
3101
  }] });
3069
3102
 
@@ -3129,21 +3162,13 @@ class DbxAppContextStateModule {
3129
3162
  }
3130
3163
  DbxAppContextStateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxAppContextStateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3131
3164
  DbxAppContextStateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxAppContextStateModule, declarations: [DbxAppContextStateDirective], imports: [i1$4.StoreFeatureModule], exports: [DbxAppContextStateDirective] });
3132
- DbxAppContextStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxAppContextStateModule, imports: [[
3133
- StoreModule.forFeature(featureKey$1, reducers$1)
3134
- ]] });
3165
+ DbxAppContextStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxAppContextStateModule, imports: [[StoreModule.forFeature(featureKey$1, reducers$1)]] });
3135
3166
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxAppContextStateModule, decorators: [{
3136
3167
  type: NgModule,
3137
3168
  args: [{
3138
- imports: [
3139
- StoreModule.forFeature(featureKey$1, reducers$1)
3140
- ],
3141
- declarations: [
3142
- DbxAppContextStateDirective
3143
- ],
3144
- exports: [
3145
- DbxAppContextStateDirective
3146
- ]
3169
+ imports: [StoreModule.forFeature(featureKey$1, reducers$1)],
3170
+ declarations: [DbxAppContextStateDirective],
3171
+ exports: [DbxAppContextStateDirective]
3147
3172
  }]
3148
3173
  }] });
3149
3174
 
@@ -3184,12 +3209,12 @@ class MinutesStringPipe {
3184
3209
  if (minutes > 3600) {
3185
3210
  const unrounded = minutes / 3600;
3186
3211
  const days = Math.ceil(unrounded);
3187
- return ((unrounded !== days) ? '~' : '') + days + ' days';
3212
+ return (unrounded !== days ? '~' : '') + days + ' days';
3188
3213
  }
3189
3214
  else if (minutes > 180) {
3190
3215
  const unrounded = minutes / 60;
3191
3216
  const hours = Math.ceil(unrounded);
3192
- return ((unrounded !== hours) ? '~' : '') + hours + ' hours';
3217
+ return (unrounded !== hours ? '~' : '') + hours + ' hours';
3193
3218
  }
3194
3219
  else {
3195
3220
  return minutes + ' minutes';
@@ -3359,45 +3384,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
3359
3384
  class DbxDatePipeModule {
3360
3385
  }
3361
3386
  DbxDatePipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxDatePipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3362
- DbxDatePipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxDatePipeModule, declarations: [DateFromToTimePipe,
3363
- DateFormatDistancePipe,
3364
- MinutesStringPipe,
3365
- TimeDistanceCountdownPipe,
3366
- TimeDistancePipe,
3367
- DateDistancePipe,
3368
- ToJsDatePipe,
3369
- ToMinutesPipe], exports: [DateFromToTimePipe,
3370
- DateFormatDistancePipe,
3371
- MinutesStringPipe,
3372
- TimeDistanceCountdownPipe,
3373
- TimeDistancePipe,
3374
- DateDistancePipe,
3375
- ToJsDatePipe,
3376
- ToMinutesPipe] });
3387
+ DbxDatePipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxDatePipeModule, declarations: [DateFromToTimePipe, DateFormatDistancePipe, MinutesStringPipe, TimeDistanceCountdownPipe, TimeDistancePipe, DateDistancePipe, ToJsDatePipe, ToMinutesPipe], exports: [DateFromToTimePipe, DateFormatDistancePipe, MinutesStringPipe, TimeDistanceCountdownPipe, TimeDistancePipe, DateDistancePipe, ToJsDatePipe, ToMinutesPipe] });
3377
3388
  DbxDatePipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxDatePipeModule });
3378
3389
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxDatePipeModule, decorators: [{
3379
3390
  type: NgModule,
3380
3391
  args: [{
3381
- exports: [
3382
- DateFromToTimePipe,
3383
- DateFormatDistancePipe,
3384
- MinutesStringPipe,
3385
- TimeDistanceCountdownPipe,
3386
- TimeDistancePipe,
3387
- DateDistancePipe,
3388
- ToJsDatePipe,
3389
- ToMinutesPipe
3390
- ],
3391
- declarations: [
3392
- DateFromToTimePipe,
3393
- DateFormatDistancePipe,
3394
- MinutesStringPipe,
3395
- TimeDistanceCountdownPipe,
3396
- TimeDistancePipe,
3397
- DateDistancePipe,
3398
- ToJsDatePipe,
3399
- ToMinutesPipe
3400
- ]
3392
+ exports: [DateFromToTimePipe, DateFormatDistancePipe, MinutesStringPipe, TimeDistanceCountdownPipe, TimeDistancePipe, DateDistancePipe, ToJsDatePipe, ToMinutesPipe],
3393
+ declarations: [DateFromToTimePipe, DateFormatDistancePipe, MinutesStringPipe, TimeDistanceCountdownPipe, TimeDistancePipe, DateDistancePipe, ToJsDatePipe, ToMinutesPipe]
3401
3394
  }]
3402
3395
  }] });
3403
3396
 
@@ -3434,29 +3427,20 @@ DbxMiscPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", versi
3434
3427
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxMiscPipeModule, decorators: [{
3435
3428
  type: NgModule,
3436
3429
  args: [{
3437
- exports: [
3438
- PrettyJsonPipe
3439
- ],
3440
- declarations: [
3441
- PrettyJsonPipe
3442
- ]
3430
+ exports: [PrettyJsonPipe],
3431
+ declarations: [PrettyJsonPipe]
3443
3432
  }]
3444
3433
  }] });
3445
3434
 
3446
3435
  class DbxPipesModule {
3447
3436
  }
3448
3437
  DbxPipesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxPipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3449
- DbxPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxPipesModule, exports: [DbxMiscPipeModule,
3450
- DbxDatePipeModule] });
3451
- DbxPipesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxPipesModule, imports: [DbxMiscPipeModule,
3452
- DbxDatePipeModule] });
3438
+ DbxPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxPipesModule, exports: [DbxMiscPipeModule, DbxDatePipeModule] });
3439
+ DbxPipesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxPipesModule, imports: [DbxMiscPipeModule, DbxDatePipeModule] });
3453
3440
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxPipesModule, decorators: [{
3454
3441
  type: NgModule,
3455
3442
  args: [{
3456
- exports: [
3457
- DbxMiscPipeModule,
3458
- DbxDatePipeModule,
3459
- ]
3443
+ exports: [DbxMiscPipeModule, DbxDatePipeModule]
3460
3444
  }]
3461
3445
  }] });
3462
3446
 
@@ -3528,7 +3512,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
3528
3512
  class AbstractFilterSourceConnectorDirective {
3529
3513
  constructor() {
3530
3514
  this._source = new BehaviorSubject(undefined);
3531
- this.filter$ = this._source.pipe(switchMap(x => x?.filter$ ?? of(undefined)), filterMaybe(), shareReplay(1));
3515
+ this.filter$ = this._source.pipe(switchMap((x) => x?.filter$ ?? of(undefined)), filterMaybe(), shareReplay(1));
3532
3516
  }
3533
3517
  ngOnDestroy() {
3534
3518
  this._source.complete();
@@ -3547,22 +3531,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
3547
3531
  * Angular provider convenience function for a FilterSource.
3548
3532
  */
3549
3533
  function provideFilterSource(sourceType) {
3550
- return [{
3534
+ return [
3535
+ {
3551
3536
  provide: FilterSource,
3552
3537
  useExisting: forwardRef(() => sourceType)
3553
- }];
3538
+ }
3539
+ ];
3554
3540
  }
3555
3541
  /**
3556
3542
  * Angular provider convenience function for a FilterSourceConnector.
3557
3543
  */
3558
3544
  function provideFilterSourceConnector(sourceType) {
3559
- return [{
3545
+ return [
3546
+ {
3560
3547
  provide: FilterSourceConnector,
3561
3548
  useExisting: forwardRef(() => sourceType)
3562
- }, {
3549
+ },
3550
+ {
3563
3551
  provide: FilterSource,
3564
3552
  useExisting: forwardRef(() => sourceType)
3565
- }];
3553
+ }
3554
+ ];
3566
3555
  }
3567
3556
 
3568
3557
  /**
@@ -3571,18 +3560,12 @@ function provideFilterSourceConnector(sourceType) {
3571
3560
  class DbxFilterSourceConnectorDirective extends AbstractFilterSourceConnectorDirective {
3572
3561
  }
3573
3562
  DbxFilterSourceConnectorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxFilterSourceConnectorDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
3574
- DbxFilterSourceConnectorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: DbxFilterSourceConnectorDirective, selector: "[dbxFilterSourceConnector]", providers: [
3575
- ...provideFilterSource(DbxFilterSourceConnectorDirective),
3576
- ...provideFilterSourceConnector(DbxFilterSourceConnectorDirective)
3577
- ], usesInheritance: true, ngImport: i0 });
3563
+ DbxFilterSourceConnectorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: DbxFilterSourceConnectorDirective, selector: "[dbxFilterSourceConnector]", providers: [...provideFilterSource(DbxFilterSourceConnectorDirective), ...provideFilterSourceConnector(DbxFilterSourceConnectorDirective)], usesInheritance: true, ngImport: i0 });
3578
3564
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxFilterSourceConnectorDirective, decorators: [{
3579
3565
  type: Directive,
3580
3566
  args: [{
3581
3567
  selector: '[dbxFilterSourceConnector]',
3582
- providers: [
3583
- ...provideFilterSource(DbxFilterSourceConnectorDirective),
3584
- ...provideFilterSourceConnector(DbxFilterSourceConnectorDirective)
3585
- ]
3568
+ providers: [...provideFilterSource(DbxFilterSourceConnectorDirective), ...provideFilterSourceConnector(DbxFilterSourceConnectorDirective)]
3586
3569
  }]
3587
3570
  }] });
3588
3571
 
@@ -3612,7 +3595,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
3612
3595
  class DbxFilterMapSourceDirective extends AbstractDbxFilterMapInstanceDirective {
3613
3596
  constructor() {
3614
3597
  super(...arguments);
3615
- this.filter$ = this.instance$.pipe(switchMap(x => x.filter$));
3598
+ this.filter$ = this.instance$.pipe(switchMap((x) => x.filter$));
3616
3599
  }
3617
3600
  get key() {
3618
3601
  return this._key.value;
@@ -3625,17 +3608,13 @@ class DbxFilterMapSourceDirective extends AbstractDbxFilterMapInstanceDirective
3625
3608
  }
3626
3609
  }
3627
3610
  DbxFilterMapSourceDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxFilterMapSourceDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
3628
- DbxFilterMapSourceDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: DbxFilterMapSourceDirective, selector: "[dbxFilterMapSource]", inputs: { key: ["dbxFilterMapSource", "key"] }, providers: [
3629
- ...provideFilterSource(DbxFilterMapSourceDirective)
3630
- ], exportAs: ["dbxFilterMapSource"], usesInheritance: true, ngImport: i0 });
3611
+ DbxFilterMapSourceDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: DbxFilterMapSourceDirective, selector: "[dbxFilterMapSource]", inputs: { key: ["dbxFilterMapSource", "key"] }, providers: [...provideFilterSource(DbxFilterMapSourceDirective)], exportAs: ["dbxFilterMapSource"], usesInheritance: true, ngImport: i0 });
3631
3612
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxFilterMapSourceDirective, decorators: [{
3632
3613
  type: Directive,
3633
3614
  args: [{
3634
3615
  selector: '[dbxFilterMapSource]',
3635
3616
  exportAs: 'dbxFilterMapSource',
3636
- providers: [
3637
- ...provideFilterSource(DbxFilterMapSourceDirective)
3638
- ]
3617
+ providers: [...provideFilterSource(DbxFilterMapSourceDirective)]
3639
3618
  }]
3640
3619
  }], propDecorators: { key: [{
3641
3620
  type: Input,
@@ -3658,19 +3637,13 @@ class DbxFilterMapSourceConnectorDirective extends DbxFilterMapSourceDirective {
3658
3637
  }
3659
3638
  }
3660
3639
  DbxFilterMapSourceConnectorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxFilterMapSourceConnectorDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
3661
- DbxFilterMapSourceConnectorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: DbxFilterMapSourceConnectorDirective, selector: "[dbxFilterMapSourceConnector]", inputs: { key: ["dbxFilterMapSourceConnector", "key"] }, providers: [
3662
- ...provideFilterSource(DbxFilterMapSourceConnectorDirective),
3663
- ...provideFilterSourceConnector(DbxFilterMapSourceConnectorDirective)
3664
- ], exportAs: ["dbxFilterMapSourceConnector"], usesInheritance: true, ngImport: i0 });
3640
+ DbxFilterMapSourceConnectorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: DbxFilterMapSourceConnectorDirective, selector: "[dbxFilterMapSourceConnector]", inputs: { key: ["dbxFilterMapSourceConnector", "key"] }, providers: [...provideFilterSource(DbxFilterMapSourceConnectorDirective), ...provideFilterSourceConnector(DbxFilterMapSourceConnectorDirective)], exportAs: ["dbxFilterMapSourceConnector"], usesInheritance: true, ngImport: i0 });
3665
3641
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxFilterMapSourceConnectorDirective, decorators: [{
3666
3642
  type: Directive,
3667
3643
  args: [{
3668
3644
  selector: '[dbxFilterMapSourceConnector]',
3669
3645
  exportAs: 'dbxFilterMapSourceConnector',
3670
- providers: [
3671
- ...provideFilterSource(DbxFilterMapSourceConnectorDirective),
3672
- ...provideFilterSourceConnector(DbxFilterMapSourceConnectorDirective)
3673
- ]
3646
+ providers: [...provideFilterSource(DbxFilterMapSourceConnectorDirective), ...provideFilterSourceConnector(DbxFilterMapSourceConnectorDirective)]
3674
3647
  }]
3675
3648
  }], propDecorators: { key: [{
3676
3649
  type: Input,
@@ -3717,38 +3690,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
3717
3690
  class DbxCoreFilterModule {
3718
3691
  }
3719
3692
  DbxCoreFilterModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxCoreFilterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3720
- DbxCoreFilterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxCoreFilterModule, declarations: [DbxFilterSourceDirective,
3721
- DbxFilterSourceConnectorDirective,
3722
- DbxFilterMapDirective,
3723
- DbxFilterMapSourceConnectorDirective,
3724
- DbxFilterMapSourceDirective], imports: [CommonModule], exports: [DbxFilterSourceDirective,
3725
- DbxFilterSourceConnectorDirective,
3726
- DbxFilterMapDirective,
3727
- DbxFilterMapSourceConnectorDirective,
3728
- DbxFilterMapSourceDirective] });
3729
- DbxCoreFilterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxCoreFilterModule, imports: [[
3730
- CommonModule
3731
- ]] });
3693
+ DbxCoreFilterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxCoreFilterModule, declarations: [DbxFilterSourceDirective, DbxFilterSourceConnectorDirective, DbxFilterMapDirective, DbxFilterMapSourceConnectorDirective, DbxFilterMapSourceDirective], imports: [CommonModule], exports: [DbxFilterSourceDirective, DbxFilterSourceConnectorDirective, DbxFilterMapDirective, DbxFilterMapSourceConnectorDirective, DbxFilterMapSourceDirective] });
3694
+ DbxCoreFilterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxCoreFilterModule, imports: [[CommonModule]] });
3732
3695
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxCoreFilterModule, decorators: [{
3733
3696
  type: NgModule,
3734
3697
  args: [{
3735
- imports: [
3736
- CommonModule
3737
- ],
3738
- declarations: [
3739
- DbxFilterSourceDirective,
3740
- DbxFilterSourceConnectorDirective,
3741
- DbxFilterMapDirective,
3742
- DbxFilterMapSourceConnectorDirective,
3743
- DbxFilterMapSourceDirective,
3744
- ],
3745
- exports: [
3746
- DbxFilterSourceDirective,
3747
- DbxFilterSourceConnectorDirective,
3748
- DbxFilterMapDirective,
3749
- DbxFilterMapSourceConnectorDirective,
3750
- DbxFilterMapSourceDirective,
3751
- ]
3698
+ imports: [CommonModule],
3699
+ declarations: [DbxFilterSourceDirective, DbxFilterSourceConnectorDirective, DbxFilterMapDirective, DbxFilterMapSourceConnectorDirective, DbxFilterMapSourceDirective],
3700
+ exports: [DbxFilterSourceDirective, DbxFilterSourceConnectorDirective, DbxFilterMapDirective, DbxFilterMapSourceConnectorDirective, DbxFilterMapSourceDirective]
3752
3701
  }]
3753
3702
  }] });
3754
3703
 
@@ -3760,7 +3709,7 @@ const DBX_INJECTION_COMPONENT_DATA = new InjectionToken('DbxInjectionComponentCo
3760
3709
  * @returns
3761
3710
  */
3762
3711
  function mergeDbxInjectionComponentConfigs(configs) {
3763
- const providers = mergeArrays(filterMaybeValues(configs).map(x => x.providers));
3712
+ const providers = mergeArrays(filterMaybeValues(configs).map((x) => x.providers));
3764
3713
  const result = mergeObjects(configs);
3765
3714
  result.providers = providers;
3766
3715
  return result;
@@ -3844,10 +3793,12 @@ class DbxInjectionInstance {
3844
3793
  if (providers || data) {
3845
3794
  injector = Injector.create({
3846
3795
  parent: parentInjector,
3847
- providers: mergeArrayOrValueIntoArray([{
3796
+ providers: mergeArrayOrValueIntoArray([
3797
+ {
3848
3798
  provide: DBX_INJECTION_COMPONENT_DATA,
3849
3799
  useValue: data
3850
- }], providers ?? [])
3800
+ }
3801
+ ], providers ?? [])
3851
3802
  });
3852
3803
  }
3853
3804
  const componentRef = content.createComponent(componentClass, { injector, ngModuleRef });
@@ -3921,12 +3872,16 @@ class DbxInjectionComponent extends AbstractDbxInjectionDirective {
3921
3872
  }
3922
3873
  }
3923
3874
  DbxInjectionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxInjectionComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
3924
- DbxInjectionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: { config: "config", template: "template" }, viewQueries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true, read: ViewContainerRef, static: true }], usesInheritance: true, ngImport: i0, template: `<ng-template #content></ng-template>`, isInline: true });
3875
+ DbxInjectionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: { config: "config", template: "template" }, viewQueries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true, read: ViewContainerRef, static: true }], usesInheritance: true, ngImport: i0, template: `
3876
+ <ng-template #content></ng-template>
3877
+ `, isInline: true });
3925
3878
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxInjectionComponent, decorators: [{
3926
3879
  type: Component,
3927
3880
  args: [{
3928
3881
  selector: 'dbx-injection, [dbxInjection], [dbx-injection]',
3929
- template: `<ng-template #content></ng-template>`
3882
+ template: `
3883
+ <ng-template #content></ng-template>
3884
+ `
3930
3885
  }]
3931
3886
  }], propDecorators: { config: [{
3932
3887
  type: Input
@@ -3949,10 +3904,12 @@ class DbxInjectionContext {
3949
3904
  * Allows a directive to provide a formly context and form.
3950
3905
  */
3951
3906
  function provideDbxInjectionContext(type) {
3952
- return [{
3907
+ return [
3908
+ {
3953
3909
  provide: DbxInjectionContext,
3954
3910
  useExisting: type
3955
- }];
3911
+ }
3912
+ ];
3956
3913
  }
3957
3914
 
3958
3915
  /**
@@ -4077,26 +4034,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
4077
4034
  class DbxInjectionComponentModule {
4078
4035
  }
4079
4036
  DbxInjectionComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxInjectionComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4080
- DbxInjectionComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxInjectionComponentModule, declarations: [DbxInjectionComponent,
4081
- DbxInjectionContextDirective], imports: [CommonModule], exports: [DbxInjectionComponent,
4082
- DbxInjectionContextDirective] });
4083
- DbxInjectionComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxInjectionComponentModule, imports: [[
4084
- CommonModule
4085
- ]] });
4037
+ DbxInjectionComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxInjectionComponentModule, declarations: [DbxInjectionComponent, DbxInjectionContextDirective], imports: [CommonModule], exports: [DbxInjectionComponent, DbxInjectionContextDirective] });
4038
+ DbxInjectionComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxInjectionComponentModule, imports: [[CommonModule]] });
4086
4039
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxInjectionComponentModule, decorators: [{
4087
4040
  type: NgModule,
4088
4041
  args: [{
4089
- imports: [
4090
- CommonModule
4091
- ],
4092
- declarations: [
4093
- DbxInjectionComponent,
4094
- DbxInjectionContextDirective
4095
- ],
4096
- exports: [
4097
- DbxInjectionComponent,
4098
- DbxInjectionContextDirective
4099
- ],
4042
+ imports: [CommonModule],
4043
+ declarations: [DbxInjectionComponent, DbxInjectionContextDirective],
4044
+ exports: [DbxInjectionComponent, DbxInjectionContextDirective]
4100
4045
  }]
4101
4046
  }] });
4102
4047
 
@@ -4152,7 +4097,7 @@ class LockSetComponentStore extends ComponentStore {
4152
4097
  }
4153
4098
  }
4154
4099
  setParentLockSet(obs) {
4155
- this.lockSet.setParentLockSet(asObservable(obs).pipe(map(x => x?.lockSet)));
4100
+ this.lockSet.setParentLockSet(asObservable(obs).pipe(map((x) => x?.lockSet)));
4156
4101
  }
4157
4102
  addLock(key, obs) {
4158
4103
  this.lockSet.addLock(key, obs);
@@ -4164,7 +4109,7 @@ class LockSetComponentStore extends ComponentStore {
4164
4109
  fn: () => {
4165
4110
  this._destroyNow();
4166
4111
  },
4167
- timeout: this.lockSetDestroyTimeoutMs,
4112
+ timeout: this.lockSetDestroyTimeoutMs
4168
4113
  }, this.lockSetDestroyDelayMs);
4169
4114
  }
4170
4115
  /**
@@ -4269,7 +4214,8 @@ class SimpleStorageAccessor {
4269
4214
  }
4270
4215
  all() {
4271
4216
  return this._delegate.all(this._config.fullPrefix).pipe(map((allStoredData) => {
4272
- return allStoredData.map((storedData) => {
4217
+ return allStoredData
4218
+ .map((storedData) => {
4273
4219
  const readStoredData = this.readStoredData(storedData);
4274
4220
  if (!readStoredData.expired) {
4275
4221
  return readStoredData.convertedData;
@@ -4277,11 +4223,12 @@ class SimpleStorageAccessor {
4277
4223
  else {
4278
4224
  return null;
4279
4225
  }
4280
- }).filter(filterMaybeValuesFn);
4226
+ })
4227
+ .filter(filterMaybeValuesFn);
4281
4228
  }));
4282
4229
  }
4283
4230
  allKeys() {
4284
- return this._delegate.allKeys(this._config.fullPrefix).pipe(map((keys) => keys.map(x => this.decodeStorageKey(x))));
4231
+ return this._delegate.allKeys(this._config.fullPrefix).pipe(map((keys) => keys.map((x) => this.decodeStorageKey(x))));
4285
4232
  }
4286
4233
  clear() {
4287
4234
  return this._delegate.clear();
@@ -4379,7 +4326,7 @@ class StringStorageAccessor {
4379
4326
  });
4380
4327
  }
4381
4328
  all() {
4382
- return this.allKeys().pipe(map(x => filterMaybeValues(x.map(y => this._storage.getItem(y)))), shareReplay(1));
4329
+ return this.allKeys().pipe(map((x) => filterMaybeValues(x.map((y) => this._storage.getItem(y)))), shareReplay(1));
4383
4330
  }
4384
4331
  allKeys() {
4385
4332
  return new Observable((x) => {
@@ -4475,7 +4422,7 @@ class FullLocalStorageObject {
4475
4422
  }
4476
4423
  removeAll() {
4477
4424
  const keys = StorageObjectUtility.allKeysFromStorageObject(this);
4478
- keys.forEach(x => this.removeItem(x));
4425
+ keys.forEach((x) => this.removeItem(x));
4479
4426
  return keys;
4480
4427
  }
4481
4428
  }
@@ -4506,16 +4453,20 @@ class DbxStorageModule {
4506
4453
  static forRoot() {
4507
4454
  return {
4508
4455
  ngModule: DbxStorageModule,
4509
- providers: [{
4456
+ providers: [
4457
+ {
4510
4458
  provide: DEFAULT_STORAGE_OBJECT_TOKEN,
4511
4459
  useFactory: defaultStorageObjectFactory
4512
- }, {
4460
+ },
4461
+ {
4513
4462
  provide: DEFAULT_STORAGE_ACCESSOR_FACTORY_TOKEN,
4514
4463
  useClass: SimpleStorageAccessorFactory
4515
- }, {
4464
+ },
4465
+ {
4516
4466
  provide: SimpleStorageAccessorFactory,
4517
4467
  useExisting: DEFAULT_STORAGE_ACCESSOR_FACTORY_TOKEN
4518
- }]
4468
+ }
4469
+ ]
4519
4470
  };
4520
4471
  }
4521
4472
  }