@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
@@ -1,27 +0,0 @@
1
- import { OnInit, OnDestroy } from '@angular/core';
2
- import { Maybe, GetterOrValue } from '@dereekb/util';
3
- import { Observable } from 'rxjs';
4
- import { AbstractSubscriptionDirective } from '../../../subscription';
5
- import { DbxActionContextStoreSourceInstance } from '../../action.store.source';
6
- import * as i0 from "@angular/core";
7
- /**
8
- * Directive that provides a default value when triggered.
9
- *
10
- * No value is required, allowing the directive to automatically call readyValue.
11
- *
12
- * The valueOrFunction will filter on null/undefined input and wait until the input value is non-null.
13
- *
14
- * Use a getter if null/undefined values should be passed to the action.
15
- */
16
- export declare class DbxActionValueDirective<T, O> extends AbstractSubscriptionDirective implements OnInit, OnDestroy {
17
- readonly valueOrFunction: import("@angular/core").InputSignal<Maybe<"" | GetterOrValue<T>>>;
18
- readonly source: DbxActionContextStoreSourceInstance<T, O>;
19
- private readonly _valueOrFunctionOverride;
20
- readonly valueOrFunction$: Observable<GetterOrValue<T>>;
21
- constructor();
22
- ngOnInit(): void;
23
- setValueOrFunction(value: Maybe<GetterOrValue<T>>): void;
24
- ngOnDestroy(): void;
25
- static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionValueDirective<any, any>, never>;
26
- static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionValueDirective<any, any>, "dbxActionValue,[dbxActionValue]", never, { "valueOrFunction": { "alias": "dbxActionValue"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
27
- }
@@ -1,23 +0,0 @@
1
- import { DbxActionContextStoreSourceInstance } from '../../action.store.source';
2
- import { Observable } from 'rxjs';
3
- import { OnInit, OnDestroy } from '@angular/core';
4
- import { Maybe } from '@dereekb/util';
5
- import { IsEqualFunction, IsModifiedFunction } from '@dereekb/rxjs';
6
- import * as i0 from "@angular/core";
7
- /**
8
- * Directive that watches a value observable for changes and sets the new value and modified states as necessary.
9
- */
10
- export declare class DbxActionValueStreamDirective<T, O> implements OnInit, OnDestroy {
11
- readonly source: DbxActionContextStoreSourceInstance<T, O>;
12
- readonly dbxActionValueStream: import("@angular/core").InputSignal<Observable<T>>;
13
- readonly dbxActionValueStreamIsEqualValue: import("@angular/core").InputSignal<Maybe<IsEqualFunction<T>>>;
14
- readonly dbxActionValueStreamIsModifiedValue: import("@angular/core").InputSignal<Maybe<IsModifiedFunction<T>>>;
15
- private readonly _modifiedSub;
16
- private readonly _triggerSub;
17
- readonly isModifiedFunction$: Observable<IsModifiedFunction<T>>;
18
- readonly modifiedValue$: Observable<[boolean, T]>;
19
- ngOnInit(): void;
20
- ngOnDestroy(): void;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionValueStreamDirective<any, any>, never>;
22
- 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>;
23
- }
@@ -1,39 +0,0 @@
1
- import { OnDestroy, OnInit, Signal } from '@angular/core';
2
- import { IsEqualFunction, IsModifiedFunction } from '@dereekb/rxjs';
3
- import { type Maybe } from '@dereekb/util';
4
- import { DbxActionContextStoreSourceInstance } from '../../action.store.source';
5
- import { DbxActionValueGetterValueGetterFunction } from './action.value.trigger.instance';
6
- import * as i0 from "@angular/core";
7
- export interface DbxActionValueGetterDirectiveComputeInputsConfig<T> {
8
- readonly valueGetterSignal?: Signal<Maybe<DbxActionValueGetterValueGetterFunction<T>>>;
9
- readonly isModifiedSignal?: Signal<Maybe<IsModifiedFunction>>;
10
- readonly isEqualSignal?: Signal<Maybe<IsEqualFunction>>;
11
- }
12
- /**
13
- * Abstract class for directives that may perform an action when trigger is called, and returns a value.
14
- */
15
- export declare abstract class AbstractDbxActionValueGetterDirective<T> implements OnInit, OnDestroy {
16
- private readonly _injector;
17
- readonly source: DbxActionContextStoreSourceInstance<T, unknown>;
18
- private readonly _triggerInstance;
19
- ngOnInit(): void;
20
- ngOnDestroy(): void;
21
- setValueGetterFunction(valueGetterFunction: Maybe<DbxActionValueGetterValueGetterFunction<T>>): void;
22
- protected configureInputs(config: DbxActionValueGetterDirectiveComputeInputsConfig<T>): void;
23
- static ɵfac: i0.ɵɵFactoryDeclaration<AbstractDbxActionValueGetterDirective<any>, never>;
24
- static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractDbxActionValueGetterDirective<any>, never, never, {}, {}, never, never, false, never>;
25
- }
26
- /**
27
- * Action directive that uses a getter function instead and waits for the trigger to be called before calling the function.
28
- *
29
- * Similar to DbxActionValueDirective, but the getter is called when a trigger is activated.
30
- * The DbxActionValueDirective always pipes the latests value while waiting for a trigger, and does not allow using a getter.
31
- */
32
- export declare class DbxActionValueTriggerDirective<T = object> extends AbstractDbxActionValueGetterDirective<T> implements OnDestroy {
33
- readonly dbxActionValueGetter: import("@angular/core").InputSignal<Maybe<DbxActionValueGetterValueGetterFunction<T>>>;
34
- readonly dbxActionValueGetterIsModified: import("@angular/core").InputSignal<Maybe<IsModifiedFunction>>;
35
- readonly dbxActionValueGetterIsEqual: import("@angular/core").InputSignal<Maybe<IsEqualFunction>>;
36
- constructor();
37
- static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionValueTriggerDirective<any>, never>;
38
- 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>;
39
- }
@@ -1,45 +0,0 @@
1
- import { type Destroyable, type Initialized, type Maybe, type ReadableError } from '@dereekb/util';
2
- import { type Observable } from 'rxjs';
3
- import { type ObservableOrValue, type IsModifiedFunction, type IsEqualFunction } from '@dereekb/rxjs';
4
- import { type DbxActionContextStoreSourceInstance } from '../../action.store.source';
5
- /**
6
- * DbxActionValueGetterInstance function. Returns an ObervableGetter that returns a value.
7
- */
8
- export type DbxActionValueGetterValueGetterFunction<T> = () => ObservableOrValue<Maybe<T>>;
9
- export interface DbxActionValueGetterResult<T = unknown> {
10
- /**
11
- * The value to trigger with
12
- */
13
- readonly value?: Maybe<T>;
14
- /**
15
- * The error to reject with
16
- */
17
- readonly reject?: Maybe<ReadableError>;
18
- }
19
- /**
20
- * DbxActionValueGetterInstance configuration.
21
- */
22
- export interface DbxActionValueGetterInstanceConfig<T> {
23
- readonly source: DbxActionContextStoreSourceInstance<T, unknown>;
24
- readonly valueGetter?: Maybe<DbxActionValueGetterValueGetterFunction<T>>;
25
- readonly isEqualFunction?: Maybe<IsEqualFunction<T>>;
26
- readonly isModifiedFunction?: Maybe<IsModifiedFunction<T>>;
27
- }
28
- /**
29
- * Utility class that handles trigger events to retrieve a value.
30
- */
31
- export declare class DbxActionValueGetterInstance<T> implements Initialized, Destroyable {
32
- private readonly _valueGetterFunction;
33
- readonly valueGetterFunction$: Observable<DbxActionValueGetterValueGetterFunction<T>>;
34
- private readonly _isModifiedFunction;
35
- private readonly _isEqualFunction;
36
- readonly isModifiedFunction$: Observable<IsModifiedFunction<T>>;
37
- readonly source: DbxActionContextStoreSourceInstance<T, unknown>;
38
- private readonly _triggeredSub;
39
- constructor(config: DbxActionValueGetterInstanceConfig<T>);
40
- setValueGetterFunction(valueGetterFunction: Maybe<DbxActionValueGetterValueGetterFunction<T>>): void;
41
- setIsModifiedFunction(isModifiedFunction: Maybe<IsModifiedFunction<T>>): void;
42
- setIsEqualFunction(isEqualFunction: Maybe<IsEqualFunction<T>>): void;
43
- init(): void;
44
- destroy(): void;
45
- }
@@ -1,17 +0,0 @@
1
- import { type Maybe } from '@dereekb/util';
2
- import { AbstractIfDirective } from '../../../view/if.directive';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * Structural directive that displays the content when the store is working.
6
- *
7
- * Can specify a period in milliseconds that shows how long to show up after working for a particular number of seconds.
8
- */
9
- export declare class DbxActionIsWorkingDirective extends AbstractIfDirective {
10
- private readonly _store;
11
- readonly hideAfter: import("@angular/core").InputSignalWithTransform<Maybe<number>, "" | Maybe<number>>;
12
- readonly hideAfterIsWorking: import("@angular/core").InputSignalWithTransform<Maybe<number>, "" | Maybe<number>>;
13
- readonly hideAfterSignal: import("@angular/core").Signal<Maybe<number>>;
14
- readonly show$: import("rxjs").Observable<boolean>;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionIsWorkingDirective, never>;
16
- 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>;
17
- }
@@ -1,16 +0,0 @@
1
- export * from './action.disabled.directive';
2
- export * from './action.disableonsuccess.directive';
3
- export * from './action.handler.directive';
4
- export * from './action.handler.instance';
5
- export * from './action.idle.directive';
6
- export * from './action.presuccess.directive';
7
- export * from './action.success.directive';
8
- export * from './action.success.handler.directive';
9
- export * from './action.error.handler.directive';
10
- export * from './action.value.directive';
11
- export * from './action.working.directive';
12
- export * from './action.enforce.modified.directive';
13
- export * from './action.value.trigger.directive';
14
- export * from './action.value.trigger.instance';
15
- export * from './action.value.stream.directive';
16
- export * from './action.triggered.directive';
@@ -1,10 +0,0 @@
1
- export * from './directive';
2
- export * from './action.handler';
3
- export * from './action.holder';
4
- export * from './action.machine';
5
- export * from './action.module';
6
- export * from './action.reference';
7
- export * from './action.store.source';
8
- export * from './action.store.source.provide';
9
- export * from './action.store';
10
- export * from './action';
@@ -1,16 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./auth.role.has.directive";
3
- import * as i2 from "./auth.role.any.directive";
4
- import * as i3 from "./auth.role.not.directive";
5
- /**
6
- * @deprecated import the directives directly instead of using this module.
7
- *
8
- * @see DbxAuthHasRolesDirective
9
- * @see DbxAuthHasAnyRoleDirective
10
- * @see DbxAuthNotAnyRoleDirective
11
- */
12
- export declare class DbxCoreAuthModule {
13
- static ɵfac: i0.ɵɵFactoryDeclaration<DbxCoreAuthModule, never>;
14
- static ɵmod: i0.ɵɵNgModuleDeclaration<DbxCoreAuthModule, never, [typeof i1.DbxAuthHasRolesDirective, typeof i2.DbxAuthHasAnyRoleDirective, typeof i3.DbxAuthNotAnyRoleDirective], [typeof i1.DbxAuthHasRolesDirective, typeof i2.DbxAuthHasAnyRoleDirective, typeof i3.DbxAuthNotAnyRoleDirective]>;
15
- static ɵinj: i0.ɵɵInjectorDeclaration<DbxCoreAuthModule>;
16
- }
@@ -1,12 +0,0 @@
1
- import { type EnvironmentProviders } from '@angular/core';
2
- import { type ProvideDbxAppAuthRouterConfig } from './router/auth.router.providers';
3
- import { type ProvideDbxAppAuthRouterStateConfig } from './router/state/auth.router.state.providers';
4
- export interface ProvideDbxAppAuthConfig extends ProvideDbxAppAuthRouterConfig, ProvideDbxAppAuthRouterStateConfig {
5
- }
6
- /**
7
- * The "all-in-one" provider for an app's dbx-core auth providers.
8
- *
9
- * @param config Configuration
10
- * @returns EnvironmentProviders
11
- */
12
- export declare function provideDbxAppAuth(config: ProvideDbxAppAuthConfig): EnvironmentProviders;
@@ -1,15 +0,0 @@
1
- import { ArrayOrValue, type Maybe } from '@dereekb/util';
2
- import { Observable } from 'rxjs';
3
- import { AbstractIfDirective } from '../view/if.directive';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * Structural decorator directive similar to ngIf that embeds content if the current auth user has any of the target role(s).
7
- */
8
- export declare class DbxAuthHasAnyRoleDirective extends AbstractIfDirective {
9
- private readonly _authService;
10
- readonly targetRoles: import("@angular/core").InputSignal<Maybe<ArrayOrValue<string>>>;
11
- readonly targetRoles$: Observable<Maybe<ArrayOrValue<string>>>;
12
- readonly show$: Observable<boolean>;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<DbxAuthHasAnyRoleDirective, never>;
14
- static ɵdir: i0.ɵɵDirectiveDeclaration<DbxAuthHasAnyRoleDirective, "[dbxAuthHasAnyRole]", never, { "targetRoles": { "alias": "dbxAuthHasAnyRole"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
15
- }
@@ -1,15 +0,0 @@
1
- import { Maybe, ArrayOrValue } from '@dereekb/util';
2
- import { Observable } from 'rxjs';
3
- import { AbstractIfDirective } from '../view/if.directive';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * Structural decorator directive similar to ngIf that embeds content if the current auth user has all of the target role(s).
7
- */
8
- export declare class DbxAuthHasRolesDirective extends AbstractIfDirective {
9
- private readonly _authService;
10
- readonly targetRoles: import("@angular/core").InputSignal<Maybe<ArrayOrValue<string>>>;
11
- readonly targetRoles$: Observable<Maybe<ArrayOrValue<string>>>;
12
- readonly show$: Observable<boolean>;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<DbxAuthHasRolesDirective, never>;
14
- static ɵdir: i0.ɵɵDirectiveDeclaration<DbxAuthHasRolesDirective, "[dbxAuthHasRoles]", never, { "targetRoles": { "alias": "dbxAuthHasRoles"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
15
- }
@@ -1,15 +0,0 @@
1
- import { Maybe, ArrayOrValue } from '@dereekb/util';
2
- import { Observable } from 'rxjs';
3
- import { AbstractIfDirective } from '../view/if.directive';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * Structural decorator directive similar to ngIf that embeds content if the current auth user has none of the target role(s).
7
- */
8
- export declare class DbxAuthNotAnyRoleDirective extends AbstractIfDirective {
9
- private readonly _authService;
10
- readonly targetRoles: import("@angular/core").InputSignal<Maybe<ArrayOrValue<string>>>;
11
- readonly targetRoles$: Observable<Maybe<ArrayOrValue<string>>>;
12
- readonly show$: Observable<boolean>;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<DbxAuthNotAnyRoleDirective, never>;
14
- static ɵdir: i0.ɵɵDirectiveDeclaration<DbxAuthNotAnyRoleDirective, "[dbxAuthNotAnyRole]", never, { "targetRoles": { "alias": "dbxAuthNotAnyRole"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
15
- }
@@ -1,7 +0,0 @@
1
- import { type EnvironmentProviders } from '@angular/core';
2
- /**
3
- * Creates EnvironmentProviders for providing the DbxAppAuth state and effects.
4
- *
5
- * @returns EnvironmentProviders
6
- */
7
- export declare function provideDbxAppAuthState(): EnvironmentProviders;
@@ -1,11 +0,0 @@
1
- import { Store } from '@ngrx/store';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * State for accessing the app's DbxAppAuthState defined within the DbxAppAuthFullState for the ngrx store.
5
- */
6
- export declare class DbxAppAuthStateService {
7
- readonly store: Store<any>;
8
- readonly authStateUser$: import("rxjs").Observable<import("./state/reducer/user.reducer").DbxAppAuthStateUser>;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<DbxAppAuthStateService, never>;
10
- static ɵprov: i0.ɵɵInjectableDeclaration<DbxAppAuthStateService>;
11
- }
@@ -1,28 +0,0 @@
1
- import { type Maybe } from '@dereekb/util';
2
- /**
3
- * An application user state.
4
- *
5
- * Generic states that define the current state of the user:
6
- * - none: the user is not logged in
7
- * - anon: the user is logged in as an anonymous account
8
- * - error: there was an error loading the correct user state
9
- * - new: the user has a full account but has not completed onboarding/setup
10
- * - user: the user has a full account and has completed setup
11
- */
12
- export type AuthUserState = 'none' | 'anon' | 'new' | 'user' | 'error';
13
- /**
14
- * Arbitrary identifier used to differentiate users.
15
- */
16
- export type AuthUserIdentifier = string;
17
- export declare const NO_AUTH_USER_IDENTIFIER = "0";
18
- /**
19
- * AuthUserIdentifier used to indicate that the user cannot be uniquely identifier.
20
- */
21
- export type NoAuthUserIdentifier = typeof NO_AUTH_USER_IDENTIFIER;
22
- /**
23
- * Creates an AuthUserIdentifier from the input. If the input is undefined, returns the NoAuthUserIdentifier.
24
- *
25
- * @param inputId
26
- * @returns
27
- */
28
- export declare function authUserIdentifier(inputId: Maybe<AuthUserIdentifier>): AuthUserIdentifier;
@@ -1,11 +0,0 @@
1
- export * from './router';
2
- export * from './service';
3
- export * from './state';
4
- export * from './auth.user';
5
- export * from './auth.module';
6
- export * from './auth.providers';
7
- export * from './auth.role.any.directive';
8
- export * from './auth.role.has.directive';
9
- export * from './auth.role.not.directive';
10
- export * from './auth.state.providers';
11
- export * from './auth.state.service';
@@ -1,10 +0,0 @@
1
- import { type SegueRefOrSegueRefRouterLink } from '../../router/segue';
2
- /**
3
- * Auth routes configurations for an app.
4
- */
5
- export declare abstract class DbxAppAuthRoutes {
6
- abstract readonly loginRef: SegueRefOrSegueRefRouterLink;
7
- abstract readonly loggedOutRef?: SegueRefOrSegueRefRouterLink;
8
- abstract readonly onboardRef?: SegueRefOrSegueRefRouterLink;
9
- abstract readonly appRef: SegueRefOrSegueRefRouterLink;
10
- }
@@ -1,18 +0,0 @@
1
- import { type EnvironmentProviders } from '@angular/core';
2
- import { DbxAppAuthRoutes } from './auth.router';
3
- /**
4
- * Configuration for provideDbxAppAuthRouter().
5
- */
6
- export interface ProvideDbxAppAuthRouterConfig {
7
- /**
8
- * DbxAppAuthRoutes configuration.
9
- */
10
- readonly dbxAppAuthRoutes: DbxAppAuthRoutes;
11
- }
12
- /**
13
- * Creates EnvironmentProviders for providing DbxAppAuthRoutes configuration.
14
- *
15
- * @param config Configuration
16
- * @returns EnvironmentProviders
17
- */
18
- export declare function provideDbxAppAuthRouter(config: ProvideDbxAppAuthRouterConfig): EnvironmentProviders;
@@ -1,46 +0,0 @@
1
- import { OnDestroy } from '@angular/core';
2
- import { DbxRouterService } from '../../router/router/service/router.service';
3
- import { DbxAppAuthRoutes } from './auth.router';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * Helper service for navigating to important auth-related routes.
7
- */
8
- export declare class DbxAppAuthRouterService implements OnDestroy {
9
- readonly dbxRouterService: DbxRouterService;
10
- readonly dbxAppAuthRoutes: DbxAppAuthRoutes;
11
- private _isAuthRouterEffectsEnabled;
12
- readonly isAuthRouterEffectsEnabled$: import("rxjs").Observable<boolean>;
13
- ngOnDestroy(): void;
14
- get hasOnboardingState(): boolean;
15
- /**
16
- * Whether or not DbxAppAuthRouterEffects are enabled.
17
- */
18
- get isAuthRouterEffectsEnabled(): boolean;
19
- set isAuthRouterEffectsEnabled(enabled: boolean);
20
- /**
21
- * Navigates to the login state.
22
- *
23
- * @returns
24
- */
25
- goToLogin(): Promise<boolean>;
26
- /**
27
- * Navigates to the logged out state, if it exists, otherwise navigates to the login state.
28
- *
29
- * @returns
30
- */
31
- goToLoggedOut(): Promise<boolean>;
32
- /**
33
- * Navigates to the onboarding state if it is available, otherwise navigates to the app.
34
- *
35
- * @returns
36
- */
37
- goToOnboarding(): Promise<boolean>;
38
- /**
39
- * Navigates to the app state.
40
- *
41
- * @returns
42
- */
43
- goToApp(): Promise<boolean>;
44
- static ɵfac: i0.ɵɵFactoryDeclaration<DbxAppAuthRouterService, never>;
45
- static ɵprov: i0.ɵɵInjectableDeclaration<DbxAppAuthRouterService>;
46
- }
@@ -1,5 +0,0 @@
1
- export * from './provider/uirouter';
2
- export * from './state';
3
- export * from './auth.router';
4
- export * from './auth.router.service';
5
- export * from './auth.router.providers';
@@ -1,18 +0,0 @@
1
- import { type TransitionService } from '@uirouter/core';
2
- import { type AuthTransitionHookOptions } from './hook';
3
- export interface IsLoggedInHookConfig {
4
- options: AuthTransitionHookOptions;
5
- }
6
- /**
7
- * UIRouter State data with configuration for the hasAuthRoleHook.
8
- */
9
- export interface IsLoggedInStateData {
10
- /**
11
- * Whether or not the user needs to be logged in for this state.
12
- */
13
- requiredLogIn: boolean;
14
- }
15
- /**
16
- * This hook redirects to the configured default state when a user is not logged in for configured states.
17
- */
18
- export declare function enableIsLoggedInHook(transitionService: TransitionService, config: IsLoggedInHookConfig): void;
@@ -1,51 +0,0 @@
1
- import { type TransitionHookFn, type Transition, type UIInjector } from '@uirouter/core';
2
- import { type Observable } from 'rxjs';
3
- import { type SegueRefOrSegueRefRouterLink } from './../../../../router/segue';
4
- import { DbxAuthService } from '../../../service/auth.service';
5
- import { type FactoryWithRequiredInput, type Maybe, type Milliseconds } from '@dereekb/util';
6
- import { type Injector } from '@angular/core';
7
- /**
8
- * authTransitionHookFn() configuration. The values are handled as:
9
- * - true: continue to the state.
10
- * - false: redirect to the login page.
11
- * - StateOrName: redirect to the target page instead.
12
- */
13
- export type AuthTransitionDecision = true | false | SegueRefOrSegueRefRouterLink;
14
- export interface AuthTransitionDecisionGetterInput {
15
- readonly transition: Transition;
16
- readonly injector: Injector;
17
- readonly authService: DbxAuthService;
18
- }
19
- export type AuthTransitionRedirectTarget = Observable<Maybe<SegueRefOrSegueRefRouterLink>>;
20
- export type AuthTransitionRedirectTargetGetter = FactoryWithRequiredInput<AuthTransitionRedirectTarget, AuthTransitionDecisionGetterInput>;
21
- export type AuthTransitionRedirectTargetOrGetter = Maybe<SegueRefOrSegueRefRouterLink> | AuthTransitionRedirectTargetGetter;
22
- export interface AuthTransitionHookOptions {
23
- /**
24
- * The state to redirect the user to when their auth fails.
25
- */
26
- defaultRedirectTarget: string;
27
- /**
28
- * The state to redirect the user to. Defaults to defaultRedirectTarget.
29
- */
30
- errorRedirectTarget?: string;
31
- /**
32
- * Timeout time for the decision obs. Defaults to 1000ms.
33
- */
34
- timeoutTime?: Milliseconds;
35
- }
36
- export interface AuthTransitionHookConfig extends AuthTransitionHookOptions {
37
- /**
38
- * Creates the decision observable for the transition that decides whether or not to redirect or continue.
39
- */
40
- makeDecisionsObs: (transition: Transition, authService: DbxAuthService, injector: UIInjector) => Observable<AuthTransitionDecision>;
41
- }
42
- export interface AuthTransitionStateData {
43
- /**
44
- * Optional getter/decision maker when a role needs to be
45
- */
46
- redirectTo?: AuthTransitionRedirectTargetOrGetter;
47
- }
48
- /**
49
- * This generates a TransitionHookFn that can be used with redirecting routes.
50
- */
51
- export declare function makeAuthTransitionHook(config: AuthTransitionHookConfig): TransitionHookFn;
@@ -1,5 +0,0 @@
1
- export * from './hook';
2
- export * from './redirect';
3
- export * from './auth.hook';
4
- export * from './role.hook';
5
- export * from './state.hook';
@@ -1,9 +0,0 @@
1
- import { type ObjectMap } from '@dereekb/util';
2
- import { type AuthTransitionRedirectTargetGetter, type AuthTransitionRedirectTargetOrGetter } from './hook';
3
- /**
4
- * Creates a AuthTransitionRedirectTargetGetter that can redirect values based on the current authUserState.
5
- *
6
- * @param stateMap
7
- * @returns
8
- */
9
- export declare function redirectBasedOnAuthUserState(stateMap: ObjectMap<AuthTransitionRedirectTargetOrGetter>): AuthTransitionRedirectTargetGetter;
@@ -1,44 +0,0 @@
1
- import { type OperatorFunction } from 'rxjs';
2
- import { type AuthRole, type SetIncludesMode, type ArrayOrValue, type AuthRoleSet } from '@dereekb/util';
3
- import { type TransitionService } from '@uirouter/core';
4
- import { type AuthTransitionHookOptions, type AuthTransitionStateData } from './hook';
5
- export interface HasAuthRoleHookConfig {
6
- readonly options: AuthTransitionHookOptions;
7
- }
8
- export interface HasAuthRoleStateRoleConfig {
9
- /**
10
- * Auth roles marked for this state
11
- */
12
- readonly authRoles: ArrayOrValue<AuthRole>;
13
- /**
14
- * How to use the above auth roles. This defaults to 'all' by default.
15
- */
16
- readonly authRolesMode?: SetIncludesMode;
17
- }
18
- export interface ParsedHasAuthRoleStateRoleConfig {
19
- /**
20
- * Auth roles marked for this state
21
- */
22
- readonly requiredRoles: Set<AuthRole>;
23
- /**
24
- * How to use the above auth roles. This defaults to 'all' by default.
25
- */
26
- readonly authRolesMode?: SetIncludesMode;
27
- }
28
- /**
29
- * UIRouter State data with configuration for the hasAuthRoleHook.
30
- */
31
- export interface HasAuthRoleStateData extends AuthTransitionStateData, Pick<HasAuthRoleStateRoleConfig, 'authRolesMode'> {
32
- /**
33
- * Auth roles configuration for this state.
34
- */
35
- readonly authRoles: ArrayOrValue<AuthRole | HasAuthRoleStateRoleConfig>;
36
- }
37
- /**
38
- * This hook redirects to the configured default state when a user:
39
- *
40
- * - does not have an allowed state
41
- * - has a disallowed state
42
- */
43
- export declare function enableHasAuthRoleHook(transitionService: TransitionService, config: HasAuthRoleHookConfig): void;
44
- export declare function hasAuthRoleDecisionPipe(stateData: HasAuthRoleStateData): OperatorFunction<AuthRoleSet, boolean>;
@@ -1,31 +0,0 @@
1
- import { type ArrayOrValue } from '@dereekb/util';
2
- import { type TransitionService } from '@uirouter/core';
3
- import { type AuthUserState } from '../../../auth.user';
4
- import { type AuthTransitionHookOptions, type AuthTransitionStateData } from './hook';
5
- export interface HasAuthStateHookConfig {
6
- options: AuthTransitionHookOptions;
7
- }
8
- export type HasAuthStateConfig = ArrayOrValue<AuthUserState> | HasAuthStateObjectConfig;
9
- export interface HasAuthStateObjectConfig {
10
- /**
11
- * Whether or not this state or any child state is considered "secure", which requires the user to be logged in.
12
- */
13
- allowedStates?: ArrayOrValue<AuthUserState>;
14
- /**
15
- * States that are not allowed. If the current state is this state, a rejection is returned.
16
- */
17
- disallowedStates?: ArrayOrValue<AuthUserState>;
18
- }
19
- export interface HasAuthStateData extends AuthTransitionStateData {
20
- /**
21
- * Configuration for the hasAuthStateHook.
22
- */
23
- authStates: HasAuthStateConfig;
24
- }
25
- /**
26
- * This hook redirects to the configured default state when a user:
27
- *
28
- * - does not have an allowed state
29
- * - has a disallowed state
30
- */
31
- export declare function enableHasAuthStateHook(transitionService: TransitionService, config: HasAuthStateHookConfig): void;
@@ -1,19 +0,0 @@
1
- import { type EnvironmentProviders } from '@angular/core';
2
- import { type ArrayOrValue } from '@dereekb/util';
3
- import { type DbxAppContextState } from '../../../context';
4
- /**
5
- * Configuration for provideDbxAppAuthRouterState().
6
- */
7
- export interface ProvideDbxAppAuthRouterStateConfig {
8
- /**
9
- * Active routes to apply effects to.
10
- */
11
- readonly activeRoutesToApplyEffects: ArrayOrValue<DbxAppContextState>;
12
- }
13
- /**
14
- * Creates EnvironmentProviders for providing DbxAppAuthRouterState configuration and effects.
15
- *
16
- * @param config Configuration
17
- * @returns EnvironmentProviders
18
- */
19
- export declare function provideDbxAppAuthRouterState(config: ProvideDbxAppAuthRouterStateConfig): EnvironmentProviders;
@@ -1,28 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- import { AbstractOnDbxAppContextStateEffects } from '../../../../context/state/effect';
3
- import { fromDbxAppAuth } from '../../../state';
4
- import { DbxAppAuthRouterService } from '../../auth.router.service';
5
- import * as i0 from "@angular/core";
6
- /**
7
- * Used by DbxAppAuthRouterEffects to configure the states that should be activve by default.
8
- */
9
- export declare const DBX_APP_AUTH_ROUTER_EFFECTS_TOKEN: InjectionToken<unknown>;
10
- /**
11
- * Set of ngrx effects that handle navigation in the app when the auth changes in certain ways.
12
- *
13
- * 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.
14
- */
15
- export declare class DbxAppAuthRouterEffects extends AbstractOnDbxAppContextStateEffects<fromDbxAppAuth.State> {
16
- readonly dbxAppAuthRouterService: DbxAppAuthRouterService;
17
- constructor();
18
- /**
19
- * Effect to redirect to the login when logout occurs.
20
- */
21
- readonly redirectToLoginOnLogout: import("rxjs").Observable<boolean> & import("@ngrx/effects").CreateEffectMetadata;
22
- /**
23
- * Effect to redirect to the app when login occurs.
24
- */
25
- readonly redirectToOnboardOnLogIn: import("rxjs").Observable<boolean> & import("@ngrx/effects").CreateEffectMetadata;
26
- static ɵfac: i0.ɵɵFactoryDeclaration<DbxAppAuthRouterEffects, never>;
27
- static ɵprov: i0.ɵɵInjectableDeclaration<DbxAppAuthRouterEffects>;
28
- }
@@ -1 +0,0 @@
1
- export * from './auth.router.state.effect';