@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.
- package/fesm2022/dereekb-dbx-core.mjs +920 -1176
- 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 -72
- 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 -286
- package/esm2022/lib/action/action.store.source.mjs +0 -162
- package/esm2022/lib/action/action.store.source.provide.mjs +0 -41
- package/esm2022/lib/action/directive/auto/action.automodify.directive.mjs +0 -36
- package/esm2022/lib/action/directive/auto/action.autotrigger.directive.mjs +0 -113
- package/esm2022/lib/action/directive/auto/index.mjs +0 -3
- package/esm2022/lib/action/directive/context/action.directive.mjs +0 -30
- 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 -36
- package/esm2022/lib/action/directive/map/action.map.key.directive.mjs +0 -27
- package/esm2022/lib/action/directive/map/action.map.mjs +0 -59
- 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 -35
- package/esm2022/lib/action/directive/map/index.mjs +0 -7
- package/esm2022/lib/action/directive/state/action.disabled.directive.mjs +0 -34
- package/esm2022/lib/action/directive/state/action.disableonsuccess.directive.mjs +0 -35
- package/esm2022/lib/action/directive/state/action.enforce.modified.directive.mjs +0 -37
- package/esm2022/lib/action/directive/state/action.error.handler.directive.mjs +0 -32
- package/esm2022/lib/action/directive/state/action.handler.directive.mjs +0 -59
- 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 -51
- package/esm2022/lib/action/directive/state/action.value.stream.directive.mjs +0 -60
- package/esm2022/lib/action/directive/state/action.value.trigger.directive.mjs +0 -76
- 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 -35
- 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 -120
- package/esm2022/lib/button/button.loading.directive.mjs +0 -36
- 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 -30
- 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 -23
- 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 -24
- 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 -62
- package/esm2022/lib/router/model/model.router.key.directive.mjs +0 -63
- 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 -31
- 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/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/subscription/index.mjs +0 -2
- package/esm2022/lib/subscription/subscription.directive.mjs +0 -38
- 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 -27
- 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 -50
- 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 -10
- package/lib/action/directive/auto/action.automodify.directive.d.ts +0 -13
- package/lib/action/directive/auto/action.autotrigger.directive.d.ts +0 -38
- package/lib/action/directive/auto/index.d.ts +0 -2
- package/lib/action/directive/context/action.directive.d.ts +0 -12
- 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 -13
- 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 -14
- 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 -19
- package/lib/action/directive/map/index.d.ts +0 -6
- package/lib/action/directive/state/action.disabled.directive.d.ts +0 -18
- package/lib/action/directive/state/action.disableonsuccess.directive.d.ts +0 -18
- package/lib/action/directive/state/action.enforce.modified.directive.d.ts +0 -18
- package/lib/action/directive/state/action.error.handler.directive.d.ts +0 -20
- package/lib/action/directive/state/action.handler.directive.d.ts +0 -35
- 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 -16
- package/lib/action/directive/state/action.success.handler.directive.d.ts +0 -20
- package/lib/action/directive/state/action.triggered.directive.d.ts +0 -15
- package/lib/action/directive/state/action.value.directive.d.ts +0 -27
- package/lib/action/directive/state/action.value.stream.directive.d.ts +0 -23
- package/lib/action/directive/state/action.value.trigger.directive.d.ts +0 -39
- 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 -14
- package/lib/button/action/action.button.trigger.directive.d.ts +0 -16
- 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 -62
- 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 -14
- 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 -15
- 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 -12
- 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 -51
- 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 -30
- package/lib/router/model/model.router.key.directive.d.ts +0 -32
- package/lib/router/model/model.router.uid.directive.d.ts +0 -15
- 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 -16
- 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/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/subscription/index.d.ts +0 -1
- package/lib/subscription/subscription.directive.d.ts +0 -25
- 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,8 +1,8 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import { SubscriptionObject, LockSet, filterMaybe, LoadingStateType, beginLoading, idleLoadingState, errorResult, successResult, scanCount, workFactory, asObservable, combineLatestFromMapValuesObsFn, emitDelayObs, makeIsModifiedFunctionObservable, returnIfIs, timeoutStartWith, onFalseToTrue, onTrueToFalse, setContainsAllValuesFrom, setContainsNoValueFrom, maybeValueFromObservableOrValue, distinctUntilKeysChange, maybeValueFromObservableOrValueGetter, switchMapToDefault, asObservableFromGetter, FilterSource, FilterSourceConnector, FilterSourceInstance, FilterMap, skipAllInitialMaybe, switchMapObject } from '@dereekb/rxjs';
|
|
2
|
+
import { inject, DestroyRef, input, Directive, computed, signal, Injectable, forwardRef, effect, TemplateRef, ViewContainerRef, Injector, runInInjectionContext, NgModule, InjectionToken, makeEnvironmentProviders, output, model, NgZone, Input, Pipe, LOCALE_ID, viewChild, Component, ChangeDetectionStrategy, Inject, Optional } from '@angular/core';
|
|
3
|
+
import { SubscriptionObject, LockSet, loadingStateContext, listLoadingStateContext, filterMaybe, LoadingStateType, beginLoading, idleLoadingState, errorResult, successResult, scanCount, workFactory, asObservable, combineLatestFromMapValuesObsFn, emitDelayObs, makeIsModifiedFunctionObservable, returnIfIs, timeoutStartWith, onFalseToTrue, onTrueToFalse, setContainsAllValuesFrom, setContainsNoValueFrom, maybeValueFromObservableOrValue, distinctUntilKeysChange, maybeValueFromObservableOrValueGetter, switchMapToDefault, asObservableFromGetter, FilterSource, FilterSourceConnector, FilterSourceInstance, FilterMap, skipAllInitialMaybe, switchMapObject } from '@dereekb/rxjs';
|
|
4
|
+
import { getValueFromGetter, DestroyFunctionObject, isNotFalse, isDefinedAndNotFalse, BooleanStringKeyArrayUtility, reduceBooleansWithOrFn, asGetter, toReadableError, hasValueOrNotEmpty, isGetter, asArray, setIncludes, isAllowed, maybeSet, iterableToSet, expandTreeFunction, flattenTreeToArrayFunction, expandFlattenTreeFunction, mailToUrlString, telUrlString, mergeObjects, KeyValueTypleValueFilter, filterMaybeArrayValues, defaultForwardFunctionFactory, cutString, dollarAmountString, objectHasKey, objectHasKeys, mergeArrays, flattenArrayOrValueArray, promiseReference, DataIsExpiredError, DataDoesNotExistError, hasNonNullValue, unixDateTimeSecondsNumberForNow, isThrottled, splitJoinRemainder, StorageObjectUtility, SHARED_MEMORY_STORAGE } from '@dereekb/util';
|
|
4
5
|
import { switchMap, first, distinctUntilChanged, filter, EMPTY, debounce, interval, throttle, exhaustMap, mergeMap, map, shareReplay, combineLatest, startWith, of, delay, BehaviorSubject, tap, combineLatestWith, catchError, withLatestFrom, firstValueFrom, takeUntil, Subject, Observable } from 'rxjs';
|
|
5
|
-
import { isNotFalse, isDefinedAndNotFalse, BooleanStringKeyArrayUtility, reduceBooleansWithOrFn, asGetter, getValueFromGetter, toReadableError, hasValueOrNotEmpty, isGetter, asArray, setIncludes, isAllowed, maybeSet, iterableToSet, expandTreeFunction, flattenTreeToArrayFunction, expandFlattenTreeFunction, mailToUrlString, telUrlString, mergeObjects, KeyValueTypleValueFilter, filterMaybeArrayValues, defaultForwardFunctionFactory, cutString, dollarAmountString, objectHasKey, objectHasKeys, mergeArrays, flattenArrayOrValueArray, promiseReference, DataIsExpiredError, DataDoesNotExistError, hasNonNullValue, unixDateTimeSecondsNumberForNow, isThrottled, splitJoinRemainder, StorageObjectUtility, SHARED_MEMORY_STORAGE } from '@dereekb/util';
|
|
6
6
|
import { toObservable, outputToObservable, toSignal } from '@angular/core/rxjs-interop';
|
|
7
7
|
import { ComponentStore } from '@ngrx/component-store';
|
|
8
8
|
import { Actions, ofType, createEffect, provideEffects } from '@ngrx/effects';
|
|
@@ -10,44 +10,129 @@ import { createAction, props, createReducer, on, combineReducers, createFeatureS
|
|
|
10
10
|
import { Router, ActivatedRoute, NavigationStart, NavigationEnd } from '@angular/router';
|
|
11
11
|
import { isArray } from 'class-validator';
|
|
12
12
|
import { StateService, TransitionService, UIRouterGlobals } from '@uirouter/core';
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
13
|
+
import { formatToDayRangeString, toJsDate, formatDateDistance, formatToTimeString, formatToDayTimeRangeString, formatToTimeRangeString, dateTimezoneUtcNormal, formatDateRangeDistance, getTimezoneAbbreviation } from '@dereekb/date';
|
|
14
|
+
import { isValid, formatDistanceToNow, addMinutes, isPast, formatDistance } from 'date-fns';
|
|
15
|
+
import { formatDate } from '@angular/common';
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Wraps a Destroyable in a function that registers the input Destroyable to be destroyed
|
|
19
|
+
* when the DestroyRef is destroyed in the context.
|
|
20
|
+
*
|
|
21
|
+
* Must be run in an Angular injection context.
|
|
19
22
|
*/
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
function clean(input) {
|
|
24
|
+
const destroyRef = inject(DestroyRef);
|
|
25
|
+
if (input.destroy) {
|
|
26
|
+
destroyRef.onDestroy(() => input.destroy());
|
|
24
27
|
}
|
|
25
|
-
|
|
26
|
-
|
|
28
|
+
else {
|
|
29
|
+
destroyRef.onDestroy(input);
|
|
27
30
|
}
|
|
28
|
-
|
|
29
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: AbstractSubscriptionDirective, ngImport: i0 });
|
|
31
|
+
return input;
|
|
30
32
|
}
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AbstractSubscriptionDirective, decorators: [{
|
|
32
|
-
type: Directive
|
|
33
|
-
}] });
|
|
34
33
|
/**
|
|
35
|
-
*
|
|
34
|
+
* Wraps a Subject in a function that registers the input Subject to be completed
|
|
35
|
+
* when the DestroyRef is destroyed in the context.
|
|
36
|
+
*
|
|
37
|
+
* Must be run in an Angular injection context.
|
|
38
|
+
*/
|
|
39
|
+
function completeOnDestroy(input) {
|
|
40
|
+
clean(() => input.complete());
|
|
41
|
+
return input;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// MARK: cleanSubscription()
|
|
45
|
+
/**
|
|
46
|
+
* Creates a new SubscriptionObject that is automatically destroyed when the context is destroyed.
|
|
47
|
+
*
|
|
48
|
+
* Must be run within an Angular injection context.
|
|
36
49
|
*/
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
50
|
+
function cleanSubscription(sub) {
|
|
51
|
+
const subscription = getValueFromGetter(sub);
|
|
52
|
+
const subscriptionObject = new SubscriptionObject(subscription);
|
|
53
|
+
clean(subscriptionObject);
|
|
54
|
+
return subscriptionObject;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Creates a new LockSet that is automatically destroyed when the component is destroyed.
|
|
59
|
+
*
|
|
60
|
+
* Must be run within an Angular injection context.
|
|
61
|
+
*
|
|
62
|
+
* @param onLockSetDestroy Optional callback to run when the lockset is unlocked.
|
|
63
|
+
*/
|
|
64
|
+
function cleanLockSet(config) {
|
|
65
|
+
const { onDestroy, onLockSetDestroy, destroyLocksetTiming } = config ?? {};
|
|
66
|
+
const destroyRef = inject(DestroyRef);
|
|
67
|
+
const lockSet = new LockSet();
|
|
68
|
+
destroyRef.onDestroy(() => {
|
|
69
|
+
onDestroy?.();
|
|
70
|
+
lockSet.destroyOnNextUnlock(destroyLocksetTiming); // flag to be destroyed on the next complete unlock
|
|
71
|
+
});
|
|
72
|
+
if (onLockSetDestroy) {
|
|
73
|
+
const _destroySub = cleanSubscription(lockSet.onDestroy$.subscribe(() => {
|
|
74
|
+
onLockSetDestroy();
|
|
75
|
+
_destroySub.destroy();
|
|
76
|
+
}));
|
|
44
77
|
}
|
|
45
|
-
|
|
46
|
-
|
|
78
|
+
return lockSet;
|
|
79
|
+
}
|
|
80
|
+
// MARK: cleanWithLockSet()
|
|
81
|
+
/**
|
|
82
|
+
* Runs the given onDestroy function when the context is destroyed, and the lock set's next unlock occurs.
|
|
83
|
+
*
|
|
84
|
+
* Must be run within an Angular injection context.
|
|
85
|
+
*
|
|
86
|
+
* @param lockSet The lockset to use.
|
|
87
|
+
* @param onDestroy The function to run when the lockset is unlocked.
|
|
88
|
+
*/
|
|
89
|
+
function cleanWithLockSet(lockSet, onDestroy) {
|
|
90
|
+
const destroyRef = inject(DestroyRef);
|
|
91
|
+
destroyRef.onDestroy(() => {
|
|
92
|
+
lockSet.onNextUnlock(() => {
|
|
93
|
+
onDestroy();
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Creates a new SubscriptionObject that is automatically destroyed when the context is destroyed, and the lock set's next unlock occurs.
|
|
99
|
+
*
|
|
100
|
+
* Must be run within an Angular injection context.
|
|
101
|
+
*/
|
|
102
|
+
function cleanSubscriptionWithLockSet(input) {
|
|
103
|
+
const subscription = getValueFromGetter(input.sub);
|
|
104
|
+
const subscriptionObject = new SubscriptionObject(subscription);
|
|
105
|
+
cleanWithLockSet(input.lockSet, () => subscriptionObject.destroy());
|
|
106
|
+
return subscriptionObject;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Creates a new LoadingStateContext that is automatically destroyed when the context is destroyed.
|
|
111
|
+
*
|
|
112
|
+
* Must be run within an Angular injection context.
|
|
113
|
+
*/
|
|
114
|
+
function cleanLoadingContext(input) {
|
|
115
|
+
return clean(loadingStateContext(input));
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Creates a new ListLoadingStateContext that is automatically destroyed when the context is destroyed.
|
|
119
|
+
*
|
|
120
|
+
* Must be run within an Angular injection context.
|
|
121
|
+
*/
|
|
122
|
+
function cleanListLoadingContext(input) {
|
|
123
|
+
return clean(listLoadingStateContext(input));
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Creates a new DestroyFunctionObject that is automatically destroyed when the context is destroyed.
|
|
128
|
+
*
|
|
129
|
+
* Must be run within an Angular injection context.
|
|
130
|
+
*/
|
|
131
|
+
function cleanDestroy(input) {
|
|
132
|
+
const destroyFunction = new DestroyFunctionObject(input);
|
|
133
|
+
clean(destroyFunction);
|
|
134
|
+
return destroyFunction;
|
|
47
135
|
}
|
|
48
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AbstractLockSetSubscriptionDirective, decorators: [{
|
|
49
|
-
type: Directive
|
|
50
|
-
}] });
|
|
51
136
|
|
|
52
137
|
/**
|
|
53
138
|
* Source that provides a ActionContextStore observable.
|
|
@@ -209,9 +294,9 @@ class DbxActionContextStoreSourceInstance {
|
|
|
209
294
|
}
|
|
210
295
|
}
|
|
211
296
|
|
|
212
|
-
class DbxActionAutoModifyDirective
|
|
297
|
+
class DbxActionAutoModifyDirective {
|
|
213
298
|
source = inject((DbxActionContextStoreSourceInstance), { host: true });
|
|
214
|
-
autoModifyEnabled = input(true, { alias: 'dbxActionAutoModify', transform: isNotFalse });
|
|
299
|
+
autoModifyEnabled = input(true, { ...(ngDevMode ? { debugName: "autoModifyEnabled" } : {}), alias: 'dbxActionAutoModify', transform: isNotFalse });
|
|
215
300
|
markAsModified$ = toObservable(this.autoModifyEnabled).pipe(distinctUntilChanged(), switchMap((x) => {
|
|
216
301
|
let obs;
|
|
217
302
|
if (x) {
|
|
@@ -222,21 +307,21 @@ class DbxActionAutoModifyDirective extends AbstractSubscriptionDirective {
|
|
|
222
307
|
}
|
|
223
308
|
return obs;
|
|
224
309
|
}));
|
|
225
|
-
|
|
226
|
-
this.
|
|
310
|
+
constructor() {
|
|
311
|
+
cleanSubscription(this.markAsModified$.subscribe(() => {
|
|
227
312
|
this.source.setIsModified(true);
|
|
228
|
-
});
|
|
313
|
+
}));
|
|
229
314
|
}
|
|
230
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
231
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
315
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionAutoModifyDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
316
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: DbxActionAutoModifyDirective, isStandalone: true, selector: "dbxActionAutoModify, [dbxActionAutoModify]", inputs: { autoModifyEnabled: { classPropertyName: "autoModifyEnabled", publicName: "dbxActionAutoModify", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
232
317
|
}
|
|
233
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
318
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionAutoModifyDirective, decorators: [{
|
|
234
319
|
type: Directive,
|
|
235
320
|
args: [{
|
|
236
321
|
selector: 'dbxActionAutoModify, [dbxActionAutoModify]',
|
|
237
322
|
standalone: true
|
|
238
323
|
}]
|
|
239
|
-
}] });
|
|
324
|
+
}], ctorParameters: () => [], propDecorators: { autoModifyEnabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "dbxActionAutoModify", required: false }] }] } });
|
|
240
325
|
|
|
241
326
|
const DEFAULT_DEBOUNCE_MS = 2 * 1000;
|
|
242
327
|
const DEFAULT_THROTTLE_MS = 10 * 1000;
|
|
@@ -249,16 +334,16 @@ const DBX_ACTION_AUTO_TRIGGER_INSTANT_TRIGGER_DEBOUNCE = 10;
|
|
|
249
334
|
*
|
|
250
335
|
* When using auto triggers be sure to make sure that the action is not triggering too often due to misconfiguration.
|
|
251
336
|
*/
|
|
252
|
-
class DbxActionAutoTriggerDirective
|
|
337
|
+
class DbxActionAutoTriggerDirective {
|
|
253
338
|
source = inject((DbxActionContextStoreSourceInstance), { host: true });
|
|
254
|
-
triggerDebounce = input(undefined);
|
|
255
|
-
triggerThrottle = input(undefined);
|
|
256
|
-
triggerErrorThrottle = input(DEFAULT_ERROR_THROTTLE_MS, { transform: (x) => x ?? DEFAULT_ERROR_THROTTLE_MS });
|
|
257
|
-
maxErrorsForThrottle = input(MAX_ERRORS_TO_THROTTLE_ON, { transform: (x) => x ?? MAX_ERRORS_TO_THROTTLE_ON });
|
|
258
|
-
triggerLimit = input();
|
|
259
|
-
triggerEnabled = input(true, { alias: 'dbxActionAutoTrigger', transform: isNotFalse });
|
|
260
|
-
useFastTriggerPreset = input(false, { transform: isDefinedAndNotFalse });
|
|
261
|
-
useInstantTriggerPreset = input(false, { transform: isDefinedAndNotFalse });
|
|
339
|
+
triggerDebounce = input(undefined, ...(ngDevMode ? [{ debugName: "triggerDebounce" }] : []));
|
|
340
|
+
triggerThrottle = input(undefined, ...(ngDevMode ? [{ debugName: "triggerThrottle" }] : []));
|
|
341
|
+
triggerErrorThrottle = input(DEFAULT_ERROR_THROTTLE_MS, { ...(ngDevMode ? { debugName: "triggerErrorThrottle" } : {}), transform: (x) => x ?? DEFAULT_ERROR_THROTTLE_MS });
|
|
342
|
+
maxErrorsForThrottle = input(MAX_ERRORS_TO_THROTTLE_ON, { ...(ngDevMode ? { debugName: "maxErrorsForThrottle" } : {}), transform: (x) => x ?? MAX_ERRORS_TO_THROTTLE_ON });
|
|
343
|
+
triggerLimit = input(...(ngDevMode ? [undefined, { debugName: "triggerLimit" }] : []));
|
|
344
|
+
triggerEnabled = input(true, { ...(ngDevMode ? { debugName: "triggerEnabled" } : {}), alias: 'dbxActionAutoTrigger', transform: isNotFalse });
|
|
345
|
+
useFastTriggerPreset = input(false, { ...(ngDevMode ? { debugName: "useFastTriggerPreset" } : {}), transform: isDefinedAndNotFalse });
|
|
346
|
+
useInstantTriggerPreset = input(false, { ...(ngDevMode ? { debugName: "useInstantTriggerPreset" } : {}), transform: isDefinedAndNotFalse });
|
|
262
347
|
triggerDebounceSignal = computed(() => {
|
|
263
348
|
let debounce = this.triggerDebounce();
|
|
264
349
|
if (debounce == null) {
|
|
@@ -272,7 +357,7 @@ class DbxActionAutoTriggerDirective extends AbstractSubscriptionDirective {
|
|
|
272
357
|
}
|
|
273
358
|
}
|
|
274
359
|
return debounce ?? DEFAULT_DEBOUNCE_MS;
|
|
275
|
-
});
|
|
360
|
+
}, ...(ngDevMode ? [{ debugName: "triggerDebounceSignal" }] : []));
|
|
276
361
|
triggerThrottleSignal = computed(() => {
|
|
277
362
|
let throttle = this.triggerThrottle();
|
|
278
363
|
if (throttle == null) {
|
|
@@ -286,8 +371,8 @@ class DbxActionAutoTriggerDirective extends AbstractSubscriptionDirective {
|
|
|
286
371
|
}
|
|
287
372
|
}
|
|
288
373
|
return throttle ?? DEFAULT_THROTTLE_MS;
|
|
289
|
-
});
|
|
290
|
-
triggerCountSignal = signal(0);
|
|
374
|
+
}, ...(ngDevMode ? [{ debugName: "triggerThrottleSignal" }] : []));
|
|
375
|
+
triggerCountSignal = signal(0, ...(ngDevMode ? [{ debugName: "triggerCountSignal" }] : []));
|
|
291
376
|
_errorCount$ = this.source.errorCountSinceLastSuccess$;
|
|
292
377
|
_triggerCount$ = this.source.isModifiedAndCanTriggerUpdates$.pipe(
|
|
293
378
|
// each time something is triggered the
|
|
@@ -323,26 +408,24 @@ class DbxActionAutoTriggerDirective extends AbstractSubscriptionDirective {
|
|
|
323
408
|
isTriggerAllowedToRun$ = this._isTriggerLimited$.pipe(map((x) => x[1]), shareReplay(1));
|
|
324
409
|
automaticTrigger$ = this._isTriggerLimited$.pipe(filter((x) => x[1]), distinctUntilChanged((a, b) => a[0] === b[0]), // Only trigger when the count changes.
|
|
325
410
|
map(() => undefined));
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
this.source.
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
this.source.lockSet.onNextUnlock(() => {
|
|
333
|
-
super.ngOnDestroy();
|
|
411
|
+
constructor() {
|
|
412
|
+
cleanSubscriptionWithLockSet({
|
|
413
|
+
lockSet: this.source.lockSet,
|
|
414
|
+
sub: this.automaticTrigger$.subscribe(() => {
|
|
415
|
+
this.source.trigger();
|
|
416
|
+
})
|
|
334
417
|
});
|
|
335
418
|
}
|
|
336
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
337
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
419
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionAutoTriggerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
420
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: DbxActionAutoTriggerDirective, isStandalone: true, selector: "dbxActionAutoTrigger,[dbxActionAutoTrigger]", inputs: { triggerDebounce: { classPropertyName: "triggerDebounce", publicName: "triggerDebounce", isSignal: true, isRequired: false, transformFunction: null }, triggerThrottle: { classPropertyName: "triggerThrottle", publicName: "triggerThrottle", isSignal: true, isRequired: false, transformFunction: null }, triggerErrorThrottle: { classPropertyName: "triggerErrorThrottle", publicName: "triggerErrorThrottle", isSignal: true, isRequired: false, transformFunction: null }, maxErrorsForThrottle: { classPropertyName: "maxErrorsForThrottle", publicName: "maxErrorsForThrottle", isSignal: true, isRequired: false, transformFunction: null }, triggerLimit: { classPropertyName: "triggerLimit", publicName: "triggerLimit", isSignal: true, isRequired: false, transformFunction: null }, triggerEnabled: { classPropertyName: "triggerEnabled", publicName: "dbxActionAutoTrigger", isSignal: true, isRequired: false, transformFunction: null }, useFastTriggerPreset: { classPropertyName: "useFastTriggerPreset", publicName: "useFastTriggerPreset", isSignal: true, isRequired: false, transformFunction: null }, useInstantTriggerPreset: { classPropertyName: "useInstantTriggerPreset", publicName: "useInstantTriggerPreset", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
338
421
|
}
|
|
339
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
422
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionAutoTriggerDirective, decorators: [{
|
|
340
423
|
type: Directive,
|
|
341
424
|
args: [{
|
|
342
425
|
selector: 'dbxActionAutoTrigger,[dbxActionAutoTrigger]',
|
|
343
426
|
standalone: true
|
|
344
427
|
}]
|
|
345
|
-
}] });
|
|
428
|
+
}], ctorParameters: () => [], propDecorators: { triggerDebounce: [{ type: i0.Input, args: [{ isSignal: true, alias: "triggerDebounce", required: false }] }], triggerThrottle: [{ type: i0.Input, args: [{ isSignal: true, alias: "triggerThrottle", required: false }] }], triggerErrorThrottle: [{ type: i0.Input, args: [{ isSignal: true, alias: "triggerErrorThrottle", required: false }] }], maxErrorsForThrottle: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxErrorsForThrottle", required: false }] }], triggerLimit: [{ type: i0.Input, args: [{ isSignal: true, alias: "triggerLimit", required: false }] }], triggerEnabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "dbxActionAutoTrigger", required: false }] }], useFastTriggerPreset: [{ type: i0.Input, args: [{ isSignal: true, alias: "useFastTriggerPreset", required: false }] }], useInstantTriggerPreset: [{ type: i0.Input, args: [{ isSignal: true, alias: "useInstantTriggerPreset", required: false }] }] } });
|
|
346
429
|
|
|
347
430
|
/**
|
|
348
431
|
* WorkInstanceDelegate implementation using an DbxActionContextStoreSourceInstance.
|
|
@@ -515,7 +598,12 @@ const INITIAL_STATE = {
|
|
|
515
598
|
actionState: DbxActionState.IDLE
|
|
516
599
|
};
|
|
517
600
|
class ActionContextStore extends ComponentStore {
|
|
518
|
-
lockSet =
|
|
601
|
+
lockSet = cleanLockSet({
|
|
602
|
+
onLockSetDestroy: () => super.ngOnDestroy(),
|
|
603
|
+
destroyLocksetTiming: {
|
|
604
|
+
delayTime: 2000
|
|
605
|
+
}
|
|
606
|
+
});
|
|
519
607
|
constructor() {
|
|
520
608
|
super({ ...INITIAL_STATE });
|
|
521
609
|
this.lockSet.addLock('working', this.isWorking$);
|
|
@@ -717,15 +805,13 @@ class ActionContextStore extends ComponentStore {
|
|
|
717
805
|
}
|
|
718
806
|
// MARK: Cleanup
|
|
719
807
|
ngOnDestroy() {
|
|
720
|
-
//
|
|
721
|
-
|
|
722
|
-
super.ngOnDestroy();
|
|
723
|
-
}, 2000);
|
|
808
|
+
// do not call super.destroy here, to keep the component store from destroying itself.
|
|
809
|
+
// the lockset is configured to cleanup the component store.
|
|
724
810
|
}
|
|
725
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
726
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
811
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ActionContextStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
812
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ActionContextStore });
|
|
727
813
|
}
|
|
728
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
814
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ActionContextStore, decorators: [{
|
|
729
815
|
type: Injectable
|
|
730
816
|
}], ctorParameters: () => [] });
|
|
731
817
|
function updateIsSameOnActionContextState(state, isSame) {
|
|
@@ -859,7 +945,7 @@ class DbxActionContextMachine extends DbxActionContextBaseSource {
|
|
|
859
945
|
}
|
|
860
946
|
}
|
|
861
947
|
/**
|
|
862
|
-
* DbxActionContextMachine
|
|
948
|
+
* DbxActionContextMachine configured for use as a Service/Injectable.
|
|
863
949
|
*/
|
|
864
950
|
class DbxActionContextMachineAsService extends DbxActionContextMachine {
|
|
865
951
|
constructor() {
|
|
@@ -867,23 +953,15 @@ class DbxActionContextMachineAsService extends DbxActionContextMachine {
|
|
|
867
953
|
oneTimeUse: false,
|
|
868
954
|
handleValueReady: false
|
|
869
955
|
});
|
|
956
|
+
clean(() => this.destroy());
|
|
870
957
|
}
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
}
|
|
874
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxActionContextMachineAsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
875
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxActionContextMachineAsService });
|
|
958
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionContextMachineAsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
959
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionContextMachineAsService });
|
|
876
960
|
}
|
|
877
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
961
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionContextMachineAsService, decorators: [{
|
|
878
962
|
type: Injectable
|
|
879
963
|
}], ctorParameters: () => [] });
|
|
880
964
|
|
|
881
|
-
const actionContextStoreSourceInstanceFactory = (source) => {
|
|
882
|
-
return new DbxActionContextStoreSourceInstance(source);
|
|
883
|
-
};
|
|
884
|
-
const actionContextStoreSourceMachineFactory = () => {
|
|
885
|
-
return new DbxActionContextMachineAsService();
|
|
886
|
-
};
|
|
887
965
|
/**
|
|
888
966
|
* Provides an ActionContextStoreSource, as well as an DbxActionContextStoreSourceInstance.
|
|
889
967
|
*/
|
|
@@ -895,13 +973,13 @@ function provideActionStoreSource(sourceType) {
|
|
|
895
973
|
}
|
|
896
974
|
: {
|
|
897
975
|
provide: ActionContextStoreSource,
|
|
898
|
-
useFactory:
|
|
976
|
+
useFactory: () => new DbxActionContextMachineAsService()
|
|
899
977
|
};
|
|
900
978
|
return [
|
|
901
979
|
storeSourceProvider,
|
|
902
980
|
{
|
|
903
981
|
provide: DbxActionContextStoreSourceInstance,
|
|
904
|
-
useFactory:
|
|
982
|
+
useFactory: (source) => clean(new DbxActionContextStoreSourceInstance(source)),
|
|
905
983
|
deps: [ActionContextStoreSource]
|
|
906
984
|
}
|
|
907
985
|
];
|
|
@@ -917,24 +995,25 @@ function provideSecondaryActionStoreSource(sourceType) {
|
|
|
917
995
|
}
|
|
918
996
|
|
|
919
997
|
/**
|
|
920
|
-
* Provides an DbxActionContext.
|
|
998
|
+
* Provides an DbxAction/DbxActionContext.
|
|
921
999
|
*/
|
|
922
1000
|
class DbxActionDirective extends DbxActionContextBaseSource {
|
|
923
1001
|
constructor() {
|
|
924
1002
|
super(inject((SecondaryActionContextStoreSource), { optional: true, host: true }));
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
1003
|
+
// during cleaning/onDestroy, queue the lockset for cleanup
|
|
1004
|
+
clean(() => {
|
|
1005
|
+
this.lockSet.destroyOnNextUnlock(() => {
|
|
1006
|
+
this.destroy();
|
|
1007
|
+
});
|
|
929
1008
|
});
|
|
930
1009
|
}
|
|
931
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
932
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1010
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1011
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: DbxActionDirective, isStandalone: true, selector: "dbx-action,[dbxAction]", providers: provideActionStoreSource(DbxActionDirective), exportAs: ["action", "dbxAction"], usesInheritance: true, ngImport: i0 });
|
|
933
1012
|
}
|
|
934
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1013
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionDirective, decorators: [{
|
|
935
1014
|
type: Directive,
|
|
936
1015
|
args: [{
|
|
937
|
-
selector: 'dbx-action,[dbxAction]
|
|
1016
|
+
selector: 'dbx-action,[dbxAction]',
|
|
938
1017
|
exportAs: 'action,dbxAction',
|
|
939
1018
|
providers: provideActionStoreSource(DbxActionDirective),
|
|
940
1019
|
standalone: true
|
|
@@ -945,40 +1024,40 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
945
1024
|
* Directive that provides a DbxActionSourceDirective that is passed in.
|
|
946
1025
|
*/
|
|
947
1026
|
class DbxActionSourceDirective {
|
|
948
|
-
dbxActionSource = input();
|
|
1027
|
+
dbxActionSource = input(...(ngDevMode ? [undefined, { debugName: "dbxActionSource" }] : []));
|
|
949
1028
|
store$ = toObservable(this.dbxActionSource).pipe(filterMaybe(), switchMap((x) => actionContextStoreSourcePipe(x.store$)));
|
|
950
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
951
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
1029
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionSourceDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1030
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: DbxActionSourceDirective, isStandalone: true, selector: "[dbxActionSource]", inputs: { dbxActionSource: { classPropertyName: "dbxActionSource", publicName: "dbxActionSource", isSignal: true, isRequired: false, transformFunction: null } }, providers: provideSecondaryActionStoreSource(DbxActionSourceDirective), ngImport: i0 });
|
|
952
1031
|
}
|
|
953
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1032
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionSourceDirective, decorators: [{
|
|
954
1033
|
type: Directive,
|
|
955
1034
|
args: [{
|
|
956
1035
|
selector: '[dbxActionSource]',
|
|
957
1036
|
providers: provideSecondaryActionStoreSource(DbxActionSourceDirective),
|
|
958
1037
|
standalone: true
|
|
959
1038
|
}]
|
|
960
|
-
}] });
|
|
1039
|
+
}], propDecorators: { dbxActionSource: [{ type: i0.Input, args: [{ isSignal: true, alias: "dbxActionSource", required: false }] }] } });
|
|
961
1040
|
|
|
962
1041
|
/**
|
|
963
1042
|
* Prints out the current state to the console. Useful for debugging.
|
|
964
1043
|
*/
|
|
965
|
-
class DbxActionContextLoggerDirective
|
|
1044
|
+
class DbxActionContextLoggerDirective {
|
|
966
1045
|
source = inject(DbxActionContextStoreSourceInstance, { host: true });
|
|
967
|
-
|
|
968
|
-
this.
|
|
1046
|
+
constructor() {
|
|
1047
|
+
cleanSubscription(this.source.state$.subscribe((state) => {
|
|
969
1048
|
console.log('dbxActionLogger - state: ', state);
|
|
970
|
-
});
|
|
1049
|
+
}));
|
|
971
1050
|
}
|
|
972
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
973
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1051
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionContextLoggerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1052
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: DbxActionContextLoggerDirective, isStandalone: true, selector: "[dbxActionLogger],[dbxActionContextLogger]", ngImport: i0 });
|
|
974
1053
|
}
|
|
975
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1054
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionContextLoggerDirective, decorators: [{
|
|
976
1055
|
type: Directive,
|
|
977
1056
|
args: [{
|
|
978
1057
|
selector: '[dbxActionLogger],[dbxActionContextLogger]',
|
|
979
1058
|
standalone: true
|
|
980
1059
|
}]
|
|
981
|
-
}] });
|
|
1060
|
+
}], ctorParameters: () => [] });
|
|
982
1061
|
|
|
983
1062
|
/**
|
|
984
1063
|
* Map that returns sources for ActionKey values.
|
|
@@ -1025,14 +1104,15 @@ function actionContextStoreSourceMap() {
|
|
|
1025
1104
|
return actionKeySourceMap;
|
|
1026
1105
|
});
|
|
1027
1106
|
}
|
|
1107
|
+
function destroy() {
|
|
1108
|
+
_actionKeySourceMap.complete();
|
|
1109
|
+
}
|
|
1028
1110
|
const result = {
|
|
1029
1111
|
actionKeySourceMap$: actionKeySourceMap$,
|
|
1030
1112
|
sourceForKey: sourceForKey,
|
|
1031
1113
|
addStoreSource: addStoreSource,
|
|
1032
1114
|
removeStoreSource: removeStoreSource,
|
|
1033
|
-
destroy
|
|
1034
|
-
_actionKeySourceMap.complete();
|
|
1035
|
-
}
|
|
1115
|
+
destroy
|
|
1036
1116
|
};
|
|
1037
1117
|
return result;
|
|
1038
1118
|
}
|
|
@@ -1043,19 +1123,16 @@ function actionContextStoreSourceMap() {
|
|
|
1043
1123
|
* This is useful for passing action contexts around via the providers instead of explicit injection.
|
|
1044
1124
|
*/
|
|
1045
1125
|
class DbxActionContextMapDirective {
|
|
1046
|
-
actionContextStoreSourceMap = inject(ActionContextStoreSourceMap);
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
}
|
|
1050
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxActionContextMapDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1051
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: DbxActionContextMapDirective, isStandalone: true, selector: "[dbxActionContextMap]", providers: [
|
|
1126
|
+
actionContextStoreSourceMap = clean(inject(ActionContextStoreSourceMap));
|
|
1127
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionContextMapDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1128
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: DbxActionContextMapDirective, isStandalone: true, selector: "[dbxActionContextMap]", providers: [
|
|
1052
1129
|
{
|
|
1053
1130
|
provide: ActionContextStoreSourceMap,
|
|
1054
1131
|
useFactory: actionContextStoreSourceMap
|
|
1055
1132
|
}
|
|
1056
1133
|
], exportAs: ["actionMap"], ngImport: i0 });
|
|
1057
1134
|
}
|
|
1058
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1135
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionContextMapDirective, decorators: [{
|
|
1059
1136
|
type: Directive,
|
|
1060
1137
|
args: [{
|
|
1061
1138
|
selector: '[dbxActionContextMap]',
|
|
@@ -1075,20 +1152,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
1075
1152
|
*/
|
|
1076
1153
|
class DbxActionFromMapDirective {
|
|
1077
1154
|
_actionContextStoreSourceMap = inject(ActionContextStoreSourceMap);
|
|
1078
|
-
key = input(undefined, { alias: 'dbxActionFromMap' });
|
|
1155
|
+
key = input(undefined, { ...(ngDevMode ? { debugName: "key" } : {}), alias: 'dbxActionFromMap' });
|
|
1079
1156
|
key$ = toObservable(this.key);
|
|
1080
1157
|
store$ = this.key$.pipe(filterMaybe(), switchMap((x) => this._actionContextStoreSourceMap.sourceForKey(x).store$));
|
|
1081
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1082
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
1158
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionFromMapDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1159
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: DbxActionFromMapDirective, isStandalone: true, selector: "[dbxActionFromMap]", inputs: { key: { classPropertyName: "key", publicName: "dbxActionFromMap", isSignal: true, isRequired: false, transformFunction: null } }, providers: provideSecondaryActionStoreSource(DbxActionFromMapDirective), ngImport: i0 });
|
|
1083
1160
|
}
|
|
1084
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1161
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionFromMapDirective, decorators: [{
|
|
1085
1162
|
type: Directive,
|
|
1086
1163
|
args: [{
|
|
1087
1164
|
selector: '[dbxActionFromMap]',
|
|
1088
1165
|
providers: provideSecondaryActionStoreSource(DbxActionFromMapDirective),
|
|
1089
1166
|
standalone: true
|
|
1090
1167
|
}]
|
|
1091
|
-
}] });
|
|
1168
|
+
}], propDecorators: { key: [{ type: i0.Input, args: [{ isSignal: true, alias: "dbxActionFromMap", required: false }] }] } });
|
|
1092
1169
|
|
|
1093
1170
|
/**
|
|
1094
1171
|
* Used to communicate with an dbxActionMap and set the ActionContextStore to the store based on the key.
|
|
@@ -1096,7 +1173,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
1096
1173
|
class DbxActionMapSourceDirective {
|
|
1097
1174
|
_actionContextStoreSourceMap = inject(ActionContextStoreSourceMap);
|
|
1098
1175
|
source = inject(ActionContextStoreSource, { host: true });
|
|
1099
|
-
key = input(undefined, { alias: 'dbxActionMapSource' });
|
|
1176
|
+
key = input(undefined, { ...(ngDevMode ? { debugName: "key" } : {}), alias: 'dbxActionMapSource' });
|
|
1100
1177
|
_currentKey;
|
|
1101
1178
|
_keyEffect = effect(() => {
|
|
1102
1179
|
const nextKey = this.key();
|
|
@@ -1105,7 +1182,7 @@ class DbxActionMapSourceDirective {
|
|
|
1105
1182
|
}
|
|
1106
1183
|
this._currentKey = nextKey;
|
|
1107
1184
|
this._addToStore();
|
|
1108
|
-
}, {
|
|
1185
|
+
}, ...(ngDevMode ? [{ debugName: "_keyEffect" }] : []));
|
|
1109
1186
|
ngOnDestroy() {
|
|
1110
1187
|
this._removeFromToStore();
|
|
1111
1188
|
}
|
|
@@ -1119,16 +1196,16 @@ class DbxActionMapSourceDirective {
|
|
|
1119
1196
|
this._actionContextStoreSourceMap.removeStoreSource(this._currentKey);
|
|
1120
1197
|
}
|
|
1121
1198
|
}
|
|
1122
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1123
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
1199
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionMapSourceDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1200
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: DbxActionMapSourceDirective, isStandalone: true, selector: "[dbxActionMapSource]", inputs: { key: { classPropertyName: "key", publicName: "dbxActionMapSource", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
1124
1201
|
}
|
|
1125
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1202
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionMapSourceDirective, decorators: [{
|
|
1126
1203
|
type: Directive,
|
|
1127
1204
|
args: [{
|
|
1128
1205
|
selector: '[dbxActionMapSource]',
|
|
1129
1206
|
standalone: true
|
|
1130
1207
|
}]
|
|
1131
|
-
}] });
|
|
1208
|
+
}], propDecorators: { key: [{ type: i0.Input, args: [{ isSignal: true, alias: "dbxActionMapSource", required: false }] }] } });
|
|
1132
1209
|
|
|
1133
1210
|
/**
|
|
1134
1211
|
* Creates a new ActionContextStoreSourceMapReader from the input.
|
|
@@ -1168,88 +1245,79 @@ const DEFAULT_ACTION_MAP_WORKING_DISABLED_KEY = 'action_map_working_disable';
|
|
|
1168
1245
|
/**
|
|
1169
1246
|
* Used to communicate with an dbxActionMap and set the ActionContextStore to be disabled if any other element in the map is working.
|
|
1170
1247
|
*/
|
|
1171
|
-
class DbxActionMapWorkingDisableDirective
|
|
1248
|
+
class DbxActionMapWorkingDisableDirective {
|
|
1172
1249
|
_actionContextStoreSourceMap = inject(ActionContextStoreSourceMap);
|
|
1173
1250
|
source = inject(DbxActionContextStoreSourceInstance, { host: true });
|
|
1174
|
-
disabledKey = input(undefined, { alias: 'dbxActionMapWorkingDisable' });
|
|
1251
|
+
disabledKey = input(undefined, { ...(ngDevMode ? { debugName: "disabledKey" } : {}), alias: 'dbxActionMapWorkingDisable' });
|
|
1175
1252
|
areAnySourcesWorking$ = actionContextStoreSourceMapReader(this._actionContextStoreSourceMap.actionKeySourceMap$).checkAny((x) => x.isWorking$, false);
|
|
1176
|
-
|
|
1177
|
-
this.
|
|
1253
|
+
constructor() {
|
|
1254
|
+
cleanSubscription(this.areAnySourcesWorking$.subscribe((x) => {
|
|
1178
1255
|
this.source.disable(this.disabledKey() || DEFAULT_ACTION_MAP_WORKING_DISABLED_KEY, x);
|
|
1256
|
+
}));
|
|
1257
|
+
clean(() => {
|
|
1258
|
+
this.source.enable(this.disabledKey() || DEFAULT_ACTION_MAP_WORKING_DISABLED_KEY);
|
|
1179
1259
|
});
|
|
1180
1260
|
}
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
this.source.enable(this.disabledKey() || DEFAULT_ACTION_MAP_WORKING_DISABLED_KEY);
|
|
1184
|
-
}
|
|
1185
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxActionMapWorkingDisableDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1186
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.2.13", type: DbxActionMapWorkingDisableDirective, isStandalone: true, selector: "[dbxActionMapWorkingDisable]", inputs: { disabledKey: { classPropertyName: "disabledKey", publicName: "dbxActionMapWorkingDisable", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0 });
|
|
1261
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionMapWorkingDisableDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1262
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: DbxActionMapWorkingDisableDirective, isStandalone: true, selector: "[dbxActionMapWorkingDisable]", inputs: { disabledKey: { classPropertyName: "disabledKey", publicName: "dbxActionMapWorkingDisable", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
1187
1263
|
}
|
|
1188
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1264
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionMapWorkingDisableDirective, decorators: [{
|
|
1189
1265
|
type: Directive,
|
|
1190
1266
|
args: [{
|
|
1191
1267
|
selector: '[dbxActionMapWorkingDisable]',
|
|
1192
1268
|
standalone: true
|
|
1193
1269
|
}]
|
|
1194
|
-
}] });
|
|
1270
|
+
}], ctorParameters: () => [], propDecorators: { disabledKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "dbxActionMapWorkingDisable", required: false }] }] } });
|
|
1195
1271
|
|
|
1196
1272
|
const APP_ACTION_DISABLED_DIRECTIVE_KEY = 'dbx_action_disabled';
|
|
1197
1273
|
/**
|
|
1198
1274
|
* Directive that allows disabling an action using the inputs.
|
|
1199
1275
|
*/
|
|
1200
|
-
class DbxActionDisabledDirective
|
|
1276
|
+
class DbxActionDisabledDirective {
|
|
1201
1277
|
source = inject((DbxActionContextStoreSourceInstance), { host: true });
|
|
1202
|
-
disabled = input(false, { alias: 'dbxActionDisabled', transform: (value) => value !== false });
|
|
1278
|
+
disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : {}), alias: 'dbxActionDisabled', transform: (value) => value !== false });
|
|
1203
1279
|
disabled$ = toObservable(this.disabled);
|
|
1204
1280
|
constructor() {
|
|
1205
|
-
|
|
1206
|
-
this.sub = this.disabled$.subscribe((x) => {
|
|
1281
|
+
cleanSubscription(this.disabled$.subscribe((x) => {
|
|
1207
1282
|
this.source.disable(APP_ACTION_DISABLED_DIRECTIVE_KEY, x);
|
|
1208
|
-
});
|
|
1209
|
-
|
|
1210
|
-
ngOnDestroy() {
|
|
1211
|
-
super.ngOnDestroy();
|
|
1212
|
-
this.source.enable(APP_ACTION_DISABLED_DIRECTIVE_KEY);
|
|
1283
|
+
}));
|
|
1284
|
+
clean(() => this.source.enable(APP_ACTION_DISABLED_DIRECTIVE_KEY));
|
|
1213
1285
|
}
|
|
1214
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1215
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
1286
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionDisabledDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1287
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: DbxActionDisabledDirective, isStandalone: true, selector: "[dbxActionDisabled]", inputs: { disabled: { classPropertyName: "disabled", publicName: "dbxActionDisabled", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
1216
1288
|
}
|
|
1217
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1289
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionDisabledDirective, decorators: [{
|
|
1218
1290
|
type: Directive,
|
|
1219
1291
|
args: [{
|
|
1220
1292
|
selector: '[dbxActionDisabled]',
|
|
1221
1293
|
standalone: true
|
|
1222
1294
|
}]
|
|
1223
|
-
}], ctorParameters: () => [] });
|
|
1295
|
+
}], ctorParameters: () => [], propDecorators: { disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "dbxActionDisabled", required: false }] }] } });
|
|
1224
1296
|
|
|
1225
1297
|
const APP_ACTION_DISABLED_ON_SUCCESS_DIRECTIVE_KEY = 'dbx_action_disabled_on_success';
|
|
1226
1298
|
/**
|
|
1227
1299
|
* Directive that will disable the action after the action completes successfully.
|
|
1228
1300
|
*/
|
|
1229
|
-
class DbxActionDisabledOnSuccessDirective
|
|
1301
|
+
class DbxActionDisabledOnSuccessDirective {
|
|
1230
1302
|
source = inject((DbxActionContextStoreSourceInstance), { host: true });
|
|
1231
|
-
disabledOnSuccess = input(true, { alias: 'dbxActionDisabledOnSuccess', transform: (value) => value !== false });
|
|
1303
|
+
disabledOnSuccess = input(true, { ...(ngDevMode ? { debugName: "disabledOnSuccess" } : {}), alias: 'dbxActionDisabledOnSuccess', transform: (value) => value !== false });
|
|
1232
1304
|
disabledOnSuccess$ = toObservable(this.disabledOnSuccess);
|
|
1233
1305
|
constructor() {
|
|
1234
|
-
|
|
1235
|
-
this.sub = combineLatest([this.disabledOnSuccess$, this.source.isSuccess$]).subscribe(([disableOnSuccess, success]) => {
|
|
1306
|
+
cleanSubscription(combineLatest([this.disabledOnSuccess$, this.source.isSuccess$]).subscribe(([disableOnSuccess, success]) => {
|
|
1236
1307
|
this.source.disable(APP_ACTION_DISABLED_ON_SUCCESS_DIRECTIVE_KEY, disableOnSuccess && success);
|
|
1237
|
-
});
|
|
1238
|
-
|
|
1239
|
-
ngOnDestroy() {
|
|
1240
|
-
super.ngOnDestroy();
|
|
1241
|
-
this.source.enable(APP_ACTION_DISABLED_ON_SUCCESS_DIRECTIVE_KEY);
|
|
1308
|
+
}));
|
|
1309
|
+
clean(() => this.source.enable(APP_ACTION_DISABLED_ON_SUCCESS_DIRECTIVE_KEY));
|
|
1242
1310
|
}
|
|
1243
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1244
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
1311
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionDisabledOnSuccessDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1312
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: DbxActionDisabledOnSuccessDirective, isStandalone: true, selector: "[dbxActionDisabledOnSuccess]", inputs: { disabledOnSuccess: { classPropertyName: "disabledOnSuccess", publicName: "dbxActionDisabledOnSuccess", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
1245
1313
|
}
|
|
1246
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1314
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionDisabledOnSuccessDirective, decorators: [{
|
|
1247
1315
|
type: Directive,
|
|
1248
1316
|
args: [{
|
|
1249
1317
|
selector: '[dbxActionDisabledOnSuccess]',
|
|
1250
1318
|
standalone: true
|
|
1251
1319
|
}]
|
|
1252
|
-
}], ctorParameters: () => [] });
|
|
1320
|
+
}], ctorParameters: () => [], propDecorators: { disabledOnSuccess: [{ type: i0.Input, args: [{ isSignal: true, alias: "dbxActionDisabledOnSuccess", required: false }] }] } });
|
|
1253
1321
|
|
|
1254
1322
|
const DBX_ACTION_HANDLER_LOCK_KEY = 'dbxActionHandler';
|
|
1255
1323
|
/**
|
|
@@ -1313,64 +1381,62 @@ class DbxActionHandlerInstance {
|
|
|
1313
1381
|
*/
|
|
1314
1382
|
class AbstractDbxActionHandlerDirective {
|
|
1315
1383
|
source = inject((DbxActionContextStoreSourceInstance), { host: true });
|
|
1316
|
-
_dbxActionHandlerInstance = new DbxActionHandlerInstance(this.source);
|
|
1384
|
+
_dbxActionHandlerInstance = clean(new DbxActionHandlerInstance(this.source));
|
|
1317
1385
|
constructor() {
|
|
1318
1386
|
this._dbxActionHandlerInstance.init();
|
|
1319
1387
|
}
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
}
|
|
1323
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AbstractDbxActionHandlerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1324
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: AbstractDbxActionHandlerDirective, ngImport: i0 });
|
|
1388
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AbstractDbxActionHandlerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1389
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: AbstractDbxActionHandlerDirective, isStandalone: true, ngImport: i0 });
|
|
1325
1390
|
}
|
|
1326
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1391
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AbstractDbxActionHandlerDirective, decorators: [{
|
|
1327
1392
|
type: Directive
|
|
1328
1393
|
}], ctorParameters: () => [] });
|
|
1329
1394
|
/**
|
|
1330
1395
|
* Directive that passes a Work function to handle a valueReady$ event from an action context.
|
|
1331
1396
|
*/
|
|
1332
1397
|
class DbxActionHandlerDirective extends AbstractDbxActionHandlerDirective {
|
|
1333
|
-
handlerFunction = input.required({ alias: 'dbxActionHandler' });
|
|
1398
|
+
handlerFunction = input.required({ ...(ngDevMode ? { debugName: "handlerFunction" } : {}), alias: 'dbxActionHandler' });
|
|
1334
1399
|
_handlerFunctionEffect = effect(() => {
|
|
1335
1400
|
this._dbxActionHandlerInstance.setHandlerFunction(this.handlerFunction());
|
|
1336
|
-
});
|
|
1337
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1338
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
1401
|
+
}, ...(ngDevMode ? [{ debugName: "_handlerFunctionEffect" }] : []));
|
|
1402
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionHandlerDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1403
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: DbxActionHandlerDirective, isStandalone: true, selector: "[dbxActionHandler]", inputs: { handlerFunction: { classPropertyName: "handlerFunction", publicName: "dbxActionHandler", isSignal: true, isRequired: true, transformFunction: null } }, usesInheritance: true, ngImport: i0 });
|
|
1339
1404
|
}
|
|
1340
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1405
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionHandlerDirective, decorators: [{
|
|
1341
1406
|
type: Directive,
|
|
1342
1407
|
args: [{
|
|
1343
1408
|
selector: '[dbxActionHandler]',
|
|
1344
1409
|
standalone: true
|
|
1345
1410
|
}]
|
|
1346
|
-
}] });
|
|
1411
|
+
}], propDecorators: { handlerFunction: [{ type: i0.Input, args: [{ isSignal: true, alias: "dbxActionHandler", required: true }] }] } });
|
|
1347
1412
|
/**
|
|
1348
1413
|
* Directive that passes a value to handle a valueReady$ event from an action context.
|
|
1349
1414
|
*/
|
|
1350
1415
|
class DbxActionHandlerValueDirective extends AbstractDbxActionHandlerDirective {
|
|
1351
|
-
handlerValue = input.required({ alias: 'dbxActionHandlerValue' });
|
|
1416
|
+
handlerValue = input.required({ ...(ngDevMode ? { debugName: "handlerValue" } : {}), alias: 'dbxActionHandlerValue' });
|
|
1352
1417
|
_handlerValueEffect = effect(() => {
|
|
1353
1418
|
this._dbxActionHandlerInstance.setHandlerValue(this.handlerValue());
|
|
1354
|
-
});
|
|
1355
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1356
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
1419
|
+
}, ...(ngDevMode ? [{ debugName: "_handlerValueEffect" }] : []));
|
|
1420
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionHandlerValueDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1421
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: DbxActionHandlerValueDirective, isStandalone: true, selector: "[dbxActionHandlerValue]", inputs: { handlerValue: { classPropertyName: "handlerValue", publicName: "dbxActionHandlerValue", isSignal: true, isRequired: true, transformFunction: null } }, usesInheritance: true, ngImport: i0 });
|
|
1357
1422
|
}
|
|
1358
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1423
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionHandlerValueDirective, decorators: [{
|
|
1359
1424
|
type: Directive,
|
|
1360
1425
|
args: [{
|
|
1361
1426
|
selector: '[dbxActionHandlerValue]',
|
|
1362
1427
|
standalone: true
|
|
1363
1428
|
}]
|
|
1364
|
-
}] });
|
|
1429
|
+
}], propDecorators: { handlerValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "dbxActionHandlerValue", required: true }] }] } });
|
|
1365
1430
|
|
|
1366
1431
|
/**
|
|
1367
1432
|
* Abstract directive class that watches a show$ observable and behaves like *ngIf.
|
|
1368
1433
|
*/
|
|
1369
|
-
class AbstractIfDirective
|
|
1434
|
+
class AbstractIfDirective {
|
|
1370
1435
|
_templateRef = inject(TemplateRef);
|
|
1371
1436
|
_viewContainer = inject(ViewContainerRef);
|
|
1437
|
+
_sub = cleanSubscription();
|
|
1372
1438
|
ngOnInit() {
|
|
1373
|
-
this.
|
|
1439
|
+
this._sub.subscription = this.show$.pipe(distinctUntilChanged()).subscribe((show) => {
|
|
1374
1440
|
if (show) {
|
|
1375
1441
|
this._viewContainer.createEmbeddedView(this._templateRef);
|
|
1376
1442
|
}
|
|
@@ -1379,10 +1445,10 @@ class AbstractIfDirective extends AbstractSubscriptionDirective {
|
|
|
1379
1445
|
}
|
|
1380
1446
|
});
|
|
1381
1447
|
}
|
|
1382
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1383
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1448
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AbstractIfDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1449
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: AbstractIfDirective, isStandalone: true, ngImport: i0 });
|
|
1384
1450
|
}
|
|
1385
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1451
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AbstractIfDirective, decorators: [{
|
|
1386
1452
|
type: Directive
|
|
1387
1453
|
}] });
|
|
1388
1454
|
|
|
@@ -1400,7 +1466,7 @@ const transformEmptyStringInputToUndefined = (value) => (value === '' ? undefine
|
|
|
1400
1466
|
*/
|
|
1401
1467
|
class DbxActionIdleDirective extends AbstractIfDirective {
|
|
1402
1468
|
_store = inject(DbxActionContextStoreSourceInstance);
|
|
1403
|
-
hideAfter = input(undefined, { alias: 'dbxActionIdle', transform: transformEmptyStringInputToUndefined });
|
|
1469
|
+
hideAfter = input(undefined, { ...(ngDevMode ? { debugName: "hideAfter" } : {}), alias: 'dbxActionIdle', transform: transformEmptyStringInputToUndefined });
|
|
1404
1470
|
show$ = this._store.idle$.pipe(exhaustMap((idle) => {
|
|
1405
1471
|
if (idle) {
|
|
1406
1472
|
return emitDelayObs(true, false, this.hideAfter());
|
|
@@ -1409,16 +1475,16 @@ class DbxActionIdleDirective extends AbstractIfDirective {
|
|
|
1409
1475
|
return of(false);
|
|
1410
1476
|
}
|
|
1411
1477
|
}), shareReplay(1));
|
|
1412
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1413
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
1478
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionIdleDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1479
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: DbxActionIdleDirective, isStandalone: true, selector: "[dbxActionIdle]", inputs: { hideAfter: { classPropertyName: "hideAfter", publicName: "dbxActionIdle", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0 });
|
|
1414
1480
|
}
|
|
1415
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1481
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionIdleDirective, decorators: [{
|
|
1416
1482
|
type: Directive,
|
|
1417
1483
|
args: [{
|
|
1418
1484
|
selector: '[dbxActionIdle]',
|
|
1419
1485
|
standalone: true
|
|
1420
1486
|
}]
|
|
1421
|
-
}] });
|
|
1487
|
+
}], propDecorators: { hideAfter: [{ type: i0.Input, args: [{ isSignal: true, alias: "dbxActionIdle", required: false }] }] } });
|
|
1422
1488
|
|
|
1423
1489
|
/**
|
|
1424
1490
|
* Structural directive that displays the content before the store has success.
|
|
@@ -1427,7 +1493,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
1427
1493
|
*/
|
|
1428
1494
|
class DbxActionPreSuccessDirective extends AbstractIfDirective {
|
|
1429
1495
|
_store = inject(DbxActionContextStoreSourceInstance);
|
|
1430
|
-
hideFor = input(undefined, { alias: 'dbxActionPreSuccess', transform: transformEmptyStringInputToUndefined });
|
|
1496
|
+
hideFor = input(undefined, { ...(ngDevMode ? { debugName: "hideFor" } : {}), alias: 'dbxActionPreSuccess', transform: transformEmptyStringInputToUndefined });
|
|
1431
1497
|
show$ = this._store.isSuccess$.pipe(exhaustMap((success) => {
|
|
1432
1498
|
if (success) {
|
|
1433
1499
|
return emitDelayObs(false, true, this.hideFor());
|
|
@@ -1436,16 +1502,16 @@ class DbxActionPreSuccessDirective extends AbstractIfDirective {
|
|
|
1436
1502
|
return of(true);
|
|
1437
1503
|
}
|
|
1438
1504
|
}), shareReplay(1));
|
|
1439
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1440
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
1505
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionPreSuccessDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1506
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: DbxActionPreSuccessDirective, isStandalone: true, selector: "[dbxActionPreSuccess]", inputs: { hideFor: { classPropertyName: "hideFor", publicName: "dbxActionPreSuccess", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0 });
|
|
1441
1507
|
}
|
|
1442
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1508
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionPreSuccessDirective, decorators: [{
|
|
1443
1509
|
type: Directive,
|
|
1444
1510
|
args: [{
|
|
1445
1511
|
selector: '[dbxActionPreSuccess]',
|
|
1446
1512
|
standalone: true
|
|
1447
1513
|
}]
|
|
1448
|
-
}] });
|
|
1514
|
+
}], propDecorators: { hideFor: [{ type: i0.Input, args: [{ isSignal: true, alias: "dbxActionPreSuccess", required: false }] }] } });
|
|
1449
1515
|
|
|
1450
1516
|
/**
|
|
1451
1517
|
* Structural directive that displays the content when the store has a success value.
|
|
@@ -1454,7 +1520,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
1454
1520
|
*/
|
|
1455
1521
|
class DbxActionHasSuccessDirective extends AbstractIfDirective {
|
|
1456
1522
|
_store = inject(DbxActionContextStoreSourceInstance);
|
|
1457
|
-
hideAfter = input(undefined, { alias: 'dbxActionHasSuccess', transform: transformEmptyStringInputToUndefined });
|
|
1523
|
+
hideAfter = input(undefined, { ...(ngDevMode ? { debugName: "hideAfter" } : {}), alias: 'dbxActionHasSuccess', transform: transformEmptyStringInputToUndefined });
|
|
1458
1524
|
show$ = this._store.isSuccess$.pipe(exhaustMap((success) => {
|
|
1459
1525
|
if (success) {
|
|
1460
1526
|
return emitDelayObs(true, false, this.hideAfter());
|
|
@@ -1463,66 +1529,66 @@ class DbxActionHasSuccessDirective extends AbstractIfDirective {
|
|
|
1463
1529
|
return of(false);
|
|
1464
1530
|
}
|
|
1465
1531
|
}), shareReplay(1));
|
|
1466
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1467
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
1532
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionHasSuccessDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1533
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: DbxActionHasSuccessDirective, isStandalone: true, selector: "[dbxActionHasSuccess]", inputs: { hideAfter: { classPropertyName: "hideAfter", publicName: "dbxActionHasSuccess", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0 });
|
|
1468
1534
|
}
|
|
1469
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1535
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionHasSuccessDirective, decorators: [{
|
|
1470
1536
|
type: Directive,
|
|
1471
1537
|
args: [{
|
|
1472
1538
|
selector: '[dbxActionHasSuccess]',
|
|
1473
1539
|
standalone: true
|
|
1474
1540
|
}]
|
|
1475
|
-
}] });
|
|
1541
|
+
}], propDecorators: { hideAfter: [{ type: i0.Input, args: [{ isSignal: true, alias: "dbxActionHasSuccess", required: false }] }] } });
|
|
1476
1542
|
|
|
1477
1543
|
/**
|
|
1478
1544
|
* Directive that executes a function on ActionContextStore Success.
|
|
1479
1545
|
*/
|
|
1480
|
-
class DbxActionSuccessHandlerDirective
|
|
1546
|
+
class DbxActionSuccessHandlerDirective {
|
|
1481
1547
|
source = inject((DbxActionContextStoreSourceInstance), { host: true });
|
|
1482
|
-
dbxActionSuccessHandler = input();
|
|
1548
|
+
dbxActionSuccessHandler = input(...(ngDevMode ? [undefined, { debugName: "dbxActionSuccessHandler" }] : []));
|
|
1483
1549
|
successFunction$ = toObservable(this.dbxActionSuccessHandler).pipe(filterMaybe(), shareReplay(1));
|
|
1484
|
-
|
|
1485
|
-
this.
|
|
1550
|
+
constructor() {
|
|
1551
|
+
cleanSubscription(this.successFunction$
|
|
1486
1552
|
.pipe(switchMap((successFunction) => this.source.success$.pipe(map((x) => [successFunction, x]), tap(([successFn, result]) => {
|
|
1487
1553
|
successFn(result);
|
|
1488
1554
|
}))))
|
|
1489
|
-
.subscribe();
|
|
1555
|
+
.subscribe());
|
|
1490
1556
|
}
|
|
1491
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1492
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
1557
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionSuccessHandlerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1558
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: DbxActionSuccessHandlerDirective, isStandalone: true, selector: "[dbxActionSuccessHandler]", inputs: { dbxActionSuccessHandler: { classPropertyName: "dbxActionSuccessHandler", publicName: "dbxActionSuccessHandler", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
1493
1559
|
}
|
|
1494
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1560
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionSuccessHandlerDirective, decorators: [{
|
|
1495
1561
|
type: Directive,
|
|
1496
1562
|
args: [{
|
|
1497
1563
|
selector: '[dbxActionSuccessHandler]',
|
|
1498
1564
|
standalone: true
|
|
1499
1565
|
}]
|
|
1500
|
-
}] });
|
|
1566
|
+
}], ctorParameters: () => [], propDecorators: { dbxActionSuccessHandler: [{ type: i0.Input, args: [{ isSignal: true, alias: "dbxActionSuccessHandler", required: false }] }] } });
|
|
1501
1567
|
|
|
1502
1568
|
/**
|
|
1503
1569
|
* Directive that executes a function on ActionContextStore error.
|
|
1504
1570
|
*/
|
|
1505
|
-
class DbxActionErrorHandlerDirective
|
|
1571
|
+
class DbxActionErrorHandlerDirective {
|
|
1506
1572
|
source = inject((DbxActionContextStoreSourceInstance), { host: true });
|
|
1507
|
-
dbxActionErrorHandler = input();
|
|
1573
|
+
dbxActionErrorHandler = input(...(ngDevMode ? [undefined, { debugName: "dbxActionErrorHandler" }] : []));
|
|
1508
1574
|
errorFunction$ = toObservable(this.dbxActionErrorHandler).pipe(filterMaybe(), shareReplay(1));
|
|
1509
|
-
|
|
1510
|
-
this.
|
|
1575
|
+
constructor() {
|
|
1576
|
+
cleanSubscription(this.errorFunction$
|
|
1511
1577
|
.pipe(switchMap((errorFunction) => this.source.error$.pipe(filterMaybe(), map((x) => [errorFunction, x]), tap(([errorFn, error]) => {
|
|
1512
1578
|
errorFn(error);
|
|
1513
1579
|
}))))
|
|
1514
|
-
.subscribe();
|
|
1580
|
+
.subscribe());
|
|
1515
1581
|
}
|
|
1516
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1517
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
1582
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionErrorHandlerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1583
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: DbxActionErrorHandlerDirective, isStandalone: true, selector: "[dbxActionErrorHandler]", inputs: { dbxActionErrorHandler: { classPropertyName: "dbxActionErrorHandler", publicName: "dbxActionErrorHandler", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
1518
1584
|
}
|
|
1519
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1585
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionErrorHandlerDirective, decorators: [{
|
|
1520
1586
|
type: Directive,
|
|
1521
1587
|
args: [{
|
|
1522
1588
|
selector: '[dbxActionErrorHandler]',
|
|
1523
1589
|
standalone: true
|
|
1524
1590
|
}]
|
|
1525
|
-
}] });
|
|
1591
|
+
}], ctorParameters: () => [], propDecorators: { dbxActionErrorHandler: [{ type: i0.Input, args: [{ isSignal: true, alias: "dbxActionErrorHandler", required: false }] }] } });
|
|
1526
1592
|
|
|
1527
1593
|
/**
|
|
1528
1594
|
* Directive that provides a default value when triggered.
|
|
@@ -1533,39 +1599,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
1533
1599
|
*
|
|
1534
1600
|
* Use a getter if null/undefined values should be passed to the action.
|
|
1535
1601
|
*/
|
|
1536
|
-
class DbxActionValueDirective
|
|
1537
|
-
valueOrFunction = input('', { alias: 'dbxActionValue' });
|
|
1602
|
+
class DbxActionValueDirective {
|
|
1603
|
+
valueOrFunction = input('', { ...(ngDevMode ? { debugName: "valueOrFunction" } : {}), alias: 'dbxActionValue' });
|
|
1538
1604
|
source = inject((DbxActionContextStoreSourceInstance), { host: true });
|
|
1539
1605
|
_valueOrFunctionOverride = new BehaviorSubject(undefined);
|
|
1540
1606
|
valueOrFunction$ = combineLatest([this._valueOrFunctionOverride, toObservable(this.valueOrFunction)]).pipe(map(([x, y]) => x ?? y), filterMaybe(), shareReplay(1));
|
|
1541
1607
|
constructor() {
|
|
1542
|
-
|
|
1543
|
-
}
|
|
1544
|
-
ngOnInit() {
|
|
1545
|
-
this.sub = this.valueOrFunction$.pipe(switchMap((valueOrFunction) => this.source.triggered$.pipe(map(() => valueOrFunction)))).subscribe((valueOrFunction) => {
|
|
1608
|
+
cleanSubscription(this.valueOrFunction$.pipe(switchMap((valueOrFunction) => this.source.triggered$.pipe(map(() => valueOrFunction)))).subscribe((valueOrFunction) => {
|
|
1546
1609
|
const value = getValueFromGetter(valueOrFunction);
|
|
1547
1610
|
this.source.readyValue(value);
|
|
1548
|
-
});
|
|
1611
|
+
}));
|
|
1549
1612
|
}
|
|
1550
1613
|
setValueOrFunction(value) {
|
|
1551
1614
|
this._valueOrFunctionOverride.next(value);
|
|
1552
1615
|
}
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
super.ngOnDestroy();
|
|
1556
|
-
this._valueOrFunctionOverride.complete();
|
|
1557
|
-
});
|
|
1558
|
-
}
|
|
1559
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxActionValueDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1560
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.2.13", type: DbxActionValueDirective, isStandalone: true, selector: "dbxActionValue,[dbxActionValue]", inputs: { valueOrFunction: { classPropertyName: "valueOrFunction", publicName: "dbxActionValue", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0 });
|
|
1616
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionValueDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1617
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: DbxActionValueDirective, isStandalone: true, selector: "dbxActionValue,[dbxActionValue]", inputs: { valueOrFunction: { classPropertyName: "valueOrFunction", publicName: "dbxActionValue", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
1561
1618
|
}
|
|
1562
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1619
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionValueDirective, decorators: [{
|
|
1563
1620
|
type: Directive,
|
|
1564
1621
|
args: [{
|
|
1565
1622
|
selector: 'dbxActionValue,[dbxActionValue]',
|
|
1566
1623
|
standalone: true
|
|
1567
1624
|
}]
|
|
1568
|
-
}], ctorParameters: () => [] });
|
|
1625
|
+
}], ctorParameters: () => [], propDecorators: { valueOrFunction: [{ type: i0.Input, args: [{ isSignal: true, alias: "dbxActionValue", required: false }] }] } });
|
|
1569
1626
|
|
|
1570
1627
|
/**
|
|
1571
1628
|
* Structural directive that displays the content when the store is working.
|
|
@@ -1574,13 +1631,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
1574
1631
|
*/
|
|
1575
1632
|
class DbxActionIsWorkingDirective extends AbstractIfDirective {
|
|
1576
1633
|
_store = inject(DbxActionContextStoreSourceInstance);
|
|
1577
|
-
hideAfter = input(undefined, { alias: 'dbxActionWorking', transform: transformEmptyStringInputToUndefined });
|
|
1578
|
-
hideAfterIsWorking = input(undefined, { alias: 'dbxActionIsWorking', transform: transformEmptyStringInputToUndefined });
|
|
1634
|
+
hideAfter = input(undefined, { ...(ngDevMode ? { debugName: "hideAfter" } : {}), alias: 'dbxActionWorking', transform: transformEmptyStringInputToUndefined });
|
|
1635
|
+
hideAfterIsWorking = input(undefined, { ...(ngDevMode ? { debugName: "hideAfterIsWorking" } : {}), alias: 'dbxActionIsWorking', transform: transformEmptyStringInputToUndefined });
|
|
1579
1636
|
hideAfterSignal = computed(() => {
|
|
1580
1637
|
const hideAfter = this.hideAfter();
|
|
1581
1638
|
const hideAfterIsWorking = this.hideAfterIsWorking();
|
|
1582
1639
|
return hideAfter ?? hideAfterIsWorking;
|
|
1583
|
-
});
|
|
1640
|
+
}, ...(ngDevMode ? [{ debugName: "hideAfterSignal" }] : []));
|
|
1584
1641
|
show$ = this._store.isWorking$.pipe(exhaustMap((isWorking) => {
|
|
1585
1642
|
const hideAfter = this.hideAfterSignal();
|
|
1586
1643
|
if (isWorking && hideAfter != null) {
|
|
@@ -1590,47 +1647,44 @@ class DbxActionIsWorkingDirective extends AbstractIfDirective {
|
|
|
1590
1647
|
return of(isWorking);
|
|
1591
1648
|
}
|
|
1592
1649
|
}), shareReplay(1));
|
|
1593
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1594
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
1650
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionIsWorkingDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1651
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: DbxActionIsWorkingDirective, isStandalone: true, selector: "[dbxActionWorking],[dbxActionIsWorking]", inputs: { hideAfter: { classPropertyName: "hideAfter", publicName: "dbxActionWorking", isSignal: true, isRequired: false, transformFunction: null }, hideAfterIsWorking: { classPropertyName: "hideAfterIsWorking", publicName: "dbxActionIsWorking", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0 });
|
|
1595
1652
|
}
|
|
1596
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1653
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionIsWorkingDirective, decorators: [{
|
|
1597
1654
|
type: Directive,
|
|
1598
1655
|
args: [{
|
|
1599
1656
|
selector: '[dbxActionWorking],[dbxActionIsWorking]',
|
|
1600
1657
|
standalone: true
|
|
1601
1658
|
}]
|
|
1602
|
-
}] });
|
|
1659
|
+
}], propDecorators: { hideAfter: [{ type: i0.Input, args: [{ isSignal: true, alias: "dbxActionWorking", required: false }] }], hideAfterIsWorking: [{ type: i0.Input, args: [{ isSignal: true, alias: "dbxActionIsWorking", required: false }] }] } });
|
|
1603
1660
|
|
|
1604
1661
|
const APP_ACTION_ENFORCE_MODIFIED_DIRECTIVE_KEY = 'dbx_action_enforce_modified';
|
|
1605
1662
|
/**
|
|
1606
1663
|
* Directive that toggles disabling an action if the action is not marked modified.
|
|
1607
1664
|
*/
|
|
1608
|
-
class DbxActionEnforceModifiedDirective
|
|
1665
|
+
class DbxActionEnforceModifiedDirective {
|
|
1609
1666
|
source = inject(DbxActionContextStoreSourceInstance, { host: true });
|
|
1610
|
-
enabled = input(true, { alias: 'dbxActionEnforceModified', transform: (value) => value !== false });
|
|
1667
|
+
enabled = input(true, { ...(ngDevMode ? { debugName: "enabled" } : {}), alias: 'dbxActionEnforceModified', transform: (value) => value !== false });
|
|
1611
1668
|
enabled$ = toObservable(this.enabled);
|
|
1612
|
-
|
|
1613
|
-
|
|
1669
|
+
constructor() {
|
|
1670
|
+
cleanSubscription(combineLatest([this.source.isModified$, this.enabled$])
|
|
1614
1671
|
.pipe(delay(0))
|
|
1615
1672
|
.subscribe(([modified, enableDirective]) => {
|
|
1616
1673
|
const disable = enableDirective && !modified;
|
|
1617
1674
|
this.source.disable(APP_ACTION_ENFORCE_MODIFIED_DIRECTIVE_KEY, disable);
|
|
1618
|
-
});
|
|
1619
|
-
|
|
1620
|
-
ngOnDestroy() {
|
|
1621
|
-
super.ngOnDestroy();
|
|
1622
|
-
this.source.enable(APP_ACTION_ENFORCE_MODIFIED_DIRECTIVE_KEY);
|
|
1675
|
+
}));
|
|
1676
|
+
clean(() => this.source.enable(APP_ACTION_ENFORCE_MODIFIED_DIRECTIVE_KEY));
|
|
1623
1677
|
}
|
|
1624
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1625
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
1678
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionEnforceModifiedDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1679
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: DbxActionEnforceModifiedDirective, isStandalone: true, selector: "[dbxActionEnforceModified]", inputs: { enabled: { classPropertyName: "enabled", publicName: "dbxActionEnforceModified", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
1626
1680
|
}
|
|
1627
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1681
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionEnforceModifiedDirective, decorators: [{
|
|
1628
1682
|
type: Directive,
|
|
1629
1683
|
args: [{
|
|
1630
1684
|
selector: '[dbxActionEnforceModified]',
|
|
1631
1685
|
standalone: true
|
|
1632
1686
|
}]
|
|
1633
|
-
}] });
|
|
1687
|
+
}], ctorParameters: () => [], propDecorators: { enabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "dbxActionEnforceModified", required: false }] }] } });
|
|
1634
1688
|
|
|
1635
1689
|
/**
|
|
1636
1690
|
* Utility class that handles trigger events to retrieve a value.
|
|
@@ -1697,11 +1751,9 @@ class AbstractDbxActionValueGetterDirective {
|
|
|
1697
1751
|
_triggerInstance = new DbxActionValueGetterInstance({
|
|
1698
1752
|
source: this.source
|
|
1699
1753
|
});
|
|
1700
|
-
|
|
1754
|
+
constructor() {
|
|
1701
1755
|
this._triggerInstance.init();
|
|
1702
|
-
|
|
1703
|
-
ngOnDestroy() {
|
|
1704
|
-
this._triggerInstance.destroy();
|
|
1756
|
+
clean(this._triggerInstance);
|
|
1705
1757
|
}
|
|
1706
1758
|
setValueGetterFunction(valueGetterFunction) {
|
|
1707
1759
|
this._triggerInstance.setValueGetterFunction(valueGetterFunction);
|
|
@@ -1724,12 +1776,12 @@ class AbstractDbxActionValueGetterDirective {
|
|
|
1724
1776
|
});
|
|
1725
1777
|
});
|
|
1726
1778
|
}
|
|
1727
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1728
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1779
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AbstractDbxActionValueGetterDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1780
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: AbstractDbxActionValueGetterDirective, isStandalone: true, ngImport: i0 });
|
|
1729
1781
|
}
|
|
1730
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1782
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AbstractDbxActionValueGetterDirective, decorators: [{
|
|
1731
1783
|
type: Directive
|
|
1732
|
-
}] });
|
|
1784
|
+
}], ctorParameters: () => [] });
|
|
1733
1785
|
/**
|
|
1734
1786
|
* Action directive that uses a getter function instead and waits for the trigger to be called before calling the function.
|
|
1735
1787
|
*
|
|
@@ -1737,9 +1789,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
1737
1789
|
* The DbxActionValueDirective always pipes the latests value while waiting for a trigger, and does not allow using a getter.
|
|
1738
1790
|
*/
|
|
1739
1791
|
class DbxActionValueTriggerDirective extends AbstractDbxActionValueGetterDirective {
|
|
1740
|
-
dbxActionValueGetter = input();
|
|
1741
|
-
dbxActionValueGetterIsModified = input();
|
|
1742
|
-
dbxActionValueGetterIsEqual = input();
|
|
1792
|
+
dbxActionValueGetter = input(...(ngDevMode ? [undefined, { debugName: "dbxActionValueGetter" }] : []));
|
|
1793
|
+
dbxActionValueGetterIsModified = input(...(ngDevMode ? [undefined, { debugName: "dbxActionValueGetterIsModified" }] : []));
|
|
1794
|
+
dbxActionValueGetterIsEqual = input(...(ngDevMode ? [undefined, { debugName: "dbxActionValueGetterIsEqual" }] : []));
|
|
1743
1795
|
constructor() {
|
|
1744
1796
|
super();
|
|
1745
1797
|
this.configureInputs({
|
|
@@ -1748,28 +1800,26 @@ class DbxActionValueTriggerDirective extends AbstractDbxActionValueGetterDirecti
|
|
|
1748
1800
|
isEqualSignal: this.dbxActionValueGetterIsEqual
|
|
1749
1801
|
});
|
|
1750
1802
|
}
|
|
1751
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1752
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
1803
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionValueTriggerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1804
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: DbxActionValueTriggerDirective, isStandalone: true, selector: "[dbxActionValueGetter]", inputs: { dbxActionValueGetter: { classPropertyName: "dbxActionValueGetter", publicName: "dbxActionValueGetter", isSignal: true, isRequired: false, transformFunction: null }, dbxActionValueGetterIsModified: { classPropertyName: "dbxActionValueGetterIsModified", publicName: "dbxActionValueGetterIsModified", isSignal: true, isRequired: false, transformFunction: null }, dbxActionValueGetterIsEqual: { classPropertyName: "dbxActionValueGetterIsEqual", publicName: "dbxActionValueGetterIsEqual", isSignal: true, isRequired: false, transformFunction: null } }, exportAs: ["dbxActionValueGetter"], usesInheritance: true, ngImport: i0 });
|
|
1753
1805
|
}
|
|
1754
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1806
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionValueTriggerDirective, decorators: [{
|
|
1755
1807
|
type: Directive,
|
|
1756
1808
|
args: [{
|
|
1757
1809
|
exportAs: 'dbxActionValueGetter',
|
|
1758
1810
|
selector: '[dbxActionValueGetter]',
|
|
1759
1811
|
standalone: true
|
|
1760
1812
|
}]
|
|
1761
|
-
}], ctorParameters: () => [] });
|
|
1813
|
+
}], ctorParameters: () => [], propDecorators: { dbxActionValueGetter: [{ type: i0.Input, args: [{ isSignal: true, alias: "dbxActionValueGetter", required: false }] }], dbxActionValueGetterIsModified: [{ type: i0.Input, args: [{ isSignal: true, alias: "dbxActionValueGetterIsModified", required: false }] }], dbxActionValueGetterIsEqual: [{ type: i0.Input, args: [{ isSignal: true, alias: "dbxActionValueGetterIsEqual", required: false }] }] } });
|
|
1762
1814
|
|
|
1763
1815
|
/**
|
|
1764
1816
|
* Directive that watches a value observable for changes and sets the new value and modified states as necessary.
|
|
1765
1817
|
*/
|
|
1766
1818
|
class DbxActionValueStreamDirective {
|
|
1767
1819
|
source = inject((DbxActionContextStoreSourceInstance), { host: true });
|
|
1768
|
-
dbxActionValueStream = input(EMPTY);
|
|
1769
|
-
dbxActionValueStreamIsEqualValue = input();
|
|
1770
|
-
dbxActionValueStreamIsModifiedValue = input();
|
|
1771
|
-
_modifiedSub = new SubscriptionObject();
|
|
1772
|
-
_triggerSub = new SubscriptionObject();
|
|
1820
|
+
dbxActionValueStream = input(EMPTY, ...(ngDevMode ? [{ debugName: "dbxActionValueStream" }] : []));
|
|
1821
|
+
dbxActionValueStreamIsEqualValue = input(...(ngDevMode ? [undefined, { debugName: "dbxActionValueStreamIsEqualValue" }] : []));
|
|
1822
|
+
dbxActionValueStreamIsModifiedValue = input(...(ngDevMode ? [undefined, { debugName: "dbxActionValueStreamIsModifiedValue" }] : []));
|
|
1773
1823
|
isModifiedFunction$ = makeIsModifiedFunctionObservable({
|
|
1774
1824
|
isModified: toObservable(this.dbxActionValueStreamIsModifiedValue),
|
|
1775
1825
|
isEqual: toObservable(this.dbxActionValueStreamIsEqualValue)
|
|
@@ -1784,35 +1834,35 @@ class DbxActionValueStreamDirective {
|
|
|
1784
1834
|
}
|
|
1785
1835
|
return result;
|
|
1786
1836
|
}), shareReplay(1))));
|
|
1787
|
-
|
|
1837
|
+
constructor() {
|
|
1788
1838
|
// Update isModified on source
|
|
1789
|
-
|
|
1790
|
-
this.source.
|
|
1839
|
+
cleanSubscriptionWithLockSet({
|
|
1840
|
+
lockSet: this.source.lockSet,
|
|
1841
|
+
sub: this.modifiedValue$.subscribe(([isModified]) => {
|
|
1842
|
+
this.source.setIsModified(isModified);
|
|
1843
|
+
})
|
|
1791
1844
|
});
|
|
1792
1845
|
// Set the value on triggers.
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
this.source.lockSet.onNextUnlock(() => {
|
|
1802
|
-
this._modifiedSub.destroy();
|
|
1803
|
-
this._triggerSub.destroy();
|
|
1846
|
+
cleanSubscriptionWithLockSet({
|
|
1847
|
+
lockSet: this.source.lockSet,
|
|
1848
|
+
sub: this.source.triggered$.pipe(switchMap(() => this.modifiedValue$)).subscribe(([isModified, value]) => {
|
|
1849
|
+
// only mark ready once modified
|
|
1850
|
+
if (isModified) {
|
|
1851
|
+
this.source.readyValue(value);
|
|
1852
|
+
}
|
|
1853
|
+
})
|
|
1804
1854
|
});
|
|
1805
1855
|
}
|
|
1806
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1807
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
1856
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionValueStreamDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1857
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: DbxActionValueStreamDirective, isStandalone: true, selector: "[dbxActionValueStream]", inputs: { dbxActionValueStream: { classPropertyName: "dbxActionValueStream", publicName: "dbxActionValueStream", isSignal: true, isRequired: false, transformFunction: null }, dbxActionValueStreamIsEqualValue: { classPropertyName: "dbxActionValueStreamIsEqualValue", publicName: "dbxActionValueStreamIsEqualValue", isSignal: true, isRequired: false, transformFunction: null }, dbxActionValueStreamIsModifiedValue: { classPropertyName: "dbxActionValueStreamIsModifiedValue", publicName: "dbxActionValueStreamIsModifiedValue", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
1808
1858
|
}
|
|
1809
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1859
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionValueStreamDirective, decorators: [{
|
|
1810
1860
|
type: Directive,
|
|
1811
1861
|
args: [{
|
|
1812
1862
|
selector: '[dbxActionValueStream]',
|
|
1813
1863
|
standalone: true
|
|
1814
1864
|
}]
|
|
1815
|
-
}] });
|
|
1865
|
+
}], ctorParameters: () => [], propDecorators: { dbxActionValueStream: [{ type: i0.Input, args: [{ isSignal: true, alias: "dbxActionValueStream", required: false }] }], dbxActionValueStreamIsEqualValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "dbxActionValueStreamIsEqualValue", required: false }] }], dbxActionValueStreamIsModifiedValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "dbxActionValueStreamIsModifiedValue", required: false }] }] } });
|
|
1816
1866
|
|
|
1817
1867
|
/**
|
|
1818
1868
|
* Structural directive that displays the content when the store has been triggered.
|
|
@@ -1821,7 +1871,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
1821
1871
|
*/
|
|
1822
1872
|
class DbxActionTriggeredDirective extends AbstractIfDirective {
|
|
1823
1873
|
_store = inject(DbxActionContextStoreSourceInstance);
|
|
1824
|
-
hideAfter = input(undefined, { alias: 'dbxActionTriggered', transform: transformEmptyStringInputToUndefined });
|
|
1874
|
+
hideAfter = input(undefined, { ...(ngDevMode ? { debugName: "hideAfter" } : {}), alias: 'dbxActionTriggered', transform: transformEmptyStringInputToUndefined });
|
|
1825
1875
|
show$ = this._store.triggered$.pipe(exhaustMap((triggered) => {
|
|
1826
1876
|
if (triggered) {
|
|
1827
1877
|
return emitDelayObs(true, false, this.hideAfter());
|
|
@@ -1830,18 +1880,18 @@ class DbxActionTriggeredDirective extends AbstractIfDirective {
|
|
|
1830
1880
|
return of(false);
|
|
1831
1881
|
}
|
|
1832
1882
|
}), shareReplay(1));
|
|
1833
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1834
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
1883
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionTriggeredDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1884
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: DbxActionTriggeredDirective, isStandalone: true, selector: "[dbxActionTriggered]", inputs: { hideAfter: { classPropertyName: "hideAfter", publicName: "dbxActionTriggered", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0 });
|
|
1835
1885
|
}
|
|
1836
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1886
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionTriggeredDirective, decorators: [{
|
|
1837
1887
|
type: Directive,
|
|
1838
1888
|
args: [{
|
|
1839
1889
|
selector: '[dbxActionTriggered]',
|
|
1840
1890
|
standalone: true
|
|
1841
1891
|
}]
|
|
1842
|
-
}] });
|
|
1892
|
+
}], propDecorators: { hideAfter: [{ type: i0.Input, args: [{ isSignal: true, alias: "dbxActionTriggered", required: false }] }] } });
|
|
1843
1893
|
|
|
1844
|
-
const importsAndExports$
|
|
1894
|
+
const importsAndExports$2 = [
|
|
1845
1895
|
DbxActionDirective,
|
|
1846
1896
|
DbxActionContextMapDirective,
|
|
1847
1897
|
DbxActionFromMapDirective,
|
|
@@ -1869,8 +1919,8 @@ const importsAndExports$8 = [
|
|
|
1869
1919
|
* Contains all base DbxAction components.
|
|
1870
1920
|
*/
|
|
1871
1921
|
class DbxCoreActionModule {
|
|
1872
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1873
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1922
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxCoreActionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1923
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.0", ngImport: i0, type: DbxCoreActionModule, imports: [DbxActionDirective,
|
|
1874
1924
|
DbxActionContextMapDirective,
|
|
1875
1925
|
DbxActionFromMapDirective,
|
|
1876
1926
|
DbxActionMapSourceDirective,
|
|
@@ -1913,13 +1963,13 @@ class DbxCoreActionModule {
|
|
|
1913
1963
|
DbxActionSuccessHandlerDirective,
|
|
1914
1964
|
DbxActionErrorHandlerDirective,
|
|
1915
1965
|
DbxActionIsWorkingDirective] });
|
|
1916
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1966
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxCoreActionModule });
|
|
1917
1967
|
}
|
|
1918
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1968
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxCoreActionModule, decorators: [{
|
|
1919
1969
|
type: NgModule,
|
|
1920
1970
|
args: [{
|
|
1921
|
-
imports: importsAndExports$
|
|
1922
|
-
exports: importsAndExports$
|
|
1971
|
+
imports: importsAndExports$2,
|
|
1972
|
+
exports: importsAndExports$2
|
|
1923
1973
|
}]
|
|
1924
1974
|
}] });
|
|
1925
1975
|
|
|
@@ -2492,10 +2542,10 @@ class DbxAppAuthRouterService {
|
|
|
2492
2542
|
goToApp() {
|
|
2493
2543
|
return goWithRouter(this.dbxRouterService)(this.dbxAppAuthRoutes.appRef);
|
|
2494
2544
|
}
|
|
2495
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2496
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2545
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxAppAuthRouterService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2546
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxAppAuthRouterService, providedIn: 'root' });
|
|
2497
2547
|
}
|
|
2498
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2548
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxAppAuthRouterService, decorators: [{
|
|
2499
2549
|
type: Injectable,
|
|
2500
2550
|
args: [{
|
|
2501
2551
|
providedIn: 'root'
|
|
@@ -2524,10 +2574,10 @@ class DbxAppAuthRouterEffects extends AbstractOnDbxAppContextStateEffects {
|
|
|
2524
2574
|
* Effect to redirect to the app when login occurs.
|
|
2525
2575
|
*/
|
|
2526
2576
|
redirectToOnboardOnLogIn = createEffect(() => this.actions$.pipe(ofType(loggedIn), filter(() => this.dbxAppAuthRouterService.isAuthRouterEffectsEnabled), exhaustMap(() => this.dbxAppAuthRouterService.goToApp())), { dispatch: false });
|
|
2527
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2528
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2577
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxAppAuthRouterEffects, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2578
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxAppAuthRouterEffects });
|
|
2529
2579
|
}
|
|
2530
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2580
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxAppAuthRouterEffects, decorators: [{
|
|
2531
2581
|
type: Injectable
|
|
2532
2582
|
}], ctorParameters: () => [] });
|
|
2533
2583
|
|
|
@@ -2596,289 +2646,261 @@ function authRolesSetContainsNoRolesFrom(roles) {
|
|
|
2596
2646
|
return setContainsNoValueFrom(roles);
|
|
2597
2647
|
}
|
|
2598
2648
|
|
|
2649
|
+
/**
|
|
2650
|
+
* Set of ngrx effects that repeat events from DbxAuthService.
|
|
2651
|
+
*/
|
|
2652
|
+
class DbxAppAuthEffects {
|
|
2653
|
+
dbxAuthService = inject(DbxAuthService);
|
|
2654
|
+
actions$ = inject(Actions);
|
|
2655
|
+
store = inject((Store));
|
|
2656
|
+
// MARK: Auth
|
|
2657
|
+
emitLoggedIn = createEffect(() => this.dbxAuthService.onLogIn$.pipe(map(() => loggedIn())));
|
|
2658
|
+
emitLoggedOut = createEffect(() => this.dbxAuthService.onLogOut$.pipe(map(() => loggedOut())));
|
|
2659
|
+
forwardLogoutToAuthService = createEffect(() => this.actions$.pipe(ofType(logout), tap(() => {
|
|
2660
|
+
// Perform the logout
|
|
2661
|
+
this.dbxAuthService.logOut();
|
|
2662
|
+
})), { dispatch: false });
|
|
2663
|
+
// MARK: Auth
|
|
2664
|
+
setUserIdentifier = createEffect(() => this.dbxAuthService.userIdentifier$.pipe(map((id) => setUserIdentifier({ id }))));
|
|
2665
|
+
setUserState = createEffect(() => this.dbxAuthService.authUserState$.pipe(map((state) => setUserState({ state }))));
|
|
2666
|
+
setUserRoles = createEffect(() => this.dbxAuthService.authRoles$.pipe(map((roles) => setUserRoles({ roles: Array.from(roles ?? []) }))));
|
|
2667
|
+
setUserIsOnboarded = createEffect(() => this.dbxAuthService.isOnboarded$.pipe(map((isOnboarded) => setUserIsOnboarded({ isOnboarded }))));
|
|
2668
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxAppAuthEffects, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2669
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxAppAuthEffects });
|
|
2670
|
+
}
|
|
2671
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxAppAuthEffects, decorators: [{
|
|
2672
|
+
type: Injectable
|
|
2673
|
+
}] });
|
|
2674
|
+
|
|
2675
|
+
/**
|
|
2676
|
+
* Creates EnvironmentProviders for providing the DbxAppAuth state and effects.
|
|
2677
|
+
*
|
|
2678
|
+
* @returns EnvironmentProviders
|
|
2679
|
+
*/
|
|
2680
|
+
function provideDbxAppAuthState() {
|
|
2681
|
+
return makeEnvironmentProviders([provideState(featureKey, reducers), provideEffects(DbxAppAuthEffects)]);
|
|
2682
|
+
}
|
|
2683
|
+
|
|
2684
|
+
/**
|
|
2685
|
+
* The "all-in-one" provider for an app's dbx-core auth providers.
|
|
2686
|
+
*
|
|
2687
|
+
* @param config Configuration
|
|
2688
|
+
* @returns EnvironmentProviders
|
|
2689
|
+
*/
|
|
2690
|
+
function provideDbxAppAuth(config) {
|
|
2691
|
+
const { dbxAppAuthRoutes, activeRoutesToApplyEffects } = config;
|
|
2692
|
+
const providers = [provideDbxAppAuthState(), provideDbxAppAuthRouter({ dbxAppAuthRoutes }), provideDbxAppAuthRouterState({ activeRoutesToApplyEffects })];
|
|
2693
|
+
return makeEnvironmentProviders(providers);
|
|
2694
|
+
}
|
|
2695
|
+
|
|
2599
2696
|
/**
|
|
2600
2697
|
* Structural decorator directive similar to ngIf that embeds content if the current auth user has any of the target role(s).
|
|
2601
2698
|
*/
|
|
2602
2699
|
class DbxAuthHasAnyRoleDirective extends AbstractIfDirective {
|
|
2603
2700
|
_authService = inject(DbxAuthService);
|
|
2604
|
-
targetRoles = input(undefined, { alias: 'dbxAuthHasAnyRole' });
|
|
2701
|
+
targetRoles = input(undefined, { ...(ngDevMode ? { debugName: "targetRoles" } : {}), alias: 'dbxAuthHasAnyRole' });
|
|
2605
2702
|
targetRoles$ = toObservable(this.targetRoles);
|
|
2606
2703
|
show$ = this._authService.authRoles$.pipe(authRolesSetContainsAnyRoleFrom(this.targetRoles$));
|
|
2607
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2608
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
2704
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxAuthHasAnyRoleDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
2705
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: DbxAuthHasAnyRoleDirective, isStandalone: true, selector: "[dbxAuthHasAnyRole]", inputs: { targetRoles: { classPropertyName: "targetRoles", publicName: "dbxAuthHasAnyRole", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0 });
|
|
2609
2706
|
}
|
|
2610
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2707
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxAuthHasAnyRoleDirective, decorators: [{
|
|
2611
2708
|
type: Directive,
|
|
2612
2709
|
args: [{
|
|
2613
2710
|
selector: '[dbxAuthHasAnyRole]',
|
|
2614
2711
|
standalone: true
|
|
2615
2712
|
}]
|
|
2616
|
-
}] });
|
|
2713
|
+
}], propDecorators: { targetRoles: [{ type: i0.Input, args: [{ isSignal: true, alias: "dbxAuthHasAnyRole", required: false }] }] } });
|
|
2617
2714
|
|
|
2618
2715
|
/**
|
|
2619
2716
|
* Structural decorator directive similar to ngIf that embeds content if the current auth user has all of the target role(s).
|
|
2620
2717
|
*/
|
|
2621
2718
|
class DbxAuthHasRolesDirective extends AbstractIfDirective {
|
|
2622
2719
|
_authService = inject(DbxAuthService);
|
|
2623
|
-
targetRoles = input(undefined, { alias: 'dbxAuthHasRoles' });
|
|
2720
|
+
targetRoles = input(undefined, { ...(ngDevMode ? { debugName: "targetRoles" } : {}), alias: 'dbxAuthHasRoles' });
|
|
2624
2721
|
targetRoles$ = toObservable(this.targetRoles);
|
|
2625
2722
|
show$ = this._authService.authRoles$.pipe(authRolesSetContainsAllRolesFrom(this.targetRoles$));
|
|
2626
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2627
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
2723
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxAuthHasRolesDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
2724
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: DbxAuthHasRolesDirective, isStandalone: true, selector: "[dbxAuthHasRoles]", inputs: { targetRoles: { classPropertyName: "targetRoles", publicName: "dbxAuthHasRoles", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0 });
|
|
2628
2725
|
}
|
|
2629
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2726
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxAuthHasRolesDirective, decorators: [{
|
|
2630
2727
|
type: Directive,
|
|
2631
2728
|
args: [{
|
|
2632
2729
|
selector: '[dbxAuthHasRoles]',
|
|
2633
2730
|
standalone: true
|
|
2634
2731
|
}]
|
|
2635
|
-
}] });
|
|
2732
|
+
}], propDecorators: { targetRoles: [{ type: i0.Input, args: [{ isSignal: true, alias: "dbxAuthHasRoles", required: false }] }] } });
|
|
2636
2733
|
|
|
2637
2734
|
/**
|
|
2638
2735
|
* Structural decorator directive similar to ngIf that embeds content if the current auth user has none of the target role(s).
|
|
2639
2736
|
*/
|
|
2640
2737
|
class DbxAuthNotAnyRoleDirective extends AbstractIfDirective {
|
|
2641
2738
|
_authService = inject(DbxAuthService);
|
|
2642
|
-
targetRoles = input(undefined, { alias: 'dbxAuthNotAnyRole' });
|
|
2739
|
+
targetRoles = input(undefined, { ...(ngDevMode ? { debugName: "targetRoles" } : {}), alias: 'dbxAuthNotAnyRole' });
|
|
2643
2740
|
targetRoles$ = toObservable(this.targetRoles);
|
|
2644
2741
|
show$ = this._authService.authRoles$.pipe(authRolesSetContainsNoRolesFrom(this.targetRoles$));
|
|
2645
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2646
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
2742
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxAuthNotAnyRoleDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
2743
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: DbxAuthNotAnyRoleDirective, isStandalone: true, selector: "[dbxAuthNotAnyRole]", inputs: { targetRoles: { classPropertyName: "targetRoles", publicName: "dbxAuthNotAnyRole", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0 });
|
|
2647
2744
|
}
|
|
2648
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2745
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxAuthNotAnyRoleDirective, decorators: [{
|
|
2649
2746
|
type: Directive,
|
|
2650
2747
|
args: [{
|
|
2651
2748
|
selector: '[dbxAuthNotAnyRole]',
|
|
2652
2749
|
standalone: true
|
|
2653
2750
|
}]
|
|
2654
|
-
}] });
|
|
2751
|
+
}], propDecorators: { targetRoles: [{ type: i0.Input, args: [{ isSignal: true, alias: "dbxAuthNotAnyRole", required: false }] }] } });
|
|
2655
2752
|
|
|
2656
2753
|
/**
|
|
2657
|
-
*
|
|
2658
|
-
*
|
|
2659
|
-
* @see DbxAuthHasRolesDirective
|
|
2660
|
-
* @see DbxAuthHasAnyRoleDirective
|
|
2661
|
-
* @see DbxAuthNotAnyRoleDirective
|
|
2754
|
+
* State for accessing the app's DbxAppAuthState defined within the DbxAppAuthFullState for the ngrx store.
|
|
2662
2755
|
*/
|
|
2663
|
-
class
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
static
|
|
2756
|
+
class DbxAppAuthStateService {
|
|
2757
|
+
store = inject((Store));
|
|
2758
|
+
authStateUser$ = this.store.select(selectDbxAppAuthUser);
|
|
2759
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxAppAuthStateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2760
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxAppAuthStateService, providedIn: 'root' });
|
|
2667
2761
|
}
|
|
2668
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2669
|
-
type:
|
|
2762
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxAppAuthStateService, decorators: [{
|
|
2763
|
+
type: Injectable,
|
|
2670
2764
|
args: [{
|
|
2671
|
-
|
|
2672
|
-
exports: [DbxAuthHasRolesDirective, DbxAuthHasAnyRoleDirective, DbxAuthNotAnyRoleDirective]
|
|
2765
|
+
providedIn: 'root'
|
|
2673
2766
|
}]
|
|
2674
2767
|
}] });
|
|
2675
2768
|
|
|
2769
|
+
class DbxButton {
|
|
2770
|
+
}
|
|
2771
|
+
function provideDbxButton(sourceType) {
|
|
2772
|
+
return [
|
|
2773
|
+
{
|
|
2774
|
+
provide: DbxButton,
|
|
2775
|
+
useExisting: forwardRef(() => sourceType)
|
|
2776
|
+
}
|
|
2777
|
+
];
|
|
2778
|
+
}
|
|
2676
2779
|
/**
|
|
2677
|
-
*
|
|
2780
|
+
* Returns the DbxButtonDisplayType given the input content.
|
|
2781
|
+
*
|
|
2782
|
+
* @param content
|
|
2783
|
+
* @returns
|
|
2678
2784
|
*/
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
actions$ = inject(Actions);
|
|
2682
|
-
store = inject((Store));
|
|
2683
|
-
// MARK: Auth
|
|
2684
|
-
emitLoggedIn = createEffect(() => this.dbxAuthService.onLogIn$.pipe(map(() => loggedIn())));
|
|
2685
|
-
emitLoggedOut = createEffect(() => this.dbxAuthService.onLogOut$.pipe(map(() => loggedOut())));
|
|
2686
|
-
forwardLogoutToAuthService = createEffect(() => this.actions$.pipe(ofType(logout), tap(() => {
|
|
2687
|
-
// Perform the logout
|
|
2688
|
-
this.dbxAuthService.logOut();
|
|
2689
|
-
})), { dispatch: false });
|
|
2690
|
-
// MARK: Auth
|
|
2691
|
-
setUserIdentifier = createEffect(() => this.dbxAuthService.userIdentifier$.pipe(map((id) => setUserIdentifier({ id }))));
|
|
2692
|
-
setUserState = createEffect(() => this.dbxAuthService.authUserState$.pipe(map((state) => setUserState({ state }))));
|
|
2693
|
-
setUserRoles = createEffect(() => this.dbxAuthService.authRoles$.pipe(map((roles) => setUserRoles({ roles: Array.from(roles ?? []) }))));
|
|
2694
|
-
setUserIsOnboarded = createEffect(() => this.dbxAuthService.isOnboarded$.pipe(map((isOnboarded) => setUserIsOnboarded({ isOnboarded }))));
|
|
2695
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxAppAuthEffects, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2696
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxAppAuthEffects });
|
|
2697
|
-
}
|
|
2698
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxAppAuthEffects, decorators: [{
|
|
2699
|
-
type: Injectable
|
|
2700
|
-
}] });
|
|
2701
|
-
|
|
2702
|
-
/**
|
|
2703
|
-
* Creates EnvironmentProviders for providing the DbxAppAuth state and effects.
|
|
2704
|
-
*
|
|
2705
|
-
* @returns EnvironmentProviders
|
|
2706
|
-
*/
|
|
2707
|
-
function provideDbxAppAuthState() {
|
|
2708
|
-
return makeEnvironmentProviders([provideState(featureKey, reducers), provideEffects(DbxAppAuthEffects)]);
|
|
2709
|
-
}
|
|
2710
|
-
|
|
2711
|
-
/**
|
|
2712
|
-
* The "all-in-one" provider for an app's dbx-core auth providers.
|
|
2713
|
-
*
|
|
2714
|
-
* @param config Configuration
|
|
2715
|
-
* @returns EnvironmentProviders
|
|
2716
|
-
*/
|
|
2717
|
-
function provideDbxAppAuth(config) {
|
|
2718
|
-
const { dbxAppAuthRoutes, activeRoutesToApplyEffects } = config;
|
|
2719
|
-
const providers = [provideDbxAppAuthState(), provideDbxAppAuthRouter({ dbxAppAuthRoutes }), provideDbxAppAuthRouterState({ activeRoutesToApplyEffects })];
|
|
2720
|
-
return makeEnvironmentProviders(providers);
|
|
2721
|
-
}
|
|
2722
|
-
|
|
2723
|
-
/**
|
|
2724
|
-
* State for accessing the app's DbxAppAuthState defined within the DbxAppAuthFullState for the ngrx store.
|
|
2725
|
-
*/
|
|
2726
|
-
class DbxAppAuthStateService {
|
|
2727
|
-
store = inject((Store));
|
|
2728
|
-
authStateUser$ = this.store.select(selectDbxAppAuthUser);
|
|
2729
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxAppAuthStateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2730
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxAppAuthStateService, providedIn: 'root' });
|
|
2731
|
-
}
|
|
2732
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxAppAuthStateService, decorators: [{
|
|
2733
|
-
type: Injectable,
|
|
2734
|
-
args: [{
|
|
2735
|
-
providedIn: 'root'
|
|
2736
|
-
}]
|
|
2737
|
-
}] });
|
|
2738
|
-
|
|
2739
|
-
class DbxButton {
|
|
2740
|
-
}
|
|
2741
|
-
function provideDbxButton(sourceType) {
|
|
2742
|
-
return [
|
|
2743
|
-
{
|
|
2744
|
-
provide: DbxButton,
|
|
2745
|
-
useExisting: forwardRef(() => sourceType)
|
|
2746
|
-
}
|
|
2747
|
-
];
|
|
2748
|
-
}
|
|
2749
|
-
/**
|
|
2750
|
-
* Returns the DbxButtonDisplayType given the input content.
|
|
2751
|
-
*
|
|
2752
|
-
* @param content
|
|
2753
|
-
* @returns
|
|
2754
|
-
*/
|
|
2755
|
-
function dbxButtonDisplayType(content) {
|
|
2756
|
-
return !content.text && content.icon ? 'icon_button' : 'text_button';
|
|
2785
|
+
function dbxButtonDisplayType(content) {
|
|
2786
|
+
return !content.text && content.icon ? 'icon_button' : 'text_button';
|
|
2757
2787
|
}
|
|
2758
2788
|
|
|
2759
2789
|
/**
|
|
2760
2790
|
* Context used for linking a button to an ActionContext and only look for triggers.
|
|
2761
2791
|
*/
|
|
2762
|
-
class DbxActionButtonTriggerDirective
|
|
2792
|
+
class DbxActionButtonTriggerDirective {
|
|
2763
2793
|
dbxButton = inject(DbxButton, { host: true });
|
|
2764
2794
|
source = inject(DbxActionContextStoreSourceInstance);
|
|
2765
|
-
|
|
2766
|
-
this.
|
|
2795
|
+
constructor() {
|
|
2796
|
+
cleanSubscription(this.dbxButton.clicked$.subscribe(() => {
|
|
2767
2797
|
this._buttonClicked();
|
|
2768
|
-
});
|
|
2798
|
+
}));
|
|
2769
2799
|
}
|
|
2770
2800
|
_buttonClicked() {
|
|
2771
2801
|
this.source.trigger();
|
|
2772
2802
|
}
|
|
2773
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2774
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2803
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionButtonTriggerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2804
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: DbxActionButtonTriggerDirective, isStandalone: true, selector: "[dbxActionButtonTrigger]", ngImport: i0 });
|
|
2775
2805
|
}
|
|
2776
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2806
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionButtonTriggerDirective, decorators: [{
|
|
2777
2807
|
type: Directive,
|
|
2778
2808
|
args: [{
|
|
2779
2809
|
selector: '[dbxActionButtonTrigger]',
|
|
2780
2810
|
standalone: true
|
|
2781
2811
|
}]
|
|
2782
|
-
}] });
|
|
2812
|
+
}], ctorParameters: () => [] });
|
|
2783
2813
|
|
|
2784
2814
|
/**
|
|
2785
2815
|
* Context used for linking a button to an ActionContext.
|
|
2786
2816
|
*/
|
|
2787
2817
|
class DbxActionButtonDirective extends DbxActionButtonTriggerDirective {
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
super.ngOnInit();
|
|
2792
|
-
this._workingSub.subscription = this.source.isWorkingOrWorkProgress$.subscribe((working) => {
|
|
2818
|
+
constructor() {
|
|
2819
|
+
super();
|
|
2820
|
+
cleanSubscription(this.source.isWorkingOrWorkProgress$.subscribe((working) => {
|
|
2793
2821
|
this.dbxButton.setWorking(working);
|
|
2794
|
-
});
|
|
2795
|
-
this.
|
|
2822
|
+
}));
|
|
2823
|
+
cleanSubscription(this.source.isDisabled$.subscribe((disabled) => {
|
|
2796
2824
|
this.dbxButton.setDisabled(disabled);
|
|
2797
|
-
});
|
|
2798
|
-
}
|
|
2799
|
-
ngOnDestroy() {
|
|
2800
|
-
super.ngOnDestroy();
|
|
2801
|
-
this._workingSub.destroy();
|
|
2802
|
-
this._disabledSub.destroy();
|
|
2825
|
+
}));
|
|
2803
2826
|
}
|
|
2804
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2805
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2827
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2828
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: DbxActionButtonDirective, isStandalone: true, selector: "[dbxActionButton]", usesInheritance: true, ngImport: i0 });
|
|
2806
2829
|
}
|
|
2807
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2830
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxActionButtonDirective, decorators: [{
|
|
2808
2831
|
type: Directive,
|
|
2809
2832
|
args: [{
|
|
2810
2833
|
selector: '[dbxActionButton]',
|
|
2811
2834
|
standalone: true
|
|
2812
2835
|
}]
|
|
2813
|
-
}] });
|
|
2836
|
+
}], ctorParameters: () => [] });
|
|
2814
2837
|
|
|
2815
2838
|
// MARK: Button Directives
|
|
2816
|
-
class DbxButtonSegueDirective
|
|
2839
|
+
class DbxButtonSegueDirective {
|
|
2817
2840
|
dbxButton = inject(DbxButton);
|
|
2818
2841
|
dbxRouterService = inject(DbxRouterService);
|
|
2819
|
-
segueRef = input(undefined, { alias: 'dbxButtonSegue' });
|
|
2842
|
+
segueRef = input(undefined, { ...(ngDevMode ? { debugName: "segueRef" } : {}), alias: 'dbxButtonSegue' });
|
|
2820
2843
|
constructor() {
|
|
2821
|
-
|
|
2822
|
-
this.sub = this.dbxButton.clicked$.subscribe(() => {
|
|
2844
|
+
cleanSubscription(() => this.dbxButton.clicked$.subscribe(() => {
|
|
2823
2845
|
const segueRef = this.segueRef();
|
|
2824
2846
|
if (segueRef) {
|
|
2825
2847
|
this.dbxRouterService.go(segueRef);
|
|
2826
2848
|
}
|
|
2827
|
-
});
|
|
2849
|
+
}));
|
|
2828
2850
|
}
|
|
2829
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2830
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
2851
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxButtonSegueDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2852
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: DbxButtonSegueDirective, isStandalone: true, selector: "[dbxButtonSegue]", inputs: { segueRef: { classPropertyName: "segueRef", publicName: "dbxButtonSegue", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
2831
2853
|
}
|
|
2832
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2854
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxButtonSegueDirective, decorators: [{
|
|
2833
2855
|
type: Directive,
|
|
2834
2856
|
args: [{
|
|
2835
2857
|
selector: '[dbxButtonSegue]',
|
|
2836
2858
|
standalone: true
|
|
2837
2859
|
}]
|
|
2838
|
-
}], ctorParameters: () => [] });
|
|
2860
|
+
}], ctorParameters: () => [], propDecorators: { segueRef: [{ type: i0.Input, args: [{ isSignal: true, alias: "dbxButtonSegue", required: false }] }] } });
|
|
2839
2861
|
|
|
2840
2862
|
/**
|
|
2841
2863
|
* Abstract button component.
|
|
2842
2864
|
*/
|
|
2843
|
-
class AbstractDbxButtonDirective
|
|
2865
|
+
class AbstractDbxButtonDirective {
|
|
2844
2866
|
/**
|
|
2845
2867
|
* Pre-interceptor button click.
|
|
2846
2868
|
*/
|
|
2847
|
-
_buttonClick = new Subject();
|
|
2848
|
-
_buttonInterceptor = new BehaviorSubject(undefined);
|
|
2869
|
+
_buttonClick = completeOnDestroy(new Subject());
|
|
2870
|
+
_buttonInterceptor = completeOnDestroy(new BehaviorSubject(undefined));
|
|
2849
2871
|
buttonClick = output();
|
|
2850
|
-
disabled = input(false, { transform: Boolean });
|
|
2851
|
-
working = input(false, { transform: (x) => (x == null ? false : x) });
|
|
2852
|
-
buttonDisplay = input(undefined);
|
|
2853
|
-
_disabledSignal = signal(undefined);
|
|
2854
|
-
_workingSignal = signal(undefined);
|
|
2855
|
-
_buttonDisplayContentSignal = signal(undefined);
|
|
2856
|
-
disabledSignal = computed(() => this._disabledSignal() ?? this.disabled());
|
|
2857
|
-
workingSignal = computed(() => this._workingSignal() ?? this.working());
|
|
2872
|
+
disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : {}), transform: Boolean });
|
|
2873
|
+
working = input(false, { ...(ngDevMode ? { debugName: "working" } : {}), transform: (x) => (x == null ? false : x) });
|
|
2874
|
+
buttonDisplay = input(undefined, ...(ngDevMode ? [{ debugName: "buttonDisplay" }] : []));
|
|
2875
|
+
_disabledSignal = signal(undefined, ...(ngDevMode ? [{ debugName: "_disabledSignal" }] : []));
|
|
2876
|
+
_workingSignal = signal(undefined, ...(ngDevMode ? [{ debugName: "_workingSignal" }] : []));
|
|
2877
|
+
_buttonDisplayContentSignal = signal(undefined, ...(ngDevMode ? [{ debugName: "_buttonDisplayContentSignal" }] : []));
|
|
2878
|
+
disabledSignal = computed(() => this._disabledSignal() ?? this.disabled(), ...(ngDevMode ? [{ debugName: "disabledSignal" }] : []));
|
|
2879
|
+
workingSignal = computed(() => this._workingSignal() ?? this.working(), ...(ngDevMode ? [{ debugName: "workingSignal" }] : []));
|
|
2858
2880
|
isWorkingSignal = computed(() => {
|
|
2859
2881
|
const working = this.workingSignal();
|
|
2860
2882
|
return isDefinedAndNotFalse(working);
|
|
2861
|
-
});
|
|
2862
|
-
icon = input();
|
|
2863
|
-
text = input();
|
|
2883
|
+
}, ...(ngDevMode ? [{ debugName: "isWorkingSignal" }] : []));
|
|
2884
|
+
icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : []));
|
|
2885
|
+
text = input(...(ngDevMode ? [undefined, { debugName: "text" }] : []));
|
|
2864
2886
|
buttonDisplayContentSignal = computed(() => {
|
|
2865
2887
|
const icon = this.icon();
|
|
2866
2888
|
const text = this.text();
|
|
2867
2889
|
const buttonDisplay = this.buttonDisplay();
|
|
2868
2890
|
const buttonDisplayContent = this._buttonDisplayContentSignal() ?? buttonDisplay;
|
|
2869
2891
|
return { icon: icon || buttonDisplayContent?.icon, text: text || buttonDisplayContent?.text };
|
|
2870
|
-
});
|
|
2892
|
+
}, ...(ngDevMode ? [{ debugName: "buttonDisplayContentSignal" }] : []));
|
|
2871
2893
|
buttonDisplayTypeSignal = computed(() => {
|
|
2872
2894
|
return dbxButtonDisplayType(this.buttonDisplayContentSignal());
|
|
2873
|
-
});
|
|
2874
|
-
iconSignal = computed(() => this.buttonDisplayContentSignal()?.icon);
|
|
2875
|
-
textSignal = computed(() => this.buttonDisplayContentSignal()?.text);
|
|
2895
|
+
}, ...(ngDevMode ? [{ debugName: "buttonDisplayTypeSignal" }] : []));
|
|
2896
|
+
iconSignal = computed(() => this.buttonDisplayContentSignal()?.icon, ...(ngDevMode ? [{ debugName: "iconSignal" }] : []));
|
|
2897
|
+
textSignal = computed(() => this.buttonDisplayContentSignal()?.text, ...(ngDevMode ? [{ debugName: "textSignal" }] : []));
|
|
2876
2898
|
disabled$ = toObservable(this.disabledSignal);
|
|
2877
2899
|
working$ = toObservable(this.workingSignal);
|
|
2878
2900
|
display$ = toObservable(this.buttonDisplayContentSignal);
|
|
2879
2901
|
clicked$ = outputToObservable(this.buttonClick);
|
|
2880
|
-
|
|
2881
|
-
this.
|
|
2902
|
+
constructor() {
|
|
2903
|
+
cleanSubscription(this._buttonClick
|
|
2882
2904
|
.pipe(switchMap(() => this._buttonInterceptor.pipe(switchMap((x) => {
|
|
2883
2905
|
if (x) {
|
|
2884
2906
|
return x.interceptButtonClick().pipe(first());
|
|
@@ -2890,12 +2912,7 @@ class AbstractDbxButtonDirective extends AbstractSubscriptionDirective {
|
|
|
2890
2912
|
)))
|
|
2891
2913
|
.subscribe(() => {
|
|
2892
2914
|
this._forceButtonClicked();
|
|
2893
|
-
});
|
|
2894
|
-
}
|
|
2895
|
-
ngOnDestroy() {
|
|
2896
|
-
super.ngOnDestroy();
|
|
2897
|
-
this._buttonClick.complete();
|
|
2898
|
-
this._buttonInterceptor.complete();
|
|
2915
|
+
}));
|
|
2899
2916
|
}
|
|
2900
2917
|
setDisabled(disabled) {
|
|
2901
2918
|
this._disabledSignal.set(disabled);
|
|
@@ -2926,21 +2943,21 @@ class AbstractDbxButtonDirective extends AbstractSubscriptionDirective {
|
|
|
2926
2943
|
_forceButtonClicked() {
|
|
2927
2944
|
this.buttonClick.emit();
|
|
2928
2945
|
}
|
|
2929
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2930
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
2946
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AbstractDbxButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2947
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: AbstractDbxButtonDirective, isStandalone: true, inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, working: { classPropertyName: "working", publicName: "working", isSignal: true, isRequired: false, transformFunction: null }, buttonDisplay: { classPropertyName: "buttonDisplay", publicName: "buttonDisplay", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { buttonClick: "buttonClick" }, ngImport: i0 });
|
|
2931
2948
|
}
|
|
2932
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2949
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AbstractDbxButtonDirective, decorators: [{
|
|
2933
2950
|
type: Directive
|
|
2934
|
-
}] });
|
|
2951
|
+
}], ctorParameters: () => [], propDecorators: { buttonClick: [{ type: i0.Output, args: ["buttonClick"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], working: [{ type: i0.Input, args: [{ isSignal: true, alias: "working", required: false }] }], buttonDisplay: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonDisplay", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }] } });
|
|
2935
2952
|
// MARK: Implementation
|
|
2936
2953
|
/**
|
|
2937
2954
|
* Provides an DbxButton directive.
|
|
2938
2955
|
*/
|
|
2939
2956
|
class DbxButtonDirective extends AbstractDbxButtonDirective {
|
|
2940
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2941
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2957
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxButtonDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
2958
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: DbxButtonDirective, isStandalone: true, selector: "[dbxButton]", providers: provideDbxButton(DbxButtonDirective), exportAs: ["dbxButton"], usesInheritance: true, ngImport: i0 });
|
|
2942
2959
|
}
|
|
2943
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2960
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxButtonDirective, decorators: [{
|
|
2944
2961
|
type: Directive,
|
|
2945
2962
|
args: [{
|
|
2946
2963
|
selector: '[dbxButton]',
|
|
@@ -2955,31 +2972,32 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
2955
2972
|
*
|
|
2956
2973
|
* It will be set working when the context is set loading.
|
|
2957
2974
|
*/
|
|
2958
|
-
class DbxLoadingButtonDirective
|
|
2975
|
+
class DbxLoadingButtonDirective {
|
|
2959
2976
|
dbxButton = inject(DbxButton, { host: true });
|
|
2960
|
-
context = input.required({ alias: 'dbxLoadingButton' });
|
|
2977
|
+
context = input.required({ ...(ngDevMode ? { debugName: "context" } : {}), alias: 'dbxLoadingButton' });
|
|
2961
2978
|
context$ = toObservable(this.context).pipe(maybeValueFromObservableOrValue(), distinctUntilChanged(), shareReplay(1));
|
|
2962
2979
|
contextSignal = toSignal(this.context$);
|
|
2980
|
+
_loadingEffectSub = cleanSubscription();
|
|
2963
2981
|
_loadingEffect = effect(() => {
|
|
2964
2982
|
const context = this.contextSignal();
|
|
2965
2983
|
let subscription;
|
|
2966
2984
|
if (context) {
|
|
2967
2985
|
subscription = context.stream$.subscribe((x) => this.dbxButton.setWorking(x.loading));
|
|
2968
2986
|
}
|
|
2969
|
-
this.
|
|
2970
|
-
});
|
|
2971
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2972
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
2987
|
+
this._loadingEffectSub.setSub(subscription);
|
|
2988
|
+
}, ...(ngDevMode ? [{ debugName: "_loadingEffect" }] : []));
|
|
2989
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxLoadingButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2990
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: DbxLoadingButtonDirective, isStandalone: true, selector: "[dbxLoadingButton]", inputs: { context: { classPropertyName: "context", publicName: "dbxLoadingButton", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 });
|
|
2973
2991
|
}
|
|
2974
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2992
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxLoadingButtonDirective, decorators: [{
|
|
2975
2993
|
type: Directive,
|
|
2976
2994
|
args: [{
|
|
2977
2995
|
selector: '[dbxLoadingButton]',
|
|
2978
2996
|
standalone: true
|
|
2979
2997
|
}]
|
|
2980
|
-
}] });
|
|
2998
|
+
}], propDecorators: { context: [{ type: i0.Input, args: [{ isSignal: true, alias: "dbxLoadingButton", required: true }] }] } });
|
|
2981
2999
|
|
|
2982
|
-
const importsAndExports$
|
|
3000
|
+
const importsAndExports$1 = [DbxButtonDirective, DbxLoadingButtonDirective, DbxActionButtonTriggerDirective, DbxActionButtonDirective, DbxButtonSegueDirective];
|
|
2983
3001
|
/**
|
|
2984
3002
|
* Exports the following directives:
|
|
2985
3003
|
* - DbxButtonDirective
|
|
@@ -2989,15 +3007,15 @@ const importsAndExports$7 = [DbxButtonDirective, DbxLoadingButtonDirective, DbxA
|
|
|
2989
3007
|
* - DbxButtonSegueDirective
|
|
2990
3008
|
*/
|
|
2991
3009
|
class DbxCoreButtonModule {
|
|
2992
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2993
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
2994
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3010
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxCoreButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3011
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.0", ngImport: i0, type: DbxCoreButtonModule, imports: [DbxButtonDirective, DbxLoadingButtonDirective, DbxActionButtonTriggerDirective, DbxActionButtonDirective, DbxButtonSegueDirective], exports: [DbxButtonDirective, DbxLoadingButtonDirective, DbxActionButtonTriggerDirective, DbxActionButtonDirective, DbxButtonSegueDirective] });
|
|
3012
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxCoreButtonModule });
|
|
2995
3013
|
}
|
|
2996
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3014
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxCoreButtonModule, decorators: [{
|
|
2997
3015
|
type: NgModule,
|
|
2998
3016
|
args: [{
|
|
2999
|
-
imports: importsAndExports$
|
|
3000
|
-
exports: importsAndExports$
|
|
3017
|
+
imports: importsAndExports$1,
|
|
3018
|
+
exports: importsAndExports$1
|
|
3001
3019
|
}]
|
|
3002
3020
|
}] });
|
|
3003
3021
|
|
|
@@ -3013,10 +3031,10 @@ class DbxAppContextService {
|
|
|
3013
3031
|
resetState() {
|
|
3014
3032
|
this.store.next(resetState());
|
|
3015
3033
|
}
|
|
3016
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3017
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3034
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxAppContextService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3035
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxAppContextService, providedIn: 'root' });
|
|
3018
3036
|
}
|
|
3019
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3037
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxAppContextService, decorators: [{
|
|
3020
3038
|
type: Injectable,
|
|
3021
3039
|
args: [{
|
|
3022
3040
|
providedIn: 'root'
|
|
@@ -3028,39 +3046,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
3028
3046
|
*/
|
|
3029
3047
|
class DbxAppContextStateDirective {
|
|
3030
3048
|
dbxAppContextStateService = inject(DbxAppContextService);
|
|
3031
|
-
state = input(undefined, { alias: 'dbxAppContextState' });
|
|
3049
|
+
state = input(undefined, { ...(ngDevMode ? { debugName: "state" } : {}), alias: 'dbxAppContextState' });
|
|
3032
3050
|
_stateEffect = effect(() => {
|
|
3033
3051
|
const state = this.state();
|
|
3034
3052
|
if (state != null) {
|
|
3035
3053
|
this.dbxAppContextStateService.setState(state);
|
|
3036
3054
|
}
|
|
3037
|
-
}, {
|
|
3038
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3039
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
3055
|
+
}, ...(ngDevMode ? [{ debugName: "_stateEffect" }] : []));
|
|
3056
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxAppContextStateDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
3057
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: DbxAppContextStateDirective, isStandalone: true, selector: "[dbxAppContextState]", inputs: { state: { classPropertyName: "state", publicName: "dbxAppContextState", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
3040
3058
|
}
|
|
3041
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3059
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxAppContextStateDirective, decorators: [{
|
|
3042
3060
|
type: Directive,
|
|
3043
3061
|
args: [{
|
|
3044
3062
|
selector: '[dbxAppContextState]',
|
|
3045
3063
|
standalone: true
|
|
3046
3064
|
}]
|
|
3047
|
-
}] });
|
|
3048
|
-
|
|
3049
|
-
/**
|
|
3050
|
-
* @deprecated Use provideDbxAppContextState() and import DbxAppContextStateDirective directly. DbxAppContextStateDirective is now standalone.
|
|
3051
|
-
*/
|
|
3052
|
-
class DbxAppContextStateModule {
|
|
3053
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxAppContextStateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3054
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: DbxAppContextStateModule, imports: [DbxAppContextStateDirective], exports: [DbxAppContextStateDirective] });
|
|
3055
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxAppContextStateModule });
|
|
3056
|
-
}
|
|
3057
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxAppContextStateModule, decorators: [{
|
|
3058
|
-
type: NgModule,
|
|
3059
|
-
args: [{
|
|
3060
|
-
imports: [DbxAppContextStateDirective],
|
|
3061
|
-
exports: [DbxAppContextStateDirective]
|
|
3062
|
-
}]
|
|
3063
|
-
}] });
|
|
3065
|
+
}], propDecorators: { state: [{ type: i0.Input, args: [{ isSignal: true, alias: "dbxAppContextState", required: false }] }] } });
|
|
3064
3066
|
|
|
3065
3067
|
/**
|
|
3066
3068
|
* Creates EnvironmentProviders for providing the DbxAppContext state.
|
|
@@ -3097,10 +3099,10 @@ class DbxAppEnviromentService {
|
|
|
3097
3099
|
getEnvironment() {
|
|
3098
3100
|
return this.environment;
|
|
3099
3101
|
}
|
|
3100
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3101
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3102
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxAppEnviromentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3103
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxAppEnviromentService });
|
|
3102
3104
|
}
|
|
3103
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3105
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxAppEnviromentService, decorators: [{
|
|
3104
3106
|
type: Injectable
|
|
3105
3107
|
}] });
|
|
3106
3108
|
|
|
@@ -3174,10 +3176,10 @@ function provideDbxAnchor(sourceType) {
|
|
|
3174
3176
|
* Abstract anchor directive.
|
|
3175
3177
|
*/
|
|
3176
3178
|
class AbstractDbxAnchorDirective {
|
|
3177
|
-
ref = model();
|
|
3178
|
-
anchor = model();
|
|
3179
|
-
disabled = model();
|
|
3180
|
-
selected = model();
|
|
3179
|
+
ref = model(...(ngDevMode ? [undefined, { debugName: "ref" }] : []));
|
|
3180
|
+
anchor = model(...(ngDevMode ? [undefined, { debugName: "anchor" }] : []));
|
|
3181
|
+
disabled = model(...(ngDevMode ? [undefined, { debugName: "disabled" }] : []));
|
|
3182
|
+
selected = model(...(ngDevMode ? [undefined, { debugName: "selected" }] : []));
|
|
3181
3183
|
anchorSignal = computed(() => {
|
|
3182
3184
|
const ref = this.ref();
|
|
3183
3185
|
const anchor = this.anchor();
|
|
@@ -3186,24 +3188,24 @@ class AbstractDbxAnchorDirective {
|
|
|
3186
3188
|
result = asSegueRef(ref);
|
|
3187
3189
|
}
|
|
3188
3190
|
return result;
|
|
3189
|
-
});
|
|
3191
|
+
}, ...(ngDevMode ? [{ debugName: "anchorSignal" }] : []));
|
|
3190
3192
|
selectedSignal = computed(() => {
|
|
3191
3193
|
const selected = this.selected();
|
|
3192
3194
|
const anchor = this.anchorSignal();
|
|
3193
3195
|
return selected || anchor?.selected;
|
|
3194
|
-
});
|
|
3196
|
+
}, ...(ngDevMode ? [{ debugName: "selectedSignal" }] : []));
|
|
3195
3197
|
typeSignal = computed(() => {
|
|
3196
3198
|
const anchor = this.anchorSignal();
|
|
3197
3199
|
const disabled = this.disabled();
|
|
3198
3200
|
return anchorTypeForAnchor(anchor, disabled);
|
|
3199
|
-
});
|
|
3201
|
+
}, ...(ngDevMode ? [{ debugName: "typeSignal" }] : []));
|
|
3200
3202
|
disabledSignal = computed(() => {
|
|
3201
3203
|
const disabled = this.disabled();
|
|
3202
3204
|
const anchor = this.anchorSignal();
|
|
3203
3205
|
return disabled || anchor?.disabled;
|
|
3204
|
-
});
|
|
3205
|
-
urlSignal = computed(() => this.anchorSignal()?.url);
|
|
3206
|
-
targetSignal = computed(() => this.anchorSignal()?.target);
|
|
3206
|
+
}, ...(ngDevMode ? [{ debugName: "disabledSignal" }] : []));
|
|
3207
|
+
urlSignal = computed(() => this.anchorSignal()?.url, ...(ngDevMode ? [{ debugName: "urlSignal" }] : []));
|
|
3208
|
+
targetSignal = computed(() => this.anchorSignal()?.target, ...(ngDevMode ? [{ debugName: "targetSignal" }] : []));
|
|
3207
3209
|
anchor$ = toObservable(this.anchorSignal);
|
|
3208
3210
|
disabled$ = toObservable(this.disabledSignal);
|
|
3209
3211
|
selected$ = toObservable(this.selectedSignal);
|
|
@@ -3221,12 +3223,12 @@ class AbstractDbxAnchorDirective {
|
|
|
3221
3223
|
setSelected(selected) {
|
|
3222
3224
|
this.selected.set(selected);
|
|
3223
3225
|
}
|
|
3224
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3225
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
3226
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AbstractDbxAnchorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
3227
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: AbstractDbxAnchorDirective, isStandalone: true, inputs: { ref: { classPropertyName: "ref", publicName: "ref", isSignal: true, isRequired: false, transformFunction: null }, anchor: { classPropertyName: "anchor", publicName: "anchor", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { ref: "refChange", anchor: "anchorChange", disabled: "disabledChange", selected: "selectedChange" }, ngImport: i0 });
|
|
3226
3228
|
}
|
|
3227
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3229
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AbstractDbxAnchorDirective, decorators: [{
|
|
3228
3230
|
type: Directive
|
|
3229
|
-
}] });
|
|
3231
|
+
}], propDecorators: { ref: [{ type: i0.Input, args: [{ isSignal: true, alias: "ref", required: false }] }, { type: i0.Output, args: ["refChange"] }], anchor: [{ type: i0.Input, args: [{ isSignal: true, alias: "anchor", required: false }] }, { type: i0.Output, args: ["anchorChange"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }, { type: i0.Output, args: ["disabledChange"] }], selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }, { type: i0.Output, args: ["selectedChange"] }] } });
|
|
3230
3232
|
|
|
3231
3233
|
function clickableUrlInNewTab(url) {
|
|
3232
3234
|
return {
|
|
@@ -3389,10 +3391,10 @@ class DbxAngularRouterService {
|
|
|
3389
3391
|
comparePrecision(a, b) {
|
|
3390
3392
|
return 0; // TODO!
|
|
3391
3393
|
}
|
|
3392
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3393
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3394
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxAngularRouterService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3395
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxAngularRouterService });
|
|
3394
3396
|
}
|
|
3395
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3397
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxAngularRouterService, decorators: [{
|
|
3396
3398
|
type: Injectable
|
|
3397
3399
|
}] });
|
|
3398
3400
|
|
|
@@ -3413,11 +3415,11 @@ class DbxCoreAngularRouterSegueModule {
|
|
|
3413
3415
|
]
|
|
3414
3416
|
};
|
|
3415
3417
|
}
|
|
3416
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3417
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
3418
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3418
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxCoreAngularRouterSegueModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3419
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.0", ngImport: i0, type: DbxCoreAngularRouterSegueModule });
|
|
3420
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxCoreAngularRouterSegueModule });
|
|
3419
3421
|
}
|
|
3420
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3422
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxCoreAngularRouterSegueModule, decorators: [{
|
|
3421
3423
|
type: NgModule,
|
|
3422
3424
|
args: [{}]
|
|
3423
3425
|
}] });
|
|
@@ -3502,42 +3504,13 @@ class DbxUIRouterService {
|
|
|
3502
3504
|
const active = exactly ? this.state.is(targetRef, refParams) : this.state.includes(targetRef, refParams);
|
|
3503
3505
|
return active;
|
|
3504
3506
|
}
|
|
3505
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3506
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3507
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxUIRouterService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3508
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxUIRouterService });
|
|
3507
3509
|
}
|
|
3508
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3510
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxUIRouterService, decorators: [{
|
|
3509
3511
|
type: Injectable
|
|
3510
3512
|
}], ctorParameters: () => [] });
|
|
3511
3513
|
|
|
3512
|
-
/**
|
|
3513
|
-
* @deprecated use provideDbxUIRouterService() instead.
|
|
3514
|
-
*/
|
|
3515
|
-
class DbxCoreUIRouterSegueModule {
|
|
3516
|
-
static forRoot() {
|
|
3517
|
-
return {
|
|
3518
|
-
ngModule: DbxCoreUIRouterSegueModule,
|
|
3519
|
-
providers: [
|
|
3520
|
-
DbxUIRouterService,
|
|
3521
|
-
{
|
|
3522
|
-
provide: DbxRouterService,
|
|
3523
|
-
useExisting: DbxUIRouterService
|
|
3524
|
-
},
|
|
3525
|
-
{
|
|
3526
|
-
provide: DbxRouterTransitionService,
|
|
3527
|
-
useExisting: DbxUIRouterService
|
|
3528
|
-
}
|
|
3529
|
-
]
|
|
3530
|
-
};
|
|
3531
|
-
}
|
|
3532
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxCoreUIRouterSegueModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3533
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: DbxCoreUIRouterSegueModule });
|
|
3534
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxCoreUIRouterSegueModule });
|
|
3535
|
-
}
|
|
3536
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxCoreUIRouterSegueModule, decorators: [{
|
|
3537
|
-
type: NgModule,
|
|
3538
|
-
args: [{}]
|
|
3539
|
-
}] });
|
|
3540
|
-
|
|
3541
3514
|
/**
|
|
3542
3515
|
* Provides a DbxUIRouterService and configures it to provide for DbxRouterService and DbxRouterTransitionService.
|
|
3543
3516
|
*
|
|
@@ -3616,10 +3589,10 @@ class AbstractTransitionDirective {
|
|
|
3616
3589
|
dbxRouterTransitionService = inject(DbxRouterTransitionService);
|
|
3617
3590
|
transitionSuccess$ = successTransition(this.dbxRouterTransitionService.transitions$);
|
|
3618
3591
|
initAndUpdateOnTransitionSuccess$ = this.transitionSuccess$.pipe(startWith(undefined));
|
|
3619
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3620
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
3592
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AbstractTransitionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
3593
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: AbstractTransitionDirective, isStandalone: true, ngImport: i0 });
|
|
3621
3594
|
}
|
|
3622
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3595
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AbstractTransitionDirective, decorators: [{
|
|
3623
3596
|
type: Directive
|
|
3624
3597
|
}] });
|
|
3625
3598
|
|
|
@@ -3627,15 +3600,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
3627
3600
|
* Abstract directive that listens to onSuccess transition events and runs a function.
|
|
3628
3601
|
*/
|
|
3629
3602
|
class AbstractTransitionWatcherDirective extends AbstractTransitionDirective {
|
|
3630
|
-
_transitionSub = new SubscriptionObject();
|
|
3631
3603
|
ngZone = inject(NgZone);
|
|
3632
|
-
|
|
3633
|
-
|
|
3604
|
+
constructor() {
|
|
3605
|
+
super();
|
|
3606
|
+
cleanSubscription(this.transitionSuccess$.subscribe(() => {
|
|
3634
3607
|
this.updateForSuccessfulTransition();
|
|
3635
|
-
});
|
|
3636
|
-
}
|
|
3637
|
-
ngOnDestroy() {
|
|
3638
|
-
this._transitionSub.destroy();
|
|
3608
|
+
}));
|
|
3639
3609
|
}
|
|
3640
3610
|
// MARK: Action
|
|
3641
3611
|
zoneUpdateForSuccessfulTransition() {
|
|
@@ -3643,12 +3613,12 @@ class AbstractTransitionWatcherDirective extends AbstractTransitionDirective {
|
|
|
3643
3613
|
// remove this function and replace, if necessary or remove entirely with angular zoneless implementation details.
|
|
3644
3614
|
this.ngZone.run(() => this.updateForSuccessfulTransition());
|
|
3645
3615
|
}
|
|
3646
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3647
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
3616
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AbstractTransitionWatcherDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
3617
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: AbstractTransitionWatcherDirective, isStandalone: true, usesInheritance: true, ngImport: i0 });
|
|
3648
3618
|
}
|
|
3649
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3619
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AbstractTransitionWatcherDirective, decorators: [{
|
|
3650
3620
|
type: Directive
|
|
3651
|
-
}] });
|
|
3621
|
+
}], ctorParameters: () => [] });
|
|
3652
3622
|
|
|
3653
3623
|
/**
|
|
3654
3624
|
* Creates an IsSegueRefActiveFunction
|
|
@@ -3913,100 +3883,39 @@ function provideDbxRouteModelKeyDirectiveDelegate(sourceType) {
|
|
|
3913
3883
|
return providers;
|
|
3914
3884
|
}
|
|
3915
3885
|
|
|
3916
|
-
/**
|
|
3917
|
-
* Used for retrieving the model's key from the current route using the configured parameter and passes it to its delegate.
|
|
3918
|
-
*
|
|
3919
|
-
* If the key does not exist in the params, then the p
|
|
3920
|
-
*/
|
|
3921
|
-
class DbxRouteModelKeyDirective extends AbstractSubscriptionDirective {
|
|
3922
|
-
dbxRouterService = inject(DbxRouterService);
|
|
3923
|
-
dbxRouteModelKeyDelegate = inject(DbxRouteModelKeyDirectiveDelegate, { host: true });
|
|
3924
|
-
_redirectInstance = dbxRouteModelKeyParamRedirect(this.dbxRouterService);
|
|
3925
|
-
keyFromParams$ = this._redirectInstance.paramValue$;
|
|
3926
|
-
key$ = this._redirectInstance.value$;
|
|
3927
|
-
ngOnInit() {
|
|
3928
|
-
this.sub = this.dbxRouteModelKeyDelegate.useRouteModelKeyParamsObservable(this.keyFromParams$, this.key$);
|
|
3929
|
-
this._redirectInstance.init();
|
|
3930
|
-
}
|
|
3931
|
-
ngOnDestroy() {
|
|
3932
|
-
this._redirectInstance.destroy();
|
|
3933
|
-
}
|
|
3934
|
-
// MARK: Input
|
|
3935
|
-
get keyParam() {
|
|
3936
|
-
return this._redirectInstance.getParamKey();
|
|
3937
|
-
}
|
|
3938
|
-
set keyParam(idParam) {
|
|
3939
|
-
this._redirectInstance.setParamKey(idParam);
|
|
3940
|
-
}
|
|
3941
|
-
set dbxRouteModelKeyDefault(defaultValue) {
|
|
3942
|
-
this._redirectInstance.setDefaultValue(defaultValue);
|
|
3943
|
-
}
|
|
3944
|
-
/**
|
|
3945
|
-
* Whether or not to enable the redirection. Is enabled by default.
|
|
3946
|
-
*/
|
|
3947
|
-
set dbxRouteModelKeyDefaultRedirect(redirect) {
|
|
3948
|
-
this._redirectInstance.setRedirectEnabled(redirect !== false); // true by default
|
|
3949
|
-
}
|
|
3950
|
-
set dbxRouteModelKeyDefaultDecision(decider) {
|
|
3951
|
-
this._redirectInstance.setDecider(decider);
|
|
3952
|
-
}
|
|
3953
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxRouteModelKeyDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
3954
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: DbxRouteModelKeyDirective, isStandalone: true, selector: "[dbxRouteModelKey]", inputs: { keyParam: ["dbxRouteModelKey", "keyParam"], dbxRouteModelKeyDefault: "dbxRouteModelKeyDefault", dbxRouteModelKeyDefaultRedirect: "dbxRouteModelKeyDefaultRedirect", dbxRouteModelKeyDefaultDecision: "dbxRouteModelKeyDefaultDecision" }, usesInheritance: true, ngImport: i0 });
|
|
3955
|
-
}
|
|
3956
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxRouteModelKeyDirective, decorators: [{
|
|
3957
|
-
type: Directive,
|
|
3958
|
-
args: [{
|
|
3959
|
-
selector: '[dbxRouteModelKey]',
|
|
3960
|
-
standalone: true
|
|
3961
|
-
}]
|
|
3962
|
-
}], propDecorators: { keyParam: [{
|
|
3963
|
-
type: Input,
|
|
3964
|
-
args: ['dbxRouteModelKey']
|
|
3965
|
-
}], dbxRouteModelKeyDefault: [{
|
|
3966
|
-
type: Input
|
|
3967
|
-
}], dbxRouteModelKeyDefaultRedirect: [{
|
|
3968
|
-
type: Input
|
|
3969
|
-
}], dbxRouteModelKeyDefaultDecision: [{
|
|
3970
|
-
type: Input
|
|
3971
|
-
}] } });
|
|
3972
|
-
|
|
3973
3886
|
/**
|
|
3974
3887
|
* Used for retrieving the user's current id DbxAuthService and passes it as an identifier for a DbxRouteModelIdDirectiveDelegate.
|
|
3975
3888
|
*/
|
|
3976
|
-
class DbxRouteModelIdFromAuthUserIdDirective
|
|
3889
|
+
class DbxRouteModelIdFromAuthUserIdDirective {
|
|
3977
3890
|
dbxAuthService = inject(DbxAuthService);
|
|
3978
3891
|
dbxRouteModelIdDelegate = inject(DbxRouteModelIdDirectiveDelegate, { host: true });
|
|
3979
|
-
|
|
3980
|
-
this.
|
|
3892
|
+
constructor() {
|
|
3893
|
+
cleanSubscription(this.dbxRouteModelIdDelegate.useRouteModelIdParamsObservable(this.dbxAuthService.userIdentifier$, this.dbxAuthService.userIdentifier$));
|
|
3981
3894
|
}
|
|
3982
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3983
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
3895
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxRouteModelIdFromAuthUserIdDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
3896
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: DbxRouteModelIdFromAuthUserIdDirective, isStandalone: true, selector: "[dbxRouteModelIdFromAuthUserId]", ngImport: i0 });
|
|
3984
3897
|
}
|
|
3985
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3898
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxRouteModelIdFromAuthUserIdDirective, decorators: [{
|
|
3986
3899
|
type: Directive,
|
|
3987
3900
|
args: [{
|
|
3988
3901
|
selector: '[dbxRouteModelIdFromAuthUserId]',
|
|
3989
3902
|
standalone: true
|
|
3990
3903
|
}]
|
|
3991
|
-
}] });
|
|
3904
|
+
}], ctorParameters: () => [] });
|
|
3992
3905
|
|
|
3993
3906
|
/**
|
|
3994
3907
|
* Used for retrieving the model's id from the current route using the configured parameter and passes it to its delegate.
|
|
3995
3908
|
*/
|
|
3996
|
-
class DbxRouteModelIdDirective
|
|
3909
|
+
class DbxRouteModelIdDirective {
|
|
3997
3910
|
dbxRouterService = inject(DbxRouterService);
|
|
3998
3911
|
dbxRouteModelIdDelegate = inject(DbxRouteModelIdDirectiveDelegate, { host: true });
|
|
3999
|
-
_redirectInstance = dbxRouteModelIdParamRedirect(this.dbxRouterService);
|
|
3912
|
+
_redirectInstance = clean(dbxRouteModelIdParamRedirect(this.dbxRouterService));
|
|
4000
3913
|
idFromParams$ = this._redirectInstance.paramValue$;
|
|
4001
3914
|
id$ = this._redirectInstance.value$;
|
|
4002
|
-
|
|
4003
|
-
this.
|
|
3915
|
+
constructor() {
|
|
3916
|
+
cleanSubscription(this.dbxRouteModelIdDelegate.useRouteModelIdParamsObservable(this.idFromParams$, this.id$));
|
|
4004
3917
|
this._redirectInstance.init();
|
|
4005
3918
|
}
|
|
4006
|
-
ngOnDestroy() {
|
|
4007
|
-
super.ngOnDestroy();
|
|
4008
|
-
this._redirectInstance.destroy();
|
|
4009
|
-
}
|
|
4010
3919
|
// MARK: Input
|
|
4011
3920
|
get idParam() {
|
|
4012
3921
|
return this._redirectInstance.getParamKey();
|
|
@@ -4026,16 +3935,16 @@ class DbxRouteModelIdDirective extends AbstractSubscriptionDirective {
|
|
|
4026
3935
|
set dbxRouteModelIdDefaultDecision(decider) {
|
|
4027
3936
|
this._redirectInstance.setDecider(decider);
|
|
4028
3937
|
}
|
|
4029
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4030
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
3938
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxRouteModelIdDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
3939
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: DbxRouteModelIdDirective, isStandalone: true, selector: "[dbxRouteModelId]", inputs: { idParam: ["dbxRouteModelId", "idParam"], dbxRouteModelIdDefault: "dbxRouteModelIdDefault", dbxRouteModelIdDefaultRedirect: "dbxRouteModelIdDefaultRedirect", dbxRouteModelIdDefaultDecision: "dbxRouteModelIdDefaultDecision" }, ngImport: i0 });
|
|
4031
3940
|
}
|
|
4032
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3941
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxRouteModelIdDirective, decorators: [{
|
|
4033
3942
|
type: Directive,
|
|
4034
3943
|
args: [{
|
|
4035
3944
|
selector: '[dbxRouteModelId]',
|
|
4036
3945
|
standalone: true
|
|
4037
3946
|
}]
|
|
4038
|
-
}], propDecorators: { idParam: [{
|
|
3947
|
+
}], ctorParameters: () => [], propDecorators: { idParam: [{
|
|
4039
3948
|
type: Input,
|
|
4040
3949
|
args: ['dbxRouteModelId']
|
|
4041
3950
|
}], dbxRouteModelIdDefault: [{
|
|
@@ -4046,26 +3955,59 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
4046
3955
|
type: Input
|
|
4047
3956
|
}] } });
|
|
4048
3957
|
|
|
4049
|
-
const importsAndExports$6 = [DbxRouteModelIdDirective, DbxRouteModelKeyDirective, DbxRouteModelIdFromAuthUserIdDirective];
|
|
4050
3958
|
/**
|
|
4051
|
-
*
|
|
3959
|
+
* Used for retrieving the model's key from the current route using the configured parameter and passes it to its delegate.
|
|
4052
3960
|
*
|
|
4053
|
-
*
|
|
4054
|
-
* @see DbxRouteModelKeyDirective
|
|
4055
|
-
* @see DbxRouteModelIdFromAuthUserIdDirective
|
|
3961
|
+
* If the key does not exist in the params, then the p
|
|
4056
3962
|
*/
|
|
4057
|
-
class
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
3963
|
+
class DbxRouteModelKeyDirective {
|
|
3964
|
+
dbxRouterService = inject(DbxRouterService);
|
|
3965
|
+
dbxRouteModelKeyDelegate = inject(DbxRouteModelKeyDirectiveDelegate, { host: true });
|
|
3966
|
+
_redirectInstance = clean(dbxRouteModelKeyParamRedirect(this.dbxRouterService));
|
|
3967
|
+
keyFromParams$ = this._redirectInstance.paramValue$;
|
|
3968
|
+
key$ = this._redirectInstance.value$;
|
|
3969
|
+
constructor() {
|
|
3970
|
+
cleanSubscription(this.dbxRouteModelKeyDelegate.useRouteModelKeyParamsObservable(this.keyFromParams$, this.key$));
|
|
3971
|
+
this._redirectInstance.init();
|
|
3972
|
+
}
|
|
3973
|
+
// MARK: Input
|
|
3974
|
+
get keyParam() {
|
|
3975
|
+
return this._redirectInstance.getParamKey();
|
|
3976
|
+
}
|
|
3977
|
+
set keyParam(idParam) {
|
|
3978
|
+
this._redirectInstance.setParamKey(idParam);
|
|
3979
|
+
}
|
|
3980
|
+
set dbxRouteModelKeyDefault(defaultValue) {
|
|
3981
|
+
this._redirectInstance.setDefaultValue(defaultValue);
|
|
3982
|
+
}
|
|
3983
|
+
/**
|
|
3984
|
+
* Whether or not to enable the redirection. Is enabled by default.
|
|
3985
|
+
*/
|
|
3986
|
+
set dbxRouteModelKeyDefaultRedirect(redirect) {
|
|
3987
|
+
this._redirectInstance.setRedirectEnabled(redirect !== false); // true by default
|
|
3988
|
+
}
|
|
3989
|
+
set dbxRouteModelKeyDefaultDecision(decider) {
|
|
3990
|
+
this._redirectInstance.setDecider(decider);
|
|
3991
|
+
}
|
|
3992
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxRouteModelKeyDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
3993
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: DbxRouteModelKeyDirective, isStandalone: true, selector: "[dbxRouteModelKey]", inputs: { keyParam: ["dbxRouteModelKey", "keyParam"], dbxRouteModelKeyDefault: "dbxRouteModelKeyDefault", dbxRouteModelKeyDefaultRedirect: "dbxRouteModelKeyDefaultRedirect", dbxRouteModelKeyDefaultDecision: "dbxRouteModelKeyDefaultDecision" }, ngImport: i0 });
|
|
4061
3994
|
}
|
|
4062
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4063
|
-
type:
|
|
3995
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxRouteModelKeyDirective, decorators: [{
|
|
3996
|
+
type: Directive,
|
|
4064
3997
|
args: [{
|
|
4065
|
-
|
|
4066
|
-
|
|
3998
|
+
selector: '[dbxRouteModelKey]',
|
|
3999
|
+
standalone: true
|
|
4067
4000
|
}]
|
|
4068
|
-
}]
|
|
4001
|
+
}], ctorParameters: () => [], propDecorators: { keyParam: [{
|
|
4002
|
+
type: Input,
|
|
4003
|
+
args: ['dbxRouteModelKey']
|
|
4004
|
+
}], dbxRouteModelKeyDefault: [{
|
|
4005
|
+
type: Input
|
|
4006
|
+
}], dbxRouteModelKeyDefaultRedirect: [{
|
|
4007
|
+
type: Input
|
|
4008
|
+
}], dbxRouteModelKeyDefaultDecision: [{
|
|
4009
|
+
type: Input
|
|
4010
|
+
}] } });
|
|
4069
4011
|
|
|
4070
4012
|
/**
|
|
4071
4013
|
* Pipes an ObservableOrValueGetter to an Observable value.
|
|
@@ -4074,10 +4016,10 @@ class AsObservablePipe {
|
|
|
4074
4016
|
transform(input) {
|
|
4075
4017
|
return asObservableFromGetter(input);
|
|
4076
4018
|
}
|
|
4077
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4078
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
4019
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AsObservablePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4020
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.0", ngImport: i0, type: AsObservablePipe, isStandalone: true, name: "asObservable" });
|
|
4079
4021
|
}
|
|
4080
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4022
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AsObservablePipe, decorators: [{
|
|
4081
4023
|
type: Pipe,
|
|
4082
4024
|
args: [{
|
|
4083
4025
|
name: 'asObservable',
|
|
@@ -4085,86 +4027,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
4085
4027
|
}]
|
|
4086
4028
|
}] });
|
|
4087
4029
|
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
* @deprecated use AsObservablePipe directly.
|
|
4091
|
-
*/
|
|
4092
|
-
class DbxAsyncPipeModule {
|
|
4093
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxAsyncPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4094
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: DbxAsyncPipeModule, imports: [AsObservablePipe], exports: [AsObservablePipe] });
|
|
4095
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxAsyncPipeModule });
|
|
4096
|
-
}
|
|
4097
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxAsyncPipeModule, decorators: [{
|
|
4098
|
-
type: NgModule,
|
|
4099
|
-
args: [{
|
|
4100
|
-
imports: importsAndExports$5,
|
|
4101
|
-
exports: importsAndExports$5
|
|
4102
|
-
}]
|
|
4103
|
-
}] });
|
|
4104
|
-
|
|
4105
|
-
/**
|
|
4106
|
-
* Pipe that takes in a date and number of minutes and outputs a formatted date.
|
|
4107
|
-
*/
|
|
4108
|
-
class DateFromToTimePipe {
|
|
4109
|
-
locale = inject(LOCALE_ID);
|
|
4110
|
-
static formatFromTo(input, format, minutes, locale) {
|
|
4030
|
+
class DateDayRangePipe {
|
|
4031
|
+
transform(input, unavailable = 'Not Available') {
|
|
4111
4032
|
if (input) {
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
return
|
|
4033
|
+
return formatToDayRangeString(input);
|
|
4034
|
+
}
|
|
4035
|
+
else {
|
|
4036
|
+
return unavailable;
|
|
4116
4037
|
}
|
|
4117
|
-
return undefined;
|
|
4118
|
-
}
|
|
4119
|
-
transform(input, format, minutes) {
|
|
4120
|
-
return DateFromToTimePipe.formatFromTo(input, format, minutes, this.locale);
|
|
4121
4038
|
}
|
|
4122
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4123
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
4039
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DateDayRangePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4040
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.0", ngImport: i0, type: DateDayRangePipe, isStandalone: true, name: "dateDayRange" });
|
|
4124
4041
|
}
|
|
4125
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4042
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DateDayRangePipe, decorators: [{
|
|
4126
4043
|
type: Pipe,
|
|
4127
4044
|
args: [{
|
|
4128
|
-
name: '
|
|
4045
|
+
name: 'dateDayRange',
|
|
4129
4046
|
standalone: true,
|
|
4130
4047
|
pure: true
|
|
4131
4048
|
}]
|
|
4132
4049
|
}] });
|
|
4133
4050
|
|
|
4134
|
-
class MinutesStringPipe {
|
|
4135
|
-
transform(input) {
|
|
4136
|
-
const minutes = Number(input);
|
|
4137
|
-
if (input != null && !isNaN(minutes)) {
|
|
4138
|
-
if (minutes > 3600) {
|
|
4139
|
-
const unrounded = minutes / 3600;
|
|
4140
|
-
const days = Math.ceil(unrounded);
|
|
4141
|
-
return (unrounded !== days ? '~' : '') + days + ' days';
|
|
4142
|
-
}
|
|
4143
|
-
else if (minutes > 180) {
|
|
4144
|
-
const unrounded = minutes / 60;
|
|
4145
|
-
const hours = Math.ceil(unrounded);
|
|
4146
|
-
return (unrounded !== hours ? '~' : '') + hours + ' hours';
|
|
4147
|
-
}
|
|
4148
|
-
else {
|
|
4149
|
-
return minutes + ' minutes';
|
|
4150
|
-
}
|
|
4151
|
-
}
|
|
4152
|
-
else {
|
|
4153
|
-
return undefined;
|
|
4154
|
-
}
|
|
4155
|
-
}
|
|
4156
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MinutesStringPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4157
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: MinutesStringPipe, isStandalone: true, name: "minutesString", pure: false });
|
|
4158
|
-
}
|
|
4159
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MinutesStringPipe, decorators: [{
|
|
4160
|
-
type: Pipe,
|
|
4161
|
-
args: [{
|
|
4162
|
-
name: 'minutesString',
|
|
4163
|
-
standalone: true,
|
|
4164
|
-
pure: false
|
|
4165
|
-
}]
|
|
4166
|
-
}] });
|
|
4167
|
-
|
|
4168
4051
|
class ToJsDatePipe {
|
|
4169
4052
|
static toJsDate(input) {
|
|
4170
4053
|
let date;
|
|
@@ -4179,10 +4062,10 @@ class ToJsDatePipe {
|
|
|
4179
4062
|
transform(input) {
|
|
4180
4063
|
return ToJsDatePipe.toJsDate(input);
|
|
4181
4064
|
}
|
|
4182
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4183
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
4065
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ToJsDatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4066
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.0", ngImport: i0, type: ToJsDatePipe, isStandalone: true, name: "toJsDate" });
|
|
4184
4067
|
}
|
|
4185
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4068
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ToJsDatePipe, decorators: [{
|
|
4186
4069
|
type: Pipe,
|
|
4187
4070
|
args: [{
|
|
4188
4071
|
name: 'toJsDate',
|
|
@@ -4191,78 +4074,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
4191
4074
|
}]
|
|
4192
4075
|
}] });
|
|
4193
4076
|
|
|
4194
|
-
class
|
|
4195
|
-
transform(input,
|
|
4196
|
-
if (input) {
|
|
4197
|
-
const
|
|
4198
|
-
if (isPast(from)) {
|
|
4199
|
-
return soonString;
|
|
4200
|
-
}
|
|
4201
|
-
else {
|
|
4202
|
-
const to = new Date();
|
|
4203
|
-
return formatDistance(from, to, {
|
|
4204
|
-
addSuffix: true
|
|
4205
|
-
});
|
|
4206
|
-
}
|
|
4207
|
-
}
|
|
4208
|
-
else {
|
|
4209
|
-
return unavailable;
|
|
4210
|
-
}
|
|
4211
|
-
}
|
|
4212
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TimeDistanceCountdownPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4213
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: TimeDistanceCountdownPipe, isStandalone: true, name: "timeCountdownDistance", pure: false });
|
|
4214
|
-
}
|
|
4215
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TimeDistanceCountdownPipe, decorators: [{
|
|
4216
|
-
type: Pipe,
|
|
4217
|
-
args: [{
|
|
4218
|
-
name: 'timeCountdownDistance',
|
|
4219
|
-
standalone: true,
|
|
4220
|
-
pure: false
|
|
4221
|
-
}]
|
|
4222
|
-
}] });
|
|
4223
|
-
class TimeDistancePipe {
|
|
4224
|
-
transform(input, to, unavailable = 'Not Available') {
|
|
4225
|
-
if (input) {
|
|
4077
|
+
class DateDistancePipe {
|
|
4078
|
+
transform(input, inputTo, unavailable = 'Not Available') {
|
|
4079
|
+
if (input != null) {
|
|
4080
|
+
const to = inputTo ?? new Date();
|
|
4226
4081
|
const from = ToJsDatePipe.toJsDate(input);
|
|
4227
|
-
return
|
|
4228
|
-
addSuffix: true
|
|
4229
|
-
});
|
|
4082
|
+
return formatDateDistance(to, from);
|
|
4230
4083
|
}
|
|
4231
4084
|
else {
|
|
4232
4085
|
return unavailable;
|
|
4233
4086
|
}
|
|
4234
4087
|
}
|
|
4235
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4236
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
4088
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DateDistancePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4089
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.0", ngImport: i0, type: DateDistancePipe, isStandalone: true, name: "dateDistance", pure: false });
|
|
4237
4090
|
}
|
|
4238
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4091
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DateDistancePipe, decorators: [{
|
|
4239
4092
|
type: Pipe,
|
|
4240
4093
|
args: [{
|
|
4241
|
-
name: '
|
|
4094
|
+
name: 'dateDistance',
|
|
4242
4095
|
standalone: true,
|
|
4243
4096
|
pure: false
|
|
4244
4097
|
}]
|
|
4245
4098
|
}] });
|
|
4246
4099
|
|
|
4247
|
-
class ToMinutesPipe {
|
|
4248
|
-
transform(milliseconds) {
|
|
4249
|
-
if (milliseconds) {
|
|
4250
|
-
return Math.floor(milliseconds / (60 * 1000));
|
|
4251
|
-
}
|
|
4252
|
-
return milliseconds;
|
|
4253
|
-
}
|
|
4254
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ToMinutesPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4255
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: ToMinutesPipe, isStandalone: true, name: "toMinutes" });
|
|
4256
|
-
}
|
|
4257
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ToMinutesPipe, decorators: [{
|
|
4258
|
-
type: Pipe,
|
|
4259
|
-
args: [{
|
|
4260
|
-
name: 'toMinutes',
|
|
4261
|
-
standalone: true,
|
|
4262
|
-
pure: true
|
|
4263
|
-
}]
|
|
4264
|
-
}] });
|
|
4265
|
-
|
|
4266
4100
|
/**
|
|
4267
4101
|
* Pipe that takes in a date and appends the distance to it in parenthesis.
|
|
4268
4102
|
*/
|
|
@@ -4282,10 +4116,10 @@ class DateFormatDistancePipe {
|
|
|
4282
4116
|
}
|
|
4283
4117
|
return undefined;
|
|
4284
4118
|
}
|
|
4285
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4286
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
4119
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DateFormatDistancePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4120
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.0", ngImport: i0, type: DateFormatDistancePipe, isStandalone: true, name: "dateFormatDistance", pure: false });
|
|
4287
4121
|
}
|
|
4288
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4122
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DateFormatDistancePipe, decorators: [{
|
|
4289
4123
|
type: Pipe,
|
|
4290
4124
|
args: [{
|
|
4291
4125
|
name: 'dateFormatDistance',
|
|
@@ -4294,45 +4128,51 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
4294
4128
|
}]
|
|
4295
4129
|
}] });
|
|
4296
4130
|
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4131
|
+
/**
|
|
4132
|
+
* Pipe that takes in a date and number of minutes and outputs a formatted date.
|
|
4133
|
+
*/
|
|
4134
|
+
class DateFormatFromToPipe {
|
|
4135
|
+
locale = inject(LOCALE_ID);
|
|
4136
|
+
static formatFromTo(input, format, minutes, locale) {
|
|
4137
|
+
if (input) {
|
|
4138
|
+
const date = toJsDate(input);
|
|
4139
|
+
const endDate = addMinutes(date, minutes);
|
|
4140
|
+
const dateString = formatDate(date, format, locale);
|
|
4141
|
+
return dateString + ' - ' + formatToTimeString(endDate);
|
|
4306
4142
|
}
|
|
4143
|
+
return undefined;
|
|
4307
4144
|
}
|
|
4308
|
-
|
|
4309
|
-
|
|
4145
|
+
transform(input, format, minutes) {
|
|
4146
|
+
return DateFormatFromToPipe.formatFromTo(input, format, minutes, this.locale);
|
|
4147
|
+
}
|
|
4148
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DateFormatFromToPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4149
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.0", ngImport: i0, type: DateFormatFromToPipe, isStandalone: true, name: "dateFormatFromTo" });
|
|
4310
4150
|
}
|
|
4311
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4151
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DateFormatFromToPipe, decorators: [{
|
|
4312
4152
|
type: Pipe,
|
|
4313
4153
|
args: [{
|
|
4314
|
-
name: '
|
|
4154
|
+
name: 'dateFormatFromTo',
|
|
4315
4155
|
standalone: true,
|
|
4316
|
-
pure:
|
|
4156
|
+
pure: true
|
|
4317
4157
|
}]
|
|
4318
4158
|
}] });
|
|
4319
4159
|
|
|
4320
|
-
class
|
|
4160
|
+
class DateDayTimeRangePipe {
|
|
4321
4161
|
transform(input, unavailable = 'Not Available') {
|
|
4322
4162
|
if (input) {
|
|
4323
|
-
return
|
|
4163
|
+
return formatToDayTimeRangeString(input);
|
|
4324
4164
|
}
|
|
4325
4165
|
else {
|
|
4326
4166
|
return unavailable;
|
|
4327
4167
|
}
|
|
4328
4168
|
}
|
|
4329
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4330
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
4169
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DateDayTimeRangePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4170
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.0", ngImport: i0, type: DateDayTimeRangePipe, isStandalone: true, name: "dateDayTimeRange" });
|
|
4331
4171
|
}
|
|
4332
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4172
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DateDayTimeRangePipe, decorators: [{
|
|
4333
4173
|
type: Pipe,
|
|
4334
4174
|
args: [{
|
|
4335
|
-
name: '
|
|
4175
|
+
name: 'dateDayTimeRange',
|
|
4336
4176
|
standalone: true,
|
|
4337
4177
|
pure: true
|
|
4338
4178
|
}]
|
|
@@ -4347,10 +4187,10 @@ class DateTimeRangePipe {
|
|
|
4347
4187
|
return unavailable;
|
|
4348
4188
|
}
|
|
4349
4189
|
}
|
|
4350
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4351
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
4190
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DateTimeRangePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4191
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.0", ngImport: i0, type: DateTimeRangePipe, isStandalone: true, name: "dateTimeRange" });
|
|
4352
4192
|
}
|
|
4353
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4193
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DateTimeRangePipe, decorators: [{
|
|
4354
4194
|
type: Pipe,
|
|
4355
4195
|
args: [{
|
|
4356
4196
|
name: 'dateTimeRange',
|
|
@@ -4359,24 +4199,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
4359
4199
|
}]
|
|
4360
4200
|
}] });
|
|
4361
4201
|
|
|
4362
|
-
class
|
|
4202
|
+
class DateRangeDistancePipe {
|
|
4363
4203
|
transform(input, unavailable = 'Not Available') {
|
|
4364
|
-
if (input) {
|
|
4365
|
-
return
|
|
4204
|
+
if (input != null) {
|
|
4205
|
+
return formatDateDistance(input, new Date());
|
|
4366
4206
|
}
|
|
4367
4207
|
else {
|
|
4368
4208
|
return unavailable;
|
|
4369
4209
|
}
|
|
4370
4210
|
}
|
|
4371
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4372
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
4211
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DateRangeDistancePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4212
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.0", ngImport: i0, type: DateRangeDistancePipe, isStandalone: true, name: "dateRangeDistance", pure: false });
|
|
4373
4213
|
}
|
|
4374
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4214
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DateRangeDistancePipe, decorators: [{
|
|
4375
4215
|
type: Pipe,
|
|
4376
4216
|
args: [{
|
|
4377
|
-
name: '
|
|
4217
|
+
name: 'dateRangeDistance',
|
|
4378
4218
|
standalone: true,
|
|
4379
|
-
pure:
|
|
4219
|
+
pure: false
|
|
4380
4220
|
}]
|
|
4381
4221
|
}] });
|
|
4382
4222
|
|
|
@@ -4389,10 +4229,10 @@ class DateTimeRangeOnlyPipe {
|
|
|
4389
4229
|
return unavailable;
|
|
4390
4230
|
}
|
|
4391
4231
|
}
|
|
4392
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4393
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
4232
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DateTimeRangeOnlyPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4233
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.0", ngImport: i0, type: DateTimeRangeOnlyPipe, isStandalone: true, name: "dateTimeRangeOnly" });
|
|
4394
4234
|
}
|
|
4395
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4235
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DateTimeRangeOnlyPipe, decorators: [{
|
|
4396
4236
|
type: Pipe,
|
|
4397
4237
|
args: [{
|
|
4398
4238
|
name: 'dateTimeRangeOnly',
|
|
@@ -4401,48 +4241,48 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
4401
4241
|
}]
|
|
4402
4242
|
}] });
|
|
4403
4243
|
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4244
|
+
/**
|
|
4245
|
+
* Converts the input date and timezone to a system date that represents that date/time.
|
|
4246
|
+
*/
|
|
4247
|
+
class TargetDateToSystemDatePipe {
|
|
4248
|
+
transform(input, timezone) {
|
|
4249
|
+
if (input && timezone) {
|
|
4250
|
+
return dateTimezoneUtcNormal({ timezone }).targetDateToSystemDate(input);
|
|
4408
4251
|
}
|
|
4409
4252
|
else {
|
|
4410
|
-
return
|
|
4253
|
+
return undefined;
|
|
4411
4254
|
}
|
|
4412
4255
|
}
|
|
4413
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4414
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
4256
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: TargetDateToSystemDatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4257
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.0", ngImport: i0, type: TargetDateToSystemDatePipe, isStandalone: true, name: "targetDateToSystemDate", pure: false });
|
|
4415
4258
|
}
|
|
4416
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4259
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: TargetDateToSystemDatePipe, decorators: [{
|
|
4417
4260
|
type: Pipe,
|
|
4418
4261
|
args: [{
|
|
4419
|
-
name: '
|
|
4262
|
+
name: 'targetDateToSystemDate',
|
|
4420
4263
|
standalone: true,
|
|
4421
|
-
pure:
|
|
4264
|
+
pure: false
|
|
4422
4265
|
}]
|
|
4423
4266
|
}] });
|
|
4424
4267
|
|
|
4425
|
-
|
|
4426
|
-
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
transform(input, timezone) {
|
|
4430
|
-
if (input && timezone) {
|
|
4431
|
-
return dateTimezoneUtcNormal({ timezone }).targetDateToSystemDate(input);
|
|
4268
|
+
class DateTimeRangeOnlyDistancePipe {
|
|
4269
|
+
transform(input, config, unavailable = 'Not Available') {
|
|
4270
|
+
if (input) {
|
|
4271
|
+
return formatDateRangeDistance(input, { ...config });
|
|
4432
4272
|
}
|
|
4433
4273
|
else {
|
|
4434
|
-
return
|
|
4274
|
+
return unavailable;
|
|
4435
4275
|
}
|
|
4436
4276
|
}
|
|
4437
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4438
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
4277
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DateTimeRangeOnlyDistancePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4278
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.0", ngImport: i0, type: DateTimeRangeOnlyDistancePipe, isStandalone: true, name: "dateTimeRangeOnlyDistance" });
|
|
4439
4279
|
}
|
|
4440
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4280
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DateTimeRangeOnlyDistancePipe, decorators: [{
|
|
4441
4281
|
type: Pipe,
|
|
4442
4282
|
args: [{
|
|
4443
|
-
name: '
|
|
4283
|
+
name: 'dateTimeRangeOnlyDistance',
|
|
4444
4284
|
standalone: true,
|
|
4445
|
-
pure:
|
|
4285
|
+
pure: true
|
|
4446
4286
|
}]
|
|
4447
4287
|
}] });
|
|
4448
4288
|
|
|
@@ -4458,10 +4298,10 @@ class TimezoneAbbreviationPipe {
|
|
|
4458
4298
|
return undefined;
|
|
4459
4299
|
}
|
|
4460
4300
|
}
|
|
4461
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4462
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
4301
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: TimezoneAbbreviationPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4302
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.0", ngImport: i0, type: TimezoneAbbreviationPipe, isStandalone: true, name: "timezoneAbbreviation", pure: false });
|
|
4463
4303
|
}
|
|
4464
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4304
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: TimezoneAbbreviationPipe, decorators: [{
|
|
4465
4305
|
type: Pipe,
|
|
4466
4306
|
args: [{
|
|
4467
4307
|
name: 'timezoneAbbreviation',
|
|
@@ -4482,10 +4322,10 @@ class SystemDateToTargetDatePipe {
|
|
|
4482
4322
|
return undefined;
|
|
4483
4323
|
}
|
|
4484
4324
|
}
|
|
4485
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4486
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
4325
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SystemDateToTargetDatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4326
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.0", ngImport: i0, type: SystemDateToTargetDatePipe, isStandalone: true, name: "systemDateToTargetDate", pure: false });
|
|
4487
4327
|
}
|
|
4488
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4328
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SystemDateToTargetDatePipe, decorators: [{
|
|
4489
4329
|
type: Pipe,
|
|
4490
4330
|
args: [{
|
|
4491
4331
|
name: 'systemDateToTargetDate',
|
|
@@ -4494,114 +4334,109 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
4494
4334
|
}]
|
|
4495
4335
|
}] });
|
|
4496
4336
|
|
|
4497
|
-
class
|
|
4498
|
-
transform(input
|
|
4499
|
-
|
|
4500
|
-
|
|
4337
|
+
class MinutesStringPipe {
|
|
4338
|
+
transform(input) {
|
|
4339
|
+
const minutes = Number(input);
|
|
4340
|
+
if (input != null && !isNaN(minutes)) {
|
|
4341
|
+
if (minutes > 3600) {
|
|
4342
|
+
const unrounded = minutes / 3600;
|
|
4343
|
+
const days = Math.ceil(unrounded);
|
|
4344
|
+
return (unrounded !== days ? '~' : '') + days + ' days';
|
|
4345
|
+
}
|
|
4346
|
+
else if (minutes > 180) {
|
|
4347
|
+
const unrounded = minutes / 60;
|
|
4348
|
+
const hours = Math.ceil(unrounded);
|
|
4349
|
+
return (unrounded !== hours ? '~' : '') + hours + ' hours';
|
|
4350
|
+
}
|
|
4351
|
+
else {
|
|
4352
|
+
return minutes + ' minutes';
|
|
4353
|
+
}
|
|
4354
|
+
}
|
|
4355
|
+
else {
|
|
4356
|
+
return undefined;
|
|
4357
|
+
}
|
|
4358
|
+
}
|
|
4359
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: MinutesStringPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4360
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.0", ngImport: i0, type: MinutesStringPipe, isStandalone: true, name: "minutesString", pure: false });
|
|
4361
|
+
}
|
|
4362
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: MinutesStringPipe, decorators: [{
|
|
4363
|
+
type: Pipe,
|
|
4364
|
+
args: [{
|
|
4365
|
+
name: 'minutesString',
|
|
4366
|
+
standalone: true,
|
|
4367
|
+
pure: false
|
|
4368
|
+
}]
|
|
4369
|
+
}] });
|
|
4370
|
+
|
|
4371
|
+
class TimeDistanceCountdownPipe {
|
|
4372
|
+
transform(input, soonString = 'Soon', unavailable = 'Not Available') {
|
|
4373
|
+
if (input) {
|
|
4374
|
+
const from = ToJsDatePipe.toJsDate(input);
|
|
4375
|
+
if (isPast(from)) {
|
|
4376
|
+
return soonString;
|
|
4377
|
+
}
|
|
4378
|
+
else {
|
|
4379
|
+
const to = new Date();
|
|
4380
|
+
return formatDistance(from, to, {
|
|
4381
|
+
addSuffix: true
|
|
4382
|
+
});
|
|
4383
|
+
}
|
|
4501
4384
|
}
|
|
4502
4385
|
else {
|
|
4503
4386
|
return unavailable;
|
|
4504
4387
|
}
|
|
4505
4388
|
}
|
|
4506
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4507
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
4389
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: TimeDistanceCountdownPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4390
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.0", ngImport: i0, type: TimeDistanceCountdownPipe, isStandalone: true, name: "timeCountdownDistance", pure: false });
|
|
4508
4391
|
}
|
|
4509
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4392
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: TimeDistanceCountdownPipe, decorators: [{
|
|
4510
4393
|
type: Pipe,
|
|
4511
4394
|
args: [{
|
|
4512
|
-
name: '
|
|
4395
|
+
name: 'timeCountdownDistance',
|
|
4396
|
+
standalone: true,
|
|
4397
|
+
pure: false
|
|
4398
|
+
}]
|
|
4399
|
+
}] });
|
|
4400
|
+
class TimeDistancePipe {
|
|
4401
|
+
transform(input, to, unavailable = 'Not Available') {
|
|
4402
|
+
if (input) {
|
|
4403
|
+
const from = ToJsDatePipe.toJsDate(input);
|
|
4404
|
+
return formatDistance(from, to ?? new Date(), {
|
|
4405
|
+
addSuffix: true
|
|
4406
|
+
});
|
|
4407
|
+
}
|
|
4408
|
+
else {
|
|
4409
|
+
return unavailable;
|
|
4410
|
+
}
|
|
4411
|
+
}
|
|
4412
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: TimeDistancePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4413
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.0", ngImport: i0, type: TimeDistancePipe, isStandalone: true, name: "timeDistance", pure: false });
|
|
4414
|
+
}
|
|
4415
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: TimeDistancePipe, decorators: [{
|
|
4416
|
+
type: Pipe,
|
|
4417
|
+
args: [{
|
|
4418
|
+
name: 'timeDistance',
|
|
4513
4419
|
standalone: true,
|
|
4514
4420
|
pure: false
|
|
4515
4421
|
}]
|
|
4516
4422
|
}] });
|
|
4517
4423
|
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
DateTimeRangeOnlyDistancePipe,
|
|
4531
|
-
DateFormatDistancePipe,
|
|
4532
|
-
MinutesStringPipe,
|
|
4533
|
-
TimeDistanceCountdownPipe,
|
|
4534
|
-
TimeDistancePipe,
|
|
4535
|
-
ToJsDatePipe,
|
|
4536
|
-
ToMinutesPipe
|
|
4537
|
-
];
|
|
4538
|
-
/**
|
|
4539
|
-
* @deprecated import the standalone pipes directly as needed.
|
|
4540
|
-
*
|
|
4541
|
-
* @see DateDistancePipe
|
|
4542
|
-
* @see DateRangeDistancePipe
|
|
4543
|
-
* @see TargetDateToSystemDatePipe
|
|
4544
|
-
* @see SystemDateToTargetDatePipe
|
|
4545
|
-
* @see TimezoneAbbreviationPipe
|
|
4546
|
-
* @see DateFromToTimePipe
|
|
4547
|
-
* @see DateDayRangePipe
|
|
4548
|
-
* @see DateDayTimeRangePipe
|
|
4549
|
-
* @see DateTimeRangeOnlyPipe
|
|
4550
|
-
* @see DateTimeRangePipe
|
|
4551
|
-
* @see DateTimeRangeOnlyDistancePipe
|
|
4552
|
-
* @see DateFormatDistancePipe
|
|
4553
|
-
* @see MinutesStringPipe
|
|
4554
|
-
* @see TimeDistanceCountdownPipe
|
|
4555
|
-
* @see TimeDistancePipe
|
|
4556
|
-
* @see ToJsDatePipe
|
|
4557
|
-
* @see ToMinutesPipe
|
|
4558
|
-
*/
|
|
4559
|
-
class DbxDatePipeModule {
|
|
4560
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxDatePipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4561
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: DbxDatePipeModule, imports: [
|
|
4562
|
-
//
|
|
4563
|
-
DateDistancePipe,
|
|
4564
|
-
DateRangeDistancePipe,
|
|
4565
|
-
TargetDateToSystemDatePipe,
|
|
4566
|
-
SystemDateToTargetDatePipe,
|
|
4567
|
-
TimezoneAbbreviationPipe,
|
|
4568
|
-
DateFromToTimePipe,
|
|
4569
|
-
DateDayRangePipe,
|
|
4570
|
-
DateDayTimeRangePipe,
|
|
4571
|
-
DateTimeRangeOnlyPipe,
|
|
4572
|
-
DateTimeRangePipe,
|
|
4573
|
-
DateTimeRangeOnlyDistancePipe,
|
|
4574
|
-
DateFormatDistancePipe,
|
|
4575
|
-
MinutesStringPipe,
|
|
4576
|
-
TimeDistanceCountdownPipe,
|
|
4577
|
-
TimeDistancePipe,
|
|
4578
|
-
ToJsDatePipe,
|
|
4579
|
-
ToMinutesPipe], exports: [
|
|
4580
|
-
//
|
|
4581
|
-
DateDistancePipe,
|
|
4582
|
-
DateRangeDistancePipe,
|
|
4583
|
-
TargetDateToSystemDatePipe,
|
|
4584
|
-
SystemDateToTargetDatePipe,
|
|
4585
|
-
TimezoneAbbreviationPipe,
|
|
4586
|
-
DateFromToTimePipe,
|
|
4587
|
-
DateDayRangePipe,
|
|
4588
|
-
DateDayTimeRangePipe,
|
|
4589
|
-
DateTimeRangeOnlyPipe,
|
|
4590
|
-
DateTimeRangePipe,
|
|
4591
|
-
DateTimeRangeOnlyDistancePipe,
|
|
4592
|
-
DateFormatDistancePipe,
|
|
4593
|
-
MinutesStringPipe,
|
|
4594
|
-
TimeDistanceCountdownPipe,
|
|
4595
|
-
TimeDistancePipe,
|
|
4596
|
-
ToJsDatePipe,
|
|
4597
|
-
ToMinutesPipe] });
|
|
4598
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxDatePipeModule });
|
|
4599
|
-
}
|
|
4600
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxDatePipeModule, decorators: [{
|
|
4601
|
-
type: NgModule,
|
|
4424
|
+
class ToMinutesPipe {
|
|
4425
|
+
transform(milliseconds) {
|
|
4426
|
+
if (milliseconds) {
|
|
4427
|
+
return Math.floor(milliseconds / (60 * 1000));
|
|
4428
|
+
}
|
|
4429
|
+
return milliseconds;
|
|
4430
|
+
}
|
|
4431
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ToMinutesPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4432
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.0", ngImport: i0, type: ToMinutesPipe, isStandalone: true, name: "toMinutes" });
|
|
4433
|
+
}
|
|
4434
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ToMinutesPipe, decorators: [{
|
|
4435
|
+
type: Pipe,
|
|
4602
4436
|
args: [{
|
|
4603
|
-
|
|
4604
|
-
|
|
4437
|
+
name: 'toMinutes',
|
|
4438
|
+
standalone: true,
|
|
4439
|
+
pure: true
|
|
4605
4440
|
}]
|
|
4606
4441
|
}] });
|
|
4607
4442
|
|
|
@@ -4622,10 +4457,10 @@ class PrettyJsonPipe {
|
|
|
4622
4457
|
transform(input, spacing) {
|
|
4623
4458
|
return PrettyJsonPipe.toPrettyJson(input, spacing);
|
|
4624
4459
|
}
|
|
4625
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4626
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
4460
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: PrettyJsonPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4461
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.0", ngImport: i0, type: PrettyJsonPipe, isStandalone: true, name: "prettyjson" });
|
|
4627
4462
|
}
|
|
4628
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4463
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: PrettyJsonPipe, decorators: [{
|
|
4629
4464
|
type: Pipe,
|
|
4630
4465
|
args: [{
|
|
4631
4466
|
name: 'prettyjson',
|
|
@@ -4633,24 +4468,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
4633
4468
|
}]
|
|
4634
4469
|
}] });
|
|
4635
4470
|
|
|
4636
|
-
/**
|
|
4637
|
-
* @deprecated import the standalone pipes directly
|
|
4638
|
-
*
|
|
4639
|
-
* @see PrettyJsonPipe
|
|
4640
|
-
*/
|
|
4641
|
-
class DbxMiscPipeModule {
|
|
4642
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxMiscPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4643
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: DbxMiscPipeModule, imports: [PrettyJsonPipe], exports: [PrettyJsonPipe] });
|
|
4644
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxMiscPipeModule });
|
|
4645
|
-
}
|
|
4646
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxMiscPipeModule, decorators: [{
|
|
4647
|
-
type: NgModule,
|
|
4648
|
-
args: [{
|
|
4649
|
-
imports: [PrettyJsonPipe],
|
|
4650
|
-
exports: [PrettyJsonPipe]
|
|
4651
|
-
}]
|
|
4652
|
-
}] });
|
|
4653
|
-
|
|
4654
4471
|
/**
|
|
4655
4472
|
* Pipe that cuts the input text to the requested length and adds elipsis.
|
|
4656
4473
|
*/
|
|
@@ -4658,10 +4475,10 @@ class CutTextPipe {
|
|
|
4658
4475
|
transform(input, maxLength, endText) {
|
|
4659
4476
|
return input != null ? cutString(input, maxLength, endText) : input;
|
|
4660
4477
|
}
|
|
4661
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4662
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
4478
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CutTextPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4479
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.0", ngImport: i0, type: CutTextPipe, isStandalone: true, name: "cutText" });
|
|
4663
4480
|
}
|
|
4664
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4481
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CutTextPipe, decorators: [{
|
|
4665
4482
|
type: Pipe,
|
|
4666
4483
|
args: [{
|
|
4667
4484
|
name: 'cutText',
|
|
@@ -4677,10 +4494,10 @@ class GetValuePipe {
|
|
|
4677
4494
|
transform(input, args) {
|
|
4678
4495
|
return getValueFromGetter(input, args);
|
|
4679
4496
|
}
|
|
4680
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4681
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
4497
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: GetValuePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4498
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.0", ngImport: i0, type: GetValuePipe, isStandalone: true, name: "getValue", pure: false });
|
|
4682
4499
|
}
|
|
4683
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4500
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: GetValuePipe, decorators: [{
|
|
4684
4501
|
type: Pipe,
|
|
4685
4502
|
args: [{
|
|
4686
4503
|
name: 'getValue',
|
|
@@ -4695,10 +4512,10 @@ class GetValueOncePipe {
|
|
|
4695
4512
|
transform(input, args) {
|
|
4696
4513
|
return getValueFromGetter(input, args);
|
|
4697
4514
|
}
|
|
4698
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4699
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
4515
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: GetValueOncePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4516
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.0", ngImport: i0, type: GetValueOncePipe, isStandalone: true, name: "getValueOnce" });
|
|
4700
4517
|
}
|
|
4701
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4518
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: GetValueOncePipe, decorators: [{
|
|
4702
4519
|
type: Pipe,
|
|
4703
4520
|
args: [{
|
|
4704
4521
|
name: 'getValueOnce',
|
|
@@ -4716,10 +4533,10 @@ class DollarAmountPipe {
|
|
|
4716
4533
|
transform(input, defaultIfNull) {
|
|
4717
4534
|
return defaultIfNull == null || input != null ? dollarAmountString(input) : defaultIfNull;
|
|
4718
4535
|
}
|
|
4719
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4720
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
4536
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DollarAmountPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4537
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.0", ngImport: i0, type: DollarAmountPipe, isStandalone: true, name: "dollarAmount" });
|
|
4721
4538
|
}
|
|
4722
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4539
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DollarAmountPipe, decorators: [{
|
|
4723
4540
|
type: Pipe,
|
|
4724
4541
|
args: [{
|
|
4725
4542
|
name: 'dollarAmount',
|
|
@@ -4728,63 +4545,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
4728
4545
|
}]
|
|
4729
4546
|
}] });
|
|
4730
4547
|
|
|
4731
|
-
const importsAndExports$3 = [CutTextPipe, DollarAmountPipe, GetValuePipe, GetValueOncePipe];
|
|
4732
|
-
/**
|
|
4733
|
-
* @deprecated import the pipes directly as needed.
|
|
4734
|
-
*
|
|
4735
|
-
* @see CutTextPipe
|
|
4736
|
-
* @see DollarAmountPipe
|
|
4737
|
-
* @see GetValuePipe
|
|
4738
|
-
* @see GetValueOncePipe
|
|
4739
|
-
*/
|
|
4740
|
-
class DbxValuePipeModule {
|
|
4741
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxValuePipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4742
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: DbxValuePipeModule, imports: [CutTextPipe, DollarAmountPipe, GetValuePipe, GetValueOncePipe], exports: [CutTextPipe, DollarAmountPipe, GetValuePipe, GetValueOncePipe] });
|
|
4743
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxValuePipeModule });
|
|
4744
|
-
}
|
|
4745
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxValuePipeModule, decorators: [{
|
|
4746
|
-
type: NgModule,
|
|
4747
|
-
args: [{
|
|
4748
|
-
imports: importsAndExports$3,
|
|
4749
|
-
exports: importsAndExports$3
|
|
4750
|
-
}]
|
|
4751
|
-
}] });
|
|
4752
|
-
|
|
4753
|
-
const importsAndExports$2 = [DbxAsyncPipeModule, DbxMiscPipeModule, DbxDatePipeModule, DbxValuePipeModule];
|
|
4754
|
-
/**
|
|
4755
|
-
* Exports all @dereekb/dbx-core pipes
|
|
4756
|
-
*
|
|
4757
|
-
* @deprecated import the pipes directly as needed.
|
|
4758
|
-
*/
|
|
4759
|
-
class DbxPipesModule {
|
|
4760
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxPipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4761
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: DbxPipesModule, imports: [DbxAsyncPipeModule, DbxMiscPipeModule, DbxDatePipeModule, DbxValuePipeModule], exports: [DbxAsyncPipeModule, DbxMiscPipeModule, DbxDatePipeModule, DbxValuePipeModule] });
|
|
4762
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxPipesModule, imports: [importsAndExports$2, DbxAsyncPipeModule, DbxMiscPipeModule, DbxDatePipeModule, DbxValuePipeModule] });
|
|
4763
|
-
}
|
|
4764
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxPipesModule, decorators: [{
|
|
4765
|
-
type: NgModule,
|
|
4766
|
-
args: [{
|
|
4767
|
-
imports: importsAndExports$2,
|
|
4768
|
-
exports: importsAndExports$2
|
|
4769
|
-
}]
|
|
4770
|
-
}] });
|
|
4771
|
-
|
|
4772
4548
|
/**
|
|
4773
4549
|
* Abstract FilterSourceConnector directive.
|
|
4774
4550
|
*/
|
|
4775
4551
|
class AbstractFilterSourceConnectorDirective {
|
|
4776
|
-
_source = new BehaviorSubject(undefined);
|
|
4552
|
+
_source = completeOnDestroy(new BehaviorSubject(undefined));
|
|
4777
4553
|
filter$ = this._source.pipe(switchMap((x) => x?.filter$ ?? of(undefined)), filterMaybe(), shareReplay(1));
|
|
4778
|
-
ngOnDestroy() {
|
|
4779
|
-
this._source.complete();
|
|
4780
|
-
}
|
|
4781
4554
|
connectWithSource(filterSource) {
|
|
4782
4555
|
this._source.next(filterSource);
|
|
4783
4556
|
}
|
|
4784
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4785
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
4557
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AbstractFilterSourceConnectorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4558
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: AbstractFilterSourceConnectorDirective, isStandalone: true, ngImport: i0 });
|
|
4786
4559
|
}
|
|
4787
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4560
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AbstractFilterSourceConnectorDirective, decorators: [{
|
|
4788
4561
|
type: Directive
|
|
4789
4562
|
}] });
|
|
4790
4563
|
|
|
@@ -4866,17 +4639,10 @@ class AbstractFilterSourceDirective {
|
|
|
4866
4639
|
setInitialFilterTakesPriority(initialFilterTakesPriority) {
|
|
4867
4640
|
this._defaultFilterSource.setInitialFilterTakesPriority(initialFilterTakesPriority);
|
|
4868
4641
|
}
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
* @deprecated use setInitialFilterTakesPriority() instead.
|
|
4872
|
-
*/
|
|
4873
|
-
set initialFilterTakesPriority(initialFilterTakesPriority) {
|
|
4874
|
-
this.setInitialFilterTakesPriority(initialFilterTakesPriority);
|
|
4875
|
-
}
|
|
4876
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AbstractFilterSourceDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4877
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: AbstractFilterSourceDirective, ngImport: i0 });
|
|
4642
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AbstractFilterSourceDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4643
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: AbstractFilterSourceDirective, isStandalone: true, ngImport: i0 });
|
|
4878
4644
|
}
|
|
4879
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4645
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AbstractFilterSourceDirective, decorators: [{
|
|
4880
4646
|
type: Directive
|
|
4881
4647
|
}] });
|
|
4882
4648
|
|
|
@@ -4889,10 +4655,10 @@ class DbxFilterConnectSourceDirective {
|
|
|
4889
4655
|
ngOnInit() {
|
|
4890
4656
|
this.filterSourceConnector.connectWithSource(this.filterSource);
|
|
4891
4657
|
}
|
|
4892
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4893
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
4658
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFilterConnectSourceDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4659
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: DbxFilterConnectSourceDirective, isStandalone: true, selector: "[dbxFilterConnectSource]", ngImport: i0 });
|
|
4894
4660
|
}
|
|
4895
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4661
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFilterConnectSourceDirective, decorators: [{
|
|
4896
4662
|
type: Directive,
|
|
4897
4663
|
args: [{
|
|
4898
4664
|
selector: '[dbxFilterConnectSource]',
|
|
@@ -4904,10 +4670,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
4904
4670
|
* Used as a FilterSource and FilterSourceConnector.
|
|
4905
4671
|
*/
|
|
4906
4672
|
class DbxFilterSourceConnectorDirective extends AbstractFilterSourceConnectorDirective {
|
|
4907
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4908
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
4673
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFilterSourceConnectorDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
4674
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: DbxFilterSourceConnectorDirective, isStandalone: true, selector: "[dbxFilterSourceConnector]", providers: [...provideFilterSource(DbxFilterSourceConnectorDirective), ...provideFilterSourceConnector(DbxFilterSourceConnectorDirective)], usesInheritance: true, ngImport: i0 });
|
|
4909
4675
|
}
|
|
4910
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4676
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFilterSourceConnectorDirective, decorators: [{
|
|
4911
4677
|
type: Directive,
|
|
4912
4678
|
args: [{
|
|
4913
4679
|
selector: '[dbxFilterSourceConnector]',
|
|
@@ -4930,10 +4696,10 @@ class AbstractDbxFilterMapInstanceDirective {
|
|
|
4930
4696
|
setFilterMapKey(filterMapKey) {
|
|
4931
4697
|
this._currentFilterMapKey.next(filterMapKey);
|
|
4932
4698
|
}
|
|
4933
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4934
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
4699
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AbstractDbxFilterMapInstanceDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4700
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: AbstractDbxFilterMapInstanceDirective, isStandalone: true, ngImport: i0 });
|
|
4935
4701
|
}
|
|
4936
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4702
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AbstractDbxFilterMapInstanceDirective, decorators: [{
|
|
4937
4703
|
type: Directive
|
|
4938
4704
|
}] });
|
|
4939
4705
|
|
|
@@ -4945,22 +4711,22 @@ class AbstractDbxFilterMapSourceDirective extends AbstractDbxFilterMapInstanceDi
|
|
|
4945
4711
|
initWithFilter(filterObs) {
|
|
4946
4712
|
this.instance$.pipe(first()).subscribe((x) => x.initWithFilter(filterObs));
|
|
4947
4713
|
}
|
|
4948
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4949
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
4714
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AbstractDbxFilterMapSourceDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
4715
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: AbstractDbxFilterMapSourceDirective, isStandalone: true, usesInheritance: true, ngImport: i0 });
|
|
4950
4716
|
}
|
|
4951
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4717
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AbstractDbxFilterMapSourceDirective, decorators: [{
|
|
4952
4718
|
type: Directive
|
|
4953
4719
|
}] });
|
|
4954
4720
|
/**
|
|
4955
4721
|
* Provides a FilterSource from a parent FilterMap.
|
|
4956
4722
|
*/
|
|
4957
4723
|
class DbxFilterMapSourceDirective extends AbstractDbxFilterMapSourceDirective {
|
|
4958
|
-
dbxFilterMapSource = input();
|
|
4959
|
-
_dbxFilterMapSourceEffect = effect(() => this.setFilterMapKey(this.dbxFilterMapSource()), {
|
|
4960
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4961
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
4724
|
+
dbxFilterMapSource = input(...(ngDevMode ? [undefined, { debugName: "dbxFilterMapSource" }] : []));
|
|
4725
|
+
_dbxFilterMapSourceEffect = effect(() => this.setFilterMapKey(this.dbxFilterMapSource()), ...(ngDevMode ? [{ debugName: "_dbxFilterMapSourceEffect" }] : []));
|
|
4726
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFilterMapSourceDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
4727
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: DbxFilterMapSourceDirective, isStandalone: true, selector: "[dbxFilterMapSource]", inputs: { dbxFilterMapSource: { classPropertyName: "dbxFilterMapSource", publicName: "dbxFilterMapSource", isSignal: true, isRequired: false, transformFunction: null } }, providers: [provideFilterSource(DbxFilterMapSourceDirective)], exportAs: ["dbxFilterMapSource"], usesInheritance: true, ngImport: i0 });
|
|
4962
4728
|
}
|
|
4963
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4729
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFilterMapSourceDirective, decorators: [{
|
|
4964
4730
|
type: Directive,
|
|
4965
4731
|
args: [{
|
|
4966
4732
|
selector: '[dbxFilterMapSource]',
|
|
@@ -4968,14 +4734,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
4968
4734
|
providers: [provideFilterSource(DbxFilterMapSourceDirective)],
|
|
4969
4735
|
standalone: true
|
|
4970
4736
|
}]
|
|
4971
|
-
}] });
|
|
4737
|
+
}], propDecorators: { dbxFilterMapSource: [{ type: i0.Input, args: [{ isSignal: true, alias: "dbxFilterMapSource", required: false }] }] } });
|
|
4972
4738
|
|
|
4973
4739
|
/**
|
|
4974
4740
|
* Acts as an "input" FilterSourceConnector for an FilterMap, as well as a source for the FilterSourceConnector.
|
|
4975
4741
|
*/
|
|
4976
4742
|
class DbxFilterMapSourceConnectorDirective extends AbstractDbxFilterMapSourceDirective {
|
|
4977
|
-
dbxFilterMapSourceConnector = input();
|
|
4978
|
-
_dbxFilterMapSourceConnectorEffect = effect(() => this.setFilterMapKey(this.dbxFilterMapSourceConnector()), {
|
|
4743
|
+
dbxFilterMapSourceConnector = input(...(ngDevMode ? [undefined, { debugName: "dbxFilterMapSourceConnector" }] : []));
|
|
4744
|
+
_dbxFilterMapSourceConnectorEffect = effect(() => this.setFilterMapKey(this.dbxFilterMapSourceConnector()), ...(ngDevMode ? [{ debugName: "_dbxFilterMapSourceConnectorEffect" }] : []));
|
|
4979
4745
|
// MARK: FilterSourceConnector
|
|
4980
4746
|
connectWithSource(filterSource) {
|
|
4981
4747
|
this.instance$.pipe(first()).subscribe((x) => {
|
|
@@ -4985,10 +4751,10 @@ class DbxFilterMapSourceConnectorDirective extends AbstractDbxFilterMapSourceDir
|
|
|
4985
4751
|
}
|
|
4986
4752
|
});
|
|
4987
4753
|
}
|
|
4988
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4989
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
4754
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFilterMapSourceConnectorDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
4755
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: DbxFilterMapSourceConnectorDirective, isStandalone: true, selector: "[dbxFilterMapSourceConnector]", inputs: { dbxFilterMapSourceConnector: { classPropertyName: "dbxFilterMapSourceConnector", publicName: "dbxFilterMapSourceConnector", isSignal: true, isRequired: false, transformFunction: null } }, providers: [...provideFilterSource(DbxFilterMapSourceConnectorDirective), ...provideFilterSourceConnector(DbxFilterMapSourceConnectorDirective)], exportAs: ["dbxFilterMapSourceConnector"], usesInheritance: true, ngImport: i0 });
|
|
4990
4756
|
}
|
|
4991
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4757
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFilterMapSourceConnectorDirective, decorators: [{
|
|
4992
4758
|
type: Directive,
|
|
4993
4759
|
args: [{
|
|
4994
4760
|
selector: '[dbxFilterMapSourceConnector]',
|
|
@@ -4996,20 +4762,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
4996
4762
|
providers: [...provideFilterSource(DbxFilterMapSourceConnectorDirective), ...provideFilterSourceConnector(DbxFilterMapSourceConnectorDirective)],
|
|
4997
4763
|
standalone: true
|
|
4998
4764
|
}]
|
|
4999
|
-
}] });
|
|
4765
|
+
}], propDecorators: { dbxFilterMapSourceConnector: [{ type: i0.Input, args: [{ isSignal: true, alias: "dbxFilterMapSourceConnector", required: false }] }] } });
|
|
5000
4766
|
|
|
5001
4767
|
/**
|
|
5002
4768
|
* Direction that provides a FilterMap.
|
|
5003
4769
|
*/
|
|
5004
4770
|
class DbxFilterMapDirective {
|
|
5005
|
-
filterMap = inject((FilterMap));
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
}
|
|
5009
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFilterMapDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
5010
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: DbxFilterMapDirective, isStandalone: true, selector: "[dbxFilterMap]", providers: [FilterMap], exportAs: ["dbxFilterMap"], ngImport: i0 });
|
|
4771
|
+
filterMap = clean(inject((FilterMap)));
|
|
4772
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFilterMapDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4773
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: DbxFilterMapDirective, isStandalone: true, selector: "[dbxFilterMap]", providers: [FilterMap], exportAs: ["dbxFilterMap"], ngImport: i0 });
|
|
5011
4774
|
}
|
|
5012
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4775
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFilterMapDirective, decorators: [{
|
|
5013
4776
|
type: Directive,
|
|
5014
4777
|
args: [{
|
|
5015
4778
|
selector: '[dbxFilterMap]',
|
|
@@ -5030,10 +4793,10 @@ function isClickablePartialFilterPreset(preset) {
|
|
|
5030
4793
|
* Basic filter source directive.
|
|
5031
4794
|
*/
|
|
5032
4795
|
class DbxFilterSourceDirective extends AbstractFilterSourceDirective {
|
|
5033
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5034
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
4796
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFilterSourceDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
4797
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: DbxFilterSourceDirective, isStandalone: true, selector: "[dbxFilterSource]", providers: provideFilterSourceDirective(DbxFilterSourceDirective), usesInheritance: true, ngImport: i0 });
|
|
5035
4798
|
}
|
|
5036
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4799
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFilterSourceDirective, decorators: [{
|
|
5037
4800
|
type: Directive,
|
|
5038
4801
|
args: [{
|
|
5039
4802
|
selector: '[dbxFilterSource]',
|
|
@@ -5042,17 +4805,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
5042
4805
|
}]
|
|
5043
4806
|
}] });
|
|
5044
4807
|
|
|
5045
|
-
const importsAndExports
|
|
4808
|
+
const importsAndExports = [DbxFilterSourceDirective, DbxFilterMapSourceConnectorDirective, DbxFilterConnectSourceDirective, DbxFilterSourceConnectorDirective, DbxFilterMapDirective, DbxFilterMapSourceDirective];
|
|
5046
4809
|
class DbxCoreFilterModule {
|
|
5047
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5048
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
5049
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
4810
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxCoreFilterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4811
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.0", ngImport: i0, type: DbxCoreFilterModule, imports: [DbxFilterSourceDirective, DbxFilterMapSourceConnectorDirective, DbxFilterConnectSourceDirective, DbxFilterSourceConnectorDirective, DbxFilterMapDirective, DbxFilterMapSourceDirective], exports: [DbxFilterSourceDirective, DbxFilterMapSourceConnectorDirective, DbxFilterConnectSourceDirective, DbxFilterSourceConnectorDirective, DbxFilterMapDirective, DbxFilterMapSourceDirective] });
|
|
4812
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxCoreFilterModule });
|
|
5050
4813
|
}
|
|
5051
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4814
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxCoreFilterModule, decorators: [{
|
|
5052
4815
|
type: NgModule,
|
|
5053
4816
|
args: [{
|
|
5054
|
-
imports: importsAndExports
|
|
5055
|
-
exports: importsAndExports
|
|
4817
|
+
imports: importsAndExports,
|
|
4818
|
+
exports: importsAndExports
|
|
5056
4819
|
}]
|
|
5057
4820
|
}] });
|
|
5058
4821
|
|
|
@@ -5173,7 +4936,7 @@ class DbxInjectionInstance {
|
|
|
5173
4936
|
const componentRef = content.createComponent(componentClass, { injector, ngModuleRef });
|
|
5174
4937
|
const instance = componentRef.instance;
|
|
5175
4938
|
if (init) {
|
|
5176
|
-
init(instance);
|
|
4939
|
+
runInInjectionContext(componentRef.injector, () => init(instance));
|
|
5177
4940
|
}
|
|
5178
4941
|
this.componentRef = componentRef;
|
|
5179
4942
|
}
|
|
@@ -5216,10 +4979,10 @@ class AbstractDbxInjectionDirective {
|
|
|
5216
4979
|
setContent(content) {
|
|
5217
4980
|
this._instance.content = content;
|
|
5218
4981
|
}
|
|
5219
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5220
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
4982
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AbstractDbxInjectionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4983
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: AbstractDbxInjectionDirective, isStandalone: true, ngImport: i0 });
|
|
5221
4984
|
}
|
|
5222
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4985
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AbstractDbxInjectionDirective, decorators: [{
|
|
5223
4986
|
type: Directive
|
|
5224
4987
|
}] });
|
|
5225
4988
|
|
|
@@ -5227,43 +4990,43 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
5227
4990
|
* Component that injects content based on the configuration into the view.
|
|
5228
4991
|
*/
|
|
5229
4992
|
class DbxInjectionComponent extends AbstractDbxInjectionDirective {
|
|
5230
|
-
content = viewChild('content', { read: ViewContainerRef });
|
|
5231
|
-
config = input();
|
|
5232
|
-
template = input();
|
|
4993
|
+
content = viewChild('content', { ...(ngDevMode ? { debugName: "content" } : {}), read: ViewContainerRef });
|
|
4994
|
+
config = input(...(ngDevMode ? [undefined, { debugName: "config" }] : []));
|
|
4995
|
+
template = input(...(ngDevMode ? [undefined, { debugName: "template" }] : []));
|
|
5233
4996
|
// allow signal writes for each as during their initialization they may write to a signal in some cases when initializing
|
|
5234
|
-
_contentEffect = effect(() => this.setContent(this.content()), {
|
|
5235
|
-
_configEffect = effect(() => this.setConfig(this.config()), {
|
|
5236
|
-
_templateEffect = effect(() => this.setTemplate(this.template()), {
|
|
5237
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5238
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "
|
|
4997
|
+
_contentEffect = effect(() => this.setContent(this.content()), ...(ngDevMode ? [{ debugName: "_contentEffect" }] : []));
|
|
4998
|
+
_configEffect = effect(() => this.setConfig(this.config()), ...(ngDevMode ? [{ debugName: "_configEffect" }] : []));
|
|
4999
|
+
_templateEffect = effect(() => this.setTemplate(this.template()), ...(ngDevMode ? [{ debugName: "_templateEffect" }] : []));
|
|
5000
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxInjectionComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
5001
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.0", type: DbxInjectionComponent, isStandalone: true, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: false, transformFunction: null }, template: { classPropertyName: "template", publicName: "template", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true, read: ViewContainerRef, isSignal: true }], usesInheritance: true, ngImport: i0, template: `
|
|
5239
5002
|
<ng-template #content></ng-template>
|
|
5240
5003
|
`, isInline: true });
|
|
5241
5004
|
}
|
|
5242
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5005
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxInjectionComponent, decorators: [{
|
|
5243
5006
|
type: Component,
|
|
5244
5007
|
args: [{
|
|
5245
5008
|
selector: 'dbx-injection, [dbxInjection], [dbx-injection]',
|
|
5246
5009
|
template: `
|
|
5247
5010
|
<ng-template #content></ng-template>
|
|
5248
5011
|
`,
|
|
5249
|
-
imports: [
|
|
5012
|
+
imports: [],
|
|
5250
5013
|
standalone: true
|
|
5251
5014
|
}]
|
|
5252
|
-
}] });
|
|
5015
|
+
}], propDecorators: { content: [{ type: i0.ViewChild, args: ['content', { ...{ read: ViewContainerRef }, isSignal: true }] }], config: [{ type: i0.Input, args: [{ isSignal: true, alias: "config", required: false }] }], template: [{ type: i0.Input, args: [{ isSignal: true, alias: "template", required: false }] }] } });
|
|
5253
5016
|
|
|
5254
5017
|
/**
|
|
5255
5018
|
* Component that injects content based on the configuration into the view.
|
|
5256
5019
|
*/
|
|
5257
5020
|
class DbxInjectionArrayComponent {
|
|
5258
|
-
entries = input(undefined);
|
|
5259
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5260
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
5021
|
+
entries = input(undefined, ...(ngDevMode ? [{ debugName: "entries" }] : []));
|
|
5022
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxInjectionArrayComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5023
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.0", type: DbxInjectionArrayComponent, isStandalone: true, selector: "dbx-injection-array", inputs: { entries: { classPropertyName: "entries", publicName: "entries", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
5261
5024
|
@for (entry of entries(); track entry.key) {
|
|
5262
5025
|
<dbx-injection [config]="entry.injectionConfig"></dbx-injection>
|
|
5263
5026
|
}
|
|
5264
5027
|
`, isInline: true, dependencies: [{ kind: "component", type: DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5265
5028
|
}
|
|
5266
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5029
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxInjectionArrayComponent, decorators: [{
|
|
5267
5030
|
type: Component,
|
|
5268
5031
|
args: [{
|
|
5269
5032
|
selector: 'dbx-injection-array',
|
|
@@ -5272,11 +5035,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
5272
5035
|
<dbx-injection [config]="entry.injectionConfig"></dbx-injection>
|
|
5273
5036
|
}
|
|
5274
5037
|
`,
|
|
5275
|
-
imports: [DbxInjectionComponent
|
|
5038
|
+
imports: [DbxInjectionComponent],
|
|
5276
5039
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
5277
5040
|
standalone: true
|
|
5278
5041
|
}]
|
|
5279
|
-
}] });
|
|
5042
|
+
}], propDecorators: { entries: [{ type: i0.Input, args: [{ isSignal: true, alias: "entries", required: false }] }] } });
|
|
5280
5043
|
|
|
5281
5044
|
/**
|
|
5282
5045
|
* View that can switch to show another arbitrary view, then switch back when the promise ends.
|
|
@@ -5309,12 +5072,12 @@ class DbxInjectionContextDirective {
|
|
|
5309
5072
|
_currentPromise;
|
|
5310
5073
|
_embeddedView;
|
|
5311
5074
|
_isDetached = false;
|
|
5312
|
-
config = input();
|
|
5075
|
+
config = input(...(ngDevMode ? [undefined, { debugName: "config" }] : []));
|
|
5313
5076
|
_configEffect = effect(() => {
|
|
5314
5077
|
this.setConfig(this.config());
|
|
5315
5078
|
// NOTE: we have/call setConfig() because the effect() may not respond to all value changes,
|
|
5316
5079
|
// especially when setConfig() ends up being called twice quickly in quick succession.
|
|
5317
|
-
});
|
|
5080
|
+
}, ...(ngDevMode ? [{ debugName: "_configEffect" }] : []));
|
|
5318
5081
|
ngOnInit() {
|
|
5319
5082
|
this._instance.content = this._viewContainer;
|
|
5320
5083
|
this._instance.init();
|
|
@@ -5329,7 +5092,7 @@ class DbxInjectionContextDirective {
|
|
|
5329
5092
|
}
|
|
5330
5093
|
ngOnDestroy() {
|
|
5331
5094
|
this._instance.destroy();
|
|
5332
|
-
this._embeddedView?.destroy(); // destroy our embedded view too.
|
|
5095
|
+
this._embeddedView?.destroy(); // destroy our embedded view too if it is set.
|
|
5333
5096
|
}
|
|
5334
5097
|
async showContext(config) {
|
|
5335
5098
|
// clear the current context before showing something new.
|
|
@@ -5411,38 +5174,17 @@ class DbxInjectionContextDirective {
|
|
|
5411
5174
|
this._isDetached = false;
|
|
5412
5175
|
}
|
|
5413
5176
|
}
|
|
5414
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5415
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
5177
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxInjectionContextDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
5178
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: DbxInjectionContextDirective, isStandalone: true, selector: "[dbxInjectionContext]", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: false, transformFunction: null } }, providers: provideDbxInjectionContext(DbxInjectionContextDirective), ngImport: i0 });
|
|
5416
5179
|
}
|
|
5417
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5180
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxInjectionContextDirective, decorators: [{
|
|
5418
5181
|
type: Directive,
|
|
5419
5182
|
args: [{
|
|
5420
5183
|
selector: '[dbxInjectionContext]',
|
|
5421
5184
|
providers: provideDbxInjectionContext(DbxInjectionContextDirective),
|
|
5422
5185
|
standalone: true
|
|
5423
5186
|
}]
|
|
5424
|
-
}] });
|
|
5425
|
-
|
|
5426
|
-
const importsAndExports = [DbxInjectionComponent, DbxInjectionArrayComponent, DbxInjectionContextDirective];
|
|
5427
|
-
/**
|
|
5428
|
-
* @deprecated import the individual components instead.
|
|
5429
|
-
*
|
|
5430
|
-
* - DbxInjectionComponent
|
|
5431
|
-
* - DbxInjectionArrayComponent
|
|
5432
|
-
* - DbxInjectionContextDirective
|
|
5433
|
-
*/
|
|
5434
|
-
class DbxInjectionComponentModule {
|
|
5435
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxInjectionComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5436
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: DbxInjectionComponentModule, imports: [DbxInjectionComponent, DbxInjectionArrayComponent, DbxInjectionContextDirective], exports: [DbxInjectionComponent, DbxInjectionArrayComponent, DbxInjectionContextDirective] });
|
|
5437
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxInjectionComponentModule });
|
|
5438
|
-
}
|
|
5439
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxInjectionComponentModule, decorators: [{
|
|
5440
|
-
type: NgModule,
|
|
5441
|
-
args: [{
|
|
5442
|
-
imports: importsAndExports,
|
|
5443
|
-
exports: importsAndExports
|
|
5444
|
-
}]
|
|
5445
|
-
}] });
|
|
5187
|
+
}], propDecorators: { config: [{ type: i0.Input, args: [{ isSignal: true, alias: "config", required: false }] }] } });
|
|
5446
5188
|
|
|
5447
5189
|
/**
|
|
5448
5190
|
* Abstract DbxInjectionContext implementation that forwards commands to a host DbxInjectionContext.
|
|
@@ -5459,10 +5201,10 @@ class AbstractForwardDbxInjectionContextDirective {
|
|
|
5459
5201
|
resetContext() {
|
|
5460
5202
|
return this.dbxInjectionContext.resetContext();
|
|
5461
5203
|
}
|
|
5462
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5463
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
5204
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AbstractForwardDbxInjectionContextDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
5205
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: AbstractForwardDbxInjectionContextDirective, isStandalone: true, ngImport: i0 });
|
|
5464
5206
|
}
|
|
5465
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5207
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AbstractForwardDbxInjectionContextDirective, decorators: [{
|
|
5466
5208
|
type: Directive
|
|
5467
5209
|
}] });
|
|
5468
5210
|
|
|
@@ -5508,6 +5250,8 @@ class LockSetComponentStore extends ComponentStore {
|
|
|
5508
5250
|
lockSet = new LockSet();
|
|
5509
5251
|
lockSetDestroyDelayMs = 2000;
|
|
5510
5252
|
lockSetDestroyTimeoutMs;
|
|
5253
|
+
// NOTE: Injection does not occur here, but we need @Injectable to compile properly for Angular usage
|
|
5254
|
+
// eslint-disable-next-line @angular-eslint/prefer-inject
|
|
5511
5255
|
constructor(initialState) {
|
|
5512
5256
|
super(initialState);
|
|
5513
5257
|
this.initialState = initialState;
|
|
@@ -5549,10 +5293,10 @@ class LockSetComponentStore extends ComponentStore {
|
|
|
5549
5293
|
_destroyNow() {
|
|
5550
5294
|
this.lockSet.destroy();
|
|
5551
5295
|
}
|
|
5552
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5553
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5296
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: LockSetComponentStore, deps: [{ token: null, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5297
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: LockSetComponentStore });
|
|
5554
5298
|
}
|
|
5555
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5299
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: LockSetComponentStore, decorators: [{
|
|
5556
5300
|
type: Injectable
|
|
5557
5301
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
5558
5302
|
type: Inject,
|
|
@@ -5796,10 +5540,10 @@ class SimpleStorageAccessorFactory {
|
|
|
5796
5540
|
};
|
|
5797
5541
|
return new SimpleStorageAccessor(delegate, accessorConfig);
|
|
5798
5542
|
}
|
|
5799
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5800
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5543
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SimpleStorageAccessorFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5544
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SimpleStorageAccessorFactory });
|
|
5801
5545
|
}
|
|
5802
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5546
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SimpleStorageAccessorFactory, decorators: [{
|
|
5803
5547
|
type: Injectable
|
|
5804
5548
|
}] });
|
|
5805
5549
|
|
|
@@ -6000,5 +5744,5 @@ function checkNgContentWrapperHasContent(ref) {
|
|
|
6000
5744
|
* Generated bundle index. Do not edit.
|
|
6001
5745
|
*/
|
|
6002
5746
|
|
|
6003
|
-
export { APP_ACTION_DISABLED_DIRECTIVE_KEY, APP_ACTION_DISABLED_ON_SUCCESS_DIRECTIVE_KEY, APP_ACTION_ENFORCE_MODIFIED_DIRECTIVE_KEY, AbstractDbxActionHandlerDirective, AbstractDbxActionValueGetterDirective, AbstractDbxAnchorDirective, AbstractDbxButtonDirective, AbstractDbxFilterMapInstanceDirective, AbstractDbxFilterMapSourceDirective, AbstractDbxInjectionDirective, AbstractFilterSourceConnectorDirective, AbstractFilterSourceDirective, AbstractForwardDbxInjectionContextDirective, AbstractIfDirective,
|
|
5747
|
+
export { APP_ACTION_DISABLED_DIRECTIVE_KEY, APP_ACTION_DISABLED_ON_SUCCESS_DIRECTIVE_KEY, APP_ACTION_ENFORCE_MODIFIED_DIRECTIVE_KEY, AbstractDbxActionHandlerDirective, AbstractDbxActionValueGetterDirective, AbstractDbxAnchorDirective, AbstractDbxButtonDirective, AbstractDbxFilterMapInstanceDirective, AbstractDbxFilterMapSourceDirective, AbstractDbxInjectionDirective, AbstractFilterSourceConnectorDirective, AbstractFilterSourceDirective, AbstractForwardDbxInjectionContextDirective, AbstractIfDirective, AbstractTransitionDirective, AbstractTransitionWatcherDirective, ActionContextStore, ActionContextStoreSource, ActionContextStoreSourceMap, AsObservablePipe, CutTextPipe, DBX_ACTION_HANDLER_LOCK_KEY, DBX_APP_APP_CONTEXT_STATE, DBX_APP_AUTH_ROUTER_EFFECTS_TOKEN, DBX_AUTH_APP_CONTEXT_STATE, DBX_INIT_APP_CONTEXT_STATE, DBX_INJECTION_COMPONENT_DATA, DBX_KNOWN_APP_CONTEXT_STATES, DBX_ONBOARD_APP_CONTEXT_STATE, DBX_PUBLIC_APP_CONTEXT_STATE, DBX_ROUTE_MODEL_ID_PARAM_DEFAULT_ID_PARAM_KEY, DBX_ROUTE_MODEL_ID_PARAM_DEFAULT_KEY_PARAM_KEY, DBX_ROUTE_MODEL_ID_PARAM_DEFAULT_USE_PARAM_VALUE, DEFAULT_ACTION_DISABLED_KEY, DEFAULT_ACTION_MAP_WORKING_DISABLED_KEY, DEFAULT_REDIRECT_FOR_IDENTIFIER_PARAM_KEY, DEFAULT_REDIRECT_FOR_IDENTIFIER_PARAM_VALUE, DEFAULT_REDIRECT_FOR_USER_IDENTIFIER_PARAM_KEY, DEFAULT_REDIRECT_FOR_USER_IDENTIFIER_PARAM_VALUE, DEFAULT_STORAGE_ACCESSOR_FACTORY_TOKEN, DEFAULT_STORAGE_OBJECT_TOKEN, DateDayRangePipe, DateDayTimeRangePipe, DateDistancePipe, DateFormatDistancePipe, DateFormatFromToPipe, DateRangeDistancePipe, DateTimeRangeOnlyDistancePipe, DateTimeRangeOnlyPipe, DateTimeRangePipe, DbxActionAutoModifyDirective, DbxActionAutoTriggerDirective, DbxActionButtonDirective, DbxActionButtonTriggerDirective, DbxActionContextBaseSource, DbxActionContextLoggerDirective, DbxActionContextMachine, DbxActionContextMachineAsService, DbxActionContextMapDirective, DbxActionContextStoreSourceInstance, DbxActionDirective, DbxActionDisabledDirective, DbxActionDisabledOnSuccessDirective, DbxActionEnforceModifiedDirective, DbxActionErrorHandlerDirective, DbxActionFromMapDirective, DbxActionHandlerDirective, DbxActionHandlerInstance, DbxActionHandlerValueDirective, DbxActionHasSuccessDirective, DbxActionIdleDirective, DbxActionIsWorkingDirective, DbxActionMapSourceDirective, DbxActionMapWorkingDisableDirective, DbxActionPreSuccessDirective, DbxActionSourceDirective, DbxActionState, DbxActionSuccessHandlerDirective, DbxActionTriggeredDirective, DbxActionValueDirective, DbxActionValueGetterInstance, DbxActionValueStreamDirective, DbxActionValueTriggerDirective, DbxActionWorkInstanceDelegate, DbxAnchor, DbxAngularRouterService, DbxAppAuthRouterEffects, DbxAppAuthRouterService, DbxAppAuthRoutes, DbxAppAuthStateService, DbxAppContextService, DbxAppContextStateDirective, DbxAppEnviroment, DbxAppEnviromentService, DbxAuthHasAnyRoleDirective, DbxAuthHasRolesDirective, DbxAuthNotAnyRoleDirective, DbxAuthService, DbxButton, DbxButtonDirective, DbxButtonSegueDirective, DbxCoreActionModule, DbxCoreAngularRouterSegueModule, DbxCoreButtonModule, DbxCoreFilterModule, DbxFilterConnectSourceDirective, DbxFilterMapDirective, DbxFilterMapSourceConnectorDirective, DbxFilterMapSourceDirective, DbxFilterSourceConnectorDirective, DbxFilterSourceDirective, DbxInjectionArrayComponent, DbxInjectionComponent, DbxInjectionContext, DbxInjectionContextDirective, DbxInjectionInstance, DbxLoadingButtonDirective, DbxRouteModelIdDirective, DbxRouteModelIdDirectiveDelegate, DbxRouteModelIdFromAuthUserIdDirective, DbxRouteModelKeyDirective, DbxRouteModelKeyDirectiveDelegate, DbxRouteParamDefaultRedirectInstance, DbxRouterService, DbxRouterTransitionEventType, DbxRouterTransitionService, DbxUIRouterService, DollarAmountPipe, FILTER_SOURCE_DIRECTIVE_DEFAULT_FILTER_TOKEN, FilterSourceDirective, FullLocalStorageObject, GetValueOncePipe, GetValuePipe, InstantStorageAccessor, LimitedStorageAccessor, LockSetComponentStore, MemoryStorageObject, MinutesStringPipe, NO_AUTH_USER_IDENTIFIER, PrettyJsonPipe, SecondaryActionContextStoreSource, SimpleStorageAccessor, SimpleStorageAccessorFactory, StorageAccessor, StringStorageAccessor, StringifySimpleStorageAccessorConverter, SystemDateToTargetDatePipe, TargetDateToSystemDatePipe, TimeDistanceCountdownPipe, TimeDistancePipe, TimezoneAbbreviationPipe, ToJsDatePipe, ToMinutesPipe, WrapperSimpleStorageAccessorDelegate, actionContextHasNoErrorAndIsModifiedAndCanTrigger, actionContextIsModifiedAndCanTrigger, actionContextStoreSourceMap, actionContextStoreSourceMapReader, actionContextStoreSourcePipe, anchorTypeForAnchor, asSegueRef, asSegueRefString, assertValidStorageKeyPrefix, authRolesSetContainsAllRolesFrom, authRolesSetContainsAnyRoleFrom, authRolesSetContainsNoRolesFrom, authUserIdentifier, canReadyValue, canTriggerAction, canTriggerActionState, checkNgContentWrapperHasContent, clean, cleanDestroy, cleanListLoadingContext, cleanLoadingContext, cleanLockSet, cleanSubscription, cleanSubscriptionWithLockSet, cleanWithLockSet, clickableUrlInNewTab, clickableUrlMailTo, clickableUrlTel, completeOnDestroy, dbxActionWorkProgress, dbxButtonDisplayType, dbxRouteModelIdParamRedirect, dbxRouteModelKeyParamRedirect, dbxRouteParamReaderInstance, defaultStorageObjectFactory, enableHasAuthRoleHook, enableHasAuthStateHook, enableIsLoggedInHook, expandClickableAnchorLinkTree, expandClickableAnchorLinkTreeNode, expandClickableAnchorLinkTrees, filterTransitionEvent, filterTransitionSuccess, flattenExpandedClickableAnchorLinkTree, flattenExpandedClickableAnchorLinkTreeToLinks, fromAllActionContextStoreSourceMapSources, index as fromDbxAppAuth, index$2 as fromDbxAppContext, goWithRouter, hasAuthRoleDecisionPipe, isActionContextDisabled, isActionContextEnabled, isClickableFilterPreset, isClickablePartialFilterPreset, isDisabledActionContextState, isIdleActionState, isLatestSuccessfulRoute, isSegueRef, isSegueRefActive, isSegueRefActiveFunction, isSegueRefActiveOnTransitionSuccess, isValidStorageKeyPrefix, isWorkingActionState, latestSuccessfulRoutes, loadingStateForActionContextState, loadingStateTypeForActionContextState, loadingStateTypeForActionState, loggedInObsFromIsLoggedIn, loggedOutObsFromIsLoggedIn, makeAuthTransitionHook, makeDbxActionContextSourceReference, mapRefStringObsToSegueRefObs, mergeDbxInjectionComponentConfigs, mergeStaticProviders, newWithInjector, index$1 as onDbxAppAuth, index$3 as onDbxAppContext, onRouterTransitionEventType, onRouterTransitionSuccessEvent, pipeActionStore, provideActionStoreSource, provideDbxAnchor, provideDbxAppAuth, provideDbxAppAuthRouter, provideDbxAppAuthRouterState, provideDbxAppAuthState, provideDbxAppContextState, provideDbxAppEnviroment, provideDbxButton, provideDbxInjectionContext, provideDbxRouteModelIdDirectiveDelegate, provideDbxRouteModelKeyDirectiveDelegate, provideDbxStorage, provideDbxUIRouterService, provideFilterSource, provideFilterSourceConnector, provideFilterSourceDirective, provideSecondaryActionStoreSource, redirectBasedOnAuthUserState, redirectForIdentifierParamHook, redirectForUserIdentifierParamHook, refStringToSegueRef, safeDetectChanges, safeMarkForCheck, safeUseCdRef, successTransition, switchMapDbxInjectionComponentConfig, tapDetectChanges, tapSafeMarkForCheck, transformEmptyStringInputToUndefined, useActionStore };
|
|
6004
5748
|
//# sourceMappingURL=dereekb-dbx-core.mjs.map
|