@dereekb/dbx-core 12.7.0 → 13.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/dereekb-dbx-core.mjs +659 -976
- package/fesm2022/dereekb-dbx-core.mjs.map +1 -1
- package/package.json +16 -18
- package/types/dereekb-dbx-core.d.ts +3633 -0
- package/esm2022/dereekb-dbx-core.mjs +0 -5
- package/esm2022/index.mjs +0 -2
- package/esm2022/lib/action/action.handler.mjs +0 -22
- package/esm2022/lib/action/action.holder.mjs +0 -76
- package/esm2022/lib/action/action.machine.mjs +0 -71
- package/esm2022/lib/action/action.mjs +0 -95
- package/esm2022/lib/action/action.module.mjs +0 -85
- package/esm2022/lib/action/action.reference.mjs +0 -7
- package/esm2022/lib/action/action.store.mjs +0 -290
- package/esm2022/lib/action/action.store.source.mjs +0 -162
- package/esm2022/lib/action/action.store.source.provide.mjs +0 -36
- package/esm2022/lib/action/directive/auto/action.automodify.directive.mjs +0 -36
- package/esm2022/lib/action/directive/auto/action.autotrigger.directive.mjs +0 -111
- package/esm2022/lib/action/directive/auto/index.mjs +0 -3
- package/esm2022/lib/action/directive/context/action.directive.mjs +0 -32
- package/esm2022/lib/action/directive/context/action.source.directive.mjs +0 -25
- package/esm2022/lib/action/directive/context/index.mjs +0 -3
- package/esm2022/lib/action/directive/debug/action.logger.directive.mjs +0 -25
- package/esm2022/lib/action/directive/debug/index.mjs +0 -2
- package/esm2022/lib/action/directive/index.mjs +0 -6
- package/esm2022/lib/action/directive/map/action.map.directive.mjs +0 -34
- package/esm2022/lib/action/directive/map/action.map.key.directive.mjs +0 -27
- package/esm2022/lib/action/directive/map/action.map.mjs +0 -60
- package/esm2022/lib/action/directive/map/action.map.source.directive.mjs +0 -44
- package/esm2022/lib/action/directive/map/action.map.utility.mjs +0 -37
- package/esm2022/lib/action/directive/map/action.map.working.disable.directive.mjs +0 -34
- package/esm2022/lib/action/directive/map/index.mjs +0 -7
- package/esm2022/lib/action/directive/state/action.disabled.directive.mjs +0 -30
- package/esm2022/lib/action/directive/state/action.disableonsuccess.directive.mjs +0 -31
- package/esm2022/lib/action/directive/state/action.enforce.modified.directive.mjs +0 -34
- package/esm2022/lib/action/directive/state/action.error.handler.directive.mjs +0 -32
- package/esm2022/lib/action/directive/state/action.handler.directive.mjs +0 -57
- package/esm2022/lib/action/directive/state/action.handler.instance.mjs +0 -61
- package/esm2022/lib/action/directive/state/action.idle.directive.mjs +0 -34
- package/esm2022/lib/action/directive/state/action.presuccess.directive.mjs +0 -34
- package/esm2022/lib/action/directive/state/action.success.directive.mjs +0 -34
- package/esm2022/lib/action/directive/state/action.success.handler.directive.mjs +0 -32
- package/esm2022/lib/action/directive/state/action.triggered.directive.mjs +0 -34
- package/esm2022/lib/action/directive/state/action.value.directive.mjs +0 -42
- package/esm2022/lib/action/directive/state/action.value.stream.directive.mjs +0 -59
- package/esm2022/lib/action/directive/state/action.value.trigger.directive.mjs +0 -75
- package/esm2022/lib/action/directive/state/action.value.trigger.instance.mjs +0 -59
- package/esm2022/lib/action/directive/state/action.working.directive.mjs +0 -41
- package/esm2022/lib/action/directive/state/index.mjs +0 -17
- package/esm2022/lib/action/index.mjs +0 -11
- package/esm2022/lib/auth/auth.module.mjs +0 -25
- package/esm2022/lib/auth/auth.providers.mjs +0 -16
- package/esm2022/lib/auth/auth.role.any.directive.mjs +0 -24
- package/esm2022/lib/auth/auth.role.has.directive.mjs +0 -24
- package/esm2022/lib/auth/auth.role.not.directive.mjs +0 -24
- package/esm2022/lib/auth/auth.state.providers.mjs +0 -14
- package/esm2022/lib/auth/auth.state.service.mjs +0 -20
- package/esm2022/lib/auth/auth.user.mjs +0 -11
- package/esm2022/lib/auth/index.mjs +0 -12
- package/esm2022/lib/auth/router/auth.router.mjs +0 -6
- package/esm2022/lib/auth/router/auth.router.providers.mjs +0 -19
- package/esm2022/lib/auth/router/auth.router.service.mjs +0 -73
- package/esm2022/lib/auth/router/index.mjs +0 -6
- package/esm2022/lib/auth/router/provider/uirouter/auth.hook.mjs +0 -23
- package/esm2022/lib/auth/router/provider/uirouter/hook.mjs +0 -71
- package/esm2022/lib/auth/router/provider/uirouter/index.mjs +0 -6
- package/esm2022/lib/auth/router/provider/uirouter/redirect.mjs +0 -29
- package/esm2022/lib/auth/router/provider/uirouter/role.hook.mjs +0 -58
- package/esm2022/lib/auth/router/provider/uirouter/state.hook.mjs +0 -53
- package/esm2022/lib/auth/router/state/auth.router.state.providers.mjs +0 -23
- package/esm2022/lib/auth/router/state/effect/auth.router.state.effect.mjs +0 -37
- package/esm2022/lib/auth/router/state/effect/index.mjs +0 -2
- package/esm2022/lib/auth/router/state/index.mjs +0 -3
- package/esm2022/lib/auth/service/auth.service.mjs +0 -6
- package/esm2022/lib/auth/service/auth.service.rxjs.mjs +0 -30
- package/esm2022/lib/auth/service/index.mjs +0 -3
- package/esm2022/lib/auth/state/action/auth.action.mjs +0 -14
- package/esm2022/lib/auth/state/action/index.mjs +0 -12
- package/esm2022/lib/auth/state/action/user.action.mjs +0 -18
- package/esm2022/lib/auth/state/effect/auth.effect.mjs +0 -33
- package/esm2022/lib/auth/state/index.mjs +0 -13
- package/esm2022/lib/auth/state/reducer/index.mjs +0 -23
- package/esm2022/lib/auth/state/reducer/user.reducer.mjs +0 -12
- package/esm2022/lib/auth/state/state.mjs +0 -2
- package/esm2022/lib/button/action/action.button.directive.mjs +0 -28
- package/esm2022/lib/button/action/action.button.trigger.directive.mjs +0 -30
- package/esm2022/lib/button/action/index.mjs +0 -3
- package/esm2022/lib/button/button.directive.mjs +0 -115
- package/esm2022/lib/button/button.loading.directive.mjs +0 -37
- package/esm2022/lib/button/button.mjs +0 -21
- package/esm2022/lib/button/button.module.mjs +0 -28
- package/esm2022/lib/button/index.mjs +0 -7
- package/esm2022/lib/button/router/button.segue.directive.mjs +0 -29
- package/esm2022/lib/button/router/index.mjs +0 -2
- package/esm2022/lib/context/context.directive.mjs +0 -26
- package/esm2022/lib/context/context.mjs +0 -25
- package/esm2022/lib/context/context.module.mjs +0 -19
- package/esm2022/lib/context/context.providers.mjs +0 -12
- package/esm2022/lib/context/context.service.mjs +0 -26
- package/esm2022/lib/context/index.mjs +0 -7
- package/esm2022/lib/context/state/action/data.action.mjs +0 -10
- package/esm2022/lib/context/state/action/index.mjs +0 -7
- package/esm2022/lib/context/state/effect/index.mjs +0 -33
- package/esm2022/lib/context/state/index.mjs +0 -13
- package/esm2022/lib/context/state/reducer/data.reducer.mjs +0 -16
- package/esm2022/lib/context/state/reducer/index.mjs +0 -25
- package/esm2022/lib/context/state/state.mjs +0 -2
- package/esm2022/lib/environment/environment.mjs +0 -6
- package/esm2022/lib/environment/environment.providers.mjs +0 -19
- package/esm2022/lib/environment/environment.service.mjs +0 -30
- package/esm2022/lib/environment/index.mjs +0 -4
- package/esm2022/lib/filter/filter.abstract.connector.directive.mjs +0 -21
- package/esm2022/lib/filter/filter.abstract.source.directive.mjs +0 -69
- package/esm2022/lib/filter/filter.connect.source.directive.mjs +0 -23
- package/esm2022/lib/filter/filter.connector.directive.mjs +0 -20
- package/esm2022/lib/filter/filter.content.mjs +0 -29
- package/esm2022/lib/filter/filter.map.connector.directive.mjs +0 -33
- package/esm2022/lib/filter/filter.map.directive.mjs +0 -22
- package/esm2022/lib/filter/filter.map.instance.directive.mjs +0 -25
- package/esm2022/lib/filter/filter.map.source.directive.mjs +0 -38
- package/esm2022/lib/filter/filter.module.mjs +0 -22
- package/esm2022/lib/filter/filter.preset.mjs +0 -8
- package/esm2022/lib/filter/filter.source.directive.mjs +0 -19
- package/esm2022/lib/filter/index.mjs +0 -13
- package/esm2022/lib/index.mjs +0 -15
- package/esm2022/lib/injection/index.mjs +0 -14
- package/esm2022/lib/injection/injection.array.component.mjs +0 -31
- package/esm2022/lib/injection/injection.array.mjs +0 -2
- package/esm2022/lib/injection/injection.component.mjs +0 -32
- package/esm2022/lib/injection/injection.component.module.mjs +0 -26
- package/esm2022/lib/injection/injection.context.directive.mjs +0 -130
- package/esm2022/lib/injection/injection.context.forward.directive.mjs +0 -25
- package/esm2022/lib/injection/injection.context.mjs +0 -20
- package/esm2022/lib/injection/injection.directive.mjs +0 -30
- package/esm2022/lib/injection/injection.instance.mjs +0 -121
- package/esm2022/lib/injection/injection.mjs +0 -16
- package/esm2022/lib/injection/injection.rxjs.mjs +0 -24
- package/esm2022/lib/injection/injection.util.mjs +0 -11
- package/esm2022/lib/injection/injector.mjs +0 -13
- package/esm2022/lib/ngrx/index.mjs +0 -2
- package/esm2022/lib/ngrx/store.lockset.mjs +0 -66
- package/esm2022/lib/pipe/async/asobservable.pipe.mjs +0 -21
- package/esm2022/lib/pipe/async/async.pipe.module.mjs +0 -20
- package/esm2022/lib/pipe/async/index.mjs +0 -3
- package/esm2022/lib/pipe/date/date.pipe.module.mjs +0 -108
- package/esm2022/lib/pipe/date/datedayrange.pipe.mjs +0 -24
- package/esm2022/lib/pipe/date/datedaytimerange.pipe.mjs +0 -24
- package/esm2022/lib/pipe/date/datedistance.pipe.mjs +0 -27
- package/esm2022/lib/pipe/date/dateformatdistance.pipe.mjs +0 -36
- package/esm2022/lib/pipe/date/datefromtoformat.pipe.mjs +0 -34
- package/esm2022/lib/pipe/date/daterangedistance.pipe.mjs +0 -24
- package/esm2022/lib/pipe/date/datetimerange.pipe.mjs +0 -24
- package/esm2022/lib/pipe/date/datetimerangeonly.pipe.mjs +0 -24
- package/esm2022/lib/pipe/date/datetimerangeonlydistance.pipe.mjs +0 -24
- package/esm2022/lib/pipe/date/index.mjs +0 -18
- package/esm2022/lib/pipe/date/minutesstring.pipe.mjs +0 -36
- package/esm2022/lib/pipe/date/systemdatetotargetdate.pipe.mjs +0 -27
- package/esm2022/lib/pipe/date/targetdatetosystemdate.pipe.mjs +0 -27
- package/esm2022/lib/pipe/date/timedistance.pipe.mjs +0 -57
- package/esm2022/lib/pipe/date/timezoneabbreviation.pipe.mjs +0 -27
- package/esm2022/lib/pipe/date/tojsdate.pipe.mjs +0 -30
- package/esm2022/lib/pipe/date/tominutes.pipe.mjs +0 -21
- package/esm2022/lib/pipe/index.mjs +0 -6
- package/esm2022/lib/pipe/misc/index.mjs +0 -3
- package/esm2022/lib/pipe/misc/misc.pipe.module.mjs +0 -21
- package/esm2022/lib/pipe/misc/prettyjson.pipe.mjs +0 -30
- package/esm2022/lib/pipe/pipe.module.mjs +0 -25
- package/esm2022/lib/pipe/value/cuttext.pipe.mjs +0 -22
- package/esm2022/lib/pipe/value/dollar.pipe.mjs +0 -24
- package/esm2022/lib/pipe/value/getvalue.pipe.mjs +0 -40
- package/esm2022/lib/pipe/value/index.mjs +0 -5
- package/esm2022/lib/pipe/value/value.pipe.module.mjs +0 -27
- package/esm2022/lib/router/anchor/anchor.directive.mjs +0 -63
- package/esm2022/lib/router/anchor/anchor.mjs +0 -52
- package/esm2022/lib/router/anchor/clickable.mjs +0 -18
- package/esm2022/lib/router/anchor/index.mjs +0 -5
- package/esm2022/lib/router/anchor/mousable.mjs +0 -2
- package/esm2022/lib/router/auth/hook/id.hook.mjs +0 -54
- package/esm2022/lib/router/auth/hook/index.mjs +0 -3
- package/esm2022/lib/router/auth/hook/uid.hook.mjs +0 -19
- package/esm2022/lib/router/auth/index.mjs +0 -2
- package/esm2022/lib/router/index.mjs +0 -6
- package/esm2022/lib/router/model/id.param.redirect.mjs +0 -73
- package/esm2022/lib/router/model/index.mjs +0 -7
- package/esm2022/lib/router/model/model.module.mjs +0 -26
- package/esm2022/lib/router/model/model.router.id.directive.mjs +0 -58
- package/esm2022/lib/router/model/model.router.key.directive.mjs +0 -60
- package/esm2022/lib/router/model/model.router.mjs +0 -38
- package/esm2022/lib/router/model/model.router.uid.directive.mjs +0 -25
- package/esm2022/lib/router/router/index.mjs +0 -5
- package/esm2022/lib/router/router/provider/angular/angular.router.service.mjs +0 -78
- package/esm2022/lib/router/router/provider/angular/angular.router.service.module.mjs +0 -31
- package/esm2022/lib/router/router/provider/angular/index.mjs +0 -3
- package/esm2022/lib/router/router/provider/index.mjs +0 -3
- package/esm2022/lib/router/router/provider/uirouter/index.mjs +0 -4
- package/esm2022/lib/router/router/provider/uirouter/uirouter.router.service.mjs +0 -95
- package/esm2022/lib/router/router/provider/uirouter/uirouter.router.service.module.mjs +0 -34
- package/esm2022/lib/router/router/provider/uirouter/uirouter.router.service.providers.mjs +0 -24
- package/esm2022/lib/router/router/service/index.mjs +0 -6
- package/esm2022/lib/router/router/service/router.go.mjs +0 -14
- package/esm2022/lib/router/router/service/router.service.mjs +0 -7
- package/esm2022/lib/router/router/service/router.service.rxjs.mjs +0 -39
- package/esm2022/lib/router/router/service/router.service.util.mjs +0 -14
- package/esm2022/lib/router/router/service/router.transition.service.mjs +0 -6
- package/esm2022/lib/router/router/transition/index.mjs +0 -5
- package/esm2022/lib/router/router/transition/transition.directive.mjs +0 -19
- package/esm2022/lib/router/router/transition/transition.mjs +0 -12
- package/esm2022/lib/router/router/transition/transition.rxjs.mjs +0 -55
- package/esm2022/lib/router/router/transition/transition.watcher.directive.mjs +0 -28
- package/esm2022/lib/router/router/util/index.mjs +0 -3
- package/esm2022/lib/router/router/util/route.default.mjs +0 -63
- package/esm2022/lib/router/router/util/route.reader.mjs +0 -47
- package/esm2022/lib/router/segue.mjs +0 -35
- package/esm2022/lib/rxjs/clean.mjs +0 -28
- package/esm2022/lib/rxjs/destroy.mjs +0 -13
- package/esm2022/lib/rxjs/index.mjs +0 -7
- package/esm2022/lib/rxjs/loading.mjs +0 -19
- package/esm2022/lib/rxjs/lockset.mjs +0 -56
- package/esm2022/lib/rxjs/rxjs.directive.mjs +0 -42
- package/esm2022/lib/rxjs/subscription.mjs +0 -16
- package/esm2022/lib/storage/index.mjs +0 -9
- package/esm2022/lib/storage/storage.accessor.mjs +0 -16
- package/esm2022/lib/storage/storage.accessor.simple.factory.mjs +0 -26
- package/esm2022/lib/storage/storage.accessor.simple.mjs +0 -172
- package/esm2022/lib/storage/storage.accessor.string.mjs +0 -50
- package/esm2022/lib/storage/storage.di.mjs +0 -4
- package/esm2022/lib/storage/storage.object.localstorage.mjs +0 -47
- package/esm2022/lib/storage/storage.object.memory.mjs +0 -17
- package/esm2022/lib/storage/storage.providers.mjs +0 -41
- package/esm2022/lib/util/index.mjs +0 -3
- package/esm2022/lib/util/input.mjs +0 -7
- package/esm2022/lib/util/view.mjs +0 -81
- package/esm2022/lib/view/if.directive.mjs +0 -28
- package/esm2022/lib/view/index.mjs +0 -2
- package/index.d.ts +0 -1
- package/lib/action/action.d.ts +0 -80
- package/lib/action/action.handler.d.ts +0 -15
- package/lib/action/action.holder.d.ts +0 -38
- package/lib/action/action.machine.d.ts +0 -48
- package/lib/action/action.module.d.ts +0 -30
- package/lib/action/action.reference.d.ts +0 -11
- package/lib/action/action.store.d.ts +0 -208
- package/lib/action/action.store.source.d.ts +0 -77
- package/lib/action/action.store.source.provide.d.ts +0 -7
- package/lib/action/directive/auto/action.automodify.directive.d.ts +0 -11
- package/lib/action/directive/auto/action.autotrigger.directive.d.ts +0 -36
- package/lib/action/directive/auto/index.d.ts +0 -2
- package/lib/action/directive/context/action.directive.d.ts +0 -10
- package/lib/action/directive/context/action.source.directive.d.ts +0 -12
- package/lib/action/directive/context/index.d.ts +0 -2
- package/lib/action/directive/debug/action.logger.directive.d.ts +0 -11
- package/lib/action/directive/debug/index.d.ts +0 -1
- package/lib/action/directive/index.d.ts +0 -5
- package/lib/action/directive/map/action.map.d.ts +0 -43
- package/lib/action/directive/map/action.map.directive.d.ts +0 -12
- package/lib/action/directive/map/action.map.key.directive.d.ts +0 -14
- package/lib/action/directive/map/action.map.source.directive.d.ts +0 -19
- package/lib/action/directive/map/action.map.utility.d.ts +0 -48
- package/lib/action/directive/map/action.map.working.disable.directive.d.ts +0 -16
- package/lib/action/directive/map/index.d.ts +0 -6
- package/lib/action/directive/state/action.disabled.directive.d.ts +0 -15
- package/lib/action/directive/state/action.disableonsuccess.directive.d.ts +0 -15
- package/lib/action/directive/state/action.enforce.modified.directive.d.ts +0 -15
- package/lib/action/directive/state/action.error.handler.directive.d.ts +0 -18
- package/lib/action/directive/state/action.handler.directive.d.ts +0 -33
- package/lib/action/directive/state/action.handler.instance.d.ts +0 -22
- package/lib/action/directive/state/action.idle.directive.d.ts +0 -15
- package/lib/action/directive/state/action.presuccess.directive.d.ts +0 -15
- package/lib/action/directive/state/action.success.directive.d.ts +0 -15
- package/lib/action/directive/state/action.success.handler.directive.d.ts +0 -18
- package/lib/action/directive/state/action.triggered.directive.d.ts +0 -15
- package/lib/action/directive/state/action.value.directive.d.ts +0 -23
- package/lib/action/directive/state/action.value.stream.directive.d.ts +0 -19
- package/lib/action/directive/state/action.value.trigger.directive.d.ts +0 -38
- package/lib/action/directive/state/action.value.trigger.instance.d.ts +0 -45
- package/lib/action/directive/state/action.working.directive.d.ts +0 -17
- package/lib/action/directive/state/index.d.ts +0 -16
- package/lib/action/index.d.ts +0 -10
- package/lib/auth/auth.module.d.ts +0 -16
- package/lib/auth/auth.providers.d.ts +0 -12
- package/lib/auth/auth.role.any.directive.d.ts +0 -15
- package/lib/auth/auth.role.has.directive.d.ts +0 -15
- package/lib/auth/auth.role.not.directive.d.ts +0 -15
- package/lib/auth/auth.state.providers.d.ts +0 -7
- package/lib/auth/auth.state.service.d.ts +0 -11
- package/lib/auth/auth.user.d.ts +0 -28
- package/lib/auth/index.d.ts +0 -11
- package/lib/auth/router/auth.router.d.ts +0 -10
- package/lib/auth/router/auth.router.providers.d.ts +0 -18
- package/lib/auth/router/auth.router.service.d.ts +0 -46
- package/lib/auth/router/index.d.ts +0 -5
- package/lib/auth/router/provider/uirouter/auth.hook.d.ts +0 -18
- package/lib/auth/router/provider/uirouter/hook.d.ts +0 -51
- package/lib/auth/router/provider/uirouter/index.d.ts +0 -5
- package/lib/auth/router/provider/uirouter/redirect.d.ts +0 -9
- package/lib/auth/router/provider/uirouter/role.hook.d.ts +0 -44
- package/lib/auth/router/provider/uirouter/state.hook.d.ts +0 -31
- package/lib/auth/router/state/auth.router.state.providers.d.ts +0 -19
- package/lib/auth/router/state/effect/auth.router.state.effect.d.ts +0 -28
- package/lib/auth/router/state/effect/index.d.ts +0 -1
- package/lib/auth/router/state/index.d.ts +0 -2
- package/lib/auth/service/auth.service.d.ts +0 -46
- package/lib/auth/service/auth.service.rxjs.d.ts +0 -19
- package/lib/auth/service/index.d.ts +0 -2
- package/lib/auth/state/action/auth.action.d.ts +0 -12
- package/lib/auth/state/action/index.d.ts +0 -11
- package/lib/auth/state/action/user.action.d.ts +0 -34
- package/lib/auth/state/effect/auth.effect.d.ts +0 -28
- package/lib/auth/state/index.d.ts +0 -12
- package/lib/auth/state/reducer/index.d.ts +0 -29
- package/lib/auth/state/reducer/user.reducer.d.ts +0 -11
- package/lib/auth/state/state.d.ts +0 -5
- package/lib/button/action/action.button.directive.d.ts +0 -10
- package/lib/button/action/action.button.trigger.directive.d.ts +0 -14
- package/lib/button/action/index.d.ts +0 -2
- package/lib/button/button.d.ts +0 -113
- package/lib/button/button.directive.d.ts +0 -60
- package/lib/button/button.loading.directive.d.ts +0 -18
- package/lib/button/button.module.d.ts +0 -19
- package/lib/button/index.d.ts +0 -6
- package/lib/button/router/button.segue.directive.d.ts +0 -13
- package/lib/button/router/index.d.ts +0 -1
- package/lib/context/context.d.ts +0 -42
- package/lib/context/context.directive.d.ts +0 -13
- package/lib/context/context.module.d.ts +0 -10
- package/lib/context/context.providers.d.ts +0 -7
- package/lib/context/context.service.d.ts +0 -14
- package/lib/context/index.d.ts +0 -6
- package/lib/context/state/action/data.action.d.ts +0 -13
- package/lib/context/state/action/index.d.ts +0 -6
- package/lib/context/state/effect/index.d.ts +0 -24
- package/lib/context/state/index.d.ts +0 -12
- package/lib/context/state/reducer/data.reducer.d.ts +0 -13
- package/lib/context/state/reducer/index.d.ts +0 -34
- package/lib/context/state/state.d.ts +0 -9
- package/lib/environment/environment.d.ts +0 -21
- package/lib/environment/environment.providers.d.ts +0 -8
- package/lib/environment/environment.service.d.ts +0 -17
- package/lib/environment/index.d.ts +0 -3
- package/lib/filter/filter.abstract.connector.directive.d.ts +0 -13
- package/lib/filter/filter.abstract.source.directive.d.ts +0 -37
- package/lib/filter/filter.connect.source.directive.d.ts +0 -13
- package/lib/filter/filter.connector.directive.d.ts +0 -9
- package/lib/filter/filter.content.d.ts +0 -10
- package/lib/filter/filter.map.connector.directive.d.ts +0 -14
- package/lib/filter/filter.map.directive.d.ts +0 -10
- package/lib/filter/filter.map.instance.directive.d.ts +0 -16
- package/lib/filter/filter.map.source.directive.d.ts +0 -23
- package/lib/filter/filter.module.d.ts +0 -12
- package/lib/filter/filter.preset.d.ts +0 -29
- package/lib/filter/filter.source.directive.d.ts +0 -9
- package/lib/filter/index.d.ts +0 -12
- package/lib/index.d.ts +0 -14
- package/lib/injection/index.d.ts +0 -13
- package/lib/injection/injection.array.component.d.ts +0 -11
- package/lib/injection/injection.array.d.ts +0 -12
- package/lib/injection/injection.component.d.ts +0 -19
- package/lib/injection/injection.component.module.d.ts +0 -16
- package/lib/injection/injection.context.d.ts +0 -39
- package/lib/injection/injection.context.directive.d.ts +0 -26
- package/lib/injection/injection.context.forward.directive.d.ts +0 -15
- package/lib/injection/injection.d.ts +0 -53
- package/lib/injection/injection.directive.d.ts +0 -18
- package/lib/injection/injection.instance.d.ts +0 -32
- package/lib/injection/injection.rxjs.d.ts +0 -10
- package/lib/injection/injection.util.d.ts +0 -9
- package/lib/injection/injector.d.ts +0 -10
- package/lib/ngrx/index.d.ts +0 -1
- package/lib/ngrx/store.lockset.d.ts +0 -36
- package/lib/pipe/async/asobservable.pipe.d.ts +0 -12
- package/lib/pipe/async/async.pipe.module.d.ts +0 -10
- package/lib/pipe/async/index.d.ts +0 -2
- package/lib/pipe/date/date.pipe.module.d.ts +0 -43
- package/lib/pipe/date/datedayrange.pipe.d.ts +0 -9
- package/lib/pipe/date/datedaytimerange.pipe.d.ts +0 -9
- package/lib/pipe/date/datedistance.pipe.d.ts +0 -8
- package/lib/pipe/date/dateformatdistance.pipe.d.ts +0 -12
- package/lib/pipe/date/datefromtoformat.pipe.d.ts +0 -13
- package/lib/pipe/date/daterangedistance.pipe.d.ts +0 -9
- package/lib/pipe/date/datetimerange.pipe.d.ts +0 -9
- package/lib/pipe/date/datetimerangeonly.pipe.d.ts +0 -9
- package/lib/pipe/date/datetimerangeonlydistance.pipe.d.ts +0 -9
- package/lib/pipe/date/index.d.ts +0 -17
- package/lib/pipe/date/minutesstring.pipe.d.ts +0 -8
- package/lib/pipe/date/systemdatetotargetdate.pipe.d.ts +0 -12
- package/lib/pipe/date/targetdatetosystemdate.pipe.d.ts +0 -12
- package/lib/pipe/date/timedistance.pipe.d.ts +0 -13
- package/lib/pipe/date/timezoneabbreviation.pipe.d.ts +0 -12
- package/lib/pipe/date/tojsdate.pipe.d.ts +0 -10
- package/lib/pipe/date/tominutes.pipe.d.ts +0 -7
- package/lib/pipe/index.d.ts +0 -5
- package/lib/pipe/misc/index.d.ts +0 -2
- package/lib/pipe/misc/misc.pipe.module.d.ts +0 -12
- package/lib/pipe/misc/prettyjson.pipe.d.ts +0 -9
- package/lib/pipe/pipe.module.d.ts +0 -15
- package/lib/pipe/value/cuttext.pipe.d.ts +0 -11
- package/lib/pipe/value/dollar.pipe.d.ts +0 -13
- package/lib/pipe/value/getvalue.pipe.d.ts +0 -19
- package/lib/pipe/value/index.d.ts +0 -4
- package/lib/pipe/value/value.pipe.module.d.ts +0 -17
- package/lib/router/anchor/anchor.d.ts +0 -71
- package/lib/router/anchor/anchor.directive.d.ts +0 -30
- package/lib/router/anchor/clickable.d.ts +0 -20
- package/lib/router/anchor/index.d.ts +0 -4
- package/lib/router/anchor/mousable.d.ts +0 -9
- package/lib/router/auth/hook/id.hook.d.ts +0 -44
- package/lib/router/auth/hook/index.d.ts +0 -2
- package/lib/router/auth/hook/uid.hook.d.ts +0 -41
- package/lib/router/auth/index.d.ts +0 -1
- package/lib/router/index.d.ts +0 -5
- package/lib/router/model/id.param.redirect.d.ts +0 -51
- package/lib/router/model/index.d.ts +0 -6
- package/lib/router/model/model.module.d.ts +0 -16
- package/lib/router/model/model.router.d.ts +0 -35
- package/lib/router/model/model.router.id.directive.d.ts +0 -27
- package/lib/router/model/model.router.key.directive.d.ts +0 -29
- package/lib/router/model/model.router.uid.directive.d.ts +0 -13
- package/lib/router/router/index.d.ts +0 -4
- package/lib/router/router/provider/angular/angular.router.service.d.ts +0 -24
- package/lib/router/router/provider/angular/angular.router.service.module.d.ts +0 -8
- package/lib/router/router/provider/angular/index.d.ts +0 -2
- package/lib/router/router/provider/index.d.ts +0 -2
- package/lib/router/router/provider/uirouter/index.d.ts +0 -3
- package/lib/router/router/provider/uirouter/uirouter.router.service.d.ts +0 -32
- package/lib/router/router/provider/uirouter/uirouter.router.service.module.d.ts +0 -11
- package/lib/router/router/provider/uirouter/uirouter.router.service.providers.d.ts +0 -7
- package/lib/router/router/service/index.d.ts +0 -5
- package/lib/router/router/service/router.go.d.ts +0 -14
- package/lib/router/router/service/router.service.d.ts +0 -49
- package/lib/router/router/service/router.service.rxjs.d.ts +0 -27
- package/lib/router/router/service/router.service.util.d.ts +0 -26
- package/lib/router/router/service/router.transition.service.d.ts +0 -11
- package/lib/router/router/transition/index.d.ts +0 -4
- package/lib/router/router/transition/transition.d.ts +0 -13
- package/lib/router/router/transition/transition.directive.d.ts +0 -13
- package/lib/router/router/transition/transition.rxjs.d.ts +0 -67
- package/lib/router/router/transition/transition.watcher.directive.d.ts +0 -14
- package/lib/router/router/util/index.d.ts +0 -2
- package/lib/router/router/util/route.default.d.ts +0 -20
- package/lib/router/router/util/route.reader.d.ts +0 -56
- package/lib/router/segue.d.ts +0 -38
- package/lib/rxjs/clean.d.ts +0 -16
- package/lib/rxjs/destroy.d.ts +0 -7
- package/lib/rxjs/index.d.ts +0 -6
- package/lib/rxjs/loading.d.ts +0 -13
- package/lib/rxjs/lockset.d.ts +0 -47
- package/lib/rxjs/rxjs.directive.d.ts +0 -29
- package/lib/rxjs/subscription.d.ts +0 -9
- package/lib/storage/index.d.ts +0 -8
- package/lib/storage/storage.accessor.d.ts +0 -35
- package/lib/storage/storage.accessor.simple.d.ts +0 -80
- package/lib/storage/storage.accessor.simple.factory.d.ts +0 -17
- package/lib/storage/storage.accessor.string.d.ts +0 -16
- package/lib/storage/storage.di.d.ts +0 -3
- package/lib/storage/storage.object.localstorage.d.ts +0 -16
- package/lib/storage/storage.object.memory.d.ts +0 -9
- package/lib/storage/storage.providers.d.ts +0 -13
- package/lib/util/index.d.ts +0 -2
- package/lib/util/input.d.ts +0 -6
- package/lib/util/view.d.ts +0 -61
- package/lib/view/if.directive.d.ts +0 -18
- package/lib/view/index.d.ts +0 -1
|
@@ -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 } 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: import("@dereekb/rxjs").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
|
-
}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { type Observable, type Subscription } from 'rxjs';
|
|
2
|
-
import { LockSet, type LoadingState, type LoadingStateType, type MaybeObservableOrValue } from '@dereekb/rxjs';
|
|
3
|
-
import { type Destroyable, type Maybe, type ReadableError } from '@dereekb/util';
|
|
4
|
-
import { type ActionContextState, type ActionContextStore } from './action.store';
|
|
5
|
-
import { type DbxActionDisabledKey, type DbxActionRejectedPair, type DbxActionState, type DbxActionSuccessPair, type DbxActionWorkOrWorkProgress, type DbxActionWorkProgress } from './action';
|
|
6
|
-
/**
|
|
7
|
-
* Source that provides a ActionContextStore observable.
|
|
8
|
-
*/
|
|
9
|
-
export declare abstract class ActionContextStoreSource<T = unknown, O = unknown> {
|
|
10
|
-
/**
|
|
11
|
-
* Observable referencing the ActionContextStore.
|
|
12
|
-
*
|
|
13
|
-
* This observable by design is pre-filtered to not return null values.
|
|
14
|
-
*/
|
|
15
|
-
abstract readonly store$: Observable<ActionContextStore<T, O>>;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Secondary source. Used by DbxActionContextComponent to find secondary sources.
|
|
19
|
-
*/
|
|
20
|
-
export declare abstract class SecondaryActionContextStoreSource<T = unknown, O = unknown> extends ActionContextStoreSource<T, O> {
|
|
21
|
-
}
|
|
22
|
-
export declare function actionContextStoreSourcePipe<T, O>(obs: Observable<Maybe<ActionContextStore<T, O>>>): Observable<ActionContextStore<T, O>>;
|
|
23
|
-
export type PipeActionStoreFunction<R, T, O> = (store: ActionContextStore<T, O>) => Observable<R>;
|
|
24
|
-
export declare function pipeActionStore<R = unknown, T = unknown, O = unknown>(source: ActionContextStoreSource<T, O>, pipeFn: PipeActionStoreFunction<R, T, O>): Observable<R>;
|
|
25
|
-
export type UseActionStoreFunction<T, O> = (store: ActionContextStore<T, O>) => void;
|
|
26
|
-
/**
|
|
27
|
-
* Convenience function for subscribing to the input source once and using the provided store.
|
|
28
|
-
*/
|
|
29
|
-
export declare function useActionStore<T = unknown, O = unknown>(source: ActionContextStoreSource<T, O>, useFn: UseActionStoreFunction<T, O>): Subscription;
|
|
30
|
-
/**
|
|
31
|
-
* Service that wraps a ActionContextStoreSource.
|
|
32
|
-
*/
|
|
33
|
-
export declare class DbxActionContextStoreSourceInstance<T = unknown, O = unknown> implements ActionContextStoreSource<T, O>, Destroyable {
|
|
34
|
-
readonly lockSet: LockSet;
|
|
35
|
-
private readonly _source;
|
|
36
|
-
constructor(source: ActionContextStoreSource<T, O>);
|
|
37
|
-
get source(): ActionContextStoreSource<T, O>;
|
|
38
|
-
destroy(): void;
|
|
39
|
-
get store$(): Observable<ActionContextStore<T, O>>;
|
|
40
|
-
pipeStore<R>(pipeFn: PipeActionStoreFunction<R, T, O>): Observable<R>;
|
|
41
|
-
useStore(useFn: UseActionStoreFunction<T, O>): Subscription;
|
|
42
|
-
get state$(): Observable<ActionContextState<T, O>>;
|
|
43
|
-
get idle$(): Observable<boolean>;
|
|
44
|
-
get triggered$(): Observable<boolean>;
|
|
45
|
-
get valueReady$(): Observable<T>;
|
|
46
|
-
get success$(): Observable<Maybe<O>>;
|
|
47
|
-
get successPair$(): Observable<DbxActionSuccessPair<T, O>>;
|
|
48
|
-
get workProgress$(): Observable<Maybe<DbxActionWorkProgress>>;
|
|
49
|
-
get error$(): Observable<Maybe<ReadableError>>;
|
|
50
|
-
get rejected$(): Observable<Maybe<ReadableError>>;
|
|
51
|
-
get rejectedPair$(): Observable<DbxActionRejectedPair<T>>;
|
|
52
|
-
get isModified$(): Observable<boolean>;
|
|
53
|
-
get canTrigger$(): Observable<boolean>;
|
|
54
|
-
get isModifiedAndCanTriggerUpdates$(): Observable<boolean>;
|
|
55
|
-
get isModifiedAndCanTrigger$(): Observable<boolean>;
|
|
56
|
-
get actionState$(): Observable<DbxActionState>;
|
|
57
|
-
get loadingState$(): Observable<LoadingState<O>>;
|
|
58
|
-
get loadingStateType$(): Observable<LoadingStateType>;
|
|
59
|
-
get isWorking$(): Observable<boolean>;
|
|
60
|
-
get isWorkingOrWorkProgress$(): Observable<DbxActionWorkOrWorkProgress>;
|
|
61
|
-
get isSuccess$(): Observable<boolean>;
|
|
62
|
-
get disabledKeys$(): Observable<string[]>;
|
|
63
|
-
get isDisabled$(): Observable<boolean>;
|
|
64
|
-
get errorCountSinceLastSuccess$(): Observable<number>;
|
|
65
|
-
enable(key?: DbxActionDisabledKey, enable?: boolean): void;
|
|
66
|
-
disable(key?: DbxActionDisabledKey, disable?: boolean): void;
|
|
67
|
-
setIsSame(isSame?: boolean | Observable<boolean> | Observable<void>): void;
|
|
68
|
-
setIsModified(isModified?: boolean | Observable<boolean> | Observable<void>): void;
|
|
69
|
-
setWorkProgress(workProgress: MaybeObservableOrValue<DbxActionWorkProgress>): void;
|
|
70
|
-
trigger(): void;
|
|
71
|
-
triggerWithValue(value: T | Observable<T>): void;
|
|
72
|
-
readyValue(value: T | Observable<T>): void;
|
|
73
|
-
startWorking(): void;
|
|
74
|
-
reject(error: Maybe<ReadableError | Observable<ReadableError>>): void;
|
|
75
|
-
resolve(value: O | Observable<O>): void;
|
|
76
|
-
reset(): void;
|
|
77
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type Provider, type Type } from '@angular/core';
|
|
2
|
-
import { ActionContextStoreSource, SecondaryActionContextStoreSource } from './action.store.source';
|
|
3
|
-
/**
|
|
4
|
-
* Provides an ActionContextStoreSource, as well as an DbxActionContextStoreSourceInstance.
|
|
5
|
-
*/
|
|
6
|
-
export declare function provideActionStoreSource<S extends ActionContextStoreSource>(sourceType: Type<S> | null): Provider[];
|
|
7
|
-
export declare function provideSecondaryActionStoreSource<S extends SecondaryActionContextStoreSource>(sourceType: Type<S>): Provider[];
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { DbxActionContextStoreSourceInstance } from '../../action.store.source';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class DbxActionAutoModifyDirective<T, O> {
|
|
5
|
-
readonly source: DbxActionContextStoreSourceInstance<T, O>;
|
|
6
|
-
readonly autoModifyEnabled: import("@angular/core").InputSignalWithTransform<boolean, string | boolean>;
|
|
7
|
-
readonly markAsModified$: Observable<void>;
|
|
8
|
-
constructor();
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionAutoModifyDirective<any, any>, never>;
|
|
10
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionAutoModifyDirective<any, any>, "dbxActionAutoModify, [dbxActionAutoModify]", never, { "autoModifyEnabled": { "alias": "dbxActionAutoModify"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
11
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { Signal } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { DbxActionContextStoreSourceInstance } from '../../action.store.source';
|
|
4
|
-
import { type Maybe } from '@dereekb/util';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
/**
|
|
7
|
-
* Directive that automatically triggers the action periodically when it is in a modified state.
|
|
8
|
-
*
|
|
9
|
-
* When using auto triggers be sure to make sure that the action is not triggering too often due to misconfiguration.
|
|
10
|
-
*/
|
|
11
|
-
export declare class DbxActionAutoTriggerDirective<T = unknown, O = unknown> {
|
|
12
|
-
readonly source: DbxActionContextStoreSourceInstance<T, O>;
|
|
13
|
-
readonly triggerDebounce: import("@angular/core").InputSignal<Maybe<number>>;
|
|
14
|
-
readonly triggerThrottle: import("@angular/core").InputSignal<Maybe<number>>;
|
|
15
|
-
readonly triggerErrorThrottle: import("@angular/core").InputSignalWithTransform<number, Maybe<number>>;
|
|
16
|
-
readonly maxErrorsForThrottle: import("@angular/core").InputSignalWithTransform<number, Maybe<number>>;
|
|
17
|
-
readonly triggerLimit: import("@angular/core").InputSignal<Maybe<number>>;
|
|
18
|
-
readonly triggerEnabled: import("@angular/core").InputSignalWithTransform<boolean, Maybe<string | boolean>>;
|
|
19
|
-
readonly useFastTriggerPreset: import("@angular/core").InputSignalWithTransform<boolean, Maybe<boolean | "">>;
|
|
20
|
-
readonly useInstantTriggerPreset: import("@angular/core").InputSignalWithTransform<boolean, Maybe<boolean | "">>;
|
|
21
|
-
readonly triggerDebounceSignal: Signal<number>;
|
|
22
|
-
readonly triggerThrottleSignal: Signal<number>;
|
|
23
|
-
readonly triggerCountSignal: import("@angular/core").WritableSignal<number>;
|
|
24
|
-
readonly _errorCount$: Observable<number>;
|
|
25
|
-
readonly _triggerCount$: Observable<number>;
|
|
26
|
-
/**
|
|
27
|
-
* Observable for the trigger mechanism.
|
|
28
|
-
*/
|
|
29
|
-
readonly triggerCount$: Observable<number>;
|
|
30
|
-
private readonly _isTriggerLimited$;
|
|
31
|
-
readonly isTriggerAllowedToRun$: Observable<boolean>;
|
|
32
|
-
readonly automaticTrigger$: Observable<void>;
|
|
33
|
-
constructor();
|
|
34
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionAutoTriggerDirective<any, any>, never>;
|
|
35
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionAutoTriggerDirective<any, any>, "dbxActionAutoTrigger,[dbxActionAutoTrigger]", never, { "triggerDebounce": { "alias": "triggerDebounce"; "required": false; "isSignal": true; }; "triggerThrottle": { "alias": "triggerThrottle"; "required": false; "isSignal": true; }; "triggerErrorThrottle": { "alias": "triggerErrorThrottle"; "required": false; "isSignal": true; }; "maxErrorsForThrottle": { "alias": "maxErrorsForThrottle"; "required": false; "isSignal": true; }; "triggerLimit": { "alias": "triggerLimit"; "required": false; "isSignal": true; }; "triggerEnabled": { "alias": "dbxActionAutoTrigger"; "required": false; "isSignal": true; }; "useFastTriggerPreset": { "alias": "useFastTriggerPreset"; "required": false; "isSignal": true; }; "useInstantTriggerPreset": { "alias": "useInstantTriggerPreset"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
36
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { DbxActionContextBaseSource } from '../../action.holder';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* Provides an DbxActionContext.
|
|
5
|
-
*/
|
|
6
|
-
export declare class DbxActionDirective<T = unknown, O = unknown> extends DbxActionContextBaseSource<T, O> {
|
|
7
|
-
constructor();
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionDirective<any, any>, never>;
|
|
9
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionDirective<any, any>, "dbx-action,[dbxAction],dbx-action-context,[dbxActionContext]", ["action", "dbxAction"], {}, {}, never, never, true, never>;
|
|
10
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type Maybe } from '@dereekb/util';
|
|
2
|
-
import { SecondaryActionContextStoreSource, ActionContextStoreSource } from '../../action.store.source';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* Directive that provides a DbxActionSourceDirective that is passed in.
|
|
6
|
-
*/
|
|
7
|
-
export declare class DbxActionSourceDirective implements SecondaryActionContextStoreSource {
|
|
8
|
-
readonly dbxActionSource: import("@angular/core").InputSignal<Maybe<ActionContextStoreSource<unknown, unknown>>>;
|
|
9
|
-
readonly store$: import("rxjs").Observable<import("@dereekb/dbx-core").ActionContextStore<unknown, unknown>>;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionSourceDirective, never>;
|
|
11
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionSourceDirective, "[dbxActionSource]", never, { "dbxActionSource": { "alias": "dbxActionSource"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
12
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { DbxActionContextStoreSourceInstance } from '../../action.store.source';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* Prints out the current state to the console. Useful for debugging.
|
|
5
|
-
*/
|
|
6
|
-
export declare class DbxActionContextLoggerDirective {
|
|
7
|
-
readonly source: DbxActionContextStoreSourceInstance<any, any>;
|
|
8
|
-
constructor();
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionContextLoggerDirective, never>;
|
|
10
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionContextLoggerDirective, "[dbxActionLogger],[dbxActionContextLogger]", never, {}, {}, never, never, true, never>;
|
|
11
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './action.logger.directive';
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { type Observable } from 'rxjs';
|
|
2
|
-
import { type ActionContextStoreSource } from '../../action.store.source';
|
|
3
|
-
import { type Destroyable } from '@dereekb/util';
|
|
4
|
-
/**
|
|
5
|
-
* Arbitrary string used to identify an action.
|
|
6
|
-
*/
|
|
7
|
-
export type ActionKey = string;
|
|
8
|
-
/**
|
|
9
|
-
* Map that returns sources for ActionKey values.
|
|
10
|
-
*/
|
|
11
|
-
export declare abstract class ActionContextStoreSourceMap<T = unknown, O = unknown> implements Destroyable {
|
|
12
|
-
/**
|
|
13
|
-
* Returns the read-only map of action keys to sources.
|
|
14
|
-
*/
|
|
15
|
-
abstract readonly actionKeySourceMap$: Observable<Map<ActionKey, ActionContextStoreSource<T, O>>>;
|
|
16
|
-
/**
|
|
17
|
-
* Returns a ActionContextStoreSource for the input action key.
|
|
18
|
-
*
|
|
19
|
-
* @param key Action key to retrieve the source for.
|
|
20
|
-
*/
|
|
21
|
-
abstract sourceForKey(key: ActionKey): ActionContextStoreSource<T, O>;
|
|
22
|
-
/**
|
|
23
|
-
* Adds the store source for the input key.
|
|
24
|
-
* @param key Action key to add the source for.
|
|
25
|
-
* @param source Store source to add.
|
|
26
|
-
*/
|
|
27
|
-
abstract addStoreSource(key: ActionKey, source: ActionContextStoreSource<T, O>): void;
|
|
28
|
-
/**
|
|
29
|
-
* Removes the store source for the input key.
|
|
30
|
-
* @param key Action key to remove the source for.
|
|
31
|
-
*/
|
|
32
|
-
abstract removeStoreSource(key: ActionKey): void;
|
|
33
|
-
/**
|
|
34
|
-
* Destroys the map.
|
|
35
|
-
*/
|
|
36
|
-
abstract destroy(): void;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Creates a new ActionContextStoreSourceMap.
|
|
40
|
-
*
|
|
41
|
-
* @returns A new ActionContextStoreSourceMap.
|
|
42
|
-
*/
|
|
43
|
-
export declare function actionContextStoreSourceMap<T = unknown, O = unknown>(): ActionContextStoreSourceMap<T, O>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ActionContextStoreSourceMap } from './action.map';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* Context used for providing actions based on the action key.
|
|
5
|
-
*
|
|
6
|
-
* This is useful for passing action contexts around via the providers instead of explicit injection.
|
|
7
|
-
*/
|
|
8
|
-
export declare class DbxActionContextMapDirective {
|
|
9
|
-
readonly actionContextStoreSourceMap: ActionContextStoreSourceMap<any, any>;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionContextMapDirective, never>;
|
|
11
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionContextMapDirective, "[dbxActionContextMap]", ["actionMap"], {}, {}, never, never, true, never>;
|
|
12
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { type Maybe } from '@dereekb/util';
|
|
2
|
-
import { SecondaryActionContextStoreSource } from '../../action.store.source';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* Directive that provides a ActionContextStoreSource using the input key and DbxActionContextMapDirective.
|
|
6
|
-
*/
|
|
7
|
-
export declare class DbxActionFromMapDirective implements SecondaryActionContextStoreSource {
|
|
8
|
-
private readonly _actionContextStoreSourceMap;
|
|
9
|
-
readonly key: import("@angular/core").InputSignal<Maybe<string>>;
|
|
10
|
-
readonly key$: import("rxjs").Observable<Maybe<string>>;
|
|
11
|
-
readonly store$: import("rxjs").Observable<import("@dereekb/dbx-core").ActionContextStore<any, any>>;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionFromMapDirective, never>;
|
|
13
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionFromMapDirective, "[dbxActionFromMap]", never, { "key": { "alias": "dbxActionFromMap"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
14
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
|
2
|
-
import { type Maybe } from '@dereekb/util';
|
|
3
|
-
import { ActionContextStoreSource } from '../../action.store.source';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
/**
|
|
6
|
-
* Used to communicate with an dbxActionMap and set the ActionContextStore to the store based on the key.
|
|
7
|
-
*/
|
|
8
|
-
export declare class DbxActionMapSourceDirective implements OnDestroy {
|
|
9
|
-
private readonly _actionContextStoreSourceMap;
|
|
10
|
-
readonly source: ActionContextStoreSource<any, any>;
|
|
11
|
-
readonly key: import("@angular/core").InputSignal<Maybe<string>>;
|
|
12
|
-
private _currentKey;
|
|
13
|
-
protected readonly _keyEffect: import("@angular/core").EffectRef;
|
|
14
|
-
ngOnDestroy(): void;
|
|
15
|
-
private _addToStore;
|
|
16
|
-
private _removeFromToStore;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionMapSourceDirective, never>;
|
|
18
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionMapSourceDirective, "[dbxActionMapSource]", never, { "key": { "alias": "dbxActionMapSource"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
19
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { type IsCheckFunction, type ObservableOrValue } from '@dereekb/rxjs';
|
|
2
|
-
import { type Observable } from 'rxjs';
|
|
3
|
-
import { type ActionContextStore } from '../../action.store';
|
|
4
|
-
import { type ActionContextStoreSourceMap, type ActionKey } from './action.map';
|
|
5
|
-
import { type ActionContextStoreSource } from '../../action.store.source';
|
|
6
|
-
/**
|
|
7
|
-
* Utility interface that provides a set of functions to read from an ActionContextStoreSourceMap.
|
|
8
|
-
*/
|
|
9
|
-
export interface ActionContextStoreSourceMapReader<T = unknown, O = unknown> {
|
|
10
|
-
/**
|
|
11
|
-
* The input key source map.
|
|
12
|
-
*/
|
|
13
|
-
readonly actionKeySourceMap$: Observable<Map<ActionKey, ActionContextStoreSource<T, O>>>;
|
|
14
|
-
/**
|
|
15
|
-
* Checks if any of the stores in the map match the input checkFunction.
|
|
16
|
-
*
|
|
17
|
-
* @param checkFunction Function to apply to each store.
|
|
18
|
-
* @param emptyArrayValue Value to return if the map is empty.
|
|
19
|
-
*/
|
|
20
|
-
checkAny(checkFunction: IsCheckFunction<ActionContextStore<T, O>>, emptyArrayValue?: boolean): Observable<boolean>;
|
|
21
|
-
/**
|
|
22
|
-
* Reduces a value from all stores in the map.
|
|
23
|
-
*
|
|
24
|
-
* @param mapFn Function to apply to each store.
|
|
25
|
-
* @param reduceFn Function to apply to the results of the mapFn.
|
|
26
|
-
*/
|
|
27
|
-
reduceFromAllSources<X, Y>(mapFn: (input: ActionContextStore<T, O>) => Observable<X>, reduceFn: (values: X[]) => Y): Observable<Y>;
|
|
28
|
-
/**
|
|
29
|
-
* Reads a value from each store in the map and returns an array of the results.
|
|
30
|
-
*
|
|
31
|
-
* @param mapFn Function to apply to each store.
|
|
32
|
-
*/
|
|
33
|
-
fromAllSources<Y>(mapFn: (input: ActionContextStore<T, O>) => Observable<Y>): Observable<Y[]>;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Creates a new ActionContextStoreSourceMapReader from the input.
|
|
37
|
-
|
|
38
|
-
* @param actionKeySourceMap$
|
|
39
|
-
*/
|
|
40
|
-
export declare function actionContextStoreSourceMapReader<T = unknown, O = unknown>(actionKeySourceMap$: ObservableOrValue<Map<ActionKey, ActionContextStoreSource<T, O>>>): ActionContextStoreSourceMapReader<T, O>;
|
|
41
|
-
/**
|
|
42
|
-
* Returns an Observable of the results of the mapFn for each source in the actionKeySourceMap$.
|
|
43
|
-
*
|
|
44
|
-
* @param actionKeySourceMap$ Observable of the action key source map.
|
|
45
|
-
* @param mapFn Function to apply to each source.
|
|
46
|
-
* @returns Observable of the results of the mapFn for each source.
|
|
47
|
-
*/
|
|
48
|
-
export declare function fromAllActionContextStoreSourceMapSources<O>(actionKeySourceMap$: ObservableOrValue<ActionContextStoreSourceMap>, mapFn: (input: ActionContextStore) => Observable<O>): Observable<O[]>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { type Maybe } from '@dereekb/util';
|
|
2
|
-
import { DbxActionContextStoreSourceInstance } from '../../action.store.source';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare const DEFAULT_ACTION_MAP_WORKING_DISABLED_KEY = "action_map_working_disable";
|
|
5
|
-
/**
|
|
6
|
-
* Used to communicate with an dbxActionMap and set the ActionContextStore to be disabled if any other element in the map is working.
|
|
7
|
-
*/
|
|
8
|
-
export declare class DbxActionMapWorkingDisableDirective {
|
|
9
|
-
private readonly _actionContextStoreSourceMap;
|
|
10
|
-
readonly source: DbxActionContextStoreSourceInstance<any, any>;
|
|
11
|
-
readonly disabledKey: import("@angular/core").InputSignal<Maybe<string>>;
|
|
12
|
-
readonly areAnySourcesWorking$: import("rxjs").Observable<boolean>;
|
|
13
|
-
constructor();
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionMapWorkingDisableDirective, never>;
|
|
15
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionMapWorkingDisableDirective, "[dbxActionMapWorkingDisable]", never, { "disabledKey": { "alias": "dbxActionMapWorkingDisable"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
16
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { type Maybe } from '@dereekb/util';
|
|
2
|
-
import { DbxActionContextStoreSourceInstance } from '../../action.store.source';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare const APP_ACTION_DISABLED_DIRECTIVE_KEY = "dbx_action_disabled";
|
|
5
|
-
/**
|
|
6
|
-
* Directive that allows disabling an action using the inputs.
|
|
7
|
-
*/
|
|
8
|
-
export declare class DbxActionDisabledDirective<T, O> {
|
|
9
|
-
readonly source: DbxActionContextStoreSourceInstance<T, O>;
|
|
10
|
-
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, Maybe<boolean | "">>;
|
|
11
|
-
readonly disabled$: import("rxjs").Observable<boolean>;
|
|
12
|
-
constructor();
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionDisabledDirective<any, any>, never>;
|
|
14
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionDisabledDirective<any, any>, "[dbxActionDisabled]", never, { "disabled": { "alias": "dbxActionDisabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
15
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { type Maybe } from '@dereekb/util';
|
|
2
|
-
import { DbxActionContextStoreSourceInstance } from '../../action.store.source';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare const APP_ACTION_DISABLED_ON_SUCCESS_DIRECTIVE_KEY = "dbx_action_disabled_on_success";
|
|
5
|
-
/**
|
|
6
|
-
* Directive that will disable the action after the action completes successfully.
|
|
7
|
-
*/
|
|
8
|
-
export declare class DbxActionDisabledOnSuccessDirective<T, O> {
|
|
9
|
-
readonly source: DbxActionContextStoreSourceInstance<T, O>;
|
|
10
|
-
readonly disabledOnSuccess: import("@angular/core").InputSignalWithTransform<boolean, Maybe<boolean | "">>;
|
|
11
|
-
readonly disabledOnSuccess$: import("rxjs").Observable<boolean>;
|
|
12
|
-
constructor();
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionDisabledOnSuccessDirective<any, any>, never>;
|
|
14
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionDisabledOnSuccessDirective<any, any>, "[dbxActionDisabledOnSuccess]", never, { "disabledOnSuccess": { "alias": "dbxActionDisabledOnSuccess"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
15
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { type Maybe } from '@dereekb/util';
|
|
2
|
-
import { DbxActionContextStoreSourceInstance } from '../../action.store.source';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare const APP_ACTION_ENFORCE_MODIFIED_DIRECTIVE_KEY = "dbx_action_enforce_modified";
|
|
5
|
-
/**
|
|
6
|
-
* Directive that toggles disabling an action if the action is not marked modified.
|
|
7
|
-
*/
|
|
8
|
-
export declare class DbxActionEnforceModifiedDirective {
|
|
9
|
-
readonly source: DbxActionContextStoreSourceInstance<any, any>;
|
|
10
|
-
readonly enabled: import("@angular/core").InputSignalWithTransform<boolean, Maybe<boolean | "">>;
|
|
11
|
-
readonly enabled$: import("rxjs").Observable<boolean>;
|
|
12
|
-
constructor();
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionEnforceModifiedDirective, never>;
|
|
14
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionEnforceModifiedDirective, "[dbxActionEnforceModified]", never, { "enabled": { "alias": "dbxActionEnforceModified"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
15
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ReadableError, type Maybe } from '@dereekb/util';
|
|
2
|
-
import { DbxActionContextStoreSourceInstance } from '../../action.store.source';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* Performs the action on error.
|
|
6
|
-
*/
|
|
7
|
-
export type DbxActionErrorHandlerFunction = (error?: Maybe<ReadableError>) => void;
|
|
8
|
-
/**
|
|
9
|
-
* Directive that executes a function on ActionContextStore error.
|
|
10
|
-
*/
|
|
11
|
-
export declare class DbxActionErrorHandlerDirective<T, O> {
|
|
12
|
-
readonly source: DbxActionContextStoreSourceInstance<T, O>;
|
|
13
|
-
readonly dbxActionErrorHandler: import("@angular/core").InputSignal<Maybe<DbxActionErrorHandlerFunction>>;
|
|
14
|
-
readonly errorFunction$: import("rxjs").Observable<DbxActionErrorHandlerFunction>;
|
|
15
|
-
constructor();
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DbxActionErrorHandlerDirective<any, any>, never>;
|
|
17
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxActionErrorHandlerDirective<any, any>, "[dbxActionErrorHandler]", never, { "dbxActionErrorHandler": { "alias": "dbxActionErrorHandler"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
18
|
-
}
|