@dereekb/dbx-core 4.1.0 → 5.1.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.
Files changed (191) 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 +2 -2
  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 +32 -30
  8. package/esm2020/lib/action/action.store.source.mjs +30 -27
  9. package/esm2020/lib/action/directive/auto/action.automodify.directive.mjs +5 -8
  10. package/esm2020/lib/action/directive/auto/action.autotrigger.directive.mjs +9 -12
  11. package/esm2020/lib/action/directive/context/action.directive.mjs +4 -4
  12. package/esm2020/lib/action/directive/context/action.source.directive.mjs +5 -6
  13. package/esm2020/lib/action/directive/debug/action.logger.directive.mjs +1 -1
  14. package/esm2020/lib/action/directive/map/action.map.directive.mjs +6 -7
  15. package/esm2020/lib/action/directive/map/action.map.key.directive.mjs +5 -6
  16. package/esm2020/lib/action/directive/map/action.map.mjs +1 -1
  17. package/esm2020/lib/action/directive/map/action.map.source.directive.mjs +1 -1
  18. package/esm2020/lib/action/directive/map/action.map.working.disable.directive.mjs +1 -1
  19. package/esm2020/lib/action/directive/state/action.disabled.directive.mjs +2 -3
  20. package/esm2020/lib/action/directive/state/action.enforce.modified.directive.mjs +4 -2
  21. package/esm2020/lib/action/directive/state/action.handler.directive.mjs +8 -7
  22. package/esm2020/lib/action/directive/state/action.success.directive.mjs +1 -1
  23. package/esm2020/lib/action/directive/state/action.success.handler.directive.mjs +7 -6
  24. package/esm2020/lib/action/directive/state/action.value.directive.mjs +7 -6
  25. package/esm2020/lib/action/directive/state/action.value.stream.directive.mjs +5 -6
  26. package/esm2020/lib/action/directive/state/action.value.trigger.directive.mjs +6 -7
  27. package/esm2020/lib/action/directive/state/action.value.trigger.instance.mjs +7 -5
  28. package/esm2020/lib/action/directive/state/action.working.component.mjs +1 -1
  29. package/esm2020/lib/auth/auth.module.mjs +4 -12
  30. package/esm2020/lib/auth/auth.role.any.directive.mjs +1 -1
  31. package/esm2020/lib/auth/auth.role.has.directive.mjs +1 -1
  32. package/esm2020/lib/auth/auth.state.module.mjs +3 -9
  33. package/esm2020/lib/auth/auth.state.service.mjs +3 -3
  34. package/esm2020/lib/auth/auth.user.mjs +2 -2
  35. package/esm2020/lib/auth/index.mjs +1 -1
  36. package/esm2020/lib/auth/router/auth.router.module.mjs +5 -3
  37. package/esm2020/lib/auth/router/auth.router.service.mjs +5 -5
  38. package/esm2020/lib/auth/router/provider/uirouter/auth.hook.mjs +1 -1
  39. package/esm2020/lib/auth/router/provider/uirouter/hook.mjs +3 -2
  40. package/esm2020/lib/auth/router/provider/uirouter/redirect.mjs +2 -2
  41. package/esm2020/lib/auth/router/provider/uirouter/role.hook.mjs +2 -2
  42. package/esm2020/lib/auth/router/provider/uirouter/state.hook.mjs +3 -3
  43. package/esm2020/lib/auth/router/state/auth.router.state.module.mjs +7 -9
  44. package/esm2020/lib/auth/router/state/effect/auth.router.state.effect.mjs +1 -1
  45. package/esm2020/lib/auth/service/auth.service.mjs +1 -1
  46. package/esm2020/lib/auth/service/auth.service.rxjs.mjs +3 -3
  47. package/esm2020/lib/auth/state/action/auth.action.mjs +1 -1
  48. package/esm2020/lib/auth/state/action/user.action.mjs +1 -1
  49. package/esm2020/lib/auth/state/effect/auth.effect.mjs +7 -13
  50. package/esm2020/lib/auth/state/reducer/index.mjs +2 -2
  51. package/esm2020/lib/auth/state/reducer/user.reducer.mjs +1 -1
  52. package/esm2020/lib/button/action/action.button.directive.mjs +1 -1
  53. package/esm2020/lib/button/action/action.button.trigger.directive.mjs +1 -1
  54. package/esm2020/lib/button/button.directive.mjs +9 -8
  55. package/esm2020/lib/button/button.loading.directive.mjs +2 -2
  56. package/esm2020/lib/button/button.mjs +6 -4
  57. package/esm2020/lib/button/button.module.mjs +4 -24
  58. package/esm2020/lib/button/router/button.segue.directive.mjs +6 -5
  59. package/esm2020/lib/context/context.directive.mjs +3 -3
  60. package/esm2020/lib/context/context.mjs +1 -1
  61. package/esm2020/lib/context/context.module.mjs +5 -13
  62. package/esm2020/lib/context/context.service.mjs +3 -3
  63. package/esm2020/lib/context/state/action/data.action.mjs +1 -1
  64. package/esm2020/lib/context/state/effect/index.mjs +1 -1
  65. package/esm2020/lib/context/state/reducer/index.mjs +2 -2
  66. package/esm2020/lib/context/state/state.mjs +1 -1
  67. package/esm2020/lib/filter/action/action.filter.source.directive.mjs +1 -1
  68. package/esm2020/lib/filter/filter.abstract.connector.directive.mjs +3 -2
  69. package/esm2020/lib/filter/filter.abstract.source.directive.mjs +1 -1
  70. package/esm2020/lib/filter/filter.connector.directive.mjs +4 -10
  71. package/esm2020/lib/filter/filter.content.mjs +14 -9
  72. package/esm2020/lib/filter/filter.map.connector.directive.mjs +4 -10
  73. package/esm2020/lib/filter/filter.map.directive.mjs +1 -1
  74. package/esm2020/lib/filter/filter.map.instance.directive.mjs +2 -3
  75. package/esm2020/lib/filter/filter.map.source.directive.mjs +5 -9
  76. package/esm2020/lib/filter/filter.module.mjs +6 -30
  77. package/esm2020/lib/filter/filter.source.directive.mjs +4 -4
  78. package/esm2020/lib/injection/injection.component.mjs +7 -3
  79. package/esm2020/lib/injection/injection.component.module.mjs +6 -18
  80. package/esm2020/lib/injection/injection.context.directive.mjs +4 -4
  81. package/esm2020/lib/injection/injection.context.forward.directive.mjs +3 -3
  82. package/esm2020/lib/injection/injection.context.mjs +6 -4
  83. package/esm2020/lib/injection/injection.directive.mjs +1 -1
  84. package/esm2020/lib/injection/injection.instance.mjs +7 -6
  85. package/esm2020/lib/injection/injection.mjs +4 -4
  86. package/esm2020/lib/ngrx/store.lockset.mjs +3 -3
  87. package/esm2020/lib/pipe/date/date.pipe.module.mjs +4 -36
  88. package/esm2020/lib/pipe/date/datedistance.pipe.mjs +4 -7
  89. package/esm2020/lib/pipe/date/dateformatdistance.pipe.mjs +1 -1
  90. package/esm2020/lib/pipe/date/datefromtoformat.pipe.mjs +4 -4
  91. package/esm2020/lib/pipe/date/minutesstring.pipe.mjs +3 -3
  92. package/esm2020/lib/pipe/date/timedistance.pipe.mjs +1 -1
  93. package/esm2020/lib/pipe/date/tojsdate.pipe.mjs +1 -1
  94. package/esm2020/lib/pipe/date/tominutes.pipe.mjs +1 -1
  95. package/esm2020/lib/pipe/misc/misc.pipe.module.mjs +3 -7
  96. package/esm2020/lib/pipe/misc/prettyjson.pipe.mjs +1 -1
  97. package/esm2020/lib/pipe/pipe.module.mjs +4 -9
  98. package/esm2020/lib/router/anchor/anchor.directive.mjs +3 -4
  99. package/esm2020/lib/router/anchor/anchor.mjs +6 -4
  100. package/esm2020/lib/router/anchor/clickable.mjs +1 -1
  101. package/esm2020/lib/router/router/provider/angular/angular.router.service.mjs +7 -7
  102. package/esm2020/lib/router/router/provider/angular/angular.router.service.module.mjs +1 -1
  103. package/esm2020/lib/router/router/provider/uirouter/index.mjs +1 -2
  104. package/esm2020/lib/router/router/provider/uirouter/uirouter.router.service.mjs +13 -17
  105. package/esm2020/lib/router/router/provider/uirouter/uirouter.router.service.module.mjs +1 -1
  106. package/esm2020/lib/router/router/service/router.go.mjs +4 -4
  107. package/esm2020/lib/router/router/service/router.service.mjs +1 -1
  108. package/esm2020/lib/router/router/service/router.transition.service.mjs +1 -1
  109. package/esm2020/lib/router/router/transition/transition.directive.mjs +1 -1
  110. package/esm2020/lib/router/router/transition/transition.rxjs.mjs +4 -4
  111. package/esm2020/lib/router/router/transition/transition.watcher.directive.mjs +1 -1
  112. package/esm2020/lib/router/segue.mjs +16 -4
  113. package/esm2020/lib/storage/storage.accessor.mjs +1 -1
  114. package/esm2020/lib/storage/storage.accessor.simple.factory.mjs +1 -1
  115. package/esm2020/lib/storage/storage.accessor.simple.mjs +7 -5
  116. package/esm2020/lib/storage/storage.accessor.string.mjs +4 -5
  117. package/esm2020/lib/storage/storage.module.mjs +9 -5
  118. package/esm2020/lib/storage/storage.object.localstorage.mjs +2 -2
  119. package/esm2020/lib/storage/storage.object.memory.mjs +1 -1
  120. package/esm2020/lib/subscription/subscription.directive.mjs +1 -1
  121. package/esm2020/lib/util/view.mjs +2 -2
  122. package/esm2020/lib/view/if.directive.mjs +4 -4
  123. package/fesm2015/dereekb-dbx-core.mjs +388 -472
  124. package/fesm2015/dereekb-dbx-core.mjs.map +1 -1
  125. package/fesm2020/dereekb-dbx-core.mjs +385 -471
  126. package/fesm2020/dereekb-dbx-core.mjs.map +1 -1
  127. package/lib/action/action.d.ts +1 -1
  128. package/lib/action/action.handler.d.ts +8 -4
  129. package/lib/action/action.holder.d.ts +3 -3
  130. package/lib/action/action.machine.d.ts +2 -2
  131. package/lib/action/action.reference.d.ts +3 -3
  132. package/lib/action/action.store.d.ts +3 -3
  133. package/lib/action/action.store.source.d.ts +9 -10
  134. package/lib/action/directive/auto/action.autotrigger.directive.d.ts +4 -4
  135. package/lib/action/directive/context/action.directive.d.ts +2 -2
  136. package/lib/action/directive/context/action.source.directive.d.ts +1 -1
  137. package/lib/action/directive/map/action.map.d.ts +1 -1
  138. package/lib/action/directive/map/action.map.directive.d.ts +5 -6
  139. package/lib/action/directive/map/action.map.key.directive.d.ts +1 -1
  140. package/lib/action/directive/state/action.handler.directive.d.ts +5 -5
  141. package/lib/action/directive/state/action.success.directive.d.ts +1 -1
  142. package/lib/action/directive/state/action.value.directive.d.ts +2 -2
  143. package/lib/action/directive/state/action.value.stream.directive.d.ts +2 -3
  144. package/lib/action/directive/state/action.value.trigger.directive.d.ts +9 -9
  145. package/lib/action/directive/state/action.value.trigger.instance.d.ts +5 -5
  146. package/lib/action/directive/state/action.working.component.d.ts +1 -1
  147. package/lib/auth/auth.role.any.directive.d.ts +2 -3
  148. package/lib/auth/auth.role.has.directive.d.ts +2 -3
  149. package/lib/auth/auth.state.service.d.ts +2 -2
  150. package/lib/auth/auth.user.d.ts +1 -1
  151. package/lib/auth/router/auth.router.service.d.ts +2 -2
  152. package/lib/auth/router/provider/uirouter/hook.d.ts +2 -1
  153. package/lib/auth/router/provider/uirouter/redirect.d.ts +2 -2
  154. package/lib/button/button.d.ts +2 -2
  155. package/lib/button/router/button.segue.directive.d.ts +1 -1
  156. package/lib/context/context.directive.d.ts +2 -2
  157. package/lib/context/context.service.d.ts +2 -2
  158. package/lib/context/state/effect/index.d.ts +1 -1
  159. package/lib/filter/filter.abstract.connector.directive.d.ts +2 -3
  160. package/lib/filter/filter.connector.directive.d.ts +1 -1
  161. package/lib/filter/filter.content.d.ts +3 -3
  162. package/lib/filter/filter.map.instance.directive.d.ts +1 -1
  163. package/lib/injection/injection.context.d.ts +5 -5
  164. package/lib/injection/injection.context.directive.d.ts +3 -3
  165. package/lib/injection/injection.context.forward.directive.d.ts +2 -2
  166. package/lib/injection/injection.d.ts +7 -7
  167. package/lib/injection/injection.directive.d.ts +2 -2
  168. package/lib/pipe/date/datedistance.pipe.d.ts +1 -1
  169. package/lib/pipe/date/datefromtoformat.pipe.d.ts +1 -1
  170. package/lib/pipe/date/tojsdate.pipe.d.ts +1 -0
  171. package/lib/pipe/misc/prettyjson.pipe.d.ts +2 -2
  172. package/lib/router/anchor/anchor.d.ts +1 -1
  173. package/lib/router/anchor/anchor.directive.d.ts +0 -1
  174. package/lib/router/anchor/clickable.d.ts +1 -1
  175. package/lib/router/router/provider/angular/angular.router.service.d.ts +2 -2
  176. package/lib/router/router/provider/uirouter/index.d.ts +0 -1
  177. package/lib/router/router/provider/uirouter/uirouter.router.service.d.ts +2 -3
  178. package/lib/router/router/service/router.go.d.ts +4 -4
  179. package/lib/router/router/service/router.service.d.ts +3 -3
  180. package/lib/router/router/transition/transition.rxjs.d.ts +2 -2
  181. package/lib/router/segue.d.ts +13 -10
  182. package/lib/storage/storage.accessor.d.ts +1 -1
  183. package/lib/storage/storage.accessor.simple.d.ts +8 -5
  184. package/lib/storage/storage.accessor.string.d.ts +1 -1
  185. package/lib/util/view.d.ts +3 -3
  186. package/lib/view/if.directive.d.ts +6 -6
  187. package/package.json +5 -5
  188. package/esm2020/lib/router/router/provider/uirouter/util/future.mjs +0 -38
  189. package/esm2020/lib/router/router/provider/uirouter/util/index.mjs +0 -2
  190. package/lib/router/router/provider/uirouter/util/future.d.ts +0 -1
  191. package/lib/router/router/provider/uirouter/util/index.d.ts +0 -1
