@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,2 +0,0 @@
1
- export * from './subscription.directive';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9kYngtY29yZS9zcmMvbGliL3N1YnNjcmlwdGlvbi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDBCQUEwQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9zdWJzY3JpcHRpb24uZGlyZWN0aXZlJztcbiJdfQ==
@@ -1,38 +0,0 @@
1
- import { Directive } from '@angular/core';
2
- import { SubscriptionObject, LockSet } from '@dereekb/rxjs';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * Abstract component that contains a SubscriptionObject and will clean it up automatically.
6
- */
7
- export class AbstractSubscriptionDirective {
8
- _subscriptionObject = new SubscriptionObject();
9
- ngOnDestroy() {
10
- this._subscriptionObject.destroy();
11
- }
12
- set sub(subscription) {
13
- this._subscriptionObject.subscription = subscription;
14
- }
15
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AbstractSubscriptionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
16
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: AbstractSubscriptionDirective, ngImport: i0 });
17
- }
18
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AbstractSubscriptionDirective, decorators: [{
19
- type: Directive
20
- }] });
21
- /**
22
- * AbstractSubscriptionDirective extension that prevents the OnDestroy from occuring until the lockset is unlocked.
23
- */
24
- export class AbstractLockSetSubscriptionDirective extends AbstractSubscriptionDirective {
25
- lockSet = new LockSet();
26
- ngOnDestroy() {
27
- this.lockSet.onNextUnlock(() => this.onLockSetDestroy());
28
- }
29
- onLockSetDestroy() {
30
- super.ngOnDestroy();
31
- }
32
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AbstractLockSetSubscriptionDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
33
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: AbstractLockSetSubscriptionDirective, usesInheritance: true, ngImport: i0 });
34
- }
35
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AbstractLockSetSubscriptionDirective, decorators: [{
36
- type: Directive
37
- }] });
38
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vic2NyaXB0aW9uLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2RieC1jb3JlL3NyYy9saWIvc3Vic2NyaXB0aW9uL3N1YnNjcmlwdGlvbi5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFhLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUVyRCxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsT0FBTyxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQUc1RDs7R0FFRztBQUVILE1BQU0sT0FBZ0IsNkJBQTZCO0lBQ2hDLG1CQUFtQixHQUFHLElBQUksa0JBQWtCLEVBQUUsQ0FBQztJQUVoRSxXQUFXO1FBQ1QsSUFBSSxDQUFDLG1CQUFtQixDQUFDLE9BQU8sRUFBRSxDQUFDO0lBQ3JDLENBQUM7SUFFRCxJQUFjLEdBQUcsQ0FBQyxZQUE2QjtRQUM3QyxJQUFJLENBQUMsbUJBQW1CLENBQUMsWUFBWSxHQUFHLFlBQVksQ0FBQztJQUN2RCxDQUFDO3dHQVRtQiw2QkFBNkI7NEZBQTdCLDZCQUE2Qjs7NEZBQTdCLDZCQUE2QjtrQkFEbEQsU0FBUzs7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ID0gbmV3IFN1YnNjcmlwdGlvbk9iamVjdCgpO1xuXG4gIG5nT25EZXN0cm95KCk6IHZvaWQge1xuICAgIHRoaXMuX3N1YnNjcmlwdGlvbk9iamVjdC5kZXN0cm95KCk7XG4gIH1cblxuICBwcm90ZWN0ZWQgc2V0IHN1YihzdWJzY3JpcHRpb246IE1heWJlPFQgfCB2b2lkPikge1xuICAgIHRoaXMuX3N1YnNjcmlwdGlvbk9iamVjdC5zdWJzY3JpcHRpb24gPSBzdWJzY3JpcHRpb247XG4gIH1cbn1cblxuLyoqXG4gKiBBYnN0cmFjdFN1YnNjcmlwdGlvbkRpcmVjdGl2ZSBleHRlbnNpb24gdGhhdCBwcmV2ZW50cyB0aGUgT25EZXN0cm95IGZyb20gb2NjdXJpbmcgdW50aWwgdGhlIGxvY2tzZXQgaXMgdW5sb2NrZWQuXG4gKi9cbkBEaXJlY3RpdmUoKVxuZXhwb3J0IGFic3RyYWN0IGNsYXNzIEFic3RyYWN0TG9ja1NldFN1YnNjcmlwdGlvbkRpcmVjdGl2ZTxUIGV4dGVuZHMgVW5zdWJzY3JpYmFibGUgPSBVbnN1YnNjcmliYWJsZT4gZXh0ZW5kcyBBYnN0cmFjdFN1YnNjcmlwdGlvbkRpcmVjdGl2ZTxUPiBpbXBsZW1lbnRzIE9uRGVzdHJveSB7XG4gIHJlYWRvbmx5IGxvY2tTZXQgPSBuZXcgTG9ja1NldCgpO1xuXG4gIG92ZXJyaWRlIG5nT25EZXN0cm95KCk6IHZvaWQge1xuICAgIHRoaXMubG9ja1NldC5vbk5leHRVbmxvY2soKCkgPT4gdGhpcy5vbkxvY2tTZXREZXN0cm95KCkpO1xuICB9XG5cbiAgcHJvdGVjdGVkIG9uTG9ja1NldERlc3Ryb3koKTogdm9pZCB7XG4gICAgc3VwZXIubmdPbkRlc3Ryb3koKTtcbiAgfVxufVxuIl19
@@ -1,3 +0,0 @@
1
- export * from './view';
2
- export * from './input';
3
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9kYngtY29yZS9zcmMvbGliL3V0aWwvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxRQUFRLENBQUM7QUFDdkIsY0FBYyxTQUFTLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3ZpZXcnO1xuZXhwb3J0ICogZnJvbSAnLi9pbnB1dCc7XG4iXX0=
@@ -1,7 +0,0 @@
1
- /**
2
- * Transforms an empty string to undefined.
3
- *
4
- * Used for Angular inputs that are optional and share the same alias as the directive.
5
- */
6
- export const transformEmptyStringInputToUndefined = (value) => (value === '' ? undefined : value);
7
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9kYngtY29yZS9zcmMvbGliL3V0aWwvaW5wdXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7R0FJRztBQUNILE1BQU0sQ0FBQyxNQUFNLG9DQUFvQyxHQUFHLENBQUksS0FBYSxFQUFFLEVBQUUsQ0FBQyxDQUFDLEtBQUssS0FBSyxFQUFFLENBQUMsQ0FBQyxDQUFDLFNBQVMsQ0FBQyxDQUFDLENBQUMsS0FBSyxDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIFRyYW5zZm9ybXMgYW4gZW1wdHkgc3RyaW5nIHRvIHVuZGVmaW5lZC5cbiAqXG4gKiBVc2VkIGZvciBBbmd1bGFyIGlucHV0cyB0aGF0IGFyZSBvcHRpb25hbCBhbmQgc2hhcmUgdGhlIHNhbWUgYWxpYXMgYXMgdGhlIGRpcmVjdGl2ZS5cbiAqL1xuZXhwb3J0IGNvbnN0IHRyYW5zZm9ybUVtcHR5U3RyaW5nSW5wdXRUb1VuZGVmaW5lZCA9IDxUPih2YWx1ZTogVCB8ICcnKSA9PiAodmFsdWUgPT09ICcnID8gdW5kZWZpbmVkIDogdmFsdWUpO1xuIl19
@@ -1,81 +0,0 @@
1
- import { tap } from 'rxjs';
2
- /**
3
- * Convenience function used within observables for views that need to detect changes after a value changes.
4
- *
5
- * @deprecated reminder to move to Angular signals
6
- *
7
- * @param cdRef
8
- * @param timeout
9
- * @returns
10
- */
11
- export function tapDetectChanges(cdRef, timeout = 0) {
12
- return cdRef ? tap(() => setTimeout(() => safeDetectChanges(cdRef), timeout)) : tap();
13
- }
14
- /**
15
- * Triggers a check for detecting any changes on the model safely to ve registered via detectChanges().
16
- *
17
- * @deprecated reminder to move to Angular signals
18
- *
19
- * @param cdRef
20
- */
21
- export function safeDetectChanges(cdRef) {
22
- safeUseCdRef(cdRef, () => cdRef.detectChanges());
23
- }
24
- /**
25
- * Convenience function used within observables for views that use the OnPush ChangeDetectionStrategy and needs to call markForCheck when a new observable value is pushed.
26
- *
27
- * NOTE: If the observable is being consumed via the "async" pipe, this may not be necessary.
28
- *
29
- * @deprecated reminder to move to Angular signals
30
- * @param cdRef
31
- * @param timeout
32
- * @returns
33
- */
34
- export function tapSafeMarkForCheck(cdRef, timeout = 0) {
35
- return cdRef ? tap(() => setTimeout(() => safeMarkForCheck(cdRef), timeout)) : tap();
36
- }
37
- /**
38
- * Marks the ChangeDetectorRef for changes as long as the view has not been destroyed.
39
- *
40
- * @deprecated reminder to move to Angular signals
41
- *
42
- * @param cdRef
43
- */
44
- export function safeMarkForCheck(cdRef) {
45
- safeUseCdRef(cdRef, () => cdRef.markForCheck());
46
- }
47
- /**
48
- * Triggers a detection change on the input view as long as the view has not been destroyed.
49
- *
50
- * @deprecated reminder to move to Angular signals
51
- * @param cdRef
52
- */
53
- export function safeUseCdRef(cdRef, use) {
54
- if (!cdRef.destroyed) {
55
- use(cdRef);
56
- }
57
- }
58
- /**
59
- * Used to check an injected ElementRef that wraps an ng-content injection point whether or not any content was injected,
60
- * or more specifically if the parent component passed any target content to the child. This will still return true if
61
- * passed content is empty.
62
- *
63
- * TS:
64
- * @ViewChild('customLoading', { static: false }) customCustom: ElementRef;
65
- *
66
- * HTML:
67
- * <div #customContent>
68
- * <ng-content select="[content]"></ng-content>
69
- * </div>
70
- */
71
- export function checkNgContentWrapperHasContent(ref) {
72
- // https://github.com/angular/angular/issues/26083
73
- let hasContent = false;
74
- if (ref != null) {
75
- const childNodes = ref.nativeElement.childNodes;
76
- const hasChildNodes = childNodes && childNodes.length > 0;
77
- hasContent = Boolean(hasChildNodes);
78
- }
79
- return hasContent;
80
- }
81
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmlldy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2RieC1jb3JlL3NyYy9saWIvdXRpbC92aWV3LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBaUMsR0FBRyxFQUFFLE1BQU0sTUFBTSxDQUFDO0FBSTFEOzs7Ozs7OztHQVFHO0FBQ0gsTUFBTSxVQUFVLGdCQUFnQixDQUFJLEtBQStCLEVBQUUsT0FBTyxHQUFHLENBQUM7SUFDOUUsT0FBTyxLQUFLLENBQUMsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQyxVQUFVLENBQUMsR0FBRyxFQUFFLENBQUMsaUJBQWlCLENBQUMsS0FBSyxDQUFDLEVBQUUsT0FBTyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsR0FBRyxFQUFFLENBQUM7QUFDeEYsQ0FBQztBQUVEOzs7Ozs7R0FNRztBQUNILE1BQU0sVUFBVSxpQkFBaUIsQ0FBQyxLQUF3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KTtcbiAgfVxuXG4gIHJldHVybiBoYXNDb250ZW50O1xufVxuIl19
@@ -1,27 +0,0 @@
1
- import { Directive, TemplateRef, ViewContainerRef, inject } from '@angular/core';
2
- import { distinctUntilChanged } from 'rxjs';
3
- import { AbstractSubscriptionDirective } from '../subscription';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * Abstract directive class that watches a show$ observable and behaves like *ngIf.
7
- */
8
- export class AbstractIfDirective extends AbstractSubscriptionDirective {
9
- _templateRef = inject(TemplateRef);
10
- _viewContainer = inject(ViewContainerRef);
11
- ngOnInit() {
12
- this.sub = this.show$.pipe(distinctUntilChanged()).subscribe((show) => {
13
- if (show) {
14
- this._viewContainer.createEmbeddedView(this._templateRef);
15
- }
16
- else {
17
- this._viewContainer.clear();
18
- }
19
- });
20
- }
21
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AbstractIfDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
22
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: AbstractIfDirective, usesInheritance: true, ngImport: i0 });
23
- }
24
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AbstractIfDirective, decorators: [{
25
- type: Directive
26
- }] });
27
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWYuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvZGJ4LWNvcmUvc3JjL2xpYi92aWV3L2lmLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFVLFdBQVcsRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekYsT0FBTyxFQUF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3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9kYngtY29yZS9zcmMvbGliL3ZpZXcvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxnQkFBZ0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vaWYuZGlyZWN0aXZlJztcbiJdfQ==
package/index.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from './lib';
@@ -1,80 +0,0 @@
1
- import { LoadingStateType } from '@dereekb/rxjs';
2
- import { type PercentNumber, type Maybe } from '@dereekb/util';
3
- /**
4
- * Used to denote the percent progress of a working action.
5
- *
6
- * This is a PercentNumber, a number between 0 and 100.
7
- */
8
- export type DbxActionWorkProgress = PercentNumber;
9
- /**
10
- * Used for denoting working state or progress.
11
- *
12
- * True is working, but no progress level.
13
- */
14
- export type DbxActionWorkOrWorkProgress = boolean | DbxActionWorkProgress;
15
- /**
16
- * Creates a working progress value from an array of working progress values.
17
- *
18
- * @param workOrWorkProgress The array of working progress values to use.
19
- * @param progressPercent An optional progress percent value to use if the working progress is a boolean.
20
- * @returns The working progress value.
21
- */
22
- export declare function dbxActionWorkProgress(workOrWorkProgress: Maybe<DbxActionWorkOrWorkProgress>[], progressPercent?: Maybe<DbxActionWorkProgress>): number | boolean;
23
- /**
24
- * Used by ActionContextState to denote what state the action is in.
25
- */
26
- export declare enum DbxActionState {
27
- /**
28
- * No action in progress. Waiting for the trigger.
29
- */
30
- IDLE = "idle",
31
- /**
32
- * Idle state that can be set to show that the source is not yet ready.
33
- */
34
- DISABLED = "disabled",
35
- /**
36
- * The action was triggered. We wait (and allow) the value to be updated.
37
- */
38
- TRIGGERED = "triggered",
39
- /**
40
- * The trigger was accepted and the value is updated. It should begin working immediately.
41
- *
42
- * ValueReady cannot be set until triggered is set.
43
- */
44
- VALUE_READY = "valueReady",
45
- /**
46
- * The action is in progress.
47
- */
48
- WORKING = "working",
49
- /**
50
- * The trigger, action, or value was rejected due to an error or other issue.
51
- *
52
- * An error may be specified optionally.
53
- */
54
- REJECTED = "rejected",
55
- /**
56
- * The action resolved without issue.
57
- */
58
- RESOLVED = "resolved"
59
- }
60
- /**
61
- * Contains the input value and the output result from a DbxAction.
62
- */
63
- export interface DbxActionSuccessPair<T, O> {
64
- readonly value: T;
65
- readonly result: Maybe<O>;
66
- }
67
- /**
68
- * Contains the input value and the output error from a DbxAction.
69
- */
70
- export interface DbxActionRejectedPair<T> {
71
- readonly value: T;
72
- readonly error: unknown;
73
- }
74
- /**
75
- * Unique key for disabling/enabling.
76
- */
77
- export type DbxActionDisabledKey = string;
78
- export declare const DEFAULT_ACTION_DISABLED_KEY = "dbx_action_disabled";
79
- export declare function isIdleActionState(actionState: DbxActionState): boolean;
80
- export declare function loadingStateTypeForActionState(actionState: DbxActionState): LoadingStateType;
@@ -1,15 +0,0 @@
1
- import { type Maybe, type ReadableError } from '@dereekb/util';
2
- import { type DbxActionContextStoreSourceInstance } from './action.store.source';
3
- import { type WorkInstanceDelegate } from '@dereekb/rxjs';
4
- import { type Observable } from 'rxjs';
5
- /**
6
- * WorkInstanceDelegate implementation using an DbxActionContextStoreSourceInstance.
7
- */
8
- export declare class DbxActionWorkInstanceDelegate<T = unknown, O = unknown> implements WorkInstanceDelegate<O> {
9
- private _source;
10
- constructor(source: DbxActionContextStoreSourceInstance<T, O>);
11
- get source(): DbxActionContextStoreSourceInstance<T, O>;
12
- startWorking(): void;
13
- success(result: O): void;
14
- reject(error: Maybe<ReadableError | Observable<ReadableError>>): void;
15
- }
@@ -1,38 +0,0 @@
1
- import { type Observable } from 'rxjs';
2
- import { type Destroyable, type Maybe } from '@dereekb/util';
3
- import { type LockSet } from '@dereekb/rxjs';
4
- import { type ActionContextStoreSource, DbxActionContextStoreSourceInstance, type SecondaryActionContextStoreSource } from './action.store.source';
5
- import { ActionContextStore } from './action.store';
6
- import { type DbxActionDisabledKey } from './action';
7
- /**
8
- * Abstract class that can either use SecondaryActionContextStoreSource or create it's own.
9
- */
10
- export declare abstract class DbxActionContextBaseSource<T = unknown, O = unknown> implements ActionContextStoreSource<T, O>, Destroyable {
11
- private readonly _inputSource;
12
- private readonly _store?;
13
- private readonly _store$;
14
- private readonly _instance;
15
- readonly isModified$: Observable<boolean>;
16
- readonly triggered$: Observable<boolean>;
17
- readonly success$: Observable<Maybe<O>>;
18
- constructor(inputSource?: Maybe<SecondaryActionContextStoreSource<T, O>>);
19
- destroy(): void;
20
- get inputSource(): Maybe<SecondaryActionContextStoreSource<T, O>>;
21
- get lockSet(): LockSet;
22
- get sourceInstance(): DbxActionContextStoreSourceInstance<T, O>;
23
- get store$(): Observable<ActionContextStore<T, O>>;
24
- /**
25
- * Use to trigger the action directly.
26
- */
27
- trigger(): void;
28
- readyValue(value: T | Observable<T>): void;
29
- /**
30
- * Triggers the context and then readies the value.
31
- * @param value
32
- */
33
- triggerWithValue(value: T | Observable<T>): void;
34
- reset(): void;
35
- enable(key?: DbxActionDisabledKey, enable?: boolean): void;
36
- disable(key?: DbxActionDisabledKey, disable?: boolean): void;
37
- setIsModified(isModified?: boolean): void;
38
- }
@@ -1,50 +0,0 @@
1
- import { DbxActionContextSourceReference } from './action.reference';
2
- import { ActionContextStoreSource } from './action.store.source';
3
- import { DbxActionContextBaseSource } from './action.holder';
4
- import { Destroyable, type Maybe } from '@dereekb/util';
5
- import { Work } from '@dereekb/rxjs';
6
- import { OnDestroy } from '@angular/core';
7
- import * as i0 from "@angular/core";
8
- /**
9
- * DbxActionContextMachine configuration.
10
- */
11
- export interface DbxActionContextMachineConfig<T = unknown, O = unknown> {
12
- /**
13
- * Whether or not the machine should clean itself up after being triggered once.
14
- */
15
- oneTimeUse: boolean;
16
- /**
17
- * Function to handle any valueReady events.
18
- *
19
- * If false, will not subscribe/handle valueReady$ events.
20
- */
21
- handleValueReady: Work<T, O> | false;
22
- /**
23
- * Optional function to execute after the action has succeeded.
24
- */
25
- onSuccess?: (value: Maybe<O>) => void;
26
- }
27
- /**
28
- * Configurable machine that handles components of the ActionContextStore lifecycle.
29
- *
30
- * 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.
31
- */
32
- export declare class DbxActionContextMachine<T = unknown, O = unknown> extends DbxActionContextBaseSource<T, O> implements DbxActionContextSourceReference<T, O>, Destroyable {
33
- private _isShutdown;
34
- private readonly _config;
35
- private readonly _handleValueReadySub;
36
- private readonly _successSub;
37
- constructor(config: DbxActionContextMachineConfig<T, O>, source?: ActionContextStoreSource<T, O>);
38
- destroy(): void;
39
- get config(): DbxActionContextMachineConfig<T, O>;
40
- get isShutdown(): boolean;
41
- }
42
- /**
43
- * DbxActionContextMachine that implements OnDestroy and is configured for use as a Service/Injectable.
44
- */
45
- export declare class DbxActionContextMachineAsService<T = unknown, O = unknown> extends DbxActionContextMachine<T, O> implements OnDestroy {
46
- constructor();
47
- ngOnDestroy(): void;
48
- static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionContextMachineAsService<any, any>, never>;
49
- static ɵprov: i0.ɵɵInjectableDeclaration<DbxActionContextMachineAsService<any, any>>;
50
- }
@@ -1,30 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./directive/context/action.directive";
3
- import * as i2 from "./directive/map/action.map.directive";
4
- import * as i3 from "./directive/map/action.map.key.directive";
5
- import * as i4 from "./directive/map/action.map.source.directive";
6
- import * as i5 from "./directive/map/action.map.working.disable.directive";
7
- import * as i6 from "./directive/context/action.source.directive";
8
- import * as i7 from "./directive/state/action.handler.directive";
9
- import * as i8 from "./directive/state/action.disabled.directive";
10
- import * as i9 from "./directive/state/action.disableonsuccess.directive";
11
- import * as i10 from "./directive/state/action.enforce.modified.directive";
12
- import * as i11 from "./directive/auto/action.autotrigger.directive";
13
- import * as i12 from "./directive/state/action.value.stream.directive";
14
- import * as i13 from "./directive/auto/action.automodify.directive";
15
- import * as i14 from "./directive/state/action.value.directive";
16
- import * as i15 from "./directive/debug/action.logger.directive";
17
- import * as i16 from "./directive/state/action.idle.directive";
18
- import * as i17 from "./directive/state/action.presuccess.directive";
19
- import * as i18 from "./directive/state/action.success.directive";
20
- import * as i19 from "./directive/state/action.success.handler.directive";
21
- import * as i20 from "./directive/state/action.error.handler.directive";
22
- import * as i21 from "./directive/state/action.working.directive";
23
- /**
24
- * Contains all base DbxAction components.
25
- */
26
- export declare class DbxCoreActionModule {
27
- static ɵfac: i0.ɵɵFactoryDeclaration<DbxCoreActionModule, never>;
28
- static ɵmod: i0.ɵɵNgModuleDeclaration<DbxCoreActionModule, never, [typeof i1.DbxActionDirective, typeof i2.DbxActionContextMapDirective, typeof i3.DbxActionFromMapDirective, typeof i4.DbxActionMapSourceDirective, typeof i5.DbxActionMapWorkingDisableDirective, typeof i6.DbxActionSourceDirective, typeof i7.DbxActionHandlerDirective, typeof i7.DbxActionHandlerValueDirective, typeof i8.DbxActionDisabledDirective, typeof i9.DbxActionDisabledOnSuccessDirective, typeof i10.DbxActionEnforceModifiedDirective, typeof i11.DbxActionAutoTriggerDirective, typeof i12.DbxActionValueStreamDirective, typeof i13.DbxActionAutoModifyDirective, typeof i14.DbxActionValueDirective, typeof i15.DbxActionContextLoggerDirective, typeof i16.DbxActionIdleDirective, typeof i17.DbxActionPreSuccessDirective, typeof i18.DbxActionHasSuccessDirective, typeof i19.DbxActionSuccessHandlerDirective, typeof i20.DbxActionErrorHandlerDirective, typeof i21.DbxActionIsWorkingDirective], [typeof i1.DbxActionDirective, typeof i2.DbxActionContextMapDirective, typeof i3.DbxActionFromMapDirective, typeof i4.DbxActionMapSourceDirective, typeof i5.DbxActionMapWorkingDisableDirective, typeof i6.DbxActionSourceDirective, typeof i7.DbxActionHandlerDirective, typeof i7.DbxActionHandlerValueDirective, typeof i8.DbxActionDisabledDirective, typeof i9.DbxActionDisabledOnSuccessDirective, typeof i10.DbxActionEnforceModifiedDirective, typeof i11.DbxActionAutoTriggerDirective, typeof i12.DbxActionValueStreamDirective, typeof i13.DbxActionAutoModifyDirective, typeof i14.DbxActionValueDirective, typeof i15.DbxActionContextLoggerDirective, typeof i16.DbxActionIdleDirective, typeof i17.DbxActionPreSuccessDirective, typeof i18.DbxActionHasSuccessDirective, typeof i19.DbxActionSuccessHandlerDirective, typeof i20.DbxActionErrorHandlerDirective, typeof i21.DbxActionIsWorkingDirective]>;
29
- static ɵinj: i0.ɵɵInjectorDeclaration<DbxCoreActionModule>;
30
- }
@@ -1,11 +0,0 @@
1
- import { type Destroyable } from '@dereekb/util';
2
- import { type DbxActionContextStoreSourceInstance } from './action.store.source';
3
- /**
4
- * Acts as a reference to a DbxActionContextStoreSourceInstance that can be destroyed.
5
- *
6
- * This is used in cases where the action is passed around and the context it is passed to needs to clean up.
7
- */
8
- export interface DbxActionContextSourceReference<T = unknown, O = unknown> extends Destroyable {
9
- readonly sourceInstance: DbxActionContextStoreSourceInstance<T, O>;
10
- }
11
- export declare function makeDbxActionContextSourceReference<T, O>(sourceInstance: DbxActionContextStoreSourceInstance<T, O>): DbxActionContextSourceReference<T, O>;
@@ -1,208 +0,0 @@
1
- import { OnDestroy } from '@angular/core';
2
- import { ComponentStore } from '@ngrx/component-store';
3
- import { Observable } from 'rxjs';
4
- import { BooleanStringKeyArray, Maybe, ReadableError } from '@dereekb/util';
5
- import { LoadingStateType, LoadingState, LockSet } from '@dereekb/rxjs';
6
- import { DbxActionRejectedPair, DbxActionState, DbxActionSuccessPair, DbxActionWorkOrWorkProgress, DbxActionWorkProgress } from './action';
7
- import * as i0 from "@angular/core";
8
- export declare function isActionContextEnabled(state: ActionContextState): boolean;
9
- export declare function isActionContextDisabled(state: ActionContextState): boolean;
10
- export declare function isDisabledActionContextState(state: ActionContextState): boolean;
11
- export declare function isWorkingActionState(actionState: DbxActionState): boolean;
12
- export declare function canTriggerActionState(actionState: DbxActionState): boolean;
13
- export declare function canTriggerAction(state: ActionContextState): boolean;
14
- export declare function canReadyValue(state: ActionContextState): boolean;
15
- export declare function actionContextIsModifiedAndCanTrigger(state: ActionContextState): boolean;
16
- export declare function actionContextHasNoErrorAndIsModifiedAndCanTrigger(state: ActionContextState): boolean;
17
- export declare function loadingStateForActionContextState<O = unknown>(state: ActionContextState<unknown, O>): LoadingState<O>;
18
- export declare function loadingStateTypeForActionContextState(state: ActionContextState): LoadingStateType;
19
- export interface ActionContextState<T = unknown, O = unknown> {
20
- readonly actionState: DbxActionState;
21
- /**
22
- * Whether or not this action is flagged as having been modified.
23
- */
24
- readonly isModified: boolean;
25
- /**
26
- * The working progress of the action.
27
- *
28
- * Is reset to null when triggered/ready value is set.
29
- */
30
- readonly workProgress?: Maybe<DbxActionWorkProgress>;
31
- /**
32
- * Value that is set after a triggered action. Not to be confused with result.
33
- */
34
- readonly value?: Maybe<T>;
35
- /**
36
- * Resolved result value.
37
- */
38
- readonly result?: Maybe<O>;
39
- /**
40
- * Rejected error, if available.
41
- */
42
- readonly error?: Maybe<ReadableError>;
43
- /**
44
- * Current disabled state.
45
- */
46
- readonly disabled?: BooleanStringKeyArray;
47
- /**
48
- * Number of consecutive errors that have occured.
49
- */
50
- readonly errorCount?: number;
51
- }
52
- export declare class ActionContextStore<T = unknown, O = unknown> extends ComponentStore<ActionContextState<T, O>> implements OnDestroy {
53
- readonly lockSet: LockSet;
54
- constructor();
55
- readonly actionState$: Observable<DbxActionState>;
56
- /**
57
- * Returns the current disabled reasons/keys.
58
- */
59
- readonly disabledKeys$: Observable<string[]>;
60
- /**
61
- * Current value of the state.
62
- */
63
- readonly currentValue$: Observable<Maybe<T>>;
64
- /**
65
- * Maps the current state to true or not when the action state changes to/from disabled.
66
- */
67
- readonly isDisabled$: Observable<boolean>;
68
- /**
69
- * Pipes when idle but modified.
70
- */
71
- readonly isModified$: Observable<boolean>;
72
- /**
73
- * Pipes true when idle.
74
- */
75
- readonly idle$: Observable<boolean>;
76
- /**
77
- * Pipes true when triggered.
78
- */
79
- readonly triggered$: Observable<boolean>;
80
- /**
81
- * Pipes the readied value on ValueReady.
82
- */
83
- readonly valueReady$: Observable<T>;
84
- /**
85
- * Pipes the working progress on the working state.
86
- */
87
- readonly workProgress$: Observable<Maybe<number>>;
88
- /**
89
- * Pipes the error on the rejection state.
90
- */
91
- readonly rejected$: Observable<Maybe<ReadableError>>;
92
- /**
93
- * Pipes the result when the ActionState becomes rejected.
94
- */
95
- readonly rejectedPair$: Observable<DbxActionRejectedPair<T>>;
96
- /**
97
- * Pipes the result when the ActionState becomes working.
98
- */
99
- readonly working$: Observable<boolean>;
100
- /**
101
- * Whether or not it is currently in a working state.
102
- */
103
- readonly isWorking$: Observable<boolean>;
104
- /**
105
- * Pipes the current work or work progress.
106
- */
107
- readonly isWorkingOrWorkProgress$: Observable<DbxActionWorkOrWorkProgress>;
108
- /**
109
- * Pipes the current error.
110
- */
111
- readonly error$: Observable<Maybe<ReadableError>>;
112
- /**
113
- * Pipes the result when the ActionState becomes success.
114
- */
115
- readonly success$: Observable<Maybe<O>>;
116
- /**
117
- * Pipes the result when the ActionState becomes success.
118
- */
119
- readonly successPair$: Observable<DbxActionSuccessPair<T, O>>;
120
- /**
121
- * Whether or not it is currently in a success state.
122
- */
123
- readonly isSuccess$: Observable<boolean>;
124
- /**
125
- * Returns a loading state based on the current state.
126
- */
127
- readonly loadingState$: Observable<LoadingState<O>>;
128
- /**
129
- * Returns the current LoadingStateType based on the current state.
130
- */
131
- readonly loadingStateType$: Observable<LoadingStateType>;
132
- /**
133
- * Number of errors since last success.
134
- */
135
- readonly errorCountSinceLastSuccess$: Observable<number>;
136
- /**
137
- * Whether or not the state can be triggered.
138
- */
139
- readonly canTrigger$: Observable<boolean>;
140
- /**
141
- * Pipe that maps whether or not this is modified and can be triggered.
142
- *
143
- * Updates every state update instead of when the value changes.
144
- */
145
- readonly isModifiedAndCanTriggerUpdates$: Observable<boolean>;
146
- /**
147
- * Whether or not it can be triggered and modified.
148
- */
149
- readonly isModifiedAndCanTrigger$: Observable<boolean>;
150
- readonly hasNoErrorAndIsModifiedAndCanTrigger$: Observable<boolean>;
151
- /**
152
- * Adds a disabled reason.
153
- */
154
- readonly disable: (() => void) | ((observableOrValue: string | void | Observable<string | void | undefined> | undefined) => import("rxjs").Subscription);
155
- /**
156
- * Removes a disabled reason.
157
- */
158
- readonly enable: (() => void) | ((observableOrValue: string | void | Observable<string | void | undefined> | undefined) => import("rxjs").Subscription);
159
- /**
160
- * Triggers the modified state, if not disabled.
161
- *
162
- * Equivalent to calling setIsModified() with opposite input.
163
- */
164
- readonly setIsSame: (() => void) | ((observableOrValue: boolean | void | Observable<boolean | void>) => import("rxjs").Subscription);
165
- /**
166
- * Triggers the modified state, if not disabled.
167
- */
168
- readonly setIsModified: (() => void) | ((observableOrValue: boolean | void | Observable<boolean | void>) => import("rxjs").Subscription);
169
- /**
170
- * 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).
171
- *
172
- * Will not fire if the action is disabled.
173
- */
174
- readonly trigger: () => void;
175
- /**
176
- * Updates the value, setting value ready. The current result is cleared.
177
- */
178
- readonly readyValue: T extends void ? () => void : (observableOrValue: T | Observable<T>) => import("rxjs").Subscription;
179
- /**
180
- * Notifys the context that the action is in progress.
181
- */
182
- readonly startWorking: () => void;
183
- /**
184
- * Updates the working progress.
185
- */
186
- readonly setWorkProgress: (() => void) | ((observableOrValue: Maybe<number> | Observable<Maybe<number>>) => import("rxjs").Subscription);
187
- /**
188
- * Triggers rejection of the action. The value is cleared.
189
- */
190
- readonly reject: (() => void) | ((observableOrValue: Maybe<ReadableError> | Observable<Maybe<ReadableError>>) => import("rxjs").Subscription);
191
- /**
192
- * Updates the state to success, and optionally sets a result.
193
- *
194
- * Clears modified state, and any errors.
195
- */
196
- readonly resolve: (() => void) | ((observableOrValue: Maybe<O> | Observable<Maybe<O>>) => import("rxjs").Subscription) | (O extends void ? () => void : (observableOrValue: Maybe<O> | Observable<Maybe<O>>) => import("rxjs").Subscription);
197
- /**
198
- * Completely resets the store.
199
- */
200
- readonly reset: () => void;
201
- afterDistinctBoolean(fromState: (state: ActionContextState<T, O>) => boolean): Observable<boolean>;
202
- afterDistinctActionState<X>(actionState: DbxActionState, fromState: (state: ActionContextState<T, O>) => X): Observable<X>;
203
- afterDistinctActionStateChange(): Observable<ActionContextState<T, O>>;
204
- afterDistinctLoadingStateTypeChange(): Observable<ActionContextState<T, O>>;
205
- ngOnDestroy(): void;
206
- static ɵfac: i0.ɵɵFactoryDeclaration<ActionContextStore<any, any>, never>;
207
- static ɵprov: i0.ɵɵInjectableDeclaration<ActionContextStore<any, any>>;
208
- }