@dereekb/dbx-core 12.6.21 → 13.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (451) hide show
  1. package/fesm2022/dereekb-dbx-core.mjs +920 -1176
  2. package/fesm2022/dereekb-dbx-core.mjs.map +1 -1
  3. package/package.json +16 -18
  4. package/types/dereekb-dbx-core.d.ts +3633 -0
  5. package/esm2022/dereekb-dbx-core.mjs +0 -5
  6. package/esm2022/index.mjs +0 -2
  7. package/esm2022/lib/action/action.handler.mjs +0 -22
  8. package/esm2022/lib/action/action.holder.mjs +0 -76
  9. package/esm2022/lib/action/action.machine.mjs +0 -72
  10. package/esm2022/lib/action/action.mjs +0 -95
  11. package/esm2022/lib/action/action.module.mjs +0 -85
  12. package/esm2022/lib/action/action.reference.mjs +0 -7
  13. package/esm2022/lib/action/action.store.mjs +0 -286
  14. package/esm2022/lib/action/action.store.source.mjs +0 -162
  15. package/esm2022/lib/action/action.store.source.provide.mjs +0 -41
  16. package/esm2022/lib/action/directive/auto/action.automodify.directive.mjs +0 -36
  17. package/esm2022/lib/action/directive/auto/action.autotrigger.directive.mjs +0 -113
  18. package/esm2022/lib/action/directive/auto/index.mjs +0 -3
  19. package/esm2022/lib/action/directive/context/action.directive.mjs +0 -30
  20. package/esm2022/lib/action/directive/context/action.source.directive.mjs +0 -25
  21. package/esm2022/lib/action/directive/context/index.mjs +0 -3
  22. package/esm2022/lib/action/directive/debug/action.logger.directive.mjs +0 -25
  23. package/esm2022/lib/action/directive/debug/index.mjs +0 -2
  24. package/esm2022/lib/action/directive/index.mjs +0 -6
  25. package/esm2022/lib/action/directive/map/action.map.directive.mjs +0 -36
  26. package/esm2022/lib/action/directive/map/action.map.key.directive.mjs +0 -27
  27. package/esm2022/lib/action/directive/map/action.map.mjs +0 -59
  28. package/esm2022/lib/action/directive/map/action.map.source.directive.mjs +0 -44
  29. package/esm2022/lib/action/directive/map/action.map.utility.mjs +0 -37
  30. package/esm2022/lib/action/directive/map/action.map.working.disable.directive.mjs +0 -35
  31. package/esm2022/lib/action/directive/map/index.mjs +0 -7
  32. package/esm2022/lib/action/directive/state/action.disabled.directive.mjs +0 -34
  33. package/esm2022/lib/action/directive/state/action.disableonsuccess.directive.mjs +0 -35
  34. package/esm2022/lib/action/directive/state/action.enforce.modified.directive.mjs +0 -37
  35. package/esm2022/lib/action/directive/state/action.error.handler.directive.mjs +0 -32
  36. package/esm2022/lib/action/directive/state/action.handler.directive.mjs +0 -59
  37. package/esm2022/lib/action/directive/state/action.handler.instance.mjs +0 -61
  38. package/esm2022/lib/action/directive/state/action.idle.directive.mjs +0 -34
  39. package/esm2022/lib/action/directive/state/action.presuccess.directive.mjs +0 -34
  40. package/esm2022/lib/action/directive/state/action.success.directive.mjs +0 -34
  41. package/esm2022/lib/action/directive/state/action.success.handler.directive.mjs +0 -32
  42. package/esm2022/lib/action/directive/state/action.triggered.directive.mjs +0 -34
  43. package/esm2022/lib/action/directive/state/action.value.directive.mjs +0 -51
  44. package/esm2022/lib/action/directive/state/action.value.stream.directive.mjs +0 -60
  45. package/esm2022/lib/action/directive/state/action.value.trigger.directive.mjs +0 -76
  46. package/esm2022/lib/action/directive/state/action.value.trigger.instance.mjs +0 -59
  47. package/esm2022/lib/action/directive/state/action.working.directive.mjs +0 -41
  48. package/esm2022/lib/action/directive/state/index.mjs +0 -17
  49. package/esm2022/lib/action/index.mjs +0 -11
  50. package/esm2022/lib/auth/auth.module.mjs +0 -25
  51. package/esm2022/lib/auth/auth.providers.mjs +0 -16
  52. package/esm2022/lib/auth/auth.role.any.directive.mjs +0 -24
  53. package/esm2022/lib/auth/auth.role.has.directive.mjs +0 -24
  54. package/esm2022/lib/auth/auth.role.not.directive.mjs +0 -24
  55. package/esm2022/lib/auth/auth.state.providers.mjs +0 -14
  56. package/esm2022/lib/auth/auth.state.service.mjs +0 -20
  57. package/esm2022/lib/auth/auth.user.mjs +0 -11
  58. package/esm2022/lib/auth/index.mjs +0 -12
  59. package/esm2022/lib/auth/router/auth.router.mjs +0 -6
  60. package/esm2022/lib/auth/router/auth.router.providers.mjs +0 -19
  61. package/esm2022/lib/auth/router/auth.router.service.mjs +0 -73
  62. package/esm2022/lib/auth/router/index.mjs +0 -6
  63. package/esm2022/lib/auth/router/provider/uirouter/auth.hook.mjs +0 -23
  64. package/esm2022/lib/auth/router/provider/uirouter/hook.mjs +0 -71
  65. package/esm2022/lib/auth/router/provider/uirouter/index.mjs +0 -6
  66. package/esm2022/lib/auth/router/provider/uirouter/redirect.mjs +0 -29
  67. package/esm2022/lib/auth/router/provider/uirouter/role.hook.mjs +0 -58
  68. package/esm2022/lib/auth/router/provider/uirouter/state.hook.mjs +0 -53
  69. package/esm2022/lib/auth/router/state/auth.router.state.providers.mjs +0 -23
  70. package/esm2022/lib/auth/router/state/effect/auth.router.state.effect.mjs +0 -37
  71. package/esm2022/lib/auth/router/state/effect/index.mjs +0 -2
  72. package/esm2022/lib/auth/router/state/index.mjs +0 -3
  73. package/esm2022/lib/auth/service/auth.service.mjs +0 -6
  74. package/esm2022/lib/auth/service/auth.service.rxjs.mjs +0 -30
  75. package/esm2022/lib/auth/service/index.mjs +0 -3
  76. package/esm2022/lib/auth/state/action/auth.action.mjs +0 -14
  77. package/esm2022/lib/auth/state/action/index.mjs +0 -12
  78. package/esm2022/lib/auth/state/action/user.action.mjs +0 -18
  79. package/esm2022/lib/auth/state/effect/auth.effect.mjs +0 -33
  80. package/esm2022/lib/auth/state/index.mjs +0 -13
  81. package/esm2022/lib/auth/state/reducer/index.mjs +0 -23
  82. package/esm2022/lib/auth/state/reducer/user.reducer.mjs +0 -12
  83. package/esm2022/lib/auth/state/state.mjs +0 -2
  84. package/esm2022/lib/button/action/action.button.directive.mjs +0 -35
  85. package/esm2022/lib/button/action/action.button.trigger.directive.mjs +0 -30
  86. package/esm2022/lib/button/action/index.mjs +0 -3
  87. package/esm2022/lib/button/button.directive.mjs +0 -120
  88. package/esm2022/lib/button/button.loading.directive.mjs +0 -36
  89. package/esm2022/lib/button/button.mjs +0 -21
  90. package/esm2022/lib/button/button.module.mjs +0 -28
  91. package/esm2022/lib/button/index.mjs +0 -7
  92. package/esm2022/lib/button/router/button.segue.directive.mjs +0 -30
  93. package/esm2022/lib/button/router/index.mjs +0 -2
  94. package/esm2022/lib/context/context.directive.mjs +0 -26
  95. package/esm2022/lib/context/context.mjs +0 -25
  96. package/esm2022/lib/context/context.module.mjs +0 -19
  97. package/esm2022/lib/context/context.providers.mjs +0 -12
  98. package/esm2022/lib/context/context.service.mjs +0 -26
  99. package/esm2022/lib/context/index.mjs +0 -7
  100. package/esm2022/lib/context/state/action/data.action.mjs +0 -10
  101. package/esm2022/lib/context/state/action/index.mjs +0 -7
  102. package/esm2022/lib/context/state/effect/index.mjs +0 -33
  103. package/esm2022/lib/context/state/index.mjs +0 -13
  104. package/esm2022/lib/context/state/reducer/data.reducer.mjs +0 -16
  105. package/esm2022/lib/context/state/reducer/index.mjs +0 -25
  106. package/esm2022/lib/context/state/state.mjs +0 -2
  107. package/esm2022/lib/environment/environment.mjs +0 -6
  108. package/esm2022/lib/environment/environment.providers.mjs +0 -19
  109. package/esm2022/lib/environment/environment.service.mjs +0 -30
  110. package/esm2022/lib/environment/index.mjs +0 -4
  111. package/esm2022/lib/filter/filter.abstract.connector.directive.mjs +0 -23
  112. package/esm2022/lib/filter/filter.abstract.source.directive.mjs +0 -69
  113. package/esm2022/lib/filter/filter.connect.source.directive.mjs +0 -23
  114. package/esm2022/lib/filter/filter.connector.directive.mjs +0 -20
  115. package/esm2022/lib/filter/filter.content.mjs +0 -29
  116. package/esm2022/lib/filter/filter.map.connector.directive.mjs +0 -33
  117. package/esm2022/lib/filter/filter.map.directive.mjs +0 -24
  118. package/esm2022/lib/filter/filter.map.instance.directive.mjs +0 -25
  119. package/esm2022/lib/filter/filter.map.source.directive.mjs +0 -38
  120. package/esm2022/lib/filter/filter.module.mjs +0 -22
  121. package/esm2022/lib/filter/filter.preset.mjs +0 -8
  122. package/esm2022/lib/filter/filter.source.directive.mjs +0 -19
  123. package/esm2022/lib/filter/index.mjs +0 -13
  124. package/esm2022/lib/index.mjs +0 -15
  125. package/esm2022/lib/injection/index.mjs +0 -14
  126. package/esm2022/lib/injection/injection.array.component.mjs +0 -31
  127. package/esm2022/lib/injection/injection.array.mjs +0 -2
  128. package/esm2022/lib/injection/injection.component.mjs +0 -32
  129. package/esm2022/lib/injection/injection.component.module.mjs +0 -26
  130. package/esm2022/lib/injection/injection.context.directive.mjs +0 -130
  131. package/esm2022/lib/injection/injection.context.forward.directive.mjs +0 -25
  132. package/esm2022/lib/injection/injection.context.mjs +0 -20
  133. package/esm2022/lib/injection/injection.directive.mjs +0 -30
  134. package/esm2022/lib/injection/injection.instance.mjs +0 -121
  135. package/esm2022/lib/injection/injection.mjs +0 -16
  136. package/esm2022/lib/injection/injection.rxjs.mjs +0 -24
  137. package/esm2022/lib/injection/injection.util.mjs +0 -11
  138. package/esm2022/lib/injection/injector.mjs +0 -13
  139. package/esm2022/lib/ngrx/index.mjs +0 -2
  140. package/esm2022/lib/ngrx/store.lockset.mjs +0 -66
  141. package/esm2022/lib/pipe/async/asobservable.pipe.mjs +0 -21
  142. package/esm2022/lib/pipe/async/async.pipe.module.mjs +0 -20
  143. package/esm2022/lib/pipe/async/index.mjs +0 -3
  144. package/esm2022/lib/pipe/date/date.pipe.module.mjs +0 -108
  145. package/esm2022/lib/pipe/date/datedayrange.pipe.mjs +0 -24
  146. package/esm2022/lib/pipe/date/datedaytimerange.pipe.mjs +0 -24
  147. package/esm2022/lib/pipe/date/datedistance.pipe.mjs +0 -27
  148. package/esm2022/lib/pipe/date/dateformatdistance.pipe.mjs +0 -36
  149. package/esm2022/lib/pipe/date/datefromtoformat.pipe.mjs +0 -34
  150. package/esm2022/lib/pipe/date/daterangedistance.pipe.mjs +0 -24
  151. package/esm2022/lib/pipe/date/datetimerange.pipe.mjs +0 -24
  152. package/esm2022/lib/pipe/date/datetimerangeonly.pipe.mjs +0 -24
  153. package/esm2022/lib/pipe/date/datetimerangeonlydistance.pipe.mjs +0 -24
  154. package/esm2022/lib/pipe/date/index.mjs +0 -18
  155. package/esm2022/lib/pipe/date/minutesstring.pipe.mjs +0 -36
  156. package/esm2022/lib/pipe/date/systemdatetotargetdate.pipe.mjs +0 -27
  157. package/esm2022/lib/pipe/date/targetdatetosystemdate.pipe.mjs +0 -27
  158. package/esm2022/lib/pipe/date/timedistance.pipe.mjs +0 -57
  159. package/esm2022/lib/pipe/date/timezoneabbreviation.pipe.mjs +0 -27
  160. package/esm2022/lib/pipe/date/tojsdate.pipe.mjs +0 -30
  161. package/esm2022/lib/pipe/date/tominutes.pipe.mjs +0 -21
  162. package/esm2022/lib/pipe/index.mjs +0 -6
  163. package/esm2022/lib/pipe/misc/index.mjs +0 -3
  164. package/esm2022/lib/pipe/misc/misc.pipe.module.mjs +0 -21
  165. package/esm2022/lib/pipe/misc/prettyjson.pipe.mjs +0 -30
  166. package/esm2022/lib/pipe/pipe.module.mjs +0 -25
  167. package/esm2022/lib/pipe/value/cuttext.pipe.mjs +0 -22
  168. package/esm2022/lib/pipe/value/dollar.pipe.mjs +0 -24
  169. package/esm2022/lib/pipe/value/getvalue.pipe.mjs +0 -40
  170. package/esm2022/lib/pipe/value/index.mjs +0 -5
  171. package/esm2022/lib/pipe/value/value.pipe.module.mjs +0 -27
  172. package/esm2022/lib/router/anchor/anchor.directive.mjs +0 -63
  173. package/esm2022/lib/router/anchor/anchor.mjs +0 -52
  174. package/esm2022/lib/router/anchor/clickable.mjs +0 -18
  175. package/esm2022/lib/router/anchor/index.mjs +0 -5
  176. package/esm2022/lib/router/anchor/mousable.mjs +0 -2
  177. package/esm2022/lib/router/auth/hook/id.hook.mjs +0 -54
  178. package/esm2022/lib/router/auth/hook/index.mjs +0 -3
  179. package/esm2022/lib/router/auth/hook/uid.hook.mjs +0 -19
  180. package/esm2022/lib/router/auth/index.mjs +0 -2
  181. package/esm2022/lib/router/index.mjs +0 -6
  182. package/esm2022/lib/router/model/id.param.redirect.mjs +0 -73
  183. package/esm2022/lib/router/model/index.mjs +0 -7
  184. package/esm2022/lib/router/model/model.module.mjs +0 -26
  185. package/esm2022/lib/router/model/model.router.id.directive.mjs +0 -62
  186. package/esm2022/lib/router/model/model.router.key.directive.mjs +0 -63
  187. package/esm2022/lib/router/model/model.router.mjs +0 -38
  188. package/esm2022/lib/router/model/model.router.uid.directive.mjs +0 -25
  189. package/esm2022/lib/router/router/index.mjs +0 -5
  190. package/esm2022/lib/router/router/provider/angular/angular.router.service.mjs +0 -78
  191. package/esm2022/lib/router/router/provider/angular/angular.router.service.module.mjs +0 -31
  192. package/esm2022/lib/router/router/provider/angular/index.mjs +0 -3
  193. package/esm2022/lib/router/router/provider/index.mjs +0 -3
  194. package/esm2022/lib/router/router/provider/uirouter/index.mjs +0 -4
  195. package/esm2022/lib/router/router/provider/uirouter/uirouter.router.service.mjs +0 -95
  196. package/esm2022/lib/router/router/provider/uirouter/uirouter.router.service.module.mjs +0 -34
  197. package/esm2022/lib/router/router/provider/uirouter/uirouter.router.service.providers.mjs +0 -24
  198. package/esm2022/lib/router/router/service/index.mjs +0 -6
  199. package/esm2022/lib/router/router/service/router.go.mjs +0 -14
  200. package/esm2022/lib/router/router/service/router.service.mjs +0 -7
  201. package/esm2022/lib/router/router/service/router.service.rxjs.mjs +0 -39
  202. package/esm2022/lib/router/router/service/router.service.util.mjs +0 -14
  203. package/esm2022/lib/router/router/service/router.transition.service.mjs +0 -6
  204. package/esm2022/lib/router/router/transition/index.mjs +0 -5
  205. package/esm2022/lib/router/router/transition/transition.directive.mjs +0 -19
  206. package/esm2022/lib/router/router/transition/transition.mjs +0 -12
  207. package/esm2022/lib/router/router/transition/transition.rxjs.mjs +0 -55
  208. package/esm2022/lib/router/router/transition/transition.watcher.directive.mjs +0 -31
  209. package/esm2022/lib/router/router/util/index.mjs +0 -3
  210. package/esm2022/lib/router/router/util/route.default.mjs +0 -63
  211. package/esm2022/lib/router/router/util/route.reader.mjs +0 -47
  212. package/esm2022/lib/router/segue.mjs +0 -35
  213. package/esm2022/lib/storage/index.mjs +0 -9
  214. package/esm2022/lib/storage/storage.accessor.mjs +0 -16
  215. package/esm2022/lib/storage/storage.accessor.simple.factory.mjs +0 -26
  216. package/esm2022/lib/storage/storage.accessor.simple.mjs +0 -172
  217. package/esm2022/lib/storage/storage.accessor.string.mjs +0 -50
  218. package/esm2022/lib/storage/storage.di.mjs +0 -4
  219. package/esm2022/lib/storage/storage.object.localstorage.mjs +0 -47
  220. package/esm2022/lib/storage/storage.object.memory.mjs +0 -17
  221. package/esm2022/lib/storage/storage.providers.mjs +0 -41
  222. package/esm2022/lib/subscription/index.mjs +0 -2
  223. package/esm2022/lib/subscription/subscription.directive.mjs +0 -38
  224. package/esm2022/lib/util/index.mjs +0 -3
  225. package/esm2022/lib/util/input.mjs +0 -7
  226. package/esm2022/lib/util/view.mjs +0 -81
  227. package/esm2022/lib/view/if.directive.mjs +0 -27
  228. package/esm2022/lib/view/index.mjs +0 -2
  229. package/index.d.ts +0 -1
  230. package/lib/action/action.d.ts +0 -80
  231. package/lib/action/action.handler.d.ts +0 -15
  232. package/lib/action/action.holder.d.ts +0 -38
  233. package/lib/action/action.machine.d.ts +0 -50
  234. package/lib/action/action.module.d.ts +0 -30
  235. package/lib/action/action.reference.d.ts +0 -11
  236. package/lib/action/action.store.d.ts +0 -208
  237. package/lib/action/action.store.source.d.ts +0 -77
  238. package/lib/action/action.store.source.provide.d.ts +0 -10
  239. package/lib/action/directive/auto/action.automodify.directive.d.ts +0 -13
  240. package/lib/action/directive/auto/action.autotrigger.directive.d.ts +0 -38
  241. package/lib/action/directive/auto/index.d.ts +0 -2
  242. package/lib/action/directive/context/action.directive.d.ts +0 -12
  243. package/lib/action/directive/context/action.source.directive.d.ts +0 -12
  244. package/lib/action/directive/context/index.d.ts +0 -2
  245. package/lib/action/directive/debug/action.logger.directive.d.ts +0 -13
  246. package/lib/action/directive/debug/index.d.ts +0 -1
  247. package/lib/action/directive/index.d.ts +0 -5
  248. package/lib/action/directive/map/action.map.d.ts +0 -43
  249. package/lib/action/directive/map/action.map.directive.d.ts +0 -14
  250. package/lib/action/directive/map/action.map.key.directive.d.ts +0 -14
  251. package/lib/action/directive/map/action.map.source.directive.d.ts +0 -19
  252. package/lib/action/directive/map/action.map.utility.d.ts +0 -48
  253. package/lib/action/directive/map/action.map.working.disable.directive.d.ts +0 -19
  254. package/lib/action/directive/map/index.d.ts +0 -6
  255. package/lib/action/directive/state/action.disabled.directive.d.ts +0 -18
  256. package/lib/action/directive/state/action.disableonsuccess.directive.d.ts +0 -18
  257. package/lib/action/directive/state/action.enforce.modified.directive.d.ts +0 -18
  258. package/lib/action/directive/state/action.error.handler.directive.d.ts +0 -20
  259. package/lib/action/directive/state/action.handler.directive.d.ts +0 -35
  260. package/lib/action/directive/state/action.handler.instance.d.ts +0 -22
  261. package/lib/action/directive/state/action.idle.directive.d.ts +0 -15
  262. package/lib/action/directive/state/action.presuccess.directive.d.ts +0 -15
  263. package/lib/action/directive/state/action.success.directive.d.ts +0 -16
  264. package/lib/action/directive/state/action.success.handler.directive.d.ts +0 -20
  265. package/lib/action/directive/state/action.triggered.directive.d.ts +0 -15
  266. package/lib/action/directive/state/action.value.directive.d.ts +0 -27
  267. package/lib/action/directive/state/action.value.stream.directive.d.ts +0 -23
  268. package/lib/action/directive/state/action.value.trigger.directive.d.ts +0 -39
  269. package/lib/action/directive/state/action.value.trigger.instance.d.ts +0 -45
  270. package/lib/action/directive/state/action.working.directive.d.ts +0 -17
  271. package/lib/action/directive/state/index.d.ts +0 -16
  272. package/lib/action/index.d.ts +0 -10
  273. package/lib/auth/auth.module.d.ts +0 -16
  274. package/lib/auth/auth.providers.d.ts +0 -12
  275. package/lib/auth/auth.role.any.directive.d.ts +0 -15
  276. package/lib/auth/auth.role.has.directive.d.ts +0 -15
  277. package/lib/auth/auth.role.not.directive.d.ts +0 -15
  278. package/lib/auth/auth.state.providers.d.ts +0 -7
  279. package/lib/auth/auth.state.service.d.ts +0 -11
  280. package/lib/auth/auth.user.d.ts +0 -28
  281. package/lib/auth/index.d.ts +0 -11
  282. package/lib/auth/router/auth.router.d.ts +0 -10
  283. package/lib/auth/router/auth.router.providers.d.ts +0 -18
  284. package/lib/auth/router/auth.router.service.d.ts +0 -46
  285. package/lib/auth/router/index.d.ts +0 -5
  286. package/lib/auth/router/provider/uirouter/auth.hook.d.ts +0 -18
  287. package/lib/auth/router/provider/uirouter/hook.d.ts +0 -51
  288. package/lib/auth/router/provider/uirouter/index.d.ts +0 -5
  289. package/lib/auth/router/provider/uirouter/redirect.d.ts +0 -9
  290. package/lib/auth/router/provider/uirouter/role.hook.d.ts +0 -44
  291. package/lib/auth/router/provider/uirouter/state.hook.d.ts +0 -31
  292. package/lib/auth/router/state/auth.router.state.providers.d.ts +0 -19
  293. package/lib/auth/router/state/effect/auth.router.state.effect.d.ts +0 -28
  294. package/lib/auth/router/state/effect/index.d.ts +0 -1
  295. package/lib/auth/router/state/index.d.ts +0 -2
  296. package/lib/auth/service/auth.service.d.ts +0 -46
  297. package/lib/auth/service/auth.service.rxjs.d.ts +0 -19
  298. package/lib/auth/service/index.d.ts +0 -2
  299. package/lib/auth/state/action/auth.action.d.ts +0 -12
  300. package/lib/auth/state/action/index.d.ts +0 -11
  301. package/lib/auth/state/action/user.action.d.ts +0 -34
  302. package/lib/auth/state/effect/auth.effect.d.ts +0 -28
  303. package/lib/auth/state/index.d.ts +0 -12
  304. package/lib/auth/state/reducer/index.d.ts +0 -29
  305. package/lib/auth/state/reducer/user.reducer.d.ts +0 -11
  306. package/lib/auth/state/state.d.ts +0 -5
  307. package/lib/button/action/action.button.directive.d.ts +0 -14
  308. package/lib/button/action/action.button.trigger.directive.d.ts +0 -16
  309. package/lib/button/action/index.d.ts +0 -2
  310. package/lib/button/button.d.ts +0 -113
  311. package/lib/button/button.directive.d.ts +0 -62
  312. package/lib/button/button.loading.directive.d.ts +0 -18
  313. package/lib/button/button.module.d.ts +0 -19
  314. package/lib/button/index.d.ts +0 -6
  315. package/lib/button/router/button.segue.directive.d.ts +0 -14
  316. package/lib/button/router/index.d.ts +0 -1
  317. package/lib/context/context.d.ts +0 -42
  318. package/lib/context/context.directive.d.ts +0 -13
  319. package/lib/context/context.module.d.ts +0 -10
  320. package/lib/context/context.providers.d.ts +0 -7
  321. package/lib/context/context.service.d.ts +0 -14
  322. package/lib/context/index.d.ts +0 -6
  323. package/lib/context/state/action/data.action.d.ts +0 -13
  324. package/lib/context/state/action/index.d.ts +0 -6
  325. package/lib/context/state/effect/index.d.ts +0 -24
  326. package/lib/context/state/index.d.ts +0 -12
  327. package/lib/context/state/reducer/data.reducer.d.ts +0 -13
  328. package/lib/context/state/reducer/index.d.ts +0 -34
  329. package/lib/context/state/state.d.ts +0 -9
  330. package/lib/environment/environment.d.ts +0 -21
  331. package/lib/environment/environment.providers.d.ts +0 -8
  332. package/lib/environment/environment.service.d.ts +0 -17
  333. package/lib/environment/index.d.ts +0 -3
  334. package/lib/filter/filter.abstract.connector.directive.d.ts +0 -15
  335. package/lib/filter/filter.abstract.source.directive.d.ts +0 -37
  336. package/lib/filter/filter.connect.source.directive.d.ts +0 -13
  337. package/lib/filter/filter.connector.directive.d.ts +0 -9
  338. package/lib/filter/filter.content.d.ts +0 -10
  339. package/lib/filter/filter.map.connector.directive.d.ts +0 -14
  340. package/lib/filter/filter.map.directive.d.ts +0 -12
  341. package/lib/filter/filter.map.instance.directive.d.ts +0 -16
  342. package/lib/filter/filter.map.source.directive.d.ts +0 -23
  343. package/lib/filter/filter.module.d.ts +0 -12
  344. package/lib/filter/filter.preset.d.ts +0 -29
  345. package/lib/filter/filter.source.directive.d.ts +0 -9
  346. package/lib/filter/index.d.ts +0 -12
  347. package/lib/index.d.ts +0 -14
  348. package/lib/injection/index.d.ts +0 -13
  349. package/lib/injection/injection.array.component.d.ts +0 -11
  350. package/lib/injection/injection.array.d.ts +0 -12
  351. package/lib/injection/injection.component.d.ts +0 -19
  352. package/lib/injection/injection.component.module.d.ts +0 -16
  353. package/lib/injection/injection.context.d.ts +0 -39
  354. package/lib/injection/injection.context.directive.d.ts +0 -26
  355. package/lib/injection/injection.context.forward.directive.d.ts +0 -15
  356. package/lib/injection/injection.d.ts +0 -51
  357. package/lib/injection/injection.directive.d.ts +0 -18
  358. package/lib/injection/injection.instance.d.ts +0 -32
  359. package/lib/injection/injection.rxjs.d.ts +0 -10
  360. package/lib/injection/injection.util.d.ts +0 -9
  361. package/lib/injection/injector.d.ts +0 -10
  362. package/lib/ngrx/index.d.ts +0 -1
  363. package/lib/ngrx/store.lockset.d.ts +0 -36
  364. package/lib/pipe/async/asobservable.pipe.d.ts +0 -12
  365. package/lib/pipe/async/async.pipe.module.d.ts +0 -10
  366. package/lib/pipe/async/index.d.ts +0 -2
  367. package/lib/pipe/date/date.pipe.module.d.ts +0 -43
  368. package/lib/pipe/date/datedayrange.pipe.d.ts +0 -9
  369. package/lib/pipe/date/datedaytimerange.pipe.d.ts +0 -9
  370. package/lib/pipe/date/datedistance.pipe.d.ts +0 -8
  371. package/lib/pipe/date/dateformatdistance.pipe.d.ts +0 -12
  372. package/lib/pipe/date/datefromtoformat.pipe.d.ts +0 -13
  373. package/lib/pipe/date/daterangedistance.pipe.d.ts +0 -9
  374. package/lib/pipe/date/datetimerange.pipe.d.ts +0 -9
  375. package/lib/pipe/date/datetimerangeonly.pipe.d.ts +0 -9
  376. package/lib/pipe/date/datetimerangeonlydistance.pipe.d.ts +0 -9
  377. package/lib/pipe/date/index.d.ts +0 -17
  378. package/lib/pipe/date/minutesstring.pipe.d.ts +0 -8
  379. package/lib/pipe/date/systemdatetotargetdate.pipe.d.ts +0 -12
  380. package/lib/pipe/date/targetdatetosystemdate.pipe.d.ts +0 -12
  381. package/lib/pipe/date/timedistance.pipe.d.ts +0 -13
  382. package/lib/pipe/date/timezoneabbreviation.pipe.d.ts +0 -12
  383. package/lib/pipe/date/tojsdate.pipe.d.ts +0 -10
  384. package/lib/pipe/date/tominutes.pipe.d.ts +0 -7
  385. package/lib/pipe/index.d.ts +0 -5
  386. package/lib/pipe/misc/index.d.ts +0 -2
  387. package/lib/pipe/misc/misc.pipe.module.d.ts +0 -12
  388. package/lib/pipe/misc/prettyjson.pipe.d.ts +0 -9
  389. package/lib/pipe/pipe.module.d.ts +0 -15
  390. package/lib/pipe/value/cuttext.pipe.d.ts +0 -11
  391. package/lib/pipe/value/dollar.pipe.d.ts +0 -13
  392. package/lib/pipe/value/getvalue.pipe.d.ts +0 -19
  393. package/lib/pipe/value/index.d.ts +0 -4
  394. package/lib/pipe/value/value.pipe.module.d.ts +0 -17
  395. package/lib/router/anchor/anchor.d.ts +0 -71
  396. package/lib/router/anchor/anchor.directive.d.ts +0 -30
  397. package/lib/router/anchor/clickable.d.ts +0 -20
  398. package/lib/router/anchor/index.d.ts +0 -4
  399. package/lib/router/anchor/mousable.d.ts +0 -9
  400. package/lib/router/auth/hook/id.hook.d.ts +0 -44
  401. package/lib/router/auth/hook/index.d.ts +0 -2
  402. package/lib/router/auth/hook/uid.hook.d.ts +0 -41
  403. package/lib/router/auth/index.d.ts +0 -1
  404. package/lib/router/index.d.ts +0 -5
  405. package/lib/router/model/id.param.redirect.d.ts +0 -51
  406. package/lib/router/model/index.d.ts +0 -6
  407. package/lib/router/model/model.module.d.ts +0 -16
  408. package/lib/router/model/model.router.d.ts +0 -35
  409. package/lib/router/model/model.router.id.directive.d.ts +0 -30
  410. package/lib/router/model/model.router.key.directive.d.ts +0 -32
  411. package/lib/router/model/model.router.uid.directive.d.ts +0 -15
  412. package/lib/router/router/index.d.ts +0 -4
  413. package/lib/router/router/provider/angular/angular.router.service.d.ts +0 -24
  414. package/lib/router/router/provider/angular/angular.router.service.module.d.ts +0 -8
  415. package/lib/router/router/provider/angular/index.d.ts +0 -2
  416. package/lib/router/router/provider/index.d.ts +0 -2
  417. package/lib/router/router/provider/uirouter/index.d.ts +0 -3
  418. package/lib/router/router/provider/uirouter/uirouter.router.service.d.ts +0 -32
  419. package/lib/router/router/provider/uirouter/uirouter.router.service.module.d.ts +0 -11
  420. package/lib/router/router/provider/uirouter/uirouter.router.service.providers.d.ts +0 -7
  421. package/lib/router/router/service/index.d.ts +0 -5
  422. package/lib/router/router/service/router.go.d.ts +0 -14
  423. package/lib/router/router/service/router.service.d.ts +0 -49
  424. package/lib/router/router/service/router.service.rxjs.d.ts +0 -27
  425. package/lib/router/router/service/router.service.util.d.ts +0 -26
  426. package/lib/router/router/service/router.transition.service.d.ts +0 -11
  427. package/lib/router/router/transition/index.d.ts +0 -4
  428. package/lib/router/router/transition/transition.d.ts +0 -13
  429. package/lib/router/router/transition/transition.directive.d.ts +0 -13
  430. package/lib/router/router/transition/transition.rxjs.d.ts +0 -67
  431. package/lib/router/router/transition/transition.watcher.directive.d.ts +0 -16
  432. package/lib/router/router/util/index.d.ts +0 -2
  433. package/lib/router/router/util/route.default.d.ts +0 -20
  434. package/lib/router/router/util/route.reader.d.ts +0 -56
  435. package/lib/router/segue.d.ts +0 -38
  436. package/lib/storage/index.d.ts +0 -8
  437. package/lib/storage/storage.accessor.d.ts +0 -35
  438. package/lib/storage/storage.accessor.simple.d.ts +0 -80
  439. package/lib/storage/storage.accessor.simple.factory.d.ts +0 -17
  440. package/lib/storage/storage.accessor.string.d.ts +0 -16
  441. package/lib/storage/storage.di.d.ts +0 -3
  442. package/lib/storage/storage.object.localstorage.d.ts +0 -16
  443. package/lib/storage/storage.object.memory.d.ts +0 -9
  444. package/lib/storage/storage.providers.d.ts +0 -13
  445. package/lib/subscription/index.d.ts +0 -1
  446. package/lib/subscription/subscription.directive.d.ts +0 -25
  447. package/lib/util/index.d.ts +0 -2
  448. package/lib/util/input.d.ts +0 -6
  449. package/lib/util/view.d.ts +0 -61
  450. package/lib/view/if.directive.d.ts +0 -18
  451. package/lib/view/index.d.ts +0 -1