@@ -3,10 +3,9 @@ import { Directive, Injectable, forwardRef, Host, Input, Optional, NgModule, Inj
3
3
  import * as i1$5 from '@dereekb/rxjs';
4
4
  import { SubscriptionObject, LockSet, filterMaybe, LoadingStateType, beginLoading, idleLoadingState, errorResult, successResult, scanCount, combineLatestFromMapValuesObsFn, workFactory, emitDelayObs, asObservable, returnIfIs, skipFirstMaybe, onFalseToTrue, onTrueToFalse, setContainsAllValuesFrom, FilterSourceInstance, FilterSource, FilterSourceConnector, FilterMap } from '@dereekb/rxjs';
5
5
  import * as i1 from 'rxjs';
6
- import { BehaviorSubject, combineLatest, Subject, interval, EMPTY, of, distinctUntilChanged as distinctUntilChanged$1, exhaustMap as exhaustMap$1, shareReplay as shareReplay$1, delay, switchMap as switchMap$1, map as map$1, catchError, first as first$1, firstValueFrom, filter as filter$1, takeUntil, startWith as startWith$1, tap as tap$1, Observable } from 'rxjs';
7
- import { switchMap, first, distinctUntilChanged, filter, debounce, throttle, exhaustMap, mergeMap, map, shareReplay, withLatestFrom, startWith, tap, delay as delay$1 } from 'rxjs/operators';
6
+ import { switchMap, first, BehaviorSubject, combineLatest, distinctUntilChanged, filter, Subject, debounce, interval, throttle, exhaustMap, mergeMap, map, shareReplay, EMPTY, withLatestFrom, of, startWith, tap, delay, catchError, firstValueFrom, takeUntil, Observable } from 'rxjs';
8
7
  import * as i1$6 from '@dereekb/util';
9
- import { isDefinedAndNotFalse, hasValueOrNotEmpty, BooleanStringKeyArrayUtilityInstance, reduceBooleansWithOrFn, getValueFromGetter, isGetter, setIncludesFunction, maybeSet, isAllowed, expandTreeFunction, flattenTreeToArrayFunction, expandFlattenTreeFunction, mergeArrayIntoArray, objectFlatMergeMatrix, mergeArrays, filterMaybeValues, mergeObjects, mergeArrayOrValueIntoArray, makePromiseFullRef, DataIsExpiredError, DataDoesNotExistError, filterMaybeValuesFn, StorageObjectUtility, SHARED_MEMORY_STORAGE } from '@dereekb/util';
8
+ import { isDefinedAndNotFalse, hasValueOrNotEmpty, BooleanStringKeyArrayUtilityInstance, reduceBooleansWithOrFn, getValueFromGetter, toReadableError, isGetter, setIncludesFunction, maybeSet, isAllowed, expandTreeFunction, flattenTreeToArrayFunction, expandFlattenTreeFunction, mergeArrays, filterMaybeValues, mergeObjects, mergeArrayOrValueIntoArray, makePromiseFullRef, DataIsExpiredError, DataDoesNotExistError, filterMaybeValuesFn, StorageObjectUtility, SHARED_MEMORY_STORAGE } from '@dereekb/util';
10
9
  import { ComponentStore } from '@ngrx/component-store';
11
10
  import { CommonModule, formatDate } from '@angular/common';
12
11
  import * as i1$3 from '@ngrx/effects';
@@ -16,6 +15,7 @@ import { createAction, props, createReducer, on, combineReducers, createFeatureS
16
15
  import * as i1$1 from '@angular/router';
17
16
  import { NavigationStart, NavigationEnd } from '@angular/router';
18
17
  import { isArray } from 'class-validator';
18
+ import { map as map$1 } from 'rxjs/operators';
19
19
  import * as i1$2 from '@uirouter/core';
20
20
  import { addMinutes, isValid, isPast, formatDistance, formatDistanceToNow, startOfDay, isSameDay } from 'date-fns';
21
21
  import { toJsDate, formatToTimeString, unixTimeNumberForNow, timeHasExpired } from '@dereekb/date';
@@ -109,64 +109,64 @@ class DbxActionContextStoreSourceInstance {
109
109
  return useActionStore(this.source, useFn);
110
110
  }
111
111
  get state$() {
112
- return this.pipeStore(x => x.state$);
112
+ return this.pipeStore((x) => x.state$);
113
113
  }
114
114
  get triggered$() {
115
- return this.pipeStore(x => x.triggered$);
115
+ return this.pipeStore((x) => x.triggered$);
116
116
  }
117
117
  get valueReady$() {
118
- return this.pipeStore(x => x.valueReady$);
118
+ return this.pipeStore((x) => x.valueReady$);
119
119
  }
120
120
  get success$() {
121
- return this.pipeStore(x => x.success$);
121
+ return this.pipeStore((x) => x.success$);
122
122
  }
123
123
  get error$() {
124
- return this.pipeStore(x => x.error$);
124
+ return this.pipeStore((x) => x.error$);
125
125
  }
126
126
  get rejected$() {
127
- return this.pipeStore(x => x.rejected$);
127
+ return this.pipeStore((x) => x.rejected$);
128
128
  }
129
129
  get isModified$() {
130
- return this.pipeStore(x => x.isModified$);
130
+ return this.pipeStore((x) => x.isModified$);
131
131
  }
132
132
  get canTrigger$() {
133
- return this.pipeStore(x => x.canTrigger$);
133
+ return this.pipeStore((x) => x.canTrigger$);
134
134
  }
135
135
  get isModifiedAndCanTriggerUpdates$() {
136
- return this.pipeStore(x => x.isModifiedAndCanTriggerUpdates$);
136
+ return this.pipeStore((x) => x.isModifiedAndCanTriggerUpdates$);
137
137
  }
138
138
  get isModifiedAndCanTrigger$() {
139
- return this.pipeStore(x => x.isModifiedAndCanTrigger$);
139
+ return this.pipeStore((x) => x.isModifiedAndCanTrigger$);
140
140
  }
141
141
  get actionState$() {
142
- return this.pipeStore(x => x.actionState$);
142
+ return this.pipeStore((x) => x.actionState$);
143
143
  }
144
144
  get loadingState$() {
145
- return this.pipeStore(x => x.loadingState$);
145
+ return this.pipeStore((x) => x.loadingState$);
146
146
  }
147
147
  get loadingStateType$() {
148
- return this.pipeStore(x => x.loadingStateType$);
148
+ return this.pipeStore((x) => x.loadingStateType$);
149
149
  }
150
150
  get isWorking$() {
151
- return this.pipeStore(x => x.isWorking$);
151
+ return this.pipeStore((x) => x.isWorking$);
152
152
  }
153
153
  get isSuccess$() {
154
- return this.pipeStore(x => x.isSuccess$);
154
+ return this.pipeStore((x) => x.isSuccess$);
155
155
  }
156
156
  get disabledKeys$() {
157
- return this.pipeStore(x => x.disabledKeys$);
157
+ return this.pipeStore((x) => x.disabledKeys$);
158
158
  }
159
159
  get isDisabled$() {
160
- return this.pipeStore(x => x.isDisabled$);
160
+ return this.pipeStore((x) => x.isDisabled$);
161
161
  }
162
162
  get errorCountSinceLastSuccess$() {
163
- return this.pipeStore(x => x.errorCountSinceLastSuccess$);
163
+ return this.pipeStore((x) => x.errorCountSinceLastSuccess$);
164
164
  }
165
165
  enable(key, enable = true) {
166
166
  this.disable(key, !enable);
167
167
  }
168
168
  disable(key, disable = true) {
169
- this.useStore((x) => (disable) ? x.disable(key) : x.enable(key));
169
+ this.useStore((x) => (disable ? x.disable(key) : x.enable(key)));
170
170
  }
171
171
  setIsModified(isModified) {
172
172
  this.useStore((x) => x.setIsModified(isModified));
@@ -201,8 +201,9 @@ const actionContextStoreSourceInstanceFactory = (source) => {
201
201
  /**
202
202
  * Provides an ActionContextStoreSource, as well as an DbxActionContextStoreSourceInstance.
203
203
  */
204
- function ProvideActionStoreSource(sourceType) {
205
- return [{
204
+ function provideActionStoreSource(sourceType) {
205
+ return [
206
+ {
206
207
  provide: ActionContextStoreSource,
207
208
  useExisting: forwardRef(() => sourceType)
208
209
  },
@@ -210,14 +211,16 @@ function ProvideActionStoreSource(sourceType) {
210
211
  provide: DbxActionContextStoreSourceInstance,
211
212
  useFactory: actionContextStoreSourceInstanceFactory,
212
213
  deps: [ActionContextStoreSource]
213
- }];
214
+ }
215
+ ];
214
216
  }
215
- function ProvideSecondaryActionStoreSource(sourceType) {
216
- return [{
217
+ function provideSecondaryActionStoreSource(sourceType) {
218
+ return [
219
+ {
217
220
  provide: SecondaryActionContextStoreSource,
218
221
  useExisting: forwardRef(() => sourceType)
219
222
  },
220
- ...ProvideActionStoreSource(sourceType)
223
+ ...provideActionStoreSource(sourceType)
221
224
  ];
222
225
  }
223
226
 
@@ -236,7 +239,7 @@ class DbxActionAutoModifyDirective extends AbstractSubscriptionDirective {
236
239
  ngOnInit() {
237
240
  const obs = combineLatest([
238
241
  this._autoModifyEnabled.pipe(distinctUntilChanged()),
239
- this.source.isModified$.pipe(filter(x => !x)) // Only when not modified send a value.
242
+ this.source.isModified$.pipe(filter((x) => !x)) // Only when not modified send a value.
240
243
  ]);
241
244
  this.sub = obs.subscribe(([autoModifyEnabled, isModified]) => {
242
245
  if (autoModifyEnabled && !isModified) {
@@ -256,7 +259,7 @@ DbxActionAutoModifyDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12
256
259
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxActionAutoModifyDirective, decorators: [{
257
260
  type: Directive,
258
261
  args: [{
259
- selector: '[dbxActionAutoModify]',
262
+ selector: '[dbxActionAutoModify]'
260
263
  }]
261
264
  }], ctorParameters: function () {
262
265
  return [{ type: DbxActionContextStoreSourceInstance, decorators: [{
@@ -287,9 +290,9 @@ class DbxActionAutoTriggerDirective extends AbstractSubscriptionDirective {
287
290
  this.maxErrorsForThrottle = MAX_ERRORS_TO_THROTTLE_ON;
288
291
  this._triggerCount = 0;
289
292
  this._errorCount$ = this.source.errorCountSinceLastSuccess$;
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 }),
293
+ 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 }),
291
294
  // Check again for the "trailing" piece.
292
- filter(() => this.isEnabled), mergeMap(() => this.source.isModifiedAndCanTrigger$.pipe(first())), filter((x) => x), map(() => this._triggerCount += 1), shareReplay(1));
295
+ filter(() => this.isEnabled), mergeMap(() => this.source.isModifiedAndCanTrigger$.pipe(first())), filter((x) => x), map(() => (this._triggerCount += 1)), shareReplay(1));
293
296
  /**
294
297
  * Observable for the trigger mechanism.
295
298
  */
@@ -301,9 +304,9 @@ class DbxActionAutoTriggerDirective extends AbstractSubscriptionDirective {
301
304
  return EMPTY;
302
305
  }
303
306
  }));
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.
307
+ this._isTriggerLimited$ = combineLatest([this.triggerCount$, this._triggerLimit]).pipe(map(([triggerCount, limit]) => [triggerCount, limit ? triggerCount > limit : false]), shareReplay(1));
308
+ this.isTriggerLimited$ = this._isTriggerLimited$.pipe(map((x) => x[1]));
309
+ this.trigger$ = this._isTriggerLimited$.pipe(filter((x) => !x[1]), distinctUntilChanged((a, b) => a[0] === b[0]), // Only trigger when the count changes.
307
310
  map(() => undefined));
308
311
  }
309
312
  /**
@@ -369,7 +372,7 @@ DbxActionAutoTriggerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "1
369
372
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxActionAutoTriggerDirective, decorators: [{
370
373
  type: Directive,
371
374
  args: [{
372
- selector: 'dbxActionAutoTrigger, [dbxActionAutoTrigger]',
375
+ selector: 'dbxActionAutoTrigger, [dbxActionAutoTrigger]'
373
376
  }]
374
377
  }], ctorParameters: function () {
375
378
  return [{ type: DbxActionContextStoreSourceInstance, decorators: [{
@@ -428,11 +431,11 @@ class dbxActionValueStreamDirective {
428
431
  }
429
432
  ngOnInit() {
430
433
  // Update Modified value.
431
- this._modifiedSub.subscription = this.modifiedValue$.subscribe(([isModified, value]) => {
434
+ this._modifiedSub.subscription = this.modifiedValue$.subscribe(([isModified]) => {
432
435
  this.source.setIsModified(isModified);
433
436
  });
434
437
  // Set the value on triggers.
435
- this._triggerSub.subscription = this.source.triggered$.pipe(switchMap(_ => this.modifiedValue$)).subscribe(([isModified, value]) => {
438
+ this._triggerSub.subscription = this.source.triggered$.pipe(switchMap(() => this.modifiedValue$)).subscribe(([isModified, value]) => {
436
439
  if (isModified) {
437
440
  this.source.readyValue(value);
438
441
  }
@@ -452,7 +455,7 @@ dbxActionValueStreamDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "1
452
455
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: dbxActionValueStreamDirective, decorators: [{
453
456
  type: Directive,
454
457
  args: [{
455
- selector: '[dbxActionValueStream]',
458
+ selector: '[dbxActionValueStream]'
456
459
  }]
457
460
  }], ctorParameters: function () {
458
461
  return [{ type: DbxActionContextStoreSourceInstance, decorators: [{
@@ -595,11 +598,11 @@ class ActionContextStore extends ComponentStore {
595
598
  super(Object.assign({}, INITIAL_STATE));
596
599
  this.lockSet = new LockSet();
597
600
  // MARK: Accessors
598
- this.actionState$ = this.state$.pipe(map(x => isDisabledActionContextState(x) ? DbxActionState.DISABLED : x.actionState), shareReplay(1));
601
+ this.actionState$ = this.state$.pipe(map((x) => (isDisabledActionContextState(x) ? DbxActionState.DISABLED : x.actionState)), shareReplay(1));
599
602
  /**
600
603
  * Returns the current disabled reasons/keys.
601
604
  */
602
- this.disabledKeys$ = this.state$.pipe(map(x => { var _a; return [...(_a = x.disabled) !== null && _a !== void 0 ? _a : []]; }), distinctUntilChanged(), shareReplay(1));
605
+ this.disabledKeys$ = this.state$.pipe(map((x) => { var _a; return [...((_a = x.disabled) !== null && _a !== void 0 ? _a : [])]; }), distinctUntilChanged(), shareReplay(1));
603
606
  /**
604
607
  * Maps the current state to true or not when the action state changes to/from disabled.
605
608
  */
@@ -607,7 +610,7 @@ class ActionContextStore extends ComponentStore {
607
610
  /**
608
611
  * Pipes when idle but modified.
609
612
  */
610
- this.isModified$ = this.afterDistinctBoolean(x => x.isModified);
613
+ this.isModified$ = this.afterDistinctBoolean((x) => x.isModified);
611
614
  /**
612
615
  * Pipes true when triggered.
613
616
  */
@@ -615,11 +618,11 @@ class ActionContextStore extends ComponentStore {
615
618
  /**
616
619
  * Pipes the readied value on ValueReady.
617
620
  */
618
- this.valueReady$ = this.afterDistinctActionState(DbxActionState.VALUE_READY, x => x.value);
621
+ this.valueReady$ = this.afterDistinctActionState(DbxActionState.VALUE_READY, (x) => x.value);
619
622
  /**
620
623
  * Pipes the error on the rejection state.
621
624
  */
622
- this.rejected$ = this.afterDistinctActionState(DbxActionState.REJECTED, x => x.error);
625
+ this.rejected$ = this.afterDistinctActionState(DbxActionState.REJECTED, (x) => x.error);
623
626
  /**
624
627
  * Pipes the result when the ActionState becomes working.
625
628
  */
@@ -627,27 +630,27 @@ class ActionContextStore extends ComponentStore {
627
630
  /**
628
631
  * Whether or not it is currently in a working state.
629
632
  */
630
- this.isWorking$ = this.afterDistinctBoolean(x => isWorkingActionState(x.actionState));
633
+ this.isWorking$ = this.afterDistinctBoolean((x) => isWorkingActionState(x.actionState));
631
634
  /**
632
635
  * Pipes the current error.
633
636
  */
634
- this.error$ = this.state$.pipe(map(x => x.error), distinctUntilChanged(), shareReplay(1));
637
+ this.error$ = this.state$.pipe(map((x) => x.error), distinctUntilChanged(), shareReplay(1));
635
638
  /**
636
639
  * Pipes the result when the ActionState becomes success.
637
640
  */
638
- this.success$ = this.afterDistinctActionState(DbxActionState.RESOLVED, x => x.result);
641
+ this.success$ = this.afterDistinctActionState(DbxActionState.RESOLVED, (x) => x.result);
639
642
  /**
640
643
  * Whether or not it is currently in a success state.
641
644
  */
642
- this.isSuccess$ = this.afterDistinctBoolean(x => x.actionState === DbxActionState.RESOLVED);
645
+ this.isSuccess$ = this.afterDistinctBoolean((x) => x.actionState === DbxActionState.RESOLVED);
643
646
  /**
644
647
  * Returns a loading state based on the current state.
645
648
  */
646
- this.loadingState$ = this.afterDistinctLoadingStateTypeChange().pipe(map(x => loadingStateForActionContextState(x)), shareReplay(1));
649
+ this.loadingState$ = this.afterDistinctLoadingStateTypeChange().pipe(map((x) => loadingStateForActionContextState(x)), shareReplay(1));
647
650
  /**
648
651
  * Returns the current LoadingStateType based on the current state.
649
652
  */
650
- this.loadingStateType$ = this.state$.pipe(map(x => loadingStateTypeForActionContextState(x)), distinctUntilChanged(), shareReplay(1));
653
+ this.loadingStateType$ = this.state$.pipe(map((x) => loadingStateTypeForActionContextState(x)), distinctUntilChanged(), shareReplay(1));
651
654
  /**
652
655
  * Number of errors since last success.
653
656
  */
@@ -671,29 +674,25 @@ class ActionContextStore extends ComponentStore {
671
674
  /**
672
675
  * Adds a disabled reason.
673
676
  */
674
- this.disable = this.updater((state, key) => (Object.assign(Object.assign({}, state), { disabled: BooleanStringKeyArrayUtilityInstance.insert(state.disabled, (key !== null && key !== void 0 ? key : DEFAULT_ACTION_DISABLED_KEY)) })));
677
+ this.disable = this.updater((state, key) => (Object.assign(Object.assign({}, state), { disabled: BooleanStringKeyArrayUtilityInstance.insert(state.disabled, key !== null && key !== void 0 ? key : DEFAULT_ACTION_DISABLED_KEY) })));
675
678
  /**
676
679
  * Removes a disabled reason.
677
680
  */
678
- this.enable = this.updater((state, key) => (Object.assign(Object.assign({}, state), { disabled: BooleanStringKeyArrayUtilityInstance.remove(state.disabled, (key !== null && key !== void 0 ? key : DEFAULT_ACTION_DISABLED_KEY)) })));
681
+ this.enable = this.updater((state, key) => (Object.assign(Object.assign({}, state), { disabled: BooleanStringKeyArrayUtilityInstance.remove(state.disabled, key !== null && key !== void 0 ? key : DEFAULT_ACTION_DISABLED_KEY) })));
679
682
  /**
680
683
  * Triggers the modified state, if not disabled.
681
684
  */
682
- this.setIsModified = this.updater((state, isModified) => (Object.assign(Object.assign({}, state), { actionState: (state.actionState === DbxActionState.RESOLVED) ? DbxActionState.IDLE : state.actionState, isModified: isModified !== null && isModified !== void 0 ? isModified : true })));
685
+ this.setIsModified = this.updater((state, isModified) => (Object.assign(Object.assign({}, state), { actionState: state.actionState === DbxActionState.RESOLVED ? DbxActionState.IDLE : state.actionState, isModified: isModified !== null && isModified !== void 0 ? isModified : true })));
683
686
  /**
684
687
  * Triggers the action if the state is currently not idle. The current state is cleared, but the error is retained (as we may need the error from the previous attempt).
685
688
  *
686
689
  * Will not fire if the action is disabled.
687
690
  */
688
- this.trigger = this.updater((state) => canTriggerAction(state)
689
- ? ({ isModified: state.isModified, actionState: DbxActionState.TRIGGERED, error: state.error, value: undefined })
690
- : state);
691
+ this.trigger = this.updater((state) => (canTriggerAction(state) ? { isModified: state.isModified, actionState: DbxActionState.TRIGGERED, error: state.error, value: undefined } : state));
691
692
  /**
692
693
  * Updates the value, setting value ready. The current result is cleared.
693
694
  */
694
- this.readyValue = this.updater((state, value) => canReadyValue(state)
695
- ? (Object.assign(Object.assign({}, state), { actionState: DbxActionState.VALUE_READY, value, result: undefined }))
696
- : state);
695
+ this.readyValue = this.updater((state, value) => (canReadyValue(state) ? Object.assign(Object.assign({}, state), { actionState: DbxActionState.VALUE_READY, value, result: undefined }) : state));
697
696
  /**
698
697
  * Notifys the context that the action is in progress.
699
698
  */
@@ -701,7 +700,16 @@ class ActionContextStore extends ComponentStore {
701
700
  /**
702
701
  * Triggers rejection of the action. The value is cleared.
703
702
  */
704
- this.reject = this.updater((state, error) => { var _a; return ({ isModified: state.isModified, actionState: DbxActionState.REJECTED, error, errorCount: ((_a = state.errorCount) !== null && _a !== void 0 ? _a : 0) + 1, disabled: state.disabled }); });
703
+ this.reject = this.updater((state, error) => {
704
+ var _a;
705
+ return ({
706
+ isModified: state.isModified,
707
+ actionState: DbxActionState.REJECTED,
708
+ error,
709
+ errorCount: ((_a = state.errorCount) !== null && _a !== void 0 ? _a : 0) + 1,
710
+ disabled: state.disabled
711
+ });
712
+ });
705
713
  /**
706
714
  * Updates the state to success, and optionally sets a result.
707
715
  *
@@ -711,24 +719,24 @@ class ActionContextStore extends ComponentStore {
711
719
  /**
712
720
  * Completely resets the store.
713
721
  */
714
- this.reset = this.updater((state) => (Object.assign({}, INITIAL_STATE)));
722
+ this.reset = this.updater(() => (Object.assign({}, INITIAL_STATE)));
715
723
  this.lockSet.addLock('working', this.isWorking$);
716
724
  }
717
725
  // MARK: Utility
718
726
  afterDistinctBoolean(fromState) {
719
- return this.state$.pipe(map(x => fromState(x)), distinctUntilChanged(), shareReplay(1));
727
+ return this.state$.pipe(map((x) => fromState(x)), distinctUntilChanged(), shareReplay(1));
720
728
  }
721
729
  afterDistinctActionState(actionState, fromState) {
722
730
  return this.afterDistinctActionStateChange().pipe(filter((x) => x.actionState === actionState), // Only pipe when the new action state matches.
723
- map(x => fromState(x)), shareReplay(1));
731
+ map((x) => fromState(x)), shareReplay(1));
724
732
  }
725
733
  afterDistinctActionStateChange() {
726
- return this.state$.pipe(map((x) => ([x, x.actionState])), distinctUntilChanged((a, b) => (a === null || a === void 0 ? void 0 : a[1]) === (b === null || b === void 0 ? void 0 : b[1])), // Filter out when the state remains the same.
727
- map(x => x[0]), shareReplay(1));
734
+ return this.state$.pipe(map((x) => [x, x.actionState]), distinctUntilChanged((a, b) => (a === null || a === void 0 ? void 0 : a[1]) === (b === null || b === void 0 ? void 0 : b[1])), // Filter out when the state remains the same.
735
+ map((x) => x[0]), shareReplay(1));
728
736
  }
729
737
  afterDistinctLoadingStateTypeChange() {
730
- return this.state$.pipe(map((x) => ([x, loadingStateForActionContextState(x)])), distinctUntilChanged((a, b) => (a === null || a === void 0 ? void 0 : a[1]) === (b === null || b === void 0 ? void 0 : b[1])), // Filter out when the loading state remains the same.
731
- map(x => x[0]), shareReplay(1));
738
+ return this.state$.pipe(map((x) => [x, loadingStateForActionContextState(x)]), distinctUntilChanged((a, b) => (a === null || a === void 0 ? void 0 : a[1]) === (b === null || b === void 0 ? void 0 : b[1])), // Filter out when the loading state remains the same.
739
+ map((x) => x[0]), shareReplay(1));
732
740
  }
733
741
  // MARK: Cleanup
734
742
  ngOnDestroy() {
@@ -814,13 +822,13 @@ class DbxActionDirective extends DbxActionContextBaseSource {
814
822
  }
815
823
  }
816
824
  DbxActionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxActionDirective, deps: [{ token: SecondaryActionContextStoreSource, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
817
- DbxActionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: DbxActionDirective, selector: "dbx-action,[dbxAction],dbx-action-context,[dbxActionContext]", providers: ProvideActionStoreSource(DbxActionDirective), exportAs: ["action", "dbxAction"], usesInheritance: true, ngImport: i0 });
825
+ DbxActionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: DbxActionDirective, selector: "dbx-action,[dbxAction],dbx-action-context,[dbxActionContext]", providers: provideActionStoreSource(DbxActionDirective), exportAs: ["action", "dbxAction"], usesInheritance: true, ngImport: i0 });
818
826
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxActionDirective, decorators: [{
819
827
  type: Directive,
820
828
  args: [{
821
829
  selector: 'dbx-action,[dbxAction],dbx-action-context,[dbxActionContext]',
822
830
  exportAs: 'action,dbxAction',
823
- providers: ProvideActionStoreSource(DbxActionDirective)
831
+ providers: provideActionStoreSource(DbxActionDirective)
824
832
  }]
825
833
  }], ctorParameters: function () {
826
834
  return [{ type: SecondaryActionContextStoreSource, decorators: [{
@@ -852,12 +860,12 @@ class DbxActionSourceDirective {
852
860
  }
853
861
  }
854
862
  DbxActionSourceDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxActionSourceDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
855
- DbxActionSourceDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: DbxActionSourceDirective, selector: "[dbxActionSource]", inputs: { source: ["dbxActionSource", "source"] }, providers: ProvideSecondaryActionStoreSource(DbxActionSourceDirective), ngImport: i0 });
863
+ DbxActionSourceDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: DbxActionSourceDirective, selector: "[dbxActionSource]", inputs: { source: ["dbxActionSource", "source"] }, providers: provideSecondaryActionStoreSource(DbxActionSourceDirective), ngImport: i0 });
856
864
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxActionSourceDirective, decorators: [{
857
865
  type: Directive,
858
866
  args: [{
859
867
  selector: '[dbxActionSource]',
860
- providers: ProvideSecondaryActionStoreSource(DbxActionSourceDirective)
868
+ providers: provideSecondaryActionStoreSource(DbxActionSourceDirective)
861
869
  }]
862
870
  }], propDecorators: { source: [{
863
871
  type: Input,
@@ -900,7 +908,7 @@ class DbxActionContextMapDirective {
900
908
  constructor() {
901
909
  this._map = new BehaviorSubject(new Map());
902
910
  this.map$ = this._map.asObservable();
903
- this.areAnyWorking$ = this.checkAnyAre(x => x.isWorking$, false);
911
+ this.areAnyWorking$ = this.checkAnyAre((x) => x.isWorking$, false);
904
912
  }
905
913
  get map() {
906
914
  return this._map.value;
@@ -945,14 +953,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
945
953
  args: [{
946
954
  selector: '[dbxActionContextMap]',
947
955
  exportAs: 'actionMap',
948
- providers: [],
956
+ providers: []
949
957
  }]
950
- }], ctorParameters: function () { return []; } });
958
+ }] });
951
959
  class DbxActionContextMapDirectiveSourceInstance {
952
960
  constructor(parent, key) {
953
961
  this.parent = parent;
954
962
  this.key = key;
955
- this._source$ = this.parent.map$.pipe(map(x => x.get(this.key)), distinctUntilChanged());
963
+ this._source$ = this.parent.map$.pipe(map((x) => x.get(this.key)), distinctUntilChanged());
956
964
  this._store$ = this._source$.pipe(switchMap((x) => { var _a; return (_a = x === null || x === void 0 ? void 0 : x.store$) !== null && _a !== void 0 ? _a : of(undefined); }), shareReplay(1));
957
965
  this.store$ = actionContextStoreSourcePipe(this._store$);
958
966
  }
@@ -978,12 +986,12 @@ class DbxActionFromMapDirective {
978
986
  }
979
987
  }
980
988
  DbxActionFromMapDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxActionFromMapDirective, deps: [{ token: DbxActionContextMapDirective }], target: i0.ɵɵFactoryTarget.Directive });
981
- DbxActionFromMapDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: DbxActionFromMapDirective, selector: "[dbxActionFromMap]", inputs: { key: ["dbxActionFromMap", "key"] }, providers: ProvideSecondaryActionStoreSource(DbxActionFromMapDirective), ngImport: i0 });
989
+ DbxActionFromMapDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: DbxActionFromMapDirective, selector: "[dbxActionFromMap]", inputs: { key: ["dbxActionFromMap", "key"] }, providers: provideSecondaryActionStoreSource(DbxActionFromMapDirective), ngImport: i0 });
982
990
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxActionFromMapDirective, decorators: [{
983
991
  type: Directive,
984
992
  args: [{
985
993
  selector: '[dbxActionFromMap]',
986
- providers: ProvideSecondaryActionStoreSource(DbxActionFromMapDirective)
994
+ providers: provideSecondaryActionStoreSource(DbxActionFromMapDirective)
987
995
  }]
988
996
  }], ctorParameters: function () { return [{ type: DbxActionContextMapDirective }]; }, propDecorators: { key: [{
989
997
  type: Input,
@@ -1158,13 +1166,15 @@ class DbxActionHandlerDirective extends AbstractSubscriptionDirective {
1158
1166
  this._handlerFunction.next(handlerFunction);
1159
1167
  }
1160
1168
  ngOnInit() {
1161
- this.sub = this.handlerFunction$.pipe(switchMap(work => this.source.valueReady$.pipe(tap((value) => {
1169
+ this.sub = this.handlerFunction$
1170
+ .pipe(switchMap((work) => this.source.valueReady$.pipe(tap((value) => {
1162
1171
  const context = workFactory({ work, delegate: this._delegate })(value);
1163
1172
  if (context) {
1164
1173
  // Add the action to the lockSet for the source to prevent it from being destroyed until the action completes.
1165
- this.source.lockSet.addLock('dbxActionHandler', context.isComplete$.pipe(map(x => !x)));
1174
+ this.source.lockSet.addLock('dbxActionHandler', context.isComplete$.pipe(map((x) => !x)));
1166
1175
  }
1167
- })))).subscribe();
1176
+ }))))
1177
+ .subscribe();
1168
1178
  }
1169
1179
  ngOnDestroy() {
1170
1180
  this.source.lockSet.onNextUnlock(() => {
@@ -1178,7 +1188,7 @@ DbxActionHandlerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.
1178
1188
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxActionHandlerDirective, decorators: [{
1179
1189
  type: Directive,
1180
1190
  args: [{
1181
- selector: '[dbxActionHandler]',
1191
+ selector: '[dbxActionHandler]'
1182
1192
  }]
1183
1193
  }], ctorParameters: function () {
1184
1194
  return [{ type: DbxActionContextStoreSourceInstance, decorators: [{
@@ -1199,7 +1209,7 @@ class AbstractIfDirective extends AbstractSubscriptionDirective {
1199
1209
  this.viewContainer = viewContainer;
1200
1210
  }
1201
1211
  ngOnInit() {
1202
- this.sub = this.show$.pipe(distinctUntilChanged$1()).subscribe((show) => {
1212
+ this.sub = this.show$.pipe(distinctUntilChanged()).subscribe((show) => {
1203
1213
  if (show) {
1204
1214
  this.viewContainer.createEmbeddedView(this.templateRef);
1205
1215
  }
@@ -1222,14 +1232,14 @@ class DbxActionHasSuccessDirective extends AbstractIfDirective {
1222
1232
  constructor(templateRef, viewContainer, source) {
1223
1233
  super(templateRef, viewContainer);
1224
1234
  this.source = source;
1225
- this.show$ = this.source.isSuccess$.pipe(exhaustMap$1((success) => {
1235
+ this.show$ = this.source.isSuccess$.pipe(exhaustMap((success) => {
1226
1236
  if (success) {
1227
1237
  return emitDelayObs(true, false, this.hideAfter || undefined);
1228
1238
  }
1229
1239
  else {
1230
1240
  return of(false);
1231
1241
  }
1232
- }), shareReplay$1(1));
1242
+ }), shareReplay(1));
1233
1243
  }
1234
1244
  }
1235
1245
  DbxActionHasSuccessDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxActionHasSuccessDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: DbxActionContextStoreSourceInstance }], target: i0.ɵɵFactoryTarget.Directive });
@@ -1261,9 +1271,11 @@ class DbxActionSuccessHandlerDirective extends AbstractSubscriptionDirective {
1261
1271
  this._successFunction.next(successFunction);
1262
1272
  }
1263
1273
  ngOnInit() {
1264
- this.sub = this.successFunction$.pipe(switchMap(successFunction => this.source.success$.pipe(map(x => [successFunction, x]), tap(([successFn, result]) => {
1274
+ this.sub = this.successFunction$
1275
+ .pipe(switchMap((successFunction) => this.source.success$.pipe(map((x) => [successFunction, x]), tap(([successFn, result]) => {
1265
1276
  successFn(result);
1266
- })))).subscribe();
1277
+ }))))
1278
+ .subscribe();
1267
1279
  }
1268
1280
  ngOnDestroy() {
1269
1281
  super.ngOnDestroy();
@@ -1275,7 +1287,7 @@ DbxActionSuccessHandlerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion:
1275
1287
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxActionSuccessHandlerDirective, decorators: [{
1276
1288
  type: Directive,
1277
1289
  args: [{
1278
- selector: '[dbxActionSuccessHandler]',
1290
+ selector: '[dbxActionSuccessHandler]'
1279
1291
  }]
1280
1292
  }], ctorParameters: function () {
1281
1293
  return [{ type: DbxActionContextStoreSourceInstance, decorators: [{
@@ -1305,10 +1317,12 @@ class DbxActionValueDirective extends AbstractSubscriptionDirective {
1305
1317
  this._valueOrFunction.next(valueOrFunction);
1306
1318
  }
1307
1319
  ngOnInit() {
1308
- this.sub = this.valueOrFunction$.pipe(switchMap(valueOrFunction => this.source.triggered$.pipe(tap(() => {
1320
+ this.sub = this.valueOrFunction$
1321
+ .pipe(switchMap((valueOrFunction) => this.source.triggered$.pipe(tap(() => {
1309
1322
  const value = getValueFromGetter(valueOrFunction);
1310
1323
  this.source.readyValue(value);
1311
- })))).subscribe();
1324
+ }))))
1325
+ .subscribe();
1312
1326
  }
1313
1327
  ngOnDestroy() {
1314
1328
  this.source.lockSet.onNextUnlock(() => {
@@ -1322,7 +1336,7 @@ DbxActionValueDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0"
1322
1336
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxActionValueDirective, decorators: [{
1323
1337
  type: Directive,
1324
1338
  args: [{
1325
- selector: '[dbxActionValue]',
1339
+ selector: '[dbxActionValue]'
1326
1340
  }]
1327
1341
  }], ctorParameters: function () {
1328
1342
  return [{ type: DbxActionContextStoreSourceInstance, decorators: [{
@@ -1342,14 +1356,14 @@ class DbxActionIsWorkingDirective extends AbstractIfDirective {
1342
1356
  constructor(templateRef, viewContainer, source) {
1343
1357
  super(templateRef, viewContainer);
1344
1358
  this.source = source;
1345
- this.show$ = this.source.isWorking$.pipe(exhaustMap$1((isWorking) => {
1359
+ this.show$ = this.source.isWorking$.pipe(exhaustMap((isWorking) => {
1346
1360
  if (isWorking && this.showAfter) {
1347
1361
  return emitDelayObs(false, true, this.showAfter || undefined);
1348
1362
  }
1349
1363
  else {
1350
1364
  return of(isWorking);
1351
1365
  }
1352
- }), shareReplay$1(1));
1366
+ }), shareReplay(1));
1353
1367
  }
1354
1368
  }
1355
1369
  DbxActionIsWorkingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxActionIsWorkingDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: DbxActionContextStoreSourceInstance }], target: i0.ɵɵFactoryTarget.Directive });
@@ -1375,7 +1389,9 @@ class DbxActionEnforceModifiedDirective extends AbstractSubscriptionDirective {
1375
1389
  this._enabled = new BehaviorSubject(true);
1376
1390
  }
1377
1391
  ngOnInit() {
1378
- this.sub = combineLatest([this.source.isModified$, this._enabled]).pipe(delay(0)).subscribe(([modified, enableDirective]) => {
1392
+ this.sub = combineLatest([this.source.isModified$, this._enabled])
1393
+ .pipe(delay(0))
1394
+ .subscribe(([modified, enableDirective]) => {
1379
1395
  const disable = enableDirective && !modified;
1380
1396
  this.source.disable(APP_ACTION_ENFORCE_MODIFIED_DIRECTIVE_KEY, disable);
1381
1397
  });
@@ -1428,12 +1444,13 @@ class DbxActionValueOnTriggerInstance {
1428
1444
  }
1429
1445
  init() {
1430
1446
  // Ready the value after the source is triggered. Do modified check one last time.
1431
- this._triggeredSub.subscription = this.source.triggered$.pipe(switchMap$1(() => this.valueGetter$.pipe(switchMap$1((valueGetter) => asObservable(valueGetter())))
1432
- .pipe(
1447
+ this._triggeredSub.subscription = this.source.triggered$
1448
+ .pipe(switchMap(() => this.valueGetter$.pipe(switchMap((valueGetter) => asObservable(valueGetter()))).pipe(
1433
1449
  // If the value is not null/undefined and is considered modified, then pass the value.
1434
- switchMap$1((value) => returnIfIs(this.isModifiedFunction, value, false).pipe(map$1((value) => ({ value })))),
1435
- // Catch any errors and pass them to reject.
1436
- catchError((reject) => of({ reject }))))).subscribe((result) => {
1450
+ switchMap((value) => returnIfIs(this.isModifiedFunction, value, false).pipe(map((value) => ({ value })))),
1451
+ // Catch unknown errors and pass them to reject.
1452
+ catchError((reject) => of({ reject: toReadableError(reject) })))))
1453
+ .subscribe((result) => {
1437
1454
  if (result.value != null) {
1438
1455
  this.source.readyValue(result.value);
1439
1456
  }
@@ -1511,8 +1528,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
1511
1528
  selector: '[dbxActionValueOnTrigger]'
1512
1529
  }]
1513
1530
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: DbxActionContextStoreSourceInstance }]; }, propDecorators: { dbxActionValueOnTrigger: [{
1514
- type: Input,
1515
- args: ['dbxActionValueOnTrigger']
1531
+ type: Input
1516
1532
  }], dbxActionValueTriggerModified: [{
1517
1533
  type: Input
1518
1534
  }] } });
@@ -1539,7 +1555,7 @@ class DbxActionContextMachine extends DbxActionContextBaseSource {
1539
1555
  });
1540
1556
  // If this is a one-time use, then destroy it after the first success comes through.
1541
1557
  if (this.config.oneTimeUse) {
1542
- this.sourceInstance.success$.pipe(first(), delay$1(1000)).subscribe(() => {
1558
+ this.sourceInstance.success$.pipe(first(), delay(1000)).subscribe(() => {
1543
1559
  this.destroy();
1544
1560
  });
1545
1561
  }
@@ -1561,33 +1577,81 @@ class DbxActionContextMachine extends DbxActionContextBaseSource {
1561
1577
  class DbxCoreActionModule {
1562
1578
  }
1563
1579
  DbxCoreActionModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxCoreActionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1564
- DbxCoreActionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxCoreActionModule, declarations: [DbxActionDirective, DbxActionContextMapDirective, DbxActionFromMapDirective, DbxActionMapSourceDirective,
1565
- DbxActionMapWorkingDisableDirective, DbxActionSourceDirective, DbxActionHandlerDirective, DbxActionDisabledDirective, DbxActionEnforceModifiedDirective,
1566
- DbxActionAutoTriggerDirective, dbxActionValueStreamDirective, DbxActionAutoModifyDirective, DbxActionValueDirective, DbxActionContextLoggerDirective,
1567
- DbxActionHasSuccessDirective, DbxActionSuccessHandlerDirective, DbxActionIsWorkingDirective], imports: [CommonModule], exports: [DbxActionDirective, DbxActionContextMapDirective, DbxActionFromMapDirective, DbxActionMapSourceDirective,
1568
- DbxActionMapWorkingDisableDirective, DbxActionSourceDirective, DbxActionHandlerDirective, DbxActionDisabledDirective, DbxActionEnforceModifiedDirective,
1569
- DbxActionAutoTriggerDirective, dbxActionValueStreamDirective, DbxActionAutoModifyDirective, DbxActionValueDirective, DbxActionContextLoggerDirective,
1570
- DbxActionHasSuccessDirective, DbxActionSuccessHandlerDirective, DbxActionIsWorkingDirective] });
1571
- DbxCoreActionModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxCoreActionModule, imports: [[
1572
- CommonModule
1573
- ]] });
1580
+ DbxCoreActionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxCoreActionModule, declarations: [DbxActionDirective,
1581
+ DbxActionContextMapDirective,
1582
+ DbxActionFromMapDirective,
1583
+ DbxActionMapSourceDirective,
1584
+ DbxActionMapWorkingDisableDirective,
1585
+ DbxActionSourceDirective,
1586
+ DbxActionHandlerDirective,
1587
+ DbxActionDisabledDirective,
1588
+ DbxActionEnforceModifiedDirective,
1589
+ DbxActionAutoTriggerDirective,
1590
+ dbxActionValueStreamDirective,
1591
+ DbxActionAutoModifyDirective,
1592
+ DbxActionValueDirective,
1593
+ DbxActionContextLoggerDirective,
1594
+ DbxActionHasSuccessDirective,
1595
+ DbxActionSuccessHandlerDirective,
1596
+ DbxActionIsWorkingDirective], imports: [CommonModule], exports: [DbxActionDirective,
1597
+ DbxActionContextMapDirective,
1598
+ DbxActionFromMapDirective,
1599
+ DbxActionMapSourceDirective,
1600
+ DbxActionMapWorkingDisableDirective,
1601
+ DbxActionSourceDirective,
1602
+ DbxActionHandlerDirective,
1603
+ DbxActionDisabledDirective,
1604
+ DbxActionEnforceModifiedDirective,
1605
+ DbxActionAutoTriggerDirective,
1606
+ dbxActionValueStreamDirective,
1607
+ DbxActionAutoModifyDirective,
1608
+ DbxActionValueDirective,
1609
+ DbxActionContextLoggerDirective,
1610
+ DbxActionHasSuccessDirective,
1611
+ DbxActionSuccessHandlerDirective,
1612
+ DbxActionIsWorkingDirective] });
1613
+ DbxCoreActionModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxCoreActionModule, imports: [[CommonModule]] });
1574
1614
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxCoreActionModule, decorators: [{
1575
1615
  type: NgModule,
1576
1616
  args: [{
1577
- imports: [
1578
- CommonModule
1579
- ],
1617
+ imports: [CommonModule],
1580
1618
  declarations: [
1581
- DbxActionDirective, DbxActionContextMapDirective, DbxActionFromMapDirective, DbxActionMapSourceDirective,
1582
- DbxActionMapWorkingDisableDirective, DbxActionSourceDirective, DbxActionHandlerDirective, DbxActionDisabledDirective, DbxActionEnforceModifiedDirective,
1583
- DbxActionAutoTriggerDirective, dbxActionValueStreamDirective, DbxActionAutoModifyDirective, DbxActionValueDirective, DbxActionContextLoggerDirective,
1584
- 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
1585
1636
  ],
1586
1637
  exports: [
1587
- DbxActionDirective, DbxActionContextMapDirective, DbxActionFromMapDirective, DbxActionMapSourceDirective,
1588
- DbxActionMapWorkingDisableDirective, DbxActionSourceDirective, DbxActionHandlerDirective, DbxActionDisabledDirective, DbxActionEnforceModifiedDirective,
1589
- DbxActionAutoTriggerDirective, dbxActionValueStreamDirective, DbxActionAutoModifyDirective, DbxActionValueDirective, DbxActionContextLoggerDirective,
1590
- DbxActionHasSuccessDirective, DbxActionSuccessHandlerDirective, DbxActionIsWorkingDirective
1638
+ DbxActionDirective,
1639
+ DbxActionContextMapDirective,
1640
+ DbxActionFromMapDirective,
1641
+ DbxActionMapSourceDirective,
1642
+ DbxActionMapWorkingDisableDirective,
1643
+ DbxActionSourceDirective,
1644
+ DbxActionHandlerDirective,
1645
+ DbxActionDisabledDirective,
1646
+ DbxActionEnforceModifiedDirective,
1647
+ DbxActionAutoTriggerDirective,
1648
+ dbxActionValueStreamDirective,
1649
+ DbxActionAutoModifyDirective,
1650
+ DbxActionValueDirective,
1651
+ DbxActionContextLoggerDirective,
1652
+ DbxActionHasSuccessDirective,
1653
+ DbxActionSuccessHandlerDirective,
1654
+ DbxActionIsWorkingDirective
1591
1655
  ]
1592
1656
  }]
1593
1657
  }] });
@@ -1599,6 +1663,39 @@ function makeDbxActionContextSourceReference(sourceInstance) {
1599
1663
  };
1600
1664
  }
1601
1665
 
1666
+ function isSegueRef(input) {
1667
+ return typeof input === 'object' && hasValueOrNotEmpty(input.ref);
1668
+ }
1669
+ function asSegueRef(input) {
1670
+ const type = typeof input;
1671
+ if (type === 'string') {
1672
+ return refStringToSegueRef(input);
1673
+ }
1674
+ else if (isSegueRef(input)) {
1675
+ return input;
1676
+ }
1677
+ else {
1678
+ return undefined;
1679
+ }
1680
+ }
1681
+ function asSegueRefString(input) {
1682
+ if (typeof input === 'string') {
1683
+ return input;
1684
+ }
1685
+ else if (isSegueRef(input)) {
1686
+ return input.ref;
1687
+ }
1688
+ else {
1689
+ throw new Error(`asSegueRefString() failed to convert the input to a string: ${input}`);
1690
+ }
1691
+ }
1692
+ function refStringToSegueRef(ref, options) {
1693
+ return Object.assign(Object.assign({}, options), { ref });
1694
+ }
1695
+ function mapRefStringObsToSegueRefObs(obs, options) {
1696
+ return obs.pipe(map((x) => refStringToSegueRef(x, options)));
1697
+ }
1698
+
1602
1699
  /**
1603
1700
  * Client auth service used to retrieve info about the current state of client authentication and client roles they may have.
1604
1701
  */
@@ -1628,7 +1725,7 @@ function makeAuthTransitionHook(config) {
1628
1725
  else {
1629
1726
  resultObs = of(redirectTo);
1630
1727
  }
1631
- redirectToObs = resultObs.pipe(map$1((stateRef) => {
1728
+ redirectToObs = resultObs.pipe(map((stateRef) => {
1632
1729
  let redirectTarget;
1633
1730
  let redirectParams;
1634
1731
  if (stateRef) {
@@ -1646,7 +1743,7 @@ function makeAuthTransitionHook(config) {
1646
1743
  }
1647
1744
  return redirectToObs;
1648
1745
  }
1649
- const resultObs = decisionObs.pipe(first$1(), switchMap$1((decision) => {
1746
+ const resultObs = decisionObs.pipe(first(), switchMap((decision) => {
1650
1747
  if (typeof decision === 'boolean') {
1651
1748
  if (decision) {
1652
1749
  return of(true);
@@ -1656,7 +1753,7 @@ function makeAuthTransitionHook(config) {
1656
1753
  }
1657
1754
  }
1658
1755
  else {
1659
- return of($state.target(decision.ref, decision.refParams, decision.refOptions));
1756
+ return of($state.target(asSegueRefString(decision.ref), decision.refParams, decision.refOptions));
1660
1757
  }
1661
1758
  }), catchError((x) => {
1662
1759
  console.warn('Encountered error in auth transition hook.', x);
@@ -1675,7 +1772,7 @@ function makeAuthTransitionHook(config) {
1675
1772
  */
1676
1773
  function redirectBasedOnAuthUserState(stateMap) {
1677
1774
  return (input) => {
1678
- return input.authService.authUserState$.pipe(first$1(), switchMap$1((authUserState) => {
1775
+ return input.authService.authUserState$.pipe(first(), switchMap((authUserState) => {
1679
1776
  const getter = stateMap[authUserState];
1680
1777
  let result;
1681
1778
  if (getter) {
@@ -1733,7 +1830,7 @@ function enableHasAuthRoleHook(transitionService, config) {
1733
1830
  const data = targetState.state().data;
1734
1831
  const requiredRoles = new Set(data.authRoles);
1735
1832
  const setIncludes = setIncludesFunction(requiredRoles, data.authRolesMode);
1736
- return authService.authUserState$.pipe(map$1(x => setIncludes(x)));
1833
+ return authService.authUserState$.pipe(map((x) => setIncludes(x)));
1737
1834
  } }));
1738
1835
  // Register the "requires auth" hook with the TransitionsService
1739
1836
  transitionService.onBefore(isSecureCriteria, assertHasAuthRole, { priority: 100 });
@@ -1759,7 +1856,7 @@ function enableHasAuthStateHook(transitionService, config) {
1759
1856
  const data = targetState.state().data;
1760
1857
  const config = toHasAuthStateObjectConfig(data.authStates);
1761
1858
  const parsed = toParsedHasAuthStateConfig(config);
1762
- return authService.authUserState$.pipe(map$1(x => isAllowed(x, parsed)));
1859
+ return authService.authUserState$.pipe(map((x) => isAllowed(x, parsed)));
1763
1860
  } }));
1764
1861
  // Register the "requires auth" hook with the TransitionsService
1765
1862
  transitionService.onBefore(isSecureCriteria, assertHasAuthState, { priority: 100 });
@@ -1767,7 +1864,7 @@ function enableHasAuthStateHook(transitionService, config) {
1767
1864
  // MARK: Utility
1768
1865
  function toHasAuthStateObjectConfig(input) {
1769
1866
  const isString = typeof input === 'string';
1770
- if ((Array.isArray(input) || isString)) {
1867
+ if (Array.isArray(input) || isString) {
1771
1868
  if (isString) {
1772
1869
  input = [input];
1773
1870
  }
@@ -1901,9 +1998,9 @@ class AbstractOnDbxAppContextStateEffects {
1901
1998
  * @returns
1902
1999
  */
1903
2000
  ngrxOnRunEffects(resolvedEffects$) {
1904
- return this.actions$.pipe(ofType(setState), filter$1(({ state }) => {
2001
+ return this.actions$.pipe(ofType(setState), filter(({ state }) => {
1905
2002
  return this._activeStatesSet.has(state);
1906
- }), exhaustMap$1(() => resolvedEffects$.pipe(takeUntil(this.actions$.pipe(ofType(setState), filter$1(({ state }) => !this._activeStatesSet.has(state)))))));
2003
+ }), exhaustMap(() => resolvedEffects$.pipe(takeUntil(this.actions$.pipe(ofType(setState), filter(({ state }) => !this._activeStatesSet.has(state)))))));
1907
2004
  }
1908
2005
  }
1909
2006
 
@@ -1915,7 +2012,7 @@ const NO_AUTH_USER_IDENTIFIER = '0';
1915
2012
  * @returns
1916
2013
  */
1917
2014
  function authUserIdentifier(inputId) {
1918
- return (inputId) ? inputId : NO_AUTH_USER_IDENTIFIER;
2015
+ return inputId ? inputId : NO_AUTH_USER_IDENTIFIER;
1919
2016
  }
1920
2017
 
1921
2018
  /**
@@ -2061,33 +2158,13 @@ function anchorTypeForAnchor(anchor, disabled) {
2061
2158
  }
2062
2159
  class DbxAnchor {
2063
2160
  }
2064
- function ProvideDbxAnchor(sourceType) {
2065
- return [{
2161
+ function provideDbxAnchor(sourceType) {
2162
+ return [
2163
+ {
2066
2164
  provide: DbxAnchor,
2067
2165
  useExisting: forwardRef(() => sourceType)
2068
- }];
2069
- }
2070
-
2071
- function isSegueRef(input) {
2072
- return (typeof input === 'object') && input.ref != null;
2073
- }
2074
- function asSegueRef(input) {
2075
- const type = typeof input;
2076
- if (type === 'string') {
2077
- return refStringToSegueRef(input);
2078
- }
2079
- else if (isSegueRef(input)) {
2080
- return input;
2081
- }
2082
- else {
2083
- return { ref: undefined };
2084
- }
2085
- }
2086
- function refStringToSegueRef(ref, options) {
2087
- return Object.assign(Object.assign({}, options), { ref });
2088
- }
2089
- function mapRefStringObsToSegueRefObs(obs, options) {
2090
- return obs.pipe(map$1(x => refStringToSegueRef(x, options)));
2166
+ }
2167
+ ];
2091
2168
  }
2092
2169
 
2093
2170
  /**
@@ -2128,7 +2205,7 @@ AbstractDbxAnchorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0
2128
2205
  AbstractDbxAnchorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: AbstractDbxAnchorDirective, inputs: { ref: "ref", anchor: "anchor", disabled: "disabled" }, ngImport: i0 });
2129
2206
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AbstractDbxAnchorDirective, decorators: [{
2130
2207
  type: Directive
2131
- }], ctorParameters: function () { return []; }, propDecorators: { ref: [{
2208
+ }], propDecorators: { ref: [{
2132
2209
  type: Input
2133
2210
  }], anchor: [{
2134
2211
  type: Input
@@ -2156,7 +2233,7 @@ class DbxAngularRouterService {
2156
2233
  this.router = router;
2157
2234
  this.activatedRoute = activatedRoute;
2158
2235
  this.params$ = this.activatedRoute.params;
2159
- this.transitions$ = this.router.events.pipe(map((x) => {
2236
+ this.transitions$ = this.router.events.pipe(map$1((x) => {
2160
2237
  let event;
2161
2238
  if (x instanceof NavigationStart) {
2162
2239
  event = {
@@ -2173,7 +2250,7 @@ class DbxAngularRouterService {
2173
2250
  }
2174
2251
  go(input) {
2175
2252
  const segueRef = asSegueRef(input);
2176
- let ref = segueRef.ref;
2253
+ const ref = segueRef.ref;
2177
2254
  if (isArray(ref)) {
2178
2255
  return this.router.navigate(ref, Object.assign(Object.assign({}, segueRef.refOptions), { queryParams: segueRef.refParams }));
2179
2256
  }
@@ -2208,7 +2285,7 @@ class DbxRouterService {
2208
2285
  */
2209
2286
  function goWithRouter(dbxRouterService) {
2210
2287
  return (route) => {
2211
- return firstValueFrom(asObservable(route)).then(x => dbxRouterService.go(x));
2288
+ return firstValueFrom(asObservable(route)).then((x) => dbxRouterService.go(x));
2212
2289
  };
2213
2290
  }
2214
2291
 
@@ -2244,43 +2321,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
2244
2321
  args: [{}]
2245
2322
  }] });
2246
2323
 
2247
- /**
2248
- * Used for creating a future state that also captures any children urls.
2249
- *
2250
- * This is important for cases, such as /, where multiple urls should target a specific future so that
2251
- * it can load that module and continue route resolution for the child url.
2252
- *
2253
- * For example:
2254
- * - the urls /a and /b are declared in a lazy loaded module that is for /. This presents a problem, since
2255
- * the root module does not know how to handle /a or /b, since they are children of /. We use
2256
- * futureStateWithChildrenUrls() to build a future state with the child urls so the parent routing knows where
2257
- * to send /a or /b.
2258
- *
2259
- * @param state
2260
- * @param urls
2261
- * @returns
2262
- *
2263
- * @deprecated not how this feature works. Consider adding it to ui-router later then re-export this function.
2264
- */
2265
- function futureStateWithChildrenUrls(state, urls) {
2266
- const states = [state];
2267
- mergeArrayIntoArray(states, expandFutureStateWithUrls(state, urls));
2268
- return states;
2269
- }
2270
- /**
2271
- * Copies the input state and replaces the url in each of them with the passed urls.
2272
- *
2273
- * @param state
2274
- * @param urls
2275
- * @returns
2276
- *
2277
- * @deprecated
2278
- */
2279
- function expandFutureStateWithUrls(state, urls) {
2280
- const childrenStates = objectFlatMergeMatrix(state, urls.map(url => ({ url })));
2281
- return childrenStates;
2282
- }
2283
-
2284
2324
  /**
2285
2325
  * UIRouter implementation of DbxRouterService and DbxRouterTransitionService.
2286
2326
  */
@@ -2315,21 +2355,25 @@ class DbxUIRouterService {
2315
2355
  go(input) {
2316
2356
  const segueRef = asSegueRef(input);
2317
2357
  const params = Object.assign(Object.assign({}, this.uiRouterGlobals.current.params), segueRef.refParams);
2318
- return this.state.go(segueRef.ref, params, segueRef.refOptions).then(_ => true).catch(_ => false);
2358
+ return this.state
2359
+ .go(segueRef.ref, params, segueRef.refOptions)
2360
+ .then(() => true)
2361
+ .catch(() => false);
2319
2362
  }
2320
2363
  isActive(input) {
2321
2364
  const segueRef = asSegueRef(input);
2322
- const { ref, refParams } = segueRef;
2323
- const targetRef = (ref.startsWith('.') ? `^${ref}` : ref);
2365
+ const ref = segueRef.ref;
2366
+ const refParams = segueRef.refParams;
2367
+ const targetRef = ref.startsWith('.') ? `^${ref}` : ref;
2324
2368
  const active = this.state.includes(targetRef, refParams);
2325
2369
  return active;
2326
2370
  }
2327
2371
  comparePrecision(aInput, bInput) {
2328
- const aRef = readSegueRefString(aInput);
2329
- const bRef = readSegueRefString(bInput);
2372
+ const aRef = asSegueRefString(aInput);
2373
+ const bRef = asSegueRefString(bInput);
2330
2374
  const aLength = aRef.length;
2331
2375
  const bLength = bRef.length;
2332
- return (aLength > bLength) ? 1 : (aLength === bLength) ? 0 : -1;
2376
+ return aLength > bLength ? 1 : aLength === bLength ? 0 : -1;
2333
2377
  }
2334
2378
  }
2335
2379
  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 });
@@ -2337,15 +2381,6 @@ DbxUIRouterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", v
2337
2381
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxUIRouterService, decorators: [{
2338
2382
  type: Injectable
2339
2383
  }], ctorParameters: function () { return [{ type: i1$2.StateService }, { type: i1$2.TransitionService }, { type: i1$2.UIRouterGlobals }]; } });
2340
- function readSegueRefString(input) {
2341
- var _a;
2342
- if (typeof input === 'string') {
2343
- return input;
2344
- }
2345
- else {
2346
- return (_a = input === null || input === void 0 ? void 0 : input.ref) !== null && _a !== void 0 ? _a : '';
2347
- }
2348
- }
2349
2384
 
2350
2385
  class DbxCoreUIRouterSegueModule {
2351
2386
  static forRoot() {
@@ -2386,7 +2421,7 @@ function filterTransitionSuccess() {
2386
2421
  return filterTransitionEvent(DbxRouterTransitionEventType.SUCCESS);
2387
2422
  }
2388
2423
  function filterTransitionEvent(type) {
2389
- return filter$1(x => x.type === type);
2424
+ return filter((x) => x.type === type);
2390
2425
  }
2391
2426
 
2392
2427
  /**
@@ -2396,7 +2431,7 @@ class AbstractTransitionDirective {
2396
2431
  constructor(dbxRouterTransitionService) {
2397
2432
  this.dbxRouterTransitionService = dbxRouterTransitionService;
2398
2433
  this.transitionSuccess$ = successTransition(this.dbxRouterTransitionService.transitions$);
2399
- this.initAndUpdateOnTransitionSuccess$ = this.transitionSuccess$.pipe(startWith$1(undefined));
2434
+ this.initAndUpdateOnTransitionSuccess$ = this.transitionSuccess$.pipe(startWith(undefined));
2400
2435
  }
2401
2436
  }
2402
2437
  AbstractTransitionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AbstractTransitionDirective, deps: [{ token: DbxRouterTransitionService }], target: i0.ɵɵFactoryTarget.Directive });
@@ -2511,11 +2546,11 @@ class DbxAppAuthRouterEffects extends AbstractOnDbxAppContextStateEffects {
2511
2546
  /**
2512
2547
  * Effect to redirect to the login when logout occurs.
2513
2548
  */
2514
- this.redirectToLoginOnLogout = createEffect(() => this.actions$.pipe(ofType(loggedOut), exhaustMap$1(() => this.dbxAppAuthRouterService.goToLogin())), { dispatch: false });
2549
+ this.redirectToLoginOnLogout = createEffect(() => this.actions$.pipe(ofType(loggedOut), exhaustMap(() => this.dbxAppAuthRouterService.goToLogin())), { dispatch: false });
2515
2550
  /**
2516
2551
  * Effect to redirect to the app when login occurs.
2517
2552
  */
2518
- this.redirectToOnboardOnLogIn = createEffect(() => this.actions$.pipe(ofType(loggedIn), exhaustMap$1(() => this.dbxAppAuthRouterService.goToApp())), { dispatch: false });
2553
+ this.redirectToOnboardOnLogIn = createEffect(() => this.actions$.pipe(ofType(loggedIn), exhaustMap(() => this.dbxAppAuthRouterService.goToApp())), { dispatch: false });
2519
2554
  }
2520
2555
  }
2521
2556
  DbxAppAuthRouterEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxAppAuthRouterEffects, deps: [{ token: DBX_APP_AUTH_ROUTER_EFFECTS_TOKEN, optional: true }, { token: i1$3.Actions }, { token: i1$4.Store }, { token: DbxAppAuthRouterService }], target: i0.ɵɵFactoryTarget.Injectable });
@@ -2535,24 +2570,22 @@ class DbxAppAuthRouterStateModule {
2535
2570
  static forRoot(config) {
2536
2571
  return {
2537
2572
  ngModule: DbxAppAuthRouterStateModule,
2538
- providers: [{
2573
+ providers: [
2574
+ {
2539
2575
  provide: DBX_APP_AUTH_ROUTER_EFFECTS_TOKEN,
2540
2576
  useValue: config.activeRoutesToApplyEffects
2541
- }]
2577
+ }
2578
+ ]
2542
2579
  };
2543
2580
  }
2544
2581
  }
2545
2582
  DbxAppAuthRouterStateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxAppAuthRouterStateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2546
2583
  DbxAppAuthRouterStateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxAppAuthRouterStateModule, imports: [i1$3.EffectsFeatureModule] });
2547
- DbxAppAuthRouterStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxAppAuthRouterStateModule, imports: [[
2548
- EffectsModule.forFeature([DbxAppAuthRouterEffects])
2549
- ]] });
2584
+ DbxAppAuthRouterStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxAppAuthRouterStateModule, imports: [[EffectsModule.forFeature([DbxAppAuthRouterEffects])]] });
2550
2585
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxAppAuthRouterStateModule, decorators: [{
2551
2586
  type: NgModule,
2552
2587
  args: [{
2553
- imports: [
2554
- EffectsModule.forFeature([DbxAppAuthRouterEffects])
2555
- ],
2588
+ imports: [EffectsModule.forFeature([DbxAppAuthRouterEffects])],
2556
2589
  declarations: [],
2557
2590
  exports: []
2558
2591
  }]
@@ -2562,10 +2595,12 @@ class DbxAppAuthRouterModule {
2562
2595
  static forRoot(dbxAppAuthRoutes) {
2563
2596
  return {
2564
2597
  ngModule: DbxAppAuthRouterModule,
2565
- providers: [{
2598
+ providers: [
2599
+ {
2566
2600
  provide: DbxAppAuthRoutes,
2567
2601
  useValue: dbxAppAuthRoutes
2568
- }]
2602
+ }
2603
+ ]
2569
2604
  };
2570
2605
  }
2571
2606
  }
@@ -2588,7 +2623,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
2588
2623
  * @returns
2589
2624
  */
2590
2625
  function loggedInObsFromIsLoggedIn(isLoggedInObs) {
2591
- return isLoggedInObs.pipe(onFalseToTrue(), map$1(_ => undefined));
2626
+ return isLoggedInObs.pipe(onFalseToTrue(), map(() => undefined));
2592
2627
  }
2593
2628
  /**
2594
2629
  * Convenience operator that emits events when the input observable goes from true to false.
@@ -2597,7 +2632,7 @@ function loggedInObsFromIsLoggedIn(isLoggedInObs) {
2597
2632
  * @returns
2598
2633
  */
2599
2634
  function loggedOutObsFromIsLoggedIn(isLoggedInObs) {
2600
- return isLoggedInObs.pipe(onTrueToFalse(), map$1(_ => undefined));
2635
+ return isLoggedInObs.pipe(onTrueToFalse(), map(() => undefined));
2601
2636
  }
2602
2637
  function authRolesSetContainsAllRolesFrom(roles) {
2603
2638
  return setContainsAllValuesFrom(roles);
@@ -2669,22 +2704,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
2669
2704
  class DbxCoreAuthModule {
2670
2705
  }
2671
2706
  DbxCoreAuthModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxCoreAuthModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2672
- DbxCoreAuthModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxCoreAuthModule, declarations: [DbxAuthHasRolesDirective,
2673
- DbxAuthHasAnyRoleDirective], exports: [DbxAuthHasRolesDirective,
2674
- DbxAuthHasAnyRoleDirective] });
2707
+ DbxCoreAuthModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxCoreAuthModule, declarations: [DbxAuthHasRolesDirective, DbxAuthHasAnyRoleDirective], exports: [DbxAuthHasRolesDirective, DbxAuthHasAnyRoleDirective] });
2675
2708
  DbxCoreAuthModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxCoreAuthModule, imports: [[]] });
2676
2709
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxCoreAuthModule, decorators: [{
2677
2710
  type: NgModule,
2678
2711
  args: [{
2679
2712
  imports: [],
2680
- declarations: [
2681
- DbxAuthHasRolesDirective,
2682
- DbxAuthHasAnyRoleDirective
2683
- ],
2684
- exports: [
2685
- DbxAuthHasRolesDirective,
2686
- DbxAuthHasAnyRoleDirective
2687
- ]
2713
+ declarations: [DbxAuthHasRolesDirective, DbxAuthHasAnyRoleDirective],
2714
+ exports: [DbxAuthHasRolesDirective, DbxAuthHasAnyRoleDirective]
2688
2715
  }]
2689
2716
  }] });
2690
2717
 
@@ -2697,23 +2724,17 @@ class DbxAppAuthEffects {
2697
2724
  this.store = store;
2698
2725
  this.dbxAuthService = dbxAuthService;
2699
2726
  // MARK: Auth
2700
- this.emitLoggedIn = createEffect(() => this.dbxAuthService.onLogIn$
2701
- .pipe(map$1(() => loggedIn())));
2702
- this.emitLoggedOut = createEffect(() => this.dbxAuthService.onLogOut$
2703
- .pipe(map$1(() => loggedOut())));
2704
- this.forwardLogoutToAuthService = createEffect(() => this.actions$.pipe(ofType(logout), tap$1(() => {
2727
+ this.emitLoggedIn = createEffect(() => this.dbxAuthService.onLogIn$.pipe(map(() => loggedIn())));
2728
+ this.emitLoggedOut = createEffect(() => this.dbxAuthService.onLogOut$.pipe(map(() => loggedOut())));
2729
+ this.forwardLogoutToAuthService = createEffect(() => this.actions$.pipe(ofType(logout), tap(() => {
2705
2730
  // Perform the logout
2706
2731
  this.dbxAuthService.logOut();
2707
2732
  })), { dispatch: false });
2708
2733
  // MARK: Auth
2709
- this.setUserIdentifier = createEffect(() => this.dbxAuthService.userIdentifier$
2710
- .pipe(map$1((id) => setUserIdentifier({ id }))));
2711
- this.setUserState = createEffect(() => this.dbxAuthService.authUserState$
2712
- .pipe(map$1((state) => setUserState({ state }))));
2713
- this.setUserRoles = createEffect(() => this.dbxAuthService.authRoles$
2714
- .pipe(map$1((roles) => setUserRoles({ roles: Array.from(roles !== null && roles !== void 0 ? roles : []) }))));
2715
- this.setUserIsOnboarded = createEffect(() => this.dbxAuthService.isOnboarded$
2716
- .pipe(map$1((isOnboarded) => setUserIsOnboarded({ isOnboarded }))));
2734
+ this.setUserIdentifier = createEffect(() => this.dbxAuthService.userIdentifier$.pipe(map((id) => setUserIdentifier({ id }))));
2735
+ this.setUserState = createEffect(() => this.dbxAuthService.authUserState$.pipe(map((state) => setUserState({ state }))));
2736
+ this.setUserRoles = createEffect(() => this.dbxAuthService.authRoles$.pipe(map((roles) => setUserRoles({ roles: Array.from(roles !== null && roles !== void 0 ? roles : []) }))));
2737
+ this.setUserIsOnboarded = createEffect(() => this.dbxAuthService.isOnboarded$.pipe(map((isOnboarded) => setUserIsOnboarded({ isOnboarded }))));
2717
2738
  }
2718
2739
  }
2719
2740
  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 });
@@ -2726,17 +2747,11 @@ class DbxAppAuthStateModule {
2726
2747
  }
2727
2748
  DbxAppAuthStateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxAppAuthStateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2728
2749
  DbxAppAuthStateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxAppAuthStateModule, imports: [i1$4.StoreFeatureModule, i1$3.EffectsFeatureModule] });
2729
- DbxAppAuthStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxAppAuthStateModule, imports: [[
2730
- StoreModule.forFeature(featureKey, reducers),
2731
- EffectsModule.forFeature([DbxAppAuthEffects])
2732
- ]] });
2750
+ DbxAppAuthStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxAppAuthStateModule, imports: [[StoreModule.forFeature(featureKey, reducers), EffectsModule.forFeature([DbxAppAuthEffects])]] });
2733
2751
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxAppAuthStateModule, decorators: [{
2734
2752
  type: NgModule,
2735
2753
  args: [{
2736
- imports: [
2737
- StoreModule.forFeature(featureKey, reducers),
2738
- EffectsModule.forFeature([DbxAppAuthEffects])
2739
- ],
2754
+ imports: [StoreModule.forFeature(featureKey, reducers), EffectsModule.forFeature([DbxAppAuthEffects])],
2740
2755
  declarations: [],
2741
2756
  exports: []
2742
2757
  }]
@@ -2768,7 +2783,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
2768
2783
  * @returns
2769
2784
  */
2770
2785
  function tapDetectChanges(cdRef, timeout = 0) {
2771
- return tap$1(() => setTimeout(() => safeDetectChanges(cdRef), timeout));
2786
+ return tap(() => setTimeout(() => safeDetectChanges(cdRef), timeout));
2772
2787
  }
2773
2788
  /**
2774
2789
  * Triggers a detection change on the input view as long as the view has not been destroyed.
@@ -2793,7 +2808,7 @@ function safeMarkForCheck(cdRef) {
2793
2808
  */
2794
2809
  function safeUseCdRef(cdRef, use) {
2795
2810
  if (!cdRef.destroyed) {
2796
- cdRef.markForCheck();
2811
+ use(cdRef);
2797
2812
  }
2798
2813
  }
2799
2814
  /**
@@ -2822,11 +2837,13 @@ function checkNgContentWrapperHasContent(ref) {
2822
2837
 
2823
2838
  class DbxButton {
2824
2839
  }
2825
- function ProvideDbxButton(sourceType) {
2826
- return [{
2840
+ function provideDbxButton(sourceType) {
2841
+ return [
2842
+ {
2827
2843
  provide: DbxButton,
2828
2844
  useExisting: forwardRef(() => sourceType)
2829
- }];
2845
+ }
2846
+ ];
2830
2847
  }
2831
2848
 
2832
2849
  /**
@@ -2916,9 +2933,11 @@ class DbxButtonSegueDirective extends AbstractSubscriptionDirective {
2916
2933
  this._segueRef.next(segueRef);
2917
2934
  }
2918
2935
  ngOnInit() {
2919
- this.sub = this.segueRef$.pipe(switchMap(segueRef => this.dbxButton.clicked$.pipe(tap(() => {
2936
+ this.sub = this.segueRef$
2937
+ .pipe(switchMap((segueRef) => this.dbxButton.clicked$.pipe(tap(() => {
2920
2938
  this.dbxRouterService.go(segueRef);
2921
- })))).subscribe();
2939
+ }))))
2940
+ .subscribe();
2922
2941
  }
2923
2942
  ngOnDestroy() {
2924
2943
  super.ngOnDestroy();
@@ -2968,7 +2987,8 @@ class AbstractDbxButtonDirective extends AbstractSubscriptionDirective {
2968
2987
  this._working.next(working);
2969
2988
  }
2970
2989
  ngOnInit() {
2971
- this.sub = this._buttonClick.pipe(switchMap(() => this._buttonInterceptor.pipe(switchMap((x) => {
2990
+ this.sub = this._buttonClick
2991
+ .pipe(switchMap(() => this._buttonInterceptor.pipe(switchMap((x) => {
2972
2992
  if (x) {
2973
2993
  return x.interceptButtonClick().pipe(first());
2974
2994
  }
@@ -2976,7 +2996,8 @@ class AbstractDbxButtonDirective extends AbstractSubscriptionDirective {
2976
2996
  return of(true);
2977
2997
  }
2978
2998
  }), filter((x) => Boolean(x)) // Ignore false values.
2979
- ))).subscribe(() => {
2999
+ )))
3000
+ .subscribe(() => {
2980
3001
  this._forceButtonClicked();
2981
3002
  });
2982
3003
  }
@@ -3030,13 +3051,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
3030
3051
  class DbxButtonDirective extends AbstractDbxButtonDirective {
3031
3052
  }
3032
3053
  DbxButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxButtonDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
3033
- DbxButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: DbxButtonDirective, selector: "[dbxButton]", providers: ProvideDbxButton(DbxButtonDirective), exportAs: ["dbxButton"], usesInheritance: true, ngImport: i0 });
3054
+ DbxButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: DbxButtonDirective, selector: "[dbxButton]", providers: provideDbxButton(DbxButtonDirective), exportAs: ["dbxButton"], usesInheritance: true, ngImport: i0 });
3034
3055
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxButtonDirective, decorators: [{
3035
3056
  type: Directive,
3036
3057
  args: [{
3037
3058
  selector: '[dbxButton]',
3038
3059
  exportAs: 'dbxButton',
3039
- providers: ProvideDbxButton(DbxButtonDirective)
3060
+ providers: provideDbxButton(DbxButtonDirective)
3040
3061
  }]
3041
3062
  }] });
3042
3063
 
@@ -3058,7 +3079,7 @@ class DbxLoadingButtonDirective extends AbstractSubscriptionDirective {
3058
3079
  let subscription;
3059
3080
  if (context) {
3060
3081
  subscription = context.stream$.subscribe((x) => {
3061
- this.ngZone.run(() => this.button.working = x.loading);
3082
+ this.ngZone.run(() => (this.button.working = x.loading));
3062
3083
  });
3063
3084
  }
3064
3085
  this.sub = subscription;
@@ -3083,34 +3104,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
3083
3104
  class DbxCoreButtonModule {
3084
3105
  }
3085
3106
  DbxCoreButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxCoreButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3086
- DbxCoreButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxCoreButtonModule, declarations: [DbxButtonDirective,
3087
- DbxLoadingButtonDirective,
3088
- DbxActionButtonTriggerDirective,
3089
- DbxActionButtonDirective,
3090
- DbxButtonSegueDirective], exports: [DbxButtonDirective,
3091
- DbxLoadingButtonDirective,
3092
- DbxActionButtonTriggerDirective,
3093
- DbxActionButtonDirective,
3094
- DbxButtonSegueDirective] });
3107
+ 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] });
3095
3108
  DbxCoreButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxCoreButtonModule, imports: [[]] });
3096
3109
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxCoreButtonModule, decorators: [{
3097
3110
  type: NgModule,
3098
3111
  args: [{
3099
3112
  imports: [],
3100
- declarations: [
3101
- DbxButtonDirective,
3102
- DbxLoadingButtonDirective,
3103
- DbxActionButtonTriggerDirective,
3104
- DbxActionButtonDirective,
3105
- DbxButtonSegueDirective
3106
- ],
3107
- exports: [
3108
- DbxButtonDirective,
3109
- DbxLoadingButtonDirective,
3110
- DbxActionButtonTriggerDirective,
3111
- DbxActionButtonDirective,
3112
- DbxButtonSegueDirective
3113
- ],
3113
+ declarations: [DbxButtonDirective, DbxLoadingButtonDirective, DbxActionButtonTriggerDirective, DbxActionButtonDirective, DbxButtonSegueDirective],
3114
+ exports: [DbxButtonDirective, DbxLoadingButtonDirective, DbxActionButtonTriggerDirective, DbxActionButtonDirective, DbxButtonSegueDirective]
3114
3115
  }]
3115
3116
  }] });
3116
3117
 
@@ -3176,21 +3177,13 @@ class DbxAppContextStateModule {
3176
3177
  }
3177
3178
  DbxAppContextStateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxAppContextStateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3178
3179
  DbxAppContextStateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxAppContextStateModule, declarations: [DbxAppContextStateDirective], imports: [i1$4.StoreFeatureModule], exports: [DbxAppContextStateDirective] });
3179
- DbxAppContextStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxAppContextStateModule, imports: [[
3180
- StoreModule.forFeature(featureKey$1, reducers$1)
3181
- ]] });
3180
+ DbxAppContextStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxAppContextStateModule, imports: [[StoreModule.forFeature(featureKey$1, reducers$1)]] });
3182
3181
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxAppContextStateModule, decorators: [{
3183
3182
  type: NgModule,
3184
3183
  args: [{
3185
- imports: [
3186
- StoreModule.forFeature(featureKey$1, reducers$1)
3187
- ],
3188
- declarations: [
3189
- DbxAppContextStateDirective
3190
- ],
3191
- exports: [
3192
- DbxAppContextStateDirective
3193
- ]
3184
+ imports: [StoreModule.forFeature(featureKey$1, reducers$1)],
3185
+ declarations: [DbxAppContextStateDirective],
3186
+ exports: [DbxAppContextStateDirective]
3194
3187
  }]
3195
3188
  }] });
3196
3189
 
@@ -3201,9 +3194,6 @@ class DateFromToTimePipe {
3201
3194
  constructor(locale) {
3202
3195
  this.locale = locale;
3203
3196
  }
3204
- transform(input, format, minutes) {
3205
- return DateFromToTimePipe.formatFromTo(input, format, minutes, this.locale);
3206
- }
3207
3197
  static formatFromTo(input, format, minutes, locale) {
3208
3198
  if (input) {
3209
3199
  const date = toJsDate(input);
@@ -3213,6 +3203,9 @@ class DateFromToTimePipe {
3213
3203
  }
3214
3204
  return undefined;
3215
3205
  }
3206
+ transform(input, format, minutes) {
3207
+ return DateFromToTimePipe.formatFromTo(input, format, minutes, this.locale);
3208
+ }
3216
3209
  }
3217
3210
  DateFromToTimePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DateFromToTimePipe, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Pipe });
3218
3211
  DateFromToTimePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DateFromToTimePipe, name: "dateFromPlusTo" });
@@ -3233,12 +3226,12 @@ class MinutesStringPipe {
3233
3226
  if (minutes > 3600) {
3234
3227
  const unrounded = minutes / 3600;
3235
3228
  const days = Math.ceil(unrounded);
3236
- return ((unrounded !== days) ? '~' : '') + days + ' days';
3229
+ return (unrounded !== days ? '~' : '') + days + ' days';
3237
3230
  }
3238
3231
  else if (minutes > 180) {
3239
3232
  const unrounded = minutes / 60;
3240
3233
  const hours = Math.ceil(unrounded);
3241
- return ((unrounded !== hours) ? '~' : '') + hours + ' hours';
3234
+ return (unrounded !== hours ? '~' : '') + hours + ' hours';
3242
3235
  }
3243
3236
  else {
3244
3237
  return minutes + ' minutes';
@@ -3373,18 +3366,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
3373
3366
  } });
3374
3367
 
3375
3368
  class DateDistancePipe {
3376
- transform(input, to, unavailable = 'Not Available') {
3369
+ transform(input, inputTo, unavailable = 'Not Available') {
3377
3370
  if (input) {
3378
- const useDefaultTo = !to;
3379
- if (useDefaultTo) {
3380
- to = new Date();
3381
- }
3371
+ const to = inputTo !== null && inputTo !== void 0 ? inputTo : new Date();
3382
3372
  const from = ToJsDatePipe.toJsDate(input);
3383
3373
  const fromStart = startOfDay(from);
3384
3374
  const toStart = startOfDay(to);
3385
3375
  if (isSameDay(fromStart, toStart)) {
3386
3376
  let text;
3387
- if (useDefaultTo || isSameDay(from, new Date())) {
3377
+ if (!inputTo || isSameDay(from, new Date())) {
3388
3378
  text = 'Today';
3389
3379
  }
3390
3380
  else {
@@ -3413,45 +3403,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
3413
3403
  class DbxDatePipeModule {
3414
3404
  }
3415
3405
  DbxDatePipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxDatePipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3416
- DbxDatePipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxDatePipeModule, declarations: [DateFromToTimePipe,
3417
- DateFormatDistancePipe,
3418
- MinutesStringPipe,
3419
- TimeDistanceCountdownPipe,
3420
- TimeDistancePipe,
3421
- DateDistancePipe,
3422
- ToJsDatePipe,
3423
- ToMinutesPipe], exports: [DateFromToTimePipe,
3424
- DateFormatDistancePipe,
3425
- MinutesStringPipe,
3426
- TimeDistanceCountdownPipe,
3427
- TimeDistancePipe,
3428
- DateDistancePipe,
3429
- ToJsDatePipe,
3430
- ToMinutesPipe] });
3406
+ 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] });
3431
3407
  DbxDatePipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxDatePipeModule });
3432
3408
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxDatePipeModule, decorators: [{
3433
3409
  type: NgModule,
3434
3410
  args: [{
3435
- exports: [
3436
- DateFromToTimePipe,
3437
- DateFormatDistancePipe,
3438
- MinutesStringPipe,
3439
- TimeDistanceCountdownPipe,
3440
- TimeDistancePipe,
3441
- DateDistancePipe,
3442
- ToJsDatePipe,
3443
- ToMinutesPipe
3444
- ],
3445
- declarations: [
3446
- DateFromToTimePipe,
3447
- DateFormatDistancePipe,
3448
- MinutesStringPipe,
3449
- TimeDistanceCountdownPipe,
3450
- TimeDistancePipe,
3451
- DateDistancePipe,
3452
- ToJsDatePipe,
3453
- ToMinutesPipe
3454
- ]
3411
+ exports: [DateFromToTimePipe, DateFormatDistancePipe, MinutesStringPipe, TimeDistanceCountdownPipe, TimeDistancePipe, DateDistancePipe, ToJsDatePipe, ToMinutesPipe],
3412
+ declarations: [DateFromToTimePipe, DateFormatDistancePipe, MinutesStringPipe, TimeDistanceCountdownPipe, TimeDistancePipe, DateDistancePipe, ToJsDatePipe, ToMinutesPipe]
3455
3413
  }]
3456
3414
  }] });
3457
3415
 
@@ -3488,29 +3446,20 @@ DbxMiscPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", versi
3488
3446
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxMiscPipeModule, decorators: [{
3489
3447
  type: NgModule,
3490
3448
  args: [{
3491
- exports: [
3492
- PrettyJsonPipe
3493
- ],
3494
- declarations: [
3495
- PrettyJsonPipe
3496
- ]
3449
+ exports: [PrettyJsonPipe],
3450
+ declarations: [PrettyJsonPipe]
3497
3451
  }]
3498
3452
  }] });
3499
3453
 
3500
3454
  class DbxPipesModule {
3501
3455
  }
3502
3456
  DbxPipesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxPipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3503
- DbxPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxPipesModule, exports: [DbxMiscPipeModule,
3504
- DbxDatePipeModule] });
3505
- DbxPipesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxPipesModule, imports: [DbxMiscPipeModule,
3506
- DbxDatePipeModule] });
3457
+ DbxPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxPipesModule, exports: [DbxMiscPipeModule, DbxDatePipeModule] });
3458
+ DbxPipesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxPipesModule, imports: [DbxMiscPipeModule, DbxDatePipeModule] });
3507
3459
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxPipesModule, decorators: [{
3508
3460
  type: NgModule,
3509
3461
  args: [{
3510
- exports: [
3511
- DbxMiscPipeModule,
3512
- DbxDatePipeModule,
3513
- ]
3462
+ exports: [DbxMiscPipeModule, DbxDatePipeModule]
3514
3463
  }]
3515
3464
  }] });
3516
3465
 
@@ -3582,7 +3531,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
3582
3531
  class AbstractFilterSourceConnectorDirective {
3583
3532
  constructor() {
3584
3533
  this._source = new BehaviorSubject(undefined);
3585
- this.filter$ = this._source.pipe(switchMap$1(x => { var _a; return (_a = x === null || x === void 0 ? void 0 : x.filter$) !== null && _a !== void 0 ? _a : of(undefined); }), shareReplay$1(1));
3534
+ this.filter$ = this._source.pipe(switchMap((x) => { var _a; return (_a = x === null || x === void 0 ? void 0 : x.filter$) !== null && _a !== void 0 ? _a : of(undefined); }), filterMaybe(), shareReplay(1));
3586
3535
  }
3587
3536
  ngOnDestroy() {
3588
3537
  this._source.complete();
@@ -3600,23 +3549,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
3600
3549
  /**
3601
3550
  * Angular provider convenience function for a FilterSource.
3602
3551
  */
3603
- function ProvideFilterSource(sourceType) {
3604
- return [{
3552
+ function provideFilterSource(sourceType) {
3553
+ return [
3554
+ {
3605
3555
  provide: FilterSource,
3606
3556
  useExisting: forwardRef(() => sourceType)
3607
- }];
3557
+ }
3558
+ ];
3608
3559
  }
3609
3560
  /**
3610
3561
  * Angular provider convenience function for a FilterSourceConnector.
3611
3562
  */
3612
- function ProvideFilterSourceConnector(sourceType) {
3613
- return [{
3563
+ function provideFilterSourceConnector(sourceType) {
3564
+ return [
3565
+ {
3614
3566
  provide: FilterSourceConnector,
3615
3567
  useExisting: forwardRef(() => sourceType)
3616
- }, {
3568
+ },
3569
+ {
3617
3570
  provide: FilterSource,
3618
3571
  useExisting: forwardRef(() => sourceType)
3619
- }];
3572
+ }
3573
+ ];
3620
3574
  }
3621
3575
 
3622
3576
  /**
@@ -3625,18 +3579,12 @@ function ProvideFilterSourceConnector(sourceType) {
3625
3579
  class DbxFilterSourceConnectorDirective extends AbstractFilterSourceConnectorDirective {
3626
3580
  }
3627
3581
  DbxFilterSourceConnectorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxFilterSourceConnectorDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
3628
- DbxFilterSourceConnectorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: DbxFilterSourceConnectorDirective, selector: "[dbxFilterSourceConnector]", providers: [
3629
- ...ProvideFilterSource(DbxFilterSourceConnectorDirective),
3630
- ...ProvideFilterSourceConnector(DbxFilterSourceConnectorDirective)
3631
- ], usesInheritance: true, ngImport: i0 });
3582
+ 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 });
3632
3583
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxFilterSourceConnectorDirective, decorators: [{
3633
3584
  type: Directive,
3634
3585
  args: [{
3635
3586
  selector: '[dbxFilterSourceConnector]',
3636
- providers: [
3637
- ...ProvideFilterSource(DbxFilterSourceConnectorDirective),
3638
- ...ProvideFilterSourceConnector(DbxFilterSourceConnectorDirective)
3639
- ]
3587
+ providers: [...provideFilterSource(DbxFilterSourceConnectorDirective), ...provideFilterSourceConnector(DbxFilterSourceConnectorDirective)]
3640
3588
  }]
3641
3589
  }] });
3642
3590
 
@@ -3666,7 +3614,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
3666
3614
  class DbxFilterMapSourceDirective extends AbstractDbxFilterMapInstanceDirective {
3667
3615
  constructor() {
3668
3616
  super(...arguments);
3669
- this.filter$ = this.instance$.pipe(switchMap$1(x => x.filter$));
3617
+ this.filter$ = this.instance$.pipe(switchMap((x) => x.filter$));
3670
3618
  }
3671
3619
  get key() {
3672
3620
  return this._key.value;
@@ -3675,21 +3623,17 @@ class DbxFilterMapSourceDirective extends AbstractDbxFilterMapInstanceDirective
3675
3623
  this._key.next(key);
3676
3624
  }
3677
3625
  initWithFilter(filterObs) {
3678
- this.instance$.pipe(first$1()).subscribe((x) => x.initWithFilter(filterObs));
3626
+ this.instance$.pipe(first()).subscribe((x) => x.initWithFilter(filterObs));
3679
3627
  }
3680
3628
  }
3681
3629
  DbxFilterMapSourceDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxFilterMapSourceDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
3682
- DbxFilterMapSourceDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: DbxFilterMapSourceDirective, selector: "[dbxFilterMapSource]", inputs: { key: ["dbxFilterMapSource", "key"] }, providers: [
3683
- ...ProvideFilterSource(DbxFilterMapSourceDirective)
3684
- ], exportAs: ["dbxFilterMapSource"], usesInheritance: true, ngImport: i0 });
3630
+ 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 });
3685
3631
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxFilterMapSourceDirective, decorators: [{
3686
3632
  type: Directive,
3687
3633
  args: [{
3688
3634
  selector: '[dbxFilterMapSource]',
3689
3635
  exportAs: 'dbxFilterMapSource',
3690
- providers: [
3691
- ...ProvideFilterSource(DbxFilterMapSourceDirective)
3692
- ]
3636
+ providers: [...provideFilterSource(DbxFilterMapSourceDirective)]
3693
3637
  }]
3694
3638
  }], propDecorators: { key: [{
3695
3639
  type: Input,
@@ -3708,23 +3652,17 @@ class DbxFilterMapSourceConnectorDirective extends DbxFilterMapSourceDirective {
3708
3652
  }
3709
3653
  // MARK: FilterSourceConnector
3710
3654
  connectWithSource(filterSource) {
3711
- this.instance$.pipe(first$1()).subscribe((x) => x.connectWithSource(filterSource));
3655
+ this.instance$.pipe(first()).subscribe((x) => x.connectWithSource(filterSource));
3712
3656
  }
3713
3657
  }
3714
3658
  DbxFilterMapSourceConnectorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxFilterMapSourceConnectorDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
3715
- DbxFilterMapSourceConnectorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: DbxFilterMapSourceConnectorDirective, selector: "[dbxFilterMapSourceConnector]", inputs: { key: ["dbxFilterMapSourceConnector", "key"] }, providers: [
3716
- ...ProvideFilterSource(DbxFilterMapSourceConnectorDirective),
3717
- ...ProvideFilterSourceConnector(DbxFilterMapSourceConnectorDirective)
3718
- ], exportAs: ["dbxFilterMapSourceConnector"], usesInheritance: true, ngImport: i0 });
3659
+ 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 });
3719
3660
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxFilterMapSourceConnectorDirective, decorators: [{
3720
3661
  type: Directive,
3721
3662
  args: [{
3722
3663
  selector: '[dbxFilterMapSourceConnector]',
3723
3664
  exportAs: 'dbxFilterMapSourceConnector',
3724
- providers: [
3725
- ...ProvideFilterSource(DbxFilterMapSourceConnectorDirective),
3726
- ...ProvideFilterSourceConnector(DbxFilterMapSourceConnectorDirective)
3727
- ]
3665
+ providers: [...provideFilterSource(DbxFilterMapSourceConnectorDirective), ...provideFilterSourceConnector(DbxFilterMapSourceConnectorDirective)]
3728
3666
  }]
3729
3667
  }], propDecorators: { key: [{
3730
3668
  type: Input,
@@ -3759,50 +3697,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
3759
3697
  class DbxFilterSourceDirective extends AbstractFilterSourceDirective {
3760
3698
  }
3761
3699
  DbxFilterSourceDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxFilterSourceDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
3762
- DbxFilterSourceDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: DbxFilterSourceDirective, selector: "[dbxFilterSource]", providers: ProvideFilterSource(DbxFilterSourceDirective), usesInheritance: true, ngImport: i0 });
3700
+ DbxFilterSourceDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: DbxFilterSourceDirective, selector: "[dbxFilterSource]", providers: provideFilterSource(DbxFilterSourceDirective), usesInheritance: true, ngImport: i0 });
3763
3701
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxFilterSourceDirective, decorators: [{
3764
3702
  type: Directive,
3765
3703
  args: [{
3766
3704
  selector: '[dbxFilterSource]',
3767
- providers: ProvideFilterSource(DbxFilterSourceDirective)
3705
+ providers: provideFilterSource(DbxFilterSourceDirective)
3768
3706
  }]
3769
3707
  }] });
3770
3708
 
3771
3709
  class DbxCoreFilterModule {
3772
3710
  }
3773
3711
  DbxCoreFilterModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxCoreFilterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3774
- DbxCoreFilterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxCoreFilterModule, declarations: [DbxFilterSourceDirective,
3775
- DbxFilterSourceConnectorDirective,
3776
- DbxFilterMapDirective,
3777
- DbxFilterMapSourceConnectorDirective,
3778
- DbxFilterMapSourceDirective], imports: [CommonModule], exports: [DbxFilterSourceDirective,
3779
- DbxFilterSourceConnectorDirective,
3780
- DbxFilterMapDirective,
3781
- DbxFilterMapSourceConnectorDirective,
3782
- DbxFilterMapSourceDirective] });
3783
- DbxCoreFilterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxCoreFilterModule, imports: [[
3784
- CommonModule
3785
- ]] });
3712
+ 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] });
3713
+ DbxCoreFilterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxCoreFilterModule, imports: [[CommonModule]] });
3786
3714
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxCoreFilterModule, decorators: [{
3787
3715
  type: NgModule,
3788
3716
  args: [{
3789
- imports: [
3790
- CommonModule
3791
- ],
3792
- declarations: [
3793
- DbxFilterSourceDirective,
3794
- DbxFilterSourceConnectorDirective,
3795
- DbxFilterMapDirective,
3796
- DbxFilterMapSourceConnectorDirective,
3797
- DbxFilterMapSourceDirective,
3798
- ],
3799
- exports: [
3800
- DbxFilterSourceDirective,
3801
- DbxFilterSourceConnectorDirective,
3802
- DbxFilterMapDirective,
3803
- DbxFilterMapSourceConnectorDirective,
3804
- DbxFilterMapSourceDirective,
3805
- ]
3717
+ imports: [CommonModule],
3718
+ declarations: [DbxFilterSourceDirective, DbxFilterSourceConnectorDirective, DbxFilterMapDirective, DbxFilterMapSourceConnectorDirective, DbxFilterMapSourceDirective],
3719
+ exports: [DbxFilterSourceDirective, DbxFilterSourceConnectorDirective, DbxFilterMapDirective, DbxFilterMapSourceConnectorDirective, DbxFilterMapSourceDirective]
3806
3720
  }]
3807
3721
  }] });
3808
3722
 
@@ -3814,7 +3728,7 @@ const DBX_INJECTION_COMPONENT_DATA = new InjectionToken('DbxInjectionComponentCo
3814
3728
  * @returns
3815
3729
  */
3816
3730
  function mergeDbxInjectionComponentConfigs(configs) {
3817
- const providers = mergeArrays(filterMaybeValues(configs).map(x => x.providers));
3731
+ const providers = mergeArrays(filterMaybeValues(configs).map((x) => x.providers));
3818
3732
  const result = mergeObjects(configs);
3819
3733
  result.providers = providers;
3820
3734
  return result;
@@ -3895,13 +3809,15 @@ class DbxInjectionInstance {
3895
3809
  const { init, injector: inputInjector, providers, ngModuleRef, componentClass, data } = config;
3896
3810
  let injector;
3897
3811
  const parentInjector = inputInjector !== null && inputInjector !== void 0 ? inputInjector : this._injector;
3898
- if (Boolean(providers || data)) {
3812
+ if (providers || data) {
3899
3813
  injector = Injector.create({
3900
3814
  parent: parentInjector,
3901
- providers: mergeArrayOrValueIntoArray([{
3815
+ providers: mergeArrayOrValueIntoArray([
3816
+ {
3902
3817
  provide: DBX_INJECTION_COMPONENT_DATA,
3903
3818
  useValue: data
3904
- }], providers !== null && providers !== void 0 ? providers : [])
3819
+ }
3820
+ ], providers !== null && providers !== void 0 ? providers : [])
3905
3821
  });
3906
3822
  }
3907
3823
  const componentRef = content.createComponent(componentClass, { injector, ngModuleRef });
@@ -3975,12 +3891,16 @@ class DbxInjectionComponent extends AbstractDbxInjectionDirective {
3975
3891
  }
3976
3892
  }
3977
3893
  DbxInjectionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxInjectionComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
3978
- 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 });
3894
+ 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: `
3895
+ <ng-template #content></ng-template>
3896
+ `, isInline: true });
3979
3897
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxInjectionComponent, decorators: [{
3980
3898
  type: Component,
3981
3899
  args: [{
3982
3900
  selector: 'dbx-injection, [dbxInjection], [dbx-injection]',
3983
- template: `<ng-template #content></ng-template>`
3901
+ template: `
3902
+ <ng-template #content></ng-template>
3903
+ `
3984
3904
  }]
3985
3905
  }], propDecorators: { config: [{
3986
3906
  type: Input
@@ -4002,11 +3922,13 @@ class DbxInjectionContext {
4002
3922
  /**
4003
3923
  * Allows a directive to provide a formly context and form.
4004
3924
  */
4005
- function ProvideDbxInjectionContext(type) {
4006
- return [{
3925
+ function provideDbxInjectionContext(type) {
3926
+ return [
3927
+ {
4007
3928
  provide: DbxInjectionContext,
4008
3929
  useExisting: type
4009
- }];
3930
+ }
3931
+ ];
4010
3932
  }
4011
3933
 
4012
3934
  /**
@@ -4117,12 +4039,12 @@ class DbxInjectionContextDirective {
4117
4039
  }
4118
4040
  }
4119
4041
  DbxInjectionContextDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxInjectionContextDirective, deps: [{ token: i0.Injector }, { token: i0.TemplateRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
4120
- DbxInjectionContextDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: DbxInjectionContextDirective, selector: "[dbxInjectionContext]", inputs: { config: "config" }, providers: ProvideDbxInjectionContext(DbxInjectionContextDirective), ngImport: i0 });
4042
+ DbxInjectionContextDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: DbxInjectionContextDirective, selector: "[dbxInjectionContext]", inputs: { config: "config" }, providers: provideDbxInjectionContext(DbxInjectionContextDirective), ngImport: i0 });
4121
4043
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxInjectionContextDirective, decorators: [{
4122
4044
  type: Directive,
4123
4045
  args: [{
4124
4046
  selector: '[dbxInjectionContext]',
4125
- providers: ProvideDbxInjectionContext(DbxInjectionContextDirective)
4047
+ providers: provideDbxInjectionContext(DbxInjectionContextDirective)
4126
4048
  }]
4127
4049
  }], ctorParameters: function () { return [{ type: i0.Injector }, { type: i0.TemplateRef }, { type: i0.ViewContainerRef }]; }, propDecorators: { config: [{
4128
4050
  type: Input
@@ -4131,26 +4053,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
4131
4053
  class DbxInjectionComponentModule {
4132
4054
  }
4133
4055
  DbxInjectionComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxInjectionComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4134
- DbxInjectionComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxInjectionComponentModule, declarations: [DbxInjectionComponent,
4135
- DbxInjectionContextDirective], imports: [CommonModule], exports: [DbxInjectionComponent,
4136
- DbxInjectionContextDirective] });
4137
- DbxInjectionComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxInjectionComponentModule, imports: [[
4138
- CommonModule
4139
- ]] });
4056
+ DbxInjectionComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxInjectionComponentModule, declarations: [DbxInjectionComponent, DbxInjectionContextDirective], imports: [CommonModule], exports: [DbxInjectionComponent, DbxInjectionContextDirective] });
4057
+ DbxInjectionComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxInjectionComponentModule, imports: [[CommonModule]] });
4140
4058
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: DbxInjectionComponentModule, decorators: [{
4141
4059
  type: NgModule,
4142
4060
  args: [{
4143
- imports: [
4144
- CommonModule
4145
- ],
4146
- declarations: [
4147
- DbxInjectionComponent,
4148
- DbxInjectionContextDirective
4149
- ],
4150
- exports: [
4151
- DbxInjectionComponent,
4152
- DbxInjectionContextDirective
4153
- ],
4061
+ imports: [CommonModule],
4062
+ declarations: [DbxInjectionComponent, DbxInjectionContextDirective],
4063
+ exports: [DbxInjectionComponent, DbxInjectionContextDirective]
4154
4064
  }]
4155
4065
  }] });
4156
4066
 
@@ -4208,7 +4118,7 @@ class LockSetComponentStore extends ComponentStore {
4208
4118
  }
4209
4119
  }
4210
4120
  setParentLockSet(obs) {
4211
- this.lockSet.setParentLockSet(asObservable(obs).pipe(map$1(x => x === null || x === void 0 ? void 0 : x.lockSet)));
4121
+ this.lockSet.setParentLockSet(asObservable(obs).pipe(map((x) => x === null || x === void 0 ? void 0 : x.lockSet)));
4212
4122
  }
4213
4123
  addLock(key, obs) {
4214
4124
  this.lockSet.addLock(key, obs);
@@ -4220,7 +4130,7 @@ class LockSetComponentStore extends ComponentStore {
4220
4130
  fn: () => {
4221
4131
  this._destroyNow();
4222
4132
  },
4223
- timeout: this.lockSetDestroyTimeoutMs,
4133
+ timeout: this.lockSetDestroyTimeoutMs
4224
4134
  }, this.lockSetDestroyDelayMs);
4225
4135
  }
4226
4136
  /**
@@ -4325,7 +4235,8 @@ class SimpleStorageAccessor {
4325
4235
  }
4326
4236
  all() {
4327
4237
  return this._delegate.all(this._config.fullPrefix).pipe(map((allStoredData) => {
4328
- return allStoredData.map((storedData) => {
4238
+ return allStoredData
4239
+ .map((storedData) => {
4329
4240
  const readStoredData = this.readStoredData(storedData);
4330
4241
  if (!readStoredData.expired) {
4331
4242
  return readStoredData.convertedData;
@@ -4333,11 +4244,12 @@ class SimpleStorageAccessor {
4333
4244
  else {
4334
4245
  return null;
4335
4246
  }
4336
- }).filter(filterMaybeValuesFn);
4247
+ })
4248
+ .filter(filterMaybeValuesFn);
4337
4249
  }));
4338
4250
  }
4339
4251
  allKeys() {
4340
- return this._delegate.allKeys(this._config.fullPrefix).pipe(map((keys) => keys.map(x => this.decodeStorageKey(x))));
4252
+ return this._delegate.allKeys(this._config.fullPrefix).pipe(map((keys) => keys.map((x) => this.decodeStorageKey(x))));
4341
4253
  }
4342
4254
  clear() {
4343
4255
  return this._delegate.clear();
@@ -4432,7 +4344,7 @@ class StringStorageAccessor {
4432
4344
  });
4433
4345
  }
4434
4346
  all() {
4435
- return this.allKeys().pipe(map(x => x.map(y => this._storage.getItem(y))), shareReplay(1));
4347
+ return this.allKeys().pipe(map((x) => filterMaybeValues(x.map((y) => this._storage.getItem(y)))), shareReplay(1));
4436
4348
  }
4437
4349
  allKeys() {
4438
4350
  return new Observable((x) => {
@@ -4531,7 +4443,7 @@ class FullLocalStorageObject {
4531
4443
  }
4532
4444
  removeAll() {
4533
4445
  const keys = StorageObjectUtility.allKeysFromStorageObject(this);
4534
- keys.forEach(x => this.removeItem(x));
4446
+ keys.forEach((x) => this.removeItem(x));
4535
4447
  return keys;
4536
4448
  }
4537
4449
  }
@@ -4562,16 +4474,20 @@ class DbxStorageModule {
4562
4474
  static forRoot() {
4563
4475
  return {
4564
4476
  ngModule: DbxStorageModule,
4565
- providers: [{
4477
+ providers: [
4478
+ {
4566
4479
  provide: DEFAULT_STORAGE_OBJECT_TOKEN,
4567
4480
  useFactory: defaultStorageObjectFactory
4568
- }, {
4481
+ },
4482
+ {
4569
4483
  provide: DEFAULT_STORAGE_ACCESSOR_FACTORY_TOKEN,
4570
4484
  useClass: SimpleStorageAccessorFactory
4571
- }, {
4485
+ },
4486
+ {
4572
4487
  provide: SimpleStorageAccessorFactory,
4573
4488
  useExisting: DEFAULT_STORAGE_ACCESSOR_FACTORY_TOKEN
4574
- }]
4489
+ }
4490
+ ]
4575
4491
  };
4576
4492
  }
4577
4493
  }
@@ -4586,5 +4502,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
4586
4502
  * Generated bundle index. Do not edit.
4587
4503
  */
4588
4504
 
4589
- export { APP_ACTION_DISABLED_DIRECTIVE_KEY, APP_ACTION_ENFORCE_MODIFIED_DIRECTIVE_KEY, AbstractActionFilterSourceDirective, AbstractDbxActionValueOnTriggerDirective, AbstractDbxAnchorDirective, AbstractDbxButtonDirective, AbstractDbxFilterMapInstanceDirective, AbstractDbxInjectionDirective, AbstractFilterSourceConnectorDirective, AbstractFilterSourceDirective, AbstractForwardDbxInjectionContextDirective, AbstractIfDirective, AbstractLockSetSubscriptionDirective, AbstractSubscriptionDirective, AbstractTransitionDirective, AbstractTransitionWatcherDirective, ActionContextStore, ActionContextStoreSource, ActionContextStoreSourceMap, AnchorType, DBX_APP_APP_CONTEXT_STATE, DBX_APP_AUTH_ROUTER_EFFECTS_TOKEN, DBX_AUTH_APP_CONTEXT_STATE, DBX_INIT_APP_CONTEXT_STATE, DBX_INJECTION_COMPONENT_DATA, DBX_KNOWN_APP_CONTEXT_STATES, DBX_ONBOARDING_APP_CONTEXT_STATE, DBX_PUBLIC_APP_CONTEXT_STATE, DEFAULT_ACTION_DISABLED_KEY, DEFAULT_ACTION_MAP_WORKING_DISABLED_KEY, DEFAULT_STORAGE_ACCESSOR_FACTORY_TOKEN, DEFAULT_STORAGE_OBJECT_TOKEN, DateDistancePipe, DateFormatDistancePipe, DateFromToTimePipe, DbxActionAutoModifyDirective, DbxActionAutoTriggerDirective, DbxActionButtonDirective, DbxActionButtonTriggerDirective, DbxActionContextBaseSource, DbxActionContextLoggerDirective, DbxActionContextMachine, DbxActionContextMapDirective, DbxActionContextMapDirectiveSourceInstance, DbxActionContextStoreSourceInstance, DbxActionDirective, DbxActionDisabledDirective, DbxActionEnforceModifiedDirective, DbxActionFromMapDirective, DbxActionHandlerDirective, DbxActionHasSuccessDirective, DbxActionIsWorkingDirective, DbxActionMapSourceDirective, DbxActionMapWorkingDisableDirective, DbxActionSourceDirective, DbxActionState, DbxActionSuccessHandlerDirective, DbxActionValueDirective, DbxActionValueOnTriggerInstance, DbxActionValueTriggerDirective, DbxActionWorkInstanceDelegate, DbxAnchor, DbxAngularRouterService, DbxAppAuthRouterEffects, DbxAppAuthRouterModule, DbxAppAuthRouterService, DbxAppAuthRouterStateModule, DbxAppAuthRoutes, DbxAppAuthStateModule, DbxAppAuthStateService, DbxAppContextService, DbxAppContextStateDirective, DbxAppContextStateModule, DbxAuthHasAnyRoleDirective, DbxAuthHasRolesDirective, DbxAuthService, DbxButton, DbxButtonDirective, DbxButtonSegueDirective, DbxCoreActionModule, DbxCoreAngularRouterSegueModule, DbxCoreAuthModule, DbxCoreButtonModule, DbxCoreFilterModule, DbxCoreUIRouterSegueModule, DbxDatePipeModule, DbxFilterMapDirective, DbxFilterMapSourceConnectorDirective, DbxFilterMapSourceDirective, DbxFilterSourceConnectorDirective, DbxFilterSourceDirective, DbxInjectionComponent, DbxInjectionComponentModule, DbxInjectionContext, DbxInjectionContextDirective, DbxInjectionInstance, DbxLoadingButtonDirective, DbxMiscPipeModule, DbxPipesModule, DbxRouterService, DbxRouterTransitionEventType, DbxRouterTransitionService, DbxStorageModule, DbxUIRouterService, FullLocalStorageObject, InstantStorageAccessor, LimitedStorageAccessor, LockSetComponentStore, MemoryStorageObject, MinutesStringPipe, NO_AUTH_USER_IDENTIFIER, PrettyJsonPipe, ProvideActionStoreSource, ProvideDbxAnchor, ProvideDbxButton, ProvideDbxInjectionContext, ProvideFilterSource, ProvideFilterSourceConnector, ProvideSecondaryActionStoreSource, SecondaryActionContextStoreSource, SimpleStorageAccessor, SimpleStorageAccessorFactory, StorageAccessor, StringStorageAccessor, StringifySimpleStorageAccessorConverter, TimeDistanceCountdownPipe, TimeDistancePipe, ToJsDatePipe, ToMinutesPipe, WrapperSimpleStorageAccessorDelegate, actionContextHasNoErrorAndIsModifiedAndCanTrigger, actionContextIsModifiedAndCanTrigger, actionContextStoreSourceInstanceFactory, actionContextStoreSourcePipe, anchorTypeForAnchor, asSegueRef, authRolesSetContainsAllRolesFrom, authRolesSetContainsAnyRoleFrom, authUserIdentifier, canReadyValue, canTriggerAction, canTriggerActionState, checkNgContentWrapperHasContent, dbxActionValueStreamDirective, defaultStorageObjectFactory, enableHasAuthRoleHook, enableHasAuthStateHook, enableIsLoggedInHook, expandClickableAnchorLinkTree, expandClickableAnchorLinkTreeNode, expandClickableAnchorLinkTrees, filterTransitionEvent, filterTransitionSuccess, flattenExpandedClickableAnchorLinkTree, flattenExpandedClickableAnchorLinkTreeToLinks, index as fromDbxAppAuth, index$2 as fromDbxAppContext, goWithRouter, isActionContextDisabled, isActionContextEnabled, isDisabledActionContextState, isIdleActionState, isSegueRef, isWorkingActionState, loadingStateForActionContextState, loadingStateTypeForActionContextState, loadingStateTypeForActionState, loggedInObsFromIsLoggedIn, loggedOutObsFromIsLoggedIn, makeAuthTransitionHook, makeDbxActionContextSourceReference, mapRefStringObsToSegueRefObs, mergeDbxInjectionComponentConfigs, index$1 as onDbxAppAuth, index$3 as onDbxAppContext, pipeActionStore, readSegueRefString, redirectBasedOnAuthUserState, refStringToSegueRef, safeDetectChanges, safeMarkForCheck, safeUseCdRef, successTransition, tapDetectChanges, useActionStore };
4505
+ export { APP_ACTION_DISABLED_DIRECTIVE_KEY, APP_ACTION_ENFORCE_MODIFIED_DIRECTIVE_KEY, AbstractActionFilterSourceDirective, AbstractDbxActionValueOnTriggerDirective, AbstractDbxAnchorDirective, AbstractDbxButtonDirective, AbstractDbxFilterMapInstanceDirective, AbstractDbxInjectionDirective, AbstractFilterSourceConnectorDirective, AbstractFilterSourceDirective, AbstractForwardDbxInjectionContextDirective, AbstractIfDirective, AbstractLockSetSubscriptionDirective, AbstractSubscriptionDirective, AbstractTransitionDirective, AbstractTransitionWatcherDirective, ActionContextStore, ActionContextStoreSource, ActionContextStoreSourceMap, AnchorType, DBX_APP_APP_CONTEXT_STATE, DBX_APP_AUTH_ROUTER_EFFECTS_TOKEN, DBX_AUTH_APP_CONTEXT_STATE, DBX_INIT_APP_CONTEXT_STATE, DBX_INJECTION_COMPONENT_DATA, DBX_KNOWN_APP_CONTEXT_STATES, DBX_ONBOARDING_APP_CONTEXT_STATE, DBX_PUBLIC_APP_CONTEXT_STATE, DEFAULT_ACTION_DISABLED_KEY, DEFAULT_ACTION_MAP_WORKING_DISABLED_KEY, DEFAULT_STORAGE_ACCESSOR_FACTORY_TOKEN, DEFAULT_STORAGE_OBJECT_TOKEN, DateDistancePipe, DateFormatDistancePipe, DateFromToTimePipe, DbxActionAutoModifyDirective, DbxActionAutoTriggerDirective, DbxActionButtonDirective, DbxActionButtonTriggerDirective, DbxActionContextBaseSource, DbxActionContextLoggerDirective, DbxActionContextMachine, DbxActionContextMapDirective, DbxActionContextMapDirectiveSourceInstance, DbxActionContextStoreSourceInstance, DbxActionDirective, DbxActionDisabledDirective, DbxActionEnforceModifiedDirective, DbxActionFromMapDirective, DbxActionHandlerDirective, DbxActionHasSuccessDirective, DbxActionIsWorkingDirective, DbxActionMapSourceDirective, DbxActionMapWorkingDisableDirective, DbxActionSourceDirective, DbxActionState, DbxActionSuccessHandlerDirective, DbxActionValueDirective, DbxActionValueOnTriggerInstance, DbxActionValueTriggerDirective, DbxActionWorkInstanceDelegate, DbxAnchor, DbxAngularRouterService, DbxAppAuthRouterEffects, DbxAppAuthRouterModule, DbxAppAuthRouterService, DbxAppAuthRouterStateModule, DbxAppAuthRoutes, DbxAppAuthStateModule, DbxAppAuthStateService, DbxAppContextService, DbxAppContextStateDirective, DbxAppContextStateModule, DbxAuthHasAnyRoleDirective, DbxAuthHasRolesDirective, DbxAuthService, DbxButton, DbxButtonDirective, DbxButtonSegueDirective, DbxCoreActionModule, DbxCoreAngularRouterSegueModule, DbxCoreAuthModule, DbxCoreButtonModule, DbxCoreFilterModule, DbxCoreUIRouterSegueModule, DbxDatePipeModule, DbxFilterMapDirective, DbxFilterMapSourceConnectorDirective, DbxFilterMapSourceDirective, DbxFilterSourceConnectorDirective, DbxFilterSourceDirective, DbxInjectionComponent, DbxInjectionComponentModule, DbxInjectionContext, DbxInjectionContextDirective, DbxInjectionInstance, DbxLoadingButtonDirective, DbxMiscPipeModule, DbxPipesModule, DbxRouterService, DbxRouterTransitionEventType, DbxRouterTransitionService, DbxStorageModule, DbxUIRouterService, FullLocalStorageObject, InstantStorageAccessor, LimitedStorageAccessor, LockSetComponentStore, MemoryStorageObject, MinutesStringPipe, NO_AUTH_USER_IDENTIFIER, PrettyJsonPipe, SecondaryActionContextStoreSource, SimpleStorageAccessor, SimpleStorageAccessorFactory, StorageAccessor, StringStorageAccessor, StringifySimpleStorageAccessorConverter, TimeDistanceCountdownPipe, TimeDistancePipe, ToJsDatePipe, ToMinutesPipe, WrapperSimpleStorageAccessorDelegate, actionContextHasNoErrorAndIsModifiedAndCanTrigger, actionContextIsModifiedAndCanTrigger, actionContextStoreSourceInstanceFactory, actionContextStoreSourcePipe, anchorTypeForAnchor, asSegueRef, asSegueRefString, authRolesSetContainsAllRolesFrom, authRolesSetContainsAnyRoleFrom, authUserIdentifier, canReadyValue, canTriggerAction, canTriggerActionState, checkNgContentWrapperHasContent, dbxActionValueStreamDirective, defaultStorageObjectFactory, enableHasAuthRoleHook, enableHasAuthStateHook, enableIsLoggedInHook, expandClickableAnchorLinkTree, expandClickableAnchorLinkTreeNode, expandClickableAnchorLinkTrees, filterTransitionEvent, filterTransitionSuccess, flattenExpandedClickableAnchorLinkTree, flattenExpandedClickableAnchorLinkTreeToLinks, index as fromDbxAppAuth, index$2 as fromDbxAppContext, goWithRouter, isActionContextDisabled, isActionContextEnabled, isDisabledActionContextState, isIdleActionState, isSegueRef, isWorkingActionState, loadingStateForActionContextState, loadingStateTypeForActionContextState, loadingStateTypeForActionState, loggedInObsFromIsLoggedIn, loggedOutObsFromIsLoggedIn, makeAuthTransitionHook, makeDbxActionContextSourceReference, mapRefStringObsToSegueRefObs, mergeDbxInjectionComponentConfigs, index$1 as onDbxAppAuth, index$3 as onDbxAppContext, pipeActionStore, provideActionStoreSource, provideDbxAnchor, provideDbxButton, provideDbxInjectionContext, provideFilterSource, provideFilterSourceConnector, provideSecondaryActionStoreSource, redirectBasedOnAuthUserState, refStringToSegueRef, safeDetectChanges, safeMarkForCheck, safeUseCdRef, successTransition, tapDetectChanges, useActionStore };
4590
4506
  //# sourceMappingURL=dereekb-dbx-core.mjs.map