@@ -0,0 +1,3633 @@
1
+ import * as i0 from '@angular/core';
2
+ import { OnDestroy, Signal, OnInit, Type, Provider, Injector, EnvironmentProviders, InjectionToken, StaticProvider, NgModuleRef, TemplateRef, ViewRef, ModuleWithProviders, NgZone, PipeTransform, ViewContainerRef, ComponentRef, AbstractType, ElementRef, ChangeDetectorRef } from '@angular/core';
3
+ import * as rxjs from 'rxjs';
4
+ import { Observable, Subscription, OperatorFunction, Subject, BehaviorSubject, MonoTypeOperatorFunction, Unsubscribable } from 'rxjs';
5
+ import * as _dereekb_rxjs from '@dereekb/rxjs';
6
+ import { LoadingStateType, LoadingState, LockSet, MaybeObservableOrValue, IsCheckFunction, ObservableOrValue, Work, IsModifiedFunction, IsEqualFunction, WorkInstanceDelegate, LoadingContext, MaybeObservableOrValueGetter, SwitchMapToDefaultFilterFunction, ObservableOrValueGetter, FilterSourceConnector, FilterSource, FilterSourceInstance, FilterMap, FilterMapKey, FilterWithPreset, FilterPresetStringRef, FilterWithPresetOptional, DestroyOnNextUnlockConfig, SubscriptionObject, ListLoadingState, ListLoadingStateContextInput, MutableListLoadingStateContext, LoadingContextEvent, LoadingStateContextInput, MutableLoadingStateContext } from '@dereekb/rxjs';
7
+ import * as _dereekb_util from '@dereekb/util';
8
+ import { PercentNumber, Maybe, ReadableError, BooleanStringKeyArray, Destroyable, Initialized, GetterOrValue, FactoryWithInput, ArrayOrValue, AuthRoleSet, Milliseconds, FactoryWithRequiredInput, ObjectMap, AuthRole, SetIncludesMode, IterableOrValue, WebsiteUrl, MailToUrlInput, PhoneNumber, E164PhoneNumberWithOptionalExtension, TreeNode, ExpandTreeFunction, FlattenTreeFunction, ModelKey, DateOrDateString, TimezoneString, EmptyObject, ModelKeyRef, StoredDataString, ReadStoredData, StoredData, StoredDataStorageKey, FullStorageObject, StorageObject, DestroyFunction, DestroyFunctionObject } from '@dereekb/util';
9
+ import { ComponentStore } from '@ngrx/component-store';
10
+ import * as _dereekb_dbx_core from '@dereekb/dbx-core';
11
+ import * as _uirouter_core from '@uirouter/core';
12
+ import { Transition, UIInjector, TransitionHookFn, TransitionService, HookMatchCriteria, StateService, UIRouterGlobals, TransitionOptions } from '@uirouter/core';
13
+ import * as _ngrx_effects from '@ngrx/effects';
14
+ import { OnRunEffects, Actions, EffectNotification } from '@ngrx/effects';
15
+ import * as _ngrx_store from '@ngrx/store';
16
+ import { Action, Store } from '@ngrx/store';
17
+ import { Router, ActivatedRoute, NavigationExtras, NavigationBehaviorOptions } from '@angular/router';
18
+ import { DateRange, FormatDateRangeDistanceFunctionConfig } from '@dereekb/date';
19
+
20
+ /**
21
+ * Used to denote the percent progress of a working action.
22
+ *
23
+ * This is a PercentNumber, a number between 0 and 100.
24
+ */
25
+ type DbxActionWorkProgress = PercentNumber;
26
+ /**
27
+ * Used for denoting working state or progress.
28
+ *
29
+ * True is working, but no progress level.
30
+ */
31
+ type DbxActionWorkOrWorkProgress = boolean | DbxActionWorkProgress;
32
+ /**
33
+ * Creates a working progress value from an array of working progress values.
34
+ *
35
+ * @param workOrWorkProgress The array of working progress values to use.
36
+ * @param progressPercent An optional progress percent value to use if the working progress is a boolean.
37
+ * @returns The working progress value.
38
+ */
39
+ declare function dbxActionWorkProgress(workOrWorkProgress: Maybe<DbxActionWorkOrWorkProgress>[], progressPercent?: Maybe<DbxActionWorkProgress>): number | boolean;
40
+ /**
41
+ * Used by ActionContextState to denote what state the action is in.
42
+ */
43
+ declare enum DbxActionState {
44
+ /**
45
+ * No action in progress. Waiting for the trigger.
46
+ */
47
+ IDLE = "idle",
48
+ /**
49
+ * Idle state that can be set to show that the source is not yet ready.
50
+ */
51
+ DISABLED = "disabled",
52
+ /**
53
+ * The action was triggered. We wait (and allow) the value to be updated.
54
+ */
55
+ TRIGGERED = "triggered",
56
+ /**
57
+ * The trigger was accepted and the value is updated. It should begin working immediately.
58
+ *
59
+ * ValueReady cannot be set until triggered is set.
60
+ */
61
+ VALUE_READY = "valueReady",
62
+ /**
63
+ * The action is in progress.
64
+ */
65
+ WORKING = "working",
66
+ /**
67
+ * The trigger, action, or value was rejected due to an error or other issue.
68
+ *
69
+ * An error may be specified optionally.
70
+ */
71
+ REJECTED = "rejected",
72
+ /**
73
+ * The action resolved without issue.
74
+ */
75
+ RESOLVED = "resolved"
76
+ }
77
+ /**
78
+ * Contains the input value and the output result from a DbxAction.
79
+ */
80
+ interface DbxActionSuccessPair<T, O> {
81
+ readonly value: T;
82
+ readonly result: Maybe<O>;
83
+ }
84
+ /**
85
+ * Contains the input value and the output error from a DbxAction.
86
+ */
87
+ interface DbxActionRejectedPair<T> {
88
+ readonly value: T;
89
+ readonly error: unknown;
90
+ }
91
+ /**
92
+ * Unique key for disabling/enabling.
93
+ */
94
+ type DbxActionDisabledKey = string;
95
+ declare const DEFAULT_ACTION_DISABLED_KEY = "dbx_action_disabled";
96
+ declare function isIdleActionState(actionState: DbxActionState): boolean;
97
+ declare function loadingStateTypeForActionState(actionState: DbxActionState): LoadingStateType;
98
+
99
+ declare function isActionContextEnabled(state: ActionContextState): boolean;
100
+ declare function isActionContextDisabled(state: ActionContextState): boolean;
101
+ declare function isDisabledActionContextState(state: ActionContextState): boolean;
102
+ declare function isWorkingActionState(actionState: DbxActionState): boolean;
103
+ declare function canTriggerActionState(actionState: DbxActionState): boolean;
104
+ declare function canTriggerAction(state: ActionContextState): boolean;
105
+ declare function canReadyValue(state: ActionContextState): boolean;
106
+ declare function actionContextIsModifiedAndCanTrigger(state: ActionContextState): boolean;
107
+ declare function actionContextHasNoErrorAndIsModifiedAndCanTrigger(state: ActionContextState): boolean;
108
+ declare function loadingStateForActionContextState<O = unknown>(state: ActionContextState<unknown, O>): LoadingState<O>;
109
+ declare function loadingStateTypeForActionContextState(state: ActionContextState): LoadingStateType;
110
+ interface ActionContextState<T = unknown, O = unknown> {
111
+ readonly actionState: DbxActionState;
112
+ /**
113
+ * Whether or not this action is flagged as having been modified.
114
+ */
115
+ readonly isModified: boolean;
116
+ /**
117
+ * The working progress of the action.
118
+ *
119
+ * Is reset to null when triggered/ready value is set.
120
+ */
121
+ readonly workProgress?: Maybe<DbxActionWorkProgress>;
122
+ /**
123
+ * Value that is set after a triggered action. Not to be confused with result.
124
+ */
125
+ readonly value?: Maybe<T>;
126
+ /**
127
+ * Resolved result value.
128
+ */
129
+ readonly result?: Maybe<O>;
130
+ /**
131
+ * Rejected error, if available.
132
+ */
133
+ readonly error?: Maybe<ReadableError>;
134
+ /**
135
+ * Current disabled state.
136
+ */
137
+ readonly disabled?: BooleanStringKeyArray;
138
+ /**
139
+ * Number of consecutive errors that have occured.
140
+ */
141
+ readonly errorCount?: number;
142
+ }
143
+ declare class ActionContextStore<T = unknown, O = unknown> extends ComponentStore<ActionContextState<T, O>> implements OnDestroy {
144
+ readonly lockSet: _dereekb_rxjs.LockSet;
145
+ constructor();
146
+ readonly actionState$: Observable<DbxActionState>;
147
+ /**
148
+ * Returns the current disabled reasons/keys.
149
+ */
150
+ readonly disabledKeys$: Observable<string[]>;
151
+ /**
152
+ * Current value of the state.
153
+ */
154
+ readonly currentValue$: Observable<Maybe<T>>;
155
+ /**
156
+ * Maps the current state to true or not when the action state changes to/from disabled.
157
+ */
158
+ readonly isDisabled$: Observable<boolean>;
159
+ /**
160
+ * Pipes when idle but modified.
161
+ */
162
+ readonly isModified$: Observable<boolean>;
163
+ /**
164
+ * Pipes true when idle.
165
+ */
166
+ readonly idle$: Observable<boolean>;
167
+ /**
168
+ * Pipes true when triggered.
169
+ */
170
+ readonly triggered$: Observable<boolean>;
171
+ /**
172
+ * Pipes the readied value on ValueReady.
173
+ */
174
+ readonly valueReady$: Observable<T>;
175
+ /**
176
+ * Pipes the working progress on the working state.
177
+ */
178
+ readonly workProgress$: Observable<Maybe<number>>;
179
+ /**
180
+ * Pipes the error on the rejection state.
181
+ */
182
+ readonly rejected$: Observable<Maybe<ReadableError>>;
183
+ /**
184
+ * Pipes the result when the ActionState becomes rejected.
185
+ */
186
+ readonly rejectedPair$: Observable<DbxActionRejectedPair<T>>;
187
+ /**
188
+ * Pipes the result when the ActionState becomes working.
189
+ */
190
+ readonly working$: Observable<boolean>;
191
+ /**
192
+ * Whether or not it is currently in a working state.
193
+ */
194
+ readonly isWorking$: Observable<boolean>;
195
+ /**
196
+ * Pipes the current work or work progress.
197
+ */
198
+ readonly isWorkingOrWorkProgress$: Observable<DbxActionWorkOrWorkProgress>;
199
+ /**
200
+ * Pipes the current error.
201
+ */
202
+ readonly error$: Observable<Maybe<ReadableError>>;
203
+ /**
204
+ * Pipes the result when the ActionState becomes success.
205
+ */
206
+ readonly success$: Observable<Maybe<O>>;
207
+ /**
208
+ * Pipes the result when the ActionState becomes success.
209
+ */
210
+ readonly successPair$: Observable<DbxActionSuccessPair<T, O>>;
211
+ /**
212
+ * Whether or not it is currently in a success state.
213
+ */
214
+ readonly isSuccess$: Observable<boolean>;
215
+ /**
216
+ * Returns a loading state based on the current state.
217
+ */
218
+ readonly loadingState$: Observable<LoadingState<O>>;
219
+ /**
220
+ * Returns the current LoadingStateType based on the current state.
221
+ */
222
+ readonly loadingStateType$: Observable<LoadingStateType>;
223
+ /**
224
+ * Number of errors since last success.
225
+ */
226
+ readonly errorCountSinceLastSuccess$: Observable<number>;
227
+ /**
228
+ * Whether or not the state can be triggered.
229
+ */
230
+ readonly canTrigger$: Observable<boolean>;
231
+ /**
232
+ * Pipe that maps whether or not this is modified and can be triggered.
233
+ *
234
+ * Updates every state update instead of when the value changes.
235
+ */
236
+ readonly isModifiedAndCanTriggerUpdates$: Observable<boolean>;
237
+ /**
238
+ * Whether or not it can be triggered and modified.
239
+ */
240
+ readonly isModifiedAndCanTrigger$: Observable<boolean>;
241
+ readonly hasNoErrorAndIsModifiedAndCanTrigger$: Observable<boolean>;
242
+ /**
243
+ * Adds a disabled reason.
244
+ */
245
+ readonly disable: (() => void) | ((observableOrValue: string | void | Observable<string | void | undefined> | undefined) => rxjs.Subscription);
246
+ /**
247
+ * Removes a disabled reason.
248
+ */
249
+ readonly enable: (() => void) | ((observableOrValue: string | void | Observable<string | void | undefined> | undefined) => rxjs.Subscription);
250
+ /**
251
+ * Triggers the modified state, if not disabled.
252
+ *
253
+ * Equivalent to calling setIsModified() with opposite input.
254
+ */
255
+ readonly setIsSame: (() => void) | ((observableOrValue: boolean | void | Observable<boolean | void>) => rxjs.Subscription);
256
+ /**
257
+ * Triggers the modified state, if not disabled.
258
+ */
259
+ readonly setIsModified: (() => void) | ((observableOrValue: boolean | void | Observable<boolean | void>) => rxjs.Subscription);
260
+ /**
261
+ * 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).
262
+ *
263
+ * Will not fire if the action is disabled.
264
+ */
265
+ readonly trigger: () => void;
266
+ /**
267
+ * Updates the value, setting value ready. The current result is cleared.
268
+ */
269
+ readonly readyValue: T extends void ? () => void : (observableOrValue: T | Observable<T>) => rxjs.Subscription;
270
+ /**
271
+ * Notifys the context that the action is in progress.
272
+ */
273
+ readonly startWorking: () => void;
274
+ /**
275
+ * Updates the working progress.
276
+ */
277
+ readonly setWorkProgress: (() => void) | ((observableOrValue: Maybe<number> | Observable<Maybe<number>>) => rxjs.Subscription);
278
+ /**
279
+ * Triggers rejection of the action. The value is cleared.
280
+ */
281
+ readonly reject: (() => void) | ((observableOrValue: Maybe<ReadableError> | Observable<Maybe<ReadableError>>) => rxjs.Subscription);
282
+ /**
283
+ * Updates the state to success, and optionally sets a result.
284
+ *
285
+ * Clears modified state, and any errors.
286
+ */
287
+ readonly resolve: (() => void) | ((observableOrValue: Maybe<O> | Observable<Maybe<O>>) => rxjs.Subscription) | (O extends void ? () => void : (observableOrValue: Maybe<O> | Observable<Maybe<O>>) => rxjs.Subscription);
288
+ /**
289
+ * Completely resets the store.
290
+ */
291
+ readonly reset: () => void;
292
+ afterDistinctBoolean(fromState: (state: ActionContextState<T, O>) => boolean): Observable<boolean>;
293
+ afterDistinctActionState<X>(actionState: DbxActionState, fromState: (state: ActionContextState<T, O>) => X): Observable<X>;
294
+ afterDistinctActionStateChange(): Observable<ActionContextState<T, O>>;
295
+ afterDistinctLoadingStateTypeChange(): Observable<ActionContextState<T, O>>;
296
+ ngOnDestroy(): void;
297
+ static ɵfac: i0.ɵɵFactoryDeclaration<ActionContextStore<any, any>, never>;
298
+ static ɵprov: i0.ɵɵInjectableDeclaration<ActionContextStore<any, any>>;
299
+ }
300
+
301
+ /**
302
+ * Source that provides a ActionContextStore observable.
303
+ */
304
+ declare abstract class ActionContextStoreSource<T = unknown, O = unknown> {
305
+ /**
306
+ * Observable referencing the ActionContextStore.
307
+ *
308
+ * This observable by design is pre-filtered to not return null values.
309
+ */
310
+ abstract readonly store$: Observable<ActionContextStore<T, O>>;
311
+ }
312
+ /**
313
+ * Secondary source. Used by DbxActionContextComponent to find secondary sources.
314
+ */
315
+ declare abstract class SecondaryActionContextStoreSource<T = unknown, O = unknown> extends ActionContextStoreSource<T, O> {
316
+ }
317
+ declare function actionContextStoreSourcePipe<T, O>(obs: Observable<Maybe<ActionContextStore<T, O>>>): Observable<ActionContextStore<T, O>>;
318
+ type PipeActionStoreFunction<R, T, O> = (store: ActionContextStore<T, O>) => Observable<R>;
319
+ declare function pipeActionStore<R = unknown, T = unknown, O = unknown>(source: ActionContextStoreSource<T, O>, pipeFn: PipeActionStoreFunction<R, T, O>): Observable<R>;
320
+ type UseActionStoreFunction<T, O> = (store: ActionContextStore<T, O>) => void;
321
+ /**
322
+ * Convenience function for subscribing to the input source once and using the provided store.
323
+ */
324
+ declare function useActionStore<T = unknown, O = unknown>(source: ActionContextStoreSource<T, O>, useFn: UseActionStoreFunction<T, O>): Subscription;
325
+ /**
326
+ * Service that wraps a ActionContextStoreSource.
327
+ */
328
+ declare class DbxActionContextStoreSourceInstance<T = unknown, O = unknown> implements ActionContextStoreSource<T, O>, Destroyable {
329
+ readonly lockSet: LockSet;
330
+ private readonly _source;
331
+ constructor(source: ActionContextStoreSource<T, O>);
332
+ get source(): ActionContextStoreSource<T, O>;
333
+ destroy(): void;
334
+ get store$(): Observable<ActionContextStore<T, O>>;
335
+ pipeStore<R>(pipeFn: PipeActionStoreFunction<R, T, O>): Observable<R>;
336
+ useStore(useFn: UseActionStoreFunction<T, O>): Subscription;
337
+ get state$(): Observable<ActionContextState<T, O>>;
338
+ get idle$(): Observable<boolean>;
339
+ get triggered$(): Observable<boolean>;
340
+ get valueReady$(): Observable<T>;
341
+ get success$(): Observable<Maybe<O>>;
342
+ get successPair$(): Observable<DbxActionSuccessPair<T, O>>;
343
+ get workProgress$(): Observable<Maybe<DbxActionWorkProgress>>;
344
+ get error$(): Observable<Maybe<ReadableError>>;
345
+ get rejected$(): Observable<Maybe<ReadableError>>;
346
+ get rejectedPair$(): Observable<DbxActionRejectedPair<T>>;
347
+ get isModified$(): Observable<boolean>;
348
+ get canTrigger$(): Observable<boolean>;
349
+ get isModifiedAndCanTriggerUpdates$(): Observable<boolean>;
350
+ get isModifiedAndCanTrigger$(): Observable<boolean>;
351
+ get actionState$(): Observable<DbxActionState>;
352
+ get loadingState$(): Observable<LoadingState<O>>;
353
+ get loadingStateType$(): Observable<LoadingStateType>;
354
+ get isWorking$(): Observable<boolean>;
355
+ get isWorkingOrWorkProgress$(): Observable<DbxActionWorkOrWorkProgress>;
356
+ get isSuccess$(): Observable<boolean>;
357
+ get disabledKeys$(): Observable<string[]>;
358
+ get isDisabled$(): Observable<boolean>;
359
+ get errorCountSinceLastSuccess$(): Observable<number>;
360
+ enable(key?: DbxActionDisabledKey, enable?: boolean): void;
361
+ disable(key?: DbxActionDisabledKey, disable?: boolean): void;
362
+ setIsSame(isSame?: boolean | Observable<boolean> | Observable<void>): void;
363
+ setIsModified(isModified?: boolean | Observable<boolean> | Observable<void>): void;
364
+ setWorkProgress(workProgress: MaybeObservableOrValue<DbxActionWorkProgress>): void;
365
+ trigger(): void;
366
+ triggerWithValue(value: T | Observable<T>): void;
367
+ readyValue(value: T | Observable<T>): void;
368
+ startWorking(): void;
369
+ reject(error: Maybe<ReadableError | Observable<ReadableError>>): void;
370
+ resolve(value: O | Observable<O>): void;
371
+ reset(): void;
372
+ }
373
+
374
+ declare class DbxActionAutoModifyDirective<T, O> {
375
+ readonly source: DbxActionContextStoreSourceInstance<T, O>;
376
+ readonly autoModifyEnabled: i0.InputSignalWithTransform<boolean, string | boolean>;
377
+ readonly markAsModified$: Observable<void>;
378
+ constructor();
379
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionAutoModifyDirective<any, any>, never>;
380
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionAutoModifyDirective<any, any>, "dbxActionAutoModify, [dbxActionAutoModify]", never, { "autoModifyEnabled": { "alias": "dbxActionAutoModify"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
381
+ }
382
+
383
+ /**
384
+ * Directive that automatically triggers the action periodically when it is in a modified state.
385
+ *
386
+ * When using auto triggers be sure to make sure that the action is not triggering too often due to misconfiguration.
387
+ */
388
+ declare class DbxActionAutoTriggerDirective<T = unknown, O = unknown> {
389
+ readonly source: DbxActionContextStoreSourceInstance<T, O>;
390
+ readonly triggerDebounce: i0.InputSignal<Maybe<number>>;
391
+ readonly triggerThrottle: i0.InputSignal<Maybe<number>>;
392
+ readonly triggerErrorThrottle: i0.InputSignalWithTransform<number, Maybe<number>>;
393
+ readonly maxErrorsForThrottle: i0.InputSignalWithTransform<number, Maybe<number>>;
394
+ readonly triggerLimit: i0.InputSignal<Maybe<number>>;
395
+ readonly triggerEnabled: i0.InputSignalWithTransform<boolean, Maybe<string | boolean>>;
396
+ readonly useFastTriggerPreset: i0.InputSignalWithTransform<boolean, Maybe<boolean | "">>;
397
+ readonly useInstantTriggerPreset: i0.InputSignalWithTransform<boolean, Maybe<boolean | "">>;
398
+ readonly triggerDebounceSignal: Signal<number>;
399
+ readonly triggerThrottleSignal: Signal<number>;
400
+ readonly triggerCountSignal: i0.WritableSignal<number>;
401
+ readonly _errorCount$: Observable<number>;
402
+ readonly _triggerCount$: Observable<number>;
403
+ /**
404
+ * Observable for the trigger mechanism.
405
+ */
406
+ readonly triggerCount$: Observable<number>;
407
+ private readonly _isTriggerLimited$;
408
+ readonly isTriggerAllowedToRun$: Observable<boolean>;
409
+ readonly automaticTrigger$: Observable<void>;
410
+ constructor();
411
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionAutoTriggerDirective<any, any>, never>;
412
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionAutoTriggerDirective<any, any>, "dbxActionAutoTrigger,[dbxActionAutoTrigger]", never, { "triggerDebounce": { "alias": "triggerDebounce"; "required": false; "isSignal": true; }; "triggerThrottle": { "alias": "triggerThrottle"; "required": false; "isSignal": true; }; "triggerErrorThrottle": { "alias": "triggerErrorThrottle"; "required": false; "isSignal": true; }; "maxErrorsForThrottle": { "alias": "maxErrorsForThrottle"; "required": false; "isSignal": true; }; "triggerLimit": { "alias": "triggerLimit"; "required": false; "isSignal": true; }; "triggerEnabled": { "alias": "dbxActionAutoTrigger"; "required": false; "isSignal": true; }; "useFastTriggerPreset": { "alias": "useFastTriggerPreset"; "required": false; "isSignal": true; }; "useInstantTriggerPreset": { "alias": "useInstantTriggerPreset"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
413
+ }
414
+
415
+ /**
416
+ * Abstract class that can either use SecondaryActionContextStoreSource or create it's own.
417
+ */
418
+ declare abstract class DbxActionContextBaseSource<T = unknown, O = unknown> implements ActionContextStoreSource<T, O>, Destroyable {
419
+ private readonly _inputSource;
420
+ private readonly _store?;
421
+ private readonly _store$;
422
+ private readonly _instance;
423
+ readonly isModified$: Observable<boolean>;
424
+ readonly triggered$: Observable<boolean>;
425
+ readonly success$: Observable<Maybe<O>>;
426
+ constructor(inputSource?: Maybe<SecondaryActionContextStoreSource<T, O>>);
427
+ destroy(): void;
428
+ get inputSource(): Maybe<SecondaryActionContextStoreSource<T, O>>;
429
+ get lockSet(): LockSet;
430
+ get sourceInstance(): DbxActionContextStoreSourceInstance<T, O>;
431
+ get store$(): Observable<ActionContextStore<T, O>>;
432
+ /**
433
+ * Use to trigger the action directly.
434
+ */
435
+ trigger(): void;
436
+ readyValue(value: T | Observable<T>): void;
437
+ /**
438
+ * Triggers the context and then readies the value.
439
+ * @param value
440
+ */
441
+ triggerWithValue(value: T | Observable<T>): void;
442
+ reset(): void;
443
+ enable(key?: DbxActionDisabledKey, enable?: boolean): void;
444
+ disable(key?: DbxActionDisabledKey, disable?: boolean): void;
445
+ setIsModified(isModified?: boolean): void;
446
+ }
447
+
448
+ /**
449
+ * Provides an DbxAction/DbxActionContext.
450
+ */
451
+ declare class DbxActionDirective<T = unknown, O = unknown> extends DbxActionContextBaseSource<T, O> {
452
+ constructor();
453
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionDirective<any, any>, never>;
454
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionDirective<any, any>, "dbx-action,[dbxAction]", ["action", "dbxAction"], {}, {}, never, never, true, never>;
455
+ }
456
+
457
+ /**
458
+ * Directive that provides a DbxActionSourceDirective that is passed in.
459
+ */
460
+ declare class DbxActionSourceDirective implements SecondaryActionContextStoreSource {
461
+ readonly dbxActionSource: i0.InputSignal<Maybe<ActionContextStoreSource<unknown, unknown>>>;
462
+ readonly store$: rxjs.Observable<_dereekb_dbx_core.ActionContextStore<unknown, unknown>>;
463
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionSourceDirective, never>;
464
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionSourceDirective, "[dbxActionSource]", never, { "dbxActionSource": { "alias": "dbxActionSource"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
465
+ }
466
+
467
+ /**
468
+ * Prints out the current state to the console. Useful for debugging.
469
+ */
470
+ declare class DbxActionContextLoggerDirective {
471
+ readonly source: DbxActionContextStoreSourceInstance<any, any>;
472
+ constructor();
473
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionContextLoggerDirective, never>;
474
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionContextLoggerDirective, "[dbxActionLogger],[dbxActionContextLogger]", never, {}, {}, never, never, true, never>;
475
+ }
476
+
477
+ /**
478
+ * Arbitrary string used to identify an action.
479
+ */
480
+ type ActionKey = string;
481
+ /**
482
+ * Map that returns sources for ActionKey values.
483
+ */
484
+ declare abstract class ActionContextStoreSourceMap<T = unknown, O = unknown> implements Destroyable {
485
+ /**
486
+ * Returns the read-only map of action keys to sources.
487
+ */
488
+ abstract readonly actionKeySourceMap$: Observable<Map<ActionKey, ActionContextStoreSource<T, O>>>;
489
+ /**
490
+ * Returns a ActionContextStoreSource for the input action key.
491
+ *
492
+ * @param key Action key to retrieve the source for.
493
+ */
494
+ abstract sourceForKey(key: ActionKey): ActionContextStoreSource<T, O>;
495
+ /**
496
+ * Adds the store source for the input key.
497
+ * @param key Action key to add the source for.
498
+ * @param source Store source to add.
499
+ */
500
+ abstract addStoreSource(key: ActionKey, source: ActionContextStoreSource<T, O>): void;
501
+ /**
502
+ * Removes the store source for the input key.
503
+ * @param key Action key to remove the source for.
504
+ */
505
+ abstract removeStoreSource(key: ActionKey): void;
506
+ /**
507
+ * Destroys the map.
508
+ */
509
+ abstract destroy(): void;
510
+ }
511
+ /**
512
+ * Creates a new ActionContextStoreSourceMap.
513
+ *
514
+ * @returns A new ActionContextStoreSourceMap.
515
+ */
516
+ declare function actionContextStoreSourceMap<T = unknown, O = unknown>(): ActionContextStoreSourceMap<T, O>;
517
+
518
+ /**
519
+ * Context used for providing actions based on the action key.
520
+ *
521
+ * This is useful for passing action contexts around via the providers instead of explicit injection.
522
+ */
523
+ declare class DbxActionContextMapDirective {
524
+ readonly actionContextStoreSourceMap: ActionContextStoreSourceMap<any, any>;
525
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionContextMapDirective, never>;
526
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionContextMapDirective, "[dbxActionContextMap]", ["actionMap"], {}, {}, never, never, true, never>;
527
+ }
528
+
529
+ /**
530
+ * Directive that provides a ActionContextStoreSource using the input key and DbxActionContextMapDirective.
531
+ */
532
+ declare class DbxActionFromMapDirective implements SecondaryActionContextStoreSource {
533
+ private readonly _actionContextStoreSourceMap;
534
+ readonly key: i0.InputSignal<Maybe<string>>;
535
+ readonly key$: rxjs.Observable<Maybe<string>>;
536
+ readonly store$: rxjs.Observable<_dereekb_dbx_core.ActionContextStore<any, any>>;
537
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionFromMapDirective, never>;
538
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionFromMapDirective, "[dbxActionFromMap]", never, { "key": { "alias": "dbxActionFromMap"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
539
+ }
540
+
541
+ /**
542
+ * Used to communicate with an dbxActionMap and set the ActionContextStore to the store based on the key.
543
+ */
544
+ declare class DbxActionMapSourceDirective implements OnDestroy {
545
+ private readonly _actionContextStoreSourceMap;
546
+ readonly source: ActionContextStoreSource<any, any>;
547
+ readonly key: i0.InputSignal<Maybe<string>>;
548
+ private _currentKey;
549
+ protected readonly _keyEffect: i0.EffectRef;
550
+ ngOnDestroy(): void;
551
+ private _addToStore;
552
+ private _removeFromToStore;
553
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionMapSourceDirective, never>;
554
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionMapSourceDirective, "[dbxActionMapSource]", never, { "key": { "alias": "dbxActionMapSource"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
555
+ }
556
+
557
+ /**
558
+ * Utility interface that provides a set of functions to read from an ActionContextStoreSourceMap.
559
+ */
560
+ interface ActionContextStoreSourceMapReader<T = unknown, O = unknown> {
561
+ /**
562
+ * The input key source map.
563
+ */
564
+ readonly actionKeySourceMap$: Observable<Map<ActionKey, ActionContextStoreSource<T, O>>>;
565
+ /**
566
+ * Checks if any of the stores in the map match the input checkFunction.
567
+ *
568
+ * @param checkFunction Function to apply to each store.
569
+ * @param emptyArrayValue Value to return if the map is empty.
570
+ */
571
+ checkAny(checkFunction: IsCheckFunction<ActionContextStore<T, O>>, emptyArrayValue?: boolean): Observable<boolean>;
572
+ /**
573
+ * Reduces a value from all stores in the map.
574
+ *
575
+ * @param mapFn Function to apply to each store.
576
+ * @param reduceFn Function to apply to the results of the mapFn.
577
+ */
578
+ reduceFromAllSources<X, Y>(mapFn: (input: ActionContextStore<T, O>) => Observable<X>, reduceFn: (values: X[]) => Y): Observable<Y>;
579
+ /**
580
+ * Reads a value from each store in the map and returns an array of the results.
581
+ *
582
+ * @param mapFn Function to apply to each store.
583
+ */
584
+ fromAllSources<Y>(mapFn: (input: ActionContextStore<T, O>) => Observable<Y>): Observable<Y[]>;
585
+ }
586
+ /**
587
+ * Creates a new ActionContextStoreSourceMapReader from the input.
588
+
589
+ * @param actionKeySourceMap$
590
+ */
591
+ declare function actionContextStoreSourceMapReader<T = unknown, O = unknown>(actionKeySourceMap$: ObservableOrValue<Map<ActionKey, ActionContextStoreSource<T, O>>>): ActionContextStoreSourceMapReader<T, O>;
592
+ /**
593
+ * Returns an Observable of the results of the mapFn for each source in the actionKeySourceMap$.
594
+ *
595
+ * @param actionKeySourceMap$ Observable of the action key source map.
596
+ * @param mapFn Function to apply to each source.
597
+ * @returns Observable of the results of the mapFn for each source.
598
+ */
599
+ declare function fromAllActionContextStoreSourceMapSources<O>(actionKeySourceMap$: ObservableOrValue<ActionContextStoreSourceMap>, mapFn: (input: ActionContextStore) => Observable<O>): Observable<O[]>;
600
+
601
+ declare const DEFAULT_ACTION_MAP_WORKING_DISABLED_KEY = "action_map_working_disable";
602
+ /**
603
+ * Used to communicate with an dbxActionMap and set the ActionContextStore to be disabled if any other element in the map is working.
604
+ */
605
+ declare class DbxActionMapWorkingDisableDirective {
606
+ private readonly _actionContextStoreSourceMap;
607
+ readonly source: DbxActionContextStoreSourceInstance<any, any>;
608
+ readonly disabledKey: i0.InputSignal<Maybe<string>>;
609
+ readonly areAnySourcesWorking$: rxjs.Observable<boolean>;
610
+ constructor();
611
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionMapWorkingDisableDirective, never>;
612
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionMapWorkingDisableDirective, "[dbxActionMapWorkingDisable]", never, { "disabledKey": { "alias": "dbxActionMapWorkingDisable"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
613
+ }
614
+
615
+ declare const APP_ACTION_DISABLED_DIRECTIVE_KEY = "dbx_action_disabled";
616
+ /**
617
+ * Directive that allows disabling an action using the inputs.
618
+ */
619
+ declare class DbxActionDisabledDirective<T, O> {
620
+ readonly source: DbxActionContextStoreSourceInstance<T, O>;
621
+ readonly disabled: i0.InputSignalWithTransform<boolean, Maybe<boolean | "">>;
622
+ readonly disabled$: rxjs.Observable<boolean>;
623
+ constructor();
624
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionDisabledDirective<any, any>, never>;
625
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionDisabledDirective<any, any>, "[dbxActionDisabled]", never, { "disabled": { "alias": "dbxActionDisabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
626
+ }
627
+
628
+ declare const APP_ACTION_DISABLED_ON_SUCCESS_DIRECTIVE_KEY = "dbx_action_disabled_on_success";
629
+ /**
630
+ * Directive that will disable the action after the action completes successfully.
631
+ */
632
+ declare class DbxActionDisabledOnSuccessDirective<T, O> {
633
+ readonly source: DbxActionContextStoreSourceInstance<T, O>;
634
+ readonly disabledOnSuccess: i0.InputSignalWithTransform<boolean, Maybe<boolean | "">>;
635
+ readonly disabledOnSuccess$: rxjs.Observable<boolean>;
636
+ constructor();
637
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionDisabledOnSuccessDirective<any, any>, never>;
638
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionDisabledOnSuccessDirective<any, any>, "[dbxActionDisabledOnSuccess]", never, { "disabledOnSuccess": { "alias": "dbxActionDisabledOnSuccess"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
639
+ }
640
+
641
+ declare const DBX_ACTION_HANDLER_LOCK_KEY = "dbxActionHandler";
642
+ /**
643
+ * Context used for defining a function that performs an action using the input function to handle valueReady$ events from an action context.
644
+ */
645
+ declare class DbxActionHandlerInstance<T = unknown, O = unknown> implements Initialized, Destroyable {
646
+ private readonly _delegate;
647
+ private readonly _sub;
648
+ private readonly _handlerFunction;
649
+ private readonly _handlerValue;
650
+ readonly handlerFunction$: rxjs.Observable<Work<T, O>>;
651
+ constructor(source: DbxActionContextStoreSourceInstance<T, O>);
652
+ get source(): DbxActionContextStoreSourceInstance<T, O>;
653
+ get handlerFunction(): Maybe<Work<T, O>>;
654
+ get handlerValue(): Maybe<GetterOrValue<O> | FactoryWithInput<O, T>>;
655
+ setHandlerFunction(handlerFunction: Maybe<Work<T, O>>): void;
656
+ setHandlerValue(handlerValue: Maybe<GetterOrValue<O> | FactoryWithInput<O, T>>): void;
657
+ init(): void;
658
+ destroy(): void;
659
+ }
660
+
661
+ /**
662
+ * Abstract directive that wraps and handles a DbxActionHandlerInstance lifecycle.
663
+ */
664
+ declare abstract class AbstractDbxActionHandlerDirective<T = unknown, O = unknown> {
665
+ readonly source: DbxActionContextStoreSourceInstance<T, O>;
666
+ protected readonly _dbxActionHandlerInstance: DbxActionHandlerInstance<T, O>;
667
+ constructor();
668
+ static ɵfac: i0.ɵɵFactoryDeclaration<AbstractDbxActionHandlerDirective<any, any>, never>;
669
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractDbxActionHandlerDirective<any, any>, never, never, {}, {}, never, never, true, never>;
670
+ }
671
+ /**
672
+ * Directive that passes a Work function to handle a valueReady$ event from an action context.
673
+ */
674
+ declare class DbxActionHandlerDirective<T = unknown, O = unknown> extends AbstractDbxActionHandlerDirective<T, O> {
675
+ readonly handlerFunction: i0.InputSignal<Maybe<Work<T, O>>>;
676
+ protected readonly _handlerFunctionEffect: i0.EffectRef;
677
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionHandlerDirective<any, any>, never>;
678
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionHandlerDirective<any, any>, "[dbxActionHandler]", never, { "handlerFunction": { "alias": "dbxActionHandler"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
679
+ }
680
+ /**
681
+ * Directive that passes a value to handle a valueReady$ event from an action context.
682
+ */
683
+ declare class DbxActionHandlerValueDirective<T = unknown, O = unknown> extends AbstractDbxActionHandlerDirective<T, O> {
684
+ readonly handlerValue: i0.InputSignal<Maybe<GetterOrValue<O> | FactoryWithInput<O, T>>>;
685
+ protected readonly _handlerValueEffect: i0.EffectRef;
686
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionHandlerValueDirective<any, any>, never>;
687
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionHandlerValueDirective<any, any>, "[dbxActionHandlerValue]", never, { "handlerValue": { "alias": "dbxActionHandlerValue"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
688
+ }
689
+
690
+ /**
691
+ * Abstract directive class that watches a show$ observable and behaves like *ngIf.
692
+ */
693
+ declare abstract class AbstractIfDirective implements OnInit {
694
+ private readonly _templateRef;
695
+ private readonly _viewContainer;
696
+ /**
697
+ * Observable that is watched for showing/hiding.
698
+ */
699
+ abstract readonly show$: Observable<boolean>;
700
+ private readonly _sub;
701
+ ngOnInit(): void;
702
+ static ɵfac: i0.ɵɵFactoryDeclaration<AbstractIfDirective, never>;
703
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractIfDirective, never, never, {}, {}, never, never, true, never>;
704
+ }
705
+
706
+ /**
707
+ * Structural directive that displays the content before the store has success.
708
+ *
709
+ * Can be configured to hide for a temporary period.
710
+ */
711
+ declare class DbxActionIdleDirective extends AbstractIfDirective {
712
+ private readonly _store;
713
+ readonly hideAfter: i0.InputSignalWithTransform<Maybe<number>, "" | Maybe<number>>;
714
+ readonly show$: rxjs.Observable<boolean>;
715
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionIdleDirective, never>;
716
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionIdleDirective, "[dbxActionIdle]", never, { "hideAfter": { "alias": "dbxActionIdle"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
717
+ }
718
+
719
+ /**
720
+ * Structural directive that displays the content before the store has success.
721
+ *
722
+ * Can be configured to hide for a temporary period.
723
+ */
724
+ declare class DbxActionPreSuccessDirective extends AbstractIfDirective {
725
+ private readonly _store;
726
+ readonly hideFor: i0.InputSignalWithTransform<Maybe<number>, "" | Maybe<number>>;
727
+ readonly show$: rxjs.Observable<boolean>;
728
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionPreSuccessDirective, never>;
729
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionPreSuccessDirective, "[dbxActionPreSuccess]", never, { "hideFor": { "alias": "dbxActionPreSuccess"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
730
+ }
731
+
732
+ /**
733
+ * Structural directive that displays the content when the store has a success value.
734
+ *
735
+ * Can be configured to show for a temporary period.
736
+ */
737
+ declare class DbxActionHasSuccessDirective extends AbstractIfDirective {
738
+ private readonly _store;
739
+ readonly hideAfter: i0.InputSignalWithTransform<Maybe<number>, "" | Maybe<number>>;
740
+ readonly show$: rxjs.Observable<boolean>;
741
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionHasSuccessDirective, never>;
742
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionHasSuccessDirective, "[dbxActionHasSuccess]", never, { "hideAfter": { "alias": "dbxActionHasSuccess"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
743
+ }
744
+
745
+ /**
746
+ * Performs the action on success.
747
+ */
748
+ type DbxActionSuccessHandlerFunction<O = unknown> = (value: O) => void;
749
+ /**
750
+ * Directive that executes a function on ActionContextStore Success.
751
+ */
752
+ declare class DbxActionSuccessHandlerDirective<T, O> {
753
+ readonly source: DbxActionContextStoreSourceInstance<T, O>;
754
+ readonly dbxActionSuccessHandler: i0.InputSignal<Maybe<DbxActionSuccessHandlerFunction<O>>>;
755
+ readonly successFunction$: rxjs.Observable<DbxActionSuccessHandlerFunction<O>>;
756
+ constructor();
757
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionSuccessHandlerDirective<any, any>, never>;
758
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionSuccessHandlerDirective<any, any>, "[dbxActionSuccessHandler]", never, { "dbxActionSuccessHandler": { "alias": "dbxActionSuccessHandler"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
759
+ }
760
+
761
+ /**
762
+ * Performs the action on error.
763
+ */
764
+ type DbxActionErrorHandlerFunction = (error?: Maybe<ReadableError>) => void;
765
+ /**
766
+ * Directive that executes a function on ActionContextStore error.
767
+ */
768
+ declare class DbxActionErrorHandlerDirective<T, O> {
769
+ readonly source: DbxActionContextStoreSourceInstance<T, O>;
770
+ readonly dbxActionErrorHandler: i0.InputSignal<Maybe<DbxActionErrorHandlerFunction>>;
771
+ readonly errorFunction$: rxjs.Observable<DbxActionErrorHandlerFunction>;
772
+ constructor();
773
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionErrorHandlerDirective<any, any>, never>;
774
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionErrorHandlerDirective<any, any>, "[dbxActionErrorHandler]", never, { "dbxActionErrorHandler": { "alias": "dbxActionErrorHandler"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
775
+ }
776
+
777
+ /**
778
+ * Directive that provides a default value when triggered.
779
+ *
780
+ * No value is required, allowing the directive to automatically call readyValue.
781
+ *
782
+ * The valueOrFunction will filter on null/undefined input and wait until the input value is non-null.
783
+ *
784
+ * Use a getter if null/undefined values should be passed to the action.
785
+ */
786
+ declare class DbxActionValueDirective<T, O> {
787
+ readonly valueOrFunction: i0.InputSignal<Maybe<"" | GetterOrValue<T>>>;
788
+ readonly source: DbxActionContextStoreSourceInstance<T, O>;
789
+ private readonly _valueOrFunctionOverride;
790
+ readonly valueOrFunction$: Observable<GetterOrValue<T>>;
791
+ constructor();
792
+ setValueOrFunction(value: Maybe<GetterOrValue<T>>): void;
793
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionValueDirective<any, any>, never>;
794
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionValueDirective<any, any>, "dbxActionValue,[dbxActionValue]", never, { "valueOrFunction": { "alias": "dbxActionValue"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
795
+ }
796
+
797
+ /**
798
+ * Structural directive that displays the content when the store is working.
799
+ *
800
+ * Can specify a period in milliseconds that shows how long to show up after working for a particular number of seconds.
801
+ */
802
+ declare class DbxActionIsWorkingDirective extends AbstractIfDirective {
803
+ private readonly _store;
804
+ readonly hideAfter: i0.InputSignalWithTransform<Maybe<number>, "" | Maybe<number>>;
805
+ readonly hideAfterIsWorking: i0.InputSignalWithTransform<Maybe<number>, "" | Maybe<number>>;
806
+ readonly hideAfterSignal: i0.Signal<Maybe<number>>;
807
+ readonly show$: rxjs.Observable<boolean>;
808
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionIsWorkingDirective, never>;
809
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionIsWorkingDirective, "[dbxActionWorking],[dbxActionIsWorking]", never, { "hideAfter": { "alias": "dbxActionWorking"; "required": false; "isSignal": true; }; "hideAfterIsWorking": { "alias": "dbxActionIsWorking"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
810
+ }
811
+
812
+ declare const APP_ACTION_ENFORCE_MODIFIED_DIRECTIVE_KEY = "dbx_action_enforce_modified";
813
+ /**
814
+ * Directive that toggles disabling an action if the action is not marked modified.
815
+ */
816
+ declare class DbxActionEnforceModifiedDirective {
817
+ readonly source: DbxActionContextStoreSourceInstance<any, any>;
818
+ readonly enabled: i0.InputSignalWithTransform<boolean, Maybe<boolean | "">>;
819
+ readonly enabled$: rxjs.Observable<boolean>;
820
+ constructor();
821
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionEnforceModifiedDirective, never>;
822
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionEnforceModifiedDirective, "[dbxActionEnforceModified]", never, { "enabled": { "alias": "dbxActionEnforceModified"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
823
+ }
824
+
825
+ /**
826
+ * DbxActionValueGetterInstance function. Returns an ObervableGetter that returns a value.
827
+ */
828
+ type DbxActionValueGetterValueGetterFunction<T> = () => ObservableOrValue<Maybe<T>>;
829
+ interface DbxActionValueGetterResult<T = unknown> {
830
+ /**
831
+ * The value to trigger with
832
+ */
833
+ readonly value?: Maybe<T>;
834
+ /**
835
+ * The error to reject with
836
+ */
837
+ readonly reject?: Maybe<ReadableError>;
838
+ }
839
+ /**
840
+ * DbxActionValueGetterInstance configuration.
841
+ */
842
+ interface DbxActionValueGetterInstanceConfig<T> {
843
+ readonly source: DbxActionContextStoreSourceInstance<T, unknown>;
844
+ readonly valueGetter?: Maybe<DbxActionValueGetterValueGetterFunction<T>>;
845
+ readonly isEqualFunction?: Maybe<IsEqualFunction<T>>;
846
+ readonly isModifiedFunction?: Maybe<IsModifiedFunction<T>>;
847
+ }
848
+ /**
849
+ * Utility class that handles trigger events to retrieve a value.
850
+ */
851
+ declare class DbxActionValueGetterInstance<T> implements Initialized, Destroyable {
852
+ private readonly _valueGetterFunction;
853
+ readonly valueGetterFunction$: Observable<DbxActionValueGetterValueGetterFunction<T>>;
854
+ private readonly _isModifiedFunction;
855
+ private readonly _isEqualFunction;
856
+ readonly isModifiedFunction$: Observable<IsModifiedFunction<T>>;
857
+ readonly source: DbxActionContextStoreSourceInstance<T, unknown>;
858
+ private readonly _triggeredSub;
859
+ constructor(config: DbxActionValueGetterInstanceConfig<T>);
860
+ setValueGetterFunction(valueGetterFunction: Maybe<DbxActionValueGetterValueGetterFunction<T>>): void;
861
+ setIsModifiedFunction(isModifiedFunction: Maybe<IsModifiedFunction<T>>): void;
862
+ setIsEqualFunction(isEqualFunction: Maybe<IsEqualFunction<T>>): void;
863
+ init(): void;
864
+ destroy(): void;
865
+ }
866
+
867
+ interface DbxActionValueGetterDirectiveComputeInputsConfig<T> {
868
+ readonly valueGetterSignal?: Signal<Maybe<DbxActionValueGetterValueGetterFunction<T>>>;
869
+ readonly isModifiedSignal?: Signal<Maybe<IsModifiedFunction>>;
870
+ readonly isEqualSignal?: Signal<Maybe<IsEqualFunction>>;
871
+ }
872
+ /**
873
+ * Abstract class for directives that may perform an action when trigger is called, and returns a value.
874
+ */
875
+ declare abstract class AbstractDbxActionValueGetterDirective<T> {
876
+ private readonly _injector;
877
+ readonly source: DbxActionContextStoreSourceInstance<T, unknown>;
878
+ private readonly _triggerInstance;
879
+ constructor();
880
+ setValueGetterFunction(valueGetterFunction: Maybe<DbxActionValueGetterValueGetterFunction<T>>): void;
881
+ protected configureInputs(config: DbxActionValueGetterDirectiveComputeInputsConfig<T>): void;
882
+ static ɵfac: i0.ɵɵFactoryDeclaration<AbstractDbxActionValueGetterDirective<any>, never>;
883
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractDbxActionValueGetterDirective<any>, never, never, {}, {}, never, never, true, never>;
884
+ }
885
+ /**
886
+ * Action directive that uses a getter function instead and waits for the trigger to be called before calling the function.
887
+ *
888
+ * Similar to DbxActionValueDirective, but the getter is called when a trigger is activated.
889
+ * The DbxActionValueDirective always pipes the latests value while waiting for a trigger, and does not allow using a getter.
890
+ */
891
+ declare class DbxActionValueTriggerDirective<T = object> extends AbstractDbxActionValueGetterDirective<T> {
892
+ readonly dbxActionValueGetter: i0.InputSignal<Maybe<DbxActionValueGetterValueGetterFunction<T>>>;
893
+ readonly dbxActionValueGetterIsModified: i0.InputSignal<Maybe<IsModifiedFunction>>;
894
+ readonly dbxActionValueGetterIsEqual: i0.InputSignal<Maybe<IsEqualFunction>>;
895
+ constructor();
896
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionValueTriggerDirective<any>, never>;
897
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionValueTriggerDirective<any>, "[dbxActionValueGetter]", ["dbxActionValueGetter"], { "dbxActionValueGetter": { "alias": "dbxActionValueGetter"; "required": false; "isSignal": true; }; "dbxActionValueGetterIsModified": { "alias": "dbxActionValueGetterIsModified"; "required": false; "isSignal": true; }; "dbxActionValueGetterIsEqual": { "alias": "dbxActionValueGetterIsEqual"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
898
+ }
899
+
900
+ /**
901
+ * Directive that watches a value observable for changes and sets the new value and modified states as necessary.
902
+ */
903
+ declare class DbxActionValueStreamDirective<T, O> {
904
+ readonly source: DbxActionContextStoreSourceInstance<T, O>;
905
+ readonly dbxActionValueStream: i0.InputSignal<Observable<T>>;
906
+ readonly dbxActionValueStreamIsEqualValue: i0.InputSignal<Maybe<IsEqualFunction<T>>>;
907
+ readonly dbxActionValueStreamIsModifiedValue: i0.InputSignal<Maybe<IsModifiedFunction<T>>>;
908
+ readonly isModifiedFunction$: Observable<IsModifiedFunction<T>>;
909
+ readonly modifiedValue$: Observable<[boolean, T]>;
910
+ constructor();
911
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionValueStreamDirective<any, any>, never>;
912
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionValueStreamDirective<any, any>, "[dbxActionValueStream]", never, { "dbxActionValueStream": { "alias": "dbxActionValueStream"; "required": false; "isSignal": true; }; "dbxActionValueStreamIsEqualValue": { "alias": "dbxActionValueStreamIsEqualValue"; "required": false; "isSignal": true; }; "dbxActionValueStreamIsModifiedValue": { "alias": "dbxActionValueStreamIsModifiedValue"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
913
+ }
914
+
915
+ /**
916
+ * Structural directive that displays the content when the store has been triggered.
917
+ *
918
+ * Can be configured to hide for a temporary period.
919
+ */
920
+ declare class DbxActionTriggeredDirective extends AbstractIfDirective {
921
+ private readonly _store;
922
+ readonly hideAfter: i0.InputSignalWithTransform<Maybe<number>, "" | Maybe<number>>;
923
+ readonly show$: rxjs.Observable<boolean>;
924
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionTriggeredDirective, never>;
925
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionTriggeredDirective, "[dbxActionTriggered]", never, { "hideAfter": { "alias": "dbxActionTriggered"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
926
+ }
927
+
928
+ /**
929
+ * WorkInstanceDelegate implementation using an DbxActionContextStoreSourceInstance.
930
+ */
931
+ declare class DbxActionWorkInstanceDelegate<T = unknown, O = unknown> implements WorkInstanceDelegate<O> {
932
+ private _source;
933
+ constructor(source: DbxActionContextStoreSourceInstance<T, O>);
934
+ get source(): DbxActionContextStoreSourceInstance<T, O>;
935
+ startWorking(): void;
936
+ success(result: O): void;
937
+ reject(error: Maybe<ReadableError | Observable<ReadableError>>): void;
938
+ }
939
+
940
+ /**
941
+ * Acts as a reference to a DbxActionContextStoreSourceInstance that can be destroyed.
942
+ *
943
+ * This is used in cases where the action is passed around and the context it is passed to needs to clean up.
944
+ */
945
+ interface DbxActionContextSourceReference<T = unknown, O = unknown> extends Destroyable {
946
+ readonly sourceInstance: DbxActionContextStoreSourceInstance<T, O>;
947
+ }
948
+ declare function makeDbxActionContextSourceReference<T, O>(sourceInstance: DbxActionContextStoreSourceInstance<T, O>): DbxActionContextSourceReference<T, O>;
949
+
950
+ /**
951
+ * DbxActionContextMachine configuration.
952
+ */
953
+ interface DbxActionContextMachineConfig<T = unknown, O = unknown> {
954
+ /**
955
+ * Whether or not the machine should clean itself up after being triggered once.
956
+ */
957
+ oneTimeUse: boolean;
958
+ /**
959
+ * Function to handle any valueReady events.
960
+ *
961
+ * If false, will not subscribe/handle valueReady$ events.
962
+ */
963
+ handleValueReady: Work<T, O> | false;
964
+ /**
965
+ * Optional function to execute after the action has succeeded.
966
+ */
967
+ onSuccess?: (value: Maybe<O>) => void;
968
+ }
969
+ /**
970
+ * Configurable machine that handles components of the ActionContextStore lifecycle.
971
+ *
972
+ * It can be configured to activate only once before cleaning itself up. It can be used directly as a DbxActionContextSourceReference in cases where it is created as a one-off action.
973
+ */
974
+ declare class DbxActionContextMachine<T = unknown, O = unknown> extends DbxActionContextBaseSource<T, O> implements DbxActionContextSourceReference<T, O>, Destroyable {
975
+ private _isShutdown;
976
+ private readonly _config;
977
+ private readonly _handleValueReadySub;
978
+ private readonly _successSub;
979
+ constructor(config: DbxActionContextMachineConfig<T, O>, source?: ActionContextStoreSource<T, O>);
980
+ destroy(): void;
981
+ get config(): DbxActionContextMachineConfig<T, O>;
982
+ get isShutdown(): boolean;
983
+ }
984
+ /**
985
+ * DbxActionContextMachine configured for use as a Service/Injectable.
986
+ */
987
+ declare class DbxActionContextMachineAsService<T = unknown, O = unknown> extends DbxActionContextMachine<T, O> {
988
+ constructor();
989
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionContextMachineAsService<any, any>, never>;
990
+ static ɵprov: i0.ɵɵInjectableDeclaration<DbxActionContextMachineAsService<any, any>>;
991
+ }
992
+
993
+ /**
994
+ * Contains all base DbxAction components.
995
+ */
996
+ declare class DbxCoreActionModule {
997
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxCoreActionModule, never>;
998
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DbxCoreActionModule, never, [typeof DbxActionDirective, typeof DbxActionContextMapDirective, typeof DbxActionFromMapDirective, typeof DbxActionMapSourceDirective, typeof DbxActionMapWorkingDisableDirective, typeof DbxActionSourceDirective, typeof DbxActionHandlerDirective, typeof DbxActionHandlerValueDirective, typeof DbxActionDisabledDirective, typeof DbxActionDisabledOnSuccessDirective, typeof DbxActionEnforceModifiedDirective, typeof DbxActionAutoTriggerDirective, typeof DbxActionValueStreamDirective, typeof DbxActionAutoModifyDirective, typeof DbxActionValueDirective, typeof DbxActionContextLoggerDirective, typeof DbxActionIdleDirective, typeof DbxActionPreSuccessDirective, typeof DbxActionHasSuccessDirective, typeof DbxActionSuccessHandlerDirective, typeof DbxActionErrorHandlerDirective, typeof DbxActionIsWorkingDirective], [typeof DbxActionDirective, typeof DbxActionContextMapDirective, typeof DbxActionFromMapDirective, typeof DbxActionMapSourceDirective, typeof DbxActionMapWorkingDisableDirective, typeof DbxActionSourceDirective, typeof DbxActionHandlerDirective, typeof DbxActionHandlerValueDirective, typeof DbxActionDisabledDirective, typeof DbxActionDisabledOnSuccessDirective, typeof DbxActionEnforceModifiedDirective, typeof DbxActionAutoTriggerDirective, typeof DbxActionValueStreamDirective, typeof DbxActionAutoModifyDirective, typeof DbxActionValueDirective, typeof DbxActionContextLoggerDirective, typeof DbxActionIdleDirective, typeof DbxActionPreSuccessDirective, typeof DbxActionHasSuccessDirective, typeof DbxActionSuccessHandlerDirective, typeof DbxActionErrorHandlerDirective, typeof DbxActionIsWorkingDirective]>;
999
+ static ɵinj: i0.ɵɵInjectorDeclaration<DbxCoreActionModule>;
1000
+ }
1001
+
1002
+ /**
1003
+ * Provides an ActionContextStoreSource, as well as an DbxActionContextStoreSourceInstance.
1004
+ */
1005
+ declare function provideActionStoreSource<S extends ActionContextStoreSource>(sourceType: Type<S> | null): Provider[];
1006
+ declare function provideSecondaryActionStoreSource<S extends SecondaryActionContextStoreSource>(sourceType: Type<S>): Provider[];
1007
+
1008
+ type SegueRefRouterLink = string | ArrayOrValue<object>;
1009
+ interface SegueRefRawSegueParams {
1010
+ [key: string]: unknown;
1011
+ }
1012
+ interface SegueRefOptions<O = object> {
1013
+ /**
1014
+ * Raw parameters
1015
+ */
1016
+ refParams?: SegueRefRawSegueParams;
1017
+ /**
1018
+ * Custom Transition Options.
1019
+ *
1020
+ * For UIRouter, this is TransitionOptions.
1021
+ */
1022
+ refOptions?: O;
1023
+ }
1024
+ /**
1025
+ * Represents a segue ref
1026
+ */
1027
+ interface SegueRef<O = object> extends SegueRefOptions<O> {
1028
+ /**
1029
+ * Ref path value.
1030
+ */
1031
+ ref: SegueRefRouterLink;
1032
+ }
1033
+ /**
1034
+ * A SegueRef object or a different router link representation.
1035
+ */
1036
+ type SegueRefOrSegueRefRouterLink<O = object> = SegueRef<O> | SegueRefRouterLink;
1037
+ declare function isSegueRef<O = object>(input: Maybe<SegueRefOrSegueRefRouterLink<O>>): input is SegueRef<O>;
1038
+ declare function asSegueRef<O = object>(input: SegueRefOrSegueRefRouterLink<O>): SegueRef<O>;
1039
+ declare function asSegueRef<O = object>(input: Maybe<SegueRefOrSegueRefRouterLink<O>>): Maybe<SegueRef<O>>;
1040
+ declare function asSegueRefString<O = object>(input: SegueRefOrSegueRefRouterLink<O> | string): string;
1041
+ declare function asSegueRefString<O = object>(input: Maybe<SegueRefOrSegueRefRouterLink<O> | string>): Maybe<string>;
1042
+ declare function refStringToSegueRef<O = object>(ref: string, options?: SegueRefOptions<O>): SegueRef<O>;
1043
+ declare function mapRefStringObsToSegueRefObs<O = object>(obs: Observable<string>, options?: SegueRefOptions<O>): Observable<SegueRef<O>>;
1044
+
1045
+ /**
1046
+ * An application user state.
1047
+ *
1048
+ * Generic states that define the current state of the user:
1049
+ * - none: the user is not logged in
1050
+ * - anon: the user is logged in as an anonymous account
1051
+ * - error: there was an error loading the correct user state
1052
+ * - new: the user has a full account but has not completed onboarding/setup
1053
+ * - user: the user has a full account and has completed setup
1054
+ */
1055
+ type AuthUserState = 'none' | 'anon' | 'new' | 'user' | 'error';
1056
+ /**
1057
+ * Arbitrary identifier used to differentiate users.
1058
+ */
1059
+ type AuthUserIdentifier = string;
1060
+ declare const NO_AUTH_USER_IDENTIFIER = "0";
1061
+ /**
1062
+ * AuthUserIdentifier used to indicate that the user cannot be uniquely identifier.
1063
+ */
1064
+ type NoAuthUserIdentifier = typeof NO_AUTH_USER_IDENTIFIER;
1065
+ /**
1066
+ * Creates an AuthUserIdentifier from the input. If the input is undefined, returns the NoAuthUserIdentifier.
1067
+ *
1068
+ * @param inputId
1069
+ * @returns
1070
+ */
1071
+ declare function authUserIdentifier(inputId: Maybe<AuthUserIdentifier>): AuthUserIdentifier;
1072
+
1073
+ /**
1074
+ * Client auth service used to retrieve info about the current state of client authentication and client roles they may have.
1075
+ */
1076
+ declare abstract class DbxAuthService {
1077
+ /**
1078
+ * Whether or not the user is logged in.
1079
+ *
1080
+ * This will only emit once the authentication has been determined, preventing issues with premature decision making.
1081
+ *
1082
+ * A user is considered logged in even if there is an anonymous user. For more detailed info, consider using authUserState$.
1083
+ */
1084
+ abstract readonly isLoggedIn$: Observable<boolean>;
1085
+ /**
1086
+ * Whether or not the user has finished onboarding.
1087
+ *
1088
+ * This will only emit once the onboarding status has been determined, preventing issues with premature decision making.
1089
+ */
1090
+ abstract readonly isOnboarded$: Observable<boolean>;
1091
+ /**
1092
+ * Emits an event every time the user logs in.
1093
+ */
1094
+ abstract readonly onLogIn$: Observable<void>;
1095
+ /**
1096
+ * Emits an event every time the user logs out.
1097
+ */
1098
+ abstract readonly onLogOut$: Observable<void>;
1099
+ /**
1100
+ * Current state of the user.
1101
+ */
1102
+ abstract readonly authUserState$: Observable<AuthUserState>;
1103
+ /**
1104
+ * Role set for the current user.
1105
+ */
1106
+ abstract readonly authRoles$: Observable<AuthRoleSet>;
1107
+ /**
1108
+ * Identifier for the current user.
1109
+ */
1110
+ abstract readonly userIdentifier$: Observable<AuthUserIdentifier>;
1111
+ /**
1112
+ * Performs the logout action.
1113
+ */
1114
+ abstract logOut(): Promise<void>;
1115
+ }
1116
+
1117
+ /**
1118
+ * authTransitionHookFn() configuration. The values are handled as:
1119
+ * - true: continue to the state.
1120
+ * - false: redirect to the login page.
1121
+ * - StateOrName: redirect to the target page instead.
1122
+ */
1123
+ type AuthTransitionDecision = true | false | SegueRefOrSegueRefRouterLink;
1124
+ interface AuthTransitionDecisionGetterInput {
1125
+ readonly transition: Transition;
1126
+ readonly injector: Injector;
1127
+ readonly authService: DbxAuthService;
1128
+ }
1129
+ type AuthTransitionRedirectTarget = Observable<Maybe<SegueRefOrSegueRefRouterLink>>;
1130
+ type AuthTransitionRedirectTargetGetter = FactoryWithRequiredInput<AuthTransitionRedirectTarget, AuthTransitionDecisionGetterInput>;
1131
+ type AuthTransitionRedirectTargetOrGetter = Maybe<SegueRefOrSegueRefRouterLink> | AuthTransitionRedirectTargetGetter;
1132
+ interface AuthTransitionHookOptions {
1133
+ /**
1134
+ * The state to redirect the user to when their auth fails.
1135
+ */
1136
+ defaultRedirectTarget: string;
1137
+ /**
1138
+ * The state to redirect the user to. Defaults to defaultRedirectTarget.
1139
+ */
1140
+ errorRedirectTarget?: string;
1141
+ /**
1142
+ * Timeout time for the decision obs. Defaults to 1000ms.
1143
+ */
1144
+ timeoutTime?: Milliseconds;
1145
+ }
1146
+ interface AuthTransitionHookConfig extends AuthTransitionHookOptions {
1147
+ /**
1148
+ * Creates the decision observable for the transition that decides whether or not to redirect or continue.
1149
+ */
1150
+ makeDecisionsObs: (transition: Transition, authService: DbxAuthService, injector: UIInjector) => Observable<AuthTransitionDecision>;
1151
+ }
1152
+ interface AuthTransitionStateData {
1153
+ /**
1154
+ * Optional getter/decision maker when a role needs to be
1155
+ */
1156
+ redirectTo?: AuthTransitionRedirectTargetOrGetter;
1157
+ }
1158
+ /**
1159
+ * This generates a TransitionHookFn that can be used with redirecting routes.
1160
+ */
1161
+ declare function makeAuthTransitionHook(config: AuthTransitionHookConfig): TransitionHookFn;
1162
+
1163
+ /**
1164
+ * Creates a AuthTransitionRedirectTargetGetter that can redirect values based on the current authUserState.
1165
+ *
1166
+ * @param stateMap
1167
+ * @returns
1168
+ */
1169
+ declare function redirectBasedOnAuthUserState(stateMap: ObjectMap<AuthTransitionRedirectTargetOrGetter>): AuthTransitionRedirectTargetGetter;
1170
+
1171
+ interface IsLoggedInHookConfig {
1172
+ options: AuthTransitionHookOptions;
1173
+ }
1174
+ /**
1175
+ * UIRouter State data with configuration for the hasAuthRoleHook.
1176
+ */
1177
+ interface IsLoggedInStateData {
1178
+ /**
1179
+ * Whether or not the user needs to be logged in for this state.
1180
+ */
1181
+ requiredLogIn: boolean;
1182
+ }
1183
+ /**
1184
+ * This hook redirects to the configured default state when a user is not logged in for configured states.
1185
+ */
1186
+ declare function enableIsLoggedInHook(transitionService: TransitionService, config: IsLoggedInHookConfig): void;
1187
+
1188
+ interface HasAuthRoleHookConfig {
1189
+ readonly options: AuthTransitionHookOptions;
1190
+ }
1191
+ interface HasAuthRoleStateRoleConfig {
1192
+ /**
1193
+ * Auth roles marked for this state
1194
+ */
1195
+ readonly authRoles: ArrayOrValue<AuthRole>;
1196
+ /**
1197
+ * How to use the above auth roles. This defaults to 'all' by default.
1198
+ */
1199
+ readonly authRolesMode?: SetIncludesMode;
1200
+ }
1201
+ interface ParsedHasAuthRoleStateRoleConfig {
1202
+ /**
1203
+ * Auth roles marked for this state
1204
+ */
1205
+ readonly requiredRoles: Set<AuthRole>;
1206
+ /**
1207
+ * How to use the above auth roles. This defaults to 'all' by default.
1208
+ */
1209
+ readonly authRolesMode?: SetIncludesMode;
1210
+ }
1211
+ /**
1212
+ * UIRouter State data with configuration for the hasAuthRoleHook.
1213
+ */
1214
+ interface HasAuthRoleStateData extends AuthTransitionStateData, Pick<HasAuthRoleStateRoleConfig, 'authRolesMode'> {
1215
+ /**
1216
+ * Auth roles configuration for this state.
1217
+ */
1218
+ readonly authRoles: ArrayOrValue<AuthRole | HasAuthRoleStateRoleConfig>;
1219
+ }
1220
+ /**
1221
+ * This hook redirects to the configured default state when a user:
1222
+ *
1223
+ * - does not have an allowed state
1224
+ * - has a disallowed state
1225
+ */
1226
+ declare function enableHasAuthRoleHook(transitionService: TransitionService, config: HasAuthRoleHookConfig): void;
1227
+ declare function hasAuthRoleDecisionPipe(stateData: HasAuthRoleStateData): OperatorFunction<AuthRoleSet, boolean>;
1228
+
1229
+ interface HasAuthStateHookConfig {
1230
+ options: AuthTransitionHookOptions;
1231
+ }
1232
+ type HasAuthStateConfig = ArrayOrValue<AuthUserState> | HasAuthStateObjectConfig;
1233
+ interface HasAuthStateObjectConfig {
1234
+ /**
1235
+ * Whether or not this state or any child state is considered "secure", which requires the user to be logged in.
1236
+ */
1237
+ allowedStates?: ArrayOrValue<AuthUserState>;
1238
+ /**
1239
+ * States that are not allowed. If the current state is this state, a rejection is returned.
1240
+ */
1241
+ disallowedStates?: ArrayOrValue<AuthUserState>;
1242
+ }
1243
+ interface HasAuthStateData extends AuthTransitionStateData {
1244
+ /**
1245
+ * Configuration for the hasAuthStateHook.
1246
+ */
1247
+ authStates: HasAuthStateConfig;
1248
+ }
1249
+ /**
1250
+ * This hook redirects to the configured default state when a user:
1251
+ *
1252
+ * - does not have an allowed state
1253
+ * - has a disallowed state
1254
+ */
1255
+ declare function enableHasAuthStateHook(transitionService: TransitionService, config: HasAuthStateHookConfig): void;
1256
+
1257
+ /**
1258
+ * A contextual state identifier for a specific section of the app.
1259
+ *
1260
+ * Some examples are:
1261
+ * - init: The default context that is initialized.
1262
+ * - public: A public part of the app.
1263
+ * - onboarding: The onboarding section of the app.
1264
+ * - app: The main portion of the app.
1265
+ *
1266
+ * More complex apps may have more sub-sections or app portions that could each have their own context state.
1267
+ */
1268
+ type DbxAppContextState = string;
1269
+ /**
1270
+ * The init state of an app after the default context has been initialized.
1271
+ */
1272
+ declare const DBX_INIT_APP_CONTEXT_STATE = "init";
1273
+ /**
1274
+ * The public state of an app, typically when a user opens up the site to a public page.
1275
+ */
1276
+ declare const DBX_PUBLIC_APP_CONTEXT_STATE = "public";
1277
+ /**
1278
+ * The auth state of an app, typically when a user has not finished logging in.
1279
+ */
1280
+ declare const DBX_AUTH_APP_CONTEXT_STATE = "auth";
1281
+ /**
1282
+ * The onboarding state of an app, typically when a user has completed auth but not finished setting up their account.
1283
+ */
1284
+ declare const DBX_ONBOARD_APP_CONTEXT_STATE = "onboard";
1285
+ /**
1286
+ * The app state of an app, typically when a user has completed auth and onboarding.
1287
+ */
1288
+ declare const DBX_APP_APP_CONTEXT_STATE = "app";
1289
+ /**
1290
+ * Default AppContextStates.
1291
+ *
1292
+ * Your app may not use these, but this type is available for convenience.
1293
+ */
1294
+ type DbxKnownAppContextState = typeof DBX_INIT_APP_CONTEXT_STATE | typeof DBX_PUBLIC_APP_CONTEXT_STATE | typeof DBX_AUTH_APP_CONTEXT_STATE | typeof DBX_ONBOARD_APP_CONTEXT_STATE | typeof DBX_APP_APP_CONTEXT_STATE;
1295
+ /**
1296
+ * Array of all DbxKnownAppContextState values, minus the init state.
1297
+ */
1298
+ declare const DBX_KNOWN_APP_CONTEXT_STATES: DbxKnownAppContextState[];
1299
+
1300
+ /**
1301
+ * The feature key for these items/reducers.
1302
+ */
1303
+ declare const dbxAppContextStateFeatureKey = "data";
1304
+ /**
1305
+ * The typings for this feature.
1306
+ */
1307
+ interface DbxAppContextStateData {
1308
+ state: DbxAppContextState;
1309
+ }
1310
+
1311
+ /**
1312
+ * Global feature key for our app.
1313
+ */
1314
+ declare const featureKey$1 = "app.context";
1315
+ /**
1316
+ * This is a "feature state", which in this case is a single feature (our app state), but could include keys/states within this feature.
1317
+ */
1318
+ interface DbxAppContextFeatureState {
1319
+ [dbxAppContextStateFeatureKey]: DbxAppContextStateData;
1320
+ }
1321
+ /**
1322
+ * Interface typing extension for the DbxAppContextFeatureState, and the typing information for how this feature extends the base state.
1323
+ */
1324
+ interface State$1 {
1325
+ [featureKey$1]: DbxAppContextFeatureState;
1326
+ }
1327
+ /**
1328
+ * Reducers mapping for the DbxAppContextFeatureState
1329
+ */
1330
+ declare function reducers$1(state: DbxAppContextFeatureState | undefined, action: Action): {
1331
+ data: DbxAppContextStateData;
1332
+ };
1333
+ /**
1334
+ * Selects the DbxAppContextFeatureState feature context.
1335
+ *
1336
+ * Used by createSelector() to retrieve more specific data from the DbxAppContextFeatureState.
1337
+ */
1338
+ declare const selectAppContextFeature: _ngrx_store.MemoizedSelector<object, DbxAppContextFeatureState, _ngrx_store.DefaultProjectorFn<DbxAppContextFeatureState>>;
1339
+ /**
1340
+ * Selector to retrieve the state value from our DbxAppContextStateData in our DbxAppContextFeatureState.
1341
+ */
1342
+ declare const selectDbxAppContextState: _ngrx_store.MemoizedSelector<object, string, (s1: DbxAppContextFeatureState) => string>;
1343
+
1344
+ type index_d$3_DbxAppContextFeatureState = DbxAppContextFeatureState;
1345
+ declare const index_d$3_selectAppContextFeature: typeof selectAppContextFeature;
1346
+ declare const index_d$3_selectDbxAppContextState: typeof selectDbxAppContextState;
1347
+ declare namespace index_d$3 {
1348
+ export { featureKey$1 as featureKey, reducers$1 as reducers, index_d$3_selectAppContextFeature as selectAppContextFeature, index_d$3_selectDbxAppContextState as selectDbxAppContextState };
1349
+ export type { index_d$3_DbxAppContextFeatureState as DbxAppContextFeatureState, State$1 as State };
1350
+ }
1351
+
1352
+ /**
1353
+ * Action to set the current DbxAppContextState value.
1354
+ */
1355
+ declare const setState: _ngrx_store.ActionCreator<"[App/Context] Set State", (props: {
1356
+ state: DbxAppContextState;
1357
+ }) => {
1358
+ state: DbxAppContextState;
1359
+ } & _ngrx_store.Action<"[App/Context] Set State">>;
1360
+ /**
1361
+ * Resets the app back to the init context.
1362
+ */
1363
+ declare const resetState: _ngrx_store.ActionCreator<"[App/Context] Reset", () => _ngrx_store.Action<"[App/Context] Reset">>;
1364
+
1365
+ declare const data_action_d_resetState: typeof resetState;
1366
+ declare const data_action_d_setState: typeof setState;
1367
+ declare namespace data_action_d {
1368
+ export {
1369
+ data_action_d_resetState as resetState,
1370
+ data_action_d_setState as setState,
1371
+ };
1372
+ }
1373
+
1374
+ declare namespace index_d$2 {
1375
+ export {
1376
+ data_action_d as DbxAppContextActions,
1377
+ };
1378
+ }
1379
+
1380
+ /**
1381
+ * Type that contains the dbx-core contextual ngrx state information about an app's context.
1382
+ *
1383
+ * This is the "full state" of our DbxAppContext. It is the sum of the fromDbxContext.State interface.
1384
+ *
1385
+ * Sub-state types that need to be aware of this typeing may extend (via union) this type.
1386
+ */
1387
+ type DbxAppContextFullState = State$1;
1388
+
1389
+ /**
1390
+ * State for accessing the app's DbxAppContextState defined within the DbxAppContextFullState for the ngrx store.
1391
+ */
1392
+ declare class DbxAppContextService {
1393
+ readonly store: Store<any>;
1394
+ readonly state$: rxjs.Observable<string>;
1395
+ setState(state: DbxAppContextState): void;
1396
+ resetState(): void;
1397
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxAppContextService, never>;
1398
+ static ɵprov: i0.ɵɵInjectableDeclaration<DbxAppContextService>;
1399
+ }
1400
+
1401
+ /**
1402
+ * Used to set the DbxAppContextState for an app to the input state using the DbxAppContextService.
1403
+ */
1404
+ declare class DbxAppContextStateDirective {
1405
+ readonly dbxAppContextStateService: DbxAppContextService;
1406
+ readonly state: i0.InputSignal<Maybe<string>>;
1407
+ protected readonly _stateEffect: i0.EffectRef;
1408
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxAppContextStateDirective, never>;
1409
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxAppContextStateDirective, "[dbxAppContextState]", never, { "state": { "alias": "dbxAppContextState"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1410
+ }
1411
+
1412
+ /**
1413
+ * Creates EnvironmentProviders for providing the DbxAppContext state.
1414
+ *
1415
+ * @returns EnvironmentProviders
1416
+ */
1417
+ declare function provideDbxAppContextState(): EnvironmentProviders;
1418
+
1419
+ /**
1420
+ * Configuration for provideDbxAppAuthRouterState().
1421
+ */
1422
+ interface ProvideDbxAppAuthRouterStateConfig {
1423
+ /**
1424
+ * Active routes to apply effects to.
1425
+ */
1426
+ readonly activeRoutesToApplyEffects: ArrayOrValue<DbxAppContextState>;
1427
+ }
1428
+ /**
1429
+ * Creates EnvironmentProviders for providing DbxAppAuthRouterState configuration and effects.
1430
+ *
1431
+ * @param config Configuration
1432
+ * @returns EnvironmentProviders
1433
+ */
1434
+ declare function provideDbxAppAuthRouterState(config: ProvideDbxAppAuthRouterStateConfig): EnvironmentProviders;
1435
+
1436
+ /**
1437
+ * Abstract effects class that only runs/allows effects when the DbxAppContextState in the ngrx state matches input activeState value.
1438
+ */
1439
+ declare abstract class AbstractOnDbxAppContextStateEffects<S = unknown> implements OnRunEffects {
1440
+ protected readonly actions$: Actions<any>;
1441
+ protected readonly store: Store<any>;
1442
+ /**
1443
+ * The set of state(s) to activate on.
1444
+ */
1445
+ private _activeStatesSet;
1446
+ constructor(activeStates: IterableOrValue<DbxAppContextState>);
1447
+ /**
1448
+ * Configures all actions of the sub-class to only activate when the DbxAppContextState in App
1449
+ *
1450
+ * @param resolvedEffects$
1451
+ * @returns
1452
+ */
1453
+ ngrxOnRunEffects(resolvedEffects$: Observable<EffectNotification>): Observable<EffectNotification>;
1454
+ }
1455
+
1456
+ declare const dbxAppAuthUserFeatureKey = "user";
1457
+ interface DbxAppAuthStateUser {
1458
+ userId: AuthUserIdentifier;
1459
+ isOnboarded: boolean;
1460
+ userState: AuthUserState;
1461
+ userRoles: AuthRole[];
1462
+ }
1463
+
1464
+ /**
1465
+ * Global feature key
1466
+ */
1467
+ declare const featureKey = "app.auth";
1468
+ interface DbxAppAuthFeatureState {
1469
+ [dbxAppAuthUserFeatureKey]: DbxAppAuthStateUser;
1470
+ }
1471
+ /**
1472
+ * Interface typing extension for the DbxAppAuthFeatureState, and the typing information for how this feature extends the base state.
1473
+ */
1474
+ interface State {
1475
+ [featureKey]: DbxAppAuthFeatureState;
1476
+ }
1477
+ /**
1478
+ * Reducers mapping for the DbxAppAuthFeatureState
1479
+ */
1480
+ declare function reducers(state: DbxAppAuthFeatureState | undefined, action: Action): {
1481
+ user: DbxAppAuthStateUser;
1482
+ };
1483
+ /**
1484
+ * Selects the DbxAppAuthFeatureState feature context.
1485
+ */
1486
+ declare const selectAppAuthFeature: _ngrx_store.MemoizedSelector<object, DbxAppAuthFeatureState, _ngrx_store.DefaultProjectorFn<DbxAppAuthFeatureState>>;
1487
+ /**
1488
+ * Selector to retrieve the state value from our DbxAppContextStateData in our DbxAppContextFeatureState.
1489
+ */
1490
+ declare const selectDbxAppAuthUser: _ngrx_store.MemoizedSelector<object, DbxAppAuthStateUser, (s1: DbxAppAuthFeatureState) => DbxAppAuthStateUser>;
1491
+
1492
+ type index_d$1_DbxAppAuthFeatureState = DbxAppAuthFeatureState;
1493
+ type index_d$1_State = State;
1494
+ declare const index_d$1_featureKey: typeof featureKey;
1495
+ declare const index_d$1_reducers: typeof reducers;
1496
+ declare const index_d$1_selectAppAuthFeature: typeof selectAppAuthFeature;
1497
+ declare const index_d$1_selectDbxAppAuthUser: typeof selectDbxAppAuthUser;
1498
+ declare namespace index_d$1 {
1499
+ export { index_d$1_featureKey as featureKey, index_d$1_reducers as reducers, index_d$1_selectAppAuthFeature as selectAppAuthFeature, index_d$1_selectDbxAppAuthUser as selectDbxAppAuthUser };
1500
+ export type { index_d$1_DbxAppAuthFeatureState as DbxAppAuthFeatureState, index_d$1_State as State };
1501
+ }
1502
+
1503
+ /**
1504
+ * Action for when the user has logged in.
1505
+ */
1506
+ declare const loggedIn: _ngrx_store.ActionCreator<"[App/Auth] Auth Logged In", () => _ngrx_store.Action<"[App/Auth] Auth Logged In">>;
1507
+ /**
1508
+ * Action for when the user has logged out.
1509
+ */
1510
+ declare const loggedOut: _ngrx_store.ActionCreator<"[App/Auth] Auth Logged Out", () => _ngrx_store.Action<"[App/Auth] Auth Logged Out">>;
1511
+ /**
1512
+ * Action to log the user out.
1513
+ */
1514
+ declare const logout: _ngrx_store.ActionCreator<"[App/Auth] Auth Logout", () => _ngrx_store.Action<"[App/Auth] Auth Logout">>;
1515
+
1516
+ declare const auth_action_d_loggedIn: typeof loggedIn;
1517
+ declare const auth_action_d_loggedOut: typeof loggedOut;
1518
+ declare const auth_action_d_logout: typeof logout;
1519
+ declare namespace auth_action_d {
1520
+ export {
1521
+ auth_action_d_loggedIn as loggedIn,
1522
+ auth_action_d_loggedOut as loggedOut,
1523
+ auth_action_d_logout as logout,
1524
+ };
1525
+ }
1526
+
1527
+ /**
1528
+ * Sets the user's identifier in the auth.
1529
+ */
1530
+ declare const setUserIdentifier: _ngrx_store.ActionCreator<"[App/Auth] Set User Identifier", (props: {
1531
+ id: AuthUserIdentifier;
1532
+ }) => {
1533
+ id: AuthUserIdentifier;
1534
+ } & _ngrx_store.Action<"[App/Auth] Set User Identifier">>;
1535
+ /**
1536
+ * Sets the user's state in the auth.
1537
+ */
1538
+ declare const setUserState: _ngrx_store.ActionCreator<"[App/Auth] Set User State", (props: {
1539
+ state: AuthUserState;
1540
+ }) => {
1541
+ state: AuthUserState;
1542
+ } & _ngrx_store.Action<"[App/Auth] Set User State">>;
1543
+ /**
1544
+ * Sets the user's roles in the auth.
1545
+ */
1546
+ declare const setUserRoles: _ngrx_store.ActionCreator<"[App/Auth] Set User Roles", (props: {
1547
+ roles: AuthRole[];
1548
+ }) => {
1549
+ roles: AuthRole[];
1550
+ } & _ngrx_store.Action<"[App/Auth] Set User Roles">>;
1551
+ /**
1552
+ * Sets the user's onboarding state.
1553
+ */
1554
+ declare const setUserIsOnboarded: _ngrx_store.ActionCreator<"[App/Auth] Set User Is Onboarded", (props: {
1555
+ isOnboarded: boolean;
1556
+ }) => {
1557
+ isOnboarded: boolean;
1558
+ } & _ngrx_store.Action<"[App/Auth] Set User Is Onboarded">>;
1559
+
1560
+ declare const user_action_d_setUserIdentifier: typeof setUserIdentifier;
1561
+ declare const user_action_d_setUserIsOnboarded: typeof setUserIsOnboarded;
1562
+ declare const user_action_d_setUserRoles: typeof setUserRoles;
1563
+ declare const user_action_d_setUserState: typeof setUserState;
1564
+ declare namespace user_action_d {
1565
+ export {
1566
+ user_action_d_setUserIdentifier as setUserIdentifier,
1567
+ user_action_d_setUserIsOnboarded as setUserIsOnboarded,
1568
+ user_action_d_setUserRoles as setUserRoles,
1569
+ user_action_d_setUserState as setUserState,
1570
+ };
1571
+ }
1572
+
1573
+ declare namespace index_d {
1574
+ export {
1575
+ auth_action_d as DbxAppAuthActions,
1576
+ user_action_d as DbxAppAuthUserActions,
1577
+ };
1578
+ }
1579
+
1580
+ /**
1581
+ * Type that contains the dbx-core contextual ngrx state information for auth.
1582
+ */
1583
+ type DbxAppAuthFullState = State;
1584
+
1585
+ declare enum DbxRouterTransitionEventType {
1586
+ /**
1587
+ * A transition started.
1588
+ */
1589
+ START = "start",
1590
+ /**
1591
+ * A transition ended.
1592
+ */
1593
+ SUCCESS = "success"
1594
+ }
1595
+ interface DbxRouterTransitionEvent {
1596
+ type: DbxRouterTransitionEventType;
1597
+ }
1598
+
1599
+ /**
1600
+ * Router service definition that provides high level information about router transitions.
1601
+ */
1602
+ declare abstract class DbxRouterTransitionService {
1603
+ /**
1604
+ * Observable that emits DbxRouterTransitionEvent values as transitions occur.
1605
+ */
1606
+ abstract readonly transitions$: Observable<DbxRouterTransitionEvent>;
1607
+ }
1608
+
1609
+ /**
1610
+ * Router service definition that can route the app and provide routing details.
1611
+ */
1612
+ declare abstract class DbxRouterService extends DbxRouterTransitionService {
1613
+ /**
1614
+ * Params of the current successfully loaded route.
1615
+ */
1616
+ abstract readonly params$: Observable<SegueRefRawSegueParams>;
1617
+ /**
1618
+ * Navigates to the target SegueRef.
1619
+ *
1620
+ * @param segueRef
1621
+ */
1622
+ abstract go(segueRef: ObservableOrValue<SegueRefOrSegueRefRouterLink>): Promise<boolean>;
1623
+ /**
1624
+ * Navigates to the current url with updated parameters. Will be merged with the existing parameters.
1625
+ *
1626
+ * The new state will replace the current state in the history.
1627
+ *
1628
+ * @param segueRef
1629
+ */
1630
+ abstract updateParams(params: ObservableOrValue<SegueRefRawSegueParams>): Promise<boolean>;
1631
+ /**
1632
+ * Returns true if the input segue ref is considered active.
1633
+ *
1634
+ * @param segueRef
1635
+ */
1636
+ abstract isActive(segueRef: SegueRefOrSegueRefRouterLink): boolean;
1637
+ /**
1638
+ * Returns true if the input segue ref is considered active exactly.
1639
+ *
1640
+ * @param segueRef
1641
+ */
1642
+ abstract isActiveExactly(segueRef: SegueRefOrSegueRefRouterLink): boolean;
1643
+ /**
1644
+ * Compares the two refs for precision for a certain route.
1645
+ *
1646
+ * For example, if the parent route is input with a child route, the child route is
1647
+ * considered more precise.
1648
+ *
1649
+ * @param a
1650
+ * @param b
1651
+ */
1652
+ abstract comparePrecision(a: SegueRefOrSegueRefRouterLink, b: SegueRefOrSegueRefRouterLink): number;
1653
+ }
1654
+
1655
+ /**
1656
+ * Auth routes configurations for an app.
1657
+ */
1658
+ declare abstract class DbxAppAuthRoutes {
1659
+ abstract readonly loginRef: SegueRefOrSegueRefRouterLink;
1660
+ abstract readonly loggedOutRef?: SegueRefOrSegueRefRouterLink;
1661
+ abstract readonly onboardRef?: SegueRefOrSegueRefRouterLink;
1662
+ abstract readonly appRef: SegueRefOrSegueRefRouterLink;
1663
+ }
1664
+
1665
+ /**
1666
+ * Helper service for navigating to important auth-related routes.
1667
+ */
1668
+ declare class DbxAppAuthRouterService implements OnDestroy {
1669
+ readonly dbxRouterService: DbxRouterService;
1670
+ readonly dbxAppAuthRoutes: DbxAppAuthRoutes;
1671
+ private _isAuthRouterEffectsEnabled;
1672
+ readonly isAuthRouterEffectsEnabled$: rxjs.Observable<boolean>;
1673
+ ngOnDestroy(): void;
1674
+ get hasOnboardingState(): boolean;
1675
+ /**
1676
+ * Whether or not DbxAppAuthRouterEffects are enabled.
1677
+ */
1678
+ get isAuthRouterEffectsEnabled(): boolean;
1679
+ set isAuthRouterEffectsEnabled(enabled: boolean);
1680
+ /**
1681
+ * Navigates to the login state.
1682
+ *
1683
+ * @returns
1684
+ */
1685
+ goToLogin(): Promise<boolean>;
1686
+ /**
1687
+ * Navigates to the logged out state, if it exists, otherwise navigates to the login state.
1688
+ *
1689
+ * @returns
1690
+ */
1691
+ goToLoggedOut(): Promise<boolean>;
1692
+ /**
1693
+ * Navigates to the onboarding state if it is available, otherwise navigates to the app.
1694
+ *
1695
+ * @returns
1696
+ */
1697
+ goToOnboarding(): Promise<boolean>;
1698
+ /**
1699
+ * Navigates to the app state.
1700
+ *
1701
+ * @returns
1702
+ */
1703
+ goToApp(): Promise<boolean>;
1704
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxAppAuthRouterService, never>;
1705
+ static ɵprov: i0.ɵɵInjectableDeclaration<DbxAppAuthRouterService>;
1706
+ }
1707
+
1708
+ /**
1709
+ * Used by DbxAppAuthRouterEffects to configure the states that should be activve by default.
1710
+ */
1711
+ declare const DBX_APP_AUTH_ROUTER_EFFECTS_TOKEN: InjectionToken<unknown>;
1712
+ /**
1713
+ * Set of ngrx effects that handle navigation in the app when the auth changes in certain ways.
1714
+ *
1715
+ * Is configurable via the DBX_APP_AUTH_ROUTER_EFFECTS_TOKEN to choose which states this effect is active or not. By default is equal to DBX_KNOWN_APP_CONTEXT_STATES.
1716
+ */
1717
+ declare class DbxAppAuthRouterEffects extends AbstractOnDbxAppContextStateEffects<State> {
1718
+ readonly dbxAppAuthRouterService: DbxAppAuthRouterService;
1719
+ constructor();
1720
+ /**
1721
+ * Effect to redirect to the login when logout occurs.
1722
+ */
1723
+ readonly redirectToLoginOnLogout: rxjs.Observable<boolean> & _ngrx_effects.CreateEffectMetadata;
1724
+ /**
1725
+ * Effect to redirect to the app when login occurs.
1726
+ */
1727
+ readonly redirectToOnboardOnLogIn: rxjs.Observable<boolean> & _ngrx_effects.CreateEffectMetadata;
1728
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxAppAuthRouterEffects, never>;
1729
+ static ɵprov: i0.ɵɵInjectableDeclaration<DbxAppAuthRouterEffects>;
1730
+ }
1731
+
1732
+ /**
1733
+ * Configuration for provideDbxAppAuthRouter().
1734
+ */
1735
+ interface ProvideDbxAppAuthRouterConfig {
1736
+ /**
1737
+ * DbxAppAuthRoutes configuration.
1738
+ */
1739
+ readonly dbxAppAuthRoutes: DbxAppAuthRoutes;
1740
+ }
1741
+ /**
1742
+ * Creates EnvironmentProviders for providing DbxAppAuthRoutes configuration.
1743
+ *
1744
+ * @param config Configuration
1745
+ * @returns EnvironmentProviders
1746
+ */
1747
+ declare function provideDbxAppAuthRouter(config: ProvideDbxAppAuthRouterConfig): EnvironmentProviders;
1748
+
1749
+ /**
1750
+ * Convenience operator that emits events when the input observable goes from false to true.
1751
+ *
1752
+ * @param isLoggedInObs
1753
+ * @returns
1754
+ */
1755
+ declare function loggedInObsFromIsLoggedIn(isLoggedInObs: Observable<boolean>): Observable<void>;
1756
+ /**
1757
+ * Convenience operator that emits events when the input observable goes from true to false.
1758
+ *
1759
+ * @param isLoggedInObs
1760
+ * @returns
1761
+ */
1762
+ declare function loggedOutObsFromIsLoggedIn(isLoggedInObs: Observable<boolean>): Observable<void>;
1763
+ declare function authRolesSetContainsAllRolesFrom(roles: Observable<Maybe<Iterable<AuthRole>>>): OperatorFunction<AuthRoleSet, boolean>;
1764
+ declare function authRolesSetContainsAnyRoleFrom(roles: Observable<Maybe<Iterable<AuthRole>>>): OperatorFunction<AuthRoleSet, boolean>;
1765
+ declare function authRolesSetContainsNoRolesFrom(roles: Observable<Maybe<Iterable<AuthRole>>>): OperatorFunction<AuthRoleSet, boolean>;
1766
+
1767
+ interface ProvideDbxAppAuthConfig extends ProvideDbxAppAuthRouterConfig, ProvideDbxAppAuthRouterStateConfig {
1768
+ }
1769
+ /**
1770
+ * The "all-in-one" provider for an app's dbx-core auth providers.
1771
+ *
1772
+ * @param config Configuration
1773
+ * @returns EnvironmentProviders
1774
+ */
1775
+ declare function provideDbxAppAuth(config: ProvideDbxAppAuthConfig): EnvironmentProviders;
1776
+
1777
+ /**
1778
+ * Structural decorator directive similar to ngIf that embeds content if the current auth user has any of the target role(s).
1779
+ */
1780
+ declare class DbxAuthHasAnyRoleDirective extends AbstractIfDirective {
1781
+ private readonly _authService;
1782
+ readonly targetRoles: i0.InputSignal<Maybe<ArrayOrValue<string>>>;
1783
+ readonly targetRoles$: Observable<Maybe<ArrayOrValue<string>>>;
1784
+ readonly show$: Observable<boolean>;
1785
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxAuthHasAnyRoleDirective, never>;
1786
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxAuthHasAnyRoleDirective, "[dbxAuthHasAnyRole]", never, { "targetRoles": { "alias": "dbxAuthHasAnyRole"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1787
+ }
1788
+
1789
+ /**
1790
+ * Structural decorator directive similar to ngIf that embeds content if the current auth user has all of the target role(s).
1791
+ */
1792
+ declare class DbxAuthHasRolesDirective extends AbstractIfDirective {
1793
+ private readonly _authService;
1794
+ readonly targetRoles: i0.InputSignal<Maybe<ArrayOrValue<string>>>;
1795
+ readonly targetRoles$: Observable<Maybe<ArrayOrValue<string>>>;
1796
+ readonly show$: Observable<boolean>;
1797
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxAuthHasRolesDirective, never>;
1798
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxAuthHasRolesDirective, "[dbxAuthHasRoles]", never, { "targetRoles": { "alias": "dbxAuthHasRoles"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1799
+ }
1800
+
1801
+ /**
1802
+ * Structural decorator directive similar to ngIf that embeds content if the current auth user has none of the target role(s).
1803
+ */
1804
+ declare class DbxAuthNotAnyRoleDirective extends AbstractIfDirective {
1805
+ private readonly _authService;
1806
+ readonly targetRoles: i0.InputSignal<Maybe<ArrayOrValue<string>>>;
1807
+ readonly targetRoles$: Observable<Maybe<ArrayOrValue<string>>>;
1808
+ readonly show$: Observable<boolean>;
1809
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxAuthNotAnyRoleDirective, never>;
1810
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxAuthNotAnyRoleDirective, "[dbxAuthNotAnyRole]", never, { "targetRoles": { "alias": "dbxAuthNotAnyRole"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1811
+ }
1812
+
1813
+ /**
1814
+ * Creates EnvironmentProviders for providing the DbxAppAuth state and effects.
1815
+ *
1816
+ * @returns EnvironmentProviders
1817
+ */
1818
+ declare function provideDbxAppAuthState(): EnvironmentProviders;
1819
+
1820
+ /**
1821
+ * State for accessing the app's DbxAppAuthState defined within the DbxAppAuthFullState for the ngrx store.
1822
+ */
1823
+ declare class DbxAppAuthStateService {
1824
+ readonly store: Store<any>;
1825
+ readonly authStateUser$: rxjs.Observable<DbxAppAuthStateUser>;
1826
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxAppAuthStateService, never>;
1827
+ static ɵprov: i0.ɵɵInjectableDeclaration<DbxAppAuthStateService>;
1828
+ }
1829
+
1830
+ type DbxButtonWorkingProgress = DbxActionWorkProgress;
1831
+ /**
1832
+ * Working state for a button.
1833
+ *
1834
+ * Can be a boolean or a number.
1835
+ *
1836
+ * True is treated as an indeterminate progress.
1837
+ */
1838
+ type DbxButtonWorking = DbxActionWorkOrWorkProgress;
1839
+ /**
1840
+ * Used for intercepting button click events.
1841
+ *
1842
+ * Can be used to delay/modify trigger/click behaviors.
1843
+ */
1844
+ interface DbxButtonInterceptor {
1845
+ /**
1846
+ * Handles a button click event. Returns an observable that will say whether or not to continue the click event.
1847
+ */
1848
+ interceptButtonClick: () => Observable<boolean>;
1849
+ }
1850
+ /**
1851
+ * Text and icon display content for a button.
1852
+ */
1853
+ interface DbxButtonDisplay {
1854
+ /**
1855
+ * button Icon, if applicable
1856
+ */
1857
+ readonly icon?: Maybe<string>;
1858
+ /**
1859
+ * button text, if applicable
1860
+ */
1861
+ readonly text?: Maybe<string>;
1862
+ }
1863
+ declare abstract class DbxButton {
1864
+ /**
1865
+ * Observable of the disabled state of the button.
1866
+ */
1867
+ abstract readonly disabled$: Observable<boolean>;
1868
+ /**
1869
+ * Observable of the working state of the button.
1870
+ */
1871
+ abstract readonly working$: Observable<DbxButtonWorking>;
1872
+ /**
1873
+ * Observable of the clicked event of the button.
1874
+ */
1875
+ abstract readonly clicked$: Observable<unknown>;
1876
+ /**
1877
+ * Observable of the display content of the button.
1878
+ */
1879
+ abstract readonly display$: Observable<DbxButtonDisplay>;
1880
+ /**
1881
+ * Sets the disabled state of the button. If null/undefined the button will be disabled.
1882
+ *
1883
+ * @param disabled
1884
+ */
1885
+ abstract setDisabled(disabled?: Maybe<boolean>): void;
1886
+ /**
1887
+ * Sets the working state of the button.
1888
+ *
1889
+ * If a number is passed, then it is treated as a progress percentage.
1890
+ *
1891
+ * If true is passed, then it is treated as an indeterminate progress.
1892
+ *
1893
+ * If null/undefined is passed, then the button will not be working.
1894
+ */
1895
+ abstract setWorking(working?: Maybe<DbxButtonWorking>): void;
1896
+ /**
1897
+ * Sets the display content of the button.
1898
+ *
1899
+ * @param content
1900
+ */
1901
+ abstract setDisplayContent(content: DbxButtonDisplay): void;
1902
+ /**
1903
+ * Sets the button interceptor. If any interceptor is already set, it is replaced.
1904
+ *
1905
+ * @param interceptor
1906
+ */
1907
+ abstract setButtonInterceptor(interceptor: DbxButtonInterceptor): void;
1908
+ /**
1909
+ * Main function to use for handling clicks on the button.
1910
+ */
1911
+ abstract clickButton(): void;
1912
+ }
1913
+ declare function provideDbxButton<S extends DbxButton>(sourceType: Type<S>): Provider[];
1914
+ /**
1915
+ * The display type of a button.
1916
+ *
1917
+ * text_button: A text button has text or is empty.
1918
+ * icon_button: An icon button only has an icon and no text.
1919
+ */
1920
+ type DbxButtonDisplayType = 'text_button' | 'icon_button';
1921
+ /**
1922
+ * Delegate class used for retrieving the DbxButtonDisplay given an input value.
1923
+ */
1924
+ interface DbxButtonDisplayDelegate<T> {
1925
+ /**
1926
+ * Returns the DbxButtonDisplay for the input value.
1927
+ *
1928
+ * @param value
1929
+ */
1930
+ buttonDisplayContentForValue(value: T): DbxButtonDisplay;
1931
+ }
1932
+ /**
1933
+ * Returns the DbxButtonDisplayType given the input content.
1934
+ *
1935
+ * @param content
1936
+ * @returns
1937
+ */
1938
+ declare function dbxButtonDisplayType(content: DbxButtonDisplay): DbxButtonDisplayType;
1939
+
1940
+ /**
1941
+ * Context used for linking a button to an ActionContext and only look for triggers.
1942
+ */
1943
+ declare class DbxActionButtonTriggerDirective {
1944
+ readonly dbxButton: DbxButton;
1945
+ readonly source: DbxActionContextStoreSourceInstance<any, any>;
1946
+ constructor();
1947
+ protected _buttonClicked(): void;
1948
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionButtonTriggerDirective, never>;
1949
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionButtonTriggerDirective, "[dbxActionButtonTrigger]", never, {}, {}, never, never, true, never>;
1950
+ }
1951
+
1952
+ /**
1953
+ * Context used for linking a button to an ActionContext.
1954
+ */
1955
+ declare class DbxActionButtonDirective extends DbxActionButtonTriggerDirective {
1956
+ constructor();
1957
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionButtonDirective, never>;
1958
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionButtonDirective, "[dbxActionButton]", never, {}, {}, never, never, true, never>;
1959
+ }
1960
+
1961
+ declare class DbxButtonSegueDirective {
1962
+ readonly dbxButton: DbxButton;
1963
+ readonly dbxRouterService: DbxRouterService;
1964
+ readonly segueRef: i0.InputSignal<Maybe<SegueRef<object>>>;
1965
+ constructor();
1966
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxButtonSegueDirective, never>;
1967
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxButtonSegueDirective, "[dbxButtonSegue]", never, { "segueRef": { "alias": "dbxButtonSegue"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1968
+ }
1969
+
1970
+ /**
1971
+ * Abstract button component.
1972
+ */
1973
+ declare abstract class AbstractDbxButtonDirective implements DbxButton {
1974
+ /**
1975
+ * Pre-interceptor button click.
1976
+ */
1977
+ protected readonly _buttonClick: Subject<void>;
1978
+ protected readonly _buttonInterceptor: BehaviorSubject<Maybe<DbxButtonInterceptor>>;
1979
+ readonly buttonClick: i0.OutputEmitterRef<void>;
1980
+ readonly disabled: i0.InputSignalWithTransform<boolean, Maybe<boolean>>;
1981
+ readonly working: i0.InputSignalWithTransform<_dereekb_dbx_core.DbxActionWorkOrWorkProgress, Maybe<_dereekb_dbx_core.DbxActionWorkOrWorkProgress>>;
1982
+ readonly buttonDisplay: i0.InputSignal<Maybe<DbxButtonDisplay>>;
1983
+ private readonly _disabledSignal;
1984
+ private readonly _workingSignal;
1985
+ private readonly _buttonDisplayContentSignal;
1986
+ readonly disabledSignal: Signal<boolean>;
1987
+ readonly workingSignal: Signal<_dereekb_dbx_core.DbxActionWorkOrWorkProgress>;
1988
+ readonly isWorkingSignal: Signal<boolean>;
1989
+ readonly icon: i0.InputSignal<Maybe<string>>;
1990
+ readonly text: i0.InputSignal<Maybe<string>>;
1991
+ readonly buttonDisplayContentSignal: Signal<DbxButtonDisplay>;
1992
+ readonly buttonDisplayTypeSignal: Signal<DbxButtonDisplayType>;
1993
+ readonly iconSignal: Signal<Maybe<string>>;
1994
+ readonly textSignal: Signal<Maybe<string>>;
1995
+ readonly disabled$: rxjs.Observable<boolean>;
1996
+ readonly working$: rxjs.Observable<_dereekb_dbx_core.DbxActionWorkOrWorkProgress>;
1997
+ readonly display$: rxjs.Observable<DbxButtonDisplay>;
1998
+ readonly clicked$: rxjs.Observable<void>;
1999
+ constructor();
2000
+ setDisabled(disabled?: Maybe<boolean>): void;
2001
+ setWorking(working?: Maybe<DbxButtonWorking>): void;
2002
+ setDisplayContent(content: DbxButtonDisplay): void;
2003
+ /**
2004
+ * Sets the button interceptor. If any interceptor is already set, it is replaced.
2005
+ */
2006
+ setButtonInterceptor(interceptor: DbxButtonInterceptor): void;
2007
+ /**
2008
+ * Main function to use for handling clicks on the button.
2009
+ */
2010
+ clickButton(): void;
2011
+ /**
2012
+ * Forces a button click. Skips the interceptors if any are configured.
2013
+ */
2014
+ protected _forceButtonClicked(): void;
2015
+ static ɵfac: i0.ɵɵFactoryDeclaration<AbstractDbxButtonDirective, never>;
2016
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractDbxButtonDirective, never, never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "working": { "alias": "working"; "required": false; "isSignal": true; }; "buttonDisplay": { "alias": "buttonDisplay"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; }, { "buttonClick": "buttonClick"; }, never, never, true, never>;
2017
+ }
2018
+ /**
2019
+ * Provides an DbxButton directive.
2020
+ */
2021
+ declare class DbxButtonDirective extends AbstractDbxButtonDirective {
2022
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxButtonDirective, never>;
2023
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxButtonDirective, "[dbxButton]", ["dbxButton"], {}, {}, never, never, true, never>;
2024
+ }
2025
+
2026
+ /**
2027
+ * Context used for linking a button to a LoadingContext.
2028
+ *
2029
+ * It will be set working when the context is set loading.
2030
+ */
2031
+ declare class DbxLoadingButtonDirective {
2032
+ readonly dbxButton: DbxButton;
2033
+ readonly context: i0.InputSignal<MaybeObservableOrValue<LoadingContext<_dereekb_rxjs.LoadingContextEvent>>>;
2034
+ readonly context$: rxjs.Observable<_dereekb_util.Maybe<LoadingContext<_dereekb_rxjs.LoadingContextEvent>>>;
2035
+ readonly contextSignal: i0.Signal<_dereekb_util.Maybe<LoadingContext<_dereekb_rxjs.LoadingContextEvent>>>;
2036
+ protected readonly _loadingEffectSub: _dereekb_rxjs.SubscriptionObject<rxjs.Unsubscribable>;
2037
+ protected readonly _loadingEffect: i0.EffectRef;
2038
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxLoadingButtonDirective, never>;
2039
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxLoadingButtonDirective, "[dbxLoadingButton]", never, { "context": { "alias": "dbxLoadingButton"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
2040
+ }
2041
+
2042
+ /**
2043
+ * Exports the following directives:
2044
+ * - DbxButtonDirective
2045
+ * - DbxLoadingButtonDirective
2046
+ * - DbxActionButtonTriggerDirective
2047
+ * - DbxActionButtonDirective
2048
+ * - DbxButtonSegueDirective
2049
+ */
2050
+ declare class DbxCoreButtonModule {
2051
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxCoreButtonModule, never>;
2052
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DbxCoreButtonModule, never, [typeof DbxButtonDirective, typeof DbxLoadingButtonDirective, typeof DbxActionButtonTriggerDirective, typeof DbxActionButtonDirective, typeof DbxButtonSegueDirective], [typeof DbxButtonDirective, typeof DbxLoadingButtonDirective, typeof DbxActionButtonTriggerDirective, typeof DbxActionButtonDirective, typeof DbxButtonSegueDirective]>;
2053
+ static ɵinj: i0.ɵɵInjectorDeclaration<DbxCoreButtonModule>;
2054
+ }
2055
+
2056
+ /**
2057
+ * App environment details
2058
+ */
2059
+ declare abstract class DbxAppEnviroment {
2060
+ /**
2061
+ * Whether or not this is a production environment.
2062
+ */
2063
+ abstract production: boolean;
2064
+ /**
2065
+ * Whether or not this is a testing environment.
2066
+ *
2067
+ * Generally "production" is false when this is true.
2068
+ */
2069
+ abstract testing?: boolean;
2070
+ /**
2071
+ * Whether or not this is a staging environment.
2072
+ *
2073
+ * Generally "production" is true when this is true.
2074
+ */
2075
+ abstract staging?: boolean;
2076
+ }
2077
+
2078
+ /**
2079
+ * Service for accessing the app's environment details.
2080
+ */
2081
+ declare class DbxAppEnviromentService {
2082
+ readonly environment: DbxAppEnviroment;
2083
+ get isProduction(): boolean;
2084
+ get isStaging(): boolean;
2085
+ get isTesting(): boolean;
2086
+ /**
2087
+ * Returns the environment, typed as a specific type.
2088
+ */
2089
+ getEnvironment<T extends DbxAppEnviroment>(): T;
2090
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxAppEnviromentService, never>;
2091
+ static ɵprov: i0.ɵɵInjectableDeclaration<DbxAppEnviromentService>;
2092
+ }
2093
+
2094
+ /**
2095
+ * Provides the DbxAppEnviromentService and DbxAppEnviroment.
2096
+ *
2097
+ * @param environment
2098
+ */
2099
+ declare function provideDbxAppEnviroment(environment: DbxAppEnviroment): EnvironmentProviders;
2100
+
2101
+ type MouseEventType = 'enter' | 'leave';
2102
+ interface MouseEventPair<T> {
2103
+ readonly type: MouseEventType;
2104
+ readonly data: T;
2105
+ }
2106
+ interface MousableFunction {
2107
+ onMouse?: (type: MouseEventType, event?: Maybe<MouseEvent>) => void;
2108
+ }
2109
+
2110
+ interface ClickableFunction {
2111
+ readonly onClick?: (event?: Maybe<MouseEvent>) => void;
2112
+ }
2113
+ /**
2114
+ * Represents a clickable href/url configuration.
2115
+ */
2116
+ interface ClickableUrl {
2117
+ /**
2118
+ * href url
2119
+ */
2120
+ readonly url?: string;
2121
+ /**
2122
+ * href target attribute.
2123
+ */
2124
+ readonly target?: string;
2125
+ }
2126
+ declare function clickableUrlInNewTab(url: string | WebsiteUrl): ClickableUrl;
2127
+ declare function clickableUrlMailTo(mailTo: MailToUrlInput): ClickableUrl;
2128
+ declare function clickableUrlTel(tel: PhoneNumber | E164PhoneNumberWithOptionalExtension): ClickableUrl;
2129
+
2130
+ declare const DBX_INJECTION_COMPONENT_DATA: InjectionToken<unknown>;
2131
+ interface DbxInjectionComponentConfig<T = unknown> {
2132
+ /**
2133
+ * Type of Component to initialize.
2134
+ */
2135
+ readonly componentClass: Type<T>;
2136
+ /**
2137
+ * (Optional) providers to provide to the existing injector.
2138
+ */
2139
+ readonly providers?: Maybe<StaticProvider[]>;
2140
+ /**
2141
+ * (Optional) Custom parent injector to use when creating the component.
2142
+ */
2143
+ readonly injector?: Maybe<Injector>;
2144
+ /**
2145
+ * (Optional) Module ref to use when creating the component.
2146
+ */
2147
+ readonly ngModuleRef?: NgModuleRef<unknown>;
2148
+ /**
2149
+ * (Optional) Custom initialization code when an instance is created.
2150
+ *
2151
+ * This is called in an Angular injection context of the created component, so that inject() is available and will be destroyed when the created component is destroyed.
2152
+ */
2153
+ readonly init?: Maybe<(instance: T) => void>;
2154
+ /**
2155
+ * unknown optional data to inject into the component.
2156
+ */
2157
+ readonly data?: Maybe<unknown>;
2158
+ }
2159
+ /**
2160
+ * The injector may be important to where the dbxInjection is getting injected at. Some types may disallow setting a custom parent injector.
2161
+ */
2162
+ type DbxInjectionComponentConfigWithoutInjector<T = unknown> = Omit<DbxInjectionComponentConfig<T>, 'injector'>;
2163
+ type DbxInjectionComponentConfigFactory<I, T = unknown> = FactoryWithRequiredInput<DbxInjectionComponentConfig<T>, I>;
2164
+ interface DbxInjectionTemplateConfig<T = unknown> {
2165
+ /**
2166
+ * Template ref to display.
2167
+ */
2168
+ readonly templateRef?: Maybe<TemplateRef<T>>;
2169
+ /**
2170
+ * View ref to inject.
2171
+ */
2172
+ readonly viewRef?: Maybe<ViewRef>;
2173
+ }
2174
+ /**
2175
+ * Merges multiple configurations into a single configuration.
2176
+ *
2177
+ * @param configs
2178
+ * @returns
2179
+ */
2180
+ declare function mergeDbxInjectionComponentConfigs<T = unknown>(configs: Maybe<Partial<DbxInjectionComponentConfig<T>>>[]): Partial<DbxInjectionComponentConfig<T>>;
2181
+
2182
+ interface ClickableAnchor extends ClickableFunction, MousableFunction, ClickableUrl, Partial<SegueRef> {
2183
+ readonly disabled?: boolean;
2184
+ readonly selected?: boolean;
2185
+ }
2186
+ /**
2187
+ * Title and an optional icon.
2188
+ */
2189
+ interface IconAndTitle {
2190
+ readonly title: string;
2191
+ readonly icon?: Maybe<string>;
2192
+ }
2193
+ interface ClickableAnchorLink extends ClickableAnchor, IconAndTitle {
2194
+ /**
2195
+ * Optional detail string/content.
2196
+ */
2197
+ readonly hint?: string;
2198
+ /**
2199
+ * Custom injection content for this link.
2200
+ */
2201
+ readonly content?: DbxInjectionComponentConfig;
2202
+ }
2203
+ /**
2204
+ * ClickableAnchorLink that definitely has a SegueRef
2205
+ */
2206
+ type ClickableAnchorLinkSegueRef = ClickableAnchorLink & SegueRef;
2207
+ interface ClickableIconAnchorLink extends Omit<ClickableAnchorLink, 'title'> {
2208
+ readonly icon: string;
2209
+ }
2210
+ interface ClickableAnchorLinkTree extends ClickableAnchorLink {
2211
+ readonly children?: ClickableAnchorLinkTree[];
2212
+ }
2213
+ type ExpandedClickableAnchorLinkTree = TreeNode<ClickableAnchorLinkTree>;
2214
+ declare const expandClickableAnchorLinkTreeNode: ExpandTreeFunction<ClickableAnchorLinkTree, ExpandedClickableAnchorLinkTree>;
2215
+ declare const flattenExpandedClickableAnchorLinkTree: FlattenTreeFunction<ExpandedClickableAnchorLinkTree, ExpandedClickableAnchorLinkTree>;
2216
+ declare const flattenExpandedClickableAnchorLinkTreeToLinks: FlattenTreeFunction<ExpandedClickableAnchorLinkTree, ClickableAnchorLinkTree>;
2217
+ /**
2218
+ * Fully expands the given parent link and flattens the tree to a single parent link.
2219
+ *
2220
+ * @param link
2221
+ * @returns
2222
+ */
2223
+ declare function expandClickableAnchorLinkTree(link: ClickableAnchorLinkTree): ExpandedClickableAnchorLinkTree[];
2224
+ /**
2225
+ * Expands an array of links into an array of ExpandedClickableAnchorLinkTree tree values.
2226
+ */
2227
+ declare const expandClickableAnchorLinkTrees: _dereekb_util.ExpandFlattenTreeFunction<ClickableAnchorLinkTree, ExpandedClickableAnchorLinkTree>;
2228
+ /**
2229
+ * Describes the Anchor type given a ClickableAnchor.
2230
+ *
2231
+ * - plain: When the anchor has no specific content but is not disabled. It is a passthrough for the content.
2232
+ * - clickable: When the anchor has a click handler
2233
+ * - sref: When the anchor has a SegueRef
2234
+ * - href: When the anchor has a URL
2235
+ * - disabled: When the anchor is disabled.
2236
+ */
2237
+ type ClickableAnchorType = 'plain' | 'clickable' | 'sref' | 'href' | 'disabled';
2238
+ declare function anchorTypeForAnchor(anchor: Maybe<ClickableAnchor>, disabled?: Maybe<boolean>): ClickableAnchorType;
2239
+ declare abstract class DbxAnchor<T extends ClickableAnchor = ClickableAnchor> {
2240
+ abstract readonly disabled$: Observable<Maybe<boolean>>;
2241
+ abstract readonly selected$: Observable<Maybe<boolean>>;
2242
+ abstract readonly anchor$: Observable<Maybe<T>>;
2243
+ abstract readonly type$: Observable<ClickableAnchorType>;
2244
+ }
2245
+ declare function provideDbxAnchor<S extends DbxAnchor>(sourceType: Type<S>): Provider[];
2246
+
2247
+ /**
2248
+ * Abstract anchor directive.
2249
+ */
2250
+ declare class AbstractDbxAnchorDirective<T extends ClickableAnchor = ClickableAnchor> implements DbxAnchor {
2251
+ readonly ref: i0.ModelSignal<Maybe<SegueRefOrSegueRefRouterLink>>;
2252
+ readonly anchor: i0.ModelSignal<Maybe<T>>;
2253
+ readonly disabled: i0.ModelSignal<Maybe<boolean>>;
2254
+ readonly selected: i0.ModelSignal<Maybe<boolean>>;
2255
+ readonly anchorSignal: i0.Signal<Maybe<T>>;
2256
+ readonly selectedSignal: i0.Signal<boolean | undefined>;
2257
+ readonly typeSignal: i0.Signal<ClickableAnchorType>;
2258
+ readonly disabledSignal: i0.Signal<boolean | undefined>;
2259
+ readonly urlSignal: i0.Signal<string | undefined>;
2260
+ readonly targetSignal: i0.Signal<string | undefined>;
2261
+ readonly anchor$: Observable<Maybe<T>>;
2262
+ readonly disabled$: Observable<Maybe<boolean>>;
2263
+ readonly selected$: Observable<Maybe<boolean>>;
2264
+ readonly type$: Observable<ClickableAnchorType>;
2265
+ setRef(ref: Maybe<SegueRefOrSegueRefRouterLink>): void;
2266
+ setAnchor(anchor: Maybe<T>): void;
2267
+ setDisabled(disabled: Maybe<boolean>): void;
2268
+ setSelected(selected: Maybe<boolean>): void;
2269
+ static ɵfac: i0.ɵɵFactoryDeclaration<AbstractDbxAnchorDirective<any>, never>;
2270
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractDbxAnchorDirective<any>, never, never, { "ref": { "alias": "ref"; "required": false; "isSignal": true; }; "anchor": { "alias": "anchor"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; }, { "ref": "refChange"; "anchor": "anchorChange"; "disabled": "disabledChange"; "selected": "selectedChange"; }, never, never, true, never>;
2271
+ }
2272
+
2273
+ declare const DEFAULT_REDIRECT_FOR_IDENTIFIER_PARAM_VALUE = "0";
2274
+ declare const DEFAULT_REDIRECT_FOR_IDENTIFIER_PARAM_KEY = "id";
2275
+ interface RedirectForIdentifierParamHookInput {
2276
+ /**
2277
+ * Factory that returns an observable that sends the default allowed identifier to use when accessing the resource.
2278
+ */
2279
+ readonly defaultAllowedValue: (authService: DbxAuthService, injector: Injector, transition: Transition) => Observable<ModelKey>;
2280
+ /**
2281
+ * Route parameter to use.
2282
+ *
2283
+ * Defaults to "uid"
2284
+ */
2285
+ readonly idParam?: string;
2286
+ /**
2287
+ * The default param value to check against.
2288
+ *
2289
+ * Defaults to 0.
2290
+ */
2291
+ readonly defaultParamValue?: string;
2292
+ /**
2293
+ * Criteria or route to watch and intercept.
2294
+ */
2295
+ readonly criteria: HookMatchCriteria | string;
2296
+ readonly transitionService: TransitionService;
2297
+ /**
2298
+ * Whether or not the current user can view the target id.
2299
+ *
2300
+ * Can return another identifier, or true to allow access, or false/null/undefined to deny access.
2301
+ */
2302
+ readonly canViewModelWithId: (targetId: ModelKey, authService: DbxAuthService, injector: Injector) => Observable<Maybe<boolean | ModelKey>>;
2303
+ /**
2304
+ * Hook priority
2305
+ */
2306
+ readonly priority?: number;
2307
+ }
2308
+ /**
2309
+ * This hook asserts the user is allowed to view a route with an identifier as a state parameter.
2310
+ */
2311
+ declare function redirectForIdentifierParamHook(input: RedirectForIdentifierParamHookInput): void;
2312
+
2313
+ declare const DEFAULT_REDIRECT_FOR_USER_IDENTIFIER_PARAM_VALUE = "0";
2314
+ declare const DEFAULT_REDIRECT_FOR_USER_IDENTIFIER_PARAM_KEY = "uid";
2315
+ interface RedirectForUserIdentifierParamHookInput {
2316
+ /**
2317
+ * Route parameter to use.
2318
+ *
2319
+ * Defaults to "uid"
2320
+ */
2321
+ readonly uidParam?: string;
2322
+ /**
2323
+ * The default param value to check against.
2324
+ *
2325
+ * Defaults to 0.
2326
+ */
2327
+ readonly defaultParamValue?: string;
2328
+ /**
2329
+ * Criteria or route to watch and intercept.
2330
+ */
2331
+ readonly criteria: HookMatchCriteria | string;
2332
+ readonly transitionService: TransitionService;
2333
+ /**
2334
+ * Whether or not the current user can view the target user.
2335
+ *
2336
+ * Can return another users identifier, or true to allow access, or false/null/undefined to deny access.
2337
+ */
2338
+ readonly canViewUser: (targetUid: AuthUserIdentifier, authService: DbxAuthService, injector: Injector) => Observable<Maybe<boolean | AuthUserIdentifier>>;
2339
+ /**
2340
+ * Hook priority
2341
+ */
2342
+ readonly priority?: number;
2343
+ }
2344
+ /**
2345
+ * This hook asserts the user is allowed to view a route with a user identifier as a parameter.
2346
+ */
2347
+ declare function redirectForUserIdentifierParamHook(input: RedirectForUserIdentifierParamHookInput): void;
2348
+
2349
+ /**
2350
+ * AngularRouter implementation of DbxRouterService and DbxRouterTransitionService.
2351
+ */
2352
+ declare class DbxAngularRouterService implements DbxRouterService, DbxRouterTransitionService {
2353
+ readonly router: Router;
2354
+ readonly activatedRoute: ActivatedRoute;
2355
+ readonly params$: Observable<SegueRefRawSegueParams>;
2356
+ readonly transitions$: Observable<DbxRouterTransitionEvent>;
2357
+ go(input: ObservableOrValue<SegueRefOrSegueRefRouterLink<NavigationExtras | NavigationBehaviorOptions>>): Promise<boolean>;
2358
+ updateParams(inputParams: ObservableOrValue<SegueRefRawSegueParams>): Promise<boolean>;
2359
+ isActive(segueRef: SegueRefOrSegueRefRouterLink): boolean;
2360
+ isActiveExactly(segueRef: SegueRefOrSegueRefRouterLink): boolean;
2361
+ comparePrecision(a: SegueRefOrSegueRefRouterLink, b: SegueRefOrSegueRefRouterLink): number;
2362
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxAngularRouterService, never>;
2363
+ static ɵprov: i0.ɵɵInjectableDeclaration<DbxAngularRouterService>;
2364
+ }
2365
+
2366
+ declare class DbxCoreAngularRouterSegueModule {
2367
+ static forRoot(): ModuleWithProviders<DbxCoreAngularRouterSegueModule>;
2368
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxCoreAngularRouterSegueModule, never>;
2369
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DbxCoreAngularRouterSegueModule, never, never, never>;
2370
+ static ɵinj: i0.ɵɵInjectorDeclaration<DbxCoreAngularRouterSegueModule>;
2371
+ }
2372
+
2373
+ /**
2374
+ * UIRouter implementation of DbxRouterService and DbxRouterTransitionService.
2375
+ */
2376
+ declare class DbxUIRouterService implements DbxRouterService, DbxRouterTransitionService, OnDestroy {
2377
+ readonly state: StateService;
2378
+ readonly transitionService: TransitionService;
2379
+ readonly uiRouterGlobals: UIRouterGlobals;
2380
+ private readonly _params;
2381
+ readonly params$: Observable<SegueRefRawSegueParams>;
2382
+ private readonly _transitions;
2383
+ readonly transitions$: Observable<DbxRouterTransitionEvent>;
2384
+ constructor();
2385
+ ngOnDestroy(): void;
2386
+ get params(): _uirouter_core.StateParams;
2387
+ go(input: ObservableOrValue<SegueRefOrSegueRefRouterLink<TransitionOptions>>): Promise<boolean>;
2388
+ updateParams(inputParams: ObservableOrValue<SegueRefRawSegueParams>): Promise<boolean>;
2389
+ isActive(input: SegueRefOrSegueRefRouterLink): boolean;
2390
+ isActiveExactly(input: SegueRefOrSegueRefRouterLink): boolean;
2391
+ comparePrecision(aInput: SegueRefOrSegueRefRouterLink, bInput: SegueRefOrSegueRefRouterLink): number;
2392
+ isActiveState(input: SegueRefOrSegueRefRouterLink, exactly: boolean): boolean;
2393
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxUIRouterService, never>;
2394
+ static ɵprov: i0.ɵɵInjectableDeclaration<DbxUIRouterService>;
2395
+ }
2396
+
2397
+ /**
2398
+ * Provides a DbxUIRouterService and configures it to provide for DbxRouterService and DbxRouterTransitionService.
2399
+ *
2400
+ * @returns EnvironmentProviders
2401
+ */
2402
+ declare function provideDbxUIRouterService(): EnvironmentProviders;
2403
+
2404
+ /**
2405
+ * Convenience function for filtering success from the input observable.
2406
+ *
2407
+ * @param obs
2408
+ * @returns
2409
+ */
2410
+ declare function successTransition(obs: Observable<DbxRouterTransitionEvent>): Observable<DbxRouterTransitionEvent>;
2411
+ declare function filterTransitionSuccess(): MonoTypeOperatorFunction<DbxRouterTransitionEvent>;
2412
+ declare function filterTransitionEvent(type: DbxRouterTransitionEventType): MonoTypeOperatorFunction<DbxRouterTransitionEvent>;
2413
+ interface LatestSuccessfulRoutesConfigRoute {
2414
+ /**
2415
+ * Route to check if it is active or not.
2416
+ */
2417
+ readonly route: SegueRefOrSegueRefRouterLink;
2418
+ /**
2419
+ * Whether or not to match the route exactly.
2420
+ */
2421
+ readonly activeExactly?: boolean;
2422
+ }
2423
+ /**
2424
+ * latestSuccessfulRoute() config
2425
+ */
2426
+ interface LatestSuccessfulRoutesConfig<T extends LatestSuccessfulRoutesConfigRoute> {
2427
+ readonly dbxRouterTransitionService: DbxRouterTransitionService;
2428
+ readonly dbxRouterService: DbxRouterService;
2429
+ /**
2430
+ * Route or list of routes to check if they're active or not.
2431
+ */
2432
+ readonly routes: ArrayOrValue<T>;
2433
+ }
2434
+ /**
2435
+ * Creates a new observable that uses the input DbxRouterTransitionService and DbxRouterService to determine whether or not any of the configured routes are active.
2436
+ *
2437
+ * @param obs
2438
+ * @param config
2439
+ * @returns
2440
+ */
2441
+ declare function latestSuccessfulRoutes<T extends LatestSuccessfulRoutesConfigRoute>(config: LatestSuccessfulRoutesConfig<T>): Observable<T[]>;
2442
+ /**
2443
+ * isLatestSuccessfulRoute() config
2444
+ */
2445
+ interface IsLatestSuccessfulRouteConfig {
2446
+ readonly dbxRouterTransitionService: DbxRouterTransitionService;
2447
+ readonly dbxRouterService: DbxRouterService;
2448
+ /**
2449
+ * Route or list of routes to check if they're active or not.
2450
+ */
2451
+ readonly routes: ArrayOrValue<SegueRefOrSegueRefRouterLink>;
2452
+ /**
2453
+ * Whether or not to match route activity exactly.
2454
+ */
2455
+ readonly activeExactly?: boolean;
2456
+ }
2457
+ /**
2458
+ * Creates a new observable that uses the input DbxRouterTransitionService and DbxRouterService to determine whether or not any of the configured routes are active.
2459
+ *
2460
+ * @param obs
2461
+ * @param config
2462
+ * @returns
2463
+ */
2464
+ declare function isLatestSuccessfulRoute(config: IsLatestSuccessfulRouteConfig): Observable<boolean>;
2465
+
2466
+ /**
2467
+ * Abstract directive that listens to onSuccess transition events and runs a function.
2468
+ */
2469
+ declare abstract class AbstractTransitionDirective {
2470
+ protected readonly dbxRouterTransitionService: DbxRouterTransitionService;
2471
+ readonly transitionSuccess$: Observable<_dereekb_dbx_core.DbxRouterTransitionEvent>;
2472
+ readonly initAndUpdateOnTransitionSuccess$: Observable<void>;
2473
+ static ɵfac: i0.ɵɵFactoryDeclaration<AbstractTransitionDirective, never>;
2474
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractTransitionDirective, never, never, {}, {}, never, never, true, never>;
2475
+ }
2476
+
2477
+ /**
2478
+ * Abstract directive that listens to onSuccess transition events and runs a function.
2479
+ */
2480
+ declare abstract class AbstractTransitionWatcherDirective extends AbstractTransitionDirective {
2481
+ protected readonly ngZone: NgZone;
2482
+ constructor();
2483
+ protected zoneUpdateForSuccessfulTransition(): void;
2484
+ protected abstract updateForSuccessfulTransition(): void;
2485
+ static ɵfac: i0.ɵɵFactoryDeclaration<AbstractTransitionWatcherDirective, never>;
2486
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractTransitionWatcherDirective, never, never, {}, {}, never, never, true, never>;
2487
+ }
2488
+
2489
+ /**
2490
+ * Function that returns true when the configured segueRef is active.
2491
+ */
2492
+ type IsSegueRefActiveFunction = (() => boolean) & {
2493
+ readonly _segueRef: SegueRefOrSegueRefRouterLink;
2494
+ readonly _activeExactly: boolean;
2495
+ };
2496
+ interface IsSegueRefActiveFunctionConfig {
2497
+ readonly dbxRouterService: DbxRouterService;
2498
+ readonly segueRef: SegueRefOrSegueRefRouterLink;
2499
+ /**
2500
+ * Whether or not to match the route exactly.
2501
+ *
2502
+ * False by default.
2503
+ */
2504
+ readonly activeExactly?: boolean;
2505
+ }
2506
+ /**
2507
+ * Creates an IsSegueRefActiveFunction
2508
+ *
2509
+ * @param config
2510
+ * @returns
2511
+ */
2512
+ declare function isSegueRefActiveFunction(config: IsSegueRefActiveFunctionConfig): IsSegueRefActiveFunction;
2513
+
2514
+ declare function onRouterTransitionEventType(events$: Observable<DbxRouterTransitionEvent>, type: DbxRouterTransitionEventType): Observable<DbxRouterTransitionEvent>;
2515
+ declare function onRouterTransitionSuccessEvent(events$: Observable<DbxRouterTransitionEvent>): Observable<DbxRouterTransitionEvent>;
2516
+ /**
2517
+ * Creates an observable that returns true when the route for the input segueRef is active.
2518
+ *
2519
+ * @param dbxRouterService
2520
+ * @param segueRef
2521
+ */
2522
+ declare function isSegueRefActiveOnTransitionSuccess(config: IsSegueRefActiveFunctionConfig): Observable<boolean>;
2523
+ interface IsSegueRefActiveConfig extends Pick<IsSegueRefActiveFunctionConfig, 'dbxRouterService' | 'activeExactly'> {
2524
+ /**
2525
+ * What to pipe if the input segueRef is null.
2526
+ */
2527
+ readonly defaultIfNull?: boolean;
2528
+ }
2529
+ /**
2530
+ * Operator function that maps the input segueRef to a boolean depending on the current route state.
2531
+ *
2532
+ * @param dbxRouterService
2533
+ * @param segueRef
2534
+ */
2535
+ declare function isSegueRefActive(config: IsSegueRefActiveConfig): OperatorFunction<Maybe<SegueRefOrSegueRefRouterLink>, boolean>;
2536
+
2537
+ /**
2538
+ * Function that will perform navigation with the input route.
2539
+ */
2540
+ type GoWithRouter = (route: ObservableOrValue<SegueRef>) => Promise<boolean>;
2541
+ /**
2542
+ * Creates a GoWithRouter function.
2543
+ *
2544
+ * @param dbxRouterService
2545
+ * @returns
2546
+ */
2547
+ declare function goWithRouter(dbxRouterService: DbxRouterService): (route: ObservableOrValue<SegueRefOrSegueRefRouterLink>) => Promise<boolean>;
2548
+
2549
+ /**
2550
+ * Interface used for reading a single value from the DbxRouterService. Supports a default value.
2551
+ */
2552
+ interface DbxRouteParamReader<T> {
2553
+ /**
2554
+ * The param value as read from the current router state.
2555
+ */
2556
+ readonly paramValue$: Observable<Maybe<T>>;
2557
+ /**
2558
+ * The default value observable.
2559
+ */
2560
+ readonly defaultValue$: Observable<Maybe<T>>;
2561
+ /**
2562
+ * The current value given the paramValue and the defaultValue.
2563
+ */
2564
+ readonly value$: Observable<Maybe<T>>;
2565
+ /**
2566
+ * Returns the current param key.
2567
+ */
2568
+ getParamKey(): string;
2569
+ /**
2570
+ * Sets a new param key. If the value is undefined, the param reader will use the default key.
2571
+ */
2572
+ setParamKey(paramKey: Maybe<string>): void;
2573
+ /**
2574
+ * Sets the default value source.
2575
+ *
2576
+ * @param defaultValue
2577
+ */
2578
+ setDefaultValue(defaultValue: MaybeObservableOrValueGetter<T>): void;
2579
+ /**
2580
+ * Updates the value on the current route for the paramKey.
2581
+ *
2582
+ * @param value
2583
+ */
2584
+ setParamValue(value: MaybeObservableOrValueGetter<T>): void;
2585
+ }
2586
+ interface DbxRouteParamReaderInstance<T> extends DbxRouteParamReader<T>, Destroyable {
2587
+ readonly dbxRouterService: DbxRouterService;
2588
+ readonly paramKey$: Observable<string>;
2589
+ readonly nextDefaultValue$: Observable<Maybe<T>>;
2590
+ readonly value$: Observable<Maybe<T>>;
2591
+ }
2592
+ /**
2593
+ * Creates a new DbxRouteParamReaderInstance from the input.
2594
+ *
2595
+ * @param dbxRouterService
2596
+ * @param defaultParamKey
2597
+ * @param defaultValue
2598
+ * @returns
2599
+ */
2600
+ declare function dbxRouteParamReaderInstance<T>(dbxRouterService: DbxRouterService, defaultParamKey: string, defaultValue?: MaybeObservableOrValueGetter<T>): DbxRouteParamReaderInstance<T>;
2601
+
2602
+ /**
2603
+ * Utility class used in conjuction with a DbxRouteParamReaderInstance to redirect when the default param is not valid.
2604
+ */
2605
+ declare class DbxRouteParamDefaultRedirectInstance<T> implements Initialized, Destroyable {
2606
+ private readonly instance;
2607
+ private readonly _enabled;
2608
+ private readonly _useDefaultFilter;
2609
+ private readonly _sub;
2610
+ constructor(instance: DbxRouteParamReaderInstance<T>);
2611
+ init(): void;
2612
+ destroy(): void;
2613
+ protected redirectWithDefaultValue(value: Maybe<T>): Promise<boolean>;
2614
+ protected redirectWithValue(value: Maybe<T>): Promise<boolean>;
2615
+ get enabled(): boolean;
2616
+ set enabled(enabled: boolean);
2617
+ setUseDefaultFilter(useValueFilter: Maybe<SwitchMapToDefaultFilterFunction<T>>): void;
2618
+ }
2619
+
2620
+ /**
2621
+ * Default identifier used by dbxRouteModelIdParamRedirect() that corresponds to the id param of the model in the current route.
2622
+ */
2623
+ declare const DBX_ROUTE_MODEL_ID_PARAM_DEFAULT_ID_PARAM_KEY = "id";
2624
+ /**
2625
+ * Default identifier used by dbxRouteModelIdParamRedirect() that corresponds to the key param of the model in the current route.
2626
+ */
2627
+ declare const DBX_ROUTE_MODEL_ID_PARAM_DEFAULT_KEY_PARAM_KEY = "key";
2628
+ /**
2629
+ * Default value used by dbxRouteModelIdParamRedirect() for when a value is not available or provided.
2630
+ */
2631
+ declare const DBX_ROUTE_MODEL_ID_PARAM_DEFAULT_USE_PARAM_VALUE = "0";
2632
+ /**
2633
+ * Used to read an id with a specific key from the current route.
2634
+ *
2635
+ * Can be configured to redirect to a default route if a specific value is seen.
2636
+ */
2637
+ interface DbxRouteModelIdParamRedirect extends DbxRouteParamReader<ModelKey> {
2638
+ /**
2639
+ * The id value as it is from the current state's params.
2640
+ */
2641
+ readonly idFromParams$: Observable<Maybe<ModelKey>>;
2642
+ /**
2643
+ * The id value as it is when considering the default value.
2644
+ */
2645
+ readonly id$: Observable<Maybe<ModelKey>>;
2646
+ setRedirectEnabled(redirect: Maybe<boolean>): void;
2647
+ setDecider(decider: string | SwitchMapToDefaultFilterFunction<ModelKey>): void;
2648
+ }
2649
+ /**
2650
+ *DbxRouteModelIdParamRedirect instance
2651
+ */
2652
+ interface DbxRouteModelIdParamRedirectInstance extends DbxRouteModelIdParamRedirect, DbxRouteParamReader<ModelKey>, Initialized, Destroyable {
2653
+ readonly paramValue$: Observable<Maybe<string>>;
2654
+ readonly defaultValue$: Observable<Maybe<string>>;
2655
+ readonly value$: Observable<Maybe<string>>;
2656
+ readonly idFromParams$: Observable<Maybe<ModelKey>>;
2657
+ readonly id$: Observable<Maybe<ModelKey>>;
2658
+ setParamKey(paramKey: Maybe<string>): void;
2659
+ setDefaultValue(defaultValue: MaybeObservableOrValueGetter<string>): void;
2660
+ setRedirectEnabled(redirect: Maybe<boolean>): void;
2661
+ setDecider(decider: string | SwitchMapToDefaultFilterFunction<ModelKey>): void;
2662
+ setParamValue(value: MaybeObservableOrValueGetter<string>): void;
2663
+ }
2664
+ declare function dbxRouteModelKeyParamRedirect(dbxRouterService: DbxRouterService, defaultParamKey?: string): DbxRouteModelIdParamRedirectInstance;
2665
+ declare function dbxRouteModelIdParamRedirect(dbxRouterService: DbxRouterService, defaultParamKey?: string): DbxRouteModelIdParamRedirectInstance;
2666
+
2667
+ /**
2668
+ * DbxRouteModelIdDirective delegate that can recieve an observable of the model id from the route.
2669
+ */
2670
+ declare abstract class DbxRouteModelIdDirectiveDelegate {
2671
+ /**
2672
+ * Passes the param value and computed value from the DbxRouteModelIdDirective to this delegate.
2673
+ *
2674
+ * @param idFromParamsObs
2675
+ * @param computedIdObs
2676
+ */
2677
+ abstract useRouteModelIdParamsObservable(idFromParamsObs: Observable<Maybe<ModelKey>>, computedIdObs: Observable<Maybe<ModelKey>>): Subscription;
2678
+ }
2679
+ /**
2680
+ * Configures providers for a DbxRouteModelIdDirectiveDelegate.
2681
+ */
2682
+ declare function provideDbxRouteModelIdDirectiveDelegate<S extends DbxRouteModelIdDirectiveDelegate>(sourceType: Type<S>): Provider[];
2683
+ /**
2684
+ * DbxRouteModelKeyDirective delegate that can recieve an observable of the model id from the route.
2685
+ */
2686
+ declare abstract class DbxRouteModelKeyDirectiveDelegate {
2687
+ /**
2688
+ * Passes the param value and computed value from the DbxRouteModelKeyDirective to this delegate.
2689
+ *
2690
+ * @param keyFromParamsObs
2691
+ * @param computedKeyObs
2692
+ */
2693
+ abstract useRouteModelKeyParamsObservable(keyFromParamsObs: Observable<Maybe<ModelKey>>, computedKeyObs: Observable<Maybe<ModelKey>>): Subscription;
2694
+ }
2695
+ /**
2696
+ * Configures providers for a DbxRouteModelKeyDirectiveDelegate.
2697
+ */
2698
+ declare function provideDbxRouteModelKeyDirectiveDelegate<S extends DbxRouteModelKeyDirectiveDelegate>(sourceType: Type<S>): Provider[];
2699
+
2700
+ /**
2701
+ * Used for retrieving the user's current id DbxAuthService and passes it as an identifier for a DbxRouteModelIdDirectiveDelegate.
2702
+ */
2703
+ declare class DbxRouteModelIdFromAuthUserIdDirective {
2704
+ readonly dbxAuthService: DbxAuthService;
2705
+ readonly dbxRouteModelIdDelegate: DbxRouteModelIdDirectiveDelegate;
2706
+ constructor();
2707
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxRouteModelIdFromAuthUserIdDirective, never>;
2708
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxRouteModelIdFromAuthUserIdDirective, "[dbxRouteModelIdFromAuthUserId]", never, {}, {}, never, never, true, never>;
2709
+ }
2710
+
2711
+ /**
2712
+ * Used for retrieving the model's id from the current route using the configured parameter and passes it to its delegate.
2713
+ */
2714
+ declare class DbxRouteModelIdDirective {
2715
+ readonly dbxRouterService: DbxRouterService;
2716
+ readonly dbxRouteModelIdDelegate: DbxRouteModelIdDirectiveDelegate;
2717
+ private readonly _redirectInstance;
2718
+ readonly idFromParams$: Observable<Maybe<ModelKey>>;
2719
+ readonly id$: Observable<Maybe<ModelKey>>;
2720
+ constructor();
2721
+ get idParam(): string;
2722
+ set idParam(idParam: string);
2723
+ set dbxRouteModelIdDefault(defaultValue: MaybeObservableOrValueGetter<ModelKey>);
2724
+ /**
2725
+ * Whether or not to enable the redirection. Is enabled by default.
2726
+ */
2727
+ set dbxRouteModelIdDefaultRedirect(redirect: Maybe<boolean> | '');
2728
+ set dbxRouteModelIdDefaultDecision(decider: string | SwitchMapToDefaultFilterFunction<ModelKey>);
2729
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxRouteModelIdDirective, never>;
2730
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxRouteModelIdDirective, "[dbxRouteModelId]", never, { "idParam": { "alias": "dbxRouteModelId"; "required": false; }; "dbxRouteModelIdDefault": { "alias": "dbxRouteModelIdDefault"; "required": false; }; "dbxRouteModelIdDefaultRedirect": { "alias": "dbxRouteModelIdDefaultRedirect"; "required": false; }; "dbxRouteModelIdDefaultDecision": { "alias": "dbxRouteModelIdDefaultDecision"; "required": false; }; }, {}, never, never, true, never>;
2731
+ }
2732
+
2733
+ /**
2734
+ * Used for retrieving the model's key from the current route using the configured parameter and passes it to its delegate.
2735
+ *
2736
+ * If the key does not exist in the params, then the p
2737
+ */
2738
+ declare class DbxRouteModelKeyDirective {
2739
+ readonly dbxRouterService: DbxRouterService;
2740
+ readonly dbxRouteModelKeyDelegate: DbxRouteModelKeyDirectiveDelegate;
2741
+ private readonly _redirectInstance;
2742
+ readonly keyFromParams$: Observable<Maybe<ModelKey>>;
2743
+ readonly key$: Observable<Maybe<ModelKey>>;
2744
+ constructor();
2745
+ get keyParam(): string;
2746
+ set keyParam(idParam: string);
2747
+ set dbxRouteModelKeyDefault(defaultValue: MaybeObservableOrValueGetter<ModelKey>);
2748
+ /**
2749
+ * Whether or not to enable the redirection. Is enabled by default.
2750
+ */
2751
+ set dbxRouteModelKeyDefaultRedirect(redirect: Maybe<boolean> | '');
2752
+ set dbxRouteModelKeyDefaultDecision(decider: string | SwitchMapToDefaultFilterFunction<ModelKey>);
2753
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxRouteModelKeyDirective, never>;
2754
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxRouteModelKeyDirective, "[dbxRouteModelKey]", never, { "keyParam": { "alias": "dbxRouteModelKey"; "required": false; }; "dbxRouteModelKeyDefault": { "alias": "dbxRouteModelKeyDefault"; "required": false; }; "dbxRouteModelKeyDefaultRedirect": { "alias": "dbxRouteModelKeyDefaultRedirect"; "required": false; }; "dbxRouteModelKeyDefaultDecision": { "alias": "dbxRouteModelKeyDefaultDecision"; "required": false; }; }, {}, never, never, true, never>;
2755
+ }
2756
+
2757
+ /**
2758
+ * Pipes an ObservableOrValueGetter to an Observable value.
2759
+ */
2760
+ declare class AsObservablePipe implements PipeTransform {
2761
+ transform<T>(input: ObservableOrValueGetter<T>): Observable<T>;
2762
+ static ɵfac: i0.ɵɵFactoryDeclaration<AsObservablePipe, never>;
2763
+ static ɵpipe: i0.ɵɵPipeDeclaration<AsObservablePipe, "asObservable", true>;
2764
+ }
2765
+
2766
+ declare class DateDayRangePipe implements PipeTransform {
2767
+ transform(input: Maybe<DateRange>, unavailable?: string): string;
2768
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateDayRangePipe, never>;
2769
+ static ɵpipe: i0.ɵɵPipeDeclaration<DateDayRangePipe, "dateDayRange", true>;
2770
+ }
2771
+
2772
+ declare class DateDistancePipe implements PipeTransform {
2773
+ transform(input: Maybe<DateOrDateString>, inputTo?: Maybe<Date>, unavailable?: string): string;
2774
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateDistancePipe, never>;
2775
+ static ɵpipe: i0.ɵɵPipeDeclaration<DateDistancePipe, "dateDistance", true>;
2776
+ }
2777
+
2778
+ /**
2779
+ * Pipe that takes in a date and appends the distance to it in parenthesis.
2780
+ */
2781
+ declare class DateFormatDistancePipe implements PipeTransform {
2782
+ private readonly locale;
2783
+ transform(input: Maybe<DateOrDateString>, format: string, includeSeconds?: boolean): Maybe<string>;
2784
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateFormatDistancePipe, never>;
2785
+ static ɵpipe: i0.ɵɵPipeDeclaration<DateFormatDistancePipe, "dateFormatDistance", true>;
2786
+ }
2787
+
2788
+ /**
2789
+ * Pipe that takes in a date and number of minutes and outputs a formatted date.
2790
+ */
2791
+ declare class DateFormatFromToPipe implements PipeTransform {
2792
+ private readonly locale;
2793
+ static formatFromTo(input: Maybe<DateOrDateString>, format: string, minutes: number, locale: string): Maybe<string>;
2794
+ transform(input: Maybe<DateOrDateString>, format: string, minutes: number): Maybe<string>;
2795
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateFormatFromToPipe, never>;
2796
+ static ɵpipe: i0.ɵɵPipeDeclaration<DateFormatFromToPipe, "dateFormatFromTo", true>;
2797
+ }
2798
+
2799
+ declare class DateDayTimeRangePipe implements PipeTransform {
2800
+ transform(input: Maybe<DateRange>, unavailable?: string): string;
2801
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateDayTimeRangePipe, never>;
2802
+ static ɵpipe: i0.ɵɵPipeDeclaration<DateDayTimeRangePipe, "dateDayTimeRange", true>;
2803
+ }
2804
+
2805
+ declare class DateTimeRangePipe implements PipeTransform {
2806
+ transform(input: Maybe<DateRange>, unavailable?: string): string;
2807
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateTimeRangePipe, never>;
2808
+ static ɵpipe: i0.ɵɵPipeDeclaration<DateTimeRangePipe, "dateTimeRange", true>;
2809
+ }
2810
+
2811
+ declare class DateRangeDistancePipe implements PipeTransform {
2812
+ transform(input: Maybe<Date | DateRange>, unavailable?: string): string;
2813
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateRangeDistancePipe, never>;
2814
+ static ɵpipe: i0.ɵɵPipeDeclaration<DateRangeDistancePipe, "dateRangeDistance", true>;
2815
+ }
2816
+
2817
+ declare class DateTimeRangeOnlyPipe implements PipeTransform {
2818
+ transform(input: Maybe<DateRange>, unavailable?: string): string;
2819
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateTimeRangeOnlyPipe, never>;
2820
+ static ɵpipe: i0.ɵɵPipeDeclaration<DateTimeRangeOnlyPipe, "dateTimeRangeOnly", true>;
2821
+ }
2822
+
2823
+ /**
2824
+ * Converts the input date and timezone to a system date that represents that date/time.
2825
+ */
2826
+ declare class TargetDateToSystemDatePipe implements PipeTransform {
2827
+ transform(input: Maybe<Date>, timezone: Maybe<TimezoneString>): Maybe<Date>;
2828
+ static ɵfac: i0.ɵɵFactoryDeclaration<TargetDateToSystemDatePipe, never>;
2829
+ static ɵpipe: i0.ɵɵPipeDeclaration<TargetDateToSystemDatePipe, "targetDateToSystemDate", true>;
2830
+ }
2831
+
2832
+ declare class DateTimeRangeOnlyDistancePipe implements PipeTransform {
2833
+ transform(input: Maybe<DateRange>, config?: FormatDateRangeDistanceFunctionConfig, unavailable?: string): string;
2834
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateTimeRangeOnlyDistancePipe, never>;
2835
+ static ɵpipe: i0.ɵɵPipeDeclaration<DateTimeRangeOnlyDistancePipe, "dateTimeRangeOnlyDistance", true>;
2836
+ }
2837
+
2838
+ /**
2839
+ * Converts the input date and timezone to the proper abbreviation. Uses the input date for the context, or uses now.
2840
+ */
2841
+ declare class TimezoneAbbreviationPipe implements PipeTransform {
2842
+ transform(timezone: Maybe<TimezoneString>, input?: Maybe<Date>): Maybe<string>;
2843
+ static ɵfac: i0.ɵɵFactoryDeclaration<TimezoneAbbreviationPipe, never>;
2844
+ static ɵpipe: i0.ɵɵPipeDeclaration<TimezoneAbbreviationPipe, "timezoneAbbreviation", true>;
2845
+ }
2846
+
2847
+ /**
2848
+ * Converts the input date and timezone to a target date that represents that date/time for the timezone.
2849
+ */
2850
+ declare class SystemDateToTargetDatePipe implements PipeTransform {
2851
+ transform(input: Maybe<Date>, timezone: Maybe<TimezoneString>): Maybe<Date>;
2852
+ static ɵfac: i0.ɵɵFactoryDeclaration<SystemDateToTargetDatePipe, never>;
2853
+ static ɵpipe: i0.ɵɵPipeDeclaration<SystemDateToTargetDatePipe, "systemDateToTargetDate", true>;
2854
+ }
2855
+
2856
+ declare class MinutesStringPipe implements PipeTransform {
2857
+ transform(input: Maybe<number | string>): Maybe<string>;
2858
+ static ɵfac: i0.ɵɵFactoryDeclaration<MinutesStringPipe, never>;
2859
+ static ɵpipe: i0.ɵɵPipeDeclaration<MinutesStringPipe, "minutesString", true>;
2860
+ }
2861
+
2862
+ declare class TimeDistanceCountdownPipe implements PipeTransform {
2863
+ transform(input: Maybe<DateOrDateString>, soonString?: string, unavailable?: string): string;
2864
+ static ɵfac: i0.ɵɵFactoryDeclaration<TimeDistanceCountdownPipe, never>;
2865
+ static ɵpipe: i0.ɵɵPipeDeclaration<TimeDistanceCountdownPipe, "timeCountdownDistance", true>;
2866
+ }
2867
+ declare class TimeDistancePipe implements PipeTransform {
2868
+ transform(input: Maybe<DateOrDateString>, to?: Maybe<Date>, unavailable?: string): string;
2869
+ static ɵfac: i0.ɵɵFactoryDeclaration<TimeDistancePipe, never>;
2870
+ static ɵpipe: i0.ɵɵPipeDeclaration<TimeDistancePipe, "timeDistance", true>;
2871
+ }
2872
+
2873
+ declare class ToJsDatePipe implements PipeTransform {
2874
+ static toJsDate(input: DateOrDateString): Date;
2875
+ static toJsDate(input: Maybe<DateOrDateString>): Maybe<Date>;
2876
+ transform(input: Maybe<DateOrDateString>): Maybe<Date>;
2877
+ static ɵfac: i0.ɵɵFactoryDeclaration<ToJsDatePipe, never>;
2878
+ static ɵpipe: i0.ɵɵPipeDeclaration<ToJsDatePipe, "toJsDate", true>;
2879
+ }
2880
+
2881
+ declare class ToMinutesPipe implements PipeTransform {
2882
+ transform(milliseconds: number): number;
2883
+ static ɵfac: i0.ɵɵFactoryDeclaration<ToMinutesPipe, never>;
2884
+ static ɵpipe: i0.ɵɵPipeDeclaration<ToMinutesPipe, "toMinutes", true>;
2885
+ }
2886
+
2887
+ declare class PrettyJsonPipe implements PipeTransform {
2888
+ static toPrettyJson(input: Maybe<unknown>, spacing?: number): Maybe<string>;
2889
+ transform(input: Maybe<unknown>, spacing?: number): Maybe<string>;
2890
+ static ɵfac: i0.ɵɵFactoryDeclaration<PrettyJsonPipe, never>;
2891
+ static ɵpipe: i0.ɵɵPipeDeclaration<PrettyJsonPipe, "prettyjson", true>;
2892
+ }
2893
+
2894
+ /**
2895
+ * Pipe that cuts the input text to the requested length and adds elipsis.
2896
+ */
2897
+ declare class CutTextPipe implements PipeTransform {
2898
+ transform(input: Maybe<string>, maxLength: number, endText?: Maybe<string>): Maybe<string>;
2899
+ static ɵfac: i0.ɵɵFactoryDeclaration<CutTextPipe, never>;
2900
+ static ɵpipe: i0.ɵɵPipeDeclaration<CutTextPipe, "cutText", true>;
2901
+ }
2902
+
2903
+ /**
2904
+ * Retrieves the value from the getter. This is a non-pure pipe. Use the getValueOncePipe instead for a pure pipe.
2905
+ */
2906
+ declare class GetValuePipe implements PipeTransform {
2907
+ transform<T, A = any>(input: GetterOrValue<T>, args?: A): T;
2908
+ static ɵfac: i0.ɵɵFactoryDeclaration<GetValuePipe, never>;
2909
+ static ɵpipe: i0.ɵɵPipeDeclaration<GetValuePipe, "getValue", true>;
2910
+ }
2911
+ /**
2912
+ * Pipes a GetValuePipe to an Observable value.
2913
+ */
2914
+ declare class GetValueOncePipe implements PipeTransform {
2915
+ transform<T, A = any>(input: GetterOrValue<T>, args?: A): T;
2916
+ static ɵfac: i0.ɵɵFactoryDeclaration<GetValueOncePipe, never>;
2917
+ static ɵpipe: i0.ɵɵPipeDeclaration<GetValueOncePipe, "getValueOnce", true>;
2918
+ }
2919
+
2920
+ /**
2921
+ * Pipe that takes in a number and returns the number formatted as a dollar using dollarAmountString().
2922
+ *
2923
+ * Can provide a default string value to use when the input is null or undefined.
2924
+ */
2925
+ declare class DollarAmountPipe implements PipeTransform {
2926
+ transform(input: Maybe<number>, defaultIfNull?: Maybe<string>): Maybe<string>;
2927
+ static ɵfac: i0.ɵɵFactoryDeclaration<DollarAmountPipe, never>;
2928
+ static ɵpipe: i0.ɵɵPipeDeclaration<DollarAmountPipe, "dollarAmount", true>;
2929
+ }
2930
+
2931
+ /**
2932
+ * Abstract FilterSourceConnector directive.
2933
+ */
2934
+ declare abstract class AbstractFilterSourceConnectorDirective<F> implements FilterSourceConnector<F>, FilterSource<F> {
2935
+ private readonly _source;
2936
+ readonly filter$: Observable<F>;
2937
+ connectWithSource(filterSource: FilterSource<F>): void;
2938
+ static ɵfac: i0.ɵɵFactoryDeclaration<AbstractFilterSourceConnectorDirective<any>, never>;
2939
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractFilterSourceConnectorDirective<any>, never, never, {}, {}, never, never, true, never>;
2940
+ }
2941
+
2942
+ declare const FILTER_SOURCE_DIRECTIVE_DEFAULT_FILTER_TOKEN: InjectionToken<Maybe<Observable<unknown>>>;
2943
+ declare abstract class FilterSourceDirective<F = unknown> implements FilterSource<F> {
2944
+ abstract readonly filter$: Observable<F>;
2945
+ abstract initWithFilter(filterObs: Observable<F>): void;
2946
+ abstract setFilter(filter: F): void;
2947
+ abstract resetFilter(): void;
2948
+ }
2949
+ type ProvideFilterSourceDirectiveDefaultFilterFactoryFunction<F = unknown> = (injector: Injector) => MaybeObservableOrValue<F>;
2950
+ /**
2951
+ * Angular provider convenience function for a FilterSourceDirective.
2952
+ */
2953
+ declare function provideFilterSourceDirective<S extends FilterSourceDirective<F>, F = unknown>(sourceType: Type<S>, defaultFilterFactory?: ProvideFilterSourceDirectiveDefaultFilterFactoryFunction): Provider[];
2954
+ /**
2955
+ * Abstract FilterSource implementation and directive.
2956
+ */
2957
+ declare abstract class AbstractFilterSourceDirective<F = unknown> implements FilterSourceDirective<F>, OnDestroy {
2958
+ private readonly _defaultFilter;
2959
+ protected readonly _defaultFilterSource: FilterSourceInstance<F>;
2960
+ readonly filter$: Observable<F>;
2961
+ ngOnDestroy(): void;
2962
+ protected setDefaultFilter(defaultFilter: Observable<Maybe<F>>): void;
2963
+ initWithFilter(filterObs: Observable<F>): void;
2964
+ setFilter(filter: F): void;
2965
+ resetFilter(): void;
2966
+ setInitialFilterTakesPriority(initialFilterTakesPriority: boolean): void;
2967
+ static ɵfac: i0.ɵɵFactoryDeclaration<AbstractFilterSourceDirective<any>, never>;
2968
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractFilterSourceDirective<any>, never, never, {}, {}, never, never, true, never>;
2969
+ }
2970
+
2971
+ /**
2972
+ * Connects the host FilterSource to a FilterSourceConnector.
2973
+ */
2974
+ declare class DbxFilterConnectSourceDirective<F = unknown> implements OnInit {
2975
+ readonly filterSource: FilterSource<any>;
2976
+ readonly filterSourceConnector: FilterSourceConnector<any>;
2977
+ ngOnInit(): void;
2978
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxFilterConnectSourceDirective<any>, never>;
2979
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFilterConnectSourceDirective<any>, "[dbxFilterConnectSource]", never, {}, {}, never, never, true, never>;
2980
+ }
2981
+
2982
+ /**
2983
+ * Used as a FilterSource and FilterSourceConnector.
2984
+ */
2985
+ declare class DbxFilterSourceConnectorDirective<F = unknown> extends AbstractFilterSourceConnectorDirective<F> {
2986
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxFilterSourceConnectorDirective<any>, never>;
2987
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFilterSourceConnectorDirective<any>, "[dbxFilterSourceConnector]", never, {}, {}, never, never, true, never>;
2988
+ }
2989
+
2990
+ /**
2991
+ * Angular provider convenience function for a FilterSource.
2992
+ */
2993
+ declare function provideFilterSource<S extends FilterSource>(sourceType: Type<S>): Provider[];
2994
+ /**
2995
+ * Angular provider convenience function for a FilterSourceConnector.
2996
+ */
2997
+ declare function provideFilterSourceConnector<S extends FilterSourceConnector>(sourceType: Type<S>): Provider[];
2998
+
2999
+ /**
3000
+ * Provides a FilterSource from a parent FilterMap.
3001
+ */
3002
+ declare abstract class AbstractDbxFilterMapInstanceDirective<F> implements OnDestroy {
3003
+ readonly dbxFilterMap: FilterMap<any>;
3004
+ private readonly _currentFilterMapKey;
3005
+ readonly filterMapKey$: rxjs.Observable<string>;
3006
+ readonly instance$: rxjs.Observable<_dereekb_rxjs.FilterMapKeyInstance<any>>;
3007
+ ngOnDestroy(): void;
3008
+ setFilterMapKey(filterMapKey: MaybeObservableOrValue<FilterMapKey>): void;
3009
+ static ɵfac: i0.ɵɵFactoryDeclaration<AbstractDbxFilterMapInstanceDirective<any>, never>;
3010
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractDbxFilterMapInstanceDirective<any>, never, never, {}, {}, never, never, true, never>;
3011
+ }
3012
+
3013
+ /**
3014
+ * Abstract directive that extends AbstractDbxFilterMapInstanceDirective and implements FilterSource.
3015
+ */
3016
+ declare abstract class AbstractDbxFilterMapSourceDirective<F> extends AbstractDbxFilterMapInstanceDirective<F> implements FilterSource<F> {
3017
+ readonly filter$: Observable<F>;
3018
+ initWithFilter(filterObs: Observable<F>): void;
3019
+ static ɵfac: i0.ɵɵFactoryDeclaration<AbstractDbxFilterMapSourceDirective<any>, never>;
3020
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractDbxFilterMapSourceDirective<any>, never, never, {}, {}, never, never, true, never>;
3021
+ }
3022
+ /**
3023
+ * Provides a FilterSource from a parent FilterMap.
3024
+ */
3025
+ declare class DbxFilterMapSourceDirective<F> extends AbstractDbxFilterMapSourceDirective<F> implements FilterSource<F> {
3026
+ readonly dbxFilterMapSource: i0.InputSignal<Maybe<string>>;
3027
+ protected readonly _dbxFilterMapSourceEffect: i0.EffectRef;
3028
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxFilterMapSourceDirective<any>, never>;
3029
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFilterMapSourceDirective<any>, "[dbxFilterMapSource]", ["dbxFilterMapSource"], { "dbxFilterMapSource": { "alias": "dbxFilterMapSource"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
3030
+ }
3031
+
3032
+ /**
3033
+ * Acts as an "input" FilterSourceConnector for an FilterMap, as well as a source for the FilterSourceConnector.
3034
+ */
3035
+ declare class DbxFilterMapSourceConnectorDirective<F> extends AbstractDbxFilterMapSourceDirective<F> implements FilterSourceConnector<F> {
3036
+ readonly dbxFilterMapSourceConnector: i0.InputSignal<Maybe<string>>;
3037
+ protected readonly _dbxFilterMapSourceConnectorEffect: i0.EffectRef;
3038
+ connectWithSource(filterSource: FilterSource<F>): void;
3039
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxFilterMapSourceConnectorDirective<any>, never>;
3040
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFilterMapSourceConnectorDirective<any>, "[dbxFilterMapSourceConnector]", ["dbxFilterMapSourceConnector"], { "dbxFilterMapSourceConnector": { "alias": "dbxFilterMapSourceConnector"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
3041
+ }
3042
+
3043
+ /**
3044
+ * Direction that provides a FilterMap.
3045
+ */
3046
+ declare class DbxFilterMapDirective<F> {
3047
+ readonly filterMap: FilterMap<any>;
3048
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxFilterMapDirective<any>, never>;
3049
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFilterMapDirective<any>, "[dbxFilterMap]", ["dbxFilterMap"], {}, {}, never, never, true, never>;
3050
+ }
3051
+
3052
+ interface ClickableFilterPreset<F extends FilterWithPreset<P>, P extends string = string> extends Pick<ClickableAnchorLink, 'title' | 'icon' | 'disabled'>, FilterPresetStringRef<P> {
3053
+ /**
3054
+ * GetterOrValue that retrieves the filter for this preset.
3055
+ *
3056
+ * A null value or empty object is used for reset.
3057
+ */
3058
+ readonly presetValue: GetterOrValue<FilterWithPresetOptional<F>> | EmptyObject | null;
3059
+ }
3060
+ declare function isClickableFilterPreset<F extends FilterWithPreset<P>, P extends string = string>(preset: object): preset is ClickableFilterPreset<F, P>;
3061
+ interface ClickablePartialFilterPreset<F> extends Pick<ClickableAnchorLink, 'title' | 'icon' | 'disabled'> {
3062
+ /**
3063
+ * GetterOrValue that retrieves the partial filter value.
3064
+ *
3065
+ * A null value or empty object is used for no change.
3066
+ */
3067
+ readonly partialPresetValue: GetterOrValue<Partial<F>> | EmptyObject | null;
3068
+ /**
3069
+ * The current value to test against. Returns true if this partial preset is considered active.
3070
+ */
3071
+ readonly isActive: (currentFilter: Maybe<Partial<F>>) => boolean;
3072
+ }
3073
+ declare function isClickablePartialFilterPreset<F>(preset: object): preset is ClickablePartialFilterPreset<F>;
3074
+ /**
3075
+ * Convenience type for either a ClickableFilterPreset or a ClickablePartialFilterPreset of the same type.
3076
+ */
3077
+ type ClickableFilterPresetOrPartialPreset<F extends FilterWithPreset<P>, P extends string = string> = ClickableFilterPreset<F, P> | ClickablePartialFilterPreset<F>;
3078
+
3079
+ /**
3080
+ * Basic filter source directive.
3081
+ */
3082
+ declare class DbxFilterSourceDirective<F> extends AbstractFilterSourceDirective<F> {
3083
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxFilterSourceDirective<any>, never>;
3084
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFilterSourceDirective<any>, "[dbxFilterSource]", never, {}, {}, never, never, true, never>;
3085
+ }
3086
+
3087
+ declare class DbxCoreFilterModule {
3088
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxCoreFilterModule, never>;
3089
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DbxCoreFilterModule, never, [typeof DbxFilterSourceDirective, typeof DbxFilterMapSourceConnectorDirective, typeof DbxFilterConnectSourceDirective, typeof DbxFilterSourceConnectorDirective, typeof DbxFilterMapDirective, typeof DbxFilterMapSourceDirective], [typeof DbxFilterSourceDirective, typeof DbxFilterMapSourceConnectorDirective, typeof DbxFilterConnectSourceDirective, typeof DbxFilterSourceConnectorDirective, typeof DbxFilterMapDirective, typeof DbxFilterMapSourceDirective]>;
3090
+ static ɵinj: i0.ɵɵInjectorDeclaration<DbxCoreFilterModule>;
3091
+ }
3092
+
3093
+ /**
3094
+ * A keyed configuration entry
3095
+ */
3096
+ interface DbxInjectionArrayEntry<T = unknown> extends ModelKeyRef {
3097
+ /**
3098
+ * Observable or value containing the DbxInjectionComponentConfig.
3099
+ */
3100
+ readonly injectionConfig: ObservableOrValueGetter<DbxInjectionComponentConfig<T>>;
3101
+ }
3102
+
3103
+ /**
3104
+ * Component that injects content based on the configuration into the view.
3105
+ */
3106
+ declare class DbxInjectionArrayComponent {
3107
+ readonly entries: i0.InputSignal<Maybe<DbxInjectionArrayEntry<unknown>[]>>;
3108
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxInjectionArrayComponent, never>;
3109
+ static ɵcmp: i0.ɵɵComponentDeclaration<DbxInjectionArrayComponent, "dbx-injection-array", never, { "entries": { "alias": "entries"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
3110
+ }
3111
+
3112
+ /**
3113
+ * Abstract directive that injects content based on the configuration into the view.
3114
+ */
3115
+ declare abstract class AbstractDbxInjectionDirective<T> implements OnInit, OnDestroy {
3116
+ private readonly _instance;
3117
+ ngOnInit(): void;
3118
+ ngOnDestroy(): void;
3119
+ setConfig(config: Maybe<ObservableOrValueGetter<Maybe<DbxInjectionComponentConfig<T>>>>): void;
3120
+ setTemplate(template: Maybe<ObservableOrValueGetter<Maybe<DbxInjectionTemplateConfig<T>>>>): void;
3121
+ setContent(content: Maybe<ViewContainerRef>): void;
3122
+ static ɵfac: i0.ɵɵFactoryDeclaration<AbstractDbxInjectionDirective<any>, never>;
3123
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractDbxInjectionDirective<any>, never, never, {}, {}, never, never, true, never>;
3124
+ }
3125
+
3126
+ /**
3127
+ * Component that injects content based on the configuration into the view.
3128
+ */
3129
+ declare class DbxInjectionComponent<T> extends AbstractDbxInjectionDirective<T> {
3130
+ readonly content: i0.Signal<ViewContainerRef | undefined>;
3131
+ readonly config: i0.InputSignal<Maybe<ObservableOrValueGetter<Maybe<DbxInjectionComponentConfig<T>>>>>;
3132
+ readonly template: i0.InputSignal<Maybe<ObservableOrValueGetter<Maybe<DbxInjectionTemplateConfig<T>>>>>;
3133
+ protected readonly _contentEffect: i0.EffectRef;
3134
+ protected readonly _configEffect: i0.EffectRef;
3135
+ protected readonly _templateEffect: i0.EffectRef;
3136
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxInjectionComponent<any>, never>;
3137
+ static ɵcmp: i0.ɵɵComponentDeclaration<DbxInjectionComponent<any>, "dbx-injection, [dbxInjection], [dbx-injection]", never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; "template": { "alias": "template"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
3138
+ }
3139
+
3140
+ /**
3141
+ * DbxInjectedViewContext showContext() configuration.
3142
+ */
3143
+ interface DbxInjectionContextConfig<T = unknown, O = unknown> {
3144
+ /**
3145
+ * Injected config.
3146
+ */
3147
+ config: DbxInjectionComponentConfig<T>;
3148
+ /**
3149
+ * Promise used to retrieve data from the given instance.
3150
+ */
3151
+ use: (instance: T) => Promise<O>;
3152
+ }
3153
+ /**
3154
+ * View that can switch to show another arbitrary view, then switch back when the promise ends.
3155
+ *
3156
+ * It is similar to *ngIf/*ngSwitch, but the original child content is retained instead of discarded,
3157
+ * and returns once the special context is done being used.
3158
+ */
3159
+ declare abstract class DbxInjectionContext {
3160
+ /**
3161
+ * Shows the given context until the promise ends, then displays the original content.
3162
+ *
3163
+ * The original content is hidden instead of removed from the context to avoid destruction of children elements.
3164
+ */
3165
+ abstract showContext<T = unknown, O = unknown>(config: DbxInjectionContextConfig<T>): Promise<O>;
3166
+ /**
3167
+ * Bails out of any current promise, if one is set.
3168
+ *
3169
+ * Returns true if the bail signal has been sent.
3170
+ */
3171
+ abstract resetContext(): boolean;
3172
+ }
3173
+ /**
3174
+ * Allows a directive to provide a formly context and form.
3175
+ */
3176
+ declare function provideDbxInjectionContext<T extends DbxInjectionContext>(type: Type<T>): Provider[];
3177
+
3178
+ /**
3179
+ * DbxInjectedViewContext implementation. Acts similar to *ngIf, but instead switches to a different view without destroying the original child view.
3180
+ */
3181
+ declare class DbxInjectionContextDirective<O = unknown> implements DbxInjectionContext, OnInit, OnDestroy {
3182
+ private readonly _injector;
3183
+ private readonly _templateRef;
3184
+ private readonly _viewContainer;
3185
+ private readonly _instance;
3186
+ private _currentPromise;
3187
+ private _embeddedView;
3188
+ private _isDetached;
3189
+ readonly config: i0.InputSignal<Maybe<DbxInjectionComponentConfig<unknown>>>;
3190
+ protected readonly _configEffect: i0.EffectRef;
3191
+ ngOnInit(): void;
3192
+ ngOnDestroy(): void;
3193
+ showContext<T, O>(config: DbxInjectionContextConfig<T>): Promise<O>;
3194
+ resetContext(): boolean;
3195
+ setConfig(config: Maybe<DbxInjectionComponentConfig<unknown>>): void;
3196
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxInjectionContextDirective<any>, never>;
3197
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxInjectionContextDirective<any>, "[dbxInjectionContext]", never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
3198
+ }
3199
+
3200
+ /**
3201
+ * Abstract DbxInjectionContext implementation that forwards commands to a host DbxInjectionContext.
3202
+ *
3203
+ * This abstract type is used by related types for dependency injection purposes, so that those types
3204
+ * can be injected instead of just any DbxInjectionContext.
3205
+ */
3206
+ declare abstract class AbstractForwardDbxInjectionContextDirective implements DbxInjectionContext {
3207
+ readonly dbxInjectionContext: DbxInjectionContext;
3208
+ showContext<T = unknown, O = unknown>(config: DbxInjectionContextConfig<T, unknown>): Promise<O>;
3209
+ resetContext(): boolean;
3210
+ static ɵfac: i0.ɵɵFactoryDeclaration<AbstractForwardDbxInjectionContextDirective, never>;
3211
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractForwardDbxInjectionContextDirective, never, never, {}, {}, never, never, true, never>;
3212
+ }
3213
+
3214
+ /**
3215
+ * Instance used by components to inject content based on the configuration into the view.
3216
+ */
3217
+ declare class DbxInjectionInstance<T> implements Initialized, Destroyable {
3218
+ private readonly _subscriptionObject;
3219
+ private readonly _config;
3220
+ private readonly _template;
3221
+ private readonly _content;
3222
+ private readonly _componentRef;
3223
+ private readonly _injector;
3224
+ readonly config$: rxjs.Observable<Maybe<DbxInjectionComponentConfig<T>>>;
3225
+ readonly template$: rxjs.Observable<Maybe<DbxInjectionTemplateConfig<T>>>;
3226
+ readonly content$: rxjs.Observable<ViewContainerRef>;
3227
+ get config(): MaybeObservableOrValueGetter<DbxInjectionComponentConfig<T>>;
3228
+ set config(config: MaybeObservableOrValueGetter<DbxInjectionComponentConfig<T>>);
3229
+ get template(): MaybeObservableOrValueGetter<DbxInjectionTemplateConfig<T>>;
3230
+ set template(template: MaybeObservableOrValueGetter<DbxInjectionTemplateConfig<T>>);
3231
+ get content(): Maybe<Maybe<ViewContainerRef>>;
3232
+ set content(content: Maybe<Maybe<ViewContainerRef>>);
3233
+ get componentRef(): Maybe<ComponentRef<T>>;
3234
+ set componentRef(componentRef: Maybe<ComponentRef<T>>);
3235
+ constructor(injector: Injector);
3236
+ init(): void;
3237
+ destroy(): void;
3238
+ private _initComponent;
3239
+ private _initTemplate;
3240
+ private _reset;
3241
+ }
3242
+
3243
+ /**
3244
+ * Provides a switchMap that passes configuration from the observable, unless the value is null/undefined/true in which case it passes the default configuration.
3245
+ *
3246
+ * @param defaultConfig
3247
+ * @returns
3248
+ */
3249
+ declare function switchMapDbxInjectionComponentConfig<T extends DbxInjectionComponentConfig<X>, X = any>(defaultConfig?: GetterOrValue<Maybe<T | Type<X>>>): rxjs.OperatorFunction<Maybe<_dereekb_rxjs.ObservableOrValueGetter<Maybe<boolean | T>>>, Maybe<T>>;
3250
+
3251
+ /**
3252
+ * Merges the input providers into a single array.
3253
+ *
3254
+ * @param providers
3255
+ * @returns
3256
+ */
3257
+ declare function mergeStaticProviders(...providers: Maybe<ArrayOrValue<StaticProvider>>[]): StaticProvider[];
3258
+
3259
+ type InjectableType<T> = (Type<T> | AbstractType<T>) & Provider;
3260
+ /**
3261
+ * Creates a new instance of the injectable type with the input injector.
3262
+ *
3263
+ * @param type
3264
+ * @param parent
3265
+ * @returns
3266
+ */
3267
+ declare function newWithInjector<T>(type: InjectableType<T>, parent: Injector): T;
3268
+
3269
+ interface LockSetComponent {
3270
+ readonly lockSet: LockSet;
3271
+ }
3272
+ interface LockSetComponentStoreConfig {
3273
+ readonly parent?: Maybe<Observable<LockSetComponent>>;
3274
+ readonly locks?: {
3275
+ [key: string]: Observable<boolean>;
3276
+ };
3277
+ }
3278
+ /**
3279
+ * Abstract ComponentStore extension that provides a LockSet and OnDestroy delaying/cleanup.
3280
+ */
3281
+ declare abstract class LockSetComponentStore<S extends object> extends ComponentStore<S> implements OnDestroy {
3282
+ protected readonly initialState?: S | undefined;
3283
+ readonly lockSet: LockSet;
3284
+ protected lockSetDestroyDelayMs: number;
3285
+ protected lockSetDestroyTimeoutMs: Maybe<number>;
3286
+ protected constructor(initialState?: S | undefined);
3287
+ readonly resetStore: () => void;
3288
+ protected setupLockSet({ parent, locks }: LockSetComponentStoreConfig): void;
3289
+ setParentLockSet(obs: ObservableOrValue<Maybe<LockSetComponent>>): void;
3290
+ addLock(key: string, obs: Observable<boolean>): void;
3291
+ ngOnDestroy(): void;
3292
+ /**
3293
+ * Completes the cleanup of the object.
3294
+ */
3295
+ _destroyNow(): void;
3296
+ static ɵfac: i0.ɵɵFactoryDeclaration<LockSetComponentStore<any>, [{ optional: true; }]>;
3297
+ static ɵprov: i0.ɵɵInjectableDeclaration<LockSetComponentStore<any>>;
3298
+ }
3299
+
3300
+ /**
3301
+ * Stored object accessor that can get/set/remove via a key, or be cleared entirely.
3302
+ */
3303
+ declare abstract class LimitedStorageAccessor<T> {
3304
+ /**
3305
+ * Attempts to get the value. Throws a DataDoesNotExistError if not available.
3306
+ */
3307
+ abstract get(key: string): Observable<Maybe<T>>;
3308
+ abstract set(key: string, value: Maybe<T>): Observable<void>;
3309
+ abstract remove(key: string): Observable<void>;
3310
+ abstract clear(): Observable<object>;
3311
+ }
3312
+ /**
3313
+ * LimitedStorageAccessor extension that has knowledge of all stored keys.
3314
+ */
3315
+ declare abstract class StorageAccessor<T> extends LimitedStorageAccessor<T> {
3316
+ /**
3317
+ * Returns all values. Filtered by keys of a given prefix.
3318
+ */
3319
+ abstract all(prefix?: string): Observable<T[]>;
3320
+ /**
3321
+ * Returns all keys. Filtered by keys of a given prefix.
3322
+ */
3323
+ abstract allKeys(prefix?: string): Observable<string[]>;
3324
+ }
3325
+ /**
3326
+ * StorageAccessor-like object that has immediate/synchronous functionality for get/set.
3327
+ */
3328
+ declare abstract class InstantStorageAccessor<T> {
3329
+ abstract getNow(key: string): T | undefined;
3330
+ abstract setNow(key: string, value: T): void;
3331
+ abstract removeNow(key: string): void;
3332
+ }
3333
+
3334
+ interface SimpleStorageAccessorConverter<T> {
3335
+ /**
3336
+ * Converts the input value to a string.
3337
+ */
3338
+ stringifyValue(value: T): StoredDataString;
3339
+ /**
3340
+ * Converts the data string into a value.
3341
+ */
3342
+ parseValue(data: StoredDataString): T;
3343
+ }
3344
+ /**
3345
+ * SimpleStorageAccessor delegate.
3346
+ */
3347
+ interface SimpleStorageAccessorDelegate<T> extends SimpleStorageAccessorConverter<T>, StorageAccessor<StoredDataString> {
3348
+ }
3349
+ declare class StringifySimpleStorageAccessorConverter<T> implements SimpleStorageAccessorConverter<T> {
3350
+ stringifyValue(value: T): StoredDataString;
3351
+ parseValue(data: StoredDataString): T;
3352
+ }
3353
+ declare class WrapperSimpleStorageAccessorDelegate<T> implements SimpleStorageAccessorDelegate<T> {
3354
+ private readonly _delegate;
3355
+ private readonly _converter;
3356
+ constructor(delegate: StorageAccessor<StoredDataString>, converter: SimpleStorageAccessorConverter<T>);
3357
+ get(key: string): Observable<Maybe<StoredDataString>>;
3358
+ set(key: string, value: StoredDataString): Observable<void>;
3359
+ remove(key: string): Observable<void>;
3360
+ clear(): Observable<object>;
3361
+ all(prefix?: string): Observable<string[]>;
3362
+ allKeys(prefix?: string): Observable<string[]>;
3363
+ stringifyValue(value: T): StoredDataString;
3364
+ parseValue(data: StoredDataString): T;
3365
+ }
3366
+ interface SimpleStorageAccessorConfig {
3367
+ /**
3368
+ * Storage Key Prefix
3369
+ */
3370
+ readonly prefix: string;
3371
+ /**
3372
+ * Optional prefix/value splitter.
3373
+ */
3374
+ readonly prefixSplitter?: string;
3375
+ /**
3376
+ * Number in milliseconds that objects stored will expire in.
3377
+ */
3378
+ readonly expiresIn?: number;
3379
+ }
3380
+ interface ConfiguredSimpleStorageAccessorConfig extends SimpleStorageAccessorConfig {
3381
+ readonly prefixSplitter: string;
3382
+ readonly fullPrefix: string;
3383
+ }
3384
+ declare function assertValidStorageKeyPrefix(prefix: string, prefixSplitter: string): void;
3385
+ declare function isValidStorageKeyPrefix(prefix: string, prefixSpltter: string): boolean;
3386
+ /**
3387
+ * LimitedStorageAccessor implementation that uses a Delegate
3388
+ */
3389
+ declare class SimpleStorageAccessor<T> implements StorageAccessor<T> {
3390
+ static readonly PREFIX_SPLITTER = "::";
3391
+ private readonly _delegate;
3392
+ protected readonly _config: ConfiguredSimpleStorageAccessorConfig;
3393
+ constructor(delegate: SimpleStorageAccessorDelegate<T>, config: SimpleStorageAccessorConfig);
3394
+ get delegate(): SimpleStorageAccessorDelegate<T>;
3395
+ get config(): ConfiguredSimpleStorageAccessorConfig;
3396
+ get(inputKey: string): Observable<T>;
3397
+ set(inputKey: string, inputValue: T): Observable<void>;
3398
+ remove(key: string): Observable<void>;
3399
+ all(): Observable<T[]>;
3400
+ allKeys(): Observable<string[]>;
3401
+ clear(): Observable<object>;
3402
+ protected readStoredData(storedDataString: StoredDataString): ReadStoredData<T>;
3403
+ protected buildStoredData(value: T): StoredData;
3404
+ protected isExpiredStoredData(storeData: StoredData): boolean;
3405
+ protected makeStorageKey(key: string): StoredDataStorageKey;
3406
+ protected isKeyOfAccessor(storageKey: StoredDataStorageKey): boolean;
3407
+ protected decodeStorageKey(storageKey: StoredDataStorageKey): string;
3408
+ protected stringifyValue(value: T): string;
3409
+ }
3410
+
3411
+ interface StorageAccessorFactoryConfig<T> extends SimpleStorageAccessorConfig {
3412
+ storage?: StorageAccessor<StoredDataString>;
3413
+ converter?: SimpleStorageAccessorConverter<T>;
3414
+ }
3415
+ /**
3416
+ * Used for building SimpleStorageAccessor instances from SimpleStorageAccessorConfig.
3417
+ */
3418
+ declare class SimpleStorageAccessorFactory {
3419
+ readonly storageObject: FullStorageObject;
3420
+ createStorageAccessor<T>(config: StorageAccessorFactoryConfig<T>): SimpleStorageAccessor<T>;
3421
+ static ɵfac: i0.ɵɵFactoryDeclaration<SimpleStorageAccessorFactory, never>;
3422
+ static ɵprov: i0.ɵɵInjectableDeclaration<SimpleStorageAccessorFactory>;
3423
+ }
3424
+
3425
+ /**
3426
+ * Simple StorageAccessor implementation that wraps a FullStorageObject.
3427
+ */
3428
+ declare class StringStorageAccessor implements StorageAccessor<StoredDataString> {
3429
+ private readonly _storage;
3430
+ constructor(storage: FullStorageObject);
3431
+ get(key: string): Observable<Maybe<StoredDataString>>;
3432
+ set(key: string, value: StoredDataString): Observable<void>;
3433
+ remove(key: string): Observable<void>;
3434
+ clear(): Observable<StoredDataString[]>;
3435
+ all(): Observable<StoredDataString[]>;
3436
+ allKeys(): Observable<string[]>;
3437
+ }
3438
+
3439
+ declare const DEFAULT_STORAGE_OBJECT_TOKEN: InjectionToken<unknown>;
3440
+ declare const DEFAULT_STORAGE_ACCESSOR_FACTORY_TOKEN: InjectionToken<unknown>;
3441
+
3442
+ /**
3443
+ * StorageObject using LocalStorage.
3444
+ */
3445
+ declare class FullLocalStorageObject implements FullStorageObject {
3446
+ private readonly _localStorage;
3447
+ constructor(localStorage: StorageObject);
3448
+ get isPersistant(): boolean;
3449
+ get isAvailable(): boolean;
3450
+ get length(): number;
3451
+ getItem(key: StoredDataStorageKey): Maybe<string>;
3452
+ setItem(key: StoredDataStorageKey, item: string): void;
3453
+ removeItem(key: StoredDataStorageKey): void;
3454
+ key(index: number): string | null;
3455
+ removeAll(): string[];
3456
+ }
3457
+
3458
+ /**
3459
+ * FullStorageObject implementation that uses a localstorage that entirely resides in memory.
3460
+ */
3461
+ declare class MemoryStorageObject extends FullLocalStorageObject {
3462
+ get isLastingStorage(): boolean;
3463
+ get isAvailable(): boolean;
3464
+ constructor();
3465
+ }
3466
+
3467
+ /**
3468
+ * Default storage object factory function that creates a FullLocalStorageObject,
3469
+ * falling back to MemoryStorageObject if localStorage is not available.
3470
+ */
3471
+ declare function defaultStorageObjectFactory(): FullStorageObject;
3472
+ /**
3473
+ * Creates EnvironmentProviders for providing a default storage object and SimpleStorageAccessorFactory.
3474
+ *
3475
+ * @returns EnvironmentProviders
3476
+ */
3477
+ declare function provideDbxStorage(): EnvironmentProviders;
3478
+
3479
+ /**
3480
+ * Wraps a Destroyable in a function that registers the input Destroyable to be destroyed
3481
+ * when the DestroyRef is destroyed in the context.
3482
+ *
3483
+ * Must be run in an Angular injection context.
3484
+ */
3485
+ declare function clean<T extends Destroyable | DestroyFunction>(input: T): T;
3486
+ /**
3487
+ * Wraps a Subject in a function that registers the input Subject to be completed
3488
+ * when the DestroyRef is destroyed in the context.
3489
+ *
3490
+ * Must be run in an Angular injection context.
3491
+ */
3492
+ declare function completeOnDestroy<T extends Pick<Subject<any>, 'complete' | 'error'>>(input: T): T;
3493
+
3494
+ interface CleanLockSetConfig {
3495
+ /**
3496
+ * Arbitrary onDestroy function to call when onDestroy is called by the internal DestroyRef.
3497
+ */
3498
+ readonly onDestroy?: Maybe<() => void>;
3499
+ /**
3500
+ * Called when the LockSet is finally destroyed.
3501
+ */
3502
+ readonly onLockSetDestroy?: Maybe<() => void>;
3503
+ /**
3504
+ * Configures when the lockset should be destroyed.
3505
+ */
3506
+ readonly destroyLocksetTiming?: Maybe<DestroyOnNextUnlockConfig>;
3507
+ }
3508
+ /**
3509
+ * Creates a new LockSet that is automatically destroyed when the component is destroyed.
3510
+ *
3511
+ * Must be run within an Angular injection context.
3512
+ *
3513
+ * @param onLockSetDestroy Optional callback to run when the lockset is unlocked.
3514
+ */
3515
+ declare function cleanLockSet(config?: Maybe<CleanLockSetConfig>): LockSet;
3516
+ /**
3517
+ * Runs the given onDestroy function when the context is destroyed, and the lock set's next unlock occurs.
3518
+ *
3519
+ * Must be run within an Angular injection context.
3520
+ *
3521
+ * @param lockSet The lockset to use.
3522
+ * @param onDestroy The function to run when the lockset is unlocked.
3523
+ */
3524
+ declare function cleanWithLockSet(lockSet: LockSet, onDestroy: DestroyFunction): void;
3525
+ /**
3526
+ * Config for cleanSubscriptionWithLockSet()
3527
+ */
3528
+ interface CleanSubscriptionWithLockSetConfig<T extends Unsubscribable = Unsubscribable> {
3529
+ readonly lockSet: LockSet;
3530
+ readonly sub?: Maybe<GetterOrValue<T>>;
3531
+ }
3532
+ /**
3533
+ * Creates a new SubscriptionObject that is automatically destroyed when the context is destroyed, and the lock set's next unlock occurs.
3534
+ *
3535
+ * Must be run within an Angular injection context.
3536
+ */
3537
+ declare function cleanSubscriptionWithLockSet<T extends Unsubscribable = Unsubscribable>(input: CleanSubscriptionWithLockSetConfig<T>): SubscriptionObject<T>;
3538
+
3539
+ /**
3540
+ * Creates a new SubscriptionObject that is automatically destroyed when the context is destroyed.
3541
+ *
3542
+ * Must be run within an Angular injection context.
3543
+ */
3544
+ declare function cleanSubscription<T extends Unsubscribable = Unsubscribable>(sub?: Maybe<GetterOrValue<T>>): SubscriptionObject<T>;
3545
+
3546
+ /**
3547
+ * Creates a new LoadingStateContext that is automatically destroyed when the context is destroyed.
3548
+ *
3549
+ * Must be run within an Angular injection context.
3550
+ */
3551
+ declare function cleanLoadingContext<T = unknown, S extends LoadingState<T> = LoadingState<T>, E extends LoadingContextEvent = LoadingContextEvent & S>(input?: LoadingStateContextInput<T, S, E>): MutableLoadingStateContext<T, S, E>;
3552
+ /**
3553
+ * Creates a new ListLoadingStateContext that is automatically destroyed when the context is destroyed.
3554
+ *
3555
+ * Must be run within an Angular injection context.
3556
+ */
3557
+ declare function cleanListLoadingContext<L = unknown, S extends ListLoadingState<L> = ListLoadingState<L>>(input?: ListLoadingStateContextInput<L, S>): MutableListLoadingStateContext<L, S>;
3558
+
3559
+ /**
3560
+ * Creates a new DestroyFunctionObject that is automatically destroyed when the context is destroyed.
3561
+ *
3562
+ * Must be run within an Angular injection context.
3563
+ */
3564
+ declare function cleanDestroy(input?: Maybe<DestroyFunction>): DestroyFunctionObject;
3565
+
3566
+ /**
3567
+ * Convenience function used within observables for views that need to detect changes after a value changes.
3568
+ *
3569
+ * @deprecated reminder to move to Angular signals
3570
+ *
3571
+ * @param cdRef
3572
+ * @param timeout
3573
+ * @returns
3574
+ */
3575
+ declare function tapDetectChanges<T>(cdRef: Maybe<ChangeDetectorRef>, timeout?: number): MonoTypeOperatorFunction<T>;
3576
+ /**
3577
+ * Triggers a check for detecting any changes on the model safely to ve registered via detectChanges().
3578
+ *
3579
+ * @deprecated reminder to move to Angular signals
3580
+ *
3581
+ * @param cdRef
3582
+ */
3583
+ declare function safeDetectChanges(cdRef: ChangeDetectorRef): void;
3584
+ /**
3585
+ * Convenience function used within observables for views that use the OnPush ChangeDetectionStrategy and needs to call markForCheck when a new observable value is pushed.
3586
+ *
3587
+ * NOTE: If the observable is being consumed via the "async" pipe, this may not be necessary.
3588
+ *
3589
+ * @deprecated reminder to move to Angular signals
3590
+ * @param cdRef
3591
+ * @param timeout
3592
+ * @returns
3593
+ */
3594
+ declare function tapSafeMarkForCheck<T>(cdRef: Maybe<ChangeDetectorRef>, timeout?: number): MonoTypeOperatorFunction<T>;
3595
+ /**
3596
+ * Marks the ChangeDetectorRef for changes as long as the view has not been destroyed.
3597
+ *
3598
+ * @deprecated reminder to move to Angular signals
3599
+ *
3600
+ * @param cdRef
3601
+ */
3602
+ declare function safeMarkForCheck(cdRef: ChangeDetectorRef): void;
3603
+ /**
3604
+ * Triggers a detection change on the input view as long as the view has not been destroyed.
3605
+ *
3606
+ * @deprecated reminder to move to Angular signals
3607
+ * @param cdRef
3608
+ */
3609
+ declare function safeUseCdRef(cdRef: ChangeDetectorRef, use: (cdRef: ChangeDetectorRef) => void): void;
3610
+ /**
3611
+ * Used to check an injected ElementRef that wraps an ng-content injection point whether or not any content was injected,
3612
+ * or more specifically if the parent component passed any target content to the child. This will still return true if
3613
+ * passed content is empty.
3614
+ *
3615
+ * TS:
3616
+ * @ViewChild('customLoading', { static: false }) customCustom: ElementRef;
3617
+ *
3618
+ * HTML:
3619
+ * <div #customContent>
3620
+ * <ng-content select="[content]"></ng-content>
3621
+ * </div>
3622
+ */
3623
+ declare function checkNgContentWrapperHasContent(ref: Maybe<ElementRef<Element>>): boolean;
3624
+
3625
+ /**
3626
+ * Transforms an empty string to undefined.
3627
+ *
3628
+ * Used for Angular inputs that are optional and share the same alias as the directive.
3629
+ */
3630
+ declare const transformEmptyStringInputToUndefined: <T>(value: T | "") => T | undefined;
3631
+
3632
+ export { APP_ACTION_DISABLED_DIRECTIVE_KEY, APP_ACTION_DISABLED_ON_SUCCESS_DIRECTIVE_KEY, APP_ACTION_ENFORCE_MODIFIED_DIRECTIVE_KEY, AbstractDbxActionHandlerDirective, AbstractDbxActionValueGetterDirective, AbstractDbxAnchorDirective, AbstractDbxButtonDirective, AbstractDbxFilterMapInstanceDirective, AbstractDbxFilterMapSourceDirective, AbstractDbxInjectionDirective, AbstractFilterSourceConnectorDirective, AbstractFilterSourceDirective, AbstractForwardDbxInjectionContextDirective, AbstractIfDirective, AbstractTransitionDirective, AbstractTransitionWatcherDirective, ActionContextStore, ActionContextStoreSource, ActionContextStoreSourceMap, AsObservablePipe, CutTextPipe, DBX_ACTION_HANDLER_LOCK_KEY, 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_ONBOARD_APP_CONTEXT_STATE, DBX_PUBLIC_APP_CONTEXT_STATE, DBX_ROUTE_MODEL_ID_PARAM_DEFAULT_ID_PARAM_KEY, DBX_ROUTE_MODEL_ID_PARAM_DEFAULT_KEY_PARAM_KEY, DBX_ROUTE_MODEL_ID_PARAM_DEFAULT_USE_PARAM_VALUE, DEFAULT_ACTION_DISABLED_KEY, DEFAULT_ACTION_MAP_WORKING_DISABLED_KEY, DEFAULT_REDIRECT_FOR_IDENTIFIER_PARAM_KEY, DEFAULT_REDIRECT_FOR_IDENTIFIER_PARAM_VALUE, DEFAULT_REDIRECT_FOR_USER_IDENTIFIER_PARAM_KEY, DEFAULT_REDIRECT_FOR_USER_IDENTIFIER_PARAM_VALUE, DEFAULT_STORAGE_ACCESSOR_FACTORY_TOKEN, DEFAULT_STORAGE_OBJECT_TOKEN, DateDayRangePipe, DateDayTimeRangePipe, DateDistancePipe, DateFormatDistancePipe, DateFormatFromToPipe, DateRangeDistancePipe, DateTimeRangeOnlyDistancePipe, DateTimeRangeOnlyPipe, DateTimeRangePipe, DbxActionAutoModifyDirective, DbxActionAutoTriggerDirective, DbxActionButtonDirective, DbxActionButtonTriggerDirective, DbxActionContextBaseSource, DbxActionContextLoggerDirective, DbxActionContextMachine, DbxActionContextMachineAsService, DbxActionContextMapDirective, DbxActionContextStoreSourceInstance, DbxActionDirective, DbxActionDisabledDirective, DbxActionDisabledOnSuccessDirective, DbxActionEnforceModifiedDirective, DbxActionErrorHandlerDirective, DbxActionFromMapDirective, DbxActionHandlerDirective, DbxActionHandlerInstance, DbxActionHandlerValueDirective, DbxActionHasSuccessDirective, DbxActionIdleDirective, DbxActionIsWorkingDirective, DbxActionMapSourceDirective, DbxActionMapWorkingDisableDirective, DbxActionPreSuccessDirective, DbxActionSourceDirective, DbxActionState, DbxActionSuccessHandlerDirective, DbxActionTriggeredDirective, DbxActionValueDirective, DbxActionValueGetterInstance, DbxActionValueStreamDirective, DbxActionValueTriggerDirective, DbxActionWorkInstanceDelegate, DbxAnchor, DbxAngularRouterService, DbxAppAuthRouterEffects, DbxAppAuthRouterService, DbxAppAuthRoutes, DbxAppAuthStateService, DbxAppContextService, DbxAppContextStateDirective, DbxAppEnviroment, DbxAppEnviromentService, DbxAuthHasAnyRoleDirective, DbxAuthHasRolesDirective, DbxAuthNotAnyRoleDirective, DbxAuthService, DbxButton, DbxButtonDirective, DbxButtonSegueDirective, DbxCoreActionModule, DbxCoreAngularRouterSegueModule, DbxCoreButtonModule, DbxCoreFilterModule, DbxFilterConnectSourceDirective, DbxFilterMapDirective, DbxFilterMapSourceConnectorDirective, DbxFilterMapSourceDirective, DbxFilterSourceConnectorDirective, DbxFilterSourceDirective, DbxInjectionArrayComponent, DbxInjectionComponent, DbxInjectionContext, DbxInjectionContextDirective, DbxInjectionInstance, DbxLoadingButtonDirective, DbxRouteModelIdDirective, DbxRouteModelIdDirectiveDelegate, DbxRouteModelIdFromAuthUserIdDirective, DbxRouteModelKeyDirective, DbxRouteModelKeyDirectiveDelegate, DbxRouteParamDefaultRedirectInstance, DbxRouterService, DbxRouterTransitionEventType, DbxRouterTransitionService, DbxUIRouterService, DollarAmountPipe, FILTER_SOURCE_DIRECTIVE_DEFAULT_FILTER_TOKEN, FilterSourceDirective, FullLocalStorageObject, GetValueOncePipe, GetValuePipe, InstantStorageAccessor, LimitedStorageAccessor, LockSetComponentStore, MemoryStorageObject, MinutesStringPipe, NO_AUTH_USER_IDENTIFIER, PrettyJsonPipe, SecondaryActionContextStoreSource, SimpleStorageAccessor, SimpleStorageAccessorFactory, StorageAccessor, StringStorageAccessor, StringifySimpleStorageAccessorConverter, SystemDateToTargetDatePipe, TargetDateToSystemDatePipe, TimeDistanceCountdownPipe, TimeDistancePipe, TimezoneAbbreviationPipe, ToJsDatePipe, ToMinutesPipe, WrapperSimpleStorageAccessorDelegate, actionContextHasNoErrorAndIsModifiedAndCanTrigger, actionContextIsModifiedAndCanTrigger, actionContextStoreSourceMap, actionContextStoreSourceMapReader, actionContextStoreSourcePipe, anchorTypeForAnchor, asSegueRef, asSegueRefString, assertValidStorageKeyPrefix, authRolesSetContainsAllRolesFrom, authRolesSetContainsAnyRoleFrom, authRolesSetContainsNoRolesFrom, authUserIdentifier, canReadyValue, canTriggerAction, canTriggerActionState, checkNgContentWrapperHasContent, clean, cleanDestroy, cleanListLoadingContext, cleanLoadingContext, cleanLockSet, cleanSubscription, cleanSubscriptionWithLockSet, cleanWithLockSet, clickableUrlInNewTab, clickableUrlMailTo, clickableUrlTel, completeOnDestroy, dbxActionWorkProgress, dbxButtonDisplayType, dbxRouteModelIdParamRedirect, dbxRouteModelKeyParamRedirect, dbxRouteParamReaderInstance, defaultStorageObjectFactory, enableHasAuthRoleHook, enableHasAuthStateHook, enableIsLoggedInHook, expandClickableAnchorLinkTree, expandClickableAnchorLinkTreeNode, expandClickableAnchorLinkTrees, filterTransitionEvent, filterTransitionSuccess, flattenExpandedClickableAnchorLinkTree, flattenExpandedClickableAnchorLinkTreeToLinks, fromAllActionContextStoreSourceMapSources, index_d$1 as fromDbxAppAuth, index_d$3 as fromDbxAppContext, goWithRouter, hasAuthRoleDecisionPipe, isActionContextDisabled, isActionContextEnabled, isClickableFilterPreset, isClickablePartialFilterPreset, isDisabledActionContextState, isIdleActionState, isLatestSuccessfulRoute, isSegueRef, isSegueRefActive, isSegueRefActiveFunction, isSegueRefActiveOnTransitionSuccess, isValidStorageKeyPrefix, isWorkingActionState, latestSuccessfulRoutes, loadingStateForActionContextState, loadingStateTypeForActionContextState, loadingStateTypeForActionState, loggedInObsFromIsLoggedIn, loggedOutObsFromIsLoggedIn, makeAuthTransitionHook, makeDbxActionContextSourceReference, mapRefStringObsToSegueRefObs, mergeDbxInjectionComponentConfigs, mergeStaticProviders, newWithInjector, index_d as onDbxAppAuth, index_d$2 as onDbxAppContext, onRouterTransitionEventType, onRouterTransitionSuccessEvent, pipeActionStore, provideActionStoreSource, provideDbxAnchor, provideDbxAppAuth, provideDbxAppAuthRouter, provideDbxAppAuthRouterState, provideDbxAppAuthState, provideDbxAppContextState, provideDbxAppEnviroment, provideDbxButton, provideDbxInjectionContext, provideDbxRouteModelIdDirectiveDelegate, provideDbxRouteModelKeyDirectiveDelegate, provideDbxStorage, provideDbxUIRouterService, provideFilterSource, provideFilterSourceConnector, provideFilterSourceDirective, provideSecondaryActionStoreSource, redirectBasedOnAuthUserState, redirectForIdentifierParamHook, redirectForUserIdentifierParamHook, refStringToSegueRef, safeDetectChanges, safeMarkForCheck, safeUseCdRef, successTransition, switchMapDbxInjectionComponentConfig, tapDetectChanges, tapSafeMarkForCheck, transformEmptyStringInputToUndefined, useActionStore };
3633
+ export type { ActionContextState, ActionContextStoreSourceMapReader, ActionKey, AuthTransitionDecision, AuthTransitionDecisionGetterInput, AuthTransitionHookConfig, AuthTransitionHookOptions, AuthTransitionRedirectTarget, AuthTransitionRedirectTargetGetter, AuthTransitionRedirectTargetOrGetter, AuthTransitionStateData, AuthUserIdentifier, AuthUserState, CleanLockSetConfig, CleanSubscriptionWithLockSetConfig, ClickableAnchor, ClickableAnchorLink, ClickableAnchorLinkSegueRef, ClickableAnchorLinkTree, ClickableAnchorType, ClickableFilterPreset, ClickableFilterPresetOrPartialPreset, ClickableFunction, ClickableIconAnchorLink, ClickablePartialFilterPreset, ClickableUrl, DbxActionContextMachineConfig, DbxActionContextSourceReference, DbxActionDisabledKey, DbxActionErrorHandlerFunction, DbxActionRejectedPair, DbxActionSuccessHandlerFunction, DbxActionSuccessPair, DbxActionValueGetterDirectiveComputeInputsConfig, DbxActionValueGetterInstanceConfig, DbxActionValueGetterResult, DbxActionValueGetterValueGetterFunction, DbxActionWorkOrWorkProgress, DbxActionWorkProgress, DbxAppAuthFullState, DbxAppContextFullState, DbxAppContextState, DbxButtonDisplay, DbxButtonDisplayDelegate, DbxButtonDisplayType, DbxButtonInterceptor, DbxButtonWorking, DbxButtonWorkingProgress, DbxInjectionArrayEntry, DbxInjectionComponentConfig, DbxInjectionComponentConfigFactory, DbxInjectionComponentConfigWithoutInjector, DbxInjectionContextConfig, DbxInjectionTemplateConfig, DbxKnownAppContextState, DbxRouteModelIdParamRedirect, DbxRouteModelIdParamRedirectInstance, DbxRouteParamReader, DbxRouteParamReaderInstance, DbxRouterTransitionEvent, ExpandedClickableAnchorLinkTree, GoWithRouter, HasAuthRoleHookConfig, HasAuthRoleStateData, HasAuthRoleStateRoleConfig, HasAuthStateConfig, HasAuthStateData, HasAuthStateHookConfig, HasAuthStateObjectConfig, IconAndTitle, InjectableType, IsLatestSuccessfulRouteConfig, IsLoggedInHookConfig, IsLoggedInStateData, IsSegueRefActiveConfig, IsSegueRefActiveFunction, IsSegueRefActiveFunctionConfig, LatestSuccessfulRoutesConfig, LatestSuccessfulRoutesConfigRoute, LockSetComponent, LockSetComponentStoreConfig, MousableFunction, MouseEventPair, MouseEventType, NoAuthUserIdentifier, ParsedHasAuthRoleStateRoleConfig, PipeActionStoreFunction, ProvideDbxAppAuthConfig, ProvideDbxAppAuthRouterConfig, ProvideDbxAppAuthRouterStateConfig, ProvideFilterSourceDirectiveDefaultFilterFactoryFunction, RedirectForIdentifierParamHookInput, RedirectForUserIdentifierParamHookInput, SegueRef, SegueRefOptions, SegueRefOrSegueRefRouterLink, SegueRefRawSegueParams, SegueRefRouterLink, SimpleStorageAccessorConfig, SimpleStorageAccessorConverter, SimpleStorageAccessorDelegate, StorageAccessorFactoryConfig, UseActionStoreFunction };